gdb/fortran: Add new 'info modules' command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
59c35742
AB
12019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
4 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
5 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
6 MODULES_DOMAIN.
7 (scan_partial_symbols): Only create partial module symbols for non
8 declarations.
9 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
10 and MODULES_DOMAIN.
11 * symtab.c (search_domain_name): Likewise.
12 (search_symbols): Likewise.
13 (print_symbol_info): Likewise.
14 (symtab_symbol_info): Likewise.
15 (info_modules_command): New function.
16 (_initialize_symtab): Register 'info modules' command.
17 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
18 * NEWS: Mention new 'info modules' command.
19
aed61d02
PW
202019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
21
22 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
23 and $_gdb_maint_setting_str.
24
9ad9b77d
PW
252019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
26
27 * cli/cli-cmds.c (setting_cmd, value_from_setting)
28 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
29 (str_value_from_setting, gdb_setting_str_internal_fn)
30 (gdb_maint_setting_str_internal_fn): New functions.
31 (_initialize_cli_cmds): Define the new convenience functions.
32 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
33 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
34
8d6efaa2
CB
352019-10-31 Christian Biesinger <cbiesinger@google.com>
36
37 * agent.c (set_can_use_agent): When the setting is turned on,
38 look up agent symbols if we don't have them yet.
39 (agent_new_objfile): Don't look up agent symbols when the agent
40 setting is off.
41
33cb1647
CB
422019-10-31 Christian Biesinger <cbiesinger@google.com>
43
44 * config.in: Regenerate.
45
b231e86a
CB
462019-10-31 Christian Biesinger <cbiesinger@google.com>
47
48 * configure: Regenerate.
49 * configure.ac: Check for strerror_r.
50 * gdbsupport/common-utils.h (safe_strerror): Change return value
51 to const char * and document that this function is now threadsafe.
52 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
53 thread_local and call strerror_r, if available.
54 * utils.c (perror_string): Update.
55 (print_sys_errmsg): Update.
56
a2726d4f
LM
572019-10-31 Luis Machado <luis.machado@linaro.org>
58
59 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
60 objfile_key.
61 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
62 objfile to fetch per-bfd data.
63 (arm_find_exidx_entry): Likewise.
64
75cafaa6
CB
652019-10-31 Christian Biesinger <cbiesinger@google.com>
66
67 * gdbsupport/agent.c (debug_agent): Change type to bool.
68 (use_agent): Likewise.
69 (all_agent_symbols_look_up): Likewise.
70 (agent_loaded_p): Change return value to bool.
71 (agent_look_up_symbols): Update.
72 (agent_capability_check): Change return value to bool.
73 * gdbsupport/agent.h (agent_loaded_p): Likewise.
74 (debug_agent): Change type to bool.
75 (use_agent): Likewise.
76 (agent_capability_check): Change return value to bool.
77
808590ec
CB
782019-10-30 Christian Biesinger <cbiesinger@google.com>
79
80 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
81 (build_minimal_symbol_hash_tables): Code to clear the table moved
82 to clear_minimal_symbol_hash_tables.
83 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
84 when needed.
85
f18ad8a1
SM
862019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * infcmd.c: Remove includes.
89 * infrun.c: Remove includes.
90
de93309a
SM
912019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
94 (grow_vect): Remove declaration.
95 (ada_type_of_array): Remove declaration.
96 (ada_update_initial_language): Remove declaration.
97 (ada_fold_name): Remove declaration.
98 (ada_fill_in_ada_prototype): Remove declaration.
99 (user_select_syms): Remove declaration.
100 (get_selections): Remove declaration.
101 (ada_tag_type): Remove declaration.
102 (ada_value_tag): Remove declaration.
103 (ada_is_others_clause): Remove declaration.
104 (ada_in_variant): Remove declaration.
105 (ada_value_struct_elt): Remove declaration.
106 (ada_attribute_name): Remove declaration.
107 (ada_system_address_type): Remove declaration.
108 * ada-lang.c (ada_watch_location_expression): Make static.
109 (GROW_VECT): Move here from ada-lang.h.
110 (grow_vect): Make static.
111 (ada_update_initial_language): Make static.
112 (ada_fold_name): Make static.
113 (ada_type_of_array): Make static.
114 (encoded_ordered_before): Move up.
115 (sort_choices): Move up.
116 (print_signatures): Move up.
117 (ada_print_symbol_signature): Move up.
118 (get_selections): Move up and make static.
119 (user_select_syms): Move up and make static.
120 (ada_value_struct_elt): Move up and make static.
121 (ada_tag_type): Make static.
122 (ada_value_tag): Make static.
123 (ada_is_others_clause): Make static.
124 (ada_in_variant): Make static.
125 (ada_attribute_name): Make static.
126
cdc46a9f
SM
1272019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * ada-lang.c: Remove includes.
130 * ada-typeprint.c: Remove includes.
131 * ada-valprint.c: Remove includes.
132
90421c56
SM
1332019-10-29 Simon Marchi <simon.marchi@efficios.com>
134
135 * addrmap.c: Add static assertions of type size, moved from
136 _initialize_addrmap.
137 (_initialize_addrmap): Remove.
138
31edb802
CB
1392019-10-29 Christian Biesinger <cbiesinger@google.com>
140
141 * coffread.c (record_minimal_symbol): Update.
142 (process_coff_symbol): Update.
143 * dbxread.c (read_dbx_symtab): Update.
144 * dwarf2read.c (add_partial_symbol): Update.
145 (fixup_go_packaging): Update.
146 (load_partial_dies): Update.
147 (new_symbol): Update.
148 * elfread.c (record_minimal_symbol): Change signature to use
149 gdb::string_view instead of name+len.
150 (elf_symtab_read): Update.
151 (elf_rel_plt_read): Update.
152 * mdebugread.c (parse_partial_symbols): Update.
153 (handle_psymbol_enumerators): Update.
154 (new_symbol): Update.
155 * minsyms.c (minimal_symbol_reader::record_full): Change signature
156 to use gdb::string_view instead of name+len.
157 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
158 * psympriv.h (add_psymbol_to_list): Likewise.
159 * psymtab.c (add_psymbol_to_bcache): Likewise.
160 (add_psymbol_to_list): Likewise.
161 * stabsread.c (define_symbol): Update.
162 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
163 * symtab.h (SYMBOL_SET_NAMES): Likewise.
164 (symbol_set_names): Likewise.
165 * xcoffread.c (scan_xcoff_symtab): Update.
166
0c921b21
CB
1672019-10-29 Christian Biesinger <cbiesinger@google.com>
168
169 * symtab.h (symbol_set_names): Document that copy_name must be
170 set to true for non-nullterminated strings.
171 * symtab.c (symbol_set_names): Only make a nullterminated copy of
172 linkage_name if the entry was not found and we need to demangle.
173
35e65c49
CB
1742019-10-29 Christian Biesinger <cbiesinger@google.com>
175
176 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
177 * dwarf2-frame.c (bsearch_fde_cmp): Update.
178 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
179 * gdbsupport/gdb_binary_search.h: New file.
180
ed2a2229
CB
1812019-10-29 Christian Biesinger <cbiesinger@google.com>
182
183 * NEWS: Mention new --with-system-gdbinit-dir option.
184 * config.in: Regenerate.
185 * configure: Regenerate.
186 * configure.ac: Add new option --with-system-gdbinit-dir.
187 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
188 for a ".gdb" suffix.
189 * main.c (get_init_files): Change system_gdbinit argument to
190 a vector and return the files in SYSTEM_GDBINIT_DIR in
191 addition to SYSTEM_GDBINIT.
192 (captured_main_1): Update.
193 (print_gdb_help): Update.
194 * top.c (print_gdb_configuration): Also print the value of
195 SYSTEM_GDBINIT_DIR.
196
87f34879
CB
1972019-10-28 Christian Biesinger <cbiesinger@google.com>
198
199 * gdbsupport/common-utils.h (startswith): Add an overloaded version
200 that takes gdb::string_view arguments.
201
30baf67b
TV
2022019-10-26 Tom de Vries <tdevries@suse.de>
203
204 * aarch64-linux-tdep.c: Fix typos in comments.
205 * aarch64-tdep.c: Same.
206 * ada-lang.c: Same.
207 * amd64-nat.c: Same.
208 * arc-tdep.c: Same.
209 * arch/aarch64-insn.c: Same.
210 * block.c: Same.
211 * breakpoint.h: Same.
212 * btrace.h: Same.
213 * c-varobj.c: Same.
214 * cli/cli-decode.c: Same.
215 * cli/cli-script.c: Same.
216 * cli/cli-utils.h: Same.
217 * coff-pe-read.c: Same.
218 * coffread.c: Same.
219 * compile/compile-cplus-symbols.c: Same.
220 * compile/compile-object-run.c: Same.
221 * completer.c: Same.
222 * corelow.c: Same.
223 * cp-support.c: Same.
224 * demangle.c: Same.
225 * dwarf-index-write.c: Same.
226 * dwarf2-frame.c: Same.
227 * dwarf2-frame.h: Same.
228 * eval.c: Same.
229 * frame-base.h: Same.
230 * frame.h: Same.
231 * gdbcmd.h: Same.
232 * gdbtypes.h: Same.
233 * gnu-nat.c: Same.
234 * guile/scm-objfile.c: Same.
235 * i386-tdep.c: Same.
236 * i386-tdep.h: Same.
237 * infcall.c: Same.
238 * infcall.h: Same.
239 * linux-nat.c: Same.
240 * m68k-tdep.c: Same.
241 * macroexp.c: Same.
242 * memattr.c: Same.
243 * mi/mi-cmd-disas.c: Same.
244 * mi/mi-getopt.h: Same.
245 * mi/mi-main.c: Same.
246 * minsyms.c: Same.
247 * nat/aarch64-sve-linux-sigcontext.h: Same.
248 * objfiles.h: Same.
249 * ppc-linux-nat.c: Same.
250 * ppc-linux-tdep.c: Same.
251 * ppc-tdep.h: Same.
252 * progspace.h: Same.
253 * prologue-value.h: Same.
254 * python/py-evtregistry.c: Same.
255 * python/py-instruction.h: Same.
256 * record-btrace.c: Same.
257 * record-full.c: Same.
258 * remote.c: Same.
259 * rs6000-tdep.c: Same.
260 * ser-tcp.c: Same.
261 * sol-thread.c: Same.
262 * sparc-sol2-tdep.c: Same.
263 * sparc64-tdep.c: Same.
264 * stabsread.c: Same.
265 * symfile.c: Same.
266 * symtab.h: Same.
267 * target.c: Same.
268 * tracepoint.c: Same.
269 * tui/tui-data.h: Same.
270 * tui/tui-io.c: Same.
271 * tui/tui-win.c: Same.
272 * tui/tui.c: Same.
273 * unittests/rsp-low-selftests.c: Same.
274 * user-regs.h: Same.
275 * utils.c: Same.
276 * utils.h: Same.
277 * valarith.c: Same.
278 * valops.c: Same.
279 * valprint.c: Same.
280 * valprint.h: Same.
281 * value.c: Same.
282 * value.h: Same.
283 * varobj.c: Same.
284 * x86-nat.h: Same.
285 * xtensa-tdep.c: Same.
286
1834d45f
AT
2872019-10-25 Ali Tamur <tamur@google.com>
288
289 * charset.c (find_charset_names): Reflect API change.
290
5396ae17
CB
2912019-10-25 Christian Biesinger <cbiesinger@google.com>
292
293 * symtab.c (struct demangled_name_entry): Change demangled name
294 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
295 part of the struct anymore.
296 (symbol_set_names): No longer obstack allocate + copy the demangled
297 name, just store the allocated name from bfd.
298
93878f47
TT
2992019-10-25 Tom Tromey <tromey@adacore.com>
300
301 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
302 (bsearch_cie_cmp, add_cie): Remove.
303 (find_cie): Reimplement.
304 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
305 (dwarf2_build_frame_info): Update.
306
7b71fc97
L
3072019-10-24 H.J. Lu <hongjiu.lu@intel.com>
308
309 PR gdb/25126
310 * symfile.c (reread_symbols): Call forget_cached_source_info to
311 clear the stale source cache.
312
cbb5a2ea
CB
3132019-10-24 Christian Biesinger <cbiesinger@google.com>
314
315 * configure: Regenerate.
316 * configure.ac: Remove code that sets python_has_threads.
317
71737c43
CB
3182019-10-24 Christian Biesinger <cbiesinger@google.com>
319
320 * config.in: Regenerate.
321 * configure: Regenerate.
322 * configure.ac: Remove the code that uses sed to get the python
323 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
324
33d569b7
AB
3252019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * python/py-progspace.c (pspy_block_for_pc): Return None for all
328 error paths.
329
f16f7b7c
TT
3302019-10-23 Tom Tromey <tom@tromey.com>
331
332 * arc-tdep.c: Remove ".." from include.
333 * frv-tdep.c: Remove ".." from include.
334 * lm32-tdep.c: Remove ".." from include.
335 * microblaze-tdep.c: Remove ".." from include.
336 * or1k-tdep.h: Remove ".." from include.
337 * s12z-tdep.c: Remove ".." from include.
338 * Makefile.in (OPCODES_CFLAGS): Add comment.
339 (TOP_CFLAGS): New variable.
340 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
341
6999161a
TT
3422019-10-23 Tom Tromey <tom@tromey.com>
343
344 * Makefile.in (READLINE_DIR): Update.
345
12e7c35e
TBA
3462019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347
348 * infcall.c (call_function_by_hand_dummy): Fix the function
349 comment. And extract out a code section into...
350 (reserve_stack_space): ...this new function.
351
37055cad
TBA
3522019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
353
354 * infcall.c (value_arg_coerce): Remove an unused parameter.
355 (call_function_by_hand_dummy): Update the call to
356 'value_arg_coerce'.
357
39bcc47c
TBA
3582019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
359
360 * infcall.c (call_function_by_hand_dummy): Refactor.
361
bd888c0f
TBA
3622019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363
364 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
365
c12d372d
TT
3662019-10-23 Tom Tromey <tom@tromey.com>
367
368 * configure: Rebuild.
369 * configure.ac: Don't check for sigprocmask.
370 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
371
4d0b984b
TT
3722019-10-23 Tom Tromey <tom@tromey.com>
373
374 * configure: Rebuild.
375 * acinclude.m4: Use m4_include, not sinclude.
376
7e785608
TV
3772019-10-23 Tom de Vries <tdevries@suse.de>
378
379 PR breakpoints/24687
380 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
381
403772ef
CB
3822019-10-22 Christian Biesinger <cbiesinger@google.com>
383
384 * symtab.c (struct demangled_name_entry) <language>: Change from
385 bitfield to regular variable.
386
3a494279
CB
3872019-10-22 Christian Biesinger <cbiesinger@google.com>
388
389 * symtab.c (struct demangled_name_entry): Add a constructor.
390 (free_demangled_name_entry): New function to call the destructor
391 for demangled_name_entry.
392 (create_demangled_names_hash): Pass free_demangled_name_entry to
393 htab_create_alloc.
394 (symbol_set_names): Call placement new for demangled_name_entry.
395 * utils.c: No longer include xxhash.h here, now that fast_hash
396 is inlined in the header.
397 * utils.h: Instead, include it here.
398
ccb1ba62
CB
3992019-10-22 Christian Biesinger <cbiesinger@google.com>
400
401 * Makefile.in: Link with libxxhash.
402 * config.in: Regenerate.
403 * configure: Regenerate.
404 * configure.ac: Search for libxxhash.
405 * utils.c (fast_hash): Use xxhash if present.
406
1a6ff1a9
CB
4072019-10-22 Christian Biesinger <cbiesinger@google.com>
408
409 * utils.h (fast_hash): New function.
410 * symtab.c (hash_demangled_name_entry): Call new function
411 fast_hash.
412
7bb43059
CB
4132019-10-22 Christian Biesinger <cbiesinger@google.com>
414
415 * symtab.c (struct demangled_name_entry): Change type of mangled
416 to gdb::string_view. Also adds a constructor that takes the
417 mangled name.
418 (hash_demangled_name_entry): Update.
419 (eq_demangled_name_entry): Update.
420 (free_demangled_name_entry): New function to call the destructor
421 now that this is not a POD anymore.
422 (create_demangled_names_hash): Pass free_demangled_name_entry to
423 htab_create_alloc.
424 (symbol_set_names): Update.
425
7ba99d21
AT
4262019-10-21 Ali Tamur <tamu@google.com>
427
428 * dwarf2read.c (dir_index): Change type.
429 (file_name_index): Likewise.
430 (line_header::include_dir_at): Change comment and implementation on
431 whether it is DWARF 5.
432 (line_header::is_valid_file_index): New function.
433 (line_header::file_name_at): Change comment and implementation on
434 whether it is DWARF 5.
435 (line_header::file_names): Change to private field renamed as
436 m_file_names and introduce a new accessor method.
437 (line_header::file_names_size): New method.
438 (line_header::include_dirs): Change to private field and rename as
439 m_include_dirs.
440 (dw2_get_file_names_reader): Define local var at a smaller scope and
441 reflect API change.
442 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
443 (process_structure_scope): Likewise.
444 (line_header::add_include_dir): Change message and reflect renaming.
445 (line_header::add_file_name): Likewise.
446 (read_formatted_entries): Handle DW_FORM_data16.
447 (dwarf_decode_line_header): Fix line header length calculation.
448 (psymtab_include_file_name): Change comment and API.
449 (lnp_state_machine::m_file): Update comment and reflect type change.
450 (lnp_state_machine::record_line): Reflect type change.
451 (dwarf_decode_lines): Reflect API change.
452 (file_file_name): Likewise.
453 (file_full_name): Likewise.
454
45f47c3a
AB
4552019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
458
e5f3c0e3
TT
4592019-10-21 Tom Tromey <tom@tromey.com>
460
461 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
462
a0a461e5
TT
4632019-10-21 Tom Tromey <tom@tromey.com>
464
465 * configure.ac (nm.h): Conditionally create nm.h link. Subst
466 NM_H. Use AC_CONFIG_LINKS.
467 * configure: Rebuild.
468 * Makefile.in (NM_H): New variable.
469 (generated_files): Add NM_H. Remove gcore.
470 (nm.h, stamp-nmh): New targets.
471
54d83b8d
TT
4722019-10-20 Tom Tromey <tom@tromey.com>
473
474 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
475 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
476 obsolete comment.
477 (put_objfile_before): Now static.
478
23771117
SM
4792019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * gdbsupport/common-utils.h (startswith): Change return type to
482 bool.
483
39ef2f62
CB
4842019-10-19 Christian Biesinger <cbiesinger@google.com>
485
486 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
487 * breakpoint.c (bp_locations_compare): Rename to...
488 (bp_location_is_less_than): ...this, and change to std::sort semantics.
489 (update_global_location_list): Use std::sort instead of qsort.
490 * buildsym.c (compare_line_numbers): Rename to...
491 (lte_is_less_than): ...this, and change to std::sort semantics.
492 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
493 instead of qsort.
494 * disasm.c (compare_lines): Rename to...
495 (line_is_less_than): ...this, and change to std::sort semantics.
496 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
497 of qsort.
498 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
499 (fde_is_less_than): ...this, and change to std::sort semantics.
500 (dwarf2_build_frame_info): Call std::sort instead of qsort.
501 * mdebugread.c (compare_blocks):
502 (block_is_less_than): ...this, and change to std::sort semantics.
503 (sort_blocks): Call std::sort instead of qsort.
504 * objfiles.c (qsort_cmp): Rename to...
505 (sort_cmp): ...this, and change to std::sort semantics.
506 (update_section_map): Call std::sort instead of qsort.
507 * remote.c (compare_pnums): Remove.
508 (map_regcache_remote_table): Call std::sort instead of qsort.
509 * utils.c (compare_positive_ints): Remove.
510 * utils.h (compare_positive_ints): Remove.
511 * xcoffread.c (compare_lte): Remove.
512 (arrange_linetable): Call std::sort instead of qsort.
513
f71433ee
SDJ
5142019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
515
516 * symfile.c (init_entry_point_info): Fix typo.
517 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
518
85102364
TV
5192019-10-18 Tom de Vries <tdevries@suse.de>
520
521 * aarch64-tdep.c: Fix typos in comments.
522 * ada-lang.c: Same.
523 * ada-tasks.c: Same.
524 * alpha-tdep.c: Same.
525 * alpha-tdep.h: Same.
526 * amd64-nat.c: Same.
527 * amd64-windows-tdep.c: Same.
528 * arc-tdep.c: Same.
529 * arc-tdep.h: Same.
530 * arch-utils.c: Same.
531 * arm-nbsd-tdep.c: Same.
532 * arm-tdep.c: Same.
533 * ax-gdb.c: Same.
534 * blockframe.c: Same.
535 * btrace.c: Same.
536 * c-varobj.c: Same.
537 * coff-pe-read.c: Same.
538 * coffread.c: Same.
539 * cris-tdep.c: Same.
540 * darwin-nat.c: Same.
541 * dbxread.c: Same.
542 * dcache.c: Same.
543 * disasm.c: Same.
544 * dtrace-probe.c: Same.
545 * dwarf-index-write.c: Same.
546 * dwarf2-frame-tailcall.c: Same.
547 * dwarf2-frame.c: Same.
548 * dwarf2read.c: Same.
549 * eval.c: Same.
550 * exceptions.c: Same.
551 * fbsd-tdep.c: Same.
552 * findvar.c: Same.
553 * frame.c: Same.
554 * frv-tdep.c: Same.
555 * gnu-v3-abi.c: Same.
556 * go32-nat.c: Same.
557 * h8300-tdep.c: Same.
558 * hppa-tdep.c: Same.
559 * i386-linux-tdep.c: Same.
560 * i386-tdep.c: Same.
561 * ia64-libunwind-tdep.c: Same.
562 * ia64-tdep.c: Same.
563 * infcmd.c: Same.
564 * infrun.c: Same.
565 * linespec.c: Same.
566 * linux-nat.c: Same.
567 * linux-thread-db.c: Same.
568 * machoread.c: Same.
569 * mdebugread.c: Same.
570 * mep-tdep.c: Same.
571 * mn10300-tdep.c: Same.
572 * namespace.c: Same.
573 * objfiles.c: Same.
574 * opencl-lang.c: Same.
575 * or1k-tdep.c: Same.
576 * osabi.c: Same.
577 * ppc-linux-nat.c: Same.
578 * ppc-linux-tdep.c: Same.
579 * ppc-sysv-tdep.c: Same.
580 * printcmd.c: Same.
581 * procfs.c: Same.
582 * record-btrace.c: Same.
583 * record-full.c: Same.
584 * remote-fileio.c: Same.
585 * remote.c: Same.
586 * rs6000-tdep.c: Same.
587 * s12z-tdep.c: Same.
588 * score-tdep.c: Same.
589 * ser-base.c: Same.
590 * ser-go32.c: Same.
591 * skip.c: Same.
592 * sol-thread.c: Same.
593 * solib-svr4.c: Same.
594 * solib.c: Same.
595 * source.c: Same.
596 * sparc-nat.c: Same.
597 * sparc-sol2-tdep.c: Same.
598 * sparc-tdep.c: Same.
599 * sparc64-tdep.c: Same.
600 * stabsread.c: Same.
601 * stack.c: Same.
602 * symfile.c: Same.
603 * symtab.c: Same.
604 * target-descriptions.c: Same.
605 * target-float.c: Same.
606 * thread.c: Same.
607 * utils.c: Same.
608 * valops.c: Same.
609 * valprint.c: Same.
610 * value.c: Same.
611 * varobj.c: Same.
612 * windows-nat.c: Same.
613 * xcoffread.c: Same.
614 * xstormy16-tdep.c: Same.
615 * xtensa-tdep.c: Same.
616
c5adaa19
TT
6172019-10-17 Tom Tromey <tromey@adacore.com>
618
619 * configure: Rebuild.
620 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
621 in AC_CONFIG_FILES invocation.
622 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
623 new-style config.status invocation.
624
405feb71
TV
6252019-10-17 Tom de Vries <tdevries@suse.de>
626
627 * arm-nbsd-nat.c: Fix typos in comments.
628 * arm-tdep.c: Same.
629 * darwin-nat-info.c: Same.
630 * dwarf2read.c: Same.
631 * elfread.c: Same.
632 * event-top.c: Same.
633 * findvar.c: Same.
634 * gdbtypes.c: Same.
635 * hppa-tdep.c: Same.
636 * i386-tdep.c: Same.
637 * jit.c: Same.
638 * main.c: Same.
639 * mdebugread.c: Same.
640 * moxie-tdep.c: Same.
641 * nto-procfs.c: Same.
642 * osabi.c: Same.
643 * ppc-linux-tdep.c: Same.
644 * remote.c: Same.
645 * riscv-tdep.c: Same.
646 * s390-tdep.c: Same.
647 * sh-tdep.c: Same.
648 * sparc-linux-tdep.c: Same.
649 * sparc-nat.c: Same.
650 * stack.c: Same.
651 * target-descriptions.c: Same.
652 * top.c: Same.
653 * varobj.c: Same.
654
befcd486
TT
6552019-10-16 Tom Tromey <tom@tromey.com>
656
657 * objfiles.h (struct objfile) <original_name>: Now const.
658
17bfe554
CB
6592019-10-16 Christian Biesinger <cbiesinger@google.com>
660
661 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
662 pass on to sigsetjmp's second argument.
663 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
664
950b7495
KS
6652019-10-16 Keith Seitz <keiths@redhat.com>
666
667 PR gdb/23567
668 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
669 sections whose size is greater than the file size.
670
ff371ec9
JW
6712019-10-16 Jim Wilson <jimw@sifive.com>
672
673 * riscv-tdep.c (riscv_gcc_target_options): New.
674 (riscv_gnu_triplet_regexp): New.
675 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
676 set_gdbarch_gnu_triplet_regexp.
677
fec4e896
CB
6782019-10-16 Christian Biesinger <cbiesinger@google.com>
679
680 * Makefile.in: Add xml-builtin.h.
681 * features/feature_to_c.sh: Add an include for xml-builtin.h
682 to ensure that the compiler checks that the types match.
683 * xml-builtin.h: New file.
684 * xml-support.c (fetch_xml_builtin): Add missing const.
685 * xml-support.h: Remove declaration of xml_builtins.
686
d10eccaa
TV
6872019-10-16 Tom de Vries <tdevries@suse.de>
688
689 PR tdep/25096
690 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
691 (amd64_classify_aggregate): ... here.
692 (amd64_classify_aggregate_field): Handled fiels of nested structs
693 recursively.
694
745ff14e
TV
6952019-10-16 Tom de Vries <tdevries@suse.de>
696
697 PR tdep/24104
698 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
699 that handles 'theclass'.
700
791b7405
AB
7012019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * linespec.c (decode_digits_ordinary): Update comment.
704 * make-target-delegates: No longer need to handle VEC case.
705 * memrange.c (normalize_mem_ranges): Update comment.
706 * namespace.c (add_using_directive): Update comment.
707 * objc-lang.c (uniquify_strings): Update comment.
708 * ppc-linux-nat.c (struct thread_points): Update comment.
709 * probe.h (find_probes_in_objfile): Update comment.
710 * target.h (enum flash_preserve_mode): Update comment.
711 * varobj.c (varobj_restrict_range): Update comment.
712 * varobj.h (varobj_list_children): Update comment.
713
0dc32745
AB
7142019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * Makefile.in: Remove references to vec.h and vec.c.
717 * aarch64-tdep.c: No longer include vec.h.
718 * ada-lang.c: Likewise.
719 * ada-lang.h: Likewise.
720 * arm-tdep.c: Likewise.
721 * ax.h: Likewise.
722 * breakpoint.h: Likewise.
723 * charset.c: Likewise.
724 * cp-support.h: Likewise.
725 * dtrace-probe.c: Likewise.
726 * dwarf2read.c: Likewise.
727 * extension.h: Likewise.
728 * gdb_bfd.c: Likewise.
729 * gdbsupport/gdb_vecs.h: Likewise.
730 * gdbsupport/vec.c: Remove.
731 * gdbsupport/vec.h: Remove.
732 * gdbthread.h: Likewise.
733 * guile/scm-type.c: Likewise.
734 * inline-frame.c: Likewise.
735 * machoread.c: Likewise.
736 * memattr.c: Likewise.
737 * memrange.h: Likewise.
738 * namespace.h: Likewise.
739 * nat/linux-btrace.h: Likewise.
740 * osdata.c: Likewise.
741 * parser-defs.h: Likewise.
742 * progspace.h: Likewise.
743 * python/py-type.c: Likewise.
744 * record-btrace.c: Likewise.
745 * rust-exp.y: Likewise.
746 * solib-target.c: Likewise.
747 * stap-probe.c: Likewise.
748 * target-descriptions.c: Likewise.
749 * target-memory.c: Likewise.
750 * target.h: Likewise.
751 * varobj.c: Likewise.
752 * varobj.h: Likewise.
753 * xml-support.h: Likewise.
754
ae640021
AB
7552019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
758 Update for new std::vector based implementation.
759 (process_psymtab_comp_unit_reader): Likewise.
760 (scan_partial_symbols): Likewise.
761 (recursively_compute_inclusions): Likewise.
762 (compute_compunit_symtab_includes): Likewise.
763 (process_imported_unit_die): Likewise.
764 (queue_and_load_dwo_tu): Likewise.
765 (follow_die_sig_1): Likewise.
766 * gdb/dwarf2read.h: Remove DEF_VEC_P.
767 (typedef dwarf2_per_cu_ptr): Remove.
768 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
769 function.
770 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
771 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
772 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
773 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
774 std::vector.
775
55dfc88f
TT
7762019-10-15 Tom Tromey <tromey@adacore.com>
777
778 * windows-nat.c (windows_nat_target::resume): Use %x when logging
779 TID.
780
96b49c5e
TT
7812019-10-15 Tom Tromey <tromey@adacore.com>
782
783 * windows-nat.c (windows_nat_target::fetch_registers)
784 (windows_nat_target::store_registers): Rename "pid" to "tid".
785
953cff56
TT
7862019-10-15 Tom Tromey <tromey@adacore.com>
787
788 * gdbarch.h, gdbarch.c: Rebuild.
789 * gdbarch.sh (gcc_target_options): Change return type to
790 std::string.
791 * compile/compile.c (get_args): Update.
792 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
793 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
794 std::string.
795 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
796 std::string.
797 * arch-utils.c (default_gcc_target_options): Return std::string.
798 * arch-utils.h (default_gcc_target_options): Return std::string.
799 * s390-tdep.c (s390_gcc_target_options): Return std::string.
800
81e6b8eb
CB
8012019-10-15 Christian Biesinger <cbiesinger@google.com>
802
803 * breakpoint.c (breakpoint_chain): Make static.
804 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
805 of accessing breakpoint_chain.
806
95da600f
CB
8072019-10-15 Christian Biesinger <cbiesinger@google.com>
808
809 * breakpoint.c (iterate_over_breakpoints): Change function pointer
810 to a gdb::function_view and return value to bool.
811 * breakpoint.h (iterate_over_breakpoints): Likewise.
812 * dummy-frame.c (pop_dummy_frame_bpt): Update.
813 (pop_dummy_frame): Update.
814 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
815 (gdbscm_breakpoints): Update.
816 * python/py-breakpoint.c (build_bp_list): Update.
817 (gdbpy_breakpoints): Update.
818 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
819 Update.
820 (bpfinishpy_handle_stop): Update.
821 (bpfinishpy_handle_exit): Update.
822 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
823 (svr4_update_solib_event_breakpoints): Update.
824
ba18312d
AA
8252019-10-15 Andreas Arnez <arnez@linux.ibm.com>
826
827 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
828 when unwrapping single-field structs.
829
6acc1a0b
SM
8302019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * dwarf2read.c: Remove includes.
833
284782de
SM
8342019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * ui-out.c (ui_out::call_do_message): Silence
837 -Wformat-nonliteral warning.
838
073bbbb0
SM
8392019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * breakpoint.c: Remove some includes: continuations.h, skip.h,
842 mi/mi-main.h, readline/readline.h, readline/history.h. Add
843 include: readline/tilde.h.
844
7b9a15e1
CB
8452019-10-12 Christian Biesinger <cbiesinger@google.com>
846
847 * remote.c (remote_target::get_trace_status): Remove declaration of
848 trace_regblock_size.
849
cc8dee1f
CB
8502019-10-12 Christian Biesinger <cbiesinger@google.com>
851
852 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
853 (show_user): Remove declaration of cmdlist.
854 * cli/cli-cmds.h (max_user_call_depth): Declare.
855 * cli/cli-script.c (execute_user_command): Remove declaration
856 of max_user_call_depth.
857
a83d4ef6
JW
8582019-10-11 Jim Wilson <jimw@sifive.com>
859
5f93c5a6
JW
860 * gdbsupport/print-utils.h (pulongest): Fix comment.
861 (plongest): Likewise.
862 (phex): Add missing comment, mention leading zeros.
863 (phex_nz): Add mention of no leading zeros to comment.
864
a83d4ef6
JW
865 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
866 plongest instead of unsigned long long cast.
867
26344e0c
CB
8682019-10-10 Christian Biesinger <cbiesinger@google.com>
869
870 * main.c (captured_main_1): Include gdbtk.h and remove declarations
871 for external_editor_command and gdbtk_test.
872
c2c440a9
CB
8732019-10-10 Christian Biesinger <cbiesinger@google.com>
874
875 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
876 * varobj.c (varobjdebug): Move comment to...
877 * varobj.h (varobjdebug): ...here, and declare.
878
a31bff9d
TT
8792019-10-09 Tom Tromey <tom@tromey.com>
880
881 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
882 erase_data_content.
883
7523da63
TT
8842019-10-09 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
887 * tui/tui-stack.c (tui_locator_window::rerender): Update.
888 * tui/tui-command.c (tui_cmd_window::resize)
889 (tui_refresh_cmd_win): Update.
890 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
891 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
892 * tui/tui-data.c (~tui_gen_win_info): Remove.
893 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
894 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
895 (tui_redisplay_readline, tui_mld_flush)
896 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
897 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
898 (tui_data_window::erase_data_content)
899 (tui_data_item_window::rerender)
900 (tui_data_item_window::refresh_window): Update.
901 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
902 (box_win, tui_gen_win_info::make_window)
903 (tui_gen_win_info::make_visible): Update.
904 (tui_delete_win): Remove.
905 * tui/tui-winsource.c
906 (tui_source_window_base::do_erase_source_content): Update.
907 (tui_show_source_line, tui_source_window_base::update_tab_width)
908 (tui_source_window_base::update_exec_info): Update.
909 * tui/tui-data.h (struct curses_deleter): New.
910 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
911 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
912
a7798e7f
TT
9132019-10-09 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
916
5c45899e
TT
9172019-10-09 Tom Tromey <tom@tromey.com>
918
919 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
920 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
921
6d7fd9aa
TT
9222019-10-09 Tom Tromey <tom@tromey.com>
923
924 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
925 window height directly.
926 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
927 declare.
928 * tui/tui-layout.c (tui_default_win_height): Remove.
929 (tui_default_win_viewport_height): Remove.
930
d2dd1084
TT
9312019-10-09 Tom Tromey <tom@tromey.com>
932
933 * tui/tui.h: Remove comments.
934
cff32449
TV
9352019-10-09 Tom de Vries <tdevries@suse.de>
936
937 * python/lib/gdb/printer/bound_registers.py: Use
938 '^builtin_type_bound128' as regexp argument for
939 add_builtin_pretty_printer.
940
6a25e8a2
CB
9412019-10-09 Christian Biesinger <cbiesinger@google.com>
942
943 * guile/guile.c (guile_extension_script_ops): Remove forward
944 declaration and mark as static.
945 (guile_script_ops): Likewise.
946 (extension_language_guile): Move further down in the file so
947 it can reference the definitions for guile_{extension_,}script_ops.
948
6d9d6da4
AA
9492019-10-09 Andreas Arnez <arnez@linux.ibm.com>
950
951 * s390-tdep.c (390_process_record): Handle new arch13 instructions
952 except SORTL, DFLTCC, and KDSA.
953
3abea05d
TT
9542019-10-08 Tom Tromey <tromey@adacore.com>
955
956 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
957 (struct safe_symbol_file_add_args): Remove.
958
dde996e2
TT
9592019-10-08 Tom Tromey <tromey@adacore.com>
960
961 * windows-nat.c: Don't include buildsym-legacy.h.
962
cd6fdaa1
TT
9632019-10-08 Tom Tromey <tromey@adacore.com>
964
965 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
966
79bb1944
CB
9672019-10-08 Christian Biesinger <cbiesinger@google.com>
968
969 * gdbtypes.c (overload_debug): Move comment to header.
970 * gdbtypes.h (overload_debug): Declare.
971 * valops.c: Remove declaration of overload_debug, instead
972 include gdbtypes.h.
973
34916edc
CB
9742019-10-08 Christian Biesinger <cbiesinger@google.com>
975
976 * language.c (show_language_command): Pass lang_frame_mismatch_warn
977 through _().
978 (lang_frame_mismatch_warn): Make const, mark with N_(), and
979 move comment...
980 * language.h (lang_frame_mismatch_warn): ... here. Also add
981 declaration.
982 * top.c (lang_frame_mismatch_warn): Remove declaration.
983 (check_frame_language_change): Pass lang_frame_mismatch_warn
984 through _().
985
bad5c026
CB
9862019-10-07 Christian Biesinger <cbiesinger@google.com>
987
988 * c-lang.h (vtbl_ptr_name): Declare.
989 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
990 it from the header.
991 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
992
51f1fdc3
CB
9932019-10-07 Christian Biesinger <cbiesinger@google.com>
994
995 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
996 gdb_static_assert.
997
30d1f018
WP
9982019-10-07 Weimin Pan <weimin.pan@oracle.com>
999
606813d5
WP
1000 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1001 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1002 * ctfread.c: New file.
1003 * ctfread.h: New file.
1004 * elfread.c: Include ctfread.h.
1005 (struct elfinfo text_p): New member ctfsect.
1006 (elf_locate_sections): Mark CTF section.
1007 (elf_symfile_read): Call elfctf_build_psymtabs.
1008 * Makefile.in (LIBCTF): Add.
1009 (CLIBS): Use it.
1010 (CDEPS): Likewise.
1011 (DIST): Add ctfread.c.
606813d5
WP
1012
10132019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * ctfread.c (struct nextfield): Renamed to ...
1016 (struct ctf_nextfield): ... this.
1017 (struct field_info): Renamed to ...
1018 (strut ctf_field_info): ... this.
1019 (attach_fields_to_type): Update for renamed structures.
1020 (ctf_add_member_cb): Likewise.
1021 (ctf_add_enum_member_cb): Likewise.
1022 (process_struct_members): Likewise.
1023 (process_enum_type): Likewise.
30d1f018 1024
518fe38c
WP
10252019-10-07 Weimin Pan <weimin.pan@oracle.com>
1026
1027 * tracectf.h: Rename, was ctf.h.
1028 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1029 * tracefile.c: Likewise.
1030 * tracepoint.c: Remove unused include ctf.h.
1031 * mi/mi-main.c: Likewise.
1032 * Makefile.in Replace ctf.c with tracectf.c.
1033
225f296a
JB
10342019-10-06 Joel Brobecker <brobecker@adacore.com>
1035
1036 * version.in: Change version number to "9.0.50.DATE-git".
1037
77c2dba3
TT
10382019-10-03 Tom Tromey <tom@tromey.com>
1039
1040 PR rust/24976:
1041 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1042
179aed7f
AB
10432019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1046 cp_search_name_hash.
1047 * NEWS: Add entry about nested function support.
1048
0a4b0913
AB
10492019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1050 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1053 for nested static variables when searchin VAR_DOMAIN.
1054 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1055 global scope, update comment.
1056 (add_partial_subprogram): Call add_partial_subprogram recursively
1057 for nested subroutines when processinng Fortran.
1058 (load_partial_dies): Process the child entities of a subprogram
1059 when processing Fortran.
1060 (partial_die_parent_scope): Handle building scope
1061 for Fortran nested functions.
1062 (process_die): Record that nested functions have a scope.
1063 (new_symbol): Always record Fortran subprograms on the global
1064 symbol list.
1065 (determine_prefix): How to build the prefix for Fortran
1066 subprograms.
1067
d8c06f22
AB
10682019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1071 have just sent the thread a SIGSTOP and are waiting for it to
1072 arrive.
1073
a8b3b8e9
AB
10742019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * btrace.c (btrace_add_pc): Remove whitespace before the template
1077 parameter in 'std::vector <...>'.
1078 (parse_xml_btrace_block): Likewise.
1079 (btrace_maint_decode_pt): Likewise.
1080 (btrace_maint_update_packets): Likewise.
1081 (btrace_maint_print_packets): Likewise.
1082 * btrace.h (struct btrace_maint_info): Likewise.
1083 * dwarf2read.c (struct type_unit_group): Likewise.
1084 (build_type_psymtabs_reader): Likewise.
1085 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1086 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1087 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1088
4d825eab
TV
10892019-10-03 Tom de Vries <tdevries@suse.de>
1090
1091 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1092 the first line of the help text for set/show style metadata.
1093
80fd2826
TT
10942019-10-02 Tom Tromey <tromey@adacore.com>
1095
1096 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1097 * gdbsupport/common-inferior.c: New file.
1098 * infcmd.c (startup_with_shell): Don't define.
1099 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1100 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1101 * inferior.h (startup_with_shell): Don't declare.
1102
70054538
CB
11032019-10-02 Christian Biesinger <cbiesinger@google.com>
1104
1105 * gdbsupport/gdb_assert.h: Include errors.h.
1106 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1107
37f6a7f4
TT
11082019-10-02 Tom Tromey <tromey@adacore.com>
1109
1110 * NEWS: Add $_ada_exception entry.
1111 * ada-lang.c (struct ada_catchpoint): Add constructor.
1112 <m_kind>: New member.
1113 (allocate_location_exception, re_set_exception): Remove
1114 "ex" parameter.
1115 (should_stop_exception): Compute $_ada_exception.
1116 (check_status_exception, print_it_exception)
1117 (print_one_exception, print_mention_exception): Remove
1118 "ex" parameter.
1119 (allocate_location_catch_exception, re_set_catch_exception)
1120 (check_status_exception, print_it_catch_exception)
1121 (print_one_catch_exception, print_mention_catch_exception)
1122 (print_recreate_catch_exception)
1123 (allocate_location_catch_exception_unhandled)
1124 (re_set_catch_exception_unhandled)
1125 (check_status_exception, print_it_catch_exception_unhandled)
1126 (print_one_catch_exception_unhandled)
1127 (print_mention_catch_exception_unhandled)
1128 (print_recreate_catch_exception_unhandled)
1129 (allocate_location_catch_assert, re_set_catch_assert)
1130 (check_status_assert, print_it_catch_assert)
1131 (print_one_catch_assert, print_mention_catch_assert)
1132 (print_recreate_catch_assert)
1133 (allocate_location_catch_handlers, re_set_catch_handlers)
1134 (check_status_handlers, print_it_catch_handlers)
1135 (print_one_catch_handlers, print_mention_catch_handlers)
1136 (print_recreate_catch_handlers): Remove.
1137 (create_ada_exception_catchpoint): Update.
1138 (initialize_ada_catchpoint_ops): Update.
1139
fccf9de1
TT
11402019-10-02 Tom Tromey <tromey@adacore.com>
1141
1142 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1143 (create_excep_cond_exprs): Simplify exception string computation.
1144 (ada_exception_catchpoint_cond_string): Likewise.
1145
4b610737
TT
11462019-10-02 Tom Tromey <tromey@adacore.com>
1147
1148 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1149 * ada-lang.c (lesseq_defined_than): Handle
1150 LOC_STATIC.
1151 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1152 parameter.
1153 (dwarf2_has_info): Likewise.
1154 (new_symbol): Set maybe_copied on symbol when
1155 appropriate.
1156 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1157 parameter.
1158 <can_copy>: New member.
1159 * elfread.c (record_minimal_symbol): Set maybe_copied
1160 on symbol when appropriate.
1161 (elf_symfile_read): Update call to dwarf2_has_info.
1162 * minsyms.c (lookup_minimal_symbol_linkage): New
1163 function.
1164 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1165 * symtab.c (get_symbol_address, get_msymbol_address):
1166 New functions.
1167 * symtab.h (get_symbol_address, get_msymbol_address):
1168 Declare.
1169 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1170 maybe_copied.
1171 (struct symbol, struct minimal_symbol) <maybe_copied>:
1172 New member.
1173
1dd58850
TT
11742019-10-02 Tom Tromey <tromey@adacore.com>
1175
1176 * source.c (struct current_source_location): New.
1177 (current_source_key): New global.
1178 (current_source_symtab, current_source_line)
1179 (current_source_pspace): Remove.
1180 (get_source_location): New function.
1181 (get_current_source_symtab_and_line)
1182 (set_default_source_symtab_and_line)
1183 (set_current_source_symtab_and_line)
1184 (clear_current_source_symtab_and_line, select_source_symtab)
1185 (info_source_command, print_source_lines_base)
1186 (info_line_command, search_command_helper, _initialize_source):
1187 Update.
1188
5c281dbb
TT
11892019-10-02 Tom Tromey <tromey@adacore.com>
1190
1191 * source.c (select_source_symtab): Don't call
1192 decode_line_with_current_source.
1193
d3d32391
AB
11942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * symtab.c (lookup_global_symbol): Search global block.
1197
38583298
TT
11982019-10-02 Tom Tromey <tromey@adacore.com>
1199
1200 * coffread.c (process_coff_symbol): Update.
1201 * dwarf2read.c (var_decode_location, new_symbol): Update.
1202 * mdebugread.c (parse_symbol): Update.
1203 * objfiles.c (relocate_one_symbol): Update.
1204 * stabsread.c (define_symbol, fix_common_block)
1205 (scan_file_globals): Update.
1206 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1207 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1208 * xcoffread.c (process_xcoff_symbol): Update.
1209
9344c18f
AA
12102019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1211
1212 * MAINTAINERS: Update my email address.
1213
df07e2c7
AB
12142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1217 std::vector.
1218 (build_type_psymtabs_reader): Update for std::vector.
1219 (build_type_psymtab_dependencies): Likewise.
1220 * dwarf2read.h: Remove use of DEF_VEC_P.
1221 (typedef sig_type_ptr): Delete.
1222
554ac434
AB
12232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1226 to std::vector.
1227 (btrace_maint_decode_pt): Likewise, and move allocation of the
1228 vector outside of the loop.
1229 (btrace_maint_update_packets): Update to handle change from VEC to
1230 std::vector.
1231 (btrace_maint_print_packets): Likewise.
1232 (maint_info_btrace_cmd): Likewise.
1233 * btrace.h: Remove use of DEF_VEC_O.
1234 (typedef btrace_pt_packet_s): Delete.
1235 (struct btrace_maint_info) <packets>: Change fromm VEC to
1236 std::vector.
1237 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1238
46f29a9a
AB
12392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1242 make accesses into the vector constant references.
1243 (btrace_add_pc): Update for std::vector.
1244 (btrace_stitch_bts): Likewise.
1245 (parse_xml_btrace_block): Likewise.
1246 (btrace_maint_update_packets): Likewise.
1247 (btrace_maint_print_packets): Likewise.
1248 (maint_info_btrace_cmd): Likewise.
1249 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1250 std::vector.
1251 (btrace_data::empty): Likewise.
1252 (btrace_data_append): Likewise.
1253 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1254 (typedef btrace_block_s): Delete.
1255 (struct btrace_block): Add constructor.
1256 (struct btrace_data_bts) <blocks>: Change to std::vector.
1257 * nat/linux-btrace.c (perf_event_read_bts): Update for
1258 std::vector.
1259 (linux_read_bts): Likewise.
1260
d770d56f
TT
12612019-10-01 Tom Tromey <tom@tromey.com>
1262
1263 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1264
9d636d67
TT
12652019-10-01 Tom Tromey <tom@tromey.com>
1266
1267 * stack.c (print_frame, info_frame_command_core): Use
1268 styled_string.
1269 * linux-thread-db.c (try_thread_db_load_1)
1270 (try_thread_db_load_from_pdir_1): Use styled_string.
1271 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1272 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1273 (maybe_print_unsupported_script_warning)
1274 (maybe_print_script_not_found_warning): Use styled_string.
1275 * ada-lang.c (user_select_syms): Use styled_string.
1276
7f6aba03
TT
12772019-10-01 Tom Tromey <tom@tromey.com>
1278
1279 * p-lang.c (pascal_printstr): Use metadata style.
1280 * value.c (show_convenience): Use metadata style.
1281 * valprint.c (valprint_check_validity, val_print_optimized_out)
1282 (val_print_not_saved, val_print_unavailable)
1283 (val_print_invalid_address, generic_val_print, val_print)
1284 (value_check_printable, val_print_array_elements): Use metadata
1285 style.
1286 * ui-out.h (class ui_out) <field_fmt>: New overload.
1287 <do_field_fmt>: Add style parameter.
1288 * ui-out.c (ui_out::field_fmt): New overload.
1289 * typeprint.c (type_print_unknown_return_type)
1290 (val_print_not_allocated, val_print_not_associated): Use metadata
1291 style.
1292 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1293 parameter.
1294 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1295 * tracepoint.c (tvariables_info_1): Use metadata style.
1296 * stack.c (print_frame_arg, print_frame_info, print_frame)
1297 (info_frame_command_core): Use metadata style.
1298 * skip.c (info_skip_command): Use metadata style.
1299 * rust-lang.c (rust_print_enum): Use metadata style.
1300 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1301 metadata style.
1302 * python/py-framefilter.c (py_print_single_arg): Use metadata
1303 style.
1304 * printcmd.c (do_one_display, print_variable_and_value): Use
1305 metadata style.
1306 * p-valprint.c (pascal_val_print)
1307 (pascal_object_print_value_fields): Use metadata style.
1308 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1309 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1310 parameter.
1311 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1312 * m2-valprint.c (m2_print_long_set): Use metadata style.
1313 * m2-typeprint.c (m2_print_type): Use metadata style.
1314 * infcmd.c (print_return_value_1): Use metadata style.
1315 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1316 * f-valprint.c (info_common_command_for_block): Use metadata
1317 style.
1318 * f-typeprint.c (f_type_print_base): Use metadata style.
1319 * expprint.c (print_subexp_standard): Use metadata style.
1320 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1321 * cli/cli-style.h (class cli_style_option): Add constructor.
1322 (metadata_style): Declare.
1323 * cli/cli-style.c (metadata_style): New global.
1324 (_initialize_cli_style): Register metadata style.
1325 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1326 parameter.
1327 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1328 * c-typeprint.c (c_type_print_base_struct_union)
1329 (c_type_print_base_1): Use metadata style.
1330 * breakpoint.c (watchpoint_value_print)
1331 (print_one_breakpoint_location): Use metadata style.
1332 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1333 style.
1334 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1335 style.
1336 * ada-valprint.c (val_print_packed_array_elements, printstr)
1337 (print_field_values, ada_val_print_ref, ada_val_print): Use
1338 metadata style.
1339 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1340 style.
1341 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1342 style.
1343 * ada-lang.c (user_select_syms): Use metadata style.
1344
14309bb6
TT
13452019-10-01 Tom Tromey <tom@tromey.com>
1346
1347 * cli/cli-cmds.c (pwd_command): Style output.
1348
6a831f06
PA
13492019-10-01 Pedro Alves <palves@redhat.com>
1350 Tom Tromey <tom@tromey.com>
1351
1352 * symtab.c (print_symbol_info): Use %ps.
1353 (print_msymbol_info): Use %ps.
1354 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1355 * printcmd.c (print_variable_and_value): Use %ps.
1356 * macrocmd.c (show_pp_source_pos): Use %ps.
1357 * infrun.c (print_exited_reason): Use ui_out::message.
1358 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1359 (describe_other_breakpoints): Use ui_out::message and new
1360 formats.
1361 (say_where): Use new formats.
1362 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1363 and new formats.
1364
2a3c1174
PA
13652019-10-01 Pedro Alves <palves@redhat.com>
1366 Tom Tromey <tom@tromey.com>
1367
1368 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1369 (test_gdb_formats): New function.
1370 (run_tests): Call it.
1371 (test_format_specifier): Update.
1372 * utils.h (fputs_filtered): Update comment.
1373 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1374 (fputs_styled_unfiltered): Declare.
1375 * utils.c (fputs_styled_unfiltered): New function.
1376 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1377 (vfprintf_filtered): Update.
1378 (vfprintf_unfiltered, vprintf_filtered): Update.
1379 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1380 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1381 disallow_ui_out_field>: New constants.
1382 (enum class field_kind): New.
1383 (struct base_field_s, struct signed_field_s): New.
1384 (signed_field): New function.
1385 (struct string_field_s): New.
1386 (string_field): New function.
1387 (struct styled_string_s): New.
1388 (styled_string): New function.
1389 (class ui_out) <message>: Add comment.
1390 <vmessage, call_do_message>: New methods.
1391 <do_message>: Add style parameter.
1392 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1393 methods.
1394 (ui_out::message): Rewrite.
1395 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1396 parameter.
1397 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1398 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1399 gdb_extensions parameter.
1400 (class format_piece): Add parameter to constructor.
1401 (n_int_args): New field.
1402 * gdbsupport/format.c (format_pieces::format_pieces): Add
1403 gdb_extensions parameter. Handle '*'.
1404 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1405 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1406 vfprintf_styled_no_gdbfmt.
1407 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1408 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1409 unfiltered output.
1410 * ui-style.h (struct ui_file_style) <ptr>: New method.
1411
0dfe5bfb
TT
14122019-10-01 Tom Tromey <tom@tromey.com>
1413
1414 * unittests/format_pieces-selftests.c: Update. Add final format.
1415 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1416 empty literal pieces.
1417
e43b10e1
TT
14182019-10-01 Tom Tromey <tom@tromey.com>
1419
1420 * ui-out.h (enum class ui_out_style_kind): Remove.
1421 (class ui_out) <field_string, field_stsream, do_field_string>:
1422 Change type of "style".
1423 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1424 (ui_out::field_string): Update.
1425 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1426 of "style".
1427 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1428 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1429 * stack.c (print_frame_arg, print_frame_info, print_frame):
1430 Update.
1431 * source.c (print_source_lines_base): Update.
1432 * solib.c (info_sharedlibrary_command): Update.
1433 * skip.c (info_skip_command): Update.
1434 * record-btrace.c (btrace_call_history_src_line)
1435 (btrace_call_history): Update.
1436 * python/py-framefilter.c (py_print_frame): Update.
1437 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1438 "style".
1439 * mi/mi-out.c (mi_ui_out::do_table_header)
1440 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1441 (mi_ui_out::do_field_string): Update.
1442 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1443 Update.
1444 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1445 "style".
1446 * cli-out.c (cli_ui_out::do_table_header)
1447 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1448 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1449 (cli_ui_out::do_field_fmt): Update.
1450 * breakpoint.c (print_breakpoint_location): Update.
1451 (update_static_tracepoint): Update.
1452
cd7c32c3
PW
14532019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1454
1455 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1456 conversion of gdb_datadir.
1457 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1458 remove not needed c_str ().
1459
8fe0f950
AT
14602019-09-30 Ali Tamur <tamur@google.com>
1461
1462 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1463 (dwarf2_string_attr): Likewise.
1464
5f48f8f3
AT
14652019-09-30 Ali Tamur <tamur@google.com>
1466
1467 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1468 (process_full_type_unit): Likewise.
1469 (dump_die_shallow): Likewise.
1470 (cu_debug_loc_section): Likewise.
1471
6fb08628
CB
14722019-09-28 Christian Biesinger <cbiesinger@google.com>
1473
1474 * minsyms.c (compare_minimal_symbols): Rename to...
1475 (minimal_symbol_is_less_than): ...this, and adjust to STL
1476 conventions (return bool, take arguments as references)
1477 (minimal_symbol_reader::install): Call std::sort instead
1478 of qsort.
1479
c7ee338a
CB
14802019-09-29 Christian Biesinger <cbiesinger@google.com>
1481
1482 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1483 hash and why.
1484 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1485 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1486
703a86c2
SM
14872019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1490 * psympriv.h (add_psymbol_to_list): Move comment here and update
1491 it.
1492
0df0352a
TV
14932019-09-29 Tom de Vries <tdevries@suse.de>
1494
1495 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1496 Use $tmpdir/$(basename "$output_file").dwz instead of
1497 "${output_file}.dwz".
1498
ad75efa6
SM
14992019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1500
1501 PR gdb/25045
1502 * hppa-linux-nat.c: Include gdbarch.h.
1503
ececd218
CB
15042019-09-26 Christian Biesinger <cbiesinger@google.com>
1505
1506 * blockframe.c (find_pc_partial_function): Change return type to bool.
1507 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1508 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1509 (stub_gnu_ifunc_resolve_name): Likewise.
1510 * symtab.c (compare_filenames_for_search): Likewise.
1511 (compare_glob_filenames_for_search): Likewise.
1512 (matching_obj_sections): Likewise.
1513 (symbol_matches_domain): Likewise.
1514 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1515 (find_line_pc): Change return type to bool.
1516 (find_line_pc_range): Likewise.
1517 (producer_is_realview): Likewise.
1518 * symtab.h (symbol_matches_domain): Likewise.
1519 (find_pc_partial_function): Likewise.
1520 (find_pc_line_pc_range): Likewise.
1521 (in_gnu_ifunc_stub): Likewise.
1522 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1523 (find_line_pc): Likewise.
1524 (find_line_pc_range): Likewise.
1525 (matching_obj_sections): Likewise.
1526 (find_line_symtab): Change out parameter to bool.
1527 (producer_is_realview): Change return type to bool.
1528 (compare_filenames_for_search): Likewise.
1529 (compare_glob_filenames_for_search): Likewise.
1530
27a900b8
TT
15312019-09-26 Tom Tromey <tom@tromey.com>
1532
1533 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1534 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1535 * gdb_usleep.h: Remove.
1536 * gdb_usleep.c: Remove.
1537 * utils.c: Don't include gdb_usleep.h.
1538
5d63b30a
TT
15392019-09-26 Tom Tromey <tromey@adacore.com>
1540
1541 * python/py-type.c (type_to_type_object): Call check_typedef
1542 for stub types.
1543
12904d37
TT
15442019-09-26 Tom Tromey <tom@tromey.com>
1545
1546 * utils.h (initialize_utils): Don't declare.
1547 * top.c (gdb_init): Don't call initialize_utils.
1548 * utils.c (initialize_utils): Remove. Move contents...
1549 (_initialize_utils): ... here.
1550
858f25f0
TT
15512019-09-25 Tom Tromey <tom@tromey.com>
1552
1553 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1554 * utils.h (make_hex_string): Don't declare.
1555 * utils.c (make_hex_string): Remove.
1556
3d435220
TV
15572019-09-24 Tom de Vries <tdevries@suse.de>
1558
1559 PR gdb/23815
1560 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1561 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1562
ddd44b70
DD
15632019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1564
1565 * NEWS: Mention new simulator port for PRU.
1566
f945dedf
CB
15672019-09-23 Christian Biesinger <cbiesinger@google.com>
1568
1569 * ada-exp.y (write_object_remaining): Update.
1570 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1571 and eliminate the static buffer.
1572 (ada_decode_symbol): Update.
1573 (ada_la_decode): Update.
1574 (ada_sniff_from_mangled_name): Update.
1575 (is_valid_name_for_wild_match): Update.
1576 (ada_lookup_name_info::matches): Update and simplify.
1577 (name_matches_regex): Update.
1578 (ada_add_global_exceptions): Update.
1579 * ada-lang.h (ada_decode): Update signature.
1580 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1581 * dwarf-index-write.c (debug_names::insert): Update.
1582
7ab78ccb
SM
15832019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1584
1585 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1586 formatting.
1587
9252448b
SM
15882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1591 Change "nonzero" to "true" in documentation.
1592
626ca2c0
CB
15932019-09-20 Christian Biesinger <cbiesinger@google.com>
1594
1595 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1596 (_initialize_darwin_solib): Don't set
1597 darwin_so_ops.lookup_lib_global_symbol.
1598 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1599 set_gdbarch_iterate_over_objfiles_in_search_order.
1600 (elf_lookup_lib_symbol): Rename to...
1601 (svr4_iterate_over_objfiles_in_search_order): this, and update
1602 to iterate semantics.
1603 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1604 * solib.c (solib_global_lookup): Remove.
1605 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1606 (solib_global_lookup): Remove.
1607 * symtab.c (lookup_global_or_static_symbol): Remove call to
1608 solib_global_lookup.
1609
5a3a0d63
JB
16102019-09-20 Joel Brobecker <brobecker@adacore.com>
1611
1612 * NEWS: Move entries about default MI version now being
1613 version 3, and about the GDB/MI fix for multi-location
1614 breakpoints to the "since GDB 8.3" section.
1615
ffea1427
JB
16162019-09-20 Joel Brobecker <brobecker@adacore.com>
1617
1618 GDB 8.3.1 released.
1619
abf516c6
UW
16202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1621
1622 * NEWS: Mention that Cell/B.E. debugging support was removed.
1623 * MAINTAINERS: Remove spu target.
1624
1625 * config/djgpp/fnchange.lst: Remove entries for removed files.
1626
1627 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1628 spu-multiarch.o, and spu-tdep.o.
1629 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1630 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1631 spu-multiarch.c, and spu-tdep.c.
1632 * spu-linux-nat.c: Remove file.
1633 * spu-multiarch.c: Remove file.
1634 * spu-tdep.c: Remove file.
1635 * spu-tdep.h: Remove file.
1636 * solib-spu.c: Remove file.
1637 * solib-spu.h: Remove file.
1638
1639 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1640 * configure.nat (spu-linux): Remove.
1641 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1642 solib-multiarch.o from gdb_target_obs.
1643 (spu*-*-*): Remove.
1644
1645 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1646 feature flag.
1647 (ppc_linux_no_features): Update.
1648 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1649 Cell/B.E. support.
1650 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1651 (tdesc_powerpc_cell64l): Likewise.
1652 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1653 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1654 Cell/B.E. support.
1655 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1656 Do not include "features/rs6000/powerpc-cell32l.c" or
1657 "features/rs6000/powerpc-cell64l.c".
1658 (ppc_linux_spu_section): Remove.
1659 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1660 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1661 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1662 (ppc_linux_spe_context_lookup): Remove.
1663 (ppc_linux_spe_context_inferior_created): Remove.
1664 (ppc_linux_spe_context_solib_loaded): Remove.
1665 (ppc_linux_spe_context_solib_unloaded): Remove.
1666 (ppc_linux_spe_context): Remove.
1667 (struct ppu2spu_cache): Remove.
1668 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1669 (struct ppu2spu_data): Remove.
1670 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1671 ppu2spu_unwind): Remove.
1672 (ppc_linux_init_abi): Remove Cell/B.E. support.
1673 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1674
1675 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1676 (rs6000/powerpc-cell64l-expedite): Likewise
1677 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1678 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1679 rs6000/powerpc-cell64l.xml.
1680 * features/rs6000/powerpc-cell32l.xml: Remove.
1681 * features/rs6000/powerpc-cell64l.xml: Likewise.
1682 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1683 * features/rs6000/powerpc-cell64l.c: Likewise.
1684 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1685 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1686 * regformats/reg-spu.dat: Remove.
1687
1688 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1689 * corelow.c (struct spuid_list): Remove.
1690 (add_to_spuid_list): Remove.
1691 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1692 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1693 (remote_protocol_features): Remove associated entries.
1694 (_initialize_remote): No longer initialize them.
1695 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1696 * linux-nat.c (SPUFS_MAGIC): Remove.
1697 (linux_proc_xfer_spu): Remove.
1698 (spu_enumerate_spu_ids): Remove.
1699 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1700 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1701 (linux_make_corefile_notes): No longer call it.
1702
1703 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1704 (cooked_write_test): Likewise.
1705
78e8cb91
TT
17062019-09-20 Tom Tromey <tom@tromey.com>
1707
1708 * NEWS: Mention case-sensitivity of TUI commands.
1709 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1710 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1711 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1712
f074b67e
TT
17132019-09-20 Tom Tromey <tom@tromey.com>
1714
1715 * tui/tui-source.c (tui_source_window::set_contents): Use
1716 make_unique_xstrdup.
1717 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1718 make_unique_xstrdup.
1719
63c4bf19
TT
17202019-09-20 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-data.c: Remove separator comments.
1723 * tui/tui-layout.c: Remove separator comments.
1724 * tui/tui-win.c: Remove separator comments.
1725 * tui/tui-wingeneral.c: Remove separator comments.
1726
43df9b2f
TT
17272019-09-20 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui.h (strcat_to_buf): Don't declare.
1730 * tui/tui.c (strcat_to_buf): Remove.
1731
7226433c
TT
17322019-09-20 Tom Tromey <tom@tromey.com>
1733
1734 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1735 from "fullname".
1736 * tui/tui-source.c (tui_source_window::set_contents)
1737 (tui_source_window::location_matches_p)
1738 (tui_source_window::maybe_update): Update.
1739
80df3337
TT
17402019-09-20 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1743 Update.
1744 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1745 prefix.
1746 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1747 (tui_data_window::line_from_reg_element_no)
1748 (tui_data_window::first_reg_element_no_inline)
1749 (tui_data_window::show_registers)
1750 (tui_data_window::show_register_group)
1751 (tui_data_window::display_registers_from)
1752 (tui_data_window::display_registers_from_line)
1753 (tui_data_window::first_data_item_displayed)
1754 (tui_data_window::delete_data_content_windows)
1755 (tui_data_window::erase_data_content)
1756 (tui_data_window::do_scroll_vertical)
1757 (tui_data_window::refresh_window)
1758 (tui_data_window::check_register_values): Update.
1759
9923f347
TT
17602019-09-20 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1763 (struct tui_locator_window) <full_name, proc_name>: Now
1764 std::string.
1765 * tui/tui-stack.c (tui_locator_window::make_status_line)
1766 (tui_locator_window::set_locator_fullname)
1767 (tui_locator_window::set_locator_info): Update.
1768 * tui/tui-source.c (tui_source_window::set_contents)
1769 (tui_source_window::showing_source_p): Update.
1770
b76251ab
TT
17712019-09-20 Tom Tromey <tom@tromey.com>
1772
1773 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1774 Don't call tui_locator_win_info_ptr.
1775
0891be08
TT
17762019-09-20 Tom Tromey <tom@tromey.com>
1777
1778 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1779
1b935acf
TT
17802019-09-20 Tom Tromey <tom@tromey.com>
1781
1782 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1783 height for locator.
1784 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1785 * tui/tui-layout.c (show_source_disasm_command, show_data)
1786 (show_source_or_disasm_and_command): Use 1 as height for locator.
1787
9abd8a65
TT
17882019-09-20 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui.c (tui_enable): Update.
1791 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1792 Update.
1793 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1794 Update.
1795 * tui/tui-data.c (win_resized): Now bool.
1796 (tui_win_resized): Return bool.
1797 (tui_set_win_resized_to): Accept a bool.
1798
b5457826
TT
17992019-09-20 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1802 Change type of "refresh_values_only".
1803 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1804 type of "refresh_values_only".
1805
6b915f7d
TT
18062019-09-20 Tom Tromey <tom@tromey.com>
1807
1808 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1809 std::string.
1810 (tui_disassemble): Add "pos" parameter.
1811 (tui_disasm_window::set_contents): Simplify.
1812
2ad52f6f
TT
18132019-09-20 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-winsource.h (struct tui_source_window_base)
1816 <show_source_content>: Now private.
1817 * tui/tui-winsource.c
1818 (tui_source_window_base::show_source_content): Don't handle empty
1819 content case.
1820
b3b1bde6
TT
18212019-09-20 Tom Tromey <tom@tromey.com>
1822
1823 * tui/tui-layout.c (show_source_disasm_command)
1824 (show_source_or_disasm_and_command): Don't call
1825 show_source_content.
1826
71a25ed2
TT
18272019-09-20 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1830 Declare.
1831 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1832 from tui_make_status_line.
1833 (tui_locator_window::rerender): Update.
1834
f8532154
TT
18352019-09-20 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1838 (tui_locator_window::rerender): Update.
1839
2d81b349
TT
18402019-09-20 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-winsource.h (struct tui_source_window_base)
1843 <~tui_source_window_base>: Don't declare.
1844 <fullname>: Remove.
1845 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1846 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1847 member.
1848 * tui/tui-source.c (tui_source_window::set_contents): Update.
1849 (tui_source_window::location_matches_p)
1850 (tui_source_window::maybe_update): Update.
1851
f14bec58
TT
18522019-09-20 Tom Tromey <tom@tromey.com>
1853
1854 * tui/tui-winsource.h (~tui_source_element): Remove.
1855 (tui_source_element): Update.
1856 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1857 * tui/tui-winsource.c (tui_show_source_line): Update.
1858 * tui/tui-source.c (tui_source_window::set_contents): Update.
1859 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1860
78d5933a
TT
18612019-09-20 Tom Tromey <tom@tromey.com>
1862
1863 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1864 declare.
1865 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1866 tui_clear_source_windows_detail.
1867 * tui/tui-winsource.h (struct tui_source_window_base)
1868 <clear_detail>: Don't declare.
1869 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1870 Remove.
1871 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1872
d4207696
TT
18732019-09-20 Tom Tromey <tromey@adacore.com>
1874
1875 PR ada/24919:
1876 * block.c (contained_in): Fix final return value.
1877
00f93c44
AM
18782019-09-20 Alan Modra <amodra@gmail.com>
1879
1880 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1881 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1882 (read_indirect_string_from_dwz): Use bfd accessor.
1883 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1884 * machoread.c (macho_symfile_read_all_oso): Likewise.
1885 * solib.c (solib_bfd_open): Likewise.
1886
e4153ae6
CB
18872019-09-19 Christian Biesinger <cbiesinger@google.com>
1888
1889 * eval.c: Move declaration of overload_resolution to...
1890 * value.h: ...here.
1891
c7ae7675
CB
18922019-09-19 Christian Biesinger <cbiesinger@google.com>
1893
1894 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1895 * arm-linux-tdep.c: Likewise.
1896 * arm-nbsd-nat.c: Likewise.
1897 * arm-tdep.h: Declare arm_apcs_32.
1898 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1899
e86f08d2
CB
19002019-09-19 Christian Biesinger <cbiesinger@google.com>
1901
1902 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1903 * dwarf2read.h: Declare dwarf_always_disassemble.
1904
f64e2f40
TV
19052019-09-19 Tom de Vries <tdevries@suse.de>
1906
1907 PR gdb/25009
1908 * source-cache.c (source_cache::ensure): Catch exception thrown during
1909 construction of the highlighter.
1910
fd361982
AM
19112019-09-18 Alan Modra <amodra@gmail.com>
1912
1913 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1914 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1915 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1916 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1917 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1918 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1919 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1920 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1921 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1922 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1923 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1924 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1925 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1926 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1927 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1928 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1929 * mi/mi-interp.c: Update throughout for bfd section macro and
1930 function changes.
1931 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1932 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1933
11061048
TT
19342019-09-18 Tom Tromey <tom@tromey.com>
1935
1936 * NEWS: Add entry.
1937 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1938 call rl_initialize.
1939 (tui_enable): Do not call rl_initialize.
1940
7a27b85f
CG
19412019-09-18 Christian Groessler <chris@groessler.org>
1942
1943 * alpha-linux-nat.c: Include gdbarch.h.
1944
f64eea3a
SM
19452019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * ui-file.c: Include cli/cli-style.h.
1948 (term_cli_styling): Remove cli_styling declaration.
1949
e6f7f6d1
AM
19502019-09-18 Alan Modra <amodra@gmail.com>
1951
1952 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1953 to bfd_asymbol_section.
1954
1d38e9d1
AM
19552019-09-18 Alan Modra <amodra@gmail.com>
1956
1957 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1958 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1959 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1960
90d92a63
AM
19612019-09-18 Alan Modra <amodra@gmail.com>
1962
1963 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1964 * spu-linux-nat.c (spu_bfd_open): Likewise.
1965
a3d181d2
CB
19662019-09-18 Christian Biesinger <cbiesinger@google.com>
1967
1968 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1969 to bool to match definition in dwarf2read.c.
1970
491144b5
CB
19712019-09-17 Christian Biesinger <cbiesinger@google.com>
1972
1973 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1974 (print_signatures): Likewise.
1975 (trust_pad_over_xvs): Likewise.
1976 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1977 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1978 * arm-linux-nat.c (arm_apcs_32): Likewise.
1979 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1980 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1981 * arm-tdep.c (arm_debug): Likewise.
1982 (arm_apcs_32): Likewise.
1983 * auto-load.c (debug_auto_load): Likewise.
1984 (auto_load_gdb_scripts): Likewise.
1985 (global_auto_load): Likewise.
1986 (auto_load_local_gdbinit): Likewise.
1987 (auto_load_local_gdbinit_loaded): Likewise.
1988 * auto-load.h (global_auto_load): Likewise.
1989 (auto_load_local_gdbinit): Likewise.
1990 (auto_load_local_gdbinit_loaded): Likewise.
1991 * breakpoint.c (disconnected_dprintf): Likewise.
1992 (breakpoint_proceeded): Likewise.
1993 (automatic_hardware_breakpoints): Likewise.
1994 (always_inserted_mode): Likewise.
1995 (target_exact_watchpoints): Likewise.
1996 (_initialize_breakpoint): Update.
1997 * breakpoint.h (target_exact_watchpoints): Change to bool.
1998 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1999 * cli/cli-cmds.c (trace_commands): Likewise.
2000 * cli/cli-cmds.h (trace_commands): Likewise.
2001 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2002 to bool*.
2003 * cli/cli-logging.c (logging_overwrite): Change to bool.
2004 (logging_redirect): Likewise.
2005 (debug_redirect): Likewise.
2006 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2007 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2008 to bool.
2009 <boolean_option_def>: Update.
2010 (struct flag_option_def): Change default type of Context to bool
2011 from int.
2012 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2013 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2014 (get_setshow_command_value_string): Likewise.
2015 * cli/cli-style.c (cli_styling): Change to bool.
2016 (source_styling): Likewise.
2017 * cli/cli-style.h (source_styling): Likewise.
2018 (cli_styling): Likewise.
2019 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2020 to bool.
2021 * command.h (var_types): Update comment.
2022 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2023 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2024 bool.
2025 (debug_compile_cplus_scopes): Likewise.
2026 * compile/compile-internal.h (compile_debug): Likewise.
2027 * compile/compile.c (compile_debug): Likewise.
2028 (struct compile_options) <raw>: Likewise.
2029 * cp-support.c (catch_demangler_crashes): Likewise.
2030 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2031 (usr_cmd_cris_dwarf2_cfi): Likewise.
2032 * csky-tdep.c (csky_debug): Likewise.
2033 * darwin-nat.c (enable_mach_exceptions): Likewise.
2034 * dcache.c (dcache_enabled_p): Likewise.
2035 * defs.h (info_verbose): Likewise.
2036 * demangle.c (demangle): Likewise.
2037 (asm_demangle): Likewise.
2038 * dwarf-index-cache.c (debug_index_cache): Likewise.
2039 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2040 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2041 * dwarf2read.c (check_physname): Likewise.
2042 (use_deprecated_index_sections): Likewise.
2043 (dwarf_always_disassemble): Likewise.
2044 * eval.c (overload_resolution): Likewise.
2045 * event-top.c (set_editing_cmd_var): Likewise.
2046 (exec_done_display_p): Likewise.
2047 * event-top.h (set_editing_cmd_var): Likewise.
2048 (exec_done_display_p): Likewise.
2049 * exec.c (write_files): Likewise.
2050 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2051 (debug_fbsd_nat): Likewise.
2052 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2053 Likewise.
2054 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2055 <backtrace_past_entry> Likewise.
2056 * gdb-demangle.h (demangle): Likewise.
2057 (asm_demangle): Likewise.
2058 * gdb_bfd.c (bfd_sharing): Likewise.
2059 * gdbcore.h (write_files): Likewise.
2060 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2061 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2062 * gdbthread.h (print_thread_events): Likewise.
2063 * gdbtypes.c (opaque_type_resolution): Likewise.
2064 (strict_type_checking): Likewise.
2065 * gnu-nat.c (gnu_debug_flag): Likewise.
2066 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2067 * guile/scm-param.c (pascm_variable): Add boolval.
2068 (add_setshow_generic): Update.
2069 (pascm_param_value): Update.
2070 (pascm_set_param_value_x): Update.
2071 * hppa-tdep.c (hppa_debug): Change to bool..
2072 * infcall.c (may_call_functions_p): Likewise.
2073 (coerce_float_to_double_p): Likewise.
2074 (unwind_on_signal_p): Likewise.
2075 (unwind_on_terminating_exception_p): Likewise.
2076 * infcmd.c (startup_with_shell): Likewise.
2077 * inferior.c (print_inferior_events): Likewise.
2078 * inferior.h (startup_with_shell): Likewise.
2079 (print_inferior_events): Likewise.
2080 * infrun.c (step_stop_if_no_debug): Likewise.
2081 (detach_fork): Likewise.
2082 (debug_displaced): Likewise.
2083 (disable_randomization): Likewise.
2084 (non_stop): Likewise.
2085 (non_stop_1): Likewise.
2086 (observer_mode): Likewise.
2087 (observer_mode_1): Likewise.
2088 (set_observer_mode): Update.
2089 (sched_multi): Change to bool.
2090 * infrun.h (debug_displaced): Likewise.
2091 (sched_multi): Likewise.
2092 (step_stop_if_no_debug): Likewise.
2093 (non_stop): Likewise.
2094 (disable_randomization): Likewise.
2095 * linux-tdep.c (use_coredump_filter): Likewise.
2096 (dump_excluded_mappings): Likewise.
2097 * linux-thread-db.c (auto_load_thread_db): Likewise.
2098 (check_thread_db_on_load): Likewise.
2099 * main.c (captured_main_1): Update.
2100 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2101 xx2_opt, boolean_opt>: Change to bool.
2102 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2103 * maint.c (maintenance_profile_p): Likewise.
2104 (per_command_time): Likewise.
2105 (per_command_space): Likewise.
2106 (per_command_symtab): Likewise.
2107 * memattr.c (inaccessible_by_default): Likewise.
2108 * mi/mi-main.c (mi_async): Likewise.
2109 (mi_async_1): Likewise.
2110 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2111 * nat/fork-inferior.h (startup_with_shell): Likewise.
2112 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2113 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2114 * nios2-tdep.c (nios2_debug): Likewise.
2115 * or1k-tdep.c (or1k_debug): Likewise.
2116 * parse.c (parser_debug): Likewise.
2117 * parser-defs.h (parser_debug): Likewise.
2118 * printcmd.c (print_symbol_filename): Likewise.
2119 * proc-api.c (procfs_trace): Likewise.
2120 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2121 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2122 (set_parameter_value): Update.
2123 (add_setshow_generic): Update.
2124 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2125 to bool*.
2126 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2127 int*.
2128 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2129 * record-btrace.c (record_btrace_target::store_registers): Update.
2130 * record-full.c (record_full_memory_query): Change to bool.
2131 (record_full_stop_at_limit): Likewise.
2132 * record-full.h (record_full_memory_query): Likewise.
2133 * remote-notif.c (notif_debug): Likewise.
2134 * remote-notif.h (notif_debug): Likewise.
2135 * remote.c (use_range_stepping): Likewise.
2136 (interrupt_on_connect): Likewise.
2137 (remote_break): Likewise.
2138 * ser-tcp.c (tcp_auto_retry): Likewise.
2139 * ser-unix.c (serial_hwflow): Likewise.
2140 * skip.c (debug_skip): Likewise.
2141 * solib-aix.c (solib_aix_debug): Likewise.
2142 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2143 (spu_auto_flush_cache_p): Likewise.
2144 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2145 Likewise.
2146 (struct info_print_options) <quiet>: Likewise.
2147 * symfile-debug.c (debug_symfile): Likewise.
2148 * symfile.c (auto_solib_add): Likewise.
2149 (separate_debug_file_debug): Likewise.
2150 * symfile.h (auto_solib_add): Likewise.
2151 (separate_debug_file_debug): Likewise.
2152 * symtab.c (basenames_may_differ): Likewise.
2153 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2154 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2155 (struct info_types_options) <quiet>: Likewise.
2156 * symtab.h (demangle): Likewise.
2157 (basenames_may_differ): Likewise.
2158 * target-dcache.c (stack_cache_enabled_1): Likewise.
2159 (code_cache_enabled_1): Likewise.
2160 * target.c (trust_readonly): Likewise.
2161 (may_write_registers): Likewise.
2162 (may_write_memory): Likewise.
2163 (may_insert_breakpoints): Likewise.
2164 (may_insert_tracepoints): Likewise.
2165 (may_insert_fast_tracepoints): Likewise.
2166 (may_stop): Likewise.
2167 (auto_connect_native_target): Likewise.
2168 (target_stop_and_wait): Update.
2169 (target_async_permitted): Change to bool.
2170 (target_async_permitted_1): Likewise.
2171 (may_write_registers_1): Likewise.
2172 (may_write_memory_1): Likewise.
2173 (may_insert_breakpoints_1): Likewise.
2174 (may_insert_tracepoints_1): Likewise.
2175 (may_insert_fast_tracepoints_1): Likewise.
2176 (may_stop_1): Likewise.
2177 * target.h (target_async_permitted): Likewise.
2178 (may_write_registers): Likewise.
2179 (may_write_memory): Likewise.
2180 (may_insert_breakpoints): Likewise.
2181 (may_insert_tracepoints): Likewise.
2182 (may_insert_fast_tracepoints): Likewise.
2183 (may_stop): Likewise.
2184 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2185 (make_thread_apply_all_options_def_group): Change argument from int*
2186 to bool*.
2187 (thread_apply_all_command): Update.
2188 (print_thread_events): Change to bool.
2189 * top.c (confirm): Likewise.
2190 (command_editing_p): Likewise.
2191 (history_expansion_p): Likewise.
2192 (write_history_p): Likewise.
2193 (info_verbose): Likewise.
2194 * top.h (confirm): Likewise.
2195 (history_expansion_p): Likewise.
2196 * tracepoint.c (disconnected_tracing): Likewise.
2197 (circular_trace_buffer): Likewise.
2198 * typeprint.c (print_methods): Likewise.
2199 (print_typedefs): Likewise.
2200 * utils.c (debug_timestamp): Likewise.
2201 (sevenbit_strings): Likewise.
2202 (pagination_enabled): Likewise.
2203 * utils.h (sevenbit_strings): Likewise.
2204 (pagination_enabled): Likewise.
2205 * valops.c (overload_resolution): Likewise.
2206 * valprint.h (struct value_print_options) <prettyformat_arrays,
2207 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2208 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2209 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2210 Likewise.
2211 * windows-nat.c (new_console): Likewise.
2212 (cygwin_exceptions): Likewise.
2213 (new_group): Likewise.
2214 (debug_exec): Likewise.
2215 (debug_events): Likewise.
2216 (debug_memory): Likewise.
2217 (debug_exceptions): Likewise.
2218 (useshell): Likewise.
2219 * windows-tdep.c (maint_display_all_tib): Likewise.
2220 * xml-support.c (debug_xml): Likewise.
2221
f1b620e9
MG
22222019-09-17 Mike Gulick <mgulick@mathworks.com>
2223
2224 * source.c (prepare_path_for_appending): New function.
2225 (openp): Make use of new function.
2226 (find_and_open_source): Search for the compilation directory and
2227 source file as a relative path beneath the directory search path.
2228
67f3ed6a
AB
22292019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * source-cache.c (source_cache::get_line_charpos): Catch
2232 exceptions and return false, this matches the behaviour documented
2233 in the header file.
2234
74332189
JB
22352019-09-17 Joel Brobecker <brobecker@adacore.com>
2236
2237 * ada-tasks.c (info_task): Remove quoting of the task's name.
2238
f2f24aa9
CB
22392019-09-16 Christian Biesinger <cbiesinger@google.com>
2240
2241 * symfile.c (auto_solib_add): Replace comment with a reference
2242 to the header file.
2243
6a062a93
CB
22442019-09-14 Christian Biesinger <cbiesinger@google.com>
2245
2246 * NEWS: Mention that gdb can now be compiled with Python 3
2247 on Windows.
2248
ec6c8338
AB
22492019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * maint.c (maint_print_section_data::maint_print_section_data):
2252 Force use of 'float log10 (float)' by casting the argument to
2253 float.
2254
aa17805f
AB
22552019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * maint.c: Add 'cmath' include.
2258 (struct maint_print_section_data): New structure.
2259 (print_section_index): New function.
2260 (print_bfd_section_info): Add header comment, small whitespace
2261 cleanup, and update to call new print_section_index function.
2262 (print_objfile_section_info): Likewise.
2263 (maint_obj_section_from_bfd_section): New function.
2264 (print_bfd_section_info_maybe_relocated): New function.
2265 (maintenance_info_sections): Add header comment, always use
2266 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2267
3dd9bb46
AB
22682019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2269
2270 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2271 inner scope, add check that the objfile has psymtabs before
2272 checking psymtabs_addrmap.
2273 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2274
4993045d
PW
22752019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2276
2277 * NEWS: Announce that Ada task names are now shown at more places,
2278 and between quotes (except in info task output).
2279 * gdb/ada-tasks.c (task_to_str): New function.
2280 (display_current_task_id): Call task_to_str.
2281 (task_command_1): Likewise.
2282 (print_ada_task_info): In non-mi mode, Properly align headers and data
2283 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2284
7a289707
RO
22852019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2286
2287 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2288 prstatus.pr_lwp.pr_info instead of making it up.
2289
f2aec7f6
CB
22902019-09-11 Christian Biesinger <cbiesinger@google.com>
2291
2292 * auto-load.c (auto_load_expand_dir_vars): Update.
2293 * defs.h (gdb_datadir): Change to std::string.
2294 (python_libdir): Likewise.
2295 (relocate_gdb_directory): Change return type to std::string.
2296 * guile/guile.c (gdbscm_data_directory): Update.
2297 (initialize_scheme_side): Update.
2298 * jit.c (jit_reader_dir): Change to std::string.
2299 (jit_reader_load_command): Update.
2300 * main.c (gdb_datadir): Change to std::string.
2301 (python_libdir): Likewise.
2302 (set_gdb_data_directory): Update.
2303 (relocate_path): Change to return std::string.
2304 (relocate_gdb_directory): Change to return std::string.
2305 (relocate_gdbinit_path_maybe_in_datadir): Update.
2306 (captured_main_1): Update.
2307 * python/python.c (do_start_initialization): Update.
2308 * top.c (show_gdb_datadir): Update.
2309 * xml-syscall.c (xml_init_syscalls_info): Update.
2310 (init_syscalls_info): Update.
2311
9224a013
CB
23122019-09-11 Christian Biesinger <cbiesinger@google.com>
2313
2314 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2315 out of get_init_files.
2316 (get_init_files): Update.
2317
f48cd836
CB
23182019-09-11 Christian Biesinger <cbiesinger@google.com>
2319
2320 * main.c (get_init_files): Change to use std::string.
2321 (captured_main_1): Update.
2322 (print_gdb_help): Update.
2323
9cab7ecd
AT
23242019-09-11 Ali Tamur <tamur@google.com>
2325
2326 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2327 implementation.
2328
67547d89
CB
23292019-09-11 Christian Biesinger <cbiesinger@google.com>
2330
2331 * dbxread.c (read_dbx_symtab): Update.
2332 * dwarf2read.c (load_partial_dies): Update.
2333 * mdebugread.c (parse_partial_symbols): Update.
2334 (handle_psymbol_enumerators): Update.
2335 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2336 * psymtab.c (add_psymbol_to_bcache): Likewise.
2337 (add_psymbol_to_list): Likewise.
2338 * symtab.c (symbol_set_names): Likewise.
2339 * symtab.h (symbol_set_names): Likewise.
2340 * xcoffread.c (scan_xcoff_symtab): Update.
2341
64b2d4a0
TT
23422019-09-11 Tom Tromey <tom@tromey.com>
2343
2344 * symfile-mem.c (symbol_file_add_from_memory): Use
2345 bfd_set_filename.
2346 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2347 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2348
3b00ef10
TT
23492019-09-10 Tom Tromey <tromey@adacore.com>
2350
2351 * dwarf-index-write.c (write_psymbols): Extend error message.
2352 (debug_names::insert): Add Ada code.
2353 (debug_names::write_psymbols): Remove Ada check.
2354 (debug_names) <m_string_obstack>: New member.
2355 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2356 (gdb_index_symbol_name_matcher::matches): Remove.
2357 (mapped_index_base::find_name_components_bounds): Add "lang"
2358 parameter.
2359 (mapped_index_base::build_name_components): Also split names
2360 according to Ada syntax.
2361 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2362 type of "match_callback".
2363 (check_match, check_find_bounds_finds)
2364 (dw2_expand_symtabs_matching): Update.
2365 (dw2_debug_names_iterator): Add new constructor.
2366 (dw2_debug_names_map_matching_symbols): New function.
2367 (dw2_debug_names_expand_symtabs_matching): Update.
2368 (dwarf2_debug_names_functions): Use
2369 dw2_debug_names_map_matching_symbols.
2370
aa391654
TT
23712019-09-10 Tom Tromey <tromey@adacore.com>
2372
2373 * dwarf2read.c (dw2_get_file_names_reader): Add the
2374 CU's file name to the results.
2375
b054970d
TT
23762019-09-10 Tom Tromey <tromey@adacore.com>
2377
2378 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2379 map_matching_symbols. Update.
2380 * dwarf2read.c (dw2_map_matching_symbols): Update.
2381 * psymtab.c (match_partial_symbol): Change type; update.
2382 (psym_map_matching_symbols): Likewise.
2383 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2384 type; update.
2385 * symfile.h (struct quick_symbol_functions)
2386 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2387 Remove "match".
2388
6a3dbf1b
TT
23892019-09-10 Tom Tromey <tromey@adacore.com>
2390
2391 * psymtab.c (map_block): Remove.
2392 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2393 * symtab.c (iterate_over_symbols_terminated): New function.
2394 * symtab.c (iterate_over_symbols_terminated): Declare.
2395
6969f124
TT
23962019-09-10 Tom Tromey <tromey@adacore.com>
2397
2398 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2399 * language.h (struct language_defn) <la_iterate_over_symbols>:
2400 Return bool.
2401 * symtab.c (iterate_over_symbols): Return bool.
2402 * symtab.h (iterate_over_symbols): Return bool.
2403
199b4314
TT
24042019-09-10 Tom Tromey <tromey@adacore.com>
2405
2406 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2407 (add_nonlocal_symbols): Update.
2408 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2409 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2410 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2411 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2412 Change type of "callback". Remove "data".
2413
a084a2a6
AT
2414
24152019-09-09 Ali Tamur <tamur@google.com>
2416
2417 * dwarf2read.c (comp_unit_head): Update comment.
2418 (dwarf2_dwo_name): New function declaration.
2419 (dwarf_unit_type_name): New function declaration.
2420 (read_comp_unit_head): Add support for new compilation units,
2421 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2422 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2423 (currently named as "signature") in their header. Also clarify error
2424 messages.
2425 (lookup_dwo_id): New function. Returns the dwo id of the given
2426 compile unit.
2427 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2428 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2429 functions.
2430 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2431 (dwarf2_dwo_name): Get the dwo name if present.
2432 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2433 purposes.
2434
25a2915e
TT
24352019-09-09 Tom Tromey <tom@tromey.com>
2436
2437 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2438
e4df0874
PW
24392019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2440
2441 * python/python.c (do_start_initialization): Make progname_copy static,
2442 to avoid a leak report.
2443
8634b462
TT
24442019-09-08 Tom Tromey <tom@tromey.com>
2445
2446 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2447
c7f839cb
SM
24482019-09-07 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2451 Change type to gdb::optional<block_enum>.
2452 (dw2_symtab_iter_init): Change block_index parameter type
2453 to gdb::optional<block_enum>.
2454 (dw2_lookup_symbol): Change block_index parameter
2455 type to block_enum.c
2456 (dw2_debug_names_lookup_symbol): Likewise.
2457 * psymtab.c (psym_lookup_symbol): Likewise.
2458 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2459 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2460 Likewise.
2461
ead0e69a
CB
24622019-09-06 Christian Biesinger <cbiesinger@google.com>
2463
2464 * defs.h (relocate_gdb_directory): Change int to bool in
2465 signature and rename flag to relocatable.
2466 * main.c (relocate_path): Likewise.
2467 (relocate_gdb_directory): Likewise.
2468
b16c44de
AM
24692019-09-06 Alan Modra <amodra@gmail.com>
2470
2471 * coffread.c (coff_symfile_read): Constify filename variable.
2472 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2473 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2474 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2475 * solib.c (reload_shared_libraries_1): Likewise.
2476 * symfile.c (reread_symbols): Likewise.
2477 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2478 * solib-darwin.c (darwin_bfd_open): Likewise.
2479 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2480
06ff036e
AB
24812019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2484 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2485
4e962e74
TT
24862019-09-03 Tom Tromey <tromey@adacore.com>
2487
2488 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2489 types.
2490 (has_negatives): Unbias a range type bound.
2491 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2492 * gdbtypes.c (operator==): Handle new field.
2493 (create_range_type): Add "bias" parameter.
2494 (create_static_range_type, resolve_dynamic_range): Update.
2495 * gdbtypes.h (struct range_bounds) <bias>: New member.
2496 (create_range_type): Add bias parameter.
2497 * printcmd.c (print_scalar_formatted): Unbias range types.
2498 * value.c (unpack_long): Unbias range types.
2499 (pack_long): Bias range types.
2500
d90b8f26
AH
25012019-09-02 Alan Hayward <alan.hayward@arm.com>
2502
2503 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2504 probe arguments.
2505
fe01123e
AH
25062019-09-02 Alan Hayward <alan.hayward@arm.com>
2507
2508 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2509 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2510 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2511 (compile_probe_arg): Likewise.
2512 * probe.h (get_argument_count): Likewise.
2513 * solib-svr4.c (solib_event_probe_action): Likewise.
2514 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2515
e661ef01
AH
25162019-09-02 Alan Hayward <alan.hayward@arm.com>
2517
2518 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2519 code to here...
2520 (svr4_create_solib_event_breakpoints): ...from here.
2521
47a536d9
SDJ
25222019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2523
2524 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2525 suffix from warning message.
2526
d6a00eba
TT
25272019-08-30 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-winsource.h (struct tui_source_window_base)
2530 <refresh_all>: Don't declare.
2531 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2532 Remove.
2533 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2534 tui_show_locator_content.
2535 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2536 declare.
2537 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2538 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2539 declare.
2540
55b2657b
TT
25412019-08-30 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2544
12a8555a
TT
25452019-08-30 Tom Tromey <tom@tromey.com>
2546
2547 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2548 Remove unnecessary forward declarations.
2549
900ac242
TT
25502019-08-30 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2553 rerender.
2554 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2555 tui_show_locator_content.
2556
99ab33fb
TT
25572019-08-30 Tom Tromey <tom@tromey.com>
2558
2559 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2560 (tui_locator_window::rerender): Rewrite using body of previous
2561 tui_show_locator_content.
2562
e594a5d1
TT
25632019-08-30 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2566 set_locator_fullname>: New methods.
2567 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2568 Rename from tui_set_locator_fullname.
2569 (tui_locator_window::set_locator_info): Rename from
2570 tui_set_locator_info. Return bool.
2571 (tui_update_locator_fullname, tui_show_frame_info): Update.
2572
715bb467
TT
25732019-08-30 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2576
772f3f03
TT
25772019-08-30 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2580 call touchwin.
2581
108e13ab
TT
25822019-08-30 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-wingeneral.c (box_win): Assume win_info and
2585 win_info->handle cannot be NULL.
2586
cdaa6eb4
TT
25872019-08-30 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2590 refresh_window>: Declare.
2591 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2592 resize.
2593 (tui_data_item_window::rerender): Rename from
2594 tui_display_register.
2595 (tui_data_item_window::refresh_window): New method.
2596 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2597 no-op.
2598
89df7f90
TT
25992019-08-30 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2602 regs_column_count, current_group>: Move later. Now private.
2603 <get_current_group>: New method.
2604 * tui/tui-regs.c (tui_reg_command): Update.
2605 * tui/tui-layout.c (tui_set_layout): Update.
2606
1bf2866a
TT
26072019-08-30 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2610 (tui_data_window::rerender): Don't call
2611 check_and_display_highlight_if_needed.
2612 (tui_data_window::refresh_all): Remove call to
2613 erase_data_content.
2614
0670413d
TT
26152019-08-30 Tom Tromey <tom@tromey.com>
2616
2617 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2618 (tui_data_window::display_registers_from)
2619 (tui_data_window::display_reg_element_at_line)
2620 (tui_data_window::display_registers_from_line): Remove checks of
2621 "empty".
2622
18bb55c7
TT
26232019-08-30 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2626 Don't declare.
2627 * tui/tui-regs.c (tui_data_window::show_registers): Call
2628 rerender.
2629 (tui_data_window::rerender): Rename from display_all_data.
2630 (tui_data_window::rerender): Remove old implementation.
2631
1f6d2f10
TT
26322019-08-30 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2635 text.
2636 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2637
16d01f9c
BW
26382019-08-29 Bernhard Wodok <barto@gmx.net>
2639 Sergio Durigan Junior <sergiodj@redhat.com>
2640
2641 PR win32/24284
2642 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2643
d8f27c60
AB
26442019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2647 when searching for types.
2648
1f20c35e
AB
26492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * f-lang.c (f_language_defn): Use f_print_typedef.
2652 * f-lang.h (f_print_typedef): Declare.
2653 * f-typeprint.c (f_print_typedef): Define.
2654
550105b7
CB
26552019-08-27 Christian Biesinger <cbiesinger@google.com>
2656
2657 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2658
4acfdd20
AB
26592019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * cli/cli-utils.c (info_print_options_defs): Delete.
2662 (make_info_print_options_def_group): Delete.
2663 (extract_info_print_options): Delete.
2664 (info_print_command_completer): Delete.
2665 (info_print_args_help): Add extra parameter, and optionally
2666 include text about -n flag.
2667 * cli/cli-utils.h (struct info_print_options): Delete.
2668 (extract_info_print_options): Delete declaration.
2669 (info_print_command_completer): Delete declaration.
2670 (info_print_args_help): Add extra parameter, extend header
2671 comment.
2672 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2673 search_symbols.
2674 * stack.c (struct info_print_options): New type.
2675 (info_print_options_defs): New file scoped variable.
2676 (make_info_print_options_def_group): New static function.
2677 (info_print_command_completer): New static function.
2678 (info_locals_command): Update to use new local functions.
2679 (info_args_command): Likewise.
2680 (_initialize_stack): Add extra parameter to calls to
2681 info_print_args_help.
2682 * symtab.c (search_symbols): Add extra parameter, use this to
2683 possibly excluse non-debug symbols.
2684 (symtab_symbol_info): Add extra parameter, which is passed on to
2685 search_symbols.
2686 (struct info_print_options): New type.
2687 (info_print_options_defs): New file scoped variable.
2688 (make_info_print_options_def_group): New static function.
2689 (info_print_command_completer): New static function.
2690 (info_variables_command): Update to use local functions, and pass
2691 extra parameter through to symtab_symbol_info.
2692 (info_functions_command): Likewise.
2693 (info_types_command): Pass additional argument through to
2694 symtab_symbol_info.
2695 (rbreak_command): Pass extra argument to search_symbols.
2696 (_initialize_symtab): Add extra arguments for calls to
2697 info_print_args_help, and update help text for 'info variables',
2698 'whereis', and 'info functions' commands.
2699 * symtab.h (search_symbols): Add extra argument to declaration.
2700 * NEWS: Mention new flags.
2701
9aa55206
CB
27022019-08-26 Christian Biesinger <cbiesinger@google.com>
2703
2704 * symtab.c (lookup_static_symbol): Call the new function (and move
2705 it down to be next to lookup_global_symbol).
2706 (struct global_sym_lookup_data): Add block_enum member and rename to...
2707 (struct global_or_static_sym_lookup_data): ...this.
2708 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2709 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2710 (lookup_symbol_global_or_static_iterator_cb): ...this.
2711 (lookup_global_or_static_symbol): New function.
2712 (lookup_global_symbol): Call new function.
2713
5c31b358
TV
27142019-08-26 Tom de Vries <tdevries@suse.de>
2715
2716 PR c++/24852
2717 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2718 when pc_probe.prob == NULL.
2719
23c13d42
SM
27202019-08-25 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2723 variable symbol_linkage to symbol_linkage_.
2724
beadd3e8
SM
27252019-08-25 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2728 represent whether the symbol is static, dynamic, or we don't
2729 know.
2730
e3ec872f
YS
27312019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2732
2733 * gdb/rx-tdep.c (rx_register_names): New.
2734 (rx_register_name): Delete.
2735 (rx_psw_type): Delete.
2736 (rx_fpsw_type): Delete.
2737 (rx_register_type): Delete.
2738 (rx_gdbarch_init): Convert target-descriptions.
2739 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2740 * gdb/features/Makefile: Add rx.xml.
2741 * gdb/features/rx.xml: New.
2742 * gdb/features/rx.c: Generated.
2743 * gdb/NEWS: Mention target description support.
2744
d0509ba4
CB
27452019-08-22 Christian Biesinger <cbiesinger@google.com>
2746
2747 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2748 *slot_ptr.
2749
2d41fa11
SDJ
27502019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2751
2752 * configure.ac: Don't check for 'dlfcn.h' (moved to
2753 gdbsupport/common.m4).
2754 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2755 'gdbsupport/'.
2756 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2757 * compile/compile-c-support.c: Include
2758 'gdbsupport/gdb-dlfcn.h'.
2759 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2760 * gdb-dlfcn.c: Move to...
2761 * gdbsupport/gdb-dlfcn.c: ... here.
2762 * gdb-dlfcn.h: Move to...
2763 * gdbsupport/gdb-dlfcn.h: ... here.
2764
de8af808
SL
27652019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2766
2767 * nios2-tdep.c (struct reg_value): Improve comments. Make
2768 the offset field signed.
2769
27204489
CB
27702019-08-22 Christian Biesinger <cbiesinger@google.com>
2771
2772 * python/lib/gdb/__init__.py (_execute_file): New function.
2773 * python/python.c (python_run_simple_file): Call gdb._execute_file
2774 on Windows.
2775
43771869
AB
27762019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2779 all uses as this was never set to anything but a zero value.
2780
26c957f1
PA
27812019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2782
2783 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2784
c07aae6e
CB
27852019-08-21 Christian Biesinger <cbiesinger@google.com>
2786
2787 * tui/tui-data.h (tui_gen_win_info): Add an =default
2788 move constructor, required by some GCC versions.
2789
3960cb7a
JF
27902019-08-21 Jinke Fan <fanjinke51@yeah.net>
2791
2792 * go32-nat.c (go32_sysinfo): Add hygon_p.
2793
04c72a68
TT
27942019-08-20 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2797 line_from_reg_element_no, first_reg_element_no_inline,
2798 display_all_data, delete_data_content_windows,
2799 erase_data_content>: Now private.
2800
072272ce
TT
28012019-08-20 Tom Tromey <tom@tromey.com>
2802
2803 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2804 (tui_unhighlight_win, tui_highlight_win)
2805 (tui_win_info::make_window): Update.
2806 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2807
973961bd
TT
28082019-08-20 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2811 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2812 (MAX_PID_WIDTH): Move to tui-stack.c.
2813 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2814 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2815 (MAX_PID_WIDTH): Move from tui-data.h.
2816
ab0e1f1a
TT
28172019-08-20 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2820 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2821 (box_win): Update.
2822 (tui_gen_win_info::make_window): Rename from tui_make_window.
2823 (tui_win_info::make_window): New method.
2824 (tui_gen_win_info::make_visible): Update.
2825 * tui/tui-source.c (tui_source_window::set_contents): Update.
2826 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2827 (tui_data_window::display_registers_from): Update.
2828 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2829 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2830 Declare.
2831 <can_box>: Remove.
2832 <title>: Remove.
2833 (struct tui_win_info) <make_window>: Declare.
2834 <can_box>: Now virtual.
2835 <title>: New member.
2836 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2837 * tui/tui-command.c (tui_cmd_window::resize): Update.
2838
100c2bf3
TT
28392019-08-20 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2842 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2843 (tui_data_window::check_register_values): Update.
2844
fa4dc567
TT
28452019-08-20 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-regs.h (struct tui_data_window): Use
2848 DISABLE_COPY_AND_ASSIGN.
2849 <regs_content>: Change type, removing unique_ptr.
2850 <tui_data_window>: Add move constructor.
2851 * tui/tui-regs.c (tui_data_window::show_registers)
2852 (tui_data_window::show_register_group)
2853 (tui_data_window::display_registers_from)
2854 (tui_data_window::display_registers_from)
2855 (tui_data_window::first_data_item_displayed)
2856 (tui_data_window::delete_data_content_windows)
2857 (tui_data_window::rerender, tui_data_window::refresh_window)
2858 (tui_data_window::check_register_values): Update.
2859
ca02d7c8
TT
28602019-08-20 Tom Tromey <tom@tromey.com>
2861
2862 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2863 show_register_group>: Declare.
2864 (tui_show_register_group): Don't declare.
2865 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2866 tui_show_registers.
2867 (tui_data_window::show_register_group): Rename from
2868 tui_show_register_group.
2869 (tui_data_window::check_register_values, tui_reg_command):
2870 Update.
2871 * tui/tui-layout.c (tui_set_layout): Update.
2872
63356bfd
TT
28732019-08-20 Tom Tromey <tom@tromey.com>
2874
2875 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2876 Declare.
2877 (tui_check_register_values): Don't declare.
2878 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2879 from tui_check_register_values.
2880 * tui/tui-hooks.c (tui_register_changed): Update.
2881
42cc14a7
TT
28822019-08-20 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-regs.c (tui_reg_layout): Move later.
2885 (tui_show_registers): Don't enable TUI mode or change layout.
2886
b9ad3686
TT
28872019-08-20 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-regs.h (struct tui_data_item_window)
2890 <~tui_data_item_window>: Remove.
2891 <content>: Now a unique_xmalloc_ptr.
2892 * tui/tui-regs.c (tui_register_format): Return a
2893 unique_xmalloc_ptr.
2894 (tui_get_register): Update.
2895 (~tui_data_item_window): Remove.
2896 (tui_data_window::display_registers_from, tui_display_register):
2897 Update.
2898 * tui/tui-io.h (tui_expand_tabs): Update.
2899 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2900 Remove "col" parameter.
2901
8e114aab
TT
29022019-08-20 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2905 field.
2906 * tui/tui-regs.c (~tui_data_item_window): Update.
2907
1a4f81dd
TT
29082019-08-20 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2911 earlier.
2912
0f8d8876
TT
29132019-08-20 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2916
605dc2c2
TT
29172019-08-20 Tom Tromey <tom@tromey.com>
2918
2919 * tui/tui-source.h (struct tui_source_window): Update.
2920 * tui/tui-regs.c (tui_show_registers): Update.
2921 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2922 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2923 (NO_REGS_STRING): Remove defines.
2924
aedbe3bb
CM
29252019-08-20 Conrad Meyer <cem@FreeBSD.org>
2926
2927 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2928 unnecessary thread walk if remote doesn't support the packet.
2929
7ce8f214
TT
29302019-08-19 Tom Tromey <tromey@adacore.com>
2931
2932 * python/py-value.c (value_has_field): Fix indentation.
2933
f21c2bd7
TT
29342019-08-19 Tom Tromey <tromey@adacore.com>
2935
2936 * printcmd.c (do_one_display, info_display_command): Update.
2937 * block.h (contained_in): Return bool. Add allow_nested
2938 parameter.
2939 * block.c (contained_in): Return bool. Add allow_nested
2940 parameter.
2941
d806ea2d
TT
29422019-08-19 Tom Tromey <tom@tromey.com>
2943
2944 * configure: Rebuild.
2945 * configure.ac: Disallow the combination of -static-libstdc++ and
2946 source highlight.
2947 * source-cache.c (get_language_name): Handle rust.
2948 (source_cache::get_source_lines): Ignore highlighting exceptions.
2949
398fdd60
TT
29502019-08-16 Tom Tromey <tom@tromey.com>
2951
2952 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2953 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2954 (struct tui_source_window_base) <make_visible, refresh_window,
2955 resize>: Remove methods.
2956 <execution_info>: Remove field.
2957 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2958 (tui_show_source_line, tui_source_window_base)
2959 (~tui_source_window_base): Update.
2960 (tui_source_window_base::resize)
2961 (tui_source_window_base::make_visible)
2962 (tui_source_window_base::refresh_window): Remove.
2963 (tui_source_window_base::update_exec_info): Update.
2964 * tui/tui-source.c (tui_source_window::set_contents): Update.
2965 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2966
e699d331
TT
29672019-08-16 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2970 deprecated_query_hook.
2971
bb01dbfc
TT
29722019-08-16 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2975 (tui_update_source_windows_with_line): Update.
2976 * tui/tui-source.h (struct tui_source_window)
2977 <show_symtab_source>: Declare.
2978 (tui_show_symtab_source): Don't declare.
2979 * tui/tui-source.c (tui_show_symtab_source): Rename from
2980 tui_show_symtab_source.
2981
81c82c4b
TT
29822019-08-16 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-winsource.h (struct tui_source_window_base)
2985 <set_contents>: Declare.
2986 * tui/tui-winsource.c
2987 (tui_source_window_base::update_source_window_as_is): Update.
2988 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2989 Declare.
2990 (tui_set_source_content): Don't declare.
2991 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2992 tui_set_source_content.
2993 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2994 Declare.
2995 (tui_set_disassem_content): Don't declare.
2996 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2997 tui_set_disassem_content.
2998
2ddaf614
TT
29992019-08-16 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-winsource.h (struct tui_source_window_base)
3002 <update_breakpoint_info>: Declare.
3003 (tui_update_breakpoint_info): Don't declare.
3004 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3005 (tui_update_all_breakpoint_info): Update.
3006 (tui_source_window_base::update_breakpoint_info): Rename from
3007 tui_update_breakpoint_info.
3008 (tui_source_window_base::update_exec_info): Update.
3009
017f9828
TT
30102019-08-16 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-winsource.h (struct tui_source_window_base)
3013 <update_source_window>: Declare.
3014 (tui_update_source_window): Don't declare.
3015 * tui/tui-winsource.c
3016 (tui_source_window_base::update_source_window): Rename from
3017 tui_update_source_window.
3018 (tui_source_window_base::rerender): Update.
3019 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3020 * tui/tui-disasm.c (tui_show_disassem)
3021 (tui_show_disassem_and_update_source)
3022 (tui_disasm_window::maybe_update): Update.
3023
ed8358e9
TT
30242019-08-16 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-winsource.h (struct tui_source_window_base)
3027 <update_source_window_as_is>: Declare.
3028 (tui_update_source_window_as_is): Don't declare.
3029 * tui/tui-winsource.c (tui_update_source_window): Update
3030 (tui_source_window_base::update_source_window_as_is): Rename from
3031 tui_update_source_window_as_is.
3032 (tui_source_window_base::refill): Update.
3033 * tui/tui-source.c (tui_show_symtab_source): Update.
3034 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3035 Update.
3036
20149b6b
TT
30372019-08-16 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.h (tui_update_source_window)
3040 (tui_update_source_window_as_is): Remove "noerror" parameter.
3041 * tui/tui-winsource.c (tui_update_source_window)
3042 (tui_update_source_window_as_is): Remove "noerror" parameter.
3043 (tui_update_source_windows_with_addr)
3044 (tui_update_source_windows_with_line)
3045 (tui_source_window_base::rerender)
3046 (tui_source_window_base::refill): Update.
3047 * tui/tui-source.h (tui_set_source_content)
3048 (tui_show_symtab_source): Remove "noerror" parameter.
3049 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3050 parameter.
3051 (tui_show_symtab_source): Likewise.
3052 (tui_source_window::maybe_update): Update.
3053 * tui/tui-disasm.c (tui_show_disassem)
3054 (tui_show_disassem_and_update_source)
3055 (tui_disasm_window::do_scroll_vertical)
3056 (tui_disasm_window::maybe_update): Update.
3057
2d83e710
TT
30582019-08-16 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui.c (tui_is_window_visible): Update.
3061 * tui/tui-wingeneral.c (tui_make_window)
3062 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3063 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3064 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3065 (tui_set_win_height_command, parse_scrolling_args): Update.
3066 * tui/tui-source.c (tui_source_window::style_changed): Update.
3067 * tui/tui-regs.c (tui_show_registers)
3068 (tui_data_window::first_data_item_displayed)
3069 (tui_data_window::delete_data_content_windows)
3070 (tui_check_register_values, tui_reg_command): Update.
3071 * tui/tui-disasm.c (tui_show_disassem): Update.
3072 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3073 method.
3074 <is_visible>: Remove field.
3075 * tui/tui-data.c (tui_next_win, tui_prev_win)
3076 (tui_delete_invisible_windows): Update.
3077
d4ab829a
TT
30782019-08-16 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-winsource.h (struct tui_source_window_base)
3081 <m_has_locator>: Remove.
3082 * tui/tui-layout.c (show_source_disasm_command, show_data)
3083 (show_source_or_disasm_and_command): Update.
3084
aa7ca1bb
AH
30852019-08-16 Alan Hayward <alan.hayward@arm.com>
3086
3087 * NEWS (Other MI changes): New subsection.
3088 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3089 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3090 * arch-utils.c (default_get_pc_address_flags): New function.
3091 * arch-utils.h (default_get_pc_address_flags): New declaration.
3092 * gdbarch.sh: Add get_pc_address_flags.
3093 * gdbarch.c: Regenerate.
3094 * gdbarch.h: Likewise.
3095 * stack.c (print_pc): New function.
3096 (print_frame_info) (print_frame): Call print_pc.
3097
6eac171f
TV
30982019-08-16 Tom de Vries <tdevries@suse.de>
3099
3100 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3101 print_objfile_section_info.
3102
3df505f6
TT
31032019-08-15 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3106 calling update_cmdwin_start_line.
3107 * tui/tui-winsource.h (struct tui_source_window_base)
3108 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3109 <rerender>: Declare.
3110 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3111 Call rerender.
3112 (tui_source_window_base::set_new_height): Remove.
3113 (tui_source_window_base::rerender): Rename from
3114 do_make_visible_with_new_height.
3115 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3116 resize method.
3117 (tui_win_info::make_invisible_and_set_new_height)
3118 (tui_win_info::make_visible_with_new_height): Remove.
3119 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3120 Declare.
3121 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3122 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3123 do_make_visible_with_new_height>: Don't declare.
3124 <rerender>: Declare.
3125 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3126 set_new_height.
3127 (tui_data_window::do_make_visible_with_new_height): Remove.
3128 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3129 call tui_show_locator_content.
3130 (tui_gen_win_info::resize): Call rerender.
3131 (show_source_or_disasm_and_command): Don't call
3132 tui_show_locator_content.
3133 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3134 method.
3135 (struct tui_win_info) <rerender>: Declare.
3136 <set_new_height, make_invisible_and_set_new_height,
3137 make_visible_with_new_height>: Don't declare.
3138 * tui/tui-data.c (tui_win_list::rerender): New method.
3139 * tui/tui-command.h (struct tui_cmd_window)
3140 <do_make_visible_with_new_height>: Don't declare.
3141 * tui/tui-command.c
3142 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3143
272560b5
TT
31442019-08-15 Tom Tromey <tromey@adacore.com>
3145
3146 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3147 * ada-lang.c (ada_enum_name): Likewise.
3148
08235187
CB
31492019-08-15 Christian Biesinger <cbiesinger@google.com>
3150
3151 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3152 leading underscore.
3153 (GdbOutputErrorFile): Likewise.
3154 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3155 accordingly.
3156 (execute_unwinders): Rename to have a leading underscore.
3157 (auto_load_packages): Likewise.
3158 (global scope): Adjust call to auto_load_packages accordingly.
3159 (GdbSetPythonDirectory): Likewise.
3160 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3161 instead of execute_unwinders.
3162
db502012
TT
31632019-08-15 Tom Tromey <tom@tromey.com>
3164
3165 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3166 (show_data): Don't change window visibility.
3167 (tui_gen_win_info::resize): Remove special case for command
3168 window. Use wresize, when available.
3169 (show_source_or_disasm_and_command): Don't change window
3170 visibility.
3171 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3172 <make_visible>: New method.
3173 * tui/tui-command.c (tui_cmd_window::resize): New method.
3174
3891b65e
TT
31752019-08-15 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3178 (struct tui_source_windows): New.
3179 * tui/tui-winsource.c (tui_display_main): Update.
3180 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3181 (new_height_ok, parse_scrolling_args): Update.
3182 * tui/tui-layout.c (show_layout, show_data): Update.
3183 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3184 (tui_add_to_source_windows): Don't declare.
3185 * tui/tui-data.c (source_windows, tui_source_windows)
3186 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3187
ee556432
TT
31882019-08-15 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3191 Rename from reset.
3192 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3193 * tui/tui-layout.c (show_source_disasm_command, show_data):
3194 Update.
3195 (tui_gen_win_info::resize): Rename.
3196 (show_source_or_disasm_and_command): Update.
3197 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3198 reset.
3199
46f438e3
TT
32002019-08-15 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3203 * tui/tui-interp.c (tui_interp::init): Don't call
3204 tui_initialize_static_data.
3205 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3206
f4ce562c
TT
32072019-08-15 Tom Tromey <tom@tromey.com>
3208
3209 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3210 examine tui_win_list.
3211
c398c3d0
TT
32122019-08-15 Tom Tromey <tom@tromey.com>
3213
3214 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3215 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3216 tui_clear_source_content.
3217 (tui_clear_source_content): Remove.
3218 (tui_source_window_base::do_erase_source_content): Hoist call to
3219 content.clear().
3220 * tui/tui-stack.c (tui_show_frame_info): Don't call
3221 tui_clear_source_content.
3222
e25d2004
TT
32232019-08-15 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-winsource.h (struct tui_source_window_base)
3226 <do_erase_source_content>: New method.
3227 <erase_source_content>: New method.
3228 (tui_erase_source_content): Don't declare.
3229 * tui/tui-winsource.c (tui_clear_source_content): Update.
3230 (tui_source_window_base::do_erase_source_content): Rename from
3231 tui_erase_source_content.
3232 (tui_source_window_base::show_source_content): Update.
3233 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3234 * tui/tui-source.h (struct tui_source_window)
3235 <erase_source_content>: New method.
3236 * tui/tui-disasm.h (struct tui_disasm_window)
3237 <erase_source_content>: New method.
3238
002f15c2
TT
32392019-08-15 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3242 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3243 constructor.
3244 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3245 * tui/tui-source.c (tui_set_source_content): Update.
3246 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3247
c9033fe8
TT
32482019-08-15 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3251 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3252 tui-source.c.
3253 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3254 Declare.
3255 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3256 method.
3257 (tui_source_window::maybe_update): Update.
3258
088f37dd
TT
32592019-08-15 Tom Tromey <tom@tromey.com>
3260
3261 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3262 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3263 tui-disasm.c.
3264 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3265 Declare.
3266 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3267 method.
3268 (tui_disasm_window::maybe_update): Update.
3269
a54700c6
TT
32702019-08-15 Tom Tromey <tom@tromey.com>
3271
3272 * tui/tui-winsource.h (struct tui_source_window_base)
3273 <maybe_update>: Declare.
3274 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3275 method.
3276 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3277 Declare.
3278 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3279 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3280 Declare.
3281 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3282
e2a678a5
TT
32832019-08-15 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3286
f2dda477
TT
32872019-08-15 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-wingeneral.c: Include tui-stack.h.
3290 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3291 (struct tui_locator_window): Move from tui-data.h.
3292 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3293 (tui_initialize_static_data): Move from tui-data.c.
3294 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3295 (struct tui_locator_window): Move to tui-stack.c.
3296 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3297 (tui_initialize_static_data): Move to tui-stack.c.
3298
ed4a1084
TT
32992019-08-15 Tom Tromey <tom@tromey.com>
3300
3301 * tui/tui-layout.c (show_source_disasm_command)
3302 (show_source_or_disasm_and_command): Use make_visible method, not
3303 tui_make_window.
3304 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3305 Remove.
3306
65962b20
TT
33072019-08-15 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui-wingeneral.h (tui_make_window): Update.
3310 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3311 parameter.
3312 (tui_gen_win_info::make_visible): Update.
3313 * tui/tui-regs.c (tui_data_window::display_registers_from):
3314 Update.
3315 * tui/tui-layout.c (show_source_disasm_command)
3316 (show_source_or_disasm_and_command): Update.
3317 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3318 (enum tui_box): Remove.
3319 (struct tui_win_info) <can_box>: New method.
3320 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3321 method.
3322
2208ee91
TV
33232019-08-15 Tom de Vries <tdevries@suse.de>
3324
3325 * linux-nat-trad.c: Include gdbarch.h.
3326
75faf5c4
AH
33272019-08-14 Alan Hayward <alan.hayward@arm.com>
3328
3329 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3330 register sizes.
3331
b1c896b3
TT
33322019-08-14 Tom Tromey <tromey@adacore.com>
3333
3334 * darwin-nat.c: Include gdbarch.h.
3335 * darwin-nat-info.c: Include gdbarch.h.
3336
6405cd73
TT
33372019-08-13 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3340 Remove.
3341 * tui/tui-data.c (tui_initialize_static_data): Update.
3342
5216580d
TT
33432019-08-13 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-winsource.h (struct tui_exec_info_window)
3346 <~tui_exec_info_window, maybe_allocate_content, get_content,
3347 m_content>: Remove.
3348 (struct tui_source_window_base) <set_exec_info_content,
3349 show_exec_info_content>: Don't declare.
3350 * tui/tui-winsource.c
3351 (tui_exec_info_window::maybe_allocate_content): Remove.
3352 (tui_source_window_base::update_exec_info): Rename from
3353 set_exec_info_content.
3354 (tui_source_window_base::show_exec_info_content)
3355 (tui_source_window_base::update_exec_info): Remove.
3356
93858ad3
TT
33572019-08-13 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3360 declare.
3361 * tui/tui-winsource.c (tui_update_source_window_as_is)
3362 (tui_update_source_windows_with_addr, tui_erase_source_content):
3363 Update.
3364 (tui_clear_exec_info_content): Remove.
3365
e321e7ce
TT
33662019-08-13 Tom Tromey <tom@tromey.com>
3367
3368 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3369 declare.
3370 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3371 call tui_erase_exec_info_content.
3372 (tui_clear_exec_info_content): Rename from
3373 tui_erase_exec_info_content.
3374 (tui_clear_exec_info_content): Delete.
3375
8270ac62
TT
33762019-08-13 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-winsource.h (struct tui_source_window_base)
3379 <show_exec_info_content>: Declare.
3380 (tui_show_exec_info_content): Don't declare.
3381 * tui/tui-winsource.c
3382 (tui_source_window_base::show_exec_info_content): Rename from
3383 tui_show_exec_info_content.
3384 (tui_source_window_base::update_exec_info): Update.
3385
7b56485d
TT
33862019-08-13 Tom Tromey <tom@tromey.com>
3387
3388 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3389 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3390 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3391 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3392 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3393 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3394 ... here.
3395
7ba913dc
TT
33962019-08-13 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-winsource.h (struct tui_source_window_base)
3399 <update_exec_info>: Declare.
3400 (tui_update_exec_info): Don't declare.
3401 * tui/tui-winsource.c (tui_update_source_window_as_is)
3402 (tui_source_window_base::refresh_all)
3403 (tui_update_all_breakpoint_info): Update.
3404 (tui_source_window_base::update_exec_info): Rename from
3405 tui_update_exec_info.
3406 * tui/tui-stack.c (tui_show_frame_info): Update.
3407
37a4a131
TT
34082019-08-13 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-winsource.h (struct tui_source_window_base)
3411 <set_exec_info_content>: Declare.
3412 (tui_set_exec_info_content): Don't declare.
3413 * tui/tui-winsource.c
3414 (tui_source_window_base::set_exec_info_content): Rename from
3415 tui_set_exec_info_content.
3416 (tui_update_exec_info): Update.
3417
0bd27e07
TT
34182019-08-13 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-winsource.h (struct tui_source_window_base)
3421 <show_source_content>: Declare.
3422 (tui_show_source_content): Don't declare.
3423 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3424 (tui_source_window_base::show_source_content): Rename from
3425 tui_show_source_content.
3426 (tui_source_window_base::refresh_all): Update.
3427 * tui/tui-layout.c (show_source_disasm_command)
3428 (show_source_or_disasm_and_command): Update.
3429
b4ef5aeb
TT
34302019-08-13 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-winsource.c (tui_erase_source_content)
3433 (tui_show_source_content, tui_source_window_base::refresh_all):
3434 Update.
3435 * tui/tui-wingeneral.h
3436 (tui_check_and_display_highlight_if_needed): Don't declare.
3437 * tui/tui-wingeneral.c
3438 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3439 check_and_display_highlight_if_needed.
3440 * tui/tui-win.c (tui_rehighlight_all)
3441 (tui_win_info::make_visible_with_new_height): Update.
3442 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3443 (tui_data_window::erase_data_content)
3444 (tui_data_window::display_all_data): Update.
3445 * tui/tui-data.h (struct tui_win_info)
3446 <check_and_display_highlight_if_needed>: Declare.
3447
fede5273
TT
34482019-08-13 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui-win.c (tui_resize_all): Call
3451 tui_delete_invisible_windows.
3452 * tui/tui-layout.c (show_layout): Call
3453 tui_delete_invisible_windows.
3454 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3455 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3456
22c3f490
TT
34572019-08-13 Tom Tromey <tom@tromey.com>
3458
3459 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3460 tui_add_win_to_layout.
3461
16cb7910
TT
34622019-08-13 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3465 * tui/tui-layout.c (tui_default_win_height): Now static.
3466
cc0c3ffb
TT
34672019-08-13 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3470 single switch.
3471 (show_source_disasm_command, show_source_or_disasm_and_command):
3472 Don't check current layout.
3473
3f3ffe54
TT
34742019-08-13 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-wingeneral.c (make_all_visible): Remove.
3477 (tui_make_all_invisible): Simplify.
3478 * tui/tui-layout.c (tui_make_all_invisible): Move from
3479 tui-wingeneral.c; simplify.
3480 (show_layout): Hoist call to tui_make_all_invisible.
3481 (show_data): Don't call tui_make_all_invisible.
3482
69258091
TT
34832019-08-13 Tom Tromey <tom@tromey.com>
3484
3485 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3486 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3487
62cf57fe
TT
34882019-08-13 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3491 tui-data.c.
3492 (show_source_disasm_command, show_data)
3493 (show_source_or_disasm_and_command): Don't use
3494 tui_set_current_layout_to.
3495 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3496 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3497 tui-layout.c.
3498 (tui_set_current_layout_to): Remove.
3499
2afade5d
TT
35002019-08-13 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-layout.c (tui_set_layout): Update.
3503 * tui/tui-data.h (struct tui_layout_def): Remove.
3504 (tui_layout_def): Don't declare.
3505 * tui/tui-data.c (layout_def): Remove.
3506 (tui_layout_def): Remove.
3507
a3504e96
TT
35082019-08-13 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.h (struct tui_source_window_base)
3511 <clear_detail>: No longer "override".
3512 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3513 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3514 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3515 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3516 Remove.
3517 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3518
29c92911
TT
35192019-08-13 Tom Tromey <tromey@adacore.com>
3520
3521 * tracepoint.c: Don't include readline.h or history.h.
3522
86c6b807
TT
35232019-08-12 Tom Tromey <tom@tromey.com>
3524
3525 * configure: Rebuild.
3526 * configure.ac: Check for readline 7.
3527 * NEWS: Mention readline 7 requirement.
3528 * README: Update.
3529
5db2718c
TT
35302019-08-12 Tom Tromey <tom@tromey.com>
3531
3532 * mingw-hdep.c (gdb_select): Remove readline hack.
3533
dac36daf
PFC
35342019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3535
3536 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3537 when the function fails.
3538
1022c627
AA
35392019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3540
3541 * s390-tdep.c (s390_type_align): New function.
3542 (s390_gdbarch_init): Set it as type_align gdbarch method.
3543
eba4caf2
TV
35442019-08-09 Tom de Vries <tdevries@suse.de>
3545
3546 PR gdb/24591
3547 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3548 pc_low with relocation offset.
3549
123cd851
TT
35502019-08-07 Tom Tromey <tromey@adacore.com>
3551
3552 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3553 (print_frame_args): Update.
3554 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3555 Update.
3556 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3557 * frame.h (struct frame_arg): Add initializers.
3558 <error>: Now a unique_xmalloc_ptr.
3559
3d31bc39
AH
35602019-08-07 Alan Hayward <alan.hayward@arm.com>
3561
3562 * NEWS: Expand the Pointer Authentication entry.
3563 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3564 (aarch64_frame_unmask_lr): ... to this.
3565 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3566 Call aarch64_frame_unmask_lr.
3567 * frame.c (struct frame_info): Add "masked" variable.
3568 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3569 (fprint_frame): Check for masked pc.
3570 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3571 declarations.
3572 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3573 * stack.c (print_frame): Check for masked pc.
3574
0cf9feb9
TT
35752019-08-06 Tom Tromey <tom@tromey.com>
3576
3577 * stabsread.c (patch_block_stabs, read_one_struct_field)
3578 (read_enum_type): Use obstack_strndup.
3579 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3580 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3581 * dwarf2read.c (guess_full_die_structure_name)
3582 (anonymous_struct_prefix): Use obstack_strndup.
3583 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3584 * c-exp.y (yylex): Use obstack_strndup.
3585 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3586 (write_var_or_type): Use obstack_strndup.
3587
efba19b0
TT
35882019-08-06 Tom Tromey <tom@tromey.com>
3589
3590 * symfile.c (reread_symbols): Use obstack_strdup.
3591 * stabsread.c (read_type): Use obstack_strdup.
3592 * gdb_obstack.h (obstack_strdup): New overload.
3593 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3594 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3595 (dwarf2_canonicalize_name): Use obstack_strdup.
3596 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3597 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3598 Use obstack_strdup.
3599
f25102f7
TT
36002019-08-06 Tom Tromey <tom@tromey.com>
3601
3602 * gdb_obstack.h (obstack_strdup): Define.
3603 * gdb_obstack.c (obstack_strdup): Don't define.
3604
021887d8
TT
36052019-08-06 Tom Tromey <tom@tromey.com>
3606
3607 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3608 obstack_strdup.
3609 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3610 obstack_strdup.
3611 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3612 * stabsread.c (common_block_start): Use obstack_strdup.
3613 * objfiles.c (set_objfile_main_name, objfile): Use
3614 obstack_strdup.
3615 * namespace.c (add_using_directive): Use obstack_strdup.
3616 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3617 * jit.c (finalize_symtab): Use obstack_strdup.
3618 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3619 (guess_partial_die_structure_name, partial_die_info::fixup)
3620 (dwarf2_name): Use obstack_strdup.
3621 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3622 obstack_strdup.
3623 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3624 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3625 obstack_strdup.
3626 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3627
d2834edc
PW
36282019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3629
3630 * unittests/help-doc-selftests.c: New file.
3631 * Makefile.in: Add the new file.
3632
590042fc
PW
36332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3634
3635 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3636 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3637 the full first line, except when FOR_VALUE_PREFIX. In this case,
3638 the trailing '.' is not output, and the first character is uppercased.
3639 (print_help_for_command): Update call to print_doc_line.
3640 (print_doc_of_command): Likewise.
3641 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3642 * cli/cli-option.c (append_indented_doc): Do not append newline.
3643 (build_help_option): Append newline after first appended_indented_doc
3644 only if a second call is done.
3645 (build_help): Append 2 new lines before each option, except the first
3646 one.
3647 * compile/compile.c (_initialize_compile): Add new lines after
3648 %OPTIONS%, when not at the end of the help.
3649 Change help doc or code
3650 producing the help doc to respect the invariants.
3651 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3652 Also removed the new line after 'Options:', as all other commands
3653 do not put an empty line between 'Options:' and the first option.
3654 * printcmd.c (_initialize_printcmd): Likewise.
3655 * stack.c (_initialize_stack): Likewise.
3656 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3657 incorrectly telling COMMAND is optional.
3658 * ada-lang.c (_initialize_ada_language): Change help doc or code
3659 producing the help doc to respect the invariants.
3660 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3661 * breakpoint.c (_initialize_breakpoint): Likewise.
3662 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3663 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3664 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3665 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3666 _initialize_cli_style): Likewise.
3667 * corelow.c (core_target_info): Likewise.
3668 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3669 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3670 * filesystem.c (_initialize_filesystem): Likewise.
3671 * frame.c (_initialize_frame): Likewise.
3672 * gnu-nat.c (add_task_commands): Likewise.
3673 * infcall.c (_initialize_infcall): Likewise.
3674 * infcmd.c (_initialize_infcmd): Likewise.
3675 * interps.c (_initialize_interpreter): Likewise.
3676 * language.c (_initialize_language): Likewise.
3677 * linux-fork.c (_initialize_linux_fork): Likewise.
3678 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3679 * maint.c (_initialize_maint_cmds): Likewise.
3680 * memattr.c (_initialize_mem): Likewise.
3681 * printcmd.c (_initialize_printcmd): Likewise.
3682 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3683 _RegEx): Likewise.
3684 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3685 * record-btrace.c (_initialize_record_btrace): Likewise.
3686 * record-full.c (_initialize_record_full): Likewise.
3687 * record.c (_initialize_record): Likewise.
3688 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3689 * regcache.c (_initialize_regcache): Likewise.
3690 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3691 _initialize_remote): Likewise.
3692 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3693 * serial.c (_initialize_serial): Likewise.
3694 * skip.c (_initialize_step_skip): Likewise.
3695 * source.c (_initialize_source): Likewise.
3696 * stack.c (_initialize_stack): Likewise.
3697 * symfile.c (_initialize_symfile): Likewise.
3698 * symtab.c (_initialize_symtab): Likewise.
3699 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3700 * top.c (init_main): Likewise.
3701 * tracefile-tfile.c (tfile_target_info): Likewise.
3702 * tracepoint.c (_initialize_tracepoint): Likewise.
3703 * tui/tui-win.c (_initialize_tui_win): Likewise.
3704 * utils.c (add_internal_problem_command): Likewise.
3705 * valprint.c (value_print_option_defs): Likewise.
3706
404f2902
FCE
37072019-08-06 Frank Ch. Eigler <fche@redhat.com>
3708
3709 PR build/24886
3710 * configure.ac: Drop enable-libmcheck support.
3711 * configure, config.in: Rebuild.
3712 * libmcheck.m4: Remove.
3713 * acinclude.m4: Don't include it.
3714 * Makefile.in: Don't distribute it.
3715 * top.c (print_gdb_configuration): Don't mention it.
3716
046bebe1
TT
37172019-08-06 Tom Tromey <tom@tromey.com>
3718
3719 * utils.c (set_output_style): Sometimes pass stream to
3720 emit_style_escape.
3721 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3722 * record-btrace.c (btrace_insn_history): Update.
3723 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3724 method.
3725 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3726 Update initializers.
3727 <m_uiout>: New field.
3728 <m_di>: Move lower.
3729 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3730 Remove "uiout" parameter.
3731 (dump_insns): Update.
3732 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3733 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3734
ddbcedf5
CB
37352019-08-06 Christian Biesinger <cbiesinger@google.com>
3736
3737 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3738 (error_in_psymtab_expansion): Likewise.
3739 (lookup_symbol_via_quick_fns): Likewise.
3740 (basic_lookup_transparent_type_quick): Likewise.
3741 (basic_lookup_transparent_type_1): Likewise.
3742
b08b16c8
TT
37432019-08-06 Tom Tromey <tromey@adacore.com>
3744
3745 * source.c (last_source_error): Now bool.
3746 (print_source_lines_base): Make "noprint" bool. Only open
3747 source file when last_source_visited changes.
3748
cb44333d
TT
37492019-08-06 Tom Tromey <tromey@adacore.com>
3750
3751 * annotate.c (annotate_source_line): Use g_source_cache.
3752 * source-cache.c (source_cache::get_plain_source_lines): Change
3753 parameters. Populate m_offset_cache.
3754 (source_cache::ensure): New method.
3755 (source_cache::get_line_charpos): New method.
3756 (extract_lines): Move lower. Change parameters.
3757 (source_cache::get_source_lines): Move lower.
3758 * source-cache.h (class source_cache): Update comment.
3759 <get_line_charpos>: New method.
3760 <get_source_lines>: Update comment.
3761 <clear>: Clear m_offset_cache.
3762 <get_plain_source_lines>: Change parameters.
3763 <ensure>: New method
3764 <m_offset_cache>: New member.
3765 * source.c (forget_cached_source_info_for_objfile): Update.
3766 (info_source_command): Use g_source_cache.
3767 (find_source_lines, open_source_file_with_line_charpos): Remove.
3768 (print_source_lines_base, search_command_helper): Use g_source_cache.
3769 * source.h (open_source_file_with_line_charpos): Don't declare.
3770 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3771 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3772 Use g_source_cache.
3773
872dceaa
TT
37742019-08-06 Tom Tromey <tromey@adacore.com>
3775
3776 * source-cache.c (source_cache::get_plain_source_lines):
3777 Remove "first_line" and "last_line" parameters.
3778 (source_cache::get_source_lines): Cache plain text.
3779 * source-cache.h (class source_cache)
3780 <get_plain_source_lines>: Update.
3781
269249d9
TT
37822019-08-06 Tom Tromey <tromey@adacore.com>
3783
3784 * source-cache.c (extract_lines): No longer a method.
3785 Changed type of parameter. Include final newline.
3786 (selftests::extract_lines_test): New function.
3787 (_initialize_source_cache): Likewise.
3788 * source-cache.h (class source_cache)
3789 <extract_lines>: Don't declare.
3790
c0e8dcd8
TT
37912019-08-06 Tom Tromey <tromey@adacore.com>
3792
3793 * breakpoint.c (init_breakpoint_sal): Update.
3794 (breakpoint): Update.
3795 * breakpoint.h (struct breakpoint) <filter>: Now a
3796 unique_xmalloc_ptr.
3797
0b27c27d
CB
37982019-08-05 Christian Biesinger <cbiesinger@google.com>
3799
3800 * NEWS: Mention dictionary access on blocks.
3801 * python/py-block.c (blpy_getitem): New function.
3802 (block_object_as_mapping): New struct.
3803 (block_object_type): Use new struct for tp_as_mapping field.
3804
4ee94178
CB
38052019-08-05 Christian Biesinger <cbiesinger@google.com>
3806
3807 * objfiles.h (objfile): Add a comment describing partial symbols.
3808
8abfcabc
TT
38092019-08-05 Tom Tromey <tromey@adacore.com>
3810
3811 * compile/compile.c (_initialize_compile): Use _(), not N_().
3812 * thread.c (_initialize_thread): Use _(), not N_().
3813 * stack.c (_initialize_stack): Use _(), not N_().
3814 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3815
2b79f376
SM
38162019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * dwarf2read.c (struct dw2_symtab_iterator):
3819 <want_specific_block>: Remove.
3820 <block_index>: Change type to gdb::optional.
3821 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3822 change type of BLOCK_INDEX parameter to gdb::optional.
3823 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3824 (dw2_lookup_symbol): Don't pass argument for
3825 WANT_SPECIFIC_BLOCK.
3826 (dw2_expand_symtabs_for_function): Don't pass argument for
3827 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3828 (class dw2_debug_names_iterator)
3829 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3830 parameter, change BLOCK_INDEX type to gdb::optional.
3831 <m_want_specific_block>: Remove.
3832 <m_block_index>: Change type to gdb::optional.
3833 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3834 gdb::optional. Re-write in function of gdb::optional.
3835 (dw2_debug_names_lookup_symbol): Don't pass argument for
3836 WANT_SPECIFIC_BLOCK.
3837 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3838 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3839 BLOCK_INDEX.
3840
ae60f04e
PW
38412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3842
3843 * NEWS: Mention changes to "info sources" command.
3844
28cd9371
PW
38452019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3846
3847 * symtab.c (filename_partial_match_opts): New struct type.
3848 (struct output_source_filename_data): New members
3849 regexp, c_regexp, partial_match.
3850 (output_source_filename): Use new members to decide to print file.
3851 (info_sources_option_defs): New variable.
3852 (make_info_sources_options_def_group, print_info_sources_header,
3853 info_sources_command_completer):
3854 New functions.
3855 (info_sources_command): Read new optional arguments.
3856 (_initialize_symtab): Update info sources help.
3857
ca683e3a
AO
38582019-08-02 Alexandre Oliva <oliva@adacore.com>
3859
3860 * ada-lang.c (exception_support_info_v0): Renamed from...
3861 (default_exception_support_info): ... this. Create new
3862 definition for v1.
3863 (ada_has_this_exception_support): Look up catch_handlers_sym.
3864 (ada_exception_support_info_sniffer): Try v0 after default.
3865
f1264162
TT
38662019-08-01 Tom Tromey <tromey@adacore.com>
3867
3868 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3869 gdbarch.h.
3870
0a7b2485
CB
38712019-08-01 Christian Biesinger <cbiesinger@google.com>
3872
3873 * s12z-tdep.c: Fix include path for s12z-opc.h.
3874
c6bdbeb7
AH
38752019-08-01 Alan Hayward <alan.hayward@arm.com>
3876
3877 * NEWS: Require GNU make 3.82.
3878
a2bd7b82
TT
38792019-07-16 Tom Tromey <tom@tromey.com>
3880
3881 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3882 declare.
3883
aa3b6533
TT
38842019-07-30 Tom Tromey <tromey@adacore.com>
3885
3886 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3887
a1530dc7
KB
38882019-07-30 Kevin Buettner <kevinb@redhat.com>
3889
3890 * printcmd.c (print_address_symbolic): Print negative offsets.
3891 (build_address_symbolic): Force signed arithmetic when computing
3892 offset.
3893
2906593f
CB
38942019-07-30 Christian Biesinger <cbiesinger@google.com>
3895
3896 PR/24474: Add a function to lookup static variables.
3897 * NEWS: Mention this new function.
3898 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3899 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3900 * python/python.c (python_GdbMethods): Add new function.
3901
c620ed88
CB
39022019-07-29 Christian Biesinger <cbiesinger@google.com>
3903
3904 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3905 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3906 (objfpy_lookup_static_symbol): New function.
3907 (objfile_object_methods): Add new functions.
3908
bc4268a5
PW
39092019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3910
3911 * NEWS: Mention 'set|show print frame-info'. Mention new
3912 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3913 backtrace argument. Mention that python frame filtering code
3914 is now consistent with what 'backtrace' command prints.
3915
4b5e8d19
PW
39162019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3917
3918 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3919 comments.
3920 (print_frame_info_auto, print_frame_info_source_line,
3921 print_frame_info_location, print_frame_info_source_and_location,
3922 print_frame_info_location_and_address, print_frame_info_short_location):
3923 New declarations.
3924 (struct frame_print_options): New member print_frame_info.
3925 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3926 * stack.h (get_user_print_what_frame_info): New declaration.
3927 (frame_show_address): New declaration.
3928 * stack.c (print_frame_arguments_choices): New value 'presence'.
3929 (print_frame_info_auto, print_frame_info_source_line,
3930 print_frame_info_location, print_frame_info_source_and_location,
3931 print_frame_info_location_and_address, print_frame_info_short_location,
3932 print_frame_info_choices, print_frame_info_print_what): New definitions.
3933 (print_frame_args): Only print dots for args if print frame-arguments
3934 is 'presence'.
3935 (frame_print_option_defs): New element for "frame-info".
3936 (get_user_print_what_frame_info): New function.
3937 (frame_show_address): Make non static. Move comment to stack.h.
3938 (print_frame_info_to_print_what): New function.
3939 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3940 to decide what to print.
3941 (backtrace_command_1): Handle the new print_frame_arguments_presence
3942 value.
3943 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3944 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3945 (py_print_frame): In non-mi mode, use LOCATION as default for
3946 print_what, similarly to frame information printed directly by
3947 backtrace command. Handle frame-info user option in non MI mode.
3948
6bdfee81
KB
39492019-07-27 Kevin Buettner <kevinb@redhat.com>
3950
3951 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3952 Add case for debugging 32-bit target on 64-bit host. Revise
3953 comment.
3954
98a617f8
KB
39552019-07-27 Kevin Buettner <kevinb@redhat.com>
3956
3957 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3958 instead of find_function_entry_range_from_pc.
3959
567238c9
KB
39602019-07-27 Kevin Buettner <kevinb@redhat.com>
3961
3962 * stack.c (find_frame_funname): Remove code which preferred
3963 minsym over symtab sym in "certain pathological cases".
3964
2dc80cf8
KB
3965 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3966 parameter. Change type of "do_demangle" to bool.
3967 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3968 Pass suitable "prefer_sym_over_minsym" flag to
3969 build_address_symbolic(). Don't output "+" for negative offsets.
3970 * printcmd.c (print_address_symbolic): Update invocation of
3971 build_address_symbolic to include a "prefer_sym_over_minsym"
3972 flag.
3973 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3974 Restrict cases in which use of minimal symbol is preferred to that
3975 of a found symbol. Update comments.
3976
1aff7173
KB
3977 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3978 for entry pc when entry pc is out of range for that FDE.
3979
89b085ac
BC
39802019-07-26 Brian Callahan <bcallah@openbsd.org>
3981
3982 PR gdb/24839:
3983 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3984 type.
3985
f32feb4a
CB
39862019-07-25 Christian Biesinger <cbiesinger@google.com>
3987
3988 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3989 this function's Python signature.
3990
3991
39922019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3993
3994 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3995 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3996 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3997 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3998 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3999
4000
c54e4253
YS
40012019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4002
4003 * h8300-tdep.c (h8300_register_name_common): New.
4004 h8300_register_name): Use h8300_register_name_common.
4005 (h8300s_register_name): Likewise.
4006 (h8300sx_register_name): Likewise.
4007 (h8300h_register_nam): New.
4008 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4009
4010
40eadf04
SP
40112019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4012
4013 * arm-tdep.c (arm_skip_cmse_entry): New function.
4014 (arm_is_sgstubs_section): New function.
4015 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4016
bfa2a36d
TT
40172019-07-22 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4020 Don't self-assign.
4021
a8e9d247
AB
40222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4025 type_print.
4026
eb86c5e2
AB
40272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4030 so that GDB doesn't match any msymbols when searching in the
4031 TYPES_DOMAIN.
4032 (print_symbol_info): Print using typedef_print or type_print based
4033 on the type of the symbol. Add updated FIXME comment moved from...
4034 (_initialize_symtab): ... move and update FIXME comment to above.
4035
a8eab7c6
AB
40362019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * NEWS: Mention adding -q option to "info types".
4039 * symtab.c (struct info_types_options): New struct.
4040 (info_types_options_defs): New variable.
4041 (make_info_types_options_def_group): New function.
4042 (info_types_command): Use gdb::option framework to parse options.
4043 (info_types_command_completer): New function.
4044 (_initialize_symtab): Extend the help text on "info types" and
4045 register command completer.
4046
b4603c34
CB
40472019-07-21 Christian Biesinger <cbiesinger@google.com>
4048
4049 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4050 (lookup_symbol_in_objfile): Change int to block_enum and add a
4051 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4052
c8cdc1e0
CB
40532019-07-20 Christian Biesinger <cbiesinger@google.com>
4054
4055 * MAINTAINERS (Write After Approval): Add self.
4056
01e175fe
AB
40572019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4058
4059 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4060 instruction to the dummy code region.
4061
56f79b63
TT
40622019-07-19 Tom Tromey <tromey@adacore.com>
4063
4064 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4065 (ARGSUSED, PARAMS, __func__): Remove rules.
4066
4c5aa8e0
AH
40672019-07-19 Alan Hayward <alan.hayward@arm.com>
4068
4069 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4070 * features/arm/arm-with-iwmmxt.c: Remove.
4071 * features/arm/arm-with-iwmmxt.xml: Remove.
4072 * features/arm/arm-with-m-fpa-layout.c: Remove.
4073 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4074 * features/arm/arm-with-m-vfp-d16.c: Remove.
4075 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4076 * features/arm/arm-with-m.c: Remove.
4077 * features/arm/arm-with-m.xml: Remove.
4078 * features/arm/arm-with-neon.c: Remove.
4079 * features/arm/arm-with-neon.xml: Remove.
4080 * features/arm/arm-with-vfpv2.c: Remove.
4081 * features/arm/arm-with-vfpv2.xml: Remove.
4082 * features/arm/arm-with-vfpv3.c: Remove.
4083 * features/arm/arm-with-vfpv3.xml: Remove.
4084
f42b2617
AH
40852019-07-19 Alan Hayward <alan.hayward@arm.com>
4086
4087 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4088
f29ec966
AH
40892019-07-19 Alan Hayward <alan.hayward@arm.com>
4090
4091 * arch/aarch32.c (aarch32_create_target_description): Create
4092 target descriptions using features.
4093 * arch/arm.c (arm_create_target_description)
4094 (arm_create_mprofile_target_description): Likewise.
4095 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4096
d105cce5
AH
40972019-07-19 Alan Hayward <alan.hayward@arm.com>
4098
4099 * Makefile.in: Add new files.
4100 * aarch32-tdep.c: New file.
4101 * aarch32-tdep.h: New file.
4102 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4103 Call aarch32_read_description.
4104 * arch/aarch32.c: New file.
4105 * arch/aarch32.h: New file.
4106 * arch/arm.c (arm_create_target_description)
4107 (arm_create_mprofile_target_description): New function.
4108 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4109 (arm_create_target_description)
4110 (arm_create_mprofile_target_description): New declaration.
4111 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4112 read_description functions.
4113 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4114 Likewise.
4115 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4116 * arm-tdep.c (tdesc_arm_list): New variable.
4117 (arm_register_g_packet_guesses): Call create description functions.
4118 (arm_read_description) (arm_read_mprofile_description): New
4119 function.
4120 * arm-tdep.h (arm_read_description)
4121 (arm_read_mprofile_description): Add declaration.
4122 * configure.tgt: Add new files.
4123
afe09f0b
GL
41242019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4125
4126 * top.c (new_ui_command): Open specified terminal just once.
4127
cd215b2e
TT
41282019-07-18 Tom Tromey <tromey@adacore.com>
4129
4130 * symtab.c (main_name): Constify return type.
4131 * symfile.c (set_initial_language): Update.
4132 * symtab.h (main_name): Constify return type.
4133
d8f68fcb
TT
41342019-07-17 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-winsource.c (tui_update_source_window)
4137 (tui_update_source_window_as_is)
4138 (tui_update_source_windows_with_line): Remove return.
4139 * tui/tui-disasm.c (tui_show_disassem)
4140 (tui_show_disassem_and_update_source): Remove return.
4141 * tui/tui.c (tui_reset): Remove return.
4142 * tui/tui-wingeneral.c
4143 (tui_check_and_display_highlight_if_needed): Remove return.
4144
ca5af91e
TT
41452019-07-17 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4148
5104fe36
TT
41492019-07-17 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-winsource.h (struct tui_exec_info_window)
4152 (struct tui_source_window_base): Move from tui-data.h.
4153 * tui/tui-winsource.c: Move many method definitions from
4154 elsewhere. Remove "structuring" comments.
4155 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4156 (tui_source_window_base::refresh_window): Move to
4157 tui-winsource.c.
4158 * tui/tui-win.c (tui_source_window_base::refresh_all)
4159 (tui_source_window_base::update_tab_width)
4160 (tui_source_window_base::set_new_height)
4161 (tui_source_window_base::do_make_visible_with_new_height): Move to
4162 tui-winsource.c.
4163 * tui/tui-source.h: Update.
4164 * tui/tui-source.c (tui_source_window_base::reset): Move to
4165 tui-winsource.c.
4166 * tui/tui-disasm.h: Update.
4167 * tui/tui-data.h (struct tui_exec_info_window): Move to
4168 tui-winsource.h.
4169 (struct tui_source_window_base): Likewise.
4170 * tui/tui-data.c (tui_source_window_base::clear_detail)
4171 (tui_source_window_base, ~tui_source_window_base): Move to
4172 tui-winsource.c.
4173
daa15dde
TT
41742019-07-17 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-win.c (tui_resize_all)
4177 (tui_source_window_base::update_tab_width)
4178 (tui_adjust_win_heights): Update.
4179 (tui_win_info::make_invisible_and_set_new_height): Rename from
4180 make_invisible_and_set_new_height.
4181 * tui/tui-data.h (struct tui_win_info)
4182 <make_invisible_and_set_new_height>: New method.
4183
bfad4537
TT
41842019-07-17 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui.c: Update.
4187 * tui/tui-source.h (struct tui_source_window): Move from
4188 tui-data.h.
4189 * tui/tui-layout.c: Update.
4190 * tui/tui-disasm.c: Update.
4191 * tui/tui-data.h (struct tui_source_window): Move to
4192 tui-source.h.
4193
88f7e873
TT
41942019-07-17 Tom Tromey <tom@tromey.com>
4195
4196 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4197 tui-data.h.
4198 * tui/tui-data.h (struct tui_disasm_window): Move to
4199 tui-disasm.h.
4200
96bd6233
TT
42012019-07-17 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-regs.h (struct tui_data_item_window): Move from
4204 tui-data.h.
4205 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4206 * tui/tui-data.h (struct tui_data_item_window): Move to
4207 tui-regs.h.
4208 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4209
ce38393b
TT
42102019-07-17 Tom Tromey <tom@tromey.com>
4211
4212 * tui/tui.c: Update.
4213 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4214 (tui_cmd_window::max_height): Move to tui-command.c.
4215 * tui/tui-layout.c: Update.
4216 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4217 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4218 tui-command.c.
4219 * tui/tui-command.h (struct tui_cmd_window): Move from
4220 tui-data.h.
4221 * tui/tui-command.c: Remove "structuring" comments.
4222 (tui_cmd_window::clear_detail)
4223 (tui_cmd_window::do_make_visible_with_new_height)
4224 (tui_cmd_window::max_height): Move from elsewhere.
4225
2d8b51cb
TT
42262019-07-17 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4229 Now static.
4230 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4231 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4232
18ab23af
TT
42332019-07-17 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui.c: Update.
4236 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4237 tui-regs.c.
4238 * tui/tui-windata.h: Remove file.
4239 * tui/tui-windata.c: Remove file.
4240 * tui/tui-win.c (tui_data_window::set_new_height)
4241 (tui_data_window::do_make_visible_with_new_height): Move to
4242 tui-regs.c.
4243 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4244 * tui/tui-regs.c: Remove "structuring" comments.
4245 (tui_data_window::first_data_item_displayed)
4246 (tui_data_window::delete_data_content_windows)
4247 (tui_data_window::erase_data_content)
4248 (tui_data_window::display_all_data)
4249 (tui_data_window::refresh_all)
4250 (tui_data_window::do_scroll_vertical)
4251 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4252 (tui_data_window::do_make_visible_with_new_height)
4253 (tui_data_window::refresh_window): Move from elsewhere.
4254 (_initialize_tui_regs): Move to end of file.
4255 * tui/tui-layout.c: Update.
4256 * tui/tui-hooks.c: Update.
4257 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4258 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4259 tui-regs.c.
4260 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4261
88b7e7cc
TT
42622019-07-17 Tom Tromey <tom@tromey.com>
4263
4264 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4265 seen.
4266
0fcd3711
TT
42672019-07-17 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-win.c (tui_source_window_base::set_new_height)
4270 (tui_source_window_base::do_make_visible_with_new_height): Use
4271 m_has_locator field directly.
4272 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4273 method.
4274 (struct tui_source_window_base) <has_locator>: Likewise.
4275
4a38112d
TT
42762019-07-17 Tom Tromey <tom@tromey.com>
4277
4278 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4279 Don't declare.
4280 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4281 Remove.
4282 * tui/tui-win.c (tui_source_window_base::set_new_height)
4283 (tui_source_window_base::set_new_height)
4284 (make_invisible_and_set_new_height)
4285 (tui_source_window_base::do_make_visible_with_new_height)
4286 (tui_source_window_base::do_make_visible_with_new_height):
4287 Update.
4288 * tui/tui-layout.c (show_source_disasm_command, show_data)
4289 (show_source_or_disasm_and_command): Update.
4290 * tui/tui-layout.c (show_layout): Update.
4291
09129226
TT
42922019-07-17 Tom Tromey <tom@tromey.com>
4293
4294 * tui/tui-layout.c (make_data_window): Remove.
4295 (show_data): Unify creation and re-initialization cases.
4296
4a8a5e84
TT
42972019-07-17 Tom Tromey <tom@tromey.com>
4298
4299 * tui/tui-layout.c (make_source_window, make_disasm_window):
4300 Remove.
4301 (show_data): Unify creation and re-initialization cases.
4302
76d2be8e
TT
43032019-07-17 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-layout.c (make_command_window): Remove.
4306 (show_source_disasm_command, show_source_or_disasm_and_command):
4307 Unify creation and re-initialization cases.
4308
890b8bde
TT
43092019-07-17 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4312 creation and re-initialization cases.
4313
2cdfa113
TT
43142019-07-17 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-regs.c (tui_get_register): Return void.
4317
8e3cfd09
TT
43182019-07-17 Tom Tromey <tom@tromey.com>
4319
4320 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4321 Simplify.
4322
f4e04977
TT
43232019-07-17 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4326 resetting.
4327
0379b883
TT
43282019-07-17 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4331 * tui/tui-regs.c (tui_reg_layout): New function.
4332 (tui_show_registers, tui_reg_command): Use it.
4333 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4334 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4335 parameters.
4336 (tui_layout_command): Remove.
4337
b7fbad91
TT
43382019-07-17 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-layout.h (tui/tui-layout): Return void.
4341 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4342
4e1e56b9
TT
43432019-07-17 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-layout.c (show_source_disasm_command, show_data):
4346 Update.
4347 (reset_locator): Remove.
4348 (show_source_or_disasm_and_command): Update.
4349
1e0c09ba
TT
43502019-07-17 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-source.c (tui_source_window_base::reset): Remove
4353 win_type parameter.
4354 * tui/tui-layout.c (make_command_window, make_source_window)
4355 (make_disasm_window, make_data_window)
4356 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4357 (reset_locator, show_source_or_disasm_and_command): Update.
4358 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4359 win_type parameter.
4360 (struct tui_source_window_base) <reset>: Likewise.
4361
1bf605de
TT
43622019-07-17 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-layout.c (show_source_disasm_command): Use
4365 reset_locator.
4366 (reset_locator): New function.
4367 (init_and_make_win): Remove.
4368 (show_source_or_disasm_and_command): Use reset_locator.
4369
098f9ed4
TT
43702019-07-17 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4373 condition.
4374 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4375 Remove condition.
4376 * tui/tui-source.c (tui_source_window_base::reset): New method.
4377 * tui/tui-layout.c (make_command_window): Don't call
4378 init_and_make_win.
4379 (make_source_window, make_disasm_window): Don't call
4380 make_source_or_disasm_window.
4381 (make_data_window): Don't call init_and_make_win. Change calling
4382 convention.
4383 (show_source_disasm_command, show_data): Simplify.
4384 (make_source_or_disasm_window): Remove.
4385 (show_source_or_disasm_and_command): Simplify.
4386 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4387 (struct tui_source_window_base) <reset>: Likewise.
4388 <execution_info>: Remove initializer.
4389 * tui/tui-data.c (tui_source_window_base): Initialize
4390 execution_info.
4391
80110957
TT
43922019-07-17 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4395 variable.
4396
cf82af05
TT
43972019-07-17 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui.c (tui_rl_other_window): Update.
4400 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4401 superclass method first. Always iterate over regs_content.
4402 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4403 method.
4404 * tui/tui-win.c (tui_set_focus_command): Update.
4405
01aeb396
TT
44062019-07-17 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-win.c (tui_set_focus_command): Rename from
4409 tui_set_focus. Call tui_enable.
4410 (tui_set_focus_command): Remove.
4411
fd6c75ee
TT
44122019-07-17 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4415 refresh_window.
4416 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4417 touchwin.
4418 (tui_data_window::refresh_window): Call refresh_window on data
4419 items. Always call superclass refresh_window.
4420 (tui_win_info::refresh): Remove.
4421 (tui_source_window_base::refresh_window): Update.
4422 (tui_refresh_all): Update.
4423 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4424 refresh_window.
4425 (show_source_or_disasm_and_command): Likewise.
4426 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4427 (struct tui_source_window_base) <refresh>: Likewise.
4428
f6cc34a9
TT
44292019-07-17 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-winsource.c (tui_clear_source_content)
4432 (tui_show_source_content): Update.
4433 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4434 whether content is empty.
4435 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4436 Remove.
4437
f31ec9af
TT
44382019-07-17 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4441 window's contents.
4442 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4443 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4444
d1b6f1e5
TT
44452019-07-17 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4448 (struct tui_data_item_window): Update.
4449
d9743a13
TT
44502019-07-17 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4453 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4454 defines.
4455
caf0bc4e
TT
44562019-07-17 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-winsource.h (tui_erase_source_content)
4459 (tui_clear_source_content): Remove "display_prompt" parameter.
4460 * tui/tui-winsource.c (tui_update_source_window_as_is)
4461 (tui_update_source_windows_with_addr): Update.
4462 (tui_clear_source_content): Remove "display_prompt" parameter.
4463 (tui_erase_source_content): Likewise. Simplify.
4464 (tui_show_source_content): Update.
4465 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4466 * tui/tui-stack.c (tui_show_frame_info): Update.
4467 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4468 Remove defines.
4469
9d391078
TT
44702019-07-17 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4473 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4474 parameter.
4475 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4476 parameter.
4477
a38da35d
TT
44782019-07-17 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-winsource.c (tui_clear_source_content)
4481 (tui_show_source_content, tui_show_exec_info_content)
4482 (tui_clear_exec_info_content): Update.
4483 * tui/tui-stack.c (tui_show_locator_content): Update.
4484 (tui_show_frame_info): Update.
4485 * tui/tui-source.h (tui_source_window): Don't declare.
4486 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4487 from tui_source_is_displayed.
4488 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4489 Remove field.
4490 (struct tui_source_window_base) <content_in_use>: New field. Now
4491 bool.
4492 (struct tui_source_window) <showing_source_p>: New method.
4493 (TUI_SRC_WIN): Change cast.
4494 * tui/tui-data.c (tui_initialize_static_data): Update.
4495
c2cd8994
TT
44962019-07-17 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4499 location_matches_p.
4500 * tui/tui-source.c (tui_source_window::location_matches_p): New
4501 method.
4502 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4503 method.
4504 * tui/tui-data.h (struct tui_source_window_base)
4505 <location_matches_p>: New method.
4506 (struct tui_source_window, struct tui_disasm_window)
4507 <location_matches_p>: Likewise.
4508
4dde7b34
TT
45092019-07-17 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-win.c (tui_set_win_height_command): Rename from
4512 tui_set_win_height.
4513 (tui_set_win_height_command): Remove.
4514
b73dd877
TT
45152019-07-17 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-source.c (tui_source_window): New constructor. Add
4518 observer.
4519 (~tui_source_window): New destructor.
4520 (tui_source_window::style_changed): New method.
4521 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4522 (tui_attach_detach_observers): Update.
4523 * tui/tui-data.h (struct tui_source_window): Make constructor not
4524 inline. Add destructor.
4525 (struct tui_source_window) <style_changed>: New method.
4526 <m_observable>: New member.
4527
ae2b5380
TT
45282019-07-17 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4531 * tui/tui-win.c (tui_resize_all): Fix typo.
4532
1ce3e844
TT
45332019-07-17 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4536 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4537 (tui_refresh_all): Remove "list" parameter. Use foreach.
4538 * tui/tui-win.c (window_name_completer): Use foreach.
4539 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4540 (update_tab_width): Likewise.
4541 * tui/tui-layout.c (show_layout): Update.
4542 * tui/tui-data.h (class tui_window_iterator): New.
4543 (struct all_tui_windows): New.
4544 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4545
fe3eaf1c
TT
45462019-07-17 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4549 parameter. Don't reference globals.
4550 (tui_reg_command): Update.
4551
368c1354
TT
45522019-07-17 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-regs.c (tui_show_registers): Simplify.
4555
e80cd204
TT
45562019-07-17 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-regs.c (tui_show_registers): Update.
4559 (tui_show_register_group): Add win_info parameter.
4560
aca2dd16
TT
45612019-07-17 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4564 Rename from tui_display_reg_element_at_line.
4565 (tui_data_window::display_registers_from_line): Update.
4566 * tui/tui-data.h (struct tui_data_window)
4567 <display_reg_element_at_line>: New method.
4568
517e9505
TT
45692019-07-17 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-regs.h (tui_display_registers_from)
4572 (tui_display_registers_from_line): Don't declare.
4573 * tui/tui-windata.c (tui_data_window::display_all_data)
4574 (tui_data_window::refresh_all)
4575 (tui_data_window::do_scroll_vertical): Update.
4576 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4577 from tui_display_registers_from.
4578 (tui_display_reg_element_at_line): Update.
4579 (tui_data_window::display_registers_from_line): Rename from
4580 tui_display_registers_from_line.
4581 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4582 display_registers_from_line>: New methods.
4583
f76d8b19
TT
45842019-07-17 Tom Tromey <tom@tromey.com>
4585
4586 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4587 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4588 from tui_erase_data_content.
4589 (tui_data_window::display_all_data)
4590 (tui_data_window::refresh_all)
4591 (tui_data_window::do_scroll_vertical): Update.
4592 * tui/tui-regs.c (tui_show_registers): Update.
4593 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4594 New method.
4595
b4094625
TT
45962019-07-17 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4599 declare.
4600 * tui/tui-windata.c
4601 (tui_data_window::delete_data_content_windows): Rename from
4602 tui_delete_data_content_windows.
4603 (tui_data_window::display_all_data)
4604 (tui_data_window::do_scroll_vertical): Update.
4605 * tui/tui-data.h (struct tui_data_window)
4606 <delete_data_content_windows>: New method.
4607
c223a729
TT
46082019-07-17 Tom Tromey <tom@tromey.com>
4609
4610 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4611 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4612
50daf268
TT
46132019-07-17 Tom Tromey <tom@tromey.com>
4614
4615 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4616 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4617 from tui_display_all_data.
4618 * tui/tui-win.c
4619 (tui_data_window::do_make_visible_with_new_height): Update.
4620 * tui/tui-regs.c (tui_show_registers): Update.
4621 * tui/tui-layout.c (tui_set_layout): Update.
4622 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4623 method.
4624
df5f8cab
TT
46252019-07-17 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4628 * tui/tui-windata.c (tui_display_data_from): Remove.
4629 (tui_data_window::refresh_all): Update.
4630
80cb6c27
TT
46312019-07-17 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4634 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4635 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4636 tui_display_registers_from_line.
4637 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4638 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4639 "force_display" parameter.
4640
baff0c28
TT
46412019-07-17 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4644 declare.
4645 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4646 Rename from tui_first_reg_element_no_inline.
4647 (tui_display_reg_element_at_line)
4648 (tui_display_registers_from_line): Update.
4649 * tui/tui-data.h (struct tui_data_window)
4650 <first_reg_element_no_inline>: New method.
4651
3b23c5f2
TT
46522019-07-17 Tom Tromey <tom@tromey.com>
4653
4654 * tui/tui-windata.c (tui_display_data_from)
4655 (tui_data_window::do_scroll_vertical): Update.
4656 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4657 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4658 Rename from tui_line_from_reg_element_no.
4659 (tui_display_registers_from_line): Update.
4660 * tui/tui-data.h (struct tui_data_window)
4661 <line_from_reg_element_no>: New method.
4662
0b5ec218
TT
46632019-07-17 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4666 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4667 tui_last_regs_line_no.
4668 (tui_display_reg_element_at_line)
4669 (tui_display_registers_from_line): Update.
4670 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4671 method.
4672
0807ab7b
TT
46732019-07-17 Tom Tromey <tom@tromey.com>
4674
4675 PR tui/24722:
4676 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4677 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4678 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4679 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4680 (tui_update_breakpoint_info): Likewise.
4681 * tui/tui-hooks.c (tui_event_create_breakpoint)
4682 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4683 Update.
4684
9ad7fdef
TT
46852019-07-17 Tom Tromey <tom@tromey.com>
4686
4687 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4688
5813316f
TT
46892019-07-17 Tom Tromey <tom@tromey.com>
4690
4691 * tui/tui-winsource.c (tui_update_source_window_as_is)
4692 (tui_update_source_windows_with_addr): Update.
4693 * tui/tui-source.h (tui_set_source_content)
4694 (tui_show_symtab_source): Add "win_info" parameter.
4695 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4696 parameter.
4697 (tui_show_symtab_source): Likewise.
4698
00e264e7
TT
46992019-07-17 Tom Tromey <tom@tromey.com>
4700
4701 * tui/tui-wingeneral.c
4702 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4703
06210ce4
TT
47042019-07-17 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4707 (struct tui_cmd_window) <can_scroll>: New method.
4708 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4709 method.
4710
381befee
TT
47112019-07-17 Tom Tromey <tromey@adacore.com>
4712
4713 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4714 do_field_signed>: Rename. Change type of "value".
4715 * ui-out.c (ui_out::field_signed): Rename from field_int.
4716 Change type of "value".
4717 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4718 type of "value".
4719 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4720 do_field_int. Change type of "value".
4721 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4722 do_field_int. Change type of "value".
4723 * tracepoint.c (trace_status_mi, tfind_1)
4724 (print_one_static_tracepoint_marker): Update.
4725 * thread.c (print_thread_info_1, print_selected_thread_frame):
4726 Update.
4727 * stack.c (print_frame, print_frame_info): Update.
4728 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4729 Update.
4730 * source.c (print_source_lines_base): Update.
4731 * skip.c (info_skip_command): Update.
4732 * record-btrace.c (btrace_ui_out_decode_error)
4733 (btrace_call_history_src_line): Update.
4734 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4735 Update.
4736 * progspace.c (print_program_space): Update.
4737 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4738 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4739 do_field_int. Change type of "value".
4740 * mi/mi-out.c (mi_ui_out::do_table_begin)
4741 (mi_ui_out::do_table_header): Update.
4742 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4743 type of "value".
4744 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4745 (mi_cmd_data_list_changed_registers, output_register)
4746 (mi_cmd_data_read_memory, mi_load_progress)
4747 (mi_cmd_trace_frame_collected): Update.
4748 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4749 Update.
4750 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4751 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4752 (mi_cmd_var_list_children, varobj_update_one): Update.
4753 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4754 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4755 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4756 * inferior.c (print_inferior): Update.
4757 * gdb_bfd.c (print_one_bfd): Update.
4758 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4759 Update.
4760 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4761 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4762 do_field_int. Change type of "value".
4763 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4764 do_field_int. Change type of "value".
4765 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4766 (print_one_breakpoint_location, print_it_catch_fork)
4767 (print_one_catch_fork, print_it_catch_vfork)
4768 (print_one_catch_vfork, print_it_catch_solib)
4769 (print_it_catch_exec, print_it_ranged_breakpoint)
4770 (print_mention_watchpoint, print_mention_masked_watchpoint)
4771 (bkpt_print_it, update_static_tracepoint): Update.
4772 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4773 * break-catch-syscall.c (print_it_catch_syscall): Update.
4774 * ada-tasks.c (print_ada_task_info): Update.
4775 * ada-lang.c (print_it_exception, print_mention_exception):
4776 Update.
4777
6b78c3f8
AB
47782019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 PR breakpoints/24541
4781 * gdbarch.c: Regenerate.
4782 * gdbarch.h: Regenerate.
4783 * gdbarch.sh: Adjust return type and parameter types for
4784 'stap_adjust_register'.
4785 (i386_stap_adjust_register): Adjust signature and return new
4786 register name.
4787 * stap-probe.c (stap_parse_register_operand): Adjust use of
4788 'gdbarch_stap_adjust_register'.
4789
d72a9b85
TT
47902019-07-17 Tom Tromey <tromey@adacore.com>
4791
4792 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4793 declare VEC.
4794 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4795 std::vector.
4796 (struct s390_process_info): Add initializers.
4797 (s390_add_process): Use new.
4798 (s390_linux_nat_target::low_forget_process): Use delete.
4799 (s390_linux_nat_target::low_new_fork)
4800 (s390_linux_nat_target::stopped_by_watchpoint)
4801 (s390_linux_nat_target::low_prepare_to_resume)
4802 (s390_linux_nat_target::insert_watchpoint)
4803 (s390_linux_nat_target::insert_hw_breakpoint)
4804 (s390_linux_nat_target::remove_watchpoint)
4805 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4806
206e6c58
JB
48072019-07-16 John Baldwin <jhb@FreeBSD.org>
4808
4809 * aarch64-fbsd-nat.c: Include regcache.h.
4810 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4811 argument.
4812 (aarch64_fbsd_nat_target::fetch_registers)
4813 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4814 variable.
4815 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4816
cbde90f2
JB
48172019-07-16 John Baldwin <jhb@FreeBSD.org>
4818
4819 * fbsd-nat.c: Include gdbarch.h.
4820
07128006
TT
48212019-07-15 Tom Tromey <tromey@adacore.com>
4822
4823 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4824
1f77b012
TT
48252019-07-15 Tom Tromey <tromey@adacore.com>
4826
4827 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4828 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4829 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4830 * cli-out.c (cli_ui_out::do_field_int): New method.
4831 * ui-out.c (ui_out::field_unsigned): New method.
4832 * symfile.c (generic_load): Use field_unsigned.
4833 (print_transfer_performance): Likewise.
4834 * record-btrace.c (ui_out_field_uint): Remove.
4835 (btrace_call_history_insn_range, btrace_call_history): Use
4836 field_unsigned.
4837 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4838 field_unsigned.
4839 * ui-out.h (class ui_out) <field_unsigned>: New method.
4840 <do_field_unsigned>: Likewise.
4841
33eca680
TT
48422019-07-15 Tom Tromey <tromey@adacore.com>
4843
4844 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4845 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4846 * target.c (flash_erase_command): Use field_string.
4847 * infrun.c (print_signal_received_reason): Use field_string.
4848 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4849 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4850 field_string.
4851 * ada-tasks.c (print_ada_task_info): Use field_string.
4852
ca8d69be
TT
48532019-07-15 Tom Tromey <tromey@adacore.com>
4854
4855 * target.c (flash_erase_command): Use field_core_addr.
4856 * symfile.c (generic_load): Use field_core_addr.
4857 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4858 Use field_core_addr.
4859 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4860 field_core_addr.
4861
0d4e84ed
AB
48622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4865 value if its desired type is smaller than a CORE_ADDR and signed.
4866
9a49df9d
AB
48672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4870 of changes to field names, and use new is_reference field to
4871 decide if a property is a reference or not.
4872 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4873 field.
4874 (struct dwarf2_property_baton): Update header comment, rename
4875 'referenced_type' to 'property_type' and update comments.
4876 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4877 default property type, store in property baton, update to take
4878 accound of renamed field.
4879 (read_func_scope): Update call to attr_to_dynamic_prop.
4880 (read_array_type): Likewise.
4881 (dwarf2_per_cu_addr_sized_int_type): New function.
4882 (read_subrange_index_type): Move type finding code to
4883 dwarf2_per_cu_addr_sized_int_type.
4884 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4885 (dwarf2_per_cu_addr_type): New function.
4886 (set_die_type): Update calls to attr_to_dynamic_prop.
4887
b86352cf
AB
48882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * dwarf2read.c (read_subrange_index_type): New function.
4891 (read_subrange_type): Move code into new function and call it.
4892 * gdbtypes.c (create_range_type): Add some asserts.
4893
603490bf
AB
48942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4895
4896 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4897 update return statements.
4898 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4899 declaration, and update comment to match.
4900 * gdbtypes.c (resolve_dynamic_array): Update call to
4901 dwarf2_evaluate_property to match new return type.
4902
592f9d27
AB
49032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4904
4905 * valarith.c (value_subscripted_rvalue): Change lowerbound
4906 parameter type from int to LONGEST.
4907 * value.h (value_subscripted_rvalue): Likewise in declaration.
4908
60cfcb20
AB
49092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4910
4911 * cli/cli-utils.c (info_print_command_completer): New function.
4912 * cli/cli-utils.h: Add 'completer.h' include, and forward
4913 declaration for 'struct cmd_list_element'.
4914 (info_print_command_completer): Declare.
4915 * stack.c (_initialize_stack): Add completer for 'info locals' and
4916 'info args'.
4917 * symtab.c (_initialize_symtab): Add completer for 'info
4918 variables' and 'info functions'.
4919 * NEWS: Mention completion for additional info commands.
4920
b16507e0
AB
49212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * cli/cli-utils.c (extract_info_print_args): Delete.
4924 (extract_arg_maybe_quoted): Delete.
4925 (info_print_options_defs): New variable.
4926 (make_info_print_options_def_group): New function.
4927 (extract_info_print_options): Define new function.
4928 * cli/cli-utils.h (extract_info_print_args): Delete.
4929 (struct info_print_options): New structure.
4930 (extract_info_print_options): Declare new function.
4931 * stack.c (info_locals_command): Update to use new
4932 extract_info_print_options, also add a header comment.
4933 (info_args_command): Likewise.
4934 * symtab.c (info_variables_command): Likewise.
4935 (info_functions_command): Likewise.
4936
021d8588
AB
49372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4940 to extract string arguments.
4941 * common/common-utils.c (extract_string_maybe_quoted): New function.
4942 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4943
b777eb6d
TT
49442019-07-11 Tom Tromey <tromey@adacore.com>
4945
4946 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4947 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4948 * top.h (gdbinit): Don't declare.
4949 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4950 into...
4951 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4952 * top.c (gdb_init): Don't call init_cli_cmds.
4953 (gdbinit): Remove.
4954 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4955
72ee03ff
TT
49562019-07-11 Tom Tromey <tromey@adacore.com>
4957
4958 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4959 after it has been moved.
4960
00db9531
SM
49612019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4962
4963 * valops.c (value_must_coerce_to_target): Change return type to
4964 bool.
4965 * value.h (value_must_coerce_to_target): Likewise.
4966
f2478a7e
SM
49672019-07-10 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * breakpoint.c (is_hardware_watchpoint): Remove
4970 forward-declaration.
4971 (is_masked_watchpoint): Change return type to bool.
4972 (is_tracepoint): Likewise.
4973 (is_breakpoint): Likewise.
4974 (is_hardware_watchpoint): Likewise.
4975 (is_watchpoint): Likewise.
4976 (is_no_memory_software_watchpoint): Likewise.
4977 (is_catchpoint): Likewise.
4978 (breakpoint_1): Make FILTER parameter's return type bool.
4979 is_masked_watchpoint): Change return type to bool.
4980 (save_breakpoints): Make FILTER parameter's return type bool.
4981 * breakpoint.h (is_breakpoint): Change return type to bool.
4982 (is_watchpoint): Likewise.
4983 (is_catchpoint): Likewise.
4984 (is_tracepoint): Likewise.
4985
0d12e84c
TT
49862019-07-10 Tom Tromey <tom@tromey.com>
4987
4988 * defs.h: Don't include gdbarch.h.
4989 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4990 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4991 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4992 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4993 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4994 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4995 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4996 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4997 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4998 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4999 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5000 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5001 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5002 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5003 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5004 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5005 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5006 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5007 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5008 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5009 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5010 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5011 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5012 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5013 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5014 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5015 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5016
f06f1252
TT
50172019-07-10 Tom Tromey <tromey@adacore.com>
5018
5019 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5020 * breakpoint.c (init_ada_exception_breakpoint): Register as
5021 bp_catchpoint.
5022 (print_one_breakpoint_location, print_one_breakpoint): Use
5023 is_ada_exception_catchpoint.
5024 * ada-lang.c (class ada_catchpoint_location): Pass
5025 bp_loc_software_breakpoint to bp_location constructor.
5026 (is_ada_exception_catchpoint): New function.
5027
7a5d944b
TT
50282019-07-10 Tom Tromey <tromey@adacore.com>
5029
5030 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5031 VEC.
5032 (struct arm_exidx_entry): New method operator<.
5033 (struct arm_exidx_data) <section_maps>: Change type.
5034 (arm_exidx_data_free): Remove.
5035 (arm_exidx_data_key): Change type. Move lower.
5036 (arm_exidx_new_objfile): Update.
5037 (arm_compare_exidx_entries): Remove.
5038 (arm_find_exidx_entry, _initialize_arm_tdep)
5039
48c66e1d
TT
50402019-07-10 Tom Tromey <tromey@adacore.com>
5041
5042 * solib-spu.c (ocl_program_data_key): Change type.
5043 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5044 Update.
5045
a269fbf1
TT
50462019-07-10 Tom Tromey <tromey@adacore.com>
5047
5048 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5049 (struct solib_aix_inferior_data) <library_list>: Change type.
5050 (solib_aix_inferior_data_handle): Change type.
5051 (get_solib_aix_inferior_data): Update.
5052 (solib_aix_free_library_list): Remove.
5053 (library_list_start_library): Update.
5054 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5055 return type.
5056 (solib_aix_get_library_list)
5057 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5058 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5059
c294730c
TT
50602019-07-10 Tom Tromey <tromey@adacore.com>
5061
5062 * solib-dsbt.c (struct dsbt_info): Add initializers.
5063 (solib_dsbt_pspace_data): Change type.
5064 (dsbt_pspace_data_cleanup): Remove.
5065 (get_dsbt_info, _initialize_dsbt_solib): Update.
5066
9d52077d
TT
50672019-07-10 Tom Tromey <tromey@adacore.com>
5068
5069 * spu-tdep.c (spu_overlay_data): Change type.
5070 (spu_get_overlay_table, spu_overlay_new_objfile)
5071 (_initialize_spu_tdep): Update.
5072
22a20dca
TT
50732019-07-10 Tom Tromey <tromey@adacore.com>
5074
5075 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5076 destructor.
5077 (dbx_objfile_data_key): Change type and declare later.
5078 (DBX_SYMFILE_INFO): Rewrite.
5079 * dbxread.c (dbx_objfile_data_key): Change type.
5080 (dbx_symfile_init): Update.
5081 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5082 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5083 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5084
cb60f420
TT
50852019-07-10 Tom Tromey <tromey@adacore.com>
5086
5087 * jit.c (jit_program_space_key): Change type. Move lower.
5088 (get_jit_program_space_data): Update.
5089 (jit_program_space_data_cleanup): Remove.
5090 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5091 Update.
5092 (struct jit_program_space_data): Add initializers.
5093
51df2ae3
TT
50942019-07-10 Tom Tromey <tromey@adacore.com>
5095
5096 * solib-darwin.c (struct darwin_info): Add initializers.
5097 (solib_darwin_pspace_data): Change type.
5098 (darwin_pspace_data_cleanup): Remove.
5099 (get_darwin_info, _initialize_darwin_solib): Update.
5100
18101a35
TT
51012019-07-10 Tom Tromey <tromey@adacore.com>
5102
5103 * remote-sim.c (struct sim_inferior_data): Add initializers,
5104 constructor, and destructor.
5105 (sim_inferior_data_key): Change type. Move lower.
5106 (check_for_duplicate_sim_descriptor): Update.
5107 (get_sim_inferior_data): Use new. Update.
5108 (~sim_inferior_data_cleanup): Rename from
5109 sim_inferior_data_cleanup. Simplify.
5110 (gdbsim_close_inferior, simulator_command)
5111 (sim_command_completer, _initialize_remote_sim): Update.
5112 (next_pid, INITIAL_PID): Move earlier.
5113
05b08ac1
TT
51142019-07-10 Tom Tromey <tromey@adacore.com>
5115
5116 * python/python-internal.h (create_thread_object): Return
5117 gdbpy_ref.
5118 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5119 * python/py-inferior.c (struct threadlist_entry): Add
5120 constructor.
5121 <thread_obj>: Now a gdbpy_ref.
5122 (thread_to_thread_object): Update.
5123 (add_thread_object): Use new.
5124 (delete_thread_object): Use delete.
5125 (infpy_threads): Update.
5126 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5127 GIL.
5128
32372d80
TT
51292019-07-10 Tom Tromey <tromey@adacore.com>
5130
5131 * valops.c (value_cast): Specialize error message for Ada.
5132
5c458ae8
SM
51332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5136
4c462cb0
SM
51372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5140 bpstat_should_step): Return bool, adjust comments.
5141 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5142 bpstat_should_step): Likewise.
5143
89abbcc2
AH
51442019-07-10 Alan Hayward <alan.hayward@arm.com>
5145
5146 * features/Makefile: Use feature target descriptions for Arm.
5147 * features/arm/arm-core.c: Generate new file.
5148 * features/arm/arm-fpa.c: Likewise.
5149 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5150 * features/arm/arm-m-profile.c: Likewise.
5151 * features/arm/arm-vfpv2.c: Likewise.
5152 * features/arm/arm-vfpv3.c: Likewise.
5153 * features/arm/xscale-iwmmxt.c: Likewise.
5154 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5155
166a82be
AH
51562019-07-10 Alan Hayward <alan.hayward@arm.com>
5157
5158 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5159 ptrace earlier.
5160
9fb4c7e9
AH
51612019-07-10 Alan Hayward <alan.hayward@arm.com>
5162
5163 * features/aarch64-pauth.c: Regenerate.
5164
e2d0f980
SM
51652019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5166
5167 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5168 bool.
5169 (bpstat_what): Use false instead of 0.
5170
a38118e5
PA
51712019-07-09 Pedro Alves <palves@redhat.com>
5172
5173 * break-catch-throw.c (is_exception_catchpoint): New.
5174 * breakpoint.c (print_one_breakpoint_location): New parameter
5175 'raw_loc'. Handle it. Use
5176 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5177 looking at the breakpoint's type.
5178 (print_one_breakpoint): If handling "maint info breakpoints", also
5179 print locations of exception catchpoints.
5180 * breakpoint.h (is_exception_catchpoint): Declare.
5181
cb1e4e32
PA
51822019-07-09 Pedro Alves <palves@redhat.com>
5183
5184 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5185 "addr" field.
5186 (allocate_location_exception_catchpoint): New.
5187 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5188 (initialize_throw_catchpoint_ops): Install
5189 allocate_location_exception_catchpoint as allocate_location
5190 method.
5191 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5192 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5193 bp_loc_other.
5194 (breakpoint_address_is_meaningful): Delete.
5195 (bl_address_is_meaningful): New.
5196 (breakpoint_locations_match): Adjust comment.
5197 (bp_location_from_bp_type): New, factored out of...
5198 (bp_location::bp_location(breakpoint *)): ... this.
5199 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5200 factored out of...
5201 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5202 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5203 breakpoint_address_is_meaningful.
5204 (bp_locations_compare): Adjust comment.
5205 (update_global_location_list): Use bl_address_is_meaningful
5206 instead of breakpoint_address_is_meaningful.
5207 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5208 explicit.
5209 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5210 * python/py-breakpoint.c (bppy_get_location): No longer check
5211 whether location is null.
5212
b58a68fe
PA
52132019-07-09 Pedro Alves <palves@redhat.com>
5214
5215 PR c++/15468
5216 * breakpoint.c (print_one_breakpoint_location): Remove
5217 single-location assert.
5218
268a13a5
TT
52192019-07-09 Tom Tromey <tom@tromey.com>
5220
5221 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5222 * configure: Rebuild.
5223 * configure.ac: Change common to gdbsupport.
5224 * gdbsupport: Rename from common.
5225 * acinclude.m4: Change common to gdbsupport.
5226 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5227 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5228 gdbsupport.
5229 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5230 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5231 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5232 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5233 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5234 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5235 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5236 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5237 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5238 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5239 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5240 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5241 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5242 coff-pe-read.c, command.h, compile/compile-c-support.c,
5243 compile/compile-c.h, compile/compile-cplus-symbols.c,
5244 compile/compile-cplus-types.c, compile/compile-cplus.h,
5245 compile/compile-loc2c.c, compile/compile.c, completer.c,
5246 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5247 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5248 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5249 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5250 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5251 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5252 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5253 features/aarch64-core.c, features/aarch64-fpu.c,
5254 features/aarch64-pauth.c, features/aarch64-sve.c,
5255 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5256 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5257 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5258 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5259 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5260 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5261 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5262 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5263 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5264 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5265 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5266 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5267 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5268 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5269 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5270 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5271 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5272 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5273 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5274 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5275 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5276 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5277 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5278 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5279 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5280 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5281 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5282 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5283 minsyms.c, mips-linux-tdep.c, namespace.h,
5284 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5285 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5286 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5287 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5288 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5289 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5290 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5291 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5292 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5293 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5294 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5295 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5296 procfs.c, producer.c, progspace.h, psymtab.h,
5297 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5298 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5299 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5300 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5301 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5302 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5303 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5304 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5305 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5306 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5307 target-memory.c, target.c, target.h, target/waitstatus.c,
5308 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5309 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5310 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5311 unittests/array-view-selftests.c,
5312 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5313 unittests/common-utils-selftests.c,
5314 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5315 unittests/format_pieces-selftests.c,
5316 unittests/function-view-selftests.c,
5317 unittests/lookup_name_info-selftests.c,
5318 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5319 unittests/mkdir-recursive-selftests.c,
5320 unittests/observable-selftests.c,
5321 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5322 unittests/parse-connection-spec-selftests.c,
5323 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5324 unittests/scoped_fd-selftests.c,
5325 unittests/scoped_mmap-selftests.c,
5326 unittests/scoped_restore-selftests.c,
5327 unittests/string_view-selftests.c, unittests/style-selftests.c,
5328 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5329 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5330 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5331 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5332 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5333 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5334
5b0e2db4
AB
53352019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5336
5337 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5338 bool value.
5339 (decode_digits_ordinary): Set explicit_line field in sal.
5340 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5341 symtab_and_line that was set on an explicit line number in
5342 assembler code. Do always update the recorded symtab and line if
5343 we do skip the prologue.
5344
0ba852ab
AB
53452019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5346
5347 * breakpoint.c (set_breakpoint_location_function): Remove
5348 explicit_loc parameter.
5349 (momentary_breakpoint_from_master): Update call to
5350 set_breakpoint_location_function.
5351 (add_location_to_breakpoint): Likewise.
5352
b3a7d171
AB
53532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5354
5355 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5356 required features based on default bfd type when no specific bfd
5357 is present.
5358
1f6f6e21
PW
53592019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * NEWS: Mention that GDB printf and eval commands can now print
5362 C-style and Ada-style convenience var strings without
5363 calling the inferior.
5364 * printcmd.c (printf_c_string): Locally print GDB internal var
5365 instead of transiting via the inferior.
5366 (printf_wide_c_string): Likewise.
5367
53682019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5369
5862c886 5370 PR breakpoints/25011
ea142fbf
AH
5371 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5372
0598af48
TT
53732019-07-04 Tom Tromey <tom@tromey.com>
5374
5375 PR tui/24724:
5376 * tui/tui-winsource.c (tui_clear_source_content): Update.
5377 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5378 (tui_update_breakpoint_info): Update.
5379 (tui_set_exec_info_content): Update.
5380 * tui/tui-source.c (tui_set_source_content_nil): Update.
5381 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5382 has_break.
5383 * tui/tui-data.h (enum tui_bp_flag): New.
5384 (tui_bp_flags): New enum flags type.
5385 (struct tui_source_element) <break_mode>: Change type. Rename
5386 from has_break.
5387 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5388 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5389 constants.
5390 * tui/tui-winsource.h: Fix comment.
5391
350fab54
AH
53922019-07-04 Alan Hayward <alan.hayward@arm.com>
5393
5394 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5395 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5396 (store_fpregs_to_thread)
5397 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5398 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5399 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5400 (IWMMXT_REGS_SIZE): Add define.
5401 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5402 (fetch_vfp_regs, store_vfp_regs)
5403 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5404 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5405
f0452268
AH
54062019-07-04 Alan Hayward <alan.hayward@arm.com>
5407
5408 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5409 defines.
5410 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5411 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5412 (ARM_INT_REGISTER_SIZE): ...to this.
5413 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5414 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5415 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5416 (arm_linux_collect_gregset, supply_nwfpe_register)
5417 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5418 defines.
5419 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5420 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5421 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5422 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5423 (arm_return_in_memory, arm_store_return_value)
5424 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5425 (arm_record_ld_st_multiple): Likewise.
5426 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5427 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5428
e935475c
AH
54292019-07-04 Alan Hayward <alan.hayward@arm.com>
5430
5431 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5432 AARCH64_DISPLACED_MODIFIED_INSNS.
5433 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5434 (aarch64_displaced_step_copy_insn): Likewise.
5435 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5436 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5437 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5438 ARM_DISPLACED_MODIFIED_INSNS.
5439 * arm-tdep.c (arm_gdbarch_init): Likewise.
5440 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5441 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5442 (struct arm_displaced_step_closure): Use
5443 ARM_DISPLACED_MODIFIED_INSNS.
5444
df0bb381
AH
54452019-07-04 Alan Hayward <alan.hayward@arm.com>
5446
5447 * features/Makefile: Remove unused xml files.
5448 * features/aarch64.xml: Remove.
5449 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5450 * features/i386/amd64-avx-avx512.xml: Remove.
5451 * features/i386/amd64-avx-linux.xml: Remove.
5452 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5453 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5454 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5455 * features/i386/amd64-avx-mpx.xml: Remove.
5456 * features/i386/amd64-avx.xml: Remove.
5457 * features/i386/amd64-linux.xml: Remove.
5458 * features/i386/amd64-mpx-linux.xml: Remove.
5459 * features/i386/amd64-mpx.xml: Remove.
5460 * features/i386/amd64.xml: Remove.
5461 * features/i386/i386-avx-avx512-linux.xml: Remove.
5462 * features/i386/i386-avx-avx512.xml: Remove.
5463 * features/i386/i386-avx-linux.xml: Remove.
5464 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5465 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5466 * features/i386/i386-avx-mpx-linux.xml: Remove.
5467 * features/i386/i386-avx-mpx.xml: Remove.
5468 * features/i386/i386-avx.xml: Remove.
5469 * features/i386/i386-linux.xml: Remove.
5470 * features/i386/i386-mmx-linux.xml: Remove.
5471 * features/i386/i386-mmx.xml: Remove.
5472 * features/i386/i386-mpx-linux.xml: Remove.
5473 * features/i386/i386-mpx.xml: Remove.
5474 * features/i386/i386.xml: Remove.
5475 * features/i386/x32-avx-avx512-linux.xml: Remove.
5476 * features/i386/x32-avx-linux.xml: Remove.
5477 * features/i386/x32-linux.xml: Remove.
5478
edd6266a
AH
54792019-07-04 Alan Hayward <alan.hayward@arm.com>
5480
5481 * regformats/aarch64.dat: Remove.
5482 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5483 * regformats/i386/amd64-avx-linux.dat: Remove.
5484 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5485 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5486 * regformats/i386/amd64-linux.dat: Remove.
5487 * regformats/i386/amd64-mpx-linux.dat: Remove.
5488 * regformats/i386/amd64.dat: Remove.
5489 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5490 * regformats/i386/i386-avx-linux.dat: Remove.
5491 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5492 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5493 * regformats/i386/i386-linux.dat: Remove.
5494 * regformats/i386/i386-mmx-linux.dat: Remove.
5495 * regformats/i386/i386-mpx-linux.dat: Remove.
5496 * regformats/i386/i386.dat: Remove.
5497 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5498 * regformats/i386/x32-avx-linux.dat: Remove.
5499 * regformats/i386/x32-linux.dat: Remove.
5500
2b40fda7
AH
55012019-07-04 Alan Hayward <alan.hayward@arm.com>
5502
5503 * aarch64-tdep.c: Remove xml self tests.
5504 * amd64-linux-tdep.c: Likewise.
5505 * amd64-tdep.c: Likewise.
5506 * i386-linux-tdep.c: Likewise.
5507 * i386-tdep.c: Likewise.
5508
5f4ba3e7
PA
55092019-07-03 Pedro Alves <palves@redhat.com>
5510
5511 PR cli/24732
5512 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5513 (pipe_cmd_option_defs): New.
5514 (make_pipe_cmd_options_def_group): New.
5515 (pipe_command): Use gdb::option::process_options.
5516 (pipe_command_completer): New function.
5517 (_initialize_cli_cmds): Install completer for "pipe" command.
5518
3d9be6f5
PA
55192019-07-03 Pedro Alves <palves@redhat.com>
5520
5521 * cli/cli-option.c (union option_value) <string>: New field.
5522 (struct option_def_and_value): Add ctor, move ctor, dtor and
5523 use DISABLE_COPY_AND_ASSIGN.
5524 (option_def_and_value::clear_value): New.
5525 (parse_option, save_option_value_in_ctx, get_val_type_str)
5526 (add_setshow_cmds_for_options): Handle var_string.
5527 * cli-option.h (union option_def::var_address) <string>: New
5528 field.
5529 (struct string_option_def): New.
5530 * maint-test-options.c (struct test_options_opts): Add default
5531 ctor and use DISABLE_COPY_AND_ASSIGN.
5532 <string_opt>: New field.
5533 (test_options_opts::~test_options_opts): New.
5534 (test_options_opts::dump): Also dump "-string".
5535 (test_options_option_defs): Install "string.
5536
41fc454c
PA
55372019-07-03 Pedro Alves <palves@redhat.com>
5538
5539 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5540 option_value with a null enumeration.
5541 (complete_options): Save the option values in the context.
5542 (save_option_value_in_ctx): New, factored out from ...
5543 (process_options): ... here.
5544 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5545 of the function.
5546 * maint-test-options.c (test_options_opts::dump): New, factored
5547 out from ...
5548 (maintenance_test_options_command_mode): ... here.
5549 (maintenance_test_options_command_completion_result): Delete.
5550 (maintenance_test_options_command_completion_text): Update
5551 comment.
5552 (maintenance_show_test_options_completion_result): Change
5553 prototype. Just print
5554 maintenance_test_options_command_completion_text.
5555 (save_completion_result): New.
5556 (maintenance_test_options_completer_mode): Pass options context to
5557 complete_options, and then save a dump.
5558 (_initialize_maint_test_options): Use add_cmd to install "maint
5559 show test-options-completion-result".
5560
fdbc9870
PA
55612019-07-03 Pedro Alves <palves@redhat.com>
5562
5563 * NEWS (New commands): Mention "with" and "maint with".
5564 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5565 (with_command, with_command_completer): New.
5566 (pipe_command): Adjust to new repeat_previous
5567 interface.
5568 (_initialize_cli_cmds): Install the "with" command and its "w"
5569 alias.
5570 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5571 declarations.
5572 * cli/cli-setshow.c (parse_cli_var_uinteger)
5573 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5574 argument strings for all var_types.
5575 (get_setshow_command_value_string): New, factored out from ...
5576 (do_show_command): ... this.
5577 * cli/cli-setshow.h: Include <string>.
5578 (get_setshow_command_value_string): Declare.
5579 * command.h (repeat_previous): Now returns const char *. Adjust
5580 comment.
5581 * maint.c: Include "cli/cli-cmds.h".
5582 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5583 (_initialize_maint_cmds): Register the "maintenance with" command.
5584 * top.c (repeat_previous): Move bits from pipe_command here:
5585 Return the saved command line, if any; error out if there's no
5586 command to relaunch.
5587
c6ac8931
PA
55882019-07-03 Pedro Alves <palves@redhat.com>
5589
5590 * NEWS (New commands): Mention "maint set/show test-settings"
5591 instead of "maint test-settings".
5592 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5593 (maintenance_test_settings_set_list): Rename to ...
5594 (maintenance_set_test_settings_list): ... this.
5595 (maintenance_test_settings_show_list): Rename to ...
5596 (maintenance_show_test_settings_list): ... this.
5597 (maintenance_test_settings_cmd): Delete.
5598 (maintenance_test_settings_set_cmd): ...
5599 (maintenance_set_test_settings_cmd): ... this.
5600 (maintenance_test_settings_show_cmd): ...
5601 (maintenance_show_test_settings_cmd): ... this.
5602 (maintenance_test_settings_show_value_cmd):
5603 (maintenance_show_test_settings_value_cmd): ... this.
5604 (_initialize_maint_test_settings): No longer install the "maint
5605 test-settings" prefix command. Rename "maint test-settings set"
5606 to "maint set test-settings", and "maint test-settings show" to
5607 "maint show test-settings". Adjust all subcommands.
5608
d1fcf2fd
PA
56092019-07-03 Pedro Alves <palves@redhat.com>
5610
5611 * maint-test-settings.c: Fix file's intro comment. Replace all
5612 references to "test-options" with references to "test-settings",
5613 in comments.
5614
970f9d09
PA
56152019-07-03 Pedro Alves <palves@redhat.com>
5616
5617 * maint-test-settings.c (maintenance_test_settings_xxx)
5618 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5619 New.
5620 (maintenance_test_settings_enums): Use them.
5621 (maintenance_test_settings_enum): Default to
5622 maintenance_test_settings_xxx.
5623 (_initialize_maint_test_settings): Initialize
5624 MAINTENANCE_TEST_SETTINGS_FILENAME.
5625
f3869b1a
SM
56262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5627
5628 * breakpoint.h (remove_breakpoints_inf): Change return type to
5629 void, move function documentation here.
5630 * breakpoint.c (remove_breakpoints_inf): Change return type to
5631 void, move function documentation to header.
5632
54d66006
PA
56332019-07-02 Pedro Alves <palves@redhat.com>
5634
5635 * NEWS (Completion improvements): Mention "info threads".
5636 * thread.c (struct info_threads_opts, info_threads_option_defs)
5637 (make_info_threads_options_def_group): New.
5638 (info_threads_command): Use gdb::option::process_options.
5639 (info_threads_command_completer): New.
5640 (_initialize_thread): Use gdb::option::build_help to build the
5641 help text for "info threads".
5642
854f6088
SM
56432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * defs.h (generic_load): Move from here...
5646 * symfile.h (generic_load): ... to here. Rename name parameter
5647 to args.
5648 * symfile.c (generic_load): Add comment.
5649
54ee4252
TT
56502019-07-01 Tom Tromey <tromey@adacore.com>
5651
5652 * dwarf2read.c
5653 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5654 declaration of without_params. Fix formatting.
5655
65392b3e
TT
56562019-07-01 Tom Tromey <tromey@adacore.com>
5657
5658 * ada-exp.y (find_primitive_type): Update.
5659 * ada-lang.h (ada_lookup_symbol): Update.
5660 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5661 parameter.
5662 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5663
7d7571f0
SDJ
56642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5665
5666 PR breakpoints/24541
5667 * gdbarch.c: Regenerate.
5668 * gdbarch.h: Regenerate.
5669 * gdbarch.sh: Add 'stap_adjust_register'.
5670 * i386-tdep.c: Include '<unordered_set>'.
5671 (i386_stap_adjust_register): New function.
5672 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5673 * stap-probe.c (stap_parse_register_operand): Call
5674 'gdbarch_stap_adjust_register'.
5675
5af5392a
SDJ
56762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5677
5678 PR python/24742
5679 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5680 * python/python.c (do_start_initialization): Use 'xmalloc'
5681 instead of 'PyMem_Malloc'.
5682
10d06d82
TT
56832019-06-28 Tom Tromey <tromey@adacore.com>
5684
5685 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5686 for Ada.
5687
1b7f24cd
TT
56882019-06-27 Tom Tromey <tromey@adacore.com>
5689
5690 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5691 objfile_key.
5692 (arm_find_mapping_symbol, arm_record_special_symbol)
5693 (_initialize_arm_tdep): Update.
5694 (arm_objfile_data_free): Remove.
5695
3d507ff2
TT
56962019-06-27 Tom Tromey <tromey@adacore.com>
5697
5698 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5699 to cp_print_static_field.
5700
762c164d
TT
57012019-06-26 Tom Tromey <tromey@adacore.com>
5702
5703 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5704 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5705 declare.
5706
aa2f9bcf
AH
57072019-06-26 Alan Hayward <alan.hayward@arm.com>
5708
5709 * features/aarch64-core.c (create_feature_aarch64_core):
5710 Regenerate.
5711 * features/aarch64-core.xml: Add cpsr flags.
5712
3426ae57
AH
57132019-06-26 Alan Hayward <alan.hayward@arm.com>
5714
5715 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5716 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5717
4838e44c
SM
57182019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5721 field.
5722 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5723 use.
5724 (arm_record_special_symbol): Don't insert new symbol in sorted
5725 position, push it at the end.
5726
54cc7474
SM
57272019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5730 (arm_mapping_symbol_s): Remove.
5731 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5732 (arm_mapping_symbol_vec): New typedef.
5733 (struct arm_per_objfile): Add constructor.
5734 <section_maps>: Change type to
5735 std::unique_ptr<arm_mapping_symbol_vec[]>.
5736 (arm_compare_mapping_symbols): Remove.
5737 (arm_find_mapping_symbol): Adjust to section_maps type change.
5738 (arm_objfile_data_free): Call delete on arm_per_objfile.
5739 (arm_record_special_symbol): Adjust to section_maps type change.
5740 Allocate arm_per_objfile with new.
5741
b65b566c
PW
57422019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5745 with the command prefix.
5746
c2fc64f5
TT
57472019-06-25 Tom Tromey <tom@tromey.com>
5748
5749 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5750 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5751
fb54fa76
TT
57522019-06-25 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5755 type.
5756 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5757 protected.
5758
f7952c57
TT
57592019-06-25 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.c
5762 (tui_source_window_base::set_is_exec_point_at): Add check against
5763 LOA_ADDRESS.
5764
17568d78
TT
57652019-06-25 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-source.c (tui_set_source_content): Don't check before
5768 xfree.
5769 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5770
53e7cdba
TT
57712019-06-25 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-winsource.h (tui_update_source_window_as_is)
5774 (tui_alloc_source_buffer, tui_line_is_displayed)
5775 (tui_addr_is_displayed): Change type of win_info.
5776 * tui/tui-winsource.c (tui_update_source_window_as_is)
5777 (tui_clear_source_content, tui_show_source_line)
5778 (tui_show_source_content, tui_source_window_base::refill)
5779 (tui_source_window_base::set_is_exec_point_at)
5780 (tui_source_window_base::set_is_exec_point_at)
5781 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5782 (tui_alloc_source_buffer, tui_line_is_displayed)
5783 (tui_addr_is_displayed): Change type of win_info. Update.
5784 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5785 (tui_source_window_base::do_make_visible_with_new_height):
5786 Update.
5787 * tui/tui-source.c (tui_set_source_content)
5788 (tui_set_source_content_nil)
5789 (tui_source_window::do_scroll_vertical): Update.
5790 * tui/tui-layout.c (show_layout): Update.
5791 * tui/tui-disasm.c (tui_set_disassem_content)
5792 (tui_disasm_window::do_scroll_vertical): Update.
5793 * tui/tui-data.h (tui_win_content): Remove.
5794 (struct tui_gen_win_info) <content, content_size>: Remove.
5795 (struct tui_source_element): Add initializers and destructor.
5796 (union tui_which_element, struct tui_win_element): Remove.
5797 (struct tui_source_window_base) <content>: New field.
5798 (struct tui_data_window): Remove destructor.
5799 (tui_alloc_content, tui_free_win_content)
5800 (tui_free_all_source_wins_content): Don't declare.
5801 * tui/tui-data.c (tui_initialize_static_data): Update.
5802 (init_content_element, tui_alloc_content): Remove.
5803 (~tui_gen_win_info): Update.
5804 (~tui_data_window, tui_free_all_source_wins_content)
5805 (tui_free_win_content, free_content, free_content_elements):
5806 Remove.
5807
7908abbf
TT
58082019-06-25 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-winsource.h (tui_clear_source_content)
5811 (tui_erase_source_content, tui_show_source_content): Change type
5812 of win_info.
5813 * tui/tui-winsource.c (tui_clear_source_content)
5814 (tui_erase_source_content, tui_show_source_content): Change type
5815 of win_info.
5816 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5817 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5818 win_info.
5819 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5820 win_info.
5821 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5822
02c28df0
TT
58232019-06-25 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-winsource.c (tui_clear_source_content)
5826 (tui_source_window_base::set_is_exec_point_at): Update.
5827 * tui/tui-source.c (tui_set_source_content_nil): Update.
5828 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5829 a bool.
5830 * tui/tui-data.c (init_content_element): Update.
5831
6658b1bf
TT
58322019-06-25 Tom Tromey <tom@tromey.com>
5833
5834 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5835 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5836 * tui/tui-layout.c (init_and_make_win): Update.
5837 * tui/tui.h (enum tui_win_type): Update.
5838 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5839 tui_win_is_auxillary.
5840 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5841 tui_win_is_auxillary.
5842
21e1c91e
TT
58432019-06-25 Tom Tromey <tom@tromey.com>
5844
5845 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5846 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5847 (tui_delete_data_content_windows, tui_display_all_data)
5848 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5849 Update.
5850 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5851 * tui/tui-regs.c (tui_last_regs_line_no)
5852 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5853 (tui_show_registers): Update.
5854 (tui_show_register_group): Return void. Update.
5855 (tui_display_registers_from, tui_display_reg_element_at_line)
5856 (tui_display_registers_from_line, tui_check_register_values):
5857 Update.
5858 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5859 member.
5860 (struct tui_data_window) <regs_content>: Now a std::vector.
5861 <regs_content_count>: Remove.
5862 (tui_add_content_elements, tui_free_data_content): Don't declare.
5863 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5864 (init_content_element): Remove DATA_WIN case. Add assert.
5865 (tui_add_content_elements): Remove.
5866 (tui_data_window): Update.
5867 (tui_free_data_content): Remove.
5868 (free_content_elements): Remove DATA_WIN case.
5869
115ac53b
TT
58702019-06-25 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-data.c (tui_data_item_window): Update.
5873 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5874 * tui/tui-windata.c (tui_display_all_data)
5875 (tui_display_data_from_line): Update.
5876 (tui_check_data_values): Remove.
5877 * tui/tui-regs.c (tui_show_register_group)
5878 (tui_display_reg_element_at_line): Update.
5879 * tui/tui-hooks.c (tui_register_changed)
5880 (tui_refresh_frame_and_register_information): Call
5881 tui_check_register_values.
5882 * tui/tui-data.h (struct tui_data_window) <data_content,
5883 data_content_count, data_type>: Remove.
5884 (enum tui_data_type): Remove.
5885
5886 * tui/tui-data.c (tui_data_window::clear_detail)
5887 (~tui_data_window): Update.
5888
eaf9738b
TT
58892019-06-25 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5892 declare.
5893 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5894 Rename from tui_first_data_item_displayed. Update.
5895 (tui_data_window::refresh_all)
5896 (tui_data_window::do_scroll_vertical): Update.
5897 * tui/tui-data.h (struct tui_data_window)
5898 <first_data_item_displayed>: Declare new method.
5899
31ca4723
TT
59002019-06-25 Tom Tromey <tom@tromey.com>
5901
5902 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5903 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5904 contents...
5905 (tui_initialize_static_data): ...here.
5906
41bcff7f
TT
59072019-06-25 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5910 (tui_display_registers_from, tui_check_register_values): Update.
5911 (tui_display_register): Remove win_info parameter; update.
5912 (tui_get_register): Change type of parameters.
5913 * tui/tui-data.h (struct tui_data_element): Remove.
5914 (union tui_which_element) <data>: Remove.
5915 <data_window>: Change type.
5916 (struct tui_data_item_window): New.
5917 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5918 case. Add assert.
5919 (~tui_data_item_window): New destructor.
5920 (free_content_elements): Remove DATA_ITEM_WIN case.
5921
d2802c33
TT
59222019-06-25 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5925 Remove.
5926
dd835f8b
TT
59272019-06-25 Tom Tromey <tom@tromey.com>
5928
5929 * tui/tui-data.h (struct tui_command_element): Remove.
5930 (union tui_which_element) <command>: Remove.
5931 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5932 assert.
5933 (free_content_elements): Remove CMD_WIN case.
5934
bd7db367
TT
59352019-06-25 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-layout.c (tui_set_layout): Update.
5938 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5939 * tui/tui-data.c (layout_def): Update.
5940
3add462f
TT
59412019-06-25 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5944 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5945 (tui_source_window_base::set_new_height): Update.
5946 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5947 Update.
5948 (tui_set_locator_fullname, tui_set_locator_info)
5949 (tui_show_frame_info): Update.
5950 * tui/tui-source.c (tui_set_source_content)
5951 (tui_source_is_displayed): Update.
5952 * tui/tui-layout.c (show_source_disasm_command, show_data)
5953 (show_source_or_disasm_and_command): Update.
5954 * tui/tui-disasm.c (tui_set_disassem_content)
5955 (tui_get_begin_asm_address): Update.
5956 * tui/tui-data.h (struct tui_locator_element): Remove.
5957 (union tui_which_element) <locator>: Remove.
5958 (struct tui_locator_window): New.
5959 (tui_locator_win_info_ptr): Change return type.
5960 * tui/tui-data.c (_locator): Change type.
5961 (tui_locator_win_info_ptr): Change return type.
5962 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5963 (tui_alloc_content): Add assert.
5964
489e9d8b
TT
59652019-06-25 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-winsource.c
5968 (tui_exec_info_window::maybe_allocate_content): New method.
5969 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5970 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5971 (make_source_or_disasm_window): Add cast.
5972 * tui/tui-data.h (union tui_which_element) <simple_string>:
5973 Remove.
5974 (struct tui_source_info): New.
5975 (struct tui_source_window_base) <execution_info>: Change type.
5976 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5977 case, and add assert.
5978 (tui_alloc_content): Add assert.
5979
c3fabb7d
TT
59802019-06-25 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5983 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5984 * tui/tui-data.c (tui_alloc_win_info): Remove.
5985
bbc228ee
TT
59862019-06-25 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5989 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5990 can_highlight.
5991
5fcee43a
TT
59922019-06-25 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5995 make_visible_with_new_height method.
5996 (tui_win_info::make_visible_with_new_height): New method.
5997 (tui_source_window_base::do_make_visible_with_new_height)
5998 (tui_data_window::do_make_visible_with_new_height)
5999 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6000 (make_visible_with_new_height): Remove.
6001 (tui_resize_all, tui_adjust_win_heights): Use
6002 make_visible_with_new_height method.
6003 * tui/tui-data.h (struct tui_win_info)
6004 <do_make_visible_with_new_height, make_visible_with_new_height>:
6005 New methods.
6006 (struct tui_source_window_base, struct tui_data_window)
6007 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6008 methods.
6009
d83f1fe6
TT
60102019-06-25 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6013 method.
6014 (update_tab_width): Call update_tab_width method.
6015 * tui/tui-data.h (struct tui_win_info)
6016 (struct tui_source_window_base) <update_tab_width>: New methods.
6017
17374de4
TT
60182019-06-25 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6021 parameter.
6022 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6023 parameter.
6024 (tui_gen_win_info::make_visible): Update.
6025 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6026 parameter.
6027 * tui/tui-data.h (enum tui_box): New enum.
6028 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6029
f936bca2
TT
60302019-06-25 Tom Tromey <tom@tromey.com>
6031
6032 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6033 init_and_make_win for EXEC_INFO_WIN.
6034 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6035 longer inline.
6036 (struct tui_win_info) <~tui_win_info>: Inline.
6037 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6038 Don't declare.
6039 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6040 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6041 Remove.
6042 (tui_initialize_static_data): Update.
6043 (~tui_gen_win_info): Handle more cleanup here.
6044 (~tui_source_window_base): Delete "execution_info".
6045 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6046
d6ba6a11
TT
60472019-06-25 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-layout.c (make_command_window): Don't set
6050 can_highlight.
6051 (show_source_disasm_command): Call the reset method.
6052 (show_data): Don't set can_highlight. Call the reset method.
6053 (tui_gen_win_info::reset): Rename from init_gen_win_info
6054 (init_and_make_win): Simplify. Return tui_gen_win_info.
6055 (show_source_or_disasm_and_command): Call the reset method.
6056 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6057 (struct tui_cmd_window): Set can_highlight.
6058
48a3bd16
TT
60592019-06-25 Tom Tromey <tom@tromey.com>
6060
6061 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6062 from make_visible.
6063 (tui_make_visible, tui_make_invisible): Rewrite.
6064 (tui_win_info::make_visible): Remove.
6065 (tui_source_window_base::make_visible): Update.
6066 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6067 method. Moved from...
6068 (struct tui_win_info) <make_visible>: ...here.
6069
c3bd716f
TT
60702019-06-25 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-winsource.c
6073 (tui_source_window_base::do_scroll_horizontal): Remove direction
6074 parameter.
6075 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6076 direction parameter.
6077 * tui/tui-win.c (tui_win_info::forward_scroll)
6078 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6079 (tui_win_info::right_scroll): Update.
6080 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6081 direction parameter.
6082 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6083 direction parameter.
6084 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6085 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6086 Remove direction parameter.
6087 (struct tui_source_window_base, struct tui_source_window)
6088 (struct tui_disasm_window, struct tui_data_window)
6089 (struct tui_cmd_window): Update.
6090
21c32dca
TT
60912019-06-25 Tom Tromey <tom@tromey.com>
6092
6093 * tui/tui-winsource.h (tui_set_exec_info_content)
6094 (tui_show_exec_info_content, tui_erase_exec_info_content)
6095 (tui_clear_exec_info_content, tui_update_exec_info): Change
6096 argument to tui_source_window_base.
6097 * tui/tui-winsource.c (tui_set_exec_info_content)
6098 (tui_show_exec_info_content, tui_erase_exec_info_content)
6099 (tui_clear_exec_info_content, tui_update_exec_info): Change
6100 argument to tui_source_window_base.
6101
73fbdc65
TT
61022019-06-25 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6105 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6106
33325343
TT
61072019-06-25 Tom Tromey <tom@tromey.com>
6108
6109 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6110 check.
6111
29d2c474
TT
61122019-06-25 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6115 type to void.
6116 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6117 type to void.
6118 * tui/tui-source.c (tui_set_source_content): Update.
6119 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6120
152f3f4b
TT
61212019-06-25 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-win.c (window_name_completer, tui_set_focus)
6124 (tui_all_windows_info): Use name method.
6125 * tui/tui-data.h (struct tui_gen_win_info)
6126 (struct tui_source_window, struct tui_disasm_window)
6127 (struct tui_data_window, struct tui_cmd_window) <name>: New
6128 method.
6129 (tui_win_name): Don't declare.
6130 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6131 (tui_win_name): Remove.
6132
be4da588
TT
61332019-06-25 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-winsource.h (tui_update_source_window)
6136 (tui_update_source_window_as_is): Change parameter type.
6137 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6138 to be a tui_source_window_base.
6139 (tui_update_source_window_as_is): Likewise.
6140 * tui/tui-win.c (make_visible_with_new_height): Update.
6141
5b81daba
TT
61422019-06-25 Tom Tromey <tom@tromey.com>
6143
6144 * tui/tui-winsource.c (tui_erase_source_content)
6145 (tui_show_source_content, tui_show_exec_info_content)
6146 (tui_erase_exec_info_content): Use refresh_window method.
6147 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6148 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6149 from tui_refresh_win.
6150 (tui_data_window::refresh_window): New method.
6151 (tui_win_info::refresh, tui_source_window_base::refresh)
6152 (tui_refresh_all): Use refresh_window method.
6153 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6154 method.
6155 * tui/tui-regs.c (tui_display_register): Call refresh_window
6156 method.
6157 * tui/tui-layout.c (show_source_disasm_command)
6158 (show_source_or_disasm_and_command): Call refresh_window method.
6159 * tui/tui-data.h (struct tui_gen_win_info)
6160 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6161 New method.
6162
cb2ce893
TT
61632019-06-25 Tom Tromey <tom@tromey.com>
6164
6165 * tui/tui.c (tui_rl_other_window, tui_enable)
6166 (tui_is_window_visible, tui_get_command_dimension): Update.
6167 * tui/tui-winsource.c (tui_update_source_window_as_is)
6168 (tui_clear_source_content, tui_erase_source_content)
6169 (tui_show_source_line, tui_source_window_base::refill)
6170 (tui_source_window_base::do_scroll_horizontal)
6171 (tui_source_window_base::set_is_exec_point_at)
6172 (tui_update_breakpoint_info, tui_set_exec_info_content)
6173 (tui_alloc_source_buffer, tui_line_is_displayed)
6174 (tui_addr_is_displayed): Update.
6175 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6176 (tui_check_and_display_highlight_if_needed)
6177 (tui_win_info::make_visible, tui_win_info::refresh)
6178 (tui_refresh_all): Update.
6179 * tui/tui-windata.c (tui_first_data_item_displayed)
6180 (tui_delete_data_content_windows, tui_erase_data_content)
6181 (tui_display_all_data, tui_data_window::refresh_all)
6182 (tui_check_data_values): Update.
6183 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6184 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6185 (tui_win_info::backward_scroll, tui_refresh_all_win)
6186 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6187 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6188 (tui_source_window_base::set_new_height)
6189 (tui_data_window::set_new_height)
6190 (make_invisible_and_set_new_height)
6191 (make_visible_with_new_height, new_height_ok)
6192 (parse_scrolling_args): Update.
6193 * tui/tui-stack.c (tui_show_frame_info): Update.
6194 * tui/tui-source.c (tui_set_source_content)
6195 (tui_set_source_content_nil, tui_source_is_displayed)
6196 (tui_source_window::do_scroll_vertical): Update.
6197 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6198 (tui_display_registers_from, tui_display_reg_element_at_line)
6199 (tui_check_register_values, tui_reg_command): Update.
6200 * tui/tui-layout.c (tui_default_win_height)
6201 (show_source_disasm_command, show_data, init_and_make_win)
6202 (show_source_or_disasm_and_command): Update.
6203 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6204 (tui_redisplay_readline, tui_mld_flush)
6205 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6206 (tui_getc): Update.
6207 * tui/tui-disasm.c (tui_set_disassem_content)
6208 (tui_disasm_window::do_scroll_vertical): Update.
6209 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6210 Now virtual.
6211 (struct tui_win_info): Derive from tui_gen_win_info.
6212 <~tui_win_info>: Mark as override.
6213 <generic>: Remove member.
6214 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6215 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6216 (~tui_data_window, ~tui_win_info)
6217 (tui_free_all_source_wins_content): Update.
6218 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6219
ab313b35
TT
62202019-06-25 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-layout.c (init_and_make_win): Use new.
6223 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6224 destructor, initializers.
6225 (tui_alloc_generic_win_info): Don't declare.
6226 * tui/tui-data.c (_locator): Add argument to constructor.
6227 (source_win, disasm_win): New globals.
6228 (exec_info): Remove.
6229 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6230 Update.
6231 (tui_alloc_generic_win_info): Remove.
6232 (init_content_element): Use new.
6233 (tui_win_info::tui_win_info): Update.
6234 (free_content_elements) <case DATA_WIN>: Use delete.
6235
dc2c33e4
TT
62362019-06-25 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6239 * tui/tui-windata.c (tui_first_data_item_displayed)
6240 (tui_delete_data_content_windows): Update.
6241 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6242 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6243 (tui_display_registers_from, tui_check_register_values): Update.
6244 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6245 pointer.
6246 * tui/tui-data.c (init_content_element): Update. Allocate the new
6247 window.
6248 (tui_free_data_content): Update.
6249 (free_content_elements) <case DATA_WIN>: Free the window.
6250
214a5cbe
TT
62512019-06-25 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6254 Update.
6255 * tui/tui-layout.c (make_command_window)
6256 (show_source_disasm_command, show_data, init_and_make_win)
6257 (show_source_or_disasm_and_command): Update.
6258 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6259 method.
6260 <can_highight, is_highlighted>: Now bool.
6261 (tui_set_win_highlight): Don't declare.
6262 * tui/tui-data.c (tui_set_win_highlight): Remove.
6263
8e2daf15
TT
62642019-06-25 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-wingeneral.c (make_visible): Remove check of window
6267 type.
6268
8903bd8a
TT
62692019-06-25 Tom Tromey <tom@tromey.com>
6270
6271 * tui/tui-win.c (tui_win_info::max_height)
6272 (tui_cmd_window::max_height): New methods.
6273 (new_height_ok): Call max_height.
6274 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6275 <max_height>: New method.
6276
3f02ce1e
TT
62772019-06-25 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-win.c (tui_source_window_base::set_new_height)
6280 (tui_data_window::set_new_height): New methods.
6281 (make_invisible_and_set_new_height): Call set_new_height method.
6282 * tui/tui-data.h (struct tui_win_info)
6283 (struct tui_source_window_base, struct tui_data_window)
6284 <set_new_height>: New method.
6285
1825f487
TT
62862019-06-25 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6289 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6290 tui_refresh_data_win.
6291 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6292 method.
6293 (tui_refresh_all_win): Call the refresh_all method.
6294 (tui_set_focus): Likewise.
6295 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6296 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6297 Likewise.
6298
ad54d15b
TT
62992019-06-25 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui-winsource.h (tui_refill_source_window)
6302 (tui_set_is_exec_point_at): Don't declare.
6303 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6304 (tui_source_window_base::refill): Rename from
6305 tui_refill_source_window.
6306 (tui_source_window_base::do_scroll_horizontal): Update.
6307 (tui_source_window_base::set_is_exec_point_at): Rename from
6308 tui_set_is_exec_point_at.
6309 (tui_update_all_breakpoint_info): Update.
6310 * tui/tui-stack.c (tui_show_frame_info): Update.
6311 * tui/tui-layout.c (show_data): Add cast.
6312 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6313 * tui/tui-data.h (struct tui_source_window_base) <refill,
6314 set_is_exec_point_at>: New methods.
6315 (tui_source_windows, tui_add_to_source_windows): Update types.
6316 (tui_add_to_source_windows): Remove redundant declaration.
6317 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6318 (tui_source_windows): Change return type.
6319 (tui_clear_source_windows_detail): Update.
6320 (tui_add_to_source_windows): Change type of parameter.
6321 (tui_free_all_source_wins_content): Update.
6322
2042b506
TT
63232019-06-25 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui-wingeneral.c (tui_win_info::refresh)
6326 (tui_source_window_base::refresh): New methods.
6327 (tui_refresh_all): Call the refresh method.
6328 * tui/tui-data.h (struct tui_win_info)
6329 (struct tui_source_window_base) <refresh>: New method.
6330
56122977
TT
63312019-06-25 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui.h (tui_is_window_visible): Return bool.
6334 * tui/tui.c (tui_is_window_visible): Return bool.
6335 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6336 (tui_make_visible, tui_make_invisible)
6337 (tui_win_info::make_visible)
6338 (tui_source_window_base::make_visible, make_all_visible)
6339 (tui_make_all_visible, tui_make_all_invisible): Update.
6340 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6341 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6342 bool.
6343 (struct tui_win_info, struct tui_source_window_base)
6344 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6345 * tui/tui-data.c (tui_init_generic_part): Update.
6346
cda37efb
TT
63472019-06-25 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6350 (tui_source_window_base::make_visible): New methods.
6351 (make_all_visible): Make method call.
6352 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6353 (struct tui_source_window_base, struct tui_cmd_window): Override
6354 make_visible.
6355 (tui_win_is_source_type): Don't declare.
6356 * tui/tui-data.c (tui_win_is_source_type): Remove.
6357
6a0ee02c
TT
63582019-06-25 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6361 NULL check.
6362
63901aec
TT
63632019-06-25 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6366 Inline constructor. Add initializers for members.
6367 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6368 constructors; now inline in class.
6369
ceb13a13
TT
63702019-06-25 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-regs.c (tui_show_registers): Update.
6373 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6374 bool.
6375 * tui/tui-data.c (tui_data_window::clear_detail)
6376 (tui_data_window): Update.
6377
238eb706
TT
63782019-06-25 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-windata.c (tui_display_all_data)
6381 (tui_display_data_from_line, tui_display_data_from)
6382 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6383 Update.
6384 * tui/tui-regs.c (tui_last_regs_line_no)
6385 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6386 (tui_show_registers, tui_show_register_group)
6387 (tui_display_registers_from, tui_display_reg_element_at_line)
6388 (tui_display_registers_from_line, tui_check_register_values)
6389 (tui_reg_next, tui_reg_prev): Update.
6390 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6391 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6392 tui_data_window.
6393 (struct tui_win_info) <detail>: Remove. Add new fields from
6394 tui_data_info.
6395 (TUI_DATA_WIN): Add cast.
6396 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6397 (~tui_data_window): Simplify.
6398
81491aa0
TT
63992019-06-25 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-layout.c (show_source_disasm_command)
6402 (show_source_or_disasm_and_command): Update.
6403 * tui/tui-io.c (update_cmdwin_start_line)
6404 (tui_redisplay_readline): Update.
6405 * tui/tui-data.h (struct tui_command_info): Remove.
6406 (struct tui_win_info) <detail>: Remove command_info member.
6407 (struct tui_data_window) <start_line>: New member, from
6408 tui_command_info.
6409 (TUI_CMD_WIN): Add casts.
6410
e6e41501
TT
64112019-06-25 Tom Tromey <tom@tromey.com>
6412
6413 * tui/tui-winsource.c (tui_update_source_window)
6414 (tui_refill_source_window)
6415 (tui_source_window_base::do_scroll_horizontal)
6416 (tui_update_breakpoint_info, tui_set_exec_info_content)
6417 (tui_show_exec_info_content, tui_erase_exec_info_content)
6418 (tui_clear_exec_info_content): Update.
6419 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6420 Update.
6421 * tui/tui-win.c (make_invisible_and_set_new_height)
6422 (make_visible_with_new_height): Update.
6423 * tui/tui-source.c (tui_set_source_content)
6424 (tui_show_symtab_source): Update.
6425 * tui/tui-layout.c (extract_display_start_addr)
6426 (show_source_disasm_command, show_data)
6427 (make_source_or_disasm_window)
6428 (show_source_or_disasm_and_command): Update.
6429 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6430 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6431 "gdbarch".
6432 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6433 to tui_source_window_base.
6434 (struct tui_win_info) <detail>: Remove source_info member.
6435 (struct tui_source_window_base) <has_locator>: Inline.
6436 Move contents from tui_source_info; rename has_locator member to
6437 m_has_locator.
6438 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6439 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6440 header file.
6441 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6442 Simplify.
6443 (tui_free_all_source_wins_content): Cast to
6444 tui_source_window_base.
6445
44f0e208
TT
64462019-06-25 Tom Tromey <tom@tromey.com>
6447
6448 * tui/tui-win.c (make_invisible_and_set_new_height)
6449 (make_visible_with_new_height): Call has_locator method.
6450 * tui/tui-layout.c (show_source_disasm_command, show_data)
6451 (show_source_or_disasm_and_command): Update for bool change.
6452 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6453 (tui_win_info) <has_locator>: New method.
6454 (struct tui_source_window_base) <has_locator>: New method.
6455 (tui_win_has_locator): Don't declare.
6456 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6457 from tui_win_has_locator.
6458 (tui_source_window_base): Use false, not FALSE.
6459
7778b912
TT
64602019-06-25 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6463 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6464 clear_detail method directly.
6465 (tui_clear_win_detail): Remove.
6466
f83d391c
TT
64672019-06-25 Tom Tromey <tom@tromey.com>
6468
6469 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6470 "this", not TUI_DISASM_WIN.
6471
13446e05
TT
64722019-06-25 Tom Tromey <tom@tromey.com>
6473
6474 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6475 declare.
6476 * tui/tui-winsource.c
6477 (tui_source_window_base::do_scroll_horizontal): Rename from
6478 tui_horizontal_source_scroll.
6479 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6480 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6481 from tui_vertical_data_scroll.
6482 * tui/tui-win.h (tui_scroll): Don't declare.
6483 * tui/tui-win.c (tui_win_info::forward_scroll)
6484 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6485 (tui_win_info::right_scroll): Rename and update.
6486 (tui_scroll_forward_command, tui_scroll_backward_command)
6487 (tui_scroll_left_command, tui_scroll_right_command): Update.
6488 (tui_scroll): Remove.
6489 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6490 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6491 from tui_vertical_source_scroll.
6492 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6493 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6494 from tui_vertical_disassem_scroll.
6495 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6496 do_scroll_horizontal>: New methods.
6497 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6498 Likewise.
6499 (struct tui_source_window_base): Add do_scroll_horizontal.
6500 (struct tui_source_window, struct tui_disasm_window): Add
6501 do_scroll_vertical.
6502 (struct tui_data_window, struct tui_cmd_window): Add
6503 do_scroll_horizontal and do_scroll_vertical.
6504 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6505
5cf82909
TT
65062019-06-25 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-data.h (struct tui_source_window_base): New struct.
6509 (struct tui_source_window): Derive from tui_source_window_base.
6510 (struct tui_disasm_window): New struct.
6511 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6512 from tui_source_window::clear_detail.
6513 (tui_source_window_base): Rename from tui_source_window.
6514 (~tui_source_window_base): Rename from ~tui_source_window.
6515 (tui_alloc_win_info): Create a tui_disasm_window.
6516
ee1d42d6
TT
65172019-06-25 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-data.h (struct tui_source_window)
6520 (struct tui_data_window): Declare destructors.
6521 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6522 destructors.
6523 (tui_win_info): Simplify.
6524
b4eb2452
TT
65252019-06-25 Tom Tromey <tom@tromey.com>
6526
6527 * tui/tui-winsource.c (tui_display_main)
6528 (tui_update_source_windows_with_addr)
6529 (tui_update_all_breakpoint_info): Update.
6530 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6531 (new_height_ok, parse_scrolling_args): Update.
6532 * tui/tui-stack.c (tui_show_frame_info): Update.
6533 * tui/tui-data.h (struct tui_list): Remove.
6534 (tui_source_windows): Return a reference to a std::vector.
6535 * tui/tui-data.c (source_windows): Now a std::vector.
6536 (tui_source_windows): Change return type.
6537 (tui_clear_source_windows): Rewrite.
6538 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6539 (tui_free_all_source_wins_content): Rewrite.
6540
8761a91b
TT
65412019-06-25 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6544 (struct tui_data_window, struct tui_cmd_window): Declare
6545 clear_detail method.
6546 * tui/tui-data.c (tui_source_window::clear_detail)
6547 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6548 methods.
6549 (tui_clear_win_detail): Simplify.
6550
0ed69eda
TT
65512019-06-25 Tom Tromey <tom@tromey.com>
6552
6553 * tui/tui-layout.c (make_source_window, make_disasm_window)
6554 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6555 Return the new window.
6556 (show_source_disasm_command, show_data)
6557 (show_source_or_disasm_and_command): Update.
6558
82432e10
TT
65592019-06-25 Tom Tromey <tom@tromey.com>
6560
6561 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6562 parameter. Return the new window.
6563 (show_source_disasm_command): Update and remove NULL check.
6564 (show_source_or_disasm_and_command): Update.
6565
ec328aa5
TT
65662019-06-25 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6569
33b906ab
TT
65702019-06-25 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-data.h (struct tui_win_info): Make constructor
6573 protected. Make destructor virtual. Add initializers.
6574 (tui_source_window, tui_data_window, tui_cmd_window): New
6575 classes.
6576 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6577 constructor. Add "type" parameter.
6578 (tui_source_window, tui_data_window, tui_cmd_window): New
6579 constructors.
6580 (tui_alloc_win_info): Instantiate the appropriate subclass.
6581
e7e11af4
TT
65822019-06-25 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-win.c (tui_resize_all): Use delete.
6585 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6586 destructor.
6587 (tui_free_window): Don't declare.
6588 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6589 Update.
6590
6792b55e
TT
65912019-06-25 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-data.h (struct tui_win_info): Add constructor.
6594 * tui/tui-data.c (tui_alloc_win_info): Use new.
6595 (tui_free_window): Use delete.
6596
f95675e1
TT
65972019-06-22 Tom Tromey <tom@tromey.com>
6598
6599 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6600 declare.
6601 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6602
5bff081c
TT
66032019-06-22 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6606 declare.
6607 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6608
47e3f474
TV
66092019-06-22 Tom de Vries <tdevries@suse.de>
6610
6611 * dwarf2read.c (create_addrmap_from_aranges)
6612 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6613 instead of '%zu'.
6614
fd5866f6
SM
66152019-06-21 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * dwarf2read.h (dwarf2_section_info_def): Remove.
6618 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6619 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6620 std::vector<dwarf2_section_info>.
6621 (struct dwo_file) <~dwo_file>: Remove.
6622 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6623 types field.
6624 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6625 (dwarf2_read_debug_names): Likewise.
6626 (create_debug_types_hash_table): Change parameter type to
6627 array_view, adjust code accordingly.
6628 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6629 (partial_die_info::fixup): Likewise.
6630 (determine_prefix): Likewise.
6631 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6632
fb1eb2f9
SM
66332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6636 gdb_bfd_ref_ptr.
6637 <~dwo_file>: Remove call to gdb_bfd_unref.
6638 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6639 gdb_bfd_ref_ptr::get.
6640
51ac9db5
SM
66412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6644 type to htab_up.
6645 * dwarf2read.c (struct dwo_file): Initialize fields.
6646 <~dwo_file>: New.
6647 (free_dwo_file): Remove, move content to ~dwo_file.
6648 (struct dwo_file_deleter): Remove.
6649 (dwo_file_up>: Remove custom deleter.
6650 (free_dwo_files): Remove.
6651 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6652 dwo_files.
6653 (process_skeletonless_type_units): Call unique_ptr::get.
6654 (allocate_dwo_file_hash_table): Add deleter to created hash
6655 table. Change return type to htab_up.
6656 (lookup_dwo_file_slot): Don't memset dwo_file, call
6657 unique_ptr::get.
6658 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6659 (create_dwo_unit_in_dwp_v2): Likewise.
6660 (open_and_init_dwo_file): Likewise.
6661 (free_dwo_file_from_slot): Remove.
6662
dc4ccb6f
SM
66632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6664
6665 * dwarf2read.h (struct dwarf2_section_info) <readin,
6666 is_virtual>: Change type to bool.
6667 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6668 true instead of 1.
6669
e6a1c5cb
TT
66702019-06-19 Tom Tromey <tom@tromey.com>
6671
6672 * tui/tui-data.h (tui_init_content_element): Don't declare.
6673
6f6ffbeb
TT
66742019-06-19 Tom Tromey <tom@tromey.com>
6675
6676 * tui/tui-data.h (tui_init_win_info): Don't declare.
6677
f23f598e
TV
66782019-06-19 Tom de Vries <tdevries@suse.de>
6679
6680 * dwarf2read.h (abstract_to_concrete): Change type to
6681 std::unordered_map<sect_offset, std::vector<sect_offset>,
6682 gdb::hash_enum<sect_offset>>.
6683
680e1bee
TT
66842019-06-19 Tom Tromey <tromey@adacore.com>
6685
6686 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6687 EVAL_AVOID_SIDE_EFFECTS specially.
6688
dcf37923
TT
66892019-06-19 Tom Tromey <tromey@adacore.com>
6690
6691 * source-cache.c (highlighter): New global.
6692 (source_cache::get_source_lines): Create a highlighter on demand.
6693
494986d5
AB
66942019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * defs.h (deprecated_interactive_hook): Delete declaration.
6697 * interps.c (clear_interpreter_hooks): Remove use of
6698 deprecated_interactive_hook.
6699 * top.c (deprecated_interactive_hook): Delete definition.
6700 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6701
3360b6e7
TV
67022019-06-18 Tom de Vries <tdevries@suse.de>
6703
6704 PR gdb/24515
6705 * dwarf2read.h (abstract_to_concrete): Change type from
6706 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6707 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6708 * dwarf2read.c (read_variable): Update.
6709 (dwarf2_fetch_die_loc_sect_off): Update.
6710
310b3441
TV
67112019-06-17 Tom de Vries <tdevries@suse.de>
6712
6713 PR gdb/24617
6714 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6715 accessing parent[parent_len - 1].
6716
ba9777be
PP
67172019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6718
6719 PR gdb/24364
6720 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6721 call dtrace_process_dof with NULL dof.
6722
2b9f6e89
TV
67232019-06-16 Tom de Vries <tdevries@suse.de>
6724
6725 PR gdb/24445
6726 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6727
431b3ead
TT
67282019-06-16 Tom Tromey <tom@tromey.com>
6729
6730 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6731 (make_all_visible): Use address of member.
6732
d04b44a1
TT
67332019-06-16 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6736 (tui_free_window, free_content, free_content_elements): Remove
6737 unnecessary cast.
6738 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6739 cast.
6740 * tui/tui-regs.c (tui_show_register_group)
6741 (tui_display_registers_from, tui_display_reg_element_at_line):
6742 Remove unnecessary cast.
6743
bf5142e7
AB
67442019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * linux-nat.c (normal_mask): Delete.
6747 (_initialize_linux_nat): Don't initialise normal_mask.
6748
c4973306
SM
67492019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6750
6751 PR gdb/24445
6752 * dwarf-index-write.h (write_psymtabs_to_index): Add
6753 dwz_basename parameter.
6754 * dwarf-index-write.c (write_gdbindex): Move file writing to
6755 write_gdbindex_1. Change return type void.
6756 (assert_file_size): Move up, remove filename parameter.
6757 (write_gdbindex_1): New function.
6758 (write_debug_names): Change return type to void, call
6759 assert_file_size.
6760 (struct index_wip_file): New struct.
6761 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6762 file logic to index_wip_file. Write index for dwz file if
6763 needed.
6764 (save_gdb_index_command): Pass basename of dwz file, if present.
6765 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6766 build-id of dwz file, if present.
6767 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6768 (dwarf2_get_dwz_file): Likewise.
6769 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6770 (dwarf2_get_dwz_file): Likewise.
6771
395f9c91
TT
67722019-06-16 Tom Tromey <tom@tromey.com>
6773
6774 * coffread.c (process_coff_symbol): Use xstrdup.
6775 * value.c (create_internalvar): Use xstrdup.
6776
cafb3438
TT
67772019-06-16 Tom Tromey <tom@tromey.com>
6778
6779 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6780 * breakpoint.c (stopin_command, stopat_command)
6781 (until_break_command, decode_location_default): Remove unnecessary
6782 cast.
6783 * utils.c (subset_compare): Remove unnecessary cast.
6784 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6785 cast.
6786 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6787 cast.
6788 * infcmd.c (path_command): Remove unnecessary cast.
6789 * coffread.c (decode_type): Remove unnecessary cast.
6790 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6791 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6792 * tui/tui-stack.c (tui_show_locator_content)
6793 (tui_show_frame_info): Remove unnecessary cast.
6794 * tui/tui-win.c (tui_scroll_forward_command)
6795 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6796 (parse_scrolling_args): Remove unnecessary cast.
6797 * tui/tui-data.c (init_win_info, tui_del_window)
6798 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6799 (free_content_elements): Remove unnecessary cast.
6800 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6801 unnecessary cast.
6802 * tui/tui-source.c (tui_set_source_content)
6803 (tui_vertical_source_scroll): Remove unnecessary cast.
6804 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6805 cast.
6806 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6807 * tui/tui-regs.c (tui_display_registers_from)
6808 (tui_display_register): Remove unnecessary cast.
6809 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6810 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6811 (make_visible): Remove unnecessary cast.
6812 * tui/tui-winsource.c (tui_erase_source_content)
6813 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6814 unnecessary cast.
6815 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6816 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6817 * stabsread.c (read_type, read_array_type, read_range_type):
6818 Remove unnecessary cast.
6819 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6820 (parse_symbol, parse_type, upgrade_type, parse_external)
6821 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6822 unnecessary cast.
6823 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6824
730ead81
TT
68252019-06-16 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-data.c (tui_alloc_generic_win_info)
6828 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6829 checks.
6830
584a927c
AB
68312019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6832 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * f-typeprint.c (f_print_type): Don't return early for not
6835 associated or not allocated types.
6836 (f_type_print_varspec_suffix): Add print_rank parameter and print
6837 ranks of array types in case they dangling.
6838 (f_type_print_base): Add print_rank parameter.
6839
30056ea0
AB
68402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * NEWS: Mention new MI commands.
6843 * break-catch-throw.c (enum exception_event_kind): Move to
6844 breakpoint.h.
6845 (print_mention_exception_catchpoint): Output text as a single
6846 message.
6847 (catch_exception_command_1): Rename to...
6848 (catch_exception_event): ...this, make non-static, update header
6849 command, and change some parameter types.
6850 (catch_catch_command): Update for changes to
6851 catch_exception_command_1.
6852 (catch_throw_command): Likewise.
6853 (catch_rethrow_command): Likewise.
6854 * breakpoint.c (enum exception_event_kind): Delete.
6855 * breakpoint.h (enum exception_event_kind): Moved here from
6856 break-catch-throw.c.
6857 (catch_exception_event): Declare.
6858 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6859 (mi_cmd_catch_throw): New function.
6860 (mi_cmd_catch_rethrow): New function.
6861 (mi_cmd_catch_catch): New function.
6862 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6863 'catch-catch' entries.
6864 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6865 (mi_cmd_catch_rethrow): Declare.
6866 (mi_cmd_catch_catch): Declare.
6867
ec8e2b6d
AB
68682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * annotate.c (annotate_source_line): Change return type to void,
6871 update implementation to match.
6872 * annotate.h (annotate_source_line): Change return type to void,
6873 update header comment.
6874 * stack.c (print_frame_info): Don't change what frame information
6875 is printed based on whether annotations are on or not.
6876
0d3abd8c
AB
68772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6880 (annotate_source): Make static.
6881 (annotate_source_line): Moved from source.c and renamed from
6882 identify_source_line. Update the return type.
6883 * annotate.h (annotate_source): Delete declaration.
6884 (annotate_source_line): Declaration moved from source.h, and
6885 renamed from identify_source_line. Return type updated.
6886 * source.c (identify_source_line): Moved to annotate.c and renamed
6887 to annotate_source_line.
6888 (info_line_command): Remove check of annotation_level.
6889 * source.h (identify_source_line): Move declaration to annotate.h
6890 and rename to annotate_source_line.
6891 * stack.c: Add 'annotate.h' include.
6892 (print_frame_info): Remove check of annotation_level before
6893 calling annotate_source_line.
6894
00df30ae
AB
68952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * source-cache.c (source_cache::get_plain_source_lines): Use
6898 open_source_file_with_line_charpos instead of just
6899 open_source_file, remove call to find_source_lines.
6900 (source_cache::get_source_lines): Likewise.
6901 * source.c (find_source_lines): Make static.
6902 (get_filename_and_charpos): Renamed into...
6903 (open_source_file_with_line_charpos): ..this along with changes to
6904 return a scoped_fd, and some other minor clean ups.
6905 (identify_source_line): Use open_source_file_with_line_charpos.
6906 (search_command_helper): Use open_source_file_with_line_charpos
6907 instead of just open_source_file, remove call to
6908 find_source_lines.
6909 * source.h (open_source_file_with_line_charpos): Declare new
6910 function.
6911 (find_source_lines): Delete declaration.
6912
afda45a2
AB
69132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * source.c (get_filename_and_charpos): Remove fullname
6916 parameter.
6917 (identify_source_line): Update call to get_filename_and_charpos.
6918
0735b091
TT
69192019-06-14 Tom Tromey <tromey@adacore.com>
6920
6921 PR gdb/24502:
6922 * ui-style.h (skip_ansi_escape): Update comment.
6923 * ui-file.h (class no_terminal_escape_file): New class.
6924 * ui-file.c (no_terminal_escape_file::write)
6925 (no_terminal_escape_file::puts): New methods.
6926 * cli/cli-logging.c (handle_redirections): Use
6927 no_terminal_escape_file.
6928
52ce35e2
TT
69292019-06-14 Tom Tromey <tromey@adacore.com>
6930
6931 * NEWS: Move convenience variable news above Python news.
6932
73cc7272
TT
69332019-06-14 Tom Tromey <tom@tromey.com>
6934
6935 * gnulib: Move directory to top-level.
6936 * configure.ac: Don't configure gnulib.
6937 * configure: Rebuild.
6938 * common/common-defs.h: Use new path to gnulib.
6939 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6940 (GNULIB_H): Remove.
6941 (INCGNU): Look in new gnulib location.
6942 (HFILES_NO_SRCDIR): Remove gnulib files.
6943 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6944 (generated_files): Remove GNULIB_H.
6945 ($(LIBGNU), all-lib): Remove targets.
6946 (distclean): Don't mention GNULIB_BUILDDIR.
6947 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6948
f5686554
TT
69492019-06-14 Tom Tromey <tromey@adacore.com>
6950
6951 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6952 Warn if symbol file does not provide any symbols.
6953
a0c1ffed
TT
69542019-06-14 Tom Tromey <tromey@adacore.com>
6955
6956 * source.c (find_and_open_source): Respect basenames_may_differ.
6957
7c39e397
AB
69582019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * annotate.c (annotate_breakpoints_invalid): Make use of
6961 scoped_restore_terminal_state.
6962 (annotate_frames_invalid): Likewise.
6963
f411722c
TT
69642019-06-14 Tom Tromey <tromey@adacore.com>
6965
6966 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6967 allow assignment to an internalvar.
6968
4268ec18
TT
69692019-06-14 Tom Tromey <tromey@adacore.com>
6970
6971 * ada-lex.l: Allow "_" in attribute names.
6972
abdb711e
TT
69732019-06-14 Tom Tromey <tromey@adacore.com>
6974
6975 PR gdb/24653:
6976 * regcache.c (registers_changed): Don't call alloca.
6977 * top.c (execute_command): Don't call alloca.
6978
4c048731
PA
69792019-06-13 Pedro Alves <palves@redhat.com>
6980
6981 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6982 'expression'. When parsing an expression, error out if there's
6983 junk after "unlimited".
6984 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6985 (do_set_command): Adjust calls to is_unlimited_literal.
6986
66eb1ed3
PA
69872019-06-13 Pedro Alves <palves@redhat.com>
6988
6989 * compile/compile.c (make_compile_options_def_group): Add braces
6990 around array_view initializer.
6991 * thread.c (make_thread_apply_all_options_def_group)
6992 (make_thread_apply_all_options_def_group): Likewise.
6993
3345721a
PA
69942019-06-13 Pedro Alves <palves@redhat.com>
6995
6996 * NEWS (New commands): Mention "maint test-options
6997 require-delimiter", "maint test-options unknown-is-error", "maint
6998 test-options unknown-is-operand" and "maint show
6999 test-options-completion-result".
7000 (New command options, command completion): New section.
7001 (Completion improvements): New section.
7002 Mention that you can abbreviate "unlimited".
7003
6206060d
PA
70042019-06-13 Pedro Alves <palves@redhat.com>
7005
7006 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7007 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7008 * unittests/cli-utils-selftests.c (test_parse_flags)
7009 (test_parse_flags_qcs): Delete.
7010 (test_cli_utils): Don't call deleted functions.
7011
6665660a
PA
70122019-06-13 Pedro Alves <palves@redhat.com>
7013
7014 * thread.c: Include "cli/cli-option.h".
7015 (tp_array_compar_ascending): Global.
7016 (tp_array_compar): Delete function.
7017 (tp_array_compar_ascending, tp_array_compar_descending): New
7018 functions.
7019 (ascending_option_def, qcs_flag_option_def)
7020 (thr_qcs_flags_option_defs)
7021 (make_thread_apply_all_options_def_group)
7022 (make_thread_apply_options_def_group): New.
7023 (thread_apply_all_command): Use gdb::option::process_options.
7024 (thread_apply_command_completer)
7025 (thread_apply_all_command_completer): New.
7026 (thread_apply_command): Use gdb::option::process_options.
7027 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7028 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7029 to generate help text of "thread apply". Adjust "taas"'s help.
7030 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7031 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7032
f7e13587
PA
70332019-06-13 Pedro Alves <palves@redhat.com>
7034
7035 * thread.c (thread_apply_command): Check for invalid TID with
7036 isdigit instead of !isalpha.
7037
5d707134
PA
70382019-06-13 Pedro Alves <palves@redhat.com>
7039
7040 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7041 (validate_flags_qcs): New.
7042 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7043 (validate_flags_qcs): Declare.
7044 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7045 (make_frame_apply_options_def_group): New.
7046 (frame_apply_command_count): Process options with
7047 gdb::option::process_options.
7048 (frame_apply_completer): New.
7049 (frame_apply_level_completer, frame_apply_all_completer)
7050 (frame_apply_completer): New.
7051 (_initialize_stack): Update help of "frame apply", "frame apply
7052 level", "frame apply all" and "faas" to mention supported options
7053 and install command completers.
7054 * stack.h (frame_apply_all_completer): Declare.
7055 * thread.c: Include "stack.h".
7056 (tfaas_command): Add "--".
7057 (_initialize_thread): Update help "tfaas" to mention supported
7058 options and install command completer.
7059
272d4594
PA
70602019-06-13 Pedro Alves <palves@redhat.com>
7061
7062 * completer.c (complete_nested_command_line): New.
7063 (gdb_completion_word_break_characters_throw): Add assertion.
7064 * completer.h (complete_nested_command_line): Declare.
7065
90a1ef87
PA
70662019-06-13 Pedro Alves <palves@redhat.com>
7067
7068 * stack.c (parse_backtrace_qualifiers): New.
7069 (backtrace_command): Use it.
7070 (backtrace_command_completer): Complete on qualifiers.
7071
d4c16835
PA
70722019-06-13 Pedro Alves <palves@redhat.com>
7073
7074 * frame.c: Include "cli/cli-option.h.
7075 (user_set_backtrace_options): New.
7076 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7077 Delete.
7078 (get_prev_frame): Adjust.
7079 (boolean_option_def, uinteger_option_def)
7080 (set_backtrace_option_defs): New.
7081 (_initialize_frame): Adjust and use
7082 gdb::option::add_setshow_cmds_for_options to install "set
7083 backtrace past-main" and "set backtrace past-entry".
7084 * frame.h: Include "cli/cli-option.h".
7085 (struct frame_print_options): Forward declare.
7086 (print_frame_arguments_all, print_frame_arguments_scalars)
7087 (print_frame_arguments_none): Declare.
7088 (print_entry_values): Delete declaration.
7089 (struct frame_print_options, user_frame_print_options): New.
7090 (struct set_backtrace_options): New.
7091 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7092 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7093 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7094 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7095 (list_args_or_locals): Add frame_print_options parameter.
7096 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7097 * python/py-framefilter.c (enumerate_args): Pass down
7098 USER_FRAME_PRINT_OPTIONS.
7099 * stack.c: Include "cli/cli-option.h".
7100 (print_frame_arguments_all, print_frame_arguments_scalars)
7101 (print_frame_arguments_none): Declare.
7102 (print_raw_frame_arguments, print_entry_values): Delete.
7103 (user_frame_print_options): New.
7104 (boolean_option_def, enum_option_def, frame_print_option_defs):
7105 New.
7106 (struct backtrace_cmd_options): New.
7107 (bt_flag_option_def): New.
7108 (backtrace_command_option_defs): New.
7109 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7110 (print_frame_arg, read_frame_arg, print_frame_args)
7111 (print_frame_info, print_frame): Add frame_print_options parameter
7112 and use it.
7113 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7114 (backtrace_command_1): Add frame_print_options and
7115 backtrace_cmd_options parameters and use them.
7116 (make_backtrace_options_def_group): New.
7117 (backtrace_command): Process command options with
7118 gdb::option::process_options.
7119 (backtrace_command_completer): New.
7120 (_initialize_stack): Extend "backtrace"'s help to mention
7121 supported options. Install completer for "backtrace".
7122 Install some settings commands with add_setshow_cmds_for_options.
7123
2daf894e
PA
71242019-06-13 Pedro Alves <palves@redhat.com>
7125
7126 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7127 and that "set/show print raw frame-arguments" are now deprecated.
7128
7129 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7130 command.
7131 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7132 * stack.c (_initialize_stack): Install "set/show print
7133 raw-frame-arguments", and deprecate "set/show print raw
7134 frame-arguments".
7135 * valprint.c (_initialize_valprint): Deprecate "set/show print
7136 raw".
7137
e6ed716c
PA
71382019-06-13 Pedro Alves <palves@redhat.com>
7139
7140 * compile/compile.c (struct compile_options): New.
7141 (compile_flag_option_def, compile_command_option_defs)
7142 (make_compile_options_def_group): New.
7143 (compile_file_command): Handle options with
7144 gdb::option::process_options.
7145 (compile_file_command_completer): New function.
7146 (compile_code_command): Handle options with
7147 gdb::option::process_options.
7148 (compile_code_command_completer): New function.
7149 (_initialize_compiler): Install completers for "compile code" and
7150 "compile file". Mention available options in "compile code" and
7151 "compile code"'s help.
7152 * completer.c (advance_to_completion_word): New, factored out from
7153 ...
7154 (advance_to_expression_complete_word_point): ... this.
7155 (advance_to_filename_complete_word_point): New.
7156 * completer.h (advance_to_filename_complete_word_point): New
7157 declaration.
7158
7d8062de
PA
71592019-06-13 Pedro Alves <palves@redhat.com>
7160
7161 * compile/compile.c: Include "cli/cli-option.h".
7162 (compile_print_value): Scope data pointer is now a
7163 value_print_options pointer; adjust.
7164 (compile_print_command): Process options. Scope data pointer is
7165 now a value_print_options pointer; adjust.
7166 (_initialize_compile): Update "compile print"'s help to include
7167 supported options. Install a completer for "compile print".
7168 * cp-valprint.c (show_vtblprint, show_objectprint)
7169 (show_static_field_print): Delete.
7170 (_initialize_cp_valprint): Don't install "set print
7171 static-members", "set print vtbl", "set print object" here.
7172 * printcmd.c: Include "cli/cli-option.h" and
7173 "common/gdb_optional.h".
7174 (print_command_parse_format): Rework to fill in a
7175 value_print_options instead of a format_data.
7176 (print_value): Change parameter type from format_data pointer to
7177 value_print_options reference. Adjust.
7178 (print_command_1): Process options. Adjust to pass down a
7179 value_print_options.
7180 (print_command_completer): New.
7181 (_initialize_printcmd): Install print_command_completer as
7182 handle_brkchars completer for the "print" command. Update
7183 "print"'s help to include supported options.
7184 * valprint.c: Include "cli/cli-option.h".
7185 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7186 here from cp-valprint.c.
7187 (boolean_option_def, uinteger_option_def)
7188 (value_print_option_defs, make_value_print_options_def_group):
7189 New. Use gdb::option::add_setshow_cmds_for_options to install
7190 "set print elements", "set print null-stop", "set print repeats",
7191 "set print pretty", "set print union", "set print array", "set
7192 print address", "set print symbol", "set print array-indexes".
7193 * valprint.h: Include <string> and "cli/cli-option.h".
7194 (make_value_print_options_def_group): Declare.
7195 (print_value): Change parameter type from format_data pointer to
7196 value_print_options reference.
7197 (print_command_completer): Declare.
7198
9d0faba9
PA
71992019-06-13 Pedro Alves <palves@redhat.com>
7200
7201 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7202 (COMMON_SFILES): Add maint-test-settings.c.
7203 * cli/cli-decode.c (boolean_enums): New global, factored out from
7204 ...
7205 (add_setshow_boolean_cmd): ... here.
7206 * cli/cli-decode.h (boolean_enums): Declare.
7207 * cli/cli-option.c: New file.
7208 * cli/cli-option.h: New file.
7209 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7210 factored out from ...
7211 (parse_cli_boolean_value(const char *)): ... this.
7212 (is_unlimited_literal): Change parameter type to pointer to
7213 pointer. Adjust and advance ARG pointer.
7214 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7215 (parse_cli_var_enum): New, factored out from ...
7216 (do_set_command): ... this. Adjust.
7217 * cli/cli-setshow.h (parse_cli_boolean_value)
7218 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7219 (parse_cli_var_enum): Declare.
7220 * cli/cli-utils.c: Include "cli/cli-option.h".
7221 (get_ulongest): New.
7222 * cli/cli-utils.h (get_ulongest): Declare.
7223 (check_for_argument): New overloads.
7224 * maint-test-options.c: New file.
7225
2c722807
PA
72262019-06-13 Pedro Alves <palves@redhat.com>
7227
7228 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7229 parse a range if "-" is at the end of the string.
7230
dee7b4c8
PA
72312019-06-13 Pedro Alves <palves@redhat.com>
7232
7233 * cli/cli-setshow.c (parse_auto_binary_operation)
7234 (parse_cli_boolean_value): Don't allow "o".
7235
dca0f6c0
PA
72362019-06-13 Pedro Alves <palves@redhat.com>
7237
7238 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7239 * NEWS: Mention maint test-settings KIND.
7240 * maint-test-settings.c: New file.
7241
597bf39d
PA
72422019-06-13 Pedro Alves <palves@redhat.com>
7243
7244 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7245 completer.
7246 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7247 "set" completers.
7248
48c410fb
PA
72492019-06-13 Pedro Alves <palves@redhat.com>
7250
7251 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7252 after item.
7253
93bcb043
PA
72542019-06-13 Pedro Alves <palves@redhat.com>
7255
7256 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7257
cbba3ecd
PA
72582019-06-13 Pedro Alves <palves@redhat.com>
7259
7260 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7261 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7262 call.
7263 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7264 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7265 calls.
7266 (check_for_argument): Skip spaces after argument.
7267
b9a3f842
PA
72682019-06-13 Pedro Alves <palves@redhat.com>
7269
7270 * thread.c (thread_apply_command): Adjust TID parsing.
7271 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7272 detected before end of string.
7273 (tid_is_in_list): Error out if LIST is invalid.
7274
3844e605
PA
72752019-06-13 Pedro Alves <palves@redhat.com>
7276
7277 * completer.c (complete_line_internal_1): Rewind completion word
7278 point.
7279 (completion_tracker::advance_custom_word_point_by): Change
7280 parameter type to int.
7281 * completer.h (completion_tracker::advance_custom_word_point_by):
7282 Likewise.
7283
00b56dbe
PA
72842019-06-13 Pedro Alves <palves@redhat.com>
7285
7286 * completer.c (advance_to_completion_word): Handle delimiters.
7287
d106773e
PA
72882019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7289
7290 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7291
08f10e02
TT
72922019-06-11 Tom Tromey <tom@tromey.com>
7293
7294 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7295 (xmalloc_failed): Move to alloc.c.
7296 * alloc.c: New file.
7297 * Makefile.in (COMMON_SFILES): Add alloc.c.
7298
1c7fe951
TT
72992019-06-11 Tom Tromey <tom@tromey.com>
7300
7301 * nat/linux-waitpid.c: Don't include server.h.
7302 (linux_debug): Remove.
7303 (my_waitpid): Update.
7304
89549d7f
TT
73052019-06-11 Tom Tromey <tromey@adacore.com>
7306
7307 * infcall.c (_initialize_infcall): Remove trailing newline from
7308 help.
7309 * user-regs.c (_initialize_user_regs): Remove trailing newline
7310 from help.
7311 * typeprint.c (_initialize_typeprint): Remove trailing newline
7312 from help.
7313 * reverse.c (_initialize_reverse): Remove trailing newlines from
7314 help.
7315 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7316 from help.
7317 * language.c (add_set_language_command): Remove trailing newline
7318 from help.
7319 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7320 help.
7321 * disasm.c (_initialize_disasm): Remove trailing newline from
7322 help.
7323 * top.c (init_main): Remove trailing newline from help.
7324 * interps.c (_initialize_interpreter): Remove trailing newline
7325 from help.
7326 * btrace.c (_initialize_btrace): Remove trailing newlines from
7327 help.
7328 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7329 from help.
7330 * python/python.c (_initialize_python): Remove trailing newline
7331 from help.
7332 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7333 help.
7334 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7335 from help. Reformat some text.
7336 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7337 from help.
7338 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7339 newline from help.
7340
86108c13
TT
73412019-06-11 Tom Tromey <tromey@adacore.com>
7342
7343 * darwin-nat.c (darwin_decode_exception_message)
7344 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7345
a7067863
AB
73462019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * valops.c (value_slice): Check for not allocated or not
7349 associated values.
7350
9ab08412
TV
73512019-06-10 Tom de Vries <tdevries@suse.de>
7352
7353 PR gdb/24618
7354 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7355 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7356 invalid.
7357
f19e22e9
TV
73582019-06-10 Tom de Vries <tdevries@suse.de>
7359
7360 PR gdb/24611
7361 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7362 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7363
e99f9db0
TV
73642019-06-10 Tom de Vries <tdevries@suse.de>
7365
7366 PR symtab/24545
7367 * symtab.c (struct demangled_name_entry): Add language field.
7368 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7369 static minimal symbol". Set and use language field.
7370
9bf7038b
TT
73712019-06-10 Tom Tromey <tromey@adacore.com>
7372
7373 * ada-lang.c (_initialize_ada_language): Update help text.
7374
422186a9
TT
73752019-06-10 Tom Tromey <tromey@adacore.com>
7376
7377 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7378 with a newline.
7379 * guile/guile.c (handle_boot_error): Don't end warning with a
7380 newline.
7381 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7382 warning with a newline.
7383 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7384 newline.
7385 (s12z_frame_cache): Likewise.
7386 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7387 a newline.
7388 * solib-svr4.c (disable_probes_interface): Don't end warning with
7389 a newline.
7390 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7391 newline.
7392 * python/python.c (do_finish_initialization): Don't end warning
7393 with a newline.
7394
25ce02ee
TT
73952019-06-10 Tom Tromey <tom@tromey.com>
7396
7397 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7398 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7399 gdbpy_enter.
7400
caa429d8
TT
74012019-06-10 Tom Tromey <tromey@adacore.com>
7402
7403 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7404 data.
7405 (elf_new_init): Don't call stabsread_new_init.
7406 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7407 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7408 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7409
81873cc8
TV
74102019-06-10 Tom de Vries <tdevries@suse.de>
7411
7412 PR symtab/16264
7413 PR symtab/24517
7414 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7415
4fa0265e
РИ
74162019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7417
7418 * source.c (find_and_open_source): Also rewrite relative file
7419 names.
7420
1a3da2cd
AB
74212019-04-26 Amos Bird <amosbird@gmail.com>
7422
7423 * annotate.c (annotate_thread_exited): Add "thread-exited"
7424 annotation.
7425
3847a7bf
TT
74262019-06-06 Tom Tromey <tromey@adacore.com>
7427
7428 * maint.h (class scoped_command_stats): Use
7429 DISABLE_COPY_AND_ASSIGN.
7430 <print_time>: New method.
7431 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7432 print_time.
7433 (scoped_command_stats::print_time): New method.
7434
312617a3
AB
74352019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7438 instructions of lengths 6 or 8 bytes.
7439
b02f78f9
PA
74402019-06-04 Pedro Alves <palves@redhat.com>
7441
7442 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7443
7444 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7445 * breakpoint.c (condition_completer): Likewise.
7446 * cli/cli-dump.c (scan_expression): Likewise.
7447 * common/filestuff.c (mkdir_recursive): Likewise.
7448 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7449 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7450 (gdb_abspath): Likewise.
7451 * compile/compile-cplus-types.c
7452 (compile_cplus_instance::decl_name): Likewise.
7453 * completer.c (complete_explicit_location):
7454 (signal_completer, reg_or_group_completer_1): Likewise.
7455 * cp-support.c (cp_remove_params_if_any): Likewise.
7456 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7457 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7458 * infcmd.c (strip_bg_char): Likewise.
7459 * linespec.c (copy_token_string): Likewise.
7460 * mi/mi-main.c (output_cores): Likewise.
7461 * psymtab.c (psymtab_search_name):
7462 * symfile.c (test_set_ext_lang_command): Likewise.
7463 * target.c (target_fileio_read_stralloc): Likewise.
7464 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7465 * value.c (complete_internalvar): Likewise.
7466
e1f2e1a2
CB
74672019-06-04 Christian Biesinger <cbiesinger@google.com>
7468
7469 Add objfile property to gdb.Type.
d3238f7d
PA
7470 * NEWS: Mention Python API addition.
7471 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7472
e664d728
PW
74732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7474
7475 * NEWS: Mention the new set|show style [title|highlight].
7476 Mention changes to "show style", "help" and "apropos".
7477
66d8c862
PW
74782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7479
7480 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7481 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7482 instead of print_help_for_command.
7483 (print_doc_of_command): New function.
7484 (help_list): Add 'apropos -v word' suggestion.
7485 (print_help_for_command): Style the command name using title style.
7486 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7487 (_initialize_cli_cmds): Describe -v in apropos_command help.
7488
9303eb2f
PW
74892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7490
7491 * cli/cli-style.h (cli_style_option): Add name in constructor,
7492 add m_name class member, add constructor with intensity,
7493 add name class function.
7494 (cli_style_option::add_setshow_commands): Remove name argument.
7495 (highlight_style, title_style): New styles.
7496 * cli/cli-style.c (do_show): New function that shows a style
7497 characteristic styling the style name with itself.
7498 (set_style_name): New function.
7499 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7500 Update all callers according to the changes in cli/cli-style.h.
7501 * utils.h (fputs_highlighted): New function.
7502 * utils.c (fputs_highlighted): Likewise.
7503
e2c52041
PW
75042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7505
7506 * NEWS: Mention new pipe command and new convenience variables.
7507
947d3946
PW
75082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7509
7510 * cli/cli-cmds.c (pipe_command): New function.
7511 (_initialize_cli_cmds): Call add_com for pipe_command.
7512 Define | as an alias for pipe.
7513 (exit_status_set_internal_vars): New function.
7514 (shell_escape): Call exit_status_set_internal_vars.
7515 cli/cli-decode.c (find_command_name_length): Recognize | as
7516 a single character command.
7517
b8fd0918
PW
75182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7519
7520 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7521 top.c (execute_command_to_ui_file): New function, mostly a copy
7522 of execute_command_to_string.
7523 (execute_command_to_string): Implement by calling
7524 execute_command_to_ui_file.
7525
68bb5386
PW
75262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7527
7528 * top.h (saved_command_line): Remove declaration.
7529 * top.c (previous_saved_command_line, previous_repeat_arguments):
7530 New variables.
7531 (saved_command_line): Make static, define together with other
7532 'repeat variables'.
7533 (dont_repeat): Clear repeat_arguments.
7534 (repeat_previous, get_saved_command_line, save_command_line):
7535 New functions.
7536 (gdb_init): Initialize saved_command_line
7537 and previous_saved_command_line.
7538 * main.c (captured_main_1): Remove saved_command_line initialization.
7539 * event-top.c (handle_line_of_input): Update to use
7540 the new 'repeat' related functions instead of direct access to
7541 saved_command_line.
7542 * command.h (repeat_previous, get_saved_command_line,
7543 save_command_line): New declarations.
7544 (dont_repeat): Add comment.
7545
bfcdb852
TT
75462019-05-30 Tom Tromey <tromey@adacore.com>
7547
7548 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7549 Fix comment.
7550 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7551
0ef209f2
JV
75522019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7553
7554 PR cli/24587
7555 * completer.c (complete): Initialize variable word.
7556
955b06fa
SDJ
75572019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7558
7559 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7560 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7561 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7562 'body' is NULL to the outter 'if', protecting the '!is_define'
7563 situation as well.
7564
fa9c3fa0
TT
75652019-05-29 Tom Tromey <tromey@adacore.com>
7566
7567 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7568 (dwarf_unknown): New function.
7569 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7570 (dwarf_type_encoding_name): Use dwarf_unknown.
7571
4330d61d
TT
75722019-05-29 Tom Tromey <tromey@adacore.com>
7573
7574 PR c++/20020:
7575 * cp-valprint.c (cp_print_value_fields): Call
7576 cp_print_static_field inside "try".
7577
33a6bc35
TT
75782019-05-29 Tom Tromey <tromey@adacore.com>
7579
7580 * inflow.c (struct terminal_info): Add default operator=.
7581 * configure: Rebuild.
7582 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7583 -Wdeprecated-copy-dtor, -Wredundant-move.
7584
000439d5
TT
75852019-05-29 Tom Tromey <tromey@adacore.com>
7586
7587 * NEWS: Add entry.
7588 * infcmd.c (print_return_value_1): Handle finish_print
7589 option.
7590 (show_print_finish): New function.
7591 (_initialize_infcmd): Add "set/show print finish" commands.
7592 * valprint.c (user_print_options): Initialize new member.
7593 * valprint.h (struct value_print_options) <finish_print>: New
7594 member.
7595
c0e70c62
TT
75962019-05-28 Tom Tromey <tromey@adacore.com>
7597
7598 * ada-lang.c (ada_remove_Xbn_suffix)
7599 (find_old_style_renaming_symbol)
7600 (parse_old_style_renaming): Remove.
7601 (ada_find_renaming_symbol): Don't call
7602 find_old_style_renaming_symbol.
7603 (ada_is_renaming_symbol): Rename from
7604 ada_find_renaming_symbol. Remove "block" parameter. Return
7605 bool. Now static.
7606 (ada_read_var_value): Update and simplify.
7607 * ada-exp.y (write_var_or_type): Remove old code.
7608
766f8836
AH
76092019-05-28 Alan Hayward <alan.hayward@arm.com>
7610
68255adc 7611 PR gdb/25010
766f8836
AH
7612 * event-top.c: Remove include comment.
7613 * inflow.c (class scoped_ignore_sigttou): Move from here...
7614 * inflow.h (class scoped_ignore_sigttou): ...to here.
7615 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7616 * top.c: Remove include comment.
7617
eb41253a
TT
76182019-05-27 Tom Tromey <tom@tromey.com>
7619
7620 * NEWS: Fix typo.
7621
4ca51187
TT
76222019-05-22 Tom Tromey <tromey@adacore.com>
7623
7624 * target.c (target_follow_exec): Constify parameter.
7625 * target-delegates.c: Rebuild.
7626 * remote.c (remote_target::follow_exec): Constify parameter.
7627 * infrun.c (follow_exec): Constify parameter.
7628 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7629 (target_follow_exec): Likewise.
7630
8fca4da0
AH
76312019-05-22 Alan Hayward <alan.hayward@arm.com>
7632
7633 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7634 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7635
b7060614
AH
76362019-05-22 Alan Hayward <alan.hayward@arm.com>
7637
7638 * NEWS: Add debugredirect and testsuite sections.
7639
0a5954bd
SC
76402019-05-22 Simon Cook <simon.cook@embecosm.com>
7641
7642 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7643 target descriptions using exclusively floating point register name
7644 aliases.
7645
dc42e902
AB
76462019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 PR gdb/18644:
7649 * f-lang.c (build_fortran_types): Handle the case where
7650 gdbarch_floatformat_for_type returns a nullptr.
7651
fb7806c7
TV
76522019-05-21 Tom de Vries <tdevries@suse.de>
7653
7654 PR cli/24587
7655 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7656
34d11c68
AB
76572019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 PR gdb/18644:
7660 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7661 16-byte floats.
7662 * i386-tdep.c (i386_floatformat_for_type): Use
7663 floatformats_ia64_quad for the 16-byte floating point component
7664 within a fortran 32-byte complex number.
7665
122cf0f2
AB
76662019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7669 delete default constructor.
7670 (find_partial_die): Update to return const struct.
7671 (partial_die_parent_scope): Move variable declaration into scope
7672 of its use and change its type to auto.
7673 (guess_partial_die_structure_name): Likewise.
7674 (partial_die_info::fixup): Likewise.
7675
33d0e35a
TT
76762019-05-17 Tom Tromey <tromey@adacore.com>
7677
7678 * source.c (find_and_open_source): Remove cast.
7679
a45575b0
TT
76802019-05-17 Tom Tromey <tromey@adacore.com>
7681
7682 * annotate.c (annotate_source): Make "filename" const.
7683 * annotate.h (annotate_source): Use const.
7684
81f47ac2
AH
76852019-05-17 Alan Hayward <alan.hayward@arm.com>
7686
7687 * disasm.c (set_disassembler_options): Send errors to stderr.
7688
ca1285d1
AH
76892019-05-17 Alan Hayward <alan.hayward@arm.com>
7690
7691 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7692 (cli_interp_base::set_logging): Check debug_redirect.
7693 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7694 * cli/cli-logging.c (debug_redirect): Add static variable.
7695 (pop_output_files): Add default param.
7696 (handle_redirections): Print debug setting.
7697 (show_logging_command): Likewise.
7698 (_initialize_cli_logging): Add debugredirect command.
7699 * interps.c (current_interp_set_logging): Add debug_redirect
7700 parameter.
7701 * interps.h (set_logging): Add debug_redirect parameter.
7702 (current_interp_set_logging): Likewise.
7703 * mi/mi-common.h: Likewise.
7704 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7705
77062019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7707 Tom Tromey <tromey@adacore.com>
7708
7709 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7710 directly.
7711 * cli/cli-interp.h (make_logging_output): Remove declaration.
7712 * cli/cli-logging.c (make_logging_output): Remove function.
7713 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7714 directly.
7715 * ui-file.c (tee_file::tee_file): Remove bools.
7716 (tee_file::~tee_file): Remove deletes.
7717 * ui-file.h (tee_file): Remove bools.
7718
26648588
JV
77192019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7720
7721 * mi/mi-cmds.h (mi_cmd_complete): New function.
7722 * mi/mi-main.c (mi_cmd_complete): Likewise.
7723 * mi/mi-cmds.c: Define new MI command -complete.
7724 * NEWS: Mention new -complete command.
7725
6e035501
JV
77262019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7727
7728 * completer.h (complete): New function.
7729 * completer.c (complete): Likewise.
7730 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7731 function defined in completer.h.
7732
7d0e2ece
JV
77332019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7734
e79be6e5 7735 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7736
fb816e8b
TV
77372019-05-17 Tom de Vries <tdevries@suse.de>
7738
7739 PR gdb/24094
7740 * dwarf2read.c (struct cu_partial_die_info): New struct.
7741 (find_partial_die): Return cu_partial_die_info.
7742 (partial_die_parent_scope, guess_partial_die_structure_name)
7743 (partial_die_info::fixup): Handle new return type of find_partial_die.
7744
677052f2
SDJ
77452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7746
a1726c38 7747 PR breakpoints/24541
677052f2
SDJ
7748 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7749 "std::string", simplifying the algorithm.
7750
f3da9116
SDJ
77512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7752
7753 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7754 (stap_static_probe_ops::get_probes): Likewise.
7755
f1bb75ab
SDJ
77562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7757
7758 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7759 '-')" and "else if".
7760 (stap_parse_single_operand): Join checks for
7761 "gdbarch_stap_parse_special_token_p" and
7762 "gdbarch_stap_parse_special_token" in the same "if" statement.
7763 Invert check when verifying for operation on register
7764 displacement.
7765
3ca58cde
SDJ
77662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7767
7768 * stap-probe.c (stap_get_opcode): Update comment.
7769 (stap_get_expected_argument_type): Likewise.
7770 (handle_stap_probe): Likewise.
7771
af2d9bee
SDJ
77722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7775 return type to 'bool'. Adjust comment. Use 'bool' when
7776 appropriate.
7777 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7778 * stap-probe.c (stap_parse_argument_1): Likewise.
7779 (stap_is_operator): Likewise.
7780 (stap_is_generic_prefix): Likewise.
7781 (stap_is_register_prefix): Likewise.
7782 (stap_is_register_indirection_prefix): Likewise.
7783 (stap_is_integer_prefix): Likewise.
7784 (stap_generic_check_suffix): Likewise.
7785 (stap_check_integer_suffix): Likewise.
7786 (stap_check_register_suffix): Likewise.
7787 (stap_check_register_indirection_suffix): Likewise.
7788 (stap_parse_register_operand): Likewise.
7789 (stap_parse_single_operand): Likewise.
7790 (stap_parse_argument_1): Likewise.
7791 (stap_probe::get_argument_count): Likewise.
7792 (stap_is_operator): Likewise.
7793
61c9c421
TT
77942019-05-16 Tom Tromey <tromey@adacore.com>
7795
7796 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7797 keyword to foreach.
7798
9ddc1af1
SM
77992019-05-15 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * linux-thread-db.c (try_thread_db_load_1): Change return type
7802 to bool.
7803 (try_thread_db_load): Likewise.
7804 (try_thread_db_load_from_pdir_1): Likewise.
7805 (try_thread_db_load_from_pdir): Likewise.
7806 (try_thread_db_load_from_sdir): Likewise.
7807 (try_thread_db_load_from_dir): Likewise.
7808 (thread_db_load_search): Likewise.
7809 (has_libpthread): Likewise.
7810 (thread_db_load): Likewise.
7811
7bede828
SDJ
78122019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7813
7814 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7815 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7816 NULL, and complain/return if that's the case.
7817
c5358db4
JD
78182019-05-15 John Darrington <john@darrington.wattle.id.au>
7819
7820 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7821 (advance, posn, abstract_read_memory): New functions.
7822 [struct mem_read_abstraction]: New struct.
7823 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7824
c408a94f
TT
78252019-05-14 Tom Tromey <tromey@adacore.com>
7826
7827 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7828 value is not lval_memory.
7829
e7bd7fba
TT
78302019-05-14 Tom Tromey <tromey@adacore.com>
7831
7832 * solib.c (info_sharedlibrary_command): Style the file name.
7833
a6d0f249
AH
78342019-05-14 Alan Hayward <alan.hayward@arm.com>
7835
7836 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7837 (aarch64_vnv_type): Likewise.
7838 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7839 * common/tdesc.c: Likewise.
7840 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7841 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7842 * features/aarch64-fpu.xml: Add ieee half view.
7843 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7844 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7845 * gdbtypes.h (struct builtin_type): Likewise.
7846 (struct objfile_type): Likewise.
7847
66b8bb74
SM
78482019-05-12 Paul Naert <paul.naert@polymtl.ca>
7849
7850 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7851 typo.
7852 * location.h (string_to_event_location): Likewise.
7853
21c219fd
JB
78542019-05-11 Joel Brobecker <brobecker@adacore.com>
7855
7856 GDB 8.3 released.
7857
13674803
SM
78582019-05-10 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7861 New variable declaration.
7862 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7863 New variable.
7864 (print_one_breakpoint): Use ui_out::test_flags and new global
7865 variable to compute use_fixed_output.
7866 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7867 Remove.
7868 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7869 (mi_multi_location_breakpoint_output_fixed): Remove.
7870 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7871 new variable.
7872 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7873 fix_multi_location_breakpoint_output flag if version >= 3.
7874 * ui-out.h (enum ui_out_flag)
7875 <fix_multi_location_breakpoint_output>: New enumerator.
7876
a9eac7f9
SM
78772019-05-10 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7880
71bed2db
TT
78812019-05-10 Tom Tromey <tromey@adacore.com>
7882
7883 * ada-lang.c (catch_ada_completer): New function.
7884 (_initialize_ada_language): Use it.
7885
24c54127
TT
78862019-05-10 Tom Tromey <tromey@adacore.com>
7887
7888 * thread.c (print_thread_info): Make "requested_threads" const.
7889 * gdbthread.h (print_thread_info): Make "requested_threads"
7890 const.
7891 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7892 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7893
7a102139
TT
78942019-05-08 Tom Tromey <tom@tromey.com>
7895
7896 * gdbtypes.c (objfile_type_data): Change type.
7897 (objfile_type, _initialize_gdbtypes): Update.
7898
924d79e2
TT
78992019-05-08 Tom Tromey <tom@tromey.com>
7900
7901 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7902 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7903 (_initialize_dwarf2_frame): Update.
7904
4c58e337
TT
79052019-05-08 Tom Tromey <tom@tromey.com>
7906
7907 * objc-lang.c (objc_objfile_data): Change type.
7908 (find_methods): Update.
7909 (_initialize_objc_lang): Remove.
7910
d772d2ab
TT
79112019-05-08 Tom Tromey <tom@tromey.com>
7912
7913 * stabsread.c (rs6000_builtin_type_data): Change type.
7914 (rs6000_builtin_type, _initialize_stabsread): Update.
7915
d11d83f4
TT
79162019-05-08 Tom Tromey <tom@tromey.com>
7917
7918 * mips-tdep.c (mips_pdr_data): Remove.
7919 (_initialize_mips_tdep): Update.
7920
9a73f0ad
TT
79212019-05-08 Tom Tromey <tom@tromey.com>
7922
7923 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7924 (hppa_init_objfile_priv_data, read_unwind_info)
7925 (find_unwind_entry, _initialize_hppa_tdep): Update.
7926
8127a2fa
TT
79272019-05-08 Tom Tromey <tom@tromey.com>
7928
7929 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7930 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7931 on obstack.
7932 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7933
91d3055d
TT
79342019-05-08 Tom Tromey <tom@tromey.com>
7935
7936 * mdebugread.c (basic_type_data): Change type.
7937 (basic_type, _initialize_mdebugread): Update.
7938
31930bd3
TT
79392019-05-08 Tom Tromey <tom@tromey.com>
7940
7941 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7942
bdb3ed9e
TT
79432019-05-08 Tom Tromey <tom@tromey.com>
7944
7945 * nto-tdep.c (nto_inferior_data_reg): Change type.
7946 (nto_inferior_data): Update.
7947 (nto_inferior_data_cleanup, nto_new_inferior_data)
7948 (_initialize_nto_tdep): Remove.
7949 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7950
f37b313d
TT
79512019-05-08 Tom Tromey <tom@tromey.com>
7952
7953 * ada-lang.c (struct ada_inferior_data): Add initializers.
7954 (ada_inferior_data): Change type.
7955 (ada_inferior_data_cleanup): Remove.
7956 (get_ada_inferior_data, ada_inferior_exit)
7957 (struct ada_pspace_data): Add initializers, destructor.
7958 (ada_pspace_data_handle): Change type.
7959 (get_ada_pspace_data): Update.
7960 (ada_pspace_data_cleanup): Remove.
7961
24699405
TT
79622019-05-08 Tom Tromey <tom@tromey.com>
7963
7964 * coffread.c (struct coff_symfile_info): Add initializers.
7965 (coff_objfile_data_key): Move lower. Change type.
7966 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7967 Update.
7968 (coff_free_info): Remove.
7969
d4e05d2f
TT
79702019-05-08 Tom Tromey <tom@tromey.com>
7971
7972 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7973 (fbsd_pspace_data_handle): Move lower. Change type.
7974 (get_fbsd_pspace_data): Update.
7975 (fbsd_pspace_data_cleanup): Remove.
7976 (_initialize_fbsd_tdep): Update.
7977
14ef6690
TT
79782019-05-08 Tom Tromey <tom@tromey.com>
7979
7980 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7981 (get_ada_tasks_pspace_data): Update.
7982 (ada_tasks_pspace_data_cleanup): Remove.
7983 (_initialize_tasks): Update.
7984 (ada_tasks_inferior_data_handle): Change type.
7985 (get_ada_tasks_inferior_data): Update.
7986 (ada_tasks_inferior_data_cleanup): Remove.
7987 (struct ada_tasks_pspace_data): Add initializers.
7988
814cf43a
TT
79892019-05-08 Tom Tromey <tom@tromey.com>
7990
7991 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7992 * symfile-debug.c (debug_sym_get_probes): Change type.
7993 * stap-probe.c (handle_stap_probe):
7994 (stap_static_probe_ops::get_probes): Change type.
7995 * probe.h (class static_probe_ops) <get_probes>: Change type.
7996 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7997 (parse_probes_in_pspace): Update.
7998 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7999 Update.
8000 (any_static_probe_ops::get_probes): Change type.
8001 * elfread.c (elfread_data): New typedef.
8002 (probe_key): Change type.
8003 (elf_get_probes): Likewise. Update.
8004 (probe_key_free): Remove.
8005 (_initialize_elfread): Update.
8006 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8007 Change type.
8008 (dtrace_process_dof_probe, dtrace_process_dof)
8009 (dtrace_static_probe_ops::get_probe): Change type.
8010
02dc647e
TT
80112019-05-08 Tom Tromey <tom@tromey.com>
8012
8013 * xcoffread.c (struct xcoff_symfile_info): Rename from
8014 coff_symfile_info. Add initializers.
8015 (xcoff_objfile_data_key): Move lower. Change type.
8016 (XCOFF_DATA): Rewrite.
8017 (xcoff_free_info): Remove.
8018 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8019 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8020 (xcoff_initial_scan): Update.
8021
09232438
TT
80222019-05-08 Tom Tromey <tom@tromey.com>
8023
8024 * solib-svr4.c (struct svr4_info): Add initializers and
8025 destructor.
8026 <probes_table>: Now an htab_up.
8027 (solib_svr4_pspace_data): Change type.
8028 (free_probes_table): Simplify.
8029 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8030 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8031 (probes_table_remove_objfile_probes, register_solib_event_probe)
8032 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8033 (_initialize_svr4_solib): Update.
8034
7b4a314f
TT
80352019-05-08 Tom Tromey <tom@tromey.com>
8036
8037 * remote.c (remote_pspace_data): Change type.
8038 (remote_pspace_data_cleanup): Remove.
8039 (get_remote_exec_file, set_pspace_remote_exec_file)
8040 (_initialize_remote): Update.
8041
51d3063a
TT
80422019-05-08 Tom Tromey <tom@tromey.com>
8043
8044 * breakpoint.c (breakpoint_objfile_key): Change type.
8045 (get_breakpoint_objfile_data): Update.
8046 (free_breakpoint_objfile_data): Remove.
8047 (_initialize_breakpoint): Update.
8048
89fb8848
TT
80492019-05-08 Tom Tromey <tom@tromey.com>
8050
8051 * linux-tdep.c (struct linux_info): Add initializers.
8052 (linux_inferior_data): Move. Change type.
8053 (invalidate_linux_cache_inf): Update.
8054 (linux_inferior_data_cleanup): Remove.
8055 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8056
e9b89e2d
TT
80572019-05-08 Tom Tromey <tom@tromey.com>
8058
8059 * auxv.c (auxv_inferior_data): Move. Change type.
8060 (auxv_inferior_data_cleanup): Remove.
8061 (invalidate_auxv_cache_inf): Rewrite.
8062 (get_auxv_inferior_data, _initialize_auxv): Update.
8063
8c42777c
TT
80642019-05-08 Tom Tromey <tom@tromey.com>
8065
8066 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8067 (symfile_debug_objfile_data_key): Change type.
8068 (symfile_debug_installed, debug_qf_has_symbols)
8069 (debug_qf_find_last_source_symtab)
8070 (debug_qf_forget_cached_source_info)
8071 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8072 (debug_qf_print_stats, debug_qf_dump)
8073 (debug_qf_expand_symtabs_for_function)
8074 (debug_qf_expand_all_symtabs)
8075 (debug_qf_expand_symtabs_with_fullname)
8076 (debug_qf_map_matching_symbols)
8077 (debug_qf_expand_symtabs_matching)
8078 (debug_qf_find_pc_sect_compunit_symtab)
8079 (debug_qf_map_symbol_filenames)
8080 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8081 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8082 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8083 (debug_sym_read_linetable, debug_sym_relocate): Update.
8084 (symfile_debug_free_objfile): Remove.
8085 (install_symfile_debug_logging, _initialize_symfile_debug):
8086 Update.
8087
5bfd760d
TT
80882019-05-08 Tom Tromey <tom@tromey.com>
8089
8090 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8091 allocate_on_obstack.
8092 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8093 (get_dwarf2_per_objfile): Update.
8094 (set_dwarf2_per_objfile): Remove.
8095 (dwarf2_has_info, dwarf2_get_section_info): Update.
8096 (dwarf2_free_objfile): Remove.
8097 (_initialize_dwarf2_read): Update.
8098
e85e19b4
TT
80992019-05-08 Tom Tromey <tom@tromey.com>
8100
8101 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8102 initializers.
8103 <unsupported_script_warning_printed,
8104 script_not_found_warning_printed>: Now bool.
8105 (auto_load_pspace_data): Change type.
8106 (~auto_load_pspace_info): Rename from
8107 auto_load_pspace_data_cleanup.
8108 (get_auto_load_pspace_data, init_loaded_scripts_info)
8109 (clear_section_scripts, maybe_print_unsupported_script_warning)
8110 (maybe_print_script_not_found_warning, _initialize_auto_load):
8111 Update.
8112
f6aa7436
TT
81132019-05-08 Tom Tromey <tom@tromey.com>
8114
8115 * objfiles.c (objfile_pspace_info): Add destructor and
8116 initializers.
8117 (objfiles_pspace_data): Change type.
8118 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8119 (get_objfile_pspace_data): Update.
8120 (objfiles_bfd_data): Change type.
8121 (get_objfile_bfd_data): Update.
8122 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8123
6ae614f6
TT
81242019-05-08 Tom Tromey <tom@tromey.com>
8125
8126 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8127 Change type.
8128 (get_catch_syscall_inferior_data): Update.
8129 (catch_syscall_inferior_data_cleanup): Remove.
8130 (_initialize_break_catch_syscall): Update.
8131
6509b8eb
TT
81322019-05-08 Tom Tromey <tom@tromey.com>
8133
8134 * inflow.c (struct terminal_info): Add destructor and
8135 initializers.
8136 (inflow_inferior_data): Change type.
8137 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8138 (get_inflow_inferior_data, inflow_inferior_exit)
8139 (swap_terminal_info, _initialize_inflow): Update.
8140
35632941
TT
81412019-05-08 Tom Tromey <tom@tromey.com>
8142
8143 * target-dcache.c (target_dcache_cleanup): Remove.
8144 (target_dcache_aspace_key): Change type.
8145 (target_dcache_init_p, target_dcache_invalidate)
8146 (target_dcache_get, target_dcache_get_or_init)
8147 (_initialize_target_dcache): Update.
8148 * dcache.h (struct dcache_deleter): New.
8149
3017b94d
TT
81502019-05-08 Tom Tromey <tom@tromey.com>
8151
8152 * symtab.c (struct symbol_cache): Add destructor and
8153 initializers.
8154 (symbol_cache_key): Move. Change type.
8155 (make_symbol_cache, free_symbol_cache): Remove.
8156 (get_symbol_cache): Update.
8157 (symbol_cache_cleanup): Remove.
8158 (ALL_PSPACES, symbol_cache_flush)
8159 (maintenance_print_symbol_cache)
8160 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8161 Update.
8162
a32ad8c5
TT
81632019-05-08 Tom Tromey <tom@tromey.com>
8164
8165 * symtab.c (struct main_info): Add destructor and initializers.
8166 (main_progspace_key): Move. Change type.
8167 (get_main_info): Update.
8168 (main_info_cleanup): Remove.
8169 (_initialize_symtab): Update.
8170
5f6e90a0
TT
81712019-05-08 Tom Tromey <tom@tromey.com>
8172
8173 * registry.h (DECLARE_REGISTRY): Define the _key class.
8174
1bd0c6e4
AB
81752019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8176
8177 * NEWS: Merge two 'New commands' sections.
8178
2228ef77
XR
81792019-05-08 Joel Brobecker <brobecker@adacore.com>
8180
8181 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8182 parameter and use Ada language definition instead.
8183 (ada_val_print_ptr): Remove unused language parameter.
8184 (ada_val_print_num): Remove language parameter and use Ada language
8185 definition instead.
8186 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8187 parameter.
8188 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8189 parameter and use Ada language definition instead.
8190 (ada_val_print_1): Update all ada_val_print_xxx calls.
8191 Remove language parameter.
8192 (ada_val_print): Update ada_val_print_1 call.
8193
60fcc1c3
TT
81942019-05-08 Tom Tromey <tromey@adacore.com>
8195
8196 * remote.c (remote_hw_watchpoint_limit)
8197 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8198 Now static.
8199
ed2b7c17
TT
82002019-05-08 Tom Tromey <tromey@adacore.com>
8201
8202 * maint.c (_initialize_maint_cmds): Move initialization code to
8203 remote.c.
8204 (watchdog, show_watchdog): Move to remote.c.
8205 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8206 "watchdog" static.
8207 (_initialize_remote): Move initialization code from maint.c.
8208 * defs.h (watchdog): Don't declare.
8209
b0be6c91
TT
82102019-05-08 Tom Tromey <tromey@adacore.com>
8211
8212 * tui/tui-interp.c: Include main.h.
8213 * interps.c: Include main.h.
8214 * main.h (interpreter_p): Declare.
8215 * defs.h (interpreter_p): Don't declare.
8216
587ee17b
TT
82172019-05-08 Tom Tromey <tromey@adacore.com>
8218
8219 * dwarf2loc.c: Include dwarf2read.h.
8220 * defs.h (read_unsigned_leb128): Don't declare.
8221 * dwarf2read.h (read_unsigned_leb128): Declare.
8222
ca1df239
TT
82232019-05-08 Tom Tromey <tromey@adacore.com>
8224
8225 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8226 method.
8227
99f20f08
TT
82282019-05-08 Tom Tromey <tromey@adacore.com>
8229
8230 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8231 when no wrap column is set.
8232
80e55b13
TT
82332019-05-08 Tom Tromey <tromey@adacore.com>
8234
8235 * c-lang.c (c_get_string): Handle non-C-style arrays.
8236
9d3421af
TT
82372019-05-08 Tom Tromey <tromey@adacore.com>
8238
8239 * typeprint.c (print_offset_data::update): Print the bit offset,
8240 not the number of bits remaining.
8241
844333e2
TT
82422019-05-08 Tom Tromey <tromey@adacore.com>
8243
8244 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8245 padding at end of comment.
8246
988915ee
TT
82472019-05-08 Tom Tromey <tromey@adacore.com>
8248
8249 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8250 Compare main types.
8251
26bfd823
TT
82522019-05-06 Tom Tromey <tom@tromey.com>
8253
8254 * common/scoped_mmap.c: Include common-defs.h.
8255 * common/scoped_mmap.h: Don't include config.h.
8256
89055eaa
TT
82572019-05-04 Tom Tromey <tom@tromey.com>
8258
8259 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8260 (struct aarch64_call_info): Add initializers.
8261 <si>: Now a std::vector.
8262 (pass_on_stack, aarch64_push_dummy_call): Update.
8263
5da01df5
TT
82642019-05-04 Simon Marchi <simon.marchi@efficios.com>
8265 Tom Tromey <tom@tromey.com>
8266
8267 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8268 (ppc_threads): Now a std::vector. Now static.
8269 (hwdebug_find_thread_points_by_tid)
8270 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8271 Update.
8272
fbdf05a1
TT
82732019-05-04 Tom Tromey <tom@tromey.com>
8274
8275 * arc-tdep.c (arc_tdesc_init): Return bool.
8276
06d16ec9
TT
82772019-05-04 Tom Tromey <tom@tromey.com>
8278
8279 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8280 Use gdb_assert_not_reached.
8281
9c056022
TT
82822019-05-04 Tom Tromey <tom@tromey.com>
8283
8284 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8285 "false".
8286
fa9c2a59
TT
82872019-05-04 Tom Tromey <tom@tromey.com>
8288
8289 * arc-tdep.c (arc_tdesc_init): Use bool.
8290
e2eb806a
TT
82912019-05-04 Tom Tromey <tom@tromey.com>
8292
8293 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8294
6fe87677
TT
82952019-05-04 Tom Tromey <tom@tromey.com>
8296
8297 * cli/cli-cmds.c (valid_command_p): Return bool.
8298
7f008c9e
TT
82992019-05-04 Tom Tromey <tom@tromey.com>
8300
8301 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8302 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8303
b6484282
RT
83042019-05-04 Raul Tambre <raul@tambre.ee>
8305
8306 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8307 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8308 operator for comparison.
8309
af97b416
TT
83102019-05-04 Tom Tromey <tom@tromey.com>
8311
8312 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8313 (lookup_partial_symbol, print_partial_symbols)
8314 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8315 (psymbol_compare): Update.
8316 (add_psymbol_to_bcache): Clear the entire psymbol.
8317 (maintenance_check_psymtabs): Update.
8318 * psympriv.h (struct partial_symbol): Don't derive from
8319 general_symbol_info.
8320 <obj_section, unrelocated_address, address,
8321 set_unrelocated_address>: Update.
8322 <ginfo>: New member.
8323 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8324 (debug_names::write_psymbols): Update.
8325
9d6d4be8
TV
83262019-05-04 Tom de Vries <tdevries@suse.de>
8327
8328 * contrib/cc-with-tweaks.sh: Support -n arg.
8329
66452beb
PW
83302019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8331
8332 * corelow.c (core_target::detach): Ensure frame cache and
8333 register caches are cleared.
8334 inferior.c (exit_inferior_1): Likewise.
8335
bde09ab7
TT
83362019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8337 Tom Tromey <tom@tromey.com>
8338
8339 * dictionary.c (collate_pending_symbols_by_language): Remove
8340 "struct" from foreach.
8341 * symtab.c (lookup_global_symbol_from_objfile)
8342 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8343 foreach.
8344 * ser-tcp.c (net_open): Remove "struct" from foreach.
8345 * objfiles.c (objfile_relocate, objfile_rebase)
8346 (objfile_has_symbols): Remove "struct" from foreach.
8347 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8348 from foreach.
8349 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8350 foreach.
8351 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8352 "struct" from foreach.
8353 * ada-lang.c (create_excep_cond_exprs)
8354 (ada_exception_catchpoint_cond_string): Remove "struct" from
8355 foreach.
8356
222a8d25
TT
83572019-05-03 Tom Tromey <tromey@adacore.com>
8358
8359 * ada-exp.y (convert_char_literal): Check suffix of each
8360 enumerator.
8361
fcd60b84
DP
83622019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8363
8364 PR ada/21406:
8365 * ada-exp.y (yywrap): Don't define.
8366 * ada-lex.l (%option): Add noyywrap
8367 (yywrap): Remove.
8368
5f2459c2
EZ
83692019-05-03 Eli Zaretskii <eliz@gnu.org>
8370
353ea2d1
EZ
8371 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8372 _WIN32_WINNT to the XP level, unless already defined to a higher
8373 level.
8374
8375 * unittests/parse-connection-spec-selftests.c:
8376 * ser-tcp.c:
8377 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8378 override.
8379
5f2459c2
EZ
8380 * symfile.c (find_separate_debug_file): Remove colon from the
8381 drive spec of DOS/Windows file names of the target, so that the
8382 file name produced from DEBUGDIR and the target's directory will
8383 be valid on DOS/Windows systems.
8384
80062eb9
AB
83852019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8386
8387 * rust-lang.c (val_print_struct): Handle printing structures
8388 containing strings.
8389
b8c05e85
TT
83902019-05-02 Tom Tromey <tromey@adacore.com>
8391
8392 * valarith.c (_initialize_valarith): Remove.
8393
4504bbde
TT
83942019-05-01 Tom Tromey <tromey@adacore.com>
8395
8396 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8397 bitfields.
8398
d48e62f4
TT
83992019-05-01 Tom Tromey <tromey@adacore.com>
8400
8401 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8402 for big-endian copies.
8403
15f18d14
AT
84042019-04-30 Ali Tamur <tamur@google.com>
8405 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8406 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8407 (read_3_bytes): New function.
8408
ab4ee614
JB
84092019-04-30 Joel Brobecker <brobecker@adacore.com>
8410
8411 * windows-nat.c (main_thread_id): Delete.
8412 (handle_output_debug_string): Replace main_thread_id by
8413 current_event.dwThreadId.
8414 (fake_create_process): Likewise.
8415 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8416 Do not set main_thread_id.
8417 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8418 current_event.dwThreadId.
8419 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8420
8ed5b76e
JB
84212019-04-30 Joel Brobecker <brobecker@adacore.com>
8422
8423 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8424 Use current_event.dwThreadId instead of main_thread_id.
8425
2ff0a947
TT
84262019-04-30 Tom Tromey <tromey@adacore.com>
8427
8428 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8429 (create_excep_cond_exprs): Iterate over program spaces.
8430 (ada_exception_catchpoint_cond_string): Examine all minimal
8431 symbols for exception types.
8432
a776957c
TT
84332019-04-30 Tom Tromey <tromey@adacore.com>
8434
8435 PR c++/24470:
8436 * dwarf2read.c (process_structure_scope): Handle case where type
8437 has template parameters but no symbol was created.
8438
bc68014d
AB
84392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8440 Chris January <chris.january@arm.com>
8441
8442 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8443 qualifier.
8444 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8445
f1fdc960
AB
84462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8447
8448 * f-typeprint.c (f_print_type): Update rules for printing
8449 whitespace.
8450 (f_type_print_varspec_suffix): Likewise.
8451
bf7a4de1
AB
84522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8453 Chris January <chris.january@arm.com>
8454
8455 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8456 function arguments.
8457
bbe75b9d
AB
84582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * f-lang.c (build_fortran_types): Change name of void type to
8461 lower case.
8462 * f-typeprint.c (f_type_print_base): Print the name of the void
8463 type, rather than a fixed string.
8464 * f-valprint.c (f_decorations): Use lower case void string.
8465
1db455a7
AB
84662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8467 Chris January <chris.january@arm.com>
8468
8469 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8470 types for Fortran.
8471
b6d03bb2
AB
84722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8473 Chris January <chris.january@arm.com>
8474 David Lecomber <david.lecomber@arm.com>
8475
8476 * f-exp.y (BINOP_INTRINSIC): New token.
8477 (exp): New parser rule handling BINOP_INTRINSIC.
8478 (f77_keywords): Add new builtin procedures.
8479 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8480 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8481 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8482 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8483 (print_unop_subexp_f): New function.
8484 (print_binop_subexp_f): New function.
8485 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8486 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8487 (dump_subexp_body_f): Likewise.
8488 (operator_check_f): Likewise.
8489 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8490 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8491
83228e93
AB
84922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8495 UNOP_KIND.
8496 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8497 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8498 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8499 (operator_length_f): New fuction.
8500 (print_subexp_f): New function.
8501 (op_name_f): New function.
8502 (dump_subexp_body_f): New function.
8503 (operator_check_f): New function.
8504 (exp_descriptor_f): Replace standard expression handling functions
8505 with new functions.
8506 * gdb/fortran-operator.def: New file.
8507 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8508 * gdb/std-operator.def: Remove UNOP_KIND.
8509
6fdcd7cc
AB
85102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * std-operator.def: Remove unbalanced, stray double quote
8513 character.
8514
2e62ab40
AB
85152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8516 Chris January <chris.january@arm.com>
8517 Daniel Everett <daniel.everett@arm.com>
8518 Nick Forrington <nick.forrington@arm.com>
8519 Richard Bunt <richard.bunt@arm.com>
8520
8521 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8522 of depth when printing anonymous structs or unions.
8523 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8524 Don't print either the top-level value, or the children if the
8525 max-depth is exceeded.
8526 (ppscm_print_children): When printing the key of a map, allow one
8527 extra level of depth.
8528 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8529 print either the top-level value, or the children if the max-depth
8530 is exceeded.
8531 (print_children): When printing the key of a map, allow one extra
8532 level of depth.
8533 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8534 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8535 (user_print_options): Initialise max_depth field.
8536 (val_print_scalar_or_string_type_p): New function.
8537 (val_print): Check to see if the max depth has been reached.
8538 (val_print_check_max_depth): Define new function.
8539 (show_print_max_depth): New function.
8540 (_initialize_valprint): Add 'print max-depth' option.
8541 * valprint.h (struct value_print_options) <max_depth>: New field.
8542 (val_print_check_max_depth): Declare new function.
8543 * NEWS: Document new feature.
8544
4be290b2
AB
85452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * ada-lang.c (ada_language_defn): Initialise new field.
8548 * c-lang.c (c_is_string_type_p): New function.
8549 (c_language_defn): Initialise new field.
8550 (cplus_language_defn): Initialise new field.
8551 (asm_language_defn): Initialise new field.
8552 (minimal_language_defn): Initialise new field.
8553 * c-lang.h (c_is_string_type_p): Declare new function.
8554 * d-lang.c (d_language_defn): Initialise new field.
8555 * f-lang.c (f_is_string_type_p): New function.
8556 (f_language_defn): Initialise new field.
8557 * go-lang.c (go_is_string_type_p): New function.
8558 (go_language_defn): Initialise new field.
8559 * language.c (default_is_string_type_p): New function.
8560 (unknown_language_defn): Initialise new field.
8561 (auto_language_defn): Initialise new field.
8562 * language.h (struct language_defn) <la_is_string_type_p>: New
8563 member variable.
8564 (default_is_string_type_p): Declare new function.
8565 * m2-lang.c (m2_language_defn): Initialise new field.
8566 * objc-lang.c (objc_language_defn): Initialise new field.
8567 * opencl-lang.c (opencl_language_defn): Initialise new field.
8568 * p-lang.c (pascal_is_string_type_p): New function.
8569 (pascal_language_defn): Initialise new field.
8570 * rust-lang.c (rust_is_string_type_p): New function.
8571 (rust_language_defn): Initialise new field.
8572
721b08c6
AB
85732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8576 New field.
8577 * ada-lang.c (ada_language_defn): Initialise new field.
8578 * c-lang.c (c_language_defn): Likewise.
8579 (cplus_language_defn): Likewise.
8580 (asm_language_defn): Likewise.
8581 (minimal_language_defn): Likewise.
8582 * d-lang.c (d_language_defn): Likewise.
8583 * f-lang.c (f_language_defn): Likewise.
8584 * go-lang.c (go_language_defn): Likewise.
8585 * language.c (unknown_language_defn): Likewise.
8586 (auto_language_defn): Likewise.
8587 * m2-lang.c (m2_language_defn): Likewise.
8588 * objc-lang.c (objc_language_defn): Likewise.
8589 * opencl-lang.c (opencl_language_defn): Likewise.
8590 * p-lang.c (pascal_language_defn): Likewise.
8591 * rust-lang.c (rust_language_defn): Likewise.
8592
fc913e53
AB
85932019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8594
8595 * ada-lang.c (ada_is_character_type): Change return type to bool.
8596 (ada_is_string_type): Likewise.
8597 * ada-lang.h (ada_is_character_type): Update declaration
8598 (ada_is_string_type): Likewise.
8599
fa731fa0
PW
86002019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8601
8602 Support style in 'frame|thread apply'
8603
8604 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8605 * record.c (record_start, record_stop): Update callers of
8606 execute_command_to_string with false.
8607 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8608 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8609 methods.
8610 (class string_file): New constructor with term_out parameter.
8611 Override methods term_out and can_emit_style_escape. New member
8612 term_out.
8613 (class stdio_file): Override can_emit_style_escape.
8614 (class tee_file): Override term_out and can_emit_style_escape.
8615 * utils.h (can_emit_style_escape): Remove.
8616 * utils.c (can_emit_style_escape): Likewise.
8617 Update all callers of can_emit_style_escape (SOMESTREAM) to
8618 SOMESTREAM->can_emit_style_escape.
8619 * source-cache.c (source_cache::get_source_lines): Likewise.
8620 * stack.c (frame_apply_command_count): Call execute_command_to_string
8621 passing the term_out characteristic of the current gdb_stdout.
8622 * thread.c (thr_try_catch_cmd): Likewise.
8623 * top.c (execute_command_to_string): pass term_out parameter
8624 to construct the string_file for the command output.
8625 * ui-file.c (term_cli_styling): New function (most code moved
8626 from utils.c can_emit_style_escape).
8627 (string_file::string_file, string_file::can_emit_style_escape,
8628 stdio_file::can_emit_style_escape, tee_file::term_out,
8629 tee_file::can_emit_style_escape): New functions.
8630
136afab8
PW
86312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8632
8633 * NEWS: Mention the new set|show may-call-functions.
8634 * infcall.c (may_call_functions_p): New variable.
8635 (show_may_call_functions_p): New function.
8636 (call_function_by_hand_dummy): Throws an error if not
8637 may-call-functions.
8638 (_initialize_infcall): Call add_setshow_boolean_cmd for
8639 may-call-functions.
8640
725cbb63
KS
86412019-04-25 Keith Seitz <keiths@redhat.com>
8642
8643 PR c++/24367
8644 * cp-support.c (inspect_type): Don't attempt substitutions
8645 of symbol with the same name.
8646
3d1cbb78
TT
86472019-04-25 Tom Tromey <tromey@adacore.com>
8648
8649 PR gdb/24475:
8650 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8651 static.
8652
94aeb44b
TT
86532019-04-25 Tom Tromey <tromey@adacore.com>
8654
8655 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8656 rvalue reference.
8657 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8658 (gdb_xml_parser::parse): Use std::move.
8659 * python/python-internal.h (gdbpy_convert_exception): Take a const
8660 reference.
8661 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8662 std::move.
8663 * python/py-utils.c (gdbpy_convert_exception): Take a const
8664 reference.
8665 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8666 Use std::move.
8667 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8668 Use std::move.
8669 * mi/mi-main.c (mi_print_exception): Take a const reference.
8670 * main.c (handle_command_errors): Take a const reference.
8671 * linespec.c (parse_linespec): Use std::move.
8672 * infcall.c (run_inferior_call): Use std::move.
8673 (call_function_by_hand_dummy): Use std::move.
8674 * exec.c (try_open_exec_file): Use std::move.
8675 * exceptions.h (exception_print, exception_fprintf)
8676 (exception_print_same): Update.
8677 * exceptions.c (print_exception, exception_print)
8678 (exception_fprintf, exception_print_same): Change parameters to
8679 const reference.
8680 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8681 * common/new-op.c: Use std::move.
8682 * common/common-exceptions.h (struct gdb_exception): Add move
8683 constructor.
8684 (struct gdb_exception_error, struct gdb_exception_quit, struct
8685 gdb_quit_bad_alloc): Change constructor to move constructor.
8686 (throw_exception): Change parameter to rvalue reference.
8687 * common/common-exceptions.c (throw_exception): Take rvalue
8688 reference.
8689 * cli/cli-interp.c (safe_execute_command): Use std::move.
8690 * breakpoint.c (insert_bp_location, location_to_sals): Use
8691 std::move.
8692
680d7fd5
TT
86932019-04-25 Tom Tromey <tromey@adacore.com>
8694
8695 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8696 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8697 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8698 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8699 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8700 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8701 guile/scm-value.c: Use unpack.
8702 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8703 gdbscm_gdb_exception.
8704 (gdbscm_throw_gdb_exception): Likewise.
8705 (struct gdbscm_gdb_exception): New.
8706 (unpack): New function.
8707 (gdbscm_wrap): Use unpack.
8708
c6fdd8b2
TT
87092019-04-25 Tom Tromey <tromey@adacore.com>
8710
8711 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8712 (gdb_rl_callback_handler): Use std::move.
8713 * common/common-exceptions.h (struct gdb_exception): Add move
8714 assignment operator.
8715 (throw_exception_sjlj): Change "exception" to const reference.
8716 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8717 (throw_exception_sjlj): Change "exception" to const reference.
8718
cc06b668
TT
87192019-04-25 Tom Tromey <tromey@adacore.com>
8720
8721 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8722 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8723 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8724 Update.
8725 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8726 Update.
8727 * mi/mi-interp.c (mi_interp::exec): Update.
8728 * linespec.c (parse_linespec): Update.
8729 * infcall.c (run_inferior_call): Update.
8730 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8731 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8732 (gdbscm_lookup_global_symbol): Update.
8733 * guile/scm-param.c (gdbscm_parameter_value): Update.
8734 * guile/scm-frame.c (gdbscm_frame_read_register)
8735 (gdbscm_frame_read_var): Update.
8736 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8737 * exec.c (try_open_exec_file): Update.
8738 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8739 (gdb_rl_callback_handler): Update.
8740 * common/common-exceptions.h (exception_none): Don't declare.
8741 * common/common-exceptions.c (exception_none): Don't define.
8742 (struct catcher) <exception>: Update.
8743 * cli/cli-interp.c (safe_execute_command): Update.
8744 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8745
cf532bd1
AT
87462019-04-25 Ali Tamur <tamur@google.com>
8747
8748 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8749 (read_attribute_value): Likewise.
8750 (dwarf2_read_addr_index): Update comment.
8751 (read_str_index): Add DW_FORM_strx.
8752 (dwarf2_string_attr): Likewise.
8753 (dwarf2_const_value_attr): Likewise.
8754 (dump_die_shallow): Likewise.
8755 (dwarf2_fetch_constant_bytes): Likewise.
8756 (skip_form_bytes): Likewise.
8757 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8758
82433e3e
SDJ
87592019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8760
8761 PR corefiles/11608
8762 PR corefiles/18187
8763 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8764 OFFSET. Verify if current mapping contains an ELF header.
8765 (linux_find_memory_regions_full): Adjust call to
8766 dump_mapping_p.
8767
723adb65
SL
87682019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8769 Kang Li <kanglictf@gmail.com>
8770
8771 PR gdb/21600
8772
8773 * dwarf2-frame.c (read_initial_length): Be consistent about using
8774 unsigned representation of length.
8775 (decode_frame_entry_1): Likewise. Check for wraparound of
8776 end pointer as well as buffer overflow.
8777
596179f7
SDJ
87782019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8779
8780 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8781 "vq".
8782
a59240a4
TT
87832019-04-24 Tom Tromey <tromey@adacore.com>
8784
8785 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8786
f872fdbb
AB
87872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * s12z-tdep.c (s12z_unwind_pc): Delete.
8790 (s12z_unwind_sp): Delete.
8791 (s12z_gdbarch_init): Don't register deleted functions with
8792 gdbarch.
8793
b614e6f3
AB
87942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * rl78-tdep.c (rl78_unwind_sp): Delete.
8797 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8798
14faed38
AB
87992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8802 (xstormy16_unwind_pc): Delete.
8803 (xstormy16_dummy_id): Delete.
8804 (xstormy16_gdbarch_init): Don't register deleted functions with
8805 gdbarch.
8806
541aad8a
AB
88072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 * vax-tdep.c (vax_unwind_pc): Delete.
8810 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8811
29222070
AB
88122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * v850-tdep.c (v850_unwind_sp): Delete.
8815 (v850_unwind_pc): Delete.
8816 (v850_dummy_id): Delete.
8817 (v850_gdbarch_init): Don't register deleted functions with
8818 gdbarch.
8819
0f534d76
AB
88202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8821
8822 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8823 (tilegx_unwind_pc): Delete.
8824 (tilegx_unwind_dummy_id): Delete.
8825 (tilegx_gdbarch_init): Don't register deleted functions with
8826 gdbarch.
8827
1ba7b7f9
AB
88282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8831 (tic6x_dummy_id): Delete.
8832 (tic6x_gdbarch_init): Don't register deleted functions with
8833 gdbarch.
8834
d31f262c
AB
88352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * sparc-tdep.c (sparc_unwind_pc): Delete.
8838 (sparc32_gdbarch_init): Don't register deleted function with
8839 gdbarch.
8840
6d14d64d
AB
88412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * sh-tdep.c (sh_unwind_sp): Delete.
8844 (sh_unwind_pc): Delete.
8845 (sh_dummy_id): Delete.
8846 (sh_gdbarch_init): Don't register deleted functions with
8847 gdbarch.
8848
a40dde9d
AB
88492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8850
8851 * score-tdep.c (score_unwind_sp): Delete.
8852 (score_unwind_pc): Delete.
8853 (score_dummy_id): Delete.
8854 (score_gdbarch_init): Don't register deleted functions with
8855 gdbarch.
8856
47c47d69
AB
88572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * rx-tdep.c (rx_unwind_pc): Delete.
8860 (rx_unwind_sp): Delete.
8861 (rx_dummy_id): Delete.
8862 (rx_gdbarch_init): Don't register deleted functions with
8863 gdbarch. Update comment.
8864
833a4480
AB
88652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8868 (rs6000_dummy_id): Delete.
8869 (rs6000_gdbarch_init): Don't register deleted functions with
8870 gdbarch.
8871
3f2cef49
AB
88722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8873
8874 * or1k-tdep.c (or1k_dummy_id): Delete.
8875 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8876
96acf884
AB
88772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * nios2-tdep.c (nios2_dummy_id): Delete.
8880 (nios2_unwind_sp): Delete.
8881 (nios2_gdbarch_init): Don't register deleted functions with
8882 gdbarch.
8883
ca0ab0aa
AB
88842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8885
8886 * nds32-tdep.c (nds32_dummy_id): Delete.
8887 (nds32_unwind_pc): Delete.
8888 (nds32_unwind_sp): Delete.
8889 (nds32_gdbarch_init): Don't register deleted functions with
8890 gdbarch.
8891
c8259044
AB
88922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8893
8894 * msp430-tdep.c (msp430_unwind_pc): Delete.
8895 (msp430_unwind_sp): Delete.
8896 (msp430_dummy_id): Delete.
8897 (msp430_gdbarch_init): Don't register deleted functions with
8898 gdbarch.
8899
27f113c8
AB
89002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8901
8902 * moxie-tdep.c (moxie_unwind_sp): Delete.
8903 (moxie_unwind_pc): Delete.
8904 (moxie_dummy_id): Delete.
8905 (moxie_gdbarch_init): Don't register deleted functions with
8906 gdbarch.
8907
aee6c3cd
AB
89082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8911 (mn10300_unwind_pc): Delete.
8912 (mn10300_unwind_sp): Delete.
8913 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8914 mn10300_unwind_sp.
8915 (mn10300_frame_unwind_init): Don't register deleted functions with
8916 gdbarch.
8917
8e2b5aea
AB
89182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * mep-tdep.c (mep_unwind_pc): Delete.
8921 (mep_unwind_sp): Delete.
8922 (mep_dummy_id): Delete.
8923 (mep_gdbarch_init): Don't register deleted functions with
8924 gdbarch.
8925
43cf3ede
AB
89262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8927
8928 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8929 (m68hc11_unwind_sp): Delete.
8930 (m68hc11_gdbarch_init): Don't register deleted functions with
8931 gdbarch.
8932
5e79b7bb
AB
89332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8934
8935 * m32r-tdep.c (m32r_unwind_sp): Delete.
8936 (m32r_unwind_pc): Delete.
8937 (m32r_dummy_id): Delete.
8938 (m32r_gdbarch_init): Don't register deleted functions with
8939 gdbarch.
8940
89b268d8
AB
89412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8942
8943 * m32c-tdep.c (m32c_unwind_pc): Delete.
8944 (m32c_unwind_sp): Delete.
8945 (m32c_dummy_id): Delete.
8946 (m32c_gdbarch_init): Don't register deleted functions with
8947 gdbarch.
8948
946c28d2
AB
89492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8950
8951 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8952 (lm32_unwind_pc): Delete.
8953 (lm32_dummy_id): Delete.
8954 (lm32_gdbarch_init): Don't register deleted functions with
8955 gdbarch.
8956
bf12844a
AB
89572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8960 (iq2000_unwind_pc): Delete.
8961 (iq2000_dummy_id): Delete.
8962 (iq2000_gdbarch_init): Don't register deleted functions with
8963 gdbarch.
8964
ecbc06d2
AB
89652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8966
8967 * nds32-tdep.c (nds32_type_align): Delete.
8968 (nds32_push_dummy_call): Use type_align instead.
8969
030197b4
AB
89702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * arm-tdep.c (arm_type_align): Only handle vector override case.
8973 (arm_push_dummy_call): Use type_align.
8974 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8975
b907456c
AB
89762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8977
8978 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8979 case.
8980 (pass_on_stack): Use type_align.
8981 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8982 function.
8983
9e97ba43
TT
89842019-04-23 Tom Tromey <tromey@adacore.com>
8985
8986 * dwarf2read.c (line_header::file_name_at): Remove unused
8987 overload.
8988
6892f601
TV
89892019-04-23 Tom de Vries <tdevries@suse.de>
8990
8991 PR gdb/24438
8992 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8993 invocation.
8994
336d760d
AT
8995
89962019-03-27 Ali Tamur <tamur@google.com>
8997
8998 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8999 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9000 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9001 (dwarf_expr_context::get_addr_index): Likewise
9002 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9003 (symbol_needs_eval_context::get_addr_index): Likewise
9004 (disassemble_dwarf_expression): Add DW_OP_addrx
9005 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9006 (read_cutu_die_from_dwo): Update comment
9007 (skip_one_die): Add DW_FORM_addrx
9008 (read_attribute_value): Likewise
9009 (var_decode_location): Add DW_OP_addrx
9010 (dwarf2_const_value_attr): Add DW_FORM_addrx
9011 (dump_die_shallow): Likewise
9012 (dwarf2_fetch_constant_bytes): Likewise
9013 (decode_locdesc): Add DW_OP_addrx
9014 (skip_form_bytes): Add DW_FORM_addrx
9015
ad9d13f8
AT
90162019-04-22 Ali Tamur <tamur@google.com>
9017
9018 * MAINTAINERS (Write After Approval): Add self.
9019
d70cc3ba
SM
90202019-04-22 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9023 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9024 (open_symbol_file_object): Likewise.
9025 (svr4_default_sos): Add info parameter.
9026 (svr4_read_so_list): Likewise.
9027 (svr4_current_sos_direct): Adjust functions calls to pass down
9028 info.
9029 (svr4_current_sos_1): Add info parameter.
9030 (svr4_current_sos): Call get_svr4_info, pass info down to
9031 svr4_current_sos_1.
9032 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9033 get_svr4_info.
9034 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9035 get_svr4_info.
9036 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9037 to get_svr4_info.
9038 (probes_table_remove_objfile_probes): Likewise.
9039 (register_solib_event_probe): Add info parameter.
9040 (solist_update_incremental): Pass info parameter down to
9041 svr4_read_so_list.
9042 (disable_probes_interface): Add info parameter.
9043 (svr4_handle_solib_event): Pass current_program_space to
9044 get_svr4_info. Adjust disable_probes_interface cleanup.
9045 (svr4_create_probe_breakpoints): Add info parameter, pass it
9046 down to register_solib_event_probe.
9047 (svr4_create_solib_event_breakpoints): Add info parameter,
9048 pass it down to svr4_create_probe_breakpoints.
9049 (enable_break): Pass info down to
9050 svr4_create_solib_event_breakpoints.
9051 (svr4_solib_create_inferior_hook): Pass current_program_space to
9052 get_svr4_info.
9053 (svr4_clear_solib): Likewise.
9054
7905fc35
PA
90552019-04-22 Pedro Alves <palves@redhat.com>
9056
9057 * solib-svr4.c (svr4_free_objfile_observer): New.
9058 (probe_and_action::objfile): New field.
9059 (probes_table_htab_remove_objfile_probes)
9060 (probes_table_remove_objfile_probes): New functions.
9061 (register_solib_event_probe): Add 'objfile' parameter. Store it
9062 in the new probe_and_action. Don't store the probe in 'lookup'.
9063 (svr4_create_probe_breakpoints): Pass objfile to
9064 register_solib_event_probe.
9065 (_initialize_svr4_solib): Register a free_objfile observer.
9066
fb881986
TT
90672019-04-19 Tom Tromey <tom@tromey.com>
9068
9069 * common/queue.h: Remove.
9070
8732db6c
TT
90712019-04-19 Tom Tromey <tom@tromey.com>
9072
9073 * event-loop.c: Don't include "common/queue.h".
9074
97dfbadd
TT
90752019-04-19 Tom Tromey <tom@tromey.com>
9076
9077 * remote.c (remote_target): Use delete.
9078 * remote-notif.h: Include <list>, not "common/queue.h".
9079 (notif_client_p): Remove typedef.
9080 (remote_notif_state): Add constructor, destructor, initializer.
9081 <notif_queue>: Now a std::list.
9082 (remote_notif_state_xfree): Don't declare.
9083 * remote-notif.c (remote_notif_process, handle_notification)
9084 (remote_notif_state_allocate): Update.
9085 (~remote_notif_state): Rename from remote_notif_state_xfree.
9086
cf250e36
TT
90872019-04-19 Tom Tromey <tom@tromey.com>
9088
9089 * symfile.c (reread_symbols): Update.
9090 * objfiles.c (objfile_register_static_link)
9091 (objfile_lookup_static_link): Update
9092 (~objfile) Don't delete static_links.
9093 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9094
61f4b350
TT
90952019-04-19 Tom Tromey <tom@tromey.com>
9096
9097 * type-stack.h (struct type_stack) <insert>: Constify string.
9098 * type-stack.c (type_stack::insert): Constify string.
9099 * gdbtypes.h (lookup_template_type): Update.
9100 (address_space_name_to_int): Update.
9101 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9102 const.
9103 (lookup_template_type): Make name const.
9104 * c-exp.y: Update rules.
9105 (lex_one_token, classify_name, classify_inner_name)
9106 (c_print_token): Update.
9107 * p-exp.y: Update rules.
9108 (yylex): Update.
9109 * f-exp.y: Update rules.
9110 (yylex): Update.
9111 * d-exp.y: Update rules.
9112 (lex_one_token, classify_name, classify_inner_name): Update.
9113 * parse.c (write_dollar_variable, copy_name): Return std::string.
9114 * parser-defs.h (copy_name): Change return type.
9115 * m2-exp.y: Update rules.
9116 (yylex): Update.
9117 * go-exp.y (lex_one_token): Update.
9118 Update rules.
9119 (classify_unsafe_function, classify_packaged_name)
9120 (classify_name, yylex): Update.
9121
189b8c2e
ST
91222019-04-19 Sergei Trofimovich <siarheit@google.com>
9123
9124 * configure.ac: add --enable-source-highlight switch.
9125 * configure: Regenerate.
9126 * top.c (print_gdb_version): plumb --enable-source-highlight
9127 status to "show configuration".
9128
8ecb59f8
TT
91292019-04-19 Tom Tromey <tromey@adacore.com>
9130
9131 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9132 Check ADA_TYPE_P.
9133 (empty_record, ada_template_to_fixed_record_type_1)
9134 (template_to_static_fixed_type)
9135 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9136 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9137 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9138 macros.
9139
62160ec9
TT
91402019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9141
9142 PR symtab/24423:
9143 * source.c (print_source_lines_base): Advance "iter" when a
9144 control character is seen.
9145
f2ae8bc8
PW
91462019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9147
9148 * inferior.h (struct infcall_suspend_state_deleter):
9149 Catch exception in destructor to avoid crash.
9150
d563b953
PW
91512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9152
9153 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9154 close to the add_com "shell".
9155
dc34c897
TT
91562019-04-18 Tom Tromey <tromey@adacore.com>
9157
9158 * process-stratum-target.h (class process_stratum_target)
9159 <stratum>: Add "final".
9160
a12e5744
TT
91612019-04-17 Tom Tromey <tromey@adacore.com>
9162
9163 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9164 against nullptr before use.
9165
a7e559cc
AH
91662019-04-17 Alan Hayward <alan.hayward@arm.com>
9167
9168 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9169
c01660c6
AB
91702019-04-17 Jim Wilson <jimw@sifive.com>
9171 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9174 code read might fail, assume 4-byte breakpoint in that case.
9175
4aa866af
LS
91762019-04-15 Leszek Swirski <leszeks@google.com>
9177
9178 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9179 rather than a hand-rolled POD check when checking for forced MEMORY
9180 classification.
9181
48574d91
AH
91822019-04-15 Alan Hayward <alan.hayward@arm.com>
9183
9184 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9185 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9186 function.
9187 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9188 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9189 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9190 declaration.
9191
4da037ef
AH
91922019-04-15 Alan Hayward <alan.hayward@arm.com>
9193
9194 * aarch64-linux-nat.c
9195 (aarch64_linux_nat_target::thread_architecture): Add override.
9196 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9197 each VQ.
9198
ccb8d7e8
AH
91992019-04-15 Alan Hayward <alan.hayward@arm.com>
9200
9201 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9202
35add35e
AB
92032019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9206 target types of size 96-bits, add some additional comments, and
9207 check that the builtin type we found was the correct size.
9208
51196bbc
EZ
92092019-04-12 Eli Zaretskii <eliz@gnu.org>
9210
9211 * utils.c (prompt_for_continue): Don't restore the styling at the
9212 end, as applied_style has the wrong value. This fixes styling in
9213 long lists of file names that are interrupted by the "Continue?"
9214 prompt.
9215
62253a61
AB
92162019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9219 * c-lang.c (c_language_defn): Likewise.
9220 (cplus_language_defn): Likewise.
9221 (asm_language_defn): Likewise.
9222 (minimal_language_defn): Likewise.
9223 * d-lang.c (d_language_defn): Likewise.
9224 * f-lang.c (f_language_defn): Likewise.
9225 * go-lang.c (go_language_defn): Likewise.
9226 * language.c (unknown_language_defn): Likewise.
9227 (auto_language_defn): Likewise.
9228 * language.h (struct language_defn): Remove la_magic field.
9229 (LANG_MAGIC): Delete.
9230 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9231 * objc-lang.c (objc_language_defn): Likewise.
9232 * opencl-lang.c (opencl_language_defn): Likewise.
9233 * p-lang.c (pascal_language_defn): Likewise.
9234 * rust-lang.c (rust_language_defn): Likewise.
9235
a9158a86
AB
92362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9237
9238 * riscv-tdep.c (riscv_type_align): New function.
9239 (riscv_type_alignment): Delete.
9240 (riscv_arg_location): Use 'type_align'.
9241 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9242
41077b66
AB
92432019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * gdbtypes.c (type_align): A struct with no non-static fields also
9246 has alignment of 1.
9247
9f0272f8
AB
92482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9249
9250 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9251 component to 0.
9252 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9253 member.
9254 (riscv_struct_info::analyse): New implementation using new
9255 analyse_inner member function.
9256 (riscv_struct_info::field_offset): New member function.
9257 (riscv_struct_info::m_offsets): New member variable.
9258 (riscv_struct_info::analyse_inner): New private member function,
9259 takes the old implementation of riscv_struct_info::analyse but
9260 extended to track field offsets.
9261 (riscv_call_arg_struct): Update the struct folding special cases
9262 to handle cases where empty C++ structs, which are non-zero
9263 length, are found.
9264 (riscv_arg_location): Initialise the length of each location, a
9265 non-zero length now indicates the location is in use.
9266 (riscv_push_dummy_call): Allow for the first location having a
9267 non-zero offset when setting up arguments.
9268 (riscv_return_value): Likewise, but for return values.
9269
02cf60c7
TT
92702019-04-11 Tom Tromey <tromey@adacore.com>
9271
9272 * utils.c (internal_vproblem): Make "msg" const.
9273
68811f8f
AH
92742019-04-11 Alan Hayward <alan.hayward@arm.com>
9275
9276 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9277 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9278 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9279 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9280
3f52fdbc
KB
92812019-04-10 Kevin Buettner <kevinb@redhat.com>
9282
9283 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9284 function.
9285 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9286 of amd64_collect_native_gregset.
9287 (amd64_linux_nat_target::store_registers): Likewise.
9288
e9ad22ee
TT
92892019-04-10 Tom Tromey <tom@tromey.com>
9290
9291 * symtab.c (lookup_global_symbol_from_objfile)
9292 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9293 * objfiles.h (class separate_debug_iterator): New.
9294 (class separate_debug_range): New.
9295 (struct objfile) <separate_debug_objfiles>: New method.
9296 (objfile_separate_debug_iterate): Don't declare.
9297 * objfiles.c (separate_debug_iterator::operator++): Rename from
9298 objfile_separate_debug_iterate.
9299 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9300 iterator.
9301 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9302 iterator.
9303
ee371134
TT
93042019-04-10 Tom Tromey <tom@tromey.com>
9305
9306 * symfile.c (reread_symbols): Remove old comment.
9307 * objfiles.c (free_all_objfiles): Fix a typo.
9308
bf227d61
TT
93092019-04-10 Tom Tromey <tom@tromey.com>
9310
9311 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9312 * minsyms.c (lookup_minimal_symbol): Use foreach.
9313 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9314 (lookup_minimal_symbol_solib_trampoline): Likewise.
9315 * symfile.c (reread_symbols): Use foreach.
9316
8dc433a0
TT
93172019-04-09 Ivan Begert <ivanbegert@gmail.com>
9318 Tom Tromey <tromey@adacore.com>
9319
9320 PR rust/24414:
9321 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9322 (rust_lex_int_test): Change "value" to be LONGEST.
9323 (rust_lex_tests): Add test for long integer literal.
9324
9ab8741a
TT
93252019-04-09 Tom Tromey <tromey@adacore.com>
9326
9327 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9328 to bool.
9329 (extended_remote_target::attach): Update.
9330 (remote_target::remote_notice_new_inferior): Update.
9331 (remote_target::add_current_inferior_and_thread): Update.
9332 * inferior.c (exit_inferior_1): Use "false".
9333 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9334
e242fd12
SM
93352019-04-09 Simon Marchi <simon.marchi@efficios.com>
9336
9ca1957f 9337 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9338 the "start" command.
9339
2b0c8b01
KB
93402019-04-08 Kevin Buettner <kevinb@redhat.com>
9341
9342 * python/py-inferior.c (infpy_thread_from_thread_handle):
9343 Adjust comments to reflect renaming of thread_from_thread_handle
9344 to thread_from_handle. Adjust keywords. Fix type error message.
9345 (inferior_object_methods): Add thread_from_handle. Retain
9346 thread_from_thread_handle, but mark it as deprecated.
9347
50a82723
KB
93482019-04-08 Kevin Buettner <kevinb@redhat.com>
9349
9350 * gdbthread.h (find_thread_by_handle): Revise declaration.
9351 * thread.c (find_thread_by_handle): Likewise. Adjust
9352 implementation too.
9353 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9354 support for buffer objects as handles.
9355
cf63b016
KB
93562019-04-08 Kevin Buettner <kevinb@redhat.com>
9357
9358 * python/py-infthread.c (thpy_thread_handle): New function.
9359 (thread_object_methods): Register thpy_thread_handle.
9360
3d6c6204
KB
93612019-04-08 Kevin Buettner <kevinb@redhat.com>
9362
9363 * gdbthread.h (thread_to_thread_handle): Declare.
9364 * thread.c (gdbtypes.h): Include.
9365 (thread_to_thread_handle): New function.
9366
9367 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9368 (target_thread_info_to_thread_handle): Declare.
9369 * target.c (target_thread_info_to_thread_handle): New function.
9370 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9371 * target-delegates.c: Regenerate.
9372
9373 * linux-thread-db.c (class thread_db_target): Add method
9374 thread_info_to_thread_handle.
9375 (thread_db_target::thread_info_to_thread_handle): Define.
9376 * remote.c (class remote_target): Add new method
9377 thread_info_to_thread_handle.
9378 (remote_target::thread_info_to_thread_handle): Define.
9379
56be6ea8
PA
93802019-04-08 Pedro Alves <palves@redhat.com>
9381
9382 * common/common-exceptions.c (throw_exception): Don't create
9383 named object to throw; throw directly.
9384 (throw_it): Likewise. Don't initialize gdb_exception::message
9385 here, with new; pass FMT and AP to the ctor instead.
9386 * common/common-exceptions.h: Include <string>.
9387 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9388 const char *, va_list)): New ctor. Use std::make_shared.
9389 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9390 errors)): Delete.
9391 (gdb_exception_error::gdb_exception_error(enum errors, const char
9392 *, va_list)): New.
9393 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9394 Add assertion.
9395 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9396 errors)): Delete.
9397 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9398 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9399 Add assertion.
9400
eedc3f4f
TT
94012019-04-08 Tom Tromey <tom@tromey.com>
9402
9403 * valops.c (value_rtti_indirect_type): Replace throw_exception
9404 with throw.
9405 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9406 with throw.
9407 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9408 throw.
9409 * target.c (target_translate_tls_address): Replace throw_exception
9410 with throw.
9411 * stack.c (frame_apply_command_count): Replace throw_exception
9412 with throw.
9413 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9414 throw.
9415 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9416 with throw.
9417 * rs6000-tdep.c (rs6000_frame_cache)
9418 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9419 * remote.c: Replace throw_exception with throw.
9420 * record-full.c (record_full_message, record_full_wait_1)
9421 (record_full_restore): Replace throw_exception with throw.
9422 * record-btrace.c:
9423 (get_thread_current_frame_id, record_btrace_start_replaying)
9424 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9425 (cmd_record_btrace_start): Replace throw_exception with throw.
9426 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9427 throw.
9428 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9429 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9430 * linespec.c:
9431 (find_linespec_symbols): Replace throw_exception with throw.
9432 * infrun.c (displaced_step_prepare, resume): Replace
9433 throw_exception with throw.
9434 * infcmd.c (post_create_inferior): Replace throw_exception with
9435 throw.
9436 * inf-loop.c (inferior_event_handler): Replace throw_exception
9437 with throw.
9438 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9439 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9440 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9441 (get_prev_frame_always, get_frame_pc_if_available)
9442 (get_frame_address_in_block_if_available, get_frame_language):
9443 Replace throw_exception with throw.
9444 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9445 throw_exception with throw.
9446 * eval.c (fetch_subexp_value, evaluate_var_value)
9447 (evaluate_funcall, evaluate_subexp_standard): Replace
9448 throw_exception with throw.
9449 * dwarf2loc.c (call_site_find_chain)
9450 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9451 Replace throw_exception with throw.
9452 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9453 with throw.
9454 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9455 throw.
9456 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9457 * completer.c (complete_line_internal): Replace throw_exception
9458 with throw.
9459 * compile/compile-object-run.c (compile_object_run): Replace
9460 throw_exception with throw.
9461 * cli/cli-script.c (process_next_line): Replace throw_exception
9462 with throw.
9463 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9464 (btrace_enable, btrace_maint_update_pt_packets): Replace
9465 throw_exception with throw.
9466 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9467 throw_exception with throw.
9468 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9469 throw_exception with throw.
9470 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9471 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9472 * aarch64-tdep.c (aarch64_make_prologue_cache)
9473 (aarch64_make_stub_cache): Replace throw_exception with throw.
9474
26003a20
TT
94752019-04-08 Tom Tromey <tom@tromey.com>
9476
9477 * common/common-exceptions.c (throw_exception): Rename from
9478 throw_exception_cxx. Remove old copy. Make argument const.
9479 (throw_it): Create and throw exception objects directly.
9480 * common/common-exceptions.h (throw_exception): Make argument
9481 const.
9482 (struct gdb_exception_error): Add constructor.
9483 (struct gdb_exception_quit): Add constructor.
9484
d272eb37
TT
94852019-04-08 Tom Tromey <tom@tromey.com>
9486
9487 * common/common-exceptions.h (exception_rethrow): Don't declare.
9488 (TRY_SJLJ): Update comment.
9489 (TRY, CATCH, END_CATCH): Remove.
9490 * common/common-exceptions.c (exception_rethrow): Remove.
9491
230d2906
TT
94922019-04-08 Tom Tromey <tom@tromey.com>
9493
9494 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9495 Remove.
9496 (gdb_exception_error): Rename from
9497 gdb_exception_RETURN_MASK_ERROR.
9498 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9499 (gdb_quit_bad_alloc): Update.
9500 * aarch64-tdep.c: Update.
9501 * ada-lang.c: Update.
9502 * ada-typeprint.c: Update.
9503 * ada-valprint.c: Update.
9504 * amd64-tdep.c: Update.
9505 * arch-utils.c: Update.
9506 * break-catch-throw.c: Update.
9507 * breakpoint.c: Update.
9508 * btrace.c: Update.
9509 * c-varobj.c: Update.
9510 * cli/cli-cmds.c: Update.
9511 * cli/cli-interp.c: Update.
9512 * cli/cli-script.c: Update.
9513 * common/common-exceptions.c: Update.
9514 * common/new-op.c: Update.
9515 * common/selftest.c: Update.
9516 * compile/compile-c-symbols.c: Update.
9517 * compile/compile-cplus-symbols.c: Update.
9518 * compile/compile-object-load.c: Update.
9519 * compile/compile-object-run.c: Update.
9520 * completer.c: Update.
9521 * corelow.c: Update.
9522 * cp-abi.c: Update.
9523 * cp-support.c: Update.
9524 * cp-valprint.c: Update.
9525 * darwin-nat.c: Update.
9526 * disasm-selftests.c: Update.
9527 * dtrace-probe.c: Update.
9528 * dwarf-index-cache.c: Update.
9529 * dwarf-index-write.c: Update.
9530 * dwarf2-frame-tailcall.c: Update.
9531 * dwarf2-frame.c: Update.
9532 * dwarf2loc.c: Update.
9533 * dwarf2read.c: Update.
9534 * eval.c: Update.
9535 * event-loop.c: Update.
9536 * event-top.c: Update.
9537 * exec.c: Update.
9538 * f-valprint.c: Update.
9539 * fbsd-tdep.c: Update.
9540 * frame-unwind.c: Update.
9541 * frame.c: Update.
9542 * gdbtypes.c: Update.
9543 * gnu-v3-abi.c: Update.
9544 * guile/guile-internal.h: Update.
9545 * guile/scm-block.c: Update.
9546 * guile/scm-breakpoint.c: Update.
9547 * guile/scm-cmd.c: Update.
9548 * guile/scm-disasm.c: Update.
9549 * guile/scm-frame.c: Update.
9550 * guile/scm-lazy-string.c: Update.
9551 * guile/scm-math.c: Update.
9552 * guile/scm-param.c: Update.
9553 * guile/scm-ports.c: Update.
9554 * guile/scm-pretty-print.c: Update.
9555 * guile/scm-symbol.c: Update.
9556 * guile/scm-symtab.c: Update.
9557 * guile/scm-type.c: Update.
9558 * guile/scm-value.c: Update.
9559 * i386-linux-tdep.c: Update.
9560 * i386-tdep.c: Update.
9561 * inf-loop.c: Update.
9562 * infcall.c: Update.
9563 * infcmd.c: Update.
9564 * infrun.c: Update.
9565 * jit.c: Update.
9566 * language.c: Update.
9567 * linespec.c: Update.
9568 * linux-fork.c: Update.
9569 * linux-nat.c: Update.
9570 * linux-tdep.c: Update.
9571 * linux-thread-db.c: Update.
9572 * main.c: Update.
9573 * mi/mi-cmd-break.c: Update.
9574 * mi/mi-cmd-stack.c: Update.
9575 * mi/mi-interp.c: Update.
9576 * mi/mi-main.c: Update.
9577 * objc-lang.c: Update.
9578 * p-valprint.c: Update.
9579 * parse.c: Update.
9580 * ppc-linux-tdep.c: Update.
9581 * printcmd.c: Update.
9582 * python/py-arch.c: Update.
9583 * python/py-breakpoint.c: Update.
9584 * python/py-cmd.c: Update.
9585 * python/py-finishbreakpoint.c: Update.
9586 * python/py-frame.c: Update.
9587 * python/py-framefilter.c: Update.
9588 * python/py-gdb-readline.c: Update.
9589 * python/py-inferior.c: Update.
9590 * python/py-infthread.c: Update.
9591 * python/py-lazy-string.c: Update.
9592 * python/py-linetable.c: Update.
9593 * python/py-objfile.c: Update.
9594 * python/py-param.c: Update.
9595 * python/py-prettyprint.c: Update.
9596 * python/py-progspace.c: Update.
9597 * python/py-record-btrace.c: Update.
9598 * python/py-record.c: Update.
9599 * python/py-symbol.c: Update.
9600 * python/py-type.c: Update.
9601 * python/py-unwind.c: Update.
9602 * python/py-utils.c: Update.
9603 * python/py-value.c: Update.
9604 * python/python.c: Update.
9605 * record-btrace.c: Update.
9606 * record-full.c: Update.
9607 * remote-fileio.c: Update.
9608 * remote.c: Update.
9609 * riscv-tdep.c: Update.
9610 * rs6000-aix-tdep.c: Update.
9611 * rs6000-tdep.c: Update.
9612 * rust-exp.y: Update.
9613 * rust-lang.c: Update.
9614 * s390-tdep.c: Update.
9615 * selftest-arch.c: Update.
9616 * solib-dsbt.c: Update.
9617 * solib-frv.c: Update.
9618 * solib-spu.c: Update.
9619 * solib-svr4.c: Update.
9620 * solib.c: Update.
9621 * sparc64-linux-tdep.c: Update.
9622 * stack.c: Update.
9623 * symfile-mem.c: Update.
9624 * symmisc.c: Update.
9625 * target.c: Update.
9626 * thread.c: Update.
9627 * top.c: Update.
9628 * tracefile-tfile.c: Update.
9629 * tui/tui.c: Update.
9630 * typeprint.c: Update.
9631 * unittests/cli-utils-selftests.c: Update.
9632 * unittests/parse-connection-spec-selftests.c: Update.
9633 * valops.c: Update.
9634 * valprint.c: Update.
9635 * value.c: Update.
9636 * varobj.c: Update.
9637 * windows-nat.c: Update.
9638 * x86-linux-nat.c: Update.
9639 * xml-support.c: Update.
9640
a70b8144
TT
96412019-04-08 Tom Tromey <tom@tromey.com>
9642
9643 * xml-support.c: Use C++ exception handling.
9644 * x86-linux-nat.c: Use C++ exception handling.
9645 * windows-nat.c: Use C++ exception handling.
9646 * varobj.c: Use C++ exception handling.
9647 * value.c: Use C++ exception handling.
9648 * valprint.c: Use C++ exception handling.
9649 * valops.c: Use C++ exception handling.
9650 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9651 handling.
9652 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9653 * typeprint.c: Use C++ exception handling.
9654 * tui/tui.c: Use C++ exception handling.
9655 * tracefile-tfile.c: Use C++ exception handling.
9656 * top.c: Use C++ exception handling.
9657 * thread.c: Use C++ exception handling.
9658 * target.c: Use C++ exception handling.
9659 * symmisc.c: Use C++ exception handling.
9660 * symfile-mem.c: Use C++ exception handling.
9661 * stack.c: Use C++ exception handling.
9662 * sparc64-linux-tdep.c: Use C++ exception handling.
9663 * solib.c: Use C++ exception handling.
9664 * solib-svr4.c: Use C++ exception handling.
9665 * solib-spu.c: Use C++ exception handling.
9666 * solib-frv.c: Use C++ exception handling.
9667 * solib-dsbt.c: Use C++ exception handling.
9668 * selftest-arch.c: Use C++ exception handling.
9669 * s390-tdep.c: Use C++ exception handling.
9670 * rust-lang.c: Use C++ exception handling.
9671 * rust-exp.y: Use C++ exception handling.
9672 * rs6000-tdep.c: Use C++ exception handling.
9673 * rs6000-aix-tdep.c: Use C++ exception handling.
9674 * riscv-tdep.c: Use C++ exception handling.
9675 * remote.c: Use C++ exception handling.
9676 * remote-fileio.c: Use C++ exception handling.
9677 * record-full.c: Use C++ exception handling.
9678 * record-btrace.c: Use C++ exception handling.
9679 * python/python.c: Use C++ exception handling.
9680 * python/py-value.c: Use C++ exception handling.
9681 * python/py-utils.c: Use C++ exception handling.
9682 * python/py-unwind.c: Use C++ exception handling.
9683 * python/py-type.c: Use C++ exception handling.
9684 * python/py-symbol.c: Use C++ exception handling.
9685 * python/py-record.c: Use C++ exception handling.
9686 * python/py-record-btrace.c: Use C++ exception handling.
9687 * python/py-progspace.c: Use C++ exception handling.
9688 * python/py-prettyprint.c: Use C++ exception handling.
9689 * python/py-param.c: Use C++ exception handling.
9690 * python/py-objfile.c: Use C++ exception handling.
9691 * python/py-linetable.c: Use C++ exception handling.
9692 * python/py-lazy-string.c: Use C++ exception handling.
9693 * python/py-infthread.c: Use C++ exception handling.
9694 * python/py-inferior.c: Use C++ exception handling.
9695 * python/py-gdb-readline.c: Use C++ exception handling.
9696 * python/py-framefilter.c: Use C++ exception handling.
9697 * python/py-frame.c: Use C++ exception handling.
9698 * python/py-finishbreakpoint.c: Use C++ exception handling.
9699 * python/py-cmd.c: Use C++ exception handling.
9700 * python/py-breakpoint.c: Use C++ exception handling.
9701 * python/py-arch.c: Use C++ exception handling.
9702 * printcmd.c: Use C++ exception handling.
9703 * ppc-linux-tdep.c: Use C++ exception handling.
9704 * parse.c: Use C++ exception handling.
9705 * p-valprint.c: Use C++ exception handling.
9706 * objc-lang.c: Use C++ exception handling.
9707 * mi/mi-main.c: Use C++ exception handling.
9708 * mi/mi-interp.c: Use C++ exception handling.
9709 * mi/mi-cmd-stack.c: Use C++ exception handling.
9710 * mi/mi-cmd-break.c: Use C++ exception handling.
9711 * main.c: Use C++ exception handling.
9712 * linux-thread-db.c: Use C++ exception handling.
9713 * linux-tdep.c: Use C++ exception handling.
9714 * linux-nat.c: Use C++ exception handling.
9715 * linux-fork.c: Use C++ exception handling.
9716 * linespec.c: Use C++ exception handling.
9717 * language.c: Use C++ exception handling.
9718 * jit.c: Use C++ exception handling.
9719 * infrun.c: Use C++ exception handling.
9720 * infcmd.c: Use C++ exception handling.
9721 * infcall.c: Use C++ exception handling.
9722 * inf-loop.c: Use C++ exception handling.
9723 * i386-tdep.c: Use C++ exception handling.
9724 * i386-linux-tdep.c: Use C++ exception handling.
9725 * guile/scm-value.c: Use C++ exception handling.
9726 * guile/scm-type.c: Use C++ exception handling.
9727 * guile/scm-symtab.c: Use C++ exception handling.
9728 * guile/scm-symbol.c: Use C++ exception handling.
9729 * guile/scm-pretty-print.c: Use C++ exception handling.
9730 * guile/scm-ports.c: Use C++ exception handling.
9731 * guile/scm-param.c: Use C++ exception handling.
9732 * guile/scm-math.c: Use C++ exception handling.
9733 * guile/scm-lazy-string.c: Use C++ exception handling.
9734 * guile/scm-frame.c: Use C++ exception handling.
9735 * guile/scm-disasm.c: Use C++ exception handling.
9736 * guile/scm-cmd.c: Use C++ exception handling.
9737 * guile/scm-breakpoint.c: Use C++ exception handling.
9738 * guile/scm-block.c: Use C++ exception handling.
9739 * guile/guile-internal.h: Use C++ exception handling.
9740 * gnu-v3-abi.c: Use C++ exception handling.
9741 * gdbtypes.c: Use C++ exception handling.
9742 * frame.c: Use C++ exception handling.
9743 * frame-unwind.c: Use C++ exception handling.
9744 * fbsd-tdep.c: Use C++ exception handling.
9745 * f-valprint.c: Use C++ exception handling.
9746 * exec.c: Use C++ exception handling.
9747 * event-top.c: Use C++ exception handling.
9748 * event-loop.c: Use C++ exception handling.
9749 * eval.c: Use C++ exception handling.
9750 * dwarf2read.c: Use C++ exception handling.
9751 * dwarf2loc.c: Use C++ exception handling.
9752 * dwarf2-frame.c: Use C++ exception handling.
9753 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9754 * dwarf-index-write.c: Use C++ exception handling.
9755 * dwarf-index-cache.c: Use C++ exception handling.
9756 * dtrace-probe.c: Use C++ exception handling.
9757 * disasm-selftests.c: Use C++ exception handling.
9758 * darwin-nat.c: Use C++ exception handling.
9759 * cp-valprint.c: Use C++ exception handling.
9760 * cp-support.c: Use C++ exception handling.
9761 * cp-abi.c: Use C++ exception handling.
9762 * corelow.c: Use C++ exception handling.
9763 * completer.c: Use C++ exception handling.
9764 * compile/compile-object-run.c: Use C++ exception handling.
9765 * compile/compile-object-load.c: Use C++ exception handling.
9766 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9767 * compile/compile-c-symbols.c: Use C++ exception handling.
9768 * common/selftest.c: Use C++ exception handling.
9769 * common/new-op.c: Use C++ exception handling.
9770 * cli/cli-script.c: Use C++ exception handling.
9771 * cli/cli-interp.c: Use C++ exception handling.
9772 * cli/cli-cmds.c: Use C++ exception handling.
9773 * c-varobj.c: Use C++ exception handling.
9774 * btrace.c: Use C++ exception handling.
9775 * breakpoint.c: Use C++ exception handling.
9776 * break-catch-throw.c: Use C++ exception handling.
9777 * arch-utils.c: Use C++ exception handling.
9778 * amd64-tdep.c: Use C++ exception handling.
9779 * ada-valprint.c: Use C++ exception handling.
9780 * ada-typeprint.c: Use C++ exception handling.
9781 * ada-lang.c: Use C++ exception handling.
9782 * aarch64-tdep.c: Use C++ exception handling.
9783
3d6e9d23
TT
97842019-04-08 Tom Tromey <tom@tromey.com>
9785
9786 * xml-support.c (gdb_xml_parser::parse): Update.
9787 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9788 * value.c (show_convenience): Update.
9789 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9790 (test_parse_flags_qcs): Update.
9791 * thread.c (thr_try_catch_cmd): Update.
9792 * target.c (target_translate_tls_address): Update.
9793 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9794 (info_frame_command_core, frame_apply_command_count): Update.
9795 * rust-exp.y (rust_lex_exception_test): Update.
9796 * riscv-tdep.c (riscv_print_one_register_info): Update.
9797 * remote.c (remote_target::enable_btrace): Update.
9798 * record-btrace.c (record_btrace_enable_warn): Update.
9799 * python/py-utils.c (gdbpy_convert_exception): Update.
9800 * printcmd.c (do_one_display, print_variable_and_value): Update.
9801 * mi/mi-main.c (mi_print_exception): Update.
9802 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9803 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9804 * linux-nat.c (linux_nat_target::attach): Update.
9805 * linux-fork.c (class scoped_switch_fork_info): Update.
9806 * infrun.c (displaced_step_prepare): Update.
9807 * infcall.c (call_function_by_hand_dummy): Update.
9808 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9809 * gnu-v3-abi.c (print_one_vtable): Update.
9810 * frame.c (get_prev_frame_always): Update.
9811 * f-valprint.c (info_common_command_for_block): Update.
9812 * exec.c (try_open_exec_file): Update.
9813 * exceptions.c (print_exception, exception_print)
9814 (exception_fprintf, exception_print_same): Update.
9815 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9816 * dwarf-index-cache.c (index_cache::store)
9817 (index_cache::lookup_gdb_index): Update.
9818 * darwin-nat.c (maybe_cache_shell): Update.
9819 * cp-valprint.c (cp_print_value_fields): Update.
9820 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9821 (gcc_cplus_symbol_address): Update.
9822 * compile/compile-c-symbols.c (gcc_convert_symbol)
9823 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9824 * common/selftest.c: Update.
9825 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9826 a std::string.
9827 (exception_try_scope_entry, exception_try_scope_exit): Don't
9828 declare.
9829 (struct exception_try_scope): Remove.
9830 (TRY): Don't use exception_try_scope.
9831 (struct gdb_exception): Add constructor, operator=.
9832 <what>: New method.
9833 (struct gdb_exception_RETURN_MASK_ALL)
9834 (struct gdb_exception_RETURN_MASK_ERROR)
9835 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9836 (struct gdb_quit_bad_alloc): Update.
9837 * common/common-exceptions.c (exception_none): Change
9838 initializer.
9839 (struct catcher) <state, exception>: Initialize inline.
9840 <prev>: Remove member.
9841 (current_catcher): Remove.
9842 (catchers): New global.
9843 (exceptions_state_mc_init): Simplify.
9844 (catcher_pop): Remove.
9845 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9846 (try_scope_depth, exception_try_scope_entry)
9847 (exception_try_scope_exit): Remove.
9848 (throw_exception_sjlj): Update.
9849 (exception_messages, exception_messages_size): Remove.
9850 (throw_it): Simplify.
9851 (gdb_exception_sliced_copy): Remove.
9852 (throw_exception_cxx): Update.
9853 * cli/cli-script.c (script_from_file): Update.
9854 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9855 Update.
9856 * ada-valprint.c (ada_val_print): Update.
9857 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9858 (create_excep_cond_exprs): Update.
9859
c5c10118
TT
98602019-04-08 Tom Tromey <tom@tromey.com>
9861
9862 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9863 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9864 (TRY, CATCH, END_CATCH): Remove some definitions.
9865 * common/common-exceptions.c: Don't use GDB_XCPT.
9866 (catcher_list_size): Remove.
9867 (throw_exception, throw_it): Simplify.
9868
4de283e4
TT
98692019-04-05 Tom Tromey <tom@tromey.com>
9870
9871 Revert the header-sorting patch.
9872 * ft32-tdep.c: Revert.
9873 * frv-tdep.c: Revert.
9874 * frv-linux-tdep.c: Revert.
9875 * frame.c: Revert.
9876 * frame-unwind.c: Revert.
9877 * frame-base.c: Revert.
9878 * fork-child.c: Revert.
9879 * findvar.c: Revert.
9880 * findcmd.c: Revert.
9881 * filesystem.c: Revert.
9882 * filename-seen-cache.h: Revert.
9883 * filename-seen-cache.c: Revert.
9884 * fbsd-tdep.c: Revert.
9885 * fbsd-nat.h: Revert.
9886 * fbsd-nat.c: Revert.
9887 * f-valprint.c: Revert.
9888 * f-typeprint.c: Revert.
9889 * f-lang.c: Revert.
9890 * extension.h: Revert.
9891 * extension.c: Revert.
9892 * extension-priv.h: Revert.
9893 * expprint.c: Revert.
9894 * exec.h: Revert.
9895 * exec.c: Revert.
9896 * exceptions.c: Revert.
9897 * event-top.c: Revert.
9898 * event-loop.c: Revert.
9899 * eval.c: Revert.
9900 * elfread.c: Revert.
9901 * dwarf2read.h: Revert.
9902 * dwarf2read.c: Revert.
9903 * dwarf2loc.c: Revert.
9904 * dwarf2expr.h: Revert.
9905 * dwarf2expr.c: Revert.
9906 * dwarf2-frame.c: Revert.
9907 * dwarf2-frame-tailcall.c: Revert.
9908 * dwarf-index-write.h: Revert.
9909 * dwarf-index-write.c: Revert.
9910 * dwarf-index-common.c: Revert.
9911 * dwarf-index-cache.h: Revert.
9912 * dwarf-index-cache.c: Revert.
9913 * dummy-frame.c: Revert.
9914 * dtrace-probe.c: Revert.
9915 * disasm.h: Revert.
9916 * disasm.c: Revert.
9917 * disasm-selftests.c: Revert.
9918 * dictionary.c: Revert.
9919 * dicos-tdep.c: Revert.
9920 * demangle.c: Revert.
9921 * dcache.h: Revert.
9922 * dcache.c: Revert.
9923 * darwin-nat.h: Revert.
9924 * darwin-nat.c: Revert.
9925 * darwin-nat-info.c: Revert.
9926 * d-valprint.c: Revert.
9927 * d-namespace.c: Revert.
9928 * d-lang.c: Revert.
9929 * ctf.c: Revert.
9930 * csky-tdep.c: Revert.
9931 * csky-linux-tdep.c: Revert.
9932 * cris-tdep.c: Revert.
9933 * cris-linux-tdep.c: Revert.
9934 * cp-valprint.c: Revert.
9935 * cp-support.c: Revert.
9936 * cp-namespace.c: Revert.
9937 * cp-abi.c: Revert.
9938 * corelow.c: Revert.
9939 * corefile.c: Revert.
9940 * continuations.c: Revert.
9941 * completer.h: Revert.
9942 * completer.c: Revert.
9943 * complaints.c: Revert.
9944 * coffread.c: Revert.
9945 * coff-pe-read.c: Revert.
9946 * cli-out.h: Revert.
9947 * cli-out.c: Revert.
9948 * charset.c: Revert.
9949 * c-varobj.c: Revert.
9950 * c-valprint.c: Revert.
9951 * c-typeprint.c: Revert.
9952 * c-lang.c: Revert.
9953 * buildsym.c: Revert.
9954 * buildsym-legacy.c: Revert.
9955 * build-id.h: Revert.
9956 * build-id.c: Revert.
9957 * btrace.c: Revert.
9958 * bsd-uthread.c: Revert.
9959 * breakpoint.h: Revert.
9960 * breakpoint.c: Revert.
9961 * break-catch-throw.c: Revert.
9962 * break-catch-syscall.c: Revert.
9963 * break-catch-sig.c: Revert.
9964 * blockframe.c: Revert.
9965 * block.c: Revert.
9966 * bfin-tdep.c: Revert.
9967 * bfin-linux-tdep.c: Revert.
9968 * bfd-target.c: Revert.
9969 * bcache.c: Revert.
9970 * ax-general.c: Revert.
9971 * ax-gdb.h: Revert.
9972 * ax-gdb.c: Revert.
9973 * avr-tdep.c: Revert.
9974 * auxv.c: Revert.
9975 * auto-load.c: Revert.
9976 * arm-wince-tdep.c: Revert.
9977 * arm-tdep.c: Revert.
9978 * arm-symbian-tdep.c: Revert.
9979 * arm-pikeos-tdep.c: Revert.
9980 * arm-obsd-tdep.c: Revert.
9981 * arm-nbsd-tdep.c: Revert.
9982 * arm-nbsd-nat.c: Revert.
9983 * arm-linux-tdep.c: Revert.
9984 * arm-linux-nat.c: Revert.
9985 * arm-fbsd-tdep.c: Revert.
9986 * arm-fbsd-nat.c: Revert.
9987 * arm-bsd-tdep.c: Revert.
9988 * arch-utils.c: Revert.
9989 * arc-tdep.c: Revert.
9990 * arc-newlib-tdep.c: Revert.
9991 * annotate.h: Revert.
9992 * annotate.c: Revert.
9993 * amd64-windows-tdep.c: Revert.
9994 * amd64-windows-nat.c: Revert.
9995 * amd64-tdep.c: Revert.
9996 * amd64-sol2-tdep.c: Revert.
9997 * amd64-obsd-tdep.c: Revert.
9998 * amd64-obsd-nat.c: Revert.
9999 * amd64-nbsd-tdep.c: Revert.
10000 * amd64-nbsd-nat.c: Revert.
10001 * amd64-nat.c: Revert.
10002 * amd64-linux-tdep.c: Revert.
10003 * amd64-linux-nat.c: Revert.
10004 * amd64-fbsd-tdep.c: Revert.
10005 * amd64-fbsd-nat.c: Revert.
10006 * amd64-dicos-tdep.c: Revert.
10007 * amd64-darwin-tdep.c: Revert.
10008 * amd64-bsd-nat.c: Revert.
10009 * alpha-tdep.c: Revert.
10010 * alpha-obsd-tdep.c: Revert.
10011 * alpha-nbsd-tdep.c: Revert.
10012 * alpha-mdebug-tdep.c: Revert.
10013 * alpha-linux-tdep.c: Revert.
10014 * alpha-linux-nat.c: Revert.
10015 * alpha-bsd-tdep.c: Revert.
10016 * alpha-bsd-nat.c: Revert.
10017 * aix-thread.c: Revert.
10018 * agent.c: Revert.
10019 * addrmap.c: Revert.
10020 * ada-varobj.c: Revert.
10021 * ada-valprint.c: Revert.
10022 * ada-typeprint.c: Revert.
10023 * ada-tasks.c: Revert.
10024 * ada-lang.c: Revert.
10025 * aarch64-tdep.c: Revert.
10026 * aarch64-ravenscar-thread.c: Revert.
10027 * aarch64-newlib-tdep.c: Revert.
10028 * aarch64-linux-tdep.c: Revert.
10029 * aarch64-linux-nat.c: Revert.
10030 * aarch64-fbsd-tdep.c: Revert.
10031 * aarch64-fbsd-nat.c: Revert.
10032 * aarch32-linux-nat.c: Revert.
10033
d55e5aa6
TT
100342019-04-05 Tom Tromey <tom@tromey.com>
10035
10036 * ft32-tdep.c: Sort headers.
10037 * frv-tdep.c: Sort headers.
10038 * frv-linux-tdep.c: Sort headers.
10039 * frame.c: Sort headers.
10040 * frame-unwind.c: Sort headers.
10041 * frame-base.c: Sort headers.
10042 * fork-child.c: Sort headers.
10043 * findvar.c: Sort headers.
10044 * findcmd.c: Sort headers.
10045 * filesystem.c: Sort headers.
10046 * filename-seen-cache.h: Sort headers.
10047 * filename-seen-cache.c: Sort headers.
10048 * fbsd-tdep.c: Sort headers.
10049 * fbsd-nat.h: Sort headers.
10050 * fbsd-nat.c: Sort headers.
10051 * f-valprint.c: Sort headers.
10052 * f-typeprint.c: Sort headers.
10053 * f-lang.c: Sort headers.
10054 * extension.h: Sort headers.
10055 * extension.c: Sort headers.
10056 * extension-priv.h: Sort headers.
10057 * expprint.c: Sort headers.
10058 * exec.h: Sort headers.
10059 * exec.c: Sort headers.
10060 * exceptions.c: Sort headers.
10061 * event-top.c: Sort headers.
10062 * event-loop.c: Sort headers.
10063 * eval.c: Sort headers.
10064 * elfread.c: Sort headers.
10065 * dwarf2read.h: Sort headers.
10066 * dwarf2read.c: Sort headers.
10067 * dwarf2loc.c: Sort headers.
10068 * dwarf2expr.h: Sort headers.
10069 * dwarf2expr.c: Sort headers.
10070 * dwarf2-frame.c: Sort headers.
10071 * dwarf2-frame-tailcall.c: Sort headers.
10072 * dwarf-index-write.h: Sort headers.
10073 * dwarf-index-write.c: Sort headers.
10074 * dwarf-index-common.c: Sort headers.
10075 * dwarf-index-cache.h: Sort headers.
10076 * dwarf-index-cache.c: Sort headers.
10077 * dummy-frame.c: Sort headers.
10078 * dtrace-probe.c: Sort headers.
10079 * disasm.h: Sort headers.
10080 * disasm.c: Sort headers.
10081 * disasm-selftests.c: Sort headers.
10082 * dictionary.c: Sort headers.
10083 * dicos-tdep.c: Sort headers.
10084 * demangle.c: Sort headers.
10085 * dcache.h: Sort headers.
10086 * dcache.c: Sort headers.
10087 * darwin-nat.h: Sort headers.
10088 * darwin-nat.c: Sort headers.
10089 * darwin-nat-info.c: Sort headers.
10090 * d-valprint.c: Sort headers.
10091 * d-namespace.c: Sort headers.
10092 * d-lang.c: Sort headers.
10093 * ctf.c: Sort headers.
10094 * csky-tdep.c: Sort headers.
10095 * csky-linux-tdep.c: Sort headers.
10096 * cris-tdep.c: Sort headers.
10097 * cris-linux-tdep.c: Sort headers.
10098 * cp-valprint.c: Sort headers.
10099 * cp-support.c: Sort headers.
10100 * cp-namespace.c: Sort headers.
10101 * cp-abi.c: Sort headers.
10102 * corelow.c: Sort headers.
10103 * corefile.c: Sort headers.
10104 * continuations.c: Sort headers.
10105 * completer.h: Sort headers.
10106 * completer.c: Sort headers.
10107 * complaints.c: Sort headers.
10108 * coffread.c: Sort headers.
10109 * coff-pe-read.c: Sort headers.
10110 * cli-out.h: Sort headers.
10111 * cli-out.c: Sort headers.
10112 * charset.c: Sort headers.
10113 * c-varobj.c: Sort headers.
10114 * c-valprint.c: Sort headers.
10115 * c-typeprint.c: Sort headers.
10116 * c-lang.c: Sort headers.
10117 * buildsym.c: Sort headers.
10118 * buildsym-legacy.c: Sort headers.
10119 * build-id.h: Sort headers.
10120 * build-id.c: Sort headers.
10121 * btrace.c: Sort headers.
10122 * bsd-uthread.c: Sort headers.
10123 * breakpoint.h: Sort headers.
10124 * breakpoint.c: Sort headers.
10125 * break-catch-throw.c: Sort headers.
10126 * break-catch-syscall.c: Sort headers.
10127 * break-catch-sig.c: Sort headers.
10128 * blockframe.c: Sort headers.
10129 * block.c: Sort headers.
10130 * bfin-tdep.c: Sort headers.
10131 * bfin-linux-tdep.c: Sort headers.
10132 * bfd-target.c: Sort headers.
10133 * bcache.c: Sort headers.
10134 * ax-general.c: Sort headers.
10135 * ax-gdb.h: Sort headers.
10136 * ax-gdb.c: Sort headers.
10137 * avr-tdep.c: Sort headers.
10138 * auxv.c: Sort headers.
10139 * auto-load.c: Sort headers.
10140 * arm-wince-tdep.c: Sort headers.
10141 * arm-tdep.c: Sort headers.
10142 * arm-symbian-tdep.c: Sort headers.
10143 * arm-pikeos-tdep.c: Sort headers.
10144 * arm-obsd-tdep.c: Sort headers.
10145 * arm-nbsd-tdep.c: Sort headers.
10146 * arm-nbsd-nat.c: Sort headers.
10147 * arm-linux-tdep.c: Sort headers.
10148 * arm-linux-nat.c: Sort headers.
10149 * arm-fbsd-tdep.c: Sort headers.
10150 * arm-fbsd-nat.c: Sort headers.
10151 * arm-bsd-tdep.c: Sort headers.
10152 * arch-utils.c: Sort headers.
10153 * arc-tdep.c: Sort headers.
10154 * arc-newlib-tdep.c: Sort headers.
10155 * annotate.h: Sort headers.
10156 * annotate.c: Sort headers.
10157 * amd64-windows-tdep.c: Sort headers.
10158 * amd64-windows-nat.c: Sort headers.
10159 * amd64-tdep.c: Sort headers.
10160 * amd64-sol2-tdep.c: Sort headers.
10161 * amd64-obsd-tdep.c: Sort headers.
10162 * amd64-obsd-nat.c: Sort headers.
10163 * amd64-nbsd-tdep.c: Sort headers.
10164 * amd64-nbsd-nat.c: Sort headers.
10165 * amd64-nat.c: Sort headers.
10166 * amd64-linux-tdep.c: Sort headers.
10167 * amd64-linux-nat.c: Sort headers.
10168 * amd64-fbsd-tdep.c: Sort headers.
10169 * amd64-fbsd-nat.c: Sort headers.
10170 * amd64-dicos-tdep.c: Sort headers.
10171 * amd64-darwin-tdep.c: Sort headers.
10172 * amd64-bsd-nat.c: Sort headers.
10173 * alpha-tdep.c: Sort headers.
10174 * alpha-obsd-tdep.c: Sort headers.
10175 * alpha-nbsd-tdep.c: Sort headers.
10176 * alpha-mdebug-tdep.c: Sort headers.
10177 * alpha-linux-tdep.c: Sort headers.
10178 * alpha-linux-nat.c: Sort headers.
10179 * alpha-bsd-tdep.c: Sort headers.
10180 * alpha-bsd-nat.c: Sort headers.
10181 * aix-thread.c: Sort headers.
10182 * agent.c: Sort headers.
10183 * addrmap.c: Sort headers.
10184 * ada-varobj.c: Sort headers.
10185 * ada-valprint.c: Sort headers.
10186 * ada-typeprint.c: Sort headers.
10187 * ada-tasks.c: Sort headers.
10188 * ada-lang.c: Sort headers.
10189 * aarch64-tdep.c: Sort headers.
10190 * aarch64-ravenscar-thread.c: Sort headers.
10191 * aarch64-newlib-tdep.c: Sort headers.
10192 * aarch64-linux-tdep.c: Sort headers.
10193 * aarch64-linux-nat.c: Sort headers.
10194 * aarch64-fbsd-tdep.c: Sort headers.
10195 * aarch64-fbsd-nat.c: Sort headers.
10196 * aarch32-linux-nat.c: Sort headers.
10197
699bd4cf
TT
101982019-04-04 Tom Tromey <tom@tromey.com>
10199
10200 * varobj.c (varobj_create): Update.
10201 * rust-exp.y (struct rust_parser) <update_innermost_block,
10202 lookup_symbol>: New methods.
10203 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10204 Rename.
10205 (rust_parser::rust_lookup_type)
10206 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10207 * printcmd.c (display_command, do_one_display): Update.
10208 * parser-defs.h (struct parser_state) <parser_state>: Add
10209 "tracker" parameter.
10210 (block_tracker): New member.
10211 (class innermost_block_tracker) <innermost_block_tracker>: Add
10212 "types" parameter.
10213 <reset>: Remove method.
10214 (innermost_block): Don't declare.
10215 (null_post_parser): Update.
10216 * parse.c (innermost_block): Remove global.
10217 (write_dollar_variable): Update.
10218 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10219 Remove "tracker_types" parameter.
10220 (parse_expression): Add "tracker" parameter.
10221 (parse_expression_for_completion): Update.
10222 (null_post_parser): Add "tracker" parameter.
10223 * p-exp.y: Update rules.
10224 * m2-exp.y: Update rules.
10225 * language.h (struct language_defn) <la_post_parser>: Add
10226 "tracker" parameter.
10227 * go-exp.y: Update rules.
10228 * f-exp.y: Update rules.
10229 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10230 parameter.
10231 * d-exp.y: Update rules.
10232 * c-exp.y: Update rules.
10233 * breakpoint.c (set_breakpoint_condition): Create an
10234 innermost_block_tracker.
10235 (watch_command_1): Likewise.
10236 * ada-lang.c (resolve): Add "tracker" parameter.
10237 (resolve_subexp): Likewise.
10238 * ada-exp.y (write_var_from_sym): Update.
10239
dac43e32
TT
102402019-04-04 Tom Tromey <tom@tromey.com>
10241
10242 * type-stack.h: New file.
10243 * type-stack.c: New file.
10244 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10245 type-stack.h.
10246 (insert_into_type_stack, insert_type, push_type, push_type_int)
10247 (insert_type_address_space, pop_type, pop_type_int)
10248 (pop_typelist, pop_type_stack, append_type_stack)
10249 (push_type_stack, get_type_stack, push_typelist)
10250 (follow_type_instance_flags, follow_types): Don't declare.
10251 * parse.c (type_stack): Remove global.
10252 (parse_exp_in_context): Update.
10253 (insert_into_type_stack, insert_type, push_type, push_type_int)
10254 (insert_type_address_space, pop_type, pop_type_int)
10255 (pop_typelist, pop_type_stack, append_type_stack)
10256 (push_type_stack, get_type_stack, push_typelist)
10257 (follow_type_instance_flags, follow_types): Remove (moved to
10258 type-stack.c).
10259 * f-exp.y (type_stack): New global.
10260 Update rules.
10261 (push_kind_type, f_parse): Update.
10262 * d-exp.y (type_stack): New global.
10263 Update rules.
10264 (d_parse): Update.
10265 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10266 Update rules.
10267 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10268 (HFILES_NO_SRCDIR): Add type-stack.h.
10269
2a612529
TT
102702019-04-04 Tom Tromey <tom@tromey.com>
10271
10272 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10273 (rust_parser::convert_ast_to_expression, rust_parse)
10274 (rust_lex_test_completion, rust_lex_tests): Update.
10275 * parser-defs.h (struct expr_completion_state): New.
10276 (struct parser_state) <parser_state>: Add completion parameter.
10277 <mark_struct_expression, mark_completion_tag>: New methods.
10278 <parse_completion, m_completion_state>: New members.
10279 (prefixify_expression, null_post_parser): Update.
10280 (mark_struct_expression, mark_completion_tag): Don't declare.
10281 * parse.c (parse_completion, expout_last_struct)
10282 (expout_tag_completion_type, expout_completion_name): Remove
10283 globals.
10284 (parser_state::mark_struct_expression)
10285 (parser_state::mark_completion_tag): Now methods.
10286 (prefixify_expression): Add last_struct parameter.
10287 (prefixify_subexp): Likewise.
10288 (parse_exp_1): Update.
10289 (parse_exp_in_context): Add cstate parameter. Update.
10290 (parse_expression_for_completion): Create an
10291 expr_completion_state.
10292 (null_post_parser): Add "completion" parameter.
10293 * p-exp.y: Update rules.
10294 (yylex): Update.
10295 * language.h (struct language_defn) <la_post_parser>: Add
10296 "completing" parameter.
10297 * go-exp.y: Update rules.
10298 (lex_one_token): Update.
10299 * expression.h (parse_completion): Don't declare.
10300 * d-exp.y: Update rules.
10301 (lex_one_token): Update rules.
10302 * c-exp.y: Update rules.
10303 (lex_one_token): Update.
10304 * ada-lang.c (resolve): Add "parse_completion" parameter.
10305 (resolve_subexp): Likewise.
10306 (ada_resolve_function): Likewise.
10307
43476f0b
TT
103082019-04-04 Tom Tromey <tom@tromey.com>
10309
10310 * parser-defs.h (struct parser_state) <start_arglist,
10311 end_arglist>: New methods.
10312 <arglist_len, m_funcall_chain>: New members.
10313 (arglist_len, start_arglist, end_arglist): Don't declare.
10314 * parse.c (arglist_len, funcall_chain): Remove global.
10315 (start_arglist, end_arglist): Remove functions.
10316 (parse_exp_in_context): Update.
10317 * p-exp.y: Update rules.
10318 * m2-exp.y: Update rules.
10319 * go-exp.y: Update rules.
10320 * f-exp.y: Update rules.
10321 * d-exp.y: Update rules.
10322 * c-exp.y: Update rules.
10323
5776fca3
TT
103242019-04-04 Tom Tromey <tom@tromey.com>
10325
10326 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10327 lex_operator, push_back>: New methods.
10328 Update all rules.
10329 (rust_parser::lex_hex, lex_escape): Rename and update.
10330 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10331 (rust_parser::lex_operator): Rename and update.
10332 (rust_parser::lex_number, rustyylex, rustyyerror)
10333 (rust_lex_test_init, rust_lex_test_sequence)
10334 (rust_lex_test_push_back, rust_lex_tests): Update.
10335 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10336 parameter.
10337 <lexptr, prev_lexptr>: New members.
10338 (lexptr, prev_lexptr): Don't declare.
10339 * parse.c (lexptr, prev_lexptr): Remove globals.
10340 (parse_exp_in_context): Update.
10341 * p-exp.y (yylex, yyerror): Update.
10342 * m2-exp.y (parse_number, yylex, yyerror): Update.
10343 * go-exp.y (lex_one_token, yyerror): Update.
10344 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10345 * d-exp.y (lex_one_token, yyerror): Update.
10346 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10347 (lex_one_token, yyerror): Update.
10348 * ada-lex.l (YY_INPUT): Update.
10349 (rewind_to_char): Update.
10350 * ada-exp.y (yyerror): Update.
10351
8621b685
TT
103522019-04-04 Tom Tromey <tom@tromey.com>
10353
10354 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10355 * parser-defs.h (struct parser_state) <parser_state>: Add new
10356 parameter.
10357 <comma_terminates>: New member.
10358 (comma_terminates): Don't declare global.
10359 * parse.c (comma_terminates): Remove global.
10360 (parse_exp_in_context): Update.
10361 * p-exp.y (yylex): Update.
10362 * m2-exp.y (yylex): Update.
10363 * go-exp.y (lex_one_token): Update.
10364 * f-exp.y (yylex): Update.
10365 * d-exp.y (lex_one_token): Update.
10366 * c-exp.y (lex_one_token): Update.
10367 * ada-lex.l: Update.
10368
28aaf3fd
TT
103692019-04-04 Tom Tromey <tom@tromey.com>
10370
10371 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10372 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10373 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10374 * parser-defs.h (paren_depth): Don't declare.
10375 * parse.c (paren_depth): Remove global.
10376 (parse_exp_in_context): Update.
10377 * p-exp.y (paren_depth): New global.
10378 (pascal_parse): Initialize it.
10379 * m2-exp.y (paren_depth): New global.
10380 (m2_parse): Initialize it.
10381 * go-exp.y (paren_depth): New global.
10382 (go_parse): Initialize it.
10383 * f-exp.y (paren_depth): New global.
10384 (f_parse): Initialize it.
10385 * d-exp.y (paren_depth): New global.
10386 (d_parse): Initialize it.
10387 * c-exp.y (paren_depth): New global.
10388 (c_parse): Initialize it.
10389 * ada-lex.l (paren_depth): New global.
10390 (lexer_init): Initialize it.
10391
1e58a4a4
TT
103922019-04-04 Tom Tromey <tom@tromey.com>
10393
10394 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10395 (rust_parser::convert_ast_to_type)
10396 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10397 * parser-defs.h (struct parser_state) <parser_state>: Add
10398 parameters. Initialize new members.
10399 <expression_context_block, expression_context_pc>: New members.
10400 * parse.c (expression_context_block, expression_context_pc):
10401 Remove globals.
10402 (parse_exp_in_context): Update.
10403 * p-exp.y: Update all rules.
10404 (yylex): Update.
10405 * m2-exp.y: Update all rules.
10406 (yylex): Update.
10407 * go-exp.y (yylex): Update.
10408 * f-exp.y (yylex): Update.
10409 * d-exp.y: Update all rules.
10410 (yylex): Update.
10411 * c-exp.y: Update all rules.
10412 (lex_one_token, classify_name, yylex, c_parse): Update.
10413 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10414
37eedb39
TT
104152019-04-04 Tom Tromey <tom@tromey.com>
10416
10417 * gdbarch.h, gdbarch.c: Rebuild.
10418 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10419 * stap-probe.h:
10420 (struct stap_parse_info): Replace "parser_state" with
10421 "expr_builder".
10422 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10423 (parser_state): New class.
10424 * parse.c (expr_builder): Rename.
10425 (expr_builder::release): Rename.
10426 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10427 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10428 (write_exp_elt_longcst, write_exp_elt_floatcst)
10429 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10430 (write_exp_string_vector, write_exp_bitstring)
10431 (write_exp_msymbol, mark_struct_expression)
10432 (write_dollar_variable)
10433 (insert_type_address_space, increase_expout_size): Replace
10434 "parser_state" with "expr_builder".
10435 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10436 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10437 "parser_state" with "expr_builder".
10438
73923d7e
TT
104392019-04-04 Tom Tromey <tom@tromey.com>
10440
10441 * rust-exp.y: Replace "parse_language" with method call.
10442 * p-exp.y:
10443 (yylex): Replace "parse_language" with method call.
10444 * m2-exp.y:
10445 (yylex): Replace "parse_language" with method call.
10446 * go-exp.y (classify_name): Replace "parse_language" with method
10447 call.
10448 * f-exp.y (yylex): Replace "parse_language" with method call.
10449 * d-exp.y (lex_one_token): Replace "parse_language" with method
10450 call.
10451 * c-exp.y:
10452 (lex_one_token, classify_name, yylex): Replace "parse_language"
10453 with method call.
10454 * ada-exp.y (find_primitive_type, type_char)
10455 (type_system_address): Replace "parse_language" with method call.
10456
fa9f5be6
TT
104572019-04-04 Tom Tromey <tom@tromey.com>
10458
10459 * rust-exp.y: Replace "parse_gdbarch" with method call.
10460 * parse.c (write_dollar_variable, insert_type_address_space):
10461 Replace "parse_gdbarch" with method call.
10462 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10463 call.
10464 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10465 call.
10466 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10467 "parse_gdbarch" with method call.
10468 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10469 with method call.
10470 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10471 "parse_gdbarch" with method call.
10472 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10473 "parse_gdbarch" with method call.
10474 * c-exp.y (parse_type, parse_number, classify_name): Replace
10475 "parse_gdbarch" with method call.
10476 * ada-lex.l: Replace "parse_gdbarch" with method call.
10477 * ada-exp.y (parse_type, find_primitive_type, type_char)
10478 (type_system_address): Replace "parse_gdbarch" with method call.
10479
1201a264
TT
104802019-04-04 Tom Tromey <tom@tromey.com>
10481
10482 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10483 * stap-probe.c (stap_parse_argument): Update.
10484 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10485 initial_size parameter.
10486 * rust-exp.y (rust_lex_tests): Update.
10487 * parse.c (parser_state): Update.
10488 (parse_exp_in_context): Update.
10489 * parser-defs.h (struct parser_state) <parser_state>: Remove
10490 "initial_size" parameter.
10491
e3980ce2
TT
104922019-04-04 Tom Tromey <tom@tromey.com>
10493
10494 * parser-defs.h (increase_expout_size): Don't declare.
10495 * parse.c (increase_expout_size): Now static.
10496
e9f8e3f1
TS
104972019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10498
10499 * gnu-nat.c (gnu_nat_target::wait): Fix
10500 target_waitstatus_to_string call.
10501
d7df6549
AB
105022019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * eval.c (evaluate_subexp_standard): Handle internal functions
10505 during Fortran function call handling.
10506
8bdc1658
AB
105072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10508
10509 * NEWS: Mention new internal functions.
10510 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10511 (read_base_type): Use dwarf2_init_complex_target_type.
10512 * value.c (creal_internal_fn): New function.
10513 (cimag_internal_fn): New function.
10514 (_initialize_values): Register new internal functions.
10515
c29705b7
PW
105162019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10517
10518 * infrun.c (stop_all_threads): If debug_infrun, always
10519 trace the wait status after wait_one, using
10520 target_waitstatus_to_string and target_pid_to_str.
10521 (handle_inferior_event): Replace various trace of
10522 wait status kind by a single trace.
10523 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10524 wait status kind image by target_waitstatus_to_string.
10525 * target/waitstatus.c (target_waitstatus_to_string): Fix
10526 obsolete comment.
10527
05caa1d2
TT
105282019-04-01 Tom Tromey <tromey@adacore.com>
10529
10530 PR symtab/23331:
10531 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10532
9d1447e0
SDJ
105332019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10534 Pedro Alves <palves@redhat.com>
10535
10536 * top.c (quit_force): Call 'finalize_values'.
10537 * value.c (finalize_values): New function.
10538 * value.h (finalize_values): Declare.
10539
7734102d
EZ
105402019-03-30 Eli Zaretskii <eliz@gnu.org>
10541
10542 * NEWS: Announce $_gdb_major and $_gdb_minor.
10543
10544 * top.c (init_gdb_version_vars): New function.
10545 (gdb_init): Call init_gdb_version_vars.
10546
188e1fa9
TT
105472019-03-29 Tom Tromey <tromey@adacore.com>
10548
10549 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10550 help text. Remove dead code.
10551
2880242d
KS
105522019-03-29 Keith Seitz <keiths@redhat.com>
10553
10554 From Siddhesh Poyarekar:
10555 * f-lang.h (f77_get_upperbound): Return LONGEST.
10556 (f77_get_lowerbound): Likewise.
10557 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10558 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10559 print them.
10560 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10561 plongest to format print it.
10562 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10563 (f77_get_upperbound): Likewise.
10564 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10565 LOWER_BOUND to LONGEST.
10566 (f77_create_arrayprint_offset_tbl): Likewise.
10567
cc1defb1
KS
105682019-03-29 Keith Seitz <keiths@redhat.com>
10569
10570 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10571 %s/pulongest for TYPE_LENGTH instead of %d in format
10572 strings.
10573 * ada-typerint.c (ada_print_type): Likewise.
10574 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10575 * compile/compile-c-support.c (generate_register_struct): Likewise.
10576 * gdbtypes.c (recursive_dump_type): Likewise.
10577 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10578 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10579 instead of %d in format strings.
10580 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10581 to std::min to ULONGEST.
10582 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10583 instead of %d in format strings.
10584 * tracepoint.c (info_scope_command): Likewise.
10585 * typeprint.c (print_offset_data::update)
10586 (print_offset_data::finish): Likewise.
10587 * xtensa-tdep.c (xtensa_store_return_value)
10588 (xtensa_push_dummy_call): Likewise.
10589
e432ccf1
JT
105902019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10591
10592 * windows-nat.c (display_selector): Fixed format specifications
10593 for 64-bit Cygwin.
10594
65d2b333
PW
105952019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10596
10597 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10598
f489207e
SL
105992019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10600
10601 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10602 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10603 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10604 (nios2_linux_init_abi): Install it.
10605
bffa1015
AH
106062019-03-28 Alan Hayward <alan.hayward@arm.com>
10607
10608 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10609
fc96163a
AH
106102019-03-28 Alan Hayward <alan.hayward@arm.com>
10611
10612 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10613
20dc7e9b
PW
106142019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10615 Tom Tromey <tromey@adacore.com>
10616
10617 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10618
7f5331a8
JB
106192019-03-26 Joel Brobecker <brobecker@adacore.com>
10620
10621 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10622 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10623 method to compute the bounds of range types. Also print "[evaluated]"
10624 if the bounds' values come from a dynamic evaluation.
10625
18c77628
AB
106262019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10627
10628 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10629 whitespace when pretty printing is on.
10630
53c973f2
AH
106312019-03-26 Alan Hayward <alan.hayward@arm.com>
10632
e79be6e5 10633 * ppc-linux-nat.c: Add include.
53c973f2 10634
d851aa71
AH
106352019-03-26 Alan Hayward <alan.hayward@arm.com>
10636
e79be6e5 10637 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10638
2fe7bab7
AH
106392019-03-26 Alan Hayward <alan.hayward@arm.com>
10640
e79be6e5 10641 * arm-linux-nat.c: Add include.
2fe7bab7 10642
068ef30e
SM
106432019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10644
10645 * source-cache.c (source_cache::get_source_lines): Re-read
10646 fullname after calling open_source_file.
10647
81a24d04
JB
106482019-03-25 John Baldwin <jhb@FreeBSD.org>
10649
10650 * NEWS: Mention TLS support for FreeBSD.
10651
79e7ae11
TT
106522019-03-25 Tom Tromey <tromey@adacore.com>
10653
10654 * minsyms.c (BUNCH_SIZE): Update comment.
10655 (~minimal_symbol_reader): Remove old comment.
10656 (compact_minimal_symbols): Update comment.
10657 (minimal_symbol_reader::install): Remove old comment. Update
10658 other comments.
10659
d45963c2
AH
106602019-03-25 Alan Hayward <alan.hayward@arm.com>
10661
10662 * s390-linux-nat.c: Add include.
10663
0f83012e
AH
106642019-03-25 Alan Hayward <alan.hayward@arm.com>
10665
10666 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10667 Call linux_get_hwcap.
10668 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10669 Likewise.
10670 (aarch64_linux_get_hwcap): Remove function.
10671 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10672 declaration.
10673 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10674 linux_get_hwcap.
10675 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10676 * linux-tdep.c (linux_get_hwcap): Add function.
10677 (linux_get_hwcap2): Likewise.
10678 * linux-tdep.h (linux_get_hwcap): Add declaration.
10679 (linux_get_hwcap2): Likewise.
10680 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10681 (ppc_linux_get_hwcap2): Likewise.
10682 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10683 linux_get_hwcap.
10684 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10685 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10686 (ppc_linux_nat_target::read_description): Likewise.
10687 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10688 * s390-linux-nat.c: Likewise.
10689 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10690
6640a367
TT
106912019-03-24 Tom Tromey <tom@tromey.com>
10692
10693 * ada-lang.c (standard_lookup): Simplify initialization.
10694 (ada_lookup_symbol_nonlocal): Simplify return.
10695 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10696 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10697 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10698 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10699 initialization.
10700 * solib.c (solib_global_lookup): Simplify.
10701 * symtab.c (null_block_symbol): Remove.
10702 (symbol_cache_lookup): Simplify returns.
10703 (lookup_language_this): Simplify returns.
10704 (lookup_symbol_aux): Simplify return.
10705 (lookup_local_symbol): Simplify returns.
10706 (lookup_global_symbol_from_objfile): Simplify return.
10707 (lookup_symbol_in_objfile_symtabs)
10708 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10709 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10710 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10711 * cp-namespace.c (cp_lookup_bare_symbol)
10712 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10713 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10714 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10715 (cp_lookup_symbol_via_imports): Simplify initialization.
10716 (find_symbol_in_baseclass): Likewise.
10717 * symtab.h (null_block_symbol): Remove.
10718 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10719 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10720 (d_lookup_symbol_module): Likewise.
10721 (find_symbol_in_baseclass): Simplify initialization.
10722
a930ebcd
TT
107232019-03-24 Tom Tromey <tom@tromey.com>
10724
10725 * expression.h: Don't include symtab.h.
10726 (struct block): Forward declare.
10727
582942f4
TT
107282019-03-24 Tom Tromey <tom@tromey.com>
10729
10730 * c-exp.y (typebase): Remove casts.
10731 * gdbtypes.c (lookup_unsigned_typename, )
10732 (lookup_signed_typename): Remove cast.
10733 * eval.c (parse_to_comma_and_eval): Remove cast.
10734 * parse.c (write_dollar_variable): Remove cast.
10735 * block.h (struct block) <superblock>: Now const.
10736 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10737 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10738 (map_block): Make "block" const.
10739 * symfile.h (struct quick_symbol_functions)
10740 <map_matching_symbols>: Constify block argument to "callback".
10741 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10742 const.
10743 (find_pc_sect_compunit_symtab): Make "b" const.
10744 (find_symbol_at_address): Likewise.
10745 (search_symbols): Likewise.
10746 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10747 (dw2_debug_names_lookup_symbol): Likewise.
10748 (dw2_map_matching_symbols): Update.
10749 * p-valprint.c (pascal_val_print): Remove "block".
10750 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10751 (aux_add_nonlocal_symbols): Make "block" const.
10752 (resolve_subexp): Remove cast.
10753 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10754 const.
10755 (iterate_over_file_blocks): Likewise.
10756 * f-exp.y (%union) <bval>: Remove.
10757 * coffread.c (patch_opaque_types): Make "b" const.
10758 * spu-tdep.c (spu_catch_start): Make "block" const.
10759 * c-valprint.c (print_unpacked_pointer): Remove "block".
10760 * symmisc.c (dump_symtab_1): Make "b" const.
10761 (block_depth): Make "block" const.
10762 * d-exp.y (%union) <bval>: Remove.
10763 * cp-support.h (cp_lookup_rtti_type): Update.
10764 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10765 * psymtab.c (psym_lookup_symbol): Make "block" const.
10766 (maintenance_check_psymtabs): Make "b" const.
10767 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10768 (enumerate_locals, enumerate_args): Update.
10769 * python/py-symtab.c (stpy_global_block): Make "block" const.
10770 (stpy_static_block): Likewise.
10771 * inline-frame.c (block_starting_point_at): Make "new_block"
10772 const.
10773 * block.c (find_block_in_blockvector): Make return type const.
10774 (blockvector_for_pc_sect): Make "b" const.
10775 (find_block_in_blockvector): Make "b" const.
10776
7ad417dd
TT
107772019-03-23 Tom Tromey <tom@tromey.com>
10778
10779 * varobj.c (varobj_create): Update.
10780 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10781 * printcmd.c (display_command, do_one_display): Don't reset
10782 innermost_block.
10783 * parser-defs.h (enum innermost_block_tracker_type): Move to
10784 expression.h.
10785 (innermost_block): Update comment.
10786 * parse.c (parse_exp_1): Add tracker_types parameter.
10787 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10788 tracker_types parameter. Reset innermost_block.
10789 (parse_exp_in_context): Remove.
10790 (parse_expression_for_completion): Update.
10791 * objfiles.c (~objfile): Don't reset expression_context_block or
10792 innermost_block.
10793 * expression.h (enum innermost_block_tracker_type): Move from
10794 parser-defs.h.
10795 (parse_exp_1): Add tracker_types parameter.
10796 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10797 reset innermost_block.
10798
b366c208
TT
107992019-03-23 Tom Tromey <tom@tromey.com>
10800
10801 * objfiles.h: Include bcache.h.
10802
9bb9b2f9
TT
108032019-03-23 Tom Tromey <tom@tromey.com>
10804
10805 * linespec.c (get_current_search_block): Use
10806 scoped_restore_current_language.
10807 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10808
59c28372
AH
108092019-03-22 Alan Hayward <alan.hayward@arm.com>
10810 Jiong Wang <jiong.wang@arm.com>
10811
10812 * aarch64-linux-tdep.c
10813 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10814 section.
10815 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10816
17e116a7
AH
108172019-03-22 Alan Hayward <alan.hayward@arm.com>
10818 Jiong Wang <jiong.wang@arm.com>
10819
10820 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10821 instructions.
10822 (aarch64_analyze_prologue_test): Add PACIASP test.
10823 (aarch64_prologue_prev_register): Unmask PC value.
10824
11e1b75f
AH
108252019-03-22 Alan Hayward <alan.hayward@arm.com>
10826 Jiong Wang <jiong.wang@arm.com>
10827
10828 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10829 (aarch64_dwarf2_prev_register): Unmask PC value.
10830 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10831 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10832 DW_CFA_AARCH64_negate_ra_state.
10833 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10834
34dcc7cf
AH
108352019-03-22 Alan Hayward <alan.hayward@arm.com>
10836 Jiong Wang <jiong.wang@arm.com>
10837
10838 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10839 registers.
10840 (aarch64_pseudo_register_name): Likewise.
10841 (aarch64_pseudo_register_type): Likewise.
10842 (aarch64_pseudo_register_reggroup_p): Likewise.
10843 (aarch64_gdbarch_init): Add pauth registers.
10844 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10845 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10846 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10847 (struct gdbarch_tdep): Add regnum for ra_state.
10848
1ef53e6b
AH
108492019-03-22 Alan Hayward <alan.hayward@arm.com>
10850 Jiong Wang <jiong.wang@arm.com>
10851
10852 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10853
76bed0fd
AH
108542019-03-22 Alan Hayward <alan.hayward@arm.com>
10855 Jiong Wang <jiong.wang@arm.com>
10856
10857 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10858 function.
10859 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10860 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10861 (aarch64_gdbarch_init): Add puth registers.
10862 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10863 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10864 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10865
ee4fbcfa
AH
108662019-03-22 Alan Hayward <alan.hayward@arm.com>
10867 Jiong Wang <jiong.wang@arm.com>
10868
10869 * aarch64-linux-nat.c
10870 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10871 * aarch64-linux-tdep.c
10872 (aarch64_linux_core_read_description): Likewise.
10873 (aarch64_linux_get_hwcap): New function.
10874 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10875 (aarch64_linux_get_hwcap): New declaration.
10876
6dc0ebde
AH
108772019-03-22 Alan Hayward <alan.hayward@arm.com>
10878 Jiong Wang <jiong.wang@arm.com>
10879
10880 * aarch64-linux-nat.c
10881 (aarch64_linux_nat_target::read_description): Add pauth param.
10882 * aarch64-linux-tdep.c
10883 (aarch64_linux_core_read_description): Likewise.
10884 * aarch64-tdep.c (struct target_desc): Add in pauth.
10885 (aarch64_read_description): Add pauth param.
10886 (aarch64_gdbarch_init): Likewise.
10887 * aarch64-tdep.h (aarch64_read_description): Likewise.
10888 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10889 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10890 * features/Makefile: Add new files.
10891 * features/aarch64-pauth.c: New file.
10892 * features/aarch64-pauth.xml: New file.
10893
595915c1
TT
108942019-03-20 Tom Tromey <tromey@adacore.com>
10895
10896 * infrun.c (handle_inferior_event): Rename from
10897 handle_inferior_event_1. Create a scoped_value_mark.
10898 (handle_inferior_event): Remove.
10899
4c7d57e7
TT
109002019-03-19 Tom Tromey <tromey@adacore.com>
10901
10902 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10903 * infrun.h (print_stop_event): Add "displays" parameter.
10904 * infrun.c (print_stop_event): Add "displays" parameter.
10905
cb246234
PA
109062019-03-19 Pedro Alves <palves@redhat.com>
10907
10908 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10909 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10910 to -1. Fix TABs vs spaces.
10911 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10912 * tui/tui-out.h (tui_ui_out) Add intro comments.
10913 <m_line, m_start_of_line>: In-class initialize, and add describing
10914 comment.
10915
3a0e45b2
AH
109162019-03-18 Alan Hayward <alan.hayward@arm.com>
10917
10918 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10919 variable names.
10920 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10921
5371b850
PA
109222019-03-18 Pedro Alves <palves@redhat.com>
10923 Eli Zaretskii <eliz@gnu.org>
10924
10925 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10926 m_line and m_start_of_line.
10927
b17c4cd0
EZ
109282019-03-18 Eli Zaretskii <eliz@gnu.org>
10929
10930 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10931 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10932 it returns a newline. This fixes a regression in TU mode, whereby
10933 the next line is output on the same screen line as the user input.
10934
4bd56d18
TT
109352019-03-18 Tom Tromey <tromey@adacore.com>
10936
10937 * minsyms.c (minimal_symbol_reader::install): Remove call to
10938 obstack_blank.
10939
55c10aca
PA
109402019-03-18 Pedro Alves <palves@redhat.com>
10941
10942 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10943 New globals.
10944 (apply_style): New, factored out from ...
10945 (apply_ansi_escape): ... this. Handle reverse video mode.
10946 (tui_set_reverse_mode): New function.
10947 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10948 * tui/tui-winsource.c (tui_show_source_line): Use
10949 tui_set_reverse_mode instead of setting A_STANDOUT.
10950 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10951 New setter methods.
10952
647bb750
HD
109532019-03-18 Hannes Domani <ssbssa@yahoo.de>
10954
10955 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10956 Handle tabs.
10957
bff8c71f
TT
109582019-03-18 Tom Tromey <tromey@adacore.com>
10959
10960 * ada-lang.c (empty_array): Add "high" parameter.
10961 (ada_evaluate_subexp): Update.
10962
58785d98
ST
109632019-03-17 Sergei Trofimovich <siarheit@google.com>
10964
10965 * unittests/string_view-selftests.c: Define
10966 _initialize_string_view_selftests unconditionally.
10967
d4cbef22
ВМ
109682019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10969
10970 PR gdb/24350
10971 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10972
fce4c071
ВМ
109732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10974
10975 PR gdb/24351
10976 * windows-nat.c (display_selector): Fix format specifiers.
10977
f7f0a123
EZ
109782019-03-17 Eli Zaretskii <eliz@gnu.org>
10979
10980 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10981 tui_refill_source_window instead of tui_refresh_win, to update the
10982 current execution line. This fixes redisplay of the current line
10983 when stepping through the code with "next" or "step".
10984
ab42892f
EZ
109852019-03-16 Eli Zaretskii <eliz@gnu.org>
10986
10987 * source-cache.c (source_cache::get_source_lines): Call
10988 find_source_lines to initialize s->nlines. This fixes vertical
10989 scrolling of TUI source window when the DOWN arrow is pressed.
10990
8d8c087f
PW
109912019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10992
10993 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10994 linux-thread-db.c (_initialize_thread_db): Likewise.
10995
798e1c30
EZ
109962019-03-16 Eli Zaretskii <eliz@gnu.org>
10997
10998 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10999 wclrtoeol in tui_show_source_line". This reverts changes made in
11000 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11001
eefba3da
TT
110022019-03-15 Tom Tromey <tom@tromey.com>
11003
11004 * symtab.h (struct minimal_symbol): Derive from
11005 general_symbol_info.
11006 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11007 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11008 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11009 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11010 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11011 (MSYMBOL_SEARCH_NAME): Update.
11012 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11013 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11014 * minsyms.c (minimal_symbol_reader::record_full): Update.
11015
0de2420c
TT
110162019-03-15 Tom Tromey <tom@tromey.com>
11017
11018 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11019
042d75e4
TT
110202019-03-15 Tom Tromey <tom@tromey.com>
11021
11022 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11023 unique_xmalloc_ptr.
11024 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11025 Update.
11026 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11027 (build_minimal_symbol_hash_tables)
11028 (minimal_symbol_reader::install): Update.
11029
db92718b
TT
110302019-03-15 Tom Tromey <tom@tromey.com>
11031
11032 * symtab.c (create_demangled_names_hash): Update.
11033 (symbol_set_names): Update.
11034 * objfiles.h (struct objfile_per_bfd_storage)
11035 <demangled_names_hash>: Now an htab_up.
11036 * objfiles.c (objfile_per_bfd_storage): Simplify.
11037
d6797f46
TT
110382019-03-15 Tom Tromey <tom@tromey.com>
11039
11040 * objfiles.h (struct objfile_per_bfd_storage): Declare
11041 destructor.
11042 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11043 New.
11044 (get_objfile_bfd_data): Use new. Don't initialize
11045 language_of_main.
11046 (free_objfile_per_bfd_storage): Remove.
11047 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11048
741d7538
TT
110492019-03-15 Tom Tromey <tom@tromey.com>
11050
11051 * symfile.c (reread_symbols): Update.
11052 * objfiles.c (objfile::objfile): Update.
11053 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11054 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11055 comment.
11056 (minimal_symbol_reader::install): Update.
11057 (terminate_minimal_symbol_table): Remove.
11058 * jit.c (jit_object_close_impl): Update.
11059
788c80d1
TT
110602019-03-15 Tom Tromey <tom@tromey.com>
11061
11062 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11063 initializations.
11064
1b7a07cb
TT
110652019-03-15 Tom Tromey <tom@tromey.com>
11066
11067 * objfiles.h (struct objfile_per_bfd_storage)
11068 <demangled_hash_languages>: Now a bitset.
11069 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11070 (lookup_minimal_symbol): Update.
11071
3db066bc
TT
110722019-03-15 Tom Tromey <tom@tromey.com>
11073
11074 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11075 Don't return the symbol.
11076 * coffread.c (record_minimal_symbol): Use record_full.
11077
3fff2c37
EZ
110782019-03-14 Eli Zaretskii <eliz@gnu.org>
11079
11080 The MS-Windows port of ncurses fails to switch to a color pair if
11081 one or both of the colors are the implicit default colors. This
11082 change records the default colors when TUI is initialized, and
11083 then specifies them explicitly when a color pair uses the default
11084 colors. This allows color styling in TUI mode on MS-Windows.
11085
11086 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11087 ncurses_norm_attr.
11088 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11089 colors in ncurses_norm_attr.
11090 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11091 "none", replace it with the default color recorded in
11092 ncurses_norm_attr.
11093
3b336828
TT
110942019-03-14 Tom Tromey <tromey@adacore.com>
11095
11096 * source-cache.h (class source_cache) <get_source_lines>: Return
11097 std::string.
11098 * source-cache.c (source_cache::extract_lines): Handle case where
11099 first_pos==npos. Return std::string.
11100 (source_cache::get_source_lines): Update.
11101
d085f989
TT
111022019-03-14 Tom Tromey <tromey@adacore.com>
11103
11104 * NEWS: Add item for "style sources" commands.
11105 * source-cache.c (source_cache::get_source_lines): Check
11106 source_styling.
11107 * cli/cli-style.c (source_styling): New global.
11108 (_initialize_cli_style): Add "style sources" commands.
11109 (show_style_sources): New function.
11110 * cli/cli-style.h (source_styling): Declare.
11111
6f11e682
TT
111122019-03-14 Pedro Alves <palves@redhat.com>
11113 Tom Tromey <tromey@adacore.com>
11114
11115 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11116 * tui/tui-winsource.c (tui_refill_source_window): New function,
11117 from...
11118 (tui_horizontal_source_scroll): ... here. Move some logic.
11119 * cli/cli-style.c (set_style_enabled): Notify new observable.
11120 * tui/tui-hooks.c (tui_redisplay_source): New function.
11121 (tui_attach_detach_observers): Attach or detach
11122 tui_redisplay_source.
11123 * observable.h (source_styling_changed): New observable.
11124 * observable.c: Define source_styling_changed observable.
11125
a068643d
TT
111262019-03-13 Tom Tromey <tromey@adacore.com>
11127
11128 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11129 (i386_gnu_nat_target::store_registers): Update.
11130 * target-debug.h (target_debug_print_std_string): New macro.
11131 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11132 * windows-tdep.c (display_one_tib): Update.
11133 * tui/tui-stack.c (tui_make_status_line): Update.
11134 * top.c (print_inferior_quit_action): Update.
11135 * thread.c (thr_try_catch_cmd): Update.
11136 (add_thread_with_info): Update.
11137 (thread_target_id_str): Update.
11138 (thr_try_catch_cmd): Update.
11139 (thread_command): Update.
11140 (thread_find_command): Update.
11141 * record-btrace.c (record_btrace_target::info_record)
11142 (record_btrace_resume_thread, record_btrace_target::resume)
11143 (record_btrace_cancel_resume, record_btrace_step_thread)
11144 (record_btrace_target::wait, record_btrace_target::wait)
11145 (record_btrace_target::wait, record_btrace_target::stop): Update.
11146 * progspace.c (print_program_space): Update.
11147 * process-stratum-target.c
11148 (process_stratum_target::thread_address_space): Update.
11149 * linux-fork.c (linux_fork_mourn_inferior)
11150 (detach_checkpoint_command, info_checkpoints_command)
11151 (linux_fork_context): Update.
11152 (linux_fork_detach): Update.
11153 (class scoped_switch_fork_info): Update.
11154 (delete_checkpoint_command): Update.
11155 * infrun.c (follow_fork_inferior): Update.
11156 (follow_fork_inferior): Update.
11157 (proceed_after_vfork_done): Update.
11158 (handle_vfork_child_exec_or_exit): Update.
11159 (follow_exec): Update.
11160 (displaced_step_prepare_throw): Update.
11161 (displaced_step_restore): Update.
11162 (start_step_over): Update.
11163 (resume_1): Update.
11164 (clear_proceed_status_thread): Update.
11165 (proceed): Update.
11166 (print_target_wait_results): Update.
11167 (do_target_wait): Update.
11168 (context_switch): Update.
11169 (stop_all_threads): Update.
11170 (restart_threads): Update.
11171 (finish_step_over): Update.
11172 (handle_signal_stop): Update.
11173 (switch_back_to_stepped_thread): Update.
11174 (keep_going_pass_signal): Update.
11175 (print_exited_reason): Update.
11176 (normal_stop): Update.
11177 * inferior.c (inferior_pid_to_str): Change return type.
11178 (print_selected_inferior): Update.
11179 (add_inferior): Update.
11180 (detach_inferior): Update.
11181 * dummy-frame.c (fprint_dummy_frames): Update.
11182 * dcache.c (dcache_info_1): Update.
11183 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11184 (btrace_fetch, btrace_clear): Update.
11185 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11186 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11187 type.
11188 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11189 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11190 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11191 * gdbarch.c, gdbarch.h: Rebuild.
11192 * gdbarch.sh (core_pid_to_str): Change return type.
11193 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11194 return type.
11195 (windows_nat_target::pid_to_str): Change return type.
11196 (windows_delete_thread): Update.
11197 (windows_nat_target::attach): Update.
11198 (windows_nat_target::files_info): Update.
11199 * target-delegates.c: Rebuild.
11200 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11201 return type.
11202 (sol_thread_target::pid_to_str): Change return type.
11203 * remote.c (class remote_target) <pid_to_str>: Change return
11204 type.
11205 (remote_target::pid_to_str): Change return type.
11206 (extended_remote_target::attach, remote_target::remote_stop_ns)
11207 (remote_target::remote_notif_remove_queued_reply)
11208 (remote_target::push_stop_reply, remote_target::disable_btrace):
11209 Update.
11210 (extended_remote_target::attach): Update.
11211 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11212 type.
11213 (gdbsim_target::pid_to_str): Change return type.
11214 * ravenscar-thread.c (struct ravenscar_thread_target)
11215 <pid_to_str>: Change return type.
11216 (ravenscar_thread_target::pid_to_str): Change return type.
11217 * procfs.c (class procfs_target) <pid_to_str>: Change return
11218 type.
11219 (procfs_target::pid_to_str): Change return type.
11220 (procfs_target::attach): Update.
11221 (procfs_target::detach): Update.
11222 (procfs_target::fetch_registers): Update.
11223 (procfs_target::store_registers): Update.
11224 (procfs_target::wait): Update.
11225 (procfs_target::files_info): Update.
11226 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11227 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11228 return type.
11229 (nto_procfs_target::pid_to_str): Change return type.
11230 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11231 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11232 return type.
11233 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11234 (exit_lwp): Update.
11235 (attach_proc_task_lwp_callback, get_detach_signal)
11236 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11237 (linux_nat_target::resume, wait_lwp, stop_callback)
11238 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11239 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11240 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11241 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11242 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11243 type.
11244 (inf_ptrace_target::attach): Update.
11245 (inf_ptrace_target::files_info): Update.
11246 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11247 type.
11248 (go32_nat_target::pid_to_str): Change return type.
11249 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11250 (gnu_nat_target::wait): Update.
11251 (gnu_nat_target::wait): Update.
11252 (gnu_nat_target::resume): Update.
11253 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11254 (fbsd_nat_target::wait): Update.
11255 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11256 type.
11257 (darwin_nat_target::attach): Update.
11258 * corelow.c (class core_target) <pid_to_str>: Change return type.
11259 (core_target::pid_to_str): Change return type.
11260 * target.c (normal_pid_to_str): Change return type.
11261 (default_pid_to_str): Likewise.
11262 (target_pid_to_str): Change return type.
11263 (target_translate_tls_address): Update.
11264 (target_announce_detach): Update.
11265 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11266 return type.
11267 (bsd_uthread_target::pid_to_str): Change return type.
11268 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11269 type.
11270 (bsd_kvm_target::pid_to_str): Change return type.
11271 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11272 return type.
11273 (aix_thread_target::pid_to_str): Change return type.
11274 * target.h (struct target_ops) <pid_to_str>: Change return type.
11275 (target_pid_to_str, normal_pid_to_str): Likewise.
11276 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11277 type.
11278 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11279 type.
11280 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11281 return type.
11282 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11283 type.
11284 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11285 type.
11286 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11287 return type.
11288
b4be1b06
SM
112892019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11290
11291 * NEWS: Mention that the new default MI version is 3. Mention
11292 changes to the output of commands and events that deal with
11293 multi-location breakpoints.
11294 * breakpoint.c: Include "mi/mi-out.h".
11295 (print_one_breakpoint): Change output syntax if using MI version
11296 >= 3.
11297 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11298 New.
11299 (mi_multi_location_breakpoint_output_fixed): New.
11300 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11301 (mi_cmd_fix_multi_location_breakpoint_output): New.
11302 (mi_multi_location_breakpoint_output_fixed): New.
11303 * mi/mi-cmds.c (mi_cmds): Register command
11304 -fix-multi-location-breakpoint-output.
11305 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11306 interpreter "mi".
11307
8e5e5494
SM
113082019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11311 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11312 instantiate mi_ui_out based on interpreter name.
11313 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11314 * mi/mi-main.c (mi_load_progress): Likewise.
11315
197df35e
JB
113162019-03-12 John Baldwin <jhb@FreeBSD.org>
11317
11318 * NEWS: Combine separate "New targets" sections for 8.3.
11319
8399425f
JB
113202019-03-12 John Baldwin <jhb@FreeBSD.org>
11321
11322 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11323 (ppcfbsd_init_abi): Install gdbarch
11324 "fetch_tls_load_module_address" and "get_thread_local_address"
11325 methods.
11326
b0f87ed0
JB
113272019-03-12 John Baldwin <jhb@FreeBSD.org>
11328
11329 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11330 (riscv_fbsd_init_abi): Install gdbarch
11331 "fetch_tls_load_module_address" and "get_thread_local_address"
11332 methods.
11333
ce25aa57
JB
113342019-03-12 John Baldwin <jhb@FreeBSD.org>
11335
11336 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11337 (i386fbsd_init_abi): Install gdbarch
11338 "fetch_tls_load_module_address" and "get_thread_local_address"
11339 methods.
11340
f5424cfa
JB
113412019-03-12 John Baldwin <jhb@FreeBSD.org>
11342
11343 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11344 (amd64fbsd_init_abi): Install gdbarch
11345 "fetch_tls_load_module_address" and "get_thread_local_address"
11346 methods.
11347
945f3901
JB
113482019-03-12 John Baldwin <jhb@FreeBSD.org>
11349
11350 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11351 (struct fbsd_pspace_data): New type.
11352 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11353 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11354 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11355 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11356 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11357
ef0bd204
JB
113582019-03-12 John Baldwin <jhb@FreeBSD.org>
11359
11360 * gdbtypes.c (lookup_struct_elt): New function.
11361 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11362 * gdbtypes.h (struct struct_elt): New type.
11363 (lookup_struct_elt): New prototype.
11364
36c53a02
JB
113652019-03-12 John Baldwin <jhb@FreeBSD.org>
11366
11367 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11368 remove disabled code block.
11369
6e056c81
JB
113702019-03-12 John Baldwin <jhb@FreeBSD.org>
11371
11372 * gdbarch.sh (get_thread_local_address): New method.
11373 * gdbarch.h, gdbarch.c: Regenerate.
11374 * target.c (target_translate_tls_address): Use
11375 gdbarch_get_thread_local_address if present instead of
11376 target::get_thread_local_address.
11377
cd250a18
JB
113782019-03-12 John Baldwin <jhb@FreeBSD.org>
11379
11380 * target.h (target::get_thread_local_address): Update comment.
11381
df22c1e5
JB
113822019-03-12 John Baldwin <jhb@FreeBSD.org>
11383
11384 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11385 objfile->separate_debug_objfile_backlink if not NULL.
11386
dd6876c9
JB
113872019-03-12 John Baldwin <jhb@FreeBSD.org>
11388
11389 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11390 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11391 (amd64bsd_store_inferior_registers): Likewise.
11392 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11393 Enable segment base registers.
11394 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11395 PT_GETFSBASE and PT_GETGSBASE.
11396 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11397 PT_SETGSBASE.
11398 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11399 segment base registers.
11400 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11401
1163a4b7
JB
114022019-03-12 John Baldwin <jhb@FreeBSD.org>
11403
11404 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11405 Update calls to i386_target_description to add 'segments'
11406 parameter.
11407 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11408 add segment base registers.
11409 * arch/i386.c (i386_create_target_description): Add 'segments'
11410 parameter to enable segment base registers.
11411 * arch/i386.h (i386_create_target_description): Likewise.
11412 * features/i386/32bit-segments.xml: New file.
11413 * features/i386/32bit-segments.c: Generate.
11414 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11415 call to i386_target_description to add 'segments' parameter.
11416 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11417 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11418 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11419 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11420 if feature is present.
11421 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11422 Add 'segments' parameter to call to i386_target_description.
11423 (i386_target_description): Add 'segments' parameter to enable
11424 segment base registers.
11425 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11426 to call to i386_target_description.
11427 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11428 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11429 Define I386_NUM_REGS.
11430 (i386_target_description): Add 'segments' parameter to enable
11431 segment base registers.
11432
3a350822
EZ
114332019-03-12 Eli Zaretskii <eliz@gnu.org>
11434
11435 PR/24325
11436 * source-cache.c: #undef open and close, to avoid unresolved
11437 externals during linking.
11438
ffdd69cf
TT
114392019-03-12 Tom Tromey <tromey@adacore.com>
11440
11441 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11442 const. Add initializers.
11443 (_initialize_remote): Don't initialize ptid globals.
11444
ec148c57
PA
114452019-03-12 Pedro Alves <palves@redhat.com>
11446
11447 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11448
32764270
PA
114492019-03-12 Pedro Alves <palves@redhat.com>
11450
11451 * cp-name-parser.y (main): Remove unused 'len' variable.
11452
17547186
TT
114532019-03-12 Tom Tromey <tromey@adacore.com>
11454
11455 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11456 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11457
d3a70e03
TT
114582019-03-12 Tom Tromey <tromey@adacore.com>
11459
11460 * linux-nat.c (iterate_over_lwps): Update.
11461 (stop_callback): Remove parameter.
11462 (stop_wait_callback, detach_callback, resume_set_callback)
11463 (select_singlestep_lwp_callback, set_ignore_sigint)
11464 (status_callback, resumed_callback, resume_clear_callback)
11465 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11466 data parameter.
11467 (linux_nat_target::detach, linux_nat_target::resume)
11468 (linux_stop_and_wait_all_lwps, select_event_lwp)
11469 (linux_nat_filter_event, linux_nat_wait_1)
11470 (linux_nat_target::kill, linux_nat_target::stop)
11471 (linux_nat_target::stop): Update.
11472 (linux_nat_resume_callback): Change type.
11473 (resume_stopped_resumed_lwps, count_events_callback)
11474 (select_event_lwp_callback): Likewise.
11475 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11476 * arm-linux-nat.c (struct update_registers_data): Remove.
11477 (update_registers_callback): Change type.
11478 (arm_linux_insert_hw_breakpoint1): Update.
11479 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11480 parameter.
11481 (x86_linux_dr_set_addr): Update.
11482 (x86_linux_dr_set_control): Update.
11483 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11484 (iterate_over_lwps): Use gdb::function_view.
11485 * nat/aarch64-linux-hw-point.c (struct
11486 aarch64_dr_update_callback_param): Remove.
11487 (debug_reg_change_callback): Change type.
11488 (aarch64_notify_debug_reg_change): Update.
11489 * s390-linux-nat.c (s390_refresh_per_info): Update.
11490
82cb27ff
TT
114912019-03-11 Tom Tromey <tromey@adacore.com>
11492
11493 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11494 redundant assignment to "this_cu".
11495
568c0683
SM
114962019-03-08 Simon Marchi <simon.marchi@efficios.com>
11497
11498 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11499
f09ce22d
SM
115002019-03-08 Simon Marchi <simon.marchi@efficios.com>
11501
11502 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11503 from...
11504 (rank_one_type): ... this.
11505
595f96a9
SM
115062019-03-08 Simon Marchi <simon.marchi@efficios.com>
11507
11508 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11509 from...
11510 (rank_one_type): ... this.
11511
2598a94b
SM
115122019-03-08 Simon Marchi <simon.marchi@efficios.com>
11513
11514 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11515 from...
11516 (rank_one_type): ... this.
11517
7f17b20d
SM
115182019-03-08 Simon Marchi <simon.marchi@efficios.com>
11519
11520 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11521 from...
11522 (rank_one_type): ... this.
11523
2c509035
SM
115242019-03-08 Simon Marchi <simon.marchi@efficios.com>
11525
11526 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11527 from...
11528 (rank_one_type): ... this.
11529
0dd322dc
SM
115302019-03-08 Simon Marchi <simon.marchi@efficios.com>
11531
11532 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11533 from...
11534 (rank_one_type): ... this.
11535
41ea4728
SM
115362019-03-08 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11539 from...
11540 (rank_one_type): ... this.
11541
793cd1d2
SM
115422019-03-08 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11545 from...
11546 (rank_one_type): ... this.
11547
34910087
SM
115482019-03-08 Simon Marchi <simon.marchi@efficios.com>
11549
11550 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11551 from...
11552 (rank_one_type): ... this.
11553
f1f832d6
SM
115542019-03-08 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11557 from...
11558 (rank_one_type): ... this.
11559
b9f4512f
SM
115602019-03-08 Simon Marchi <simon.marchi@efficios.com>
11561
11562 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11563 from...
11564 (rank_one_type): ... this.
11565
9293fc63
SM
115662019-03-08 Simon Marchi <simon.marchi@efficios.com>
11567
11568 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11569 from...
11570 (rank_one_type): ... this.
11571
e3abbe7e
PW
115722019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11573
11574 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11575 inferior-events' shows the example events.
11576
e4adb939
EZ
115772019-03-08 Eli Zaretskii <eliz@gnu.org>
11578
11579 Support styling on native MS-Windows console
11580
11581 PR/24315
11582 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11583 on MS-Windows if $TERM is not defined.
11584
11585 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11586
11587 * posix-hdep.c (gdb_console_fputs):
11588 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11589 functions.
11590 * ui-file.h (gdb_console_fputs): Add prototype.
11591
11592 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11593 back to fputs only if the former returns zero.
11594
25629dfd
TT
115952019-03-07 Tom Tromey <tom@tromey.com>
11596
11597 * symmisc.c (print_symbol_bcache_statistics): Update.
11598 (print_objfile_statistics): Update.
11599 * symfile.c (allocate_symtab): Update.
11600 * stabsread.c: Don't include bcache.h.
11601 * psymtab.h (struct psymbol_bcache): Don't declare.
11602 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11603 (psymbol_bcache_init, psymbol_bcache_free)
11604 (psymbol_bcache_get_bcache): Don't declare.
11605 * psymtab.c (struct psymbol_bcache): Remove.
11606 (psymtab_storage::psymtab_storage): Update.
11607 (psymtab_storage::~psymtab_storage): Update.
11608 (psymbol_bcache_init, psymbol_bcache_free)
11609 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11610 (add_psymbol_to_bcache): Update.
11611 (allocate_psymtab): Update.
11612 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11613 macro_cache>: No longer pointers.
11614 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11615 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11616 * macrotab.c (macro_bcache): Update.
11617 * macroexp.c: Don't include bcache.h.
11618 * gdbtypes.c (check_types_worklist): Update.
11619 (types_deeply_equal): Remove TRY/CATCH. Update.
11620 * elfread.c (elf_symtab_read): Update.
11621 * dwarf2read.c: Don't include bcache.h.
11622 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11623 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11624 (print_bcache_statistics, bcache_memory_used): Don't declare.
11625 (struct bcache): Move from bcache.c. Add constructor, destructor,
11626 methods. Rename all data members.
11627 * bcache.c (struct bcache): Move to bcache.h.
11628 (bcache::expand_hash_table): Rename from expand_hash_table.
11629 (bcache): Remove.
11630 (bcache::insert): Rename from bcache_full.
11631 (bcache::compare): Rename from bcache_compare.
11632 (bcache_xmalloc): Remove.
11633 (bcache::~bcache): Rename from bcache_xfree.
11634 (bcache::print_statistics): Rename from print_bcache_statistics.
11635 (bcache::memory_used): Rename from bcache_memory_used.
11636
fe726667
PA
116372019-03-07 Pedro Alves <palves@redhat.com>
11638
11639 * infrun.c (normal_stop): Also check for
11640 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11641
7584bb30
AB
116422019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * f-lang.c (value_from_host_double): Moved to...
11645 * value.c (value_from_host_double): ...here.
11646 * value.h (value_from_host_double): Declare.
11647 * guile/scm-math.c (vlscm_convert_typed_number): Use
11648 value_from_host_double.
11649 (vlscm_convert_number): Likewise.
11650 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11651 * python/py-value.c (convert_value_from_python): Likewise.
11652
a7b1986e
TT
116532019-03-06 Tom Tromey <tom@tromey.com>
11654
11655 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11656
0ccf4211
TT
116572019-03-06 Tom Tromey <tom@tromey.com>
11658
11659 * utils.h (free_current_contents): Don't declare.
11660 * utils.c (free_current_contents): Remove.
11661
fe7b42e5
TT
116622019-03-06 Tom Tromey <tom@tromey.com>
11663
11664 * top.c (quit_force): Update.
11665 * main.c (captured_command_loop): Update.
11666 * common/new-op.c (operator new): Update.
11667 * common/common-exceptions.c (struct catcher)
11668 <save_cleanup_chain>: Remove member.
11669 (exceptions_state_mc_init): Update.
11670 (exception_try_scope_entry): Return nullptr.
11671 (exception_try_scope_exit, exception_rethrow)
11672 (throw_exception_sjlj, throw_exception_cxx): Update.
11673 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11674 (all_cleanups, do_cleanups, discard_cleanups)
11675 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11676 (restore_cleanups, restore_final_cleanups): Don't declare.
11677 (do_final_cleanups): Remove parameter.
11678 * common/cleanups.c (cleanup_chain, make_cleanup)
11679 (make_cleanup_dtor, all_cleanups, do_cleanups)
11680 (discard_my_cleanups, discard_cleanups)
11681 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11682 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11683 (null_cleanup): Remove.
11684 (do_final_cleanups): Remove parameter.
11685
c6321f19
TT
116862019-03-06 Tom Tromey <tom@tromey.com>
11687
11688 * remote.c (remote_target::remote_parse_stop_reply): Use
11689 unique_xmalloc_ptr.
11690
61b30099
TT
116912019-03-06 Tom Tromey <tom@tromey.com>
11692
11693 * stabsread.c (struct stabs_field_info): Rename from field_info.
11694 <list, fnlist>: Add initializers.
11695 <obstack>: New member.
11696 (read_member_functions, read_struct_fields, read_baseclasses):
11697 Allocate on obstack. Don't use cleanups.
11698 (read_one_struct_field, read_member_functions, read_struct_fields)
11699 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11700 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11701 (read_struct_type): Update.
11702
6cceac94
TT
117032019-03-06 Tom Tromey <tom@tromey.com>
11704
11705 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11706 * common/filestuff.h (make_cleanup_close): Don't declare.
11707 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11708 Remove.
11709
72412762
TT
117102019-03-06 Tom Tromey <tom@tromey.com>
11711
11712 * solib-aix.c: Use make_scope_exit.
11713
2b6ff1c0
TT
117142019-03-06 Tom Tromey <tom@tromey.com>
11715
11716 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11717 Use make_scope_exit.
11718
d01c5877
TT
117192019-03-06 Tom Tromey <tom@tromey.com>
11720
11721 * solib-svr4.c (disable_probes_interface): Remove parameter.
11722 (svr4_handle_solib_event): Use make_scope_exit.
11723
32603266
TT
117242019-03-06 Tom Tromey <tom@tromey.com>
11725
11726 * remote.c (struct stop_reply_deleter): Remove.
11727 (stop_reply_up): Update.
11728 (struct stop_reply): Derive from notif_event. Don't typedef.
11729 <regcache>: Now a std::vector.
11730 (stop_reply_xfree): Remove.
11731 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11732 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11733 (remote_target::discard_pending_stop_replies): Use delete.
11734 (remote_target::remote_parse_stop_reply): Update.
11735 (remote_target::process_stop_reply): Update.
11736 * remote-notif.h (struct notif_event): Add virtual destructor.
11737 Remove "dtr" member.
11738 (struct notif_client) <alloc_event>: Return a unique_ptr.
11739 (notif_event_xfree): Don't declare.
11740 (notif_event_up): New typedef.
11741 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11742 (notif_event_xfree, do_notif_event_xfree): Remove.
11743 (remote_notif_state_xfree): Update.
11744
9799571e
TT
117452019-03-06 Tom Tromey <tom@tromey.com>
11746
11747 * infrun.c (displaced_step_clear_cleanup): Now a
11748 forward_scope_exit type.
11749 (displaced_step_prepare_throw): Update.
11750 (displaced_step_fixup): Update.
11751
09e3c4ca
TT
117522019-03-06 Tom Tromey <tom@tromey.com>
11753
11754 * inferior.h (class inferior): Update comment.
11755 * gdbthread.h (class thread_info): Update comment.
11756
e2a03548
TT
117572019-03-06 Joel Brobecker <brobecker@adacore.com>
11758 Tom Tromey <tom@tromey.com>
11759
11760 * stabsread.h (struct stab_section_list): Remove.
11761 (coffstab_build_psymtabs): Update.
11762 * dbxread.c (symbuf_sections): Now a std::vector.
11763 (sect_idx): New global.
11764 (fill_symbuf): Update.
11765 (coffstab_build_psymtabs): Change type of stabsects parameter.
11766 Update.
11767 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11768 std::vector.
11769 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11770 (coff_locate_sections): Update.
11771 (coff_symfile_read): Remove cleanups. Update.
11772 (init_stringtab): Add storage parameter.
11773 (free_stringtab, free_stringtab_cleanup): Remove.
11774 (init_lineno): Add storage parameter.
11775 (free_linetab, free_linetab_cleanup): Remove.
11776
b7e60d85
PA
117772019-03-06 Pedro Alves <palves@redhat.com>
11778
11779 * linux-fork.c (fork_info::clobber_regs): Delete.
11780 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11781 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11782 comment. Adjust.
11783 (scoped_switch_fork_info::scoped_switch_fork_info)
11784 (checkpoint_command, linux_fork_context): Adjust
11785 fork_save_infrun_state calls.
11786
e52c971f
PA
117872019-03-06 Pedro Alves <palves@redhat.com>
11788
11789 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11790 (inf_has_multiple_threads): Return 'bool' and rewrite using
11791 inferior_info::threads().
11792
06974e6c
PA
117932019-03-06 Pedro Alves <palves@redhat.com>
11794
11795 * linux-fork.c: Include <list>.
11796 (fork_list): Now a std::list instance.
11797 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11798 (forks_exist_p, find_last_fork): Adjust.
11799 (new_fork): Delete.
11800 (one_fork_p): New.
11801 (add_fork): Adjust.
11802 (free_fork): Delete, folded into fork_info::~fork_info().
11803 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11804 Adjust.
11805 (init_fork_list): Delete.
11806 (linux_fork_killall, linux_fork_mourn_inferior)
11807 (linux_fork_detach, info_checkpoints_command): Adjust.
11808 (_initialize_linux_fork): No longer call init_fork_list.
11809
72f31aea
PA
118102019-03-06 Pedro Alves <palves@redhat.com>
11811
11812 * linux-fork.c (new_fork): New, split out of ...
11813 (add_fork): ... this. Return void. Move "first fork" special
11814 case from here, to ...
11815 (checkpoint_command): ... here.
11816 * linux-linux.h (add_fork): Return void.
11817
efbecbc1
AB
118182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11821
0841c79a
AB
118222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11823 Chris January <chris.january@arm.com>
11824 David Lecomber <david.lecomber@arm.com>
11825
11826 * f-exp.y: New token, UNOP_INTRINSIC.
11827 (exp): New pattern using UNOP_INTRINSIC token.
11828 (f77_keywords): Add 'abs' keyword.
11829 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11830 (value_from_host_double): New function.
11831 (evaluate_subexp_f): Support UNOP_ABS.
11832
4a270568
AB
118332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11834
11835 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11836 types.
11837
067630bd
AB
118382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11839
11840 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11841 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11842 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11843
3be47f7a
AB
118442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11845
11846 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11847
4d00f5d8
AB
118482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11849 Chris January <chris.january@arm.com>
11850
11851 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11852 * f-exp.y: Define 'KIND' token.
11853 (exp): New pattern for KIND expressions.
11854 (ptype): Handle types with a kind extension.
11855 (direct_abs_decl): Extend to spot kind extensions.
11856 (f77_keywords): Add 'kind' to the list.
11857 (push_kind_type): New function.
11858 (convert_to_kind_type): New function.
11859 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11860 * parse.c (operator_length_standard): Likewise.
11861 * parser-defs.h (enum type_pieces): Add tp_kind.
11862 * std-operator.def: Add UNOP_KIND.
11863
e454224f
AB
118642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11865
11866 * f-exp.y (f_parse): Set yydebug.
11867
9dad4a58
AB
118682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * f-lang.c (evaluate_subexp_f): New function.
11871 (exp_descriptor_f): New global.
11872 (f_language_defn): Use exp_descriptor_f instead of
11873 exp_descriptor_standard.
11874
c8f91604
AB
118752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * f-exp.y (struct token): Add comments.
11878 (dot_ops): Remove uppercase versions and the end marker.
11879 (f77_keywords): Likewise.
11880 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11881 entries in the dot_ops array are case insensitive, and use
11882 strncasecmp to compare strings. Also some whitespace cleanup in
11883 this area. Similar for the f77_keywords array, except entries in
11884 this list might be case sensitive.
11885
dd9f2c76
AB
118862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11887
11888 * f-exp.y (struct f77_boolean_val): Add comments.
11889 (boolean_values): Remove uppercase versions, and end marker.
11890 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11891 and use strncasecmp to achieve case insensitivity. Additionally,
11892 perform whitespace cleanup around this code.
11893
67a3048c
TT
118942019-03-06 Tom Tromey <tromey@adacore.com>
11895
11896 * remote-sim.c (gdbsim_target_open): Use result of
11897 gdb_argv::release.
11898
aa3cfbda
RB
118992019-03-06 Richard Bunt <richard.bunt@arm.com>
11900 Dirk Schubert <dirk.schubert@arm.com>
11901 Chris January <chris.january@arm.com>
11902
11903 * eval.c (evaluate_subexp_standard): Call Fortran argument
11904 wrapping logic.
11905 * f-lang.c (struct value): A value which can be passed into a
11906 Fortran function call.
11907 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11908 where appropriate.
11909 (struct type): Value ready for a Fortran function call.
11910 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11911 is needed.
11912 * f-lang.h (fortran_argument_convert): Declaration.
11913 (fortran_preserve_arg_pointer): Declaration.
11914 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11915
ea38e5df
TT
119162019-03-05 Tom Tromey <tromey@adacore.com>
11917
11918 * python/py-prettyprint.c (print_string_repr): Remove #if.
11919 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11920
06b5b831
TT
119212019-03-05 Tom Tromey <tromey@adacore.com>
11922
11923 * target.c (the_dummy_target): Move later. Change type to
11924 "dummy_target".
11925 (initialize_targets): Don't initialize the_dummy_target.
11926
edbd9e45
TT
119272019-03-05 Tom Tromey <tromey@adacore.com>
11928
11929 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11930 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11931
c119e040
TT
119322019-03-05 Tom Tromey <tromey@adacore.com>
11933
11934 * windows-nat.c (windows_nat_target::attach)
11935 (windows_nat_target::detach): Don't call gdb_flush.
11936 * valprint.c (generic_val_print, val_print, val_print_string):
11937 Don't call gdb_flush.
11938 * utils.c (defaulted_query): Don't call gdb_flush.
11939 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11940 * target.c (target_announce_detach): Don't call gdb_flush.
11941 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11942 * remote.c (extended_remote_target::attach): Don't call
11943 gdb_flush.
11944 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11945 * printcmd.c (do_examine): Don't call gdb_flush.
11946 (info_display_command): Don't call gdb_flush.
11947 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11948 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11949 * memattr.c (info_mem_command): Don't call gdb_flush.
11950 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11951 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11952 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11953 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11954 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11955 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11956 (gnu_nat_target::detach): Don't call gdb_flush.
11957 * f-valprint.c (f_val_print): Don't call gdb_flush.
11958 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11959 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11960 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11961 gdb_flush.
11962 * c-valprint.c (c_val_print): Don't call gdb_flush.
11963 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11964
895dafa6
TT
119652019-03-05 Tom Tromey <tromey@adacore.com>
11966
11967 * varobj.c (update_dynamic_varobj_children): Update.
11968 (install_default_visualizer): Use reset, not release.
11969 * value.c (set_internalvar): Update.
11970 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11971 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11972 ATTRIBUTE_UNUSED_RESULT.
11973
88a774b9
TT
119742019-03-05 Tom Tromey <tromey@adacore.com>
11975
11976 * remote.c (class scoped_remote_fd) <release>: Add
11977 ATTRIBUTE_UNUSED_RESULT.
11978
4e4a8b93
TT
119792019-03-05 Tom Tromey <tromey@adacore.com>
11980
11981 * macroexp.c (struct macro_buffer) <release>: Add
11982 ATTRIBUTE_UNUSED_RESULT.
11983
083eef1f
TT
119842019-03-05 Tom Tromey <tromey@adacore.com>
11985
11986 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11987 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11988 ATTRIBUTE_UNUSED_RESULT.
11989
3cabd438
TT
119902019-03-05 Tom Tromey <tromey@adacore.com>
11991
11992 * common/scoped_fd.h (class scoped_fd) <release>: Add
11993 ATTRIBUTE_UNUSED_RESULT.
11994
41e3300a
TT
119952019-03-05 Tom Tromey <tromey@adacore.com>
11996
11997 * parser-defs.h (struct parser_state) <release>: Add
11998 ATTRIBUTE_UNUSED_RESULT.
11999
18cb7c9f
TT
120002019-03-05 Tom Tromey <tromey@adacore.com>
12001
12002 * utils.h (class gdb_argv) <release>: Add
12003 ATTRIBUTE_UNUSED_RESULT.
12004 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12005
41fa577f
EZ
120062019-03-02 Eli Zaretskii <eliz@gnu.org>
12007
a6a4b2c6
EZ
12008 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12009 for-loop range, to avoid compiler warnings.
12010
12011 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12012 avoid compiler warnings about unused variables.
12013
742a7df5
EZ
12014 * NEWS: Mention end of support for native debugging on MS-Windows
12015 before XP.
12016
41fa577f
EZ
12017 PR gdb/24292
12018 * common/netstuff.c:
12019 * gdbserver/gdbreplay.c
12020 * gdbserver/remote-utils.c:
12021 * ser-tcp.c:
12022 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12023 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12024 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12025 'getaddrinfo' and 'freeaddrinfo' were not available before
12026 Windows XP, and mingw.org's MinGW headers by default define
12027 _WIN32_WINNT to 0x500.
12028
827f438f
GB
120292019-03-01 Gary Benson <gbenson@redhat.com>
12030
12031 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12032
92137da0
RO
120332019-02-28 Brian Vandenberg <phantall@gmail.com>
12034 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12035
12036 PR gdb/8527
12037 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12038 set_sigint_trap, clear_sigint_trap.
12039
799efbe8
PW
120402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12041
12042 * target.c (target_detach): Clear the regcache and the
12043 frame cache.
12044
8ed25214
PA
120452019-02-27 Pedro Alves <palves@redhat.com>
12046
12047 * utils.c (set_screen_size): When we cap the height/width sizes,
12048 tweak the corresponding command variable to show "unlimited":
12049
23031e31
SJ
120502019-02-27 Saagar Jha <saagar@saagarjha.com>
12051 Pedro Alves <palves@redhat.com>
12052
12053 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12054 before calling rl_set_screen_size.
12055
6c28e44a
TT
120562019-02-27 Tom Tromey <tromey@adacore.com>
12057
12058 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12059 define.
12060 * python/py-value.c: Remove Python 2.4 workaround.
12061 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12062 workaround.
12063 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12064 Python 2.4 workaround.
12065 * python/python-internal.h: Remove Python 2.4 comment.
12066 (Py_ssize_t): Don't define.
12067 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12068 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12069 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12070 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12071 * python/python.c (do_start_initialization): Remove Python 2.4
12072 workaround.
12073 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12074 (print_children): Remove Python 2.4 workaround.
12075 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12076 workaround.
12077 (CHARBUFFERPROC_NAME): Remove.
12078 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12079 Python 2.4 workaround.
12080
2c3fc25d 120812019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12082
2c3fc25d
KB
12083 * NEWS: Note minimum Python version.
12084
6ca62222
KB
120852019-02-27 Kevin Buettner <kevinb@redhat.com>
12086
12087 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12088 code from these functions. Remove corresponding ifdefs. Use
12089 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12090 Remove gotos and target of gotos.
12091 (infpy_search_memory): Likewise.
12092
f4bc7d2c
AB
120932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12094
12095 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12096 (hppa_gdbarch_init): Don't register deleted functions with
12097 gdbarch.
12098
9734a586
AB
120992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12100
12101 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12102 (h8300_unwind_sp): Delete.
12103 (h8300_dummy_id): Delete.
12104 (h8300_gdbarch_init): Don't register deleted functions with
12105 gdbarch.
12106
68b867f3
AB
121072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12108
12109 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12110 (ft32_unwind_pc): Delete.
12111 (ft32_unwind_sp): Delete.
12112 (ft32_gdbarch_init): Don't register deleted functions with
12113 gdbarch.
12114
2fbe7ad0
AB
121152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12116
12117 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12118 (frv_unwind_pc): Delete.
12119 (frv_unwind_sp): Delete.
12120 (frv_gdbarch_init): Don't register deleted functions with
12121 gdbarch.
12122
76055cbe
AB
121232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12124
12125 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12126 (riscv_unwind_pc): Delete.
12127 (riscv_unwind_sp): Delete.
12128 (riscv_gdbarch_init): Don't register deleted functions with
12129 gdbarch.
12130
4133e5a1
AB
121312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12132
12133 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12134 (csky_unwind_pc): Delete.
12135 (csky_unwind_sp): Delete.
12136 (csky_gdbarch_init): Don't register deleted functions with
12137 gdbarch.
12138
8010f576
AB
121392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12142 (cris_unwind_pc): Delete.
12143 (cris_unwind_sp): Delete.
12144 (cris_gdbarch_init): Don't register deleted functions with
12145 gdbarch.
12146
b56bf084
AB
121472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12148
12149 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12150 (bfin_unwind_pc): Delete.
12151 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12152
a19a650f
AB
121532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12156 (arm_unwind_pc): Delete.
12157 (arm_unwind_sp): Delete.
12158 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12159
f8278c3c
AB
121602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12161
12162 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12163 (arc_unwind_pc): Delete.
12164 (arc_unwind_sp): Delete.
12165 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12166
480e46cf
AB
121672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12168
12169 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12170 (alpha_unwind_pc): Delete.
12171 (alpha_gdbarch_init): Don't register deleted functions with
12172 gdbarch.
12173
7a995095
AB
121742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12175
12176 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12177 (aarch64_unwind_pc): Delete.
12178 (aarch64_unwind_sp): Delete.
12179 (aarch64_gdbarch_init): Don't register deleted functions with
12180 gdbarch.
12181
bf9a735e
AB
121822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12183
12184 * gdbtypes.c (type_align): Don't consider static members when
12185 computing structure alignment.
12186
5561fc30
AB
121872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12188
12189 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12190 return 0 for other types.
12191 * arch-utils.c (default_type_align): Always return 0.
12192 * gdbarch.h: Regenerate.
12193 * gdbarch.sh (type_align): Extend comment.
12194 * gdbtypes.c (type_align): Add additional comments, always call
12195 gdbarch_type_align before applying the default rules.
12196 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12197 generic code will then apply a suitable default.
12198 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12199 types, return 0 for other types.
12200
9335e75a
JB
122012019-02-27 Joel Brobecker <brobecker@adacore.com>
12202
12203 * NEWS: Create a new section for the next release branch.
12204 Rename the section of the current branch, now that it has
12205 been cut.
12206
3d34d8de
JB
122072019-02-27 Joel Brobecker <brobecker@adacore.com>
12208
12209 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12210 * version.in: Bump version to 8.3.50.DATE-git.
12211
143420fb
SM
122122019-02-26 Simon Marchi <simon.marchi@efficios.com>
12213
12214 * aix-thread.c (ptid_cmp): Remove unused variable.
12215 (get_signaled_thread): Likewise.
12216 (store_regs_user_thread): Likewise.
12217 (store_regs_kernel_thread): Likewise.
12218 (fetch_regs_kernel_thread): Remove shadowed variable.
12219
172fb711
AB
122202019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12221
12222 * features/riscv/32bit-cpu.xml: Add register numbers.
12223 * features/riscv/32bit-fpu.c: Regenerate.
12224 * features/riscv/32bit-fpu.xml: Add register numbers.
12225 * features/riscv/64bit-cpu.xml: Add register numbers.
12226 * features/riscv/64bit-fpu.c: Regenerate.
12227 * features/riscv/64bit-fpu.xml: Add register numbers.
12228
26c89782
KB
122292019-02-26 Kevin Buettner <kevinb@redhat.com>
12230
af54ade9 12231 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12232 * python/py-value.c (convert_buffer_and_type_to_value): New
12233 function.
12234 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12235 Add support for handling an optional second argument. Call
12236 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12237 * python/python-internal.h (Py_buffer_deleter): New struct.
12238 (Py_buffer_up): New typedef.
12239
0f58c9e8
JB
122402019-02-25 John Baldwin <jhb@FreeBSD.org>
12241
12242 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12243 instead of releasing ownership.
12244
0a0f4c01
JR
122452019-02-25 Jordan Rupprecht <rupprecht@google.com>
12246
12247 * dwarf2read.c (open_and_init_dwp_file): Call
12248 elf_numsections instead of bfd_count_sections to initialize
12249 dwp_file->num_sections.
12250
cd5a152c
TT
122512019-02-25 Tom Tromey <tromey@adacore.com>
12252
12253 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12254
8a6a8513
SDJ
122552019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12256
12257 * gcore.in: Add '--readnever' option when invoking GDB.
12258
04dcda9c
SM
122592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12260
12261 * MAINTAINERS: Update my email address.
12262
07bc701d
SM
122632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12264
12265 * build-id.c (build_id_to_debug_bfd_1): New function.
12266 (build_id_to_debug_bfd): Look for separate debug file in
12267 sysroot.
12268
c6f4a5d0
AB
122692019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * gdbarch.sh: Update the copyright year range that is placed into
12272 generated files.
12273
9600246d
KS
122742019-02-22 Keith Seitz <keiths@redhat.com>
12275
12276 PR symtab/23853
12277 * linespec.c (create_sals_line_offset): Search for the default
12278 symtab's filename instead of its fullname.
12279
7557a514
AH
122802019-02-21 Alan Hayward <alan.hayward@arm.com>
12281
12282 * NEWS: Update style defaults.
12283
ee2bcb0c
AH
122842019-02-21 Alan Hayward <alan.hayward@arm.com>
12285
12286 * main.c (captured_main_1): Disable styling in batch mode.
12287
0c95f9ed
TT
122882019-02-20 Tom Tromey <tom@tromey.com>
12289
12290 * symtab.c (symtab_symbol_info): Fix typos.
12291
c763b894
TT
122922019-02-20 Tom Tromey <tromey@adacore.com>
12293
12294 * findcmd.c (_initialize_mem_search): Use upper case for
12295 metasyntactic variables.
12296
0ef8a082
AH
122972019-02-20 Alan Hayward <alan.hayward@arm.com>
12298
12299 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12300 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12301
6caa91b6
SM
123022019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12303
12304 * top.h (source_file_name): Change to std::string.
12305 * top.c (source_file_name): Likewise.
12306 (command_line_input): Adjust.
12307 * cli/cli-script.c (script_from_file): Adjust.
12308
98814c6c
TT
123092019-02-19 Tom Tromey <tromey@adacore.com>
12310
12311 * ravenscar-thread.c
12312 (ravenscar_thread_target::update_thread_list): Don't call
12313 ada_build_task_list.
12314 * ada-lang.h (ada_build_task_list): Don't declare.
12315 * ada-tasks.c (struct ada_tasks_inferior_data)
12316 <task_list_valid_p>: Now bool.
12317 (read_known_tasks, ada_task_list_changed)
12318 (ada_tasks_invalidate_inferior_data): Update.
12319 (read_known_tasks_array): Return bool.
12320 (read_known_tasks_list): Likewise.
12321 (read_known_tasks): Return void.
12322 (ada_build_task_list): Now static.
12323
70cd633e
AB
123242019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12325
12326 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12327 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12328
040b3e95
PW
123292019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12330
12331 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12332 variant for ada_tasks_pspace_data_handle and
12333 ada_tasks_inferior_data_handle.
12334 (ada_tasks_pspace_data_cleanup): New function.
12335 (ada_tasks_inferior_data_cleanup): New function.
12336
9409233b
TT
123372019-02-17 Tom Tromey <tom@tromey.com>
12338
12339 * macrotab.h (macro_source_fullname): Return a std::string.
12340 * macrotab.c (macro_include, check_for_redefinition)
12341 (macro_undef, macro_lookup_definition, foreach_macro)
12342 (foreach_macro_in_scope): Update.
12343 (macro_source_fullname): Return a std::string.
12344 * macrocmd.c (show_pp_source_pos): Update.
12345
6506371f
TT
123462019-02-17 Tom Tromey <tom@tromey.com>
12347
12348 * macrocmd.c (show_pp_source_pos): Style the file names.
12349
0c820d67
TT
123502019-02-17 Tom Tromey <tom@tromey.com>
12351
12352 PR tui/24197:
12353 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12354
a0087920
TT
123552019-02-17 Tom Tromey <tom@tromey.com>
12356
12357 * ada-lang.c (user_select_syms): Use filtered printing.
12358 * utils.c (wrap_style): New global.
12359 (desired_style): Remove.
12360 (emit_style_escape): Add stream parameter.
12361 (set_output_style, reset_terminal_style, prompt_for_continue):
12362 Update.
12363 (flush_wrap_buffer): Only flush gdb_stdout.
12364 (wrap_here): Set wrap_style.
12365 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12366 treat escape sequences as a character. Change when wrap buffer is
12367 flushed.
12368 (fputs_styled): Do not set the output style when the default is
12369 requested.
12370 * ui-style.h (struct ui_file_style) <is_default>: New method.
12371 * source.c (print_source_lines_base): Emit escape sequences in one
12372 piece.
12373
75ba10dc
JB
123742019-02-17 Joel Brobecker <brobecker@adacore.com>
12375
12376 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12377 integers and enumeration types.
12378
a2cd4f14
JB
123792019-02-17 Joel Brobecker <brobecker@adacore.com>
12380
12381 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12382 instead of lookup_symbol_in_language
12383 (do_exact_match): New function.
12384 (ada_get_symbol_name_matcher): Return do_exact_match when
12385 doing a verbatim match.
12386
485b851b
TT
123872019-02-15 Tom Tromey <tromey@adacore.com>
12388
12389 * ravenscar-thread.c (ravenscar_thread_target::resume)
12390 (ravenscar_thread_target::wait): Special case wildcard requests.
12391
0b790b1e
TT
123922019-02-15 Tom Tromey <tromey@adacore.com>
12393
12394 * ravenscar-thread.c (base_ptid): Remove.
12395 (struct ravenscar_thread_target) <close>: New method.
12396 <m_base_ptid>: New member.
12397 <update_inferior_ptid, active_task, task_is_currently_active,
12398 runtime_initialized>: Declare methods.
12399 <ravenscar_thread_target>: Add constructor.
12400 (ravenscar_thread_target::task_is_currently_active)
12401 (ravenscar_thread_target::update_inferior_ptid)
12402 (ravenscar_runtime_initialized): Rename. Now methods.
12403 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12404 (ravenscar_thread_target::update_thread_list): Update.
12405 (ravenscar_thread_target::active_task): Now method.
12406 (ravenscar_thread_target::store_registers)
12407 (ravenscar_thread_target::prepare_to_store)
12408 (ravenscar_thread_target::prepare_to_store)
12409 (ravenscar_thread_target::mourn_inferior): Update.
12410 (ravenscar_inferior_created): Use "new" to create target.
12411 (ravenscar_thread_target::get_ada_task_ptid): Update.
12412 (_initialize_ravenscar): Don't initialize base_ptid.
12413 (ravenscar_ops): Remove global.
12414
dea57a62
TT
124152019-02-15 Tom Tromey <tromey@adacore.com>
12416
12417 * target.h (push_target): Declare new overload.
12418 * target.c (push_target): New overload, taking an rvalue reference.
12419 * remote.c (remote_target::open_1): Use push_target overload.
12420 * corelow.c (core_target_open): Use push_target overload.
12421
989f3c58
TT
124222019-02-15 Tom Tromey <tromey@adacore.com>
12423
12424 * ravenscar-thread.c (is_ravenscar_task)
12425 (ravenscar_task_is_currently_active): Return bool.
12426 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12427 (_initialize_ravenscar): Remove "(void)".
12428 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12429 Return bool.
12430
6cbcc006
TT
124312019-02-15 Tom Tromey <tromey@adacore.com>
12432
12433 * ravenscar-thread.c (ravenscar_runtime_initializer)
12434 (has_ravenscar_runtime, get_running_thread_id)
12435 (ravenscar_thread_target::resume): Fix indentation.
12436
7657f14d
TT
124372019-02-15 Tom Tromey <tromey@adacore.com>
12438
12439 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12440 from ravenscar_arch_ops.
12441 (sparc_ravenscar_ops::fetch_registers)
12442 (sparc_ravenscar_ops::store_registers): Now methods.
12443 (sparc_ravenscar_prepare_to_store): Remove.
12444 (sparc_ravenscar_ops): Redefine.
12445 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12446 methods and destructor. Remove members.
12447 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12448 (ravenscar_thread_target::store_registers)
12449 (ravenscar_thread_target::prepare_to_store): Update.
12450 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12451 Remove.
12452 (struct ppc_ravenscar_powerpc_ops): Derive from
12453 ravenscar_arch_ops.
12454 (ppc_ravenscar_powerpc_ops::fetch_registers)
12455 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12456 (ppc_ravenscar_powerpc_ops): Redefine.
12457 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12458 (ppc_ravenscar_e500_ops::fetch_registers)
12459 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12460 (ppc_ravenscar_e500_ops): Redefine.
12461 * aarch64-ravenscar-thread.c
12462 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12463 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12464 (aarch64_ravenscar_fetch_registers)
12465 (aarch64_ravenscar_store_registers): Now methods.
12466 (aarch64_ravenscar_ops): Redefine.
12467
5b6ea500
TT
124682019-02-15 Tom Tromey <tromey@adacore.com>
12469
12470 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12471 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12472 (ravenscar_thread_target::stopped_by_watchpoint)
12473 (ravenscar_thread_target::stopped_data_address)
12474 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12475
e397fd39
TT
124762019-02-15 Tom Tromey <tromey@adacore.com>
12477
12478 * ravenscar-thread.c: Fix some typos.
12479
cc12f4a8
TT
124802019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12481 Tom Tromey <tromey@adacore.com>
12482
12483 * ada-lang.c (ada_exception_sal): Change addr_string to a
12484 std::string.
12485 (create_ada_exception_catchpoint): Update.
12486
5f486660
TT
124872019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12488 Tom Tromey <tromey@adacore.com>
12489
12490 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12491 (bp_location_ops): Remove.
12492 (base_breakpoint_allocate_location): Update.
12493 (free_bp_location): Update.
12494 * ada-lang.c (class ada_catchpoint_location)
12495 <ada_catchpoint_location>: Remove ops parameter.
12496 (ada_catchpoint_location_dtor): Remove.
12497 (ada_catchpoint_location_ops): Remove.
12498 (allocate_location_exception): Update.
12499 * breakpoint.h (struct bp_location_ops): Remove.
12500 (class bp_location) <bp_location>: Remove bp_location_ops
12501 parameter.
12502 <~bp_location>: Add destructor.
12503 <ops>: Remove.
12504
b671c7fb
TS
125052019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12506 Pedro Alves <palves@redhat.com>
12507
12508 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12509 'PATH_MAX'.
12510
8071c5ce
DM
125112019-02-14 David Michael <fedora.dm0@gmail.com>
12512 Samuel Thibault <samuel.thibault@gnu.org>
12513 Thomas Schwinge <thomas@codesourcery.com>
12514
12515 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12516 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12517
b1041ae0
TS
125182019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12519
924514e1
TS
12520 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12521 (check_empty): Use "const char *".
12522
c29ee8d4
TS
12523 * gnu-nat.c (gnu_nat_target::detach): Instead of
12524 'detach_inferior (pid)' call
12525 'detach_inferior (find_inferior_pid (pid))'.
12526
6c6ef69f
TS
12527 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12528 'nat/fork-inferior.o'.
12529 * gnu-nat.c: #include "nat/fork-inferior.h".
12530
2d0a338c
TS
12531 * gnu-nat.c (gnu_nat_target::detach): Instead of
12532 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12533 * gnu-nat.h: #include "inf-child.h".
12534 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12535 'i386_gnu_nat_target::fetch_registers'.
12536 (gnu_store_registers): Rename/move to
12537 'i386_gnu_nat_target::store_registers'.
12538
cabb5f06
TS
12539 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12540 * gnu-nat.h (mach_thread_info): New function.
12541 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12542
b1041ae0
TS
12543 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12544
2988d01e
KF
125452019-02-14 Frederic Konrad <konrad@adacore.com>
12546
12547 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12548
c559d709
JB
125492019-02-14 Joel Brobecker <brobecker@adacore.com>
12550
12551 * windows-nat.c (windows_add_thread): Add new parameter
12552 "main_thread_p" with default value set to false. Update
12553 function documentation as well as all callers.
12554 (windows_delete_thread): Likewise.
12555 (fake_create_process): Update call to windows_add_thread.
12556 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12557 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12558 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12559 call to windows_delete_thread.
12560
007024cc
SM
125612019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12562
12563 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12564
f62318e9
JB
125652019-02-12 John Baldwin <jhb@FreeBSD.org>
12566
12567 * symfile.c (find_separate_debug_file): Use canonical path of
12568 sysroot with child_path instead of gdb_sysroot if it is valid.
12569
cd4b7848
JB
125702019-02-12 John Baldwin <jhb@FreeBSD.org>
12571
12572 * symfile.c (find_separate_debug_file): Use child_path to
12573 determine if an object file is under a sysroot.
12574
efac4bfe
JB
125752019-02-12 John Baldwin <jhb@FreeBSD.org>
12576
12577 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12578 unittests/child-path-selftests.c.
12579 * common/pathstuff.c (child_path): New function.
12580 * common/pathstuff.h (child_path): New prototype.
12581 * unittests/child-path-selftests.c: New file.
12582
402d2bfe
JB
125832019-02-12 John Baldwin <jhb@FreeBSD.org>
12584
12585 * symfile.c (find_separate_debug_file): Look for separate debug
12586 files in debug directories under the sysroot.
12587
1ed9f74e
PW
125882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12589
12590 * symtab.h (struct minimal_symbol data_p): New const method.
12591 (struct minimal_symbol text_p): Likewise.
12592 * symtab.c (output_source_filename): Use file name style
12593 to print file name.
12594 (print_symbol_info): Likewise.
12595 (print_msymbol_info): Use address style to print addresses.
12596 Use function name style to print executable text symbols.
12597 (expand_symtab_containing_pc): Use data_p.
12598 (find_pc_sect_compunit_symtab): Likewise.
12599
2636d81d
PW
126002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12601
12602 * breakpoint.c (describe_other_breakpoints): Use address style
12603 to print addresses.
12604 (say_where): Likewise.
12605
ac8c53cc
PW
126062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12607
12608 * ada-typeprint.c (print_func_type): Print function name
12609 style to print function name.
12610 * c-typeprint.c (c_print_type_1): Likewise.
12611
ea638c43
AH
126122019-02-11 Alan Hayward <alan.hayward@arm.com>
12613
12614 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12615 for execve.
12616
ab759ca8
PW
126172019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12618
12619 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12620 type_stack.
12621
aff29d1c
JB
126222019-02-10 Joel Brobecker <brobecker@adacore.com>
12623
12624 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12625 TYPE_CODE_REF types.
12626
617126bc
JW
126272019-02-08 Jim Wilson <jimw@sifive.com>
12628
12629 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12630 (riscv_linux_fregset): New.
12631 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12632
46e3ed7f
TT
126332019-02-07 Tom Tromey <tom@tromey.com>
12634
12635 * thread.c (thread_cancel_execution_command): Update.
12636 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12637 methods.
12638 (struct thread_fsm_ops): Remove.
12639 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12640 (thread_fsm_should_stop, thread_fsm_return_value)
12641 (thread_fsm_set_finished, thread_fsm_finished_p)
12642 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12643 Don't declare.
12644 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12645 * infrun.c (clear_proceed_status_thread)
12646 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12647 (print_stop_event): Update.
12648 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12649 Add constructor.
12650 (step_command_fsm_ops): Remove.
12651 (new_step_command_fsm): Remove.
12652 (step_1): Update.
12653 (step_command_fsm::should_stop): Rename from
12654 step_command_fsm_should_stop.
12655 (step_command_fsm::clean_up): Rename from
12656 step_command_fsm_clean_up.
12657 (step_command_fsm::do_async_reply_reason): Rename from
12658 step_command_fsm_async_reply_reason.
12659 (struct until_next_fsm): Inherit from thread_fsm. Add
12660 constructor.
12661 (until_next_fsm_ops): Remove.
12662 (new_until_next_fsm): Remove.
12663 (until_next_fsm::should_stop): Rename from
12664 until_next_fsm_should_stop.
12665 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12666 (until_next_fsm::do_async_reply_reason): Rename from
12667 until_next_fsm_async_reply_reason.
12668 (struct finish_command_fsm): Inherit from thread_fsm. Add
12669 constructor. Change type of breakpoint.
12670 (finish_command_fsm_ops): Remove.
12671 (new_finish_command_fsm): Remove.
12672 (finish_command_fsm::should_stop): Rename from
12673 finish_command_fsm_should_stop.
12674 (finish_command_fsm::clean_up): Rename from
12675 finish_command_fsm_clean_up.
12676 (finish_command_fsm::return_value): Rename from
12677 finish_command_fsm_return_value.
12678 (finish_command_fsm::do_async_reply_reason): Rename from
12679 finish_command_fsm_async_reply_reason.
12680 (finish_command): Update.
12681 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12682 Add constructor.
12683 (call_thread_fsm_ops): Remove.
12684 (call_thread_fsm::call_thread_fsm): Rename from
12685 new_call_thread_fsm.
12686 (call_thread_fsm::should_stop): Rename from
12687 call_thread_fsm_should_stop.
12688 (call_thread_fsm::should_notify_stop): Rename from
12689 call_thread_fsm_should_notify_stop.
12690 (run_inferior_call, call_function_by_hand_dummy): Update.
12691 * cli/cli-interp.c (should_print_stop_to_console): Update.
12692 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12693 Add constructor. Change type of location_breakpoint,
12694 caller_breakpoint.
12695 (until_break_fsm_ops): Remove.
12696 (new_until_break_fsm): Remove.
12697 (until_break_fsm::should_stop): Rename from
12698 until_break_fsm_should_stop.
12699 (until_break_fsm::clean_up): Rename from
12700 until_break_fsm_clean_up.
12701 (until_break_fsm::do_async_reply_reason): Rename from
12702 until_break_fsm_async_reply_reason.
12703 (until_break_command): Update.
12704 * thread-fsm.c: Remove.
12705 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12706
1a5c2598
TT
127072019-02-07 Tom Tromey <tom@tromey.com>
12708
12709 * yy-remap.h: Add include guard.
12710 * xtensa-tdep.h: Add include guard.
12711 * xcoffread.h: Rename include guard.
12712 * varobj-iter.h: Add include guard.
12713 * tui/tui.h: Rename include guard.
12714 * tui/tui-winsource.h: Rename include guard.
12715 * tui/tui-wingeneral.h: Rename include guard.
12716 * tui/tui-windata.h: Rename include guard.
12717 * tui/tui-win.h: Rename include guard.
12718 * tui/tui-stack.h: Rename include guard.
12719 * tui/tui-source.h: Rename include guard.
12720 * tui/tui-regs.h: Rename include guard.
12721 * tui/tui-out.h: Rename include guard.
12722 * tui/tui-layout.h: Rename include guard.
12723 * tui/tui-io.h: Rename include guard.
12724 * tui/tui-hooks.h: Rename include guard.
12725 * tui/tui-file.h: Rename include guard.
12726 * tui/tui-disasm.h: Rename include guard.
12727 * tui/tui-data.h: Rename include guard.
12728 * tui/tui-command.h: Rename include guard.
12729 * tic6x-tdep.h: Add include guard.
12730 * target/waitstatus.h: Rename include guard.
12731 * target/wait.h: Rename include guard.
12732 * target/target.h: Rename include guard.
12733 * target/resume.h: Rename include guard.
12734 * target-float.h: Rename include guard.
12735 * stabsread.h: Add include guard.
12736 * rs6000-tdep.h: Add include guard.
12737 * riscv-fbsd-tdep.h: Add include guard.
12738 * regformats/regdef.h: Rename include guard.
12739 * record.h: Rename include guard.
12740 * python/python.h: Rename include guard.
12741 * python/python-internal.h: Rename include guard.
12742 * python/py-stopevent.h: Rename include guard.
12743 * python/py-ref.h: Rename include guard.
12744 * python/py-record.h: Rename include guard.
12745 * python/py-record-full.h: Rename include guard.
12746 * python/py-record-btrace.h: Rename include guard.
12747 * python/py-instruction.h: Rename include guard.
12748 * python/py-events.h: Rename include guard.
12749 * python/py-event.h: Rename include guard.
12750 * procfs.h: Add include guard.
12751 * proc-utils.h: Add include guard.
12752 * p-lang.h: Add include guard.
12753 * or1k-tdep.h: Rename include guard.
12754 * observable.h: Rename include guard.
12755 * nto-tdep.h: Rename include guard.
12756 * nat/x86-linux.h: Rename include guard.
12757 * nat/x86-linux-dregs.h: Rename include guard.
12758 * nat/x86-gcc-cpuid.h: Add include guard.
12759 * nat/x86-dregs.h: Rename include guard.
12760 * nat/x86-cpuid.h: Rename include guard.
12761 * nat/ppc-linux.h: Rename include guard.
12762 * nat/mips-linux-watch.h: Rename include guard.
12763 * nat/linux-waitpid.h: Rename include guard.
12764 * nat/linux-ptrace.h: Rename include guard.
12765 * nat/linux-procfs.h: Rename include guard.
12766 * nat/linux-osdata.h: Rename include guard.
12767 * nat/linux-nat.h: Rename include guard.
12768 * nat/linux-namespaces.h: Rename include guard.
12769 * nat/linux-btrace.h: Rename include guard.
12770 * nat/glibc_thread_db.h: Rename include guard.
12771 * nat/gdb_thread_db.h: Rename include guard.
12772 * nat/gdb_ptrace.h: Rename include guard.
12773 * nat/fork-inferior.h: Rename include guard.
12774 * nat/amd64-linux-siginfo.h: Rename include guard.
12775 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12776 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12777 * nat/aarch64-linux.h: Rename include guard.
12778 * nat/aarch64-linux-hw-point.h: Rename include guard.
12779 * mn10300-tdep.h: Add include guard.
12780 * mips-linux-tdep.h: Add include guard.
12781 * mi/mi-parse.h: Rename include guard.
12782 * mi/mi-out.h: Rename include guard.
12783 * mi/mi-main.h: Rename include guard.
12784 * mi/mi-interp.h: Rename include guard.
12785 * mi/mi-getopt.h: Rename include guard.
12786 * mi/mi-console.h: Rename include guard.
12787 * mi/mi-common.h: Rename include guard.
12788 * mi/mi-cmds.h: Rename include guard.
12789 * mi/mi-cmd-break.h: Rename include guard.
12790 * m2-lang.h: Add include guard.
12791 * location.h: Rename include guard.
12792 * linux-record.h: Rename include guard.
12793 * linux-nat.h: Add include guard.
12794 * linux-fork.h: Add include guard.
12795 * i386-darwin-tdep.h: Rename include guard.
12796 * hppa-linux-offsets.h: Add include guard.
12797 * guile/guile.h: Rename include guard.
12798 * guile/guile-internal.h: Rename include guard.
12799 * gnu-nat.h: Rename include guard.
12800 * gdb-stabs.h: Rename include guard.
12801 * frv-tdep.h: Add include guard.
12802 * f-lang.h: Add include guard.
12803 * event-loop.h: Add include guard.
12804 * darwin-nat.h: Rename include guard.
12805 * cp-abi.h: Rename include guard.
12806 * config/sparc/nm-sol2.h: Rename include guard.
12807 * config/nm-nto.h: Rename include guard.
12808 * config/nm-linux.h: Add include guard.
12809 * config/i386/nm-i386gnu.h: Rename include guard.
12810 * config/djgpp/nl_types.h: Rename include guard.
12811 * config/djgpp/langinfo.h: Rename include guard.
12812 * compile/gcc-cp-plugin.h: Add include guard.
12813 * compile/gcc-c-plugin.h: Add include guard.
12814 * compile/compile.h: Rename include guard.
12815 * compile/compile-object-run.h: Rename include guard.
12816 * compile/compile-object-load.h: Rename include guard.
12817 * compile/compile-internal.h: Rename include guard.
12818 * compile/compile-cplus.h: Rename include guard.
12819 * compile/compile-c.h: Rename include guard.
12820 * common/xml-utils.h: Rename include guard.
12821 * common/x86-xstate.h: Rename include guard.
12822 * common/version.h: Rename include guard.
12823 * common/vec.h: Rename include guard.
12824 * common/tdesc.h: Rename include guard.
12825 * common/selftest.h: Rename include guard.
12826 * common/scoped_restore.h: Rename include guard.
12827 * common/scoped_mmap.h: Rename include guard.
12828 * common/scoped_fd.h: Rename include guard.
12829 * common/safe-iterator.h: Rename include guard.
12830 * common/run-time-clock.h: Rename include guard.
12831 * common/refcounted-object.h: Rename include guard.
12832 * common/queue.h: Rename include guard.
12833 * common/ptid.h: Rename include guard.
12834 * common/print-utils.h: Rename include guard.
12835 * common/preprocessor.h: Rename include guard.
12836 * common/pathstuff.h: Rename include guard.
12837 * common/observable.h: Rename include guard.
12838 * common/netstuff.h: Rename include guard.
12839 * common/job-control.h: Rename include guard.
12840 * common/host-defs.h: Rename include guard.
12841 * common/gdb_wait.h: Rename include guard.
12842 * common/gdb_vecs.h: Rename include guard.
12843 * common/gdb_unlinker.h: Rename include guard.
12844 * common/gdb_unique_ptr.h: Rename include guard.
12845 * common/gdb_tilde_expand.h: Rename include guard.
12846 * common/gdb_sys_time.h: Rename include guard.
12847 * common/gdb_string_view.h: Rename include guard.
12848 * common/gdb_splay_tree.h: Rename include guard.
12849 * common/gdb_setjmp.h: Rename include guard.
12850 * common/gdb_ref_ptr.h: Rename include guard.
12851 * common/gdb_optional.h: Rename include guard.
12852 * common/gdb_locale.h: Rename include guard.
12853 * common/gdb_assert.h: Rename include guard.
12854 * common/filtered-iterator.h: Rename include guard.
12855 * common/filestuff.h: Rename include guard.
12856 * common/fileio.h: Rename include guard.
12857 * common/environ.h: Rename include guard.
12858 * common/common-utils.h: Rename include guard.
12859 * common/common-types.h: Rename include guard.
12860 * common/common-regcache.h: Rename include guard.
12861 * common/common-inferior.h: Rename include guard.
12862 * common/common-gdbthread.h: Rename include guard.
12863 * common/common-exceptions.h: Rename include guard.
12864 * common/common-defs.h: Rename include guard.
12865 * common/common-debug.h: Rename include guard.
12866 * common/cleanups.h: Rename include guard.
12867 * common/buffer.h: Rename include guard.
12868 * common/btrace-common.h: Rename include guard.
12869 * common/break-common.h: Rename include guard.
12870 * cli/cli-utils.h: Rename include guard.
12871 * cli/cli-style.h: Rename include guard.
12872 * cli/cli-setshow.h: Rename include guard.
12873 * cli/cli-script.h: Rename include guard.
12874 * cli/cli-interp.h: Rename include guard.
12875 * cli/cli-decode.h: Rename include guard.
12876 * cli/cli-cmds.h: Rename include guard.
12877 * charset-list.h: Add include guard.
12878 * buildsym-legacy.h: Rename include guard.
12879 * bfin-tdep.h: Add include guard.
12880 * ax.h: Rename include guard.
12881 * arm-linux-tdep.h: Add include guard.
12882 * arm-fbsd-tdep.h: Add include guard.
12883 * arch/xtensa.h: Rename include guard.
12884 * arch/tic6x.h: Add include guard.
12885 * arch/i386.h: Add include guard.
12886 * arch/arm.h: Rename include guard.
12887 * arch/arm-linux.h: Rename include guard.
12888 * arch/arm-get-next-pcs.h: Rename include guard.
12889 * arch/amd64.h: Add include guard.
12890 * arch/aarch64-insn.h: Rename include guard.
12891 * arch-utils.h: Rename include guard.
12892 * annotate.h: Add include guard.
12893 * amd64-darwin-tdep.h: Rename include guard.
12894 * aarch64-linux-tdep.h: Add include guard.
12895 * aarch64-fbsd-tdep.h: Add include guard.
12896 * aarch32-linux-nat.h: Add include guard.
12897
ab9268d2
PW
128982019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12899
12900 * macrotab.c (macro_define_internal): New function that
12901 factorizes macro_define_object_internal and macro_define_function
12902 code.
12903 (macro_define_object_internal): Use macro_define_internal.
12904 (macro_define_function): Likewise.
12905
bb0da2b4
PW
129062019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12907
12908 * macrocmd.c (extract_identifier): Return
12909 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12910 callers.
12911
424eb552
JB
129122019-02-06 John Baldwin <jhb@FreeBSD.org>
12913
12914 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12915
1688cb29
TT
129162019-02-05 Tom Tromey <tom@tromey.com>
12917
12918 * target.c (target_stack::unpush): Move assertion earlier.
12919
b5eba2d8
TT
129202019-01-30 Tom Tromey <tom@tromey.com>
12921
12922 PR python/23615:
12923 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12924 (gdbpy_parse_and_eval): Likewise.
12925 * python/python-internal.h (gdbpy_allow_threads): New class.
12926
7054e2ff
JB
129272019-01-28 John Baldwin <jhb@FreeBSD.org>
12928
12929 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12930 (aarch64_fbsd_fpregmap): Move earlier.
12931 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12932 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12933 instead of individual calls to trad_frame_set_reg_addr.
12934 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12935 earlier.
12936 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12937 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12938 instead of individual calls to trad_frame_set_reg_addr.
12939
36c25ffa
AH
129402019-01-28 Alan Hayward <alan.hayward@arm.com>
12941
12942 * CONTRIBUTE: Replace contribution list with wiki link.
12943
a0707f3c
TT
129442019-01-25 Tom Tromey <tom@tromey.com>
12945
12946 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12947
0747795c
TT
129482019-01-25 Tom Tromey <tom@tromey.com>
12949
12950 * xtensa-linux-nat.c: Fix common/ includes.
12951 * xml-support.h: Fix common/ includes.
12952 * xml-support.c: Fix common/ includes.
12953 * x86-linux-nat.c: Fix common/ includes.
12954 * windows-nat.c: Fix common/ includes.
12955 * varobj.h: Fix common/ includes.
12956 * varobj.c: Fix common/ includes.
12957 * value.c: Fix common/ includes.
12958 * valops.c: Fix common/ includes.
12959 * utils.c: Fix common/ includes.
12960 * unittests/xml-utils-selftests.c: Fix common/ includes.
12961 * unittests/utils-selftests.c: Fix common/ includes.
12962 * unittests/unpack-selftests.c: Fix common/ includes.
12963 * unittests/tracepoint-selftests.c: Fix common/ includes.
12964 * unittests/style-selftests.c: Fix common/ includes.
12965 * unittests/string_view-selftests.c: Fix common/ includes.
12966 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12967 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12968 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12969 * unittests/rsp-low-selftests.c: Fix common/ includes.
12970 * unittests/parse-connection-spec-selftests.c: Fix common/
12971 includes.
12972 * unittests/optional-selftests.c: Fix common/ includes.
12973 * unittests/offset-type-selftests.c: Fix common/ includes.
12974 * unittests/observable-selftests.c: Fix common/ includes.
12975 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12976 * unittests/memrange-selftests.c: Fix common/ includes.
12977 * unittests/memory-map-selftests.c: Fix common/ includes.
12978 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12979 * unittests/function-view-selftests.c: Fix common/ includes.
12980 * unittests/environ-selftests.c: Fix common/ includes.
12981 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12982 * unittests/common-utils-selftests.c: Fix common/ includes.
12983 * unittests/cli-utils-selftests.c: Fix common/ includes.
12984 * unittests/array-view-selftests.c: Fix common/ includes.
12985 * ui-file.c: Fix common/ includes.
12986 * tui/tui-io.c: Fix common/ includes.
12987 * tracepoint.h: Fix common/ includes.
12988 * tracepoint.c: Fix common/ includes.
12989 * tracefile-tfile.c: Fix common/ includes.
12990 * top.h: Fix common/ includes.
12991 * top.c: Fix common/ includes.
12992 * thread.c: Fix common/ includes.
12993 * target/waitstatus.h: Fix common/ includes.
12994 * target/waitstatus.c: Fix common/ includes.
12995 * target.h: Fix common/ includes.
12996 * target.c: Fix common/ includes.
12997 * target-memory.c: Fix common/ includes.
12998 * target-descriptions.c: Fix common/ includes.
12999 * symtab.h: Fix common/ includes.
13000 * symfile.c: Fix common/ includes.
13001 * stap-probe.c: Fix common/ includes.
13002 * spu-linux-nat.c: Fix common/ includes.
13003 * sparc-nat.c: Fix common/ includes.
13004 * source.c: Fix common/ includes.
13005 * solib.c: Fix common/ includes.
13006 * solib-target.c: Fix common/ includes.
13007 * ser-unix.c: Fix common/ includes.
13008 * ser-tcp.c: Fix common/ includes.
13009 * ser-pipe.c: Fix common/ includes.
13010 * ser-base.c: Fix common/ includes.
13011 * selftest-arch.c: Fix common/ includes.
13012 * s12z-tdep.c: Fix common/ includes.
13013 * rust-exp.y: Fix common/ includes.
13014 * rs6000-aix-tdep.c: Fix common/ includes.
13015 * riscv-tdep.c: Fix common/ includes.
13016 * remote.c: Fix common/ includes.
13017 * remote-notif.h: Fix common/ includes.
13018 * remote-fileio.h: Fix common/ includes.
13019 * remote-fileio.c: Fix common/ includes.
13020 * regcache.h: Fix common/ includes.
13021 * regcache.c: Fix common/ includes.
13022 * record-btrace.c: Fix common/ includes.
13023 * python/python.c: Fix common/ includes.
13024 * python/py-type.c: Fix common/ includes.
13025 * python/py-inferior.c: Fix common/ includes.
13026 * progspace.h: Fix common/ includes.
13027 * producer.c: Fix common/ includes.
13028 * procfs.c: Fix common/ includes.
13029 * proc-api.c: Fix common/ includes.
13030 * printcmd.c: Fix common/ includes.
13031 * ppc-linux-nat.c: Fix common/ includes.
13032 * parser-defs.h: Fix common/ includes.
13033 * osdata.c: Fix common/ includes.
13034 * obsd-nat.c: Fix common/ includes.
13035 * nat/x86-linux.c: Fix common/ includes.
13036 * nat/x86-linux-dregs.c: Fix common/ includes.
13037 * nat/x86-dregs.h: Fix common/ includes.
13038 * nat/x86-dregs.c: Fix common/ includes.
13039 * nat/ppc-linux.c: Fix common/ includes.
13040 * nat/mips-linux-watch.h: Fix common/ includes.
13041 * nat/mips-linux-watch.c: Fix common/ includes.
13042 * nat/linux-waitpid.c: Fix common/ includes.
13043 * nat/linux-ptrace.h: Fix common/ includes.
13044 * nat/linux-ptrace.c: Fix common/ includes.
13045 * nat/linux-procfs.c: Fix common/ includes.
13046 * nat/linux-personality.c: Fix common/ includes.
13047 * nat/linux-osdata.c: Fix common/ includes.
13048 * nat/linux-namespaces.c: Fix common/ includes.
13049 * nat/linux-btrace.h: Fix common/ includes.
13050 * nat/linux-btrace.c: Fix common/ includes.
13051 * nat/fork-inferior.c: Fix common/ includes.
13052 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13053 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13054 * nat/aarch64-linux.c: Fix common/ includes.
13055 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13056 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13057 * namespace.h: Fix common/ includes.
13058 * mips-linux-tdep.c: Fix common/ includes.
13059 * minsyms.c: Fix common/ includes.
13060 * mi/mi-parse.h: Fix common/ includes.
13061 * mi/mi-main.c: Fix common/ includes.
13062 * mi/mi-cmd-env.c: Fix common/ includes.
13063 * memrange.h: Fix common/ includes.
13064 * memattr.c: Fix common/ includes.
13065 * maint.h: Fix common/ includes.
13066 * maint.c: Fix common/ includes.
13067 * main.c: Fix common/ includes.
13068 * machoread.c: Fix common/ includes.
13069 * location.c: Fix common/ includes.
13070 * linux-thread-db.c: Fix common/ includes.
13071 * linux-nat.c: Fix common/ includes.
13072 * linux-fork.c: Fix common/ includes.
13073 * inline-frame.c: Fix common/ includes.
13074 * infrun.c: Fix common/ includes.
13075 * inflow.c: Fix common/ includes.
13076 * inferior.h: Fix common/ includes.
13077 * inferior.c: Fix common/ includes.
13078 * infcmd.c: Fix common/ includes.
13079 * inf-ptrace.c: Fix common/ includes.
13080 * inf-child.c: Fix common/ includes.
13081 * ia64-linux-nat.c: Fix common/ includes.
13082 * i387-tdep.c: Fix common/ includes.
13083 * i386-tdep.c: Fix common/ includes.
13084 * i386-linux-tdep.c: Fix common/ includes.
13085 * i386-linux-nat.c: Fix common/ includes.
13086 * i386-go32-tdep.c: Fix common/ includes.
13087 * i386-fbsd-tdep.c: Fix common/ includes.
13088 * i386-fbsd-nat.c: Fix common/ includes.
13089 * guile/scm-type.c: Fix common/ includes.
13090 * guile/guile.c: Fix common/ includes.
13091 * go32-nat.c: Fix common/ includes.
13092 * gnu-nat.c: Fix common/ includes.
13093 * gdbthread.h: Fix common/ includes.
13094 * gdbarch-selftests.c: Fix common/ includes.
13095 * gdb_usleep.c: Fix common/ includes.
13096 * gdb_select.h: Fix common/ includes.
13097 * gdb_bfd.c: Fix common/ includes.
13098 * gcore.c: Fix common/ includes.
13099 * fork-child.c: Fix common/ includes.
13100 * findvar.c: Fix common/ includes.
13101 * fbsd-nat.c: Fix common/ includes.
13102 * event-top.c: Fix common/ includes.
13103 * event-loop.c: Fix common/ includes.
13104 * dwarf2read.c: Fix common/ includes.
13105 * dwarf2loc.c: Fix common/ includes.
13106 * dwarf2-frame.c: Fix common/ includes.
13107 * dwarf-index-cache.c: Fix common/ includes.
13108 * dtrace-probe.c: Fix common/ includes.
13109 * disasm-selftests.c: Fix common/ includes.
13110 * defs.h: Fix common/ includes.
13111 * csky-tdep.c: Fix common/ includes.
13112 * cp-valprint.c: Fix common/ includes.
13113 * cp-support.h: Fix common/ includes.
13114 * cp-support.c: Fix common/ includes.
13115 * corelow.c: Fix common/ includes.
13116 * completer.h: Fix common/ includes.
13117 * completer.c: Fix common/ includes.
13118 * compile/compile.c: Fix common/ includes.
13119 * compile/compile-loc2c.c: Fix common/ includes.
13120 * compile/compile-cplus-types.c: Fix common/ includes.
13121 * compile/compile-cplus-symbols.c: Fix common/ includes.
13122 * command.h: Fix common/ includes.
13123 * cli/cli-dump.c: Fix common/ includes.
13124 * cli/cli-cmds.c: Fix common/ includes.
13125 * charset.c: Fix common/ includes.
13126 * build-id.c: Fix common/ includes.
13127 * btrace.h: Fix common/ includes.
13128 * btrace.c: Fix common/ includes.
13129 * breakpoint.h: Fix common/ includes.
13130 * breakpoint.c: Fix common/ includes.
13131 * ax.h:
13132 (enum agent_op): Fix common/ includes.
13133 * ax-general.c (struct aop_map): Fix common/ includes.
13134 * ax-gdb.c: Fix common/ includes.
13135 * auxv.c: Fix common/ includes.
13136 * auto-load.c: Fix common/ includes.
13137 * arm-tdep.c: Fix common/ includes.
13138 * arch/riscv.c: Fix common/ includes.
13139 * arch/ppc-linux-common.c: Fix common/ includes.
13140 * arch/i386.c: Fix common/ includes.
13141 * arch/arm.c: Fix common/ includes.
13142 * arch/arm-linux.c: Fix common/ includes.
13143 * arch/arm-get-next-pcs.c: Fix common/ includes.
13144 * arch/amd64.c: Fix common/ includes.
13145 * arch/aarch64.c: Fix common/ includes.
13146 * arch/aarch64-insn.c: Fix common/ includes.
13147 * arch-utils.c: Fix common/ includes.
13148 * amd64-windows-tdep.c: Fix common/ includes.
13149 * amd64-tdep.c: Fix common/ includes.
13150 * amd64-sol2-tdep.c: Fix common/ includes.
13151 * amd64-obsd-tdep.c: Fix common/ includes.
13152 * amd64-nbsd-tdep.c: Fix common/ includes.
13153 * amd64-linux-tdep.c: Fix common/ includes.
13154 * amd64-linux-nat.c: Fix common/ includes.
13155 * amd64-fbsd-tdep.c: Fix common/ includes.
13156 * amd64-fbsd-nat.c: Fix common/ includes.
13157 * amd64-dicos-tdep.c: Fix common/ includes.
13158 * amd64-darwin-tdep.c: Fix common/ includes.
13159 * agent.c: Fix common/ includes.
13160 * ada-lang.h: Fix common/ includes.
13161 * ada-lang.c: Fix common/ includes.
13162 * aarch64-tdep.c: Fix common/ includes.
13163
2f5c153e
TT
131642019-01-25 Tom Tromey <tom@tromey.com>
13165
13166 * common/create-version.sh: Use common/version.h.
13167
adc6a863
PA
131682019-01-24 Pedro Alves <palves@redhat.com>
13169
13170 * infrun.c (signal_stop, signal_print, signal_program)
13171 (signal_catch, signal_pass): Now arrays instead of pointers.
13172 (update_signals_program_target, do_target_resume)
13173 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13174 * linux-nat.c (linux_nat_target::pass_signals)
13175 (linux_nat_target::create_inferior, linux_nat_target::attach):
13176 Adjust.
13177 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13178 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13179 * procfs.c (procfs_target::pass_signals): Adjust.
13180 * record-full.c (record_full_target::resume): Adjust.
13181 * remote.c (remote_target::pass_signals)
13182 (remote_target::program_signals): Adjust.
13183 * target-debug.h (target_debug_print_signals): Now takes a
13184 gdb::array_view as parameter. Adjust.
13185 * target.h (target_ops) <pass_signals, program_signals>: Replace
13186 pointer and length parameters with gdb::array_view.
13187 (target_pass_signals, target_program_signals): Likewise.
13188 * target-delegates.c: Regenerate.
13189
3046d67a
PA
131902019-01-24 Pedro Alves <palves@redhat.com>
13191
13192 * common/forward-scope-exit.h
13193 (forward_scope_exit::forward_scope_exit): Pass arguments to
13194 m_bind_function directly, instead of creating a std::bind and
13195 copying that.
13196
353229bf
AH
131972019-01-24 Alan Hayward <alan.hayward@arm.com>
13198
13199 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13200 for static members.
13201 (pass_in_v_vfp_candidate): Likewise.
13202
311dc83a
TT
132032019-01-23 Tom Tromey <tom@tromey.com>
13204 Pedro Alves <palves@redhat.com>
13205
13206 * regcache.c (class regcache_invalidator): Remove.
13207 (regcache::raw_write): Use make_scope_exit.
13208
296bd123
TT
132092019-01-23 Tom Tromey <tom@tromey.com>
13210
13211 * ui-out.h (class ui_out_emit_type): Update comment.
13212
979a0d13
TT
132132019-01-23 Tom Tromey <tom@tromey.com>
13214
13215 * infrun.c (fetch_inferior_event): Update comment.
13216
d238133d
TT
132172019-01-23 Tom Tromey <tom@tromey.com>
13218 Pedro Alves <palves@redhat.com>
13219
13220 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13221 parameter.
13222 (fetch_inferior_event): Use SCOPE_EXIT.
13223
13224
9885e6bb
TT
132252019-01-23 Tom Tromey <tom@tromey.com>
13226 Pedro Alves <palves@redhat.com>
13227
13228 * infrun.c (disable_thread_events): Delete.
13229 (stop_all_threads): Use SCOPE_EXIT.
13230
286526c1
TT
132312019-01-23 Tom Tromey <tom@tromey.com>
13232 Pedro Alves <palves@redhat.com>
13233
13234 * symfile.c: Include forward-scope-exit.h.
13235 (clear_symtab_users_cleanup): Replace forward declaration with
13236 a FORWARD_SCOPE_EXIT.
13237 (syms_from_objfile_1): Use the forward_scope_exit and
13238 gdb::optional instead of cleanup_function.
13239 (reread_symbols): Use the forward_scope_exit instead of
13240 cleanup_function.
13241 (clear_symtab_users_cleanup): Remove function.
13242
1db93f14
TT
132432019-01-23 Tom Tromey <tom@tromey.com>
13244 Pedro Alves <palves@redhat.com>
13245
13246 * linux-nat.c: Include scope-exit.h.
13247 (cleanup_target_stop): Remove.
13248 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13249 SCOPE_EXIT.
13250
2cc83d1e
TT
132512019-01-23 Tom Tromey <tom@tromey.com>
13252 Pedro Alves <palves@redhat.com>
13253
13254 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13255 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13256
694c6bf5
TT
132572019-01-23 Tom Tromey <tom@tromey.com>
13258 Andrew Burgess <andrew.burgess@embecosm.com>
13259 Pedro Alves <palves@redhat.com>
13260
13261 * infrun.c (fetch_inferior_event): Use scope_exit.
13262 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13263 * top.c (execute_command): Use scope_exit.
13264 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13265 * utils.c (do_bpstat_clear_actions_cleanup)
13266 (make_bpstat_clear_actions_cleanup): Remove.
13267
4c41382a
TT
132682019-01-23 Tom Tromey <tom@tromey.com>
13269 Pedro Alves <palves@redhat.com>
13270
13271 * infrun.c: Include "common/scope-exit.h"
13272 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13273 (wait_for_inferior): Use SCOPE_EXIT.
13274 (fetch_inferior_event): Use scope_exit.
13275
89f8fb50
TT
132762019-01-23 Tom Tromey <tom@tromey.com>
13277 Pedro Alves <palves@redhat.com>
13278
13279 * breakpoint.c (create_breakpoint): Remove cleanup.
13280
5419bdae
TT
132812019-01-23 Tom Tromey <tom@tromey.com>
13282 Andrew Burgess <andrew.burgess@embecosm.com>
13283 Pedro Alves <palves@redhat.com>
13284
e587ef42
PA
132852019-01-23 Pedro Alves <palves@redhat.com>
13286
13287 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13288
77f0e74c
PA
132892019-01-23 Pedro Alves <palves@redhat.com>
13290 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * gdbthread.h: Include "common/forward-scope-exit.h".
13293 (scoped_finish_thread_state): Redefine custom class in terms of
13294 forward_scope_exit.
13295
5b9b3e53
PA
132962019-01-23 Pedro Alves <palves@redhat.com>
13297 Andrew Burgess <andrew.burgess@embecosm.com>
13298
13299 * common/forward-scope-exit.h: New file.
13300
54b65c9b
PA
133012019-01-23 Pedro Alves <palves@redhat.com>
13302 Andrew Burgess <andrew.burgess@embecosm.com>
13303 Tom Tromey <tom@tromey.com>
13304
13305 * common/scope-exit.h: New file.
13306
cf08fb29
PA
133072019-01-23 Pedro Alves <palves@redhat.com>
13308
13309 * common/preprocessor.h (ESC): Rename to ...
13310 (ESC_PARENS): ... this.
13311 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13312 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13313
ae73e2e2
TT
133142019-01-23 Tom Tromey <tom@tromey.com>
13315
13316 * language.h (class scoped_switch_to_sym_language_if_auto):
13317 Initialize m_lang in both cases.
13318
6594e122
AH
133192019-01-23 Alan Hayward <alan.hayward@arm.com>
13320
13321 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13322 with XCNEW.
13323
a7c9855d
TT
133242019-01-22 Tom Tromey <tom@tromey.com>
13325
13326 * corelow.c: Do not include sys/file.h.
13327
93cc1d53
TT
133282019-01-22 Tom Tromey <tom@tromey.com>
13329
13330 * tui/tui-wingeneral.h: Include gdb_curses.h.
13331
38561778
TT
133322019-01-22 Tom Tromey <tom@tromey.com>
13333
13334 * source-cache.h (class source_cache) <get_source_lines,
13335 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13336
37b3ab5b
TT
133372019-01-22 Tom Tromey <tom@tromey.com>
13338
13339 * remote-fileio.h (struct remote_target): Declare.
13340
3fabc016
TT
133412019-01-22 Tom Tromey <tom@tromey.com>
13342
13343 * python/py-arch.c: Do not include py-ref.h.
13344 * python/py-bpevent.c: Do not include py-ref.h.
13345 * python/py-cmd.c: Do not include py-ref.h.
13346 * python/py-continueevent.c: Do not include py-ref.h.
13347 * python/py-event.h: Do not include py-ref.h.
13348 * python/py-evtregistry.c: Do not include py-ref.h.
13349 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13350 * python/py-frame.c: Do not include py-ref.h.
13351 * python/py-framefilter.c: Do not include py-ref.h.
13352 * python/py-function.c: Do not include py-ref.h.
13353 * python/py-infevents.c: Do not include py-ref.h.
13354 * python/py-linetable.c: Do not include py-ref.h.
13355 * python/py-objfile.c: Do not include py-ref.h.
13356 * python/py-param.c: Do not include py-ref.h.
13357 * python/py-prettyprint.c: Do not include py-ref.h.
13358 * python/py-progspace.c: Do not include py-ref.h.
13359 * python/py-symbol.c: Do not include py-ref.h.
13360 * python/py-symtab.c: Do not include py-ref.h.
13361 * python/py-type.c: Do not include py-ref.h.
13362 * python/py-unwind.c: Do not include py-ref.h.
13363 * python/py-utils.c: Do not include py-ref.h.
13364 * python/py-value.c: Do not include py-ref.h.
13365 * python/py-varobj.c: Do not include py-ref.h.
13366 * python/py-xmethods.c: Do not include py-ref.h.
13367 * python/python.c: Do not include py-ref.h.
13368 * varobj.c: Do not include py-ref.h.
13369
6b4d7774
TT
133702019-01-22 Tom Tromey <tom@tromey.com>
13371
13372 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13373 keyword for bcache.
13374
7af7e9b5
TT
133752019-01-22 Tom Tromey <tom@tromey.com>
13376
13377 * compile/compile-cplus-types.c: Remove a comment by #include.
13378
951d1049
TT
133792019-01-22 Tom Tromey <tom@tromey.com>
13380
13381 * compile/gcc-c-plugin.h: Include compile-internal.h.
13382
d65d5705
TT
133832019-01-22 Tom Tromey <tom@tromey.com>
13384
13385 * stabsread.c (EXTERN): Do not define.
13386 (symnum, next_symbol_text_func, processing_gcc_compilation)
13387 (within_function, global_sym_chain, global_stabs)
13388 (previous_stab_code, this_object_header_files)
13389 (n_this_object_header_files)
13390 (n_allocated_this_object_header_files): Define.
13391 * stabsread.h (EXTERN): Never define. Use "extern".
13392
b6fb1ee5
PW
133932019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13394
13395 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13396 history_value.
13397
be6d4f74
TT
133982019-01-21 Tom Tromey <tom@tromey.com>
13399
13400 * ui-out.c: Fix includes.
13401 * tui/tui-source.c: Fix includes.
13402 * target.c: Fix includes.
13403 * remote.c: Fix includes.
13404 * regcache.c: Fix includes.
13405 * python/py-block.c: Fix includes.
13406 * printcmd.c: Fix includes.
13407 * or1k-tdep.c: Fix includes.
13408 * mi/mi-main.c: Fix includes.
13409 * m32r-tdep.c: Fix includes.
13410 * csky-tdep.c: Fix includes.
13411 * compile/compile-cplus-types.c: Fix includes.
13412 * cli/cli-interp.c: Fix includes.
13413
73021deb
AH
134142019-01-21 Alan Hayward <alan.hayward@arm.com>
13415
13416 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13417 for padding.
13418
7932255d
TT
134192019-01-16 Tom Tromey <tom@tromey.com>
13420
13421 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13422 earlier.
13423 (struct objfile) <msymbols_range>: Move from top level.
13424 <msymbols>: New method.
13425 (class objfile_msymbols): Remove.
13426 * symtab.c (default_collect_symbol_completion_matches_break_on):
13427 Update.
13428 * symmisc.c (dump_msymbols): Update.
13429 * stabsread.c (scan_file_globals): Update.
13430 * objc-lang.c (info_selectors_command, info_classes_command)
13431 (find_methods): Update.
13432 * minsyms.c (find_solib_trampoline_target): Update.
13433 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13434 * coffread.c (coff_symfile_read): Update.
13435 * ada-lang.c (ada_lookup_simple_minsym)
13436 (ada_collect_symbol_completion_matches): Update.
13437
604b1bfb
TT
134382019-01-16 Tom Tromey <tom@tromey.com>
13439
13440 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13441 type. Remove no-argument constructor.
13442 <iterator::operator++>: Simplify.
13443 <begin>: Update.
13444 <end>: Use minimal_symbol_count.
13445
f252c6d5
TT
134462019-01-16 Tom Tromey <tom@tromey.com>
13447
13448 * objfiles.h (struct objfile) <psymtabs>: New method.
13449 (class objfile_psymtabs): Remove.
13450 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13451 typedef.
13452 <range>: New method.
13453 (require_partial_symbols): Change return type.
13454 * psymtab.c (require_partial_symbols)
13455 (psym_expand_symtabs_matching): Update.
13456 * mdebugread.c (parse_partial_symbols): Update.
13457 * dbxread.c (dbx_end_psymtab): Update.
13458
b669c953
TT
134592019-01-15 Tom Tromey <tom@tromey.com>
13460
13461 * symtab.c (lookup_objfile_from_block)
13462 (lookup_symbol_in_objfile_symtabs)
13463 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13464 (find_line_symtab, info_sources_command)
13465 (default_collect_symbol_completion_matches_break_on)
13466 (make_source_files_completion_list): Update.
13467 * symmisc.c (print_objfile_statistics, dump_objfile)
13468 (maintenance_print_symbols, maintenance_info_symtabs)
13469 (maintenance_check_symtabs, maintenance_info_line_tables):
13470 Update.
13471 * source.c (select_source_symtab)
13472 (forget_cached_source_info_for_objfile): Update.
13473 * objfiles.h (class objfile_compunits): Remove.
13474 (struct objfile) <compunits_range>: New typedef.
13475 (compunits): New method.
13476 * objfiles.c (objfile_relocate1): Update.
13477 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13478 * maint.c (count_symtabs_and_blocks): Update.
13479 * linespec.c (iterate_over_all_matching_symtabs): Update.
13480 * cp-support.c (add_symbol_overload_list_qualified): Update.
13481 * coffread.c (coff_symtab_read): Update.
13482 * ada-lang.c (add_nonlocal_symbols)
13483 (ada_collect_symbol_completion_matches)
13484 (ada_add_global_exceptions): Update.
13485
7e955d83
TT
134862019-01-15 Tom Tromey <tom@tromey.com>
13487
13488 * progspace.h (program_space) <objfiles_safe_range>: New
13489 typedef.
13490 <objfiles_safe>: New method.
13491 * objfiles.h (class all_objfiles_safe): Remove.
13492 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13493 * jit.c (jit_inferior_exit_hook): Update.
13494
2030c079
TT
134952019-01-17 Tom Tromey <tom@tromey.com>
13496
13497 * progspace.h (program_space) <objfiles_range>: New typedef.
13498 <objfiles>: New method.
13499 <objfiles_head>: Rename from objfiles.
13500 (object_files): Update.
13501 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13502 * guile/scm-pretty-print.c
13503 (ppscm_find_pretty_printer_from_objfiles): Update.
13504 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13505 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13506 Update.
13507 * python/py-progspace.c (pspy_get_objfiles): Update.
13508 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13509 Update.
13510 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13511 (objfpy_lookup_objfile_by_build_id): Update.
13512 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13513 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13514 Update.
13515 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13516 (expand_symtab_containing_pc, lookup_objfile_from_block)
13517 (lookup_static_symbol, basic_lookup_transparent_type)
13518 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13519 (find_line_symtab, info_sources_command)
13520 (default_collect_symbol_completion_matches_break_on)
13521 (make_source_files_completion_list, find_main_name): Update.
13522 * symmisc.c (print_symbol_bcache_statistics)
13523 (print_objfile_statistics, maintenance_print_symbols)
13524 (maintenance_print_msymbols, maintenance_print_objfiles)
13525 (maintenance_info_symtabs, maintenance_check_symtabs)
13526 (maintenance_expand_symtabs, maintenance_info_line_tables):
13527 Update.
13528 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13529 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13530 (map_overlay_command, unmap_overlay_command)
13531 (simple_overlay_update, expand_symtabs_matching)
13532 (map_symbol_filenames): Update.
13533 * symfile-debug.c (set_debug_symfile): Update.
13534 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13535 Update.
13536 * source.c (select_source_symtab, forget_cached_source_info):
13537 Update.
13538 * solib.c (solib_read_symbols): Update.
13539 * solib-spu.c (append_ocl_sos): Update.
13540 * psymtab.c (maintenance_print_psymbols)
13541 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13542 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13543 * printcmd.c (info_symbol_command): Update.
13544 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13545 Update.
13546 * objfiles.h (class all_objfiles): Remove.
13547 * objfiles.c (have_partial_symbols, have_full_symbols)
13548 (have_minimal_symbols, qsort_cmp, update_section_map)
13549 (shared_objfile_contains_address_p)
13550 (default_iterate_over_objfiles_in_search_order): Update.
13551 * objc-lang.c (info_selectors_command, info_classes_command)
13552 (find_methods): Update.
13553 * minsyms.c (find_solib_trampoline_target): Update.
13554 * maint.c (maintenance_info_sections)
13555 (maintenance_translate_address, count_symtabs_and_blocks):
13556 Update.
13557 * main.c (captured_main_1): Update.
13558 * linux-thread-db.c (try_thread_db_load_from_pdir)
13559 (has_libpthread): Update.
13560 * linespec.c (iterate_over_all_matching_symtabs)
13561 (search_minsyms_for_name): Update.
13562 * jit.c (jit_find_objf_with_entry_addr): Update.
13563 * hppa-tdep.c (find_unwind_entry)
13564 (hppa_lookup_stub_minimal_symbol): Update.
13565 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13566 Update.
13567 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13568 (elf_gnu_ifunc_resolve_by_got): Update.
13569 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13570 * dwarf-index-write.c (save_gdb_index_command): Update.
13571 * cp-support.c (add_symbol_overload_list_qualified): Update.
13572 * breakpoint.c (create_overlay_event_breakpoint)
13573 (create_longjmp_master_breakpoint)
13574 (create_std_terminate_master_breakpoint)
13575 (create_exception_master_breakpoint): Update.
13576 * blockframe.c (find_pc_partial_function): Update.
13577 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13578 (ada_collect_symbol_completion_matches)
13579 (ada_add_global_exceptions): Update.
13580
776489e0
TT
135812019-01-17 Tom Tromey <tom@tromey.com>
13582
13583 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13584 declare VEC.
13585 (solib_target_parse_libraries): Change return type.
13586 (library_list_start_segment, library_list_start_section)
13587 (library_list_end_library, library_list_start_library); Update.
13588 (solib_target_free_library_list): Remove.
13589 (solib_target_parse_libraries): Remove cleanup. Change return
13590 type.
13591 (solib_target_current_sos): Update.
13592
6471e7d2
TT
135932019-01-17 Tom Tromey <tromey@bapiya>
13594
13595 * valprint.c: Replace "the the" with "the".
13596 * symtab.c: Replace "the the" with "the".
13597 * solib.c: Replace "the the" with "the".
13598 * solib-dsbt.c: Replace "the the" with "the".
13599 * linespec.c: Replace "the the" with "the".
13600 * dwarf2loc.h: Replace "the the" with "the".
13601 * amd64-windows-tdep.c: Replace "the the" with "the".
13602 * aarch64-tdep.c: Replace "the the" with "the".
13603
c24bdb02
KS
136042019-01-16 Keith Seitz <keiths@redhat.com>
13605
13606 PR gdb/23773
13607 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13608 <builder>: Rename to ..
13609 <m_builder>: ... this and make private.
13610 (dwarf2_cu::get_builder): New method. Change all users of
13611 `builder' to use this method.
13612 (dwarf2_start_symtab): Move to ...
13613 (dwarf2_cu::start_symtab): ... here. Update all callers
13614 (setup_type_unit_groups): Move to ...
13615 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13616 callers.
13617 (dwarf2_cu::reset_builder): New method.
13618 (process_full_compunit, process_full_type_unit): Use
13619 dwarf2_cu::reset_builder.
13620 (follow_die_offset): Record the ancestor CU if it is different
13621 from the followed DIE's CU.
13622 (follow_die_sig_1): Likewise.
13623
8d64371b
TT
136242019-01-15 Tom Tromey <tom@tromey.com>
13625
13626 * remote.c (class remote_state) <buf>: Now a char_vector.
13627 <buf_size>: Remove.
13628 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13629 parameter.
13630 (remote_target::getpkt_or_notif_sane_1)
13631 (remote_target::getpkt_sane)
13632 (remote_target::getpkt_or_notif_sane): Likewise.
13633 (class remote_target) <putpkt>: New overload.
13634 (remote_target::read_frame): Change type of "buf_p". Remove
13635 sizeof_p parameter.
13636 (packet_ok): New overload.
13637 (packet_check_result): New overload.
13638 Update all uses.
13639
bb277751
TT
136402019-01-14 Tom Tromey <tom@tromey.com>
13641
13642 * remote-notif.c (handle_notification, remote_notif_ack)
13643 (remote_notif_parse): Make "buf" const.
13644 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13645 const.
13646 (remote_notif_parse, remote_notif_ack, handle_notification):
13647 Likewise.
13648 * remote.c (remote_notif_stop_parse): Make "buf" const.
13649 (remote_target::remote_parse_stop_reply): Make "buf" const.
13650 (remote_notif_stop_ack): Make "buf" const.
13651
05be00a8
TT
136522019-01-14 Tom Tromey <tom@tromey.com>
13653
13654 * remote.c (remote_console_output): Make parameter const.
13655
491adeca
TT
136562019-01-14 Tom Tromey <tom@tromey.com>
13657
13658 * target-debug.h (target_debug_print_signals): Constify.
13659 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13660 * procfs.c (procfs_target::pass_signals): Update.
13661 * linux-nat.c (linux_nat_target::pass_signals): Update.
13662 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13663 * target-delegates.c: Rebuild.
13664 * remote.c (remote_target::program_signals): Update.
13665 (remote_target::pass_signals): Update.
13666 * target.c (target_pass_signals): Constify argument.
13667 (target_program_signals): Likewise.
13668 * target.h (struct target_ops) <pass_signals, program_signals>:
13669 Constify argument.
13670 (target_pass_signals, target_program_signals): Constify argument.
13671
bbd94648
TT
136722019-01-14 Tom Tromey <tom@tromey.com>
13673
13674 PR tui/28819:
13675 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13676
6f072a10
PFC
136772019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13678
13679 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13680 field.
13681 * rs6000-tdep.c: Include reggroups.h.
13682 (IS_V_ALIAS_PSEUDOREG): Define.
13683 (rs6000_register_name): Return names for the "vX" aliases.
13684 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13685 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13686 aliases. Call default_register_reggroup_p for all other
13687 pseudo-registers.
13688 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13689 New functions.
13690 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13691 Handle "vX" aliases.
13692 (v_alias_pseudo_register_collect): New function.
13693 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13694 (rs6000_gdbarch_init): Initialize "vX" aliases as
13695 pseudo-registers. Restore registration of
13696 rs6000_pseudo_register_reggroup_p with
13697 set_tdesc_pseudo_register_reggroup_p.
13698
1a782351
MF
136992019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13700
13701 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13702 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13703 set_gdbarch_num_pseudo_regs.
13704
d73cff18
PW
137052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13706
13707 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13708 Remove arg prefixname, add do_set and do_show.
13709 Add member functions set_list and show_list.
13710 * cli/cli-style.c (class cli_style_option): Update accordingly.
13711 (style_set_list): Move to file scope.
13712 (style_show_list): Likewise.
13713 (set_style): Call help_list.
13714 (show_style): Call cmd_show_list.
13715 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13716 Update to use the new macro.
13717
60a90376
JB
137182019-10-12 Joel Brobecker <brobecker@adacore.com>
13719
13720 * ada-lang.c (_initialize_ada_language): Expand the help text
13721 for the "catch exception" command.
13722
9d7c67bf
PW
137232019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13724
13725 * symtab.c (matching_obj_sections): Initialize obj,
13726 declare it closer to its usage.
13727
7cf47dc4
TT
137282019-01-10 Tom Tromey <tom@tromey.com>
13729
13730 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13731 (basic_inf_threads_range): Remove.
13732 (inf_threads_range, inf_non_exited_threads_range)
13733 (safe_inf_threads_range): Use next_adapter.
13734
d3cb6808
KS
137352019-01-10 Keith Seitz <keiths@redhat.com>
13736
13737 PR gdb/23712
13738 PR symtab/23010
13739 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13740 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13741
63a20375
KS
137422019-01-10 Keith Seitz <keiths@redhat.com>
13743
13744 PR gdb/23712
13745 PR symtab/23010
13746 * dictionary.c (pending_to_vector): Remove.
13747 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13748 Remove _1 suffix, replacing functions of the same name. Update
13749 all callers.
13750 (dict_create_hashed, dict_create_hashed_expandable)
13751 (dict_create_linear, dict_create_linear_expandable, dict_free)
13752 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13753 Make functions static.
13754
b026f593
KS
137552019-01-10 Keith Seitz <keiths@redhat.com>
13756
13757 PR gdb/23712
13758 PR symtab/23010
13759 * dictionary.h (struct dictionary): Replace declaration with
13760 multidictionary.
13761 (dict_create_hashed, dict_create_hashed_expandable)
13762 (dict_create_linear, dict_create_linear_expandable)
13763 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13764 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13765 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13766 taking multidictionary argument.
13767 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13768 * block.h (struct block) <dict>: Change to multidictionary
13769 and rename `multidict'.
13770 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13771 symmisc.c: Update all dictionary references to multidictionary.
13772
c7748ee9
KS
137732019-01-10 Keith Seitz <keiths@redhat.com>
13774
13775 PR gdb/23712
13776 PR symtab/23010
13777 * dictionary.c: Include unordered_map.
13778 (pending_to_vector): New function.
13779 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13780 Rewrite the non-"_1" functions to take vector instead
13781 of linked list.
13782 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13783 "new" _1 versions of the same name.
13784 (multidictionary): Define.
13785 (std::hash<enum language): New definition.
13786 (collate_pending_symbols_by_language, mdict_create_hashed)
13787 (mdict_create_hashed_expandable, mdict_create_linear)
13788 (mdict_create_linear_expandable, mdict_free)
13789 (find_language_dictionary, create_new_language_dictionary)
13790 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13791 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13792 (mdict_size, mdict_empty): New functions.
13793 * dictionary.h (mdict_iterator): Define.
13794
67aa1f3c
PA
137952019-01-10 Pedro Alves <palves@redhat.com>
13796
13797 * breakpoint.c (read_uploaded_action)
13798 (create_tracepoint_from_upload): Adjust to use
13799 gdb::unique_xmalloc_ptr.
13800 * ctf.c (ctf_write_uploaded_tp):
13801 (SET_ARRAY_FIELD): Use emplace_back.
13802 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13803 * tracefile-tfile.c (tfile_write_uploaded_tp):
13804 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13805 gdb::unique_xmalloc_ptr.
13806 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13807 at_string, cond_string, cmd_strings>: Replace char pointers
13808 with gdb::unique_xmalloc_ptr.
13809
2f667667
PA
138102019-01-10 Pedro Alves <palves@redhat.com>
13811
13812 * solib-target.c (library_list_start_library): Don't xstrdup name.
13813
36cb7237
PA
138142019-01-10 Pedro Alves <palves@redhat.com>
13815
13816 * mdebugread.c (parse_partial_symbols): Use
13817 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13818
da584958
AB
138192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13820
13821 * linux-fork.c (scoped_switch_fork_info)
13822 <~scoped_switch_fork_info>: Fix incorrect variable name.
13823
1ef8573c
AB
138242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13825
13826 * linux-fork.c (scoped_switch_fork_info)
13827 <scoped_switch_fork_info>: Make explicit.
13828 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13829
8d7bcccb
TT
138302019-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * objfiles.h (objfile::reset_psymtabs): Update.
13833 * objfiles.c (objfile::objfile): Update.
13834 * psymtab.h (psymtab_storage::obstack): Update.
13835 (psymtab_storage::m_obstack): Use gdb::optional.
13836 (class psymtab_storage): Update comment. Remove objfile
13837 parameter.
13838 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13839
b596a3c7
TT
138402019-01-10 Tom Tromey <tom@tromey.com>
13841
13842 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13843 <free_psymtabs>: Now private.
13844 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13845 (allocate_psymtab): Use new method.
13846
a9342b62
TT
138472019-01-10 Tom Tromey <tom@tromey.com>
13848
13849 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13850 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13851 * mdebugread.c (parse_partial_symbols): Use
13852 allocate_dependencies.
13853 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13854 allocate_dependencies.
13855 (process_psymtab_comp_unit_reader)
13856 (build_type_psymtab_dependencies): Likewise.
13857 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13858
5af70966
TT
138592019-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13862 PSYMBOL_SET_LANGUAGE.
13863 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13864
5923a04c
TT
138652019-01-10 Tom Tromey <tom@tromey.com>
13866
13867 * psymtab.h (psymtab_storage::obstack): New method.
13868 <m_obstack>: Rename from obstack; now private.
13869 * psymtab.c (psymtab_storage): Update.
13870 * dwarf2read.c (create_addrmap_from_index)
13871 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13872 Update.
13873
6d6a12bf
TT
138742019-01-10 Tom Tromey <tom@tromey.com>
13875
13876 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13877 * objfiles.h (objfile::reset_psymtabs): New method.
13878
d320c2b5
TT
138792019-01-10 Tom Tromey <tom@tromey.com>
13880
13881 * symmisc.c (print_symbol_bcache_statistics): Update.
13882 (print_objfile_statistics): Update.
13883 * symfile.c (reread_symbols): Update.
13884 * psymtab.h (class psymtab_storage): New.
13885 * psymtab.c (psymtab_storage): New constructor.
13886 (~psymtab_storage): New destructor.
13887 (require_partial_symbols): Update.
13888 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13889 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13890 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13891 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13892 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13893 (start_psymtab_common, end_psymtab_common)
13894 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13895 (allocate_psymtab): Update.
13896 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13897 Update.
13898 (dump_psymtab_addrmap, maintenance_print_psymbols)
13899 (maintenance_check_psymtabs): Update.
13900 (class objfile_psymtabs): Move to objfiles.h.
13901 * psympriv.h (discard_psymtab): Now inline.
13902 (psymtab_discarder::psymtab_discarder): Update.
13903 (psymtab_discarder::~psymtab_discarder): Update.
13904 (ALL_OBJFILE_PSYMTABS): Rewrite.
13905 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13906 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13907 Remove fields.
13908 <partial_symtabs>: New field.
13909 (class objfile_psymtabs): Move from psymtab.h. Update.
13910 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13911 psymbol_cache.
13912 (objfile::~objfile): Don't destroy psymbol_cache.
13913 * mdebugread.c (parse_partial_symbols): Update.
13914 * dwarf2read.c (create_addrmap_from_index)
13915 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13916 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13917 (add_partial_subprogram, dwarf2_ranges_read): Update.
13918 * dwarf-index-write.c (write_address_map)
13919 (write_one_signatured_type, recursively_write_psymbols)
13920 (class debug_names, class debug_names, write_psymtabs_to_index):
13921 Update.
13922
1d94a5a3
TT
139232019-01-10 Tom Tromey <tom@tromey.com>
13924
13925 * symtab.h (SYMBOL_SET_NAMES): Update.
13926 (symbol_set_names): Update.
13927 (MSYMBOL_SET_NAMES): Update.
13928 * symtab.c (symbol_set_names): Change argument to be an
13929 objfile_per_bfd_storage.
13930 * psymtab.c (add_psymbol_to_bcache): Update.
13931 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13932
0f14768a
TT
139332019-01-10 Tom Tromey <tom@tromey.com>
13934
13935 * symtab.c (create_demangled_names_hash): Change argument to be an
13936 objfile_per_bfd_storage.
13937 (symbol_set_names): Update.
13938
6eee24ce
TT
139392019-01-10 Tom Tromey <tom@tromey.com>
13940
13941 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13942 init_psymbol_list.
13943 * psymtab.c (init_psymbol_list): Do nothing if already called.
13944 * psympriv.h (init_psymbol_list): Add comment.
13945 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13946 init_psymbol_list.
13947 * dbxread.c (dbx_symfile_read): Unconditionally call
13948 init_psymbol_list.
13949
75aedd27
TT
139502019-01-10 Tom Tromey <tom@tromey.com>
13951
13952 * xcoffread.c (scan_xcoff_symtab): Update.
13953 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13954 "where".
13955 * mdebugread.c (parse_partial_symbols)
13956 (handle_psymbol_enumerators): Update.
13957 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13958 * dbxread.c (read_dbx_symtab): Update.
13959 * psympriv.h (psymbol_placement): New enum.
13960 (add_psymbol_to_list): Update.
13961
939652a5
TT
139622019-01-10 Tom Tromey <tom@tromey.com>
13963
13964 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13965 static_psymbols parameters.
13966 (scan_xcoff_symtab): Update.
13967 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13968 static_psymbols parameters.
13969 * psympriv.h (start_psymtab_common): Update.
13970 * mdebugread.c (parse_partial_symbols): Update.
13971 * dwarf2read.c (create_partial_symtab): Update.
13972 * dbxread.c (read_dbx_symtab): Update.
13973 (start_psymtab): Remove global_psymbols and static_psymbols
13974 parameters.
13975
baa62830
TT
139762019-01-10 Tom Tromey <tom@tromey.com>
13977
13978 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13979 * psymtab.c (allocate_psymtab): Add comment.
13980 * psympriv.h (allocate_psymtab): Add comment.
13981 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13982 initializations.
13983 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13984
0e8f53ba
TT
139852019-01-10 Tom Tromey <tom@tromey.com>
13986
13987 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13988 Don't declare.
13989 * mipsread.c: Include mdebugread.h.
13990 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13991 Declare.
13992 * elfread.c: Include mdebugread.h.
13993
b22a7c6a
TT
139942019-01-09 Tom Tromey <tom@tromey.com>
13995
13996 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13997 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13998 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13999 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14000 (psym_lookup_symbol, psym_find_last_source_symtab)
14001 (psym_forget_cached_source_info, psym_print_stats)
14002 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14003 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14004 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14005 (psym_find_compunit_symtab_by_address)
14006 (maintenance_print_psymbols, maintenance_info_psymtabs)
14007 (maintenance_check_psymtabs): Use ranged for.
14008 * psymtab.h (class objfile_psymtabs): New.
14009 (require_partial_symbols): Return objfile_psymtabs.
14010 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14011
3b9d3ac2
TT
140122019-01-09 Tom Tromey <tom@tromey.com>
14013
14014 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14015 (find_pc_mapped_section, list_overlays_command)
14016 (map_overlay_command, unmap_overlay_command)
14017 (simple_overlay_update): Use all_objfiles.
14018 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14019 * printcmd.c (info_symbol_command): Use all_objfiles.
14020 * objfiles.h (ALL_OBJSECTIONS): Remove.
14021 * maint.c (maintenance_translate_address): Use all_objfiles.
14022 * gcore.c (gcore_create_callback): Use all_objfiles.
14023 (objfile_find_memory_regions): Likewise.
14024
8b31193a
TT
140252019-01-09 Tom Tromey <tom@tromey.com>
14026
14027 * symtab.c (find_line_symtab, info_sources_command)
14028 (make_source_files_completion_list): Use objfile_compunits.
14029 * source.c (select_source_symtab): Use objfile_compunits.
14030 * objfiles.h (struct objfile): Update comment.
14031 (ALL_OBJFILES): Remove.
14032 (ALL_FILETABS): Remove.
14033 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14034 objfile_compunits.
14035
d5da8b3c
TT
140362019-01-09 Tom Tromey <tom@tromey.com>
14037
14038 * symmisc.c (print_objfile_statistics, dump_objfile)
14039 (maintenance_print_symbols): Use compunit_filetabs.
14040 * source.c (forget_cached_source_info_for_objfile): Use
14041 compunit_filetabs.
14042 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14043 (ALL_FILETABS): Use compunit_filetabs.
14044 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14045 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14046
5accd1a0
TT
140472019-01-09 Tom Tromey <tom@tromey.com>
14048
14049 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14050 (compunit_filetabs): New.
14051 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14052 compunit_filetabs.
14053 (info_sources_command, make_source_files_completion_list): Remove
14054 declaration.
14055 * symmisc.c (print_objfile_statistics, dump_objfile)
14056 (maintenance_print_symbols): Remove declaration.
14057 (maintenance_info_symtabs): Use compunit_filetabs.
14058 (maintenance_info_line_tables): Likewise.
14059 * source.c (select_source_symtab): Change local variable name.
14060 (forget_cached_source_info_for_objfile): Remove declaration.
14061 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14062 * objfiles.c (objfile_relocate1): Remove declaration.
14063 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14064 declaration.
14065 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14066 * coffread.c (coff_symtab_read): Remove declaration.
14067 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14068 compunit_filetabs.
14069
d8aeb77f
TT
140702019-01-09 Tom Tromey <tom@tromey.com>
14071
14072 * symtab.c (lookup_objfile_from_block)
14073 (find_pc_sect_compunit_symtab, search_symbols)
14074 (default_collect_symbol_completion_matches_break_on): Use
14075 objfile_compunits.
14076 * objfiles.h (ALL_COMPUNITS): Remove.
14077 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14078 * cp-support.c (add_symbol_overload_list_qualified): Use
14079 objfile_compunits.
14080 * ada-lang.c (ada_collect_symbol_completion_matches)
14081 (ada_add_global_exceptions): Use objfile_compunits.
14082
592553c4
TT
140832019-01-09 Tom Tromey <tom@tromey.com>
14084
14085 * source.c (select_source_symtab)
14086 (forget_cached_source_info_for_objfile): Remove declaration.
14087 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14088 declaration.
14089 * maint.c (count_symtabs_and_blocks): Remove declaration.
14090 * cp-support.c (add_symbol_overload_list_qualified): Remove
14091 declaration.
14092 * coffread.c (coff_symtab_read): Remove declaration.
14093 * symtab.c (lookup_symbol_in_objfile_symtabs)
14094 (basic_lookup_transparent_type_1): Use objfile_compunits.
14095 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14096 (info_sources_command, search_symbols)
14097 (default_collect_symbol_completion_matches_break_on)
14098 (make_source_files_completion_list): Remove declaration.
14099 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14100 (ada_collect_symbol_completion_matches)
14101 (ada_add_global_exceptions): Remove declaration.
14102 * linespec.c (iterate_over_all_matching_symtabs): Use
14103 objfile_compunits.
14104 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14105 (class objfile_compunits): New.
14106 (ALL_COMPUNITS): Use objfile_compunits.
14107 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14108 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14109 objfile_compunits.
14110 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14111
5325b9bf
TT
141122019-01-09 Tom Tromey <tom@tromey.com>
14113
14114 * symtab.c (search_symbols)
14115 (default_collect_symbol_completion_matches_break_on): Use
14116 objfile_msymbols.
14117 * ada-lang.c (ada_lookup_simple_minsym)
14118 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14119 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14120 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14121 objfile_msymbols.
14122 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14123 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14124 * objc-lang.c (find_methods): Use objfile_msymbols.
14125 (info_selectors_command, info_classes_command): Likewise.
14126 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14127 * objfiles.h (class objfile_msymbols): New.
14128 (ALL_OBJFILE_MSYMBOLS): Remove.
14129 (ALL_MSYMBOLS): Remove.
14130
cac85af2
TT
141312019-01-09 Tom Tromey <tom@tromey.com>
14132
14133 * common/next-iterator.h (next_adapter): Add Iterator template
14134 parameter.
14135 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14136 (class all_objfiles_safe): New.
14137 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14138 * objfiles.c (put_objfile_before): Update comment.
14139 (add_separate_debug_objfile): Likewise.
14140 (free_all_objfiles): Use all_objfiles_safe.
14141 (objfile_purge_solibs): Likewise.
14142
aed57c53
TT
141432019-01-09 Tom Tromey <tom@tromey.com>
14144
14145 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14146 (expand_symtab_containing_pc, lookup_static_symbol)
14147 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14148 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14149 all_objfiles.
14150 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14151 * breakpoint.c (create_overlay_event_breakpoint)
14152 (create_longjmp_master_breakpoint)
14153 (create_std_terminate_master_breakpoint)
14154 (create_exception_master_breakpoint): Use all_objfiles.
14155 * linux-thread-db.c (try_thread_db_load_from_pdir)
14156 (has_libpthread): Use all_objfiles.
14157 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14158 * linespec.c (iterate_over_all_matching_symtabs)
14159 (search_minsyms_for_name): Use all_objfiles.
14160 * maint.c (maintenance_info_sections): Use all_objfiles.
14161 * main.c (captured_main_1): Use all_objfiles.
14162 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14163 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14164 * guile/scm-pretty-print.c
14165 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14166 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14167 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14168 (maintenance_print_msymbols): Use all_objfiles.
14169 * source.c (select_source_symtab): Use all_objfiles.
14170 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14171 * symfile.c (remove_symbol_file_command)
14172 (expand_symtabs_matching, map_symbol_filenames): Use
14173 all_objfiles.
14174 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14175 all_objfiles.
14176 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14177 * objc-lang.c (find_methods): Use all_objfiles.
14178 * objfiles.c (have_partial_symbols, have_full_symbols)
14179 (have_minimal_symbols, qsort_cmp)
14180 (default_iterate_over_objfiles_in_search_order): Use
14181 all_objfiles.
14182 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14183 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14184 (maintenance_check_psymtabs): Use all_objfiles.
14185 (ALL_PSYMTABS): Remove.
14186 * compile/compile-object-run.c (do_module_cleanup): Use
14187 all_objfiles.
14188 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14189 * cp-support.c (add_symbol_overload_list_qualified): Use
14190 all_objfiles.
14191 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14192 Use all_objfiles.
14193 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14194 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14195 all_objfiles.
14196 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14197 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14198 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14199 Uses all_objfiles.
14200 * solib.c (solib_read_symbols): Use all_objfiles
14201
99d89cde
TT
142022019-01-09 Tom Tromey <tom@tromey.com>
14203
14204 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14205 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14206 all_objfiles.
14207 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14208 * symmisc.c (print_symbol_bcache_statistics)
14209 (print_objfile_statistics, maintenance_print_objfiles)
14210 (maintenance_info_symtabs, maintenance_check_symtabs)
14211 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14212 all_objfiles.
14213 * source.c (forget_cached_source_info): Use all_objfiles.
14214 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14215 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14216 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14217 * objfiles.c (update_section_map): Use all_objfiles.
14218 (shared_objfile_contains_address_p): Likewise.
14219 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14220 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14221
21708325
TT
142222019-01-09 Tom Tromey <tom@tromey.com>
14223
14224 * common/next-iterator.h: New file.
14225 * objfiles.h (class all_objfiles): New.
14226 (struct objfile_iterator): New.
14227
669e09f6
PW
142282019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14229
14230 * NEWS: Move the description of the changed "frame", "select-frame",
14231 and "info frame" commands to the Changed commands section.
14232
041be526
SM
142332019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14234
14235 * gdbtypes.c (check_stub_method_group): Remove handling of old
14236 mangling schemes.
14237 * linespec.c (find_methods): Likewise.
14238 * stabsread.c (read_member_functions): Likewise.
14239 * valops.c (search_struct_method): Likewise.
14240 (value_struct_elt_for_reference): Likewise.
14241 * NEWS: Mention this change.
14242
0e2a2133
AB
142432019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14244
14245 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14246 print_source_lines.
14247 * source.c (print_source_lines_base): Update line number check.
14248 (print_source_lines): New function.
14249 (source_lines_range::source_lines_range): New function.
14250 * source.h (class source_lines_range): New class.
14251 (print_source_lines): New declaration.
14252
1055a3b4
PW
142532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14254
14255 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14256
cfeadda5
TT
142572019-01-08 Tom Tromey <tom@tromey.com>
14258 Simon Marchi <simon.marchi@ericsson.com>
14259
14260 PR gdb/24060
14261 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14262 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14263 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14264 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14265 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14266 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14267
583068ca
AB
142682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14269
14270 * source.c (select_source_symtab): Move header comment to
14271 declaration in source.h.
14272 (forget_cached_source_info_for_objfile): Likewise.
14273 (forget_cached_source_info): Likewise.
14274 (identify_source_line): Likewise.
14275 * source.h (identify_source_line): Move declaration from symtab.h
14276 and add comment from source.c
14277 (print_source_lines): Likewise.
14278 (forget_cached_source_info_for_objfile): Likewise.
14279 (forget_cached_source_info): Likewise.
14280 (select_source_symtab): Likewise.
14281 (enum print_source_lines_flag): Move definition from symtab.h.
14282 * symtab.h (identify_source_line): Move declaration to source.h.
14283 (print_source_lines): Likewise.
14284 (forget_cached_source_info_for_objfile): Likewise.
14285 (forget_cached_source_info): Likewise.
14286 (select_source_symtab): Likewise.
14287 (enum print_source_lines_flag): Move definition to source.h.
14288 * tui/tui-hooks.c: Add 'source.h' include.
14289
ec98a4ad
AB
142902019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14291
14292 * source.c (print_source_lines_base): Handle requests to print
14293 reverse line number sequences, and guard against empty lines
14294 string.
14295
62ea19c1
AB
142962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14297
14298 * source.c (print_source_lines_base): Fix skip of '\r' if next
14299 character is '\n'.
14300
9d30e1fd
TT
143012019-01-06 Tom Tromey <tom@tromey.com>
14302
14303 * c-exp.y (struct c_parse_state) <macro_original_text,
14304 expansion_obstack>: New member.
14305 (macro_original_text, expansion_obstack): Remove globals.
14306 (scan_macro_expansion, scanning_macro_expansion)
14307 (finished_macro_expansion): Update.
14308 (scan_macro_cleanup): Remove.
14309 (yylex, c_parse): Update.
14310
c65bac38
TT
143112019-01-06 Tom Tromey <tom@tromey.com>
14312
14313 * c-exp.y (struct c_parse_state) <strings>: New member.
14314 (operator_stoken): Update.
14315
02e12e38
TT
143162019-01-06 Tom Tromey <tom@tromey.com>
14317
14318 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14319 (union type_stack_elt) <typelist_val>: Now a pointer to
14320 std::vector.
14321 (type_stack_cleanup): Don't declare.
14322 (push_typelist): Update.
14323 * parse.c (pop_typelist): Return a std::vector.
14324 (push_typelist): Take a std::vector.
14325 (follow_types): Update. Do not free args.
14326 (type_stack_cleanup): Remove.
14327 * c-exp.y (struct c_parse_state): New.
14328 (cpstate): New global.
14329 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14330 (nonempty_typelist): Update.
14331 (func_mod): Create a new vector.
14332 (c_parse): Create a c_parse_state.
14333 (check_parameter_typelist): Do not delete params.
14334 (function_method): Update. Do not delete type_list.
14335
f097f5ad
TT
143362019-01-06 Tom Tromey <tom@tromey.com>
14337
14338 PR gdb/28155:
14339 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14340 check_typedef.
14341 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14342 (print_return_value): Likewise.
14343
d2adf9f1
TT
143442019-01-05 Tom Tromey <tom@tromey.com>
14345
14346 * contrib/cleanup_check.py: Remove.
14347 * contrib/gcc-with-excheck: Remove.
14348 * contrib/exsummary.py: Remove.
14349 * contrib/excheck.py: Remove.
14350
2eab46b1
JB
143512019-01-05 Joel Brobecker <brobecker@adacore.com>
14352
14353 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14354 NULL. Initialize tpprev to NULL instead of assigning it
14355 to NULL on the next statement.
14356 * windows-nat.c (windows_delete_thread): Remove check for
14357 main_thread_id before printing thread exit notifications.
14358 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14359 Remove thread ID check against main_thread_id.
14360 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14361 windows_delete_thread.
14362 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14363
48c5e7e2
TT
143642019-01-04 Tom Tromey <tom@tromey.com>
14365
14366 * compile/compile.c (_initialize_compile): Use upper case for
14367 metasyntactic variables.
14368 * symmisc.c (_initialize_symmisc): Use upper case for
14369 metasyntactic variables.
14370 * psymtab.c (_initialize_psymtab): Use upper case for
14371 metasyntactic variables.
14372 * demangle.c (demangle_command): Use upper case for metasyntactic
14373 variables.
14374 (_initialize_demangler): Likewise.
14375 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14376 variables.
14377
986041cd
TT
143782019-01-03 Tom Tromey <tom@tromey.com>
14379
14380 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14381
7c711119
TT
143822019-01-03 Tom Tromey <tom@tromey.com>
14383
14384 * python/py-symtab.c (salpy_str): Update.
14385 (struct salpy_sal_object) <symtab>: Now a PyObject.
14386 (salpy_dealloc): Update.
14387 (del_objfile_sal): Use gdbpy_ref.
14388
1b20edf0
TT
143892019-01-03 Tom Tromey <tom@tromey.com>
14390
14391 * python/py-type.c (convert_field): Use new_reference. Return
14392 gdbpy_ref.
14393 (make_fielditem): Return gdbpy_ref.
14394 (typy_fields): Update.
14395 (typy_getitem): Update.
14396 (field_name): Return gdbpy_ref. Use new_reference.
14397 (typy_iterator_iternext): Update.
14398
ea41325b
TT
143992019-01-03 Tom Tromey <tom@tromey.com>
14400
14401 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14402
2a3c71d6
TT
144032019-01-03 Tom Tromey <tom@tromey.com>
14404
14405 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14406 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14407 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14408 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14409 (pspy_set_type_printers): Likewise.
14410 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14411 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14412 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14413 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14414 (objfpy_set_type_printers): Likewise.
14415
5c329e6a
TT
144162019-01-03 Tom Tromey <tom@tromey.com>
14417
14418 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14419 (gdbpy_print_stack): Use gdbpy_err_fetch.
14420 * python/python-internal.h (class gdbpy_err_fetch): New class.
14421 (class gdbpy_enter) <m_error_type, m_error_value,
14422 m_error_traceback>: Remove.
14423 <m_error>: New member.
14424 (gdbpy_exception_to_string): Don't declare.
14425 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14426 * python/py-value.c (convert_value_from_python): Use
14427 gdbpy_err_fetch.
14428 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14429 gdbpy_exception_to_string.
14430 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14431 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14432 gdbpy_err_fetch.
14433
169bb27b
AB
144342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14435
14436 * linux-nat.c (delete_lwp_cleanup): Delete.
14437 (struct lwp_deleter): New struct.
14438 (lwp_info_up): New typedef.
14439 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14440 lwp_info_up.
14441
a07c8880
AB
144422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14443
14444 * linux-fork.c (class scoped_switch_fork_info): New class.
14445 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14446
26089c49
AB
144472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14448
14449 * valops.c (find_overload_match): Remove use of null_cleanup, and
14450 calls to do_cleanups.
14451
06d3e5b0
AB
144522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14453
14454 * compile/compile-cplus-types.c
14455 (compile_cplus_instance::decl_name): Handle changes to
14456 cp_func_name.
14457 * cp-support.c (cp_func_name): Update header comment, update
14458 return type.
14459 * cp-support.h (cp_func_name): Update return type in declaration.
14460 * valops.c (find_overload_match): Move temp_func local to top
14461 level of function and change its type. Use temp_func to hold and
14462 delete temporary string obtained from cp_func_name.
14463
66644cd3
AB
144642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14465
14466 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14467 gdb::char_vector, remove cleanup, and update uses of `msg`.
14468
592d8c0a
JW
144692019-01-03 Jim Wilson <jimw@sifive.com>
14470
14471 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14472
c55d06ec
TT
144732019-01-02 Tom Tromey <tom@tromey.com>
14474
14475 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14476 (tdesc_parse_xml): Remove cleanups.
14477 * target-descriptions.h (make_cleanup_free_target_description):
14478 Don't declare.
14479 (target_desc_deleter): New struct.
14480 (target_desc_up): New typedef.
14481 * target-descriptions.c (target_desc_deleter::operator()): Rename
14482 from free_target_description.
14483 (make_cleanup_free_target_description): Remove.
14484
3a6ae42d
TT
144852019-01-02 Tom Tromey <tom@tromey.com>
14486
14487 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14488 constructor, destructor.
14489 (linespec_parser): Remove typedef.
14490 (~linespec_parser): Rename from linespec_parser_delete.
14491 (linespec_lex_to_end, linespec_complete_label)
14492 (linespec_complete): Update.
14493 (decode_line_full): Remove cleanups.
14494 (decode_line_1): Update.
14495
61fd3e73
TT
144962019-01-02 Tom Tromey <tom@tromey.com>
14497
14498 * python/python-internal.h (inferior_to_inferior_object): Change
14499 return type.
14500 * python/py-exitedevent.c (create_exited_event_object): Update.
14501 * python/py-inferior.c (inferior_to_inferior_object): Return
14502 gdbpy_ref.
14503 (python_new_inferior, python_inferior_deleted)
14504 (thread_to_thread_object, delete_thread_object)
14505 (build_inferior_list, gdbpy_selected_inferior): Update.
14506 * python/py-infthread.c (create_thread_object): Update. Also fail
14507 if inferior_to_inferior_object fails.
14508
d20172fc
SM
145092019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14510
14511 * inferior.h (class inferior) <displaced_step_state>: New field.
14512 * infrun.h (struct displaced_step_state): Move here from
14513 infrun.c. Initialize fields, add constructor.
14514 <inf>: Remove field.
14515 <reset>: New method.
14516 * infrun.c (struct displaced_step_inferior_state): Move to
14517 infrun.h.
14518 (displaced_step_inferior_states): Remove.
14519 (get_displaced_stepping_state): Adust.
14520 (displaced_step_in_progress_any_inferior): Adjust.
14521 (displaced_step_in_progress_thread): Adjust.
14522 (displaced_step_in_progress): Adjust.
14523 (add_displaced_stepping_state): Remove.
14524 (get_displaced_step_closure_by_addr): Adjust.
14525 (remove_displaced_stepping_state): Remove.
14526 (infrun_inferior_exit): Call displaced_step_state.reset.
14527 (use_displaced_stepping): Don't check for NULL.
14528 (displaced_step_prepare_throw): Call
14529 get_displaced_stepping_state.
14530 (displaced_step_fixup): Don't check for NULL.
14531 (prepare_for_detach): Don't check for NULL.
14532
e3319240
PW
145332019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14534
14535 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14536 in case of call that did not complete.
14537
5d36dfb9
AU
145382019-01-02 Andrey Utkin <autkin@undo.io>
14539
14540 * symfile.c (find_separate_debug_file): Fix search of debug files for
14541 remote debuggee.
14542
8833fbf0
TT
145432019-01-02 Tom Tromey <tom@tromey.com>
14544
14545 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14546 indentation.
14547 * python/py-frame.c (frapy_older): Remove cast.
14548 (frapy_newer): Likewise.
14549 * python/py-breakpoint.c (local_setattro): Remove cast.
14550 * python/py-arch.c (archpy_name): Remove local variable.
14551 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14552
4ada3dfd
JB
145532019-01-02 Joel Brobecker <brobecker@adacore.com>
14554
14555 * unittests/basic_string_view/element_access/char/empty.cc:
14556 Fix year range in copyright header.
14557
113b7b81
AB
145582019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14559
14560 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14561 Delete.
14562 <operator==>: Update with for removed field.
14563 <hash>: Likewise.
14564 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14565 <isa_features>: ...this.
14566 <abi_features>: New field.
14567 (riscv_isa_flen): Update comment.
14568 (riscv_abi_xlen): New declaration.
14569 (riscv_abi_flen): New declaration.
14570 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14571 isa_features.
14572 (riscv_abi_xlen): New function.
14573 (riscv_isa_flen): Update to get answer from isa_features.
14574 (riscv_abi_flen): New function.
14575 (riscv_has_fp_abi): Update to get answer from abi_features.
14576 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14577 xlen and flen.
14578 (riscv_call_info) <xlen, flen>: Update comment.
14579 (riscv_call_arg_struct): Remove invalid assertions
14580 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14581 is removed.
14582 (riscv_gdbarch_init): Gather isa features and abi features
14583 separately, ensure both match on the gdbarch when reusing an old
14584 gdbarch. Relax an error check to allow 32-bit abi float to run on
14585 a target with 64-bit float hardware.
14586
b18ca514
PW
145872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14588
14589 * source.c (search_command_helper): Stop reverse search
14590 when line 1 has been searched.
14591
ec70d8db
PW
145922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14593
14594 * record-full.c (record_full_base_target::close): Rewrite
14595 record_full_core_buf_list free logic.
14596
5b38f9c1
PW
145972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14598
14599 * break-catch-syscall.c (print_one_catch_syscall): xfree
14600 the last text.
14601
66d91b39
JB
146022019-01-01 Joel Brobecker <brobecker@adacore.com>
14603
14604 * top.c (print_gdb_version): Update Copyright year in version
14605 message.
14606
42a4f53d
JB
146072019-01-01 Joel Brobecker <brobecker@adacore.com>
14608
14609 Update copyright year range in all GDB files.
14610
7e955d83 146112019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14612
5bbd631d 14613 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14614
5bbd631d 14615For older changes see ChangeLog-2018.
c906108c
SS
14616\f
14617Local Variables:
14618mode: change-log
14619left-margin: 8
14620fill-column: 74
14621version-control: never
57da7796 14622coding: utf-8
c906108c 14623End:
5bbd631d 14624
This page took 2.806687 seconds and 4 git commands to generate.