Remove la_get_string member
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91ae903f
TT
12019-11-05 Tom Tromey <tom@tromey.com>
2
3 * rust-lang.c (rust_language_defn): Update.
4 * python/py-value.c (valpy_string): Call c_get_string.
5 * p-lang.c (pascal_language_defn): Update.
6 * opencl-lang.c (opencl_language_defn): Update.
7 * objc-lang.c (objc_language_defn): Update.
8 * m2-lang.c (m2_language_defn): Update.
9 * language.c (unknown_language_defn, auto_language_defn): Update.
10 (default_get_string): Remove.
11 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
12 * go-lang.c (go_language_defn): Update.
13 * f-lang.c (f_language_defn): Update.
14 * d-lang.c (d_language_defn): Update.
15 * c-lang.c (c_language_defn, cplus_language_defn)
16 (asm_language_defn, minimal_language_defn): Update.
17 * ada-lang.c (ada_language_defn): Update.
18 * language.h (struct language_defn) <la_get_string>: Remove.
19 (LA_GET_STRING): Remove.
20 (default_get_string): Don't declare.
21
1df2f9ef
TT
222019-11-05 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-source.h (struct tui_source_window): Inline
25 constructor. Remove destructor.
26 <style_changed, m_observable>: Move to superclass.
27 * tui/tui-winsource.h (tui_copy_source_line): Declare.
28 (struct tui_source_window_base): Move private members to end.
29 <style_changed, m_observable>: Move from tui_source_window.
30 * tui/tui-winsource.c (tui_copy_source_line): Move from
31 tui-source.c. Rename from copy_source_line. Add special handling
32 for negative line number.
33 (tui_source_window_base::style_changed): Move from
34 tui_source_window.
35 (tui_source_window_base): Register observer.
36 (~tui_source_window_base): New.
37 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
38 rename.
39 (tui_source_window::set_contents): Use tui_copy_source_line.
40 (tui_source_window::tui_source_window): Move to tui-source.h.
41 (tui_source_window::~tui_source_window): Remove.
42 (tui_source_window::style_changed): Move to superclass.
43 * tui/tui-disasm.c (tui_disassemble): Create string file with
44 styling, when possible. Add "addr_size" parameter.
45 (tui_disasm_window::set_contents): Use tui_copy_source_line.
46 Don't compute maximum size.
47 (len_without_escapes): New function
48
5d051055
TT
492019-11-05 Tom Tromey <tom@tromey.com>
50
51 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
52 std::string.
53 * tui/tui-winsource.c (tui_show_source_line): Update.
54 * tui/tui-source.c (tui_source_window::set_contents): Update.
55 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
56
ade7beea
CB
572019-11-05 Christian Biesinger <cbiesinger@google.com>
58
59 * symtab.h (gdb_static_assert): Put && operator at the beginning
60 of the line instead of the end.
61
3573abe1
CB
622019-11-04 Christian Biesinger <cbiesinger@google.com>
63
64 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
65 and sizeof (symbol).
66 * symtab.h: Add a static_assert for sizeof (partial_symbol).
67
dae8b3eb
RO
682019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
69
70 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
71 * configure.host: Mark *-*-solaris2.10* obsolete.
72 * configure.tgt: Mark Solaris < 11 obsolete.
73 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
74 Update target triplet.
75
5df96a4e
TT
762019-11-01 Tom Tromey <tromey@adacore.com>
77
78 * utils.c (print_sys_errmsg): Simplify.
79
b7481649
TT
802019-11-01 Tom Tromey <tromey@adacore.com>
81
82 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
83
e48f6033
CB
842019-11-01 Christian Biesinger <cbiesinger@google.com>
85
86 * configure: Regenerate.
87 * configure.ac: Remove check for strerror_r.
88 * gdbsupport/common.m4: Check for strerror_r.
89
bd5766ec
LM
902019-11-01 Luis Machado <luis.machado@linaro.org>
91
92 PR gdb/25124
93
94 * arm-tdep.c (arm_per_objfile): Rename to ...
95 (arm_per_bfd): ... this.
96 (arm_objfile_data_key): Rename to ...
97 (arm_bfd_data_key): ... this.
98 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
99 data.
100 (arm_record_special_symbol): Likewise.
101
e1709896
AB
1022019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
105 end.
106 * c-typeprint.c (c_print_typedef): Likewise.
107 * f-typeprint.c (f_print_typedef): Likewise.
108 * m2-typeprint.c (m2_print_typedef): Likewise.
109 * p-typeprint.c (pascal_print_typedef): Likewise.
110 * rust-lang.c (rust_print_typedef): Likewise.
111 * symtab.c (print_symbol_info): Print a newline after calling
112 typedef_print.
113
165f8965
AB
1142019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * symtab.c (info_module_cmdlist): New variable.
117 (info_module_command): New function.
118 (search_module_symbols): New function.
119 (info_module_subcommand): New function.
120 (struct info_modules_var_func_options): New struct.
121 (info_modules_var_func_options_defs): New variable.
122 (make_info_modules_var_func_options_def_group): New function.
123 (info_module_functions_command): New function.
124 (info_module_variables_command): New function.
125 (info_module_var_func_command_completer): New function.
126 (_initialize_symtab): Register new 'info module functions' and
127 'info module variables' commands.
128 * symtab.h (typedef symbol_search_in_module): New typedef.
129 (search_module_symbols): Declare new function.
130 * NEWS: Mention new commands.
131
59c35742
AB
1322019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
135 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
136 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
137 MODULES_DOMAIN.
138 (scan_partial_symbols): Only create partial module symbols for non
139 declarations.
140 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
141 and MODULES_DOMAIN.
142 * symtab.c (search_domain_name): Likewise.
143 (search_symbols): Likewise.
144 (print_symbol_info): Likewise.
145 (symtab_symbol_info): Likewise.
146 (info_modules_command): New function.
147 (_initialize_symtab): Register 'info modules' command.
148 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
149 * NEWS: Mention new 'info modules' command.
150
aed61d02
PW
1512019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
152
153 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
154 and $_gdb_maint_setting_str.
155
9ad9b77d
PW
1562019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
157
158 * cli/cli-cmds.c (setting_cmd, value_from_setting)
159 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
160 (str_value_from_setting, gdb_setting_str_internal_fn)
161 (gdb_maint_setting_str_internal_fn): New functions.
162 (_initialize_cli_cmds): Define the new convenience functions.
163 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
164 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
165
8d6efaa2
CB
1662019-10-31 Christian Biesinger <cbiesinger@google.com>
167
168 * agent.c (set_can_use_agent): When the setting is turned on,
169 look up agent symbols if we don't have them yet.
170 (agent_new_objfile): Don't look up agent symbols when the agent
171 setting is off.
172
33cb1647
CB
1732019-10-31 Christian Biesinger <cbiesinger@google.com>
174
175 * config.in: Regenerate.
176
b231e86a
CB
1772019-10-31 Christian Biesinger <cbiesinger@google.com>
178
179 * configure: Regenerate.
180 * configure.ac: Check for strerror_r.
181 * gdbsupport/common-utils.h (safe_strerror): Change return value
182 to const char * and document that this function is now threadsafe.
183 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
184 thread_local and call strerror_r, if available.
185 * utils.c (perror_string): Update.
186 (print_sys_errmsg): Update.
187
a2726d4f
LM
1882019-10-31 Luis Machado <luis.machado@linaro.org>
189
190 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
191 objfile_key.
192 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
193 objfile to fetch per-bfd data.
194 (arm_find_exidx_entry): Likewise.
195
75cafaa6
CB
1962019-10-31 Christian Biesinger <cbiesinger@google.com>
197
198 * gdbsupport/agent.c (debug_agent): Change type to bool.
199 (use_agent): Likewise.
200 (all_agent_symbols_look_up): Likewise.
201 (agent_loaded_p): Change return value to bool.
202 (agent_look_up_symbols): Update.
203 (agent_capability_check): Change return value to bool.
204 * gdbsupport/agent.h (agent_loaded_p): Likewise.
205 (debug_agent): Change type to bool.
206 (use_agent): Likewise.
207 (agent_capability_check): Change return value to bool.
208
808590ec
CB
2092019-10-30 Christian Biesinger <cbiesinger@google.com>
210
211 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
212 (build_minimal_symbol_hash_tables): Code to clear the table moved
213 to clear_minimal_symbol_hash_tables.
214 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
215 when needed.
216
f18ad8a1
SM
2172019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * infcmd.c: Remove includes.
220 * infrun.c: Remove includes.
221
de93309a
SM
2222019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
225 (grow_vect): Remove declaration.
226 (ada_type_of_array): Remove declaration.
227 (ada_update_initial_language): Remove declaration.
228 (ada_fold_name): Remove declaration.
229 (ada_fill_in_ada_prototype): Remove declaration.
230 (user_select_syms): Remove declaration.
231 (get_selections): Remove declaration.
232 (ada_tag_type): Remove declaration.
233 (ada_value_tag): Remove declaration.
234 (ada_is_others_clause): Remove declaration.
235 (ada_in_variant): Remove declaration.
236 (ada_value_struct_elt): Remove declaration.
237 (ada_attribute_name): Remove declaration.
238 (ada_system_address_type): Remove declaration.
239 * ada-lang.c (ada_watch_location_expression): Make static.
240 (GROW_VECT): Move here from ada-lang.h.
241 (grow_vect): Make static.
242 (ada_update_initial_language): Make static.
243 (ada_fold_name): Make static.
244 (ada_type_of_array): Make static.
245 (encoded_ordered_before): Move up.
246 (sort_choices): Move up.
247 (print_signatures): Move up.
248 (ada_print_symbol_signature): Move up.
249 (get_selections): Move up and make static.
250 (user_select_syms): Move up and make static.
251 (ada_value_struct_elt): Move up and make static.
252 (ada_tag_type): Make static.
253 (ada_value_tag): Make static.
254 (ada_is_others_clause): Make static.
255 (ada_in_variant): Make static.
256 (ada_attribute_name): Make static.
257
cdc46a9f
SM
2582019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * ada-lang.c: Remove includes.
261 * ada-typeprint.c: Remove includes.
262 * ada-valprint.c: Remove includes.
263
90421c56
SM
2642019-10-29 Simon Marchi <simon.marchi@efficios.com>
265
266 * addrmap.c: Add static assertions of type size, moved from
267 _initialize_addrmap.
268 (_initialize_addrmap): Remove.
269
31edb802
CB
2702019-10-29 Christian Biesinger <cbiesinger@google.com>
271
272 * coffread.c (record_minimal_symbol): Update.
273 (process_coff_symbol): Update.
274 * dbxread.c (read_dbx_symtab): Update.
275 * dwarf2read.c (add_partial_symbol): Update.
276 (fixup_go_packaging): Update.
277 (load_partial_dies): Update.
278 (new_symbol): Update.
279 * elfread.c (record_minimal_symbol): Change signature to use
280 gdb::string_view instead of name+len.
281 (elf_symtab_read): Update.
282 (elf_rel_plt_read): Update.
283 * mdebugread.c (parse_partial_symbols): Update.
284 (handle_psymbol_enumerators): Update.
285 (new_symbol): Update.
286 * minsyms.c (minimal_symbol_reader::record_full): Change signature
287 to use gdb::string_view instead of name+len.
288 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
289 * psympriv.h (add_psymbol_to_list): Likewise.
290 * psymtab.c (add_psymbol_to_bcache): Likewise.
291 (add_psymbol_to_list): Likewise.
292 * stabsread.c (define_symbol): Update.
293 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
294 * symtab.h (SYMBOL_SET_NAMES): Likewise.
295 (symbol_set_names): Likewise.
296 * xcoffread.c (scan_xcoff_symtab): Update.
297
0c921b21
CB
2982019-10-29 Christian Biesinger <cbiesinger@google.com>
299
300 * symtab.h (symbol_set_names): Document that copy_name must be
301 set to true for non-nullterminated strings.
302 * symtab.c (symbol_set_names): Only make a nullterminated copy of
303 linkage_name if the entry was not found and we need to demangle.
304
35e65c49
CB
3052019-10-29 Christian Biesinger <cbiesinger@google.com>
306
307 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
308 * dwarf2-frame.c (bsearch_fde_cmp): Update.
309 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
310 * gdbsupport/gdb_binary_search.h: New file.
311
ed2a2229
CB
3122019-10-29 Christian Biesinger <cbiesinger@google.com>
313
314 * NEWS: Mention new --with-system-gdbinit-dir option.
315 * config.in: Regenerate.
316 * configure: Regenerate.
317 * configure.ac: Add new option --with-system-gdbinit-dir.
318 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
319 for a ".gdb" suffix.
320 * main.c (get_init_files): Change system_gdbinit argument to
321 a vector and return the files in SYSTEM_GDBINIT_DIR in
322 addition to SYSTEM_GDBINIT.
323 (captured_main_1): Update.
324 (print_gdb_help): Update.
325 * top.c (print_gdb_configuration): Also print the value of
326 SYSTEM_GDBINIT_DIR.
327
87f34879
CB
3282019-10-28 Christian Biesinger <cbiesinger@google.com>
329
330 * gdbsupport/common-utils.h (startswith): Add an overloaded version
331 that takes gdb::string_view arguments.
332
30baf67b
TV
3332019-10-26 Tom de Vries <tdevries@suse.de>
334
335 * aarch64-linux-tdep.c: Fix typos in comments.
336 * aarch64-tdep.c: Same.
337 * ada-lang.c: Same.
338 * amd64-nat.c: Same.
339 * arc-tdep.c: Same.
340 * arch/aarch64-insn.c: Same.
341 * block.c: Same.
342 * breakpoint.h: Same.
343 * btrace.h: Same.
344 * c-varobj.c: Same.
345 * cli/cli-decode.c: Same.
346 * cli/cli-script.c: Same.
347 * cli/cli-utils.h: Same.
348 * coff-pe-read.c: Same.
349 * coffread.c: Same.
350 * compile/compile-cplus-symbols.c: Same.
351 * compile/compile-object-run.c: Same.
352 * completer.c: Same.
353 * corelow.c: Same.
354 * cp-support.c: Same.
355 * demangle.c: Same.
356 * dwarf-index-write.c: Same.
357 * dwarf2-frame.c: Same.
358 * dwarf2-frame.h: Same.
359 * eval.c: Same.
360 * frame-base.h: Same.
361 * frame.h: Same.
362 * gdbcmd.h: Same.
363 * gdbtypes.h: Same.
364 * gnu-nat.c: Same.
365 * guile/scm-objfile.c: Same.
366 * i386-tdep.c: Same.
367 * i386-tdep.h: Same.
368 * infcall.c: Same.
369 * infcall.h: Same.
370 * linux-nat.c: Same.
371 * m68k-tdep.c: Same.
372 * macroexp.c: Same.
373 * memattr.c: Same.
374 * mi/mi-cmd-disas.c: Same.
375 * mi/mi-getopt.h: Same.
376 * mi/mi-main.c: Same.
377 * minsyms.c: Same.
378 * nat/aarch64-sve-linux-sigcontext.h: Same.
379 * objfiles.h: Same.
380 * ppc-linux-nat.c: Same.
381 * ppc-linux-tdep.c: Same.
382 * ppc-tdep.h: Same.
383 * progspace.h: Same.
384 * prologue-value.h: Same.
385 * python/py-evtregistry.c: Same.
386 * python/py-instruction.h: Same.
387 * record-btrace.c: Same.
388 * record-full.c: Same.
389 * remote.c: Same.
390 * rs6000-tdep.c: Same.
391 * ser-tcp.c: Same.
392 * sol-thread.c: Same.
393 * sparc-sol2-tdep.c: Same.
394 * sparc64-tdep.c: Same.
395 * stabsread.c: Same.
396 * symfile.c: Same.
397 * symtab.h: Same.
398 * target.c: Same.
399 * tracepoint.c: Same.
400 * tui/tui-data.h: Same.
401 * tui/tui-io.c: Same.
402 * tui/tui-win.c: Same.
403 * tui/tui.c: Same.
404 * unittests/rsp-low-selftests.c: Same.
405 * user-regs.h: Same.
406 * utils.c: Same.
407 * utils.h: Same.
408 * valarith.c: Same.
409 * valops.c: Same.
410 * valprint.c: Same.
411 * valprint.h: Same.
412 * value.c: Same.
413 * value.h: Same.
414 * varobj.c: Same.
415 * x86-nat.h: Same.
416 * xtensa-tdep.c: Same.
417
1834d45f
AT
4182019-10-25 Ali Tamur <tamur@google.com>
419
420 * charset.c (find_charset_names): Reflect API change.
421
5396ae17
CB
4222019-10-25 Christian Biesinger <cbiesinger@google.com>
423
424 * symtab.c (struct demangled_name_entry): Change demangled name
425 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
426 part of the struct anymore.
427 (symbol_set_names): No longer obstack allocate + copy the demangled
428 name, just store the allocated name from bfd.
429
93878f47
TT
4302019-10-25 Tom Tromey <tromey@adacore.com>
431
432 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
433 (bsearch_cie_cmp, add_cie): Remove.
434 (find_cie): Reimplement.
435 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
436 (dwarf2_build_frame_info): Update.
437
7b71fc97
L
4382019-10-24 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR gdb/25126
441 * symfile.c (reread_symbols): Call forget_cached_source_info to
442 clear the stale source cache.
443
cbb5a2ea
CB
4442019-10-24 Christian Biesinger <cbiesinger@google.com>
445
446 * configure: Regenerate.
447 * configure.ac: Remove code that sets python_has_threads.
448
71737c43
CB
4492019-10-24 Christian Biesinger <cbiesinger@google.com>
450
451 * config.in: Regenerate.
452 * configure: Regenerate.
453 * configure.ac: Remove the code that uses sed to get the python
454 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
455
33d569b7
AB
4562019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * python/py-progspace.c (pspy_block_for_pc): Return None for all
459 error paths.
460
f16f7b7c
TT
4612019-10-23 Tom Tromey <tom@tromey.com>
462
463 * arc-tdep.c: Remove ".." from include.
464 * frv-tdep.c: Remove ".." from include.
465 * lm32-tdep.c: Remove ".." from include.
466 * microblaze-tdep.c: Remove ".." from include.
467 * or1k-tdep.h: Remove ".." from include.
468 * s12z-tdep.c: Remove ".." from include.
469 * Makefile.in (OPCODES_CFLAGS): Add comment.
470 (TOP_CFLAGS): New variable.
471 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
472
6999161a
TT
4732019-10-23 Tom Tromey <tom@tromey.com>
474
475 * Makefile.in (READLINE_DIR): Update.
476
12e7c35e
TBA
4772019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
478
479 * infcall.c (call_function_by_hand_dummy): Fix the function
480 comment. And extract out a code section into...
481 (reserve_stack_space): ...this new function.
482
37055cad
TBA
4832019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
484
485 * infcall.c (value_arg_coerce): Remove an unused parameter.
486 (call_function_by_hand_dummy): Update the call to
487 'value_arg_coerce'.
488
39bcc47c
TBA
4892019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
490
491 * infcall.c (call_function_by_hand_dummy): Refactor.
492
bd888c0f
TBA
4932019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
494
495 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
496
c12d372d
TT
4972019-10-23 Tom Tromey <tom@tromey.com>
498
499 * configure: Rebuild.
500 * configure.ac: Don't check for sigprocmask.
501 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
502
4d0b984b
TT
5032019-10-23 Tom Tromey <tom@tromey.com>
504
505 * configure: Rebuild.
506 * acinclude.m4: Use m4_include, not sinclude.
507
7e785608
TV
5082019-10-23 Tom de Vries <tdevries@suse.de>
509
510 PR breakpoints/24687
511 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
512
403772ef
CB
5132019-10-22 Christian Biesinger <cbiesinger@google.com>
514
515 * symtab.c (struct demangled_name_entry) <language>: Change from
516 bitfield to regular variable.
517
3a494279
CB
5182019-10-22 Christian Biesinger <cbiesinger@google.com>
519
520 * symtab.c (struct demangled_name_entry): Add a constructor.
521 (free_demangled_name_entry): New function to call the destructor
522 for demangled_name_entry.
523 (create_demangled_names_hash): Pass free_demangled_name_entry to
524 htab_create_alloc.
525 (symbol_set_names): Call placement new for demangled_name_entry.
526 * utils.c: No longer include xxhash.h here, now that fast_hash
527 is inlined in the header.
528 * utils.h: Instead, include it here.
529
ccb1ba62
CB
5302019-10-22 Christian Biesinger <cbiesinger@google.com>
531
532 * Makefile.in: Link with libxxhash.
533 * config.in: Regenerate.
534 * configure: Regenerate.
535 * configure.ac: Search for libxxhash.
536 * utils.c (fast_hash): Use xxhash if present.
537
1a6ff1a9
CB
5382019-10-22 Christian Biesinger <cbiesinger@google.com>
539
540 * utils.h (fast_hash): New function.
541 * symtab.c (hash_demangled_name_entry): Call new function
542 fast_hash.
543
7bb43059
CB
5442019-10-22 Christian Biesinger <cbiesinger@google.com>
545
546 * symtab.c (struct demangled_name_entry): Change type of mangled
547 to gdb::string_view. Also adds a constructor that takes the
548 mangled name.
549 (hash_demangled_name_entry): Update.
550 (eq_demangled_name_entry): Update.
551 (free_demangled_name_entry): New function to call the destructor
552 now that this is not a POD anymore.
553 (create_demangled_names_hash): Pass free_demangled_name_entry to
554 htab_create_alloc.
555 (symbol_set_names): Update.
556
7ba99d21
AT
5572019-10-21 Ali Tamur <tamu@google.com>
558
559 * dwarf2read.c (dir_index): Change type.
560 (file_name_index): Likewise.
561 (line_header::include_dir_at): Change comment and implementation on
562 whether it is DWARF 5.
563 (line_header::is_valid_file_index): New function.
564 (line_header::file_name_at): Change comment and implementation on
565 whether it is DWARF 5.
566 (line_header::file_names): Change to private field renamed as
567 m_file_names and introduce a new accessor method.
568 (line_header::file_names_size): New method.
569 (line_header::include_dirs): Change to private field and rename as
570 m_include_dirs.
571 (dw2_get_file_names_reader): Define local var at a smaller scope and
572 reflect API change.
573 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
574 (process_structure_scope): Likewise.
575 (line_header::add_include_dir): Change message and reflect renaming.
576 (line_header::add_file_name): Likewise.
577 (read_formatted_entries): Handle DW_FORM_data16.
578 (dwarf_decode_line_header): Fix line header length calculation.
579 (psymtab_include_file_name): Change comment and API.
580 (lnp_state_machine::m_file): Update comment and reflect type change.
581 (lnp_state_machine::record_line): Reflect type change.
582 (dwarf_decode_lines): Reflect API change.
583 (file_file_name): Likewise.
584 (file_full_name): Likewise.
585
45f47c3a
AB
5862019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
589
e5f3c0e3
TT
5902019-10-21 Tom Tromey <tom@tromey.com>
591
592 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
593
a0a461e5
TT
5942019-10-21 Tom Tromey <tom@tromey.com>
595
596 * configure.ac (nm.h): Conditionally create nm.h link. Subst
597 NM_H. Use AC_CONFIG_LINKS.
598 * configure: Rebuild.
599 * Makefile.in (NM_H): New variable.
600 (generated_files): Add NM_H. Remove gcore.
601 (nm.h, stamp-nmh): New targets.
602
54d83b8d
TT
6032019-10-20 Tom Tromey <tom@tromey.com>
604
605 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
606 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
607 obsolete comment.
608 (put_objfile_before): Now static.
609
23771117
SM
6102019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * gdbsupport/common-utils.h (startswith): Change return type to
613 bool.
614
39ef2f62
CB
6152019-10-19 Christian Biesinger <cbiesinger@google.com>
616
617 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
618 * breakpoint.c (bp_locations_compare): Rename to...
619 (bp_location_is_less_than): ...this, and change to std::sort semantics.
620 (update_global_location_list): Use std::sort instead of qsort.
621 * buildsym.c (compare_line_numbers): Rename to...
622 (lte_is_less_than): ...this, and change to std::sort semantics.
623 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
624 instead of qsort.
625 * disasm.c (compare_lines): Rename to...
626 (line_is_less_than): ...this, and change to std::sort semantics.
627 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
628 of qsort.
629 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
630 (fde_is_less_than): ...this, and change to std::sort semantics.
631 (dwarf2_build_frame_info): Call std::sort instead of qsort.
632 * mdebugread.c (compare_blocks):
633 (block_is_less_than): ...this, and change to std::sort semantics.
634 (sort_blocks): Call std::sort instead of qsort.
635 * objfiles.c (qsort_cmp): Rename to...
636 (sort_cmp): ...this, and change to std::sort semantics.
637 (update_section_map): Call std::sort instead of qsort.
638 * remote.c (compare_pnums): Remove.
639 (map_regcache_remote_table): Call std::sort instead of qsort.
640 * utils.c (compare_positive_ints): Remove.
641 * utils.h (compare_positive_ints): Remove.
642 * xcoffread.c (compare_lte): Remove.
643 (arrange_linetable): Call std::sort instead of qsort.
644
f71433ee
SDJ
6452019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
646
647 * symfile.c (init_entry_point_info): Fix typo.
648 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
649
85102364
TV
6502019-10-18 Tom de Vries <tdevries@suse.de>
651
652 * aarch64-tdep.c: Fix typos in comments.
653 * ada-lang.c: Same.
654 * ada-tasks.c: Same.
655 * alpha-tdep.c: Same.
656 * alpha-tdep.h: Same.
657 * amd64-nat.c: Same.
658 * amd64-windows-tdep.c: Same.
659 * arc-tdep.c: Same.
660 * arc-tdep.h: Same.
661 * arch-utils.c: Same.
662 * arm-nbsd-tdep.c: Same.
663 * arm-tdep.c: Same.
664 * ax-gdb.c: Same.
665 * blockframe.c: Same.
666 * btrace.c: Same.
667 * c-varobj.c: Same.
668 * coff-pe-read.c: Same.
669 * coffread.c: Same.
670 * cris-tdep.c: Same.
671 * darwin-nat.c: Same.
672 * dbxread.c: Same.
673 * dcache.c: Same.
674 * disasm.c: Same.
675 * dtrace-probe.c: Same.
676 * dwarf-index-write.c: Same.
677 * dwarf2-frame-tailcall.c: Same.
678 * dwarf2-frame.c: Same.
679 * dwarf2read.c: Same.
680 * eval.c: Same.
681 * exceptions.c: Same.
682 * fbsd-tdep.c: Same.
683 * findvar.c: Same.
684 * frame.c: Same.
685 * frv-tdep.c: Same.
686 * gnu-v3-abi.c: Same.
687 * go32-nat.c: Same.
688 * h8300-tdep.c: Same.
689 * hppa-tdep.c: Same.
690 * i386-linux-tdep.c: Same.
691 * i386-tdep.c: Same.
692 * ia64-libunwind-tdep.c: Same.
693 * ia64-tdep.c: Same.
694 * infcmd.c: Same.
695 * infrun.c: Same.
696 * linespec.c: Same.
697 * linux-nat.c: Same.
698 * linux-thread-db.c: Same.
699 * machoread.c: Same.
700 * mdebugread.c: Same.
701 * mep-tdep.c: Same.
702 * mn10300-tdep.c: Same.
703 * namespace.c: Same.
704 * objfiles.c: Same.
705 * opencl-lang.c: Same.
706 * or1k-tdep.c: Same.
707 * osabi.c: Same.
708 * ppc-linux-nat.c: Same.
709 * ppc-linux-tdep.c: Same.
710 * ppc-sysv-tdep.c: Same.
711 * printcmd.c: Same.
712 * procfs.c: Same.
713 * record-btrace.c: Same.
714 * record-full.c: Same.
715 * remote-fileio.c: Same.
716 * remote.c: Same.
717 * rs6000-tdep.c: Same.
718 * s12z-tdep.c: Same.
719 * score-tdep.c: Same.
720 * ser-base.c: Same.
721 * ser-go32.c: Same.
722 * skip.c: Same.
723 * sol-thread.c: Same.
724 * solib-svr4.c: Same.
725 * solib.c: Same.
726 * source.c: Same.
727 * sparc-nat.c: Same.
728 * sparc-sol2-tdep.c: Same.
729 * sparc-tdep.c: Same.
730 * sparc64-tdep.c: Same.
731 * stabsread.c: Same.
732 * stack.c: Same.
733 * symfile.c: Same.
734 * symtab.c: Same.
735 * target-descriptions.c: Same.
736 * target-float.c: Same.
737 * thread.c: Same.
738 * utils.c: Same.
739 * valops.c: Same.
740 * valprint.c: Same.
741 * value.c: Same.
742 * varobj.c: Same.
743 * windows-nat.c: Same.
744 * xcoffread.c: Same.
745 * xstormy16-tdep.c: Same.
746 * xtensa-tdep.c: Same.
747
c5adaa19
TT
7482019-10-17 Tom Tromey <tromey@adacore.com>
749
750 * configure: Rebuild.
751 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
752 in AC_CONFIG_FILES invocation.
753 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
754 new-style config.status invocation.
755
405feb71
TV
7562019-10-17 Tom de Vries <tdevries@suse.de>
757
758 * arm-nbsd-nat.c: Fix typos in comments.
759 * arm-tdep.c: Same.
760 * darwin-nat-info.c: Same.
761 * dwarf2read.c: Same.
762 * elfread.c: Same.
763 * event-top.c: Same.
764 * findvar.c: Same.
765 * gdbtypes.c: Same.
766 * hppa-tdep.c: Same.
767 * i386-tdep.c: Same.
768 * jit.c: Same.
769 * main.c: Same.
770 * mdebugread.c: Same.
771 * moxie-tdep.c: Same.
772 * nto-procfs.c: Same.
773 * osabi.c: Same.
774 * ppc-linux-tdep.c: Same.
775 * remote.c: Same.
776 * riscv-tdep.c: Same.
777 * s390-tdep.c: Same.
778 * sh-tdep.c: Same.
779 * sparc-linux-tdep.c: Same.
780 * sparc-nat.c: Same.
781 * stack.c: Same.
782 * target-descriptions.c: Same.
783 * top.c: Same.
784 * varobj.c: Same.
785
befcd486
TT
7862019-10-16 Tom Tromey <tom@tromey.com>
787
788 * objfiles.h (struct objfile) <original_name>: Now const.
789
17bfe554
CB
7902019-10-16 Christian Biesinger <cbiesinger@google.com>
791
792 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
793 pass on to sigsetjmp's second argument.
794 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
795
950b7495
KS
7962019-10-16 Keith Seitz <keiths@redhat.com>
797
798 PR gdb/23567
799 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
800 sections whose size is greater than the file size.
801
ff371ec9
JW
8022019-10-16 Jim Wilson <jimw@sifive.com>
803
804 * riscv-tdep.c (riscv_gcc_target_options): New.
805 (riscv_gnu_triplet_regexp): New.
806 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
807 set_gdbarch_gnu_triplet_regexp.
808
fec4e896
CB
8092019-10-16 Christian Biesinger <cbiesinger@google.com>
810
811 * Makefile.in: Add xml-builtin.h.
812 * features/feature_to_c.sh: Add an include for xml-builtin.h
813 to ensure that the compiler checks that the types match.
814 * xml-builtin.h: New file.
815 * xml-support.c (fetch_xml_builtin): Add missing const.
816 * xml-support.h: Remove declaration of xml_builtins.
817
d10eccaa
TV
8182019-10-16 Tom de Vries <tdevries@suse.de>
819
820 PR tdep/25096
821 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
822 (amd64_classify_aggregate): ... here.
823 (amd64_classify_aggregate_field): Handled fiels of nested structs
824 recursively.
825
745ff14e
TV
8262019-10-16 Tom de Vries <tdevries@suse.de>
827
828 PR tdep/24104
829 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
830 that handles 'theclass'.
831
791b7405
AB
8322019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * linespec.c (decode_digits_ordinary): Update comment.
835 * make-target-delegates: No longer need to handle VEC case.
836 * memrange.c (normalize_mem_ranges): Update comment.
837 * namespace.c (add_using_directive): Update comment.
838 * objc-lang.c (uniquify_strings): Update comment.
839 * ppc-linux-nat.c (struct thread_points): Update comment.
840 * probe.h (find_probes_in_objfile): Update comment.
841 * target.h (enum flash_preserve_mode): Update comment.
842 * varobj.c (varobj_restrict_range): Update comment.
843 * varobj.h (varobj_list_children): Update comment.
844
0dc32745
AB
8452019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * Makefile.in: Remove references to vec.h and vec.c.
848 * aarch64-tdep.c: No longer include vec.h.
849 * ada-lang.c: Likewise.
850 * ada-lang.h: Likewise.
851 * arm-tdep.c: Likewise.
852 * ax.h: Likewise.
853 * breakpoint.h: Likewise.
854 * charset.c: Likewise.
855 * cp-support.h: Likewise.
856 * dtrace-probe.c: Likewise.
857 * dwarf2read.c: Likewise.
858 * extension.h: Likewise.
859 * gdb_bfd.c: Likewise.
860 * gdbsupport/gdb_vecs.h: Likewise.
861 * gdbsupport/vec.c: Remove.
862 * gdbsupport/vec.h: Remove.
863 * gdbthread.h: Likewise.
864 * guile/scm-type.c: Likewise.
865 * inline-frame.c: Likewise.
866 * machoread.c: Likewise.
867 * memattr.c: Likewise.
868 * memrange.h: Likewise.
869 * namespace.h: Likewise.
870 * nat/linux-btrace.h: Likewise.
871 * osdata.c: Likewise.
872 * parser-defs.h: Likewise.
873 * progspace.h: Likewise.
874 * python/py-type.c: Likewise.
875 * record-btrace.c: Likewise.
876 * rust-exp.y: Likewise.
877 * solib-target.c: Likewise.
878 * stap-probe.c: Likewise.
879 * target-descriptions.c: Likewise.
880 * target-memory.c: Likewise.
881 * target.h: Likewise.
882 * varobj.c: Likewise.
883 * varobj.h: Likewise.
884 * xml-support.h: Likewise.
885
ae640021
AB
8862019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
889 Update for new std::vector based implementation.
890 (process_psymtab_comp_unit_reader): Likewise.
891 (scan_partial_symbols): Likewise.
892 (recursively_compute_inclusions): Likewise.
893 (compute_compunit_symtab_includes): Likewise.
894 (process_imported_unit_die): Likewise.
895 (queue_and_load_dwo_tu): Likewise.
896 (follow_die_sig_1): Likewise.
897 * gdb/dwarf2read.h: Remove DEF_VEC_P.
898 (typedef dwarf2_per_cu_ptr): Remove.
899 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
900 function.
901 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
902 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
903 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
904 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
905 std::vector.
906
55dfc88f
TT
9072019-10-15 Tom Tromey <tromey@adacore.com>
908
909 * windows-nat.c (windows_nat_target::resume): Use %x when logging
910 TID.
911
96b49c5e
TT
9122019-10-15 Tom Tromey <tromey@adacore.com>
913
914 * windows-nat.c (windows_nat_target::fetch_registers)
915 (windows_nat_target::store_registers): Rename "pid" to "tid".
916
953cff56
TT
9172019-10-15 Tom Tromey <tromey@adacore.com>
918
919 * gdbarch.h, gdbarch.c: Rebuild.
920 * gdbarch.sh (gcc_target_options): Change return type to
921 std::string.
922 * compile/compile.c (get_args): Update.
923 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
924 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
925 std::string.
926 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
927 std::string.
928 * arch-utils.c (default_gcc_target_options): Return std::string.
929 * arch-utils.h (default_gcc_target_options): Return std::string.
930 * s390-tdep.c (s390_gcc_target_options): Return std::string.
931
81e6b8eb
CB
9322019-10-15 Christian Biesinger <cbiesinger@google.com>
933
934 * breakpoint.c (breakpoint_chain): Make static.
935 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
936 of accessing breakpoint_chain.
937
95da600f
CB
9382019-10-15 Christian Biesinger <cbiesinger@google.com>
939
940 * breakpoint.c (iterate_over_breakpoints): Change function pointer
941 to a gdb::function_view and return value to bool.
942 * breakpoint.h (iterate_over_breakpoints): Likewise.
943 * dummy-frame.c (pop_dummy_frame_bpt): Update.
944 (pop_dummy_frame): Update.
945 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
946 (gdbscm_breakpoints): Update.
947 * python/py-breakpoint.c (build_bp_list): Update.
948 (gdbpy_breakpoints): Update.
949 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
950 Update.
951 (bpfinishpy_handle_stop): Update.
952 (bpfinishpy_handle_exit): Update.
953 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
954 (svr4_update_solib_event_breakpoints): Update.
955
ba18312d
AA
9562019-10-15 Andreas Arnez <arnez@linux.ibm.com>
957
958 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
959 when unwrapping single-field structs.
960
6acc1a0b
SM
9612019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * dwarf2read.c: Remove includes.
964
284782de
SM
9652019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * ui-out.c (ui_out::call_do_message): Silence
968 -Wformat-nonliteral warning.
969
073bbbb0
SM
9702019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * breakpoint.c: Remove some includes: continuations.h, skip.h,
973 mi/mi-main.h, readline/readline.h, readline/history.h. Add
974 include: readline/tilde.h.
975
7b9a15e1
CB
9762019-10-12 Christian Biesinger <cbiesinger@google.com>
977
978 * remote.c (remote_target::get_trace_status): Remove declaration of
979 trace_regblock_size.
980
cc8dee1f
CB
9812019-10-12 Christian Biesinger <cbiesinger@google.com>
982
983 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
984 (show_user): Remove declaration of cmdlist.
985 * cli/cli-cmds.h (max_user_call_depth): Declare.
986 * cli/cli-script.c (execute_user_command): Remove declaration
987 of max_user_call_depth.
988
a83d4ef6
JW
9892019-10-11 Jim Wilson <jimw@sifive.com>
990
5f93c5a6
JW
991 * gdbsupport/print-utils.h (pulongest): Fix comment.
992 (plongest): Likewise.
993 (phex): Add missing comment, mention leading zeros.
994 (phex_nz): Add mention of no leading zeros to comment.
995
a83d4ef6
JW
996 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
997 plongest instead of unsigned long long cast.
998
26344e0c
CB
9992019-10-10 Christian Biesinger <cbiesinger@google.com>
1000
1001 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1002 for external_editor_command and gdbtk_test.
1003
c2c440a9
CB
10042019-10-10 Christian Biesinger <cbiesinger@google.com>
1005
1006 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1007 * varobj.c (varobjdebug): Move comment to...
1008 * varobj.h (varobjdebug): ...here, and declare.
1009
a31bff9d
TT
10102019-10-09 Tom Tromey <tom@tromey.com>
1011
1012 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1013 erase_data_content.
1014
7523da63
TT
10152019-10-09 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1018 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1019 * tui/tui-command.c (tui_cmd_window::resize)
1020 (tui_refresh_cmd_win): Update.
1021 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1022 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1023 * tui/tui-data.c (~tui_gen_win_info): Remove.
1024 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1025 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1026 (tui_redisplay_readline, tui_mld_flush)
1027 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1028 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1029 (tui_data_window::erase_data_content)
1030 (tui_data_item_window::rerender)
1031 (tui_data_item_window::refresh_window): Update.
1032 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1033 (box_win, tui_gen_win_info::make_window)
1034 (tui_gen_win_info::make_visible): Update.
1035 (tui_delete_win): Remove.
1036 * tui/tui-winsource.c
1037 (tui_source_window_base::do_erase_source_content): Update.
1038 (tui_show_source_line, tui_source_window_base::update_tab_width)
1039 (tui_source_window_base::update_exec_info): Update.
1040 * tui/tui-data.h (struct curses_deleter): New.
1041 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1042 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1043
a7798e7f
TT
10442019-10-09 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1047
5c45899e
TT
10482019-10-09 Tom Tromey <tom@tromey.com>
1049
1050 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1051 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1052
6d7fd9aa
TT
10532019-10-09 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1056 window height directly.
1057 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1058 declare.
1059 * tui/tui-layout.c (tui_default_win_height): Remove.
1060 (tui_default_win_viewport_height): Remove.
1061
d2dd1084
TT
10622019-10-09 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui.h: Remove comments.
1065
cff32449
TV
10662019-10-09 Tom de Vries <tdevries@suse.de>
1067
1068 * python/lib/gdb/printer/bound_registers.py: Use
1069 '^builtin_type_bound128' as regexp argument for
1070 add_builtin_pretty_printer.
1071
6a25e8a2
CB
10722019-10-09 Christian Biesinger <cbiesinger@google.com>
1073
1074 * guile/guile.c (guile_extension_script_ops): Remove forward
1075 declaration and mark as static.
1076 (guile_script_ops): Likewise.
1077 (extension_language_guile): Move further down in the file so
1078 it can reference the definitions for guile_{extension_,}script_ops.
1079
6d9d6da4
AA
10802019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1081
1082 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1083 except SORTL, DFLTCC, and KDSA.
1084
3abea05d
TT
10852019-10-08 Tom Tromey <tromey@adacore.com>
1086
1087 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1088 (struct safe_symbol_file_add_args): Remove.
1089
dde996e2
TT
10902019-10-08 Tom Tromey <tromey@adacore.com>
1091
1092 * windows-nat.c: Don't include buildsym-legacy.h.
1093
cd6fdaa1
TT
10942019-10-08 Tom Tromey <tromey@adacore.com>
1095
1096 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1097
79bb1944
CB
10982019-10-08 Christian Biesinger <cbiesinger@google.com>
1099
1100 * gdbtypes.c (overload_debug): Move comment to header.
1101 * gdbtypes.h (overload_debug): Declare.
1102 * valops.c: Remove declaration of overload_debug, instead
1103 include gdbtypes.h.
1104
34916edc
CB
11052019-10-08 Christian Biesinger <cbiesinger@google.com>
1106
1107 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1108 through _().
1109 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1110 move comment...
1111 * language.h (lang_frame_mismatch_warn): ... here. Also add
1112 declaration.
1113 * top.c (lang_frame_mismatch_warn): Remove declaration.
1114 (check_frame_language_change): Pass lang_frame_mismatch_warn
1115 through _().
1116
bad5c026
CB
11172019-10-07 Christian Biesinger <cbiesinger@google.com>
1118
1119 * c-lang.h (vtbl_ptr_name): Declare.
1120 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1121 it from the header.
1122 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1123
51f1fdc3
CB
11242019-10-07 Christian Biesinger <cbiesinger@google.com>
1125
1126 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1127 gdb_static_assert.
1128
30d1f018
WP
11292019-10-07 Weimin Pan <weimin.pan@oracle.com>
1130
606813d5
WP
1131 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1132 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1133 * ctfread.c: New file.
1134 * ctfread.h: New file.
1135 * elfread.c: Include ctfread.h.
1136 (struct elfinfo text_p): New member ctfsect.
1137 (elf_locate_sections): Mark CTF section.
1138 (elf_symfile_read): Call elfctf_build_psymtabs.
1139 * Makefile.in (LIBCTF): Add.
1140 (CLIBS): Use it.
1141 (CDEPS): Likewise.
1142 (DIST): Add ctfread.c.
606813d5
WP
1143
11442019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * ctfread.c (struct nextfield): Renamed to ...
1147 (struct ctf_nextfield): ... this.
1148 (struct field_info): Renamed to ...
1149 (strut ctf_field_info): ... this.
1150 (attach_fields_to_type): Update for renamed structures.
1151 (ctf_add_member_cb): Likewise.
1152 (ctf_add_enum_member_cb): Likewise.
1153 (process_struct_members): Likewise.
1154 (process_enum_type): Likewise.
30d1f018 1155
518fe38c
WP
11562019-10-07 Weimin Pan <weimin.pan@oracle.com>
1157
1158 * tracectf.h: Rename, was ctf.h.
1159 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1160 * tracefile.c: Likewise.
1161 * tracepoint.c: Remove unused include ctf.h.
1162 * mi/mi-main.c: Likewise.
1163 * Makefile.in Replace ctf.c with tracectf.c.
1164
225f296a
JB
11652019-10-06 Joel Brobecker <brobecker@adacore.com>
1166
1167 * version.in: Change version number to "9.0.50.DATE-git".
1168
77c2dba3
TT
11692019-10-03 Tom Tromey <tom@tromey.com>
1170
1171 PR rust/24976:
1172 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1173
179aed7f
AB
11742019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1177 cp_search_name_hash.
1178 * NEWS: Add entry about nested function support.
1179
0a4b0913
AB
11802019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1181 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1184 for nested static variables when searchin VAR_DOMAIN.
1185 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1186 global scope, update comment.
1187 (add_partial_subprogram): Call add_partial_subprogram recursively
1188 for nested subroutines when processinng Fortran.
1189 (load_partial_dies): Process the child entities of a subprogram
1190 when processing Fortran.
1191 (partial_die_parent_scope): Handle building scope
1192 for Fortran nested functions.
1193 (process_die): Record that nested functions have a scope.
1194 (new_symbol): Always record Fortran subprograms on the global
1195 symbol list.
1196 (determine_prefix): How to build the prefix for Fortran
1197 subprograms.
1198
d8c06f22
AB
11992019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1202 have just sent the thread a SIGSTOP and are waiting for it to
1203 arrive.
1204
a8b3b8e9
AB
12052019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * btrace.c (btrace_add_pc): Remove whitespace before the template
1208 parameter in 'std::vector <...>'.
1209 (parse_xml_btrace_block): Likewise.
1210 (btrace_maint_decode_pt): Likewise.
1211 (btrace_maint_update_packets): Likewise.
1212 (btrace_maint_print_packets): Likewise.
1213 * btrace.h (struct btrace_maint_info): Likewise.
1214 * dwarf2read.c (struct type_unit_group): Likewise.
1215 (build_type_psymtabs_reader): Likewise.
1216 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1217 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1218 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1219
4d825eab
TV
12202019-10-03 Tom de Vries <tdevries@suse.de>
1221
1222 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1223 the first line of the help text for set/show style metadata.
1224
80fd2826
TT
12252019-10-02 Tom Tromey <tromey@adacore.com>
1226
1227 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1228 * gdbsupport/common-inferior.c: New file.
1229 * infcmd.c (startup_with_shell): Don't define.
1230 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1231 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1232 * inferior.h (startup_with_shell): Don't declare.
1233
70054538
CB
12342019-10-02 Christian Biesinger <cbiesinger@google.com>
1235
1236 * gdbsupport/gdb_assert.h: Include errors.h.
1237 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1238
37f6a7f4
TT
12392019-10-02 Tom Tromey <tromey@adacore.com>
1240
1241 * NEWS: Add $_ada_exception entry.
1242 * ada-lang.c (struct ada_catchpoint): Add constructor.
1243 <m_kind>: New member.
1244 (allocate_location_exception, re_set_exception): Remove
1245 "ex" parameter.
1246 (should_stop_exception): Compute $_ada_exception.
1247 (check_status_exception, print_it_exception)
1248 (print_one_exception, print_mention_exception): Remove
1249 "ex" parameter.
1250 (allocate_location_catch_exception, re_set_catch_exception)
1251 (check_status_exception, print_it_catch_exception)
1252 (print_one_catch_exception, print_mention_catch_exception)
1253 (print_recreate_catch_exception)
1254 (allocate_location_catch_exception_unhandled)
1255 (re_set_catch_exception_unhandled)
1256 (check_status_exception, print_it_catch_exception_unhandled)
1257 (print_one_catch_exception_unhandled)
1258 (print_mention_catch_exception_unhandled)
1259 (print_recreate_catch_exception_unhandled)
1260 (allocate_location_catch_assert, re_set_catch_assert)
1261 (check_status_assert, print_it_catch_assert)
1262 (print_one_catch_assert, print_mention_catch_assert)
1263 (print_recreate_catch_assert)
1264 (allocate_location_catch_handlers, re_set_catch_handlers)
1265 (check_status_handlers, print_it_catch_handlers)
1266 (print_one_catch_handlers, print_mention_catch_handlers)
1267 (print_recreate_catch_handlers): Remove.
1268 (create_ada_exception_catchpoint): Update.
1269 (initialize_ada_catchpoint_ops): Update.
1270
fccf9de1
TT
12712019-10-02 Tom Tromey <tromey@adacore.com>
1272
1273 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1274 (create_excep_cond_exprs): Simplify exception string computation.
1275 (ada_exception_catchpoint_cond_string): Likewise.
1276
4b610737
TT
12772019-10-02 Tom Tromey <tromey@adacore.com>
1278
1279 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1280 * ada-lang.c (lesseq_defined_than): Handle
1281 LOC_STATIC.
1282 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1283 parameter.
1284 (dwarf2_has_info): Likewise.
1285 (new_symbol): Set maybe_copied on symbol when
1286 appropriate.
1287 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1288 parameter.
1289 <can_copy>: New member.
1290 * elfread.c (record_minimal_symbol): Set maybe_copied
1291 on symbol when appropriate.
1292 (elf_symfile_read): Update call to dwarf2_has_info.
1293 * minsyms.c (lookup_minimal_symbol_linkage): New
1294 function.
1295 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1296 * symtab.c (get_symbol_address, get_msymbol_address):
1297 New functions.
1298 * symtab.h (get_symbol_address, get_msymbol_address):
1299 Declare.
1300 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1301 maybe_copied.
1302 (struct symbol, struct minimal_symbol) <maybe_copied>:
1303 New member.
1304
1dd58850
TT
13052019-10-02 Tom Tromey <tromey@adacore.com>
1306
1307 * source.c (struct current_source_location): New.
1308 (current_source_key): New global.
1309 (current_source_symtab, current_source_line)
1310 (current_source_pspace): Remove.
1311 (get_source_location): New function.
1312 (get_current_source_symtab_and_line)
1313 (set_default_source_symtab_and_line)
1314 (set_current_source_symtab_and_line)
1315 (clear_current_source_symtab_and_line, select_source_symtab)
1316 (info_source_command, print_source_lines_base)
1317 (info_line_command, search_command_helper, _initialize_source):
1318 Update.
1319
5c281dbb
TT
13202019-10-02 Tom Tromey <tromey@adacore.com>
1321
1322 * source.c (select_source_symtab): Don't call
1323 decode_line_with_current_source.
1324
d3d32391
AB
13252019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * symtab.c (lookup_global_symbol): Search global block.
1328
38583298
TT
13292019-10-02 Tom Tromey <tromey@adacore.com>
1330
1331 * coffread.c (process_coff_symbol): Update.
1332 * dwarf2read.c (var_decode_location, new_symbol): Update.
1333 * mdebugread.c (parse_symbol): Update.
1334 * objfiles.c (relocate_one_symbol): Update.
1335 * stabsread.c (define_symbol, fix_common_block)
1336 (scan_file_globals): Update.
1337 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1338 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1339 * xcoffread.c (process_xcoff_symbol): Update.
1340
9344c18f
AA
13412019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1342
1343 * MAINTAINERS: Update my email address.
1344
df07e2c7
AB
13452019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1348 std::vector.
1349 (build_type_psymtabs_reader): Update for std::vector.
1350 (build_type_psymtab_dependencies): Likewise.
1351 * dwarf2read.h: Remove use of DEF_VEC_P.
1352 (typedef sig_type_ptr): Delete.
1353
554ac434
AB
13542019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1357 to std::vector.
1358 (btrace_maint_decode_pt): Likewise, and move allocation of the
1359 vector outside of the loop.
1360 (btrace_maint_update_packets): Update to handle change from VEC to
1361 std::vector.
1362 (btrace_maint_print_packets): Likewise.
1363 (maint_info_btrace_cmd): Likewise.
1364 * btrace.h: Remove use of DEF_VEC_O.
1365 (typedef btrace_pt_packet_s): Delete.
1366 (struct btrace_maint_info) <packets>: Change fromm VEC to
1367 std::vector.
1368 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1369
46f29a9a
AB
13702019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1373 make accesses into the vector constant references.
1374 (btrace_add_pc): Update for std::vector.
1375 (btrace_stitch_bts): Likewise.
1376 (parse_xml_btrace_block): Likewise.
1377 (btrace_maint_update_packets): Likewise.
1378 (btrace_maint_print_packets): Likewise.
1379 (maint_info_btrace_cmd): Likewise.
1380 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1381 std::vector.
1382 (btrace_data::empty): Likewise.
1383 (btrace_data_append): Likewise.
1384 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1385 (typedef btrace_block_s): Delete.
1386 (struct btrace_block): Add constructor.
1387 (struct btrace_data_bts) <blocks>: Change to std::vector.
1388 * nat/linux-btrace.c (perf_event_read_bts): Update for
1389 std::vector.
1390 (linux_read_bts): Likewise.
1391
d770d56f
TT
13922019-10-01 Tom Tromey <tom@tromey.com>
1393
1394 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1395
9d636d67
TT
13962019-10-01 Tom Tromey <tom@tromey.com>
1397
1398 * stack.c (print_frame, info_frame_command_core): Use
1399 styled_string.
1400 * linux-thread-db.c (try_thread_db_load_1)
1401 (try_thread_db_load_from_pdir_1): Use styled_string.
1402 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1403 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1404 (maybe_print_unsupported_script_warning)
1405 (maybe_print_script_not_found_warning): Use styled_string.
1406 * ada-lang.c (user_select_syms): Use styled_string.
1407
7f6aba03
TT
14082019-10-01 Tom Tromey <tom@tromey.com>
1409
1410 * p-lang.c (pascal_printstr): Use metadata style.
1411 * value.c (show_convenience): Use metadata style.
1412 * valprint.c (valprint_check_validity, val_print_optimized_out)
1413 (val_print_not_saved, val_print_unavailable)
1414 (val_print_invalid_address, generic_val_print, val_print)
1415 (value_check_printable, val_print_array_elements): Use metadata
1416 style.
1417 * ui-out.h (class ui_out) <field_fmt>: New overload.
1418 <do_field_fmt>: Add style parameter.
1419 * ui-out.c (ui_out::field_fmt): New overload.
1420 * typeprint.c (type_print_unknown_return_type)
1421 (val_print_not_allocated, val_print_not_associated): Use metadata
1422 style.
1423 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1424 parameter.
1425 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1426 * tracepoint.c (tvariables_info_1): Use metadata style.
1427 * stack.c (print_frame_arg, print_frame_info, print_frame)
1428 (info_frame_command_core): Use metadata style.
1429 * skip.c (info_skip_command): Use metadata style.
1430 * rust-lang.c (rust_print_enum): Use metadata style.
1431 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1432 metadata style.
1433 * python/py-framefilter.c (py_print_single_arg): Use metadata
1434 style.
1435 * printcmd.c (do_one_display, print_variable_and_value): Use
1436 metadata style.
1437 * p-valprint.c (pascal_val_print)
1438 (pascal_object_print_value_fields): Use metadata style.
1439 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1440 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1441 parameter.
1442 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1443 * m2-valprint.c (m2_print_long_set): Use metadata style.
1444 * m2-typeprint.c (m2_print_type): Use metadata style.
1445 * infcmd.c (print_return_value_1): Use metadata style.
1446 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1447 * f-valprint.c (info_common_command_for_block): Use metadata
1448 style.
1449 * f-typeprint.c (f_type_print_base): Use metadata style.
1450 * expprint.c (print_subexp_standard): Use metadata style.
1451 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1452 * cli/cli-style.h (class cli_style_option): Add constructor.
1453 (metadata_style): Declare.
1454 * cli/cli-style.c (metadata_style): New global.
1455 (_initialize_cli_style): Register metadata style.
1456 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1457 parameter.
1458 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1459 * c-typeprint.c (c_type_print_base_struct_union)
1460 (c_type_print_base_1): Use metadata style.
1461 * breakpoint.c (watchpoint_value_print)
1462 (print_one_breakpoint_location): Use metadata style.
1463 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1464 style.
1465 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1466 style.
1467 * ada-valprint.c (val_print_packed_array_elements, printstr)
1468 (print_field_values, ada_val_print_ref, ada_val_print): Use
1469 metadata style.
1470 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1471 style.
1472 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1473 style.
1474 * ada-lang.c (user_select_syms): Use metadata style.
1475
14309bb6
TT
14762019-10-01 Tom Tromey <tom@tromey.com>
1477
1478 * cli/cli-cmds.c (pwd_command): Style output.
1479
6a831f06
PA
14802019-10-01 Pedro Alves <palves@redhat.com>
1481 Tom Tromey <tom@tromey.com>
1482
1483 * symtab.c (print_symbol_info): Use %ps.
1484 (print_msymbol_info): Use %ps.
1485 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1486 * printcmd.c (print_variable_and_value): Use %ps.
1487 * macrocmd.c (show_pp_source_pos): Use %ps.
1488 * infrun.c (print_exited_reason): Use ui_out::message.
1489 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1490 (describe_other_breakpoints): Use ui_out::message and new
1491 formats.
1492 (say_where): Use new formats.
1493 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1494 and new formats.
1495
2a3c1174
PA
14962019-10-01 Pedro Alves <palves@redhat.com>
1497 Tom Tromey <tom@tromey.com>
1498
1499 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1500 (test_gdb_formats): New function.
1501 (run_tests): Call it.
1502 (test_format_specifier): Update.
1503 * utils.h (fputs_filtered): Update comment.
1504 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1505 (fputs_styled_unfiltered): Declare.
1506 * utils.c (fputs_styled_unfiltered): New function.
1507 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1508 (vfprintf_filtered): Update.
1509 (vfprintf_unfiltered, vprintf_filtered): Update.
1510 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1511 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1512 disallow_ui_out_field>: New constants.
1513 (enum class field_kind): New.
1514 (struct base_field_s, struct signed_field_s): New.
1515 (signed_field): New function.
1516 (struct string_field_s): New.
1517 (string_field): New function.
1518 (struct styled_string_s): New.
1519 (styled_string): New function.
1520 (class ui_out) <message>: Add comment.
1521 <vmessage, call_do_message>: New methods.
1522 <do_message>: Add style parameter.
1523 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1524 methods.
1525 (ui_out::message): Rewrite.
1526 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1527 parameter.
1528 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1529 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1530 gdb_extensions parameter.
1531 (class format_piece): Add parameter to constructor.
1532 (n_int_args): New field.
1533 * gdbsupport/format.c (format_pieces::format_pieces): Add
1534 gdb_extensions parameter. Handle '*'.
1535 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1536 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1537 vfprintf_styled_no_gdbfmt.
1538 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1539 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1540 unfiltered output.
1541 * ui-style.h (struct ui_file_style) <ptr>: New method.
1542
0dfe5bfb
TT
15432019-10-01 Tom Tromey <tom@tromey.com>
1544
1545 * unittests/format_pieces-selftests.c: Update. Add final format.
1546 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1547 empty literal pieces.
1548
e43b10e1
TT
15492019-10-01 Tom Tromey <tom@tromey.com>
1550
1551 * ui-out.h (enum class ui_out_style_kind): Remove.
1552 (class ui_out) <field_string, field_stsream, do_field_string>:
1553 Change type of "style".
1554 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1555 (ui_out::field_string): Update.
1556 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1557 of "style".
1558 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1559 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1560 * stack.c (print_frame_arg, print_frame_info, print_frame):
1561 Update.
1562 * source.c (print_source_lines_base): Update.
1563 * solib.c (info_sharedlibrary_command): Update.
1564 * skip.c (info_skip_command): Update.
1565 * record-btrace.c (btrace_call_history_src_line)
1566 (btrace_call_history): Update.
1567 * python/py-framefilter.c (py_print_frame): Update.
1568 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1569 "style".
1570 * mi/mi-out.c (mi_ui_out::do_table_header)
1571 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1572 (mi_ui_out::do_field_string): Update.
1573 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1574 Update.
1575 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1576 "style".
1577 * cli-out.c (cli_ui_out::do_table_header)
1578 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1579 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1580 (cli_ui_out::do_field_fmt): Update.
1581 * breakpoint.c (print_breakpoint_location): Update.
1582 (update_static_tracepoint): Update.
1583
cd7c32c3
PW
15842019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1585
1586 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1587 conversion of gdb_datadir.
1588 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1589 remove not needed c_str ().
1590
8fe0f950
AT
15912019-09-30 Ali Tamur <tamur@google.com>
1592
1593 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1594 (dwarf2_string_attr): Likewise.
1595
5f48f8f3
AT
15962019-09-30 Ali Tamur <tamur@google.com>
1597
1598 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1599 (process_full_type_unit): Likewise.
1600 (dump_die_shallow): Likewise.
1601 (cu_debug_loc_section): Likewise.
1602
6fb08628
CB
16032019-09-28 Christian Biesinger <cbiesinger@google.com>
1604
1605 * minsyms.c (compare_minimal_symbols): Rename to...
1606 (minimal_symbol_is_less_than): ...this, and adjust to STL
1607 conventions (return bool, take arguments as references)
1608 (minimal_symbol_reader::install): Call std::sort instead
1609 of qsort.
1610
c7ee338a
CB
16112019-09-29 Christian Biesinger <cbiesinger@google.com>
1612
1613 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1614 hash and why.
1615 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1616 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1617
703a86c2
SM
16182019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1621 * psympriv.h (add_psymbol_to_list): Move comment here and update
1622 it.
1623
0df0352a
TV
16242019-09-29 Tom de Vries <tdevries@suse.de>
1625
1626 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1627 Use $tmpdir/$(basename "$output_file").dwz instead of
1628 "${output_file}.dwz".
1629
ad75efa6
SM
16302019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 PR gdb/25045
1633 * hppa-linux-nat.c: Include gdbarch.h.
1634
ececd218
CB
16352019-09-26 Christian Biesinger <cbiesinger@google.com>
1636
1637 * blockframe.c (find_pc_partial_function): Change return type to bool.
1638 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1639 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1640 (stub_gnu_ifunc_resolve_name): Likewise.
1641 * symtab.c (compare_filenames_for_search): Likewise.
1642 (compare_glob_filenames_for_search): Likewise.
1643 (matching_obj_sections): Likewise.
1644 (symbol_matches_domain): Likewise.
1645 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1646 (find_line_pc): Change return type to bool.
1647 (find_line_pc_range): Likewise.
1648 (producer_is_realview): Likewise.
1649 * symtab.h (symbol_matches_domain): Likewise.
1650 (find_pc_partial_function): Likewise.
1651 (find_pc_line_pc_range): Likewise.
1652 (in_gnu_ifunc_stub): Likewise.
1653 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1654 (find_line_pc): Likewise.
1655 (find_line_pc_range): Likewise.
1656 (matching_obj_sections): Likewise.
1657 (find_line_symtab): Change out parameter to bool.
1658 (producer_is_realview): Change return type to bool.
1659 (compare_filenames_for_search): Likewise.
1660 (compare_glob_filenames_for_search): Likewise.
1661
27a900b8
TT
16622019-09-26 Tom Tromey <tom@tromey.com>
1663
1664 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1665 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1666 * gdb_usleep.h: Remove.
1667 * gdb_usleep.c: Remove.
1668 * utils.c: Don't include gdb_usleep.h.
1669
5d63b30a
TT
16702019-09-26 Tom Tromey <tromey@adacore.com>
1671
1672 * python/py-type.c (type_to_type_object): Call check_typedef
1673 for stub types.
1674
12904d37
TT
16752019-09-26 Tom Tromey <tom@tromey.com>
1676
1677 * utils.h (initialize_utils): Don't declare.
1678 * top.c (gdb_init): Don't call initialize_utils.
1679 * utils.c (initialize_utils): Remove. Move contents...
1680 (_initialize_utils): ... here.
1681
858f25f0
TT
16822019-09-25 Tom Tromey <tom@tromey.com>
1683
1684 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1685 * utils.h (make_hex_string): Don't declare.
1686 * utils.c (make_hex_string): Remove.
1687
3d435220
TV
16882019-09-24 Tom de Vries <tdevries@suse.de>
1689
1690 PR gdb/23815
1691 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1692 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1693
ddd44b70
DD
16942019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1695
1696 * NEWS: Mention new simulator port for PRU.
1697
f945dedf
CB
16982019-09-23 Christian Biesinger <cbiesinger@google.com>
1699
1700 * ada-exp.y (write_object_remaining): Update.
1701 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1702 and eliminate the static buffer.
1703 (ada_decode_symbol): Update.
1704 (ada_la_decode): Update.
1705 (ada_sniff_from_mangled_name): Update.
1706 (is_valid_name_for_wild_match): Update.
1707 (ada_lookup_name_info::matches): Update and simplify.
1708 (name_matches_regex): Update.
1709 (ada_add_global_exceptions): Update.
1710 * ada-lang.h (ada_decode): Update signature.
1711 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1712 * dwarf-index-write.c (debug_names::insert): Update.
1713
7ab78ccb
SM
17142019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1717 formatting.
1718
9252448b
SM
17192019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1722 Change "nonzero" to "true" in documentation.
1723
626ca2c0
CB
17242019-09-20 Christian Biesinger <cbiesinger@google.com>
1725
1726 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1727 (_initialize_darwin_solib): Don't set
1728 darwin_so_ops.lookup_lib_global_symbol.
1729 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1730 set_gdbarch_iterate_over_objfiles_in_search_order.
1731 (elf_lookup_lib_symbol): Rename to...
1732 (svr4_iterate_over_objfiles_in_search_order): this, and update
1733 to iterate semantics.
1734 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1735 * solib.c (solib_global_lookup): Remove.
1736 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1737 (solib_global_lookup): Remove.
1738 * symtab.c (lookup_global_or_static_symbol): Remove call to
1739 solib_global_lookup.
1740
5a3a0d63
JB
17412019-09-20 Joel Brobecker <brobecker@adacore.com>
1742
1743 * NEWS: Move entries about default MI version now being
1744 version 3, and about the GDB/MI fix for multi-location
1745 breakpoints to the "since GDB 8.3" section.
1746
ffea1427
JB
17472019-09-20 Joel Brobecker <brobecker@adacore.com>
1748
1749 GDB 8.3.1 released.
1750
abf516c6
UW
17512019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1752
1753 * NEWS: Mention that Cell/B.E. debugging support was removed.
1754 * MAINTAINERS: Remove spu target.
1755
1756 * config/djgpp/fnchange.lst: Remove entries for removed files.
1757
1758 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1759 spu-multiarch.o, and spu-tdep.o.
1760 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1761 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1762 spu-multiarch.c, and spu-tdep.c.
1763 * spu-linux-nat.c: Remove file.
1764 * spu-multiarch.c: Remove file.
1765 * spu-tdep.c: Remove file.
1766 * spu-tdep.h: Remove file.
1767 * solib-spu.c: Remove file.
1768 * solib-spu.h: Remove file.
1769
1770 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1771 * configure.nat (spu-linux): Remove.
1772 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1773 solib-multiarch.o from gdb_target_obs.
1774 (spu*-*-*): Remove.
1775
1776 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1777 feature flag.
1778 (ppc_linux_no_features): Update.
1779 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1780 Cell/B.E. support.
1781 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1782 (tdesc_powerpc_cell64l): Likewise.
1783 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1784 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1785 Cell/B.E. support.
1786 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1787 Do not include "features/rs6000/powerpc-cell32l.c" or
1788 "features/rs6000/powerpc-cell64l.c".
1789 (ppc_linux_spu_section): Remove.
1790 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1791 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1792 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1793 (ppc_linux_spe_context_lookup): Remove.
1794 (ppc_linux_spe_context_inferior_created): Remove.
1795 (ppc_linux_spe_context_solib_loaded): Remove.
1796 (ppc_linux_spe_context_solib_unloaded): Remove.
1797 (ppc_linux_spe_context): Remove.
1798 (struct ppu2spu_cache): Remove.
1799 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1800 (struct ppu2spu_data): Remove.
1801 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1802 ppu2spu_unwind): Remove.
1803 (ppc_linux_init_abi): Remove Cell/B.E. support.
1804 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1805
1806 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1807 (rs6000/powerpc-cell64l-expedite): Likewise
1808 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1809 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1810 rs6000/powerpc-cell64l.xml.
1811 * features/rs6000/powerpc-cell32l.xml: Remove.
1812 * features/rs6000/powerpc-cell64l.xml: Likewise.
1813 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1814 * features/rs6000/powerpc-cell64l.c: Likewise.
1815 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1816 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1817 * regformats/reg-spu.dat: Remove.
1818
1819 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1820 * corelow.c (struct spuid_list): Remove.
1821 (add_to_spuid_list): Remove.
1822 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1823 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1824 (remote_protocol_features): Remove associated entries.
1825 (_initialize_remote): No longer initialize them.
1826 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1827 * linux-nat.c (SPUFS_MAGIC): Remove.
1828 (linux_proc_xfer_spu): Remove.
1829 (spu_enumerate_spu_ids): Remove.
1830 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1831 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1832 (linux_make_corefile_notes): No longer call it.
1833
1834 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1835 (cooked_write_test): Likewise.
1836
78e8cb91
TT
18372019-09-20 Tom Tromey <tom@tromey.com>
1838
1839 * NEWS: Mention case-sensitivity of TUI commands.
1840 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1841 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1842 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1843
f074b67e
TT
18442019-09-20 Tom Tromey <tom@tromey.com>
1845
1846 * tui/tui-source.c (tui_source_window::set_contents): Use
1847 make_unique_xstrdup.
1848 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1849 make_unique_xstrdup.
1850
63c4bf19
TT
18512019-09-20 Tom Tromey <tom@tromey.com>
1852
1853 * tui/tui-data.c: Remove separator comments.
1854 * tui/tui-layout.c: Remove separator comments.
1855 * tui/tui-win.c: Remove separator comments.
1856 * tui/tui-wingeneral.c: Remove separator comments.
1857
43df9b2f
TT
18582019-09-20 Tom Tromey <tom@tromey.com>
1859
1860 * tui/tui.h (strcat_to_buf): Don't declare.
1861 * tui/tui.c (strcat_to_buf): Remove.
1862
7226433c
TT
18632019-09-20 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1866 from "fullname".
1867 * tui/tui-source.c (tui_source_window::set_contents)
1868 (tui_source_window::location_matches_p)
1869 (tui_source_window::maybe_update): Update.
1870
80df3337
TT
18712019-09-20 Tom Tromey <tom@tromey.com>
1872
1873 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1874 Update.
1875 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1876 prefix.
1877 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1878 (tui_data_window::line_from_reg_element_no)
1879 (tui_data_window::first_reg_element_no_inline)
1880 (tui_data_window::show_registers)
1881 (tui_data_window::show_register_group)
1882 (tui_data_window::display_registers_from)
1883 (tui_data_window::display_registers_from_line)
1884 (tui_data_window::first_data_item_displayed)
1885 (tui_data_window::delete_data_content_windows)
1886 (tui_data_window::erase_data_content)
1887 (tui_data_window::do_scroll_vertical)
1888 (tui_data_window::refresh_window)
1889 (tui_data_window::check_register_values): Update.
1890
9923f347
TT
18912019-09-20 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1894 (struct tui_locator_window) <full_name, proc_name>: Now
1895 std::string.
1896 * tui/tui-stack.c (tui_locator_window::make_status_line)
1897 (tui_locator_window::set_locator_fullname)
1898 (tui_locator_window::set_locator_info): Update.
1899 * tui/tui-source.c (tui_source_window::set_contents)
1900 (tui_source_window::showing_source_p): Update.
1901
b76251ab
TT
19022019-09-20 Tom Tromey <tom@tromey.com>
1903
1904 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1905 Don't call tui_locator_win_info_ptr.
1906
0891be08
TT
19072019-09-20 Tom Tromey <tom@tromey.com>
1908
1909 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1910
1b935acf
TT
19112019-09-20 Tom Tromey <tom@tromey.com>
1912
1913 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1914 height for locator.
1915 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1916 * tui/tui-layout.c (show_source_disasm_command, show_data)
1917 (show_source_or_disasm_and_command): Use 1 as height for locator.
1918
9abd8a65
TT
19192019-09-20 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui.c (tui_enable): Update.
1922 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1923 Update.
1924 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1925 Update.
1926 * tui/tui-data.c (win_resized): Now bool.
1927 (tui_win_resized): Return bool.
1928 (tui_set_win_resized_to): Accept a bool.
1929
b5457826
TT
19302019-09-20 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1933 Change type of "refresh_values_only".
1934 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1935 type of "refresh_values_only".
1936
6b915f7d
TT
19372019-09-20 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1940 std::string.
1941 (tui_disassemble): Add "pos" parameter.
1942 (tui_disasm_window::set_contents): Simplify.
1943
2ad52f6f
TT
19442019-09-20 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-winsource.h (struct tui_source_window_base)
1947 <show_source_content>: Now private.
1948 * tui/tui-winsource.c
1949 (tui_source_window_base::show_source_content): Don't handle empty
1950 content case.
1951
b3b1bde6
TT
19522019-09-20 Tom Tromey <tom@tromey.com>
1953
1954 * tui/tui-layout.c (show_source_disasm_command)
1955 (show_source_or_disasm_and_command): Don't call
1956 show_source_content.
1957
71a25ed2
TT
19582019-09-20 Tom Tromey <tom@tromey.com>
1959
1960 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1961 Declare.
1962 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1963 from tui_make_status_line.
1964 (tui_locator_window::rerender): Update.
1965
f8532154
TT
19662019-09-20 Tom Tromey <tom@tromey.com>
1967
1968 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1969 (tui_locator_window::rerender): Update.
1970
2d81b349
TT
19712019-09-20 Tom Tromey <tom@tromey.com>
1972
1973 * tui/tui-winsource.h (struct tui_source_window_base)
1974 <~tui_source_window_base>: Don't declare.
1975 <fullname>: Remove.
1976 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1977 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1978 member.
1979 * tui/tui-source.c (tui_source_window::set_contents): Update.
1980 (tui_source_window::location_matches_p)
1981 (tui_source_window::maybe_update): Update.
1982
f14bec58
TT
19832019-09-20 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-winsource.h (~tui_source_element): Remove.
1986 (tui_source_element): Update.
1987 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1988 * tui/tui-winsource.c (tui_show_source_line): Update.
1989 * tui/tui-source.c (tui_source_window::set_contents): Update.
1990 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1991
78d5933a
TT
19922019-09-20 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1995 declare.
1996 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1997 tui_clear_source_windows_detail.
1998 * tui/tui-winsource.h (struct tui_source_window_base)
1999 <clear_detail>: Don't declare.
2000 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2001 Remove.
2002 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2003
d4207696
TT
20042019-09-20 Tom Tromey <tromey@adacore.com>
2005
2006 PR ada/24919:
2007 * block.c (contained_in): Fix final return value.
2008
00f93c44
AM
20092019-09-20 Alan Modra <amodra@gmail.com>
2010
2011 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2012 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2013 (read_indirect_string_from_dwz): Use bfd accessor.
2014 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2015 * machoread.c (macho_symfile_read_all_oso): Likewise.
2016 * solib.c (solib_bfd_open): Likewise.
2017
e4153ae6
CB
20182019-09-19 Christian Biesinger <cbiesinger@google.com>
2019
2020 * eval.c: Move declaration of overload_resolution to...
2021 * value.h: ...here.
2022
c7ae7675
CB
20232019-09-19 Christian Biesinger <cbiesinger@google.com>
2024
2025 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2026 * arm-linux-tdep.c: Likewise.
2027 * arm-nbsd-nat.c: Likewise.
2028 * arm-tdep.h: Declare arm_apcs_32.
2029 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2030
e86f08d2
CB
20312019-09-19 Christian Biesinger <cbiesinger@google.com>
2032
2033 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2034 * dwarf2read.h: Declare dwarf_always_disassemble.
2035
f64e2f40
TV
20362019-09-19 Tom de Vries <tdevries@suse.de>
2037
2038 PR gdb/25009
2039 * source-cache.c (source_cache::ensure): Catch exception thrown during
2040 construction of the highlighter.
2041
fd361982
AM
20422019-09-18 Alan Modra <amodra@gmail.com>
2043
2044 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2045 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2046 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2047 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2048 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2049 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2050 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2051 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2052 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2053 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2054 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2055 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2056 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2057 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2058 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2059 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2060 * mi/mi-interp.c: Update throughout for bfd section macro and
2061 function changes.
2062 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2063 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2064
11061048
TT
20652019-09-18 Tom Tromey <tom@tromey.com>
2066
2067 * NEWS: Add entry.
2068 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2069 call rl_initialize.
2070 (tui_enable): Do not call rl_initialize.
2071
7a27b85f
CG
20722019-09-18 Christian Groessler <chris@groessler.org>
2073
2074 * alpha-linux-nat.c: Include gdbarch.h.
2075
f64eea3a
SM
20762019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * ui-file.c: Include cli/cli-style.h.
2079 (term_cli_styling): Remove cli_styling declaration.
2080
e6f7f6d1
AM
20812019-09-18 Alan Modra <amodra@gmail.com>
2082
2083 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2084 to bfd_asymbol_section.
2085
1d38e9d1
AM
20862019-09-18 Alan Modra <amodra@gmail.com>
2087
2088 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2089 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2090 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2091
90d92a63
AM
20922019-09-18 Alan Modra <amodra@gmail.com>
2093
2094 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2095 * spu-linux-nat.c (spu_bfd_open): Likewise.
2096
a3d181d2
CB
20972019-09-18 Christian Biesinger <cbiesinger@google.com>
2098
2099 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2100 to bool to match definition in dwarf2read.c.
2101
491144b5
CB
21022019-09-17 Christian Biesinger <cbiesinger@google.com>
2103
2104 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2105 (print_signatures): Likewise.
2106 (trust_pad_over_xvs): Likewise.
2107 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2108 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2109 * arm-linux-nat.c (arm_apcs_32): Likewise.
2110 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2111 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2112 * arm-tdep.c (arm_debug): Likewise.
2113 (arm_apcs_32): Likewise.
2114 * auto-load.c (debug_auto_load): Likewise.
2115 (auto_load_gdb_scripts): Likewise.
2116 (global_auto_load): Likewise.
2117 (auto_load_local_gdbinit): Likewise.
2118 (auto_load_local_gdbinit_loaded): Likewise.
2119 * auto-load.h (global_auto_load): Likewise.
2120 (auto_load_local_gdbinit): Likewise.
2121 (auto_load_local_gdbinit_loaded): Likewise.
2122 * breakpoint.c (disconnected_dprintf): Likewise.
2123 (breakpoint_proceeded): Likewise.
2124 (automatic_hardware_breakpoints): Likewise.
2125 (always_inserted_mode): Likewise.
2126 (target_exact_watchpoints): Likewise.
2127 (_initialize_breakpoint): Update.
2128 * breakpoint.h (target_exact_watchpoints): Change to bool.
2129 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2130 * cli/cli-cmds.c (trace_commands): Likewise.
2131 * cli/cli-cmds.h (trace_commands): Likewise.
2132 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2133 to bool*.
2134 * cli/cli-logging.c (logging_overwrite): Change to bool.
2135 (logging_redirect): Likewise.
2136 (debug_redirect): Likewise.
2137 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2138 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2139 to bool.
2140 <boolean_option_def>: Update.
2141 (struct flag_option_def): Change default type of Context to bool
2142 from int.
2143 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2144 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2145 (get_setshow_command_value_string): Likewise.
2146 * cli/cli-style.c (cli_styling): Change to bool.
2147 (source_styling): Likewise.
2148 * cli/cli-style.h (source_styling): Likewise.
2149 (cli_styling): Likewise.
2150 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2151 to bool.
2152 * command.h (var_types): Update comment.
2153 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2154 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2155 bool.
2156 (debug_compile_cplus_scopes): Likewise.
2157 * compile/compile-internal.h (compile_debug): Likewise.
2158 * compile/compile.c (compile_debug): Likewise.
2159 (struct compile_options) <raw>: Likewise.
2160 * cp-support.c (catch_demangler_crashes): Likewise.
2161 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2162 (usr_cmd_cris_dwarf2_cfi): Likewise.
2163 * csky-tdep.c (csky_debug): Likewise.
2164 * darwin-nat.c (enable_mach_exceptions): Likewise.
2165 * dcache.c (dcache_enabled_p): Likewise.
2166 * defs.h (info_verbose): Likewise.
2167 * demangle.c (demangle): Likewise.
2168 (asm_demangle): Likewise.
2169 * dwarf-index-cache.c (debug_index_cache): Likewise.
2170 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2171 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2172 * dwarf2read.c (check_physname): Likewise.
2173 (use_deprecated_index_sections): Likewise.
2174 (dwarf_always_disassemble): Likewise.
2175 * eval.c (overload_resolution): Likewise.
2176 * event-top.c (set_editing_cmd_var): Likewise.
2177 (exec_done_display_p): Likewise.
2178 * event-top.h (set_editing_cmd_var): Likewise.
2179 (exec_done_display_p): Likewise.
2180 * exec.c (write_files): Likewise.
2181 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2182 (debug_fbsd_nat): Likewise.
2183 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2184 Likewise.
2185 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2186 <backtrace_past_entry> Likewise.
2187 * gdb-demangle.h (demangle): Likewise.
2188 (asm_demangle): Likewise.
2189 * gdb_bfd.c (bfd_sharing): Likewise.
2190 * gdbcore.h (write_files): Likewise.
2191 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2192 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2193 * gdbthread.h (print_thread_events): Likewise.
2194 * gdbtypes.c (opaque_type_resolution): Likewise.
2195 (strict_type_checking): Likewise.
2196 * gnu-nat.c (gnu_debug_flag): Likewise.
2197 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2198 * guile/scm-param.c (pascm_variable): Add boolval.
2199 (add_setshow_generic): Update.
2200 (pascm_param_value): Update.
2201 (pascm_set_param_value_x): Update.
2202 * hppa-tdep.c (hppa_debug): Change to bool..
2203 * infcall.c (may_call_functions_p): Likewise.
2204 (coerce_float_to_double_p): Likewise.
2205 (unwind_on_signal_p): Likewise.
2206 (unwind_on_terminating_exception_p): Likewise.
2207 * infcmd.c (startup_with_shell): Likewise.
2208 * inferior.c (print_inferior_events): Likewise.
2209 * inferior.h (startup_with_shell): Likewise.
2210 (print_inferior_events): Likewise.
2211 * infrun.c (step_stop_if_no_debug): Likewise.
2212 (detach_fork): Likewise.
2213 (debug_displaced): Likewise.
2214 (disable_randomization): Likewise.
2215 (non_stop): Likewise.
2216 (non_stop_1): Likewise.
2217 (observer_mode): Likewise.
2218 (observer_mode_1): Likewise.
2219 (set_observer_mode): Update.
2220 (sched_multi): Change to bool.
2221 * infrun.h (debug_displaced): Likewise.
2222 (sched_multi): Likewise.
2223 (step_stop_if_no_debug): Likewise.
2224 (non_stop): Likewise.
2225 (disable_randomization): Likewise.
2226 * linux-tdep.c (use_coredump_filter): Likewise.
2227 (dump_excluded_mappings): Likewise.
2228 * linux-thread-db.c (auto_load_thread_db): Likewise.
2229 (check_thread_db_on_load): Likewise.
2230 * main.c (captured_main_1): Update.
2231 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2232 xx2_opt, boolean_opt>: Change to bool.
2233 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2234 * maint.c (maintenance_profile_p): Likewise.
2235 (per_command_time): Likewise.
2236 (per_command_space): Likewise.
2237 (per_command_symtab): Likewise.
2238 * memattr.c (inaccessible_by_default): Likewise.
2239 * mi/mi-main.c (mi_async): Likewise.
2240 (mi_async_1): Likewise.
2241 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2242 * nat/fork-inferior.h (startup_with_shell): Likewise.
2243 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2244 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2245 * nios2-tdep.c (nios2_debug): Likewise.
2246 * or1k-tdep.c (or1k_debug): Likewise.
2247 * parse.c (parser_debug): Likewise.
2248 * parser-defs.h (parser_debug): Likewise.
2249 * printcmd.c (print_symbol_filename): Likewise.
2250 * proc-api.c (procfs_trace): Likewise.
2251 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2252 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2253 (set_parameter_value): Update.
2254 (add_setshow_generic): Update.
2255 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2256 to bool*.
2257 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2258 int*.
2259 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2260 * record-btrace.c (record_btrace_target::store_registers): Update.
2261 * record-full.c (record_full_memory_query): Change to bool.
2262 (record_full_stop_at_limit): Likewise.
2263 * record-full.h (record_full_memory_query): Likewise.
2264 * remote-notif.c (notif_debug): Likewise.
2265 * remote-notif.h (notif_debug): Likewise.
2266 * remote.c (use_range_stepping): Likewise.
2267 (interrupt_on_connect): Likewise.
2268 (remote_break): Likewise.
2269 * ser-tcp.c (tcp_auto_retry): Likewise.
2270 * ser-unix.c (serial_hwflow): Likewise.
2271 * skip.c (debug_skip): Likewise.
2272 * solib-aix.c (solib_aix_debug): Likewise.
2273 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2274 (spu_auto_flush_cache_p): Likewise.
2275 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2276 Likewise.
2277 (struct info_print_options) <quiet>: Likewise.
2278 * symfile-debug.c (debug_symfile): Likewise.
2279 * symfile.c (auto_solib_add): Likewise.
2280 (separate_debug_file_debug): Likewise.
2281 * symfile.h (auto_solib_add): Likewise.
2282 (separate_debug_file_debug): Likewise.
2283 * symtab.c (basenames_may_differ): Likewise.
2284 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2285 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2286 (struct info_types_options) <quiet>: Likewise.
2287 * symtab.h (demangle): Likewise.
2288 (basenames_may_differ): Likewise.
2289 * target-dcache.c (stack_cache_enabled_1): Likewise.
2290 (code_cache_enabled_1): Likewise.
2291 * target.c (trust_readonly): Likewise.
2292 (may_write_registers): Likewise.
2293 (may_write_memory): Likewise.
2294 (may_insert_breakpoints): Likewise.
2295 (may_insert_tracepoints): Likewise.
2296 (may_insert_fast_tracepoints): Likewise.
2297 (may_stop): Likewise.
2298 (auto_connect_native_target): Likewise.
2299 (target_stop_and_wait): Update.
2300 (target_async_permitted): Change to bool.
2301 (target_async_permitted_1): Likewise.
2302 (may_write_registers_1): Likewise.
2303 (may_write_memory_1): Likewise.
2304 (may_insert_breakpoints_1): Likewise.
2305 (may_insert_tracepoints_1): Likewise.
2306 (may_insert_fast_tracepoints_1): Likewise.
2307 (may_stop_1): Likewise.
2308 * target.h (target_async_permitted): Likewise.
2309 (may_write_registers): Likewise.
2310 (may_write_memory): Likewise.
2311 (may_insert_breakpoints): Likewise.
2312 (may_insert_tracepoints): Likewise.
2313 (may_insert_fast_tracepoints): Likewise.
2314 (may_stop): Likewise.
2315 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2316 (make_thread_apply_all_options_def_group): Change argument from int*
2317 to bool*.
2318 (thread_apply_all_command): Update.
2319 (print_thread_events): Change to bool.
2320 * top.c (confirm): Likewise.
2321 (command_editing_p): Likewise.
2322 (history_expansion_p): Likewise.
2323 (write_history_p): Likewise.
2324 (info_verbose): Likewise.
2325 * top.h (confirm): Likewise.
2326 (history_expansion_p): Likewise.
2327 * tracepoint.c (disconnected_tracing): Likewise.
2328 (circular_trace_buffer): Likewise.
2329 * typeprint.c (print_methods): Likewise.
2330 (print_typedefs): Likewise.
2331 * utils.c (debug_timestamp): Likewise.
2332 (sevenbit_strings): Likewise.
2333 (pagination_enabled): Likewise.
2334 * utils.h (sevenbit_strings): Likewise.
2335 (pagination_enabled): Likewise.
2336 * valops.c (overload_resolution): Likewise.
2337 * valprint.h (struct value_print_options) <prettyformat_arrays,
2338 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2339 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2340 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2341 Likewise.
2342 * windows-nat.c (new_console): Likewise.
2343 (cygwin_exceptions): Likewise.
2344 (new_group): Likewise.
2345 (debug_exec): Likewise.
2346 (debug_events): Likewise.
2347 (debug_memory): Likewise.
2348 (debug_exceptions): Likewise.
2349 (useshell): Likewise.
2350 * windows-tdep.c (maint_display_all_tib): Likewise.
2351 * xml-support.c (debug_xml): Likewise.
2352
f1b620e9
MG
23532019-09-17 Mike Gulick <mgulick@mathworks.com>
2354
2355 * source.c (prepare_path_for_appending): New function.
2356 (openp): Make use of new function.
2357 (find_and_open_source): Search for the compilation directory and
2358 source file as a relative path beneath the directory search path.
2359
67f3ed6a
AB
23602019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * source-cache.c (source_cache::get_line_charpos): Catch
2363 exceptions and return false, this matches the behaviour documented
2364 in the header file.
2365
74332189
JB
23662019-09-17 Joel Brobecker <brobecker@adacore.com>
2367
2368 * ada-tasks.c (info_task): Remove quoting of the task's name.
2369
f2f24aa9
CB
23702019-09-16 Christian Biesinger <cbiesinger@google.com>
2371
2372 * symfile.c (auto_solib_add): Replace comment with a reference
2373 to the header file.
2374
6a062a93
CB
23752019-09-14 Christian Biesinger <cbiesinger@google.com>
2376
2377 * NEWS: Mention that gdb can now be compiled with Python 3
2378 on Windows.
2379
ec6c8338
AB
23802019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * maint.c (maint_print_section_data::maint_print_section_data):
2383 Force use of 'float log10 (float)' by casting the argument to
2384 float.
2385
aa17805f
AB
23862019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * maint.c: Add 'cmath' include.
2389 (struct maint_print_section_data): New structure.
2390 (print_section_index): New function.
2391 (print_bfd_section_info): Add header comment, small whitespace
2392 cleanup, and update to call new print_section_index function.
2393 (print_objfile_section_info): Likewise.
2394 (maint_obj_section_from_bfd_section): New function.
2395 (print_bfd_section_info_maybe_relocated): New function.
2396 (maintenance_info_sections): Add header comment, always use
2397 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2398
3dd9bb46
AB
23992019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2402 inner scope, add check that the objfile has psymtabs before
2403 checking psymtabs_addrmap.
2404 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2405
4993045d
PW
24062019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2407
2408 * NEWS: Announce that Ada task names are now shown at more places,
2409 and between quotes (except in info task output).
2410 * gdb/ada-tasks.c (task_to_str): New function.
2411 (display_current_task_id): Call task_to_str.
2412 (task_command_1): Likewise.
2413 (print_ada_task_info): In non-mi mode, Properly align headers and data
2414 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2415
7a289707
RO
24162019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2417
2418 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2419 prstatus.pr_lwp.pr_info instead of making it up.
2420
f2aec7f6
CB
24212019-09-11 Christian Biesinger <cbiesinger@google.com>
2422
2423 * auto-load.c (auto_load_expand_dir_vars): Update.
2424 * defs.h (gdb_datadir): Change to std::string.
2425 (python_libdir): Likewise.
2426 (relocate_gdb_directory): Change return type to std::string.
2427 * guile/guile.c (gdbscm_data_directory): Update.
2428 (initialize_scheme_side): Update.
2429 * jit.c (jit_reader_dir): Change to std::string.
2430 (jit_reader_load_command): Update.
2431 * main.c (gdb_datadir): Change to std::string.
2432 (python_libdir): Likewise.
2433 (set_gdb_data_directory): Update.
2434 (relocate_path): Change to return std::string.
2435 (relocate_gdb_directory): Change to return std::string.
2436 (relocate_gdbinit_path_maybe_in_datadir): Update.
2437 (captured_main_1): Update.
2438 * python/python.c (do_start_initialization): Update.
2439 * top.c (show_gdb_datadir): Update.
2440 * xml-syscall.c (xml_init_syscalls_info): Update.
2441 (init_syscalls_info): Update.
2442
9224a013
CB
24432019-09-11 Christian Biesinger <cbiesinger@google.com>
2444
2445 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2446 out of get_init_files.
2447 (get_init_files): Update.
2448
f48cd836
CB
24492019-09-11 Christian Biesinger <cbiesinger@google.com>
2450
2451 * main.c (get_init_files): Change to use std::string.
2452 (captured_main_1): Update.
2453 (print_gdb_help): Update.
2454
9cab7ecd
AT
24552019-09-11 Ali Tamur <tamur@google.com>
2456
2457 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2458 implementation.
2459
67547d89
CB
24602019-09-11 Christian Biesinger <cbiesinger@google.com>
2461
2462 * dbxread.c (read_dbx_symtab): Update.
2463 * dwarf2read.c (load_partial_dies): Update.
2464 * mdebugread.c (parse_partial_symbols): Update.
2465 (handle_psymbol_enumerators): Update.
2466 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2467 * psymtab.c (add_psymbol_to_bcache): Likewise.
2468 (add_psymbol_to_list): Likewise.
2469 * symtab.c (symbol_set_names): Likewise.
2470 * symtab.h (symbol_set_names): Likewise.
2471 * xcoffread.c (scan_xcoff_symtab): Update.
2472
64b2d4a0
TT
24732019-09-11 Tom Tromey <tom@tromey.com>
2474
2475 * symfile-mem.c (symbol_file_add_from_memory): Use
2476 bfd_set_filename.
2477 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2478 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2479
3b00ef10
TT
24802019-09-10 Tom Tromey <tromey@adacore.com>
2481
2482 * dwarf-index-write.c (write_psymbols): Extend error message.
2483 (debug_names::insert): Add Ada code.
2484 (debug_names::write_psymbols): Remove Ada check.
2485 (debug_names) <m_string_obstack>: New member.
2486 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2487 (gdb_index_symbol_name_matcher::matches): Remove.
2488 (mapped_index_base::find_name_components_bounds): Add "lang"
2489 parameter.
2490 (mapped_index_base::build_name_components): Also split names
2491 according to Ada syntax.
2492 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2493 type of "match_callback".
2494 (check_match, check_find_bounds_finds)
2495 (dw2_expand_symtabs_matching): Update.
2496 (dw2_debug_names_iterator): Add new constructor.
2497 (dw2_debug_names_map_matching_symbols): New function.
2498 (dw2_debug_names_expand_symtabs_matching): Update.
2499 (dwarf2_debug_names_functions): Use
2500 dw2_debug_names_map_matching_symbols.
2501
aa391654
TT
25022019-09-10 Tom Tromey <tromey@adacore.com>
2503
2504 * dwarf2read.c (dw2_get_file_names_reader): Add the
2505 CU's file name to the results.
2506
b054970d
TT
25072019-09-10 Tom Tromey <tromey@adacore.com>
2508
2509 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2510 map_matching_symbols. Update.
2511 * dwarf2read.c (dw2_map_matching_symbols): Update.
2512 * psymtab.c (match_partial_symbol): Change type; update.
2513 (psym_map_matching_symbols): Likewise.
2514 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2515 type; update.
2516 * symfile.h (struct quick_symbol_functions)
2517 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2518 Remove "match".
2519
6a3dbf1b
TT
25202019-09-10 Tom Tromey <tromey@adacore.com>
2521
2522 * psymtab.c (map_block): Remove.
2523 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2524 * symtab.c (iterate_over_symbols_terminated): New function.
2525 * symtab.c (iterate_over_symbols_terminated): Declare.
2526
6969f124
TT
25272019-09-10 Tom Tromey <tromey@adacore.com>
2528
2529 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2530 * language.h (struct language_defn) <la_iterate_over_symbols>:
2531 Return bool.
2532 * symtab.c (iterate_over_symbols): Return bool.
2533 * symtab.h (iterate_over_symbols): Return bool.
2534
199b4314
TT
25352019-09-10 Tom Tromey <tromey@adacore.com>
2536
2537 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2538 (add_nonlocal_symbols): Update.
2539 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2540 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2541 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2542 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2543 Change type of "callback". Remove "data".
2544
a084a2a6
AT
2545
25462019-09-09 Ali Tamur <tamur@google.com>
2547
2548 * dwarf2read.c (comp_unit_head): Update comment.
2549 (dwarf2_dwo_name): New function declaration.
2550 (dwarf_unit_type_name): New function declaration.
2551 (read_comp_unit_head): Add support for new compilation units,
2552 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2553 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2554 (currently named as "signature") in their header. Also clarify error
2555 messages.
2556 (lookup_dwo_id): New function. Returns the dwo id of the given
2557 compile unit.
2558 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2559 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2560 functions.
2561 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2562 (dwarf2_dwo_name): Get the dwo name if present.
2563 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2564 purposes.
2565
25a2915e
TT
25662019-09-09 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2569
e4df0874
PW
25702019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2571
2572 * python/python.c (do_start_initialization): Make progname_copy static,
2573 to avoid a leak report.
2574
8634b462
TT
25752019-09-08 Tom Tromey <tom@tromey.com>
2576
2577 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2578
c7f839cb
SM
25792019-09-07 Simon Marchi <simon.marchi@efficios.com>
2580
2581 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2582 Change type to gdb::optional<block_enum>.
2583 (dw2_symtab_iter_init): Change block_index parameter type
2584 to gdb::optional<block_enum>.
2585 (dw2_lookup_symbol): Change block_index parameter
2586 type to block_enum.c
2587 (dw2_debug_names_lookup_symbol): Likewise.
2588 * psymtab.c (psym_lookup_symbol): Likewise.
2589 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2590 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2591 Likewise.
2592
ead0e69a
CB
25932019-09-06 Christian Biesinger <cbiesinger@google.com>
2594
2595 * defs.h (relocate_gdb_directory): Change int to bool in
2596 signature and rename flag to relocatable.
2597 * main.c (relocate_path): Likewise.
2598 (relocate_gdb_directory): Likewise.
2599
b16c44de
AM
26002019-09-06 Alan Modra <amodra@gmail.com>
2601
2602 * coffread.c (coff_symfile_read): Constify filename variable.
2603 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2604 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2605 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2606 * solib.c (reload_shared_libraries_1): Likewise.
2607 * symfile.c (reread_symbols): Likewise.
2608 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2609 * solib-darwin.c (darwin_bfd_open): Likewise.
2610 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2611
06ff036e
AB
26122019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2615 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2616
4e962e74
TT
26172019-09-03 Tom Tromey <tromey@adacore.com>
2618
2619 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2620 types.
2621 (has_negatives): Unbias a range type bound.
2622 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2623 * gdbtypes.c (operator==): Handle new field.
2624 (create_range_type): Add "bias" parameter.
2625 (create_static_range_type, resolve_dynamic_range): Update.
2626 * gdbtypes.h (struct range_bounds) <bias>: New member.
2627 (create_range_type): Add bias parameter.
2628 * printcmd.c (print_scalar_formatted): Unbias range types.
2629 * value.c (unpack_long): Unbias range types.
2630 (pack_long): Bias range types.
2631
d90b8f26
AH
26322019-09-02 Alan Hayward <alan.hayward@arm.com>
2633
2634 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2635 probe arguments.
2636
fe01123e
AH
26372019-09-02 Alan Hayward <alan.hayward@arm.com>
2638
2639 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2640 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2641 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2642 (compile_probe_arg): Likewise.
2643 * probe.h (get_argument_count): Likewise.
2644 * solib-svr4.c (solib_event_probe_action): Likewise.
2645 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2646
e661ef01
AH
26472019-09-02 Alan Hayward <alan.hayward@arm.com>
2648
2649 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2650 code to here...
2651 (svr4_create_solib_event_breakpoints): ...from here.
2652
47a536d9
SDJ
26532019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2654
2655 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2656 suffix from warning message.
2657
d6a00eba
TT
26582019-08-30 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-winsource.h (struct tui_source_window_base)
2661 <refresh_all>: Don't declare.
2662 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2663 Remove.
2664 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2665 tui_show_locator_content.
2666 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2667 declare.
2668 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2669 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2670 declare.
2671
55b2657b
TT
26722019-08-30 Tom Tromey <tom@tromey.com>
2673
2674 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2675
12a8555a
TT
26762019-08-30 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2679 Remove unnecessary forward declarations.
2680
900ac242
TT
26812019-08-30 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2684 rerender.
2685 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2686 tui_show_locator_content.
2687
99ab33fb
TT
26882019-08-30 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2691 (tui_locator_window::rerender): Rewrite using body of previous
2692 tui_show_locator_content.
2693
e594a5d1
TT
26942019-08-30 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2697 set_locator_fullname>: New methods.
2698 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2699 Rename from tui_set_locator_fullname.
2700 (tui_locator_window::set_locator_info): Rename from
2701 tui_set_locator_info. Return bool.
2702 (tui_update_locator_fullname, tui_show_frame_info): Update.
2703
715bb467
TT
27042019-08-30 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2707
772f3f03
TT
27082019-08-30 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2711 call touchwin.
2712
108e13ab
TT
27132019-08-30 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-wingeneral.c (box_win): Assume win_info and
2716 win_info->handle cannot be NULL.
2717
cdaa6eb4
TT
27182019-08-30 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2721 refresh_window>: Declare.
2722 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2723 resize.
2724 (tui_data_item_window::rerender): Rename from
2725 tui_display_register.
2726 (tui_data_item_window::refresh_window): New method.
2727 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2728 no-op.
2729
89df7f90
TT
27302019-08-30 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2733 regs_column_count, current_group>: Move later. Now private.
2734 <get_current_group>: New method.
2735 * tui/tui-regs.c (tui_reg_command): Update.
2736 * tui/tui-layout.c (tui_set_layout): Update.
2737
1bf2866a
TT
27382019-08-30 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2741 (tui_data_window::rerender): Don't call
2742 check_and_display_highlight_if_needed.
2743 (tui_data_window::refresh_all): Remove call to
2744 erase_data_content.
2745
0670413d
TT
27462019-08-30 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2749 (tui_data_window::display_registers_from)
2750 (tui_data_window::display_reg_element_at_line)
2751 (tui_data_window::display_registers_from_line): Remove checks of
2752 "empty".
2753
18bb55c7
TT
27542019-08-30 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2757 Don't declare.
2758 * tui/tui-regs.c (tui_data_window::show_registers): Call
2759 rerender.
2760 (tui_data_window::rerender): Rename from display_all_data.
2761 (tui_data_window::rerender): Remove old implementation.
2762
1f6d2f10
TT
27632019-08-30 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2766 text.
2767 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2768
16d01f9c
BW
27692019-08-29 Bernhard Wodok <barto@gmx.net>
2770 Sergio Durigan Junior <sergiodj@redhat.com>
2771
2772 PR win32/24284
2773 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2774
d8f27c60
AB
27752019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2778 when searching for types.
2779
1f20c35e
AB
27802019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * f-lang.c (f_language_defn): Use f_print_typedef.
2783 * f-lang.h (f_print_typedef): Declare.
2784 * f-typeprint.c (f_print_typedef): Define.
2785
550105b7
CB
27862019-08-27 Christian Biesinger <cbiesinger@google.com>
2787
2788 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2789
4acfdd20
AB
27902019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * cli/cli-utils.c (info_print_options_defs): Delete.
2793 (make_info_print_options_def_group): Delete.
2794 (extract_info_print_options): Delete.
2795 (info_print_command_completer): Delete.
2796 (info_print_args_help): Add extra parameter, and optionally
2797 include text about -n flag.
2798 * cli/cli-utils.h (struct info_print_options): Delete.
2799 (extract_info_print_options): Delete declaration.
2800 (info_print_command_completer): Delete declaration.
2801 (info_print_args_help): Add extra parameter, extend header
2802 comment.
2803 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2804 search_symbols.
2805 * stack.c (struct info_print_options): New type.
2806 (info_print_options_defs): New file scoped variable.
2807 (make_info_print_options_def_group): New static function.
2808 (info_print_command_completer): New static function.
2809 (info_locals_command): Update to use new local functions.
2810 (info_args_command): Likewise.
2811 (_initialize_stack): Add extra parameter to calls to
2812 info_print_args_help.
2813 * symtab.c (search_symbols): Add extra parameter, use this to
2814 possibly excluse non-debug symbols.
2815 (symtab_symbol_info): Add extra parameter, which is passed on to
2816 search_symbols.
2817 (struct info_print_options): New type.
2818 (info_print_options_defs): New file scoped variable.
2819 (make_info_print_options_def_group): New static function.
2820 (info_print_command_completer): New static function.
2821 (info_variables_command): Update to use local functions, and pass
2822 extra parameter through to symtab_symbol_info.
2823 (info_functions_command): Likewise.
2824 (info_types_command): Pass additional argument through to
2825 symtab_symbol_info.
2826 (rbreak_command): Pass extra argument to search_symbols.
2827 (_initialize_symtab): Add extra arguments for calls to
2828 info_print_args_help, and update help text for 'info variables',
2829 'whereis', and 'info functions' commands.
2830 * symtab.h (search_symbols): Add extra argument to declaration.
2831 * NEWS: Mention new flags.
2832
9aa55206
CB
28332019-08-26 Christian Biesinger <cbiesinger@google.com>
2834
2835 * symtab.c (lookup_static_symbol): Call the new function (and move
2836 it down to be next to lookup_global_symbol).
2837 (struct global_sym_lookup_data): Add block_enum member and rename to...
2838 (struct global_or_static_sym_lookup_data): ...this.
2839 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2840 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2841 (lookup_symbol_global_or_static_iterator_cb): ...this.
2842 (lookup_global_or_static_symbol): New function.
2843 (lookup_global_symbol): Call new function.
2844
5c31b358
TV
28452019-08-26 Tom de Vries <tdevries@suse.de>
2846
2847 PR c++/24852
2848 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2849 when pc_probe.prob == NULL.
2850
23c13d42
SM
28512019-08-25 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2854 variable symbol_linkage to symbol_linkage_.
2855
beadd3e8
SM
28562019-08-25 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2859 represent whether the symbol is static, dynamic, or we don't
2860 know.
2861
e3ec872f
YS
28622019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2863
2864 * gdb/rx-tdep.c (rx_register_names): New.
2865 (rx_register_name): Delete.
2866 (rx_psw_type): Delete.
2867 (rx_fpsw_type): Delete.
2868 (rx_register_type): Delete.
2869 (rx_gdbarch_init): Convert target-descriptions.
2870 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2871 * gdb/features/Makefile: Add rx.xml.
2872 * gdb/features/rx.xml: New.
2873 * gdb/features/rx.c: Generated.
2874 * gdb/NEWS: Mention target description support.
2875
d0509ba4
CB
28762019-08-22 Christian Biesinger <cbiesinger@google.com>
2877
2878 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2879 *slot_ptr.
2880
2d41fa11
SDJ
28812019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2882
2883 * configure.ac: Don't check for 'dlfcn.h' (moved to
2884 gdbsupport/common.m4).
2885 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2886 'gdbsupport/'.
2887 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2888 * compile/compile-c-support.c: Include
2889 'gdbsupport/gdb-dlfcn.h'.
2890 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2891 * gdb-dlfcn.c: Move to...
2892 * gdbsupport/gdb-dlfcn.c: ... here.
2893 * gdb-dlfcn.h: Move to...
2894 * gdbsupport/gdb-dlfcn.h: ... here.
2895
de8af808
SL
28962019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2897
2898 * nios2-tdep.c (struct reg_value): Improve comments. Make
2899 the offset field signed.
2900
27204489
CB
29012019-08-22 Christian Biesinger <cbiesinger@google.com>
2902
2903 * python/lib/gdb/__init__.py (_execute_file): New function.
2904 * python/python.c (python_run_simple_file): Call gdb._execute_file
2905 on Windows.
2906
43771869
AB
29072019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2910 all uses as this was never set to anything but a zero value.
2911
26c957f1
PA
29122019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2913
2914 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2915
c07aae6e
CB
29162019-08-21 Christian Biesinger <cbiesinger@google.com>
2917
2918 * tui/tui-data.h (tui_gen_win_info): Add an =default
2919 move constructor, required by some GCC versions.
2920
3960cb7a
JF
29212019-08-21 Jinke Fan <fanjinke51@yeah.net>
2922
2923 * go32-nat.c (go32_sysinfo): Add hygon_p.
2924
04c72a68
TT
29252019-08-20 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2928 line_from_reg_element_no, first_reg_element_no_inline,
2929 display_all_data, delete_data_content_windows,
2930 erase_data_content>: Now private.
2931
072272ce
TT
29322019-08-20 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2935 (tui_unhighlight_win, tui_highlight_win)
2936 (tui_win_info::make_window): Update.
2937 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2938
973961bd
TT
29392019-08-20 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2942 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2943 (MAX_PID_WIDTH): Move to tui-stack.c.
2944 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2945 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2946 (MAX_PID_WIDTH): Move from tui-data.h.
2947
ab0e1f1a
TT
29482019-08-20 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2951 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2952 (box_win): Update.
2953 (tui_gen_win_info::make_window): Rename from tui_make_window.
2954 (tui_win_info::make_window): New method.
2955 (tui_gen_win_info::make_visible): Update.
2956 * tui/tui-source.c (tui_source_window::set_contents): Update.
2957 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2958 (tui_data_window::display_registers_from): Update.
2959 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2960 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2961 Declare.
2962 <can_box>: Remove.
2963 <title>: Remove.
2964 (struct tui_win_info) <make_window>: Declare.
2965 <can_box>: Now virtual.
2966 <title>: New member.
2967 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2968 * tui/tui-command.c (tui_cmd_window::resize): Update.
2969
100c2bf3
TT
29702019-08-20 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2973 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2974 (tui_data_window::check_register_values): Update.
2975
fa4dc567
TT
29762019-08-20 Tom Tromey <tom@tromey.com>
2977
2978 * tui/tui-regs.h (struct tui_data_window): Use
2979 DISABLE_COPY_AND_ASSIGN.
2980 <regs_content>: Change type, removing unique_ptr.
2981 <tui_data_window>: Add move constructor.
2982 * tui/tui-regs.c (tui_data_window::show_registers)
2983 (tui_data_window::show_register_group)
2984 (tui_data_window::display_registers_from)
2985 (tui_data_window::display_registers_from)
2986 (tui_data_window::first_data_item_displayed)
2987 (tui_data_window::delete_data_content_windows)
2988 (tui_data_window::rerender, tui_data_window::refresh_window)
2989 (tui_data_window::check_register_values): Update.
2990
ca02d7c8
TT
29912019-08-20 Tom Tromey <tom@tromey.com>
2992
2993 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2994 show_register_group>: Declare.
2995 (tui_show_register_group): Don't declare.
2996 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2997 tui_show_registers.
2998 (tui_data_window::show_register_group): Rename from
2999 tui_show_register_group.
3000 (tui_data_window::check_register_values, tui_reg_command):
3001 Update.
3002 * tui/tui-layout.c (tui_set_layout): Update.
3003
63356bfd
TT
30042019-08-20 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3007 Declare.
3008 (tui_check_register_values): Don't declare.
3009 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3010 from tui_check_register_values.
3011 * tui/tui-hooks.c (tui_register_changed): Update.
3012
42cc14a7
TT
30132019-08-20 Tom Tromey <tom@tromey.com>
3014
3015 * tui/tui-regs.c (tui_reg_layout): Move later.
3016 (tui_show_registers): Don't enable TUI mode or change layout.
3017
b9ad3686
TT
30182019-08-20 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-regs.h (struct tui_data_item_window)
3021 <~tui_data_item_window>: Remove.
3022 <content>: Now a unique_xmalloc_ptr.
3023 * tui/tui-regs.c (tui_register_format): Return a
3024 unique_xmalloc_ptr.
3025 (tui_get_register): Update.
3026 (~tui_data_item_window): Remove.
3027 (tui_data_window::display_registers_from, tui_display_register):
3028 Update.
3029 * tui/tui-io.h (tui_expand_tabs): Update.
3030 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3031 Remove "col" parameter.
3032
8e114aab
TT
30332019-08-20 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3036 field.
3037 * tui/tui-regs.c (~tui_data_item_window): Update.
3038
1a4f81dd
TT
30392019-08-20 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3042 earlier.
3043
0f8d8876
TT
30442019-08-20 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3047
605dc2c2
TT
30482019-08-20 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-source.h (struct tui_source_window): Update.
3051 * tui/tui-regs.c (tui_show_registers): Update.
3052 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3053 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3054 (NO_REGS_STRING): Remove defines.
3055
aedbe3bb
CM
30562019-08-20 Conrad Meyer <cem@FreeBSD.org>
3057
3058 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3059 unnecessary thread walk if remote doesn't support the packet.
3060
7ce8f214
TT
30612019-08-19 Tom Tromey <tromey@adacore.com>
3062
3063 * python/py-value.c (value_has_field): Fix indentation.
3064
f21c2bd7
TT
30652019-08-19 Tom Tromey <tromey@adacore.com>
3066
3067 * printcmd.c (do_one_display, info_display_command): Update.
3068 * block.h (contained_in): Return bool. Add allow_nested
3069 parameter.
3070 * block.c (contained_in): Return bool. Add allow_nested
3071 parameter.
3072
d806ea2d
TT
30732019-08-19 Tom Tromey <tom@tromey.com>
3074
3075 * configure: Rebuild.
3076 * configure.ac: Disallow the combination of -static-libstdc++ and
3077 source highlight.
3078 * source-cache.c (get_language_name): Handle rust.
3079 (source_cache::get_source_lines): Ignore highlighting exceptions.
3080
398fdd60
TT
30812019-08-16 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3084 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3085 (struct tui_source_window_base) <make_visible, refresh_window,
3086 resize>: Remove methods.
3087 <execution_info>: Remove field.
3088 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3089 (tui_show_source_line, tui_source_window_base)
3090 (~tui_source_window_base): Update.
3091 (tui_source_window_base::resize)
3092 (tui_source_window_base::make_visible)
3093 (tui_source_window_base::refresh_window): Remove.
3094 (tui_source_window_base::update_exec_info): Update.
3095 * tui/tui-source.c (tui_source_window::set_contents): Update.
3096 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3097
e699d331
TT
30982019-08-16 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3101 deprecated_query_hook.
3102
bb01dbfc
TT
31032019-08-16 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3106 (tui_update_source_windows_with_line): Update.
3107 * tui/tui-source.h (struct tui_source_window)
3108 <show_symtab_source>: Declare.
3109 (tui_show_symtab_source): Don't declare.
3110 * tui/tui-source.c (tui_show_symtab_source): Rename from
3111 tui_show_symtab_source.
3112
81c82c4b
TT
31132019-08-16 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-winsource.h (struct tui_source_window_base)
3116 <set_contents>: Declare.
3117 * tui/tui-winsource.c
3118 (tui_source_window_base::update_source_window_as_is): Update.
3119 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3120 Declare.
3121 (tui_set_source_content): Don't declare.
3122 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3123 tui_set_source_content.
3124 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3125 Declare.
3126 (tui_set_disassem_content): Don't declare.
3127 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3128 tui_set_disassem_content.
3129
2ddaf614
TT
31302019-08-16 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-winsource.h (struct tui_source_window_base)
3133 <update_breakpoint_info>: Declare.
3134 (tui_update_breakpoint_info): Don't declare.
3135 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3136 (tui_update_all_breakpoint_info): Update.
3137 (tui_source_window_base::update_breakpoint_info): Rename from
3138 tui_update_breakpoint_info.
3139 (tui_source_window_base::update_exec_info): Update.
3140
017f9828
TT
31412019-08-16 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-winsource.h (struct tui_source_window_base)
3144 <update_source_window>: Declare.
3145 (tui_update_source_window): Don't declare.
3146 * tui/tui-winsource.c
3147 (tui_source_window_base::update_source_window): Rename from
3148 tui_update_source_window.
3149 (tui_source_window_base::rerender): Update.
3150 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3151 * tui/tui-disasm.c (tui_show_disassem)
3152 (tui_show_disassem_and_update_source)
3153 (tui_disasm_window::maybe_update): Update.
3154
ed8358e9
TT
31552019-08-16 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-winsource.h (struct tui_source_window_base)
3158 <update_source_window_as_is>: Declare.
3159 (tui_update_source_window_as_is): Don't declare.
3160 * tui/tui-winsource.c (tui_update_source_window): Update
3161 (tui_source_window_base::update_source_window_as_is): Rename from
3162 tui_update_source_window_as_is.
3163 (tui_source_window_base::refill): Update.
3164 * tui/tui-source.c (tui_show_symtab_source): Update.
3165 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3166 Update.
3167
20149b6b
TT
31682019-08-16 Tom Tromey <tom@tromey.com>
3169
3170 * tui/tui-winsource.h (tui_update_source_window)
3171 (tui_update_source_window_as_is): Remove "noerror" parameter.
3172 * tui/tui-winsource.c (tui_update_source_window)
3173 (tui_update_source_window_as_is): Remove "noerror" parameter.
3174 (tui_update_source_windows_with_addr)
3175 (tui_update_source_windows_with_line)
3176 (tui_source_window_base::rerender)
3177 (tui_source_window_base::refill): Update.
3178 * tui/tui-source.h (tui_set_source_content)
3179 (tui_show_symtab_source): Remove "noerror" parameter.
3180 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3181 parameter.
3182 (tui_show_symtab_source): Likewise.
3183 (tui_source_window::maybe_update): Update.
3184 * tui/tui-disasm.c (tui_show_disassem)
3185 (tui_show_disassem_and_update_source)
3186 (tui_disasm_window::do_scroll_vertical)
3187 (tui_disasm_window::maybe_update): Update.
3188
2d83e710
TT
31892019-08-16 Tom Tromey <tom@tromey.com>
3190
3191 * tui/tui.c (tui_is_window_visible): Update.
3192 * tui/tui-wingeneral.c (tui_make_window)
3193 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3194 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3195 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3196 (tui_set_win_height_command, parse_scrolling_args): Update.
3197 * tui/tui-source.c (tui_source_window::style_changed): Update.
3198 * tui/tui-regs.c (tui_show_registers)
3199 (tui_data_window::first_data_item_displayed)
3200 (tui_data_window::delete_data_content_windows)
3201 (tui_check_register_values, tui_reg_command): Update.
3202 * tui/tui-disasm.c (tui_show_disassem): Update.
3203 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3204 method.
3205 <is_visible>: Remove field.
3206 * tui/tui-data.c (tui_next_win, tui_prev_win)
3207 (tui_delete_invisible_windows): Update.
3208
d4ab829a
TT
32092019-08-16 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <m_has_locator>: Remove.
3213 * tui/tui-layout.c (show_source_disasm_command, show_data)
3214 (show_source_or_disasm_and_command): Update.
3215
aa7ca1bb
AH
32162019-08-16 Alan Hayward <alan.hayward@arm.com>
3217
3218 * NEWS (Other MI changes): New subsection.
3219 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3220 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3221 * arch-utils.c (default_get_pc_address_flags): New function.
3222 * arch-utils.h (default_get_pc_address_flags): New declaration.
3223 * gdbarch.sh: Add get_pc_address_flags.
3224 * gdbarch.c: Regenerate.
3225 * gdbarch.h: Likewise.
3226 * stack.c (print_pc): New function.
3227 (print_frame_info) (print_frame): Call print_pc.
3228
6eac171f
TV
32292019-08-16 Tom de Vries <tdevries@suse.de>
3230
3231 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3232 print_objfile_section_info.
3233
3df505f6
TT
32342019-08-15 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3237 calling update_cmdwin_start_line.
3238 * tui/tui-winsource.h (struct tui_source_window_base)
3239 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3240 <rerender>: Declare.
3241 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3242 Call rerender.
3243 (tui_source_window_base::set_new_height): Remove.
3244 (tui_source_window_base::rerender): Rename from
3245 do_make_visible_with_new_height.
3246 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3247 resize method.
3248 (tui_win_info::make_invisible_and_set_new_height)
3249 (tui_win_info::make_visible_with_new_height): Remove.
3250 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3251 Declare.
3252 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3253 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3254 do_make_visible_with_new_height>: Don't declare.
3255 <rerender>: Declare.
3256 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3257 set_new_height.
3258 (tui_data_window::do_make_visible_with_new_height): Remove.
3259 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3260 call tui_show_locator_content.
3261 (tui_gen_win_info::resize): Call rerender.
3262 (show_source_or_disasm_and_command): Don't call
3263 tui_show_locator_content.
3264 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3265 method.
3266 (struct tui_win_info) <rerender>: Declare.
3267 <set_new_height, make_invisible_and_set_new_height,
3268 make_visible_with_new_height>: Don't declare.
3269 * tui/tui-data.c (tui_win_list::rerender): New method.
3270 * tui/tui-command.h (struct tui_cmd_window)
3271 <do_make_visible_with_new_height>: Don't declare.
3272 * tui/tui-command.c
3273 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3274
272560b5
TT
32752019-08-15 Tom Tromey <tromey@adacore.com>
3276
3277 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3278 * ada-lang.c (ada_enum_name): Likewise.
3279
08235187
CB
32802019-08-15 Christian Biesinger <cbiesinger@google.com>
3281
3282 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3283 leading underscore.
3284 (GdbOutputErrorFile): Likewise.
3285 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3286 accordingly.
3287 (execute_unwinders): Rename to have a leading underscore.
3288 (auto_load_packages): Likewise.
3289 (global scope): Adjust call to auto_load_packages accordingly.
3290 (GdbSetPythonDirectory): Likewise.
3291 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3292 instead of execute_unwinders.
3293
db502012
TT
32942019-08-15 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3297 (show_data): Don't change window visibility.
3298 (tui_gen_win_info::resize): Remove special case for command
3299 window. Use wresize, when available.
3300 (show_source_or_disasm_and_command): Don't change window
3301 visibility.
3302 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3303 <make_visible>: New method.
3304 * tui/tui-command.c (tui_cmd_window::resize): New method.
3305
3891b65e
TT
33062019-08-15 Tom Tromey <tom@tromey.com>
3307
3308 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3309 (struct tui_source_windows): New.
3310 * tui/tui-winsource.c (tui_display_main): Update.
3311 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3312 (new_height_ok, parse_scrolling_args): Update.
3313 * tui/tui-layout.c (show_layout, show_data): Update.
3314 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3315 (tui_add_to_source_windows): Don't declare.
3316 * tui/tui-data.c (source_windows, tui_source_windows)
3317 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3318
ee556432
TT
33192019-08-15 Tom Tromey <tom@tromey.com>
3320
3321 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3322 Rename from reset.
3323 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3324 * tui/tui-layout.c (show_source_disasm_command, show_data):
3325 Update.
3326 (tui_gen_win_info::resize): Rename.
3327 (show_source_or_disasm_and_command): Update.
3328 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3329 reset.
3330
46f438e3
TT
33312019-08-15 Tom Tromey <tom@tromey.com>
3332
3333 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3334 * tui/tui-interp.c (tui_interp::init): Don't call
3335 tui_initialize_static_data.
3336 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3337
f4ce562c
TT
33382019-08-15 Tom Tromey <tom@tromey.com>
3339
3340 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3341 examine tui_win_list.
3342
c398c3d0
TT
33432019-08-15 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3346 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3347 tui_clear_source_content.
3348 (tui_clear_source_content): Remove.
3349 (tui_source_window_base::do_erase_source_content): Hoist call to
3350 content.clear().
3351 * tui/tui-stack.c (tui_show_frame_info): Don't call
3352 tui_clear_source_content.
3353
e25d2004
TT
33542019-08-15 Tom Tromey <tom@tromey.com>
3355
3356 * tui/tui-winsource.h (struct tui_source_window_base)
3357 <do_erase_source_content>: New method.
3358 <erase_source_content>: New method.
3359 (tui_erase_source_content): Don't declare.
3360 * tui/tui-winsource.c (tui_clear_source_content): Update.
3361 (tui_source_window_base::do_erase_source_content): Rename from
3362 tui_erase_source_content.
3363 (tui_source_window_base::show_source_content): Update.
3364 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3365 * tui/tui-source.h (struct tui_source_window)
3366 <erase_source_content>: New method.
3367 * tui/tui-disasm.h (struct tui_disasm_window)
3368 <erase_source_content>: New method.
3369
002f15c2
TT
33702019-08-15 Tom Tromey <tom@tromey.com>
3371
3372 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3373 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3374 constructor.
3375 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3376 * tui/tui-source.c (tui_set_source_content): Update.
3377 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3378
c9033fe8
TT
33792019-08-15 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3382 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3383 tui-source.c.
3384 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3385 Declare.
3386 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3387 method.
3388 (tui_source_window::maybe_update): Update.
3389
088f37dd
TT
33902019-08-15 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3393 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3394 tui-disasm.c.
3395 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3396 Declare.
3397 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3398 method.
3399 (tui_disasm_window::maybe_update): Update.
3400
a54700c6
TT
34012019-08-15 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-winsource.h (struct tui_source_window_base)
3404 <maybe_update>: Declare.
3405 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3406 method.
3407 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3408 Declare.
3409 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3410 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3411 Declare.
3412 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3413
e2a678a5
TT
34142019-08-15 Tom Tromey <tom@tromey.com>
3415
3416 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3417
f2dda477
TT
34182019-08-15 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-wingeneral.c: Include tui-stack.h.
3421 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3422 (struct tui_locator_window): Move from tui-data.h.
3423 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3424 (tui_initialize_static_data): Move from tui-data.c.
3425 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3426 (struct tui_locator_window): Move to tui-stack.c.
3427 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3428 (tui_initialize_static_data): Move to tui-stack.c.
3429
ed4a1084
TT
34302019-08-15 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-layout.c (show_source_disasm_command)
3433 (show_source_or_disasm_and_command): Use make_visible method, not
3434 tui_make_window.
3435 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3436 Remove.
3437
65962b20
TT
34382019-08-15 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-wingeneral.h (tui_make_window): Update.
3441 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3442 parameter.
3443 (tui_gen_win_info::make_visible): Update.
3444 * tui/tui-regs.c (tui_data_window::display_registers_from):
3445 Update.
3446 * tui/tui-layout.c (show_source_disasm_command)
3447 (show_source_or_disasm_and_command): Update.
3448 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3449 (enum tui_box): Remove.
3450 (struct tui_win_info) <can_box>: New method.
3451 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3452 method.
3453
2208ee91
TV
34542019-08-15 Tom de Vries <tdevries@suse.de>
3455
3456 * linux-nat-trad.c: Include gdbarch.h.
3457
75faf5c4
AH
34582019-08-14 Alan Hayward <alan.hayward@arm.com>
3459
3460 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3461 register sizes.
3462
b1c896b3
TT
34632019-08-14 Tom Tromey <tromey@adacore.com>
3464
3465 * darwin-nat.c: Include gdbarch.h.
3466 * darwin-nat-info.c: Include gdbarch.h.
3467
6405cd73
TT
34682019-08-13 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3471 Remove.
3472 * tui/tui-data.c (tui_initialize_static_data): Update.
3473
5216580d
TT
34742019-08-13 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-winsource.h (struct tui_exec_info_window)
3477 <~tui_exec_info_window, maybe_allocate_content, get_content,
3478 m_content>: Remove.
3479 (struct tui_source_window_base) <set_exec_info_content,
3480 show_exec_info_content>: Don't declare.
3481 * tui/tui-winsource.c
3482 (tui_exec_info_window::maybe_allocate_content): Remove.
3483 (tui_source_window_base::update_exec_info): Rename from
3484 set_exec_info_content.
3485 (tui_source_window_base::show_exec_info_content)
3486 (tui_source_window_base::update_exec_info): Remove.
3487
93858ad3
TT
34882019-08-13 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3491 declare.
3492 * tui/tui-winsource.c (tui_update_source_window_as_is)
3493 (tui_update_source_windows_with_addr, tui_erase_source_content):
3494 Update.
3495 (tui_clear_exec_info_content): Remove.
3496
e321e7ce
TT
34972019-08-13 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3500 declare.
3501 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3502 call tui_erase_exec_info_content.
3503 (tui_clear_exec_info_content): Rename from
3504 tui_erase_exec_info_content.
3505 (tui_clear_exec_info_content): Delete.
3506
8270ac62
TT
35072019-08-13 Tom Tromey <tom@tromey.com>
3508
3509 * tui/tui-winsource.h (struct tui_source_window_base)
3510 <show_exec_info_content>: Declare.
3511 (tui_show_exec_info_content): Don't declare.
3512 * tui/tui-winsource.c
3513 (tui_source_window_base::show_exec_info_content): Rename from
3514 tui_show_exec_info_content.
3515 (tui_source_window_base::update_exec_info): Update.
3516
7b56485d
TT
35172019-08-13 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3520 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3521 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3522 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3523 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3524 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3525 ... here.
3526
7ba913dc
TT
35272019-08-13 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.h (struct tui_source_window_base)
3530 <update_exec_info>: Declare.
3531 (tui_update_exec_info): Don't declare.
3532 * tui/tui-winsource.c (tui_update_source_window_as_is)
3533 (tui_source_window_base::refresh_all)
3534 (tui_update_all_breakpoint_info): Update.
3535 (tui_source_window_base::update_exec_info): Rename from
3536 tui_update_exec_info.
3537 * tui/tui-stack.c (tui_show_frame_info): Update.
3538
37a4a131
TT
35392019-08-13 Tom Tromey <tom@tromey.com>
3540
3541 * tui/tui-winsource.h (struct tui_source_window_base)
3542 <set_exec_info_content>: Declare.
3543 (tui_set_exec_info_content): Don't declare.
3544 * tui/tui-winsource.c
3545 (tui_source_window_base::set_exec_info_content): Rename from
3546 tui_set_exec_info_content.
3547 (tui_update_exec_info): Update.
3548
0bd27e07
TT
35492019-08-13 Tom Tromey <tom@tromey.com>
3550
3551 * tui/tui-winsource.h (struct tui_source_window_base)
3552 <show_source_content>: Declare.
3553 (tui_show_source_content): Don't declare.
3554 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3555 (tui_source_window_base::show_source_content): Rename from
3556 tui_show_source_content.
3557 (tui_source_window_base::refresh_all): Update.
3558 * tui/tui-layout.c (show_source_disasm_command)
3559 (show_source_or_disasm_and_command): Update.
3560
b4ef5aeb
TT
35612019-08-13 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-winsource.c (tui_erase_source_content)
3564 (tui_show_source_content, tui_source_window_base::refresh_all):
3565 Update.
3566 * tui/tui-wingeneral.h
3567 (tui_check_and_display_highlight_if_needed): Don't declare.
3568 * tui/tui-wingeneral.c
3569 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3570 check_and_display_highlight_if_needed.
3571 * tui/tui-win.c (tui_rehighlight_all)
3572 (tui_win_info::make_visible_with_new_height): Update.
3573 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3574 (tui_data_window::erase_data_content)
3575 (tui_data_window::display_all_data): Update.
3576 * tui/tui-data.h (struct tui_win_info)
3577 <check_and_display_highlight_if_needed>: Declare.
3578
fede5273
TT
35792019-08-13 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-win.c (tui_resize_all): Call
3582 tui_delete_invisible_windows.
3583 * tui/tui-layout.c (show_layout): Call
3584 tui_delete_invisible_windows.
3585 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3586 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3587
22c3f490
TT
35882019-08-13 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3591 tui_add_win_to_layout.
3592
16cb7910
TT
35932019-08-13 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3596 * tui/tui-layout.c (tui_default_win_height): Now static.
3597
cc0c3ffb
TT
35982019-08-13 Tom Tromey <tom@tromey.com>
3599
3600 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3601 single switch.
3602 (show_source_disasm_command, show_source_or_disasm_and_command):
3603 Don't check current layout.
3604
3f3ffe54
TT
36052019-08-13 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-wingeneral.c (make_all_visible): Remove.
3608 (tui_make_all_invisible): Simplify.
3609 * tui/tui-layout.c (tui_make_all_invisible): Move from
3610 tui-wingeneral.c; simplify.
3611 (show_layout): Hoist call to tui_make_all_invisible.
3612 (show_data): Don't call tui_make_all_invisible.
3613
69258091
TT
36142019-08-13 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3617 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3618
62cf57fe
TT
36192019-08-13 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3622 tui-data.c.
3623 (show_source_disasm_command, show_data)
3624 (show_source_or_disasm_and_command): Don't use
3625 tui_set_current_layout_to.
3626 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3627 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3628 tui-layout.c.
3629 (tui_set_current_layout_to): Remove.
3630
2afade5d
TT
36312019-08-13 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-layout.c (tui_set_layout): Update.
3634 * tui/tui-data.h (struct tui_layout_def): Remove.
3635 (tui_layout_def): Don't declare.
3636 * tui/tui-data.c (layout_def): Remove.
3637 (tui_layout_def): Remove.
3638
a3504e96
TT
36392019-08-13 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-winsource.h (struct tui_source_window_base)
3642 <clear_detail>: No longer "override".
3643 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3644 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3645 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3646 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3647 Remove.
3648 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3649
29c92911
TT
36502019-08-13 Tom Tromey <tromey@adacore.com>
3651
3652 * tracepoint.c: Don't include readline.h or history.h.
3653
86c6b807
TT
36542019-08-12 Tom Tromey <tom@tromey.com>
3655
3656 * configure: Rebuild.
3657 * configure.ac: Check for readline 7.
3658 * NEWS: Mention readline 7 requirement.
3659 * README: Update.
3660
5db2718c
TT
36612019-08-12 Tom Tromey <tom@tromey.com>
3662
3663 * mingw-hdep.c (gdb_select): Remove readline hack.
3664
dac36daf
PFC
36652019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3666
3667 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3668 when the function fails.
3669
1022c627
AA
36702019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3671
3672 * s390-tdep.c (s390_type_align): New function.
3673 (s390_gdbarch_init): Set it as type_align gdbarch method.
3674
eba4caf2
TV
36752019-08-09 Tom de Vries <tdevries@suse.de>
3676
3677 PR gdb/24591
3678 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3679 pc_low with relocation offset.
3680
123cd851
TT
36812019-08-07 Tom Tromey <tromey@adacore.com>
3682
3683 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3684 (print_frame_args): Update.
3685 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3686 Update.
3687 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3688 * frame.h (struct frame_arg): Add initializers.
3689 <error>: Now a unique_xmalloc_ptr.
3690
3d31bc39
AH
36912019-08-07 Alan Hayward <alan.hayward@arm.com>
3692
3693 * NEWS: Expand the Pointer Authentication entry.
3694 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3695 (aarch64_frame_unmask_lr): ... to this.
3696 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3697 Call aarch64_frame_unmask_lr.
3698 * frame.c (struct frame_info): Add "masked" variable.
3699 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3700 (fprint_frame): Check for masked pc.
3701 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3702 declarations.
3703 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3704 * stack.c (print_frame): Check for masked pc.
3705
0cf9feb9
TT
37062019-08-06 Tom Tromey <tom@tromey.com>
3707
3708 * stabsread.c (patch_block_stabs, read_one_struct_field)
3709 (read_enum_type): Use obstack_strndup.
3710 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3711 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3712 * dwarf2read.c (guess_full_die_structure_name)
3713 (anonymous_struct_prefix): Use obstack_strndup.
3714 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3715 * c-exp.y (yylex): Use obstack_strndup.
3716 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3717 (write_var_or_type): Use obstack_strndup.
3718
efba19b0
TT
37192019-08-06 Tom Tromey <tom@tromey.com>
3720
3721 * symfile.c (reread_symbols): Use obstack_strdup.
3722 * stabsread.c (read_type): Use obstack_strdup.
3723 * gdb_obstack.h (obstack_strdup): New overload.
3724 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3725 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3726 (dwarf2_canonicalize_name): Use obstack_strdup.
3727 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3728 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3729 Use obstack_strdup.
3730
f25102f7
TT
37312019-08-06 Tom Tromey <tom@tromey.com>
3732
3733 * gdb_obstack.h (obstack_strdup): Define.
3734 * gdb_obstack.c (obstack_strdup): Don't define.
3735
021887d8
TT
37362019-08-06 Tom Tromey <tom@tromey.com>
3737
3738 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3739 obstack_strdup.
3740 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3741 obstack_strdup.
3742 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3743 * stabsread.c (common_block_start): Use obstack_strdup.
3744 * objfiles.c (set_objfile_main_name, objfile): Use
3745 obstack_strdup.
3746 * namespace.c (add_using_directive): Use obstack_strdup.
3747 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3748 * jit.c (finalize_symtab): Use obstack_strdup.
3749 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3750 (guess_partial_die_structure_name, partial_die_info::fixup)
3751 (dwarf2_name): Use obstack_strdup.
3752 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3753 obstack_strdup.
3754 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3755 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3756 obstack_strdup.
3757 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3758
d2834edc
PW
37592019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3760
3761 * unittests/help-doc-selftests.c: New file.
3762 * Makefile.in: Add the new file.
3763
590042fc
PW
37642019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3765
3766 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3767 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3768 the full first line, except when FOR_VALUE_PREFIX. In this case,
3769 the trailing '.' is not output, and the first character is uppercased.
3770 (print_help_for_command): Update call to print_doc_line.
3771 (print_doc_of_command): Likewise.
3772 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3773 * cli/cli-option.c (append_indented_doc): Do not append newline.
3774 (build_help_option): Append newline after first appended_indented_doc
3775 only if a second call is done.
3776 (build_help): Append 2 new lines before each option, except the first
3777 one.
3778 * compile/compile.c (_initialize_compile): Add new lines after
3779 %OPTIONS%, when not at the end of the help.
3780 Change help doc or code
3781 producing the help doc to respect the invariants.
3782 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3783 Also removed the new line after 'Options:', as all other commands
3784 do not put an empty line between 'Options:' and the first option.
3785 * printcmd.c (_initialize_printcmd): Likewise.
3786 * stack.c (_initialize_stack): Likewise.
3787 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3788 incorrectly telling COMMAND is optional.
3789 * ada-lang.c (_initialize_ada_language): Change help doc or code
3790 producing the help doc to respect the invariants.
3791 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3792 * breakpoint.c (_initialize_breakpoint): Likewise.
3793 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3794 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3795 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3796 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3797 _initialize_cli_style): Likewise.
3798 * corelow.c (core_target_info): Likewise.
3799 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3800 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3801 * filesystem.c (_initialize_filesystem): Likewise.
3802 * frame.c (_initialize_frame): Likewise.
3803 * gnu-nat.c (add_task_commands): Likewise.
3804 * infcall.c (_initialize_infcall): Likewise.
3805 * infcmd.c (_initialize_infcmd): Likewise.
3806 * interps.c (_initialize_interpreter): Likewise.
3807 * language.c (_initialize_language): Likewise.
3808 * linux-fork.c (_initialize_linux_fork): Likewise.
3809 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3810 * maint.c (_initialize_maint_cmds): Likewise.
3811 * memattr.c (_initialize_mem): Likewise.
3812 * printcmd.c (_initialize_printcmd): Likewise.
3813 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3814 _RegEx): Likewise.
3815 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3816 * record-btrace.c (_initialize_record_btrace): Likewise.
3817 * record-full.c (_initialize_record_full): Likewise.
3818 * record.c (_initialize_record): Likewise.
3819 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3820 * regcache.c (_initialize_regcache): Likewise.
3821 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3822 _initialize_remote): Likewise.
3823 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3824 * serial.c (_initialize_serial): Likewise.
3825 * skip.c (_initialize_step_skip): Likewise.
3826 * source.c (_initialize_source): Likewise.
3827 * stack.c (_initialize_stack): Likewise.
3828 * symfile.c (_initialize_symfile): Likewise.
3829 * symtab.c (_initialize_symtab): Likewise.
3830 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3831 * top.c (init_main): Likewise.
3832 * tracefile-tfile.c (tfile_target_info): Likewise.
3833 * tracepoint.c (_initialize_tracepoint): Likewise.
3834 * tui/tui-win.c (_initialize_tui_win): Likewise.
3835 * utils.c (add_internal_problem_command): Likewise.
3836 * valprint.c (value_print_option_defs): Likewise.
3837
404f2902
FCE
38382019-08-06 Frank Ch. Eigler <fche@redhat.com>
3839
3840 PR build/24886
3841 * configure.ac: Drop enable-libmcheck support.
3842 * configure, config.in: Rebuild.
3843 * libmcheck.m4: Remove.
3844 * acinclude.m4: Don't include it.
3845 * Makefile.in: Don't distribute it.
3846 * top.c (print_gdb_configuration): Don't mention it.
3847
046bebe1
TT
38482019-08-06 Tom Tromey <tom@tromey.com>
3849
3850 * utils.c (set_output_style): Sometimes pass stream to
3851 emit_style_escape.
3852 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3853 * record-btrace.c (btrace_insn_history): Update.
3854 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3855 method.
3856 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3857 Update initializers.
3858 <m_uiout>: New field.
3859 <m_di>: Move lower.
3860 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3861 Remove "uiout" parameter.
3862 (dump_insns): Update.
3863 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3864 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3865
ddbcedf5
CB
38662019-08-06 Christian Biesinger <cbiesinger@google.com>
3867
3868 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3869 (error_in_psymtab_expansion): Likewise.
3870 (lookup_symbol_via_quick_fns): Likewise.
3871 (basic_lookup_transparent_type_quick): Likewise.
3872 (basic_lookup_transparent_type_1): Likewise.
3873
b08b16c8
TT
38742019-08-06 Tom Tromey <tromey@adacore.com>
3875
3876 * source.c (last_source_error): Now bool.
3877 (print_source_lines_base): Make "noprint" bool. Only open
3878 source file when last_source_visited changes.
3879
cb44333d
TT
38802019-08-06 Tom Tromey <tromey@adacore.com>
3881
3882 * annotate.c (annotate_source_line): Use g_source_cache.
3883 * source-cache.c (source_cache::get_plain_source_lines): Change
3884 parameters. Populate m_offset_cache.
3885 (source_cache::ensure): New method.
3886 (source_cache::get_line_charpos): New method.
3887 (extract_lines): Move lower. Change parameters.
3888 (source_cache::get_source_lines): Move lower.
3889 * source-cache.h (class source_cache): Update comment.
3890 <get_line_charpos>: New method.
3891 <get_source_lines>: Update comment.
3892 <clear>: Clear m_offset_cache.
3893 <get_plain_source_lines>: Change parameters.
3894 <ensure>: New method
3895 <m_offset_cache>: New member.
3896 * source.c (forget_cached_source_info_for_objfile): Update.
3897 (info_source_command): Use g_source_cache.
3898 (find_source_lines, open_source_file_with_line_charpos): Remove.
3899 (print_source_lines_base, search_command_helper): Use g_source_cache.
3900 * source.h (open_source_file_with_line_charpos): Don't declare.
3901 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3902 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3903 Use g_source_cache.
3904
872dceaa
TT
39052019-08-06 Tom Tromey <tromey@adacore.com>
3906
3907 * source-cache.c (source_cache::get_plain_source_lines):
3908 Remove "first_line" and "last_line" parameters.
3909 (source_cache::get_source_lines): Cache plain text.
3910 * source-cache.h (class source_cache)
3911 <get_plain_source_lines>: Update.
3912
269249d9
TT
39132019-08-06 Tom Tromey <tromey@adacore.com>
3914
3915 * source-cache.c (extract_lines): No longer a method.
3916 Changed type of parameter. Include final newline.
3917 (selftests::extract_lines_test): New function.
3918 (_initialize_source_cache): Likewise.
3919 * source-cache.h (class source_cache)
3920 <extract_lines>: Don't declare.
3921
c0e8dcd8
TT
39222019-08-06 Tom Tromey <tromey@adacore.com>
3923
3924 * breakpoint.c (init_breakpoint_sal): Update.
3925 (breakpoint): Update.
3926 * breakpoint.h (struct breakpoint) <filter>: Now a
3927 unique_xmalloc_ptr.
3928
0b27c27d
CB
39292019-08-05 Christian Biesinger <cbiesinger@google.com>
3930
3931 * NEWS: Mention dictionary access on blocks.
3932 * python/py-block.c (blpy_getitem): New function.
3933 (block_object_as_mapping): New struct.
3934 (block_object_type): Use new struct for tp_as_mapping field.
3935
4ee94178
CB
39362019-08-05 Christian Biesinger <cbiesinger@google.com>
3937
3938 * objfiles.h (objfile): Add a comment describing partial symbols.
3939
8abfcabc
TT
39402019-08-05 Tom Tromey <tromey@adacore.com>
3941
3942 * compile/compile.c (_initialize_compile): Use _(), not N_().
3943 * thread.c (_initialize_thread): Use _(), not N_().
3944 * stack.c (_initialize_stack): Use _(), not N_().
3945 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3946
2b79f376
SM
39472019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * dwarf2read.c (struct dw2_symtab_iterator):
3950 <want_specific_block>: Remove.
3951 <block_index>: Change type to gdb::optional.
3952 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3953 change type of BLOCK_INDEX parameter to gdb::optional.
3954 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3955 (dw2_lookup_symbol): Don't pass argument for
3956 WANT_SPECIFIC_BLOCK.
3957 (dw2_expand_symtabs_for_function): Don't pass argument for
3958 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3959 (class dw2_debug_names_iterator)
3960 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3961 parameter, change BLOCK_INDEX type to gdb::optional.
3962 <m_want_specific_block>: Remove.
3963 <m_block_index>: Change type to gdb::optional.
3964 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3965 gdb::optional. Re-write in function of gdb::optional.
3966 (dw2_debug_names_lookup_symbol): Don't pass argument for
3967 WANT_SPECIFIC_BLOCK.
3968 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3969 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3970 BLOCK_INDEX.
3971
ae60f04e
PW
39722019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973
3974 * NEWS: Mention changes to "info sources" command.
3975
28cd9371
PW
39762019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3977
3978 * symtab.c (filename_partial_match_opts): New struct type.
3979 (struct output_source_filename_data): New members
3980 regexp, c_regexp, partial_match.
3981 (output_source_filename): Use new members to decide to print file.
3982 (info_sources_option_defs): New variable.
3983 (make_info_sources_options_def_group, print_info_sources_header,
3984 info_sources_command_completer):
3985 New functions.
3986 (info_sources_command): Read new optional arguments.
3987 (_initialize_symtab): Update info sources help.
3988
ca683e3a
AO
39892019-08-02 Alexandre Oliva <oliva@adacore.com>
3990
3991 * ada-lang.c (exception_support_info_v0): Renamed from...
3992 (default_exception_support_info): ... this. Create new
3993 definition for v1.
3994 (ada_has_this_exception_support): Look up catch_handlers_sym.
3995 (ada_exception_support_info_sniffer): Try v0 after default.
3996
f1264162
TT
39972019-08-01 Tom Tromey <tromey@adacore.com>
3998
3999 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4000 gdbarch.h.
4001
0a7b2485
CB
40022019-08-01 Christian Biesinger <cbiesinger@google.com>
4003
4004 * s12z-tdep.c: Fix include path for s12z-opc.h.
4005
c6bdbeb7
AH
40062019-08-01 Alan Hayward <alan.hayward@arm.com>
4007
4008 * NEWS: Require GNU make 3.82.
4009
a2bd7b82
TT
40102019-07-16 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4013 declare.
4014
aa3b6533
TT
40152019-07-30 Tom Tromey <tromey@adacore.com>
4016
4017 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4018
a1530dc7
KB
40192019-07-30 Kevin Buettner <kevinb@redhat.com>
4020
4021 * printcmd.c (print_address_symbolic): Print negative offsets.
4022 (build_address_symbolic): Force signed arithmetic when computing
4023 offset.
4024
2906593f
CB
40252019-07-30 Christian Biesinger <cbiesinger@google.com>
4026
4027 PR/24474: Add a function to lookup static variables.
4028 * NEWS: Mention this new function.
4029 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4030 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4031 * python/python.c (python_GdbMethods): Add new function.
4032
c620ed88
CB
40332019-07-29 Christian Biesinger <cbiesinger@google.com>
4034
4035 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4036 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4037 (objfpy_lookup_static_symbol): New function.
4038 (objfile_object_methods): Add new functions.
4039
bc4268a5
PW
40402019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4041
4042 * NEWS: Mention 'set|show print frame-info'. Mention new
4043 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4044 backtrace argument. Mention that python frame filtering code
4045 is now consistent with what 'backtrace' command prints.
4046
4b5e8d19
PW
40472019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4048
4049 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4050 comments.
4051 (print_frame_info_auto, print_frame_info_source_line,
4052 print_frame_info_location, print_frame_info_source_and_location,
4053 print_frame_info_location_and_address, print_frame_info_short_location):
4054 New declarations.
4055 (struct frame_print_options): New member print_frame_info.
4056 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4057 * stack.h (get_user_print_what_frame_info): New declaration.
4058 (frame_show_address): New declaration.
4059 * stack.c (print_frame_arguments_choices): New value 'presence'.
4060 (print_frame_info_auto, print_frame_info_source_line,
4061 print_frame_info_location, print_frame_info_source_and_location,
4062 print_frame_info_location_and_address, print_frame_info_short_location,
4063 print_frame_info_choices, print_frame_info_print_what): New definitions.
4064 (print_frame_args): Only print dots for args if print frame-arguments
4065 is 'presence'.
4066 (frame_print_option_defs): New element for "frame-info".
4067 (get_user_print_what_frame_info): New function.
4068 (frame_show_address): Make non static. Move comment to stack.h.
4069 (print_frame_info_to_print_what): New function.
4070 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4071 to decide what to print.
4072 (backtrace_command_1): Handle the new print_frame_arguments_presence
4073 value.
4074 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4075 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4076 (py_print_frame): In non-mi mode, use LOCATION as default for
4077 print_what, similarly to frame information printed directly by
4078 backtrace command. Handle frame-info user option in non MI mode.
4079
6bdfee81
KB
40802019-07-27 Kevin Buettner <kevinb@redhat.com>
4081
4082 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4083 Add case for debugging 32-bit target on 64-bit host. Revise
4084 comment.
4085
98a617f8
KB
40862019-07-27 Kevin Buettner <kevinb@redhat.com>
4087
4088 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4089 instead of find_function_entry_range_from_pc.
4090
567238c9
KB
40912019-07-27 Kevin Buettner <kevinb@redhat.com>
4092
4093 * stack.c (find_frame_funname): Remove code which preferred
4094 minsym over symtab sym in "certain pathological cases".
4095
2dc80cf8
KB
4096 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4097 parameter. Change type of "do_demangle" to bool.
4098 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4099 Pass suitable "prefer_sym_over_minsym" flag to
4100 build_address_symbolic(). Don't output "+" for negative offsets.
4101 * printcmd.c (print_address_symbolic): Update invocation of
4102 build_address_symbolic to include a "prefer_sym_over_minsym"
4103 flag.
4104 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4105 Restrict cases in which use of minimal symbol is preferred to that
4106 of a found symbol. Update comments.
4107
1aff7173
KB
4108 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4109 for entry pc when entry pc is out of range for that FDE.
4110
89b085ac
BC
41112019-07-26 Brian Callahan <bcallah@openbsd.org>
4112
4113 PR gdb/24839:
4114 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4115 type.
4116
f32feb4a
CB
41172019-07-25 Christian Biesinger <cbiesinger@google.com>
4118
4119 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4120 this function's Python signature.
4121
4122
41232019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4124
4125 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4126 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4127 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4128 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4129 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4130
4131
c54e4253
YS
41322019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4133
4134 * h8300-tdep.c (h8300_register_name_common): New.
4135 h8300_register_name): Use h8300_register_name_common.
4136 (h8300s_register_name): Likewise.
4137 (h8300sx_register_name): Likewise.
4138 (h8300h_register_nam): New.
4139 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4140
4141
40eadf04
SP
41422019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4143
4144 * arm-tdep.c (arm_skip_cmse_entry): New function.
4145 (arm_is_sgstubs_section): New function.
4146 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4147
bfa2a36d
TT
41482019-07-22 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4151 Don't self-assign.
4152
a8e9d247
AB
41532019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4156 type_print.
4157
eb86c5e2
AB
41582019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4161 so that GDB doesn't match any msymbols when searching in the
4162 TYPES_DOMAIN.
4163 (print_symbol_info): Print using typedef_print or type_print based
4164 on the type of the symbol. Add updated FIXME comment moved from...
4165 (_initialize_symtab): ... move and update FIXME comment to above.
4166
a8eab7c6
AB
41672019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4168
4169 * NEWS: Mention adding -q option to "info types".
4170 * symtab.c (struct info_types_options): New struct.
4171 (info_types_options_defs): New variable.
4172 (make_info_types_options_def_group): New function.
4173 (info_types_command): Use gdb::option framework to parse options.
4174 (info_types_command_completer): New function.
4175 (_initialize_symtab): Extend the help text on "info types" and
4176 register command completer.
4177
b4603c34
CB
41782019-07-21 Christian Biesinger <cbiesinger@google.com>
4179
4180 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4181 (lookup_symbol_in_objfile): Change int to block_enum and add a
4182 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4183
c8cdc1e0
CB
41842019-07-20 Christian Biesinger <cbiesinger@google.com>
4185
4186 * MAINTAINERS (Write After Approval): Add self.
4187
01e175fe
AB
41882019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4191 instruction to the dummy code region.
4192
56f79b63
TT
41932019-07-19 Tom Tromey <tromey@adacore.com>
4194
4195 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4196 (ARGSUSED, PARAMS, __func__): Remove rules.
4197
4c5aa8e0
AH
41982019-07-19 Alan Hayward <alan.hayward@arm.com>
4199
4200 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4201 * features/arm/arm-with-iwmmxt.c: Remove.
4202 * features/arm/arm-with-iwmmxt.xml: Remove.
4203 * features/arm/arm-with-m-fpa-layout.c: Remove.
4204 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4205 * features/arm/arm-with-m-vfp-d16.c: Remove.
4206 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4207 * features/arm/arm-with-m.c: Remove.
4208 * features/arm/arm-with-m.xml: Remove.
4209 * features/arm/arm-with-neon.c: Remove.
4210 * features/arm/arm-with-neon.xml: Remove.
4211 * features/arm/arm-with-vfpv2.c: Remove.
4212 * features/arm/arm-with-vfpv2.xml: Remove.
4213 * features/arm/arm-with-vfpv3.c: Remove.
4214 * features/arm/arm-with-vfpv3.xml: Remove.
4215
f42b2617
AH
42162019-07-19 Alan Hayward <alan.hayward@arm.com>
4217
4218 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4219
f29ec966
AH
42202019-07-19 Alan Hayward <alan.hayward@arm.com>
4221
4222 * arch/aarch32.c (aarch32_create_target_description): Create
4223 target descriptions using features.
4224 * arch/arm.c (arm_create_target_description)
4225 (arm_create_mprofile_target_description): Likewise.
4226 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4227
d105cce5
AH
42282019-07-19 Alan Hayward <alan.hayward@arm.com>
4229
4230 * Makefile.in: Add new files.
4231 * aarch32-tdep.c: New file.
4232 * aarch32-tdep.h: New file.
4233 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4234 Call aarch32_read_description.
4235 * arch/aarch32.c: New file.
4236 * arch/aarch32.h: New file.
4237 * arch/arm.c (arm_create_target_description)
4238 (arm_create_mprofile_target_description): New function.
4239 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4240 (arm_create_target_description)
4241 (arm_create_mprofile_target_description): New declaration.
4242 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4243 read_description functions.
4244 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4245 Likewise.
4246 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4247 * arm-tdep.c (tdesc_arm_list): New variable.
4248 (arm_register_g_packet_guesses): Call create description functions.
4249 (arm_read_description) (arm_read_mprofile_description): New
4250 function.
4251 * arm-tdep.h (arm_read_description)
4252 (arm_read_mprofile_description): Add declaration.
4253 * configure.tgt: Add new files.
4254
afe09f0b
GL
42552019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4256
4257 * top.c (new_ui_command): Open specified terminal just once.
4258
cd215b2e
TT
42592019-07-18 Tom Tromey <tromey@adacore.com>
4260
4261 * symtab.c (main_name): Constify return type.
4262 * symfile.c (set_initial_language): Update.
4263 * symtab.h (main_name): Constify return type.
4264
d8f68fcb
TT
42652019-07-17 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-winsource.c (tui_update_source_window)
4268 (tui_update_source_window_as_is)
4269 (tui_update_source_windows_with_line): Remove return.
4270 * tui/tui-disasm.c (tui_show_disassem)
4271 (tui_show_disassem_and_update_source): Remove return.
4272 * tui/tui.c (tui_reset): Remove return.
4273 * tui/tui-wingeneral.c
4274 (tui_check_and_display_highlight_if_needed): Remove return.
4275
ca5af91e
TT
42762019-07-17 Tom Tromey <tom@tromey.com>
4277
4278 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4279
5104fe36
TT
42802019-07-17 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-winsource.h (struct tui_exec_info_window)
4283 (struct tui_source_window_base): Move from tui-data.h.
4284 * tui/tui-winsource.c: Move many method definitions from
4285 elsewhere. Remove "structuring" comments.
4286 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4287 (tui_source_window_base::refresh_window): Move to
4288 tui-winsource.c.
4289 * tui/tui-win.c (tui_source_window_base::refresh_all)
4290 (tui_source_window_base::update_tab_width)
4291 (tui_source_window_base::set_new_height)
4292 (tui_source_window_base::do_make_visible_with_new_height): Move to
4293 tui-winsource.c.
4294 * tui/tui-source.h: Update.
4295 * tui/tui-source.c (tui_source_window_base::reset): Move to
4296 tui-winsource.c.
4297 * tui/tui-disasm.h: Update.
4298 * tui/tui-data.h (struct tui_exec_info_window): Move to
4299 tui-winsource.h.
4300 (struct tui_source_window_base): Likewise.
4301 * tui/tui-data.c (tui_source_window_base::clear_detail)
4302 (tui_source_window_base, ~tui_source_window_base): Move to
4303 tui-winsource.c.
4304
daa15dde
TT
43052019-07-17 Tom Tromey <tom@tromey.com>
4306
4307 * tui/tui-win.c (tui_resize_all)
4308 (tui_source_window_base::update_tab_width)
4309 (tui_adjust_win_heights): Update.
4310 (tui_win_info::make_invisible_and_set_new_height): Rename from
4311 make_invisible_and_set_new_height.
4312 * tui/tui-data.h (struct tui_win_info)
4313 <make_invisible_and_set_new_height>: New method.
4314
bfad4537
TT
43152019-07-17 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui.c: Update.
4318 * tui/tui-source.h (struct tui_source_window): Move from
4319 tui-data.h.
4320 * tui/tui-layout.c: Update.
4321 * tui/tui-disasm.c: Update.
4322 * tui/tui-data.h (struct tui_source_window): Move to
4323 tui-source.h.
4324
88f7e873
TT
43252019-07-17 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4328 tui-data.h.
4329 * tui/tui-data.h (struct tui_disasm_window): Move to
4330 tui-disasm.h.
4331
96bd6233
TT
43322019-07-17 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-regs.h (struct tui_data_item_window): Move from
4335 tui-data.h.
4336 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4337 * tui/tui-data.h (struct tui_data_item_window): Move to
4338 tui-regs.h.
4339 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4340
ce38393b
TT
43412019-07-17 Tom Tromey <tom@tromey.com>
4342
4343 * tui/tui.c: Update.
4344 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4345 (tui_cmd_window::max_height): Move to tui-command.c.
4346 * tui/tui-layout.c: Update.
4347 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4348 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4349 tui-command.c.
4350 * tui/tui-command.h (struct tui_cmd_window): Move from
4351 tui-data.h.
4352 * tui/tui-command.c: Remove "structuring" comments.
4353 (tui_cmd_window::clear_detail)
4354 (tui_cmd_window::do_make_visible_with_new_height)
4355 (tui_cmd_window::max_height): Move from elsewhere.
4356
2d8b51cb
TT
43572019-07-17 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4360 Now static.
4361 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4362 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4363
18ab23af
TT
43642019-07-17 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui.c: Update.
4367 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4368 tui-regs.c.
4369 * tui/tui-windata.h: Remove file.
4370 * tui/tui-windata.c: Remove file.
4371 * tui/tui-win.c (tui_data_window::set_new_height)
4372 (tui_data_window::do_make_visible_with_new_height): Move to
4373 tui-regs.c.
4374 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4375 * tui/tui-regs.c: Remove "structuring" comments.
4376 (tui_data_window::first_data_item_displayed)
4377 (tui_data_window::delete_data_content_windows)
4378 (tui_data_window::erase_data_content)
4379 (tui_data_window::display_all_data)
4380 (tui_data_window::refresh_all)
4381 (tui_data_window::do_scroll_vertical)
4382 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4383 (tui_data_window::do_make_visible_with_new_height)
4384 (tui_data_window::refresh_window): Move from elsewhere.
4385 (_initialize_tui_regs): Move to end of file.
4386 * tui/tui-layout.c: Update.
4387 * tui/tui-hooks.c: Update.
4388 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4389 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4390 tui-regs.c.
4391 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4392
88b7e7cc
TT
43932019-07-17 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4396 seen.
4397
0fcd3711
TT
43982019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-win.c (tui_source_window_base::set_new_height)
4401 (tui_source_window_base::do_make_visible_with_new_height): Use
4402 m_has_locator field directly.
4403 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4404 method.
4405 (struct tui_source_window_base) <has_locator>: Likewise.
4406
4a38112d
TT
44072019-07-17 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4410 Don't declare.
4411 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4412 Remove.
4413 * tui/tui-win.c (tui_source_window_base::set_new_height)
4414 (tui_source_window_base::set_new_height)
4415 (make_invisible_and_set_new_height)
4416 (tui_source_window_base::do_make_visible_with_new_height)
4417 (tui_source_window_base::do_make_visible_with_new_height):
4418 Update.
4419 * tui/tui-layout.c (show_source_disasm_command, show_data)
4420 (show_source_or_disasm_and_command): Update.
4421 * tui/tui-layout.c (show_layout): Update.
4422
09129226
TT
44232019-07-17 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-layout.c (make_data_window): Remove.
4426 (show_data): Unify creation and re-initialization cases.
4427
4a8a5e84
TT
44282019-07-17 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-layout.c (make_source_window, make_disasm_window):
4431 Remove.
4432 (show_data): Unify creation and re-initialization cases.
4433
76d2be8e
TT
44342019-07-17 Tom Tromey <tom@tromey.com>
4435
4436 * tui/tui-layout.c (make_command_window): Remove.
4437 (show_source_disasm_command, show_source_or_disasm_and_command):
4438 Unify creation and re-initialization cases.
4439
890b8bde
TT
44402019-07-17 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4443 creation and re-initialization cases.
4444
2cdfa113
TT
44452019-07-17 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-regs.c (tui_get_register): Return void.
4448
8e3cfd09
TT
44492019-07-17 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4452 Simplify.
4453
f4e04977
TT
44542019-07-17 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4457 resetting.
4458
0379b883
TT
44592019-07-17 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4462 * tui/tui-regs.c (tui_reg_layout): New function.
4463 (tui_show_registers, tui_reg_command): Use it.
4464 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4465 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4466 parameters.
4467 (tui_layout_command): Remove.
4468
b7fbad91
TT
44692019-07-17 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-layout.h (tui/tui-layout): Return void.
4472 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4473
4e1e56b9
TT
44742019-07-17 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-layout.c (show_source_disasm_command, show_data):
4477 Update.
4478 (reset_locator): Remove.
4479 (show_source_or_disasm_and_command): Update.
4480
1e0c09ba
TT
44812019-07-17 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-source.c (tui_source_window_base::reset): Remove
4484 win_type parameter.
4485 * tui/tui-layout.c (make_command_window, make_source_window)
4486 (make_disasm_window, make_data_window)
4487 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4488 (reset_locator, show_source_or_disasm_and_command): Update.
4489 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4490 win_type parameter.
4491 (struct tui_source_window_base) <reset>: Likewise.
4492
1bf605de
TT
44932019-07-17 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-layout.c (show_source_disasm_command): Use
4496 reset_locator.
4497 (reset_locator): New function.
4498 (init_and_make_win): Remove.
4499 (show_source_or_disasm_and_command): Use reset_locator.
4500
098f9ed4
TT
45012019-07-17 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4504 condition.
4505 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4506 Remove condition.
4507 * tui/tui-source.c (tui_source_window_base::reset): New method.
4508 * tui/tui-layout.c (make_command_window): Don't call
4509 init_and_make_win.
4510 (make_source_window, make_disasm_window): Don't call
4511 make_source_or_disasm_window.
4512 (make_data_window): Don't call init_and_make_win. Change calling
4513 convention.
4514 (show_source_disasm_command, show_data): Simplify.
4515 (make_source_or_disasm_window): Remove.
4516 (show_source_or_disasm_and_command): Simplify.
4517 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4518 (struct tui_source_window_base) <reset>: Likewise.
4519 <execution_info>: Remove initializer.
4520 * tui/tui-data.c (tui_source_window_base): Initialize
4521 execution_info.
4522
80110957
TT
45232019-07-17 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4526 variable.
4527
cf82af05
TT
45282019-07-17 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui.c (tui_rl_other_window): Update.
4531 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4532 superclass method first. Always iterate over regs_content.
4533 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4534 method.
4535 * tui/tui-win.c (tui_set_focus_command): Update.
4536
01aeb396
TT
45372019-07-17 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-win.c (tui_set_focus_command): Rename from
4540 tui_set_focus. Call tui_enable.
4541 (tui_set_focus_command): Remove.
4542
fd6c75ee
TT
45432019-07-17 Tom Tromey <tom@tromey.com>
4544
4545 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4546 refresh_window.
4547 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4548 touchwin.
4549 (tui_data_window::refresh_window): Call refresh_window on data
4550 items. Always call superclass refresh_window.
4551 (tui_win_info::refresh): Remove.
4552 (tui_source_window_base::refresh_window): Update.
4553 (tui_refresh_all): Update.
4554 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4555 refresh_window.
4556 (show_source_or_disasm_and_command): Likewise.
4557 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4558 (struct tui_source_window_base) <refresh>: Likewise.
4559
f6cc34a9
TT
45602019-07-17 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-winsource.c (tui_clear_source_content)
4563 (tui_show_source_content): Update.
4564 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4565 whether content is empty.
4566 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4567 Remove.
4568
f31ec9af
TT
45692019-07-17 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4572 window's contents.
4573 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4574 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4575
d1b6f1e5
TT
45762019-07-17 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4579 (struct tui_data_item_window): Update.
4580
d9743a13
TT
45812019-07-17 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4584 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4585 defines.
4586
caf0bc4e
TT
45872019-07-17 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-winsource.h (tui_erase_source_content)
4590 (tui_clear_source_content): Remove "display_prompt" parameter.
4591 * tui/tui-winsource.c (tui_update_source_window_as_is)
4592 (tui_update_source_windows_with_addr): Update.
4593 (tui_clear_source_content): Remove "display_prompt" parameter.
4594 (tui_erase_source_content): Likewise. Simplify.
4595 (tui_show_source_content): Update.
4596 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4597 * tui/tui-stack.c (tui_show_frame_info): Update.
4598 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4599 Remove defines.
4600
9d391078
TT
46012019-07-17 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4604 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4605 parameter.
4606 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4607 parameter.
4608
a38da35d
TT
46092019-07-17 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-winsource.c (tui_clear_source_content)
4612 (tui_show_source_content, tui_show_exec_info_content)
4613 (tui_clear_exec_info_content): Update.
4614 * tui/tui-stack.c (tui_show_locator_content): Update.
4615 (tui_show_frame_info): Update.
4616 * tui/tui-source.h (tui_source_window): Don't declare.
4617 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4618 from tui_source_is_displayed.
4619 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4620 Remove field.
4621 (struct tui_source_window_base) <content_in_use>: New field. Now
4622 bool.
4623 (struct tui_source_window) <showing_source_p>: New method.
4624 (TUI_SRC_WIN): Change cast.
4625 * tui/tui-data.c (tui_initialize_static_data): Update.
4626
c2cd8994
TT
46272019-07-17 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4630 location_matches_p.
4631 * tui/tui-source.c (tui_source_window::location_matches_p): New
4632 method.
4633 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4634 method.
4635 * tui/tui-data.h (struct tui_source_window_base)
4636 <location_matches_p>: New method.
4637 (struct tui_source_window, struct tui_disasm_window)
4638 <location_matches_p>: Likewise.
4639
4dde7b34
TT
46402019-07-17 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-win.c (tui_set_win_height_command): Rename from
4643 tui_set_win_height.
4644 (tui_set_win_height_command): Remove.
4645
b73dd877
TT
46462019-07-17 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-source.c (tui_source_window): New constructor. Add
4649 observer.
4650 (~tui_source_window): New destructor.
4651 (tui_source_window::style_changed): New method.
4652 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4653 (tui_attach_detach_observers): Update.
4654 * tui/tui-data.h (struct tui_source_window): Make constructor not
4655 inline. Add destructor.
4656 (struct tui_source_window) <style_changed>: New method.
4657 <m_observable>: New member.
4658
ae2b5380
TT
46592019-07-17 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4662 * tui/tui-win.c (tui_resize_all): Fix typo.
4663
1ce3e844
TT
46642019-07-17 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4667 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4668 (tui_refresh_all): Remove "list" parameter. Use foreach.
4669 * tui/tui-win.c (window_name_completer): Use foreach.
4670 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4671 (update_tab_width): Likewise.
4672 * tui/tui-layout.c (show_layout): Update.
4673 * tui/tui-data.h (class tui_window_iterator): New.
4674 (struct all_tui_windows): New.
4675 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4676
fe3eaf1c
TT
46772019-07-17 Tom Tromey <tom@tromey.com>
4678
4679 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4680 parameter. Don't reference globals.
4681 (tui_reg_command): Update.
4682
368c1354
TT
46832019-07-17 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-regs.c (tui_show_registers): Simplify.
4686
e80cd204
TT
46872019-07-17 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-regs.c (tui_show_registers): Update.
4690 (tui_show_register_group): Add win_info parameter.
4691
aca2dd16
TT
46922019-07-17 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4695 Rename from tui_display_reg_element_at_line.
4696 (tui_data_window::display_registers_from_line): Update.
4697 * tui/tui-data.h (struct tui_data_window)
4698 <display_reg_element_at_line>: New method.
4699
517e9505
TT
47002019-07-17 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-regs.h (tui_display_registers_from)
4703 (tui_display_registers_from_line): Don't declare.
4704 * tui/tui-windata.c (tui_data_window::display_all_data)
4705 (tui_data_window::refresh_all)
4706 (tui_data_window::do_scroll_vertical): Update.
4707 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4708 from tui_display_registers_from.
4709 (tui_display_reg_element_at_line): Update.
4710 (tui_data_window::display_registers_from_line): Rename from
4711 tui_display_registers_from_line.
4712 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4713 display_registers_from_line>: New methods.
4714
f76d8b19
TT
47152019-07-17 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4718 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4719 from tui_erase_data_content.
4720 (tui_data_window::display_all_data)
4721 (tui_data_window::refresh_all)
4722 (tui_data_window::do_scroll_vertical): Update.
4723 * tui/tui-regs.c (tui_show_registers): Update.
4724 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4725 New method.
4726
b4094625
TT
47272019-07-17 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4730 declare.
4731 * tui/tui-windata.c
4732 (tui_data_window::delete_data_content_windows): Rename from
4733 tui_delete_data_content_windows.
4734 (tui_data_window::display_all_data)
4735 (tui_data_window::do_scroll_vertical): Update.
4736 * tui/tui-data.h (struct tui_data_window)
4737 <delete_data_content_windows>: New method.
4738
c223a729
TT
47392019-07-17 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4742 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4743
50daf268
TT
47442019-07-17 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4747 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4748 from tui_display_all_data.
4749 * tui/tui-win.c
4750 (tui_data_window::do_make_visible_with_new_height): Update.
4751 * tui/tui-regs.c (tui_show_registers): Update.
4752 * tui/tui-layout.c (tui_set_layout): Update.
4753 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4754 method.
4755
df5f8cab
TT
47562019-07-17 Tom Tromey <tom@tromey.com>
4757
4758 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4759 * tui/tui-windata.c (tui_display_data_from): Remove.
4760 (tui_data_window::refresh_all): Update.
4761
80cb6c27
TT
47622019-07-17 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4765 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4766 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4767 tui_display_registers_from_line.
4768 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4769 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4770 "force_display" parameter.
4771
baff0c28
TT
47722019-07-17 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4775 declare.
4776 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4777 Rename from tui_first_reg_element_no_inline.
4778 (tui_display_reg_element_at_line)
4779 (tui_display_registers_from_line): Update.
4780 * tui/tui-data.h (struct tui_data_window)
4781 <first_reg_element_no_inline>: New method.
4782
3b23c5f2
TT
47832019-07-17 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-windata.c (tui_display_data_from)
4786 (tui_data_window::do_scroll_vertical): Update.
4787 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4788 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4789 Rename from tui_line_from_reg_element_no.
4790 (tui_display_registers_from_line): Update.
4791 * tui/tui-data.h (struct tui_data_window)
4792 <line_from_reg_element_no>: New method.
4793
0b5ec218
TT
47942019-07-17 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4797 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4798 tui_last_regs_line_no.
4799 (tui_display_reg_element_at_line)
4800 (tui_display_registers_from_line): Update.
4801 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4802 method.
4803
0807ab7b
TT
48042019-07-17 Tom Tromey <tom@tromey.com>
4805
4806 PR tui/24722:
4807 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4808 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4809 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4810 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4811 (tui_update_breakpoint_info): Likewise.
4812 * tui/tui-hooks.c (tui_event_create_breakpoint)
4813 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4814 Update.
4815
9ad7fdef
TT
48162019-07-17 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4819
5813316f
TT
48202019-07-17 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-winsource.c (tui_update_source_window_as_is)
4823 (tui_update_source_windows_with_addr): Update.
4824 * tui/tui-source.h (tui_set_source_content)
4825 (tui_show_symtab_source): Add "win_info" parameter.
4826 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4827 parameter.
4828 (tui_show_symtab_source): Likewise.
4829
00e264e7
TT
48302019-07-17 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-wingeneral.c
4833 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4834
06210ce4
TT
48352019-07-17 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4838 (struct tui_cmd_window) <can_scroll>: New method.
4839 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4840 method.
4841
381befee
TT
48422019-07-17 Tom Tromey <tromey@adacore.com>
4843
4844 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4845 do_field_signed>: Rename. Change type of "value".
4846 * ui-out.c (ui_out::field_signed): Rename from field_int.
4847 Change type of "value".
4848 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4849 type of "value".
4850 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4851 do_field_int. Change type of "value".
4852 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4853 do_field_int. Change type of "value".
4854 * tracepoint.c (trace_status_mi, tfind_1)
4855 (print_one_static_tracepoint_marker): Update.
4856 * thread.c (print_thread_info_1, print_selected_thread_frame):
4857 Update.
4858 * stack.c (print_frame, print_frame_info): Update.
4859 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4860 Update.
4861 * source.c (print_source_lines_base): Update.
4862 * skip.c (info_skip_command): Update.
4863 * record-btrace.c (btrace_ui_out_decode_error)
4864 (btrace_call_history_src_line): Update.
4865 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4866 Update.
4867 * progspace.c (print_program_space): Update.
4868 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4869 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4870 do_field_int. Change type of "value".
4871 * mi/mi-out.c (mi_ui_out::do_table_begin)
4872 (mi_ui_out::do_table_header): Update.
4873 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4874 type of "value".
4875 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4876 (mi_cmd_data_list_changed_registers, output_register)
4877 (mi_cmd_data_read_memory, mi_load_progress)
4878 (mi_cmd_trace_frame_collected): Update.
4879 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4880 Update.
4881 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4882 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4883 (mi_cmd_var_list_children, varobj_update_one): Update.
4884 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4885 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4886 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4887 * inferior.c (print_inferior): Update.
4888 * gdb_bfd.c (print_one_bfd): Update.
4889 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4890 Update.
4891 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4892 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4893 do_field_int. Change type of "value".
4894 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4895 do_field_int. Change type of "value".
4896 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4897 (print_one_breakpoint_location, print_it_catch_fork)
4898 (print_one_catch_fork, print_it_catch_vfork)
4899 (print_one_catch_vfork, print_it_catch_solib)
4900 (print_it_catch_exec, print_it_ranged_breakpoint)
4901 (print_mention_watchpoint, print_mention_masked_watchpoint)
4902 (bkpt_print_it, update_static_tracepoint): Update.
4903 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4904 * break-catch-syscall.c (print_it_catch_syscall): Update.
4905 * ada-tasks.c (print_ada_task_info): Update.
4906 * ada-lang.c (print_it_exception, print_mention_exception):
4907 Update.
4908
6b78c3f8
AB
49092019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4910
4911 PR breakpoints/24541
4912 * gdbarch.c: Regenerate.
4913 * gdbarch.h: Regenerate.
4914 * gdbarch.sh: Adjust return type and parameter types for
4915 'stap_adjust_register'.
4916 (i386_stap_adjust_register): Adjust signature and return new
4917 register name.
4918 * stap-probe.c (stap_parse_register_operand): Adjust use of
4919 'gdbarch_stap_adjust_register'.
4920
d72a9b85
TT
49212019-07-17 Tom Tromey <tromey@adacore.com>
4922
4923 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4924 declare VEC.
4925 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4926 std::vector.
4927 (struct s390_process_info): Add initializers.
4928 (s390_add_process): Use new.
4929 (s390_linux_nat_target::low_forget_process): Use delete.
4930 (s390_linux_nat_target::low_new_fork)
4931 (s390_linux_nat_target::stopped_by_watchpoint)
4932 (s390_linux_nat_target::low_prepare_to_resume)
4933 (s390_linux_nat_target::insert_watchpoint)
4934 (s390_linux_nat_target::insert_hw_breakpoint)
4935 (s390_linux_nat_target::remove_watchpoint)
4936 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4937
206e6c58
JB
49382019-07-16 John Baldwin <jhb@FreeBSD.org>
4939
4940 * aarch64-fbsd-nat.c: Include regcache.h.
4941 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4942 argument.
4943 (aarch64_fbsd_nat_target::fetch_registers)
4944 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4945 variable.
4946 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4947
cbde90f2
JB
49482019-07-16 John Baldwin <jhb@FreeBSD.org>
4949
4950 * fbsd-nat.c: Include gdbarch.h.
4951
07128006
TT
49522019-07-15 Tom Tromey <tromey@adacore.com>
4953
4954 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4955
1f77b012
TT
49562019-07-15 Tom Tromey <tromey@adacore.com>
4957
4958 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4959 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4960 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4961 * cli-out.c (cli_ui_out::do_field_int): New method.
4962 * ui-out.c (ui_out::field_unsigned): New method.
4963 * symfile.c (generic_load): Use field_unsigned.
4964 (print_transfer_performance): Likewise.
4965 * record-btrace.c (ui_out_field_uint): Remove.
4966 (btrace_call_history_insn_range, btrace_call_history): Use
4967 field_unsigned.
4968 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4969 field_unsigned.
4970 * ui-out.h (class ui_out) <field_unsigned>: New method.
4971 <do_field_unsigned>: Likewise.
4972
33eca680
TT
49732019-07-15 Tom Tromey <tromey@adacore.com>
4974
4975 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4976 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4977 * target.c (flash_erase_command): Use field_string.
4978 * infrun.c (print_signal_received_reason): Use field_string.
4979 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4980 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4981 field_string.
4982 * ada-tasks.c (print_ada_task_info): Use field_string.
4983
ca8d69be
TT
49842019-07-15 Tom Tromey <tromey@adacore.com>
4985
4986 * target.c (flash_erase_command): Use field_core_addr.
4987 * symfile.c (generic_load): Use field_core_addr.
4988 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4989 Use field_core_addr.
4990 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4991 field_core_addr.
4992
0d4e84ed
AB
49932019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4994
4995 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4996 value if its desired type is smaller than a CORE_ADDR and signed.
4997
9a49df9d
AB
49982019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5001 of changes to field names, and use new is_reference field to
5002 decide if a property is a reference or not.
5003 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5004 field.
5005 (struct dwarf2_property_baton): Update header comment, rename
5006 'referenced_type' to 'property_type' and update comments.
5007 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5008 default property type, store in property baton, update to take
5009 accound of renamed field.
5010 (read_func_scope): Update call to attr_to_dynamic_prop.
5011 (read_array_type): Likewise.
5012 (dwarf2_per_cu_addr_sized_int_type): New function.
5013 (read_subrange_index_type): Move type finding code to
5014 dwarf2_per_cu_addr_sized_int_type.
5015 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5016 (dwarf2_per_cu_addr_type): New function.
5017 (set_die_type): Update calls to attr_to_dynamic_prop.
5018
b86352cf
AB
50192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * dwarf2read.c (read_subrange_index_type): New function.
5022 (read_subrange_type): Move code into new function and call it.
5023 * gdbtypes.c (create_range_type): Add some asserts.
5024
603490bf
AB
50252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5026
5027 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5028 update return statements.
5029 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5030 declaration, and update comment to match.
5031 * gdbtypes.c (resolve_dynamic_array): Update call to
5032 dwarf2_evaluate_property to match new return type.
5033
592f9d27
AB
50342019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5035
5036 * valarith.c (value_subscripted_rvalue): Change lowerbound
5037 parameter type from int to LONGEST.
5038 * value.h (value_subscripted_rvalue): Likewise in declaration.
5039
60cfcb20
AB
50402019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * cli/cli-utils.c (info_print_command_completer): New function.
5043 * cli/cli-utils.h: Add 'completer.h' include, and forward
5044 declaration for 'struct cmd_list_element'.
5045 (info_print_command_completer): Declare.
5046 * stack.c (_initialize_stack): Add completer for 'info locals' and
5047 'info args'.
5048 * symtab.c (_initialize_symtab): Add completer for 'info
5049 variables' and 'info functions'.
5050 * NEWS: Mention completion for additional info commands.
5051
b16507e0
AB
50522019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5053
5054 * cli/cli-utils.c (extract_info_print_args): Delete.
5055 (extract_arg_maybe_quoted): Delete.
5056 (info_print_options_defs): New variable.
5057 (make_info_print_options_def_group): New function.
5058 (extract_info_print_options): Define new function.
5059 * cli/cli-utils.h (extract_info_print_args): Delete.
5060 (struct info_print_options): New structure.
5061 (extract_info_print_options): Declare new function.
5062 * stack.c (info_locals_command): Update to use new
5063 extract_info_print_options, also add a header comment.
5064 (info_args_command): Likewise.
5065 * symtab.c (info_variables_command): Likewise.
5066 (info_functions_command): Likewise.
5067
021d8588
AB
50682019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5069
5070 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5071 to extract string arguments.
5072 * common/common-utils.c (extract_string_maybe_quoted): New function.
5073 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5074
b777eb6d
TT
50752019-07-11 Tom Tromey <tromey@adacore.com>
5076
5077 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5078 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5079 * top.h (gdbinit): Don't declare.
5080 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5081 into...
5082 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5083 * top.c (gdb_init): Don't call init_cli_cmds.
5084 (gdbinit): Remove.
5085 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5086
72ee03ff
TT
50872019-07-11 Tom Tromey <tromey@adacore.com>
5088
5089 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5090 after it has been moved.
5091
00db9531
SM
50922019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * valops.c (value_must_coerce_to_target): Change return type to
5095 bool.
5096 * value.h (value_must_coerce_to_target): Likewise.
5097
f2478a7e
SM
50982019-07-10 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * breakpoint.c (is_hardware_watchpoint): Remove
5101 forward-declaration.
5102 (is_masked_watchpoint): Change return type to bool.
5103 (is_tracepoint): Likewise.
5104 (is_breakpoint): Likewise.
5105 (is_hardware_watchpoint): Likewise.
5106 (is_watchpoint): Likewise.
5107 (is_no_memory_software_watchpoint): Likewise.
5108 (is_catchpoint): Likewise.
5109 (breakpoint_1): Make FILTER parameter's return type bool.
5110 is_masked_watchpoint): Change return type to bool.
5111 (save_breakpoints): Make FILTER parameter's return type bool.
5112 * breakpoint.h (is_breakpoint): Change return type to bool.
5113 (is_watchpoint): Likewise.
5114 (is_catchpoint): Likewise.
5115 (is_tracepoint): Likewise.
5116
0d12e84c
TT
51172019-07-10 Tom Tromey <tom@tromey.com>
5118
5119 * defs.h: Don't include gdbarch.h.
5120 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5121 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5122 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5123 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5124 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5125 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5126 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5127 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5128 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5129 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5130 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5131 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5132 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5133 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5134 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5135 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5136 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5137 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5138 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5139 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5140 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5141 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5142 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5143 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5144 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5145 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5146 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5147
f06f1252
TT
51482019-07-10 Tom Tromey <tromey@adacore.com>
5149
5150 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5151 * breakpoint.c (init_ada_exception_breakpoint): Register as
5152 bp_catchpoint.
5153 (print_one_breakpoint_location, print_one_breakpoint): Use
5154 is_ada_exception_catchpoint.
5155 * ada-lang.c (class ada_catchpoint_location): Pass
5156 bp_loc_software_breakpoint to bp_location constructor.
5157 (is_ada_exception_catchpoint): New function.
5158
7a5d944b
TT
51592019-07-10 Tom Tromey <tromey@adacore.com>
5160
5161 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5162 VEC.
5163 (struct arm_exidx_entry): New method operator<.
5164 (struct arm_exidx_data) <section_maps>: Change type.
5165 (arm_exidx_data_free): Remove.
5166 (arm_exidx_data_key): Change type. Move lower.
5167 (arm_exidx_new_objfile): Update.
5168 (arm_compare_exidx_entries): Remove.
5169 (arm_find_exidx_entry, _initialize_arm_tdep)
5170
48c66e1d
TT
51712019-07-10 Tom Tromey <tromey@adacore.com>
5172
5173 * solib-spu.c (ocl_program_data_key): Change type.
5174 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5175 Update.
5176
a269fbf1
TT
51772019-07-10 Tom Tromey <tromey@adacore.com>
5178
5179 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5180 (struct solib_aix_inferior_data) <library_list>: Change type.
5181 (solib_aix_inferior_data_handle): Change type.
5182 (get_solib_aix_inferior_data): Update.
5183 (solib_aix_free_library_list): Remove.
5184 (library_list_start_library): Update.
5185 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5186 return type.
5187 (solib_aix_get_library_list)
5188 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5189 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5190
c294730c
TT
51912019-07-10 Tom Tromey <tromey@adacore.com>
5192
5193 * solib-dsbt.c (struct dsbt_info): Add initializers.
5194 (solib_dsbt_pspace_data): Change type.
5195 (dsbt_pspace_data_cleanup): Remove.
5196 (get_dsbt_info, _initialize_dsbt_solib): Update.
5197
9d52077d
TT
51982019-07-10 Tom Tromey <tromey@adacore.com>
5199
5200 * spu-tdep.c (spu_overlay_data): Change type.
5201 (spu_get_overlay_table, spu_overlay_new_objfile)
5202 (_initialize_spu_tdep): Update.
5203
22a20dca
TT
52042019-07-10 Tom Tromey <tromey@adacore.com>
5205
5206 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5207 destructor.
5208 (dbx_objfile_data_key): Change type and declare later.
5209 (DBX_SYMFILE_INFO): Rewrite.
5210 * dbxread.c (dbx_objfile_data_key): Change type.
5211 (dbx_symfile_init): Update.
5212 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5213 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5214 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5215
cb60f420
TT
52162019-07-10 Tom Tromey <tromey@adacore.com>
5217
5218 * jit.c (jit_program_space_key): Change type. Move lower.
5219 (get_jit_program_space_data): Update.
5220 (jit_program_space_data_cleanup): Remove.
5221 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5222 Update.
5223 (struct jit_program_space_data): Add initializers.
5224
51df2ae3
TT
52252019-07-10 Tom Tromey <tromey@adacore.com>
5226
5227 * solib-darwin.c (struct darwin_info): Add initializers.
5228 (solib_darwin_pspace_data): Change type.
5229 (darwin_pspace_data_cleanup): Remove.
5230 (get_darwin_info, _initialize_darwin_solib): Update.
5231
18101a35
TT
52322019-07-10 Tom Tromey <tromey@adacore.com>
5233
5234 * remote-sim.c (struct sim_inferior_data): Add initializers,
5235 constructor, and destructor.
5236 (sim_inferior_data_key): Change type. Move lower.
5237 (check_for_duplicate_sim_descriptor): Update.
5238 (get_sim_inferior_data): Use new. Update.
5239 (~sim_inferior_data_cleanup): Rename from
5240 sim_inferior_data_cleanup. Simplify.
5241 (gdbsim_close_inferior, simulator_command)
5242 (sim_command_completer, _initialize_remote_sim): Update.
5243 (next_pid, INITIAL_PID): Move earlier.
5244
05b08ac1
TT
52452019-07-10 Tom Tromey <tromey@adacore.com>
5246
5247 * python/python-internal.h (create_thread_object): Return
5248 gdbpy_ref.
5249 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5250 * python/py-inferior.c (struct threadlist_entry): Add
5251 constructor.
5252 <thread_obj>: Now a gdbpy_ref.
5253 (thread_to_thread_object): Update.
5254 (add_thread_object): Use new.
5255 (delete_thread_object): Use delete.
5256 (infpy_threads): Update.
5257 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5258 GIL.
5259
32372d80
TT
52602019-07-10 Tom Tromey <tromey@adacore.com>
5261
5262 * valops.c (value_cast): Specialize error message for Ada.
5263
5c458ae8
SM
52642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5265
5266 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5267
4c462cb0
SM
52682019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5269
5270 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5271 bpstat_should_step): Return bool, adjust comments.
5272 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5273 bpstat_should_step): Likewise.
5274
89abbcc2
AH
52752019-07-10 Alan Hayward <alan.hayward@arm.com>
5276
5277 * features/Makefile: Use feature target descriptions for Arm.
5278 * features/arm/arm-core.c: Generate new file.
5279 * features/arm/arm-fpa.c: Likewise.
5280 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5281 * features/arm/arm-m-profile.c: Likewise.
5282 * features/arm/arm-vfpv2.c: Likewise.
5283 * features/arm/arm-vfpv3.c: Likewise.
5284 * features/arm/xscale-iwmmxt.c: Likewise.
5285 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5286
166a82be
AH
52872019-07-10 Alan Hayward <alan.hayward@arm.com>
5288
5289 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5290 ptrace earlier.
5291
9fb4c7e9
AH
52922019-07-10 Alan Hayward <alan.hayward@arm.com>
5293
5294 * features/aarch64-pauth.c: Regenerate.
5295
e2d0f980
SM
52962019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5299 bool.
5300 (bpstat_what): Use false instead of 0.
5301
a38118e5
PA
53022019-07-09 Pedro Alves <palves@redhat.com>
5303
5304 * break-catch-throw.c (is_exception_catchpoint): New.
5305 * breakpoint.c (print_one_breakpoint_location): New parameter
5306 'raw_loc'. Handle it. Use
5307 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5308 looking at the breakpoint's type.
5309 (print_one_breakpoint): If handling "maint info breakpoints", also
5310 print locations of exception catchpoints.
5311 * breakpoint.h (is_exception_catchpoint): Declare.
5312
cb1e4e32
PA
53132019-07-09 Pedro Alves <palves@redhat.com>
5314
5315 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5316 "addr" field.
5317 (allocate_location_exception_catchpoint): New.
5318 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5319 (initialize_throw_catchpoint_ops): Install
5320 allocate_location_exception_catchpoint as allocate_location
5321 method.
5322 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5323 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5324 bp_loc_other.
5325 (breakpoint_address_is_meaningful): Delete.
5326 (bl_address_is_meaningful): New.
5327 (breakpoint_locations_match): Adjust comment.
5328 (bp_location_from_bp_type): New, factored out of...
5329 (bp_location::bp_location(breakpoint *)): ... this.
5330 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5331 factored out of...
5332 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5333 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5334 breakpoint_address_is_meaningful.
5335 (bp_locations_compare): Adjust comment.
5336 (update_global_location_list): Use bl_address_is_meaningful
5337 instead of breakpoint_address_is_meaningful.
5338 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5339 explicit.
5340 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5341 * python/py-breakpoint.c (bppy_get_location): No longer check
5342 whether location is null.
5343
b58a68fe
PA
53442019-07-09 Pedro Alves <palves@redhat.com>
5345
5346 PR c++/15468
5347 * breakpoint.c (print_one_breakpoint_location): Remove
5348 single-location assert.
5349
268a13a5
TT
53502019-07-09 Tom Tromey <tom@tromey.com>
5351
5352 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5353 * configure: Rebuild.
5354 * configure.ac: Change common to gdbsupport.
5355 * gdbsupport: Rename from common.
5356 * acinclude.m4: Change common to gdbsupport.
5357 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5358 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5359 gdbsupport.
5360 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5361 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5362 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5363 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5364 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5365 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5366 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5367 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5368 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5369 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5370 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5371 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5372 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5373 coff-pe-read.c, command.h, compile/compile-c-support.c,
5374 compile/compile-c.h, compile/compile-cplus-symbols.c,
5375 compile/compile-cplus-types.c, compile/compile-cplus.h,
5376 compile/compile-loc2c.c, compile/compile.c, completer.c,
5377 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5378 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5379 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5380 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5381 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5382 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5383 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5384 features/aarch64-core.c, features/aarch64-fpu.c,
5385 features/aarch64-pauth.c, features/aarch64-sve.c,
5386 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5387 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5388 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5389 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5390 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5391 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5392 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5393 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5394 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5395 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5396 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5397 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5398 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5399 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5400 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5401 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5402 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5403 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5404 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5405 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5406 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5407 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5408 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5409 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5410 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5411 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5412 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5413 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5414 minsyms.c, mips-linux-tdep.c, namespace.h,
5415 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5416 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5417 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5418 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5419 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5420 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5421 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5422 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5423 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5424 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5425 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5426 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5427 procfs.c, producer.c, progspace.h, psymtab.h,
5428 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5429 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5430 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5431 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5432 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5433 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5434 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5435 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5436 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5437 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5438 target-memory.c, target.c, target.h, target/waitstatus.c,
5439 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5440 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5441 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5442 unittests/array-view-selftests.c,
5443 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5444 unittests/common-utils-selftests.c,
5445 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5446 unittests/format_pieces-selftests.c,
5447 unittests/function-view-selftests.c,
5448 unittests/lookup_name_info-selftests.c,
5449 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5450 unittests/mkdir-recursive-selftests.c,
5451 unittests/observable-selftests.c,
5452 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5453 unittests/parse-connection-spec-selftests.c,
5454 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5455 unittests/scoped_fd-selftests.c,
5456 unittests/scoped_mmap-selftests.c,
5457 unittests/scoped_restore-selftests.c,
5458 unittests/string_view-selftests.c, unittests/style-selftests.c,
5459 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5460 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5461 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5462 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5463 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5464 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5465
5b0e2db4
AB
54662019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5467
5468 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5469 bool value.
5470 (decode_digits_ordinary): Set explicit_line field in sal.
5471 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5472 symtab_and_line that was set on an explicit line number in
5473 assembler code. Do always update the recorded symtab and line if
5474 we do skip the prologue.
5475
0ba852ab
AB
54762019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * breakpoint.c (set_breakpoint_location_function): Remove
5479 explicit_loc parameter.
5480 (momentary_breakpoint_from_master): Update call to
5481 set_breakpoint_location_function.
5482 (add_location_to_breakpoint): Likewise.
5483
b3a7d171
AB
54842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5487 required features based on default bfd type when no specific bfd
5488 is present.
5489
1f6f6e21
PW
54902019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5491
5492 * NEWS: Mention that GDB printf and eval commands can now print
5493 C-style and Ada-style convenience var strings without
5494 calling the inferior.
5495 * printcmd.c (printf_c_string): Locally print GDB internal var
5496 instead of transiting via the inferior.
5497 (printf_wide_c_string): Likewise.
5498
54992019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5500
5862c886 5501 PR breakpoints/25011
ea142fbf
AH
5502 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5503
0598af48
TT
55042019-07-04 Tom Tromey <tom@tromey.com>
5505
5506 PR tui/24724:
5507 * tui/tui-winsource.c (tui_clear_source_content): Update.
5508 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5509 (tui_update_breakpoint_info): Update.
5510 (tui_set_exec_info_content): Update.
5511 * tui/tui-source.c (tui_set_source_content_nil): Update.
5512 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5513 has_break.
5514 * tui/tui-data.h (enum tui_bp_flag): New.
5515 (tui_bp_flags): New enum flags type.
5516 (struct tui_source_element) <break_mode>: Change type. Rename
5517 from has_break.
5518 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5519 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5520 constants.
5521 * tui/tui-winsource.h: Fix comment.
5522
350fab54
AH
55232019-07-04 Alan Hayward <alan.hayward@arm.com>
5524
5525 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5526 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5527 (store_fpregs_to_thread)
5528 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5529 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5530 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5531 (IWMMXT_REGS_SIZE): Add define.
5532 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5533 (fetch_vfp_regs, store_vfp_regs)
5534 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5535 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5536
f0452268
AH
55372019-07-04 Alan Hayward <alan.hayward@arm.com>
5538
5539 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5540 defines.
5541 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5542 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5543 (ARM_INT_REGISTER_SIZE): ...to this.
5544 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5545 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5546 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5547 (arm_linux_collect_gregset, supply_nwfpe_register)
5548 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5549 defines.
5550 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5551 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5552 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5553 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5554 (arm_return_in_memory, arm_store_return_value)
5555 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5556 (arm_record_ld_st_multiple): Likewise.
5557 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5558 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5559
e935475c
AH
55602019-07-04 Alan Hayward <alan.hayward@arm.com>
5561
5562 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5563 AARCH64_DISPLACED_MODIFIED_INSNS.
5564 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5565 (aarch64_displaced_step_copy_insn): Likewise.
5566 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5567 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5568 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5569 ARM_DISPLACED_MODIFIED_INSNS.
5570 * arm-tdep.c (arm_gdbarch_init): Likewise.
5571 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5572 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5573 (struct arm_displaced_step_closure): Use
5574 ARM_DISPLACED_MODIFIED_INSNS.
5575
df0bb381
AH
55762019-07-04 Alan Hayward <alan.hayward@arm.com>
5577
5578 * features/Makefile: Remove unused xml files.
5579 * features/aarch64.xml: Remove.
5580 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5581 * features/i386/amd64-avx-avx512.xml: Remove.
5582 * features/i386/amd64-avx-linux.xml: Remove.
5583 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5584 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5585 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5586 * features/i386/amd64-avx-mpx.xml: Remove.
5587 * features/i386/amd64-avx.xml: Remove.
5588 * features/i386/amd64-linux.xml: Remove.
5589 * features/i386/amd64-mpx-linux.xml: Remove.
5590 * features/i386/amd64-mpx.xml: Remove.
5591 * features/i386/amd64.xml: Remove.
5592 * features/i386/i386-avx-avx512-linux.xml: Remove.
5593 * features/i386/i386-avx-avx512.xml: Remove.
5594 * features/i386/i386-avx-linux.xml: Remove.
5595 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5596 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5597 * features/i386/i386-avx-mpx-linux.xml: Remove.
5598 * features/i386/i386-avx-mpx.xml: Remove.
5599 * features/i386/i386-avx.xml: Remove.
5600 * features/i386/i386-linux.xml: Remove.
5601 * features/i386/i386-mmx-linux.xml: Remove.
5602 * features/i386/i386-mmx.xml: Remove.
5603 * features/i386/i386-mpx-linux.xml: Remove.
5604 * features/i386/i386-mpx.xml: Remove.
5605 * features/i386/i386.xml: Remove.
5606 * features/i386/x32-avx-avx512-linux.xml: Remove.
5607 * features/i386/x32-avx-linux.xml: Remove.
5608 * features/i386/x32-linux.xml: Remove.
5609
edd6266a
AH
56102019-07-04 Alan Hayward <alan.hayward@arm.com>
5611
5612 * regformats/aarch64.dat: Remove.
5613 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5614 * regformats/i386/amd64-avx-linux.dat: Remove.
5615 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5616 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5617 * regformats/i386/amd64-linux.dat: Remove.
5618 * regformats/i386/amd64-mpx-linux.dat: Remove.
5619 * regformats/i386/amd64.dat: Remove.
5620 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5621 * regformats/i386/i386-avx-linux.dat: Remove.
5622 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5623 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5624 * regformats/i386/i386-linux.dat: Remove.
5625 * regformats/i386/i386-mmx-linux.dat: Remove.
5626 * regformats/i386/i386-mpx-linux.dat: Remove.
5627 * regformats/i386/i386.dat: Remove.
5628 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5629 * regformats/i386/x32-avx-linux.dat: Remove.
5630 * regformats/i386/x32-linux.dat: Remove.
5631
2b40fda7
AH
56322019-07-04 Alan Hayward <alan.hayward@arm.com>
5633
5634 * aarch64-tdep.c: Remove xml self tests.
5635 * amd64-linux-tdep.c: Likewise.
5636 * amd64-tdep.c: Likewise.
5637 * i386-linux-tdep.c: Likewise.
5638 * i386-tdep.c: Likewise.
5639
5f4ba3e7
PA
56402019-07-03 Pedro Alves <palves@redhat.com>
5641
5642 PR cli/24732
5643 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5644 (pipe_cmd_option_defs): New.
5645 (make_pipe_cmd_options_def_group): New.
5646 (pipe_command): Use gdb::option::process_options.
5647 (pipe_command_completer): New function.
5648 (_initialize_cli_cmds): Install completer for "pipe" command.
5649
3d9be6f5
PA
56502019-07-03 Pedro Alves <palves@redhat.com>
5651
5652 * cli/cli-option.c (union option_value) <string>: New field.
5653 (struct option_def_and_value): Add ctor, move ctor, dtor and
5654 use DISABLE_COPY_AND_ASSIGN.
5655 (option_def_and_value::clear_value): New.
5656 (parse_option, save_option_value_in_ctx, get_val_type_str)
5657 (add_setshow_cmds_for_options): Handle var_string.
5658 * cli-option.h (union option_def::var_address) <string>: New
5659 field.
5660 (struct string_option_def): New.
5661 * maint-test-options.c (struct test_options_opts): Add default
5662 ctor and use DISABLE_COPY_AND_ASSIGN.
5663 <string_opt>: New field.
5664 (test_options_opts::~test_options_opts): New.
5665 (test_options_opts::dump): Also dump "-string".
5666 (test_options_option_defs): Install "string.
5667
41fc454c
PA
56682019-07-03 Pedro Alves <palves@redhat.com>
5669
5670 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5671 option_value with a null enumeration.
5672 (complete_options): Save the option values in the context.
5673 (save_option_value_in_ctx): New, factored out from ...
5674 (process_options): ... here.
5675 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5676 of the function.
5677 * maint-test-options.c (test_options_opts::dump): New, factored
5678 out from ...
5679 (maintenance_test_options_command_mode): ... here.
5680 (maintenance_test_options_command_completion_result): Delete.
5681 (maintenance_test_options_command_completion_text): Update
5682 comment.
5683 (maintenance_show_test_options_completion_result): Change
5684 prototype. Just print
5685 maintenance_test_options_command_completion_text.
5686 (save_completion_result): New.
5687 (maintenance_test_options_completer_mode): Pass options context to
5688 complete_options, and then save a dump.
5689 (_initialize_maint_test_options): Use add_cmd to install "maint
5690 show test-options-completion-result".
5691
fdbc9870
PA
56922019-07-03 Pedro Alves <palves@redhat.com>
5693
5694 * NEWS (New commands): Mention "with" and "maint with".
5695 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5696 (with_command, with_command_completer): New.
5697 (pipe_command): Adjust to new repeat_previous
5698 interface.
5699 (_initialize_cli_cmds): Install the "with" command and its "w"
5700 alias.
5701 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5702 declarations.
5703 * cli/cli-setshow.c (parse_cli_var_uinteger)
5704 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5705 argument strings for all var_types.
5706 (get_setshow_command_value_string): New, factored out from ...
5707 (do_show_command): ... this.
5708 * cli/cli-setshow.h: Include <string>.
5709 (get_setshow_command_value_string): Declare.
5710 * command.h (repeat_previous): Now returns const char *. Adjust
5711 comment.
5712 * maint.c: Include "cli/cli-cmds.h".
5713 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5714 (_initialize_maint_cmds): Register the "maintenance with" command.
5715 * top.c (repeat_previous): Move bits from pipe_command here:
5716 Return the saved command line, if any; error out if there's no
5717 command to relaunch.
5718
c6ac8931
PA
57192019-07-03 Pedro Alves <palves@redhat.com>
5720
5721 * NEWS (New commands): Mention "maint set/show test-settings"
5722 instead of "maint test-settings".
5723 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5724 (maintenance_test_settings_set_list): Rename to ...
5725 (maintenance_set_test_settings_list): ... this.
5726 (maintenance_test_settings_show_list): Rename to ...
5727 (maintenance_show_test_settings_list): ... this.
5728 (maintenance_test_settings_cmd): Delete.
5729 (maintenance_test_settings_set_cmd): ...
5730 (maintenance_set_test_settings_cmd): ... this.
5731 (maintenance_test_settings_show_cmd): ...
5732 (maintenance_show_test_settings_cmd): ... this.
5733 (maintenance_test_settings_show_value_cmd):
5734 (maintenance_show_test_settings_value_cmd): ... this.
5735 (_initialize_maint_test_settings): No longer install the "maint
5736 test-settings" prefix command. Rename "maint test-settings set"
5737 to "maint set test-settings", and "maint test-settings show" to
5738 "maint show test-settings". Adjust all subcommands.
5739
d1fcf2fd
PA
57402019-07-03 Pedro Alves <palves@redhat.com>
5741
5742 * maint-test-settings.c: Fix file's intro comment. Replace all
5743 references to "test-options" with references to "test-settings",
5744 in comments.
5745
970f9d09
PA
57462019-07-03 Pedro Alves <palves@redhat.com>
5747
5748 * maint-test-settings.c (maintenance_test_settings_xxx)
5749 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5750 New.
5751 (maintenance_test_settings_enums): Use them.
5752 (maintenance_test_settings_enum): Default to
5753 maintenance_test_settings_xxx.
5754 (_initialize_maint_test_settings): Initialize
5755 MAINTENANCE_TEST_SETTINGS_FILENAME.
5756
f3869b1a
SM
57572019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5758
5759 * breakpoint.h (remove_breakpoints_inf): Change return type to
5760 void, move function documentation here.
5761 * breakpoint.c (remove_breakpoints_inf): Change return type to
5762 void, move function documentation to header.
5763
54d66006
PA
57642019-07-02 Pedro Alves <palves@redhat.com>
5765
5766 * NEWS (Completion improvements): Mention "info threads".
5767 * thread.c (struct info_threads_opts, info_threads_option_defs)
5768 (make_info_threads_options_def_group): New.
5769 (info_threads_command): Use gdb::option::process_options.
5770 (info_threads_command_completer): New.
5771 (_initialize_thread): Use gdb::option::build_help to build the
5772 help text for "info threads".
5773
854f6088
SM
57742019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * defs.h (generic_load): Move from here...
5777 * symfile.h (generic_load): ... to here. Rename name parameter
5778 to args.
5779 * symfile.c (generic_load): Add comment.
5780
54ee4252
TT
57812019-07-01 Tom Tromey <tromey@adacore.com>
5782
5783 * dwarf2read.c
5784 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5785 declaration of without_params. Fix formatting.
5786
65392b3e
TT
57872019-07-01 Tom Tromey <tromey@adacore.com>
5788
5789 * ada-exp.y (find_primitive_type): Update.
5790 * ada-lang.h (ada_lookup_symbol): Update.
5791 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5792 parameter.
5793 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5794
7d7571f0
SDJ
57952019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5796
5797 PR breakpoints/24541
5798 * gdbarch.c: Regenerate.
5799 * gdbarch.h: Regenerate.
5800 * gdbarch.sh: Add 'stap_adjust_register'.
5801 * i386-tdep.c: Include '<unordered_set>'.
5802 (i386_stap_adjust_register): New function.
5803 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5804 * stap-probe.c (stap_parse_register_operand): Call
5805 'gdbarch_stap_adjust_register'.
5806
5af5392a
SDJ
58072019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5808
5809 PR python/24742
5810 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5811 * python/python.c (do_start_initialization): Use 'xmalloc'
5812 instead of 'PyMem_Malloc'.
5813
10d06d82
TT
58142019-06-28 Tom Tromey <tromey@adacore.com>
5815
5816 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5817 for Ada.
5818
1b7f24cd
TT
58192019-06-27 Tom Tromey <tromey@adacore.com>
5820
5821 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5822 objfile_key.
5823 (arm_find_mapping_symbol, arm_record_special_symbol)
5824 (_initialize_arm_tdep): Update.
5825 (arm_objfile_data_free): Remove.
5826
3d507ff2
TT
58272019-06-27 Tom Tromey <tromey@adacore.com>
5828
5829 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5830 to cp_print_static_field.
5831
762c164d
TT
58322019-06-26 Tom Tromey <tromey@adacore.com>
5833
5834 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5835 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5836 declare.
5837
aa2f9bcf
AH
58382019-06-26 Alan Hayward <alan.hayward@arm.com>
5839
5840 * features/aarch64-core.c (create_feature_aarch64_core):
5841 Regenerate.
5842 * features/aarch64-core.xml: Add cpsr flags.
5843
3426ae57
AH
58442019-06-26 Alan Hayward <alan.hayward@arm.com>
5845
5846 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5847 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5848
4838e44c
SM
58492019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5852 field.
5853 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5854 use.
5855 (arm_record_special_symbol): Don't insert new symbol in sorted
5856 position, push it at the end.
5857
54cc7474
SM
58582019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5861 (arm_mapping_symbol_s): Remove.
5862 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5863 (arm_mapping_symbol_vec): New typedef.
5864 (struct arm_per_objfile): Add constructor.
5865 <section_maps>: Change type to
5866 std::unique_ptr<arm_mapping_symbol_vec[]>.
5867 (arm_compare_mapping_symbols): Remove.
5868 (arm_find_mapping_symbol): Adjust to section_maps type change.
5869 (arm_objfile_data_free): Call delete on arm_per_objfile.
5870 (arm_record_special_symbol): Adjust to section_maps type change.
5871 Allocate arm_per_objfile with new.
5872
b65b566c
PW
58732019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5874
5875 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5876 with the command prefix.
5877
c2fc64f5
TT
58782019-06-25 Tom Tromey <tom@tromey.com>
5879
5880 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5881 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5882
fb54fa76
TT
58832019-06-25 Tom Tromey <tom@tromey.com>
5884
5885 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5886 type.
5887 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5888 protected.
5889
f7952c57
TT
58902019-06-25 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-winsource.c
5893 (tui_source_window_base::set_is_exec_point_at): Add check against
5894 LOA_ADDRESS.
5895
17568d78
TT
58962019-06-25 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-source.c (tui_set_source_content): Don't check before
5899 xfree.
5900 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5901
53e7cdba
TT
59022019-06-25 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-winsource.h (tui_update_source_window_as_is)
5905 (tui_alloc_source_buffer, tui_line_is_displayed)
5906 (tui_addr_is_displayed): Change type of win_info.
5907 * tui/tui-winsource.c (tui_update_source_window_as_is)
5908 (tui_clear_source_content, tui_show_source_line)
5909 (tui_show_source_content, tui_source_window_base::refill)
5910 (tui_source_window_base::set_is_exec_point_at)
5911 (tui_source_window_base::set_is_exec_point_at)
5912 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5913 (tui_alloc_source_buffer, tui_line_is_displayed)
5914 (tui_addr_is_displayed): Change type of win_info. Update.
5915 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5916 (tui_source_window_base::do_make_visible_with_new_height):
5917 Update.
5918 * tui/tui-source.c (tui_set_source_content)
5919 (tui_set_source_content_nil)
5920 (tui_source_window::do_scroll_vertical): Update.
5921 * tui/tui-layout.c (show_layout): Update.
5922 * tui/tui-disasm.c (tui_set_disassem_content)
5923 (tui_disasm_window::do_scroll_vertical): Update.
5924 * tui/tui-data.h (tui_win_content): Remove.
5925 (struct tui_gen_win_info) <content, content_size>: Remove.
5926 (struct tui_source_element): Add initializers and destructor.
5927 (union tui_which_element, struct tui_win_element): Remove.
5928 (struct tui_source_window_base) <content>: New field.
5929 (struct tui_data_window): Remove destructor.
5930 (tui_alloc_content, tui_free_win_content)
5931 (tui_free_all_source_wins_content): Don't declare.
5932 * tui/tui-data.c (tui_initialize_static_data): Update.
5933 (init_content_element, tui_alloc_content): Remove.
5934 (~tui_gen_win_info): Update.
5935 (~tui_data_window, tui_free_all_source_wins_content)
5936 (tui_free_win_content, free_content, free_content_elements):
5937 Remove.
5938
7908abbf
TT
59392019-06-25 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-winsource.h (tui_clear_source_content)
5942 (tui_erase_source_content, tui_show_source_content): Change type
5943 of win_info.
5944 * tui/tui-winsource.c (tui_clear_source_content)
5945 (tui_erase_source_content, tui_show_source_content): Change type
5946 of win_info.
5947 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5948 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5949 win_info.
5950 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5951 win_info.
5952 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5953
02c28df0
TT
59542019-06-25 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-winsource.c (tui_clear_source_content)
5957 (tui_source_window_base::set_is_exec_point_at): Update.
5958 * tui/tui-source.c (tui_set_source_content_nil): Update.
5959 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5960 a bool.
5961 * tui/tui-data.c (init_content_element): Update.
5962
6658b1bf
TT
59632019-06-25 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5966 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5967 * tui/tui-layout.c (init_and_make_win): Update.
5968 * tui/tui.h (enum tui_win_type): Update.
5969 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5970 tui_win_is_auxillary.
5971 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5972 tui_win_is_auxillary.
5973
21e1c91e
TT
59742019-06-25 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5977 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5978 (tui_delete_data_content_windows, tui_display_all_data)
5979 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5980 Update.
5981 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5982 * tui/tui-regs.c (tui_last_regs_line_no)
5983 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5984 (tui_show_registers): Update.
5985 (tui_show_register_group): Return void. Update.
5986 (tui_display_registers_from, tui_display_reg_element_at_line)
5987 (tui_display_registers_from_line, tui_check_register_values):
5988 Update.
5989 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5990 member.
5991 (struct tui_data_window) <regs_content>: Now a std::vector.
5992 <regs_content_count>: Remove.
5993 (tui_add_content_elements, tui_free_data_content): Don't declare.
5994 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5995 (init_content_element): Remove DATA_WIN case. Add assert.
5996 (tui_add_content_elements): Remove.
5997 (tui_data_window): Update.
5998 (tui_free_data_content): Remove.
5999 (free_content_elements): Remove DATA_WIN case.
6000
115ac53b
TT
60012019-06-25 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-data.c (tui_data_item_window): Update.
6004 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6005 * tui/tui-windata.c (tui_display_all_data)
6006 (tui_display_data_from_line): Update.
6007 (tui_check_data_values): Remove.
6008 * tui/tui-regs.c (tui_show_register_group)
6009 (tui_display_reg_element_at_line): Update.
6010 * tui/tui-hooks.c (tui_register_changed)
6011 (tui_refresh_frame_and_register_information): Call
6012 tui_check_register_values.
6013 * tui/tui-data.h (struct tui_data_window) <data_content,
6014 data_content_count, data_type>: Remove.
6015 (enum tui_data_type): Remove.
6016
6017 * tui/tui-data.c (tui_data_window::clear_detail)
6018 (~tui_data_window): Update.
6019
eaf9738b
TT
60202019-06-25 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6023 declare.
6024 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6025 Rename from tui_first_data_item_displayed. Update.
6026 (tui_data_window::refresh_all)
6027 (tui_data_window::do_scroll_vertical): Update.
6028 * tui/tui-data.h (struct tui_data_window)
6029 <first_data_item_displayed>: Declare new method.
6030
31ca4723
TT
60312019-06-25 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6034 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6035 contents...
6036 (tui_initialize_static_data): ...here.
6037
41bcff7f
TT
60382019-06-25 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6041 (tui_display_registers_from, tui_check_register_values): Update.
6042 (tui_display_register): Remove win_info parameter; update.
6043 (tui_get_register): Change type of parameters.
6044 * tui/tui-data.h (struct tui_data_element): Remove.
6045 (union tui_which_element) <data>: Remove.
6046 <data_window>: Change type.
6047 (struct tui_data_item_window): New.
6048 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6049 case. Add assert.
6050 (~tui_data_item_window): New destructor.
6051 (free_content_elements): Remove DATA_ITEM_WIN case.
6052
d2802c33
TT
60532019-06-25 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6056 Remove.
6057
dd835f8b
TT
60582019-06-25 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-data.h (struct tui_command_element): Remove.
6061 (union tui_which_element) <command>: Remove.
6062 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6063 assert.
6064 (free_content_elements): Remove CMD_WIN case.
6065
bd7db367
TT
60662019-06-25 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-layout.c (tui_set_layout): Update.
6069 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6070 * tui/tui-data.c (layout_def): Update.
6071
3add462f
TT
60722019-06-25 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6075 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6076 (tui_source_window_base::set_new_height): Update.
6077 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6078 Update.
6079 (tui_set_locator_fullname, tui_set_locator_info)
6080 (tui_show_frame_info): Update.
6081 * tui/tui-source.c (tui_set_source_content)
6082 (tui_source_is_displayed): Update.
6083 * tui/tui-layout.c (show_source_disasm_command, show_data)
6084 (show_source_or_disasm_and_command): Update.
6085 * tui/tui-disasm.c (tui_set_disassem_content)
6086 (tui_get_begin_asm_address): Update.
6087 * tui/tui-data.h (struct tui_locator_element): Remove.
6088 (union tui_which_element) <locator>: Remove.
6089 (struct tui_locator_window): New.
6090 (tui_locator_win_info_ptr): Change return type.
6091 * tui/tui-data.c (_locator): Change type.
6092 (tui_locator_win_info_ptr): Change return type.
6093 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6094 (tui_alloc_content): Add assert.
6095
489e9d8b
TT
60962019-06-25 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui-winsource.c
6099 (tui_exec_info_window::maybe_allocate_content): New method.
6100 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6101 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6102 (make_source_or_disasm_window): Add cast.
6103 * tui/tui-data.h (union tui_which_element) <simple_string>:
6104 Remove.
6105 (struct tui_source_info): New.
6106 (struct tui_source_window_base) <execution_info>: Change type.
6107 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6108 case, and add assert.
6109 (tui_alloc_content): Add assert.
6110
c3fabb7d
TT
61112019-06-25 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6114 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6115 * tui/tui-data.c (tui_alloc_win_info): Remove.
6116
bbc228ee
TT
61172019-06-25 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6120 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6121 can_highlight.
6122
5fcee43a
TT
61232019-06-25 Tom Tromey <tom@tromey.com>
6124
6125 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6126 make_visible_with_new_height method.
6127 (tui_win_info::make_visible_with_new_height): New method.
6128 (tui_source_window_base::do_make_visible_with_new_height)
6129 (tui_data_window::do_make_visible_with_new_height)
6130 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6131 (make_visible_with_new_height): Remove.
6132 (tui_resize_all, tui_adjust_win_heights): Use
6133 make_visible_with_new_height method.
6134 * tui/tui-data.h (struct tui_win_info)
6135 <do_make_visible_with_new_height, make_visible_with_new_height>:
6136 New methods.
6137 (struct tui_source_window_base, struct tui_data_window)
6138 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6139 methods.
6140
d83f1fe6
TT
61412019-06-25 Tom Tromey <tom@tromey.com>
6142
6143 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6144 method.
6145 (update_tab_width): Call update_tab_width method.
6146 * tui/tui-data.h (struct tui_win_info)
6147 (struct tui_source_window_base) <update_tab_width>: New methods.
6148
17374de4
TT
61492019-06-25 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6152 parameter.
6153 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6154 parameter.
6155 (tui_gen_win_info::make_visible): Update.
6156 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6157 parameter.
6158 * tui/tui-data.h (enum tui_box): New enum.
6159 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6160
f936bca2
TT
61612019-06-25 Tom Tromey <tom@tromey.com>
6162
6163 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6164 init_and_make_win for EXEC_INFO_WIN.
6165 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6166 longer inline.
6167 (struct tui_win_info) <~tui_win_info>: Inline.
6168 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6169 Don't declare.
6170 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6171 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6172 Remove.
6173 (tui_initialize_static_data): Update.
6174 (~tui_gen_win_info): Handle more cleanup here.
6175 (~tui_source_window_base): Delete "execution_info".
6176 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6177
d6ba6a11
TT
61782019-06-25 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui-layout.c (make_command_window): Don't set
6181 can_highlight.
6182 (show_source_disasm_command): Call the reset method.
6183 (show_data): Don't set can_highlight. Call the reset method.
6184 (tui_gen_win_info::reset): Rename from init_gen_win_info
6185 (init_and_make_win): Simplify. Return tui_gen_win_info.
6186 (show_source_or_disasm_and_command): Call the reset method.
6187 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6188 (struct tui_cmd_window): Set can_highlight.
6189
48a3bd16
TT
61902019-06-25 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6193 from make_visible.
6194 (tui_make_visible, tui_make_invisible): Rewrite.
6195 (tui_win_info::make_visible): Remove.
6196 (tui_source_window_base::make_visible): Update.
6197 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6198 method. Moved from...
6199 (struct tui_win_info) <make_visible>: ...here.
6200
c3bd716f
TT
62012019-06-25 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-winsource.c
6204 (tui_source_window_base::do_scroll_horizontal): Remove direction
6205 parameter.
6206 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6207 direction parameter.
6208 * tui/tui-win.c (tui_win_info::forward_scroll)
6209 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6210 (tui_win_info::right_scroll): Update.
6211 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6212 direction parameter.
6213 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6214 direction parameter.
6215 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6216 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6217 Remove direction parameter.
6218 (struct tui_source_window_base, struct tui_source_window)
6219 (struct tui_disasm_window, struct tui_data_window)
6220 (struct tui_cmd_window): Update.
6221
21c32dca
TT
62222019-06-25 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-winsource.h (tui_set_exec_info_content)
6225 (tui_show_exec_info_content, tui_erase_exec_info_content)
6226 (tui_clear_exec_info_content, tui_update_exec_info): Change
6227 argument to tui_source_window_base.
6228 * tui/tui-winsource.c (tui_set_exec_info_content)
6229 (tui_show_exec_info_content, tui_erase_exec_info_content)
6230 (tui_clear_exec_info_content, tui_update_exec_info): Change
6231 argument to tui_source_window_base.
6232
73fbdc65
TT
62332019-06-25 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6236 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6237
33325343
TT
62382019-06-25 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6241 check.
6242
29d2c474
TT
62432019-06-25 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6246 type to void.
6247 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6248 type to void.
6249 * tui/tui-source.c (tui_set_source_content): Update.
6250 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6251
152f3f4b
TT
62522019-06-25 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-win.c (window_name_completer, tui_set_focus)
6255 (tui_all_windows_info): Use name method.
6256 * tui/tui-data.h (struct tui_gen_win_info)
6257 (struct tui_source_window, struct tui_disasm_window)
6258 (struct tui_data_window, struct tui_cmd_window) <name>: New
6259 method.
6260 (tui_win_name): Don't declare.
6261 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6262 (tui_win_name): Remove.
6263
be4da588
TT
62642019-06-25 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-winsource.h (tui_update_source_window)
6267 (tui_update_source_window_as_is): Change parameter type.
6268 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6269 to be a tui_source_window_base.
6270 (tui_update_source_window_as_is): Likewise.
6271 * tui/tui-win.c (make_visible_with_new_height): Update.
6272
5b81daba
TT
62732019-06-25 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-winsource.c (tui_erase_source_content)
6276 (tui_show_source_content, tui_show_exec_info_content)
6277 (tui_erase_exec_info_content): Use refresh_window method.
6278 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6279 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6280 from tui_refresh_win.
6281 (tui_data_window::refresh_window): New method.
6282 (tui_win_info::refresh, tui_source_window_base::refresh)
6283 (tui_refresh_all): Use refresh_window method.
6284 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6285 method.
6286 * tui/tui-regs.c (tui_display_register): Call refresh_window
6287 method.
6288 * tui/tui-layout.c (show_source_disasm_command)
6289 (show_source_or_disasm_and_command): Call refresh_window method.
6290 * tui/tui-data.h (struct tui_gen_win_info)
6291 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6292 New method.
6293
cb2ce893
TT
62942019-06-25 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui.c (tui_rl_other_window, tui_enable)
6297 (tui_is_window_visible, tui_get_command_dimension): Update.
6298 * tui/tui-winsource.c (tui_update_source_window_as_is)
6299 (tui_clear_source_content, tui_erase_source_content)
6300 (tui_show_source_line, tui_source_window_base::refill)
6301 (tui_source_window_base::do_scroll_horizontal)
6302 (tui_source_window_base::set_is_exec_point_at)
6303 (tui_update_breakpoint_info, tui_set_exec_info_content)
6304 (tui_alloc_source_buffer, tui_line_is_displayed)
6305 (tui_addr_is_displayed): Update.
6306 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6307 (tui_check_and_display_highlight_if_needed)
6308 (tui_win_info::make_visible, tui_win_info::refresh)
6309 (tui_refresh_all): Update.
6310 * tui/tui-windata.c (tui_first_data_item_displayed)
6311 (tui_delete_data_content_windows, tui_erase_data_content)
6312 (tui_display_all_data, tui_data_window::refresh_all)
6313 (tui_check_data_values): Update.
6314 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6315 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6316 (tui_win_info::backward_scroll, tui_refresh_all_win)
6317 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6318 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6319 (tui_source_window_base::set_new_height)
6320 (tui_data_window::set_new_height)
6321 (make_invisible_and_set_new_height)
6322 (make_visible_with_new_height, new_height_ok)
6323 (parse_scrolling_args): Update.
6324 * tui/tui-stack.c (tui_show_frame_info): Update.
6325 * tui/tui-source.c (tui_set_source_content)
6326 (tui_set_source_content_nil, tui_source_is_displayed)
6327 (tui_source_window::do_scroll_vertical): Update.
6328 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6329 (tui_display_registers_from, tui_display_reg_element_at_line)
6330 (tui_check_register_values, tui_reg_command): Update.
6331 * tui/tui-layout.c (tui_default_win_height)
6332 (show_source_disasm_command, show_data, init_and_make_win)
6333 (show_source_or_disasm_and_command): Update.
6334 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6335 (tui_redisplay_readline, tui_mld_flush)
6336 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6337 (tui_getc): Update.
6338 * tui/tui-disasm.c (tui_set_disassem_content)
6339 (tui_disasm_window::do_scroll_vertical): Update.
6340 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6341 Now virtual.
6342 (struct tui_win_info): Derive from tui_gen_win_info.
6343 <~tui_win_info>: Mark as override.
6344 <generic>: Remove member.
6345 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6346 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6347 (~tui_data_window, ~tui_win_info)
6348 (tui_free_all_source_wins_content): Update.
6349 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6350
ab313b35
TT
63512019-06-25 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-layout.c (init_and_make_win): Use new.
6354 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6355 destructor, initializers.
6356 (tui_alloc_generic_win_info): Don't declare.
6357 * tui/tui-data.c (_locator): Add argument to constructor.
6358 (source_win, disasm_win): New globals.
6359 (exec_info): Remove.
6360 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6361 Update.
6362 (tui_alloc_generic_win_info): Remove.
6363 (init_content_element): Use new.
6364 (tui_win_info::tui_win_info): Update.
6365 (free_content_elements) <case DATA_WIN>: Use delete.
6366
dc2c33e4
TT
63672019-06-25 Tom Tromey <tom@tromey.com>
6368
6369 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6370 * tui/tui-windata.c (tui_first_data_item_displayed)
6371 (tui_delete_data_content_windows): Update.
6372 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6373 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6374 (tui_display_registers_from, tui_check_register_values): Update.
6375 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6376 pointer.
6377 * tui/tui-data.c (init_content_element): Update. Allocate the new
6378 window.
6379 (tui_free_data_content): Update.
6380 (free_content_elements) <case DATA_WIN>: Free the window.
6381
214a5cbe
TT
63822019-06-25 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6385 Update.
6386 * tui/tui-layout.c (make_command_window)
6387 (show_source_disasm_command, show_data, init_and_make_win)
6388 (show_source_or_disasm_and_command): Update.
6389 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6390 method.
6391 <can_highight, is_highlighted>: Now bool.
6392 (tui_set_win_highlight): Don't declare.
6393 * tui/tui-data.c (tui_set_win_highlight): Remove.
6394
8e2daf15
TT
63952019-06-25 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-wingeneral.c (make_visible): Remove check of window
6398 type.
6399
8903bd8a
TT
64002019-06-25 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-win.c (tui_win_info::max_height)
6403 (tui_cmd_window::max_height): New methods.
6404 (new_height_ok): Call max_height.
6405 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6406 <max_height>: New method.
6407
3f02ce1e
TT
64082019-06-25 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-win.c (tui_source_window_base::set_new_height)
6411 (tui_data_window::set_new_height): New methods.
6412 (make_invisible_and_set_new_height): Call set_new_height method.
6413 * tui/tui-data.h (struct tui_win_info)
6414 (struct tui_source_window_base, struct tui_data_window)
6415 <set_new_height>: New method.
6416
1825f487
TT
64172019-06-25 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6420 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6421 tui_refresh_data_win.
6422 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6423 method.
6424 (tui_refresh_all_win): Call the refresh_all method.
6425 (tui_set_focus): Likewise.
6426 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6427 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6428 Likewise.
6429
ad54d15b
TT
64302019-06-25 Tom Tromey <tom@tromey.com>
6431
6432 * tui/tui-winsource.h (tui_refill_source_window)
6433 (tui_set_is_exec_point_at): Don't declare.
6434 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6435 (tui_source_window_base::refill): Rename from
6436 tui_refill_source_window.
6437 (tui_source_window_base::do_scroll_horizontal): Update.
6438 (tui_source_window_base::set_is_exec_point_at): Rename from
6439 tui_set_is_exec_point_at.
6440 (tui_update_all_breakpoint_info): Update.
6441 * tui/tui-stack.c (tui_show_frame_info): Update.
6442 * tui/tui-layout.c (show_data): Add cast.
6443 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6444 * tui/tui-data.h (struct tui_source_window_base) <refill,
6445 set_is_exec_point_at>: New methods.
6446 (tui_source_windows, tui_add_to_source_windows): Update types.
6447 (tui_add_to_source_windows): Remove redundant declaration.
6448 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6449 (tui_source_windows): Change return type.
6450 (tui_clear_source_windows_detail): Update.
6451 (tui_add_to_source_windows): Change type of parameter.
6452 (tui_free_all_source_wins_content): Update.
6453
2042b506
TT
64542019-06-25 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-wingeneral.c (tui_win_info::refresh)
6457 (tui_source_window_base::refresh): New methods.
6458 (tui_refresh_all): Call the refresh method.
6459 * tui/tui-data.h (struct tui_win_info)
6460 (struct tui_source_window_base) <refresh>: New method.
6461
56122977
TT
64622019-06-25 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui.h (tui_is_window_visible): Return bool.
6465 * tui/tui.c (tui_is_window_visible): Return bool.
6466 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6467 (tui_make_visible, tui_make_invisible)
6468 (tui_win_info::make_visible)
6469 (tui_source_window_base::make_visible, make_all_visible)
6470 (tui_make_all_visible, tui_make_all_invisible): Update.
6471 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6472 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6473 bool.
6474 (struct tui_win_info, struct tui_source_window_base)
6475 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6476 * tui/tui-data.c (tui_init_generic_part): Update.
6477
cda37efb
TT
64782019-06-25 Tom Tromey <tom@tromey.com>
6479
6480 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6481 (tui_source_window_base::make_visible): New methods.
6482 (make_all_visible): Make method call.
6483 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6484 (struct tui_source_window_base, struct tui_cmd_window): Override
6485 make_visible.
6486 (tui_win_is_source_type): Don't declare.
6487 * tui/tui-data.c (tui_win_is_source_type): Remove.
6488
6a0ee02c
TT
64892019-06-25 Tom Tromey <tom@tromey.com>
6490
6491 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6492 NULL check.
6493
63901aec
TT
64942019-06-25 Tom Tromey <tom@tromey.com>
6495
6496 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6497 Inline constructor. Add initializers for members.
6498 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6499 constructors; now inline in class.
6500
ceb13a13
TT
65012019-06-25 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-regs.c (tui_show_registers): Update.
6504 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6505 bool.
6506 * tui/tui-data.c (tui_data_window::clear_detail)
6507 (tui_data_window): Update.
6508
238eb706
TT
65092019-06-25 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-windata.c (tui_display_all_data)
6512 (tui_display_data_from_line, tui_display_data_from)
6513 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6514 Update.
6515 * tui/tui-regs.c (tui_last_regs_line_no)
6516 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6517 (tui_show_registers, tui_show_register_group)
6518 (tui_display_registers_from, tui_display_reg_element_at_line)
6519 (tui_display_registers_from_line, tui_check_register_values)
6520 (tui_reg_next, tui_reg_prev): Update.
6521 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6522 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6523 tui_data_window.
6524 (struct tui_win_info) <detail>: Remove. Add new fields from
6525 tui_data_info.
6526 (TUI_DATA_WIN): Add cast.
6527 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6528 (~tui_data_window): Simplify.
6529
81491aa0
TT
65302019-06-25 Tom Tromey <tom@tromey.com>
6531
6532 * tui/tui-layout.c (show_source_disasm_command)
6533 (show_source_or_disasm_and_command): Update.
6534 * tui/tui-io.c (update_cmdwin_start_line)
6535 (tui_redisplay_readline): Update.
6536 * tui/tui-data.h (struct tui_command_info): Remove.
6537 (struct tui_win_info) <detail>: Remove command_info member.
6538 (struct tui_data_window) <start_line>: New member, from
6539 tui_command_info.
6540 (TUI_CMD_WIN): Add casts.
6541
e6e41501
TT
65422019-06-25 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-winsource.c (tui_update_source_window)
6545 (tui_refill_source_window)
6546 (tui_source_window_base::do_scroll_horizontal)
6547 (tui_update_breakpoint_info, tui_set_exec_info_content)
6548 (tui_show_exec_info_content, tui_erase_exec_info_content)
6549 (tui_clear_exec_info_content): Update.
6550 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6551 Update.
6552 * tui/tui-win.c (make_invisible_and_set_new_height)
6553 (make_visible_with_new_height): Update.
6554 * tui/tui-source.c (tui_set_source_content)
6555 (tui_show_symtab_source): Update.
6556 * tui/tui-layout.c (extract_display_start_addr)
6557 (show_source_disasm_command, show_data)
6558 (make_source_or_disasm_window)
6559 (show_source_or_disasm_and_command): Update.
6560 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6561 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6562 "gdbarch".
6563 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6564 to tui_source_window_base.
6565 (struct tui_win_info) <detail>: Remove source_info member.
6566 (struct tui_source_window_base) <has_locator>: Inline.
6567 Move contents from tui_source_info; rename has_locator member to
6568 m_has_locator.
6569 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6570 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6571 header file.
6572 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6573 Simplify.
6574 (tui_free_all_source_wins_content): Cast to
6575 tui_source_window_base.
6576
44f0e208
TT
65772019-06-25 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-win.c (make_invisible_and_set_new_height)
6580 (make_visible_with_new_height): Call has_locator method.
6581 * tui/tui-layout.c (show_source_disasm_command, show_data)
6582 (show_source_or_disasm_and_command): Update for bool change.
6583 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6584 (tui_win_info) <has_locator>: New method.
6585 (struct tui_source_window_base) <has_locator>: New method.
6586 (tui_win_has_locator): Don't declare.
6587 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6588 from tui_win_has_locator.
6589 (tui_source_window_base): Use false, not FALSE.
6590
7778b912
TT
65912019-06-25 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6594 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6595 clear_detail method directly.
6596 (tui_clear_win_detail): Remove.
6597
f83d391c
TT
65982019-06-25 Tom Tromey <tom@tromey.com>
6599
6600 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6601 "this", not TUI_DISASM_WIN.
6602
13446e05
TT
66032019-06-25 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6606 declare.
6607 * tui/tui-winsource.c
6608 (tui_source_window_base::do_scroll_horizontal): Rename from
6609 tui_horizontal_source_scroll.
6610 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6611 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6612 from tui_vertical_data_scroll.
6613 * tui/tui-win.h (tui_scroll): Don't declare.
6614 * tui/tui-win.c (tui_win_info::forward_scroll)
6615 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6616 (tui_win_info::right_scroll): Rename and update.
6617 (tui_scroll_forward_command, tui_scroll_backward_command)
6618 (tui_scroll_left_command, tui_scroll_right_command): Update.
6619 (tui_scroll): Remove.
6620 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6621 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6622 from tui_vertical_source_scroll.
6623 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6624 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6625 from tui_vertical_disassem_scroll.
6626 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6627 do_scroll_horizontal>: New methods.
6628 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6629 Likewise.
6630 (struct tui_source_window_base): Add do_scroll_horizontal.
6631 (struct tui_source_window, struct tui_disasm_window): Add
6632 do_scroll_vertical.
6633 (struct tui_data_window, struct tui_cmd_window): Add
6634 do_scroll_horizontal and do_scroll_vertical.
6635 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6636
5cf82909
TT
66372019-06-25 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-data.h (struct tui_source_window_base): New struct.
6640 (struct tui_source_window): Derive from tui_source_window_base.
6641 (struct tui_disasm_window): New struct.
6642 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6643 from tui_source_window::clear_detail.
6644 (tui_source_window_base): Rename from tui_source_window.
6645 (~tui_source_window_base): Rename from ~tui_source_window.
6646 (tui_alloc_win_info): Create a tui_disasm_window.
6647
ee1d42d6
TT
66482019-06-25 Tom Tromey <tom@tromey.com>
6649
6650 * tui/tui-data.h (struct tui_source_window)
6651 (struct tui_data_window): Declare destructors.
6652 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6653 destructors.
6654 (tui_win_info): Simplify.
6655
b4eb2452
TT
66562019-06-25 Tom Tromey <tom@tromey.com>
6657
6658 * tui/tui-winsource.c (tui_display_main)
6659 (tui_update_source_windows_with_addr)
6660 (tui_update_all_breakpoint_info): Update.
6661 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6662 (new_height_ok, parse_scrolling_args): Update.
6663 * tui/tui-stack.c (tui_show_frame_info): Update.
6664 * tui/tui-data.h (struct tui_list): Remove.
6665 (tui_source_windows): Return a reference to a std::vector.
6666 * tui/tui-data.c (source_windows): Now a std::vector.
6667 (tui_source_windows): Change return type.
6668 (tui_clear_source_windows): Rewrite.
6669 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6670 (tui_free_all_source_wins_content): Rewrite.
6671
8761a91b
TT
66722019-06-25 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6675 (struct tui_data_window, struct tui_cmd_window): Declare
6676 clear_detail method.
6677 * tui/tui-data.c (tui_source_window::clear_detail)
6678 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6679 methods.
6680 (tui_clear_win_detail): Simplify.
6681
0ed69eda
TT
66822019-06-25 Tom Tromey <tom@tromey.com>
6683
6684 * tui/tui-layout.c (make_source_window, make_disasm_window)
6685 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6686 Return the new window.
6687 (show_source_disasm_command, show_data)
6688 (show_source_or_disasm_and_command): Update.
6689
82432e10
TT
66902019-06-25 Tom Tromey <tom@tromey.com>
6691
6692 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6693 parameter. Return the new window.
6694 (show_source_disasm_command): Update and remove NULL check.
6695 (show_source_or_disasm_and_command): Update.
6696
ec328aa5
TT
66972019-06-25 Tom Tromey <tom@tromey.com>
6698
6699 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6700
33b906ab
TT
67012019-06-25 Tom Tromey <tom@tromey.com>
6702
6703 * tui/tui-data.h (struct tui_win_info): Make constructor
6704 protected. Make destructor virtual. Add initializers.
6705 (tui_source_window, tui_data_window, tui_cmd_window): New
6706 classes.
6707 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6708 constructor. Add "type" parameter.
6709 (tui_source_window, tui_data_window, tui_cmd_window): New
6710 constructors.
6711 (tui_alloc_win_info): Instantiate the appropriate subclass.
6712
e7e11af4
TT
67132019-06-25 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-win.c (tui_resize_all): Use delete.
6716 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6717 destructor.
6718 (tui_free_window): Don't declare.
6719 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6720 Update.
6721
6792b55e
TT
67222019-06-25 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-data.h (struct tui_win_info): Add constructor.
6725 * tui/tui-data.c (tui_alloc_win_info): Use new.
6726 (tui_free_window): Use delete.
6727
f95675e1
TT
67282019-06-22 Tom Tromey <tom@tromey.com>
6729
6730 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6731 declare.
6732 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6733
5bff081c
TT
67342019-06-22 Tom Tromey <tom@tromey.com>
6735
6736 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6737 declare.
6738 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6739
47e3f474
TV
67402019-06-22 Tom de Vries <tdevries@suse.de>
6741
6742 * dwarf2read.c (create_addrmap_from_aranges)
6743 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6744 instead of '%zu'.
6745
fd5866f6
SM
67462019-06-21 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * dwarf2read.h (dwarf2_section_info_def): Remove.
6749 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6750 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6751 std::vector<dwarf2_section_info>.
6752 (struct dwo_file) <~dwo_file>: Remove.
6753 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6754 types field.
6755 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6756 (dwarf2_read_debug_names): Likewise.
6757 (create_debug_types_hash_table): Change parameter type to
6758 array_view, adjust code accordingly.
6759 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6760 (partial_die_info::fixup): Likewise.
6761 (determine_prefix): Likewise.
6762 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6763
fb1eb2f9
SM
67642019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6765
6766 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6767 gdb_bfd_ref_ptr.
6768 <~dwo_file>: Remove call to gdb_bfd_unref.
6769 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6770 gdb_bfd_ref_ptr::get.
6771
51ac9db5
SM
67722019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6775 type to htab_up.
6776 * dwarf2read.c (struct dwo_file): Initialize fields.
6777 <~dwo_file>: New.
6778 (free_dwo_file): Remove, move content to ~dwo_file.
6779 (struct dwo_file_deleter): Remove.
6780 (dwo_file_up>: Remove custom deleter.
6781 (free_dwo_files): Remove.
6782 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6783 dwo_files.
6784 (process_skeletonless_type_units): Call unique_ptr::get.
6785 (allocate_dwo_file_hash_table): Add deleter to created hash
6786 table. Change return type to htab_up.
6787 (lookup_dwo_file_slot): Don't memset dwo_file, call
6788 unique_ptr::get.
6789 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6790 (create_dwo_unit_in_dwp_v2): Likewise.
6791 (open_and_init_dwo_file): Likewise.
6792 (free_dwo_file_from_slot): Remove.
6793
dc4ccb6f
SM
67942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * dwarf2read.h (struct dwarf2_section_info) <readin,
6797 is_virtual>: Change type to bool.
6798 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6799 true instead of 1.
6800
e6a1c5cb
TT
68012019-06-19 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-data.h (tui_init_content_element): Don't declare.
6804
6f6ffbeb
TT
68052019-06-19 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-data.h (tui_init_win_info): Don't declare.
6808
f23f598e
TV
68092019-06-19 Tom de Vries <tdevries@suse.de>
6810
6811 * dwarf2read.h (abstract_to_concrete): Change type to
6812 std::unordered_map<sect_offset, std::vector<sect_offset>,
6813 gdb::hash_enum<sect_offset>>.
6814
680e1bee
TT
68152019-06-19 Tom Tromey <tromey@adacore.com>
6816
6817 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6818 EVAL_AVOID_SIDE_EFFECTS specially.
6819
dcf37923
TT
68202019-06-19 Tom Tromey <tromey@adacore.com>
6821
6822 * source-cache.c (highlighter): New global.
6823 (source_cache::get_source_lines): Create a highlighter on demand.
6824
494986d5
AB
68252019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * defs.h (deprecated_interactive_hook): Delete declaration.
6828 * interps.c (clear_interpreter_hooks): Remove use of
6829 deprecated_interactive_hook.
6830 * top.c (deprecated_interactive_hook): Delete definition.
6831 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6832
3360b6e7
TV
68332019-06-18 Tom de Vries <tdevries@suse.de>
6834
6835 PR gdb/24515
6836 * dwarf2read.h (abstract_to_concrete): Change type from
6837 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6838 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6839 * dwarf2read.c (read_variable): Update.
6840 (dwarf2_fetch_die_loc_sect_off): Update.
6841
310b3441
TV
68422019-06-17 Tom de Vries <tdevries@suse.de>
6843
6844 PR gdb/24617
6845 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6846 accessing parent[parent_len - 1].
6847
ba9777be
PP
68482019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6849
6850 PR gdb/24364
6851 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6852 call dtrace_process_dof with NULL dof.
6853
2b9f6e89
TV
68542019-06-16 Tom de Vries <tdevries@suse.de>
6855
6856 PR gdb/24445
6857 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6858
431b3ead
TT
68592019-06-16 Tom Tromey <tom@tromey.com>
6860
6861 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6862 (make_all_visible): Use address of member.
6863
d04b44a1
TT
68642019-06-16 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6867 (tui_free_window, free_content, free_content_elements): Remove
6868 unnecessary cast.
6869 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6870 cast.
6871 * tui/tui-regs.c (tui_show_register_group)
6872 (tui_display_registers_from, tui_display_reg_element_at_line):
6873 Remove unnecessary cast.
6874
bf5142e7
AB
68752019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * linux-nat.c (normal_mask): Delete.
6878 (_initialize_linux_nat): Don't initialise normal_mask.
6879
c4973306
SM
68802019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6881
6882 PR gdb/24445
6883 * dwarf-index-write.h (write_psymtabs_to_index): Add
6884 dwz_basename parameter.
6885 * dwarf-index-write.c (write_gdbindex): Move file writing to
6886 write_gdbindex_1. Change return type void.
6887 (assert_file_size): Move up, remove filename parameter.
6888 (write_gdbindex_1): New function.
6889 (write_debug_names): Change return type to void, call
6890 assert_file_size.
6891 (struct index_wip_file): New struct.
6892 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6893 file logic to index_wip_file. Write index for dwz file if
6894 needed.
6895 (save_gdb_index_command): Pass basename of dwz file, if present.
6896 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6897 build-id of dwz file, if present.
6898 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6899 (dwarf2_get_dwz_file): Likewise.
6900 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6901 (dwarf2_get_dwz_file): Likewise.
6902
395f9c91
TT
69032019-06-16 Tom Tromey <tom@tromey.com>
6904
6905 * coffread.c (process_coff_symbol): Use xstrdup.
6906 * value.c (create_internalvar): Use xstrdup.
6907
cafb3438
TT
69082019-06-16 Tom Tromey <tom@tromey.com>
6909
6910 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6911 * breakpoint.c (stopin_command, stopat_command)
6912 (until_break_command, decode_location_default): Remove unnecessary
6913 cast.
6914 * utils.c (subset_compare): Remove unnecessary cast.
6915 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6916 cast.
6917 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6918 cast.
6919 * infcmd.c (path_command): Remove unnecessary cast.
6920 * coffread.c (decode_type): Remove unnecessary cast.
6921 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6922 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6923 * tui/tui-stack.c (tui_show_locator_content)
6924 (tui_show_frame_info): Remove unnecessary cast.
6925 * tui/tui-win.c (tui_scroll_forward_command)
6926 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6927 (parse_scrolling_args): Remove unnecessary cast.
6928 * tui/tui-data.c (init_win_info, tui_del_window)
6929 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6930 (free_content_elements): Remove unnecessary cast.
6931 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6932 unnecessary cast.
6933 * tui/tui-source.c (tui_set_source_content)
6934 (tui_vertical_source_scroll): Remove unnecessary cast.
6935 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6936 cast.
6937 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6938 * tui/tui-regs.c (tui_display_registers_from)
6939 (tui_display_register): Remove unnecessary cast.
6940 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6941 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6942 (make_visible): Remove unnecessary cast.
6943 * tui/tui-winsource.c (tui_erase_source_content)
6944 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6945 unnecessary cast.
6946 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6947 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6948 * stabsread.c (read_type, read_array_type, read_range_type):
6949 Remove unnecessary cast.
6950 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6951 (parse_symbol, parse_type, upgrade_type, parse_external)
6952 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6953 unnecessary cast.
6954 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6955
730ead81
TT
69562019-06-16 Tom Tromey <tom@tromey.com>
6957
6958 * tui/tui-data.c (tui_alloc_generic_win_info)
6959 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6960 checks.
6961
584a927c
AB
69622019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6963 Andrew Burgess <andrew.burgess@embecosm.com>
6964
6965 * f-typeprint.c (f_print_type): Don't return early for not
6966 associated or not allocated types.
6967 (f_type_print_varspec_suffix): Add print_rank parameter and print
6968 ranks of array types in case they dangling.
6969 (f_type_print_base): Add print_rank parameter.
6970
30056ea0
AB
69712019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * NEWS: Mention new MI commands.
6974 * break-catch-throw.c (enum exception_event_kind): Move to
6975 breakpoint.h.
6976 (print_mention_exception_catchpoint): Output text as a single
6977 message.
6978 (catch_exception_command_1): Rename to...
6979 (catch_exception_event): ...this, make non-static, update header
6980 command, and change some parameter types.
6981 (catch_catch_command): Update for changes to
6982 catch_exception_command_1.
6983 (catch_throw_command): Likewise.
6984 (catch_rethrow_command): Likewise.
6985 * breakpoint.c (enum exception_event_kind): Delete.
6986 * breakpoint.h (enum exception_event_kind): Moved here from
6987 break-catch-throw.c.
6988 (catch_exception_event): Declare.
6989 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6990 (mi_cmd_catch_throw): New function.
6991 (mi_cmd_catch_rethrow): New function.
6992 (mi_cmd_catch_catch): New function.
6993 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6994 'catch-catch' entries.
6995 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6996 (mi_cmd_catch_rethrow): Declare.
6997 (mi_cmd_catch_catch): Declare.
6998
ec8e2b6d
AB
69992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * annotate.c (annotate_source_line): Change return type to void,
7002 update implementation to match.
7003 * annotate.h (annotate_source_line): Change return type to void,
7004 update header comment.
7005 * stack.c (print_frame_info): Don't change what frame information
7006 is printed based on whether annotations are on or not.
7007
0d3abd8c
AB
70082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7011 (annotate_source): Make static.
7012 (annotate_source_line): Moved from source.c and renamed from
7013 identify_source_line. Update the return type.
7014 * annotate.h (annotate_source): Delete declaration.
7015 (annotate_source_line): Declaration moved from source.h, and
7016 renamed from identify_source_line. Return type updated.
7017 * source.c (identify_source_line): Moved to annotate.c and renamed
7018 to annotate_source_line.
7019 (info_line_command): Remove check of annotation_level.
7020 * source.h (identify_source_line): Move declaration to annotate.h
7021 and rename to annotate_source_line.
7022 * stack.c: Add 'annotate.h' include.
7023 (print_frame_info): Remove check of annotation_level before
7024 calling annotate_source_line.
7025
00df30ae
AB
70262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * source-cache.c (source_cache::get_plain_source_lines): Use
7029 open_source_file_with_line_charpos instead of just
7030 open_source_file, remove call to find_source_lines.
7031 (source_cache::get_source_lines): Likewise.
7032 * source.c (find_source_lines): Make static.
7033 (get_filename_and_charpos): Renamed into...
7034 (open_source_file_with_line_charpos): ..this along with changes to
7035 return a scoped_fd, and some other minor clean ups.
7036 (identify_source_line): Use open_source_file_with_line_charpos.
7037 (search_command_helper): Use open_source_file_with_line_charpos
7038 instead of just open_source_file, remove call to
7039 find_source_lines.
7040 * source.h (open_source_file_with_line_charpos): Declare new
7041 function.
7042 (find_source_lines): Delete declaration.
7043
afda45a2
AB
70442019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * source.c (get_filename_and_charpos): Remove fullname
7047 parameter.
7048 (identify_source_line): Update call to get_filename_and_charpos.
7049
0735b091
TT
70502019-06-14 Tom Tromey <tromey@adacore.com>
7051
7052 PR gdb/24502:
7053 * ui-style.h (skip_ansi_escape): Update comment.
7054 * ui-file.h (class no_terminal_escape_file): New class.
7055 * ui-file.c (no_terminal_escape_file::write)
7056 (no_terminal_escape_file::puts): New methods.
7057 * cli/cli-logging.c (handle_redirections): Use
7058 no_terminal_escape_file.
7059
52ce35e2
TT
70602019-06-14 Tom Tromey <tromey@adacore.com>
7061
7062 * NEWS: Move convenience variable news above Python news.
7063
73cc7272
TT
70642019-06-14 Tom Tromey <tom@tromey.com>
7065
7066 * gnulib: Move directory to top-level.
7067 * configure.ac: Don't configure gnulib.
7068 * configure: Rebuild.
7069 * common/common-defs.h: Use new path to gnulib.
7070 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7071 (GNULIB_H): Remove.
7072 (INCGNU): Look in new gnulib location.
7073 (HFILES_NO_SRCDIR): Remove gnulib files.
7074 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7075 (generated_files): Remove GNULIB_H.
7076 ($(LIBGNU), all-lib): Remove targets.
7077 (distclean): Don't mention GNULIB_BUILDDIR.
7078 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7079
f5686554
TT
70802019-06-14 Tom Tromey <tromey@adacore.com>
7081
7082 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7083 Warn if symbol file does not provide any symbols.
7084
a0c1ffed
TT
70852019-06-14 Tom Tromey <tromey@adacore.com>
7086
7087 * source.c (find_and_open_source): Respect basenames_may_differ.
7088
7c39e397
AB
70892019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7090
7091 * annotate.c (annotate_breakpoints_invalid): Make use of
7092 scoped_restore_terminal_state.
7093 (annotate_frames_invalid): Likewise.
7094
f411722c
TT
70952019-06-14 Tom Tromey <tromey@adacore.com>
7096
7097 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7098 allow assignment to an internalvar.
7099
4268ec18
TT
71002019-06-14 Tom Tromey <tromey@adacore.com>
7101
7102 * ada-lex.l: Allow "_" in attribute names.
7103
abdb711e
TT
71042019-06-14 Tom Tromey <tromey@adacore.com>
7105
7106 PR gdb/24653:
7107 * regcache.c (registers_changed): Don't call alloca.
7108 * top.c (execute_command): Don't call alloca.
7109
4c048731
PA
71102019-06-13 Pedro Alves <palves@redhat.com>
7111
7112 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7113 'expression'. When parsing an expression, error out if there's
7114 junk after "unlimited".
7115 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7116 (do_set_command): Adjust calls to is_unlimited_literal.
7117
66eb1ed3
PA
71182019-06-13 Pedro Alves <palves@redhat.com>
7119
7120 * compile/compile.c (make_compile_options_def_group): Add braces
7121 around array_view initializer.
7122 * thread.c (make_thread_apply_all_options_def_group)
7123 (make_thread_apply_all_options_def_group): Likewise.
7124
3345721a
PA
71252019-06-13 Pedro Alves <palves@redhat.com>
7126
7127 * NEWS (New commands): Mention "maint test-options
7128 require-delimiter", "maint test-options unknown-is-error", "maint
7129 test-options unknown-is-operand" and "maint show
7130 test-options-completion-result".
7131 (New command options, command completion): New section.
7132 (Completion improvements): New section.
7133 Mention that you can abbreviate "unlimited".
7134
6206060d
PA
71352019-06-13 Pedro Alves <palves@redhat.com>
7136
7137 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7138 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7139 * unittests/cli-utils-selftests.c (test_parse_flags)
7140 (test_parse_flags_qcs): Delete.
7141 (test_cli_utils): Don't call deleted functions.
7142
6665660a
PA
71432019-06-13 Pedro Alves <palves@redhat.com>
7144
7145 * thread.c: Include "cli/cli-option.h".
7146 (tp_array_compar_ascending): Global.
7147 (tp_array_compar): Delete function.
7148 (tp_array_compar_ascending, tp_array_compar_descending): New
7149 functions.
7150 (ascending_option_def, qcs_flag_option_def)
7151 (thr_qcs_flags_option_defs)
7152 (make_thread_apply_all_options_def_group)
7153 (make_thread_apply_options_def_group): New.
7154 (thread_apply_all_command): Use gdb::option::process_options.
7155 (thread_apply_command_completer)
7156 (thread_apply_all_command_completer): New.
7157 (thread_apply_command): Use gdb::option::process_options.
7158 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7159 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7160 to generate help text of "thread apply". Adjust "taas"'s help.
7161 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7162 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7163
f7e13587
PA
71642019-06-13 Pedro Alves <palves@redhat.com>
7165
7166 * thread.c (thread_apply_command): Check for invalid TID with
7167 isdigit instead of !isalpha.
7168
5d707134
PA
71692019-06-13 Pedro Alves <palves@redhat.com>
7170
7171 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7172 (validate_flags_qcs): New.
7173 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7174 (validate_flags_qcs): Declare.
7175 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7176 (make_frame_apply_options_def_group): New.
7177 (frame_apply_command_count): Process options with
7178 gdb::option::process_options.
7179 (frame_apply_completer): New.
7180 (frame_apply_level_completer, frame_apply_all_completer)
7181 (frame_apply_completer): New.
7182 (_initialize_stack): Update help of "frame apply", "frame apply
7183 level", "frame apply all" and "faas" to mention supported options
7184 and install command completers.
7185 * stack.h (frame_apply_all_completer): Declare.
7186 * thread.c: Include "stack.h".
7187 (tfaas_command): Add "--".
7188 (_initialize_thread): Update help "tfaas" to mention supported
7189 options and install command completer.
7190
272d4594
PA
71912019-06-13 Pedro Alves <palves@redhat.com>
7192
7193 * completer.c (complete_nested_command_line): New.
7194 (gdb_completion_word_break_characters_throw): Add assertion.
7195 * completer.h (complete_nested_command_line): Declare.
7196
90a1ef87
PA
71972019-06-13 Pedro Alves <palves@redhat.com>
7198
7199 * stack.c (parse_backtrace_qualifiers): New.
7200 (backtrace_command): Use it.
7201 (backtrace_command_completer): Complete on qualifiers.
7202
d4c16835
PA
72032019-06-13 Pedro Alves <palves@redhat.com>
7204
7205 * frame.c: Include "cli/cli-option.h.
7206 (user_set_backtrace_options): New.
7207 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7208 Delete.
7209 (get_prev_frame): Adjust.
7210 (boolean_option_def, uinteger_option_def)
7211 (set_backtrace_option_defs): New.
7212 (_initialize_frame): Adjust and use
7213 gdb::option::add_setshow_cmds_for_options to install "set
7214 backtrace past-main" and "set backtrace past-entry".
7215 * frame.h: Include "cli/cli-option.h".
7216 (struct frame_print_options): Forward declare.
7217 (print_frame_arguments_all, print_frame_arguments_scalars)
7218 (print_frame_arguments_none): Declare.
7219 (print_entry_values): Delete declaration.
7220 (struct frame_print_options, user_frame_print_options): New.
7221 (struct set_backtrace_options): New.
7222 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7223 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7224 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7225 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7226 (list_args_or_locals): Add frame_print_options parameter.
7227 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7228 * python/py-framefilter.c (enumerate_args): Pass down
7229 USER_FRAME_PRINT_OPTIONS.
7230 * stack.c: Include "cli/cli-option.h".
7231 (print_frame_arguments_all, print_frame_arguments_scalars)
7232 (print_frame_arguments_none): Declare.
7233 (print_raw_frame_arguments, print_entry_values): Delete.
7234 (user_frame_print_options): New.
7235 (boolean_option_def, enum_option_def, frame_print_option_defs):
7236 New.
7237 (struct backtrace_cmd_options): New.
7238 (bt_flag_option_def): New.
7239 (backtrace_command_option_defs): New.
7240 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7241 (print_frame_arg, read_frame_arg, print_frame_args)
7242 (print_frame_info, print_frame): Add frame_print_options parameter
7243 and use it.
7244 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7245 (backtrace_command_1): Add frame_print_options and
7246 backtrace_cmd_options parameters and use them.
7247 (make_backtrace_options_def_group): New.
7248 (backtrace_command): Process command options with
7249 gdb::option::process_options.
7250 (backtrace_command_completer): New.
7251 (_initialize_stack): Extend "backtrace"'s help to mention
7252 supported options. Install completer for "backtrace".
7253 Install some settings commands with add_setshow_cmds_for_options.
7254
2daf894e
PA
72552019-06-13 Pedro Alves <palves@redhat.com>
7256
7257 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7258 and that "set/show print raw frame-arguments" are now deprecated.
7259
7260 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7261 command.
7262 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7263 * stack.c (_initialize_stack): Install "set/show print
7264 raw-frame-arguments", and deprecate "set/show print raw
7265 frame-arguments".
7266 * valprint.c (_initialize_valprint): Deprecate "set/show print
7267 raw".
7268
e6ed716c
PA
72692019-06-13 Pedro Alves <palves@redhat.com>
7270
7271 * compile/compile.c (struct compile_options): New.
7272 (compile_flag_option_def, compile_command_option_defs)
7273 (make_compile_options_def_group): New.
7274 (compile_file_command): Handle options with
7275 gdb::option::process_options.
7276 (compile_file_command_completer): New function.
7277 (compile_code_command): Handle options with
7278 gdb::option::process_options.
7279 (compile_code_command_completer): New function.
7280 (_initialize_compiler): Install completers for "compile code" and
7281 "compile file". Mention available options in "compile code" and
7282 "compile code"'s help.
7283 * completer.c (advance_to_completion_word): New, factored out from
7284 ...
7285 (advance_to_expression_complete_word_point): ... this.
7286 (advance_to_filename_complete_word_point): New.
7287 * completer.h (advance_to_filename_complete_word_point): New
7288 declaration.
7289
7d8062de
PA
72902019-06-13 Pedro Alves <palves@redhat.com>
7291
7292 * compile/compile.c: Include "cli/cli-option.h".
7293 (compile_print_value): Scope data pointer is now a
7294 value_print_options pointer; adjust.
7295 (compile_print_command): Process options. Scope data pointer is
7296 now a value_print_options pointer; adjust.
7297 (_initialize_compile): Update "compile print"'s help to include
7298 supported options. Install a completer for "compile print".
7299 * cp-valprint.c (show_vtblprint, show_objectprint)
7300 (show_static_field_print): Delete.
7301 (_initialize_cp_valprint): Don't install "set print
7302 static-members", "set print vtbl", "set print object" here.
7303 * printcmd.c: Include "cli/cli-option.h" and
7304 "common/gdb_optional.h".
7305 (print_command_parse_format): Rework to fill in a
7306 value_print_options instead of a format_data.
7307 (print_value): Change parameter type from format_data pointer to
7308 value_print_options reference. Adjust.
7309 (print_command_1): Process options. Adjust to pass down a
7310 value_print_options.
7311 (print_command_completer): New.
7312 (_initialize_printcmd): Install print_command_completer as
7313 handle_brkchars completer for the "print" command. Update
7314 "print"'s help to include supported options.
7315 * valprint.c: Include "cli/cli-option.h".
7316 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7317 here from cp-valprint.c.
7318 (boolean_option_def, uinteger_option_def)
7319 (value_print_option_defs, make_value_print_options_def_group):
7320 New. Use gdb::option::add_setshow_cmds_for_options to install
7321 "set print elements", "set print null-stop", "set print repeats",
7322 "set print pretty", "set print union", "set print array", "set
7323 print address", "set print symbol", "set print array-indexes".
7324 * valprint.h: Include <string> and "cli/cli-option.h".
7325 (make_value_print_options_def_group): Declare.
7326 (print_value): Change parameter type from format_data pointer to
7327 value_print_options reference.
7328 (print_command_completer): Declare.
7329
9d0faba9
PA
73302019-06-13 Pedro Alves <palves@redhat.com>
7331
7332 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7333 (COMMON_SFILES): Add maint-test-settings.c.
7334 * cli/cli-decode.c (boolean_enums): New global, factored out from
7335 ...
7336 (add_setshow_boolean_cmd): ... here.
7337 * cli/cli-decode.h (boolean_enums): Declare.
7338 * cli/cli-option.c: New file.
7339 * cli/cli-option.h: New file.
7340 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7341 factored out from ...
7342 (parse_cli_boolean_value(const char *)): ... this.
7343 (is_unlimited_literal): Change parameter type to pointer to
7344 pointer. Adjust and advance ARG pointer.
7345 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7346 (parse_cli_var_enum): New, factored out from ...
7347 (do_set_command): ... this. Adjust.
7348 * cli/cli-setshow.h (parse_cli_boolean_value)
7349 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7350 (parse_cli_var_enum): Declare.
7351 * cli/cli-utils.c: Include "cli/cli-option.h".
7352 (get_ulongest): New.
7353 * cli/cli-utils.h (get_ulongest): Declare.
7354 (check_for_argument): New overloads.
7355 * maint-test-options.c: New file.
7356
2c722807
PA
73572019-06-13 Pedro Alves <palves@redhat.com>
7358
7359 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7360 parse a range if "-" is at the end of the string.
7361
dee7b4c8
PA
73622019-06-13 Pedro Alves <palves@redhat.com>
7363
7364 * cli/cli-setshow.c (parse_auto_binary_operation)
7365 (parse_cli_boolean_value): Don't allow "o".
7366
dca0f6c0
PA
73672019-06-13 Pedro Alves <palves@redhat.com>
7368
7369 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7370 * NEWS: Mention maint test-settings KIND.
7371 * maint-test-settings.c: New file.
7372
597bf39d
PA
73732019-06-13 Pedro Alves <palves@redhat.com>
7374
7375 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7376 completer.
7377 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7378 "set" completers.
7379
48c410fb
PA
73802019-06-13 Pedro Alves <palves@redhat.com>
7381
7382 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7383 after item.
7384
93bcb043
PA
73852019-06-13 Pedro Alves <palves@redhat.com>
7386
7387 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7388
cbba3ecd
PA
73892019-06-13 Pedro Alves <palves@redhat.com>
7390
7391 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7392 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7393 call.
7394 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7395 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7396 calls.
7397 (check_for_argument): Skip spaces after argument.
7398
b9a3f842
PA
73992019-06-13 Pedro Alves <palves@redhat.com>
7400
7401 * thread.c (thread_apply_command): Adjust TID parsing.
7402 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7403 detected before end of string.
7404 (tid_is_in_list): Error out if LIST is invalid.
7405
3844e605
PA
74062019-06-13 Pedro Alves <palves@redhat.com>
7407
7408 * completer.c (complete_line_internal_1): Rewind completion word
7409 point.
7410 (completion_tracker::advance_custom_word_point_by): Change
7411 parameter type to int.
7412 * completer.h (completion_tracker::advance_custom_word_point_by):
7413 Likewise.
7414
00b56dbe
PA
74152019-06-13 Pedro Alves <palves@redhat.com>
7416
7417 * completer.c (advance_to_completion_word): Handle delimiters.
7418
d106773e
PA
74192019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7420
7421 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7422
08f10e02
TT
74232019-06-11 Tom Tromey <tom@tromey.com>
7424
7425 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7426 (xmalloc_failed): Move to alloc.c.
7427 * alloc.c: New file.
7428 * Makefile.in (COMMON_SFILES): Add alloc.c.
7429
1c7fe951
TT
74302019-06-11 Tom Tromey <tom@tromey.com>
7431
7432 * nat/linux-waitpid.c: Don't include server.h.
7433 (linux_debug): Remove.
7434 (my_waitpid): Update.
7435
89549d7f
TT
74362019-06-11 Tom Tromey <tromey@adacore.com>
7437
7438 * infcall.c (_initialize_infcall): Remove trailing newline from
7439 help.
7440 * user-regs.c (_initialize_user_regs): Remove trailing newline
7441 from help.
7442 * typeprint.c (_initialize_typeprint): Remove trailing newline
7443 from help.
7444 * reverse.c (_initialize_reverse): Remove trailing newlines from
7445 help.
7446 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7447 from help.
7448 * language.c (add_set_language_command): Remove trailing newline
7449 from help.
7450 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7451 help.
7452 * disasm.c (_initialize_disasm): Remove trailing newline from
7453 help.
7454 * top.c (init_main): Remove trailing newline from help.
7455 * interps.c (_initialize_interpreter): Remove trailing newline
7456 from help.
7457 * btrace.c (_initialize_btrace): Remove trailing newlines from
7458 help.
7459 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7460 from help.
7461 * python/python.c (_initialize_python): Remove trailing newline
7462 from help.
7463 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7464 help.
7465 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7466 from help. Reformat some text.
7467 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7468 from help.
7469 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7470 newline from help.
7471
86108c13
TT
74722019-06-11 Tom Tromey <tromey@adacore.com>
7473
7474 * darwin-nat.c (darwin_decode_exception_message)
7475 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7476
a7067863
AB
74772019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 * valops.c (value_slice): Check for not allocated or not
7480 associated values.
7481
9ab08412
TV
74822019-06-10 Tom de Vries <tdevries@suse.de>
7483
7484 PR gdb/24618
7485 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7486 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7487 invalid.
7488
f19e22e9
TV
74892019-06-10 Tom de Vries <tdevries@suse.de>
7490
7491 PR gdb/24611
7492 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7493 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7494
e99f9db0
TV
74952019-06-10 Tom de Vries <tdevries@suse.de>
7496
7497 PR symtab/24545
7498 * symtab.c (struct demangled_name_entry): Add language field.
7499 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7500 static minimal symbol". Set and use language field.
7501
9bf7038b
TT
75022019-06-10 Tom Tromey <tromey@adacore.com>
7503
7504 * ada-lang.c (_initialize_ada_language): Update help text.
7505
422186a9
TT
75062019-06-10 Tom Tromey <tromey@adacore.com>
7507
7508 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7509 with a newline.
7510 * guile/guile.c (handle_boot_error): Don't end warning with a
7511 newline.
7512 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7513 warning with a newline.
7514 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7515 newline.
7516 (s12z_frame_cache): Likewise.
7517 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7518 a newline.
7519 * solib-svr4.c (disable_probes_interface): Don't end warning with
7520 a newline.
7521 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7522 newline.
7523 * python/python.c (do_finish_initialization): Don't end warning
7524 with a newline.
7525
25ce02ee
TT
75262019-06-10 Tom Tromey <tom@tromey.com>
7527
7528 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7529 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7530 gdbpy_enter.
7531
caa429d8
TT
75322019-06-10 Tom Tromey <tromey@adacore.com>
7533
7534 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7535 data.
7536 (elf_new_init): Don't call stabsread_new_init.
7537 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7538 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7539 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7540
81873cc8
TV
75412019-06-10 Tom de Vries <tdevries@suse.de>
7542
7543 PR symtab/16264
7544 PR symtab/24517
7545 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7546
4fa0265e
РИ
75472019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7548
7549 * source.c (find_and_open_source): Also rewrite relative file
7550 names.
7551
1a3da2cd
AB
75522019-04-26 Amos Bird <amosbird@gmail.com>
7553
7554 * annotate.c (annotate_thread_exited): Add "thread-exited"
7555 annotation.
7556
3847a7bf
TT
75572019-06-06 Tom Tromey <tromey@adacore.com>
7558
7559 * maint.h (class scoped_command_stats): Use
7560 DISABLE_COPY_AND_ASSIGN.
7561 <print_time>: New method.
7562 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7563 print_time.
7564 (scoped_command_stats::print_time): New method.
7565
312617a3
AB
75662019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7567
7568 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7569 instructions of lengths 6 or 8 bytes.
7570
b02f78f9
PA
75712019-06-04 Pedro Alves <palves@redhat.com>
7572
7573 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7574
7575 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7576 * breakpoint.c (condition_completer): Likewise.
7577 * cli/cli-dump.c (scan_expression): Likewise.
7578 * common/filestuff.c (mkdir_recursive): Likewise.
7579 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7580 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7581 (gdb_abspath): Likewise.
7582 * compile/compile-cplus-types.c
7583 (compile_cplus_instance::decl_name): Likewise.
7584 * completer.c (complete_explicit_location):
7585 (signal_completer, reg_or_group_completer_1): Likewise.
7586 * cp-support.c (cp_remove_params_if_any): Likewise.
7587 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7588 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7589 * infcmd.c (strip_bg_char): Likewise.
7590 * linespec.c (copy_token_string): Likewise.
7591 * mi/mi-main.c (output_cores): Likewise.
7592 * psymtab.c (psymtab_search_name):
7593 * symfile.c (test_set_ext_lang_command): Likewise.
7594 * target.c (target_fileio_read_stralloc): Likewise.
7595 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7596 * value.c (complete_internalvar): Likewise.
7597
e1f2e1a2
CB
75982019-06-04 Christian Biesinger <cbiesinger@google.com>
7599
7600 Add objfile property to gdb.Type.
d3238f7d
PA
7601 * NEWS: Mention Python API addition.
7602 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7603
e664d728
PW
76042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7605
7606 * NEWS: Mention the new set|show style [title|highlight].
7607 Mention changes to "show style", "help" and "apropos".
7608
66d8c862
PW
76092019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7610
7611 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7612 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7613 instead of print_help_for_command.
7614 (print_doc_of_command): New function.
7615 (help_list): Add 'apropos -v word' suggestion.
7616 (print_help_for_command): Style the command name using title style.
7617 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7618 (_initialize_cli_cmds): Describe -v in apropos_command help.
7619
9303eb2f
PW
76202019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7621
7622 * cli/cli-style.h (cli_style_option): Add name in constructor,
7623 add m_name class member, add constructor with intensity,
7624 add name class function.
7625 (cli_style_option::add_setshow_commands): Remove name argument.
7626 (highlight_style, title_style): New styles.
7627 * cli/cli-style.c (do_show): New function that shows a style
7628 characteristic styling the style name with itself.
7629 (set_style_name): New function.
7630 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7631 Update all callers according to the changes in cli/cli-style.h.
7632 * utils.h (fputs_highlighted): New function.
7633 * utils.c (fputs_highlighted): Likewise.
7634
e2c52041
PW
76352019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7636
7637 * NEWS: Mention new pipe command and new convenience variables.
7638
947d3946
PW
76392019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7640
7641 * cli/cli-cmds.c (pipe_command): New function.
7642 (_initialize_cli_cmds): Call add_com for pipe_command.
7643 Define | as an alias for pipe.
7644 (exit_status_set_internal_vars): New function.
7645 (shell_escape): Call exit_status_set_internal_vars.
7646 cli/cli-decode.c (find_command_name_length): Recognize | as
7647 a single character command.
7648
b8fd0918
PW
76492019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7650
7651 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7652 top.c (execute_command_to_ui_file): New function, mostly a copy
7653 of execute_command_to_string.
7654 (execute_command_to_string): Implement by calling
7655 execute_command_to_ui_file.
7656
68bb5386
PW
76572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7658
7659 * top.h (saved_command_line): Remove declaration.
7660 * top.c (previous_saved_command_line, previous_repeat_arguments):
7661 New variables.
7662 (saved_command_line): Make static, define together with other
7663 'repeat variables'.
7664 (dont_repeat): Clear repeat_arguments.
7665 (repeat_previous, get_saved_command_line, save_command_line):
7666 New functions.
7667 (gdb_init): Initialize saved_command_line
7668 and previous_saved_command_line.
7669 * main.c (captured_main_1): Remove saved_command_line initialization.
7670 * event-top.c (handle_line_of_input): Update to use
7671 the new 'repeat' related functions instead of direct access to
7672 saved_command_line.
7673 * command.h (repeat_previous, get_saved_command_line,
7674 save_command_line): New declarations.
7675 (dont_repeat): Add comment.
7676
bfcdb852
TT
76772019-05-30 Tom Tromey <tromey@adacore.com>
7678
7679 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7680 Fix comment.
7681 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7682
0ef209f2
JV
76832019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7684
7685 PR cli/24587
7686 * completer.c (complete): Initialize variable word.
7687
955b06fa
SDJ
76882019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7689
7690 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7691 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7692 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7693 'body' is NULL to the outter 'if', protecting the '!is_define'
7694 situation as well.
7695
fa9c3fa0
TT
76962019-05-29 Tom Tromey <tromey@adacore.com>
7697
7698 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7699 (dwarf_unknown): New function.
7700 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7701 (dwarf_type_encoding_name): Use dwarf_unknown.
7702
4330d61d
TT
77032019-05-29 Tom Tromey <tromey@adacore.com>
7704
7705 PR c++/20020:
7706 * cp-valprint.c (cp_print_value_fields): Call
7707 cp_print_static_field inside "try".
7708
33a6bc35
TT
77092019-05-29 Tom Tromey <tromey@adacore.com>
7710
7711 * inflow.c (struct terminal_info): Add default operator=.
7712 * configure: Rebuild.
7713 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7714 -Wdeprecated-copy-dtor, -Wredundant-move.
7715
000439d5
TT
77162019-05-29 Tom Tromey <tromey@adacore.com>
7717
7718 * NEWS: Add entry.
7719 * infcmd.c (print_return_value_1): Handle finish_print
7720 option.
7721 (show_print_finish): New function.
7722 (_initialize_infcmd): Add "set/show print finish" commands.
7723 * valprint.c (user_print_options): Initialize new member.
7724 * valprint.h (struct value_print_options) <finish_print>: New
7725 member.
7726
c0e70c62
TT
77272019-05-28 Tom Tromey <tromey@adacore.com>
7728
7729 * ada-lang.c (ada_remove_Xbn_suffix)
7730 (find_old_style_renaming_symbol)
7731 (parse_old_style_renaming): Remove.
7732 (ada_find_renaming_symbol): Don't call
7733 find_old_style_renaming_symbol.
7734 (ada_is_renaming_symbol): Rename from
7735 ada_find_renaming_symbol. Remove "block" parameter. Return
7736 bool. Now static.
7737 (ada_read_var_value): Update and simplify.
7738 * ada-exp.y (write_var_or_type): Remove old code.
7739
766f8836
AH
77402019-05-28 Alan Hayward <alan.hayward@arm.com>
7741
68255adc 7742 PR gdb/25010
766f8836
AH
7743 * event-top.c: Remove include comment.
7744 * inflow.c (class scoped_ignore_sigttou): Move from here...
7745 * inflow.h (class scoped_ignore_sigttou): ...to here.
7746 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7747 * top.c: Remove include comment.
7748
eb41253a
TT
77492019-05-27 Tom Tromey <tom@tromey.com>
7750
7751 * NEWS: Fix typo.
7752
4ca51187
TT
77532019-05-22 Tom Tromey <tromey@adacore.com>
7754
7755 * target.c (target_follow_exec): Constify parameter.
7756 * target-delegates.c: Rebuild.
7757 * remote.c (remote_target::follow_exec): Constify parameter.
7758 * infrun.c (follow_exec): Constify parameter.
7759 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7760 (target_follow_exec): Likewise.
7761
8fca4da0
AH
77622019-05-22 Alan Hayward <alan.hayward@arm.com>
7763
7764 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7765 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7766
b7060614
AH
77672019-05-22 Alan Hayward <alan.hayward@arm.com>
7768
7769 * NEWS: Add debugredirect and testsuite sections.
7770
0a5954bd
SC
77712019-05-22 Simon Cook <simon.cook@embecosm.com>
7772
7773 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7774 target descriptions using exclusively floating point register name
7775 aliases.
7776
dc42e902
AB
77772019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7778
7779 PR gdb/18644:
7780 * f-lang.c (build_fortran_types): Handle the case where
7781 gdbarch_floatformat_for_type returns a nullptr.
7782
fb7806c7
TV
77832019-05-21 Tom de Vries <tdevries@suse.de>
7784
7785 PR cli/24587
7786 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7787
34d11c68
AB
77882019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 PR gdb/18644:
7791 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7792 16-byte floats.
7793 * i386-tdep.c (i386_floatformat_for_type): Use
7794 floatformats_ia64_quad for the 16-byte floating point component
7795 within a fortran 32-byte complex number.
7796
122cf0f2
AB
77972019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7800 delete default constructor.
7801 (find_partial_die): Update to return const struct.
7802 (partial_die_parent_scope): Move variable declaration into scope
7803 of its use and change its type to auto.
7804 (guess_partial_die_structure_name): Likewise.
7805 (partial_die_info::fixup): Likewise.
7806
33d0e35a
TT
78072019-05-17 Tom Tromey <tromey@adacore.com>
7808
7809 * source.c (find_and_open_source): Remove cast.
7810
a45575b0
TT
78112019-05-17 Tom Tromey <tromey@adacore.com>
7812
7813 * annotate.c (annotate_source): Make "filename" const.
7814 * annotate.h (annotate_source): Use const.
7815
81f47ac2
AH
78162019-05-17 Alan Hayward <alan.hayward@arm.com>
7817
7818 * disasm.c (set_disassembler_options): Send errors to stderr.
7819
ca1285d1
AH
78202019-05-17 Alan Hayward <alan.hayward@arm.com>
7821
7822 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7823 (cli_interp_base::set_logging): Check debug_redirect.
7824 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7825 * cli/cli-logging.c (debug_redirect): Add static variable.
7826 (pop_output_files): Add default param.
7827 (handle_redirections): Print debug setting.
7828 (show_logging_command): Likewise.
7829 (_initialize_cli_logging): Add debugredirect command.
7830 * interps.c (current_interp_set_logging): Add debug_redirect
7831 parameter.
7832 * interps.h (set_logging): Add debug_redirect parameter.
7833 (current_interp_set_logging): Likewise.
7834 * mi/mi-common.h: Likewise.
7835 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7836
78372019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7838 Tom Tromey <tromey@adacore.com>
7839
7840 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7841 directly.
7842 * cli/cli-interp.h (make_logging_output): Remove declaration.
7843 * cli/cli-logging.c (make_logging_output): Remove function.
7844 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7845 directly.
7846 * ui-file.c (tee_file::tee_file): Remove bools.
7847 (tee_file::~tee_file): Remove deletes.
7848 * ui-file.h (tee_file): Remove bools.
7849
26648588
JV
78502019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7851
7852 * mi/mi-cmds.h (mi_cmd_complete): New function.
7853 * mi/mi-main.c (mi_cmd_complete): Likewise.
7854 * mi/mi-cmds.c: Define new MI command -complete.
7855 * NEWS: Mention new -complete command.
7856
6e035501
JV
78572019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7858
7859 * completer.h (complete): New function.
7860 * completer.c (complete): Likewise.
7861 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7862 function defined in completer.h.
7863
7d0e2ece
JV
78642019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7865
e79be6e5 7866 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7867
fb816e8b
TV
78682019-05-17 Tom de Vries <tdevries@suse.de>
7869
7870 PR gdb/24094
7871 * dwarf2read.c (struct cu_partial_die_info): New struct.
7872 (find_partial_die): Return cu_partial_die_info.
7873 (partial_die_parent_scope, guess_partial_die_structure_name)
7874 (partial_die_info::fixup): Handle new return type of find_partial_die.
7875
677052f2
SDJ
78762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7877
a1726c38 7878 PR breakpoints/24541
677052f2
SDJ
7879 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7880 "std::string", simplifying the algorithm.
7881
f3da9116
SDJ
78822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7883
7884 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7885 (stap_static_probe_ops::get_probes): Likewise.
7886
f1bb75ab
SDJ
78872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7888
7889 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7890 '-')" and "else if".
7891 (stap_parse_single_operand): Join checks for
7892 "gdbarch_stap_parse_special_token_p" and
7893 "gdbarch_stap_parse_special_token" in the same "if" statement.
7894 Invert check when verifying for operation on register
7895 displacement.
7896
3ca58cde
SDJ
78972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7898
7899 * stap-probe.c (stap_get_opcode): Update comment.
7900 (stap_get_expected_argument_type): Likewise.
7901 (handle_stap_probe): Likewise.
7902
af2d9bee
SDJ
79032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7904
7905 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7906 return type to 'bool'. Adjust comment. Use 'bool' when
7907 appropriate.
7908 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7909 * stap-probe.c (stap_parse_argument_1): Likewise.
7910 (stap_is_operator): Likewise.
7911 (stap_is_generic_prefix): Likewise.
7912 (stap_is_register_prefix): Likewise.
7913 (stap_is_register_indirection_prefix): Likewise.
7914 (stap_is_integer_prefix): Likewise.
7915 (stap_generic_check_suffix): Likewise.
7916 (stap_check_integer_suffix): Likewise.
7917 (stap_check_register_suffix): Likewise.
7918 (stap_check_register_indirection_suffix): Likewise.
7919 (stap_parse_register_operand): Likewise.
7920 (stap_parse_single_operand): Likewise.
7921 (stap_parse_argument_1): Likewise.
7922 (stap_probe::get_argument_count): Likewise.
7923 (stap_is_operator): Likewise.
7924
61c9c421
TT
79252019-05-16 Tom Tromey <tromey@adacore.com>
7926
7927 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7928 keyword to foreach.
7929
9ddc1af1
SM
79302019-05-15 Simon Marchi <simon.marchi@efficios.com>
7931
7932 * linux-thread-db.c (try_thread_db_load_1): Change return type
7933 to bool.
7934 (try_thread_db_load): Likewise.
7935 (try_thread_db_load_from_pdir_1): Likewise.
7936 (try_thread_db_load_from_pdir): Likewise.
7937 (try_thread_db_load_from_sdir): Likewise.
7938 (try_thread_db_load_from_dir): Likewise.
7939 (thread_db_load_search): Likewise.
7940 (has_libpthread): Likewise.
7941 (thread_db_load): Likewise.
7942
7bede828
SDJ
79432019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7944
7945 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7946 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7947 NULL, and complain/return if that's the case.
7948
c5358db4
JD
79492019-05-15 John Darrington <john@darrington.wattle.id.au>
7950
7951 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7952 (advance, posn, abstract_read_memory): New functions.
7953 [struct mem_read_abstraction]: New struct.
7954 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7955
c408a94f
TT
79562019-05-14 Tom Tromey <tromey@adacore.com>
7957
7958 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7959 value is not lval_memory.
7960
e7bd7fba
TT
79612019-05-14 Tom Tromey <tromey@adacore.com>
7962
7963 * solib.c (info_sharedlibrary_command): Style the file name.
7964
a6d0f249
AH
79652019-05-14 Alan Hayward <alan.hayward@arm.com>
7966
7967 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7968 (aarch64_vnv_type): Likewise.
7969 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7970 * common/tdesc.c: Likewise.
7971 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7972 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7973 * features/aarch64-fpu.xml: Add ieee half view.
7974 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7975 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7976 * gdbtypes.h (struct builtin_type): Likewise.
7977 (struct objfile_type): Likewise.
7978
66b8bb74
SM
79792019-05-12 Paul Naert <paul.naert@polymtl.ca>
7980
7981 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7982 typo.
7983 * location.h (string_to_event_location): Likewise.
7984
21c219fd
JB
79852019-05-11 Joel Brobecker <brobecker@adacore.com>
7986
7987 GDB 8.3 released.
7988
13674803
SM
79892019-05-10 Simon Marchi <simon.marchi@efficios.com>
7990
7991 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7992 New variable declaration.
7993 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7994 New variable.
7995 (print_one_breakpoint): Use ui_out::test_flags and new global
7996 variable to compute use_fixed_output.
7997 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7998 Remove.
7999 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8000 (mi_multi_location_breakpoint_output_fixed): Remove.
8001 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8002 new variable.
8003 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8004 fix_multi_location_breakpoint_output flag if version >= 3.
8005 * ui-out.h (enum ui_out_flag)
8006 <fix_multi_location_breakpoint_output>: New enumerator.
8007
a9eac7f9
SM
80082019-05-10 Simon Marchi <simon.marchi@efficios.com>
8009
8010 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8011
71bed2db
TT
80122019-05-10 Tom Tromey <tromey@adacore.com>
8013
8014 * ada-lang.c (catch_ada_completer): New function.
8015 (_initialize_ada_language): Use it.
8016
24c54127
TT
80172019-05-10 Tom Tromey <tromey@adacore.com>
8018
8019 * thread.c (print_thread_info): Make "requested_threads" const.
8020 * gdbthread.h (print_thread_info): Make "requested_threads"
8021 const.
8022 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8023 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8024
7a102139
TT
80252019-05-08 Tom Tromey <tom@tromey.com>
8026
8027 * gdbtypes.c (objfile_type_data): Change type.
8028 (objfile_type, _initialize_gdbtypes): Update.
8029
924d79e2
TT
80302019-05-08 Tom Tromey <tom@tromey.com>
8031
8032 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8033 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8034 (_initialize_dwarf2_frame): Update.
8035
4c58e337
TT
80362019-05-08 Tom Tromey <tom@tromey.com>
8037
8038 * objc-lang.c (objc_objfile_data): Change type.
8039 (find_methods): Update.
8040 (_initialize_objc_lang): Remove.
8041
d772d2ab
TT
80422019-05-08 Tom Tromey <tom@tromey.com>
8043
8044 * stabsread.c (rs6000_builtin_type_data): Change type.
8045 (rs6000_builtin_type, _initialize_stabsread): Update.
8046
d11d83f4
TT
80472019-05-08 Tom Tromey <tom@tromey.com>
8048
8049 * mips-tdep.c (mips_pdr_data): Remove.
8050 (_initialize_mips_tdep): Update.
8051
9a73f0ad
TT
80522019-05-08 Tom Tromey <tom@tromey.com>
8053
8054 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8055 (hppa_init_objfile_priv_data, read_unwind_info)
8056 (find_unwind_entry, _initialize_hppa_tdep): Update.
8057
8127a2fa
TT
80582019-05-08 Tom Tromey <tom@tromey.com>
8059
8060 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8061 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8062 on obstack.
8063 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8064
91d3055d
TT
80652019-05-08 Tom Tromey <tom@tromey.com>
8066
8067 * mdebugread.c (basic_type_data): Change type.
8068 (basic_type, _initialize_mdebugread): Update.
8069
31930bd3
TT
80702019-05-08 Tom Tromey <tom@tromey.com>
8071
8072 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8073
bdb3ed9e
TT
80742019-05-08 Tom Tromey <tom@tromey.com>
8075
8076 * nto-tdep.c (nto_inferior_data_reg): Change type.
8077 (nto_inferior_data): Update.
8078 (nto_inferior_data_cleanup, nto_new_inferior_data)
8079 (_initialize_nto_tdep): Remove.
8080 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8081
f37b313d
TT
80822019-05-08 Tom Tromey <tom@tromey.com>
8083
8084 * ada-lang.c (struct ada_inferior_data): Add initializers.
8085 (ada_inferior_data): Change type.
8086 (ada_inferior_data_cleanup): Remove.
8087 (get_ada_inferior_data, ada_inferior_exit)
8088 (struct ada_pspace_data): Add initializers, destructor.
8089 (ada_pspace_data_handle): Change type.
8090 (get_ada_pspace_data): Update.
8091 (ada_pspace_data_cleanup): Remove.
8092
24699405
TT
80932019-05-08 Tom Tromey <tom@tromey.com>
8094
8095 * coffread.c (struct coff_symfile_info): Add initializers.
8096 (coff_objfile_data_key): Move lower. Change type.
8097 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8098 Update.
8099 (coff_free_info): Remove.
8100
d4e05d2f
TT
81012019-05-08 Tom Tromey <tom@tromey.com>
8102
8103 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8104 (fbsd_pspace_data_handle): Move lower. Change type.
8105 (get_fbsd_pspace_data): Update.
8106 (fbsd_pspace_data_cleanup): Remove.
8107 (_initialize_fbsd_tdep): Update.
8108
14ef6690
TT
81092019-05-08 Tom Tromey <tom@tromey.com>
8110
8111 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8112 (get_ada_tasks_pspace_data): Update.
8113 (ada_tasks_pspace_data_cleanup): Remove.
8114 (_initialize_tasks): Update.
8115 (ada_tasks_inferior_data_handle): Change type.
8116 (get_ada_tasks_inferior_data): Update.
8117 (ada_tasks_inferior_data_cleanup): Remove.
8118 (struct ada_tasks_pspace_data): Add initializers.
8119
814cf43a
TT
81202019-05-08 Tom Tromey <tom@tromey.com>
8121
8122 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8123 * symfile-debug.c (debug_sym_get_probes): Change type.
8124 * stap-probe.c (handle_stap_probe):
8125 (stap_static_probe_ops::get_probes): Change type.
8126 * probe.h (class static_probe_ops) <get_probes>: Change type.
8127 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8128 (parse_probes_in_pspace): Update.
8129 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8130 Update.
8131 (any_static_probe_ops::get_probes): Change type.
8132 * elfread.c (elfread_data): New typedef.
8133 (probe_key): Change type.
8134 (elf_get_probes): Likewise. Update.
8135 (probe_key_free): Remove.
8136 (_initialize_elfread): Update.
8137 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8138 Change type.
8139 (dtrace_process_dof_probe, dtrace_process_dof)
8140 (dtrace_static_probe_ops::get_probe): Change type.
8141
02dc647e
TT
81422019-05-08 Tom Tromey <tom@tromey.com>
8143
8144 * xcoffread.c (struct xcoff_symfile_info): Rename from
8145 coff_symfile_info. Add initializers.
8146 (xcoff_objfile_data_key): Move lower. Change type.
8147 (XCOFF_DATA): Rewrite.
8148 (xcoff_free_info): Remove.
8149 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8150 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8151 (xcoff_initial_scan): Update.
8152
09232438
TT
81532019-05-08 Tom Tromey <tom@tromey.com>
8154
8155 * solib-svr4.c (struct svr4_info): Add initializers and
8156 destructor.
8157 <probes_table>: Now an htab_up.
8158 (solib_svr4_pspace_data): Change type.
8159 (free_probes_table): Simplify.
8160 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8161 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8162 (probes_table_remove_objfile_probes, register_solib_event_probe)
8163 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8164 (_initialize_svr4_solib): Update.
8165
7b4a314f
TT
81662019-05-08 Tom Tromey <tom@tromey.com>
8167
8168 * remote.c (remote_pspace_data): Change type.
8169 (remote_pspace_data_cleanup): Remove.
8170 (get_remote_exec_file, set_pspace_remote_exec_file)
8171 (_initialize_remote): Update.
8172
51d3063a
TT
81732019-05-08 Tom Tromey <tom@tromey.com>
8174
8175 * breakpoint.c (breakpoint_objfile_key): Change type.
8176 (get_breakpoint_objfile_data): Update.
8177 (free_breakpoint_objfile_data): Remove.
8178 (_initialize_breakpoint): Update.
8179
89fb8848
TT
81802019-05-08 Tom Tromey <tom@tromey.com>
8181
8182 * linux-tdep.c (struct linux_info): Add initializers.
8183 (linux_inferior_data): Move. Change type.
8184 (invalidate_linux_cache_inf): Update.
8185 (linux_inferior_data_cleanup): Remove.
8186 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8187
e9b89e2d
TT
81882019-05-08 Tom Tromey <tom@tromey.com>
8189
8190 * auxv.c (auxv_inferior_data): Move. Change type.
8191 (auxv_inferior_data_cleanup): Remove.
8192 (invalidate_auxv_cache_inf): Rewrite.
8193 (get_auxv_inferior_data, _initialize_auxv): Update.
8194
8c42777c
TT
81952019-05-08 Tom Tromey <tom@tromey.com>
8196
8197 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8198 (symfile_debug_objfile_data_key): Change type.
8199 (symfile_debug_installed, debug_qf_has_symbols)
8200 (debug_qf_find_last_source_symtab)
8201 (debug_qf_forget_cached_source_info)
8202 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8203 (debug_qf_print_stats, debug_qf_dump)
8204 (debug_qf_expand_symtabs_for_function)
8205 (debug_qf_expand_all_symtabs)
8206 (debug_qf_expand_symtabs_with_fullname)
8207 (debug_qf_map_matching_symbols)
8208 (debug_qf_expand_symtabs_matching)
8209 (debug_qf_find_pc_sect_compunit_symtab)
8210 (debug_qf_map_symbol_filenames)
8211 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8212 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8213 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8214 (debug_sym_read_linetable, debug_sym_relocate): Update.
8215 (symfile_debug_free_objfile): Remove.
8216 (install_symfile_debug_logging, _initialize_symfile_debug):
8217 Update.
8218
5bfd760d
TT
82192019-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8222 allocate_on_obstack.
8223 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8224 (get_dwarf2_per_objfile): Update.
8225 (set_dwarf2_per_objfile): Remove.
8226 (dwarf2_has_info, dwarf2_get_section_info): Update.
8227 (dwarf2_free_objfile): Remove.
8228 (_initialize_dwarf2_read): Update.
8229
e85e19b4
TT
82302019-05-08 Tom Tromey <tom@tromey.com>
8231
8232 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8233 initializers.
8234 <unsupported_script_warning_printed,
8235 script_not_found_warning_printed>: Now bool.
8236 (auto_load_pspace_data): Change type.
8237 (~auto_load_pspace_info): Rename from
8238 auto_load_pspace_data_cleanup.
8239 (get_auto_load_pspace_data, init_loaded_scripts_info)
8240 (clear_section_scripts, maybe_print_unsupported_script_warning)
8241 (maybe_print_script_not_found_warning, _initialize_auto_load):
8242 Update.
8243
f6aa7436
TT
82442019-05-08 Tom Tromey <tom@tromey.com>
8245
8246 * objfiles.c (objfile_pspace_info): Add destructor and
8247 initializers.
8248 (objfiles_pspace_data): Change type.
8249 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8250 (get_objfile_pspace_data): Update.
8251 (objfiles_bfd_data): Change type.
8252 (get_objfile_bfd_data): Update.
8253 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8254
6ae614f6
TT
82552019-05-08 Tom Tromey <tom@tromey.com>
8256
8257 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8258 Change type.
8259 (get_catch_syscall_inferior_data): Update.
8260 (catch_syscall_inferior_data_cleanup): Remove.
8261 (_initialize_break_catch_syscall): Update.
8262
6509b8eb
TT
82632019-05-08 Tom Tromey <tom@tromey.com>
8264
8265 * inflow.c (struct terminal_info): Add destructor and
8266 initializers.
8267 (inflow_inferior_data): Change type.
8268 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8269 (get_inflow_inferior_data, inflow_inferior_exit)
8270 (swap_terminal_info, _initialize_inflow): Update.
8271
35632941
TT
82722019-05-08 Tom Tromey <tom@tromey.com>
8273
8274 * target-dcache.c (target_dcache_cleanup): Remove.
8275 (target_dcache_aspace_key): Change type.
8276 (target_dcache_init_p, target_dcache_invalidate)
8277 (target_dcache_get, target_dcache_get_or_init)
8278 (_initialize_target_dcache): Update.
8279 * dcache.h (struct dcache_deleter): New.
8280
3017b94d
TT
82812019-05-08 Tom Tromey <tom@tromey.com>
8282
8283 * symtab.c (struct symbol_cache): Add destructor and
8284 initializers.
8285 (symbol_cache_key): Move. Change type.
8286 (make_symbol_cache, free_symbol_cache): Remove.
8287 (get_symbol_cache): Update.
8288 (symbol_cache_cleanup): Remove.
8289 (ALL_PSPACES, symbol_cache_flush)
8290 (maintenance_print_symbol_cache)
8291 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8292 Update.
8293
a32ad8c5
TT
82942019-05-08 Tom Tromey <tom@tromey.com>
8295
8296 * symtab.c (struct main_info): Add destructor and initializers.
8297 (main_progspace_key): Move. Change type.
8298 (get_main_info): Update.
8299 (main_info_cleanup): Remove.
8300 (_initialize_symtab): Update.
8301
5f6e90a0
TT
83022019-05-08 Tom Tromey <tom@tromey.com>
8303
8304 * registry.h (DECLARE_REGISTRY): Define the _key class.
8305
1bd0c6e4
AB
83062019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8307
8308 * NEWS: Merge two 'New commands' sections.
8309
2228ef77
XR
83102019-05-08 Joel Brobecker <brobecker@adacore.com>
8311
8312 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8313 parameter and use Ada language definition instead.
8314 (ada_val_print_ptr): Remove unused language parameter.
8315 (ada_val_print_num): Remove language parameter and use Ada language
8316 definition instead.
8317 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8318 parameter.
8319 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8320 parameter and use Ada language definition instead.
8321 (ada_val_print_1): Update all ada_val_print_xxx calls.
8322 Remove language parameter.
8323 (ada_val_print): Update ada_val_print_1 call.
8324
60fcc1c3
TT
83252019-05-08 Tom Tromey <tromey@adacore.com>
8326
8327 * remote.c (remote_hw_watchpoint_limit)
8328 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8329 Now static.
8330
ed2b7c17
TT
83312019-05-08 Tom Tromey <tromey@adacore.com>
8332
8333 * maint.c (_initialize_maint_cmds): Move initialization code to
8334 remote.c.
8335 (watchdog, show_watchdog): Move to remote.c.
8336 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8337 "watchdog" static.
8338 (_initialize_remote): Move initialization code from maint.c.
8339 * defs.h (watchdog): Don't declare.
8340
b0be6c91
TT
83412019-05-08 Tom Tromey <tromey@adacore.com>
8342
8343 * tui/tui-interp.c: Include main.h.
8344 * interps.c: Include main.h.
8345 * main.h (interpreter_p): Declare.
8346 * defs.h (interpreter_p): Don't declare.
8347
587ee17b
TT
83482019-05-08 Tom Tromey <tromey@adacore.com>
8349
8350 * dwarf2loc.c: Include dwarf2read.h.
8351 * defs.h (read_unsigned_leb128): Don't declare.
8352 * dwarf2read.h (read_unsigned_leb128): Declare.
8353
ca1df239
TT
83542019-05-08 Tom Tromey <tromey@adacore.com>
8355
8356 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8357 method.
8358
99f20f08
TT
83592019-05-08 Tom Tromey <tromey@adacore.com>
8360
8361 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8362 when no wrap column is set.
8363
80e55b13
TT
83642019-05-08 Tom Tromey <tromey@adacore.com>
8365
8366 * c-lang.c (c_get_string): Handle non-C-style arrays.
8367
9d3421af
TT
83682019-05-08 Tom Tromey <tromey@adacore.com>
8369
8370 * typeprint.c (print_offset_data::update): Print the bit offset,
8371 not the number of bits remaining.
8372
844333e2
TT
83732019-05-08 Tom Tromey <tromey@adacore.com>
8374
8375 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8376 padding at end of comment.
8377
988915ee
TT
83782019-05-08 Tom Tromey <tromey@adacore.com>
8379
8380 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8381 Compare main types.
8382
26bfd823
TT
83832019-05-06 Tom Tromey <tom@tromey.com>
8384
8385 * common/scoped_mmap.c: Include common-defs.h.
8386 * common/scoped_mmap.h: Don't include config.h.
8387
89055eaa
TT
83882019-05-04 Tom Tromey <tom@tromey.com>
8389
8390 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8391 (struct aarch64_call_info): Add initializers.
8392 <si>: Now a std::vector.
8393 (pass_on_stack, aarch64_push_dummy_call): Update.
8394
5da01df5
TT
83952019-05-04 Simon Marchi <simon.marchi@efficios.com>
8396 Tom Tromey <tom@tromey.com>
8397
8398 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8399 (ppc_threads): Now a std::vector. Now static.
8400 (hwdebug_find_thread_points_by_tid)
8401 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8402 Update.
8403
fbdf05a1
TT
84042019-05-04 Tom Tromey <tom@tromey.com>
8405
8406 * arc-tdep.c (arc_tdesc_init): Return bool.
8407
06d16ec9
TT
84082019-05-04 Tom Tromey <tom@tromey.com>
8409
8410 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8411 Use gdb_assert_not_reached.
8412
9c056022
TT
84132019-05-04 Tom Tromey <tom@tromey.com>
8414
8415 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8416 "false".
8417
fa9c2a59
TT
84182019-05-04 Tom Tromey <tom@tromey.com>
8419
8420 * arc-tdep.c (arc_tdesc_init): Use bool.
8421
e2eb806a
TT
84222019-05-04 Tom Tromey <tom@tromey.com>
8423
8424 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8425
6fe87677
TT
84262019-05-04 Tom Tromey <tom@tromey.com>
8427
8428 * cli/cli-cmds.c (valid_command_p): Return bool.
8429
7f008c9e
TT
84302019-05-04 Tom Tromey <tom@tromey.com>
8431
8432 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8433 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8434
b6484282
RT
84352019-05-04 Raul Tambre <raul@tambre.ee>
8436
8437 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8438 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8439 operator for comparison.
8440
af97b416
TT
84412019-05-04 Tom Tromey <tom@tromey.com>
8442
8443 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8444 (lookup_partial_symbol, print_partial_symbols)
8445 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8446 (psymbol_compare): Update.
8447 (add_psymbol_to_bcache): Clear the entire psymbol.
8448 (maintenance_check_psymtabs): Update.
8449 * psympriv.h (struct partial_symbol): Don't derive from
8450 general_symbol_info.
8451 <obj_section, unrelocated_address, address,
8452 set_unrelocated_address>: Update.
8453 <ginfo>: New member.
8454 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8455 (debug_names::write_psymbols): Update.
8456
9d6d4be8
TV
84572019-05-04 Tom de Vries <tdevries@suse.de>
8458
8459 * contrib/cc-with-tweaks.sh: Support -n arg.
8460
66452beb
PW
84612019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8462
8463 * corelow.c (core_target::detach): Ensure frame cache and
8464 register caches are cleared.
8465 inferior.c (exit_inferior_1): Likewise.
8466
bde09ab7
TT
84672019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8468 Tom Tromey <tom@tromey.com>
8469
8470 * dictionary.c (collate_pending_symbols_by_language): Remove
8471 "struct" from foreach.
8472 * symtab.c (lookup_global_symbol_from_objfile)
8473 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8474 foreach.
8475 * ser-tcp.c (net_open): Remove "struct" from foreach.
8476 * objfiles.c (objfile_relocate, objfile_rebase)
8477 (objfile_has_symbols): Remove "struct" from foreach.
8478 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8479 from foreach.
8480 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8481 foreach.
8482 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8483 "struct" from foreach.
8484 * ada-lang.c (create_excep_cond_exprs)
8485 (ada_exception_catchpoint_cond_string): Remove "struct" from
8486 foreach.
8487
222a8d25
TT
84882019-05-03 Tom Tromey <tromey@adacore.com>
8489
8490 * ada-exp.y (convert_char_literal): Check suffix of each
8491 enumerator.
8492
fcd60b84
DP
84932019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8494
8495 PR ada/21406:
8496 * ada-exp.y (yywrap): Don't define.
8497 * ada-lex.l (%option): Add noyywrap
8498 (yywrap): Remove.
8499
5f2459c2
EZ
85002019-05-03 Eli Zaretskii <eliz@gnu.org>
8501
353ea2d1
EZ
8502 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8503 _WIN32_WINNT to the XP level, unless already defined to a higher
8504 level.
8505
8506 * unittests/parse-connection-spec-selftests.c:
8507 * ser-tcp.c:
8508 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8509 override.
8510
5f2459c2
EZ
8511 * symfile.c (find_separate_debug_file): Remove colon from the
8512 drive spec of DOS/Windows file names of the target, so that the
8513 file name produced from DEBUGDIR and the target's directory will
8514 be valid on DOS/Windows systems.
8515
80062eb9
AB
85162019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * rust-lang.c (val_print_struct): Handle printing structures
8519 containing strings.
8520
b8c05e85
TT
85212019-05-02 Tom Tromey <tromey@adacore.com>
8522
8523 * valarith.c (_initialize_valarith): Remove.
8524
4504bbde
TT
85252019-05-01 Tom Tromey <tromey@adacore.com>
8526
8527 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8528 bitfields.
8529
d48e62f4
TT
85302019-05-01 Tom Tromey <tromey@adacore.com>
8531
8532 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8533 for big-endian copies.
8534
15f18d14
AT
85352019-04-30 Ali Tamur <tamur@google.com>
8536 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8537 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8538 (read_3_bytes): New function.
8539
ab4ee614
JB
85402019-04-30 Joel Brobecker <brobecker@adacore.com>
8541
8542 * windows-nat.c (main_thread_id): Delete.
8543 (handle_output_debug_string): Replace main_thread_id by
8544 current_event.dwThreadId.
8545 (fake_create_process): Likewise.
8546 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8547 Do not set main_thread_id.
8548 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8549 current_event.dwThreadId.
8550 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8551
8ed5b76e
JB
85522019-04-30 Joel Brobecker <brobecker@adacore.com>
8553
8554 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8555 Use current_event.dwThreadId instead of main_thread_id.
8556
2ff0a947
TT
85572019-04-30 Tom Tromey <tromey@adacore.com>
8558
8559 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8560 (create_excep_cond_exprs): Iterate over program spaces.
8561 (ada_exception_catchpoint_cond_string): Examine all minimal
8562 symbols for exception types.
8563
a776957c
TT
85642019-04-30 Tom Tromey <tromey@adacore.com>
8565
8566 PR c++/24470:
8567 * dwarf2read.c (process_structure_scope): Handle case where type
8568 has template parameters but no symbol was created.
8569
bc68014d
AB
85702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8571 Chris January <chris.january@arm.com>
8572
8573 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8574 qualifier.
8575 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8576
f1fdc960
AB
85772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8578
8579 * f-typeprint.c (f_print_type): Update rules for printing
8580 whitespace.
8581 (f_type_print_varspec_suffix): Likewise.
8582
bf7a4de1
AB
85832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8584 Chris January <chris.january@arm.com>
8585
8586 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8587 function arguments.
8588
bbe75b9d
AB
85892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * f-lang.c (build_fortran_types): Change name of void type to
8592 lower case.
8593 * f-typeprint.c (f_type_print_base): Print the name of the void
8594 type, rather than a fixed string.
8595 * f-valprint.c (f_decorations): Use lower case void string.
8596
1db455a7
AB
85972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8598 Chris January <chris.january@arm.com>
8599
8600 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8601 types for Fortran.
8602
b6d03bb2
AB
86032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8604 Chris January <chris.january@arm.com>
8605 David Lecomber <david.lecomber@arm.com>
8606
8607 * f-exp.y (BINOP_INTRINSIC): New token.
8608 (exp): New parser rule handling BINOP_INTRINSIC.
8609 (f77_keywords): Add new builtin procedures.
8610 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8611 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8612 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8613 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8614 (print_unop_subexp_f): New function.
8615 (print_binop_subexp_f): New function.
8616 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8617 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8618 (dump_subexp_body_f): Likewise.
8619 (operator_check_f): Likewise.
8620 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8621 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8622
83228e93
AB
86232019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8624
8625 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8626 UNOP_KIND.
8627 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8628 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8629 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8630 (operator_length_f): New fuction.
8631 (print_subexp_f): New function.
8632 (op_name_f): New function.
8633 (dump_subexp_body_f): New function.
8634 (operator_check_f): New function.
8635 (exp_descriptor_f): Replace standard expression handling functions
8636 with new functions.
8637 * gdb/fortran-operator.def: New file.
8638 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8639 * gdb/std-operator.def: Remove UNOP_KIND.
8640
6fdcd7cc
AB
86412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * std-operator.def: Remove unbalanced, stray double quote
8644 character.
8645
2e62ab40
AB
86462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8647 Chris January <chris.january@arm.com>
8648 Daniel Everett <daniel.everett@arm.com>
8649 Nick Forrington <nick.forrington@arm.com>
8650 Richard Bunt <richard.bunt@arm.com>
8651
8652 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8653 of depth when printing anonymous structs or unions.
8654 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8655 Don't print either the top-level value, or the children if the
8656 max-depth is exceeded.
8657 (ppscm_print_children): When printing the key of a map, allow one
8658 extra level of depth.
8659 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8660 print either the top-level value, or the children if the max-depth
8661 is exceeded.
8662 (print_children): When printing the key of a map, allow one extra
8663 level of depth.
8664 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8665 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8666 (user_print_options): Initialise max_depth field.
8667 (val_print_scalar_or_string_type_p): New function.
8668 (val_print): Check to see if the max depth has been reached.
8669 (val_print_check_max_depth): Define new function.
8670 (show_print_max_depth): New function.
8671 (_initialize_valprint): Add 'print max-depth' option.
8672 * valprint.h (struct value_print_options) <max_depth>: New field.
8673 (val_print_check_max_depth): Declare new function.
8674 * NEWS: Document new feature.
8675
4be290b2
AB
86762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * ada-lang.c (ada_language_defn): Initialise new field.
8679 * c-lang.c (c_is_string_type_p): New function.
8680 (c_language_defn): Initialise new field.
8681 (cplus_language_defn): Initialise new field.
8682 (asm_language_defn): Initialise new field.
8683 (minimal_language_defn): Initialise new field.
8684 * c-lang.h (c_is_string_type_p): Declare new function.
8685 * d-lang.c (d_language_defn): Initialise new field.
8686 * f-lang.c (f_is_string_type_p): New function.
8687 (f_language_defn): Initialise new field.
8688 * go-lang.c (go_is_string_type_p): New function.
8689 (go_language_defn): Initialise new field.
8690 * language.c (default_is_string_type_p): New function.
8691 (unknown_language_defn): Initialise new field.
8692 (auto_language_defn): Initialise new field.
8693 * language.h (struct language_defn) <la_is_string_type_p>: New
8694 member variable.
8695 (default_is_string_type_p): Declare new function.
8696 * m2-lang.c (m2_language_defn): Initialise new field.
8697 * objc-lang.c (objc_language_defn): Initialise new field.
8698 * opencl-lang.c (opencl_language_defn): Initialise new field.
8699 * p-lang.c (pascal_is_string_type_p): New function.
8700 (pascal_language_defn): Initialise new field.
8701 * rust-lang.c (rust_is_string_type_p): New function.
8702 (rust_language_defn): Initialise new field.
8703
721b08c6
AB
87042019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8707 New field.
8708 * ada-lang.c (ada_language_defn): Initialise new field.
8709 * c-lang.c (c_language_defn): Likewise.
8710 (cplus_language_defn): Likewise.
8711 (asm_language_defn): Likewise.
8712 (minimal_language_defn): Likewise.
8713 * d-lang.c (d_language_defn): Likewise.
8714 * f-lang.c (f_language_defn): Likewise.
8715 * go-lang.c (go_language_defn): Likewise.
8716 * language.c (unknown_language_defn): Likewise.
8717 (auto_language_defn): Likewise.
8718 * m2-lang.c (m2_language_defn): Likewise.
8719 * objc-lang.c (objc_language_defn): Likewise.
8720 * opencl-lang.c (opencl_language_defn): Likewise.
8721 * p-lang.c (pascal_language_defn): Likewise.
8722 * rust-lang.c (rust_language_defn): Likewise.
8723
fc913e53
AB
87242019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * ada-lang.c (ada_is_character_type): Change return type to bool.
8727 (ada_is_string_type): Likewise.
8728 * ada-lang.h (ada_is_character_type): Update declaration
8729 (ada_is_string_type): Likewise.
8730
fa731fa0
PW
87312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8732
8733 Support style in 'frame|thread apply'
8734
8735 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8736 * record.c (record_start, record_stop): Update callers of
8737 execute_command_to_string with false.
8738 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8739 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8740 methods.
8741 (class string_file): New constructor with term_out parameter.
8742 Override methods term_out and can_emit_style_escape. New member
8743 term_out.
8744 (class stdio_file): Override can_emit_style_escape.
8745 (class tee_file): Override term_out and can_emit_style_escape.
8746 * utils.h (can_emit_style_escape): Remove.
8747 * utils.c (can_emit_style_escape): Likewise.
8748 Update all callers of can_emit_style_escape (SOMESTREAM) to
8749 SOMESTREAM->can_emit_style_escape.
8750 * source-cache.c (source_cache::get_source_lines): Likewise.
8751 * stack.c (frame_apply_command_count): Call execute_command_to_string
8752 passing the term_out characteristic of the current gdb_stdout.
8753 * thread.c (thr_try_catch_cmd): Likewise.
8754 * top.c (execute_command_to_string): pass term_out parameter
8755 to construct the string_file for the command output.
8756 * ui-file.c (term_cli_styling): New function (most code moved
8757 from utils.c can_emit_style_escape).
8758 (string_file::string_file, string_file::can_emit_style_escape,
8759 stdio_file::can_emit_style_escape, tee_file::term_out,
8760 tee_file::can_emit_style_escape): New functions.
8761
136afab8
PW
87622019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8763
8764 * NEWS: Mention the new set|show may-call-functions.
8765 * infcall.c (may_call_functions_p): New variable.
8766 (show_may_call_functions_p): New function.
8767 (call_function_by_hand_dummy): Throws an error if not
8768 may-call-functions.
8769 (_initialize_infcall): Call add_setshow_boolean_cmd for
8770 may-call-functions.
8771
725cbb63
KS
87722019-04-25 Keith Seitz <keiths@redhat.com>
8773
8774 PR c++/24367
8775 * cp-support.c (inspect_type): Don't attempt substitutions
8776 of symbol with the same name.
8777
3d1cbb78
TT
87782019-04-25 Tom Tromey <tromey@adacore.com>
8779
8780 PR gdb/24475:
8781 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8782 static.
8783
94aeb44b
TT
87842019-04-25 Tom Tromey <tromey@adacore.com>
8785
8786 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8787 rvalue reference.
8788 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8789 (gdb_xml_parser::parse): Use std::move.
8790 * python/python-internal.h (gdbpy_convert_exception): Take a const
8791 reference.
8792 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8793 std::move.
8794 * python/py-utils.c (gdbpy_convert_exception): Take a const
8795 reference.
8796 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8797 Use std::move.
8798 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8799 Use std::move.
8800 * mi/mi-main.c (mi_print_exception): Take a const reference.
8801 * main.c (handle_command_errors): Take a const reference.
8802 * linespec.c (parse_linespec): Use std::move.
8803 * infcall.c (run_inferior_call): Use std::move.
8804 (call_function_by_hand_dummy): Use std::move.
8805 * exec.c (try_open_exec_file): Use std::move.
8806 * exceptions.h (exception_print, exception_fprintf)
8807 (exception_print_same): Update.
8808 * exceptions.c (print_exception, exception_print)
8809 (exception_fprintf, exception_print_same): Change parameters to
8810 const reference.
8811 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8812 * common/new-op.c: Use std::move.
8813 * common/common-exceptions.h (struct gdb_exception): Add move
8814 constructor.
8815 (struct gdb_exception_error, struct gdb_exception_quit, struct
8816 gdb_quit_bad_alloc): Change constructor to move constructor.
8817 (throw_exception): Change parameter to rvalue reference.
8818 * common/common-exceptions.c (throw_exception): Take rvalue
8819 reference.
8820 * cli/cli-interp.c (safe_execute_command): Use std::move.
8821 * breakpoint.c (insert_bp_location, location_to_sals): Use
8822 std::move.
8823
680d7fd5
TT
88242019-04-25 Tom Tromey <tromey@adacore.com>
8825
8826 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8827 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8828 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8829 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8830 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8831 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8832 guile/scm-value.c: Use unpack.
8833 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8834 gdbscm_gdb_exception.
8835 (gdbscm_throw_gdb_exception): Likewise.
8836 (struct gdbscm_gdb_exception): New.
8837 (unpack): New function.
8838 (gdbscm_wrap): Use unpack.
8839
c6fdd8b2
TT
88402019-04-25 Tom Tromey <tromey@adacore.com>
8841
8842 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8843 (gdb_rl_callback_handler): Use std::move.
8844 * common/common-exceptions.h (struct gdb_exception): Add move
8845 assignment operator.
8846 (throw_exception_sjlj): Change "exception" to const reference.
8847 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8848 (throw_exception_sjlj): Change "exception" to const reference.
8849
cc06b668
TT
88502019-04-25 Tom Tromey <tromey@adacore.com>
8851
8852 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8853 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8854 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8855 Update.
8856 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8857 Update.
8858 * mi/mi-interp.c (mi_interp::exec): Update.
8859 * linespec.c (parse_linespec): Update.
8860 * infcall.c (run_inferior_call): Update.
8861 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8862 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8863 (gdbscm_lookup_global_symbol): Update.
8864 * guile/scm-param.c (gdbscm_parameter_value): Update.
8865 * guile/scm-frame.c (gdbscm_frame_read_register)
8866 (gdbscm_frame_read_var): Update.
8867 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8868 * exec.c (try_open_exec_file): Update.
8869 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8870 (gdb_rl_callback_handler): Update.
8871 * common/common-exceptions.h (exception_none): Don't declare.
8872 * common/common-exceptions.c (exception_none): Don't define.
8873 (struct catcher) <exception>: Update.
8874 * cli/cli-interp.c (safe_execute_command): Update.
8875 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8876
cf532bd1
AT
88772019-04-25 Ali Tamur <tamur@google.com>
8878
8879 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8880 (read_attribute_value): Likewise.
8881 (dwarf2_read_addr_index): Update comment.
8882 (read_str_index): Add DW_FORM_strx.
8883 (dwarf2_string_attr): Likewise.
8884 (dwarf2_const_value_attr): Likewise.
8885 (dump_die_shallow): Likewise.
8886 (dwarf2_fetch_constant_bytes): Likewise.
8887 (skip_form_bytes): Likewise.
8888 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8889
82433e3e
SDJ
88902019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8891
8892 PR corefiles/11608
8893 PR corefiles/18187
8894 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8895 OFFSET. Verify if current mapping contains an ELF header.
8896 (linux_find_memory_regions_full): Adjust call to
8897 dump_mapping_p.
8898
723adb65
SL
88992019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8900 Kang Li <kanglictf@gmail.com>
8901
8902 PR gdb/21600
8903
8904 * dwarf2-frame.c (read_initial_length): Be consistent about using
8905 unsigned representation of length.
8906 (decode_frame_entry_1): Likewise. Check for wraparound of
8907 end pointer as well as buffer overflow.
8908
596179f7
SDJ
89092019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8910
8911 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8912 "vq".
8913
a59240a4
TT
89142019-04-24 Tom Tromey <tromey@adacore.com>
8915
8916 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8917
f872fdbb
AB
89182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * s12z-tdep.c (s12z_unwind_pc): Delete.
8921 (s12z_unwind_sp): Delete.
8922 (s12z_gdbarch_init): Don't register deleted functions with
8923 gdbarch.
8924
b614e6f3
AB
89252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8926
8927 * rl78-tdep.c (rl78_unwind_sp): Delete.
8928 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8929
14faed38
AB
89302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8933 (xstormy16_unwind_pc): Delete.
8934 (xstormy16_dummy_id): Delete.
8935 (xstormy16_gdbarch_init): Don't register deleted functions with
8936 gdbarch.
8937
541aad8a
AB
89382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * vax-tdep.c (vax_unwind_pc): Delete.
8941 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8942
29222070
AB
89432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * v850-tdep.c (v850_unwind_sp): Delete.
8946 (v850_unwind_pc): Delete.
8947 (v850_dummy_id): Delete.
8948 (v850_gdbarch_init): Don't register deleted functions with
8949 gdbarch.
8950
0f534d76
AB
89512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8952
8953 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8954 (tilegx_unwind_pc): Delete.
8955 (tilegx_unwind_dummy_id): Delete.
8956 (tilegx_gdbarch_init): Don't register deleted functions with
8957 gdbarch.
8958
1ba7b7f9
AB
89592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8962 (tic6x_dummy_id): Delete.
8963 (tic6x_gdbarch_init): Don't register deleted functions with
8964 gdbarch.
8965
d31f262c
AB
89662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 * sparc-tdep.c (sparc_unwind_pc): Delete.
8969 (sparc32_gdbarch_init): Don't register deleted function with
8970 gdbarch.
8971
6d14d64d
AB
89722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8973
8974 * sh-tdep.c (sh_unwind_sp): Delete.
8975 (sh_unwind_pc): Delete.
8976 (sh_dummy_id): Delete.
8977 (sh_gdbarch_init): Don't register deleted functions with
8978 gdbarch.
8979
a40dde9d
AB
89802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8981
8982 * score-tdep.c (score_unwind_sp): Delete.
8983 (score_unwind_pc): Delete.
8984 (score_dummy_id): Delete.
8985 (score_gdbarch_init): Don't register deleted functions with
8986 gdbarch.
8987
47c47d69
AB
89882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * rx-tdep.c (rx_unwind_pc): Delete.
8991 (rx_unwind_sp): Delete.
8992 (rx_dummy_id): Delete.
8993 (rx_gdbarch_init): Don't register deleted functions with
8994 gdbarch. Update comment.
8995
833a4480
AB
89962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8999 (rs6000_dummy_id): Delete.
9000 (rs6000_gdbarch_init): Don't register deleted functions with
9001 gdbarch.
9002
3f2cef49
AB
90032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9004
9005 * or1k-tdep.c (or1k_dummy_id): Delete.
9006 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9007
96acf884
AB
90082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * nios2-tdep.c (nios2_dummy_id): Delete.
9011 (nios2_unwind_sp): Delete.
9012 (nios2_gdbarch_init): Don't register deleted functions with
9013 gdbarch.
9014
ca0ab0aa
AB
90152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * nds32-tdep.c (nds32_dummy_id): Delete.
9018 (nds32_unwind_pc): Delete.
9019 (nds32_unwind_sp): Delete.
9020 (nds32_gdbarch_init): Don't register deleted functions with
9021 gdbarch.
9022
c8259044
AB
90232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9024
9025 * msp430-tdep.c (msp430_unwind_pc): Delete.
9026 (msp430_unwind_sp): Delete.
9027 (msp430_dummy_id): Delete.
9028 (msp430_gdbarch_init): Don't register deleted functions with
9029 gdbarch.
9030
27f113c8
AB
90312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9032
9033 * moxie-tdep.c (moxie_unwind_sp): Delete.
9034 (moxie_unwind_pc): Delete.
9035 (moxie_dummy_id): Delete.
9036 (moxie_gdbarch_init): Don't register deleted functions with
9037 gdbarch.
9038
aee6c3cd
AB
90392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9042 (mn10300_unwind_pc): Delete.
9043 (mn10300_unwind_sp): Delete.
9044 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9045 mn10300_unwind_sp.
9046 (mn10300_frame_unwind_init): Don't register deleted functions with
9047 gdbarch.
9048
8e2b5aea
AB
90492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9050
9051 * mep-tdep.c (mep_unwind_pc): Delete.
9052 (mep_unwind_sp): Delete.
9053 (mep_dummy_id): Delete.
9054 (mep_gdbarch_init): Don't register deleted functions with
9055 gdbarch.
9056
43cf3ede
AB
90572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9058
9059 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9060 (m68hc11_unwind_sp): Delete.
9061 (m68hc11_gdbarch_init): Don't register deleted functions with
9062 gdbarch.
9063
5e79b7bb
AB
90642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * m32r-tdep.c (m32r_unwind_sp): Delete.
9067 (m32r_unwind_pc): Delete.
9068 (m32r_dummy_id): Delete.
9069 (m32r_gdbarch_init): Don't register deleted functions with
9070 gdbarch.
9071
89b268d8
AB
90722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * m32c-tdep.c (m32c_unwind_pc): Delete.
9075 (m32c_unwind_sp): Delete.
9076 (m32c_dummy_id): Delete.
9077 (m32c_gdbarch_init): Don't register deleted functions with
9078 gdbarch.
9079
946c28d2
AB
90802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9081
9082 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9083 (lm32_unwind_pc): Delete.
9084 (lm32_dummy_id): Delete.
9085 (lm32_gdbarch_init): Don't register deleted functions with
9086 gdbarch.
9087
bf12844a
AB
90882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9089
9090 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9091 (iq2000_unwind_pc): Delete.
9092 (iq2000_dummy_id): Delete.
9093 (iq2000_gdbarch_init): Don't register deleted functions with
9094 gdbarch.
9095
ecbc06d2
AB
90962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9097
9098 * nds32-tdep.c (nds32_type_align): Delete.
9099 (nds32_push_dummy_call): Use type_align instead.
9100
030197b4
AB
91012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 * arm-tdep.c (arm_type_align): Only handle vector override case.
9104 (arm_push_dummy_call): Use type_align.
9105 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9106
b907456c
AB
91072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9110 case.
9111 (pass_on_stack): Use type_align.
9112 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9113 function.
9114
9e97ba43
TT
91152019-04-23 Tom Tromey <tromey@adacore.com>
9116
9117 * dwarf2read.c (line_header::file_name_at): Remove unused
9118 overload.
9119
6892f601
TV
91202019-04-23 Tom de Vries <tdevries@suse.de>
9121
9122 PR gdb/24438
9123 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9124 invocation.
9125
336d760d
AT
9126
91272019-03-27 Ali Tamur <tamur@google.com>
9128
9129 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9130 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9131 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9132 (dwarf_expr_context::get_addr_index): Likewise
9133 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9134 (symbol_needs_eval_context::get_addr_index): Likewise
9135 (disassemble_dwarf_expression): Add DW_OP_addrx
9136 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9137 (read_cutu_die_from_dwo): Update comment
9138 (skip_one_die): Add DW_FORM_addrx
9139 (read_attribute_value): Likewise
9140 (var_decode_location): Add DW_OP_addrx
9141 (dwarf2_const_value_attr): Add DW_FORM_addrx
9142 (dump_die_shallow): Likewise
9143 (dwarf2_fetch_constant_bytes): Likewise
9144 (decode_locdesc): Add DW_OP_addrx
9145 (skip_form_bytes): Add DW_FORM_addrx
9146
ad9d13f8
AT
91472019-04-22 Ali Tamur <tamur@google.com>
9148
9149 * MAINTAINERS (Write After Approval): Add self.
9150
d70cc3ba
SM
91512019-04-22 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9154 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9155 (open_symbol_file_object): Likewise.
9156 (svr4_default_sos): Add info parameter.
9157 (svr4_read_so_list): Likewise.
9158 (svr4_current_sos_direct): Adjust functions calls to pass down
9159 info.
9160 (svr4_current_sos_1): Add info parameter.
9161 (svr4_current_sos): Call get_svr4_info, pass info down to
9162 svr4_current_sos_1.
9163 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9164 get_svr4_info.
9165 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9166 get_svr4_info.
9167 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9168 to get_svr4_info.
9169 (probes_table_remove_objfile_probes): Likewise.
9170 (register_solib_event_probe): Add info parameter.
9171 (solist_update_incremental): Pass info parameter down to
9172 svr4_read_so_list.
9173 (disable_probes_interface): Add info parameter.
9174 (svr4_handle_solib_event): Pass current_program_space to
9175 get_svr4_info. Adjust disable_probes_interface cleanup.
9176 (svr4_create_probe_breakpoints): Add info parameter, pass it
9177 down to register_solib_event_probe.
9178 (svr4_create_solib_event_breakpoints): Add info parameter,
9179 pass it down to svr4_create_probe_breakpoints.
9180 (enable_break): Pass info down to
9181 svr4_create_solib_event_breakpoints.
9182 (svr4_solib_create_inferior_hook): Pass current_program_space to
9183 get_svr4_info.
9184 (svr4_clear_solib): Likewise.
9185
7905fc35
PA
91862019-04-22 Pedro Alves <palves@redhat.com>
9187
9188 * solib-svr4.c (svr4_free_objfile_observer): New.
9189 (probe_and_action::objfile): New field.
9190 (probes_table_htab_remove_objfile_probes)
9191 (probes_table_remove_objfile_probes): New functions.
9192 (register_solib_event_probe): Add 'objfile' parameter. Store it
9193 in the new probe_and_action. Don't store the probe in 'lookup'.
9194 (svr4_create_probe_breakpoints): Pass objfile to
9195 register_solib_event_probe.
9196 (_initialize_svr4_solib): Register a free_objfile observer.
9197
fb881986
TT
91982019-04-19 Tom Tromey <tom@tromey.com>
9199
9200 * common/queue.h: Remove.
9201
8732db6c
TT
92022019-04-19 Tom Tromey <tom@tromey.com>
9203
9204 * event-loop.c: Don't include "common/queue.h".
9205
97dfbadd
TT
92062019-04-19 Tom Tromey <tom@tromey.com>
9207
9208 * remote.c (remote_target): Use delete.
9209 * remote-notif.h: Include <list>, not "common/queue.h".
9210 (notif_client_p): Remove typedef.
9211 (remote_notif_state): Add constructor, destructor, initializer.
9212 <notif_queue>: Now a std::list.
9213 (remote_notif_state_xfree): Don't declare.
9214 * remote-notif.c (remote_notif_process, handle_notification)
9215 (remote_notif_state_allocate): Update.
9216 (~remote_notif_state): Rename from remote_notif_state_xfree.
9217
cf250e36
TT
92182019-04-19 Tom Tromey <tom@tromey.com>
9219
9220 * symfile.c (reread_symbols): Update.
9221 * objfiles.c (objfile_register_static_link)
9222 (objfile_lookup_static_link): Update
9223 (~objfile) Don't delete static_links.
9224 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9225
61f4b350
TT
92262019-04-19 Tom Tromey <tom@tromey.com>
9227
9228 * type-stack.h (struct type_stack) <insert>: Constify string.
9229 * type-stack.c (type_stack::insert): Constify string.
9230 * gdbtypes.h (lookup_template_type): Update.
9231 (address_space_name_to_int): Update.
9232 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9233 const.
9234 (lookup_template_type): Make name const.
9235 * c-exp.y: Update rules.
9236 (lex_one_token, classify_name, classify_inner_name)
9237 (c_print_token): Update.
9238 * p-exp.y: Update rules.
9239 (yylex): Update.
9240 * f-exp.y: Update rules.
9241 (yylex): Update.
9242 * d-exp.y: Update rules.
9243 (lex_one_token, classify_name, classify_inner_name): Update.
9244 * parse.c (write_dollar_variable, copy_name): Return std::string.
9245 * parser-defs.h (copy_name): Change return type.
9246 * m2-exp.y: Update rules.
9247 (yylex): Update.
9248 * go-exp.y (lex_one_token): Update.
9249 Update rules.
9250 (classify_unsafe_function, classify_packaged_name)
9251 (classify_name, yylex): Update.
9252
189b8c2e
ST
92532019-04-19 Sergei Trofimovich <siarheit@google.com>
9254
9255 * configure.ac: add --enable-source-highlight switch.
9256 * configure: Regenerate.
9257 * top.c (print_gdb_version): plumb --enable-source-highlight
9258 status to "show configuration".
9259
8ecb59f8
TT
92602019-04-19 Tom Tromey <tromey@adacore.com>
9261
9262 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9263 Check ADA_TYPE_P.
9264 (empty_record, ada_template_to_fixed_record_type_1)
9265 (template_to_static_fixed_type)
9266 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9267 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9268 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9269 macros.
9270
62160ec9
TT
92712019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9272
9273 PR symtab/24423:
9274 * source.c (print_source_lines_base): Advance "iter" when a
9275 control character is seen.
9276
f2ae8bc8
PW
92772019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9278
9279 * inferior.h (struct infcall_suspend_state_deleter):
9280 Catch exception in destructor to avoid crash.
9281
d563b953
PW
92822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9283
9284 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9285 close to the add_com "shell".
9286
dc34c897
TT
92872019-04-18 Tom Tromey <tromey@adacore.com>
9288
9289 * process-stratum-target.h (class process_stratum_target)
9290 <stratum>: Add "final".
9291
a12e5744
TT
92922019-04-17 Tom Tromey <tromey@adacore.com>
9293
9294 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9295 against nullptr before use.
9296
a7e559cc
AH
92972019-04-17 Alan Hayward <alan.hayward@arm.com>
9298
9299 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9300
c01660c6
AB
93012019-04-17 Jim Wilson <jimw@sifive.com>
9302 Andrew Burgess <andrew.burgess@embecosm.com>
9303
9304 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9305 code read might fail, assume 4-byte breakpoint in that case.
9306
4aa866af
LS
93072019-04-15 Leszek Swirski <leszeks@google.com>
9308
9309 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9310 rather than a hand-rolled POD check when checking for forced MEMORY
9311 classification.
9312
48574d91
AH
93132019-04-15 Alan Hayward <alan.hayward@arm.com>
9314
9315 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9316 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9317 function.
9318 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9319 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9320 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9321 declaration.
9322
4da037ef
AH
93232019-04-15 Alan Hayward <alan.hayward@arm.com>
9324
9325 * aarch64-linux-nat.c
9326 (aarch64_linux_nat_target::thread_architecture): Add override.
9327 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9328 each VQ.
9329
ccb8d7e8
AH
93302019-04-15 Alan Hayward <alan.hayward@arm.com>
9331
9332 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9333
35add35e
AB
93342019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9335
9336 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9337 target types of size 96-bits, add some additional comments, and
9338 check that the builtin type we found was the correct size.
9339
51196bbc
EZ
93402019-04-12 Eli Zaretskii <eliz@gnu.org>
9341
9342 * utils.c (prompt_for_continue): Don't restore the styling at the
9343 end, as applied_style has the wrong value. This fixes styling in
9344 long lists of file names that are interrupted by the "Continue?"
9345 prompt.
9346
62253a61
AB
93472019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9350 * c-lang.c (c_language_defn): Likewise.
9351 (cplus_language_defn): Likewise.
9352 (asm_language_defn): Likewise.
9353 (minimal_language_defn): Likewise.
9354 * d-lang.c (d_language_defn): Likewise.
9355 * f-lang.c (f_language_defn): Likewise.
9356 * go-lang.c (go_language_defn): Likewise.
9357 * language.c (unknown_language_defn): Likewise.
9358 (auto_language_defn): Likewise.
9359 * language.h (struct language_defn): Remove la_magic field.
9360 (LANG_MAGIC): Delete.
9361 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9362 * objc-lang.c (objc_language_defn): Likewise.
9363 * opencl-lang.c (opencl_language_defn): Likewise.
9364 * p-lang.c (pascal_language_defn): Likewise.
9365 * rust-lang.c (rust_language_defn): Likewise.
9366
a9158a86
AB
93672019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9368
9369 * riscv-tdep.c (riscv_type_align): New function.
9370 (riscv_type_alignment): Delete.
9371 (riscv_arg_location): Use 'type_align'.
9372 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9373
41077b66
AB
93742019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * gdbtypes.c (type_align): A struct with no non-static fields also
9377 has alignment of 1.
9378
9f0272f8
AB
93792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9382 component to 0.
9383 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9384 member.
9385 (riscv_struct_info::analyse): New implementation using new
9386 analyse_inner member function.
9387 (riscv_struct_info::field_offset): New member function.
9388 (riscv_struct_info::m_offsets): New member variable.
9389 (riscv_struct_info::analyse_inner): New private member function,
9390 takes the old implementation of riscv_struct_info::analyse but
9391 extended to track field offsets.
9392 (riscv_call_arg_struct): Update the struct folding special cases
9393 to handle cases where empty C++ structs, which are non-zero
9394 length, are found.
9395 (riscv_arg_location): Initialise the length of each location, a
9396 non-zero length now indicates the location is in use.
9397 (riscv_push_dummy_call): Allow for the first location having a
9398 non-zero offset when setting up arguments.
9399 (riscv_return_value): Likewise, but for return values.
9400
02cf60c7
TT
94012019-04-11 Tom Tromey <tromey@adacore.com>
9402
9403 * utils.c (internal_vproblem): Make "msg" const.
9404
68811f8f
AH
94052019-04-11 Alan Hayward <alan.hayward@arm.com>
9406
9407 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9408 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9409 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9410 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9411
3f52fdbc
KB
94122019-04-10 Kevin Buettner <kevinb@redhat.com>
9413
9414 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9415 function.
9416 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9417 of amd64_collect_native_gregset.
9418 (amd64_linux_nat_target::store_registers): Likewise.
9419
e9ad22ee
TT
94202019-04-10 Tom Tromey <tom@tromey.com>
9421
9422 * symtab.c (lookup_global_symbol_from_objfile)
9423 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9424 * objfiles.h (class separate_debug_iterator): New.
9425 (class separate_debug_range): New.
9426 (struct objfile) <separate_debug_objfiles>: New method.
9427 (objfile_separate_debug_iterate): Don't declare.
9428 * objfiles.c (separate_debug_iterator::operator++): Rename from
9429 objfile_separate_debug_iterate.
9430 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9431 iterator.
9432 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9433 iterator.
9434
ee371134
TT
94352019-04-10 Tom Tromey <tom@tromey.com>
9436
9437 * symfile.c (reread_symbols): Remove old comment.
9438 * objfiles.c (free_all_objfiles): Fix a typo.
9439
bf227d61
TT
94402019-04-10 Tom Tromey <tom@tromey.com>
9441
9442 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9443 * minsyms.c (lookup_minimal_symbol): Use foreach.
9444 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9445 (lookup_minimal_symbol_solib_trampoline): Likewise.
9446 * symfile.c (reread_symbols): Use foreach.
9447
8dc433a0
TT
94482019-04-09 Ivan Begert <ivanbegert@gmail.com>
9449 Tom Tromey <tromey@adacore.com>
9450
9451 PR rust/24414:
9452 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9453 (rust_lex_int_test): Change "value" to be LONGEST.
9454 (rust_lex_tests): Add test for long integer literal.
9455
9ab8741a
TT
94562019-04-09 Tom Tromey <tromey@adacore.com>
9457
9458 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9459 to bool.
9460 (extended_remote_target::attach): Update.
9461 (remote_target::remote_notice_new_inferior): Update.
9462 (remote_target::add_current_inferior_and_thread): Update.
9463 * inferior.c (exit_inferior_1): Use "false".
9464 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9465
e242fd12
SM
94662019-04-09 Simon Marchi <simon.marchi@efficios.com>
9467
9ca1957f 9468 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9469 the "start" command.
9470
2b0c8b01
KB
94712019-04-08 Kevin Buettner <kevinb@redhat.com>
9472
9473 * python/py-inferior.c (infpy_thread_from_thread_handle):
9474 Adjust comments to reflect renaming of thread_from_thread_handle
9475 to thread_from_handle. Adjust keywords. Fix type error message.
9476 (inferior_object_methods): Add thread_from_handle. Retain
9477 thread_from_thread_handle, but mark it as deprecated.
9478
50a82723
KB
94792019-04-08 Kevin Buettner <kevinb@redhat.com>
9480
9481 * gdbthread.h (find_thread_by_handle): Revise declaration.
9482 * thread.c (find_thread_by_handle): Likewise. Adjust
9483 implementation too.
9484 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9485 support for buffer objects as handles.
9486
cf63b016
KB
94872019-04-08 Kevin Buettner <kevinb@redhat.com>
9488
9489 * python/py-infthread.c (thpy_thread_handle): New function.
9490 (thread_object_methods): Register thpy_thread_handle.
9491
3d6c6204
KB
94922019-04-08 Kevin Buettner <kevinb@redhat.com>
9493
9494 * gdbthread.h (thread_to_thread_handle): Declare.
9495 * thread.c (gdbtypes.h): Include.
9496 (thread_to_thread_handle): New function.
9497
9498 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9499 (target_thread_info_to_thread_handle): Declare.
9500 * target.c (target_thread_info_to_thread_handle): New function.
9501 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9502 * target-delegates.c: Regenerate.
9503
9504 * linux-thread-db.c (class thread_db_target): Add method
9505 thread_info_to_thread_handle.
9506 (thread_db_target::thread_info_to_thread_handle): Define.
9507 * remote.c (class remote_target): Add new method
9508 thread_info_to_thread_handle.
9509 (remote_target::thread_info_to_thread_handle): Define.
9510
56be6ea8
PA
95112019-04-08 Pedro Alves <palves@redhat.com>
9512
9513 * common/common-exceptions.c (throw_exception): Don't create
9514 named object to throw; throw directly.
9515 (throw_it): Likewise. Don't initialize gdb_exception::message
9516 here, with new; pass FMT and AP to the ctor instead.
9517 * common/common-exceptions.h: Include <string>.
9518 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9519 const char *, va_list)): New ctor. Use std::make_shared.
9520 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9521 errors)): Delete.
9522 (gdb_exception_error::gdb_exception_error(enum errors, const char
9523 *, va_list)): New.
9524 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9525 Add assertion.
9526 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9527 errors)): Delete.
9528 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9529 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9530 Add assertion.
9531
eedc3f4f
TT
95322019-04-08 Tom Tromey <tom@tromey.com>
9533
9534 * valops.c (value_rtti_indirect_type): Replace throw_exception
9535 with throw.
9536 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9537 with throw.
9538 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9539 throw.
9540 * target.c (target_translate_tls_address): Replace throw_exception
9541 with throw.
9542 * stack.c (frame_apply_command_count): Replace throw_exception
9543 with throw.
9544 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9545 throw.
9546 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9547 with throw.
9548 * rs6000-tdep.c (rs6000_frame_cache)
9549 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9550 * remote.c: Replace throw_exception with throw.
9551 * record-full.c (record_full_message, record_full_wait_1)
9552 (record_full_restore): Replace throw_exception with throw.
9553 * record-btrace.c:
9554 (get_thread_current_frame_id, record_btrace_start_replaying)
9555 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9556 (cmd_record_btrace_start): Replace throw_exception with throw.
9557 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9558 throw.
9559 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9560 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9561 * linespec.c:
9562 (find_linespec_symbols): Replace throw_exception with throw.
9563 * infrun.c (displaced_step_prepare, resume): Replace
9564 throw_exception with throw.
9565 * infcmd.c (post_create_inferior): Replace throw_exception with
9566 throw.
9567 * inf-loop.c (inferior_event_handler): Replace throw_exception
9568 with throw.
9569 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9570 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9571 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9572 (get_prev_frame_always, get_frame_pc_if_available)
9573 (get_frame_address_in_block_if_available, get_frame_language):
9574 Replace throw_exception with throw.
9575 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9576 throw_exception with throw.
9577 * eval.c (fetch_subexp_value, evaluate_var_value)
9578 (evaluate_funcall, evaluate_subexp_standard): Replace
9579 throw_exception with throw.
9580 * dwarf2loc.c (call_site_find_chain)
9581 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9582 Replace throw_exception with throw.
9583 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9584 with throw.
9585 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9586 throw.
9587 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9588 * completer.c (complete_line_internal): Replace throw_exception
9589 with throw.
9590 * compile/compile-object-run.c (compile_object_run): Replace
9591 throw_exception with throw.
9592 * cli/cli-script.c (process_next_line): Replace throw_exception
9593 with throw.
9594 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9595 (btrace_enable, btrace_maint_update_pt_packets): Replace
9596 throw_exception with throw.
9597 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9598 throw_exception with throw.
9599 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9600 throw_exception with throw.
9601 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9602 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9603 * aarch64-tdep.c (aarch64_make_prologue_cache)
9604 (aarch64_make_stub_cache): Replace throw_exception with throw.
9605
26003a20
TT
96062019-04-08 Tom Tromey <tom@tromey.com>
9607
9608 * common/common-exceptions.c (throw_exception): Rename from
9609 throw_exception_cxx. Remove old copy. Make argument const.
9610 (throw_it): Create and throw exception objects directly.
9611 * common/common-exceptions.h (throw_exception): Make argument
9612 const.
9613 (struct gdb_exception_error): Add constructor.
9614 (struct gdb_exception_quit): Add constructor.
9615
d272eb37
TT
96162019-04-08 Tom Tromey <tom@tromey.com>
9617
9618 * common/common-exceptions.h (exception_rethrow): Don't declare.
9619 (TRY_SJLJ): Update comment.
9620 (TRY, CATCH, END_CATCH): Remove.
9621 * common/common-exceptions.c (exception_rethrow): Remove.
9622
230d2906
TT
96232019-04-08 Tom Tromey <tom@tromey.com>
9624
9625 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9626 Remove.
9627 (gdb_exception_error): Rename from
9628 gdb_exception_RETURN_MASK_ERROR.
9629 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9630 (gdb_quit_bad_alloc): Update.
9631 * aarch64-tdep.c: Update.
9632 * ada-lang.c: Update.
9633 * ada-typeprint.c: Update.
9634 * ada-valprint.c: Update.
9635 * amd64-tdep.c: Update.
9636 * arch-utils.c: Update.
9637 * break-catch-throw.c: Update.
9638 * breakpoint.c: Update.
9639 * btrace.c: Update.
9640 * c-varobj.c: Update.
9641 * cli/cli-cmds.c: Update.
9642 * cli/cli-interp.c: Update.
9643 * cli/cli-script.c: Update.
9644 * common/common-exceptions.c: Update.
9645 * common/new-op.c: Update.
9646 * common/selftest.c: Update.
9647 * compile/compile-c-symbols.c: Update.
9648 * compile/compile-cplus-symbols.c: Update.
9649 * compile/compile-object-load.c: Update.
9650 * compile/compile-object-run.c: Update.
9651 * completer.c: Update.
9652 * corelow.c: Update.
9653 * cp-abi.c: Update.
9654 * cp-support.c: Update.
9655 * cp-valprint.c: Update.
9656 * darwin-nat.c: Update.
9657 * disasm-selftests.c: Update.
9658 * dtrace-probe.c: Update.
9659 * dwarf-index-cache.c: Update.
9660 * dwarf-index-write.c: Update.
9661 * dwarf2-frame-tailcall.c: Update.
9662 * dwarf2-frame.c: Update.
9663 * dwarf2loc.c: Update.
9664 * dwarf2read.c: Update.
9665 * eval.c: Update.
9666 * event-loop.c: Update.
9667 * event-top.c: Update.
9668 * exec.c: Update.
9669 * f-valprint.c: Update.
9670 * fbsd-tdep.c: Update.
9671 * frame-unwind.c: Update.
9672 * frame.c: Update.
9673 * gdbtypes.c: Update.
9674 * gnu-v3-abi.c: Update.
9675 * guile/guile-internal.h: Update.
9676 * guile/scm-block.c: Update.
9677 * guile/scm-breakpoint.c: Update.
9678 * guile/scm-cmd.c: Update.
9679 * guile/scm-disasm.c: Update.
9680 * guile/scm-frame.c: Update.
9681 * guile/scm-lazy-string.c: Update.
9682 * guile/scm-math.c: Update.
9683 * guile/scm-param.c: Update.
9684 * guile/scm-ports.c: Update.
9685 * guile/scm-pretty-print.c: Update.
9686 * guile/scm-symbol.c: Update.
9687 * guile/scm-symtab.c: Update.
9688 * guile/scm-type.c: Update.
9689 * guile/scm-value.c: Update.
9690 * i386-linux-tdep.c: Update.
9691 * i386-tdep.c: Update.
9692 * inf-loop.c: Update.
9693 * infcall.c: Update.
9694 * infcmd.c: Update.
9695 * infrun.c: Update.
9696 * jit.c: Update.
9697 * language.c: Update.
9698 * linespec.c: Update.
9699 * linux-fork.c: Update.
9700 * linux-nat.c: Update.
9701 * linux-tdep.c: Update.
9702 * linux-thread-db.c: Update.
9703 * main.c: Update.
9704 * mi/mi-cmd-break.c: Update.
9705 * mi/mi-cmd-stack.c: Update.
9706 * mi/mi-interp.c: Update.
9707 * mi/mi-main.c: Update.
9708 * objc-lang.c: Update.
9709 * p-valprint.c: Update.
9710 * parse.c: Update.
9711 * ppc-linux-tdep.c: Update.
9712 * printcmd.c: Update.
9713 * python/py-arch.c: Update.
9714 * python/py-breakpoint.c: Update.
9715 * python/py-cmd.c: Update.
9716 * python/py-finishbreakpoint.c: Update.
9717 * python/py-frame.c: Update.
9718 * python/py-framefilter.c: Update.
9719 * python/py-gdb-readline.c: Update.
9720 * python/py-inferior.c: Update.
9721 * python/py-infthread.c: Update.
9722 * python/py-lazy-string.c: Update.
9723 * python/py-linetable.c: Update.
9724 * python/py-objfile.c: Update.
9725 * python/py-param.c: Update.
9726 * python/py-prettyprint.c: Update.
9727 * python/py-progspace.c: Update.
9728 * python/py-record-btrace.c: Update.
9729 * python/py-record.c: Update.
9730 * python/py-symbol.c: Update.
9731 * python/py-type.c: Update.
9732 * python/py-unwind.c: Update.
9733 * python/py-utils.c: Update.
9734 * python/py-value.c: Update.
9735 * python/python.c: Update.
9736 * record-btrace.c: Update.
9737 * record-full.c: Update.
9738 * remote-fileio.c: Update.
9739 * remote.c: Update.
9740 * riscv-tdep.c: Update.
9741 * rs6000-aix-tdep.c: Update.
9742 * rs6000-tdep.c: Update.
9743 * rust-exp.y: Update.
9744 * rust-lang.c: Update.
9745 * s390-tdep.c: Update.
9746 * selftest-arch.c: Update.
9747 * solib-dsbt.c: Update.
9748 * solib-frv.c: Update.
9749 * solib-spu.c: Update.
9750 * solib-svr4.c: Update.
9751 * solib.c: Update.
9752 * sparc64-linux-tdep.c: Update.
9753 * stack.c: Update.
9754 * symfile-mem.c: Update.
9755 * symmisc.c: Update.
9756 * target.c: Update.
9757 * thread.c: Update.
9758 * top.c: Update.
9759 * tracefile-tfile.c: Update.
9760 * tui/tui.c: Update.
9761 * typeprint.c: Update.
9762 * unittests/cli-utils-selftests.c: Update.
9763 * unittests/parse-connection-spec-selftests.c: Update.
9764 * valops.c: Update.
9765 * valprint.c: Update.
9766 * value.c: Update.
9767 * varobj.c: Update.
9768 * windows-nat.c: Update.
9769 * x86-linux-nat.c: Update.
9770 * xml-support.c: Update.
9771
a70b8144
TT
97722019-04-08 Tom Tromey <tom@tromey.com>
9773
9774 * xml-support.c: Use C++ exception handling.
9775 * x86-linux-nat.c: Use C++ exception handling.
9776 * windows-nat.c: Use C++ exception handling.
9777 * varobj.c: Use C++ exception handling.
9778 * value.c: Use C++ exception handling.
9779 * valprint.c: Use C++ exception handling.
9780 * valops.c: Use C++ exception handling.
9781 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9782 handling.
9783 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9784 * typeprint.c: Use C++ exception handling.
9785 * tui/tui.c: Use C++ exception handling.
9786 * tracefile-tfile.c: Use C++ exception handling.
9787 * top.c: Use C++ exception handling.
9788 * thread.c: Use C++ exception handling.
9789 * target.c: Use C++ exception handling.
9790 * symmisc.c: Use C++ exception handling.
9791 * symfile-mem.c: Use C++ exception handling.
9792 * stack.c: Use C++ exception handling.
9793 * sparc64-linux-tdep.c: Use C++ exception handling.
9794 * solib.c: Use C++ exception handling.
9795 * solib-svr4.c: Use C++ exception handling.
9796 * solib-spu.c: Use C++ exception handling.
9797 * solib-frv.c: Use C++ exception handling.
9798 * solib-dsbt.c: Use C++ exception handling.
9799 * selftest-arch.c: Use C++ exception handling.
9800 * s390-tdep.c: Use C++ exception handling.
9801 * rust-lang.c: Use C++ exception handling.
9802 * rust-exp.y: Use C++ exception handling.
9803 * rs6000-tdep.c: Use C++ exception handling.
9804 * rs6000-aix-tdep.c: Use C++ exception handling.
9805 * riscv-tdep.c: Use C++ exception handling.
9806 * remote.c: Use C++ exception handling.
9807 * remote-fileio.c: Use C++ exception handling.
9808 * record-full.c: Use C++ exception handling.
9809 * record-btrace.c: Use C++ exception handling.
9810 * python/python.c: Use C++ exception handling.
9811 * python/py-value.c: Use C++ exception handling.
9812 * python/py-utils.c: Use C++ exception handling.
9813 * python/py-unwind.c: Use C++ exception handling.
9814 * python/py-type.c: Use C++ exception handling.
9815 * python/py-symbol.c: Use C++ exception handling.
9816 * python/py-record.c: Use C++ exception handling.
9817 * python/py-record-btrace.c: Use C++ exception handling.
9818 * python/py-progspace.c: Use C++ exception handling.
9819 * python/py-prettyprint.c: Use C++ exception handling.
9820 * python/py-param.c: Use C++ exception handling.
9821 * python/py-objfile.c: Use C++ exception handling.
9822 * python/py-linetable.c: Use C++ exception handling.
9823 * python/py-lazy-string.c: Use C++ exception handling.
9824 * python/py-infthread.c: Use C++ exception handling.
9825 * python/py-inferior.c: Use C++ exception handling.
9826 * python/py-gdb-readline.c: Use C++ exception handling.
9827 * python/py-framefilter.c: Use C++ exception handling.
9828 * python/py-frame.c: Use C++ exception handling.
9829 * python/py-finishbreakpoint.c: Use C++ exception handling.
9830 * python/py-cmd.c: Use C++ exception handling.
9831 * python/py-breakpoint.c: Use C++ exception handling.
9832 * python/py-arch.c: Use C++ exception handling.
9833 * printcmd.c: Use C++ exception handling.
9834 * ppc-linux-tdep.c: Use C++ exception handling.
9835 * parse.c: Use C++ exception handling.
9836 * p-valprint.c: Use C++ exception handling.
9837 * objc-lang.c: Use C++ exception handling.
9838 * mi/mi-main.c: Use C++ exception handling.
9839 * mi/mi-interp.c: Use C++ exception handling.
9840 * mi/mi-cmd-stack.c: Use C++ exception handling.
9841 * mi/mi-cmd-break.c: Use C++ exception handling.
9842 * main.c: Use C++ exception handling.
9843 * linux-thread-db.c: Use C++ exception handling.
9844 * linux-tdep.c: Use C++ exception handling.
9845 * linux-nat.c: Use C++ exception handling.
9846 * linux-fork.c: Use C++ exception handling.
9847 * linespec.c: Use C++ exception handling.
9848 * language.c: Use C++ exception handling.
9849 * jit.c: Use C++ exception handling.
9850 * infrun.c: Use C++ exception handling.
9851 * infcmd.c: Use C++ exception handling.
9852 * infcall.c: Use C++ exception handling.
9853 * inf-loop.c: Use C++ exception handling.
9854 * i386-tdep.c: Use C++ exception handling.
9855 * i386-linux-tdep.c: Use C++ exception handling.
9856 * guile/scm-value.c: Use C++ exception handling.
9857 * guile/scm-type.c: Use C++ exception handling.
9858 * guile/scm-symtab.c: Use C++ exception handling.
9859 * guile/scm-symbol.c: Use C++ exception handling.
9860 * guile/scm-pretty-print.c: Use C++ exception handling.
9861 * guile/scm-ports.c: Use C++ exception handling.
9862 * guile/scm-param.c: Use C++ exception handling.
9863 * guile/scm-math.c: Use C++ exception handling.
9864 * guile/scm-lazy-string.c: Use C++ exception handling.
9865 * guile/scm-frame.c: Use C++ exception handling.
9866 * guile/scm-disasm.c: Use C++ exception handling.
9867 * guile/scm-cmd.c: Use C++ exception handling.
9868 * guile/scm-breakpoint.c: Use C++ exception handling.
9869 * guile/scm-block.c: Use C++ exception handling.
9870 * guile/guile-internal.h: Use C++ exception handling.
9871 * gnu-v3-abi.c: Use C++ exception handling.
9872 * gdbtypes.c: Use C++ exception handling.
9873 * frame.c: Use C++ exception handling.
9874 * frame-unwind.c: Use C++ exception handling.
9875 * fbsd-tdep.c: Use C++ exception handling.
9876 * f-valprint.c: Use C++ exception handling.
9877 * exec.c: Use C++ exception handling.
9878 * event-top.c: Use C++ exception handling.
9879 * event-loop.c: Use C++ exception handling.
9880 * eval.c: Use C++ exception handling.
9881 * dwarf2read.c: Use C++ exception handling.
9882 * dwarf2loc.c: Use C++ exception handling.
9883 * dwarf2-frame.c: Use C++ exception handling.
9884 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9885 * dwarf-index-write.c: Use C++ exception handling.
9886 * dwarf-index-cache.c: Use C++ exception handling.
9887 * dtrace-probe.c: Use C++ exception handling.
9888 * disasm-selftests.c: Use C++ exception handling.
9889 * darwin-nat.c: Use C++ exception handling.
9890 * cp-valprint.c: Use C++ exception handling.
9891 * cp-support.c: Use C++ exception handling.
9892 * cp-abi.c: Use C++ exception handling.
9893 * corelow.c: Use C++ exception handling.
9894 * completer.c: Use C++ exception handling.
9895 * compile/compile-object-run.c: Use C++ exception handling.
9896 * compile/compile-object-load.c: Use C++ exception handling.
9897 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9898 * compile/compile-c-symbols.c: Use C++ exception handling.
9899 * common/selftest.c: Use C++ exception handling.
9900 * common/new-op.c: Use C++ exception handling.
9901 * cli/cli-script.c: Use C++ exception handling.
9902 * cli/cli-interp.c: Use C++ exception handling.
9903 * cli/cli-cmds.c: Use C++ exception handling.
9904 * c-varobj.c: Use C++ exception handling.
9905 * btrace.c: Use C++ exception handling.
9906 * breakpoint.c: Use C++ exception handling.
9907 * break-catch-throw.c: Use C++ exception handling.
9908 * arch-utils.c: Use C++ exception handling.
9909 * amd64-tdep.c: Use C++ exception handling.
9910 * ada-valprint.c: Use C++ exception handling.
9911 * ada-typeprint.c: Use C++ exception handling.
9912 * ada-lang.c: Use C++ exception handling.
9913 * aarch64-tdep.c: Use C++ exception handling.
9914
3d6e9d23
TT
99152019-04-08 Tom Tromey <tom@tromey.com>
9916
9917 * xml-support.c (gdb_xml_parser::parse): Update.
9918 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9919 * value.c (show_convenience): Update.
9920 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9921 (test_parse_flags_qcs): Update.
9922 * thread.c (thr_try_catch_cmd): Update.
9923 * target.c (target_translate_tls_address): Update.
9924 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9925 (info_frame_command_core, frame_apply_command_count): Update.
9926 * rust-exp.y (rust_lex_exception_test): Update.
9927 * riscv-tdep.c (riscv_print_one_register_info): Update.
9928 * remote.c (remote_target::enable_btrace): Update.
9929 * record-btrace.c (record_btrace_enable_warn): Update.
9930 * python/py-utils.c (gdbpy_convert_exception): Update.
9931 * printcmd.c (do_one_display, print_variable_and_value): Update.
9932 * mi/mi-main.c (mi_print_exception): Update.
9933 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9934 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9935 * linux-nat.c (linux_nat_target::attach): Update.
9936 * linux-fork.c (class scoped_switch_fork_info): Update.
9937 * infrun.c (displaced_step_prepare): Update.
9938 * infcall.c (call_function_by_hand_dummy): Update.
9939 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9940 * gnu-v3-abi.c (print_one_vtable): Update.
9941 * frame.c (get_prev_frame_always): Update.
9942 * f-valprint.c (info_common_command_for_block): Update.
9943 * exec.c (try_open_exec_file): Update.
9944 * exceptions.c (print_exception, exception_print)
9945 (exception_fprintf, exception_print_same): Update.
9946 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9947 * dwarf-index-cache.c (index_cache::store)
9948 (index_cache::lookup_gdb_index): Update.
9949 * darwin-nat.c (maybe_cache_shell): Update.
9950 * cp-valprint.c (cp_print_value_fields): Update.
9951 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9952 (gcc_cplus_symbol_address): Update.
9953 * compile/compile-c-symbols.c (gcc_convert_symbol)
9954 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9955 * common/selftest.c: Update.
9956 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9957 a std::string.
9958 (exception_try_scope_entry, exception_try_scope_exit): Don't
9959 declare.
9960 (struct exception_try_scope): Remove.
9961 (TRY): Don't use exception_try_scope.
9962 (struct gdb_exception): Add constructor, operator=.
9963 <what>: New method.
9964 (struct gdb_exception_RETURN_MASK_ALL)
9965 (struct gdb_exception_RETURN_MASK_ERROR)
9966 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9967 (struct gdb_quit_bad_alloc): Update.
9968 * common/common-exceptions.c (exception_none): Change
9969 initializer.
9970 (struct catcher) <state, exception>: Initialize inline.
9971 <prev>: Remove member.
9972 (current_catcher): Remove.
9973 (catchers): New global.
9974 (exceptions_state_mc_init): Simplify.
9975 (catcher_pop): Remove.
9976 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9977 (try_scope_depth, exception_try_scope_entry)
9978 (exception_try_scope_exit): Remove.
9979 (throw_exception_sjlj): Update.
9980 (exception_messages, exception_messages_size): Remove.
9981 (throw_it): Simplify.
9982 (gdb_exception_sliced_copy): Remove.
9983 (throw_exception_cxx): Update.
9984 * cli/cli-script.c (script_from_file): Update.
9985 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9986 Update.
9987 * ada-valprint.c (ada_val_print): Update.
9988 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9989 (create_excep_cond_exprs): Update.
9990
c5c10118
TT
99912019-04-08 Tom Tromey <tom@tromey.com>
9992
9993 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9994 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9995 (TRY, CATCH, END_CATCH): Remove some definitions.
9996 * common/common-exceptions.c: Don't use GDB_XCPT.
9997 (catcher_list_size): Remove.
9998 (throw_exception, throw_it): Simplify.
9999
4de283e4
TT
100002019-04-05 Tom Tromey <tom@tromey.com>
10001
10002 Revert the header-sorting patch.
10003 * ft32-tdep.c: Revert.
10004 * frv-tdep.c: Revert.
10005 * frv-linux-tdep.c: Revert.
10006 * frame.c: Revert.
10007 * frame-unwind.c: Revert.
10008 * frame-base.c: Revert.
10009 * fork-child.c: Revert.
10010 * findvar.c: Revert.
10011 * findcmd.c: Revert.
10012 * filesystem.c: Revert.
10013 * filename-seen-cache.h: Revert.
10014 * filename-seen-cache.c: Revert.
10015 * fbsd-tdep.c: Revert.
10016 * fbsd-nat.h: Revert.
10017 * fbsd-nat.c: Revert.
10018 * f-valprint.c: Revert.
10019 * f-typeprint.c: Revert.
10020 * f-lang.c: Revert.
10021 * extension.h: Revert.
10022 * extension.c: Revert.
10023 * extension-priv.h: Revert.
10024 * expprint.c: Revert.
10025 * exec.h: Revert.
10026 * exec.c: Revert.
10027 * exceptions.c: Revert.
10028 * event-top.c: Revert.
10029 * event-loop.c: Revert.
10030 * eval.c: Revert.
10031 * elfread.c: Revert.
10032 * dwarf2read.h: Revert.
10033 * dwarf2read.c: Revert.
10034 * dwarf2loc.c: Revert.
10035 * dwarf2expr.h: Revert.
10036 * dwarf2expr.c: Revert.
10037 * dwarf2-frame.c: Revert.
10038 * dwarf2-frame-tailcall.c: Revert.
10039 * dwarf-index-write.h: Revert.
10040 * dwarf-index-write.c: Revert.
10041 * dwarf-index-common.c: Revert.
10042 * dwarf-index-cache.h: Revert.
10043 * dwarf-index-cache.c: Revert.
10044 * dummy-frame.c: Revert.
10045 * dtrace-probe.c: Revert.
10046 * disasm.h: Revert.
10047 * disasm.c: Revert.
10048 * disasm-selftests.c: Revert.
10049 * dictionary.c: Revert.
10050 * dicos-tdep.c: Revert.
10051 * demangle.c: Revert.
10052 * dcache.h: Revert.
10053 * dcache.c: Revert.
10054 * darwin-nat.h: Revert.
10055 * darwin-nat.c: Revert.
10056 * darwin-nat-info.c: Revert.
10057 * d-valprint.c: Revert.
10058 * d-namespace.c: Revert.
10059 * d-lang.c: Revert.
10060 * ctf.c: Revert.
10061 * csky-tdep.c: Revert.
10062 * csky-linux-tdep.c: Revert.
10063 * cris-tdep.c: Revert.
10064 * cris-linux-tdep.c: Revert.
10065 * cp-valprint.c: Revert.
10066 * cp-support.c: Revert.
10067 * cp-namespace.c: Revert.
10068 * cp-abi.c: Revert.
10069 * corelow.c: Revert.
10070 * corefile.c: Revert.
10071 * continuations.c: Revert.
10072 * completer.h: Revert.
10073 * completer.c: Revert.
10074 * complaints.c: Revert.
10075 * coffread.c: Revert.
10076 * coff-pe-read.c: Revert.
10077 * cli-out.h: Revert.
10078 * cli-out.c: Revert.
10079 * charset.c: Revert.
10080 * c-varobj.c: Revert.
10081 * c-valprint.c: Revert.
10082 * c-typeprint.c: Revert.
10083 * c-lang.c: Revert.
10084 * buildsym.c: Revert.
10085 * buildsym-legacy.c: Revert.
10086 * build-id.h: Revert.
10087 * build-id.c: Revert.
10088 * btrace.c: Revert.
10089 * bsd-uthread.c: Revert.
10090 * breakpoint.h: Revert.
10091 * breakpoint.c: Revert.
10092 * break-catch-throw.c: Revert.
10093 * break-catch-syscall.c: Revert.
10094 * break-catch-sig.c: Revert.
10095 * blockframe.c: Revert.
10096 * block.c: Revert.
10097 * bfin-tdep.c: Revert.
10098 * bfin-linux-tdep.c: Revert.
10099 * bfd-target.c: Revert.
10100 * bcache.c: Revert.
10101 * ax-general.c: Revert.
10102 * ax-gdb.h: Revert.
10103 * ax-gdb.c: Revert.
10104 * avr-tdep.c: Revert.
10105 * auxv.c: Revert.
10106 * auto-load.c: Revert.
10107 * arm-wince-tdep.c: Revert.
10108 * arm-tdep.c: Revert.
10109 * arm-symbian-tdep.c: Revert.
10110 * arm-pikeos-tdep.c: Revert.
10111 * arm-obsd-tdep.c: Revert.
10112 * arm-nbsd-tdep.c: Revert.
10113 * arm-nbsd-nat.c: Revert.
10114 * arm-linux-tdep.c: Revert.
10115 * arm-linux-nat.c: Revert.
10116 * arm-fbsd-tdep.c: Revert.
10117 * arm-fbsd-nat.c: Revert.
10118 * arm-bsd-tdep.c: Revert.
10119 * arch-utils.c: Revert.
10120 * arc-tdep.c: Revert.
10121 * arc-newlib-tdep.c: Revert.
10122 * annotate.h: Revert.
10123 * annotate.c: Revert.
10124 * amd64-windows-tdep.c: Revert.
10125 * amd64-windows-nat.c: Revert.
10126 * amd64-tdep.c: Revert.
10127 * amd64-sol2-tdep.c: Revert.
10128 * amd64-obsd-tdep.c: Revert.
10129 * amd64-obsd-nat.c: Revert.
10130 * amd64-nbsd-tdep.c: Revert.
10131 * amd64-nbsd-nat.c: Revert.
10132 * amd64-nat.c: Revert.
10133 * amd64-linux-tdep.c: Revert.
10134 * amd64-linux-nat.c: Revert.
10135 * amd64-fbsd-tdep.c: Revert.
10136 * amd64-fbsd-nat.c: Revert.
10137 * amd64-dicos-tdep.c: Revert.
10138 * amd64-darwin-tdep.c: Revert.
10139 * amd64-bsd-nat.c: Revert.
10140 * alpha-tdep.c: Revert.
10141 * alpha-obsd-tdep.c: Revert.
10142 * alpha-nbsd-tdep.c: Revert.
10143 * alpha-mdebug-tdep.c: Revert.
10144 * alpha-linux-tdep.c: Revert.
10145 * alpha-linux-nat.c: Revert.
10146 * alpha-bsd-tdep.c: Revert.
10147 * alpha-bsd-nat.c: Revert.
10148 * aix-thread.c: Revert.
10149 * agent.c: Revert.
10150 * addrmap.c: Revert.
10151 * ada-varobj.c: Revert.
10152 * ada-valprint.c: Revert.
10153 * ada-typeprint.c: Revert.
10154 * ada-tasks.c: Revert.
10155 * ada-lang.c: Revert.
10156 * aarch64-tdep.c: Revert.
10157 * aarch64-ravenscar-thread.c: Revert.
10158 * aarch64-newlib-tdep.c: Revert.
10159 * aarch64-linux-tdep.c: Revert.
10160 * aarch64-linux-nat.c: Revert.
10161 * aarch64-fbsd-tdep.c: Revert.
10162 * aarch64-fbsd-nat.c: Revert.
10163 * aarch32-linux-nat.c: Revert.
10164
d55e5aa6
TT
101652019-04-05 Tom Tromey <tom@tromey.com>
10166
10167 * ft32-tdep.c: Sort headers.
10168 * frv-tdep.c: Sort headers.
10169 * frv-linux-tdep.c: Sort headers.
10170 * frame.c: Sort headers.
10171 * frame-unwind.c: Sort headers.
10172 * frame-base.c: Sort headers.
10173 * fork-child.c: Sort headers.
10174 * findvar.c: Sort headers.
10175 * findcmd.c: Sort headers.
10176 * filesystem.c: Sort headers.
10177 * filename-seen-cache.h: Sort headers.
10178 * filename-seen-cache.c: Sort headers.
10179 * fbsd-tdep.c: Sort headers.
10180 * fbsd-nat.h: Sort headers.
10181 * fbsd-nat.c: Sort headers.
10182 * f-valprint.c: Sort headers.
10183 * f-typeprint.c: Sort headers.
10184 * f-lang.c: Sort headers.
10185 * extension.h: Sort headers.
10186 * extension.c: Sort headers.
10187 * extension-priv.h: Sort headers.
10188 * expprint.c: Sort headers.
10189 * exec.h: Sort headers.
10190 * exec.c: Sort headers.
10191 * exceptions.c: Sort headers.
10192 * event-top.c: Sort headers.
10193 * event-loop.c: Sort headers.
10194 * eval.c: Sort headers.
10195 * elfread.c: Sort headers.
10196 * dwarf2read.h: Sort headers.
10197 * dwarf2read.c: Sort headers.
10198 * dwarf2loc.c: Sort headers.
10199 * dwarf2expr.h: Sort headers.
10200 * dwarf2expr.c: Sort headers.
10201 * dwarf2-frame.c: Sort headers.
10202 * dwarf2-frame-tailcall.c: Sort headers.
10203 * dwarf-index-write.h: Sort headers.
10204 * dwarf-index-write.c: Sort headers.
10205 * dwarf-index-common.c: Sort headers.
10206 * dwarf-index-cache.h: Sort headers.
10207 * dwarf-index-cache.c: Sort headers.
10208 * dummy-frame.c: Sort headers.
10209 * dtrace-probe.c: Sort headers.
10210 * disasm.h: Sort headers.
10211 * disasm.c: Sort headers.
10212 * disasm-selftests.c: Sort headers.
10213 * dictionary.c: Sort headers.
10214 * dicos-tdep.c: Sort headers.
10215 * demangle.c: Sort headers.
10216 * dcache.h: Sort headers.
10217 * dcache.c: Sort headers.
10218 * darwin-nat.h: Sort headers.
10219 * darwin-nat.c: Sort headers.
10220 * darwin-nat-info.c: Sort headers.
10221 * d-valprint.c: Sort headers.
10222 * d-namespace.c: Sort headers.
10223 * d-lang.c: Sort headers.
10224 * ctf.c: Sort headers.
10225 * csky-tdep.c: Sort headers.
10226 * csky-linux-tdep.c: Sort headers.
10227 * cris-tdep.c: Sort headers.
10228 * cris-linux-tdep.c: Sort headers.
10229 * cp-valprint.c: Sort headers.
10230 * cp-support.c: Sort headers.
10231 * cp-namespace.c: Sort headers.
10232 * cp-abi.c: Sort headers.
10233 * corelow.c: Sort headers.
10234 * corefile.c: Sort headers.
10235 * continuations.c: Sort headers.
10236 * completer.h: Sort headers.
10237 * completer.c: Sort headers.
10238 * complaints.c: Sort headers.
10239 * coffread.c: Sort headers.
10240 * coff-pe-read.c: Sort headers.
10241 * cli-out.h: Sort headers.
10242 * cli-out.c: Sort headers.
10243 * charset.c: Sort headers.
10244 * c-varobj.c: Sort headers.
10245 * c-valprint.c: Sort headers.
10246 * c-typeprint.c: Sort headers.
10247 * c-lang.c: Sort headers.
10248 * buildsym.c: Sort headers.
10249 * buildsym-legacy.c: Sort headers.
10250 * build-id.h: Sort headers.
10251 * build-id.c: Sort headers.
10252 * btrace.c: Sort headers.
10253 * bsd-uthread.c: Sort headers.
10254 * breakpoint.h: Sort headers.
10255 * breakpoint.c: Sort headers.
10256 * break-catch-throw.c: Sort headers.
10257 * break-catch-syscall.c: Sort headers.
10258 * break-catch-sig.c: Sort headers.
10259 * blockframe.c: Sort headers.
10260 * block.c: Sort headers.
10261 * bfin-tdep.c: Sort headers.
10262 * bfin-linux-tdep.c: Sort headers.
10263 * bfd-target.c: Sort headers.
10264 * bcache.c: Sort headers.
10265 * ax-general.c: Sort headers.
10266 * ax-gdb.h: Sort headers.
10267 * ax-gdb.c: Sort headers.
10268 * avr-tdep.c: Sort headers.
10269 * auxv.c: Sort headers.
10270 * auto-load.c: Sort headers.
10271 * arm-wince-tdep.c: Sort headers.
10272 * arm-tdep.c: Sort headers.
10273 * arm-symbian-tdep.c: Sort headers.
10274 * arm-pikeos-tdep.c: Sort headers.
10275 * arm-obsd-tdep.c: Sort headers.
10276 * arm-nbsd-tdep.c: Sort headers.
10277 * arm-nbsd-nat.c: Sort headers.
10278 * arm-linux-tdep.c: Sort headers.
10279 * arm-linux-nat.c: Sort headers.
10280 * arm-fbsd-tdep.c: Sort headers.
10281 * arm-fbsd-nat.c: Sort headers.
10282 * arm-bsd-tdep.c: Sort headers.
10283 * arch-utils.c: Sort headers.
10284 * arc-tdep.c: Sort headers.
10285 * arc-newlib-tdep.c: Sort headers.
10286 * annotate.h: Sort headers.
10287 * annotate.c: Sort headers.
10288 * amd64-windows-tdep.c: Sort headers.
10289 * amd64-windows-nat.c: Sort headers.
10290 * amd64-tdep.c: Sort headers.
10291 * amd64-sol2-tdep.c: Sort headers.
10292 * amd64-obsd-tdep.c: Sort headers.
10293 * amd64-obsd-nat.c: Sort headers.
10294 * amd64-nbsd-tdep.c: Sort headers.
10295 * amd64-nbsd-nat.c: Sort headers.
10296 * amd64-nat.c: Sort headers.
10297 * amd64-linux-tdep.c: Sort headers.
10298 * amd64-linux-nat.c: Sort headers.
10299 * amd64-fbsd-tdep.c: Sort headers.
10300 * amd64-fbsd-nat.c: Sort headers.
10301 * amd64-dicos-tdep.c: Sort headers.
10302 * amd64-darwin-tdep.c: Sort headers.
10303 * amd64-bsd-nat.c: Sort headers.
10304 * alpha-tdep.c: Sort headers.
10305 * alpha-obsd-tdep.c: Sort headers.
10306 * alpha-nbsd-tdep.c: Sort headers.
10307 * alpha-mdebug-tdep.c: Sort headers.
10308 * alpha-linux-tdep.c: Sort headers.
10309 * alpha-linux-nat.c: Sort headers.
10310 * alpha-bsd-tdep.c: Sort headers.
10311 * alpha-bsd-nat.c: Sort headers.
10312 * aix-thread.c: Sort headers.
10313 * agent.c: Sort headers.
10314 * addrmap.c: Sort headers.
10315 * ada-varobj.c: Sort headers.
10316 * ada-valprint.c: Sort headers.
10317 * ada-typeprint.c: Sort headers.
10318 * ada-tasks.c: Sort headers.
10319 * ada-lang.c: Sort headers.
10320 * aarch64-tdep.c: Sort headers.
10321 * aarch64-ravenscar-thread.c: Sort headers.
10322 * aarch64-newlib-tdep.c: Sort headers.
10323 * aarch64-linux-tdep.c: Sort headers.
10324 * aarch64-linux-nat.c: Sort headers.
10325 * aarch64-fbsd-tdep.c: Sort headers.
10326 * aarch64-fbsd-nat.c: Sort headers.
10327 * aarch32-linux-nat.c: Sort headers.
10328
699bd4cf
TT
103292019-04-04 Tom Tromey <tom@tromey.com>
10330
10331 * varobj.c (varobj_create): Update.
10332 * rust-exp.y (struct rust_parser) <update_innermost_block,
10333 lookup_symbol>: New methods.
10334 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10335 Rename.
10336 (rust_parser::rust_lookup_type)
10337 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10338 * printcmd.c (display_command, do_one_display): Update.
10339 * parser-defs.h (struct parser_state) <parser_state>: Add
10340 "tracker" parameter.
10341 (block_tracker): New member.
10342 (class innermost_block_tracker) <innermost_block_tracker>: Add
10343 "types" parameter.
10344 <reset>: Remove method.
10345 (innermost_block): Don't declare.
10346 (null_post_parser): Update.
10347 * parse.c (innermost_block): Remove global.
10348 (write_dollar_variable): Update.
10349 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10350 Remove "tracker_types" parameter.
10351 (parse_expression): Add "tracker" parameter.
10352 (parse_expression_for_completion): Update.
10353 (null_post_parser): Add "tracker" parameter.
10354 * p-exp.y: Update rules.
10355 * m2-exp.y: Update rules.
10356 * language.h (struct language_defn) <la_post_parser>: Add
10357 "tracker" parameter.
10358 * go-exp.y: Update rules.
10359 * f-exp.y: Update rules.
10360 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10361 parameter.
10362 * d-exp.y: Update rules.
10363 * c-exp.y: Update rules.
10364 * breakpoint.c (set_breakpoint_condition): Create an
10365 innermost_block_tracker.
10366 (watch_command_1): Likewise.
10367 * ada-lang.c (resolve): Add "tracker" parameter.
10368 (resolve_subexp): Likewise.
10369 * ada-exp.y (write_var_from_sym): Update.
10370
dac43e32
TT
103712019-04-04 Tom Tromey <tom@tromey.com>
10372
10373 * type-stack.h: New file.
10374 * type-stack.c: New file.
10375 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10376 type-stack.h.
10377 (insert_into_type_stack, insert_type, push_type, push_type_int)
10378 (insert_type_address_space, pop_type, pop_type_int)
10379 (pop_typelist, pop_type_stack, append_type_stack)
10380 (push_type_stack, get_type_stack, push_typelist)
10381 (follow_type_instance_flags, follow_types): Don't declare.
10382 * parse.c (type_stack): Remove global.
10383 (parse_exp_in_context): Update.
10384 (insert_into_type_stack, insert_type, push_type, push_type_int)
10385 (insert_type_address_space, pop_type, pop_type_int)
10386 (pop_typelist, pop_type_stack, append_type_stack)
10387 (push_type_stack, get_type_stack, push_typelist)
10388 (follow_type_instance_flags, follow_types): Remove (moved to
10389 type-stack.c).
10390 * f-exp.y (type_stack): New global.
10391 Update rules.
10392 (push_kind_type, f_parse): Update.
10393 * d-exp.y (type_stack): New global.
10394 Update rules.
10395 (d_parse): Update.
10396 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10397 Update rules.
10398 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10399 (HFILES_NO_SRCDIR): Add type-stack.h.
10400
2a612529
TT
104012019-04-04 Tom Tromey <tom@tromey.com>
10402
10403 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10404 (rust_parser::convert_ast_to_expression, rust_parse)
10405 (rust_lex_test_completion, rust_lex_tests): Update.
10406 * parser-defs.h (struct expr_completion_state): New.
10407 (struct parser_state) <parser_state>: Add completion parameter.
10408 <mark_struct_expression, mark_completion_tag>: New methods.
10409 <parse_completion, m_completion_state>: New members.
10410 (prefixify_expression, null_post_parser): Update.
10411 (mark_struct_expression, mark_completion_tag): Don't declare.
10412 * parse.c (parse_completion, expout_last_struct)
10413 (expout_tag_completion_type, expout_completion_name): Remove
10414 globals.
10415 (parser_state::mark_struct_expression)
10416 (parser_state::mark_completion_tag): Now methods.
10417 (prefixify_expression): Add last_struct parameter.
10418 (prefixify_subexp): Likewise.
10419 (parse_exp_1): Update.
10420 (parse_exp_in_context): Add cstate parameter. Update.
10421 (parse_expression_for_completion): Create an
10422 expr_completion_state.
10423 (null_post_parser): Add "completion" parameter.
10424 * p-exp.y: Update rules.
10425 (yylex): Update.
10426 * language.h (struct language_defn) <la_post_parser>: Add
10427 "completing" parameter.
10428 * go-exp.y: Update rules.
10429 (lex_one_token): Update.
10430 * expression.h (parse_completion): Don't declare.
10431 * d-exp.y: Update rules.
10432 (lex_one_token): Update rules.
10433 * c-exp.y: Update rules.
10434 (lex_one_token): Update.
10435 * ada-lang.c (resolve): Add "parse_completion" parameter.
10436 (resolve_subexp): Likewise.
10437 (ada_resolve_function): Likewise.
10438
43476f0b
TT
104392019-04-04 Tom Tromey <tom@tromey.com>
10440
10441 * parser-defs.h (struct parser_state) <start_arglist,
10442 end_arglist>: New methods.
10443 <arglist_len, m_funcall_chain>: New members.
10444 (arglist_len, start_arglist, end_arglist): Don't declare.
10445 * parse.c (arglist_len, funcall_chain): Remove global.
10446 (start_arglist, end_arglist): Remove functions.
10447 (parse_exp_in_context): Update.
10448 * p-exp.y: Update rules.
10449 * m2-exp.y: Update rules.
10450 * go-exp.y: Update rules.
10451 * f-exp.y: Update rules.
10452 * d-exp.y: Update rules.
10453 * c-exp.y: Update rules.
10454
5776fca3
TT
104552019-04-04 Tom Tromey <tom@tromey.com>
10456
10457 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10458 lex_operator, push_back>: New methods.
10459 Update all rules.
10460 (rust_parser::lex_hex, lex_escape): Rename and update.
10461 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10462 (rust_parser::lex_operator): Rename and update.
10463 (rust_parser::lex_number, rustyylex, rustyyerror)
10464 (rust_lex_test_init, rust_lex_test_sequence)
10465 (rust_lex_test_push_back, rust_lex_tests): Update.
10466 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10467 parameter.
10468 <lexptr, prev_lexptr>: New members.
10469 (lexptr, prev_lexptr): Don't declare.
10470 * parse.c (lexptr, prev_lexptr): Remove globals.
10471 (parse_exp_in_context): Update.
10472 * p-exp.y (yylex, yyerror): Update.
10473 * m2-exp.y (parse_number, yylex, yyerror): Update.
10474 * go-exp.y (lex_one_token, yyerror): Update.
10475 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10476 * d-exp.y (lex_one_token, yyerror): Update.
10477 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10478 (lex_one_token, yyerror): Update.
10479 * ada-lex.l (YY_INPUT): Update.
10480 (rewind_to_char): Update.
10481 * ada-exp.y (yyerror): Update.
10482
8621b685
TT
104832019-04-04 Tom Tromey <tom@tromey.com>
10484
10485 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10486 * parser-defs.h (struct parser_state) <parser_state>: Add new
10487 parameter.
10488 <comma_terminates>: New member.
10489 (comma_terminates): Don't declare global.
10490 * parse.c (comma_terminates): Remove global.
10491 (parse_exp_in_context): Update.
10492 * p-exp.y (yylex): Update.
10493 * m2-exp.y (yylex): Update.
10494 * go-exp.y (lex_one_token): Update.
10495 * f-exp.y (yylex): Update.
10496 * d-exp.y (lex_one_token): Update.
10497 * c-exp.y (lex_one_token): Update.
10498 * ada-lex.l: Update.
10499
28aaf3fd
TT
105002019-04-04 Tom Tromey <tom@tromey.com>
10501
10502 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10503 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10504 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10505 * parser-defs.h (paren_depth): Don't declare.
10506 * parse.c (paren_depth): Remove global.
10507 (parse_exp_in_context): Update.
10508 * p-exp.y (paren_depth): New global.
10509 (pascal_parse): Initialize it.
10510 * m2-exp.y (paren_depth): New global.
10511 (m2_parse): Initialize it.
10512 * go-exp.y (paren_depth): New global.
10513 (go_parse): Initialize it.
10514 * f-exp.y (paren_depth): New global.
10515 (f_parse): Initialize it.
10516 * d-exp.y (paren_depth): New global.
10517 (d_parse): Initialize it.
10518 * c-exp.y (paren_depth): New global.
10519 (c_parse): Initialize it.
10520 * ada-lex.l (paren_depth): New global.
10521 (lexer_init): Initialize it.
10522
1e58a4a4
TT
105232019-04-04 Tom Tromey <tom@tromey.com>
10524
10525 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10526 (rust_parser::convert_ast_to_type)
10527 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10528 * parser-defs.h (struct parser_state) <parser_state>: Add
10529 parameters. Initialize new members.
10530 <expression_context_block, expression_context_pc>: New members.
10531 * parse.c (expression_context_block, expression_context_pc):
10532 Remove globals.
10533 (parse_exp_in_context): Update.
10534 * p-exp.y: Update all rules.
10535 (yylex): Update.
10536 * m2-exp.y: Update all rules.
10537 (yylex): Update.
10538 * go-exp.y (yylex): Update.
10539 * f-exp.y (yylex): Update.
10540 * d-exp.y: Update all rules.
10541 (yylex): Update.
10542 * c-exp.y: Update all rules.
10543 (lex_one_token, classify_name, yylex, c_parse): Update.
10544 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10545
37eedb39
TT
105462019-04-04 Tom Tromey <tom@tromey.com>
10547
10548 * gdbarch.h, gdbarch.c: Rebuild.
10549 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10550 * stap-probe.h:
10551 (struct stap_parse_info): Replace "parser_state" with
10552 "expr_builder".
10553 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10554 (parser_state): New class.
10555 * parse.c (expr_builder): Rename.
10556 (expr_builder::release): Rename.
10557 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10558 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10559 (write_exp_elt_longcst, write_exp_elt_floatcst)
10560 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10561 (write_exp_string_vector, write_exp_bitstring)
10562 (write_exp_msymbol, mark_struct_expression)
10563 (write_dollar_variable)
10564 (insert_type_address_space, increase_expout_size): Replace
10565 "parser_state" with "expr_builder".
10566 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10567 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10568 "parser_state" with "expr_builder".
10569
73923d7e
TT
105702019-04-04 Tom Tromey <tom@tromey.com>
10571
10572 * rust-exp.y: Replace "parse_language" with method call.
10573 * p-exp.y:
10574 (yylex): Replace "parse_language" with method call.
10575 * m2-exp.y:
10576 (yylex): Replace "parse_language" with method call.
10577 * go-exp.y (classify_name): Replace "parse_language" with method
10578 call.
10579 * f-exp.y (yylex): Replace "parse_language" with method call.
10580 * d-exp.y (lex_one_token): Replace "parse_language" with method
10581 call.
10582 * c-exp.y:
10583 (lex_one_token, classify_name, yylex): Replace "parse_language"
10584 with method call.
10585 * ada-exp.y (find_primitive_type, type_char)
10586 (type_system_address): Replace "parse_language" with method call.
10587
fa9f5be6
TT
105882019-04-04 Tom Tromey <tom@tromey.com>
10589
10590 * rust-exp.y: Replace "parse_gdbarch" with method call.
10591 * parse.c (write_dollar_variable, insert_type_address_space):
10592 Replace "parse_gdbarch" with method call.
10593 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10594 call.
10595 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10596 call.
10597 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10598 "parse_gdbarch" with method call.
10599 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10600 with method call.
10601 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10602 "parse_gdbarch" with method call.
10603 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10604 "parse_gdbarch" with method call.
10605 * c-exp.y (parse_type, parse_number, classify_name): Replace
10606 "parse_gdbarch" with method call.
10607 * ada-lex.l: Replace "parse_gdbarch" with method call.
10608 * ada-exp.y (parse_type, find_primitive_type, type_char)
10609 (type_system_address): Replace "parse_gdbarch" with method call.
10610
1201a264
TT
106112019-04-04 Tom Tromey <tom@tromey.com>
10612
10613 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10614 * stap-probe.c (stap_parse_argument): Update.
10615 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10616 initial_size parameter.
10617 * rust-exp.y (rust_lex_tests): Update.
10618 * parse.c (parser_state): Update.
10619 (parse_exp_in_context): Update.
10620 * parser-defs.h (struct parser_state) <parser_state>: Remove
10621 "initial_size" parameter.
10622
e3980ce2
TT
106232019-04-04 Tom Tromey <tom@tromey.com>
10624
10625 * parser-defs.h (increase_expout_size): Don't declare.
10626 * parse.c (increase_expout_size): Now static.
10627
e9f8e3f1
TS
106282019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10629
10630 * gnu-nat.c (gnu_nat_target::wait): Fix
10631 target_waitstatus_to_string call.
10632
d7df6549
AB
106332019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * eval.c (evaluate_subexp_standard): Handle internal functions
10636 during Fortran function call handling.
10637
8bdc1658
AB
106382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * NEWS: Mention new internal functions.
10641 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10642 (read_base_type): Use dwarf2_init_complex_target_type.
10643 * value.c (creal_internal_fn): New function.
10644 (cimag_internal_fn): New function.
10645 (_initialize_values): Register new internal functions.
10646
c29705b7
PW
106472019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10648
10649 * infrun.c (stop_all_threads): If debug_infrun, always
10650 trace the wait status after wait_one, using
10651 target_waitstatus_to_string and target_pid_to_str.
10652 (handle_inferior_event): Replace various trace of
10653 wait status kind by a single trace.
10654 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10655 wait status kind image by target_waitstatus_to_string.
10656 * target/waitstatus.c (target_waitstatus_to_string): Fix
10657 obsolete comment.
10658
05caa1d2
TT
106592019-04-01 Tom Tromey <tromey@adacore.com>
10660
10661 PR symtab/23331:
10662 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10663
9d1447e0
SDJ
106642019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10665 Pedro Alves <palves@redhat.com>
10666
10667 * top.c (quit_force): Call 'finalize_values'.
10668 * value.c (finalize_values): New function.
10669 * value.h (finalize_values): Declare.
10670
7734102d
EZ
106712019-03-30 Eli Zaretskii <eliz@gnu.org>
10672
10673 * NEWS: Announce $_gdb_major and $_gdb_minor.
10674
10675 * top.c (init_gdb_version_vars): New function.
10676 (gdb_init): Call init_gdb_version_vars.
10677
188e1fa9
TT
106782019-03-29 Tom Tromey <tromey@adacore.com>
10679
10680 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10681 help text. Remove dead code.
10682
2880242d
KS
106832019-03-29 Keith Seitz <keiths@redhat.com>
10684
10685 From Siddhesh Poyarekar:
10686 * f-lang.h (f77_get_upperbound): Return LONGEST.
10687 (f77_get_lowerbound): Likewise.
10688 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10689 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10690 print them.
10691 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10692 plongest to format print it.
10693 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10694 (f77_get_upperbound): Likewise.
10695 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10696 LOWER_BOUND to LONGEST.
10697 (f77_create_arrayprint_offset_tbl): Likewise.
10698
cc1defb1
KS
106992019-03-29 Keith Seitz <keiths@redhat.com>
10700
10701 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10702 %s/pulongest for TYPE_LENGTH instead of %d in format
10703 strings.
10704 * ada-typerint.c (ada_print_type): Likewise.
10705 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10706 * compile/compile-c-support.c (generate_register_struct): Likewise.
10707 * gdbtypes.c (recursive_dump_type): Likewise.
10708 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10709 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10710 instead of %d in format strings.
10711 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10712 to std::min to ULONGEST.
10713 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10714 instead of %d in format strings.
10715 * tracepoint.c (info_scope_command): Likewise.
10716 * typeprint.c (print_offset_data::update)
10717 (print_offset_data::finish): Likewise.
10718 * xtensa-tdep.c (xtensa_store_return_value)
10719 (xtensa_push_dummy_call): Likewise.
10720
e432ccf1
JT
107212019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10722
10723 * windows-nat.c (display_selector): Fixed format specifications
10724 for 64-bit Cygwin.
10725
65d2b333
PW
107262019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10727
10728 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10729
f489207e
SL
107302019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10731
10732 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10733 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10734 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10735 (nios2_linux_init_abi): Install it.
10736
bffa1015
AH
107372019-03-28 Alan Hayward <alan.hayward@arm.com>
10738
10739 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10740
fc96163a
AH
107412019-03-28 Alan Hayward <alan.hayward@arm.com>
10742
10743 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10744
20dc7e9b
PW
107452019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10746 Tom Tromey <tromey@adacore.com>
10747
10748 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10749
7f5331a8
JB
107502019-03-26 Joel Brobecker <brobecker@adacore.com>
10751
10752 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10753 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10754 method to compute the bounds of range types. Also print "[evaluated]"
10755 if the bounds' values come from a dynamic evaluation.
10756
18c77628
AB
107572019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10760 whitespace when pretty printing is on.
10761
53c973f2
AH
107622019-03-26 Alan Hayward <alan.hayward@arm.com>
10763
e79be6e5 10764 * ppc-linux-nat.c: Add include.
53c973f2 10765
d851aa71
AH
107662019-03-26 Alan Hayward <alan.hayward@arm.com>
10767
e79be6e5 10768 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10769
2fe7bab7
AH
107702019-03-26 Alan Hayward <alan.hayward@arm.com>
10771
e79be6e5 10772 * arm-linux-nat.c: Add include.
2fe7bab7 10773
068ef30e
SM
107742019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10775
10776 * source-cache.c (source_cache::get_source_lines): Re-read
10777 fullname after calling open_source_file.
10778
81a24d04
JB
107792019-03-25 John Baldwin <jhb@FreeBSD.org>
10780
10781 * NEWS: Mention TLS support for FreeBSD.
10782
79e7ae11
TT
107832019-03-25 Tom Tromey <tromey@adacore.com>
10784
10785 * minsyms.c (BUNCH_SIZE): Update comment.
10786 (~minimal_symbol_reader): Remove old comment.
10787 (compact_minimal_symbols): Update comment.
10788 (minimal_symbol_reader::install): Remove old comment. Update
10789 other comments.
10790
d45963c2
AH
107912019-03-25 Alan Hayward <alan.hayward@arm.com>
10792
10793 * s390-linux-nat.c: Add include.
10794
0f83012e
AH
107952019-03-25 Alan Hayward <alan.hayward@arm.com>
10796
10797 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10798 Call linux_get_hwcap.
10799 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10800 Likewise.
10801 (aarch64_linux_get_hwcap): Remove function.
10802 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10803 declaration.
10804 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10805 linux_get_hwcap.
10806 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10807 * linux-tdep.c (linux_get_hwcap): Add function.
10808 (linux_get_hwcap2): Likewise.
10809 * linux-tdep.h (linux_get_hwcap): Add declaration.
10810 (linux_get_hwcap2): Likewise.
10811 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10812 (ppc_linux_get_hwcap2): Likewise.
10813 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10814 linux_get_hwcap.
10815 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10816 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10817 (ppc_linux_nat_target::read_description): Likewise.
10818 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10819 * s390-linux-nat.c: Likewise.
10820 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10821
6640a367
TT
108222019-03-24 Tom Tromey <tom@tromey.com>
10823
10824 * ada-lang.c (standard_lookup): Simplify initialization.
10825 (ada_lookup_symbol_nonlocal): Simplify return.
10826 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10827 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10828 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10829 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10830 initialization.
10831 * solib.c (solib_global_lookup): Simplify.
10832 * symtab.c (null_block_symbol): Remove.
10833 (symbol_cache_lookup): Simplify returns.
10834 (lookup_language_this): Simplify returns.
10835 (lookup_symbol_aux): Simplify return.
10836 (lookup_local_symbol): Simplify returns.
10837 (lookup_global_symbol_from_objfile): Simplify return.
10838 (lookup_symbol_in_objfile_symtabs)
10839 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10840 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10841 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10842 * cp-namespace.c (cp_lookup_bare_symbol)
10843 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10844 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10845 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10846 (cp_lookup_symbol_via_imports): Simplify initialization.
10847 (find_symbol_in_baseclass): Likewise.
10848 * symtab.h (null_block_symbol): Remove.
10849 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10850 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10851 (d_lookup_symbol_module): Likewise.
10852 (find_symbol_in_baseclass): Simplify initialization.
10853
a930ebcd
TT
108542019-03-24 Tom Tromey <tom@tromey.com>
10855
10856 * expression.h: Don't include symtab.h.
10857 (struct block): Forward declare.
10858
582942f4
TT
108592019-03-24 Tom Tromey <tom@tromey.com>
10860
10861 * c-exp.y (typebase): Remove casts.
10862 * gdbtypes.c (lookup_unsigned_typename, )
10863 (lookup_signed_typename): Remove cast.
10864 * eval.c (parse_to_comma_and_eval): Remove cast.
10865 * parse.c (write_dollar_variable): Remove cast.
10866 * block.h (struct block) <superblock>: Now const.
10867 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10868 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10869 (map_block): Make "block" const.
10870 * symfile.h (struct quick_symbol_functions)
10871 <map_matching_symbols>: Constify block argument to "callback".
10872 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10873 const.
10874 (find_pc_sect_compunit_symtab): Make "b" const.
10875 (find_symbol_at_address): Likewise.
10876 (search_symbols): Likewise.
10877 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10878 (dw2_debug_names_lookup_symbol): Likewise.
10879 (dw2_map_matching_symbols): Update.
10880 * p-valprint.c (pascal_val_print): Remove "block".
10881 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10882 (aux_add_nonlocal_symbols): Make "block" const.
10883 (resolve_subexp): Remove cast.
10884 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10885 const.
10886 (iterate_over_file_blocks): Likewise.
10887 * f-exp.y (%union) <bval>: Remove.
10888 * coffread.c (patch_opaque_types): Make "b" const.
10889 * spu-tdep.c (spu_catch_start): Make "block" const.
10890 * c-valprint.c (print_unpacked_pointer): Remove "block".
10891 * symmisc.c (dump_symtab_1): Make "b" const.
10892 (block_depth): Make "block" const.
10893 * d-exp.y (%union) <bval>: Remove.
10894 * cp-support.h (cp_lookup_rtti_type): Update.
10895 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10896 * psymtab.c (psym_lookup_symbol): Make "block" const.
10897 (maintenance_check_psymtabs): Make "b" const.
10898 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10899 (enumerate_locals, enumerate_args): Update.
10900 * python/py-symtab.c (stpy_global_block): Make "block" const.
10901 (stpy_static_block): Likewise.
10902 * inline-frame.c (block_starting_point_at): Make "new_block"
10903 const.
10904 * block.c (find_block_in_blockvector): Make return type const.
10905 (blockvector_for_pc_sect): Make "b" const.
10906 (find_block_in_blockvector): Make "b" const.
10907
7ad417dd
TT
109082019-03-23 Tom Tromey <tom@tromey.com>
10909
10910 * varobj.c (varobj_create): Update.
10911 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10912 * printcmd.c (display_command, do_one_display): Don't reset
10913 innermost_block.
10914 * parser-defs.h (enum innermost_block_tracker_type): Move to
10915 expression.h.
10916 (innermost_block): Update comment.
10917 * parse.c (parse_exp_1): Add tracker_types parameter.
10918 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10919 tracker_types parameter. Reset innermost_block.
10920 (parse_exp_in_context): Remove.
10921 (parse_expression_for_completion): Update.
10922 * objfiles.c (~objfile): Don't reset expression_context_block or
10923 innermost_block.
10924 * expression.h (enum innermost_block_tracker_type): Move from
10925 parser-defs.h.
10926 (parse_exp_1): Add tracker_types parameter.
10927 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10928 reset innermost_block.
10929
b366c208
TT
109302019-03-23 Tom Tromey <tom@tromey.com>
10931
10932 * objfiles.h: Include bcache.h.
10933
9bb9b2f9
TT
109342019-03-23 Tom Tromey <tom@tromey.com>
10935
10936 * linespec.c (get_current_search_block): Use
10937 scoped_restore_current_language.
10938 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10939
59c28372
AH
109402019-03-22 Alan Hayward <alan.hayward@arm.com>
10941 Jiong Wang <jiong.wang@arm.com>
10942
10943 * aarch64-linux-tdep.c
10944 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10945 section.
10946 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10947
17e116a7
AH
109482019-03-22 Alan Hayward <alan.hayward@arm.com>
10949 Jiong Wang <jiong.wang@arm.com>
10950
10951 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10952 instructions.
10953 (aarch64_analyze_prologue_test): Add PACIASP test.
10954 (aarch64_prologue_prev_register): Unmask PC value.
10955
11e1b75f
AH
109562019-03-22 Alan Hayward <alan.hayward@arm.com>
10957 Jiong Wang <jiong.wang@arm.com>
10958
10959 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10960 (aarch64_dwarf2_prev_register): Unmask PC value.
10961 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10962 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10963 DW_CFA_AARCH64_negate_ra_state.
10964 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10965
34dcc7cf
AH
109662019-03-22 Alan Hayward <alan.hayward@arm.com>
10967 Jiong Wang <jiong.wang@arm.com>
10968
10969 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10970 registers.
10971 (aarch64_pseudo_register_name): Likewise.
10972 (aarch64_pseudo_register_type): Likewise.
10973 (aarch64_pseudo_register_reggroup_p): Likewise.
10974 (aarch64_gdbarch_init): Add pauth registers.
10975 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10976 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10977 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10978 (struct gdbarch_tdep): Add regnum for ra_state.
10979
1ef53e6b
AH
109802019-03-22 Alan Hayward <alan.hayward@arm.com>
10981 Jiong Wang <jiong.wang@arm.com>
10982
10983 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10984
76bed0fd
AH
109852019-03-22 Alan Hayward <alan.hayward@arm.com>
10986 Jiong Wang <jiong.wang@arm.com>
10987
10988 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10989 function.
10990 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10991 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10992 (aarch64_gdbarch_init): Add puth registers.
10993 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10994 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10995 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10996
ee4fbcfa
AH
109972019-03-22 Alan Hayward <alan.hayward@arm.com>
10998 Jiong Wang <jiong.wang@arm.com>
10999
11000 * aarch64-linux-nat.c
11001 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11002 * aarch64-linux-tdep.c
11003 (aarch64_linux_core_read_description): Likewise.
11004 (aarch64_linux_get_hwcap): New function.
11005 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11006 (aarch64_linux_get_hwcap): New declaration.
11007
6dc0ebde
AH
110082019-03-22 Alan Hayward <alan.hayward@arm.com>
11009 Jiong Wang <jiong.wang@arm.com>
11010
11011 * aarch64-linux-nat.c
11012 (aarch64_linux_nat_target::read_description): Add pauth param.
11013 * aarch64-linux-tdep.c
11014 (aarch64_linux_core_read_description): Likewise.
11015 * aarch64-tdep.c (struct target_desc): Add in pauth.
11016 (aarch64_read_description): Add pauth param.
11017 (aarch64_gdbarch_init): Likewise.
11018 * aarch64-tdep.h (aarch64_read_description): Likewise.
11019 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11020 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11021 * features/Makefile: Add new files.
11022 * features/aarch64-pauth.c: New file.
11023 * features/aarch64-pauth.xml: New file.
11024
595915c1
TT
110252019-03-20 Tom Tromey <tromey@adacore.com>
11026
11027 * infrun.c (handle_inferior_event): Rename from
11028 handle_inferior_event_1. Create a scoped_value_mark.
11029 (handle_inferior_event): Remove.
11030
4c7d57e7
TT
110312019-03-19 Tom Tromey <tromey@adacore.com>
11032
11033 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11034 * infrun.h (print_stop_event): Add "displays" parameter.
11035 * infrun.c (print_stop_event): Add "displays" parameter.
11036
cb246234
PA
110372019-03-19 Pedro Alves <palves@redhat.com>
11038
11039 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11040 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11041 to -1. Fix TABs vs spaces.
11042 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11043 * tui/tui-out.h (tui_ui_out) Add intro comments.
11044 <m_line, m_start_of_line>: In-class initialize, and add describing
11045 comment.
11046
3a0e45b2
AH
110472019-03-18 Alan Hayward <alan.hayward@arm.com>
11048
11049 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11050 variable names.
11051 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11052
5371b850
PA
110532019-03-18 Pedro Alves <palves@redhat.com>
11054 Eli Zaretskii <eliz@gnu.org>
11055
11056 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11057 m_line and m_start_of_line.
11058
b17c4cd0
EZ
110592019-03-18 Eli Zaretskii <eliz@gnu.org>
11060
11061 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11062 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11063 it returns a newline. This fixes a regression in TU mode, whereby
11064 the next line is output on the same screen line as the user input.
11065
4bd56d18
TT
110662019-03-18 Tom Tromey <tromey@adacore.com>
11067
11068 * minsyms.c (minimal_symbol_reader::install): Remove call to
11069 obstack_blank.
11070
55c10aca
PA
110712019-03-18 Pedro Alves <palves@redhat.com>
11072
11073 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11074 New globals.
11075 (apply_style): New, factored out from ...
11076 (apply_ansi_escape): ... this. Handle reverse video mode.
11077 (tui_set_reverse_mode): New function.
11078 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11079 * tui/tui-winsource.c (tui_show_source_line): Use
11080 tui_set_reverse_mode instead of setting A_STANDOUT.
11081 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11082 New setter methods.
11083
647bb750
HD
110842019-03-18 Hannes Domani <ssbssa@yahoo.de>
11085
11086 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11087 Handle tabs.
11088
bff8c71f
TT
110892019-03-18 Tom Tromey <tromey@adacore.com>
11090
11091 * ada-lang.c (empty_array): Add "high" parameter.
11092 (ada_evaluate_subexp): Update.
11093
58785d98
ST
110942019-03-17 Sergei Trofimovich <siarheit@google.com>
11095
11096 * unittests/string_view-selftests.c: Define
11097 _initialize_string_view_selftests unconditionally.
11098
d4cbef22
ВМ
110992019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11100
11101 PR gdb/24350
11102 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11103
fce4c071
ВМ
111042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11105
11106 PR gdb/24351
11107 * windows-nat.c (display_selector): Fix format specifiers.
11108
f7f0a123
EZ
111092019-03-17 Eli Zaretskii <eliz@gnu.org>
11110
11111 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11112 tui_refill_source_window instead of tui_refresh_win, to update the
11113 current execution line. This fixes redisplay of the current line
11114 when stepping through the code with "next" or "step".
11115
ab42892f
EZ
111162019-03-16 Eli Zaretskii <eliz@gnu.org>
11117
11118 * source-cache.c (source_cache::get_source_lines): Call
11119 find_source_lines to initialize s->nlines. This fixes vertical
11120 scrolling of TUI source window when the DOWN arrow is pressed.
11121
8d8c087f
PW
111222019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11123
11124 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11125 linux-thread-db.c (_initialize_thread_db): Likewise.
11126
798e1c30
EZ
111272019-03-16 Eli Zaretskii <eliz@gnu.org>
11128
11129 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11130 wclrtoeol in tui_show_source_line". This reverts changes made in
11131 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11132
eefba3da
TT
111332019-03-15 Tom Tromey <tom@tromey.com>
11134
11135 * symtab.h (struct minimal_symbol): Derive from
11136 general_symbol_info.
11137 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11138 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11139 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11140 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11141 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11142 (MSYMBOL_SEARCH_NAME): Update.
11143 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11144 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11145 * minsyms.c (minimal_symbol_reader::record_full): Update.
11146
0de2420c
TT
111472019-03-15 Tom Tromey <tom@tromey.com>
11148
11149 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11150
042d75e4
TT
111512019-03-15 Tom Tromey <tom@tromey.com>
11152
11153 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11154 unique_xmalloc_ptr.
11155 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11156 Update.
11157 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11158 (build_minimal_symbol_hash_tables)
11159 (minimal_symbol_reader::install): Update.
11160
db92718b
TT
111612019-03-15 Tom Tromey <tom@tromey.com>
11162
11163 * symtab.c (create_demangled_names_hash): Update.
11164 (symbol_set_names): Update.
11165 * objfiles.h (struct objfile_per_bfd_storage)
11166 <demangled_names_hash>: Now an htab_up.
11167 * objfiles.c (objfile_per_bfd_storage): Simplify.
11168
d6797f46
TT
111692019-03-15 Tom Tromey <tom@tromey.com>
11170
11171 * objfiles.h (struct objfile_per_bfd_storage): Declare
11172 destructor.
11173 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11174 New.
11175 (get_objfile_bfd_data): Use new. Don't initialize
11176 language_of_main.
11177 (free_objfile_per_bfd_storage): Remove.
11178 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11179
741d7538
TT
111802019-03-15 Tom Tromey <tom@tromey.com>
11181
11182 * symfile.c (reread_symbols): Update.
11183 * objfiles.c (objfile::objfile): Update.
11184 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11185 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11186 comment.
11187 (minimal_symbol_reader::install): Update.
11188 (terminate_minimal_symbol_table): Remove.
11189 * jit.c (jit_object_close_impl): Update.
11190
788c80d1
TT
111912019-03-15 Tom Tromey <tom@tromey.com>
11192
11193 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11194 initializations.
11195
1b7a07cb
TT
111962019-03-15 Tom Tromey <tom@tromey.com>
11197
11198 * objfiles.h (struct objfile_per_bfd_storage)
11199 <demangled_hash_languages>: Now a bitset.
11200 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11201 (lookup_minimal_symbol): Update.
11202
3db066bc
TT
112032019-03-15 Tom Tromey <tom@tromey.com>
11204
11205 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11206 Don't return the symbol.
11207 * coffread.c (record_minimal_symbol): Use record_full.
11208
3fff2c37
EZ
112092019-03-14 Eli Zaretskii <eliz@gnu.org>
11210
11211 The MS-Windows port of ncurses fails to switch to a color pair if
11212 one or both of the colors are the implicit default colors. This
11213 change records the default colors when TUI is initialized, and
11214 then specifies them explicitly when a color pair uses the default
11215 colors. This allows color styling in TUI mode on MS-Windows.
11216
11217 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11218 ncurses_norm_attr.
11219 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11220 colors in ncurses_norm_attr.
11221 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11222 "none", replace it with the default color recorded in
11223 ncurses_norm_attr.
11224
3b336828
TT
112252019-03-14 Tom Tromey <tromey@adacore.com>
11226
11227 * source-cache.h (class source_cache) <get_source_lines>: Return
11228 std::string.
11229 * source-cache.c (source_cache::extract_lines): Handle case where
11230 first_pos==npos. Return std::string.
11231 (source_cache::get_source_lines): Update.
11232
d085f989
TT
112332019-03-14 Tom Tromey <tromey@adacore.com>
11234
11235 * NEWS: Add item for "style sources" commands.
11236 * source-cache.c (source_cache::get_source_lines): Check
11237 source_styling.
11238 * cli/cli-style.c (source_styling): New global.
11239 (_initialize_cli_style): Add "style sources" commands.
11240 (show_style_sources): New function.
11241 * cli/cli-style.h (source_styling): Declare.
11242
6f11e682
TT
112432019-03-14 Pedro Alves <palves@redhat.com>
11244 Tom Tromey <tromey@adacore.com>
11245
11246 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11247 * tui/tui-winsource.c (tui_refill_source_window): New function,
11248 from...
11249 (tui_horizontal_source_scroll): ... here. Move some logic.
11250 * cli/cli-style.c (set_style_enabled): Notify new observable.
11251 * tui/tui-hooks.c (tui_redisplay_source): New function.
11252 (tui_attach_detach_observers): Attach or detach
11253 tui_redisplay_source.
11254 * observable.h (source_styling_changed): New observable.
11255 * observable.c: Define source_styling_changed observable.
11256
a068643d
TT
112572019-03-13 Tom Tromey <tromey@adacore.com>
11258
11259 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11260 (i386_gnu_nat_target::store_registers): Update.
11261 * target-debug.h (target_debug_print_std_string): New macro.
11262 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11263 * windows-tdep.c (display_one_tib): Update.
11264 * tui/tui-stack.c (tui_make_status_line): Update.
11265 * top.c (print_inferior_quit_action): Update.
11266 * thread.c (thr_try_catch_cmd): Update.
11267 (add_thread_with_info): Update.
11268 (thread_target_id_str): Update.
11269 (thr_try_catch_cmd): Update.
11270 (thread_command): Update.
11271 (thread_find_command): Update.
11272 * record-btrace.c (record_btrace_target::info_record)
11273 (record_btrace_resume_thread, record_btrace_target::resume)
11274 (record_btrace_cancel_resume, record_btrace_step_thread)
11275 (record_btrace_target::wait, record_btrace_target::wait)
11276 (record_btrace_target::wait, record_btrace_target::stop): Update.
11277 * progspace.c (print_program_space): Update.
11278 * process-stratum-target.c
11279 (process_stratum_target::thread_address_space): Update.
11280 * linux-fork.c (linux_fork_mourn_inferior)
11281 (detach_checkpoint_command, info_checkpoints_command)
11282 (linux_fork_context): Update.
11283 (linux_fork_detach): Update.
11284 (class scoped_switch_fork_info): Update.
11285 (delete_checkpoint_command): Update.
11286 * infrun.c (follow_fork_inferior): Update.
11287 (follow_fork_inferior): Update.
11288 (proceed_after_vfork_done): Update.
11289 (handle_vfork_child_exec_or_exit): Update.
11290 (follow_exec): Update.
11291 (displaced_step_prepare_throw): Update.
11292 (displaced_step_restore): Update.
11293 (start_step_over): Update.
11294 (resume_1): Update.
11295 (clear_proceed_status_thread): Update.
11296 (proceed): Update.
11297 (print_target_wait_results): Update.
11298 (do_target_wait): Update.
11299 (context_switch): Update.
11300 (stop_all_threads): Update.
11301 (restart_threads): Update.
11302 (finish_step_over): Update.
11303 (handle_signal_stop): Update.
11304 (switch_back_to_stepped_thread): Update.
11305 (keep_going_pass_signal): Update.
11306 (print_exited_reason): Update.
11307 (normal_stop): Update.
11308 * inferior.c (inferior_pid_to_str): Change return type.
11309 (print_selected_inferior): Update.
11310 (add_inferior): Update.
11311 (detach_inferior): Update.
11312 * dummy-frame.c (fprint_dummy_frames): Update.
11313 * dcache.c (dcache_info_1): Update.
11314 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11315 (btrace_fetch, btrace_clear): Update.
11316 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11317 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11318 type.
11319 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11320 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11321 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11322 * gdbarch.c, gdbarch.h: Rebuild.
11323 * gdbarch.sh (core_pid_to_str): Change return type.
11324 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11325 return type.
11326 (windows_nat_target::pid_to_str): Change return type.
11327 (windows_delete_thread): Update.
11328 (windows_nat_target::attach): Update.
11329 (windows_nat_target::files_info): Update.
11330 * target-delegates.c: Rebuild.
11331 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11332 return type.
11333 (sol_thread_target::pid_to_str): Change return type.
11334 * remote.c (class remote_target) <pid_to_str>: Change return
11335 type.
11336 (remote_target::pid_to_str): Change return type.
11337 (extended_remote_target::attach, remote_target::remote_stop_ns)
11338 (remote_target::remote_notif_remove_queued_reply)
11339 (remote_target::push_stop_reply, remote_target::disable_btrace):
11340 Update.
11341 (extended_remote_target::attach): Update.
11342 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11343 type.
11344 (gdbsim_target::pid_to_str): Change return type.
11345 * ravenscar-thread.c (struct ravenscar_thread_target)
11346 <pid_to_str>: Change return type.
11347 (ravenscar_thread_target::pid_to_str): Change return type.
11348 * procfs.c (class procfs_target) <pid_to_str>: Change return
11349 type.
11350 (procfs_target::pid_to_str): Change return type.
11351 (procfs_target::attach): Update.
11352 (procfs_target::detach): Update.
11353 (procfs_target::fetch_registers): Update.
11354 (procfs_target::store_registers): Update.
11355 (procfs_target::wait): Update.
11356 (procfs_target::files_info): Update.
11357 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11358 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11359 return type.
11360 (nto_procfs_target::pid_to_str): Change return type.
11361 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11362 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11363 return type.
11364 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11365 (exit_lwp): Update.
11366 (attach_proc_task_lwp_callback, get_detach_signal)
11367 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11368 (linux_nat_target::resume, wait_lwp, stop_callback)
11369 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11370 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11371 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11372 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11373 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11374 type.
11375 (inf_ptrace_target::attach): Update.
11376 (inf_ptrace_target::files_info): Update.
11377 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11378 type.
11379 (go32_nat_target::pid_to_str): Change return type.
11380 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11381 (gnu_nat_target::wait): Update.
11382 (gnu_nat_target::wait): Update.
11383 (gnu_nat_target::resume): Update.
11384 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11385 (fbsd_nat_target::wait): Update.
11386 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11387 type.
11388 (darwin_nat_target::attach): Update.
11389 * corelow.c (class core_target) <pid_to_str>: Change return type.
11390 (core_target::pid_to_str): Change return type.
11391 * target.c (normal_pid_to_str): Change return type.
11392 (default_pid_to_str): Likewise.
11393 (target_pid_to_str): Change return type.
11394 (target_translate_tls_address): Update.
11395 (target_announce_detach): Update.
11396 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11397 return type.
11398 (bsd_uthread_target::pid_to_str): Change return type.
11399 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11400 type.
11401 (bsd_kvm_target::pid_to_str): Change return type.
11402 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11403 return type.
11404 (aix_thread_target::pid_to_str): Change return type.
11405 * target.h (struct target_ops) <pid_to_str>: Change return type.
11406 (target_pid_to_str, normal_pid_to_str): Likewise.
11407 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11408 type.
11409 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11410 type.
11411 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11412 return type.
11413 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11414 type.
11415 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11416 type.
11417 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11418 return type.
11419
b4be1b06
SM
114202019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11421
11422 * NEWS: Mention that the new default MI version is 3. Mention
11423 changes to the output of commands and events that deal with
11424 multi-location breakpoints.
11425 * breakpoint.c: Include "mi/mi-out.h".
11426 (print_one_breakpoint): Change output syntax if using MI version
11427 >= 3.
11428 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11429 New.
11430 (mi_multi_location_breakpoint_output_fixed): New.
11431 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11432 (mi_cmd_fix_multi_location_breakpoint_output): New.
11433 (mi_multi_location_breakpoint_output_fixed): New.
11434 * mi/mi-cmds.c (mi_cmds): Register command
11435 -fix-multi-location-breakpoint-output.
11436 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11437 interpreter "mi".
11438
8e5e5494
SM
114392019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11440
11441 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11442 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11443 instantiate mi_ui_out based on interpreter name.
11444 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11445 * mi/mi-main.c (mi_load_progress): Likewise.
11446
197df35e
JB
114472019-03-12 John Baldwin <jhb@FreeBSD.org>
11448
11449 * NEWS: Combine separate "New targets" sections for 8.3.
11450
8399425f
JB
114512019-03-12 John Baldwin <jhb@FreeBSD.org>
11452
11453 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11454 (ppcfbsd_init_abi): Install gdbarch
11455 "fetch_tls_load_module_address" and "get_thread_local_address"
11456 methods.
11457
b0f87ed0
JB
114582019-03-12 John Baldwin <jhb@FreeBSD.org>
11459
11460 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11461 (riscv_fbsd_init_abi): Install gdbarch
11462 "fetch_tls_load_module_address" and "get_thread_local_address"
11463 methods.
11464
ce25aa57
JB
114652019-03-12 John Baldwin <jhb@FreeBSD.org>
11466
11467 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11468 (i386fbsd_init_abi): Install gdbarch
11469 "fetch_tls_load_module_address" and "get_thread_local_address"
11470 methods.
11471
f5424cfa
JB
114722019-03-12 John Baldwin <jhb@FreeBSD.org>
11473
11474 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11475 (amd64fbsd_init_abi): Install gdbarch
11476 "fetch_tls_load_module_address" and "get_thread_local_address"
11477 methods.
11478
945f3901
JB
114792019-03-12 John Baldwin <jhb@FreeBSD.org>
11480
11481 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11482 (struct fbsd_pspace_data): New type.
11483 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11484 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11485 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11486 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11487 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11488
ef0bd204
JB
114892019-03-12 John Baldwin <jhb@FreeBSD.org>
11490
11491 * gdbtypes.c (lookup_struct_elt): New function.
11492 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11493 * gdbtypes.h (struct struct_elt): New type.
11494 (lookup_struct_elt): New prototype.
11495
36c53a02
JB
114962019-03-12 John Baldwin <jhb@FreeBSD.org>
11497
11498 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11499 remove disabled code block.
11500
6e056c81
JB
115012019-03-12 John Baldwin <jhb@FreeBSD.org>
11502
11503 * gdbarch.sh (get_thread_local_address): New method.
11504 * gdbarch.h, gdbarch.c: Regenerate.
11505 * target.c (target_translate_tls_address): Use
11506 gdbarch_get_thread_local_address if present instead of
11507 target::get_thread_local_address.
11508
cd250a18
JB
115092019-03-12 John Baldwin <jhb@FreeBSD.org>
11510
11511 * target.h (target::get_thread_local_address): Update comment.
11512
df22c1e5
JB
115132019-03-12 John Baldwin <jhb@FreeBSD.org>
11514
11515 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11516 objfile->separate_debug_objfile_backlink if not NULL.
11517
dd6876c9
JB
115182019-03-12 John Baldwin <jhb@FreeBSD.org>
11519
11520 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11521 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11522 (amd64bsd_store_inferior_registers): Likewise.
11523 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11524 Enable segment base registers.
11525 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11526 PT_GETFSBASE and PT_GETGSBASE.
11527 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11528 PT_SETGSBASE.
11529 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11530 segment base registers.
11531 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11532
1163a4b7
JB
115332019-03-12 John Baldwin <jhb@FreeBSD.org>
11534
11535 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11536 Update calls to i386_target_description to add 'segments'
11537 parameter.
11538 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11539 add segment base registers.
11540 * arch/i386.c (i386_create_target_description): Add 'segments'
11541 parameter to enable segment base registers.
11542 * arch/i386.h (i386_create_target_description): Likewise.
11543 * features/i386/32bit-segments.xml: New file.
11544 * features/i386/32bit-segments.c: Generate.
11545 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11546 call to i386_target_description to add 'segments' parameter.
11547 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11548 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11549 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11550 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11551 if feature is present.
11552 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11553 Add 'segments' parameter to call to i386_target_description.
11554 (i386_target_description): Add 'segments' parameter to enable
11555 segment base registers.
11556 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11557 to call to i386_target_description.
11558 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11559 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11560 Define I386_NUM_REGS.
11561 (i386_target_description): Add 'segments' parameter to enable
11562 segment base registers.
11563
3a350822
EZ
115642019-03-12 Eli Zaretskii <eliz@gnu.org>
11565
11566 PR/24325
11567 * source-cache.c: #undef open and close, to avoid unresolved
11568 externals during linking.
11569
ffdd69cf
TT
115702019-03-12 Tom Tromey <tromey@adacore.com>
11571
11572 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11573 const. Add initializers.
11574 (_initialize_remote): Don't initialize ptid globals.
11575
ec148c57
PA
115762019-03-12 Pedro Alves <palves@redhat.com>
11577
11578 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11579
32764270
PA
115802019-03-12 Pedro Alves <palves@redhat.com>
11581
11582 * cp-name-parser.y (main): Remove unused 'len' variable.
11583
17547186
TT
115842019-03-12 Tom Tromey <tromey@adacore.com>
11585
11586 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11587 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11588
d3a70e03
TT
115892019-03-12 Tom Tromey <tromey@adacore.com>
11590
11591 * linux-nat.c (iterate_over_lwps): Update.
11592 (stop_callback): Remove parameter.
11593 (stop_wait_callback, detach_callback, resume_set_callback)
11594 (select_singlestep_lwp_callback, set_ignore_sigint)
11595 (status_callback, resumed_callback, resume_clear_callback)
11596 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11597 data parameter.
11598 (linux_nat_target::detach, linux_nat_target::resume)
11599 (linux_stop_and_wait_all_lwps, select_event_lwp)
11600 (linux_nat_filter_event, linux_nat_wait_1)
11601 (linux_nat_target::kill, linux_nat_target::stop)
11602 (linux_nat_target::stop): Update.
11603 (linux_nat_resume_callback): Change type.
11604 (resume_stopped_resumed_lwps, count_events_callback)
11605 (select_event_lwp_callback): Likewise.
11606 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11607 * arm-linux-nat.c (struct update_registers_data): Remove.
11608 (update_registers_callback): Change type.
11609 (arm_linux_insert_hw_breakpoint1): Update.
11610 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11611 parameter.
11612 (x86_linux_dr_set_addr): Update.
11613 (x86_linux_dr_set_control): Update.
11614 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11615 (iterate_over_lwps): Use gdb::function_view.
11616 * nat/aarch64-linux-hw-point.c (struct
11617 aarch64_dr_update_callback_param): Remove.
11618 (debug_reg_change_callback): Change type.
11619 (aarch64_notify_debug_reg_change): Update.
11620 * s390-linux-nat.c (s390_refresh_per_info): Update.
11621
82cb27ff
TT
116222019-03-11 Tom Tromey <tromey@adacore.com>
11623
11624 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11625 redundant assignment to "this_cu".
11626
568c0683
SM
116272019-03-08 Simon Marchi <simon.marchi@efficios.com>
11628
11629 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11630
f09ce22d
SM
116312019-03-08 Simon Marchi <simon.marchi@efficios.com>
11632
11633 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11634 from...
11635 (rank_one_type): ... this.
11636
595f96a9
SM
116372019-03-08 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11640 from...
11641 (rank_one_type): ... this.
11642
2598a94b
SM
116432019-03-08 Simon Marchi <simon.marchi@efficios.com>
11644
11645 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11646 from...
11647 (rank_one_type): ... this.
11648
7f17b20d
SM
116492019-03-08 Simon Marchi <simon.marchi@efficios.com>
11650
11651 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11652 from...
11653 (rank_one_type): ... this.
11654
2c509035
SM
116552019-03-08 Simon Marchi <simon.marchi@efficios.com>
11656
11657 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11658 from...
11659 (rank_one_type): ... this.
11660
0dd322dc
SM
116612019-03-08 Simon Marchi <simon.marchi@efficios.com>
11662
11663 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11664 from...
11665 (rank_one_type): ... this.
11666
41ea4728
SM
116672019-03-08 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11670 from...
11671 (rank_one_type): ... this.
11672
793cd1d2
SM
116732019-03-08 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11676 from...
11677 (rank_one_type): ... this.
11678
34910087
SM
116792019-03-08 Simon Marchi <simon.marchi@efficios.com>
11680
11681 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11682 from...
11683 (rank_one_type): ... this.
11684
f1f832d6
SM
116852019-03-08 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11688 from...
11689 (rank_one_type): ... this.
11690
b9f4512f
SM
116912019-03-08 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11694 from...
11695 (rank_one_type): ... this.
11696
9293fc63
SM
116972019-03-08 Simon Marchi <simon.marchi@efficios.com>
11698
11699 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11700 from...
11701 (rank_one_type): ... this.
11702
e3abbe7e
PW
117032019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11704
11705 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11706 inferior-events' shows the example events.
11707
e4adb939
EZ
117082019-03-08 Eli Zaretskii <eliz@gnu.org>
11709
11710 Support styling on native MS-Windows console
11711
11712 PR/24315
11713 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11714 on MS-Windows if $TERM is not defined.
11715
11716 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11717
11718 * posix-hdep.c (gdb_console_fputs):
11719 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11720 functions.
11721 * ui-file.h (gdb_console_fputs): Add prototype.
11722
11723 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11724 back to fputs only if the former returns zero.
11725
25629dfd
TT
117262019-03-07 Tom Tromey <tom@tromey.com>
11727
11728 * symmisc.c (print_symbol_bcache_statistics): Update.
11729 (print_objfile_statistics): Update.
11730 * symfile.c (allocate_symtab): Update.
11731 * stabsread.c: Don't include bcache.h.
11732 * psymtab.h (struct psymbol_bcache): Don't declare.
11733 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11734 (psymbol_bcache_init, psymbol_bcache_free)
11735 (psymbol_bcache_get_bcache): Don't declare.
11736 * psymtab.c (struct psymbol_bcache): Remove.
11737 (psymtab_storage::psymtab_storage): Update.
11738 (psymtab_storage::~psymtab_storage): Update.
11739 (psymbol_bcache_init, psymbol_bcache_free)
11740 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11741 (add_psymbol_to_bcache): Update.
11742 (allocate_psymtab): Update.
11743 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11744 macro_cache>: No longer pointers.
11745 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11746 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11747 * macrotab.c (macro_bcache): Update.
11748 * macroexp.c: Don't include bcache.h.
11749 * gdbtypes.c (check_types_worklist): Update.
11750 (types_deeply_equal): Remove TRY/CATCH. Update.
11751 * elfread.c (elf_symtab_read): Update.
11752 * dwarf2read.c: Don't include bcache.h.
11753 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11754 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11755 (print_bcache_statistics, bcache_memory_used): Don't declare.
11756 (struct bcache): Move from bcache.c. Add constructor, destructor,
11757 methods. Rename all data members.
11758 * bcache.c (struct bcache): Move to bcache.h.
11759 (bcache::expand_hash_table): Rename from expand_hash_table.
11760 (bcache): Remove.
11761 (bcache::insert): Rename from bcache_full.
11762 (bcache::compare): Rename from bcache_compare.
11763 (bcache_xmalloc): Remove.
11764 (bcache::~bcache): Rename from bcache_xfree.
11765 (bcache::print_statistics): Rename from print_bcache_statistics.
11766 (bcache::memory_used): Rename from bcache_memory_used.
11767
fe726667
PA
117682019-03-07 Pedro Alves <palves@redhat.com>
11769
11770 * infrun.c (normal_stop): Also check for
11771 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11772
7584bb30
AB
117732019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11774
11775 * f-lang.c (value_from_host_double): Moved to...
11776 * value.c (value_from_host_double): ...here.
11777 * value.h (value_from_host_double): Declare.
11778 * guile/scm-math.c (vlscm_convert_typed_number): Use
11779 value_from_host_double.
11780 (vlscm_convert_number): Likewise.
11781 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11782 * python/py-value.c (convert_value_from_python): Likewise.
11783
a7b1986e
TT
117842019-03-06 Tom Tromey <tom@tromey.com>
11785
11786 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11787
0ccf4211
TT
117882019-03-06 Tom Tromey <tom@tromey.com>
11789
11790 * utils.h (free_current_contents): Don't declare.
11791 * utils.c (free_current_contents): Remove.
11792
fe7b42e5
TT
117932019-03-06 Tom Tromey <tom@tromey.com>
11794
11795 * top.c (quit_force): Update.
11796 * main.c (captured_command_loop): Update.
11797 * common/new-op.c (operator new): Update.
11798 * common/common-exceptions.c (struct catcher)
11799 <save_cleanup_chain>: Remove member.
11800 (exceptions_state_mc_init): Update.
11801 (exception_try_scope_entry): Return nullptr.
11802 (exception_try_scope_exit, exception_rethrow)
11803 (throw_exception_sjlj, throw_exception_cxx): Update.
11804 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11805 (all_cleanups, do_cleanups, discard_cleanups)
11806 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11807 (restore_cleanups, restore_final_cleanups): Don't declare.
11808 (do_final_cleanups): Remove parameter.
11809 * common/cleanups.c (cleanup_chain, make_cleanup)
11810 (make_cleanup_dtor, all_cleanups, do_cleanups)
11811 (discard_my_cleanups, discard_cleanups)
11812 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11813 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11814 (null_cleanup): Remove.
11815 (do_final_cleanups): Remove parameter.
11816
c6321f19
TT
118172019-03-06 Tom Tromey <tom@tromey.com>
11818
11819 * remote.c (remote_target::remote_parse_stop_reply): Use
11820 unique_xmalloc_ptr.
11821
61b30099
TT
118222019-03-06 Tom Tromey <tom@tromey.com>
11823
11824 * stabsread.c (struct stabs_field_info): Rename from field_info.
11825 <list, fnlist>: Add initializers.
11826 <obstack>: New member.
11827 (read_member_functions, read_struct_fields, read_baseclasses):
11828 Allocate on obstack. Don't use cleanups.
11829 (read_one_struct_field, read_member_functions, read_struct_fields)
11830 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11831 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11832 (read_struct_type): Update.
11833
6cceac94
TT
118342019-03-06 Tom Tromey <tom@tromey.com>
11835
11836 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11837 * common/filestuff.h (make_cleanup_close): Don't declare.
11838 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11839 Remove.
11840
72412762
TT
118412019-03-06 Tom Tromey <tom@tromey.com>
11842
11843 * solib-aix.c: Use make_scope_exit.
11844
2b6ff1c0
TT
118452019-03-06 Tom Tromey <tom@tromey.com>
11846
11847 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11848 Use make_scope_exit.
11849
d01c5877
TT
118502019-03-06 Tom Tromey <tom@tromey.com>
11851
11852 * solib-svr4.c (disable_probes_interface): Remove parameter.
11853 (svr4_handle_solib_event): Use make_scope_exit.
11854
32603266
TT
118552019-03-06 Tom Tromey <tom@tromey.com>
11856
11857 * remote.c (struct stop_reply_deleter): Remove.
11858 (stop_reply_up): Update.
11859 (struct stop_reply): Derive from notif_event. Don't typedef.
11860 <regcache>: Now a std::vector.
11861 (stop_reply_xfree): Remove.
11862 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11863 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11864 (remote_target::discard_pending_stop_replies): Use delete.
11865 (remote_target::remote_parse_stop_reply): Update.
11866 (remote_target::process_stop_reply): Update.
11867 * remote-notif.h (struct notif_event): Add virtual destructor.
11868 Remove "dtr" member.
11869 (struct notif_client) <alloc_event>: Return a unique_ptr.
11870 (notif_event_xfree): Don't declare.
11871 (notif_event_up): New typedef.
11872 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11873 (notif_event_xfree, do_notif_event_xfree): Remove.
11874 (remote_notif_state_xfree): Update.
11875
9799571e
TT
118762019-03-06 Tom Tromey <tom@tromey.com>
11877
11878 * infrun.c (displaced_step_clear_cleanup): Now a
11879 forward_scope_exit type.
11880 (displaced_step_prepare_throw): Update.
11881 (displaced_step_fixup): Update.
11882
09e3c4ca
TT
118832019-03-06 Tom Tromey <tom@tromey.com>
11884
11885 * inferior.h (class inferior): Update comment.
11886 * gdbthread.h (class thread_info): Update comment.
11887
e2a03548
TT
118882019-03-06 Joel Brobecker <brobecker@adacore.com>
11889 Tom Tromey <tom@tromey.com>
11890
11891 * stabsread.h (struct stab_section_list): Remove.
11892 (coffstab_build_psymtabs): Update.
11893 * dbxread.c (symbuf_sections): Now a std::vector.
11894 (sect_idx): New global.
11895 (fill_symbuf): Update.
11896 (coffstab_build_psymtabs): Change type of stabsects parameter.
11897 Update.
11898 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11899 std::vector.
11900 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11901 (coff_locate_sections): Update.
11902 (coff_symfile_read): Remove cleanups. Update.
11903 (init_stringtab): Add storage parameter.
11904 (free_stringtab, free_stringtab_cleanup): Remove.
11905 (init_lineno): Add storage parameter.
11906 (free_linetab, free_linetab_cleanup): Remove.
11907
b7e60d85
PA
119082019-03-06 Pedro Alves <palves@redhat.com>
11909
11910 * linux-fork.c (fork_info::clobber_regs): Delete.
11911 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11912 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11913 comment. Adjust.
11914 (scoped_switch_fork_info::scoped_switch_fork_info)
11915 (checkpoint_command, linux_fork_context): Adjust
11916 fork_save_infrun_state calls.
11917
e52c971f
PA
119182019-03-06 Pedro Alves <palves@redhat.com>
11919
11920 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11921 (inf_has_multiple_threads): Return 'bool' and rewrite using
11922 inferior_info::threads().
11923
06974e6c
PA
119242019-03-06 Pedro Alves <palves@redhat.com>
11925
11926 * linux-fork.c: Include <list>.
11927 (fork_list): Now a std::list instance.
11928 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11929 (forks_exist_p, find_last_fork): Adjust.
11930 (new_fork): Delete.
11931 (one_fork_p): New.
11932 (add_fork): Adjust.
11933 (free_fork): Delete, folded into fork_info::~fork_info().
11934 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11935 Adjust.
11936 (init_fork_list): Delete.
11937 (linux_fork_killall, linux_fork_mourn_inferior)
11938 (linux_fork_detach, info_checkpoints_command): Adjust.
11939 (_initialize_linux_fork): No longer call init_fork_list.
11940
72f31aea
PA
119412019-03-06 Pedro Alves <palves@redhat.com>
11942
11943 * linux-fork.c (new_fork): New, split out of ...
11944 (add_fork): ... this. Return void. Move "first fork" special
11945 case from here, to ...
11946 (checkpoint_command): ... here.
11947 * linux-linux.h (add_fork): Return void.
11948
efbecbc1
AB
119492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11950
11951 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11952
0841c79a
AB
119532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11954 Chris January <chris.january@arm.com>
11955 David Lecomber <david.lecomber@arm.com>
11956
11957 * f-exp.y: New token, UNOP_INTRINSIC.
11958 (exp): New pattern using UNOP_INTRINSIC token.
11959 (f77_keywords): Add 'abs' keyword.
11960 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11961 (value_from_host_double): New function.
11962 (evaluate_subexp_f): Support UNOP_ABS.
11963
4a270568
AB
119642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11967 types.
11968
067630bd
AB
119692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11970
11971 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11972 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11973 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11974
3be47f7a
AB
119752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11976
11977 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11978
4d00f5d8
AB
119792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11980 Chris January <chris.january@arm.com>
11981
11982 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11983 * f-exp.y: Define 'KIND' token.
11984 (exp): New pattern for KIND expressions.
11985 (ptype): Handle types with a kind extension.
11986 (direct_abs_decl): Extend to spot kind extensions.
11987 (f77_keywords): Add 'kind' to the list.
11988 (push_kind_type): New function.
11989 (convert_to_kind_type): New function.
11990 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11991 * parse.c (operator_length_standard): Likewise.
11992 * parser-defs.h (enum type_pieces): Add tp_kind.
11993 * std-operator.def: Add UNOP_KIND.
11994
e454224f
AB
119952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * f-exp.y (f_parse): Set yydebug.
11998
9dad4a58
AB
119992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * f-lang.c (evaluate_subexp_f): New function.
12002 (exp_descriptor_f): New global.
12003 (f_language_defn): Use exp_descriptor_f instead of
12004 exp_descriptor_standard.
12005
c8f91604
AB
120062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12007
12008 * f-exp.y (struct token): Add comments.
12009 (dot_ops): Remove uppercase versions and the end marker.
12010 (f77_keywords): Likewise.
12011 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12012 entries in the dot_ops array are case insensitive, and use
12013 strncasecmp to compare strings. Also some whitespace cleanup in
12014 this area. Similar for the f77_keywords array, except entries in
12015 this list might be case sensitive.
12016
dd9f2c76
AB
120172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12018
12019 * f-exp.y (struct f77_boolean_val): Add comments.
12020 (boolean_values): Remove uppercase versions, and end marker.
12021 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12022 and use strncasecmp to achieve case insensitivity. Additionally,
12023 perform whitespace cleanup around this code.
12024
67a3048c
TT
120252019-03-06 Tom Tromey <tromey@adacore.com>
12026
12027 * remote-sim.c (gdbsim_target_open): Use result of
12028 gdb_argv::release.
12029
aa3cfbda
RB
120302019-03-06 Richard Bunt <richard.bunt@arm.com>
12031 Dirk Schubert <dirk.schubert@arm.com>
12032 Chris January <chris.january@arm.com>
12033
12034 * eval.c (evaluate_subexp_standard): Call Fortran argument
12035 wrapping logic.
12036 * f-lang.c (struct value): A value which can be passed into a
12037 Fortran function call.
12038 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12039 where appropriate.
12040 (struct type): Value ready for a Fortran function call.
12041 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12042 is needed.
12043 * f-lang.h (fortran_argument_convert): Declaration.
12044 (fortran_preserve_arg_pointer): Declaration.
12045 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12046
ea38e5df
TT
120472019-03-05 Tom Tromey <tromey@adacore.com>
12048
12049 * python/py-prettyprint.c (print_string_repr): Remove #if.
12050 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12051
06b5b831
TT
120522019-03-05 Tom Tromey <tromey@adacore.com>
12053
12054 * target.c (the_dummy_target): Move later. Change type to
12055 "dummy_target".
12056 (initialize_targets): Don't initialize the_dummy_target.
12057
edbd9e45
TT
120582019-03-05 Tom Tromey <tromey@adacore.com>
12059
12060 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12061 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12062
c119e040
TT
120632019-03-05 Tom Tromey <tromey@adacore.com>
12064
12065 * windows-nat.c (windows_nat_target::attach)
12066 (windows_nat_target::detach): Don't call gdb_flush.
12067 * valprint.c (generic_val_print, val_print, val_print_string):
12068 Don't call gdb_flush.
12069 * utils.c (defaulted_query): Don't call gdb_flush.
12070 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12071 * target.c (target_announce_detach): Don't call gdb_flush.
12072 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12073 * remote.c (extended_remote_target::attach): Don't call
12074 gdb_flush.
12075 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12076 * printcmd.c (do_examine): Don't call gdb_flush.
12077 (info_display_command): Don't call gdb_flush.
12078 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12079 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12080 * memattr.c (info_mem_command): Don't call gdb_flush.
12081 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12082 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12083 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12084 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12085 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12086 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12087 (gnu_nat_target::detach): Don't call gdb_flush.
12088 * f-valprint.c (f_val_print): Don't call gdb_flush.
12089 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12090 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12091 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12092 gdb_flush.
12093 * c-valprint.c (c_val_print): Don't call gdb_flush.
12094 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12095
895dafa6
TT
120962019-03-05 Tom Tromey <tromey@adacore.com>
12097
12098 * varobj.c (update_dynamic_varobj_children): Update.
12099 (install_default_visualizer): Use reset, not release.
12100 * value.c (set_internalvar): Update.
12101 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12102 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12103 ATTRIBUTE_UNUSED_RESULT.
12104
88a774b9
TT
121052019-03-05 Tom Tromey <tromey@adacore.com>
12106
12107 * remote.c (class scoped_remote_fd) <release>: Add
12108 ATTRIBUTE_UNUSED_RESULT.
12109
4e4a8b93
TT
121102019-03-05 Tom Tromey <tromey@adacore.com>
12111
12112 * macroexp.c (struct macro_buffer) <release>: Add
12113 ATTRIBUTE_UNUSED_RESULT.
12114
083eef1f
TT
121152019-03-05 Tom Tromey <tromey@adacore.com>
12116
12117 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12118 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12119 ATTRIBUTE_UNUSED_RESULT.
12120
3cabd438
TT
121212019-03-05 Tom Tromey <tromey@adacore.com>
12122
12123 * common/scoped_fd.h (class scoped_fd) <release>: Add
12124 ATTRIBUTE_UNUSED_RESULT.
12125
41e3300a
TT
121262019-03-05 Tom Tromey <tromey@adacore.com>
12127
12128 * parser-defs.h (struct parser_state) <release>: Add
12129 ATTRIBUTE_UNUSED_RESULT.
12130
18cb7c9f
TT
121312019-03-05 Tom Tromey <tromey@adacore.com>
12132
12133 * utils.h (class gdb_argv) <release>: Add
12134 ATTRIBUTE_UNUSED_RESULT.
12135 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12136
41fa577f
EZ
121372019-03-02 Eli Zaretskii <eliz@gnu.org>
12138
a6a4b2c6
EZ
12139 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12140 for-loop range, to avoid compiler warnings.
12141
12142 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12143 avoid compiler warnings about unused variables.
12144
742a7df5
EZ
12145 * NEWS: Mention end of support for native debugging on MS-Windows
12146 before XP.
12147
41fa577f
EZ
12148 PR gdb/24292
12149 * common/netstuff.c:
12150 * gdbserver/gdbreplay.c
12151 * gdbserver/remote-utils.c:
12152 * ser-tcp.c:
12153 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12154 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12155 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12156 'getaddrinfo' and 'freeaddrinfo' were not available before
12157 Windows XP, and mingw.org's MinGW headers by default define
12158 _WIN32_WINNT to 0x500.
12159
827f438f
GB
121602019-03-01 Gary Benson <gbenson@redhat.com>
12161
12162 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12163
92137da0
RO
121642019-02-28 Brian Vandenberg <phantall@gmail.com>
12165 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12166
12167 PR gdb/8527
12168 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12169 set_sigint_trap, clear_sigint_trap.
12170
799efbe8
PW
121712019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12172
12173 * target.c (target_detach): Clear the regcache and the
12174 frame cache.
12175
8ed25214
PA
121762019-02-27 Pedro Alves <palves@redhat.com>
12177
12178 * utils.c (set_screen_size): When we cap the height/width sizes,
12179 tweak the corresponding command variable to show "unlimited":
12180
23031e31
SJ
121812019-02-27 Saagar Jha <saagar@saagarjha.com>
12182 Pedro Alves <palves@redhat.com>
12183
12184 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12185 before calling rl_set_screen_size.
12186
6c28e44a
TT
121872019-02-27 Tom Tromey <tromey@adacore.com>
12188
12189 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12190 define.
12191 * python/py-value.c: Remove Python 2.4 workaround.
12192 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12193 workaround.
12194 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12195 Python 2.4 workaround.
12196 * python/python-internal.h: Remove Python 2.4 comment.
12197 (Py_ssize_t): Don't define.
12198 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12199 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12200 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12201 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12202 * python/python.c (do_start_initialization): Remove Python 2.4
12203 workaround.
12204 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12205 (print_children): Remove Python 2.4 workaround.
12206 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12207 workaround.
12208 (CHARBUFFERPROC_NAME): Remove.
12209 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12210 Python 2.4 workaround.
12211
2c3fc25d 122122019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12213
2c3fc25d
KB
12214 * NEWS: Note minimum Python version.
12215
6ca62222
KB
122162019-02-27 Kevin Buettner <kevinb@redhat.com>
12217
12218 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12219 code from these functions. Remove corresponding ifdefs. Use
12220 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12221 Remove gotos and target of gotos.
12222 (infpy_search_memory): Likewise.
12223
f4bc7d2c
AB
122242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12225
12226 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12227 (hppa_gdbarch_init): Don't register deleted functions with
12228 gdbarch.
12229
9734a586
AB
122302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12233 (h8300_unwind_sp): Delete.
12234 (h8300_dummy_id): Delete.
12235 (h8300_gdbarch_init): Don't register deleted functions with
12236 gdbarch.
12237
68b867f3
AB
122382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12239
12240 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12241 (ft32_unwind_pc): Delete.
12242 (ft32_unwind_sp): Delete.
12243 (ft32_gdbarch_init): Don't register deleted functions with
12244 gdbarch.
12245
2fbe7ad0
AB
122462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12247
12248 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12249 (frv_unwind_pc): Delete.
12250 (frv_unwind_sp): Delete.
12251 (frv_gdbarch_init): Don't register deleted functions with
12252 gdbarch.
12253
76055cbe
AB
122542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12255
12256 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12257 (riscv_unwind_pc): Delete.
12258 (riscv_unwind_sp): Delete.
12259 (riscv_gdbarch_init): Don't register deleted functions with
12260 gdbarch.
12261
4133e5a1
AB
122622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12263
12264 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12265 (csky_unwind_pc): Delete.
12266 (csky_unwind_sp): Delete.
12267 (csky_gdbarch_init): Don't register deleted functions with
12268 gdbarch.
12269
8010f576
AB
122702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12271
12272 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12273 (cris_unwind_pc): Delete.
12274 (cris_unwind_sp): Delete.
12275 (cris_gdbarch_init): Don't register deleted functions with
12276 gdbarch.
12277
b56bf084
AB
122782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12279
12280 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12281 (bfin_unwind_pc): Delete.
12282 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12283
a19a650f
AB
122842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12285
12286 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12287 (arm_unwind_pc): Delete.
12288 (arm_unwind_sp): Delete.
12289 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12290
f8278c3c
AB
122912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12292
12293 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12294 (arc_unwind_pc): Delete.
12295 (arc_unwind_sp): Delete.
12296 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12297
480e46cf
AB
122982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12299
12300 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12301 (alpha_unwind_pc): Delete.
12302 (alpha_gdbarch_init): Don't register deleted functions with
12303 gdbarch.
12304
7a995095
AB
123052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12308 (aarch64_unwind_pc): Delete.
12309 (aarch64_unwind_sp): Delete.
12310 (aarch64_gdbarch_init): Don't register deleted functions with
12311 gdbarch.
12312
bf9a735e
AB
123132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12314
12315 * gdbtypes.c (type_align): Don't consider static members when
12316 computing structure alignment.
12317
5561fc30
AB
123182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12319
12320 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12321 return 0 for other types.
12322 * arch-utils.c (default_type_align): Always return 0.
12323 * gdbarch.h: Regenerate.
12324 * gdbarch.sh (type_align): Extend comment.
12325 * gdbtypes.c (type_align): Add additional comments, always call
12326 gdbarch_type_align before applying the default rules.
12327 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12328 generic code will then apply a suitable default.
12329 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12330 types, return 0 for other types.
12331
9335e75a
JB
123322019-02-27 Joel Brobecker <brobecker@adacore.com>
12333
12334 * NEWS: Create a new section for the next release branch.
12335 Rename the section of the current branch, now that it has
12336 been cut.
12337
3d34d8de
JB
123382019-02-27 Joel Brobecker <brobecker@adacore.com>
12339
12340 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12341 * version.in: Bump version to 8.3.50.DATE-git.
12342
143420fb
SM
123432019-02-26 Simon Marchi <simon.marchi@efficios.com>
12344
12345 * aix-thread.c (ptid_cmp): Remove unused variable.
12346 (get_signaled_thread): Likewise.
12347 (store_regs_user_thread): Likewise.
12348 (store_regs_kernel_thread): Likewise.
12349 (fetch_regs_kernel_thread): Remove shadowed variable.
12350
172fb711
AB
123512019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12352
12353 * features/riscv/32bit-cpu.xml: Add register numbers.
12354 * features/riscv/32bit-fpu.c: Regenerate.
12355 * features/riscv/32bit-fpu.xml: Add register numbers.
12356 * features/riscv/64bit-cpu.xml: Add register numbers.
12357 * features/riscv/64bit-fpu.c: Regenerate.
12358 * features/riscv/64bit-fpu.xml: Add register numbers.
12359
26c89782
KB
123602019-02-26 Kevin Buettner <kevinb@redhat.com>
12361
af54ade9 12362 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12363 * python/py-value.c (convert_buffer_and_type_to_value): New
12364 function.
12365 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12366 Add support for handling an optional second argument. Call
12367 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12368 * python/python-internal.h (Py_buffer_deleter): New struct.
12369 (Py_buffer_up): New typedef.
12370
0f58c9e8
JB
123712019-02-25 John Baldwin <jhb@FreeBSD.org>
12372
12373 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12374 instead of releasing ownership.
12375
0a0f4c01
JR
123762019-02-25 Jordan Rupprecht <rupprecht@google.com>
12377
12378 * dwarf2read.c (open_and_init_dwp_file): Call
12379 elf_numsections instead of bfd_count_sections to initialize
12380 dwp_file->num_sections.
12381
cd5a152c
TT
123822019-02-25 Tom Tromey <tromey@adacore.com>
12383
12384 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12385
8a6a8513
SDJ
123862019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12387
12388 * gcore.in: Add '--readnever' option when invoking GDB.
12389
04dcda9c
SM
123902019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12391
12392 * MAINTAINERS: Update my email address.
12393
07bc701d
SM
123942019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12395
12396 * build-id.c (build_id_to_debug_bfd_1): New function.
12397 (build_id_to_debug_bfd): Look for separate debug file in
12398 sysroot.
12399
c6f4a5d0
AB
124002019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 * gdbarch.sh: Update the copyright year range that is placed into
12403 generated files.
12404
9600246d
KS
124052019-02-22 Keith Seitz <keiths@redhat.com>
12406
12407 PR symtab/23853
12408 * linespec.c (create_sals_line_offset): Search for the default
12409 symtab's filename instead of its fullname.
12410
7557a514
AH
124112019-02-21 Alan Hayward <alan.hayward@arm.com>
12412
12413 * NEWS: Update style defaults.
12414
ee2bcb0c
AH
124152019-02-21 Alan Hayward <alan.hayward@arm.com>
12416
12417 * main.c (captured_main_1): Disable styling in batch mode.
12418
0c95f9ed
TT
124192019-02-20 Tom Tromey <tom@tromey.com>
12420
12421 * symtab.c (symtab_symbol_info): Fix typos.
12422
c763b894
TT
124232019-02-20 Tom Tromey <tromey@adacore.com>
12424
12425 * findcmd.c (_initialize_mem_search): Use upper case for
12426 metasyntactic variables.
12427
0ef8a082
AH
124282019-02-20 Alan Hayward <alan.hayward@arm.com>
12429
12430 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12431 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12432
6caa91b6
SM
124332019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12434
12435 * top.h (source_file_name): Change to std::string.
12436 * top.c (source_file_name): Likewise.
12437 (command_line_input): Adjust.
12438 * cli/cli-script.c (script_from_file): Adjust.
12439
98814c6c
TT
124402019-02-19 Tom Tromey <tromey@adacore.com>
12441
12442 * ravenscar-thread.c
12443 (ravenscar_thread_target::update_thread_list): Don't call
12444 ada_build_task_list.
12445 * ada-lang.h (ada_build_task_list): Don't declare.
12446 * ada-tasks.c (struct ada_tasks_inferior_data)
12447 <task_list_valid_p>: Now bool.
12448 (read_known_tasks, ada_task_list_changed)
12449 (ada_tasks_invalidate_inferior_data): Update.
12450 (read_known_tasks_array): Return bool.
12451 (read_known_tasks_list): Likewise.
12452 (read_known_tasks): Return void.
12453 (ada_build_task_list): Now static.
12454
70cd633e
AB
124552019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12456
12457 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12458 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12459
040b3e95
PW
124602019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12461
12462 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12463 variant for ada_tasks_pspace_data_handle and
12464 ada_tasks_inferior_data_handle.
12465 (ada_tasks_pspace_data_cleanup): New function.
12466 (ada_tasks_inferior_data_cleanup): New function.
12467
9409233b
TT
124682019-02-17 Tom Tromey <tom@tromey.com>
12469
12470 * macrotab.h (macro_source_fullname): Return a std::string.
12471 * macrotab.c (macro_include, check_for_redefinition)
12472 (macro_undef, macro_lookup_definition, foreach_macro)
12473 (foreach_macro_in_scope): Update.
12474 (macro_source_fullname): Return a std::string.
12475 * macrocmd.c (show_pp_source_pos): Update.
12476
6506371f
TT
124772019-02-17 Tom Tromey <tom@tromey.com>
12478
12479 * macrocmd.c (show_pp_source_pos): Style the file names.
12480
0c820d67
TT
124812019-02-17 Tom Tromey <tom@tromey.com>
12482
12483 PR tui/24197:
12484 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12485
a0087920
TT
124862019-02-17 Tom Tromey <tom@tromey.com>
12487
12488 * ada-lang.c (user_select_syms): Use filtered printing.
12489 * utils.c (wrap_style): New global.
12490 (desired_style): Remove.
12491 (emit_style_escape): Add stream parameter.
12492 (set_output_style, reset_terminal_style, prompt_for_continue):
12493 Update.
12494 (flush_wrap_buffer): Only flush gdb_stdout.
12495 (wrap_here): Set wrap_style.
12496 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12497 treat escape sequences as a character. Change when wrap buffer is
12498 flushed.
12499 (fputs_styled): Do not set the output style when the default is
12500 requested.
12501 * ui-style.h (struct ui_file_style) <is_default>: New method.
12502 * source.c (print_source_lines_base): Emit escape sequences in one
12503 piece.
12504
75ba10dc
JB
125052019-02-17 Joel Brobecker <brobecker@adacore.com>
12506
12507 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12508 integers and enumeration types.
12509
a2cd4f14
JB
125102019-02-17 Joel Brobecker <brobecker@adacore.com>
12511
12512 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12513 instead of lookup_symbol_in_language
12514 (do_exact_match): New function.
12515 (ada_get_symbol_name_matcher): Return do_exact_match when
12516 doing a verbatim match.
12517
485b851b
TT
125182019-02-15 Tom Tromey <tromey@adacore.com>
12519
12520 * ravenscar-thread.c (ravenscar_thread_target::resume)
12521 (ravenscar_thread_target::wait): Special case wildcard requests.
12522
0b790b1e
TT
125232019-02-15 Tom Tromey <tromey@adacore.com>
12524
12525 * ravenscar-thread.c (base_ptid): Remove.
12526 (struct ravenscar_thread_target) <close>: New method.
12527 <m_base_ptid>: New member.
12528 <update_inferior_ptid, active_task, task_is_currently_active,
12529 runtime_initialized>: Declare methods.
12530 <ravenscar_thread_target>: Add constructor.
12531 (ravenscar_thread_target::task_is_currently_active)
12532 (ravenscar_thread_target::update_inferior_ptid)
12533 (ravenscar_runtime_initialized): Rename. Now methods.
12534 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12535 (ravenscar_thread_target::update_thread_list): Update.
12536 (ravenscar_thread_target::active_task): Now method.
12537 (ravenscar_thread_target::store_registers)
12538 (ravenscar_thread_target::prepare_to_store)
12539 (ravenscar_thread_target::prepare_to_store)
12540 (ravenscar_thread_target::mourn_inferior): Update.
12541 (ravenscar_inferior_created): Use "new" to create target.
12542 (ravenscar_thread_target::get_ada_task_ptid): Update.
12543 (_initialize_ravenscar): Don't initialize base_ptid.
12544 (ravenscar_ops): Remove global.
12545
dea57a62
TT
125462019-02-15 Tom Tromey <tromey@adacore.com>
12547
12548 * target.h (push_target): Declare new overload.
12549 * target.c (push_target): New overload, taking an rvalue reference.
12550 * remote.c (remote_target::open_1): Use push_target overload.
12551 * corelow.c (core_target_open): Use push_target overload.
12552
989f3c58
TT
125532019-02-15 Tom Tromey <tromey@adacore.com>
12554
12555 * ravenscar-thread.c (is_ravenscar_task)
12556 (ravenscar_task_is_currently_active): Return bool.
12557 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12558 (_initialize_ravenscar): Remove "(void)".
12559 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12560 Return bool.
12561
6cbcc006
TT
125622019-02-15 Tom Tromey <tromey@adacore.com>
12563
12564 * ravenscar-thread.c (ravenscar_runtime_initializer)
12565 (has_ravenscar_runtime, get_running_thread_id)
12566 (ravenscar_thread_target::resume): Fix indentation.
12567
7657f14d
TT
125682019-02-15 Tom Tromey <tromey@adacore.com>
12569
12570 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12571 from ravenscar_arch_ops.
12572 (sparc_ravenscar_ops::fetch_registers)
12573 (sparc_ravenscar_ops::store_registers): Now methods.
12574 (sparc_ravenscar_prepare_to_store): Remove.
12575 (sparc_ravenscar_ops): Redefine.
12576 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12577 methods and destructor. Remove members.
12578 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12579 (ravenscar_thread_target::store_registers)
12580 (ravenscar_thread_target::prepare_to_store): Update.
12581 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12582 Remove.
12583 (struct ppc_ravenscar_powerpc_ops): Derive from
12584 ravenscar_arch_ops.
12585 (ppc_ravenscar_powerpc_ops::fetch_registers)
12586 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12587 (ppc_ravenscar_powerpc_ops): Redefine.
12588 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12589 (ppc_ravenscar_e500_ops::fetch_registers)
12590 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12591 (ppc_ravenscar_e500_ops): Redefine.
12592 * aarch64-ravenscar-thread.c
12593 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12594 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12595 (aarch64_ravenscar_fetch_registers)
12596 (aarch64_ravenscar_store_registers): Now methods.
12597 (aarch64_ravenscar_ops): Redefine.
12598
5b6ea500
TT
125992019-02-15 Tom Tromey <tromey@adacore.com>
12600
12601 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12602 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12603 (ravenscar_thread_target::stopped_by_watchpoint)
12604 (ravenscar_thread_target::stopped_data_address)
12605 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12606
e397fd39
TT
126072019-02-15 Tom Tromey <tromey@adacore.com>
12608
12609 * ravenscar-thread.c: Fix some typos.
12610
cc12f4a8
TT
126112019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12612 Tom Tromey <tromey@adacore.com>
12613
12614 * ada-lang.c (ada_exception_sal): Change addr_string to a
12615 std::string.
12616 (create_ada_exception_catchpoint): Update.
12617
5f486660
TT
126182019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12619 Tom Tromey <tromey@adacore.com>
12620
12621 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12622 (bp_location_ops): Remove.
12623 (base_breakpoint_allocate_location): Update.
12624 (free_bp_location): Update.
12625 * ada-lang.c (class ada_catchpoint_location)
12626 <ada_catchpoint_location>: Remove ops parameter.
12627 (ada_catchpoint_location_dtor): Remove.
12628 (ada_catchpoint_location_ops): Remove.
12629 (allocate_location_exception): Update.
12630 * breakpoint.h (struct bp_location_ops): Remove.
12631 (class bp_location) <bp_location>: Remove bp_location_ops
12632 parameter.
12633 <~bp_location>: Add destructor.
12634 <ops>: Remove.
12635
b671c7fb
TS
126362019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12637 Pedro Alves <palves@redhat.com>
12638
12639 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12640 'PATH_MAX'.
12641
8071c5ce
DM
126422019-02-14 David Michael <fedora.dm0@gmail.com>
12643 Samuel Thibault <samuel.thibault@gnu.org>
12644 Thomas Schwinge <thomas@codesourcery.com>
12645
12646 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12647 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12648
b1041ae0
TS
126492019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12650
924514e1
TS
12651 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12652 (check_empty): Use "const char *".
12653
c29ee8d4
TS
12654 * gnu-nat.c (gnu_nat_target::detach): Instead of
12655 'detach_inferior (pid)' call
12656 'detach_inferior (find_inferior_pid (pid))'.
12657
6c6ef69f
TS
12658 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12659 'nat/fork-inferior.o'.
12660 * gnu-nat.c: #include "nat/fork-inferior.h".
12661
2d0a338c
TS
12662 * gnu-nat.c (gnu_nat_target::detach): Instead of
12663 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12664 * gnu-nat.h: #include "inf-child.h".
12665 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12666 'i386_gnu_nat_target::fetch_registers'.
12667 (gnu_store_registers): Rename/move to
12668 'i386_gnu_nat_target::store_registers'.
12669
cabb5f06
TS
12670 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12671 * gnu-nat.h (mach_thread_info): New function.
12672 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12673
b1041ae0
TS
12674 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12675
2988d01e
KF
126762019-02-14 Frederic Konrad <konrad@adacore.com>
12677
12678 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12679
c559d709
JB
126802019-02-14 Joel Brobecker <brobecker@adacore.com>
12681
12682 * windows-nat.c (windows_add_thread): Add new parameter
12683 "main_thread_p" with default value set to false. Update
12684 function documentation as well as all callers.
12685 (windows_delete_thread): Likewise.
12686 (fake_create_process): Update call to windows_add_thread.
12687 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12688 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12689 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12690 call to windows_delete_thread.
12691
007024cc
SM
126922019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12693
12694 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12695
f62318e9
JB
126962019-02-12 John Baldwin <jhb@FreeBSD.org>
12697
12698 * symfile.c (find_separate_debug_file): Use canonical path of
12699 sysroot with child_path instead of gdb_sysroot if it is valid.
12700
cd4b7848
JB
127012019-02-12 John Baldwin <jhb@FreeBSD.org>
12702
12703 * symfile.c (find_separate_debug_file): Use child_path to
12704 determine if an object file is under a sysroot.
12705
efac4bfe
JB
127062019-02-12 John Baldwin <jhb@FreeBSD.org>
12707
12708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12709 unittests/child-path-selftests.c.
12710 * common/pathstuff.c (child_path): New function.
12711 * common/pathstuff.h (child_path): New prototype.
12712 * unittests/child-path-selftests.c: New file.
12713
402d2bfe
JB
127142019-02-12 John Baldwin <jhb@FreeBSD.org>
12715
12716 * symfile.c (find_separate_debug_file): Look for separate debug
12717 files in debug directories under the sysroot.
12718
1ed9f74e
PW
127192019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12720
12721 * symtab.h (struct minimal_symbol data_p): New const method.
12722 (struct minimal_symbol text_p): Likewise.
12723 * symtab.c (output_source_filename): Use file name style
12724 to print file name.
12725 (print_symbol_info): Likewise.
12726 (print_msymbol_info): Use address style to print addresses.
12727 Use function name style to print executable text symbols.
12728 (expand_symtab_containing_pc): Use data_p.
12729 (find_pc_sect_compunit_symtab): Likewise.
12730
2636d81d
PW
127312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12732
12733 * breakpoint.c (describe_other_breakpoints): Use address style
12734 to print addresses.
12735 (say_where): Likewise.
12736
ac8c53cc
PW
127372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12738
12739 * ada-typeprint.c (print_func_type): Print function name
12740 style to print function name.
12741 * c-typeprint.c (c_print_type_1): Likewise.
12742
ea638c43
AH
127432019-02-11 Alan Hayward <alan.hayward@arm.com>
12744
12745 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12746 for execve.
12747
ab759ca8
PW
127482019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12749
12750 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12751 type_stack.
12752
aff29d1c
JB
127532019-02-10 Joel Brobecker <brobecker@adacore.com>
12754
12755 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12756 TYPE_CODE_REF types.
12757
617126bc
JW
127582019-02-08 Jim Wilson <jimw@sifive.com>
12759
12760 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12761 (riscv_linux_fregset): New.
12762 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12763
46e3ed7f
TT
127642019-02-07 Tom Tromey <tom@tromey.com>
12765
12766 * thread.c (thread_cancel_execution_command): Update.
12767 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12768 methods.
12769 (struct thread_fsm_ops): Remove.
12770 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12771 (thread_fsm_should_stop, thread_fsm_return_value)
12772 (thread_fsm_set_finished, thread_fsm_finished_p)
12773 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12774 Don't declare.
12775 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12776 * infrun.c (clear_proceed_status_thread)
12777 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12778 (print_stop_event): Update.
12779 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12780 Add constructor.
12781 (step_command_fsm_ops): Remove.
12782 (new_step_command_fsm): Remove.
12783 (step_1): Update.
12784 (step_command_fsm::should_stop): Rename from
12785 step_command_fsm_should_stop.
12786 (step_command_fsm::clean_up): Rename from
12787 step_command_fsm_clean_up.
12788 (step_command_fsm::do_async_reply_reason): Rename from
12789 step_command_fsm_async_reply_reason.
12790 (struct until_next_fsm): Inherit from thread_fsm. Add
12791 constructor.
12792 (until_next_fsm_ops): Remove.
12793 (new_until_next_fsm): Remove.
12794 (until_next_fsm::should_stop): Rename from
12795 until_next_fsm_should_stop.
12796 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12797 (until_next_fsm::do_async_reply_reason): Rename from
12798 until_next_fsm_async_reply_reason.
12799 (struct finish_command_fsm): Inherit from thread_fsm. Add
12800 constructor. Change type of breakpoint.
12801 (finish_command_fsm_ops): Remove.
12802 (new_finish_command_fsm): Remove.
12803 (finish_command_fsm::should_stop): Rename from
12804 finish_command_fsm_should_stop.
12805 (finish_command_fsm::clean_up): Rename from
12806 finish_command_fsm_clean_up.
12807 (finish_command_fsm::return_value): Rename from
12808 finish_command_fsm_return_value.
12809 (finish_command_fsm::do_async_reply_reason): Rename from
12810 finish_command_fsm_async_reply_reason.
12811 (finish_command): Update.
12812 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12813 Add constructor.
12814 (call_thread_fsm_ops): Remove.
12815 (call_thread_fsm::call_thread_fsm): Rename from
12816 new_call_thread_fsm.
12817 (call_thread_fsm::should_stop): Rename from
12818 call_thread_fsm_should_stop.
12819 (call_thread_fsm::should_notify_stop): Rename from
12820 call_thread_fsm_should_notify_stop.
12821 (run_inferior_call, call_function_by_hand_dummy): Update.
12822 * cli/cli-interp.c (should_print_stop_to_console): Update.
12823 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12824 Add constructor. Change type of location_breakpoint,
12825 caller_breakpoint.
12826 (until_break_fsm_ops): Remove.
12827 (new_until_break_fsm): Remove.
12828 (until_break_fsm::should_stop): Rename from
12829 until_break_fsm_should_stop.
12830 (until_break_fsm::clean_up): Rename from
12831 until_break_fsm_clean_up.
12832 (until_break_fsm::do_async_reply_reason): Rename from
12833 until_break_fsm_async_reply_reason.
12834 (until_break_command): Update.
12835 * thread-fsm.c: Remove.
12836 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12837
1a5c2598
TT
128382019-02-07 Tom Tromey <tom@tromey.com>
12839
12840 * yy-remap.h: Add include guard.
12841 * xtensa-tdep.h: Add include guard.
12842 * xcoffread.h: Rename include guard.
12843 * varobj-iter.h: Add include guard.
12844 * tui/tui.h: Rename include guard.
12845 * tui/tui-winsource.h: Rename include guard.
12846 * tui/tui-wingeneral.h: Rename include guard.
12847 * tui/tui-windata.h: Rename include guard.
12848 * tui/tui-win.h: Rename include guard.
12849 * tui/tui-stack.h: Rename include guard.
12850 * tui/tui-source.h: Rename include guard.
12851 * tui/tui-regs.h: Rename include guard.
12852 * tui/tui-out.h: Rename include guard.
12853 * tui/tui-layout.h: Rename include guard.
12854 * tui/tui-io.h: Rename include guard.
12855 * tui/tui-hooks.h: Rename include guard.
12856 * tui/tui-file.h: Rename include guard.
12857 * tui/tui-disasm.h: Rename include guard.
12858 * tui/tui-data.h: Rename include guard.
12859 * tui/tui-command.h: Rename include guard.
12860 * tic6x-tdep.h: Add include guard.
12861 * target/waitstatus.h: Rename include guard.
12862 * target/wait.h: Rename include guard.
12863 * target/target.h: Rename include guard.
12864 * target/resume.h: Rename include guard.
12865 * target-float.h: Rename include guard.
12866 * stabsread.h: Add include guard.
12867 * rs6000-tdep.h: Add include guard.
12868 * riscv-fbsd-tdep.h: Add include guard.
12869 * regformats/regdef.h: Rename include guard.
12870 * record.h: Rename include guard.
12871 * python/python.h: Rename include guard.
12872 * python/python-internal.h: Rename include guard.
12873 * python/py-stopevent.h: Rename include guard.
12874 * python/py-ref.h: Rename include guard.
12875 * python/py-record.h: Rename include guard.
12876 * python/py-record-full.h: Rename include guard.
12877 * python/py-record-btrace.h: Rename include guard.
12878 * python/py-instruction.h: Rename include guard.
12879 * python/py-events.h: Rename include guard.
12880 * python/py-event.h: Rename include guard.
12881 * procfs.h: Add include guard.
12882 * proc-utils.h: Add include guard.
12883 * p-lang.h: Add include guard.
12884 * or1k-tdep.h: Rename include guard.
12885 * observable.h: Rename include guard.
12886 * nto-tdep.h: Rename include guard.
12887 * nat/x86-linux.h: Rename include guard.
12888 * nat/x86-linux-dregs.h: Rename include guard.
12889 * nat/x86-gcc-cpuid.h: Add include guard.
12890 * nat/x86-dregs.h: Rename include guard.
12891 * nat/x86-cpuid.h: Rename include guard.
12892 * nat/ppc-linux.h: Rename include guard.
12893 * nat/mips-linux-watch.h: Rename include guard.
12894 * nat/linux-waitpid.h: Rename include guard.
12895 * nat/linux-ptrace.h: Rename include guard.
12896 * nat/linux-procfs.h: Rename include guard.
12897 * nat/linux-osdata.h: Rename include guard.
12898 * nat/linux-nat.h: Rename include guard.
12899 * nat/linux-namespaces.h: Rename include guard.
12900 * nat/linux-btrace.h: Rename include guard.
12901 * nat/glibc_thread_db.h: Rename include guard.
12902 * nat/gdb_thread_db.h: Rename include guard.
12903 * nat/gdb_ptrace.h: Rename include guard.
12904 * nat/fork-inferior.h: Rename include guard.
12905 * nat/amd64-linux-siginfo.h: Rename include guard.
12906 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12907 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12908 * nat/aarch64-linux.h: Rename include guard.
12909 * nat/aarch64-linux-hw-point.h: Rename include guard.
12910 * mn10300-tdep.h: Add include guard.
12911 * mips-linux-tdep.h: Add include guard.
12912 * mi/mi-parse.h: Rename include guard.
12913 * mi/mi-out.h: Rename include guard.
12914 * mi/mi-main.h: Rename include guard.
12915 * mi/mi-interp.h: Rename include guard.
12916 * mi/mi-getopt.h: Rename include guard.
12917 * mi/mi-console.h: Rename include guard.
12918 * mi/mi-common.h: Rename include guard.
12919 * mi/mi-cmds.h: Rename include guard.
12920 * mi/mi-cmd-break.h: Rename include guard.
12921 * m2-lang.h: Add include guard.
12922 * location.h: Rename include guard.
12923 * linux-record.h: Rename include guard.
12924 * linux-nat.h: Add include guard.
12925 * linux-fork.h: Add include guard.
12926 * i386-darwin-tdep.h: Rename include guard.
12927 * hppa-linux-offsets.h: Add include guard.
12928 * guile/guile.h: Rename include guard.
12929 * guile/guile-internal.h: Rename include guard.
12930 * gnu-nat.h: Rename include guard.
12931 * gdb-stabs.h: Rename include guard.
12932 * frv-tdep.h: Add include guard.
12933 * f-lang.h: Add include guard.
12934 * event-loop.h: Add include guard.
12935 * darwin-nat.h: Rename include guard.
12936 * cp-abi.h: Rename include guard.
12937 * config/sparc/nm-sol2.h: Rename include guard.
12938 * config/nm-nto.h: Rename include guard.
12939 * config/nm-linux.h: Add include guard.
12940 * config/i386/nm-i386gnu.h: Rename include guard.
12941 * config/djgpp/nl_types.h: Rename include guard.
12942 * config/djgpp/langinfo.h: Rename include guard.
12943 * compile/gcc-cp-plugin.h: Add include guard.
12944 * compile/gcc-c-plugin.h: Add include guard.
12945 * compile/compile.h: Rename include guard.
12946 * compile/compile-object-run.h: Rename include guard.
12947 * compile/compile-object-load.h: Rename include guard.
12948 * compile/compile-internal.h: Rename include guard.
12949 * compile/compile-cplus.h: Rename include guard.
12950 * compile/compile-c.h: Rename include guard.
12951 * common/xml-utils.h: Rename include guard.
12952 * common/x86-xstate.h: Rename include guard.
12953 * common/version.h: Rename include guard.
12954 * common/vec.h: Rename include guard.
12955 * common/tdesc.h: Rename include guard.
12956 * common/selftest.h: Rename include guard.
12957 * common/scoped_restore.h: Rename include guard.
12958 * common/scoped_mmap.h: Rename include guard.
12959 * common/scoped_fd.h: Rename include guard.
12960 * common/safe-iterator.h: Rename include guard.
12961 * common/run-time-clock.h: Rename include guard.
12962 * common/refcounted-object.h: Rename include guard.
12963 * common/queue.h: Rename include guard.
12964 * common/ptid.h: Rename include guard.
12965 * common/print-utils.h: Rename include guard.
12966 * common/preprocessor.h: Rename include guard.
12967 * common/pathstuff.h: Rename include guard.
12968 * common/observable.h: Rename include guard.
12969 * common/netstuff.h: Rename include guard.
12970 * common/job-control.h: Rename include guard.
12971 * common/host-defs.h: Rename include guard.
12972 * common/gdb_wait.h: Rename include guard.
12973 * common/gdb_vecs.h: Rename include guard.
12974 * common/gdb_unlinker.h: Rename include guard.
12975 * common/gdb_unique_ptr.h: Rename include guard.
12976 * common/gdb_tilde_expand.h: Rename include guard.
12977 * common/gdb_sys_time.h: Rename include guard.
12978 * common/gdb_string_view.h: Rename include guard.
12979 * common/gdb_splay_tree.h: Rename include guard.
12980 * common/gdb_setjmp.h: Rename include guard.
12981 * common/gdb_ref_ptr.h: Rename include guard.
12982 * common/gdb_optional.h: Rename include guard.
12983 * common/gdb_locale.h: Rename include guard.
12984 * common/gdb_assert.h: Rename include guard.
12985 * common/filtered-iterator.h: Rename include guard.
12986 * common/filestuff.h: Rename include guard.
12987 * common/fileio.h: Rename include guard.
12988 * common/environ.h: Rename include guard.
12989 * common/common-utils.h: Rename include guard.
12990 * common/common-types.h: Rename include guard.
12991 * common/common-regcache.h: Rename include guard.
12992 * common/common-inferior.h: Rename include guard.
12993 * common/common-gdbthread.h: Rename include guard.
12994 * common/common-exceptions.h: Rename include guard.
12995 * common/common-defs.h: Rename include guard.
12996 * common/common-debug.h: Rename include guard.
12997 * common/cleanups.h: Rename include guard.
12998 * common/buffer.h: Rename include guard.
12999 * common/btrace-common.h: Rename include guard.
13000 * common/break-common.h: Rename include guard.
13001 * cli/cli-utils.h: Rename include guard.
13002 * cli/cli-style.h: Rename include guard.
13003 * cli/cli-setshow.h: Rename include guard.
13004 * cli/cli-script.h: Rename include guard.
13005 * cli/cli-interp.h: Rename include guard.
13006 * cli/cli-decode.h: Rename include guard.
13007 * cli/cli-cmds.h: Rename include guard.
13008 * charset-list.h: Add include guard.
13009 * buildsym-legacy.h: Rename include guard.
13010 * bfin-tdep.h: Add include guard.
13011 * ax.h: Rename include guard.
13012 * arm-linux-tdep.h: Add include guard.
13013 * arm-fbsd-tdep.h: Add include guard.
13014 * arch/xtensa.h: Rename include guard.
13015 * arch/tic6x.h: Add include guard.
13016 * arch/i386.h: Add include guard.
13017 * arch/arm.h: Rename include guard.
13018 * arch/arm-linux.h: Rename include guard.
13019 * arch/arm-get-next-pcs.h: Rename include guard.
13020 * arch/amd64.h: Add include guard.
13021 * arch/aarch64-insn.h: Rename include guard.
13022 * arch-utils.h: Rename include guard.
13023 * annotate.h: Add include guard.
13024 * amd64-darwin-tdep.h: Rename include guard.
13025 * aarch64-linux-tdep.h: Add include guard.
13026 * aarch64-fbsd-tdep.h: Add include guard.
13027 * aarch32-linux-nat.h: Add include guard.
13028
ab9268d2
PW
130292019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13030
13031 * macrotab.c (macro_define_internal): New function that
13032 factorizes macro_define_object_internal and macro_define_function
13033 code.
13034 (macro_define_object_internal): Use macro_define_internal.
13035 (macro_define_function): Likewise.
13036
bb0da2b4
PW
130372019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13038
13039 * macrocmd.c (extract_identifier): Return
13040 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13041 callers.
13042
424eb552
JB
130432019-02-06 John Baldwin <jhb@FreeBSD.org>
13044
13045 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13046
1688cb29
TT
130472019-02-05 Tom Tromey <tom@tromey.com>
13048
13049 * target.c (target_stack::unpush): Move assertion earlier.
13050
b5eba2d8
TT
130512019-01-30 Tom Tromey <tom@tromey.com>
13052
13053 PR python/23615:
13054 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13055 (gdbpy_parse_and_eval): Likewise.
13056 * python/python-internal.h (gdbpy_allow_threads): New class.
13057
7054e2ff
JB
130582019-01-28 John Baldwin <jhb@FreeBSD.org>
13059
13060 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13061 (aarch64_fbsd_fpregmap): Move earlier.
13062 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13063 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13064 instead of individual calls to trad_frame_set_reg_addr.
13065 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13066 earlier.
13067 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13068 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13069 instead of individual calls to trad_frame_set_reg_addr.
13070
36c25ffa
AH
130712019-01-28 Alan Hayward <alan.hayward@arm.com>
13072
13073 * CONTRIBUTE: Replace contribution list with wiki link.
13074
a0707f3c
TT
130752019-01-25 Tom Tromey <tom@tromey.com>
13076
13077 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13078
0747795c
TT
130792019-01-25 Tom Tromey <tom@tromey.com>
13080
13081 * xtensa-linux-nat.c: Fix common/ includes.
13082 * xml-support.h: Fix common/ includes.
13083 * xml-support.c: Fix common/ includes.
13084 * x86-linux-nat.c: Fix common/ includes.
13085 * windows-nat.c: Fix common/ includes.
13086 * varobj.h: Fix common/ includes.
13087 * varobj.c: Fix common/ includes.
13088 * value.c: Fix common/ includes.
13089 * valops.c: Fix common/ includes.
13090 * utils.c: Fix common/ includes.
13091 * unittests/xml-utils-selftests.c: Fix common/ includes.
13092 * unittests/utils-selftests.c: Fix common/ includes.
13093 * unittests/unpack-selftests.c: Fix common/ includes.
13094 * unittests/tracepoint-selftests.c: Fix common/ includes.
13095 * unittests/style-selftests.c: Fix common/ includes.
13096 * unittests/string_view-selftests.c: Fix common/ includes.
13097 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13098 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13099 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13100 * unittests/rsp-low-selftests.c: Fix common/ includes.
13101 * unittests/parse-connection-spec-selftests.c: Fix common/
13102 includes.
13103 * unittests/optional-selftests.c: Fix common/ includes.
13104 * unittests/offset-type-selftests.c: Fix common/ includes.
13105 * unittests/observable-selftests.c: Fix common/ includes.
13106 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13107 * unittests/memrange-selftests.c: Fix common/ includes.
13108 * unittests/memory-map-selftests.c: Fix common/ includes.
13109 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13110 * unittests/function-view-selftests.c: Fix common/ includes.
13111 * unittests/environ-selftests.c: Fix common/ includes.
13112 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13113 * unittests/common-utils-selftests.c: Fix common/ includes.
13114 * unittests/cli-utils-selftests.c: Fix common/ includes.
13115 * unittests/array-view-selftests.c: Fix common/ includes.
13116 * ui-file.c: Fix common/ includes.
13117 * tui/tui-io.c: Fix common/ includes.
13118 * tracepoint.h: Fix common/ includes.
13119 * tracepoint.c: Fix common/ includes.
13120 * tracefile-tfile.c: Fix common/ includes.
13121 * top.h: Fix common/ includes.
13122 * top.c: Fix common/ includes.
13123 * thread.c: Fix common/ includes.
13124 * target/waitstatus.h: Fix common/ includes.
13125 * target/waitstatus.c: Fix common/ includes.
13126 * target.h: Fix common/ includes.
13127 * target.c: Fix common/ includes.
13128 * target-memory.c: Fix common/ includes.
13129 * target-descriptions.c: Fix common/ includes.
13130 * symtab.h: Fix common/ includes.
13131 * symfile.c: Fix common/ includes.
13132 * stap-probe.c: Fix common/ includes.
13133 * spu-linux-nat.c: Fix common/ includes.
13134 * sparc-nat.c: Fix common/ includes.
13135 * source.c: Fix common/ includes.
13136 * solib.c: Fix common/ includes.
13137 * solib-target.c: Fix common/ includes.
13138 * ser-unix.c: Fix common/ includes.
13139 * ser-tcp.c: Fix common/ includes.
13140 * ser-pipe.c: Fix common/ includes.
13141 * ser-base.c: Fix common/ includes.
13142 * selftest-arch.c: Fix common/ includes.
13143 * s12z-tdep.c: Fix common/ includes.
13144 * rust-exp.y: Fix common/ includes.
13145 * rs6000-aix-tdep.c: Fix common/ includes.
13146 * riscv-tdep.c: Fix common/ includes.
13147 * remote.c: Fix common/ includes.
13148 * remote-notif.h: Fix common/ includes.
13149 * remote-fileio.h: Fix common/ includes.
13150 * remote-fileio.c: Fix common/ includes.
13151 * regcache.h: Fix common/ includes.
13152 * regcache.c: Fix common/ includes.
13153 * record-btrace.c: Fix common/ includes.
13154 * python/python.c: Fix common/ includes.
13155 * python/py-type.c: Fix common/ includes.
13156 * python/py-inferior.c: Fix common/ includes.
13157 * progspace.h: Fix common/ includes.
13158 * producer.c: Fix common/ includes.
13159 * procfs.c: Fix common/ includes.
13160 * proc-api.c: Fix common/ includes.
13161 * printcmd.c: Fix common/ includes.
13162 * ppc-linux-nat.c: Fix common/ includes.
13163 * parser-defs.h: Fix common/ includes.
13164 * osdata.c: Fix common/ includes.
13165 * obsd-nat.c: Fix common/ includes.
13166 * nat/x86-linux.c: Fix common/ includes.
13167 * nat/x86-linux-dregs.c: Fix common/ includes.
13168 * nat/x86-dregs.h: Fix common/ includes.
13169 * nat/x86-dregs.c: Fix common/ includes.
13170 * nat/ppc-linux.c: Fix common/ includes.
13171 * nat/mips-linux-watch.h: Fix common/ includes.
13172 * nat/mips-linux-watch.c: Fix common/ includes.
13173 * nat/linux-waitpid.c: Fix common/ includes.
13174 * nat/linux-ptrace.h: Fix common/ includes.
13175 * nat/linux-ptrace.c: Fix common/ includes.
13176 * nat/linux-procfs.c: Fix common/ includes.
13177 * nat/linux-personality.c: Fix common/ includes.
13178 * nat/linux-osdata.c: Fix common/ includes.
13179 * nat/linux-namespaces.c: Fix common/ includes.
13180 * nat/linux-btrace.h: Fix common/ includes.
13181 * nat/linux-btrace.c: Fix common/ includes.
13182 * nat/fork-inferior.c: Fix common/ includes.
13183 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13184 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13185 * nat/aarch64-linux.c: Fix common/ includes.
13186 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13187 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13188 * namespace.h: Fix common/ includes.
13189 * mips-linux-tdep.c: Fix common/ includes.
13190 * minsyms.c: Fix common/ includes.
13191 * mi/mi-parse.h: Fix common/ includes.
13192 * mi/mi-main.c: Fix common/ includes.
13193 * mi/mi-cmd-env.c: Fix common/ includes.
13194 * memrange.h: Fix common/ includes.
13195 * memattr.c: Fix common/ includes.
13196 * maint.h: Fix common/ includes.
13197 * maint.c: Fix common/ includes.
13198 * main.c: Fix common/ includes.
13199 * machoread.c: Fix common/ includes.
13200 * location.c: Fix common/ includes.
13201 * linux-thread-db.c: Fix common/ includes.
13202 * linux-nat.c: Fix common/ includes.
13203 * linux-fork.c: Fix common/ includes.
13204 * inline-frame.c: Fix common/ includes.
13205 * infrun.c: Fix common/ includes.
13206 * inflow.c: Fix common/ includes.
13207 * inferior.h: Fix common/ includes.
13208 * inferior.c: Fix common/ includes.
13209 * infcmd.c: Fix common/ includes.
13210 * inf-ptrace.c: Fix common/ includes.
13211 * inf-child.c: Fix common/ includes.
13212 * ia64-linux-nat.c: Fix common/ includes.
13213 * i387-tdep.c: Fix common/ includes.
13214 * i386-tdep.c: Fix common/ includes.
13215 * i386-linux-tdep.c: Fix common/ includes.
13216 * i386-linux-nat.c: Fix common/ includes.
13217 * i386-go32-tdep.c: Fix common/ includes.
13218 * i386-fbsd-tdep.c: Fix common/ includes.
13219 * i386-fbsd-nat.c: Fix common/ includes.
13220 * guile/scm-type.c: Fix common/ includes.
13221 * guile/guile.c: Fix common/ includes.
13222 * go32-nat.c: Fix common/ includes.
13223 * gnu-nat.c: Fix common/ includes.
13224 * gdbthread.h: Fix common/ includes.
13225 * gdbarch-selftests.c: Fix common/ includes.
13226 * gdb_usleep.c: Fix common/ includes.
13227 * gdb_select.h: Fix common/ includes.
13228 * gdb_bfd.c: Fix common/ includes.
13229 * gcore.c: Fix common/ includes.
13230 * fork-child.c: Fix common/ includes.
13231 * findvar.c: Fix common/ includes.
13232 * fbsd-nat.c: Fix common/ includes.
13233 * event-top.c: Fix common/ includes.
13234 * event-loop.c: Fix common/ includes.
13235 * dwarf2read.c: Fix common/ includes.
13236 * dwarf2loc.c: Fix common/ includes.
13237 * dwarf2-frame.c: Fix common/ includes.
13238 * dwarf-index-cache.c: Fix common/ includes.
13239 * dtrace-probe.c: Fix common/ includes.
13240 * disasm-selftests.c: Fix common/ includes.
13241 * defs.h: Fix common/ includes.
13242 * csky-tdep.c: Fix common/ includes.
13243 * cp-valprint.c: Fix common/ includes.
13244 * cp-support.h: Fix common/ includes.
13245 * cp-support.c: Fix common/ includes.
13246 * corelow.c: Fix common/ includes.
13247 * completer.h: Fix common/ includes.
13248 * completer.c: Fix common/ includes.
13249 * compile/compile.c: Fix common/ includes.
13250 * compile/compile-loc2c.c: Fix common/ includes.
13251 * compile/compile-cplus-types.c: Fix common/ includes.
13252 * compile/compile-cplus-symbols.c: Fix common/ includes.
13253 * command.h: Fix common/ includes.
13254 * cli/cli-dump.c: Fix common/ includes.
13255 * cli/cli-cmds.c: Fix common/ includes.
13256 * charset.c: Fix common/ includes.
13257 * build-id.c: Fix common/ includes.
13258 * btrace.h: Fix common/ includes.
13259 * btrace.c: Fix common/ includes.
13260 * breakpoint.h: Fix common/ includes.
13261 * breakpoint.c: Fix common/ includes.
13262 * ax.h:
13263 (enum agent_op): Fix common/ includes.
13264 * ax-general.c (struct aop_map): Fix common/ includes.
13265 * ax-gdb.c: Fix common/ includes.
13266 * auxv.c: Fix common/ includes.
13267 * auto-load.c: Fix common/ includes.
13268 * arm-tdep.c: Fix common/ includes.
13269 * arch/riscv.c: Fix common/ includes.
13270 * arch/ppc-linux-common.c: Fix common/ includes.
13271 * arch/i386.c: Fix common/ includes.
13272 * arch/arm.c: Fix common/ includes.
13273 * arch/arm-linux.c: Fix common/ includes.
13274 * arch/arm-get-next-pcs.c: Fix common/ includes.
13275 * arch/amd64.c: Fix common/ includes.
13276 * arch/aarch64.c: Fix common/ includes.
13277 * arch/aarch64-insn.c: Fix common/ includes.
13278 * arch-utils.c: Fix common/ includes.
13279 * amd64-windows-tdep.c: Fix common/ includes.
13280 * amd64-tdep.c: Fix common/ includes.
13281 * amd64-sol2-tdep.c: Fix common/ includes.
13282 * amd64-obsd-tdep.c: Fix common/ includes.
13283 * amd64-nbsd-tdep.c: Fix common/ includes.
13284 * amd64-linux-tdep.c: Fix common/ includes.
13285 * amd64-linux-nat.c: Fix common/ includes.
13286 * amd64-fbsd-tdep.c: Fix common/ includes.
13287 * amd64-fbsd-nat.c: Fix common/ includes.
13288 * amd64-dicos-tdep.c: Fix common/ includes.
13289 * amd64-darwin-tdep.c: Fix common/ includes.
13290 * agent.c: Fix common/ includes.
13291 * ada-lang.h: Fix common/ includes.
13292 * ada-lang.c: Fix common/ includes.
13293 * aarch64-tdep.c: Fix common/ includes.
13294
2f5c153e
TT
132952019-01-25 Tom Tromey <tom@tromey.com>
13296
13297 * common/create-version.sh: Use common/version.h.
13298
adc6a863
PA
132992019-01-24 Pedro Alves <palves@redhat.com>
13300
13301 * infrun.c (signal_stop, signal_print, signal_program)
13302 (signal_catch, signal_pass): Now arrays instead of pointers.
13303 (update_signals_program_target, do_target_resume)
13304 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13305 * linux-nat.c (linux_nat_target::pass_signals)
13306 (linux_nat_target::create_inferior, linux_nat_target::attach):
13307 Adjust.
13308 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13309 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13310 * procfs.c (procfs_target::pass_signals): Adjust.
13311 * record-full.c (record_full_target::resume): Adjust.
13312 * remote.c (remote_target::pass_signals)
13313 (remote_target::program_signals): Adjust.
13314 * target-debug.h (target_debug_print_signals): Now takes a
13315 gdb::array_view as parameter. Adjust.
13316 * target.h (target_ops) <pass_signals, program_signals>: Replace
13317 pointer and length parameters with gdb::array_view.
13318 (target_pass_signals, target_program_signals): Likewise.
13319 * target-delegates.c: Regenerate.
13320
3046d67a
PA
133212019-01-24 Pedro Alves <palves@redhat.com>
13322
13323 * common/forward-scope-exit.h
13324 (forward_scope_exit::forward_scope_exit): Pass arguments to
13325 m_bind_function directly, instead of creating a std::bind and
13326 copying that.
13327
353229bf
AH
133282019-01-24 Alan Hayward <alan.hayward@arm.com>
13329
13330 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13331 for static members.
13332 (pass_in_v_vfp_candidate): Likewise.
13333
311dc83a
TT
133342019-01-23 Tom Tromey <tom@tromey.com>
13335 Pedro Alves <palves@redhat.com>
13336
13337 * regcache.c (class regcache_invalidator): Remove.
13338 (regcache::raw_write): Use make_scope_exit.
13339
296bd123
TT
133402019-01-23 Tom Tromey <tom@tromey.com>
13341
13342 * ui-out.h (class ui_out_emit_type): Update comment.
13343
979a0d13
TT
133442019-01-23 Tom Tromey <tom@tromey.com>
13345
13346 * infrun.c (fetch_inferior_event): Update comment.
13347
d238133d
TT
133482019-01-23 Tom Tromey <tom@tromey.com>
13349 Pedro Alves <palves@redhat.com>
13350
13351 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13352 parameter.
13353 (fetch_inferior_event): Use SCOPE_EXIT.
13354
13355
9885e6bb
TT
133562019-01-23 Tom Tromey <tom@tromey.com>
13357 Pedro Alves <palves@redhat.com>
13358
13359 * infrun.c (disable_thread_events): Delete.
13360 (stop_all_threads): Use SCOPE_EXIT.
13361
286526c1
TT
133622019-01-23 Tom Tromey <tom@tromey.com>
13363 Pedro Alves <palves@redhat.com>
13364
13365 * symfile.c: Include forward-scope-exit.h.
13366 (clear_symtab_users_cleanup): Replace forward declaration with
13367 a FORWARD_SCOPE_EXIT.
13368 (syms_from_objfile_1): Use the forward_scope_exit and
13369 gdb::optional instead of cleanup_function.
13370 (reread_symbols): Use the forward_scope_exit instead of
13371 cleanup_function.
13372 (clear_symtab_users_cleanup): Remove function.
13373
1db93f14
TT
133742019-01-23 Tom Tromey <tom@tromey.com>
13375 Pedro Alves <palves@redhat.com>
13376
13377 * linux-nat.c: Include scope-exit.h.
13378 (cleanup_target_stop): Remove.
13379 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13380 SCOPE_EXIT.
13381
2cc83d1e
TT
133822019-01-23 Tom Tromey <tom@tromey.com>
13383 Pedro Alves <palves@redhat.com>
13384
13385 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13386 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13387
694c6bf5
TT
133882019-01-23 Tom Tromey <tom@tromey.com>
13389 Andrew Burgess <andrew.burgess@embecosm.com>
13390 Pedro Alves <palves@redhat.com>
13391
13392 * infrun.c (fetch_inferior_event): Use scope_exit.
13393 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13394 * top.c (execute_command): Use scope_exit.
13395 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13396 * utils.c (do_bpstat_clear_actions_cleanup)
13397 (make_bpstat_clear_actions_cleanup): Remove.
13398
4c41382a
TT
133992019-01-23 Tom Tromey <tom@tromey.com>
13400 Pedro Alves <palves@redhat.com>
13401
13402 * infrun.c: Include "common/scope-exit.h"
13403 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13404 (wait_for_inferior): Use SCOPE_EXIT.
13405 (fetch_inferior_event): Use scope_exit.
13406
89f8fb50
TT
134072019-01-23 Tom Tromey <tom@tromey.com>
13408 Pedro Alves <palves@redhat.com>
13409
13410 * breakpoint.c (create_breakpoint): Remove cleanup.
13411
5419bdae
TT
134122019-01-23 Tom Tromey <tom@tromey.com>
13413 Andrew Burgess <andrew.burgess@embecosm.com>
13414 Pedro Alves <palves@redhat.com>
13415
e587ef42
PA
134162019-01-23 Pedro Alves <palves@redhat.com>
13417
13418 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13419
77f0e74c
PA
134202019-01-23 Pedro Alves <palves@redhat.com>
13421 Andrew Burgess <andrew.burgess@embecosm.com>
13422
13423 * gdbthread.h: Include "common/forward-scope-exit.h".
13424 (scoped_finish_thread_state): Redefine custom class in terms of
13425 forward_scope_exit.
13426
5b9b3e53
PA
134272019-01-23 Pedro Alves <palves@redhat.com>
13428 Andrew Burgess <andrew.burgess@embecosm.com>
13429
13430 * common/forward-scope-exit.h: New file.
13431
54b65c9b
PA
134322019-01-23 Pedro Alves <palves@redhat.com>
13433 Andrew Burgess <andrew.burgess@embecosm.com>
13434 Tom Tromey <tom@tromey.com>
13435
13436 * common/scope-exit.h: New file.
13437
cf08fb29
PA
134382019-01-23 Pedro Alves <palves@redhat.com>
13439
13440 * common/preprocessor.h (ESC): Rename to ...
13441 (ESC_PARENS): ... this.
13442 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13443 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13444
ae73e2e2
TT
134452019-01-23 Tom Tromey <tom@tromey.com>
13446
13447 * language.h (class scoped_switch_to_sym_language_if_auto):
13448 Initialize m_lang in both cases.
13449
6594e122
AH
134502019-01-23 Alan Hayward <alan.hayward@arm.com>
13451
13452 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13453 with XCNEW.
13454
a7c9855d
TT
134552019-01-22 Tom Tromey <tom@tromey.com>
13456
13457 * corelow.c: Do not include sys/file.h.
13458
93cc1d53
TT
134592019-01-22 Tom Tromey <tom@tromey.com>
13460
13461 * tui/tui-wingeneral.h: Include gdb_curses.h.
13462
38561778
TT
134632019-01-22 Tom Tromey <tom@tromey.com>
13464
13465 * source-cache.h (class source_cache) <get_source_lines,
13466 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13467
37b3ab5b
TT
134682019-01-22 Tom Tromey <tom@tromey.com>
13469
13470 * remote-fileio.h (struct remote_target): Declare.
13471
3fabc016
TT
134722019-01-22 Tom Tromey <tom@tromey.com>
13473
13474 * python/py-arch.c: Do not include py-ref.h.
13475 * python/py-bpevent.c: Do not include py-ref.h.
13476 * python/py-cmd.c: Do not include py-ref.h.
13477 * python/py-continueevent.c: Do not include py-ref.h.
13478 * python/py-event.h: Do not include py-ref.h.
13479 * python/py-evtregistry.c: Do not include py-ref.h.
13480 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13481 * python/py-frame.c: Do not include py-ref.h.
13482 * python/py-framefilter.c: Do not include py-ref.h.
13483 * python/py-function.c: Do not include py-ref.h.
13484 * python/py-infevents.c: Do not include py-ref.h.
13485 * python/py-linetable.c: Do not include py-ref.h.
13486 * python/py-objfile.c: Do not include py-ref.h.
13487 * python/py-param.c: Do not include py-ref.h.
13488 * python/py-prettyprint.c: Do not include py-ref.h.
13489 * python/py-progspace.c: Do not include py-ref.h.
13490 * python/py-symbol.c: Do not include py-ref.h.
13491 * python/py-symtab.c: Do not include py-ref.h.
13492 * python/py-type.c: Do not include py-ref.h.
13493 * python/py-unwind.c: Do not include py-ref.h.
13494 * python/py-utils.c: Do not include py-ref.h.
13495 * python/py-value.c: Do not include py-ref.h.
13496 * python/py-varobj.c: Do not include py-ref.h.
13497 * python/py-xmethods.c: Do not include py-ref.h.
13498 * python/python.c: Do not include py-ref.h.
13499 * varobj.c: Do not include py-ref.h.
13500
6b4d7774
TT
135012019-01-22 Tom Tromey <tom@tromey.com>
13502
13503 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13504 keyword for bcache.
13505
7af7e9b5
TT
135062019-01-22 Tom Tromey <tom@tromey.com>
13507
13508 * compile/compile-cplus-types.c: Remove a comment by #include.
13509
951d1049
TT
135102019-01-22 Tom Tromey <tom@tromey.com>
13511
13512 * compile/gcc-c-plugin.h: Include compile-internal.h.
13513
d65d5705
TT
135142019-01-22 Tom Tromey <tom@tromey.com>
13515
13516 * stabsread.c (EXTERN): Do not define.
13517 (symnum, next_symbol_text_func, processing_gcc_compilation)
13518 (within_function, global_sym_chain, global_stabs)
13519 (previous_stab_code, this_object_header_files)
13520 (n_this_object_header_files)
13521 (n_allocated_this_object_header_files): Define.
13522 * stabsread.h (EXTERN): Never define. Use "extern".
13523
b6fb1ee5
PW
135242019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13525
13526 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13527 history_value.
13528
be6d4f74
TT
135292019-01-21 Tom Tromey <tom@tromey.com>
13530
13531 * ui-out.c: Fix includes.
13532 * tui/tui-source.c: Fix includes.
13533 * target.c: Fix includes.
13534 * remote.c: Fix includes.
13535 * regcache.c: Fix includes.
13536 * python/py-block.c: Fix includes.
13537 * printcmd.c: Fix includes.
13538 * or1k-tdep.c: Fix includes.
13539 * mi/mi-main.c: Fix includes.
13540 * m32r-tdep.c: Fix includes.
13541 * csky-tdep.c: Fix includes.
13542 * compile/compile-cplus-types.c: Fix includes.
13543 * cli/cli-interp.c: Fix includes.
13544
73021deb
AH
135452019-01-21 Alan Hayward <alan.hayward@arm.com>
13546
13547 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13548 for padding.
13549
7932255d
TT
135502019-01-16 Tom Tromey <tom@tromey.com>
13551
13552 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13553 earlier.
13554 (struct objfile) <msymbols_range>: Move from top level.
13555 <msymbols>: New method.
13556 (class objfile_msymbols): Remove.
13557 * symtab.c (default_collect_symbol_completion_matches_break_on):
13558 Update.
13559 * symmisc.c (dump_msymbols): Update.
13560 * stabsread.c (scan_file_globals): Update.
13561 * objc-lang.c (info_selectors_command, info_classes_command)
13562 (find_methods): Update.
13563 * minsyms.c (find_solib_trampoline_target): Update.
13564 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13565 * coffread.c (coff_symfile_read): Update.
13566 * ada-lang.c (ada_lookup_simple_minsym)
13567 (ada_collect_symbol_completion_matches): Update.
13568
604b1bfb
TT
135692019-01-16 Tom Tromey <tom@tromey.com>
13570
13571 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13572 type. Remove no-argument constructor.
13573 <iterator::operator++>: Simplify.
13574 <begin>: Update.
13575 <end>: Use minimal_symbol_count.
13576
f252c6d5
TT
135772019-01-16 Tom Tromey <tom@tromey.com>
13578
13579 * objfiles.h (struct objfile) <psymtabs>: New method.
13580 (class objfile_psymtabs): Remove.
13581 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13582 typedef.
13583 <range>: New method.
13584 (require_partial_symbols): Change return type.
13585 * psymtab.c (require_partial_symbols)
13586 (psym_expand_symtabs_matching): Update.
13587 * mdebugread.c (parse_partial_symbols): Update.
13588 * dbxread.c (dbx_end_psymtab): Update.
13589
b669c953
TT
135902019-01-15 Tom Tromey <tom@tromey.com>
13591
13592 * symtab.c (lookup_objfile_from_block)
13593 (lookup_symbol_in_objfile_symtabs)
13594 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13595 (find_line_symtab, info_sources_command)
13596 (default_collect_symbol_completion_matches_break_on)
13597 (make_source_files_completion_list): Update.
13598 * symmisc.c (print_objfile_statistics, dump_objfile)
13599 (maintenance_print_symbols, maintenance_info_symtabs)
13600 (maintenance_check_symtabs, maintenance_info_line_tables):
13601 Update.
13602 * source.c (select_source_symtab)
13603 (forget_cached_source_info_for_objfile): Update.
13604 * objfiles.h (class objfile_compunits): Remove.
13605 (struct objfile) <compunits_range>: New typedef.
13606 (compunits): New method.
13607 * objfiles.c (objfile_relocate1): Update.
13608 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13609 * maint.c (count_symtabs_and_blocks): Update.
13610 * linespec.c (iterate_over_all_matching_symtabs): Update.
13611 * cp-support.c (add_symbol_overload_list_qualified): Update.
13612 * coffread.c (coff_symtab_read): Update.
13613 * ada-lang.c (add_nonlocal_symbols)
13614 (ada_collect_symbol_completion_matches)
13615 (ada_add_global_exceptions): Update.
13616
7e955d83
TT
136172019-01-15 Tom Tromey <tom@tromey.com>
13618
13619 * progspace.h (program_space) <objfiles_safe_range>: New
13620 typedef.
13621 <objfiles_safe>: New method.
13622 * objfiles.h (class all_objfiles_safe): Remove.
13623 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13624 * jit.c (jit_inferior_exit_hook): Update.
13625
2030c079
TT
136262019-01-17 Tom Tromey <tom@tromey.com>
13627
13628 * progspace.h (program_space) <objfiles_range>: New typedef.
13629 <objfiles>: New method.
13630 <objfiles_head>: Rename from objfiles.
13631 (object_files): Update.
13632 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13633 * guile/scm-pretty-print.c
13634 (ppscm_find_pretty_printer_from_objfiles): Update.
13635 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13636 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13637 Update.
13638 * python/py-progspace.c (pspy_get_objfiles): Update.
13639 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13640 Update.
13641 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13642 (objfpy_lookup_objfile_by_build_id): Update.
13643 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13644 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13645 Update.
13646 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13647 (expand_symtab_containing_pc, lookup_objfile_from_block)
13648 (lookup_static_symbol, basic_lookup_transparent_type)
13649 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13650 (find_line_symtab, info_sources_command)
13651 (default_collect_symbol_completion_matches_break_on)
13652 (make_source_files_completion_list, find_main_name): Update.
13653 * symmisc.c (print_symbol_bcache_statistics)
13654 (print_objfile_statistics, maintenance_print_symbols)
13655 (maintenance_print_msymbols, maintenance_print_objfiles)
13656 (maintenance_info_symtabs, maintenance_check_symtabs)
13657 (maintenance_expand_symtabs, maintenance_info_line_tables):
13658 Update.
13659 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13660 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13661 (map_overlay_command, unmap_overlay_command)
13662 (simple_overlay_update, expand_symtabs_matching)
13663 (map_symbol_filenames): Update.
13664 * symfile-debug.c (set_debug_symfile): Update.
13665 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13666 Update.
13667 * source.c (select_source_symtab, forget_cached_source_info):
13668 Update.
13669 * solib.c (solib_read_symbols): Update.
13670 * solib-spu.c (append_ocl_sos): Update.
13671 * psymtab.c (maintenance_print_psymbols)
13672 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13673 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13674 * printcmd.c (info_symbol_command): Update.
13675 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13676 Update.
13677 * objfiles.h (class all_objfiles): Remove.
13678 * objfiles.c (have_partial_symbols, have_full_symbols)
13679 (have_minimal_symbols, qsort_cmp, update_section_map)
13680 (shared_objfile_contains_address_p)
13681 (default_iterate_over_objfiles_in_search_order): Update.
13682 * objc-lang.c (info_selectors_command, info_classes_command)
13683 (find_methods): Update.
13684 * minsyms.c (find_solib_trampoline_target): Update.
13685 * maint.c (maintenance_info_sections)
13686 (maintenance_translate_address, count_symtabs_and_blocks):
13687 Update.
13688 * main.c (captured_main_1): Update.
13689 * linux-thread-db.c (try_thread_db_load_from_pdir)
13690 (has_libpthread): Update.
13691 * linespec.c (iterate_over_all_matching_symtabs)
13692 (search_minsyms_for_name): Update.
13693 * jit.c (jit_find_objf_with_entry_addr): Update.
13694 * hppa-tdep.c (find_unwind_entry)
13695 (hppa_lookup_stub_minimal_symbol): Update.
13696 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13697 Update.
13698 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13699 (elf_gnu_ifunc_resolve_by_got): Update.
13700 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13701 * dwarf-index-write.c (save_gdb_index_command): Update.
13702 * cp-support.c (add_symbol_overload_list_qualified): Update.
13703 * breakpoint.c (create_overlay_event_breakpoint)
13704 (create_longjmp_master_breakpoint)
13705 (create_std_terminate_master_breakpoint)
13706 (create_exception_master_breakpoint): Update.
13707 * blockframe.c (find_pc_partial_function): Update.
13708 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13709 (ada_collect_symbol_completion_matches)
13710 (ada_add_global_exceptions): Update.
13711
776489e0
TT
137122019-01-17 Tom Tromey <tom@tromey.com>
13713
13714 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13715 declare VEC.
13716 (solib_target_parse_libraries): Change return type.
13717 (library_list_start_segment, library_list_start_section)
13718 (library_list_end_library, library_list_start_library); Update.
13719 (solib_target_free_library_list): Remove.
13720 (solib_target_parse_libraries): Remove cleanup. Change return
13721 type.
13722 (solib_target_current_sos): Update.
13723
6471e7d2
TT
137242019-01-17 Tom Tromey <tromey@bapiya>
13725
13726 * valprint.c: Replace "the the" with "the".
13727 * symtab.c: Replace "the the" with "the".
13728 * solib.c: Replace "the the" with "the".
13729 * solib-dsbt.c: Replace "the the" with "the".
13730 * linespec.c: Replace "the the" with "the".
13731 * dwarf2loc.h: Replace "the the" with "the".
13732 * amd64-windows-tdep.c: Replace "the the" with "the".
13733 * aarch64-tdep.c: Replace "the the" with "the".
13734
c24bdb02
KS
137352019-01-16 Keith Seitz <keiths@redhat.com>
13736
13737 PR gdb/23773
13738 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13739 <builder>: Rename to ..
13740 <m_builder>: ... this and make private.
13741 (dwarf2_cu::get_builder): New method. Change all users of
13742 `builder' to use this method.
13743 (dwarf2_start_symtab): Move to ...
13744 (dwarf2_cu::start_symtab): ... here. Update all callers
13745 (setup_type_unit_groups): Move to ...
13746 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13747 callers.
13748 (dwarf2_cu::reset_builder): New method.
13749 (process_full_compunit, process_full_type_unit): Use
13750 dwarf2_cu::reset_builder.
13751 (follow_die_offset): Record the ancestor CU if it is different
13752 from the followed DIE's CU.
13753 (follow_die_sig_1): Likewise.
13754
8d64371b
TT
137552019-01-15 Tom Tromey <tom@tromey.com>
13756
13757 * remote.c (class remote_state) <buf>: Now a char_vector.
13758 <buf_size>: Remove.
13759 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13760 parameter.
13761 (remote_target::getpkt_or_notif_sane_1)
13762 (remote_target::getpkt_sane)
13763 (remote_target::getpkt_or_notif_sane): Likewise.
13764 (class remote_target) <putpkt>: New overload.
13765 (remote_target::read_frame): Change type of "buf_p". Remove
13766 sizeof_p parameter.
13767 (packet_ok): New overload.
13768 (packet_check_result): New overload.
13769 Update all uses.
13770
bb277751
TT
137712019-01-14 Tom Tromey <tom@tromey.com>
13772
13773 * remote-notif.c (handle_notification, remote_notif_ack)
13774 (remote_notif_parse): Make "buf" const.
13775 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13776 const.
13777 (remote_notif_parse, remote_notif_ack, handle_notification):
13778 Likewise.
13779 * remote.c (remote_notif_stop_parse): Make "buf" const.
13780 (remote_target::remote_parse_stop_reply): Make "buf" const.
13781 (remote_notif_stop_ack): Make "buf" const.
13782
05be00a8
TT
137832019-01-14 Tom Tromey <tom@tromey.com>
13784
13785 * remote.c (remote_console_output): Make parameter const.
13786
491adeca
TT
137872019-01-14 Tom Tromey <tom@tromey.com>
13788
13789 * target-debug.h (target_debug_print_signals): Constify.
13790 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13791 * procfs.c (procfs_target::pass_signals): Update.
13792 * linux-nat.c (linux_nat_target::pass_signals): Update.
13793 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13794 * target-delegates.c: Rebuild.
13795 * remote.c (remote_target::program_signals): Update.
13796 (remote_target::pass_signals): Update.
13797 * target.c (target_pass_signals): Constify argument.
13798 (target_program_signals): Likewise.
13799 * target.h (struct target_ops) <pass_signals, program_signals>:
13800 Constify argument.
13801 (target_pass_signals, target_program_signals): Constify argument.
13802
bbd94648
TT
138032019-01-14 Tom Tromey <tom@tromey.com>
13804
13805 PR tui/28819:
13806 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13807
6f072a10
PFC
138082019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13809
13810 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13811 field.
13812 * rs6000-tdep.c: Include reggroups.h.
13813 (IS_V_ALIAS_PSEUDOREG): Define.
13814 (rs6000_register_name): Return names for the "vX" aliases.
13815 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13816 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13817 aliases. Call default_register_reggroup_p for all other
13818 pseudo-registers.
13819 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13820 New functions.
13821 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13822 Handle "vX" aliases.
13823 (v_alias_pseudo_register_collect): New function.
13824 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13825 (rs6000_gdbarch_init): Initialize "vX" aliases as
13826 pseudo-registers. Restore registration of
13827 rs6000_pseudo_register_reggroup_p with
13828 set_tdesc_pseudo_register_reggroup_p.
13829
1a782351
MF
138302019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13831
13832 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13833 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13834 set_gdbarch_num_pseudo_regs.
13835
d73cff18
PW
138362019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13837
13838 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13839 Remove arg prefixname, add do_set and do_show.
13840 Add member functions set_list and show_list.
13841 * cli/cli-style.c (class cli_style_option): Update accordingly.
13842 (style_set_list): Move to file scope.
13843 (style_show_list): Likewise.
13844 (set_style): Call help_list.
13845 (show_style): Call cmd_show_list.
13846 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13847 Update to use the new macro.
13848
60a90376
JB
138492019-10-12 Joel Brobecker <brobecker@adacore.com>
13850
13851 * ada-lang.c (_initialize_ada_language): Expand the help text
13852 for the "catch exception" command.
13853
9d7c67bf
PW
138542019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13855
13856 * symtab.c (matching_obj_sections): Initialize obj,
13857 declare it closer to its usage.
13858
7cf47dc4
TT
138592019-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13862 (basic_inf_threads_range): Remove.
13863 (inf_threads_range, inf_non_exited_threads_range)
13864 (safe_inf_threads_range): Use next_adapter.
13865
d3cb6808
KS
138662019-01-10 Keith Seitz <keiths@redhat.com>
13867
13868 PR gdb/23712
13869 PR symtab/23010
13870 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13871 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13872
63a20375
KS
138732019-01-10 Keith Seitz <keiths@redhat.com>
13874
13875 PR gdb/23712
13876 PR symtab/23010
13877 * dictionary.c (pending_to_vector): Remove.
13878 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13879 Remove _1 suffix, replacing functions of the same name. Update
13880 all callers.
13881 (dict_create_hashed, dict_create_hashed_expandable)
13882 (dict_create_linear, dict_create_linear_expandable, dict_free)
13883 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13884 Make functions static.
13885
b026f593
KS
138862019-01-10 Keith Seitz <keiths@redhat.com>
13887
13888 PR gdb/23712
13889 PR symtab/23010
13890 * dictionary.h (struct dictionary): Replace declaration with
13891 multidictionary.
13892 (dict_create_hashed, dict_create_hashed_expandable)
13893 (dict_create_linear, dict_create_linear_expandable)
13894 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13895 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13896 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13897 taking multidictionary argument.
13898 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13899 * block.h (struct block) <dict>: Change to multidictionary
13900 and rename `multidict'.
13901 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13902 symmisc.c: Update all dictionary references to multidictionary.
13903
c7748ee9
KS
139042019-01-10 Keith Seitz <keiths@redhat.com>
13905
13906 PR gdb/23712
13907 PR symtab/23010
13908 * dictionary.c: Include unordered_map.
13909 (pending_to_vector): New function.
13910 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13911 Rewrite the non-"_1" functions to take vector instead
13912 of linked list.
13913 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13914 "new" _1 versions of the same name.
13915 (multidictionary): Define.
13916 (std::hash<enum language): New definition.
13917 (collate_pending_symbols_by_language, mdict_create_hashed)
13918 (mdict_create_hashed_expandable, mdict_create_linear)
13919 (mdict_create_linear_expandable, mdict_free)
13920 (find_language_dictionary, create_new_language_dictionary)
13921 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13922 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13923 (mdict_size, mdict_empty): New functions.
13924 * dictionary.h (mdict_iterator): Define.
13925
67aa1f3c
PA
139262019-01-10 Pedro Alves <palves@redhat.com>
13927
13928 * breakpoint.c (read_uploaded_action)
13929 (create_tracepoint_from_upload): Adjust to use
13930 gdb::unique_xmalloc_ptr.
13931 * ctf.c (ctf_write_uploaded_tp):
13932 (SET_ARRAY_FIELD): Use emplace_back.
13933 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13934 * tracefile-tfile.c (tfile_write_uploaded_tp):
13935 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13936 gdb::unique_xmalloc_ptr.
13937 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13938 at_string, cond_string, cmd_strings>: Replace char pointers
13939 with gdb::unique_xmalloc_ptr.
13940
2f667667
PA
139412019-01-10 Pedro Alves <palves@redhat.com>
13942
13943 * solib-target.c (library_list_start_library): Don't xstrdup name.
13944
36cb7237
PA
139452019-01-10 Pedro Alves <palves@redhat.com>
13946
13947 * mdebugread.c (parse_partial_symbols): Use
13948 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13949
da584958
AB
139502019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13951
13952 * linux-fork.c (scoped_switch_fork_info)
13953 <~scoped_switch_fork_info>: Fix incorrect variable name.
13954
1ef8573c
AB
139552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * linux-fork.c (scoped_switch_fork_info)
13958 <scoped_switch_fork_info>: Make explicit.
13959 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13960
8d7bcccb
TT
139612019-01-10 Tom Tromey <tom@tromey.com>
13962
13963 * objfiles.h (objfile::reset_psymtabs): Update.
13964 * objfiles.c (objfile::objfile): Update.
13965 * psymtab.h (psymtab_storage::obstack): Update.
13966 (psymtab_storage::m_obstack): Use gdb::optional.
13967 (class psymtab_storage): Update comment. Remove objfile
13968 parameter.
13969 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13970
b596a3c7
TT
139712019-01-10 Tom Tromey <tom@tromey.com>
13972
13973 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13974 <free_psymtabs>: Now private.
13975 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13976 (allocate_psymtab): Use new method.
13977
a9342b62
TT
139782019-01-10 Tom Tromey <tom@tromey.com>
13979
13980 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13981 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13982 * mdebugread.c (parse_partial_symbols): Use
13983 allocate_dependencies.
13984 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13985 allocate_dependencies.
13986 (process_psymtab_comp_unit_reader)
13987 (build_type_psymtab_dependencies): Likewise.
13988 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13989
5af70966
TT
139902019-01-10 Tom Tromey <tom@tromey.com>
13991
13992 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13993 PSYMBOL_SET_LANGUAGE.
13994 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13995
5923a04c
TT
139962019-01-10 Tom Tromey <tom@tromey.com>
13997
13998 * psymtab.h (psymtab_storage::obstack): New method.
13999 <m_obstack>: Rename from obstack; now private.
14000 * psymtab.c (psymtab_storage): Update.
14001 * dwarf2read.c (create_addrmap_from_index)
14002 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14003 Update.
14004
6d6a12bf
TT
140052019-01-10 Tom Tromey <tom@tromey.com>
14006
14007 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14008 * objfiles.h (objfile::reset_psymtabs): New method.
14009
d320c2b5
TT
140102019-01-10 Tom Tromey <tom@tromey.com>
14011
14012 * symmisc.c (print_symbol_bcache_statistics): Update.
14013 (print_objfile_statistics): Update.
14014 * symfile.c (reread_symbols): Update.
14015 * psymtab.h (class psymtab_storage): New.
14016 * psymtab.c (psymtab_storage): New constructor.
14017 (~psymtab_storage): New destructor.
14018 (require_partial_symbols): Update.
14019 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14020 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14021 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14022 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14023 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14024 (start_psymtab_common, end_psymtab_common)
14025 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14026 (allocate_psymtab): Update.
14027 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14028 Update.
14029 (dump_psymtab_addrmap, maintenance_print_psymbols)
14030 (maintenance_check_psymtabs): Update.
14031 (class objfile_psymtabs): Move to objfiles.h.
14032 * psympriv.h (discard_psymtab): Now inline.
14033 (psymtab_discarder::psymtab_discarder): Update.
14034 (psymtab_discarder::~psymtab_discarder): Update.
14035 (ALL_OBJFILE_PSYMTABS): Rewrite.
14036 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14037 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14038 Remove fields.
14039 <partial_symtabs>: New field.
14040 (class objfile_psymtabs): Move from psymtab.h. Update.
14041 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14042 psymbol_cache.
14043 (objfile::~objfile): Don't destroy psymbol_cache.
14044 * mdebugread.c (parse_partial_symbols): Update.
14045 * dwarf2read.c (create_addrmap_from_index)
14046 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14047 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14048 (add_partial_subprogram, dwarf2_ranges_read): Update.
14049 * dwarf-index-write.c (write_address_map)
14050 (write_one_signatured_type, recursively_write_psymbols)
14051 (class debug_names, class debug_names, write_psymtabs_to_index):
14052 Update.
14053
1d94a5a3
TT
140542019-01-10 Tom Tromey <tom@tromey.com>
14055
14056 * symtab.h (SYMBOL_SET_NAMES): Update.
14057 (symbol_set_names): Update.
14058 (MSYMBOL_SET_NAMES): Update.
14059 * symtab.c (symbol_set_names): Change argument to be an
14060 objfile_per_bfd_storage.
14061 * psymtab.c (add_psymbol_to_bcache): Update.
14062 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14063
0f14768a
TT
140642019-01-10 Tom Tromey <tom@tromey.com>
14065
14066 * symtab.c (create_demangled_names_hash): Change argument to be an
14067 objfile_per_bfd_storage.
14068 (symbol_set_names): Update.
14069
6eee24ce
TT
140702019-01-10 Tom Tromey <tom@tromey.com>
14071
14072 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14073 init_psymbol_list.
14074 * psymtab.c (init_psymbol_list): Do nothing if already called.
14075 * psympriv.h (init_psymbol_list): Add comment.
14076 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14077 init_psymbol_list.
14078 * dbxread.c (dbx_symfile_read): Unconditionally call
14079 init_psymbol_list.
14080
75aedd27
TT
140812019-01-10 Tom Tromey <tom@tromey.com>
14082
14083 * xcoffread.c (scan_xcoff_symtab): Update.
14084 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14085 "where".
14086 * mdebugread.c (parse_partial_symbols)
14087 (handle_psymbol_enumerators): Update.
14088 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14089 * dbxread.c (read_dbx_symtab): Update.
14090 * psympriv.h (psymbol_placement): New enum.
14091 (add_psymbol_to_list): Update.
14092
939652a5
TT
140932019-01-10 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14096 static_psymbols parameters.
14097 (scan_xcoff_symtab): Update.
14098 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14099 static_psymbols parameters.
14100 * psympriv.h (start_psymtab_common): Update.
14101 * mdebugread.c (parse_partial_symbols): Update.
14102 * dwarf2read.c (create_partial_symtab): Update.
14103 * dbxread.c (read_dbx_symtab): Update.
14104 (start_psymtab): Remove global_psymbols and static_psymbols
14105 parameters.
14106
baa62830
TT
141072019-01-10 Tom Tromey <tom@tromey.com>
14108
14109 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14110 * psymtab.c (allocate_psymtab): Add comment.
14111 * psympriv.h (allocate_psymtab): Add comment.
14112 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14113 initializations.
14114 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14115
0e8f53ba
TT
141162019-01-10 Tom Tromey <tom@tromey.com>
14117
14118 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14119 Don't declare.
14120 * mipsread.c: Include mdebugread.h.
14121 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14122 Declare.
14123 * elfread.c: Include mdebugread.h.
14124
b22a7c6a
TT
141252019-01-09 Tom Tromey <tom@tromey.com>
14126
14127 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14128 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14129 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14130 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14131 (psym_lookup_symbol, psym_find_last_source_symtab)
14132 (psym_forget_cached_source_info, psym_print_stats)
14133 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14134 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14135 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14136 (psym_find_compunit_symtab_by_address)
14137 (maintenance_print_psymbols, maintenance_info_psymtabs)
14138 (maintenance_check_psymtabs): Use ranged for.
14139 * psymtab.h (class objfile_psymtabs): New.
14140 (require_partial_symbols): Return objfile_psymtabs.
14141 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14142
3b9d3ac2
TT
141432019-01-09 Tom Tromey <tom@tromey.com>
14144
14145 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14146 (find_pc_mapped_section, list_overlays_command)
14147 (map_overlay_command, unmap_overlay_command)
14148 (simple_overlay_update): Use all_objfiles.
14149 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14150 * printcmd.c (info_symbol_command): Use all_objfiles.
14151 * objfiles.h (ALL_OBJSECTIONS): Remove.
14152 * maint.c (maintenance_translate_address): Use all_objfiles.
14153 * gcore.c (gcore_create_callback): Use all_objfiles.
14154 (objfile_find_memory_regions): Likewise.
14155
8b31193a
TT
141562019-01-09 Tom Tromey <tom@tromey.com>
14157
14158 * symtab.c (find_line_symtab, info_sources_command)
14159 (make_source_files_completion_list): Use objfile_compunits.
14160 * source.c (select_source_symtab): Use objfile_compunits.
14161 * objfiles.h (struct objfile): Update comment.
14162 (ALL_OBJFILES): Remove.
14163 (ALL_FILETABS): Remove.
14164 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14165 objfile_compunits.
14166
d5da8b3c
TT
141672019-01-09 Tom Tromey <tom@tromey.com>
14168
14169 * symmisc.c (print_objfile_statistics, dump_objfile)
14170 (maintenance_print_symbols): Use compunit_filetabs.
14171 * source.c (forget_cached_source_info_for_objfile): Use
14172 compunit_filetabs.
14173 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14174 (ALL_FILETABS): Use compunit_filetabs.
14175 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14176 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14177
5accd1a0
TT
141782019-01-09 Tom Tromey <tom@tromey.com>
14179
14180 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14181 (compunit_filetabs): New.
14182 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14183 compunit_filetabs.
14184 (info_sources_command, make_source_files_completion_list): Remove
14185 declaration.
14186 * symmisc.c (print_objfile_statistics, dump_objfile)
14187 (maintenance_print_symbols): Remove declaration.
14188 (maintenance_info_symtabs): Use compunit_filetabs.
14189 (maintenance_info_line_tables): Likewise.
14190 * source.c (select_source_symtab): Change local variable name.
14191 (forget_cached_source_info_for_objfile): Remove declaration.
14192 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14193 * objfiles.c (objfile_relocate1): Remove declaration.
14194 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14195 declaration.
14196 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14197 * coffread.c (coff_symtab_read): Remove declaration.
14198 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14199 compunit_filetabs.
14200
d8aeb77f
TT
142012019-01-09 Tom Tromey <tom@tromey.com>
14202
14203 * symtab.c (lookup_objfile_from_block)
14204 (find_pc_sect_compunit_symtab, search_symbols)
14205 (default_collect_symbol_completion_matches_break_on): Use
14206 objfile_compunits.
14207 * objfiles.h (ALL_COMPUNITS): Remove.
14208 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14209 * cp-support.c (add_symbol_overload_list_qualified): Use
14210 objfile_compunits.
14211 * ada-lang.c (ada_collect_symbol_completion_matches)
14212 (ada_add_global_exceptions): Use objfile_compunits.
14213
592553c4
TT
142142019-01-09 Tom Tromey <tom@tromey.com>
14215
14216 * source.c (select_source_symtab)
14217 (forget_cached_source_info_for_objfile): Remove declaration.
14218 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14219 declaration.
14220 * maint.c (count_symtabs_and_blocks): Remove declaration.
14221 * cp-support.c (add_symbol_overload_list_qualified): Remove
14222 declaration.
14223 * coffread.c (coff_symtab_read): Remove declaration.
14224 * symtab.c (lookup_symbol_in_objfile_symtabs)
14225 (basic_lookup_transparent_type_1): Use objfile_compunits.
14226 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14227 (info_sources_command, search_symbols)
14228 (default_collect_symbol_completion_matches_break_on)
14229 (make_source_files_completion_list): Remove declaration.
14230 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14231 (ada_collect_symbol_completion_matches)
14232 (ada_add_global_exceptions): Remove declaration.
14233 * linespec.c (iterate_over_all_matching_symtabs): Use
14234 objfile_compunits.
14235 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14236 (class objfile_compunits): New.
14237 (ALL_COMPUNITS): Use objfile_compunits.
14238 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14239 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14240 objfile_compunits.
14241 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14242
5325b9bf
TT
142432019-01-09 Tom Tromey <tom@tromey.com>
14244
14245 * symtab.c (search_symbols)
14246 (default_collect_symbol_completion_matches_break_on): Use
14247 objfile_msymbols.
14248 * ada-lang.c (ada_lookup_simple_minsym)
14249 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14250 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14251 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14252 objfile_msymbols.
14253 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14254 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14255 * objc-lang.c (find_methods): Use objfile_msymbols.
14256 (info_selectors_command, info_classes_command): Likewise.
14257 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14258 * objfiles.h (class objfile_msymbols): New.
14259 (ALL_OBJFILE_MSYMBOLS): Remove.
14260 (ALL_MSYMBOLS): Remove.
14261
cac85af2
TT
142622019-01-09 Tom Tromey <tom@tromey.com>
14263
14264 * common/next-iterator.h (next_adapter): Add Iterator template
14265 parameter.
14266 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14267 (class all_objfiles_safe): New.
14268 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14269 * objfiles.c (put_objfile_before): Update comment.
14270 (add_separate_debug_objfile): Likewise.
14271 (free_all_objfiles): Use all_objfiles_safe.
14272 (objfile_purge_solibs): Likewise.
14273
aed57c53
TT
142742019-01-09 Tom Tromey <tom@tromey.com>
14275
14276 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14277 (expand_symtab_containing_pc, lookup_static_symbol)
14278 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14279 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14280 all_objfiles.
14281 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14282 * breakpoint.c (create_overlay_event_breakpoint)
14283 (create_longjmp_master_breakpoint)
14284 (create_std_terminate_master_breakpoint)
14285 (create_exception_master_breakpoint): Use all_objfiles.
14286 * linux-thread-db.c (try_thread_db_load_from_pdir)
14287 (has_libpthread): Use all_objfiles.
14288 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14289 * linespec.c (iterate_over_all_matching_symtabs)
14290 (search_minsyms_for_name): Use all_objfiles.
14291 * maint.c (maintenance_info_sections): Use all_objfiles.
14292 * main.c (captured_main_1): Use all_objfiles.
14293 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14294 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14295 * guile/scm-pretty-print.c
14296 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14297 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14298 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14299 (maintenance_print_msymbols): Use all_objfiles.
14300 * source.c (select_source_symtab): Use all_objfiles.
14301 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14302 * symfile.c (remove_symbol_file_command)
14303 (expand_symtabs_matching, map_symbol_filenames): Use
14304 all_objfiles.
14305 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14306 all_objfiles.
14307 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14308 * objc-lang.c (find_methods): Use all_objfiles.
14309 * objfiles.c (have_partial_symbols, have_full_symbols)
14310 (have_minimal_symbols, qsort_cmp)
14311 (default_iterate_over_objfiles_in_search_order): Use
14312 all_objfiles.
14313 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14314 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14315 (maintenance_check_psymtabs): Use all_objfiles.
14316 (ALL_PSYMTABS): Remove.
14317 * compile/compile-object-run.c (do_module_cleanup): Use
14318 all_objfiles.
14319 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14320 * cp-support.c (add_symbol_overload_list_qualified): Use
14321 all_objfiles.
14322 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14323 Use all_objfiles.
14324 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14325 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14326 all_objfiles.
14327 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14328 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14329 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14330 Uses all_objfiles.
14331 * solib.c (solib_read_symbols): Use all_objfiles
14332
99d89cde
TT
143332019-01-09 Tom Tromey <tom@tromey.com>
14334
14335 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14336 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14337 all_objfiles.
14338 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14339 * symmisc.c (print_symbol_bcache_statistics)
14340 (print_objfile_statistics, maintenance_print_objfiles)
14341 (maintenance_info_symtabs, maintenance_check_symtabs)
14342 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14343 all_objfiles.
14344 * source.c (forget_cached_source_info): Use all_objfiles.
14345 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14346 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14347 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14348 * objfiles.c (update_section_map): Use all_objfiles.
14349 (shared_objfile_contains_address_p): Likewise.
14350 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14351 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14352
21708325
TT
143532019-01-09 Tom Tromey <tom@tromey.com>
14354
14355 * common/next-iterator.h: New file.
14356 * objfiles.h (class all_objfiles): New.
14357 (struct objfile_iterator): New.
14358
669e09f6
PW
143592019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14360
14361 * NEWS: Move the description of the changed "frame", "select-frame",
14362 and "info frame" commands to the Changed commands section.
14363
041be526
SM
143642019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14365
14366 * gdbtypes.c (check_stub_method_group): Remove handling of old
14367 mangling schemes.
14368 * linespec.c (find_methods): Likewise.
14369 * stabsread.c (read_member_functions): Likewise.
14370 * valops.c (search_struct_method): Likewise.
14371 (value_struct_elt_for_reference): Likewise.
14372 * NEWS: Mention this change.
14373
0e2a2133
AB
143742019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14375
14376 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14377 print_source_lines.
14378 * source.c (print_source_lines_base): Update line number check.
14379 (print_source_lines): New function.
14380 (source_lines_range::source_lines_range): New function.
14381 * source.h (class source_lines_range): New class.
14382 (print_source_lines): New declaration.
14383
1055a3b4
PW
143842019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14385
14386 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14387
cfeadda5
TT
143882019-01-08 Tom Tromey <tom@tromey.com>
14389 Simon Marchi <simon.marchi@ericsson.com>
14390
14391 PR gdb/24060
14392 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14393 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14394 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14395 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14396 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14397 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14398
583068ca
AB
143992019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14400
14401 * source.c (select_source_symtab): Move header comment to
14402 declaration in source.h.
14403 (forget_cached_source_info_for_objfile): Likewise.
14404 (forget_cached_source_info): Likewise.
14405 (identify_source_line): Likewise.
14406 * source.h (identify_source_line): Move declaration from symtab.h
14407 and add comment from source.c
14408 (print_source_lines): Likewise.
14409 (forget_cached_source_info_for_objfile): Likewise.
14410 (forget_cached_source_info): Likewise.
14411 (select_source_symtab): Likewise.
14412 (enum print_source_lines_flag): Move definition from symtab.h.
14413 * symtab.h (identify_source_line): Move declaration to source.h.
14414 (print_source_lines): Likewise.
14415 (forget_cached_source_info_for_objfile): Likewise.
14416 (forget_cached_source_info): Likewise.
14417 (select_source_symtab): Likewise.
14418 (enum print_source_lines_flag): Move definition to source.h.
14419 * tui/tui-hooks.c: Add 'source.h' include.
14420
ec98a4ad
AB
144212019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14422
14423 * source.c (print_source_lines_base): Handle requests to print
14424 reverse line number sequences, and guard against empty lines
14425 string.
14426
62ea19c1
AB
144272019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14428
14429 * source.c (print_source_lines_base): Fix skip of '\r' if next
14430 character is '\n'.
14431
9d30e1fd
TT
144322019-01-06 Tom Tromey <tom@tromey.com>
14433
14434 * c-exp.y (struct c_parse_state) <macro_original_text,
14435 expansion_obstack>: New member.
14436 (macro_original_text, expansion_obstack): Remove globals.
14437 (scan_macro_expansion, scanning_macro_expansion)
14438 (finished_macro_expansion): Update.
14439 (scan_macro_cleanup): Remove.
14440 (yylex, c_parse): Update.
14441
c65bac38
TT
144422019-01-06 Tom Tromey <tom@tromey.com>
14443
14444 * c-exp.y (struct c_parse_state) <strings>: New member.
14445 (operator_stoken): Update.
14446
02e12e38
TT
144472019-01-06 Tom Tromey <tom@tromey.com>
14448
14449 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14450 (union type_stack_elt) <typelist_val>: Now a pointer to
14451 std::vector.
14452 (type_stack_cleanup): Don't declare.
14453 (push_typelist): Update.
14454 * parse.c (pop_typelist): Return a std::vector.
14455 (push_typelist): Take a std::vector.
14456 (follow_types): Update. Do not free args.
14457 (type_stack_cleanup): Remove.
14458 * c-exp.y (struct c_parse_state): New.
14459 (cpstate): New global.
14460 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14461 (nonempty_typelist): Update.
14462 (func_mod): Create a new vector.
14463 (c_parse): Create a c_parse_state.
14464 (check_parameter_typelist): Do not delete params.
14465 (function_method): Update. Do not delete type_list.
14466
f097f5ad
TT
144672019-01-06 Tom Tromey <tom@tromey.com>
14468
14469 PR gdb/28155:
14470 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14471 check_typedef.
14472 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14473 (print_return_value): Likewise.
14474
d2adf9f1
TT
144752019-01-05 Tom Tromey <tom@tromey.com>
14476
14477 * contrib/cleanup_check.py: Remove.
14478 * contrib/gcc-with-excheck: Remove.
14479 * contrib/exsummary.py: Remove.
14480 * contrib/excheck.py: Remove.
14481
2eab46b1
JB
144822019-01-05 Joel Brobecker <brobecker@adacore.com>
14483
14484 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14485 NULL. Initialize tpprev to NULL instead of assigning it
14486 to NULL on the next statement.
14487 * windows-nat.c (windows_delete_thread): Remove check for
14488 main_thread_id before printing thread exit notifications.
14489 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14490 Remove thread ID check against main_thread_id.
14491 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14492 windows_delete_thread.
14493 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14494
48c5e7e2
TT
144952019-01-04 Tom Tromey <tom@tromey.com>
14496
14497 * compile/compile.c (_initialize_compile): Use upper case for
14498 metasyntactic variables.
14499 * symmisc.c (_initialize_symmisc): Use upper case for
14500 metasyntactic variables.
14501 * psymtab.c (_initialize_psymtab): Use upper case for
14502 metasyntactic variables.
14503 * demangle.c (demangle_command): Use upper case for metasyntactic
14504 variables.
14505 (_initialize_demangler): Likewise.
14506 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14507 variables.
14508
986041cd
TT
145092019-01-03 Tom Tromey <tom@tromey.com>
14510
14511 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14512
7c711119
TT
145132019-01-03 Tom Tromey <tom@tromey.com>
14514
14515 * python/py-symtab.c (salpy_str): Update.
14516 (struct salpy_sal_object) <symtab>: Now a PyObject.
14517 (salpy_dealloc): Update.
14518 (del_objfile_sal): Use gdbpy_ref.
14519
1b20edf0
TT
145202019-01-03 Tom Tromey <tom@tromey.com>
14521
14522 * python/py-type.c (convert_field): Use new_reference. Return
14523 gdbpy_ref.
14524 (make_fielditem): Return gdbpy_ref.
14525 (typy_fields): Update.
14526 (typy_getitem): Update.
14527 (field_name): Return gdbpy_ref. Use new_reference.
14528 (typy_iterator_iternext): Update.
14529
ea41325b
TT
145302019-01-03 Tom Tromey <tom@tromey.com>
14531
14532 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14533
2a3c71d6
TT
145342019-01-03 Tom Tromey <tom@tromey.com>
14535
14536 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14537 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14538 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14539 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14540 (pspy_set_type_printers): Likewise.
14541 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14542 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14543 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14544 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14545 (objfpy_set_type_printers): Likewise.
14546
5c329e6a
TT
145472019-01-03 Tom Tromey <tom@tromey.com>
14548
14549 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14550 (gdbpy_print_stack): Use gdbpy_err_fetch.
14551 * python/python-internal.h (class gdbpy_err_fetch): New class.
14552 (class gdbpy_enter) <m_error_type, m_error_value,
14553 m_error_traceback>: Remove.
14554 <m_error>: New member.
14555 (gdbpy_exception_to_string): Don't declare.
14556 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14557 * python/py-value.c (convert_value_from_python): Use
14558 gdbpy_err_fetch.
14559 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14560 gdbpy_exception_to_string.
14561 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14562 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14563 gdbpy_err_fetch.
14564
169bb27b
AB
145652019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14566
14567 * linux-nat.c (delete_lwp_cleanup): Delete.
14568 (struct lwp_deleter): New struct.
14569 (lwp_info_up): New typedef.
14570 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14571 lwp_info_up.
14572
a07c8880
AB
145732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14574
14575 * linux-fork.c (class scoped_switch_fork_info): New class.
14576 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14577
26089c49
AB
145782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14579
14580 * valops.c (find_overload_match): Remove use of null_cleanup, and
14581 calls to do_cleanups.
14582
06d3e5b0
AB
145832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14584
14585 * compile/compile-cplus-types.c
14586 (compile_cplus_instance::decl_name): Handle changes to
14587 cp_func_name.
14588 * cp-support.c (cp_func_name): Update header comment, update
14589 return type.
14590 * cp-support.h (cp_func_name): Update return type in declaration.
14591 * valops.c (find_overload_match): Move temp_func local to top
14592 level of function and change its type. Use temp_func to hold and
14593 delete temporary string obtained from cp_func_name.
14594
66644cd3
AB
145952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14596
14597 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14598 gdb::char_vector, remove cleanup, and update uses of `msg`.
14599
592d8c0a
JW
146002019-01-03 Jim Wilson <jimw@sifive.com>
14601
14602 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14603
c55d06ec
TT
146042019-01-02 Tom Tromey <tom@tromey.com>
14605
14606 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14607 (tdesc_parse_xml): Remove cleanups.
14608 * target-descriptions.h (make_cleanup_free_target_description):
14609 Don't declare.
14610 (target_desc_deleter): New struct.
14611 (target_desc_up): New typedef.
14612 * target-descriptions.c (target_desc_deleter::operator()): Rename
14613 from free_target_description.
14614 (make_cleanup_free_target_description): Remove.
14615
3a6ae42d
TT
146162019-01-02 Tom Tromey <tom@tromey.com>
14617
14618 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14619 constructor, destructor.
14620 (linespec_parser): Remove typedef.
14621 (~linespec_parser): Rename from linespec_parser_delete.
14622 (linespec_lex_to_end, linespec_complete_label)
14623 (linespec_complete): Update.
14624 (decode_line_full): Remove cleanups.
14625 (decode_line_1): Update.
14626
61fd3e73
TT
146272019-01-02 Tom Tromey <tom@tromey.com>
14628
14629 * python/python-internal.h (inferior_to_inferior_object): Change
14630 return type.
14631 * python/py-exitedevent.c (create_exited_event_object): Update.
14632 * python/py-inferior.c (inferior_to_inferior_object): Return
14633 gdbpy_ref.
14634 (python_new_inferior, python_inferior_deleted)
14635 (thread_to_thread_object, delete_thread_object)
14636 (build_inferior_list, gdbpy_selected_inferior): Update.
14637 * python/py-infthread.c (create_thread_object): Update. Also fail
14638 if inferior_to_inferior_object fails.
14639
d20172fc
SM
146402019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14641
14642 * inferior.h (class inferior) <displaced_step_state>: New field.
14643 * infrun.h (struct displaced_step_state): Move here from
14644 infrun.c. Initialize fields, add constructor.
14645 <inf>: Remove field.
14646 <reset>: New method.
14647 * infrun.c (struct displaced_step_inferior_state): Move to
14648 infrun.h.
14649 (displaced_step_inferior_states): Remove.
14650 (get_displaced_stepping_state): Adust.
14651 (displaced_step_in_progress_any_inferior): Adjust.
14652 (displaced_step_in_progress_thread): Adjust.
14653 (displaced_step_in_progress): Adjust.
14654 (add_displaced_stepping_state): Remove.
14655 (get_displaced_step_closure_by_addr): Adjust.
14656 (remove_displaced_stepping_state): Remove.
14657 (infrun_inferior_exit): Call displaced_step_state.reset.
14658 (use_displaced_stepping): Don't check for NULL.
14659 (displaced_step_prepare_throw): Call
14660 get_displaced_stepping_state.
14661 (displaced_step_fixup): Don't check for NULL.
14662 (prepare_for_detach): Don't check for NULL.
14663
e3319240
PW
146642019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14665
14666 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14667 in case of call that did not complete.
14668
5d36dfb9
AU
146692019-01-02 Andrey Utkin <autkin@undo.io>
14670
14671 * symfile.c (find_separate_debug_file): Fix search of debug files for
14672 remote debuggee.
14673
8833fbf0
TT
146742019-01-02 Tom Tromey <tom@tromey.com>
14675
14676 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14677 indentation.
14678 * python/py-frame.c (frapy_older): Remove cast.
14679 (frapy_newer): Likewise.
14680 * python/py-breakpoint.c (local_setattro): Remove cast.
14681 * python/py-arch.c (archpy_name): Remove local variable.
14682 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14683
4ada3dfd
JB
146842019-01-02 Joel Brobecker <brobecker@adacore.com>
14685
14686 * unittests/basic_string_view/element_access/char/empty.cc:
14687 Fix year range in copyright header.
14688
113b7b81
AB
146892019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14690
14691 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14692 Delete.
14693 <operator==>: Update with for removed field.
14694 <hash>: Likewise.
14695 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14696 <isa_features>: ...this.
14697 <abi_features>: New field.
14698 (riscv_isa_flen): Update comment.
14699 (riscv_abi_xlen): New declaration.
14700 (riscv_abi_flen): New declaration.
14701 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14702 isa_features.
14703 (riscv_abi_xlen): New function.
14704 (riscv_isa_flen): Update to get answer from isa_features.
14705 (riscv_abi_flen): New function.
14706 (riscv_has_fp_abi): Update to get answer from abi_features.
14707 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14708 xlen and flen.
14709 (riscv_call_info) <xlen, flen>: Update comment.
14710 (riscv_call_arg_struct): Remove invalid assertions
14711 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14712 is removed.
14713 (riscv_gdbarch_init): Gather isa features and abi features
14714 separately, ensure both match on the gdbarch when reusing an old
14715 gdbarch. Relax an error check to allow 32-bit abi float to run on
14716 a target with 64-bit float hardware.
14717
b18ca514
PW
147182019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14719
14720 * source.c (search_command_helper): Stop reverse search
14721 when line 1 has been searched.
14722
ec70d8db
PW
147232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14724
14725 * record-full.c (record_full_base_target::close): Rewrite
14726 record_full_core_buf_list free logic.
14727
5b38f9c1
PW
147282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14729
14730 * break-catch-syscall.c (print_one_catch_syscall): xfree
14731 the last text.
14732
66d91b39
JB
147332019-01-01 Joel Brobecker <brobecker@adacore.com>
14734
14735 * top.c (print_gdb_version): Update Copyright year in version
14736 message.
14737
42a4f53d
JB
147382019-01-01 Joel Brobecker <brobecker@adacore.com>
14739
14740 Update copyright year range in all GDB files.
14741
7e955d83 147422019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14743
5bbd631d 14744 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14745
5bbd631d 14746For older changes see ChangeLog-2018.
c906108c
SS
14747\f
14748Local Variables:
14749mode: change-log
14750left-margin: 8
14751fill-column: 74
14752version-control: never
57da7796 14753coding: utf-8
c906108c 14754End:
5bbd631d 14755
This page took 3.808863 seconds and 4 git commands to generate.