Regenerate gnulib files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e0eac551
TT
12019-11-06 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-interp.c: Don't include readline.h.
4 * tui/tui-hooks.c: Don't include readline.h.
5 * symmisc.c: Include tilde.h, not readline.h.
6 * symfile.c: Include tilde.h, not readline.h.
7 * source.c: Include tilde.h, not readline.h.
8 * solib.c: Include tilde.h, not readline.h.
9 * psymtab.c: Include tilde.h, not readline.h.
10 * exec.c: Include tilde.h, not readline.h.
11 * corelow.c: Include tilde.h, not readline.h.
12 * cli/cli-dump.c: Include tilde.h, not readline.h.
13 * cli/cli-cmds.c: Don't include readline.h.
14
825165c5
TT
152019-11-05 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
18 (tui_disassemble): Set addr_size.
19 (tui_disasm_window::set_contents): Use addr_size.
20
91ae903f
TT
212019-11-05 Tom Tromey <tom@tromey.com>
22
23 * rust-lang.c (rust_language_defn): Update.
24 * python/py-value.c (valpy_string): Call c_get_string.
25 * p-lang.c (pascal_language_defn): Update.
26 * opencl-lang.c (opencl_language_defn): Update.
27 * objc-lang.c (objc_language_defn): Update.
28 * m2-lang.c (m2_language_defn): Update.
29 * language.c (unknown_language_defn, auto_language_defn): Update.
30 (default_get_string): Remove.
31 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
32 * go-lang.c (go_language_defn): Update.
33 * f-lang.c (f_language_defn): Update.
34 * d-lang.c (d_language_defn): Update.
35 * c-lang.c (c_language_defn, cplus_language_defn)
36 (asm_language_defn, minimal_language_defn): Update.
37 * ada-lang.c (ada_language_defn): Update.
38 * language.h (struct language_defn) <la_get_string>: Remove.
39 (LA_GET_STRING): Remove.
40 (default_get_string): Don't declare.
41
1df2f9ef
TT
422019-11-05 Tom Tromey <tom@tromey.com>
43
44 * tui/tui-source.h (struct tui_source_window): Inline
45 constructor. Remove destructor.
46 <style_changed, m_observable>: Move to superclass.
47 * tui/tui-winsource.h (tui_copy_source_line): Declare.
48 (struct tui_source_window_base): Move private members to end.
49 <style_changed, m_observable>: Move from tui_source_window.
50 * tui/tui-winsource.c (tui_copy_source_line): Move from
51 tui-source.c. Rename from copy_source_line. Add special handling
52 for negative line number.
53 (tui_source_window_base::style_changed): Move from
54 tui_source_window.
55 (tui_source_window_base): Register observer.
56 (~tui_source_window_base): New.
57 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
58 rename.
59 (tui_source_window::set_contents): Use tui_copy_source_line.
60 (tui_source_window::tui_source_window): Move to tui-source.h.
61 (tui_source_window::~tui_source_window): Remove.
62 (tui_source_window::style_changed): Move to superclass.
63 * tui/tui-disasm.c (tui_disassemble): Create string file with
64 styling, when possible. Add "addr_size" parameter.
65 (tui_disasm_window::set_contents): Use tui_copy_source_line.
66 Don't compute maximum size.
67 (len_without_escapes): New function
68
5d051055
TT
692019-11-05 Tom Tromey <tom@tromey.com>
70
71 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
72 std::string.
73 * tui/tui-winsource.c (tui_show_source_line): Update.
74 * tui/tui-source.c (tui_source_window::set_contents): Update.
75 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
76
ade7beea
CB
772019-11-05 Christian Biesinger <cbiesinger@google.com>
78
79 * symtab.h (gdb_static_assert): Put && operator at the beginning
80 of the line instead of the end.
81
3573abe1
CB
822019-11-04 Christian Biesinger <cbiesinger@google.com>
83
84 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
85 and sizeof (symbol).
86 * symtab.h: Add a static_assert for sizeof (partial_symbol).
87
dae8b3eb
RO
882019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
89
90 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
91 * configure.host: Mark *-*-solaris2.10* obsolete.
92 * configure.tgt: Mark Solaris < 11 obsolete.
93 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
94 Update target triplet.
95
5df96a4e
TT
962019-11-01 Tom Tromey <tromey@adacore.com>
97
98 * utils.c (print_sys_errmsg): Simplify.
99
b7481649
TT
1002019-11-01 Tom Tromey <tromey@adacore.com>
101
102 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
103
e48f6033
CB
1042019-11-01 Christian Biesinger <cbiesinger@google.com>
105
106 * configure: Regenerate.
107 * configure.ac: Remove check for strerror_r.
108 * gdbsupport/common.m4: Check for strerror_r.
109
bd5766ec
LM
1102019-11-01 Luis Machado <luis.machado@linaro.org>
111
112 PR gdb/25124
113
114 * arm-tdep.c (arm_per_objfile): Rename to ...
115 (arm_per_bfd): ... this.
116 (arm_objfile_data_key): Rename to ...
117 (arm_bfd_data_key): ... this.
118 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
119 data.
120 (arm_record_special_symbol): Likewise.
121
e1709896
AB
1222019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
125 end.
126 * c-typeprint.c (c_print_typedef): Likewise.
127 * f-typeprint.c (f_print_typedef): Likewise.
128 * m2-typeprint.c (m2_print_typedef): Likewise.
129 * p-typeprint.c (pascal_print_typedef): Likewise.
130 * rust-lang.c (rust_print_typedef): Likewise.
131 * symtab.c (print_symbol_info): Print a newline after calling
132 typedef_print.
133
165f8965
AB
1342019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * symtab.c (info_module_cmdlist): New variable.
137 (info_module_command): New function.
138 (search_module_symbols): New function.
139 (info_module_subcommand): New function.
140 (struct info_modules_var_func_options): New struct.
141 (info_modules_var_func_options_defs): New variable.
142 (make_info_modules_var_func_options_def_group): New function.
143 (info_module_functions_command): New function.
144 (info_module_variables_command): New function.
145 (info_module_var_func_command_completer): New function.
146 (_initialize_symtab): Register new 'info module functions' and
147 'info module variables' commands.
148 * symtab.h (typedef symbol_search_in_module): New typedef.
149 (search_module_symbols): Declare new function.
150 * NEWS: Mention new commands.
151
59c35742
AB
1522019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
155 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
156 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
157 MODULES_DOMAIN.
158 (scan_partial_symbols): Only create partial module symbols for non
159 declarations.
160 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
161 and MODULES_DOMAIN.
162 * symtab.c (search_domain_name): Likewise.
163 (search_symbols): Likewise.
164 (print_symbol_info): Likewise.
165 (symtab_symbol_info): Likewise.
166 (info_modules_command): New function.
167 (_initialize_symtab): Register 'info modules' command.
168 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
169 * NEWS: Mention new 'info modules' command.
170
aed61d02
PW
1712019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
172
173 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
174 and $_gdb_maint_setting_str.
175
9ad9b77d
PW
1762019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
177
178 * cli/cli-cmds.c (setting_cmd, value_from_setting)
179 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
180 (str_value_from_setting, gdb_setting_str_internal_fn)
181 (gdb_maint_setting_str_internal_fn): New functions.
182 (_initialize_cli_cmds): Define the new convenience functions.
183 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
184 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
185
8d6efaa2
CB
1862019-10-31 Christian Biesinger <cbiesinger@google.com>
187
188 * agent.c (set_can_use_agent): When the setting is turned on,
189 look up agent symbols if we don't have them yet.
190 (agent_new_objfile): Don't look up agent symbols when the agent
191 setting is off.
192
33cb1647
CB
1932019-10-31 Christian Biesinger <cbiesinger@google.com>
194
195 * config.in: Regenerate.
196
b231e86a
CB
1972019-10-31 Christian Biesinger <cbiesinger@google.com>
198
199 * configure: Regenerate.
200 * configure.ac: Check for strerror_r.
201 * gdbsupport/common-utils.h (safe_strerror): Change return value
202 to const char * and document that this function is now threadsafe.
203 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
204 thread_local and call strerror_r, if available.
205 * utils.c (perror_string): Update.
206 (print_sys_errmsg): Update.
207
a2726d4f
LM
2082019-10-31 Luis Machado <luis.machado@linaro.org>
209
210 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
211 objfile_key.
212 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
213 objfile to fetch per-bfd data.
214 (arm_find_exidx_entry): Likewise.
215
75cafaa6
CB
2162019-10-31 Christian Biesinger <cbiesinger@google.com>
217
218 * gdbsupport/agent.c (debug_agent): Change type to bool.
219 (use_agent): Likewise.
220 (all_agent_symbols_look_up): Likewise.
221 (agent_loaded_p): Change return value to bool.
222 (agent_look_up_symbols): Update.
223 (agent_capability_check): Change return value to bool.
224 * gdbsupport/agent.h (agent_loaded_p): Likewise.
225 (debug_agent): Change type to bool.
226 (use_agent): Likewise.
227 (agent_capability_check): Change return value to bool.
228
808590ec
CB
2292019-10-30 Christian Biesinger <cbiesinger@google.com>
230
231 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
232 (build_minimal_symbol_hash_tables): Code to clear the table moved
233 to clear_minimal_symbol_hash_tables.
234 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
235 when needed.
236
f18ad8a1
SM
2372019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * infcmd.c: Remove includes.
240 * infrun.c: Remove includes.
241
de93309a
SM
2422019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
243
244 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
245 (grow_vect): Remove declaration.
246 (ada_type_of_array): Remove declaration.
247 (ada_update_initial_language): Remove declaration.
248 (ada_fold_name): Remove declaration.
249 (ada_fill_in_ada_prototype): Remove declaration.
250 (user_select_syms): Remove declaration.
251 (get_selections): Remove declaration.
252 (ada_tag_type): Remove declaration.
253 (ada_value_tag): Remove declaration.
254 (ada_is_others_clause): Remove declaration.
255 (ada_in_variant): Remove declaration.
256 (ada_value_struct_elt): Remove declaration.
257 (ada_attribute_name): Remove declaration.
258 (ada_system_address_type): Remove declaration.
259 * ada-lang.c (ada_watch_location_expression): Make static.
260 (GROW_VECT): Move here from ada-lang.h.
261 (grow_vect): Make static.
262 (ada_update_initial_language): Make static.
263 (ada_fold_name): Make static.
264 (ada_type_of_array): Make static.
265 (encoded_ordered_before): Move up.
266 (sort_choices): Move up.
267 (print_signatures): Move up.
268 (ada_print_symbol_signature): Move up.
269 (get_selections): Move up and make static.
270 (user_select_syms): Move up and make static.
271 (ada_value_struct_elt): Move up and make static.
272 (ada_tag_type): Make static.
273 (ada_value_tag): Make static.
274 (ada_is_others_clause): Make static.
275 (ada_in_variant): Make static.
276 (ada_attribute_name): Make static.
277
cdc46a9f
SM
2782019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * ada-lang.c: Remove includes.
281 * ada-typeprint.c: Remove includes.
282 * ada-valprint.c: Remove includes.
283
90421c56
SM
2842019-10-29 Simon Marchi <simon.marchi@efficios.com>
285
286 * addrmap.c: Add static assertions of type size, moved from
287 _initialize_addrmap.
288 (_initialize_addrmap): Remove.
289
31edb802
CB
2902019-10-29 Christian Biesinger <cbiesinger@google.com>
291
292 * coffread.c (record_minimal_symbol): Update.
293 (process_coff_symbol): Update.
294 * dbxread.c (read_dbx_symtab): Update.
295 * dwarf2read.c (add_partial_symbol): Update.
296 (fixup_go_packaging): Update.
297 (load_partial_dies): Update.
298 (new_symbol): Update.
299 * elfread.c (record_minimal_symbol): Change signature to use
300 gdb::string_view instead of name+len.
301 (elf_symtab_read): Update.
302 (elf_rel_plt_read): Update.
303 * mdebugread.c (parse_partial_symbols): Update.
304 (handle_psymbol_enumerators): Update.
305 (new_symbol): Update.
306 * minsyms.c (minimal_symbol_reader::record_full): Change signature
307 to use gdb::string_view instead of name+len.
308 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
309 * psympriv.h (add_psymbol_to_list): Likewise.
310 * psymtab.c (add_psymbol_to_bcache): Likewise.
311 (add_psymbol_to_list): Likewise.
312 * stabsread.c (define_symbol): Update.
313 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
314 * symtab.h (SYMBOL_SET_NAMES): Likewise.
315 (symbol_set_names): Likewise.
316 * xcoffread.c (scan_xcoff_symtab): Update.
317
0c921b21
CB
3182019-10-29 Christian Biesinger <cbiesinger@google.com>
319
320 * symtab.h (symbol_set_names): Document that copy_name must be
321 set to true for non-nullterminated strings.
322 * symtab.c (symbol_set_names): Only make a nullterminated copy of
323 linkage_name if the entry was not found and we need to demangle.
324
35e65c49
CB
3252019-10-29 Christian Biesinger <cbiesinger@google.com>
326
327 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
328 * dwarf2-frame.c (bsearch_fde_cmp): Update.
329 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
330 * gdbsupport/gdb_binary_search.h: New file.
331
ed2a2229
CB
3322019-10-29 Christian Biesinger <cbiesinger@google.com>
333
334 * NEWS: Mention new --with-system-gdbinit-dir option.
335 * config.in: Regenerate.
336 * configure: Regenerate.
337 * configure.ac: Add new option --with-system-gdbinit-dir.
338 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
339 for a ".gdb" suffix.
340 * main.c (get_init_files): Change system_gdbinit argument to
341 a vector and return the files in SYSTEM_GDBINIT_DIR in
342 addition to SYSTEM_GDBINIT.
343 (captured_main_1): Update.
344 (print_gdb_help): Update.
345 * top.c (print_gdb_configuration): Also print the value of
346 SYSTEM_GDBINIT_DIR.
347
87f34879
CB
3482019-10-28 Christian Biesinger <cbiesinger@google.com>
349
350 * gdbsupport/common-utils.h (startswith): Add an overloaded version
351 that takes gdb::string_view arguments.
352
30baf67b
TV
3532019-10-26 Tom de Vries <tdevries@suse.de>
354
355 * aarch64-linux-tdep.c: Fix typos in comments.
356 * aarch64-tdep.c: Same.
357 * ada-lang.c: Same.
358 * amd64-nat.c: Same.
359 * arc-tdep.c: Same.
360 * arch/aarch64-insn.c: Same.
361 * block.c: Same.
362 * breakpoint.h: Same.
363 * btrace.h: Same.
364 * c-varobj.c: Same.
365 * cli/cli-decode.c: Same.
366 * cli/cli-script.c: Same.
367 * cli/cli-utils.h: Same.
368 * coff-pe-read.c: Same.
369 * coffread.c: Same.
370 * compile/compile-cplus-symbols.c: Same.
371 * compile/compile-object-run.c: Same.
372 * completer.c: Same.
373 * corelow.c: Same.
374 * cp-support.c: Same.
375 * demangle.c: Same.
376 * dwarf-index-write.c: Same.
377 * dwarf2-frame.c: Same.
378 * dwarf2-frame.h: Same.
379 * eval.c: Same.
380 * frame-base.h: Same.
381 * frame.h: Same.
382 * gdbcmd.h: Same.
383 * gdbtypes.h: Same.
384 * gnu-nat.c: Same.
385 * guile/scm-objfile.c: Same.
386 * i386-tdep.c: Same.
387 * i386-tdep.h: Same.
388 * infcall.c: Same.
389 * infcall.h: Same.
390 * linux-nat.c: Same.
391 * m68k-tdep.c: Same.
392 * macroexp.c: Same.
393 * memattr.c: Same.
394 * mi/mi-cmd-disas.c: Same.
395 * mi/mi-getopt.h: Same.
396 * mi/mi-main.c: Same.
397 * minsyms.c: Same.
398 * nat/aarch64-sve-linux-sigcontext.h: Same.
399 * objfiles.h: Same.
400 * ppc-linux-nat.c: Same.
401 * ppc-linux-tdep.c: Same.
402 * ppc-tdep.h: Same.
403 * progspace.h: Same.
404 * prologue-value.h: Same.
405 * python/py-evtregistry.c: Same.
406 * python/py-instruction.h: Same.
407 * record-btrace.c: Same.
408 * record-full.c: Same.
409 * remote.c: Same.
410 * rs6000-tdep.c: Same.
411 * ser-tcp.c: Same.
412 * sol-thread.c: Same.
413 * sparc-sol2-tdep.c: Same.
414 * sparc64-tdep.c: Same.
415 * stabsread.c: Same.
416 * symfile.c: Same.
417 * symtab.h: Same.
418 * target.c: Same.
419 * tracepoint.c: Same.
420 * tui/tui-data.h: Same.
421 * tui/tui-io.c: Same.
422 * tui/tui-win.c: Same.
423 * tui/tui.c: Same.
424 * unittests/rsp-low-selftests.c: Same.
425 * user-regs.h: Same.
426 * utils.c: Same.
427 * utils.h: Same.
428 * valarith.c: Same.
429 * valops.c: Same.
430 * valprint.c: Same.
431 * valprint.h: Same.
432 * value.c: Same.
433 * value.h: Same.
434 * varobj.c: Same.
435 * x86-nat.h: Same.
436 * xtensa-tdep.c: Same.
437
1834d45f
AT
4382019-10-25 Ali Tamur <tamur@google.com>
439
440 * charset.c (find_charset_names): Reflect API change.
441
5396ae17
CB
4422019-10-25 Christian Biesinger <cbiesinger@google.com>
443
444 * symtab.c (struct demangled_name_entry): Change demangled name
445 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
446 part of the struct anymore.
447 (symbol_set_names): No longer obstack allocate + copy the demangled
448 name, just store the allocated name from bfd.
449
93878f47
TT
4502019-10-25 Tom Tromey <tromey@adacore.com>
451
452 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
453 (bsearch_cie_cmp, add_cie): Remove.
454 (find_cie): Reimplement.
455 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
456 (dwarf2_build_frame_info): Update.
457
7b71fc97
L
4582019-10-24 H.J. Lu <hongjiu.lu@intel.com>
459
460 PR gdb/25126
461 * symfile.c (reread_symbols): Call forget_cached_source_info to
462 clear the stale source cache.
463
cbb5a2ea
CB
4642019-10-24 Christian Biesinger <cbiesinger@google.com>
465
466 * configure: Regenerate.
467 * configure.ac: Remove code that sets python_has_threads.
468
71737c43
CB
4692019-10-24 Christian Biesinger <cbiesinger@google.com>
470
471 * config.in: Regenerate.
472 * configure: Regenerate.
473 * configure.ac: Remove the code that uses sed to get the python
474 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
475
33d569b7
AB
4762019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * python/py-progspace.c (pspy_block_for_pc): Return None for all
479 error paths.
480
f16f7b7c
TT
4812019-10-23 Tom Tromey <tom@tromey.com>
482
483 * arc-tdep.c: Remove ".." from include.
484 * frv-tdep.c: Remove ".." from include.
485 * lm32-tdep.c: Remove ".." from include.
486 * microblaze-tdep.c: Remove ".." from include.
487 * or1k-tdep.h: Remove ".." from include.
488 * s12z-tdep.c: Remove ".." from include.
489 * Makefile.in (OPCODES_CFLAGS): Add comment.
490 (TOP_CFLAGS): New variable.
491 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
492
6999161a
TT
4932019-10-23 Tom Tromey <tom@tromey.com>
494
495 * Makefile.in (READLINE_DIR): Update.
496
12e7c35e
TBA
4972019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 * infcall.c (call_function_by_hand_dummy): Fix the function
500 comment. And extract out a code section into...
501 (reserve_stack_space): ...this new function.
502
37055cad
TBA
5032019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 * infcall.c (value_arg_coerce): Remove an unused parameter.
506 (call_function_by_hand_dummy): Update the call to
507 'value_arg_coerce'.
508
39bcc47c
TBA
5092019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
510
511 * infcall.c (call_function_by_hand_dummy): Refactor.
512
bd888c0f
TBA
5132019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
516
c12d372d
TT
5172019-10-23 Tom Tromey <tom@tromey.com>
518
519 * configure: Rebuild.
520 * configure.ac: Don't check for sigprocmask.
521 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
522
4d0b984b
TT
5232019-10-23 Tom Tromey <tom@tromey.com>
524
525 * configure: Rebuild.
526 * acinclude.m4: Use m4_include, not sinclude.
527
7e785608
TV
5282019-10-23 Tom de Vries <tdevries@suse.de>
529
530 PR breakpoints/24687
531 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
532
403772ef
CB
5332019-10-22 Christian Biesinger <cbiesinger@google.com>
534
535 * symtab.c (struct demangled_name_entry) <language>: Change from
536 bitfield to regular variable.
537
3a494279
CB
5382019-10-22 Christian Biesinger <cbiesinger@google.com>
539
540 * symtab.c (struct demangled_name_entry): Add a constructor.
541 (free_demangled_name_entry): New function to call the destructor
542 for demangled_name_entry.
543 (create_demangled_names_hash): Pass free_demangled_name_entry to
544 htab_create_alloc.
545 (symbol_set_names): Call placement new for demangled_name_entry.
546 * utils.c: No longer include xxhash.h here, now that fast_hash
547 is inlined in the header.
548 * utils.h: Instead, include it here.
549
ccb1ba62
CB
5502019-10-22 Christian Biesinger <cbiesinger@google.com>
551
552 * Makefile.in: Link with libxxhash.
553 * config.in: Regenerate.
554 * configure: Regenerate.
555 * configure.ac: Search for libxxhash.
556 * utils.c (fast_hash): Use xxhash if present.
557
1a6ff1a9
CB
5582019-10-22 Christian Biesinger <cbiesinger@google.com>
559
560 * utils.h (fast_hash): New function.
561 * symtab.c (hash_demangled_name_entry): Call new function
562 fast_hash.
563
7bb43059
CB
5642019-10-22 Christian Biesinger <cbiesinger@google.com>
565
566 * symtab.c (struct demangled_name_entry): Change type of mangled
567 to gdb::string_view. Also adds a constructor that takes the
568 mangled name.
569 (hash_demangled_name_entry): Update.
570 (eq_demangled_name_entry): Update.
571 (free_demangled_name_entry): New function to call the destructor
572 now that this is not a POD anymore.
573 (create_demangled_names_hash): Pass free_demangled_name_entry to
574 htab_create_alloc.
575 (symbol_set_names): Update.
576
7ba99d21
AT
5772019-10-21 Ali Tamur <tamu@google.com>
578
579 * dwarf2read.c (dir_index): Change type.
580 (file_name_index): Likewise.
581 (line_header::include_dir_at): Change comment and implementation on
582 whether it is DWARF 5.
583 (line_header::is_valid_file_index): New function.
584 (line_header::file_name_at): Change comment and implementation on
585 whether it is DWARF 5.
586 (line_header::file_names): Change to private field renamed as
587 m_file_names and introduce a new accessor method.
588 (line_header::file_names_size): New method.
589 (line_header::include_dirs): Change to private field and rename as
590 m_include_dirs.
591 (dw2_get_file_names_reader): Define local var at a smaller scope and
592 reflect API change.
593 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
594 (process_structure_scope): Likewise.
595 (line_header::add_include_dir): Change message and reflect renaming.
596 (line_header::add_file_name): Likewise.
597 (read_formatted_entries): Handle DW_FORM_data16.
598 (dwarf_decode_line_header): Fix line header length calculation.
599 (psymtab_include_file_name): Change comment and API.
600 (lnp_state_machine::m_file): Update comment and reflect type change.
601 (lnp_state_machine::record_line): Reflect type change.
602 (dwarf_decode_lines): Reflect API change.
603 (file_file_name): Likewise.
604 (file_full_name): Likewise.
605
45f47c3a
AB
6062019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
609
e5f3c0e3
TT
6102019-10-21 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
613
a0a461e5
TT
6142019-10-21 Tom Tromey <tom@tromey.com>
615
616 * configure.ac (nm.h): Conditionally create nm.h link. Subst
617 NM_H. Use AC_CONFIG_LINKS.
618 * configure: Rebuild.
619 * Makefile.in (NM_H): New variable.
620 (generated_files): Add NM_H. Remove gcore.
621 (nm.h, stamp-nmh): New targets.
622
54d83b8d
TT
6232019-10-20 Tom Tromey <tom@tromey.com>
624
625 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
626 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
627 obsolete comment.
628 (put_objfile_before): Now static.
629
23771117
SM
6302019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * gdbsupport/common-utils.h (startswith): Change return type to
633 bool.
634
39ef2f62
CB
6352019-10-19 Christian Biesinger <cbiesinger@google.com>
636
637 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
638 * breakpoint.c (bp_locations_compare): Rename to...
639 (bp_location_is_less_than): ...this, and change to std::sort semantics.
640 (update_global_location_list): Use std::sort instead of qsort.
641 * buildsym.c (compare_line_numbers): Rename to...
642 (lte_is_less_than): ...this, and change to std::sort semantics.
643 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
644 instead of qsort.
645 * disasm.c (compare_lines): Rename to...
646 (line_is_less_than): ...this, and change to std::sort semantics.
647 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
648 of qsort.
649 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
650 (fde_is_less_than): ...this, and change to std::sort semantics.
651 (dwarf2_build_frame_info): Call std::sort instead of qsort.
652 * mdebugread.c (compare_blocks):
653 (block_is_less_than): ...this, and change to std::sort semantics.
654 (sort_blocks): Call std::sort instead of qsort.
655 * objfiles.c (qsort_cmp): Rename to...
656 (sort_cmp): ...this, and change to std::sort semantics.
657 (update_section_map): Call std::sort instead of qsort.
658 * remote.c (compare_pnums): Remove.
659 (map_regcache_remote_table): Call std::sort instead of qsort.
660 * utils.c (compare_positive_ints): Remove.
661 * utils.h (compare_positive_ints): Remove.
662 * xcoffread.c (compare_lte): Remove.
663 (arrange_linetable): Call std::sort instead of qsort.
664
f71433ee
SDJ
6652019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
666
667 * symfile.c (init_entry_point_info): Fix typo.
668 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
669
85102364
TV
6702019-10-18 Tom de Vries <tdevries@suse.de>
671
672 * aarch64-tdep.c: Fix typos in comments.
673 * ada-lang.c: Same.
674 * ada-tasks.c: Same.
675 * alpha-tdep.c: Same.
676 * alpha-tdep.h: Same.
677 * amd64-nat.c: Same.
678 * amd64-windows-tdep.c: Same.
679 * arc-tdep.c: Same.
680 * arc-tdep.h: Same.
681 * arch-utils.c: Same.
682 * arm-nbsd-tdep.c: Same.
683 * arm-tdep.c: Same.
684 * ax-gdb.c: Same.
685 * blockframe.c: Same.
686 * btrace.c: Same.
687 * c-varobj.c: Same.
688 * coff-pe-read.c: Same.
689 * coffread.c: Same.
690 * cris-tdep.c: Same.
691 * darwin-nat.c: Same.
692 * dbxread.c: Same.
693 * dcache.c: Same.
694 * disasm.c: Same.
695 * dtrace-probe.c: Same.
696 * dwarf-index-write.c: Same.
697 * dwarf2-frame-tailcall.c: Same.
698 * dwarf2-frame.c: Same.
699 * dwarf2read.c: Same.
700 * eval.c: Same.
701 * exceptions.c: Same.
702 * fbsd-tdep.c: Same.
703 * findvar.c: Same.
704 * frame.c: Same.
705 * frv-tdep.c: Same.
706 * gnu-v3-abi.c: Same.
707 * go32-nat.c: Same.
708 * h8300-tdep.c: Same.
709 * hppa-tdep.c: Same.
710 * i386-linux-tdep.c: Same.
711 * i386-tdep.c: Same.
712 * ia64-libunwind-tdep.c: Same.
713 * ia64-tdep.c: Same.
714 * infcmd.c: Same.
715 * infrun.c: Same.
716 * linespec.c: Same.
717 * linux-nat.c: Same.
718 * linux-thread-db.c: Same.
719 * machoread.c: Same.
720 * mdebugread.c: Same.
721 * mep-tdep.c: Same.
722 * mn10300-tdep.c: Same.
723 * namespace.c: Same.
724 * objfiles.c: Same.
725 * opencl-lang.c: Same.
726 * or1k-tdep.c: Same.
727 * osabi.c: Same.
728 * ppc-linux-nat.c: Same.
729 * ppc-linux-tdep.c: Same.
730 * ppc-sysv-tdep.c: Same.
731 * printcmd.c: Same.
732 * procfs.c: Same.
733 * record-btrace.c: Same.
734 * record-full.c: Same.
735 * remote-fileio.c: Same.
736 * remote.c: Same.
737 * rs6000-tdep.c: Same.
738 * s12z-tdep.c: Same.
739 * score-tdep.c: Same.
740 * ser-base.c: Same.
741 * ser-go32.c: Same.
742 * skip.c: Same.
743 * sol-thread.c: Same.
744 * solib-svr4.c: Same.
745 * solib.c: Same.
746 * source.c: Same.
747 * sparc-nat.c: Same.
748 * sparc-sol2-tdep.c: Same.
749 * sparc-tdep.c: Same.
750 * sparc64-tdep.c: Same.
751 * stabsread.c: Same.
752 * stack.c: Same.
753 * symfile.c: Same.
754 * symtab.c: Same.
755 * target-descriptions.c: Same.
756 * target-float.c: Same.
757 * thread.c: Same.
758 * utils.c: Same.
759 * valops.c: Same.
760 * valprint.c: Same.
761 * value.c: Same.
762 * varobj.c: Same.
763 * windows-nat.c: Same.
764 * xcoffread.c: Same.
765 * xstormy16-tdep.c: Same.
766 * xtensa-tdep.c: Same.
767
c5adaa19
TT
7682019-10-17 Tom Tromey <tromey@adacore.com>
769
770 * configure: Rebuild.
771 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
772 in AC_CONFIG_FILES invocation.
773 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
774 new-style config.status invocation.
775
405feb71
TV
7762019-10-17 Tom de Vries <tdevries@suse.de>
777
778 * arm-nbsd-nat.c: Fix typos in comments.
779 * arm-tdep.c: Same.
780 * darwin-nat-info.c: Same.
781 * dwarf2read.c: Same.
782 * elfread.c: Same.
783 * event-top.c: Same.
784 * findvar.c: Same.
785 * gdbtypes.c: Same.
786 * hppa-tdep.c: Same.
787 * i386-tdep.c: Same.
788 * jit.c: Same.
789 * main.c: Same.
790 * mdebugread.c: Same.
791 * moxie-tdep.c: Same.
792 * nto-procfs.c: Same.
793 * osabi.c: Same.
794 * ppc-linux-tdep.c: Same.
795 * remote.c: Same.
796 * riscv-tdep.c: Same.
797 * s390-tdep.c: Same.
798 * sh-tdep.c: Same.
799 * sparc-linux-tdep.c: Same.
800 * sparc-nat.c: Same.
801 * stack.c: Same.
802 * target-descriptions.c: Same.
803 * top.c: Same.
804 * varobj.c: Same.
805
befcd486
TT
8062019-10-16 Tom Tromey <tom@tromey.com>
807
808 * objfiles.h (struct objfile) <original_name>: Now const.
809
17bfe554
CB
8102019-10-16 Christian Biesinger <cbiesinger@google.com>
811
812 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
813 pass on to sigsetjmp's second argument.
814 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
815
950b7495
KS
8162019-10-16 Keith Seitz <keiths@redhat.com>
817
818 PR gdb/23567
819 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
820 sections whose size is greater than the file size.
821
ff371ec9
JW
8222019-10-16 Jim Wilson <jimw@sifive.com>
823
824 * riscv-tdep.c (riscv_gcc_target_options): New.
825 (riscv_gnu_triplet_regexp): New.
826 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
827 set_gdbarch_gnu_triplet_regexp.
828
fec4e896
CB
8292019-10-16 Christian Biesinger <cbiesinger@google.com>
830
831 * Makefile.in: Add xml-builtin.h.
832 * features/feature_to_c.sh: Add an include for xml-builtin.h
833 to ensure that the compiler checks that the types match.
834 * xml-builtin.h: New file.
835 * xml-support.c (fetch_xml_builtin): Add missing const.
836 * xml-support.h: Remove declaration of xml_builtins.
837
d10eccaa
TV
8382019-10-16 Tom de Vries <tdevries@suse.de>
839
840 PR tdep/25096
841 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
842 (amd64_classify_aggregate): ... here.
843 (amd64_classify_aggregate_field): Handled fiels of nested structs
844 recursively.
845
745ff14e
TV
8462019-10-16 Tom de Vries <tdevries@suse.de>
847
848 PR tdep/24104
849 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
850 that handles 'theclass'.
851
791b7405
AB
8522019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * linespec.c (decode_digits_ordinary): Update comment.
855 * make-target-delegates: No longer need to handle VEC case.
856 * memrange.c (normalize_mem_ranges): Update comment.
857 * namespace.c (add_using_directive): Update comment.
858 * objc-lang.c (uniquify_strings): Update comment.
859 * ppc-linux-nat.c (struct thread_points): Update comment.
860 * probe.h (find_probes_in_objfile): Update comment.
861 * target.h (enum flash_preserve_mode): Update comment.
862 * varobj.c (varobj_restrict_range): Update comment.
863 * varobj.h (varobj_list_children): Update comment.
864
0dc32745
AB
8652019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * Makefile.in: Remove references to vec.h and vec.c.
868 * aarch64-tdep.c: No longer include vec.h.
869 * ada-lang.c: Likewise.
870 * ada-lang.h: Likewise.
871 * arm-tdep.c: Likewise.
872 * ax.h: Likewise.
873 * breakpoint.h: Likewise.
874 * charset.c: Likewise.
875 * cp-support.h: Likewise.
876 * dtrace-probe.c: Likewise.
877 * dwarf2read.c: Likewise.
878 * extension.h: Likewise.
879 * gdb_bfd.c: Likewise.
880 * gdbsupport/gdb_vecs.h: Likewise.
881 * gdbsupport/vec.c: Remove.
882 * gdbsupport/vec.h: Remove.
883 * gdbthread.h: Likewise.
884 * guile/scm-type.c: Likewise.
885 * inline-frame.c: Likewise.
886 * machoread.c: Likewise.
887 * memattr.c: Likewise.
888 * memrange.h: Likewise.
889 * namespace.h: Likewise.
890 * nat/linux-btrace.h: Likewise.
891 * osdata.c: Likewise.
892 * parser-defs.h: Likewise.
893 * progspace.h: Likewise.
894 * python/py-type.c: Likewise.
895 * record-btrace.c: Likewise.
896 * rust-exp.y: Likewise.
897 * solib-target.c: Likewise.
898 * stap-probe.c: Likewise.
899 * target-descriptions.c: Likewise.
900 * target-memory.c: Likewise.
901 * target.h: Likewise.
902 * varobj.c: Likewise.
903 * varobj.h: Likewise.
904 * xml-support.h: Likewise.
905
ae640021
AB
9062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
909 Update for new std::vector based implementation.
910 (process_psymtab_comp_unit_reader): Likewise.
911 (scan_partial_symbols): Likewise.
912 (recursively_compute_inclusions): Likewise.
913 (compute_compunit_symtab_includes): Likewise.
914 (process_imported_unit_die): Likewise.
915 (queue_and_load_dwo_tu): Likewise.
916 (follow_die_sig_1): Likewise.
917 * gdb/dwarf2read.h: Remove DEF_VEC_P.
918 (typedef dwarf2_per_cu_ptr): Remove.
919 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
920 function.
921 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
922 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
923 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
924 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
925 std::vector.
926
55dfc88f
TT
9272019-10-15 Tom Tromey <tromey@adacore.com>
928
929 * windows-nat.c (windows_nat_target::resume): Use %x when logging
930 TID.
931
96b49c5e
TT
9322019-10-15 Tom Tromey <tromey@adacore.com>
933
934 * windows-nat.c (windows_nat_target::fetch_registers)
935 (windows_nat_target::store_registers): Rename "pid" to "tid".
936
953cff56
TT
9372019-10-15 Tom Tromey <tromey@adacore.com>
938
939 * gdbarch.h, gdbarch.c: Rebuild.
940 * gdbarch.sh (gcc_target_options): Change return type to
941 std::string.
942 * compile/compile.c (get_args): Update.
943 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
944 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
945 std::string.
946 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
947 std::string.
948 * arch-utils.c (default_gcc_target_options): Return std::string.
949 * arch-utils.h (default_gcc_target_options): Return std::string.
950 * s390-tdep.c (s390_gcc_target_options): Return std::string.
951
81e6b8eb
CB
9522019-10-15 Christian Biesinger <cbiesinger@google.com>
953
954 * breakpoint.c (breakpoint_chain): Make static.
955 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
956 of accessing breakpoint_chain.
957
95da600f
CB
9582019-10-15 Christian Biesinger <cbiesinger@google.com>
959
960 * breakpoint.c (iterate_over_breakpoints): Change function pointer
961 to a gdb::function_view and return value to bool.
962 * breakpoint.h (iterate_over_breakpoints): Likewise.
963 * dummy-frame.c (pop_dummy_frame_bpt): Update.
964 (pop_dummy_frame): Update.
965 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
966 (gdbscm_breakpoints): Update.
967 * python/py-breakpoint.c (build_bp_list): Update.
968 (gdbpy_breakpoints): Update.
969 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
970 Update.
971 (bpfinishpy_handle_stop): Update.
972 (bpfinishpy_handle_exit): Update.
973 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
974 (svr4_update_solib_event_breakpoints): Update.
975
ba18312d
AA
9762019-10-15 Andreas Arnez <arnez@linux.ibm.com>
977
978 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
979 when unwrapping single-field structs.
980
6acc1a0b
SM
9812019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * dwarf2read.c: Remove includes.
984
284782de
SM
9852019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * ui-out.c (ui_out::call_do_message): Silence
988 -Wformat-nonliteral warning.
989
073bbbb0
SM
9902019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * breakpoint.c: Remove some includes: continuations.h, skip.h,
993 mi/mi-main.h, readline/readline.h, readline/history.h. Add
994 include: readline/tilde.h.
995
7b9a15e1
CB
9962019-10-12 Christian Biesinger <cbiesinger@google.com>
997
998 * remote.c (remote_target::get_trace_status): Remove declaration of
999 trace_regblock_size.
1000
cc8dee1f
CB
10012019-10-12 Christian Biesinger <cbiesinger@google.com>
1002
1003 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1004 (show_user): Remove declaration of cmdlist.
1005 * cli/cli-cmds.h (max_user_call_depth): Declare.
1006 * cli/cli-script.c (execute_user_command): Remove declaration
1007 of max_user_call_depth.
1008
a83d4ef6
JW
10092019-10-11 Jim Wilson <jimw@sifive.com>
1010
5f93c5a6
JW
1011 * gdbsupport/print-utils.h (pulongest): Fix comment.
1012 (plongest): Likewise.
1013 (phex): Add missing comment, mention leading zeros.
1014 (phex_nz): Add mention of no leading zeros to comment.
1015
a83d4ef6
JW
1016 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1017 plongest instead of unsigned long long cast.
1018
26344e0c
CB
10192019-10-10 Christian Biesinger <cbiesinger@google.com>
1020
1021 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1022 for external_editor_command and gdbtk_test.
1023
c2c440a9
CB
10242019-10-10 Christian Biesinger <cbiesinger@google.com>
1025
1026 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1027 * varobj.c (varobjdebug): Move comment to...
1028 * varobj.h (varobjdebug): ...here, and declare.
1029
a31bff9d
TT
10302019-10-09 Tom Tromey <tom@tromey.com>
1031
1032 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1033 erase_data_content.
1034
7523da63
TT
10352019-10-09 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1038 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1039 * tui/tui-command.c (tui_cmd_window::resize)
1040 (tui_refresh_cmd_win): Update.
1041 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1042 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1043 * tui/tui-data.c (~tui_gen_win_info): Remove.
1044 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1045 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1046 (tui_redisplay_readline, tui_mld_flush)
1047 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1048 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1049 (tui_data_window::erase_data_content)
1050 (tui_data_item_window::rerender)
1051 (tui_data_item_window::refresh_window): Update.
1052 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1053 (box_win, tui_gen_win_info::make_window)
1054 (tui_gen_win_info::make_visible): Update.
1055 (tui_delete_win): Remove.
1056 * tui/tui-winsource.c
1057 (tui_source_window_base::do_erase_source_content): Update.
1058 (tui_show_source_line, tui_source_window_base::update_tab_width)
1059 (tui_source_window_base::update_exec_info): Update.
1060 * tui/tui-data.h (struct curses_deleter): New.
1061 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1062 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1063
a7798e7f
TT
10642019-10-09 Tom Tromey <tom@tromey.com>
1065
1066 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1067
5c45899e
TT
10682019-10-09 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1071 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1072
6d7fd9aa
TT
10732019-10-09 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1076 window height directly.
1077 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1078 declare.
1079 * tui/tui-layout.c (tui_default_win_height): Remove.
1080 (tui_default_win_viewport_height): Remove.
1081
d2dd1084
TT
10822019-10-09 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui.h: Remove comments.
1085
cff32449
TV
10862019-10-09 Tom de Vries <tdevries@suse.de>
1087
1088 * python/lib/gdb/printer/bound_registers.py: Use
1089 '^builtin_type_bound128' as regexp argument for
1090 add_builtin_pretty_printer.
1091
6a25e8a2
CB
10922019-10-09 Christian Biesinger <cbiesinger@google.com>
1093
1094 * guile/guile.c (guile_extension_script_ops): Remove forward
1095 declaration and mark as static.
1096 (guile_script_ops): Likewise.
1097 (extension_language_guile): Move further down in the file so
1098 it can reference the definitions for guile_{extension_,}script_ops.
1099
6d9d6da4
AA
11002019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1101
1102 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1103 except SORTL, DFLTCC, and KDSA.
1104
3abea05d
TT
11052019-10-08 Tom Tromey <tromey@adacore.com>
1106
1107 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1108 (struct safe_symbol_file_add_args): Remove.
1109
dde996e2
TT
11102019-10-08 Tom Tromey <tromey@adacore.com>
1111
1112 * windows-nat.c: Don't include buildsym-legacy.h.
1113
cd6fdaa1
TT
11142019-10-08 Tom Tromey <tromey@adacore.com>
1115
1116 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1117
79bb1944
CB
11182019-10-08 Christian Biesinger <cbiesinger@google.com>
1119
1120 * gdbtypes.c (overload_debug): Move comment to header.
1121 * gdbtypes.h (overload_debug): Declare.
1122 * valops.c: Remove declaration of overload_debug, instead
1123 include gdbtypes.h.
1124
34916edc
CB
11252019-10-08 Christian Biesinger <cbiesinger@google.com>
1126
1127 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1128 through _().
1129 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1130 move comment...
1131 * language.h (lang_frame_mismatch_warn): ... here. Also add
1132 declaration.
1133 * top.c (lang_frame_mismatch_warn): Remove declaration.
1134 (check_frame_language_change): Pass lang_frame_mismatch_warn
1135 through _().
1136
bad5c026
CB
11372019-10-07 Christian Biesinger <cbiesinger@google.com>
1138
1139 * c-lang.h (vtbl_ptr_name): Declare.
1140 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1141 it from the header.
1142 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1143
51f1fdc3
CB
11442019-10-07 Christian Biesinger <cbiesinger@google.com>
1145
1146 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1147 gdb_static_assert.
1148
30d1f018
WP
11492019-10-07 Weimin Pan <weimin.pan@oracle.com>
1150
606813d5
WP
1151 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1152 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1153 * ctfread.c: New file.
1154 * ctfread.h: New file.
1155 * elfread.c: Include ctfread.h.
1156 (struct elfinfo text_p): New member ctfsect.
1157 (elf_locate_sections): Mark CTF section.
1158 (elf_symfile_read): Call elfctf_build_psymtabs.
1159 * Makefile.in (LIBCTF): Add.
1160 (CLIBS): Use it.
1161 (CDEPS): Likewise.
1162 (DIST): Add ctfread.c.
606813d5
WP
1163
11642019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * ctfread.c (struct nextfield): Renamed to ...
1167 (struct ctf_nextfield): ... this.
1168 (struct field_info): Renamed to ...
1169 (strut ctf_field_info): ... this.
1170 (attach_fields_to_type): Update for renamed structures.
1171 (ctf_add_member_cb): Likewise.
1172 (ctf_add_enum_member_cb): Likewise.
1173 (process_struct_members): Likewise.
1174 (process_enum_type): Likewise.
30d1f018 1175
518fe38c
WP
11762019-10-07 Weimin Pan <weimin.pan@oracle.com>
1177
1178 * tracectf.h: Rename, was ctf.h.
1179 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1180 * tracefile.c: Likewise.
1181 * tracepoint.c: Remove unused include ctf.h.
1182 * mi/mi-main.c: Likewise.
1183 * Makefile.in Replace ctf.c with tracectf.c.
1184
225f296a
JB
11852019-10-06 Joel Brobecker <brobecker@adacore.com>
1186
1187 * version.in: Change version number to "9.0.50.DATE-git".
1188
77c2dba3
TT
11892019-10-03 Tom Tromey <tom@tromey.com>
1190
1191 PR rust/24976:
1192 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1193
179aed7f
AB
11942019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1197 cp_search_name_hash.
1198 * NEWS: Add entry about nested function support.
1199
0a4b0913
AB
12002019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1201 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1204 for nested static variables when searchin VAR_DOMAIN.
1205 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1206 global scope, update comment.
1207 (add_partial_subprogram): Call add_partial_subprogram recursively
1208 for nested subroutines when processinng Fortran.
1209 (load_partial_dies): Process the child entities of a subprogram
1210 when processing Fortran.
1211 (partial_die_parent_scope): Handle building scope
1212 for Fortran nested functions.
1213 (process_die): Record that nested functions have a scope.
1214 (new_symbol): Always record Fortran subprograms on the global
1215 symbol list.
1216 (determine_prefix): How to build the prefix for Fortran
1217 subprograms.
1218
d8c06f22
AB
12192019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1222 have just sent the thread a SIGSTOP and are waiting for it to
1223 arrive.
1224
a8b3b8e9
AB
12252019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * btrace.c (btrace_add_pc): Remove whitespace before the template
1228 parameter in 'std::vector <...>'.
1229 (parse_xml_btrace_block): Likewise.
1230 (btrace_maint_decode_pt): Likewise.
1231 (btrace_maint_update_packets): Likewise.
1232 (btrace_maint_print_packets): Likewise.
1233 * btrace.h (struct btrace_maint_info): Likewise.
1234 * dwarf2read.c (struct type_unit_group): Likewise.
1235 (build_type_psymtabs_reader): Likewise.
1236 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1237 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1238 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1239
4d825eab
TV
12402019-10-03 Tom de Vries <tdevries@suse.de>
1241
1242 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1243 the first line of the help text for set/show style metadata.
1244
80fd2826
TT
12452019-10-02 Tom Tromey <tromey@adacore.com>
1246
1247 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1248 * gdbsupport/common-inferior.c: New file.
1249 * infcmd.c (startup_with_shell): Don't define.
1250 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1251 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1252 * inferior.h (startup_with_shell): Don't declare.
1253
70054538
CB
12542019-10-02 Christian Biesinger <cbiesinger@google.com>
1255
1256 * gdbsupport/gdb_assert.h: Include errors.h.
1257 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1258
37f6a7f4
TT
12592019-10-02 Tom Tromey <tromey@adacore.com>
1260
1261 * NEWS: Add $_ada_exception entry.
1262 * ada-lang.c (struct ada_catchpoint): Add constructor.
1263 <m_kind>: New member.
1264 (allocate_location_exception, re_set_exception): Remove
1265 "ex" parameter.
1266 (should_stop_exception): Compute $_ada_exception.
1267 (check_status_exception, print_it_exception)
1268 (print_one_exception, print_mention_exception): Remove
1269 "ex" parameter.
1270 (allocate_location_catch_exception, re_set_catch_exception)
1271 (check_status_exception, print_it_catch_exception)
1272 (print_one_catch_exception, print_mention_catch_exception)
1273 (print_recreate_catch_exception)
1274 (allocate_location_catch_exception_unhandled)
1275 (re_set_catch_exception_unhandled)
1276 (check_status_exception, print_it_catch_exception_unhandled)
1277 (print_one_catch_exception_unhandled)
1278 (print_mention_catch_exception_unhandled)
1279 (print_recreate_catch_exception_unhandled)
1280 (allocate_location_catch_assert, re_set_catch_assert)
1281 (check_status_assert, print_it_catch_assert)
1282 (print_one_catch_assert, print_mention_catch_assert)
1283 (print_recreate_catch_assert)
1284 (allocate_location_catch_handlers, re_set_catch_handlers)
1285 (check_status_handlers, print_it_catch_handlers)
1286 (print_one_catch_handlers, print_mention_catch_handlers)
1287 (print_recreate_catch_handlers): Remove.
1288 (create_ada_exception_catchpoint): Update.
1289 (initialize_ada_catchpoint_ops): Update.
1290
fccf9de1
TT
12912019-10-02 Tom Tromey <tromey@adacore.com>
1292
1293 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1294 (create_excep_cond_exprs): Simplify exception string computation.
1295 (ada_exception_catchpoint_cond_string): Likewise.
1296
4b610737
TT
12972019-10-02 Tom Tromey <tromey@adacore.com>
1298
1299 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1300 * ada-lang.c (lesseq_defined_than): Handle
1301 LOC_STATIC.
1302 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1303 parameter.
1304 (dwarf2_has_info): Likewise.
1305 (new_symbol): Set maybe_copied on symbol when
1306 appropriate.
1307 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1308 parameter.
1309 <can_copy>: New member.
1310 * elfread.c (record_minimal_symbol): Set maybe_copied
1311 on symbol when appropriate.
1312 (elf_symfile_read): Update call to dwarf2_has_info.
1313 * minsyms.c (lookup_minimal_symbol_linkage): New
1314 function.
1315 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1316 * symtab.c (get_symbol_address, get_msymbol_address):
1317 New functions.
1318 * symtab.h (get_symbol_address, get_msymbol_address):
1319 Declare.
1320 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1321 maybe_copied.
1322 (struct symbol, struct minimal_symbol) <maybe_copied>:
1323 New member.
1324
1dd58850
TT
13252019-10-02 Tom Tromey <tromey@adacore.com>
1326
1327 * source.c (struct current_source_location): New.
1328 (current_source_key): New global.
1329 (current_source_symtab, current_source_line)
1330 (current_source_pspace): Remove.
1331 (get_source_location): New function.
1332 (get_current_source_symtab_and_line)
1333 (set_default_source_symtab_and_line)
1334 (set_current_source_symtab_and_line)
1335 (clear_current_source_symtab_and_line, select_source_symtab)
1336 (info_source_command, print_source_lines_base)
1337 (info_line_command, search_command_helper, _initialize_source):
1338 Update.
1339
5c281dbb
TT
13402019-10-02 Tom Tromey <tromey@adacore.com>
1341
1342 * source.c (select_source_symtab): Don't call
1343 decode_line_with_current_source.
1344
d3d32391
AB
13452019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * symtab.c (lookup_global_symbol): Search global block.
1348
38583298
TT
13492019-10-02 Tom Tromey <tromey@adacore.com>
1350
1351 * coffread.c (process_coff_symbol): Update.
1352 * dwarf2read.c (var_decode_location, new_symbol): Update.
1353 * mdebugread.c (parse_symbol): Update.
1354 * objfiles.c (relocate_one_symbol): Update.
1355 * stabsread.c (define_symbol, fix_common_block)
1356 (scan_file_globals): Update.
1357 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1358 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1359 * xcoffread.c (process_xcoff_symbol): Update.
1360
9344c18f
AA
13612019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1362
1363 * MAINTAINERS: Update my email address.
1364
df07e2c7
AB
13652019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1368 std::vector.
1369 (build_type_psymtabs_reader): Update for std::vector.
1370 (build_type_psymtab_dependencies): Likewise.
1371 * dwarf2read.h: Remove use of DEF_VEC_P.
1372 (typedef sig_type_ptr): Delete.
1373
554ac434
AB
13742019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1377 to std::vector.
1378 (btrace_maint_decode_pt): Likewise, and move allocation of the
1379 vector outside of the loop.
1380 (btrace_maint_update_packets): Update to handle change from VEC to
1381 std::vector.
1382 (btrace_maint_print_packets): Likewise.
1383 (maint_info_btrace_cmd): Likewise.
1384 * btrace.h: Remove use of DEF_VEC_O.
1385 (typedef btrace_pt_packet_s): Delete.
1386 (struct btrace_maint_info) <packets>: Change fromm VEC to
1387 std::vector.
1388 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1389
46f29a9a
AB
13902019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1393 make accesses into the vector constant references.
1394 (btrace_add_pc): Update for std::vector.
1395 (btrace_stitch_bts): Likewise.
1396 (parse_xml_btrace_block): Likewise.
1397 (btrace_maint_update_packets): Likewise.
1398 (btrace_maint_print_packets): Likewise.
1399 (maint_info_btrace_cmd): Likewise.
1400 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1401 std::vector.
1402 (btrace_data::empty): Likewise.
1403 (btrace_data_append): Likewise.
1404 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1405 (typedef btrace_block_s): Delete.
1406 (struct btrace_block): Add constructor.
1407 (struct btrace_data_bts) <blocks>: Change to std::vector.
1408 * nat/linux-btrace.c (perf_event_read_bts): Update for
1409 std::vector.
1410 (linux_read_bts): Likewise.
1411
d770d56f
TT
14122019-10-01 Tom Tromey <tom@tromey.com>
1413
1414 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1415
9d636d67
TT
14162019-10-01 Tom Tromey <tom@tromey.com>
1417
1418 * stack.c (print_frame, info_frame_command_core): Use
1419 styled_string.
1420 * linux-thread-db.c (try_thread_db_load_1)
1421 (try_thread_db_load_from_pdir_1): Use styled_string.
1422 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1423 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1424 (maybe_print_unsupported_script_warning)
1425 (maybe_print_script_not_found_warning): Use styled_string.
1426 * ada-lang.c (user_select_syms): Use styled_string.
1427
7f6aba03
TT
14282019-10-01 Tom Tromey <tom@tromey.com>
1429
1430 * p-lang.c (pascal_printstr): Use metadata style.
1431 * value.c (show_convenience): Use metadata style.
1432 * valprint.c (valprint_check_validity, val_print_optimized_out)
1433 (val_print_not_saved, val_print_unavailable)
1434 (val_print_invalid_address, generic_val_print, val_print)
1435 (value_check_printable, val_print_array_elements): Use metadata
1436 style.
1437 * ui-out.h (class ui_out) <field_fmt>: New overload.
1438 <do_field_fmt>: Add style parameter.
1439 * ui-out.c (ui_out::field_fmt): New overload.
1440 * typeprint.c (type_print_unknown_return_type)
1441 (val_print_not_allocated, val_print_not_associated): Use metadata
1442 style.
1443 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1444 parameter.
1445 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1446 * tracepoint.c (tvariables_info_1): Use metadata style.
1447 * stack.c (print_frame_arg, print_frame_info, print_frame)
1448 (info_frame_command_core): Use metadata style.
1449 * skip.c (info_skip_command): Use metadata style.
1450 * rust-lang.c (rust_print_enum): Use metadata style.
1451 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1452 metadata style.
1453 * python/py-framefilter.c (py_print_single_arg): Use metadata
1454 style.
1455 * printcmd.c (do_one_display, print_variable_and_value): Use
1456 metadata style.
1457 * p-valprint.c (pascal_val_print)
1458 (pascal_object_print_value_fields): Use metadata style.
1459 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1460 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1461 parameter.
1462 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1463 * m2-valprint.c (m2_print_long_set): Use metadata style.
1464 * m2-typeprint.c (m2_print_type): Use metadata style.
1465 * infcmd.c (print_return_value_1): Use metadata style.
1466 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1467 * f-valprint.c (info_common_command_for_block): Use metadata
1468 style.
1469 * f-typeprint.c (f_type_print_base): Use metadata style.
1470 * expprint.c (print_subexp_standard): Use metadata style.
1471 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1472 * cli/cli-style.h (class cli_style_option): Add constructor.
1473 (metadata_style): Declare.
1474 * cli/cli-style.c (metadata_style): New global.
1475 (_initialize_cli_style): Register metadata style.
1476 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1477 parameter.
1478 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1479 * c-typeprint.c (c_type_print_base_struct_union)
1480 (c_type_print_base_1): Use metadata style.
1481 * breakpoint.c (watchpoint_value_print)
1482 (print_one_breakpoint_location): Use metadata style.
1483 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1484 style.
1485 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1486 style.
1487 * ada-valprint.c (val_print_packed_array_elements, printstr)
1488 (print_field_values, ada_val_print_ref, ada_val_print): Use
1489 metadata style.
1490 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1491 style.
1492 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1493 style.
1494 * ada-lang.c (user_select_syms): Use metadata style.
1495
14309bb6
TT
14962019-10-01 Tom Tromey <tom@tromey.com>
1497
1498 * cli/cli-cmds.c (pwd_command): Style output.
1499
6a831f06
PA
15002019-10-01 Pedro Alves <palves@redhat.com>
1501 Tom Tromey <tom@tromey.com>
1502
1503 * symtab.c (print_symbol_info): Use %ps.
1504 (print_msymbol_info): Use %ps.
1505 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1506 * printcmd.c (print_variable_and_value): Use %ps.
1507 * macrocmd.c (show_pp_source_pos): Use %ps.
1508 * infrun.c (print_exited_reason): Use ui_out::message.
1509 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1510 (describe_other_breakpoints): Use ui_out::message and new
1511 formats.
1512 (say_where): Use new formats.
1513 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1514 and new formats.
1515
2a3c1174
PA
15162019-10-01 Pedro Alves <palves@redhat.com>
1517 Tom Tromey <tom@tromey.com>
1518
1519 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1520 (test_gdb_formats): New function.
1521 (run_tests): Call it.
1522 (test_format_specifier): Update.
1523 * utils.h (fputs_filtered): Update comment.
1524 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1525 (fputs_styled_unfiltered): Declare.
1526 * utils.c (fputs_styled_unfiltered): New function.
1527 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1528 (vfprintf_filtered): Update.
1529 (vfprintf_unfiltered, vprintf_filtered): Update.
1530 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1531 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1532 disallow_ui_out_field>: New constants.
1533 (enum class field_kind): New.
1534 (struct base_field_s, struct signed_field_s): New.
1535 (signed_field): New function.
1536 (struct string_field_s): New.
1537 (string_field): New function.
1538 (struct styled_string_s): New.
1539 (styled_string): New function.
1540 (class ui_out) <message>: Add comment.
1541 <vmessage, call_do_message>: New methods.
1542 <do_message>: Add style parameter.
1543 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1544 methods.
1545 (ui_out::message): Rewrite.
1546 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1547 parameter.
1548 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1549 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1550 gdb_extensions parameter.
1551 (class format_piece): Add parameter to constructor.
1552 (n_int_args): New field.
1553 * gdbsupport/format.c (format_pieces::format_pieces): Add
1554 gdb_extensions parameter. Handle '*'.
1555 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1556 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1557 vfprintf_styled_no_gdbfmt.
1558 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1559 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1560 unfiltered output.
1561 * ui-style.h (struct ui_file_style) <ptr>: New method.
1562
0dfe5bfb
TT
15632019-10-01 Tom Tromey <tom@tromey.com>
1564
1565 * unittests/format_pieces-selftests.c: Update. Add final format.
1566 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1567 empty literal pieces.
1568
e43b10e1
TT
15692019-10-01 Tom Tromey <tom@tromey.com>
1570
1571 * ui-out.h (enum class ui_out_style_kind): Remove.
1572 (class ui_out) <field_string, field_stsream, do_field_string>:
1573 Change type of "style".
1574 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1575 (ui_out::field_string): Update.
1576 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1577 of "style".
1578 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1579 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1580 * stack.c (print_frame_arg, print_frame_info, print_frame):
1581 Update.
1582 * source.c (print_source_lines_base): Update.
1583 * solib.c (info_sharedlibrary_command): Update.
1584 * skip.c (info_skip_command): Update.
1585 * record-btrace.c (btrace_call_history_src_line)
1586 (btrace_call_history): Update.
1587 * python/py-framefilter.c (py_print_frame): Update.
1588 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1589 "style".
1590 * mi/mi-out.c (mi_ui_out::do_table_header)
1591 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1592 (mi_ui_out::do_field_string): Update.
1593 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1594 Update.
1595 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1596 "style".
1597 * cli-out.c (cli_ui_out::do_table_header)
1598 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1599 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1600 (cli_ui_out::do_field_fmt): Update.
1601 * breakpoint.c (print_breakpoint_location): Update.
1602 (update_static_tracepoint): Update.
1603
cd7c32c3
PW
16042019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1605
1606 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1607 conversion of gdb_datadir.
1608 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1609 remove not needed c_str ().
1610
8fe0f950
AT
16112019-09-30 Ali Tamur <tamur@google.com>
1612
1613 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1614 (dwarf2_string_attr): Likewise.
1615
5f48f8f3
AT
16162019-09-30 Ali Tamur <tamur@google.com>
1617
1618 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1619 (process_full_type_unit): Likewise.
1620 (dump_die_shallow): Likewise.
1621 (cu_debug_loc_section): Likewise.
1622
6fb08628
CB
16232019-09-28 Christian Biesinger <cbiesinger@google.com>
1624
1625 * minsyms.c (compare_minimal_symbols): Rename to...
1626 (minimal_symbol_is_less_than): ...this, and adjust to STL
1627 conventions (return bool, take arguments as references)
1628 (minimal_symbol_reader::install): Call std::sort instead
1629 of qsort.
1630
c7ee338a
CB
16312019-09-29 Christian Biesinger <cbiesinger@google.com>
1632
1633 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1634 hash and why.
1635 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1636 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1637
703a86c2
SM
16382019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1639
1640 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1641 * psympriv.h (add_psymbol_to_list): Move comment here and update
1642 it.
1643
0df0352a
TV
16442019-09-29 Tom de Vries <tdevries@suse.de>
1645
1646 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1647 Use $tmpdir/$(basename "$output_file").dwz instead of
1648 "${output_file}.dwz".
1649
ad75efa6
SM
16502019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 PR gdb/25045
1653 * hppa-linux-nat.c: Include gdbarch.h.
1654
ececd218
CB
16552019-09-26 Christian Biesinger <cbiesinger@google.com>
1656
1657 * blockframe.c (find_pc_partial_function): Change return type to bool.
1658 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1659 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1660 (stub_gnu_ifunc_resolve_name): Likewise.
1661 * symtab.c (compare_filenames_for_search): Likewise.
1662 (compare_glob_filenames_for_search): Likewise.
1663 (matching_obj_sections): Likewise.
1664 (symbol_matches_domain): Likewise.
1665 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1666 (find_line_pc): Change return type to bool.
1667 (find_line_pc_range): Likewise.
1668 (producer_is_realview): Likewise.
1669 * symtab.h (symbol_matches_domain): Likewise.
1670 (find_pc_partial_function): Likewise.
1671 (find_pc_line_pc_range): Likewise.
1672 (in_gnu_ifunc_stub): Likewise.
1673 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1674 (find_line_pc): Likewise.
1675 (find_line_pc_range): Likewise.
1676 (matching_obj_sections): Likewise.
1677 (find_line_symtab): Change out parameter to bool.
1678 (producer_is_realview): Change return type to bool.
1679 (compare_filenames_for_search): Likewise.
1680 (compare_glob_filenames_for_search): Likewise.
1681
27a900b8
TT
16822019-09-26 Tom Tromey <tom@tromey.com>
1683
1684 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1685 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1686 * gdb_usleep.h: Remove.
1687 * gdb_usleep.c: Remove.
1688 * utils.c: Don't include gdb_usleep.h.
1689
5d63b30a
TT
16902019-09-26 Tom Tromey <tromey@adacore.com>
1691
1692 * python/py-type.c (type_to_type_object): Call check_typedef
1693 for stub types.
1694
12904d37
TT
16952019-09-26 Tom Tromey <tom@tromey.com>
1696
1697 * utils.h (initialize_utils): Don't declare.
1698 * top.c (gdb_init): Don't call initialize_utils.
1699 * utils.c (initialize_utils): Remove. Move contents...
1700 (_initialize_utils): ... here.
1701
858f25f0
TT
17022019-09-25 Tom Tromey <tom@tromey.com>
1703
1704 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1705 * utils.h (make_hex_string): Don't declare.
1706 * utils.c (make_hex_string): Remove.
1707
3d435220
TV
17082019-09-24 Tom de Vries <tdevries@suse.de>
1709
1710 PR gdb/23815
1711 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1712 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1713
ddd44b70
DD
17142019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1715
1716 * NEWS: Mention new simulator port for PRU.
1717
f945dedf
CB
17182019-09-23 Christian Biesinger <cbiesinger@google.com>
1719
1720 * ada-exp.y (write_object_remaining): Update.
1721 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1722 and eliminate the static buffer.
1723 (ada_decode_symbol): Update.
1724 (ada_la_decode): Update.
1725 (ada_sniff_from_mangled_name): Update.
1726 (is_valid_name_for_wild_match): Update.
1727 (ada_lookup_name_info::matches): Update and simplify.
1728 (name_matches_regex): Update.
1729 (ada_add_global_exceptions): Update.
1730 * ada-lang.h (ada_decode): Update signature.
1731 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1732 * dwarf-index-write.c (debug_names::insert): Update.
1733
7ab78ccb
SM
17342019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1735
1736 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1737 formatting.
1738
9252448b
SM
17392019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1740
1741 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1742 Change "nonzero" to "true" in documentation.
1743
626ca2c0
CB
17442019-09-20 Christian Biesinger <cbiesinger@google.com>
1745
1746 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1747 (_initialize_darwin_solib): Don't set
1748 darwin_so_ops.lookup_lib_global_symbol.
1749 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1750 set_gdbarch_iterate_over_objfiles_in_search_order.
1751 (elf_lookup_lib_symbol): Rename to...
1752 (svr4_iterate_over_objfiles_in_search_order): this, and update
1753 to iterate semantics.
1754 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1755 * solib.c (solib_global_lookup): Remove.
1756 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1757 (solib_global_lookup): Remove.
1758 * symtab.c (lookup_global_or_static_symbol): Remove call to
1759 solib_global_lookup.
1760
5a3a0d63
JB
17612019-09-20 Joel Brobecker <brobecker@adacore.com>
1762
1763 * NEWS: Move entries about default MI version now being
1764 version 3, and about the GDB/MI fix for multi-location
1765 breakpoints to the "since GDB 8.3" section.
1766
ffea1427
JB
17672019-09-20 Joel Brobecker <brobecker@adacore.com>
1768
1769 GDB 8.3.1 released.
1770
abf516c6
UW
17712019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1772
1773 * NEWS: Mention that Cell/B.E. debugging support was removed.
1774 * MAINTAINERS: Remove spu target.
1775
1776 * config/djgpp/fnchange.lst: Remove entries for removed files.
1777
1778 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1779 spu-multiarch.o, and spu-tdep.o.
1780 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1781 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1782 spu-multiarch.c, and spu-tdep.c.
1783 * spu-linux-nat.c: Remove file.
1784 * spu-multiarch.c: Remove file.
1785 * spu-tdep.c: Remove file.
1786 * spu-tdep.h: Remove file.
1787 * solib-spu.c: Remove file.
1788 * solib-spu.h: Remove file.
1789
1790 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1791 * configure.nat (spu-linux): Remove.
1792 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1793 solib-multiarch.o from gdb_target_obs.
1794 (spu*-*-*): Remove.
1795
1796 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1797 feature flag.
1798 (ppc_linux_no_features): Update.
1799 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1800 Cell/B.E. support.
1801 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1802 (tdesc_powerpc_cell64l): Likewise.
1803 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1804 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1805 Cell/B.E. support.
1806 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1807 Do not include "features/rs6000/powerpc-cell32l.c" or
1808 "features/rs6000/powerpc-cell64l.c".
1809 (ppc_linux_spu_section): Remove.
1810 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1811 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1812 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1813 (ppc_linux_spe_context_lookup): Remove.
1814 (ppc_linux_spe_context_inferior_created): Remove.
1815 (ppc_linux_spe_context_solib_loaded): Remove.
1816 (ppc_linux_spe_context_solib_unloaded): Remove.
1817 (ppc_linux_spe_context): Remove.
1818 (struct ppu2spu_cache): Remove.
1819 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1820 (struct ppu2spu_data): Remove.
1821 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1822 ppu2spu_unwind): Remove.
1823 (ppc_linux_init_abi): Remove Cell/B.E. support.
1824 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1825
1826 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1827 (rs6000/powerpc-cell64l-expedite): Likewise
1828 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1829 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1830 rs6000/powerpc-cell64l.xml.
1831 * features/rs6000/powerpc-cell32l.xml: Remove.
1832 * features/rs6000/powerpc-cell64l.xml: Likewise.
1833 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1834 * features/rs6000/powerpc-cell64l.c: Likewise.
1835 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1836 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1837 * regformats/reg-spu.dat: Remove.
1838
1839 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1840 * corelow.c (struct spuid_list): Remove.
1841 (add_to_spuid_list): Remove.
1842 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1843 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1844 (remote_protocol_features): Remove associated entries.
1845 (_initialize_remote): No longer initialize them.
1846 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1847 * linux-nat.c (SPUFS_MAGIC): Remove.
1848 (linux_proc_xfer_spu): Remove.
1849 (spu_enumerate_spu_ids): Remove.
1850 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1851 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1852 (linux_make_corefile_notes): No longer call it.
1853
1854 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1855 (cooked_write_test): Likewise.
1856
78e8cb91
TT
18572019-09-20 Tom Tromey <tom@tromey.com>
1858
1859 * NEWS: Mention case-sensitivity of TUI commands.
1860 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1861 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1862 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1863
f074b67e
TT
18642019-09-20 Tom Tromey <tom@tromey.com>
1865
1866 * tui/tui-source.c (tui_source_window::set_contents): Use
1867 make_unique_xstrdup.
1868 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1869 make_unique_xstrdup.
1870
63c4bf19
TT
18712019-09-20 Tom Tromey <tom@tromey.com>
1872
1873 * tui/tui-data.c: Remove separator comments.
1874 * tui/tui-layout.c: Remove separator comments.
1875 * tui/tui-win.c: Remove separator comments.
1876 * tui/tui-wingeneral.c: Remove separator comments.
1877
43df9b2f
TT
18782019-09-20 Tom Tromey <tom@tromey.com>
1879
1880 * tui/tui.h (strcat_to_buf): Don't declare.
1881 * tui/tui.c (strcat_to_buf): Remove.
1882
7226433c
TT
18832019-09-20 Tom Tromey <tom@tromey.com>
1884
1885 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1886 from "fullname".
1887 * tui/tui-source.c (tui_source_window::set_contents)
1888 (tui_source_window::location_matches_p)
1889 (tui_source_window::maybe_update): Update.
1890
80df3337
TT
18912019-09-20 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1894 Update.
1895 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1896 prefix.
1897 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1898 (tui_data_window::line_from_reg_element_no)
1899 (tui_data_window::first_reg_element_no_inline)
1900 (tui_data_window::show_registers)
1901 (tui_data_window::show_register_group)
1902 (tui_data_window::display_registers_from)
1903 (tui_data_window::display_registers_from_line)
1904 (tui_data_window::first_data_item_displayed)
1905 (tui_data_window::delete_data_content_windows)
1906 (tui_data_window::erase_data_content)
1907 (tui_data_window::do_scroll_vertical)
1908 (tui_data_window::refresh_window)
1909 (tui_data_window::check_register_values): Update.
1910
9923f347
TT
19112019-09-20 Tom Tromey <tom@tromey.com>
1912
1913 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1914 (struct tui_locator_window) <full_name, proc_name>: Now
1915 std::string.
1916 * tui/tui-stack.c (tui_locator_window::make_status_line)
1917 (tui_locator_window::set_locator_fullname)
1918 (tui_locator_window::set_locator_info): Update.
1919 * tui/tui-source.c (tui_source_window::set_contents)
1920 (tui_source_window::showing_source_p): Update.
1921
b76251ab
TT
19222019-09-20 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1925 Don't call tui_locator_win_info_ptr.
1926
0891be08
TT
19272019-09-20 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1930
1b935acf
TT
19312019-09-20 Tom Tromey <tom@tromey.com>
1932
1933 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1934 height for locator.
1935 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1936 * tui/tui-layout.c (show_source_disasm_command, show_data)
1937 (show_source_or_disasm_and_command): Use 1 as height for locator.
1938
9abd8a65
TT
19392019-09-20 Tom Tromey <tom@tromey.com>
1940
1941 * tui/tui.c (tui_enable): Update.
1942 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1943 Update.
1944 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1945 Update.
1946 * tui/tui-data.c (win_resized): Now bool.
1947 (tui_win_resized): Return bool.
1948 (tui_set_win_resized_to): Accept a bool.
1949
b5457826
TT
19502019-09-20 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1953 Change type of "refresh_values_only".
1954 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1955 type of "refresh_values_only".
1956
6b915f7d
TT
19572019-09-20 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1960 std::string.
1961 (tui_disassemble): Add "pos" parameter.
1962 (tui_disasm_window::set_contents): Simplify.
1963
2ad52f6f
TT
19642019-09-20 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-winsource.h (struct tui_source_window_base)
1967 <show_source_content>: Now private.
1968 * tui/tui-winsource.c
1969 (tui_source_window_base::show_source_content): Don't handle empty
1970 content case.
1971
b3b1bde6
TT
19722019-09-20 Tom Tromey <tom@tromey.com>
1973
1974 * tui/tui-layout.c (show_source_disasm_command)
1975 (show_source_or_disasm_and_command): Don't call
1976 show_source_content.
1977
71a25ed2
TT
19782019-09-20 Tom Tromey <tom@tromey.com>
1979
1980 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1981 Declare.
1982 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1983 from tui_make_status_line.
1984 (tui_locator_window::rerender): Update.
1985
f8532154
TT
19862019-09-20 Tom Tromey <tom@tromey.com>
1987
1988 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1989 (tui_locator_window::rerender): Update.
1990
2d81b349
TT
19912019-09-20 Tom Tromey <tom@tromey.com>
1992
1993 * tui/tui-winsource.h (struct tui_source_window_base)
1994 <~tui_source_window_base>: Don't declare.
1995 <fullname>: Remove.
1996 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1997 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1998 member.
1999 * tui/tui-source.c (tui_source_window::set_contents): Update.
2000 (tui_source_window::location_matches_p)
2001 (tui_source_window::maybe_update): Update.
2002
f14bec58
TT
20032019-09-20 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-winsource.h (~tui_source_element): Remove.
2006 (tui_source_element): Update.
2007 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2008 * tui/tui-winsource.c (tui_show_source_line): Update.
2009 * tui/tui-source.c (tui_source_window::set_contents): Update.
2010 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2011
78d5933a
TT
20122019-09-20 Tom Tromey <tom@tromey.com>
2013
2014 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2015 declare.
2016 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2017 tui_clear_source_windows_detail.
2018 * tui/tui-winsource.h (struct tui_source_window_base)
2019 <clear_detail>: Don't declare.
2020 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2021 Remove.
2022 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2023
d4207696
TT
20242019-09-20 Tom Tromey <tromey@adacore.com>
2025
2026 PR ada/24919:
2027 * block.c (contained_in): Fix final return value.
2028
00f93c44
AM
20292019-09-20 Alan Modra <amodra@gmail.com>
2030
2031 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2032 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2033 (read_indirect_string_from_dwz): Use bfd accessor.
2034 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2035 * machoread.c (macho_symfile_read_all_oso): Likewise.
2036 * solib.c (solib_bfd_open): Likewise.
2037
e4153ae6
CB
20382019-09-19 Christian Biesinger <cbiesinger@google.com>
2039
2040 * eval.c: Move declaration of overload_resolution to...
2041 * value.h: ...here.
2042
c7ae7675
CB
20432019-09-19 Christian Biesinger <cbiesinger@google.com>
2044
2045 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2046 * arm-linux-tdep.c: Likewise.
2047 * arm-nbsd-nat.c: Likewise.
2048 * arm-tdep.h: Declare arm_apcs_32.
2049 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2050
e86f08d2
CB
20512019-09-19 Christian Biesinger <cbiesinger@google.com>
2052
2053 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2054 * dwarf2read.h: Declare dwarf_always_disassemble.
2055
f64e2f40
TV
20562019-09-19 Tom de Vries <tdevries@suse.de>
2057
2058 PR gdb/25009
2059 * source-cache.c (source_cache::ensure): Catch exception thrown during
2060 construction of the highlighter.
2061
fd361982
AM
20622019-09-18 Alan Modra <amodra@gmail.com>
2063
2064 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2065 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2066 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2067 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2068 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2069 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2070 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2071 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2072 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2073 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2074 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2075 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2076 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2077 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2078 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2079 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2080 * mi/mi-interp.c: Update throughout for bfd section macro and
2081 function changes.
2082 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2083 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2084
11061048
TT
20852019-09-18 Tom Tromey <tom@tromey.com>
2086
2087 * NEWS: Add entry.
2088 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2089 call rl_initialize.
2090 (tui_enable): Do not call rl_initialize.
2091
7a27b85f
CG
20922019-09-18 Christian Groessler <chris@groessler.org>
2093
2094 * alpha-linux-nat.c: Include gdbarch.h.
2095
f64eea3a
SM
20962019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * ui-file.c: Include cli/cli-style.h.
2099 (term_cli_styling): Remove cli_styling declaration.
2100
e6f7f6d1
AM
21012019-09-18 Alan Modra <amodra@gmail.com>
2102
2103 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2104 to bfd_asymbol_section.
2105
1d38e9d1
AM
21062019-09-18 Alan Modra <amodra@gmail.com>
2107
2108 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2109 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2110 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2111
90d92a63
AM
21122019-09-18 Alan Modra <amodra@gmail.com>
2113
2114 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2115 * spu-linux-nat.c (spu_bfd_open): Likewise.
2116
a3d181d2
CB
21172019-09-18 Christian Biesinger <cbiesinger@google.com>
2118
2119 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2120 to bool to match definition in dwarf2read.c.
2121
491144b5
CB
21222019-09-17 Christian Biesinger <cbiesinger@google.com>
2123
2124 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2125 (print_signatures): Likewise.
2126 (trust_pad_over_xvs): Likewise.
2127 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2128 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2129 * arm-linux-nat.c (arm_apcs_32): Likewise.
2130 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2131 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2132 * arm-tdep.c (arm_debug): Likewise.
2133 (arm_apcs_32): Likewise.
2134 * auto-load.c (debug_auto_load): Likewise.
2135 (auto_load_gdb_scripts): Likewise.
2136 (global_auto_load): Likewise.
2137 (auto_load_local_gdbinit): Likewise.
2138 (auto_load_local_gdbinit_loaded): Likewise.
2139 * auto-load.h (global_auto_load): Likewise.
2140 (auto_load_local_gdbinit): Likewise.
2141 (auto_load_local_gdbinit_loaded): Likewise.
2142 * breakpoint.c (disconnected_dprintf): Likewise.
2143 (breakpoint_proceeded): Likewise.
2144 (automatic_hardware_breakpoints): Likewise.
2145 (always_inserted_mode): Likewise.
2146 (target_exact_watchpoints): Likewise.
2147 (_initialize_breakpoint): Update.
2148 * breakpoint.h (target_exact_watchpoints): Change to bool.
2149 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2150 * cli/cli-cmds.c (trace_commands): Likewise.
2151 * cli/cli-cmds.h (trace_commands): Likewise.
2152 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2153 to bool*.
2154 * cli/cli-logging.c (logging_overwrite): Change to bool.
2155 (logging_redirect): Likewise.
2156 (debug_redirect): Likewise.
2157 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2158 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2159 to bool.
2160 <boolean_option_def>: Update.
2161 (struct flag_option_def): Change default type of Context to bool
2162 from int.
2163 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2164 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2165 (get_setshow_command_value_string): Likewise.
2166 * cli/cli-style.c (cli_styling): Change to bool.
2167 (source_styling): Likewise.
2168 * cli/cli-style.h (source_styling): Likewise.
2169 (cli_styling): Likewise.
2170 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2171 to bool.
2172 * command.h (var_types): Update comment.
2173 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2174 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2175 bool.
2176 (debug_compile_cplus_scopes): Likewise.
2177 * compile/compile-internal.h (compile_debug): Likewise.
2178 * compile/compile.c (compile_debug): Likewise.
2179 (struct compile_options) <raw>: Likewise.
2180 * cp-support.c (catch_demangler_crashes): Likewise.
2181 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2182 (usr_cmd_cris_dwarf2_cfi): Likewise.
2183 * csky-tdep.c (csky_debug): Likewise.
2184 * darwin-nat.c (enable_mach_exceptions): Likewise.
2185 * dcache.c (dcache_enabled_p): Likewise.
2186 * defs.h (info_verbose): Likewise.
2187 * demangle.c (demangle): Likewise.
2188 (asm_demangle): Likewise.
2189 * dwarf-index-cache.c (debug_index_cache): Likewise.
2190 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2191 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2192 * dwarf2read.c (check_physname): Likewise.
2193 (use_deprecated_index_sections): Likewise.
2194 (dwarf_always_disassemble): Likewise.
2195 * eval.c (overload_resolution): Likewise.
2196 * event-top.c (set_editing_cmd_var): Likewise.
2197 (exec_done_display_p): Likewise.
2198 * event-top.h (set_editing_cmd_var): Likewise.
2199 (exec_done_display_p): Likewise.
2200 * exec.c (write_files): Likewise.
2201 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2202 (debug_fbsd_nat): Likewise.
2203 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2204 Likewise.
2205 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2206 <backtrace_past_entry> Likewise.
2207 * gdb-demangle.h (demangle): Likewise.
2208 (asm_demangle): Likewise.
2209 * gdb_bfd.c (bfd_sharing): Likewise.
2210 * gdbcore.h (write_files): Likewise.
2211 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2212 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2213 * gdbthread.h (print_thread_events): Likewise.
2214 * gdbtypes.c (opaque_type_resolution): Likewise.
2215 (strict_type_checking): Likewise.
2216 * gnu-nat.c (gnu_debug_flag): Likewise.
2217 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2218 * guile/scm-param.c (pascm_variable): Add boolval.
2219 (add_setshow_generic): Update.
2220 (pascm_param_value): Update.
2221 (pascm_set_param_value_x): Update.
2222 * hppa-tdep.c (hppa_debug): Change to bool..
2223 * infcall.c (may_call_functions_p): Likewise.
2224 (coerce_float_to_double_p): Likewise.
2225 (unwind_on_signal_p): Likewise.
2226 (unwind_on_terminating_exception_p): Likewise.
2227 * infcmd.c (startup_with_shell): Likewise.
2228 * inferior.c (print_inferior_events): Likewise.
2229 * inferior.h (startup_with_shell): Likewise.
2230 (print_inferior_events): Likewise.
2231 * infrun.c (step_stop_if_no_debug): Likewise.
2232 (detach_fork): Likewise.
2233 (debug_displaced): Likewise.
2234 (disable_randomization): Likewise.
2235 (non_stop): Likewise.
2236 (non_stop_1): Likewise.
2237 (observer_mode): Likewise.
2238 (observer_mode_1): Likewise.
2239 (set_observer_mode): Update.
2240 (sched_multi): Change to bool.
2241 * infrun.h (debug_displaced): Likewise.
2242 (sched_multi): Likewise.
2243 (step_stop_if_no_debug): Likewise.
2244 (non_stop): Likewise.
2245 (disable_randomization): Likewise.
2246 * linux-tdep.c (use_coredump_filter): Likewise.
2247 (dump_excluded_mappings): Likewise.
2248 * linux-thread-db.c (auto_load_thread_db): Likewise.
2249 (check_thread_db_on_load): Likewise.
2250 * main.c (captured_main_1): Update.
2251 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2252 xx2_opt, boolean_opt>: Change to bool.
2253 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2254 * maint.c (maintenance_profile_p): Likewise.
2255 (per_command_time): Likewise.
2256 (per_command_space): Likewise.
2257 (per_command_symtab): Likewise.
2258 * memattr.c (inaccessible_by_default): Likewise.
2259 * mi/mi-main.c (mi_async): Likewise.
2260 (mi_async_1): Likewise.
2261 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2262 * nat/fork-inferior.h (startup_with_shell): Likewise.
2263 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2264 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2265 * nios2-tdep.c (nios2_debug): Likewise.
2266 * or1k-tdep.c (or1k_debug): Likewise.
2267 * parse.c (parser_debug): Likewise.
2268 * parser-defs.h (parser_debug): Likewise.
2269 * printcmd.c (print_symbol_filename): Likewise.
2270 * proc-api.c (procfs_trace): Likewise.
2271 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2272 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2273 (set_parameter_value): Update.
2274 (add_setshow_generic): Update.
2275 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2276 to bool*.
2277 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2278 int*.
2279 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2280 * record-btrace.c (record_btrace_target::store_registers): Update.
2281 * record-full.c (record_full_memory_query): Change to bool.
2282 (record_full_stop_at_limit): Likewise.
2283 * record-full.h (record_full_memory_query): Likewise.
2284 * remote-notif.c (notif_debug): Likewise.
2285 * remote-notif.h (notif_debug): Likewise.
2286 * remote.c (use_range_stepping): Likewise.
2287 (interrupt_on_connect): Likewise.
2288 (remote_break): Likewise.
2289 * ser-tcp.c (tcp_auto_retry): Likewise.
2290 * ser-unix.c (serial_hwflow): Likewise.
2291 * skip.c (debug_skip): Likewise.
2292 * solib-aix.c (solib_aix_debug): Likewise.
2293 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2294 (spu_auto_flush_cache_p): Likewise.
2295 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2296 Likewise.
2297 (struct info_print_options) <quiet>: Likewise.
2298 * symfile-debug.c (debug_symfile): Likewise.
2299 * symfile.c (auto_solib_add): Likewise.
2300 (separate_debug_file_debug): Likewise.
2301 * symfile.h (auto_solib_add): Likewise.
2302 (separate_debug_file_debug): Likewise.
2303 * symtab.c (basenames_may_differ): Likewise.
2304 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2305 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2306 (struct info_types_options) <quiet>: Likewise.
2307 * symtab.h (demangle): Likewise.
2308 (basenames_may_differ): Likewise.
2309 * target-dcache.c (stack_cache_enabled_1): Likewise.
2310 (code_cache_enabled_1): Likewise.
2311 * target.c (trust_readonly): Likewise.
2312 (may_write_registers): Likewise.
2313 (may_write_memory): Likewise.
2314 (may_insert_breakpoints): Likewise.
2315 (may_insert_tracepoints): Likewise.
2316 (may_insert_fast_tracepoints): Likewise.
2317 (may_stop): Likewise.
2318 (auto_connect_native_target): Likewise.
2319 (target_stop_and_wait): Update.
2320 (target_async_permitted): Change to bool.
2321 (target_async_permitted_1): Likewise.
2322 (may_write_registers_1): Likewise.
2323 (may_write_memory_1): Likewise.
2324 (may_insert_breakpoints_1): Likewise.
2325 (may_insert_tracepoints_1): Likewise.
2326 (may_insert_fast_tracepoints_1): Likewise.
2327 (may_stop_1): Likewise.
2328 * target.h (target_async_permitted): Likewise.
2329 (may_write_registers): Likewise.
2330 (may_write_memory): Likewise.
2331 (may_insert_breakpoints): Likewise.
2332 (may_insert_tracepoints): Likewise.
2333 (may_insert_fast_tracepoints): Likewise.
2334 (may_stop): Likewise.
2335 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2336 (make_thread_apply_all_options_def_group): Change argument from int*
2337 to bool*.
2338 (thread_apply_all_command): Update.
2339 (print_thread_events): Change to bool.
2340 * top.c (confirm): Likewise.
2341 (command_editing_p): Likewise.
2342 (history_expansion_p): Likewise.
2343 (write_history_p): Likewise.
2344 (info_verbose): Likewise.
2345 * top.h (confirm): Likewise.
2346 (history_expansion_p): Likewise.
2347 * tracepoint.c (disconnected_tracing): Likewise.
2348 (circular_trace_buffer): Likewise.
2349 * typeprint.c (print_methods): Likewise.
2350 (print_typedefs): Likewise.
2351 * utils.c (debug_timestamp): Likewise.
2352 (sevenbit_strings): Likewise.
2353 (pagination_enabled): Likewise.
2354 * utils.h (sevenbit_strings): Likewise.
2355 (pagination_enabled): Likewise.
2356 * valops.c (overload_resolution): Likewise.
2357 * valprint.h (struct value_print_options) <prettyformat_arrays,
2358 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2359 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2360 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2361 Likewise.
2362 * windows-nat.c (new_console): Likewise.
2363 (cygwin_exceptions): Likewise.
2364 (new_group): Likewise.
2365 (debug_exec): Likewise.
2366 (debug_events): Likewise.
2367 (debug_memory): Likewise.
2368 (debug_exceptions): Likewise.
2369 (useshell): Likewise.
2370 * windows-tdep.c (maint_display_all_tib): Likewise.
2371 * xml-support.c (debug_xml): Likewise.
2372
f1b620e9
MG
23732019-09-17 Mike Gulick <mgulick@mathworks.com>
2374
2375 * source.c (prepare_path_for_appending): New function.
2376 (openp): Make use of new function.
2377 (find_and_open_source): Search for the compilation directory and
2378 source file as a relative path beneath the directory search path.
2379
67f3ed6a
AB
23802019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * source-cache.c (source_cache::get_line_charpos): Catch
2383 exceptions and return false, this matches the behaviour documented
2384 in the header file.
2385
74332189
JB
23862019-09-17 Joel Brobecker <brobecker@adacore.com>
2387
2388 * ada-tasks.c (info_task): Remove quoting of the task's name.
2389
f2f24aa9
CB
23902019-09-16 Christian Biesinger <cbiesinger@google.com>
2391
2392 * symfile.c (auto_solib_add): Replace comment with a reference
2393 to the header file.
2394
6a062a93
CB
23952019-09-14 Christian Biesinger <cbiesinger@google.com>
2396
2397 * NEWS: Mention that gdb can now be compiled with Python 3
2398 on Windows.
2399
ec6c8338
AB
24002019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * maint.c (maint_print_section_data::maint_print_section_data):
2403 Force use of 'float log10 (float)' by casting the argument to
2404 float.
2405
aa17805f
AB
24062019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * maint.c: Add 'cmath' include.
2409 (struct maint_print_section_data): New structure.
2410 (print_section_index): New function.
2411 (print_bfd_section_info): Add header comment, small whitespace
2412 cleanup, and update to call new print_section_index function.
2413 (print_objfile_section_info): Likewise.
2414 (maint_obj_section_from_bfd_section): New function.
2415 (print_bfd_section_info_maybe_relocated): New function.
2416 (maintenance_info_sections): Add header comment, always use
2417 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2418
3dd9bb46
AB
24192019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2422 inner scope, add check that the objfile has psymtabs before
2423 checking psymtabs_addrmap.
2424 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2425
4993045d
PW
24262019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2427
2428 * NEWS: Announce that Ada task names are now shown at more places,
2429 and between quotes (except in info task output).
2430 * gdb/ada-tasks.c (task_to_str): New function.
2431 (display_current_task_id): Call task_to_str.
2432 (task_command_1): Likewise.
2433 (print_ada_task_info): In non-mi mode, Properly align headers and data
2434 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2435
7a289707
RO
24362019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2437
2438 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2439 prstatus.pr_lwp.pr_info instead of making it up.
2440
f2aec7f6
CB
24412019-09-11 Christian Biesinger <cbiesinger@google.com>
2442
2443 * auto-load.c (auto_load_expand_dir_vars): Update.
2444 * defs.h (gdb_datadir): Change to std::string.
2445 (python_libdir): Likewise.
2446 (relocate_gdb_directory): Change return type to std::string.
2447 * guile/guile.c (gdbscm_data_directory): Update.
2448 (initialize_scheme_side): Update.
2449 * jit.c (jit_reader_dir): Change to std::string.
2450 (jit_reader_load_command): Update.
2451 * main.c (gdb_datadir): Change to std::string.
2452 (python_libdir): Likewise.
2453 (set_gdb_data_directory): Update.
2454 (relocate_path): Change to return std::string.
2455 (relocate_gdb_directory): Change to return std::string.
2456 (relocate_gdbinit_path_maybe_in_datadir): Update.
2457 (captured_main_1): Update.
2458 * python/python.c (do_start_initialization): Update.
2459 * top.c (show_gdb_datadir): Update.
2460 * xml-syscall.c (xml_init_syscalls_info): Update.
2461 (init_syscalls_info): Update.
2462
9224a013
CB
24632019-09-11 Christian Biesinger <cbiesinger@google.com>
2464
2465 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2466 out of get_init_files.
2467 (get_init_files): Update.
2468
f48cd836
CB
24692019-09-11 Christian Biesinger <cbiesinger@google.com>
2470
2471 * main.c (get_init_files): Change to use std::string.
2472 (captured_main_1): Update.
2473 (print_gdb_help): Update.
2474
9cab7ecd
AT
24752019-09-11 Ali Tamur <tamur@google.com>
2476
2477 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2478 implementation.
2479
67547d89
CB
24802019-09-11 Christian Biesinger <cbiesinger@google.com>
2481
2482 * dbxread.c (read_dbx_symtab): Update.
2483 * dwarf2read.c (load_partial_dies): Update.
2484 * mdebugread.c (parse_partial_symbols): Update.
2485 (handle_psymbol_enumerators): Update.
2486 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2487 * psymtab.c (add_psymbol_to_bcache): Likewise.
2488 (add_psymbol_to_list): Likewise.
2489 * symtab.c (symbol_set_names): Likewise.
2490 * symtab.h (symbol_set_names): Likewise.
2491 * xcoffread.c (scan_xcoff_symtab): Update.
2492
64b2d4a0
TT
24932019-09-11 Tom Tromey <tom@tromey.com>
2494
2495 * symfile-mem.c (symbol_file_add_from_memory): Use
2496 bfd_set_filename.
2497 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2498 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2499
3b00ef10
TT
25002019-09-10 Tom Tromey <tromey@adacore.com>
2501
2502 * dwarf-index-write.c (write_psymbols): Extend error message.
2503 (debug_names::insert): Add Ada code.
2504 (debug_names::write_psymbols): Remove Ada check.
2505 (debug_names) <m_string_obstack>: New member.
2506 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2507 (gdb_index_symbol_name_matcher::matches): Remove.
2508 (mapped_index_base::find_name_components_bounds): Add "lang"
2509 parameter.
2510 (mapped_index_base::build_name_components): Also split names
2511 according to Ada syntax.
2512 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2513 type of "match_callback".
2514 (check_match, check_find_bounds_finds)
2515 (dw2_expand_symtabs_matching): Update.
2516 (dw2_debug_names_iterator): Add new constructor.
2517 (dw2_debug_names_map_matching_symbols): New function.
2518 (dw2_debug_names_expand_symtabs_matching): Update.
2519 (dwarf2_debug_names_functions): Use
2520 dw2_debug_names_map_matching_symbols.
2521
aa391654
TT
25222019-09-10 Tom Tromey <tromey@adacore.com>
2523
2524 * dwarf2read.c (dw2_get_file_names_reader): Add the
2525 CU's file name to the results.
2526
b054970d
TT
25272019-09-10 Tom Tromey <tromey@adacore.com>
2528
2529 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2530 map_matching_symbols. Update.
2531 * dwarf2read.c (dw2_map_matching_symbols): Update.
2532 * psymtab.c (match_partial_symbol): Change type; update.
2533 (psym_map_matching_symbols): Likewise.
2534 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2535 type; update.
2536 * symfile.h (struct quick_symbol_functions)
2537 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2538 Remove "match".
2539
6a3dbf1b
TT
25402019-09-10 Tom Tromey <tromey@adacore.com>
2541
2542 * psymtab.c (map_block): Remove.
2543 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2544 * symtab.c (iterate_over_symbols_terminated): New function.
2545 * symtab.c (iterate_over_symbols_terminated): Declare.
2546
6969f124
TT
25472019-09-10 Tom Tromey <tromey@adacore.com>
2548
2549 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2550 * language.h (struct language_defn) <la_iterate_over_symbols>:
2551 Return bool.
2552 * symtab.c (iterate_over_symbols): Return bool.
2553 * symtab.h (iterate_over_symbols): Return bool.
2554
199b4314
TT
25552019-09-10 Tom Tromey <tromey@adacore.com>
2556
2557 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2558 (add_nonlocal_symbols): Update.
2559 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2560 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2561 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2562 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2563 Change type of "callback". Remove "data".
2564
a084a2a6
AT
2565
25662019-09-09 Ali Tamur <tamur@google.com>
2567
2568 * dwarf2read.c (comp_unit_head): Update comment.
2569 (dwarf2_dwo_name): New function declaration.
2570 (dwarf_unit_type_name): New function declaration.
2571 (read_comp_unit_head): Add support for new compilation units,
2572 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2573 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2574 (currently named as "signature") in their header. Also clarify error
2575 messages.
2576 (lookup_dwo_id): New function. Returns the dwo id of the given
2577 compile unit.
2578 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2579 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2580 functions.
2581 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2582 (dwarf2_dwo_name): Get the dwo name if present.
2583 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2584 purposes.
2585
25a2915e
TT
25862019-09-09 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2589
e4df0874
PW
25902019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2591
2592 * python/python.c (do_start_initialization): Make progname_copy static,
2593 to avoid a leak report.
2594
8634b462
TT
25952019-09-08 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2598
c7f839cb
SM
25992019-09-07 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2602 Change type to gdb::optional<block_enum>.
2603 (dw2_symtab_iter_init): Change block_index parameter type
2604 to gdb::optional<block_enum>.
2605 (dw2_lookup_symbol): Change block_index parameter
2606 type to block_enum.c
2607 (dw2_debug_names_lookup_symbol): Likewise.
2608 * psymtab.c (psym_lookup_symbol): Likewise.
2609 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2610 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2611 Likewise.
2612
ead0e69a
CB
26132019-09-06 Christian Biesinger <cbiesinger@google.com>
2614
2615 * defs.h (relocate_gdb_directory): Change int to bool in
2616 signature and rename flag to relocatable.
2617 * main.c (relocate_path): Likewise.
2618 (relocate_gdb_directory): Likewise.
2619
b16c44de
AM
26202019-09-06 Alan Modra <amodra@gmail.com>
2621
2622 * coffread.c (coff_symfile_read): Constify filename variable.
2623 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2624 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2625 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2626 * solib.c (reload_shared_libraries_1): Likewise.
2627 * symfile.c (reread_symbols): Likewise.
2628 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2629 * solib-darwin.c (darwin_bfd_open): Likewise.
2630 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2631
06ff036e
AB
26322019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2635 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2636
4e962e74
TT
26372019-09-03 Tom Tromey <tromey@adacore.com>
2638
2639 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2640 types.
2641 (has_negatives): Unbias a range type bound.
2642 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2643 * gdbtypes.c (operator==): Handle new field.
2644 (create_range_type): Add "bias" parameter.
2645 (create_static_range_type, resolve_dynamic_range): Update.
2646 * gdbtypes.h (struct range_bounds) <bias>: New member.
2647 (create_range_type): Add bias parameter.
2648 * printcmd.c (print_scalar_formatted): Unbias range types.
2649 * value.c (unpack_long): Unbias range types.
2650 (pack_long): Bias range types.
2651
d90b8f26
AH
26522019-09-02 Alan Hayward <alan.hayward@arm.com>
2653
2654 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2655 probe arguments.
2656
fe01123e
AH
26572019-09-02 Alan Hayward <alan.hayward@arm.com>
2658
2659 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2660 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2661 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2662 (compile_probe_arg): Likewise.
2663 * probe.h (get_argument_count): Likewise.
2664 * solib-svr4.c (solib_event_probe_action): Likewise.
2665 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2666
e661ef01
AH
26672019-09-02 Alan Hayward <alan.hayward@arm.com>
2668
2669 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2670 code to here...
2671 (svr4_create_solib_event_breakpoints): ...from here.
2672
47a536d9
SDJ
26732019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2674
2675 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2676 suffix from warning message.
2677
d6a00eba
TT
26782019-08-30 Tom Tromey <tom@tromey.com>
2679
2680 * tui/tui-winsource.h (struct tui_source_window_base)
2681 <refresh_all>: Don't declare.
2682 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2683 Remove.
2684 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2685 tui_show_locator_content.
2686 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2687 declare.
2688 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2689 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2690 declare.
2691
55b2657b
TT
26922019-08-30 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2695
12a8555a
TT
26962019-08-30 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2699 Remove unnecessary forward declarations.
2700
900ac242
TT
27012019-08-30 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2704 rerender.
2705 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2706 tui_show_locator_content.
2707
99ab33fb
TT
27082019-08-30 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2711 (tui_locator_window::rerender): Rewrite using body of previous
2712 tui_show_locator_content.
2713
e594a5d1
TT
27142019-08-30 Tom Tromey <tom@tromey.com>
2715
2716 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2717 set_locator_fullname>: New methods.
2718 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2719 Rename from tui_set_locator_fullname.
2720 (tui_locator_window::set_locator_info): Rename from
2721 tui_set_locator_info. Return bool.
2722 (tui_update_locator_fullname, tui_show_frame_info): Update.
2723
715bb467
TT
27242019-08-30 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2727
772f3f03
TT
27282019-08-30 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2731 call touchwin.
2732
108e13ab
TT
27332019-08-30 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-wingeneral.c (box_win): Assume win_info and
2736 win_info->handle cannot be NULL.
2737
cdaa6eb4
TT
27382019-08-30 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2741 refresh_window>: Declare.
2742 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2743 resize.
2744 (tui_data_item_window::rerender): Rename from
2745 tui_display_register.
2746 (tui_data_item_window::refresh_window): New method.
2747 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2748 no-op.
2749
89df7f90
TT
27502019-08-30 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2753 regs_column_count, current_group>: Move later. Now private.
2754 <get_current_group>: New method.
2755 * tui/tui-regs.c (tui_reg_command): Update.
2756 * tui/tui-layout.c (tui_set_layout): Update.
2757
1bf2866a
TT
27582019-08-30 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2761 (tui_data_window::rerender): Don't call
2762 check_and_display_highlight_if_needed.
2763 (tui_data_window::refresh_all): Remove call to
2764 erase_data_content.
2765
0670413d
TT
27662019-08-30 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2769 (tui_data_window::display_registers_from)
2770 (tui_data_window::display_reg_element_at_line)
2771 (tui_data_window::display_registers_from_line): Remove checks of
2772 "empty".
2773
18bb55c7
TT
27742019-08-30 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2777 Don't declare.
2778 * tui/tui-regs.c (tui_data_window::show_registers): Call
2779 rerender.
2780 (tui_data_window::rerender): Rename from display_all_data.
2781 (tui_data_window::rerender): Remove old implementation.
2782
1f6d2f10
TT
27832019-08-30 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2786 text.
2787 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2788
16d01f9c
BW
27892019-08-29 Bernhard Wodok <barto@gmx.net>
2790 Sergio Durigan Junior <sergiodj@redhat.com>
2791
2792 PR win32/24284
2793 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2794
d8f27c60
AB
27952019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2798 when searching for types.
2799
1f20c35e
AB
28002019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * f-lang.c (f_language_defn): Use f_print_typedef.
2803 * f-lang.h (f_print_typedef): Declare.
2804 * f-typeprint.c (f_print_typedef): Define.
2805
550105b7
CB
28062019-08-27 Christian Biesinger <cbiesinger@google.com>
2807
2808 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2809
4acfdd20
AB
28102019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * cli/cli-utils.c (info_print_options_defs): Delete.
2813 (make_info_print_options_def_group): Delete.
2814 (extract_info_print_options): Delete.
2815 (info_print_command_completer): Delete.
2816 (info_print_args_help): Add extra parameter, and optionally
2817 include text about -n flag.
2818 * cli/cli-utils.h (struct info_print_options): Delete.
2819 (extract_info_print_options): Delete declaration.
2820 (info_print_command_completer): Delete declaration.
2821 (info_print_args_help): Add extra parameter, extend header
2822 comment.
2823 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2824 search_symbols.
2825 * stack.c (struct info_print_options): New type.
2826 (info_print_options_defs): New file scoped variable.
2827 (make_info_print_options_def_group): New static function.
2828 (info_print_command_completer): New static function.
2829 (info_locals_command): Update to use new local functions.
2830 (info_args_command): Likewise.
2831 (_initialize_stack): Add extra parameter to calls to
2832 info_print_args_help.
2833 * symtab.c (search_symbols): Add extra parameter, use this to
2834 possibly excluse non-debug symbols.
2835 (symtab_symbol_info): Add extra parameter, which is passed on to
2836 search_symbols.
2837 (struct info_print_options): New type.
2838 (info_print_options_defs): New file scoped variable.
2839 (make_info_print_options_def_group): New static function.
2840 (info_print_command_completer): New static function.
2841 (info_variables_command): Update to use local functions, and pass
2842 extra parameter through to symtab_symbol_info.
2843 (info_functions_command): Likewise.
2844 (info_types_command): Pass additional argument through to
2845 symtab_symbol_info.
2846 (rbreak_command): Pass extra argument to search_symbols.
2847 (_initialize_symtab): Add extra arguments for calls to
2848 info_print_args_help, and update help text for 'info variables',
2849 'whereis', and 'info functions' commands.
2850 * symtab.h (search_symbols): Add extra argument to declaration.
2851 * NEWS: Mention new flags.
2852
9aa55206
CB
28532019-08-26 Christian Biesinger <cbiesinger@google.com>
2854
2855 * symtab.c (lookup_static_symbol): Call the new function (and move
2856 it down to be next to lookup_global_symbol).
2857 (struct global_sym_lookup_data): Add block_enum member and rename to...
2858 (struct global_or_static_sym_lookup_data): ...this.
2859 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2860 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2861 (lookup_symbol_global_or_static_iterator_cb): ...this.
2862 (lookup_global_or_static_symbol): New function.
2863 (lookup_global_symbol): Call new function.
2864
5c31b358
TV
28652019-08-26 Tom de Vries <tdevries@suse.de>
2866
2867 PR c++/24852
2868 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2869 when pc_probe.prob == NULL.
2870
23c13d42
SM
28712019-08-25 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2874 variable symbol_linkage to symbol_linkage_.
2875
beadd3e8
SM
28762019-08-25 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2879 represent whether the symbol is static, dynamic, or we don't
2880 know.
2881
e3ec872f
YS
28822019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2883
2884 * gdb/rx-tdep.c (rx_register_names): New.
2885 (rx_register_name): Delete.
2886 (rx_psw_type): Delete.
2887 (rx_fpsw_type): Delete.
2888 (rx_register_type): Delete.
2889 (rx_gdbarch_init): Convert target-descriptions.
2890 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2891 * gdb/features/Makefile: Add rx.xml.
2892 * gdb/features/rx.xml: New.
2893 * gdb/features/rx.c: Generated.
2894 * gdb/NEWS: Mention target description support.
2895
d0509ba4
CB
28962019-08-22 Christian Biesinger <cbiesinger@google.com>
2897
2898 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2899 *slot_ptr.
2900
2d41fa11
SDJ
29012019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2902
2903 * configure.ac: Don't check for 'dlfcn.h' (moved to
2904 gdbsupport/common.m4).
2905 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2906 'gdbsupport/'.
2907 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2908 * compile/compile-c-support.c: Include
2909 'gdbsupport/gdb-dlfcn.h'.
2910 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2911 * gdb-dlfcn.c: Move to...
2912 * gdbsupport/gdb-dlfcn.c: ... here.
2913 * gdb-dlfcn.h: Move to...
2914 * gdbsupport/gdb-dlfcn.h: ... here.
2915
de8af808
SL
29162019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2917
2918 * nios2-tdep.c (struct reg_value): Improve comments. Make
2919 the offset field signed.
2920
27204489
CB
29212019-08-22 Christian Biesinger <cbiesinger@google.com>
2922
2923 * python/lib/gdb/__init__.py (_execute_file): New function.
2924 * python/python.c (python_run_simple_file): Call gdb._execute_file
2925 on Windows.
2926
43771869
AB
29272019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2930 all uses as this was never set to anything but a zero value.
2931
26c957f1
PA
29322019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2933
2934 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2935
c07aae6e
CB
29362019-08-21 Christian Biesinger <cbiesinger@google.com>
2937
2938 * tui/tui-data.h (tui_gen_win_info): Add an =default
2939 move constructor, required by some GCC versions.
2940
3960cb7a
JF
29412019-08-21 Jinke Fan <fanjinke51@yeah.net>
2942
2943 * go32-nat.c (go32_sysinfo): Add hygon_p.
2944
04c72a68
TT
29452019-08-20 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2948 line_from_reg_element_no, first_reg_element_no_inline,
2949 display_all_data, delete_data_content_windows,
2950 erase_data_content>: Now private.
2951
072272ce
TT
29522019-08-20 Tom Tromey <tom@tromey.com>
2953
2954 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2955 (tui_unhighlight_win, tui_highlight_win)
2956 (tui_win_info::make_window): Update.
2957 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2958
973961bd
TT
29592019-08-20 Tom Tromey <tom@tromey.com>
2960
2961 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2962 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2963 (MAX_PID_WIDTH): Move to tui-stack.c.
2964 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2965 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2966 (MAX_PID_WIDTH): Move from tui-data.h.
2967
ab0e1f1a
TT
29682019-08-20 Tom Tromey <tom@tromey.com>
2969
2970 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2971 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2972 (box_win): Update.
2973 (tui_gen_win_info::make_window): Rename from tui_make_window.
2974 (tui_win_info::make_window): New method.
2975 (tui_gen_win_info::make_visible): Update.
2976 * tui/tui-source.c (tui_source_window::set_contents): Update.
2977 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2978 (tui_data_window::display_registers_from): Update.
2979 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2980 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2981 Declare.
2982 <can_box>: Remove.
2983 <title>: Remove.
2984 (struct tui_win_info) <make_window>: Declare.
2985 <can_box>: Now virtual.
2986 <title>: New member.
2987 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2988 * tui/tui-command.c (tui_cmd_window::resize): Update.
2989
100c2bf3
TT
29902019-08-20 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2993 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2994 (tui_data_window::check_register_values): Update.
2995
fa4dc567
TT
29962019-08-20 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-regs.h (struct tui_data_window): Use
2999 DISABLE_COPY_AND_ASSIGN.
3000 <regs_content>: Change type, removing unique_ptr.
3001 <tui_data_window>: Add move constructor.
3002 * tui/tui-regs.c (tui_data_window::show_registers)
3003 (tui_data_window::show_register_group)
3004 (tui_data_window::display_registers_from)
3005 (tui_data_window::display_registers_from)
3006 (tui_data_window::first_data_item_displayed)
3007 (tui_data_window::delete_data_content_windows)
3008 (tui_data_window::rerender, tui_data_window::refresh_window)
3009 (tui_data_window::check_register_values): Update.
3010
ca02d7c8
TT
30112019-08-20 Tom Tromey <tom@tromey.com>
3012
3013 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3014 show_register_group>: Declare.
3015 (tui_show_register_group): Don't declare.
3016 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3017 tui_show_registers.
3018 (tui_data_window::show_register_group): Rename from
3019 tui_show_register_group.
3020 (tui_data_window::check_register_values, tui_reg_command):
3021 Update.
3022 * tui/tui-layout.c (tui_set_layout): Update.
3023
63356bfd
TT
30242019-08-20 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3027 Declare.
3028 (tui_check_register_values): Don't declare.
3029 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3030 from tui_check_register_values.
3031 * tui/tui-hooks.c (tui_register_changed): Update.
3032
42cc14a7
TT
30332019-08-20 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-regs.c (tui_reg_layout): Move later.
3036 (tui_show_registers): Don't enable TUI mode or change layout.
3037
b9ad3686
TT
30382019-08-20 Tom Tromey <tom@tromey.com>
3039
3040 * tui/tui-regs.h (struct tui_data_item_window)
3041 <~tui_data_item_window>: Remove.
3042 <content>: Now a unique_xmalloc_ptr.
3043 * tui/tui-regs.c (tui_register_format): Return a
3044 unique_xmalloc_ptr.
3045 (tui_get_register): Update.
3046 (~tui_data_item_window): Remove.
3047 (tui_data_window::display_registers_from, tui_display_register):
3048 Update.
3049 * tui/tui-io.h (tui_expand_tabs): Update.
3050 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3051 Remove "col" parameter.
3052
8e114aab
TT
30532019-08-20 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3056 field.
3057 * tui/tui-regs.c (~tui_data_item_window): Update.
3058
1a4f81dd
TT
30592019-08-20 Tom Tromey <tom@tromey.com>
3060
3061 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3062 earlier.
3063
0f8d8876
TT
30642019-08-20 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3067
605dc2c2
TT
30682019-08-20 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-source.h (struct tui_source_window): Update.
3071 * tui/tui-regs.c (tui_show_registers): Update.
3072 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3073 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3074 (NO_REGS_STRING): Remove defines.
3075
aedbe3bb
CM
30762019-08-20 Conrad Meyer <cem@FreeBSD.org>
3077
3078 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3079 unnecessary thread walk if remote doesn't support the packet.
3080
7ce8f214
TT
30812019-08-19 Tom Tromey <tromey@adacore.com>
3082
3083 * python/py-value.c (value_has_field): Fix indentation.
3084
f21c2bd7
TT
30852019-08-19 Tom Tromey <tromey@adacore.com>
3086
3087 * printcmd.c (do_one_display, info_display_command): Update.
3088 * block.h (contained_in): Return bool. Add allow_nested
3089 parameter.
3090 * block.c (contained_in): Return bool. Add allow_nested
3091 parameter.
3092
d806ea2d
TT
30932019-08-19 Tom Tromey <tom@tromey.com>
3094
3095 * configure: Rebuild.
3096 * configure.ac: Disallow the combination of -static-libstdc++ and
3097 source highlight.
3098 * source-cache.c (get_language_name): Handle rust.
3099 (source_cache::get_source_lines): Ignore highlighting exceptions.
3100
398fdd60
TT
31012019-08-16 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3104 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3105 (struct tui_source_window_base) <make_visible, refresh_window,
3106 resize>: Remove methods.
3107 <execution_info>: Remove field.
3108 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3109 (tui_show_source_line, tui_source_window_base)
3110 (~tui_source_window_base): Update.
3111 (tui_source_window_base::resize)
3112 (tui_source_window_base::make_visible)
3113 (tui_source_window_base::refresh_window): Remove.
3114 (tui_source_window_base::update_exec_info): Update.
3115 * tui/tui-source.c (tui_source_window::set_contents): Update.
3116 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3117
e699d331
TT
31182019-08-16 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3121 deprecated_query_hook.
3122
bb01dbfc
TT
31232019-08-16 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3126 (tui_update_source_windows_with_line): Update.
3127 * tui/tui-source.h (struct tui_source_window)
3128 <show_symtab_source>: Declare.
3129 (tui_show_symtab_source): Don't declare.
3130 * tui/tui-source.c (tui_show_symtab_source): Rename from
3131 tui_show_symtab_source.
3132
81c82c4b
TT
31332019-08-16 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-winsource.h (struct tui_source_window_base)
3136 <set_contents>: Declare.
3137 * tui/tui-winsource.c
3138 (tui_source_window_base::update_source_window_as_is): Update.
3139 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3140 Declare.
3141 (tui_set_source_content): Don't declare.
3142 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3143 tui_set_source_content.
3144 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3145 Declare.
3146 (tui_set_disassem_content): Don't declare.
3147 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3148 tui_set_disassem_content.
3149
2ddaf614
TT
31502019-08-16 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-winsource.h (struct tui_source_window_base)
3153 <update_breakpoint_info>: Declare.
3154 (tui_update_breakpoint_info): Don't declare.
3155 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3156 (tui_update_all_breakpoint_info): Update.
3157 (tui_source_window_base::update_breakpoint_info): Rename from
3158 tui_update_breakpoint_info.
3159 (tui_source_window_base::update_exec_info): Update.
3160
017f9828
TT
31612019-08-16 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-winsource.h (struct tui_source_window_base)
3164 <update_source_window>: Declare.
3165 (tui_update_source_window): Don't declare.
3166 * tui/tui-winsource.c
3167 (tui_source_window_base::update_source_window): Rename from
3168 tui_update_source_window.
3169 (tui_source_window_base::rerender): Update.
3170 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3171 * tui/tui-disasm.c (tui_show_disassem)
3172 (tui_show_disassem_and_update_source)
3173 (tui_disasm_window::maybe_update): Update.
3174
ed8358e9
TT
31752019-08-16 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <update_source_window_as_is>: Declare.
3179 (tui_update_source_window_as_is): Don't declare.
3180 * tui/tui-winsource.c (tui_update_source_window): Update
3181 (tui_source_window_base::update_source_window_as_is): Rename from
3182 tui_update_source_window_as_is.
3183 (tui_source_window_base::refill): Update.
3184 * tui/tui-source.c (tui_show_symtab_source): Update.
3185 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3186 Update.
3187
20149b6b
TT
31882019-08-16 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-winsource.h (tui_update_source_window)
3191 (tui_update_source_window_as_is): Remove "noerror" parameter.
3192 * tui/tui-winsource.c (tui_update_source_window)
3193 (tui_update_source_window_as_is): Remove "noerror" parameter.
3194 (tui_update_source_windows_with_addr)
3195 (tui_update_source_windows_with_line)
3196 (tui_source_window_base::rerender)
3197 (tui_source_window_base::refill): Update.
3198 * tui/tui-source.h (tui_set_source_content)
3199 (tui_show_symtab_source): Remove "noerror" parameter.
3200 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3201 parameter.
3202 (tui_show_symtab_source): Likewise.
3203 (tui_source_window::maybe_update): Update.
3204 * tui/tui-disasm.c (tui_show_disassem)
3205 (tui_show_disassem_and_update_source)
3206 (tui_disasm_window::do_scroll_vertical)
3207 (tui_disasm_window::maybe_update): Update.
3208
2d83e710
TT
32092019-08-16 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui.c (tui_is_window_visible): Update.
3212 * tui/tui-wingeneral.c (tui_make_window)
3213 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3214 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3215 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3216 (tui_set_win_height_command, parse_scrolling_args): Update.
3217 * tui/tui-source.c (tui_source_window::style_changed): Update.
3218 * tui/tui-regs.c (tui_show_registers)
3219 (tui_data_window::first_data_item_displayed)
3220 (tui_data_window::delete_data_content_windows)
3221 (tui_check_register_values, tui_reg_command): Update.
3222 * tui/tui-disasm.c (tui_show_disassem): Update.
3223 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3224 method.
3225 <is_visible>: Remove field.
3226 * tui/tui-data.c (tui_next_win, tui_prev_win)
3227 (tui_delete_invisible_windows): Update.
3228
d4ab829a
TT
32292019-08-16 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-winsource.h (struct tui_source_window_base)
3232 <m_has_locator>: Remove.
3233 * tui/tui-layout.c (show_source_disasm_command, show_data)
3234 (show_source_or_disasm_and_command): Update.
3235
aa7ca1bb
AH
32362019-08-16 Alan Hayward <alan.hayward@arm.com>
3237
3238 * NEWS (Other MI changes): New subsection.
3239 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3240 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3241 * arch-utils.c (default_get_pc_address_flags): New function.
3242 * arch-utils.h (default_get_pc_address_flags): New declaration.
3243 * gdbarch.sh: Add get_pc_address_flags.
3244 * gdbarch.c: Regenerate.
3245 * gdbarch.h: Likewise.
3246 * stack.c (print_pc): New function.
3247 (print_frame_info) (print_frame): Call print_pc.
3248
6eac171f
TV
32492019-08-16 Tom de Vries <tdevries@suse.de>
3250
3251 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3252 print_objfile_section_info.
3253
3df505f6
TT
32542019-08-15 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3257 calling update_cmdwin_start_line.
3258 * tui/tui-winsource.h (struct tui_source_window_base)
3259 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3260 <rerender>: Declare.
3261 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3262 Call rerender.
3263 (tui_source_window_base::set_new_height): Remove.
3264 (tui_source_window_base::rerender): Rename from
3265 do_make_visible_with_new_height.
3266 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3267 resize method.
3268 (tui_win_info::make_invisible_and_set_new_height)
3269 (tui_win_info::make_visible_with_new_height): Remove.
3270 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3271 Declare.
3272 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3273 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3274 do_make_visible_with_new_height>: Don't declare.
3275 <rerender>: Declare.
3276 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3277 set_new_height.
3278 (tui_data_window::do_make_visible_with_new_height): Remove.
3279 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3280 call tui_show_locator_content.
3281 (tui_gen_win_info::resize): Call rerender.
3282 (show_source_or_disasm_and_command): Don't call
3283 tui_show_locator_content.
3284 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3285 method.
3286 (struct tui_win_info) <rerender>: Declare.
3287 <set_new_height, make_invisible_and_set_new_height,
3288 make_visible_with_new_height>: Don't declare.
3289 * tui/tui-data.c (tui_win_list::rerender): New method.
3290 * tui/tui-command.h (struct tui_cmd_window)
3291 <do_make_visible_with_new_height>: Don't declare.
3292 * tui/tui-command.c
3293 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3294
272560b5
TT
32952019-08-15 Tom Tromey <tromey@adacore.com>
3296
3297 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3298 * ada-lang.c (ada_enum_name): Likewise.
3299
08235187
CB
33002019-08-15 Christian Biesinger <cbiesinger@google.com>
3301
3302 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3303 leading underscore.
3304 (GdbOutputErrorFile): Likewise.
3305 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3306 accordingly.
3307 (execute_unwinders): Rename to have a leading underscore.
3308 (auto_load_packages): Likewise.
3309 (global scope): Adjust call to auto_load_packages accordingly.
3310 (GdbSetPythonDirectory): Likewise.
3311 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3312 instead of execute_unwinders.
3313
db502012
TT
33142019-08-15 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3317 (show_data): Don't change window visibility.
3318 (tui_gen_win_info::resize): Remove special case for command
3319 window. Use wresize, when available.
3320 (show_source_or_disasm_and_command): Don't change window
3321 visibility.
3322 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3323 <make_visible>: New method.
3324 * tui/tui-command.c (tui_cmd_window::resize): New method.
3325
3891b65e
TT
33262019-08-15 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3329 (struct tui_source_windows): New.
3330 * tui/tui-winsource.c (tui_display_main): Update.
3331 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3332 (new_height_ok, parse_scrolling_args): Update.
3333 * tui/tui-layout.c (show_layout, show_data): Update.
3334 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3335 (tui_add_to_source_windows): Don't declare.
3336 * tui/tui-data.c (source_windows, tui_source_windows)
3337 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3338
ee556432
TT
33392019-08-15 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3342 Rename from reset.
3343 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3344 * tui/tui-layout.c (show_source_disasm_command, show_data):
3345 Update.
3346 (tui_gen_win_info::resize): Rename.
3347 (show_source_or_disasm_and_command): Update.
3348 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3349 reset.
3350
46f438e3
TT
33512019-08-15 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3354 * tui/tui-interp.c (tui_interp::init): Don't call
3355 tui_initialize_static_data.
3356 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3357
f4ce562c
TT
33582019-08-15 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3361 examine tui_win_list.
3362
c398c3d0
TT
33632019-08-15 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3366 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3367 tui_clear_source_content.
3368 (tui_clear_source_content): Remove.
3369 (tui_source_window_base::do_erase_source_content): Hoist call to
3370 content.clear().
3371 * tui/tui-stack.c (tui_show_frame_info): Don't call
3372 tui_clear_source_content.
3373
e25d2004
TT
33742019-08-15 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-winsource.h (struct tui_source_window_base)
3377 <do_erase_source_content>: New method.
3378 <erase_source_content>: New method.
3379 (tui_erase_source_content): Don't declare.
3380 * tui/tui-winsource.c (tui_clear_source_content): Update.
3381 (tui_source_window_base::do_erase_source_content): Rename from
3382 tui_erase_source_content.
3383 (tui_source_window_base::show_source_content): Update.
3384 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3385 * tui/tui-source.h (struct tui_source_window)
3386 <erase_source_content>: New method.
3387 * tui/tui-disasm.h (struct tui_disasm_window)
3388 <erase_source_content>: New method.
3389
002f15c2
TT
33902019-08-15 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3393 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3394 constructor.
3395 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3396 * tui/tui-source.c (tui_set_source_content): Update.
3397 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3398
c9033fe8
TT
33992019-08-15 Tom Tromey <tom@tromey.com>
3400
3401 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3402 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3403 tui-source.c.
3404 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3405 Declare.
3406 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3407 method.
3408 (tui_source_window::maybe_update): Update.
3409
088f37dd
TT
34102019-08-15 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3413 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3414 tui-disasm.c.
3415 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3416 Declare.
3417 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3418 method.
3419 (tui_disasm_window::maybe_update): Update.
3420
a54700c6
TT
34212019-08-15 Tom Tromey <tom@tromey.com>
3422
3423 * tui/tui-winsource.h (struct tui_source_window_base)
3424 <maybe_update>: Declare.
3425 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3426 method.
3427 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3428 Declare.
3429 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3430 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3431 Declare.
3432 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3433
e2a678a5
TT
34342019-08-15 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3437
f2dda477
TT
34382019-08-15 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-wingeneral.c: Include tui-stack.h.
3441 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3442 (struct tui_locator_window): Move from tui-data.h.
3443 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3444 (tui_initialize_static_data): Move from tui-data.c.
3445 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3446 (struct tui_locator_window): Move to tui-stack.c.
3447 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3448 (tui_initialize_static_data): Move to tui-stack.c.
3449
ed4a1084
TT
34502019-08-15 Tom Tromey <tom@tromey.com>
3451
3452 * tui/tui-layout.c (show_source_disasm_command)
3453 (show_source_or_disasm_and_command): Use make_visible method, not
3454 tui_make_window.
3455 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3456 Remove.
3457
65962b20
TT
34582019-08-15 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-wingeneral.h (tui_make_window): Update.
3461 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3462 parameter.
3463 (tui_gen_win_info::make_visible): Update.
3464 * tui/tui-regs.c (tui_data_window::display_registers_from):
3465 Update.
3466 * tui/tui-layout.c (show_source_disasm_command)
3467 (show_source_or_disasm_and_command): Update.
3468 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3469 (enum tui_box): Remove.
3470 (struct tui_win_info) <can_box>: New method.
3471 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3472 method.
3473
2208ee91
TV
34742019-08-15 Tom de Vries <tdevries@suse.de>
3475
3476 * linux-nat-trad.c: Include gdbarch.h.
3477
75faf5c4
AH
34782019-08-14 Alan Hayward <alan.hayward@arm.com>
3479
3480 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3481 register sizes.
3482
b1c896b3
TT
34832019-08-14 Tom Tromey <tromey@adacore.com>
3484
3485 * darwin-nat.c: Include gdbarch.h.
3486 * darwin-nat-info.c: Include gdbarch.h.
3487
6405cd73
TT
34882019-08-13 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3491 Remove.
3492 * tui/tui-data.c (tui_initialize_static_data): Update.
3493
5216580d
TT
34942019-08-13 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-winsource.h (struct tui_exec_info_window)
3497 <~tui_exec_info_window, maybe_allocate_content, get_content,
3498 m_content>: Remove.
3499 (struct tui_source_window_base) <set_exec_info_content,
3500 show_exec_info_content>: Don't declare.
3501 * tui/tui-winsource.c
3502 (tui_exec_info_window::maybe_allocate_content): Remove.
3503 (tui_source_window_base::update_exec_info): Rename from
3504 set_exec_info_content.
3505 (tui_source_window_base::show_exec_info_content)
3506 (tui_source_window_base::update_exec_info): Remove.
3507
93858ad3
TT
35082019-08-13 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3511 declare.
3512 * tui/tui-winsource.c (tui_update_source_window_as_is)
3513 (tui_update_source_windows_with_addr, tui_erase_source_content):
3514 Update.
3515 (tui_clear_exec_info_content): Remove.
3516
e321e7ce
TT
35172019-08-13 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3520 declare.
3521 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3522 call tui_erase_exec_info_content.
3523 (tui_clear_exec_info_content): Rename from
3524 tui_erase_exec_info_content.
3525 (tui_clear_exec_info_content): Delete.
3526
8270ac62
TT
35272019-08-13 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.h (struct tui_source_window_base)
3530 <show_exec_info_content>: Declare.
3531 (tui_show_exec_info_content): Don't declare.
3532 * tui/tui-winsource.c
3533 (tui_source_window_base::show_exec_info_content): Rename from
3534 tui_show_exec_info_content.
3535 (tui_source_window_base::update_exec_info): Update.
3536
7b56485d
TT
35372019-08-13 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3540 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3541 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3542 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3543 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3544 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3545 ... here.
3546
7ba913dc
TT
35472019-08-13 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-winsource.h (struct tui_source_window_base)
3550 <update_exec_info>: Declare.
3551 (tui_update_exec_info): Don't declare.
3552 * tui/tui-winsource.c (tui_update_source_window_as_is)
3553 (tui_source_window_base::refresh_all)
3554 (tui_update_all_breakpoint_info): Update.
3555 (tui_source_window_base::update_exec_info): Rename from
3556 tui_update_exec_info.
3557 * tui/tui-stack.c (tui_show_frame_info): Update.
3558
37a4a131
TT
35592019-08-13 Tom Tromey <tom@tromey.com>
3560
3561 * tui/tui-winsource.h (struct tui_source_window_base)
3562 <set_exec_info_content>: Declare.
3563 (tui_set_exec_info_content): Don't declare.
3564 * tui/tui-winsource.c
3565 (tui_source_window_base::set_exec_info_content): Rename from
3566 tui_set_exec_info_content.
3567 (tui_update_exec_info): Update.
3568
0bd27e07
TT
35692019-08-13 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-winsource.h (struct tui_source_window_base)
3572 <show_source_content>: Declare.
3573 (tui_show_source_content): Don't declare.
3574 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3575 (tui_source_window_base::show_source_content): Rename from
3576 tui_show_source_content.
3577 (tui_source_window_base::refresh_all): Update.
3578 * tui/tui-layout.c (show_source_disasm_command)
3579 (show_source_or_disasm_and_command): Update.
3580
b4ef5aeb
TT
35812019-08-13 Tom Tromey <tom@tromey.com>
3582
3583 * tui/tui-winsource.c (tui_erase_source_content)
3584 (tui_show_source_content, tui_source_window_base::refresh_all):
3585 Update.
3586 * tui/tui-wingeneral.h
3587 (tui_check_and_display_highlight_if_needed): Don't declare.
3588 * tui/tui-wingeneral.c
3589 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3590 check_and_display_highlight_if_needed.
3591 * tui/tui-win.c (tui_rehighlight_all)
3592 (tui_win_info::make_visible_with_new_height): Update.
3593 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3594 (tui_data_window::erase_data_content)
3595 (tui_data_window::display_all_data): Update.
3596 * tui/tui-data.h (struct tui_win_info)
3597 <check_and_display_highlight_if_needed>: Declare.
3598
fede5273
TT
35992019-08-13 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-win.c (tui_resize_all): Call
3602 tui_delete_invisible_windows.
3603 * tui/tui-layout.c (show_layout): Call
3604 tui_delete_invisible_windows.
3605 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3606 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3607
22c3f490
TT
36082019-08-13 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3611 tui_add_win_to_layout.
3612
16cb7910
TT
36132019-08-13 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3616 * tui/tui-layout.c (tui_default_win_height): Now static.
3617
cc0c3ffb
TT
36182019-08-13 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3621 single switch.
3622 (show_source_disasm_command, show_source_or_disasm_and_command):
3623 Don't check current layout.
3624
3f3ffe54
TT
36252019-08-13 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-wingeneral.c (make_all_visible): Remove.
3628 (tui_make_all_invisible): Simplify.
3629 * tui/tui-layout.c (tui_make_all_invisible): Move from
3630 tui-wingeneral.c; simplify.
3631 (show_layout): Hoist call to tui_make_all_invisible.
3632 (show_data): Don't call tui_make_all_invisible.
3633
69258091
TT
36342019-08-13 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3637 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3638
62cf57fe
TT
36392019-08-13 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3642 tui-data.c.
3643 (show_source_disasm_command, show_data)
3644 (show_source_or_disasm_and_command): Don't use
3645 tui_set_current_layout_to.
3646 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3647 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3648 tui-layout.c.
3649 (tui_set_current_layout_to): Remove.
3650
2afade5d
TT
36512019-08-13 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-layout.c (tui_set_layout): Update.
3654 * tui/tui-data.h (struct tui_layout_def): Remove.
3655 (tui_layout_def): Don't declare.
3656 * tui/tui-data.c (layout_def): Remove.
3657 (tui_layout_def): Remove.
3658
a3504e96
TT
36592019-08-13 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-winsource.h (struct tui_source_window_base)
3662 <clear_detail>: No longer "override".
3663 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3664 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3665 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3666 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3667 Remove.
3668 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3669
29c92911
TT
36702019-08-13 Tom Tromey <tromey@adacore.com>
3671
3672 * tracepoint.c: Don't include readline.h or history.h.
3673
86c6b807
TT
36742019-08-12 Tom Tromey <tom@tromey.com>
3675
3676 * configure: Rebuild.
3677 * configure.ac: Check for readline 7.
3678 * NEWS: Mention readline 7 requirement.
3679 * README: Update.
3680
5db2718c
TT
36812019-08-12 Tom Tromey <tom@tromey.com>
3682
3683 * mingw-hdep.c (gdb_select): Remove readline hack.
3684
dac36daf
PFC
36852019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3686
3687 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3688 when the function fails.
3689
1022c627
AA
36902019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3691
3692 * s390-tdep.c (s390_type_align): New function.
3693 (s390_gdbarch_init): Set it as type_align gdbarch method.
3694
eba4caf2
TV
36952019-08-09 Tom de Vries <tdevries@suse.de>
3696
3697 PR gdb/24591
3698 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3699 pc_low with relocation offset.
3700
123cd851
TT
37012019-08-07 Tom Tromey <tromey@adacore.com>
3702
3703 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3704 (print_frame_args): Update.
3705 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3706 Update.
3707 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3708 * frame.h (struct frame_arg): Add initializers.
3709 <error>: Now a unique_xmalloc_ptr.
3710
3d31bc39
AH
37112019-08-07 Alan Hayward <alan.hayward@arm.com>
3712
3713 * NEWS: Expand the Pointer Authentication entry.
3714 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3715 (aarch64_frame_unmask_lr): ... to this.
3716 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3717 Call aarch64_frame_unmask_lr.
3718 * frame.c (struct frame_info): Add "masked" variable.
3719 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3720 (fprint_frame): Check for masked pc.
3721 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3722 declarations.
3723 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3724 * stack.c (print_frame): Check for masked pc.
3725
0cf9feb9
TT
37262019-08-06 Tom Tromey <tom@tromey.com>
3727
3728 * stabsread.c (patch_block_stabs, read_one_struct_field)
3729 (read_enum_type): Use obstack_strndup.
3730 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3731 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3732 * dwarf2read.c (guess_full_die_structure_name)
3733 (anonymous_struct_prefix): Use obstack_strndup.
3734 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3735 * c-exp.y (yylex): Use obstack_strndup.
3736 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3737 (write_var_or_type): Use obstack_strndup.
3738
efba19b0
TT
37392019-08-06 Tom Tromey <tom@tromey.com>
3740
3741 * symfile.c (reread_symbols): Use obstack_strdup.
3742 * stabsread.c (read_type): Use obstack_strdup.
3743 * gdb_obstack.h (obstack_strdup): New overload.
3744 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3745 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3746 (dwarf2_canonicalize_name): Use obstack_strdup.
3747 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3748 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3749 Use obstack_strdup.
3750
f25102f7
TT
37512019-08-06 Tom Tromey <tom@tromey.com>
3752
3753 * gdb_obstack.h (obstack_strdup): Define.
3754 * gdb_obstack.c (obstack_strdup): Don't define.
3755
021887d8
TT
37562019-08-06 Tom Tromey <tom@tromey.com>
3757
3758 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3759 obstack_strdup.
3760 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3761 obstack_strdup.
3762 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3763 * stabsread.c (common_block_start): Use obstack_strdup.
3764 * objfiles.c (set_objfile_main_name, objfile): Use
3765 obstack_strdup.
3766 * namespace.c (add_using_directive): Use obstack_strdup.
3767 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3768 * jit.c (finalize_symtab): Use obstack_strdup.
3769 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3770 (guess_partial_die_structure_name, partial_die_info::fixup)
3771 (dwarf2_name): Use obstack_strdup.
3772 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3773 obstack_strdup.
3774 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3775 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3776 obstack_strdup.
3777 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3778
d2834edc
PW
37792019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3780
3781 * unittests/help-doc-selftests.c: New file.
3782 * Makefile.in: Add the new file.
3783
590042fc
PW
37842019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3785
3786 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3787 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3788 the full first line, except when FOR_VALUE_PREFIX. In this case,
3789 the trailing '.' is not output, and the first character is uppercased.
3790 (print_help_for_command): Update call to print_doc_line.
3791 (print_doc_of_command): Likewise.
3792 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3793 * cli/cli-option.c (append_indented_doc): Do not append newline.
3794 (build_help_option): Append newline after first appended_indented_doc
3795 only if a second call is done.
3796 (build_help): Append 2 new lines before each option, except the first
3797 one.
3798 * compile/compile.c (_initialize_compile): Add new lines after
3799 %OPTIONS%, when not at the end of the help.
3800 Change help doc or code
3801 producing the help doc to respect the invariants.
3802 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3803 Also removed the new line after 'Options:', as all other commands
3804 do not put an empty line between 'Options:' and the first option.
3805 * printcmd.c (_initialize_printcmd): Likewise.
3806 * stack.c (_initialize_stack): Likewise.
3807 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3808 incorrectly telling COMMAND is optional.
3809 * ada-lang.c (_initialize_ada_language): Change help doc or code
3810 producing the help doc to respect the invariants.
3811 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3812 * breakpoint.c (_initialize_breakpoint): Likewise.
3813 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3814 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3815 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3816 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3817 _initialize_cli_style): Likewise.
3818 * corelow.c (core_target_info): Likewise.
3819 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3820 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3821 * filesystem.c (_initialize_filesystem): Likewise.
3822 * frame.c (_initialize_frame): Likewise.
3823 * gnu-nat.c (add_task_commands): Likewise.
3824 * infcall.c (_initialize_infcall): Likewise.
3825 * infcmd.c (_initialize_infcmd): Likewise.
3826 * interps.c (_initialize_interpreter): Likewise.
3827 * language.c (_initialize_language): Likewise.
3828 * linux-fork.c (_initialize_linux_fork): Likewise.
3829 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3830 * maint.c (_initialize_maint_cmds): Likewise.
3831 * memattr.c (_initialize_mem): Likewise.
3832 * printcmd.c (_initialize_printcmd): Likewise.
3833 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3834 _RegEx): Likewise.
3835 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3836 * record-btrace.c (_initialize_record_btrace): Likewise.
3837 * record-full.c (_initialize_record_full): Likewise.
3838 * record.c (_initialize_record): Likewise.
3839 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3840 * regcache.c (_initialize_regcache): Likewise.
3841 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3842 _initialize_remote): Likewise.
3843 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3844 * serial.c (_initialize_serial): Likewise.
3845 * skip.c (_initialize_step_skip): Likewise.
3846 * source.c (_initialize_source): Likewise.
3847 * stack.c (_initialize_stack): Likewise.
3848 * symfile.c (_initialize_symfile): Likewise.
3849 * symtab.c (_initialize_symtab): Likewise.
3850 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3851 * top.c (init_main): Likewise.
3852 * tracefile-tfile.c (tfile_target_info): Likewise.
3853 * tracepoint.c (_initialize_tracepoint): Likewise.
3854 * tui/tui-win.c (_initialize_tui_win): Likewise.
3855 * utils.c (add_internal_problem_command): Likewise.
3856 * valprint.c (value_print_option_defs): Likewise.
3857
404f2902
FCE
38582019-08-06 Frank Ch. Eigler <fche@redhat.com>
3859
3860 PR build/24886
3861 * configure.ac: Drop enable-libmcheck support.
3862 * configure, config.in: Rebuild.
3863 * libmcheck.m4: Remove.
3864 * acinclude.m4: Don't include it.
3865 * Makefile.in: Don't distribute it.
3866 * top.c (print_gdb_configuration): Don't mention it.
3867
046bebe1
TT
38682019-08-06 Tom Tromey <tom@tromey.com>
3869
3870 * utils.c (set_output_style): Sometimes pass stream to
3871 emit_style_escape.
3872 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3873 * record-btrace.c (btrace_insn_history): Update.
3874 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3875 method.
3876 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3877 Update initializers.
3878 <m_uiout>: New field.
3879 <m_di>: Move lower.
3880 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3881 Remove "uiout" parameter.
3882 (dump_insns): Update.
3883 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3884 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3885
ddbcedf5
CB
38862019-08-06 Christian Biesinger <cbiesinger@google.com>
3887
3888 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3889 (error_in_psymtab_expansion): Likewise.
3890 (lookup_symbol_via_quick_fns): Likewise.
3891 (basic_lookup_transparent_type_quick): Likewise.
3892 (basic_lookup_transparent_type_1): Likewise.
3893
b08b16c8
TT
38942019-08-06 Tom Tromey <tromey@adacore.com>
3895
3896 * source.c (last_source_error): Now bool.
3897 (print_source_lines_base): Make "noprint" bool. Only open
3898 source file when last_source_visited changes.
3899
cb44333d
TT
39002019-08-06 Tom Tromey <tromey@adacore.com>
3901
3902 * annotate.c (annotate_source_line): Use g_source_cache.
3903 * source-cache.c (source_cache::get_plain_source_lines): Change
3904 parameters. Populate m_offset_cache.
3905 (source_cache::ensure): New method.
3906 (source_cache::get_line_charpos): New method.
3907 (extract_lines): Move lower. Change parameters.
3908 (source_cache::get_source_lines): Move lower.
3909 * source-cache.h (class source_cache): Update comment.
3910 <get_line_charpos>: New method.
3911 <get_source_lines>: Update comment.
3912 <clear>: Clear m_offset_cache.
3913 <get_plain_source_lines>: Change parameters.
3914 <ensure>: New method
3915 <m_offset_cache>: New member.
3916 * source.c (forget_cached_source_info_for_objfile): Update.
3917 (info_source_command): Use g_source_cache.
3918 (find_source_lines, open_source_file_with_line_charpos): Remove.
3919 (print_source_lines_base, search_command_helper): Use g_source_cache.
3920 * source.h (open_source_file_with_line_charpos): Don't declare.
3921 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3922 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3923 Use g_source_cache.
3924
872dceaa
TT
39252019-08-06 Tom Tromey <tromey@adacore.com>
3926
3927 * source-cache.c (source_cache::get_plain_source_lines):
3928 Remove "first_line" and "last_line" parameters.
3929 (source_cache::get_source_lines): Cache plain text.
3930 * source-cache.h (class source_cache)
3931 <get_plain_source_lines>: Update.
3932
269249d9
TT
39332019-08-06 Tom Tromey <tromey@adacore.com>
3934
3935 * source-cache.c (extract_lines): No longer a method.
3936 Changed type of parameter. Include final newline.
3937 (selftests::extract_lines_test): New function.
3938 (_initialize_source_cache): Likewise.
3939 * source-cache.h (class source_cache)
3940 <extract_lines>: Don't declare.
3941
c0e8dcd8
TT
39422019-08-06 Tom Tromey <tromey@adacore.com>
3943
3944 * breakpoint.c (init_breakpoint_sal): Update.
3945 (breakpoint): Update.
3946 * breakpoint.h (struct breakpoint) <filter>: Now a
3947 unique_xmalloc_ptr.
3948
0b27c27d
CB
39492019-08-05 Christian Biesinger <cbiesinger@google.com>
3950
3951 * NEWS: Mention dictionary access on blocks.
3952 * python/py-block.c (blpy_getitem): New function.
3953 (block_object_as_mapping): New struct.
3954 (block_object_type): Use new struct for tp_as_mapping field.
3955
4ee94178
CB
39562019-08-05 Christian Biesinger <cbiesinger@google.com>
3957
3958 * objfiles.h (objfile): Add a comment describing partial symbols.
3959
8abfcabc
TT
39602019-08-05 Tom Tromey <tromey@adacore.com>
3961
3962 * compile/compile.c (_initialize_compile): Use _(), not N_().
3963 * thread.c (_initialize_thread): Use _(), not N_().
3964 * stack.c (_initialize_stack): Use _(), not N_().
3965 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3966
2b79f376
SM
39672019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * dwarf2read.c (struct dw2_symtab_iterator):
3970 <want_specific_block>: Remove.
3971 <block_index>: Change type to gdb::optional.
3972 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3973 change type of BLOCK_INDEX parameter to gdb::optional.
3974 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3975 (dw2_lookup_symbol): Don't pass argument for
3976 WANT_SPECIFIC_BLOCK.
3977 (dw2_expand_symtabs_for_function): Don't pass argument for
3978 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3979 (class dw2_debug_names_iterator)
3980 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3981 parameter, change BLOCK_INDEX type to gdb::optional.
3982 <m_want_specific_block>: Remove.
3983 <m_block_index>: Change type to gdb::optional.
3984 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3985 gdb::optional. Re-write in function of gdb::optional.
3986 (dw2_debug_names_lookup_symbol): Don't pass argument for
3987 WANT_SPECIFIC_BLOCK.
3988 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3989 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3990 BLOCK_INDEX.
3991
ae60f04e
PW
39922019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3993
3994 * NEWS: Mention changes to "info sources" command.
3995
28cd9371
PW
39962019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3997
3998 * symtab.c (filename_partial_match_opts): New struct type.
3999 (struct output_source_filename_data): New members
4000 regexp, c_regexp, partial_match.
4001 (output_source_filename): Use new members to decide to print file.
4002 (info_sources_option_defs): New variable.
4003 (make_info_sources_options_def_group, print_info_sources_header,
4004 info_sources_command_completer):
4005 New functions.
4006 (info_sources_command): Read new optional arguments.
4007 (_initialize_symtab): Update info sources help.
4008
ca683e3a
AO
40092019-08-02 Alexandre Oliva <oliva@adacore.com>
4010
4011 * ada-lang.c (exception_support_info_v0): Renamed from...
4012 (default_exception_support_info): ... this. Create new
4013 definition for v1.
4014 (ada_has_this_exception_support): Look up catch_handlers_sym.
4015 (ada_exception_support_info_sniffer): Try v0 after default.
4016
f1264162
TT
40172019-08-01 Tom Tromey <tromey@adacore.com>
4018
4019 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4020 gdbarch.h.
4021
0a7b2485
CB
40222019-08-01 Christian Biesinger <cbiesinger@google.com>
4023
4024 * s12z-tdep.c: Fix include path for s12z-opc.h.
4025
c6bdbeb7
AH
40262019-08-01 Alan Hayward <alan.hayward@arm.com>
4027
4028 * NEWS: Require GNU make 3.82.
4029
a2bd7b82
TT
40302019-07-16 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4033 declare.
4034
aa3b6533
TT
40352019-07-30 Tom Tromey <tromey@adacore.com>
4036
4037 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4038
a1530dc7
KB
40392019-07-30 Kevin Buettner <kevinb@redhat.com>
4040
4041 * printcmd.c (print_address_symbolic): Print negative offsets.
4042 (build_address_symbolic): Force signed arithmetic when computing
4043 offset.
4044
2906593f
CB
40452019-07-30 Christian Biesinger <cbiesinger@google.com>
4046
4047 PR/24474: Add a function to lookup static variables.
4048 * NEWS: Mention this new function.
4049 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4050 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4051 * python/python.c (python_GdbMethods): Add new function.
4052
c620ed88
CB
40532019-07-29 Christian Biesinger <cbiesinger@google.com>
4054
4055 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4056 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4057 (objfpy_lookup_static_symbol): New function.
4058 (objfile_object_methods): Add new functions.
4059
bc4268a5
PW
40602019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4061
4062 * NEWS: Mention 'set|show print frame-info'. Mention new
4063 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4064 backtrace argument. Mention that python frame filtering code
4065 is now consistent with what 'backtrace' command prints.
4066
4b5e8d19
PW
40672019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4068
4069 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4070 comments.
4071 (print_frame_info_auto, print_frame_info_source_line,
4072 print_frame_info_location, print_frame_info_source_and_location,
4073 print_frame_info_location_and_address, print_frame_info_short_location):
4074 New declarations.
4075 (struct frame_print_options): New member print_frame_info.
4076 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4077 * stack.h (get_user_print_what_frame_info): New declaration.
4078 (frame_show_address): New declaration.
4079 * stack.c (print_frame_arguments_choices): New value 'presence'.
4080 (print_frame_info_auto, print_frame_info_source_line,
4081 print_frame_info_location, print_frame_info_source_and_location,
4082 print_frame_info_location_and_address, print_frame_info_short_location,
4083 print_frame_info_choices, print_frame_info_print_what): New definitions.
4084 (print_frame_args): Only print dots for args if print frame-arguments
4085 is 'presence'.
4086 (frame_print_option_defs): New element for "frame-info".
4087 (get_user_print_what_frame_info): New function.
4088 (frame_show_address): Make non static. Move comment to stack.h.
4089 (print_frame_info_to_print_what): New function.
4090 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4091 to decide what to print.
4092 (backtrace_command_1): Handle the new print_frame_arguments_presence
4093 value.
4094 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4095 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4096 (py_print_frame): In non-mi mode, use LOCATION as default for
4097 print_what, similarly to frame information printed directly by
4098 backtrace command. Handle frame-info user option in non MI mode.
4099
6bdfee81
KB
41002019-07-27 Kevin Buettner <kevinb@redhat.com>
4101
4102 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4103 Add case for debugging 32-bit target on 64-bit host. Revise
4104 comment.
4105
98a617f8
KB
41062019-07-27 Kevin Buettner <kevinb@redhat.com>
4107
4108 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4109 instead of find_function_entry_range_from_pc.
4110
567238c9
KB
41112019-07-27 Kevin Buettner <kevinb@redhat.com>
4112
4113 * stack.c (find_frame_funname): Remove code which preferred
4114 minsym over symtab sym in "certain pathological cases".
4115
2dc80cf8
KB
4116 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4117 parameter. Change type of "do_demangle" to bool.
4118 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4119 Pass suitable "prefer_sym_over_minsym" flag to
4120 build_address_symbolic(). Don't output "+" for negative offsets.
4121 * printcmd.c (print_address_symbolic): Update invocation of
4122 build_address_symbolic to include a "prefer_sym_over_minsym"
4123 flag.
4124 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4125 Restrict cases in which use of minimal symbol is preferred to that
4126 of a found symbol. Update comments.
4127
1aff7173
KB
4128 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4129 for entry pc when entry pc is out of range for that FDE.
4130
89b085ac
BC
41312019-07-26 Brian Callahan <bcallah@openbsd.org>
4132
4133 PR gdb/24839:
4134 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4135 type.
4136
f32feb4a
CB
41372019-07-25 Christian Biesinger <cbiesinger@google.com>
4138
4139 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4140 this function's Python signature.
4141
4142
41432019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4144
4145 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4146 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4147 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4148 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4149 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4150
4151
c54e4253
YS
41522019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4153
4154 * h8300-tdep.c (h8300_register_name_common): New.
4155 h8300_register_name): Use h8300_register_name_common.
4156 (h8300s_register_name): Likewise.
4157 (h8300sx_register_name): Likewise.
4158 (h8300h_register_nam): New.
4159 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4160
4161
40eadf04
SP
41622019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4163
4164 * arm-tdep.c (arm_skip_cmse_entry): New function.
4165 (arm_is_sgstubs_section): New function.
4166 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4167
bfa2a36d
TT
41682019-07-22 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4171 Don't self-assign.
4172
a8e9d247
AB
41732019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4176 type_print.
4177
eb86c5e2
AB
41782019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4181 so that GDB doesn't match any msymbols when searching in the
4182 TYPES_DOMAIN.
4183 (print_symbol_info): Print using typedef_print or type_print based
4184 on the type of the symbol. Add updated FIXME comment moved from...
4185 (_initialize_symtab): ... move and update FIXME comment to above.
4186
a8eab7c6
AB
41872019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * NEWS: Mention adding -q option to "info types".
4190 * symtab.c (struct info_types_options): New struct.
4191 (info_types_options_defs): New variable.
4192 (make_info_types_options_def_group): New function.
4193 (info_types_command): Use gdb::option framework to parse options.
4194 (info_types_command_completer): New function.
4195 (_initialize_symtab): Extend the help text on "info types" and
4196 register command completer.
4197
b4603c34
CB
41982019-07-21 Christian Biesinger <cbiesinger@google.com>
4199
4200 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4201 (lookup_symbol_in_objfile): Change int to block_enum and add a
4202 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4203
c8cdc1e0
CB
42042019-07-20 Christian Biesinger <cbiesinger@google.com>
4205
4206 * MAINTAINERS (Write After Approval): Add self.
4207
01e175fe
AB
42082019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4211 instruction to the dummy code region.
4212
56f79b63
TT
42132019-07-19 Tom Tromey <tromey@adacore.com>
4214
4215 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4216 (ARGSUSED, PARAMS, __func__): Remove rules.
4217
4c5aa8e0
AH
42182019-07-19 Alan Hayward <alan.hayward@arm.com>
4219
4220 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4221 * features/arm/arm-with-iwmmxt.c: Remove.
4222 * features/arm/arm-with-iwmmxt.xml: Remove.
4223 * features/arm/arm-with-m-fpa-layout.c: Remove.
4224 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4225 * features/arm/arm-with-m-vfp-d16.c: Remove.
4226 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4227 * features/arm/arm-with-m.c: Remove.
4228 * features/arm/arm-with-m.xml: Remove.
4229 * features/arm/arm-with-neon.c: Remove.
4230 * features/arm/arm-with-neon.xml: Remove.
4231 * features/arm/arm-with-vfpv2.c: Remove.
4232 * features/arm/arm-with-vfpv2.xml: Remove.
4233 * features/arm/arm-with-vfpv3.c: Remove.
4234 * features/arm/arm-with-vfpv3.xml: Remove.
4235
f42b2617
AH
42362019-07-19 Alan Hayward <alan.hayward@arm.com>
4237
4238 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4239
f29ec966
AH
42402019-07-19 Alan Hayward <alan.hayward@arm.com>
4241
4242 * arch/aarch32.c (aarch32_create_target_description): Create
4243 target descriptions using features.
4244 * arch/arm.c (arm_create_target_description)
4245 (arm_create_mprofile_target_description): Likewise.
4246 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4247
d105cce5
AH
42482019-07-19 Alan Hayward <alan.hayward@arm.com>
4249
4250 * Makefile.in: Add new files.
4251 * aarch32-tdep.c: New file.
4252 * aarch32-tdep.h: New file.
4253 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4254 Call aarch32_read_description.
4255 * arch/aarch32.c: New file.
4256 * arch/aarch32.h: New file.
4257 * arch/arm.c (arm_create_target_description)
4258 (arm_create_mprofile_target_description): New function.
4259 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4260 (arm_create_target_description)
4261 (arm_create_mprofile_target_description): New declaration.
4262 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4263 read_description functions.
4264 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4265 Likewise.
4266 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4267 * arm-tdep.c (tdesc_arm_list): New variable.
4268 (arm_register_g_packet_guesses): Call create description functions.
4269 (arm_read_description) (arm_read_mprofile_description): New
4270 function.
4271 * arm-tdep.h (arm_read_description)
4272 (arm_read_mprofile_description): Add declaration.
4273 * configure.tgt: Add new files.
4274
afe09f0b
GL
42752019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4276
4277 * top.c (new_ui_command): Open specified terminal just once.
4278
cd215b2e
TT
42792019-07-18 Tom Tromey <tromey@adacore.com>
4280
4281 * symtab.c (main_name): Constify return type.
4282 * symfile.c (set_initial_language): Update.
4283 * symtab.h (main_name): Constify return type.
4284
d8f68fcb
TT
42852019-07-17 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui-winsource.c (tui_update_source_window)
4288 (tui_update_source_window_as_is)
4289 (tui_update_source_windows_with_line): Remove return.
4290 * tui/tui-disasm.c (tui_show_disassem)
4291 (tui_show_disassem_and_update_source): Remove return.
4292 * tui/tui.c (tui_reset): Remove return.
4293 * tui/tui-wingeneral.c
4294 (tui_check_and_display_highlight_if_needed): Remove return.
4295
ca5af91e
TT
42962019-07-17 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4299
5104fe36
TT
43002019-07-17 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-winsource.h (struct tui_exec_info_window)
4303 (struct tui_source_window_base): Move from tui-data.h.
4304 * tui/tui-winsource.c: Move many method definitions from
4305 elsewhere. Remove "structuring" comments.
4306 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4307 (tui_source_window_base::refresh_window): Move to
4308 tui-winsource.c.
4309 * tui/tui-win.c (tui_source_window_base::refresh_all)
4310 (tui_source_window_base::update_tab_width)
4311 (tui_source_window_base::set_new_height)
4312 (tui_source_window_base::do_make_visible_with_new_height): Move to
4313 tui-winsource.c.
4314 * tui/tui-source.h: Update.
4315 * tui/tui-source.c (tui_source_window_base::reset): Move to
4316 tui-winsource.c.
4317 * tui/tui-disasm.h: Update.
4318 * tui/tui-data.h (struct tui_exec_info_window): Move to
4319 tui-winsource.h.
4320 (struct tui_source_window_base): Likewise.
4321 * tui/tui-data.c (tui_source_window_base::clear_detail)
4322 (tui_source_window_base, ~tui_source_window_base): Move to
4323 tui-winsource.c.
4324
daa15dde
TT
43252019-07-17 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-win.c (tui_resize_all)
4328 (tui_source_window_base::update_tab_width)
4329 (tui_adjust_win_heights): Update.
4330 (tui_win_info::make_invisible_and_set_new_height): Rename from
4331 make_invisible_and_set_new_height.
4332 * tui/tui-data.h (struct tui_win_info)
4333 <make_invisible_and_set_new_height>: New method.
4334
bfad4537
TT
43352019-07-17 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui.c: Update.
4338 * tui/tui-source.h (struct tui_source_window): Move from
4339 tui-data.h.
4340 * tui/tui-layout.c: Update.
4341 * tui/tui-disasm.c: Update.
4342 * tui/tui-data.h (struct tui_source_window): Move to
4343 tui-source.h.
4344
88f7e873
TT
43452019-07-17 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4348 tui-data.h.
4349 * tui/tui-data.h (struct tui_disasm_window): Move to
4350 tui-disasm.h.
4351
96bd6233
TT
43522019-07-17 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-regs.h (struct tui_data_item_window): Move from
4355 tui-data.h.
4356 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4357 * tui/tui-data.h (struct tui_data_item_window): Move to
4358 tui-regs.h.
4359 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4360
ce38393b
TT
43612019-07-17 Tom Tromey <tom@tromey.com>
4362
4363 * tui/tui.c: Update.
4364 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4365 (tui_cmd_window::max_height): Move to tui-command.c.
4366 * tui/tui-layout.c: Update.
4367 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4368 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4369 tui-command.c.
4370 * tui/tui-command.h (struct tui_cmd_window): Move from
4371 tui-data.h.
4372 * tui/tui-command.c: Remove "structuring" comments.
4373 (tui_cmd_window::clear_detail)
4374 (tui_cmd_window::do_make_visible_with_new_height)
4375 (tui_cmd_window::max_height): Move from elsewhere.
4376
2d8b51cb
TT
43772019-07-17 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4380 Now static.
4381 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4382 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4383
18ab23af
TT
43842019-07-17 Tom Tromey <tom@tromey.com>
4385
4386 * tui/tui.c: Update.
4387 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4388 tui-regs.c.
4389 * tui/tui-windata.h: Remove file.
4390 * tui/tui-windata.c: Remove file.
4391 * tui/tui-win.c (tui_data_window::set_new_height)
4392 (tui_data_window::do_make_visible_with_new_height): Move to
4393 tui-regs.c.
4394 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4395 * tui/tui-regs.c: Remove "structuring" comments.
4396 (tui_data_window::first_data_item_displayed)
4397 (tui_data_window::delete_data_content_windows)
4398 (tui_data_window::erase_data_content)
4399 (tui_data_window::display_all_data)
4400 (tui_data_window::refresh_all)
4401 (tui_data_window::do_scroll_vertical)
4402 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4403 (tui_data_window::do_make_visible_with_new_height)
4404 (tui_data_window::refresh_window): Move from elsewhere.
4405 (_initialize_tui_regs): Move to end of file.
4406 * tui/tui-layout.c: Update.
4407 * tui/tui-hooks.c: Update.
4408 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4409 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4410 tui-regs.c.
4411 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4412
88b7e7cc
TT
44132019-07-17 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4416 seen.
4417
0fcd3711
TT
44182019-07-17 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-win.c (tui_source_window_base::set_new_height)
4421 (tui_source_window_base::do_make_visible_with_new_height): Use
4422 m_has_locator field directly.
4423 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4424 method.
4425 (struct tui_source_window_base) <has_locator>: Likewise.
4426
4a38112d
TT
44272019-07-17 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4430 Don't declare.
4431 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4432 Remove.
4433 * tui/tui-win.c (tui_source_window_base::set_new_height)
4434 (tui_source_window_base::set_new_height)
4435 (make_invisible_and_set_new_height)
4436 (tui_source_window_base::do_make_visible_with_new_height)
4437 (tui_source_window_base::do_make_visible_with_new_height):
4438 Update.
4439 * tui/tui-layout.c (show_source_disasm_command, show_data)
4440 (show_source_or_disasm_and_command): Update.
4441 * tui/tui-layout.c (show_layout): Update.
4442
09129226
TT
44432019-07-17 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-layout.c (make_data_window): Remove.
4446 (show_data): Unify creation and re-initialization cases.
4447
4a8a5e84
TT
44482019-07-17 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-layout.c (make_source_window, make_disasm_window):
4451 Remove.
4452 (show_data): Unify creation and re-initialization cases.
4453
76d2be8e
TT
44542019-07-17 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-layout.c (make_command_window): Remove.
4457 (show_source_disasm_command, show_source_or_disasm_and_command):
4458 Unify creation and re-initialization cases.
4459
890b8bde
TT
44602019-07-17 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4463 creation and re-initialization cases.
4464
2cdfa113
TT
44652019-07-17 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-regs.c (tui_get_register): Return void.
4468
8e3cfd09
TT
44692019-07-17 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4472 Simplify.
4473
f4e04977
TT
44742019-07-17 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4477 resetting.
4478
0379b883
TT
44792019-07-17 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4482 * tui/tui-regs.c (tui_reg_layout): New function.
4483 (tui_show_registers, tui_reg_command): Use it.
4484 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4485 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4486 parameters.
4487 (tui_layout_command): Remove.
4488
b7fbad91
TT
44892019-07-17 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-layout.h (tui/tui-layout): Return void.
4492 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4493
4e1e56b9
TT
44942019-07-17 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-layout.c (show_source_disasm_command, show_data):
4497 Update.
4498 (reset_locator): Remove.
4499 (show_source_or_disasm_and_command): Update.
4500
1e0c09ba
TT
45012019-07-17 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-source.c (tui_source_window_base::reset): Remove
4504 win_type parameter.
4505 * tui/tui-layout.c (make_command_window, make_source_window)
4506 (make_disasm_window, make_data_window)
4507 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4508 (reset_locator, show_source_or_disasm_and_command): Update.
4509 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4510 win_type parameter.
4511 (struct tui_source_window_base) <reset>: Likewise.
4512
1bf605de
TT
45132019-07-17 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui-layout.c (show_source_disasm_command): Use
4516 reset_locator.
4517 (reset_locator): New function.
4518 (init_and_make_win): Remove.
4519 (show_source_or_disasm_and_command): Use reset_locator.
4520
098f9ed4
TT
45212019-07-17 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4524 condition.
4525 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4526 Remove condition.
4527 * tui/tui-source.c (tui_source_window_base::reset): New method.
4528 * tui/tui-layout.c (make_command_window): Don't call
4529 init_and_make_win.
4530 (make_source_window, make_disasm_window): Don't call
4531 make_source_or_disasm_window.
4532 (make_data_window): Don't call init_and_make_win. Change calling
4533 convention.
4534 (show_source_disasm_command, show_data): Simplify.
4535 (make_source_or_disasm_window): Remove.
4536 (show_source_or_disasm_and_command): Simplify.
4537 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4538 (struct tui_source_window_base) <reset>: Likewise.
4539 <execution_info>: Remove initializer.
4540 * tui/tui-data.c (tui_source_window_base): Initialize
4541 execution_info.
4542
80110957
TT
45432019-07-17 Tom Tromey <tom@tromey.com>
4544
4545 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4546 variable.
4547
cf82af05
TT
45482019-07-17 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui.c (tui_rl_other_window): Update.
4551 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4552 superclass method first. Always iterate over regs_content.
4553 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4554 method.
4555 * tui/tui-win.c (tui_set_focus_command): Update.
4556
01aeb396
TT
45572019-07-17 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-win.c (tui_set_focus_command): Rename from
4560 tui_set_focus. Call tui_enable.
4561 (tui_set_focus_command): Remove.
4562
fd6c75ee
TT
45632019-07-17 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4566 refresh_window.
4567 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4568 touchwin.
4569 (tui_data_window::refresh_window): Call refresh_window on data
4570 items. Always call superclass refresh_window.
4571 (tui_win_info::refresh): Remove.
4572 (tui_source_window_base::refresh_window): Update.
4573 (tui_refresh_all): Update.
4574 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4575 refresh_window.
4576 (show_source_or_disasm_and_command): Likewise.
4577 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4578 (struct tui_source_window_base) <refresh>: Likewise.
4579
f6cc34a9
TT
45802019-07-17 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-winsource.c (tui_clear_source_content)
4583 (tui_show_source_content): Update.
4584 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4585 whether content is empty.
4586 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4587 Remove.
4588
f31ec9af
TT
45892019-07-17 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4592 window's contents.
4593 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4594 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4595
d1b6f1e5
TT
45962019-07-17 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4599 (struct tui_data_item_window): Update.
4600
d9743a13
TT
46012019-07-17 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4604 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4605 defines.
4606
caf0bc4e
TT
46072019-07-17 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-winsource.h (tui_erase_source_content)
4610 (tui_clear_source_content): Remove "display_prompt" parameter.
4611 * tui/tui-winsource.c (tui_update_source_window_as_is)
4612 (tui_update_source_windows_with_addr): Update.
4613 (tui_clear_source_content): Remove "display_prompt" parameter.
4614 (tui_erase_source_content): Likewise. Simplify.
4615 (tui_show_source_content): Update.
4616 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4617 * tui/tui-stack.c (tui_show_frame_info): Update.
4618 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4619 Remove defines.
4620
9d391078
TT
46212019-07-17 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4624 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4625 parameter.
4626 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4627 parameter.
4628
a38da35d
TT
46292019-07-17 Tom Tromey <tom@tromey.com>
4630
4631 * tui/tui-winsource.c (tui_clear_source_content)
4632 (tui_show_source_content, tui_show_exec_info_content)
4633 (tui_clear_exec_info_content): Update.
4634 * tui/tui-stack.c (tui_show_locator_content): Update.
4635 (tui_show_frame_info): Update.
4636 * tui/tui-source.h (tui_source_window): Don't declare.
4637 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4638 from tui_source_is_displayed.
4639 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4640 Remove field.
4641 (struct tui_source_window_base) <content_in_use>: New field. Now
4642 bool.
4643 (struct tui_source_window) <showing_source_p>: New method.
4644 (TUI_SRC_WIN): Change cast.
4645 * tui/tui-data.c (tui_initialize_static_data): Update.
4646
c2cd8994
TT
46472019-07-17 Tom Tromey <tom@tromey.com>
4648
4649 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4650 location_matches_p.
4651 * tui/tui-source.c (tui_source_window::location_matches_p): New
4652 method.
4653 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4654 method.
4655 * tui/tui-data.h (struct tui_source_window_base)
4656 <location_matches_p>: New method.
4657 (struct tui_source_window, struct tui_disasm_window)
4658 <location_matches_p>: Likewise.
4659
4dde7b34
TT
46602019-07-17 Tom Tromey <tom@tromey.com>
4661
4662 * tui/tui-win.c (tui_set_win_height_command): Rename from
4663 tui_set_win_height.
4664 (tui_set_win_height_command): Remove.
4665
b73dd877
TT
46662019-07-17 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-source.c (tui_source_window): New constructor. Add
4669 observer.
4670 (~tui_source_window): New destructor.
4671 (tui_source_window::style_changed): New method.
4672 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4673 (tui_attach_detach_observers): Update.
4674 * tui/tui-data.h (struct tui_source_window): Make constructor not
4675 inline. Add destructor.
4676 (struct tui_source_window) <style_changed>: New method.
4677 <m_observable>: New member.
4678
ae2b5380
TT
46792019-07-17 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4682 * tui/tui-win.c (tui_resize_all): Fix typo.
4683
1ce3e844
TT
46842019-07-17 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4687 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4688 (tui_refresh_all): Remove "list" parameter. Use foreach.
4689 * tui/tui-win.c (window_name_completer): Use foreach.
4690 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4691 (update_tab_width): Likewise.
4692 * tui/tui-layout.c (show_layout): Update.
4693 * tui/tui-data.h (class tui_window_iterator): New.
4694 (struct all_tui_windows): New.
4695 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4696
fe3eaf1c
TT
46972019-07-17 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4700 parameter. Don't reference globals.
4701 (tui_reg_command): Update.
4702
368c1354
TT
47032019-07-17 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-regs.c (tui_show_registers): Simplify.
4706
e80cd204
TT
47072019-07-17 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-regs.c (tui_show_registers): Update.
4710 (tui_show_register_group): Add win_info parameter.
4711
aca2dd16
TT
47122019-07-17 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4715 Rename from tui_display_reg_element_at_line.
4716 (tui_data_window::display_registers_from_line): Update.
4717 * tui/tui-data.h (struct tui_data_window)
4718 <display_reg_element_at_line>: New method.
4719
517e9505
TT
47202019-07-17 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-regs.h (tui_display_registers_from)
4723 (tui_display_registers_from_line): Don't declare.
4724 * tui/tui-windata.c (tui_data_window::display_all_data)
4725 (tui_data_window::refresh_all)
4726 (tui_data_window::do_scroll_vertical): Update.
4727 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4728 from tui_display_registers_from.
4729 (tui_display_reg_element_at_line): Update.
4730 (tui_data_window::display_registers_from_line): Rename from
4731 tui_display_registers_from_line.
4732 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4733 display_registers_from_line>: New methods.
4734
f76d8b19
TT
47352019-07-17 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4738 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4739 from tui_erase_data_content.
4740 (tui_data_window::display_all_data)
4741 (tui_data_window::refresh_all)
4742 (tui_data_window::do_scroll_vertical): Update.
4743 * tui/tui-regs.c (tui_show_registers): Update.
4744 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4745 New method.
4746
b4094625
TT
47472019-07-17 Tom Tromey <tom@tromey.com>
4748
4749 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4750 declare.
4751 * tui/tui-windata.c
4752 (tui_data_window::delete_data_content_windows): Rename from
4753 tui_delete_data_content_windows.
4754 (tui_data_window::display_all_data)
4755 (tui_data_window::do_scroll_vertical): Update.
4756 * tui/tui-data.h (struct tui_data_window)
4757 <delete_data_content_windows>: New method.
4758
c223a729
TT
47592019-07-17 Tom Tromey <tom@tromey.com>
4760
4761 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4762 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4763
50daf268
TT
47642019-07-17 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4767 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4768 from tui_display_all_data.
4769 * tui/tui-win.c
4770 (tui_data_window::do_make_visible_with_new_height): Update.
4771 * tui/tui-regs.c (tui_show_registers): Update.
4772 * tui/tui-layout.c (tui_set_layout): Update.
4773 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4774 method.
4775
df5f8cab
TT
47762019-07-17 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4779 * tui/tui-windata.c (tui_display_data_from): Remove.
4780 (tui_data_window::refresh_all): Update.
4781
80cb6c27
TT
47822019-07-17 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4785 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4786 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4787 tui_display_registers_from_line.
4788 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4789 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4790 "force_display" parameter.
4791
baff0c28
TT
47922019-07-17 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4795 declare.
4796 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4797 Rename from tui_first_reg_element_no_inline.
4798 (tui_display_reg_element_at_line)
4799 (tui_display_registers_from_line): Update.
4800 * tui/tui-data.h (struct tui_data_window)
4801 <first_reg_element_no_inline>: New method.
4802
3b23c5f2
TT
48032019-07-17 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-windata.c (tui_display_data_from)
4806 (tui_data_window::do_scroll_vertical): Update.
4807 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4808 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4809 Rename from tui_line_from_reg_element_no.
4810 (tui_display_registers_from_line): Update.
4811 * tui/tui-data.h (struct tui_data_window)
4812 <line_from_reg_element_no>: New method.
4813
0b5ec218
TT
48142019-07-17 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4817 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4818 tui_last_regs_line_no.
4819 (tui_display_reg_element_at_line)
4820 (tui_display_registers_from_line): Update.
4821 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4822 method.
4823
0807ab7b
TT
48242019-07-17 Tom Tromey <tom@tromey.com>
4825
4826 PR tui/24722:
4827 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4828 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4829 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4830 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4831 (tui_update_breakpoint_info): Likewise.
4832 * tui/tui-hooks.c (tui_event_create_breakpoint)
4833 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4834 Update.
4835
9ad7fdef
TT
48362019-07-17 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4839
5813316f
TT
48402019-07-17 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-winsource.c (tui_update_source_window_as_is)
4843 (tui_update_source_windows_with_addr): Update.
4844 * tui/tui-source.h (tui_set_source_content)
4845 (tui_show_symtab_source): Add "win_info" parameter.
4846 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4847 parameter.
4848 (tui_show_symtab_source): Likewise.
4849
00e264e7
TT
48502019-07-17 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-wingeneral.c
4853 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4854
06210ce4
TT
48552019-07-17 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4858 (struct tui_cmd_window) <can_scroll>: New method.
4859 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4860 method.
4861
381befee
TT
48622019-07-17 Tom Tromey <tromey@adacore.com>
4863
4864 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4865 do_field_signed>: Rename. Change type of "value".
4866 * ui-out.c (ui_out::field_signed): Rename from field_int.
4867 Change type of "value".
4868 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4869 type of "value".
4870 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4871 do_field_int. Change type of "value".
4872 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4873 do_field_int. Change type of "value".
4874 * tracepoint.c (trace_status_mi, tfind_1)
4875 (print_one_static_tracepoint_marker): Update.
4876 * thread.c (print_thread_info_1, print_selected_thread_frame):
4877 Update.
4878 * stack.c (print_frame, print_frame_info): Update.
4879 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4880 Update.
4881 * source.c (print_source_lines_base): Update.
4882 * skip.c (info_skip_command): Update.
4883 * record-btrace.c (btrace_ui_out_decode_error)
4884 (btrace_call_history_src_line): Update.
4885 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4886 Update.
4887 * progspace.c (print_program_space): Update.
4888 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4889 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4890 do_field_int. Change type of "value".
4891 * mi/mi-out.c (mi_ui_out::do_table_begin)
4892 (mi_ui_out::do_table_header): Update.
4893 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4894 type of "value".
4895 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4896 (mi_cmd_data_list_changed_registers, output_register)
4897 (mi_cmd_data_read_memory, mi_load_progress)
4898 (mi_cmd_trace_frame_collected): Update.
4899 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4900 Update.
4901 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4902 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4903 (mi_cmd_var_list_children, varobj_update_one): Update.
4904 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4905 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4907 * inferior.c (print_inferior): Update.
4908 * gdb_bfd.c (print_one_bfd): Update.
4909 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4910 Update.
4911 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4912 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4913 do_field_int. Change type of "value".
4914 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4915 do_field_int. Change type of "value".
4916 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4917 (print_one_breakpoint_location, print_it_catch_fork)
4918 (print_one_catch_fork, print_it_catch_vfork)
4919 (print_one_catch_vfork, print_it_catch_solib)
4920 (print_it_catch_exec, print_it_ranged_breakpoint)
4921 (print_mention_watchpoint, print_mention_masked_watchpoint)
4922 (bkpt_print_it, update_static_tracepoint): Update.
4923 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4924 * break-catch-syscall.c (print_it_catch_syscall): Update.
4925 * ada-tasks.c (print_ada_task_info): Update.
4926 * ada-lang.c (print_it_exception, print_mention_exception):
4927 Update.
4928
6b78c3f8
AB
49292019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 PR breakpoints/24541
4932 * gdbarch.c: Regenerate.
4933 * gdbarch.h: Regenerate.
4934 * gdbarch.sh: Adjust return type and parameter types for
4935 'stap_adjust_register'.
4936 (i386_stap_adjust_register): Adjust signature and return new
4937 register name.
4938 * stap-probe.c (stap_parse_register_operand): Adjust use of
4939 'gdbarch_stap_adjust_register'.
4940
d72a9b85
TT
49412019-07-17 Tom Tromey <tromey@adacore.com>
4942
4943 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4944 declare VEC.
4945 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4946 std::vector.
4947 (struct s390_process_info): Add initializers.
4948 (s390_add_process): Use new.
4949 (s390_linux_nat_target::low_forget_process): Use delete.
4950 (s390_linux_nat_target::low_new_fork)
4951 (s390_linux_nat_target::stopped_by_watchpoint)
4952 (s390_linux_nat_target::low_prepare_to_resume)
4953 (s390_linux_nat_target::insert_watchpoint)
4954 (s390_linux_nat_target::insert_hw_breakpoint)
4955 (s390_linux_nat_target::remove_watchpoint)
4956 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4957
206e6c58
JB
49582019-07-16 John Baldwin <jhb@FreeBSD.org>
4959
4960 * aarch64-fbsd-nat.c: Include regcache.h.
4961 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4962 argument.
4963 (aarch64_fbsd_nat_target::fetch_registers)
4964 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4965 variable.
4966 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4967
cbde90f2
JB
49682019-07-16 John Baldwin <jhb@FreeBSD.org>
4969
4970 * fbsd-nat.c: Include gdbarch.h.
4971
07128006
TT
49722019-07-15 Tom Tromey <tromey@adacore.com>
4973
4974 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4975
1f77b012
TT
49762019-07-15 Tom Tromey <tromey@adacore.com>
4977
4978 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4979 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4980 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4981 * cli-out.c (cli_ui_out::do_field_int): New method.
4982 * ui-out.c (ui_out::field_unsigned): New method.
4983 * symfile.c (generic_load): Use field_unsigned.
4984 (print_transfer_performance): Likewise.
4985 * record-btrace.c (ui_out_field_uint): Remove.
4986 (btrace_call_history_insn_range, btrace_call_history): Use
4987 field_unsigned.
4988 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4989 field_unsigned.
4990 * ui-out.h (class ui_out) <field_unsigned>: New method.
4991 <do_field_unsigned>: Likewise.
4992
33eca680
TT
49932019-07-15 Tom Tromey <tromey@adacore.com>
4994
4995 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4996 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4997 * target.c (flash_erase_command): Use field_string.
4998 * infrun.c (print_signal_received_reason): Use field_string.
4999 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5000 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5001 field_string.
5002 * ada-tasks.c (print_ada_task_info): Use field_string.
5003
ca8d69be
TT
50042019-07-15 Tom Tromey <tromey@adacore.com>
5005
5006 * target.c (flash_erase_command): Use field_core_addr.
5007 * symfile.c (generic_load): Use field_core_addr.
5008 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5009 Use field_core_addr.
5010 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5011 field_core_addr.
5012
0d4e84ed
AB
50132019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5016 value if its desired type is smaller than a CORE_ADDR and signed.
5017
9a49df9d
AB
50182019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5021 of changes to field names, and use new is_reference field to
5022 decide if a property is a reference or not.
5023 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5024 field.
5025 (struct dwarf2_property_baton): Update header comment, rename
5026 'referenced_type' to 'property_type' and update comments.
5027 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5028 default property type, store in property baton, update to take
5029 accound of renamed field.
5030 (read_func_scope): Update call to attr_to_dynamic_prop.
5031 (read_array_type): Likewise.
5032 (dwarf2_per_cu_addr_sized_int_type): New function.
5033 (read_subrange_index_type): Move type finding code to
5034 dwarf2_per_cu_addr_sized_int_type.
5035 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5036 (dwarf2_per_cu_addr_type): New function.
5037 (set_die_type): Update calls to attr_to_dynamic_prop.
5038
b86352cf
AB
50392019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5040
5041 * dwarf2read.c (read_subrange_index_type): New function.
5042 (read_subrange_type): Move code into new function and call it.
5043 * gdbtypes.c (create_range_type): Add some asserts.
5044
603490bf
AB
50452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5048 update return statements.
5049 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5050 declaration, and update comment to match.
5051 * gdbtypes.c (resolve_dynamic_array): Update call to
5052 dwarf2_evaluate_property to match new return type.
5053
592f9d27
AB
50542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5055
5056 * valarith.c (value_subscripted_rvalue): Change lowerbound
5057 parameter type from int to LONGEST.
5058 * value.h (value_subscripted_rvalue): Likewise in declaration.
5059
60cfcb20
AB
50602019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * cli/cli-utils.c (info_print_command_completer): New function.
5063 * cli/cli-utils.h: Add 'completer.h' include, and forward
5064 declaration for 'struct cmd_list_element'.
5065 (info_print_command_completer): Declare.
5066 * stack.c (_initialize_stack): Add completer for 'info locals' and
5067 'info args'.
5068 * symtab.c (_initialize_symtab): Add completer for 'info
5069 variables' and 'info functions'.
5070 * NEWS: Mention completion for additional info commands.
5071
b16507e0
AB
50722019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * cli/cli-utils.c (extract_info_print_args): Delete.
5075 (extract_arg_maybe_quoted): Delete.
5076 (info_print_options_defs): New variable.
5077 (make_info_print_options_def_group): New function.
5078 (extract_info_print_options): Define new function.
5079 * cli/cli-utils.h (extract_info_print_args): Delete.
5080 (struct info_print_options): New structure.
5081 (extract_info_print_options): Declare new function.
5082 * stack.c (info_locals_command): Update to use new
5083 extract_info_print_options, also add a header comment.
5084 (info_args_command): Likewise.
5085 * symtab.c (info_variables_command): Likewise.
5086 (info_functions_command): Likewise.
5087
021d8588
AB
50882019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5091 to extract string arguments.
5092 * common/common-utils.c (extract_string_maybe_quoted): New function.
5093 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5094
b777eb6d
TT
50952019-07-11 Tom Tromey <tromey@adacore.com>
5096
5097 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5098 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5099 * top.h (gdbinit): Don't declare.
5100 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5101 into...
5102 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5103 * top.c (gdb_init): Don't call init_cli_cmds.
5104 (gdbinit): Remove.
5105 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5106
72ee03ff
TT
51072019-07-11 Tom Tromey <tromey@adacore.com>
5108
5109 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5110 after it has been moved.
5111
00db9531
SM
51122019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * valops.c (value_must_coerce_to_target): Change return type to
5115 bool.
5116 * value.h (value_must_coerce_to_target): Likewise.
5117
f2478a7e
SM
51182019-07-10 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * breakpoint.c (is_hardware_watchpoint): Remove
5121 forward-declaration.
5122 (is_masked_watchpoint): Change return type to bool.
5123 (is_tracepoint): Likewise.
5124 (is_breakpoint): Likewise.
5125 (is_hardware_watchpoint): Likewise.
5126 (is_watchpoint): Likewise.
5127 (is_no_memory_software_watchpoint): Likewise.
5128 (is_catchpoint): Likewise.
5129 (breakpoint_1): Make FILTER parameter's return type bool.
5130 is_masked_watchpoint): Change return type to bool.
5131 (save_breakpoints): Make FILTER parameter's return type bool.
5132 * breakpoint.h (is_breakpoint): Change return type to bool.
5133 (is_watchpoint): Likewise.
5134 (is_catchpoint): Likewise.
5135 (is_tracepoint): Likewise.
5136
0d12e84c
TT
51372019-07-10 Tom Tromey <tom@tromey.com>
5138
5139 * defs.h: Don't include gdbarch.h.
5140 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5141 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5142 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5143 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5144 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5145 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5146 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5147 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5148 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5149 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5150 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5151 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5152 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5153 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5154 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5155 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5156 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5157 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5158 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5159 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5160 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5161 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5162 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5163 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5164 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5165 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5166 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5167
f06f1252
TT
51682019-07-10 Tom Tromey <tromey@adacore.com>
5169
5170 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5171 * breakpoint.c (init_ada_exception_breakpoint): Register as
5172 bp_catchpoint.
5173 (print_one_breakpoint_location, print_one_breakpoint): Use
5174 is_ada_exception_catchpoint.
5175 * ada-lang.c (class ada_catchpoint_location): Pass
5176 bp_loc_software_breakpoint to bp_location constructor.
5177 (is_ada_exception_catchpoint): New function.
5178
7a5d944b
TT
51792019-07-10 Tom Tromey <tromey@adacore.com>
5180
5181 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5182 VEC.
5183 (struct arm_exidx_entry): New method operator<.
5184 (struct arm_exidx_data) <section_maps>: Change type.
5185 (arm_exidx_data_free): Remove.
5186 (arm_exidx_data_key): Change type. Move lower.
5187 (arm_exidx_new_objfile): Update.
5188 (arm_compare_exidx_entries): Remove.
5189 (arm_find_exidx_entry, _initialize_arm_tdep)
5190
48c66e1d
TT
51912019-07-10 Tom Tromey <tromey@adacore.com>
5192
5193 * solib-spu.c (ocl_program_data_key): Change type.
5194 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5195 Update.
5196
a269fbf1
TT
51972019-07-10 Tom Tromey <tromey@adacore.com>
5198
5199 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5200 (struct solib_aix_inferior_data) <library_list>: Change type.
5201 (solib_aix_inferior_data_handle): Change type.
5202 (get_solib_aix_inferior_data): Update.
5203 (solib_aix_free_library_list): Remove.
5204 (library_list_start_library): Update.
5205 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5206 return type.
5207 (solib_aix_get_library_list)
5208 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5209 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5210
c294730c
TT
52112019-07-10 Tom Tromey <tromey@adacore.com>
5212
5213 * solib-dsbt.c (struct dsbt_info): Add initializers.
5214 (solib_dsbt_pspace_data): Change type.
5215 (dsbt_pspace_data_cleanup): Remove.
5216 (get_dsbt_info, _initialize_dsbt_solib): Update.
5217
9d52077d
TT
52182019-07-10 Tom Tromey <tromey@adacore.com>
5219
5220 * spu-tdep.c (spu_overlay_data): Change type.
5221 (spu_get_overlay_table, spu_overlay_new_objfile)
5222 (_initialize_spu_tdep): Update.
5223
22a20dca
TT
52242019-07-10 Tom Tromey <tromey@adacore.com>
5225
5226 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5227 destructor.
5228 (dbx_objfile_data_key): Change type and declare later.
5229 (DBX_SYMFILE_INFO): Rewrite.
5230 * dbxread.c (dbx_objfile_data_key): Change type.
5231 (dbx_symfile_init): Update.
5232 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5233 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5234 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5235
cb60f420
TT
52362019-07-10 Tom Tromey <tromey@adacore.com>
5237
5238 * jit.c (jit_program_space_key): Change type. Move lower.
5239 (get_jit_program_space_data): Update.
5240 (jit_program_space_data_cleanup): Remove.
5241 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5242 Update.
5243 (struct jit_program_space_data): Add initializers.
5244
51df2ae3
TT
52452019-07-10 Tom Tromey <tromey@adacore.com>
5246
5247 * solib-darwin.c (struct darwin_info): Add initializers.
5248 (solib_darwin_pspace_data): Change type.
5249 (darwin_pspace_data_cleanup): Remove.
5250 (get_darwin_info, _initialize_darwin_solib): Update.
5251
18101a35
TT
52522019-07-10 Tom Tromey <tromey@adacore.com>
5253
5254 * remote-sim.c (struct sim_inferior_data): Add initializers,
5255 constructor, and destructor.
5256 (sim_inferior_data_key): Change type. Move lower.
5257 (check_for_duplicate_sim_descriptor): Update.
5258 (get_sim_inferior_data): Use new. Update.
5259 (~sim_inferior_data_cleanup): Rename from
5260 sim_inferior_data_cleanup. Simplify.
5261 (gdbsim_close_inferior, simulator_command)
5262 (sim_command_completer, _initialize_remote_sim): Update.
5263 (next_pid, INITIAL_PID): Move earlier.
5264
05b08ac1
TT
52652019-07-10 Tom Tromey <tromey@adacore.com>
5266
5267 * python/python-internal.h (create_thread_object): Return
5268 gdbpy_ref.
5269 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5270 * python/py-inferior.c (struct threadlist_entry): Add
5271 constructor.
5272 <thread_obj>: Now a gdbpy_ref.
5273 (thread_to_thread_object): Update.
5274 (add_thread_object): Use new.
5275 (delete_thread_object): Use delete.
5276 (infpy_threads): Update.
5277 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5278 GIL.
5279
32372d80
TT
52802019-07-10 Tom Tromey <tromey@adacore.com>
5281
5282 * valops.c (value_cast): Specialize error message for Ada.
5283
5c458ae8
SM
52842019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5285
5286 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5287
4c462cb0
SM
52882019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5289
5290 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5291 bpstat_should_step): Return bool, adjust comments.
5292 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5293 bpstat_should_step): Likewise.
5294
89abbcc2
AH
52952019-07-10 Alan Hayward <alan.hayward@arm.com>
5296
5297 * features/Makefile: Use feature target descriptions for Arm.
5298 * features/arm/arm-core.c: Generate new file.
5299 * features/arm/arm-fpa.c: Likewise.
5300 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5301 * features/arm/arm-m-profile.c: Likewise.
5302 * features/arm/arm-vfpv2.c: Likewise.
5303 * features/arm/arm-vfpv3.c: Likewise.
5304 * features/arm/xscale-iwmmxt.c: Likewise.
5305 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5306
166a82be
AH
53072019-07-10 Alan Hayward <alan.hayward@arm.com>
5308
5309 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5310 ptrace earlier.
5311
9fb4c7e9
AH
53122019-07-10 Alan Hayward <alan.hayward@arm.com>
5313
5314 * features/aarch64-pauth.c: Regenerate.
5315
e2d0f980
SM
53162019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5319 bool.
5320 (bpstat_what): Use false instead of 0.
5321
a38118e5
PA
53222019-07-09 Pedro Alves <palves@redhat.com>
5323
5324 * break-catch-throw.c (is_exception_catchpoint): New.
5325 * breakpoint.c (print_one_breakpoint_location): New parameter
5326 'raw_loc'. Handle it. Use
5327 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5328 looking at the breakpoint's type.
5329 (print_one_breakpoint): If handling "maint info breakpoints", also
5330 print locations of exception catchpoints.
5331 * breakpoint.h (is_exception_catchpoint): Declare.
5332
cb1e4e32
PA
53332019-07-09 Pedro Alves <palves@redhat.com>
5334
5335 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5336 "addr" field.
5337 (allocate_location_exception_catchpoint): New.
5338 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5339 (initialize_throw_catchpoint_ops): Install
5340 allocate_location_exception_catchpoint as allocate_location
5341 method.
5342 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5343 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5344 bp_loc_other.
5345 (breakpoint_address_is_meaningful): Delete.
5346 (bl_address_is_meaningful): New.
5347 (breakpoint_locations_match): Adjust comment.
5348 (bp_location_from_bp_type): New, factored out of...
5349 (bp_location::bp_location(breakpoint *)): ... this.
5350 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5351 factored out of...
5352 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5353 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5354 breakpoint_address_is_meaningful.
5355 (bp_locations_compare): Adjust comment.
5356 (update_global_location_list): Use bl_address_is_meaningful
5357 instead of breakpoint_address_is_meaningful.
5358 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5359 explicit.
5360 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5361 * python/py-breakpoint.c (bppy_get_location): No longer check
5362 whether location is null.
5363
b58a68fe
PA
53642019-07-09 Pedro Alves <palves@redhat.com>
5365
5366 PR c++/15468
5367 * breakpoint.c (print_one_breakpoint_location): Remove
5368 single-location assert.
5369
268a13a5
TT
53702019-07-09 Tom Tromey <tom@tromey.com>
5371
5372 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5373 * configure: Rebuild.
5374 * configure.ac: Change common to gdbsupport.
5375 * gdbsupport: Rename from common.
5376 * acinclude.m4: Change common to gdbsupport.
5377 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5378 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5379 gdbsupport.
5380 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5381 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5382 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5383 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5384 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5385 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5386 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5387 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5388 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5389 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5390 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5391 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5392 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5393 coff-pe-read.c, command.h, compile/compile-c-support.c,
5394 compile/compile-c.h, compile/compile-cplus-symbols.c,
5395 compile/compile-cplus-types.c, compile/compile-cplus.h,
5396 compile/compile-loc2c.c, compile/compile.c, completer.c,
5397 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5398 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5399 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5400 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5401 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5402 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5403 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5404 features/aarch64-core.c, features/aarch64-fpu.c,
5405 features/aarch64-pauth.c, features/aarch64-sve.c,
5406 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5407 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5408 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5409 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5410 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5411 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5412 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5413 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5414 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5415 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5416 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5417 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5418 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5419 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5420 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5421 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5422 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5423 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5424 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5425 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5426 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5427 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5428 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5429 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5430 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5431 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5432 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5433 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5434 minsyms.c, mips-linux-tdep.c, namespace.h,
5435 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5436 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5437 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5438 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5439 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5440 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5441 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5442 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5443 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5444 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5445 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5446 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5447 procfs.c, producer.c, progspace.h, psymtab.h,
5448 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5449 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5450 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5451 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5452 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5453 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5454 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5455 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5456 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5457 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5458 target-memory.c, target.c, target.h, target/waitstatus.c,
5459 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5460 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5461 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5462 unittests/array-view-selftests.c,
5463 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5464 unittests/common-utils-selftests.c,
5465 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5466 unittests/format_pieces-selftests.c,
5467 unittests/function-view-selftests.c,
5468 unittests/lookup_name_info-selftests.c,
5469 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5470 unittests/mkdir-recursive-selftests.c,
5471 unittests/observable-selftests.c,
5472 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5473 unittests/parse-connection-spec-selftests.c,
5474 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5475 unittests/scoped_fd-selftests.c,
5476 unittests/scoped_mmap-selftests.c,
5477 unittests/scoped_restore-selftests.c,
5478 unittests/string_view-selftests.c, unittests/style-selftests.c,
5479 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5480 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5481 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5482 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5483 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5484 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5485
5b0e2db4
AB
54862019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5489 bool value.
5490 (decode_digits_ordinary): Set explicit_line field in sal.
5491 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5492 symtab_and_line that was set on an explicit line number in
5493 assembler code. Do always update the recorded symtab and line if
5494 we do skip the prologue.
5495
0ba852ab
AB
54962019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5497
5498 * breakpoint.c (set_breakpoint_location_function): Remove
5499 explicit_loc parameter.
5500 (momentary_breakpoint_from_master): Update call to
5501 set_breakpoint_location_function.
5502 (add_location_to_breakpoint): Likewise.
5503
b3a7d171
AB
55042019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5507 required features based on default bfd type when no specific bfd
5508 is present.
5509
1f6f6e21
PW
55102019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5511
5512 * NEWS: Mention that GDB printf and eval commands can now print
5513 C-style and Ada-style convenience var strings without
5514 calling the inferior.
5515 * printcmd.c (printf_c_string): Locally print GDB internal var
5516 instead of transiting via the inferior.
5517 (printf_wide_c_string): Likewise.
5518
55192019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5520
5862c886 5521 PR breakpoints/25011
ea142fbf
AH
5522 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5523
0598af48
TT
55242019-07-04 Tom Tromey <tom@tromey.com>
5525
5526 PR tui/24724:
5527 * tui/tui-winsource.c (tui_clear_source_content): Update.
5528 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5529 (tui_update_breakpoint_info): Update.
5530 (tui_set_exec_info_content): Update.
5531 * tui/tui-source.c (tui_set_source_content_nil): Update.
5532 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5533 has_break.
5534 * tui/tui-data.h (enum tui_bp_flag): New.
5535 (tui_bp_flags): New enum flags type.
5536 (struct tui_source_element) <break_mode>: Change type. Rename
5537 from has_break.
5538 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5539 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5540 constants.
5541 * tui/tui-winsource.h: Fix comment.
5542
350fab54
AH
55432019-07-04 Alan Hayward <alan.hayward@arm.com>
5544
5545 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5546 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5547 (store_fpregs_to_thread)
5548 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5549 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5550 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5551 (IWMMXT_REGS_SIZE): Add define.
5552 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5553 (fetch_vfp_regs, store_vfp_regs)
5554 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5555 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5556
f0452268
AH
55572019-07-04 Alan Hayward <alan.hayward@arm.com>
5558
5559 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5560 defines.
5561 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5562 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5563 (ARM_INT_REGISTER_SIZE): ...to this.
5564 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5565 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5566 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5567 (arm_linux_collect_gregset, supply_nwfpe_register)
5568 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5569 defines.
5570 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5571 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5572 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5573 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5574 (arm_return_in_memory, arm_store_return_value)
5575 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5576 (arm_record_ld_st_multiple): Likewise.
5577 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5578 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5579
e935475c
AH
55802019-07-04 Alan Hayward <alan.hayward@arm.com>
5581
5582 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5583 AARCH64_DISPLACED_MODIFIED_INSNS.
5584 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5585 (aarch64_displaced_step_copy_insn): Likewise.
5586 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5587 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5588 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5589 ARM_DISPLACED_MODIFIED_INSNS.
5590 * arm-tdep.c (arm_gdbarch_init): Likewise.
5591 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5592 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5593 (struct arm_displaced_step_closure): Use
5594 ARM_DISPLACED_MODIFIED_INSNS.
5595
df0bb381
AH
55962019-07-04 Alan Hayward <alan.hayward@arm.com>
5597
5598 * features/Makefile: Remove unused xml files.
5599 * features/aarch64.xml: Remove.
5600 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5601 * features/i386/amd64-avx-avx512.xml: Remove.
5602 * features/i386/amd64-avx-linux.xml: Remove.
5603 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5604 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5605 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5606 * features/i386/amd64-avx-mpx.xml: Remove.
5607 * features/i386/amd64-avx.xml: Remove.
5608 * features/i386/amd64-linux.xml: Remove.
5609 * features/i386/amd64-mpx-linux.xml: Remove.
5610 * features/i386/amd64-mpx.xml: Remove.
5611 * features/i386/amd64.xml: Remove.
5612 * features/i386/i386-avx-avx512-linux.xml: Remove.
5613 * features/i386/i386-avx-avx512.xml: Remove.
5614 * features/i386/i386-avx-linux.xml: Remove.
5615 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5616 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5617 * features/i386/i386-avx-mpx-linux.xml: Remove.
5618 * features/i386/i386-avx-mpx.xml: Remove.
5619 * features/i386/i386-avx.xml: Remove.
5620 * features/i386/i386-linux.xml: Remove.
5621 * features/i386/i386-mmx-linux.xml: Remove.
5622 * features/i386/i386-mmx.xml: Remove.
5623 * features/i386/i386-mpx-linux.xml: Remove.
5624 * features/i386/i386-mpx.xml: Remove.
5625 * features/i386/i386.xml: Remove.
5626 * features/i386/x32-avx-avx512-linux.xml: Remove.
5627 * features/i386/x32-avx-linux.xml: Remove.
5628 * features/i386/x32-linux.xml: Remove.
5629
edd6266a
AH
56302019-07-04 Alan Hayward <alan.hayward@arm.com>
5631
5632 * regformats/aarch64.dat: Remove.
5633 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5634 * regformats/i386/amd64-avx-linux.dat: Remove.
5635 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5636 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5637 * regformats/i386/amd64-linux.dat: Remove.
5638 * regformats/i386/amd64-mpx-linux.dat: Remove.
5639 * regformats/i386/amd64.dat: Remove.
5640 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5641 * regformats/i386/i386-avx-linux.dat: Remove.
5642 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5643 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5644 * regformats/i386/i386-linux.dat: Remove.
5645 * regformats/i386/i386-mmx-linux.dat: Remove.
5646 * regformats/i386/i386-mpx-linux.dat: Remove.
5647 * regformats/i386/i386.dat: Remove.
5648 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5649 * regformats/i386/x32-avx-linux.dat: Remove.
5650 * regformats/i386/x32-linux.dat: Remove.
5651
2b40fda7
AH
56522019-07-04 Alan Hayward <alan.hayward@arm.com>
5653
5654 * aarch64-tdep.c: Remove xml self tests.
5655 * amd64-linux-tdep.c: Likewise.
5656 * amd64-tdep.c: Likewise.
5657 * i386-linux-tdep.c: Likewise.
5658 * i386-tdep.c: Likewise.
5659
5f4ba3e7
PA
56602019-07-03 Pedro Alves <palves@redhat.com>
5661
5662 PR cli/24732
5663 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5664 (pipe_cmd_option_defs): New.
5665 (make_pipe_cmd_options_def_group): New.
5666 (pipe_command): Use gdb::option::process_options.
5667 (pipe_command_completer): New function.
5668 (_initialize_cli_cmds): Install completer for "pipe" command.
5669
3d9be6f5
PA
56702019-07-03 Pedro Alves <palves@redhat.com>
5671
5672 * cli/cli-option.c (union option_value) <string>: New field.
5673 (struct option_def_and_value): Add ctor, move ctor, dtor and
5674 use DISABLE_COPY_AND_ASSIGN.
5675 (option_def_and_value::clear_value): New.
5676 (parse_option, save_option_value_in_ctx, get_val_type_str)
5677 (add_setshow_cmds_for_options): Handle var_string.
5678 * cli-option.h (union option_def::var_address) <string>: New
5679 field.
5680 (struct string_option_def): New.
5681 * maint-test-options.c (struct test_options_opts): Add default
5682 ctor and use DISABLE_COPY_AND_ASSIGN.
5683 <string_opt>: New field.
5684 (test_options_opts::~test_options_opts): New.
5685 (test_options_opts::dump): Also dump "-string".
5686 (test_options_option_defs): Install "string.
5687
41fc454c
PA
56882019-07-03 Pedro Alves <palves@redhat.com>
5689
5690 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5691 option_value with a null enumeration.
5692 (complete_options): Save the option values in the context.
5693 (save_option_value_in_ctx): New, factored out from ...
5694 (process_options): ... here.
5695 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5696 of the function.
5697 * maint-test-options.c (test_options_opts::dump): New, factored
5698 out from ...
5699 (maintenance_test_options_command_mode): ... here.
5700 (maintenance_test_options_command_completion_result): Delete.
5701 (maintenance_test_options_command_completion_text): Update
5702 comment.
5703 (maintenance_show_test_options_completion_result): Change
5704 prototype. Just print
5705 maintenance_test_options_command_completion_text.
5706 (save_completion_result): New.
5707 (maintenance_test_options_completer_mode): Pass options context to
5708 complete_options, and then save a dump.
5709 (_initialize_maint_test_options): Use add_cmd to install "maint
5710 show test-options-completion-result".
5711
fdbc9870
PA
57122019-07-03 Pedro Alves <palves@redhat.com>
5713
5714 * NEWS (New commands): Mention "with" and "maint with".
5715 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5716 (with_command, with_command_completer): New.
5717 (pipe_command): Adjust to new repeat_previous
5718 interface.
5719 (_initialize_cli_cmds): Install the "with" command and its "w"
5720 alias.
5721 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5722 declarations.
5723 * cli/cli-setshow.c (parse_cli_var_uinteger)
5724 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5725 argument strings for all var_types.
5726 (get_setshow_command_value_string): New, factored out from ...
5727 (do_show_command): ... this.
5728 * cli/cli-setshow.h: Include <string>.
5729 (get_setshow_command_value_string): Declare.
5730 * command.h (repeat_previous): Now returns const char *. Adjust
5731 comment.
5732 * maint.c: Include "cli/cli-cmds.h".
5733 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5734 (_initialize_maint_cmds): Register the "maintenance with" command.
5735 * top.c (repeat_previous): Move bits from pipe_command here:
5736 Return the saved command line, if any; error out if there's no
5737 command to relaunch.
5738
c6ac8931
PA
57392019-07-03 Pedro Alves <palves@redhat.com>
5740
5741 * NEWS (New commands): Mention "maint set/show test-settings"
5742 instead of "maint test-settings".
5743 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5744 (maintenance_test_settings_set_list): Rename to ...
5745 (maintenance_set_test_settings_list): ... this.
5746 (maintenance_test_settings_show_list): Rename to ...
5747 (maintenance_show_test_settings_list): ... this.
5748 (maintenance_test_settings_cmd): Delete.
5749 (maintenance_test_settings_set_cmd): ...
5750 (maintenance_set_test_settings_cmd): ... this.
5751 (maintenance_test_settings_show_cmd): ...
5752 (maintenance_show_test_settings_cmd): ... this.
5753 (maintenance_test_settings_show_value_cmd):
5754 (maintenance_show_test_settings_value_cmd): ... this.
5755 (_initialize_maint_test_settings): No longer install the "maint
5756 test-settings" prefix command. Rename "maint test-settings set"
5757 to "maint set test-settings", and "maint test-settings show" to
5758 "maint show test-settings". Adjust all subcommands.
5759
d1fcf2fd
PA
57602019-07-03 Pedro Alves <palves@redhat.com>
5761
5762 * maint-test-settings.c: Fix file's intro comment. Replace all
5763 references to "test-options" with references to "test-settings",
5764 in comments.
5765
970f9d09
PA
57662019-07-03 Pedro Alves <palves@redhat.com>
5767
5768 * maint-test-settings.c (maintenance_test_settings_xxx)
5769 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5770 New.
5771 (maintenance_test_settings_enums): Use them.
5772 (maintenance_test_settings_enum): Default to
5773 maintenance_test_settings_xxx.
5774 (_initialize_maint_test_settings): Initialize
5775 MAINTENANCE_TEST_SETTINGS_FILENAME.
5776
f3869b1a
SM
57772019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * breakpoint.h (remove_breakpoints_inf): Change return type to
5780 void, move function documentation here.
5781 * breakpoint.c (remove_breakpoints_inf): Change return type to
5782 void, move function documentation to header.
5783
54d66006
PA
57842019-07-02 Pedro Alves <palves@redhat.com>
5785
5786 * NEWS (Completion improvements): Mention "info threads".
5787 * thread.c (struct info_threads_opts, info_threads_option_defs)
5788 (make_info_threads_options_def_group): New.
5789 (info_threads_command): Use gdb::option::process_options.
5790 (info_threads_command_completer): New.
5791 (_initialize_thread): Use gdb::option::build_help to build the
5792 help text for "info threads".
5793
854f6088
SM
57942019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * defs.h (generic_load): Move from here...
5797 * symfile.h (generic_load): ... to here. Rename name parameter
5798 to args.
5799 * symfile.c (generic_load): Add comment.
5800
54ee4252
TT
58012019-07-01 Tom Tromey <tromey@adacore.com>
5802
5803 * dwarf2read.c
5804 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5805 declaration of without_params. Fix formatting.
5806
65392b3e
TT
58072019-07-01 Tom Tromey <tromey@adacore.com>
5808
5809 * ada-exp.y (find_primitive_type): Update.
5810 * ada-lang.h (ada_lookup_symbol): Update.
5811 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5812 parameter.
5813 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5814
7d7571f0
SDJ
58152019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5816
5817 PR breakpoints/24541
5818 * gdbarch.c: Regenerate.
5819 * gdbarch.h: Regenerate.
5820 * gdbarch.sh: Add 'stap_adjust_register'.
5821 * i386-tdep.c: Include '<unordered_set>'.
5822 (i386_stap_adjust_register): New function.
5823 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5824 * stap-probe.c (stap_parse_register_operand): Call
5825 'gdbarch_stap_adjust_register'.
5826
5af5392a
SDJ
58272019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5828
5829 PR python/24742
5830 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5831 * python/python.c (do_start_initialization): Use 'xmalloc'
5832 instead of 'PyMem_Malloc'.
5833
10d06d82
TT
58342019-06-28 Tom Tromey <tromey@adacore.com>
5835
5836 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5837 for Ada.
5838
1b7f24cd
TT
58392019-06-27 Tom Tromey <tromey@adacore.com>
5840
5841 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5842 objfile_key.
5843 (arm_find_mapping_symbol, arm_record_special_symbol)
5844 (_initialize_arm_tdep): Update.
5845 (arm_objfile_data_free): Remove.
5846
3d507ff2
TT
58472019-06-27 Tom Tromey <tromey@adacore.com>
5848
5849 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5850 to cp_print_static_field.
5851
762c164d
TT
58522019-06-26 Tom Tromey <tromey@adacore.com>
5853
5854 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5855 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5856 declare.
5857
aa2f9bcf
AH
58582019-06-26 Alan Hayward <alan.hayward@arm.com>
5859
5860 * features/aarch64-core.c (create_feature_aarch64_core):
5861 Regenerate.
5862 * features/aarch64-core.xml: Add cpsr flags.
5863
3426ae57
AH
58642019-06-26 Alan Hayward <alan.hayward@arm.com>
5865
5866 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5867 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5868
4838e44c
SM
58692019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5872 field.
5873 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5874 use.
5875 (arm_record_special_symbol): Don't insert new symbol in sorted
5876 position, push it at the end.
5877
54cc7474
SM
58782019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5881 (arm_mapping_symbol_s): Remove.
5882 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5883 (arm_mapping_symbol_vec): New typedef.
5884 (struct arm_per_objfile): Add constructor.
5885 <section_maps>: Change type to
5886 std::unique_ptr<arm_mapping_symbol_vec[]>.
5887 (arm_compare_mapping_symbols): Remove.
5888 (arm_find_mapping_symbol): Adjust to section_maps type change.
5889 (arm_objfile_data_free): Call delete on arm_per_objfile.
5890 (arm_record_special_symbol): Adjust to section_maps type change.
5891 Allocate arm_per_objfile with new.
5892
b65b566c
PW
58932019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5894
5895 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5896 with the command prefix.
5897
c2fc64f5
TT
58982019-06-25 Tom Tromey <tom@tromey.com>
5899
5900 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5901 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5902
fb54fa76
TT
59032019-06-25 Tom Tromey <tom@tromey.com>
5904
5905 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5906 type.
5907 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5908 protected.
5909
f7952c57
TT
59102019-06-25 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-winsource.c
5913 (tui_source_window_base::set_is_exec_point_at): Add check against
5914 LOA_ADDRESS.
5915
17568d78
TT
59162019-06-25 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-source.c (tui_set_source_content): Don't check before
5919 xfree.
5920 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5921
53e7cdba
TT
59222019-06-25 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui-winsource.h (tui_update_source_window_as_is)
5925 (tui_alloc_source_buffer, tui_line_is_displayed)
5926 (tui_addr_is_displayed): Change type of win_info.
5927 * tui/tui-winsource.c (tui_update_source_window_as_is)
5928 (tui_clear_source_content, tui_show_source_line)
5929 (tui_show_source_content, tui_source_window_base::refill)
5930 (tui_source_window_base::set_is_exec_point_at)
5931 (tui_source_window_base::set_is_exec_point_at)
5932 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5933 (tui_alloc_source_buffer, tui_line_is_displayed)
5934 (tui_addr_is_displayed): Change type of win_info. Update.
5935 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5936 (tui_source_window_base::do_make_visible_with_new_height):
5937 Update.
5938 * tui/tui-source.c (tui_set_source_content)
5939 (tui_set_source_content_nil)
5940 (tui_source_window::do_scroll_vertical): Update.
5941 * tui/tui-layout.c (show_layout): Update.
5942 * tui/tui-disasm.c (tui_set_disassem_content)
5943 (tui_disasm_window::do_scroll_vertical): Update.
5944 * tui/tui-data.h (tui_win_content): Remove.
5945 (struct tui_gen_win_info) <content, content_size>: Remove.
5946 (struct tui_source_element): Add initializers and destructor.
5947 (union tui_which_element, struct tui_win_element): Remove.
5948 (struct tui_source_window_base) <content>: New field.
5949 (struct tui_data_window): Remove destructor.
5950 (tui_alloc_content, tui_free_win_content)
5951 (tui_free_all_source_wins_content): Don't declare.
5952 * tui/tui-data.c (tui_initialize_static_data): Update.
5953 (init_content_element, tui_alloc_content): Remove.
5954 (~tui_gen_win_info): Update.
5955 (~tui_data_window, tui_free_all_source_wins_content)
5956 (tui_free_win_content, free_content, free_content_elements):
5957 Remove.
5958
7908abbf
TT
59592019-06-25 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-winsource.h (tui_clear_source_content)
5962 (tui_erase_source_content, tui_show_source_content): Change type
5963 of win_info.
5964 * tui/tui-winsource.c (tui_clear_source_content)
5965 (tui_erase_source_content, tui_show_source_content): Change type
5966 of win_info.
5967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5968 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5969 win_info.
5970 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5971 win_info.
5972 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5973
02c28df0
TT
59742019-06-25 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-winsource.c (tui_clear_source_content)
5977 (tui_source_window_base::set_is_exec_point_at): Update.
5978 * tui/tui-source.c (tui_set_source_content_nil): Update.
5979 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5980 a bool.
5981 * tui/tui-data.c (init_content_element): Update.
5982
6658b1bf
TT
59832019-06-25 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5986 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5987 * tui/tui-layout.c (init_and_make_win): Update.
5988 * tui/tui.h (enum tui_win_type): Update.
5989 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5990 tui_win_is_auxillary.
5991 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5992 tui_win_is_auxillary.
5993
21e1c91e
TT
59942019-06-25 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5997 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5998 (tui_delete_data_content_windows, tui_display_all_data)
5999 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6000 Update.
6001 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6002 * tui/tui-regs.c (tui_last_regs_line_no)
6003 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6004 (tui_show_registers): Update.
6005 (tui_show_register_group): Return void. Update.
6006 (tui_display_registers_from, tui_display_reg_element_at_line)
6007 (tui_display_registers_from_line, tui_check_register_values):
6008 Update.
6009 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6010 member.
6011 (struct tui_data_window) <regs_content>: Now a std::vector.
6012 <regs_content_count>: Remove.
6013 (tui_add_content_elements, tui_free_data_content): Don't declare.
6014 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6015 (init_content_element): Remove DATA_WIN case. Add assert.
6016 (tui_add_content_elements): Remove.
6017 (tui_data_window): Update.
6018 (tui_free_data_content): Remove.
6019 (free_content_elements): Remove DATA_WIN case.
6020
115ac53b
TT
60212019-06-25 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui-data.c (tui_data_item_window): Update.
6024 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6025 * tui/tui-windata.c (tui_display_all_data)
6026 (tui_display_data_from_line): Update.
6027 (tui_check_data_values): Remove.
6028 * tui/tui-regs.c (tui_show_register_group)
6029 (tui_display_reg_element_at_line): Update.
6030 * tui/tui-hooks.c (tui_register_changed)
6031 (tui_refresh_frame_and_register_information): Call
6032 tui_check_register_values.
6033 * tui/tui-data.h (struct tui_data_window) <data_content,
6034 data_content_count, data_type>: Remove.
6035 (enum tui_data_type): Remove.
6036
6037 * tui/tui-data.c (tui_data_window::clear_detail)
6038 (~tui_data_window): Update.
6039
eaf9738b
TT
60402019-06-25 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6043 declare.
6044 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6045 Rename from tui_first_data_item_displayed. Update.
6046 (tui_data_window::refresh_all)
6047 (tui_data_window::do_scroll_vertical): Update.
6048 * tui/tui-data.h (struct tui_data_window)
6049 <first_data_item_displayed>: Declare new method.
6050
31ca4723
TT
60512019-06-25 Tom Tromey <tom@tromey.com>
6052
6053 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6054 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6055 contents...
6056 (tui_initialize_static_data): ...here.
6057
41bcff7f
TT
60582019-06-25 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6061 (tui_display_registers_from, tui_check_register_values): Update.
6062 (tui_display_register): Remove win_info parameter; update.
6063 (tui_get_register): Change type of parameters.
6064 * tui/tui-data.h (struct tui_data_element): Remove.
6065 (union tui_which_element) <data>: Remove.
6066 <data_window>: Change type.
6067 (struct tui_data_item_window): New.
6068 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6069 case. Add assert.
6070 (~tui_data_item_window): New destructor.
6071 (free_content_elements): Remove DATA_ITEM_WIN case.
6072
d2802c33
TT
60732019-06-25 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6076 Remove.
6077
dd835f8b
TT
60782019-06-25 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-data.h (struct tui_command_element): Remove.
6081 (union tui_which_element) <command>: Remove.
6082 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6083 assert.
6084 (free_content_elements): Remove CMD_WIN case.
6085
bd7db367
TT
60862019-06-25 Tom Tromey <tom@tromey.com>
6087
6088 * tui/tui-layout.c (tui_set_layout): Update.
6089 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6090 * tui/tui-data.c (layout_def): Update.
6091
3add462f
TT
60922019-06-25 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6095 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6096 (tui_source_window_base::set_new_height): Update.
6097 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6098 Update.
6099 (tui_set_locator_fullname, tui_set_locator_info)
6100 (tui_show_frame_info): Update.
6101 * tui/tui-source.c (tui_set_source_content)
6102 (tui_source_is_displayed): Update.
6103 * tui/tui-layout.c (show_source_disasm_command, show_data)
6104 (show_source_or_disasm_and_command): Update.
6105 * tui/tui-disasm.c (tui_set_disassem_content)
6106 (tui_get_begin_asm_address): Update.
6107 * tui/tui-data.h (struct tui_locator_element): Remove.
6108 (union tui_which_element) <locator>: Remove.
6109 (struct tui_locator_window): New.
6110 (tui_locator_win_info_ptr): Change return type.
6111 * tui/tui-data.c (_locator): Change type.
6112 (tui_locator_win_info_ptr): Change return type.
6113 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6114 (tui_alloc_content): Add assert.
6115
489e9d8b
TT
61162019-06-25 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-winsource.c
6119 (tui_exec_info_window::maybe_allocate_content): New method.
6120 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6121 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6122 (make_source_or_disasm_window): Add cast.
6123 * tui/tui-data.h (union tui_which_element) <simple_string>:
6124 Remove.
6125 (struct tui_source_info): New.
6126 (struct tui_source_window_base) <execution_info>: Change type.
6127 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6128 case, and add assert.
6129 (tui_alloc_content): Add assert.
6130
c3fabb7d
TT
61312019-06-25 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6134 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6135 * tui/tui-data.c (tui_alloc_win_info): Remove.
6136
bbc228ee
TT
61372019-06-25 Tom Tromey <tom@tromey.com>
6138
6139 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6140 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6141 can_highlight.
6142
5fcee43a
TT
61432019-06-25 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6146 make_visible_with_new_height method.
6147 (tui_win_info::make_visible_with_new_height): New method.
6148 (tui_source_window_base::do_make_visible_with_new_height)
6149 (tui_data_window::do_make_visible_with_new_height)
6150 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6151 (make_visible_with_new_height): Remove.
6152 (tui_resize_all, tui_adjust_win_heights): Use
6153 make_visible_with_new_height method.
6154 * tui/tui-data.h (struct tui_win_info)
6155 <do_make_visible_with_new_height, make_visible_with_new_height>:
6156 New methods.
6157 (struct tui_source_window_base, struct tui_data_window)
6158 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6159 methods.
6160
d83f1fe6
TT
61612019-06-25 Tom Tromey <tom@tromey.com>
6162
6163 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6164 method.
6165 (update_tab_width): Call update_tab_width method.
6166 * tui/tui-data.h (struct tui_win_info)
6167 (struct tui_source_window_base) <update_tab_width>: New methods.
6168
17374de4
TT
61692019-06-25 Tom Tromey <tom@tromey.com>
6170
6171 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6172 parameter.
6173 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6174 parameter.
6175 (tui_gen_win_info::make_visible): Update.
6176 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6177 parameter.
6178 * tui/tui-data.h (enum tui_box): New enum.
6179 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6180
f936bca2
TT
61812019-06-25 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6184 init_and_make_win for EXEC_INFO_WIN.
6185 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6186 longer inline.
6187 (struct tui_win_info) <~tui_win_info>: Inline.
6188 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6189 Don't declare.
6190 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6191 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6192 Remove.
6193 (tui_initialize_static_data): Update.
6194 (~tui_gen_win_info): Handle more cleanup here.
6195 (~tui_source_window_base): Delete "execution_info".
6196 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6197
d6ba6a11
TT
61982019-06-25 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-layout.c (make_command_window): Don't set
6201 can_highlight.
6202 (show_source_disasm_command): Call the reset method.
6203 (show_data): Don't set can_highlight. Call the reset method.
6204 (tui_gen_win_info::reset): Rename from init_gen_win_info
6205 (init_and_make_win): Simplify. Return tui_gen_win_info.
6206 (show_source_or_disasm_and_command): Call the reset method.
6207 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6208 (struct tui_cmd_window): Set can_highlight.
6209
48a3bd16
TT
62102019-06-25 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6213 from make_visible.
6214 (tui_make_visible, tui_make_invisible): Rewrite.
6215 (tui_win_info::make_visible): Remove.
6216 (tui_source_window_base::make_visible): Update.
6217 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6218 method. Moved from...
6219 (struct tui_win_info) <make_visible>: ...here.
6220
c3bd716f
TT
62212019-06-25 Tom Tromey <tom@tromey.com>
6222
6223 * tui/tui-winsource.c
6224 (tui_source_window_base::do_scroll_horizontal): Remove direction
6225 parameter.
6226 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6227 direction parameter.
6228 * tui/tui-win.c (tui_win_info::forward_scroll)
6229 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6230 (tui_win_info::right_scroll): Update.
6231 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6232 direction parameter.
6233 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6234 direction parameter.
6235 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6236 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6237 Remove direction parameter.
6238 (struct tui_source_window_base, struct tui_source_window)
6239 (struct tui_disasm_window, struct tui_data_window)
6240 (struct tui_cmd_window): Update.
6241
21c32dca
TT
62422019-06-25 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-winsource.h (tui_set_exec_info_content)
6245 (tui_show_exec_info_content, tui_erase_exec_info_content)
6246 (tui_clear_exec_info_content, tui_update_exec_info): Change
6247 argument to tui_source_window_base.
6248 * tui/tui-winsource.c (tui_set_exec_info_content)
6249 (tui_show_exec_info_content, tui_erase_exec_info_content)
6250 (tui_clear_exec_info_content, tui_update_exec_info): Change
6251 argument to tui_source_window_base.
6252
73fbdc65
TT
62532019-06-25 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6256 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6257
33325343
TT
62582019-06-25 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6261 check.
6262
29d2c474
TT
62632019-06-25 Tom Tromey <tom@tromey.com>
6264
6265 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6266 type to void.
6267 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6268 type to void.
6269 * tui/tui-source.c (tui_set_source_content): Update.
6270 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6271
152f3f4b
TT
62722019-06-25 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-win.c (window_name_completer, tui_set_focus)
6275 (tui_all_windows_info): Use name method.
6276 * tui/tui-data.h (struct tui_gen_win_info)
6277 (struct tui_source_window, struct tui_disasm_window)
6278 (struct tui_data_window, struct tui_cmd_window) <name>: New
6279 method.
6280 (tui_win_name): Don't declare.
6281 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6282 (tui_win_name): Remove.
6283
be4da588
TT
62842019-06-25 Tom Tromey <tom@tromey.com>
6285
6286 * tui/tui-winsource.h (tui_update_source_window)
6287 (tui_update_source_window_as_is): Change parameter type.
6288 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6289 to be a tui_source_window_base.
6290 (tui_update_source_window_as_is): Likewise.
6291 * tui/tui-win.c (make_visible_with_new_height): Update.
6292
5b81daba
TT
62932019-06-25 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-winsource.c (tui_erase_source_content)
6296 (tui_show_source_content, tui_show_exec_info_content)
6297 (tui_erase_exec_info_content): Use refresh_window method.
6298 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6299 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6300 from tui_refresh_win.
6301 (tui_data_window::refresh_window): New method.
6302 (tui_win_info::refresh, tui_source_window_base::refresh)
6303 (tui_refresh_all): Use refresh_window method.
6304 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6305 method.
6306 * tui/tui-regs.c (tui_display_register): Call refresh_window
6307 method.
6308 * tui/tui-layout.c (show_source_disasm_command)
6309 (show_source_or_disasm_and_command): Call refresh_window method.
6310 * tui/tui-data.h (struct tui_gen_win_info)
6311 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6312 New method.
6313
cb2ce893
TT
63142019-06-25 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui.c (tui_rl_other_window, tui_enable)
6317 (tui_is_window_visible, tui_get_command_dimension): Update.
6318 * tui/tui-winsource.c (tui_update_source_window_as_is)
6319 (tui_clear_source_content, tui_erase_source_content)
6320 (tui_show_source_line, tui_source_window_base::refill)
6321 (tui_source_window_base::do_scroll_horizontal)
6322 (tui_source_window_base::set_is_exec_point_at)
6323 (tui_update_breakpoint_info, tui_set_exec_info_content)
6324 (tui_alloc_source_buffer, tui_line_is_displayed)
6325 (tui_addr_is_displayed): Update.
6326 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6327 (tui_check_and_display_highlight_if_needed)
6328 (tui_win_info::make_visible, tui_win_info::refresh)
6329 (tui_refresh_all): Update.
6330 * tui/tui-windata.c (tui_first_data_item_displayed)
6331 (tui_delete_data_content_windows, tui_erase_data_content)
6332 (tui_display_all_data, tui_data_window::refresh_all)
6333 (tui_check_data_values): Update.
6334 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6335 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6336 (tui_win_info::backward_scroll, tui_refresh_all_win)
6337 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6338 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6339 (tui_source_window_base::set_new_height)
6340 (tui_data_window::set_new_height)
6341 (make_invisible_and_set_new_height)
6342 (make_visible_with_new_height, new_height_ok)
6343 (parse_scrolling_args): Update.
6344 * tui/tui-stack.c (tui_show_frame_info): Update.
6345 * tui/tui-source.c (tui_set_source_content)
6346 (tui_set_source_content_nil, tui_source_is_displayed)
6347 (tui_source_window::do_scroll_vertical): Update.
6348 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6349 (tui_display_registers_from, tui_display_reg_element_at_line)
6350 (tui_check_register_values, tui_reg_command): Update.
6351 * tui/tui-layout.c (tui_default_win_height)
6352 (show_source_disasm_command, show_data, init_and_make_win)
6353 (show_source_or_disasm_and_command): Update.
6354 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6355 (tui_redisplay_readline, tui_mld_flush)
6356 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6357 (tui_getc): Update.
6358 * tui/tui-disasm.c (tui_set_disassem_content)
6359 (tui_disasm_window::do_scroll_vertical): Update.
6360 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6361 Now virtual.
6362 (struct tui_win_info): Derive from tui_gen_win_info.
6363 <~tui_win_info>: Mark as override.
6364 <generic>: Remove member.
6365 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6366 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6367 (~tui_data_window, ~tui_win_info)
6368 (tui_free_all_source_wins_content): Update.
6369 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6370
ab313b35
TT
63712019-06-25 Tom Tromey <tom@tromey.com>
6372
6373 * tui/tui-layout.c (init_and_make_win): Use new.
6374 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6375 destructor, initializers.
6376 (tui_alloc_generic_win_info): Don't declare.
6377 * tui/tui-data.c (_locator): Add argument to constructor.
6378 (source_win, disasm_win): New globals.
6379 (exec_info): Remove.
6380 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6381 Update.
6382 (tui_alloc_generic_win_info): Remove.
6383 (init_content_element): Use new.
6384 (tui_win_info::tui_win_info): Update.
6385 (free_content_elements) <case DATA_WIN>: Use delete.
6386
dc2c33e4
TT
63872019-06-25 Tom Tromey <tom@tromey.com>
6388
6389 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6390 * tui/tui-windata.c (tui_first_data_item_displayed)
6391 (tui_delete_data_content_windows): Update.
6392 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6393 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6394 (tui_display_registers_from, tui_check_register_values): Update.
6395 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6396 pointer.
6397 * tui/tui-data.c (init_content_element): Update. Allocate the new
6398 window.
6399 (tui_free_data_content): Update.
6400 (free_content_elements) <case DATA_WIN>: Free the window.
6401
214a5cbe
TT
64022019-06-25 Tom Tromey <tom@tromey.com>
6403
6404 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6405 Update.
6406 * tui/tui-layout.c (make_command_window)
6407 (show_source_disasm_command, show_data, init_and_make_win)
6408 (show_source_or_disasm_and_command): Update.
6409 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6410 method.
6411 <can_highight, is_highlighted>: Now bool.
6412 (tui_set_win_highlight): Don't declare.
6413 * tui/tui-data.c (tui_set_win_highlight): Remove.
6414
8e2daf15
TT
64152019-06-25 Tom Tromey <tom@tromey.com>
6416
6417 * tui/tui-wingeneral.c (make_visible): Remove check of window
6418 type.
6419
8903bd8a
TT
64202019-06-25 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-win.c (tui_win_info::max_height)
6423 (tui_cmd_window::max_height): New methods.
6424 (new_height_ok): Call max_height.
6425 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6426 <max_height>: New method.
6427
3f02ce1e
TT
64282019-06-25 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui-win.c (tui_source_window_base::set_new_height)
6431 (tui_data_window::set_new_height): New methods.
6432 (make_invisible_and_set_new_height): Call set_new_height method.
6433 * tui/tui-data.h (struct tui_win_info)
6434 (struct tui_source_window_base, struct tui_data_window)
6435 <set_new_height>: New method.
6436
1825f487
TT
64372019-06-25 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6440 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6441 tui_refresh_data_win.
6442 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6443 method.
6444 (tui_refresh_all_win): Call the refresh_all method.
6445 (tui_set_focus): Likewise.
6446 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6447 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6448 Likewise.
6449
ad54d15b
TT
64502019-06-25 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-winsource.h (tui_refill_source_window)
6453 (tui_set_is_exec_point_at): Don't declare.
6454 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6455 (tui_source_window_base::refill): Rename from
6456 tui_refill_source_window.
6457 (tui_source_window_base::do_scroll_horizontal): Update.
6458 (tui_source_window_base::set_is_exec_point_at): Rename from
6459 tui_set_is_exec_point_at.
6460 (tui_update_all_breakpoint_info): Update.
6461 * tui/tui-stack.c (tui_show_frame_info): Update.
6462 * tui/tui-layout.c (show_data): Add cast.
6463 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6464 * tui/tui-data.h (struct tui_source_window_base) <refill,
6465 set_is_exec_point_at>: New methods.
6466 (tui_source_windows, tui_add_to_source_windows): Update types.
6467 (tui_add_to_source_windows): Remove redundant declaration.
6468 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6469 (tui_source_windows): Change return type.
6470 (tui_clear_source_windows_detail): Update.
6471 (tui_add_to_source_windows): Change type of parameter.
6472 (tui_free_all_source_wins_content): Update.
6473
2042b506
TT
64742019-06-25 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-wingeneral.c (tui_win_info::refresh)
6477 (tui_source_window_base::refresh): New methods.
6478 (tui_refresh_all): Call the refresh method.
6479 * tui/tui-data.h (struct tui_win_info)
6480 (struct tui_source_window_base) <refresh>: New method.
6481
56122977
TT
64822019-06-25 Tom Tromey <tom@tromey.com>
6483
6484 * tui/tui.h (tui_is_window_visible): Return bool.
6485 * tui/tui.c (tui_is_window_visible): Return bool.
6486 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6487 (tui_make_visible, tui_make_invisible)
6488 (tui_win_info::make_visible)
6489 (tui_source_window_base::make_visible, make_all_visible)
6490 (tui_make_all_visible, tui_make_all_invisible): Update.
6491 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6492 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6493 bool.
6494 (struct tui_win_info, struct tui_source_window_base)
6495 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6496 * tui/tui-data.c (tui_init_generic_part): Update.
6497
cda37efb
TT
64982019-06-25 Tom Tromey <tom@tromey.com>
6499
6500 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6501 (tui_source_window_base::make_visible): New methods.
6502 (make_all_visible): Make method call.
6503 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6504 (struct tui_source_window_base, struct tui_cmd_window): Override
6505 make_visible.
6506 (tui_win_is_source_type): Don't declare.
6507 * tui/tui-data.c (tui_win_is_source_type): Remove.
6508
6a0ee02c
TT
65092019-06-25 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6512 NULL check.
6513
63901aec
TT
65142019-06-25 Tom Tromey <tom@tromey.com>
6515
6516 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6517 Inline constructor. Add initializers for members.
6518 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6519 constructors; now inline in class.
6520
ceb13a13
TT
65212019-06-25 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-regs.c (tui_show_registers): Update.
6524 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6525 bool.
6526 * tui/tui-data.c (tui_data_window::clear_detail)
6527 (tui_data_window): Update.
6528
238eb706
TT
65292019-06-25 Tom Tromey <tom@tromey.com>
6530
6531 * tui/tui-windata.c (tui_display_all_data)
6532 (tui_display_data_from_line, tui_display_data_from)
6533 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6534 Update.
6535 * tui/tui-regs.c (tui_last_regs_line_no)
6536 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6537 (tui_show_registers, tui_show_register_group)
6538 (tui_display_registers_from, tui_display_reg_element_at_line)
6539 (tui_display_registers_from_line, tui_check_register_values)
6540 (tui_reg_next, tui_reg_prev): Update.
6541 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6542 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6543 tui_data_window.
6544 (struct tui_win_info) <detail>: Remove. Add new fields from
6545 tui_data_info.
6546 (TUI_DATA_WIN): Add cast.
6547 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6548 (~tui_data_window): Simplify.
6549
81491aa0
TT
65502019-06-25 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-layout.c (show_source_disasm_command)
6553 (show_source_or_disasm_and_command): Update.
6554 * tui/tui-io.c (update_cmdwin_start_line)
6555 (tui_redisplay_readline): Update.
6556 * tui/tui-data.h (struct tui_command_info): Remove.
6557 (struct tui_win_info) <detail>: Remove command_info member.
6558 (struct tui_data_window) <start_line>: New member, from
6559 tui_command_info.
6560 (TUI_CMD_WIN): Add casts.
6561
e6e41501
TT
65622019-06-25 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-winsource.c (tui_update_source_window)
6565 (tui_refill_source_window)
6566 (tui_source_window_base::do_scroll_horizontal)
6567 (tui_update_breakpoint_info, tui_set_exec_info_content)
6568 (tui_show_exec_info_content, tui_erase_exec_info_content)
6569 (tui_clear_exec_info_content): Update.
6570 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6571 Update.
6572 * tui/tui-win.c (make_invisible_and_set_new_height)
6573 (make_visible_with_new_height): Update.
6574 * tui/tui-source.c (tui_set_source_content)
6575 (tui_show_symtab_source): Update.
6576 * tui/tui-layout.c (extract_display_start_addr)
6577 (show_source_disasm_command, show_data)
6578 (make_source_or_disasm_window)
6579 (show_source_or_disasm_and_command): Update.
6580 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6581 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6582 "gdbarch".
6583 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6584 to tui_source_window_base.
6585 (struct tui_win_info) <detail>: Remove source_info member.
6586 (struct tui_source_window_base) <has_locator>: Inline.
6587 Move contents from tui_source_info; rename has_locator member to
6588 m_has_locator.
6589 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6590 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6591 header file.
6592 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6593 Simplify.
6594 (tui_free_all_source_wins_content): Cast to
6595 tui_source_window_base.
6596
44f0e208
TT
65972019-06-25 Tom Tromey <tom@tromey.com>
6598
6599 * tui/tui-win.c (make_invisible_and_set_new_height)
6600 (make_visible_with_new_height): Call has_locator method.
6601 * tui/tui-layout.c (show_source_disasm_command, show_data)
6602 (show_source_or_disasm_and_command): Update for bool change.
6603 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6604 (tui_win_info) <has_locator>: New method.
6605 (struct tui_source_window_base) <has_locator>: New method.
6606 (tui_win_has_locator): Don't declare.
6607 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6608 from tui_win_has_locator.
6609 (tui_source_window_base): Use false, not FALSE.
6610
7778b912
TT
66112019-06-25 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6614 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6615 clear_detail method directly.
6616 (tui_clear_win_detail): Remove.
6617
f83d391c
TT
66182019-06-25 Tom Tromey <tom@tromey.com>
6619
6620 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6621 "this", not TUI_DISASM_WIN.
6622
13446e05
TT
66232019-06-25 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6626 declare.
6627 * tui/tui-winsource.c
6628 (tui_source_window_base::do_scroll_horizontal): Rename from
6629 tui_horizontal_source_scroll.
6630 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6631 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6632 from tui_vertical_data_scroll.
6633 * tui/tui-win.h (tui_scroll): Don't declare.
6634 * tui/tui-win.c (tui_win_info::forward_scroll)
6635 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6636 (tui_win_info::right_scroll): Rename and update.
6637 (tui_scroll_forward_command, tui_scroll_backward_command)
6638 (tui_scroll_left_command, tui_scroll_right_command): Update.
6639 (tui_scroll): Remove.
6640 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6641 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6642 from tui_vertical_source_scroll.
6643 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6644 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6645 from tui_vertical_disassem_scroll.
6646 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6647 do_scroll_horizontal>: New methods.
6648 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6649 Likewise.
6650 (struct tui_source_window_base): Add do_scroll_horizontal.
6651 (struct tui_source_window, struct tui_disasm_window): Add
6652 do_scroll_vertical.
6653 (struct tui_data_window, struct tui_cmd_window): Add
6654 do_scroll_horizontal and do_scroll_vertical.
6655 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6656
5cf82909
TT
66572019-06-25 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-data.h (struct tui_source_window_base): New struct.
6660 (struct tui_source_window): Derive from tui_source_window_base.
6661 (struct tui_disasm_window): New struct.
6662 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6663 from tui_source_window::clear_detail.
6664 (tui_source_window_base): Rename from tui_source_window.
6665 (~tui_source_window_base): Rename from ~tui_source_window.
6666 (tui_alloc_win_info): Create a tui_disasm_window.
6667
ee1d42d6
TT
66682019-06-25 Tom Tromey <tom@tromey.com>
6669
6670 * tui/tui-data.h (struct tui_source_window)
6671 (struct tui_data_window): Declare destructors.
6672 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6673 destructors.
6674 (tui_win_info): Simplify.
6675
b4eb2452
TT
66762019-06-25 Tom Tromey <tom@tromey.com>
6677
6678 * tui/tui-winsource.c (tui_display_main)
6679 (tui_update_source_windows_with_addr)
6680 (tui_update_all_breakpoint_info): Update.
6681 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6682 (new_height_ok, parse_scrolling_args): Update.
6683 * tui/tui-stack.c (tui_show_frame_info): Update.
6684 * tui/tui-data.h (struct tui_list): Remove.
6685 (tui_source_windows): Return a reference to a std::vector.
6686 * tui/tui-data.c (source_windows): Now a std::vector.
6687 (tui_source_windows): Change return type.
6688 (tui_clear_source_windows): Rewrite.
6689 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6690 (tui_free_all_source_wins_content): Rewrite.
6691
8761a91b
TT
66922019-06-25 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6695 (struct tui_data_window, struct tui_cmd_window): Declare
6696 clear_detail method.
6697 * tui/tui-data.c (tui_source_window::clear_detail)
6698 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6699 methods.
6700 (tui_clear_win_detail): Simplify.
6701
0ed69eda
TT
67022019-06-25 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-layout.c (make_source_window, make_disasm_window)
6705 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6706 Return the new window.
6707 (show_source_disasm_command, show_data)
6708 (show_source_or_disasm_and_command): Update.
6709
82432e10
TT
67102019-06-25 Tom Tromey <tom@tromey.com>
6711
6712 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6713 parameter. Return the new window.
6714 (show_source_disasm_command): Update and remove NULL check.
6715 (show_source_or_disasm_and_command): Update.
6716
ec328aa5
TT
67172019-06-25 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6720
33b906ab
TT
67212019-06-25 Tom Tromey <tom@tromey.com>
6722
6723 * tui/tui-data.h (struct tui_win_info): Make constructor
6724 protected. Make destructor virtual. Add initializers.
6725 (tui_source_window, tui_data_window, tui_cmd_window): New
6726 classes.
6727 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6728 constructor. Add "type" parameter.
6729 (tui_source_window, tui_data_window, tui_cmd_window): New
6730 constructors.
6731 (tui_alloc_win_info): Instantiate the appropriate subclass.
6732
e7e11af4
TT
67332019-06-25 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-win.c (tui_resize_all): Use delete.
6736 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6737 destructor.
6738 (tui_free_window): Don't declare.
6739 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6740 Update.
6741
6792b55e
TT
67422019-06-25 Tom Tromey <tom@tromey.com>
6743
6744 * tui/tui-data.h (struct tui_win_info): Add constructor.
6745 * tui/tui-data.c (tui_alloc_win_info): Use new.
6746 (tui_free_window): Use delete.
6747
f95675e1
TT
67482019-06-22 Tom Tromey <tom@tromey.com>
6749
6750 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6751 declare.
6752 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6753
5bff081c
TT
67542019-06-22 Tom Tromey <tom@tromey.com>
6755
6756 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6757 declare.
6758 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6759
47e3f474
TV
67602019-06-22 Tom de Vries <tdevries@suse.de>
6761
6762 * dwarf2read.c (create_addrmap_from_aranges)
6763 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6764 instead of '%zu'.
6765
fd5866f6
SM
67662019-06-21 Simon Marchi <simon.marchi@efficios.com>
6767
6768 * dwarf2read.h (dwarf2_section_info_def): Remove.
6769 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6770 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6771 std::vector<dwarf2_section_info>.
6772 (struct dwo_file) <~dwo_file>: Remove.
6773 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6774 types field.
6775 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6776 (dwarf2_read_debug_names): Likewise.
6777 (create_debug_types_hash_table): Change parameter type to
6778 array_view, adjust code accordingly.
6779 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6780 (partial_die_info::fixup): Likewise.
6781 (determine_prefix): Likewise.
6782 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6783
fb1eb2f9
SM
67842019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6787 gdb_bfd_ref_ptr.
6788 <~dwo_file>: Remove call to gdb_bfd_unref.
6789 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6790 gdb_bfd_ref_ptr::get.
6791
51ac9db5
SM
67922019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6795 type to htab_up.
6796 * dwarf2read.c (struct dwo_file): Initialize fields.
6797 <~dwo_file>: New.
6798 (free_dwo_file): Remove, move content to ~dwo_file.
6799 (struct dwo_file_deleter): Remove.
6800 (dwo_file_up>: Remove custom deleter.
6801 (free_dwo_files): Remove.
6802 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6803 dwo_files.
6804 (process_skeletonless_type_units): Call unique_ptr::get.
6805 (allocate_dwo_file_hash_table): Add deleter to created hash
6806 table. Change return type to htab_up.
6807 (lookup_dwo_file_slot): Don't memset dwo_file, call
6808 unique_ptr::get.
6809 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6810 (create_dwo_unit_in_dwp_v2): Likewise.
6811 (open_and_init_dwo_file): Likewise.
6812 (free_dwo_file_from_slot): Remove.
6813
dc4ccb6f
SM
68142019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * dwarf2read.h (struct dwarf2_section_info) <readin,
6817 is_virtual>: Change type to bool.
6818 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6819 true instead of 1.
6820
e6a1c5cb
TT
68212019-06-19 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-data.h (tui_init_content_element): Don't declare.
6824
6f6ffbeb
TT
68252019-06-19 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-data.h (tui_init_win_info): Don't declare.
6828
f23f598e
TV
68292019-06-19 Tom de Vries <tdevries@suse.de>
6830
6831 * dwarf2read.h (abstract_to_concrete): Change type to
6832 std::unordered_map<sect_offset, std::vector<sect_offset>,
6833 gdb::hash_enum<sect_offset>>.
6834
680e1bee
TT
68352019-06-19 Tom Tromey <tromey@adacore.com>
6836
6837 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6838 EVAL_AVOID_SIDE_EFFECTS specially.
6839
dcf37923
TT
68402019-06-19 Tom Tromey <tromey@adacore.com>
6841
6842 * source-cache.c (highlighter): New global.
6843 (source_cache::get_source_lines): Create a highlighter on demand.
6844
494986d5
AB
68452019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * defs.h (deprecated_interactive_hook): Delete declaration.
6848 * interps.c (clear_interpreter_hooks): Remove use of
6849 deprecated_interactive_hook.
6850 * top.c (deprecated_interactive_hook): Delete definition.
6851 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6852
3360b6e7
TV
68532019-06-18 Tom de Vries <tdevries@suse.de>
6854
6855 PR gdb/24515
6856 * dwarf2read.h (abstract_to_concrete): Change type from
6857 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6858 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6859 * dwarf2read.c (read_variable): Update.
6860 (dwarf2_fetch_die_loc_sect_off): Update.
6861
310b3441
TV
68622019-06-17 Tom de Vries <tdevries@suse.de>
6863
6864 PR gdb/24617
6865 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6866 accessing parent[parent_len - 1].
6867
ba9777be
PP
68682019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6869
6870 PR gdb/24364
6871 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6872 call dtrace_process_dof with NULL dof.
6873
2b9f6e89
TV
68742019-06-16 Tom de Vries <tdevries@suse.de>
6875
6876 PR gdb/24445
6877 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6878
431b3ead
TT
68792019-06-16 Tom Tromey <tom@tromey.com>
6880
6881 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6882 (make_all_visible): Use address of member.
6883
d04b44a1
TT
68842019-06-16 Tom Tromey <tom@tromey.com>
6885
6886 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6887 (tui_free_window, free_content, free_content_elements): Remove
6888 unnecessary cast.
6889 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6890 cast.
6891 * tui/tui-regs.c (tui_show_register_group)
6892 (tui_display_registers_from, tui_display_reg_element_at_line):
6893 Remove unnecessary cast.
6894
bf5142e7
AB
68952019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * linux-nat.c (normal_mask): Delete.
6898 (_initialize_linux_nat): Don't initialise normal_mask.
6899
c4973306
SM
69002019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6901
6902 PR gdb/24445
6903 * dwarf-index-write.h (write_psymtabs_to_index): Add
6904 dwz_basename parameter.
6905 * dwarf-index-write.c (write_gdbindex): Move file writing to
6906 write_gdbindex_1. Change return type void.
6907 (assert_file_size): Move up, remove filename parameter.
6908 (write_gdbindex_1): New function.
6909 (write_debug_names): Change return type to void, call
6910 assert_file_size.
6911 (struct index_wip_file): New struct.
6912 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6913 file logic to index_wip_file. Write index for dwz file if
6914 needed.
6915 (save_gdb_index_command): Pass basename of dwz file, if present.
6916 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6917 build-id of dwz file, if present.
6918 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6919 (dwarf2_get_dwz_file): Likewise.
6920 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6921 (dwarf2_get_dwz_file): Likewise.
6922
395f9c91
TT
69232019-06-16 Tom Tromey <tom@tromey.com>
6924
6925 * coffread.c (process_coff_symbol): Use xstrdup.
6926 * value.c (create_internalvar): Use xstrdup.
6927
cafb3438
TT
69282019-06-16 Tom Tromey <tom@tromey.com>
6929
6930 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6931 * breakpoint.c (stopin_command, stopat_command)
6932 (until_break_command, decode_location_default): Remove unnecessary
6933 cast.
6934 * utils.c (subset_compare): Remove unnecessary cast.
6935 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6936 cast.
6937 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6938 cast.
6939 * infcmd.c (path_command): Remove unnecessary cast.
6940 * coffread.c (decode_type): Remove unnecessary cast.
6941 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6942 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6943 * tui/tui-stack.c (tui_show_locator_content)
6944 (tui_show_frame_info): Remove unnecessary cast.
6945 * tui/tui-win.c (tui_scroll_forward_command)
6946 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6947 (parse_scrolling_args): Remove unnecessary cast.
6948 * tui/tui-data.c (init_win_info, tui_del_window)
6949 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6950 (free_content_elements): Remove unnecessary cast.
6951 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6952 unnecessary cast.
6953 * tui/tui-source.c (tui_set_source_content)
6954 (tui_vertical_source_scroll): Remove unnecessary cast.
6955 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6956 cast.
6957 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6958 * tui/tui-regs.c (tui_display_registers_from)
6959 (tui_display_register): Remove unnecessary cast.
6960 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6961 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6962 (make_visible): Remove unnecessary cast.
6963 * tui/tui-winsource.c (tui_erase_source_content)
6964 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6965 unnecessary cast.
6966 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6967 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6968 * stabsread.c (read_type, read_array_type, read_range_type):
6969 Remove unnecessary cast.
6970 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6971 (parse_symbol, parse_type, upgrade_type, parse_external)
6972 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6973 unnecessary cast.
6974 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6975
730ead81
TT
69762019-06-16 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-data.c (tui_alloc_generic_win_info)
6979 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6980 checks.
6981
584a927c
AB
69822019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6983 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * f-typeprint.c (f_print_type): Don't return early for not
6986 associated or not allocated types.
6987 (f_type_print_varspec_suffix): Add print_rank parameter and print
6988 ranks of array types in case they dangling.
6989 (f_type_print_base): Add print_rank parameter.
6990
30056ea0
AB
69912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * NEWS: Mention new MI commands.
6994 * break-catch-throw.c (enum exception_event_kind): Move to
6995 breakpoint.h.
6996 (print_mention_exception_catchpoint): Output text as a single
6997 message.
6998 (catch_exception_command_1): Rename to...
6999 (catch_exception_event): ...this, make non-static, update header
7000 command, and change some parameter types.
7001 (catch_catch_command): Update for changes to
7002 catch_exception_command_1.
7003 (catch_throw_command): Likewise.
7004 (catch_rethrow_command): Likewise.
7005 * breakpoint.c (enum exception_event_kind): Delete.
7006 * breakpoint.h (enum exception_event_kind): Moved here from
7007 break-catch-throw.c.
7008 (catch_exception_event): Declare.
7009 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7010 (mi_cmd_catch_throw): New function.
7011 (mi_cmd_catch_rethrow): New function.
7012 (mi_cmd_catch_catch): New function.
7013 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7014 'catch-catch' entries.
7015 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7016 (mi_cmd_catch_rethrow): Declare.
7017 (mi_cmd_catch_catch): Declare.
7018
ec8e2b6d
AB
70192019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * annotate.c (annotate_source_line): Change return type to void,
7022 update implementation to match.
7023 * annotate.h (annotate_source_line): Change return type to void,
7024 update header comment.
7025 * stack.c (print_frame_info): Don't change what frame information
7026 is printed based on whether annotations are on or not.
7027
0d3abd8c
AB
70282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7031 (annotate_source): Make static.
7032 (annotate_source_line): Moved from source.c and renamed from
7033 identify_source_line. Update the return type.
7034 * annotate.h (annotate_source): Delete declaration.
7035 (annotate_source_line): Declaration moved from source.h, and
7036 renamed from identify_source_line. Return type updated.
7037 * source.c (identify_source_line): Moved to annotate.c and renamed
7038 to annotate_source_line.
7039 (info_line_command): Remove check of annotation_level.
7040 * source.h (identify_source_line): Move declaration to annotate.h
7041 and rename to annotate_source_line.
7042 * stack.c: Add 'annotate.h' include.
7043 (print_frame_info): Remove check of annotation_level before
7044 calling annotate_source_line.
7045
00df30ae
AB
70462019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * source-cache.c (source_cache::get_plain_source_lines): Use
7049 open_source_file_with_line_charpos instead of just
7050 open_source_file, remove call to find_source_lines.
7051 (source_cache::get_source_lines): Likewise.
7052 * source.c (find_source_lines): Make static.
7053 (get_filename_and_charpos): Renamed into...
7054 (open_source_file_with_line_charpos): ..this along with changes to
7055 return a scoped_fd, and some other minor clean ups.
7056 (identify_source_line): Use open_source_file_with_line_charpos.
7057 (search_command_helper): Use open_source_file_with_line_charpos
7058 instead of just open_source_file, remove call to
7059 find_source_lines.
7060 * source.h (open_source_file_with_line_charpos): Declare new
7061 function.
7062 (find_source_lines): Delete declaration.
7063
afda45a2
AB
70642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * source.c (get_filename_and_charpos): Remove fullname
7067 parameter.
7068 (identify_source_line): Update call to get_filename_and_charpos.
7069
0735b091
TT
70702019-06-14 Tom Tromey <tromey@adacore.com>
7071
7072 PR gdb/24502:
7073 * ui-style.h (skip_ansi_escape): Update comment.
7074 * ui-file.h (class no_terminal_escape_file): New class.
7075 * ui-file.c (no_terminal_escape_file::write)
7076 (no_terminal_escape_file::puts): New methods.
7077 * cli/cli-logging.c (handle_redirections): Use
7078 no_terminal_escape_file.
7079
52ce35e2
TT
70802019-06-14 Tom Tromey <tromey@adacore.com>
7081
7082 * NEWS: Move convenience variable news above Python news.
7083
73cc7272
TT
70842019-06-14 Tom Tromey <tom@tromey.com>
7085
7086 * gnulib: Move directory to top-level.
7087 * configure.ac: Don't configure gnulib.
7088 * configure: Rebuild.
7089 * common/common-defs.h: Use new path to gnulib.
7090 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7091 (GNULIB_H): Remove.
7092 (INCGNU): Look in new gnulib location.
7093 (HFILES_NO_SRCDIR): Remove gnulib files.
7094 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7095 (generated_files): Remove GNULIB_H.
7096 ($(LIBGNU), all-lib): Remove targets.
7097 (distclean): Don't mention GNULIB_BUILDDIR.
7098 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7099
f5686554
TT
71002019-06-14 Tom Tromey <tromey@adacore.com>
7101
7102 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7103 Warn if symbol file does not provide any symbols.
7104
a0c1ffed
TT
71052019-06-14 Tom Tromey <tromey@adacore.com>
7106
7107 * source.c (find_and_open_source): Respect basenames_may_differ.
7108
7c39e397
AB
71092019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7110
7111 * annotate.c (annotate_breakpoints_invalid): Make use of
7112 scoped_restore_terminal_state.
7113 (annotate_frames_invalid): Likewise.
7114
f411722c
TT
71152019-06-14 Tom Tromey <tromey@adacore.com>
7116
7117 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7118 allow assignment to an internalvar.
7119
4268ec18
TT
71202019-06-14 Tom Tromey <tromey@adacore.com>
7121
7122 * ada-lex.l: Allow "_" in attribute names.
7123
abdb711e
TT
71242019-06-14 Tom Tromey <tromey@adacore.com>
7125
7126 PR gdb/24653:
7127 * regcache.c (registers_changed): Don't call alloca.
7128 * top.c (execute_command): Don't call alloca.
7129
4c048731
PA
71302019-06-13 Pedro Alves <palves@redhat.com>
7131
7132 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7133 'expression'. When parsing an expression, error out if there's
7134 junk after "unlimited".
7135 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7136 (do_set_command): Adjust calls to is_unlimited_literal.
7137
66eb1ed3
PA
71382019-06-13 Pedro Alves <palves@redhat.com>
7139
7140 * compile/compile.c (make_compile_options_def_group): Add braces
7141 around array_view initializer.
7142 * thread.c (make_thread_apply_all_options_def_group)
7143 (make_thread_apply_all_options_def_group): Likewise.
7144
3345721a
PA
71452019-06-13 Pedro Alves <palves@redhat.com>
7146
7147 * NEWS (New commands): Mention "maint test-options
7148 require-delimiter", "maint test-options unknown-is-error", "maint
7149 test-options unknown-is-operand" and "maint show
7150 test-options-completion-result".
7151 (New command options, command completion): New section.
7152 (Completion improvements): New section.
7153 Mention that you can abbreviate "unlimited".
7154
6206060d
PA
71552019-06-13 Pedro Alves <palves@redhat.com>
7156
7157 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7158 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7159 * unittests/cli-utils-selftests.c (test_parse_flags)
7160 (test_parse_flags_qcs): Delete.
7161 (test_cli_utils): Don't call deleted functions.
7162
6665660a
PA
71632019-06-13 Pedro Alves <palves@redhat.com>
7164
7165 * thread.c: Include "cli/cli-option.h".
7166 (tp_array_compar_ascending): Global.
7167 (tp_array_compar): Delete function.
7168 (tp_array_compar_ascending, tp_array_compar_descending): New
7169 functions.
7170 (ascending_option_def, qcs_flag_option_def)
7171 (thr_qcs_flags_option_defs)
7172 (make_thread_apply_all_options_def_group)
7173 (make_thread_apply_options_def_group): New.
7174 (thread_apply_all_command): Use gdb::option::process_options.
7175 (thread_apply_command_completer)
7176 (thread_apply_all_command_completer): New.
7177 (thread_apply_command): Use gdb::option::process_options.
7178 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7179 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7180 to generate help text of "thread apply". Adjust "taas"'s help.
7181 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7182 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7183
f7e13587
PA
71842019-06-13 Pedro Alves <palves@redhat.com>
7185
7186 * thread.c (thread_apply_command): Check for invalid TID with
7187 isdigit instead of !isalpha.
7188
5d707134
PA
71892019-06-13 Pedro Alves <palves@redhat.com>
7190
7191 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7192 (validate_flags_qcs): New.
7193 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7194 (validate_flags_qcs): Declare.
7195 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7196 (make_frame_apply_options_def_group): New.
7197 (frame_apply_command_count): Process options with
7198 gdb::option::process_options.
7199 (frame_apply_completer): New.
7200 (frame_apply_level_completer, frame_apply_all_completer)
7201 (frame_apply_completer): New.
7202 (_initialize_stack): Update help of "frame apply", "frame apply
7203 level", "frame apply all" and "faas" to mention supported options
7204 and install command completers.
7205 * stack.h (frame_apply_all_completer): Declare.
7206 * thread.c: Include "stack.h".
7207 (tfaas_command): Add "--".
7208 (_initialize_thread): Update help "tfaas" to mention supported
7209 options and install command completer.
7210
272d4594
PA
72112019-06-13 Pedro Alves <palves@redhat.com>
7212
7213 * completer.c (complete_nested_command_line): New.
7214 (gdb_completion_word_break_characters_throw): Add assertion.
7215 * completer.h (complete_nested_command_line): Declare.
7216
90a1ef87
PA
72172019-06-13 Pedro Alves <palves@redhat.com>
7218
7219 * stack.c (parse_backtrace_qualifiers): New.
7220 (backtrace_command): Use it.
7221 (backtrace_command_completer): Complete on qualifiers.
7222
d4c16835
PA
72232019-06-13 Pedro Alves <palves@redhat.com>
7224
7225 * frame.c: Include "cli/cli-option.h.
7226 (user_set_backtrace_options): New.
7227 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7228 Delete.
7229 (get_prev_frame): Adjust.
7230 (boolean_option_def, uinteger_option_def)
7231 (set_backtrace_option_defs): New.
7232 (_initialize_frame): Adjust and use
7233 gdb::option::add_setshow_cmds_for_options to install "set
7234 backtrace past-main" and "set backtrace past-entry".
7235 * frame.h: Include "cli/cli-option.h".
7236 (struct frame_print_options): Forward declare.
7237 (print_frame_arguments_all, print_frame_arguments_scalars)
7238 (print_frame_arguments_none): Declare.
7239 (print_entry_values): Delete declaration.
7240 (struct frame_print_options, user_frame_print_options): New.
7241 (struct set_backtrace_options): New.
7242 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7243 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7244 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7245 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7246 (list_args_or_locals): Add frame_print_options parameter.
7247 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7248 * python/py-framefilter.c (enumerate_args): Pass down
7249 USER_FRAME_PRINT_OPTIONS.
7250 * stack.c: Include "cli/cli-option.h".
7251 (print_frame_arguments_all, print_frame_arguments_scalars)
7252 (print_frame_arguments_none): Declare.
7253 (print_raw_frame_arguments, print_entry_values): Delete.
7254 (user_frame_print_options): New.
7255 (boolean_option_def, enum_option_def, frame_print_option_defs):
7256 New.
7257 (struct backtrace_cmd_options): New.
7258 (bt_flag_option_def): New.
7259 (backtrace_command_option_defs): New.
7260 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7261 (print_frame_arg, read_frame_arg, print_frame_args)
7262 (print_frame_info, print_frame): Add frame_print_options parameter
7263 and use it.
7264 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7265 (backtrace_command_1): Add frame_print_options and
7266 backtrace_cmd_options parameters and use them.
7267 (make_backtrace_options_def_group): New.
7268 (backtrace_command): Process command options with
7269 gdb::option::process_options.
7270 (backtrace_command_completer): New.
7271 (_initialize_stack): Extend "backtrace"'s help to mention
7272 supported options. Install completer for "backtrace".
7273 Install some settings commands with add_setshow_cmds_for_options.
7274
2daf894e
PA
72752019-06-13 Pedro Alves <palves@redhat.com>
7276
7277 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7278 and that "set/show print raw frame-arguments" are now deprecated.
7279
7280 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7281 command.
7282 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7283 * stack.c (_initialize_stack): Install "set/show print
7284 raw-frame-arguments", and deprecate "set/show print raw
7285 frame-arguments".
7286 * valprint.c (_initialize_valprint): Deprecate "set/show print
7287 raw".
7288
e6ed716c
PA
72892019-06-13 Pedro Alves <palves@redhat.com>
7290
7291 * compile/compile.c (struct compile_options): New.
7292 (compile_flag_option_def, compile_command_option_defs)
7293 (make_compile_options_def_group): New.
7294 (compile_file_command): Handle options with
7295 gdb::option::process_options.
7296 (compile_file_command_completer): New function.
7297 (compile_code_command): Handle options with
7298 gdb::option::process_options.
7299 (compile_code_command_completer): New function.
7300 (_initialize_compiler): Install completers for "compile code" and
7301 "compile file". Mention available options in "compile code" and
7302 "compile code"'s help.
7303 * completer.c (advance_to_completion_word): New, factored out from
7304 ...
7305 (advance_to_expression_complete_word_point): ... this.
7306 (advance_to_filename_complete_word_point): New.
7307 * completer.h (advance_to_filename_complete_word_point): New
7308 declaration.
7309
7d8062de
PA
73102019-06-13 Pedro Alves <palves@redhat.com>
7311
7312 * compile/compile.c: Include "cli/cli-option.h".
7313 (compile_print_value): Scope data pointer is now a
7314 value_print_options pointer; adjust.
7315 (compile_print_command): Process options. Scope data pointer is
7316 now a value_print_options pointer; adjust.
7317 (_initialize_compile): Update "compile print"'s help to include
7318 supported options. Install a completer for "compile print".
7319 * cp-valprint.c (show_vtblprint, show_objectprint)
7320 (show_static_field_print): Delete.
7321 (_initialize_cp_valprint): Don't install "set print
7322 static-members", "set print vtbl", "set print object" here.
7323 * printcmd.c: Include "cli/cli-option.h" and
7324 "common/gdb_optional.h".
7325 (print_command_parse_format): Rework to fill in a
7326 value_print_options instead of a format_data.
7327 (print_value): Change parameter type from format_data pointer to
7328 value_print_options reference. Adjust.
7329 (print_command_1): Process options. Adjust to pass down a
7330 value_print_options.
7331 (print_command_completer): New.
7332 (_initialize_printcmd): Install print_command_completer as
7333 handle_brkchars completer for the "print" command. Update
7334 "print"'s help to include supported options.
7335 * valprint.c: Include "cli/cli-option.h".
7336 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7337 here from cp-valprint.c.
7338 (boolean_option_def, uinteger_option_def)
7339 (value_print_option_defs, make_value_print_options_def_group):
7340 New. Use gdb::option::add_setshow_cmds_for_options to install
7341 "set print elements", "set print null-stop", "set print repeats",
7342 "set print pretty", "set print union", "set print array", "set
7343 print address", "set print symbol", "set print array-indexes".
7344 * valprint.h: Include <string> and "cli/cli-option.h".
7345 (make_value_print_options_def_group): Declare.
7346 (print_value): Change parameter type from format_data pointer to
7347 value_print_options reference.
7348 (print_command_completer): Declare.
7349
9d0faba9
PA
73502019-06-13 Pedro Alves <palves@redhat.com>
7351
7352 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7353 (COMMON_SFILES): Add maint-test-settings.c.
7354 * cli/cli-decode.c (boolean_enums): New global, factored out from
7355 ...
7356 (add_setshow_boolean_cmd): ... here.
7357 * cli/cli-decode.h (boolean_enums): Declare.
7358 * cli/cli-option.c: New file.
7359 * cli/cli-option.h: New file.
7360 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7361 factored out from ...
7362 (parse_cli_boolean_value(const char *)): ... this.
7363 (is_unlimited_literal): Change parameter type to pointer to
7364 pointer. Adjust and advance ARG pointer.
7365 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7366 (parse_cli_var_enum): New, factored out from ...
7367 (do_set_command): ... this. Adjust.
7368 * cli/cli-setshow.h (parse_cli_boolean_value)
7369 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7370 (parse_cli_var_enum): Declare.
7371 * cli/cli-utils.c: Include "cli/cli-option.h".
7372 (get_ulongest): New.
7373 * cli/cli-utils.h (get_ulongest): Declare.
7374 (check_for_argument): New overloads.
7375 * maint-test-options.c: New file.
7376
2c722807
PA
73772019-06-13 Pedro Alves <palves@redhat.com>
7378
7379 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7380 parse a range if "-" is at the end of the string.
7381
dee7b4c8
PA
73822019-06-13 Pedro Alves <palves@redhat.com>
7383
7384 * cli/cli-setshow.c (parse_auto_binary_operation)
7385 (parse_cli_boolean_value): Don't allow "o".
7386
dca0f6c0
PA
73872019-06-13 Pedro Alves <palves@redhat.com>
7388
7389 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7390 * NEWS: Mention maint test-settings KIND.
7391 * maint-test-settings.c: New file.
7392
597bf39d
PA
73932019-06-13 Pedro Alves <palves@redhat.com>
7394
7395 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7396 completer.
7397 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7398 "set" completers.
7399
48c410fb
PA
74002019-06-13 Pedro Alves <palves@redhat.com>
7401
7402 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7403 after item.
7404
93bcb043
PA
74052019-06-13 Pedro Alves <palves@redhat.com>
7406
7407 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7408
cbba3ecd
PA
74092019-06-13 Pedro Alves <palves@redhat.com>
7410
7411 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7412 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7413 call.
7414 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7415 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7416 calls.
7417 (check_for_argument): Skip spaces after argument.
7418
b9a3f842
PA
74192019-06-13 Pedro Alves <palves@redhat.com>
7420
7421 * thread.c (thread_apply_command): Adjust TID parsing.
7422 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7423 detected before end of string.
7424 (tid_is_in_list): Error out if LIST is invalid.
7425
3844e605
PA
74262019-06-13 Pedro Alves <palves@redhat.com>
7427
7428 * completer.c (complete_line_internal_1): Rewind completion word
7429 point.
7430 (completion_tracker::advance_custom_word_point_by): Change
7431 parameter type to int.
7432 * completer.h (completion_tracker::advance_custom_word_point_by):
7433 Likewise.
7434
00b56dbe
PA
74352019-06-13 Pedro Alves <palves@redhat.com>
7436
7437 * completer.c (advance_to_completion_word): Handle delimiters.
7438
d106773e
PA
74392019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7440
7441 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7442
08f10e02
TT
74432019-06-11 Tom Tromey <tom@tromey.com>
7444
7445 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7446 (xmalloc_failed): Move to alloc.c.
7447 * alloc.c: New file.
7448 * Makefile.in (COMMON_SFILES): Add alloc.c.
7449
1c7fe951
TT
74502019-06-11 Tom Tromey <tom@tromey.com>
7451
7452 * nat/linux-waitpid.c: Don't include server.h.
7453 (linux_debug): Remove.
7454 (my_waitpid): Update.
7455
89549d7f
TT
74562019-06-11 Tom Tromey <tromey@adacore.com>
7457
7458 * infcall.c (_initialize_infcall): Remove trailing newline from
7459 help.
7460 * user-regs.c (_initialize_user_regs): Remove trailing newline
7461 from help.
7462 * typeprint.c (_initialize_typeprint): Remove trailing newline
7463 from help.
7464 * reverse.c (_initialize_reverse): Remove trailing newlines from
7465 help.
7466 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7467 from help.
7468 * language.c (add_set_language_command): Remove trailing newline
7469 from help.
7470 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7471 help.
7472 * disasm.c (_initialize_disasm): Remove trailing newline from
7473 help.
7474 * top.c (init_main): Remove trailing newline from help.
7475 * interps.c (_initialize_interpreter): Remove trailing newline
7476 from help.
7477 * btrace.c (_initialize_btrace): Remove trailing newlines from
7478 help.
7479 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7480 from help.
7481 * python/python.c (_initialize_python): Remove trailing newline
7482 from help.
7483 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7484 help.
7485 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7486 from help. Reformat some text.
7487 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7488 from help.
7489 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7490 newline from help.
7491
86108c13
TT
74922019-06-11 Tom Tromey <tromey@adacore.com>
7493
7494 * darwin-nat.c (darwin_decode_exception_message)
7495 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7496
a7067863
AB
74972019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7498
7499 * valops.c (value_slice): Check for not allocated or not
7500 associated values.
7501
9ab08412
TV
75022019-06-10 Tom de Vries <tdevries@suse.de>
7503
7504 PR gdb/24618
7505 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7506 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7507 invalid.
7508
f19e22e9
TV
75092019-06-10 Tom de Vries <tdevries@suse.de>
7510
7511 PR gdb/24611
7512 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7513 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7514
e99f9db0
TV
75152019-06-10 Tom de Vries <tdevries@suse.de>
7516
7517 PR symtab/24545
7518 * symtab.c (struct demangled_name_entry): Add language field.
7519 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7520 static minimal symbol". Set and use language field.
7521
9bf7038b
TT
75222019-06-10 Tom Tromey <tromey@adacore.com>
7523
7524 * ada-lang.c (_initialize_ada_language): Update help text.
7525
422186a9
TT
75262019-06-10 Tom Tromey <tromey@adacore.com>
7527
7528 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7529 with a newline.
7530 * guile/guile.c (handle_boot_error): Don't end warning with a
7531 newline.
7532 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7533 warning with a newline.
7534 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7535 newline.
7536 (s12z_frame_cache): Likewise.
7537 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7538 a newline.
7539 * solib-svr4.c (disable_probes_interface): Don't end warning with
7540 a newline.
7541 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7542 newline.
7543 * python/python.c (do_finish_initialization): Don't end warning
7544 with a newline.
7545
25ce02ee
TT
75462019-06-10 Tom Tromey <tom@tromey.com>
7547
7548 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7549 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7550 gdbpy_enter.
7551
caa429d8
TT
75522019-06-10 Tom Tromey <tromey@adacore.com>
7553
7554 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7555 data.
7556 (elf_new_init): Don't call stabsread_new_init.
7557 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7558 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7559 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7560
81873cc8
TV
75612019-06-10 Tom de Vries <tdevries@suse.de>
7562
7563 PR symtab/16264
7564 PR symtab/24517
7565 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7566
4fa0265e
РИ
75672019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7568
7569 * source.c (find_and_open_source): Also rewrite relative file
7570 names.
7571
1a3da2cd
AB
75722019-04-26 Amos Bird <amosbird@gmail.com>
7573
7574 * annotate.c (annotate_thread_exited): Add "thread-exited"
7575 annotation.
7576
3847a7bf
TT
75772019-06-06 Tom Tromey <tromey@adacore.com>
7578
7579 * maint.h (class scoped_command_stats): Use
7580 DISABLE_COPY_AND_ASSIGN.
7581 <print_time>: New method.
7582 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7583 print_time.
7584 (scoped_command_stats::print_time): New method.
7585
312617a3
AB
75862019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7587
7588 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7589 instructions of lengths 6 or 8 bytes.
7590
b02f78f9
PA
75912019-06-04 Pedro Alves <palves@redhat.com>
7592
7593 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7594
7595 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7596 * breakpoint.c (condition_completer): Likewise.
7597 * cli/cli-dump.c (scan_expression): Likewise.
7598 * common/filestuff.c (mkdir_recursive): Likewise.
7599 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7600 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7601 (gdb_abspath): Likewise.
7602 * compile/compile-cplus-types.c
7603 (compile_cplus_instance::decl_name): Likewise.
7604 * completer.c (complete_explicit_location):
7605 (signal_completer, reg_or_group_completer_1): Likewise.
7606 * cp-support.c (cp_remove_params_if_any): Likewise.
7607 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7608 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7609 * infcmd.c (strip_bg_char): Likewise.
7610 * linespec.c (copy_token_string): Likewise.
7611 * mi/mi-main.c (output_cores): Likewise.
7612 * psymtab.c (psymtab_search_name):
7613 * symfile.c (test_set_ext_lang_command): Likewise.
7614 * target.c (target_fileio_read_stralloc): Likewise.
7615 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7616 * value.c (complete_internalvar): Likewise.
7617
e1f2e1a2
CB
76182019-06-04 Christian Biesinger <cbiesinger@google.com>
7619
7620 Add objfile property to gdb.Type.
d3238f7d
PA
7621 * NEWS: Mention Python API addition.
7622 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7623
e664d728
PW
76242019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7625
7626 * NEWS: Mention the new set|show style [title|highlight].
7627 Mention changes to "show style", "help" and "apropos".
7628
66d8c862
PW
76292019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7630
7631 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7632 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7633 instead of print_help_for_command.
7634 (print_doc_of_command): New function.
7635 (help_list): Add 'apropos -v word' suggestion.
7636 (print_help_for_command): Style the command name using title style.
7637 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7638 (_initialize_cli_cmds): Describe -v in apropos_command help.
7639
9303eb2f
PW
76402019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7641
7642 * cli/cli-style.h (cli_style_option): Add name in constructor,
7643 add m_name class member, add constructor with intensity,
7644 add name class function.
7645 (cli_style_option::add_setshow_commands): Remove name argument.
7646 (highlight_style, title_style): New styles.
7647 * cli/cli-style.c (do_show): New function that shows a style
7648 characteristic styling the style name with itself.
7649 (set_style_name): New function.
7650 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7651 Update all callers according to the changes in cli/cli-style.h.
7652 * utils.h (fputs_highlighted): New function.
7653 * utils.c (fputs_highlighted): Likewise.
7654
e2c52041
PW
76552019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7656
7657 * NEWS: Mention new pipe command and new convenience variables.
7658
947d3946
PW
76592019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7660
7661 * cli/cli-cmds.c (pipe_command): New function.
7662 (_initialize_cli_cmds): Call add_com for pipe_command.
7663 Define | as an alias for pipe.
7664 (exit_status_set_internal_vars): New function.
7665 (shell_escape): Call exit_status_set_internal_vars.
7666 cli/cli-decode.c (find_command_name_length): Recognize | as
7667 a single character command.
7668
b8fd0918
PW
76692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7670
7671 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7672 top.c (execute_command_to_ui_file): New function, mostly a copy
7673 of execute_command_to_string.
7674 (execute_command_to_string): Implement by calling
7675 execute_command_to_ui_file.
7676
68bb5386
PW
76772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7678
7679 * top.h (saved_command_line): Remove declaration.
7680 * top.c (previous_saved_command_line, previous_repeat_arguments):
7681 New variables.
7682 (saved_command_line): Make static, define together with other
7683 'repeat variables'.
7684 (dont_repeat): Clear repeat_arguments.
7685 (repeat_previous, get_saved_command_line, save_command_line):
7686 New functions.
7687 (gdb_init): Initialize saved_command_line
7688 and previous_saved_command_line.
7689 * main.c (captured_main_1): Remove saved_command_line initialization.
7690 * event-top.c (handle_line_of_input): Update to use
7691 the new 'repeat' related functions instead of direct access to
7692 saved_command_line.
7693 * command.h (repeat_previous, get_saved_command_line,
7694 save_command_line): New declarations.
7695 (dont_repeat): Add comment.
7696
bfcdb852
TT
76972019-05-30 Tom Tromey <tromey@adacore.com>
7698
7699 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7700 Fix comment.
7701 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7702
0ef209f2
JV
77032019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7704
7705 PR cli/24587
7706 * completer.c (complete): Initialize variable word.
7707
955b06fa
SDJ
77082019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7709
7710 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7711 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7712 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7713 'body' is NULL to the outter 'if', protecting the '!is_define'
7714 situation as well.
7715
fa9c3fa0
TT
77162019-05-29 Tom Tromey <tromey@adacore.com>
7717
7718 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7719 (dwarf_unknown): New function.
7720 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7721 (dwarf_type_encoding_name): Use dwarf_unknown.
7722
4330d61d
TT
77232019-05-29 Tom Tromey <tromey@adacore.com>
7724
7725 PR c++/20020:
7726 * cp-valprint.c (cp_print_value_fields): Call
7727 cp_print_static_field inside "try".
7728
33a6bc35
TT
77292019-05-29 Tom Tromey <tromey@adacore.com>
7730
7731 * inflow.c (struct terminal_info): Add default operator=.
7732 * configure: Rebuild.
7733 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7734 -Wdeprecated-copy-dtor, -Wredundant-move.
7735
000439d5
TT
77362019-05-29 Tom Tromey <tromey@adacore.com>
7737
7738 * NEWS: Add entry.
7739 * infcmd.c (print_return_value_1): Handle finish_print
7740 option.
7741 (show_print_finish): New function.
7742 (_initialize_infcmd): Add "set/show print finish" commands.
7743 * valprint.c (user_print_options): Initialize new member.
7744 * valprint.h (struct value_print_options) <finish_print>: New
7745 member.
7746
c0e70c62
TT
77472019-05-28 Tom Tromey <tromey@adacore.com>
7748
7749 * ada-lang.c (ada_remove_Xbn_suffix)
7750 (find_old_style_renaming_symbol)
7751 (parse_old_style_renaming): Remove.
7752 (ada_find_renaming_symbol): Don't call
7753 find_old_style_renaming_symbol.
7754 (ada_is_renaming_symbol): Rename from
7755 ada_find_renaming_symbol. Remove "block" parameter. Return
7756 bool. Now static.
7757 (ada_read_var_value): Update and simplify.
7758 * ada-exp.y (write_var_or_type): Remove old code.
7759
766f8836
AH
77602019-05-28 Alan Hayward <alan.hayward@arm.com>
7761
68255adc 7762 PR gdb/25010
766f8836
AH
7763 * event-top.c: Remove include comment.
7764 * inflow.c (class scoped_ignore_sigttou): Move from here...
7765 * inflow.h (class scoped_ignore_sigttou): ...to here.
7766 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7767 * top.c: Remove include comment.
7768
eb41253a
TT
77692019-05-27 Tom Tromey <tom@tromey.com>
7770
7771 * NEWS: Fix typo.
7772
4ca51187
TT
77732019-05-22 Tom Tromey <tromey@adacore.com>
7774
7775 * target.c (target_follow_exec): Constify parameter.
7776 * target-delegates.c: Rebuild.
7777 * remote.c (remote_target::follow_exec): Constify parameter.
7778 * infrun.c (follow_exec): Constify parameter.
7779 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7780 (target_follow_exec): Likewise.
7781
8fca4da0
AH
77822019-05-22 Alan Hayward <alan.hayward@arm.com>
7783
7784 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7785 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7786
b7060614
AH
77872019-05-22 Alan Hayward <alan.hayward@arm.com>
7788
7789 * NEWS: Add debugredirect and testsuite sections.
7790
0a5954bd
SC
77912019-05-22 Simon Cook <simon.cook@embecosm.com>
7792
7793 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7794 target descriptions using exclusively floating point register name
7795 aliases.
7796
dc42e902
AB
77972019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 PR gdb/18644:
7800 * f-lang.c (build_fortran_types): Handle the case where
7801 gdbarch_floatformat_for_type returns a nullptr.
7802
fb7806c7
TV
78032019-05-21 Tom de Vries <tdevries@suse.de>
7804
7805 PR cli/24587
7806 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7807
34d11c68
AB
78082019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7809
7810 PR gdb/18644:
7811 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7812 16-byte floats.
7813 * i386-tdep.c (i386_floatformat_for_type): Use
7814 floatformats_ia64_quad for the 16-byte floating point component
7815 within a fortran 32-byte complex number.
7816
122cf0f2
AB
78172019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7818
7819 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7820 delete default constructor.
7821 (find_partial_die): Update to return const struct.
7822 (partial_die_parent_scope): Move variable declaration into scope
7823 of its use and change its type to auto.
7824 (guess_partial_die_structure_name): Likewise.
7825 (partial_die_info::fixup): Likewise.
7826
33d0e35a
TT
78272019-05-17 Tom Tromey <tromey@adacore.com>
7828
7829 * source.c (find_and_open_source): Remove cast.
7830
a45575b0
TT
78312019-05-17 Tom Tromey <tromey@adacore.com>
7832
7833 * annotate.c (annotate_source): Make "filename" const.
7834 * annotate.h (annotate_source): Use const.
7835
81f47ac2
AH
78362019-05-17 Alan Hayward <alan.hayward@arm.com>
7837
7838 * disasm.c (set_disassembler_options): Send errors to stderr.
7839
ca1285d1
AH
78402019-05-17 Alan Hayward <alan.hayward@arm.com>
7841
7842 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7843 (cli_interp_base::set_logging): Check debug_redirect.
7844 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7845 * cli/cli-logging.c (debug_redirect): Add static variable.
7846 (pop_output_files): Add default param.
7847 (handle_redirections): Print debug setting.
7848 (show_logging_command): Likewise.
7849 (_initialize_cli_logging): Add debugredirect command.
7850 * interps.c (current_interp_set_logging): Add debug_redirect
7851 parameter.
7852 * interps.h (set_logging): Add debug_redirect parameter.
7853 (current_interp_set_logging): Likewise.
7854 * mi/mi-common.h: Likewise.
7855 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7856
78572019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7858 Tom Tromey <tromey@adacore.com>
7859
7860 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7861 directly.
7862 * cli/cli-interp.h (make_logging_output): Remove declaration.
7863 * cli/cli-logging.c (make_logging_output): Remove function.
7864 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7865 directly.
7866 * ui-file.c (tee_file::tee_file): Remove bools.
7867 (tee_file::~tee_file): Remove deletes.
7868 * ui-file.h (tee_file): Remove bools.
7869
26648588
JV
78702019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7871
7872 * mi/mi-cmds.h (mi_cmd_complete): New function.
7873 * mi/mi-main.c (mi_cmd_complete): Likewise.
7874 * mi/mi-cmds.c: Define new MI command -complete.
7875 * NEWS: Mention new -complete command.
7876
6e035501
JV
78772019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7878
7879 * completer.h (complete): New function.
7880 * completer.c (complete): Likewise.
7881 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7882 function defined in completer.h.
7883
7d0e2ece
JV
78842019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7885
e79be6e5 7886 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7887
fb816e8b
TV
78882019-05-17 Tom de Vries <tdevries@suse.de>
7889
7890 PR gdb/24094
7891 * dwarf2read.c (struct cu_partial_die_info): New struct.
7892 (find_partial_die): Return cu_partial_die_info.
7893 (partial_die_parent_scope, guess_partial_die_structure_name)
7894 (partial_die_info::fixup): Handle new return type of find_partial_die.
7895
677052f2
SDJ
78962019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7897
a1726c38 7898 PR breakpoints/24541
677052f2
SDJ
7899 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7900 "std::string", simplifying the algorithm.
7901
f3da9116
SDJ
79022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7903
7904 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7905 (stap_static_probe_ops::get_probes): Likewise.
7906
f1bb75ab
SDJ
79072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7908
7909 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7910 '-')" and "else if".
7911 (stap_parse_single_operand): Join checks for
7912 "gdbarch_stap_parse_special_token_p" and
7913 "gdbarch_stap_parse_special_token" in the same "if" statement.
7914 Invert check when verifying for operation on register
7915 displacement.
7916
3ca58cde
SDJ
79172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7918
7919 * stap-probe.c (stap_get_opcode): Update comment.
7920 (stap_get_expected_argument_type): Likewise.
7921 (handle_stap_probe): Likewise.
7922
af2d9bee
SDJ
79232019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7924
7925 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7926 return type to 'bool'. Adjust comment. Use 'bool' when
7927 appropriate.
7928 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7929 * stap-probe.c (stap_parse_argument_1): Likewise.
7930 (stap_is_operator): Likewise.
7931 (stap_is_generic_prefix): Likewise.
7932 (stap_is_register_prefix): Likewise.
7933 (stap_is_register_indirection_prefix): Likewise.
7934 (stap_is_integer_prefix): Likewise.
7935 (stap_generic_check_suffix): Likewise.
7936 (stap_check_integer_suffix): Likewise.
7937 (stap_check_register_suffix): Likewise.
7938 (stap_check_register_indirection_suffix): Likewise.
7939 (stap_parse_register_operand): Likewise.
7940 (stap_parse_single_operand): Likewise.
7941 (stap_parse_argument_1): Likewise.
7942 (stap_probe::get_argument_count): Likewise.
7943 (stap_is_operator): Likewise.
7944
61c9c421
TT
79452019-05-16 Tom Tromey <tromey@adacore.com>
7946
7947 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7948 keyword to foreach.
7949
9ddc1af1
SM
79502019-05-15 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * linux-thread-db.c (try_thread_db_load_1): Change return type
7953 to bool.
7954 (try_thread_db_load): Likewise.
7955 (try_thread_db_load_from_pdir_1): Likewise.
7956 (try_thread_db_load_from_pdir): Likewise.
7957 (try_thread_db_load_from_sdir): Likewise.
7958 (try_thread_db_load_from_dir): Likewise.
7959 (thread_db_load_search): Likewise.
7960 (has_libpthread): Likewise.
7961 (thread_db_load): Likewise.
7962
7bede828
SDJ
79632019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7964
7965 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7966 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7967 NULL, and complain/return if that's the case.
7968
c5358db4
JD
79692019-05-15 John Darrington <john@darrington.wattle.id.au>
7970
7971 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7972 (advance, posn, abstract_read_memory): New functions.
7973 [struct mem_read_abstraction]: New struct.
7974 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7975
c408a94f
TT
79762019-05-14 Tom Tromey <tromey@adacore.com>
7977
7978 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7979 value is not lval_memory.
7980
e7bd7fba
TT
79812019-05-14 Tom Tromey <tromey@adacore.com>
7982
7983 * solib.c (info_sharedlibrary_command): Style the file name.
7984
a6d0f249
AH
79852019-05-14 Alan Hayward <alan.hayward@arm.com>
7986
7987 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7988 (aarch64_vnv_type): Likewise.
7989 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7990 * common/tdesc.c: Likewise.
7991 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7992 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7993 * features/aarch64-fpu.xml: Add ieee half view.
7994 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7995 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7996 * gdbtypes.h (struct builtin_type): Likewise.
7997 (struct objfile_type): Likewise.
7998
66b8bb74
SM
79992019-05-12 Paul Naert <paul.naert@polymtl.ca>
8000
8001 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8002 typo.
8003 * location.h (string_to_event_location): Likewise.
8004
21c219fd
JB
80052019-05-11 Joel Brobecker <brobecker@adacore.com>
8006
8007 GDB 8.3 released.
8008
13674803
SM
80092019-05-10 Simon Marchi <simon.marchi@efficios.com>
8010
8011 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8012 New variable declaration.
8013 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8014 New variable.
8015 (print_one_breakpoint): Use ui_out::test_flags and new global
8016 variable to compute use_fixed_output.
8017 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8018 Remove.
8019 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8020 (mi_multi_location_breakpoint_output_fixed): Remove.
8021 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8022 new variable.
8023 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8024 fix_multi_location_breakpoint_output flag if version >= 3.
8025 * ui-out.h (enum ui_out_flag)
8026 <fix_multi_location_breakpoint_output>: New enumerator.
8027
a9eac7f9
SM
80282019-05-10 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8031
71bed2db
TT
80322019-05-10 Tom Tromey <tromey@adacore.com>
8033
8034 * ada-lang.c (catch_ada_completer): New function.
8035 (_initialize_ada_language): Use it.
8036
24c54127
TT
80372019-05-10 Tom Tromey <tromey@adacore.com>
8038
8039 * thread.c (print_thread_info): Make "requested_threads" const.
8040 * gdbthread.h (print_thread_info): Make "requested_threads"
8041 const.
8042 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8043 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8044
7a102139
TT
80452019-05-08 Tom Tromey <tom@tromey.com>
8046
8047 * gdbtypes.c (objfile_type_data): Change type.
8048 (objfile_type, _initialize_gdbtypes): Update.
8049
924d79e2
TT
80502019-05-08 Tom Tromey <tom@tromey.com>
8051
8052 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8053 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8054 (_initialize_dwarf2_frame): Update.
8055
4c58e337
TT
80562019-05-08 Tom Tromey <tom@tromey.com>
8057
8058 * objc-lang.c (objc_objfile_data): Change type.
8059 (find_methods): Update.
8060 (_initialize_objc_lang): Remove.
8061
d772d2ab
TT
80622019-05-08 Tom Tromey <tom@tromey.com>
8063
8064 * stabsread.c (rs6000_builtin_type_data): Change type.
8065 (rs6000_builtin_type, _initialize_stabsread): Update.
8066
d11d83f4
TT
80672019-05-08 Tom Tromey <tom@tromey.com>
8068
8069 * mips-tdep.c (mips_pdr_data): Remove.
8070 (_initialize_mips_tdep): Update.
8071
9a73f0ad
TT
80722019-05-08 Tom Tromey <tom@tromey.com>
8073
8074 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8075 (hppa_init_objfile_priv_data, read_unwind_info)
8076 (find_unwind_entry, _initialize_hppa_tdep): Update.
8077
8127a2fa
TT
80782019-05-08 Tom Tromey <tom@tromey.com>
8079
8080 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8081 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8082 on obstack.
8083 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8084
91d3055d
TT
80852019-05-08 Tom Tromey <tom@tromey.com>
8086
8087 * mdebugread.c (basic_type_data): Change type.
8088 (basic_type, _initialize_mdebugread): Update.
8089
31930bd3
TT
80902019-05-08 Tom Tromey <tom@tromey.com>
8091
8092 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8093
bdb3ed9e
TT
80942019-05-08 Tom Tromey <tom@tromey.com>
8095
8096 * nto-tdep.c (nto_inferior_data_reg): Change type.
8097 (nto_inferior_data): Update.
8098 (nto_inferior_data_cleanup, nto_new_inferior_data)
8099 (_initialize_nto_tdep): Remove.
8100 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8101
f37b313d
TT
81022019-05-08 Tom Tromey <tom@tromey.com>
8103
8104 * ada-lang.c (struct ada_inferior_data): Add initializers.
8105 (ada_inferior_data): Change type.
8106 (ada_inferior_data_cleanup): Remove.
8107 (get_ada_inferior_data, ada_inferior_exit)
8108 (struct ada_pspace_data): Add initializers, destructor.
8109 (ada_pspace_data_handle): Change type.
8110 (get_ada_pspace_data): Update.
8111 (ada_pspace_data_cleanup): Remove.
8112
24699405
TT
81132019-05-08 Tom Tromey <tom@tromey.com>
8114
8115 * coffread.c (struct coff_symfile_info): Add initializers.
8116 (coff_objfile_data_key): Move lower. Change type.
8117 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8118 Update.
8119 (coff_free_info): Remove.
8120
d4e05d2f
TT
81212019-05-08 Tom Tromey <tom@tromey.com>
8122
8123 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8124 (fbsd_pspace_data_handle): Move lower. Change type.
8125 (get_fbsd_pspace_data): Update.
8126 (fbsd_pspace_data_cleanup): Remove.
8127 (_initialize_fbsd_tdep): Update.
8128
14ef6690
TT
81292019-05-08 Tom Tromey <tom@tromey.com>
8130
8131 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8132 (get_ada_tasks_pspace_data): Update.
8133 (ada_tasks_pspace_data_cleanup): Remove.
8134 (_initialize_tasks): Update.
8135 (ada_tasks_inferior_data_handle): Change type.
8136 (get_ada_tasks_inferior_data): Update.
8137 (ada_tasks_inferior_data_cleanup): Remove.
8138 (struct ada_tasks_pspace_data): Add initializers.
8139
814cf43a
TT
81402019-05-08 Tom Tromey <tom@tromey.com>
8141
8142 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8143 * symfile-debug.c (debug_sym_get_probes): Change type.
8144 * stap-probe.c (handle_stap_probe):
8145 (stap_static_probe_ops::get_probes): Change type.
8146 * probe.h (class static_probe_ops) <get_probes>: Change type.
8147 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8148 (parse_probes_in_pspace): Update.
8149 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8150 Update.
8151 (any_static_probe_ops::get_probes): Change type.
8152 * elfread.c (elfread_data): New typedef.
8153 (probe_key): Change type.
8154 (elf_get_probes): Likewise. Update.
8155 (probe_key_free): Remove.
8156 (_initialize_elfread): Update.
8157 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8158 Change type.
8159 (dtrace_process_dof_probe, dtrace_process_dof)
8160 (dtrace_static_probe_ops::get_probe): Change type.
8161
02dc647e
TT
81622019-05-08 Tom Tromey <tom@tromey.com>
8163
8164 * xcoffread.c (struct xcoff_symfile_info): Rename from
8165 coff_symfile_info. Add initializers.
8166 (xcoff_objfile_data_key): Move lower. Change type.
8167 (XCOFF_DATA): Rewrite.
8168 (xcoff_free_info): Remove.
8169 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8170 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8171 (xcoff_initial_scan): Update.
8172
09232438
TT
81732019-05-08 Tom Tromey <tom@tromey.com>
8174
8175 * solib-svr4.c (struct svr4_info): Add initializers and
8176 destructor.
8177 <probes_table>: Now an htab_up.
8178 (solib_svr4_pspace_data): Change type.
8179 (free_probes_table): Simplify.
8180 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8181 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8182 (probes_table_remove_objfile_probes, register_solib_event_probe)
8183 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8184 (_initialize_svr4_solib): Update.
8185
7b4a314f
TT
81862019-05-08 Tom Tromey <tom@tromey.com>
8187
8188 * remote.c (remote_pspace_data): Change type.
8189 (remote_pspace_data_cleanup): Remove.
8190 (get_remote_exec_file, set_pspace_remote_exec_file)
8191 (_initialize_remote): Update.
8192
51d3063a
TT
81932019-05-08 Tom Tromey <tom@tromey.com>
8194
8195 * breakpoint.c (breakpoint_objfile_key): Change type.
8196 (get_breakpoint_objfile_data): Update.
8197 (free_breakpoint_objfile_data): Remove.
8198 (_initialize_breakpoint): Update.
8199
89fb8848
TT
82002019-05-08 Tom Tromey <tom@tromey.com>
8201
8202 * linux-tdep.c (struct linux_info): Add initializers.
8203 (linux_inferior_data): Move. Change type.
8204 (invalidate_linux_cache_inf): Update.
8205 (linux_inferior_data_cleanup): Remove.
8206 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8207
e9b89e2d
TT
82082019-05-08 Tom Tromey <tom@tromey.com>
8209
8210 * auxv.c (auxv_inferior_data): Move. Change type.
8211 (auxv_inferior_data_cleanup): Remove.
8212 (invalidate_auxv_cache_inf): Rewrite.
8213 (get_auxv_inferior_data, _initialize_auxv): Update.
8214
8c42777c
TT
82152019-05-08 Tom Tromey <tom@tromey.com>
8216
8217 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8218 (symfile_debug_objfile_data_key): Change type.
8219 (symfile_debug_installed, debug_qf_has_symbols)
8220 (debug_qf_find_last_source_symtab)
8221 (debug_qf_forget_cached_source_info)
8222 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8223 (debug_qf_print_stats, debug_qf_dump)
8224 (debug_qf_expand_symtabs_for_function)
8225 (debug_qf_expand_all_symtabs)
8226 (debug_qf_expand_symtabs_with_fullname)
8227 (debug_qf_map_matching_symbols)
8228 (debug_qf_expand_symtabs_matching)
8229 (debug_qf_find_pc_sect_compunit_symtab)
8230 (debug_qf_map_symbol_filenames)
8231 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8232 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8233 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8234 (debug_sym_read_linetable, debug_sym_relocate): Update.
8235 (symfile_debug_free_objfile): Remove.
8236 (install_symfile_debug_logging, _initialize_symfile_debug):
8237 Update.
8238
5bfd760d
TT
82392019-05-08 Tom Tromey <tom@tromey.com>
8240
8241 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8242 allocate_on_obstack.
8243 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8244 (get_dwarf2_per_objfile): Update.
8245 (set_dwarf2_per_objfile): Remove.
8246 (dwarf2_has_info, dwarf2_get_section_info): Update.
8247 (dwarf2_free_objfile): Remove.
8248 (_initialize_dwarf2_read): Update.
8249
e85e19b4
TT
82502019-05-08 Tom Tromey <tom@tromey.com>
8251
8252 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8253 initializers.
8254 <unsupported_script_warning_printed,
8255 script_not_found_warning_printed>: Now bool.
8256 (auto_load_pspace_data): Change type.
8257 (~auto_load_pspace_info): Rename from
8258 auto_load_pspace_data_cleanup.
8259 (get_auto_load_pspace_data, init_loaded_scripts_info)
8260 (clear_section_scripts, maybe_print_unsupported_script_warning)
8261 (maybe_print_script_not_found_warning, _initialize_auto_load):
8262 Update.
8263
f6aa7436
TT
82642019-05-08 Tom Tromey <tom@tromey.com>
8265
8266 * objfiles.c (objfile_pspace_info): Add destructor and
8267 initializers.
8268 (objfiles_pspace_data): Change type.
8269 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8270 (get_objfile_pspace_data): Update.
8271 (objfiles_bfd_data): Change type.
8272 (get_objfile_bfd_data): Update.
8273 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8274
6ae614f6
TT
82752019-05-08 Tom Tromey <tom@tromey.com>
8276
8277 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8278 Change type.
8279 (get_catch_syscall_inferior_data): Update.
8280 (catch_syscall_inferior_data_cleanup): Remove.
8281 (_initialize_break_catch_syscall): Update.
8282
6509b8eb
TT
82832019-05-08 Tom Tromey <tom@tromey.com>
8284
8285 * inflow.c (struct terminal_info): Add destructor and
8286 initializers.
8287 (inflow_inferior_data): Change type.
8288 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8289 (get_inflow_inferior_data, inflow_inferior_exit)
8290 (swap_terminal_info, _initialize_inflow): Update.
8291
35632941
TT
82922019-05-08 Tom Tromey <tom@tromey.com>
8293
8294 * target-dcache.c (target_dcache_cleanup): Remove.
8295 (target_dcache_aspace_key): Change type.
8296 (target_dcache_init_p, target_dcache_invalidate)
8297 (target_dcache_get, target_dcache_get_or_init)
8298 (_initialize_target_dcache): Update.
8299 * dcache.h (struct dcache_deleter): New.
8300
3017b94d
TT
83012019-05-08 Tom Tromey <tom@tromey.com>
8302
8303 * symtab.c (struct symbol_cache): Add destructor and
8304 initializers.
8305 (symbol_cache_key): Move. Change type.
8306 (make_symbol_cache, free_symbol_cache): Remove.
8307 (get_symbol_cache): Update.
8308 (symbol_cache_cleanup): Remove.
8309 (ALL_PSPACES, symbol_cache_flush)
8310 (maintenance_print_symbol_cache)
8311 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8312 Update.
8313
a32ad8c5
TT
83142019-05-08 Tom Tromey <tom@tromey.com>
8315
8316 * symtab.c (struct main_info): Add destructor and initializers.
8317 (main_progspace_key): Move. Change type.
8318 (get_main_info): Update.
8319 (main_info_cleanup): Remove.
8320 (_initialize_symtab): Update.
8321
5f6e90a0
TT
83222019-05-08 Tom Tromey <tom@tromey.com>
8323
8324 * registry.h (DECLARE_REGISTRY): Define the _key class.
8325
1bd0c6e4
AB
83262019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * NEWS: Merge two 'New commands' sections.
8329
2228ef77
XR
83302019-05-08 Joel Brobecker <brobecker@adacore.com>
8331
8332 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8333 parameter and use Ada language definition instead.
8334 (ada_val_print_ptr): Remove unused language parameter.
8335 (ada_val_print_num): Remove language parameter and use Ada language
8336 definition instead.
8337 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8338 parameter.
8339 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8340 parameter and use Ada language definition instead.
8341 (ada_val_print_1): Update all ada_val_print_xxx calls.
8342 Remove language parameter.
8343 (ada_val_print): Update ada_val_print_1 call.
8344
60fcc1c3
TT
83452019-05-08 Tom Tromey <tromey@adacore.com>
8346
8347 * remote.c (remote_hw_watchpoint_limit)
8348 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8349 Now static.
8350
ed2b7c17
TT
83512019-05-08 Tom Tromey <tromey@adacore.com>
8352
8353 * maint.c (_initialize_maint_cmds): Move initialization code to
8354 remote.c.
8355 (watchdog, show_watchdog): Move to remote.c.
8356 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8357 "watchdog" static.
8358 (_initialize_remote): Move initialization code from maint.c.
8359 * defs.h (watchdog): Don't declare.
8360
b0be6c91
TT
83612019-05-08 Tom Tromey <tromey@adacore.com>
8362
8363 * tui/tui-interp.c: Include main.h.
8364 * interps.c: Include main.h.
8365 * main.h (interpreter_p): Declare.
8366 * defs.h (interpreter_p): Don't declare.
8367
587ee17b
TT
83682019-05-08 Tom Tromey <tromey@adacore.com>
8369
8370 * dwarf2loc.c: Include dwarf2read.h.
8371 * defs.h (read_unsigned_leb128): Don't declare.
8372 * dwarf2read.h (read_unsigned_leb128): Declare.
8373
ca1df239
TT
83742019-05-08 Tom Tromey <tromey@adacore.com>
8375
8376 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8377 method.
8378
99f20f08
TT
83792019-05-08 Tom Tromey <tromey@adacore.com>
8380
8381 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8382 when no wrap column is set.
8383
80e55b13
TT
83842019-05-08 Tom Tromey <tromey@adacore.com>
8385
8386 * c-lang.c (c_get_string): Handle non-C-style arrays.
8387
9d3421af
TT
83882019-05-08 Tom Tromey <tromey@adacore.com>
8389
8390 * typeprint.c (print_offset_data::update): Print the bit offset,
8391 not the number of bits remaining.
8392
844333e2
TT
83932019-05-08 Tom Tromey <tromey@adacore.com>
8394
8395 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8396 padding at end of comment.
8397
988915ee
TT
83982019-05-08 Tom Tromey <tromey@adacore.com>
8399
8400 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8401 Compare main types.
8402
26bfd823
TT
84032019-05-06 Tom Tromey <tom@tromey.com>
8404
8405 * common/scoped_mmap.c: Include common-defs.h.
8406 * common/scoped_mmap.h: Don't include config.h.
8407
89055eaa
TT
84082019-05-04 Tom Tromey <tom@tromey.com>
8409
8410 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8411 (struct aarch64_call_info): Add initializers.
8412 <si>: Now a std::vector.
8413 (pass_on_stack, aarch64_push_dummy_call): Update.
8414
5da01df5
TT
84152019-05-04 Simon Marchi <simon.marchi@efficios.com>
8416 Tom Tromey <tom@tromey.com>
8417
8418 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8419 (ppc_threads): Now a std::vector. Now static.
8420 (hwdebug_find_thread_points_by_tid)
8421 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8422 Update.
8423
fbdf05a1
TT
84242019-05-04 Tom Tromey <tom@tromey.com>
8425
8426 * arc-tdep.c (arc_tdesc_init): Return bool.
8427
06d16ec9
TT
84282019-05-04 Tom Tromey <tom@tromey.com>
8429
8430 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8431 Use gdb_assert_not_reached.
8432
9c056022
TT
84332019-05-04 Tom Tromey <tom@tromey.com>
8434
8435 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8436 "false".
8437
fa9c2a59
TT
84382019-05-04 Tom Tromey <tom@tromey.com>
8439
8440 * arc-tdep.c (arc_tdesc_init): Use bool.
8441
e2eb806a
TT
84422019-05-04 Tom Tromey <tom@tromey.com>
8443
8444 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8445
6fe87677
TT
84462019-05-04 Tom Tromey <tom@tromey.com>
8447
8448 * cli/cli-cmds.c (valid_command_p): Return bool.
8449
7f008c9e
TT
84502019-05-04 Tom Tromey <tom@tromey.com>
8451
8452 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8453 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8454
b6484282
RT
84552019-05-04 Raul Tambre <raul@tambre.ee>
8456
8457 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8458 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8459 operator for comparison.
8460
af97b416
TT
84612019-05-04 Tom Tromey <tom@tromey.com>
8462
8463 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8464 (lookup_partial_symbol, print_partial_symbols)
8465 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8466 (psymbol_compare): Update.
8467 (add_psymbol_to_bcache): Clear the entire psymbol.
8468 (maintenance_check_psymtabs): Update.
8469 * psympriv.h (struct partial_symbol): Don't derive from
8470 general_symbol_info.
8471 <obj_section, unrelocated_address, address,
8472 set_unrelocated_address>: Update.
8473 <ginfo>: New member.
8474 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8475 (debug_names::write_psymbols): Update.
8476
9d6d4be8
TV
84772019-05-04 Tom de Vries <tdevries@suse.de>
8478
8479 * contrib/cc-with-tweaks.sh: Support -n arg.
8480
66452beb
PW
84812019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8482
8483 * corelow.c (core_target::detach): Ensure frame cache and
8484 register caches are cleared.
8485 inferior.c (exit_inferior_1): Likewise.
8486
bde09ab7
TT
84872019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8488 Tom Tromey <tom@tromey.com>
8489
8490 * dictionary.c (collate_pending_symbols_by_language): Remove
8491 "struct" from foreach.
8492 * symtab.c (lookup_global_symbol_from_objfile)
8493 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8494 foreach.
8495 * ser-tcp.c (net_open): Remove "struct" from foreach.
8496 * objfiles.c (objfile_relocate, objfile_rebase)
8497 (objfile_has_symbols): Remove "struct" from foreach.
8498 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8499 from foreach.
8500 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8501 foreach.
8502 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8503 "struct" from foreach.
8504 * ada-lang.c (create_excep_cond_exprs)
8505 (ada_exception_catchpoint_cond_string): Remove "struct" from
8506 foreach.
8507
222a8d25
TT
85082019-05-03 Tom Tromey <tromey@adacore.com>
8509
8510 * ada-exp.y (convert_char_literal): Check suffix of each
8511 enumerator.
8512
fcd60b84
DP
85132019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8514
8515 PR ada/21406:
8516 * ada-exp.y (yywrap): Don't define.
8517 * ada-lex.l (%option): Add noyywrap
8518 (yywrap): Remove.
8519
5f2459c2
EZ
85202019-05-03 Eli Zaretskii <eliz@gnu.org>
8521
353ea2d1
EZ
8522 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8523 _WIN32_WINNT to the XP level, unless already defined to a higher
8524 level.
8525
8526 * unittests/parse-connection-spec-selftests.c:
8527 * ser-tcp.c:
8528 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8529 override.
8530
5f2459c2
EZ
8531 * symfile.c (find_separate_debug_file): Remove colon from the
8532 drive spec of DOS/Windows file names of the target, so that the
8533 file name produced from DEBUGDIR and the target's directory will
8534 be valid on DOS/Windows systems.
8535
80062eb9
AB
85362019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * rust-lang.c (val_print_struct): Handle printing structures
8539 containing strings.
8540
b8c05e85
TT
85412019-05-02 Tom Tromey <tromey@adacore.com>
8542
8543 * valarith.c (_initialize_valarith): Remove.
8544
4504bbde
TT
85452019-05-01 Tom Tromey <tromey@adacore.com>
8546
8547 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8548 bitfields.
8549
d48e62f4
TT
85502019-05-01 Tom Tromey <tromey@adacore.com>
8551
8552 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8553 for big-endian copies.
8554
15f18d14
AT
85552019-04-30 Ali Tamur <tamur@google.com>
8556 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8557 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8558 (read_3_bytes): New function.
8559
ab4ee614
JB
85602019-04-30 Joel Brobecker <brobecker@adacore.com>
8561
8562 * windows-nat.c (main_thread_id): Delete.
8563 (handle_output_debug_string): Replace main_thread_id by
8564 current_event.dwThreadId.
8565 (fake_create_process): Likewise.
8566 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8567 Do not set main_thread_id.
8568 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8569 current_event.dwThreadId.
8570 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8571
8ed5b76e
JB
85722019-04-30 Joel Brobecker <brobecker@adacore.com>
8573
8574 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8575 Use current_event.dwThreadId instead of main_thread_id.
8576
2ff0a947
TT
85772019-04-30 Tom Tromey <tromey@adacore.com>
8578
8579 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8580 (create_excep_cond_exprs): Iterate over program spaces.
8581 (ada_exception_catchpoint_cond_string): Examine all minimal
8582 symbols for exception types.
8583
a776957c
TT
85842019-04-30 Tom Tromey <tromey@adacore.com>
8585
8586 PR c++/24470:
8587 * dwarf2read.c (process_structure_scope): Handle case where type
8588 has template parameters but no symbol was created.
8589
bc68014d
AB
85902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8591 Chris January <chris.january@arm.com>
8592
8593 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8594 qualifier.
8595 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8596
f1fdc960
AB
85972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * f-typeprint.c (f_print_type): Update rules for printing
8600 whitespace.
8601 (f_type_print_varspec_suffix): Likewise.
8602
bf7a4de1
AB
86032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8604 Chris January <chris.january@arm.com>
8605
8606 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8607 function arguments.
8608
bbe75b9d
AB
86092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * f-lang.c (build_fortran_types): Change name of void type to
8612 lower case.
8613 * f-typeprint.c (f_type_print_base): Print the name of the void
8614 type, rather than a fixed string.
8615 * f-valprint.c (f_decorations): Use lower case void string.
8616
1db455a7
AB
86172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8618 Chris January <chris.january@arm.com>
8619
8620 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8621 types for Fortran.
8622
b6d03bb2
AB
86232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8624 Chris January <chris.january@arm.com>
8625 David Lecomber <david.lecomber@arm.com>
8626
8627 * f-exp.y (BINOP_INTRINSIC): New token.
8628 (exp): New parser rule handling BINOP_INTRINSIC.
8629 (f77_keywords): Add new builtin procedures.
8630 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8631 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8632 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8633 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8634 (print_unop_subexp_f): New function.
8635 (print_binop_subexp_f): New function.
8636 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8637 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8638 (dump_subexp_body_f): Likewise.
8639 (operator_check_f): Likewise.
8640 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8641 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8642
83228e93
AB
86432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8646 UNOP_KIND.
8647 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8648 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8649 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8650 (operator_length_f): New fuction.
8651 (print_subexp_f): New function.
8652 (op_name_f): New function.
8653 (dump_subexp_body_f): New function.
8654 (operator_check_f): New function.
8655 (exp_descriptor_f): Replace standard expression handling functions
8656 with new functions.
8657 * gdb/fortran-operator.def: New file.
8658 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8659 * gdb/std-operator.def: Remove UNOP_KIND.
8660
6fdcd7cc
AB
86612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * std-operator.def: Remove unbalanced, stray double quote
8664 character.
8665
2e62ab40
AB
86662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8667 Chris January <chris.january@arm.com>
8668 Daniel Everett <daniel.everett@arm.com>
8669 Nick Forrington <nick.forrington@arm.com>
8670 Richard Bunt <richard.bunt@arm.com>
8671
8672 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8673 of depth when printing anonymous structs or unions.
8674 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8675 Don't print either the top-level value, or the children if the
8676 max-depth is exceeded.
8677 (ppscm_print_children): When printing the key of a map, allow one
8678 extra level of depth.
8679 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8680 print either the top-level value, or the children if the max-depth
8681 is exceeded.
8682 (print_children): When printing the key of a map, allow one extra
8683 level of depth.
8684 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8685 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8686 (user_print_options): Initialise max_depth field.
8687 (val_print_scalar_or_string_type_p): New function.
8688 (val_print): Check to see if the max depth has been reached.
8689 (val_print_check_max_depth): Define new function.
8690 (show_print_max_depth): New function.
8691 (_initialize_valprint): Add 'print max-depth' option.
8692 * valprint.h (struct value_print_options) <max_depth>: New field.
8693 (val_print_check_max_depth): Declare new function.
8694 * NEWS: Document new feature.
8695
4be290b2
AB
86962019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * ada-lang.c (ada_language_defn): Initialise new field.
8699 * c-lang.c (c_is_string_type_p): New function.
8700 (c_language_defn): Initialise new field.
8701 (cplus_language_defn): Initialise new field.
8702 (asm_language_defn): Initialise new field.
8703 (minimal_language_defn): Initialise new field.
8704 * c-lang.h (c_is_string_type_p): Declare new function.
8705 * d-lang.c (d_language_defn): Initialise new field.
8706 * f-lang.c (f_is_string_type_p): New function.
8707 (f_language_defn): Initialise new field.
8708 * go-lang.c (go_is_string_type_p): New function.
8709 (go_language_defn): Initialise new field.
8710 * language.c (default_is_string_type_p): New function.
8711 (unknown_language_defn): Initialise new field.
8712 (auto_language_defn): Initialise new field.
8713 * language.h (struct language_defn) <la_is_string_type_p>: New
8714 member variable.
8715 (default_is_string_type_p): Declare new function.
8716 * m2-lang.c (m2_language_defn): Initialise new field.
8717 * objc-lang.c (objc_language_defn): Initialise new field.
8718 * opencl-lang.c (opencl_language_defn): Initialise new field.
8719 * p-lang.c (pascal_is_string_type_p): New function.
8720 (pascal_language_defn): Initialise new field.
8721 * rust-lang.c (rust_is_string_type_p): New function.
8722 (rust_language_defn): Initialise new field.
8723
721b08c6
AB
87242019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8727 New field.
8728 * ada-lang.c (ada_language_defn): Initialise new field.
8729 * c-lang.c (c_language_defn): Likewise.
8730 (cplus_language_defn): Likewise.
8731 (asm_language_defn): Likewise.
8732 (minimal_language_defn): Likewise.
8733 * d-lang.c (d_language_defn): Likewise.
8734 * f-lang.c (f_language_defn): Likewise.
8735 * go-lang.c (go_language_defn): Likewise.
8736 * language.c (unknown_language_defn): Likewise.
8737 (auto_language_defn): Likewise.
8738 * m2-lang.c (m2_language_defn): Likewise.
8739 * objc-lang.c (objc_language_defn): Likewise.
8740 * opencl-lang.c (opencl_language_defn): Likewise.
8741 * p-lang.c (pascal_language_defn): Likewise.
8742 * rust-lang.c (rust_language_defn): Likewise.
8743
fc913e53
AB
87442019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * ada-lang.c (ada_is_character_type): Change return type to bool.
8747 (ada_is_string_type): Likewise.
8748 * ada-lang.h (ada_is_character_type): Update declaration
8749 (ada_is_string_type): Likewise.
8750
fa731fa0
PW
87512019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8752
8753 Support style in 'frame|thread apply'
8754
8755 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8756 * record.c (record_start, record_stop): Update callers of
8757 execute_command_to_string with false.
8758 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8759 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8760 methods.
8761 (class string_file): New constructor with term_out parameter.
8762 Override methods term_out and can_emit_style_escape. New member
8763 term_out.
8764 (class stdio_file): Override can_emit_style_escape.
8765 (class tee_file): Override term_out and can_emit_style_escape.
8766 * utils.h (can_emit_style_escape): Remove.
8767 * utils.c (can_emit_style_escape): Likewise.
8768 Update all callers of can_emit_style_escape (SOMESTREAM) to
8769 SOMESTREAM->can_emit_style_escape.
8770 * source-cache.c (source_cache::get_source_lines): Likewise.
8771 * stack.c (frame_apply_command_count): Call execute_command_to_string
8772 passing the term_out characteristic of the current gdb_stdout.
8773 * thread.c (thr_try_catch_cmd): Likewise.
8774 * top.c (execute_command_to_string): pass term_out parameter
8775 to construct the string_file for the command output.
8776 * ui-file.c (term_cli_styling): New function (most code moved
8777 from utils.c can_emit_style_escape).
8778 (string_file::string_file, string_file::can_emit_style_escape,
8779 stdio_file::can_emit_style_escape, tee_file::term_out,
8780 tee_file::can_emit_style_escape): New functions.
8781
136afab8
PW
87822019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8783
8784 * NEWS: Mention the new set|show may-call-functions.
8785 * infcall.c (may_call_functions_p): New variable.
8786 (show_may_call_functions_p): New function.
8787 (call_function_by_hand_dummy): Throws an error if not
8788 may-call-functions.
8789 (_initialize_infcall): Call add_setshow_boolean_cmd for
8790 may-call-functions.
8791
725cbb63
KS
87922019-04-25 Keith Seitz <keiths@redhat.com>
8793
8794 PR c++/24367
8795 * cp-support.c (inspect_type): Don't attempt substitutions
8796 of symbol with the same name.
8797
3d1cbb78
TT
87982019-04-25 Tom Tromey <tromey@adacore.com>
8799
8800 PR gdb/24475:
8801 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8802 static.
8803
94aeb44b
TT
88042019-04-25 Tom Tromey <tromey@adacore.com>
8805
8806 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8807 rvalue reference.
8808 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8809 (gdb_xml_parser::parse): Use std::move.
8810 * python/python-internal.h (gdbpy_convert_exception): Take a const
8811 reference.
8812 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8813 std::move.
8814 * python/py-utils.c (gdbpy_convert_exception): Take a const
8815 reference.
8816 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8817 Use std::move.
8818 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8819 Use std::move.
8820 * mi/mi-main.c (mi_print_exception): Take a const reference.
8821 * main.c (handle_command_errors): Take a const reference.
8822 * linespec.c (parse_linespec): Use std::move.
8823 * infcall.c (run_inferior_call): Use std::move.
8824 (call_function_by_hand_dummy): Use std::move.
8825 * exec.c (try_open_exec_file): Use std::move.
8826 * exceptions.h (exception_print, exception_fprintf)
8827 (exception_print_same): Update.
8828 * exceptions.c (print_exception, exception_print)
8829 (exception_fprintf, exception_print_same): Change parameters to
8830 const reference.
8831 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8832 * common/new-op.c: Use std::move.
8833 * common/common-exceptions.h (struct gdb_exception): Add move
8834 constructor.
8835 (struct gdb_exception_error, struct gdb_exception_quit, struct
8836 gdb_quit_bad_alloc): Change constructor to move constructor.
8837 (throw_exception): Change parameter to rvalue reference.
8838 * common/common-exceptions.c (throw_exception): Take rvalue
8839 reference.
8840 * cli/cli-interp.c (safe_execute_command): Use std::move.
8841 * breakpoint.c (insert_bp_location, location_to_sals): Use
8842 std::move.
8843
680d7fd5
TT
88442019-04-25 Tom Tromey <tromey@adacore.com>
8845
8846 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8847 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8848 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8849 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8850 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8851 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8852 guile/scm-value.c: Use unpack.
8853 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8854 gdbscm_gdb_exception.
8855 (gdbscm_throw_gdb_exception): Likewise.
8856 (struct gdbscm_gdb_exception): New.
8857 (unpack): New function.
8858 (gdbscm_wrap): Use unpack.
8859
c6fdd8b2
TT
88602019-04-25 Tom Tromey <tromey@adacore.com>
8861
8862 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8863 (gdb_rl_callback_handler): Use std::move.
8864 * common/common-exceptions.h (struct gdb_exception): Add move
8865 assignment operator.
8866 (throw_exception_sjlj): Change "exception" to const reference.
8867 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8868 (throw_exception_sjlj): Change "exception" to const reference.
8869
cc06b668
TT
88702019-04-25 Tom Tromey <tromey@adacore.com>
8871
8872 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8873 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8874 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8875 Update.
8876 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8877 Update.
8878 * mi/mi-interp.c (mi_interp::exec): Update.
8879 * linespec.c (parse_linespec): Update.
8880 * infcall.c (run_inferior_call): Update.
8881 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8882 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8883 (gdbscm_lookup_global_symbol): Update.
8884 * guile/scm-param.c (gdbscm_parameter_value): Update.
8885 * guile/scm-frame.c (gdbscm_frame_read_register)
8886 (gdbscm_frame_read_var): Update.
8887 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8888 * exec.c (try_open_exec_file): Update.
8889 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8890 (gdb_rl_callback_handler): Update.
8891 * common/common-exceptions.h (exception_none): Don't declare.
8892 * common/common-exceptions.c (exception_none): Don't define.
8893 (struct catcher) <exception>: Update.
8894 * cli/cli-interp.c (safe_execute_command): Update.
8895 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8896
cf532bd1
AT
88972019-04-25 Ali Tamur <tamur@google.com>
8898
8899 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8900 (read_attribute_value): Likewise.
8901 (dwarf2_read_addr_index): Update comment.
8902 (read_str_index): Add DW_FORM_strx.
8903 (dwarf2_string_attr): Likewise.
8904 (dwarf2_const_value_attr): Likewise.
8905 (dump_die_shallow): Likewise.
8906 (dwarf2_fetch_constant_bytes): Likewise.
8907 (skip_form_bytes): Likewise.
8908 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8909
82433e3e
SDJ
89102019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8911
8912 PR corefiles/11608
8913 PR corefiles/18187
8914 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8915 OFFSET. Verify if current mapping contains an ELF header.
8916 (linux_find_memory_regions_full): Adjust call to
8917 dump_mapping_p.
8918
723adb65
SL
89192019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8920 Kang Li <kanglictf@gmail.com>
8921
8922 PR gdb/21600
8923
8924 * dwarf2-frame.c (read_initial_length): Be consistent about using
8925 unsigned representation of length.
8926 (decode_frame_entry_1): Likewise. Check for wraparound of
8927 end pointer as well as buffer overflow.
8928
596179f7
SDJ
89292019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8930
8931 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8932 "vq".
8933
a59240a4
TT
89342019-04-24 Tom Tromey <tromey@adacore.com>
8935
8936 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8937
f872fdbb
AB
89382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * s12z-tdep.c (s12z_unwind_pc): Delete.
8941 (s12z_unwind_sp): Delete.
8942 (s12z_gdbarch_init): Don't register deleted functions with
8943 gdbarch.
8944
b614e6f3
AB
89452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * rl78-tdep.c (rl78_unwind_sp): Delete.
8948 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8949
14faed38
AB
89502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8951
8952 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8953 (xstormy16_unwind_pc): Delete.
8954 (xstormy16_dummy_id): Delete.
8955 (xstormy16_gdbarch_init): Don't register deleted functions with
8956 gdbarch.
8957
541aad8a
AB
89582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8959
8960 * vax-tdep.c (vax_unwind_pc): Delete.
8961 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8962
29222070
AB
89632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * v850-tdep.c (v850_unwind_sp): Delete.
8966 (v850_unwind_pc): Delete.
8967 (v850_dummy_id): Delete.
8968 (v850_gdbarch_init): Don't register deleted functions with
8969 gdbarch.
8970
0f534d76
AB
89712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8972
8973 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8974 (tilegx_unwind_pc): Delete.
8975 (tilegx_unwind_dummy_id): Delete.
8976 (tilegx_gdbarch_init): Don't register deleted functions with
8977 gdbarch.
8978
1ba7b7f9
AB
89792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8980
8981 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8982 (tic6x_dummy_id): Delete.
8983 (tic6x_gdbarch_init): Don't register deleted functions with
8984 gdbarch.
8985
d31f262c
AB
89862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * sparc-tdep.c (sparc_unwind_pc): Delete.
8989 (sparc32_gdbarch_init): Don't register deleted function with
8990 gdbarch.
8991
6d14d64d
AB
89922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 * sh-tdep.c (sh_unwind_sp): Delete.
8995 (sh_unwind_pc): Delete.
8996 (sh_dummy_id): Delete.
8997 (sh_gdbarch_init): Don't register deleted functions with
8998 gdbarch.
8999
a40dde9d
AB
90002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9001
9002 * score-tdep.c (score_unwind_sp): Delete.
9003 (score_unwind_pc): Delete.
9004 (score_dummy_id): Delete.
9005 (score_gdbarch_init): Don't register deleted functions with
9006 gdbarch.
9007
47c47d69
AB
90082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * rx-tdep.c (rx_unwind_pc): Delete.
9011 (rx_unwind_sp): Delete.
9012 (rx_dummy_id): Delete.
9013 (rx_gdbarch_init): Don't register deleted functions with
9014 gdbarch. Update comment.
9015
833a4480
AB
90162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9019 (rs6000_dummy_id): Delete.
9020 (rs6000_gdbarch_init): Don't register deleted functions with
9021 gdbarch.
9022
3f2cef49
AB
90232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9024
9025 * or1k-tdep.c (or1k_dummy_id): Delete.
9026 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9027
96acf884
AB
90282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9029
9030 * nios2-tdep.c (nios2_dummy_id): Delete.
9031 (nios2_unwind_sp): Delete.
9032 (nios2_gdbarch_init): Don't register deleted functions with
9033 gdbarch.
9034
ca0ab0aa
AB
90352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * nds32-tdep.c (nds32_dummy_id): Delete.
9038 (nds32_unwind_pc): Delete.
9039 (nds32_unwind_sp): Delete.
9040 (nds32_gdbarch_init): Don't register deleted functions with
9041 gdbarch.
9042
c8259044
AB
90432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * msp430-tdep.c (msp430_unwind_pc): Delete.
9046 (msp430_unwind_sp): Delete.
9047 (msp430_dummy_id): Delete.
9048 (msp430_gdbarch_init): Don't register deleted functions with
9049 gdbarch.
9050
27f113c8
AB
90512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * moxie-tdep.c (moxie_unwind_sp): Delete.
9054 (moxie_unwind_pc): Delete.
9055 (moxie_dummy_id): Delete.
9056 (moxie_gdbarch_init): Don't register deleted functions with
9057 gdbarch.
9058
aee6c3cd
AB
90592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9060
9061 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9062 (mn10300_unwind_pc): Delete.
9063 (mn10300_unwind_sp): Delete.
9064 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9065 mn10300_unwind_sp.
9066 (mn10300_frame_unwind_init): Don't register deleted functions with
9067 gdbarch.
9068
8e2b5aea
AB
90692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * mep-tdep.c (mep_unwind_pc): Delete.
9072 (mep_unwind_sp): Delete.
9073 (mep_dummy_id): Delete.
9074 (mep_gdbarch_init): Don't register deleted functions with
9075 gdbarch.
9076
43cf3ede
AB
90772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9080 (m68hc11_unwind_sp): Delete.
9081 (m68hc11_gdbarch_init): Don't register deleted functions with
9082 gdbarch.
9083
5e79b7bb
AB
90842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * m32r-tdep.c (m32r_unwind_sp): Delete.
9087 (m32r_unwind_pc): Delete.
9088 (m32r_dummy_id): Delete.
9089 (m32r_gdbarch_init): Don't register deleted functions with
9090 gdbarch.
9091
89b268d8
AB
90922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * m32c-tdep.c (m32c_unwind_pc): Delete.
9095 (m32c_unwind_sp): Delete.
9096 (m32c_dummy_id): Delete.
9097 (m32c_gdbarch_init): Don't register deleted functions with
9098 gdbarch.
9099
946c28d2
AB
91002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9103 (lm32_unwind_pc): Delete.
9104 (lm32_dummy_id): Delete.
9105 (lm32_gdbarch_init): Don't register deleted functions with
9106 gdbarch.
9107
bf12844a
AB
91082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9111 (iq2000_unwind_pc): Delete.
9112 (iq2000_dummy_id): Delete.
9113 (iq2000_gdbarch_init): Don't register deleted functions with
9114 gdbarch.
9115
ecbc06d2
AB
91162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * nds32-tdep.c (nds32_type_align): Delete.
9119 (nds32_push_dummy_call): Use type_align instead.
9120
030197b4
AB
91212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * arm-tdep.c (arm_type_align): Only handle vector override case.
9124 (arm_push_dummy_call): Use type_align.
9125 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9126
b907456c
AB
91272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9130 case.
9131 (pass_on_stack): Use type_align.
9132 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9133 function.
9134
9e97ba43
TT
91352019-04-23 Tom Tromey <tromey@adacore.com>
9136
9137 * dwarf2read.c (line_header::file_name_at): Remove unused
9138 overload.
9139
6892f601
TV
91402019-04-23 Tom de Vries <tdevries@suse.de>
9141
9142 PR gdb/24438
9143 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9144 invocation.
9145
336d760d
AT
9146
91472019-03-27 Ali Tamur <tamur@google.com>
9148
9149 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9150 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9151 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9152 (dwarf_expr_context::get_addr_index): Likewise
9153 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9154 (symbol_needs_eval_context::get_addr_index): Likewise
9155 (disassemble_dwarf_expression): Add DW_OP_addrx
9156 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9157 (read_cutu_die_from_dwo): Update comment
9158 (skip_one_die): Add DW_FORM_addrx
9159 (read_attribute_value): Likewise
9160 (var_decode_location): Add DW_OP_addrx
9161 (dwarf2_const_value_attr): Add DW_FORM_addrx
9162 (dump_die_shallow): Likewise
9163 (dwarf2_fetch_constant_bytes): Likewise
9164 (decode_locdesc): Add DW_OP_addrx
9165 (skip_form_bytes): Add DW_FORM_addrx
9166
ad9d13f8
AT
91672019-04-22 Ali Tamur <tamur@google.com>
9168
9169 * MAINTAINERS (Write After Approval): Add self.
9170
d70cc3ba
SM
91712019-04-22 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9174 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9175 (open_symbol_file_object): Likewise.
9176 (svr4_default_sos): Add info parameter.
9177 (svr4_read_so_list): Likewise.
9178 (svr4_current_sos_direct): Adjust functions calls to pass down
9179 info.
9180 (svr4_current_sos_1): Add info parameter.
9181 (svr4_current_sos): Call get_svr4_info, pass info down to
9182 svr4_current_sos_1.
9183 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9184 get_svr4_info.
9185 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9186 get_svr4_info.
9187 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9188 to get_svr4_info.
9189 (probes_table_remove_objfile_probes): Likewise.
9190 (register_solib_event_probe): Add info parameter.
9191 (solist_update_incremental): Pass info parameter down to
9192 svr4_read_so_list.
9193 (disable_probes_interface): Add info parameter.
9194 (svr4_handle_solib_event): Pass current_program_space to
9195 get_svr4_info. Adjust disable_probes_interface cleanup.
9196 (svr4_create_probe_breakpoints): Add info parameter, pass it
9197 down to register_solib_event_probe.
9198 (svr4_create_solib_event_breakpoints): Add info parameter,
9199 pass it down to svr4_create_probe_breakpoints.
9200 (enable_break): Pass info down to
9201 svr4_create_solib_event_breakpoints.
9202 (svr4_solib_create_inferior_hook): Pass current_program_space to
9203 get_svr4_info.
9204 (svr4_clear_solib): Likewise.
9205
7905fc35
PA
92062019-04-22 Pedro Alves <palves@redhat.com>
9207
9208 * solib-svr4.c (svr4_free_objfile_observer): New.
9209 (probe_and_action::objfile): New field.
9210 (probes_table_htab_remove_objfile_probes)
9211 (probes_table_remove_objfile_probes): New functions.
9212 (register_solib_event_probe): Add 'objfile' parameter. Store it
9213 in the new probe_and_action. Don't store the probe in 'lookup'.
9214 (svr4_create_probe_breakpoints): Pass objfile to
9215 register_solib_event_probe.
9216 (_initialize_svr4_solib): Register a free_objfile observer.
9217
fb881986
TT
92182019-04-19 Tom Tromey <tom@tromey.com>
9219
9220 * common/queue.h: Remove.
9221
8732db6c
TT
92222019-04-19 Tom Tromey <tom@tromey.com>
9223
9224 * event-loop.c: Don't include "common/queue.h".
9225
97dfbadd
TT
92262019-04-19 Tom Tromey <tom@tromey.com>
9227
9228 * remote.c (remote_target): Use delete.
9229 * remote-notif.h: Include <list>, not "common/queue.h".
9230 (notif_client_p): Remove typedef.
9231 (remote_notif_state): Add constructor, destructor, initializer.
9232 <notif_queue>: Now a std::list.
9233 (remote_notif_state_xfree): Don't declare.
9234 * remote-notif.c (remote_notif_process, handle_notification)
9235 (remote_notif_state_allocate): Update.
9236 (~remote_notif_state): Rename from remote_notif_state_xfree.
9237
cf250e36
TT
92382019-04-19 Tom Tromey <tom@tromey.com>
9239
9240 * symfile.c (reread_symbols): Update.
9241 * objfiles.c (objfile_register_static_link)
9242 (objfile_lookup_static_link): Update
9243 (~objfile) Don't delete static_links.
9244 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9245
61f4b350
TT
92462019-04-19 Tom Tromey <tom@tromey.com>
9247
9248 * type-stack.h (struct type_stack) <insert>: Constify string.
9249 * type-stack.c (type_stack::insert): Constify string.
9250 * gdbtypes.h (lookup_template_type): Update.
9251 (address_space_name_to_int): Update.
9252 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9253 const.
9254 (lookup_template_type): Make name const.
9255 * c-exp.y: Update rules.
9256 (lex_one_token, classify_name, classify_inner_name)
9257 (c_print_token): Update.
9258 * p-exp.y: Update rules.
9259 (yylex): Update.
9260 * f-exp.y: Update rules.
9261 (yylex): Update.
9262 * d-exp.y: Update rules.
9263 (lex_one_token, classify_name, classify_inner_name): Update.
9264 * parse.c (write_dollar_variable, copy_name): Return std::string.
9265 * parser-defs.h (copy_name): Change return type.
9266 * m2-exp.y: Update rules.
9267 (yylex): Update.
9268 * go-exp.y (lex_one_token): Update.
9269 Update rules.
9270 (classify_unsafe_function, classify_packaged_name)
9271 (classify_name, yylex): Update.
9272
189b8c2e
ST
92732019-04-19 Sergei Trofimovich <siarheit@google.com>
9274
9275 * configure.ac: add --enable-source-highlight switch.
9276 * configure: Regenerate.
9277 * top.c (print_gdb_version): plumb --enable-source-highlight
9278 status to "show configuration".
9279
8ecb59f8
TT
92802019-04-19 Tom Tromey <tromey@adacore.com>
9281
9282 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9283 Check ADA_TYPE_P.
9284 (empty_record, ada_template_to_fixed_record_type_1)
9285 (template_to_static_fixed_type)
9286 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9287 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9288 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9289 macros.
9290
62160ec9
TT
92912019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9292
9293 PR symtab/24423:
9294 * source.c (print_source_lines_base): Advance "iter" when a
9295 control character is seen.
9296
f2ae8bc8
PW
92972019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9298
9299 * inferior.h (struct infcall_suspend_state_deleter):
9300 Catch exception in destructor to avoid crash.
9301
d563b953
PW
93022019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9303
9304 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9305 close to the add_com "shell".
9306
dc34c897
TT
93072019-04-18 Tom Tromey <tromey@adacore.com>
9308
9309 * process-stratum-target.h (class process_stratum_target)
9310 <stratum>: Add "final".
9311
a12e5744
TT
93122019-04-17 Tom Tromey <tromey@adacore.com>
9313
9314 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9315 against nullptr before use.
9316
a7e559cc
AH
93172019-04-17 Alan Hayward <alan.hayward@arm.com>
9318
9319 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9320
c01660c6
AB
93212019-04-17 Jim Wilson <jimw@sifive.com>
9322 Andrew Burgess <andrew.burgess@embecosm.com>
9323
9324 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9325 code read might fail, assume 4-byte breakpoint in that case.
9326
4aa866af
LS
93272019-04-15 Leszek Swirski <leszeks@google.com>
9328
9329 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9330 rather than a hand-rolled POD check when checking for forced MEMORY
9331 classification.
9332
48574d91
AH
93332019-04-15 Alan Hayward <alan.hayward@arm.com>
9334
9335 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9336 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9337 function.
9338 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9339 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9340 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9341 declaration.
9342
4da037ef
AH
93432019-04-15 Alan Hayward <alan.hayward@arm.com>
9344
9345 * aarch64-linux-nat.c
9346 (aarch64_linux_nat_target::thread_architecture): Add override.
9347 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9348 each VQ.
9349
ccb8d7e8
AH
93502019-04-15 Alan Hayward <alan.hayward@arm.com>
9351
9352 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9353
35add35e
AB
93542019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9357 target types of size 96-bits, add some additional comments, and
9358 check that the builtin type we found was the correct size.
9359
51196bbc
EZ
93602019-04-12 Eli Zaretskii <eliz@gnu.org>
9361
9362 * utils.c (prompt_for_continue): Don't restore the styling at the
9363 end, as applied_style has the wrong value. This fixes styling in
9364 long lists of file names that are interrupted by the "Continue?"
9365 prompt.
9366
62253a61
AB
93672019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9368
9369 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9370 * c-lang.c (c_language_defn): Likewise.
9371 (cplus_language_defn): Likewise.
9372 (asm_language_defn): Likewise.
9373 (minimal_language_defn): Likewise.
9374 * d-lang.c (d_language_defn): Likewise.
9375 * f-lang.c (f_language_defn): Likewise.
9376 * go-lang.c (go_language_defn): Likewise.
9377 * language.c (unknown_language_defn): Likewise.
9378 (auto_language_defn): Likewise.
9379 * language.h (struct language_defn): Remove la_magic field.
9380 (LANG_MAGIC): Delete.
9381 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9382 * objc-lang.c (objc_language_defn): Likewise.
9383 * opencl-lang.c (opencl_language_defn): Likewise.
9384 * p-lang.c (pascal_language_defn): Likewise.
9385 * rust-lang.c (rust_language_defn): Likewise.
9386
a9158a86
AB
93872019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9388
9389 * riscv-tdep.c (riscv_type_align): New function.
9390 (riscv_type_alignment): Delete.
9391 (riscv_arg_location): Use 'type_align'.
9392 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9393
41077b66
AB
93942019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9395
9396 * gdbtypes.c (type_align): A struct with no non-static fields also
9397 has alignment of 1.
9398
9f0272f8
AB
93992019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9402 component to 0.
9403 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9404 member.
9405 (riscv_struct_info::analyse): New implementation using new
9406 analyse_inner member function.
9407 (riscv_struct_info::field_offset): New member function.
9408 (riscv_struct_info::m_offsets): New member variable.
9409 (riscv_struct_info::analyse_inner): New private member function,
9410 takes the old implementation of riscv_struct_info::analyse but
9411 extended to track field offsets.
9412 (riscv_call_arg_struct): Update the struct folding special cases
9413 to handle cases where empty C++ structs, which are non-zero
9414 length, are found.
9415 (riscv_arg_location): Initialise the length of each location, a
9416 non-zero length now indicates the location is in use.
9417 (riscv_push_dummy_call): Allow for the first location having a
9418 non-zero offset when setting up arguments.
9419 (riscv_return_value): Likewise, but for return values.
9420
02cf60c7
TT
94212019-04-11 Tom Tromey <tromey@adacore.com>
9422
9423 * utils.c (internal_vproblem): Make "msg" const.
9424
68811f8f
AH
94252019-04-11 Alan Hayward <alan.hayward@arm.com>
9426
9427 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9428 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9429 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9430 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9431
3f52fdbc
KB
94322019-04-10 Kevin Buettner <kevinb@redhat.com>
9433
9434 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9435 function.
9436 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9437 of amd64_collect_native_gregset.
9438 (amd64_linux_nat_target::store_registers): Likewise.
9439
e9ad22ee
TT
94402019-04-10 Tom Tromey <tom@tromey.com>
9441
9442 * symtab.c (lookup_global_symbol_from_objfile)
9443 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9444 * objfiles.h (class separate_debug_iterator): New.
9445 (class separate_debug_range): New.
9446 (struct objfile) <separate_debug_objfiles>: New method.
9447 (objfile_separate_debug_iterate): Don't declare.
9448 * objfiles.c (separate_debug_iterator::operator++): Rename from
9449 objfile_separate_debug_iterate.
9450 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9451 iterator.
9452 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9453 iterator.
9454
ee371134
TT
94552019-04-10 Tom Tromey <tom@tromey.com>
9456
9457 * symfile.c (reread_symbols): Remove old comment.
9458 * objfiles.c (free_all_objfiles): Fix a typo.
9459
bf227d61
TT
94602019-04-10 Tom Tromey <tom@tromey.com>
9461
9462 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9463 * minsyms.c (lookup_minimal_symbol): Use foreach.
9464 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9465 (lookup_minimal_symbol_solib_trampoline): Likewise.
9466 * symfile.c (reread_symbols): Use foreach.
9467
8dc433a0
TT
94682019-04-09 Ivan Begert <ivanbegert@gmail.com>
9469 Tom Tromey <tromey@adacore.com>
9470
9471 PR rust/24414:
9472 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9473 (rust_lex_int_test): Change "value" to be LONGEST.
9474 (rust_lex_tests): Add test for long integer literal.
9475
9ab8741a
TT
94762019-04-09 Tom Tromey <tromey@adacore.com>
9477
9478 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9479 to bool.
9480 (extended_remote_target::attach): Update.
9481 (remote_target::remote_notice_new_inferior): Update.
9482 (remote_target::add_current_inferior_and_thread): Update.
9483 * inferior.c (exit_inferior_1): Use "false".
9484 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9485
e242fd12
SM
94862019-04-09 Simon Marchi <simon.marchi@efficios.com>
9487
9ca1957f 9488 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9489 the "start" command.
9490
2b0c8b01
KB
94912019-04-08 Kevin Buettner <kevinb@redhat.com>
9492
9493 * python/py-inferior.c (infpy_thread_from_thread_handle):
9494 Adjust comments to reflect renaming of thread_from_thread_handle
9495 to thread_from_handle. Adjust keywords. Fix type error message.
9496 (inferior_object_methods): Add thread_from_handle. Retain
9497 thread_from_thread_handle, but mark it as deprecated.
9498
50a82723
KB
94992019-04-08 Kevin Buettner <kevinb@redhat.com>
9500
9501 * gdbthread.h (find_thread_by_handle): Revise declaration.
9502 * thread.c (find_thread_by_handle): Likewise. Adjust
9503 implementation too.
9504 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9505 support for buffer objects as handles.
9506
cf63b016
KB
95072019-04-08 Kevin Buettner <kevinb@redhat.com>
9508
9509 * python/py-infthread.c (thpy_thread_handle): New function.
9510 (thread_object_methods): Register thpy_thread_handle.
9511
3d6c6204
KB
95122019-04-08 Kevin Buettner <kevinb@redhat.com>
9513
9514 * gdbthread.h (thread_to_thread_handle): Declare.
9515 * thread.c (gdbtypes.h): Include.
9516 (thread_to_thread_handle): New function.
9517
9518 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9519 (target_thread_info_to_thread_handle): Declare.
9520 * target.c (target_thread_info_to_thread_handle): New function.
9521 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9522 * target-delegates.c: Regenerate.
9523
9524 * linux-thread-db.c (class thread_db_target): Add method
9525 thread_info_to_thread_handle.
9526 (thread_db_target::thread_info_to_thread_handle): Define.
9527 * remote.c (class remote_target): Add new method
9528 thread_info_to_thread_handle.
9529 (remote_target::thread_info_to_thread_handle): Define.
9530
56be6ea8
PA
95312019-04-08 Pedro Alves <palves@redhat.com>
9532
9533 * common/common-exceptions.c (throw_exception): Don't create
9534 named object to throw; throw directly.
9535 (throw_it): Likewise. Don't initialize gdb_exception::message
9536 here, with new; pass FMT and AP to the ctor instead.
9537 * common/common-exceptions.h: Include <string>.
9538 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9539 const char *, va_list)): New ctor. Use std::make_shared.
9540 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9541 errors)): Delete.
9542 (gdb_exception_error::gdb_exception_error(enum errors, const char
9543 *, va_list)): New.
9544 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9545 Add assertion.
9546 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9547 errors)): Delete.
9548 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9549 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9550 Add assertion.
9551
eedc3f4f
TT
95522019-04-08 Tom Tromey <tom@tromey.com>
9553
9554 * valops.c (value_rtti_indirect_type): Replace throw_exception
9555 with throw.
9556 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9557 with throw.
9558 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9559 throw.
9560 * target.c (target_translate_tls_address): Replace throw_exception
9561 with throw.
9562 * stack.c (frame_apply_command_count): Replace throw_exception
9563 with throw.
9564 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9565 throw.
9566 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9567 with throw.
9568 * rs6000-tdep.c (rs6000_frame_cache)
9569 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9570 * remote.c: Replace throw_exception with throw.
9571 * record-full.c (record_full_message, record_full_wait_1)
9572 (record_full_restore): Replace throw_exception with throw.
9573 * record-btrace.c:
9574 (get_thread_current_frame_id, record_btrace_start_replaying)
9575 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9576 (cmd_record_btrace_start): Replace throw_exception with throw.
9577 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9578 throw.
9579 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9580 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9581 * linespec.c:
9582 (find_linespec_symbols): Replace throw_exception with throw.
9583 * infrun.c (displaced_step_prepare, resume): Replace
9584 throw_exception with throw.
9585 * infcmd.c (post_create_inferior): Replace throw_exception with
9586 throw.
9587 * inf-loop.c (inferior_event_handler): Replace throw_exception
9588 with throw.
9589 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9590 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9591 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9592 (get_prev_frame_always, get_frame_pc_if_available)
9593 (get_frame_address_in_block_if_available, get_frame_language):
9594 Replace throw_exception with throw.
9595 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9596 throw_exception with throw.
9597 * eval.c (fetch_subexp_value, evaluate_var_value)
9598 (evaluate_funcall, evaluate_subexp_standard): Replace
9599 throw_exception with throw.
9600 * dwarf2loc.c (call_site_find_chain)
9601 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9602 Replace throw_exception with throw.
9603 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9604 with throw.
9605 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9606 throw.
9607 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9608 * completer.c (complete_line_internal): Replace throw_exception
9609 with throw.
9610 * compile/compile-object-run.c (compile_object_run): Replace
9611 throw_exception with throw.
9612 * cli/cli-script.c (process_next_line): Replace throw_exception
9613 with throw.
9614 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9615 (btrace_enable, btrace_maint_update_pt_packets): Replace
9616 throw_exception with throw.
9617 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9618 throw_exception with throw.
9619 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9620 throw_exception with throw.
9621 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9622 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9623 * aarch64-tdep.c (aarch64_make_prologue_cache)
9624 (aarch64_make_stub_cache): Replace throw_exception with throw.
9625
26003a20
TT
96262019-04-08 Tom Tromey <tom@tromey.com>
9627
9628 * common/common-exceptions.c (throw_exception): Rename from
9629 throw_exception_cxx. Remove old copy. Make argument const.
9630 (throw_it): Create and throw exception objects directly.
9631 * common/common-exceptions.h (throw_exception): Make argument
9632 const.
9633 (struct gdb_exception_error): Add constructor.
9634 (struct gdb_exception_quit): Add constructor.
9635
d272eb37
TT
96362019-04-08 Tom Tromey <tom@tromey.com>
9637
9638 * common/common-exceptions.h (exception_rethrow): Don't declare.
9639 (TRY_SJLJ): Update comment.
9640 (TRY, CATCH, END_CATCH): Remove.
9641 * common/common-exceptions.c (exception_rethrow): Remove.
9642
230d2906
TT
96432019-04-08 Tom Tromey <tom@tromey.com>
9644
9645 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9646 Remove.
9647 (gdb_exception_error): Rename from
9648 gdb_exception_RETURN_MASK_ERROR.
9649 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9650 (gdb_quit_bad_alloc): Update.
9651 * aarch64-tdep.c: Update.
9652 * ada-lang.c: Update.
9653 * ada-typeprint.c: Update.
9654 * ada-valprint.c: Update.
9655 * amd64-tdep.c: Update.
9656 * arch-utils.c: Update.
9657 * break-catch-throw.c: Update.
9658 * breakpoint.c: Update.
9659 * btrace.c: Update.
9660 * c-varobj.c: Update.
9661 * cli/cli-cmds.c: Update.
9662 * cli/cli-interp.c: Update.
9663 * cli/cli-script.c: Update.
9664 * common/common-exceptions.c: Update.
9665 * common/new-op.c: Update.
9666 * common/selftest.c: Update.
9667 * compile/compile-c-symbols.c: Update.
9668 * compile/compile-cplus-symbols.c: Update.
9669 * compile/compile-object-load.c: Update.
9670 * compile/compile-object-run.c: Update.
9671 * completer.c: Update.
9672 * corelow.c: Update.
9673 * cp-abi.c: Update.
9674 * cp-support.c: Update.
9675 * cp-valprint.c: Update.
9676 * darwin-nat.c: Update.
9677 * disasm-selftests.c: Update.
9678 * dtrace-probe.c: Update.
9679 * dwarf-index-cache.c: Update.
9680 * dwarf-index-write.c: Update.
9681 * dwarf2-frame-tailcall.c: Update.
9682 * dwarf2-frame.c: Update.
9683 * dwarf2loc.c: Update.
9684 * dwarf2read.c: Update.
9685 * eval.c: Update.
9686 * event-loop.c: Update.
9687 * event-top.c: Update.
9688 * exec.c: Update.
9689 * f-valprint.c: Update.
9690 * fbsd-tdep.c: Update.
9691 * frame-unwind.c: Update.
9692 * frame.c: Update.
9693 * gdbtypes.c: Update.
9694 * gnu-v3-abi.c: Update.
9695 * guile/guile-internal.h: Update.
9696 * guile/scm-block.c: Update.
9697 * guile/scm-breakpoint.c: Update.
9698 * guile/scm-cmd.c: Update.
9699 * guile/scm-disasm.c: Update.
9700 * guile/scm-frame.c: Update.
9701 * guile/scm-lazy-string.c: Update.
9702 * guile/scm-math.c: Update.
9703 * guile/scm-param.c: Update.
9704 * guile/scm-ports.c: Update.
9705 * guile/scm-pretty-print.c: Update.
9706 * guile/scm-symbol.c: Update.
9707 * guile/scm-symtab.c: Update.
9708 * guile/scm-type.c: Update.
9709 * guile/scm-value.c: Update.
9710 * i386-linux-tdep.c: Update.
9711 * i386-tdep.c: Update.
9712 * inf-loop.c: Update.
9713 * infcall.c: Update.
9714 * infcmd.c: Update.
9715 * infrun.c: Update.
9716 * jit.c: Update.
9717 * language.c: Update.
9718 * linespec.c: Update.
9719 * linux-fork.c: Update.
9720 * linux-nat.c: Update.
9721 * linux-tdep.c: Update.
9722 * linux-thread-db.c: Update.
9723 * main.c: Update.
9724 * mi/mi-cmd-break.c: Update.
9725 * mi/mi-cmd-stack.c: Update.
9726 * mi/mi-interp.c: Update.
9727 * mi/mi-main.c: Update.
9728 * objc-lang.c: Update.
9729 * p-valprint.c: Update.
9730 * parse.c: Update.
9731 * ppc-linux-tdep.c: Update.
9732 * printcmd.c: Update.
9733 * python/py-arch.c: Update.
9734 * python/py-breakpoint.c: Update.
9735 * python/py-cmd.c: Update.
9736 * python/py-finishbreakpoint.c: Update.
9737 * python/py-frame.c: Update.
9738 * python/py-framefilter.c: Update.
9739 * python/py-gdb-readline.c: Update.
9740 * python/py-inferior.c: Update.
9741 * python/py-infthread.c: Update.
9742 * python/py-lazy-string.c: Update.
9743 * python/py-linetable.c: Update.
9744 * python/py-objfile.c: Update.
9745 * python/py-param.c: Update.
9746 * python/py-prettyprint.c: Update.
9747 * python/py-progspace.c: Update.
9748 * python/py-record-btrace.c: Update.
9749 * python/py-record.c: Update.
9750 * python/py-symbol.c: Update.
9751 * python/py-type.c: Update.
9752 * python/py-unwind.c: Update.
9753 * python/py-utils.c: Update.
9754 * python/py-value.c: Update.
9755 * python/python.c: Update.
9756 * record-btrace.c: Update.
9757 * record-full.c: Update.
9758 * remote-fileio.c: Update.
9759 * remote.c: Update.
9760 * riscv-tdep.c: Update.
9761 * rs6000-aix-tdep.c: Update.
9762 * rs6000-tdep.c: Update.
9763 * rust-exp.y: Update.
9764 * rust-lang.c: Update.
9765 * s390-tdep.c: Update.
9766 * selftest-arch.c: Update.
9767 * solib-dsbt.c: Update.
9768 * solib-frv.c: Update.
9769 * solib-spu.c: Update.
9770 * solib-svr4.c: Update.
9771 * solib.c: Update.
9772 * sparc64-linux-tdep.c: Update.
9773 * stack.c: Update.
9774 * symfile-mem.c: Update.
9775 * symmisc.c: Update.
9776 * target.c: Update.
9777 * thread.c: Update.
9778 * top.c: Update.
9779 * tracefile-tfile.c: Update.
9780 * tui/tui.c: Update.
9781 * typeprint.c: Update.
9782 * unittests/cli-utils-selftests.c: Update.
9783 * unittests/parse-connection-spec-selftests.c: Update.
9784 * valops.c: Update.
9785 * valprint.c: Update.
9786 * value.c: Update.
9787 * varobj.c: Update.
9788 * windows-nat.c: Update.
9789 * x86-linux-nat.c: Update.
9790 * xml-support.c: Update.
9791
a70b8144
TT
97922019-04-08 Tom Tromey <tom@tromey.com>
9793
9794 * xml-support.c: Use C++ exception handling.
9795 * x86-linux-nat.c: Use C++ exception handling.
9796 * windows-nat.c: Use C++ exception handling.
9797 * varobj.c: Use C++ exception handling.
9798 * value.c: Use C++ exception handling.
9799 * valprint.c: Use C++ exception handling.
9800 * valops.c: Use C++ exception handling.
9801 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9802 handling.
9803 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9804 * typeprint.c: Use C++ exception handling.
9805 * tui/tui.c: Use C++ exception handling.
9806 * tracefile-tfile.c: Use C++ exception handling.
9807 * top.c: Use C++ exception handling.
9808 * thread.c: Use C++ exception handling.
9809 * target.c: Use C++ exception handling.
9810 * symmisc.c: Use C++ exception handling.
9811 * symfile-mem.c: Use C++ exception handling.
9812 * stack.c: Use C++ exception handling.
9813 * sparc64-linux-tdep.c: Use C++ exception handling.
9814 * solib.c: Use C++ exception handling.
9815 * solib-svr4.c: Use C++ exception handling.
9816 * solib-spu.c: Use C++ exception handling.
9817 * solib-frv.c: Use C++ exception handling.
9818 * solib-dsbt.c: Use C++ exception handling.
9819 * selftest-arch.c: Use C++ exception handling.
9820 * s390-tdep.c: Use C++ exception handling.
9821 * rust-lang.c: Use C++ exception handling.
9822 * rust-exp.y: Use C++ exception handling.
9823 * rs6000-tdep.c: Use C++ exception handling.
9824 * rs6000-aix-tdep.c: Use C++ exception handling.
9825 * riscv-tdep.c: Use C++ exception handling.
9826 * remote.c: Use C++ exception handling.
9827 * remote-fileio.c: Use C++ exception handling.
9828 * record-full.c: Use C++ exception handling.
9829 * record-btrace.c: Use C++ exception handling.
9830 * python/python.c: Use C++ exception handling.
9831 * python/py-value.c: Use C++ exception handling.
9832 * python/py-utils.c: Use C++ exception handling.
9833 * python/py-unwind.c: Use C++ exception handling.
9834 * python/py-type.c: Use C++ exception handling.
9835 * python/py-symbol.c: Use C++ exception handling.
9836 * python/py-record.c: Use C++ exception handling.
9837 * python/py-record-btrace.c: Use C++ exception handling.
9838 * python/py-progspace.c: Use C++ exception handling.
9839 * python/py-prettyprint.c: Use C++ exception handling.
9840 * python/py-param.c: Use C++ exception handling.
9841 * python/py-objfile.c: Use C++ exception handling.
9842 * python/py-linetable.c: Use C++ exception handling.
9843 * python/py-lazy-string.c: Use C++ exception handling.
9844 * python/py-infthread.c: Use C++ exception handling.
9845 * python/py-inferior.c: Use C++ exception handling.
9846 * python/py-gdb-readline.c: Use C++ exception handling.
9847 * python/py-framefilter.c: Use C++ exception handling.
9848 * python/py-frame.c: Use C++ exception handling.
9849 * python/py-finishbreakpoint.c: Use C++ exception handling.
9850 * python/py-cmd.c: Use C++ exception handling.
9851 * python/py-breakpoint.c: Use C++ exception handling.
9852 * python/py-arch.c: Use C++ exception handling.
9853 * printcmd.c: Use C++ exception handling.
9854 * ppc-linux-tdep.c: Use C++ exception handling.
9855 * parse.c: Use C++ exception handling.
9856 * p-valprint.c: Use C++ exception handling.
9857 * objc-lang.c: Use C++ exception handling.
9858 * mi/mi-main.c: Use C++ exception handling.
9859 * mi/mi-interp.c: Use C++ exception handling.
9860 * mi/mi-cmd-stack.c: Use C++ exception handling.
9861 * mi/mi-cmd-break.c: Use C++ exception handling.
9862 * main.c: Use C++ exception handling.
9863 * linux-thread-db.c: Use C++ exception handling.
9864 * linux-tdep.c: Use C++ exception handling.
9865 * linux-nat.c: Use C++ exception handling.
9866 * linux-fork.c: Use C++ exception handling.
9867 * linespec.c: Use C++ exception handling.
9868 * language.c: Use C++ exception handling.
9869 * jit.c: Use C++ exception handling.
9870 * infrun.c: Use C++ exception handling.
9871 * infcmd.c: Use C++ exception handling.
9872 * infcall.c: Use C++ exception handling.
9873 * inf-loop.c: Use C++ exception handling.
9874 * i386-tdep.c: Use C++ exception handling.
9875 * i386-linux-tdep.c: Use C++ exception handling.
9876 * guile/scm-value.c: Use C++ exception handling.
9877 * guile/scm-type.c: Use C++ exception handling.
9878 * guile/scm-symtab.c: Use C++ exception handling.
9879 * guile/scm-symbol.c: Use C++ exception handling.
9880 * guile/scm-pretty-print.c: Use C++ exception handling.
9881 * guile/scm-ports.c: Use C++ exception handling.
9882 * guile/scm-param.c: Use C++ exception handling.
9883 * guile/scm-math.c: Use C++ exception handling.
9884 * guile/scm-lazy-string.c: Use C++ exception handling.
9885 * guile/scm-frame.c: Use C++ exception handling.
9886 * guile/scm-disasm.c: Use C++ exception handling.
9887 * guile/scm-cmd.c: Use C++ exception handling.
9888 * guile/scm-breakpoint.c: Use C++ exception handling.
9889 * guile/scm-block.c: Use C++ exception handling.
9890 * guile/guile-internal.h: Use C++ exception handling.
9891 * gnu-v3-abi.c: Use C++ exception handling.
9892 * gdbtypes.c: Use C++ exception handling.
9893 * frame.c: Use C++ exception handling.
9894 * frame-unwind.c: Use C++ exception handling.
9895 * fbsd-tdep.c: Use C++ exception handling.
9896 * f-valprint.c: Use C++ exception handling.
9897 * exec.c: Use C++ exception handling.
9898 * event-top.c: Use C++ exception handling.
9899 * event-loop.c: Use C++ exception handling.
9900 * eval.c: Use C++ exception handling.
9901 * dwarf2read.c: Use C++ exception handling.
9902 * dwarf2loc.c: Use C++ exception handling.
9903 * dwarf2-frame.c: Use C++ exception handling.
9904 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9905 * dwarf-index-write.c: Use C++ exception handling.
9906 * dwarf-index-cache.c: Use C++ exception handling.
9907 * dtrace-probe.c: Use C++ exception handling.
9908 * disasm-selftests.c: Use C++ exception handling.
9909 * darwin-nat.c: Use C++ exception handling.
9910 * cp-valprint.c: Use C++ exception handling.
9911 * cp-support.c: Use C++ exception handling.
9912 * cp-abi.c: Use C++ exception handling.
9913 * corelow.c: Use C++ exception handling.
9914 * completer.c: Use C++ exception handling.
9915 * compile/compile-object-run.c: Use C++ exception handling.
9916 * compile/compile-object-load.c: Use C++ exception handling.
9917 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9918 * compile/compile-c-symbols.c: Use C++ exception handling.
9919 * common/selftest.c: Use C++ exception handling.
9920 * common/new-op.c: Use C++ exception handling.
9921 * cli/cli-script.c: Use C++ exception handling.
9922 * cli/cli-interp.c: Use C++ exception handling.
9923 * cli/cli-cmds.c: Use C++ exception handling.
9924 * c-varobj.c: Use C++ exception handling.
9925 * btrace.c: Use C++ exception handling.
9926 * breakpoint.c: Use C++ exception handling.
9927 * break-catch-throw.c: Use C++ exception handling.
9928 * arch-utils.c: Use C++ exception handling.
9929 * amd64-tdep.c: Use C++ exception handling.
9930 * ada-valprint.c: Use C++ exception handling.
9931 * ada-typeprint.c: Use C++ exception handling.
9932 * ada-lang.c: Use C++ exception handling.
9933 * aarch64-tdep.c: Use C++ exception handling.
9934
3d6e9d23
TT
99352019-04-08 Tom Tromey <tom@tromey.com>
9936
9937 * xml-support.c (gdb_xml_parser::parse): Update.
9938 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9939 * value.c (show_convenience): Update.
9940 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9941 (test_parse_flags_qcs): Update.
9942 * thread.c (thr_try_catch_cmd): Update.
9943 * target.c (target_translate_tls_address): Update.
9944 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9945 (info_frame_command_core, frame_apply_command_count): Update.
9946 * rust-exp.y (rust_lex_exception_test): Update.
9947 * riscv-tdep.c (riscv_print_one_register_info): Update.
9948 * remote.c (remote_target::enable_btrace): Update.
9949 * record-btrace.c (record_btrace_enable_warn): Update.
9950 * python/py-utils.c (gdbpy_convert_exception): Update.
9951 * printcmd.c (do_one_display, print_variable_and_value): Update.
9952 * mi/mi-main.c (mi_print_exception): Update.
9953 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9954 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9955 * linux-nat.c (linux_nat_target::attach): Update.
9956 * linux-fork.c (class scoped_switch_fork_info): Update.
9957 * infrun.c (displaced_step_prepare): Update.
9958 * infcall.c (call_function_by_hand_dummy): Update.
9959 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9960 * gnu-v3-abi.c (print_one_vtable): Update.
9961 * frame.c (get_prev_frame_always): Update.
9962 * f-valprint.c (info_common_command_for_block): Update.
9963 * exec.c (try_open_exec_file): Update.
9964 * exceptions.c (print_exception, exception_print)
9965 (exception_fprintf, exception_print_same): Update.
9966 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9967 * dwarf-index-cache.c (index_cache::store)
9968 (index_cache::lookup_gdb_index): Update.
9969 * darwin-nat.c (maybe_cache_shell): Update.
9970 * cp-valprint.c (cp_print_value_fields): Update.
9971 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9972 (gcc_cplus_symbol_address): Update.
9973 * compile/compile-c-symbols.c (gcc_convert_symbol)
9974 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9975 * common/selftest.c: Update.
9976 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9977 a std::string.
9978 (exception_try_scope_entry, exception_try_scope_exit): Don't
9979 declare.
9980 (struct exception_try_scope): Remove.
9981 (TRY): Don't use exception_try_scope.
9982 (struct gdb_exception): Add constructor, operator=.
9983 <what>: New method.
9984 (struct gdb_exception_RETURN_MASK_ALL)
9985 (struct gdb_exception_RETURN_MASK_ERROR)
9986 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9987 (struct gdb_quit_bad_alloc): Update.
9988 * common/common-exceptions.c (exception_none): Change
9989 initializer.
9990 (struct catcher) <state, exception>: Initialize inline.
9991 <prev>: Remove member.
9992 (current_catcher): Remove.
9993 (catchers): New global.
9994 (exceptions_state_mc_init): Simplify.
9995 (catcher_pop): Remove.
9996 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9997 (try_scope_depth, exception_try_scope_entry)
9998 (exception_try_scope_exit): Remove.
9999 (throw_exception_sjlj): Update.
10000 (exception_messages, exception_messages_size): Remove.
10001 (throw_it): Simplify.
10002 (gdb_exception_sliced_copy): Remove.
10003 (throw_exception_cxx): Update.
10004 * cli/cli-script.c (script_from_file): Update.
10005 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10006 Update.
10007 * ada-valprint.c (ada_val_print): Update.
10008 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10009 (create_excep_cond_exprs): Update.
10010
c5c10118
TT
100112019-04-08 Tom Tromey <tom@tromey.com>
10012
10013 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10014 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10015 (TRY, CATCH, END_CATCH): Remove some definitions.
10016 * common/common-exceptions.c: Don't use GDB_XCPT.
10017 (catcher_list_size): Remove.
10018 (throw_exception, throw_it): Simplify.
10019
4de283e4
TT
100202019-04-05 Tom Tromey <tom@tromey.com>
10021
10022 Revert the header-sorting patch.
10023 * ft32-tdep.c: Revert.
10024 * frv-tdep.c: Revert.
10025 * frv-linux-tdep.c: Revert.
10026 * frame.c: Revert.
10027 * frame-unwind.c: Revert.
10028 * frame-base.c: Revert.
10029 * fork-child.c: Revert.
10030 * findvar.c: Revert.
10031 * findcmd.c: Revert.
10032 * filesystem.c: Revert.
10033 * filename-seen-cache.h: Revert.
10034 * filename-seen-cache.c: Revert.
10035 * fbsd-tdep.c: Revert.
10036 * fbsd-nat.h: Revert.
10037 * fbsd-nat.c: Revert.
10038 * f-valprint.c: Revert.
10039 * f-typeprint.c: Revert.
10040 * f-lang.c: Revert.
10041 * extension.h: Revert.
10042 * extension.c: Revert.
10043 * extension-priv.h: Revert.
10044 * expprint.c: Revert.
10045 * exec.h: Revert.
10046 * exec.c: Revert.
10047 * exceptions.c: Revert.
10048 * event-top.c: Revert.
10049 * event-loop.c: Revert.
10050 * eval.c: Revert.
10051 * elfread.c: Revert.
10052 * dwarf2read.h: Revert.
10053 * dwarf2read.c: Revert.
10054 * dwarf2loc.c: Revert.
10055 * dwarf2expr.h: Revert.
10056 * dwarf2expr.c: Revert.
10057 * dwarf2-frame.c: Revert.
10058 * dwarf2-frame-tailcall.c: Revert.
10059 * dwarf-index-write.h: Revert.
10060 * dwarf-index-write.c: Revert.
10061 * dwarf-index-common.c: Revert.
10062 * dwarf-index-cache.h: Revert.
10063 * dwarf-index-cache.c: Revert.
10064 * dummy-frame.c: Revert.
10065 * dtrace-probe.c: Revert.
10066 * disasm.h: Revert.
10067 * disasm.c: Revert.
10068 * disasm-selftests.c: Revert.
10069 * dictionary.c: Revert.
10070 * dicos-tdep.c: Revert.
10071 * demangle.c: Revert.
10072 * dcache.h: Revert.
10073 * dcache.c: Revert.
10074 * darwin-nat.h: Revert.
10075 * darwin-nat.c: Revert.
10076 * darwin-nat-info.c: Revert.
10077 * d-valprint.c: Revert.
10078 * d-namespace.c: Revert.
10079 * d-lang.c: Revert.
10080 * ctf.c: Revert.
10081 * csky-tdep.c: Revert.
10082 * csky-linux-tdep.c: Revert.
10083 * cris-tdep.c: Revert.
10084 * cris-linux-tdep.c: Revert.
10085 * cp-valprint.c: Revert.
10086 * cp-support.c: Revert.
10087 * cp-namespace.c: Revert.
10088 * cp-abi.c: Revert.
10089 * corelow.c: Revert.
10090 * corefile.c: Revert.
10091 * continuations.c: Revert.
10092 * completer.h: Revert.
10093 * completer.c: Revert.
10094 * complaints.c: Revert.
10095 * coffread.c: Revert.
10096 * coff-pe-read.c: Revert.
10097 * cli-out.h: Revert.
10098 * cli-out.c: Revert.
10099 * charset.c: Revert.
10100 * c-varobj.c: Revert.
10101 * c-valprint.c: Revert.
10102 * c-typeprint.c: Revert.
10103 * c-lang.c: Revert.
10104 * buildsym.c: Revert.
10105 * buildsym-legacy.c: Revert.
10106 * build-id.h: Revert.
10107 * build-id.c: Revert.
10108 * btrace.c: Revert.
10109 * bsd-uthread.c: Revert.
10110 * breakpoint.h: Revert.
10111 * breakpoint.c: Revert.
10112 * break-catch-throw.c: Revert.
10113 * break-catch-syscall.c: Revert.
10114 * break-catch-sig.c: Revert.
10115 * blockframe.c: Revert.
10116 * block.c: Revert.
10117 * bfin-tdep.c: Revert.
10118 * bfin-linux-tdep.c: Revert.
10119 * bfd-target.c: Revert.
10120 * bcache.c: Revert.
10121 * ax-general.c: Revert.
10122 * ax-gdb.h: Revert.
10123 * ax-gdb.c: Revert.
10124 * avr-tdep.c: Revert.
10125 * auxv.c: Revert.
10126 * auto-load.c: Revert.
10127 * arm-wince-tdep.c: Revert.
10128 * arm-tdep.c: Revert.
10129 * arm-symbian-tdep.c: Revert.
10130 * arm-pikeos-tdep.c: Revert.
10131 * arm-obsd-tdep.c: Revert.
10132 * arm-nbsd-tdep.c: Revert.
10133 * arm-nbsd-nat.c: Revert.
10134 * arm-linux-tdep.c: Revert.
10135 * arm-linux-nat.c: Revert.
10136 * arm-fbsd-tdep.c: Revert.
10137 * arm-fbsd-nat.c: Revert.
10138 * arm-bsd-tdep.c: Revert.
10139 * arch-utils.c: Revert.
10140 * arc-tdep.c: Revert.
10141 * arc-newlib-tdep.c: Revert.
10142 * annotate.h: Revert.
10143 * annotate.c: Revert.
10144 * amd64-windows-tdep.c: Revert.
10145 * amd64-windows-nat.c: Revert.
10146 * amd64-tdep.c: Revert.
10147 * amd64-sol2-tdep.c: Revert.
10148 * amd64-obsd-tdep.c: Revert.
10149 * amd64-obsd-nat.c: Revert.
10150 * amd64-nbsd-tdep.c: Revert.
10151 * amd64-nbsd-nat.c: Revert.
10152 * amd64-nat.c: Revert.
10153 * amd64-linux-tdep.c: Revert.
10154 * amd64-linux-nat.c: Revert.
10155 * amd64-fbsd-tdep.c: Revert.
10156 * amd64-fbsd-nat.c: Revert.
10157 * amd64-dicos-tdep.c: Revert.
10158 * amd64-darwin-tdep.c: Revert.
10159 * amd64-bsd-nat.c: Revert.
10160 * alpha-tdep.c: Revert.
10161 * alpha-obsd-tdep.c: Revert.
10162 * alpha-nbsd-tdep.c: Revert.
10163 * alpha-mdebug-tdep.c: Revert.
10164 * alpha-linux-tdep.c: Revert.
10165 * alpha-linux-nat.c: Revert.
10166 * alpha-bsd-tdep.c: Revert.
10167 * alpha-bsd-nat.c: Revert.
10168 * aix-thread.c: Revert.
10169 * agent.c: Revert.
10170 * addrmap.c: Revert.
10171 * ada-varobj.c: Revert.
10172 * ada-valprint.c: Revert.
10173 * ada-typeprint.c: Revert.
10174 * ada-tasks.c: Revert.
10175 * ada-lang.c: Revert.
10176 * aarch64-tdep.c: Revert.
10177 * aarch64-ravenscar-thread.c: Revert.
10178 * aarch64-newlib-tdep.c: Revert.
10179 * aarch64-linux-tdep.c: Revert.
10180 * aarch64-linux-nat.c: Revert.
10181 * aarch64-fbsd-tdep.c: Revert.
10182 * aarch64-fbsd-nat.c: Revert.
10183 * aarch32-linux-nat.c: Revert.
10184
d55e5aa6
TT
101852019-04-05 Tom Tromey <tom@tromey.com>
10186
10187 * ft32-tdep.c: Sort headers.
10188 * frv-tdep.c: Sort headers.
10189 * frv-linux-tdep.c: Sort headers.
10190 * frame.c: Sort headers.
10191 * frame-unwind.c: Sort headers.
10192 * frame-base.c: Sort headers.
10193 * fork-child.c: Sort headers.
10194 * findvar.c: Sort headers.
10195 * findcmd.c: Sort headers.
10196 * filesystem.c: Sort headers.
10197 * filename-seen-cache.h: Sort headers.
10198 * filename-seen-cache.c: Sort headers.
10199 * fbsd-tdep.c: Sort headers.
10200 * fbsd-nat.h: Sort headers.
10201 * fbsd-nat.c: Sort headers.
10202 * f-valprint.c: Sort headers.
10203 * f-typeprint.c: Sort headers.
10204 * f-lang.c: Sort headers.
10205 * extension.h: Sort headers.
10206 * extension.c: Sort headers.
10207 * extension-priv.h: Sort headers.
10208 * expprint.c: Sort headers.
10209 * exec.h: Sort headers.
10210 * exec.c: Sort headers.
10211 * exceptions.c: Sort headers.
10212 * event-top.c: Sort headers.
10213 * event-loop.c: Sort headers.
10214 * eval.c: Sort headers.
10215 * elfread.c: Sort headers.
10216 * dwarf2read.h: Sort headers.
10217 * dwarf2read.c: Sort headers.
10218 * dwarf2loc.c: Sort headers.
10219 * dwarf2expr.h: Sort headers.
10220 * dwarf2expr.c: Sort headers.
10221 * dwarf2-frame.c: Sort headers.
10222 * dwarf2-frame-tailcall.c: Sort headers.
10223 * dwarf-index-write.h: Sort headers.
10224 * dwarf-index-write.c: Sort headers.
10225 * dwarf-index-common.c: Sort headers.
10226 * dwarf-index-cache.h: Sort headers.
10227 * dwarf-index-cache.c: Sort headers.
10228 * dummy-frame.c: Sort headers.
10229 * dtrace-probe.c: Sort headers.
10230 * disasm.h: Sort headers.
10231 * disasm.c: Sort headers.
10232 * disasm-selftests.c: Sort headers.
10233 * dictionary.c: Sort headers.
10234 * dicos-tdep.c: Sort headers.
10235 * demangle.c: Sort headers.
10236 * dcache.h: Sort headers.
10237 * dcache.c: Sort headers.
10238 * darwin-nat.h: Sort headers.
10239 * darwin-nat.c: Sort headers.
10240 * darwin-nat-info.c: Sort headers.
10241 * d-valprint.c: Sort headers.
10242 * d-namespace.c: Sort headers.
10243 * d-lang.c: Sort headers.
10244 * ctf.c: Sort headers.
10245 * csky-tdep.c: Sort headers.
10246 * csky-linux-tdep.c: Sort headers.
10247 * cris-tdep.c: Sort headers.
10248 * cris-linux-tdep.c: Sort headers.
10249 * cp-valprint.c: Sort headers.
10250 * cp-support.c: Sort headers.
10251 * cp-namespace.c: Sort headers.
10252 * cp-abi.c: Sort headers.
10253 * corelow.c: Sort headers.
10254 * corefile.c: Sort headers.
10255 * continuations.c: Sort headers.
10256 * completer.h: Sort headers.
10257 * completer.c: Sort headers.
10258 * complaints.c: Sort headers.
10259 * coffread.c: Sort headers.
10260 * coff-pe-read.c: Sort headers.
10261 * cli-out.h: Sort headers.
10262 * cli-out.c: Sort headers.
10263 * charset.c: Sort headers.
10264 * c-varobj.c: Sort headers.
10265 * c-valprint.c: Sort headers.
10266 * c-typeprint.c: Sort headers.
10267 * c-lang.c: Sort headers.
10268 * buildsym.c: Sort headers.
10269 * buildsym-legacy.c: Sort headers.
10270 * build-id.h: Sort headers.
10271 * build-id.c: Sort headers.
10272 * btrace.c: Sort headers.
10273 * bsd-uthread.c: Sort headers.
10274 * breakpoint.h: Sort headers.
10275 * breakpoint.c: Sort headers.
10276 * break-catch-throw.c: Sort headers.
10277 * break-catch-syscall.c: Sort headers.
10278 * break-catch-sig.c: Sort headers.
10279 * blockframe.c: Sort headers.
10280 * block.c: Sort headers.
10281 * bfin-tdep.c: Sort headers.
10282 * bfin-linux-tdep.c: Sort headers.
10283 * bfd-target.c: Sort headers.
10284 * bcache.c: Sort headers.
10285 * ax-general.c: Sort headers.
10286 * ax-gdb.h: Sort headers.
10287 * ax-gdb.c: Sort headers.
10288 * avr-tdep.c: Sort headers.
10289 * auxv.c: Sort headers.
10290 * auto-load.c: Sort headers.
10291 * arm-wince-tdep.c: Sort headers.
10292 * arm-tdep.c: Sort headers.
10293 * arm-symbian-tdep.c: Sort headers.
10294 * arm-pikeos-tdep.c: Sort headers.
10295 * arm-obsd-tdep.c: Sort headers.
10296 * arm-nbsd-tdep.c: Sort headers.
10297 * arm-nbsd-nat.c: Sort headers.
10298 * arm-linux-tdep.c: Sort headers.
10299 * arm-linux-nat.c: Sort headers.
10300 * arm-fbsd-tdep.c: Sort headers.
10301 * arm-fbsd-nat.c: Sort headers.
10302 * arm-bsd-tdep.c: Sort headers.
10303 * arch-utils.c: Sort headers.
10304 * arc-tdep.c: Sort headers.
10305 * arc-newlib-tdep.c: Sort headers.
10306 * annotate.h: Sort headers.
10307 * annotate.c: Sort headers.
10308 * amd64-windows-tdep.c: Sort headers.
10309 * amd64-windows-nat.c: Sort headers.
10310 * amd64-tdep.c: Sort headers.
10311 * amd64-sol2-tdep.c: Sort headers.
10312 * amd64-obsd-tdep.c: Sort headers.
10313 * amd64-obsd-nat.c: Sort headers.
10314 * amd64-nbsd-tdep.c: Sort headers.
10315 * amd64-nbsd-nat.c: Sort headers.
10316 * amd64-nat.c: Sort headers.
10317 * amd64-linux-tdep.c: Sort headers.
10318 * amd64-linux-nat.c: Sort headers.
10319 * amd64-fbsd-tdep.c: Sort headers.
10320 * amd64-fbsd-nat.c: Sort headers.
10321 * amd64-dicos-tdep.c: Sort headers.
10322 * amd64-darwin-tdep.c: Sort headers.
10323 * amd64-bsd-nat.c: Sort headers.
10324 * alpha-tdep.c: Sort headers.
10325 * alpha-obsd-tdep.c: Sort headers.
10326 * alpha-nbsd-tdep.c: Sort headers.
10327 * alpha-mdebug-tdep.c: Sort headers.
10328 * alpha-linux-tdep.c: Sort headers.
10329 * alpha-linux-nat.c: Sort headers.
10330 * alpha-bsd-tdep.c: Sort headers.
10331 * alpha-bsd-nat.c: Sort headers.
10332 * aix-thread.c: Sort headers.
10333 * agent.c: Sort headers.
10334 * addrmap.c: Sort headers.
10335 * ada-varobj.c: Sort headers.
10336 * ada-valprint.c: Sort headers.
10337 * ada-typeprint.c: Sort headers.
10338 * ada-tasks.c: Sort headers.
10339 * ada-lang.c: Sort headers.
10340 * aarch64-tdep.c: Sort headers.
10341 * aarch64-ravenscar-thread.c: Sort headers.
10342 * aarch64-newlib-tdep.c: Sort headers.
10343 * aarch64-linux-tdep.c: Sort headers.
10344 * aarch64-linux-nat.c: Sort headers.
10345 * aarch64-fbsd-tdep.c: Sort headers.
10346 * aarch64-fbsd-nat.c: Sort headers.
10347 * aarch32-linux-nat.c: Sort headers.
10348
699bd4cf
TT
103492019-04-04 Tom Tromey <tom@tromey.com>
10350
10351 * varobj.c (varobj_create): Update.
10352 * rust-exp.y (struct rust_parser) <update_innermost_block,
10353 lookup_symbol>: New methods.
10354 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10355 Rename.
10356 (rust_parser::rust_lookup_type)
10357 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10358 * printcmd.c (display_command, do_one_display): Update.
10359 * parser-defs.h (struct parser_state) <parser_state>: Add
10360 "tracker" parameter.
10361 (block_tracker): New member.
10362 (class innermost_block_tracker) <innermost_block_tracker>: Add
10363 "types" parameter.
10364 <reset>: Remove method.
10365 (innermost_block): Don't declare.
10366 (null_post_parser): Update.
10367 * parse.c (innermost_block): Remove global.
10368 (write_dollar_variable): Update.
10369 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10370 Remove "tracker_types" parameter.
10371 (parse_expression): Add "tracker" parameter.
10372 (parse_expression_for_completion): Update.
10373 (null_post_parser): Add "tracker" parameter.
10374 * p-exp.y: Update rules.
10375 * m2-exp.y: Update rules.
10376 * language.h (struct language_defn) <la_post_parser>: Add
10377 "tracker" parameter.
10378 * go-exp.y: Update rules.
10379 * f-exp.y: Update rules.
10380 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10381 parameter.
10382 * d-exp.y: Update rules.
10383 * c-exp.y: Update rules.
10384 * breakpoint.c (set_breakpoint_condition): Create an
10385 innermost_block_tracker.
10386 (watch_command_1): Likewise.
10387 * ada-lang.c (resolve): Add "tracker" parameter.
10388 (resolve_subexp): Likewise.
10389 * ada-exp.y (write_var_from_sym): Update.
10390
dac43e32
TT
103912019-04-04 Tom Tromey <tom@tromey.com>
10392
10393 * type-stack.h: New file.
10394 * type-stack.c: New file.
10395 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10396 type-stack.h.
10397 (insert_into_type_stack, insert_type, push_type, push_type_int)
10398 (insert_type_address_space, pop_type, pop_type_int)
10399 (pop_typelist, pop_type_stack, append_type_stack)
10400 (push_type_stack, get_type_stack, push_typelist)
10401 (follow_type_instance_flags, follow_types): Don't declare.
10402 * parse.c (type_stack): Remove global.
10403 (parse_exp_in_context): Update.
10404 (insert_into_type_stack, insert_type, push_type, push_type_int)
10405 (insert_type_address_space, pop_type, pop_type_int)
10406 (pop_typelist, pop_type_stack, append_type_stack)
10407 (push_type_stack, get_type_stack, push_typelist)
10408 (follow_type_instance_flags, follow_types): Remove (moved to
10409 type-stack.c).
10410 * f-exp.y (type_stack): New global.
10411 Update rules.
10412 (push_kind_type, f_parse): Update.
10413 * d-exp.y (type_stack): New global.
10414 Update rules.
10415 (d_parse): Update.
10416 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10417 Update rules.
10418 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10419 (HFILES_NO_SRCDIR): Add type-stack.h.
10420
2a612529
TT
104212019-04-04 Tom Tromey <tom@tromey.com>
10422
10423 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10424 (rust_parser::convert_ast_to_expression, rust_parse)
10425 (rust_lex_test_completion, rust_lex_tests): Update.
10426 * parser-defs.h (struct expr_completion_state): New.
10427 (struct parser_state) <parser_state>: Add completion parameter.
10428 <mark_struct_expression, mark_completion_tag>: New methods.
10429 <parse_completion, m_completion_state>: New members.
10430 (prefixify_expression, null_post_parser): Update.
10431 (mark_struct_expression, mark_completion_tag): Don't declare.
10432 * parse.c (parse_completion, expout_last_struct)
10433 (expout_tag_completion_type, expout_completion_name): Remove
10434 globals.
10435 (parser_state::mark_struct_expression)
10436 (parser_state::mark_completion_tag): Now methods.
10437 (prefixify_expression): Add last_struct parameter.
10438 (prefixify_subexp): Likewise.
10439 (parse_exp_1): Update.
10440 (parse_exp_in_context): Add cstate parameter. Update.
10441 (parse_expression_for_completion): Create an
10442 expr_completion_state.
10443 (null_post_parser): Add "completion" parameter.
10444 * p-exp.y: Update rules.
10445 (yylex): Update.
10446 * language.h (struct language_defn) <la_post_parser>: Add
10447 "completing" parameter.
10448 * go-exp.y: Update rules.
10449 (lex_one_token): Update.
10450 * expression.h (parse_completion): Don't declare.
10451 * d-exp.y: Update rules.
10452 (lex_one_token): Update rules.
10453 * c-exp.y: Update rules.
10454 (lex_one_token): Update.
10455 * ada-lang.c (resolve): Add "parse_completion" parameter.
10456 (resolve_subexp): Likewise.
10457 (ada_resolve_function): Likewise.
10458
43476f0b
TT
104592019-04-04 Tom Tromey <tom@tromey.com>
10460
10461 * parser-defs.h (struct parser_state) <start_arglist,
10462 end_arglist>: New methods.
10463 <arglist_len, m_funcall_chain>: New members.
10464 (arglist_len, start_arglist, end_arglist): Don't declare.
10465 * parse.c (arglist_len, funcall_chain): Remove global.
10466 (start_arglist, end_arglist): Remove functions.
10467 (parse_exp_in_context): Update.
10468 * p-exp.y: Update rules.
10469 * m2-exp.y: Update rules.
10470 * go-exp.y: Update rules.
10471 * f-exp.y: Update rules.
10472 * d-exp.y: Update rules.
10473 * c-exp.y: Update rules.
10474
5776fca3
TT
104752019-04-04 Tom Tromey <tom@tromey.com>
10476
10477 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10478 lex_operator, push_back>: New methods.
10479 Update all rules.
10480 (rust_parser::lex_hex, lex_escape): Rename and update.
10481 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10482 (rust_parser::lex_operator): Rename and update.
10483 (rust_parser::lex_number, rustyylex, rustyyerror)
10484 (rust_lex_test_init, rust_lex_test_sequence)
10485 (rust_lex_test_push_back, rust_lex_tests): Update.
10486 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10487 parameter.
10488 <lexptr, prev_lexptr>: New members.
10489 (lexptr, prev_lexptr): Don't declare.
10490 * parse.c (lexptr, prev_lexptr): Remove globals.
10491 (parse_exp_in_context): Update.
10492 * p-exp.y (yylex, yyerror): Update.
10493 * m2-exp.y (parse_number, yylex, yyerror): Update.
10494 * go-exp.y (lex_one_token, yyerror): Update.
10495 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10496 * d-exp.y (lex_one_token, yyerror): Update.
10497 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10498 (lex_one_token, yyerror): Update.
10499 * ada-lex.l (YY_INPUT): Update.
10500 (rewind_to_char): Update.
10501 * ada-exp.y (yyerror): Update.
10502
8621b685
TT
105032019-04-04 Tom Tromey <tom@tromey.com>
10504
10505 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10506 * parser-defs.h (struct parser_state) <parser_state>: Add new
10507 parameter.
10508 <comma_terminates>: New member.
10509 (comma_terminates): Don't declare global.
10510 * parse.c (comma_terminates): Remove global.
10511 (parse_exp_in_context): Update.
10512 * p-exp.y (yylex): Update.
10513 * m2-exp.y (yylex): Update.
10514 * go-exp.y (lex_one_token): Update.
10515 * f-exp.y (yylex): Update.
10516 * d-exp.y (lex_one_token): Update.
10517 * c-exp.y (lex_one_token): Update.
10518 * ada-lex.l: Update.
10519
28aaf3fd
TT
105202019-04-04 Tom Tromey <tom@tromey.com>
10521
10522 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10523 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10524 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10525 * parser-defs.h (paren_depth): Don't declare.
10526 * parse.c (paren_depth): Remove global.
10527 (parse_exp_in_context): Update.
10528 * p-exp.y (paren_depth): New global.
10529 (pascal_parse): Initialize it.
10530 * m2-exp.y (paren_depth): New global.
10531 (m2_parse): Initialize it.
10532 * go-exp.y (paren_depth): New global.
10533 (go_parse): Initialize it.
10534 * f-exp.y (paren_depth): New global.
10535 (f_parse): Initialize it.
10536 * d-exp.y (paren_depth): New global.
10537 (d_parse): Initialize it.
10538 * c-exp.y (paren_depth): New global.
10539 (c_parse): Initialize it.
10540 * ada-lex.l (paren_depth): New global.
10541 (lexer_init): Initialize it.
10542
1e58a4a4
TT
105432019-04-04 Tom Tromey <tom@tromey.com>
10544
10545 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10546 (rust_parser::convert_ast_to_type)
10547 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10548 * parser-defs.h (struct parser_state) <parser_state>: Add
10549 parameters. Initialize new members.
10550 <expression_context_block, expression_context_pc>: New members.
10551 * parse.c (expression_context_block, expression_context_pc):
10552 Remove globals.
10553 (parse_exp_in_context): Update.
10554 * p-exp.y: Update all rules.
10555 (yylex): Update.
10556 * m2-exp.y: Update all rules.
10557 (yylex): Update.
10558 * go-exp.y (yylex): Update.
10559 * f-exp.y (yylex): Update.
10560 * d-exp.y: Update all rules.
10561 (yylex): Update.
10562 * c-exp.y: Update all rules.
10563 (lex_one_token, classify_name, yylex, c_parse): Update.
10564 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10565
37eedb39
TT
105662019-04-04 Tom Tromey <tom@tromey.com>
10567
10568 * gdbarch.h, gdbarch.c: Rebuild.
10569 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10570 * stap-probe.h:
10571 (struct stap_parse_info): Replace "parser_state" with
10572 "expr_builder".
10573 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10574 (parser_state): New class.
10575 * parse.c (expr_builder): Rename.
10576 (expr_builder::release): Rename.
10577 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10578 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10579 (write_exp_elt_longcst, write_exp_elt_floatcst)
10580 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10581 (write_exp_string_vector, write_exp_bitstring)
10582 (write_exp_msymbol, mark_struct_expression)
10583 (write_dollar_variable)
10584 (insert_type_address_space, increase_expout_size): Replace
10585 "parser_state" with "expr_builder".
10586 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10587 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10588 "parser_state" with "expr_builder".
10589
73923d7e
TT
105902019-04-04 Tom Tromey <tom@tromey.com>
10591
10592 * rust-exp.y: Replace "parse_language" with method call.
10593 * p-exp.y:
10594 (yylex): Replace "parse_language" with method call.
10595 * m2-exp.y:
10596 (yylex): Replace "parse_language" with method call.
10597 * go-exp.y (classify_name): Replace "parse_language" with method
10598 call.
10599 * f-exp.y (yylex): Replace "parse_language" with method call.
10600 * d-exp.y (lex_one_token): Replace "parse_language" with method
10601 call.
10602 * c-exp.y:
10603 (lex_one_token, classify_name, yylex): Replace "parse_language"
10604 with method call.
10605 * ada-exp.y (find_primitive_type, type_char)
10606 (type_system_address): Replace "parse_language" with method call.
10607
fa9f5be6
TT
106082019-04-04 Tom Tromey <tom@tromey.com>
10609
10610 * rust-exp.y: Replace "parse_gdbarch" with method call.
10611 * parse.c (write_dollar_variable, insert_type_address_space):
10612 Replace "parse_gdbarch" with method call.
10613 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10614 call.
10615 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10616 call.
10617 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10618 "parse_gdbarch" with method call.
10619 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10620 with method call.
10621 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10622 "parse_gdbarch" with method call.
10623 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10624 "parse_gdbarch" with method call.
10625 * c-exp.y (parse_type, parse_number, classify_name): Replace
10626 "parse_gdbarch" with method call.
10627 * ada-lex.l: Replace "parse_gdbarch" with method call.
10628 * ada-exp.y (parse_type, find_primitive_type, type_char)
10629 (type_system_address): Replace "parse_gdbarch" with method call.
10630
1201a264
TT
106312019-04-04 Tom Tromey <tom@tromey.com>
10632
10633 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10634 * stap-probe.c (stap_parse_argument): Update.
10635 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10636 initial_size parameter.
10637 * rust-exp.y (rust_lex_tests): Update.
10638 * parse.c (parser_state): Update.
10639 (parse_exp_in_context): Update.
10640 * parser-defs.h (struct parser_state) <parser_state>: Remove
10641 "initial_size" parameter.
10642
e3980ce2
TT
106432019-04-04 Tom Tromey <tom@tromey.com>
10644
10645 * parser-defs.h (increase_expout_size): Don't declare.
10646 * parse.c (increase_expout_size): Now static.
10647
e9f8e3f1
TS
106482019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10649
10650 * gnu-nat.c (gnu_nat_target::wait): Fix
10651 target_waitstatus_to_string call.
10652
d7df6549
AB
106532019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10654
10655 * eval.c (evaluate_subexp_standard): Handle internal functions
10656 during Fortran function call handling.
10657
8bdc1658
AB
106582019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * NEWS: Mention new internal functions.
10661 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10662 (read_base_type): Use dwarf2_init_complex_target_type.
10663 * value.c (creal_internal_fn): New function.
10664 (cimag_internal_fn): New function.
10665 (_initialize_values): Register new internal functions.
10666
c29705b7
PW
106672019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668
10669 * infrun.c (stop_all_threads): If debug_infrun, always
10670 trace the wait status after wait_one, using
10671 target_waitstatus_to_string and target_pid_to_str.
10672 (handle_inferior_event): Replace various trace of
10673 wait status kind by a single trace.
10674 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10675 wait status kind image by target_waitstatus_to_string.
10676 * target/waitstatus.c (target_waitstatus_to_string): Fix
10677 obsolete comment.
10678
05caa1d2
TT
106792019-04-01 Tom Tromey <tromey@adacore.com>
10680
10681 PR symtab/23331:
10682 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10683
9d1447e0
SDJ
106842019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10685 Pedro Alves <palves@redhat.com>
10686
10687 * top.c (quit_force): Call 'finalize_values'.
10688 * value.c (finalize_values): New function.
10689 * value.h (finalize_values): Declare.
10690
7734102d
EZ
106912019-03-30 Eli Zaretskii <eliz@gnu.org>
10692
10693 * NEWS: Announce $_gdb_major and $_gdb_minor.
10694
10695 * top.c (init_gdb_version_vars): New function.
10696 (gdb_init): Call init_gdb_version_vars.
10697
188e1fa9
TT
106982019-03-29 Tom Tromey <tromey@adacore.com>
10699
10700 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10701 help text. Remove dead code.
10702
2880242d
KS
107032019-03-29 Keith Seitz <keiths@redhat.com>
10704
10705 From Siddhesh Poyarekar:
10706 * f-lang.h (f77_get_upperbound): Return LONGEST.
10707 (f77_get_lowerbound): Likewise.
10708 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10709 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10710 print them.
10711 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10712 plongest to format print it.
10713 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10714 (f77_get_upperbound): Likewise.
10715 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10716 LOWER_BOUND to LONGEST.
10717 (f77_create_arrayprint_offset_tbl): Likewise.
10718
cc1defb1
KS
107192019-03-29 Keith Seitz <keiths@redhat.com>
10720
10721 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10722 %s/pulongest for TYPE_LENGTH instead of %d in format
10723 strings.
10724 * ada-typerint.c (ada_print_type): Likewise.
10725 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10726 * compile/compile-c-support.c (generate_register_struct): Likewise.
10727 * gdbtypes.c (recursive_dump_type): Likewise.
10728 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10729 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10730 instead of %d in format strings.
10731 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10732 to std::min to ULONGEST.
10733 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10734 instead of %d in format strings.
10735 * tracepoint.c (info_scope_command): Likewise.
10736 * typeprint.c (print_offset_data::update)
10737 (print_offset_data::finish): Likewise.
10738 * xtensa-tdep.c (xtensa_store_return_value)
10739 (xtensa_push_dummy_call): Likewise.
10740
e432ccf1
JT
107412019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10742
10743 * windows-nat.c (display_selector): Fixed format specifications
10744 for 64-bit Cygwin.
10745
65d2b333
PW
107462019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10747
10748 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10749
f489207e
SL
107502019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10751
10752 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10753 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10754 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10755 (nios2_linux_init_abi): Install it.
10756
bffa1015
AH
107572019-03-28 Alan Hayward <alan.hayward@arm.com>
10758
10759 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10760
fc96163a
AH
107612019-03-28 Alan Hayward <alan.hayward@arm.com>
10762
10763 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10764
20dc7e9b
PW
107652019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766 Tom Tromey <tromey@adacore.com>
10767
10768 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10769
7f5331a8
JB
107702019-03-26 Joel Brobecker <brobecker@adacore.com>
10771
10772 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10773 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10774 method to compute the bounds of range types. Also print "[evaluated]"
10775 if the bounds' values come from a dynamic evaluation.
10776
18c77628
AB
107772019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10778
10779 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10780 whitespace when pretty printing is on.
10781
53c973f2
AH
107822019-03-26 Alan Hayward <alan.hayward@arm.com>
10783
e79be6e5 10784 * ppc-linux-nat.c: Add include.
53c973f2 10785
d851aa71
AH
107862019-03-26 Alan Hayward <alan.hayward@arm.com>
10787
e79be6e5 10788 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10789
2fe7bab7
AH
107902019-03-26 Alan Hayward <alan.hayward@arm.com>
10791
e79be6e5 10792 * arm-linux-nat.c: Add include.
2fe7bab7 10793
068ef30e
SM
107942019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10795
10796 * source-cache.c (source_cache::get_source_lines): Re-read
10797 fullname after calling open_source_file.
10798
81a24d04
JB
107992019-03-25 John Baldwin <jhb@FreeBSD.org>
10800
10801 * NEWS: Mention TLS support for FreeBSD.
10802
79e7ae11
TT
108032019-03-25 Tom Tromey <tromey@adacore.com>
10804
10805 * minsyms.c (BUNCH_SIZE): Update comment.
10806 (~minimal_symbol_reader): Remove old comment.
10807 (compact_minimal_symbols): Update comment.
10808 (minimal_symbol_reader::install): Remove old comment. Update
10809 other comments.
10810
d45963c2
AH
108112019-03-25 Alan Hayward <alan.hayward@arm.com>
10812
10813 * s390-linux-nat.c: Add include.
10814
0f83012e
AH
108152019-03-25 Alan Hayward <alan.hayward@arm.com>
10816
10817 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10818 Call linux_get_hwcap.
10819 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10820 Likewise.
10821 (aarch64_linux_get_hwcap): Remove function.
10822 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10823 declaration.
10824 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10825 linux_get_hwcap.
10826 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10827 * linux-tdep.c (linux_get_hwcap): Add function.
10828 (linux_get_hwcap2): Likewise.
10829 * linux-tdep.h (linux_get_hwcap): Add declaration.
10830 (linux_get_hwcap2): Likewise.
10831 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10832 (ppc_linux_get_hwcap2): Likewise.
10833 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10834 linux_get_hwcap.
10835 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10836 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10837 (ppc_linux_nat_target::read_description): Likewise.
10838 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10839 * s390-linux-nat.c: Likewise.
10840 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10841
6640a367
TT
108422019-03-24 Tom Tromey <tom@tromey.com>
10843
10844 * ada-lang.c (standard_lookup): Simplify initialization.
10845 (ada_lookup_symbol_nonlocal): Simplify return.
10846 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10847 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10848 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10849 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10850 initialization.
10851 * solib.c (solib_global_lookup): Simplify.
10852 * symtab.c (null_block_symbol): Remove.
10853 (symbol_cache_lookup): Simplify returns.
10854 (lookup_language_this): Simplify returns.
10855 (lookup_symbol_aux): Simplify return.
10856 (lookup_local_symbol): Simplify returns.
10857 (lookup_global_symbol_from_objfile): Simplify return.
10858 (lookup_symbol_in_objfile_symtabs)
10859 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10860 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10861 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10862 * cp-namespace.c (cp_lookup_bare_symbol)
10863 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10864 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10865 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10866 (cp_lookup_symbol_via_imports): Simplify initialization.
10867 (find_symbol_in_baseclass): Likewise.
10868 * symtab.h (null_block_symbol): Remove.
10869 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10870 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10871 (d_lookup_symbol_module): Likewise.
10872 (find_symbol_in_baseclass): Simplify initialization.
10873
a930ebcd
TT
108742019-03-24 Tom Tromey <tom@tromey.com>
10875
10876 * expression.h: Don't include symtab.h.
10877 (struct block): Forward declare.
10878
582942f4
TT
108792019-03-24 Tom Tromey <tom@tromey.com>
10880
10881 * c-exp.y (typebase): Remove casts.
10882 * gdbtypes.c (lookup_unsigned_typename, )
10883 (lookup_signed_typename): Remove cast.
10884 * eval.c (parse_to_comma_and_eval): Remove cast.
10885 * parse.c (write_dollar_variable): Remove cast.
10886 * block.h (struct block) <superblock>: Now const.
10887 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10888 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10889 (map_block): Make "block" const.
10890 * symfile.h (struct quick_symbol_functions)
10891 <map_matching_symbols>: Constify block argument to "callback".
10892 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10893 const.
10894 (find_pc_sect_compunit_symtab): Make "b" const.
10895 (find_symbol_at_address): Likewise.
10896 (search_symbols): Likewise.
10897 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10898 (dw2_debug_names_lookup_symbol): Likewise.
10899 (dw2_map_matching_symbols): Update.
10900 * p-valprint.c (pascal_val_print): Remove "block".
10901 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10902 (aux_add_nonlocal_symbols): Make "block" const.
10903 (resolve_subexp): Remove cast.
10904 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10905 const.
10906 (iterate_over_file_blocks): Likewise.
10907 * f-exp.y (%union) <bval>: Remove.
10908 * coffread.c (patch_opaque_types): Make "b" const.
10909 * spu-tdep.c (spu_catch_start): Make "block" const.
10910 * c-valprint.c (print_unpacked_pointer): Remove "block".
10911 * symmisc.c (dump_symtab_1): Make "b" const.
10912 (block_depth): Make "block" const.
10913 * d-exp.y (%union) <bval>: Remove.
10914 * cp-support.h (cp_lookup_rtti_type): Update.
10915 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10916 * psymtab.c (psym_lookup_symbol): Make "block" const.
10917 (maintenance_check_psymtabs): Make "b" const.
10918 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10919 (enumerate_locals, enumerate_args): Update.
10920 * python/py-symtab.c (stpy_global_block): Make "block" const.
10921 (stpy_static_block): Likewise.
10922 * inline-frame.c (block_starting_point_at): Make "new_block"
10923 const.
10924 * block.c (find_block_in_blockvector): Make return type const.
10925 (blockvector_for_pc_sect): Make "b" const.
10926 (find_block_in_blockvector): Make "b" const.
10927
7ad417dd
TT
109282019-03-23 Tom Tromey <tom@tromey.com>
10929
10930 * varobj.c (varobj_create): Update.
10931 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10932 * printcmd.c (display_command, do_one_display): Don't reset
10933 innermost_block.
10934 * parser-defs.h (enum innermost_block_tracker_type): Move to
10935 expression.h.
10936 (innermost_block): Update comment.
10937 * parse.c (parse_exp_1): Add tracker_types parameter.
10938 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10939 tracker_types parameter. Reset innermost_block.
10940 (parse_exp_in_context): Remove.
10941 (parse_expression_for_completion): Update.
10942 * objfiles.c (~objfile): Don't reset expression_context_block or
10943 innermost_block.
10944 * expression.h (enum innermost_block_tracker_type): Move from
10945 parser-defs.h.
10946 (parse_exp_1): Add tracker_types parameter.
10947 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10948 reset innermost_block.
10949
b366c208
TT
109502019-03-23 Tom Tromey <tom@tromey.com>
10951
10952 * objfiles.h: Include bcache.h.
10953
9bb9b2f9
TT
109542019-03-23 Tom Tromey <tom@tromey.com>
10955
10956 * linespec.c (get_current_search_block): Use
10957 scoped_restore_current_language.
10958 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10959
59c28372
AH
109602019-03-22 Alan Hayward <alan.hayward@arm.com>
10961 Jiong Wang <jiong.wang@arm.com>
10962
10963 * aarch64-linux-tdep.c
10964 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10965 section.
10966 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10967
17e116a7
AH
109682019-03-22 Alan Hayward <alan.hayward@arm.com>
10969 Jiong Wang <jiong.wang@arm.com>
10970
10971 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10972 instructions.
10973 (aarch64_analyze_prologue_test): Add PACIASP test.
10974 (aarch64_prologue_prev_register): Unmask PC value.
10975
11e1b75f
AH
109762019-03-22 Alan Hayward <alan.hayward@arm.com>
10977 Jiong Wang <jiong.wang@arm.com>
10978
10979 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10980 (aarch64_dwarf2_prev_register): Unmask PC value.
10981 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10982 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10983 DW_CFA_AARCH64_negate_ra_state.
10984 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10985
34dcc7cf
AH
109862019-03-22 Alan Hayward <alan.hayward@arm.com>
10987 Jiong Wang <jiong.wang@arm.com>
10988
10989 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10990 registers.
10991 (aarch64_pseudo_register_name): Likewise.
10992 (aarch64_pseudo_register_type): Likewise.
10993 (aarch64_pseudo_register_reggroup_p): Likewise.
10994 (aarch64_gdbarch_init): Add pauth registers.
10995 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10996 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10997 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10998 (struct gdbarch_tdep): Add regnum for ra_state.
10999
1ef53e6b
AH
110002019-03-22 Alan Hayward <alan.hayward@arm.com>
11001 Jiong Wang <jiong.wang@arm.com>
11002
11003 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11004
76bed0fd
AH
110052019-03-22 Alan Hayward <alan.hayward@arm.com>
11006 Jiong Wang <jiong.wang@arm.com>
11007
11008 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11009 function.
11010 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11011 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11012 (aarch64_gdbarch_init): Add puth registers.
11013 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11014 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11015 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11016
ee4fbcfa
AH
110172019-03-22 Alan Hayward <alan.hayward@arm.com>
11018 Jiong Wang <jiong.wang@arm.com>
11019
11020 * aarch64-linux-nat.c
11021 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11022 * aarch64-linux-tdep.c
11023 (aarch64_linux_core_read_description): Likewise.
11024 (aarch64_linux_get_hwcap): New function.
11025 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11026 (aarch64_linux_get_hwcap): New declaration.
11027
6dc0ebde
AH
110282019-03-22 Alan Hayward <alan.hayward@arm.com>
11029 Jiong Wang <jiong.wang@arm.com>
11030
11031 * aarch64-linux-nat.c
11032 (aarch64_linux_nat_target::read_description): Add pauth param.
11033 * aarch64-linux-tdep.c
11034 (aarch64_linux_core_read_description): Likewise.
11035 * aarch64-tdep.c (struct target_desc): Add in pauth.
11036 (aarch64_read_description): Add pauth param.
11037 (aarch64_gdbarch_init): Likewise.
11038 * aarch64-tdep.h (aarch64_read_description): Likewise.
11039 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11040 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11041 * features/Makefile: Add new files.
11042 * features/aarch64-pauth.c: New file.
11043 * features/aarch64-pauth.xml: New file.
11044
595915c1
TT
110452019-03-20 Tom Tromey <tromey@adacore.com>
11046
11047 * infrun.c (handle_inferior_event): Rename from
11048 handle_inferior_event_1. Create a scoped_value_mark.
11049 (handle_inferior_event): Remove.
11050
4c7d57e7
TT
110512019-03-19 Tom Tromey <tromey@adacore.com>
11052
11053 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11054 * infrun.h (print_stop_event): Add "displays" parameter.
11055 * infrun.c (print_stop_event): Add "displays" parameter.
11056
cb246234
PA
110572019-03-19 Pedro Alves <palves@redhat.com>
11058
11059 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11060 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11061 to -1. Fix TABs vs spaces.
11062 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11063 * tui/tui-out.h (tui_ui_out) Add intro comments.
11064 <m_line, m_start_of_line>: In-class initialize, and add describing
11065 comment.
11066
3a0e45b2
AH
110672019-03-18 Alan Hayward <alan.hayward@arm.com>
11068
11069 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11070 variable names.
11071 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11072
5371b850
PA
110732019-03-18 Pedro Alves <palves@redhat.com>
11074 Eli Zaretskii <eliz@gnu.org>
11075
11076 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11077 m_line and m_start_of_line.
11078
b17c4cd0
EZ
110792019-03-18 Eli Zaretskii <eliz@gnu.org>
11080
11081 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11082 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11083 it returns a newline. This fixes a regression in TU mode, whereby
11084 the next line is output on the same screen line as the user input.
11085
4bd56d18
TT
110862019-03-18 Tom Tromey <tromey@adacore.com>
11087
11088 * minsyms.c (minimal_symbol_reader::install): Remove call to
11089 obstack_blank.
11090
55c10aca
PA
110912019-03-18 Pedro Alves <palves@redhat.com>
11092
11093 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11094 New globals.
11095 (apply_style): New, factored out from ...
11096 (apply_ansi_escape): ... this. Handle reverse video mode.
11097 (tui_set_reverse_mode): New function.
11098 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11099 * tui/tui-winsource.c (tui_show_source_line): Use
11100 tui_set_reverse_mode instead of setting A_STANDOUT.
11101 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11102 New setter methods.
11103
647bb750
HD
111042019-03-18 Hannes Domani <ssbssa@yahoo.de>
11105
11106 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11107 Handle tabs.
11108
bff8c71f
TT
111092019-03-18 Tom Tromey <tromey@adacore.com>
11110
11111 * ada-lang.c (empty_array): Add "high" parameter.
11112 (ada_evaluate_subexp): Update.
11113
58785d98
ST
111142019-03-17 Sergei Trofimovich <siarheit@google.com>
11115
11116 * unittests/string_view-selftests.c: Define
11117 _initialize_string_view_selftests unconditionally.
11118
d4cbef22
ВМ
111192019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11120
11121 PR gdb/24350
11122 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11123
fce4c071
ВМ
111242019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11125
11126 PR gdb/24351
11127 * windows-nat.c (display_selector): Fix format specifiers.
11128
f7f0a123
EZ
111292019-03-17 Eli Zaretskii <eliz@gnu.org>
11130
11131 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11132 tui_refill_source_window instead of tui_refresh_win, to update the
11133 current execution line. This fixes redisplay of the current line
11134 when stepping through the code with "next" or "step".
11135
ab42892f
EZ
111362019-03-16 Eli Zaretskii <eliz@gnu.org>
11137
11138 * source-cache.c (source_cache::get_source_lines): Call
11139 find_source_lines to initialize s->nlines. This fixes vertical
11140 scrolling of TUI source window when the DOWN arrow is pressed.
11141
8d8c087f
PW
111422019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11143
11144 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11145 linux-thread-db.c (_initialize_thread_db): Likewise.
11146
798e1c30
EZ
111472019-03-16 Eli Zaretskii <eliz@gnu.org>
11148
11149 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11150 wclrtoeol in tui_show_source_line". This reverts changes made in
11151 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11152
eefba3da
TT
111532019-03-15 Tom Tromey <tom@tromey.com>
11154
11155 * symtab.h (struct minimal_symbol): Derive from
11156 general_symbol_info.
11157 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11158 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11159 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11160 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11161 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11162 (MSYMBOL_SEARCH_NAME): Update.
11163 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11164 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11165 * minsyms.c (minimal_symbol_reader::record_full): Update.
11166
0de2420c
TT
111672019-03-15 Tom Tromey <tom@tromey.com>
11168
11169 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11170
042d75e4
TT
111712019-03-15 Tom Tromey <tom@tromey.com>
11172
11173 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11174 unique_xmalloc_ptr.
11175 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11176 Update.
11177 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11178 (build_minimal_symbol_hash_tables)
11179 (minimal_symbol_reader::install): Update.
11180
db92718b
TT
111812019-03-15 Tom Tromey <tom@tromey.com>
11182
11183 * symtab.c (create_demangled_names_hash): Update.
11184 (symbol_set_names): Update.
11185 * objfiles.h (struct objfile_per_bfd_storage)
11186 <demangled_names_hash>: Now an htab_up.
11187 * objfiles.c (objfile_per_bfd_storage): Simplify.
11188
d6797f46
TT
111892019-03-15 Tom Tromey <tom@tromey.com>
11190
11191 * objfiles.h (struct objfile_per_bfd_storage): Declare
11192 destructor.
11193 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11194 New.
11195 (get_objfile_bfd_data): Use new. Don't initialize
11196 language_of_main.
11197 (free_objfile_per_bfd_storage): Remove.
11198 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11199
741d7538
TT
112002019-03-15 Tom Tromey <tom@tromey.com>
11201
11202 * symfile.c (reread_symbols): Update.
11203 * objfiles.c (objfile::objfile): Update.
11204 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11205 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11206 comment.
11207 (minimal_symbol_reader::install): Update.
11208 (terminate_minimal_symbol_table): Remove.
11209 * jit.c (jit_object_close_impl): Update.
11210
788c80d1
TT
112112019-03-15 Tom Tromey <tom@tromey.com>
11212
11213 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11214 initializations.
11215
1b7a07cb
TT
112162019-03-15 Tom Tromey <tom@tromey.com>
11217
11218 * objfiles.h (struct objfile_per_bfd_storage)
11219 <demangled_hash_languages>: Now a bitset.
11220 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11221 (lookup_minimal_symbol): Update.
11222
3db066bc
TT
112232019-03-15 Tom Tromey <tom@tromey.com>
11224
11225 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11226 Don't return the symbol.
11227 * coffread.c (record_minimal_symbol): Use record_full.
11228
3fff2c37
EZ
112292019-03-14 Eli Zaretskii <eliz@gnu.org>
11230
11231 The MS-Windows port of ncurses fails to switch to a color pair if
11232 one or both of the colors are the implicit default colors. This
11233 change records the default colors when TUI is initialized, and
11234 then specifies them explicitly when a color pair uses the default
11235 colors. This allows color styling in TUI mode on MS-Windows.
11236
11237 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11238 ncurses_norm_attr.
11239 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11240 colors in ncurses_norm_attr.
11241 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11242 "none", replace it with the default color recorded in
11243 ncurses_norm_attr.
11244
3b336828
TT
112452019-03-14 Tom Tromey <tromey@adacore.com>
11246
11247 * source-cache.h (class source_cache) <get_source_lines>: Return
11248 std::string.
11249 * source-cache.c (source_cache::extract_lines): Handle case where
11250 first_pos==npos. Return std::string.
11251 (source_cache::get_source_lines): Update.
11252
d085f989
TT
112532019-03-14 Tom Tromey <tromey@adacore.com>
11254
11255 * NEWS: Add item for "style sources" commands.
11256 * source-cache.c (source_cache::get_source_lines): Check
11257 source_styling.
11258 * cli/cli-style.c (source_styling): New global.
11259 (_initialize_cli_style): Add "style sources" commands.
11260 (show_style_sources): New function.
11261 * cli/cli-style.h (source_styling): Declare.
11262
6f11e682
TT
112632019-03-14 Pedro Alves <palves@redhat.com>
11264 Tom Tromey <tromey@adacore.com>
11265
11266 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11267 * tui/tui-winsource.c (tui_refill_source_window): New function,
11268 from...
11269 (tui_horizontal_source_scroll): ... here. Move some logic.
11270 * cli/cli-style.c (set_style_enabled): Notify new observable.
11271 * tui/tui-hooks.c (tui_redisplay_source): New function.
11272 (tui_attach_detach_observers): Attach or detach
11273 tui_redisplay_source.
11274 * observable.h (source_styling_changed): New observable.
11275 * observable.c: Define source_styling_changed observable.
11276
a068643d
TT
112772019-03-13 Tom Tromey <tromey@adacore.com>
11278
11279 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11280 (i386_gnu_nat_target::store_registers): Update.
11281 * target-debug.h (target_debug_print_std_string): New macro.
11282 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11283 * windows-tdep.c (display_one_tib): Update.
11284 * tui/tui-stack.c (tui_make_status_line): Update.
11285 * top.c (print_inferior_quit_action): Update.
11286 * thread.c (thr_try_catch_cmd): Update.
11287 (add_thread_with_info): Update.
11288 (thread_target_id_str): Update.
11289 (thr_try_catch_cmd): Update.
11290 (thread_command): Update.
11291 (thread_find_command): Update.
11292 * record-btrace.c (record_btrace_target::info_record)
11293 (record_btrace_resume_thread, record_btrace_target::resume)
11294 (record_btrace_cancel_resume, record_btrace_step_thread)
11295 (record_btrace_target::wait, record_btrace_target::wait)
11296 (record_btrace_target::wait, record_btrace_target::stop): Update.
11297 * progspace.c (print_program_space): Update.
11298 * process-stratum-target.c
11299 (process_stratum_target::thread_address_space): Update.
11300 * linux-fork.c (linux_fork_mourn_inferior)
11301 (detach_checkpoint_command, info_checkpoints_command)
11302 (linux_fork_context): Update.
11303 (linux_fork_detach): Update.
11304 (class scoped_switch_fork_info): Update.
11305 (delete_checkpoint_command): Update.
11306 * infrun.c (follow_fork_inferior): Update.
11307 (follow_fork_inferior): Update.
11308 (proceed_after_vfork_done): Update.
11309 (handle_vfork_child_exec_or_exit): Update.
11310 (follow_exec): Update.
11311 (displaced_step_prepare_throw): Update.
11312 (displaced_step_restore): Update.
11313 (start_step_over): Update.
11314 (resume_1): Update.
11315 (clear_proceed_status_thread): Update.
11316 (proceed): Update.
11317 (print_target_wait_results): Update.
11318 (do_target_wait): Update.
11319 (context_switch): Update.
11320 (stop_all_threads): Update.
11321 (restart_threads): Update.
11322 (finish_step_over): Update.
11323 (handle_signal_stop): Update.
11324 (switch_back_to_stepped_thread): Update.
11325 (keep_going_pass_signal): Update.
11326 (print_exited_reason): Update.
11327 (normal_stop): Update.
11328 * inferior.c (inferior_pid_to_str): Change return type.
11329 (print_selected_inferior): Update.
11330 (add_inferior): Update.
11331 (detach_inferior): Update.
11332 * dummy-frame.c (fprint_dummy_frames): Update.
11333 * dcache.c (dcache_info_1): Update.
11334 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11335 (btrace_fetch, btrace_clear): Update.
11336 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11337 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11338 type.
11339 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11340 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11341 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11342 * gdbarch.c, gdbarch.h: Rebuild.
11343 * gdbarch.sh (core_pid_to_str): Change return type.
11344 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11345 return type.
11346 (windows_nat_target::pid_to_str): Change return type.
11347 (windows_delete_thread): Update.
11348 (windows_nat_target::attach): Update.
11349 (windows_nat_target::files_info): Update.
11350 * target-delegates.c: Rebuild.
11351 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11352 return type.
11353 (sol_thread_target::pid_to_str): Change return type.
11354 * remote.c (class remote_target) <pid_to_str>: Change return
11355 type.
11356 (remote_target::pid_to_str): Change return type.
11357 (extended_remote_target::attach, remote_target::remote_stop_ns)
11358 (remote_target::remote_notif_remove_queued_reply)
11359 (remote_target::push_stop_reply, remote_target::disable_btrace):
11360 Update.
11361 (extended_remote_target::attach): Update.
11362 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11363 type.
11364 (gdbsim_target::pid_to_str): Change return type.
11365 * ravenscar-thread.c (struct ravenscar_thread_target)
11366 <pid_to_str>: Change return type.
11367 (ravenscar_thread_target::pid_to_str): Change return type.
11368 * procfs.c (class procfs_target) <pid_to_str>: Change return
11369 type.
11370 (procfs_target::pid_to_str): Change return type.
11371 (procfs_target::attach): Update.
11372 (procfs_target::detach): Update.
11373 (procfs_target::fetch_registers): Update.
11374 (procfs_target::store_registers): Update.
11375 (procfs_target::wait): Update.
11376 (procfs_target::files_info): Update.
11377 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11378 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11379 return type.
11380 (nto_procfs_target::pid_to_str): Change return type.
11381 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11382 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11383 return type.
11384 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11385 (exit_lwp): Update.
11386 (attach_proc_task_lwp_callback, get_detach_signal)
11387 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11388 (linux_nat_target::resume, wait_lwp, stop_callback)
11389 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11390 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11391 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11392 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11393 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11394 type.
11395 (inf_ptrace_target::attach): Update.
11396 (inf_ptrace_target::files_info): Update.
11397 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11398 type.
11399 (go32_nat_target::pid_to_str): Change return type.
11400 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11401 (gnu_nat_target::wait): Update.
11402 (gnu_nat_target::wait): Update.
11403 (gnu_nat_target::resume): Update.
11404 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11405 (fbsd_nat_target::wait): Update.
11406 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11407 type.
11408 (darwin_nat_target::attach): Update.
11409 * corelow.c (class core_target) <pid_to_str>: Change return type.
11410 (core_target::pid_to_str): Change return type.
11411 * target.c (normal_pid_to_str): Change return type.
11412 (default_pid_to_str): Likewise.
11413 (target_pid_to_str): Change return type.
11414 (target_translate_tls_address): Update.
11415 (target_announce_detach): Update.
11416 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11417 return type.
11418 (bsd_uthread_target::pid_to_str): Change return type.
11419 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11420 type.
11421 (bsd_kvm_target::pid_to_str): Change return type.
11422 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11423 return type.
11424 (aix_thread_target::pid_to_str): Change return type.
11425 * target.h (struct target_ops) <pid_to_str>: Change return type.
11426 (target_pid_to_str, normal_pid_to_str): Likewise.
11427 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11428 type.
11429 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11430 type.
11431 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11432 return type.
11433 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11434 type.
11435 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11436 type.
11437 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11438 return type.
11439
b4be1b06
SM
114402019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11441
11442 * NEWS: Mention that the new default MI version is 3. Mention
11443 changes to the output of commands and events that deal with
11444 multi-location breakpoints.
11445 * breakpoint.c: Include "mi/mi-out.h".
11446 (print_one_breakpoint): Change output syntax if using MI version
11447 >= 3.
11448 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11449 New.
11450 (mi_multi_location_breakpoint_output_fixed): New.
11451 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11452 (mi_cmd_fix_multi_location_breakpoint_output): New.
11453 (mi_multi_location_breakpoint_output_fixed): New.
11454 * mi/mi-cmds.c (mi_cmds): Register command
11455 -fix-multi-location-breakpoint-output.
11456 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11457 interpreter "mi".
11458
8e5e5494
SM
114592019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11462 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11463 instantiate mi_ui_out based on interpreter name.
11464 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11465 * mi/mi-main.c (mi_load_progress): Likewise.
11466
197df35e
JB
114672019-03-12 John Baldwin <jhb@FreeBSD.org>
11468
11469 * NEWS: Combine separate "New targets" sections for 8.3.
11470
8399425f
JB
114712019-03-12 John Baldwin <jhb@FreeBSD.org>
11472
11473 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11474 (ppcfbsd_init_abi): Install gdbarch
11475 "fetch_tls_load_module_address" and "get_thread_local_address"
11476 methods.
11477
b0f87ed0
JB
114782019-03-12 John Baldwin <jhb@FreeBSD.org>
11479
11480 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11481 (riscv_fbsd_init_abi): Install gdbarch
11482 "fetch_tls_load_module_address" and "get_thread_local_address"
11483 methods.
11484
ce25aa57
JB
114852019-03-12 John Baldwin <jhb@FreeBSD.org>
11486
11487 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11488 (i386fbsd_init_abi): Install gdbarch
11489 "fetch_tls_load_module_address" and "get_thread_local_address"
11490 methods.
11491
f5424cfa
JB
114922019-03-12 John Baldwin <jhb@FreeBSD.org>
11493
11494 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11495 (amd64fbsd_init_abi): Install gdbarch
11496 "fetch_tls_load_module_address" and "get_thread_local_address"
11497 methods.
11498
945f3901
JB
114992019-03-12 John Baldwin <jhb@FreeBSD.org>
11500
11501 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11502 (struct fbsd_pspace_data): New type.
11503 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11504 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11505 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11506 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11507 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11508
ef0bd204
JB
115092019-03-12 John Baldwin <jhb@FreeBSD.org>
11510
11511 * gdbtypes.c (lookup_struct_elt): New function.
11512 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11513 * gdbtypes.h (struct struct_elt): New type.
11514 (lookup_struct_elt): New prototype.
11515
36c53a02
JB
115162019-03-12 John Baldwin <jhb@FreeBSD.org>
11517
11518 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11519 remove disabled code block.
11520
6e056c81
JB
115212019-03-12 John Baldwin <jhb@FreeBSD.org>
11522
11523 * gdbarch.sh (get_thread_local_address): New method.
11524 * gdbarch.h, gdbarch.c: Regenerate.
11525 * target.c (target_translate_tls_address): Use
11526 gdbarch_get_thread_local_address if present instead of
11527 target::get_thread_local_address.
11528
cd250a18
JB
115292019-03-12 John Baldwin <jhb@FreeBSD.org>
11530
11531 * target.h (target::get_thread_local_address): Update comment.
11532
df22c1e5
JB
115332019-03-12 John Baldwin <jhb@FreeBSD.org>
11534
11535 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11536 objfile->separate_debug_objfile_backlink if not NULL.
11537
dd6876c9
JB
115382019-03-12 John Baldwin <jhb@FreeBSD.org>
11539
11540 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11541 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11542 (amd64bsd_store_inferior_registers): Likewise.
11543 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11544 Enable segment base registers.
11545 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11546 PT_GETFSBASE and PT_GETGSBASE.
11547 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11548 PT_SETGSBASE.
11549 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11550 segment base registers.
11551 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11552
1163a4b7
JB
115532019-03-12 John Baldwin <jhb@FreeBSD.org>
11554
11555 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11556 Update calls to i386_target_description to add 'segments'
11557 parameter.
11558 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11559 add segment base registers.
11560 * arch/i386.c (i386_create_target_description): Add 'segments'
11561 parameter to enable segment base registers.
11562 * arch/i386.h (i386_create_target_description): Likewise.
11563 * features/i386/32bit-segments.xml: New file.
11564 * features/i386/32bit-segments.c: Generate.
11565 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11566 call to i386_target_description to add 'segments' parameter.
11567 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11568 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11569 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11570 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11571 if feature is present.
11572 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11573 Add 'segments' parameter to call to i386_target_description.
11574 (i386_target_description): Add 'segments' parameter to enable
11575 segment base registers.
11576 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11577 to call to i386_target_description.
11578 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11579 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11580 Define I386_NUM_REGS.
11581 (i386_target_description): Add 'segments' parameter to enable
11582 segment base registers.
11583
3a350822
EZ
115842019-03-12 Eli Zaretskii <eliz@gnu.org>
11585
11586 PR/24325
11587 * source-cache.c: #undef open and close, to avoid unresolved
11588 externals during linking.
11589
ffdd69cf
TT
115902019-03-12 Tom Tromey <tromey@adacore.com>
11591
11592 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11593 const. Add initializers.
11594 (_initialize_remote): Don't initialize ptid globals.
11595
ec148c57
PA
115962019-03-12 Pedro Alves <palves@redhat.com>
11597
11598 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11599
32764270
PA
116002019-03-12 Pedro Alves <palves@redhat.com>
11601
11602 * cp-name-parser.y (main): Remove unused 'len' variable.
11603
17547186
TT
116042019-03-12 Tom Tromey <tromey@adacore.com>
11605
11606 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11607 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11608
d3a70e03
TT
116092019-03-12 Tom Tromey <tromey@adacore.com>
11610
11611 * linux-nat.c (iterate_over_lwps): Update.
11612 (stop_callback): Remove parameter.
11613 (stop_wait_callback, detach_callback, resume_set_callback)
11614 (select_singlestep_lwp_callback, set_ignore_sigint)
11615 (status_callback, resumed_callback, resume_clear_callback)
11616 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11617 data parameter.
11618 (linux_nat_target::detach, linux_nat_target::resume)
11619 (linux_stop_and_wait_all_lwps, select_event_lwp)
11620 (linux_nat_filter_event, linux_nat_wait_1)
11621 (linux_nat_target::kill, linux_nat_target::stop)
11622 (linux_nat_target::stop): Update.
11623 (linux_nat_resume_callback): Change type.
11624 (resume_stopped_resumed_lwps, count_events_callback)
11625 (select_event_lwp_callback): Likewise.
11626 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11627 * arm-linux-nat.c (struct update_registers_data): Remove.
11628 (update_registers_callback): Change type.
11629 (arm_linux_insert_hw_breakpoint1): Update.
11630 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11631 parameter.
11632 (x86_linux_dr_set_addr): Update.
11633 (x86_linux_dr_set_control): Update.
11634 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11635 (iterate_over_lwps): Use gdb::function_view.
11636 * nat/aarch64-linux-hw-point.c (struct
11637 aarch64_dr_update_callback_param): Remove.
11638 (debug_reg_change_callback): Change type.
11639 (aarch64_notify_debug_reg_change): Update.
11640 * s390-linux-nat.c (s390_refresh_per_info): Update.
11641
82cb27ff
TT
116422019-03-11 Tom Tromey <tromey@adacore.com>
11643
11644 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11645 redundant assignment to "this_cu".
11646
568c0683
SM
116472019-03-08 Simon Marchi <simon.marchi@efficios.com>
11648
11649 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11650
f09ce22d
SM
116512019-03-08 Simon Marchi <simon.marchi@efficios.com>
11652
11653 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11654 from...
11655 (rank_one_type): ... this.
11656
595f96a9
SM
116572019-03-08 Simon Marchi <simon.marchi@efficios.com>
11658
11659 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11660 from...
11661 (rank_one_type): ... this.
11662
2598a94b
SM
116632019-03-08 Simon Marchi <simon.marchi@efficios.com>
11664
11665 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11666 from...
11667 (rank_one_type): ... this.
11668
7f17b20d
SM
116692019-03-08 Simon Marchi <simon.marchi@efficios.com>
11670
11671 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11672 from...
11673 (rank_one_type): ... this.
11674
2c509035
SM
116752019-03-08 Simon Marchi <simon.marchi@efficios.com>
11676
11677 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11678 from...
11679 (rank_one_type): ... this.
11680
0dd322dc
SM
116812019-03-08 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11684 from...
11685 (rank_one_type): ... this.
11686
41ea4728
SM
116872019-03-08 Simon Marchi <simon.marchi@efficios.com>
11688
11689 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11690 from...
11691 (rank_one_type): ... this.
11692
793cd1d2
SM
116932019-03-08 Simon Marchi <simon.marchi@efficios.com>
11694
11695 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11696 from...
11697 (rank_one_type): ... this.
11698
34910087
SM
116992019-03-08 Simon Marchi <simon.marchi@efficios.com>
11700
11701 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11702 from...
11703 (rank_one_type): ... this.
11704
f1f832d6
SM
117052019-03-08 Simon Marchi <simon.marchi@efficios.com>
11706
11707 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11708 from...
11709 (rank_one_type): ... this.
11710
b9f4512f
SM
117112019-03-08 Simon Marchi <simon.marchi@efficios.com>
11712
11713 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11714 from...
11715 (rank_one_type): ... this.
11716
9293fc63
SM
117172019-03-08 Simon Marchi <simon.marchi@efficios.com>
11718
11719 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11720 from...
11721 (rank_one_type): ... this.
11722
e3abbe7e
PW
117232019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11724
11725 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11726 inferior-events' shows the example events.
11727
e4adb939
EZ
117282019-03-08 Eli Zaretskii <eliz@gnu.org>
11729
11730 Support styling on native MS-Windows console
11731
11732 PR/24315
11733 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11734 on MS-Windows if $TERM is not defined.
11735
11736 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11737
11738 * posix-hdep.c (gdb_console_fputs):
11739 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11740 functions.
11741 * ui-file.h (gdb_console_fputs): Add prototype.
11742
11743 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11744 back to fputs only if the former returns zero.
11745
25629dfd
TT
117462019-03-07 Tom Tromey <tom@tromey.com>
11747
11748 * symmisc.c (print_symbol_bcache_statistics): Update.
11749 (print_objfile_statistics): Update.
11750 * symfile.c (allocate_symtab): Update.
11751 * stabsread.c: Don't include bcache.h.
11752 * psymtab.h (struct psymbol_bcache): Don't declare.
11753 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11754 (psymbol_bcache_init, psymbol_bcache_free)
11755 (psymbol_bcache_get_bcache): Don't declare.
11756 * psymtab.c (struct psymbol_bcache): Remove.
11757 (psymtab_storage::psymtab_storage): Update.
11758 (psymtab_storage::~psymtab_storage): Update.
11759 (psymbol_bcache_init, psymbol_bcache_free)
11760 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11761 (add_psymbol_to_bcache): Update.
11762 (allocate_psymtab): Update.
11763 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11764 macro_cache>: No longer pointers.
11765 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11766 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11767 * macrotab.c (macro_bcache): Update.
11768 * macroexp.c: Don't include bcache.h.
11769 * gdbtypes.c (check_types_worklist): Update.
11770 (types_deeply_equal): Remove TRY/CATCH. Update.
11771 * elfread.c (elf_symtab_read): Update.
11772 * dwarf2read.c: Don't include bcache.h.
11773 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11774 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11775 (print_bcache_statistics, bcache_memory_used): Don't declare.
11776 (struct bcache): Move from bcache.c. Add constructor, destructor,
11777 methods. Rename all data members.
11778 * bcache.c (struct bcache): Move to bcache.h.
11779 (bcache::expand_hash_table): Rename from expand_hash_table.
11780 (bcache): Remove.
11781 (bcache::insert): Rename from bcache_full.
11782 (bcache::compare): Rename from bcache_compare.
11783 (bcache_xmalloc): Remove.
11784 (bcache::~bcache): Rename from bcache_xfree.
11785 (bcache::print_statistics): Rename from print_bcache_statistics.
11786 (bcache::memory_used): Rename from bcache_memory_used.
11787
fe726667
PA
117882019-03-07 Pedro Alves <palves@redhat.com>
11789
11790 * infrun.c (normal_stop): Also check for
11791 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11792
7584bb30
AB
117932019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 * f-lang.c (value_from_host_double): Moved to...
11796 * value.c (value_from_host_double): ...here.
11797 * value.h (value_from_host_double): Declare.
11798 * guile/scm-math.c (vlscm_convert_typed_number): Use
11799 value_from_host_double.
11800 (vlscm_convert_number): Likewise.
11801 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11802 * python/py-value.c (convert_value_from_python): Likewise.
11803
a7b1986e
TT
118042019-03-06 Tom Tromey <tom@tromey.com>
11805
11806 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11807
0ccf4211
TT
118082019-03-06 Tom Tromey <tom@tromey.com>
11809
11810 * utils.h (free_current_contents): Don't declare.
11811 * utils.c (free_current_contents): Remove.
11812
fe7b42e5
TT
118132019-03-06 Tom Tromey <tom@tromey.com>
11814
11815 * top.c (quit_force): Update.
11816 * main.c (captured_command_loop): Update.
11817 * common/new-op.c (operator new): Update.
11818 * common/common-exceptions.c (struct catcher)
11819 <save_cleanup_chain>: Remove member.
11820 (exceptions_state_mc_init): Update.
11821 (exception_try_scope_entry): Return nullptr.
11822 (exception_try_scope_exit, exception_rethrow)
11823 (throw_exception_sjlj, throw_exception_cxx): Update.
11824 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11825 (all_cleanups, do_cleanups, discard_cleanups)
11826 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11827 (restore_cleanups, restore_final_cleanups): Don't declare.
11828 (do_final_cleanups): Remove parameter.
11829 * common/cleanups.c (cleanup_chain, make_cleanup)
11830 (make_cleanup_dtor, all_cleanups, do_cleanups)
11831 (discard_my_cleanups, discard_cleanups)
11832 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11833 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11834 (null_cleanup): Remove.
11835 (do_final_cleanups): Remove parameter.
11836
c6321f19
TT
118372019-03-06 Tom Tromey <tom@tromey.com>
11838
11839 * remote.c (remote_target::remote_parse_stop_reply): Use
11840 unique_xmalloc_ptr.
11841
61b30099
TT
118422019-03-06 Tom Tromey <tom@tromey.com>
11843
11844 * stabsread.c (struct stabs_field_info): Rename from field_info.
11845 <list, fnlist>: Add initializers.
11846 <obstack>: New member.
11847 (read_member_functions, read_struct_fields, read_baseclasses):
11848 Allocate on obstack. Don't use cleanups.
11849 (read_one_struct_field, read_member_functions, read_struct_fields)
11850 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11851 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11852 (read_struct_type): Update.
11853
6cceac94
TT
118542019-03-06 Tom Tromey <tom@tromey.com>
11855
11856 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11857 * common/filestuff.h (make_cleanup_close): Don't declare.
11858 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11859 Remove.
11860
72412762
TT
118612019-03-06 Tom Tromey <tom@tromey.com>
11862
11863 * solib-aix.c: Use make_scope_exit.
11864
2b6ff1c0
TT
118652019-03-06 Tom Tromey <tom@tromey.com>
11866
11867 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11868 Use make_scope_exit.
11869
d01c5877
TT
118702019-03-06 Tom Tromey <tom@tromey.com>
11871
11872 * solib-svr4.c (disable_probes_interface): Remove parameter.
11873 (svr4_handle_solib_event): Use make_scope_exit.
11874
32603266
TT
118752019-03-06 Tom Tromey <tom@tromey.com>
11876
11877 * remote.c (struct stop_reply_deleter): Remove.
11878 (stop_reply_up): Update.
11879 (struct stop_reply): Derive from notif_event. Don't typedef.
11880 <regcache>: Now a std::vector.
11881 (stop_reply_xfree): Remove.
11882 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11883 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11884 (remote_target::discard_pending_stop_replies): Use delete.
11885 (remote_target::remote_parse_stop_reply): Update.
11886 (remote_target::process_stop_reply): Update.
11887 * remote-notif.h (struct notif_event): Add virtual destructor.
11888 Remove "dtr" member.
11889 (struct notif_client) <alloc_event>: Return a unique_ptr.
11890 (notif_event_xfree): Don't declare.
11891 (notif_event_up): New typedef.
11892 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11893 (notif_event_xfree, do_notif_event_xfree): Remove.
11894 (remote_notif_state_xfree): Update.
11895
9799571e
TT
118962019-03-06 Tom Tromey <tom@tromey.com>
11897
11898 * infrun.c (displaced_step_clear_cleanup): Now a
11899 forward_scope_exit type.
11900 (displaced_step_prepare_throw): Update.
11901 (displaced_step_fixup): Update.
11902
09e3c4ca
TT
119032019-03-06 Tom Tromey <tom@tromey.com>
11904
11905 * inferior.h (class inferior): Update comment.
11906 * gdbthread.h (class thread_info): Update comment.
11907
e2a03548
TT
119082019-03-06 Joel Brobecker <brobecker@adacore.com>
11909 Tom Tromey <tom@tromey.com>
11910
11911 * stabsread.h (struct stab_section_list): Remove.
11912 (coffstab_build_psymtabs): Update.
11913 * dbxread.c (symbuf_sections): Now a std::vector.
11914 (sect_idx): New global.
11915 (fill_symbuf): Update.
11916 (coffstab_build_psymtabs): Change type of stabsects parameter.
11917 Update.
11918 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11919 std::vector.
11920 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11921 (coff_locate_sections): Update.
11922 (coff_symfile_read): Remove cleanups. Update.
11923 (init_stringtab): Add storage parameter.
11924 (free_stringtab, free_stringtab_cleanup): Remove.
11925 (init_lineno): Add storage parameter.
11926 (free_linetab, free_linetab_cleanup): Remove.
11927
b7e60d85
PA
119282019-03-06 Pedro Alves <palves@redhat.com>
11929
11930 * linux-fork.c (fork_info::clobber_regs): Delete.
11931 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11932 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11933 comment. Adjust.
11934 (scoped_switch_fork_info::scoped_switch_fork_info)
11935 (checkpoint_command, linux_fork_context): Adjust
11936 fork_save_infrun_state calls.
11937
e52c971f
PA
119382019-03-06 Pedro Alves <palves@redhat.com>
11939
11940 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11941 (inf_has_multiple_threads): Return 'bool' and rewrite using
11942 inferior_info::threads().
11943
06974e6c
PA
119442019-03-06 Pedro Alves <palves@redhat.com>
11945
11946 * linux-fork.c: Include <list>.
11947 (fork_list): Now a std::list instance.
11948 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11949 (forks_exist_p, find_last_fork): Adjust.
11950 (new_fork): Delete.
11951 (one_fork_p): New.
11952 (add_fork): Adjust.
11953 (free_fork): Delete, folded into fork_info::~fork_info().
11954 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11955 Adjust.
11956 (init_fork_list): Delete.
11957 (linux_fork_killall, linux_fork_mourn_inferior)
11958 (linux_fork_detach, info_checkpoints_command): Adjust.
11959 (_initialize_linux_fork): No longer call init_fork_list.
11960
72f31aea
PA
119612019-03-06 Pedro Alves <palves@redhat.com>
11962
11963 * linux-fork.c (new_fork): New, split out of ...
11964 (add_fork): ... this. Return void. Move "first fork" special
11965 case from here, to ...
11966 (checkpoint_command): ... here.
11967 * linux-linux.h (add_fork): Return void.
11968
efbecbc1
AB
119692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11970
11971 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11972
0841c79a
AB
119732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11974 Chris January <chris.january@arm.com>
11975 David Lecomber <david.lecomber@arm.com>
11976
11977 * f-exp.y: New token, UNOP_INTRINSIC.
11978 (exp): New pattern using UNOP_INTRINSIC token.
11979 (f77_keywords): Add 'abs' keyword.
11980 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11981 (value_from_host_double): New function.
11982 (evaluate_subexp_f): Support UNOP_ABS.
11983
4a270568
AB
119842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11985
11986 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11987 types.
11988
067630bd
AB
119892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11990
11991 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11992 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11993 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11994
3be47f7a
AB
119952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11998
4d00f5d8
AB
119992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000 Chris January <chris.january@arm.com>
12001
12002 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12003 * f-exp.y: Define 'KIND' token.
12004 (exp): New pattern for KIND expressions.
12005 (ptype): Handle types with a kind extension.
12006 (direct_abs_decl): Extend to spot kind extensions.
12007 (f77_keywords): Add 'kind' to the list.
12008 (push_kind_type): New function.
12009 (convert_to_kind_type): New function.
12010 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12011 * parse.c (operator_length_standard): Likewise.
12012 * parser-defs.h (enum type_pieces): Add tp_kind.
12013 * std-operator.def: Add UNOP_KIND.
12014
e454224f
AB
120152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12016
12017 * f-exp.y (f_parse): Set yydebug.
12018
9dad4a58
AB
120192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12020
12021 * f-lang.c (evaluate_subexp_f): New function.
12022 (exp_descriptor_f): New global.
12023 (f_language_defn): Use exp_descriptor_f instead of
12024 exp_descriptor_standard.
12025
c8f91604
AB
120262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12027
12028 * f-exp.y (struct token): Add comments.
12029 (dot_ops): Remove uppercase versions and the end marker.
12030 (f77_keywords): Likewise.
12031 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12032 entries in the dot_ops array are case insensitive, and use
12033 strncasecmp to compare strings. Also some whitespace cleanup in
12034 this area. Similar for the f77_keywords array, except entries in
12035 this list might be case sensitive.
12036
dd9f2c76
AB
120372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * f-exp.y (struct f77_boolean_val): Add comments.
12040 (boolean_values): Remove uppercase versions, and end marker.
12041 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12042 and use strncasecmp to achieve case insensitivity. Additionally,
12043 perform whitespace cleanup around this code.
12044
67a3048c
TT
120452019-03-06 Tom Tromey <tromey@adacore.com>
12046
12047 * remote-sim.c (gdbsim_target_open): Use result of
12048 gdb_argv::release.
12049
aa3cfbda
RB
120502019-03-06 Richard Bunt <richard.bunt@arm.com>
12051 Dirk Schubert <dirk.schubert@arm.com>
12052 Chris January <chris.january@arm.com>
12053
12054 * eval.c (evaluate_subexp_standard): Call Fortran argument
12055 wrapping logic.
12056 * f-lang.c (struct value): A value which can be passed into a
12057 Fortran function call.
12058 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12059 where appropriate.
12060 (struct type): Value ready for a Fortran function call.
12061 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12062 is needed.
12063 * f-lang.h (fortran_argument_convert): Declaration.
12064 (fortran_preserve_arg_pointer): Declaration.
12065 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12066
ea38e5df
TT
120672019-03-05 Tom Tromey <tromey@adacore.com>
12068
12069 * python/py-prettyprint.c (print_string_repr): Remove #if.
12070 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12071
06b5b831
TT
120722019-03-05 Tom Tromey <tromey@adacore.com>
12073
12074 * target.c (the_dummy_target): Move later. Change type to
12075 "dummy_target".
12076 (initialize_targets): Don't initialize the_dummy_target.
12077
edbd9e45
TT
120782019-03-05 Tom Tromey <tromey@adacore.com>
12079
12080 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12081 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12082
c119e040
TT
120832019-03-05 Tom Tromey <tromey@adacore.com>
12084
12085 * windows-nat.c (windows_nat_target::attach)
12086 (windows_nat_target::detach): Don't call gdb_flush.
12087 * valprint.c (generic_val_print, val_print, val_print_string):
12088 Don't call gdb_flush.
12089 * utils.c (defaulted_query): Don't call gdb_flush.
12090 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12091 * target.c (target_announce_detach): Don't call gdb_flush.
12092 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12093 * remote.c (extended_remote_target::attach): Don't call
12094 gdb_flush.
12095 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12096 * printcmd.c (do_examine): Don't call gdb_flush.
12097 (info_display_command): Don't call gdb_flush.
12098 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12099 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12100 * memattr.c (info_mem_command): Don't call gdb_flush.
12101 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12102 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12103 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12104 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12105 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12106 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12107 (gnu_nat_target::detach): Don't call gdb_flush.
12108 * f-valprint.c (f_val_print): Don't call gdb_flush.
12109 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12110 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12111 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12112 gdb_flush.
12113 * c-valprint.c (c_val_print): Don't call gdb_flush.
12114 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12115
895dafa6
TT
121162019-03-05 Tom Tromey <tromey@adacore.com>
12117
12118 * varobj.c (update_dynamic_varobj_children): Update.
12119 (install_default_visualizer): Use reset, not release.
12120 * value.c (set_internalvar): Update.
12121 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12122 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12123 ATTRIBUTE_UNUSED_RESULT.
12124
88a774b9
TT
121252019-03-05 Tom Tromey <tromey@adacore.com>
12126
12127 * remote.c (class scoped_remote_fd) <release>: Add
12128 ATTRIBUTE_UNUSED_RESULT.
12129
4e4a8b93
TT
121302019-03-05 Tom Tromey <tromey@adacore.com>
12131
12132 * macroexp.c (struct macro_buffer) <release>: Add
12133 ATTRIBUTE_UNUSED_RESULT.
12134
083eef1f
TT
121352019-03-05 Tom Tromey <tromey@adacore.com>
12136
12137 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12138 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12139 ATTRIBUTE_UNUSED_RESULT.
12140
3cabd438
TT
121412019-03-05 Tom Tromey <tromey@adacore.com>
12142
12143 * common/scoped_fd.h (class scoped_fd) <release>: Add
12144 ATTRIBUTE_UNUSED_RESULT.
12145
41e3300a
TT
121462019-03-05 Tom Tromey <tromey@adacore.com>
12147
12148 * parser-defs.h (struct parser_state) <release>: Add
12149 ATTRIBUTE_UNUSED_RESULT.
12150
18cb7c9f
TT
121512019-03-05 Tom Tromey <tromey@adacore.com>
12152
12153 * utils.h (class gdb_argv) <release>: Add
12154 ATTRIBUTE_UNUSED_RESULT.
12155 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12156
41fa577f
EZ
121572019-03-02 Eli Zaretskii <eliz@gnu.org>
12158
a6a4b2c6
EZ
12159 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12160 for-loop range, to avoid compiler warnings.
12161
12162 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12163 avoid compiler warnings about unused variables.
12164
742a7df5
EZ
12165 * NEWS: Mention end of support for native debugging on MS-Windows
12166 before XP.
12167
41fa577f
EZ
12168 PR gdb/24292
12169 * common/netstuff.c:
12170 * gdbserver/gdbreplay.c
12171 * gdbserver/remote-utils.c:
12172 * ser-tcp.c:
12173 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12174 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12175 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12176 'getaddrinfo' and 'freeaddrinfo' were not available before
12177 Windows XP, and mingw.org's MinGW headers by default define
12178 _WIN32_WINNT to 0x500.
12179
827f438f
GB
121802019-03-01 Gary Benson <gbenson@redhat.com>
12181
12182 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12183
92137da0
RO
121842019-02-28 Brian Vandenberg <phantall@gmail.com>
12185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12186
12187 PR gdb/8527
12188 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12189 set_sigint_trap, clear_sigint_trap.
12190
799efbe8
PW
121912019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12192
12193 * target.c (target_detach): Clear the regcache and the
12194 frame cache.
12195
8ed25214
PA
121962019-02-27 Pedro Alves <palves@redhat.com>
12197
12198 * utils.c (set_screen_size): When we cap the height/width sizes,
12199 tweak the corresponding command variable to show "unlimited":
12200
23031e31
SJ
122012019-02-27 Saagar Jha <saagar@saagarjha.com>
12202 Pedro Alves <palves@redhat.com>
12203
12204 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12205 before calling rl_set_screen_size.
12206
6c28e44a
TT
122072019-02-27 Tom Tromey <tromey@adacore.com>
12208
12209 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12210 define.
12211 * python/py-value.c: Remove Python 2.4 workaround.
12212 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12213 workaround.
12214 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12215 Python 2.4 workaround.
12216 * python/python-internal.h: Remove Python 2.4 comment.
12217 (Py_ssize_t): Don't define.
12218 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12219 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12220 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12221 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12222 * python/python.c (do_start_initialization): Remove Python 2.4
12223 workaround.
12224 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12225 (print_children): Remove Python 2.4 workaround.
12226 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12227 workaround.
12228 (CHARBUFFERPROC_NAME): Remove.
12229 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12230 Python 2.4 workaround.
12231
2c3fc25d 122322019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12233
2c3fc25d
KB
12234 * NEWS: Note minimum Python version.
12235
6ca62222
KB
122362019-02-27 Kevin Buettner <kevinb@redhat.com>
12237
12238 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12239 code from these functions. Remove corresponding ifdefs. Use
12240 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12241 Remove gotos and target of gotos.
12242 (infpy_search_memory): Likewise.
12243
f4bc7d2c
AB
122442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12245
12246 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12247 (hppa_gdbarch_init): Don't register deleted functions with
12248 gdbarch.
12249
9734a586
AB
122502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12251
12252 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12253 (h8300_unwind_sp): Delete.
12254 (h8300_dummy_id): Delete.
12255 (h8300_gdbarch_init): Don't register deleted functions with
12256 gdbarch.
12257
68b867f3
AB
122582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12259
12260 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12261 (ft32_unwind_pc): Delete.
12262 (ft32_unwind_sp): Delete.
12263 (ft32_gdbarch_init): Don't register deleted functions with
12264 gdbarch.
12265
2fbe7ad0
AB
122662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12267
12268 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12269 (frv_unwind_pc): Delete.
12270 (frv_unwind_sp): Delete.
12271 (frv_gdbarch_init): Don't register deleted functions with
12272 gdbarch.
12273
76055cbe
AB
122742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12275
12276 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12277 (riscv_unwind_pc): Delete.
12278 (riscv_unwind_sp): Delete.
12279 (riscv_gdbarch_init): Don't register deleted functions with
12280 gdbarch.
12281
4133e5a1
AB
122822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12283
12284 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12285 (csky_unwind_pc): Delete.
12286 (csky_unwind_sp): Delete.
12287 (csky_gdbarch_init): Don't register deleted functions with
12288 gdbarch.
12289
8010f576
AB
122902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12293 (cris_unwind_pc): Delete.
12294 (cris_unwind_sp): Delete.
12295 (cris_gdbarch_init): Don't register deleted functions with
12296 gdbarch.
12297
b56bf084
AB
122982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12299
12300 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12301 (bfin_unwind_pc): Delete.
12302 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12303
a19a650f
AB
123042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12305
12306 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12307 (arm_unwind_pc): Delete.
12308 (arm_unwind_sp): Delete.
12309 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12310
f8278c3c
AB
123112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12312
12313 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12314 (arc_unwind_pc): Delete.
12315 (arc_unwind_sp): Delete.
12316 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12317
480e46cf
AB
123182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12319
12320 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12321 (alpha_unwind_pc): Delete.
12322 (alpha_gdbarch_init): Don't register deleted functions with
12323 gdbarch.
12324
7a995095
AB
123252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12326
12327 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12328 (aarch64_unwind_pc): Delete.
12329 (aarch64_unwind_sp): Delete.
12330 (aarch64_gdbarch_init): Don't register deleted functions with
12331 gdbarch.
12332
bf9a735e
AB
123332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * gdbtypes.c (type_align): Don't consider static members when
12336 computing structure alignment.
12337
5561fc30
AB
123382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12339
12340 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12341 return 0 for other types.
12342 * arch-utils.c (default_type_align): Always return 0.
12343 * gdbarch.h: Regenerate.
12344 * gdbarch.sh (type_align): Extend comment.
12345 * gdbtypes.c (type_align): Add additional comments, always call
12346 gdbarch_type_align before applying the default rules.
12347 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12348 generic code will then apply a suitable default.
12349 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12350 types, return 0 for other types.
12351
9335e75a
JB
123522019-02-27 Joel Brobecker <brobecker@adacore.com>
12353
12354 * NEWS: Create a new section for the next release branch.
12355 Rename the section of the current branch, now that it has
12356 been cut.
12357
3d34d8de
JB
123582019-02-27 Joel Brobecker <brobecker@adacore.com>
12359
12360 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12361 * version.in: Bump version to 8.3.50.DATE-git.
12362
143420fb
SM
123632019-02-26 Simon Marchi <simon.marchi@efficios.com>
12364
12365 * aix-thread.c (ptid_cmp): Remove unused variable.
12366 (get_signaled_thread): Likewise.
12367 (store_regs_user_thread): Likewise.
12368 (store_regs_kernel_thread): Likewise.
12369 (fetch_regs_kernel_thread): Remove shadowed variable.
12370
172fb711
AB
123712019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12372
12373 * features/riscv/32bit-cpu.xml: Add register numbers.
12374 * features/riscv/32bit-fpu.c: Regenerate.
12375 * features/riscv/32bit-fpu.xml: Add register numbers.
12376 * features/riscv/64bit-cpu.xml: Add register numbers.
12377 * features/riscv/64bit-fpu.c: Regenerate.
12378 * features/riscv/64bit-fpu.xml: Add register numbers.
12379
26c89782
KB
123802019-02-26 Kevin Buettner <kevinb@redhat.com>
12381
af54ade9 12382 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12383 * python/py-value.c (convert_buffer_and_type_to_value): New
12384 function.
12385 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12386 Add support for handling an optional second argument. Call
12387 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12388 * python/python-internal.h (Py_buffer_deleter): New struct.
12389 (Py_buffer_up): New typedef.
12390
0f58c9e8
JB
123912019-02-25 John Baldwin <jhb@FreeBSD.org>
12392
12393 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12394 instead of releasing ownership.
12395
0a0f4c01
JR
123962019-02-25 Jordan Rupprecht <rupprecht@google.com>
12397
12398 * dwarf2read.c (open_and_init_dwp_file): Call
12399 elf_numsections instead of bfd_count_sections to initialize
12400 dwp_file->num_sections.
12401
cd5a152c
TT
124022019-02-25 Tom Tromey <tromey@adacore.com>
12403
12404 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12405
8a6a8513
SDJ
124062019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12407
12408 * gcore.in: Add '--readnever' option when invoking GDB.
12409
04dcda9c
SM
124102019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12411
12412 * MAINTAINERS: Update my email address.
12413
07bc701d
SM
124142019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12415
12416 * build-id.c (build_id_to_debug_bfd_1): New function.
12417 (build_id_to_debug_bfd): Look for separate debug file in
12418 sysroot.
12419
c6f4a5d0
AB
124202019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12421
12422 * gdbarch.sh: Update the copyright year range that is placed into
12423 generated files.
12424
9600246d
KS
124252019-02-22 Keith Seitz <keiths@redhat.com>
12426
12427 PR symtab/23853
12428 * linespec.c (create_sals_line_offset): Search for the default
12429 symtab's filename instead of its fullname.
12430
7557a514
AH
124312019-02-21 Alan Hayward <alan.hayward@arm.com>
12432
12433 * NEWS: Update style defaults.
12434
ee2bcb0c
AH
124352019-02-21 Alan Hayward <alan.hayward@arm.com>
12436
12437 * main.c (captured_main_1): Disable styling in batch mode.
12438
0c95f9ed
TT
124392019-02-20 Tom Tromey <tom@tromey.com>
12440
12441 * symtab.c (symtab_symbol_info): Fix typos.
12442
c763b894
TT
124432019-02-20 Tom Tromey <tromey@adacore.com>
12444
12445 * findcmd.c (_initialize_mem_search): Use upper case for
12446 metasyntactic variables.
12447
0ef8a082
AH
124482019-02-20 Alan Hayward <alan.hayward@arm.com>
12449
12450 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12451 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12452
6caa91b6
SM
124532019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12454
12455 * top.h (source_file_name): Change to std::string.
12456 * top.c (source_file_name): Likewise.
12457 (command_line_input): Adjust.
12458 * cli/cli-script.c (script_from_file): Adjust.
12459
98814c6c
TT
124602019-02-19 Tom Tromey <tromey@adacore.com>
12461
12462 * ravenscar-thread.c
12463 (ravenscar_thread_target::update_thread_list): Don't call
12464 ada_build_task_list.
12465 * ada-lang.h (ada_build_task_list): Don't declare.
12466 * ada-tasks.c (struct ada_tasks_inferior_data)
12467 <task_list_valid_p>: Now bool.
12468 (read_known_tasks, ada_task_list_changed)
12469 (ada_tasks_invalidate_inferior_data): Update.
12470 (read_known_tasks_array): Return bool.
12471 (read_known_tasks_list): Likewise.
12472 (read_known_tasks): Return void.
12473 (ada_build_task_list): Now static.
12474
70cd633e
AB
124752019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12476
12477 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12478 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12479
040b3e95
PW
124802019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12481
12482 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12483 variant for ada_tasks_pspace_data_handle and
12484 ada_tasks_inferior_data_handle.
12485 (ada_tasks_pspace_data_cleanup): New function.
12486 (ada_tasks_inferior_data_cleanup): New function.
12487
9409233b
TT
124882019-02-17 Tom Tromey <tom@tromey.com>
12489
12490 * macrotab.h (macro_source_fullname): Return a std::string.
12491 * macrotab.c (macro_include, check_for_redefinition)
12492 (macro_undef, macro_lookup_definition, foreach_macro)
12493 (foreach_macro_in_scope): Update.
12494 (macro_source_fullname): Return a std::string.
12495 * macrocmd.c (show_pp_source_pos): Update.
12496
6506371f
TT
124972019-02-17 Tom Tromey <tom@tromey.com>
12498
12499 * macrocmd.c (show_pp_source_pos): Style the file names.
12500
0c820d67
TT
125012019-02-17 Tom Tromey <tom@tromey.com>
12502
12503 PR tui/24197:
12504 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12505
a0087920
TT
125062019-02-17 Tom Tromey <tom@tromey.com>
12507
12508 * ada-lang.c (user_select_syms): Use filtered printing.
12509 * utils.c (wrap_style): New global.
12510 (desired_style): Remove.
12511 (emit_style_escape): Add stream parameter.
12512 (set_output_style, reset_terminal_style, prompt_for_continue):
12513 Update.
12514 (flush_wrap_buffer): Only flush gdb_stdout.
12515 (wrap_here): Set wrap_style.
12516 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12517 treat escape sequences as a character. Change when wrap buffer is
12518 flushed.
12519 (fputs_styled): Do not set the output style when the default is
12520 requested.
12521 * ui-style.h (struct ui_file_style) <is_default>: New method.
12522 * source.c (print_source_lines_base): Emit escape sequences in one
12523 piece.
12524
75ba10dc
JB
125252019-02-17 Joel Brobecker <brobecker@adacore.com>
12526
12527 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12528 integers and enumeration types.
12529
a2cd4f14
JB
125302019-02-17 Joel Brobecker <brobecker@adacore.com>
12531
12532 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12533 instead of lookup_symbol_in_language
12534 (do_exact_match): New function.
12535 (ada_get_symbol_name_matcher): Return do_exact_match when
12536 doing a verbatim match.
12537
485b851b
TT
125382019-02-15 Tom Tromey <tromey@adacore.com>
12539
12540 * ravenscar-thread.c (ravenscar_thread_target::resume)
12541 (ravenscar_thread_target::wait): Special case wildcard requests.
12542
0b790b1e
TT
125432019-02-15 Tom Tromey <tromey@adacore.com>
12544
12545 * ravenscar-thread.c (base_ptid): Remove.
12546 (struct ravenscar_thread_target) <close>: New method.
12547 <m_base_ptid>: New member.
12548 <update_inferior_ptid, active_task, task_is_currently_active,
12549 runtime_initialized>: Declare methods.
12550 <ravenscar_thread_target>: Add constructor.
12551 (ravenscar_thread_target::task_is_currently_active)
12552 (ravenscar_thread_target::update_inferior_ptid)
12553 (ravenscar_runtime_initialized): Rename. Now methods.
12554 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12555 (ravenscar_thread_target::update_thread_list): Update.
12556 (ravenscar_thread_target::active_task): Now method.
12557 (ravenscar_thread_target::store_registers)
12558 (ravenscar_thread_target::prepare_to_store)
12559 (ravenscar_thread_target::prepare_to_store)
12560 (ravenscar_thread_target::mourn_inferior): Update.
12561 (ravenscar_inferior_created): Use "new" to create target.
12562 (ravenscar_thread_target::get_ada_task_ptid): Update.
12563 (_initialize_ravenscar): Don't initialize base_ptid.
12564 (ravenscar_ops): Remove global.
12565
dea57a62
TT
125662019-02-15 Tom Tromey <tromey@adacore.com>
12567
12568 * target.h (push_target): Declare new overload.
12569 * target.c (push_target): New overload, taking an rvalue reference.
12570 * remote.c (remote_target::open_1): Use push_target overload.
12571 * corelow.c (core_target_open): Use push_target overload.
12572
989f3c58
TT
125732019-02-15 Tom Tromey <tromey@adacore.com>
12574
12575 * ravenscar-thread.c (is_ravenscar_task)
12576 (ravenscar_task_is_currently_active): Return bool.
12577 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12578 (_initialize_ravenscar): Remove "(void)".
12579 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12580 Return bool.
12581
6cbcc006
TT
125822019-02-15 Tom Tromey <tromey@adacore.com>
12583
12584 * ravenscar-thread.c (ravenscar_runtime_initializer)
12585 (has_ravenscar_runtime, get_running_thread_id)
12586 (ravenscar_thread_target::resume): Fix indentation.
12587
7657f14d
TT
125882019-02-15 Tom Tromey <tromey@adacore.com>
12589
12590 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12591 from ravenscar_arch_ops.
12592 (sparc_ravenscar_ops::fetch_registers)
12593 (sparc_ravenscar_ops::store_registers): Now methods.
12594 (sparc_ravenscar_prepare_to_store): Remove.
12595 (sparc_ravenscar_ops): Redefine.
12596 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12597 methods and destructor. Remove members.
12598 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12599 (ravenscar_thread_target::store_registers)
12600 (ravenscar_thread_target::prepare_to_store): Update.
12601 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12602 Remove.
12603 (struct ppc_ravenscar_powerpc_ops): Derive from
12604 ravenscar_arch_ops.
12605 (ppc_ravenscar_powerpc_ops::fetch_registers)
12606 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12607 (ppc_ravenscar_powerpc_ops): Redefine.
12608 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12609 (ppc_ravenscar_e500_ops::fetch_registers)
12610 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12611 (ppc_ravenscar_e500_ops): Redefine.
12612 * aarch64-ravenscar-thread.c
12613 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12614 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12615 (aarch64_ravenscar_fetch_registers)
12616 (aarch64_ravenscar_store_registers): Now methods.
12617 (aarch64_ravenscar_ops): Redefine.
12618
5b6ea500
TT
126192019-02-15 Tom Tromey <tromey@adacore.com>
12620
12621 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12622 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12623 (ravenscar_thread_target::stopped_by_watchpoint)
12624 (ravenscar_thread_target::stopped_data_address)
12625 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12626
e397fd39
TT
126272019-02-15 Tom Tromey <tromey@adacore.com>
12628
12629 * ravenscar-thread.c: Fix some typos.
12630
cc12f4a8
TT
126312019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12632 Tom Tromey <tromey@adacore.com>
12633
12634 * ada-lang.c (ada_exception_sal): Change addr_string to a
12635 std::string.
12636 (create_ada_exception_catchpoint): Update.
12637
5f486660
TT
126382019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12639 Tom Tromey <tromey@adacore.com>
12640
12641 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12642 (bp_location_ops): Remove.
12643 (base_breakpoint_allocate_location): Update.
12644 (free_bp_location): Update.
12645 * ada-lang.c (class ada_catchpoint_location)
12646 <ada_catchpoint_location>: Remove ops parameter.
12647 (ada_catchpoint_location_dtor): Remove.
12648 (ada_catchpoint_location_ops): Remove.
12649 (allocate_location_exception): Update.
12650 * breakpoint.h (struct bp_location_ops): Remove.
12651 (class bp_location) <bp_location>: Remove bp_location_ops
12652 parameter.
12653 <~bp_location>: Add destructor.
12654 <ops>: Remove.
12655
b671c7fb
TS
126562019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12657 Pedro Alves <palves@redhat.com>
12658
12659 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12660 'PATH_MAX'.
12661
8071c5ce
DM
126622019-02-14 David Michael <fedora.dm0@gmail.com>
12663 Samuel Thibault <samuel.thibault@gnu.org>
12664 Thomas Schwinge <thomas@codesourcery.com>
12665
12666 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12667 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12668
b1041ae0
TS
126692019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12670
924514e1
TS
12671 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12672 (check_empty): Use "const char *".
12673
c29ee8d4
TS
12674 * gnu-nat.c (gnu_nat_target::detach): Instead of
12675 'detach_inferior (pid)' call
12676 'detach_inferior (find_inferior_pid (pid))'.
12677
6c6ef69f
TS
12678 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12679 'nat/fork-inferior.o'.
12680 * gnu-nat.c: #include "nat/fork-inferior.h".
12681
2d0a338c
TS
12682 * gnu-nat.c (gnu_nat_target::detach): Instead of
12683 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12684 * gnu-nat.h: #include "inf-child.h".
12685 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12686 'i386_gnu_nat_target::fetch_registers'.
12687 (gnu_store_registers): Rename/move to
12688 'i386_gnu_nat_target::store_registers'.
12689
cabb5f06
TS
12690 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12691 * gnu-nat.h (mach_thread_info): New function.
12692 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12693
b1041ae0
TS
12694 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12695
2988d01e
KF
126962019-02-14 Frederic Konrad <konrad@adacore.com>
12697
12698 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12699
c559d709
JB
127002019-02-14 Joel Brobecker <brobecker@adacore.com>
12701
12702 * windows-nat.c (windows_add_thread): Add new parameter
12703 "main_thread_p" with default value set to false. Update
12704 function documentation as well as all callers.
12705 (windows_delete_thread): Likewise.
12706 (fake_create_process): Update call to windows_add_thread.
12707 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12708 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12709 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12710 call to windows_delete_thread.
12711
007024cc
SM
127122019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12713
12714 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12715
f62318e9
JB
127162019-02-12 John Baldwin <jhb@FreeBSD.org>
12717
12718 * symfile.c (find_separate_debug_file): Use canonical path of
12719 sysroot with child_path instead of gdb_sysroot if it is valid.
12720
cd4b7848
JB
127212019-02-12 John Baldwin <jhb@FreeBSD.org>
12722
12723 * symfile.c (find_separate_debug_file): Use child_path to
12724 determine if an object file is under a sysroot.
12725
efac4bfe
JB
127262019-02-12 John Baldwin <jhb@FreeBSD.org>
12727
12728 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12729 unittests/child-path-selftests.c.
12730 * common/pathstuff.c (child_path): New function.
12731 * common/pathstuff.h (child_path): New prototype.
12732 * unittests/child-path-selftests.c: New file.
12733
402d2bfe
JB
127342019-02-12 John Baldwin <jhb@FreeBSD.org>
12735
12736 * symfile.c (find_separate_debug_file): Look for separate debug
12737 files in debug directories under the sysroot.
12738
1ed9f74e
PW
127392019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12740
12741 * symtab.h (struct minimal_symbol data_p): New const method.
12742 (struct minimal_symbol text_p): Likewise.
12743 * symtab.c (output_source_filename): Use file name style
12744 to print file name.
12745 (print_symbol_info): Likewise.
12746 (print_msymbol_info): Use address style to print addresses.
12747 Use function name style to print executable text symbols.
12748 (expand_symtab_containing_pc): Use data_p.
12749 (find_pc_sect_compunit_symtab): Likewise.
12750
2636d81d
PW
127512019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12752
12753 * breakpoint.c (describe_other_breakpoints): Use address style
12754 to print addresses.
12755 (say_where): Likewise.
12756
ac8c53cc
PW
127572019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12758
12759 * ada-typeprint.c (print_func_type): Print function name
12760 style to print function name.
12761 * c-typeprint.c (c_print_type_1): Likewise.
12762
ea638c43
AH
127632019-02-11 Alan Hayward <alan.hayward@arm.com>
12764
12765 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12766 for execve.
12767
ab759ca8
PW
127682019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12769
12770 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12771 type_stack.
12772
aff29d1c
JB
127732019-02-10 Joel Brobecker <brobecker@adacore.com>
12774
12775 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12776 TYPE_CODE_REF types.
12777
617126bc
JW
127782019-02-08 Jim Wilson <jimw@sifive.com>
12779
12780 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12781 (riscv_linux_fregset): New.
12782 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12783
46e3ed7f
TT
127842019-02-07 Tom Tromey <tom@tromey.com>
12785
12786 * thread.c (thread_cancel_execution_command): Update.
12787 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12788 methods.
12789 (struct thread_fsm_ops): Remove.
12790 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12791 (thread_fsm_should_stop, thread_fsm_return_value)
12792 (thread_fsm_set_finished, thread_fsm_finished_p)
12793 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12794 Don't declare.
12795 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12796 * infrun.c (clear_proceed_status_thread)
12797 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12798 (print_stop_event): Update.
12799 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12800 Add constructor.
12801 (step_command_fsm_ops): Remove.
12802 (new_step_command_fsm): Remove.
12803 (step_1): Update.
12804 (step_command_fsm::should_stop): Rename from
12805 step_command_fsm_should_stop.
12806 (step_command_fsm::clean_up): Rename from
12807 step_command_fsm_clean_up.
12808 (step_command_fsm::do_async_reply_reason): Rename from
12809 step_command_fsm_async_reply_reason.
12810 (struct until_next_fsm): Inherit from thread_fsm. Add
12811 constructor.
12812 (until_next_fsm_ops): Remove.
12813 (new_until_next_fsm): Remove.
12814 (until_next_fsm::should_stop): Rename from
12815 until_next_fsm_should_stop.
12816 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12817 (until_next_fsm::do_async_reply_reason): Rename from
12818 until_next_fsm_async_reply_reason.
12819 (struct finish_command_fsm): Inherit from thread_fsm. Add
12820 constructor. Change type of breakpoint.
12821 (finish_command_fsm_ops): Remove.
12822 (new_finish_command_fsm): Remove.
12823 (finish_command_fsm::should_stop): Rename from
12824 finish_command_fsm_should_stop.
12825 (finish_command_fsm::clean_up): Rename from
12826 finish_command_fsm_clean_up.
12827 (finish_command_fsm::return_value): Rename from
12828 finish_command_fsm_return_value.
12829 (finish_command_fsm::do_async_reply_reason): Rename from
12830 finish_command_fsm_async_reply_reason.
12831 (finish_command): Update.
12832 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12833 Add constructor.
12834 (call_thread_fsm_ops): Remove.
12835 (call_thread_fsm::call_thread_fsm): Rename from
12836 new_call_thread_fsm.
12837 (call_thread_fsm::should_stop): Rename from
12838 call_thread_fsm_should_stop.
12839 (call_thread_fsm::should_notify_stop): Rename from
12840 call_thread_fsm_should_notify_stop.
12841 (run_inferior_call, call_function_by_hand_dummy): Update.
12842 * cli/cli-interp.c (should_print_stop_to_console): Update.
12843 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12844 Add constructor. Change type of location_breakpoint,
12845 caller_breakpoint.
12846 (until_break_fsm_ops): Remove.
12847 (new_until_break_fsm): Remove.
12848 (until_break_fsm::should_stop): Rename from
12849 until_break_fsm_should_stop.
12850 (until_break_fsm::clean_up): Rename from
12851 until_break_fsm_clean_up.
12852 (until_break_fsm::do_async_reply_reason): Rename from
12853 until_break_fsm_async_reply_reason.
12854 (until_break_command): Update.
12855 * thread-fsm.c: Remove.
12856 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12857
1a5c2598
TT
128582019-02-07 Tom Tromey <tom@tromey.com>
12859
12860 * yy-remap.h: Add include guard.
12861 * xtensa-tdep.h: Add include guard.
12862 * xcoffread.h: Rename include guard.
12863 * varobj-iter.h: Add include guard.
12864 * tui/tui.h: Rename include guard.
12865 * tui/tui-winsource.h: Rename include guard.
12866 * tui/tui-wingeneral.h: Rename include guard.
12867 * tui/tui-windata.h: Rename include guard.
12868 * tui/tui-win.h: Rename include guard.
12869 * tui/tui-stack.h: Rename include guard.
12870 * tui/tui-source.h: Rename include guard.
12871 * tui/tui-regs.h: Rename include guard.
12872 * tui/tui-out.h: Rename include guard.
12873 * tui/tui-layout.h: Rename include guard.
12874 * tui/tui-io.h: Rename include guard.
12875 * tui/tui-hooks.h: Rename include guard.
12876 * tui/tui-file.h: Rename include guard.
12877 * tui/tui-disasm.h: Rename include guard.
12878 * tui/tui-data.h: Rename include guard.
12879 * tui/tui-command.h: Rename include guard.
12880 * tic6x-tdep.h: Add include guard.
12881 * target/waitstatus.h: Rename include guard.
12882 * target/wait.h: Rename include guard.
12883 * target/target.h: Rename include guard.
12884 * target/resume.h: Rename include guard.
12885 * target-float.h: Rename include guard.
12886 * stabsread.h: Add include guard.
12887 * rs6000-tdep.h: Add include guard.
12888 * riscv-fbsd-tdep.h: Add include guard.
12889 * regformats/regdef.h: Rename include guard.
12890 * record.h: Rename include guard.
12891 * python/python.h: Rename include guard.
12892 * python/python-internal.h: Rename include guard.
12893 * python/py-stopevent.h: Rename include guard.
12894 * python/py-ref.h: Rename include guard.
12895 * python/py-record.h: Rename include guard.
12896 * python/py-record-full.h: Rename include guard.
12897 * python/py-record-btrace.h: Rename include guard.
12898 * python/py-instruction.h: Rename include guard.
12899 * python/py-events.h: Rename include guard.
12900 * python/py-event.h: Rename include guard.
12901 * procfs.h: Add include guard.
12902 * proc-utils.h: Add include guard.
12903 * p-lang.h: Add include guard.
12904 * or1k-tdep.h: Rename include guard.
12905 * observable.h: Rename include guard.
12906 * nto-tdep.h: Rename include guard.
12907 * nat/x86-linux.h: Rename include guard.
12908 * nat/x86-linux-dregs.h: Rename include guard.
12909 * nat/x86-gcc-cpuid.h: Add include guard.
12910 * nat/x86-dregs.h: Rename include guard.
12911 * nat/x86-cpuid.h: Rename include guard.
12912 * nat/ppc-linux.h: Rename include guard.
12913 * nat/mips-linux-watch.h: Rename include guard.
12914 * nat/linux-waitpid.h: Rename include guard.
12915 * nat/linux-ptrace.h: Rename include guard.
12916 * nat/linux-procfs.h: Rename include guard.
12917 * nat/linux-osdata.h: Rename include guard.
12918 * nat/linux-nat.h: Rename include guard.
12919 * nat/linux-namespaces.h: Rename include guard.
12920 * nat/linux-btrace.h: Rename include guard.
12921 * nat/glibc_thread_db.h: Rename include guard.
12922 * nat/gdb_thread_db.h: Rename include guard.
12923 * nat/gdb_ptrace.h: Rename include guard.
12924 * nat/fork-inferior.h: Rename include guard.
12925 * nat/amd64-linux-siginfo.h: Rename include guard.
12926 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12927 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12928 * nat/aarch64-linux.h: Rename include guard.
12929 * nat/aarch64-linux-hw-point.h: Rename include guard.
12930 * mn10300-tdep.h: Add include guard.
12931 * mips-linux-tdep.h: Add include guard.
12932 * mi/mi-parse.h: Rename include guard.
12933 * mi/mi-out.h: Rename include guard.
12934 * mi/mi-main.h: Rename include guard.
12935 * mi/mi-interp.h: Rename include guard.
12936 * mi/mi-getopt.h: Rename include guard.
12937 * mi/mi-console.h: Rename include guard.
12938 * mi/mi-common.h: Rename include guard.
12939 * mi/mi-cmds.h: Rename include guard.
12940 * mi/mi-cmd-break.h: Rename include guard.
12941 * m2-lang.h: Add include guard.
12942 * location.h: Rename include guard.
12943 * linux-record.h: Rename include guard.
12944 * linux-nat.h: Add include guard.
12945 * linux-fork.h: Add include guard.
12946 * i386-darwin-tdep.h: Rename include guard.
12947 * hppa-linux-offsets.h: Add include guard.
12948 * guile/guile.h: Rename include guard.
12949 * guile/guile-internal.h: Rename include guard.
12950 * gnu-nat.h: Rename include guard.
12951 * gdb-stabs.h: Rename include guard.
12952 * frv-tdep.h: Add include guard.
12953 * f-lang.h: Add include guard.
12954 * event-loop.h: Add include guard.
12955 * darwin-nat.h: Rename include guard.
12956 * cp-abi.h: Rename include guard.
12957 * config/sparc/nm-sol2.h: Rename include guard.
12958 * config/nm-nto.h: Rename include guard.
12959 * config/nm-linux.h: Add include guard.
12960 * config/i386/nm-i386gnu.h: Rename include guard.
12961 * config/djgpp/nl_types.h: Rename include guard.
12962 * config/djgpp/langinfo.h: Rename include guard.
12963 * compile/gcc-cp-plugin.h: Add include guard.
12964 * compile/gcc-c-plugin.h: Add include guard.
12965 * compile/compile.h: Rename include guard.
12966 * compile/compile-object-run.h: Rename include guard.
12967 * compile/compile-object-load.h: Rename include guard.
12968 * compile/compile-internal.h: Rename include guard.
12969 * compile/compile-cplus.h: Rename include guard.
12970 * compile/compile-c.h: Rename include guard.
12971 * common/xml-utils.h: Rename include guard.
12972 * common/x86-xstate.h: Rename include guard.
12973 * common/version.h: Rename include guard.
12974 * common/vec.h: Rename include guard.
12975 * common/tdesc.h: Rename include guard.
12976 * common/selftest.h: Rename include guard.
12977 * common/scoped_restore.h: Rename include guard.
12978 * common/scoped_mmap.h: Rename include guard.
12979 * common/scoped_fd.h: Rename include guard.
12980 * common/safe-iterator.h: Rename include guard.
12981 * common/run-time-clock.h: Rename include guard.
12982 * common/refcounted-object.h: Rename include guard.
12983 * common/queue.h: Rename include guard.
12984 * common/ptid.h: Rename include guard.
12985 * common/print-utils.h: Rename include guard.
12986 * common/preprocessor.h: Rename include guard.
12987 * common/pathstuff.h: Rename include guard.
12988 * common/observable.h: Rename include guard.
12989 * common/netstuff.h: Rename include guard.
12990 * common/job-control.h: Rename include guard.
12991 * common/host-defs.h: Rename include guard.
12992 * common/gdb_wait.h: Rename include guard.
12993 * common/gdb_vecs.h: Rename include guard.
12994 * common/gdb_unlinker.h: Rename include guard.
12995 * common/gdb_unique_ptr.h: Rename include guard.
12996 * common/gdb_tilde_expand.h: Rename include guard.
12997 * common/gdb_sys_time.h: Rename include guard.
12998 * common/gdb_string_view.h: Rename include guard.
12999 * common/gdb_splay_tree.h: Rename include guard.
13000 * common/gdb_setjmp.h: Rename include guard.
13001 * common/gdb_ref_ptr.h: Rename include guard.
13002 * common/gdb_optional.h: Rename include guard.
13003 * common/gdb_locale.h: Rename include guard.
13004 * common/gdb_assert.h: Rename include guard.
13005 * common/filtered-iterator.h: Rename include guard.
13006 * common/filestuff.h: Rename include guard.
13007 * common/fileio.h: Rename include guard.
13008 * common/environ.h: Rename include guard.
13009 * common/common-utils.h: Rename include guard.
13010 * common/common-types.h: Rename include guard.
13011 * common/common-regcache.h: Rename include guard.
13012 * common/common-inferior.h: Rename include guard.
13013 * common/common-gdbthread.h: Rename include guard.
13014 * common/common-exceptions.h: Rename include guard.
13015 * common/common-defs.h: Rename include guard.
13016 * common/common-debug.h: Rename include guard.
13017 * common/cleanups.h: Rename include guard.
13018 * common/buffer.h: Rename include guard.
13019 * common/btrace-common.h: Rename include guard.
13020 * common/break-common.h: Rename include guard.
13021 * cli/cli-utils.h: Rename include guard.
13022 * cli/cli-style.h: Rename include guard.
13023 * cli/cli-setshow.h: Rename include guard.
13024 * cli/cli-script.h: Rename include guard.
13025 * cli/cli-interp.h: Rename include guard.
13026 * cli/cli-decode.h: Rename include guard.
13027 * cli/cli-cmds.h: Rename include guard.
13028 * charset-list.h: Add include guard.
13029 * buildsym-legacy.h: Rename include guard.
13030 * bfin-tdep.h: Add include guard.
13031 * ax.h: Rename include guard.
13032 * arm-linux-tdep.h: Add include guard.
13033 * arm-fbsd-tdep.h: Add include guard.
13034 * arch/xtensa.h: Rename include guard.
13035 * arch/tic6x.h: Add include guard.
13036 * arch/i386.h: Add include guard.
13037 * arch/arm.h: Rename include guard.
13038 * arch/arm-linux.h: Rename include guard.
13039 * arch/arm-get-next-pcs.h: Rename include guard.
13040 * arch/amd64.h: Add include guard.
13041 * arch/aarch64-insn.h: Rename include guard.
13042 * arch-utils.h: Rename include guard.
13043 * annotate.h: Add include guard.
13044 * amd64-darwin-tdep.h: Rename include guard.
13045 * aarch64-linux-tdep.h: Add include guard.
13046 * aarch64-fbsd-tdep.h: Add include guard.
13047 * aarch32-linux-nat.h: Add include guard.
13048
ab9268d2
PW
130492019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13050
13051 * macrotab.c (macro_define_internal): New function that
13052 factorizes macro_define_object_internal and macro_define_function
13053 code.
13054 (macro_define_object_internal): Use macro_define_internal.
13055 (macro_define_function): Likewise.
13056
bb0da2b4
PW
130572019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13058
13059 * macrocmd.c (extract_identifier): Return
13060 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13061 callers.
13062
424eb552
JB
130632019-02-06 John Baldwin <jhb@FreeBSD.org>
13064
13065 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13066
1688cb29
TT
130672019-02-05 Tom Tromey <tom@tromey.com>
13068
13069 * target.c (target_stack::unpush): Move assertion earlier.
13070
b5eba2d8
TT
130712019-01-30 Tom Tromey <tom@tromey.com>
13072
13073 PR python/23615:
13074 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13075 (gdbpy_parse_and_eval): Likewise.
13076 * python/python-internal.h (gdbpy_allow_threads): New class.
13077
7054e2ff
JB
130782019-01-28 John Baldwin <jhb@FreeBSD.org>
13079
13080 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13081 (aarch64_fbsd_fpregmap): Move earlier.
13082 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13083 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13084 instead of individual calls to trad_frame_set_reg_addr.
13085 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13086 earlier.
13087 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13088 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13089 instead of individual calls to trad_frame_set_reg_addr.
13090
36c25ffa
AH
130912019-01-28 Alan Hayward <alan.hayward@arm.com>
13092
13093 * CONTRIBUTE: Replace contribution list with wiki link.
13094
a0707f3c
TT
130952019-01-25 Tom Tromey <tom@tromey.com>
13096
13097 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13098
0747795c
TT
130992019-01-25 Tom Tromey <tom@tromey.com>
13100
13101 * xtensa-linux-nat.c: Fix common/ includes.
13102 * xml-support.h: Fix common/ includes.
13103 * xml-support.c: Fix common/ includes.
13104 * x86-linux-nat.c: Fix common/ includes.
13105 * windows-nat.c: Fix common/ includes.
13106 * varobj.h: Fix common/ includes.
13107 * varobj.c: Fix common/ includes.
13108 * value.c: Fix common/ includes.
13109 * valops.c: Fix common/ includes.
13110 * utils.c: Fix common/ includes.
13111 * unittests/xml-utils-selftests.c: Fix common/ includes.
13112 * unittests/utils-selftests.c: Fix common/ includes.
13113 * unittests/unpack-selftests.c: Fix common/ includes.
13114 * unittests/tracepoint-selftests.c: Fix common/ includes.
13115 * unittests/style-selftests.c: Fix common/ includes.
13116 * unittests/string_view-selftests.c: Fix common/ includes.
13117 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13118 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13119 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13120 * unittests/rsp-low-selftests.c: Fix common/ includes.
13121 * unittests/parse-connection-spec-selftests.c: Fix common/
13122 includes.
13123 * unittests/optional-selftests.c: Fix common/ includes.
13124 * unittests/offset-type-selftests.c: Fix common/ includes.
13125 * unittests/observable-selftests.c: Fix common/ includes.
13126 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13127 * unittests/memrange-selftests.c: Fix common/ includes.
13128 * unittests/memory-map-selftests.c: Fix common/ includes.
13129 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13130 * unittests/function-view-selftests.c: Fix common/ includes.
13131 * unittests/environ-selftests.c: Fix common/ includes.
13132 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13133 * unittests/common-utils-selftests.c: Fix common/ includes.
13134 * unittests/cli-utils-selftests.c: Fix common/ includes.
13135 * unittests/array-view-selftests.c: Fix common/ includes.
13136 * ui-file.c: Fix common/ includes.
13137 * tui/tui-io.c: Fix common/ includes.
13138 * tracepoint.h: Fix common/ includes.
13139 * tracepoint.c: Fix common/ includes.
13140 * tracefile-tfile.c: Fix common/ includes.
13141 * top.h: Fix common/ includes.
13142 * top.c: Fix common/ includes.
13143 * thread.c: Fix common/ includes.
13144 * target/waitstatus.h: Fix common/ includes.
13145 * target/waitstatus.c: Fix common/ includes.
13146 * target.h: Fix common/ includes.
13147 * target.c: Fix common/ includes.
13148 * target-memory.c: Fix common/ includes.
13149 * target-descriptions.c: Fix common/ includes.
13150 * symtab.h: Fix common/ includes.
13151 * symfile.c: Fix common/ includes.
13152 * stap-probe.c: Fix common/ includes.
13153 * spu-linux-nat.c: Fix common/ includes.
13154 * sparc-nat.c: Fix common/ includes.
13155 * source.c: Fix common/ includes.
13156 * solib.c: Fix common/ includes.
13157 * solib-target.c: Fix common/ includes.
13158 * ser-unix.c: Fix common/ includes.
13159 * ser-tcp.c: Fix common/ includes.
13160 * ser-pipe.c: Fix common/ includes.
13161 * ser-base.c: Fix common/ includes.
13162 * selftest-arch.c: Fix common/ includes.
13163 * s12z-tdep.c: Fix common/ includes.
13164 * rust-exp.y: Fix common/ includes.
13165 * rs6000-aix-tdep.c: Fix common/ includes.
13166 * riscv-tdep.c: Fix common/ includes.
13167 * remote.c: Fix common/ includes.
13168 * remote-notif.h: Fix common/ includes.
13169 * remote-fileio.h: Fix common/ includes.
13170 * remote-fileio.c: Fix common/ includes.
13171 * regcache.h: Fix common/ includes.
13172 * regcache.c: Fix common/ includes.
13173 * record-btrace.c: Fix common/ includes.
13174 * python/python.c: Fix common/ includes.
13175 * python/py-type.c: Fix common/ includes.
13176 * python/py-inferior.c: Fix common/ includes.
13177 * progspace.h: Fix common/ includes.
13178 * producer.c: Fix common/ includes.
13179 * procfs.c: Fix common/ includes.
13180 * proc-api.c: Fix common/ includes.
13181 * printcmd.c: Fix common/ includes.
13182 * ppc-linux-nat.c: Fix common/ includes.
13183 * parser-defs.h: Fix common/ includes.
13184 * osdata.c: Fix common/ includes.
13185 * obsd-nat.c: Fix common/ includes.
13186 * nat/x86-linux.c: Fix common/ includes.
13187 * nat/x86-linux-dregs.c: Fix common/ includes.
13188 * nat/x86-dregs.h: Fix common/ includes.
13189 * nat/x86-dregs.c: Fix common/ includes.
13190 * nat/ppc-linux.c: Fix common/ includes.
13191 * nat/mips-linux-watch.h: Fix common/ includes.
13192 * nat/mips-linux-watch.c: Fix common/ includes.
13193 * nat/linux-waitpid.c: Fix common/ includes.
13194 * nat/linux-ptrace.h: Fix common/ includes.
13195 * nat/linux-ptrace.c: Fix common/ includes.
13196 * nat/linux-procfs.c: Fix common/ includes.
13197 * nat/linux-personality.c: Fix common/ includes.
13198 * nat/linux-osdata.c: Fix common/ includes.
13199 * nat/linux-namespaces.c: Fix common/ includes.
13200 * nat/linux-btrace.h: Fix common/ includes.
13201 * nat/linux-btrace.c: Fix common/ includes.
13202 * nat/fork-inferior.c: Fix common/ includes.
13203 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13204 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13205 * nat/aarch64-linux.c: Fix common/ includes.
13206 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13207 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13208 * namespace.h: Fix common/ includes.
13209 * mips-linux-tdep.c: Fix common/ includes.
13210 * minsyms.c: Fix common/ includes.
13211 * mi/mi-parse.h: Fix common/ includes.
13212 * mi/mi-main.c: Fix common/ includes.
13213 * mi/mi-cmd-env.c: Fix common/ includes.
13214 * memrange.h: Fix common/ includes.
13215 * memattr.c: Fix common/ includes.
13216 * maint.h: Fix common/ includes.
13217 * maint.c: Fix common/ includes.
13218 * main.c: Fix common/ includes.
13219 * machoread.c: Fix common/ includes.
13220 * location.c: Fix common/ includes.
13221 * linux-thread-db.c: Fix common/ includes.
13222 * linux-nat.c: Fix common/ includes.
13223 * linux-fork.c: Fix common/ includes.
13224 * inline-frame.c: Fix common/ includes.
13225 * infrun.c: Fix common/ includes.
13226 * inflow.c: Fix common/ includes.
13227 * inferior.h: Fix common/ includes.
13228 * inferior.c: Fix common/ includes.
13229 * infcmd.c: Fix common/ includes.
13230 * inf-ptrace.c: Fix common/ includes.
13231 * inf-child.c: Fix common/ includes.
13232 * ia64-linux-nat.c: Fix common/ includes.
13233 * i387-tdep.c: Fix common/ includes.
13234 * i386-tdep.c: Fix common/ includes.
13235 * i386-linux-tdep.c: Fix common/ includes.
13236 * i386-linux-nat.c: Fix common/ includes.
13237 * i386-go32-tdep.c: Fix common/ includes.
13238 * i386-fbsd-tdep.c: Fix common/ includes.
13239 * i386-fbsd-nat.c: Fix common/ includes.
13240 * guile/scm-type.c: Fix common/ includes.
13241 * guile/guile.c: Fix common/ includes.
13242 * go32-nat.c: Fix common/ includes.
13243 * gnu-nat.c: Fix common/ includes.
13244 * gdbthread.h: Fix common/ includes.
13245 * gdbarch-selftests.c: Fix common/ includes.
13246 * gdb_usleep.c: Fix common/ includes.
13247 * gdb_select.h: Fix common/ includes.
13248 * gdb_bfd.c: Fix common/ includes.
13249 * gcore.c: Fix common/ includes.
13250 * fork-child.c: Fix common/ includes.
13251 * findvar.c: Fix common/ includes.
13252 * fbsd-nat.c: Fix common/ includes.
13253 * event-top.c: Fix common/ includes.
13254 * event-loop.c: Fix common/ includes.
13255 * dwarf2read.c: Fix common/ includes.
13256 * dwarf2loc.c: Fix common/ includes.
13257 * dwarf2-frame.c: Fix common/ includes.
13258 * dwarf-index-cache.c: Fix common/ includes.
13259 * dtrace-probe.c: Fix common/ includes.
13260 * disasm-selftests.c: Fix common/ includes.
13261 * defs.h: Fix common/ includes.
13262 * csky-tdep.c: Fix common/ includes.
13263 * cp-valprint.c: Fix common/ includes.
13264 * cp-support.h: Fix common/ includes.
13265 * cp-support.c: Fix common/ includes.
13266 * corelow.c: Fix common/ includes.
13267 * completer.h: Fix common/ includes.
13268 * completer.c: Fix common/ includes.
13269 * compile/compile.c: Fix common/ includes.
13270 * compile/compile-loc2c.c: Fix common/ includes.
13271 * compile/compile-cplus-types.c: Fix common/ includes.
13272 * compile/compile-cplus-symbols.c: Fix common/ includes.
13273 * command.h: Fix common/ includes.
13274 * cli/cli-dump.c: Fix common/ includes.
13275 * cli/cli-cmds.c: Fix common/ includes.
13276 * charset.c: Fix common/ includes.
13277 * build-id.c: Fix common/ includes.
13278 * btrace.h: Fix common/ includes.
13279 * btrace.c: Fix common/ includes.
13280 * breakpoint.h: Fix common/ includes.
13281 * breakpoint.c: Fix common/ includes.
13282 * ax.h:
13283 (enum agent_op): Fix common/ includes.
13284 * ax-general.c (struct aop_map): Fix common/ includes.
13285 * ax-gdb.c: Fix common/ includes.
13286 * auxv.c: Fix common/ includes.
13287 * auto-load.c: Fix common/ includes.
13288 * arm-tdep.c: Fix common/ includes.
13289 * arch/riscv.c: Fix common/ includes.
13290 * arch/ppc-linux-common.c: Fix common/ includes.
13291 * arch/i386.c: Fix common/ includes.
13292 * arch/arm.c: Fix common/ includes.
13293 * arch/arm-linux.c: Fix common/ includes.
13294 * arch/arm-get-next-pcs.c: Fix common/ includes.
13295 * arch/amd64.c: Fix common/ includes.
13296 * arch/aarch64.c: Fix common/ includes.
13297 * arch/aarch64-insn.c: Fix common/ includes.
13298 * arch-utils.c: Fix common/ includes.
13299 * amd64-windows-tdep.c: Fix common/ includes.
13300 * amd64-tdep.c: Fix common/ includes.
13301 * amd64-sol2-tdep.c: Fix common/ includes.
13302 * amd64-obsd-tdep.c: Fix common/ includes.
13303 * amd64-nbsd-tdep.c: Fix common/ includes.
13304 * amd64-linux-tdep.c: Fix common/ includes.
13305 * amd64-linux-nat.c: Fix common/ includes.
13306 * amd64-fbsd-tdep.c: Fix common/ includes.
13307 * amd64-fbsd-nat.c: Fix common/ includes.
13308 * amd64-dicos-tdep.c: Fix common/ includes.
13309 * amd64-darwin-tdep.c: Fix common/ includes.
13310 * agent.c: Fix common/ includes.
13311 * ada-lang.h: Fix common/ includes.
13312 * ada-lang.c: Fix common/ includes.
13313 * aarch64-tdep.c: Fix common/ includes.
13314
2f5c153e
TT
133152019-01-25 Tom Tromey <tom@tromey.com>
13316
13317 * common/create-version.sh: Use common/version.h.
13318
adc6a863
PA
133192019-01-24 Pedro Alves <palves@redhat.com>
13320
13321 * infrun.c (signal_stop, signal_print, signal_program)
13322 (signal_catch, signal_pass): Now arrays instead of pointers.
13323 (update_signals_program_target, do_target_resume)
13324 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13325 * linux-nat.c (linux_nat_target::pass_signals)
13326 (linux_nat_target::create_inferior, linux_nat_target::attach):
13327 Adjust.
13328 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13329 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13330 * procfs.c (procfs_target::pass_signals): Adjust.
13331 * record-full.c (record_full_target::resume): Adjust.
13332 * remote.c (remote_target::pass_signals)
13333 (remote_target::program_signals): Adjust.
13334 * target-debug.h (target_debug_print_signals): Now takes a
13335 gdb::array_view as parameter. Adjust.
13336 * target.h (target_ops) <pass_signals, program_signals>: Replace
13337 pointer and length parameters with gdb::array_view.
13338 (target_pass_signals, target_program_signals): Likewise.
13339 * target-delegates.c: Regenerate.
13340
3046d67a
PA
133412019-01-24 Pedro Alves <palves@redhat.com>
13342
13343 * common/forward-scope-exit.h
13344 (forward_scope_exit::forward_scope_exit): Pass arguments to
13345 m_bind_function directly, instead of creating a std::bind and
13346 copying that.
13347
353229bf
AH
133482019-01-24 Alan Hayward <alan.hayward@arm.com>
13349
13350 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13351 for static members.
13352 (pass_in_v_vfp_candidate): Likewise.
13353
311dc83a
TT
133542019-01-23 Tom Tromey <tom@tromey.com>
13355 Pedro Alves <palves@redhat.com>
13356
13357 * regcache.c (class regcache_invalidator): Remove.
13358 (regcache::raw_write): Use make_scope_exit.
13359
296bd123
TT
133602019-01-23 Tom Tromey <tom@tromey.com>
13361
13362 * ui-out.h (class ui_out_emit_type): Update comment.
13363
979a0d13
TT
133642019-01-23 Tom Tromey <tom@tromey.com>
13365
13366 * infrun.c (fetch_inferior_event): Update comment.
13367
d238133d
TT
133682019-01-23 Tom Tromey <tom@tromey.com>
13369 Pedro Alves <palves@redhat.com>
13370
13371 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13372 parameter.
13373 (fetch_inferior_event): Use SCOPE_EXIT.
13374
13375
9885e6bb
TT
133762019-01-23 Tom Tromey <tom@tromey.com>
13377 Pedro Alves <palves@redhat.com>
13378
13379 * infrun.c (disable_thread_events): Delete.
13380 (stop_all_threads): Use SCOPE_EXIT.
13381
286526c1
TT
133822019-01-23 Tom Tromey <tom@tromey.com>
13383 Pedro Alves <palves@redhat.com>
13384
13385 * symfile.c: Include forward-scope-exit.h.
13386 (clear_symtab_users_cleanup): Replace forward declaration with
13387 a FORWARD_SCOPE_EXIT.
13388 (syms_from_objfile_1): Use the forward_scope_exit and
13389 gdb::optional instead of cleanup_function.
13390 (reread_symbols): Use the forward_scope_exit instead of
13391 cleanup_function.
13392 (clear_symtab_users_cleanup): Remove function.
13393
1db93f14
TT
133942019-01-23 Tom Tromey <tom@tromey.com>
13395 Pedro Alves <palves@redhat.com>
13396
13397 * linux-nat.c: Include scope-exit.h.
13398 (cleanup_target_stop): Remove.
13399 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13400 SCOPE_EXIT.
13401
2cc83d1e
TT
134022019-01-23 Tom Tromey <tom@tromey.com>
13403 Pedro Alves <palves@redhat.com>
13404
13405 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13406 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13407
694c6bf5
TT
134082019-01-23 Tom Tromey <tom@tromey.com>
13409 Andrew Burgess <andrew.burgess@embecosm.com>
13410 Pedro Alves <palves@redhat.com>
13411
13412 * infrun.c (fetch_inferior_event): Use scope_exit.
13413 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13414 * top.c (execute_command): Use scope_exit.
13415 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13416 * utils.c (do_bpstat_clear_actions_cleanup)
13417 (make_bpstat_clear_actions_cleanup): Remove.
13418
4c41382a
TT
134192019-01-23 Tom Tromey <tom@tromey.com>
13420 Pedro Alves <palves@redhat.com>
13421
13422 * infrun.c: Include "common/scope-exit.h"
13423 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13424 (wait_for_inferior): Use SCOPE_EXIT.
13425 (fetch_inferior_event): Use scope_exit.
13426
89f8fb50
TT
134272019-01-23 Tom Tromey <tom@tromey.com>
13428 Pedro Alves <palves@redhat.com>
13429
13430 * breakpoint.c (create_breakpoint): Remove cleanup.
13431
5419bdae
TT
134322019-01-23 Tom Tromey <tom@tromey.com>
13433 Andrew Burgess <andrew.burgess@embecosm.com>
13434 Pedro Alves <palves@redhat.com>
13435
e587ef42
PA
134362019-01-23 Pedro Alves <palves@redhat.com>
13437
13438 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13439
77f0e74c
PA
134402019-01-23 Pedro Alves <palves@redhat.com>
13441 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * gdbthread.h: Include "common/forward-scope-exit.h".
13444 (scoped_finish_thread_state): Redefine custom class in terms of
13445 forward_scope_exit.
13446
5b9b3e53
PA
134472019-01-23 Pedro Alves <palves@redhat.com>
13448 Andrew Burgess <andrew.burgess@embecosm.com>
13449
13450 * common/forward-scope-exit.h: New file.
13451
54b65c9b
PA
134522019-01-23 Pedro Alves <palves@redhat.com>
13453 Andrew Burgess <andrew.burgess@embecosm.com>
13454 Tom Tromey <tom@tromey.com>
13455
13456 * common/scope-exit.h: New file.
13457
cf08fb29
PA
134582019-01-23 Pedro Alves <palves@redhat.com>
13459
13460 * common/preprocessor.h (ESC): Rename to ...
13461 (ESC_PARENS): ... this.
13462 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13463 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13464
ae73e2e2
TT
134652019-01-23 Tom Tromey <tom@tromey.com>
13466
13467 * language.h (class scoped_switch_to_sym_language_if_auto):
13468 Initialize m_lang in both cases.
13469
6594e122
AH
134702019-01-23 Alan Hayward <alan.hayward@arm.com>
13471
13472 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13473 with XCNEW.
13474
a7c9855d
TT
134752019-01-22 Tom Tromey <tom@tromey.com>
13476
13477 * corelow.c: Do not include sys/file.h.
13478
93cc1d53
TT
134792019-01-22 Tom Tromey <tom@tromey.com>
13480
13481 * tui/tui-wingeneral.h: Include gdb_curses.h.
13482
38561778
TT
134832019-01-22 Tom Tromey <tom@tromey.com>
13484
13485 * source-cache.h (class source_cache) <get_source_lines,
13486 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13487
37b3ab5b
TT
134882019-01-22 Tom Tromey <tom@tromey.com>
13489
13490 * remote-fileio.h (struct remote_target): Declare.
13491
3fabc016
TT
134922019-01-22 Tom Tromey <tom@tromey.com>
13493
13494 * python/py-arch.c: Do not include py-ref.h.
13495 * python/py-bpevent.c: Do not include py-ref.h.
13496 * python/py-cmd.c: Do not include py-ref.h.
13497 * python/py-continueevent.c: Do not include py-ref.h.
13498 * python/py-event.h: Do not include py-ref.h.
13499 * python/py-evtregistry.c: Do not include py-ref.h.
13500 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13501 * python/py-frame.c: Do not include py-ref.h.
13502 * python/py-framefilter.c: Do not include py-ref.h.
13503 * python/py-function.c: Do not include py-ref.h.
13504 * python/py-infevents.c: Do not include py-ref.h.
13505 * python/py-linetable.c: Do not include py-ref.h.
13506 * python/py-objfile.c: Do not include py-ref.h.
13507 * python/py-param.c: Do not include py-ref.h.
13508 * python/py-prettyprint.c: Do not include py-ref.h.
13509 * python/py-progspace.c: Do not include py-ref.h.
13510 * python/py-symbol.c: Do not include py-ref.h.
13511 * python/py-symtab.c: Do not include py-ref.h.
13512 * python/py-type.c: Do not include py-ref.h.
13513 * python/py-unwind.c: Do not include py-ref.h.
13514 * python/py-utils.c: Do not include py-ref.h.
13515 * python/py-value.c: Do not include py-ref.h.
13516 * python/py-varobj.c: Do not include py-ref.h.
13517 * python/py-xmethods.c: Do not include py-ref.h.
13518 * python/python.c: Do not include py-ref.h.
13519 * varobj.c: Do not include py-ref.h.
13520
6b4d7774
TT
135212019-01-22 Tom Tromey <tom@tromey.com>
13522
13523 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13524 keyword for bcache.
13525
7af7e9b5
TT
135262019-01-22 Tom Tromey <tom@tromey.com>
13527
13528 * compile/compile-cplus-types.c: Remove a comment by #include.
13529
951d1049
TT
135302019-01-22 Tom Tromey <tom@tromey.com>
13531
13532 * compile/gcc-c-plugin.h: Include compile-internal.h.
13533
d65d5705
TT
135342019-01-22 Tom Tromey <tom@tromey.com>
13535
13536 * stabsread.c (EXTERN): Do not define.
13537 (symnum, next_symbol_text_func, processing_gcc_compilation)
13538 (within_function, global_sym_chain, global_stabs)
13539 (previous_stab_code, this_object_header_files)
13540 (n_this_object_header_files)
13541 (n_allocated_this_object_header_files): Define.
13542 * stabsread.h (EXTERN): Never define. Use "extern".
13543
b6fb1ee5
PW
135442019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13545
13546 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13547 history_value.
13548
be6d4f74
TT
135492019-01-21 Tom Tromey <tom@tromey.com>
13550
13551 * ui-out.c: Fix includes.
13552 * tui/tui-source.c: Fix includes.
13553 * target.c: Fix includes.
13554 * remote.c: Fix includes.
13555 * regcache.c: Fix includes.
13556 * python/py-block.c: Fix includes.
13557 * printcmd.c: Fix includes.
13558 * or1k-tdep.c: Fix includes.
13559 * mi/mi-main.c: Fix includes.
13560 * m32r-tdep.c: Fix includes.
13561 * csky-tdep.c: Fix includes.
13562 * compile/compile-cplus-types.c: Fix includes.
13563 * cli/cli-interp.c: Fix includes.
13564
73021deb
AH
135652019-01-21 Alan Hayward <alan.hayward@arm.com>
13566
13567 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13568 for padding.
13569
7932255d
TT
135702019-01-16 Tom Tromey <tom@tromey.com>
13571
13572 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13573 earlier.
13574 (struct objfile) <msymbols_range>: Move from top level.
13575 <msymbols>: New method.
13576 (class objfile_msymbols): Remove.
13577 * symtab.c (default_collect_symbol_completion_matches_break_on):
13578 Update.
13579 * symmisc.c (dump_msymbols): Update.
13580 * stabsread.c (scan_file_globals): Update.
13581 * objc-lang.c (info_selectors_command, info_classes_command)
13582 (find_methods): Update.
13583 * minsyms.c (find_solib_trampoline_target): Update.
13584 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13585 * coffread.c (coff_symfile_read): Update.
13586 * ada-lang.c (ada_lookup_simple_minsym)
13587 (ada_collect_symbol_completion_matches): Update.
13588
604b1bfb
TT
135892019-01-16 Tom Tromey <tom@tromey.com>
13590
13591 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13592 type. Remove no-argument constructor.
13593 <iterator::operator++>: Simplify.
13594 <begin>: Update.
13595 <end>: Use minimal_symbol_count.
13596
f252c6d5
TT
135972019-01-16 Tom Tromey <tom@tromey.com>
13598
13599 * objfiles.h (struct objfile) <psymtabs>: New method.
13600 (class objfile_psymtabs): Remove.
13601 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13602 typedef.
13603 <range>: New method.
13604 (require_partial_symbols): Change return type.
13605 * psymtab.c (require_partial_symbols)
13606 (psym_expand_symtabs_matching): Update.
13607 * mdebugread.c (parse_partial_symbols): Update.
13608 * dbxread.c (dbx_end_psymtab): Update.
13609
b669c953
TT
136102019-01-15 Tom Tromey <tom@tromey.com>
13611
13612 * symtab.c (lookup_objfile_from_block)
13613 (lookup_symbol_in_objfile_symtabs)
13614 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13615 (find_line_symtab, info_sources_command)
13616 (default_collect_symbol_completion_matches_break_on)
13617 (make_source_files_completion_list): Update.
13618 * symmisc.c (print_objfile_statistics, dump_objfile)
13619 (maintenance_print_symbols, maintenance_info_symtabs)
13620 (maintenance_check_symtabs, maintenance_info_line_tables):
13621 Update.
13622 * source.c (select_source_symtab)
13623 (forget_cached_source_info_for_objfile): Update.
13624 * objfiles.h (class objfile_compunits): Remove.
13625 (struct objfile) <compunits_range>: New typedef.
13626 (compunits): New method.
13627 * objfiles.c (objfile_relocate1): Update.
13628 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13629 * maint.c (count_symtabs_and_blocks): Update.
13630 * linespec.c (iterate_over_all_matching_symtabs): Update.
13631 * cp-support.c (add_symbol_overload_list_qualified): Update.
13632 * coffread.c (coff_symtab_read): Update.
13633 * ada-lang.c (add_nonlocal_symbols)
13634 (ada_collect_symbol_completion_matches)
13635 (ada_add_global_exceptions): Update.
13636
7e955d83
TT
136372019-01-15 Tom Tromey <tom@tromey.com>
13638
13639 * progspace.h (program_space) <objfiles_safe_range>: New
13640 typedef.
13641 <objfiles_safe>: New method.
13642 * objfiles.h (class all_objfiles_safe): Remove.
13643 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13644 * jit.c (jit_inferior_exit_hook): Update.
13645
2030c079
TT
136462019-01-17 Tom Tromey <tom@tromey.com>
13647
13648 * progspace.h (program_space) <objfiles_range>: New typedef.
13649 <objfiles>: New method.
13650 <objfiles_head>: Rename from objfiles.
13651 (object_files): Update.
13652 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13653 * guile/scm-pretty-print.c
13654 (ppscm_find_pretty_printer_from_objfiles): Update.
13655 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13656 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13657 Update.
13658 * python/py-progspace.c (pspy_get_objfiles): Update.
13659 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13660 Update.
13661 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13662 (objfpy_lookup_objfile_by_build_id): Update.
13663 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13664 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13665 Update.
13666 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13667 (expand_symtab_containing_pc, lookup_objfile_from_block)
13668 (lookup_static_symbol, basic_lookup_transparent_type)
13669 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13670 (find_line_symtab, info_sources_command)
13671 (default_collect_symbol_completion_matches_break_on)
13672 (make_source_files_completion_list, find_main_name): Update.
13673 * symmisc.c (print_symbol_bcache_statistics)
13674 (print_objfile_statistics, maintenance_print_symbols)
13675 (maintenance_print_msymbols, maintenance_print_objfiles)
13676 (maintenance_info_symtabs, maintenance_check_symtabs)
13677 (maintenance_expand_symtabs, maintenance_info_line_tables):
13678 Update.
13679 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13680 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13681 (map_overlay_command, unmap_overlay_command)
13682 (simple_overlay_update, expand_symtabs_matching)
13683 (map_symbol_filenames): Update.
13684 * symfile-debug.c (set_debug_symfile): Update.
13685 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13686 Update.
13687 * source.c (select_source_symtab, forget_cached_source_info):
13688 Update.
13689 * solib.c (solib_read_symbols): Update.
13690 * solib-spu.c (append_ocl_sos): Update.
13691 * psymtab.c (maintenance_print_psymbols)
13692 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13693 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13694 * printcmd.c (info_symbol_command): Update.
13695 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13696 Update.
13697 * objfiles.h (class all_objfiles): Remove.
13698 * objfiles.c (have_partial_symbols, have_full_symbols)
13699 (have_minimal_symbols, qsort_cmp, update_section_map)
13700 (shared_objfile_contains_address_p)
13701 (default_iterate_over_objfiles_in_search_order): Update.
13702 * objc-lang.c (info_selectors_command, info_classes_command)
13703 (find_methods): Update.
13704 * minsyms.c (find_solib_trampoline_target): Update.
13705 * maint.c (maintenance_info_sections)
13706 (maintenance_translate_address, count_symtabs_and_blocks):
13707 Update.
13708 * main.c (captured_main_1): Update.
13709 * linux-thread-db.c (try_thread_db_load_from_pdir)
13710 (has_libpthread): Update.
13711 * linespec.c (iterate_over_all_matching_symtabs)
13712 (search_minsyms_for_name): Update.
13713 * jit.c (jit_find_objf_with_entry_addr): Update.
13714 * hppa-tdep.c (find_unwind_entry)
13715 (hppa_lookup_stub_minimal_symbol): Update.
13716 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13717 Update.
13718 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13719 (elf_gnu_ifunc_resolve_by_got): Update.
13720 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13721 * dwarf-index-write.c (save_gdb_index_command): Update.
13722 * cp-support.c (add_symbol_overload_list_qualified): Update.
13723 * breakpoint.c (create_overlay_event_breakpoint)
13724 (create_longjmp_master_breakpoint)
13725 (create_std_terminate_master_breakpoint)
13726 (create_exception_master_breakpoint): Update.
13727 * blockframe.c (find_pc_partial_function): Update.
13728 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13729 (ada_collect_symbol_completion_matches)
13730 (ada_add_global_exceptions): Update.
13731
776489e0
TT
137322019-01-17 Tom Tromey <tom@tromey.com>
13733
13734 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13735 declare VEC.
13736 (solib_target_parse_libraries): Change return type.
13737 (library_list_start_segment, library_list_start_section)
13738 (library_list_end_library, library_list_start_library); Update.
13739 (solib_target_free_library_list): Remove.
13740 (solib_target_parse_libraries): Remove cleanup. Change return
13741 type.
13742 (solib_target_current_sos): Update.
13743
6471e7d2
TT
137442019-01-17 Tom Tromey <tromey@bapiya>
13745
13746 * valprint.c: Replace "the the" with "the".
13747 * symtab.c: Replace "the the" with "the".
13748 * solib.c: Replace "the the" with "the".
13749 * solib-dsbt.c: Replace "the the" with "the".
13750 * linespec.c: Replace "the the" with "the".
13751 * dwarf2loc.h: Replace "the the" with "the".
13752 * amd64-windows-tdep.c: Replace "the the" with "the".
13753 * aarch64-tdep.c: Replace "the the" with "the".
13754
c24bdb02
KS
137552019-01-16 Keith Seitz <keiths@redhat.com>
13756
13757 PR gdb/23773
13758 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13759 <builder>: Rename to ..
13760 <m_builder>: ... this and make private.
13761 (dwarf2_cu::get_builder): New method. Change all users of
13762 `builder' to use this method.
13763 (dwarf2_start_symtab): Move to ...
13764 (dwarf2_cu::start_symtab): ... here. Update all callers
13765 (setup_type_unit_groups): Move to ...
13766 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13767 callers.
13768 (dwarf2_cu::reset_builder): New method.
13769 (process_full_compunit, process_full_type_unit): Use
13770 dwarf2_cu::reset_builder.
13771 (follow_die_offset): Record the ancestor CU if it is different
13772 from the followed DIE's CU.
13773 (follow_die_sig_1): Likewise.
13774
8d64371b
TT
137752019-01-15 Tom Tromey <tom@tromey.com>
13776
13777 * remote.c (class remote_state) <buf>: Now a char_vector.
13778 <buf_size>: Remove.
13779 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13780 parameter.
13781 (remote_target::getpkt_or_notif_sane_1)
13782 (remote_target::getpkt_sane)
13783 (remote_target::getpkt_or_notif_sane): Likewise.
13784 (class remote_target) <putpkt>: New overload.
13785 (remote_target::read_frame): Change type of "buf_p". Remove
13786 sizeof_p parameter.
13787 (packet_ok): New overload.
13788 (packet_check_result): New overload.
13789 Update all uses.
13790
bb277751
TT
137912019-01-14 Tom Tromey <tom@tromey.com>
13792
13793 * remote-notif.c (handle_notification, remote_notif_ack)
13794 (remote_notif_parse): Make "buf" const.
13795 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13796 const.
13797 (remote_notif_parse, remote_notif_ack, handle_notification):
13798 Likewise.
13799 * remote.c (remote_notif_stop_parse): Make "buf" const.
13800 (remote_target::remote_parse_stop_reply): Make "buf" const.
13801 (remote_notif_stop_ack): Make "buf" const.
13802
05be00a8
TT
138032019-01-14 Tom Tromey <tom@tromey.com>
13804
13805 * remote.c (remote_console_output): Make parameter const.
13806
491adeca
TT
138072019-01-14 Tom Tromey <tom@tromey.com>
13808
13809 * target-debug.h (target_debug_print_signals): Constify.
13810 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13811 * procfs.c (procfs_target::pass_signals): Update.
13812 * linux-nat.c (linux_nat_target::pass_signals): Update.
13813 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13814 * target-delegates.c: Rebuild.
13815 * remote.c (remote_target::program_signals): Update.
13816 (remote_target::pass_signals): Update.
13817 * target.c (target_pass_signals): Constify argument.
13818 (target_program_signals): Likewise.
13819 * target.h (struct target_ops) <pass_signals, program_signals>:
13820 Constify argument.
13821 (target_pass_signals, target_program_signals): Constify argument.
13822
bbd94648
TT
138232019-01-14 Tom Tromey <tom@tromey.com>
13824
13825 PR tui/28819:
13826 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13827
6f072a10
PFC
138282019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13829
13830 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13831 field.
13832 * rs6000-tdep.c: Include reggroups.h.
13833 (IS_V_ALIAS_PSEUDOREG): Define.
13834 (rs6000_register_name): Return names for the "vX" aliases.
13835 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13836 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13837 aliases. Call default_register_reggroup_p for all other
13838 pseudo-registers.
13839 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13840 New functions.
13841 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13842 Handle "vX" aliases.
13843 (v_alias_pseudo_register_collect): New function.
13844 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13845 (rs6000_gdbarch_init): Initialize "vX" aliases as
13846 pseudo-registers. Restore registration of
13847 rs6000_pseudo_register_reggroup_p with
13848 set_tdesc_pseudo_register_reggroup_p.
13849
1a782351
MF
138502019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13851
13852 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13853 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13854 set_gdbarch_num_pseudo_regs.
13855
d73cff18
PW
138562019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13857
13858 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13859 Remove arg prefixname, add do_set and do_show.
13860 Add member functions set_list and show_list.
13861 * cli/cli-style.c (class cli_style_option): Update accordingly.
13862 (style_set_list): Move to file scope.
13863 (style_show_list): Likewise.
13864 (set_style): Call help_list.
13865 (show_style): Call cmd_show_list.
13866 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13867 Update to use the new macro.
13868
60a90376
JB
138692019-10-12 Joel Brobecker <brobecker@adacore.com>
13870
13871 * ada-lang.c (_initialize_ada_language): Expand the help text
13872 for the "catch exception" command.
13873
9d7c67bf
PW
138742019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13875
13876 * symtab.c (matching_obj_sections): Initialize obj,
13877 declare it closer to its usage.
13878
7cf47dc4
TT
138792019-01-10 Tom Tromey <tom@tromey.com>
13880
13881 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13882 (basic_inf_threads_range): Remove.
13883 (inf_threads_range, inf_non_exited_threads_range)
13884 (safe_inf_threads_range): Use next_adapter.
13885
d3cb6808
KS
138862019-01-10 Keith Seitz <keiths@redhat.com>
13887
13888 PR gdb/23712
13889 PR symtab/23010
13890 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13891 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13892
63a20375
KS
138932019-01-10 Keith Seitz <keiths@redhat.com>
13894
13895 PR gdb/23712
13896 PR symtab/23010
13897 * dictionary.c (pending_to_vector): Remove.
13898 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13899 Remove _1 suffix, replacing functions of the same name. Update
13900 all callers.
13901 (dict_create_hashed, dict_create_hashed_expandable)
13902 (dict_create_linear, dict_create_linear_expandable, dict_free)
13903 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13904 Make functions static.
13905
b026f593
KS
139062019-01-10 Keith Seitz <keiths@redhat.com>
13907
13908 PR gdb/23712
13909 PR symtab/23010
13910 * dictionary.h (struct dictionary): Replace declaration with
13911 multidictionary.
13912 (dict_create_hashed, dict_create_hashed_expandable)
13913 (dict_create_linear, dict_create_linear_expandable)
13914 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13915 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13916 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13917 taking multidictionary argument.
13918 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13919 * block.h (struct block) <dict>: Change to multidictionary
13920 and rename `multidict'.
13921 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13922 symmisc.c: Update all dictionary references to multidictionary.
13923
c7748ee9
KS
139242019-01-10 Keith Seitz <keiths@redhat.com>
13925
13926 PR gdb/23712
13927 PR symtab/23010
13928 * dictionary.c: Include unordered_map.
13929 (pending_to_vector): New function.
13930 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13931 Rewrite the non-"_1" functions to take vector instead
13932 of linked list.
13933 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13934 "new" _1 versions of the same name.
13935 (multidictionary): Define.
13936 (std::hash<enum language): New definition.
13937 (collate_pending_symbols_by_language, mdict_create_hashed)
13938 (mdict_create_hashed_expandable, mdict_create_linear)
13939 (mdict_create_linear_expandable, mdict_free)
13940 (find_language_dictionary, create_new_language_dictionary)
13941 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13942 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13943 (mdict_size, mdict_empty): New functions.
13944 * dictionary.h (mdict_iterator): Define.
13945
67aa1f3c
PA
139462019-01-10 Pedro Alves <palves@redhat.com>
13947
13948 * breakpoint.c (read_uploaded_action)
13949 (create_tracepoint_from_upload): Adjust to use
13950 gdb::unique_xmalloc_ptr.
13951 * ctf.c (ctf_write_uploaded_tp):
13952 (SET_ARRAY_FIELD): Use emplace_back.
13953 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13954 * tracefile-tfile.c (tfile_write_uploaded_tp):
13955 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13956 gdb::unique_xmalloc_ptr.
13957 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13958 at_string, cond_string, cmd_strings>: Replace char pointers
13959 with gdb::unique_xmalloc_ptr.
13960
2f667667
PA
139612019-01-10 Pedro Alves <palves@redhat.com>
13962
13963 * solib-target.c (library_list_start_library): Don't xstrdup name.
13964
36cb7237
PA
139652019-01-10 Pedro Alves <palves@redhat.com>
13966
13967 * mdebugread.c (parse_partial_symbols): Use
13968 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13969
da584958
AB
139702019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13971
13972 * linux-fork.c (scoped_switch_fork_info)
13973 <~scoped_switch_fork_info>: Fix incorrect variable name.
13974
1ef8573c
AB
139752019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * linux-fork.c (scoped_switch_fork_info)
13978 <scoped_switch_fork_info>: Make explicit.
13979 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13980
8d7bcccb
TT
139812019-01-10 Tom Tromey <tom@tromey.com>
13982
13983 * objfiles.h (objfile::reset_psymtabs): Update.
13984 * objfiles.c (objfile::objfile): Update.
13985 * psymtab.h (psymtab_storage::obstack): Update.
13986 (psymtab_storage::m_obstack): Use gdb::optional.
13987 (class psymtab_storage): Update comment. Remove objfile
13988 parameter.
13989 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13990
b596a3c7
TT
139912019-01-10 Tom Tromey <tom@tromey.com>
13992
13993 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13994 <free_psymtabs>: Now private.
13995 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13996 (allocate_psymtab): Use new method.
13997
a9342b62
TT
139982019-01-10 Tom Tromey <tom@tromey.com>
13999
14000 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14001 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14002 * mdebugread.c (parse_partial_symbols): Use
14003 allocate_dependencies.
14004 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14005 allocate_dependencies.
14006 (process_psymtab_comp_unit_reader)
14007 (build_type_psymtab_dependencies): Likewise.
14008 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14009
5af70966
TT
140102019-01-10 Tom Tromey <tom@tromey.com>
14011
14012 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14013 PSYMBOL_SET_LANGUAGE.
14014 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14015
5923a04c
TT
140162019-01-10 Tom Tromey <tom@tromey.com>
14017
14018 * psymtab.h (psymtab_storage::obstack): New method.
14019 <m_obstack>: Rename from obstack; now private.
14020 * psymtab.c (psymtab_storage): Update.
14021 * dwarf2read.c (create_addrmap_from_index)
14022 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14023 Update.
14024
6d6a12bf
TT
140252019-01-10 Tom Tromey <tom@tromey.com>
14026
14027 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14028 * objfiles.h (objfile::reset_psymtabs): New method.
14029
d320c2b5
TT
140302019-01-10 Tom Tromey <tom@tromey.com>
14031
14032 * symmisc.c (print_symbol_bcache_statistics): Update.
14033 (print_objfile_statistics): Update.
14034 * symfile.c (reread_symbols): Update.
14035 * psymtab.h (class psymtab_storage): New.
14036 * psymtab.c (psymtab_storage): New constructor.
14037 (~psymtab_storage): New destructor.
14038 (require_partial_symbols): Update.
14039 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14040 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14041 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14042 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14043 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14044 (start_psymtab_common, end_psymtab_common)
14045 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14046 (allocate_psymtab): Update.
14047 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14048 Update.
14049 (dump_psymtab_addrmap, maintenance_print_psymbols)
14050 (maintenance_check_psymtabs): Update.
14051 (class objfile_psymtabs): Move to objfiles.h.
14052 * psympriv.h (discard_psymtab): Now inline.
14053 (psymtab_discarder::psymtab_discarder): Update.
14054 (psymtab_discarder::~psymtab_discarder): Update.
14055 (ALL_OBJFILE_PSYMTABS): Rewrite.
14056 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14057 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14058 Remove fields.
14059 <partial_symtabs>: New field.
14060 (class objfile_psymtabs): Move from psymtab.h. Update.
14061 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14062 psymbol_cache.
14063 (objfile::~objfile): Don't destroy psymbol_cache.
14064 * mdebugread.c (parse_partial_symbols): Update.
14065 * dwarf2read.c (create_addrmap_from_index)
14066 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14067 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14068 (add_partial_subprogram, dwarf2_ranges_read): Update.
14069 * dwarf-index-write.c (write_address_map)
14070 (write_one_signatured_type, recursively_write_psymbols)
14071 (class debug_names, class debug_names, write_psymtabs_to_index):
14072 Update.
14073
1d94a5a3
TT
140742019-01-10 Tom Tromey <tom@tromey.com>
14075
14076 * symtab.h (SYMBOL_SET_NAMES): Update.
14077 (symbol_set_names): Update.
14078 (MSYMBOL_SET_NAMES): Update.
14079 * symtab.c (symbol_set_names): Change argument to be an
14080 objfile_per_bfd_storage.
14081 * psymtab.c (add_psymbol_to_bcache): Update.
14082 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14083
0f14768a
TT
140842019-01-10 Tom Tromey <tom@tromey.com>
14085
14086 * symtab.c (create_demangled_names_hash): Change argument to be an
14087 objfile_per_bfd_storage.
14088 (symbol_set_names): Update.
14089
6eee24ce
TT
140902019-01-10 Tom Tromey <tom@tromey.com>
14091
14092 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14093 init_psymbol_list.
14094 * psymtab.c (init_psymbol_list): Do nothing if already called.
14095 * psympriv.h (init_psymbol_list): Add comment.
14096 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14097 init_psymbol_list.
14098 * dbxread.c (dbx_symfile_read): Unconditionally call
14099 init_psymbol_list.
14100
75aedd27
TT
141012019-01-10 Tom Tromey <tom@tromey.com>
14102
14103 * xcoffread.c (scan_xcoff_symtab): Update.
14104 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14105 "where".
14106 * mdebugread.c (parse_partial_symbols)
14107 (handle_psymbol_enumerators): Update.
14108 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14109 * dbxread.c (read_dbx_symtab): Update.
14110 * psympriv.h (psymbol_placement): New enum.
14111 (add_psymbol_to_list): Update.
14112
939652a5
TT
141132019-01-10 Tom Tromey <tom@tromey.com>
14114
14115 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14116 static_psymbols parameters.
14117 (scan_xcoff_symtab): Update.
14118 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14119 static_psymbols parameters.
14120 * psympriv.h (start_psymtab_common): Update.
14121 * mdebugread.c (parse_partial_symbols): Update.
14122 * dwarf2read.c (create_partial_symtab): Update.
14123 * dbxread.c (read_dbx_symtab): Update.
14124 (start_psymtab): Remove global_psymbols and static_psymbols
14125 parameters.
14126
baa62830
TT
141272019-01-10 Tom Tromey <tom@tromey.com>
14128
14129 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14130 * psymtab.c (allocate_psymtab): Add comment.
14131 * psympriv.h (allocate_psymtab): Add comment.
14132 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14133 initializations.
14134 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14135
0e8f53ba
TT
141362019-01-10 Tom Tromey <tom@tromey.com>
14137
14138 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14139 Don't declare.
14140 * mipsread.c: Include mdebugread.h.
14141 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14142 Declare.
14143 * elfread.c: Include mdebugread.h.
14144
b22a7c6a
TT
141452019-01-09 Tom Tromey <tom@tromey.com>
14146
14147 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14148 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14149 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14150 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14151 (psym_lookup_symbol, psym_find_last_source_symtab)
14152 (psym_forget_cached_source_info, psym_print_stats)
14153 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14154 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14155 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14156 (psym_find_compunit_symtab_by_address)
14157 (maintenance_print_psymbols, maintenance_info_psymtabs)
14158 (maintenance_check_psymtabs): Use ranged for.
14159 * psymtab.h (class objfile_psymtabs): New.
14160 (require_partial_symbols): Return objfile_psymtabs.
14161 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14162
3b9d3ac2
TT
141632019-01-09 Tom Tromey <tom@tromey.com>
14164
14165 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14166 (find_pc_mapped_section, list_overlays_command)
14167 (map_overlay_command, unmap_overlay_command)
14168 (simple_overlay_update): Use all_objfiles.
14169 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14170 * printcmd.c (info_symbol_command): Use all_objfiles.
14171 * objfiles.h (ALL_OBJSECTIONS): Remove.
14172 * maint.c (maintenance_translate_address): Use all_objfiles.
14173 * gcore.c (gcore_create_callback): Use all_objfiles.
14174 (objfile_find_memory_regions): Likewise.
14175
8b31193a
TT
141762019-01-09 Tom Tromey <tom@tromey.com>
14177
14178 * symtab.c (find_line_symtab, info_sources_command)
14179 (make_source_files_completion_list): Use objfile_compunits.
14180 * source.c (select_source_symtab): Use objfile_compunits.
14181 * objfiles.h (struct objfile): Update comment.
14182 (ALL_OBJFILES): Remove.
14183 (ALL_FILETABS): Remove.
14184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14185 objfile_compunits.
14186
d5da8b3c
TT
141872019-01-09 Tom Tromey <tom@tromey.com>
14188
14189 * symmisc.c (print_objfile_statistics, dump_objfile)
14190 (maintenance_print_symbols): Use compunit_filetabs.
14191 * source.c (forget_cached_source_info_for_objfile): Use
14192 compunit_filetabs.
14193 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14194 (ALL_FILETABS): Use compunit_filetabs.
14195 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14196 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14197
5accd1a0
TT
141982019-01-09 Tom Tromey <tom@tromey.com>
14199
14200 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14201 (compunit_filetabs): New.
14202 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14203 compunit_filetabs.
14204 (info_sources_command, make_source_files_completion_list): Remove
14205 declaration.
14206 * symmisc.c (print_objfile_statistics, dump_objfile)
14207 (maintenance_print_symbols): Remove declaration.
14208 (maintenance_info_symtabs): Use compunit_filetabs.
14209 (maintenance_info_line_tables): Likewise.
14210 * source.c (select_source_symtab): Change local variable name.
14211 (forget_cached_source_info_for_objfile): Remove declaration.
14212 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14213 * objfiles.c (objfile_relocate1): Remove declaration.
14214 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14215 declaration.
14216 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14217 * coffread.c (coff_symtab_read): Remove declaration.
14218 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14219 compunit_filetabs.
14220
d8aeb77f
TT
142212019-01-09 Tom Tromey <tom@tromey.com>
14222
14223 * symtab.c (lookup_objfile_from_block)
14224 (find_pc_sect_compunit_symtab, search_symbols)
14225 (default_collect_symbol_completion_matches_break_on): Use
14226 objfile_compunits.
14227 * objfiles.h (ALL_COMPUNITS): Remove.
14228 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14229 * cp-support.c (add_symbol_overload_list_qualified): Use
14230 objfile_compunits.
14231 * ada-lang.c (ada_collect_symbol_completion_matches)
14232 (ada_add_global_exceptions): Use objfile_compunits.
14233
592553c4
TT
142342019-01-09 Tom Tromey <tom@tromey.com>
14235
14236 * source.c (select_source_symtab)
14237 (forget_cached_source_info_for_objfile): Remove declaration.
14238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14239 declaration.
14240 * maint.c (count_symtabs_and_blocks): Remove declaration.
14241 * cp-support.c (add_symbol_overload_list_qualified): Remove
14242 declaration.
14243 * coffread.c (coff_symtab_read): Remove declaration.
14244 * symtab.c (lookup_symbol_in_objfile_symtabs)
14245 (basic_lookup_transparent_type_1): Use objfile_compunits.
14246 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14247 (info_sources_command, search_symbols)
14248 (default_collect_symbol_completion_matches_break_on)
14249 (make_source_files_completion_list): Remove declaration.
14250 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14251 (ada_collect_symbol_completion_matches)
14252 (ada_add_global_exceptions): Remove declaration.
14253 * linespec.c (iterate_over_all_matching_symtabs): Use
14254 objfile_compunits.
14255 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14256 (class objfile_compunits): New.
14257 (ALL_COMPUNITS): Use objfile_compunits.
14258 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14259 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14260 objfile_compunits.
14261 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14262
5325b9bf
TT
142632019-01-09 Tom Tromey <tom@tromey.com>
14264
14265 * symtab.c (search_symbols)
14266 (default_collect_symbol_completion_matches_break_on): Use
14267 objfile_msymbols.
14268 * ada-lang.c (ada_lookup_simple_minsym)
14269 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14270 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14271 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14272 objfile_msymbols.
14273 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14274 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14275 * objc-lang.c (find_methods): Use objfile_msymbols.
14276 (info_selectors_command, info_classes_command): Likewise.
14277 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14278 * objfiles.h (class objfile_msymbols): New.
14279 (ALL_OBJFILE_MSYMBOLS): Remove.
14280 (ALL_MSYMBOLS): Remove.
14281
cac85af2
TT
142822019-01-09 Tom Tromey <tom@tromey.com>
14283
14284 * common/next-iterator.h (next_adapter): Add Iterator template
14285 parameter.
14286 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14287 (class all_objfiles_safe): New.
14288 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14289 * objfiles.c (put_objfile_before): Update comment.
14290 (add_separate_debug_objfile): Likewise.
14291 (free_all_objfiles): Use all_objfiles_safe.
14292 (objfile_purge_solibs): Likewise.
14293
aed57c53
TT
142942019-01-09 Tom Tromey <tom@tromey.com>
14295
14296 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14297 (expand_symtab_containing_pc, lookup_static_symbol)
14298 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14299 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14300 all_objfiles.
14301 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14302 * breakpoint.c (create_overlay_event_breakpoint)
14303 (create_longjmp_master_breakpoint)
14304 (create_std_terminate_master_breakpoint)
14305 (create_exception_master_breakpoint): Use all_objfiles.
14306 * linux-thread-db.c (try_thread_db_load_from_pdir)
14307 (has_libpthread): Use all_objfiles.
14308 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14309 * linespec.c (iterate_over_all_matching_symtabs)
14310 (search_minsyms_for_name): Use all_objfiles.
14311 * maint.c (maintenance_info_sections): Use all_objfiles.
14312 * main.c (captured_main_1): Use all_objfiles.
14313 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14314 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14315 * guile/scm-pretty-print.c
14316 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14317 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14318 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14319 (maintenance_print_msymbols): Use all_objfiles.
14320 * source.c (select_source_symtab): Use all_objfiles.
14321 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14322 * symfile.c (remove_symbol_file_command)
14323 (expand_symtabs_matching, map_symbol_filenames): Use
14324 all_objfiles.
14325 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14326 all_objfiles.
14327 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14328 * objc-lang.c (find_methods): Use all_objfiles.
14329 * objfiles.c (have_partial_symbols, have_full_symbols)
14330 (have_minimal_symbols, qsort_cmp)
14331 (default_iterate_over_objfiles_in_search_order): Use
14332 all_objfiles.
14333 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14334 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14335 (maintenance_check_psymtabs): Use all_objfiles.
14336 (ALL_PSYMTABS): Remove.
14337 * compile/compile-object-run.c (do_module_cleanup): Use
14338 all_objfiles.
14339 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14340 * cp-support.c (add_symbol_overload_list_qualified): Use
14341 all_objfiles.
14342 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14343 Use all_objfiles.
14344 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14345 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14346 all_objfiles.
14347 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14348 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14349 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14350 Uses all_objfiles.
14351 * solib.c (solib_read_symbols): Use all_objfiles
14352
99d89cde
TT
143532019-01-09 Tom Tromey <tom@tromey.com>
14354
14355 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14356 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14357 all_objfiles.
14358 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14359 * symmisc.c (print_symbol_bcache_statistics)
14360 (print_objfile_statistics, maintenance_print_objfiles)
14361 (maintenance_info_symtabs, maintenance_check_symtabs)
14362 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14363 all_objfiles.
14364 * source.c (forget_cached_source_info): Use all_objfiles.
14365 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14366 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14367 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14368 * objfiles.c (update_section_map): Use all_objfiles.
14369 (shared_objfile_contains_address_p): Likewise.
14370 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14371 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14372
21708325
TT
143732019-01-09 Tom Tromey <tom@tromey.com>
14374
14375 * common/next-iterator.h: New file.
14376 * objfiles.h (class all_objfiles): New.
14377 (struct objfile_iterator): New.
14378
669e09f6
PW
143792019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14380
14381 * NEWS: Move the description of the changed "frame", "select-frame",
14382 and "info frame" commands to the Changed commands section.
14383
041be526
SM
143842019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14385
14386 * gdbtypes.c (check_stub_method_group): Remove handling of old
14387 mangling schemes.
14388 * linespec.c (find_methods): Likewise.
14389 * stabsread.c (read_member_functions): Likewise.
14390 * valops.c (search_struct_method): Likewise.
14391 (value_struct_elt_for_reference): Likewise.
14392 * NEWS: Mention this change.
14393
0e2a2133
AB
143942019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14395
14396 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14397 print_source_lines.
14398 * source.c (print_source_lines_base): Update line number check.
14399 (print_source_lines): New function.
14400 (source_lines_range::source_lines_range): New function.
14401 * source.h (class source_lines_range): New class.
14402 (print_source_lines): New declaration.
14403
1055a3b4
PW
144042019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14405
14406 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14407
cfeadda5
TT
144082019-01-08 Tom Tromey <tom@tromey.com>
14409 Simon Marchi <simon.marchi@ericsson.com>
14410
14411 PR gdb/24060
14412 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14413 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14414 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14415 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14416 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14417 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14418
583068ca
AB
144192019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14420
14421 * source.c (select_source_symtab): Move header comment to
14422 declaration in source.h.
14423 (forget_cached_source_info_for_objfile): Likewise.
14424 (forget_cached_source_info): Likewise.
14425 (identify_source_line): Likewise.
14426 * source.h (identify_source_line): Move declaration from symtab.h
14427 and add comment from source.c
14428 (print_source_lines): Likewise.
14429 (forget_cached_source_info_for_objfile): Likewise.
14430 (forget_cached_source_info): Likewise.
14431 (select_source_symtab): Likewise.
14432 (enum print_source_lines_flag): Move definition from symtab.h.
14433 * symtab.h (identify_source_line): Move declaration to source.h.
14434 (print_source_lines): Likewise.
14435 (forget_cached_source_info_for_objfile): Likewise.
14436 (forget_cached_source_info): Likewise.
14437 (select_source_symtab): Likewise.
14438 (enum print_source_lines_flag): Move definition to source.h.
14439 * tui/tui-hooks.c: Add 'source.h' include.
14440
ec98a4ad
AB
144412019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14442
14443 * source.c (print_source_lines_base): Handle requests to print
14444 reverse line number sequences, and guard against empty lines
14445 string.
14446
62ea19c1
AB
144472019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14448
14449 * source.c (print_source_lines_base): Fix skip of '\r' if next
14450 character is '\n'.
14451
9d30e1fd
TT
144522019-01-06 Tom Tromey <tom@tromey.com>
14453
14454 * c-exp.y (struct c_parse_state) <macro_original_text,
14455 expansion_obstack>: New member.
14456 (macro_original_text, expansion_obstack): Remove globals.
14457 (scan_macro_expansion, scanning_macro_expansion)
14458 (finished_macro_expansion): Update.
14459 (scan_macro_cleanup): Remove.
14460 (yylex, c_parse): Update.
14461
c65bac38
TT
144622019-01-06 Tom Tromey <tom@tromey.com>
14463
14464 * c-exp.y (struct c_parse_state) <strings>: New member.
14465 (operator_stoken): Update.
14466
02e12e38
TT
144672019-01-06 Tom Tromey <tom@tromey.com>
14468
14469 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14470 (union type_stack_elt) <typelist_val>: Now a pointer to
14471 std::vector.
14472 (type_stack_cleanup): Don't declare.
14473 (push_typelist): Update.
14474 * parse.c (pop_typelist): Return a std::vector.
14475 (push_typelist): Take a std::vector.
14476 (follow_types): Update. Do not free args.
14477 (type_stack_cleanup): Remove.
14478 * c-exp.y (struct c_parse_state): New.
14479 (cpstate): New global.
14480 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14481 (nonempty_typelist): Update.
14482 (func_mod): Create a new vector.
14483 (c_parse): Create a c_parse_state.
14484 (check_parameter_typelist): Do not delete params.
14485 (function_method): Update. Do not delete type_list.
14486
f097f5ad
TT
144872019-01-06 Tom Tromey <tom@tromey.com>
14488
14489 PR gdb/28155:
14490 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14491 check_typedef.
14492 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14493 (print_return_value): Likewise.
14494
d2adf9f1
TT
144952019-01-05 Tom Tromey <tom@tromey.com>
14496
14497 * contrib/cleanup_check.py: Remove.
14498 * contrib/gcc-with-excheck: Remove.
14499 * contrib/exsummary.py: Remove.
14500 * contrib/excheck.py: Remove.
14501
2eab46b1
JB
145022019-01-05 Joel Brobecker <brobecker@adacore.com>
14503
14504 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14505 NULL. Initialize tpprev to NULL instead of assigning it
14506 to NULL on the next statement.
14507 * windows-nat.c (windows_delete_thread): Remove check for
14508 main_thread_id before printing thread exit notifications.
14509 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14510 Remove thread ID check against main_thread_id.
14511 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14512 windows_delete_thread.
14513 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14514
48c5e7e2
TT
145152019-01-04 Tom Tromey <tom@tromey.com>
14516
14517 * compile/compile.c (_initialize_compile): Use upper case for
14518 metasyntactic variables.
14519 * symmisc.c (_initialize_symmisc): Use upper case for
14520 metasyntactic variables.
14521 * psymtab.c (_initialize_psymtab): Use upper case for
14522 metasyntactic variables.
14523 * demangle.c (demangle_command): Use upper case for metasyntactic
14524 variables.
14525 (_initialize_demangler): Likewise.
14526 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14527 variables.
14528
986041cd
TT
145292019-01-03 Tom Tromey <tom@tromey.com>
14530
14531 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14532
7c711119
TT
145332019-01-03 Tom Tromey <tom@tromey.com>
14534
14535 * python/py-symtab.c (salpy_str): Update.
14536 (struct salpy_sal_object) <symtab>: Now a PyObject.
14537 (salpy_dealloc): Update.
14538 (del_objfile_sal): Use gdbpy_ref.
14539
1b20edf0
TT
145402019-01-03 Tom Tromey <tom@tromey.com>
14541
14542 * python/py-type.c (convert_field): Use new_reference. Return
14543 gdbpy_ref.
14544 (make_fielditem): Return gdbpy_ref.
14545 (typy_fields): Update.
14546 (typy_getitem): Update.
14547 (field_name): Return gdbpy_ref. Use new_reference.
14548 (typy_iterator_iternext): Update.
14549
ea41325b
TT
145502019-01-03 Tom Tromey <tom@tromey.com>
14551
14552 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14553
2a3c71d6
TT
145542019-01-03 Tom Tromey <tom@tromey.com>
14555
14556 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14557 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14558 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14559 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14560 (pspy_set_type_printers): Likewise.
14561 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14562 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14563 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14564 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14565 (objfpy_set_type_printers): Likewise.
14566
5c329e6a
TT
145672019-01-03 Tom Tromey <tom@tromey.com>
14568
14569 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14570 (gdbpy_print_stack): Use gdbpy_err_fetch.
14571 * python/python-internal.h (class gdbpy_err_fetch): New class.
14572 (class gdbpy_enter) <m_error_type, m_error_value,
14573 m_error_traceback>: Remove.
14574 <m_error>: New member.
14575 (gdbpy_exception_to_string): Don't declare.
14576 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14577 * python/py-value.c (convert_value_from_python): Use
14578 gdbpy_err_fetch.
14579 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14580 gdbpy_exception_to_string.
14581 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14582 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14583 gdbpy_err_fetch.
14584
169bb27b
AB
145852019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14586
14587 * linux-nat.c (delete_lwp_cleanup): Delete.
14588 (struct lwp_deleter): New struct.
14589 (lwp_info_up): New typedef.
14590 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14591 lwp_info_up.
14592
a07c8880
AB
145932019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14594
14595 * linux-fork.c (class scoped_switch_fork_info): New class.
14596 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14597
26089c49
AB
145982019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14599
14600 * valops.c (find_overload_match): Remove use of null_cleanup, and
14601 calls to do_cleanups.
14602
06d3e5b0
AB
146032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14604
14605 * compile/compile-cplus-types.c
14606 (compile_cplus_instance::decl_name): Handle changes to
14607 cp_func_name.
14608 * cp-support.c (cp_func_name): Update header comment, update
14609 return type.
14610 * cp-support.h (cp_func_name): Update return type in declaration.
14611 * valops.c (find_overload_match): Move temp_func local to top
14612 level of function and change its type. Use temp_func to hold and
14613 delete temporary string obtained from cp_func_name.
14614
66644cd3
AB
146152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14616
14617 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14618 gdb::char_vector, remove cleanup, and update uses of `msg`.
14619
592d8c0a
JW
146202019-01-03 Jim Wilson <jimw@sifive.com>
14621
14622 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14623
c55d06ec
TT
146242019-01-02 Tom Tromey <tom@tromey.com>
14625
14626 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14627 (tdesc_parse_xml): Remove cleanups.
14628 * target-descriptions.h (make_cleanup_free_target_description):
14629 Don't declare.
14630 (target_desc_deleter): New struct.
14631 (target_desc_up): New typedef.
14632 * target-descriptions.c (target_desc_deleter::operator()): Rename
14633 from free_target_description.
14634 (make_cleanup_free_target_description): Remove.
14635
3a6ae42d
TT
146362019-01-02 Tom Tromey <tom@tromey.com>
14637
14638 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14639 constructor, destructor.
14640 (linespec_parser): Remove typedef.
14641 (~linespec_parser): Rename from linespec_parser_delete.
14642 (linespec_lex_to_end, linespec_complete_label)
14643 (linespec_complete): Update.
14644 (decode_line_full): Remove cleanups.
14645 (decode_line_1): Update.
14646
61fd3e73
TT
146472019-01-02 Tom Tromey <tom@tromey.com>
14648
14649 * python/python-internal.h (inferior_to_inferior_object): Change
14650 return type.
14651 * python/py-exitedevent.c (create_exited_event_object): Update.
14652 * python/py-inferior.c (inferior_to_inferior_object): Return
14653 gdbpy_ref.
14654 (python_new_inferior, python_inferior_deleted)
14655 (thread_to_thread_object, delete_thread_object)
14656 (build_inferior_list, gdbpy_selected_inferior): Update.
14657 * python/py-infthread.c (create_thread_object): Update. Also fail
14658 if inferior_to_inferior_object fails.
14659
d20172fc
SM
146602019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14661
14662 * inferior.h (class inferior) <displaced_step_state>: New field.
14663 * infrun.h (struct displaced_step_state): Move here from
14664 infrun.c. Initialize fields, add constructor.
14665 <inf>: Remove field.
14666 <reset>: New method.
14667 * infrun.c (struct displaced_step_inferior_state): Move to
14668 infrun.h.
14669 (displaced_step_inferior_states): Remove.
14670 (get_displaced_stepping_state): Adust.
14671 (displaced_step_in_progress_any_inferior): Adjust.
14672 (displaced_step_in_progress_thread): Adjust.
14673 (displaced_step_in_progress): Adjust.
14674 (add_displaced_stepping_state): Remove.
14675 (get_displaced_step_closure_by_addr): Adjust.
14676 (remove_displaced_stepping_state): Remove.
14677 (infrun_inferior_exit): Call displaced_step_state.reset.
14678 (use_displaced_stepping): Don't check for NULL.
14679 (displaced_step_prepare_throw): Call
14680 get_displaced_stepping_state.
14681 (displaced_step_fixup): Don't check for NULL.
14682 (prepare_for_detach): Don't check for NULL.
14683
e3319240
PW
146842019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14685
14686 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14687 in case of call that did not complete.
14688
5d36dfb9
AU
146892019-01-02 Andrey Utkin <autkin@undo.io>
14690
14691 * symfile.c (find_separate_debug_file): Fix search of debug files for
14692 remote debuggee.
14693
8833fbf0
TT
146942019-01-02 Tom Tromey <tom@tromey.com>
14695
14696 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14697 indentation.
14698 * python/py-frame.c (frapy_older): Remove cast.
14699 (frapy_newer): Likewise.
14700 * python/py-breakpoint.c (local_setattro): Remove cast.
14701 * python/py-arch.c (archpy_name): Remove local variable.
14702 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14703
4ada3dfd
JB
147042019-01-02 Joel Brobecker <brobecker@adacore.com>
14705
14706 * unittests/basic_string_view/element_access/char/empty.cc:
14707 Fix year range in copyright header.
14708
113b7b81
AB
147092019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14710
14711 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14712 Delete.
14713 <operator==>: Update with for removed field.
14714 <hash>: Likewise.
14715 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14716 <isa_features>: ...this.
14717 <abi_features>: New field.
14718 (riscv_isa_flen): Update comment.
14719 (riscv_abi_xlen): New declaration.
14720 (riscv_abi_flen): New declaration.
14721 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14722 isa_features.
14723 (riscv_abi_xlen): New function.
14724 (riscv_isa_flen): Update to get answer from isa_features.
14725 (riscv_abi_flen): New function.
14726 (riscv_has_fp_abi): Update to get answer from abi_features.
14727 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14728 xlen and flen.
14729 (riscv_call_info) <xlen, flen>: Update comment.
14730 (riscv_call_arg_struct): Remove invalid assertions
14731 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14732 is removed.
14733 (riscv_gdbarch_init): Gather isa features and abi features
14734 separately, ensure both match on the gdbarch when reusing an old
14735 gdbarch. Relax an error check to allow 32-bit abi float to run on
14736 a target with 64-bit float hardware.
14737
b18ca514
PW
147382019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14739
14740 * source.c (search_command_helper): Stop reverse search
14741 when line 1 has been searched.
14742
ec70d8db
PW
147432019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14744
14745 * record-full.c (record_full_base_target::close): Rewrite
14746 record_full_core_buf_list free logic.
14747
5b38f9c1
PW
147482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14749
14750 * break-catch-syscall.c (print_one_catch_syscall): xfree
14751 the last text.
14752
66d91b39
JB
147532019-01-01 Joel Brobecker <brobecker@adacore.com>
14754
14755 * top.c (print_gdb_version): Update Copyright year in version
14756 message.
14757
42a4f53d
JB
147582019-01-01 Joel Brobecker <brobecker@adacore.com>
14759
14760 Update copyright year range in all GDB files.
14761
7e955d83 147622019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14763
5bbd631d 14764 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14765
5bbd631d 14766For older changes see ChangeLog-2018.
c906108c
SS
14767\f
14768Local Variables:
14769mode: change-log
14770left-margin: 8
14771fill-column: 74
14772version-control: never
57da7796 14773coding: utf-8
c906108c 14774End:
5bbd631d 14775
This page took 3.544454 seconds and 4 git commands to generate.