Use strtok_r instead of strtok
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca3a04f6
CB
12019-11-06 Christian Biesinger <cbiesinger@google.com>
2
3 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4 * mi/mi-main.c (output_cores): Likewise.
5 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
6 (linux_xfer_osdata_modules): Likewise.
7 * remote.c (register_remote_support_xml): Likewise.
8 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
9 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
10
e0eac551
TT
112019-11-06 Tom Tromey <tom@tromey.com>
12
13 * tui/tui-interp.c: Don't include readline.h.
14 * tui/tui-hooks.c: Don't include readline.h.
15 * symmisc.c: Include tilde.h, not readline.h.
16 * symfile.c: Include tilde.h, not readline.h.
17 * source.c: Include tilde.h, not readline.h.
18 * solib.c: Include tilde.h, not readline.h.
19 * psymtab.c: Include tilde.h, not readline.h.
20 * exec.c: Include tilde.h, not readline.h.
21 * corelow.c: Include tilde.h, not readline.h.
22 * cli/cli-dump.c: Include tilde.h, not readline.h.
23 * cli/cli-cmds.c: Don't include readline.h.
24
825165c5
TT
252019-11-05 Tom Tromey <tom@tromey.com>
26
27 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
28 (tui_disassemble): Set addr_size.
29 (tui_disasm_window::set_contents): Use addr_size.
30
91ae903f
TT
312019-11-05 Tom Tromey <tom@tromey.com>
32
33 * rust-lang.c (rust_language_defn): Update.
34 * python/py-value.c (valpy_string): Call c_get_string.
35 * p-lang.c (pascal_language_defn): Update.
36 * opencl-lang.c (opencl_language_defn): Update.
37 * objc-lang.c (objc_language_defn): Update.
38 * m2-lang.c (m2_language_defn): Update.
39 * language.c (unknown_language_defn, auto_language_defn): Update.
40 (default_get_string): Remove.
41 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
42 * go-lang.c (go_language_defn): Update.
43 * f-lang.c (f_language_defn): Update.
44 * d-lang.c (d_language_defn): Update.
45 * c-lang.c (c_language_defn, cplus_language_defn)
46 (asm_language_defn, minimal_language_defn): Update.
47 * ada-lang.c (ada_language_defn): Update.
48 * language.h (struct language_defn) <la_get_string>: Remove.
49 (LA_GET_STRING): Remove.
50 (default_get_string): Don't declare.
51
1df2f9ef
TT
522019-11-05 Tom Tromey <tom@tromey.com>
53
54 * tui/tui-source.h (struct tui_source_window): Inline
55 constructor. Remove destructor.
56 <style_changed, m_observable>: Move to superclass.
57 * tui/tui-winsource.h (tui_copy_source_line): Declare.
58 (struct tui_source_window_base): Move private members to end.
59 <style_changed, m_observable>: Move from tui_source_window.
60 * tui/tui-winsource.c (tui_copy_source_line): Move from
61 tui-source.c. Rename from copy_source_line. Add special handling
62 for negative line number.
63 (tui_source_window_base::style_changed): Move from
64 tui_source_window.
65 (tui_source_window_base): Register observer.
66 (~tui_source_window_base): New.
67 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
68 rename.
69 (tui_source_window::set_contents): Use tui_copy_source_line.
70 (tui_source_window::tui_source_window): Move to tui-source.h.
71 (tui_source_window::~tui_source_window): Remove.
72 (tui_source_window::style_changed): Move to superclass.
73 * tui/tui-disasm.c (tui_disassemble): Create string file with
74 styling, when possible. Add "addr_size" parameter.
75 (tui_disasm_window::set_contents): Use tui_copy_source_line.
76 Don't compute maximum size.
77 (len_without_escapes): New function
78
5d051055
TT
792019-11-05 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
82 std::string.
83 * tui/tui-winsource.c (tui_show_source_line): Update.
84 * tui/tui-source.c (tui_source_window::set_contents): Update.
85 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
86
ade7beea
CB
872019-11-05 Christian Biesinger <cbiesinger@google.com>
88
89 * symtab.h (gdb_static_assert): Put && operator at the beginning
90 of the line instead of the end.
91
3573abe1
CB
922019-11-04 Christian Biesinger <cbiesinger@google.com>
93
94 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
95 and sizeof (symbol).
96 * symtab.h: Add a static_assert for sizeof (partial_symbol).
97
dae8b3eb
RO
982019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
99
100 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
101 * configure.host: Mark *-*-solaris2.10* obsolete.
102 * configure.tgt: Mark Solaris < 11 obsolete.
103 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
104 Update target triplet.
105
5df96a4e
TT
1062019-11-01 Tom Tromey <tromey@adacore.com>
107
108 * utils.c (print_sys_errmsg): Simplify.
109
b7481649
TT
1102019-11-01 Tom Tromey <tromey@adacore.com>
111
112 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
113
e48f6033
CB
1142019-11-01 Christian Biesinger <cbiesinger@google.com>
115
116 * configure: Regenerate.
117 * configure.ac: Remove check for strerror_r.
118 * gdbsupport/common.m4: Check for strerror_r.
119
bd5766ec
LM
1202019-11-01 Luis Machado <luis.machado@linaro.org>
121
122 PR gdb/25124
123
124 * arm-tdep.c (arm_per_objfile): Rename to ...
125 (arm_per_bfd): ... this.
126 (arm_objfile_data_key): Rename to ...
127 (arm_bfd_data_key): ... this.
128 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
129 data.
130 (arm_record_special_symbol): Likewise.
131
e1709896
AB
1322019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
135 end.
136 * c-typeprint.c (c_print_typedef): Likewise.
137 * f-typeprint.c (f_print_typedef): Likewise.
138 * m2-typeprint.c (m2_print_typedef): Likewise.
139 * p-typeprint.c (pascal_print_typedef): Likewise.
140 * rust-lang.c (rust_print_typedef): Likewise.
141 * symtab.c (print_symbol_info): Print a newline after calling
142 typedef_print.
143
165f8965
AB
1442019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * symtab.c (info_module_cmdlist): New variable.
147 (info_module_command): New function.
148 (search_module_symbols): New function.
149 (info_module_subcommand): New function.
150 (struct info_modules_var_func_options): New struct.
151 (info_modules_var_func_options_defs): New variable.
152 (make_info_modules_var_func_options_def_group): New function.
153 (info_module_functions_command): New function.
154 (info_module_variables_command): New function.
155 (info_module_var_func_command_completer): New function.
156 (_initialize_symtab): Register new 'info module functions' and
157 'info module variables' commands.
158 * symtab.h (typedef symbol_search_in_module): New typedef.
159 (search_module_symbols): Declare new function.
160 * NEWS: Mention new commands.
161
59c35742
AB
1622019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
165 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
166 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
167 MODULES_DOMAIN.
168 (scan_partial_symbols): Only create partial module symbols for non
169 declarations.
170 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
171 and MODULES_DOMAIN.
172 * symtab.c (search_domain_name): Likewise.
173 (search_symbols): Likewise.
174 (print_symbol_info): Likewise.
175 (symtab_symbol_info): Likewise.
176 (info_modules_command): New function.
177 (_initialize_symtab): Register 'info modules' command.
178 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
179 * NEWS: Mention new 'info modules' command.
180
aed61d02
PW
1812019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
182
183 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
184 and $_gdb_maint_setting_str.
185
9ad9b77d
PW
1862019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
187
188 * cli/cli-cmds.c (setting_cmd, value_from_setting)
189 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
190 (str_value_from_setting, gdb_setting_str_internal_fn)
191 (gdb_maint_setting_str_internal_fn): New functions.
192 (_initialize_cli_cmds): Define the new convenience functions.
193 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
194 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
195
8d6efaa2
CB
1962019-10-31 Christian Biesinger <cbiesinger@google.com>
197
198 * agent.c (set_can_use_agent): When the setting is turned on,
199 look up agent symbols if we don't have them yet.
200 (agent_new_objfile): Don't look up agent symbols when the agent
201 setting is off.
202
33cb1647
CB
2032019-10-31 Christian Biesinger <cbiesinger@google.com>
204
205 * config.in: Regenerate.
206
b231e86a
CB
2072019-10-31 Christian Biesinger <cbiesinger@google.com>
208
209 * configure: Regenerate.
210 * configure.ac: Check for strerror_r.
211 * gdbsupport/common-utils.h (safe_strerror): Change return value
212 to const char * and document that this function is now threadsafe.
213 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
214 thread_local and call strerror_r, if available.
215 * utils.c (perror_string): Update.
216 (print_sys_errmsg): Update.
217
a2726d4f
LM
2182019-10-31 Luis Machado <luis.machado@linaro.org>
219
220 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
221 objfile_key.
222 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
223 objfile to fetch per-bfd data.
224 (arm_find_exidx_entry): Likewise.
225
75cafaa6
CB
2262019-10-31 Christian Biesinger <cbiesinger@google.com>
227
228 * gdbsupport/agent.c (debug_agent): Change type to bool.
229 (use_agent): Likewise.
230 (all_agent_symbols_look_up): Likewise.
231 (agent_loaded_p): Change return value to bool.
232 (agent_look_up_symbols): Update.
233 (agent_capability_check): Change return value to bool.
234 * gdbsupport/agent.h (agent_loaded_p): Likewise.
235 (debug_agent): Change type to bool.
236 (use_agent): Likewise.
237 (agent_capability_check): Change return value to bool.
238
808590ec
CB
2392019-10-30 Christian Biesinger <cbiesinger@google.com>
240
241 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
242 (build_minimal_symbol_hash_tables): Code to clear the table moved
243 to clear_minimal_symbol_hash_tables.
244 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
245 when needed.
246
f18ad8a1
SM
2472019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * infcmd.c: Remove includes.
250 * infrun.c: Remove includes.
251
de93309a
SM
2522019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
255 (grow_vect): Remove declaration.
256 (ada_type_of_array): Remove declaration.
257 (ada_update_initial_language): Remove declaration.
258 (ada_fold_name): Remove declaration.
259 (ada_fill_in_ada_prototype): Remove declaration.
260 (user_select_syms): Remove declaration.
261 (get_selections): Remove declaration.
262 (ada_tag_type): Remove declaration.
263 (ada_value_tag): Remove declaration.
264 (ada_is_others_clause): Remove declaration.
265 (ada_in_variant): Remove declaration.
266 (ada_value_struct_elt): Remove declaration.
267 (ada_attribute_name): Remove declaration.
268 (ada_system_address_type): Remove declaration.
269 * ada-lang.c (ada_watch_location_expression): Make static.
270 (GROW_VECT): Move here from ada-lang.h.
271 (grow_vect): Make static.
272 (ada_update_initial_language): Make static.
273 (ada_fold_name): Make static.
274 (ada_type_of_array): Make static.
275 (encoded_ordered_before): Move up.
276 (sort_choices): Move up.
277 (print_signatures): Move up.
278 (ada_print_symbol_signature): Move up.
279 (get_selections): Move up and make static.
280 (user_select_syms): Move up and make static.
281 (ada_value_struct_elt): Move up and make static.
282 (ada_tag_type): Make static.
283 (ada_value_tag): Make static.
284 (ada_is_others_clause): Make static.
285 (ada_in_variant): Make static.
286 (ada_attribute_name): Make static.
287
cdc46a9f
SM
2882019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * ada-lang.c: Remove includes.
291 * ada-typeprint.c: Remove includes.
292 * ada-valprint.c: Remove includes.
293
90421c56
SM
2942019-10-29 Simon Marchi <simon.marchi@efficios.com>
295
296 * addrmap.c: Add static assertions of type size, moved from
297 _initialize_addrmap.
298 (_initialize_addrmap): Remove.
299
31edb802
CB
3002019-10-29 Christian Biesinger <cbiesinger@google.com>
301
302 * coffread.c (record_minimal_symbol): Update.
303 (process_coff_symbol): Update.
304 * dbxread.c (read_dbx_symtab): Update.
305 * dwarf2read.c (add_partial_symbol): Update.
306 (fixup_go_packaging): Update.
307 (load_partial_dies): Update.
308 (new_symbol): Update.
309 * elfread.c (record_minimal_symbol): Change signature to use
310 gdb::string_view instead of name+len.
311 (elf_symtab_read): Update.
312 (elf_rel_plt_read): Update.
313 * mdebugread.c (parse_partial_symbols): Update.
314 (handle_psymbol_enumerators): Update.
315 (new_symbol): Update.
316 * minsyms.c (minimal_symbol_reader::record_full): Change signature
317 to use gdb::string_view instead of name+len.
318 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
319 * psympriv.h (add_psymbol_to_list): Likewise.
320 * psymtab.c (add_psymbol_to_bcache): Likewise.
321 (add_psymbol_to_list): Likewise.
322 * stabsread.c (define_symbol): Update.
323 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
324 * symtab.h (SYMBOL_SET_NAMES): Likewise.
325 (symbol_set_names): Likewise.
326 * xcoffread.c (scan_xcoff_symtab): Update.
327
0c921b21
CB
3282019-10-29 Christian Biesinger <cbiesinger@google.com>
329
330 * symtab.h (symbol_set_names): Document that copy_name must be
331 set to true for non-nullterminated strings.
332 * symtab.c (symbol_set_names): Only make a nullterminated copy of
333 linkage_name if the entry was not found and we need to demangle.
334
35e65c49
CB
3352019-10-29 Christian Biesinger <cbiesinger@google.com>
336
337 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
338 * dwarf2-frame.c (bsearch_fde_cmp): Update.
339 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
340 * gdbsupport/gdb_binary_search.h: New file.
341
ed2a2229
CB
3422019-10-29 Christian Biesinger <cbiesinger@google.com>
343
344 * NEWS: Mention new --with-system-gdbinit-dir option.
345 * config.in: Regenerate.
346 * configure: Regenerate.
347 * configure.ac: Add new option --with-system-gdbinit-dir.
348 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
349 for a ".gdb" suffix.
350 * main.c (get_init_files): Change system_gdbinit argument to
351 a vector and return the files in SYSTEM_GDBINIT_DIR in
352 addition to SYSTEM_GDBINIT.
353 (captured_main_1): Update.
354 (print_gdb_help): Update.
355 * top.c (print_gdb_configuration): Also print the value of
356 SYSTEM_GDBINIT_DIR.
357
87f34879
CB
3582019-10-28 Christian Biesinger <cbiesinger@google.com>
359
360 * gdbsupport/common-utils.h (startswith): Add an overloaded version
361 that takes gdb::string_view arguments.
362
30baf67b
TV
3632019-10-26 Tom de Vries <tdevries@suse.de>
364
365 * aarch64-linux-tdep.c: Fix typos in comments.
366 * aarch64-tdep.c: Same.
367 * ada-lang.c: Same.
368 * amd64-nat.c: Same.
369 * arc-tdep.c: Same.
370 * arch/aarch64-insn.c: Same.
371 * block.c: Same.
372 * breakpoint.h: Same.
373 * btrace.h: Same.
374 * c-varobj.c: Same.
375 * cli/cli-decode.c: Same.
376 * cli/cli-script.c: Same.
377 * cli/cli-utils.h: Same.
378 * coff-pe-read.c: Same.
379 * coffread.c: Same.
380 * compile/compile-cplus-symbols.c: Same.
381 * compile/compile-object-run.c: Same.
382 * completer.c: Same.
383 * corelow.c: Same.
384 * cp-support.c: Same.
385 * demangle.c: Same.
386 * dwarf-index-write.c: Same.
387 * dwarf2-frame.c: Same.
388 * dwarf2-frame.h: Same.
389 * eval.c: Same.
390 * frame-base.h: Same.
391 * frame.h: Same.
392 * gdbcmd.h: Same.
393 * gdbtypes.h: Same.
394 * gnu-nat.c: Same.
395 * guile/scm-objfile.c: Same.
396 * i386-tdep.c: Same.
397 * i386-tdep.h: Same.
398 * infcall.c: Same.
399 * infcall.h: Same.
400 * linux-nat.c: Same.
401 * m68k-tdep.c: Same.
402 * macroexp.c: Same.
403 * memattr.c: Same.
404 * mi/mi-cmd-disas.c: Same.
405 * mi/mi-getopt.h: Same.
406 * mi/mi-main.c: Same.
407 * minsyms.c: Same.
408 * nat/aarch64-sve-linux-sigcontext.h: Same.
409 * objfiles.h: Same.
410 * ppc-linux-nat.c: Same.
411 * ppc-linux-tdep.c: Same.
412 * ppc-tdep.h: Same.
413 * progspace.h: Same.
414 * prologue-value.h: Same.
415 * python/py-evtregistry.c: Same.
416 * python/py-instruction.h: Same.
417 * record-btrace.c: Same.
418 * record-full.c: Same.
419 * remote.c: Same.
420 * rs6000-tdep.c: Same.
421 * ser-tcp.c: Same.
422 * sol-thread.c: Same.
423 * sparc-sol2-tdep.c: Same.
424 * sparc64-tdep.c: Same.
425 * stabsread.c: Same.
426 * symfile.c: Same.
427 * symtab.h: Same.
428 * target.c: Same.
429 * tracepoint.c: Same.
430 * tui/tui-data.h: Same.
431 * tui/tui-io.c: Same.
432 * tui/tui-win.c: Same.
433 * tui/tui.c: Same.
434 * unittests/rsp-low-selftests.c: Same.
435 * user-regs.h: Same.
436 * utils.c: Same.
437 * utils.h: Same.
438 * valarith.c: Same.
439 * valops.c: Same.
440 * valprint.c: Same.
441 * valprint.h: Same.
442 * value.c: Same.
443 * value.h: Same.
444 * varobj.c: Same.
445 * x86-nat.h: Same.
446 * xtensa-tdep.c: Same.
447
1834d45f
AT
4482019-10-25 Ali Tamur <tamur@google.com>
449
450 * charset.c (find_charset_names): Reflect API change.
451
5396ae17
CB
4522019-10-25 Christian Biesinger <cbiesinger@google.com>
453
454 * symtab.c (struct demangled_name_entry): Change demangled name
455 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
456 part of the struct anymore.
457 (symbol_set_names): No longer obstack allocate + copy the demangled
458 name, just store the allocated name from bfd.
459
93878f47
TT
4602019-10-25 Tom Tromey <tromey@adacore.com>
461
462 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
463 (bsearch_cie_cmp, add_cie): Remove.
464 (find_cie): Reimplement.
465 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
466 (dwarf2_build_frame_info): Update.
467
7b71fc97
L
4682019-10-24 H.J. Lu <hongjiu.lu@intel.com>
469
470 PR gdb/25126
471 * symfile.c (reread_symbols): Call forget_cached_source_info to
472 clear the stale source cache.
473
cbb5a2ea
CB
4742019-10-24 Christian Biesinger <cbiesinger@google.com>
475
476 * configure: Regenerate.
477 * configure.ac: Remove code that sets python_has_threads.
478
71737c43
CB
4792019-10-24 Christian Biesinger <cbiesinger@google.com>
480
481 * config.in: Regenerate.
482 * configure: Regenerate.
483 * configure.ac: Remove the code that uses sed to get the python
484 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
485
33d569b7
AB
4862019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * python/py-progspace.c (pspy_block_for_pc): Return None for all
489 error paths.
490
f16f7b7c
TT
4912019-10-23 Tom Tromey <tom@tromey.com>
492
493 * arc-tdep.c: Remove ".." from include.
494 * frv-tdep.c: Remove ".." from include.
495 * lm32-tdep.c: Remove ".." from include.
496 * microblaze-tdep.c: Remove ".." from include.
497 * or1k-tdep.h: Remove ".." from include.
498 * s12z-tdep.c: Remove ".." from include.
499 * Makefile.in (OPCODES_CFLAGS): Add comment.
500 (TOP_CFLAGS): New variable.
501 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
502
6999161a
TT
5032019-10-23 Tom Tromey <tom@tromey.com>
504
505 * Makefile.in (READLINE_DIR): Update.
506
12e7c35e
TBA
5072019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
508
509 * infcall.c (call_function_by_hand_dummy): Fix the function
510 comment. And extract out a code section into...
511 (reserve_stack_space): ...this new function.
512
37055cad
TBA
5132019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 * infcall.c (value_arg_coerce): Remove an unused parameter.
516 (call_function_by_hand_dummy): Update the call to
517 'value_arg_coerce'.
518
39bcc47c
TBA
5192019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
520
521 * infcall.c (call_function_by_hand_dummy): Refactor.
522
bd888c0f
TBA
5232019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
524
525 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
526
c12d372d
TT
5272019-10-23 Tom Tromey <tom@tromey.com>
528
529 * configure: Rebuild.
530 * configure.ac: Don't check for sigprocmask.
531 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
532
4d0b984b
TT
5332019-10-23 Tom Tromey <tom@tromey.com>
534
535 * configure: Rebuild.
536 * acinclude.m4: Use m4_include, not sinclude.
537
7e785608
TV
5382019-10-23 Tom de Vries <tdevries@suse.de>
539
540 PR breakpoints/24687
541 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
542
403772ef
CB
5432019-10-22 Christian Biesinger <cbiesinger@google.com>
544
545 * symtab.c (struct demangled_name_entry) <language>: Change from
546 bitfield to regular variable.
547
3a494279
CB
5482019-10-22 Christian Biesinger <cbiesinger@google.com>
549
550 * symtab.c (struct demangled_name_entry): Add a constructor.
551 (free_demangled_name_entry): New function to call the destructor
552 for demangled_name_entry.
553 (create_demangled_names_hash): Pass free_demangled_name_entry to
554 htab_create_alloc.
555 (symbol_set_names): Call placement new for demangled_name_entry.
556 * utils.c: No longer include xxhash.h here, now that fast_hash
557 is inlined in the header.
558 * utils.h: Instead, include it here.
559
ccb1ba62
CB
5602019-10-22 Christian Biesinger <cbiesinger@google.com>
561
562 * Makefile.in: Link with libxxhash.
563 * config.in: Regenerate.
564 * configure: Regenerate.
565 * configure.ac: Search for libxxhash.
566 * utils.c (fast_hash): Use xxhash if present.
567
1a6ff1a9
CB
5682019-10-22 Christian Biesinger <cbiesinger@google.com>
569
570 * utils.h (fast_hash): New function.
571 * symtab.c (hash_demangled_name_entry): Call new function
572 fast_hash.
573
7bb43059
CB
5742019-10-22 Christian Biesinger <cbiesinger@google.com>
575
576 * symtab.c (struct demangled_name_entry): Change type of mangled
577 to gdb::string_view. Also adds a constructor that takes the
578 mangled name.
579 (hash_demangled_name_entry): Update.
580 (eq_demangled_name_entry): Update.
581 (free_demangled_name_entry): New function to call the destructor
582 now that this is not a POD anymore.
583 (create_demangled_names_hash): Pass free_demangled_name_entry to
584 htab_create_alloc.
585 (symbol_set_names): Update.
586
7ba99d21
AT
5872019-10-21 Ali Tamur <tamu@google.com>
588
589 * dwarf2read.c (dir_index): Change type.
590 (file_name_index): Likewise.
591 (line_header::include_dir_at): Change comment and implementation on
592 whether it is DWARF 5.
593 (line_header::is_valid_file_index): New function.
594 (line_header::file_name_at): Change comment and implementation on
595 whether it is DWARF 5.
596 (line_header::file_names): Change to private field renamed as
597 m_file_names and introduce a new accessor method.
598 (line_header::file_names_size): New method.
599 (line_header::include_dirs): Change to private field and rename as
600 m_include_dirs.
601 (dw2_get_file_names_reader): Define local var at a smaller scope and
602 reflect API change.
603 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
604 (process_structure_scope): Likewise.
605 (line_header::add_include_dir): Change message and reflect renaming.
606 (line_header::add_file_name): Likewise.
607 (read_formatted_entries): Handle DW_FORM_data16.
608 (dwarf_decode_line_header): Fix line header length calculation.
609 (psymtab_include_file_name): Change comment and API.
610 (lnp_state_machine::m_file): Update comment and reflect type change.
611 (lnp_state_machine::record_line): Reflect type change.
612 (dwarf_decode_lines): Reflect API change.
613 (file_file_name): Likewise.
614 (file_full_name): Likewise.
615
45f47c3a
AB
6162019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
617
618 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
619
e5f3c0e3
TT
6202019-10-21 Tom Tromey <tom@tromey.com>
621
622 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
623
a0a461e5
TT
6242019-10-21 Tom Tromey <tom@tromey.com>
625
626 * configure.ac (nm.h): Conditionally create nm.h link. Subst
627 NM_H. Use AC_CONFIG_LINKS.
628 * configure: Rebuild.
629 * Makefile.in (NM_H): New variable.
630 (generated_files): Add NM_H. Remove gcore.
631 (nm.h, stamp-nmh): New targets.
632
54d83b8d
TT
6332019-10-20 Tom Tromey <tom@tromey.com>
634
635 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
636 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
637 obsolete comment.
638 (put_objfile_before): Now static.
639
23771117
SM
6402019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * gdbsupport/common-utils.h (startswith): Change return type to
643 bool.
644
39ef2f62
CB
6452019-10-19 Christian Biesinger <cbiesinger@google.com>
646
647 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
648 * breakpoint.c (bp_locations_compare): Rename to...
649 (bp_location_is_less_than): ...this, and change to std::sort semantics.
650 (update_global_location_list): Use std::sort instead of qsort.
651 * buildsym.c (compare_line_numbers): Rename to...
652 (lte_is_less_than): ...this, and change to std::sort semantics.
653 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
654 instead of qsort.
655 * disasm.c (compare_lines): Rename to...
656 (line_is_less_than): ...this, and change to std::sort semantics.
657 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
658 of qsort.
659 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
660 (fde_is_less_than): ...this, and change to std::sort semantics.
661 (dwarf2_build_frame_info): Call std::sort instead of qsort.
662 * mdebugread.c (compare_blocks):
663 (block_is_less_than): ...this, and change to std::sort semantics.
664 (sort_blocks): Call std::sort instead of qsort.
665 * objfiles.c (qsort_cmp): Rename to...
666 (sort_cmp): ...this, and change to std::sort semantics.
667 (update_section_map): Call std::sort instead of qsort.
668 * remote.c (compare_pnums): Remove.
669 (map_regcache_remote_table): Call std::sort instead of qsort.
670 * utils.c (compare_positive_ints): Remove.
671 * utils.h (compare_positive_ints): Remove.
672 * xcoffread.c (compare_lte): Remove.
673 (arrange_linetable): Call std::sort instead of qsort.
674
f71433ee
SDJ
6752019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
676
677 * symfile.c (init_entry_point_info): Fix typo.
678 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
679
85102364
TV
6802019-10-18 Tom de Vries <tdevries@suse.de>
681
682 * aarch64-tdep.c: Fix typos in comments.
683 * ada-lang.c: Same.
684 * ada-tasks.c: Same.
685 * alpha-tdep.c: Same.
686 * alpha-tdep.h: Same.
687 * amd64-nat.c: Same.
688 * amd64-windows-tdep.c: Same.
689 * arc-tdep.c: Same.
690 * arc-tdep.h: Same.
691 * arch-utils.c: Same.
692 * arm-nbsd-tdep.c: Same.
693 * arm-tdep.c: Same.
694 * ax-gdb.c: Same.
695 * blockframe.c: Same.
696 * btrace.c: Same.
697 * c-varobj.c: Same.
698 * coff-pe-read.c: Same.
699 * coffread.c: Same.
700 * cris-tdep.c: Same.
701 * darwin-nat.c: Same.
702 * dbxread.c: Same.
703 * dcache.c: Same.
704 * disasm.c: Same.
705 * dtrace-probe.c: Same.
706 * dwarf-index-write.c: Same.
707 * dwarf2-frame-tailcall.c: Same.
708 * dwarf2-frame.c: Same.
709 * dwarf2read.c: Same.
710 * eval.c: Same.
711 * exceptions.c: Same.
712 * fbsd-tdep.c: Same.
713 * findvar.c: Same.
714 * frame.c: Same.
715 * frv-tdep.c: Same.
716 * gnu-v3-abi.c: Same.
717 * go32-nat.c: Same.
718 * h8300-tdep.c: Same.
719 * hppa-tdep.c: Same.
720 * i386-linux-tdep.c: Same.
721 * i386-tdep.c: Same.
722 * ia64-libunwind-tdep.c: Same.
723 * ia64-tdep.c: Same.
724 * infcmd.c: Same.
725 * infrun.c: Same.
726 * linespec.c: Same.
727 * linux-nat.c: Same.
728 * linux-thread-db.c: Same.
729 * machoread.c: Same.
730 * mdebugread.c: Same.
731 * mep-tdep.c: Same.
732 * mn10300-tdep.c: Same.
733 * namespace.c: Same.
734 * objfiles.c: Same.
735 * opencl-lang.c: Same.
736 * or1k-tdep.c: Same.
737 * osabi.c: Same.
738 * ppc-linux-nat.c: Same.
739 * ppc-linux-tdep.c: Same.
740 * ppc-sysv-tdep.c: Same.
741 * printcmd.c: Same.
742 * procfs.c: Same.
743 * record-btrace.c: Same.
744 * record-full.c: Same.
745 * remote-fileio.c: Same.
746 * remote.c: Same.
747 * rs6000-tdep.c: Same.
748 * s12z-tdep.c: Same.
749 * score-tdep.c: Same.
750 * ser-base.c: Same.
751 * ser-go32.c: Same.
752 * skip.c: Same.
753 * sol-thread.c: Same.
754 * solib-svr4.c: Same.
755 * solib.c: Same.
756 * source.c: Same.
757 * sparc-nat.c: Same.
758 * sparc-sol2-tdep.c: Same.
759 * sparc-tdep.c: Same.
760 * sparc64-tdep.c: Same.
761 * stabsread.c: Same.
762 * stack.c: Same.
763 * symfile.c: Same.
764 * symtab.c: Same.
765 * target-descriptions.c: Same.
766 * target-float.c: Same.
767 * thread.c: Same.
768 * utils.c: Same.
769 * valops.c: Same.
770 * valprint.c: Same.
771 * value.c: Same.
772 * varobj.c: Same.
773 * windows-nat.c: Same.
774 * xcoffread.c: Same.
775 * xstormy16-tdep.c: Same.
776 * xtensa-tdep.c: Same.
777
c5adaa19
TT
7782019-10-17 Tom Tromey <tromey@adacore.com>
779
780 * configure: Rebuild.
781 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
782 in AC_CONFIG_FILES invocation.
783 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
784 new-style config.status invocation.
785
405feb71
TV
7862019-10-17 Tom de Vries <tdevries@suse.de>
787
788 * arm-nbsd-nat.c: Fix typos in comments.
789 * arm-tdep.c: Same.
790 * darwin-nat-info.c: Same.
791 * dwarf2read.c: Same.
792 * elfread.c: Same.
793 * event-top.c: Same.
794 * findvar.c: Same.
795 * gdbtypes.c: Same.
796 * hppa-tdep.c: Same.
797 * i386-tdep.c: Same.
798 * jit.c: Same.
799 * main.c: Same.
800 * mdebugread.c: Same.
801 * moxie-tdep.c: Same.
802 * nto-procfs.c: Same.
803 * osabi.c: Same.
804 * ppc-linux-tdep.c: Same.
805 * remote.c: Same.
806 * riscv-tdep.c: Same.
807 * s390-tdep.c: Same.
808 * sh-tdep.c: Same.
809 * sparc-linux-tdep.c: Same.
810 * sparc-nat.c: Same.
811 * stack.c: Same.
812 * target-descriptions.c: Same.
813 * top.c: Same.
814 * varobj.c: Same.
815
befcd486
TT
8162019-10-16 Tom Tromey <tom@tromey.com>
817
818 * objfiles.h (struct objfile) <original_name>: Now const.
819
17bfe554
CB
8202019-10-16 Christian Biesinger <cbiesinger@google.com>
821
822 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
823 pass on to sigsetjmp's second argument.
824 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
825
950b7495
KS
8262019-10-16 Keith Seitz <keiths@redhat.com>
827
828 PR gdb/23567
829 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
830 sections whose size is greater than the file size.
831
ff371ec9
JW
8322019-10-16 Jim Wilson <jimw@sifive.com>
833
834 * riscv-tdep.c (riscv_gcc_target_options): New.
835 (riscv_gnu_triplet_regexp): New.
836 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
837 set_gdbarch_gnu_triplet_regexp.
838
fec4e896
CB
8392019-10-16 Christian Biesinger <cbiesinger@google.com>
840
841 * Makefile.in: Add xml-builtin.h.
842 * features/feature_to_c.sh: Add an include for xml-builtin.h
843 to ensure that the compiler checks that the types match.
844 * xml-builtin.h: New file.
845 * xml-support.c (fetch_xml_builtin): Add missing const.
846 * xml-support.h: Remove declaration of xml_builtins.
847
d10eccaa
TV
8482019-10-16 Tom de Vries <tdevries@suse.de>
849
850 PR tdep/25096
851 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
852 (amd64_classify_aggregate): ... here.
853 (amd64_classify_aggregate_field): Handled fiels of nested structs
854 recursively.
855
745ff14e
TV
8562019-10-16 Tom de Vries <tdevries@suse.de>
857
858 PR tdep/24104
859 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
860 that handles 'theclass'.
861
791b7405
AB
8622019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
863
864 * linespec.c (decode_digits_ordinary): Update comment.
865 * make-target-delegates: No longer need to handle VEC case.
866 * memrange.c (normalize_mem_ranges): Update comment.
867 * namespace.c (add_using_directive): Update comment.
868 * objc-lang.c (uniquify_strings): Update comment.
869 * ppc-linux-nat.c (struct thread_points): Update comment.
870 * probe.h (find_probes_in_objfile): Update comment.
871 * target.h (enum flash_preserve_mode): Update comment.
872 * varobj.c (varobj_restrict_range): Update comment.
873 * varobj.h (varobj_list_children): Update comment.
874
0dc32745
AB
8752019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * Makefile.in: Remove references to vec.h and vec.c.
878 * aarch64-tdep.c: No longer include vec.h.
879 * ada-lang.c: Likewise.
880 * ada-lang.h: Likewise.
881 * arm-tdep.c: Likewise.
882 * ax.h: Likewise.
883 * breakpoint.h: Likewise.
884 * charset.c: Likewise.
885 * cp-support.h: Likewise.
886 * dtrace-probe.c: Likewise.
887 * dwarf2read.c: Likewise.
888 * extension.h: Likewise.
889 * gdb_bfd.c: Likewise.
890 * gdbsupport/gdb_vecs.h: Likewise.
891 * gdbsupport/vec.c: Remove.
892 * gdbsupport/vec.h: Remove.
893 * gdbthread.h: Likewise.
894 * guile/scm-type.c: Likewise.
895 * inline-frame.c: Likewise.
896 * machoread.c: Likewise.
897 * memattr.c: Likewise.
898 * memrange.h: Likewise.
899 * namespace.h: Likewise.
900 * nat/linux-btrace.h: Likewise.
901 * osdata.c: Likewise.
902 * parser-defs.h: Likewise.
903 * progspace.h: Likewise.
904 * python/py-type.c: Likewise.
905 * record-btrace.c: Likewise.
906 * rust-exp.y: Likewise.
907 * solib-target.c: Likewise.
908 * stap-probe.c: Likewise.
909 * target-descriptions.c: Likewise.
910 * target-memory.c: Likewise.
911 * target.h: Likewise.
912 * varobj.c: Likewise.
913 * varobj.h: Likewise.
914 * xml-support.h: Likewise.
915
ae640021
AB
9162019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
917
918 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
919 Update for new std::vector based implementation.
920 (process_psymtab_comp_unit_reader): Likewise.
921 (scan_partial_symbols): Likewise.
922 (recursively_compute_inclusions): Likewise.
923 (compute_compunit_symtab_includes): Likewise.
924 (process_imported_unit_die): Likewise.
925 (queue_and_load_dwo_tu): Likewise.
926 (follow_die_sig_1): Likewise.
927 * gdb/dwarf2read.h: Remove DEF_VEC_P.
928 (typedef dwarf2_per_cu_ptr): Remove.
929 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
930 function.
931 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
932 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
933 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
934 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
935 std::vector.
936
55dfc88f
TT
9372019-10-15 Tom Tromey <tromey@adacore.com>
938
939 * windows-nat.c (windows_nat_target::resume): Use %x when logging
940 TID.
941
96b49c5e
TT
9422019-10-15 Tom Tromey <tromey@adacore.com>
943
944 * windows-nat.c (windows_nat_target::fetch_registers)
945 (windows_nat_target::store_registers): Rename "pid" to "tid".
946
953cff56
TT
9472019-10-15 Tom Tromey <tromey@adacore.com>
948
949 * gdbarch.h, gdbarch.c: Rebuild.
950 * gdbarch.sh (gcc_target_options): Change return type to
951 std::string.
952 * compile/compile.c (get_args): Update.
953 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
954 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
955 std::string.
956 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
957 std::string.
958 * arch-utils.c (default_gcc_target_options): Return std::string.
959 * arch-utils.h (default_gcc_target_options): Return std::string.
960 * s390-tdep.c (s390_gcc_target_options): Return std::string.
961
81e6b8eb
CB
9622019-10-15 Christian Biesinger <cbiesinger@google.com>
963
964 * breakpoint.c (breakpoint_chain): Make static.
965 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
966 of accessing breakpoint_chain.
967
95da600f
CB
9682019-10-15 Christian Biesinger <cbiesinger@google.com>
969
970 * breakpoint.c (iterate_over_breakpoints): Change function pointer
971 to a gdb::function_view and return value to bool.
972 * breakpoint.h (iterate_over_breakpoints): Likewise.
973 * dummy-frame.c (pop_dummy_frame_bpt): Update.
974 (pop_dummy_frame): Update.
975 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
976 (gdbscm_breakpoints): Update.
977 * python/py-breakpoint.c (build_bp_list): Update.
978 (gdbpy_breakpoints): Update.
979 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
980 Update.
981 (bpfinishpy_handle_stop): Update.
982 (bpfinishpy_handle_exit): Update.
983 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
984 (svr4_update_solib_event_breakpoints): Update.
985
ba18312d
AA
9862019-10-15 Andreas Arnez <arnez@linux.ibm.com>
987
988 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
989 when unwrapping single-field structs.
990
6acc1a0b
SM
9912019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
992
993 * dwarf2read.c: Remove includes.
994
284782de
SM
9952019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
996
997 * ui-out.c (ui_out::call_do_message): Silence
998 -Wformat-nonliteral warning.
999
073bbbb0
SM
10002019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1003 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1004 include: readline/tilde.h.
1005
7b9a15e1
CB
10062019-10-12 Christian Biesinger <cbiesinger@google.com>
1007
1008 * remote.c (remote_target::get_trace_status): Remove declaration of
1009 trace_regblock_size.
1010
cc8dee1f
CB
10112019-10-12 Christian Biesinger <cbiesinger@google.com>
1012
1013 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1014 (show_user): Remove declaration of cmdlist.
1015 * cli/cli-cmds.h (max_user_call_depth): Declare.
1016 * cli/cli-script.c (execute_user_command): Remove declaration
1017 of max_user_call_depth.
1018
a83d4ef6
JW
10192019-10-11 Jim Wilson <jimw@sifive.com>
1020
5f93c5a6
JW
1021 * gdbsupport/print-utils.h (pulongest): Fix comment.
1022 (plongest): Likewise.
1023 (phex): Add missing comment, mention leading zeros.
1024 (phex_nz): Add mention of no leading zeros to comment.
1025
a83d4ef6
JW
1026 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1027 plongest instead of unsigned long long cast.
1028
26344e0c
CB
10292019-10-10 Christian Biesinger <cbiesinger@google.com>
1030
1031 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1032 for external_editor_command and gdbtk_test.
1033
c2c440a9
CB
10342019-10-10 Christian Biesinger <cbiesinger@google.com>
1035
1036 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1037 * varobj.c (varobjdebug): Move comment to...
1038 * varobj.h (varobjdebug): ...here, and declare.
1039
a31bff9d
TT
10402019-10-09 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1043 erase_data_content.
1044
7523da63
TT
10452019-10-09 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1048 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1049 * tui/tui-command.c (tui_cmd_window::resize)
1050 (tui_refresh_cmd_win): Update.
1051 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1052 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1053 * tui/tui-data.c (~tui_gen_win_info): Remove.
1054 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1055 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1056 (tui_redisplay_readline, tui_mld_flush)
1057 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1058 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1059 (tui_data_window::erase_data_content)
1060 (tui_data_item_window::rerender)
1061 (tui_data_item_window::refresh_window): Update.
1062 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1063 (box_win, tui_gen_win_info::make_window)
1064 (tui_gen_win_info::make_visible): Update.
1065 (tui_delete_win): Remove.
1066 * tui/tui-winsource.c
1067 (tui_source_window_base::do_erase_source_content): Update.
1068 (tui_show_source_line, tui_source_window_base::update_tab_width)
1069 (tui_source_window_base::update_exec_info): Update.
1070 * tui/tui-data.h (struct curses_deleter): New.
1071 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1072 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1073
a7798e7f
TT
10742019-10-09 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1077
5c45899e
TT
10782019-10-09 Tom Tromey <tom@tromey.com>
1079
1080 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1081 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1082
6d7fd9aa
TT
10832019-10-09 Tom Tromey <tom@tromey.com>
1084
1085 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1086 window height directly.
1087 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1088 declare.
1089 * tui/tui-layout.c (tui_default_win_height): Remove.
1090 (tui_default_win_viewport_height): Remove.
1091
d2dd1084
TT
10922019-10-09 Tom Tromey <tom@tromey.com>
1093
1094 * tui/tui.h: Remove comments.
1095
cff32449
TV
10962019-10-09 Tom de Vries <tdevries@suse.de>
1097
1098 * python/lib/gdb/printer/bound_registers.py: Use
1099 '^builtin_type_bound128' as regexp argument for
1100 add_builtin_pretty_printer.
1101
6a25e8a2
CB
11022019-10-09 Christian Biesinger <cbiesinger@google.com>
1103
1104 * guile/guile.c (guile_extension_script_ops): Remove forward
1105 declaration and mark as static.
1106 (guile_script_ops): Likewise.
1107 (extension_language_guile): Move further down in the file so
1108 it can reference the definitions for guile_{extension_,}script_ops.
1109
6d9d6da4
AA
11102019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1111
1112 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1113 except SORTL, DFLTCC, and KDSA.
1114
3abea05d
TT
11152019-10-08 Tom Tromey <tromey@adacore.com>
1116
1117 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1118 (struct safe_symbol_file_add_args): Remove.
1119
dde996e2
TT
11202019-10-08 Tom Tromey <tromey@adacore.com>
1121
1122 * windows-nat.c: Don't include buildsym-legacy.h.
1123
cd6fdaa1
TT
11242019-10-08 Tom Tromey <tromey@adacore.com>
1125
1126 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1127
79bb1944
CB
11282019-10-08 Christian Biesinger <cbiesinger@google.com>
1129
1130 * gdbtypes.c (overload_debug): Move comment to header.
1131 * gdbtypes.h (overload_debug): Declare.
1132 * valops.c: Remove declaration of overload_debug, instead
1133 include gdbtypes.h.
1134
34916edc
CB
11352019-10-08 Christian Biesinger <cbiesinger@google.com>
1136
1137 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1138 through _().
1139 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1140 move comment...
1141 * language.h (lang_frame_mismatch_warn): ... here. Also add
1142 declaration.
1143 * top.c (lang_frame_mismatch_warn): Remove declaration.
1144 (check_frame_language_change): Pass lang_frame_mismatch_warn
1145 through _().
1146
bad5c026
CB
11472019-10-07 Christian Biesinger <cbiesinger@google.com>
1148
1149 * c-lang.h (vtbl_ptr_name): Declare.
1150 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1151 it from the header.
1152 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1153
51f1fdc3
CB
11542019-10-07 Christian Biesinger <cbiesinger@google.com>
1155
1156 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1157 gdb_static_assert.
1158
30d1f018
WP
11592019-10-07 Weimin Pan <weimin.pan@oracle.com>
1160
606813d5
WP
1161 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1162 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1163 * ctfread.c: New file.
1164 * ctfread.h: New file.
1165 * elfread.c: Include ctfread.h.
1166 (struct elfinfo text_p): New member ctfsect.
1167 (elf_locate_sections): Mark CTF section.
1168 (elf_symfile_read): Call elfctf_build_psymtabs.
1169 * Makefile.in (LIBCTF): Add.
1170 (CLIBS): Use it.
1171 (CDEPS): Likewise.
1172 (DIST): Add ctfread.c.
606813d5
WP
1173
11742019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * ctfread.c (struct nextfield): Renamed to ...
1177 (struct ctf_nextfield): ... this.
1178 (struct field_info): Renamed to ...
1179 (strut ctf_field_info): ... this.
1180 (attach_fields_to_type): Update for renamed structures.
1181 (ctf_add_member_cb): Likewise.
1182 (ctf_add_enum_member_cb): Likewise.
1183 (process_struct_members): Likewise.
1184 (process_enum_type): Likewise.
30d1f018 1185
518fe38c
WP
11862019-10-07 Weimin Pan <weimin.pan@oracle.com>
1187
1188 * tracectf.h: Rename, was ctf.h.
1189 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1190 * tracefile.c: Likewise.
1191 * tracepoint.c: Remove unused include ctf.h.
1192 * mi/mi-main.c: Likewise.
1193 * Makefile.in Replace ctf.c with tracectf.c.
1194
225f296a
JB
11952019-10-06 Joel Brobecker <brobecker@adacore.com>
1196
1197 * version.in: Change version number to "9.0.50.DATE-git".
1198
77c2dba3
TT
11992019-10-03 Tom Tromey <tom@tromey.com>
1200
1201 PR rust/24976:
1202 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1203
179aed7f
AB
12042019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1207 cp_search_name_hash.
1208 * NEWS: Add entry about nested function support.
1209
0a4b0913
AB
12102019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1211 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1214 for nested static variables when searchin VAR_DOMAIN.
1215 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1216 global scope, update comment.
1217 (add_partial_subprogram): Call add_partial_subprogram recursively
1218 for nested subroutines when processinng Fortran.
1219 (load_partial_dies): Process the child entities of a subprogram
1220 when processing Fortran.
1221 (partial_die_parent_scope): Handle building scope
1222 for Fortran nested functions.
1223 (process_die): Record that nested functions have a scope.
1224 (new_symbol): Always record Fortran subprograms on the global
1225 symbol list.
1226 (determine_prefix): How to build the prefix for Fortran
1227 subprograms.
1228
d8c06f22
AB
12292019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1232 have just sent the thread a SIGSTOP and are waiting for it to
1233 arrive.
1234
a8b3b8e9
AB
12352019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * btrace.c (btrace_add_pc): Remove whitespace before the template
1238 parameter in 'std::vector <...>'.
1239 (parse_xml_btrace_block): Likewise.
1240 (btrace_maint_decode_pt): Likewise.
1241 (btrace_maint_update_packets): Likewise.
1242 (btrace_maint_print_packets): Likewise.
1243 * btrace.h (struct btrace_maint_info): Likewise.
1244 * dwarf2read.c (struct type_unit_group): Likewise.
1245 (build_type_psymtabs_reader): Likewise.
1246 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1247 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1248 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1249
4d825eab
TV
12502019-10-03 Tom de Vries <tdevries@suse.de>
1251
1252 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1253 the first line of the help text for set/show style metadata.
1254
80fd2826
TT
12552019-10-02 Tom Tromey <tromey@adacore.com>
1256
1257 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1258 * gdbsupport/common-inferior.c: New file.
1259 * infcmd.c (startup_with_shell): Don't define.
1260 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1261 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1262 * inferior.h (startup_with_shell): Don't declare.
1263
70054538
CB
12642019-10-02 Christian Biesinger <cbiesinger@google.com>
1265
1266 * gdbsupport/gdb_assert.h: Include errors.h.
1267 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1268
37f6a7f4
TT
12692019-10-02 Tom Tromey <tromey@adacore.com>
1270
1271 * NEWS: Add $_ada_exception entry.
1272 * ada-lang.c (struct ada_catchpoint): Add constructor.
1273 <m_kind>: New member.
1274 (allocate_location_exception, re_set_exception): Remove
1275 "ex" parameter.
1276 (should_stop_exception): Compute $_ada_exception.
1277 (check_status_exception, print_it_exception)
1278 (print_one_exception, print_mention_exception): Remove
1279 "ex" parameter.
1280 (allocate_location_catch_exception, re_set_catch_exception)
1281 (check_status_exception, print_it_catch_exception)
1282 (print_one_catch_exception, print_mention_catch_exception)
1283 (print_recreate_catch_exception)
1284 (allocate_location_catch_exception_unhandled)
1285 (re_set_catch_exception_unhandled)
1286 (check_status_exception, print_it_catch_exception_unhandled)
1287 (print_one_catch_exception_unhandled)
1288 (print_mention_catch_exception_unhandled)
1289 (print_recreate_catch_exception_unhandled)
1290 (allocate_location_catch_assert, re_set_catch_assert)
1291 (check_status_assert, print_it_catch_assert)
1292 (print_one_catch_assert, print_mention_catch_assert)
1293 (print_recreate_catch_assert)
1294 (allocate_location_catch_handlers, re_set_catch_handlers)
1295 (check_status_handlers, print_it_catch_handlers)
1296 (print_one_catch_handlers, print_mention_catch_handlers)
1297 (print_recreate_catch_handlers): Remove.
1298 (create_ada_exception_catchpoint): Update.
1299 (initialize_ada_catchpoint_ops): Update.
1300
fccf9de1
TT
13012019-10-02 Tom Tromey <tromey@adacore.com>
1302
1303 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1304 (create_excep_cond_exprs): Simplify exception string computation.
1305 (ada_exception_catchpoint_cond_string): Likewise.
1306
4b610737
TT
13072019-10-02 Tom Tromey <tromey@adacore.com>
1308
1309 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1310 * ada-lang.c (lesseq_defined_than): Handle
1311 LOC_STATIC.
1312 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1313 parameter.
1314 (dwarf2_has_info): Likewise.
1315 (new_symbol): Set maybe_copied on symbol when
1316 appropriate.
1317 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1318 parameter.
1319 <can_copy>: New member.
1320 * elfread.c (record_minimal_symbol): Set maybe_copied
1321 on symbol when appropriate.
1322 (elf_symfile_read): Update call to dwarf2_has_info.
1323 * minsyms.c (lookup_minimal_symbol_linkage): New
1324 function.
1325 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1326 * symtab.c (get_symbol_address, get_msymbol_address):
1327 New functions.
1328 * symtab.h (get_symbol_address, get_msymbol_address):
1329 Declare.
1330 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1331 maybe_copied.
1332 (struct symbol, struct minimal_symbol) <maybe_copied>:
1333 New member.
1334
1dd58850
TT
13352019-10-02 Tom Tromey <tromey@adacore.com>
1336
1337 * source.c (struct current_source_location): New.
1338 (current_source_key): New global.
1339 (current_source_symtab, current_source_line)
1340 (current_source_pspace): Remove.
1341 (get_source_location): New function.
1342 (get_current_source_symtab_and_line)
1343 (set_default_source_symtab_and_line)
1344 (set_current_source_symtab_and_line)
1345 (clear_current_source_symtab_and_line, select_source_symtab)
1346 (info_source_command, print_source_lines_base)
1347 (info_line_command, search_command_helper, _initialize_source):
1348 Update.
1349
5c281dbb
TT
13502019-10-02 Tom Tromey <tromey@adacore.com>
1351
1352 * source.c (select_source_symtab): Don't call
1353 decode_line_with_current_source.
1354
d3d32391
AB
13552019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * symtab.c (lookup_global_symbol): Search global block.
1358
38583298
TT
13592019-10-02 Tom Tromey <tromey@adacore.com>
1360
1361 * coffread.c (process_coff_symbol): Update.
1362 * dwarf2read.c (var_decode_location, new_symbol): Update.
1363 * mdebugread.c (parse_symbol): Update.
1364 * objfiles.c (relocate_one_symbol): Update.
1365 * stabsread.c (define_symbol, fix_common_block)
1366 (scan_file_globals): Update.
1367 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1368 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1369 * xcoffread.c (process_xcoff_symbol): Update.
1370
9344c18f
AA
13712019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1372
1373 * MAINTAINERS: Update my email address.
1374
df07e2c7
AB
13752019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1378 std::vector.
1379 (build_type_psymtabs_reader): Update for std::vector.
1380 (build_type_psymtab_dependencies): Likewise.
1381 * dwarf2read.h: Remove use of DEF_VEC_P.
1382 (typedef sig_type_ptr): Delete.
1383
554ac434
AB
13842019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1387 to std::vector.
1388 (btrace_maint_decode_pt): Likewise, and move allocation of the
1389 vector outside of the loop.
1390 (btrace_maint_update_packets): Update to handle change from VEC to
1391 std::vector.
1392 (btrace_maint_print_packets): Likewise.
1393 (maint_info_btrace_cmd): Likewise.
1394 * btrace.h: Remove use of DEF_VEC_O.
1395 (typedef btrace_pt_packet_s): Delete.
1396 (struct btrace_maint_info) <packets>: Change fromm VEC to
1397 std::vector.
1398 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1399
46f29a9a
AB
14002019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1403 make accesses into the vector constant references.
1404 (btrace_add_pc): Update for std::vector.
1405 (btrace_stitch_bts): Likewise.
1406 (parse_xml_btrace_block): Likewise.
1407 (btrace_maint_update_packets): Likewise.
1408 (btrace_maint_print_packets): Likewise.
1409 (maint_info_btrace_cmd): Likewise.
1410 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1411 std::vector.
1412 (btrace_data::empty): Likewise.
1413 (btrace_data_append): Likewise.
1414 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1415 (typedef btrace_block_s): Delete.
1416 (struct btrace_block): Add constructor.
1417 (struct btrace_data_bts) <blocks>: Change to std::vector.
1418 * nat/linux-btrace.c (perf_event_read_bts): Update for
1419 std::vector.
1420 (linux_read_bts): Likewise.
1421
d770d56f
TT
14222019-10-01 Tom Tromey <tom@tromey.com>
1423
1424 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1425
9d636d67
TT
14262019-10-01 Tom Tromey <tom@tromey.com>
1427
1428 * stack.c (print_frame, info_frame_command_core): Use
1429 styled_string.
1430 * linux-thread-db.c (try_thread_db_load_1)
1431 (try_thread_db_load_from_pdir_1): Use styled_string.
1432 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1433 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1434 (maybe_print_unsupported_script_warning)
1435 (maybe_print_script_not_found_warning): Use styled_string.
1436 * ada-lang.c (user_select_syms): Use styled_string.
1437
7f6aba03
TT
14382019-10-01 Tom Tromey <tom@tromey.com>
1439
1440 * p-lang.c (pascal_printstr): Use metadata style.
1441 * value.c (show_convenience): Use metadata style.
1442 * valprint.c (valprint_check_validity, val_print_optimized_out)
1443 (val_print_not_saved, val_print_unavailable)
1444 (val_print_invalid_address, generic_val_print, val_print)
1445 (value_check_printable, val_print_array_elements): Use metadata
1446 style.
1447 * ui-out.h (class ui_out) <field_fmt>: New overload.
1448 <do_field_fmt>: Add style parameter.
1449 * ui-out.c (ui_out::field_fmt): New overload.
1450 * typeprint.c (type_print_unknown_return_type)
1451 (val_print_not_allocated, val_print_not_associated): Use metadata
1452 style.
1453 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1454 parameter.
1455 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1456 * tracepoint.c (tvariables_info_1): Use metadata style.
1457 * stack.c (print_frame_arg, print_frame_info, print_frame)
1458 (info_frame_command_core): Use metadata style.
1459 * skip.c (info_skip_command): Use metadata style.
1460 * rust-lang.c (rust_print_enum): Use metadata style.
1461 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1462 metadata style.
1463 * python/py-framefilter.c (py_print_single_arg): Use metadata
1464 style.
1465 * printcmd.c (do_one_display, print_variable_and_value): Use
1466 metadata style.
1467 * p-valprint.c (pascal_val_print)
1468 (pascal_object_print_value_fields): Use metadata style.
1469 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1470 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1471 parameter.
1472 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1473 * m2-valprint.c (m2_print_long_set): Use metadata style.
1474 * m2-typeprint.c (m2_print_type): Use metadata style.
1475 * infcmd.c (print_return_value_1): Use metadata style.
1476 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1477 * f-valprint.c (info_common_command_for_block): Use metadata
1478 style.
1479 * f-typeprint.c (f_type_print_base): Use metadata style.
1480 * expprint.c (print_subexp_standard): Use metadata style.
1481 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1482 * cli/cli-style.h (class cli_style_option): Add constructor.
1483 (metadata_style): Declare.
1484 * cli/cli-style.c (metadata_style): New global.
1485 (_initialize_cli_style): Register metadata style.
1486 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1487 parameter.
1488 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1489 * c-typeprint.c (c_type_print_base_struct_union)
1490 (c_type_print_base_1): Use metadata style.
1491 * breakpoint.c (watchpoint_value_print)
1492 (print_one_breakpoint_location): Use metadata style.
1493 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1494 style.
1495 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1496 style.
1497 * ada-valprint.c (val_print_packed_array_elements, printstr)
1498 (print_field_values, ada_val_print_ref, ada_val_print): Use
1499 metadata style.
1500 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1501 style.
1502 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1503 style.
1504 * ada-lang.c (user_select_syms): Use metadata style.
1505
14309bb6
TT
15062019-10-01 Tom Tromey <tom@tromey.com>
1507
1508 * cli/cli-cmds.c (pwd_command): Style output.
1509
6a831f06
PA
15102019-10-01 Pedro Alves <palves@redhat.com>
1511 Tom Tromey <tom@tromey.com>
1512
1513 * symtab.c (print_symbol_info): Use %ps.
1514 (print_msymbol_info): Use %ps.
1515 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1516 * printcmd.c (print_variable_and_value): Use %ps.
1517 * macrocmd.c (show_pp_source_pos): Use %ps.
1518 * infrun.c (print_exited_reason): Use ui_out::message.
1519 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1520 (describe_other_breakpoints): Use ui_out::message and new
1521 formats.
1522 (say_where): Use new formats.
1523 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1524 and new formats.
1525
2a3c1174
PA
15262019-10-01 Pedro Alves <palves@redhat.com>
1527 Tom Tromey <tom@tromey.com>
1528
1529 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1530 (test_gdb_formats): New function.
1531 (run_tests): Call it.
1532 (test_format_specifier): Update.
1533 * utils.h (fputs_filtered): Update comment.
1534 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1535 (fputs_styled_unfiltered): Declare.
1536 * utils.c (fputs_styled_unfiltered): New function.
1537 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1538 (vfprintf_filtered): Update.
1539 (vfprintf_unfiltered, vprintf_filtered): Update.
1540 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1541 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1542 disallow_ui_out_field>: New constants.
1543 (enum class field_kind): New.
1544 (struct base_field_s, struct signed_field_s): New.
1545 (signed_field): New function.
1546 (struct string_field_s): New.
1547 (string_field): New function.
1548 (struct styled_string_s): New.
1549 (styled_string): New function.
1550 (class ui_out) <message>: Add comment.
1551 <vmessage, call_do_message>: New methods.
1552 <do_message>: Add style parameter.
1553 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1554 methods.
1555 (ui_out::message): Rewrite.
1556 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1557 parameter.
1558 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1559 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1560 gdb_extensions parameter.
1561 (class format_piece): Add parameter to constructor.
1562 (n_int_args): New field.
1563 * gdbsupport/format.c (format_pieces::format_pieces): Add
1564 gdb_extensions parameter. Handle '*'.
1565 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1566 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1567 vfprintf_styled_no_gdbfmt.
1568 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1569 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1570 unfiltered output.
1571 * ui-style.h (struct ui_file_style) <ptr>: New method.
1572
0dfe5bfb
TT
15732019-10-01 Tom Tromey <tom@tromey.com>
1574
1575 * unittests/format_pieces-selftests.c: Update. Add final format.
1576 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1577 empty literal pieces.
1578
e43b10e1
TT
15792019-10-01 Tom Tromey <tom@tromey.com>
1580
1581 * ui-out.h (enum class ui_out_style_kind): Remove.
1582 (class ui_out) <field_string, field_stsream, do_field_string>:
1583 Change type of "style".
1584 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1585 (ui_out::field_string): Update.
1586 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1587 of "style".
1588 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1589 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1590 * stack.c (print_frame_arg, print_frame_info, print_frame):
1591 Update.
1592 * source.c (print_source_lines_base): Update.
1593 * solib.c (info_sharedlibrary_command): Update.
1594 * skip.c (info_skip_command): Update.
1595 * record-btrace.c (btrace_call_history_src_line)
1596 (btrace_call_history): Update.
1597 * python/py-framefilter.c (py_print_frame): Update.
1598 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1599 "style".
1600 * mi/mi-out.c (mi_ui_out::do_table_header)
1601 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1602 (mi_ui_out::do_field_string): Update.
1603 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1604 Update.
1605 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1606 "style".
1607 * cli-out.c (cli_ui_out::do_table_header)
1608 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1609 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1610 (cli_ui_out::do_field_fmt): Update.
1611 * breakpoint.c (print_breakpoint_location): Update.
1612 (update_static_tracepoint): Update.
1613
cd7c32c3
PW
16142019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1615
1616 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1617 conversion of gdb_datadir.
1618 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1619 remove not needed c_str ().
1620
8fe0f950
AT
16212019-09-30 Ali Tamur <tamur@google.com>
1622
1623 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1624 (dwarf2_string_attr): Likewise.
1625
5f48f8f3
AT
16262019-09-30 Ali Tamur <tamur@google.com>
1627
1628 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1629 (process_full_type_unit): Likewise.
1630 (dump_die_shallow): Likewise.
1631 (cu_debug_loc_section): Likewise.
1632
6fb08628
CB
16332019-09-28 Christian Biesinger <cbiesinger@google.com>
1634
1635 * minsyms.c (compare_minimal_symbols): Rename to...
1636 (minimal_symbol_is_less_than): ...this, and adjust to STL
1637 conventions (return bool, take arguments as references)
1638 (minimal_symbol_reader::install): Call std::sort instead
1639 of qsort.
1640
c7ee338a
CB
16412019-09-29 Christian Biesinger <cbiesinger@google.com>
1642
1643 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1644 hash and why.
1645 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1646 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1647
703a86c2
SM
16482019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1651 * psympriv.h (add_psymbol_to_list): Move comment here and update
1652 it.
1653
0df0352a
TV
16542019-09-29 Tom de Vries <tdevries@suse.de>
1655
1656 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1657 Use $tmpdir/$(basename "$output_file").dwz instead of
1658 "${output_file}.dwz".
1659
ad75efa6
SM
16602019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 PR gdb/25045
1663 * hppa-linux-nat.c: Include gdbarch.h.
1664
ececd218
CB
16652019-09-26 Christian Biesinger <cbiesinger@google.com>
1666
1667 * blockframe.c (find_pc_partial_function): Change return type to bool.
1668 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1669 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1670 (stub_gnu_ifunc_resolve_name): Likewise.
1671 * symtab.c (compare_filenames_for_search): Likewise.
1672 (compare_glob_filenames_for_search): Likewise.
1673 (matching_obj_sections): Likewise.
1674 (symbol_matches_domain): Likewise.
1675 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1676 (find_line_pc): Change return type to bool.
1677 (find_line_pc_range): Likewise.
1678 (producer_is_realview): Likewise.
1679 * symtab.h (symbol_matches_domain): Likewise.
1680 (find_pc_partial_function): Likewise.
1681 (find_pc_line_pc_range): Likewise.
1682 (in_gnu_ifunc_stub): Likewise.
1683 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1684 (find_line_pc): Likewise.
1685 (find_line_pc_range): Likewise.
1686 (matching_obj_sections): Likewise.
1687 (find_line_symtab): Change out parameter to bool.
1688 (producer_is_realview): Change return type to bool.
1689 (compare_filenames_for_search): Likewise.
1690 (compare_glob_filenames_for_search): Likewise.
1691
27a900b8
TT
16922019-09-26 Tom Tromey <tom@tromey.com>
1693
1694 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1695 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1696 * gdb_usleep.h: Remove.
1697 * gdb_usleep.c: Remove.
1698 * utils.c: Don't include gdb_usleep.h.
1699
5d63b30a
TT
17002019-09-26 Tom Tromey <tromey@adacore.com>
1701
1702 * python/py-type.c (type_to_type_object): Call check_typedef
1703 for stub types.
1704
12904d37
TT
17052019-09-26 Tom Tromey <tom@tromey.com>
1706
1707 * utils.h (initialize_utils): Don't declare.
1708 * top.c (gdb_init): Don't call initialize_utils.
1709 * utils.c (initialize_utils): Remove. Move contents...
1710 (_initialize_utils): ... here.
1711
858f25f0
TT
17122019-09-25 Tom Tromey <tom@tromey.com>
1713
1714 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1715 * utils.h (make_hex_string): Don't declare.
1716 * utils.c (make_hex_string): Remove.
1717
3d435220
TV
17182019-09-24 Tom de Vries <tdevries@suse.de>
1719
1720 PR gdb/23815
1721 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1722 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1723
ddd44b70
DD
17242019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1725
1726 * NEWS: Mention new simulator port for PRU.
1727
f945dedf
CB
17282019-09-23 Christian Biesinger <cbiesinger@google.com>
1729
1730 * ada-exp.y (write_object_remaining): Update.
1731 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1732 and eliminate the static buffer.
1733 (ada_decode_symbol): Update.
1734 (ada_la_decode): Update.
1735 (ada_sniff_from_mangled_name): Update.
1736 (is_valid_name_for_wild_match): Update.
1737 (ada_lookup_name_info::matches): Update and simplify.
1738 (name_matches_regex): Update.
1739 (ada_add_global_exceptions): Update.
1740 * ada-lang.h (ada_decode): Update signature.
1741 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1742 * dwarf-index-write.c (debug_names::insert): Update.
1743
7ab78ccb
SM
17442019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1747 formatting.
1748
9252448b
SM
17492019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1752 Change "nonzero" to "true" in documentation.
1753
626ca2c0
CB
17542019-09-20 Christian Biesinger <cbiesinger@google.com>
1755
1756 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1757 (_initialize_darwin_solib): Don't set
1758 darwin_so_ops.lookup_lib_global_symbol.
1759 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1760 set_gdbarch_iterate_over_objfiles_in_search_order.
1761 (elf_lookup_lib_symbol): Rename to...
1762 (svr4_iterate_over_objfiles_in_search_order): this, and update
1763 to iterate semantics.
1764 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1765 * solib.c (solib_global_lookup): Remove.
1766 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1767 (solib_global_lookup): Remove.
1768 * symtab.c (lookup_global_or_static_symbol): Remove call to
1769 solib_global_lookup.
1770
5a3a0d63
JB
17712019-09-20 Joel Brobecker <brobecker@adacore.com>
1772
1773 * NEWS: Move entries about default MI version now being
1774 version 3, and about the GDB/MI fix for multi-location
1775 breakpoints to the "since GDB 8.3" section.
1776
ffea1427
JB
17772019-09-20 Joel Brobecker <brobecker@adacore.com>
1778
1779 GDB 8.3.1 released.
1780
abf516c6
UW
17812019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1782
1783 * NEWS: Mention that Cell/B.E. debugging support was removed.
1784 * MAINTAINERS: Remove spu target.
1785
1786 * config/djgpp/fnchange.lst: Remove entries for removed files.
1787
1788 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1789 spu-multiarch.o, and spu-tdep.o.
1790 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1791 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1792 spu-multiarch.c, and spu-tdep.c.
1793 * spu-linux-nat.c: Remove file.
1794 * spu-multiarch.c: Remove file.
1795 * spu-tdep.c: Remove file.
1796 * spu-tdep.h: Remove file.
1797 * solib-spu.c: Remove file.
1798 * solib-spu.h: Remove file.
1799
1800 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1801 * configure.nat (spu-linux): Remove.
1802 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1803 solib-multiarch.o from gdb_target_obs.
1804 (spu*-*-*): Remove.
1805
1806 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1807 feature flag.
1808 (ppc_linux_no_features): Update.
1809 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1810 Cell/B.E. support.
1811 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1812 (tdesc_powerpc_cell64l): Likewise.
1813 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1814 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1815 Cell/B.E. support.
1816 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1817 Do not include "features/rs6000/powerpc-cell32l.c" or
1818 "features/rs6000/powerpc-cell64l.c".
1819 (ppc_linux_spu_section): Remove.
1820 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1821 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1822 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1823 (ppc_linux_spe_context_lookup): Remove.
1824 (ppc_linux_spe_context_inferior_created): Remove.
1825 (ppc_linux_spe_context_solib_loaded): Remove.
1826 (ppc_linux_spe_context_solib_unloaded): Remove.
1827 (ppc_linux_spe_context): Remove.
1828 (struct ppu2spu_cache): Remove.
1829 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1830 (struct ppu2spu_data): Remove.
1831 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1832 ppu2spu_unwind): Remove.
1833 (ppc_linux_init_abi): Remove Cell/B.E. support.
1834 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1835
1836 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1837 (rs6000/powerpc-cell64l-expedite): Likewise
1838 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1839 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1840 rs6000/powerpc-cell64l.xml.
1841 * features/rs6000/powerpc-cell32l.xml: Remove.
1842 * features/rs6000/powerpc-cell64l.xml: Likewise.
1843 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1844 * features/rs6000/powerpc-cell64l.c: Likewise.
1845 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1846 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1847 * regformats/reg-spu.dat: Remove.
1848
1849 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1850 * corelow.c (struct spuid_list): Remove.
1851 (add_to_spuid_list): Remove.
1852 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1853 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1854 (remote_protocol_features): Remove associated entries.
1855 (_initialize_remote): No longer initialize them.
1856 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1857 * linux-nat.c (SPUFS_MAGIC): Remove.
1858 (linux_proc_xfer_spu): Remove.
1859 (spu_enumerate_spu_ids): Remove.
1860 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1861 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1862 (linux_make_corefile_notes): No longer call it.
1863
1864 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1865 (cooked_write_test): Likewise.
1866
78e8cb91
TT
18672019-09-20 Tom Tromey <tom@tromey.com>
1868
1869 * NEWS: Mention case-sensitivity of TUI commands.
1870 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1871 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1872 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1873
f074b67e
TT
18742019-09-20 Tom Tromey <tom@tromey.com>
1875
1876 * tui/tui-source.c (tui_source_window::set_contents): Use
1877 make_unique_xstrdup.
1878 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1879 make_unique_xstrdup.
1880
63c4bf19
TT
18812019-09-20 Tom Tromey <tom@tromey.com>
1882
1883 * tui/tui-data.c: Remove separator comments.
1884 * tui/tui-layout.c: Remove separator comments.
1885 * tui/tui-win.c: Remove separator comments.
1886 * tui/tui-wingeneral.c: Remove separator comments.
1887
43df9b2f
TT
18882019-09-20 Tom Tromey <tom@tromey.com>
1889
1890 * tui/tui.h (strcat_to_buf): Don't declare.
1891 * tui/tui.c (strcat_to_buf): Remove.
1892
7226433c
TT
18932019-09-20 Tom Tromey <tom@tromey.com>
1894
1895 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1896 from "fullname".
1897 * tui/tui-source.c (tui_source_window::set_contents)
1898 (tui_source_window::location_matches_p)
1899 (tui_source_window::maybe_update): Update.
1900
80df3337
TT
19012019-09-20 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1904 Update.
1905 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1906 prefix.
1907 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1908 (tui_data_window::line_from_reg_element_no)
1909 (tui_data_window::first_reg_element_no_inline)
1910 (tui_data_window::show_registers)
1911 (tui_data_window::show_register_group)
1912 (tui_data_window::display_registers_from)
1913 (tui_data_window::display_registers_from_line)
1914 (tui_data_window::first_data_item_displayed)
1915 (tui_data_window::delete_data_content_windows)
1916 (tui_data_window::erase_data_content)
1917 (tui_data_window::do_scroll_vertical)
1918 (tui_data_window::refresh_window)
1919 (tui_data_window::check_register_values): Update.
1920
9923f347
TT
19212019-09-20 Tom Tromey <tom@tromey.com>
1922
1923 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1924 (struct tui_locator_window) <full_name, proc_name>: Now
1925 std::string.
1926 * tui/tui-stack.c (tui_locator_window::make_status_line)
1927 (tui_locator_window::set_locator_fullname)
1928 (tui_locator_window::set_locator_info): Update.
1929 * tui/tui-source.c (tui_source_window::set_contents)
1930 (tui_source_window::showing_source_p): Update.
1931
b76251ab
TT
19322019-09-20 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1935 Don't call tui_locator_win_info_ptr.
1936
0891be08
TT
19372019-09-20 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1940
1b935acf
TT
19412019-09-20 Tom Tromey <tom@tromey.com>
1942
1943 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1944 height for locator.
1945 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1946 * tui/tui-layout.c (show_source_disasm_command, show_data)
1947 (show_source_or_disasm_and_command): Use 1 as height for locator.
1948
9abd8a65
TT
19492019-09-20 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui.c (tui_enable): Update.
1952 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1953 Update.
1954 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1955 Update.
1956 * tui/tui-data.c (win_resized): Now bool.
1957 (tui_win_resized): Return bool.
1958 (tui_set_win_resized_to): Accept a bool.
1959
b5457826
TT
19602019-09-20 Tom Tromey <tom@tromey.com>
1961
1962 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1963 Change type of "refresh_values_only".
1964 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1965 type of "refresh_values_only".
1966
6b915f7d
TT
19672019-09-20 Tom Tromey <tom@tromey.com>
1968
1969 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1970 std::string.
1971 (tui_disassemble): Add "pos" parameter.
1972 (tui_disasm_window::set_contents): Simplify.
1973
2ad52f6f
TT
19742019-09-20 Tom Tromey <tom@tromey.com>
1975
1976 * tui/tui-winsource.h (struct tui_source_window_base)
1977 <show_source_content>: Now private.
1978 * tui/tui-winsource.c
1979 (tui_source_window_base::show_source_content): Don't handle empty
1980 content case.
1981
b3b1bde6
TT
19822019-09-20 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-layout.c (show_source_disasm_command)
1985 (show_source_or_disasm_and_command): Don't call
1986 show_source_content.
1987
71a25ed2
TT
19882019-09-20 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1991 Declare.
1992 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1993 from tui_make_status_line.
1994 (tui_locator_window::rerender): Update.
1995
f8532154
TT
19962019-09-20 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1999 (tui_locator_window::rerender): Update.
2000
2d81b349
TT
20012019-09-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-winsource.h (struct tui_source_window_base)
2004 <~tui_source_window_base>: Don't declare.
2005 <fullname>: Remove.
2006 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2007 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2008 member.
2009 * tui/tui-source.c (tui_source_window::set_contents): Update.
2010 (tui_source_window::location_matches_p)
2011 (tui_source_window::maybe_update): Update.
2012
f14bec58
TT
20132019-09-20 Tom Tromey <tom@tromey.com>
2014
2015 * tui/tui-winsource.h (~tui_source_element): Remove.
2016 (tui_source_element): Update.
2017 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2018 * tui/tui-winsource.c (tui_show_source_line): Update.
2019 * tui/tui-source.c (tui_source_window::set_contents): Update.
2020 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2021
78d5933a
TT
20222019-09-20 Tom Tromey <tom@tromey.com>
2023
2024 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2025 declare.
2026 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2027 tui_clear_source_windows_detail.
2028 * tui/tui-winsource.h (struct tui_source_window_base)
2029 <clear_detail>: Don't declare.
2030 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2031 Remove.
2032 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2033
d4207696
TT
20342019-09-20 Tom Tromey <tromey@adacore.com>
2035
2036 PR ada/24919:
2037 * block.c (contained_in): Fix final return value.
2038
00f93c44
AM
20392019-09-20 Alan Modra <amodra@gmail.com>
2040
2041 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2042 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2043 (read_indirect_string_from_dwz): Use bfd accessor.
2044 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2045 * machoread.c (macho_symfile_read_all_oso): Likewise.
2046 * solib.c (solib_bfd_open): Likewise.
2047
e4153ae6
CB
20482019-09-19 Christian Biesinger <cbiesinger@google.com>
2049
2050 * eval.c: Move declaration of overload_resolution to...
2051 * value.h: ...here.
2052
c7ae7675
CB
20532019-09-19 Christian Biesinger <cbiesinger@google.com>
2054
2055 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2056 * arm-linux-tdep.c: Likewise.
2057 * arm-nbsd-nat.c: Likewise.
2058 * arm-tdep.h: Declare arm_apcs_32.
2059 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2060
e86f08d2
CB
20612019-09-19 Christian Biesinger <cbiesinger@google.com>
2062
2063 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2064 * dwarf2read.h: Declare dwarf_always_disassemble.
2065
f64e2f40
TV
20662019-09-19 Tom de Vries <tdevries@suse.de>
2067
2068 PR gdb/25009
2069 * source-cache.c (source_cache::ensure): Catch exception thrown during
2070 construction of the highlighter.
2071
fd361982
AM
20722019-09-18 Alan Modra <amodra@gmail.com>
2073
2074 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2075 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2076 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2077 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2078 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2079 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2080 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2081 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2082 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2083 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2084 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2085 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2086 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2087 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2088 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2089 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2090 * mi/mi-interp.c: Update throughout for bfd section macro and
2091 function changes.
2092 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2093 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2094
11061048
TT
20952019-09-18 Tom Tromey <tom@tromey.com>
2096
2097 * NEWS: Add entry.
2098 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2099 call rl_initialize.
2100 (tui_enable): Do not call rl_initialize.
2101
7a27b85f
CG
21022019-09-18 Christian Groessler <chris@groessler.org>
2103
2104 * alpha-linux-nat.c: Include gdbarch.h.
2105
f64eea3a
SM
21062019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * ui-file.c: Include cli/cli-style.h.
2109 (term_cli_styling): Remove cli_styling declaration.
2110
e6f7f6d1
AM
21112019-09-18 Alan Modra <amodra@gmail.com>
2112
2113 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2114 to bfd_asymbol_section.
2115
1d38e9d1
AM
21162019-09-18 Alan Modra <amodra@gmail.com>
2117
2118 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2119 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2120 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2121
90d92a63
AM
21222019-09-18 Alan Modra <amodra@gmail.com>
2123
2124 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2125 * spu-linux-nat.c (spu_bfd_open): Likewise.
2126
a3d181d2
CB
21272019-09-18 Christian Biesinger <cbiesinger@google.com>
2128
2129 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2130 to bool to match definition in dwarf2read.c.
2131
491144b5
CB
21322019-09-17 Christian Biesinger <cbiesinger@google.com>
2133
2134 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2135 (print_signatures): Likewise.
2136 (trust_pad_over_xvs): Likewise.
2137 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2138 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2139 * arm-linux-nat.c (arm_apcs_32): Likewise.
2140 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2141 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2142 * arm-tdep.c (arm_debug): Likewise.
2143 (arm_apcs_32): Likewise.
2144 * auto-load.c (debug_auto_load): Likewise.
2145 (auto_load_gdb_scripts): Likewise.
2146 (global_auto_load): Likewise.
2147 (auto_load_local_gdbinit): Likewise.
2148 (auto_load_local_gdbinit_loaded): Likewise.
2149 * auto-load.h (global_auto_load): Likewise.
2150 (auto_load_local_gdbinit): Likewise.
2151 (auto_load_local_gdbinit_loaded): Likewise.
2152 * breakpoint.c (disconnected_dprintf): Likewise.
2153 (breakpoint_proceeded): Likewise.
2154 (automatic_hardware_breakpoints): Likewise.
2155 (always_inserted_mode): Likewise.
2156 (target_exact_watchpoints): Likewise.
2157 (_initialize_breakpoint): Update.
2158 * breakpoint.h (target_exact_watchpoints): Change to bool.
2159 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2160 * cli/cli-cmds.c (trace_commands): Likewise.
2161 * cli/cli-cmds.h (trace_commands): Likewise.
2162 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2163 to bool*.
2164 * cli/cli-logging.c (logging_overwrite): Change to bool.
2165 (logging_redirect): Likewise.
2166 (debug_redirect): Likewise.
2167 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2168 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2169 to bool.
2170 <boolean_option_def>: Update.
2171 (struct flag_option_def): Change default type of Context to bool
2172 from int.
2173 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2174 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2175 (get_setshow_command_value_string): Likewise.
2176 * cli/cli-style.c (cli_styling): Change to bool.
2177 (source_styling): Likewise.
2178 * cli/cli-style.h (source_styling): Likewise.
2179 (cli_styling): Likewise.
2180 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2181 to bool.
2182 * command.h (var_types): Update comment.
2183 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2184 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2185 bool.
2186 (debug_compile_cplus_scopes): Likewise.
2187 * compile/compile-internal.h (compile_debug): Likewise.
2188 * compile/compile.c (compile_debug): Likewise.
2189 (struct compile_options) <raw>: Likewise.
2190 * cp-support.c (catch_demangler_crashes): Likewise.
2191 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2192 (usr_cmd_cris_dwarf2_cfi): Likewise.
2193 * csky-tdep.c (csky_debug): Likewise.
2194 * darwin-nat.c (enable_mach_exceptions): Likewise.
2195 * dcache.c (dcache_enabled_p): Likewise.
2196 * defs.h (info_verbose): Likewise.
2197 * demangle.c (demangle): Likewise.
2198 (asm_demangle): Likewise.
2199 * dwarf-index-cache.c (debug_index_cache): Likewise.
2200 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2201 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2202 * dwarf2read.c (check_physname): Likewise.
2203 (use_deprecated_index_sections): Likewise.
2204 (dwarf_always_disassemble): Likewise.
2205 * eval.c (overload_resolution): Likewise.
2206 * event-top.c (set_editing_cmd_var): Likewise.
2207 (exec_done_display_p): Likewise.
2208 * event-top.h (set_editing_cmd_var): Likewise.
2209 (exec_done_display_p): Likewise.
2210 * exec.c (write_files): Likewise.
2211 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2212 (debug_fbsd_nat): Likewise.
2213 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2214 Likewise.
2215 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2216 <backtrace_past_entry> Likewise.
2217 * gdb-demangle.h (demangle): Likewise.
2218 (asm_demangle): Likewise.
2219 * gdb_bfd.c (bfd_sharing): Likewise.
2220 * gdbcore.h (write_files): Likewise.
2221 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2222 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2223 * gdbthread.h (print_thread_events): Likewise.
2224 * gdbtypes.c (opaque_type_resolution): Likewise.
2225 (strict_type_checking): Likewise.
2226 * gnu-nat.c (gnu_debug_flag): Likewise.
2227 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2228 * guile/scm-param.c (pascm_variable): Add boolval.
2229 (add_setshow_generic): Update.
2230 (pascm_param_value): Update.
2231 (pascm_set_param_value_x): Update.
2232 * hppa-tdep.c (hppa_debug): Change to bool..
2233 * infcall.c (may_call_functions_p): Likewise.
2234 (coerce_float_to_double_p): Likewise.
2235 (unwind_on_signal_p): Likewise.
2236 (unwind_on_terminating_exception_p): Likewise.
2237 * infcmd.c (startup_with_shell): Likewise.
2238 * inferior.c (print_inferior_events): Likewise.
2239 * inferior.h (startup_with_shell): Likewise.
2240 (print_inferior_events): Likewise.
2241 * infrun.c (step_stop_if_no_debug): Likewise.
2242 (detach_fork): Likewise.
2243 (debug_displaced): Likewise.
2244 (disable_randomization): Likewise.
2245 (non_stop): Likewise.
2246 (non_stop_1): Likewise.
2247 (observer_mode): Likewise.
2248 (observer_mode_1): Likewise.
2249 (set_observer_mode): Update.
2250 (sched_multi): Change to bool.
2251 * infrun.h (debug_displaced): Likewise.
2252 (sched_multi): Likewise.
2253 (step_stop_if_no_debug): Likewise.
2254 (non_stop): Likewise.
2255 (disable_randomization): Likewise.
2256 * linux-tdep.c (use_coredump_filter): Likewise.
2257 (dump_excluded_mappings): Likewise.
2258 * linux-thread-db.c (auto_load_thread_db): Likewise.
2259 (check_thread_db_on_load): Likewise.
2260 * main.c (captured_main_1): Update.
2261 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2262 xx2_opt, boolean_opt>: Change to bool.
2263 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2264 * maint.c (maintenance_profile_p): Likewise.
2265 (per_command_time): Likewise.
2266 (per_command_space): Likewise.
2267 (per_command_symtab): Likewise.
2268 * memattr.c (inaccessible_by_default): Likewise.
2269 * mi/mi-main.c (mi_async): Likewise.
2270 (mi_async_1): Likewise.
2271 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2272 * nat/fork-inferior.h (startup_with_shell): Likewise.
2273 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2274 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2275 * nios2-tdep.c (nios2_debug): Likewise.
2276 * or1k-tdep.c (or1k_debug): Likewise.
2277 * parse.c (parser_debug): Likewise.
2278 * parser-defs.h (parser_debug): Likewise.
2279 * printcmd.c (print_symbol_filename): Likewise.
2280 * proc-api.c (procfs_trace): Likewise.
2281 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2282 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2283 (set_parameter_value): Update.
2284 (add_setshow_generic): Update.
2285 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2286 to bool*.
2287 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2288 int*.
2289 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2290 * record-btrace.c (record_btrace_target::store_registers): Update.
2291 * record-full.c (record_full_memory_query): Change to bool.
2292 (record_full_stop_at_limit): Likewise.
2293 * record-full.h (record_full_memory_query): Likewise.
2294 * remote-notif.c (notif_debug): Likewise.
2295 * remote-notif.h (notif_debug): Likewise.
2296 * remote.c (use_range_stepping): Likewise.
2297 (interrupt_on_connect): Likewise.
2298 (remote_break): Likewise.
2299 * ser-tcp.c (tcp_auto_retry): Likewise.
2300 * ser-unix.c (serial_hwflow): Likewise.
2301 * skip.c (debug_skip): Likewise.
2302 * solib-aix.c (solib_aix_debug): Likewise.
2303 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2304 (spu_auto_flush_cache_p): Likewise.
2305 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2306 Likewise.
2307 (struct info_print_options) <quiet>: Likewise.
2308 * symfile-debug.c (debug_symfile): Likewise.
2309 * symfile.c (auto_solib_add): Likewise.
2310 (separate_debug_file_debug): Likewise.
2311 * symfile.h (auto_solib_add): Likewise.
2312 (separate_debug_file_debug): Likewise.
2313 * symtab.c (basenames_may_differ): Likewise.
2314 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2315 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2316 (struct info_types_options) <quiet>: Likewise.
2317 * symtab.h (demangle): Likewise.
2318 (basenames_may_differ): Likewise.
2319 * target-dcache.c (stack_cache_enabled_1): Likewise.
2320 (code_cache_enabled_1): Likewise.
2321 * target.c (trust_readonly): Likewise.
2322 (may_write_registers): Likewise.
2323 (may_write_memory): Likewise.
2324 (may_insert_breakpoints): Likewise.
2325 (may_insert_tracepoints): Likewise.
2326 (may_insert_fast_tracepoints): Likewise.
2327 (may_stop): Likewise.
2328 (auto_connect_native_target): Likewise.
2329 (target_stop_and_wait): Update.
2330 (target_async_permitted): Change to bool.
2331 (target_async_permitted_1): Likewise.
2332 (may_write_registers_1): Likewise.
2333 (may_write_memory_1): Likewise.
2334 (may_insert_breakpoints_1): Likewise.
2335 (may_insert_tracepoints_1): Likewise.
2336 (may_insert_fast_tracepoints_1): Likewise.
2337 (may_stop_1): Likewise.
2338 * target.h (target_async_permitted): Likewise.
2339 (may_write_registers): Likewise.
2340 (may_write_memory): Likewise.
2341 (may_insert_breakpoints): Likewise.
2342 (may_insert_tracepoints): Likewise.
2343 (may_insert_fast_tracepoints): Likewise.
2344 (may_stop): Likewise.
2345 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2346 (make_thread_apply_all_options_def_group): Change argument from int*
2347 to bool*.
2348 (thread_apply_all_command): Update.
2349 (print_thread_events): Change to bool.
2350 * top.c (confirm): Likewise.
2351 (command_editing_p): Likewise.
2352 (history_expansion_p): Likewise.
2353 (write_history_p): Likewise.
2354 (info_verbose): Likewise.
2355 * top.h (confirm): Likewise.
2356 (history_expansion_p): Likewise.
2357 * tracepoint.c (disconnected_tracing): Likewise.
2358 (circular_trace_buffer): Likewise.
2359 * typeprint.c (print_methods): Likewise.
2360 (print_typedefs): Likewise.
2361 * utils.c (debug_timestamp): Likewise.
2362 (sevenbit_strings): Likewise.
2363 (pagination_enabled): Likewise.
2364 * utils.h (sevenbit_strings): Likewise.
2365 (pagination_enabled): Likewise.
2366 * valops.c (overload_resolution): Likewise.
2367 * valprint.h (struct value_print_options) <prettyformat_arrays,
2368 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2369 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2370 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2371 Likewise.
2372 * windows-nat.c (new_console): Likewise.
2373 (cygwin_exceptions): Likewise.
2374 (new_group): Likewise.
2375 (debug_exec): Likewise.
2376 (debug_events): Likewise.
2377 (debug_memory): Likewise.
2378 (debug_exceptions): Likewise.
2379 (useshell): Likewise.
2380 * windows-tdep.c (maint_display_all_tib): Likewise.
2381 * xml-support.c (debug_xml): Likewise.
2382
f1b620e9
MG
23832019-09-17 Mike Gulick <mgulick@mathworks.com>
2384
2385 * source.c (prepare_path_for_appending): New function.
2386 (openp): Make use of new function.
2387 (find_and_open_source): Search for the compilation directory and
2388 source file as a relative path beneath the directory search path.
2389
67f3ed6a
AB
23902019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2391
2392 * source-cache.c (source_cache::get_line_charpos): Catch
2393 exceptions and return false, this matches the behaviour documented
2394 in the header file.
2395
74332189
JB
23962019-09-17 Joel Brobecker <brobecker@adacore.com>
2397
2398 * ada-tasks.c (info_task): Remove quoting of the task's name.
2399
f2f24aa9
CB
24002019-09-16 Christian Biesinger <cbiesinger@google.com>
2401
2402 * symfile.c (auto_solib_add): Replace comment with a reference
2403 to the header file.
2404
6a062a93
CB
24052019-09-14 Christian Biesinger <cbiesinger@google.com>
2406
2407 * NEWS: Mention that gdb can now be compiled with Python 3
2408 on Windows.
2409
ec6c8338
AB
24102019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * maint.c (maint_print_section_data::maint_print_section_data):
2413 Force use of 'float log10 (float)' by casting the argument to
2414 float.
2415
aa17805f
AB
24162019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * maint.c: Add 'cmath' include.
2419 (struct maint_print_section_data): New structure.
2420 (print_section_index): New function.
2421 (print_bfd_section_info): Add header comment, small whitespace
2422 cleanup, and update to call new print_section_index function.
2423 (print_objfile_section_info): Likewise.
2424 (maint_obj_section_from_bfd_section): New function.
2425 (print_bfd_section_info_maybe_relocated): New function.
2426 (maintenance_info_sections): Add header comment, always use
2427 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2428
3dd9bb46
AB
24292019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2432 inner scope, add check that the objfile has psymtabs before
2433 checking psymtabs_addrmap.
2434 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2435
4993045d
PW
24362019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2437
2438 * NEWS: Announce that Ada task names are now shown at more places,
2439 and between quotes (except in info task output).
2440 * gdb/ada-tasks.c (task_to_str): New function.
2441 (display_current_task_id): Call task_to_str.
2442 (task_command_1): Likewise.
2443 (print_ada_task_info): In non-mi mode, Properly align headers and data
2444 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2445
7a289707
RO
24462019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2447
2448 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2449 prstatus.pr_lwp.pr_info instead of making it up.
2450
f2aec7f6
CB
24512019-09-11 Christian Biesinger <cbiesinger@google.com>
2452
2453 * auto-load.c (auto_load_expand_dir_vars): Update.
2454 * defs.h (gdb_datadir): Change to std::string.
2455 (python_libdir): Likewise.
2456 (relocate_gdb_directory): Change return type to std::string.
2457 * guile/guile.c (gdbscm_data_directory): Update.
2458 (initialize_scheme_side): Update.
2459 * jit.c (jit_reader_dir): Change to std::string.
2460 (jit_reader_load_command): Update.
2461 * main.c (gdb_datadir): Change to std::string.
2462 (python_libdir): Likewise.
2463 (set_gdb_data_directory): Update.
2464 (relocate_path): Change to return std::string.
2465 (relocate_gdb_directory): Change to return std::string.
2466 (relocate_gdbinit_path_maybe_in_datadir): Update.
2467 (captured_main_1): Update.
2468 * python/python.c (do_start_initialization): Update.
2469 * top.c (show_gdb_datadir): Update.
2470 * xml-syscall.c (xml_init_syscalls_info): Update.
2471 (init_syscalls_info): Update.
2472
9224a013
CB
24732019-09-11 Christian Biesinger <cbiesinger@google.com>
2474
2475 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2476 out of get_init_files.
2477 (get_init_files): Update.
2478
f48cd836
CB
24792019-09-11 Christian Biesinger <cbiesinger@google.com>
2480
2481 * main.c (get_init_files): Change to use std::string.
2482 (captured_main_1): Update.
2483 (print_gdb_help): Update.
2484
9cab7ecd
AT
24852019-09-11 Ali Tamur <tamur@google.com>
2486
2487 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2488 implementation.
2489
67547d89
CB
24902019-09-11 Christian Biesinger <cbiesinger@google.com>
2491
2492 * dbxread.c (read_dbx_symtab): Update.
2493 * dwarf2read.c (load_partial_dies): Update.
2494 * mdebugread.c (parse_partial_symbols): Update.
2495 (handle_psymbol_enumerators): Update.
2496 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2497 * psymtab.c (add_psymbol_to_bcache): Likewise.
2498 (add_psymbol_to_list): Likewise.
2499 * symtab.c (symbol_set_names): Likewise.
2500 * symtab.h (symbol_set_names): Likewise.
2501 * xcoffread.c (scan_xcoff_symtab): Update.
2502
64b2d4a0
TT
25032019-09-11 Tom Tromey <tom@tromey.com>
2504
2505 * symfile-mem.c (symbol_file_add_from_memory): Use
2506 bfd_set_filename.
2507 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2508 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2509
3b00ef10
TT
25102019-09-10 Tom Tromey <tromey@adacore.com>
2511
2512 * dwarf-index-write.c (write_psymbols): Extend error message.
2513 (debug_names::insert): Add Ada code.
2514 (debug_names::write_psymbols): Remove Ada check.
2515 (debug_names) <m_string_obstack>: New member.
2516 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2517 (gdb_index_symbol_name_matcher::matches): Remove.
2518 (mapped_index_base::find_name_components_bounds): Add "lang"
2519 parameter.
2520 (mapped_index_base::build_name_components): Also split names
2521 according to Ada syntax.
2522 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2523 type of "match_callback".
2524 (check_match, check_find_bounds_finds)
2525 (dw2_expand_symtabs_matching): Update.
2526 (dw2_debug_names_iterator): Add new constructor.
2527 (dw2_debug_names_map_matching_symbols): New function.
2528 (dw2_debug_names_expand_symtabs_matching): Update.
2529 (dwarf2_debug_names_functions): Use
2530 dw2_debug_names_map_matching_symbols.
2531
aa391654
TT
25322019-09-10 Tom Tromey <tromey@adacore.com>
2533
2534 * dwarf2read.c (dw2_get_file_names_reader): Add the
2535 CU's file name to the results.
2536
b054970d
TT
25372019-09-10 Tom Tromey <tromey@adacore.com>
2538
2539 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2540 map_matching_symbols. Update.
2541 * dwarf2read.c (dw2_map_matching_symbols): Update.
2542 * psymtab.c (match_partial_symbol): Change type; update.
2543 (psym_map_matching_symbols): Likewise.
2544 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2545 type; update.
2546 * symfile.h (struct quick_symbol_functions)
2547 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2548 Remove "match".
2549
6a3dbf1b
TT
25502019-09-10 Tom Tromey <tromey@adacore.com>
2551
2552 * psymtab.c (map_block): Remove.
2553 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2554 * symtab.c (iterate_over_symbols_terminated): New function.
2555 * symtab.c (iterate_over_symbols_terminated): Declare.
2556
6969f124
TT
25572019-09-10 Tom Tromey <tromey@adacore.com>
2558
2559 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2560 * language.h (struct language_defn) <la_iterate_over_symbols>:
2561 Return bool.
2562 * symtab.c (iterate_over_symbols): Return bool.
2563 * symtab.h (iterate_over_symbols): Return bool.
2564
199b4314
TT
25652019-09-10 Tom Tromey <tromey@adacore.com>
2566
2567 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2568 (add_nonlocal_symbols): Update.
2569 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2570 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2571 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2572 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2573 Change type of "callback". Remove "data".
2574
a084a2a6
AT
2575
25762019-09-09 Ali Tamur <tamur@google.com>
2577
2578 * dwarf2read.c (comp_unit_head): Update comment.
2579 (dwarf2_dwo_name): New function declaration.
2580 (dwarf_unit_type_name): New function declaration.
2581 (read_comp_unit_head): Add support for new compilation units,
2582 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2583 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2584 (currently named as "signature") in their header. Also clarify error
2585 messages.
2586 (lookup_dwo_id): New function. Returns the dwo id of the given
2587 compile unit.
2588 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2589 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2590 functions.
2591 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2592 (dwarf2_dwo_name): Get the dwo name if present.
2593 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2594 purposes.
2595
25a2915e
TT
25962019-09-09 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2599
e4df0874
PW
26002019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2601
2602 * python/python.c (do_start_initialization): Make progname_copy static,
2603 to avoid a leak report.
2604
8634b462
TT
26052019-09-08 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2608
c7f839cb
SM
26092019-09-07 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2612 Change type to gdb::optional<block_enum>.
2613 (dw2_symtab_iter_init): Change block_index parameter type
2614 to gdb::optional<block_enum>.
2615 (dw2_lookup_symbol): Change block_index parameter
2616 type to block_enum.c
2617 (dw2_debug_names_lookup_symbol): Likewise.
2618 * psymtab.c (psym_lookup_symbol): Likewise.
2619 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2620 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2621 Likewise.
2622
ead0e69a
CB
26232019-09-06 Christian Biesinger <cbiesinger@google.com>
2624
2625 * defs.h (relocate_gdb_directory): Change int to bool in
2626 signature and rename flag to relocatable.
2627 * main.c (relocate_path): Likewise.
2628 (relocate_gdb_directory): Likewise.
2629
b16c44de
AM
26302019-09-06 Alan Modra <amodra@gmail.com>
2631
2632 * coffread.c (coff_symfile_read): Constify filename variable.
2633 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2634 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2635 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2636 * solib.c (reload_shared_libraries_1): Likewise.
2637 * symfile.c (reread_symbols): Likewise.
2638 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2639 * solib-darwin.c (darwin_bfd_open): Likewise.
2640 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2641
06ff036e
AB
26422019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2643
2644 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2645 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2646
4e962e74
TT
26472019-09-03 Tom Tromey <tromey@adacore.com>
2648
2649 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2650 types.
2651 (has_negatives): Unbias a range type bound.
2652 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2653 * gdbtypes.c (operator==): Handle new field.
2654 (create_range_type): Add "bias" parameter.
2655 (create_static_range_type, resolve_dynamic_range): Update.
2656 * gdbtypes.h (struct range_bounds) <bias>: New member.
2657 (create_range_type): Add bias parameter.
2658 * printcmd.c (print_scalar_formatted): Unbias range types.
2659 * value.c (unpack_long): Unbias range types.
2660 (pack_long): Bias range types.
2661
d90b8f26
AH
26622019-09-02 Alan Hayward <alan.hayward@arm.com>
2663
2664 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2665 probe arguments.
2666
fe01123e
AH
26672019-09-02 Alan Hayward <alan.hayward@arm.com>
2668
2669 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2670 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2671 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2672 (compile_probe_arg): Likewise.
2673 * probe.h (get_argument_count): Likewise.
2674 * solib-svr4.c (solib_event_probe_action): Likewise.
2675 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2676
e661ef01
AH
26772019-09-02 Alan Hayward <alan.hayward@arm.com>
2678
2679 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2680 code to here...
2681 (svr4_create_solib_event_breakpoints): ...from here.
2682
47a536d9
SDJ
26832019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2684
2685 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2686 suffix from warning message.
2687
d6a00eba
TT
26882019-08-30 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-winsource.h (struct tui_source_window_base)
2691 <refresh_all>: Don't declare.
2692 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2693 Remove.
2694 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2695 tui_show_locator_content.
2696 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2697 declare.
2698 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2699 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2700 declare.
2701
55b2657b
TT
27022019-08-30 Tom Tromey <tom@tromey.com>
2703
2704 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2705
12a8555a
TT
27062019-08-30 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2709 Remove unnecessary forward declarations.
2710
900ac242
TT
27112019-08-30 Tom Tromey <tom@tromey.com>
2712
2713 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2714 rerender.
2715 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2716 tui_show_locator_content.
2717
99ab33fb
TT
27182019-08-30 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2721 (tui_locator_window::rerender): Rewrite using body of previous
2722 tui_show_locator_content.
2723
e594a5d1
TT
27242019-08-30 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2727 set_locator_fullname>: New methods.
2728 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2729 Rename from tui_set_locator_fullname.
2730 (tui_locator_window::set_locator_info): Rename from
2731 tui_set_locator_info. Return bool.
2732 (tui_update_locator_fullname, tui_show_frame_info): Update.
2733
715bb467
TT
27342019-08-30 Tom Tromey <tom@tromey.com>
2735
2736 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2737
772f3f03
TT
27382019-08-30 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2741 call touchwin.
2742
108e13ab
TT
27432019-08-30 Tom Tromey <tom@tromey.com>
2744
2745 * tui/tui-wingeneral.c (box_win): Assume win_info and
2746 win_info->handle cannot be NULL.
2747
cdaa6eb4
TT
27482019-08-30 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2751 refresh_window>: Declare.
2752 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2753 resize.
2754 (tui_data_item_window::rerender): Rename from
2755 tui_display_register.
2756 (tui_data_item_window::refresh_window): New method.
2757 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2758 no-op.
2759
89df7f90
TT
27602019-08-30 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2763 regs_column_count, current_group>: Move later. Now private.
2764 <get_current_group>: New method.
2765 * tui/tui-regs.c (tui_reg_command): Update.
2766 * tui/tui-layout.c (tui_set_layout): Update.
2767
1bf2866a
TT
27682019-08-30 Tom Tromey <tom@tromey.com>
2769
2770 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2771 (tui_data_window::rerender): Don't call
2772 check_and_display_highlight_if_needed.
2773 (tui_data_window::refresh_all): Remove call to
2774 erase_data_content.
2775
0670413d
TT
27762019-08-30 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2779 (tui_data_window::display_registers_from)
2780 (tui_data_window::display_reg_element_at_line)
2781 (tui_data_window::display_registers_from_line): Remove checks of
2782 "empty".
2783
18bb55c7
TT
27842019-08-30 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2787 Don't declare.
2788 * tui/tui-regs.c (tui_data_window::show_registers): Call
2789 rerender.
2790 (tui_data_window::rerender): Rename from display_all_data.
2791 (tui_data_window::rerender): Remove old implementation.
2792
1f6d2f10
TT
27932019-08-30 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2796 text.
2797 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2798
16d01f9c
BW
27992019-08-29 Bernhard Wodok <barto@gmx.net>
2800 Sergio Durigan Junior <sergiodj@redhat.com>
2801
2802 PR win32/24284
2803 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2804
d8f27c60
AB
28052019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2806
2807 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2808 when searching for types.
2809
1f20c35e
AB
28102019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * f-lang.c (f_language_defn): Use f_print_typedef.
2813 * f-lang.h (f_print_typedef): Declare.
2814 * f-typeprint.c (f_print_typedef): Define.
2815
550105b7
CB
28162019-08-27 Christian Biesinger <cbiesinger@google.com>
2817
2818 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2819
4acfdd20
AB
28202019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * cli/cli-utils.c (info_print_options_defs): Delete.
2823 (make_info_print_options_def_group): Delete.
2824 (extract_info_print_options): Delete.
2825 (info_print_command_completer): Delete.
2826 (info_print_args_help): Add extra parameter, and optionally
2827 include text about -n flag.
2828 * cli/cli-utils.h (struct info_print_options): Delete.
2829 (extract_info_print_options): Delete declaration.
2830 (info_print_command_completer): Delete declaration.
2831 (info_print_args_help): Add extra parameter, extend header
2832 comment.
2833 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2834 search_symbols.
2835 * stack.c (struct info_print_options): New type.
2836 (info_print_options_defs): New file scoped variable.
2837 (make_info_print_options_def_group): New static function.
2838 (info_print_command_completer): New static function.
2839 (info_locals_command): Update to use new local functions.
2840 (info_args_command): Likewise.
2841 (_initialize_stack): Add extra parameter to calls to
2842 info_print_args_help.
2843 * symtab.c (search_symbols): Add extra parameter, use this to
2844 possibly excluse non-debug symbols.
2845 (symtab_symbol_info): Add extra parameter, which is passed on to
2846 search_symbols.
2847 (struct info_print_options): New type.
2848 (info_print_options_defs): New file scoped variable.
2849 (make_info_print_options_def_group): New static function.
2850 (info_print_command_completer): New static function.
2851 (info_variables_command): Update to use local functions, and pass
2852 extra parameter through to symtab_symbol_info.
2853 (info_functions_command): Likewise.
2854 (info_types_command): Pass additional argument through to
2855 symtab_symbol_info.
2856 (rbreak_command): Pass extra argument to search_symbols.
2857 (_initialize_symtab): Add extra arguments for calls to
2858 info_print_args_help, and update help text for 'info variables',
2859 'whereis', and 'info functions' commands.
2860 * symtab.h (search_symbols): Add extra argument to declaration.
2861 * NEWS: Mention new flags.
2862
9aa55206
CB
28632019-08-26 Christian Biesinger <cbiesinger@google.com>
2864
2865 * symtab.c (lookup_static_symbol): Call the new function (and move
2866 it down to be next to lookup_global_symbol).
2867 (struct global_sym_lookup_data): Add block_enum member and rename to...
2868 (struct global_or_static_sym_lookup_data): ...this.
2869 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2870 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2871 (lookup_symbol_global_or_static_iterator_cb): ...this.
2872 (lookup_global_or_static_symbol): New function.
2873 (lookup_global_symbol): Call new function.
2874
5c31b358
TV
28752019-08-26 Tom de Vries <tdevries@suse.de>
2876
2877 PR c++/24852
2878 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2879 when pc_probe.prob == NULL.
2880
23c13d42
SM
28812019-08-25 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2884 variable symbol_linkage to symbol_linkage_.
2885
beadd3e8
SM
28862019-08-25 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2889 represent whether the symbol is static, dynamic, or we don't
2890 know.
2891
e3ec872f
YS
28922019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2893
2894 * gdb/rx-tdep.c (rx_register_names): New.
2895 (rx_register_name): Delete.
2896 (rx_psw_type): Delete.
2897 (rx_fpsw_type): Delete.
2898 (rx_register_type): Delete.
2899 (rx_gdbarch_init): Convert target-descriptions.
2900 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2901 * gdb/features/Makefile: Add rx.xml.
2902 * gdb/features/rx.xml: New.
2903 * gdb/features/rx.c: Generated.
2904 * gdb/NEWS: Mention target description support.
2905
d0509ba4
CB
29062019-08-22 Christian Biesinger <cbiesinger@google.com>
2907
2908 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2909 *slot_ptr.
2910
2d41fa11
SDJ
29112019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2912
2913 * configure.ac: Don't check for 'dlfcn.h' (moved to
2914 gdbsupport/common.m4).
2915 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2916 'gdbsupport/'.
2917 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2918 * compile/compile-c-support.c: Include
2919 'gdbsupport/gdb-dlfcn.h'.
2920 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2921 * gdb-dlfcn.c: Move to...
2922 * gdbsupport/gdb-dlfcn.c: ... here.
2923 * gdb-dlfcn.h: Move to...
2924 * gdbsupport/gdb-dlfcn.h: ... here.
2925
de8af808
SL
29262019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2927
2928 * nios2-tdep.c (struct reg_value): Improve comments. Make
2929 the offset field signed.
2930
27204489
CB
29312019-08-22 Christian Biesinger <cbiesinger@google.com>
2932
2933 * python/lib/gdb/__init__.py (_execute_file): New function.
2934 * python/python.c (python_run_simple_file): Call gdb._execute_file
2935 on Windows.
2936
43771869
AB
29372019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2940 all uses as this was never set to anything but a zero value.
2941
26c957f1
PA
29422019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2943
2944 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2945
c07aae6e
CB
29462019-08-21 Christian Biesinger <cbiesinger@google.com>
2947
2948 * tui/tui-data.h (tui_gen_win_info): Add an =default
2949 move constructor, required by some GCC versions.
2950
3960cb7a
JF
29512019-08-21 Jinke Fan <fanjinke51@yeah.net>
2952
2953 * go32-nat.c (go32_sysinfo): Add hygon_p.
2954
04c72a68
TT
29552019-08-20 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2958 line_from_reg_element_no, first_reg_element_no_inline,
2959 display_all_data, delete_data_content_windows,
2960 erase_data_content>: Now private.
2961
072272ce
TT
29622019-08-20 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2965 (tui_unhighlight_win, tui_highlight_win)
2966 (tui_win_info::make_window): Update.
2967 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2968
973961bd
TT
29692019-08-20 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2972 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2973 (MAX_PID_WIDTH): Move to tui-stack.c.
2974 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2975 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2976 (MAX_PID_WIDTH): Move from tui-data.h.
2977
ab0e1f1a
TT
29782019-08-20 Tom Tromey <tom@tromey.com>
2979
2980 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2981 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2982 (box_win): Update.
2983 (tui_gen_win_info::make_window): Rename from tui_make_window.
2984 (tui_win_info::make_window): New method.
2985 (tui_gen_win_info::make_visible): Update.
2986 * tui/tui-source.c (tui_source_window::set_contents): Update.
2987 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2988 (tui_data_window::display_registers_from): Update.
2989 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2990 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2991 Declare.
2992 <can_box>: Remove.
2993 <title>: Remove.
2994 (struct tui_win_info) <make_window>: Declare.
2995 <can_box>: Now virtual.
2996 <title>: New member.
2997 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2998 * tui/tui-command.c (tui_cmd_window::resize): Update.
2999
100c2bf3
TT
30002019-08-20 Tom Tromey <tom@tromey.com>
3001
3002 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3003 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3004 (tui_data_window::check_register_values): Update.
3005
fa4dc567
TT
30062019-08-20 Tom Tromey <tom@tromey.com>
3007
3008 * tui/tui-regs.h (struct tui_data_window): Use
3009 DISABLE_COPY_AND_ASSIGN.
3010 <regs_content>: Change type, removing unique_ptr.
3011 <tui_data_window>: Add move constructor.
3012 * tui/tui-regs.c (tui_data_window::show_registers)
3013 (tui_data_window::show_register_group)
3014 (tui_data_window::display_registers_from)
3015 (tui_data_window::display_registers_from)
3016 (tui_data_window::first_data_item_displayed)
3017 (tui_data_window::delete_data_content_windows)
3018 (tui_data_window::rerender, tui_data_window::refresh_window)
3019 (tui_data_window::check_register_values): Update.
3020
ca02d7c8
TT
30212019-08-20 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3024 show_register_group>: Declare.
3025 (tui_show_register_group): Don't declare.
3026 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3027 tui_show_registers.
3028 (tui_data_window::show_register_group): Rename from
3029 tui_show_register_group.
3030 (tui_data_window::check_register_values, tui_reg_command):
3031 Update.
3032 * tui/tui-layout.c (tui_set_layout): Update.
3033
63356bfd
TT
30342019-08-20 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3037 Declare.
3038 (tui_check_register_values): Don't declare.
3039 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3040 from tui_check_register_values.
3041 * tui/tui-hooks.c (tui_register_changed): Update.
3042
42cc14a7
TT
30432019-08-20 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-regs.c (tui_reg_layout): Move later.
3046 (tui_show_registers): Don't enable TUI mode or change layout.
3047
b9ad3686
TT
30482019-08-20 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-regs.h (struct tui_data_item_window)
3051 <~tui_data_item_window>: Remove.
3052 <content>: Now a unique_xmalloc_ptr.
3053 * tui/tui-regs.c (tui_register_format): Return a
3054 unique_xmalloc_ptr.
3055 (tui_get_register): Update.
3056 (~tui_data_item_window): Remove.
3057 (tui_data_window::display_registers_from, tui_display_register):
3058 Update.
3059 * tui/tui-io.h (tui_expand_tabs): Update.
3060 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3061 Remove "col" parameter.
3062
8e114aab
TT
30632019-08-20 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3066 field.
3067 * tui/tui-regs.c (~tui_data_item_window): Update.
3068
1a4f81dd
TT
30692019-08-20 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3072 earlier.
3073
0f8d8876
TT
30742019-08-20 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3077
605dc2c2
TT
30782019-08-20 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-source.h (struct tui_source_window): Update.
3081 * tui/tui-regs.c (tui_show_registers): Update.
3082 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3083 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3084 (NO_REGS_STRING): Remove defines.
3085
aedbe3bb
CM
30862019-08-20 Conrad Meyer <cem@FreeBSD.org>
3087
3088 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3089 unnecessary thread walk if remote doesn't support the packet.
3090
7ce8f214
TT
30912019-08-19 Tom Tromey <tromey@adacore.com>
3092
3093 * python/py-value.c (value_has_field): Fix indentation.
3094
f21c2bd7
TT
30952019-08-19 Tom Tromey <tromey@adacore.com>
3096
3097 * printcmd.c (do_one_display, info_display_command): Update.
3098 * block.h (contained_in): Return bool. Add allow_nested
3099 parameter.
3100 * block.c (contained_in): Return bool. Add allow_nested
3101 parameter.
3102
d806ea2d
TT
31032019-08-19 Tom Tromey <tom@tromey.com>
3104
3105 * configure: Rebuild.
3106 * configure.ac: Disallow the combination of -static-libstdc++ and
3107 source highlight.
3108 * source-cache.c (get_language_name): Handle rust.
3109 (source_cache::get_source_lines): Ignore highlighting exceptions.
3110
398fdd60
TT
31112019-08-16 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3114 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3115 (struct tui_source_window_base) <make_visible, refresh_window,
3116 resize>: Remove methods.
3117 <execution_info>: Remove field.
3118 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3119 (tui_show_source_line, tui_source_window_base)
3120 (~tui_source_window_base): Update.
3121 (tui_source_window_base::resize)
3122 (tui_source_window_base::make_visible)
3123 (tui_source_window_base::refresh_window): Remove.
3124 (tui_source_window_base::update_exec_info): Update.
3125 * tui/tui-source.c (tui_source_window::set_contents): Update.
3126 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3127
e699d331
TT
31282019-08-16 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3131 deprecated_query_hook.
3132
bb01dbfc
TT
31332019-08-16 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3136 (tui_update_source_windows_with_line): Update.
3137 * tui/tui-source.h (struct tui_source_window)
3138 <show_symtab_source>: Declare.
3139 (tui_show_symtab_source): Don't declare.
3140 * tui/tui-source.c (tui_show_symtab_source): Rename from
3141 tui_show_symtab_source.
3142
81c82c4b
TT
31432019-08-16 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-winsource.h (struct tui_source_window_base)
3146 <set_contents>: Declare.
3147 * tui/tui-winsource.c
3148 (tui_source_window_base::update_source_window_as_is): Update.
3149 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3150 Declare.
3151 (tui_set_source_content): Don't declare.
3152 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3153 tui_set_source_content.
3154 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3155 Declare.
3156 (tui_set_disassem_content): Don't declare.
3157 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3158 tui_set_disassem_content.
3159
2ddaf614
TT
31602019-08-16 Tom Tromey <tom@tromey.com>
3161
3162 * tui/tui-winsource.h (struct tui_source_window_base)
3163 <update_breakpoint_info>: Declare.
3164 (tui_update_breakpoint_info): Don't declare.
3165 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3166 (tui_update_all_breakpoint_info): Update.
3167 (tui_source_window_base::update_breakpoint_info): Rename from
3168 tui_update_breakpoint_info.
3169 (tui_source_window_base::update_exec_info): Update.
3170
017f9828
TT
31712019-08-16 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-winsource.h (struct tui_source_window_base)
3174 <update_source_window>: Declare.
3175 (tui_update_source_window): Don't declare.
3176 * tui/tui-winsource.c
3177 (tui_source_window_base::update_source_window): Rename from
3178 tui_update_source_window.
3179 (tui_source_window_base::rerender): Update.
3180 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3181 * tui/tui-disasm.c (tui_show_disassem)
3182 (tui_show_disassem_and_update_source)
3183 (tui_disasm_window::maybe_update): Update.
3184
ed8358e9
TT
31852019-08-16 Tom Tromey <tom@tromey.com>
3186
3187 * tui/tui-winsource.h (struct tui_source_window_base)
3188 <update_source_window_as_is>: Declare.
3189 (tui_update_source_window_as_is): Don't declare.
3190 * tui/tui-winsource.c (tui_update_source_window): Update
3191 (tui_source_window_base::update_source_window_as_is): Rename from
3192 tui_update_source_window_as_is.
3193 (tui_source_window_base::refill): Update.
3194 * tui/tui-source.c (tui_show_symtab_source): Update.
3195 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3196 Update.
3197
20149b6b
TT
31982019-08-16 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui-winsource.h (tui_update_source_window)
3201 (tui_update_source_window_as_is): Remove "noerror" parameter.
3202 * tui/tui-winsource.c (tui_update_source_window)
3203 (tui_update_source_window_as_is): Remove "noerror" parameter.
3204 (tui_update_source_windows_with_addr)
3205 (tui_update_source_windows_with_line)
3206 (tui_source_window_base::rerender)
3207 (tui_source_window_base::refill): Update.
3208 * tui/tui-source.h (tui_set_source_content)
3209 (tui_show_symtab_source): Remove "noerror" parameter.
3210 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3211 parameter.
3212 (tui_show_symtab_source): Likewise.
3213 (tui_source_window::maybe_update): Update.
3214 * tui/tui-disasm.c (tui_show_disassem)
3215 (tui_show_disassem_and_update_source)
3216 (tui_disasm_window::do_scroll_vertical)
3217 (tui_disasm_window::maybe_update): Update.
3218
2d83e710
TT
32192019-08-16 Tom Tromey <tom@tromey.com>
3220
3221 * tui/tui.c (tui_is_window_visible): Update.
3222 * tui/tui-wingeneral.c (tui_make_window)
3223 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3224 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3225 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3226 (tui_set_win_height_command, parse_scrolling_args): Update.
3227 * tui/tui-source.c (tui_source_window::style_changed): Update.
3228 * tui/tui-regs.c (tui_show_registers)
3229 (tui_data_window::first_data_item_displayed)
3230 (tui_data_window::delete_data_content_windows)
3231 (tui_check_register_values, tui_reg_command): Update.
3232 * tui/tui-disasm.c (tui_show_disassem): Update.
3233 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3234 method.
3235 <is_visible>: Remove field.
3236 * tui/tui-data.c (tui_next_win, tui_prev_win)
3237 (tui_delete_invisible_windows): Update.
3238
d4ab829a
TT
32392019-08-16 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-winsource.h (struct tui_source_window_base)
3242 <m_has_locator>: Remove.
3243 * tui/tui-layout.c (show_source_disasm_command, show_data)
3244 (show_source_or_disasm_and_command): Update.
3245
aa7ca1bb
AH
32462019-08-16 Alan Hayward <alan.hayward@arm.com>
3247
3248 * NEWS (Other MI changes): New subsection.
3249 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3250 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3251 * arch-utils.c (default_get_pc_address_flags): New function.
3252 * arch-utils.h (default_get_pc_address_flags): New declaration.
3253 * gdbarch.sh: Add get_pc_address_flags.
3254 * gdbarch.c: Regenerate.
3255 * gdbarch.h: Likewise.
3256 * stack.c (print_pc): New function.
3257 (print_frame_info) (print_frame): Call print_pc.
3258
6eac171f
TV
32592019-08-16 Tom de Vries <tdevries@suse.de>
3260
3261 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3262 print_objfile_section_info.
3263
3df505f6
TT
32642019-08-15 Tom Tromey <tom@tromey.com>
3265
3266 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3267 calling update_cmdwin_start_line.
3268 * tui/tui-winsource.h (struct tui_source_window_base)
3269 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3270 <rerender>: Declare.
3271 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3272 Call rerender.
3273 (tui_source_window_base::set_new_height): Remove.
3274 (tui_source_window_base::rerender): Rename from
3275 do_make_visible_with_new_height.
3276 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3277 resize method.
3278 (tui_win_info::make_invisible_and_set_new_height)
3279 (tui_win_info::make_visible_with_new_height): Remove.
3280 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3281 Declare.
3282 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3283 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3284 do_make_visible_with_new_height>: Don't declare.
3285 <rerender>: Declare.
3286 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3287 set_new_height.
3288 (tui_data_window::do_make_visible_with_new_height): Remove.
3289 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3290 call tui_show_locator_content.
3291 (tui_gen_win_info::resize): Call rerender.
3292 (show_source_or_disasm_and_command): Don't call
3293 tui_show_locator_content.
3294 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3295 method.
3296 (struct tui_win_info) <rerender>: Declare.
3297 <set_new_height, make_invisible_and_set_new_height,
3298 make_visible_with_new_height>: Don't declare.
3299 * tui/tui-data.c (tui_win_list::rerender): New method.
3300 * tui/tui-command.h (struct tui_cmd_window)
3301 <do_make_visible_with_new_height>: Don't declare.
3302 * tui/tui-command.c
3303 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3304
272560b5
TT
33052019-08-15 Tom Tromey <tromey@adacore.com>
3306
3307 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3308 * ada-lang.c (ada_enum_name): Likewise.
3309
08235187
CB
33102019-08-15 Christian Biesinger <cbiesinger@google.com>
3311
3312 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3313 leading underscore.
3314 (GdbOutputErrorFile): Likewise.
3315 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3316 accordingly.
3317 (execute_unwinders): Rename to have a leading underscore.
3318 (auto_load_packages): Likewise.
3319 (global scope): Adjust call to auto_load_packages accordingly.
3320 (GdbSetPythonDirectory): Likewise.
3321 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3322 instead of execute_unwinders.
3323
db502012
TT
33242019-08-15 Tom Tromey <tom@tromey.com>
3325
3326 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3327 (show_data): Don't change window visibility.
3328 (tui_gen_win_info::resize): Remove special case for command
3329 window. Use wresize, when available.
3330 (show_source_or_disasm_and_command): Don't change window
3331 visibility.
3332 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3333 <make_visible>: New method.
3334 * tui/tui-command.c (tui_cmd_window::resize): New method.
3335
3891b65e
TT
33362019-08-15 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3339 (struct tui_source_windows): New.
3340 * tui/tui-winsource.c (tui_display_main): Update.
3341 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3342 (new_height_ok, parse_scrolling_args): Update.
3343 * tui/tui-layout.c (show_layout, show_data): Update.
3344 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3345 (tui_add_to_source_windows): Don't declare.
3346 * tui/tui-data.c (source_windows, tui_source_windows)
3347 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3348
ee556432
TT
33492019-08-15 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3352 Rename from reset.
3353 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3354 * tui/tui-layout.c (show_source_disasm_command, show_data):
3355 Update.
3356 (tui_gen_win_info::resize): Rename.
3357 (show_source_or_disasm_and_command): Update.
3358 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3359 reset.
3360
46f438e3
TT
33612019-08-15 Tom Tromey <tom@tromey.com>
3362
3363 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3364 * tui/tui-interp.c (tui_interp::init): Don't call
3365 tui_initialize_static_data.
3366 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3367
f4ce562c
TT
33682019-08-15 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3371 examine tui_win_list.
3372
c398c3d0
TT
33732019-08-15 Tom Tromey <tom@tromey.com>
3374
3375 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3376 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3377 tui_clear_source_content.
3378 (tui_clear_source_content): Remove.
3379 (tui_source_window_base::do_erase_source_content): Hoist call to
3380 content.clear().
3381 * tui/tui-stack.c (tui_show_frame_info): Don't call
3382 tui_clear_source_content.
3383
e25d2004
TT
33842019-08-15 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui-winsource.h (struct tui_source_window_base)
3387 <do_erase_source_content>: New method.
3388 <erase_source_content>: New method.
3389 (tui_erase_source_content): Don't declare.
3390 * tui/tui-winsource.c (tui_clear_source_content): Update.
3391 (tui_source_window_base::do_erase_source_content): Rename from
3392 tui_erase_source_content.
3393 (tui_source_window_base::show_source_content): Update.
3394 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3395 * tui/tui-source.h (struct tui_source_window)
3396 <erase_source_content>: New method.
3397 * tui/tui-disasm.h (struct tui_disasm_window)
3398 <erase_source_content>: New method.
3399
002f15c2
TT
34002019-08-15 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3403 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3404 constructor.
3405 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3406 * tui/tui-source.c (tui_set_source_content): Update.
3407 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3408
c9033fe8
TT
34092019-08-15 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3412 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3413 tui-source.c.
3414 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3415 Declare.
3416 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3417 method.
3418 (tui_source_window::maybe_update): Update.
3419
088f37dd
TT
34202019-08-15 Tom Tromey <tom@tromey.com>
3421
3422 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3423 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3424 tui-disasm.c.
3425 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3426 Declare.
3427 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3428 method.
3429 (tui_disasm_window::maybe_update): Update.
3430
a54700c6
TT
34312019-08-15 Tom Tromey <tom@tromey.com>
3432
3433 * tui/tui-winsource.h (struct tui_source_window_base)
3434 <maybe_update>: Declare.
3435 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3436 method.
3437 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3438 Declare.
3439 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3440 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3441 Declare.
3442 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3443
e2a678a5
TT
34442019-08-15 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3447
f2dda477
TT
34482019-08-15 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui-wingeneral.c: Include tui-stack.h.
3451 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3452 (struct tui_locator_window): Move from tui-data.h.
3453 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3454 (tui_initialize_static_data): Move from tui-data.c.
3455 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3456 (struct tui_locator_window): Move to tui-stack.c.
3457 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3458 (tui_initialize_static_data): Move to tui-stack.c.
3459
ed4a1084
TT
34602019-08-15 Tom Tromey <tom@tromey.com>
3461
3462 * tui/tui-layout.c (show_source_disasm_command)
3463 (show_source_or_disasm_and_command): Use make_visible method, not
3464 tui_make_window.
3465 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3466 Remove.
3467
65962b20
TT
34682019-08-15 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-wingeneral.h (tui_make_window): Update.
3471 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3472 parameter.
3473 (tui_gen_win_info::make_visible): Update.
3474 * tui/tui-regs.c (tui_data_window::display_registers_from):
3475 Update.
3476 * tui/tui-layout.c (show_source_disasm_command)
3477 (show_source_or_disasm_and_command): Update.
3478 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3479 (enum tui_box): Remove.
3480 (struct tui_win_info) <can_box>: New method.
3481 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3482 method.
3483
2208ee91
TV
34842019-08-15 Tom de Vries <tdevries@suse.de>
3485
3486 * linux-nat-trad.c: Include gdbarch.h.
3487
75faf5c4
AH
34882019-08-14 Alan Hayward <alan.hayward@arm.com>
3489
3490 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3491 register sizes.
3492
b1c896b3
TT
34932019-08-14 Tom Tromey <tromey@adacore.com>
3494
3495 * darwin-nat.c: Include gdbarch.h.
3496 * darwin-nat-info.c: Include gdbarch.h.
3497
6405cd73
TT
34982019-08-13 Tom Tromey <tom@tromey.com>
3499
3500 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3501 Remove.
3502 * tui/tui-data.c (tui_initialize_static_data): Update.
3503
5216580d
TT
35042019-08-13 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-winsource.h (struct tui_exec_info_window)
3507 <~tui_exec_info_window, maybe_allocate_content, get_content,
3508 m_content>: Remove.
3509 (struct tui_source_window_base) <set_exec_info_content,
3510 show_exec_info_content>: Don't declare.
3511 * tui/tui-winsource.c
3512 (tui_exec_info_window::maybe_allocate_content): Remove.
3513 (tui_source_window_base::update_exec_info): Rename from
3514 set_exec_info_content.
3515 (tui_source_window_base::show_exec_info_content)
3516 (tui_source_window_base::update_exec_info): Remove.
3517
93858ad3
TT
35182019-08-13 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3521 declare.
3522 * tui/tui-winsource.c (tui_update_source_window_as_is)
3523 (tui_update_source_windows_with_addr, tui_erase_source_content):
3524 Update.
3525 (tui_clear_exec_info_content): Remove.
3526
e321e7ce
TT
35272019-08-13 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3530 declare.
3531 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3532 call tui_erase_exec_info_content.
3533 (tui_clear_exec_info_content): Rename from
3534 tui_erase_exec_info_content.
3535 (tui_clear_exec_info_content): Delete.
3536
8270ac62
TT
35372019-08-13 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-winsource.h (struct tui_source_window_base)
3540 <show_exec_info_content>: Declare.
3541 (tui_show_exec_info_content): Don't declare.
3542 * tui/tui-winsource.c
3543 (tui_source_window_base::show_exec_info_content): Rename from
3544 tui_show_exec_info_content.
3545 (tui_source_window_base::update_exec_info): Update.
3546
7b56485d
TT
35472019-08-13 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3550 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3551 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3552 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3553 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3554 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3555 ... here.
3556
7ba913dc
TT
35572019-08-13 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-winsource.h (struct tui_source_window_base)
3560 <update_exec_info>: Declare.
3561 (tui_update_exec_info): Don't declare.
3562 * tui/tui-winsource.c (tui_update_source_window_as_is)
3563 (tui_source_window_base::refresh_all)
3564 (tui_update_all_breakpoint_info): Update.
3565 (tui_source_window_base::update_exec_info): Rename from
3566 tui_update_exec_info.
3567 * tui/tui-stack.c (tui_show_frame_info): Update.
3568
37a4a131
TT
35692019-08-13 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-winsource.h (struct tui_source_window_base)
3572 <set_exec_info_content>: Declare.
3573 (tui_set_exec_info_content): Don't declare.
3574 * tui/tui-winsource.c
3575 (tui_source_window_base::set_exec_info_content): Rename from
3576 tui_set_exec_info_content.
3577 (tui_update_exec_info): Update.
3578
0bd27e07
TT
35792019-08-13 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-winsource.h (struct tui_source_window_base)
3582 <show_source_content>: Declare.
3583 (tui_show_source_content): Don't declare.
3584 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3585 (tui_source_window_base::show_source_content): Rename from
3586 tui_show_source_content.
3587 (tui_source_window_base::refresh_all): Update.
3588 * tui/tui-layout.c (show_source_disasm_command)
3589 (show_source_or_disasm_and_command): Update.
3590
b4ef5aeb
TT
35912019-08-13 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui-winsource.c (tui_erase_source_content)
3594 (tui_show_source_content, tui_source_window_base::refresh_all):
3595 Update.
3596 * tui/tui-wingeneral.h
3597 (tui_check_and_display_highlight_if_needed): Don't declare.
3598 * tui/tui-wingeneral.c
3599 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3600 check_and_display_highlight_if_needed.
3601 * tui/tui-win.c (tui_rehighlight_all)
3602 (tui_win_info::make_visible_with_new_height): Update.
3603 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3604 (tui_data_window::erase_data_content)
3605 (tui_data_window::display_all_data): Update.
3606 * tui/tui-data.h (struct tui_win_info)
3607 <check_and_display_highlight_if_needed>: Declare.
3608
fede5273
TT
36092019-08-13 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-win.c (tui_resize_all): Call
3612 tui_delete_invisible_windows.
3613 * tui/tui-layout.c (show_layout): Call
3614 tui_delete_invisible_windows.
3615 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3616 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3617
22c3f490
TT
36182019-08-13 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3621 tui_add_win_to_layout.
3622
16cb7910
TT
36232019-08-13 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3626 * tui/tui-layout.c (tui_default_win_height): Now static.
3627
cc0c3ffb
TT
36282019-08-13 Tom Tromey <tom@tromey.com>
3629
3630 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3631 single switch.
3632 (show_source_disasm_command, show_source_or_disasm_and_command):
3633 Don't check current layout.
3634
3f3ffe54
TT
36352019-08-13 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-wingeneral.c (make_all_visible): Remove.
3638 (tui_make_all_invisible): Simplify.
3639 * tui/tui-layout.c (tui_make_all_invisible): Move from
3640 tui-wingeneral.c; simplify.
3641 (show_layout): Hoist call to tui_make_all_invisible.
3642 (show_data): Don't call tui_make_all_invisible.
3643
69258091
TT
36442019-08-13 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3647 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3648
62cf57fe
TT
36492019-08-13 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3652 tui-data.c.
3653 (show_source_disasm_command, show_data)
3654 (show_source_or_disasm_and_command): Don't use
3655 tui_set_current_layout_to.
3656 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3657 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3658 tui-layout.c.
3659 (tui_set_current_layout_to): Remove.
3660
2afade5d
TT
36612019-08-13 Tom Tromey <tom@tromey.com>
3662
3663 * tui/tui-layout.c (tui_set_layout): Update.
3664 * tui/tui-data.h (struct tui_layout_def): Remove.
3665 (tui_layout_def): Don't declare.
3666 * tui/tui-data.c (layout_def): Remove.
3667 (tui_layout_def): Remove.
3668
a3504e96
TT
36692019-08-13 Tom Tromey <tom@tromey.com>
3670
3671 * tui/tui-winsource.h (struct tui_source_window_base)
3672 <clear_detail>: No longer "override".
3673 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3674 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3675 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3676 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3677 Remove.
3678 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3679
29c92911
TT
36802019-08-13 Tom Tromey <tromey@adacore.com>
3681
3682 * tracepoint.c: Don't include readline.h or history.h.
3683
86c6b807
TT
36842019-08-12 Tom Tromey <tom@tromey.com>
3685
3686 * configure: Rebuild.
3687 * configure.ac: Check for readline 7.
3688 * NEWS: Mention readline 7 requirement.
3689 * README: Update.
3690
5db2718c
TT
36912019-08-12 Tom Tromey <tom@tromey.com>
3692
3693 * mingw-hdep.c (gdb_select): Remove readline hack.
3694
dac36daf
PFC
36952019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3696
3697 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3698 when the function fails.
3699
1022c627
AA
37002019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3701
3702 * s390-tdep.c (s390_type_align): New function.
3703 (s390_gdbarch_init): Set it as type_align gdbarch method.
3704
eba4caf2
TV
37052019-08-09 Tom de Vries <tdevries@suse.de>
3706
3707 PR gdb/24591
3708 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3709 pc_low with relocation offset.
3710
123cd851
TT
37112019-08-07 Tom Tromey <tromey@adacore.com>
3712
3713 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3714 (print_frame_args): Update.
3715 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3716 Update.
3717 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3718 * frame.h (struct frame_arg): Add initializers.
3719 <error>: Now a unique_xmalloc_ptr.
3720
3d31bc39
AH
37212019-08-07 Alan Hayward <alan.hayward@arm.com>
3722
3723 * NEWS: Expand the Pointer Authentication entry.
3724 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3725 (aarch64_frame_unmask_lr): ... to this.
3726 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3727 Call aarch64_frame_unmask_lr.
3728 * frame.c (struct frame_info): Add "masked" variable.
3729 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3730 (fprint_frame): Check for masked pc.
3731 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3732 declarations.
3733 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3734 * stack.c (print_frame): Check for masked pc.
3735
0cf9feb9
TT
37362019-08-06 Tom Tromey <tom@tromey.com>
3737
3738 * stabsread.c (patch_block_stabs, read_one_struct_field)
3739 (read_enum_type): Use obstack_strndup.
3740 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3741 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3742 * dwarf2read.c (guess_full_die_structure_name)
3743 (anonymous_struct_prefix): Use obstack_strndup.
3744 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3745 * c-exp.y (yylex): Use obstack_strndup.
3746 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3747 (write_var_or_type): Use obstack_strndup.
3748
efba19b0
TT
37492019-08-06 Tom Tromey <tom@tromey.com>
3750
3751 * symfile.c (reread_symbols): Use obstack_strdup.
3752 * stabsread.c (read_type): Use obstack_strdup.
3753 * gdb_obstack.h (obstack_strdup): New overload.
3754 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3755 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3756 (dwarf2_canonicalize_name): Use obstack_strdup.
3757 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3758 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3759 Use obstack_strdup.
3760
f25102f7
TT
37612019-08-06 Tom Tromey <tom@tromey.com>
3762
3763 * gdb_obstack.h (obstack_strdup): Define.
3764 * gdb_obstack.c (obstack_strdup): Don't define.
3765
021887d8
TT
37662019-08-06 Tom Tromey <tom@tromey.com>
3767
3768 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3769 obstack_strdup.
3770 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3771 obstack_strdup.
3772 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3773 * stabsread.c (common_block_start): Use obstack_strdup.
3774 * objfiles.c (set_objfile_main_name, objfile): Use
3775 obstack_strdup.
3776 * namespace.c (add_using_directive): Use obstack_strdup.
3777 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3778 * jit.c (finalize_symtab): Use obstack_strdup.
3779 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3780 (guess_partial_die_structure_name, partial_die_info::fixup)
3781 (dwarf2_name): Use obstack_strdup.
3782 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3783 obstack_strdup.
3784 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3785 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3786 obstack_strdup.
3787 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3788
d2834edc
PW
37892019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3790
3791 * unittests/help-doc-selftests.c: New file.
3792 * Makefile.in: Add the new file.
3793
590042fc
PW
37942019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3795
3796 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3797 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3798 the full first line, except when FOR_VALUE_PREFIX. In this case,
3799 the trailing '.' is not output, and the first character is uppercased.
3800 (print_help_for_command): Update call to print_doc_line.
3801 (print_doc_of_command): Likewise.
3802 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3803 * cli/cli-option.c (append_indented_doc): Do not append newline.
3804 (build_help_option): Append newline after first appended_indented_doc
3805 only if a second call is done.
3806 (build_help): Append 2 new lines before each option, except the first
3807 one.
3808 * compile/compile.c (_initialize_compile): Add new lines after
3809 %OPTIONS%, when not at the end of the help.
3810 Change help doc or code
3811 producing the help doc to respect the invariants.
3812 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3813 Also removed the new line after 'Options:', as all other commands
3814 do not put an empty line between 'Options:' and the first option.
3815 * printcmd.c (_initialize_printcmd): Likewise.
3816 * stack.c (_initialize_stack): Likewise.
3817 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3818 incorrectly telling COMMAND is optional.
3819 * ada-lang.c (_initialize_ada_language): Change help doc or code
3820 producing the help doc to respect the invariants.
3821 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3822 * breakpoint.c (_initialize_breakpoint): Likewise.
3823 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3824 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3825 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3826 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3827 _initialize_cli_style): Likewise.
3828 * corelow.c (core_target_info): Likewise.
3829 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3830 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3831 * filesystem.c (_initialize_filesystem): Likewise.
3832 * frame.c (_initialize_frame): Likewise.
3833 * gnu-nat.c (add_task_commands): Likewise.
3834 * infcall.c (_initialize_infcall): Likewise.
3835 * infcmd.c (_initialize_infcmd): Likewise.
3836 * interps.c (_initialize_interpreter): Likewise.
3837 * language.c (_initialize_language): Likewise.
3838 * linux-fork.c (_initialize_linux_fork): Likewise.
3839 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3840 * maint.c (_initialize_maint_cmds): Likewise.
3841 * memattr.c (_initialize_mem): Likewise.
3842 * printcmd.c (_initialize_printcmd): Likewise.
3843 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3844 _RegEx): Likewise.
3845 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3846 * record-btrace.c (_initialize_record_btrace): Likewise.
3847 * record-full.c (_initialize_record_full): Likewise.
3848 * record.c (_initialize_record): Likewise.
3849 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3850 * regcache.c (_initialize_regcache): Likewise.
3851 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3852 _initialize_remote): Likewise.
3853 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3854 * serial.c (_initialize_serial): Likewise.
3855 * skip.c (_initialize_step_skip): Likewise.
3856 * source.c (_initialize_source): Likewise.
3857 * stack.c (_initialize_stack): Likewise.
3858 * symfile.c (_initialize_symfile): Likewise.
3859 * symtab.c (_initialize_symtab): Likewise.
3860 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3861 * top.c (init_main): Likewise.
3862 * tracefile-tfile.c (tfile_target_info): Likewise.
3863 * tracepoint.c (_initialize_tracepoint): Likewise.
3864 * tui/tui-win.c (_initialize_tui_win): Likewise.
3865 * utils.c (add_internal_problem_command): Likewise.
3866 * valprint.c (value_print_option_defs): Likewise.
3867
404f2902
FCE
38682019-08-06 Frank Ch. Eigler <fche@redhat.com>
3869
3870 PR build/24886
3871 * configure.ac: Drop enable-libmcheck support.
3872 * configure, config.in: Rebuild.
3873 * libmcheck.m4: Remove.
3874 * acinclude.m4: Don't include it.
3875 * Makefile.in: Don't distribute it.
3876 * top.c (print_gdb_configuration): Don't mention it.
3877
046bebe1
TT
38782019-08-06 Tom Tromey <tom@tromey.com>
3879
3880 * utils.c (set_output_style): Sometimes pass stream to
3881 emit_style_escape.
3882 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3883 * record-btrace.c (btrace_insn_history): Update.
3884 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3885 method.
3886 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3887 Update initializers.
3888 <m_uiout>: New field.
3889 <m_di>: Move lower.
3890 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3891 Remove "uiout" parameter.
3892 (dump_insns): Update.
3893 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3894 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3895
ddbcedf5
CB
38962019-08-06 Christian Biesinger <cbiesinger@google.com>
3897
3898 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3899 (error_in_psymtab_expansion): Likewise.
3900 (lookup_symbol_via_quick_fns): Likewise.
3901 (basic_lookup_transparent_type_quick): Likewise.
3902 (basic_lookup_transparent_type_1): Likewise.
3903
b08b16c8
TT
39042019-08-06 Tom Tromey <tromey@adacore.com>
3905
3906 * source.c (last_source_error): Now bool.
3907 (print_source_lines_base): Make "noprint" bool. Only open
3908 source file when last_source_visited changes.
3909
cb44333d
TT
39102019-08-06 Tom Tromey <tromey@adacore.com>
3911
3912 * annotate.c (annotate_source_line): Use g_source_cache.
3913 * source-cache.c (source_cache::get_plain_source_lines): Change
3914 parameters. Populate m_offset_cache.
3915 (source_cache::ensure): New method.
3916 (source_cache::get_line_charpos): New method.
3917 (extract_lines): Move lower. Change parameters.
3918 (source_cache::get_source_lines): Move lower.
3919 * source-cache.h (class source_cache): Update comment.
3920 <get_line_charpos>: New method.
3921 <get_source_lines>: Update comment.
3922 <clear>: Clear m_offset_cache.
3923 <get_plain_source_lines>: Change parameters.
3924 <ensure>: New method
3925 <m_offset_cache>: New member.
3926 * source.c (forget_cached_source_info_for_objfile): Update.
3927 (info_source_command): Use g_source_cache.
3928 (find_source_lines, open_source_file_with_line_charpos): Remove.
3929 (print_source_lines_base, search_command_helper): Use g_source_cache.
3930 * source.h (open_source_file_with_line_charpos): Don't declare.
3931 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3932 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3933 Use g_source_cache.
3934
872dceaa
TT
39352019-08-06 Tom Tromey <tromey@adacore.com>
3936
3937 * source-cache.c (source_cache::get_plain_source_lines):
3938 Remove "first_line" and "last_line" parameters.
3939 (source_cache::get_source_lines): Cache plain text.
3940 * source-cache.h (class source_cache)
3941 <get_plain_source_lines>: Update.
3942
269249d9
TT
39432019-08-06 Tom Tromey <tromey@adacore.com>
3944
3945 * source-cache.c (extract_lines): No longer a method.
3946 Changed type of parameter. Include final newline.
3947 (selftests::extract_lines_test): New function.
3948 (_initialize_source_cache): Likewise.
3949 * source-cache.h (class source_cache)
3950 <extract_lines>: Don't declare.
3951
c0e8dcd8
TT
39522019-08-06 Tom Tromey <tromey@adacore.com>
3953
3954 * breakpoint.c (init_breakpoint_sal): Update.
3955 (breakpoint): Update.
3956 * breakpoint.h (struct breakpoint) <filter>: Now a
3957 unique_xmalloc_ptr.
3958
0b27c27d
CB
39592019-08-05 Christian Biesinger <cbiesinger@google.com>
3960
3961 * NEWS: Mention dictionary access on blocks.
3962 * python/py-block.c (blpy_getitem): New function.
3963 (block_object_as_mapping): New struct.
3964 (block_object_type): Use new struct for tp_as_mapping field.
3965
4ee94178
CB
39662019-08-05 Christian Biesinger <cbiesinger@google.com>
3967
3968 * objfiles.h (objfile): Add a comment describing partial symbols.
3969
8abfcabc
TT
39702019-08-05 Tom Tromey <tromey@adacore.com>
3971
3972 * compile/compile.c (_initialize_compile): Use _(), not N_().
3973 * thread.c (_initialize_thread): Use _(), not N_().
3974 * stack.c (_initialize_stack): Use _(), not N_().
3975 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3976
2b79f376
SM
39772019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * dwarf2read.c (struct dw2_symtab_iterator):
3980 <want_specific_block>: Remove.
3981 <block_index>: Change type to gdb::optional.
3982 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3983 change type of BLOCK_INDEX parameter to gdb::optional.
3984 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3985 (dw2_lookup_symbol): Don't pass argument for
3986 WANT_SPECIFIC_BLOCK.
3987 (dw2_expand_symtabs_for_function): Don't pass argument for
3988 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3989 (class dw2_debug_names_iterator)
3990 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3991 parameter, change BLOCK_INDEX type to gdb::optional.
3992 <m_want_specific_block>: Remove.
3993 <m_block_index>: Change type to gdb::optional.
3994 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3995 gdb::optional. Re-write in function of gdb::optional.
3996 (dw2_debug_names_lookup_symbol): Don't pass argument for
3997 WANT_SPECIFIC_BLOCK.
3998 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3999 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4000 BLOCK_INDEX.
4001
ae60f04e
PW
40022019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4003
4004 * NEWS: Mention changes to "info sources" command.
4005
28cd9371
PW
40062019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4007
4008 * symtab.c (filename_partial_match_opts): New struct type.
4009 (struct output_source_filename_data): New members
4010 regexp, c_regexp, partial_match.
4011 (output_source_filename): Use new members to decide to print file.
4012 (info_sources_option_defs): New variable.
4013 (make_info_sources_options_def_group, print_info_sources_header,
4014 info_sources_command_completer):
4015 New functions.
4016 (info_sources_command): Read new optional arguments.
4017 (_initialize_symtab): Update info sources help.
4018
ca683e3a
AO
40192019-08-02 Alexandre Oliva <oliva@adacore.com>
4020
4021 * ada-lang.c (exception_support_info_v0): Renamed from...
4022 (default_exception_support_info): ... this. Create new
4023 definition for v1.
4024 (ada_has_this_exception_support): Look up catch_handlers_sym.
4025 (ada_exception_support_info_sniffer): Try v0 after default.
4026
f1264162
TT
40272019-08-01 Tom Tromey <tromey@adacore.com>
4028
4029 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4030 gdbarch.h.
4031
0a7b2485
CB
40322019-08-01 Christian Biesinger <cbiesinger@google.com>
4033
4034 * s12z-tdep.c: Fix include path for s12z-opc.h.
4035
c6bdbeb7
AH
40362019-08-01 Alan Hayward <alan.hayward@arm.com>
4037
4038 * NEWS: Require GNU make 3.82.
4039
a2bd7b82
TT
40402019-07-16 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4043 declare.
4044
aa3b6533
TT
40452019-07-30 Tom Tromey <tromey@adacore.com>
4046
4047 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4048
a1530dc7
KB
40492019-07-30 Kevin Buettner <kevinb@redhat.com>
4050
4051 * printcmd.c (print_address_symbolic): Print negative offsets.
4052 (build_address_symbolic): Force signed arithmetic when computing
4053 offset.
4054
2906593f
CB
40552019-07-30 Christian Biesinger <cbiesinger@google.com>
4056
4057 PR/24474: Add a function to lookup static variables.
4058 * NEWS: Mention this new function.
4059 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4060 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4061 * python/python.c (python_GdbMethods): Add new function.
4062
c620ed88
CB
40632019-07-29 Christian Biesinger <cbiesinger@google.com>
4064
4065 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4066 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4067 (objfpy_lookup_static_symbol): New function.
4068 (objfile_object_methods): Add new functions.
4069
bc4268a5
PW
40702019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4071
4072 * NEWS: Mention 'set|show print frame-info'. Mention new
4073 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4074 backtrace argument. Mention that python frame filtering code
4075 is now consistent with what 'backtrace' command prints.
4076
4b5e8d19
PW
40772019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4078
4079 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4080 comments.
4081 (print_frame_info_auto, print_frame_info_source_line,
4082 print_frame_info_location, print_frame_info_source_and_location,
4083 print_frame_info_location_and_address, print_frame_info_short_location):
4084 New declarations.
4085 (struct frame_print_options): New member print_frame_info.
4086 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4087 * stack.h (get_user_print_what_frame_info): New declaration.
4088 (frame_show_address): New declaration.
4089 * stack.c (print_frame_arguments_choices): New value 'presence'.
4090 (print_frame_info_auto, print_frame_info_source_line,
4091 print_frame_info_location, print_frame_info_source_and_location,
4092 print_frame_info_location_and_address, print_frame_info_short_location,
4093 print_frame_info_choices, print_frame_info_print_what): New definitions.
4094 (print_frame_args): Only print dots for args if print frame-arguments
4095 is 'presence'.
4096 (frame_print_option_defs): New element for "frame-info".
4097 (get_user_print_what_frame_info): New function.
4098 (frame_show_address): Make non static. Move comment to stack.h.
4099 (print_frame_info_to_print_what): New function.
4100 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4101 to decide what to print.
4102 (backtrace_command_1): Handle the new print_frame_arguments_presence
4103 value.
4104 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4105 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4106 (py_print_frame): In non-mi mode, use LOCATION as default for
4107 print_what, similarly to frame information printed directly by
4108 backtrace command. Handle frame-info user option in non MI mode.
4109
6bdfee81
KB
41102019-07-27 Kevin Buettner <kevinb@redhat.com>
4111
4112 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4113 Add case for debugging 32-bit target on 64-bit host. Revise
4114 comment.
4115
98a617f8
KB
41162019-07-27 Kevin Buettner <kevinb@redhat.com>
4117
4118 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4119 instead of find_function_entry_range_from_pc.
4120
567238c9
KB
41212019-07-27 Kevin Buettner <kevinb@redhat.com>
4122
4123 * stack.c (find_frame_funname): Remove code which preferred
4124 minsym over symtab sym in "certain pathological cases".
4125
2dc80cf8
KB
4126 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4127 parameter. Change type of "do_demangle" to bool.
4128 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4129 Pass suitable "prefer_sym_over_minsym" flag to
4130 build_address_symbolic(). Don't output "+" for negative offsets.
4131 * printcmd.c (print_address_symbolic): Update invocation of
4132 build_address_symbolic to include a "prefer_sym_over_minsym"
4133 flag.
4134 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4135 Restrict cases in which use of minimal symbol is preferred to that
4136 of a found symbol. Update comments.
4137
1aff7173
KB
4138 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4139 for entry pc when entry pc is out of range for that FDE.
4140
89b085ac
BC
41412019-07-26 Brian Callahan <bcallah@openbsd.org>
4142
4143 PR gdb/24839:
4144 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4145 type.
4146
f32feb4a
CB
41472019-07-25 Christian Biesinger <cbiesinger@google.com>
4148
4149 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4150 this function's Python signature.
4151
4152
41532019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4154
4155 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4156 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4157 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4158 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4159 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4160
4161
c54e4253
YS
41622019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4163
4164 * h8300-tdep.c (h8300_register_name_common): New.
4165 h8300_register_name): Use h8300_register_name_common.
4166 (h8300s_register_name): Likewise.
4167 (h8300sx_register_name): Likewise.
4168 (h8300h_register_nam): New.
4169 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4170
4171
40eadf04
SP
41722019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4173
4174 * arm-tdep.c (arm_skip_cmse_entry): New function.
4175 (arm_is_sgstubs_section): New function.
4176 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4177
bfa2a36d
TT
41782019-07-22 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4181 Don't self-assign.
4182
a8e9d247
AB
41832019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4186 type_print.
4187
eb86c5e2
AB
41882019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4191 so that GDB doesn't match any msymbols when searching in the
4192 TYPES_DOMAIN.
4193 (print_symbol_info): Print using typedef_print or type_print based
4194 on the type of the symbol. Add updated FIXME comment moved from...
4195 (_initialize_symtab): ... move and update FIXME comment to above.
4196
a8eab7c6
AB
41972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 * NEWS: Mention adding -q option to "info types".
4200 * symtab.c (struct info_types_options): New struct.
4201 (info_types_options_defs): New variable.
4202 (make_info_types_options_def_group): New function.
4203 (info_types_command): Use gdb::option framework to parse options.
4204 (info_types_command_completer): New function.
4205 (_initialize_symtab): Extend the help text on "info types" and
4206 register command completer.
4207
b4603c34
CB
42082019-07-21 Christian Biesinger <cbiesinger@google.com>
4209
4210 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4211 (lookup_symbol_in_objfile): Change int to block_enum and add a
4212 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4213
c8cdc1e0
CB
42142019-07-20 Christian Biesinger <cbiesinger@google.com>
4215
4216 * MAINTAINERS (Write After Approval): Add self.
4217
01e175fe
AB
42182019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4219
4220 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4221 instruction to the dummy code region.
4222
56f79b63
TT
42232019-07-19 Tom Tromey <tromey@adacore.com>
4224
4225 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4226 (ARGSUSED, PARAMS, __func__): Remove rules.
4227
4c5aa8e0
AH
42282019-07-19 Alan Hayward <alan.hayward@arm.com>
4229
4230 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4231 * features/arm/arm-with-iwmmxt.c: Remove.
4232 * features/arm/arm-with-iwmmxt.xml: Remove.
4233 * features/arm/arm-with-m-fpa-layout.c: Remove.
4234 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4235 * features/arm/arm-with-m-vfp-d16.c: Remove.
4236 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4237 * features/arm/arm-with-m.c: Remove.
4238 * features/arm/arm-with-m.xml: Remove.
4239 * features/arm/arm-with-neon.c: Remove.
4240 * features/arm/arm-with-neon.xml: Remove.
4241 * features/arm/arm-with-vfpv2.c: Remove.
4242 * features/arm/arm-with-vfpv2.xml: Remove.
4243 * features/arm/arm-with-vfpv3.c: Remove.
4244 * features/arm/arm-with-vfpv3.xml: Remove.
4245
f42b2617
AH
42462019-07-19 Alan Hayward <alan.hayward@arm.com>
4247
4248 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4249
f29ec966
AH
42502019-07-19 Alan Hayward <alan.hayward@arm.com>
4251
4252 * arch/aarch32.c (aarch32_create_target_description): Create
4253 target descriptions using features.
4254 * arch/arm.c (arm_create_target_description)
4255 (arm_create_mprofile_target_description): Likewise.
4256 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4257
d105cce5
AH
42582019-07-19 Alan Hayward <alan.hayward@arm.com>
4259
4260 * Makefile.in: Add new files.
4261 * aarch32-tdep.c: New file.
4262 * aarch32-tdep.h: New file.
4263 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4264 Call aarch32_read_description.
4265 * arch/aarch32.c: New file.
4266 * arch/aarch32.h: New file.
4267 * arch/arm.c (arm_create_target_description)
4268 (arm_create_mprofile_target_description): New function.
4269 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4270 (arm_create_target_description)
4271 (arm_create_mprofile_target_description): New declaration.
4272 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4273 read_description functions.
4274 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4275 Likewise.
4276 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4277 * arm-tdep.c (tdesc_arm_list): New variable.
4278 (arm_register_g_packet_guesses): Call create description functions.
4279 (arm_read_description) (arm_read_mprofile_description): New
4280 function.
4281 * arm-tdep.h (arm_read_description)
4282 (arm_read_mprofile_description): Add declaration.
4283 * configure.tgt: Add new files.
4284
afe09f0b
GL
42852019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4286
4287 * top.c (new_ui_command): Open specified terminal just once.
4288
cd215b2e
TT
42892019-07-18 Tom Tromey <tromey@adacore.com>
4290
4291 * symtab.c (main_name): Constify return type.
4292 * symfile.c (set_initial_language): Update.
4293 * symtab.h (main_name): Constify return type.
4294
d8f68fcb
TT
42952019-07-17 Tom Tromey <tom@tromey.com>
4296
4297 * tui/tui-winsource.c (tui_update_source_window)
4298 (tui_update_source_window_as_is)
4299 (tui_update_source_windows_with_line): Remove return.
4300 * tui/tui-disasm.c (tui_show_disassem)
4301 (tui_show_disassem_and_update_source): Remove return.
4302 * tui/tui.c (tui_reset): Remove return.
4303 * tui/tui-wingeneral.c
4304 (tui_check_and_display_highlight_if_needed): Remove return.
4305
ca5af91e
TT
43062019-07-17 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4309
5104fe36
TT
43102019-07-17 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-winsource.h (struct tui_exec_info_window)
4313 (struct tui_source_window_base): Move from tui-data.h.
4314 * tui/tui-winsource.c: Move many method definitions from
4315 elsewhere. Remove "structuring" comments.
4316 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4317 (tui_source_window_base::refresh_window): Move to
4318 tui-winsource.c.
4319 * tui/tui-win.c (tui_source_window_base::refresh_all)
4320 (tui_source_window_base::update_tab_width)
4321 (tui_source_window_base::set_new_height)
4322 (tui_source_window_base::do_make_visible_with_new_height): Move to
4323 tui-winsource.c.
4324 * tui/tui-source.h: Update.
4325 * tui/tui-source.c (tui_source_window_base::reset): Move to
4326 tui-winsource.c.
4327 * tui/tui-disasm.h: Update.
4328 * tui/tui-data.h (struct tui_exec_info_window): Move to
4329 tui-winsource.h.
4330 (struct tui_source_window_base): Likewise.
4331 * tui/tui-data.c (tui_source_window_base::clear_detail)
4332 (tui_source_window_base, ~tui_source_window_base): Move to
4333 tui-winsource.c.
4334
daa15dde
TT
43352019-07-17 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-win.c (tui_resize_all)
4338 (tui_source_window_base::update_tab_width)
4339 (tui_adjust_win_heights): Update.
4340 (tui_win_info::make_invisible_and_set_new_height): Rename from
4341 make_invisible_and_set_new_height.
4342 * tui/tui-data.h (struct tui_win_info)
4343 <make_invisible_and_set_new_height>: New method.
4344
bfad4537
TT
43452019-07-17 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui.c: Update.
4348 * tui/tui-source.h (struct tui_source_window): Move from
4349 tui-data.h.
4350 * tui/tui-layout.c: Update.
4351 * tui/tui-disasm.c: Update.
4352 * tui/tui-data.h (struct tui_source_window): Move to
4353 tui-source.h.
4354
88f7e873
TT
43552019-07-17 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4358 tui-data.h.
4359 * tui/tui-data.h (struct tui_disasm_window): Move to
4360 tui-disasm.h.
4361
96bd6233
TT
43622019-07-17 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-regs.h (struct tui_data_item_window): Move from
4365 tui-data.h.
4366 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4367 * tui/tui-data.h (struct tui_data_item_window): Move to
4368 tui-regs.h.
4369 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4370
ce38393b
TT
43712019-07-17 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui.c: Update.
4374 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4375 (tui_cmd_window::max_height): Move to tui-command.c.
4376 * tui/tui-layout.c: Update.
4377 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4378 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4379 tui-command.c.
4380 * tui/tui-command.h (struct tui_cmd_window): Move from
4381 tui-data.h.
4382 * tui/tui-command.c: Remove "structuring" comments.
4383 (tui_cmd_window::clear_detail)
4384 (tui_cmd_window::do_make_visible_with_new_height)
4385 (tui_cmd_window::max_height): Move from elsewhere.
4386
2d8b51cb
TT
43872019-07-17 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4390 Now static.
4391 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4392 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4393
18ab23af
TT
43942019-07-17 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui.c: Update.
4397 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4398 tui-regs.c.
4399 * tui/tui-windata.h: Remove file.
4400 * tui/tui-windata.c: Remove file.
4401 * tui/tui-win.c (tui_data_window::set_new_height)
4402 (tui_data_window::do_make_visible_with_new_height): Move to
4403 tui-regs.c.
4404 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4405 * tui/tui-regs.c: Remove "structuring" comments.
4406 (tui_data_window::first_data_item_displayed)
4407 (tui_data_window::delete_data_content_windows)
4408 (tui_data_window::erase_data_content)
4409 (tui_data_window::display_all_data)
4410 (tui_data_window::refresh_all)
4411 (tui_data_window::do_scroll_vertical)
4412 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4413 (tui_data_window::do_make_visible_with_new_height)
4414 (tui_data_window::refresh_window): Move from elsewhere.
4415 (_initialize_tui_regs): Move to end of file.
4416 * tui/tui-layout.c: Update.
4417 * tui/tui-hooks.c: Update.
4418 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4419 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4420 tui-regs.c.
4421 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4422
88b7e7cc
TT
44232019-07-17 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4426 seen.
4427
0fcd3711
TT
44282019-07-17 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-win.c (tui_source_window_base::set_new_height)
4431 (tui_source_window_base::do_make_visible_with_new_height): Use
4432 m_has_locator field directly.
4433 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4434 method.
4435 (struct tui_source_window_base) <has_locator>: Likewise.
4436
4a38112d
TT
44372019-07-17 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4440 Don't declare.
4441 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4442 Remove.
4443 * tui/tui-win.c (tui_source_window_base::set_new_height)
4444 (tui_source_window_base::set_new_height)
4445 (make_invisible_and_set_new_height)
4446 (tui_source_window_base::do_make_visible_with_new_height)
4447 (tui_source_window_base::do_make_visible_with_new_height):
4448 Update.
4449 * tui/tui-layout.c (show_source_disasm_command, show_data)
4450 (show_source_or_disasm_and_command): Update.
4451 * tui/tui-layout.c (show_layout): Update.
4452
09129226
TT
44532019-07-17 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-layout.c (make_data_window): Remove.
4456 (show_data): Unify creation and re-initialization cases.
4457
4a8a5e84
TT
44582019-07-17 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-layout.c (make_source_window, make_disasm_window):
4461 Remove.
4462 (show_data): Unify creation and re-initialization cases.
4463
76d2be8e
TT
44642019-07-17 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-layout.c (make_command_window): Remove.
4467 (show_source_disasm_command, show_source_or_disasm_and_command):
4468 Unify creation and re-initialization cases.
4469
890b8bde
TT
44702019-07-17 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4473 creation and re-initialization cases.
4474
2cdfa113
TT
44752019-07-17 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-regs.c (tui_get_register): Return void.
4478
8e3cfd09
TT
44792019-07-17 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4482 Simplify.
4483
f4e04977
TT
44842019-07-17 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4487 resetting.
4488
0379b883
TT
44892019-07-17 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4492 * tui/tui-regs.c (tui_reg_layout): New function.
4493 (tui_show_registers, tui_reg_command): Use it.
4494 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4495 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4496 parameters.
4497 (tui_layout_command): Remove.
4498
b7fbad91
TT
44992019-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-layout.h (tui/tui-layout): Return void.
4502 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4503
4e1e56b9
TT
45042019-07-17 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui-layout.c (show_source_disasm_command, show_data):
4507 Update.
4508 (reset_locator): Remove.
4509 (show_source_or_disasm_and_command): Update.
4510
1e0c09ba
TT
45112019-07-17 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-source.c (tui_source_window_base::reset): Remove
4514 win_type parameter.
4515 * tui/tui-layout.c (make_command_window, make_source_window)
4516 (make_disasm_window, make_data_window)
4517 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4518 (reset_locator, show_source_or_disasm_and_command): Update.
4519 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4520 win_type parameter.
4521 (struct tui_source_window_base) <reset>: Likewise.
4522
1bf605de
TT
45232019-07-17 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-layout.c (show_source_disasm_command): Use
4526 reset_locator.
4527 (reset_locator): New function.
4528 (init_and_make_win): Remove.
4529 (show_source_or_disasm_and_command): Use reset_locator.
4530
098f9ed4
TT
45312019-07-17 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4534 condition.
4535 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4536 Remove condition.
4537 * tui/tui-source.c (tui_source_window_base::reset): New method.
4538 * tui/tui-layout.c (make_command_window): Don't call
4539 init_and_make_win.
4540 (make_source_window, make_disasm_window): Don't call
4541 make_source_or_disasm_window.
4542 (make_data_window): Don't call init_and_make_win. Change calling
4543 convention.
4544 (show_source_disasm_command, show_data): Simplify.
4545 (make_source_or_disasm_window): Remove.
4546 (show_source_or_disasm_and_command): Simplify.
4547 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4548 (struct tui_source_window_base) <reset>: Likewise.
4549 <execution_info>: Remove initializer.
4550 * tui/tui-data.c (tui_source_window_base): Initialize
4551 execution_info.
4552
80110957
TT
45532019-07-17 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4556 variable.
4557
cf82af05
TT
45582019-07-17 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui.c (tui_rl_other_window): Update.
4561 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4562 superclass method first. Always iterate over regs_content.
4563 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4564 method.
4565 * tui/tui-win.c (tui_set_focus_command): Update.
4566
01aeb396
TT
45672019-07-17 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-win.c (tui_set_focus_command): Rename from
4570 tui_set_focus. Call tui_enable.
4571 (tui_set_focus_command): Remove.
4572
fd6c75ee
TT
45732019-07-17 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4576 refresh_window.
4577 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4578 touchwin.
4579 (tui_data_window::refresh_window): Call refresh_window on data
4580 items. Always call superclass refresh_window.
4581 (tui_win_info::refresh): Remove.
4582 (tui_source_window_base::refresh_window): Update.
4583 (tui_refresh_all): Update.
4584 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4585 refresh_window.
4586 (show_source_or_disasm_and_command): Likewise.
4587 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4588 (struct tui_source_window_base) <refresh>: Likewise.
4589
f6cc34a9
TT
45902019-07-17 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-winsource.c (tui_clear_source_content)
4593 (tui_show_source_content): Update.
4594 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4595 whether content is empty.
4596 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4597 Remove.
4598
f31ec9af
TT
45992019-07-17 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4602 window's contents.
4603 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4604 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4605
d1b6f1e5
TT
46062019-07-17 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4609 (struct tui_data_item_window): Update.
4610
d9743a13
TT
46112019-07-17 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4614 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4615 defines.
4616
caf0bc4e
TT
46172019-07-17 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-winsource.h (tui_erase_source_content)
4620 (tui_clear_source_content): Remove "display_prompt" parameter.
4621 * tui/tui-winsource.c (tui_update_source_window_as_is)
4622 (tui_update_source_windows_with_addr): Update.
4623 (tui_clear_source_content): Remove "display_prompt" parameter.
4624 (tui_erase_source_content): Likewise. Simplify.
4625 (tui_show_source_content): Update.
4626 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4627 * tui/tui-stack.c (tui_show_frame_info): Update.
4628 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4629 Remove defines.
4630
9d391078
TT
46312019-07-17 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4634 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4635 parameter.
4636 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4637 parameter.
4638
a38da35d
TT
46392019-07-17 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-winsource.c (tui_clear_source_content)
4642 (tui_show_source_content, tui_show_exec_info_content)
4643 (tui_clear_exec_info_content): Update.
4644 * tui/tui-stack.c (tui_show_locator_content): Update.
4645 (tui_show_frame_info): Update.
4646 * tui/tui-source.h (tui_source_window): Don't declare.
4647 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4648 from tui_source_is_displayed.
4649 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4650 Remove field.
4651 (struct tui_source_window_base) <content_in_use>: New field. Now
4652 bool.
4653 (struct tui_source_window) <showing_source_p>: New method.
4654 (TUI_SRC_WIN): Change cast.
4655 * tui/tui-data.c (tui_initialize_static_data): Update.
4656
c2cd8994
TT
46572019-07-17 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4660 location_matches_p.
4661 * tui/tui-source.c (tui_source_window::location_matches_p): New
4662 method.
4663 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4664 method.
4665 * tui/tui-data.h (struct tui_source_window_base)
4666 <location_matches_p>: New method.
4667 (struct tui_source_window, struct tui_disasm_window)
4668 <location_matches_p>: Likewise.
4669
4dde7b34
TT
46702019-07-17 Tom Tromey <tom@tromey.com>
4671
4672 * tui/tui-win.c (tui_set_win_height_command): Rename from
4673 tui_set_win_height.
4674 (tui_set_win_height_command): Remove.
4675
b73dd877
TT
46762019-07-17 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-source.c (tui_source_window): New constructor. Add
4679 observer.
4680 (~tui_source_window): New destructor.
4681 (tui_source_window::style_changed): New method.
4682 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4683 (tui_attach_detach_observers): Update.
4684 * tui/tui-data.h (struct tui_source_window): Make constructor not
4685 inline. Add destructor.
4686 (struct tui_source_window) <style_changed>: New method.
4687 <m_observable>: New member.
4688
ae2b5380
TT
46892019-07-17 Tom Tromey <tom@tromey.com>
4690
4691 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4692 * tui/tui-win.c (tui_resize_all): Fix typo.
4693
1ce3e844
TT
46942019-07-17 Tom Tromey <tom@tromey.com>
4695
4696 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4697 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4698 (tui_refresh_all): Remove "list" parameter. Use foreach.
4699 * tui/tui-win.c (window_name_completer): Use foreach.
4700 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4701 (update_tab_width): Likewise.
4702 * tui/tui-layout.c (show_layout): Update.
4703 * tui/tui-data.h (class tui_window_iterator): New.
4704 (struct all_tui_windows): New.
4705 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4706
fe3eaf1c
TT
47072019-07-17 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4710 parameter. Don't reference globals.
4711 (tui_reg_command): Update.
4712
368c1354
TT
47132019-07-17 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-regs.c (tui_show_registers): Simplify.
4716
e80cd204
TT
47172019-07-17 Tom Tromey <tom@tromey.com>
4718
4719 * tui/tui-regs.c (tui_show_registers): Update.
4720 (tui_show_register_group): Add win_info parameter.
4721
aca2dd16
TT
47222019-07-17 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4725 Rename from tui_display_reg_element_at_line.
4726 (tui_data_window::display_registers_from_line): Update.
4727 * tui/tui-data.h (struct tui_data_window)
4728 <display_reg_element_at_line>: New method.
4729
517e9505
TT
47302019-07-17 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-regs.h (tui_display_registers_from)
4733 (tui_display_registers_from_line): Don't declare.
4734 * tui/tui-windata.c (tui_data_window::display_all_data)
4735 (tui_data_window::refresh_all)
4736 (tui_data_window::do_scroll_vertical): Update.
4737 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4738 from tui_display_registers_from.
4739 (tui_display_reg_element_at_line): Update.
4740 (tui_data_window::display_registers_from_line): Rename from
4741 tui_display_registers_from_line.
4742 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4743 display_registers_from_line>: New methods.
4744
f76d8b19
TT
47452019-07-17 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4748 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4749 from tui_erase_data_content.
4750 (tui_data_window::display_all_data)
4751 (tui_data_window::refresh_all)
4752 (tui_data_window::do_scroll_vertical): Update.
4753 * tui/tui-regs.c (tui_show_registers): Update.
4754 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4755 New method.
4756
b4094625
TT
47572019-07-17 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4760 declare.
4761 * tui/tui-windata.c
4762 (tui_data_window::delete_data_content_windows): Rename from
4763 tui_delete_data_content_windows.
4764 (tui_data_window::display_all_data)
4765 (tui_data_window::do_scroll_vertical): Update.
4766 * tui/tui-data.h (struct tui_data_window)
4767 <delete_data_content_windows>: New method.
4768
c223a729
TT
47692019-07-17 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4772 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4773
50daf268
TT
47742019-07-17 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4777 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4778 from tui_display_all_data.
4779 * tui/tui-win.c
4780 (tui_data_window::do_make_visible_with_new_height): Update.
4781 * tui/tui-regs.c (tui_show_registers): Update.
4782 * tui/tui-layout.c (tui_set_layout): Update.
4783 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4784 method.
4785
df5f8cab
TT
47862019-07-17 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4789 * tui/tui-windata.c (tui_display_data_from): Remove.
4790 (tui_data_window::refresh_all): Update.
4791
80cb6c27
TT
47922019-07-17 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4795 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4796 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4797 tui_display_registers_from_line.
4798 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4799 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4800 "force_display" parameter.
4801
baff0c28
TT
48022019-07-17 Tom Tromey <tom@tromey.com>
4803
4804 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4805 declare.
4806 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4807 Rename from tui_first_reg_element_no_inline.
4808 (tui_display_reg_element_at_line)
4809 (tui_display_registers_from_line): Update.
4810 * tui/tui-data.h (struct tui_data_window)
4811 <first_reg_element_no_inline>: New method.
4812
3b23c5f2
TT
48132019-07-17 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-windata.c (tui_display_data_from)
4816 (tui_data_window::do_scroll_vertical): Update.
4817 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4818 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4819 Rename from tui_line_from_reg_element_no.
4820 (tui_display_registers_from_line): Update.
4821 * tui/tui-data.h (struct tui_data_window)
4822 <line_from_reg_element_no>: New method.
4823
0b5ec218
TT
48242019-07-17 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4827 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4828 tui_last_regs_line_no.
4829 (tui_display_reg_element_at_line)
4830 (tui_display_registers_from_line): Update.
4831 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4832 method.
4833
0807ab7b
TT
48342019-07-17 Tom Tromey <tom@tromey.com>
4835
4836 PR tui/24722:
4837 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4838 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4839 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4840 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4841 (tui_update_breakpoint_info): Likewise.
4842 * tui/tui-hooks.c (tui_event_create_breakpoint)
4843 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4844 Update.
4845
9ad7fdef
TT
48462019-07-17 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4849
5813316f
TT
48502019-07-17 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-winsource.c (tui_update_source_window_as_is)
4853 (tui_update_source_windows_with_addr): Update.
4854 * tui/tui-source.h (tui_set_source_content)
4855 (tui_show_symtab_source): Add "win_info" parameter.
4856 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4857 parameter.
4858 (tui_show_symtab_source): Likewise.
4859
00e264e7
TT
48602019-07-17 Tom Tromey <tom@tromey.com>
4861
4862 * tui/tui-wingeneral.c
4863 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4864
06210ce4
TT
48652019-07-17 Tom Tromey <tom@tromey.com>
4866
4867 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4868 (struct tui_cmd_window) <can_scroll>: New method.
4869 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4870 method.
4871
381befee
TT
48722019-07-17 Tom Tromey <tromey@adacore.com>
4873
4874 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4875 do_field_signed>: Rename. Change type of "value".
4876 * ui-out.c (ui_out::field_signed): Rename from field_int.
4877 Change type of "value".
4878 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4879 type of "value".
4880 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4881 do_field_int. Change type of "value".
4882 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4883 do_field_int. Change type of "value".
4884 * tracepoint.c (trace_status_mi, tfind_1)
4885 (print_one_static_tracepoint_marker): Update.
4886 * thread.c (print_thread_info_1, print_selected_thread_frame):
4887 Update.
4888 * stack.c (print_frame, print_frame_info): Update.
4889 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4890 Update.
4891 * source.c (print_source_lines_base): Update.
4892 * skip.c (info_skip_command): Update.
4893 * record-btrace.c (btrace_ui_out_decode_error)
4894 (btrace_call_history_src_line): Update.
4895 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4896 Update.
4897 * progspace.c (print_program_space): Update.
4898 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4899 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4900 do_field_int. Change type of "value".
4901 * mi/mi-out.c (mi_ui_out::do_table_begin)
4902 (mi_ui_out::do_table_header): Update.
4903 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4904 type of "value".
4905 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4906 (mi_cmd_data_list_changed_registers, output_register)
4907 (mi_cmd_data_read_memory, mi_load_progress)
4908 (mi_cmd_trace_frame_collected): Update.
4909 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4910 Update.
4911 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4912 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4913 (mi_cmd_var_list_children, varobj_update_one): Update.
4914 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4915 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4916 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4917 * inferior.c (print_inferior): Update.
4918 * gdb_bfd.c (print_one_bfd): Update.
4919 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4920 Update.
4921 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4922 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4923 do_field_int. Change type of "value".
4924 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4925 do_field_int. Change type of "value".
4926 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4927 (print_one_breakpoint_location, print_it_catch_fork)
4928 (print_one_catch_fork, print_it_catch_vfork)
4929 (print_one_catch_vfork, print_it_catch_solib)
4930 (print_it_catch_exec, print_it_ranged_breakpoint)
4931 (print_mention_watchpoint, print_mention_masked_watchpoint)
4932 (bkpt_print_it, update_static_tracepoint): Update.
4933 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4934 * break-catch-syscall.c (print_it_catch_syscall): Update.
4935 * ada-tasks.c (print_ada_task_info): Update.
4936 * ada-lang.c (print_it_exception, print_mention_exception):
4937 Update.
4938
6b78c3f8
AB
49392019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 PR breakpoints/24541
4942 * gdbarch.c: Regenerate.
4943 * gdbarch.h: Regenerate.
4944 * gdbarch.sh: Adjust return type and parameter types for
4945 'stap_adjust_register'.
4946 (i386_stap_adjust_register): Adjust signature and return new
4947 register name.
4948 * stap-probe.c (stap_parse_register_operand): Adjust use of
4949 'gdbarch_stap_adjust_register'.
4950
d72a9b85
TT
49512019-07-17 Tom Tromey <tromey@adacore.com>
4952
4953 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4954 declare VEC.
4955 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4956 std::vector.
4957 (struct s390_process_info): Add initializers.
4958 (s390_add_process): Use new.
4959 (s390_linux_nat_target::low_forget_process): Use delete.
4960 (s390_linux_nat_target::low_new_fork)
4961 (s390_linux_nat_target::stopped_by_watchpoint)
4962 (s390_linux_nat_target::low_prepare_to_resume)
4963 (s390_linux_nat_target::insert_watchpoint)
4964 (s390_linux_nat_target::insert_hw_breakpoint)
4965 (s390_linux_nat_target::remove_watchpoint)
4966 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4967
206e6c58
JB
49682019-07-16 John Baldwin <jhb@FreeBSD.org>
4969
4970 * aarch64-fbsd-nat.c: Include regcache.h.
4971 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4972 argument.
4973 (aarch64_fbsd_nat_target::fetch_registers)
4974 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4975 variable.
4976 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4977
cbde90f2
JB
49782019-07-16 John Baldwin <jhb@FreeBSD.org>
4979
4980 * fbsd-nat.c: Include gdbarch.h.
4981
07128006
TT
49822019-07-15 Tom Tromey <tromey@adacore.com>
4983
4984 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4985
1f77b012
TT
49862019-07-15 Tom Tromey <tromey@adacore.com>
4987
4988 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4989 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4990 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4991 * cli-out.c (cli_ui_out::do_field_int): New method.
4992 * ui-out.c (ui_out::field_unsigned): New method.
4993 * symfile.c (generic_load): Use field_unsigned.
4994 (print_transfer_performance): Likewise.
4995 * record-btrace.c (ui_out_field_uint): Remove.
4996 (btrace_call_history_insn_range, btrace_call_history): Use
4997 field_unsigned.
4998 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4999 field_unsigned.
5000 * ui-out.h (class ui_out) <field_unsigned>: New method.
5001 <do_field_unsigned>: Likewise.
5002
33eca680
TT
50032019-07-15 Tom Tromey <tromey@adacore.com>
5004
5005 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5006 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5007 * target.c (flash_erase_command): Use field_string.
5008 * infrun.c (print_signal_received_reason): Use field_string.
5009 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5010 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5011 field_string.
5012 * ada-tasks.c (print_ada_task_info): Use field_string.
5013
ca8d69be
TT
50142019-07-15 Tom Tromey <tromey@adacore.com>
5015
5016 * target.c (flash_erase_command): Use field_core_addr.
5017 * symfile.c (generic_load): Use field_core_addr.
5018 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5019 Use field_core_addr.
5020 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5021 field_core_addr.
5022
0d4e84ed
AB
50232019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5024
5025 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5026 value if its desired type is smaller than a CORE_ADDR and signed.
5027
9a49df9d
AB
50282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5029
5030 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5031 of changes to field names, and use new is_reference field to
5032 decide if a property is a reference or not.
5033 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5034 field.
5035 (struct dwarf2_property_baton): Update header comment, rename
5036 'referenced_type' to 'property_type' and update comments.
5037 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5038 default property type, store in property baton, update to take
5039 accound of renamed field.
5040 (read_func_scope): Update call to attr_to_dynamic_prop.
5041 (read_array_type): Likewise.
5042 (dwarf2_per_cu_addr_sized_int_type): New function.
5043 (read_subrange_index_type): Move type finding code to
5044 dwarf2_per_cu_addr_sized_int_type.
5045 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5046 (dwarf2_per_cu_addr_type): New function.
5047 (set_die_type): Update calls to attr_to_dynamic_prop.
5048
b86352cf
AB
50492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * dwarf2read.c (read_subrange_index_type): New function.
5052 (read_subrange_type): Move code into new function and call it.
5053 * gdbtypes.c (create_range_type): Add some asserts.
5054
603490bf
AB
50552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5058 update return statements.
5059 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5060 declaration, and update comment to match.
5061 * gdbtypes.c (resolve_dynamic_array): Update call to
5062 dwarf2_evaluate_property to match new return type.
5063
592f9d27
AB
50642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * valarith.c (value_subscripted_rvalue): Change lowerbound
5067 parameter type from int to LONGEST.
5068 * value.h (value_subscripted_rvalue): Likewise in declaration.
5069
60cfcb20
AB
50702019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * cli/cli-utils.c (info_print_command_completer): New function.
5073 * cli/cli-utils.h: Add 'completer.h' include, and forward
5074 declaration for 'struct cmd_list_element'.
5075 (info_print_command_completer): Declare.
5076 * stack.c (_initialize_stack): Add completer for 'info locals' and
5077 'info args'.
5078 * symtab.c (_initialize_symtab): Add completer for 'info
5079 variables' and 'info functions'.
5080 * NEWS: Mention completion for additional info commands.
5081
b16507e0
AB
50822019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5083
5084 * cli/cli-utils.c (extract_info_print_args): Delete.
5085 (extract_arg_maybe_quoted): Delete.
5086 (info_print_options_defs): New variable.
5087 (make_info_print_options_def_group): New function.
5088 (extract_info_print_options): Define new function.
5089 * cli/cli-utils.h (extract_info_print_args): Delete.
5090 (struct info_print_options): New structure.
5091 (extract_info_print_options): Declare new function.
5092 * stack.c (info_locals_command): Update to use new
5093 extract_info_print_options, also add a header comment.
5094 (info_args_command): Likewise.
5095 * symtab.c (info_variables_command): Likewise.
5096 (info_functions_command): Likewise.
5097
021d8588
AB
50982019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5101 to extract string arguments.
5102 * common/common-utils.c (extract_string_maybe_quoted): New function.
5103 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5104
b777eb6d
TT
51052019-07-11 Tom Tromey <tromey@adacore.com>
5106
5107 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5108 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5109 * top.h (gdbinit): Don't declare.
5110 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5111 into...
5112 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5113 * top.c (gdb_init): Don't call init_cli_cmds.
5114 (gdbinit): Remove.
5115 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5116
72ee03ff
TT
51172019-07-11 Tom Tromey <tromey@adacore.com>
5118
5119 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5120 after it has been moved.
5121
00db9531
SM
51222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * valops.c (value_must_coerce_to_target): Change return type to
5125 bool.
5126 * value.h (value_must_coerce_to_target): Likewise.
5127
f2478a7e
SM
51282019-07-10 Simon Marchi <simon.marchi@efficios.com>
5129
5130 * breakpoint.c (is_hardware_watchpoint): Remove
5131 forward-declaration.
5132 (is_masked_watchpoint): Change return type to bool.
5133 (is_tracepoint): Likewise.
5134 (is_breakpoint): Likewise.
5135 (is_hardware_watchpoint): Likewise.
5136 (is_watchpoint): Likewise.
5137 (is_no_memory_software_watchpoint): Likewise.
5138 (is_catchpoint): Likewise.
5139 (breakpoint_1): Make FILTER parameter's return type bool.
5140 is_masked_watchpoint): Change return type to bool.
5141 (save_breakpoints): Make FILTER parameter's return type bool.
5142 * breakpoint.h (is_breakpoint): Change return type to bool.
5143 (is_watchpoint): Likewise.
5144 (is_catchpoint): Likewise.
5145 (is_tracepoint): Likewise.
5146
0d12e84c
TT
51472019-07-10 Tom Tromey <tom@tromey.com>
5148
5149 * defs.h: Don't include gdbarch.h.
5150 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5151 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5152 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5153 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5154 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5155 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5156 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5157 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5158 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5159 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5160 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5161 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5162 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5163 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5164 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5165 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5166 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5167 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5168 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5169 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5170 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5171 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5172 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5173 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5174 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5175 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5176 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5177
f06f1252
TT
51782019-07-10 Tom Tromey <tromey@adacore.com>
5179
5180 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5181 * breakpoint.c (init_ada_exception_breakpoint): Register as
5182 bp_catchpoint.
5183 (print_one_breakpoint_location, print_one_breakpoint): Use
5184 is_ada_exception_catchpoint.
5185 * ada-lang.c (class ada_catchpoint_location): Pass
5186 bp_loc_software_breakpoint to bp_location constructor.
5187 (is_ada_exception_catchpoint): New function.
5188
7a5d944b
TT
51892019-07-10 Tom Tromey <tromey@adacore.com>
5190
5191 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5192 VEC.
5193 (struct arm_exidx_entry): New method operator<.
5194 (struct arm_exidx_data) <section_maps>: Change type.
5195 (arm_exidx_data_free): Remove.
5196 (arm_exidx_data_key): Change type. Move lower.
5197 (arm_exidx_new_objfile): Update.
5198 (arm_compare_exidx_entries): Remove.
5199 (arm_find_exidx_entry, _initialize_arm_tdep)
5200
48c66e1d
TT
52012019-07-10 Tom Tromey <tromey@adacore.com>
5202
5203 * solib-spu.c (ocl_program_data_key): Change type.
5204 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5205 Update.
5206
a269fbf1
TT
52072019-07-10 Tom Tromey <tromey@adacore.com>
5208
5209 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5210 (struct solib_aix_inferior_data) <library_list>: Change type.
5211 (solib_aix_inferior_data_handle): Change type.
5212 (get_solib_aix_inferior_data): Update.
5213 (solib_aix_free_library_list): Remove.
5214 (library_list_start_library): Update.
5215 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5216 return type.
5217 (solib_aix_get_library_list)
5218 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5219 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5220
c294730c
TT
52212019-07-10 Tom Tromey <tromey@adacore.com>
5222
5223 * solib-dsbt.c (struct dsbt_info): Add initializers.
5224 (solib_dsbt_pspace_data): Change type.
5225 (dsbt_pspace_data_cleanup): Remove.
5226 (get_dsbt_info, _initialize_dsbt_solib): Update.
5227
9d52077d
TT
52282019-07-10 Tom Tromey <tromey@adacore.com>
5229
5230 * spu-tdep.c (spu_overlay_data): Change type.
5231 (spu_get_overlay_table, spu_overlay_new_objfile)
5232 (_initialize_spu_tdep): Update.
5233
22a20dca
TT
52342019-07-10 Tom Tromey <tromey@adacore.com>
5235
5236 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5237 destructor.
5238 (dbx_objfile_data_key): Change type and declare later.
5239 (DBX_SYMFILE_INFO): Rewrite.
5240 * dbxread.c (dbx_objfile_data_key): Change type.
5241 (dbx_symfile_init): Update.
5242 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5243 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5244 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5245
cb60f420
TT
52462019-07-10 Tom Tromey <tromey@adacore.com>
5247
5248 * jit.c (jit_program_space_key): Change type. Move lower.
5249 (get_jit_program_space_data): Update.
5250 (jit_program_space_data_cleanup): Remove.
5251 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5252 Update.
5253 (struct jit_program_space_data): Add initializers.
5254
51df2ae3
TT
52552019-07-10 Tom Tromey <tromey@adacore.com>
5256
5257 * solib-darwin.c (struct darwin_info): Add initializers.
5258 (solib_darwin_pspace_data): Change type.
5259 (darwin_pspace_data_cleanup): Remove.
5260 (get_darwin_info, _initialize_darwin_solib): Update.
5261
18101a35
TT
52622019-07-10 Tom Tromey <tromey@adacore.com>
5263
5264 * remote-sim.c (struct sim_inferior_data): Add initializers,
5265 constructor, and destructor.
5266 (sim_inferior_data_key): Change type. Move lower.
5267 (check_for_duplicate_sim_descriptor): Update.
5268 (get_sim_inferior_data): Use new. Update.
5269 (~sim_inferior_data_cleanup): Rename from
5270 sim_inferior_data_cleanup. Simplify.
5271 (gdbsim_close_inferior, simulator_command)
5272 (sim_command_completer, _initialize_remote_sim): Update.
5273 (next_pid, INITIAL_PID): Move earlier.
5274
05b08ac1
TT
52752019-07-10 Tom Tromey <tromey@adacore.com>
5276
5277 * python/python-internal.h (create_thread_object): Return
5278 gdbpy_ref.
5279 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5280 * python/py-inferior.c (struct threadlist_entry): Add
5281 constructor.
5282 <thread_obj>: Now a gdbpy_ref.
5283 (thread_to_thread_object): Update.
5284 (add_thread_object): Use new.
5285 (delete_thread_object): Use delete.
5286 (infpy_threads): Update.
5287 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5288 GIL.
5289
32372d80
TT
52902019-07-10 Tom Tromey <tromey@adacore.com>
5291
5292 * valops.c (value_cast): Specialize error message for Ada.
5293
5c458ae8
SM
52942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5297
4c462cb0
SM
52982019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5299
5300 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5301 bpstat_should_step): Return bool, adjust comments.
5302 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5303 bpstat_should_step): Likewise.
5304
89abbcc2
AH
53052019-07-10 Alan Hayward <alan.hayward@arm.com>
5306
5307 * features/Makefile: Use feature target descriptions for Arm.
5308 * features/arm/arm-core.c: Generate new file.
5309 * features/arm/arm-fpa.c: Likewise.
5310 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5311 * features/arm/arm-m-profile.c: Likewise.
5312 * features/arm/arm-vfpv2.c: Likewise.
5313 * features/arm/arm-vfpv3.c: Likewise.
5314 * features/arm/xscale-iwmmxt.c: Likewise.
5315 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5316
166a82be
AH
53172019-07-10 Alan Hayward <alan.hayward@arm.com>
5318
5319 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5320 ptrace earlier.
5321
9fb4c7e9
AH
53222019-07-10 Alan Hayward <alan.hayward@arm.com>
5323
5324 * features/aarch64-pauth.c: Regenerate.
5325
e2d0f980
SM
53262019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5329 bool.
5330 (bpstat_what): Use false instead of 0.
5331
a38118e5
PA
53322019-07-09 Pedro Alves <palves@redhat.com>
5333
5334 * break-catch-throw.c (is_exception_catchpoint): New.
5335 * breakpoint.c (print_one_breakpoint_location): New parameter
5336 'raw_loc'. Handle it. Use
5337 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5338 looking at the breakpoint's type.
5339 (print_one_breakpoint): If handling "maint info breakpoints", also
5340 print locations of exception catchpoints.
5341 * breakpoint.h (is_exception_catchpoint): Declare.
5342
cb1e4e32
PA
53432019-07-09 Pedro Alves <palves@redhat.com>
5344
5345 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5346 "addr" field.
5347 (allocate_location_exception_catchpoint): New.
5348 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5349 (initialize_throw_catchpoint_ops): Install
5350 allocate_location_exception_catchpoint as allocate_location
5351 method.
5352 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5353 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5354 bp_loc_other.
5355 (breakpoint_address_is_meaningful): Delete.
5356 (bl_address_is_meaningful): New.
5357 (breakpoint_locations_match): Adjust comment.
5358 (bp_location_from_bp_type): New, factored out of...
5359 (bp_location::bp_location(breakpoint *)): ... this.
5360 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5361 factored out of...
5362 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5363 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5364 breakpoint_address_is_meaningful.
5365 (bp_locations_compare): Adjust comment.
5366 (update_global_location_list): Use bl_address_is_meaningful
5367 instead of breakpoint_address_is_meaningful.
5368 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5369 explicit.
5370 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5371 * python/py-breakpoint.c (bppy_get_location): No longer check
5372 whether location is null.
5373
b58a68fe
PA
53742019-07-09 Pedro Alves <palves@redhat.com>
5375
5376 PR c++/15468
5377 * breakpoint.c (print_one_breakpoint_location): Remove
5378 single-location assert.
5379
268a13a5
TT
53802019-07-09 Tom Tromey <tom@tromey.com>
5381
5382 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5383 * configure: Rebuild.
5384 * configure.ac: Change common to gdbsupport.
5385 * gdbsupport: Rename from common.
5386 * acinclude.m4: Change common to gdbsupport.
5387 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5388 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5389 gdbsupport.
5390 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5391 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5392 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5393 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5394 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5395 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5396 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5397 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5398 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5399 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5400 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5401 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5402 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5403 coff-pe-read.c, command.h, compile/compile-c-support.c,
5404 compile/compile-c.h, compile/compile-cplus-symbols.c,
5405 compile/compile-cplus-types.c, compile/compile-cplus.h,
5406 compile/compile-loc2c.c, compile/compile.c, completer.c,
5407 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5408 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5409 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5410 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5411 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5412 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5413 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5414 features/aarch64-core.c, features/aarch64-fpu.c,
5415 features/aarch64-pauth.c, features/aarch64-sve.c,
5416 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5417 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5418 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5419 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5420 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5421 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5422 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5423 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5424 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5425 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5426 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5427 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5428 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5429 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5430 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5431 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5432 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5433 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5434 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5435 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5436 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5437 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5438 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5439 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5440 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5441 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5442 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5443 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5444 minsyms.c, mips-linux-tdep.c, namespace.h,
5445 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5446 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5447 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5448 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5449 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5450 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5451 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5452 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5453 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5454 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5455 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5456 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5457 procfs.c, producer.c, progspace.h, psymtab.h,
5458 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5459 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5460 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5461 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5462 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5463 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5464 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5465 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5466 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5467 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5468 target-memory.c, target.c, target.h, target/waitstatus.c,
5469 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5470 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5471 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5472 unittests/array-view-selftests.c,
5473 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5474 unittests/common-utils-selftests.c,
5475 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5476 unittests/format_pieces-selftests.c,
5477 unittests/function-view-selftests.c,
5478 unittests/lookup_name_info-selftests.c,
5479 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5480 unittests/mkdir-recursive-selftests.c,
5481 unittests/observable-selftests.c,
5482 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5483 unittests/parse-connection-spec-selftests.c,
5484 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5485 unittests/scoped_fd-selftests.c,
5486 unittests/scoped_mmap-selftests.c,
5487 unittests/scoped_restore-selftests.c,
5488 unittests/string_view-selftests.c, unittests/style-selftests.c,
5489 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5490 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5491 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5492 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5493 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5494 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5495
5b0e2db4
AB
54962019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5497
5498 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5499 bool value.
5500 (decode_digits_ordinary): Set explicit_line field in sal.
5501 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5502 symtab_and_line that was set on an explicit line number in
5503 assembler code. Do always update the recorded symtab and line if
5504 we do skip the prologue.
5505
0ba852ab
AB
55062019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5507
5508 * breakpoint.c (set_breakpoint_location_function): Remove
5509 explicit_loc parameter.
5510 (momentary_breakpoint_from_master): Update call to
5511 set_breakpoint_location_function.
5512 (add_location_to_breakpoint): Likewise.
5513
b3a7d171
AB
55142019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5515
5516 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5517 required features based on default bfd type when no specific bfd
5518 is present.
5519
1f6f6e21
PW
55202019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5521
5522 * NEWS: Mention that GDB printf and eval commands can now print
5523 C-style and Ada-style convenience var strings without
5524 calling the inferior.
5525 * printcmd.c (printf_c_string): Locally print GDB internal var
5526 instead of transiting via the inferior.
5527 (printf_wide_c_string): Likewise.
5528
55292019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5530
5862c886 5531 PR breakpoints/25011
ea142fbf
AH
5532 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5533
0598af48
TT
55342019-07-04 Tom Tromey <tom@tromey.com>
5535
5536 PR tui/24724:
5537 * tui/tui-winsource.c (tui_clear_source_content): Update.
5538 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5539 (tui_update_breakpoint_info): Update.
5540 (tui_set_exec_info_content): Update.
5541 * tui/tui-source.c (tui_set_source_content_nil): Update.
5542 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5543 has_break.
5544 * tui/tui-data.h (enum tui_bp_flag): New.
5545 (tui_bp_flags): New enum flags type.
5546 (struct tui_source_element) <break_mode>: Change type. Rename
5547 from has_break.
5548 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5549 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5550 constants.
5551 * tui/tui-winsource.h: Fix comment.
5552
350fab54
AH
55532019-07-04 Alan Hayward <alan.hayward@arm.com>
5554
5555 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5556 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5557 (store_fpregs_to_thread)
5558 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5559 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5560 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5561 (IWMMXT_REGS_SIZE): Add define.
5562 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5563 (fetch_vfp_regs, store_vfp_regs)
5564 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5565 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5566
f0452268
AH
55672019-07-04 Alan Hayward <alan.hayward@arm.com>
5568
5569 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5570 defines.
5571 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5572 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5573 (ARM_INT_REGISTER_SIZE): ...to this.
5574 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5575 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5576 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5577 (arm_linux_collect_gregset, supply_nwfpe_register)
5578 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5579 defines.
5580 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5581 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5582 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5583 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5584 (arm_return_in_memory, arm_store_return_value)
5585 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5586 (arm_record_ld_st_multiple): Likewise.
5587 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5588 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5589
e935475c
AH
55902019-07-04 Alan Hayward <alan.hayward@arm.com>
5591
5592 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5593 AARCH64_DISPLACED_MODIFIED_INSNS.
5594 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5595 (aarch64_displaced_step_copy_insn): Likewise.
5596 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5597 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5598 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5599 ARM_DISPLACED_MODIFIED_INSNS.
5600 * arm-tdep.c (arm_gdbarch_init): Likewise.
5601 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5602 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5603 (struct arm_displaced_step_closure): Use
5604 ARM_DISPLACED_MODIFIED_INSNS.
5605
df0bb381
AH
56062019-07-04 Alan Hayward <alan.hayward@arm.com>
5607
5608 * features/Makefile: Remove unused xml files.
5609 * features/aarch64.xml: Remove.
5610 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5611 * features/i386/amd64-avx-avx512.xml: Remove.
5612 * features/i386/amd64-avx-linux.xml: Remove.
5613 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5614 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5615 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5616 * features/i386/amd64-avx-mpx.xml: Remove.
5617 * features/i386/amd64-avx.xml: Remove.
5618 * features/i386/amd64-linux.xml: Remove.
5619 * features/i386/amd64-mpx-linux.xml: Remove.
5620 * features/i386/amd64-mpx.xml: Remove.
5621 * features/i386/amd64.xml: Remove.
5622 * features/i386/i386-avx-avx512-linux.xml: Remove.
5623 * features/i386/i386-avx-avx512.xml: Remove.
5624 * features/i386/i386-avx-linux.xml: Remove.
5625 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5626 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5627 * features/i386/i386-avx-mpx-linux.xml: Remove.
5628 * features/i386/i386-avx-mpx.xml: Remove.
5629 * features/i386/i386-avx.xml: Remove.
5630 * features/i386/i386-linux.xml: Remove.
5631 * features/i386/i386-mmx-linux.xml: Remove.
5632 * features/i386/i386-mmx.xml: Remove.
5633 * features/i386/i386-mpx-linux.xml: Remove.
5634 * features/i386/i386-mpx.xml: Remove.
5635 * features/i386/i386.xml: Remove.
5636 * features/i386/x32-avx-avx512-linux.xml: Remove.
5637 * features/i386/x32-avx-linux.xml: Remove.
5638 * features/i386/x32-linux.xml: Remove.
5639
edd6266a
AH
56402019-07-04 Alan Hayward <alan.hayward@arm.com>
5641
5642 * regformats/aarch64.dat: Remove.
5643 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5644 * regformats/i386/amd64-avx-linux.dat: Remove.
5645 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5646 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5647 * regformats/i386/amd64-linux.dat: Remove.
5648 * regformats/i386/amd64-mpx-linux.dat: Remove.
5649 * regformats/i386/amd64.dat: Remove.
5650 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5651 * regformats/i386/i386-avx-linux.dat: Remove.
5652 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5653 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5654 * regformats/i386/i386-linux.dat: Remove.
5655 * regformats/i386/i386-mmx-linux.dat: Remove.
5656 * regformats/i386/i386-mpx-linux.dat: Remove.
5657 * regformats/i386/i386.dat: Remove.
5658 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5659 * regformats/i386/x32-avx-linux.dat: Remove.
5660 * regformats/i386/x32-linux.dat: Remove.
5661
2b40fda7
AH
56622019-07-04 Alan Hayward <alan.hayward@arm.com>
5663
5664 * aarch64-tdep.c: Remove xml self tests.
5665 * amd64-linux-tdep.c: Likewise.
5666 * amd64-tdep.c: Likewise.
5667 * i386-linux-tdep.c: Likewise.
5668 * i386-tdep.c: Likewise.
5669
5f4ba3e7
PA
56702019-07-03 Pedro Alves <palves@redhat.com>
5671
5672 PR cli/24732
5673 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5674 (pipe_cmd_option_defs): New.
5675 (make_pipe_cmd_options_def_group): New.
5676 (pipe_command): Use gdb::option::process_options.
5677 (pipe_command_completer): New function.
5678 (_initialize_cli_cmds): Install completer for "pipe" command.
5679
3d9be6f5
PA
56802019-07-03 Pedro Alves <palves@redhat.com>
5681
5682 * cli/cli-option.c (union option_value) <string>: New field.
5683 (struct option_def_and_value): Add ctor, move ctor, dtor and
5684 use DISABLE_COPY_AND_ASSIGN.
5685 (option_def_and_value::clear_value): New.
5686 (parse_option, save_option_value_in_ctx, get_val_type_str)
5687 (add_setshow_cmds_for_options): Handle var_string.
5688 * cli-option.h (union option_def::var_address) <string>: New
5689 field.
5690 (struct string_option_def): New.
5691 * maint-test-options.c (struct test_options_opts): Add default
5692 ctor and use DISABLE_COPY_AND_ASSIGN.
5693 <string_opt>: New field.
5694 (test_options_opts::~test_options_opts): New.
5695 (test_options_opts::dump): Also dump "-string".
5696 (test_options_option_defs): Install "string.
5697
41fc454c
PA
56982019-07-03 Pedro Alves <palves@redhat.com>
5699
5700 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5701 option_value with a null enumeration.
5702 (complete_options): Save the option values in the context.
5703 (save_option_value_in_ctx): New, factored out from ...
5704 (process_options): ... here.
5705 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5706 of the function.
5707 * maint-test-options.c (test_options_opts::dump): New, factored
5708 out from ...
5709 (maintenance_test_options_command_mode): ... here.
5710 (maintenance_test_options_command_completion_result): Delete.
5711 (maintenance_test_options_command_completion_text): Update
5712 comment.
5713 (maintenance_show_test_options_completion_result): Change
5714 prototype. Just print
5715 maintenance_test_options_command_completion_text.
5716 (save_completion_result): New.
5717 (maintenance_test_options_completer_mode): Pass options context to
5718 complete_options, and then save a dump.
5719 (_initialize_maint_test_options): Use add_cmd to install "maint
5720 show test-options-completion-result".
5721
fdbc9870
PA
57222019-07-03 Pedro Alves <palves@redhat.com>
5723
5724 * NEWS (New commands): Mention "with" and "maint with".
5725 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5726 (with_command, with_command_completer): New.
5727 (pipe_command): Adjust to new repeat_previous
5728 interface.
5729 (_initialize_cli_cmds): Install the "with" command and its "w"
5730 alias.
5731 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5732 declarations.
5733 * cli/cli-setshow.c (parse_cli_var_uinteger)
5734 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5735 argument strings for all var_types.
5736 (get_setshow_command_value_string): New, factored out from ...
5737 (do_show_command): ... this.
5738 * cli/cli-setshow.h: Include <string>.
5739 (get_setshow_command_value_string): Declare.
5740 * command.h (repeat_previous): Now returns const char *. Adjust
5741 comment.
5742 * maint.c: Include "cli/cli-cmds.h".
5743 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5744 (_initialize_maint_cmds): Register the "maintenance with" command.
5745 * top.c (repeat_previous): Move bits from pipe_command here:
5746 Return the saved command line, if any; error out if there's no
5747 command to relaunch.
5748
c6ac8931
PA
57492019-07-03 Pedro Alves <palves@redhat.com>
5750
5751 * NEWS (New commands): Mention "maint set/show test-settings"
5752 instead of "maint test-settings".
5753 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5754 (maintenance_test_settings_set_list): Rename to ...
5755 (maintenance_set_test_settings_list): ... this.
5756 (maintenance_test_settings_show_list): Rename to ...
5757 (maintenance_show_test_settings_list): ... this.
5758 (maintenance_test_settings_cmd): Delete.
5759 (maintenance_test_settings_set_cmd): ...
5760 (maintenance_set_test_settings_cmd): ... this.
5761 (maintenance_test_settings_show_cmd): ...
5762 (maintenance_show_test_settings_cmd): ... this.
5763 (maintenance_test_settings_show_value_cmd):
5764 (maintenance_show_test_settings_value_cmd): ... this.
5765 (_initialize_maint_test_settings): No longer install the "maint
5766 test-settings" prefix command. Rename "maint test-settings set"
5767 to "maint set test-settings", and "maint test-settings show" to
5768 "maint show test-settings". Adjust all subcommands.
5769
d1fcf2fd
PA
57702019-07-03 Pedro Alves <palves@redhat.com>
5771
5772 * maint-test-settings.c: Fix file's intro comment. Replace all
5773 references to "test-options" with references to "test-settings",
5774 in comments.
5775
970f9d09
PA
57762019-07-03 Pedro Alves <palves@redhat.com>
5777
5778 * maint-test-settings.c (maintenance_test_settings_xxx)
5779 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5780 New.
5781 (maintenance_test_settings_enums): Use them.
5782 (maintenance_test_settings_enum): Default to
5783 maintenance_test_settings_xxx.
5784 (_initialize_maint_test_settings): Initialize
5785 MAINTENANCE_TEST_SETTINGS_FILENAME.
5786
f3869b1a
SM
57872019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5788
5789 * breakpoint.h (remove_breakpoints_inf): Change return type to
5790 void, move function documentation here.
5791 * breakpoint.c (remove_breakpoints_inf): Change return type to
5792 void, move function documentation to header.
5793
54d66006
PA
57942019-07-02 Pedro Alves <palves@redhat.com>
5795
5796 * NEWS (Completion improvements): Mention "info threads".
5797 * thread.c (struct info_threads_opts, info_threads_option_defs)
5798 (make_info_threads_options_def_group): New.
5799 (info_threads_command): Use gdb::option::process_options.
5800 (info_threads_command_completer): New.
5801 (_initialize_thread): Use gdb::option::build_help to build the
5802 help text for "info threads".
5803
854f6088
SM
58042019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * defs.h (generic_load): Move from here...
5807 * symfile.h (generic_load): ... to here. Rename name parameter
5808 to args.
5809 * symfile.c (generic_load): Add comment.
5810
54ee4252
TT
58112019-07-01 Tom Tromey <tromey@adacore.com>
5812
5813 * dwarf2read.c
5814 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5815 declaration of without_params. Fix formatting.
5816
65392b3e
TT
58172019-07-01 Tom Tromey <tromey@adacore.com>
5818
5819 * ada-exp.y (find_primitive_type): Update.
5820 * ada-lang.h (ada_lookup_symbol): Update.
5821 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5822 parameter.
5823 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5824
7d7571f0
SDJ
58252019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5826
5827 PR breakpoints/24541
5828 * gdbarch.c: Regenerate.
5829 * gdbarch.h: Regenerate.
5830 * gdbarch.sh: Add 'stap_adjust_register'.
5831 * i386-tdep.c: Include '<unordered_set>'.
5832 (i386_stap_adjust_register): New function.
5833 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5834 * stap-probe.c (stap_parse_register_operand): Call
5835 'gdbarch_stap_adjust_register'.
5836
5af5392a
SDJ
58372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5838
5839 PR python/24742
5840 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5841 * python/python.c (do_start_initialization): Use 'xmalloc'
5842 instead of 'PyMem_Malloc'.
5843
10d06d82
TT
58442019-06-28 Tom Tromey <tromey@adacore.com>
5845
5846 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5847 for Ada.
5848
1b7f24cd
TT
58492019-06-27 Tom Tromey <tromey@adacore.com>
5850
5851 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5852 objfile_key.
5853 (arm_find_mapping_symbol, arm_record_special_symbol)
5854 (_initialize_arm_tdep): Update.
5855 (arm_objfile_data_free): Remove.
5856
3d507ff2
TT
58572019-06-27 Tom Tromey <tromey@adacore.com>
5858
5859 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5860 to cp_print_static_field.
5861
762c164d
TT
58622019-06-26 Tom Tromey <tromey@adacore.com>
5863
5864 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5865 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5866 declare.
5867
aa2f9bcf
AH
58682019-06-26 Alan Hayward <alan.hayward@arm.com>
5869
5870 * features/aarch64-core.c (create_feature_aarch64_core):
5871 Regenerate.
5872 * features/aarch64-core.xml: Add cpsr flags.
5873
3426ae57
AH
58742019-06-26 Alan Hayward <alan.hayward@arm.com>
5875
5876 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5877 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5878
4838e44c
SM
58792019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5882 field.
5883 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5884 use.
5885 (arm_record_special_symbol): Don't insert new symbol in sorted
5886 position, push it at the end.
5887
54cc7474
SM
58882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5891 (arm_mapping_symbol_s): Remove.
5892 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5893 (arm_mapping_symbol_vec): New typedef.
5894 (struct arm_per_objfile): Add constructor.
5895 <section_maps>: Change type to
5896 std::unique_ptr<arm_mapping_symbol_vec[]>.
5897 (arm_compare_mapping_symbols): Remove.
5898 (arm_find_mapping_symbol): Adjust to section_maps type change.
5899 (arm_objfile_data_free): Call delete on arm_per_objfile.
5900 (arm_record_special_symbol): Adjust to section_maps type change.
5901 Allocate arm_per_objfile with new.
5902
b65b566c
PW
59032019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5904
5905 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5906 with the command prefix.
5907
c2fc64f5
TT
59082019-06-25 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5911 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5912
fb54fa76
TT
59132019-06-25 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5916 type.
5917 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5918 protected.
5919
f7952c57
TT
59202019-06-25 Tom Tromey <tom@tromey.com>
5921
5922 * tui/tui-winsource.c
5923 (tui_source_window_base::set_is_exec_point_at): Add check against
5924 LOA_ADDRESS.
5925
17568d78
TT
59262019-06-25 Tom Tromey <tom@tromey.com>
5927
5928 * tui/tui-source.c (tui_set_source_content): Don't check before
5929 xfree.
5930 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5931
53e7cdba
TT
59322019-06-25 Tom Tromey <tom@tromey.com>
5933
5934 * tui/tui-winsource.h (tui_update_source_window_as_is)
5935 (tui_alloc_source_buffer, tui_line_is_displayed)
5936 (tui_addr_is_displayed): Change type of win_info.
5937 * tui/tui-winsource.c (tui_update_source_window_as_is)
5938 (tui_clear_source_content, tui_show_source_line)
5939 (tui_show_source_content, tui_source_window_base::refill)
5940 (tui_source_window_base::set_is_exec_point_at)
5941 (tui_source_window_base::set_is_exec_point_at)
5942 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5943 (tui_alloc_source_buffer, tui_line_is_displayed)
5944 (tui_addr_is_displayed): Change type of win_info. Update.
5945 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5946 (tui_source_window_base::do_make_visible_with_new_height):
5947 Update.
5948 * tui/tui-source.c (tui_set_source_content)
5949 (tui_set_source_content_nil)
5950 (tui_source_window::do_scroll_vertical): Update.
5951 * tui/tui-layout.c (show_layout): Update.
5952 * tui/tui-disasm.c (tui_set_disassem_content)
5953 (tui_disasm_window::do_scroll_vertical): Update.
5954 * tui/tui-data.h (tui_win_content): Remove.
5955 (struct tui_gen_win_info) <content, content_size>: Remove.
5956 (struct tui_source_element): Add initializers and destructor.
5957 (union tui_which_element, struct tui_win_element): Remove.
5958 (struct tui_source_window_base) <content>: New field.
5959 (struct tui_data_window): Remove destructor.
5960 (tui_alloc_content, tui_free_win_content)
5961 (tui_free_all_source_wins_content): Don't declare.
5962 * tui/tui-data.c (tui_initialize_static_data): Update.
5963 (init_content_element, tui_alloc_content): Remove.
5964 (~tui_gen_win_info): Update.
5965 (~tui_data_window, tui_free_all_source_wins_content)
5966 (tui_free_win_content, free_content, free_content_elements):
5967 Remove.
5968
7908abbf
TT
59692019-06-25 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-winsource.h (tui_clear_source_content)
5972 (tui_erase_source_content, tui_show_source_content): Change type
5973 of win_info.
5974 * tui/tui-winsource.c (tui_clear_source_content)
5975 (tui_erase_source_content, tui_show_source_content): Change type
5976 of win_info.
5977 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5978 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5979 win_info.
5980 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5981 win_info.
5982 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5983
02c28df0
TT
59842019-06-25 Tom Tromey <tom@tromey.com>
5985
5986 * tui/tui-winsource.c (tui_clear_source_content)
5987 (tui_source_window_base::set_is_exec_point_at): Update.
5988 * tui/tui-source.c (tui_set_source_content_nil): Update.
5989 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5990 a bool.
5991 * tui/tui-data.c (init_content_element): Update.
5992
6658b1bf
TT
59932019-06-25 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5996 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5997 * tui/tui-layout.c (init_and_make_win): Update.
5998 * tui/tui.h (enum tui_win_type): Update.
5999 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6000 tui_win_is_auxillary.
6001 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6002 tui_win_is_auxillary.
6003
21e1c91e
TT
60042019-06-25 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6007 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6008 (tui_delete_data_content_windows, tui_display_all_data)
6009 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6010 Update.
6011 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6012 * tui/tui-regs.c (tui_last_regs_line_no)
6013 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6014 (tui_show_registers): Update.
6015 (tui_show_register_group): Return void. Update.
6016 (tui_display_registers_from, tui_display_reg_element_at_line)
6017 (tui_display_registers_from_line, tui_check_register_values):
6018 Update.
6019 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6020 member.
6021 (struct tui_data_window) <regs_content>: Now a std::vector.
6022 <regs_content_count>: Remove.
6023 (tui_add_content_elements, tui_free_data_content): Don't declare.
6024 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6025 (init_content_element): Remove DATA_WIN case. Add assert.
6026 (tui_add_content_elements): Remove.
6027 (tui_data_window): Update.
6028 (tui_free_data_content): Remove.
6029 (free_content_elements): Remove DATA_WIN case.
6030
115ac53b
TT
60312019-06-25 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-data.c (tui_data_item_window): Update.
6034 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6035 * tui/tui-windata.c (tui_display_all_data)
6036 (tui_display_data_from_line): Update.
6037 (tui_check_data_values): Remove.
6038 * tui/tui-regs.c (tui_show_register_group)
6039 (tui_display_reg_element_at_line): Update.
6040 * tui/tui-hooks.c (tui_register_changed)
6041 (tui_refresh_frame_and_register_information): Call
6042 tui_check_register_values.
6043 * tui/tui-data.h (struct tui_data_window) <data_content,
6044 data_content_count, data_type>: Remove.
6045 (enum tui_data_type): Remove.
6046
6047 * tui/tui-data.c (tui_data_window::clear_detail)
6048 (~tui_data_window): Update.
6049
eaf9738b
TT
60502019-06-25 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6053 declare.
6054 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6055 Rename from tui_first_data_item_displayed. Update.
6056 (tui_data_window::refresh_all)
6057 (tui_data_window::do_scroll_vertical): Update.
6058 * tui/tui-data.h (struct tui_data_window)
6059 <first_data_item_displayed>: Declare new method.
6060
31ca4723
TT
60612019-06-25 Tom Tromey <tom@tromey.com>
6062
6063 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6064 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6065 contents...
6066 (tui_initialize_static_data): ...here.
6067
41bcff7f
TT
60682019-06-25 Tom Tromey <tom@tromey.com>
6069
6070 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6071 (tui_display_registers_from, tui_check_register_values): Update.
6072 (tui_display_register): Remove win_info parameter; update.
6073 (tui_get_register): Change type of parameters.
6074 * tui/tui-data.h (struct tui_data_element): Remove.
6075 (union tui_which_element) <data>: Remove.
6076 <data_window>: Change type.
6077 (struct tui_data_item_window): New.
6078 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6079 case. Add assert.
6080 (~tui_data_item_window): New destructor.
6081 (free_content_elements): Remove DATA_ITEM_WIN case.
6082
d2802c33
TT
60832019-06-25 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6086 Remove.
6087
dd835f8b
TT
60882019-06-25 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-data.h (struct tui_command_element): Remove.
6091 (union tui_which_element) <command>: Remove.
6092 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6093 assert.
6094 (free_content_elements): Remove CMD_WIN case.
6095
bd7db367
TT
60962019-06-25 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui-layout.c (tui_set_layout): Update.
6099 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6100 * tui/tui-data.c (layout_def): Update.
6101
3add462f
TT
61022019-06-25 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6105 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6106 (tui_source_window_base::set_new_height): Update.
6107 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6108 Update.
6109 (tui_set_locator_fullname, tui_set_locator_info)
6110 (tui_show_frame_info): Update.
6111 * tui/tui-source.c (tui_set_source_content)
6112 (tui_source_is_displayed): Update.
6113 * tui/tui-layout.c (show_source_disasm_command, show_data)
6114 (show_source_or_disasm_and_command): Update.
6115 * tui/tui-disasm.c (tui_set_disassem_content)
6116 (tui_get_begin_asm_address): Update.
6117 * tui/tui-data.h (struct tui_locator_element): Remove.
6118 (union tui_which_element) <locator>: Remove.
6119 (struct tui_locator_window): New.
6120 (tui_locator_win_info_ptr): Change return type.
6121 * tui/tui-data.c (_locator): Change type.
6122 (tui_locator_win_info_ptr): Change return type.
6123 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6124 (tui_alloc_content): Add assert.
6125
489e9d8b
TT
61262019-06-25 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-winsource.c
6129 (tui_exec_info_window::maybe_allocate_content): New method.
6130 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6131 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6132 (make_source_or_disasm_window): Add cast.
6133 * tui/tui-data.h (union tui_which_element) <simple_string>:
6134 Remove.
6135 (struct tui_source_info): New.
6136 (struct tui_source_window_base) <execution_info>: Change type.
6137 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6138 case, and add assert.
6139 (tui_alloc_content): Add assert.
6140
c3fabb7d
TT
61412019-06-25 Tom Tromey <tom@tromey.com>
6142
6143 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6144 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6145 * tui/tui-data.c (tui_alloc_win_info): Remove.
6146
bbc228ee
TT
61472019-06-25 Tom Tromey <tom@tromey.com>
6148
6149 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6150 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6151 can_highlight.
6152
5fcee43a
TT
61532019-06-25 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6156 make_visible_with_new_height method.
6157 (tui_win_info::make_visible_with_new_height): New method.
6158 (tui_source_window_base::do_make_visible_with_new_height)
6159 (tui_data_window::do_make_visible_with_new_height)
6160 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6161 (make_visible_with_new_height): Remove.
6162 (tui_resize_all, tui_adjust_win_heights): Use
6163 make_visible_with_new_height method.
6164 * tui/tui-data.h (struct tui_win_info)
6165 <do_make_visible_with_new_height, make_visible_with_new_height>:
6166 New methods.
6167 (struct tui_source_window_base, struct tui_data_window)
6168 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6169 methods.
6170
d83f1fe6
TT
61712019-06-25 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6174 method.
6175 (update_tab_width): Call update_tab_width method.
6176 * tui/tui-data.h (struct tui_win_info)
6177 (struct tui_source_window_base) <update_tab_width>: New methods.
6178
17374de4
TT
61792019-06-25 Tom Tromey <tom@tromey.com>
6180
6181 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6182 parameter.
6183 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6184 parameter.
6185 (tui_gen_win_info::make_visible): Update.
6186 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6187 parameter.
6188 * tui/tui-data.h (enum tui_box): New enum.
6189 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6190
f936bca2
TT
61912019-06-25 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6194 init_and_make_win for EXEC_INFO_WIN.
6195 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6196 longer inline.
6197 (struct tui_win_info) <~tui_win_info>: Inline.
6198 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6199 Don't declare.
6200 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6201 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6202 Remove.
6203 (tui_initialize_static_data): Update.
6204 (~tui_gen_win_info): Handle more cleanup here.
6205 (~tui_source_window_base): Delete "execution_info".
6206 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6207
d6ba6a11
TT
62082019-06-25 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-layout.c (make_command_window): Don't set
6211 can_highlight.
6212 (show_source_disasm_command): Call the reset method.
6213 (show_data): Don't set can_highlight. Call the reset method.
6214 (tui_gen_win_info::reset): Rename from init_gen_win_info
6215 (init_and_make_win): Simplify. Return tui_gen_win_info.
6216 (show_source_or_disasm_and_command): Call the reset method.
6217 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6218 (struct tui_cmd_window): Set can_highlight.
6219
48a3bd16
TT
62202019-06-25 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6223 from make_visible.
6224 (tui_make_visible, tui_make_invisible): Rewrite.
6225 (tui_win_info::make_visible): Remove.
6226 (tui_source_window_base::make_visible): Update.
6227 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6228 method. Moved from...
6229 (struct tui_win_info) <make_visible>: ...here.
6230
c3bd716f
TT
62312019-06-25 Tom Tromey <tom@tromey.com>
6232
6233 * tui/tui-winsource.c
6234 (tui_source_window_base::do_scroll_horizontal): Remove direction
6235 parameter.
6236 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6237 direction parameter.
6238 * tui/tui-win.c (tui_win_info::forward_scroll)
6239 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6240 (tui_win_info::right_scroll): Update.
6241 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6242 direction parameter.
6243 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6244 direction parameter.
6245 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6246 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6247 Remove direction parameter.
6248 (struct tui_source_window_base, struct tui_source_window)
6249 (struct tui_disasm_window, struct tui_data_window)
6250 (struct tui_cmd_window): Update.
6251
21c32dca
TT
62522019-06-25 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-winsource.h (tui_set_exec_info_content)
6255 (tui_show_exec_info_content, tui_erase_exec_info_content)
6256 (tui_clear_exec_info_content, tui_update_exec_info): Change
6257 argument to tui_source_window_base.
6258 * tui/tui-winsource.c (tui_set_exec_info_content)
6259 (tui_show_exec_info_content, tui_erase_exec_info_content)
6260 (tui_clear_exec_info_content, tui_update_exec_info): Change
6261 argument to tui_source_window_base.
6262
73fbdc65
TT
62632019-06-25 Tom Tromey <tom@tromey.com>
6264
6265 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6266 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6267
33325343
TT
62682019-06-25 Tom Tromey <tom@tromey.com>
6269
6270 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6271 check.
6272
29d2c474
TT
62732019-06-25 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6276 type to void.
6277 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6278 type to void.
6279 * tui/tui-source.c (tui_set_source_content): Update.
6280 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6281
152f3f4b
TT
62822019-06-25 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-win.c (window_name_completer, tui_set_focus)
6285 (tui_all_windows_info): Use name method.
6286 * tui/tui-data.h (struct tui_gen_win_info)
6287 (struct tui_source_window, struct tui_disasm_window)
6288 (struct tui_data_window, struct tui_cmd_window) <name>: New
6289 method.
6290 (tui_win_name): Don't declare.
6291 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6292 (tui_win_name): Remove.
6293
be4da588
TT
62942019-06-25 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui-winsource.h (tui_update_source_window)
6297 (tui_update_source_window_as_is): Change parameter type.
6298 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6299 to be a tui_source_window_base.
6300 (tui_update_source_window_as_is): Likewise.
6301 * tui/tui-win.c (make_visible_with_new_height): Update.
6302
5b81daba
TT
63032019-06-25 Tom Tromey <tom@tromey.com>
6304
6305 * tui/tui-winsource.c (tui_erase_source_content)
6306 (tui_show_source_content, tui_show_exec_info_content)
6307 (tui_erase_exec_info_content): Use refresh_window method.
6308 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6309 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6310 from tui_refresh_win.
6311 (tui_data_window::refresh_window): New method.
6312 (tui_win_info::refresh, tui_source_window_base::refresh)
6313 (tui_refresh_all): Use refresh_window method.
6314 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6315 method.
6316 * tui/tui-regs.c (tui_display_register): Call refresh_window
6317 method.
6318 * tui/tui-layout.c (show_source_disasm_command)
6319 (show_source_or_disasm_and_command): Call refresh_window method.
6320 * tui/tui-data.h (struct tui_gen_win_info)
6321 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6322 New method.
6323
cb2ce893
TT
63242019-06-25 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui.c (tui_rl_other_window, tui_enable)
6327 (tui_is_window_visible, tui_get_command_dimension): Update.
6328 * tui/tui-winsource.c (tui_update_source_window_as_is)
6329 (tui_clear_source_content, tui_erase_source_content)
6330 (tui_show_source_line, tui_source_window_base::refill)
6331 (tui_source_window_base::do_scroll_horizontal)
6332 (tui_source_window_base::set_is_exec_point_at)
6333 (tui_update_breakpoint_info, tui_set_exec_info_content)
6334 (tui_alloc_source_buffer, tui_line_is_displayed)
6335 (tui_addr_is_displayed): Update.
6336 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6337 (tui_check_and_display_highlight_if_needed)
6338 (tui_win_info::make_visible, tui_win_info::refresh)
6339 (tui_refresh_all): Update.
6340 * tui/tui-windata.c (tui_first_data_item_displayed)
6341 (tui_delete_data_content_windows, tui_erase_data_content)
6342 (tui_display_all_data, tui_data_window::refresh_all)
6343 (tui_check_data_values): Update.
6344 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6345 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6346 (tui_win_info::backward_scroll, tui_refresh_all_win)
6347 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6348 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6349 (tui_source_window_base::set_new_height)
6350 (tui_data_window::set_new_height)
6351 (make_invisible_and_set_new_height)
6352 (make_visible_with_new_height, new_height_ok)
6353 (parse_scrolling_args): Update.
6354 * tui/tui-stack.c (tui_show_frame_info): Update.
6355 * tui/tui-source.c (tui_set_source_content)
6356 (tui_set_source_content_nil, tui_source_is_displayed)
6357 (tui_source_window::do_scroll_vertical): Update.
6358 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6359 (tui_display_registers_from, tui_display_reg_element_at_line)
6360 (tui_check_register_values, tui_reg_command): Update.
6361 * tui/tui-layout.c (tui_default_win_height)
6362 (show_source_disasm_command, show_data, init_and_make_win)
6363 (show_source_or_disasm_and_command): Update.
6364 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6365 (tui_redisplay_readline, tui_mld_flush)
6366 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6367 (tui_getc): Update.
6368 * tui/tui-disasm.c (tui_set_disassem_content)
6369 (tui_disasm_window::do_scroll_vertical): Update.
6370 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6371 Now virtual.
6372 (struct tui_win_info): Derive from tui_gen_win_info.
6373 <~tui_win_info>: Mark as override.
6374 <generic>: Remove member.
6375 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6376 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6377 (~tui_data_window, ~tui_win_info)
6378 (tui_free_all_source_wins_content): Update.
6379 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6380
ab313b35
TT
63812019-06-25 Tom Tromey <tom@tromey.com>
6382
6383 * tui/tui-layout.c (init_and_make_win): Use new.
6384 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6385 destructor, initializers.
6386 (tui_alloc_generic_win_info): Don't declare.
6387 * tui/tui-data.c (_locator): Add argument to constructor.
6388 (source_win, disasm_win): New globals.
6389 (exec_info): Remove.
6390 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6391 Update.
6392 (tui_alloc_generic_win_info): Remove.
6393 (init_content_element): Use new.
6394 (tui_win_info::tui_win_info): Update.
6395 (free_content_elements) <case DATA_WIN>: Use delete.
6396
dc2c33e4
TT
63972019-06-25 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6400 * tui/tui-windata.c (tui_first_data_item_displayed)
6401 (tui_delete_data_content_windows): Update.
6402 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6403 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6404 (tui_display_registers_from, tui_check_register_values): Update.
6405 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6406 pointer.
6407 * tui/tui-data.c (init_content_element): Update. Allocate the new
6408 window.
6409 (tui_free_data_content): Update.
6410 (free_content_elements) <case DATA_WIN>: Free the window.
6411
214a5cbe
TT
64122019-06-25 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6415 Update.
6416 * tui/tui-layout.c (make_command_window)
6417 (show_source_disasm_command, show_data, init_and_make_win)
6418 (show_source_or_disasm_and_command): Update.
6419 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6420 method.
6421 <can_highight, is_highlighted>: Now bool.
6422 (tui_set_win_highlight): Don't declare.
6423 * tui/tui-data.c (tui_set_win_highlight): Remove.
6424
8e2daf15
TT
64252019-06-25 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-wingeneral.c (make_visible): Remove check of window
6428 type.
6429
8903bd8a
TT
64302019-06-25 Tom Tromey <tom@tromey.com>
6431
6432 * tui/tui-win.c (tui_win_info::max_height)
6433 (tui_cmd_window::max_height): New methods.
6434 (new_height_ok): Call max_height.
6435 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6436 <max_height>: New method.
6437
3f02ce1e
TT
64382019-06-25 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-win.c (tui_source_window_base::set_new_height)
6441 (tui_data_window::set_new_height): New methods.
6442 (make_invisible_and_set_new_height): Call set_new_height method.
6443 * tui/tui-data.h (struct tui_win_info)
6444 (struct tui_source_window_base, struct tui_data_window)
6445 <set_new_height>: New method.
6446
1825f487
TT
64472019-06-25 Tom Tromey <tom@tromey.com>
6448
6449 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6450 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6451 tui_refresh_data_win.
6452 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6453 method.
6454 (tui_refresh_all_win): Call the refresh_all method.
6455 (tui_set_focus): Likewise.
6456 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6457 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6458 Likewise.
6459
ad54d15b
TT
64602019-06-25 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-winsource.h (tui_refill_source_window)
6463 (tui_set_is_exec_point_at): Don't declare.
6464 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6465 (tui_source_window_base::refill): Rename from
6466 tui_refill_source_window.
6467 (tui_source_window_base::do_scroll_horizontal): Update.
6468 (tui_source_window_base::set_is_exec_point_at): Rename from
6469 tui_set_is_exec_point_at.
6470 (tui_update_all_breakpoint_info): Update.
6471 * tui/tui-stack.c (tui_show_frame_info): Update.
6472 * tui/tui-layout.c (show_data): Add cast.
6473 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6474 * tui/tui-data.h (struct tui_source_window_base) <refill,
6475 set_is_exec_point_at>: New methods.
6476 (tui_source_windows, tui_add_to_source_windows): Update types.
6477 (tui_add_to_source_windows): Remove redundant declaration.
6478 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6479 (tui_source_windows): Change return type.
6480 (tui_clear_source_windows_detail): Update.
6481 (tui_add_to_source_windows): Change type of parameter.
6482 (tui_free_all_source_wins_content): Update.
6483
2042b506
TT
64842019-06-25 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui-wingeneral.c (tui_win_info::refresh)
6487 (tui_source_window_base::refresh): New methods.
6488 (tui_refresh_all): Call the refresh method.
6489 * tui/tui-data.h (struct tui_win_info)
6490 (struct tui_source_window_base) <refresh>: New method.
6491
56122977
TT
64922019-06-25 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui.h (tui_is_window_visible): Return bool.
6495 * tui/tui.c (tui_is_window_visible): Return bool.
6496 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6497 (tui_make_visible, tui_make_invisible)
6498 (tui_win_info::make_visible)
6499 (tui_source_window_base::make_visible, make_all_visible)
6500 (tui_make_all_visible, tui_make_all_invisible): Update.
6501 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6502 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6503 bool.
6504 (struct tui_win_info, struct tui_source_window_base)
6505 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6506 * tui/tui-data.c (tui_init_generic_part): Update.
6507
cda37efb
TT
65082019-06-25 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6511 (tui_source_window_base::make_visible): New methods.
6512 (make_all_visible): Make method call.
6513 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6514 (struct tui_source_window_base, struct tui_cmd_window): Override
6515 make_visible.
6516 (tui_win_is_source_type): Don't declare.
6517 * tui/tui-data.c (tui_win_is_source_type): Remove.
6518
6a0ee02c
TT
65192019-06-25 Tom Tromey <tom@tromey.com>
6520
6521 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6522 NULL check.
6523
63901aec
TT
65242019-06-25 Tom Tromey <tom@tromey.com>
6525
6526 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6527 Inline constructor. Add initializers for members.
6528 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6529 constructors; now inline in class.
6530
ceb13a13
TT
65312019-06-25 Tom Tromey <tom@tromey.com>
6532
6533 * tui/tui-regs.c (tui_show_registers): Update.
6534 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6535 bool.
6536 * tui/tui-data.c (tui_data_window::clear_detail)
6537 (tui_data_window): Update.
6538
238eb706
TT
65392019-06-25 Tom Tromey <tom@tromey.com>
6540
6541 * tui/tui-windata.c (tui_display_all_data)
6542 (tui_display_data_from_line, tui_display_data_from)
6543 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6544 Update.
6545 * tui/tui-regs.c (tui_last_regs_line_no)
6546 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6547 (tui_show_registers, tui_show_register_group)
6548 (tui_display_registers_from, tui_display_reg_element_at_line)
6549 (tui_display_registers_from_line, tui_check_register_values)
6550 (tui_reg_next, tui_reg_prev): Update.
6551 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6552 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6553 tui_data_window.
6554 (struct tui_win_info) <detail>: Remove. Add new fields from
6555 tui_data_info.
6556 (TUI_DATA_WIN): Add cast.
6557 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6558 (~tui_data_window): Simplify.
6559
81491aa0
TT
65602019-06-25 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-layout.c (show_source_disasm_command)
6563 (show_source_or_disasm_and_command): Update.
6564 * tui/tui-io.c (update_cmdwin_start_line)
6565 (tui_redisplay_readline): Update.
6566 * tui/tui-data.h (struct tui_command_info): Remove.
6567 (struct tui_win_info) <detail>: Remove command_info member.
6568 (struct tui_data_window) <start_line>: New member, from
6569 tui_command_info.
6570 (TUI_CMD_WIN): Add casts.
6571
e6e41501
TT
65722019-06-25 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-winsource.c (tui_update_source_window)
6575 (tui_refill_source_window)
6576 (tui_source_window_base::do_scroll_horizontal)
6577 (tui_update_breakpoint_info, tui_set_exec_info_content)
6578 (tui_show_exec_info_content, tui_erase_exec_info_content)
6579 (tui_clear_exec_info_content): Update.
6580 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6581 Update.
6582 * tui/tui-win.c (make_invisible_and_set_new_height)
6583 (make_visible_with_new_height): Update.
6584 * tui/tui-source.c (tui_set_source_content)
6585 (tui_show_symtab_source): Update.
6586 * tui/tui-layout.c (extract_display_start_addr)
6587 (show_source_disasm_command, show_data)
6588 (make_source_or_disasm_window)
6589 (show_source_or_disasm_and_command): Update.
6590 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6591 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6592 "gdbarch".
6593 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6594 to tui_source_window_base.
6595 (struct tui_win_info) <detail>: Remove source_info member.
6596 (struct tui_source_window_base) <has_locator>: Inline.
6597 Move contents from tui_source_info; rename has_locator member to
6598 m_has_locator.
6599 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6600 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6601 header file.
6602 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6603 Simplify.
6604 (tui_free_all_source_wins_content): Cast to
6605 tui_source_window_base.
6606
44f0e208
TT
66072019-06-25 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-win.c (make_invisible_and_set_new_height)
6610 (make_visible_with_new_height): Call has_locator method.
6611 * tui/tui-layout.c (show_source_disasm_command, show_data)
6612 (show_source_or_disasm_and_command): Update for bool change.
6613 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6614 (tui_win_info) <has_locator>: New method.
6615 (struct tui_source_window_base) <has_locator>: New method.
6616 (tui_win_has_locator): Don't declare.
6617 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6618 from tui_win_has_locator.
6619 (tui_source_window_base): Use false, not FALSE.
6620
7778b912
TT
66212019-06-25 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6624 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6625 clear_detail method directly.
6626 (tui_clear_win_detail): Remove.
6627
f83d391c
TT
66282019-06-25 Tom Tromey <tom@tromey.com>
6629
6630 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6631 "this", not TUI_DISASM_WIN.
6632
13446e05
TT
66332019-06-25 Tom Tromey <tom@tromey.com>
6634
6635 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6636 declare.
6637 * tui/tui-winsource.c
6638 (tui_source_window_base::do_scroll_horizontal): Rename from
6639 tui_horizontal_source_scroll.
6640 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6641 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6642 from tui_vertical_data_scroll.
6643 * tui/tui-win.h (tui_scroll): Don't declare.
6644 * tui/tui-win.c (tui_win_info::forward_scroll)
6645 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6646 (tui_win_info::right_scroll): Rename and update.
6647 (tui_scroll_forward_command, tui_scroll_backward_command)
6648 (tui_scroll_left_command, tui_scroll_right_command): Update.
6649 (tui_scroll): Remove.
6650 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6651 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6652 from tui_vertical_source_scroll.
6653 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6654 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6655 from tui_vertical_disassem_scroll.
6656 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6657 do_scroll_horizontal>: New methods.
6658 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6659 Likewise.
6660 (struct tui_source_window_base): Add do_scroll_horizontal.
6661 (struct tui_source_window, struct tui_disasm_window): Add
6662 do_scroll_vertical.
6663 (struct tui_data_window, struct tui_cmd_window): Add
6664 do_scroll_horizontal and do_scroll_vertical.
6665 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6666
5cf82909
TT
66672019-06-25 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-data.h (struct tui_source_window_base): New struct.
6670 (struct tui_source_window): Derive from tui_source_window_base.
6671 (struct tui_disasm_window): New struct.
6672 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6673 from tui_source_window::clear_detail.
6674 (tui_source_window_base): Rename from tui_source_window.
6675 (~tui_source_window_base): Rename from ~tui_source_window.
6676 (tui_alloc_win_info): Create a tui_disasm_window.
6677
ee1d42d6
TT
66782019-06-25 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-data.h (struct tui_source_window)
6681 (struct tui_data_window): Declare destructors.
6682 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6683 destructors.
6684 (tui_win_info): Simplify.
6685
b4eb2452
TT
66862019-06-25 Tom Tromey <tom@tromey.com>
6687
6688 * tui/tui-winsource.c (tui_display_main)
6689 (tui_update_source_windows_with_addr)
6690 (tui_update_all_breakpoint_info): Update.
6691 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6692 (new_height_ok, parse_scrolling_args): Update.
6693 * tui/tui-stack.c (tui_show_frame_info): Update.
6694 * tui/tui-data.h (struct tui_list): Remove.
6695 (tui_source_windows): Return a reference to a std::vector.
6696 * tui/tui-data.c (source_windows): Now a std::vector.
6697 (tui_source_windows): Change return type.
6698 (tui_clear_source_windows): Rewrite.
6699 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6700 (tui_free_all_source_wins_content): Rewrite.
6701
8761a91b
TT
67022019-06-25 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6705 (struct tui_data_window, struct tui_cmd_window): Declare
6706 clear_detail method.
6707 * tui/tui-data.c (tui_source_window::clear_detail)
6708 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6709 methods.
6710 (tui_clear_win_detail): Simplify.
6711
0ed69eda
TT
67122019-06-25 Tom Tromey <tom@tromey.com>
6713
6714 * tui/tui-layout.c (make_source_window, make_disasm_window)
6715 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6716 Return the new window.
6717 (show_source_disasm_command, show_data)
6718 (show_source_or_disasm_and_command): Update.
6719
82432e10
TT
67202019-06-25 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6723 parameter. Return the new window.
6724 (show_source_disasm_command): Update and remove NULL check.
6725 (show_source_or_disasm_and_command): Update.
6726
ec328aa5
TT
67272019-06-25 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6730
33b906ab
TT
67312019-06-25 Tom Tromey <tom@tromey.com>
6732
6733 * tui/tui-data.h (struct tui_win_info): Make constructor
6734 protected. Make destructor virtual. Add initializers.
6735 (tui_source_window, tui_data_window, tui_cmd_window): New
6736 classes.
6737 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6738 constructor. Add "type" parameter.
6739 (tui_source_window, tui_data_window, tui_cmd_window): New
6740 constructors.
6741 (tui_alloc_win_info): Instantiate the appropriate subclass.
6742
e7e11af4
TT
67432019-06-25 Tom Tromey <tom@tromey.com>
6744
6745 * tui/tui-win.c (tui_resize_all): Use delete.
6746 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6747 destructor.
6748 (tui_free_window): Don't declare.
6749 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6750 Update.
6751
6792b55e
TT
67522019-06-25 Tom Tromey <tom@tromey.com>
6753
6754 * tui/tui-data.h (struct tui_win_info): Add constructor.
6755 * tui/tui-data.c (tui_alloc_win_info): Use new.
6756 (tui_free_window): Use delete.
6757
f95675e1
TT
67582019-06-22 Tom Tromey <tom@tromey.com>
6759
6760 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6761 declare.
6762 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6763
5bff081c
TT
67642019-06-22 Tom Tromey <tom@tromey.com>
6765
6766 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6767 declare.
6768 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6769
47e3f474
TV
67702019-06-22 Tom de Vries <tdevries@suse.de>
6771
6772 * dwarf2read.c (create_addrmap_from_aranges)
6773 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6774 instead of '%zu'.
6775
fd5866f6
SM
67762019-06-21 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * dwarf2read.h (dwarf2_section_info_def): Remove.
6779 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6780 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6781 std::vector<dwarf2_section_info>.
6782 (struct dwo_file) <~dwo_file>: Remove.
6783 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6784 types field.
6785 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6786 (dwarf2_read_debug_names): Likewise.
6787 (create_debug_types_hash_table): Change parameter type to
6788 array_view, adjust code accordingly.
6789 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6790 (partial_die_info::fixup): Likewise.
6791 (determine_prefix): Likewise.
6792 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6793
fb1eb2f9
SM
67942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6797 gdb_bfd_ref_ptr.
6798 <~dwo_file>: Remove call to gdb_bfd_unref.
6799 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6800 gdb_bfd_ref_ptr::get.
6801
51ac9db5
SM
68022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6805 type to htab_up.
6806 * dwarf2read.c (struct dwo_file): Initialize fields.
6807 <~dwo_file>: New.
6808 (free_dwo_file): Remove, move content to ~dwo_file.
6809 (struct dwo_file_deleter): Remove.
6810 (dwo_file_up>: Remove custom deleter.
6811 (free_dwo_files): Remove.
6812 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6813 dwo_files.
6814 (process_skeletonless_type_units): Call unique_ptr::get.
6815 (allocate_dwo_file_hash_table): Add deleter to created hash
6816 table. Change return type to htab_up.
6817 (lookup_dwo_file_slot): Don't memset dwo_file, call
6818 unique_ptr::get.
6819 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6820 (create_dwo_unit_in_dwp_v2): Likewise.
6821 (open_and_init_dwo_file): Likewise.
6822 (free_dwo_file_from_slot): Remove.
6823
dc4ccb6f
SM
68242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 * dwarf2read.h (struct dwarf2_section_info) <readin,
6827 is_virtual>: Change type to bool.
6828 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6829 true instead of 1.
6830
e6a1c5cb
TT
68312019-06-19 Tom Tromey <tom@tromey.com>
6832
6833 * tui/tui-data.h (tui_init_content_element): Don't declare.
6834
6f6ffbeb
TT
68352019-06-19 Tom Tromey <tom@tromey.com>
6836
6837 * tui/tui-data.h (tui_init_win_info): Don't declare.
6838
f23f598e
TV
68392019-06-19 Tom de Vries <tdevries@suse.de>
6840
6841 * dwarf2read.h (abstract_to_concrete): Change type to
6842 std::unordered_map<sect_offset, std::vector<sect_offset>,
6843 gdb::hash_enum<sect_offset>>.
6844
680e1bee
TT
68452019-06-19 Tom Tromey <tromey@adacore.com>
6846
6847 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6848 EVAL_AVOID_SIDE_EFFECTS specially.
6849
dcf37923
TT
68502019-06-19 Tom Tromey <tromey@adacore.com>
6851
6852 * source-cache.c (highlighter): New global.
6853 (source_cache::get_source_lines): Create a highlighter on demand.
6854
494986d5
AB
68552019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * defs.h (deprecated_interactive_hook): Delete declaration.
6858 * interps.c (clear_interpreter_hooks): Remove use of
6859 deprecated_interactive_hook.
6860 * top.c (deprecated_interactive_hook): Delete definition.
6861 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6862
3360b6e7
TV
68632019-06-18 Tom de Vries <tdevries@suse.de>
6864
6865 PR gdb/24515
6866 * dwarf2read.h (abstract_to_concrete): Change type from
6867 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6868 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6869 * dwarf2read.c (read_variable): Update.
6870 (dwarf2_fetch_die_loc_sect_off): Update.
6871
310b3441
TV
68722019-06-17 Tom de Vries <tdevries@suse.de>
6873
6874 PR gdb/24617
6875 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6876 accessing parent[parent_len - 1].
6877
ba9777be
PP
68782019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6879
6880 PR gdb/24364
6881 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6882 call dtrace_process_dof with NULL dof.
6883
2b9f6e89
TV
68842019-06-16 Tom de Vries <tdevries@suse.de>
6885
6886 PR gdb/24445
6887 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6888
431b3ead
TT
68892019-06-16 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6892 (make_all_visible): Use address of member.
6893
d04b44a1
TT
68942019-06-16 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6897 (tui_free_window, free_content, free_content_elements): Remove
6898 unnecessary cast.
6899 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6900 cast.
6901 * tui/tui-regs.c (tui_show_register_group)
6902 (tui_display_registers_from, tui_display_reg_element_at_line):
6903 Remove unnecessary cast.
6904
bf5142e7
AB
69052019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6906
6907 * linux-nat.c (normal_mask): Delete.
6908 (_initialize_linux_nat): Don't initialise normal_mask.
6909
c4973306
SM
69102019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6911
6912 PR gdb/24445
6913 * dwarf-index-write.h (write_psymtabs_to_index): Add
6914 dwz_basename parameter.
6915 * dwarf-index-write.c (write_gdbindex): Move file writing to
6916 write_gdbindex_1. Change return type void.
6917 (assert_file_size): Move up, remove filename parameter.
6918 (write_gdbindex_1): New function.
6919 (write_debug_names): Change return type to void, call
6920 assert_file_size.
6921 (struct index_wip_file): New struct.
6922 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6923 file logic to index_wip_file. Write index for dwz file if
6924 needed.
6925 (save_gdb_index_command): Pass basename of dwz file, if present.
6926 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6927 build-id of dwz file, if present.
6928 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6929 (dwarf2_get_dwz_file): Likewise.
6930 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6931 (dwarf2_get_dwz_file): Likewise.
6932
395f9c91
TT
69332019-06-16 Tom Tromey <tom@tromey.com>
6934
6935 * coffread.c (process_coff_symbol): Use xstrdup.
6936 * value.c (create_internalvar): Use xstrdup.
6937
cafb3438
TT
69382019-06-16 Tom Tromey <tom@tromey.com>
6939
6940 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6941 * breakpoint.c (stopin_command, stopat_command)
6942 (until_break_command, decode_location_default): Remove unnecessary
6943 cast.
6944 * utils.c (subset_compare): Remove unnecessary cast.
6945 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6946 cast.
6947 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6948 cast.
6949 * infcmd.c (path_command): Remove unnecessary cast.
6950 * coffread.c (decode_type): Remove unnecessary cast.
6951 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6952 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6953 * tui/tui-stack.c (tui_show_locator_content)
6954 (tui_show_frame_info): Remove unnecessary cast.
6955 * tui/tui-win.c (tui_scroll_forward_command)
6956 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6957 (parse_scrolling_args): Remove unnecessary cast.
6958 * tui/tui-data.c (init_win_info, tui_del_window)
6959 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6960 (free_content_elements): Remove unnecessary cast.
6961 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6962 unnecessary cast.
6963 * tui/tui-source.c (tui_set_source_content)
6964 (tui_vertical_source_scroll): Remove unnecessary cast.
6965 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6966 cast.
6967 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6968 * tui/tui-regs.c (tui_display_registers_from)
6969 (tui_display_register): Remove unnecessary cast.
6970 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6971 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6972 (make_visible): Remove unnecessary cast.
6973 * tui/tui-winsource.c (tui_erase_source_content)
6974 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6975 unnecessary cast.
6976 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6977 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6978 * stabsread.c (read_type, read_array_type, read_range_type):
6979 Remove unnecessary cast.
6980 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6981 (parse_symbol, parse_type, upgrade_type, parse_external)
6982 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6983 unnecessary cast.
6984 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6985
730ead81
TT
69862019-06-16 Tom Tromey <tom@tromey.com>
6987
6988 * tui/tui-data.c (tui_alloc_generic_win_info)
6989 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6990 checks.
6991
584a927c
AB
69922019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6993 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * f-typeprint.c (f_print_type): Don't return early for not
6996 associated or not allocated types.
6997 (f_type_print_varspec_suffix): Add print_rank parameter and print
6998 ranks of array types in case they dangling.
6999 (f_type_print_base): Add print_rank parameter.
7000
30056ea0
AB
70012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * NEWS: Mention new MI commands.
7004 * break-catch-throw.c (enum exception_event_kind): Move to
7005 breakpoint.h.
7006 (print_mention_exception_catchpoint): Output text as a single
7007 message.
7008 (catch_exception_command_1): Rename to...
7009 (catch_exception_event): ...this, make non-static, update header
7010 command, and change some parameter types.
7011 (catch_catch_command): Update for changes to
7012 catch_exception_command_1.
7013 (catch_throw_command): Likewise.
7014 (catch_rethrow_command): Likewise.
7015 * breakpoint.c (enum exception_event_kind): Delete.
7016 * breakpoint.h (enum exception_event_kind): Moved here from
7017 break-catch-throw.c.
7018 (catch_exception_event): Declare.
7019 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7020 (mi_cmd_catch_throw): New function.
7021 (mi_cmd_catch_rethrow): New function.
7022 (mi_cmd_catch_catch): New function.
7023 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7024 'catch-catch' entries.
7025 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7026 (mi_cmd_catch_rethrow): Declare.
7027 (mi_cmd_catch_catch): Declare.
7028
ec8e2b6d
AB
70292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * annotate.c (annotate_source_line): Change return type to void,
7032 update implementation to match.
7033 * annotate.h (annotate_source_line): Change return type to void,
7034 update header comment.
7035 * stack.c (print_frame_info): Don't change what frame information
7036 is printed based on whether annotations are on or not.
7037
0d3abd8c
AB
70382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7041 (annotate_source): Make static.
7042 (annotate_source_line): Moved from source.c and renamed from
7043 identify_source_line. Update the return type.
7044 * annotate.h (annotate_source): Delete declaration.
7045 (annotate_source_line): Declaration moved from source.h, and
7046 renamed from identify_source_line. Return type updated.
7047 * source.c (identify_source_line): Moved to annotate.c and renamed
7048 to annotate_source_line.
7049 (info_line_command): Remove check of annotation_level.
7050 * source.h (identify_source_line): Move declaration to annotate.h
7051 and rename to annotate_source_line.
7052 * stack.c: Add 'annotate.h' include.
7053 (print_frame_info): Remove check of annotation_level before
7054 calling annotate_source_line.
7055
00df30ae
AB
70562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * source-cache.c (source_cache::get_plain_source_lines): Use
7059 open_source_file_with_line_charpos instead of just
7060 open_source_file, remove call to find_source_lines.
7061 (source_cache::get_source_lines): Likewise.
7062 * source.c (find_source_lines): Make static.
7063 (get_filename_and_charpos): Renamed into...
7064 (open_source_file_with_line_charpos): ..this along with changes to
7065 return a scoped_fd, and some other minor clean ups.
7066 (identify_source_line): Use open_source_file_with_line_charpos.
7067 (search_command_helper): Use open_source_file_with_line_charpos
7068 instead of just open_source_file, remove call to
7069 find_source_lines.
7070 * source.h (open_source_file_with_line_charpos): Declare new
7071 function.
7072 (find_source_lines): Delete declaration.
7073
afda45a2
AB
70742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * source.c (get_filename_and_charpos): Remove fullname
7077 parameter.
7078 (identify_source_line): Update call to get_filename_and_charpos.
7079
0735b091
TT
70802019-06-14 Tom Tromey <tromey@adacore.com>
7081
7082 PR gdb/24502:
7083 * ui-style.h (skip_ansi_escape): Update comment.
7084 * ui-file.h (class no_terminal_escape_file): New class.
7085 * ui-file.c (no_terminal_escape_file::write)
7086 (no_terminal_escape_file::puts): New methods.
7087 * cli/cli-logging.c (handle_redirections): Use
7088 no_terminal_escape_file.
7089
52ce35e2
TT
70902019-06-14 Tom Tromey <tromey@adacore.com>
7091
7092 * NEWS: Move convenience variable news above Python news.
7093
73cc7272
TT
70942019-06-14 Tom Tromey <tom@tromey.com>
7095
7096 * gnulib: Move directory to top-level.
7097 * configure.ac: Don't configure gnulib.
7098 * configure: Rebuild.
7099 * common/common-defs.h: Use new path to gnulib.
7100 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7101 (GNULIB_H): Remove.
7102 (INCGNU): Look in new gnulib location.
7103 (HFILES_NO_SRCDIR): Remove gnulib files.
7104 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7105 (generated_files): Remove GNULIB_H.
7106 ($(LIBGNU), all-lib): Remove targets.
7107 (distclean): Don't mention GNULIB_BUILDDIR.
7108 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7109
f5686554
TT
71102019-06-14 Tom Tromey <tromey@adacore.com>
7111
7112 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7113 Warn if symbol file does not provide any symbols.
7114
a0c1ffed
TT
71152019-06-14 Tom Tromey <tromey@adacore.com>
7116
7117 * source.c (find_and_open_source): Respect basenames_may_differ.
7118
7c39e397
AB
71192019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7120
7121 * annotate.c (annotate_breakpoints_invalid): Make use of
7122 scoped_restore_terminal_state.
7123 (annotate_frames_invalid): Likewise.
7124
f411722c
TT
71252019-06-14 Tom Tromey <tromey@adacore.com>
7126
7127 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7128 allow assignment to an internalvar.
7129
4268ec18
TT
71302019-06-14 Tom Tromey <tromey@adacore.com>
7131
7132 * ada-lex.l: Allow "_" in attribute names.
7133
abdb711e
TT
71342019-06-14 Tom Tromey <tromey@adacore.com>
7135
7136 PR gdb/24653:
7137 * regcache.c (registers_changed): Don't call alloca.
7138 * top.c (execute_command): Don't call alloca.
7139
4c048731
PA
71402019-06-13 Pedro Alves <palves@redhat.com>
7141
7142 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7143 'expression'. When parsing an expression, error out if there's
7144 junk after "unlimited".
7145 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7146 (do_set_command): Adjust calls to is_unlimited_literal.
7147
66eb1ed3
PA
71482019-06-13 Pedro Alves <palves@redhat.com>
7149
7150 * compile/compile.c (make_compile_options_def_group): Add braces
7151 around array_view initializer.
7152 * thread.c (make_thread_apply_all_options_def_group)
7153 (make_thread_apply_all_options_def_group): Likewise.
7154
3345721a
PA
71552019-06-13 Pedro Alves <palves@redhat.com>
7156
7157 * NEWS (New commands): Mention "maint test-options
7158 require-delimiter", "maint test-options unknown-is-error", "maint
7159 test-options unknown-is-operand" and "maint show
7160 test-options-completion-result".
7161 (New command options, command completion): New section.
7162 (Completion improvements): New section.
7163 Mention that you can abbreviate "unlimited".
7164
6206060d
PA
71652019-06-13 Pedro Alves <palves@redhat.com>
7166
7167 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7168 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7169 * unittests/cli-utils-selftests.c (test_parse_flags)
7170 (test_parse_flags_qcs): Delete.
7171 (test_cli_utils): Don't call deleted functions.
7172
6665660a
PA
71732019-06-13 Pedro Alves <palves@redhat.com>
7174
7175 * thread.c: Include "cli/cli-option.h".
7176 (tp_array_compar_ascending): Global.
7177 (tp_array_compar): Delete function.
7178 (tp_array_compar_ascending, tp_array_compar_descending): New
7179 functions.
7180 (ascending_option_def, qcs_flag_option_def)
7181 (thr_qcs_flags_option_defs)
7182 (make_thread_apply_all_options_def_group)
7183 (make_thread_apply_options_def_group): New.
7184 (thread_apply_all_command): Use gdb::option::process_options.
7185 (thread_apply_command_completer)
7186 (thread_apply_all_command_completer): New.
7187 (thread_apply_command): Use gdb::option::process_options.
7188 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7189 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7190 to generate help text of "thread apply". Adjust "taas"'s help.
7191 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7192 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7193
f7e13587
PA
71942019-06-13 Pedro Alves <palves@redhat.com>
7195
7196 * thread.c (thread_apply_command): Check for invalid TID with
7197 isdigit instead of !isalpha.
7198
5d707134
PA
71992019-06-13 Pedro Alves <palves@redhat.com>
7200
7201 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7202 (validate_flags_qcs): New.
7203 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7204 (validate_flags_qcs): Declare.
7205 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7206 (make_frame_apply_options_def_group): New.
7207 (frame_apply_command_count): Process options with
7208 gdb::option::process_options.
7209 (frame_apply_completer): New.
7210 (frame_apply_level_completer, frame_apply_all_completer)
7211 (frame_apply_completer): New.
7212 (_initialize_stack): Update help of "frame apply", "frame apply
7213 level", "frame apply all" and "faas" to mention supported options
7214 and install command completers.
7215 * stack.h (frame_apply_all_completer): Declare.
7216 * thread.c: Include "stack.h".
7217 (tfaas_command): Add "--".
7218 (_initialize_thread): Update help "tfaas" to mention supported
7219 options and install command completer.
7220
272d4594
PA
72212019-06-13 Pedro Alves <palves@redhat.com>
7222
7223 * completer.c (complete_nested_command_line): New.
7224 (gdb_completion_word_break_characters_throw): Add assertion.
7225 * completer.h (complete_nested_command_line): Declare.
7226
90a1ef87
PA
72272019-06-13 Pedro Alves <palves@redhat.com>
7228
7229 * stack.c (parse_backtrace_qualifiers): New.
7230 (backtrace_command): Use it.
7231 (backtrace_command_completer): Complete on qualifiers.
7232
d4c16835
PA
72332019-06-13 Pedro Alves <palves@redhat.com>
7234
7235 * frame.c: Include "cli/cli-option.h.
7236 (user_set_backtrace_options): New.
7237 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7238 Delete.
7239 (get_prev_frame): Adjust.
7240 (boolean_option_def, uinteger_option_def)
7241 (set_backtrace_option_defs): New.
7242 (_initialize_frame): Adjust and use
7243 gdb::option::add_setshow_cmds_for_options to install "set
7244 backtrace past-main" and "set backtrace past-entry".
7245 * frame.h: Include "cli/cli-option.h".
7246 (struct frame_print_options): Forward declare.
7247 (print_frame_arguments_all, print_frame_arguments_scalars)
7248 (print_frame_arguments_none): Declare.
7249 (print_entry_values): Delete declaration.
7250 (struct frame_print_options, user_frame_print_options): New.
7251 (struct set_backtrace_options): New.
7252 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7253 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7254 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7255 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7256 (list_args_or_locals): Add frame_print_options parameter.
7257 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7258 * python/py-framefilter.c (enumerate_args): Pass down
7259 USER_FRAME_PRINT_OPTIONS.
7260 * stack.c: Include "cli/cli-option.h".
7261 (print_frame_arguments_all, print_frame_arguments_scalars)
7262 (print_frame_arguments_none): Declare.
7263 (print_raw_frame_arguments, print_entry_values): Delete.
7264 (user_frame_print_options): New.
7265 (boolean_option_def, enum_option_def, frame_print_option_defs):
7266 New.
7267 (struct backtrace_cmd_options): New.
7268 (bt_flag_option_def): New.
7269 (backtrace_command_option_defs): New.
7270 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7271 (print_frame_arg, read_frame_arg, print_frame_args)
7272 (print_frame_info, print_frame): Add frame_print_options parameter
7273 and use it.
7274 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7275 (backtrace_command_1): Add frame_print_options and
7276 backtrace_cmd_options parameters and use them.
7277 (make_backtrace_options_def_group): New.
7278 (backtrace_command): Process command options with
7279 gdb::option::process_options.
7280 (backtrace_command_completer): New.
7281 (_initialize_stack): Extend "backtrace"'s help to mention
7282 supported options. Install completer for "backtrace".
7283 Install some settings commands with add_setshow_cmds_for_options.
7284
2daf894e
PA
72852019-06-13 Pedro Alves <palves@redhat.com>
7286
7287 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7288 and that "set/show print raw frame-arguments" are now deprecated.
7289
7290 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7291 command.
7292 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7293 * stack.c (_initialize_stack): Install "set/show print
7294 raw-frame-arguments", and deprecate "set/show print raw
7295 frame-arguments".
7296 * valprint.c (_initialize_valprint): Deprecate "set/show print
7297 raw".
7298
e6ed716c
PA
72992019-06-13 Pedro Alves <palves@redhat.com>
7300
7301 * compile/compile.c (struct compile_options): New.
7302 (compile_flag_option_def, compile_command_option_defs)
7303 (make_compile_options_def_group): New.
7304 (compile_file_command): Handle options with
7305 gdb::option::process_options.
7306 (compile_file_command_completer): New function.
7307 (compile_code_command): Handle options with
7308 gdb::option::process_options.
7309 (compile_code_command_completer): New function.
7310 (_initialize_compiler): Install completers for "compile code" and
7311 "compile file". Mention available options in "compile code" and
7312 "compile code"'s help.
7313 * completer.c (advance_to_completion_word): New, factored out from
7314 ...
7315 (advance_to_expression_complete_word_point): ... this.
7316 (advance_to_filename_complete_word_point): New.
7317 * completer.h (advance_to_filename_complete_word_point): New
7318 declaration.
7319
7d8062de
PA
73202019-06-13 Pedro Alves <palves@redhat.com>
7321
7322 * compile/compile.c: Include "cli/cli-option.h".
7323 (compile_print_value): Scope data pointer is now a
7324 value_print_options pointer; adjust.
7325 (compile_print_command): Process options. Scope data pointer is
7326 now a value_print_options pointer; adjust.
7327 (_initialize_compile): Update "compile print"'s help to include
7328 supported options. Install a completer for "compile print".
7329 * cp-valprint.c (show_vtblprint, show_objectprint)
7330 (show_static_field_print): Delete.
7331 (_initialize_cp_valprint): Don't install "set print
7332 static-members", "set print vtbl", "set print object" here.
7333 * printcmd.c: Include "cli/cli-option.h" and
7334 "common/gdb_optional.h".
7335 (print_command_parse_format): Rework to fill in a
7336 value_print_options instead of a format_data.
7337 (print_value): Change parameter type from format_data pointer to
7338 value_print_options reference. Adjust.
7339 (print_command_1): Process options. Adjust to pass down a
7340 value_print_options.
7341 (print_command_completer): New.
7342 (_initialize_printcmd): Install print_command_completer as
7343 handle_brkchars completer for the "print" command. Update
7344 "print"'s help to include supported options.
7345 * valprint.c: Include "cli/cli-option.h".
7346 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7347 here from cp-valprint.c.
7348 (boolean_option_def, uinteger_option_def)
7349 (value_print_option_defs, make_value_print_options_def_group):
7350 New. Use gdb::option::add_setshow_cmds_for_options to install
7351 "set print elements", "set print null-stop", "set print repeats",
7352 "set print pretty", "set print union", "set print array", "set
7353 print address", "set print symbol", "set print array-indexes".
7354 * valprint.h: Include <string> and "cli/cli-option.h".
7355 (make_value_print_options_def_group): Declare.
7356 (print_value): Change parameter type from format_data pointer to
7357 value_print_options reference.
7358 (print_command_completer): Declare.
7359
9d0faba9
PA
73602019-06-13 Pedro Alves <palves@redhat.com>
7361
7362 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7363 (COMMON_SFILES): Add maint-test-settings.c.
7364 * cli/cli-decode.c (boolean_enums): New global, factored out from
7365 ...
7366 (add_setshow_boolean_cmd): ... here.
7367 * cli/cli-decode.h (boolean_enums): Declare.
7368 * cli/cli-option.c: New file.
7369 * cli/cli-option.h: New file.
7370 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7371 factored out from ...
7372 (parse_cli_boolean_value(const char *)): ... this.
7373 (is_unlimited_literal): Change parameter type to pointer to
7374 pointer. Adjust and advance ARG pointer.
7375 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7376 (parse_cli_var_enum): New, factored out from ...
7377 (do_set_command): ... this. Adjust.
7378 * cli/cli-setshow.h (parse_cli_boolean_value)
7379 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7380 (parse_cli_var_enum): Declare.
7381 * cli/cli-utils.c: Include "cli/cli-option.h".
7382 (get_ulongest): New.
7383 * cli/cli-utils.h (get_ulongest): Declare.
7384 (check_for_argument): New overloads.
7385 * maint-test-options.c: New file.
7386
2c722807
PA
73872019-06-13 Pedro Alves <palves@redhat.com>
7388
7389 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7390 parse a range if "-" is at the end of the string.
7391
dee7b4c8
PA
73922019-06-13 Pedro Alves <palves@redhat.com>
7393
7394 * cli/cli-setshow.c (parse_auto_binary_operation)
7395 (parse_cli_boolean_value): Don't allow "o".
7396
dca0f6c0
PA
73972019-06-13 Pedro Alves <palves@redhat.com>
7398
7399 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7400 * NEWS: Mention maint test-settings KIND.
7401 * maint-test-settings.c: New file.
7402
597bf39d
PA
74032019-06-13 Pedro Alves <palves@redhat.com>
7404
7405 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7406 completer.
7407 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7408 "set" completers.
7409
48c410fb
PA
74102019-06-13 Pedro Alves <palves@redhat.com>
7411
7412 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7413 after item.
7414
93bcb043
PA
74152019-06-13 Pedro Alves <palves@redhat.com>
7416
7417 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7418
cbba3ecd
PA
74192019-06-13 Pedro Alves <palves@redhat.com>
7420
7421 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7422 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7423 call.
7424 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7425 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7426 calls.
7427 (check_for_argument): Skip spaces after argument.
7428
b9a3f842
PA
74292019-06-13 Pedro Alves <palves@redhat.com>
7430
7431 * thread.c (thread_apply_command): Adjust TID parsing.
7432 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7433 detected before end of string.
7434 (tid_is_in_list): Error out if LIST is invalid.
7435
3844e605
PA
74362019-06-13 Pedro Alves <palves@redhat.com>
7437
7438 * completer.c (complete_line_internal_1): Rewind completion word
7439 point.
7440 (completion_tracker::advance_custom_word_point_by): Change
7441 parameter type to int.
7442 * completer.h (completion_tracker::advance_custom_word_point_by):
7443 Likewise.
7444
00b56dbe
PA
74452019-06-13 Pedro Alves <palves@redhat.com>
7446
7447 * completer.c (advance_to_completion_word): Handle delimiters.
7448
d106773e
PA
74492019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7450
7451 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7452
08f10e02
TT
74532019-06-11 Tom Tromey <tom@tromey.com>
7454
7455 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7456 (xmalloc_failed): Move to alloc.c.
7457 * alloc.c: New file.
7458 * Makefile.in (COMMON_SFILES): Add alloc.c.
7459
1c7fe951
TT
74602019-06-11 Tom Tromey <tom@tromey.com>
7461
7462 * nat/linux-waitpid.c: Don't include server.h.
7463 (linux_debug): Remove.
7464 (my_waitpid): Update.
7465
89549d7f
TT
74662019-06-11 Tom Tromey <tromey@adacore.com>
7467
7468 * infcall.c (_initialize_infcall): Remove trailing newline from
7469 help.
7470 * user-regs.c (_initialize_user_regs): Remove trailing newline
7471 from help.
7472 * typeprint.c (_initialize_typeprint): Remove trailing newline
7473 from help.
7474 * reverse.c (_initialize_reverse): Remove trailing newlines from
7475 help.
7476 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7477 from help.
7478 * language.c (add_set_language_command): Remove trailing newline
7479 from help.
7480 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7481 help.
7482 * disasm.c (_initialize_disasm): Remove trailing newline from
7483 help.
7484 * top.c (init_main): Remove trailing newline from help.
7485 * interps.c (_initialize_interpreter): Remove trailing newline
7486 from help.
7487 * btrace.c (_initialize_btrace): Remove trailing newlines from
7488 help.
7489 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7490 from help.
7491 * python/python.c (_initialize_python): Remove trailing newline
7492 from help.
7493 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7494 help.
7495 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7496 from help. Reformat some text.
7497 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7498 from help.
7499 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7500 newline from help.
7501
86108c13
TT
75022019-06-11 Tom Tromey <tromey@adacore.com>
7503
7504 * darwin-nat.c (darwin_decode_exception_message)
7505 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7506
a7067863
AB
75072019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7508
7509 * valops.c (value_slice): Check for not allocated or not
7510 associated values.
7511
9ab08412
TV
75122019-06-10 Tom de Vries <tdevries@suse.de>
7513
7514 PR gdb/24618
7515 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7516 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7517 invalid.
7518
f19e22e9
TV
75192019-06-10 Tom de Vries <tdevries@suse.de>
7520
7521 PR gdb/24611
7522 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7523 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7524
e99f9db0
TV
75252019-06-10 Tom de Vries <tdevries@suse.de>
7526
7527 PR symtab/24545
7528 * symtab.c (struct demangled_name_entry): Add language field.
7529 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7530 static minimal symbol". Set and use language field.
7531
9bf7038b
TT
75322019-06-10 Tom Tromey <tromey@adacore.com>
7533
7534 * ada-lang.c (_initialize_ada_language): Update help text.
7535
422186a9
TT
75362019-06-10 Tom Tromey <tromey@adacore.com>
7537
7538 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7539 with a newline.
7540 * guile/guile.c (handle_boot_error): Don't end warning with a
7541 newline.
7542 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7543 warning with a newline.
7544 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7545 newline.
7546 (s12z_frame_cache): Likewise.
7547 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7548 a newline.
7549 * solib-svr4.c (disable_probes_interface): Don't end warning with
7550 a newline.
7551 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7552 newline.
7553 * python/python.c (do_finish_initialization): Don't end warning
7554 with a newline.
7555
25ce02ee
TT
75562019-06-10 Tom Tromey <tom@tromey.com>
7557
7558 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7559 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7560 gdbpy_enter.
7561
caa429d8
TT
75622019-06-10 Tom Tromey <tromey@adacore.com>
7563
7564 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7565 data.
7566 (elf_new_init): Don't call stabsread_new_init.
7567 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7568 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7569 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7570
81873cc8
TV
75712019-06-10 Tom de Vries <tdevries@suse.de>
7572
7573 PR symtab/16264
7574 PR symtab/24517
7575 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7576
4fa0265e
РИ
75772019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7578
7579 * source.c (find_and_open_source): Also rewrite relative file
7580 names.
7581
1a3da2cd
AB
75822019-04-26 Amos Bird <amosbird@gmail.com>
7583
7584 * annotate.c (annotate_thread_exited): Add "thread-exited"
7585 annotation.
7586
3847a7bf
TT
75872019-06-06 Tom Tromey <tromey@adacore.com>
7588
7589 * maint.h (class scoped_command_stats): Use
7590 DISABLE_COPY_AND_ASSIGN.
7591 <print_time>: New method.
7592 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7593 print_time.
7594 (scoped_command_stats::print_time): New method.
7595
312617a3
AB
75962019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7599 instructions of lengths 6 or 8 bytes.
7600
b02f78f9
PA
76012019-06-04 Pedro Alves <palves@redhat.com>
7602
7603 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7604
7605 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7606 * breakpoint.c (condition_completer): Likewise.
7607 * cli/cli-dump.c (scan_expression): Likewise.
7608 * common/filestuff.c (mkdir_recursive): Likewise.
7609 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7610 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7611 (gdb_abspath): Likewise.
7612 * compile/compile-cplus-types.c
7613 (compile_cplus_instance::decl_name): Likewise.
7614 * completer.c (complete_explicit_location):
7615 (signal_completer, reg_or_group_completer_1): Likewise.
7616 * cp-support.c (cp_remove_params_if_any): Likewise.
7617 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7618 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7619 * infcmd.c (strip_bg_char): Likewise.
7620 * linespec.c (copy_token_string): Likewise.
7621 * mi/mi-main.c (output_cores): Likewise.
7622 * psymtab.c (psymtab_search_name):
7623 * symfile.c (test_set_ext_lang_command): Likewise.
7624 * target.c (target_fileio_read_stralloc): Likewise.
7625 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7626 * value.c (complete_internalvar): Likewise.
7627
e1f2e1a2
CB
76282019-06-04 Christian Biesinger <cbiesinger@google.com>
7629
7630 Add objfile property to gdb.Type.
d3238f7d
PA
7631 * NEWS: Mention Python API addition.
7632 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7633
e664d728
PW
76342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7635
7636 * NEWS: Mention the new set|show style [title|highlight].
7637 Mention changes to "show style", "help" and "apropos".
7638
66d8c862
PW
76392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7640
7641 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7642 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7643 instead of print_help_for_command.
7644 (print_doc_of_command): New function.
7645 (help_list): Add 'apropos -v word' suggestion.
7646 (print_help_for_command): Style the command name using title style.
7647 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7648 (_initialize_cli_cmds): Describe -v in apropos_command help.
7649
9303eb2f
PW
76502019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7651
7652 * cli/cli-style.h (cli_style_option): Add name in constructor,
7653 add m_name class member, add constructor with intensity,
7654 add name class function.
7655 (cli_style_option::add_setshow_commands): Remove name argument.
7656 (highlight_style, title_style): New styles.
7657 * cli/cli-style.c (do_show): New function that shows a style
7658 characteristic styling the style name with itself.
7659 (set_style_name): New function.
7660 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7661 Update all callers according to the changes in cli/cli-style.h.
7662 * utils.h (fputs_highlighted): New function.
7663 * utils.c (fputs_highlighted): Likewise.
7664
e2c52041
PW
76652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7666
7667 * NEWS: Mention new pipe command and new convenience variables.
7668
947d3946
PW
76692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7670
7671 * cli/cli-cmds.c (pipe_command): New function.
7672 (_initialize_cli_cmds): Call add_com for pipe_command.
7673 Define | as an alias for pipe.
7674 (exit_status_set_internal_vars): New function.
7675 (shell_escape): Call exit_status_set_internal_vars.
7676 cli/cli-decode.c (find_command_name_length): Recognize | as
7677 a single character command.
7678
b8fd0918
PW
76792019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7680
7681 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7682 top.c (execute_command_to_ui_file): New function, mostly a copy
7683 of execute_command_to_string.
7684 (execute_command_to_string): Implement by calling
7685 execute_command_to_ui_file.
7686
68bb5386
PW
76872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7688
7689 * top.h (saved_command_line): Remove declaration.
7690 * top.c (previous_saved_command_line, previous_repeat_arguments):
7691 New variables.
7692 (saved_command_line): Make static, define together with other
7693 'repeat variables'.
7694 (dont_repeat): Clear repeat_arguments.
7695 (repeat_previous, get_saved_command_line, save_command_line):
7696 New functions.
7697 (gdb_init): Initialize saved_command_line
7698 and previous_saved_command_line.
7699 * main.c (captured_main_1): Remove saved_command_line initialization.
7700 * event-top.c (handle_line_of_input): Update to use
7701 the new 'repeat' related functions instead of direct access to
7702 saved_command_line.
7703 * command.h (repeat_previous, get_saved_command_line,
7704 save_command_line): New declarations.
7705 (dont_repeat): Add comment.
7706
bfcdb852
TT
77072019-05-30 Tom Tromey <tromey@adacore.com>
7708
7709 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7710 Fix comment.
7711 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7712
0ef209f2
JV
77132019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7714
7715 PR cli/24587
7716 * completer.c (complete): Initialize variable word.
7717
955b06fa
SDJ
77182019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7719
7720 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7721 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7722 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7723 'body' is NULL to the outter 'if', protecting the '!is_define'
7724 situation as well.
7725
fa9c3fa0
TT
77262019-05-29 Tom Tromey <tromey@adacore.com>
7727
7728 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7729 (dwarf_unknown): New function.
7730 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7731 (dwarf_type_encoding_name): Use dwarf_unknown.
7732
4330d61d
TT
77332019-05-29 Tom Tromey <tromey@adacore.com>
7734
7735 PR c++/20020:
7736 * cp-valprint.c (cp_print_value_fields): Call
7737 cp_print_static_field inside "try".
7738
33a6bc35
TT
77392019-05-29 Tom Tromey <tromey@adacore.com>
7740
7741 * inflow.c (struct terminal_info): Add default operator=.
7742 * configure: Rebuild.
7743 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7744 -Wdeprecated-copy-dtor, -Wredundant-move.
7745
000439d5
TT
77462019-05-29 Tom Tromey <tromey@adacore.com>
7747
7748 * NEWS: Add entry.
7749 * infcmd.c (print_return_value_1): Handle finish_print
7750 option.
7751 (show_print_finish): New function.
7752 (_initialize_infcmd): Add "set/show print finish" commands.
7753 * valprint.c (user_print_options): Initialize new member.
7754 * valprint.h (struct value_print_options) <finish_print>: New
7755 member.
7756
c0e70c62
TT
77572019-05-28 Tom Tromey <tromey@adacore.com>
7758
7759 * ada-lang.c (ada_remove_Xbn_suffix)
7760 (find_old_style_renaming_symbol)
7761 (parse_old_style_renaming): Remove.
7762 (ada_find_renaming_symbol): Don't call
7763 find_old_style_renaming_symbol.
7764 (ada_is_renaming_symbol): Rename from
7765 ada_find_renaming_symbol. Remove "block" parameter. Return
7766 bool. Now static.
7767 (ada_read_var_value): Update and simplify.
7768 * ada-exp.y (write_var_or_type): Remove old code.
7769
766f8836
AH
77702019-05-28 Alan Hayward <alan.hayward@arm.com>
7771
68255adc 7772 PR gdb/25010
766f8836
AH
7773 * event-top.c: Remove include comment.
7774 * inflow.c (class scoped_ignore_sigttou): Move from here...
7775 * inflow.h (class scoped_ignore_sigttou): ...to here.
7776 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7777 * top.c: Remove include comment.
7778
eb41253a
TT
77792019-05-27 Tom Tromey <tom@tromey.com>
7780
7781 * NEWS: Fix typo.
7782
4ca51187
TT
77832019-05-22 Tom Tromey <tromey@adacore.com>
7784
7785 * target.c (target_follow_exec): Constify parameter.
7786 * target-delegates.c: Rebuild.
7787 * remote.c (remote_target::follow_exec): Constify parameter.
7788 * infrun.c (follow_exec): Constify parameter.
7789 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7790 (target_follow_exec): Likewise.
7791
8fca4da0
AH
77922019-05-22 Alan Hayward <alan.hayward@arm.com>
7793
7794 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7795 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7796
b7060614
AH
77972019-05-22 Alan Hayward <alan.hayward@arm.com>
7798
7799 * NEWS: Add debugredirect and testsuite sections.
7800
0a5954bd
SC
78012019-05-22 Simon Cook <simon.cook@embecosm.com>
7802
7803 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7804 target descriptions using exclusively floating point register name
7805 aliases.
7806
dc42e902
AB
78072019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7808
7809 PR gdb/18644:
7810 * f-lang.c (build_fortran_types): Handle the case where
7811 gdbarch_floatformat_for_type returns a nullptr.
7812
fb7806c7
TV
78132019-05-21 Tom de Vries <tdevries@suse.de>
7814
7815 PR cli/24587
7816 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7817
34d11c68
AB
78182019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 PR gdb/18644:
7821 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7822 16-byte floats.
7823 * i386-tdep.c (i386_floatformat_for_type): Use
7824 floatformats_ia64_quad for the 16-byte floating point component
7825 within a fortran 32-byte complex number.
7826
122cf0f2
AB
78272019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7828
7829 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7830 delete default constructor.
7831 (find_partial_die): Update to return const struct.
7832 (partial_die_parent_scope): Move variable declaration into scope
7833 of its use and change its type to auto.
7834 (guess_partial_die_structure_name): Likewise.
7835 (partial_die_info::fixup): Likewise.
7836
33d0e35a
TT
78372019-05-17 Tom Tromey <tromey@adacore.com>
7838
7839 * source.c (find_and_open_source): Remove cast.
7840
a45575b0
TT
78412019-05-17 Tom Tromey <tromey@adacore.com>
7842
7843 * annotate.c (annotate_source): Make "filename" const.
7844 * annotate.h (annotate_source): Use const.
7845
81f47ac2
AH
78462019-05-17 Alan Hayward <alan.hayward@arm.com>
7847
7848 * disasm.c (set_disassembler_options): Send errors to stderr.
7849
ca1285d1
AH
78502019-05-17 Alan Hayward <alan.hayward@arm.com>
7851
7852 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7853 (cli_interp_base::set_logging): Check debug_redirect.
7854 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7855 * cli/cli-logging.c (debug_redirect): Add static variable.
7856 (pop_output_files): Add default param.
7857 (handle_redirections): Print debug setting.
7858 (show_logging_command): Likewise.
7859 (_initialize_cli_logging): Add debugredirect command.
7860 * interps.c (current_interp_set_logging): Add debug_redirect
7861 parameter.
7862 * interps.h (set_logging): Add debug_redirect parameter.
7863 (current_interp_set_logging): Likewise.
7864 * mi/mi-common.h: Likewise.
7865 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7866
78672019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7868 Tom Tromey <tromey@adacore.com>
7869
7870 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7871 directly.
7872 * cli/cli-interp.h (make_logging_output): Remove declaration.
7873 * cli/cli-logging.c (make_logging_output): Remove function.
7874 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7875 directly.
7876 * ui-file.c (tee_file::tee_file): Remove bools.
7877 (tee_file::~tee_file): Remove deletes.
7878 * ui-file.h (tee_file): Remove bools.
7879
26648588
JV
78802019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7881
7882 * mi/mi-cmds.h (mi_cmd_complete): New function.
7883 * mi/mi-main.c (mi_cmd_complete): Likewise.
7884 * mi/mi-cmds.c: Define new MI command -complete.
7885 * NEWS: Mention new -complete command.
7886
6e035501
JV
78872019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7888
7889 * completer.h (complete): New function.
7890 * completer.c (complete): Likewise.
7891 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7892 function defined in completer.h.
7893
7d0e2ece
JV
78942019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7895
e79be6e5 7896 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7897
fb816e8b
TV
78982019-05-17 Tom de Vries <tdevries@suse.de>
7899
7900 PR gdb/24094
7901 * dwarf2read.c (struct cu_partial_die_info): New struct.
7902 (find_partial_die): Return cu_partial_die_info.
7903 (partial_die_parent_scope, guess_partial_die_structure_name)
7904 (partial_die_info::fixup): Handle new return type of find_partial_die.
7905
677052f2
SDJ
79062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7907
a1726c38 7908 PR breakpoints/24541
677052f2
SDJ
7909 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7910 "std::string", simplifying the algorithm.
7911
f3da9116
SDJ
79122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7913
7914 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7915 (stap_static_probe_ops::get_probes): Likewise.
7916
f1bb75ab
SDJ
79172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7918
7919 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7920 '-')" and "else if".
7921 (stap_parse_single_operand): Join checks for
7922 "gdbarch_stap_parse_special_token_p" and
7923 "gdbarch_stap_parse_special_token" in the same "if" statement.
7924 Invert check when verifying for operation on register
7925 displacement.
7926
3ca58cde
SDJ
79272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7928
7929 * stap-probe.c (stap_get_opcode): Update comment.
7930 (stap_get_expected_argument_type): Likewise.
7931 (handle_stap_probe): Likewise.
7932
af2d9bee
SDJ
79332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7934
7935 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7936 return type to 'bool'. Adjust comment. Use 'bool' when
7937 appropriate.
7938 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7939 * stap-probe.c (stap_parse_argument_1): Likewise.
7940 (stap_is_operator): Likewise.
7941 (stap_is_generic_prefix): Likewise.
7942 (stap_is_register_prefix): Likewise.
7943 (stap_is_register_indirection_prefix): Likewise.
7944 (stap_is_integer_prefix): Likewise.
7945 (stap_generic_check_suffix): Likewise.
7946 (stap_check_integer_suffix): Likewise.
7947 (stap_check_register_suffix): Likewise.
7948 (stap_check_register_indirection_suffix): Likewise.
7949 (stap_parse_register_operand): Likewise.
7950 (stap_parse_single_operand): Likewise.
7951 (stap_parse_argument_1): Likewise.
7952 (stap_probe::get_argument_count): Likewise.
7953 (stap_is_operator): Likewise.
7954
61c9c421
TT
79552019-05-16 Tom Tromey <tromey@adacore.com>
7956
7957 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7958 keyword to foreach.
7959
9ddc1af1
SM
79602019-05-15 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * linux-thread-db.c (try_thread_db_load_1): Change return type
7963 to bool.
7964 (try_thread_db_load): Likewise.
7965 (try_thread_db_load_from_pdir_1): Likewise.
7966 (try_thread_db_load_from_pdir): Likewise.
7967 (try_thread_db_load_from_sdir): Likewise.
7968 (try_thread_db_load_from_dir): Likewise.
7969 (thread_db_load_search): Likewise.
7970 (has_libpthread): Likewise.
7971 (thread_db_load): Likewise.
7972
7bede828
SDJ
79732019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7974
7975 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7976 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7977 NULL, and complain/return if that's the case.
7978
c5358db4
JD
79792019-05-15 John Darrington <john@darrington.wattle.id.au>
7980
7981 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7982 (advance, posn, abstract_read_memory): New functions.
7983 [struct mem_read_abstraction]: New struct.
7984 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7985
c408a94f
TT
79862019-05-14 Tom Tromey <tromey@adacore.com>
7987
7988 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7989 value is not lval_memory.
7990
e7bd7fba
TT
79912019-05-14 Tom Tromey <tromey@adacore.com>
7992
7993 * solib.c (info_sharedlibrary_command): Style the file name.
7994
a6d0f249
AH
79952019-05-14 Alan Hayward <alan.hayward@arm.com>
7996
7997 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7998 (aarch64_vnv_type): Likewise.
7999 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8000 * common/tdesc.c: Likewise.
8001 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8002 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8003 * features/aarch64-fpu.xml: Add ieee half view.
8004 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8005 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8006 * gdbtypes.h (struct builtin_type): Likewise.
8007 (struct objfile_type): Likewise.
8008
66b8bb74
SM
80092019-05-12 Paul Naert <paul.naert@polymtl.ca>
8010
8011 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8012 typo.
8013 * location.h (string_to_event_location): Likewise.
8014
21c219fd
JB
80152019-05-11 Joel Brobecker <brobecker@adacore.com>
8016
8017 GDB 8.3 released.
8018
13674803
SM
80192019-05-10 Simon Marchi <simon.marchi@efficios.com>
8020
8021 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8022 New variable declaration.
8023 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8024 New variable.
8025 (print_one_breakpoint): Use ui_out::test_flags and new global
8026 variable to compute use_fixed_output.
8027 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8028 Remove.
8029 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8030 (mi_multi_location_breakpoint_output_fixed): Remove.
8031 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8032 new variable.
8033 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8034 fix_multi_location_breakpoint_output flag if version >= 3.
8035 * ui-out.h (enum ui_out_flag)
8036 <fix_multi_location_breakpoint_output>: New enumerator.
8037
a9eac7f9
SM
80382019-05-10 Simon Marchi <simon.marchi@efficios.com>
8039
8040 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8041
71bed2db
TT
80422019-05-10 Tom Tromey <tromey@adacore.com>
8043
8044 * ada-lang.c (catch_ada_completer): New function.
8045 (_initialize_ada_language): Use it.
8046
24c54127
TT
80472019-05-10 Tom Tromey <tromey@adacore.com>
8048
8049 * thread.c (print_thread_info): Make "requested_threads" const.
8050 * gdbthread.h (print_thread_info): Make "requested_threads"
8051 const.
8052 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8053 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8054
7a102139
TT
80552019-05-08 Tom Tromey <tom@tromey.com>
8056
8057 * gdbtypes.c (objfile_type_data): Change type.
8058 (objfile_type, _initialize_gdbtypes): Update.
8059
924d79e2
TT
80602019-05-08 Tom Tromey <tom@tromey.com>
8061
8062 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8063 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8064 (_initialize_dwarf2_frame): Update.
8065
4c58e337
TT
80662019-05-08 Tom Tromey <tom@tromey.com>
8067
8068 * objc-lang.c (objc_objfile_data): Change type.
8069 (find_methods): Update.
8070 (_initialize_objc_lang): Remove.
8071
d772d2ab
TT
80722019-05-08 Tom Tromey <tom@tromey.com>
8073
8074 * stabsread.c (rs6000_builtin_type_data): Change type.
8075 (rs6000_builtin_type, _initialize_stabsread): Update.
8076
d11d83f4
TT
80772019-05-08 Tom Tromey <tom@tromey.com>
8078
8079 * mips-tdep.c (mips_pdr_data): Remove.
8080 (_initialize_mips_tdep): Update.
8081
9a73f0ad
TT
80822019-05-08 Tom Tromey <tom@tromey.com>
8083
8084 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8085 (hppa_init_objfile_priv_data, read_unwind_info)
8086 (find_unwind_entry, _initialize_hppa_tdep): Update.
8087
8127a2fa
TT
80882019-05-08 Tom Tromey <tom@tromey.com>
8089
8090 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8091 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8092 on obstack.
8093 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8094
91d3055d
TT
80952019-05-08 Tom Tromey <tom@tromey.com>
8096
8097 * mdebugread.c (basic_type_data): Change type.
8098 (basic_type, _initialize_mdebugread): Update.
8099
31930bd3
TT
81002019-05-08 Tom Tromey <tom@tromey.com>
8101
8102 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8103
bdb3ed9e
TT
81042019-05-08 Tom Tromey <tom@tromey.com>
8105
8106 * nto-tdep.c (nto_inferior_data_reg): Change type.
8107 (nto_inferior_data): Update.
8108 (nto_inferior_data_cleanup, nto_new_inferior_data)
8109 (_initialize_nto_tdep): Remove.
8110 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8111
f37b313d
TT
81122019-05-08 Tom Tromey <tom@tromey.com>
8113
8114 * ada-lang.c (struct ada_inferior_data): Add initializers.
8115 (ada_inferior_data): Change type.
8116 (ada_inferior_data_cleanup): Remove.
8117 (get_ada_inferior_data, ada_inferior_exit)
8118 (struct ada_pspace_data): Add initializers, destructor.
8119 (ada_pspace_data_handle): Change type.
8120 (get_ada_pspace_data): Update.
8121 (ada_pspace_data_cleanup): Remove.
8122
24699405
TT
81232019-05-08 Tom Tromey <tom@tromey.com>
8124
8125 * coffread.c (struct coff_symfile_info): Add initializers.
8126 (coff_objfile_data_key): Move lower. Change type.
8127 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8128 Update.
8129 (coff_free_info): Remove.
8130
d4e05d2f
TT
81312019-05-08 Tom Tromey <tom@tromey.com>
8132
8133 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8134 (fbsd_pspace_data_handle): Move lower. Change type.
8135 (get_fbsd_pspace_data): Update.
8136 (fbsd_pspace_data_cleanup): Remove.
8137 (_initialize_fbsd_tdep): Update.
8138
14ef6690
TT
81392019-05-08 Tom Tromey <tom@tromey.com>
8140
8141 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8142 (get_ada_tasks_pspace_data): Update.
8143 (ada_tasks_pspace_data_cleanup): Remove.
8144 (_initialize_tasks): Update.
8145 (ada_tasks_inferior_data_handle): Change type.
8146 (get_ada_tasks_inferior_data): Update.
8147 (ada_tasks_inferior_data_cleanup): Remove.
8148 (struct ada_tasks_pspace_data): Add initializers.
8149
814cf43a
TT
81502019-05-08 Tom Tromey <tom@tromey.com>
8151
8152 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8153 * symfile-debug.c (debug_sym_get_probes): Change type.
8154 * stap-probe.c (handle_stap_probe):
8155 (stap_static_probe_ops::get_probes): Change type.
8156 * probe.h (class static_probe_ops) <get_probes>: Change type.
8157 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8158 (parse_probes_in_pspace): Update.
8159 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8160 Update.
8161 (any_static_probe_ops::get_probes): Change type.
8162 * elfread.c (elfread_data): New typedef.
8163 (probe_key): Change type.
8164 (elf_get_probes): Likewise. Update.
8165 (probe_key_free): Remove.
8166 (_initialize_elfread): Update.
8167 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8168 Change type.
8169 (dtrace_process_dof_probe, dtrace_process_dof)
8170 (dtrace_static_probe_ops::get_probe): Change type.
8171
02dc647e
TT
81722019-05-08 Tom Tromey <tom@tromey.com>
8173
8174 * xcoffread.c (struct xcoff_symfile_info): Rename from
8175 coff_symfile_info. Add initializers.
8176 (xcoff_objfile_data_key): Move lower. Change type.
8177 (XCOFF_DATA): Rewrite.
8178 (xcoff_free_info): Remove.
8179 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8180 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8181 (xcoff_initial_scan): Update.
8182
09232438
TT
81832019-05-08 Tom Tromey <tom@tromey.com>
8184
8185 * solib-svr4.c (struct svr4_info): Add initializers and
8186 destructor.
8187 <probes_table>: Now an htab_up.
8188 (solib_svr4_pspace_data): Change type.
8189 (free_probes_table): Simplify.
8190 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8191 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8192 (probes_table_remove_objfile_probes, register_solib_event_probe)
8193 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8194 (_initialize_svr4_solib): Update.
8195
7b4a314f
TT
81962019-05-08 Tom Tromey <tom@tromey.com>
8197
8198 * remote.c (remote_pspace_data): Change type.
8199 (remote_pspace_data_cleanup): Remove.
8200 (get_remote_exec_file, set_pspace_remote_exec_file)
8201 (_initialize_remote): Update.
8202
51d3063a
TT
82032019-05-08 Tom Tromey <tom@tromey.com>
8204
8205 * breakpoint.c (breakpoint_objfile_key): Change type.
8206 (get_breakpoint_objfile_data): Update.
8207 (free_breakpoint_objfile_data): Remove.
8208 (_initialize_breakpoint): Update.
8209
89fb8848
TT
82102019-05-08 Tom Tromey <tom@tromey.com>
8211
8212 * linux-tdep.c (struct linux_info): Add initializers.
8213 (linux_inferior_data): Move. Change type.
8214 (invalidate_linux_cache_inf): Update.
8215 (linux_inferior_data_cleanup): Remove.
8216 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8217
e9b89e2d
TT
82182019-05-08 Tom Tromey <tom@tromey.com>
8219
8220 * auxv.c (auxv_inferior_data): Move. Change type.
8221 (auxv_inferior_data_cleanup): Remove.
8222 (invalidate_auxv_cache_inf): Rewrite.
8223 (get_auxv_inferior_data, _initialize_auxv): Update.
8224
8c42777c
TT
82252019-05-08 Tom Tromey <tom@tromey.com>
8226
8227 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8228 (symfile_debug_objfile_data_key): Change type.
8229 (symfile_debug_installed, debug_qf_has_symbols)
8230 (debug_qf_find_last_source_symtab)
8231 (debug_qf_forget_cached_source_info)
8232 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8233 (debug_qf_print_stats, debug_qf_dump)
8234 (debug_qf_expand_symtabs_for_function)
8235 (debug_qf_expand_all_symtabs)
8236 (debug_qf_expand_symtabs_with_fullname)
8237 (debug_qf_map_matching_symbols)
8238 (debug_qf_expand_symtabs_matching)
8239 (debug_qf_find_pc_sect_compunit_symtab)
8240 (debug_qf_map_symbol_filenames)
8241 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8242 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8243 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8244 (debug_sym_read_linetable, debug_sym_relocate): Update.
8245 (symfile_debug_free_objfile): Remove.
8246 (install_symfile_debug_logging, _initialize_symfile_debug):
8247 Update.
8248
5bfd760d
TT
82492019-05-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8252 allocate_on_obstack.
8253 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8254 (get_dwarf2_per_objfile): Update.
8255 (set_dwarf2_per_objfile): Remove.
8256 (dwarf2_has_info, dwarf2_get_section_info): Update.
8257 (dwarf2_free_objfile): Remove.
8258 (_initialize_dwarf2_read): Update.
8259
e85e19b4
TT
82602019-05-08 Tom Tromey <tom@tromey.com>
8261
8262 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8263 initializers.
8264 <unsupported_script_warning_printed,
8265 script_not_found_warning_printed>: Now bool.
8266 (auto_load_pspace_data): Change type.
8267 (~auto_load_pspace_info): Rename from
8268 auto_load_pspace_data_cleanup.
8269 (get_auto_load_pspace_data, init_loaded_scripts_info)
8270 (clear_section_scripts, maybe_print_unsupported_script_warning)
8271 (maybe_print_script_not_found_warning, _initialize_auto_load):
8272 Update.
8273
f6aa7436
TT
82742019-05-08 Tom Tromey <tom@tromey.com>
8275
8276 * objfiles.c (objfile_pspace_info): Add destructor and
8277 initializers.
8278 (objfiles_pspace_data): Change type.
8279 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8280 (get_objfile_pspace_data): Update.
8281 (objfiles_bfd_data): Change type.
8282 (get_objfile_bfd_data): Update.
8283 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8284
6ae614f6
TT
82852019-05-08 Tom Tromey <tom@tromey.com>
8286
8287 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8288 Change type.
8289 (get_catch_syscall_inferior_data): Update.
8290 (catch_syscall_inferior_data_cleanup): Remove.
8291 (_initialize_break_catch_syscall): Update.
8292
6509b8eb
TT
82932019-05-08 Tom Tromey <tom@tromey.com>
8294
8295 * inflow.c (struct terminal_info): Add destructor and
8296 initializers.
8297 (inflow_inferior_data): Change type.
8298 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8299 (get_inflow_inferior_data, inflow_inferior_exit)
8300 (swap_terminal_info, _initialize_inflow): Update.
8301
35632941
TT
83022019-05-08 Tom Tromey <tom@tromey.com>
8303
8304 * target-dcache.c (target_dcache_cleanup): Remove.
8305 (target_dcache_aspace_key): Change type.
8306 (target_dcache_init_p, target_dcache_invalidate)
8307 (target_dcache_get, target_dcache_get_or_init)
8308 (_initialize_target_dcache): Update.
8309 * dcache.h (struct dcache_deleter): New.
8310
3017b94d
TT
83112019-05-08 Tom Tromey <tom@tromey.com>
8312
8313 * symtab.c (struct symbol_cache): Add destructor and
8314 initializers.
8315 (symbol_cache_key): Move. Change type.
8316 (make_symbol_cache, free_symbol_cache): Remove.
8317 (get_symbol_cache): Update.
8318 (symbol_cache_cleanup): Remove.
8319 (ALL_PSPACES, symbol_cache_flush)
8320 (maintenance_print_symbol_cache)
8321 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8322 Update.
8323
a32ad8c5
TT
83242019-05-08 Tom Tromey <tom@tromey.com>
8325
8326 * symtab.c (struct main_info): Add destructor and initializers.
8327 (main_progspace_key): Move. Change type.
8328 (get_main_info): Update.
8329 (main_info_cleanup): Remove.
8330 (_initialize_symtab): Update.
8331
5f6e90a0
TT
83322019-05-08 Tom Tromey <tom@tromey.com>
8333
8334 * registry.h (DECLARE_REGISTRY): Define the _key class.
8335
1bd0c6e4
AB
83362019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * NEWS: Merge two 'New commands' sections.
8339
2228ef77
XR
83402019-05-08 Joel Brobecker <brobecker@adacore.com>
8341
8342 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8343 parameter and use Ada language definition instead.
8344 (ada_val_print_ptr): Remove unused language parameter.
8345 (ada_val_print_num): Remove language parameter and use Ada language
8346 definition instead.
8347 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8348 parameter.
8349 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8350 parameter and use Ada language definition instead.
8351 (ada_val_print_1): Update all ada_val_print_xxx calls.
8352 Remove language parameter.
8353 (ada_val_print): Update ada_val_print_1 call.
8354
60fcc1c3
TT
83552019-05-08 Tom Tromey <tromey@adacore.com>
8356
8357 * remote.c (remote_hw_watchpoint_limit)
8358 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8359 Now static.
8360
ed2b7c17
TT
83612019-05-08 Tom Tromey <tromey@adacore.com>
8362
8363 * maint.c (_initialize_maint_cmds): Move initialization code to
8364 remote.c.
8365 (watchdog, show_watchdog): Move to remote.c.
8366 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8367 "watchdog" static.
8368 (_initialize_remote): Move initialization code from maint.c.
8369 * defs.h (watchdog): Don't declare.
8370
b0be6c91
TT
83712019-05-08 Tom Tromey <tromey@adacore.com>
8372
8373 * tui/tui-interp.c: Include main.h.
8374 * interps.c: Include main.h.
8375 * main.h (interpreter_p): Declare.
8376 * defs.h (interpreter_p): Don't declare.
8377
587ee17b
TT
83782019-05-08 Tom Tromey <tromey@adacore.com>
8379
8380 * dwarf2loc.c: Include dwarf2read.h.
8381 * defs.h (read_unsigned_leb128): Don't declare.
8382 * dwarf2read.h (read_unsigned_leb128): Declare.
8383
ca1df239
TT
83842019-05-08 Tom Tromey <tromey@adacore.com>
8385
8386 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8387 method.
8388
99f20f08
TT
83892019-05-08 Tom Tromey <tromey@adacore.com>
8390
8391 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8392 when no wrap column is set.
8393
80e55b13
TT
83942019-05-08 Tom Tromey <tromey@adacore.com>
8395
8396 * c-lang.c (c_get_string): Handle non-C-style arrays.
8397
9d3421af
TT
83982019-05-08 Tom Tromey <tromey@adacore.com>
8399
8400 * typeprint.c (print_offset_data::update): Print the bit offset,
8401 not the number of bits remaining.
8402
844333e2
TT
84032019-05-08 Tom Tromey <tromey@adacore.com>
8404
8405 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8406 padding at end of comment.
8407
988915ee
TT
84082019-05-08 Tom Tromey <tromey@adacore.com>
8409
8410 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8411 Compare main types.
8412
26bfd823
TT
84132019-05-06 Tom Tromey <tom@tromey.com>
8414
8415 * common/scoped_mmap.c: Include common-defs.h.
8416 * common/scoped_mmap.h: Don't include config.h.
8417
89055eaa
TT
84182019-05-04 Tom Tromey <tom@tromey.com>
8419
8420 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8421 (struct aarch64_call_info): Add initializers.
8422 <si>: Now a std::vector.
8423 (pass_on_stack, aarch64_push_dummy_call): Update.
8424
5da01df5
TT
84252019-05-04 Simon Marchi <simon.marchi@efficios.com>
8426 Tom Tromey <tom@tromey.com>
8427
8428 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8429 (ppc_threads): Now a std::vector. Now static.
8430 (hwdebug_find_thread_points_by_tid)
8431 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8432 Update.
8433
fbdf05a1
TT
84342019-05-04 Tom Tromey <tom@tromey.com>
8435
8436 * arc-tdep.c (arc_tdesc_init): Return bool.
8437
06d16ec9
TT
84382019-05-04 Tom Tromey <tom@tromey.com>
8439
8440 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8441 Use gdb_assert_not_reached.
8442
9c056022
TT
84432019-05-04 Tom Tromey <tom@tromey.com>
8444
8445 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8446 "false".
8447
fa9c2a59
TT
84482019-05-04 Tom Tromey <tom@tromey.com>
8449
8450 * arc-tdep.c (arc_tdesc_init): Use bool.
8451
e2eb806a
TT
84522019-05-04 Tom Tromey <tom@tromey.com>
8453
8454 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8455
6fe87677
TT
84562019-05-04 Tom Tromey <tom@tromey.com>
8457
8458 * cli/cli-cmds.c (valid_command_p): Return bool.
8459
7f008c9e
TT
84602019-05-04 Tom Tromey <tom@tromey.com>
8461
8462 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8463 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8464
b6484282
RT
84652019-05-04 Raul Tambre <raul@tambre.ee>
8466
8467 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8468 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8469 operator for comparison.
8470
af97b416
TT
84712019-05-04 Tom Tromey <tom@tromey.com>
8472
8473 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8474 (lookup_partial_symbol, print_partial_symbols)
8475 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8476 (psymbol_compare): Update.
8477 (add_psymbol_to_bcache): Clear the entire psymbol.
8478 (maintenance_check_psymtabs): Update.
8479 * psympriv.h (struct partial_symbol): Don't derive from
8480 general_symbol_info.
8481 <obj_section, unrelocated_address, address,
8482 set_unrelocated_address>: Update.
8483 <ginfo>: New member.
8484 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8485 (debug_names::write_psymbols): Update.
8486
9d6d4be8
TV
84872019-05-04 Tom de Vries <tdevries@suse.de>
8488
8489 * contrib/cc-with-tweaks.sh: Support -n arg.
8490
66452beb
PW
84912019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8492
8493 * corelow.c (core_target::detach): Ensure frame cache and
8494 register caches are cleared.
8495 inferior.c (exit_inferior_1): Likewise.
8496
bde09ab7
TT
84972019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8498 Tom Tromey <tom@tromey.com>
8499
8500 * dictionary.c (collate_pending_symbols_by_language): Remove
8501 "struct" from foreach.
8502 * symtab.c (lookup_global_symbol_from_objfile)
8503 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8504 foreach.
8505 * ser-tcp.c (net_open): Remove "struct" from foreach.
8506 * objfiles.c (objfile_relocate, objfile_rebase)
8507 (objfile_has_symbols): Remove "struct" from foreach.
8508 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8509 from foreach.
8510 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8511 foreach.
8512 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8513 "struct" from foreach.
8514 * ada-lang.c (create_excep_cond_exprs)
8515 (ada_exception_catchpoint_cond_string): Remove "struct" from
8516 foreach.
8517
222a8d25
TT
85182019-05-03 Tom Tromey <tromey@adacore.com>
8519
8520 * ada-exp.y (convert_char_literal): Check suffix of each
8521 enumerator.
8522
fcd60b84
DP
85232019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8524
8525 PR ada/21406:
8526 * ada-exp.y (yywrap): Don't define.
8527 * ada-lex.l (%option): Add noyywrap
8528 (yywrap): Remove.
8529
5f2459c2
EZ
85302019-05-03 Eli Zaretskii <eliz@gnu.org>
8531
353ea2d1
EZ
8532 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8533 _WIN32_WINNT to the XP level, unless already defined to a higher
8534 level.
8535
8536 * unittests/parse-connection-spec-selftests.c:
8537 * ser-tcp.c:
8538 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8539 override.
8540
5f2459c2
EZ
8541 * symfile.c (find_separate_debug_file): Remove colon from the
8542 drive spec of DOS/Windows file names of the target, so that the
8543 file name produced from DEBUGDIR and the target's directory will
8544 be valid on DOS/Windows systems.
8545
80062eb9
AB
85462019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * rust-lang.c (val_print_struct): Handle printing structures
8549 containing strings.
8550
b8c05e85
TT
85512019-05-02 Tom Tromey <tromey@adacore.com>
8552
8553 * valarith.c (_initialize_valarith): Remove.
8554
4504bbde
TT
85552019-05-01 Tom Tromey <tromey@adacore.com>
8556
8557 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8558 bitfields.
8559
d48e62f4
TT
85602019-05-01 Tom Tromey <tromey@adacore.com>
8561
8562 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8563 for big-endian copies.
8564
15f18d14
AT
85652019-04-30 Ali Tamur <tamur@google.com>
8566 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8567 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8568 (read_3_bytes): New function.
8569
ab4ee614
JB
85702019-04-30 Joel Brobecker <brobecker@adacore.com>
8571
8572 * windows-nat.c (main_thread_id): Delete.
8573 (handle_output_debug_string): Replace main_thread_id by
8574 current_event.dwThreadId.
8575 (fake_create_process): Likewise.
8576 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8577 Do not set main_thread_id.
8578 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8579 current_event.dwThreadId.
8580 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8581
8ed5b76e
JB
85822019-04-30 Joel Brobecker <brobecker@adacore.com>
8583
8584 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8585 Use current_event.dwThreadId instead of main_thread_id.
8586
2ff0a947
TT
85872019-04-30 Tom Tromey <tromey@adacore.com>
8588
8589 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8590 (create_excep_cond_exprs): Iterate over program spaces.
8591 (ada_exception_catchpoint_cond_string): Examine all minimal
8592 symbols for exception types.
8593
a776957c
TT
85942019-04-30 Tom Tromey <tromey@adacore.com>
8595
8596 PR c++/24470:
8597 * dwarf2read.c (process_structure_scope): Handle case where type
8598 has template parameters but no symbol was created.
8599
bc68014d
AB
86002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8601 Chris January <chris.january@arm.com>
8602
8603 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8604 qualifier.
8605 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8606
f1fdc960
AB
86072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8608
8609 * f-typeprint.c (f_print_type): Update rules for printing
8610 whitespace.
8611 (f_type_print_varspec_suffix): Likewise.
8612
bf7a4de1
AB
86132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8614 Chris January <chris.january@arm.com>
8615
8616 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8617 function arguments.
8618
bbe75b9d
AB
86192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 * f-lang.c (build_fortran_types): Change name of void type to
8622 lower case.
8623 * f-typeprint.c (f_type_print_base): Print the name of the void
8624 type, rather than a fixed string.
8625 * f-valprint.c (f_decorations): Use lower case void string.
8626
1db455a7
AB
86272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8628 Chris January <chris.january@arm.com>
8629
8630 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8631 types for Fortran.
8632
b6d03bb2
AB
86332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8634 Chris January <chris.january@arm.com>
8635 David Lecomber <david.lecomber@arm.com>
8636
8637 * f-exp.y (BINOP_INTRINSIC): New token.
8638 (exp): New parser rule handling BINOP_INTRINSIC.
8639 (f77_keywords): Add new builtin procedures.
8640 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8641 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8642 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8643 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8644 (print_unop_subexp_f): New function.
8645 (print_binop_subexp_f): New function.
8646 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8647 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8648 (dump_subexp_body_f): Likewise.
8649 (operator_check_f): Likewise.
8650 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8651 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8652
83228e93
AB
86532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8656 UNOP_KIND.
8657 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8658 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8659 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8660 (operator_length_f): New fuction.
8661 (print_subexp_f): New function.
8662 (op_name_f): New function.
8663 (dump_subexp_body_f): New function.
8664 (operator_check_f): New function.
8665 (exp_descriptor_f): Replace standard expression handling functions
8666 with new functions.
8667 * gdb/fortran-operator.def: New file.
8668 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8669 * gdb/std-operator.def: Remove UNOP_KIND.
8670
6fdcd7cc
AB
86712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8672
8673 * std-operator.def: Remove unbalanced, stray double quote
8674 character.
8675
2e62ab40
AB
86762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8677 Chris January <chris.january@arm.com>
8678 Daniel Everett <daniel.everett@arm.com>
8679 Nick Forrington <nick.forrington@arm.com>
8680 Richard Bunt <richard.bunt@arm.com>
8681
8682 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8683 of depth when printing anonymous structs or unions.
8684 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8685 Don't print either the top-level value, or the children if the
8686 max-depth is exceeded.
8687 (ppscm_print_children): When printing the key of a map, allow one
8688 extra level of depth.
8689 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8690 print either the top-level value, or the children if the max-depth
8691 is exceeded.
8692 (print_children): When printing the key of a map, allow one extra
8693 level of depth.
8694 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8695 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8696 (user_print_options): Initialise max_depth field.
8697 (val_print_scalar_or_string_type_p): New function.
8698 (val_print): Check to see if the max depth has been reached.
8699 (val_print_check_max_depth): Define new function.
8700 (show_print_max_depth): New function.
8701 (_initialize_valprint): Add 'print max-depth' option.
8702 * valprint.h (struct value_print_options) <max_depth>: New field.
8703 (val_print_check_max_depth): Declare new function.
8704 * NEWS: Document new feature.
8705
4be290b2
AB
87062019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8707
8708 * ada-lang.c (ada_language_defn): Initialise new field.
8709 * c-lang.c (c_is_string_type_p): New function.
8710 (c_language_defn): Initialise new field.
8711 (cplus_language_defn): Initialise new field.
8712 (asm_language_defn): Initialise new field.
8713 (minimal_language_defn): Initialise new field.
8714 * c-lang.h (c_is_string_type_p): Declare new function.
8715 * d-lang.c (d_language_defn): Initialise new field.
8716 * f-lang.c (f_is_string_type_p): New function.
8717 (f_language_defn): Initialise new field.
8718 * go-lang.c (go_is_string_type_p): New function.
8719 (go_language_defn): Initialise new field.
8720 * language.c (default_is_string_type_p): New function.
8721 (unknown_language_defn): Initialise new field.
8722 (auto_language_defn): Initialise new field.
8723 * language.h (struct language_defn) <la_is_string_type_p>: New
8724 member variable.
8725 (default_is_string_type_p): Declare new function.
8726 * m2-lang.c (m2_language_defn): Initialise new field.
8727 * objc-lang.c (objc_language_defn): Initialise new field.
8728 * opencl-lang.c (opencl_language_defn): Initialise new field.
8729 * p-lang.c (pascal_is_string_type_p): New function.
8730 (pascal_language_defn): Initialise new field.
8731 * rust-lang.c (rust_is_string_type_p): New function.
8732 (rust_language_defn): Initialise new field.
8733
721b08c6
AB
87342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8735
8736 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8737 New field.
8738 * ada-lang.c (ada_language_defn): Initialise new field.
8739 * c-lang.c (c_language_defn): Likewise.
8740 (cplus_language_defn): Likewise.
8741 (asm_language_defn): Likewise.
8742 (minimal_language_defn): Likewise.
8743 * d-lang.c (d_language_defn): Likewise.
8744 * f-lang.c (f_language_defn): Likewise.
8745 * go-lang.c (go_language_defn): Likewise.
8746 * language.c (unknown_language_defn): Likewise.
8747 (auto_language_defn): Likewise.
8748 * m2-lang.c (m2_language_defn): Likewise.
8749 * objc-lang.c (objc_language_defn): Likewise.
8750 * opencl-lang.c (opencl_language_defn): Likewise.
8751 * p-lang.c (pascal_language_defn): Likewise.
8752 * rust-lang.c (rust_language_defn): Likewise.
8753
fc913e53
AB
87542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * ada-lang.c (ada_is_character_type): Change return type to bool.
8757 (ada_is_string_type): Likewise.
8758 * ada-lang.h (ada_is_character_type): Update declaration
8759 (ada_is_string_type): Likewise.
8760
fa731fa0
PW
87612019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8762
8763 Support style in 'frame|thread apply'
8764
8765 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8766 * record.c (record_start, record_stop): Update callers of
8767 execute_command_to_string with false.
8768 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8769 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8770 methods.
8771 (class string_file): New constructor with term_out parameter.
8772 Override methods term_out and can_emit_style_escape. New member
8773 term_out.
8774 (class stdio_file): Override can_emit_style_escape.
8775 (class tee_file): Override term_out and can_emit_style_escape.
8776 * utils.h (can_emit_style_escape): Remove.
8777 * utils.c (can_emit_style_escape): Likewise.
8778 Update all callers of can_emit_style_escape (SOMESTREAM) to
8779 SOMESTREAM->can_emit_style_escape.
8780 * source-cache.c (source_cache::get_source_lines): Likewise.
8781 * stack.c (frame_apply_command_count): Call execute_command_to_string
8782 passing the term_out characteristic of the current gdb_stdout.
8783 * thread.c (thr_try_catch_cmd): Likewise.
8784 * top.c (execute_command_to_string): pass term_out parameter
8785 to construct the string_file for the command output.
8786 * ui-file.c (term_cli_styling): New function (most code moved
8787 from utils.c can_emit_style_escape).
8788 (string_file::string_file, string_file::can_emit_style_escape,
8789 stdio_file::can_emit_style_escape, tee_file::term_out,
8790 tee_file::can_emit_style_escape): New functions.
8791
136afab8
PW
87922019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793
8794 * NEWS: Mention the new set|show may-call-functions.
8795 * infcall.c (may_call_functions_p): New variable.
8796 (show_may_call_functions_p): New function.
8797 (call_function_by_hand_dummy): Throws an error if not
8798 may-call-functions.
8799 (_initialize_infcall): Call add_setshow_boolean_cmd for
8800 may-call-functions.
8801
725cbb63
KS
88022019-04-25 Keith Seitz <keiths@redhat.com>
8803
8804 PR c++/24367
8805 * cp-support.c (inspect_type): Don't attempt substitutions
8806 of symbol with the same name.
8807
3d1cbb78
TT
88082019-04-25 Tom Tromey <tromey@adacore.com>
8809
8810 PR gdb/24475:
8811 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8812 static.
8813
94aeb44b
TT
88142019-04-25 Tom Tromey <tromey@adacore.com>
8815
8816 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8817 rvalue reference.
8818 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8819 (gdb_xml_parser::parse): Use std::move.
8820 * python/python-internal.h (gdbpy_convert_exception): Take a const
8821 reference.
8822 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8823 std::move.
8824 * python/py-utils.c (gdbpy_convert_exception): Take a const
8825 reference.
8826 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8827 Use std::move.
8828 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8829 Use std::move.
8830 * mi/mi-main.c (mi_print_exception): Take a const reference.
8831 * main.c (handle_command_errors): Take a const reference.
8832 * linespec.c (parse_linespec): Use std::move.
8833 * infcall.c (run_inferior_call): Use std::move.
8834 (call_function_by_hand_dummy): Use std::move.
8835 * exec.c (try_open_exec_file): Use std::move.
8836 * exceptions.h (exception_print, exception_fprintf)
8837 (exception_print_same): Update.
8838 * exceptions.c (print_exception, exception_print)
8839 (exception_fprintf, exception_print_same): Change parameters to
8840 const reference.
8841 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8842 * common/new-op.c: Use std::move.
8843 * common/common-exceptions.h (struct gdb_exception): Add move
8844 constructor.
8845 (struct gdb_exception_error, struct gdb_exception_quit, struct
8846 gdb_quit_bad_alloc): Change constructor to move constructor.
8847 (throw_exception): Change parameter to rvalue reference.
8848 * common/common-exceptions.c (throw_exception): Take rvalue
8849 reference.
8850 * cli/cli-interp.c (safe_execute_command): Use std::move.
8851 * breakpoint.c (insert_bp_location, location_to_sals): Use
8852 std::move.
8853
680d7fd5
TT
88542019-04-25 Tom Tromey <tromey@adacore.com>
8855
8856 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8857 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8858 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8859 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8860 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8861 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8862 guile/scm-value.c: Use unpack.
8863 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8864 gdbscm_gdb_exception.
8865 (gdbscm_throw_gdb_exception): Likewise.
8866 (struct gdbscm_gdb_exception): New.
8867 (unpack): New function.
8868 (gdbscm_wrap): Use unpack.
8869
c6fdd8b2
TT
88702019-04-25 Tom Tromey <tromey@adacore.com>
8871
8872 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8873 (gdb_rl_callback_handler): Use std::move.
8874 * common/common-exceptions.h (struct gdb_exception): Add move
8875 assignment operator.
8876 (throw_exception_sjlj): Change "exception" to const reference.
8877 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8878 (throw_exception_sjlj): Change "exception" to const reference.
8879
cc06b668
TT
88802019-04-25 Tom Tromey <tromey@adacore.com>
8881
8882 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8883 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8884 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8885 Update.
8886 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8887 Update.
8888 * mi/mi-interp.c (mi_interp::exec): Update.
8889 * linespec.c (parse_linespec): Update.
8890 * infcall.c (run_inferior_call): Update.
8891 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8892 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8893 (gdbscm_lookup_global_symbol): Update.
8894 * guile/scm-param.c (gdbscm_parameter_value): Update.
8895 * guile/scm-frame.c (gdbscm_frame_read_register)
8896 (gdbscm_frame_read_var): Update.
8897 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8898 * exec.c (try_open_exec_file): Update.
8899 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8900 (gdb_rl_callback_handler): Update.
8901 * common/common-exceptions.h (exception_none): Don't declare.
8902 * common/common-exceptions.c (exception_none): Don't define.
8903 (struct catcher) <exception>: Update.
8904 * cli/cli-interp.c (safe_execute_command): Update.
8905 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8906
cf532bd1
AT
89072019-04-25 Ali Tamur <tamur@google.com>
8908
8909 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8910 (read_attribute_value): Likewise.
8911 (dwarf2_read_addr_index): Update comment.
8912 (read_str_index): Add DW_FORM_strx.
8913 (dwarf2_string_attr): Likewise.
8914 (dwarf2_const_value_attr): Likewise.
8915 (dump_die_shallow): Likewise.
8916 (dwarf2_fetch_constant_bytes): Likewise.
8917 (skip_form_bytes): Likewise.
8918 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8919
82433e3e
SDJ
89202019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8921
8922 PR corefiles/11608
8923 PR corefiles/18187
8924 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8925 OFFSET. Verify if current mapping contains an ELF header.
8926 (linux_find_memory_regions_full): Adjust call to
8927 dump_mapping_p.
8928
723adb65
SL
89292019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8930 Kang Li <kanglictf@gmail.com>
8931
8932 PR gdb/21600
8933
8934 * dwarf2-frame.c (read_initial_length): Be consistent about using
8935 unsigned representation of length.
8936 (decode_frame_entry_1): Likewise. Check for wraparound of
8937 end pointer as well as buffer overflow.
8938
596179f7
SDJ
89392019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8940
8941 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8942 "vq".
8943
a59240a4
TT
89442019-04-24 Tom Tromey <tromey@adacore.com>
8945
8946 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8947
f872fdbb
AB
89482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8949
8950 * s12z-tdep.c (s12z_unwind_pc): Delete.
8951 (s12z_unwind_sp): Delete.
8952 (s12z_gdbarch_init): Don't register deleted functions with
8953 gdbarch.
8954
b614e6f3
AB
89552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8956
8957 * rl78-tdep.c (rl78_unwind_sp): Delete.
8958 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8959
14faed38
AB
89602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8961
8962 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8963 (xstormy16_unwind_pc): Delete.
8964 (xstormy16_dummy_id): Delete.
8965 (xstormy16_gdbarch_init): Don't register deleted functions with
8966 gdbarch.
8967
541aad8a
AB
89682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8969
8970 * vax-tdep.c (vax_unwind_pc): Delete.
8971 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8972
29222070
AB
89732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * v850-tdep.c (v850_unwind_sp): Delete.
8976 (v850_unwind_pc): Delete.
8977 (v850_dummy_id): Delete.
8978 (v850_gdbarch_init): Don't register deleted functions with
8979 gdbarch.
8980
0f534d76
AB
89812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8982
8983 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8984 (tilegx_unwind_pc): Delete.
8985 (tilegx_unwind_dummy_id): Delete.
8986 (tilegx_gdbarch_init): Don't register deleted functions with
8987 gdbarch.
8988
1ba7b7f9
AB
89892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8992 (tic6x_dummy_id): Delete.
8993 (tic6x_gdbarch_init): Don't register deleted functions with
8994 gdbarch.
8995
d31f262c
AB
89962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * sparc-tdep.c (sparc_unwind_pc): Delete.
8999 (sparc32_gdbarch_init): Don't register deleted function with
9000 gdbarch.
9001
6d14d64d
AB
90022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9003
9004 * sh-tdep.c (sh_unwind_sp): Delete.
9005 (sh_unwind_pc): Delete.
9006 (sh_dummy_id): Delete.
9007 (sh_gdbarch_init): Don't register deleted functions with
9008 gdbarch.
9009
a40dde9d
AB
90102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * score-tdep.c (score_unwind_sp): Delete.
9013 (score_unwind_pc): Delete.
9014 (score_dummy_id): Delete.
9015 (score_gdbarch_init): Don't register deleted functions with
9016 gdbarch.
9017
47c47d69
AB
90182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9019
9020 * rx-tdep.c (rx_unwind_pc): Delete.
9021 (rx_unwind_sp): Delete.
9022 (rx_dummy_id): Delete.
9023 (rx_gdbarch_init): Don't register deleted functions with
9024 gdbarch. Update comment.
9025
833a4480
AB
90262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9027
9028 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9029 (rs6000_dummy_id): Delete.
9030 (rs6000_gdbarch_init): Don't register deleted functions with
9031 gdbarch.
9032
3f2cef49
AB
90332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9034
9035 * or1k-tdep.c (or1k_dummy_id): Delete.
9036 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9037
96acf884
AB
90382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * nios2-tdep.c (nios2_dummy_id): Delete.
9041 (nios2_unwind_sp): Delete.
9042 (nios2_gdbarch_init): Don't register deleted functions with
9043 gdbarch.
9044
ca0ab0aa
AB
90452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * nds32-tdep.c (nds32_dummy_id): Delete.
9048 (nds32_unwind_pc): Delete.
9049 (nds32_unwind_sp): Delete.
9050 (nds32_gdbarch_init): Don't register deleted functions with
9051 gdbarch.
9052
c8259044
AB
90532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9054
9055 * msp430-tdep.c (msp430_unwind_pc): Delete.
9056 (msp430_unwind_sp): Delete.
9057 (msp430_dummy_id): Delete.
9058 (msp430_gdbarch_init): Don't register deleted functions with
9059 gdbarch.
9060
27f113c8
AB
90612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9062
9063 * moxie-tdep.c (moxie_unwind_sp): Delete.
9064 (moxie_unwind_pc): Delete.
9065 (moxie_dummy_id): Delete.
9066 (moxie_gdbarch_init): Don't register deleted functions with
9067 gdbarch.
9068
aee6c3cd
AB
90692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9072 (mn10300_unwind_pc): Delete.
9073 (mn10300_unwind_sp): Delete.
9074 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9075 mn10300_unwind_sp.
9076 (mn10300_frame_unwind_init): Don't register deleted functions with
9077 gdbarch.
9078
8e2b5aea
AB
90792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * mep-tdep.c (mep_unwind_pc): Delete.
9082 (mep_unwind_sp): Delete.
9083 (mep_dummy_id): Delete.
9084 (mep_gdbarch_init): Don't register deleted functions with
9085 gdbarch.
9086
43cf3ede
AB
90872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9090 (m68hc11_unwind_sp): Delete.
9091 (m68hc11_gdbarch_init): Don't register deleted functions with
9092 gdbarch.
9093
5e79b7bb
AB
90942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9095
9096 * m32r-tdep.c (m32r_unwind_sp): Delete.
9097 (m32r_unwind_pc): Delete.
9098 (m32r_dummy_id): Delete.
9099 (m32r_gdbarch_init): Don't register deleted functions with
9100 gdbarch.
9101
89b268d8
AB
91022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * m32c-tdep.c (m32c_unwind_pc): Delete.
9105 (m32c_unwind_sp): Delete.
9106 (m32c_dummy_id): Delete.
9107 (m32c_gdbarch_init): Don't register deleted functions with
9108 gdbarch.
9109
946c28d2
AB
91102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9113 (lm32_unwind_pc): Delete.
9114 (lm32_dummy_id): Delete.
9115 (lm32_gdbarch_init): Don't register deleted functions with
9116 gdbarch.
9117
bf12844a
AB
91182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9121 (iq2000_unwind_pc): Delete.
9122 (iq2000_dummy_id): Delete.
9123 (iq2000_gdbarch_init): Don't register deleted functions with
9124 gdbarch.
9125
ecbc06d2
AB
91262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * nds32-tdep.c (nds32_type_align): Delete.
9129 (nds32_push_dummy_call): Use type_align instead.
9130
030197b4
AB
91312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9132
9133 * arm-tdep.c (arm_type_align): Only handle vector override case.
9134 (arm_push_dummy_call): Use type_align.
9135 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9136
b907456c
AB
91372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9140 case.
9141 (pass_on_stack): Use type_align.
9142 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9143 function.
9144
9e97ba43
TT
91452019-04-23 Tom Tromey <tromey@adacore.com>
9146
9147 * dwarf2read.c (line_header::file_name_at): Remove unused
9148 overload.
9149
6892f601
TV
91502019-04-23 Tom de Vries <tdevries@suse.de>
9151
9152 PR gdb/24438
9153 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9154 invocation.
9155
336d760d
AT
9156
91572019-03-27 Ali Tamur <tamur@google.com>
9158
9159 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9160 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9161 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9162 (dwarf_expr_context::get_addr_index): Likewise
9163 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9164 (symbol_needs_eval_context::get_addr_index): Likewise
9165 (disassemble_dwarf_expression): Add DW_OP_addrx
9166 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9167 (read_cutu_die_from_dwo): Update comment
9168 (skip_one_die): Add DW_FORM_addrx
9169 (read_attribute_value): Likewise
9170 (var_decode_location): Add DW_OP_addrx
9171 (dwarf2_const_value_attr): Add DW_FORM_addrx
9172 (dump_die_shallow): Likewise
9173 (dwarf2_fetch_constant_bytes): Likewise
9174 (decode_locdesc): Add DW_OP_addrx
9175 (skip_form_bytes): Add DW_FORM_addrx
9176
ad9d13f8
AT
91772019-04-22 Ali Tamur <tamur@google.com>
9178
9179 * MAINTAINERS (Write After Approval): Add self.
9180
d70cc3ba
SM
91812019-04-22 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9184 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9185 (open_symbol_file_object): Likewise.
9186 (svr4_default_sos): Add info parameter.
9187 (svr4_read_so_list): Likewise.
9188 (svr4_current_sos_direct): Adjust functions calls to pass down
9189 info.
9190 (svr4_current_sos_1): Add info parameter.
9191 (svr4_current_sos): Call get_svr4_info, pass info down to
9192 svr4_current_sos_1.
9193 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9194 get_svr4_info.
9195 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9196 get_svr4_info.
9197 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9198 to get_svr4_info.
9199 (probes_table_remove_objfile_probes): Likewise.
9200 (register_solib_event_probe): Add info parameter.
9201 (solist_update_incremental): Pass info parameter down to
9202 svr4_read_so_list.
9203 (disable_probes_interface): Add info parameter.
9204 (svr4_handle_solib_event): Pass current_program_space to
9205 get_svr4_info. Adjust disable_probes_interface cleanup.
9206 (svr4_create_probe_breakpoints): Add info parameter, pass it
9207 down to register_solib_event_probe.
9208 (svr4_create_solib_event_breakpoints): Add info parameter,
9209 pass it down to svr4_create_probe_breakpoints.
9210 (enable_break): Pass info down to
9211 svr4_create_solib_event_breakpoints.
9212 (svr4_solib_create_inferior_hook): Pass current_program_space to
9213 get_svr4_info.
9214 (svr4_clear_solib): Likewise.
9215
7905fc35
PA
92162019-04-22 Pedro Alves <palves@redhat.com>
9217
9218 * solib-svr4.c (svr4_free_objfile_observer): New.
9219 (probe_and_action::objfile): New field.
9220 (probes_table_htab_remove_objfile_probes)
9221 (probes_table_remove_objfile_probes): New functions.
9222 (register_solib_event_probe): Add 'objfile' parameter. Store it
9223 in the new probe_and_action. Don't store the probe in 'lookup'.
9224 (svr4_create_probe_breakpoints): Pass objfile to
9225 register_solib_event_probe.
9226 (_initialize_svr4_solib): Register a free_objfile observer.
9227
fb881986
TT
92282019-04-19 Tom Tromey <tom@tromey.com>
9229
9230 * common/queue.h: Remove.
9231
8732db6c
TT
92322019-04-19 Tom Tromey <tom@tromey.com>
9233
9234 * event-loop.c: Don't include "common/queue.h".
9235
97dfbadd
TT
92362019-04-19 Tom Tromey <tom@tromey.com>
9237
9238 * remote.c (remote_target): Use delete.
9239 * remote-notif.h: Include <list>, not "common/queue.h".
9240 (notif_client_p): Remove typedef.
9241 (remote_notif_state): Add constructor, destructor, initializer.
9242 <notif_queue>: Now a std::list.
9243 (remote_notif_state_xfree): Don't declare.
9244 * remote-notif.c (remote_notif_process, handle_notification)
9245 (remote_notif_state_allocate): Update.
9246 (~remote_notif_state): Rename from remote_notif_state_xfree.
9247
cf250e36
TT
92482019-04-19 Tom Tromey <tom@tromey.com>
9249
9250 * symfile.c (reread_symbols): Update.
9251 * objfiles.c (objfile_register_static_link)
9252 (objfile_lookup_static_link): Update
9253 (~objfile) Don't delete static_links.
9254 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9255
61f4b350
TT
92562019-04-19 Tom Tromey <tom@tromey.com>
9257
9258 * type-stack.h (struct type_stack) <insert>: Constify string.
9259 * type-stack.c (type_stack::insert): Constify string.
9260 * gdbtypes.h (lookup_template_type): Update.
9261 (address_space_name_to_int): Update.
9262 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9263 const.
9264 (lookup_template_type): Make name const.
9265 * c-exp.y: Update rules.
9266 (lex_one_token, classify_name, classify_inner_name)
9267 (c_print_token): Update.
9268 * p-exp.y: Update rules.
9269 (yylex): Update.
9270 * f-exp.y: Update rules.
9271 (yylex): Update.
9272 * d-exp.y: Update rules.
9273 (lex_one_token, classify_name, classify_inner_name): Update.
9274 * parse.c (write_dollar_variable, copy_name): Return std::string.
9275 * parser-defs.h (copy_name): Change return type.
9276 * m2-exp.y: Update rules.
9277 (yylex): Update.
9278 * go-exp.y (lex_one_token): Update.
9279 Update rules.
9280 (classify_unsafe_function, classify_packaged_name)
9281 (classify_name, yylex): Update.
9282
189b8c2e
ST
92832019-04-19 Sergei Trofimovich <siarheit@google.com>
9284
9285 * configure.ac: add --enable-source-highlight switch.
9286 * configure: Regenerate.
9287 * top.c (print_gdb_version): plumb --enable-source-highlight
9288 status to "show configuration".
9289
8ecb59f8
TT
92902019-04-19 Tom Tromey <tromey@adacore.com>
9291
9292 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9293 Check ADA_TYPE_P.
9294 (empty_record, ada_template_to_fixed_record_type_1)
9295 (template_to_static_fixed_type)
9296 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9297 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9298 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9299 macros.
9300
62160ec9
TT
93012019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9302
9303 PR symtab/24423:
9304 * source.c (print_source_lines_base): Advance "iter" when a
9305 control character is seen.
9306
f2ae8bc8
PW
93072019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9308
9309 * inferior.h (struct infcall_suspend_state_deleter):
9310 Catch exception in destructor to avoid crash.
9311
d563b953
PW
93122019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9313
9314 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9315 close to the add_com "shell".
9316
dc34c897
TT
93172019-04-18 Tom Tromey <tromey@adacore.com>
9318
9319 * process-stratum-target.h (class process_stratum_target)
9320 <stratum>: Add "final".
9321
a12e5744
TT
93222019-04-17 Tom Tromey <tromey@adacore.com>
9323
9324 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9325 against nullptr before use.
9326
a7e559cc
AH
93272019-04-17 Alan Hayward <alan.hayward@arm.com>
9328
9329 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9330
c01660c6
AB
93312019-04-17 Jim Wilson <jimw@sifive.com>
9332 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9335 code read might fail, assume 4-byte breakpoint in that case.
9336
4aa866af
LS
93372019-04-15 Leszek Swirski <leszeks@google.com>
9338
9339 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9340 rather than a hand-rolled POD check when checking for forced MEMORY
9341 classification.
9342
48574d91
AH
93432019-04-15 Alan Hayward <alan.hayward@arm.com>
9344
9345 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9346 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9347 function.
9348 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9349 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9350 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9351 declaration.
9352
4da037ef
AH
93532019-04-15 Alan Hayward <alan.hayward@arm.com>
9354
9355 * aarch64-linux-nat.c
9356 (aarch64_linux_nat_target::thread_architecture): Add override.
9357 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9358 each VQ.
9359
ccb8d7e8
AH
93602019-04-15 Alan Hayward <alan.hayward@arm.com>
9361
9362 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9363
35add35e
AB
93642019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9365
9366 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9367 target types of size 96-bits, add some additional comments, and
9368 check that the builtin type we found was the correct size.
9369
51196bbc
EZ
93702019-04-12 Eli Zaretskii <eliz@gnu.org>
9371
9372 * utils.c (prompt_for_continue): Don't restore the styling at the
9373 end, as applied_style has the wrong value. This fixes styling in
9374 long lists of file names that are interrupted by the "Continue?"
9375 prompt.
9376
62253a61
AB
93772019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9378
9379 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9380 * c-lang.c (c_language_defn): Likewise.
9381 (cplus_language_defn): Likewise.
9382 (asm_language_defn): Likewise.
9383 (minimal_language_defn): Likewise.
9384 * d-lang.c (d_language_defn): Likewise.
9385 * f-lang.c (f_language_defn): Likewise.
9386 * go-lang.c (go_language_defn): Likewise.
9387 * language.c (unknown_language_defn): Likewise.
9388 (auto_language_defn): Likewise.
9389 * language.h (struct language_defn): Remove la_magic field.
9390 (LANG_MAGIC): Delete.
9391 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9392 * objc-lang.c (objc_language_defn): Likewise.
9393 * opencl-lang.c (opencl_language_defn): Likewise.
9394 * p-lang.c (pascal_language_defn): Likewise.
9395 * rust-lang.c (rust_language_defn): Likewise.
9396
a9158a86
AB
93972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9398
9399 * riscv-tdep.c (riscv_type_align): New function.
9400 (riscv_type_alignment): Delete.
9401 (riscv_arg_location): Use 'type_align'.
9402 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9403
41077b66
AB
94042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * gdbtypes.c (type_align): A struct with no non-static fields also
9407 has alignment of 1.
9408
9f0272f8
AB
94092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9410
9411 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9412 component to 0.
9413 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9414 member.
9415 (riscv_struct_info::analyse): New implementation using new
9416 analyse_inner member function.
9417 (riscv_struct_info::field_offset): New member function.
9418 (riscv_struct_info::m_offsets): New member variable.
9419 (riscv_struct_info::analyse_inner): New private member function,
9420 takes the old implementation of riscv_struct_info::analyse but
9421 extended to track field offsets.
9422 (riscv_call_arg_struct): Update the struct folding special cases
9423 to handle cases where empty C++ structs, which are non-zero
9424 length, are found.
9425 (riscv_arg_location): Initialise the length of each location, a
9426 non-zero length now indicates the location is in use.
9427 (riscv_push_dummy_call): Allow for the first location having a
9428 non-zero offset when setting up arguments.
9429 (riscv_return_value): Likewise, but for return values.
9430
02cf60c7
TT
94312019-04-11 Tom Tromey <tromey@adacore.com>
9432
9433 * utils.c (internal_vproblem): Make "msg" const.
9434
68811f8f
AH
94352019-04-11 Alan Hayward <alan.hayward@arm.com>
9436
9437 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9438 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9439 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9440 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9441
3f52fdbc
KB
94422019-04-10 Kevin Buettner <kevinb@redhat.com>
9443
9444 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9445 function.
9446 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9447 of amd64_collect_native_gregset.
9448 (amd64_linux_nat_target::store_registers): Likewise.
9449
e9ad22ee
TT
94502019-04-10 Tom Tromey <tom@tromey.com>
9451
9452 * symtab.c (lookup_global_symbol_from_objfile)
9453 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9454 * objfiles.h (class separate_debug_iterator): New.
9455 (class separate_debug_range): New.
9456 (struct objfile) <separate_debug_objfiles>: New method.
9457 (objfile_separate_debug_iterate): Don't declare.
9458 * objfiles.c (separate_debug_iterator::operator++): Rename from
9459 objfile_separate_debug_iterate.
9460 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9461 iterator.
9462 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9463 iterator.
9464
ee371134
TT
94652019-04-10 Tom Tromey <tom@tromey.com>
9466
9467 * symfile.c (reread_symbols): Remove old comment.
9468 * objfiles.c (free_all_objfiles): Fix a typo.
9469
bf227d61
TT
94702019-04-10 Tom Tromey <tom@tromey.com>
9471
9472 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9473 * minsyms.c (lookup_minimal_symbol): Use foreach.
9474 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9475 (lookup_minimal_symbol_solib_trampoline): Likewise.
9476 * symfile.c (reread_symbols): Use foreach.
9477
8dc433a0
TT
94782019-04-09 Ivan Begert <ivanbegert@gmail.com>
9479 Tom Tromey <tromey@adacore.com>
9480
9481 PR rust/24414:
9482 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9483 (rust_lex_int_test): Change "value" to be LONGEST.
9484 (rust_lex_tests): Add test for long integer literal.
9485
9ab8741a
TT
94862019-04-09 Tom Tromey <tromey@adacore.com>
9487
9488 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9489 to bool.
9490 (extended_remote_target::attach): Update.
9491 (remote_target::remote_notice_new_inferior): Update.
9492 (remote_target::add_current_inferior_and_thread): Update.
9493 * inferior.c (exit_inferior_1): Use "false".
9494 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9495
e242fd12
SM
94962019-04-09 Simon Marchi <simon.marchi@efficios.com>
9497
9ca1957f 9498 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9499 the "start" command.
9500
2b0c8b01
KB
95012019-04-08 Kevin Buettner <kevinb@redhat.com>
9502
9503 * python/py-inferior.c (infpy_thread_from_thread_handle):
9504 Adjust comments to reflect renaming of thread_from_thread_handle
9505 to thread_from_handle. Adjust keywords. Fix type error message.
9506 (inferior_object_methods): Add thread_from_handle. Retain
9507 thread_from_thread_handle, but mark it as deprecated.
9508
50a82723
KB
95092019-04-08 Kevin Buettner <kevinb@redhat.com>
9510
9511 * gdbthread.h (find_thread_by_handle): Revise declaration.
9512 * thread.c (find_thread_by_handle): Likewise. Adjust
9513 implementation too.
9514 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9515 support for buffer objects as handles.
9516
cf63b016
KB
95172019-04-08 Kevin Buettner <kevinb@redhat.com>
9518
9519 * python/py-infthread.c (thpy_thread_handle): New function.
9520 (thread_object_methods): Register thpy_thread_handle.
9521
3d6c6204
KB
95222019-04-08 Kevin Buettner <kevinb@redhat.com>
9523
9524 * gdbthread.h (thread_to_thread_handle): Declare.
9525 * thread.c (gdbtypes.h): Include.
9526 (thread_to_thread_handle): New function.
9527
9528 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9529 (target_thread_info_to_thread_handle): Declare.
9530 * target.c (target_thread_info_to_thread_handle): New function.
9531 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9532 * target-delegates.c: Regenerate.
9533
9534 * linux-thread-db.c (class thread_db_target): Add method
9535 thread_info_to_thread_handle.
9536 (thread_db_target::thread_info_to_thread_handle): Define.
9537 * remote.c (class remote_target): Add new method
9538 thread_info_to_thread_handle.
9539 (remote_target::thread_info_to_thread_handle): Define.
9540
56be6ea8
PA
95412019-04-08 Pedro Alves <palves@redhat.com>
9542
9543 * common/common-exceptions.c (throw_exception): Don't create
9544 named object to throw; throw directly.
9545 (throw_it): Likewise. Don't initialize gdb_exception::message
9546 here, with new; pass FMT and AP to the ctor instead.
9547 * common/common-exceptions.h: Include <string>.
9548 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9549 const char *, va_list)): New ctor. Use std::make_shared.
9550 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9551 errors)): Delete.
9552 (gdb_exception_error::gdb_exception_error(enum errors, const char
9553 *, va_list)): New.
9554 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9555 Add assertion.
9556 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9557 errors)): Delete.
9558 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9559 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9560 Add assertion.
9561
eedc3f4f
TT
95622019-04-08 Tom Tromey <tom@tromey.com>
9563
9564 * valops.c (value_rtti_indirect_type): Replace throw_exception
9565 with throw.
9566 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9567 with throw.
9568 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9569 throw.
9570 * target.c (target_translate_tls_address): Replace throw_exception
9571 with throw.
9572 * stack.c (frame_apply_command_count): Replace throw_exception
9573 with throw.
9574 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9575 throw.
9576 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9577 with throw.
9578 * rs6000-tdep.c (rs6000_frame_cache)
9579 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9580 * remote.c: Replace throw_exception with throw.
9581 * record-full.c (record_full_message, record_full_wait_1)
9582 (record_full_restore): Replace throw_exception with throw.
9583 * record-btrace.c:
9584 (get_thread_current_frame_id, record_btrace_start_replaying)
9585 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9586 (cmd_record_btrace_start): Replace throw_exception with throw.
9587 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9588 throw.
9589 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9590 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9591 * linespec.c:
9592 (find_linespec_symbols): Replace throw_exception with throw.
9593 * infrun.c (displaced_step_prepare, resume): Replace
9594 throw_exception with throw.
9595 * infcmd.c (post_create_inferior): Replace throw_exception with
9596 throw.
9597 * inf-loop.c (inferior_event_handler): Replace throw_exception
9598 with throw.
9599 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9600 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9601 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9602 (get_prev_frame_always, get_frame_pc_if_available)
9603 (get_frame_address_in_block_if_available, get_frame_language):
9604 Replace throw_exception with throw.
9605 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9606 throw_exception with throw.
9607 * eval.c (fetch_subexp_value, evaluate_var_value)
9608 (evaluate_funcall, evaluate_subexp_standard): Replace
9609 throw_exception with throw.
9610 * dwarf2loc.c (call_site_find_chain)
9611 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9612 Replace throw_exception with throw.
9613 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9614 with throw.
9615 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9616 throw.
9617 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9618 * completer.c (complete_line_internal): Replace throw_exception
9619 with throw.
9620 * compile/compile-object-run.c (compile_object_run): Replace
9621 throw_exception with throw.
9622 * cli/cli-script.c (process_next_line): Replace throw_exception
9623 with throw.
9624 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9625 (btrace_enable, btrace_maint_update_pt_packets): Replace
9626 throw_exception with throw.
9627 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9628 throw_exception with throw.
9629 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9630 throw_exception with throw.
9631 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9632 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9633 * aarch64-tdep.c (aarch64_make_prologue_cache)
9634 (aarch64_make_stub_cache): Replace throw_exception with throw.
9635
26003a20
TT
96362019-04-08 Tom Tromey <tom@tromey.com>
9637
9638 * common/common-exceptions.c (throw_exception): Rename from
9639 throw_exception_cxx. Remove old copy. Make argument const.
9640 (throw_it): Create and throw exception objects directly.
9641 * common/common-exceptions.h (throw_exception): Make argument
9642 const.
9643 (struct gdb_exception_error): Add constructor.
9644 (struct gdb_exception_quit): Add constructor.
9645
d272eb37
TT
96462019-04-08 Tom Tromey <tom@tromey.com>
9647
9648 * common/common-exceptions.h (exception_rethrow): Don't declare.
9649 (TRY_SJLJ): Update comment.
9650 (TRY, CATCH, END_CATCH): Remove.
9651 * common/common-exceptions.c (exception_rethrow): Remove.
9652
230d2906
TT
96532019-04-08 Tom Tromey <tom@tromey.com>
9654
9655 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9656 Remove.
9657 (gdb_exception_error): Rename from
9658 gdb_exception_RETURN_MASK_ERROR.
9659 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9660 (gdb_quit_bad_alloc): Update.
9661 * aarch64-tdep.c: Update.
9662 * ada-lang.c: Update.
9663 * ada-typeprint.c: Update.
9664 * ada-valprint.c: Update.
9665 * amd64-tdep.c: Update.
9666 * arch-utils.c: Update.
9667 * break-catch-throw.c: Update.
9668 * breakpoint.c: Update.
9669 * btrace.c: Update.
9670 * c-varobj.c: Update.
9671 * cli/cli-cmds.c: Update.
9672 * cli/cli-interp.c: Update.
9673 * cli/cli-script.c: Update.
9674 * common/common-exceptions.c: Update.
9675 * common/new-op.c: Update.
9676 * common/selftest.c: Update.
9677 * compile/compile-c-symbols.c: Update.
9678 * compile/compile-cplus-symbols.c: Update.
9679 * compile/compile-object-load.c: Update.
9680 * compile/compile-object-run.c: Update.
9681 * completer.c: Update.
9682 * corelow.c: Update.
9683 * cp-abi.c: Update.
9684 * cp-support.c: Update.
9685 * cp-valprint.c: Update.
9686 * darwin-nat.c: Update.
9687 * disasm-selftests.c: Update.
9688 * dtrace-probe.c: Update.
9689 * dwarf-index-cache.c: Update.
9690 * dwarf-index-write.c: Update.
9691 * dwarf2-frame-tailcall.c: Update.
9692 * dwarf2-frame.c: Update.
9693 * dwarf2loc.c: Update.
9694 * dwarf2read.c: Update.
9695 * eval.c: Update.
9696 * event-loop.c: Update.
9697 * event-top.c: Update.
9698 * exec.c: Update.
9699 * f-valprint.c: Update.
9700 * fbsd-tdep.c: Update.
9701 * frame-unwind.c: Update.
9702 * frame.c: Update.
9703 * gdbtypes.c: Update.
9704 * gnu-v3-abi.c: Update.
9705 * guile/guile-internal.h: Update.
9706 * guile/scm-block.c: Update.
9707 * guile/scm-breakpoint.c: Update.
9708 * guile/scm-cmd.c: Update.
9709 * guile/scm-disasm.c: Update.
9710 * guile/scm-frame.c: Update.
9711 * guile/scm-lazy-string.c: Update.
9712 * guile/scm-math.c: Update.
9713 * guile/scm-param.c: Update.
9714 * guile/scm-ports.c: Update.
9715 * guile/scm-pretty-print.c: Update.
9716 * guile/scm-symbol.c: Update.
9717 * guile/scm-symtab.c: Update.
9718 * guile/scm-type.c: Update.
9719 * guile/scm-value.c: Update.
9720 * i386-linux-tdep.c: Update.
9721 * i386-tdep.c: Update.
9722 * inf-loop.c: Update.
9723 * infcall.c: Update.
9724 * infcmd.c: Update.
9725 * infrun.c: Update.
9726 * jit.c: Update.
9727 * language.c: Update.
9728 * linespec.c: Update.
9729 * linux-fork.c: Update.
9730 * linux-nat.c: Update.
9731 * linux-tdep.c: Update.
9732 * linux-thread-db.c: Update.
9733 * main.c: Update.
9734 * mi/mi-cmd-break.c: Update.
9735 * mi/mi-cmd-stack.c: Update.
9736 * mi/mi-interp.c: Update.
9737 * mi/mi-main.c: Update.
9738 * objc-lang.c: Update.
9739 * p-valprint.c: Update.
9740 * parse.c: Update.
9741 * ppc-linux-tdep.c: Update.
9742 * printcmd.c: Update.
9743 * python/py-arch.c: Update.
9744 * python/py-breakpoint.c: Update.
9745 * python/py-cmd.c: Update.
9746 * python/py-finishbreakpoint.c: Update.
9747 * python/py-frame.c: Update.
9748 * python/py-framefilter.c: Update.
9749 * python/py-gdb-readline.c: Update.
9750 * python/py-inferior.c: Update.
9751 * python/py-infthread.c: Update.
9752 * python/py-lazy-string.c: Update.
9753 * python/py-linetable.c: Update.
9754 * python/py-objfile.c: Update.
9755 * python/py-param.c: Update.
9756 * python/py-prettyprint.c: Update.
9757 * python/py-progspace.c: Update.
9758 * python/py-record-btrace.c: Update.
9759 * python/py-record.c: Update.
9760 * python/py-symbol.c: Update.
9761 * python/py-type.c: Update.
9762 * python/py-unwind.c: Update.
9763 * python/py-utils.c: Update.
9764 * python/py-value.c: Update.
9765 * python/python.c: Update.
9766 * record-btrace.c: Update.
9767 * record-full.c: Update.
9768 * remote-fileio.c: Update.
9769 * remote.c: Update.
9770 * riscv-tdep.c: Update.
9771 * rs6000-aix-tdep.c: Update.
9772 * rs6000-tdep.c: Update.
9773 * rust-exp.y: Update.
9774 * rust-lang.c: Update.
9775 * s390-tdep.c: Update.
9776 * selftest-arch.c: Update.
9777 * solib-dsbt.c: Update.
9778 * solib-frv.c: Update.
9779 * solib-spu.c: Update.
9780 * solib-svr4.c: Update.
9781 * solib.c: Update.
9782 * sparc64-linux-tdep.c: Update.
9783 * stack.c: Update.
9784 * symfile-mem.c: Update.
9785 * symmisc.c: Update.
9786 * target.c: Update.
9787 * thread.c: Update.
9788 * top.c: Update.
9789 * tracefile-tfile.c: Update.
9790 * tui/tui.c: Update.
9791 * typeprint.c: Update.
9792 * unittests/cli-utils-selftests.c: Update.
9793 * unittests/parse-connection-spec-selftests.c: Update.
9794 * valops.c: Update.
9795 * valprint.c: Update.
9796 * value.c: Update.
9797 * varobj.c: Update.
9798 * windows-nat.c: Update.
9799 * x86-linux-nat.c: Update.
9800 * xml-support.c: Update.
9801
a70b8144
TT
98022019-04-08 Tom Tromey <tom@tromey.com>
9803
9804 * xml-support.c: Use C++ exception handling.
9805 * x86-linux-nat.c: Use C++ exception handling.
9806 * windows-nat.c: Use C++ exception handling.
9807 * varobj.c: Use C++ exception handling.
9808 * value.c: Use C++ exception handling.
9809 * valprint.c: Use C++ exception handling.
9810 * valops.c: Use C++ exception handling.
9811 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9812 handling.
9813 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9814 * typeprint.c: Use C++ exception handling.
9815 * tui/tui.c: Use C++ exception handling.
9816 * tracefile-tfile.c: Use C++ exception handling.
9817 * top.c: Use C++ exception handling.
9818 * thread.c: Use C++ exception handling.
9819 * target.c: Use C++ exception handling.
9820 * symmisc.c: Use C++ exception handling.
9821 * symfile-mem.c: Use C++ exception handling.
9822 * stack.c: Use C++ exception handling.
9823 * sparc64-linux-tdep.c: Use C++ exception handling.
9824 * solib.c: Use C++ exception handling.
9825 * solib-svr4.c: Use C++ exception handling.
9826 * solib-spu.c: Use C++ exception handling.
9827 * solib-frv.c: Use C++ exception handling.
9828 * solib-dsbt.c: Use C++ exception handling.
9829 * selftest-arch.c: Use C++ exception handling.
9830 * s390-tdep.c: Use C++ exception handling.
9831 * rust-lang.c: Use C++ exception handling.
9832 * rust-exp.y: Use C++ exception handling.
9833 * rs6000-tdep.c: Use C++ exception handling.
9834 * rs6000-aix-tdep.c: Use C++ exception handling.
9835 * riscv-tdep.c: Use C++ exception handling.
9836 * remote.c: Use C++ exception handling.
9837 * remote-fileio.c: Use C++ exception handling.
9838 * record-full.c: Use C++ exception handling.
9839 * record-btrace.c: Use C++ exception handling.
9840 * python/python.c: Use C++ exception handling.
9841 * python/py-value.c: Use C++ exception handling.
9842 * python/py-utils.c: Use C++ exception handling.
9843 * python/py-unwind.c: Use C++ exception handling.
9844 * python/py-type.c: Use C++ exception handling.
9845 * python/py-symbol.c: Use C++ exception handling.
9846 * python/py-record.c: Use C++ exception handling.
9847 * python/py-record-btrace.c: Use C++ exception handling.
9848 * python/py-progspace.c: Use C++ exception handling.
9849 * python/py-prettyprint.c: Use C++ exception handling.
9850 * python/py-param.c: Use C++ exception handling.
9851 * python/py-objfile.c: Use C++ exception handling.
9852 * python/py-linetable.c: Use C++ exception handling.
9853 * python/py-lazy-string.c: Use C++ exception handling.
9854 * python/py-infthread.c: Use C++ exception handling.
9855 * python/py-inferior.c: Use C++ exception handling.
9856 * python/py-gdb-readline.c: Use C++ exception handling.
9857 * python/py-framefilter.c: Use C++ exception handling.
9858 * python/py-frame.c: Use C++ exception handling.
9859 * python/py-finishbreakpoint.c: Use C++ exception handling.
9860 * python/py-cmd.c: Use C++ exception handling.
9861 * python/py-breakpoint.c: Use C++ exception handling.
9862 * python/py-arch.c: Use C++ exception handling.
9863 * printcmd.c: Use C++ exception handling.
9864 * ppc-linux-tdep.c: Use C++ exception handling.
9865 * parse.c: Use C++ exception handling.
9866 * p-valprint.c: Use C++ exception handling.
9867 * objc-lang.c: Use C++ exception handling.
9868 * mi/mi-main.c: Use C++ exception handling.
9869 * mi/mi-interp.c: Use C++ exception handling.
9870 * mi/mi-cmd-stack.c: Use C++ exception handling.
9871 * mi/mi-cmd-break.c: Use C++ exception handling.
9872 * main.c: Use C++ exception handling.
9873 * linux-thread-db.c: Use C++ exception handling.
9874 * linux-tdep.c: Use C++ exception handling.
9875 * linux-nat.c: Use C++ exception handling.
9876 * linux-fork.c: Use C++ exception handling.
9877 * linespec.c: Use C++ exception handling.
9878 * language.c: Use C++ exception handling.
9879 * jit.c: Use C++ exception handling.
9880 * infrun.c: Use C++ exception handling.
9881 * infcmd.c: Use C++ exception handling.
9882 * infcall.c: Use C++ exception handling.
9883 * inf-loop.c: Use C++ exception handling.
9884 * i386-tdep.c: Use C++ exception handling.
9885 * i386-linux-tdep.c: Use C++ exception handling.
9886 * guile/scm-value.c: Use C++ exception handling.
9887 * guile/scm-type.c: Use C++ exception handling.
9888 * guile/scm-symtab.c: Use C++ exception handling.
9889 * guile/scm-symbol.c: Use C++ exception handling.
9890 * guile/scm-pretty-print.c: Use C++ exception handling.
9891 * guile/scm-ports.c: Use C++ exception handling.
9892 * guile/scm-param.c: Use C++ exception handling.
9893 * guile/scm-math.c: Use C++ exception handling.
9894 * guile/scm-lazy-string.c: Use C++ exception handling.
9895 * guile/scm-frame.c: Use C++ exception handling.
9896 * guile/scm-disasm.c: Use C++ exception handling.
9897 * guile/scm-cmd.c: Use C++ exception handling.
9898 * guile/scm-breakpoint.c: Use C++ exception handling.
9899 * guile/scm-block.c: Use C++ exception handling.
9900 * guile/guile-internal.h: Use C++ exception handling.
9901 * gnu-v3-abi.c: Use C++ exception handling.
9902 * gdbtypes.c: Use C++ exception handling.
9903 * frame.c: Use C++ exception handling.
9904 * frame-unwind.c: Use C++ exception handling.
9905 * fbsd-tdep.c: Use C++ exception handling.
9906 * f-valprint.c: Use C++ exception handling.
9907 * exec.c: Use C++ exception handling.
9908 * event-top.c: Use C++ exception handling.
9909 * event-loop.c: Use C++ exception handling.
9910 * eval.c: Use C++ exception handling.
9911 * dwarf2read.c: Use C++ exception handling.
9912 * dwarf2loc.c: Use C++ exception handling.
9913 * dwarf2-frame.c: Use C++ exception handling.
9914 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9915 * dwarf-index-write.c: Use C++ exception handling.
9916 * dwarf-index-cache.c: Use C++ exception handling.
9917 * dtrace-probe.c: Use C++ exception handling.
9918 * disasm-selftests.c: Use C++ exception handling.
9919 * darwin-nat.c: Use C++ exception handling.
9920 * cp-valprint.c: Use C++ exception handling.
9921 * cp-support.c: Use C++ exception handling.
9922 * cp-abi.c: Use C++ exception handling.
9923 * corelow.c: Use C++ exception handling.
9924 * completer.c: Use C++ exception handling.
9925 * compile/compile-object-run.c: Use C++ exception handling.
9926 * compile/compile-object-load.c: Use C++ exception handling.
9927 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9928 * compile/compile-c-symbols.c: Use C++ exception handling.
9929 * common/selftest.c: Use C++ exception handling.
9930 * common/new-op.c: Use C++ exception handling.
9931 * cli/cli-script.c: Use C++ exception handling.
9932 * cli/cli-interp.c: Use C++ exception handling.
9933 * cli/cli-cmds.c: Use C++ exception handling.
9934 * c-varobj.c: Use C++ exception handling.
9935 * btrace.c: Use C++ exception handling.
9936 * breakpoint.c: Use C++ exception handling.
9937 * break-catch-throw.c: Use C++ exception handling.
9938 * arch-utils.c: Use C++ exception handling.
9939 * amd64-tdep.c: Use C++ exception handling.
9940 * ada-valprint.c: Use C++ exception handling.
9941 * ada-typeprint.c: Use C++ exception handling.
9942 * ada-lang.c: Use C++ exception handling.
9943 * aarch64-tdep.c: Use C++ exception handling.
9944
3d6e9d23
TT
99452019-04-08 Tom Tromey <tom@tromey.com>
9946
9947 * xml-support.c (gdb_xml_parser::parse): Update.
9948 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9949 * value.c (show_convenience): Update.
9950 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9951 (test_parse_flags_qcs): Update.
9952 * thread.c (thr_try_catch_cmd): Update.
9953 * target.c (target_translate_tls_address): Update.
9954 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9955 (info_frame_command_core, frame_apply_command_count): Update.
9956 * rust-exp.y (rust_lex_exception_test): Update.
9957 * riscv-tdep.c (riscv_print_one_register_info): Update.
9958 * remote.c (remote_target::enable_btrace): Update.
9959 * record-btrace.c (record_btrace_enable_warn): Update.
9960 * python/py-utils.c (gdbpy_convert_exception): Update.
9961 * printcmd.c (do_one_display, print_variable_and_value): Update.
9962 * mi/mi-main.c (mi_print_exception): Update.
9963 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9964 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9965 * linux-nat.c (linux_nat_target::attach): Update.
9966 * linux-fork.c (class scoped_switch_fork_info): Update.
9967 * infrun.c (displaced_step_prepare): Update.
9968 * infcall.c (call_function_by_hand_dummy): Update.
9969 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9970 * gnu-v3-abi.c (print_one_vtable): Update.
9971 * frame.c (get_prev_frame_always): Update.
9972 * f-valprint.c (info_common_command_for_block): Update.
9973 * exec.c (try_open_exec_file): Update.
9974 * exceptions.c (print_exception, exception_print)
9975 (exception_fprintf, exception_print_same): Update.
9976 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9977 * dwarf-index-cache.c (index_cache::store)
9978 (index_cache::lookup_gdb_index): Update.
9979 * darwin-nat.c (maybe_cache_shell): Update.
9980 * cp-valprint.c (cp_print_value_fields): Update.
9981 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9982 (gcc_cplus_symbol_address): Update.
9983 * compile/compile-c-symbols.c (gcc_convert_symbol)
9984 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9985 * common/selftest.c: Update.
9986 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9987 a std::string.
9988 (exception_try_scope_entry, exception_try_scope_exit): Don't
9989 declare.
9990 (struct exception_try_scope): Remove.
9991 (TRY): Don't use exception_try_scope.
9992 (struct gdb_exception): Add constructor, operator=.
9993 <what>: New method.
9994 (struct gdb_exception_RETURN_MASK_ALL)
9995 (struct gdb_exception_RETURN_MASK_ERROR)
9996 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9997 (struct gdb_quit_bad_alloc): Update.
9998 * common/common-exceptions.c (exception_none): Change
9999 initializer.
10000 (struct catcher) <state, exception>: Initialize inline.
10001 <prev>: Remove member.
10002 (current_catcher): Remove.
10003 (catchers): New global.
10004 (exceptions_state_mc_init): Simplify.
10005 (catcher_pop): Remove.
10006 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10007 (try_scope_depth, exception_try_scope_entry)
10008 (exception_try_scope_exit): Remove.
10009 (throw_exception_sjlj): Update.
10010 (exception_messages, exception_messages_size): Remove.
10011 (throw_it): Simplify.
10012 (gdb_exception_sliced_copy): Remove.
10013 (throw_exception_cxx): Update.
10014 * cli/cli-script.c (script_from_file): Update.
10015 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10016 Update.
10017 * ada-valprint.c (ada_val_print): Update.
10018 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10019 (create_excep_cond_exprs): Update.
10020
c5c10118
TT
100212019-04-08 Tom Tromey <tom@tromey.com>
10022
10023 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10024 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10025 (TRY, CATCH, END_CATCH): Remove some definitions.
10026 * common/common-exceptions.c: Don't use GDB_XCPT.
10027 (catcher_list_size): Remove.
10028 (throw_exception, throw_it): Simplify.
10029
4de283e4
TT
100302019-04-05 Tom Tromey <tom@tromey.com>
10031
10032 Revert the header-sorting patch.
10033 * ft32-tdep.c: Revert.
10034 * frv-tdep.c: Revert.
10035 * frv-linux-tdep.c: Revert.
10036 * frame.c: Revert.
10037 * frame-unwind.c: Revert.
10038 * frame-base.c: Revert.
10039 * fork-child.c: Revert.
10040 * findvar.c: Revert.
10041 * findcmd.c: Revert.
10042 * filesystem.c: Revert.
10043 * filename-seen-cache.h: Revert.
10044 * filename-seen-cache.c: Revert.
10045 * fbsd-tdep.c: Revert.
10046 * fbsd-nat.h: Revert.
10047 * fbsd-nat.c: Revert.
10048 * f-valprint.c: Revert.
10049 * f-typeprint.c: Revert.
10050 * f-lang.c: Revert.
10051 * extension.h: Revert.
10052 * extension.c: Revert.
10053 * extension-priv.h: Revert.
10054 * expprint.c: Revert.
10055 * exec.h: Revert.
10056 * exec.c: Revert.
10057 * exceptions.c: Revert.
10058 * event-top.c: Revert.
10059 * event-loop.c: Revert.
10060 * eval.c: Revert.
10061 * elfread.c: Revert.
10062 * dwarf2read.h: Revert.
10063 * dwarf2read.c: Revert.
10064 * dwarf2loc.c: Revert.
10065 * dwarf2expr.h: Revert.
10066 * dwarf2expr.c: Revert.
10067 * dwarf2-frame.c: Revert.
10068 * dwarf2-frame-tailcall.c: Revert.
10069 * dwarf-index-write.h: Revert.
10070 * dwarf-index-write.c: Revert.
10071 * dwarf-index-common.c: Revert.
10072 * dwarf-index-cache.h: Revert.
10073 * dwarf-index-cache.c: Revert.
10074 * dummy-frame.c: Revert.
10075 * dtrace-probe.c: Revert.
10076 * disasm.h: Revert.
10077 * disasm.c: Revert.
10078 * disasm-selftests.c: Revert.
10079 * dictionary.c: Revert.
10080 * dicos-tdep.c: Revert.
10081 * demangle.c: Revert.
10082 * dcache.h: Revert.
10083 * dcache.c: Revert.
10084 * darwin-nat.h: Revert.
10085 * darwin-nat.c: Revert.
10086 * darwin-nat-info.c: Revert.
10087 * d-valprint.c: Revert.
10088 * d-namespace.c: Revert.
10089 * d-lang.c: Revert.
10090 * ctf.c: Revert.
10091 * csky-tdep.c: Revert.
10092 * csky-linux-tdep.c: Revert.
10093 * cris-tdep.c: Revert.
10094 * cris-linux-tdep.c: Revert.
10095 * cp-valprint.c: Revert.
10096 * cp-support.c: Revert.
10097 * cp-namespace.c: Revert.
10098 * cp-abi.c: Revert.
10099 * corelow.c: Revert.
10100 * corefile.c: Revert.
10101 * continuations.c: Revert.
10102 * completer.h: Revert.
10103 * completer.c: Revert.
10104 * complaints.c: Revert.
10105 * coffread.c: Revert.
10106 * coff-pe-read.c: Revert.
10107 * cli-out.h: Revert.
10108 * cli-out.c: Revert.
10109 * charset.c: Revert.
10110 * c-varobj.c: Revert.
10111 * c-valprint.c: Revert.
10112 * c-typeprint.c: Revert.
10113 * c-lang.c: Revert.
10114 * buildsym.c: Revert.
10115 * buildsym-legacy.c: Revert.
10116 * build-id.h: Revert.
10117 * build-id.c: Revert.
10118 * btrace.c: Revert.
10119 * bsd-uthread.c: Revert.
10120 * breakpoint.h: Revert.
10121 * breakpoint.c: Revert.
10122 * break-catch-throw.c: Revert.
10123 * break-catch-syscall.c: Revert.
10124 * break-catch-sig.c: Revert.
10125 * blockframe.c: Revert.
10126 * block.c: Revert.
10127 * bfin-tdep.c: Revert.
10128 * bfin-linux-tdep.c: Revert.
10129 * bfd-target.c: Revert.
10130 * bcache.c: Revert.
10131 * ax-general.c: Revert.
10132 * ax-gdb.h: Revert.
10133 * ax-gdb.c: Revert.
10134 * avr-tdep.c: Revert.
10135 * auxv.c: Revert.
10136 * auto-load.c: Revert.
10137 * arm-wince-tdep.c: Revert.
10138 * arm-tdep.c: Revert.
10139 * arm-symbian-tdep.c: Revert.
10140 * arm-pikeos-tdep.c: Revert.
10141 * arm-obsd-tdep.c: Revert.
10142 * arm-nbsd-tdep.c: Revert.
10143 * arm-nbsd-nat.c: Revert.
10144 * arm-linux-tdep.c: Revert.
10145 * arm-linux-nat.c: Revert.
10146 * arm-fbsd-tdep.c: Revert.
10147 * arm-fbsd-nat.c: Revert.
10148 * arm-bsd-tdep.c: Revert.
10149 * arch-utils.c: Revert.
10150 * arc-tdep.c: Revert.
10151 * arc-newlib-tdep.c: Revert.
10152 * annotate.h: Revert.
10153 * annotate.c: Revert.
10154 * amd64-windows-tdep.c: Revert.
10155 * amd64-windows-nat.c: Revert.
10156 * amd64-tdep.c: Revert.
10157 * amd64-sol2-tdep.c: Revert.
10158 * amd64-obsd-tdep.c: Revert.
10159 * amd64-obsd-nat.c: Revert.
10160 * amd64-nbsd-tdep.c: Revert.
10161 * amd64-nbsd-nat.c: Revert.
10162 * amd64-nat.c: Revert.
10163 * amd64-linux-tdep.c: Revert.
10164 * amd64-linux-nat.c: Revert.
10165 * amd64-fbsd-tdep.c: Revert.
10166 * amd64-fbsd-nat.c: Revert.
10167 * amd64-dicos-tdep.c: Revert.
10168 * amd64-darwin-tdep.c: Revert.
10169 * amd64-bsd-nat.c: Revert.
10170 * alpha-tdep.c: Revert.
10171 * alpha-obsd-tdep.c: Revert.
10172 * alpha-nbsd-tdep.c: Revert.
10173 * alpha-mdebug-tdep.c: Revert.
10174 * alpha-linux-tdep.c: Revert.
10175 * alpha-linux-nat.c: Revert.
10176 * alpha-bsd-tdep.c: Revert.
10177 * alpha-bsd-nat.c: Revert.
10178 * aix-thread.c: Revert.
10179 * agent.c: Revert.
10180 * addrmap.c: Revert.
10181 * ada-varobj.c: Revert.
10182 * ada-valprint.c: Revert.
10183 * ada-typeprint.c: Revert.
10184 * ada-tasks.c: Revert.
10185 * ada-lang.c: Revert.
10186 * aarch64-tdep.c: Revert.
10187 * aarch64-ravenscar-thread.c: Revert.
10188 * aarch64-newlib-tdep.c: Revert.
10189 * aarch64-linux-tdep.c: Revert.
10190 * aarch64-linux-nat.c: Revert.
10191 * aarch64-fbsd-tdep.c: Revert.
10192 * aarch64-fbsd-nat.c: Revert.
10193 * aarch32-linux-nat.c: Revert.
10194
d55e5aa6
TT
101952019-04-05 Tom Tromey <tom@tromey.com>
10196
10197 * ft32-tdep.c: Sort headers.
10198 * frv-tdep.c: Sort headers.
10199 * frv-linux-tdep.c: Sort headers.
10200 * frame.c: Sort headers.
10201 * frame-unwind.c: Sort headers.
10202 * frame-base.c: Sort headers.
10203 * fork-child.c: Sort headers.
10204 * findvar.c: Sort headers.
10205 * findcmd.c: Sort headers.
10206 * filesystem.c: Sort headers.
10207 * filename-seen-cache.h: Sort headers.
10208 * filename-seen-cache.c: Sort headers.
10209 * fbsd-tdep.c: Sort headers.
10210 * fbsd-nat.h: Sort headers.
10211 * fbsd-nat.c: Sort headers.
10212 * f-valprint.c: Sort headers.
10213 * f-typeprint.c: Sort headers.
10214 * f-lang.c: Sort headers.
10215 * extension.h: Sort headers.
10216 * extension.c: Sort headers.
10217 * extension-priv.h: Sort headers.
10218 * expprint.c: Sort headers.
10219 * exec.h: Sort headers.
10220 * exec.c: Sort headers.
10221 * exceptions.c: Sort headers.
10222 * event-top.c: Sort headers.
10223 * event-loop.c: Sort headers.
10224 * eval.c: Sort headers.
10225 * elfread.c: Sort headers.
10226 * dwarf2read.h: Sort headers.
10227 * dwarf2read.c: Sort headers.
10228 * dwarf2loc.c: Sort headers.
10229 * dwarf2expr.h: Sort headers.
10230 * dwarf2expr.c: Sort headers.
10231 * dwarf2-frame.c: Sort headers.
10232 * dwarf2-frame-tailcall.c: Sort headers.
10233 * dwarf-index-write.h: Sort headers.
10234 * dwarf-index-write.c: Sort headers.
10235 * dwarf-index-common.c: Sort headers.
10236 * dwarf-index-cache.h: Sort headers.
10237 * dwarf-index-cache.c: Sort headers.
10238 * dummy-frame.c: Sort headers.
10239 * dtrace-probe.c: Sort headers.
10240 * disasm.h: Sort headers.
10241 * disasm.c: Sort headers.
10242 * disasm-selftests.c: Sort headers.
10243 * dictionary.c: Sort headers.
10244 * dicos-tdep.c: Sort headers.
10245 * demangle.c: Sort headers.
10246 * dcache.h: Sort headers.
10247 * dcache.c: Sort headers.
10248 * darwin-nat.h: Sort headers.
10249 * darwin-nat.c: Sort headers.
10250 * darwin-nat-info.c: Sort headers.
10251 * d-valprint.c: Sort headers.
10252 * d-namespace.c: Sort headers.
10253 * d-lang.c: Sort headers.
10254 * ctf.c: Sort headers.
10255 * csky-tdep.c: Sort headers.
10256 * csky-linux-tdep.c: Sort headers.
10257 * cris-tdep.c: Sort headers.
10258 * cris-linux-tdep.c: Sort headers.
10259 * cp-valprint.c: Sort headers.
10260 * cp-support.c: Sort headers.
10261 * cp-namespace.c: Sort headers.
10262 * cp-abi.c: Sort headers.
10263 * corelow.c: Sort headers.
10264 * corefile.c: Sort headers.
10265 * continuations.c: Sort headers.
10266 * completer.h: Sort headers.
10267 * completer.c: Sort headers.
10268 * complaints.c: Sort headers.
10269 * coffread.c: Sort headers.
10270 * coff-pe-read.c: Sort headers.
10271 * cli-out.h: Sort headers.
10272 * cli-out.c: Sort headers.
10273 * charset.c: Sort headers.
10274 * c-varobj.c: Sort headers.
10275 * c-valprint.c: Sort headers.
10276 * c-typeprint.c: Sort headers.
10277 * c-lang.c: Sort headers.
10278 * buildsym.c: Sort headers.
10279 * buildsym-legacy.c: Sort headers.
10280 * build-id.h: Sort headers.
10281 * build-id.c: Sort headers.
10282 * btrace.c: Sort headers.
10283 * bsd-uthread.c: Sort headers.
10284 * breakpoint.h: Sort headers.
10285 * breakpoint.c: Sort headers.
10286 * break-catch-throw.c: Sort headers.
10287 * break-catch-syscall.c: Sort headers.
10288 * break-catch-sig.c: Sort headers.
10289 * blockframe.c: Sort headers.
10290 * block.c: Sort headers.
10291 * bfin-tdep.c: Sort headers.
10292 * bfin-linux-tdep.c: Sort headers.
10293 * bfd-target.c: Sort headers.
10294 * bcache.c: Sort headers.
10295 * ax-general.c: Sort headers.
10296 * ax-gdb.h: Sort headers.
10297 * ax-gdb.c: Sort headers.
10298 * avr-tdep.c: Sort headers.
10299 * auxv.c: Sort headers.
10300 * auto-load.c: Sort headers.
10301 * arm-wince-tdep.c: Sort headers.
10302 * arm-tdep.c: Sort headers.
10303 * arm-symbian-tdep.c: Sort headers.
10304 * arm-pikeos-tdep.c: Sort headers.
10305 * arm-obsd-tdep.c: Sort headers.
10306 * arm-nbsd-tdep.c: Sort headers.
10307 * arm-nbsd-nat.c: Sort headers.
10308 * arm-linux-tdep.c: Sort headers.
10309 * arm-linux-nat.c: Sort headers.
10310 * arm-fbsd-tdep.c: Sort headers.
10311 * arm-fbsd-nat.c: Sort headers.
10312 * arm-bsd-tdep.c: Sort headers.
10313 * arch-utils.c: Sort headers.
10314 * arc-tdep.c: Sort headers.
10315 * arc-newlib-tdep.c: Sort headers.
10316 * annotate.h: Sort headers.
10317 * annotate.c: Sort headers.
10318 * amd64-windows-tdep.c: Sort headers.
10319 * amd64-windows-nat.c: Sort headers.
10320 * amd64-tdep.c: Sort headers.
10321 * amd64-sol2-tdep.c: Sort headers.
10322 * amd64-obsd-tdep.c: Sort headers.
10323 * amd64-obsd-nat.c: Sort headers.
10324 * amd64-nbsd-tdep.c: Sort headers.
10325 * amd64-nbsd-nat.c: Sort headers.
10326 * amd64-nat.c: Sort headers.
10327 * amd64-linux-tdep.c: Sort headers.
10328 * amd64-linux-nat.c: Sort headers.
10329 * amd64-fbsd-tdep.c: Sort headers.
10330 * amd64-fbsd-nat.c: Sort headers.
10331 * amd64-dicos-tdep.c: Sort headers.
10332 * amd64-darwin-tdep.c: Sort headers.
10333 * amd64-bsd-nat.c: Sort headers.
10334 * alpha-tdep.c: Sort headers.
10335 * alpha-obsd-tdep.c: Sort headers.
10336 * alpha-nbsd-tdep.c: Sort headers.
10337 * alpha-mdebug-tdep.c: Sort headers.
10338 * alpha-linux-tdep.c: Sort headers.
10339 * alpha-linux-nat.c: Sort headers.
10340 * alpha-bsd-tdep.c: Sort headers.
10341 * alpha-bsd-nat.c: Sort headers.
10342 * aix-thread.c: Sort headers.
10343 * agent.c: Sort headers.
10344 * addrmap.c: Sort headers.
10345 * ada-varobj.c: Sort headers.
10346 * ada-valprint.c: Sort headers.
10347 * ada-typeprint.c: Sort headers.
10348 * ada-tasks.c: Sort headers.
10349 * ada-lang.c: Sort headers.
10350 * aarch64-tdep.c: Sort headers.
10351 * aarch64-ravenscar-thread.c: Sort headers.
10352 * aarch64-newlib-tdep.c: Sort headers.
10353 * aarch64-linux-tdep.c: Sort headers.
10354 * aarch64-linux-nat.c: Sort headers.
10355 * aarch64-fbsd-tdep.c: Sort headers.
10356 * aarch64-fbsd-nat.c: Sort headers.
10357 * aarch32-linux-nat.c: Sort headers.
10358
699bd4cf
TT
103592019-04-04 Tom Tromey <tom@tromey.com>
10360
10361 * varobj.c (varobj_create): Update.
10362 * rust-exp.y (struct rust_parser) <update_innermost_block,
10363 lookup_symbol>: New methods.
10364 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10365 Rename.
10366 (rust_parser::rust_lookup_type)
10367 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10368 * printcmd.c (display_command, do_one_display): Update.
10369 * parser-defs.h (struct parser_state) <parser_state>: Add
10370 "tracker" parameter.
10371 (block_tracker): New member.
10372 (class innermost_block_tracker) <innermost_block_tracker>: Add
10373 "types" parameter.
10374 <reset>: Remove method.
10375 (innermost_block): Don't declare.
10376 (null_post_parser): Update.
10377 * parse.c (innermost_block): Remove global.
10378 (write_dollar_variable): Update.
10379 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10380 Remove "tracker_types" parameter.
10381 (parse_expression): Add "tracker" parameter.
10382 (parse_expression_for_completion): Update.
10383 (null_post_parser): Add "tracker" parameter.
10384 * p-exp.y: Update rules.
10385 * m2-exp.y: Update rules.
10386 * language.h (struct language_defn) <la_post_parser>: Add
10387 "tracker" parameter.
10388 * go-exp.y: Update rules.
10389 * f-exp.y: Update rules.
10390 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10391 parameter.
10392 * d-exp.y: Update rules.
10393 * c-exp.y: Update rules.
10394 * breakpoint.c (set_breakpoint_condition): Create an
10395 innermost_block_tracker.
10396 (watch_command_1): Likewise.
10397 * ada-lang.c (resolve): Add "tracker" parameter.
10398 (resolve_subexp): Likewise.
10399 * ada-exp.y (write_var_from_sym): Update.
10400
dac43e32
TT
104012019-04-04 Tom Tromey <tom@tromey.com>
10402
10403 * type-stack.h: New file.
10404 * type-stack.c: New file.
10405 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10406 type-stack.h.
10407 (insert_into_type_stack, insert_type, push_type, push_type_int)
10408 (insert_type_address_space, pop_type, pop_type_int)
10409 (pop_typelist, pop_type_stack, append_type_stack)
10410 (push_type_stack, get_type_stack, push_typelist)
10411 (follow_type_instance_flags, follow_types): Don't declare.
10412 * parse.c (type_stack): Remove global.
10413 (parse_exp_in_context): Update.
10414 (insert_into_type_stack, insert_type, push_type, push_type_int)
10415 (insert_type_address_space, pop_type, pop_type_int)
10416 (pop_typelist, pop_type_stack, append_type_stack)
10417 (push_type_stack, get_type_stack, push_typelist)
10418 (follow_type_instance_flags, follow_types): Remove (moved to
10419 type-stack.c).
10420 * f-exp.y (type_stack): New global.
10421 Update rules.
10422 (push_kind_type, f_parse): Update.
10423 * d-exp.y (type_stack): New global.
10424 Update rules.
10425 (d_parse): Update.
10426 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10427 Update rules.
10428 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10429 (HFILES_NO_SRCDIR): Add type-stack.h.
10430
2a612529
TT
104312019-04-04 Tom Tromey <tom@tromey.com>
10432
10433 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10434 (rust_parser::convert_ast_to_expression, rust_parse)
10435 (rust_lex_test_completion, rust_lex_tests): Update.
10436 * parser-defs.h (struct expr_completion_state): New.
10437 (struct parser_state) <parser_state>: Add completion parameter.
10438 <mark_struct_expression, mark_completion_tag>: New methods.
10439 <parse_completion, m_completion_state>: New members.
10440 (prefixify_expression, null_post_parser): Update.
10441 (mark_struct_expression, mark_completion_tag): Don't declare.
10442 * parse.c (parse_completion, expout_last_struct)
10443 (expout_tag_completion_type, expout_completion_name): Remove
10444 globals.
10445 (parser_state::mark_struct_expression)
10446 (parser_state::mark_completion_tag): Now methods.
10447 (prefixify_expression): Add last_struct parameter.
10448 (prefixify_subexp): Likewise.
10449 (parse_exp_1): Update.
10450 (parse_exp_in_context): Add cstate parameter. Update.
10451 (parse_expression_for_completion): Create an
10452 expr_completion_state.
10453 (null_post_parser): Add "completion" parameter.
10454 * p-exp.y: Update rules.
10455 (yylex): Update.
10456 * language.h (struct language_defn) <la_post_parser>: Add
10457 "completing" parameter.
10458 * go-exp.y: Update rules.
10459 (lex_one_token): Update.
10460 * expression.h (parse_completion): Don't declare.
10461 * d-exp.y: Update rules.
10462 (lex_one_token): Update rules.
10463 * c-exp.y: Update rules.
10464 (lex_one_token): Update.
10465 * ada-lang.c (resolve): Add "parse_completion" parameter.
10466 (resolve_subexp): Likewise.
10467 (ada_resolve_function): Likewise.
10468
43476f0b
TT
104692019-04-04 Tom Tromey <tom@tromey.com>
10470
10471 * parser-defs.h (struct parser_state) <start_arglist,
10472 end_arglist>: New methods.
10473 <arglist_len, m_funcall_chain>: New members.
10474 (arglist_len, start_arglist, end_arglist): Don't declare.
10475 * parse.c (arglist_len, funcall_chain): Remove global.
10476 (start_arglist, end_arglist): Remove functions.
10477 (parse_exp_in_context): Update.
10478 * p-exp.y: Update rules.
10479 * m2-exp.y: Update rules.
10480 * go-exp.y: Update rules.
10481 * f-exp.y: Update rules.
10482 * d-exp.y: Update rules.
10483 * c-exp.y: Update rules.
10484
5776fca3
TT
104852019-04-04 Tom Tromey <tom@tromey.com>
10486
10487 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10488 lex_operator, push_back>: New methods.
10489 Update all rules.
10490 (rust_parser::lex_hex, lex_escape): Rename and update.
10491 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10492 (rust_parser::lex_operator): Rename and update.
10493 (rust_parser::lex_number, rustyylex, rustyyerror)
10494 (rust_lex_test_init, rust_lex_test_sequence)
10495 (rust_lex_test_push_back, rust_lex_tests): Update.
10496 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10497 parameter.
10498 <lexptr, prev_lexptr>: New members.
10499 (lexptr, prev_lexptr): Don't declare.
10500 * parse.c (lexptr, prev_lexptr): Remove globals.
10501 (parse_exp_in_context): Update.
10502 * p-exp.y (yylex, yyerror): Update.
10503 * m2-exp.y (parse_number, yylex, yyerror): Update.
10504 * go-exp.y (lex_one_token, yyerror): Update.
10505 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10506 * d-exp.y (lex_one_token, yyerror): Update.
10507 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10508 (lex_one_token, yyerror): Update.
10509 * ada-lex.l (YY_INPUT): Update.
10510 (rewind_to_char): Update.
10511 * ada-exp.y (yyerror): Update.
10512
8621b685
TT
105132019-04-04 Tom Tromey <tom@tromey.com>
10514
10515 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10516 * parser-defs.h (struct parser_state) <parser_state>: Add new
10517 parameter.
10518 <comma_terminates>: New member.
10519 (comma_terminates): Don't declare global.
10520 * parse.c (comma_terminates): Remove global.
10521 (parse_exp_in_context): Update.
10522 * p-exp.y (yylex): Update.
10523 * m2-exp.y (yylex): Update.
10524 * go-exp.y (lex_one_token): Update.
10525 * f-exp.y (yylex): Update.
10526 * d-exp.y (lex_one_token): Update.
10527 * c-exp.y (lex_one_token): Update.
10528 * ada-lex.l: Update.
10529
28aaf3fd
TT
105302019-04-04 Tom Tromey <tom@tromey.com>
10531
10532 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10533 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10534 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10535 * parser-defs.h (paren_depth): Don't declare.
10536 * parse.c (paren_depth): Remove global.
10537 (parse_exp_in_context): Update.
10538 * p-exp.y (paren_depth): New global.
10539 (pascal_parse): Initialize it.
10540 * m2-exp.y (paren_depth): New global.
10541 (m2_parse): Initialize it.
10542 * go-exp.y (paren_depth): New global.
10543 (go_parse): Initialize it.
10544 * f-exp.y (paren_depth): New global.
10545 (f_parse): Initialize it.
10546 * d-exp.y (paren_depth): New global.
10547 (d_parse): Initialize it.
10548 * c-exp.y (paren_depth): New global.
10549 (c_parse): Initialize it.
10550 * ada-lex.l (paren_depth): New global.
10551 (lexer_init): Initialize it.
10552
1e58a4a4
TT
105532019-04-04 Tom Tromey <tom@tromey.com>
10554
10555 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10556 (rust_parser::convert_ast_to_type)
10557 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10558 * parser-defs.h (struct parser_state) <parser_state>: Add
10559 parameters. Initialize new members.
10560 <expression_context_block, expression_context_pc>: New members.
10561 * parse.c (expression_context_block, expression_context_pc):
10562 Remove globals.
10563 (parse_exp_in_context): Update.
10564 * p-exp.y: Update all rules.
10565 (yylex): Update.
10566 * m2-exp.y: Update all rules.
10567 (yylex): Update.
10568 * go-exp.y (yylex): Update.
10569 * f-exp.y (yylex): Update.
10570 * d-exp.y: Update all rules.
10571 (yylex): Update.
10572 * c-exp.y: Update all rules.
10573 (lex_one_token, classify_name, yylex, c_parse): Update.
10574 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10575
37eedb39
TT
105762019-04-04 Tom Tromey <tom@tromey.com>
10577
10578 * gdbarch.h, gdbarch.c: Rebuild.
10579 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10580 * stap-probe.h:
10581 (struct stap_parse_info): Replace "parser_state" with
10582 "expr_builder".
10583 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10584 (parser_state): New class.
10585 * parse.c (expr_builder): Rename.
10586 (expr_builder::release): Rename.
10587 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10588 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10589 (write_exp_elt_longcst, write_exp_elt_floatcst)
10590 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10591 (write_exp_string_vector, write_exp_bitstring)
10592 (write_exp_msymbol, mark_struct_expression)
10593 (write_dollar_variable)
10594 (insert_type_address_space, increase_expout_size): Replace
10595 "parser_state" with "expr_builder".
10596 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10597 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10598 "parser_state" with "expr_builder".
10599
73923d7e
TT
106002019-04-04 Tom Tromey <tom@tromey.com>
10601
10602 * rust-exp.y: Replace "parse_language" with method call.
10603 * p-exp.y:
10604 (yylex): Replace "parse_language" with method call.
10605 * m2-exp.y:
10606 (yylex): Replace "parse_language" with method call.
10607 * go-exp.y (classify_name): Replace "parse_language" with method
10608 call.
10609 * f-exp.y (yylex): Replace "parse_language" with method call.
10610 * d-exp.y (lex_one_token): Replace "parse_language" with method
10611 call.
10612 * c-exp.y:
10613 (lex_one_token, classify_name, yylex): Replace "parse_language"
10614 with method call.
10615 * ada-exp.y (find_primitive_type, type_char)
10616 (type_system_address): Replace "parse_language" with method call.
10617
fa9f5be6
TT
106182019-04-04 Tom Tromey <tom@tromey.com>
10619
10620 * rust-exp.y: Replace "parse_gdbarch" with method call.
10621 * parse.c (write_dollar_variable, insert_type_address_space):
10622 Replace "parse_gdbarch" with method call.
10623 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10624 call.
10625 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10626 call.
10627 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10628 "parse_gdbarch" with method call.
10629 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10630 with method call.
10631 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10632 "parse_gdbarch" with method call.
10633 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10634 "parse_gdbarch" with method call.
10635 * c-exp.y (parse_type, parse_number, classify_name): Replace
10636 "parse_gdbarch" with method call.
10637 * ada-lex.l: Replace "parse_gdbarch" with method call.
10638 * ada-exp.y (parse_type, find_primitive_type, type_char)
10639 (type_system_address): Replace "parse_gdbarch" with method call.
10640
1201a264
TT
106412019-04-04 Tom Tromey <tom@tromey.com>
10642
10643 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10644 * stap-probe.c (stap_parse_argument): Update.
10645 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10646 initial_size parameter.
10647 * rust-exp.y (rust_lex_tests): Update.
10648 * parse.c (parser_state): Update.
10649 (parse_exp_in_context): Update.
10650 * parser-defs.h (struct parser_state) <parser_state>: Remove
10651 "initial_size" parameter.
10652
e3980ce2
TT
106532019-04-04 Tom Tromey <tom@tromey.com>
10654
10655 * parser-defs.h (increase_expout_size): Don't declare.
10656 * parse.c (increase_expout_size): Now static.
10657
e9f8e3f1
TS
106582019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10659
10660 * gnu-nat.c (gnu_nat_target::wait): Fix
10661 target_waitstatus_to_string call.
10662
d7df6549
AB
106632019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10664
10665 * eval.c (evaluate_subexp_standard): Handle internal functions
10666 during Fortran function call handling.
10667
8bdc1658
AB
106682019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10669
10670 * NEWS: Mention new internal functions.
10671 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10672 (read_base_type): Use dwarf2_init_complex_target_type.
10673 * value.c (creal_internal_fn): New function.
10674 (cimag_internal_fn): New function.
10675 (_initialize_values): Register new internal functions.
10676
c29705b7
PW
106772019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10678
10679 * infrun.c (stop_all_threads): If debug_infrun, always
10680 trace the wait status after wait_one, using
10681 target_waitstatus_to_string and target_pid_to_str.
10682 (handle_inferior_event): Replace various trace of
10683 wait status kind by a single trace.
10684 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10685 wait status kind image by target_waitstatus_to_string.
10686 * target/waitstatus.c (target_waitstatus_to_string): Fix
10687 obsolete comment.
10688
05caa1d2
TT
106892019-04-01 Tom Tromey <tromey@adacore.com>
10690
10691 PR symtab/23331:
10692 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10693
9d1447e0
SDJ
106942019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10695 Pedro Alves <palves@redhat.com>
10696
10697 * top.c (quit_force): Call 'finalize_values'.
10698 * value.c (finalize_values): New function.
10699 * value.h (finalize_values): Declare.
10700
7734102d
EZ
107012019-03-30 Eli Zaretskii <eliz@gnu.org>
10702
10703 * NEWS: Announce $_gdb_major and $_gdb_minor.
10704
10705 * top.c (init_gdb_version_vars): New function.
10706 (gdb_init): Call init_gdb_version_vars.
10707
188e1fa9
TT
107082019-03-29 Tom Tromey <tromey@adacore.com>
10709
10710 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10711 help text. Remove dead code.
10712
2880242d
KS
107132019-03-29 Keith Seitz <keiths@redhat.com>
10714
10715 From Siddhesh Poyarekar:
10716 * f-lang.h (f77_get_upperbound): Return LONGEST.
10717 (f77_get_lowerbound): Likewise.
10718 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10719 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10720 print them.
10721 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10722 plongest to format print it.
10723 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10724 (f77_get_upperbound): Likewise.
10725 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10726 LOWER_BOUND to LONGEST.
10727 (f77_create_arrayprint_offset_tbl): Likewise.
10728
cc1defb1
KS
107292019-03-29 Keith Seitz <keiths@redhat.com>
10730
10731 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10732 %s/pulongest for TYPE_LENGTH instead of %d in format
10733 strings.
10734 * ada-typerint.c (ada_print_type): Likewise.
10735 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10736 * compile/compile-c-support.c (generate_register_struct): Likewise.
10737 * gdbtypes.c (recursive_dump_type): Likewise.
10738 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10739 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10740 instead of %d in format strings.
10741 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10742 to std::min to ULONGEST.
10743 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10744 instead of %d in format strings.
10745 * tracepoint.c (info_scope_command): Likewise.
10746 * typeprint.c (print_offset_data::update)
10747 (print_offset_data::finish): Likewise.
10748 * xtensa-tdep.c (xtensa_store_return_value)
10749 (xtensa_push_dummy_call): Likewise.
10750
e432ccf1
JT
107512019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10752
10753 * windows-nat.c (display_selector): Fixed format specifications
10754 for 64-bit Cygwin.
10755
65d2b333
PW
107562019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10757
10758 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10759
f489207e
SL
107602019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10761
10762 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10763 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10764 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10765 (nios2_linux_init_abi): Install it.
10766
bffa1015
AH
107672019-03-28 Alan Hayward <alan.hayward@arm.com>
10768
10769 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10770
fc96163a
AH
107712019-03-28 Alan Hayward <alan.hayward@arm.com>
10772
10773 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10774
20dc7e9b
PW
107752019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10776 Tom Tromey <tromey@adacore.com>
10777
10778 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10779
7f5331a8
JB
107802019-03-26 Joel Brobecker <brobecker@adacore.com>
10781
10782 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10783 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10784 method to compute the bounds of range types. Also print "[evaluated]"
10785 if the bounds' values come from a dynamic evaluation.
10786
18c77628
AB
107872019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10788
10789 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10790 whitespace when pretty printing is on.
10791
53c973f2
AH
107922019-03-26 Alan Hayward <alan.hayward@arm.com>
10793
e79be6e5 10794 * ppc-linux-nat.c: Add include.
53c973f2 10795
d851aa71
AH
107962019-03-26 Alan Hayward <alan.hayward@arm.com>
10797
e79be6e5 10798 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10799
2fe7bab7
AH
108002019-03-26 Alan Hayward <alan.hayward@arm.com>
10801
e79be6e5 10802 * arm-linux-nat.c: Add include.
2fe7bab7 10803
068ef30e
SM
108042019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10805
10806 * source-cache.c (source_cache::get_source_lines): Re-read
10807 fullname after calling open_source_file.
10808
81a24d04
JB
108092019-03-25 John Baldwin <jhb@FreeBSD.org>
10810
10811 * NEWS: Mention TLS support for FreeBSD.
10812
79e7ae11
TT
108132019-03-25 Tom Tromey <tromey@adacore.com>
10814
10815 * minsyms.c (BUNCH_SIZE): Update comment.
10816 (~minimal_symbol_reader): Remove old comment.
10817 (compact_minimal_symbols): Update comment.
10818 (minimal_symbol_reader::install): Remove old comment. Update
10819 other comments.
10820
d45963c2
AH
108212019-03-25 Alan Hayward <alan.hayward@arm.com>
10822
10823 * s390-linux-nat.c: Add include.
10824
0f83012e
AH
108252019-03-25 Alan Hayward <alan.hayward@arm.com>
10826
10827 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10828 Call linux_get_hwcap.
10829 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10830 Likewise.
10831 (aarch64_linux_get_hwcap): Remove function.
10832 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10833 declaration.
10834 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10835 linux_get_hwcap.
10836 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10837 * linux-tdep.c (linux_get_hwcap): Add function.
10838 (linux_get_hwcap2): Likewise.
10839 * linux-tdep.h (linux_get_hwcap): Add declaration.
10840 (linux_get_hwcap2): Likewise.
10841 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10842 (ppc_linux_get_hwcap2): Likewise.
10843 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10844 linux_get_hwcap.
10845 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10846 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10847 (ppc_linux_nat_target::read_description): Likewise.
10848 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10849 * s390-linux-nat.c: Likewise.
10850 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10851
6640a367
TT
108522019-03-24 Tom Tromey <tom@tromey.com>
10853
10854 * ada-lang.c (standard_lookup): Simplify initialization.
10855 (ada_lookup_symbol_nonlocal): Simplify return.
10856 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10857 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10858 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10859 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10860 initialization.
10861 * solib.c (solib_global_lookup): Simplify.
10862 * symtab.c (null_block_symbol): Remove.
10863 (symbol_cache_lookup): Simplify returns.
10864 (lookup_language_this): Simplify returns.
10865 (lookup_symbol_aux): Simplify return.
10866 (lookup_local_symbol): Simplify returns.
10867 (lookup_global_symbol_from_objfile): Simplify return.
10868 (lookup_symbol_in_objfile_symtabs)
10869 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10870 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10871 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10872 * cp-namespace.c (cp_lookup_bare_symbol)
10873 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10874 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10875 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10876 (cp_lookup_symbol_via_imports): Simplify initialization.
10877 (find_symbol_in_baseclass): Likewise.
10878 * symtab.h (null_block_symbol): Remove.
10879 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10880 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10881 (d_lookup_symbol_module): Likewise.
10882 (find_symbol_in_baseclass): Simplify initialization.
10883
a930ebcd
TT
108842019-03-24 Tom Tromey <tom@tromey.com>
10885
10886 * expression.h: Don't include symtab.h.
10887 (struct block): Forward declare.
10888
582942f4
TT
108892019-03-24 Tom Tromey <tom@tromey.com>
10890
10891 * c-exp.y (typebase): Remove casts.
10892 * gdbtypes.c (lookup_unsigned_typename, )
10893 (lookup_signed_typename): Remove cast.
10894 * eval.c (parse_to_comma_and_eval): Remove cast.
10895 * parse.c (write_dollar_variable): Remove cast.
10896 * block.h (struct block) <superblock>: Now const.
10897 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10898 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10899 (map_block): Make "block" const.
10900 * symfile.h (struct quick_symbol_functions)
10901 <map_matching_symbols>: Constify block argument to "callback".
10902 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10903 const.
10904 (find_pc_sect_compunit_symtab): Make "b" const.
10905 (find_symbol_at_address): Likewise.
10906 (search_symbols): Likewise.
10907 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10908 (dw2_debug_names_lookup_symbol): Likewise.
10909 (dw2_map_matching_symbols): Update.
10910 * p-valprint.c (pascal_val_print): Remove "block".
10911 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10912 (aux_add_nonlocal_symbols): Make "block" const.
10913 (resolve_subexp): Remove cast.
10914 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10915 const.
10916 (iterate_over_file_blocks): Likewise.
10917 * f-exp.y (%union) <bval>: Remove.
10918 * coffread.c (patch_opaque_types): Make "b" const.
10919 * spu-tdep.c (spu_catch_start): Make "block" const.
10920 * c-valprint.c (print_unpacked_pointer): Remove "block".
10921 * symmisc.c (dump_symtab_1): Make "b" const.
10922 (block_depth): Make "block" const.
10923 * d-exp.y (%union) <bval>: Remove.
10924 * cp-support.h (cp_lookup_rtti_type): Update.
10925 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10926 * psymtab.c (psym_lookup_symbol): Make "block" const.
10927 (maintenance_check_psymtabs): Make "b" const.
10928 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10929 (enumerate_locals, enumerate_args): Update.
10930 * python/py-symtab.c (stpy_global_block): Make "block" const.
10931 (stpy_static_block): Likewise.
10932 * inline-frame.c (block_starting_point_at): Make "new_block"
10933 const.
10934 * block.c (find_block_in_blockvector): Make return type const.
10935 (blockvector_for_pc_sect): Make "b" const.
10936 (find_block_in_blockvector): Make "b" const.
10937
7ad417dd
TT
109382019-03-23 Tom Tromey <tom@tromey.com>
10939
10940 * varobj.c (varobj_create): Update.
10941 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10942 * printcmd.c (display_command, do_one_display): Don't reset
10943 innermost_block.
10944 * parser-defs.h (enum innermost_block_tracker_type): Move to
10945 expression.h.
10946 (innermost_block): Update comment.
10947 * parse.c (parse_exp_1): Add tracker_types parameter.
10948 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10949 tracker_types parameter. Reset innermost_block.
10950 (parse_exp_in_context): Remove.
10951 (parse_expression_for_completion): Update.
10952 * objfiles.c (~objfile): Don't reset expression_context_block or
10953 innermost_block.
10954 * expression.h (enum innermost_block_tracker_type): Move from
10955 parser-defs.h.
10956 (parse_exp_1): Add tracker_types parameter.
10957 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10958 reset innermost_block.
10959
b366c208
TT
109602019-03-23 Tom Tromey <tom@tromey.com>
10961
10962 * objfiles.h: Include bcache.h.
10963
9bb9b2f9
TT
109642019-03-23 Tom Tromey <tom@tromey.com>
10965
10966 * linespec.c (get_current_search_block): Use
10967 scoped_restore_current_language.
10968 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10969
59c28372
AH
109702019-03-22 Alan Hayward <alan.hayward@arm.com>
10971 Jiong Wang <jiong.wang@arm.com>
10972
10973 * aarch64-linux-tdep.c
10974 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10975 section.
10976 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10977
17e116a7
AH
109782019-03-22 Alan Hayward <alan.hayward@arm.com>
10979 Jiong Wang <jiong.wang@arm.com>
10980
10981 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10982 instructions.
10983 (aarch64_analyze_prologue_test): Add PACIASP test.
10984 (aarch64_prologue_prev_register): Unmask PC value.
10985
11e1b75f
AH
109862019-03-22 Alan Hayward <alan.hayward@arm.com>
10987 Jiong Wang <jiong.wang@arm.com>
10988
10989 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10990 (aarch64_dwarf2_prev_register): Unmask PC value.
10991 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10992 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10993 DW_CFA_AARCH64_negate_ra_state.
10994 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10995
34dcc7cf
AH
109962019-03-22 Alan Hayward <alan.hayward@arm.com>
10997 Jiong Wang <jiong.wang@arm.com>
10998
10999 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11000 registers.
11001 (aarch64_pseudo_register_name): Likewise.
11002 (aarch64_pseudo_register_type): Likewise.
11003 (aarch64_pseudo_register_reggroup_p): Likewise.
11004 (aarch64_gdbarch_init): Add pauth registers.
11005 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11006 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11007 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11008 (struct gdbarch_tdep): Add regnum for ra_state.
11009
1ef53e6b
AH
110102019-03-22 Alan Hayward <alan.hayward@arm.com>
11011 Jiong Wang <jiong.wang@arm.com>
11012
11013 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11014
76bed0fd
AH
110152019-03-22 Alan Hayward <alan.hayward@arm.com>
11016 Jiong Wang <jiong.wang@arm.com>
11017
11018 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11019 function.
11020 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11021 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11022 (aarch64_gdbarch_init): Add puth registers.
11023 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11024 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11025 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11026
ee4fbcfa
AH
110272019-03-22 Alan Hayward <alan.hayward@arm.com>
11028 Jiong Wang <jiong.wang@arm.com>
11029
11030 * aarch64-linux-nat.c
11031 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11032 * aarch64-linux-tdep.c
11033 (aarch64_linux_core_read_description): Likewise.
11034 (aarch64_linux_get_hwcap): New function.
11035 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11036 (aarch64_linux_get_hwcap): New declaration.
11037
6dc0ebde
AH
110382019-03-22 Alan Hayward <alan.hayward@arm.com>
11039 Jiong Wang <jiong.wang@arm.com>
11040
11041 * aarch64-linux-nat.c
11042 (aarch64_linux_nat_target::read_description): Add pauth param.
11043 * aarch64-linux-tdep.c
11044 (aarch64_linux_core_read_description): Likewise.
11045 * aarch64-tdep.c (struct target_desc): Add in pauth.
11046 (aarch64_read_description): Add pauth param.
11047 (aarch64_gdbarch_init): Likewise.
11048 * aarch64-tdep.h (aarch64_read_description): Likewise.
11049 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11050 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11051 * features/Makefile: Add new files.
11052 * features/aarch64-pauth.c: New file.
11053 * features/aarch64-pauth.xml: New file.
11054
595915c1
TT
110552019-03-20 Tom Tromey <tromey@adacore.com>
11056
11057 * infrun.c (handle_inferior_event): Rename from
11058 handle_inferior_event_1. Create a scoped_value_mark.
11059 (handle_inferior_event): Remove.
11060
4c7d57e7
TT
110612019-03-19 Tom Tromey <tromey@adacore.com>
11062
11063 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11064 * infrun.h (print_stop_event): Add "displays" parameter.
11065 * infrun.c (print_stop_event): Add "displays" parameter.
11066
cb246234
PA
110672019-03-19 Pedro Alves <palves@redhat.com>
11068
11069 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11070 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11071 to -1. Fix TABs vs spaces.
11072 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11073 * tui/tui-out.h (tui_ui_out) Add intro comments.
11074 <m_line, m_start_of_line>: In-class initialize, and add describing
11075 comment.
11076
3a0e45b2
AH
110772019-03-18 Alan Hayward <alan.hayward@arm.com>
11078
11079 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11080 variable names.
11081 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11082
5371b850
PA
110832019-03-18 Pedro Alves <palves@redhat.com>
11084 Eli Zaretskii <eliz@gnu.org>
11085
11086 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11087 m_line and m_start_of_line.
11088
b17c4cd0
EZ
110892019-03-18 Eli Zaretskii <eliz@gnu.org>
11090
11091 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11092 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11093 it returns a newline. This fixes a regression in TU mode, whereby
11094 the next line is output on the same screen line as the user input.
11095
4bd56d18
TT
110962019-03-18 Tom Tromey <tromey@adacore.com>
11097
11098 * minsyms.c (minimal_symbol_reader::install): Remove call to
11099 obstack_blank.
11100
55c10aca
PA
111012019-03-18 Pedro Alves <palves@redhat.com>
11102
11103 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11104 New globals.
11105 (apply_style): New, factored out from ...
11106 (apply_ansi_escape): ... this. Handle reverse video mode.
11107 (tui_set_reverse_mode): New function.
11108 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11109 * tui/tui-winsource.c (tui_show_source_line): Use
11110 tui_set_reverse_mode instead of setting A_STANDOUT.
11111 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11112 New setter methods.
11113
647bb750
HD
111142019-03-18 Hannes Domani <ssbssa@yahoo.de>
11115
11116 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11117 Handle tabs.
11118
bff8c71f
TT
111192019-03-18 Tom Tromey <tromey@adacore.com>
11120
11121 * ada-lang.c (empty_array): Add "high" parameter.
11122 (ada_evaluate_subexp): Update.
11123
58785d98
ST
111242019-03-17 Sergei Trofimovich <siarheit@google.com>
11125
11126 * unittests/string_view-selftests.c: Define
11127 _initialize_string_view_selftests unconditionally.
11128
d4cbef22
ВМ
111292019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11130
11131 PR gdb/24350
11132 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11133
fce4c071
ВМ
111342019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11135
11136 PR gdb/24351
11137 * windows-nat.c (display_selector): Fix format specifiers.
11138
f7f0a123
EZ
111392019-03-17 Eli Zaretskii <eliz@gnu.org>
11140
11141 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11142 tui_refill_source_window instead of tui_refresh_win, to update the
11143 current execution line. This fixes redisplay of the current line
11144 when stepping through the code with "next" or "step".
11145
ab42892f
EZ
111462019-03-16 Eli Zaretskii <eliz@gnu.org>
11147
11148 * source-cache.c (source_cache::get_source_lines): Call
11149 find_source_lines to initialize s->nlines. This fixes vertical
11150 scrolling of TUI source window when the DOWN arrow is pressed.
11151
8d8c087f
PW
111522019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11153
11154 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11155 linux-thread-db.c (_initialize_thread_db): Likewise.
11156
798e1c30
EZ
111572019-03-16 Eli Zaretskii <eliz@gnu.org>
11158
11159 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11160 wclrtoeol in tui_show_source_line". This reverts changes made in
11161 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11162
eefba3da
TT
111632019-03-15 Tom Tromey <tom@tromey.com>
11164
11165 * symtab.h (struct minimal_symbol): Derive from
11166 general_symbol_info.
11167 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11168 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11169 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11170 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11171 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11172 (MSYMBOL_SEARCH_NAME): Update.
11173 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11174 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11175 * minsyms.c (minimal_symbol_reader::record_full): Update.
11176
0de2420c
TT
111772019-03-15 Tom Tromey <tom@tromey.com>
11178
11179 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11180
042d75e4
TT
111812019-03-15 Tom Tromey <tom@tromey.com>
11182
11183 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11184 unique_xmalloc_ptr.
11185 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11186 Update.
11187 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11188 (build_minimal_symbol_hash_tables)
11189 (minimal_symbol_reader::install): Update.
11190
db92718b
TT
111912019-03-15 Tom Tromey <tom@tromey.com>
11192
11193 * symtab.c (create_demangled_names_hash): Update.
11194 (symbol_set_names): Update.
11195 * objfiles.h (struct objfile_per_bfd_storage)
11196 <demangled_names_hash>: Now an htab_up.
11197 * objfiles.c (objfile_per_bfd_storage): Simplify.
11198
d6797f46
TT
111992019-03-15 Tom Tromey <tom@tromey.com>
11200
11201 * objfiles.h (struct objfile_per_bfd_storage): Declare
11202 destructor.
11203 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11204 New.
11205 (get_objfile_bfd_data): Use new. Don't initialize
11206 language_of_main.
11207 (free_objfile_per_bfd_storage): Remove.
11208 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11209
741d7538
TT
112102019-03-15 Tom Tromey <tom@tromey.com>
11211
11212 * symfile.c (reread_symbols): Update.
11213 * objfiles.c (objfile::objfile): Update.
11214 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11215 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11216 comment.
11217 (minimal_symbol_reader::install): Update.
11218 (terminate_minimal_symbol_table): Remove.
11219 * jit.c (jit_object_close_impl): Update.
11220
788c80d1
TT
112212019-03-15 Tom Tromey <tom@tromey.com>
11222
11223 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11224 initializations.
11225
1b7a07cb
TT
112262019-03-15 Tom Tromey <tom@tromey.com>
11227
11228 * objfiles.h (struct objfile_per_bfd_storage)
11229 <demangled_hash_languages>: Now a bitset.
11230 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11231 (lookup_minimal_symbol): Update.
11232
3db066bc
TT
112332019-03-15 Tom Tromey <tom@tromey.com>
11234
11235 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11236 Don't return the symbol.
11237 * coffread.c (record_minimal_symbol): Use record_full.
11238
3fff2c37
EZ
112392019-03-14 Eli Zaretskii <eliz@gnu.org>
11240
11241 The MS-Windows port of ncurses fails to switch to a color pair if
11242 one or both of the colors are the implicit default colors. This
11243 change records the default colors when TUI is initialized, and
11244 then specifies them explicitly when a color pair uses the default
11245 colors. This allows color styling in TUI mode on MS-Windows.
11246
11247 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11248 ncurses_norm_attr.
11249 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11250 colors in ncurses_norm_attr.
11251 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11252 "none", replace it with the default color recorded in
11253 ncurses_norm_attr.
11254
3b336828
TT
112552019-03-14 Tom Tromey <tromey@adacore.com>
11256
11257 * source-cache.h (class source_cache) <get_source_lines>: Return
11258 std::string.
11259 * source-cache.c (source_cache::extract_lines): Handle case where
11260 first_pos==npos. Return std::string.
11261 (source_cache::get_source_lines): Update.
11262
d085f989
TT
112632019-03-14 Tom Tromey <tromey@adacore.com>
11264
11265 * NEWS: Add item for "style sources" commands.
11266 * source-cache.c (source_cache::get_source_lines): Check
11267 source_styling.
11268 * cli/cli-style.c (source_styling): New global.
11269 (_initialize_cli_style): Add "style sources" commands.
11270 (show_style_sources): New function.
11271 * cli/cli-style.h (source_styling): Declare.
11272
6f11e682
TT
112732019-03-14 Pedro Alves <palves@redhat.com>
11274 Tom Tromey <tromey@adacore.com>
11275
11276 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11277 * tui/tui-winsource.c (tui_refill_source_window): New function,
11278 from...
11279 (tui_horizontal_source_scroll): ... here. Move some logic.
11280 * cli/cli-style.c (set_style_enabled): Notify new observable.
11281 * tui/tui-hooks.c (tui_redisplay_source): New function.
11282 (tui_attach_detach_observers): Attach or detach
11283 tui_redisplay_source.
11284 * observable.h (source_styling_changed): New observable.
11285 * observable.c: Define source_styling_changed observable.
11286
a068643d
TT
112872019-03-13 Tom Tromey <tromey@adacore.com>
11288
11289 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11290 (i386_gnu_nat_target::store_registers): Update.
11291 * target-debug.h (target_debug_print_std_string): New macro.
11292 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11293 * windows-tdep.c (display_one_tib): Update.
11294 * tui/tui-stack.c (tui_make_status_line): Update.
11295 * top.c (print_inferior_quit_action): Update.
11296 * thread.c (thr_try_catch_cmd): Update.
11297 (add_thread_with_info): Update.
11298 (thread_target_id_str): Update.
11299 (thr_try_catch_cmd): Update.
11300 (thread_command): Update.
11301 (thread_find_command): Update.
11302 * record-btrace.c (record_btrace_target::info_record)
11303 (record_btrace_resume_thread, record_btrace_target::resume)
11304 (record_btrace_cancel_resume, record_btrace_step_thread)
11305 (record_btrace_target::wait, record_btrace_target::wait)
11306 (record_btrace_target::wait, record_btrace_target::stop): Update.
11307 * progspace.c (print_program_space): Update.
11308 * process-stratum-target.c
11309 (process_stratum_target::thread_address_space): Update.
11310 * linux-fork.c (linux_fork_mourn_inferior)
11311 (detach_checkpoint_command, info_checkpoints_command)
11312 (linux_fork_context): Update.
11313 (linux_fork_detach): Update.
11314 (class scoped_switch_fork_info): Update.
11315 (delete_checkpoint_command): Update.
11316 * infrun.c (follow_fork_inferior): Update.
11317 (follow_fork_inferior): Update.
11318 (proceed_after_vfork_done): Update.
11319 (handle_vfork_child_exec_or_exit): Update.
11320 (follow_exec): Update.
11321 (displaced_step_prepare_throw): Update.
11322 (displaced_step_restore): Update.
11323 (start_step_over): Update.
11324 (resume_1): Update.
11325 (clear_proceed_status_thread): Update.
11326 (proceed): Update.
11327 (print_target_wait_results): Update.
11328 (do_target_wait): Update.
11329 (context_switch): Update.
11330 (stop_all_threads): Update.
11331 (restart_threads): Update.
11332 (finish_step_over): Update.
11333 (handle_signal_stop): Update.
11334 (switch_back_to_stepped_thread): Update.
11335 (keep_going_pass_signal): Update.
11336 (print_exited_reason): Update.
11337 (normal_stop): Update.
11338 * inferior.c (inferior_pid_to_str): Change return type.
11339 (print_selected_inferior): Update.
11340 (add_inferior): Update.
11341 (detach_inferior): Update.
11342 * dummy-frame.c (fprint_dummy_frames): Update.
11343 * dcache.c (dcache_info_1): Update.
11344 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11345 (btrace_fetch, btrace_clear): Update.
11346 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11347 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11348 type.
11349 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11350 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11351 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11352 * gdbarch.c, gdbarch.h: Rebuild.
11353 * gdbarch.sh (core_pid_to_str): Change return type.
11354 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11355 return type.
11356 (windows_nat_target::pid_to_str): Change return type.
11357 (windows_delete_thread): Update.
11358 (windows_nat_target::attach): Update.
11359 (windows_nat_target::files_info): Update.
11360 * target-delegates.c: Rebuild.
11361 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11362 return type.
11363 (sol_thread_target::pid_to_str): Change return type.
11364 * remote.c (class remote_target) <pid_to_str>: Change return
11365 type.
11366 (remote_target::pid_to_str): Change return type.
11367 (extended_remote_target::attach, remote_target::remote_stop_ns)
11368 (remote_target::remote_notif_remove_queued_reply)
11369 (remote_target::push_stop_reply, remote_target::disable_btrace):
11370 Update.
11371 (extended_remote_target::attach): Update.
11372 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11373 type.
11374 (gdbsim_target::pid_to_str): Change return type.
11375 * ravenscar-thread.c (struct ravenscar_thread_target)
11376 <pid_to_str>: Change return type.
11377 (ravenscar_thread_target::pid_to_str): Change return type.
11378 * procfs.c (class procfs_target) <pid_to_str>: Change return
11379 type.
11380 (procfs_target::pid_to_str): Change return type.
11381 (procfs_target::attach): Update.
11382 (procfs_target::detach): Update.
11383 (procfs_target::fetch_registers): Update.
11384 (procfs_target::store_registers): Update.
11385 (procfs_target::wait): Update.
11386 (procfs_target::files_info): Update.
11387 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11388 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11389 return type.
11390 (nto_procfs_target::pid_to_str): Change return type.
11391 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11392 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11393 return type.
11394 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11395 (exit_lwp): Update.
11396 (attach_proc_task_lwp_callback, get_detach_signal)
11397 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11398 (linux_nat_target::resume, wait_lwp, stop_callback)
11399 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11400 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11401 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11402 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11403 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11404 type.
11405 (inf_ptrace_target::attach): Update.
11406 (inf_ptrace_target::files_info): Update.
11407 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11408 type.
11409 (go32_nat_target::pid_to_str): Change return type.
11410 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11411 (gnu_nat_target::wait): Update.
11412 (gnu_nat_target::wait): Update.
11413 (gnu_nat_target::resume): Update.
11414 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11415 (fbsd_nat_target::wait): Update.
11416 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11417 type.
11418 (darwin_nat_target::attach): Update.
11419 * corelow.c (class core_target) <pid_to_str>: Change return type.
11420 (core_target::pid_to_str): Change return type.
11421 * target.c (normal_pid_to_str): Change return type.
11422 (default_pid_to_str): Likewise.
11423 (target_pid_to_str): Change return type.
11424 (target_translate_tls_address): Update.
11425 (target_announce_detach): Update.
11426 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11427 return type.
11428 (bsd_uthread_target::pid_to_str): Change return type.
11429 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11430 type.
11431 (bsd_kvm_target::pid_to_str): Change return type.
11432 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11433 return type.
11434 (aix_thread_target::pid_to_str): Change return type.
11435 * target.h (struct target_ops) <pid_to_str>: Change return type.
11436 (target_pid_to_str, normal_pid_to_str): Likewise.
11437 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11438 type.
11439 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11440 type.
11441 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11442 return type.
11443 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11444 type.
11445 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11446 type.
11447 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11448 return type.
11449
b4be1b06
SM
114502019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11451
11452 * NEWS: Mention that the new default MI version is 3. Mention
11453 changes to the output of commands and events that deal with
11454 multi-location breakpoints.
11455 * breakpoint.c: Include "mi/mi-out.h".
11456 (print_one_breakpoint): Change output syntax if using MI version
11457 >= 3.
11458 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11459 New.
11460 (mi_multi_location_breakpoint_output_fixed): New.
11461 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11462 (mi_cmd_fix_multi_location_breakpoint_output): New.
11463 (mi_multi_location_breakpoint_output_fixed): New.
11464 * mi/mi-cmds.c (mi_cmds): Register command
11465 -fix-multi-location-breakpoint-output.
11466 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11467 interpreter "mi".
11468
8e5e5494
SM
114692019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11470
11471 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11472 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11473 instantiate mi_ui_out based on interpreter name.
11474 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11475 * mi/mi-main.c (mi_load_progress): Likewise.
11476
197df35e
JB
114772019-03-12 John Baldwin <jhb@FreeBSD.org>
11478
11479 * NEWS: Combine separate "New targets" sections for 8.3.
11480
8399425f
JB
114812019-03-12 John Baldwin <jhb@FreeBSD.org>
11482
11483 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11484 (ppcfbsd_init_abi): Install gdbarch
11485 "fetch_tls_load_module_address" and "get_thread_local_address"
11486 methods.
11487
b0f87ed0
JB
114882019-03-12 John Baldwin <jhb@FreeBSD.org>
11489
11490 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11491 (riscv_fbsd_init_abi): Install gdbarch
11492 "fetch_tls_load_module_address" and "get_thread_local_address"
11493 methods.
11494
ce25aa57
JB
114952019-03-12 John Baldwin <jhb@FreeBSD.org>
11496
11497 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11498 (i386fbsd_init_abi): Install gdbarch
11499 "fetch_tls_load_module_address" and "get_thread_local_address"
11500 methods.
11501
f5424cfa
JB
115022019-03-12 John Baldwin <jhb@FreeBSD.org>
11503
11504 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11505 (amd64fbsd_init_abi): Install gdbarch
11506 "fetch_tls_load_module_address" and "get_thread_local_address"
11507 methods.
11508
945f3901
JB
115092019-03-12 John Baldwin <jhb@FreeBSD.org>
11510
11511 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11512 (struct fbsd_pspace_data): New type.
11513 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11514 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11515 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11516 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11517 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11518
ef0bd204
JB
115192019-03-12 John Baldwin <jhb@FreeBSD.org>
11520
11521 * gdbtypes.c (lookup_struct_elt): New function.
11522 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11523 * gdbtypes.h (struct struct_elt): New type.
11524 (lookup_struct_elt): New prototype.
11525
36c53a02
JB
115262019-03-12 John Baldwin <jhb@FreeBSD.org>
11527
11528 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11529 remove disabled code block.
11530
6e056c81
JB
115312019-03-12 John Baldwin <jhb@FreeBSD.org>
11532
11533 * gdbarch.sh (get_thread_local_address): New method.
11534 * gdbarch.h, gdbarch.c: Regenerate.
11535 * target.c (target_translate_tls_address): Use
11536 gdbarch_get_thread_local_address if present instead of
11537 target::get_thread_local_address.
11538
cd250a18
JB
115392019-03-12 John Baldwin <jhb@FreeBSD.org>
11540
11541 * target.h (target::get_thread_local_address): Update comment.
11542
df22c1e5
JB
115432019-03-12 John Baldwin <jhb@FreeBSD.org>
11544
11545 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11546 objfile->separate_debug_objfile_backlink if not NULL.
11547
dd6876c9
JB
115482019-03-12 John Baldwin <jhb@FreeBSD.org>
11549
11550 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11551 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11552 (amd64bsd_store_inferior_registers): Likewise.
11553 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11554 Enable segment base registers.
11555 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11556 PT_GETFSBASE and PT_GETGSBASE.
11557 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11558 PT_SETGSBASE.
11559 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11560 segment base registers.
11561 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11562
1163a4b7
JB
115632019-03-12 John Baldwin <jhb@FreeBSD.org>
11564
11565 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11566 Update calls to i386_target_description to add 'segments'
11567 parameter.
11568 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11569 add segment base registers.
11570 * arch/i386.c (i386_create_target_description): Add 'segments'
11571 parameter to enable segment base registers.
11572 * arch/i386.h (i386_create_target_description): Likewise.
11573 * features/i386/32bit-segments.xml: New file.
11574 * features/i386/32bit-segments.c: Generate.
11575 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11576 call to i386_target_description to add 'segments' parameter.
11577 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11578 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11579 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11580 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11581 if feature is present.
11582 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11583 Add 'segments' parameter to call to i386_target_description.
11584 (i386_target_description): Add 'segments' parameter to enable
11585 segment base registers.
11586 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11587 to call to i386_target_description.
11588 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11589 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11590 Define I386_NUM_REGS.
11591 (i386_target_description): Add 'segments' parameter to enable
11592 segment base registers.
11593
3a350822
EZ
115942019-03-12 Eli Zaretskii <eliz@gnu.org>
11595
11596 PR/24325
11597 * source-cache.c: #undef open and close, to avoid unresolved
11598 externals during linking.
11599
ffdd69cf
TT
116002019-03-12 Tom Tromey <tromey@adacore.com>
11601
11602 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11603 const. Add initializers.
11604 (_initialize_remote): Don't initialize ptid globals.
11605
ec148c57
PA
116062019-03-12 Pedro Alves <palves@redhat.com>
11607
11608 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11609
32764270
PA
116102019-03-12 Pedro Alves <palves@redhat.com>
11611
11612 * cp-name-parser.y (main): Remove unused 'len' variable.
11613
17547186
TT
116142019-03-12 Tom Tromey <tromey@adacore.com>
11615
11616 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11617 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11618
d3a70e03
TT
116192019-03-12 Tom Tromey <tromey@adacore.com>
11620
11621 * linux-nat.c (iterate_over_lwps): Update.
11622 (stop_callback): Remove parameter.
11623 (stop_wait_callback, detach_callback, resume_set_callback)
11624 (select_singlestep_lwp_callback, set_ignore_sigint)
11625 (status_callback, resumed_callback, resume_clear_callback)
11626 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11627 data parameter.
11628 (linux_nat_target::detach, linux_nat_target::resume)
11629 (linux_stop_and_wait_all_lwps, select_event_lwp)
11630 (linux_nat_filter_event, linux_nat_wait_1)
11631 (linux_nat_target::kill, linux_nat_target::stop)
11632 (linux_nat_target::stop): Update.
11633 (linux_nat_resume_callback): Change type.
11634 (resume_stopped_resumed_lwps, count_events_callback)
11635 (select_event_lwp_callback): Likewise.
11636 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11637 * arm-linux-nat.c (struct update_registers_data): Remove.
11638 (update_registers_callback): Change type.
11639 (arm_linux_insert_hw_breakpoint1): Update.
11640 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11641 parameter.
11642 (x86_linux_dr_set_addr): Update.
11643 (x86_linux_dr_set_control): Update.
11644 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11645 (iterate_over_lwps): Use gdb::function_view.
11646 * nat/aarch64-linux-hw-point.c (struct
11647 aarch64_dr_update_callback_param): Remove.
11648 (debug_reg_change_callback): Change type.
11649 (aarch64_notify_debug_reg_change): Update.
11650 * s390-linux-nat.c (s390_refresh_per_info): Update.
11651
82cb27ff
TT
116522019-03-11 Tom Tromey <tromey@adacore.com>
11653
11654 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11655 redundant assignment to "this_cu".
11656
568c0683
SM
116572019-03-08 Simon Marchi <simon.marchi@efficios.com>
11658
11659 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11660
f09ce22d
SM
116612019-03-08 Simon Marchi <simon.marchi@efficios.com>
11662
11663 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11664 from...
11665 (rank_one_type): ... this.
11666
595f96a9
SM
116672019-03-08 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11670 from...
11671 (rank_one_type): ... this.
11672
2598a94b
SM
116732019-03-08 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11676 from...
11677 (rank_one_type): ... this.
11678
7f17b20d
SM
116792019-03-08 Simon Marchi <simon.marchi@efficios.com>
11680
11681 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11682 from...
11683 (rank_one_type): ... this.
11684
2c509035
SM
116852019-03-08 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11688 from...
11689 (rank_one_type): ... this.
11690
0dd322dc
SM
116912019-03-08 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11694 from...
11695 (rank_one_type): ... this.
11696
41ea4728
SM
116972019-03-08 Simon Marchi <simon.marchi@efficios.com>
11698
11699 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11700 from...
11701 (rank_one_type): ... this.
11702
793cd1d2
SM
117032019-03-08 Simon Marchi <simon.marchi@efficios.com>
11704
11705 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11706 from...
11707 (rank_one_type): ... this.
11708
34910087
SM
117092019-03-08 Simon Marchi <simon.marchi@efficios.com>
11710
11711 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11712 from...
11713 (rank_one_type): ... this.
11714
f1f832d6
SM
117152019-03-08 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11718 from...
11719 (rank_one_type): ... this.
11720
b9f4512f
SM
117212019-03-08 Simon Marchi <simon.marchi@efficios.com>
11722
11723 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11724 from...
11725 (rank_one_type): ... this.
11726
9293fc63
SM
117272019-03-08 Simon Marchi <simon.marchi@efficios.com>
11728
11729 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11730 from...
11731 (rank_one_type): ... this.
11732
e3abbe7e
PW
117332019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11734
11735 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11736 inferior-events' shows the example events.
11737
e4adb939
EZ
117382019-03-08 Eli Zaretskii <eliz@gnu.org>
11739
11740 Support styling on native MS-Windows console
11741
11742 PR/24315
11743 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11744 on MS-Windows if $TERM is not defined.
11745
11746 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11747
11748 * posix-hdep.c (gdb_console_fputs):
11749 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11750 functions.
11751 * ui-file.h (gdb_console_fputs): Add prototype.
11752
11753 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11754 back to fputs only if the former returns zero.
11755
25629dfd
TT
117562019-03-07 Tom Tromey <tom@tromey.com>
11757
11758 * symmisc.c (print_symbol_bcache_statistics): Update.
11759 (print_objfile_statistics): Update.
11760 * symfile.c (allocate_symtab): Update.
11761 * stabsread.c: Don't include bcache.h.
11762 * psymtab.h (struct psymbol_bcache): Don't declare.
11763 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11764 (psymbol_bcache_init, psymbol_bcache_free)
11765 (psymbol_bcache_get_bcache): Don't declare.
11766 * psymtab.c (struct psymbol_bcache): Remove.
11767 (psymtab_storage::psymtab_storage): Update.
11768 (psymtab_storage::~psymtab_storage): Update.
11769 (psymbol_bcache_init, psymbol_bcache_free)
11770 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11771 (add_psymbol_to_bcache): Update.
11772 (allocate_psymtab): Update.
11773 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11774 macro_cache>: No longer pointers.
11775 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11776 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11777 * macrotab.c (macro_bcache): Update.
11778 * macroexp.c: Don't include bcache.h.
11779 * gdbtypes.c (check_types_worklist): Update.
11780 (types_deeply_equal): Remove TRY/CATCH. Update.
11781 * elfread.c (elf_symtab_read): Update.
11782 * dwarf2read.c: Don't include bcache.h.
11783 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11784 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11785 (print_bcache_statistics, bcache_memory_used): Don't declare.
11786 (struct bcache): Move from bcache.c. Add constructor, destructor,
11787 methods. Rename all data members.
11788 * bcache.c (struct bcache): Move to bcache.h.
11789 (bcache::expand_hash_table): Rename from expand_hash_table.
11790 (bcache): Remove.
11791 (bcache::insert): Rename from bcache_full.
11792 (bcache::compare): Rename from bcache_compare.
11793 (bcache_xmalloc): Remove.
11794 (bcache::~bcache): Rename from bcache_xfree.
11795 (bcache::print_statistics): Rename from print_bcache_statistics.
11796 (bcache::memory_used): Rename from bcache_memory_used.
11797
fe726667
PA
117982019-03-07 Pedro Alves <palves@redhat.com>
11799
11800 * infrun.c (normal_stop): Also check for
11801 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11802
7584bb30
AB
118032019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11804
11805 * f-lang.c (value_from_host_double): Moved to...
11806 * value.c (value_from_host_double): ...here.
11807 * value.h (value_from_host_double): Declare.
11808 * guile/scm-math.c (vlscm_convert_typed_number): Use
11809 value_from_host_double.
11810 (vlscm_convert_number): Likewise.
11811 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11812 * python/py-value.c (convert_value_from_python): Likewise.
11813
a7b1986e
TT
118142019-03-06 Tom Tromey <tom@tromey.com>
11815
11816 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11817
0ccf4211
TT
118182019-03-06 Tom Tromey <tom@tromey.com>
11819
11820 * utils.h (free_current_contents): Don't declare.
11821 * utils.c (free_current_contents): Remove.
11822
fe7b42e5
TT
118232019-03-06 Tom Tromey <tom@tromey.com>
11824
11825 * top.c (quit_force): Update.
11826 * main.c (captured_command_loop): Update.
11827 * common/new-op.c (operator new): Update.
11828 * common/common-exceptions.c (struct catcher)
11829 <save_cleanup_chain>: Remove member.
11830 (exceptions_state_mc_init): Update.
11831 (exception_try_scope_entry): Return nullptr.
11832 (exception_try_scope_exit, exception_rethrow)
11833 (throw_exception_sjlj, throw_exception_cxx): Update.
11834 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11835 (all_cleanups, do_cleanups, discard_cleanups)
11836 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11837 (restore_cleanups, restore_final_cleanups): Don't declare.
11838 (do_final_cleanups): Remove parameter.
11839 * common/cleanups.c (cleanup_chain, make_cleanup)
11840 (make_cleanup_dtor, all_cleanups, do_cleanups)
11841 (discard_my_cleanups, discard_cleanups)
11842 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11843 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11844 (null_cleanup): Remove.
11845 (do_final_cleanups): Remove parameter.
11846
c6321f19
TT
118472019-03-06 Tom Tromey <tom@tromey.com>
11848
11849 * remote.c (remote_target::remote_parse_stop_reply): Use
11850 unique_xmalloc_ptr.
11851
61b30099
TT
118522019-03-06 Tom Tromey <tom@tromey.com>
11853
11854 * stabsread.c (struct stabs_field_info): Rename from field_info.
11855 <list, fnlist>: Add initializers.
11856 <obstack>: New member.
11857 (read_member_functions, read_struct_fields, read_baseclasses):
11858 Allocate on obstack. Don't use cleanups.
11859 (read_one_struct_field, read_member_functions, read_struct_fields)
11860 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11861 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11862 (read_struct_type): Update.
11863
6cceac94
TT
118642019-03-06 Tom Tromey <tom@tromey.com>
11865
11866 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11867 * common/filestuff.h (make_cleanup_close): Don't declare.
11868 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11869 Remove.
11870
72412762
TT
118712019-03-06 Tom Tromey <tom@tromey.com>
11872
11873 * solib-aix.c: Use make_scope_exit.
11874
2b6ff1c0
TT
118752019-03-06 Tom Tromey <tom@tromey.com>
11876
11877 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11878 Use make_scope_exit.
11879
d01c5877
TT
118802019-03-06 Tom Tromey <tom@tromey.com>
11881
11882 * solib-svr4.c (disable_probes_interface): Remove parameter.
11883 (svr4_handle_solib_event): Use make_scope_exit.
11884
32603266
TT
118852019-03-06 Tom Tromey <tom@tromey.com>
11886
11887 * remote.c (struct stop_reply_deleter): Remove.
11888 (stop_reply_up): Update.
11889 (struct stop_reply): Derive from notif_event. Don't typedef.
11890 <regcache>: Now a std::vector.
11891 (stop_reply_xfree): Remove.
11892 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11893 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11894 (remote_target::discard_pending_stop_replies): Use delete.
11895 (remote_target::remote_parse_stop_reply): Update.
11896 (remote_target::process_stop_reply): Update.
11897 * remote-notif.h (struct notif_event): Add virtual destructor.
11898 Remove "dtr" member.
11899 (struct notif_client) <alloc_event>: Return a unique_ptr.
11900 (notif_event_xfree): Don't declare.
11901 (notif_event_up): New typedef.
11902 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11903 (notif_event_xfree, do_notif_event_xfree): Remove.
11904 (remote_notif_state_xfree): Update.
11905
9799571e
TT
119062019-03-06 Tom Tromey <tom@tromey.com>
11907
11908 * infrun.c (displaced_step_clear_cleanup): Now a
11909 forward_scope_exit type.
11910 (displaced_step_prepare_throw): Update.
11911 (displaced_step_fixup): Update.
11912
09e3c4ca
TT
119132019-03-06 Tom Tromey <tom@tromey.com>
11914
11915 * inferior.h (class inferior): Update comment.
11916 * gdbthread.h (class thread_info): Update comment.
11917
e2a03548
TT
119182019-03-06 Joel Brobecker <brobecker@adacore.com>
11919 Tom Tromey <tom@tromey.com>
11920
11921 * stabsread.h (struct stab_section_list): Remove.
11922 (coffstab_build_psymtabs): Update.
11923 * dbxread.c (symbuf_sections): Now a std::vector.
11924 (sect_idx): New global.
11925 (fill_symbuf): Update.
11926 (coffstab_build_psymtabs): Change type of stabsects parameter.
11927 Update.
11928 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11929 std::vector.
11930 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11931 (coff_locate_sections): Update.
11932 (coff_symfile_read): Remove cleanups. Update.
11933 (init_stringtab): Add storage parameter.
11934 (free_stringtab, free_stringtab_cleanup): Remove.
11935 (init_lineno): Add storage parameter.
11936 (free_linetab, free_linetab_cleanup): Remove.
11937
b7e60d85
PA
119382019-03-06 Pedro Alves <palves@redhat.com>
11939
11940 * linux-fork.c (fork_info::clobber_regs): Delete.
11941 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11942 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11943 comment. Adjust.
11944 (scoped_switch_fork_info::scoped_switch_fork_info)
11945 (checkpoint_command, linux_fork_context): Adjust
11946 fork_save_infrun_state calls.
11947
e52c971f
PA
119482019-03-06 Pedro Alves <palves@redhat.com>
11949
11950 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11951 (inf_has_multiple_threads): Return 'bool' and rewrite using
11952 inferior_info::threads().
11953
06974e6c
PA
119542019-03-06 Pedro Alves <palves@redhat.com>
11955
11956 * linux-fork.c: Include <list>.
11957 (fork_list): Now a std::list instance.
11958 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11959 (forks_exist_p, find_last_fork): Adjust.
11960 (new_fork): Delete.
11961 (one_fork_p): New.
11962 (add_fork): Adjust.
11963 (free_fork): Delete, folded into fork_info::~fork_info().
11964 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11965 Adjust.
11966 (init_fork_list): Delete.
11967 (linux_fork_killall, linux_fork_mourn_inferior)
11968 (linux_fork_detach, info_checkpoints_command): Adjust.
11969 (_initialize_linux_fork): No longer call init_fork_list.
11970
72f31aea
PA
119712019-03-06 Pedro Alves <palves@redhat.com>
11972
11973 * linux-fork.c (new_fork): New, split out of ...
11974 (add_fork): ... this. Return void. Move "first fork" special
11975 case from here, to ...
11976 (checkpoint_command): ... here.
11977 * linux-linux.h (add_fork): Return void.
11978
efbecbc1
AB
119792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11980
11981 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11982
0841c79a
AB
119832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11984 Chris January <chris.january@arm.com>
11985 David Lecomber <david.lecomber@arm.com>
11986
11987 * f-exp.y: New token, UNOP_INTRINSIC.
11988 (exp): New pattern using UNOP_INTRINSIC token.
11989 (f77_keywords): Add 'abs' keyword.
11990 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11991 (value_from_host_double): New function.
11992 (evaluate_subexp_f): Support UNOP_ABS.
11993
4a270568
AB
119942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11997 types.
11998
067630bd
AB
119992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12002 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12003 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12004
3be47f7a
AB
120052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12006
12007 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12008
4d00f5d8
AB
120092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12010 Chris January <chris.january@arm.com>
12011
12012 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12013 * f-exp.y: Define 'KIND' token.
12014 (exp): New pattern for KIND expressions.
12015 (ptype): Handle types with a kind extension.
12016 (direct_abs_decl): Extend to spot kind extensions.
12017 (f77_keywords): Add 'kind' to the list.
12018 (push_kind_type): New function.
12019 (convert_to_kind_type): New function.
12020 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12021 * parse.c (operator_length_standard): Likewise.
12022 * parser-defs.h (enum type_pieces): Add tp_kind.
12023 * std-operator.def: Add UNOP_KIND.
12024
e454224f
AB
120252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12026
12027 * f-exp.y (f_parse): Set yydebug.
12028
9dad4a58
AB
120292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12030
12031 * f-lang.c (evaluate_subexp_f): New function.
12032 (exp_descriptor_f): New global.
12033 (f_language_defn): Use exp_descriptor_f instead of
12034 exp_descriptor_standard.
12035
c8f91604
AB
120362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 * f-exp.y (struct token): Add comments.
12039 (dot_ops): Remove uppercase versions and the end marker.
12040 (f77_keywords): Likewise.
12041 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12042 entries in the dot_ops array are case insensitive, and use
12043 strncasecmp to compare strings. Also some whitespace cleanup in
12044 this area. Similar for the f77_keywords array, except entries in
12045 this list might be case sensitive.
12046
dd9f2c76
AB
120472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * f-exp.y (struct f77_boolean_val): Add comments.
12050 (boolean_values): Remove uppercase versions, and end marker.
12051 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12052 and use strncasecmp to achieve case insensitivity. Additionally,
12053 perform whitespace cleanup around this code.
12054
67a3048c
TT
120552019-03-06 Tom Tromey <tromey@adacore.com>
12056
12057 * remote-sim.c (gdbsim_target_open): Use result of
12058 gdb_argv::release.
12059
aa3cfbda
RB
120602019-03-06 Richard Bunt <richard.bunt@arm.com>
12061 Dirk Schubert <dirk.schubert@arm.com>
12062 Chris January <chris.january@arm.com>
12063
12064 * eval.c (evaluate_subexp_standard): Call Fortran argument
12065 wrapping logic.
12066 * f-lang.c (struct value): A value which can be passed into a
12067 Fortran function call.
12068 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12069 where appropriate.
12070 (struct type): Value ready for a Fortran function call.
12071 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12072 is needed.
12073 * f-lang.h (fortran_argument_convert): Declaration.
12074 (fortran_preserve_arg_pointer): Declaration.
12075 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12076
ea38e5df
TT
120772019-03-05 Tom Tromey <tromey@adacore.com>
12078
12079 * python/py-prettyprint.c (print_string_repr): Remove #if.
12080 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12081
06b5b831
TT
120822019-03-05 Tom Tromey <tromey@adacore.com>
12083
12084 * target.c (the_dummy_target): Move later. Change type to
12085 "dummy_target".
12086 (initialize_targets): Don't initialize the_dummy_target.
12087
edbd9e45
TT
120882019-03-05 Tom Tromey <tromey@adacore.com>
12089
12090 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12091 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12092
c119e040
TT
120932019-03-05 Tom Tromey <tromey@adacore.com>
12094
12095 * windows-nat.c (windows_nat_target::attach)
12096 (windows_nat_target::detach): Don't call gdb_flush.
12097 * valprint.c (generic_val_print, val_print, val_print_string):
12098 Don't call gdb_flush.
12099 * utils.c (defaulted_query): Don't call gdb_flush.
12100 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12101 * target.c (target_announce_detach): Don't call gdb_flush.
12102 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12103 * remote.c (extended_remote_target::attach): Don't call
12104 gdb_flush.
12105 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12106 * printcmd.c (do_examine): Don't call gdb_flush.
12107 (info_display_command): Don't call gdb_flush.
12108 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12109 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12110 * memattr.c (info_mem_command): Don't call gdb_flush.
12111 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12112 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12113 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12114 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12115 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12116 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12117 (gnu_nat_target::detach): Don't call gdb_flush.
12118 * f-valprint.c (f_val_print): Don't call gdb_flush.
12119 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12120 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12121 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12122 gdb_flush.
12123 * c-valprint.c (c_val_print): Don't call gdb_flush.
12124 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12125
895dafa6
TT
121262019-03-05 Tom Tromey <tromey@adacore.com>
12127
12128 * varobj.c (update_dynamic_varobj_children): Update.
12129 (install_default_visualizer): Use reset, not release.
12130 * value.c (set_internalvar): Update.
12131 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12132 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12133 ATTRIBUTE_UNUSED_RESULT.
12134
88a774b9
TT
121352019-03-05 Tom Tromey <tromey@adacore.com>
12136
12137 * remote.c (class scoped_remote_fd) <release>: Add
12138 ATTRIBUTE_UNUSED_RESULT.
12139
4e4a8b93
TT
121402019-03-05 Tom Tromey <tromey@adacore.com>
12141
12142 * macroexp.c (struct macro_buffer) <release>: Add
12143 ATTRIBUTE_UNUSED_RESULT.
12144
083eef1f
TT
121452019-03-05 Tom Tromey <tromey@adacore.com>
12146
12147 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12148 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12149 ATTRIBUTE_UNUSED_RESULT.
12150
3cabd438
TT
121512019-03-05 Tom Tromey <tromey@adacore.com>
12152
12153 * common/scoped_fd.h (class scoped_fd) <release>: Add
12154 ATTRIBUTE_UNUSED_RESULT.
12155
41e3300a
TT
121562019-03-05 Tom Tromey <tromey@adacore.com>
12157
12158 * parser-defs.h (struct parser_state) <release>: Add
12159 ATTRIBUTE_UNUSED_RESULT.
12160
18cb7c9f
TT
121612019-03-05 Tom Tromey <tromey@adacore.com>
12162
12163 * utils.h (class gdb_argv) <release>: Add
12164 ATTRIBUTE_UNUSED_RESULT.
12165 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12166
41fa577f
EZ
121672019-03-02 Eli Zaretskii <eliz@gnu.org>
12168
a6a4b2c6
EZ
12169 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12170 for-loop range, to avoid compiler warnings.
12171
12172 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12173 avoid compiler warnings about unused variables.
12174
742a7df5
EZ
12175 * NEWS: Mention end of support for native debugging on MS-Windows
12176 before XP.
12177
41fa577f
EZ
12178 PR gdb/24292
12179 * common/netstuff.c:
12180 * gdbserver/gdbreplay.c
12181 * gdbserver/remote-utils.c:
12182 * ser-tcp.c:
12183 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12184 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12185 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12186 'getaddrinfo' and 'freeaddrinfo' were not available before
12187 Windows XP, and mingw.org's MinGW headers by default define
12188 _WIN32_WINNT to 0x500.
12189
827f438f
GB
121902019-03-01 Gary Benson <gbenson@redhat.com>
12191
12192 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12193
92137da0
RO
121942019-02-28 Brian Vandenberg <phantall@gmail.com>
12195 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12196
12197 PR gdb/8527
12198 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12199 set_sigint_trap, clear_sigint_trap.
12200
799efbe8
PW
122012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12202
12203 * target.c (target_detach): Clear the regcache and the
12204 frame cache.
12205
8ed25214
PA
122062019-02-27 Pedro Alves <palves@redhat.com>
12207
12208 * utils.c (set_screen_size): When we cap the height/width sizes,
12209 tweak the corresponding command variable to show "unlimited":
12210
23031e31
SJ
122112019-02-27 Saagar Jha <saagar@saagarjha.com>
12212 Pedro Alves <palves@redhat.com>
12213
12214 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12215 before calling rl_set_screen_size.
12216
6c28e44a
TT
122172019-02-27 Tom Tromey <tromey@adacore.com>
12218
12219 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12220 define.
12221 * python/py-value.c: Remove Python 2.4 workaround.
12222 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12223 workaround.
12224 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12225 Python 2.4 workaround.
12226 * python/python-internal.h: Remove Python 2.4 comment.
12227 (Py_ssize_t): Don't define.
12228 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12229 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12230 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12231 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12232 * python/python.c (do_start_initialization): Remove Python 2.4
12233 workaround.
12234 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12235 (print_children): Remove Python 2.4 workaround.
12236 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12237 workaround.
12238 (CHARBUFFERPROC_NAME): Remove.
12239 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12240 Python 2.4 workaround.
12241
2c3fc25d 122422019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12243
2c3fc25d
KB
12244 * NEWS: Note minimum Python version.
12245
6ca62222
KB
122462019-02-27 Kevin Buettner <kevinb@redhat.com>
12247
12248 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12249 code from these functions. Remove corresponding ifdefs. Use
12250 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12251 Remove gotos and target of gotos.
12252 (infpy_search_memory): Likewise.
12253
f4bc7d2c
AB
122542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12255
12256 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12257 (hppa_gdbarch_init): Don't register deleted functions with
12258 gdbarch.
12259
9734a586
AB
122602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12261
12262 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12263 (h8300_unwind_sp): Delete.
12264 (h8300_dummy_id): Delete.
12265 (h8300_gdbarch_init): Don't register deleted functions with
12266 gdbarch.
12267
68b867f3
AB
122682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12269
12270 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12271 (ft32_unwind_pc): Delete.
12272 (ft32_unwind_sp): Delete.
12273 (ft32_gdbarch_init): Don't register deleted functions with
12274 gdbarch.
12275
2fbe7ad0
AB
122762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12277
12278 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12279 (frv_unwind_pc): Delete.
12280 (frv_unwind_sp): Delete.
12281 (frv_gdbarch_init): Don't register deleted functions with
12282 gdbarch.
12283
76055cbe
AB
122842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12285
12286 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12287 (riscv_unwind_pc): Delete.
12288 (riscv_unwind_sp): Delete.
12289 (riscv_gdbarch_init): Don't register deleted functions with
12290 gdbarch.
12291
4133e5a1
AB
122922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12293
12294 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12295 (csky_unwind_pc): Delete.
12296 (csky_unwind_sp): Delete.
12297 (csky_gdbarch_init): Don't register deleted functions with
12298 gdbarch.
12299
8010f576
AB
123002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12301
12302 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12303 (cris_unwind_pc): Delete.
12304 (cris_unwind_sp): Delete.
12305 (cris_gdbarch_init): Don't register deleted functions with
12306 gdbarch.
12307
b56bf084
AB
123082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12309
12310 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12311 (bfin_unwind_pc): Delete.
12312 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12313
a19a650f
AB
123142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12315
12316 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12317 (arm_unwind_pc): Delete.
12318 (arm_unwind_sp): Delete.
12319 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12320
f8278c3c
AB
123212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12322
12323 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12324 (arc_unwind_pc): Delete.
12325 (arc_unwind_sp): Delete.
12326 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12327
480e46cf
AB
123282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12329
12330 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12331 (alpha_unwind_pc): Delete.
12332 (alpha_gdbarch_init): Don't register deleted functions with
12333 gdbarch.
12334
7a995095
AB
123352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12336
12337 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12338 (aarch64_unwind_pc): Delete.
12339 (aarch64_unwind_sp): Delete.
12340 (aarch64_gdbarch_init): Don't register deleted functions with
12341 gdbarch.
12342
bf9a735e
AB
123432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * gdbtypes.c (type_align): Don't consider static members when
12346 computing structure alignment.
12347
5561fc30
AB
123482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12349
12350 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12351 return 0 for other types.
12352 * arch-utils.c (default_type_align): Always return 0.
12353 * gdbarch.h: Regenerate.
12354 * gdbarch.sh (type_align): Extend comment.
12355 * gdbtypes.c (type_align): Add additional comments, always call
12356 gdbarch_type_align before applying the default rules.
12357 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12358 generic code will then apply a suitable default.
12359 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12360 types, return 0 for other types.
12361
9335e75a
JB
123622019-02-27 Joel Brobecker <brobecker@adacore.com>
12363
12364 * NEWS: Create a new section for the next release branch.
12365 Rename the section of the current branch, now that it has
12366 been cut.
12367
3d34d8de
JB
123682019-02-27 Joel Brobecker <brobecker@adacore.com>
12369
12370 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12371 * version.in: Bump version to 8.3.50.DATE-git.
12372
143420fb
SM
123732019-02-26 Simon Marchi <simon.marchi@efficios.com>
12374
12375 * aix-thread.c (ptid_cmp): Remove unused variable.
12376 (get_signaled_thread): Likewise.
12377 (store_regs_user_thread): Likewise.
12378 (store_regs_kernel_thread): Likewise.
12379 (fetch_regs_kernel_thread): Remove shadowed variable.
12380
172fb711
AB
123812019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * features/riscv/32bit-cpu.xml: Add register numbers.
12384 * features/riscv/32bit-fpu.c: Regenerate.
12385 * features/riscv/32bit-fpu.xml: Add register numbers.
12386 * features/riscv/64bit-cpu.xml: Add register numbers.
12387 * features/riscv/64bit-fpu.c: Regenerate.
12388 * features/riscv/64bit-fpu.xml: Add register numbers.
12389
26c89782
KB
123902019-02-26 Kevin Buettner <kevinb@redhat.com>
12391
af54ade9 12392 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12393 * python/py-value.c (convert_buffer_and_type_to_value): New
12394 function.
12395 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12396 Add support for handling an optional second argument. Call
12397 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12398 * python/python-internal.h (Py_buffer_deleter): New struct.
12399 (Py_buffer_up): New typedef.
12400
0f58c9e8
JB
124012019-02-25 John Baldwin <jhb@FreeBSD.org>
12402
12403 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12404 instead of releasing ownership.
12405
0a0f4c01
JR
124062019-02-25 Jordan Rupprecht <rupprecht@google.com>
12407
12408 * dwarf2read.c (open_and_init_dwp_file): Call
12409 elf_numsections instead of bfd_count_sections to initialize
12410 dwp_file->num_sections.
12411
cd5a152c
TT
124122019-02-25 Tom Tromey <tromey@adacore.com>
12413
12414 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12415
8a6a8513
SDJ
124162019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12417
12418 * gcore.in: Add '--readnever' option when invoking GDB.
12419
04dcda9c
SM
124202019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12421
12422 * MAINTAINERS: Update my email address.
12423
07bc701d
SM
124242019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12425
12426 * build-id.c (build_id_to_debug_bfd_1): New function.
12427 (build_id_to_debug_bfd): Look for separate debug file in
12428 sysroot.
12429
c6f4a5d0
AB
124302019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * gdbarch.sh: Update the copyright year range that is placed into
12433 generated files.
12434
9600246d
KS
124352019-02-22 Keith Seitz <keiths@redhat.com>
12436
12437 PR symtab/23853
12438 * linespec.c (create_sals_line_offset): Search for the default
12439 symtab's filename instead of its fullname.
12440
7557a514
AH
124412019-02-21 Alan Hayward <alan.hayward@arm.com>
12442
12443 * NEWS: Update style defaults.
12444
ee2bcb0c
AH
124452019-02-21 Alan Hayward <alan.hayward@arm.com>
12446
12447 * main.c (captured_main_1): Disable styling in batch mode.
12448
0c95f9ed
TT
124492019-02-20 Tom Tromey <tom@tromey.com>
12450
12451 * symtab.c (symtab_symbol_info): Fix typos.
12452
c763b894
TT
124532019-02-20 Tom Tromey <tromey@adacore.com>
12454
12455 * findcmd.c (_initialize_mem_search): Use upper case for
12456 metasyntactic variables.
12457
0ef8a082
AH
124582019-02-20 Alan Hayward <alan.hayward@arm.com>
12459
12460 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12461 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12462
6caa91b6
SM
124632019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12464
12465 * top.h (source_file_name): Change to std::string.
12466 * top.c (source_file_name): Likewise.
12467 (command_line_input): Adjust.
12468 * cli/cli-script.c (script_from_file): Adjust.
12469
98814c6c
TT
124702019-02-19 Tom Tromey <tromey@adacore.com>
12471
12472 * ravenscar-thread.c
12473 (ravenscar_thread_target::update_thread_list): Don't call
12474 ada_build_task_list.
12475 * ada-lang.h (ada_build_task_list): Don't declare.
12476 * ada-tasks.c (struct ada_tasks_inferior_data)
12477 <task_list_valid_p>: Now bool.
12478 (read_known_tasks, ada_task_list_changed)
12479 (ada_tasks_invalidate_inferior_data): Update.
12480 (read_known_tasks_array): Return bool.
12481 (read_known_tasks_list): Likewise.
12482 (read_known_tasks): Return void.
12483 (ada_build_task_list): Now static.
12484
70cd633e
AB
124852019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12486
12487 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12488 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12489
040b3e95
PW
124902019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12491
12492 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12493 variant for ada_tasks_pspace_data_handle and
12494 ada_tasks_inferior_data_handle.
12495 (ada_tasks_pspace_data_cleanup): New function.
12496 (ada_tasks_inferior_data_cleanup): New function.
12497
9409233b
TT
124982019-02-17 Tom Tromey <tom@tromey.com>
12499
12500 * macrotab.h (macro_source_fullname): Return a std::string.
12501 * macrotab.c (macro_include, check_for_redefinition)
12502 (macro_undef, macro_lookup_definition, foreach_macro)
12503 (foreach_macro_in_scope): Update.
12504 (macro_source_fullname): Return a std::string.
12505 * macrocmd.c (show_pp_source_pos): Update.
12506
6506371f
TT
125072019-02-17 Tom Tromey <tom@tromey.com>
12508
12509 * macrocmd.c (show_pp_source_pos): Style the file names.
12510
0c820d67
TT
125112019-02-17 Tom Tromey <tom@tromey.com>
12512
12513 PR tui/24197:
12514 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12515
a0087920
TT
125162019-02-17 Tom Tromey <tom@tromey.com>
12517
12518 * ada-lang.c (user_select_syms): Use filtered printing.
12519 * utils.c (wrap_style): New global.
12520 (desired_style): Remove.
12521 (emit_style_escape): Add stream parameter.
12522 (set_output_style, reset_terminal_style, prompt_for_continue):
12523 Update.
12524 (flush_wrap_buffer): Only flush gdb_stdout.
12525 (wrap_here): Set wrap_style.
12526 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12527 treat escape sequences as a character. Change when wrap buffer is
12528 flushed.
12529 (fputs_styled): Do not set the output style when the default is
12530 requested.
12531 * ui-style.h (struct ui_file_style) <is_default>: New method.
12532 * source.c (print_source_lines_base): Emit escape sequences in one
12533 piece.
12534
75ba10dc
JB
125352019-02-17 Joel Brobecker <brobecker@adacore.com>
12536
12537 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12538 integers and enumeration types.
12539
a2cd4f14
JB
125402019-02-17 Joel Brobecker <brobecker@adacore.com>
12541
12542 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12543 instead of lookup_symbol_in_language
12544 (do_exact_match): New function.
12545 (ada_get_symbol_name_matcher): Return do_exact_match when
12546 doing a verbatim match.
12547
485b851b
TT
125482019-02-15 Tom Tromey <tromey@adacore.com>
12549
12550 * ravenscar-thread.c (ravenscar_thread_target::resume)
12551 (ravenscar_thread_target::wait): Special case wildcard requests.
12552
0b790b1e
TT
125532019-02-15 Tom Tromey <tromey@adacore.com>
12554
12555 * ravenscar-thread.c (base_ptid): Remove.
12556 (struct ravenscar_thread_target) <close>: New method.
12557 <m_base_ptid>: New member.
12558 <update_inferior_ptid, active_task, task_is_currently_active,
12559 runtime_initialized>: Declare methods.
12560 <ravenscar_thread_target>: Add constructor.
12561 (ravenscar_thread_target::task_is_currently_active)
12562 (ravenscar_thread_target::update_inferior_ptid)
12563 (ravenscar_runtime_initialized): Rename. Now methods.
12564 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12565 (ravenscar_thread_target::update_thread_list): Update.
12566 (ravenscar_thread_target::active_task): Now method.
12567 (ravenscar_thread_target::store_registers)
12568 (ravenscar_thread_target::prepare_to_store)
12569 (ravenscar_thread_target::prepare_to_store)
12570 (ravenscar_thread_target::mourn_inferior): Update.
12571 (ravenscar_inferior_created): Use "new" to create target.
12572 (ravenscar_thread_target::get_ada_task_ptid): Update.
12573 (_initialize_ravenscar): Don't initialize base_ptid.
12574 (ravenscar_ops): Remove global.
12575
dea57a62
TT
125762019-02-15 Tom Tromey <tromey@adacore.com>
12577
12578 * target.h (push_target): Declare new overload.
12579 * target.c (push_target): New overload, taking an rvalue reference.
12580 * remote.c (remote_target::open_1): Use push_target overload.
12581 * corelow.c (core_target_open): Use push_target overload.
12582
989f3c58
TT
125832019-02-15 Tom Tromey <tromey@adacore.com>
12584
12585 * ravenscar-thread.c (is_ravenscar_task)
12586 (ravenscar_task_is_currently_active): Return bool.
12587 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12588 (_initialize_ravenscar): Remove "(void)".
12589 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12590 Return bool.
12591
6cbcc006
TT
125922019-02-15 Tom Tromey <tromey@adacore.com>
12593
12594 * ravenscar-thread.c (ravenscar_runtime_initializer)
12595 (has_ravenscar_runtime, get_running_thread_id)
12596 (ravenscar_thread_target::resume): Fix indentation.
12597
7657f14d
TT
125982019-02-15 Tom Tromey <tromey@adacore.com>
12599
12600 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12601 from ravenscar_arch_ops.
12602 (sparc_ravenscar_ops::fetch_registers)
12603 (sparc_ravenscar_ops::store_registers): Now methods.
12604 (sparc_ravenscar_prepare_to_store): Remove.
12605 (sparc_ravenscar_ops): Redefine.
12606 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12607 methods and destructor. Remove members.
12608 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12609 (ravenscar_thread_target::store_registers)
12610 (ravenscar_thread_target::prepare_to_store): Update.
12611 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12612 Remove.
12613 (struct ppc_ravenscar_powerpc_ops): Derive from
12614 ravenscar_arch_ops.
12615 (ppc_ravenscar_powerpc_ops::fetch_registers)
12616 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12617 (ppc_ravenscar_powerpc_ops): Redefine.
12618 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12619 (ppc_ravenscar_e500_ops::fetch_registers)
12620 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12621 (ppc_ravenscar_e500_ops): Redefine.
12622 * aarch64-ravenscar-thread.c
12623 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12624 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12625 (aarch64_ravenscar_fetch_registers)
12626 (aarch64_ravenscar_store_registers): Now methods.
12627 (aarch64_ravenscar_ops): Redefine.
12628
5b6ea500
TT
126292019-02-15 Tom Tromey <tromey@adacore.com>
12630
12631 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12632 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12633 (ravenscar_thread_target::stopped_by_watchpoint)
12634 (ravenscar_thread_target::stopped_data_address)
12635 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12636
e397fd39
TT
126372019-02-15 Tom Tromey <tromey@adacore.com>
12638
12639 * ravenscar-thread.c: Fix some typos.
12640
cc12f4a8
TT
126412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12642 Tom Tromey <tromey@adacore.com>
12643
12644 * ada-lang.c (ada_exception_sal): Change addr_string to a
12645 std::string.
12646 (create_ada_exception_catchpoint): Update.
12647
5f486660
TT
126482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12649 Tom Tromey <tromey@adacore.com>
12650
12651 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12652 (bp_location_ops): Remove.
12653 (base_breakpoint_allocate_location): Update.
12654 (free_bp_location): Update.
12655 * ada-lang.c (class ada_catchpoint_location)
12656 <ada_catchpoint_location>: Remove ops parameter.
12657 (ada_catchpoint_location_dtor): Remove.
12658 (ada_catchpoint_location_ops): Remove.
12659 (allocate_location_exception): Update.
12660 * breakpoint.h (struct bp_location_ops): Remove.
12661 (class bp_location) <bp_location>: Remove bp_location_ops
12662 parameter.
12663 <~bp_location>: Add destructor.
12664 <ops>: Remove.
12665
b671c7fb
TS
126662019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12667 Pedro Alves <palves@redhat.com>
12668
12669 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12670 'PATH_MAX'.
12671
8071c5ce
DM
126722019-02-14 David Michael <fedora.dm0@gmail.com>
12673 Samuel Thibault <samuel.thibault@gnu.org>
12674 Thomas Schwinge <thomas@codesourcery.com>
12675
12676 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12677 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12678
b1041ae0
TS
126792019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12680
924514e1
TS
12681 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12682 (check_empty): Use "const char *".
12683
c29ee8d4
TS
12684 * gnu-nat.c (gnu_nat_target::detach): Instead of
12685 'detach_inferior (pid)' call
12686 'detach_inferior (find_inferior_pid (pid))'.
12687
6c6ef69f
TS
12688 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12689 'nat/fork-inferior.o'.
12690 * gnu-nat.c: #include "nat/fork-inferior.h".
12691
2d0a338c
TS
12692 * gnu-nat.c (gnu_nat_target::detach): Instead of
12693 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12694 * gnu-nat.h: #include "inf-child.h".
12695 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12696 'i386_gnu_nat_target::fetch_registers'.
12697 (gnu_store_registers): Rename/move to
12698 'i386_gnu_nat_target::store_registers'.
12699
cabb5f06
TS
12700 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12701 * gnu-nat.h (mach_thread_info): New function.
12702 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12703
b1041ae0
TS
12704 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12705
2988d01e
KF
127062019-02-14 Frederic Konrad <konrad@adacore.com>
12707
12708 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12709
c559d709
JB
127102019-02-14 Joel Brobecker <brobecker@adacore.com>
12711
12712 * windows-nat.c (windows_add_thread): Add new parameter
12713 "main_thread_p" with default value set to false. Update
12714 function documentation as well as all callers.
12715 (windows_delete_thread): Likewise.
12716 (fake_create_process): Update call to windows_add_thread.
12717 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12718 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12719 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12720 call to windows_delete_thread.
12721
007024cc
SM
127222019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12723
12724 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12725
f62318e9
JB
127262019-02-12 John Baldwin <jhb@FreeBSD.org>
12727
12728 * symfile.c (find_separate_debug_file): Use canonical path of
12729 sysroot with child_path instead of gdb_sysroot if it is valid.
12730
cd4b7848
JB
127312019-02-12 John Baldwin <jhb@FreeBSD.org>
12732
12733 * symfile.c (find_separate_debug_file): Use child_path to
12734 determine if an object file is under a sysroot.
12735
efac4bfe
JB
127362019-02-12 John Baldwin <jhb@FreeBSD.org>
12737
12738 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12739 unittests/child-path-selftests.c.
12740 * common/pathstuff.c (child_path): New function.
12741 * common/pathstuff.h (child_path): New prototype.
12742 * unittests/child-path-selftests.c: New file.
12743
402d2bfe
JB
127442019-02-12 John Baldwin <jhb@FreeBSD.org>
12745
12746 * symfile.c (find_separate_debug_file): Look for separate debug
12747 files in debug directories under the sysroot.
12748
1ed9f74e
PW
127492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12750
12751 * symtab.h (struct minimal_symbol data_p): New const method.
12752 (struct minimal_symbol text_p): Likewise.
12753 * symtab.c (output_source_filename): Use file name style
12754 to print file name.
12755 (print_symbol_info): Likewise.
12756 (print_msymbol_info): Use address style to print addresses.
12757 Use function name style to print executable text symbols.
12758 (expand_symtab_containing_pc): Use data_p.
12759 (find_pc_sect_compunit_symtab): Likewise.
12760
2636d81d
PW
127612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12762
12763 * breakpoint.c (describe_other_breakpoints): Use address style
12764 to print addresses.
12765 (say_where): Likewise.
12766
ac8c53cc
PW
127672019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12768
12769 * ada-typeprint.c (print_func_type): Print function name
12770 style to print function name.
12771 * c-typeprint.c (c_print_type_1): Likewise.
12772
ea638c43
AH
127732019-02-11 Alan Hayward <alan.hayward@arm.com>
12774
12775 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12776 for execve.
12777
ab759ca8
PW
127782019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12779
12780 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12781 type_stack.
12782
aff29d1c
JB
127832019-02-10 Joel Brobecker <brobecker@adacore.com>
12784
12785 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12786 TYPE_CODE_REF types.
12787
617126bc
JW
127882019-02-08 Jim Wilson <jimw@sifive.com>
12789
12790 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12791 (riscv_linux_fregset): New.
12792 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12793
46e3ed7f
TT
127942019-02-07 Tom Tromey <tom@tromey.com>
12795
12796 * thread.c (thread_cancel_execution_command): Update.
12797 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12798 methods.
12799 (struct thread_fsm_ops): Remove.
12800 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12801 (thread_fsm_should_stop, thread_fsm_return_value)
12802 (thread_fsm_set_finished, thread_fsm_finished_p)
12803 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12804 Don't declare.
12805 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12806 * infrun.c (clear_proceed_status_thread)
12807 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12808 (print_stop_event): Update.
12809 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12810 Add constructor.
12811 (step_command_fsm_ops): Remove.
12812 (new_step_command_fsm): Remove.
12813 (step_1): Update.
12814 (step_command_fsm::should_stop): Rename from
12815 step_command_fsm_should_stop.
12816 (step_command_fsm::clean_up): Rename from
12817 step_command_fsm_clean_up.
12818 (step_command_fsm::do_async_reply_reason): Rename from
12819 step_command_fsm_async_reply_reason.
12820 (struct until_next_fsm): Inherit from thread_fsm. Add
12821 constructor.
12822 (until_next_fsm_ops): Remove.
12823 (new_until_next_fsm): Remove.
12824 (until_next_fsm::should_stop): Rename from
12825 until_next_fsm_should_stop.
12826 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12827 (until_next_fsm::do_async_reply_reason): Rename from
12828 until_next_fsm_async_reply_reason.
12829 (struct finish_command_fsm): Inherit from thread_fsm. Add
12830 constructor. Change type of breakpoint.
12831 (finish_command_fsm_ops): Remove.
12832 (new_finish_command_fsm): Remove.
12833 (finish_command_fsm::should_stop): Rename from
12834 finish_command_fsm_should_stop.
12835 (finish_command_fsm::clean_up): Rename from
12836 finish_command_fsm_clean_up.
12837 (finish_command_fsm::return_value): Rename from
12838 finish_command_fsm_return_value.
12839 (finish_command_fsm::do_async_reply_reason): Rename from
12840 finish_command_fsm_async_reply_reason.
12841 (finish_command): Update.
12842 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12843 Add constructor.
12844 (call_thread_fsm_ops): Remove.
12845 (call_thread_fsm::call_thread_fsm): Rename from
12846 new_call_thread_fsm.
12847 (call_thread_fsm::should_stop): Rename from
12848 call_thread_fsm_should_stop.
12849 (call_thread_fsm::should_notify_stop): Rename from
12850 call_thread_fsm_should_notify_stop.
12851 (run_inferior_call, call_function_by_hand_dummy): Update.
12852 * cli/cli-interp.c (should_print_stop_to_console): Update.
12853 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12854 Add constructor. Change type of location_breakpoint,
12855 caller_breakpoint.
12856 (until_break_fsm_ops): Remove.
12857 (new_until_break_fsm): Remove.
12858 (until_break_fsm::should_stop): Rename from
12859 until_break_fsm_should_stop.
12860 (until_break_fsm::clean_up): Rename from
12861 until_break_fsm_clean_up.
12862 (until_break_fsm::do_async_reply_reason): Rename from
12863 until_break_fsm_async_reply_reason.
12864 (until_break_command): Update.
12865 * thread-fsm.c: Remove.
12866 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12867
1a5c2598
TT
128682019-02-07 Tom Tromey <tom@tromey.com>
12869
12870 * yy-remap.h: Add include guard.
12871 * xtensa-tdep.h: Add include guard.
12872 * xcoffread.h: Rename include guard.
12873 * varobj-iter.h: Add include guard.
12874 * tui/tui.h: Rename include guard.
12875 * tui/tui-winsource.h: Rename include guard.
12876 * tui/tui-wingeneral.h: Rename include guard.
12877 * tui/tui-windata.h: Rename include guard.
12878 * tui/tui-win.h: Rename include guard.
12879 * tui/tui-stack.h: Rename include guard.
12880 * tui/tui-source.h: Rename include guard.
12881 * tui/tui-regs.h: Rename include guard.
12882 * tui/tui-out.h: Rename include guard.
12883 * tui/tui-layout.h: Rename include guard.
12884 * tui/tui-io.h: Rename include guard.
12885 * tui/tui-hooks.h: Rename include guard.
12886 * tui/tui-file.h: Rename include guard.
12887 * tui/tui-disasm.h: Rename include guard.
12888 * tui/tui-data.h: Rename include guard.
12889 * tui/tui-command.h: Rename include guard.
12890 * tic6x-tdep.h: Add include guard.
12891 * target/waitstatus.h: Rename include guard.
12892 * target/wait.h: Rename include guard.
12893 * target/target.h: Rename include guard.
12894 * target/resume.h: Rename include guard.
12895 * target-float.h: Rename include guard.
12896 * stabsread.h: Add include guard.
12897 * rs6000-tdep.h: Add include guard.
12898 * riscv-fbsd-tdep.h: Add include guard.
12899 * regformats/regdef.h: Rename include guard.
12900 * record.h: Rename include guard.
12901 * python/python.h: Rename include guard.
12902 * python/python-internal.h: Rename include guard.
12903 * python/py-stopevent.h: Rename include guard.
12904 * python/py-ref.h: Rename include guard.
12905 * python/py-record.h: Rename include guard.
12906 * python/py-record-full.h: Rename include guard.
12907 * python/py-record-btrace.h: Rename include guard.
12908 * python/py-instruction.h: Rename include guard.
12909 * python/py-events.h: Rename include guard.
12910 * python/py-event.h: Rename include guard.
12911 * procfs.h: Add include guard.
12912 * proc-utils.h: Add include guard.
12913 * p-lang.h: Add include guard.
12914 * or1k-tdep.h: Rename include guard.
12915 * observable.h: Rename include guard.
12916 * nto-tdep.h: Rename include guard.
12917 * nat/x86-linux.h: Rename include guard.
12918 * nat/x86-linux-dregs.h: Rename include guard.
12919 * nat/x86-gcc-cpuid.h: Add include guard.
12920 * nat/x86-dregs.h: Rename include guard.
12921 * nat/x86-cpuid.h: Rename include guard.
12922 * nat/ppc-linux.h: Rename include guard.
12923 * nat/mips-linux-watch.h: Rename include guard.
12924 * nat/linux-waitpid.h: Rename include guard.
12925 * nat/linux-ptrace.h: Rename include guard.
12926 * nat/linux-procfs.h: Rename include guard.
12927 * nat/linux-osdata.h: Rename include guard.
12928 * nat/linux-nat.h: Rename include guard.
12929 * nat/linux-namespaces.h: Rename include guard.
12930 * nat/linux-btrace.h: Rename include guard.
12931 * nat/glibc_thread_db.h: Rename include guard.
12932 * nat/gdb_thread_db.h: Rename include guard.
12933 * nat/gdb_ptrace.h: Rename include guard.
12934 * nat/fork-inferior.h: Rename include guard.
12935 * nat/amd64-linux-siginfo.h: Rename include guard.
12936 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12937 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12938 * nat/aarch64-linux.h: Rename include guard.
12939 * nat/aarch64-linux-hw-point.h: Rename include guard.
12940 * mn10300-tdep.h: Add include guard.
12941 * mips-linux-tdep.h: Add include guard.
12942 * mi/mi-parse.h: Rename include guard.
12943 * mi/mi-out.h: Rename include guard.
12944 * mi/mi-main.h: Rename include guard.
12945 * mi/mi-interp.h: Rename include guard.
12946 * mi/mi-getopt.h: Rename include guard.
12947 * mi/mi-console.h: Rename include guard.
12948 * mi/mi-common.h: Rename include guard.
12949 * mi/mi-cmds.h: Rename include guard.
12950 * mi/mi-cmd-break.h: Rename include guard.
12951 * m2-lang.h: Add include guard.
12952 * location.h: Rename include guard.
12953 * linux-record.h: Rename include guard.
12954 * linux-nat.h: Add include guard.
12955 * linux-fork.h: Add include guard.
12956 * i386-darwin-tdep.h: Rename include guard.
12957 * hppa-linux-offsets.h: Add include guard.
12958 * guile/guile.h: Rename include guard.
12959 * guile/guile-internal.h: Rename include guard.
12960 * gnu-nat.h: Rename include guard.
12961 * gdb-stabs.h: Rename include guard.
12962 * frv-tdep.h: Add include guard.
12963 * f-lang.h: Add include guard.
12964 * event-loop.h: Add include guard.
12965 * darwin-nat.h: Rename include guard.
12966 * cp-abi.h: Rename include guard.
12967 * config/sparc/nm-sol2.h: Rename include guard.
12968 * config/nm-nto.h: Rename include guard.
12969 * config/nm-linux.h: Add include guard.
12970 * config/i386/nm-i386gnu.h: Rename include guard.
12971 * config/djgpp/nl_types.h: Rename include guard.
12972 * config/djgpp/langinfo.h: Rename include guard.
12973 * compile/gcc-cp-plugin.h: Add include guard.
12974 * compile/gcc-c-plugin.h: Add include guard.
12975 * compile/compile.h: Rename include guard.
12976 * compile/compile-object-run.h: Rename include guard.
12977 * compile/compile-object-load.h: Rename include guard.
12978 * compile/compile-internal.h: Rename include guard.
12979 * compile/compile-cplus.h: Rename include guard.
12980 * compile/compile-c.h: Rename include guard.
12981 * common/xml-utils.h: Rename include guard.
12982 * common/x86-xstate.h: Rename include guard.
12983 * common/version.h: Rename include guard.
12984 * common/vec.h: Rename include guard.
12985 * common/tdesc.h: Rename include guard.
12986 * common/selftest.h: Rename include guard.
12987 * common/scoped_restore.h: Rename include guard.
12988 * common/scoped_mmap.h: Rename include guard.
12989 * common/scoped_fd.h: Rename include guard.
12990 * common/safe-iterator.h: Rename include guard.
12991 * common/run-time-clock.h: Rename include guard.
12992 * common/refcounted-object.h: Rename include guard.
12993 * common/queue.h: Rename include guard.
12994 * common/ptid.h: Rename include guard.
12995 * common/print-utils.h: Rename include guard.
12996 * common/preprocessor.h: Rename include guard.
12997 * common/pathstuff.h: Rename include guard.
12998 * common/observable.h: Rename include guard.
12999 * common/netstuff.h: Rename include guard.
13000 * common/job-control.h: Rename include guard.
13001 * common/host-defs.h: Rename include guard.
13002 * common/gdb_wait.h: Rename include guard.
13003 * common/gdb_vecs.h: Rename include guard.
13004 * common/gdb_unlinker.h: Rename include guard.
13005 * common/gdb_unique_ptr.h: Rename include guard.
13006 * common/gdb_tilde_expand.h: Rename include guard.
13007 * common/gdb_sys_time.h: Rename include guard.
13008 * common/gdb_string_view.h: Rename include guard.
13009 * common/gdb_splay_tree.h: Rename include guard.
13010 * common/gdb_setjmp.h: Rename include guard.
13011 * common/gdb_ref_ptr.h: Rename include guard.
13012 * common/gdb_optional.h: Rename include guard.
13013 * common/gdb_locale.h: Rename include guard.
13014 * common/gdb_assert.h: Rename include guard.
13015 * common/filtered-iterator.h: Rename include guard.
13016 * common/filestuff.h: Rename include guard.
13017 * common/fileio.h: Rename include guard.
13018 * common/environ.h: Rename include guard.
13019 * common/common-utils.h: Rename include guard.
13020 * common/common-types.h: Rename include guard.
13021 * common/common-regcache.h: Rename include guard.
13022 * common/common-inferior.h: Rename include guard.
13023 * common/common-gdbthread.h: Rename include guard.
13024 * common/common-exceptions.h: Rename include guard.
13025 * common/common-defs.h: Rename include guard.
13026 * common/common-debug.h: Rename include guard.
13027 * common/cleanups.h: Rename include guard.
13028 * common/buffer.h: Rename include guard.
13029 * common/btrace-common.h: Rename include guard.
13030 * common/break-common.h: Rename include guard.
13031 * cli/cli-utils.h: Rename include guard.
13032 * cli/cli-style.h: Rename include guard.
13033 * cli/cli-setshow.h: Rename include guard.
13034 * cli/cli-script.h: Rename include guard.
13035 * cli/cli-interp.h: Rename include guard.
13036 * cli/cli-decode.h: Rename include guard.
13037 * cli/cli-cmds.h: Rename include guard.
13038 * charset-list.h: Add include guard.
13039 * buildsym-legacy.h: Rename include guard.
13040 * bfin-tdep.h: Add include guard.
13041 * ax.h: Rename include guard.
13042 * arm-linux-tdep.h: Add include guard.
13043 * arm-fbsd-tdep.h: Add include guard.
13044 * arch/xtensa.h: Rename include guard.
13045 * arch/tic6x.h: Add include guard.
13046 * arch/i386.h: Add include guard.
13047 * arch/arm.h: Rename include guard.
13048 * arch/arm-linux.h: Rename include guard.
13049 * arch/arm-get-next-pcs.h: Rename include guard.
13050 * arch/amd64.h: Add include guard.
13051 * arch/aarch64-insn.h: Rename include guard.
13052 * arch-utils.h: Rename include guard.
13053 * annotate.h: Add include guard.
13054 * amd64-darwin-tdep.h: Rename include guard.
13055 * aarch64-linux-tdep.h: Add include guard.
13056 * aarch64-fbsd-tdep.h: Add include guard.
13057 * aarch32-linux-nat.h: Add include guard.
13058
ab9268d2
PW
130592019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13060
13061 * macrotab.c (macro_define_internal): New function that
13062 factorizes macro_define_object_internal and macro_define_function
13063 code.
13064 (macro_define_object_internal): Use macro_define_internal.
13065 (macro_define_function): Likewise.
13066
bb0da2b4
PW
130672019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13068
13069 * macrocmd.c (extract_identifier): Return
13070 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13071 callers.
13072
424eb552
JB
130732019-02-06 John Baldwin <jhb@FreeBSD.org>
13074
13075 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13076
1688cb29
TT
130772019-02-05 Tom Tromey <tom@tromey.com>
13078
13079 * target.c (target_stack::unpush): Move assertion earlier.
13080
b5eba2d8
TT
130812019-01-30 Tom Tromey <tom@tromey.com>
13082
13083 PR python/23615:
13084 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13085 (gdbpy_parse_and_eval): Likewise.
13086 * python/python-internal.h (gdbpy_allow_threads): New class.
13087
7054e2ff
JB
130882019-01-28 John Baldwin <jhb@FreeBSD.org>
13089
13090 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13091 (aarch64_fbsd_fpregmap): Move earlier.
13092 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13093 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13094 instead of individual calls to trad_frame_set_reg_addr.
13095 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13096 earlier.
13097 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13098 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13099 instead of individual calls to trad_frame_set_reg_addr.
13100
36c25ffa
AH
131012019-01-28 Alan Hayward <alan.hayward@arm.com>
13102
13103 * CONTRIBUTE: Replace contribution list with wiki link.
13104
a0707f3c
TT
131052019-01-25 Tom Tromey <tom@tromey.com>
13106
13107 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13108
0747795c
TT
131092019-01-25 Tom Tromey <tom@tromey.com>
13110
13111 * xtensa-linux-nat.c: Fix common/ includes.
13112 * xml-support.h: Fix common/ includes.
13113 * xml-support.c: Fix common/ includes.
13114 * x86-linux-nat.c: Fix common/ includes.
13115 * windows-nat.c: Fix common/ includes.
13116 * varobj.h: Fix common/ includes.
13117 * varobj.c: Fix common/ includes.
13118 * value.c: Fix common/ includes.
13119 * valops.c: Fix common/ includes.
13120 * utils.c: Fix common/ includes.
13121 * unittests/xml-utils-selftests.c: Fix common/ includes.
13122 * unittests/utils-selftests.c: Fix common/ includes.
13123 * unittests/unpack-selftests.c: Fix common/ includes.
13124 * unittests/tracepoint-selftests.c: Fix common/ includes.
13125 * unittests/style-selftests.c: Fix common/ includes.
13126 * unittests/string_view-selftests.c: Fix common/ includes.
13127 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13128 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13129 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13130 * unittests/rsp-low-selftests.c: Fix common/ includes.
13131 * unittests/parse-connection-spec-selftests.c: Fix common/
13132 includes.
13133 * unittests/optional-selftests.c: Fix common/ includes.
13134 * unittests/offset-type-selftests.c: Fix common/ includes.
13135 * unittests/observable-selftests.c: Fix common/ includes.
13136 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13137 * unittests/memrange-selftests.c: Fix common/ includes.
13138 * unittests/memory-map-selftests.c: Fix common/ includes.
13139 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13140 * unittests/function-view-selftests.c: Fix common/ includes.
13141 * unittests/environ-selftests.c: Fix common/ includes.
13142 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13143 * unittests/common-utils-selftests.c: Fix common/ includes.
13144 * unittests/cli-utils-selftests.c: Fix common/ includes.
13145 * unittests/array-view-selftests.c: Fix common/ includes.
13146 * ui-file.c: Fix common/ includes.
13147 * tui/tui-io.c: Fix common/ includes.
13148 * tracepoint.h: Fix common/ includes.
13149 * tracepoint.c: Fix common/ includes.
13150 * tracefile-tfile.c: Fix common/ includes.
13151 * top.h: Fix common/ includes.
13152 * top.c: Fix common/ includes.
13153 * thread.c: Fix common/ includes.
13154 * target/waitstatus.h: Fix common/ includes.
13155 * target/waitstatus.c: Fix common/ includes.
13156 * target.h: Fix common/ includes.
13157 * target.c: Fix common/ includes.
13158 * target-memory.c: Fix common/ includes.
13159 * target-descriptions.c: Fix common/ includes.
13160 * symtab.h: Fix common/ includes.
13161 * symfile.c: Fix common/ includes.
13162 * stap-probe.c: Fix common/ includes.
13163 * spu-linux-nat.c: Fix common/ includes.
13164 * sparc-nat.c: Fix common/ includes.
13165 * source.c: Fix common/ includes.
13166 * solib.c: Fix common/ includes.
13167 * solib-target.c: Fix common/ includes.
13168 * ser-unix.c: Fix common/ includes.
13169 * ser-tcp.c: Fix common/ includes.
13170 * ser-pipe.c: Fix common/ includes.
13171 * ser-base.c: Fix common/ includes.
13172 * selftest-arch.c: Fix common/ includes.
13173 * s12z-tdep.c: Fix common/ includes.
13174 * rust-exp.y: Fix common/ includes.
13175 * rs6000-aix-tdep.c: Fix common/ includes.
13176 * riscv-tdep.c: Fix common/ includes.
13177 * remote.c: Fix common/ includes.
13178 * remote-notif.h: Fix common/ includes.
13179 * remote-fileio.h: Fix common/ includes.
13180 * remote-fileio.c: Fix common/ includes.
13181 * regcache.h: Fix common/ includes.
13182 * regcache.c: Fix common/ includes.
13183 * record-btrace.c: Fix common/ includes.
13184 * python/python.c: Fix common/ includes.
13185 * python/py-type.c: Fix common/ includes.
13186 * python/py-inferior.c: Fix common/ includes.
13187 * progspace.h: Fix common/ includes.
13188 * producer.c: Fix common/ includes.
13189 * procfs.c: Fix common/ includes.
13190 * proc-api.c: Fix common/ includes.
13191 * printcmd.c: Fix common/ includes.
13192 * ppc-linux-nat.c: Fix common/ includes.
13193 * parser-defs.h: Fix common/ includes.
13194 * osdata.c: Fix common/ includes.
13195 * obsd-nat.c: Fix common/ includes.
13196 * nat/x86-linux.c: Fix common/ includes.
13197 * nat/x86-linux-dregs.c: Fix common/ includes.
13198 * nat/x86-dregs.h: Fix common/ includes.
13199 * nat/x86-dregs.c: Fix common/ includes.
13200 * nat/ppc-linux.c: Fix common/ includes.
13201 * nat/mips-linux-watch.h: Fix common/ includes.
13202 * nat/mips-linux-watch.c: Fix common/ includes.
13203 * nat/linux-waitpid.c: Fix common/ includes.
13204 * nat/linux-ptrace.h: Fix common/ includes.
13205 * nat/linux-ptrace.c: Fix common/ includes.
13206 * nat/linux-procfs.c: Fix common/ includes.
13207 * nat/linux-personality.c: Fix common/ includes.
13208 * nat/linux-osdata.c: Fix common/ includes.
13209 * nat/linux-namespaces.c: Fix common/ includes.
13210 * nat/linux-btrace.h: Fix common/ includes.
13211 * nat/linux-btrace.c: Fix common/ includes.
13212 * nat/fork-inferior.c: Fix common/ includes.
13213 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13214 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13215 * nat/aarch64-linux.c: Fix common/ includes.
13216 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13217 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13218 * namespace.h: Fix common/ includes.
13219 * mips-linux-tdep.c: Fix common/ includes.
13220 * minsyms.c: Fix common/ includes.
13221 * mi/mi-parse.h: Fix common/ includes.
13222 * mi/mi-main.c: Fix common/ includes.
13223 * mi/mi-cmd-env.c: Fix common/ includes.
13224 * memrange.h: Fix common/ includes.
13225 * memattr.c: Fix common/ includes.
13226 * maint.h: Fix common/ includes.
13227 * maint.c: Fix common/ includes.
13228 * main.c: Fix common/ includes.
13229 * machoread.c: Fix common/ includes.
13230 * location.c: Fix common/ includes.
13231 * linux-thread-db.c: Fix common/ includes.
13232 * linux-nat.c: Fix common/ includes.
13233 * linux-fork.c: Fix common/ includes.
13234 * inline-frame.c: Fix common/ includes.
13235 * infrun.c: Fix common/ includes.
13236 * inflow.c: Fix common/ includes.
13237 * inferior.h: Fix common/ includes.
13238 * inferior.c: Fix common/ includes.
13239 * infcmd.c: Fix common/ includes.
13240 * inf-ptrace.c: Fix common/ includes.
13241 * inf-child.c: Fix common/ includes.
13242 * ia64-linux-nat.c: Fix common/ includes.
13243 * i387-tdep.c: Fix common/ includes.
13244 * i386-tdep.c: Fix common/ includes.
13245 * i386-linux-tdep.c: Fix common/ includes.
13246 * i386-linux-nat.c: Fix common/ includes.
13247 * i386-go32-tdep.c: Fix common/ includes.
13248 * i386-fbsd-tdep.c: Fix common/ includes.
13249 * i386-fbsd-nat.c: Fix common/ includes.
13250 * guile/scm-type.c: Fix common/ includes.
13251 * guile/guile.c: Fix common/ includes.
13252 * go32-nat.c: Fix common/ includes.
13253 * gnu-nat.c: Fix common/ includes.
13254 * gdbthread.h: Fix common/ includes.
13255 * gdbarch-selftests.c: Fix common/ includes.
13256 * gdb_usleep.c: Fix common/ includes.
13257 * gdb_select.h: Fix common/ includes.
13258 * gdb_bfd.c: Fix common/ includes.
13259 * gcore.c: Fix common/ includes.
13260 * fork-child.c: Fix common/ includes.
13261 * findvar.c: Fix common/ includes.
13262 * fbsd-nat.c: Fix common/ includes.
13263 * event-top.c: Fix common/ includes.
13264 * event-loop.c: Fix common/ includes.
13265 * dwarf2read.c: Fix common/ includes.
13266 * dwarf2loc.c: Fix common/ includes.
13267 * dwarf2-frame.c: Fix common/ includes.
13268 * dwarf-index-cache.c: Fix common/ includes.
13269 * dtrace-probe.c: Fix common/ includes.
13270 * disasm-selftests.c: Fix common/ includes.
13271 * defs.h: Fix common/ includes.
13272 * csky-tdep.c: Fix common/ includes.
13273 * cp-valprint.c: Fix common/ includes.
13274 * cp-support.h: Fix common/ includes.
13275 * cp-support.c: Fix common/ includes.
13276 * corelow.c: Fix common/ includes.
13277 * completer.h: Fix common/ includes.
13278 * completer.c: Fix common/ includes.
13279 * compile/compile.c: Fix common/ includes.
13280 * compile/compile-loc2c.c: Fix common/ includes.
13281 * compile/compile-cplus-types.c: Fix common/ includes.
13282 * compile/compile-cplus-symbols.c: Fix common/ includes.
13283 * command.h: Fix common/ includes.
13284 * cli/cli-dump.c: Fix common/ includes.
13285 * cli/cli-cmds.c: Fix common/ includes.
13286 * charset.c: Fix common/ includes.
13287 * build-id.c: Fix common/ includes.
13288 * btrace.h: Fix common/ includes.
13289 * btrace.c: Fix common/ includes.
13290 * breakpoint.h: Fix common/ includes.
13291 * breakpoint.c: Fix common/ includes.
13292 * ax.h:
13293 (enum agent_op): Fix common/ includes.
13294 * ax-general.c (struct aop_map): Fix common/ includes.
13295 * ax-gdb.c: Fix common/ includes.
13296 * auxv.c: Fix common/ includes.
13297 * auto-load.c: Fix common/ includes.
13298 * arm-tdep.c: Fix common/ includes.
13299 * arch/riscv.c: Fix common/ includes.
13300 * arch/ppc-linux-common.c: Fix common/ includes.
13301 * arch/i386.c: Fix common/ includes.
13302 * arch/arm.c: Fix common/ includes.
13303 * arch/arm-linux.c: Fix common/ includes.
13304 * arch/arm-get-next-pcs.c: Fix common/ includes.
13305 * arch/amd64.c: Fix common/ includes.
13306 * arch/aarch64.c: Fix common/ includes.
13307 * arch/aarch64-insn.c: Fix common/ includes.
13308 * arch-utils.c: Fix common/ includes.
13309 * amd64-windows-tdep.c: Fix common/ includes.
13310 * amd64-tdep.c: Fix common/ includes.
13311 * amd64-sol2-tdep.c: Fix common/ includes.
13312 * amd64-obsd-tdep.c: Fix common/ includes.
13313 * amd64-nbsd-tdep.c: Fix common/ includes.
13314 * amd64-linux-tdep.c: Fix common/ includes.
13315 * amd64-linux-nat.c: Fix common/ includes.
13316 * amd64-fbsd-tdep.c: Fix common/ includes.
13317 * amd64-fbsd-nat.c: Fix common/ includes.
13318 * amd64-dicos-tdep.c: Fix common/ includes.
13319 * amd64-darwin-tdep.c: Fix common/ includes.
13320 * agent.c: Fix common/ includes.
13321 * ada-lang.h: Fix common/ includes.
13322 * ada-lang.c: Fix common/ includes.
13323 * aarch64-tdep.c: Fix common/ includes.
13324
2f5c153e
TT
133252019-01-25 Tom Tromey <tom@tromey.com>
13326
13327 * common/create-version.sh: Use common/version.h.
13328
adc6a863
PA
133292019-01-24 Pedro Alves <palves@redhat.com>
13330
13331 * infrun.c (signal_stop, signal_print, signal_program)
13332 (signal_catch, signal_pass): Now arrays instead of pointers.
13333 (update_signals_program_target, do_target_resume)
13334 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13335 * linux-nat.c (linux_nat_target::pass_signals)
13336 (linux_nat_target::create_inferior, linux_nat_target::attach):
13337 Adjust.
13338 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13339 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13340 * procfs.c (procfs_target::pass_signals): Adjust.
13341 * record-full.c (record_full_target::resume): Adjust.
13342 * remote.c (remote_target::pass_signals)
13343 (remote_target::program_signals): Adjust.
13344 * target-debug.h (target_debug_print_signals): Now takes a
13345 gdb::array_view as parameter. Adjust.
13346 * target.h (target_ops) <pass_signals, program_signals>: Replace
13347 pointer and length parameters with gdb::array_view.
13348 (target_pass_signals, target_program_signals): Likewise.
13349 * target-delegates.c: Regenerate.
13350
3046d67a
PA
133512019-01-24 Pedro Alves <palves@redhat.com>
13352
13353 * common/forward-scope-exit.h
13354 (forward_scope_exit::forward_scope_exit): Pass arguments to
13355 m_bind_function directly, instead of creating a std::bind and
13356 copying that.
13357
353229bf
AH
133582019-01-24 Alan Hayward <alan.hayward@arm.com>
13359
13360 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13361 for static members.
13362 (pass_in_v_vfp_candidate): Likewise.
13363
311dc83a
TT
133642019-01-23 Tom Tromey <tom@tromey.com>
13365 Pedro Alves <palves@redhat.com>
13366
13367 * regcache.c (class regcache_invalidator): Remove.
13368 (regcache::raw_write): Use make_scope_exit.
13369
296bd123
TT
133702019-01-23 Tom Tromey <tom@tromey.com>
13371
13372 * ui-out.h (class ui_out_emit_type): Update comment.
13373
979a0d13
TT
133742019-01-23 Tom Tromey <tom@tromey.com>
13375
13376 * infrun.c (fetch_inferior_event): Update comment.
13377
d238133d
TT
133782019-01-23 Tom Tromey <tom@tromey.com>
13379 Pedro Alves <palves@redhat.com>
13380
13381 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13382 parameter.
13383 (fetch_inferior_event): Use SCOPE_EXIT.
13384
13385
9885e6bb
TT
133862019-01-23 Tom Tromey <tom@tromey.com>
13387 Pedro Alves <palves@redhat.com>
13388
13389 * infrun.c (disable_thread_events): Delete.
13390 (stop_all_threads): Use SCOPE_EXIT.
13391
286526c1
TT
133922019-01-23 Tom Tromey <tom@tromey.com>
13393 Pedro Alves <palves@redhat.com>
13394
13395 * symfile.c: Include forward-scope-exit.h.
13396 (clear_symtab_users_cleanup): Replace forward declaration with
13397 a FORWARD_SCOPE_EXIT.
13398 (syms_from_objfile_1): Use the forward_scope_exit and
13399 gdb::optional instead of cleanup_function.
13400 (reread_symbols): Use the forward_scope_exit instead of
13401 cleanup_function.
13402 (clear_symtab_users_cleanup): Remove function.
13403
1db93f14
TT
134042019-01-23 Tom Tromey <tom@tromey.com>
13405 Pedro Alves <palves@redhat.com>
13406
13407 * linux-nat.c: Include scope-exit.h.
13408 (cleanup_target_stop): Remove.
13409 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13410 SCOPE_EXIT.
13411
2cc83d1e
TT
134122019-01-23 Tom Tromey <tom@tromey.com>
13413 Pedro Alves <palves@redhat.com>
13414
13415 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13416 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13417
694c6bf5
TT
134182019-01-23 Tom Tromey <tom@tromey.com>
13419 Andrew Burgess <andrew.burgess@embecosm.com>
13420 Pedro Alves <palves@redhat.com>
13421
13422 * infrun.c (fetch_inferior_event): Use scope_exit.
13423 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13424 * top.c (execute_command): Use scope_exit.
13425 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13426 * utils.c (do_bpstat_clear_actions_cleanup)
13427 (make_bpstat_clear_actions_cleanup): Remove.
13428
4c41382a
TT
134292019-01-23 Tom Tromey <tom@tromey.com>
13430 Pedro Alves <palves@redhat.com>
13431
13432 * infrun.c: Include "common/scope-exit.h"
13433 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13434 (wait_for_inferior): Use SCOPE_EXIT.
13435 (fetch_inferior_event): Use scope_exit.
13436
89f8fb50
TT
134372019-01-23 Tom Tromey <tom@tromey.com>
13438 Pedro Alves <palves@redhat.com>
13439
13440 * breakpoint.c (create_breakpoint): Remove cleanup.
13441
5419bdae
TT
134422019-01-23 Tom Tromey <tom@tromey.com>
13443 Andrew Burgess <andrew.burgess@embecosm.com>
13444 Pedro Alves <palves@redhat.com>
13445
e587ef42
PA
134462019-01-23 Pedro Alves <palves@redhat.com>
13447
13448 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13449
77f0e74c
PA
134502019-01-23 Pedro Alves <palves@redhat.com>
13451 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 * gdbthread.h: Include "common/forward-scope-exit.h".
13454 (scoped_finish_thread_state): Redefine custom class in terms of
13455 forward_scope_exit.
13456
5b9b3e53
PA
134572019-01-23 Pedro Alves <palves@redhat.com>
13458 Andrew Burgess <andrew.burgess@embecosm.com>
13459
13460 * common/forward-scope-exit.h: New file.
13461
54b65c9b
PA
134622019-01-23 Pedro Alves <palves@redhat.com>
13463 Andrew Burgess <andrew.burgess@embecosm.com>
13464 Tom Tromey <tom@tromey.com>
13465
13466 * common/scope-exit.h: New file.
13467
cf08fb29
PA
134682019-01-23 Pedro Alves <palves@redhat.com>
13469
13470 * common/preprocessor.h (ESC): Rename to ...
13471 (ESC_PARENS): ... this.
13472 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13473 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13474
ae73e2e2
TT
134752019-01-23 Tom Tromey <tom@tromey.com>
13476
13477 * language.h (class scoped_switch_to_sym_language_if_auto):
13478 Initialize m_lang in both cases.
13479
6594e122
AH
134802019-01-23 Alan Hayward <alan.hayward@arm.com>
13481
13482 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13483 with XCNEW.
13484
a7c9855d
TT
134852019-01-22 Tom Tromey <tom@tromey.com>
13486
13487 * corelow.c: Do not include sys/file.h.
13488
93cc1d53
TT
134892019-01-22 Tom Tromey <tom@tromey.com>
13490
13491 * tui/tui-wingeneral.h: Include gdb_curses.h.
13492
38561778
TT
134932019-01-22 Tom Tromey <tom@tromey.com>
13494
13495 * source-cache.h (class source_cache) <get_source_lines,
13496 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13497
37b3ab5b
TT
134982019-01-22 Tom Tromey <tom@tromey.com>
13499
13500 * remote-fileio.h (struct remote_target): Declare.
13501
3fabc016
TT
135022019-01-22 Tom Tromey <tom@tromey.com>
13503
13504 * python/py-arch.c: Do not include py-ref.h.
13505 * python/py-bpevent.c: Do not include py-ref.h.
13506 * python/py-cmd.c: Do not include py-ref.h.
13507 * python/py-continueevent.c: Do not include py-ref.h.
13508 * python/py-event.h: Do not include py-ref.h.
13509 * python/py-evtregistry.c: Do not include py-ref.h.
13510 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13511 * python/py-frame.c: Do not include py-ref.h.
13512 * python/py-framefilter.c: Do not include py-ref.h.
13513 * python/py-function.c: Do not include py-ref.h.
13514 * python/py-infevents.c: Do not include py-ref.h.
13515 * python/py-linetable.c: Do not include py-ref.h.
13516 * python/py-objfile.c: Do not include py-ref.h.
13517 * python/py-param.c: Do not include py-ref.h.
13518 * python/py-prettyprint.c: Do not include py-ref.h.
13519 * python/py-progspace.c: Do not include py-ref.h.
13520 * python/py-symbol.c: Do not include py-ref.h.
13521 * python/py-symtab.c: Do not include py-ref.h.
13522 * python/py-type.c: Do not include py-ref.h.
13523 * python/py-unwind.c: Do not include py-ref.h.
13524 * python/py-utils.c: Do not include py-ref.h.
13525 * python/py-value.c: Do not include py-ref.h.
13526 * python/py-varobj.c: Do not include py-ref.h.
13527 * python/py-xmethods.c: Do not include py-ref.h.
13528 * python/python.c: Do not include py-ref.h.
13529 * varobj.c: Do not include py-ref.h.
13530
6b4d7774
TT
135312019-01-22 Tom Tromey <tom@tromey.com>
13532
13533 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13534 keyword for bcache.
13535
7af7e9b5
TT
135362019-01-22 Tom Tromey <tom@tromey.com>
13537
13538 * compile/compile-cplus-types.c: Remove a comment by #include.
13539
951d1049
TT
135402019-01-22 Tom Tromey <tom@tromey.com>
13541
13542 * compile/gcc-c-plugin.h: Include compile-internal.h.
13543
d65d5705
TT
135442019-01-22 Tom Tromey <tom@tromey.com>
13545
13546 * stabsread.c (EXTERN): Do not define.
13547 (symnum, next_symbol_text_func, processing_gcc_compilation)
13548 (within_function, global_sym_chain, global_stabs)
13549 (previous_stab_code, this_object_header_files)
13550 (n_this_object_header_files)
13551 (n_allocated_this_object_header_files): Define.
13552 * stabsread.h (EXTERN): Never define. Use "extern".
13553
b6fb1ee5
PW
135542019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13555
13556 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13557 history_value.
13558
be6d4f74
TT
135592019-01-21 Tom Tromey <tom@tromey.com>
13560
13561 * ui-out.c: Fix includes.
13562 * tui/tui-source.c: Fix includes.
13563 * target.c: Fix includes.
13564 * remote.c: Fix includes.
13565 * regcache.c: Fix includes.
13566 * python/py-block.c: Fix includes.
13567 * printcmd.c: Fix includes.
13568 * or1k-tdep.c: Fix includes.
13569 * mi/mi-main.c: Fix includes.
13570 * m32r-tdep.c: Fix includes.
13571 * csky-tdep.c: Fix includes.
13572 * compile/compile-cplus-types.c: Fix includes.
13573 * cli/cli-interp.c: Fix includes.
13574
73021deb
AH
135752019-01-21 Alan Hayward <alan.hayward@arm.com>
13576
13577 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13578 for padding.
13579
7932255d
TT
135802019-01-16 Tom Tromey <tom@tromey.com>
13581
13582 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13583 earlier.
13584 (struct objfile) <msymbols_range>: Move from top level.
13585 <msymbols>: New method.
13586 (class objfile_msymbols): Remove.
13587 * symtab.c (default_collect_symbol_completion_matches_break_on):
13588 Update.
13589 * symmisc.c (dump_msymbols): Update.
13590 * stabsread.c (scan_file_globals): Update.
13591 * objc-lang.c (info_selectors_command, info_classes_command)
13592 (find_methods): Update.
13593 * minsyms.c (find_solib_trampoline_target): Update.
13594 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13595 * coffread.c (coff_symfile_read): Update.
13596 * ada-lang.c (ada_lookup_simple_minsym)
13597 (ada_collect_symbol_completion_matches): Update.
13598
604b1bfb
TT
135992019-01-16 Tom Tromey <tom@tromey.com>
13600
13601 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13602 type. Remove no-argument constructor.
13603 <iterator::operator++>: Simplify.
13604 <begin>: Update.
13605 <end>: Use minimal_symbol_count.
13606
f252c6d5
TT
136072019-01-16 Tom Tromey <tom@tromey.com>
13608
13609 * objfiles.h (struct objfile) <psymtabs>: New method.
13610 (class objfile_psymtabs): Remove.
13611 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13612 typedef.
13613 <range>: New method.
13614 (require_partial_symbols): Change return type.
13615 * psymtab.c (require_partial_symbols)
13616 (psym_expand_symtabs_matching): Update.
13617 * mdebugread.c (parse_partial_symbols): Update.
13618 * dbxread.c (dbx_end_psymtab): Update.
13619
b669c953
TT
136202019-01-15 Tom Tromey <tom@tromey.com>
13621
13622 * symtab.c (lookup_objfile_from_block)
13623 (lookup_symbol_in_objfile_symtabs)
13624 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13625 (find_line_symtab, info_sources_command)
13626 (default_collect_symbol_completion_matches_break_on)
13627 (make_source_files_completion_list): Update.
13628 * symmisc.c (print_objfile_statistics, dump_objfile)
13629 (maintenance_print_symbols, maintenance_info_symtabs)
13630 (maintenance_check_symtabs, maintenance_info_line_tables):
13631 Update.
13632 * source.c (select_source_symtab)
13633 (forget_cached_source_info_for_objfile): Update.
13634 * objfiles.h (class objfile_compunits): Remove.
13635 (struct objfile) <compunits_range>: New typedef.
13636 (compunits): New method.
13637 * objfiles.c (objfile_relocate1): Update.
13638 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13639 * maint.c (count_symtabs_and_blocks): Update.
13640 * linespec.c (iterate_over_all_matching_symtabs): Update.
13641 * cp-support.c (add_symbol_overload_list_qualified): Update.
13642 * coffread.c (coff_symtab_read): Update.
13643 * ada-lang.c (add_nonlocal_symbols)
13644 (ada_collect_symbol_completion_matches)
13645 (ada_add_global_exceptions): Update.
13646
7e955d83
TT
136472019-01-15 Tom Tromey <tom@tromey.com>
13648
13649 * progspace.h (program_space) <objfiles_safe_range>: New
13650 typedef.
13651 <objfiles_safe>: New method.
13652 * objfiles.h (class all_objfiles_safe): Remove.
13653 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13654 * jit.c (jit_inferior_exit_hook): Update.
13655
2030c079
TT
136562019-01-17 Tom Tromey <tom@tromey.com>
13657
13658 * progspace.h (program_space) <objfiles_range>: New typedef.
13659 <objfiles>: New method.
13660 <objfiles_head>: Rename from objfiles.
13661 (object_files): Update.
13662 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13663 * guile/scm-pretty-print.c
13664 (ppscm_find_pretty_printer_from_objfiles): Update.
13665 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13666 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13667 Update.
13668 * python/py-progspace.c (pspy_get_objfiles): Update.
13669 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13670 Update.
13671 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13672 (objfpy_lookup_objfile_by_build_id): Update.
13673 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13674 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13675 Update.
13676 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13677 (expand_symtab_containing_pc, lookup_objfile_from_block)
13678 (lookup_static_symbol, basic_lookup_transparent_type)
13679 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13680 (find_line_symtab, info_sources_command)
13681 (default_collect_symbol_completion_matches_break_on)
13682 (make_source_files_completion_list, find_main_name): Update.
13683 * symmisc.c (print_symbol_bcache_statistics)
13684 (print_objfile_statistics, maintenance_print_symbols)
13685 (maintenance_print_msymbols, maintenance_print_objfiles)
13686 (maintenance_info_symtabs, maintenance_check_symtabs)
13687 (maintenance_expand_symtabs, maintenance_info_line_tables):
13688 Update.
13689 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13690 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13691 (map_overlay_command, unmap_overlay_command)
13692 (simple_overlay_update, expand_symtabs_matching)
13693 (map_symbol_filenames): Update.
13694 * symfile-debug.c (set_debug_symfile): Update.
13695 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13696 Update.
13697 * source.c (select_source_symtab, forget_cached_source_info):
13698 Update.
13699 * solib.c (solib_read_symbols): Update.
13700 * solib-spu.c (append_ocl_sos): Update.
13701 * psymtab.c (maintenance_print_psymbols)
13702 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13703 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13704 * printcmd.c (info_symbol_command): Update.
13705 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13706 Update.
13707 * objfiles.h (class all_objfiles): Remove.
13708 * objfiles.c (have_partial_symbols, have_full_symbols)
13709 (have_minimal_symbols, qsort_cmp, update_section_map)
13710 (shared_objfile_contains_address_p)
13711 (default_iterate_over_objfiles_in_search_order): Update.
13712 * objc-lang.c (info_selectors_command, info_classes_command)
13713 (find_methods): Update.
13714 * minsyms.c (find_solib_trampoline_target): Update.
13715 * maint.c (maintenance_info_sections)
13716 (maintenance_translate_address, count_symtabs_and_blocks):
13717 Update.
13718 * main.c (captured_main_1): Update.
13719 * linux-thread-db.c (try_thread_db_load_from_pdir)
13720 (has_libpthread): Update.
13721 * linespec.c (iterate_over_all_matching_symtabs)
13722 (search_minsyms_for_name): Update.
13723 * jit.c (jit_find_objf_with_entry_addr): Update.
13724 * hppa-tdep.c (find_unwind_entry)
13725 (hppa_lookup_stub_minimal_symbol): Update.
13726 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13727 Update.
13728 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13729 (elf_gnu_ifunc_resolve_by_got): Update.
13730 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13731 * dwarf-index-write.c (save_gdb_index_command): Update.
13732 * cp-support.c (add_symbol_overload_list_qualified): Update.
13733 * breakpoint.c (create_overlay_event_breakpoint)
13734 (create_longjmp_master_breakpoint)
13735 (create_std_terminate_master_breakpoint)
13736 (create_exception_master_breakpoint): Update.
13737 * blockframe.c (find_pc_partial_function): Update.
13738 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13739 (ada_collect_symbol_completion_matches)
13740 (ada_add_global_exceptions): Update.
13741
776489e0
TT
137422019-01-17 Tom Tromey <tom@tromey.com>
13743
13744 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13745 declare VEC.
13746 (solib_target_parse_libraries): Change return type.
13747 (library_list_start_segment, library_list_start_section)
13748 (library_list_end_library, library_list_start_library); Update.
13749 (solib_target_free_library_list): Remove.
13750 (solib_target_parse_libraries): Remove cleanup. Change return
13751 type.
13752 (solib_target_current_sos): Update.
13753
6471e7d2
TT
137542019-01-17 Tom Tromey <tromey@bapiya>
13755
13756 * valprint.c: Replace "the the" with "the".
13757 * symtab.c: Replace "the the" with "the".
13758 * solib.c: Replace "the the" with "the".
13759 * solib-dsbt.c: Replace "the the" with "the".
13760 * linespec.c: Replace "the the" with "the".
13761 * dwarf2loc.h: Replace "the the" with "the".
13762 * amd64-windows-tdep.c: Replace "the the" with "the".
13763 * aarch64-tdep.c: Replace "the the" with "the".
13764
c24bdb02
KS
137652019-01-16 Keith Seitz <keiths@redhat.com>
13766
13767 PR gdb/23773
13768 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13769 <builder>: Rename to ..
13770 <m_builder>: ... this and make private.
13771 (dwarf2_cu::get_builder): New method. Change all users of
13772 `builder' to use this method.
13773 (dwarf2_start_symtab): Move to ...
13774 (dwarf2_cu::start_symtab): ... here. Update all callers
13775 (setup_type_unit_groups): Move to ...
13776 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13777 callers.
13778 (dwarf2_cu::reset_builder): New method.
13779 (process_full_compunit, process_full_type_unit): Use
13780 dwarf2_cu::reset_builder.
13781 (follow_die_offset): Record the ancestor CU if it is different
13782 from the followed DIE's CU.
13783 (follow_die_sig_1): Likewise.
13784
8d64371b
TT
137852019-01-15 Tom Tromey <tom@tromey.com>
13786
13787 * remote.c (class remote_state) <buf>: Now a char_vector.
13788 <buf_size>: Remove.
13789 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13790 parameter.
13791 (remote_target::getpkt_or_notif_sane_1)
13792 (remote_target::getpkt_sane)
13793 (remote_target::getpkt_or_notif_sane): Likewise.
13794 (class remote_target) <putpkt>: New overload.
13795 (remote_target::read_frame): Change type of "buf_p". Remove
13796 sizeof_p parameter.
13797 (packet_ok): New overload.
13798 (packet_check_result): New overload.
13799 Update all uses.
13800
bb277751
TT
138012019-01-14 Tom Tromey <tom@tromey.com>
13802
13803 * remote-notif.c (handle_notification, remote_notif_ack)
13804 (remote_notif_parse): Make "buf" const.
13805 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13806 const.
13807 (remote_notif_parse, remote_notif_ack, handle_notification):
13808 Likewise.
13809 * remote.c (remote_notif_stop_parse): Make "buf" const.
13810 (remote_target::remote_parse_stop_reply): Make "buf" const.
13811 (remote_notif_stop_ack): Make "buf" const.
13812
05be00a8
TT
138132019-01-14 Tom Tromey <tom@tromey.com>
13814
13815 * remote.c (remote_console_output): Make parameter const.
13816
491adeca
TT
138172019-01-14 Tom Tromey <tom@tromey.com>
13818
13819 * target-debug.h (target_debug_print_signals): Constify.
13820 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13821 * procfs.c (procfs_target::pass_signals): Update.
13822 * linux-nat.c (linux_nat_target::pass_signals): Update.
13823 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13824 * target-delegates.c: Rebuild.
13825 * remote.c (remote_target::program_signals): Update.
13826 (remote_target::pass_signals): Update.
13827 * target.c (target_pass_signals): Constify argument.
13828 (target_program_signals): Likewise.
13829 * target.h (struct target_ops) <pass_signals, program_signals>:
13830 Constify argument.
13831 (target_pass_signals, target_program_signals): Constify argument.
13832
bbd94648
TT
138332019-01-14 Tom Tromey <tom@tromey.com>
13834
13835 PR tui/28819:
13836 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13837
6f072a10
PFC
138382019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13839
13840 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13841 field.
13842 * rs6000-tdep.c: Include reggroups.h.
13843 (IS_V_ALIAS_PSEUDOREG): Define.
13844 (rs6000_register_name): Return names for the "vX" aliases.
13845 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13846 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13847 aliases. Call default_register_reggroup_p for all other
13848 pseudo-registers.
13849 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13850 New functions.
13851 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13852 Handle "vX" aliases.
13853 (v_alias_pseudo_register_collect): New function.
13854 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13855 (rs6000_gdbarch_init): Initialize "vX" aliases as
13856 pseudo-registers. Restore registration of
13857 rs6000_pseudo_register_reggroup_p with
13858 set_tdesc_pseudo_register_reggroup_p.
13859
1a782351
MF
138602019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13861
13862 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13863 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13864 set_gdbarch_num_pseudo_regs.
13865
d73cff18
PW
138662019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13867
13868 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13869 Remove arg prefixname, add do_set and do_show.
13870 Add member functions set_list and show_list.
13871 * cli/cli-style.c (class cli_style_option): Update accordingly.
13872 (style_set_list): Move to file scope.
13873 (style_show_list): Likewise.
13874 (set_style): Call help_list.
13875 (show_style): Call cmd_show_list.
13876 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13877 Update to use the new macro.
13878
60a90376
JB
138792019-10-12 Joel Brobecker <brobecker@adacore.com>
13880
13881 * ada-lang.c (_initialize_ada_language): Expand the help text
13882 for the "catch exception" command.
13883
9d7c67bf
PW
138842019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13885
13886 * symtab.c (matching_obj_sections): Initialize obj,
13887 declare it closer to its usage.
13888
7cf47dc4
TT
138892019-01-10 Tom Tromey <tom@tromey.com>
13890
13891 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13892 (basic_inf_threads_range): Remove.
13893 (inf_threads_range, inf_non_exited_threads_range)
13894 (safe_inf_threads_range): Use next_adapter.
13895
d3cb6808
KS
138962019-01-10 Keith Seitz <keiths@redhat.com>
13897
13898 PR gdb/23712
13899 PR symtab/23010
13900 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13901 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13902
63a20375
KS
139032019-01-10 Keith Seitz <keiths@redhat.com>
13904
13905 PR gdb/23712
13906 PR symtab/23010
13907 * dictionary.c (pending_to_vector): Remove.
13908 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13909 Remove _1 suffix, replacing functions of the same name. Update
13910 all callers.
13911 (dict_create_hashed, dict_create_hashed_expandable)
13912 (dict_create_linear, dict_create_linear_expandable, dict_free)
13913 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13914 Make functions static.
13915
b026f593
KS
139162019-01-10 Keith Seitz <keiths@redhat.com>
13917
13918 PR gdb/23712
13919 PR symtab/23010
13920 * dictionary.h (struct dictionary): Replace declaration with
13921 multidictionary.
13922 (dict_create_hashed, dict_create_hashed_expandable)
13923 (dict_create_linear, dict_create_linear_expandable)
13924 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13925 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13926 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13927 taking multidictionary argument.
13928 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13929 * block.h (struct block) <dict>: Change to multidictionary
13930 and rename `multidict'.
13931 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13932 symmisc.c: Update all dictionary references to multidictionary.
13933
c7748ee9
KS
139342019-01-10 Keith Seitz <keiths@redhat.com>
13935
13936 PR gdb/23712
13937 PR symtab/23010
13938 * dictionary.c: Include unordered_map.
13939 (pending_to_vector): New function.
13940 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13941 Rewrite the non-"_1" functions to take vector instead
13942 of linked list.
13943 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13944 "new" _1 versions of the same name.
13945 (multidictionary): Define.
13946 (std::hash<enum language): New definition.
13947 (collate_pending_symbols_by_language, mdict_create_hashed)
13948 (mdict_create_hashed_expandable, mdict_create_linear)
13949 (mdict_create_linear_expandable, mdict_free)
13950 (find_language_dictionary, create_new_language_dictionary)
13951 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13952 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13953 (mdict_size, mdict_empty): New functions.
13954 * dictionary.h (mdict_iterator): Define.
13955
67aa1f3c
PA
139562019-01-10 Pedro Alves <palves@redhat.com>
13957
13958 * breakpoint.c (read_uploaded_action)
13959 (create_tracepoint_from_upload): Adjust to use
13960 gdb::unique_xmalloc_ptr.
13961 * ctf.c (ctf_write_uploaded_tp):
13962 (SET_ARRAY_FIELD): Use emplace_back.
13963 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13964 * tracefile-tfile.c (tfile_write_uploaded_tp):
13965 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13966 gdb::unique_xmalloc_ptr.
13967 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13968 at_string, cond_string, cmd_strings>: Replace char pointers
13969 with gdb::unique_xmalloc_ptr.
13970
2f667667
PA
139712019-01-10 Pedro Alves <palves@redhat.com>
13972
13973 * solib-target.c (library_list_start_library): Don't xstrdup name.
13974
36cb7237
PA
139752019-01-10 Pedro Alves <palves@redhat.com>
13976
13977 * mdebugread.c (parse_partial_symbols): Use
13978 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13979
da584958
AB
139802019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13981
13982 * linux-fork.c (scoped_switch_fork_info)
13983 <~scoped_switch_fork_info>: Fix incorrect variable name.
13984
1ef8573c
AB
139852019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13986
13987 * linux-fork.c (scoped_switch_fork_info)
13988 <scoped_switch_fork_info>: Make explicit.
13989 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13990
8d7bcccb
TT
139912019-01-10 Tom Tromey <tom@tromey.com>
13992
13993 * objfiles.h (objfile::reset_psymtabs): Update.
13994 * objfiles.c (objfile::objfile): Update.
13995 * psymtab.h (psymtab_storage::obstack): Update.
13996 (psymtab_storage::m_obstack): Use gdb::optional.
13997 (class psymtab_storage): Update comment. Remove objfile
13998 parameter.
13999 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14000
b596a3c7
TT
140012019-01-10 Tom Tromey <tom@tromey.com>
14002
14003 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14004 <free_psymtabs>: Now private.
14005 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14006 (allocate_psymtab): Use new method.
14007
a9342b62
TT
140082019-01-10 Tom Tromey <tom@tromey.com>
14009
14010 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14011 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14012 * mdebugread.c (parse_partial_symbols): Use
14013 allocate_dependencies.
14014 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14015 allocate_dependencies.
14016 (process_psymtab_comp_unit_reader)
14017 (build_type_psymtab_dependencies): Likewise.
14018 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14019
5af70966
TT
140202019-01-10 Tom Tromey <tom@tromey.com>
14021
14022 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14023 PSYMBOL_SET_LANGUAGE.
14024 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14025
5923a04c
TT
140262019-01-10 Tom Tromey <tom@tromey.com>
14027
14028 * psymtab.h (psymtab_storage::obstack): New method.
14029 <m_obstack>: Rename from obstack; now private.
14030 * psymtab.c (psymtab_storage): Update.
14031 * dwarf2read.c (create_addrmap_from_index)
14032 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14033 Update.
14034
6d6a12bf
TT
140352019-01-10 Tom Tromey <tom@tromey.com>
14036
14037 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14038 * objfiles.h (objfile::reset_psymtabs): New method.
14039
d320c2b5
TT
140402019-01-10 Tom Tromey <tom@tromey.com>
14041
14042 * symmisc.c (print_symbol_bcache_statistics): Update.
14043 (print_objfile_statistics): Update.
14044 * symfile.c (reread_symbols): Update.
14045 * psymtab.h (class psymtab_storage): New.
14046 * psymtab.c (psymtab_storage): New constructor.
14047 (~psymtab_storage): New destructor.
14048 (require_partial_symbols): Update.
14049 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14050 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14051 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14052 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14053 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14054 (start_psymtab_common, end_psymtab_common)
14055 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14056 (allocate_psymtab): Update.
14057 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14058 Update.
14059 (dump_psymtab_addrmap, maintenance_print_psymbols)
14060 (maintenance_check_psymtabs): Update.
14061 (class objfile_psymtabs): Move to objfiles.h.
14062 * psympriv.h (discard_psymtab): Now inline.
14063 (psymtab_discarder::psymtab_discarder): Update.
14064 (psymtab_discarder::~psymtab_discarder): Update.
14065 (ALL_OBJFILE_PSYMTABS): Rewrite.
14066 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14067 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14068 Remove fields.
14069 <partial_symtabs>: New field.
14070 (class objfile_psymtabs): Move from psymtab.h. Update.
14071 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14072 psymbol_cache.
14073 (objfile::~objfile): Don't destroy psymbol_cache.
14074 * mdebugread.c (parse_partial_symbols): Update.
14075 * dwarf2read.c (create_addrmap_from_index)
14076 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14077 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14078 (add_partial_subprogram, dwarf2_ranges_read): Update.
14079 * dwarf-index-write.c (write_address_map)
14080 (write_one_signatured_type, recursively_write_psymbols)
14081 (class debug_names, class debug_names, write_psymtabs_to_index):
14082 Update.
14083
1d94a5a3
TT
140842019-01-10 Tom Tromey <tom@tromey.com>
14085
14086 * symtab.h (SYMBOL_SET_NAMES): Update.
14087 (symbol_set_names): Update.
14088 (MSYMBOL_SET_NAMES): Update.
14089 * symtab.c (symbol_set_names): Change argument to be an
14090 objfile_per_bfd_storage.
14091 * psymtab.c (add_psymbol_to_bcache): Update.
14092 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14093
0f14768a
TT
140942019-01-10 Tom Tromey <tom@tromey.com>
14095
14096 * symtab.c (create_demangled_names_hash): Change argument to be an
14097 objfile_per_bfd_storage.
14098 (symbol_set_names): Update.
14099
6eee24ce
TT
141002019-01-10 Tom Tromey <tom@tromey.com>
14101
14102 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14103 init_psymbol_list.
14104 * psymtab.c (init_psymbol_list): Do nothing if already called.
14105 * psympriv.h (init_psymbol_list): Add comment.
14106 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14107 init_psymbol_list.
14108 * dbxread.c (dbx_symfile_read): Unconditionally call
14109 init_psymbol_list.
14110
75aedd27
TT
141112019-01-10 Tom Tromey <tom@tromey.com>
14112
14113 * xcoffread.c (scan_xcoff_symtab): Update.
14114 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14115 "where".
14116 * mdebugread.c (parse_partial_symbols)
14117 (handle_psymbol_enumerators): Update.
14118 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14119 * dbxread.c (read_dbx_symtab): Update.
14120 * psympriv.h (psymbol_placement): New enum.
14121 (add_psymbol_to_list): Update.
14122
939652a5
TT
141232019-01-10 Tom Tromey <tom@tromey.com>
14124
14125 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14126 static_psymbols parameters.
14127 (scan_xcoff_symtab): Update.
14128 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14129 static_psymbols parameters.
14130 * psympriv.h (start_psymtab_common): Update.
14131 * mdebugread.c (parse_partial_symbols): Update.
14132 * dwarf2read.c (create_partial_symtab): Update.
14133 * dbxread.c (read_dbx_symtab): Update.
14134 (start_psymtab): Remove global_psymbols and static_psymbols
14135 parameters.
14136
baa62830
TT
141372019-01-10 Tom Tromey <tom@tromey.com>
14138
14139 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14140 * psymtab.c (allocate_psymtab): Add comment.
14141 * psympriv.h (allocate_psymtab): Add comment.
14142 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14143 initializations.
14144 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14145
0e8f53ba
TT
141462019-01-10 Tom Tromey <tom@tromey.com>
14147
14148 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14149 Don't declare.
14150 * mipsread.c: Include mdebugread.h.
14151 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14152 Declare.
14153 * elfread.c: Include mdebugread.h.
14154
b22a7c6a
TT
141552019-01-09 Tom Tromey <tom@tromey.com>
14156
14157 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14158 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14159 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14160 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14161 (psym_lookup_symbol, psym_find_last_source_symtab)
14162 (psym_forget_cached_source_info, psym_print_stats)
14163 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14164 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14165 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14166 (psym_find_compunit_symtab_by_address)
14167 (maintenance_print_psymbols, maintenance_info_psymtabs)
14168 (maintenance_check_psymtabs): Use ranged for.
14169 * psymtab.h (class objfile_psymtabs): New.
14170 (require_partial_symbols): Return objfile_psymtabs.
14171 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14172
3b9d3ac2
TT
141732019-01-09 Tom Tromey <tom@tromey.com>
14174
14175 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14176 (find_pc_mapped_section, list_overlays_command)
14177 (map_overlay_command, unmap_overlay_command)
14178 (simple_overlay_update): Use all_objfiles.
14179 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14180 * printcmd.c (info_symbol_command): Use all_objfiles.
14181 * objfiles.h (ALL_OBJSECTIONS): Remove.
14182 * maint.c (maintenance_translate_address): Use all_objfiles.
14183 * gcore.c (gcore_create_callback): Use all_objfiles.
14184 (objfile_find_memory_regions): Likewise.
14185
8b31193a
TT
141862019-01-09 Tom Tromey <tom@tromey.com>
14187
14188 * symtab.c (find_line_symtab, info_sources_command)
14189 (make_source_files_completion_list): Use objfile_compunits.
14190 * source.c (select_source_symtab): Use objfile_compunits.
14191 * objfiles.h (struct objfile): Update comment.
14192 (ALL_OBJFILES): Remove.
14193 (ALL_FILETABS): Remove.
14194 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14195 objfile_compunits.
14196
d5da8b3c
TT
141972019-01-09 Tom Tromey <tom@tromey.com>
14198
14199 * symmisc.c (print_objfile_statistics, dump_objfile)
14200 (maintenance_print_symbols): Use compunit_filetabs.
14201 * source.c (forget_cached_source_info_for_objfile): Use
14202 compunit_filetabs.
14203 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14204 (ALL_FILETABS): Use compunit_filetabs.
14205 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14206 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14207
5accd1a0
TT
142082019-01-09 Tom Tromey <tom@tromey.com>
14209
14210 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14211 (compunit_filetabs): New.
14212 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14213 compunit_filetabs.
14214 (info_sources_command, make_source_files_completion_list): Remove
14215 declaration.
14216 * symmisc.c (print_objfile_statistics, dump_objfile)
14217 (maintenance_print_symbols): Remove declaration.
14218 (maintenance_info_symtabs): Use compunit_filetabs.
14219 (maintenance_info_line_tables): Likewise.
14220 * source.c (select_source_symtab): Change local variable name.
14221 (forget_cached_source_info_for_objfile): Remove declaration.
14222 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14223 * objfiles.c (objfile_relocate1): Remove declaration.
14224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14225 declaration.
14226 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14227 * coffread.c (coff_symtab_read): Remove declaration.
14228 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14229 compunit_filetabs.
14230
d8aeb77f
TT
142312019-01-09 Tom Tromey <tom@tromey.com>
14232
14233 * symtab.c (lookup_objfile_from_block)
14234 (find_pc_sect_compunit_symtab, search_symbols)
14235 (default_collect_symbol_completion_matches_break_on): Use
14236 objfile_compunits.
14237 * objfiles.h (ALL_COMPUNITS): Remove.
14238 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14239 * cp-support.c (add_symbol_overload_list_qualified): Use
14240 objfile_compunits.
14241 * ada-lang.c (ada_collect_symbol_completion_matches)
14242 (ada_add_global_exceptions): Use objfile_compunits.
14243
592553c4
TT
142442019-01-09 Tom Tromey <tom@tromey.com>
14245
14246 * source.c (select_source_symtab)
14247 (forget_cached_source_info_for_objfile): Remove declaration.
14248 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14249 declaration.
14250 * maint.c (count_symtabs_and_blocks): Remove declaration.
14251 * cp-support.c (add_symbol_overload_list_qualified): Remove
14252 declaration.
14253 * coffread.c (coff_symtab_read): Remove declaration.
14254 * symtab.c (lookup_symbol_in_objfile_symtabs)
14255 (basic_lookup_transparent_type_1): Use objfile_compunits.
14256 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14257 (info_sources_command, search_symbols)
14258 (default_collect_symbol_completion_matches_break_on)
14259 (make_source_files_completion_list): Remove declaration.
14260 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14261 (ada_collect_symbol_completion_matches)
14262 (ada_add_global_exceptions): Remove declaration.
14263 * linespec.c (iterate_over_all_matching_symtabs): Use
14264 objfile_compunits.
14265 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14266 (class objfile_compunits): New.
14267 (ALL_COMPUNITS): Use objfile_compunits.
14268 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14269 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14270 objfile_compunits.
14271 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14272
5325b9bf
TT
142732019-01-09 Tom Tromey <tom@tromey.com>
14274
14275 * symtab.c (search_symbols)
14276 (default_collect_symbol_completion_matches_break_on): Use
14277 objfile_msymbols.
14278 * ada-lang.c (ada_lookup_simple_minsym)
14279 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14280 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14281 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14282 objfile_msymbols.
14283 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14284 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14285 * objc-lang.c (find_methods): Use objfile_msymbols.
14286 (info_selectors_command, info_classes_command): Likewise.
14287 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14288 * objfiles.h (class objfile_msymbols): New.
14289 (ALL_OBJFILE_MSYMBOLS): Remove.
14290 (ALL_MSYMBOLS): Remove.
14291
cac85af2
TT
142922019-01-09 Tom Tromey <tom@tromey.com>
14293
14294 * common/next-iterator.h (next_adapter): Add Iterator template
14295 parameter.
14296 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14297 (class all_objfiles_safe): New.
14298 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14299 * objfiles.c (put_objfile_before): Update comment.
14300 (add_separate_debug_objfile): Likewise.
14301 (free_all_objfiles): Use all_objfiles_safe.
14302 (objfile_purge_solibs): Likewise.
14303
aed57c53
TT
143042019-01-09 Tom Tromey <tom@tromey.com>
14305
14306 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14307 (expand_symtab_containing_pc, lookup_static_symbol)
14308 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14309 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14310 all_objfiles.
14311 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14312 * breakpoint.c (create_overlay_event_breakpoint)
14313 (create_longjmp_master_breakpoint)
14314 (create_std_terminate_master_breakpoint)
14315 (create_exception_master_breakpoint): Use all_objfiles.
14316 * linux-thread-db.c (try_thread_db_load_from_pdir)
14317 (has_libpthread): Use all_objfiles.
14318 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14319 * linespec.c (iterate_over_all_matching_symtabs)
14320 (search_minsyms_for_name): Use all_objfiles.
14321 * maint.c (maintenance_info_sections): Use all_objfiles.
14322 * main.c (captured_main_1): Use all_objfiles.
14323 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14324 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14325 * guile/scm-pretty-print.c
14326 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14327 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14328 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14329 (maintenance_print_msymbols): Use all_objfiles.
14330 * source.c (select_source_symtab): Use all_objfiles.
14331 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14332 * symfile.c (remove_symbol_file_command)
14333 (expand_symtabs_matching, map_symbol_filenames): Use
14334 all_objfiles.
14335 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14336 all_objfiles.
14337 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14338 * objc-lang.c (find_methods): Use all_objfiles.
14339 * objfiles.c (have_partial_symbols, have_full_symbols)
14340 (have_minimal_symbols, qsort_cmp)
14341 (default_iterate_over_objfiles_in_search_order): Use
14342 all_objfiles.
14343 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14344 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14345 (maintenance_check_psymtabs): Use all_objfiles.
14346 (ALL_PSYMTABS): Remove.
14347 * compile/compile-object-run.c (do_module_cleanup): Use
14348 all_objfiles.
14349 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14350 * cp-support.c (add_symbol_overload_list_qualified): Use
14351 all_objfiles.
14352 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14353 Use all_objfiles.
14354 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14355 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14356 all_objfiles.
14357 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14358 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14359 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14360 Uses all_objfiles.
14361 * solib.c (solib_read_symbols): Use all_objfiles
14362
99d89cde
TT
143632019-01-09 Tom Tromey <tom@tromey.com>
14364
14365 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14366 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14367 all_objfiles.
14368 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14369 * symmisc.c (print_symbol_bcache_statistics)
14370 (print_objfile_statistics, maintenance_print_objfiles)
14371 (maintenance_info_symtabs, maintenance_check_symtabs)
14372 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14373 all_objfiles.
14374 * source.c (forget_cached_source_info): Use all_objfiles.
14375 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14376 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14377 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14378 * objfiles.c (update_section_map): Use all_objfiles.
14379 (shared_objfile_contains_address_p): Likewise.
14380 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14381 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14382
21708325
TT
143832019-01-09 Tom Tromey <tom@tromey.com>
14384
14385 * common/next-iterator.h: New file.
14386 * objfiles.h (class all_objfiles): New.
14387 (struct objfile_iterator): New.
14388
669e09f6
PW
143892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14390
14391 * NEWS: Move the description of the changed "frame", "select-frame",
14392 and "info frame" commands to the Changed commands section.
14393
041be526
SM
143942019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14395
14396 * gdbtypes.c (check_stub_method_group): Remove handling of old
14397 mangling schemes.
14398 * linespec.c (find_methods): Likewise.
14399 * stabsread.c (read_member_functions): Likewise.
14400 * valops.c (search_struct_method): Likewise.
14401 (value_struct_elt_for_reference): Likewise.
14402 * NEWS: Mention this change.
14403
0e2a2133
AB
144042019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14405
14406 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14407 print_source_lines.
14408 * source.c (print_source_lines_base): Update line number check.
14409 (print_source_lines): New function.
14410 (source_lines_range::source_lines_range): New function.
14411 * source.h (class source_lines_range): New class.
14412 (print_source_lines): New declaration.
14413
1055a3b4
PW
144142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14415
14416 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14417
cfeadda5
TT
144182019-01-08 Tom Tromey <tom@tromey.com>
14419 Simon Marchi <simon.marchi@ericsson.com>
14420
14421 PR gdb/24060
14422 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14423 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14424 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14425 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14426 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14427 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14428
583068ca
AB
144292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14430
14431 * source.c (select_source_symtab): Move header comment to
14432 declaration in source.h.
14433 (forget_cached_source_info_for_objfile): Likewise.
14434 (forget_cached_source_info): Likewise.
14435 (identify_source_line): Likewise.
14436 * source.h (identify_source_line): Move declaration from symtab.h
14437 and add comment from source.c
14438 (print_source_lines): Likewise.
14439 (forget_cached_source_info_for_objfile): Likewise.
14440 (forget_cached_source_info): Likewise.
14441 (select_source_symtab): Likewise.
14442 (enum print_source_lines_flag): Move definition from symtab.h.
14443 * symtab.h (identify_source_line): Move declaration to source.h.
14444 (print_source_lines): Likewise.
14445 (forget_cached_source_info_for_objfile): Likewise.
14446 (forget_cached_source_info): Likewise.
14447 (select_source_symtab): Likewise.
14448 (enum print_source_lines_flag): Move definition to source.h.
14449 * tui/tui-hooks.c: Add 'source.h' include.
14450
ec98a4ad
AB
144512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14452
14453 * source.c (print_source_lines_base): Handle requests to print
14454 reverse line number sequences, and guard against empty lines
14455 string.
14456
62ea19c1
AB
144572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14458
14459 * source.c (print_source_lines_base): Fix skip of '\r' if next
14460 character is '\n'.
14461
9d30e1fd
TT
144622019-01-06 Tom Tromey <tom@tromey.com>
14463
14464 * c-exp.y (struct c_parse_state) <macro_original_text,
14465 expansion_obstack>: New member.
14466 (macro_original_text, expansion_obstack): Remove globals.
14467 (scan_macro_expansion, scanning_macro_expansion)
14468 (finished_macro_expansion): Update.
14469 (scan_macro_cleanup): Remove.
14470 (yylex, c_parse): Update.
14471
c65bac38
TT
144722019-01-06 Tom Tromey <tom@tromey.com>
14473
14474 * c-exp.y (struct c_parse_state) <strings>: New member.
14475 (operator_stoken): Update.
14476
02e12e38
TT
144772019-01-06 Tom Tromey <tom@tromey.com>
14478
14479 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14480 (union type_stack_elt) <typelist_val>: Now a pointer to
14481 std::vector.
14482 (type_stack_cleanup): Don't declare.
14483 (push_typelist): Update.
14484 * parse.c (pop_typelist): Return a std::vector.
14485 (push_typelist): Take a std::vector.
14486 (follow_types): Update. Do not free args.
14487 (type_stack_cleanup): Remove.
14488 * c-exp.y (struct c_parse_state): New.
14489 (cpstate): New global.
14490 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14491 (nonempty_typelist): Update.
14492 (func_mod): Create a new vector.
14493 (c_parse): Create a c_parse_state.
14494 (check_parameter_typelist): Do not delete params.
14495 (function_method): Update. Do not delete type_list.
14496
f097f5ad
TT
144972019-01-06 Tom Tromey <tom@tromey.com>
14498
14499 PR gdb/28155:
14500 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14501 check_typedef.
14502 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14503 (print_return_value): Likewise.
14504
d2adf9f1
TT
145052019-01-05 Tom Tromey <tom@tromey.com>
14506
14507 * contrib/cleanup_check.py: Remove.
14508 * contrib/gcc-with-excheck: Remove.
14509 * contrib/exsummary.py: Remove.
14510 * contrib/excheck.py: Remove.
14511
2eab46b1
JB
145122019-01-05 Joel Brobecker <brobecker@adacore.com>
14513
14514 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14515 NULL. Initialize tpprev to NULL instead of assigning it
14516 to NULL on the next statement.
14517 * windows-nat.c (windows_delete_thread): Remove check for
14518 main_thread_id before printing thread exit notifications.
14519 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14520 Remove thread ID check against main_thread_id.
14521 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14522 windows_delete_thread.
14523 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14524
48c5e7e2
TT
145252019-01-04 Tom Tromey <tom@tromey.com>
14526
14527 * compile/compile.c (_initialize_compile): Use upper case for
14528 metasyntactic variables.
14529 * symmisc.c (_initialize_symmisc): Use upper case for
14530 metasyntactic variables.
14531 * psymtab.c (_initialize_psymtab): Use upper case for
14532 metasyntactic variables.
14533 * demangle.c (demangle_command): Use upper case for metasyntactic
14534 variables.
14535 (_initialize_demangler): Likewise.
14536 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14537 variables.
14538
986041cd
TT
145392019-01-03 Tom Tromey <tom@tromey.com>
14540
14541 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14542
7c711119
TT
145432019-01-03 Tom Tromey <tom@tromey.com>
14544
14545 * python/py-symtab.c (salpy_str): Update.
14546 (struct salpy_sal_object) <symtab>: Now a PyObject.
14547 (salpy_dealloc): Update.
14548 (del_objfile_sal): Use gdbpy_ref.
14549
1b20edf0
TT
145502019-01-03 Tom Tromey <tom@tromey.com>
14551
14552 * python/py-type.c (convert_field): Use new_reference. Return
14553 gdbpy_ref.
14554 (make_fielditem): Return gdbpy_ref.
14555 (typy_fields): Update.
14556 (typy_getitem): Update.
14557 (field_name): Return gdbpy_ref. Use new_reference.
14558 (typy_iterator_iternext): Update.
14559
ea41325b
TT
145602019-01-03 Tom Tromey <tom@tromey.com>
14561
14562 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14563
2a3c71d6
TT
145642019-01-03 Tom Tromey <tom@tromey.com>
14565
14566 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14567 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14568 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14569 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14570 (pspy_set_type_printers): Likewise.
14571 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14572 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14573 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14574 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14575 (objfpy_set_type_printers): Likewise.
14576
5c329e6a
TT
145772019-01-03 Tom Tromey <tom@tromey.com>
14578
14579 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14580 (gdbpy_print_stack): Use gdbpy_err_fetch.
14581 * python/python-internal.h (class gdbpy_err_fetch): New class.
14582 (class gdbpy_enter) <m_error_type, m_error_value,
14583 m_error_traceback>: Remove.
14584 <m_error>: New member.
14585 (gdbpy_exception_to_string): Don't declare.
14586 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14587 * python/py-value.c (convert_value_from_python): Use
14588 gdbpy_err_fetch.
14589 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14590 gdbpy_exception_to_string.
14591 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14592 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14593 gdbpy_err_fetch.
14594
169bb27b
AB
145952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14596
14597 * linux-nat.c (delete_lwp_cleanup): Delete.
14598 (struct lwp_deleter): New struct.
14599 (lwp_info_up): New typedef.
14600 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14601 lwp_info_up.
14602
a07c8880
AB
146032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14604
14605 * linux-fork.c (class scoped_switch_fork_info): New class.
14606 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14607
26089c49
AB
146082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14609
14610 * valops.c (find_overload_match): Remove use of null_cleanup, and
14611 calls to do_cleanups.
14612
06d3e5b0
AB
146132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14614
14615 * compile/compile-cplus-types.c
14616 (compile_cplus_instance::decl_name): Handle changes to
14617 cp_func_name.
14618 * cp-support.c (cp_func_name): Update header comment, update
14619 return type.
14620 * cp-support.h (cp_func_name): Update return type in declaration.
14621 * valops.c (find_overload_match): Move temp_func local to top
14622 level of function and change its type. Use temp_func to hold and
14623 delete temporary string obtained from cp_func_name.
14624
66644cd3
AB
146252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14628 gdb::char_vector, remove cleanup, and update uses of `msg`.
14629
592d8c0a
JW
146302019-01-03 Jim Wilson <jimw@sifive.com>
14631
14632 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14633
c55d06ec
TT
146342019-01-02 Tom Tromey <tom@tromey.com>
14635
14636 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14637 (tdesc_parse_xml): Remove cleanups.
14638 * target-descriptions.h (make_cleanup_free_target_description):
14639 Don't declare.
14640 (target_desc_deleter): New struct.
14641 (target_desc_up): New typedef.
14642 * target-descriptions.c (target_desc_deleter::operator()): Rename
14643 from free_target_description.
14644 (make_cleanup_free_target_description): Remove.
14645
3a6ae42d
TT
146462019-01-02 Tom Tromey <tom@tromey.com>
14647
14648 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14649 constructor, destructor.
14650 (linespec_parser): Remove typedef.
14651 (~linespec_parser): Rename from linespec_parser_delete.
14652 (linespec_lex_to_end, linespec_complete_label)
14653 (linespec_complete): Update.
14654 (decode_line_full): Remove cleanups.
14655 (decode_line_1): Update.
14656
61fd3e73
TT
146572019-01-02 Tom Tromey <tom@tromey.com>
14658
14659 * python/python-internal.h (inferior_to_inferior_object): Change
14660 return type.
14661 * python/py-exitedevent.c (create_exited_event_object): Update.
14662 * python/py-inferior.c (inferior_to_inferior_object): Return
14663 gdbpy_ref.
14664 (python_new_inferior, python_inferior_deleted)
14665 (thread_to_thread_object, delete_thread_object)
14666 (build_inferior_list, gdbpy_selected_inferior): Update.
14667 * python/py-infthread.c (create_thread_object): Update. Also fail
14668 if inferior_to_inferior_object fails.
14669
d20172fc
SM
146702019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14671
14672 * inferior.h (class inferior) <displaced_step_state>: New field.
14673 * infrun.h (struct displaced_step_state): Move here from
14674 infrun.c. Initialize fields, add constructor.
14675 <inf>: Remove field.
14676 <reset>: New method.
14677 * infrun.c (struct displaced_step_inferior_state): Move to
14678 infrun.h.
14679 (displaced_step_inferior_states): Remove.
14680 (get_displaced_stepping_state): Adust.
14681 (displaced_step_in_progress_any_inferior): Adjust.
14682 (displaced_step_in_progress_thread): Adjust.
14683 (displaced_step_in_progress): Adjust.
14684 (add_displaced_stepping_state): Remove.
14685 (get_displaced_step_closure_by_addr): Adjust.
14686 (remove_displaced_stepping_state): Remove.
14687 (infrun_inferior_exit): Call displaced_step_state.reset.
14688 (use_displaced_stepping): Don't check for NULL.
14689 (displaced_step_prepare_throw): Call
14690 get_displaced_stepping_state.
14691 (displaced_step_fixup): Don't check for NULL.
14692 (prepare_for_detach): Don't check for NULL.
14693
e3319240
PW
146942019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14695
14696 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14697 in case of call that did not complete.
14698
5d36dfb9
AU
146992019-01-02 Andrey Utkin <autkin@undo.io>
14700
14701 * symfile.c (find_separate_debug_file): Fix search of debug files for
14702 remote debuggee.
14703
8833fbf0
TT
147042019-01-02 Tom Tromey <tom@tromey.com>
14705
14706 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14707 indentation.
14708 * python/py-frame.c (frapy_older): Remove cast.
14709 (frapy_newer): Likewise.
14710 * python/py-breakpoint.c (local_setattro): Remove cast.
14711 * python/py-arch.c (archpy_name): Remove local variable.
14712 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14713
4ada3dfd
JB
147142019-01-02 Joel Brobecker <brobecker@adacore.com>
14715
14716 * unittests/basic_string_view/element_access/char/empty.cc:
14717 Fix year range in copyright header.
14718
113b7b81
AB
147192019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14720
14721 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14722 Delete.
14723 <operator==>: Update with for removed field.
14724 <hash>: Likewise.
14725 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14726 <isa_features>: ...this.
14727 <abi_features>: New field.
14728 (riscv_isa_flen): Update comment.
14729 (riscv_abi_xlen): New declaration.
14730 (riscv_abi_flen): New declaration.
14731 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14732 isa_features.
14733 (riscv_abi_xlen): New function.
14734 (riscv_isa_flen): Update to get answer from isa_features.
14735 (riscv_abi_flen): New function.
14736 (riscv_has_fp_abi): Update to get answer from abi_features.
14737 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14738 xlen and flen.
14739 (riscv_call_info) <xlen, flen>: Update comment.
14740 (riscv_call_arg_struct): Remove invalid assertions
14741 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14742 is removed.
14743 (riscv_gdbarch_init): Gather isa features and abi features
14744 separately, ensure both match on the gdbarch when reusing an old
14745 gdbarch. Relax an error check to allow 32-bit abi float to run on
14746 a target with 64-bit float hardware.
14747
b18ca514
PW
147482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14749
14750 * source.c (search_command_helper): Stop reverse search
14751 when line 1 has been searched.
14752
ec70d8db
PW
147532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14754
14755 * record-full.c (record_full_base_target::close): Rewrite
14756 record_full_core_buf_list free logic.
14757
5b38f9c1
PW
147582019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14759
14760 * break-catch-syscall.c (print_one_catch_syscall): xfree
14761 the last text.
14762
66d91b39
JB
147632019-01-01 Joel Brobecker <brobecker@adacore.com>
14764
14765 * top.c (print_gdb_version): Update Copyright year in version
14766 message.
14767
42a4f53d
JB
147682019-01-01 Joel Brobecker <brobecker@adacore.com>
14769
14770 Update copyright year range in all GDB files.
14771
7e955d83 147722019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14773
5bbd631d 14774 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14775
5bbd631d 14776For older changes see ChangeLog-2018.
c906108c
SS
14777\f
14778Local Variables:
14779mode: change-log
14780left-margin: 8
14781fill-column: 74
14782version-control: never
57da7796 14783coding: utf-8
c906108c 14784End:
5bbd631d 14785
This page took 3.089225 seconds and 4 git commands to generate.