]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix memory allocation and release problems in the bfd documentation processor.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3573abe1
CB
12019-11-04 Christian Biesinger <cbiesinger@google.com>
2
3 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
4 and sizeof (symbol).
5 * symtab.h: Add a static_assert for sizeof (partial_symbol).
6
dae8b3eb
RO
72019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8
9 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
10 * configure.host: Mark *-*-solaris2.10* obsolete.
11 * configure.tgt: Mark Solaris < 11 obsolete.
12 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
13 Update target triplet.
14
5df96a4e
TT
152019-11-01 Tom Tromey <tromey@adacore.com>
16
17 * utils.c (print_sys_errmsg): Simplify.
18
b7481649
TT
192019-11-01 Tom Tromey <tromey@adacore.com>
20
21 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
22
e48f6033
CB
232019-11-01 Christian Biesinger <cbiesinger@google.com>
24
25 * configure: Regenerate.
26 * configure.ac: Remove check for strerror_r.
27 * gdbsupport/common.m4: Check for strerror_r.
28
bd5766ec
LM
292019-11-01 Luis Machado <luis.machado@linaro.org>
30
31 PR gdb/25124
32
33 * arm-tdep.c (arm_per_objfile): Rename to ...
34 (arm_per_bfd): ... this.
35 (arm_objfile_data_key): Rename to ...
36 (arm_bfd_data_key): ... this.
37 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
38 data.
39 (arm_record_special_symbol): Likewise.
40
e1709896
AB
412019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
44 end.
45 * c-typeprint.c (c_print_typedef): Likewise.
46 * f-typeprint.c (f_print_typedef): Likewise.
47 * m2-typeprint.c (m2_print_typedef): Likewise.
48 * p-typeprint.c (pascal_print_typedef): Likewise.
49 * rust-lang.c (rust_print_typedef): Likewise.
50 * symtab.c (print_symbol_info): Print a newline after calling
51 typedef_print.
52
165f8965
AB
532019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * symtab.c (info_module_cmdlist): New variable.
56 (info_module_command): New function.
57 (search_module_symbols): New function.
58 (info_module_subcommand): New function.
59 (struct info_modules_var_func_options): New struct.
60 (info_modules_var_func_options_defs): New variable.
61 (make_info_modules_var_func_options_def_group): New function.
62 (info_module_functions_command): New function.
63 (info_module_variables_command): New function.
64 (info_module_var_func_command_completer): New function.
65 (_initialize_symtab): Register new 'info module functions' and
66 'info module variables' commands.
67 * symtab.h (typedef symbol_search_in_module): New typedef.
68 (search_module_symbols): Declare new function.
69 * NEWS: Mention new commands.
70
59c35742
AB
712019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
74 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
75 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
76 MODULES_DOMAIN.
77 (scan_partial_symbols): Only create partial module symbols for non
78 declarations.
79 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
80 and MODULES_DOMAIN.
81 * symtab.c (search_domain_name): Likewise.
82 (search_symbols): Likewise.
83 (print_symbol_info): Likewise.
84 (symtab_symbol_info): Likewise.
85 (info_modules_command): New function.
86 (_initialize_symtab): Register 'info modules' command.
87 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
88 * NEWS: Mention new 'info modules' command.
89
aed61d02
PW
902019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
91
92 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
93 and $_gdb_maint_setting_str.
94
9ad9b77d
PW
952019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96
97 * cli/cli-cmds.c (setting_cmd, value_from_setting)
98 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
99 (str_value_from_setting, gdb_setting_str_internal_fn)
100 (gdb_maint_setting_str_internal_fn): New functions.
101 (_initialize_cli_cmds): Define the new convenience functions.
102 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
103 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
104
8d6efaa2
CB
1052019-10-31 Christian Biesinger <cbiesinger@google.com>
106
107 * agent.c (set_can_use_agent): When the setting is turned on,
108 look up agent symbols if we don't have them yet.
109 (agent_new_objfile): Don't look up agent symbols when the agent
110 setting is off.
111
33cb1647
CB
1122019-10-31 Christian Biesinger <cbiesinger@google.com>
113
114 * config.in: Regenerate.
115
b231e86a
CB
1162019-10-31 Christian Biesinger <cbiesinger@google.com>
117
118 * configure: Regenerate.
119 * configure.ac: Check for strerror_r.
120 * gdbsupport/common-utils.h (safe_strerror): Change return value
121 to const char * and document that this function is now threadsafe.
122 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
123 thread_local and call strerror_r, if available.
124 * utils.c (perror_string): Update.
125 (print_sys_errmsg): Update.
126
a2726d4f
LM
1272019-10-31 Luis Machado <luis.machado@linaro.org>
128
129 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
130 objfile_key.
131 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
132 objfile to fetch per-bfd data.
133 (arm_find_exidx_entry): Likewise.
134
75cafaa6
CB
1352019-10-31 Christian Biesinger <cbiesinger@google.com>
136
137 * gdbsupport/agent.c (debug_agent): Change type to bool.
138 (use_agent): Likewise.
139 (all_agent_symbols_look_up): Likewise.
140 (agent_loaded_p): Change return value to bool.
141 (agent_look_up_symbols): Update.
142 (agent_capability_check): Change return value to bool.
143 * gdbsupport/agent.h (agent_loaded_p): Likewise.
144 (debug_agent): Change type to bool.
145 (use_agent): Likewise.
146 (agent_capability_check): Change return value to bool.
147
808590ec
CB
1482019-10-30 Christian Biesinger <cbiesinger@google.com>
149
150 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
151 (build_minimal_symbol_hash_tables): Code to clear the table moved
152 to clear_minimal_symbol_hash_tables.
153 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
154 when needed.
155
f18ad8a1
SM
1562019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * infcmd.c: Remove includes.
159 * infrun.c: Remove includes.
160
de93309a
SM
1612019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
164 (grow_vect): Remove declaration.
165 (ada_type_of_array): Remove declaration.
166 (ada_update_initial_language): Remove declaration.
167 (ada_fold_name): Remove declaration.
168 (ada_fill_in_ada_prototype): Remove declaration.
169 (user_select_syms): Remove declaration.
170 (get_selections): Remove declaration.
171 (ada_tag_type): Remove declaration.
172 (ada_value_tag): Remove declaration.
173 (ada_is_others_clause): Remove declaration.
174 (ada_in_variant): Remove declaration.
175 (ada_value_struct_elt): Remove declaration.
176 (ada_attribute_name): Remove declaration.
177 (ada_system_address_type): Remove declaration.
178 * ada-lang.c (ada_watch_location_expression): Make static.
179 (GROW_VECT): Move here from ada-lang.h.
180 (grow_vect): Make static.
181 (ada_update_initial_language): Make static.
182 (ada_fold_name): Make static.
183 (ada_type_of_array): Make static.
184 (encoded_ordered_before): Move up.
185 (sort_choices): Move up.
186 (print_signatures): Move up.
187 (ada_print_symbol_signature): Move up.
188 (get_selections): Move up and make static.
189 (user_select_syms): Move up and make static.
190 (ada_value_struct_elt): Move up and make static.
191 (ada_tag_type): Make static.
192 (ada_value_tag): Make static.
193 (ada_is_others_clause): Make static.
194 (ada_in_variant): Make static.
195 (ada_attribute_name): Make static.
196
cdc46a9f
SM
1972019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * ada-lang.c: Remove includes.
200 * ada-typeprint.c: Remove includes.
201 * ada-valprint.c: Remove includes.
202
90421c56
SM
2032019-10-29 Simon Marchi <simon.marchi@efficios.com>
204
205 * addrmap.c: Add static assertions of type size, moved from
206 _initialize_addrmap.
207 (_initialize_addrmap): Remove.
208
31edb802
CB
2092019-10-29 Christian Biesinger <cbiesinger@google.com>
210
211 * coffread.c (record_minimal_symbol): Update.
212 (process_coff_symbol): Update.
213 * dbxread.c (read_dbx_symtab): Update.
214 * dwarf2read.c (add_partial_symbol): Update.
215 (fixup_go_packaging): Update.
216 (load_partial_dies): Update.
217 (new_symbol): Update.
218 * elfread.c (record_minimal_symbol): Change signature to use
219 gdb::string_view instead of name+len.
220 (elf_symtab_read): Update.
221 (elf_rel_plt_read): Update.
222 * mdebugread.c (parse_partial_symbols): Update.
223 (handle_psymbol_enumerators): Update.
224 (new_symbol): Update.
225 * minsyms.c (minimal_symbol_reader::record_full): Change signature
226 to use gdb::string_view instead of name+len.
227 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
228 * psympriv.h (add_psymbol_to_list): Likewise.
229 * psymtab.c (add_psymbol_to_bcache): Likewise.
230 (add_psymbol_to_list): Likewise.
231 * stabsread.c (define_symbol): Update.
232 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
233 * symtab.h (SYMBOL_SET_NAMES): Likewise.
234 (symbol_set_names): Likewise.
235 * xcoffread.c (scan_xcoff_symtab): Update.
236
0c921b21
CB
2372019-10-29 Christian Biesinger <cbiesinger@google.com>
238
239 * symtab.h (symbol_set_names): Document that copy_name must be
240 set to true for non-nullterminated strings.
241 * symtab.c (symbol_set_names): Only make a nullterminated copy of
242 linkage_name if the entry was not found and we need to demangle.
243
35e65c49
CB
2442019-10-29 Christian Biesinger <cbiesinger@google.com>
245
246 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
247 * dwarf2-frame.c (bsearch_fde_cmp): Update.
248 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
249 * gdbsupport/gdb_binary_search.h: New file.
250
ed2a2229
CB
2512019-10-29 Christian Biesinger <cbiesinger@google.com>
252
253 * NEWS: Mention new --with-system-gdbinit-dir option.
254 * config.in: Regenerate.
255 * configure: Regenerate.
256 * configure.ac: Add new option --with-system-gdbinit-dir.
257 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
258 for a ".gdb" suffix.
259 * main.c (get_init_files): Change system_gdbinit argument to
260 a vector and return the files in SYSTEM_GDBINIT_DIR in
261 addition to SYSTEM_GDBINIT.
262 (captured_main_1): Update.
263 (print_gdb_help): Update.
264 * top.c (print_gdb_configuration): Also print the value of
265 SYSTEM_GDBINIT_DIR.
266
87f34879
CB
2672019-10-28 Christian Biesinger <cbiesinger@google.com>
268
269 * gdbsupport/common-utils.h (startswith): Add an overloaded version
270 that takes gdb::string_view arguments.
271
30baf67b
TV
2722019-10-26 Tom de Vries <tdevries@suse.de>
273
274 * aarch64-linux-tdep.c: Fix typos in comments.
275 * aarch64-tdep.c: Same.
276 * ada-lang.c: Same.
277 * amd64-nat.c: Same.
278 * arc-tdep.c: Same.
279 * arch/aarch64-insn.c: Same.
280 * block.c: Same.
281 * breakpoint.h: Same.
282 * btrace.h: Same.
283 * c-varobj.c: Same.
284 * cli/cli-decode.c: Same.
285 * cli/cli-script.c: Same.
286 * cli/cli-utils.h: Same.
287 * coff-pe-read.c: Same.
288 * coffread.c: Same.
289 * compile/compile-cplus-symbols.c: Same.
290 * compile/compile-object-run.c: Same.
291 * completer.c: Same.
292 * corelow.c: Same.
293 * cp-support.c: Same.
294 * demangle.c: Same.
295 * dwarf-index-write.c: Same.
296 * dwarf2-frame.c: Same.
297 * dwarf2-frame.h: Same.
298 * eval.c: Same.
299 * frame-base.h: Same.
300 * frame.h: Same.
301 * gdbcmd.h: Same.
302 * gdbtypes.h: Same.
303 * gnu-nat.c: Same.
304 * guile/scm-objfile.c: Same.
305 * i386-tdep.c: Same.
306 * i386-tdep.h: Same.
307 * infcall.c: Same.
308 * infcall.h: Same.
309 * linux-nat.c: Same.
310 * m68k-tdep.c: Same.
311 * macroexp.c: Same.
312 * memattr.c: Same.
313 * mi/mi-cmd-disas.c: Same.
314 * mi/mi-getopt.h: Same.
315 * mi/mi-main.c: Same.
316 * minsyms.c: Same.
317 * nat/aarch64-sve-linux-sigcontext.h: Same.
318 * objfiles.h: Same.
319 * ppc-linux-nat.c: Same.
320 * ppc-linux-tdep.c: Same.
321 * ppc-tdep.h: Same.
322 * progspace.h: Same.
323 * prologue-value.h: Same.
324 * python/py-evtregistry.c: Same.
325 * python/py-instruction.h: Same.
326 * record-btrace.c: Same.
327 * record-full.c: Same.
328 * remote.c: Same.
329 * rs6000-tdep.c: Same.
330 * ser-tcp.c: Same.
331 * sol-thread.c: Same.
332 * sparc-sol2-tdep.c: Same.
333 * sparc64-tdep.c: Same.
334 * stabsread.c: Same.
335 * symfile.c: Same.
336 * symtab.h: Same.
337 * target.c: Same.
338 * tracepoint.c: Same.
339 * tui/tui-data.h: Same.
340 * tui/tui-io.c: Same.
341 * tui/tui-win.c: Same.
342 * tui/tui.c: Same.
343 * unittests/rsp-low-selftests.c: Same.
344 * user-regs.h: Same.
345 * utils.c: Same.
346 * utils.h: Same.
347 * valarith.c: Same.
348 * valops.c: Same.
349 * valprint.c: Same.
350 * valprint.h: Same.
351 * value.c: Same.
352 * value.h: Same.
353 * varobj.c: Same.
354 * x86-nat.h: Same.
355 * xtensa-tdep.c: Same.
356
1834d45f
AT
3572019-10-25 Ali Tamur <tamur@google.com>
358
359 * charset.c (find_charset_names): Reflect API change.
360
5396ae17
CB
3612019-10-25 Christian Biesinger <cbiesinger@google.com>
362
363 * symtab.c (struct demangled_name_entry): Change demangled name
364 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
365 part of the struct anymore.
366 (symbol_set_names): No longer obstack allocate + copy the demangled
367 name, just store the allocated name from bfd.
368
93878f47
TT
3692019-10-25 Tom Tromey <tromey@adacore.com>
370
371 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
372 (bsearch_cie_cmp, add_cie): Remove.
373 (find_cie): Reimplement.
374 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
375 (dwarf2_build_frame_info): Update.
376
7b71fc97
L
3772019-10-24 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR gdb/25126
380 * symfile.c (reread_symbols): Call forget_cached_source_info to
381 clear the stale source cache.
382
cbb5a2ea
CB
3832019-10-24 Christian Biesinger <cbiesinger@google.com>
384
385 * configure: Regenerate.
386 * configure.ac: Remove code that sets python_has_threads.
387
71737c43
CB
3882019-10-24 Christian Biesinger <cbiesinger@google.com>
389
390 * config.in: Regenerate.
391 * configure: Regenerate.
392 * configure.ac: Remove the code that uses sed to get the python
393 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
394
33d569b7
AB
3952019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * python/py-progspace.c (pspy_block_for_pc): Return None for all
398 error paths.
399
f16f7b7c
TT
4002019-10-23 Tom Tromey <tom@tromey.com>
401
402 * arc-tdep.c: Remove ".." from include.
403 * frv-tdep.c: Remove ".." from include.
404 * lm32-tdep.c: Remove ".." from include.
405 * microblaze-tdep.c: Remove ".." from include.
406 * or1k-tdep.h: Remove ".." from include.
407 * s12z-tdep.c: Remove ".." from include.
408 * Makefile.in (OPCODES_CFLAGS): Add comment.
409 (TOP_CFLAGS): New variable.
410 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
411
6999161a
TT
4122019-10-23 Tom Tromey <tom@tromey.com>
413
414 * Makefile.in (READLINE_DIR): Update.
415
12e7c35e
TBA
4162019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
417
418 * infcall.c (call_function_by_hand_dummy): Fix the function
419 comment. And extract out a code section into...
420 (reserve_stack_space): ...this new function.
421
37055cad
TBA
4222019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
423
424 * infcall.c (value_arg_coerce): Remove an unused parameter.
425 (call_function_by_hand_dummy): Update the call to
426 'value_arg_coerce'.
427
39bcc47c
TBA
4282019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
429
430 * infcall.c (call_function_by_hand_dummy): Refactor.
431
bd888c0f
TBA
4322019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
433
434 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
435
c12d372d
TT
4362019-10-23 Tom Tromey <tom@tromey.com>
437
438 * configure: Rebuild.
439 * configure.ac: Don't check for sigprocmask.
440 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
441
4d0b984b
TT
4422019-10-23 Tom Tromey <tom@tromey.com>
443
444 * configure: Rebuild.
445 * acinclude.m4: Use m4_include, not sinclude.
446
7e785608
TV
4472019-10-23 Tom de Vries <tdevries@suse.de>
448
449 PR breakpoints/24687
450 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
451
403772ef
CB
4522019-10-22 Christian Biesinger <cbiesinger@google.com>
453
454 * symtab.c (struct demangled_name_entry) <language>: Change from
455 bitfield to regular variable.
456
3a494279
CB
4572019-10-22 Christian Biesinger <cbiesinger@google.com>
458
459 * symtab.c (struct demangled_name_entry): Add a constructor.
460 (free_demangled_name_entry): New function to call the destructor
461 for demangled_name_entry.
462 (create_demangled_names_hash): Pass free_demangled_name_entry to
463 htab_create_alloc.
464 (symbol_set_names): Call placement new for demangled_name_entry.
465 * utils.c: No longer include xxhash.h here, now that fast_hash
466 is inlined in the header.
467 * utils.h: Instead, include it here.
468
ccb1ba62
CB
4692019-10-22 Christian Biesinger <cbiesinger@google.com>
470
471 * Makefile.in: Link with libxxhash.
472 * config.in: Regenerate.
473 * configure: Regenerate.
474 * configure.ac: Search for libxxhash.
475 * utils.c (fast_hash): Use xxhash if present.
476
1a6ff1a9
CB
4772019-10-22 Christian Biesinger <cbiesinger@google.com>
478
479 * utils.h (fast_hash): New function.
480 * symtab.c (hash_demangled_name_entry): Call new function
481 fast_hash.
482
7bb43059
CB
4832019-10-22 Christian Biesinger <cbiesinger@google.com>
484
485 * symtab.c (struct demangled_name_entry): Change type of mangled
486 to gdb::string_view. Also adds a constructor that takes the
487 mangled name.
488 (hash_demangled_name_entry): Update.
489 (eq_demangled_name_entry): Update.
490 (free_demangled_name_entry): New function to call the destructor
491 now that this is not a POD anymore.
492 (create_demangled_names_hash): Pass free_demangled_name_entry to
493 htab_create_alloc.
494 (symbol_set_names): Update.
495
7ba99d21
AT
4962019-10-21 Ali Tamur <tamu@google.com>
497
498 * dwarf2read.c (dir_index): Change type.
499 (file_name_index): Likewise.
500 (line_header::include_dir_at): Change comment and implementation on
501 whether it is DWARF 5.
502 (line_header::is_valid_file_index): New function.
503 (line_header::file_name_at): Change comment and implementation on
504 whether it is DWARF 5.
505 (line_header::file_names): Change to private field renamed as
506 m_file_names and introduce a new accessor method.
507 (line_header::file_names_size): New method.
508 (line_header::include_dirs): Change to private field and rename as
509 m_include_dirs.
510 (dw2_get_file_names_reader): Define local var at a smaller scope and
511 reflect API change.
512 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
513 (process_structure_scope): Likewise.
514 (line_header::add_include_dir): Change message and reflect renaming.
515 (line_header::add_file_name): Likewise.
516 (read_formatted_entries): Handle DW_FORM_data16.
517 (dwarf_decode_line_header): Fix line header length calculation.
518 (psymtab_include_file_name): Change comment and API.
519 (lnp_state_machine::m_file): Update comment and reflect type change.
520 (lnp_state_machine::record_line): Reflect type change.
521 (dwarf_decode_lines): Reflect API change.
522 (file_file_name): Likewise.
523 (file_full_name): Likewise.
524
45f47c3a
AB
5252019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
528
e5f3c0e3
TT
5292019-10-21 Tom Tromey <tom@tromey.com>
530
531 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
532
a0a461e5
TT
5332019-10-21 Tom Tromey <tom@tromey.com>
534
535 * configure.ac (nm.h): Conditionally create nm.h link. Subst
536 NM_H. Use AC_CONFIG_LINKS.
537 * configure: Rebuild.
538 * Makefile.in (NM_H): New variable.
539 (generated_files): Add NM_H. Remove gcore.
540 (nm.h, stamp-nmh): New targets.
541
54d83b8d
TT
5422019-10-20 Tom Tromey <tom@tromey.com>
543
544 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
545 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
546 obsolete comment.
547 (put_objfile_before): Now static.
548
23771117
SM
5492019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * gdbsupport/common-utils.h (startswith): Change return type to
552 bool.
553
39ef2f62
CB
5542019-10-19 Christian Biesinger <cbiesinger@google.com>
555
556 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
557 * breakpoint.c (bp_locations_compare): Rename to...
558 (bp_location_is_less_than): ...this, and change to std::sort semantics.
559 (update_global_location_list): Use std::sort instead of qsort.
560 * buildsym.c (compare_line_numbers): Rename to...
561 (lte_is_less_than): ...this, and change to std::sort semantics.
562 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
563 instead of qsort.
564 * disasm.c (compare_lines): Rename to...
565 (line_is_less_than): ...this, and change to std::sort semantics.
566 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
567 of qsort.
568 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
569 (fde_is_less_than): ...this, and change to std::sort semantics.
570 (dwarf2_build_frame_info): Call std::sort instead of qsort.
571 * mdebugread.c (compare_blocks):
572 (block_is_less_than): ...this, and change to std::sort semantics.
573 (sort_blocks): Call std::sort instead of qsort.
574 * objfiles.c (qsort_cmp): Rename to...
575 (sort_cmp): ...this, and change to std::sort semantics.
576 (update_section_map): Call std::sort instead of qsort.
577 * remote.c (compare_pnums): Remove.
578 (map_regcache_remote_table): Call std::sort instead of qsort.
579 * utils.c (compare_positive_ints): Remove.
580 * utils.h (compare_positive_ints): Remove.
581 * xcoffread.c (compare_lte): Remove.
582 (arrange_linetable): Call std::sort instead of qsort.
583
f71433ee
SDJ
5842019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
585
586 * symfile.c (init_entry_point_info): Fix typo.
587 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
588
85102364
TV
5892019-10-18 Tom de Vries <tdevries@suse.de>
590
591 * aarch64-tdep.c: Fix typos in comments.
592 * ada-lang.c: Same.
593 * ada-tasks.c: Same.
594 * alpha-tdep.c: Same.
595 * alpha-tdep.h: Same.
596 * amd64-nat.c: Same.
597 * amd64-windows-tdep.c: Same.
598 * arc-tdep.c: Same.
599 * arc-tdep.h: Same.
600 * arch-utils.c: Same.
601 * arm-nbsd-tdep.c: Same.
602 * arm-tdep.c: Same.
603 * ax-gdb.c: Same.
604 * blockframe.c: Same.
605 * btrace.c: Same.
606 * c-varobj.c: Same.
607 * coff-pe-read.c: Same.
608 * coffread.c: Same.
609 * cris-tdep.c: Same.
610 * darwin-nat.c: Same.
611 * dbxread.c: Same.
612 * dcache.c: Same.
613 * disasm.c: Same.
614 * dtrace-probe.c: Same.
615 * dwarf-index-write.c: Same.
616 * dwarf2-frame-tailcall.c: Same.
617 * dwarf2-frame.c: Same.
618 * dwarf2read.c: Same.
619 * eval.c: Same.
620 * exceptions.c: Same.
621 * fbsd-tdep.c: Same.
622 * findvar.c: Same.
623 * frame.c: Same.
624 * frv-tdep.c: Same.
625 * gnu-v3-abi.c: Same.
626 * go32-nat.c: Same.
627 * h8300-tdep.c: Same.
628 * hppa-tdep.c: Same.
629 * i386-linux-tdep.c: Same.
630 * i386-tdep.c: Same.
631 * ia64-libunwind-tdep.c: Same.
632 * ia64-tdep.c: Same.
633 * infcmd.c: Same.
634 * infrun.c: Same.
635 * linespec.c: Same.
636 * linux-nat.c: Same.
637 * linux-thread-db.c: Same.
638 * machoread.c: Same.
639 * mdebugread.c: Same.
640 * mep-tdep.c: Same.
641 * mn10300-tdep.c: Same.
642 * namespace.c: Same.
643 * objfiles.c: Same.
644 * opencl-lang.c: Same.
645 * or1k-tdep.c: Same.
646 * osabi.c: Same.
647 * ppc-linux-nat.c: Same.
648 * ppc-linux-tdep.c: Same.
649 * ppc-sysv-tdep.c: Same.
650 * printcmd.c: Same.
651 * procfs.c: Same.
652 * record-btrace.c: Same.
653 * record-full.c: Same.
654 * remote-fileio.c: Same.
655 * remote.c: Same.
656 * rs6000-tdep.c: Same.
657 * s12z-tdep.c: Same.
658 * score-tdep.c: Same.
659 * ser-base.c: Same.
660 * ser-go32.c: Same.
661 * skip.c: Same.
662 * sol-thread.c: Same.
663 * solib-svr4.c: Same.
664 * solib.c: Same.
665 * source.c: Same.
666 * sparc-nat.c: Same.
667 * sparc-sol2-tdep.c: Same.
668 * sparc-tdep.c: Same.
669 * sparc64-tdep.c: Same.
670 * stabsread.c: Same.
671 * stack.c: Same.
672 * symfile.c: Same.
673 * symtab.c: Same.
674 * target-descriptions.c: Same.
675 * target-float.c: Same.
676 * thread.c: Same.
677 * utils.c: Same.
678 * valops.c: Same.
679 * valprint.c: Same.
680 * value.c: Same.
681 * varobj.c: Same.
682 * windows-nat.c: Same.
683 * xcoffread.c: Same.
684 * xstormy16-tdep.c: Same.
685 * xtensa-tdep.c: Same.
686
c5adaa19
TT
6872019-10-17 Tom Tromey <tromey@adacore.com>
688
689 * configure: Rebuild.
690 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
691 in AC_CONFIG_FILES invocation.
692 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
693 new-style config.status invocation.
694
405feb71
TV
6952019-10-17 Tom de Vries <tdevries@suse.de>
696
697 * arm-nbsd-nat.c: Fix typos in comments.
698 * arm-tdep.c: Same.
699 * darwin-nat-info.c: Same.
700 * dwarf2read.c: Same.
701 * elfread.c: Same.
702 * event-top.c: Same.
703 * findvar.c: Same.
704 * gdbtypes.c: Same.
705 * hppa-tdep.c: Same.
706 * i386-tdep.c: Same.
707 * jit.c: Same.
708 * main.c: Same.
709 * mdebugread.c: Same.
710 * moxie-tdep.c: Same.
711 * nto-procfs.c: Same.
712 * osabi.c: Same.
713 * ppc-linux-tdep.c: Same.
714 * remote.c: Same.
715 * riscv-tdep.c: Same.
716 * s390-tdep.c: Same.
717 * sh-tdep.c: Same.
718 * sparc-linux-tdep.c: Same.
719 * sparc-nat.c: Same.
720 * stack.c: Same.
721 * target-descriptions.c: Same.
722 * top.c: Same.
723 * varobj.c: Same.
724
befcd486
TT
7252019-10-16 Tom Tromey <tom@tromey.com>
726
727 * objfiles.h (struct objfile) <original_name>: Now const.
728
17bfe554
CB
7292019-10-16 Christian Biesinger <cbiesinger@google.com>
730
731 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
732 pass on to sigsetjmp's second argument.
733 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
734
950b7495
KS
7352019-10-16 Keith Seitz <keiths@redhat.com>
736
737 PR gdb/23567
738 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
739 sections whose size is greater than the file size.
740
ff371ec9
JW
7412019-10-16 Jim Wilson <jimw@sifive.com>
742
743 * riscv-tdep.c (riscv_gcc_target_options): New.
744 (riscv_gnu_triplet_regexp): New.
745 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
746 set_gdbarch_gnu_triplet_regexp.
747
fec4e896
CB
7482019-10-16 Christian Biesinger <cbiesinger@google.com>
749
750 * Makefile.in: Add xml-builtin.h.
751 * features/feature_to_c.sh: Add an include for xml-builtin.h
752 to ensure that the compiler checks that the types match.
753 * xml-builtin.h: New file.
754 * xml-support.c (fetch_xml_builtin): Add missing const.
755 * xml-support.h: Remove declaration of xml_builtins.
756
d10eccaa
TV
7572019-10-16 Tom de Vries <tdevries@suse.de>
758
759 PR tdep/25096
760 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
761 (amd64_classify_aggregate): ... here.
762 (amd64_classify_aggregate_field): Handled fiels of nested structs
763 recursively.
764
745ff14e
TV
7652019-10-16 Tom de Vries <tdevries@suse.de>
766
767 PR tdep/24104
768 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
769 that handles 'theclass'.
770
791b7405
AB
7712019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * linespec.c (decode_digits_ordinary): Update comment.
774 * make-target-delegates: No longer need to handle VEC case.
775 * memrange.c (normalize_mem_ranges): Update comment.
776 * namespace.c (add_using_directive): Update comment.
777 * objc-lang.c (uniquify_strings): Update comment.
778 * ppc-linux-nat.c (struct thread_points): Update comment.
779 * probe.h (find_probes_in_objfile): Update comment.
780 * target.h (enum flash_preserve_mode): Update comment.
781 * varobj.c (varobj_restrict_range): Update comment.
782 * varobj.h (varobj_list_children): Update comment.
783
0dc32745
AB
7842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * Makefile.in: Remove references to vec.h and vec.c.
787 * aarch64-tdep.c: No longer include vec.h.
788 * ada-lang.c: Likewise.
789 * ada-lang.h: Likewise.
790 * arm-tdep.c: Likewise.
791 * ax.h: Likewise.
792 * breakpoint.h: Likewise.
793 * charset.c: Likewise.
794 * cp-support.h: Likewise.
795 * dtrace-probe.c: Likewise.
796 * dwarf2read.c: Likewise.
797 * extension.h: Likewise.
798 * gdb_bfd.c: Likewise.
799 * gdbsupport/gdb_vecs.h: Likewise.
800 * gdbsupport/vec.c: Remove.
801 * gdbsupport/vec.h: Remove.
802 * gdbthread.h: Likewise.
803 * guile/scm-type.c: Likewise.
804 * inline-frame.c: Likewise.
805 * machoread.c: Likewise.
806 * memattr.c: Likewise.
807 * memrange.h: Likewise.
808 * namespace.h: Likewise.
809 * nat/linux-btrace.h: Likewise.
810 * osdata.c: Likewise.
811 * parser-defs.h: Likewise.
812 * progspace.h: Likewise.
813 * python/py-type.c: Likewise.
814 * record-btrace.c: Likewise.
815 * rust-exp.y: Likewise.
816 * solib-target.c: Likewise.
817 * stap-probe.c: Likewise.
818 * target-descriptions.c: Likewise.
819 * target-memory.c: Likewise.
820 * target.h: Likewise.
821 * varobj.c: Likewise.
822 * varobj.h: Likewise.
823 * xml-support.h: Likewise.
824
ae640021
AB
8252019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
828 Update for new std::vector based implementation.
829 (process_psymtab_comp_unit_reader): Likewise.
830 (scan_partial_symbols): Likewise.
831 (recursively_compute_inclusions): Likewise.
832 (compute_compunit_symtab_includes): Likewise.
833 (process_imported_unit_die): Likewise.
834 (queue_and_load_dwo_tu): Likewise.
835 (follow_die_sig_1): Likewise.
836 * gdb/dwarf2read.h: Remove DEF_VEC_P.
837 (typedef dwarf2_per_cu_ptr): Remove.
838 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
839 function.
840 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
841 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
842 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
843 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
844 std::vector.
845
55dfc88f
TT
8462019-10-15 Tom Tromey <tromey@adacore.com>
847
848 * windows-nat.c (windows_nat_target::resume): Use %x when logging
849 TID.
850
96b49c5e
TT
8512019-10-15 Tom Tromey <tromey@adacore.com>
852
853 * windows-nat.c (windows_nat_target::fetch_registers)
854 (windows_nat_target::store_registers): Rename "pid" to "tid".
855
953cff56
TT
8562019-10-15 Tom Tromey <tromey@adacore.com>
857
858 * gdbarch.h, gdbarch.c: Rebuild.
859 * gdbarch.sh (gcc_target_options): Change return type to
860 std::string.
861 * compile/compile.c (get_args): Update.
862 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
863 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
864 std::string.
865 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
866 std::string.
867 * arch-utils.c (default_gcc_target_options): Return std::string.
868 * arch-utils.h (default_gcc_target_options): Return std::string.
869 * s390-tdep.c (s390_gcc_target_options): Return std::string.
870
81e6b8eb
CB
8712019-10-15 Christian Biesinger <cbiesinger@google.com>
872
873 * breakpoint.c (breakpoint_chain): Make static.
874 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
875 of accessing breakpoint_chain.
876
95da600f
CB
8772019-10-15 Christian Biesinger <cbiesinger@google.com>
878
879 * breakpoint.c (iterate_over_breakpoints): Change function pointer
880 to a gdb::function_view and return value to bool.
881 * breakpoint.h (iterate_over_breakpoints): Likewise.
882 * dummy-frame.c (pop_dummy_frame_bpt): Update.
883 (pop_dummy_frame): Update.
884 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
885 (gdbscm_breakpoints): Update.
886 * python/py-breakpoint.c (build_bp_list): Update.
887 (gdbpy_breakpoints): Update.
888 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
889 Update.
890 (bpfinishpy_handle_stop): Update.
891 (bpfinishpy_handle_exit): Update.
892 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
893 (svr4_update_solib_event_breakpoints): Update.
894
ba18312d
AA
8952019-10-15 Andreas Arnez <arnez@linux.ibm.com>
896
897 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
898 when unwrapping single-field structs.
899
6acc1a0b
SM
9002019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * dwarf2read.c: Remove includes.
903
284782de
SM
9042019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * ui-out.c (ui_out::call_do_message): Silence
907 -Wformat-nonliteral warning.
908
073bbbb0
SM
9092019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * breakpoint.c: Remove some includes: continuations.h, skip.h,
912 mi/mi-main.h, readline/readline.h, readline/history.h. Add
913 include: readline/tilde.h.
914
7b9a15e1
CB
9152019-10-12 Christian Biesinger <cbiesinger@google.com>
916
917 * remote.c (remote_target::get_trace_status): Remove declaration of
918 trace_regblock_size.
919
cc8dee1f
CB
9202019-10-12 Christian Biesinger <cbiesinger@google.com>
921
922 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
923 (show_user): Remove declaration of cmdlist.
924 * cli/cli-cmds.h (max_user_call_depth): Declare.
925 * cli/cli-script.c (execute_user_command): Remove declaration
926 of max_user_call_depth.
927
a83d4ef6
JW
9282019-10-11 Jim Wilson <jimw@sifive.com>
929
5f93c5a6
JW
930 * gdbsupport/print-utils.h (pulongest): Fix comment.
931 (plongest): Likewise.
932 (phex): Add missing comment, mention leading zeros.
933 (phex_nz): Add mention of no leading zeros to comment.
934
a83d4ef6
JW
935 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
936 plongest instead of unsigned long long cast.
937
26344e0c
CB
9382019-10-10 Christian Biesinger <cbiesinger@google.com>
939
940 * main.c (captured_main_1): Include gdbtk.h and remove declarations
941 for external_editor_command and gdbtk_test.
942
c2c440a9
CB
9432019-10-10 Christian Biesinger <cbiesinger@google.com>
944
945 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
946 * varobj.c (varobjdebug): Move comment to...
947 * varobj.h (varobjdebug): ...here, and declare.
948
a31bff9d
TT
9492019-10-09 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
952 erase_data_content.
953
7523da63
TT
9542019-10-09 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
957 * tui/tui-stack.c (tui_locator_window::rerender): Update.
958 * tui/tui-command.c (tui_cmd_window::resize)
959 (tui_refresh_cmd_win): Update.
960 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
961 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
962 * tui/tui-data.c (~tui_gen_win_info): Remove.
963 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
964 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
965 (tui_redisplay_readline, tui_mld_flush)
966 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
967 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
968 (tui_data_window::erase_data_content)
969 (tui_data_item_window::rerender)
970 (tui_data_item_window::refresh_window): Update.
971 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
972 (box_win, tui_gen_win_info::make_window)
973 (tui_gen_win_info::make_visible): Update.
974 (tui_delete_win): Remove.
975 * tui/tui-winsource.c
976 (tui_source_window_base::do_erase_source_content): Update.
977 (tui_show_source_line, tui_source_window_base::update_tab_width)
978 (tui_source_window_base::update_exec_info): Update.
979 * tui/tui-data.h (struct curses_deleter): New.
980 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
981 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
982
a7798e7f
TT
9832019-10-09 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
986
5c45899e
TT
9872019-10-09 Tom Tromey <tom@tromey.com>
988
989 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
990 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
991
6d7fd9aa
TT
9922019-10-09 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
995 window height directly.
996 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
997 declare.
998 * tui/tui-layout.c (tui_default_win_height): Remove.
999 (tui_default_win_viewport_height): Remove.
1000
d2dd1084
TT
10012019-10-09 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui.h: Remove comments.
1004
cff32449
TV
10052019-10-09 Tom de Vries <tdevries@suse.de>
1006
1007 * python/lib/gdb/printer/bound_registers.py: Use
1008 '^builtin_type_bound128' as regexp argument for
1009 add_builtin_pretty_printer.
1010
6a25e8a2
CB
10112019-10-09 Christian Biesinger <cbiesinger@google.com>
1012
1013 * guile/guile.c (guile_extension_script_ops): Remove forward
1014 declaration and mark as static.
1015 (guile_script_ops): Likewise.
1016 (extension_language_guile): Move further down in the file so
1017 it can reference the definitions for guile_{extension_,}script_ops.
1018
6d9d6da4
AA
10192019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1020
1021 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1022 except SORTL, DFLTCC, and KDSA.
1023
3abea05d
TT
10242019-10-08 Tom Tromey <tromey@adacore.com>
1025
1026 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1027 (struct safe_symbol_file_add_args): Remove.
1028
dde996e2
TT
10292019-10-08 Tom Tromey <tromey@adacore.com>
1030
1031 * windows-nat.c: Don't include buildsym-legacy.h.
1032
cd6fdaa1
TT
10332019-10-08 Tom Tromey <tromey@adacore.com>
1034
1035 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1036
79bb1944
CB
10372019-10-08 Christian Biesinger <cbiesinger@google.com>
1038
1039 * gdbtypes.c (overload_debug): Move comment to header.
1040 * gdbtypes.h (overload_debug): Declare.
1041 * valops.c: Remove declaration of overload_debug, instead
1042 include gdbtypes.h.
1043
34916edc
CB
10442019-10-08 Christian Biesinger <cbiesinger@google.com>
1045
1046 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1047 through _().
1048 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1049 move comment...
1050 * language.h (lang_frame_mismatch_warn): ... here. Also add
1051 declaration.
1052 * top.c (lang_frame_mismatch_warn): Remove declaration.
1053 (check_frame_language_change): Pass lang_frame_mismatch_warn
1054 through _().
1055
bad5c026
CB
10562019-10-07 Christian Biesinger <cbiesinger@google.com>
1057
1058 * c-lang.h (vtbl_ptr_name): Declare.
1059 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1060 it from the header.
1061 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1062
51f1fdc3
CB
10632019-10-07 Christian Biesinger <cbiesinger@google.com>
1064
1065 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1066 gdb_static_assert.
1067
30d1f018
WP
10682019-10-07 Weimin Pan <weimin.pan@oracle.com>
1069
606813d5
WP
1070 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1071 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1072 * ctfread.c: New file.
1073 * ctfread.h: New file.
1074 * elfread.c: Include ctfread.h.
1075 (struct elfinfo text_p): New member ctfsect.
1076 (elf_locate_sections): Mark CTF section.
1077 (elf_symfile_read): Call elfctf_build_psymtabs.
1078 * Makefile.in (LIBCTF): Add.
1079 (CLIBS): Use it.
1080 (CDEPS): Likewise.
1081 (DIST): Add ctfread.c.
606813d5
WP
1082
10832019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * ctfread.c (struct nextfield): Renamed to ...
1086 (struct ctf_nextfield): ... this.
1087 (struct field_info): Renamed to ...
1088 (strut ctf_field_info): ... this.
1089 (attach_fields_to_type): Update for renamed structures.
1090 (ctf_add_member_cb): Likewise.
1091 (ctf_add_enum_member_cb): Likewise.
1092 (process_struct_members): Likewise.
1093 (process_enum_type): Likewise.
30d1f018 1094
518fe38c
WP
10952019-10-07 Weimin Pan <weimin.pan@oracle.com>
1096
1097 * tracectf.h: Rename, was ctf.h.
1098 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1099 * tracefile.c: Likewise.
1100 * tracepoint.c: Remove unused include ctf.h.
1101 * mi/mi-main.c: Likewise.
1102 * Makefile.in Replace ctf.c with tracectf.c.
1103
225f296a
JB
11042019-10-06 Joel Brobecker <brobecker@adacore.com>
1105
1106 * version.in: Change version number to "9.0.50.DATE-git".
1107
77c2dba3
TT
11082019-10-03 Tom Tromey <tom@tromey.com>
1109
1110 PR rust/24976:
1111 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1112
179aed7f
AB
11132019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1116 cp_search_name_hash.
1117 * NEWS: Add entry about nested function support.
1118
0a4b0913
AB
11192019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1120 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1123 for nested static variables when searchin VAR_DOMAIN.
1124 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1125 global scope, update comment.
1126 (add_partial_subprogram): Call add_partial_subprogram recursively
1127 for nested subroutines when processinng Fortran.
1128 (load_partial_dies): Process the child entities of a subprogram
1129 when processing Fortran.
1130 (partial_die_parent_scope): Handle building scope
1131 for Fortran nested functions.
1132 (process_die): Record that nested functions have a scope.
1133 (new_symbol): Always record Fortran subprograms on the global
1134 symbol list.
1135 (determine_prefix): How to build the prefix for Fortran
1136 subprograms.
1137
d8c06f22
AB
11382019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1141 have just sent the thread a SIGSTOP and are waiting for it to
1142 arrive.
1143
a8b3b8e9
AB
11442019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * btrace.c (btrace_add_pc): Remove whitespace before the template
1147 parameter in 'std::vector <...>'.
1148 (parse_xml_btrace_block): Likewise.
1149 (btrace_maint_decode_pt): Likewise.
1150 (btrace_maint_update_packets): Likewise.
1151 (btrace_maint_print_packets): Likewise.
1152 * btrace.h (struct btrace_maint_info): Likewise.
1153 * dwarf2read.c (struct type_unit_group): Likewise.
1154 (build_type_psymtabs_reader): Likewise.
1155 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1156 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1157 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1158
4d825eab
TV
11592019-10-03 Tom de Vries <tdevries@suse.de>
1160
1161 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1162 the first line of the help text for set/show style metadata.
1163
80fd2826
TT
11642019-10-02 Tom Tromey <tromey@adacore.com>
1165
1166 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1167 * gdbsupport/common-inferior.c: New file.
1168 * infcmd.c (startup_with_shell): Don't define.
1169 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1170 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1171 * inferior.h (startup_with_shell): Don't declare.
1172
70054538
CB
11732019-10-02 Christian Biesinger <cbiesinger@google.com>
1174
1175 * gdbsupport/gdb_assert.h: Include errors.h.
1176 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1177
37f6a7f4
TT
11782019-10-02 Tom Tromey <tromey@adacore.com>
1179
1180 * NEWS: Add $_ada_exception entry.
1181 * ada-lang.c (struct ada_catchpoint): Add constructor.
1182 <m_kind>: New member.
1183 (allocate_location_exception, re_set_exception): Remove
1184 "ex" parameter.
1185 (should_stop_exception): Compute $_ada_exception.
1186 (check_status_exception, print_it_exception)
1187 (print_one_exception, print_mention_exception): Remove
1188 "ex" parameter.
1189 (allocate_location_catch_exception, re_set_catch_exception)
1190 (check_status_exception, print_it_catch_exception)
1191 (print_one_catch_exception, print_mention_catch_exception)
1192 (print_recreate_catch_exception)
1193 (allocate_location_catch_exception_unhandled)
1194 (re_set_catch_exception_unhandled)
1195 (check_status_exception, print_it_catch_exception_unhandled)
1196 (print_one_catch_exception_unhandled)
1197 (print_mention_catch_exception_unhandled)
1198 (print_recreate_catch_exception_unhandled)
1199 (allocate_location_catch_assert, re_set_catch_assert)
1200 (check_status_assert, print_it_catch_assert)
1201 (print_one_catch_assert, print_mention_catch_assert)
1202 (print_recreate_catch_assert)
1203 (allocate_location_catch_handlers, re_set_catch_handlers)
1204 (check_status_handlers, print_it_catch_handlers)
1205 (print_one_catch_handlers, print_mention_catch_handlers)
1206 (print_recreate_catch_handlers): Remove.
1207 (create_ada_exception_catchpoint): Update.
1208 (initialize_ada_catchpoint_ops): Update.
1209
fccf9de1
TT
12102019-10-02 Tom Tromey <tromey@adacore.com>
1211
1212 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1213 (create_excep_cond_exprs): Simplify exception string computation.
1214 (ada_exception_catchpoint_cond_string): Likewise.
1215
4b610737
TT
12162019-10-02 Tom Tromey <tromey@adacore.com>
1217
1218 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1219 * ada-lang.c (lesseq_defined_than): Handle
1220 LOC_STATIC.
1221 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1222 parameter.
1223 (dwarf2_has_info): Likewise.
1224 (new_symbol): Set maybe_copied on symbol when
1225 appropriate.
1226 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1227 parameter.
1228 <can_copy>: New member.
1229 * elfread.c (record_minimal_symbol): Set maybe_copied
1230 on symbol when appropriate.
1231 (elf_symfile_read): Update call to dwarf2_has_info.
1232 * minsyms.c (lookup_minimal_symbol_linkage): New
1233 function.
1234 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1235 * symtab.c (get_symbol_address, get_msymbol_address):
1236 New functions.
1237 * symtab.h (get_symbol_address, get_msymbol_address):
1238 Declare.
1239 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1240 maybe_copied.
1241 (struct symbol, struct minimal_symbol) <maybe_copied>:
1242 New member.
1243
1dd58850
TT
12442019-10-02 Tom Tromey <tromey@adacore.com>
1245
1246 * source.c (struct current_source_location): New.
1247 (current_source_key): New global.
1248 (current_source_symtab, current_source_line)
1249 (current_source_pspace): Remove.
1250 (get_source_location): New function.
1251 (get_current_source_symtab_and_line)
1252 (set_default_source_symtab_and_line)
1253 (set_current_source_symtab_and_line)
1254 (clear_current_source_symtab_and_line, select_source_symtab)
1255 (info_source_command, print_source_lines_base)
1256 (info_line_command, search_command_helper, _initialize_source):
1257 Update.
1258
5c281dbb
TT
12592019-10-02 Tom Tromey <tromey@adacore.com>
1260
1261 * source.c (select_source_symtab): Don't call
1262 decode_line_with_current_source.
1263
d3d32391
AB
12642019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * symtab.c (lookup_global_symbol): Search global block.
1267
38583298
TT
12682019-10-02 Tom Tromey <tromey@adacore.com>
1269
1270 * coffread.c (process_coff_symbol): Update.
1271 * dwarf2read.c (var_decode_location, new_symbol): Update.
1272 * mdebugread.c (parse_symbol): Update.
1273 * objfiles.c (relocate_one_symbol): Update.
1274 * stabsread.c (define_symbol, fix_common_block)
1275 (scan_file_globals): Update.
1276 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1277 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1278 * xcoffread.c (process_xcoff_symbol): Update.
1279
9344c18f
AA
12802019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1281
1282 * MAINTAINERS: Update my email address.
1283
df07e2c7
AB
12842019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1287 std::vector.
1288 (build_type_psymtabs_reader): Update for std::vector.
1289 (build_type_psymtab_dependencies): Likewise.
1290 * dwarf2read.h: Remove use of DEF_VEC_P.
1291 (typedef sig_type_ptr): Delete.
1292
554ac434
AB
12932019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1296 to std::vector.
1297 (btrace_maint_decode_pt): Likewise, and move allocation of the
1298 vector outside of the loop.
1299 (btrace_maint_update_packets): Update to handle change from VEC to
1300 std::vector.
1301 (btrace_maint_print_packets): Likewise.
1302 (maint_info_btrace_cmd): Likewise.
1303 * btrace.h: Remove use of DEF_VEC_O.
1304 (typedef btrace_pt_packet_s): Delete.
1305 (struct btrace_maint_info) <packets>: Change fromm VEC to
1306 std::vector.
1307 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1308
46f29a9a
AB
13092019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1312 make accesses into the vector constant references.
1313 (btrace_add_pc): Update for std::vector.
1314 (btrace_stitch_bts): Likewise.
1315 (parse_xml_btrace_block): Likewise.
1316 (btrace_maint_update_packets): Likewise.
1317 (btrace_maint_print_packets): Likewise.
1318 (maint_info_btrace_cmd): Likewise.
1319 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1320 std::vector.
1321 (btrace_data::empty): Likewise.
1322 (btrace_data_append): Likewise.
1323 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1324 (typedef btrace_block_s): Delete.
1325 (struct btrace_block): Add constructor.
1326 (struct btrace_data_bts) <blocks>: Change to std::vector.
1327 * nat/linux-btrace.c (perf_event_read_bts): Update for
1328 std::vector.
1329 (linux_read_bts): Likewise.
1330
d770d56f
TT
13312019-10-01 Tom Tromey <tom@tromey.com>
1332
1333 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1334
9d636d67
TT
13352019-10-01 Tom Tromey <tom@tromey.com>
1336
1337 * stack.c (print_frame, info_frame_command_core): Use
1338 styled_string.
1339 * linux-thread-db.c (try_thread_db_load_1)
1340 (try_thread_db_load_from_pdir_1): Use styled_string.
1341 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1342 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1343 (maybe_print_unsupported_script_warning)
1344 (maybe_print_script_not_found_warning): Use styled_string.
1345 * ada-lang.c (user_select_syms): Use styled_string.
1346
7f6aba03
TT
13472019-10-01 Tom Tromey <tom@tromey.com>
1348
1349 * p-lang.c (pascal_printstr): Use metadata style.
1350 * value.c (show_convenience): Use metadata style.
1351 * valprint.c (valprint_check_validity, val_print_optimized_out)
1352 (val_print_not_saved, val_print_unavailable)
1353 (val_print_invalid_address, generic_val_print, val_print)
1354 (value_check_printable, val_print_array_elements): Use metadata
1355 style.
1356 * ui-out.h (class ui_out) <field_fmt>: New overload.
1357 <do_field_fmt>: Add style parameter.
1358 * ui-out.c (ui_out::field_fmt): New overload.
1359 * typeprint.c (type_print_unknown_return_type)
1360 (val_print_not_allocated, val_print_not_associated): Use metadata
1361 style.
1362 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1363 parameter.
1364 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1365 * tracepoint.c (tvariables_info_1): Use metadata style.
1366 * stack.c (print_frame_arg, print_frame_info, print_frame)
1367 (info_frame_command_core): Use metadata style.
1368 * skip.c (info_skip_command): Use metadata style.
1369 * rust-lang.c (rust_print_enum): Use metadata style.
1370 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1371 metadata style.
1372 * python/py-framefilter.c (py_print_single_arg): Use metadata
1373 style.
1374 * printcmd.c (do_one_display, print_variable_and_value): Use
1375 metadata style.
1376 * p-valprint.c (pascal_val_print)
1377 (pascal_object_print_value_fields): Use metadata style.
1378 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1379 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1380 parameter.
1381 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1382 * m2-valprint.c (m2_print_long_set): Use metadata style.
1383 * m2-typeprint.c (m2_print_type): Use metadata style.
1384 * infcmd.c (print_return_value_1): Use metadata style.
1385 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1386 * f-valprint.c (info_common_command_for_block): Use metadata
1387 style.
1388 * f-typeprint.c (f_type_print_base): Use metadata style.
1389 * expprint.c (print_subexp_standard): Use metadata style.
1390 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1391 * cli/cli-style.h (class cli_style_option): Add constructor.
1392 (metadata_style): Declare.
1393 * cli/cli-style.c (metadata_style): New global.
1394 (_initialize_cli_style): Register metadata style.
1395 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1396 parameter.
1397 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1398 * c-typeprint.c (c_type_print_base_struct_union)
1399 (c_type_print_base_1): Use metadata style.
1400 * breakpoint.c (watchpoint_value_print)
1401 (print_one_breakpoint_location): Use metadata style.
1402 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1403 style.
1404 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1405 style.
1406 * ada-valprint.c (val_print_packed_array_elements, printstr)
1407 (print_field_values, ada_val_print_ref, ada_val_print): Use
1408 metadata style.
1409 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1410 style.
1411 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1412 style.
1413 * ada-lang.c (user_select_syms): Use metadata style.
1414
14309bb6
TT
14152019-10-01 Tom Tromey <tom@tromey.com>
1416
1417 * cli/cli-cmds.c (pwd_command): Style output.
1418
6a831f06
PA
14192019-10-01 Pedro Alves <palves@redhat.com>
1420 Tom Tromey <tom@tromey.com>
1421
1422 * symtab.c (print_symbol_info): Use %ps.
1423 (print_msymbol_info): Use %ps.
1424 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1425 * printcmd.c (print_variable_and_value): Use %ps.
1426 * macrocmd.c (show_pp_source_pos): Use %ps.
1427 * infrun.c (print_exited_reason): Use ui_out::message.
1428 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1429 (describe_other_breakpoints): Use ui_out::message and new
1430 formats.
1431 (say_where): Use new formats.
1432 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1433 and new formats.
1434
2a3c1174
PA
14352019-10-01 Pedro Alves <palves@redhat.com>
1436 Tom Tromey <tom@tromey.com>
1437
1438 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1439 (test_gdb_formats): New function.
1440 (run_tests): Call it.
1441 (test_format_specifier): Update.
1442 * utils.h (fputs_filtered): Update comment.
1443 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1444 (fputs_styled_unfiltered): Declare.
1445 * utils.c (fputs_styled_unfiltered): New function.
1446 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1447 (vfprintf_filtered): Update.
1448 (vfprintf_unfiltered, vprintf_filtered): Update.
1449 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1450 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1451 disallow_ui_out_field>: New constants.
1452 (enum class field_kind): New.
1453 (struct base_field_s, struct signed_field_s): New.
1454 (signed_field): New function.
1455 (struct string_field_s): New.
1456 (string_field): New function.
1457 (struct styled_string_s): New.
1458 (styled_string): New function.
1459 (class ui_out) <message>: Add comment.
1460 <vmessage, call_do_message>: New methods.
1461 <do_message>: Add style parameter.
1462 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1463 methods.
1464 (ui_out::message): Rewrite.
1465 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1466 parameter.
1467 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1468 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1469 gdb_extensions parameter.
1470 (class format_piece): Add parameter to constructor.
1471 (n_int_args): New field.
1472 * gdbsupport/format.c (format_pieces::format_pieces): Add
1473 gdb_extensions parameter. Handle '*'.
1474 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1475 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1476 vfprintf_styled_no_gdbfmt.
1477 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1478 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1479 unfiltered output.
1480 * ui-style.h (struct ui_file_style) <ptr>: New method.
1481
0dfe5bfb
TT
14822019-10-01 Tom Tromey <tom@tromey.com>
1483
1484 * unittests/format_pieces-selftests.c: Update. Add final format.
1485 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1486 empty literal pieces.
1487
e43b10e1
TT
14882019-10-01 Tom Tromey <tom@tromey.com>
1489
1490 * ui-out.h (enum class ui_out_style_kind): Remove.
1491 (class ui_out) <field_string, field_stsream, do_field_string>:
1492 Change type of "style".
1493 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1494 (ui_out::field_string): Update.
1495 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1496 of "style".
1497 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1498 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1499 * stack.c (print_frame_arg, print_frame_info, print_frame):
1500 Update.
1501 * source.c (print_source_lines_base): Update.
1502 * solib.c (info_sharedlibrary_command): Update.
1503 * skip.c (info_skip_command): Update.
1504 * record-btrace.c (btrace_call_history_src_line)
1505 (btrace_call_history): Update.
1506 * python/py-framefilter.c (py_print_frame): Update.
1507 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1508 "style".
1509 * mi/mi-out.c (mi_ui_out::do_table_header)
1510 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1511 (mi_ui_out::do_field_string): Update.
1512 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1513 Update.
1514 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1515 "style".
1516 * cli-out.c (cli_ui_out::do_table_header)
1517 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1518 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1519 (cli_ui_out::do_field_fmt): Update.
1520 * breakpoint.c (print_breakpoint_location): Update.
1521 (update_static_tracepoint): Update.
1522
cd7c32c3
PW
15232019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1524
1525 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1526 conversion of gdb_datadir.
1527 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1528 remove not needed c_str ().
1529
8fe0f950
AT
15302019-09-30 Ali Tamur <tamur@google.com>
1531
1532 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1533 (dwarf2_string_attr): Likewise.
1534
5f48f8f3
AT
15352019-09-30 Ali Tamur <tamur@google.com>
1536
1537 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1538 (process_full_type_unit): Likewise.
1539 (dump_die_shallow): Likewise.
1540 (cu_debug_loc_section): Likewise.
1541
6fb08628
CB
15422019-09-28 Christian Biesinger <cbiesinger@google.com>
1543
1544 * minsyms.c (compare_minimal_symbols): Rename to...
1545 (minimal_symbol_is_less_than): ...this, and adjust to STL
1546 conventions (return bool, take arguments as references)
1547 (minimal_symbol_reader::install): Call std::sort instead
1548 of qsort.
1549
c7ee338a
CB
15502019-09-29 Christian Biesinger <cbiesinger@google.com>
1551
1552 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1553 hash and why.
1554 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1555 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1556
703a86c2
SM
15572019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1560 * psympriv.h (add_psymbol_to_list): Move comment here and update
1561 it.
1562
0df0352a
TV
15632019-09-29 Tom de Vries <tdevries@suse.de>
1564
1565 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1566 Use $tmpdir/$(basename "$output_file").dwz instead of
1567 "${output_file}.dwz".
1568
ad75efa6
SM
15692019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 PR gdb/25045
1572 * hppa-linux-nat.c: Include gdbarch.h.
1573
ececd218
CB
15742019-09-26 Christian Biesinger <cbiesinger@google.com>
1575
1576 * blockframe.c (find_pc_partial_function): Change return type to bool.
1577 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1578 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1579 (stub_gnu_ifunc_resolve_name): Likewise.
1580 * symtab.c (compare_filenames_for_search): Likewise.
1581 (compare_glob_filenames_for_search): Likewise.
1582 (matching_obj_sections): Likewise.
1583 (symbol_matches_domain): Likewise.
1584 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1585 (find_line_pc): Change return type to bool.
1586 (find_line_pc_range): Likewise.
1587 (producer_is_realview): Likewise.
1588 * symtab.h (symbol_matches_domain): Likewise.
1589 (find_pc_partial_function): Likewise.
1590 (find_pc_line_pc_range): Likewise.
1591 (in_gnu_ifunc_stub): Likewise.
1592 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1593 (find_line_pc): Likewise.
1594 (find_line_pc_range): Likewise.
1595 (matching_obj_sections): Likewise.
1596 (find_line_symtab): Change out parameter to bool.
1597 (producer_is_realview): Change return type to bool.
1598 (compare_filenames_for_search): Likewise.
1599 (compare_glob_filenames_for_search): Likewise.
1600
27a900b8
TT
16012019-09-26 Tom Tromey <tom@tromey.com>
1602
1603 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1604 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1605 * gdb_usleep.h: Remove.
1606 * gdb_usleep.c: Remove.
1607 * utils.c: Don't include gdb_usleep.h.
1608
5d63b30a
TT
16092019-09-26 Tom Tromey <tromey@adacore.com>
1610
1611 * python/py-type.c (type_to_type_object): Call check_typedef
1612 for stub types.
1613
12904d37
TT
16142019-09-26 Tom Tromey <tom@tromey.com>
1615
1616 * utils.h (initialize_utils): Don't declare.
1617 * top.c (gdb_init): Don't call initialize_utils.
1618 * utils.c (initialize_utils): Remove. Move contents...
1619 (_initialize_utils): ... here.
1620
858f25f0
TT
16212019-09-25 Tom Tromey <tom@tromey.com>
1622
1623 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1624 * utils.h (make_hex_string): Don't declare.
1625 * utils.c (make_hex_string): Remove.
1626
3d435220
TV
16272019-09-24 Tom de Vries <tdevries@suse.de>
1628
1629 PR gdb/23815
1630 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1631 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1632
ddd44b70
DD
16332019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1634
1635 * NEWS: Mention new simulator port for PRU.
1636
f945dedf
CB
16372019-09-23 Christian Biesinger <cbiesinger@google.com>
1638
1639 * ada-exp.y (write_object_remaining): Update.
1640 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1641 and eliminate the static buffer.
1642 (ada_decode_symbol): Update.
1643 (ada_la_decode): Update.
1644 (ada_sniff_from_mangled_name): Update.
1645 (is_valid_name_for_wild_match): Update.
1646 (ada_lookup_name_info::matches): Update and simplify.
1647 (name_matches_regex): Update.
1648 (ada_add_global_exceptions): Update.
1649 * ada-lang.h (ada_decode): Update signature.
1650 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1651 * dwarf-index-write.c (debug_names::insert): Update.
1652
7ab78ccb
SM
16532019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1656 formatting.
1657
9252448b
SM
16582019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1661 Change "nonzero" to "true" in documentation.
1662
626ca2c0
CB
16632019-09-20 Christian Biesinger <cbiesinger@google.com>
1664
1665 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1666 (_initialize_darwin_solib): Don't set
1667 darwin_so_ops.lookup_lib_global_symbol.
1668 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1669 set_gdbarch_iterate_over_objfiles_in_search_order.
1670 (elf_lookup_lib_symbol): Rename to...
1671 (svr4_iterate_over_objfiles_in_search_order): this, and update
1672 to iterate semantics.
1673 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1674 * solib.c (solib_global_lookup): Remove.
1675 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1676 (solib_global_lookup): Remove.
1677 * symtab.c (lookup_global_or_static_symbol): Remove call to
1678 solib_global_lookup.
1679
5a3a0d63
JB
16802019-09-20 Joel Brobecker <brobecker@adacore.com>
1681
1682 * NEWS: Move entries about default MI version now being
1683 version 3, and about the GDB/MI fix for multi-location
1684 breakpoints to the "since GDB 8.3" section.
1685
ffea1427
JB
16862019-09-20 Joel Brobecker <brobecker@adacore.com>
1687
1688 GDB 8.3.1 released.
1689
abf516c6
UW
16902019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1691
1692 * NEWS: Mention that Cell/B.E. debugging support was removed.
1693 * MAINTAINERS: Remove spu target.
1694
1695 * config/djgpp/fnchange.lst: Remove entries for removed files.
1696
1697 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1698 spu-multiarch.o, and spu-tdep.o.
1699 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1700 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1701 spu-multiarch.c, and spu-tdep.c.
1702 * spu-linux-nat.c: Remove file.
1703 * spu-multiarch.c: Remove file.
1704 * spu-tdep.c: Remove file.
1705 * spu-tdep.h: Remove file.
1706 * solib-spu.c: Remove file.
1707 * solib-spu.h: Remove file.
1708
1709 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1710 * configure.nat (spu-linux): Remove.
1711 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1712 solib-multiarch.o from gdb_target_obs.
1713 (spu*-*-*): Remove.
1714
1715 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1716 feature flag.
1717 (ppc_linux_no_features): Update.
1718 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1719 Cell/B.E. support.
1720 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1721 (tdesc_powerpc_cell64l): Likewise.
1722 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1723 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1724 Cell/B.E. support.
1725 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1726 Do not include "features/rs6000/powerpc-cell32l.c" or
1727 "features/rs6000/powerpc-cell64l.c".
1728 (ppc_linux_spu_section): Remove.
1729 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1730 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1731 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1732 (ppc_linux_spe_context_lookup): Remove.
1733 (ppc_linux_spe_context_inferior_created): Remove.
1734 (ppc_linux_spe_context_solib_loaded): Remove.
1735 (ppc_linux_spe_context_solib_unloaded): Remove.
1736 (ppc_linux_spe_context): Remove.
1737 (struct ppu2spu_cache): Remove.
1738 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1739 (struct ppu2spu_data): Remove.
1740 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1741 ppu2spu_unwind): Remove.
1742 (ppc_linux_init_abi): Remove Cell/B.E. support.
1743 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1744
1745 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1746 (rs6000/powerpc-cell64l-expedite): Likewise
1747 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1748 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1749 rs6000/powerpc-cell64l.xml.
1750 * features/rs6000/powerpc-cell32l.xml: Remove.
1751 * features/rs6000/powerpc-cell64l.xml: Likewise.
1752 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1753 * features/rs6000/powerpc-cell64l.c: Likewise.
1754 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1755 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1756 * regformats/reg-spu.dat: Remove.
1757
1758 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1759 * corelow.c (struct spuid_list): Remove.
1760 (add_to_spuid_list): Remove.
1761 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1762 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1763 (remote_protocol_features): Remove associated entries.
1764 (_initialize_remote): No longer initialize them.
1765 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1766 * linux-nat.c (SPUFS_MAGIC): Remove.
1767 (linux_proc_xfer_spu): Remove.
1768 (spu_enumerate_spu_ids): Remove.
1769 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1770 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1771 (linux_make_corefile_notes): No longer call it.
1772
1773 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1774 (cooked_write_test): Likewise.
1775
78e8cb91
TT
17762019-09-20 Tom Tromey <tom@tromey.com>
1777
1778 * NEWS: Mention case-sensitivity of TUI commands.
1779 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1780 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1781 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1782
f074b67e
TT
17832019-09-20 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-source.c (tui_source_window::set_contents): Use
1786 make_unique_xstrdup.
1787 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1788 make_unique_xstrdup.
1789
63c4bf19
TT
17902019-09-20 Tom Tromey <tom@tromey.com>
1791
1792 * tui/tui-data.c: Remove separator comments.
1793 * tui/tui-layout.c: Remove separator comments.
1794 * tui/tui-win.c: Remove separator comments.
1795 * tui/tui-wingeneral.c: Remove separator comments.
1796
43df9b2f
TT
17972019-09-20 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui.h (strcat_to_buf): Don't declare.
1800 * tui/tui.c (strcat_to_buf): Remove.
1801
7226433c
TT
18022019-09-20 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1805 from "fullname".
1806 * tui/tui-source.c (tui_source_window::set_contents)
1807 (tui_source_window::location_matches_p)
1808 (tui_source_window::maybe_update): Update.
1809
80df3337
TT
18102019-09-20 Tom Tromey <tom@tromey.com>
1811
1812 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1813 Update.
1814 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1815 prefix.
1816 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1817 (tui_data_window::line_from_reg_element_no)
1818 (tui_data_window::first_reg_element_no_inline)
1819 (tui_data_window::show_registers)
1820 (tui_data_window::show_register_group)
1821 (tui_data_window::display_registers_from)
1822 (tui_data_window::display_registers_from_line)
1823 (tui_data_window::first_data_item_displayed)
1824 (tui_data_window::delete_data_content_windows)
1825 (tui_data_window::erase_data_content)
1826 (tui_data_window::do_scroll_vertical)
1827 (tui_data_window::refresh_window)
1828 (tui_data_window::check_register_values): Update.
1829
9923f347
TT
18302019-09-20 Tom Tromey <tom@tromey.com>
1831
1832 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1833 (struct tui_locator_window) <full_name, proc_name>: Now
1834 std::string.
1835 * tui/tui-stack.c (tui_locator_window::make_status_line)
1836 (tui_locator_window::set_locator_fullname)
1837 (tui_locator_window::set_locator_info): Update.
1838 * tui/tui-source.c (tui_source_window::set_contents)
1839 (tui_source_window::showing_source_p): Update.
1840
b76251ab
TT
18412019-09-20 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1844 Don't call tui_locator_win_info_ptr.
1845
0891be08
TT
18462019-09-20 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1849
1b935acf
TT
18502019-09-20 Tom Tromey <tom@tromey.com>
1851
1852 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1853 height for locator.
1854 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1855 * tui/tui-layout.c (show_source_disasm_command, show_data)
1856 (show_source_or_disasm_and_command): Use 1 as height for locator.
1857
9abd8a65
TT
18582019-09-20 Tom Tromey <tom@tromey.com>
1859
1860 * tui/tui.c (tui_enable): Update.
1861 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1862 Update.
1863 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1864 Update.
1865 * tui/tui-data.c (win_resized): Now bool.
1866 (tui_win_resized): Return bool.
1867 (tui_set_win_resized_to): Accept a bool.
1868
b5457826
TT
18692019-09-20 Tom Tromey <tom@tromey.com>
1870
1871 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1872 Change type of "refresh_values_only".
1873 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1874 type of "refresh_values_only".
1875
6b915f7d
TT
18762019-09-20 Tom Tromey <tom@tromey.com>
1877
1878 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1879 std::string.
1880 (tui_disassemble): Add "pos" parameter.
1881 (tui_disasm_window::set_contents): Simplify.
1882
2ad52f6f
TT
18832019-09-20 Tom Tromey <tom@tromey.com>
1884
1885 * tui/tui-winsource.h (struct tui_source_window_base)
1886 <show_source_content>: Now private.
1887 * tui/tui-winsource.c
1888 (tui_source_window_base::show_source_content): Don't handle empty
1889 content case.
1890
b3b1bde6
TT
18912019-09-20 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-layout.c (show_source_disasm_command)
1894 (show_source_or_disasm_and_command): Don't call
1895 show_source_content.
1896
71a25ed2
TT
18972019-09-20 Tom Tromey <tom@tromey.com>
1898
1899 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1900 Declare.
1901 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1902 from tui_make_status_line.
1903 (tui_locator_window::rerender): Update.
1904
f8532154
TT
19052019-09-20 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1908 (tui_locator_window::rerender): Update.
1909
2d81b349
TT
19102019-09-20 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-winsource.h (struct tui_source_window_base)
1913 <~tui_source_window_base>: Don't declare.
1914 <fullname>: Remove.
1915 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1916 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1917 member.
1918 * tui/tui-source.c (tui_source_window::set_contents): Update.
1919 (tui_source_window::location_matches_p)
1920 (tui_source_window::maybe_update): Update.
1921
f14bec58
TT
19222019-09-20 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-winsource.h (~tui_source_element): Remove.
1925 (tui_source_element): Update.
1926 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1927 * tui/tui-winsource.c (tui_show_source_line): Update.
1928 * tui/tui-source.c (tui_source_window::set_contents): Update.
1929 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1930
78d5933a
TT
19312019-09-20 Tom Tromey <tom@tromey.com>
1932
1933 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1934 declare.
1935 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1936 tui_clear_source_windows_detail.
1937 * tui/tui-winsource.h (struct tui_source_window_base)
1938 <clear_detail>: Don't declare.
1939 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1940 Remove.
1941 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1942
d4207696
TT
19432019-09-20 Tom Tromey <tromey@adacore.com>
1944
1945 PR ada/24919:
1946 * block.c (contained_in): Fix final return value.
1947
00f93c44
AM
19482019-09-20 Alan Modra <amodra@gmail.com>
1949
1950 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1951 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1952 (read_indirect_string_from_dwz): Use bfd accessor.
1953 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1954 * machoread.c (macho_symfile_read_all_oso): Likewise.
1955 * solib.c (solib_bfd_open): Likewise.
1956
e4153ae6
CB
19572019-09-19 Christian Biesinger <cbiesinger@google.com>
1958
1959 * eval.c: Move declaration of overload_resolution to...
1960 * value.h: ...here.
1961
c7ae7675
CB
19622019-09-19 Christian Biesinger <cbiesinger@google.com>
1963
1964 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1965 * arm-linux-tdep.c: Likewise.
1966 * arm-nbsd-nat.c: Likewise.
1967 * arm-tdep.h: Declare arm_apcs_32.
1968 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1969
e86f08d2
CB
19702019-09-19 Christian Biesinger <cbiesinger@google.com>
1971
1972 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1973 * dwarf2read.h: Declare dwarf_always_disassemble.
1974
f64e2f40
TV
19752019-09-19 Tom de Vries <tdevries@suse.de>
1976
1977 PR gdb/25009
1978 * source-cache.c (source_cache::ensure): Catch exception thrown during
1979 construction of the highlighter.
1980
fd361982
AM
19812019-09-18 Alan Modra <amodra@gmail.com>
1982
1983 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1984 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1985 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1986 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1987 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1988 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1989 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1990 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1991 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1992 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1993 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1994 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1995 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1996 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1997 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1998 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1999 * mi/mi-interp.c: Update throughout for bfd section macro and
2000 function changes.
2001 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2002 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2003
11061048
TT
20042019-09-18 Tom Tromey <tom@tromey.com>
2005
2006 * NEWS: Add entry.
2007 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2008 call rl_initialize.
2009 (tui_enable): Do not call rl_initialize.
2010
7a27b85f
CG
20112019-09-18 Christian Groessler <chris@groessler.org>
2012
2013 * alpha-linux-nat.c: Include gdbarch.h.
2014
f64eea3a
SM
20152019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * ui-file.c: Include cli/cli-style.h.
2018 (term_cli_styling): Remove cli_styling declaration.
2019
e6f7f6d1
AM
20202019-09-18 Alan Modra <amodra@gmail.com>
2021
2022 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2023 to bfd_asymbol_section.
2024
1d38e9d1
AM
20252019-09-18 Alan Modra <amodra@gmail.com>
2026
2027 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2028 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2029 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2030
90d92a63
AM
20312019-09-18 Alan Modra <amodra@gmail.com>
2032
2033 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2034 * spu-linux-nat.c (spu_bfd_open): Likewise.
2035
a3d181d2
CB
20362019-09-18 Christian Biesinger <cbiesinger@google.com>
2037
2038 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2039 to bool to match definition in dwarf2read.c.
2040
491144b5
CB
20412019-09-17 Christian Biesinger <cbiesinger@google.com>
2042
2043 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2044 (print_signatures): Likewise.
2045 (trust_pad_over_xvs): Likewise.
2046 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2047 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2048 * arm-linux-nat.c (arm_apcs_32): Likewise.
2049 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2050 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2051 * arm-tdep.c (arm_debug): Likewise.
2052 (arm_apcs_32): Likewise.
2053 * auto-load.c (debug_auto_load): Likewise.
2054 (auto_load_gdb_scripts): Likewise.
2055 (global_auto_load): Likewise.
2056 (auto_load_local_gdbinit): Likewise.
2057 (auto_load_local_gdbinit_loaded): Likewise.
2058 * auto-load.h (global_auto_load): Likewise.
2059 (auto_load_local_gdbinit): Likewise.
2060 (auto_load_local_gdbinit_loaded): Likewise.
2061 * breakpoint.c (disconnected_dprintf): Likewise.
2062 (breakpoint_proceeded): Likewise.
2063 (automatic_hardware_breakpoints): Likewise.
2064 (always_inserted_mode): Likewise.
2065 (target_exact_watchpoints): Likewise.
2066 (_initialize_breakpoint): Update.
2067 * breakpoint.h (target_exact_watchpoints): Change to bool.
2068 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2069 * cli/cli-cmds.c (trace_commands): Likewise.
2070 * cli/cli-cmds.h (trace_commands): Likewise.
2071 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2072 to bool*.
2073 * cli/cli-logging.c (logging_overwrite): Change to bool.
2074 (logging_redirect): Likewise.
2075 (debug_redirect): Likewise.
2076 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2077 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2078 to bool.
2079 <boolean_option_def>: Update.
2080 (struct flag_option_def): Change default type of Context to bool
2081 from int.
2082 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2083 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2084 (get_setshow_command_value_string): Likewise.
2085 * cli/cli-style.c (cli_styling): Change to bool.
2086 (source_styling): Likewise.
2087 * cli/cli-style.h (source_styling): Likewise.
2088 (cli_styling): Likewise.
2089 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2090 to bool.
2091 * command.h (var_types): Update comment.
2092 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2093 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2094 bool.
2095 (debug_compile_cplus_scopes): Likewise.
2096 * compile/compile-internal.h (compile_debug): Likewise.
2097 * compile/compile.c (compile_debug): Likewise.
2098 (struct compile_options) <raw>: Likewise.
2099 * cp-support.c (catch_demangler_crashes): Likewise.
2100 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2101 (usr_cmd_cris_dwarf2_cfi): Likewise.
2102 * csky-tdep.c (csky_debug): Likewise.
2103 * darwin-nat.c (enable_mach_exceptions): Likewise.
2104 * dcache.c (dcache_enabled_p): Likewise.
2105 * defs.h (info_verbose): Likewise.
2106 * demangle.c (demangle): Likewise.
2107 (asm_demangle): Likewise.
2108 * dwarf-index-cache.c (debug_index_cache): Likewise.
2109 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2110 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2111 * dwarf2read.c (check_physname): Likewise.
2112 (use_deprecated_index_sections): Likewise.
2113 (dwarf_always_disassemble): Likewise.
2114 * eval.c (overload_resolution): Likewise.
2115 * event-top.c (set_editing_cmd_var): Likewise.
2116 (exec_done_display_p): Likewise.
2117 * event-top.h (set_editing_cmd_var): Likewise.
2118 (exec_done_display_p): Likewise.
2119 * exec.c (write_files): Likewise.
2120 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2121 (debug_fbsd_nat): Likewise.
2122 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2123 Likewise.
2124 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2125 <backtrace_past_entry> Likewise.
2126 * gdb-demangle.h (demangle): Likewise.
2127 (asm_demangle): Likewise.
2128 * gdb_bfd.c (bfd_sharing): Likewise.
2129 * gdbcore.h (write_files): Likewise.
2130 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2131 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2132 * gdbthread.h (print_thread_events): Likewise.
2133 * gdbtypes.c (opaque_type_resolution): Likewise.
2134 (strict_type_checking): Likewise.
2135 * gnu-nat.c (gnu_debug_flag): Likewise.
2136 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2137 * guile/scm-param.c (pascm_variable): Add boolval.
2138 (add_setshow_generic): Update.
2139 (pascm_param_value): Update.
2140 (pascm_set_param_value_x): Update.
2141 * hppa-tdep.c (hppa_debug): Change to bool..
2142 * infcall.c (may_call_functions_p): Likewise.
2143 (coerce_float_to_double_p): Likewise.
2144 (unwind_on_signal_p): Likewise.
2145 (unwind_on_terminating_exception_p): Likewise.
2146 * infcmd.c (startup_with_shell): Likewise.
2147 * inferior.c (print_inferior_events): Likewise.
2148 * inferior.h (startup_with_shell): Likewise.
2149 (print_inferior_events): Likewise.
2150 * infrun.c (step_stop_if_no_debug): Likewise.
2151 (detach_fork): Likewise.
2152 (debug_displaced): Likewise.
2153 (disable_randomization): Likewise.
2154 (non_stop): Likewise.
2155 (non_stop_1): Likewise.
2156 (observer_mode): Likewise.
2157 (observer_mode_1): Likewise.
2158 (set_observer_mode): Update.
2159 (sched_multi): Change to bool.
2160 * infrun.h (debug_displaced): Likewise.
2161 (sched_multi): Likewise.
2162 (step_stop_if_no_debug): Likewise.
2163 (non_stop): Likewise.
2164 (disable_randomization): Likewise.
2165 * linux-tdep.c (use_coredump_filter): Likewise.
2166 (dump_excluded_mappings): Likewise.
2167 * linux-thread-db.c (auto_load_thread_db): Likewise.
2168 (check_thread_db_on_load): Likewise.
2169 * main.c (captured_main_1): Update.
2170 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2171 xx2_opt, boolean_opt>: Change to bool.
2172 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2173 * maint.c (maintenance_profile_p): Likewise.
2174 (per_command_time): Likewise.
2175 (per_command_space): Likewise.
2176 (per_command_symtab): Likewise.
2177 * memattr.c (inaccessible_by_default): Likewise.
2178 * mi/mi-main.c (mi_async): Likewise.
2179 (mi_async_1): Likewise.
2180 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2181 * nat/fork-inferior.h (startup_with_shell): Likewise.
2182 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2183 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2184 * nios2-tdep.c (nios2_debug): Likewise.
2185 * or1k-tdep.c (or1k_debug): Likewise.
2186 * parse.c (parser_debug): Likewise.
2187 * parser-defs.h (parser_debug): Likewise.
2188 * printcmd.c (print_symbol_filename): Likewise.
2189 * proc-api.c (procfs_trace): Likewise.
2190 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2191 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2192 (set_parameter_value): Update.
2193 (add_setshow_generic): Update.
2194 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2195 to bool*.
2196 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2197 int*.
2198 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2199 * record-btrace.c (record_btrace_target::store_registers): Update.
2200 * record-full.c (record_full_memory_query): Change to bool.
2201 (record_full_stop_at_limit): Likewise.
2202 * record-full.h (record_full_memory_query): Likewise.
2203 * remote-notif.c (notif_debug): Likewise.
2204 * remote-notif.h (notif_debug): Likewise.
2205 * remote.c (use_range_stepping): Likewise.
2206 (interrupt_on_connect): Likewise.
2207 (remote_break): Likewise.
2208 * ser-tcp.c (tcp_auto_retry): Likewise.
2209 * ser-unix.c (serial_hwflow): Likewise.
2210 * skip.c (debug_skip): Likewise.
2211 * solib-aix.c (solib_aix_debug): Likewise.
2212 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2213 (spu_auto_flush_cache_p): Likewise.
2214 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2215 Likewise.
2216 (struct info_print_options) <quiet>: Likewise.
2217 * symfile-debug.c (debug_symfile): Likewise.
2218 * symfile.c (auto_solib_add): Likewise.
2219 (separate_debug_file_debug): Likewise.
2220 * symfile.h (auto_solib_add): Likewise.
2221 (separate_debug_file_debug): Likewise.
2222 * symtab.c (basenames_may_differ): Likewise.
2223 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2224 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2225 (struct info_types_options) <quiet>: Likewise.
2226 * symtab.h (demangle): Likewise.
2227 (basenames_may_differ): Likewise.
2228 * target-dcache.c (stack_cache_enabled_1): Likewise.
2229 (code_cache_enabled_1): Likewise.
2230 * target.c (trust_readonly): Likewise.
2231 (may_write_registers): Likewise.
2232 (may_write_memory): Likewise.
2233 (may_insert_breakpoints): Likewise.
2234 (may_insert_tracepoints): Likewise.
2235 (may_insert_fast_tracepoints): Likewise.
2236 (may_stop): Likewise.
2237 (auto_connect_native_target): Likewise.
2238 (target_stop_and_wait): Update.
2239 (target_async_permitted): Change to bool.
2240 (target_async_permitted_1): Likewise.
2241 (may_write_registers_1): Likewise.
2242 (may_write_memory_1): Likewise.
2243 (may_insert_breakpoints_1): Likewise.
2244 (may_insert_tracepoints_1): Likewise.
2245 (may_insert_fast_tracepoints_1): Likewise.
2246 (may_stop_1): Likewise.
2247 * target.h (target_async_permitted): Likewise.
2248 (may_write_registers): Likewise.
2249 (may_write_memory): Likewise.
2250 (may_insert_breakpoints): Likewise.
2251 (may_insert_tracepoints): Likewise.
2252 (may_insert_fast_tracepoints): Likewise.
2253 (may_stop): Likewise.
2254 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2255 (make_thread_apply_all_options_def_group): Change argument from int*
2256 to bool*.
2257 (thread_apply_all_command): Update.
2258 (print_thread_events): Change to bool.
2259 * top.c (confirm): Likewise.
2260 (command_editing_p): Likewise.
2261 (history_expansion_p): Likewise.
2262 (write_history_p): Likewise.
2263 (info_verbose): Likewise.
2264 * top.h (confirm): Likewise.
2265 (history_expansion_p): Likewise.
2266 * tracepoint.c (disconnected_tracing): Likewise.
2267 (circular_trace_buffer): Likewise.
2268 * typeprint.c (print_methods): Likewise.
2269 (print_typedefs): Likewise.
2270 * utils.c (debug_timestamp): Likewise.
2271 (sevenbit_strings): Likewise.
2272 (pagination_enabled): Likewise.
2273 * utils.h (sevenbit_strings): Likewise.
2274 (pagination_enabled): Likewise.
2275 * valops.c (overload_resolution): Likewise.
2276 * valprint.h (struct value_print_options) <prettyformat_arrays,
2277 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2278 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2279 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2280 Likewise.
2281 * windows-nat.c (new_console): Likewise.
2282 (cygwin_exceptions): Likewise.
2283 (new_group): Likewise.
2284 (debug_exec): Likewise.
2285 (debug_events): Likewise.
2286 (debug_memory): Likewise.
2287 (debug_exceptions): Likewise.
2288 (useshell): Likewise.
2289 * windows-tdep.c (maint_display_all_tib): Likewise.
2290 * xml-support.c (debug_xml): Likewise.
2291
f1b620e9
MG
22922019-09-17 Mike Gulick <mgulick@mathworks.com>
2293
2294 * source.c (prepare_path_for_appending): New function.
2295 (openp): Make use of new function.
2296 (find_and_open_source): Search for the compilation directory and
2297 source file as a relative path beneath the directory search path.
2298
67f3ed6a
AB
22992019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * source-cache.c (source_cache::get_line_charpos): Catch
2302 exceptions and return false, this matches the behaviour documented
2303 in the header file.
2304
74332189
JB
23052019-09-17 Joel Brobecker <brobecker@adacore.com>
2306
2307 * ada-tasks.c (info_task): Remove quoting of the task's name.
2308
f2f24aa9
CB
23092019-09-16 Christian Biesinger <cbiesinger@google.com>
2310
2311 * symfile.c (auto_solib_add): Replace comment with a reference
2312 to the header file.
2313
6a062a93
CB
23142019-09-14 Christian Biesinger <cbiesinger@google.com>
2315
2316 * NEWS: Mention that gdb can now be compiled with Python 3
2317 on Windows.
2318
ec6c8338
AB
23192019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * maint.c (maint_print_section_data::maint_print_section_data):
2322 Force use of 'float log10 (float)' by casting the argument to
2323 float.
2324
aa17805f
AB
23252019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * maint.c: Add 'cmath' include.
2328 (struct maint_print_section_data): New structure.
2329 (print_section_index): New function.
2330 (print_bfd_section_info): Add header comment, small whitespace
2331 cleanup, and update to call new print_section_index function.
2332 (print_objfile_section_info): Likewise.
2333 (maint_obj_section_from_bfd_section): New function.
2334 (print_bfd_section_info_maybe_relocated): New function.
2335 (maintenance_info_sections): Add header comment, always use
2336 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2337
3dd9bb46
AB
23382019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2341 inner scope, add check that the objfile has psymtabs before
2342 checking psymtabs_addrmap.
2343 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2344
4993045d
PW
23452019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2346
2347 * NEWS: Announce that Ada task names are now shown at more places,
2348 and between quotes (except in info task output).
2349 * gdb/ada-tasks.c (task_to_str): New function.
2350 (display_current_task_id): Call task_to_str.
2351 (task_command_1): Likewise.
2352 (print_ada_task_info): In non-mi mode, Properly align headers and data
2353 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2354
7a289707
RO
23552019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2356
2357 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2358 prstatus.pr_lwp.pr_info instead of making it up.
2359
f2aec7f6
CB
23602019-09-11 Christian Biesinger <cbiesinger@google.com>
2361
2362 * auto-load.c (auto_load_expand_dir_vars): Update.
2363 * defs.h (gdb_datadir): Change to std::string.
2364 (python_libdir): Likewise.
2365 (relocate_gdb_directory): Change return type to std::string.
2366 * guile/guile.c (gdbscm_data_directory): Update.
2367 (initialize_scheme_side): Update.
2368 * jit.c (jit_reader_dir): Change to std::string.
2369 (jit_reader_load_command): Update.
2370 * main.c (gdb_datadir): Change to std::string.
2371 (python_libdir): Likewise.
2372 (set_gdb_data_directory): Update.
2373 (relocate_path): Change to return std::string.
2374 (relocate_gdb_directory): Change to return std::string.
2375 (relocate_gdbinit_path_maybe_in_datadir): Update.
2376 (captured_main_1): Update.
2377 * python/python.c (do_start_initialization): Update.
2378 * top.c (show_gdb_datadir): Update.
2379 * xml-syscall.c (xml_init_syscalls_info): Update.
2380 (init_syscalls_info): Update.
2381
9224a013
CB
23822019-09-11 Christian Biesinger <cbiesinger@google.com>
2383
2384 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2385 out of get_init_files.
2386 (get_init_files): Update.
2387
f48cd836
CB
23882019-09-11 Christian Biesinger <cbiesinger@google.com>
2389
2390 * main.c (get_init_files): Change to use std::string.
2391 (captured_main_1): Update.
2392 (print_gdb_help): Update.
2393
9cab7ecd
AT
23942019-09-11 Ali Tamur <tamur@google.com>
2395
2396 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2397 implementation.
2398
67547d89
CB
23992019-09-11 Christian Biesinger <cbiesinger@google.com>
2400
2401 * dbxread.c (read_dbx_symtab): Update.
2402 * dwarf2read.c (load_partial_dies): Update.
2403 * mdebugread.c (parse_partial_symbols): Update.
2404 (handle_psymbol_enumerators): Update.
2405 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2406 * psymtab.c (add_psymbol_to_bcache): Likewise.
2407 (add_psymbol_to_list): Likewise.
2408 * symtab.c (symbol_set_names): Likewise.
2409 * symtab.h (symbol_set_names): Likewise.
2410 * xcoffread.c (scan_xcoff_symtab): Update.
2411
64b2d4a0
TT
24122019-09-11 Tom Tromey <tom@tromey.com>
2413
2414 * symfile-mem.c (symbol_file_add_from_memory): Use
2415 bfd_set_filename.
2416 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2417 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2418
3b00ef10
TT
24192019-09-10 Tom Tromey <tromey@adacore.com>
2420
2421 * dwarf-index-write.c (write_psymbols): Extend error message.
2422 (debug_names::insert): Add Ada code.
2423 (debug_names::write_psymbols): Remove Ada check.
2424 (debug_names) <m_string_obstack>: New member.
2425 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2426 (gdb_index_symbol_name_matcher::matches): Remove.
2427 (mapped_index_base::find_name_components_bounds): Add "lang"
2428 parameter.
2429 (mapped_index_base::build_name_components): Also split names
2430 according to Ada syntax.
2431 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2432 type of "match_callback".
2433 (check_match, check_find_bounds_finds)
2434 (dw2_expand_symtabs_matching): Update.
2435 (dw2_debug_names_iterator): Add new constructor.
2436 (dw2_debug_names_map_matching_symbols): New function.
2437 (dw2_debug_names_expand_symtabs_matching): Update.
2438 (dwarf2_debug_names_functions): Use
2439 dw2_debug_names_map_matching_symbols.
2440
aa391654
TT
24412019-09-10 Tom Tromey <tromey@adacore.com>
2442
2443 * dwarf2read.c (dw2_get_file_names_reader): Add the
2444 CU's file name to the results.
2445
b054970d
TT
24462019-09-10 Tom Tromey <tromey@adacore.com>
2447
2448 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2449 map_matching_symbols. Update.
2450 * dwarf2read.c (dw2_map_matching_symbols): Update.
2451 * psymtab.c (match_partial_symbol): Change type; update.
2452 (psym_map_matching_symbols): Likewise.
2453 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2454 type; update.
2455 * symfile.h (struct quick_symbol_functions)
2456 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2457 Remove "match".
2458
6a3dbf1b
TT
24592019-09-10 Tom Tromey <tromey@adacore.com>
2460
2461 * psymtab.c (map_block): Remove.
2462 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2463 * symtab.c (iterate_over_symbols_terminated): New function.
2464 * symtab.c (iterate_over_symbols_terminated): Declare.
2465
6969f124
TT
24662019-09-10 Tom Tromey <tromey@adacore.com>
2467
2468 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2469 * language.h (struct language_defn) <la_iterate_over_symbols>:
2470 Return bool.
2471 * symtab.c (iterate_over_symbols): Return bool.
2472 * symtab.h (iterate_over_symbols): Return bool.
2473
199b4314
TT
24742019-09-10 Tom Tromey <tromey@adacore.com>
2475
2476 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2477 (add_nonlocal_symbols): Update.
2478 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2479 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2480 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2481 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2482 Change type of "callback". Remove "data".
2483
a084a2a6
AT
2484
24852019-09-09 Ali Tamur <tamur@google.com>
2486
2487 * dwarf2read.c (comp_unit_head): Update comment.
2488 (dwarf2_dwo_name): New function declaration.
2489 (dwarf_unit_type_name): New function declaration.
2490 (read_comp_unit_head): Add support for new compilation units,
2491 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2492 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2493 (currently named as "signature") in their header. Also clarify error
2494 messages.
2495 (lookup_dwo_id): New function. Returns the dwo id of the given
2496 compile unit.
2497 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2498 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2499 functions.
2500 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2501 (dwarf2_dwo_name): Get the dwo name if present.
2502 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2503 purposes.
2504
25a2915e
TT
25052019-09-09 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2508
e4df0874
PW
25092019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2510
2511 * python/python.c (do_start_initialization): Make progname_copy static,
2512 to avoid a leak report.
2513
8634b462
TT
25142019-09-08 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2517
c7f839cb
SM
25182019-09-07 Simon Marchi <simon.marchi@efficios.com>
2519
2520 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2521 Change type to gdb::optional<block_enum>.
2522 (dw2_symtab_iter_init): Change block_index parameter type
2523 to gdb::optional<block_enum>.
2524 (dw2_lookup_symbol): Change block_index parameter
2525 type to block_enum.c
2526 (dw2_debug_names_lookup_symbol): Likewise.
2527 * psymtab.c (psym_lookup_symbol): Likewise.
2528 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2529 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2530 Likewise.
2531
ead0e69a
CB
25322019-09-06 Christian Biesinger <cbiesinger@google.com>
2533
2534 * defs.h (relocate_gdb_directory): Change int to bool in
2535 signature and rename flag to relocatable.
2536 * main.c (relocate_path): Likewise.
2537 (relocate_gdb_directory): Likewise.
2538
b16c44de
AM
25392019-09-06 Alan Modra <amodra@gmail.com>
2540
2541 * coffread.c (coff_symfile_read): Constify filename variable.
2542 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2543 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2544 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2545 * solib.c (reload_shared_libraries_1): Likewise.
2546 * symfile.c (reread_symbols): Likewise.
2547 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2548 * solib-darwin.c (darwin_bfd_open): Likewise.
2549 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2550
06ff036e
AB
25512019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2554 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2555
4e962e74
TT
25562019-09-03 Tom Tromey <tromey@adacore.com>
2557
2558 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2559 types.
2560 (has_negatives): Unbias a range type bound.
2561 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2562 * gdbtypes.c (operator==): Handle new field.
2563 (create_range_type): Add "bias" parameter.
2564 (create_static_range_type, resolve_dynamic_range): Update.
2565 * gdbtypes.h (struct range_bounds) <bias>: New member.
2566 (create_range_type): Add bias parameter.
2567 * printcmd.c (print_scalar_formatted): Unbias range types.
2568 * value.c (unpack_long): Unbias range types.
2569 (pack_long): Bias range types.
2570
d90b8f26
AH
25712019-09-02 Alan Hayward <alan.hayward@arm.com>
2572
2573 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2574 probe arguments.
2575
fe01123e
AH
25762019-09-02 Alan Hayward <alan.hayward@arm.com>
2577
2578 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2579 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2580 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2581 (compile_probe_arg): Likewise.
2582 * probe.h (get_argument_count): Likewise.
2583 * solib-svr4.c (solib_event_probe_action): Likewise.
2584 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2585
e661ef01
AH
25862019-09-02 Alan Hayward <alan.hayward@arm.com>
2587
2588 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2589 code to here...
2590 (svr4_create_solib_event_breakpoints): ...from here.
2591
47a536d9
SDJ
25922019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2593
2594 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2595 suffix from warning message.
2596
d6a00eba
TT
25972019-08-30 Tom Tromey <tom@tromey.com>
2598
2599 * tui/tui-winsource.h (struct tui_source_window_base)
2600 <refresh_all>: Don't declare.
2601 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2602 Remove.
2603 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2604 tui_show_locator_content.
2605 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2606 declare.
2607 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2608 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2609 declare.
2610
55b2657b
TT
26112019-08-30 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2614
12a8555a
TT
26152019-08-30 Tom Tromey <tom@tromey.com>
2616
2617 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2618 Remove unnecessary forward declarations.
2619
900ac242
TT
26202019-08-30 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2623 rerender.
2624 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2625 tui_show_locator_content.
2626
99ab33fb
TT
26272019-08-30 Tom Tromey <tom@tromey.com>
2628
2629 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2630 (tui_locator_window::rerender): Rewrite using body of previous
2631 tui_show_locator_content.
2632
e594a5d1
TT
26332019-08-30 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2636 set_locator_fullname>: New methods.
2637 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2638 Rename from tui_set_locator_fullname.
2639 (tui_locator_window::set_locator_info): Rename from
2640 tui_set_locator_info. Return bool.
2641 (tui_update_locator_fullname, tui_show_frame_info): Update.
2642
715bb467
TT
26432019-08-30 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2646
772f3f03
TT
26472019-08-30 Tom Tromey <tom@tromey.com>
2648
2649 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2650 call touchwin.
2651
108e13ab
TT
26522019-08-30 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-wingeneral.c (box_win): Assume win_info and
2655 win_info->handle cannot be NULL.
2656
cdaa6eb4
TT
26572019-08-30 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2660 refresh_window>: Declare.
2661 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2662 resize.
2663 (tui_data_item_window::rerender): Rename from
2664 tui_display_register.
2665 (tui_data_item_window::refresh_window): New method.
2666 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2667 no-op.
2668
89df7f90
TT
26692019-08-30 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2672 regs_column_count, current_group>: Move later. Now private.
2673 <get_current_group>: New method.
2674 * tui/tui-regs.c (tui_reg_command): Update.
2675 * tui/tui-layout.c (tui_set_layout): Update.
2676
1bf2866a
TT
26772019-08-30 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2680 (tui_data_window::rerender): Don't call
2681 check_and_display_highlight_if_needed.
2682 (tui_data_window::refresh_all): Remove call to
2683 erase_data_content.
2684
0670413d
TT
26852019-08-30 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2688 (tui_data_window::display_registers_from)
2689 (tui_data_window::display_reg_element_at_line)
2690 (tui_data_window::display_registers_from_line): Remove checks of
2691 "empty".
2692
18bb55c7
TT
26932019-08-30 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2696 Don't declare.
2697 * tui/tui-regs.c (tui_data_window::show_registers): Call
2698 rerender.
2699 (tui_data_window::rerender): Rename from display_all_data.
2700 (tui_data_window::rerender): Remove old implementation.
2701
1f6d2f10
TT
27022019-08-30 Tom Tromey <tom@tromey.com>
2703
2704 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2705 text.
2706 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2707
16d01f9c
BW
27082019-08-29 Bernhard Wodok <barto@gmx.net>
2709 Sergio Durigan Junior <sergiodj@redhat.com>
2710
2711 PR win32/24284
2712 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2713
d8f27c60
AB
27142019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2717 when searching for types.
2718
1f20c35e
AB
27192019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * f-lang.c (f_language_defn): Use f_print_typedef.
2722 * f-lang.h (f_print_typedef): Declare.
2723 * f-typeprint.c (f_print_typedef): Define.
2724
550105b7
CB
27252019-08-27 Christian Biesinger <cbiesinger@google.com>
2726
2727 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2728
4acfdd20
AB
27292019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * cli/cli-utils.c (info_print_options_defs): Delete.
2732 (make_info_print_options_def_group): Delete.
2733 (extract_info_print_options): Delete.
2734 (info_print_command_completer): Delete.
2735 (info_print_args_help): Add extra parameter, and optionally
2736 include text about -n flag.
2737 * cli/cli-utils.h (struct info_print_options): Delete.
2738 (extract_info_print_options): Delete declaration.
2739 (info_print_command_completer): Delete declaration.
2740 (info_print_args_help): Add extra parameter, extend header
2741 comment.
2742 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2743 search_symbols.
2744 * stack.c (struct info_print_options): New type.
2745 (info_print_options_defs): New file scoped variable.
2746 (make_info_print_options_def_group): New static function.
2747 (info_print_command_completer): New static function.
2748 (info_locals_command): Update to use new local functions.
2749 (info_args_command): Likewise.
2750 (_initialize_stack): Add extra parameter to calls to
2751 info_print_args_help.
2752 * symtab.c (search_symbols): Add extra parameter, use this to
2753 possibly excluse non-debug symbols.
2754 (symtab_symbol_info): Add extra parameter, which is passed on to
2755 search_symbols.
2756 (struct info_print_options): New type.
2757 (info_print_options_defs): New file scoped variable.
2758 (make_info_print_options_def_group): New static function.
2759 (info_print_command_completer): New static function.
2760 (info_variables_command): Update to use local functions, and pass
2761 extra parameter through to symtab_symbol_info.
2762 (info_functions_command): Likewise.
2763 (info_types_command): Pass additional argument through to
2764 symtab_symbol_info.
2765 (rbreak_command): Pass extra argument to search_symbols.
2766 (_initialize_symtab): Add extra arguments for calls to
2767 info_print_args_help, and update help text for 'info variables',
2768 'whereis', and 'info functions' commands.
2769 * symtab.h (search_symbols): Add extra argument to declaration.
2770 * NEWS: Mention new flags.
2771
9aa55206
CB
27722019-08-26 Christian Biesinger <cbiesinger@google.com>
2773
2774 * symtab.c (lookup_static_symbol): Call the new function (and move
2775 it down to be next to lookup_global_symbol).
2776 (struct global_sym_lookup_data): Add block_enum member and rename to...
2777 (struct global_or_static_sym_lookup_data): ...this.
2778 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2779 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2780 (lookup_symbol_global_or_static_iterator_cb): ...this.
2781 (lookup_global_or_static_symbol): New function.
2782 (lookup_global_symbol): Call new function.
2783
5c31b358
TV
27842019-08-26 Tom de Vries <tdevries@suse.de>
2785
2786 PR c++/24852
2787 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2788 when pc_probe.prob == NULL.
2789
23c13d42
SM
27902019-08-25 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2793 variable symbol_linkage to symbol_linkage_.
2794
beadd3e8
SM
27952019-08-25 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2798 represent whether the symbol is static, dynamic, or we don't
2799 know.
2800
e3ec872f
YS
28012019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2802
2803 * gdb/rx-tdep.c (rx_register_names): New.
2804 (rx_register_name): Delete.
2805 (rx_psw_type): Delete.
2806 (rx_fpsw_type): Delete.
2807 (rx_register_type): Delete.
2808 (rx_gdbarch_init): Convert target-descriptions.
2809 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2810 * gdb/features/Makefile: Add rx.xml.
2811 * gdb/features/rx.xml: New.
2812 * gdb/features/rx.c: Generated.
2813 * gdb/NEWS: Mention target description support.
2814
d0509ba4
CB
28152019-08-22 Christian Biesinger <cbiesinger@google.com>
2816
2817 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2818 *slot_ptr.
2819
2d41fa11
SDJ
28202019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2821
2822 * configure.ac: Don't check for 'dlfcn.h' (moved to
2823 gdbsupport/common.m4).
2824 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2825 'gdbsupport/'.
2826 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2827 * compile/compile-c-support.c: Include
2828 'gdbsupport/gdb-dlfcn.h'.
2829 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2830 * gdb-dlfcn.c: Move to...
2831 * gdbsupport/gdb-dlfcn.c: ... here.
2832 * gdb-dlfcn.h: Move to...
2833 * gdbsupport/gdb-dlfcn.h: ... here.
2834
de8af808
SL
28352019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2836
2837 * nios2-tdep.c (struct reg_value): Improve comments. Make
2838 the offset field signed.
2839
27204489
CB
28402019-08-22 Christian Biesinger <cbiesinger@google.com>
2841
2842 * python/lib/gdb/__init__.py (_execute_file): New function.
2843 * python/python.c (python_run_simple_file): Call gdb._execute_file
2844 on Windows.
2845
43771869
AB
28462019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2849 all uses as this was never set to anything but a zero value.
2850
26c957f1
PA
28512019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2852
2853 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2854
c07aae6e
CB
28552019-08-21 Christian Biesinger <cbiesinger@google.com>
2856
2857 * tui/tui-data.h (tui_gen_win_info): Add an =default
2858 move constructor, required by some GCC versions.
2859
3960cb7a
JF
28602019-08-21 Jinke Fan <fanjinke51@yeah.net>
2861
2862 * go32-nat.c (go32_sysinfo): Add hygon_p.
2863
04c72a68
TT
28642019-08-20 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2867 line_from_reg_element_no, first_reg_element_no_inline,
2868 display_all_data, delete_data_content_windows,
2869 erase_data_content>: Now private.
2870
072272ce
TT
28712019-08-20 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2874 (tui_unhighlight_win, tui_highlight_win)
2875 (tui_win_info::make_window): Update.
2876 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2877
973961bd
TT
28782019-08-20 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2881 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2882 (MAX_PID_WIDTH): Move to tui-stack.c.
2883 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2884 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2885 (MAX_PID_WIDTH): Move from tui-data.h.
2886
ab0e1f1a
TT
28872019-08-20 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2890 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2891 (box_win): Update.
2892 (tui_gen_win_info::make_window): Rename from tui_make_window.
2893 (tui_win_info::make_window): New method.
2894 (tui_gen_win_info::make_visible): Update.
2895 * tui/tui-source.c (tui_source_window::set_contents): Update.
2896 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2897 (tui_data_window::display_registers_from): Update.
2898 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2899 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2900 Declare.
2901 <can_box>: Remove.
2902 <title>: Remove.
2903 (struct tui_win_info) <make_window>: Declare.
2904 <can_box>: Now virtual.
2905 <title>: New member.
2906 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2907 * tui/tui-command.c (tui_cmd_window::resize): Update.
2908
100c2bf3
TT
29092019-08-20 Tom Tromey <tom@tromey.com>
2910
2911 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2912 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2913 (tui_data_window::check_register_values): Update.
2914
fa4dc567
TT
29152019-08-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-regs.h (struct tui_data_window): Use
2918 DISABLE_COPY_AND_ASSIGN.
2919 <regs_content>: Change type, removing unique_ptr.
2920 <tui_data_window>: Add move constructor.
2921 * tui/tui-regs.c (tui_data_window::show_registers)
2922 (tui_data_window::show_register_group)
2923 (tui_data_window::display_registers_from)
2924 (tui_data_window::display_registers_from)
2925 (tui_data_window::first_data_item_displayed)
2926 (tui_data_window::delete_data_content_windows)
2927 (tui_data_window::rerender, tui_data_window::refresh_window)
2928 (tui_data_window::check_register_values): Update.
2929
ca02d7c8
TT
29302019-08-20 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2933 show_register_group>: Declare.
2934 (tui_show_register_group): Don't declare.
2935 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2936 tui_show_registers.
2937 (tui_data_window::show_register_group): Rename from
2938 tui_show_register_group.
2939 (tui_data_window::check_register_values, tui_reg_command):
2940 Update.
2941 * tui/tui-layout.c (tui_set_layout): Update.
2942
63356bfd
TT
29432019-08-20 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2946 Declare.
2947 (tui_check_register_values): Don't declare.
2948 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2949 from tui_check_register_values.
2950 * tui/tui-hooks.c (tui_register_changed): Update.
2951
42cc14a7
TT
29522019-08-20 Tom Tromey <tom@tromey.com>
2953
2954 * tui/tui-regs.c (tui_reg_layout): Move later.
2955 (tui_show_registers): Don't enable TUI mode or change layout.
2956
b9ad3686
TT
29572019-08-20 Tom Tromey <tom@tromey.com>
2958
2959 * tui/tui-regs.h (struct tui_data_item_window)
2960 <~tui_data_item_window>: Remove.
2961 <content>: Now a unique_xmalloc_ptr.
2962 * tui/tui-regs.c (tui_register_format): Return a
2963 unique_xmalloc_ptr.
2964 (tui_get_register): Update.
2965 (~tui_data_item_window): Remove.
2966 (tui_data_window::display_registers_from, tui_display_register):
2967 Update.
2968 * tui/tui-io.h (tui_expand_tabs): Update.
2969 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2970 Remove "col" parameter.
2971
8e114aab
TT
29722019-08-20 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2975 field.
2976 * tui/tui-regs.c (~tui_data_item_window): Update.
2977
1a4f81dd
TT
29782019-08-20 Tom Tromey <tom@tromey.com>
2979
2980 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2981 earlier.
2982
0f8d8876
TT
29832019-08-20 Tom Tromey <tom@tromey.com>
2984
2985 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2986
605dc2c2
TT
29872019-08-20 Tom Tromey <tom@tromey.com>
2988
2989 * tui/tui-source.h (struct tui_source_window): Update.
2990 * tui/tui-regs.c (tui_show_registers): Update.
2991 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2992 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2993 (NO_REGS_STRING): Remove defines.
2994
aedbe3bb
CM
29952019-08-20 Conrad Meyer <cem@FreeBSD.org>
2996
2997 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2998 unnecessary thread walk if remote doesn't support the packet.
2999
7ce8f214
TT
30002019-08-19 Tom Tromey <tromey@adacore.com>
3001
3002 * python/py-value.c (value_has_field): Fix indentation.
3003
f21c2bd7
TT
30042019-08-19 Tom Tromey <tromey@adacore.com>
3005
3006 * printcmd.c (do_one_display, info_display_command): Update.
3007 * block.h (contained_in): Return bool. Add allow_nested
3008 parameter.
3009 * block.c (contained_in): Return bool. Add allow_nested
3010 parameter.
3011
d806ea2d
TT
30122019-08-19 Tom Tromey <tom@tromey.com>
3013
3014 * configure: Rebuild.
3015 * configure.ac: Disallow the combination of -static-libstdc++ and
3016 source highlight.
3017 * source-cache.c (get_language_name): Handle rust.
3018 (source_cache::get_source_lines): Ignore highlighting exceptions.
3019
398fdd60
TT
30202019-08-16 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3023 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3024 (struct tui_source_window_base) <make_visible, refresh_window,
3025 resize>: Remove methods.
3026 <execution_info>: Remove field.
3027 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3028 (tui_show_source_line, tui_source_window_base)
3029 (~tui_source_window_base): Update.
3030 (tui_source_window_base::resize)
3031 (tui_source_window_base::make_visible)
3032 (tui_source_window_base::refresh_window): Remove.
3033 (tui_source_window_base::update_exec_info): Update.
3034 * tui/tui-source.c (tui_source_window::set_contents): Update.
3035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3036
e699d331
TT
30372019-08-16 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3040 deprecated_query_hook.
3041
bb01dbfc
TT
30422019-08-16 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3045 (tui_update_source_windows_with_line): Update.
3046 * tui/tui-source.h (struct tui_source_window)
3047 <show_symtab_source>: Declare.
3048 (tui_show_symtab_source): Don't declare.
3049 * tui/tui-source.c (tui_show_symtab_source): Rename from
3050 tui_show_symtab_source.
3051
81c82c4b
TT
30522019-08-16 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-winsource.h (struct tui_source_window_base)
3055 <set_contents>: Declare.
3056 * tui/tui-winsource.c
3057 (tui_source_window_base::update_source_window_as_is): Update.
3058 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3059 Declare.
3060 (tui_set_source_content): Don't declare.
3061 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3062 tui_set_source_content.
3063 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3064 Declare.
3065 (tui_set_disassem_content): Don't declare.
3066 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3067 tui_set_disassem_content.
3068
2ddaf614
TT
30692019-08-16 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-winsource.h (struct tui_source_window_base)
3072 <update_breakpoint_info>: Declare.
3073 (tui_update_breakpoint_info): Don't declare.
3074 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3075 (tui_update_all_breakpoint_info): Update.
3076 (tui_source_window_base::update_breakpoint_info): Rename from
3077 tui_update_breakpoint_info.
3078 (tui_source_window_base::update_exec_info): Update.
3079
017f9828
TT
30802019-08-16 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-winsource.h (struct tui_source_window_base)
3083 <update_source_window>: Declare.
3084 (tui_update_source_window): Don't declare.
3085 * tui/tui-winsource.c
3086 (tui_source_window_base::update_source_window): Rename from
3087 tui_update_source_window.
3088 (tui_source_window_base::rerender): Update.
3089 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3090 * tui/tui-disasm.c (tui_show_disassem)
3091 (tui_show_disassem_and_update_source)
3092 (tui_disasm_window::maybe_update): Update.
3093
ed8358e9
TT
30942019-08-16 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-winsource.h (struct tui_source_window_base)
3097 <update_source_window_as_is>: Declare.
3098 (tui_update_source_window_as_is): Don't declare.
3099 * tui/tui-winsource.c (tui_update_source_window): Update
3100 (tui_source_window_base::update_source_window_as_is): Rename from
3101 tui_update_source_window_as_is.
3102 (tui_source_window_base::refill): Update.
3103 * tui/tui-source.c (tui_show_symtab_source): Update.
3104 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3105 Update.
3106
20149b6b
TT
31072019-08-16 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-winsource.h (tui_update_source_window)
3110 (tui_update_source_window_as_is): Remove "noerror" parameter.
3111 * tui/tui-winsource.c (tui_update_source_window)
3112 (tui_update_source_window_as_is): Remove "noerror" parameter.
3113 (tui_update_source_windows_with_addr)
3114 (tui_update_source_windows_with_line)
3115 (tui_source_window_base::rerender)
3116 (tui_source_window_base::refill): Update.
3117 * tui/tui-source.h (tui_set_source_content)
3118 (tui_show_symtab_source): Remove "noerror" parameter.
3119 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3120 parameter.
3121 (tui_show_symtab_source): Likewise.
3122 (tui_source_window::maybe_update): Update.
3123 * tui/tui-disasm.c (tui_show_disassem)
3124 (tui_show_disassem_and_update_source)
3125 (tui_disasm_window::do_scroll_vertical)
3126 (tui_disasm_window::maybe_update): Update.
3127
2d83e710
TT
31282019-08-16 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui.c (tui_is_window_visible): Update.
3131 * tui/tui-wingeneral.c (tui_make_window)
3132 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3133 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3134 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3135 (tui_set_win_height_command, parse_scrolling_args): Update.
3136 * tui/tui-source.c (tui_source_window::style_changed): Update.
3137 * tui/tui-regs.c (tui_show_registers)
3138 (tui_data_window::first_data_item_displayed)
3139 (tui_data_window::delete_data_content_windows)
3140 (tui_check_register_values, tui_reg_command): Update.
3141 * tui/tui-disasm.c (tui_show_disassem): Update.
3142 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3143 method.
3144 <is_visible>: Remove field.
3145 * tui/tui-data.c (tui_next_win, tui_prev_win)
3146 (tui_delete_invisible_windows): Update.
3147
d4ab829a
TT
31482019-08-16 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-winsource.h (struct tui_source_window_base)
3151 <m_has_locator>: Remove.
3152 * tui/tui-layout.c (show_source_disasm_command, show_data)
3153 (show_source_or_disasm_and_command): Update.
3154
aa7ca1bb
AH
31552019-08-16 Alan Hayward <alan.hayward@arm.com>
3156
3157 * NEWS (Other MI changes): New subsection.
3158 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3159 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3160 * arch-utils.c (default_get_pc_address_flags): New function.
3161 * arch-utils.h (default_get_pc_address_flags): New declaration.
3162 * gdbarch.sh: Add get_pc_address_flags.
3163 * gdbarch.c: Regenerate.
3164 * gdbarch.h: Likewise.
3165 * stack.c (print_pc): New function.
3166 (print_frame_info) (print_frame): Call print_pc.
3167
6eac171f
TV
31682019-08-16 Tom de Vries <tdevries@suse.de>
3169
3170 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3171 print_objfile_section_info.
3172
3df505f6
TT
31732019-08-15 Tom Tromey <tom@tromey.com>
3174
3175 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3176 calling update_cmdwin_start_line.
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3179 <rerender>: Declare.
3180 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3181 Call rerender.
3182 (tui_source_window_base::set_new_height): Remove.
3183 (tui_source_window_base::rerender): Rename from
3184 do_make_visible_with_new_height.
3185 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3186 resize method.
3187 (tui_win_info::make_invisible_and_set_new_height)
3188 (tui_win_info::make_visible_with_new_height): Remove.
3189 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3190 Declare.
3191 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3192 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3193 do_make_visible_with_new_height>: Don't declare.
3194 <rerender>: Declare.
3195 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3196 set_new_height.
3197 (tui_data_window::do_make_visible_with_new_height): Remove.
3198 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3199 call tui_show_locator_content.
3200 (tui_gen_win_info::resize): Call rerender.
3201 (show_source_or_disasm_and_command): Don't call
3202 tui_show_locator_content.
3203 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3204 method.
3205 (struct tui_win_info) <rerender>: Declare.
3206 <set_new_height, make_invisible_and_set_new_height,
3207 make_visible_with_new_height>: Don't declare.
3208 * tui/tui-data.c (tui_win_list::rerender): New method.
3209 * tui/tui-command.h (struct tui_cmd_window)
3210 <do_make_visible_with_new_height>: Don't declare.
3211 * tui/tui-command.c
3212 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3213
272560b5
TT
32142019-08-15 Tom Tromey <tromey@adacore.com>
3215
3216 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3217 * ada-lang.c (ada_enum_name): Likewise.
3218
08235187
CB
32192019-08-15 Christian Biesinger <cbiesinger@google.com>
3220
3221 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3222 leading underscore.
3223 (GdbOutputErrorFile): Likewise.
3224 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3225 accordingly.
3226 (execute_unwinders): Rename to have a leading underscore.
3227 (auto_load_packages): Likewise.
3228 (global scope): Adjust call to auto_load_packages accordingly.
3229 (GdbSetPythonDirectory): Likewise.
3230 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3231 instead of execute_unwinders.
3232
db502012
TT
32332019-08-15 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3236 (show_data): Don't change window visibility.
3237 (tui_gen_win_info::resize): Remove special case for command
3238 window. Use wresize, when available.
3239 (show_source_or_disasm_and_command): Don't change window
3240 visibility.
3241 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3242 <make_visible>: New method.
3243 * tui/tui-command.c (tui_cmd_window::resize): New method.
3244
3891b65e
TT
32452019-08-15 Tom Tromey <tom@tromey.com>
3246
3247 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3248 (struct tui_source_windows): New.
3249 * tui/tui-winsource.c (tui_display_main): Update.
3250 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3251 (new_height_ok, parse_scrolling_args): Update.
3252 * tui/tui-layout.c (show_layout, show_data): Update.
3253 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3254 (tui_add_to_source_windows): Don't declare.
3255 * tui/tui-data.c (source_windows, tui_source_windows)
3256 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3257
ee556432
TT
32582019-08-15 Tom Tromey <tom@tromey.com>
3259
3260 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3261 Rename from reset.
3262 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3263 * tui/tui-layout.c (show_source_disasm_command, show_data):
3264 Update.
3265 (tui_gen_win_info::resize): Rename.
3266 (show_source_or_disasm_and_command): Update.
3267 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3268 reset.
3269
46f438e3
TT
32702019-08-15 Tom Tromey <tom@tromey.com>
3271
3272 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3273 * tui/tui-interp.c (tui_interp::init): Don't call
3274 tui_initialize_static_data.
3275 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3276
f4ce562c
TT
32772019-08-15 Tom Tromey <tom@tromey.com>
3278
3279 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3280 examine tui_win_list.
3281
c398c3d0
TT
32822019-08-15 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3285 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3286 tui_clear_source_content.
3287 (tui_clear_source_content): Remove.
3288 (tui_source_window_base::do_erase_source_content): Hoist call to
3289 content.clear().
3290 * tui/tui-stack.c (tui_show_frame_info): Don't call
3291 tui_clear_source_content.
3292
e25d2004
TT
32932019-08-15 Tom Tromey <tom@tromey.com>
3294
3295 * tui/tui-winsource.h (struct tui_source_window_base)
3296 <do_erase_source_content>: New method.
3297 <erase_source_content>: New method.
3298 (tui_erase_source_content): Don't declare.
3299 * tui/tui-winsource.c (tui_clear_source_content): Update.
3300 (tui_source_window_base::do_erase_source_content): Rename from
3301 tui_erase_source_content.
3302 (tui_source_window_base::show_source_content): Update.
3303 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3304 * tui/tui-source.h (struct tui_source_window)
3305 <erase_source_content>: New method.
3306 * tui/tui-disasm.h (struct tui_disasm_window)
3307 <erase_source_content>: New method.
3308
002f15c2
TT
33092019-08-15 Tom Tromey <tom@tromey.com>
3310
3311 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3312 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3313 constructor.
3314 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3315 * tui/tui-source.c (tui_set_source_content): Update.
3316 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3317
c9033fe8
TT
33182019-08-15 Tom Tromey <tom@tromey.com>
3319
3320 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3321 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3322 tui-source.c.
3323 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3324 Declare.
3325 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3326 method.
3327 (tui_source_window::maybe_update): Update.
3328
088f37dd
TT
33292019-08-15 Tom Tromey <tom@tromey.com>
3330
3331 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3332 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3333 tui-disasm.c.
3334 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3335 Declare.
3336 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3337 method.
3338 (tui_disasm_window::maybe_update): Update.
3339
a54700c6
TT
33402019-08-15 Tom Tromey <tom@tromey.com>
3341
3342 * tui/tui-winsource.h (struct tui_source_window_base)
3343 <maybe_update>: Declare.
3344 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3345 method.
3346 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3347 Declare.
3348 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3349 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3350 Declare.
3351 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3352
e2a678a5
TT
33532019-08-15 Tom Tromey <tom@tromey.com>
3354
3355 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3356
f2dda477
TT
33572019-08-15 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-wingeneral.c: Include tui-stack.h.
3360 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3361 (struct tui_locator_window): Move from tui-data.h.
3362 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3363 (tui_initialize_static_data): Move from tui-data.c.
3364 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3365 (struct tui_locator_window): Move to tui-stack.c.
3366 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3367 (tui_initialize_static_data): Move to tui-stack.c.
3368
ed4a1084
TT
33692019-08-15 Tom Tromey <tom@tromey.com>
3370
3371 * tui/tui-layout.c (show_source_disasm_command)
3372 (show_source_or_disasm_and_command): Use make_visible method, not
3373 tui_make_window.
3374 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3375 Remove.
3376
65962b20
TT
33772019-08-15 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-wingeneral.h (tui_make_window): Update.
3380 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3381 parameter.
3382 (tui_gen_win_info::make_visible): Update.
3383 * tui/tui-regs.c (tui_data_window::display_registers_from):
3384 Update.
3385 * tui/tui-layout.c (show_source_disasm_command)
3386 (show_source_or_disasm_and_command): Update.
3387 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3388 (enum tui_box): Remove.
3389 (struct tui_win_info) <can_box>: New method.
3390 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3391 method.
3392
2208ee91
TV
33932019-08-15 Tom de Vries <tdevries@suse.de>
3394
3395 * linux-nat-trad.c: Include gdbarch.h.
3396
75faf5c4
AH
33972019-08-14 Alan Hayward <alan.hayward@arm.com>
3398
3399 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3400 register sizes.
3401
b1c896b3
TT
34022019-08-14 Tom Tromey <tromey@adacore.com>
3403
3404 * darwin-nat.c: Include gdbarch.h.
3405 * darwin-nat-info.c: Include gdbarch.h.
3406
6405cd73
TT
34072019-08-13 Tom Tromey <tom@tromey.com>
3408
3409 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3410 Remove.
3411 * tui/tui-data.c (tui_initialize_static_data): Update.
3412
5216580d
TT
34132019-08-13 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-winsource.h (struct tui_exec_info_window)
3416 <~tui_exec_info_window, maybe_allocate_content, get_content,
3417 m_content>: Remove.
3418 (struct tui_source_window_base) <set_exec_info_content,
3419 show_exec_info_content>: Don't declare.
3420 * tui/tui-winsource.c
3421 (tui_exec_info_window::maybe_allocate_content): Remove.
3422 (tui_source_window_base::update_exec_info): Rename from
3423 set_exec_info_content.
3424 (tui_source_window_base::show_exec_info_content)
3425 (tui_source_window_base::update_exec_info): Remove.
3426
93858ad3
TT
34272019-08-13 Tom Tromey <tom@tromey.com>
3428
3429 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3430 declare.
3431 * tui/tui-winsource.c (tui_update_source_window_as_is)
3432 (tui_update_source_windows_with_addr, tui_erase_source_content):
3433 Update.
3434 (tui_clear_exec_info_content): Remove.
3435
e321e7ce
TT
34362019-08-13 Tom Tromey <tom@tromey.com>
3437
3438 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3439 declare.
3440 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3441 call tui_erase_exec_info_content.
3442 (tui_clear_exec_info_content): Rename from
3443 tui_erase_exec_info_content.
3444 (tui_clear_exec_info_content): Delete.
3445
8270ac62
TT
34462019-08-13 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-winsource.h (struct tui_source_window_base)
3449 <show_exec_info_content>: Declare.
3450 (tui_show_exec_info_content): Don't declare.
3451 * tui/tui-winsource.c
3452 (tui_source_window_base::show_exec_info_content): Rename from
3453 tui_show_exec_info_content.
3454 (tui_source_window_base::update_exec_info): Update.
3455
7b56485d
TT
34562019-08-13 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3459 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3460 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3461 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3462 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3463 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3464 ... here.
3465
7ba913dc
TT
34662019-08-13 Tom Tromey <tom@tromey.com>
3467
3468 * tui/tui-winsource.h (struct tui_source_window_base)
3469 <update_exec_info>: Declare.
3470 (tui_update_exec_info): Don't declare.
3471 * tui/tui-winsource.c (tui_update_source_window_as_is)
3472 (tui_source_window_base::refresh_all)
3473 (tui_update_all_breakpoint_info): Update.
3474 (tui_source_window_base::update_exec_info): Rename from
3475 tui_update_exec_info.
3476 * tui/tui-stack.c (tui_show_frame_info): Update.
3477
37a4a131
TT
34782019-08-13 Tom Tromey <tom@tromey.com>
3479
3480 * tui/tui-winsource.h (struct tui_source_window_base)
3481 <set_exec_info_content>: Declare.
3482 (tui_set_exec_info_content): Don't declare.
3483 * tui/tui-winsource.c
3484 (tui_source_window_base::set_exec_info_content): Rename from
3485 tui_set_exec_info_content.
3486 (tui_update_exec_info): Update.
3487
0bd27e07
TT
34882019-08-13 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-winsource.h (struct tui_source_window_base)
3491 <show_source_content>: Declare.
3492 (tui_show_source_content): Don't declare.
3493 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3494 (tui_source_window_base::show_source_content): Rename from
3495 tui_show_source_content.
3496 (tui_source_window_base::refresh_all): Update.
3497 * tui/tui-layout.c (show_source_disasm_command)
3498 (show_source_or_disasm_and_command): Update.
3499
b4ef5aeb
TT
35002019-08-13 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-winsource.c (tui_erase_source_content)
3503 (tui_show_source_content, tui_source_window_base::refresh_all):
3504 Update.
3505 * tui/tui-wingeneral.h
3506 (tui_check_and_display_highlight_if_needed): Don't declare.
3507 * tui/tui-wingeneral.c
3508 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3509 check_and_display_highlight_if_needed.
3510 * tui/tui-win.c (tui_rehighlight_all)
3511 (tui_win_info::make_visible_with_new_height): Update.
3512 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3513 (tui_data_window::erase_data_content)
3514 (tui_data_window::display_all_data): Update.
3515 * tui/tui-data.h (struct tui_win_info)
3516 <check_and_display_highlight_if_needed>: Declare.
3517
fede5273
TT
35182019-08-13 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-win.c (tui_resize_all): Call
3521 tui_delete_invisible_windows.
3522 * tui/tui-layout.c (show_layout): Call
3523 tui_delete_invisible_windows.
3524 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3525 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3526
22c3f490
TT
35272019-08-13 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3530 tui_add_win_to_layout.
3531
16cb7910
TT
35322019-08-13 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3535 * tui/tui-layout.c (tui_default_win_height): Now static.
3536
cc0c3ffb
TT
35372019-08-13 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3540 single switch.
3541 (show_source_disasm_command, show_source_or_disasm_and_command):
3542 Don't check current layout.
3543
3f3ffe54
TT
35442019-08-13 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-wingeneral.c (make_all_visible): Remove.
3547 (tui_make_all_invisible): Simplify.
3548 * tui/tui-layout.c (tui_make_all_invisible): Move from
3549 tui-wingeneral.c; simplify.
3550 (show_layout): Hoist call to tui_make_all_invisible.
3551 (show_data): Don't call tui_make_all_invisible.
3552
69258091
TT
35532019-08-13 Tom Tromey <tom@tromey.com>
3554
3555 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3556 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3557
62cf57fe
TT
35582019-08-13 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3561 tui-data.c.
3562 (show_source_disasm_command, show_data)
3563 (show_source_or_disasm_and_command): Don't use
3564 tui_set_current_layout_to.
3565 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3566 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3567 tui-layout.c.
3568 (tui_set_current_layout_to): Remove.
3569
2afade5d
TT
35702019-08-13 Tom Tromey <tom@tromey.com>
3571
3572 * tui/tui-layout.c (tui_set_layout): Update.
3573 * tui/tui-data.h (struct tui_layout_def): Remove.
3574 (tui_layout_def): Don't declare.
3575 * tui/tui-data.c (layout_def): Remove.
3576 (tui_layout_def): Remove.
3577
a3504e96
TT
35782019-08-13 Tom Tromey <tom@tromey.com>
3579
3580 * tui/tui-winsource.h (struct tui_source_window_base)
3581 <clear_detail>: No longer "override".
3582 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3583 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3584 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3585 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3586 Remove.
3587 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3588
29c92911
TT
35892019-08-13 Tom Tromey <tromey@adacore.com>
3590
3591 * tracepoint.c: Don't include readline.h or history.h.
3592
86c6b807
TT
35932019-08-12 Tom Tromey <tom@tromey.com>
3594
3595 * configure: Rebuild.
3596 * configure.ac: Check for readline 7.
3597 * NEWS: Mention readline 7 requirement.
3598 * README: Update.
3599
5db2718c
TT
36002019-08-12 Tom Tromey <tom@tromey.com>
3601
3602 * mingw-hdep.c (gdb_select): Remove readline hack.
3603
dac36daf
PFC
36042019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3605
3606 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3607 when the function fails.
3608
1022c627
AA
36092019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3610
3611 * s390-tdep.c (s390_type_align): New function.
3612 (s390_gdbarch_init): Set it as type_align gdbarch method.
3613
eba4caf2
TV
36142019-08-09 Tom de Vries <tdevries@suse.de>
3615
3616 PR gdb/24591
3617 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3618 pc_low with relocation offset.
3619
123cd851
TT
36202019-08-07 Tom Tromey <tromey@adacore.com>
3621
3622 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3623 (print_frame_args): Update.
3624 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3625 Update.
3626 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3627 * frame.h (struct frame_arg): Add initializers.
3628 <error>: Now a unique_xmalloc_ptr.
3629
3d31bc39
AH
36302019-08-07 Alan Hayward <alan.hayward@arm.com>
3631
3632 * NEWS: Expand the Pointer Authentication entry.
3633 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3634 (aarch64_frame_unmask_lr): ... to this.
3635 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3636 Call aarch64_frame_unmask_lr.
3637 * frame.c (struct frame_info): Add "masked" variable.
3638 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3639 (fprint_frame): Check for masked pc.
3640 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3641 declarations.
3642 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3643 * stack.c (print_frame): Check for masked pc.
3644
0cf9feb9
TT
36452019-08-06 Tom Tromey <tom@tromey.com>
3646
3647 * stabsread.c (patch_block_stabs, read_one_struct_field)
3648 (read_enum_type): Use obstack_strndup.
3649 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3650 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3651 * dwarf2read.c (guess_full_die_structure_name)
3652 (anonymous_struct_prefix): Use obstack_strndup.
3653 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3654 * c-exp.y (yylex): Use obstack_strndup.
3655 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3656 (write_var_or_type): Use obstack_strndup.
3657
efba19b0
TT
36582019-08-06 Tom Tromey <tom@tromey.com>
3659
3660 * symfile.c (reread_symbols): Use obstack_strdup.
3661 * stabsread.c (read_type): Use obstack_strdup.
3662 * gdb_obstack.h (obstack_strdup): New overload.
3663 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3664 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3665 (dwarf2_canonicalize_name): Use obstack_strdup.
3666 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3667 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3668 Use obstack_strdup.
3669
f25102f7
TT
36702019-08-06 Tom Tromey <tom@tromey.com>
3671
3672 * gdb_obstack.h (obstack_strdup): Define.
3673 * gdb_obstack.c (obstack_strdup): Don't define.
3674
021887d8
TT
36752019-08-06 Tom Tromey <tom@tromey.com>
3676
3677 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3678 obstack_strdup.
3679 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3680 obstack_strdup.
3681 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3682 * stabsread.c (common_block_start): Use obstack_strdup.
3683 * objfiles.c (set_objfile_main_name, objfile): Use
3684 obstack_strdup.
3685 * namespace.c (add_using_directive): Use obstack_strdup.
3686 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3687 * jit.c (finalize_symtab): Use obstack_strdup.
3688 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3689 (guess_partial_die_structure_name, partial_die_info::fixup)
3690 (dwarf2_name): Use obstack_strdup.
3691 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3692 obstack_strdup.
3693 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3694 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3695 obstack_strdup.
3696 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3697
d2834edc
PW
36982019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3699
3700 * unittests/help-doc-selftests.c: New file.
3701 * Makefile.in: Add the new file.
3702
590042fc
PW
37032019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3704
3705 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3706 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3707 the full first line, except when FOR_VALUE_PREFIX. In this case,
3708 the trailing '.' is not output, and the first character is uppercased.
3709 (print_help_for_command): Update call to print_doc_line.
3710 (print_doc_of_command): Likewise.
3711 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3712 * cli/cli-option.c (append_indented_doc): Do not append newline.
3713 (build_help_option): Append newline after first appended_indented_doc
3714 only if a second call is done.
3715 (build_help): Append 2 new lines before each option, except the first
3716 one.
3717 * compile/compile.c (_initialize_compile): Add new lines after
3718 %OPTIONS%, when not at the end of the help.
3719 Change help doc or code
3720 producing the help doc to respect the invariants.
3721 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3722 Also removed the new line after 'Options:', as all other commands
3723 do not put an empty line between 'Options:' and the first option.
3724 * printcmd.c (_initialize_printcmd): Likewise.
3725 * stack.c (_initialize_stack): Likewise.
3726 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3727 incorrectly telling COMMAND is optional.
3728 * ada-lang.c (_initialize_ada_language): Change help doc or code
3729 producing the help doc to respect the invariants.
3730 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3731 * breakpoint.c (_initialize_breakpoint): Likewise.
3732 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3733 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3734 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3735 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3736 _initialize_cli_style): Likewise.
3737 * corelow.c (core_target_info): Likewise.
3738 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3739 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3740 * filesystem.c (_initialize_filesystem): Likewise.
3741 * frame.c (_initialize_frame): Likewise.
3742 * gnu-nat.c (add_task_commands): Likewise.
3743 * infcall.c (_initialize_infcall): Likewise.
3744 * infcmd.c (_initialize_infcmd): Likewise.
3745 * interps.c (_initialize_interpreter): Likewise.
3746 * language.c (_initialize_language): Likewise.
3747 * linux-fork.c (_initialize_linux_fork): Likewise.
3748 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3749 * maint.c (_initialize_maint_cmds): Likewise.
3750 * memattr.c (_initialize_mem): Likewise.
3751 * printcmd.c (_initialize_printcmd): Likewise.
3752 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3753 _RegEx): Likewise.
3754 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3755 * record-btrace.c (_initialize_record_btrace): Likewise.
3756 * record-full.c (_initialize_record_full): Likewise.
3757 * record.c (_initialize_record): Likewise.
3758 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3759 * regcache.c (_initialize_regcache): Likewise.
3760 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3761 _initialize_remote): Likewise.
3762 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3763 * serial.c (_initialize_serial): Likewise.
3764 * skip.c (_initialize_step_skip): Likewise.
3765 * source.c (_initialize_source): Likewise.
3766 * stack.c (_initialize_stack): Likewise.
3767 * symfile.c (_initialize_symfile): Likewise.
3768 * symtab.c (_initialize_symtab): Likewise.
3769 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3770 * top.c (init_main): Likewise.
3771 * tracefile-tfile.c (tfile_target_info): Likewise.
3772 * tracepoint.c (_initialize_tracepoint): Likewise.
3773 * tui/tui-win.c (_initialize_tui_win): Likewise.
3774 * utils.c (add_internal_problem_command): Likewise.
3775 * valprint.c (value_print_option_defs): Likewise.
3776
404f2902
FCE
37772019-08-06 Frank Ch. Eigler <fche@redhat.com>
3778
3779 PR build/24886
3780 * configure.ac: Drop enable-libmcheck support.
3781 * configure, config.in: Rebuild.
3782 * libmcheck.m4: Remove.
3783 * acinclude.m4: Don't include it.
3784 * Makefile.in: Don't distribute it.
3785 * top.c (print_gdb_configuration): Don't mention it.
3786
046bebe1
TT
37872019-08-06 Tom Tromey <tom@tromey.com>
3788
3789 * utils.c (set_output_style): Sometimes pass stream to
3790 emit_style_escape.
3791 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3792 * record-btrace.c (btrace_insn_history): Update.
3793 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3794 method.
3795 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3796 Update initializers.
3797 <m_uiout>: New field.
3798 <m_di>: Move lower.
3799 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3800 Remove "uiout" parameter.
3801 (dump_insns): Update.
3802 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3803 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3804
ddbcedf5
CB
38052019-08-06 Christian Biesinger <cbiesinger@google.com>
3806
3807 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3808 (error_in_psymtab_expansion): Likewise.
3809 (lookup_symbol_via_quick_fns): Likewise.
3810 (basic_lookup_transparent_type_quick): Likewise.
3811 (basic_lookup_transparent_type_1): Likewise.
3812
b08b16c8
TT
38132019-08-06 Tom Tromey <tromey@adacore.com>
3814
3815 * source.c (last_source_error): Now bool.
3816 (print_source_lines_base): Make "noprint" bool. Only open
3817 source file when last_source_visited changes.
3818
cb44333d
TT
38192019-08-06 Tom Tromey <tromey@adacore.com>
3820
3821 * annotate.c (annotate_source_line): Use g_source_cache.
3822 * source-cache.c (source_cache::get_plain_source_lines): Change
3823 parameters. Populate m_offset_cache.
3824 (source_cache::ensure): New method.
3825 (source_cache::get_line_charpos): New method.
3826 (extract_lines): Move lower. Change parameters.
3827 (source_cache::get_source_lines): Move lower.
3828 * source-cache.h (class source_cache): Update comment.
3829 <get_line_charpos>: New method.
3830 <get_source_lines>: Update comment.
3831 <clear>: Clear m_offset_cache.
3832 <get_plain_source_lines>: Change parameters.
3833 <ensure>: New method
3834 <m_offset_cache>: New member.
3835 * source.c (forget_cached_source_info_for_objfile): Update.
3836 (info_source_command): Use g_source_cache.
3837 (find_source_lines, open_source_file_with_line_charpos): Remove.
3838 (print_source_lines_base, search_command_helper): Use g_source_cache.
3839 * source.h (open_source_file_with_line_charpos): Don't declare.
3840 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3841 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3842 Use g_source_cache.
3843
872dceaa
TT
38442019-08-06 Tom Tromey <tromey@adacore.com>
3845
3846 * source-cache.c (source_cache::get_plain_source_lines):
3847 Remove "first_line" and "last_line" parameters.
3848 (source_cache::get_source_lines): Cache plain text.
3849 * source-cache.h (class source_cache)
3850 <get_plain_source_lines>: Update.
3851
269249d9
TT
38522019-08-06 Tom Tromey <tromey@adacore.com>
3853
3854 * source-cache.c (extract_lines): No longer a method.
3855 Changed type of parameter. Include final newline.
3856 (selftests::extract_lines_test): New function.
3857 (_initialize_source_cache): Likewise.
3858 * source-cache.h (class source_cache)
3859 <extract_lines>: Don't declare.
3860
c0e8dcd8
TT
38612019-08-06 Tom Tromey <tromey@adacore.com>
3862
3863 * breakpoint.c (init_breakpoint_sal): Update.
3864 (breakpoint): Update.
3865 * breakpoint.h (struct breakpoint) <filter>: Now a
3866 unique_xmalloc_ptr.
3867
0b27c27d
CB
38682019-08-05 Christian Biesinger <cbiesinger@google.com>
3869
3870 * NEWS: Mention dictionary access on blocks.
3871 * python/py-block.c (blpy_getitem): New function.
3872 (block_object_as_mapping): New struct.
3873 (block_object_type): Use new struct for tp_as_mapping field.
3874
4ee94178
CB
38752019-08-05 Christian Biesinger <cbiesinger@google.com>
3876
3877 * objfiles.h (objfile): Add a comment describing partial symbols.
3878
8abfcabc
TT
38792019-08-05 Tom Tromey <tromey@adacore.com>
3880
3881 * compile/compile.c (_initialize_compile): Use _(), not N_().
3882 * thread.c (_initialize_thread): Use _(), not N_().
3883 * stack.c (_initialize_stack): Use _(), not N_().
3884 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3885
2b79f376
SM
38862019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 * dwarf2read.c (struct dw2_symtab_iterator):
3889 <want_specific_block>: Remove.
3890 <block_index>: Change type to gdb::optional.
3891 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3892 change type of BLOCK_INDEX parameter to gdb::optional.
3893 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3894 (dw2_lookup_symbol): Don't pass argument for
3895 WANT_SPECIFIC_BLOCK.
3896 (dw2_expand_symtabs_for_function): Don't pass argument for
3897 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3898 (class dw2_debug_names_iterator)
3899 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3900 parameter, change BLOCK_INDEX type to gdb::optional.
3901 <m_want_specific_block>: Remove.
3902 <m_block_index>: Change type to gdb::optional.
3903 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3904 gdb::optional. Re-write in function of gdb::optional.
3905 (dw2_debug_names_lookup_symbol): Don't pass argument for
3906 WANT_SPECIFIC_BLOCK.
3907 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3908 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3909 BLOCK_INDEX.
3910
ae60f04e
PW
39112019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3912
3913 * NEWS: Mention changes to "info sources" command.
3914
28cd9371
PW
39152019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3916
3917 * symtab.c (filename_partial_match_opts): New struct type.
3918 (struct output_source_filename_data): New members
3919 regexp, c_regexp, partial_match.
3920 (output_source_filename): Use new members to decide to print file.
3921 (info_sources_option_defs): New variable.
3922 (make_info_sources_options_def_group, print_info_sources_header,
3923 info_sources_command_completer):
3924 New functions.
3925 (info_sources_command): Read new optional arguments.
3926 (_initialize_symtab): Update info sources help.
3927
ca683e3a
AO
39282019-08-02 Alexandre Oliva <oliva@adacore.com>
3929
3930 * ada-lang.c (exception_support_info_v0): Renamed from...
3931 (default_exception_support_info): ... this. Create new
3932 definition for v1.
3933 (ada_has_this_exception_support): Look up catch_handlers_sym.
3934 (ada_exception_support_info_sniffer): Try v0 after default.
3935
f1264162
TT
39362019-08-01 Tom Tromey <tromey@adacore.com>
3937
3938 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3939 gdbarch.h.
3940
0a7b2485
CB
39412019-08-01 Christian Biesinger <cbiesinger@google.com>
3942
3943 * s12z-tdep.c: Fix include path for s12z-opc.h.
3944
c6bdbeb7
AH
39452019-08-01 Alan Hayward <alan.hayward@arm.com>
3946
3947 * NEWS: Require GNU make 3.82.
3948
a2bd7b82
TT
39492019-07-16 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3952 declare.
3953
aa3b6533
TT
39542019-07-30 Tom Tromey <tromey@adacore.com>
3955
3956 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3957
a1530dc7
KB
39582019-07-30 Kevin Buettner <kevinb@redhat.com>
3959
3960 * printcmd.c (print_address_symbolic): Print negative offsets.
3961 (build_address_symbolic): Force signed arithmetic when computing
3962 offset.
3963
2906593f
CB
39642019-07-30 Christian Biesinger <cbiesinger@google.com>
3965
3966 PR/24474: Add a function to lookup static variables.
3967 * NEWS: Mention this new function.
3968 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3969 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3970 * python/python.c (python_GdbMethods): Add new function.
3971
c620ed88
CB
39722019-07-29 Christian Biesinger <cbiesinger@google.com>
3973
3974 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3975 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3976 (objfpy_lookup_static_symbol): New function.
3977 (objfile_object_methods): Add new functions.
3978
bc4268a5
PW
39792019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3980
3981 * NEWS: Mention 'set|show print frame-info'. Mention new
3982 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3983 backtrace argument. Mention that python frame filtering code
3984 is now consistent with what 'backtrace' command prints.
3985
4b5e8d19
PW
39862019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3987
3988 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3989 comments.
3990 (print_frame_info_auto, print_frame_info_source_line,
3991 print_frame_info_location, print_frame_info_source_and_location,
3992 print_frame_info_location_and_address, print_frame_info_short_location):
3993 New declarations.
3994 (struct frame_print_options): New member print_frame_info.
3995 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3996 * stack.h (get_user_print_what_frame_info): New declaration.
3997 (frame_show_address): New declaration.
3998 * stack.c (print_frame_arguments_choices): New value 'presence'.
3999 (print_frame_info_auto, print_frame_info_source_line,
4000 print_frame_info_location, print_frame_info_source_and_location,
4001 print_frame_info_location_and_address, print_frame_info_short_location,
4002 print_frame_info_choices, print_frame_info_print_what): New definitions.
4003 (print_frame_args): Only print dots for args if print frame-arguments
4004 is 'presence'.
4005 (frame_print_option_defs): New element for "frame-info".
4006 (get_user_print_what_frame_info): New function.
4007 (frame_show_address): Make non static. Move comment to stack.h.
4008 (print_frame_info_to_print_what): New function.
4009 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4010 to decide what to print.
4011 (backtrace_command_1): Handle the new print_frame_arguments_presence
4012 value.
4013 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4014 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4015 (py_print_frame): In non-mi mode, use LOCATION as default for
4016 print_what, similarly to frame information printed directly by
4017 backtrace command. Handle frame-info user option in non MI mode.
4018
6bdfee81
KB
40192019-07-27 Kevin Buettner <kevinb@redhat.com>
4020
4021 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4022 Add case for debugging 32-bit target on 64-bit host. Revise
4023 comment.
4024
98a617f8
KB
40252019-07-27 Kevin Buettner <kevinb@redhat.com>
4026
4027 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4028 instead of find_function_entry_range_from_pc.
4029
567238c9
KB
40302019-07-27 Kevin Buettner <kevinb@redhat.com>
4031
4032 * stack.c (find_frame_funname): Remove code which preferred
4033 minsym over symtab sym in "certain pathological cases".
4034
2dc80cf8
KB
4035 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4036 parameter. Change type of "do_demangle" to bool.
4037 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4038 Pass suitable "prefer_sym_over_minsym" flag to
4039 build_address_symbolic(). Don't output "+" for negative offsets.
4040 * printcmd.c (print_address_symbolic): Update invocation of
4041 build_address_symbolic to include a "prefer_sym_over_minsym"
4042 flag.
4043 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4044 Restrict cases in which use of minimal symbol is preferred to that
4045 of a found symbol. Update comments.
4046
1aff7173
KB
4047 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4048 for entry pc when entry pc is out of range for that FDE.
4049
89b085ac
BC
40502019-07-26 Brian Callahan <bcallah@openbsd.org>
4051
4052 PR gdb/24839:
4053 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4054 type.
4055
f32feb4a
CB
40562019-07-25 Christian Biesinger <cbiesinger@google.com>
4057
4058 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4059 this function's Python signature.
4060
4061
40622019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4063
4064 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4065 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4066 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4067 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4068 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4069
4070
c54e4253
YS
40712019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4072
4073 * h8300-tdep.c (h8300_register_name_common): New.
4074 h8300_register_name): Use h8300_register_name_common.
4075 (h8300s_register_name): Likewise.
4076 (h8300sx_register_name): Likewise.
4077 (h8300h_register_nam): New.
4078 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4079
4080
40eadf04
SP
40812019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4082
4083 * arm-tdep.c (arm_skip_cmse_entry): New function.
4084 (arm_is_sgstubs_section): New function.
4085 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4086
bfa2a36d
TT
40872019-07-22 Tom Tromey <tom@tromey.com>
4088
4089 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4090 Don't self-assign.
4091
a8e9d247
AB
40922019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4095 type_print.
4096
eb86c5e2
AB
40972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4100 so that GDB doesn't match any msymbols when searching in the
4101 TYPES_DOMAIN.
4102 (print_symbol_info): Print using typedef_print or type_print based
4103 on the type of the symbol. Add updated FIXME comment moved from...
4104 (_initialize_symtab): ... move and update FIXME comment to above.
4105
a8eab7c6
AB
41062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4107
4108 * NEWS: Mention adding -q option to "info types".
4109 * symtab.c (struct info_types_options): New struct.
4110 (info_types_options_defs): New variable.
4111 (make_info_types_options_def_group): New function.
4112 (info_types_command): Use gdb::option framework to parse options.
4113 (info_types_command_completer): New function.
4114 (_initialize_symtab): Extend the help text on "info types" and
4115 register command completer.
4116
b4603c34
CB
41172019-07-21 Christian Biesinger <cbiesinger@google.com>
4118
4119 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4120 (lookup_symbol_in_objfile): Change int to block_enum and add a
4121 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4122
c8cdc1e0
CB
41232019-07-20 Christian Biesinger <cbiesinger@google.com>
4124
4125 * MAINTAINERS (Write After Approval): Add self.
4126
01e175fe
AB
41272019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4130 instruction to the dummy code region.
4131
56f79b63
TT
41322019-07-19 Tom Tromey <tromey@adacore.com>
4133
4134 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4135 (ARGSUSED, PARAMS, __func__): Remove rules.
4136
4c5aa8e0
AH
41372019-07-19 Alan Hayward <alan.hayward@arm.com>
4138
4139 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4140 * features/arm/arm-with-iwmmxt.c: Remove.
4141 * features/arm/arm-with-iwmmxt.xml: Remove.
4142 * features/arm/arm-with-m-fpa-layout.c: Remove.
4143 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4144 * features/arm/arm-with-m-vfp-d16.c: Remove.
4145 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4146 * features/arm/arm-with-m.c: Remove.
4147 * features/arm/arm-with-m.xml: Remove.
4148 * features/arm/arm-with-neon.c: Remove.
4149 * features/arm/arm-with-neon.xml: Remove.
4150 * features/arm/arm-with-vfpv2.c: Remove.
4151 * features/arm/arm-with-vfpv2.xml: Remove.
4152 * features/arm/arm-with-vfpv3.c: Remove.
4153 * features/arm/arm-with-vfpv3.xml: Remove.
4154
f42b2617
AH
41552019-07-19 Alan Hayward <alan.hayward@arm.com>
4156
4157 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4158
f29ec966
AH
41592019-07-19 Alan Hayward <alan.hayward@arm.com>
4160
4161 * arch/aarch32.c (aarch32_create_target_description): Create
4162 target descriptions using features.
4163 * arch/arm.c (arm_create_target_description)
4164 (arm_create_mprofile_target_description): Likewise.
4165 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4166
d105cce5
AH
41672019-07-19 Alan Hayward <alan.hayward@arm.com>
4168
4169 * Makefile.in: Add new files.
4170 * aarch32-tdep.c: New file.
4171 * aarch32-tdep.h: New file.
4172 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4173 Call aarch32_read_description.
4174 * arch/aarch32.c: New file.
4175 * arch/aarch32.h: New file.
4176 * arch/arm.c (arm_create_target_description)
4177 (arm_create_mprofile_target_description): New function.
4178 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4179 (arm_create_target_description)
4180 (arm_create_mprofile_target_description): New declaration.
4181 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4182 read_description functions.
4183 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4184 Likewise.
4185 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4186 * arm-tdep.c (tdesc_arm_list): New variable.
4187 (arm_register_g_packet_guesses): Call create description functions.
4188 (arm_read_description) (arm_read_mprofile_description): New
4189 function.
4190 * arm-tdep.h (arm_read_description)
4191 (arm_read_mprofile_description): Add declaration.
4192 * configure.tgt: Add new files.
4193
afe09f0b
GL
41942019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4195
4196 * top.c (new_ui_command): Open specified terminal just once.
4197
cd215b2e
TT
41982019-07-18 Tom Tromey <tromey@adacore.com>
4199
4200 * symtab.c (main_name): Constify return type.
4201 * symfile.c (set_initial_language): Update.
4202 * symtab.h (main_name): Constify return type.
4203
d8f68fcb
TT
42042019-07-17 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-winsource.c (tui_update_source_window)
4207 (tui_update_source_window_as_is)
4208 (tui_update_source_windows_with_line): Remove return.
4209 * tui/tui-disasm.c (tui_show_disassem)
4210 (tui_show_disassem_and_update_source): Remove return.
4211 * tui/tui.c (tui_reset): Remove return.
4212 * tui/tui-wingeneral.c
4213 (tui_check_and_display_highlight_if_needed): Remove return.
4214
ca5af91e
TT
42152019-07-17 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4218
5104fe36
TT
42192019-07-17 Tom Tromey <tom@tromey.com>
4220
4221 * tui/tui-winsource.h (struct tui_exec_info_window)
4222 (struct tui_source_window_base): Move from tui-data.h.
4223 * tui/tui-winsource.c: Move many method definitions from
4224 elsewhere. Remove "structuring" comments.
4225 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4226 (tui_source_window_base::refresh_window): Move to
4227 tui-winsource.c.
4228 * tui/tui-win.c (tui_source_window_base::refresh_all)
4229 (tui_source_window_base::update_tab_width)
4230 (tui_source_window_base::set_new_height)
4231 (tui_source_window_base::do_make_visible_with_new_height): Move to
4232 tui-winsource.c.
4233 * tui/tui-source.h: Update.
4234 * tui/tui-source.c (tui_source_window_base::reset): Move to
4235 tui-winsource.c.
4236 * tui/tui-disasm.h: Update.
4237 * tui/tui-data.h (struct tui_exec_info_window): Move to
4238 tui-winsource.h.
4239 (struct tui_source_window_base): Likewise.
4240 * tui/tui-data.c (tui_source_window_base::clear_detail)
4241 (tui_source_window_base, ~tui_source_window_base): Move to
4242 tui-winsource.c.
4243
daa15dde
TT
42442019-07-17 Tom Tromey <tom@tromey.com>
4245
4246 * tui/tui-win.c (tui_resize_all)
4247 (tui_source_window_base::update_tab_width)
4248 (tui_adjust_win_heights): Update.
4249 (tui_win_info::make_invisible_and_set_new_height): Rename from
4250 make_invisible_and_set_new_height.
4251 * tui/tui-data.h (struct tui_win_info)
4252 <make_invisible_and_set_new_height>: New method.
4253
bfad4537
TT
42542019-07-17 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui.c: Update.
4257 * tui/tui-source.h (struct tui_source_window): Move from
4258 tui-data.h.
4259 * tui/tui-layout.c: Update.
4260 * tui/tui-disasm.c: Update.
4261 * tui/tui-data.h (struct tui_source_window): Move to
4262 tui-source.h.
4263
88f7e873
TT
42642019-07-17 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4267 tui-data.h.
4268 * tui/tui-data.h (struct tui_disasm_window): Move to
4269 tui-disasm.h.
4270
96bd6233
TT
42712019-07-17 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-regs.h (struct tui_data_item_window): Move from
4274 tui-data.h.
4275 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4276 * tui/tui-data.h (struct tui_data_item_window): Move to
4277 tui-regs.h.
4278 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4279
ce38393b
TT
42802019-07-17 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui.c: Update.
4283 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4284 (tui_cmd_window::max_height): Move to tui-command.c.
4285 * tui/tui-layout.c: Update.
4286 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4287 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4288 tui-command.c.
4289 * tui/tui-command.h (struct tui_cmd_window): Move from
4290 tui-data.h.
4291 * tui/tui-command.c: Remove "structuring" comments.
4292 (tui_cmd_window::clear_detail)
4293 (tui_cmd_window::do_make_visible_with_new_height)
4294 (tui_cmd_window::max_height): Move from elsewhere.
4295
2d8b51cb
TT
42962019-07-17 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4299 Now static.
4300 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4301 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4302
18ab23af
TT
43032019-07-17 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui.c: Update.
4306 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4307 tui-regs.c.
4308 * tui/tui-windata.h: Remove file.
4309 * tui/tui-windata.c: Remove file.
4310 * tui/tui-win.c (tui_data_window::set_new_height)
4311 (tui_data_window::do_make_visible_with_new_height): Move to
4312 tui-regs.c.
4313 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4314 * tui/tui-regs.c: Remove "structuring" comments.
4315 (tui_data_window::first_data_item_displayed)
4316 (tui_data_window::delete_data_content_windows)
4317 (tui_data_window::erase_data_content)
4318 (tui_data_window::display_all_data)
4319 (tui_data_window::refresh_all)
4320 (tui_data_window::do_scroll_vertical)
4321 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4322 (tui_data_window::do_make_visible_with_new_height)
4323 (tui_data_window::refresh_window): Move from elsewhere.
4324 (_initialize_tui_regs): Move to end of file.
4325 * tui/tui-layout.c: Update.
4326 * tui/tui-hooks.c: Update.
4327 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4328 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4329 tui-regs.c.
4330 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4331
88b7e7cc
TT
43322019-07-17 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4335 seen.
4336
0fcd3711
TT
43372019-07-17 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-win.c (tui_source_window_base::set_new_height)
4340 (tui_source_window_base::do_make_visible_with_new_height): Use
4341 m_has_locator field directly.
4342 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4343 method.
4344 (struct tui_source_window_base) <has_locator>: Likewise.
4345
4a38112d
TT
43462019-07-17 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4349 Don't declare.
4350 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4351 Remove.
4352 * tui/tui-win.c (tui_source_window_base::set_new_height)
4353 (tui_source_window_base::set_new_height)
4354 (make_invisible_and_set_new_height)
4355 (tui_source_window_base::do_make_visible_with_new_height)
4356 (tui_source_window_base::do_make_visible_with_new_height):
4357 Update.
4358 * tui/tui-layout.c (show_source_disasm_command, show_data)
4359 (show_source_or_disasm_and_command): Update.
4360 * tui/tui-layout.c (show_layout): Update.
4361
09129226
TT
43622019-07-17 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-layout.c (make_data_window): Remove.
4365 (show_data): Unify creation and re-initialization cases.
4366
4a8a5e84
TT
43672019-07-17 Tom Tromey <tom@tromey.com>
4368
4369 * tui/tui-layout.c (make_source_window, make_disasm_window):
4370 Remove.
4371 (show_data): Unify creation and re-initialization cases.
4372
76d2be8e
TT
43732019-07-17 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-layout.c (make_command_window): Remove.
4376 (show_source_disasm_command, show_source_or_disasm_and_command):
4377 Unify creation and re-initialization cases.
4378
890b8bde
TT
43792019-07-17 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4382 creation and re-initialization cases.
4383
2cdfa113
TT
43842019-07-17 Tom Tromey <tom@tromey.com>
4385
4386 * tui/tui-regs.c (tui_get_register): Return void.
4387
8e3cfd09
TT
43882019-07-17 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4391 Simplify.
4392
f4e04977
TT
43932019-07-17 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4396 resetting.
4397
0379b883
TT
43982019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4401 * tui/tui-regs.c (tui_reg_layout): New function.
4402 (tui_show_registers, tui_reg_command): Use it.
4403 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4404 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4405 parameters.
4406 (tui_layout_command): Remove.
4407
b7fbad91
TT
44082019-07-17 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-layout.h (tui/tui-layout): Return void.
4411 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4412
4e1e56b9
TT
44132019-07-17 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-layout.c (show_source_disasm_command, show_data):
4416 Update.
4417 (reset_locator): Remove.
4418 (show_source_or_disasm_and_command): Update.
4419
1e0c09ba
TT
44202019-07-17 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-source.c (tui_source_window_base::reset): Remove
4423 win_type parameter.
4424 * tui/tui-layout.c (make_command_window, make_source_window)
4425 (make_disasm_window, make_data_window)
4426 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4427 (reset_locator, show_source_or_disasm_and_command): Update.
4428 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4429 win_type parameter.
4430 (struct tui_source_window_base) <reset>: Likewise.
4431
1bf605de
TT
44322019-07-17 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-layout.c (show_source_disasm_command): Use
4435 reset_locator.
4436 (reset_locator): New function.
4437 (init_and_make_win): Remove.
4438 (show_source_or_disasm_and_command): Use reset_locator.
4439
098f9ed4
TT
44402019-07-17 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4443 condition.
4444 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4445 Remove condition.
4446 * tui/tui-source.c (tui_source_window_base::reset): New method.
4447 * tui/tui-layout.c (make_command_window): Don't call
4448 init_and_make_win.
4449 (make_source_window, make_disasm_window): Don't call
4450 make_source_or_disasm_window.
4451 (make_data_window): Don't call init_and_make_win. Change calling
4452 convention.
4453 (show_source_disasm_command, show_data): Simplify.
4454 (make_source_or_disasm_window): Remove.
4455 (show_source_or_disasm_and_command): Simplify.
4456 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4457 (struct tui_source_window_base) <reset>: Likewise.
4458 <execution_info>: Remove initializer.
4459 * tui/tui-data.c (tui_source_window_base): Initialize
4460 execution_info.
4461
80110957
TT
44622019-07-17 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4465 variable.
4466
cf82af05
TT
44672019-07-17 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui.c (tui_rl_other_window): Update.
4470 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4471 superclass method first. Always iterate over regs_content.
4472 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4473 method.
4474 * tui/tui-win.c (tui_set_focus_command): Update.
4475
01aeb396
TT
44762019-07-17 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-win.c (tui_set_focus_command): Rename from
4479 tui_set_focus. Call tui_enable.
4480 (tui_set_focus_command): Remove.
4481
fd6c75ee
TT
44822019-07-17 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4485 refresh_window.
4486 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4487 touchwin.
4488 (tui_data_window::refresh_window): Call refresh_window on data
4489 items. Always call superclass refresh_window.
4490 (tui_win_info::refresh): Remove.
4491 (tui_source_window_base::refresh_window): Update.
4492 (tui_refresh_all): Update.
4493 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4494 refresh_window.
4495 (show_source_or_disasm_and_command): Likewise.
4496 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4497 (struct tui_source_window_base) <refresh>: Likewise.
4498
f6cc34a9
TT
44992019-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-winsource.c (tui_clear_source_content)
4502 (tui_show_source_content): Update.
4503 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4504 whether content is empty.
4505 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4506 Remove.
4507
f31ec9af
TT
45082019-07-17 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4511 window's contents.
4512 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4513 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4514
d1b6f1e5
TT
45152019-07-17 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4518 (struct tui_data_item_window): Update.
4519
d9743a13
TT
45202019-07-17 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4523 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4524 defines.
4525
caf0bc4e
TT
45262019-07-17 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.h (tui_erase_source_content)
4529 (tui_clear_source_content): Remove "display_prompt" parameter.
4530 * tui/tui-winsource.c (tui_update_source_window_as_is)
4531 (tui_update_source_windows_with_addr): Update.
4532 (tui_clear_source_content): Remove "display_prompt" parameter.
4533 (tui_erase_source_content): Likewise. Simplify.
4534 (tui_show_source_content): Update.
4535 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4536 * tui/tui-stack.c (tui_show_frame_info): Update.
4537 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4538 Remove defines.
4539
9d391078
TT
45402019-07-17 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4543 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4544 parameter.
4545 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4546 parameter.
4547
a38da35d
TT
45482019-07-17 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.c (tui_clear_source_content)
4551 (tui_show_source_content, tui_show_exec_info_content)
4552 (tui_clear_exec_info_content): Update.
4553 * tui/tui-stack.c (tui_show_locator_content): Update.
4554 (tui_show_frame_info): Update.
4555 * tui/tui-source.h (tui_source_window): Don't declare.
4556 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4557 from tui_source_is_displayed.
4558 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4559 Remove field.
4560 (struct tui_source_window_base) <content_in_use>: New field. Now
4561 bool.
4562 (struct tui_source_window) <showing_source_p>: New method.
4563 (TUI_SRC_WIN): Change cast.
4564 * tui/tui-data.c (tui_initialize_static_data): Update.
4565
c2cd8994
TT
45662019-07-17 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4569 location_matches_p.
4570 * tui/tui-source.c (tui_source_window::location_matches_p): New
4571 method.
4572 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4573 method.
4574 * tui/tui-data.h (struct tui_source_window_base)
4575 <location_matches_p>: New method.
4576 (struct tui_source_window, struct tui_disasm_window)
4577 <location_matches_p>: Likewise.
4578
4dde7b34
TT
45792019-07-17 Tom Tromey <tom@tromey.com>
4580
4581 * tui/tui-win.c (tui_set_win_height_command): Rename from
4582 tui_set_win_height.
4583 (tui_set_win_height_command): Remove.
4584
b73dd877
TT
45852019-07-17 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-source.c (tui_source_window): New constructor. Add
4588 observer.
4589 (~tui_source_window): New destructor.
4590 (tui_source_window::style_changed): New method.
4591 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4592 (tui_attach_detach_observers): Update.
4593 * tui/tui-data.h (struct tui_source_window): Make constructor not
4594 inline. Add destructor.
4595 (struct tui_source_window) <style_changed>: New method.
4596 <m_observable>: New member.
4597
ae2b5380
TT
45982019-07-17 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4601 * tui/tui-win.c (tui_resize_all): Fix typo.
4602
1ce3e844
TT
46032019-07-17 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4606 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4607 (tui_refresh_all): Remove "list" parameter. Use foreach.
4608 * tui/tui-win.c (window_name_completer): Use foreach.
4609 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4610 (update_tab_width): Likewise.
4611 * tui/tui-layout.c (show_layout): Update.
4612 * tui/tui-data.h (class tui_window_iterator): New.
4613 (struct all_tui_windows): New.
4614 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4615
fe3eaf1c
TT
46162019-07-17 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4619 parameter. Don't reference globals.
4620 (tui_reg_command): Update.
4621
368c1354
TT
46222019-07-17 Tom Tromey <tom@tromey.com>
4623
4624 * tui/tui-regs.c (tui_show_registers): Simplify.
4625
e80cd204
TT
46262019-07-17 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui-regs.c (tui_show_registers): Update.
4629 (tui_show_register_group): Add win_info parameter.
4630
aca2dd16
TT
46312019-07-17 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4634 Rename from tui_display_reg_element_at_line.
4635 (tui_data_window::display_registers_from_line): Update.
4636 * tui/tui-data.h (struct tui_data_window)
4637 <display_reg_element_at_line>: New method.
4638
517e9505
TT
46392019-07-17 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-regs.h (tui_display_registers_from)
4642 (tui_display_registers_from_line): Don't declare.
4643 * tui/tui-windata.c (tui_data_window::display_all_data)
4644 (tui_data_window::refresh_all)
4645 (tui_data_window::do_scroll_vertical): Update.
4646 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4647 from tui_display_registers_from.
4648 (tui_display_reg_element_at_line): Update.
4649 (tui_data_window::display_registers_from_line): Rename from
4650 tui_display_registers_from_line.
4651 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4652 display_registers_from_line>: New methods.
4653
f76d8b19
TT
46542019-07-17 Tom Tromey <tom@tromey.com>
4655
4656 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4657 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4658 from tui_erase_data_content.
4659 (tui_data_window::display_all_data)
4660 (tui_data_window::refresh_all)
4661 (tui_data_window::do_scroll_vertical): Update.
4662 * tui/tui-regs.c (tui_show_registers): Update.
4663 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4664 New method.
4665
b4094625
TT
46662019-07-17 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4669 declare.
4670 * tui/tui-windata.c
4671 (tui_data_window::delete_data_content_windows): Rename from
4672 tui_delete_data_content_windows.
4673 (tui_data_window::display_all_data)
4674 (tui_data_window::do_scroll_vertical): Update.
4675 * tui/tui-data.h (struct tui_data_window)
4676 <delete_data_content_windows>: New method.
4677
c223a729
TT
46782019-07-17 Tom Tromey <tom@tromey.com>
4679
4680 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4681 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4682
50daf268
TT
46832019-07-17 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4686 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4687 from tui_display_all_data.
4688 * tui/tui-win.c
4689 (tui_data_window::do_make_visible_with_new_height): Update.
4690 * tui/tui-regs.c (tui_show_registers): Update.
4691 * tui/tui-layout.c (tui_set_layout): Update.
4692 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4693 method.
4694
df5f8cab
TT
46952019-07-17 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4698 * tui/tui-windata.c (tui_display_data_from): Remove.
4699 (tui_data_window::refresh_all): Update.
4700
80cb6c27
TT
47012019-07-17 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4704 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4705 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4706 tui_display_registers_from_line.
4707 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4708 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4709 "force_display" parameter.
4710
baff0c28
TT
47112019-07-17 Tom Tromey <tom@tromey.com>
4712
4713 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4714 declare.
4715 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4716 Rename from tui_first_reg_element_no_inline.
4717 (tui_display_reg_element_at_line)
4718 (tui_display_registers_from_line): Update.
4719 * tui/tui-data.h (struct tui_data_window)
4720 <first_reg_element_no_inline>: New method.
4721
3b23c5f2
TT
47222019-07-17 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-windata.c (tui_display_data_from)
4725 (tui_data_window::do_scroll_vertical): Update.
4726 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4727 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4728 Rename from tui_line_from_reg_element_no.
4729 (tui_display_registers_from_line): Update.
4730 * tui/tui-data.h (struct tui_data_window)
4731 <line_from_reg_element_no>: New method.
4732
0b5ec218
TT
47332019-07-17 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4736 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4737 tui_last_regs_line_no.
4738 (tui_display_reg_element_at_line)
4739 (tui_display_registers_from_line): Update.
4740 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4741 method.
4742
0807ab7b
TT
47432019-07-17 Tom Tromey <tom@tromey.com>
4744
4745 PR tui/24722:
4746 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4747 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4748 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4749 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4750 (tui_update_breakpoint_info): Likewise.
4751 * tui/tui-hooks.c (tui_event_create_breakpoint)
4752 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4753 Update.
4754
9ad7fdef
TT
47552019-07-17 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4758
5813316f
TT
47592019-07-17 Tom Tromey <tom@tromey.com>
4760
4761 * tui/tui-winsource.c (tui_update_source_window_as_is)
4762 (tui_update_source_windows_with_addr): Update.
4763 * tui/tui-source.h (tui_set_source_content)
4764 (tui_show_symtab_source): Add "win_info" parameter.
4765 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4766 parameter.
4767 (tui_show_symtab_source): Likewise.
4768
00e264e7
TT
47692019-07-17 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-wingeneral.c
4772 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4773
06210ce4
TT
47742019-07-17 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4777 (struct tui_cmd_window) <can_scroll>: New method.
4778 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4779 method.
4780
381befee
TT
47812019-07-17 Tom Tromey <tromey@adacore.com>
4782
4783 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4784 do_field_signed>: Rename. Change type of "value".
4785 * ui-out.c (ui_out::field_signed): Rename from field_int.
4786 Change type of "value".
4787 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4788 type of "value".
4789 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4790 do_field_int. Change type of "value".
4791 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4792 do_field_int. Change type of "value".
4793 * tracepoint.c (trace_status_mi, tfind_1)
4794 (print_one_static_tracepoint_marker): Update.
4795 * thread.c (print_thread_info_1, print_selected_thread_frame):
4796 Update.
4797 * stack.c (print_frame, print_frame_info): Update.
4798 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4799 Update.
4800 * source.c (print_source_lines_base): Update.
4801 * skip.c (info_skip_command): Update.
4802 * record-btrace.c (btrace_ui_out_decode_error)
4803 (btrace_call_history_src_line): Update.
4804 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4805 Update.
4806 * progspace.c (print_program_space): Update.
4807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4808 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4809 do_field_int. Change type of "value".
4810 * mi/mi-out.c (mi_ui_out::do_table_begin)
4811 (mi_ui_out::do_table_header): Update.
4812 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4813 type of "value".
4814 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4815 (mi_cmd_data_list_changed_registers, output_register)
4816 (mi_cmd_data_read_memory, mi_load_progress)
4817 (mi_cmd_trace_frame_collected): Update.
4818 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4819 Update.
4820 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4821 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4822 (mi_cmd_var_list_children, varobj_update_one): Update.
4823 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4824 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4826 * inferior.c (print_inferior): Update.
4827 * gdb_bfd.c (print_one_bfd): Update.
4828 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4829 Update.
4830 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4831 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4832 do_field_int. Change type of "value".
4833 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4834 do_field_int. Change type of "value".
4835 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4836 (print_one_breakpoint_location, print_it_catch_fork)
4837 (print_one_catch_fork, print_it_catch_vfork)
4838 (print_one_catch_vfork, print_it_catch_solib)
4839 (print_it_catch_exec, print_it_ranged_breakpoint)
4840 (print_mention_watchpoint, print_mention_masked_watchpoint)
4841 (bkpt_print_it, update_static_tracepoint): Update.
4842 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4843 * break-catch-syscall.c (print_it_catch_syscall): Update.
4844 * ada-tasks.c (print_ada_task_info): Update.
4845 * ada-lang.c (print_it_exception, print_mention_exception):
4846 Update.
4847
6b78c3f8
AB
48482019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 PR breakpoints/24541
4851 * gdbarch.c: Regenerate.
4852 * gdbarch.h: Regenerate.
4853 * gdbarch.sh: Adjust return type and parameter types for
4854 'stap_adjust_register'.
4855 (i386_stap_adjust_register): Adjust signature and return new
4856 register name.
4857 * stap-probe.c (stap_parse_register_operand): Adjust use of
4858 'gdbarch_stap_adjust_register'.
4859
d72a9b85
TT
48602019-07-17 Tom Tromey <tromey@adacore.com>
4861
4862 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4863 declare VEC.
4864 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4865 std::vector.
4866 (struct s390_process_info): Add initializers.
4867 (s390_add_process): Use new.
4868 (s390_linux_nat_target::low_forget_process): Use delete.
4869 (s390_linux_nat_target::low_new_fork)
4870 (s390_linux_nat_target::stopped_by_watchpoint)
4871 (s390_linux_nat_target::low_prepare_to_resume)
4872 (s390_linux_nat_target::insert_watchpoint)
4873 (s390_linux_nat_target::insert_hw_breakpoint)
4874 (s390_linux_nat_target::remove_watchpoint)
4875 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4876
206e6c58
JB
48772019-07-16 John Baldwin <jhb@FreeBSD.org>
4878
4879 * aarch64-fbsd-nat.c: Include regcache.h.
4880 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4881 argument.
4882 (aarch64_fbsd_nat_target::fetch_registers)
4883 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4884 variable.
4885 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4886
cbde90f2
JB
48872019-07-16 John Baldwin <jhb@FreeBSD.org>
4888
4889 * fbsd-nat.c: Include gdbarch.h.
4890
07128006
TT
48912019-07-15 Tom Tromey <tromey@adacore.com>
4892
4893 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4894
1f77b012
TT
48952019-07-15 Tom Tromey <tromey@adacore.com>
4896
4897 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4898 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4899 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4900 * cli-out.c (cli_ui_out::do_field_int): New method.
4901 * ui-out.c (ui_out::field_unsigned): New method.
4902 * symfile.c (generic_load): Use field_unsigned.
4903 (print_transfer_performance): Likewise.
4904 * record-btrace.c (ui_out_field_uint): Remove.
4905 (btrace_call_history_insn_range, btrace_call_history): Use
4906 field_unsigned.
4907 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4908 field_unsigned.
4909 * ui-out.h (class ui_out) <field_unsigned>: New method.
4910 <do_field_unsigned>: Likewise.
4911
33eca680
TT
49122019-07-15 Tom Tromey <tromey@adacore.com>
4913
4914 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4915 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4916 * target.c (flash_erase_command): Use field_string.
4917 * infrun.c (print_signal_received_reason): Use field_string.
4918 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4919 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4920 field_string.
4921 * ada-tasks.c (print_ada_task_info): Use field_string.
4922
ca8d69be
TT
49232019-07-15 Tom Tromey <tromey@adacore.com>
4924
4925 * target.c (flash_erase_command): Use field_core_addr.
4926 * symfile.c (generic_load): Use field_core_addr.
4927 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4928 Use field_core_addr.
4929 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4930 field_core_addr.
4931
0d4e84ed
AB
49322019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4935 value if its desired type is smaller than a CORE_ADDR and signed.
4936
9a49df9d
AB
49372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4940 of changes to field names, and use new is_reference field to
4941 decide if a property is a reference or not.
4942 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4943 field.
4944 (struct dwarf2_property_baton): Update header comment, rename
4945 'referenced_type' to 'property_type' and update comments.
4946 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4947 default property type, store in property baton, update to take
4948 accound of renamed field.
4949 (read_func_scope): Update call to attr_to_dynamic_prop.
4950 (read_array_type): Likewise.
4951 (dwarf2_per_cu_addr_sized_int_type): New function.
4952 (read_subrange_index_type): Move type finding code to
4953 dwarf2_per_cu_addr_sized_int_type.
4954 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4955 (dwarf2_per_cu_addr_type): New function.
4956 (set_die_type): Update calls to attr_to_dynamic_prop.
4957
b86352cf
AB
49582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * dwarf2read.c (read_subrange_index_type): New function.
4961 (read_subrange_type): Move code into new function and call it.
4962 * gdbtypes.c (create_range_type): Add some asserts.
4963
603490bf
AB
49642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4967 update return statements.
4968 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4969 declaration, and update comment to match.
4970 * gdbtypes.c (resolve_dynamic_array): Update call to
4971 dwarf2_evaluate_property to match new return type.
4972
592f9d27
AB
49732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * valarith.c (value_subscripted_rvalue): Change lowerbound
4976 parameter type from int to LONGEST.
4977 * value.h (value_subscripted_rvalue): Likewise in declaration.
4978
60cfcb20
AB
49792019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * cli/cli-utils.c (info_print_command_completer): New function.
4982 * cli/cli-utils.h: Add 'completer.h' include, and forward
4983 declaration for 'struct cmd_list_element'.
4984 (info_print_command_completer): Declare.
4985 * stack.c (_initialize_stack): Add completer for 'info locals' and
4986 'info args'.
4987 * symtab.c (_initialize_symtab): Add completer for 'info
4988 variables' and 'info functions'.
4989 * NEWS: Mention completion for additional info commands.
4990
b16507e0
AB
49912019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * cli/cli-utils.c (extract_info_print_args): Delete.
4994 (extract_arg_maybe_quoted): Delete.
4995 (info_print_options_defs): New variable.
4996 (make_info_print_options_def_group): New function.
4997 (extract_info_print_options): Define new function.
4998 * cli/cli-utils.h (extract_info_print_args): Delete.
4999 (struct info_print_options): New structure.
5000 (extract_info_print_options): Declare new function.
5001 * stack.c (info_locals_command): Update to use new
5002 extract_info_print_options, also add a header comment.
5003 (info_args_command): Likewise.
5004 * symtab.c (info_variables_command): Likewise.
5005 (info_functions_command): Likewise.
5006
021d8588
AB
50072019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5010 to extract string arguments.
5011 * common/common-utils.c (extract_string_maybe_quoted): New function.
5012 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5013
b777eb6d
TT
50142019-07-11 Tom Tromey <tromey@adacore.com>
5015
5016 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5017 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5018 * top.h (gdbinit): Don't declare.
5019 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5020 into...
5021 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5022 * top.c (gdb_init): Don't call init_cli_cmds.
5023 (gdbinit): Remove.
5024 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5025
72ee03ff
TT
50262019-07-11 Tom Tromey <tromey@adacore.com>
5027
5028 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5029 after it has been moved.
5030
00db9531
SM
50312019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5032
5033 * valops.c (value_must_coerce_to_target): Change return type to
5034 bool.
5035 * value.h (value_must_coerce_to_target): Likewise.
5036
f2478a7e
SM
50372019-07-10 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * breakpoint.c (is_hardware_watchpoint): Remove
5040 forward-declaration.
5041 (is_masked_watchpoint): Change return type to bool.
5042 (is_tracepoint): Likewise.
5043 (is_breakpoint): Likewise.
5044 (is_hardware_watchpoint): Likewise.
5045 (is_watchpoint): Likewise.
5046 (is_no_memory_software_watchpoint): Likewise.
5047 (is_catchpoint): Likewise.
5048 (breakpoint_1): Make FILTER parameter's return type bool.
5049 is_masked_watchpoint): Change return type to bool.
5050 (save_breakpoints): Make FILTER parameter's return type bool.
5051 * breakpoint.h (is_breakpoint): Change return type to bool.
5052 (is_watchpoint): Likewise.
5053 (is_catchpoint): Likewise.
5054 (is_tracepoint): Likewise.
5055
0d12e84c
TT
50562019-07-10 Tom Tromey <tom@tromey.com>
5057
5058 * defs.h: Don't include gdbarch.h.
5059 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5060 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5061 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5062 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5063 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5064 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5065 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5066 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5067 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5068 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5069 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5070 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5071 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5072 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5073 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5074 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5075 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5076 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5077 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5078 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5079 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5080 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5081 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5082 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5083 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5084 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5085 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5086
f06f1252
TT
50872019-07-10 Tom Tromey <tromey@adacore.com>
5088
5089 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5090 * breakpoint.c (init_ada_exception_breakpoint): Register as
5091 bp_catchpoint.
5092 (print_one_breakpoint_location, print_one_breakpoint): Use
5093 is_ada_exception_catchpoint.
5094 * ada-lang.c (class ada_catchpoint_location): Pass
5095 bp_loc_software_breakpoint to bp_location constructor.
5096 (is_ada_exception_catchpoint): New function.
5097
7a5d944b
TT
50982019-07-10 Tom Tromey <tromey@adacore.com>
5099
5100 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5101 VEC.
5102 (struct arm_exidx_entry): New method operator<.
5103 (struct arm_exidx_data) <section_maps>: Change type.
5104 (arm_exidx_data_free): Remove.
5105 (arm_exidx_data_key): Change type. Move lower.
5106 (arm_exidx_new_objfile): Update.
5107 (arm_compare_exidx_entries): Remove.
5108 (arm_find_exidx_entry, _initialize_arm_tdep)
5109
48c66e1d
TT
51102019-07-10 Tom Tromey <tromey@adacore.com>
5111
5112 * solib-spu.c (ocl_program_data_key): Change type.
5113 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5114 Update.
5115
a269fbf1
TT
51162019-07-10 Tom Tromey <tromey@adacore.com>
5117
5118 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5119 (struct solib_aix_inferior_data) <library_list>: Change type.
5120 (solib_aix_inferior_data_handle): Change type.
5121 (get_solib_aix_inferior_data): Update.
5122 (solib_aix_free_library_list): Remove.
5123 (library_list_start_library): Update.
5124 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5125 return type.
5126 (solib_aix_get_library_list)
5127 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5128 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5129
c294730c
TT
51302019-07-10 Tom Tromey <tromey@adacore.com>
5131
5132 * solib-dsbt.c (struct dsbt_info): Add initializers.
5133 (solib_dsbt_pspace_data): Change type.
5134 (dsbt_pspace_data_cleanup): Remove.
5135 (get_dsbt_info, _initialize_dsbt_solib): Update.
5136
9d52077d
TT
51372019-07-10 Tom Tromey <tromey@adacore.com>
5138
5139 * spu-tdep.c (spu_overlay_data): Change type.
5140 (spu_get_overlay_table, spu_overlay_new_objfile)
5141 (_initialize_spu_tdep): Update.
5142
22a20dca
TT
51432019-07-10 Tom Tromey <tromey@adacore.com>
5144
5145 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5146 destructor.
5147 (dbx_objfile_data_key): Change type and declare later.
5148 (DBX_SYMFILE_INFO): Rewrite.
5149 * dbxread.c (dbx_objfile_data_key): Change type.
5150 (dbx_symfile_init): Update.
5151 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5152 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5153 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5154
cb60f420
TT
51552019-07-10 Tom Tromey <tromey@adacore.com>
5156
5157 * jit.c (jit_program_space_key): Change type. Move lower.
5158 (get_jit_program_space_data): Update.
5159 (jit_program_space_data_cleanup): Remove.
5160 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5161 Update.
5162 (struct jit_program_space_data): Add initializers.
5163
51df2ae3
TT
51642019-07-10 Tom Tromey <tromey@adacore.com>
5165
5166 * solib-darwin.c (struct darwin_info): Add initializers.
5167 (solib_darwin_pspace_data): Change type.
5168 (darwin_pspace_data_cleanup): Remove.
5169 (get_darwin_info, _initialize_darwin_solib): Update.
5170
18101a35
TT
51712019-07-10 Tom Tromey <tromey@adacore.com>
5172
5173 * remote-sim.c (struct sim_inferior_data): Add initializers,
5174 constructor, and destructor.
5175 (sim_inferior_data_key): Change type. Move lower.
5176 (check_for_duplicate_sim_descriptor): Update.
5177 (get_sim_inferior_data): Use new. Update.
5178 (~sim_inferior_data_cleanup): Rename from
5179 sim_inferior_data_cleanup. Simplify.
5180 (gdbsim_close_inferior, simulator_command)
5181 (sim_command_completer, _initialize_remote_sim): Update.
5182 (next_pid, INITIAL_PID): Move earlier.
5183
05b08ac1
TT
51842019-07-10 Tom Tromey <tromey@adacore.com>
5185
5186 * python/python-internal.h (create_thread_object): Return
5187 gdbpy_ref.
5188 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5189 * python/py-inferior.c (struct threadlist_entry): Add
5190 constructor.
5191 <thread_obj>: Now a gdbpy_ref.
5192 (thread_to_thread_object): Update.
5193 (add_thread_object): Use new.
5194 (delete_thread_object): Use delete.
5195 (infpy_threads): Update.
5196 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5197 GIL.
5198
32372d80
TT
51992019-07-10 Tom Tromey <tromey@adacore.com>
5200
5201 * valops.c (value_cast): Specialize error message for Ada.
5202
5c458ae8
SM
52032019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5206
4c462cb0
SM
52072019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5210 bpstat_should_step): Return bool, adjust comments.
5211 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5212 bpstat_should_step): Likewise.
5213
89abbcc2
AH
52142019-07-10 Alan Hayward <alan.hayward@arm.com>
5215
5216 * features/Makefile: Use feature target descriptions for Arm.
5217 * features/arm/arm-core.c: Generate new file.
5218 * features/arm/arm-fpa.c: Likewise.
5219 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5220 * features/arm/arm-m-profile.c: Likewise.
5221 * features/arm/arm-vfpv2.c: Likewise.
5222 * features/arm/arm-vfpv3.c: Likewise.
5223 * features/arm/xscale-iwmmxt.c: Likewise.
5224 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5225
166a82be
AH
52262019-07-10 Alan Hayward <alan.hayward@arm.com>
5227
5228 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5229 ptrace earlier.
5230
9fb4c7e9
AH
52312019-07-10 Alan Hayward <alan.hayward@arm.com>
5232
5233 * features/aarch64-pauth.c: Regenerate.
5234
e2d0f980
SM
52352019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5236
5237 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5238 bool.
5239 (bpstat_what): Use false instead of 0.
5240
a38118e5
PA
52412019-07-09 Pedro Alves <palves@redhat.com>
5242
5243 * break-catch-throw.c (is_exception_catchpoint): New.
5244 * breakpoint.c (print_one_breakpoint_location): New parameter
5245 'raw_loc'. Handle it. Use
5246 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5247 looking at the breakpoint's type.
5248 (print_one_breakpoint): If handling "maint info breakpoints", also
5249 print locations of exception catchpoints.
5250 * breakpoint.h (is_exception_catchpoint): Declare.
5251
cb1e4e32
PA
52522019-07-09 Pedro Alves <palves@redhat.com>
5253
5254 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5255 "addr" field.
5256 (allocate_location_exception_catchpoint): New.
5257 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5258 (initialize_throw_catchpoint_ops): Install
5259 allocate_location_exception_catchpoint as allocate_location
5260 method.
5261 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5262 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5263 bp_loc_other.
5264 (breakpoint_address_is_meaningful): Delete.
5265 (bl_address_is_meaningful): New.
5266 (breakpoint_locations_match): Adjust comment.
5267 (bp_location_from_bp_type): New, factored out of...
5268 (bp_location::bp_location(breakpoint *)): ... this.
5269 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5270 factored out of...
5271 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5272 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5273 breakpoint_address_is_meaningful.
5274 (bp_locations_compare): Adjust comment.
5275 (update_global_location_list): Use bl_address_is_meaningful
5276 instead of breakpoint_address_is_meaningful.
5277 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5278 explicit.
5279 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5280 * python/py-breakpoint.c (bppy_get_location): No longer check
5281 whether location is null.
5282
b58a68fe
PA
52832019-07-09 Pedro Alves <palves@redhat.com>
5284
5285 PR c++/15468
5286 * breakpoint.c (print_one_breakpoint_location): Remove
5287 single-location assert.
5288
268a13a5
TT
52892019-07-09 Tom Tromey <tom@tromey.com>
5290
5291 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5292 * configure: Rebuild.
5293 * configure.ac: Change common to gdbsupport.
5294 * gdbsupport: Rename from common.
5295 * acinclude.m4: Change common to gdbsupport.
5296 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5297 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5298 gdbsupport.
5299 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5300 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5301 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5302 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5303 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5304 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5305 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5306 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5307 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5308 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5309 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5310 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5311 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5312 coff-pe-read.c, command.h, compile/compile-c-support.c,
5313 compile/compile-c.h, compile/compile-cplus-symbols.c,
5314 compile/compile-cplus-types.c, compile/compile-cplus.h,
5315 compile/compile-loc2c.c, compile/compile.c, completer.c,
5316 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5317 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5318 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5319 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5320 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5321 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5322 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5323 features/aarch64-core.c, features/aarch64-fpu.c,
5324 features/aarch64-pauth.c, features/aarch64-sve.c,
5325 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5326 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5327 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5328 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5329 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5330 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5331 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5332 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5333 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5334 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5335 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5336 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5337 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5338 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5339 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5340 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5341 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5342 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5343 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5344 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5345 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5346 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5347 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5348 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5349 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5350 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5351 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5352 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5353 minsyms.c, mips-linux-tdep.c, namespace.h,
5354 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5355 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5356 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5357 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5358 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5359 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5360 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5361 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5362 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5363 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5364 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5365 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5366 procfs.c, producer.c, progspace.h, psymtab.h,
5367 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5368 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5369 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5370 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5371 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5372 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5373 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5374 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5375 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5376 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5377 target-memory.c, target.c, target.h, target/waitstatus.c,
5378 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5379 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5380 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5381 unittests/array-view-selftests.c,
5382 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5383 unittests/common-utils-selftests.c,
5384 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5385 unittests/format_pieces-selftests.c,
5386 unittests/function-view-selftests.c,
5387 unittests/lookup_name_info-selftests.c,
5388 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5389 unittests/mkdir-recursive-selftests.c,
5390 unittests/observable-selftests.c,
5391 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5392 unittests/parse-connection-spec-selftests.c,
5393 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5394 unittests/scoped_fd-selftests.c,
5395 unittests/scoped_mmap-selftests.c,
5396 unittests/scoped_restore-selftests.c,
5397 unittests/string_view-selftests.c, unittests/style-selftests.c,
5398 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5399 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5400 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5401 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5402 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5403 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5404
5b0e2db4
AB
54052019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5406
5407 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5408 bool value.
5409 (decode_digits_ordinary): Set explicit_line field in sal.
5410 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5411 symtab_and_line that was set on an explicit line number in
5412 assembler code. Do always update the recorded symtab and line if
5413 we do skip the prologue.
5414
0ba852ab
AB
54152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * breakpoint.c (set_breakpoint_location_function): Remove
5418 explicit_loc parameter.
5419 (momentary_breakpoint_from_master): Update call to
5420 set_breakpoint_location_function.
5421 (add_location_to_breakpoint): Likewise.
5422
b3a7d171
AB
54232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5424
5425 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5426 required features based on default bfd type when no specific bfd
5427 is present.
5428
1f6f6e21
PW
54292019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5430
5431 * NEWS: Mention that GDB printf and eval commands can now print
5432 C-style and Ada-style convenience var strings without
5433 calling the inferior.
5434 * printcmd.c (printf_c_string): Locally print GDB internal var
5435 instead of transiting via the inferior.
5436 (printf_wide_c_string): Likewise.
5437
54382019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5439
5862c886 5440 PR breakpoints/25011
ea142fbf
AH
5441 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5442
0598af48
TT
54432019-07-04 Tom Tromey <tom@tromey.com>
5444
5445 PR tui/24724:
5446 * tui/tui-winsource.c (tui_clear_source_content): Update.
5447 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5448 (tui_update_breakpoint_info): Update.
5449 (tui_set_exec_info_content): Update.
5450 * tui/tui-source.c (tui_set_source_content_nil): Update.
5451 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5452 has_break.
5453 * tui/tui-data.h (enum tui_bp_flag): New.
5454 (tui_bp_flags): New enum flags type.
5455 (struct tui_source_element) <break_mode>: Change type. Rename
5456 from has_break.
5457 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5458 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5459 constants.
5460 * tui/tui-winsource.h: Fix comment.
5461
350fab54
AH
54622019-07-04 Alan Hayward <alan.hayward@arm.com>
5463
5464 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5465 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5466 (store_fpregs_to_thread)
5467 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5468 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5469 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5470 (IWMMXT_REGS_SIZE): Add define.
5471 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5472 (fetch_vfp_regs, store_vfp_regs)
5473 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5474 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5475
f0452268
AH
54762019-07-04 Alan Hayward <alan.hayward@arm.com>
5477
5478 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5479 defines.
5480 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5481 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5482 (ARM_INT_REGISTER_SIZE): ...to this.
5483 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5484 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5485 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5486 (arm_linux_collect_gregset, supply_nwfpe_register)
5487 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5488 defines.
5489 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5490 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5491 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5492 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5493 (arm_return_in_memory, arm_store_return_value)
5494 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5495 (arm_record_ld_st_multiple): Likewise.
5496 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5497 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5498
e935475c
AH
54992019-07-04 Alan Hayward <alan.hayward@arm.com>
5500
5501 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5502 AARCH64_DISPLACED_MODIFIED_INSNS.
5503 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5504 (aarch64_displaced_step_copy_insn): Likewise.
5505 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5506 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5507 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5508 ARM_DISPLACED_MODIFIED_INSNS.
5509 * arm-tdep.c (arm_gdbarch_init): Likewise.
5510 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5511 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5512 (struct arm_displaced_step_closure): Use
5513 ARM_DISPLACED_MODIFIED_INSNS.
5514
df0bb381
AH
55152019-07-04 Alan Hayward <alan.hayward@arm.com>
5516
5517 * features/Makefile: Remove unused xml files.
5518 * features/aarch64.xml: Remove.
5519 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5520 * features/i386/amd64-avx-avx512.xml: Remove.
5521 * features/i386/amd64-avx-linux.xml: Remove.
5522 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5523 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5524 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5525 * features/i386/amd64-avx-mpx.xml: Remove.
5526 * features/i386/amd64-avx.xml: Remove.
5527 * features/i386/amd64-linux.xml: Remove.
5528 * features/i386/amd64-mpx-linux.xml: Remove.
5529 * features/i386/amd64-mpx.xml: Remove.
5530 * features/i386/amd64.xml: Remove.
5531 * features/i386/i386-avx-avx512-linux.xml: Remove.
5532 * features/i386/i386-avx-avx512.xml: Remove.
5533 * features/i386/i386-avx-linux.xml: Remove.
5534 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5535 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5536 * features/i386/i386-avx-mpx-linux.xml: Remove.
5537 * features/i386/i386-avx-mpx.xml: Remove.
5538 * features/i386/i386-avx.xml: Remove.
5539 * features/i386/i386-linux.xml: Remove.
5540 * features/i386/i386-mmx-linux.xml: Remove.
5541 * features/i386/i386-mmx.xml: Remove.
5542 * features/i386/i386-mpx-linux.xml: Remove.
5543 * features/i386/i386-mpx.xml: Remove.
5544 * features/i386/i386.xml: Remove.
5545 * features/i386/x32-avx-avx512-linux.xml: Remove.
5546 * features/i386/x32-avx-linux.xml: Remove.
5547 * features/i386/x32-linux.xml: Remove.
5548
edd6266a
AH
55492019-07-04 Alan Hayward <alan.hayward@arm.com>
5550
5551 * regformats/aarch64.dat: Remove.
5552 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5553 * regformats/i386/amd64-avx-linux.dat: Remove.
5554 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5555 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5556 * regformats/i386/amd64-linux.dat: Remove.
5557 * regformats/i386/amd64-mpx-linux.dat: Remove.
5558 * regformats/i386/amd64.dat: Remove.
5559 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5560 * regformats/i386/i386-avx-linux.dat: Remove.
5561 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5562 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5563 * regformats/i386/i386-linux.dat: Remove.
5564 * regformats/i386/i386-mmx-linux.dat: Remove.
5565 * regformats/i386/i386-mpx-linux.dat: Remove.
5566 * regformats/i386/i386.dat: Remove.
5567 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5568 * regformats/i386/x32-avx-linux.dat: Remove.
5569 * regformats/i386/x32-linux.dat: Remove.
5570
2b40fda7
AH
55712019-07-04 Alan Hayward <alan.hayward@arm.com>
5572
5573 * aarch64-tdep.c: Remove xml self tests.
5574 * amd64-linux-tdep.c: Likewise.
5575 * amd64-tdep.c: Likewise.
5576 * i386-linux-tdep.c: Likewise.
5577 * i386-tdep.c: Likewise.
5578
5f4ba3e7
PA
55792019-07-03 Pedro Alves <palves@redhat.com>
5580
5581 PR cli/24732
5582 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5583 (pipe_cmd_option_defs): New.
5584 (make_pipe_cmd_options_def_group): New.
5585 (pipe_command): Use gdb::option::process_options.
5586 (pipe_command_completer): New function.
5587 (_initialize_cli_cmds): Install completer for "pipe" command.
5588
3d9be6f5
PA
55892019-07-03 Pedro Alves <palves@redhat.com>
5590
5591 * cli/cli-option.c (union option_value) <string>: New field.
5592 (struct option_def_and_value): Add ctor, move ctor, dtor and
5593 use DISABLE_COPY_AND_ASSIGN.
5594 (option_def_and_value::clear_value): New.
5595 (parse_option, save_option_value_in_ctx, get_val_type_str)
5596 (add_setshow_cmds_for_options): Handle var_string.
5597 * cli-option.h (union option_def::var_address) <string>: New
5598 field.
5599 (struct string_option_def): New.
5600 * maint-test-options.c (struct test_options_opts): Add default
5601 ctor and use DISABLE_COPY_AND_ASSIGN.
5602 <string_opt>: New field.
5603 (test_options_opts::~test_options_opts): New.
5604 (test_options_opts::dump): Also dump "-string".
5605 (test_options_option_defs): Install "string.
5606
41fc454c
PA
56072019-07-03 Pedro Alves <palves@redhat.com>
5608
5609 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5610 option_value with a null enumeration.
5611 (complete_options): Save the option values in the context.
5612 (save_option_value_in_ctx): New, factored out from ...
5613 (process_options): ... here.
5614 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5615 of the function.
5616 * maint-test-options.c (test_options_opts::dump): New, factored
5617 out from ...
5618 (maintenance_test_options_command_mode): ... here.
5619 (maintenance_test_options_command_completion_result): Delete.
5620 (maintenance_test_options_command_completion_text): Update
5621 comment.
5622 (maintenance_show_test_options_completion_result): Change
5623 prototype. Just print
5624 maintenance_test_options_command_completion_text.
5625 (save_completion_result): New.
5626 (maintenance_test_options_completer_mode): Pass options context to
5627 complete_options, and then save a dump.
5628 (_initialize_maint_test_options): Use add_cmd to install "maint
5629 show test-options-completion-result".
5630
fdbc9870
PA
56312019-07-03 Pedro Alves <palves@redhat.com>
5632
5633 * NEWS (New commands): Mention "with" and "maint with".
5634 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5635 (with_command, with_command_completer): New.
5636 (pipe_command): Adjust to new repeat_previous
5637 interface.
5638 (_initialize_cli_cmds): Install the "with" command and its "w"
5639 alias.
5640 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5641 declarations.
5642 * cli/cli-setshow.c (parse_cli_var_uinteger)
5643 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5644 argument strings for all var_types.
5645 (get_setshow_command_value_string): New, factored out from ...
5646 (do_show_command): ... this.
5647 * cli/cli-setshow.h: Include <string>.
5648 (get_setshow_command_value_string): Declare.
5649 * command.h (repeat_previous): Now returns const char *. Adjust
5650 comment.
5651 * maint.c: Include "cli/cli-cmds.h".
5652 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5653 (_initialize_maint_cmds): Register the "maintenance with" command.
5654 * top.c (repeat_previous): Move bits from pipe_command here:
5655 Return the saved command line, if any; error out if there's no
5656 command to relaunch.
5657
c6ac8931
PA
56582019-07-03 Pedro Alves <palves@redhat.com>
5659
5660 * NEWS (New commands): Mention "maint set/show test-settings"
5661 instead of "maint test-settings".
5662 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5663 (maintenance_test_settings_set_list): Rename to ...
5664 (maintenance_set_test_settings_list): ... this.
5665 (maintenance_test_settings_show_list): Rename to ...
5666 (maintenance_show_test_settings_list): ... this.
5667 (maintenance_test_settings_cmd): Delete.
5668 (maintenance_test_settings_set_cmd): ...
5669 (maintenance_set_test_settings_cmd): ... this.
5670 (maintenance_test_settings_show_cmd): ...
5671 (maintenance_show_test_settings_cmd): ... this.
5672 (maintenance_test_settings_show_value_cmd):
5673 (maintenance_show_test_settings_value_cmd): ... this.
5674 (_initialize_maint_test_settings): No longer install the "maint
5675 test-settings" prefix command. Rename "maint test-settings set"
5676 to "maint set test-settings", and "maint test-settings show" to
5677 "maint show test-settings". Adjust all subcommands.
5678
d1fcf2fd
PA
56792019-07-03 Pedro Alves <palves@redhat.com>
5680
5681 * maint-test-settings.c: Fix file's intro comment. Replace all
5682 references to "test-options" with references to "test-settings",
5683 in comments.
5684
970f9d09
PA
56852019-07-03 Pedro Alves <palves@redhat.com>
5686
5687 * maint-test-settings.c (maintenance_test_settings_xxx)
5688 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5689 New.
5690 (maintenance_test_settings_enums): Use them.
5691 (maintenance_test_settings_enum): Default to
5692 maintenance_test_settings_xxx.
5693 (_initialize_maint_test_settings): Initialize
5694 MAINTENANCE_TEST_SETTINGS_FILENAME.
5695
f3869b1a
SM
56962019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * breakpoint.h (remove_breakpoints_inf): Change return type to
5699 void, move function documentation here.
5700 * breakpoint.c (remove_breakpoints_inf): Change return type to
5701 void, move function documentation to header.
5702
54d66006
PA
57032019-07-02 Pedro Alves <palves@redhat.com>
5704
5705 * NEWS (Completion improvements): Mention "info threads".
5706 * thread.c (struct info_threads_opts, info_threads_option_defs)
5707 (make_info_threads_options_def_group): New.
5708 (info_threads_command): Use gdb::option::process_options.
5709 (info_threads_command_completer): New.
5710 (_initialize_thread): Use gdb::option::build_help to build the
5711 help text for "info threads".
5712
854f6088
SM
57132019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5714
5715 * defs.h (generic_load): Move from here...
5716 * symfile.h (generic_load): ... to here. Rename name parameter
5717 to args.
5718 * symfile.c (generic_load): Add comment.
5719
54ee4252
TT
57202019-07-01 Tom Tromey <tromey@adacore.com>
5721
5722 * dwarf2read.c
5723 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5724 declaration of without_params. Fix formatting.
5725
65392b3e
TT
57262019-07-01 Tom Tromey <tromey@adacore.com>
5727
5728 * ada-exp.y (find_primitive_type): Update.
5729 * ada-lang.h (ada_lookup_symbol): Update.
5730 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5731 parameter.
5732 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5733
7d7571f0
SDJ
57342019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5735
5736 PR breakpoints/24541
5737 * gdbarch.c: Regenerate.
5738 * gdbarch.h: Regenerate.
5739 * gdbarch.sh: Add 'stap_adjust_register'.
5740 * i386-tdep.c: Include '<unordered_set>'.
5741 (i386_stap_adjust_register): New function.
5742 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5743 * stap-probe.c (stap_parse_register_operand): Call
5744 'gdbarch_stap_adjust_register'.
5745
5af5392a
SDJ
57462019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5747
5748 PR python/24742
5749 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5750 * python/python.c (do_start_initialization): Use 'xmalloc'
5751 instead of 'PyMem_Malloc'.
5752
10d06d82
TT
57532019-06-28 Tom Tromey <tromey@adacore.com>
5754
5755 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5756 for Ada.
5757
1b7f24cd
TT
57582019-06-27 Tom Tromey <tromey@adacore.com>
5759
5760 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5761 objfile_key.
5762 (arm_find_mapping_symbol, arm_record_special_symbol)
5763 (_initialize_arm_tdep): Update.
5764 (arm_objfile_data_free): Remove.
5765
3d507ff2
TT
57662019-06-27 Tom Tromey <tromey@adacore.com>
5767
5768 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5769 to cp_print_static_field.
5770
762c164d
TT
57712019-06-26 Tom Tromey <tromey@adacore.com>
5772
5773 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5774 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5775 declare.
5776
aa2f9bcf
AH
57772019-06-26 Alan Hayward <alan.hayward@arm.com>
5778
5779 * features/aarch64-core.c (create_feature_aarch64_core):
5780 Regenerate.
5781 * features/aarch64-core.xml: Add cpsr flags.
5782
3426ae57
AH
57832019-06-26 Alan Hayward <alan.hayward@arm.com>
5784
5785 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5786 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5787
4838e44c
SM
57882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5791 field.
5792 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5793 use.
5794 (arm_record_special_symbol): Don't insert new symbol in sorted
5795 position, push it at the end.
5796
54cc7474
SM
57972019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5800 (arm_mapping_symbol_s): Remove.
5801 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5802 (arm_mapping_symbol_vec): New typedef.
5803 (struct arm_per_objfile): Add constructor.
5804 <section_maps>: Change type to
5805 std::unique_ptr<arm_mapping_symbol_vec[]>.
5806 (arm_compare_mapping_symbols): Remove.
5807 (arm_find_mapping_symbol): Adjust to section_maps type change.
5808 (arm_objfile_data_free): Call delete on arm_per_objfile.
5809 (arm_record_special_symbol): Adjust to section_maps type change.
5810 Allocate arm_per_objfile with new.
5811
b65b566c
PW
58122019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5813
5814 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5815 with the command prefix.
5816
c2fc64f5
TT
58172019-06-25 Tom Tromey <tom@tromey.com>
5818
5819 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5820 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5821
fb54fa76
TT
58222019-06-25 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5825 type.
5826 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5827 protected.
5828
f7952c57
TT
58292019-06-25 Tom Tromey <tom@tromey.com>
5830
5831 * tui/tui-winsource.c
5832 (tui_source_window_base::set_is_exec_point_at): Add check against
5833 LOA_ADDRESS.
5834
17568d78
TT
58352019-06-25 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-source.c (tui_set_source_content): Don't check before
5838 xfree.
5839 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5840
53e7cdba
TT
58412019-06-25 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-winsource.h (tui_update_source_window_as_is)
5844 (tui_alloc_source_buffer, tui_line_is_displayed)
5845 (tui_addr_is_displayed): Change type of win_info.
5846 * tui/tui-winsource.c (tui_update_source_window_as_is)
5847 (tui_clear_source_content, tui_show_source_line)
5848 (tui_show_source_content, tui_source_window_base::refill)
5849 (tui_source_window_base::set_is_exec_point_at)
5850 (tui_source_window_base::set_is_exec_point_at)
5851 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5852 (tui_alloc_source_buffer, tui_line_is_displayed)
5853 (tui_addr_is_displayed): Change type of win_info. Update.
5854 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5855 (tui_source_window_base::do_make_visible_with_new_height):
5856 Update.
5857 * tui/tui-source.c (tui_set_source_content)
5858 (tui_set_source_content_nil)
5859 (tui_source_window::do_scroll_vertical): Update.
5860 * tui/tui-layout.c (show_layout): Update.
5861 * tui/tui-disasm.c (tui_set_disassem_content)
5862 (tui_disasm_window::do_scroll_vertical): Update.
5863 * tui/tui-data.h (tui_win_content): Remove.
5864 (struct tui_gen_win_info) <content, content_size>: Remove.
5865 (struct tui_source_element): Add initializers and destructor.
5866 (union tui_which_element, struct tui_win_element): Remove.
5867 (struct tui_source_window_base) <content>: New field.
5868 (struct tui_data_window): Remove destructor.
5869 (tui_alloc_content, tui_free_win_content)
5870 (tui_free_all_source_wins_content): Don't declare.
5871 * tui/tui-data.c (tui_initialize_static_data): Update.
5872 (init_content_element, tui_alloc_content): Remove.
5873 (~tui_gen_win_info): Update.
5874 (~tui_data_window, tui_free_all_source_wins_content)
5875 (tui_free_win_content, free_content, free_content_elements):
5876 Remove.
5877
7908abbf
TT
58782019-06-25 Tom Tromey <tom@tromey.com>
5879
5880 * tui/tui-winsource.h (tui_clear_source_content)
5881 (tui_erase_source_content, tui_show_source_content): Change type
5882 of win_info.
5883 * tui/tui-winsource.c (tui_clear_source_content)
5884 (tui_erase_source_content, tui_show_source_content): Change type
5885 of win_info.
5886 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5887 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5888 win_info.
5889 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5890 win_info.
5891 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5892
02c28df0
TT
58932019-06-25 Tom Tromey <tom@tromey.com>
5894
5895 * tui/tui-winsource.c (tui_clear_source_content)
5896 (tui_source_window_base::set_is_exec_point_at): Update.
5897 * tui/tui-source.c (tui_set_source_content_nil): Update.
5898 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5899 a bool.
5900 * tui/tui-data.c (init_content_element): Update.
5901
6658b1bf
TT
59022019-06-25 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5905 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5906 * tui/tui-layout.c (init_and_make_win): Update.
5907 * tui/tui.h (enum tui_win_type): Update.
5908 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5909 tui_win_is_auxillary.
5910 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5911 tui_win_is_auxillary.
5912
21e1c91e
TT
59132019-06-25 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5916 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5917 (tui_delete_data_content_windows, tui_display_all_data)
5918 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5919 Update.
5920 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5921 * tui/tui-regs.c (tui_last_regs_line_no)
5922 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5923 (tui_show_registers): Update.
5924 (tui_show_register_group): Return void. Update.
5925 (tui_display_registers_from, tui_display_reg_element_at_line)
5926 (tui_display_registers_from_line, tui_check_register_values):
5927 Update.
5928 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5929 member.
5930 (struct tui_data_window) <regs_content>: Now a std::vector.
5931 <regs_content_count>: Remove.
5932 (tui_add_content_elements, tui_free_data_content): Don't declare.
5933 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5934 (init_content_element): Remove DATA_WIN case. Add assert.
5935 (tui_add_content_elements): Remove.
5936 (tui_data_window): Update.
5937 (tui_free_data_content): Remove.
5938 (free_content_elements): Remove DATA_WIN case.
5939
115ac53b
TT
59402019-06-25 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-data.c (tui_data_item_window): Update.
5943 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5944 * tui/tui-windata.c (tui_display_all_data)
5945 (tui_display_data_from_line): Update.
5946 (tui_check_data_values): Remove.
5947 * tui/tui-regs.c (tui_show_register_group)
5948 (tui_display_reg_element_at_line): Update.
5949 * tui/tui-hooks.c (tui_register_changed)
5950 (tui_refresh_frame_and_register_information): Call
5951 tui_check_register_values.
5952 * tui/tui-data.h (struct tui_data_window) <data_content,
5953 data_content_count, data_type>: Remove.
5954 (enum tui_data_type): Remove.
5955
5956 * tui/tui-data.c (tui_data_window::clear_detail)
5957 (~tui_data_window): Update.
5958
eaf9738b
TT
59592019-06-25 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5962 declare.
5963 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5964 Rename from tui_first_data_item_displayed. Update.
5965 (tui_data_window::refresh_all)
5966 (tui_data_window::do_scroll_vertical): Update.
5967 * tui/tui-data.h (struct tui_data_window)
5968 <first_data_item_displayed>: Declare new method.
5969
31ca4723
TT
59702019-06-25 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5973 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5974 contents...
5975 (tui_initialize_static_data): ...here.
5976
41bcff7f
TT
59772019-06-25 Tom Tromey <tom@tromey.com>
5978
5979 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5980 (tui_display_registers_from, tui_check_register_values): Update.
5981 (tui_display_register): Remove win_info parameter; update.
5982 (tui_get_register): Change type of parameters.
5983 * tui/tui-data.h (struct tui_data_element): Remove.
5984 (union tui_which_element) <data>: Remove.
5985 <data_window>: Change type.
5986 (struct tui_data_item_window): New.
5987 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5988 case. Add assert.
5989 (~tui_data_item_window): New destructor.
5990 (free_content_elements): Remove DATA_ITEM_WIN case.
5991
d2802c33
TT
59922019-06-25 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5995 Remove.
5996
dd835f8b
TT
59972019-06-25 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-data.h (struct tui_command_element): Remove.
6000 (union tui_which_element) <command>: Remove.
6001 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6002 assert.
6003 (free_content_elements): Remove CMD_WIN case.
6004
bd7db367
TT
60052019-06-25 Tom Tromey <tom@tromey.com>
6006
6007 * tui/tui-layout.c (tui_set_layout): Update.
6008 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6009 * tui/tui-data.c (layout_def): Update.
6010
3add462f
TT
60112019-06-25 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6014 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6015 (tui_source_window_base::set_new_height): Update.
6016 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6017 Update.
6018 (tui_set_locator_fullname, tui_set_locator_info)
6019 (tui_show_frame_info): Update.
6020 * tui/tui-source.c (tui_set_source_content)
6021 (tui_source_is_displayed): Update.
6022 * tui/tui-layout.c (show_source_disasm_command, show_data)
6023 (show_source_or_disasm_and_command): Update.
6024 * tui/tui-disasm.c (tui_set_disassem_content)
6025 (tui_get_begin_asm_address): Update.
6026 * tui/tui-data.h (struct tui_locator_element): Remove.
6027 (union tui_which_element) <locator>: Remove.
6028 (struct tui_locator_window): New.
6029 (tui_locator_win_info_ptr): Change return type.
6030 * tui/tui-data.c (_locator): Change type.
6031 (tui_locator_win_info_ptr): Change return type.
6032 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6033 (tui_alloc_content): Add assert.
6034
489e9d8b
TT
60352019-06-25 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-winsource.c
6038 (tui_exec_info_window::maybe_allocate_content): New method.
6039 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6040 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6041 (make_source_or_disasm_window): Add cast.
6042 * tui/tui-data.h (union tui_which_element) <simple_string>:
6043 Remove.
6044 (struct tui_source_info): New.
6045 (struct tui_source_window_base) <execution_info>: Change type.
6046 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6047 case, and add assert.
6048 (tui_alloc_content): Add assert.
6049
c3fabb7d
TT
60502019-06-25 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6053 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6054 * tui/tui-data.c (tui_alloc_win_info): Remove.
6055
bbc228ee
TT
60562019-06-25 Tom Tromey <tom@tromey.com>
6057
6058 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6059 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6060 can_highlight.
6061
5fcee43a
TT
60622019-06-25 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6065 make_visible_with_new_height method.
6066 (tui_win_info::make_visible_with_new_height): New method.
6067 (tui_source_window_base::do_make_visible_with_new_height)
6068 (tui_data_window::do_make_visible_with_new_height)
6069 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6070 (make_visible_with_new_height): Remove.
6071 (tui_resize_all, tui_adjust_win_heights): Use
6072 make_visible_with_new_height method.
6073 * tui/tui-data.h (struct tui_win_info)
6074 <do_make_visible_with_new_height, make_visible_with_new_height>:
6075 New methods.
6076 (struct tui_source_window_base, struct tui_data_window)
6077 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6078 methods.
6079
d83f1fe6
TT
60802019-06-25 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6083 method.
6084 (update_tab_width): Call update_tab_width method.
6085 * tui/tui-data.h (struct tui_win_info)
6086 (struct tui_source_window_base) <update_tab_width>: New methods.
6087
17374de4
TT
60882019-06-25 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6091 parameter.
6092 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6093 parameter.
6094 (tui_gen_win_info::make_visible): Update.
6095 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6096 parameter.
6097 * tui/tui-data.h (enum tui_box): New enum.
6098 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6099
f936bca2
TT
61002019-06-25 Tom Tromey <tom@tromey.com>
6101
6102 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6103 init_and_make_win for EXEC_INFO_WIN.
6104 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6105 longer inline.
6106 (struct tui_win_info) <~tui_win_info>: Inline.
6107 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6108 Don't declare.
6109 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6110 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6111 Remove.
6112 (tui_initialize_static_data): Update.
6113 (~tui_gen_win_info): Handle more cleanup here.
6114 (~tui_source_window_base): Delete "execution_info".
6115 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6116
d6ba6a11
TT
61172019-06-25 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-layout.c (make_command_window): Don't set
6120 can_highlight.
6121 (show_source_disasm_command): Call the reset method.
6122 (show_data): Don't set can_highlight. Call the reset method.
6123 (tui_gen_win_info::reset): Rename from init_gen_win_info
6124 (init_and_make_win): Simplify. Return tui_gen_win_info.
6125 (show_source_or_disasm_and_command): Call the reset method.
6126 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6127 (struct tui_cmd_window): Set can_highlight.
6128
48a3bd16
TT
61292019-06-25 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6132 from make_visible.
6133 (tui_make_visible, tui_make_invisible): Rewrite.
6134 (tui_win_info::make_visible): Remove.
6135 (tui_source_window_base::make_visible): Update.
6136 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6137 method. Moved from...
6138 (struct tui_win_info) <make_visible>: ...here.
6139
c3bd716f
TT
61402019-06-25 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-winsource.c
6143 (tui_source_window_base::do_scroll_horizontal): Remove direction
6144 parameter.
6145 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6146 direction parameter.
6147 * tui/tui-win.c (tui_win_info::forward_scroll)
6148 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6149 (tui_win_info::right_scroll): Update.
6150 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6151 direction parameter.
6152 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6153 direction parameter.
6154 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6155 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6156 Remove direction parameter.
6157 (struct tui_source_window_base, struct tui_source_window)
6158 (struct tui_disasm_window, struct tui_data_window)
6159 (struct tui_cmd_window): Update.
6160
21c32dca
TT
61612019-06-25 Tom Tromey <tom@tromey.com>
6162
6163 * tui/tui-winsource.h (tui_set_exec_info_content)
6164 (tui_show_exec_info_content, tui_erase_exec_info_content)
6165 (tui_clear_exec_info_content, tui_update_exec_info): Change
6166 argument to tui_source_window_base.
6167 * tui/tui-winsource.c (tui_set_exec_info_content)
6168 (tui_show_exec_info_content, tui_erase_exec_info_content)
6169 (tui_clear_exec_info_content, tui_update_exec_info): Change
6170 argument to tui_source_window_base.
6171
73fbdc65
TT
61722019-06-25 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6175 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6176
33325343
TT
61772019-06-25 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6180 check.
6181
29d2c474
TT
61822019-06-25 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6185 type to void.
6186 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6187 type to void.
6188 * tui/tui-source.c (tui_set_source_content): Update.
6189 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6190
152f3f4b
TT
61912019-06-25 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-win.c (window_name_completer, tui_set_focus)
6194 (tui_all_windows_info): Use name method.
6195 * tui/tui-data.h (struct tui_gen_win_info)
6196 (struct tui_source_window, struct tui_disasm_window)
6197 (struct tui_data_window, struct tui_cmd_window) <name>: New
6198 method.
6199 (tui_win_name): Don't declare.
6200 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6201 (tui_win_name): Remove.
6202
be4da588
TT
62032019-06-25 Tom Tromey <tom@tromey.com>
6204
6205 * tui/tui-winsource.h (tui_update_source_window)
6206 (tui_update_source_window_as_is): Change parameter type.
6207 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6208 to be a tui_source_window_base.
6209 (tui_update_source_window_as_is): Likewise.
6210 * tui/tui-win.c (make_visible_with_new_height): Update.
6211
5b81daba
TT
62122019-06-25 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-winsource.c (tui_erase_source_content)
6215 (tui_show_source_content, tui_show_exec_info_content)
6216 (tui_erase_exec_info_content): Use refresh_window method.
6217 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6218 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6219 from tui_refresh_win.
6220 (tui_data_window::refresh_window): New method.
6221 (tui_win_info::refresh, tui_source_window_base::refresh)
6222 (tui_refresh_all): Use refresh_window method.
6223 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6224 method.
6225 * tui/tui-regs.c (tui_display_register): Call refresh_window
6226 method.
6227 * tui/tui-layout.c (show_source_disasm_command)
6228 (show_source_or_disasm_and_command): Call refresh_window method.
6229 * tui/tui-data.h (struct tui_gen_win_info)
6230 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6231 New method.
6232
cb2ce893
TT
62332019-06-25 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui.c (tui_rl_other_window, tui_enable)
6236 (tui_is_window_visible, tui_get_command_dimension): Update.
6237 * tui/tui-winsource.c (tui_update_source_window_as_is)
6238 (tui_clear_source_content, tui_erase_source_content)
6239 (tui_show_source_line, tui_source_window_base::refill)
6240 (tui_source_window_base::do_scroll_horizontal)
6241 (tui_source_window_base::set_is_exec_point_at)
6242 (tui_update_breakpoint_info, tui_set_exec_info_content)
6243 (tui_alloc_source_buffer, tui_line_is_displayed)
6244 (tui_addr_is_displayed): Update.
6245 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6246 (tui_check_and_display_highlight_if_needed)
6247 (tui_win_info::make_visible, tui_win_info::refresh)
6248 (tui_refresh_all): Update.
6249 * tui/tui-windata.c (tui_first_data_item_displayed)
6250 (tui_delete_data_content_windows, tui_erase_data_content)
6251 (tui_display_all_data, tui_data_window::refresh_all)
6252 (tui_check_data_values): Update.
6253 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6254 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6255 (tui_win_info::backward_scroll, tui_refresh_all_win)
6256 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6257 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6258 (tui_source_window_base::set_new_height)
6259 (tui_data_window::set_new_height)
6260 (make_invisible_and_set_new_height)
6261 (make_visible_with_new_height, new_height_ok)
6262 (parse_scrolling_args): Update.
6263 * tui/tui-stack.c (tui_show_frame_info): Update.
6264 * tui/tui-source.c (tui_set_source_content)
6265 (tui_set_source_content_nil, tui_source_is_displayed)
6266 (tui_source_window::do_scroll_vertical): Update.
6267 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6268 (tui_display_registers_from, tui_display_reg_element_at_line)
6269 (tui_check_register_values, tui_reg_command): Update.
6270 * tui/tui-layout.c (tui_default_win_height)
6271 (show_source_disasm_command, show_data, init_and_make_win)
6272 (show_source_or_disasm_and_command): Update.
6273 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6274 (tui_redisplay_readline, tui_mld_flush)
6275 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6276 (tui_getc): Update.
6277 * tui/tui-disasm.c (tui_set_disassem_content)
6278 (tui_disasm_window::do_scroll_vertical): Update.
6279 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6280 Now virtual.
6281 (struct tui_win_info): Derive from tui_gen_win_info.
6282 <~tui_win_info>: Mark as override.
6283 <generic>: Remove member.
6284 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6285 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6286 (~tui_data_window, ~tui_win_info)
6287 (tui_free_all_source_wins_content): Update.
6288 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6289
ab313b35
TT
62902019-06-25 Tom Tromey <tom@tromey.com>
6291
6292 * tui/tui-layout.c (init_and_make_win): Use new.
6293 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6294 destructor, initializers.
6295 (tui_alloc_generic_win_info): Don't declare.
6296 * tui/tui-data.c (_locator): Add argument to constructor.
6297 (source_win, disasm_win): New globals.
6298 (exec_info): Remove.
6299 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6300 Update.
6301 (tui_alloc_generic_win_info): Remove.
6302 (init_content_element): Use new.
6303 (tui_win_info::tui_win_info): Update.
6304 (free_content_elements) <case DATA_WIN>: Use delete.
6305
dc2c33e4
TT
63062019-06-25 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6309 * tui/tui-windata.c (tui_first_data_item_displayed)
6310 (tui_delete_data_content_windows): Update.
6311 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6312 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6313 (tui_display_registers_from, tui_check_register_values): Update.
6314 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6315 pointer.
6316 * tui/tui-data.c (init_content_element): Update. Allocate the new
6317 window.
6318 (tui_free_data_content): Update.
6319 (free_content_elements) <case DATA_WIN>: Free the window.
6320
214a5cbe
TT
63212019-06-25 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6324 Update.
6325 * tui/tui-layout.c (make_command_window)
6326 (show_source_disasm_command, show_data, init_and_make_win)
6327 (show_source_or_disasm_and_command): Update.
6328 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6329 method.
6330 <can_highight, is_highlighted>: Now bool.
6331 (tui_set_win_highlight): Don't declare.
6332 * tui/tui-data.c (tui_set_win_highlight): Remove.
6333
8e2daf15
TT
63342019-06-25 Tom Tromey <tom@tromey.com>
6335
6336 * tui/tui-wingeneral.c (make_visible): Remove check of window
6337 type.
6338
8903bd8a
TT
63392019-06-25 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-win.c (tui_win_info::max_height)
6342 (tui_cmd_window::max_height): New methods.
6343 (new_height_ok): Call max_height.
6344 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6345 <max_height>: New method.
6346
3f02ce1e
TT
63472019-06-25 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui-win.c (tui_source_window_base::set_new_height)
6350 (tui_data_window::set_new_height): New methods.
6351 (make_invisible_and_set_new_height): Call set_new_height method.
6352 * tui/tui-data.h (struct tui_win_info)
6353 (struct tui_source_window_base, struct tui_data_window)
6354 <set_new_height>: New method.
6355
1825f487
TT
63562019-06-25 Tom Tromey <tom@tromey.com>
6357
6358 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6359 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6360 tui_refresh_data_win.
6361 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6362 method.
6363 (tui_refresh_all_win): Call the refresh_all method.
6364 (tui_set_focus): Likewise.
6365 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6366 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6367 Likewise.
6368
ad54d15b
TT
63692019-06-25 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-winsource.h (tui_refill_source_window)
6372 (tui_set_is_exec_point_at): Don't declare.
6373 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6374 (tui_source_window_base::refill): Rename from
6375 tui_refill_source_window.
6376 (tui_source_window_base::do_scroll_horizontal): Update.
6377 (tui_source_window_base::set_is_exec_point_at): Rename from
6378 tui_set_is_exec_point_at.
6379 (tui_update_all_breakpoint_info): Update.
6380 * tui/tui-stack.c (tui_show_frame_info): Update.
6381 * tui/tui-layout.c (show_data): Add cast.
6382 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6383 * tui/tui-data.h (struct tui_source_window_base) <refill,
6384 set_is_exec_point_at>: New methods.
6385 (tui_source_windows, tui_add_to_source_windows): Update types.
6386 (tui_add_to_source_windows): Remove redundant declaration.
6387 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6388 (tui_source_windows): Change return type.
6389 (tui_clear_source_windows_detail): Update.
6390 (tui_add_to_source_windows): Change type of parameter.
6391 (tui_free_all_source_wins_content): Update.
6392
2042b506
TT
63932019-06-25 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-wingeneral.c (tui_win_info::refresh)
6396 (tui_source_window_base::refresh): New methods.
6397 (tui_refresh_all): Call the refresh method.
6398 * tui/tui-data.h (struct tui_win_info)
6399 (struct tui_source_window_base) <refresh>: New method.
6400
56122977
TT
64012019-06-25 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui.h (tui_is_window_visible): Return bool.
6404 * tui/tui.c (tui_is_window_visible): Return bool.
6405 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6406 (tui_make_visible, tui_make_invisible)
6407 (tui_win_info::make_visible)
6408 (tui_source_window_base::make_visible, make_all_visible)
6409 (tui_make_all_visible, tui_make_all_invisible): Update.
6410 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6411 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6412 bool.
6413 (struct tui_win_info, struct tui_source_window_base)
6414 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6415 * tui/tui-data.c (tui_init_generic_part): Update.
6416
cda37efb
TT
64172019-06-25 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6420 (tui_source_window_base::make_visible): New methods.
6421 (make_all_visible): Make method call.
6422 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6423 (struct tui_source_window_base, struct tui_cmd_window): Override
6424 make_visible.
6425 (tui_win_is_source_type): Don't declare.
6426 * tui/tui-data.c (tui_win_is_source_type): Remove.
6427
6a0ee02c
TT
64282019-06-25 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6431 NULL check.
6432
63901aec
TT
64332019-06-25 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6436 Inline constructor. Add initializers for members.
6437 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6438 constructors; now inline in class.
6439
ceb13a13
TT
64402019-06-25 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-regs.c (tui_show_registers): Update.
6443 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6444 bool.
6445 * tui/tui-data.c (tui_data_window::clear_detail)
6446 (tui_data_window): Update.
6447
238eb706
TT
64482019-06-25 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-windata.c (tui_display_all_data)
6451 (tui_display_data_from_line, tui_display_data_from)
6452 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6453 Update.
6454 * tui/tui-regs.c (tui_last_regs_line_no)
6455 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6456 (tui_show_registers, tui_show_register_group)
6457 (tui_display_registers_from, tui_display_reg_element_at_line)
6458 (tui_display_registers_from_line, tui_check_register_values)
6459 (tui_reg_next, tui_reg_prev): Update.
6460 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6461 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6462 tui_data_window.
6463 (struct tui_win_info) <detail>: Remove. Add new fields from
6464 tui_data_info.
6465 (TUI_DATA_WIN): Add cast.
6466 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6467 (~tui_data_window): Simplify.
6468
81491aa0
TT
64692019-06-25 Tom Tromey <tom@tromey.com>
6470
6471 * tui/tui-layout.c (show_source_disasm_command)
6472 (show_source_or_disasm_and_command): Update.
6473 * tui/tui-io.c (update_cmdwin_start_line)
6474 (tui_redisplay_readline): Update.
6475 * tui/tui-data.h (struct tui_command_info): Remove.
6476 (struct tui_win_info) <detail>: Remove command_info member.
6477 (struct tui_data_window) <start_line>: New member, from
6478 tui_command_info.
6479 (TUI_CMD_WIN): Add casts.
6480
e6e41501
TT
64812019-06-25 Tom Tromey <tom@tromey.com>
6482
6483 * tui/tui-winsource.c (tui_update_source_window)
6484 (tui_refill_source_window)
6485 (tui_source_window_base::do_scroll_horizontal)
6486 (tui_update_breakpoint_info, tui_set_exec_info_content)
6487 (tui_show_exec_info_content, tui_erase_exec_info_content)
6488 (tui_clear_exec_info_content): Update.
6489 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6490 Update.
6491 * tui/tui-win.c (make_invisible_and_set_new_height)
6492 (make_visible_with_new_height): Update.
6493 * tui/tui-source.c (tui_set_source_content)
6494 (tui_show_symtab_source): Update.
6495 * tui/tui-layout.c (extract_display_start_addr)
6496 (show_source_disasm_command, show_data)
6497 (make_source_or_disasm_window)
6498 (show_source_or_disasm_and_command): Update.
6499 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6500 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6501 "gdbarch".
6502 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6503 to tui_source_window_base.
6504 (struct tui_win_info) <detail>: Remove source_info member.
6505 (struct tui_source_window_base) <has_locator>: Inline.
6506 Move contents from tui_source_info; rename has_locator member to
6507 m_has_locator.
6508 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6509 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6510 header file.
6511 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6512 Simplify.
6513 (tui_free_all_source_wins_content): Cast to
6514 tui_source_window_base.
6515
44f0e208
TT
65162019-06-25 Tom Tromey <tom@tromey.com>
6517
6518 * tui/tui-win.c (make_invisible_and_set_new_height)
6519 (make_visible_with_new_height): Call has_locator method.
6520 * tui/tui-layout.c (show_source_disasm_command, show_data)
6521 (show_source_or_disasm_and_command): Update for bool change.
6522 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6523 (tui_win_info) <has_locator>: New method.
6524 (struct tui_source_window_base) <has_locator>: New method.
6525 (tui_win_has_locator): Don't declare.
6526 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6527 from tui_win_has_locator.
6528 (tui_source_window_base): Use false, not FALSE.
6529
7778b912
TT
65302019-06-25 Tom Tromey <tom@tromey.com>
6531
6532 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6533 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6534 clear_detail method directly.
6535 (tui_clear_win_detail): Remove.
6536
f83d391c
TT
65372019-06-25 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6540 "this", not TUI_DISASM_WIN.
6541
13446e05
TT
65422019-06-25 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6545 declare.
6546 * tui/tui-winsource.c
6547 (tui_source_window_base::do_scroll_horizontal): Rename from
6548 tui_horizontal_source_scroll.
6549 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6550 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6551 from tui_vertical_data_scroll.
6552 * tui/tui-win.h (tui_scroll): Don't declare.
6553 * tui/tui-win.c (tui_win_info::forward_scroll)
6554 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6555 (tui_win_info::right_scroll): Rename and update.
6556 (tui_scroll_forward_command, tui_scroll_backward_command)
6557 (tui_scroll_left_command, tui_scroll_right_command): Update.
6558 (tui_scroll): Remove.
6559 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6560 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6561 from tui_vertical_source_scroll.
6562 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6563 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6564 from tui_vertical_disassem_scroll.
6565 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6566 do_scroll_horizontal>: New methods.
6567 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6568 Likewise.
6569 (struct tui_source_window_base): Add do_scroll_horizontal.
6570 (struct tui_source_window, struct tui_disasm_window): Add
6571 do_scroll_vertical.
6572 (struct tui_data_window, struct tui_cmd_window): Add
6573 do_scroll_horizontal and do_scroll_vertical.
6574 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6575
5cf82909
TT
65762019-06-25 Tom Tromey <tom@tromey.com>
6577
6578 * tui/tui-data.h (struct tui_source_window_base): New struct.
6579 (struct tui_source_window): Derive from tui_source_window_base.
6580 (struct tui_disasm_window): New struct.
6581 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6582 from tui_source_window::clear_detail.
6583 (tui_source_window_base): Rename from tui_source_window.
6584 (~tui_source_window_base): Rename from ~tui_source_window.
6585 (tui_alloc_win_info): Create a tui_disasm_window.
6586
ee1d42d6
TT
65872019-06-25 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-data.h (struct tui_source_window)
6590 (struct tui_data_window): Declare destructors.
6591 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6592 destructors.
6593 (tui_win_info): Simplify.
6594
b4eb2452
TT
65952019-06-25 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-winsource.c (tui_display_main)
6598 (tui_update_source_windows_with_addr)
6599 (tui_update_all_breakpoint_info): Update.
6600 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6601 (new_height_ok, parse_scrolling_args): Update.
6602 * tui/tui-stack.c (tui_show_frame_info): Update.
6603 * tui/tui-data.h (struct tui_list): Remove.
6604 (tui_source_windows): Return a reference to a std::vector.
6605 * tui/tui-data.c (source_windows): Now a std::vector.
6606 (tui_source_windows): Change return type.
6607 (tui_clear_source_windows): Rewrite.
6608 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6609 (tui_free_all_source_wins_content): Rewrite.
6610
8761a91b
TT
66112019-06-25 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6614 (struct tui_data_window, struct tui_cmd_window): Declare
6615 clear_detail method.
6616 * tui/tui-data.c (tui_source_window::clear_detail)
6617 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6618 methods.
6619 (tui_clear_win_detail): Simplify.
6620
0ed69eda
TT
66212019-06-25 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-layout.c (make_source_window, make_disasm_window)
6624 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6625 Return the new window.
6626 (show_source_disasm_command, show_data)
6627 (show_source_or_disasm_and_command): Update.
6628
82432e10
TT
66292019-06-25 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6632 parameter. Return the new window.
6633 (show_source_disasm_command): Update and remove NULL check.
6634 (show_source_or_disasm_and_command): Update.
6635
ec328aa5
TT
66362019-06-25 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6639
33b906ab
TT
66402019-06-25 Tom Tromey <tom@tromey.com>
6641
6642 * tui/tui-data.h (struct tui_win_info): Make constructor
6643 protected. Make destructor virtual. Add initializers.
6644 (tui_source_window, tui_data_window, tui_cmd_window): New
6645 classes.
6646 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6647 constructor. Add "type" parameter.
6648 (tui_source_window, tui_data_window, tui_cmd_window): New
6649 constructors.
6650 (tui_alloc_win_info): Instantiate the appropriate subclass.
6651
e7e11af4
TT
66522019-06-25 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-win.c (tui_resize_all): Use delete.
6655 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6656 destructor.
6657 (tui_free_window): Don't declare.
6658 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6659 Update.
6660
6792b55e
TT
66612019-06-25 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui-data.h (struct tui_win_info): Add constructor.
6664 * tui/tui-data.c (tui_alloc_win_info): Use new.
6665 (tui_free_window): Use delete.
6666
f95675e1
TT
66672019-06-22 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6670 declare.
6671 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6672
5bff081c
TT
66732019-06-22 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6676 declare.
6677 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6678
47e3f474
TV
66792019-06-22 Tom de Vries <tdevries@suse.de>
6680
6681 * dwarf2read.c (create_addrmap_from_aranges)
6682 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6683 instead of '%zu'.
6684
fd5866f6
SM
66852019-06-21 Simon Marchi <simon.marchi@efficios.com>
6686
6687 * dwarf2read.h (dwarf2_section_info_def): Remove.
6688 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6689 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6690 std::vector<dwarf2_section_info>.
6691 (struct dwo_file) <~dwo_file>: Remove.
6692 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6693 types field.
6694 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6695 (dwarf2_read_debug_names): Likewise.
6696 (create_debug_types_hash_table): Change parameter type to
6697 array_view, adjust code accordingly.
6698 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6699 (partial_die_info::fixup): Likewise.
6700 (determine_prefix): Likewise.
6701 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6702
fb1eb2f9
SM
67032019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6704
6705 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6706 gdb_bfd_ref_ptr.
6707 <~dwo_file>: Remove call to gdb_bfd_unref.
6708 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6709 gdb_bfd_ref_ptr::get.
6710
51ac9db5
SM
67112019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6712
6713 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6714 type to htab_up.
6715 * dwarf2read.c (struct dwo_file): Initialize fields.
6716 <~dwo_file>: New.
6717 (free_dwo_file): Remove, move content to ~dwo_file.
6718 (struct dwo_file_deleter): Remove.
6719 (dwo_file_up>: Remove custom deleter.
6720 (free_dwo_files): Remove.
6721 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6722 dwo_files.
6723 (process_skeletonless_type_units): Call unique_ptr::get.
6724 (allocate_dwo_file_hash_table): Add deleter to created hash
6725 table. Change return type to htab_up.
6726 (lookup_dwo_file_slot): Don't memset dwo_file, call
6727 unique_ptr::get.
6728 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6729 (create_dwo_unit_in_dwp_v2): Likewise.
6730 (open_and_init_dwo_file): Likewise.
6731 (free_dwo_file_from_slot): Remove.
6732
dc4ccb6f
SM
67332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6734
6735 * dwarf2read.h (struct dwarf2_section_info) <readin,
6736 is_virtual>: Change type to bool.
6737 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6738 true instead of 1.
6739
e6a1c5cb
TT
67402019-06-19 Tom Tromey <tom@tromey.com>
6741
6742 * tui/tui-data.h (tui_init_content_element): Don't declare.
6743
6f6ffbeb
TT
67442019-06-19 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-data.h (tui_init_win_info): Don't declare.
6747
f23f598e
TV
67482019-06-19 Tom de Vries <tdevries@suse.de>
6749
6750 * dwarf2read.h (abstract_to_concrete): Change type to
6751 std::unordered_map<sect_offset, std::vector<sect_offset>,
6752 gdb::hash_enum<sect_offset>>.
6753
680e1bee
TT
67542019-06-19 Tom Tromey <tromey@adacore.com>
6755
6756 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6757 EVAL_AVOID_SIDE_EFFECTS specially.
6758
dcf37923
TT
67592019-06-19 Tom Tromey <tromey@adacore.com>
6760
6761 * source-cache.c (highlighter): New global.
6762 (source_cache::get_source_lines): Create a highlighter on demand.
6763
494986d5
AB
67642019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * defs.h (deprecated_interactive_hook): Delete declaration.
6767 * interps.c (clear_interpreter_hooks): Remove use of
6768 deprecated_interactive_hook.
6769 * top.c (deprecated_interactive_hook): Delete definition.
6770 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6771
3360b6e7
TV
67722019-06-18 Tom de Vries <tdevries@suse.de>
6773
6774 PR gdb/24515
6775 * dwarf2read.h (abstract_to_concrete): Change type from
6776 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6777 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6778 * dwarf2read.c (read_variable): Update.
6779 (dwarf2_fetch_die_loc_sect_off): Update.
6780
310b3441
TV
67812019-06-17 Tom de Vries <tdevries@suse.de>
6782
6783 PR gdb/24617
6784 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6785 accessing parent[parent_len - 1].
6786
ba9777be
PP
67872019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6788
6789 PR gdb/24364
6790 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6791 call dtrace_process_dof with NULL dof.
6792
2b9f6e89
TV
67932019-06-16 Tom de Vries <tdevries@suse.de>
6794
6795 PR gdb/24445
6796 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6797
431b3ead
TT
67982019-06-16 Tom Tromey <tom@tromey.com>
6799
6800 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6801 (make_all_visible): Use address of member.
6802
d04b44a1
TT
68032019-06-16 Tom Tromey <tom@tromey.com>
6804
6805 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6806 (tui_free_window, free_content, free_content_elements): Remove
6807 unnecessary cast.
6808 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6809 cast.
6810 * tui/tui-regs.c (tui_show_register_group)
6811 (tui_display_registers_from, tui_display_reg_element_at_line):
6812 Remove unnecessary cast.
6813
bf5142e7
AB
68142019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6815
6816 * linux-nat.c (normal_mask): Delete.
6817 (_initialize_linux_nat): Don't initialise normal_mask.
6818
c4973306
SM
68192019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6820
6821 PR gdb/24445
6822 * dwarf-index-write.h (write_psymtabs_to_index): Add
6823 dwz_basename parameter.
6824 * dwarf-index-write.c (write_gdbindex): Move file writing to
6825 write_gdbindex_1. Change return type void.
6826 (assert_file_size): Move up, remove filename parameter.
6827 (write_gdbindex_1): New function.
6828 (write_debug_names): Change return type to void, call
6829 assert_file_size.
6830 (struct index_wip_file): New struct.
6831 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6832 file logic to index_wip_file. Write index for dwz file if
6833 needed.
6834 (save_gdb_index_command): Pass basename of dwz file, if present.
6835 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6836 build-id of dwz file, if present.
6837 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6838 (dwarf2_get_dwz_file): Likewise.
6839 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6840 (dwarf2_get_dwz_file): Likewise.
6841
395f9c91
TT
68422019-06-16 Tom Tromey <tom@tromey.com>
6843
6844 * coffread.c (process_coff_symbol): Use xstrdup.
6845 * value.c (create_internalvar): Use xstrdup.
6846
cafb3438
TT
68472019-06-16 Tom Tromey <tom@tromey.com>
6848
6849 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6850 * breakpoint.c (stopin_command, stopat_command)
6851 (until_break_command, decode_location_default): Remove unnecessary
6852 cast.
6853 * utils.c (subset_compare): Remove unnecessary cast.
6854 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6855 cast.
6856 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6857 cast.
6858 * infcmd.c (path_command): Remove unnecessary cast.
6859 * coffread.c (decode_type): Remove unnecessary cast.
6860 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6861 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6862 * tui/tui-stack.c (tui_show_locator_content)
6863 (tui_show_frame_info): Remove unnecessary cast.
6864 * tui/tui-win.c (tui_scroll_forward_command)
6865 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6866 (parse_scrolling_args): Remove unnecessary cast.
6867 * tui/tui-data.c (init_win_info, tui_del_window)
6868 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6869 (free_content_elements): Remove unnecessary cast.
6870 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6871 unnecessary cast.
6872 * tui/tui-source.c (tui_set_source_content)
6873 (tui_vertical_source_scroll): Remove unnecessary cast.
6874 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6875 cast.
6876 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6877 * tui/tui-regs.c (tui_display_registers_from)
6878 (tui_display_register): Remove unnecessary cast.
6879 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6880 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6881 (make_visible): Remove unnecessary cast.
6882 * tui/tui-winsource.c (tui_erase_source_content)
6883 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6884 unnecessary cast.
6885 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6886 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6887 * stabsread.c (read_type, read_array_type, read_range_type):
6888 Remove unnecessary cast.
6889 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6890 (parse_symbol, parse_type, upgrade_type, parse_external)
6891 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6892 unnecessary cast.
6893 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6894
730ead81
TT
68952019-06-16 Tom Tromey <tom@tromey.com>
6896
6897 * tui/tui-data.c (tui_alloc_generic_win_info)
6898 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6899 checks.
6900
584a927c
AB
69012019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6902 Andrew Burgess <andrew.burgess@embecosm.com>
6903
6904 * f-typeprint.c (f_print_type): Don't return early for not
6905 associated or not allocated types.
6906 (f_type_print_varspec_suffix): Add print_rank parameter and print
6907 ranks of array types in case they dangling.
6908 (f_type_print_base): Add print_rank parameter.
6909
30056ea0
AB
69102019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * NEWS: Mention new MI commands.
6913 * break-catch-throw.c (enum exception_event_kind): Move to
6914 breakpoint.h.
6915 (print_mention_exception_catchpoint): Output text as a single
6916 message.
6917 (catch_exception_command_1): Rename to...
6918 (catch_exception_event): ...this, make non-static, update header
6919 command, and change some parameter types.
6920 (catch_catch_command): Update for changes to
6921 catch_exception_command_1.
6922 (catch_throw_command): Likewise.
6923 (catch_rethrow_command): Likewise.
6924 * breakpoint.c (enum exception_event_kind): Delete.
6925 * breakpoint.h (enum exception_event_kind): Moved here from
6926 break-catch-throw.c.
6927 (catch_exception_event): Declare.
6928 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6929 (mi_cmd_catch_throw): New function.
6930 (mi_cmd_catch_rethrow): New function.
6931 (mi_cmd_catch_catch): New function.
6932 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6933 'catch-catch' entries.
6934 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6935 (mi_cmd_catch_rethrow): Declare.
6936 (mi_cmd_catch_catch): Declare.
6937
ec8e2b6d
AB
69382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6939
6940 * annotate.c (annotate_source_line): Change return type to void,
6941 update implementation to match.
6942 * annotate.h (annotate_source_line): Change return type to void,
6943 update header comment.
6944 * stack.c (print_frame_info): Don't change what frame information
6945 is printed based on whether annotations are on or not.
6946
0d3abd8c
AB
69472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6948
6949 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6950 (annotate_source): Make static.
6951 (annotate_source_line): Moved from source.c and renamed from
6952 identify_source_line. Update the return type.
6953 * annotate.h (annotate_source): Delete declaration.
6954 (annotate_source_line): Declaration moved from source.h, and
6955 renamed from identify_source_line. Return type updated.
6956 * source.c (identify_source_line): Moved to annotate.c and renamed
6957 to annotate_source_line.
6958 (info_line_command): Remove check of annotation_level.
6959 * source.h (identify_source_line): Move declaration to annotate.h
6960 and rename to annotate_source_line.
6961 * stack.c: Add 'annotate.h' include.
6962 (print_frame_info): Remove check of annotation_level before
6963 calling annotate_source_line.
6964
00df30ae
AB
69652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * source-cache.c (source_cache::get_plain_source_lines): Use
6968 open_source_file_with_line_charpos instead of just
6969 open_source_file, remove call to find_source_lines.
6970 (source_cache::get_source_lines): Likewise.
6971 * source.c (find_source_lines): Make static.
6972 (get_filename_and_charpos): Renamed into...
6973 (open_source_file_with_line_charpos): ..this along with changes to
6974 return a scoped_fd, and some other minor clean ups.
6975 (identify_source_line): Use open_source_file_with_line_charpos.
6976 (search_command_helper): Use open_source_file_with_line_charpos
6977 instead of just open_source_file, remove call to
6978 find_source_lines.
6979 * source.h (open_source_file_with_line_charpos): Declare new
6980 function.
6981 (find_source_lines): Delete declaration.
6982
afda45a2
AB
69832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * source.c (get_filename_and_charpos): Remove fullname
6986 parameter.
6987 (identify_source_line): Update call to get_filename_and_charpos.
6988
0735b091
TT
69892019-06-14 Tom Tromey <tromey@adacore.com>
6990
6991 PR gdb/24502:
6992 * ui-style.h (skip_ansi_escape): Update comment.
6993 * ui-file.h (class no_terminal_escape_file): New class.
6994 * ui-file.c (no_terminal_escape_file::write)
6995 (no_terminal_escape_file::puts): New methods.
6996 * cli/cli-logging.c (handle_redirections): Use
6997 no_terminal_escape_file.
6998
52ce35e2
TT
69992019-06-14 Tom Tromey <tromey@adacore.com>
7000
7001 * NEWS: Move convenience variable news above Python news.
7002
73cc7272
TT
70032019-06-14 Tom Tromey <tom@tromey.com>
7004
7005 * gnulib: Move directory to top-level.
7006 * configure.ac: Don't configure gnulib.
7007 * configure: Rebuild.
7008 * common/common-defs.h: Use new path to gnulib.
7009 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7010 (GNULIB_H): Remove.
7011 (INCGNU): Look in new gnulib location.
7012 (HFILES_NO_SRCDIR): Remove gnulib files.
7013 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7014 (generated_files): Remove GNULIB_H.
7015 ($(LIBGNU), all-lib): Remove targets.
7016 (distclean): Don't mention GNULIB_BUILDDIR.
7017 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7018
f5686554
TT
70192019-06-14 Tom Tromey <tromey@adacore.com>
7020
7021 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7022 Warn if symbol file does not provide any symbols.
7023
a0c1ffed
TT
70242019-06-14 Tom Tromey <tromey@adacore.com>
7025
7026 * source.c (find_and_open_source): Respect basenames_may_differ.
7027
7c39e397
AB
70282019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * annotate.c (annotate_breakpoints_invalid): Make use of
7031 scoped_restore_terminal_state.
7032 (annotate_frames_invalid): Likewise.
7033
f411722c
TT
70342019-06-14 Tom Tromey <tromey@adacore.com>
7035
7036 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7037 allow assignment to an internalvar.
7038
4268ec18
TT
70392019-06-14 Tom Tromey <tromey@adacore.com>
7040
7041 * ada-lex.l: Allow "_" in attribute names.
7042
abdb711e
TT
70432019-06-14 Tom Tromey <tromey@adacore.com>
7044
7045 PR gdb/24653:
7046 * regcache.c (registers_changed): Don't call alloca.
7047 * top.c (execute_command): Don't call alloca.
7048
4c048731
PA
70492019-06-13 Pedro Alves <palves@redhat.com>
7050
7051 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7052 'expression'. When parsing an expression, error out if there's
7053 junk after "unlimited".
7054 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7055 (do_set_command): Adjust calls to is_unlimited_literal.
7056
66eb1ed3
PA
70572019-06-13 Pedro Alves <palves@redhat.com>
7058
7059 * compile/compile.c (make_compile_options_def_group): Add braces
7060 around array_view initializer.
7061 * thread.c (make_thread_apply_all_options_def_group)
7062 (make_thread_apply_all_options_def_group): Likewise.
7063
3345721a
PA
70642019-06-13 Pedro Alves <palves@redhat.com>
7065
7066 * NEWS (New commands): Mention "maint test-options
7067 require-delimiter", "maint test-options unknown-is-error", "maint
7068 test-options unknown-is-operand" and "maint show
7069 test-options-completion-result".
7070 (New command options, command completion): New section.
7071 (Completion improvements): New section.
7072 Mention that you can abbreviate "unlimited".
7073
6206060d
PA
70742019-06-13 Pedro Alves <palves@redhat.com>
7075
7076 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7077 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7078 * unittests/cli-utils-selftests.c (test_parse_flags)
7079 (test_parse_flags_qcs): Delete.
7080 (test_cli_utils): Don't call deleted functions.
7081
6665660a
PA
70822019-06-13 Pedro Alves <palves@redhat.com>
7083
7084 * thread.c: Include "cli/cli-option.h".
7085 (tp_array_compar_ascending): Global.
7086 (tp_array_compar): Delete function.
7087 (tp_array_compar_ascending, tp_array_compar_descending): New
7088 functions.
7089 (ascending_option_def, qcs_flag_option_def)
7090 (thr_qcs_flags_option_defs)
7091 (make_thread_apply_all_options_def_group)
7092 (make_thread_apply_options_def_group): New.
7093 (thread_apply_all_command): Use gdb::option::process_options.
7094 (thread_apply_command_completer)
7095 (thread_apply_all_command_completer): New.
7096 (thread_apply_command): Use gdb::option::process_options.
7097 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7098 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7099 to generate help text of "thread apply". Adjust "taas"'s help.
7100 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7101 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7102
f7e13587
PA
71032019-06-13 Pedro Alves <palves@redhat.com>
7104
7105 * thread.c (thread_apply_command): Check for invalid TID with
7106 isdigit instead of !isalpha.
7107
5d707134
PA
71082019-06-13 Pedro Alves <palves@redhat.com>
7109
7110 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7111 (validate_flags_qcs): New.
7112 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7113 (validate_flags_qcs): Declare.
7114 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7115 (make_frame_apply_options_def_group): New.
7116 (frame_apply_command_count): Process options with
7117 gdb::option::process_options.
7118 (frame_apply_completer): New.
7119 (frame_apply_level_completer, frame_apply_all_completer)
7120 (frame_apply_completer): New.
7121 (_initialize_stack): Update help of "frame apply", "frame apply
7122 level", "frame apply all" and "faas" to mention supported options
7123 and install command completers.
7124 * stack.h (frame_apply_all_completer): Declare.
7125 * thread.c: Include "stack.h".
7126 (tfaas_command): Add "--".
7127 (_initialize_thread): Update help "tfaas" to mention supported
7128 options and install command completer.
7129
272d4594
PA
71302019-06-13 Pedro Alves <palves@redhat.com>
7131
7132 * completer.c (complete_nested_command_line): New.
7133 (gdb_completion_word_break_characters_throw): Add assertion.
7134 * completer.h (complete_nested_command_line): Declare.
7135
90a1ef87
PA
71362019-06-13 Pedro Alves <palves@redhat.com>
7137
7138 * stack.c (parse_backtrace_qualifiers): New.
7139 (backtrace_command): Use it.
7140 (backtrace_command_completer): Complete on qualifiers.
7141
d4c16835
PA
71422019-06-13 Pedro Alves <palves@redhat.com>
7143
7144 * frame.c: Include "cli/cli-option.h.
7145 (user_set_backtrace_options): New.
7146 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7147 Delete.
7148 (get_prev_frame): Adjust.
7149 (boolean_option_def, uinteger_option_def)
7150 (set_backtrace_option_defs): New.
7151 (_initialize_frame): Adjust and use
7152 gdb::option::add_setshow_cmds_for_options to install "set
7153 backtrace past-main" and "set backtrace past-entry".
7154 * frame.h: Include "cli/cli-option.h".
7155 (struct frame_print_options): Forward declare.
7156 (print_frame_arguments_all, print_frame_arguments_scalars)
7157 (print_frame_arguments_none): Declare.
7158 (print_entry_values): Delete declaration.
7159 (struct frame_print_options, user_frame_print_options): New.
7160 (struct set_backtrace_options): New.
7161 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7162 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7163 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7164 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7165 (list_args_or_locals): Add frame_print_options parameter.
7166 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7167 * python/py-framefilter.c (enumerate_args): Pass down
7168 USER_FRAME_PRINT_OPTIONS.
7169 * stack.c: Include "cli/cli-option.h".
7170 (print_frame_arguments_all, print_frame_arguments_scalars)
7171 (print_frame_arguments_none): Declare.
7172 (print_raw_frame_arguments, print_entry_values): Delete.
7173 (user_frame_print_options): New.
7174 (boolean_option_def, enum_option_def, frame_print_option_defs):
7175 New.
7176 (struct backtrace_cmd_options): New.
7177 (bt_flag_option_def): New.
7178 (backtrace_command_option_defs): New.
7179 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7180 (print_frame_arg, read_frame_arg, print_frame_args)
7181 (print_frame_info, print_frame): Add frame_print_options parameter
7182 and use it.
7183 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7184 (backtrace_command_1): Add frame_print_options and
7185 backtrace_cmd_options parameters and use them.
7186 (make_backtrace_options_def_group): New.
7187 (backtrace_command): Process command options with
7188 gdb::option::process_options.
7189 (backtrace_command_completer): New.
7190 (_initialize_stack): Extend "backtrace"'s help to mention
7191 supported options. Install completer for "backtrace".
7192 Install some settings commands with add_setshow_cmds_for_options.
7193
2daf894e
PA
71942019-06-13 Pedro Alves <palves@redhat.com>
7195
7196 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7197 and that "set/show print raw frame-arguments" are now deprecated.
7198
7199 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7200 command.
7201 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7202 * stack.c (_initialize_stack): Install "set/show print
7203 raw-frame-arguments", and deprecate "set/show print raw
7204 frame-arguments".
7205 * valprint.c (_initialize_valprint): Deprecate "set/show print
7206 raw".
7207
e6ed716c
PA
72082019-06-13 Pedro Alves <palves@redhat.com>
7209
7210 * compile/compile.c (struct compile_options): New.
7211 (compile_flag_option_def, compile_command_option_defs)
7212 (make_compile_options_def_group): New.
7213 (compile_file_command): Handle options with
7214 gdb::option::process_options.
7215 (compile_file_command_completer): New function.
7216 (compile_code_command): Handle options with
7217 gdb::option::process_options.
7218 (compile_code_command_completer): New function.
7219 (_initialize_compiler): Install completers for "compile code" and
7220 "compile file". Mention available options in "compile code" and
7221 "compile code"'s help.
7222 * completer.c (advance_to_completion_word): New, factored out from
7223 ...
7224 (advance_to_expression_complete_word_point): ... this.
7225 (advance_to_filename_complete_word_point): New.
7226 * completer.h (advance_to_filename_complete_word_point): New
7227 declaration.
7228
7d8062de
PA
72292019-06-13 Pedro Alves <palves@redhat.com>
7230
7231 * compile/compile.c: Include "cli/cli-option.h".
7232 (compile_print_value): Scope data pointer is now a
7233 value_print_options pointer; adjust.
7234 (compile_print_command): Process options. Scope data pointer is
7235 now a value_print_options pointer; adjust.
7236 (_initialize_compile): Update "compile print"'s help to include
7237 supported options. Install a completer for "compile print".
7238 * cp-valprint.c (show_vtblprint, show_objectprint)
7239 (show_static_field_print): Delete.
7240 (_initialize_cp_valprint): Don't install "set print
7241 static-members", "set print vtbl", "set print object" here.
7242 * printcmd.c: Include "cli/cli-option.h" and
7243 "common/gdb_optional.h".
7244 (print_command_parse_format): Rework to fill in a
7245 value_print_options instead of a format_data.
7246 (print_value): Change parameter type from format_data pointer to
7247 value_print_options reference. Adjust.
7248 (print_command_1): Process options. Adjust to pass down a
7249 value_print_options.
7250 (print_command_completer): New.
7251 (_initialize_printcmd): Install print_command_completer as
7252 handle_brkchars completer for the "print" command. Update
7253 "print"'s help to include supported options.
7254 * valprint.c: Include "cli/cli-option.h".
7255 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7256 here from cp-valprint.c.
7257 (boolean_option_def, uinteger_option_def)
7258 (value_print_option_defs, make_value_print_options_def_group):
7259 New. Use gdb::option::add_setshow_cmds_for_options to install
7260 "set print elements", "set print null-stop", "set print repeats",
7261 "set print pretty", "set print union", "set print array", "set
7262 print address", "set print symbol", "set print array-indexes".
7263 * valprint.h: Include <string> and "cli/cli-option.h".
7264 (make_value_print_options_def_group): Declare.
7265 (print_value): Change parameter type from format_data pointer to
7266 value_print_options reference.
7267 (print_command_completer): Declare.
7268
9d0faba9
PA
72692019-06-13 Pedro Alves <palves@redhat.com>
7270
7271 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7272 (COMMON_SFILES): Add maint-test-settings.c.
7273 * cli/cli-decode.c (boolean_enums): New global, factored out from
7274 ...
7275 (add_setshow_boolean_cmd): ... here.
7276 * cli/cli-decode.h (boolean_enums): Declare.
7277 * cli/cli-option.c: New file.
7278 * cli/cli-option.h: New file.
7279 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7280 factored out from ...
7281 (parse_cli_boolean_value(const char *)): ... this.
7282 (is_unlimited_literal): Change parameter type to pointer to
7283 pointer. Adjust and advance ARG pointer.
7284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7285 (parse_cli_var_enum): New, factored out from ...
7286 (do_set_command): ... this. Adjust.
7287 * cli/cli-setshow.h (parse_cli_boolean_value)
7288 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7289 (parse_cli_var_enum): Declare.
7290 * cli/cli-utils.c: Include "cli/cli-option.h".
7291 (get_ulongest): New.
7292 * cli/cli-utils.h (get_ulongest): Declare.
7293 (check_for_argument): New overloads.
7294 * maint-test-options.c: New file.
7295
2c722807
PA
72962019-06-13 Pedro Alves <palves@redhat.com>
7297
7298 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7299 parse a range if "-" is at the end of the string.
7300
dee7b4c8
PA
73012019-06-13 Pedro Alves <palves@redhat.com>
7302
7303 * cli/cli-setshow.c (parse_auto_binary_operation)
7304 (parse_cli_boolean_value): Don't allow "o".
7305
dca0f6c0
PA
73062019-06-13 Pedro Alves <palves@redhat.com>
7307
7308 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7309 * NEWS: Mention maint test-settings KIND.
7310 * maint-test-settings.c: New file.
7311
597bf39d
PA
73122019-06-13 Pedro Alves <palves@redhat.com>
7313
7314 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7315 completer.
7316 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7317 "set" completers.
7318
48c410fb
PA
73192019-06-13 Pedro Alves <palves@redhat.com>
7320
7321 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7322 after item.
7323
93bcb043
PA
73242019-06-13 Pedro Alves <palves@redhat.com>
7325
7326 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7327
cbba3ecd
PA
73282019-06-13 Pedro Alves <palves@redhat.com>
7329
7330 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7331 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7332 call.
7333 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7334 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7335 calls.
7336 (check_for_argument): Skip spaces after argument.
7337
b9a3f842
PA
73382019-06-13 Pedro Alves <palves@redhat.com>
7339
7340 * thread.c (thread_apply_command): Adjust TID parsing.
7341 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7342 detected before end of string.
7343 (tid_is_in_list): Error out if LIST is invalid.
7344
3844e605
PA
73452019-06-13 Pedro Alves <palves@redhat.com>
7346
7347 * completer.c (complete_line_internal_1): Rewind completion word
7348 point.
7349 (completion_tracker::advance_custom_word_point_by): Change
7350 parameter type to int.
7351 * completer.h (completion_tracker::advance_custom_word_point_by):
7352 Likewise.
7353
00b56dbe
PA
73542019-06-13 Pedro Alves <palves@redhat.com>
7355
7356 * completer.c (advance_to_completion_word): Handle delimiters.
7357
d106773e
PA
73582019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7359
7360 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7361
08f10e02
TT
73622019-06-11 Tom Tromey <tom@tromey.com>
7363
7364 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7365 (xmalloc_failed): Move to alloc.c.
7366 * alloc.c: New file.
7367 * Makefile.in (COMMON_SFILES): Add alloc.c.
7368
1c7fe951
TT
73692019-06-11 Tom Tromey <tom@tromey.com>
7370
7371 * nat/linux-waitpid.c: Don't include server.h.
7372 (linux_debug): Remove.
7373 (my_waitpid): Update.
7374
89549d7f
TT
73752019-06-11 Tom Tromey <tromey@adacore.com>
7376
7377 * infcall.c (_initialize_infcall): Remove trailing newline from
7378 help.
7379 * user-regs.c (_initialize_user_regs): Remove trailing newline
7380 from help.
7381 * typeprint.c (_initialize_typeprint): Remove trailing newline
7382 from help.
7383 * reverse.c (_initialize_reverse): Remove trailing newlines from
7384 help.
7385 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7386 from help.
7387 * language.c (add_set_language_command): Remove trailing newline
7388 from help.
7389 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7390 help.
7391 * disasm.c (_initialize_disasm): Remove trailing newline from
7392 help.
7393 * top.c (init_main): Remove trailing newline from help.
7394 * interps.c (_initialize_interpreter): Remove trailing newline
7395 from help.
7396 * btrace.c (_initialize_btrace): Remove trailing newlines from
7397 help.
7398 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7399 from help.
7400 * python/python.c (_initialize_python): Remove trailing newline
7401 from help.
7402 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7403 help.
7404 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7405 from help. Reformat some text.
7406 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7407 from help.
7408 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7409 newline from help.
7410
86108c13
TT
74112019-06-11 Tom Tromey <tromey@adacore.com>
7412
7413 * darwin-nat.c (darwin_decode_exception_message)
7414 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7415
a7067863
AB
74162019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7417
7418 * valops.c (value_slice): Check for not allocated or not
7419 associated values.
7420
9ab08412
TV
74212019-06-10 Tom de Vries <tdevries@suse.de>
7422
7423 PR gdb/24618
7424 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7425 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7426 invalid.
7427
f19e22e9
TV
74282019-06-10 Tom de Vries <tdevries@suse.de>
7429
7430 PR gdb/24611
7431 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7432 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7433
e99f9db0
TV
74342019-06-10 Tom de Vries <tdevries@suse.de>
7435
7436 PR symtab/24545
7437 * symtab.c (struct demangled_name_entry): Add language field.
7438 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7439 static minimal symbol". Set and use language field.
7440
9bf7038b
TT
74412019-06-10 Tom Tromey <tromey@adacore.com>
7442
7443 * ada-lang.c (_initialize_ada_language): Update help text.
7444
422186a9
TT
74452019-06-10 Tom Tromey <tromey@adacore.com>
7446
7447 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7448 with a newline.
7449 * guile/guile.c (handle_boot_error): Don't end warning with a
7450 newline.
7451 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7452 warning with a newline.
7453 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7454 newline.
7455 (s12z_frame_cache): Likewise.
7456 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7457 a newline.
7458 * solib-svr4.c (disable_probes_interface): Don't end warning with
7459 a newline.
7460 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7461 newline.
7462 * python/python.c (do_finish_initialization): Don't end warning
7463 with a newline.
7464
25ce02ee
TT
74652019-06-10 Tom Tromey <tom@tromey.com>
7466
7467 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7468 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7469 gdbpy_enter.
7470
caa429d8
TT
74712019-06-10 Tom Tromey <tromey@adacore.com>
7472
7473 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7474 data.
7475 (elf_new_init): Don't call stabsread_new_init.
7476 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7477 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7478 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7479
81873cc8
TV
74802019-06-10 Tom de Vries <tdevries@suse.de>
7481
7482 PR symtab/16264
7483 PR symtab/24517
7484 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7485
4fa0265e
РИ
74862019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7487
7488 * source.c (find_and_open_source): Also rewrite relative file
7489 names.
7490
1a3da2cd
AB
74912019-04-26 Amos Bird <amosbird@gmail.com>
7492
7493 * annotate.c (annotate_thread_exited): Add "thread-exited"
7494 annotation.
7495
3847a7bf
TT
74962019-06-06 Tom Tromey <tromey@adacore.com>
7497
7498 * maint.h (class scoped_command_stats): Use
7499 DISABLE_COPY_AND_ASSIGN.
7500 <print_time>: New method.
7501 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7502 print_time.
7503 (scoped_command_stats::print_time): New method.
7504
312617a3
AB
75052019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7508 instructions of lengths 6 or 8 bytes.
7509
b02f78f9
PA
75102019-06-04 Pedro Alves <palves@redhat.com>
7511
7512 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7513
7514 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7515 * breakpoint.c (condition_completer): Likewise.
7516 * cli/cli-dump.c (scan_expression): Likewise.
7517 * common/filestuff.c (mkdir_recursive): Likewise.
7518 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7519 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7520 (gdb_abspath): Likewise.
7521 * compile/compile-cplus-types.c
7522 (compile_cplus_instance::decl_name): Likewise.
7523 * completer.c (complete_explicit_location):
7524 (signal_completer, reg_or_group_completer_1): Likewise.
7525 * cp-support.c (cp_remove_params_if_any): Likewise.
7526 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7527 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7528 * infcmd.c (strip_bg_char): Likewise.
7529 * linespec.c (copy_token_string): Likewise.
7530 * mi/mi-main.c (output_cores): Likewise.
7531 * psymtab.c (psymtab_search_name):
7532 * symfile.c (test_set_ext_lang_command): Likewise.
7533 * target.c (target_fileio_read_stralloc): Likewise.
7534 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7535 * value.c (complete_internalvar): Likewise.
7536
e1f2e1a2
CB
75372019-06-04 Christian Biesinger <cbiesinger@google.com>
7538
7539 Add objfile property to gdb.Type.
d3238f7d
PA
7540 * NEWS: Mention Python API addition.
7541 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7542
e664d728
PW
75432019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7544
7545 * NEWS: Mention the new set|show style [title|highlight].
7546 Mention changes to "show style", "help" and "apropos".
7547
66d8c862
PW
75482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7549
7550 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7551 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7552 instead of print_help_for_command.
7553 (print_doc_of_command): New function.
7554 (help_list): Add 'apropos -v word' suggestion.
7555 (print_help_for_command): Style the command name using title style.
7556 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7557 (_initialize_cli_cmds): Describe -v in apropos_command help.
7558
9303eb2f
PW
75592019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7560
7561 * cli/cli-style.h (cli_style_option): Add name in constructor,
7562 add m_name class member, add constructor with intensity,
7563 add name class function.
7564 (cli_style_option::add_setshow_commands): Remove name argument.
7565 (highlight_style, title_style): New styles.
7566 * cli/cli-style.c (do_show): New function that shows a style
7567 characteristic styling the style name with itself.
7568 (set_style_name): New function.
7569 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7570 Update all callers according to the changes in cli/cli-style.h.
7571 * utils.h (fputs_highlighted): New function.
7572 * utils.c (fputs_highlighted): Likewise.
7573
e2c52041
PW
75742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7575
7576 * NEWS: Mention new pipe command and new convenience variables.
7577
947d3946
PW
75782019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7579
7580 * cli/cli-cmds.c (pipe_command): New function.
7581 (_initialize_cli_cmds): Call add_com for pipe_command.
7582 Define | as an alias for pipe.
7583 (exit_status_set_internal_vars): New function.
7584 (shell_escape): Call exit_status_set_internal_vars.
7585 cli/cli-decode.c (find_command_name_length): Recognize | as
7586 a single character command.
7587
b8fd0918
PW
75882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7589
7590 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7591 top.c (execute_command_to_ui_file): New function, mostly a copy
7592 of execute_command_to_string.
7593 (execute_command_to_string): Implement by calling
7594 execute_command_to_ui_file.
7595
68bb5386
PW
75962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7597
7598 * top.h (saved_command_line): Remove declaration.
7599 * top.c (previous_saved_command_line, previous_repeat_arguments):
7600 New variables.
7601 (saved_command_line): Make static, define together with other
7602 'repeat variables'.
7603 (dont_repeat): Clear repeat_arguments.
7604 (repeat_previous, get_saved_command_line, save_command_line):
7605 New functions.
7606 (gdb_init): Initialize saved_command_line
7607 and previous_saved_command_line.
7608 * main.c (captured_main_1): Remove saved_command_line initialization.
7609 * event-top.c (handle_line_of_input): Update to use
7610 the new 'repeat' related functions instead of direct access to
7611 saved_command_line.
7612 * command.h (repeat_previous, get_saved_command_line,
7613 save_command_line): New declarations.
7614 (dont_repeat): Add comment.
7615
bfcdb852
TT
76162019-05-30 Tom Tromey <tromey@adacore.com>
7617
7618 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7619 Fix comment.
7620 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7621
0ef209f2
JV
76222019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7623
7624 PR cli/24587
7625 * completer.c (complete): Initialize variable word.
7626
955b06fa
SDJ
76272019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7628
7629 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7630 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7631 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7632 'body' is NULL to the outter 'if', protecting the '!is_define'
7633 situation as well.
7634
fa9c3fa0
TT
76352019-05-29 Tom Tromey <tromey@adacore.com>
7636
7637 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7638 (dwarf_unknown): New function.
7639 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7640 (dwarf_type_encoding_name): Use dwarf_unknown.
7641
4330d61d
TT
76422019-05-29 Tom Tromey <tromey@adacore.com>
7643
7644 PR c++/20020:
7645 * cp-valprint.c (cp_print_value_fields): Call
7646 cp_print_static_field inside "try".
7647
33a6bc35
TT
76482019-05-29 Tom Tromey <tromey@adacore.com>
7649
7650 * inflow.c (struct terminal_info): Add default operator=.
7651 * configure: Rebuild.
7652 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7653 -Wdeprecated-copy-dtor, -Wredundant-move.
7654
000439d5
TT
76552019-05-29 Tom Tromey <tromey@adacore.com>
7656
7657 * NEWS: Add entry.
7658 * infcmd.c (print_return_value_1): Handle finish_print
7659 option.
7660 (show_print_finish): New function.
7661 (_initialize_infcmd): Add "set/show print finish" commands.
7662 * valprint.c (user_print_options): Initialize new member.
7663 * valprint.h (struct value_print_options) <finish_print>: New
7664 member.
7665
c0e70c62
TT
76662019-05-28 Tom Tromey <tromey@adacore.com>
7667
7668 * ada-lang.c (ada_remove_Xbn_suffix)
7669 (find_old_style_renaming_symbol)
7670 (parse_old_style_renaming): Remove.
7671 (ada_find_renaming_symbol): Don't call
7672 find_old_style_renaming_symbol.
7673 (ada_is_renaming_symbol): Rename from
7674 ada_find_renaming_symbol. Remove "block" parameter. Return
7675 bool. Now static.
7676 (ada_read_var_value): Update and simplify.
7677 * ada-exp.y (write_var_or_type): Remove old code.
7678
766f8836
AH
76792019-05-28 Alan Hayward <alan.hayward@arm.com>
7680
68255adc 7681 PR gdb/25010
766f8836
AH
7682 * event-top.c: Remove include comment.
7683 * inflow.c (class scoped_ignore_sigttou): Move from here...
7684 * inflow.h (class scoped_ignore_sigttou): ...to here.
7685 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7686 * top.c: Remove include comment.
7687
eb41253a
TT
76882019-05-27 Tom Tromey <tom@tromey.com>
7689
7690 * NEWS: Fix typo.
7691
4ca51187
TT
76922019-05-22 Tom Tromey <tromey@adacore.com>
7693
7694 * target.c (target_follow_exec): Constify parameter.
7695 * target-delegates.c: Rebuild.
7696 * remote.c (remote_target::follow_exec): Constify parameter.
7697 * infrun.c (follow_exec): Constify parameter.
7698 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7699 (target_follow_exec): Likewise.
7700
8fca4da0
AH
77012019-05-22 Alan Hayward <alan.hayward@arm.com>
7702
7703 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7704 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7705
b7060614
AH
77062019-05-22 Alan Hayward <alan.hayward@arm.com>
7707
7708 * NEWS: Add debugredirect and testsuite sections.
7709
0a5954bd
SC
77102019-05-22 Simon Cook <simon.cook@embecosm.com>
7711
7712 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7713 target descriptions using exclusively floating point register name
7714 aliases.
7715
dc42e902
AB
77162019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 PR gdb/18644:
7719 * f-lang.c (build_fortran_types): Handle the case where
7720 gdbarch_floatformat_for_type returns a nullptr.
7721
fb7806c7
TV
77222019-05-21 Tom de Vries <tdevries@suse.de>
7723
7724 PR cli/24587
7725 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7726
34d11c68
AB
77272019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7728
7729 PR gdb/18644:
7730 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7731 16-byte floats.
7732 * i386-tdep.c (i386_floatformat_for_type): Use
7733 floatformats_ia64_quad for the 16-byte floating point component
7734 within a fortran 32-byte complex number.
7735
122cf0f2
AB
77362019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7739 delete default constructor.
7740 (find_partial_die): Update to return const struct.
7741 (partial_die_parent_scope): Move variable declaration into scope
7742 of its use and change its type to auto.
7743 (guess_partial_die_structure_name): Likewise.
7744 (partial_die_info::fixup): Likewise.
7745
33d0e35a
TT
77462019-05-17 Tom Tromey <tromey@adacore.com>
7747
7748 * source.c (find_and_open_source): Remove cast.
7749
a45575b0
TT
77502019-05-17 Tom Tromey <tromey@adacore.com>
7751
7752 * annotate.c (annotate_source): Make "filename" const.
7753 * annotate.h (annotate_source): Use const.
7754
81f47ac2
AH
77552019-05-17 Alan Hayward <alan.hayward@arm.com>
7756
7757 * disasm.c (set_disassembler_options): Send errors to stderr.
7758
ca1285d1
AH
77592019-05-17 Alan Hayward <alan.hayward@arm.com>
7760
7761 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7762 (cli_interp_base::set_logging): Check debug_redirect.
7763 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7764 * cli/cli-logging.c (debug_redirect): Add static variable.
7765 (pop_output_files): Add default param.
7766 (handle_redirections): Print debug setting.
7767 (show_logging_command): Likewise.
7768 (_initialize_cli_logging): Add debugredirect command.
7769 * interps.c (current_interp_set_logging): Add debug_redirect
7770 parameter.
7771 * interps.h (set_logging): Add debug_redirect parameter.
7772 (current_interp_set_logging): Likewise.
7773 * mi/mi-common.h: Likewise.
7774 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7775
77762019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7777 Tom Tromey <tromey@adacore.com>
7778
7779 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7780 directly.
7781 * cli/cli-interp.h (make_logging_output): Remove declaration.
7782 * cli/cli-logging.c (make_logging_output): Remove function.
7783 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7784 directly.
7785 * ui-file.c (tee_file::tee_file): Remove bools.
7786 (tee_file::~tee_file): Remove deletes.
7787 * ui-file.h (tee_file): Remove bools.
7788
26648588
JV
77892019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7790
7791 * mi/mi-cmds.h (mi_cmd_complete): New function.
7792 * mi/mi-main.c (mi_cmd_complete): Likewise.
7793 * mi/mi-cmds.c: Define new MI command -complete.
7794 * NEWS: Mention new -complete command.
7795
6e035501
JV
77962019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7797
7798 * completer.h (complete): New function.
7799 * completer.c (complete): Likewise.
7800 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7801 function defined in completer.h.
7802
7d0e2ece
JV
78032019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7804
e79be6e5 7805 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7806
fb816e8b
TV
78072019-05-17 Tom de Vries <tdevries@suse.de>
7808
7809 PR gdb/24094
7810 * dwarf2read.c (struct cu_partial_die_info): New struct.
7811 (find_partial_die): Return cu_partial_die_info.
7812 (partial_die_parent_scope, guess_partial_die_structure_name)
7813 (partial_die_info::fixup): Handle new return type of find_partial_die.
7814
677052f2
SDJ
78152019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7816
a1726c38 7817 PR breakpoints/24541
677052f2
SDJ
7818 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7819 "std::string", simplifying the algorithm.
7820
f3da9116
SDJ
78212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7822
7823 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7824 (stap_static_probe_ops::get_probes): Likewise.
7825
f1bb75ab
SDJ
78262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7827
7828 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7829 '-')" and "else if".
7830 (stap_parse_single_operand): Join checks for
7831 "gdbarch_stap_parse_special_token_p" and
7832 "gdbarch_stap_parse_special_token" in the same "if" statement.
7833 Invert check when verifying for operation on register
7834 displacement.
7835
3ca58cde
SDJ
78362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7837
7838 * stap-probe.c (stap_get_opcode): Update comment.
7839 (stap_get_expected_argument_type): Likewise.
7840 (handle_stap_probe): Likewise.
7841
af2d9bee
SDJ
78422019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7843
7844 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7845 return type to 'bool'. Adjust comment. Use 'bool' when
7846 appropriate.
7847 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7848 * stap-probe.c (stap_parse_argument_1): Likewise.
7849 (stap_is_operator): Likewise.
7850 (stap_is_generic_prefix): Likewise.
7851 (stap_is_register_prefix): Likewise.
7852 (stap_is_register_indirection_prefix): Likewise.
7853 (stap_is_integer_prefix): Likewise.
7854 (stap_generic_check_suffix): Likewise.
7855 (stap_check_integer_suffix): Likewise.
7856 (stap_check_register_suffix): Likewise.
7857 (stap_check_register_indirection_suffix): Likewise.
7858 (stap_parse_register_operand): Likewise.
7859 (stap_parse_single_operand): Likewise.
7860 (stap_parse_argument_1): Likewise.
7861 (stap_probe::get_argument_count): Likewise.
7862 (stap_is_operator): Likewise.
7863
61c9c421
TT
78642019-05-16 Tom Tromey <tromey@adacore.com>
7865
7866 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7867 keyword to foreach.
7868
9ddc1af1
SM
78692019-05-15 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * linux-thread-db.c (try_thread_db_load_1): Change return type
7872 to bool.
7873 (try_thread_db_load): Likewise.
7874 (try_thread_db_load_from_pdir_1): Likewise.
7875 (try_thread_db_load_from_pdir): Likewise.
7876 (try_thread_db_load_from_sdir): Likewise.
7877 (try_thread_db_load_from_dir): Likewise.
7878 (thread_db_load_search): Likewise.
7879 (has_libpthread): Likewise.
7880 (thread_db_load): Likewise.
7881
7bede828
SDJ
78822019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7883
7884 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7885 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7886 NULL, and complain/return if that's the case.
7887
c5358db4
JD
78882019-05-15 John Darrington <john@darrington.wattle.id.au>
7889
7890 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7891 (advance, posn, abstract_read_memory): New functions.
7892 [struct mem_read_abstraction]: New struct.
7893 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7894
c408a94f
TT
78952019-05-14 Tom Tromey <tromey@adacore.com>
7896
7897 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7898 value is not lval_memory.
7899
e7bd7fba
TT
79002019-05-14 Tom Tromey <tromey@adacore.com>
7901
7902 * solib.c (info_sharedlibrary_command): Style the file name.
7903
a6d0f249
AH
79042019-05-14 Alan Hayward <alan.hayward@arm.com>
7905
7906 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7907 (aarch64_vnv_type): Likewise.
7908 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7909 * common/tdesc.c: Likewise.
7910 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7911 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7912 * features/aarch64-fpu.xml: Add ieee half view.
7913 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7914 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7915 * gdbtypes.h (struct builtin_type): Likewise.
7916 (struct objfile_type): Likewise.
7917
66b8bb74
SM
79182019-05-12 Paul Naert <paul.naert@polymtl.ca>
7919
7920 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7921 typo.
7922 * location.h (string_to_event_location): Likewise.
7923
21c219fd
JB
79242019-05-11 Joel Brobecker <brobecker@adacore.com>
7925
7926 GDB 8.3 released.
7927
13674803
SM
79282019-05-10 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7931 New variable declaration.
7932 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7933 New variable.
7934 (print_one_breakpoint): Use ui_out::test_flags and new global
7935 variable to compute use_fixed_output.
7936 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7937 Remove.
7938 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7939 (mi_multi_location_breakpoint_output_fixed): Remove.
7940 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7941 new variable.
7942 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7943 fix_multi_location_breakpoint_output flag if version >= 3.
7944 * ui-out.h (enum ui_out_flag)
7945 <fix_multi_location_breakpoint_output>: New enumerator.
7946
a9eac7f9
SM
79472019-05-10 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7950
71bed2db
TT
79512019-05-10 Tom Tromey <tromey@adacore.com>
7952
7953 * ada-lang.c (catch_ada_completer): New function.
7954 (_initialize_ada_language): Use it.
7955
24c54127
TT
79562019-05-10 Tom Tromey <tromey@adacore.com>
7957
7958 * thread.c (print_thread_info): Make "requested_threads" const.
7959 * gdbthread.h (print_thread_info): Make "requested_threads"
7960 const.
7961 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7962 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7963
7a102139
TT
79642019-05-08 Tom Tromey <tom@tromey.com>
7965
7966 * gdbtypes.c (objfile_type_data): Change type.
7967 (objfile_type, _initialize_gdbtypes): Update.
7968
924d79e2
TT
79692019-05-08 Tom Tromey <tom@tromey.com>
7970
7971 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7972 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7973 (_initialize_dwarf2_frame): Update.
7974
4c58e337
TT
79752019-05-08 Tom Tromey <tom@tromey.com>
7976
7977 * objc-lang.c (objc_objfile_data): Change type.
7978 (find_methods): Update.
7979 (_initialize_objc_lang): Remove.
7980
d772d2ab
TT
79812019-05-08 Tom Tromey <tom@tromey.com>
7982
7983 * stabsread.c (rs6000_builtin_type_data): Change type.
7984 (rs6000_builtin_type, _initialize_stabsread): Update.
7985
d11d83f4
TT
79862019-05-08 Tom Tromey <tom@tromey.com>
7987
7988 * mips-tdep.c (mips_pdr_data): Remove.
7989 (_initialize_mips_tdep): Update.
7990
9a73f0ad
TT
79912019-05-08 Tom Tromey <tom@tromey.com>
7992
7993 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7994 (hppa_init_objfile_priv_data, read_unwind_info)
7995 (find_unwind_entry, _initialize_hppa_tdep): Update.
7996
8127a2fa
TT
79972019-05-08 Tom Tromey <tom@tromey.com>
7998
7999 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8000 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8001 on obstack.
8002 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8003
91d3055d
TT
80042019-05-08 Tom Tromey <tom@tromey.com>
8005
8006 * mdebugread.c (basic_type_data): Change type.
8007 (basic_type, _initialize_mdebugread): Update.
8008
31930bd3
TT
80092019-05-08 Tom Tromey <tom@tromey.com>
8010
8011 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8012
bdb3ed9e
TT
80132019-05-08 Tom Tromey <tom@tromey.com>
8014
8015 * nto-tdep.c (nto_inferior_data_reg): Change type.
8016 (nto_inferior_data): Update.
8017 (nto_inferior_data_cleanup, nto_new_inferior_data)
8018 (_initialize_nto_tdep): Remove.
8019 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8020
f37b313d
TT
80212019-05-08 Tom Tromey <tom@tromey.com>
8022
8023 * ada-lang.c (struct ada_inferior_data): Add initializers.
8024 (ada_inferior_data): Change type.
8025 (ada_inferior_data_cleanup): Remove.
8026 (get_ada_inferior_data, ada_inferior_exit)
8027 (struct ada_pspace_data): Add initializers, destructor.
8028 (ada_pspace_data_handle): Change type.
8029 (get_ada_pspace_data): Update.
8030 (ada_pspace_data_cleanup): Remove.
8031
24699405
TT
80322019-05-08 Tom Tromey <tom@tromey.com>
8033
8034 * coffread.c (struct coff_symfile_info): Add initializers.
8035 (coff_objfile_data_key): Move lower. Change type.
8036 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8037 Update.
8038 (coff_free_info): Remove.
8039
d4e05d2f
TT
80402019-05-08 Tom Tromey <tom@tromey.com>
8041
8042 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8043 (fbsd_pspace_data_handle): Move lower. Change type.
8044 (get_fbsd_pspace_data): Update.
8045 (fbsd_pspace_data_cleanup): Remove.
8046 (_initialize_fbsd_tdep): Update.
8047
14ef6690
TT
80482019-05-08 Tom Tromey <tom@tromey.com>
8049
8050 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8051 (get_ada_tasks_pspace_data): Update.
8052 (ada_tasks_pspace_data_cleanup): Remove.
8053 (_initialize_tasks): Update.
8054 (ada_tasks_inferior_data_handle): Change type.
8055 (get_ada_tasks_inferior_data): Update.
8056 (ada_tasks_inferior_data_cleanup): Remove.
8057 (struct ada_tasks_pspace_data): Add initializers.
8058
814cf43a
TT
80592019-05-08 Tom Tromey <tom@tromey.com>
8060
8061 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8062 * symfile-debug.c (debug_sym_get_probes): Change type.
8063 * stap-probe.c (handle_stap_probe):
8064 (stap_static_probe_ops::get_probes): Change type.
8065 * probe.h (class static_probe_ops) <get_probes>: Change type.
8066 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8067 (parse_probes_in_pspace): Update.
8068 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8069 Update.
8070 (any_static_probe_ops::get_probes): Change type.
8071 * elfread.c (elfread_data): New typedef.
8072 (probe_key): Change type.
8073 (elf_get_probes): Likewise. Update.
8074 (probe_key_free): Remove.
8075 (_initialize_elfread): Update.
8076 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8077 Change type.
8078 (dtrace_process_dof_probe, dtrace_process_dof)
8079 (dtrace_static_probe_ops::get_probe): Change type.
8080
02dc647e
TT
80812019-05-08 Tom Tromey <tom@tromey.com>
8082
8083 * xcoffread.c (struct xcoff_symfile_info): Rename from
8084 coff_symfile_info. Add initializers.
8085 (xcoff_objfile_data_key): Move lower. Change type.
8086 (XCOFF_DATA): Rewrite.
8087 (xcoff_free_info): Remove.
8088 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8089 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8090 (xcoff_initial_scan): Update.
8091
09232438
TT
80922019-05-08 Tom Tromey <tom@tromey.com>
8093
8094 * solib-svr4.c (struct svr4_info): Add initializers and
8095 destructor.
8096 <probes_table>: Now an htab_up.
8097 (solib_svr4_pspace_data): Change type.
8098 (free_probes_table): Simplify.
8099 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8100 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8101 (probes_table_remove_objfile_probes, register_solib_event_probe)
8102 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8103 (_initialize_svr4_solib): Update.
8104
7b4a314f
TT
81052019-05-08 Tom Tromey <tom@tromey.com>
8106
8107 * remote.c (remote_pspace_data): Change type.
8108 (remote_pspace_data_cleanup): Remove.
8109 (get_remote_exec_file, set_pspace_remote_exec_file)
8110 (_initialize_remote): Update.
8111
51d3063a
TT
81122019-05-08 Tom Tromey <tom@tromey.com>
8113
8114 * breakpoint.c (breakpoint_objfile_key): Change type.
8115 (get_breakpoint_objfile_data): Update.
8116 (free_breakpoint_objfile_data): Remove.
8117 (_initialize_breakpoint): Update.
8118
89fb8848
TT
81192019-05-08 Tom Tromey <tom@tromey.com>
8120
8121 * linux-tdep.c (struct linux_info): Add initializers.
8122 (linux_inferior_data): Move. Change type.
8123 (invalidate_linux_cache_inf): Update.
8124 (linux_inferior_data_cleanup): Remove.
8125 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8126
e9b89e2d
TT
81272019-05-08 Tom Tromey <tom@tromey.com>
8128
8129 * auxv.c (auxv_inferior_data): Move. Change type.
8130 (auxv_inferior_data_cleanup): Remove.
8131 (invalidate_auxv_cache_inf): Rewrite.
8132 (get_auxv_inferior_data, _initialize_auxv): Update.
8133
8c42777c
TT
81342019-05-08 Tom Tromey <tom@tromey.com>
8135
8136 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8137 (symfile_debug_objfile_data_key): Change type.
8138 (symfile_debug_installed, debug_qf_has_symbols)
8139 (debug_qf_find_last_source_symtab)
8140 (debug_qf_forget_cached_source_info)
8141 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8142 (debug_qf_print_stats, debug_qf_dump)
8143 (debug_qf_expand_symtabs_for_function)
8144 (debug_qf_expand_all_symtabs)
8145 (debug_qf_expand_symtabs_with_fullname)
8146 (debug_qf_map_matching_symbols)
8147 (debug_qf_expand_symtabs_matching)
8148 (debug_qf_find_pc_sect_compunit_symtab)
8149 (debug_qf_map_symbol_filenames)
8150 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8151 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8152 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8153 (debug_sym_read_linetable, debug_sym_relocate): Update.
8154 (symfile_debug_free_objfile): Remove.
8155 (install_symfile_debug_logging, _initialize_symfile_debug):
8156 Update.
8157
5bfd760d
TT
81582019-05-08 Tom Tromey <tom@tromey.com>
8159
8160 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8161 allocate_on_obstack.
8162 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8163 (get_dwarf2_per_objfile): Update.
8164 (set_dwarf2_per_objfile): Remove.
8165 (dwarf2_has_info, dwarf2_get_section_info): Update.
8166 (dwarf2_free_objfile): Remove.
8167 (_initialize_dwarf2_read): Update.
8168
e85e19b4
TT
81692019-05-08 Tom Tromey <tom@tromey.com>
8170
8171 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8172 initializers.
8173 <unsupported_script_warning_printed,
8174 script_not_found_warning_printed>: Now bool.
8175 (auto_load_pspace_data): Change type.
8176 (~auto_load_pspace_info): Rename from
8177 auto_load_pspace_data_cleanup.
8178 (get_auto_load_pspace_data, init_loaded_scripts_info)
8179 (clear_section_scripts, maybe_print_unsupported_script_warning)
8180 (maybe_print_script_not_found_warning, _initialize_auto_load):
8181 Update.
8182
f6aa7436
TT
81832019-05-08 Tom Tromey <tom@tromey.com>
8184
8185 * objfiles.c (objfile_pspace_info): Add destructor and
8186 initializers.
8187 (objfiles_pspace_data): Change type.
8188 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8189 (get_objfile_pspace_data): Update.
8190 (objfiles_bfd_data): Change type.
8191 (get_objfile_bfd_data): Update.
8192 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8193
6ae614f6
TT
81942019-05-08 Tom Tromey <tom@tromey.com>
8195
8196 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8197 Change type.
8198 (get_catch_syscall_inferior_data): Update.
8199 (catch_syscall_inferior_data_cleanup): Remove.
8200 (_initialize_break_catch_syscall): Update.
8201
6509b8eb
TT
82022019-05-08 Tom Tromey <tom@tromey.com>
8203
8204 * inflow.c (struct terminal_info): Add destructor and
8205 initializers.
8206 (inflow_inferior_data): Change type.
8207 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8208 (get_inflow_inferior_data, inflow_inferior_exit)
8209 (swap_terminal_info, _initialize_inflow): Update.
8210
35632941
TT
82112019-05-08 Tom Tromey <tom@tromey.com>
8212
8213 * target-dcache.c (target_dcache_cleanup): Remove.
8214 (target_dcache_aspace_key): Change type.
8215 (target_dcache_init_p, target_dcache_invalidate)
8216 (target_dcache_get, target_dcache_get_or_init)
8217 (_initialize_target_dcache): Update.
8218 * dcache.h (struct dcache_deleter): New.
8219
3017b94d
TT
82202019-05-08 Tom Tromey <tom@tromey.com>
8221
8222 * symtab.c (struct symbol_cache): Add destructor and
8223 initializers.
8224 (symbol_cache_key): Move. Change type.
8225 (make_symbol_cache, free_symbol_cache): Remove.
8226 (get_symbol_cache): Update.
8227 (symbol_cache_cleanup): Remove.
8228 (ALL_PSPACES, symbol_cache_flush)
8229 (maintenance_print_symbol_cache)
8230 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8231 Update.
8232
a32ad8c5
TT
82332019-05-08 Tom Tromey <tom@tromey.com>
8234
8235 * symtab.c (struct main_info): Add destructor and initializers.
8236 (main_progspace_key): Move. Change type.
8237 (get_main_info): Update.
8238 (main_info_cleanup): Remove.
8239 (_initialize_symtab): Update.
8240
5f6e90a0
TT
82412019-05-08 Tom Tromey <tom@tromey.com>
8242
8243 * registry.h (DECLARE_REGISTRY): Define the _key class.
8244
1bd0c6e4
AB
82452019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8246
8247 * NEWS: Merge two 'New commands' sections.
8248
2228ef77
XR
82492019-05-08 Joel Brobecker <brobecker@adacore.com>
8250
8251 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8252 parameter and use Ada language definition instead.
8253 (ada_val_print_ptr): Remove unused language parameter.
8254 (ada_val_print_num): Remove language parameter and use Ada language
8255 definition instead.
8256 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8257 parameter.
8258 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8259 parameter and use Ada language definition instead.
8260 (ada_val_print_1): Update all ada_val_print_xxx calls.
8261 Remove language parameter.
8262 (ada_val_print): Update ada_val_print_1 call.
8263
60fcc1c3
TT
82642019-05-08 Tom Tromey <tromey@adacore.com>
8265
8266 * remote.c (remote_hw_watchpoint_limit)
8267 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8268 Now static.
8269
ed2b7c17
TT
82702019-05-08 Tom Tromey <tromey@adacore.com>
8271
8272 * maint.c (_initialize_maint_cmds): Move initialization code to
8273 remote.c.
8274 (watchdog, show_watchdog): Move to remote.c.
8275 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8276 "watchdog" static.
8277 (_initialize_remote): Move initialization code from maint.c.
8278 * defs.h (watchdog): Don't declare.
8279
b0be6c91
TT
82802019-05-08 Tom Tromey <tromey@adacore.com>
8281
8282 * tui/tui-interp.c: Include main.h.
8283 * interps.c: Include main.h.
8284 * main.h (interpreter_p): Declare.
8285 * defs.h (interpreter_p): Don't declare.
8286
587ee17b
TT
82872019-05-08 Tom Tromey <tromey@adacore.com>
8288
8289 * dwarf2loc.c: Include dwarf2read.h.
8290 * defs.h (read_unsigned_leb128): Don't declare.
8291 * dwarf2read.h (read_unsigned_leb128): Declare.
8292
ca1df239
TT
82932019-05-08 Tom Tromey <tromey@adacore.com>
8294
8295 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8296 method.
8297
99f20f08
TT
82982019-05-08 Tom Tromey <tromey@adacore.com>
8299
8300 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8301 when no wrap column is set.
8302
80e55b13
TT
83032019-05-08 Tom Tromey <tromey@adacore.com>
8304
8305 * c-lang.c (c_get_string): Handle non-C-style arrays.
8306
9d3421af
TT
83072019-05-08 Tom Tromey <tromey@adacore.com>
8308
8309 * typeprint.c (print_offset_data::update): Print the bit offset,
8310 not the number of bits remaining.
8311
844333e2
TT
83122019-05-08 Tom Tromey <tromey@adacore.com>
8313
8314 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8315 padding at end of comment.
8316
988915ee
TT
83172019-05-08 Tom Tromey <tromey@adacore.com>
8318
8319 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8320 Compare main types.
8321
26bfd823
TT
83222019-05-06 Tom Tromey <tom@tromey.com>
8323
8324 * common/scoped_mmap.c: Include common-defs.h.
8325 * common/scoped_mmap.h: Don't include config.h.
8326
89055eaa
TT
83272019-05-04 Tom Tromey <tom@tromey.com>
8328
8329 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8330 (struct aarch64_call_info): Add initializers.
8331 <si>: Now a std::vector.
8332 (pass_on_stack, aarch64_push_dummy_call): Update.
8333
5da01df5
TT
83342019-05-04 Simon Marchi <simon.marchi@efficios.com>
8335 Tom Tromey <tom@tromey.com>
8336
8337 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8338 (ppc_threads): Now a std::vector. Now static.
8339 (hwdebug_find_thread_points_by_tid)
8340 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8341 Update.
8342
fbdf05a1
TT
83432019-05-04 Tom Tromey <tom@tromey.com>
8344
8345 * arc-tdep.c (arc_tdesc_init): Return bool.
8346
06d16ec9
TT
83472019-05-04 Tom Tromey <tom@tromey.com>
8348
8349 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8350 Use gdb_assert_not_reached.
8351
9c056022
TT
83522019-05-04 Tom Tromey <tom@tromey.com>
8353
8354 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8355 "false".
8356
fa9c2a59
TT
83572019-05-04 Tom Tromey <tom@tromey.com>
8358
8359 * arc-tdep.c (arc_tdesc_init): Use bool.
8360
e2eb806a
TT
83612019-05-04 Tom Tromey <tom@tromey.com>
8362
8363 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8364
6fe87677
TT
83652019-05-04 Tom Tromey <tom@tromey.com>
8366
8367 * cli/cli-cmds.c (valid_command_p): Return bool.
8368
7f008c9e
TT
83692019-05-04 Tom Tromey <tom@tromey.com>
8370
8371 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8372 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8373
b6484282
RT
83742019-05-04 Raul Tambre <raul@tambre.ee>
8375
8376 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8377 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8378 operator for comparison.
8379
af97b416
TT
83802019-05-04 Tom Tromey <tom@tromey.com>
8381
8382 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8383 (lookup_partial_symbol, print_partial_symbols)
8384 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8385 (psymbol_compare): Update.
8386 (add_psymbol_to_bcache): Clear the entire psymbol.
8387 (maintenance_check_psymtabs): Update.
8388 * psympriv.h (struct partial_symbol): Don't derive from
8389 general_symbol_info.
8390 <obj_section, unrelocated_address, address,
8391 set_unrelocated_address>: Update.
8392 <ginfo>: New member.
8393 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8394 (debug_names::write_psymbols): Update.
8395
9d6d4be8
TV
83962019-05-04 Tom de Vries <tdevries@suse.de>
8397
8398 * contrib/cc-with-tweaks.sh: Support -n arg.
8399
66452beb
PW
84002019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8401
8402 * corelow.c (core_target::detach): Ensure frame cache and
8403 register caches are cleared.
8404 inferior.c (exit_inferior_1): Likewise.
8405
bde09ab7
TT
84062019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8407 Tom Tromey <tom@tromey.com>
8408
8409 * dictionary.c (collate_pending_symbols_by_language): Remove
8410 "struct" from foreach.
8411 * symtab.c (lookup_global_symbol_from_objfile)
8412 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8413 foreach.
8414 * ser-tcp.c (net_open): Remove "struct" from foreach.
8415 * objfiles.c (objfile_relocate, objfile_rebase)
8416 (objfile_has_symbols): Remove "struct" from foreach.
8417 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8418 from foreach.
8419 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8420 foreach.
8421 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8422 "struct" from foreach.
8423 * ada-lang.c (create_excep_cond_exprs)
8424 (ada_exception_catchpoint_cond_string): Remove "struct" from
8425 foreach.
8426
222a8d25
TT
84272019-05-03 Tom Tromey <tromey@adacore.com>
8428
8429 * ada-exp.y (convert_char_literal): Check suffix of each
8430 enumerator.
8431
fcd60b84
DP
84322019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8433
8434 PR ada/21406:
8435 * ada-exp.y (yywrap): Don't define.
8436 * ada-lex.l (%option): Add noyywrap
8437 (yywrap): Remove.
8438
5f2459c2
EZ
84392019-05-03 Eli Zaretskii <eliz@gnu.org>
8440
353ea2d1
EZ
8441 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8442 _WIN32_WINNT to the XP level, unless already defined to a higher
8443 level.
8444
8445 * unittests/parse-connection-spec-selftests.c:
8446 * ser-tcp.c:
8447 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8448 override.
8449
5f2459c2
EZ
8450 * symfile.c (find_separate_debug_file): Remove colon from the
8451 drive spec of DOS/Windows file names of the target, so that the
8452 file name produced from DEBUGDIR and the target's directory will
8453 be valid on DOS/Windows systems.
8454
80062eb9
AB
84552019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8456
8457 * rust-lang.c (val_print_struct): Handle printing structures
8458 containing strings.
8459
b8c05e85
TT
84602019-05-02 Tom Tromey <tromey@adacore.com>
8461
8462 * valarith.c (_initialize_valarith): Remove.
8463
4504bbde
TT
84642019-05-01 Tom Tromey <tromey@adacore.com>
8465
8466 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8467 bitfields.
8468
d48e62f4
TT
84692019-05-01 Tom Tromey <tromey@adacore.com>
8470
8471 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8472 for big-endian copies.
8473
15f18d14
AT
84742019-04-30 Ali Tamur <tamur@google.com>
8475 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8476 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8477 (read_3_bytes): New function.
8478
ab4ee614
JB
84792019-04-30 Joel Brobecker <brobecker@adacore.com>
8480
8481 * windows-nat.c (main_thread_id): Delete.
8482 (handle_output_debug_string): Replace main_thread_id by
8483 current_event.dwThreadId.
8484 (fake_create_process): Likewise.
8485 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8486 Do not set main_thread_id.
8487 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8488 current_event.dwThreadId.
8489 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8490
8ed5b76e
JB
84912019-04-30 Joel Brobecker <brobecker@adacore.com>
8492
8493 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8494 Use current_event.dwThreadId instead of main_thread_id.
8495
2ff0a947
TT
84962019-04-30 Tom Tromey <tromey@adacore.com>
8497
8498 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8499 (create_excep_cond_exprs): Iterate over program spaces.
8500 (ada_exception_catchpoint_cond_string): Examine all minimal
8501 symbols for exception types.
8502
a776957c
TT
85032019-04-30 Tom Tromey <tromey@adacore.com>
8504
8505 PR c++/24470:
8506 * dwarf2read.c (process_structure_scope): Handle case where type
8507 has template parameters but no symbol was created.
8508
bc68014d
AB
85092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8510 Chris January <chris.january@arm.com>
8511
8512 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8513 qualifier.
8514 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8515
f1fdc960
AB
85162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * f-typeprint.c (f_print_type): Update rules for printing
8519 whitespace.
8520 (f_type_print_varspec_suffix): Likewise.
8521
bf7a4de1
AB
85222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8523 Chris January <chris.january@arm.com>
8524
8525 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8526 function arguments.
8527
bbe75b9d
AB
85282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8529
8530 * f-lang.c (build_fortran_types): Change name of void type to
8531 lower case.
8532 * f-typeprint.c (f_type_print_base): Print the name of the void
8533 type, rather than a fixed string.
8534 * f-valprint.c (f_decorations): Use lower case void string.
8535
1db455a7
AB
85362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8537 Chris January <chris.january@arm.com>
8538
8539 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8540 types for Fortran.
8541
b6d03bb2
AB
85422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8543 Chris January <chris.january@arm.com>
8544 David Lecomber <david.lecomber@arm.com>
8545
8546 * f-exp.y (BINOP_INTRINSIC): New token.
8547 (exp): New parser rule handling BINOP_INTRINSIC.
8548 (f77_keywords): Add new builtin procedures.
8549 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8550 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8551 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8552 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8553 (print_unop_subexp_f): New function.
8554 (print_binop_subexp_f): New function.
8555 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8556 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8557 (dump_subexp_body_f): Likewise.
8558 (operator_check_f): Likewise.
8559 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8560 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8561
83228e93
AB
85622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8565 UNOP_KIND.
8566 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8567 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8568 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8569 (operator_length_f): New fuction.
8570 (print_subexp_f): New function.
8571 (op_name_f): New function.
8572 (dump_subexp_body_f): New function.
8573 (operator_check_f): New function.
8574 (exp_descriptor_f): Replace standard expression handling functions
8575 with new functions.
8576 * gdb/fortran-operator.def: New file.
8577 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8578 * gdb/std-operator.def: Remove UNOP_KIND.
8579
6fdcd7cc
AB
85802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * std-operator.def: Remove unbalanced, stray double quote
8583 character.
8584
2e62ab40
AB
85852019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8586 Chris January <chris.january@arm.com>
8587 Daniel Everett <daniel.everett@arm.com>
8588 Nick Forrington <nick.forrington@arm.com>
8589 Richard Bunt <richard.bunt@arm.com>
8590
8591 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8592 of depth when printing anonymous structs or unions.
8593 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8594 Don't print either the top-level value, or the children if the
8595 max-depth is exceeded.
8596 (ppscm_print_children): When printing the key of a map, allow one
8597 extra level of depth.
8598 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8599 print either the top-level value, or the children if the max-depth
8600 is exceeded.
8601 (print_children): When printing the key of a map, allow one extra
8602 level of depth.
8603 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8604 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8605 (user_print_options): Initialise max_depth field.
8606 (val_print_scalar_or_string_type_p): New function.
8607 (val_print): Check to see if the max depth has been reached.
8608 (val_print_check_max_depth): Define new function.
8609 (show_print_max_depth): New function.
8610 (_initialize_valprint): Add 'print max-depth' option.
8611 * valprint.h (struct value_print_options) <max_depth>: New field.
8612 (val_print_check_max_depth): Declare new function.
8613 * NEWS: Document new feature.
8614
4be290b2
AB
86152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8616
8617 * ada-lang.c (ada_language_defn): Initialise new field.
8618 * c-lang.c (c_is_string_type_p): New function.
8619 (c_language_defn): Initialise new field.
8620 (cplus_language_defn): Initialise new field.
8621 (asm_language_defn): Initialise new field.
8622 (minimal_language_defn): Initialise new field.
8623 * c-lang.h (c_is_string_type_p): Declare new function.
8624 * d-lang.c (d_language_defn): Initialise new field.
8625 * f-lang.c (f_is_string_type_p): New function.
8626 (f_language_defn): Initialise new field.
8627 * go-lang.c (go_is_string_type_p): New function.
8628 (go_language_defn): Initialise new field.
8629 * language.c (default_is_string_type_p): New function.
8630 (unknown_language_defn): Initialise new field.
8631 (auto_language_defn): Initialise new field.
8632 * language.h (struct language_defn) <la_is_string_type_p>: New
8633 member variable.
8634 (default_is_string_type_p): Declare new function.
8635 * m2-lang.c (m2_language_defn): Initialise new field.
8636 * objc-lang.c (objc_language_defn): Initialise new field.
8637 * opencl-lang.c (opencl_language_defn): Initialise new field.
8638 * p-lang.c (pascal_is_string_type_p): New function.
8639 (pascal_language_defn): Initialise new field.
8640 * rust-lang.c (rust_is_string_type_p): New function.
8641 (rust_language_defn): Initialise new field.
8642
721b08c6
AB
86432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8646 New field.
8647 * ada-lang.c (ada_language_defn): Initialise new field.
8648 * c-lang.c (c_language_defn): Likewise.
8649 (cplus_language_defn): Likewise.
8650 (asm_language_defn): Likewise.
8651 (minimal_language_defn): Likewise.
8652 * d-lang.c (d_language_defn): Likewise.
8653 * f-lang.c (f_language_defn): Likewise.
8654 * go-lang.c (go_language_defn): Likewise.
8655 * language.c (unknown_language_defn): Likewise.
8656 (auto_language_defn): Likewise.
8657 * m2-lang.c (m2_language_defn): Likewise.
8658 * objc-lang.c (objc_language_defn): Likewise.
8659 * opencl-lang.c (opencl_language_defn): Likewise.
8660 * p-lang.c (pascal_language_defn): Likewise.
8661 * rust-lang.c (rust_language_defn): Likewise.
8662
fc913e53
AB
86632019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * ada-lang.c (ada_is_character_type): Change return type to bool.
8666 (ada_is_string_type): Likewise.
8667 * ada-lang.h (ada_is_character_type): Update declaration
8668 (ada_is_string_type): Likewise.
8669
fa731fa0
PW
86702019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8671
8672 Support style in 'frame|thread apply'
8673
8674 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8675 * record.c (record_start, record_stop): Update callers of
8676 execute_command_to_string with false.
8677 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8678 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8679 methods.
8680 (class string_file): New constructor with term_out parameter.
8681 Override methods term_out and can_emit_style_escape. New member
8682 term_out.
8683 (class stdio_file): Override can_emit_style_escape.
8684 (class tee_file): Override term_out and can_emit_style_escape.
8685 * utils.h (can_emit_style_escape): Remove.
8686 * utils.c (can_emit_style_escape): Likewise.
8687 Update all callers of can_emit_style_escape (SOMESTREAM) to
8688 SOMESTREAM->can_emit_style_escape.
8689 * source-cache.c (source_cache::get_source_lines): Likewise.
8690 * stack.c (frame_apply_command_count): Call execute_command_to_string
8691 passing the term_out characteristic of the current gdb_stdout.
8692 * thread.c (thr_try_catch_cmd): Likewise.
8693 * top.c (execute_command_to_string): pass term_out parameter
8694 to construct the string_file for the command output.
8695 * ui-file.c (term_cli_styling): New function (most code moved
8696 from utils.c can_emit_style_escape).
8697 (string_file::string_file, string_file::can_emit_style_escape,
8698 stdio_file::can_emit_style_escape, tee_file::term_out,
8699 tee_file::can_emit_style_escape): New functions.
8700
136afab8
PW
87012019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702
8703 * NEWS: Mention the new set|show may-call-functions.
8704 * infcall.c (may_call_functions_p): New variable.
8705 (show_may_call_functions_p): New function.
8706 (call_function_by_hand_dummy): Throws an error if not
8707 may-call-functions.
8708 (_initialize_infcall): Call add_setshow_boolean_cmd for
8709 may-call-functions.
8710
725cbb63
KS
87112019-04-25 Keith Seitz <keiths@redhat.com>
8712
8713 PR c++/24367
8714 * cp-support.c (inspect_type): Don't attempt substitutions
8715 of symbol with the same name.
8716
3d1cbb78
TT
87172019-04-25 Tom Tromey <tromey@adacore.com>
8718
8719 PR gdb/24475:
8720 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8721 static.
8722
94aeb44b
TT
87232019-04-25 Tom Tromey <tromey@adacore.com>
8724
8725 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8726 rvalue reference.
8727 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8728 (gdb_xml_parser::parse): Use std::move.
8729 * python/python-internal.h (gdbpy_convert_exception): Take a const
8730 reference.
8731 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8732 std::move.
8733 * python/py-utils.c (gdbpy_convert_exception): Take a const
8734 reference.
8735 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8736 Use std::move.
8737 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8738 Use std::move.
8739 * mi/mi-main.c (mi_print_exception): Take a const reference.
8740 * main.c (handle_command_errors): Take a const reference.
8741 * linespec.c (parse_linespec): Use std::move.
8742 * infcall.c (run_inferior_call): Use std::move.
8743 (call_function_by_hand_dummy): Use std::move.
8744 * exec.c (try_open_exec_file): Use std::move.
8745 * exceptions.h (exception_print, exception_fprintf)
8746 (exception_print_same): Update.
8747 * exceptions.c (print_exception, exception_print)
8748 (exception_fprintf, exception_print_same): Change parameters to
8749 const reference.
8750 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8751 * common/new-op.c: Use std::move.
8752 * common/common-exceptions.h (struct gdb_exception): Add move
8753 constructor.
8754 (struct gdb_exception_error, struct gdb_exception_quit, struct
8755 gdb_quit_bad_alloc): Change constructor to move constructor.
8756 (throw_exception): Change parameter to rvalue reference.
8757 * common/common-exceptions.c (throw_exception): Take rvalue
8758 reference.
8759 * cli/cli-interp.c (safe_execute_command): Use std::move.
8760 * breakpoint.c (insert_bp_location, location_to_sals): Use
8761 std::move.
8762
680d7fd5
TT
87632019-04-25 Tom Tromey <tromey@adacore.com>
8764
8765 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8766 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8767 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8768 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8769 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8770 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8771 guile/scm-value.c: Use unpack.
8772 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8773 gdbscm_gdb_exception.
8774 (gdbscm_throw_gdb_exception): Likewise.
8775 (struct gdbscm_gdb_exception): New.
8776 (unpack): New function.
8777 (gdbscm_wrap): Use unpack.
8778
c6fdd8b2
TT
87792019-04-25 Tom Tromey <tromey@adacore.com>
8780
8781 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8782 (gdb_rl_callback_handler): Use std::move.
8783 * common/common-exceptions.h (struct gdb_exception): Add move
8784 assignment operator.
8785 (throw_exception_sjlj): Change "exception" to const reference.
8786 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8787 (throw_exception_sjlj): Change "exception" to const reference.
8788
cc06b668
TT
87892019-04-25 Tom Tromey <tromey@adacore.com>
8790
8791 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8792 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8793 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8794 Update.
8795 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8796 Update.
8797 * mi/mi-interp.c (mi_interp::exec): Update.
8798 * linespec.c (parse_linespec): Update.
8799 * infcall.c (run_inferior_call): Update.
8800 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8801 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8802 (gdbscm_lookup_global_symbol): Update.
8803 * guile/scm-param.c (gdbscm_parameter_value): Update.
8804 * guile/scm-frame.c (gdbscm_frame_read_register)
8805 (gdbscm_frame_read_var): Update.
8806 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8807 * exec.c (try_open_exec_file): Update.
8808 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8809 (gdb_rl_callback_handler): Update.
8810 * common/common-exceptions.h (exception_none): Don't declare.
8811 * common/common-exceptions.c (exception_none): Don't define.
8812 (struct catcher) <exception>: Update.
8813 * cli/cli-interp.c (safe_execute_command): Update.
8814 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8815
cf532bd1
AT
88162019-04-25 Ali Tamur <tamur@google.com>
8817
8818 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8819 (read_attribute_value): Likewise.
8820 (dwarf2_read_addr_index): Update comment.
8821 (read_str_index): Add DW_FORM_strx.
8822 (dwarf2_string_attr): Likewise.
8823 (dwarf2_const_value_attr): Likewise.
8824 (dump_die_shallow): Likewise.
8825 (dwarf2_fetch_constant_bytes): Likewise.
8826 (skip_form_bytes): Likewise.
8827 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8828
82433e3e
SDJ
88292019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8830
8831 PR corefiles/11608
8832 PR corefiles/18187
8833 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8834 OFFSET. Verify if current mapping contains an ELF header.
8835 (linux_find_memory_regions_full): Adjust call to
8836 dump_mapping_p.
8837
723adb65
SL
88382019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8839 Kang Li <kanglictf@gmail.com>
8840
8841 PR gdb/21600
8842
8843 * dwarf2-frame.c (read_initial_length): Be consistent about using
8844 unsigned representation of length.
8845 (decode_frame_entry_1): Likewise. Check for wraparound of
8846 end pointer as well as buffer overflow.
8847
596179f7
SDJ
88482019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8849
8850 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8851 "vq".
8852
a59240a4
TT
88532019-04-24 Tom Tromey <tromey@adacore.com>
8854
8855 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8856
f872fdbb
AB
88572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * s12z-tdep.c (s12z_unwind_pc): Delete.
8860 (s12z_unwind_sp): Delete.
8861 (s12z_gdbarch_init): Don't register deleted functions with
8862 gdbarch.
8863
b614e6f3
AB
88642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * rl78-tdep.c (rl78_unwind_sp): Delete.
8867 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8868
14faed38
AB
88692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8872 (xstormy16_unwind_pc): Delete.
8873 (xstormy16_dummy_id): Delete.
8874 (xstormy16_gdbarch_init): Don't register deleted functions with
8875 gdbarch.
8876
541aad8a
AB
88772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * vax-tdep.c (vax_unwind_pc): Delete.
8880 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8881
29222070
AB
88822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * v850-tdep.c (v850_unwind_sp): Delete.
8885 (v850_unwind_pc): Delete.
8886 (v850_dummy_id): Delete.
8887 (v850_gdbarch_init): Don't register deleted functions with
8888 gdbarch.
8889
0f534d76
AB
88902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8893 (tilegx_unwind_pc): Delete.
8894 (tilegx_unwind_dummy_id): Delete.
8895 (tilegx_gdbarch_init): Don't register deleted functions with
8896 gdbarch.
8897
1ba7b7f9
AB
88982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8901 (tic6x_dummy_id): Delete.
8902 (tic6x_gdbarch_init): Don't register deleted functions with
8903 gdbarch.
8904
d31f262c
AB
89052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8906
8907 * sparc-tdep.c (sparc_unwind_pc): Delete.
8908 (sparc32_gdbarch_init): Don't register deleted function with
8909 gdbarch.
8910
6d14d64d
AB
89112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 * sh-tdep.c (sh_unwind_sp): Delete.
8914 (sh_unwind_pc): Delete.
8915 (sh_dummy_id): Delete.
8916 (sh_gdbarch_init): Don't register deleted functions with
8917 gdbarch.
8918
a40dde9d
AB
89192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * score-tdep.c (score_unwind_sp): Delete.
8922 (score_unwind_pc): Delete.
8923 (score_dummy_id): Delete.
8924 (score_gdbarch_init): Don't register deleted functions with
8925 gdbarch.
8926
47c47d69
AB
89272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8928
8929 * rx-tdep.c (rx_unwind_pc): Delete.
8930 (rx_unwind_sp): Delete.
8931 (rx_dummy_id): Delete.
8932 (rx_gdbarch_init): Don't register deleted functions with
8933 gdbarch. Update comment.
8934
833a4480
AB
89352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8938 (rs6000_dummy_id): Delete.
8939 (rs6000_gdbarch_init): Don't register deleted functions with
8940 gdbarch.
8941
3f2cef49
AB
89422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8943
8944 * or1k-tdep.c (or1k_dummy_id): Delete.
8945 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8946
96acf884
AB
89472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8948
8949 * nios2-tdep.c (nios2_dummy_id): Delete.
8950 (nios2_unwind_sp): Delete.
8951 (nios2_gdbarch_init): Don't register deleted functions with
8952 gdbarch.
8953
ca0ab0aa
AB
89542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8955
8956 * nds32-tdep.c (nds32_dummy_id): Delete.
8957 (nds32_unwind_pc): Delete.
8958 (nds32_unwind_sp): Delete.
8959 (nds32_gdbarch_init): Don't register deleted functions with
8960 gdbarch.
8961
c8259044
AB
89622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * msp430-tdep.c (msp430_unwind_pc): Delete.
8965 (msp430_unwind_sp): Delete.
8966 (msp430_dummy_id): Delete.
8967 (msp430_gdbarch_init): Don't register deleted functions with
8968 gdbarch.
8969
27f113c8
AB
89702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * moxie-tdep.c (moxie_unwind_sp): Delete.
8973 (moxie_unwind_pc): Delete.
8974 (moxie_dummy_id): Delete.
8975 (moxie_gdbarch_init): Don't register deleted functions with
8976 gdbarch.
8977
aee6c3cd
AB
89782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8981 (mn10300_unwind_pc): Delete.
8982 (mn10300_unwind_sp): Delete.
8983 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8984 mn10300_unwind_sp.
8985 (mn10300_frame_unwind_init): Don't register deleted functions with
8986 gdbarch.
8987
8e2b5aea
AB
89882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * mep-tdep.c (mep_unwind_pc): Delete.
8991 (mep_unwind_sp): Delete.
8992 (mep_dummy_id): Delete.
8993 (mep_gdbarch_init): Don't register deleted functions with
8994 gdbarch.
8995
43cf3ede
AB
89962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8999 (m68hc11_unwind_sp): Delete.
9000 (m68hc11_gdbarch_init): Don't register deleted functions with
9001 gdbarch.
9002
5e79b7bb
AB
90032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9004
9005 * m32r-tdep.c (m32r_unwind_sp): Delete.
9006 (m32r_unwind_pc): Delete.
9007 (m32r_dummy_id): Delete.
9008 (m32r_gdbarch_init): Don't register deleted functions with
9009 gdbarch.
9010
89b268d8
AB
90112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * m32c-tdep.c (m32c_unwind_pc): Delete.
9014 (m32c_unwind_sp): Delete.
9015 (m32c_dummy_id): Delete.
9016 (m32c_gdbarch_init): Don't register deleted functions with
9017 gdbarch.
9018
946c28d2
AB
90192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9020
9021 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9022 (lm32_unwind_pc): Delete.
9023 (lm32_dummy_id): Delete.
9024 (lm32_gdbarch_init): Don't register deleted functions with
9025 gdbarch.
9026
bf12844a
AB
90272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9030 (iq2000_unwind_pc): Delete.
9031 (iq2000_dummy_id): Delete.
9032 (iq2000_gdbarch_init): Don't register deleted functions with
9033 gdbarch.
9034
ecbc06d2
AB
90352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * nds32-tdep.c (nds32_type_align): Delete.
9038 (nds32_push_dummy_call): Use type_align instead.
9039
030197b4
AB
90402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * arm-tdep.c (arm_type_align): Only handle vector override case.
9043 (arm_push_dummy_call): Use type_align.
9044 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9045
b907456c
AB
90462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9049 case.
9050 (pass_on_stack): Use type_align.
9051 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9052 function.
9053
9e97ba43
TT
90542019-04-23 Tom Tromey <tromey@adacore.com>
9055
9056 * dwarf2read.c (line_header::file_name_at): Remove unused
9057 overload.
9058
6892f601
TV
90592019-04-23 Tom de Vries <tdevries@suse.de>
9060
9061 PR gdb/24438
9062 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9063 invocation.
9064
336d760d
AT
9065
90662019-03-27 Ali Tamur <tamur@google.com>
9067
9068 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9069 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9070 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9071 (dwarf_expr_context::get_addr_index): Likewise
9072 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9073 (symbol_needs_eval_context::get_addr_index): Likewise
9074 (disassemble_dwarf_expression): Add DW_OP_addrx
9075 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9076 (read_cutu_die_from_dwo): Update comment
9077 (skip_one_die): Add DW_FORM_addrx
9078 (read_attribute_value): Likewise
9079 (var_decode_location): Add DW_OP_addrx
9080 (dwarf2_const_value_attr): Add DW_FORM_addrx
9081 (dump_die_shallow): Likewise
9082 (dwarf2_fetch_constant_bytes): Likewise
9083 (decode_locdesc): Add DW_OP_addrx
9084 (skip_form_bytes): Add DW_FORM_addrx
9085
ad9d13f8
AT
90862019-04-22 Ali Tamur <tamur@google.com>
9087
9088 * MAINTAINERS (Write After Approval): Add self.
9089
d70cc3ba
SM
90902019-04-22 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9093 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9094 (open_symbol_file_object): Likewise.
9095 (svr4_default_sos): Add info parameter.
9096 (svr4_read_so_list): Likewise.
9097 (svr4_current_sos_direct): Adjust functions calls to pass down
9098 info.
9099 (svr4_current_sos_1): Add info parameter.
9100 (svr4_current_sos): Call get_svr4_info, pass info down to
9101 svr4_current_sos_1.
9102 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9103 get_svr4_info.
9104 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9105 get_svr4_info.
9106 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9107 to get_svr4_info.
9108 (probes_table_remove_objfile_probes): Likewise.
9109 (register_solib_event_probe): Add info parameter.
9110 (solist_update_incremental): Pass info parameter down to
9111 svr4_read_so_list.
9112 (disable_probes_interface): Add info parameter.
9113 (svr4_handle_solib_event): Pass current_program_space to
9114 get_svr4_info. Adjust disable_probes_interface cleanup.
9115 (svr4_create_probe_breakpoints): Add info parameter, pass it
9116 down to register_solib_event_probe.
9117 (svr4_create_solib_event_breakpoints): Add info parameter,
9118 pass it down to svr4_create_probe_breakpoints.
9119 (enable_break): Pass info down to
9120 svr4_create_solib_event_breakpoints.
9121 (svr4_solib_create_inferior_hook): Pass current_program_space to
9122 get_svr4_info.
9123 (svr4_clear_solib): Likewise.
9124
7905fc35
PA
91252019-04-22 Pedro Alves <palves@redhat.com>
9126
9127 * solib-svr4.c (svr4_free_objfile_observer): New.
9128 (probe_and_action::objfile): New field.
9129 (probes_table_htab_remove_objfile_probes)
9130 (probes_table_remove_objfile_probes): New functions.
9131 (register_solib_event_probe): Add 'objfile' parameter. Store it
9132 in the new probe_and_action. Don't store the probe in 'lookup'.
9133 (svr4_create_probe_breakpoints): Pass objfile to
9134 register_solib_event_probe.
9135 (_initialize_svr4_solib): Register a free_objfile observer.
9136
fb881986
TT
91372019-04-19 Tom Tromey <tom@tromey.com>
9138
9139 * common/queue.h: Remove.
9140
8732db6c
TT
91412019-04-19 Tom Tromey <tom@tromey.com>
9142
9143 * event-loop.c: Don't include "common/queue.h".
9144
97dfbadd
TT
91452019-04-19 Tom Tromey <tom@tromey.com>
9146
9147 * remote.c (remote_target): Use delete.
9148 * remote-notif.h: Include <list>, not "common/queue.h".
9149 (notif_client_p): Remove typedef.
9150 (remote_notif_state): Add constructor, destructor, initializer.
9151 <notif_queue>: Now a std::list.
9152 (remote_notif_state_xfree): Don't declare.
9153 * remote-notif.c (remote_notif_process, handle_notification)
9154 (remote_notif_state_allocate): Update.
9155 (~remote_notif_state): Rename from remote_notif_state_xfree.
9156
cf250e36
TT
91572019-04-19 Tom Tromey <tom@tromey.com>
9158
9159 * symfile.c (reread_symbols): Update.
9160 * objfiles.c (objfile_register_static_link)
9161 (objfile_lookup_static_link): Update
9162 (~objfile) Don't delete static_links.
9163 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9164
61f4b350
TT
91652019-04-19 Tom Tromey <tom@tromey.com>
9166
9167 * type-stack.h (struct type_stack) <insert>: Constify string.
9168 * type-stack.c (type_stack::insert): Constify string.
9169 * gdbtypes.h (lookup_template_type): Update.
9170 (address_space_name_to_int): Update.
9171 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9172 const.
9173 (lookup_template_type): Make name const.
9174 * c-exp.y: Update rules.
9175 (lex_one_token, classify_name, classify_inner_name)
9176 (c_print_token): Update.
9177 * p-exp.y: Update rules.
9178 (yylex): Update.
9179 * f-exp.y: Update rules.
9180 (yylex): Update.
9181 * d-exp.y: Update rules.
9182 (lex_one_token, classify_name, classify_inner_name): Update.
9183 * parse.c (write_dollar_variable, copy_name): Return std::string.
9184 * parser-defs.h (copy_name): Change return type.
9185 * m2-exp.y: Update rules.
9186 (yylex): Update.
9187 * go-exp.y (lex_one_token): Update.
9188 Update rules.
9189 (classify_unsafe_function, classify_packaged_name)
9190 (classify_name, yylex): Update.
9191
189b8c2e
ST
91922019-04-19 Sergei Trofimovich <siarheit@google.com>
9193
9194 * configure.ac: add --enable-source-highlight switch.
9195 * configure: Regenerate.
9196 * top.c (print_gdb_version): plumb --enable-source-highlight
9197 status to "show configuration".
9198
8ecb59f8
TT
91992019-04-19 Tom Tromey <tromey@adacore.com>
9200
9201 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9202 Check ADA_TYPE_P.
9203 (empty_record, ada_template_to_fixed_record_type_1)
9204 (template_to_static_fixed_type)
9205 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9206 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9207 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9208 macros.
9209
62160ec9
TT
92102019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9211
9212 PR symtab/24423:
9213 * source.c (print_source_lines_base): Advance "iter" when a
9214 control character is seen.
9215
f2ae8bc8
PW
92162019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9217
9218 * inferior.h (struct infcall_suspend_state_deleter):
9219 Catch exception in destructor to avoid crash.
9220
d563b953
PW
92212019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9222
9223 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9224 close to the add_com "shell".
9225
dc34c897
TT
92262019-04-18 Tom Tromey <tromey@adacore.com>
9227
9228 * process-stratum-target.h (class process_stratum_target)
9229 <stratum>: Add "final".
9230
a12e5744
TT
92312019-04-17 Tom Tromey <tromey@adacore.com>
9232
9233 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9234 against nullptr before use.
9235
a7e559cc
AH
92362019-04-17 Alan Hayward <alan.hayward@arm.com>
9237
9238 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9239
c01660c6
AB
92402019-04-17 Jim Wilson <jimw@sifive.com>
9241 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9244 code read might fail, assume 4-byte breakpoint in that case.
9245
4aa866af
LS
92462019-04-15 Leszek Swirski <leszeks@google.com>
9247
9248 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9249 rather than a hand-rolled POD check when checking for forced MEMORY
9250 classification.
9251
48574d91
AH
92522019-04-15 Alan Hayward <alan.hayward@arm.com>
9253
9254 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9255 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9256 function.
9257 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9258 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9259 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9260 declaration.
9261
4da037ef
AH
92622019-04-15 Alan Hayward <alan.hayward@arm.com>
9263
9264 * aarch64-linux-nat.c
9265 (aarch64_linux_nat_target::thread_architecture): Add override.
9266 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9267 each VQ.
9268
ccb8d7e8
AH
92692019-04-15 Alan Hayward <alan.hayward@arm.com>
9270
9271 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9272
35add35e
AB
92732019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9274
9275 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9276 target types of size 96-bits, add some additional comments, and
9277 check that the builtin type we found was the correct size.
9278
51196bbc
EZ
92792019-04-12 Eli Zaretskii <eliz@gnu.org>
9280
9281 * utils.c (prompt_for_continue): Don't restore the styling at the
9282 end, as applied_style has the wrong value. This fixes styling in
9283 long lists of file names that are interrupted by the "Continue?"
9284 prompt.
9285
62253a61
AB
92862019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9287
9288 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9289 * c-lang.c (c_language_defn): Likewise.
9290 (cplus_language_defn): Likewise.
9291 (asm_language_defn): Likewise.
9292 (minimal_language_defn): Likewise.
9293 * d-lang.c (d_language_defn): Likewise.
9294 * f-lang.c (f_language_defn): Likewise.
9295 * go-lang.c (go_language_defn): Likewise.
9296 * language.c (unknown_language_defn): Likewise.
9297 (auto_language_defn): Likewise.
9298 * language.h (struct language_defn): Remove la_magic field.
9299 (LANG_MAGIC): Delete.
9300 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9301 * objc-lang.c (objc_language_defn): Likewise.
9302 * opencl-lang.c (opencl_language_defn): Likewise.
9303 * p-lang.c (pascal_language_defn): Likewise.
9304 * rust-lang.c (rust_language_defn): Likewise.
9305
a9158a86
AB
93062019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9307
9308 * riscv-tdep.c (riscv_type_align): New function.
9309 (riscv_type_alignment): Delete.
9310 (riscv_arg_location): Use 'type_align'.
9311 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9312
41077b66
AB
93132019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9314
9315 * gdbtypes.c (type_align): A struct with no non-static fields also
9316 has alignment of 1.
9317
9f0272f8
AB
93182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9319
9320 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9321 component to 0.
9322 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9323 member.
9324 (riscv_struct_info::analyse): New implementation using new
9325 analyse_inner member function.
9326 (riscv_struct_info::field_offset): New member function.
9327 (riscv_struct_info::m_offsets): New member variable.
9328 (riscv_struct_info::analyse_inner): New private member function,
9329 takes the old implementation of riscv_struct_info::analyse but
9330 extended to track field offsets.
9331 (riscv_call_arg_struct): Update the struct folding special cases
9332 to handle cases where empty C++ structs, which are non-zero
9333 length, are found.
9334 (riscv_arg_location): Initialise the length of each location, a
9335 non-zero length now indicates the location is in use.
9336 (riscv_push_dummy_call): Allow for the first location having a
9337 non-zero offset when setting up arguments.
9338 (riscv_return_value): Likewise, but for return values.
9339
02cf60c7
TT
93402019-04-11 Tom Tromey <tromey@adacore.com>
9341
9342 * utils.c (internal_vproblem): Make "msg" const.
9343
68811f8f
AH
93442019-04-11 Alan Hayward <alan.hayward@arm.com>
9345
9346 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9347 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9348 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9349 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9350
3f52fdbc
KB
93512019-04-10 Kevin Buettner <kevinb@redhat.com>
9352
9353 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9354 function.
9355 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9356 of amd64_collect_native_gregset.
9357 (amd64_linux_nat_target::store_registers): Likewise.
9358
e9ad22ee
TT
93592019-04-10 Tom Tromey <tom@tromey.com>
9360
9361 * symtab.c (lookup_global_symbol_from_objfile)
9362 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9363 * objfiles.h (class separate_debug_iterator): New.
9364 (class separate_debug_range): New.
9365 (struct objfile) <separate_debug_objfiles>: New method.
9366 (objfile_separate_debug_iterate): Don't declare.
9367 * objfiles.c (separate_debug_iterator::operator++): Rename from
9368 objfile_separate_debug_iterate.
9369 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9370 iterator.
9371 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9372 iterator.
9373
ee371134
TT
93742019-04-10 Tom Tromey <tom@tromey.com>
9375
9376 * symfile.c (reread_symbols): Remove old comment.
9377 * objfiles.c (free_all_objfiles): Fix a typo.
9378
bf227d61
TT
93792019-04-10 Tom Tromey <tom@tromey.com>
9380
9381 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9382 * minsyms.c (lookup_minimal_symbol): Use foreach.
9383 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9384 (lookup_minimal_symbol_solib_trampoline): Likewise.
9385 * symfile.c (reread_symbols): Use foreach.
9386
8dc433a0
TT
93872019-04-09 Ivan Begert <ivanbegert@gmail.com>
9388 Tom Tromey <tromey@adacore.com>
9389
9390 PR rust/24414:
9391 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9392 (rust_lex_int_test): Change "value" to be LONGEST.
9393 (rust_lex_tests): Add test for long integer literal.
9394
9ab8741a
TT
93952019-04-09 Tom Tromey <tromey@adacore.com>
9396
9397 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9398 to bool.
9399 (extended_remote_target::attach): Update.
9400 (remote_target::remote_notice_new_inferior): Update.
9401 (remote_target::add_current_inferior_and_thread): Update.
9402 * inferior.c (exit_inferior_1): Use "false".
9403 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9404
e242fd12
SM
94052019-04-09 Simon Marchi <simon.marchi@efficios.com>
9406
9ca1957f 9407 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9408 the "start" command.
9409
2b0c8b01
KB
94102019-04-08 Kevin Buettner <kevinb@redhat.com>
9411
9412 * python/py-inferior.c (infpy_thread_from_thread_handle):
9413 Adjust comments to reflect renaming of thread_from_thread_handle
9414 to thread_from_handle. Adjust keywords. Fix type error message.
9415 (inferior_object_methods): Add thread_from_handle. Retain
9416 thread_from_thread_handle, but mark it as deprecated.
9417
50a82723
KB
94182019-04-08 Kevin Buettner <kevinb@redhat.com>
9419
9420 * gdbthread.h (find_thread_by_handle): Revise declaration.
9421 * thread.c (find_thread_by_handle): Likewise. Adjust
9422 implementation too.
9423 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9424 support for buffer objects as handles.
9425
cf63b016
KB
94262019-04-08 Kevin Buettner <kevinb@redhat.com>
9427
9428 * python/py-infthread.c (thpy_thread_handle): New function.
9429 (thread_object_methods): Register thpy_thread_handle.
9430
3d6c6204
KB
94312019-04-08 Kevin Buettner <kevinb@redhat.com>
9432
9433 * gdbthread.h (thread_to_thread_handle): Declare.
9434 * thread.c (gdbtypes.h): Include.
9435 (thread_to_thread_handle): New function.
9436
9437 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9438 (target_thread_info_to_thread_handle): Declare.
9439 * target.c (target_thread_info_to_thread_handle): New function.
9440 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9441 * target-delegates.c: Regenerate.
9442
9443 * linux-thread-db.c (class thread_db_target): Add method
9444 thread_info_to_thread_handle.
9445 (thread_db_target::thread_info_to_thread_handle): Define.
9446 * remote.c (class remote_target): Add new method
9447 thread_info_to_thread_handle.
9448 (remote_target::thread_info_to_thread_handle): Define.
9449
56be6ea8
PA
94502019-04-08 Pedro Alves <palves@redhat.com>
9451
9452 * common/common-exceptions.c (throw_exception): Don't create
9453 named object to throw; throw directly.
9454 (throw_it): Likewise. Don't initialize gdb_exception::message
9455 here, with new; pass FMT and AP to the ctor instead.
9456 * common/common-exceptions.h: Include <string>.
9457 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9458 const char *, va_list)): New ctor. Use std::make_shared.
9459 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9460 errors)): Delete.
9461 (gdb_exception_error::gdb_exception_error(enum errors, const char
9462 *, va_list)): New.
9463 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9464 Add assertion.
9465 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9466 errors)): Delete.
9467 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9468 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9469 Add assertion.
9470
eedc3f4f
TT
94712019-04-08 Tom Tromey <tom@tromey.com>
9472
9473 * valops.c (value_rtti_indirect_type): Replace throw_exception
9474 with throw.
9475 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9476 with throw.
9477 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9478 throw.
9479 * target.c (target_translate_tls_address): Replace throw_exception
9480 with throw.
9481 * stack.c (frame_apply_command_count): Replace throw_exception
9482 with throw.
9483 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9484 throw.
9485 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9486 with throw.
9487 * rs6000-tdep.c (rs6000_frame_cache)
9488 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9489 * remote.c: Replace throw_exception with throw.
9490 * record-full.c (record_full_message, record_full_wait_1)
9491 (record_full_restore): Replace throw_exception with throw.
9492 * record-btrace.c:
9493 (get_thread_current_frame_id, record_btrace_start_replaying)
9494 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9495 (cmd_record_btrace_start): Replace throw_exception with throw.
9496 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9497 throw.
9498 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9499 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9500 * linespec.c:
9501 (find_linespec_symbols): Replace throw_exception with throw.
9502 * infrun.c (displaced_step_prepare, resume): Replace
9503 throw_exception with throw.
9504 * infcmd.c (post_create_inferior): Replace throw_exception with
9505 throw.
9506 * inf-loop.c (inferior_event_handler): Replace throw_exception
9507 with throw.
9508 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9509 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9510 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9511 (get_prev_frame_always, get_frame_pc_if_available)
9512 (get_frame_address_in_block_if_available, get_frame_language):
9513 Replace throw_exception with throw.
9514 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9515 throw_exception with throw.
9516 * eval.c (fetch_subexp_value, evaluate_var_value)
9517 (evaluate_funcall, evaluate_subexp_standard): Replace
9518 throw_exception with throw.
9519 * dwarf2loc.c (call_site_find_chain)
9520 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9521 Replace throw_exception with throw.
9522 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9523 with throw.
9524 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9525 throw.
9526 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9527 * completer.c (complete_line_internal): Replace throw_exception
9528 with throw.
9529 * compile/compile-object-run.c (compile_object_run): Replace
9530 throw_exception with throw.
9531 * cli/cli-script.c (process_next_line): Replace throw_exception
9532 with throw.
9533 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9534 (btrace_enable, btrace_maint_update_pt_packets): Replace
9535 throw_exception with throw.
9536 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9537 throw_exception with throw.
9538 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9539 throw_exception with throw.
9540 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9541 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9542 * aarch64-tdep.c (aarch64_make_prologue_cache)
9543 (aarch64_make_stub_cache): Replace throw_exception with throw.
9544
26003a20
TT
95452019-04-08 Tom Tromey <tom@tromey.com>
9546
9547 * common/common-exceptions.c (throw_exception): Rename from
9548 throw_exception_cxx. Remove old copy. Make argument const.
9549 (throw_it): Create and throw exception objects directly.
9550 * common/common-exceptions.h (throw_exception): Make argument
9551 const.
9552 (struct gdb_exception_error): Add constructor.
9553 (struct gdb_exception_quit): Add constructor.
9554
d272eb37
TT
95552019-04-08 Tom Tromey <tom@tromey.com>
9556
9557 * common/common-exceptions.h (exception_rethrow): Don't declare.
9558 (TRY_SJLJ): Update comment.
9559 (TRY, CATCH, END_CATCH): Remove.
9560 * common/common-exceptions.c (exception_rethrow): Remove.
9561
230d2906
TT
95622019-04-08 Tom Tromey <tom@tromey.com>
9563
9564 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9565 Remove.
9566 (gdb_exception_error): Rename from
9567 gdb_exception_RETURN_MASK_ERROR.
9568 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9569 (gdb_quit_bad_alloc): Update.
9570 * aarch64-tdep.c: Update.
9571 * ada-lang.c: Update.
9572 * ada-typeprint.c: Update.
9573 * ada-valprint.c: Update.
9574 * amd64-tdep.c: Update.
9575 * arch-utils.c: Update.
9576 * break-catch-throw.c: Update.
9577 * breakpoint.c: Update.
9578 * btrace.c: Update.
9579 * c-varobj.c: Update.
9580 * cli/cli-cmds.c: Update.
9581 * cli/cli-interp.c: Update.
9582 * cli/cli-script.c: Update.
9583 * common/common-exceptions.c: Update.
9584 * common/new-op.c: Update.
9585 * common/selftest.c: Update.
9586 * compile/compile-c-symbols.c: Update.
9587 * compile/compile-cplus-symbols.c: Update.
9588 * compile/compile-object-load.c: Update.
9589 * compile/compile-object-run.c: Update.
9590 * completer.c: Update.
9591 * corelow.c: Update.
9592 * cp-abi.c: Update.
9593 * cp-support.c: Update.
9594 * cp-valprint.c: Update.
9595 * darwin-nat.c: Update.
9596 * disasm-selftests.c: Update.
9597 * dtrace-probe.c: Update.
9598 * dwarf-index-cache.c: Update.
9599 * dwarf-index-write.c: Update.
9600 * dwarf2-frame-tailcall.c: Update.
9601 * dwarf2-frame.c: Update.
9602 * dwarf2loc.c: Update.
9603 * dwarf2read.c: Update.
9604 * eval.c: Update.
9605 * event-loop.c: Update.
9606 * event-top.c: Update.
9607 * exec.c: Update.
9608 * f-valprint.c: Update.
9609 * fbsd-tdep.c: Update.
9610 * frame-unwind.c: Update.
9611 * frame.c: Update.
9612 * gdbtypes.c: Update.
9613 * gnu-v3-abi.c: Update.
9614 * guile/guile-internal.h: Update.
9615 * guile/scm-block.c: Update.
9616 * guile/scm-breakpoint.c: Update.
9617 * guile/scm-cmd.c: Update.
9618 * guile/scm-disasm.c: Update.
9619 * guile/scm-frame.c: Update.
9620 * guile/scm-lazy-string.c: Update.
9621 * guile/scm-math.c: Update.
9622 * guile/scm-param.c: Update.
9623 * guile/scm-ports.c: Update.
9624 * guile/scm-pretty-print.c: Update.
9625 * guile/scm-symbol.c: Update.
9626 * guile/scm-symtab.c: Update.
9627 * guile/scm-type.c: Update.
9628 * guile/scm-value.c: Update.
9629 * i386-linux-tdep.c: Update.
9630 * i386-tdep.c: Update.
9631 * inf-loop.c: Update.
9632 * infcall.c: Update.
9633 * infcmd.c: Update.
9634 * infrun.c: Update.
9635 * jit.c: Update.
9636 * language.c: Update.
9637 * linespec.c: Update.
9638 * linux-fork.c: Update.
9639 * linux-nat.c: Update.
9640 * linux-tdep.c: Update.
9641 * linux-thread-db.c: Update.
9642 * main.c: Update.
9643 * mi/mi-cmd-break.c: Update.
9644 * mi/mi-cmd-stack.c: Update.
9645 * mi/mi-interp.c: Update.
9646 * mi/mi-main.c: Update.
9647 * objc-lang.c: Update.
9648 * p-valprint.c: Update.
9649 * parse.c: Update.
9650 * ppc-linux-tdep.c: Update.
9651 * printcmd.c: Update.
9652 * python/py-arch.c: Update.
9653 * python/py-breakpoint.c: Update.
9654 * python/py-cmd.c: Update.
9655 * python/py-finishbreakpoint.c: Update.
9656 * python/py-frame.c: Update.
9657 * python/py-framefilter.c: Update.
9658 * python/py-gdb-readline.c: Update.
9659 * python/py-inferior.c: Update.
9660 * python/py-infthread.c: Update.
9661 * python/py-lazy-string.c: Update.
9662 * python/py-linetable.c: Update.
9663 * python/py-objfile.c: Update.
9664 * python/py-param.c: Update.
9665 * python/py-prettyprint.c: Update.
9666 * python/py-progspace.c: Update.
9667 * python/py-record-btrace.c: Update.
9668 * python/py-record.c: Update.
9669 * python/py-symbol.c: Update.
9670 * python/py-type.c: Update.
9671 * python/py-unwind.c: Update.
9672 * python/py-utils.c: Update.
9673 * python/py-value.c: Update.
9674 * python/python.c: Update.
9675 * record-btrace.c: Update.
9676 * record-full.c: Update.
9677 * remote-fileio.c: Update.
9678 * remote.c: Update.
9679 * riscv-tdep.c: Update.
9680 * rs6000-aix-tdep.c: Update.
9681 * rs6000-tdep.c: Update.
9682 * rust-exp.y: Update.
9683 * rust-lang.c: Update.
9684 * s390-tdep.c: Update.
9685 * selftest-arch.c: Update.
9686 * solib-dsbt.c: Update.
9687 * solib-frv.c: Update.
9688 * solib-spu.c: Update.
9689 * solib-svr4.c: Update.
9690 * solib.c: Update.
9691 * sparc64-linux-tdep.c: Update.
9692 * stack.c: Update.
9693 * symfile-mem.c: Update.
9694 * symmisc.c: Update.
9695 * target.c: Update.
9696 * thread.c: Update.
9697 * top.c: Update.
9698 * tracefile-tfile.c: Update.
9699 * tui/tui.c: Update.
9700 * typeprint.c: Update.
9701 * unittests/cli-utils-selftests.c: Update.
9702 * unittests/parse-connection-spec-selftests.c: Update.
9703 * valops.c: Update.
9704 * valprint.c: Update.
9705 * value.c: Update.
9706 * varobj.c: Update.
9707 * windows-nat.c: Update.
9708 * x86-linux-nat.c: Update.
9709 * xml-support.c: Update.
9710
a70b8144
TT
97112019-04-08 Tom Tromey <tom@tromey.com>
9712
9713 * xml-support.c: Use C++ exception handling.
9714 * x86-linux-nat.c: Use C++ exception handling.
9715 * windows-nat.c: Use C++ exception handling.
9716 * varobj.c: Use C++ exception handling.
9717 * value.c: Use C++ exception handling.
9718 * valprint.c: Use C++ exception handling.
9719 * valops.c: Use C++ exception handling.
9720 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9721 handling.
9722 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9723 * typeprint.c: Use C++ exception handling.
9724 * tui/tui.c: Use C++ exception handling.
9725 * tracefile-tfile.c: Use C++ exception handling.
9726 * top.c: Use C++ exception handling.
9727 * thread.c: Use C++ exception handling.
9728 * target.c: Use C++ exception handling.
9729 * symmisc.c: Use C++ exception handling.
9730 * symfile-mem.c: Use C++ exception handling.
9731 * stack.c: Use C++ exception handling.
9732 * sparc64-linux-tdep.c: Use C++ exception handling.
9733 * solib.c: Use C++ exception handling.
9734 * solib-svr4.c: Use C++ exception handling.
9735 * solib-spu.c: Use C++ exception handling.
9736 * solib-frv.c: Use C++ exception handling.
9737 * solib-dsbt.c: Use C++ exception handling.
9738 * selftest-arch.c: Use C++ exception handling.
9739 * s390-tdep.c: Use C++ exception handling.
9740 * rust-lang.c: Use C++ exception handling.
9741 * rust-exp.y: Use C++ exception handling.
9742 * rs6000-tdep.c: Use C++ exception handling.
9743 * rs6000-aix-tdep.c: Use C++ exception handling.
9744 * riscv-tdep.c: Use C++ exception handling.
9745 * remote.c: Use C++ exception handling.
9746 * remote-fileio.c: Use C++ exception handling.
9747 * record-full.c: Use C++ exception handling.
9748 * record-btrace.c: Use C++ exception handling.
9749 * python/python.c: Use C++ exception handling.
9750 * python/py-value.c: Use C++ exception handling.
9751 * python/py-utils.c: Use C++ exception handling.
9752 * python/py-unwind.c: Use C++ exception handling.
9753 * python/py-type.c: Use C++ exception handling.
9754 * python/py-symbol.c: Use C++ exception handling.
9755 * python/py-record.c: Use C++ exception handling.
9756 * python/py-record-btrace.c: Use C++ exception handling.
9757 * python/py-progspace.c: Use C++ exception handling.
9758 * python/py-prettyprint.c: Use C++ exception handling.
9759 * python/py-param.c: Use C++ exception handling.
9760 * python/py-objfile.c: Use C++ exception handling.
9761 * python/py-linetable.c: Use C++ exception handling.
9762 * python/py-lazy-string.c: Use C++ exception handling.
9763 * python/py-infthread.c: Use C++ exception handling.
9764 * python/py-inferior.c: Use C++ exception handling.
9765 * python/py-gdb-readline.c: Use C++ exception handling.
9766 * python/py-framefilter.c: Use C++ exception handling.
9767 * python/py-frame.c: Use C++ exception handling.
9768 * python/py-finishbreakpoint.c: Use C++ exception handling.
9769 * python/py-cmd.c: Use C++ exception handling.
9770 * python/py-breakpoint.c: Use C++ exception handling.
9771 * python/py-arch.c: Use C++ exception handling.
9772 * printcmd.c: Use C++ exception handling.
9773 * ppc-linux-tdep.c: Use C++ exception handling.
9774 * parse.c: Use C++ exception handling.
9775 * p-valprint.c: Use C++ exception handling.
9776 * objc-lang.c: Use C++ exception handling.
9777 * mi/mi-main.c: Use C++ exception handling.
9778 * mi/mi-interp.c: Use C++ exception handling.
9779 * mi/mi-cmd-stack.c: Use C++ exception handling.
9780 * mi/mi-cmd-break.c: Use C++ exception handling.
9781 * main.c: Use C++ exception handling.
9782 * linux-thread-db.c: Use C++ exception handling.
9783 * linux-tdep.c: Use C++ exception handling.
9784 * linux-nat.c: Use C++ exception handling.
9785 * linux-fork.c: Use C++ exception handling.
9786 * linespec.c: Use C++ exception handling.
9787 * language.c: Use C++ exception handling.
9788 * jit.c: Use C++ exception handling.
9789 * infrun.c: Use C++ exception handling.
9790 * infcmd.c: Use C++ exception handling.
9791 * infcall.c: Use C++ exception handling.
9792 * inf-loop.c: Use C++ exception handling.
9793 * i386-tdep.c: Use C++ exception handling.
9794 * i386-linux-tdep.c: Use C++ exception handling.
9795 * guile/scm-value.c: Use C++ exception handling.
9796 * guile/scm-type.c: Use C++ exception handling.
9797 * guile/scm-symtab.c: Use C++ exception handling.
9798 * guile/scm-symbol.c: Use C++ exception handling.
9799 * guile/scm-pretty-print.c: Use C++ exception handling.
9800 * guile/scm-ports.c: Use C++ exception handling.
9801 * guile/scm-param.c: Use C++ exception handling.
9802 * guile/scm-math.c: Use C++ exception handling.
9803 * guile/scm-lazy-string.c: Use C++ exception handling.
9804 * guile/scm-frame.c: Use C++ exception handling.
9805 * guile/scm-disasm.c: Use C++ exception handling.
9806 * guile/scm-cmd.c: Use C++ exception handling.
9807 * guile/scm-breakpoint.c: Use C++ exception handling.
9808 * guile/scm-block.c: Use C++ exception handling.
9809 * guile/guile-internal.h: Use C++ exception handling.
9810 * gnu-v3-abi.c: Use C++ exception handling.
9811 * gdbtypes.c: Use C++ exception handling.
9812 * frame.c: Use C++ exception handling.
9813 * frame-unwind.c: Use C++ exception handling.
9814 * fbsd-tdep.c: Use C++ exception handling.
9815 * f-valprint.c: Use C++ exception handling.
9816 * exec.c: Use C++ exception handling.
9817 * event-top.c: Use C++ exception handling.
9818 * event-loop.c: Use C++ exception handling.
9819 * eval.c: Use C++ exception handling.
9820 * dwarf2read.c: Use C++ exception handling.
9821 * dwarf2loc.c: Use C++ exception handling.
9822 * dwarf2-frame.c: Use C++ exception handling.
9823 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9824 * dwarf-index-write.c: Use C++ exception handling.
9825 * dwarf-index-cache.c: Use C++ exception handling.
9826 * dtrace-probe.c: Use C++ exception handling.
9827 * disasm-selftests.c: Use C++ exception handling.
9828 * darwin-nat.c: Use C++ exception handling.
9829 * cp-valprint.c: Use C++ exception handling.
9830 * cp-support.c: Use C++ exception handling.
9831 * cp-abi.c: Use C++ exception handling.
9832 * corelow.c: Use C++ exception handling.
9833 * completer.c: Use C++ exception handling.
9834 * compile/compile-object-run.c: Use C++ exception handling.
9835 * compile/compile-object-load.c: Use C++ exception handling.
9836 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9837 * compile/compile-c-symbols.c: Use C++ exception handling.
9838 * common/selftest.c: Use C++ exception handling.
9839 * common/new-op.c: Use C++ exception handling.
9840 * cli/cli-script.c: Use C++ exception handling.
9841 * cli/cli-interp.c: Use C++ exception handling.
9842 * cli/cli-cmds.c: Use C++ exception handling.
9843 * c-varobj.c: Use C++ exception handling.
9844 * btrace.c: Use C++ exception handling.
9845 * breakpoint.c: Use C++ exception handling.
9846 * break-catch-throw.c: Use C++ exception handling.
9847 * arch-utils.c: Use C++ exception handling.
9848 * amd64-tdep.c: Use C++ exception handling.
9849 * ada-valprint.c: Use C++ exception handling.
9850 * ada-typeprint.c: Use C++ exception handling.
9851 * ada-lang.c: Use C++ exception handling.
9852 * aarch64-tdep.c: Use C++ exception handling.
9853
3d6e9d23
TT
98542019-04-08 Tom Tromey <tom@tromey.com>
9855
9856 * xml-support.c (gdb_xml_parser::parse): Update.
9857 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9858 * value.c (show_convenience): Update.
9859 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9860 (test_parse_flags_qcs): Update.
9861 * thread.c (thr_try_catch_cmd): Update.
9862 * target.c (target_translate_tls_address): Update.
9863 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9864 (info_frame_command_core, frame_apply_command_count): Update.
9865 * rust-exp.y (rust_lex_exception_test): Update.
9866 * riscv-tdep.c (riscv_print_one_register_info): Update.
9867 * remote.c (remote_target::enable_btrace): Update.
9868 * record-btrace.c (record_btrace_enable_warn): Update.
9869 * python/py-utils.c (gdbpy_convert_exception): Update.
9870 * printcmd.c (do_one_display, print_variable_and_value): Update.
9871 * mi/mi-main.c (mi_print_exception): Update.
9872 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9873 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9874 * linux-nat.c (linux_nat_target::attach): Update.
9875 * linux-fork.c (class scoped_switch_fork_info): Update.
9876 * infrun.c (displaced_step_prepare): Update.
9877 * infcall.c (call_function_by_hand_dummy): Update.
9878 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9879 * gnu-v3-abi.c (print_one_vtable): Update.
9880 * frame.c (get_prev_frame_always): Update.
9881 * f-valprint.c (info_common_command_for_block): Update.
9882 * exec.c (try_open_exec_file): Update.
9883 * exceptions.c (print_exception, exception_print)
9884 (exception_fprintf, exception_print_same): Update.
9885 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9886 * dwarf-index-cache.c (index_cache::store)
9887 (index_cache::lookup_gdb_index): Update.
9888 * darwin-nat.c (maybe_cache_shell): Update.
9889 * cp-valprint.c (cp_print_value_fields): Update.
9890 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9891 (gcc_cplus_symbol_address): Update.
9892 * compile/compile-c-symbols.c (gcc_convert_symbol)
9893 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9894 * common/selftest.c: Update.
9895 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9896 a std::string.
9897 (exception_try_scope_entry, exception_try_scope_exit): Don't
9898 declare.
9899 (struct exception_try_scope): Remove.
9900 (TRY): Don't use exception_try_scope.
9901 (struct gdb_exception): Add constructor, operator=.
9902 <what>: New method.
9903 (struct gdb_exception_RETURN_MASK_ALL)
9904 (struct gdb_exception_RETURN_MASK_ERROR)
9905 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9906 (struct gdb_quit_bad_alloc): Update.
9907 * common/common-exceptions.c (exception_none): Change
9908 initializer.
9909 (struct catcher) <state, exception>: Initialize inline.
9910 <prev>: Remove member.
9911 (current_catcher): Remove.
9912 (catchers): New global.
9913 (exceptions_state_mc_init): Simplify.
9914 (catcher_pop): Remove.
9915 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9916 (try_scope_depth, exception_try_scope_entry)
9917 (exception_try_scope_exit): Remove.
9918 (throw_exception_sjlj): Update.
9919 (exception_messages, exception_messages_size): Remove.
9920 (throw_it): Simplify.
9921 (gdb_exception_sliced_copy): Remove.
9922 (throw_exception_cxx): Update.
9923 * cli/cli-script.c (script_from_file): Update.
9924 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9925 Update.
9926 * ada-valprint.c (ada_val_print): Update.
9927 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9928 (create_excep_cond_exprs): Update.
9929
c5c10118
TT
99302019-04-08 Tom Tromey <tom@tromey.com>
9931
9932 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9933 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9934 (TRY, CATCH, END_CATCH): Remove some definitions.
9935 * common/common-exceptions.c: Don't use GDB_XCPT.
9936 (catcher_list_size): Remove.
9937 (throw_exception, throw_it): Simplify.
9938
4de283e4
TT
99392019-04-05 Tom Tromey <tom@tromey.com>
9940
9941 Revert the header-sorting patch.
9942 * ft32-tdep.c: Revert.
9943 * frv-tdep.c: Revert.
9944 * frv-linux-tdep.c: Revert.
9945 * frame.c: Revert.
9946 * frame-unwind.c: Revert.
9947 * frame-base.c: Revert.
9948 * fork-child.c: Revert.
9949 * findvar.c: Revert.
9950 * findcmd.c: Revert.
9951 * filesystem.c: Revert.
9952 * filename-seen-cache.h: Revert.
9953 * filename-seen-cache.c: Revert.
9954 * fbsd-tdep.c: Revert.
9955 * fbsd-nat.h: Revert.
9956 * fbsd-nat.c: Revert.
9957 * f-valprint.c: Revert.
9958 * f-typeprint.c: Revert.
9959 * f-lang.c: Revert.
9960 * extension.h: Revert.
9961 * extension.c: Revert.
9962 * extension-priv.h: Revert.
9963 * expprint.c: Revert.
9964 * exec.h: Revert.
9965 * exec.c: Revert.
9966 * exceptions.c: Revert.
9967 * event-top.c: Revert.
9968 * event-loop.c: Revert.
9969 * eval.c: Revert.
9970 * elfread.c: Revert.
9971 * dwarf2read.h: Revert.
9972 * dwarf2read.c: Revert.
9973 * dwarf2loc.c: Revert.
9974 * dwarf2expr.h: Revert.
9975 * dwarf2expr.c: Revert.
9976 * dwarf2-frame.c: Revert.
9977 * dwarf2-frame-tailcall.c: Revert.
9978 * dwarf-index-write.h: Revert.
9979 * dwarf-index-write.c: Revert.
9980 * dwarf-index-common.c: Revert.
9981 * dwarf-index-cache.h: Revert.
9982 * dwarf-index-cache.c: Revert.
9983 * dummy-frame.c: Revert.
9984 * dtrace-probe.c: Revert.
9985 * disasm.h: Revert.
9986 * disasm.c: Revert.
9987 * disasm-selftests.c: Revert.
9988 * dictionary.c: Revert.
9989 * dicos-tdep.c: Revert.
9990 * demangle.c: Revert.
9991 * dcache.h: Revert.
9992 * dcache.c: Revert.
9993 * darwin-nat.h: Revert.
9994 * darwin-nat.c: Revert.
9995 * darwin-nat-info.c: Revert.
9996 * d-valprint.c: Revert.
9997 * d-namespace.c: Revert.
9998 * d-lang.c: Revert.
9999 * ctf.c: Revert.
10000 * csky-tdep.c: Revert.
10001 * csky-linux-tdep.c: Revert.
10002 * cris-tdep.c: Revert.
10003 * cris-linux-tdep.c: Revert.
10004 * cp-valprint.c: Revert.
10005 * cp-support.c: Revert.
10006 * cp-namespace.c: Revert.
10007 * cp-abi.c: Revert.
10008 * corelow.c: Revert.
10009 * corefile.c: Revert.
10010 * continuations.c: Revert.
10011 * completer.h: Revert.
10012 * completer.c: Revert.
10013 * complaints.c: Revert.
10014 * coffread.c: Revert.
10015 * coff-pe-read.c: Revert.
10016 * cli-out.h: Revert.
10017 * cli-out.c: Revert.
10018 * charset.c: Revert.
10019 * c-varobj.c: Revert.
10020 * c-valprint.c: Revert.
10021 * c-typeprint.c: Revert.
10022 * c-lang.c: Revert.
10023 * buildsym.c: Revert.
10024 * buildsym-legacy.c: Revert.
10025 * build-id.h: Revert.
10026 * build-id.c: Revert.
10027 * btrace.c: Revert.
10028 * bsd-uthread.c: Revert.
10029 * breakpoint.h: Revert.
10030 * breakpoint.c: Revert.
10031 * break-catch-throw.c: Revert.
10032 * break-catch-syscall.c: Revert.
10033 * break-catch-sig.c: Revert.
10034 * blockframe.c: Revert.
10035 * block.c: Revert.
10036 * bfin-tdep.c: Revert.
10037 * bfin-linux-tdep.c: Revert.
10038 * bfd-target.c: Revert.
10039 * bcache.c: Revert.
10040 * ax-general.c: Revert.
10041 * ax-gdb.h: Revert.
10042 * ax-gdb.c: Revert.
10043 * avr-tdep.c: Revert.
10044 * auxv.c: Revert.
10045 * auto-load.c: Revert.
10046 * arm-wince-tdep.c: Revert.
10047 * arm-tdep.c: Revert.
10048 * arm-symbian-tdep.c: Revert.
10049 * arm-pikeos-tdep.c: Revert.
10050 * arm-obsd-tdep.c: Revert.
10051 * arm-nbsd-tdep.c: Revert.
10052 * arm-nbsd-nat.c: Revert.
10053 * arm-linux-tdep.c: Revert.
10054 * arm-linux-nat.c: Revert.
10055 * arm-fbsd-tdep.c: Revert.
10056 * arm-fbsd-nat.c: Revert.
10057 * arm-bsd-tdep.c: Revert.
10058 * arch-utils.c: Revert.
10059 * arc-tdep.c: Revert.
10060 * arc-newlib-tdep.c: Revert.
10061 * annotate.h: Revert.
10062 * annotate.c: Revert.
10063 * amd64-windows-tdep.c: Revert.
10064 * amd64-windows-nat.c: Revert.
10065 * amd64-tdep.c: Revert.
10066 * amd64-sol2-tdep.c: Revert.
10067 * amd64-obsd-tdep.c: Revert.
10068 * amd64-obsd-nat.c: Revert.
10069 * amd64-nbsd-tdep.c: Revert.
10070 * amd64-nbsd-nat.c: Revert.
10071 * amd64-nat.c: Revert.
10072 * amd64-linux-tdep.c: Revert.
10073 * amd64-linux-nat.c: Revert.
10074 * amd64-fbsd-tdep.c: Revert.
10075 * amd64-fbsd-nat.c: Revert.
10076 * amd64-dicos-tdep.c: Revert.
10077 * amd64-darwin-tdep.c: Revert.
10078 * amd64-bsd-nat.c: Revert.
10079 * alpha-tdep.c: Revert.
10080 * alpha-obsd-tdep.c: Revert.
10081 * alpha-nbsd-tdep.c: Revert.
10082 * alpha-mdebug-tdep.c: Revert.
10083 * alpha-linux-tdep.c: Revert.
10084 * alpha-linux-nat.c: Revert.
10085 * alpha-bsd-tdep.c: Revert.
10086 * alpha-bsd-nat.c: Revert.
10087 * aix-thread.c: Revert.
10088 * agent.c: Revert.
10089 * addrmap.c: Revert.
10090 * ada-varobj.c: Revert.
10091 * ada-valprint.c: Revert.
10092 * ada-typeprint.c: Revert.
10093 * ada-tasks.c: Revert.
10094 * ada-lang.c: Revert.
10095 * aarch64-tdep.c: Revert.
10096 * aarch64-ravenscar-thread.c: Revert.
10097 * aarch64-newlib-tdep.c: Revert.
10098 * aarch64-linux-tdep.c: Revert.
10099 * aarch64-linux-nat.c: Revert.
10100 * aarch64-fbsd-tdep.c: Revert.
10101 * aarch64-fbsd-nat.c: Revert.
10102 * aarch32-linux-nat.c: Revert.
10103
d55e5aa6
TT
101042019-04-05 Tom Tromey <tom@tromey.com>
10105
10106 * ft32-tdep.c: Sort headers.
10107 * frv-tdep.c: Sort headers.
10108 * frv-linux-tdep.c: Sort headers.
10109 * frame.c: Sort headers.
10110 * frame-unwind.c: Sort headers.
10111 * frame-base.c: Sort headers.
10112 * fork-child.c: Sort headers.
10113 * findvar.c: Sort headers.
10114 * findcmd.c: Sort headers.
10115 * filesystem.c: Sort headers.
10116 * filename-seen-cache.h: Sort headers.
10117 * filename-seen-cache.c: Sort headers.
10118 * fbsd-tdep.c: Sort headers.
10119 * fbsd-nat.h: Sort headers.
10120 * fbsd-nat.c: Sort headers.
10121 * f-valprint.c: Sort headers.
10122 * f-typeprint.c: Sort headers.
10123 * f-lang.c: Sort headers.
10124 * extension.h: Sort headers.
10125 * extension.c: Sort headers.
10126 * extension-priv.h: Sort headers.
10127 * expprint.c: Sort headers.
10128 * exec.h: Sort headers.
10129 * exec.c: Sort headers.
10130 * exceptions.c: Sort headers.
10131 * event-top.c: Sort headers.
10132 * event-loop.c: Sort headers.
10133 * eval.c: Sort headers.
10134 * elfread.c: Sort headers.
10135 * dwarf2read.h: Sort headers.
10136 * dwarf2read.c: Sort headers.
10137 * dwarf2loc.c: Sort headers.
10138 * dwarf2expr.h: Sort headers.
10139 * dwarf2expr.c: Sort headers.
10140 * dwarf2-frame.c: Sort headers.
10141 * dwarf2-frame-tailcall.c: Sort headers.
10142 * dwarf-index-write.h: Sort headers.
10143 * dwarf-index-write.c: Sort headers.
10144 * dwarf-index-common.c: Sort headers.
10145 * dwarf-index-cache.h: Sort headers.
10146 * dwarf-index-cache.c: Sort headers.
10147 * dummy-frame.c: Sort headers.
10148 * dtrace-probe.c: Sort headers.
10149 * disasm.h: Sort headers.
10150 * disasm.c: Sort headers.
10151 * disasm-selftests.c: Sort headers.
10152 * dictionary.c: Sort headers.
10153 * dicos-tdep.c: Sort headers.
10154 * demangle.c: Sort headers.
10155 * dcache.h: Sort headers.
10156 * dcache.c: Sort headers.
10157 * darwin-nat.h: Sort headers.
10158 * darwin-nat.c: Sort headers.
10159 * darwin-nat-info.c: Sort headers.
10160 * d-valprint.c: Sort headers.
10161 * d-namespace.c: Sort headers.
10162 * d-lang.c: Sort headers.
10163 * ctf.c: Sort headers.
10164 * csky-tdep.c: Sort headers.
10165 * csky-linux-tdep.c: Sort headers.
10166 * cris-tdep.c: Sort headers.
10167 * cris-linux-tdep.c: Sort headers.
10168 * cp-valprint.c: Sort headers.
10169 * cp-support.c: Sort headers.
10170 * cp-namespace.c: Sort headers.
10171 * cp-abi.c: Sort headers.
10172 * corelow.c: Sort headers.
10173 * corefile.c: Sort headers.
10174 * continuations.c: Sort headers.
10175 * completer.h: Sort headers.
10176 * completer.c: Sort headers.
10177 * complaints.c: Sort headers.
10178 * coffread.c: Sort headers.
10179 * coff-pe-read.c: Sort headers.
10180 * cli-out.h: Sort headers.
10181 * cli-out.c: Sort headers.
10182 * charset.c: Sort headers.
10183 * c-varobj.c: Sort headers.
10184 * c-valprint.c: Sort headers.
10185 * c-typeprint.c: Sort headers.
10186 * c-lang.c: Sort headers.
10187 * buildsym.c: Sort headers.
10188 * buildsym-legacy.c: Sort headers.
10189 * build-id.h: Sort headers.
10190 * build-id.c: Sort headers.
10191 * btrace.c: Sort headers.
10192 * bsd-uthread.c: Sort headers.
10193 * breakpoint.h: Sort headers.
10194 * breakpoint.c: Sort headers.
10195 * break-catch-throw.c: Sort headers.
10196 * break-catch-syscall.c: Sort headers.
10197 * break-catch-sig.c: Sort headers.
10198 * blockframe.c: Sort headers.
10199 * block.c: Sort headers.
10200 * bfin-tdep.c: Sort headers.
10201 * bfin-linux-tdep.c: Sort headers.
10202 * bfd-target.c: Sort headers.
10203 * bcache.c: Sort headers.
10204 * ax-general.c: Sort headers.
10205 * ax-gdb.h: Sort headers.
10206 * ax-gdb.c: Sort headers.
10207 * avr-tdep.c: Sort headers.
10208 * auxv.c: Sort headers.
10209 * auto-load.c: Sort headers.
10210 * arm-wince-tdep.c: Sort headers.
10211 * arm-tdep.c: Sort headers.
10212 * arm-symbian-tdep.c: Sort headers.
10213 * arm-pikeos-tdep.c: Sort headers.
10214 * arm-obsd-tdep.c: Sort headers.
10215 * arm-nbsd-tdep.c: Sort headers.
10216 * arm-nbsd-nat.c: Sort headers.
10217 * arm-linux-tdep.c: Sort headers.
10218 * arm-linux-nat.c: Sort headers.
10219 * arm-fbsd-tdep.c: Sort headers.
10220 * arm-fbsd-nat.c: Sort headers.
10221 * arm-bsd-tdep.c: Sort headers.
10222 * arch-utils.c: Sort headers.
10223 * arc-tdep.c: Sort headers.
10224 * arc-newlib-tdep.c: Sort headers.
10225 * annotate.h: Sort headers.
10226 * annotate.c: Sort headers.
10227 * amd64-windows-tdep.c: Sort headers.
10228 * amd64-windows-nat.c: Sort headers.
10229 * amd64-tdep.c: Sort headers.
10230 * amd64-sol2-tdep.c: Sort headers.
10231 * amd64-obsd-tdep.c: Sort headers.
10232 * amd64-obsd-nat.c: Sort headers.
10233 * amd64-nbsd-tdep.c: Sort headers.
10234 * amd64-nbsd-nat.c: Sort headers.
10235 * amd64-nat.c: Sort headers.
10236 * amd64-linux-tdep.c: Sort headers.
10237 * amd64-linux-nat.c: Sort headers.
10238 * amd64-fbsd-tdep.c: Sort headers.
10239 * amd64-fbsd-nat.c: Sort headers.
10240 * amd64-dicos-tdep.c: Sort headers.
10241 * amd64-darwin-tdep.c: Sort headers.
10242 * amd64-bsd-nat.c: Sort headers.
10243 * alpha-tdep.c: Sort headers.
10244 * alpha-obsd-tdep.c: Sort headers.
10245 * alpha-nbsd-tdep.c: Sort headers.
10246 * alpha-mdebug-tdep.c: Sort headers.
10247 * alpha-linux-tdep.c: Sort headers.
10248 * alpha-linux-nat.c: Sort headers.
10249 * alpha-bsd-tdep.c: Sort headers.
10250 * alpha-bsd-nat.c: Sort headers.
10251 * aix-thread.c: Sort headers.
10252 * agent.c: Sort headers.
10253 * addrmap.c: Sort headers.
10254 * ada-varobj.c: Sort headers.
10255 * ada-valprint.c: Sort headers.
10256 * ada-typeprint.c: Sort headers.
10257 * ada-tasks.c: Sort headers.
10258 * ada-lang.c: Sort headers.
10259 * aarch64-tdep.c: Sort headers.
10260 * aarch64-ravenscar-thread.c: Sort headers.
10261 * aarch64-newlib-tdep.c: Sort headers.
10262 * aarch64-linux-tdep.c: Sort headers.
10263 * aarch64-linux-nat.c: Sort headers.
10264 * aarch64-fbsd-tdep.c: Sort headers.
10265 * aarch64-fbsd-nat.c: Sort headers.
10266 * aarch32-linux-nat.c: Sort headers.
10267
699bd4cf
TT
102682019-04-04 Tom Tromey <tom@tromey.com>
10269
10270 * varobj.c (varobj_create): Update.
10271 * rust-exp.y (struct rust_parser) <update_innermost_block,
10272 lookup_symbol>: New methods.
10273 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10274 Rename.
10275 (rust_parser::rust_lookup_type)
10276 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10277 * printcmd.c (display_command, do_one_display): Update.
10278 * parser-defs.h (struct parser_state) <parser_state>: Add
10279 "tracker" parameter.
10280 (block_tracker): New member.
10281 (class innermost_block_tracker) <innermost_block_tracker>: Add
10282 "types" parameter.
10283 <reset>: Remove method.
10284 (innermost_block): Don't declare.
10285 (null_post_parser): Update.
10286 * parse.c (innermost_block): Remove global.
10287 (write_dollar_variable): Update.
10288 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10289 Remove "tracker_types" parameter.
10290 (parse_expression): Add "tracker" parameter.
10291 (parse_expression_for_completion): Update.
10292 (null_post_parser): Add "tracker" parameter.
10293 * p-exp.y: Update rules.
10294 * m2-exp.y: Update rules.
10295 * language.h (struct language_defn) <la_post_parser>: Add
10296 "tracker" parameter.
10297 * go-exp.y: Update rules.
10298 * f-exp.y: Update rules.
10299 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10300 parameter.
10301 * d-exp.y: Update rules.
10302 * c-exp.y: Update rules.
10303 * breakpoint.c (set_breakpoint_condition): Create an
10304 innermost_block_tracker.
10305 (watch_command_1): Likewise.
10306 * ada-lang.c (resolve): Add "tracker" parameter.
10307 (resolve_subexp): Likewise.
10308 * ada-exp.y (write_var_from_sym): Update.
10309
dac43e32
TT
103102019-04-04 Tom Tromey <tom@tromey.com>
10311
10312 * type-stack.h: New file.
10313 * type-stack.c: New file.
10314 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10315 type-stack.h.
10316 (insert_into_type_stack, insert_type, push_type, push_type_int)
10317 (insert_type_address_space, pop_type, pop_type_int)
10318 (pop_typelist, pop_type_stack, append_type_stack)
10319 (push_type_stack, get_type_stack, push_typelist)
10320 (follow_type_instance_flags, follow_types): Don't declare.
10321 * parse.c (type_stack): Remove global.
10322 (parse_exp_in_context): Update.
10323 (insert_into_type_stack, insert_type, push_type, push_type_int)
10324 (insert_type_address_space, pop_type, pop_type_int)
10325 (pop_typelist, pop_type_stack, append_type_stack)
10326 (push_type_stack, get_type_stack, push_typelist)
10327 (follow_type_instance_flags, follow_types): Remove (moved to
10328 type-stack.c).
10329 * f-exp.y (type_stack): New global.
10330 Update rules.
10331 (push_kind_type, f_parse): Update.
10332 * d-exp.y (type_stack): New global.
10333 Update rules.
10334 (d_parse): Update.
10335 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10336 Update rules.
10337 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10338 (HFILES_NO_SRCDIR): Add type-stack.h.
10339
2a612529
TT
103402019-04-04 Tom Tromey <tom@tromey.com>
10341
10342 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10343 (rust_parser::convert_ast_to_expression, rust_parse)
10344 (rust_lex_test_completion, rust_lex_tests): Update.
10345 * parser-defs.h (struct expr_completion_state): New.
10346 (struct parser_state) <parser_state>: Add completion parameter.
10347 <mark_struct_expression, mark_completion_tag>: New methods.
10348 <parse_completion, m_completion_state>: New members.
10349 (prefixify_expression, null_post_parser): Update.
10350 (mark_struct_expression, mark_completion_tag): Don't declare.
10351 * parse.c (parse_completion, expout_last_struct)
10352 (expout_tag_completion_type, expout_completion_name): Remove
10353 globals.
10354 (parser_state::mark_struct_expression)
10355 (parser_state::mark_completion_tag): Now methods.
10356 (prefixify_expression): Add last_struct parameter.
10357 (prefixify_subexp): Likewise.
10358 (parse_exp_1): Update.
10359 (parse_exp_in_context): Add cstate parameter. Update.
10360 (parse_expression_for_completion): Create an
10361 expr_completion_state.
10362 (null_post_parser): Add "completion" parameter.
10363 * p-exp.y: Update rules.
10364 (yylex): Update.
10365 * language.h (struct language_defn) <la_post_parser>: Add
10366 "completing" parameter.
10367 * go-exp.y: Update rules.
10368 (lex_one_token): Update.
10369 * expression.h (parse_completion): Don't declare.
10370 * d-exp.y: Update rules.
10371 (lex_one_token): Update rules.
10372 * c-exp.y: Update rules.
10373 (lex_one_token): Update.
10374 * ada-lang.c (resolve): Add "parse_completion" parameter.
10375 (resolve_subexp): Likewise.
10376 (ada_resolve_function): Likewise.
10377
43476f0b
TT
103782019-04-04 Tom Tromey <tom@tromey.com>
10379
10380 * parser-defs.h (struct parser_state) <start_arglist,
10381 end_arglist>: New methods.
10382 <arglist_len, m_funcall_chain>: New members.
10383 (arglist_len, start_arglist, end_arglist): Don't declare.
10384 * parse.c (arglist_len, funcall_chain): Remove global.
10385 (start_arglist, end_arglist): Remove functions.
10386 (parse_exp_in_context): Update.
10387 * p-exp.y: Update rules.
10388 * m2-exp.y: Update rules.
10389 * go-exp.y: Update rules.
10390 * f-exp.y: Update rules.
10391 * d-exp.y: Update rules.
10392 * c-exp.y: Update rules.
10393
5776fca3
TT
103942019-04-04 Tom Tromey <tom@tromey.com>
10395
10396 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10397 lex_operator, push_back>: New methods.
10398 Update all rules.
10399 (rust_parser::lex_hex, lex_escape): Rename and update.
10400 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10401 (rust_parser::lex_operator): Rename and update.
10402 (rust_parser::lex_number, rustyylex, rustyyerror)
10403 (rust_lex_test_init, rust_lex_test_sequence)
10404 (rust_lex_test_push_back, rust_lex_tests): Update.
10405 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10406 parameter.
10407 <lexptr, prev_lexptr>: New members.
10408 (lexptr, prev_lexptr): Don't declare.
10409 * parse.c (lexptr, prev_lexptr): Remove globals.
10410 (parse_exp_in_context): Update.
10411 * p-exp.y (yylex, yyerror): Update.
10412 * m2-exp.y (parse_number, yylex, yyerror): Update.
10413 * go-exp.y (lex_one_token, yyerror): Update.
10414 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10415 * d-exp.y (lex_one_token, yyerror): Update.
10416 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10417 (lex_one_token, yyerror): Update.
10418 * ada-lex.l (YY_INPUT): Update.
10419 (rewind_to_char): Update.
10420 * ada-exp.y (yyerror): Update.
10421
8621b685
TT
104222019-04-04 Tom Tromey <tom@tromey.com>
10423
10424 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10425 * parser-defs.h (struct parser_state) <parser_state>: Add new
10426 parameter.
10427 <comma_terminates>: New member.
10428 (comma_terminates): Don't declare global.
10429 * parse.c (comma_terminates): Remove global.
10430 (parse_exp_in_context): Update.
10431 * p-exp.y (yylex): Update.
10432 * m2-exp.y (yylex): Update.
10433 * go-exp.y (lex_one_token): Update.
10434 * f-exp.y (yylex): Update.
10435 * d-exp.y (lex_one_token): Update.
10436 * c-exp.y (lex_one_token): Update.
10437 * ada-lex.l: Update.
10438
28aaf3fd
TT
104392019-04-04 Tom Tromey <tom@tromey.com>
10440
10441 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10442 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10443 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10444 * parser-defs.h (paren_depth): Don't declare.
10445 * parse.c (paren_depth): Remove global.
10446 (parse_exp_in_context): Update.
10447 * p-exp.y (paren_depth): New global.
10448 (pascal_parse): Initialize it.
10449 * m2-exp.y (paren_depth): New global.
10450 (m2_parse): Initialize it.
10451 * go-exp.y (paren_depth): New global.
10452 (go_parse): Initialize it.
10453 * f-exp.y (paren_depth): New global.
10454 (f_parse): Initialize it.
10455 * d-exp.y (paren_depth): New global.
10456 (d_parse): Initialize it.
10457 * c-exp.y (paren_depth): New global.
10458 (c_parse): Initialize it.
10459 * ada-lex.l (paren_depth): New global.
10460 (lexer_init): Initialize it.
10461
1e58a4a4
TT
104622019-04-04 Tom Tromey <tom@tromey.com>
10463
10464 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10465 (rust_parser::convert_ast_to_type)
10466 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10467 * parser-defs.h (struct parser_state) <parser_state>: Add
10468 parameters. Initialize new members.
10469 <expression_context_block, expression_context_pc>: New members.
10470 * parse.c (expression_context_block, expression_context_pc):
10471 Remove globals.
10472 (parse_exp_in_context): Update.
10473 * p-exp.y: Update all rules.
10474 (yylex): Update.
10475 * m2-exp.y: Update all rules.
10476 (yylex): Update.
10477 * go-exp.y (yylex): Update.
10478 * f-exp.y (yylex): Update.
10479 * d-exp.y: Update all rules.
10480 (yylex): Update.
10481 * c-exp.y: Update all rules.
10482 (lex_one_token, classify_name, yylex, c_parse): Update.
10483 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10484
37eedb39
TT
104852019-04-04 Tom Tromey <tom@tromey.com>
10486
10487 * gdbarch.h, gdbarch.c: Rebuild.
10488 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10489 * stap-probe.h:
10490 (struct stap_parse_info): Replace "parser_state" with
10491 "expr_builder".
10492 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10493 (parser_state): New class.
10494 * parse.c (expr_builder): Rename.
10495 (expr_builder::release): Rename.
10496 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10497 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10498 (write_exp_elt_longcst, write_exp_elt_floatcst)
10499 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10500 (write_exp_string_vector, write_exp_bitstring)
10501 (write_exp_msymbol, mark_struct_expression)
10502 (write_dollar_variable)
10503 (insert_type_address_space, increase_expout_size): Replace
10504 "parser_state" with "expr_builder".
10505 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10506 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10507 "parser_state" with "expr_builder".
10508
73923d7e
TT
105092019-04-04 Tom Tromey <tom@tromey.com>
10510
10511 * rust-exp.y: Replace "parse_language" with method call.
10512 * p-exp.y:
10513 (yylex): Replace "parse_language" with method call.
10514 * m2-exp.y:
10515 (yylex): Replace "parse_language" with method call.
10516 * go-exp.y (classify_name): Replace "parse_language" with method
10517 call.
10518 * f-exp.y (yylex): Replace "parse_language" with method call.
10519 * d-exp.y (lex_one_token): Replace "parse_language" with method
10520 call.
10521 * c-exp.y:
10522 (lex_one_token, classify_name, yylex): Replace "parse_language"
10523 with method call.
10524 * ada-exp.y (find_primitive_type, type_char)
10525 (type_system_address): Replace "parse_language" with method call.
10526
fa9f5be6
TT
105272019-04-04 Tom Tromey <tom@tromey.com>
10528
10529 * rust-exp.y: Replace "parse_gdbarch" with method call.
10530 * parse.c (write_dollar_variable, insert_type_address_space):
10531 Replace "parse_gdbarch" with method call.
10532 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10533 call.
10534 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10535 call.
10536 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10537 "parse_gdbarch" with method call.
10538 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10539 with method call.
10540 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10541 "parse_gdbarch" with method call.
10542 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10543 "parse_gdbarch" with method call.
10544 * c-exp.y (parse_type, parse_number, classify_name): Replace
10545 "parse_gdbarch" with method call.
10546 * ada-lex.l: Replace "parse_gdbarch" with method call.
10547 * ada-exp.y (parse_type, find_primitive_type, type_char)
10548 (type_system_address): Replace "parse_gdbarch" with method call.
10549
1201a264
TT
105502019-04-04 Tom Tromey <tom@tromey.com>
10551
10552 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10553 * stap-probe.c (stap_parse_argument): Update.
10554 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10555 initial_size parameter.
10556 * rust-exp.y (rust_lex_tests): Update.
10557 * parse.c (parser_state): Update.
10558 (parse_exp_in_context): Update.
10559 * parser-defs.h (struct parser_state) <parser_state>: Remove
10560 "initial_size" parameter.
10561
e3980ce2
TT
105622019-04-04 Tom Tromey <tom@tromey.com>
10563
10564 * parser-defs.h (increase_expout_size): Don't declare.
10565 * parse.c (increase_expout_size): Now static.
10566
e9f8e3f1
TS
105672019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10568
10569 * gnu-nat.c (gnu_nat_target::wait): Fix
10570 target_waitstatus_to_string call.
10571
d7df6549
AB
105722019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10573
10574 * eval.c (evaluate_subexp_standard): Handle internal functions
10575 during Fortran function call handling.
10576
8bdc1658
AB
105772019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10578
10579 * NEWS: Mention new internal functions.
10580 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10581 (read_base_type): Use dwarf2_init_complex_target_type.
10582 * value.c (creal_internal_fn): New function.
10583 (cimag_internal_fn): New function.
10584 (_initialize_values): Register new internal functions.
10585
c29705b7
PW
105862019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10587
10588 * infrun.c (stop_all_threads): If debug_infrun, always
10589 trace the wait status after wait_one, using
10590 target_waitstatus_to_string and target_pid_to_str.
10591 (handle_inferior_event): Replace various trace of
10592 wait status kind by a single trace.
10593 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10594 wait status kind image by target_waitstatus_to_string.
10595 * target/waitstatus.c (target_waitstatus_to_string): Fix
10596 obsolete comment.
10597
05caa1d2
TT
105982019-04-01 Tom Tromey <tromey@adacore.com>
10599
10600 PR symtab/23331:
10601 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10602
9d1447e0
SDJ
106032019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10604 Pedro Alves <palves@redhat.com>
10605
10606 * top.c (quit_force): Call 'finalize_values'.
10607 * value.c (finalize_values): New function.
10608 * value.h (finalize_values): Declare.
10609
7734102d
EZ
106102019-03-30 Eli Zaretskii <eliz@gnu.org>
10611
10612 * NEWS: Announce $_gdb_major and $_gdb_minor.
10613
10614 * top.c (init_gdb_version_vars): New function.
10615 (gdb_init): Call init_gdb_version_vars.
10616
188e1fa9
TT
106172019-03-29 Tom Tromey <tromey@adacore.com>
10618
10619 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10620 help text. Remove dead code.
10621
2880242d
KS
106222019-03-29 Keith Seitz <keiths@redhat.com>
10623
10624 From Siddhesh Poyarekar:
10625 * f-lang.h (f77_get_upperbound): Return LONGEST.
10626 (f77_get_lowerbound): Likewise.
10627 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10628 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10629 print them.
10630 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10631 plongest to format print it.
10632 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10633 (f77_get_upperbound): Likewise.
10634 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10635 LOWER_BOUND to LONGEST.
10636 (f77_create_arrayprint_offset_tbl): Likewise.
10637
cc1defb1
KS
106382019-03-29 Keith Seitz <keiths@redhat.com>
10639
10640 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10641 %s/pulongest for TYPE_LENGTH instead of %d in format
10642 strings.
10643 * ada-typerint.c (ada_print_type): Likewise.
10644 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10645 * compile/compile-c-support.c (generate_register_struct): Likewise.
10646 * gdbtypes.c (recursive_dump_type): Likewise.
10647 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10648 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10649 instead of %d in format strings.
10650 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10651 to std::min to ULONGEST.
10652 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10653 instead of %d in format strings.
10654 * tracepoint.c (info_scope_command): Likewise.
10655 * typeprint.c (print_offset_data::update)
10656 (print_offset_data::finish): Likewise.
10657 * xtensa-tdep.c (xtensa_store_return_value)
10658 (xtensa_push_dummy_call): Likewise.
10659
e432ccf1
JT
106602019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10661
10662 * windows-nat.c (display_selector): Fixed format specifications
10663 for 64-bit Cygwin.
10664
65d2b333
PW
106652019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666
10667 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10668
f489207e
SL
106692019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10670
10671 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10672 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10673 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10674 (nios2_linux_init_abi): Install it.
10675
bffa1015
AH
106762019-03-28 Alan Hayward <alan.hayward@arm.com>
10677
10678 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10679
fc96163a
AH
106802019-03-28 Alan Hayward <alan.hayward@arm.com>
10681
10682 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10683
20dc7e9b
PW
106842019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10685 Tom Tromey <tromey@adacore.com>
10686
10687 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10688
7f5331a8
JB
106892019-03-26 Joel Brobecker <brobecker@adacore.com>
10690
10691 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10692 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10693 method to compute the bounds of range types. Also print "[evaluated]"
10694 if the bounds' values come from a dynamic evaluation.
10695
18c77628
AB
106962019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10697
10698 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10699 whitespace when pretty printing is on.
10700
53c973f2
AH
107012019-03-26 Alan Hayward <alan.hayward@arm.com>
10702
e79be6e5 10703 * ppc-linux-nat.c: Add include.
53c973f2 10704
d851aa71
AH
107052019-03-26 Alan Hayward <alan.hayward@arm.com>
10706
e79be6e5 10707 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10708
2fe7bab7
AH
107092019-03-26 Alan Hayward <alan.hayward@arm.com>
10710
e79be6e5 10711 * arm-linux-nat.c: Add include.
2fe7bab7 10712
068ef30e
SM
107132019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * source-cache.c (source_cache::get_source_lines): Re-read
10716 fullname after calling open_source_file.
10717
81a24d04
JB
107182019-03-25 John Baldwin <jhb@FreeBSD.org>
10719
10720 * NEWS: Mention TLS support for FreeBSD.
10721
79e7ae11
TT
107222019-03-25 Tom Tromey <tromey@adacore.com>
10723
10724 * minsyms.c (BUNCH_SIZE): Update comment.
10725 (~minimal_symbol_reader): Remove old comment.
10726 (compact_minimal_symbols): Update comment.
10727 (minimal_symbol_reader::install): Remove old comment. Update
10728 other comments.
10729
d45963c2
AH
107302019-03-25 Alan Hayward <alan.hayward@arm.com>
10731
10732 * s390-linux-nat.c: Add include.
10733
0f83012e
AH
107342019-03-25 Alan Hayward <alan.hayward@arm.com>
10735
10736 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10737 Call linux_get_hwcap.
10738 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10739 Likewise.
10740 (aarch64_linux_get_hwcap): Remove function.
10741 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10742 declaration.
10743 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10744 linux_get_hwcap.
10745 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10746 * linux-tdep.c (linux_get_hwcap): Add function.
10747 (linux_get_hwcap2): Likewise.
10748 * linux-tdep.h (linux_get_hwcap): Add declaration.
10749 (linux_get_hwcap2): Likewise.
10750 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10751 (ppc_linux_get_hwcap2): Likewise.
10752 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10753 linux_get_hwcap.
10754 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10755 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10756 (ppc_linux_nat_target::read_description): Likewise.
10757 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10758 * s390-linux-nat.c: Likewise.
10759 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10760
6640a367
TT
107612019-03-24 Tom Tromey <tom@tromey.com>
10762
10763 * ada-lang.c (standard_lookup): Simplify initialization.
10764 (ada_lookup_symbol_nonlocal): Simplify return.
10765 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10766 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10767 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10768 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10769 initialization.
10770 * solib.c (solib_global_lookup): Simplify.
10771 * symtab.c (null_block_symbol): Remove.
10772 (symbol_cache_lookup): Simplify returns.
10773 (lookup_language_this): Simplify returns.
10774 (lookup_symbol_aux): Simplify return.
10775 (lookup_local_symbol): Simplify returns.
10776 (lookup_global_symbol_from_objfile): Simplify return.
10777 (lookup_symbol_in_objfile_symtabs)
10778 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10779 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10780 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10781 * cp-namespace.c (cp_lookup_bare_symbol)
10782 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10783 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10784 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10785 (cp_lookup_symbol_via_imports): Simplify initialization.
10786 (find_symbol_in_baseclass): Likewise.
10787 * symtab.h (null_block_symbol): Remove.
10788 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10789 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10790 (d_lookup_symbol_module): Likewise.
10791 (find_symbol_in_baseclass): Simplify initialization.
10792
a930ebcd
TT
107932019-03-24 Tom Tromey <tom@tromey.com>
10794
10795 * expression.h: Don't include symtab.h.
10796 (struct block): Forward declare.
10797
582942f4
TT
107982019-03-24 Tom Tromey <tom@tromey.com>
10799
10800 * c-exp.y (typebase): Remove casts.
10801 * gdbtypes.c (lookup_unsigned_typename, )
10802 (lookup_signed_typename): Remove cast.
10803 * eval.c (parse_to_comma_and_eval): Remove cast.
10804 * parse.c (write_dollar_variable): Remove cast.
10805 * block.h (struct block) <superblock>: Now const.
10806 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10807 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10808 (map_block): Make "block" const.
10809 * symfile.h (struct quick_symbol_functions)
10810 <map_matching_symbols>: Constify block argument to "callback".
10811 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10812 const.
10813 (find_pc_sect_compunit_symtab): Make "b" const.
10814 (find_symbol_at_address): Likewise.
10815 (search_symbols): Likewise.
10816 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10817 (dw2_debug_names_lookup_symbol): Likewise.
10818 (dw2_map_matching_symbols): Update.
10819 * p-valprint.c (pascal_val_print): Remove "block".
10820 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10821 (aux_add_nonlocal_symbols): Make "block" const.
10822 (resolve_subexp): Remove cast.
10823 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10824 const.
10825 (iterate_over_file_blocks): Likewise.
10826 * f-exp.y (%union) <bval>: Remove.
10827 * coffread.c (patch_opaque_types): Make "b" const.
10828 * spu-tdep.c (spu_catch_start): Make "block" const.
10829 * c-valprint.c (print_unpacked_pointer): Remove "block".
10830 * symmisc.c (dump_symtab_1): Make "b" const.
10831 (block_depth): Make "block" const.
10832 * d-exp.y (%union) <bval>: Remove.
10833 * cp-support.h (cp_lookup_rtti_type): Update.
10834 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10835 * psymtab.c (psym_lookup_symbol): Make "block" const.
10836 (maintenance_check_psymtabs): Make "b" const.
10837 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10838 (enumerate_locals, enumerate_args): Update.
10839 * python/py-symtab.c (stpy_global_block): Make "block" const.
10840 (stpy_static_block): Likewise.
10841 * inline-frame.c (block_starting_point_at): Make "new_block"
10842 const.
10843 * block.c (find_block_in_blockvector): Make return type const.
10844 (blockvector_for_pc_sect): Make "b" const.
10845 (find_block_in_blockvector): Make "b" const.
10846
7ad417dd
TT
108472019-03-23 Tom Tromey <tom@tromey.com>
10848
10849 * varobj.c (varobj_create): Update.
10850 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10851 * printcmd.c (display_command, do_one_display): Don't reset
10852 innermost_block.
10853 * parser-defs.h (enum innermost_block_tracker_type): Move to
10854 expression.h.
10855 (innermost_block): Update comment.
10856 * parse.c (parse_exp_1): Add tracker_types parameter.
10857 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10858 tracker_types parameter. Reset innermost_block.
10859 (parse_exp_in_context): Remove.
10860 (parse_expression_for_completion): Update.
10861 * objfiles.c (~objfile): Don't reset expression_context_block or
10862 innermost_block.
10863 * expression.h (enum innermost_block_tracker_type): Move from
10864 parser-defs.h.
10865 (parse_exp_1): Add tracker_types parameter.
10866 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10867 reset innermost_block.
10868
b366c208
TT
108692019-03-23 Tom Tromey <tom@tromey.com>
10870
10871 * objfiles.h: Include bcache.h.
10872
9bb9b2f9
TT
108732019-03-23 Tom Tromey <tom@tromey.com>
10874
10875 * linespec.c (get_current_search_block): Use
10876 scoped_restore_current_language.
10877 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10878
59c28372
AH
108792019-03-22 Alan Hayward <alan.hayward@arm.com>
10880 Jiong Wang <jiong.wang@arm.com>
10881
10882 * aarch64-linux-tdep.c
10883 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10884 section.
10885 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10886
17e116a7
AH
108872019-03-22 Alan Hayward <alan.hayward@arm.com>
10888 Jiong Wang <jiong.wang@arm.com>
10889
10890 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10891 instructions.
10892 (aarch64_analyze_prologue_test): Add PACIASP test.
10893 (aarch64_prologue_prev_register): Unmask PC value.
10894
11e1b75f
AH
108952019-03-22 Alan Hayward <alan.hayward@arm.com>
10896 Jiong Wang <jiong.wang@arm.com>
10897
10898 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10899 (aarch64_dwarf2_prev_register): Unmask PC value.
10900 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10901 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10902 DW_CFA_AARCH64_negate_ra_state.
10903 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10904
34dcc7cf
AH
109052019-03-22 Alan Hayward <alan.hayward@arm.com>
10906 Jiong Wang <jiong.wang@arm.com>
10907
10908 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10909 registers.
10910 (aarch64_pseudo_register_name): Likewise.
10911 (aarch64_pseudo_register_type): Likewise.
10912 (aarch64_pseudo_register_reggroup_p): Likewise.
10913 (aarch64_gdbarch_init): Add pauth registers.
10914 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10915 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10916 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10917 (struct gdbarch_tdep): Add regnum for ra_state.
10918
1ef53e6b
AH
109192019-03-22 Alan Hayward <alan.hayward@arm.com>
10920 Jiong Wang <jiong.wang@arm.com>
10921
10922 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10923
76bed0fd
AH
109242019-03-22 Alan Hayward <alan.hayward@arm.com>
10925 Jiong Wang <jiong.wang@arm.com>
10926
10927 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10928 function.
10929 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10930 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10931 (aarch64_gdbarch_init): Add puth registers.
10932 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10933 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10934 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10935
ee4fbcfa
AH
109362019-03-22 Alan Hayward <alan.hayward@arm.com>
10937 Jiong Wang <jiong.wang@arm.com>
10938
10939 * aarch64-linux-nat.c
10940 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10941 * aarch64-linux-tdep.c
10942 (aarch64_linux_core_read_description): Likewise.
10943 (aarch64_linux_get_hwcap): New function.
10944 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10945 (aarch64_linux_get_hwcap): New declaration.
10946
6dc0ebde
AH
109472019-03-22 Alan Hayward <alan.hayward@arm.com>
10948 Jiong Wang <jiong.wang@arm.com>
10949
10950 * aarch64-linux-nat.c
10951 (aarch64_linux_nat_target::read_description): Add pauth param.
10952 * aarch64-linux-tdep.c
10953 (aarch64_linux_core_read_description): Likewise.
10954 * aarch64-tdep.c (struct target_desc): Add in pauth.
10955 (aarch64_read_description): Add pauth param.
10956 (aarch64_gdbarch_init): Likewise.
10957 * aarch64-tdep.h (aarch64_read_description): Likewise.
10958 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10959 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10960 * features/Makefile: Add new files.
10961 * features/aarch64-pauth.c: New file.
10962 * features/aarch64-pauth.xml: New file.
10963
595915c1
TT
109642019-03-20 Tom Tromey <tromey@adacore.com>
10965
10966 * infrun.c (handle_inferior_event): Rename from
10967 handle_inferior_event_1. Create a scoped_value_mark.
10968 (handle_inferior_event): Remove.
10969
4c7d57e7
TT
109702019-03-19 Tom Tromey <tromey@adacore.com>
10971
10972 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10973 * infrun.h (print_stop_event): Add "displays" parameter.
10974 * infrun.c (print_stop_event): Add "displays" parameter.
10975
cb246234
PA
109762019-03-19 Pedro Alves <palves@redhat.com>
10977
10978 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10979 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10980 to -1. Fix TABs vs spaces.
10981 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10982 * tui/tui-out.h (tui_ui_out) Add intro comments.
10983 <m_line, m_start_of_line>: In-class initialize, and add describing
10984 comment.
10985
3a0e45b2
AH
109862019-03-18 Alan Hayward <alan.hayward@arm.com>
10987
10988 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10989 variable names.
10990 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10991
5371b850
PA
109922019-03-18 Pedro Alves <palves@redhat.com>
10993 Eli Zaretskii <eliz@gnu.org>
10994
10995 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10996 m_line and m_start_of_line.
10997
b17c4cd0
EZ
109982019-03-18 Eli Zaretskii <eliz@gnu.org>
10999
11000 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11001 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11002 it returns a newline. This fixes a regression in TU mode, whereby
11003 the next line is output on the same screen line as the user input.
11004
4bd56d18
TT
110052019-03-18 Tom Tromey <tromey@adacore.com>
11006
11007 * minsyms.c (minimal_symbol_reader::install): Remove call to
11008 obstack_blank.
11009
55c10aca
PA
110102019-03-18 Pedro Alves <palves@redhat.com>
11011
11012 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11013 New globals.
11014 (apply_style): New, factored out from ...
11015 (apply_ansi_escape): ... this. Handle reverse video mode.
11016 (tui_set_reverse_mode): New function.
11017 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11018 * tui/tui-winsource.c (tui_show_source_line): Use
11019 tui_set_reverse_mode instead of setting A_STANDOUT.
11020 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11021 New setter methods.
11022
647bb750
HD
110232019-03-18 Hannes Domani <ssbssa@yahoo.de>
11024
11025 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11026 Handle tabs.
11027
bff8c71f
TT
110282019-03-18 Tom Tromey <tromey@adacore.com>
11029
11030 * ada-lang.c (empty_array): Add "high" parameter.
11031 (ada_evaluate_subexp): Update.
11032
58785d98
ST
110332019-03-17 Sergei Trofimovich <siarheit@google.com>
11034
11035 * unittests/string_view-selftests.c: Define
11036 _initialize_string_view_selftests unconditionally.
11037
d4cbef22
ВМ
110382019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11039
11040 PR gdb/24350
11041 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11042
fce4c071
ВМ
110432019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11044
11045 PR gdb/24351
11046 * windows-nat.c (display_selector): Fix format specifiers.
11047
f7f0a123
EZ
110482019-03-17 Eli Zaretskii <eliz@gnu.org>
11049
11050 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11051 tui_refill_source_window instead of tui_refresh_win, to update the
11052 current execution line. This fixes redisplay of the current line
11053 when stepping through the code with "next" or "step".
11054
ab42892f
EZ
110552019-03-16 Eli Zaretskii <eliz@gnu.org>
11056
11057 * source-cache.c (source_cache::get_source_lines): Call
11058 find_source_lines to initialize s->nlines. This fixes vertical
11059 scrolling of TUI source window when the DOWN arrow is pressed.
11060
8d8c087f
PW
110612019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11062
11063 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11064 linux-thread-db.c (_initialize_thread_db): Likewise.
11065
798e1c30
EZ
110662019-03-16 Eli Zaretskii <eliz@gnu.org>
11067
11068 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11069 wclrtoeol in tui_show_source_line". This reverts changes made in
11070 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11071
eefba3da
TT
110722019-03-15 Tom Tromey <tom@tromey.com>
11073
11074 * symtab.h (struct minimal_symbol): Derive from
11075 general_symbol_info.
11076 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11077 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11078 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11079 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11080 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11081 (MSYMBOL_SEARCH_NAME): Update.
11082 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11083 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11084 * minsyms.c (minimal_symbol_reader::record_full): Update.
11085
0de2420c
TT
110862019-03-15 Tom Tromey <tom@tromey.com>
11087
11088 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11089
042d75e4
TT
110902019-03-15 Tom Tromey <tom@tromey.com>
11091
11092 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11093 unique_xmalloc_ptr.
11094 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11095 Update.
11096 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11097 (build_minimal_symbol_hash_tables)
11098 (minimal_symbol_reader::install): Update.
11099
db92718b
TT
111002019-03-15 Tom Tromey <tom@tromey.com>
11101
11102 * symtab.c (create_demangled_names_hash): Update.
11103 (symbol_set_names): Update.
11104 * objfiles.h (struct objfile_per_bfd_storage)
11105 <demangled_names_hash>: Now an htab_up.
11106 * objfiles.c (objfile_per_bfd_storage): Simplify.
11107
d6797f46
TT
111082019-03-15 Tom Tromey <tom@tromey.com>
11109
11110 * objfiles.h (struct objfile_per_bfd_storage): Declare
11111 destructor.
11112 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11113 New.
11114 (get_objfile_bfd_data): Use new. Don't initialize
11115 language_of_main.
11116 (free_objfile_per_bfd_storage): Remove.
11117 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11118
741d7538
TT
111192019-03-15 Tom Tromey <tom@tromey.com>
11120
11121 * symfile.c (reread_symbols): Update.
11122 * objfiles.c (objfile::objfile): Update.
11123 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11124 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11125 comment.
11126 (minimal_symbol_reader::install): Update.
11127 (terminate_minimal_symbol_table): Remove.
11128 * jit.c (jit_object_close_impl): Update.
11129
788c80d1
TT
111302019-03-15 Tom Tromey <tom@tromey.com>
11131
11132 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11133 initializations.
11134
1b7a07cb
TT
111352019-03-15 Tom Tromey <tom@tromey.com>
11136
11137 * objfiles.h (struct objfile_per_bfd_storage)
11138 <demangled_hash_languages>: Now a bitset.
11139 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11140 (lookup_minimal_symbol): Update.
11141
3db066bc
TT
111422019-03-15 Tom Tromey <tom@tromey.com>
11143
11144 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11145 Don't return the symbol.
11146 * coffread.c (record_minimal_symbol): Use record_full.
11147
3fff2c37
EZ
111482019-03-14 Eli Zaretskii <eliz@gnu.org>
11149
11150 The MS-Windows port of ncurses fails to switch to a color pair if
11151 one or both of the colors are the implicit default colors. This
11152 change records the default colors when TUI is initialized, and
11153 then specifies them explicitly when a color pair uses the default
11154 colors. This allows color styling in TUI mode on MS-Windows.
11155
11156 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11157 ncurses_norm_attr.
11158 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11159 colors in ncurses_norm_attr.
11160 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11161 "none", replace it with the default color recorded in
11162 ncurses_norm_attr.
11163
3b336828
TT
111642019-03-14 Tom Tromey <tromey@adacore.com>
11165
11166 * source-cache.h (class source_cache) <get_source_lines>: Return
11167 std::string.
11168 * source-cache.c (source_cache::extract_lines): Handle case where
11169 first_pos==npos. Return std::string.
11170 (source_cache::get_source_lines): Update.
11171
d085f989
TT
111722019-03-14 Tom Tromey <tromey@adacore.com>
11173
11174 * NEWS: Add item for "style sources" commands.
11175 * source-cache.c (source_cache::get_source_lines): Check
11176 source_styling.
11177 * cli/cli-style.c (source_styling): New global.
11178 (_initialize_cli_style): Add "style sources" commands.
11179 (show_style_sources): New function.
11180 * cli/cli-style.h (source_styling): Declare.
11181
6f11e682
TT
111822019-03-14 Pedro Alves <palves@redhat.com>
11183 Tom Tromey <tromey@adacore.com>
11184
11185 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11186 * tui/tui-winsource.c (tui_refill_source_window): New function,
11187 from...
11188 (tui_horizontal_source_scroll): ... here. Move some logic.
11189 * cli/cli-style.c (set_style_enabled): Notify new observable.
11190 * tui/tui-hooks.c (tui_redisplay_source): New function.
11191 (tui_attach_detach_observers): Attach or detach
11192 tui_redisplay_source.
11193 * observable.h (source_styling_changed): New observable.
11194 * observable.c: Define source_styling_changed observable.
11195
a068643d
TT
111962019-03-13 Tom Tromey <tromey@adacore.com>
11197
11198 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11199 (i386_gnu_nat_target::store_registers): Update.
11200 * target-debug.h (target_debug_print_std_string): New macro.
11201 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11202 * windows-tdep.c (display_one_tib): Update.
11203 * tui/tui-stack.c (tui_make_status_line): Update.
11204 * top.c (print_inferior_quit_action): Update.
11205 * thread.c (thr_try_catch_cmd): Update.
11206 (add_thread_with_info): Update.
11207 (thread_target_id_str): Update.
11208 (thr_try_catch_cmd): Update.
11209 (thread_command): Update.
11210 (thread_find_command): Update.
11211 * record-btrace.c (record_btrace_target::info_record)
11212 (record_btrace_resume_thread, record_btrace_target::resume)
11213 (record_btrace_cancel_resume, record_btrace_step_thread)
11214 (record_btrace_target::wait, record_btrace_target::wait)
11215 (record_btrace_target::wait, record_btrace_target::stop): Update.
11216 * progspace.c (print_program_space): Update.
11217 * process-stratum-target.c
11218 (process_stratum_target::thread_address_space): Update.
11219 * linux-fork.c (linux_fork_mourn_inferior)
11220 (detach_checkpoint_command, info_checkpoints_command)
11221 (linux_fork_context): Update.
11222 (linux_fork_detach): Update.
11223 (class scoped_switch_fork_info): Update.
11224 (delete_checkpoint_command): Update.
11225 * infrun.c (follow_fork_inferior): Update.
11226 (follow_fork_inferior): Update.
11227 (proceed_after_vfork_done): Update.
11228 (handle_vfork_child_exec_or_exit): Update.
11229 (follow_exec): Update.
11230 (displaced_step_prepare_throw): Update.
11231 (displaced_step_restore): Update.
11232 (start_step_over): Update.
11233 (resume_1): Update.
11234 (clear_proceed_status_thread): Update.
11235 (proceed): Update.
11236 (print_target_wait_results): Update.
11237 (do_target_wait): Update.
11238 (context_switch): Update.
11239 (stop_all_threads): Update.
11240 (restart_threads): Update.
11241 (finish_step_over): Update.
11242 (handle_signal_stop): Update.
11243 (switch_back_to_stepped_thread): Update.
11244 (keep_going_pass_signal): Update.
11245 (print_exited_reason): Update.
11246 (normal_stop): Update.
11247 * inferior.c (inferior_pid_to_str): Change return type.
11248 (print_selected_inferior): Update.
11249 (add_inferior): Update.
11250 (detach_inferior): Update.
11251 * dummy-frame.c (fprint_dummy_frames): Update.
11252 * dcache.c (dcache_info_1): Update.
11253 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11254 (btrace_fetch, btrace_clear): Update.
11255 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11256 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11257 type.
11258 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11259 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11260 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11261 * gdbarch.c, gdbarch.h: Rebuild.
11262 * gdbarch.sh (core_pid_to_str): Change return type.
11263 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11264 return type.
11265 (windows_nat_target::pid_to_str): Change return type.
11266 (windows_delete_thread): Update.
11267 (windows_nat_target::attach): Update.
11268 (windows_nat_target::files_info): Update.
11269 * target-delegates.c: Rebuild.
11270 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11271 return type.
11272 (sol_thread_target::pid_to_str): Change return type.
11273 * remote.c (class remote_target) <pid_to_str>: Change return
11274 type.
11275 (remote_target::pid_to_str): Change return type.
11276 (extended_remote_target::attach, remote_target::remote_stop_ns)
11277 (remote_target::remote_notif_remove_queued_reply)
11278 (remote_target::push_stop_reply, remote_target::disable_btrace):
11279 Update.
11280 (extended_remote_target::attach): Update.
11281 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11282 type.
11283 (gdbsim_target::pid_to_str): Change return type.
11284 * ravenscar-thread.c (struct ravenscar_thread_target)
11285 <pid_to_str>: Change return type.
11286 (ravenscar_thread_target::pid_to_str): Change return type.
11287 * procfs.c (class procfs_target) <pid_to_str>: Change return
11288 type.
11289 (procfs_target::pid_to_str): Change return type.
11290 (procfs_target::attach): Update.
11291 (procfs_target::detach): Update.
11292 (procfs_target::fetch_registers): Update.
11293 (procfs_target::store_registers): Update.
11294 (procfs_target::wait): Update.
11295 (procfs_target::files_info): Update.
11296 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11297 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11298 return type.
11299 (nto_procfs_target::pid_to_str): Change return type.
11300 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11301 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11302 return type.
11303 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11304 (exit_lwp): Update.
11305 (attach_proc_task_lwp_callback, get_detach_signal)
11306 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11307 (linux_nat_target::resume, wait_lwp, stop_callback)
11308 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11309 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11310 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11311 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11312 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11313 type.
11314 (inf_ptrace_target::attach): Update.
11315 (inf_ptrace_target::files_info): Update.
11316 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11317 type.
11318 (go32_nat_target::pid_to_str): Change return type.
11319 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11320 (gnu_nat_target::wait): Update.
11321 (gnu_nat_target::wait): Update.
11322 (gnu_nat_target::resume): Update.
11323 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11324 (fbsd_nat_target::wait): Update.
11325 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11326 type.
11327 (darwin_nat_target::attach): Update.
11328 * corelow.c (class core_target) <pid_to_str>: Change return type.
11329 (core_target::pid_to_str): Change return type.
11330 * target.c (normal_pid_to_str): Change return type.
11331 (default_pid_to_str): Likewise.
11332 (target_pid_to_str): Change return type.
11333 (target_translate_tls_address): Update.
11334 (target_announce_detach): Update.
11335 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11336 return type.
11337 (bsd_uthread_target::pid_to_str): Change return type.
11338 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11339 type.
11340 (bsd_kvm_target::pid_to_str): Change return type.
11341 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11342 return type.
11343 (aix_thread_target::pid_to_str): Change return type.
11344 * target.h (struct target_ops) <pid_to_str>: Change return type.
11345 (target_pid_to_str, normal_pid_to_str): Likewise.
11346 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11347 type.
11348 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11349 type.
11350 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11351 return type.
11352 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11353 type.
11354 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11355 type.
11356 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11357 return type.
11358
b4be1b06
SM
113592019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11360
11361 * NEWS: Mention that the new default MI version is 3. Mention
11362 changes to the output of commands and events that deal with
11363 multi-location breakpoints.
11364 * breakpoint.c: Include "mi/mi-out.h".
11365 (print_one_breakpoint): Change output syntax if using MI version
11366 >= 3.
11367 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11368 New.
11369 (mi_multi_location_breakpoint_output_fixed): New.
11370 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11371 (mi_cmd_fix_multi_location_breakpoint_output): New.
11372 (mi_multi_location_breakpoint_output_fixed): New.
11373 * mi/mi-cmds.c (mi_cmds): Register command
11374 -fix-multi-location-breakpoint-output.
11375 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11376 interpreter "mi".
11377
8e5e5494
SM
113782019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11379
11380 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11381 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11382 instantiate mi_ui_out based on interpreter name.
11383 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11384 * mi/mi-main.c (mi_load_progress): Likewise.
11385
197df35e
JB
113862019-03-12 John Baldwin <jhb@FreeBSD.org>
11387
11388 * NEWS: Combine separate "New targets" sections for 8.3.
11389
8399425f
JB
113902019-03-12 John Baldwin <jhb@FreeBSD.org>
11391
11392 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11393 (ppcfbsd_init_abi): Install gdbarch
11394 "fetch_tls_load_module_address" and "get_thread_local_address"
11395 methods.
11396
b0f87ed0
JB
113972019-03-12 John Baldwin <jhb@FreeBSD.org>
11398
11399 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11400 (riscv_fbsd_init_abi): Install gdbarch
11401 "fetch_tls_load_module_address" and "get_thread_local_address"
11402 methods.
11403
ce25aa57
JB
114042019-03-12 John Baldwin <jhb@FreeBSD.org>
11405
11406 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11407 (i386fbsd_init_abi): Install gdbarch
11408 "fetch_tls_load_module_address" and "get_thread_local_address"
11409 methods.
11410
f5424cfa
JB
114112019-03-12 John Baldwin <jhb@FreeBSD.org>
11412
11413 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11414 (amd64fbsd_init_abi): Install gdbarch
11415 "fetch_tls_load_module_address" and "get_thread_local_address"
11416 methods.
11417
945f3901
JB
114182019-03-12 John Baldwin <jhb@FreeBSD.org>
11419
11420 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11421 (struct fbsd_pspace_data): New type.
11422 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11423 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11424 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11425 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11426 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11427
ef0bd204
JB
114282019-03-12 John Baldwin <jhb@FreeBSD.org>
11429
11430 * gdbtypes.c (lookup_struct_elt): New function.
11431 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11432 * gdbtypes.h (struct struct_elt): New type.
11433 (lookup_struct_elt): New prototype.
11434
36c53a02
JB
114352019-03-12 John Baldwin <jhb@FreeBSD.org>
11436
11437 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11438 remove disabled code block.
11439
6e056c81
JB
114402019-03-12 John Baldwin <jhb@FreeBSD.org>
11441
11442 * gdbarch.sh (get_thread_local_address): New method.
11443 * gdbarch.h, gdbarch.c: Regenerate.
11444 * target.c (target_translate_tls_address): Use
11445 gdbarch_get_thread_local_address if present instead of
11446 target::get_thread_local_address.
11447
cd250a18
JB
114482019-03-12 John Baldwin <jhb@FreeBSD.org>
11449
11450 * target.h (target::get_thread_local_address): Update comment.
11451
df22c1e5
JB
114522019-03-12 John Baldwin <jhb@FreeBSD.org>
11453
11454 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11455 objfile->separate_debug_objfile_backlink if not NULL.
11456
dd6876c9
JB
114572019-03-12 John Baldwin <jhb@FreeBSD.org>
11458
11459 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11460 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11461 (amd64bsd_store_inferior_registers): Likewise.
11462 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11463 Enable segment base registers.
11464 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11465 PT_GETFSBASE and PT_GETGSBASE.
11466 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11467 PT_SETGSBASE.
11468 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11469 segment base registers.
11470 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11471
1163a4b7
JB
114722019-03-12 John Baldwin <jhb@FreeBSD.org>
11473
11474 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11475 Update calls to i386_target_description to add 'segments'
11476 parameter.
11477 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11478 add segment base registers.
11479 * arch/i386.c (i386_create_target_description): Add 'segments'
11480 parameter to enable segment base registers.
11481 * arch/i386.h (i386_create_target_description): Likewise.
11482 * features/i386/32bit-segments.xml: New file.
11483 * features/i386/32bit-segments.c: Generate.
11484 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11485 call to i386_target_description to add 'segments' parameter.
11486 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11487 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11488 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11489 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11490 if feature is present.
11491 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11492 Add 'segments' parameter to call to i386_target_description.
11493 (i386_target_description): Add 'segments' parameter to enable
11494 segment base registers.
11495 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11496 to call to i386_target_description.
11497 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11498 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11499 Define I386_NUM_REGS.
11500 (i386_target_description): Add 'segments' parameter to enable
11501 segment base registers.
11502
3a350822
EZ
115032019-03-12 Eli Zaretskii <eliz@gnu.org>
11504
11505 PR/24325
11506 * source-cache.c: #undef open and close, to avoid unresolved
11507 externals during linking.
11508
ffdd69cf
TT
115092019-03-12 Tom Tromey <tromey@adacore.com>
11510
11511 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11512 const. Add initializers.
11513 (_initialize_remote): Don't initialize ptid globals.
11514
ec148c57
PA
115152019-03-12 Pedro Alves <palves@redhat.com>
11516
11517 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11518
32764270
PA
115192019-03-12 Pedro Alves <palves@redhat.com>
11520
11521 * cp-name-parser.y (main): Remove unused 'len' variable.
11522
17547186
TT
115232019-03-12 Tom Tromey <tromey@adacore.com>
11524
11525 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11526 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11527
d3a70e03
TT
115282019-03-12 Tom Tromey <tromey@adacore.com>
11529
11530 * linux-nat.c (iterate_over_lwps): Update.
11531 (stop_callback): Remove parameter.
11532 (stop_wait_callback, detach_callback, resume_set_callback)
11533 (select_singlestep_lwp_callback, set_ignore_sigint)
11534 (status_callback, resumed_callback, resume_clear_callback)
11535 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11536 data parameter.
11537 (linux_nat_target::detach, linux_nat_target::resume)
11538 (linux_stop_and_wait_all_lwps, select_event_lwp)
11539 (linux_nat_filter_event, linux_nat_wait_1)
11540 (linux_nat_target::kill, linux_nat_target::stop)
11541 (linux_nat_target::stop): Update.
11542 (linux_nat_resume_callback): Change type.
11543 (resume_stopped_resumed_lwps, count_events_callback)
11544 (select_event_lwp_callback): Likewise.
11545 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11546 * arm-linux-nat.c (struct update_registers_data): Remove.
11547 (update_registers_callback): Change type.
11548 (arm_linux_insert_hw_breakpoint1): Update.
11549 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11550 parameter.
11551 (x86_linux_dr_set_addr): Update.
11552 (x86_linux_dr_set_control): Update.
11553 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11554 (iterate_over_lwps): Use gdb::function_view.
11555 * nat/aarch64-linux-hw-point.c (struct
11556 aarch64_dr_update_callback_param): Remove.
11557 (debug_reg_change_callback): Change type.
11558 (aarch64_notify_debug_reg_change): Update.
11559 * s390-linux-nat.c (s390_refresh_per_info): Update.
11560
82cb27ff
TT
115612019-03-11 Tom Tromey <tromey@adacore.com>
11562
11563 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11564 redundant assignment to "this_cu".
11565
568c0683
SM
115662019-03-08 Simon Marchi <simon.marchi@efficios.com>
11567
11568 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11569
f09ce22d
SM
115702019-03-08 Simon Marchi <simon.marchi@efficios.com>
11571
11572 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11573 from...
11574 (rank_one_type): ... this.
11575
595f96a9
SM
115762019-03-08 Simon Marchi <simon.marchi@efficios.com>
11577
11578 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11579 from...
11580 (rank_one_type): ... this.
11581
2598a94b
SM
115822019-03-08 Simon Marchi <simon.marchi@efficios.com>
11583
11584 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11585 from...
11586 (rank_one_type): ... this.
11587
7f17b20d
SM
115882019-03-08 Simon Marchi <simon.marchi@efficios.com>
11589
11590 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11591 from...
11592 (rank_one_type): ... this.
11593
2c509035
SM
115942019-03-08 Simon Marchi <simon.marchi@efficios.com>
11595
11596 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11597 from...
11598 (rank_one_type): ... this.
11599
0dd322dc
SM
116002019-03-08 Simon Marchi <simon.marchi@efficios.com>
11601
11602 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11603 from...
11604 (rank_one_type): ... this.
11605
41ea4728
SM
116062019-03-08 Simon Marchi <simon.marchi@efficios.com>
11607
11608 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11609 from...
11610 (rank_one_type): ... this.
11611
793cd1d2
SM
116122019-03-08 Simon Marchi <simon.marchi@efficios.com>
11613
11614 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11615 from...
11616 (rank_one_type): ... this.
11617
34910087
SM
116182019-03-08 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11621 from...
11622 (rank_one_type): ... this.
11623
f1f832d6
SM
116242019-03-08 Simon Marchi <simon.marchi@efficios.com>
11625
11626 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11627 from...
11628 (rank_one_type): ... this.
11629
b9f4512f
SM
116302019-03-08 Simon Marchi <simon.marchi@efficios.com>
11631
11632 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11633 from...
11634 (rank_one_type): ... this.
11635
9293fc63
SM
116362019-03-08 Simon Marchi <simon.marchi@efficios.com>
11637
11638 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11639 from...
11640 (rank_one_type): ... this.
11641
e3abbe7e
PW
116422019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11643
11644 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11645 inferior-events' shows the example events.
11646
e4adb939
EZ
116472019-03-08 Eli Zaretskii <eliz@gnu.org>
11648
11649 Support styling on native MS-Windows console
11650
11651 PR/24315
11652 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11653 on MS-Windows if $TERM is not defined.
11654
11655 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11656
11657 * posix-hdep.c (gdb_console_fputs):
11658 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11659 functions.
11660 * ui-file.h (gdb_console_fputs): Add prototype.
11661
11662 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11663 back to fputs only if the former returns zero.
11664
25629dfd
TT
116652019-03-07 Tom Tromey <tom@tromey.com>
11666
11667 * symmisc.c (print_symbol_bcache_statistics): Update.
11668 (print_objfile_statistics): Update.
11669 * symfile.c (allocate_symtab): Update.
11670 * stabsread.c: Don't include bcache.h.
11671 * psymtab.h (struct psymbol_bcache): Don't declare.
11672 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11673 (psymbol_bcache_init, psymbol_bcache_free)
11674 (psymbol_bcache_get_bcache): Don't declare.
11675 * psymtab.c (struct psymbol_bcache): Remove.
11676 (psymtab_storage::psymtab_storage): Update.
11677 (psymtab_storage::~psymtab_storage): Update.
11678 (psymbol_bcache_init, psymbol_bcache_free)
11679 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11680 (add_psymbol_to_bcache): Update.
11681 (allocate_psymtab): Update.
11682 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11683 macro_cache>: No longer pointers.
11684 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11685 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11686 * macrotab.c (macro_bcache): Update.
11687 * macroexp.c: Don't include bcache.h.
11688 * gdbtypes.c (check_types_worklist): Update.
11689 (types_deeply_equal): Remove TRY/CATCH. Update.
11690 * elfread.c (elf_symtab_read): Update.
11691 * dwarf2read.c: Don't include bcache.h.
11692 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11693 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11694 (print_bcache_statistics, bcache_memory_used): Don't declare.
11695 (struct bcache): Move from bcache.c. Add constructor, destructor,
11696 methods. Rename all data members.
11697 * bcache.c (struct bcache): Move to bcache.h.
11698 (bcache::expand_hash_table): Rename from expand_hash_table.
11699 (bcache): Remove.
11700 (bcache::insert): Rename from bcache_full.
11701 (bcache::compare): Rename from bcache_compare.
11702 (bcache_xmalloc): Remove.
11703 (bcache::~bcache): Rename from bcache_xfree.
11704 (bcache::print_statistics): Rename from print_bcache_statistics.
11705 (bcache::memory_used): Rename from bcache_memory_used.
11706
fe726667
PA
117072019-03-07 Pedro Alves <palves@redhat.com>
11708
11709 * infrun.c (normal_stop): Also check for
11710 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11711
7584bb30
AB
117122019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11713
11714 * f-lang.c (value_from_host_double): Moved to...
11715 * value.c (value_from_host_double): ...here.
11716 * value.h (value_from_host_double): Declare.
11717 * guile/scm-math.c (vlscm_convert_typed_number): Use
11718 value_from_host_double.
11719 (vlscm_convert_number): Likewise.
11720 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11721 * python/py-value.c (convert_value_from_python): Likewise.
11722
a7b1986e
TT
117232019-03-06 Tom Tromey <tom@tromey.com>
11724
11725 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11726
0ccf4211
TT
117272019-03-06 Tom Tromey <tom@tromey.com>
11728
11729 * utils.h (free_current_contents): Don't declare.
11730 * utils.c (free_current_contents): Remove.
11731
fe7b42e5
TT
117322019-03-06 Tom Tromey <tom@tromey.com>
11733
11734 * top.c (quit_force): Update.
11735 * main.c (captured_command_loop): Update.
11736 * common/new-op.c (operator new): Update.
11737 * common/common-exceptions.c (struct catcher)
11738 <save_cleanup_chain>: Remove member.
11739 (exceptions_state_mc_init): Update.
11740 (exception_try_scope_entry): Return nullptr.
11741 (exception_try_scope_exit, exception_rethrow)
11742 (throw_exception_sjlj, throw_exception_cxx): Update.
11743 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11744 (all_cleanups, do_cleanups, discard_cleanups)
11745 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11746 (restore_cleanups, restore_final_cleanups): Don't declare.
11747 (do_final_cleanups): Remove parameter.
11748 * common/cleanups.c (cleanup_chain, make_cleanup)
11749 (make_cleanup_dtor, all_cleanups, do_cleanups)
11750 (discard_my_cleanups, discard_cleanups)
11751 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11752 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11753 (null_cleanup): Remove.
11754 (do_final_cleanups): Remove parameter.
11755
c6321f19
TT
117562019-03-06 Tom Tromey <tom@tromey.com>
11757
11758 * remote.c (remote_target::remote_parse_stop_reply): Use
11759 unique_xmalloc_ptr.
11760
61b30099
TT
117612019-03-06 Tom Tromey <tom@tromey.com>
11762
11763 * stabsread.c (struct stabs_field_info): Rename from field_info.
11764 <list, fnlist>: Add initializers.
11765 <obstack>: New member.
11766 (read_member_functions, read_struct_fields, read_baseclasses):
11767 Allocate on obstack. Don't use cleanups.
11768 (read_one_struct_field, read_member_functions, read_struct_fields)
11769 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11770 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11771 (read_struct_type): Update.
11772
6cceac94
TT
117732019-03-06 Tom Tromey <tom@tromey.com>
11774
11775 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11776 * common/filestuff.h (make_cleanup_close): Don't declare.
11777 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11778 Remove.
11779
72412762
TT
117802019-03-06 Tom Tromey <tom@tromey.com>
11781
11782 * solib-aix.c: Use make_scope_exit.
11783
2b6ff1c0
TT
117842019-03-06 Tom Tromey <tom@tromey.com>
11785
11786 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11787 Use make_scope_exit.
11788
d01c5877
TT
117892019-03-06 Tom Tromey <tom@tromey.com>
11790
11791 * solib-svr4.c (disable_probes_interface): Remove parameter.
11792 (svr4_handle_solib_event): Use make_scope_exit.
11793
32603266
TT
117942019-03-06 Tom Tromey <tom@tromey.com>
11795
11796 * remote.c (struct stop_reply_deleter): Remove.
11797 (stop_reply_up): Update.
11798 (struct stop_reply): Derive from notif_event. Don't typedef.
11799 <regcache>: Now a std::vector.
11800 (stop_reply_xfree): Remove.
11801 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11802 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11803 (remote_target::discard_pending_stop_replies): Use delete.
11804 (remote_target::remote_parse_stop_reply): Update.
11805 (remote_target::process_stop_reply): Update.
11806 * remote-notif.h (struct notif_event): Add virtual destructor.
11807 Remove "dtr" member.
11808 (struct notif_client) <alloc_event>: Return a unique_ptr.
11809 (notif_event_xfree): Don't declare.
11810 (notif_event_up): New typedef.
11811 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11812 (notif_event_xfree, do_notif_event_xfree): Remove.
11813 (remote_notif_state_xfree): Update.
11814
9799571e
TT
118152019-03-06 Tom Tromey <tom@tromey.com>
11816
11817 * infrun.c (displaced_step_clear_cleanup): Now a
11818 forward_scope_exit type.
11819 (displaced_step_prepare_throw): Update.
11820 (displaced_step_fixup): Update.
11821
09e3c4ca
TT
118222019-03-06 Tom Tromey <tom@tromey.com>
11823
11824 * inferior.h (class inferior): Update comment.
11825 * gdbthread.h (class thread_info): Update comment.
11826
e2a03548
TT
118272019-03-06 Joel Brobecker <brobecker@adacore.com>
11828 Tom Tromey <tom@tromey.com>
11829
11830 * stabsread.h (struct stab_section_list): Remove.
11831 (coffstab_build_psymtabs): Update.
11832 * dbxread.c (symbuf_sections): Now a std::vector.
11833 (sect_idx): New global.
11834 (fill_symbuf): Update.
11835 (coffstab_build_psymtabs): Change type of stabsects parameter.
11836 Update.
11837 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11838 std::vector.
11839 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11840 (coff_locate_sections): Update.
11841 (coff_symfile_read): Remove cleanups. Update.
11842 (init_stringtab): Add storage parameter.
11843 (free_stringtab, free_stringtab_cleanup): Remove.
11844 (init_lineno): Add storage parameter.
11845 (free_linetab, free_linetab_cleanup): Remove.
11846
b7e60d85
PA
118472019-03-06 Pedro Alves <palves@redhat.com>
11848
11849 * linux-fork.c (fork_info::clobber_regs): Delete.
11850 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11851 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11852 comment. Adjust.
11853 (scoped_switch_fork_info::scoped_switch_fork_info)
11854 (checkpoint_command, linux_fork_context): Adjust
11855 fork_save_infrun_state calls.
11856
e52c971f
PA
118572019-03-06 Pedro Alves <palves@redhat.com>
11858
11859 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11860 (inf_has_multiple_threads): Return 'bool' and rewrite using
11861 inferior_info::threads().
11862
06974e6c
PA
118632019-03-06 Pedro Alves <palves@redhat.com>
11864
11865 * linux-fork.c: Include <list>.
11866 (fork_list): Now a std::list instance.
11867 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11868 (forks_exist_p, find_last_fork): Adjust.
11869 (new_fork): Delete.
11870 (one_fork_p): New.
11871 (add_fork): Adjust.
11872 (free_fork): Delete, folded into fork_info::~fork_info().
11873 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11874 Adjust.
11875 (init_fork_list): Delete.
11876 (linux_fork_killall, linux_fork_mourn_inferior)
11877 (linux_fork_detach, info_checkpoints_command): Adjust.
11878 (_initialize_linux_fork): No longer call init_fork_list.
11879
72f31aea
PA
118802019-03-06 Pedro Alves <palves@redhat.com>
11881
11882 * linux-fork.c (new_fork): New, split out of ...
11883 (add_fork): ... this. Return void. Move "first fork" special
11884 case from here, to ...
11885 (checkpoint_command): ... here.
11886 * linux-linux.h (add_fork): Return void.
11887
efbecbc1
AB
118882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11889
11890 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11891
0841c79a
AB
118922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11893 Chris January <chris.january@arm.com>
11894 David Lecomber <david.lecomber@arm.com>
11895
11896 * f-exp.y: New token, UNOP_INTRINSIC.
11897 (exp): New pattern using UNOP_INTRINSIC token.
11898 (f77_keywords): Add 'abs' keyword.
11899 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11900 (value_from_host_double): New function.
11901 (evaluate_subexp_f): Support UNOP_ABS.
11902
4a270568
AB
119032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11904
11905 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11906 types.
11907
067630bd
AB
119082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11911 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11912 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11913
3be47f7a
AB
119142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11915
11916 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11917
4d00f5d8
AB
119182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11919 Chris January <chris.january@arm.com>
11920
11921 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11922 * f-exp.y: Define 'KIND' token.
11923 (exp): New pattern for KIND expressions.
11924 (ptype): Handle types with a kind extension.
11925 (direct_abs_decl): Extend to spot kind extensions.
11926 (f77_keywords): Add 'kind' to the list.
11927 (push_kind_type): New function.
11928 (convert_to_kind_type): New function.
11929 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11930 * parse.c (operator_length_standard): Likewise.
11931 * parser-defs.h (enum type_pieces): Add tp_kind.
11932 * std-operator.def: Add UNOP_KIND.
11933
e454224f
AB
119342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * f-exp.y (f_parse): Set yydebug.
11937
9dad4a58
AB
119382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * f-lang.c (evaluate_subexp_f): New function.
11941 (exp_descriptor_f): New global.
11942 (f_language_defn): Use exp_descriptor_f instead of
11943 exp_descriptor_standard.
11944
c8f91604
AB
119452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11946
11947 * f-exp.y (struct token): Add comments.
11948 (dot_ops): Remove uppercase versions and the end marker.
11949 (f77_keywords): Likewise.
11950 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11951 entries in the dot_ops array are case insensitive, and use
11952 strncasecmp to compare strings. Also some whitespace cleanup in
11953 this area. Similar for the f77_keywords array, except entries in
11954 this list might be case sensitive.
11955
dd9f2c76
AB
119562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11957
11958 * f-exp.y (struct f77_boolean_val): Add comments.
11959 (boolean_values): Remove uppercase versions, and end marker.
11960 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11961 and use strncasecmp to achieve case insensitivity. Additionally,
11962 perform whitespace cleanup around this code.
11963
67a3048c
TT
119642019-03-06 Tom Tromey <tromey@adacore.com>
11965
11966 * remote-sim.c (gdbsim_target_open): Use result of
11967 gdb_argv::release.
11968
aa3cfbda
RB
119692019-03-06 Richard Bunt <richard.bunt@arm.com>
11970 Dirk Schubert <dirk.schubert@arm.com>
11971 Chris January <chris.january@arm.com>
11972
11973 * eval.c (evaluate_subexp_standard): Call Fortran argument
11974 wrapping logic.
11975 * f-lang.c (struct value): A value which can be passed into a
11976 Fortran function call.
11977 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11978 where appropriate.
11979 (struct type): Value ready for a Fortran function call.
11980 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11981 is needed.
11982 * f-lang.h (fortran_argument_convert): Declaration.
11983 (fortran_preserve_arg_pointer): Declaration.
11984 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11985
ea38e5df
TT
119862019-03-05 Tom Tromey <tromey@adacore.com>
11987
11988 * python/py-prettyprint.c (print_string_repr): Remove #if.
11989 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11990
06b5b831
TT
119912019-03-05 Tom Tromey <tromey@adacore.com>
11992
11993 * target.c (the_dummy_target): Move later. Change type to
11994 "dummy_target".
11995 (initialize_targets): Don't initialize the_dummy_target.
11996
edbd9e45
TT
119972019-03-05 Tom Tromey <tromey@adacore.com>
11998
11999 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12000 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12001
c119e040
TT
120022019-03-05 Tom Tromey <tromey@adacore.com>
12003
12004 * windows-nat.c (windows_nat_target::attach)
12005 (windows_nat_target::detach): Don't call gdb_flush.
12006 * valprint.c (generic_val_print, val_print, val_print_string):
12007 Don't call gdb_flush.
12008 * utils.c (defaulted_query): Don't call gdb_flush.
12009 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12010 * target.c (target_announce_detach): Don't call gdb_flush.
12011 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12012 * remote.c (extended_remote_target::attach): Don't call
12013 gdb_flush.
12014 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12015 * printcmd.c (do_examine): Don't call gdb_flush.
12016 (info_display_command): Don't call gdb_flush.
12017 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12018 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12019 * memattr.c (info_mem_command): Don't call gdb_flush.
12020 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12021 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12022 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12023 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12024 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12025 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12026 (gnu_nat_target::detach): Don't call gdb_flush.
12027 * f-valprint.c (f_val_print): Don't call gdb_flush.
12028 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12029 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12030 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12031 gdb_flush.
12032 * c-valprint.c (c_val_print): Don't call gdb_flush.
12033 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12034
895dafa6
TT
120352019-03-05 Tom Tromey <tromey@adacore.com>
12036
12037 * varobj.c (update_dynamic_varobj_children): Update.
12038 (install_default_visualizer): Use reset, not release.
12039 * value.c (set_internalvar): Update.
12040 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12041 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12042 ATTRIBUTE_UNUSED_RESULT.
12043
88a774b9
TT
120442019-03-05 Tom Tromey <tromey@adacore.com>
12045
12046 * remote.c (class scoped_remote_fd) <release>: Add
12047 ATTRIBUTE_UNUSED_RESULT.
12048
4e4a8b93
TT
120492019-03-05 Tom Tromey <tromey@adacore.com>
12050
12051 * macroexp.c (struct macro_buffer) <release>: Add
12052 ATTRIBUTE_UNUSED_RESULT.
12053
083eef1f
TT
120542019-03-05 Tom Tromey <tromey@adacore.com>
12055
12056 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12057 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12058 ATTRIBUTE_UNUSED_RESULT.
12059
3cabd438
TT
120602019-03-05 Tom Tromey <tromey@adacore.com>
12061
12062 * common/scoped_fd.h (class scoped_fd) <release>: Add
12063 ATTRIBUTE_UNUSED_RESULT.
12064
41e3300a
TT
120652019-03-05 Tom Tromey <tromey@adacore.com>
12066
12067 * parser-defs.h (struct parser_state) <release>: Add
12068 ATTRIBUTE_UNUSED_RESULT.
12069
18cb7c9f
TT
120702019-03-05 Tom Tromey <tromey@adacore.com>
12071
12072 * utils.h (class gdb_argv) <release>: Add
12073 ATTRIBUTE_UNUSED_RESULT.
12074 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12075
41fa577f
EZ
120762019-03-02 Eli Zaretskii <eliz@gnu.org>
12077
a6a4b2c6
EZ
12078 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12079 for-loop range, to avoid compiler warnings.
12080
12081 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12082 avoid compiler warnings about unused variables.
12083
742a7df5
EZ
12084 * NEWS: Mention end of support for native debugging on MS-Windows
12085 before XP.
12086
41fa577f
EZ
12087 PR gdb/24292
12088 * common/netstuff.c:
12089 * gdbserver/gdbreplay.c
12090 * gdbserver/remote-utils.c:
12091 * ser-tcp.c:
12092 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12093 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12094 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12095 'getaddrinfo' and 'freeaddrinfo' were not available before
12096 Windows XP, and mingw.org's MinGW headers by default define
12097 _WIN32_WINNT to 0x500.
12098
827f438f
GB
120992019-03-01 Gary Benson <gbenson@redhat.com>
12100
12101 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12102
92137da0
RO
121032019-02-28 Brian Vandenberg <phantall@gmail.com>
12104 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12105
12106 PR gdb/8527
12107 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12108 set_sigint_trap, clear_sigint_trap.
12109
799efbe8
PW
121102019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12111
12112 * target.c (target_detach): Clear the regcache and the
12113 frame cache.
12114
8ed25214
PA
121152019-02-27 Pedro Alves <palves@redhat.com>
12116
12117 * utils.c (set_screen_size): When we cap the height/width sizes,
12118 tweak the corresponding command variable to show "unlimited":
12119
23031e31
SJ
121202019-02-27 Saagar Jha <saagar@saagarjha.com>
12121 Pedro Alves <palves@redhat.com>
12122
12123 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12124 before calling rl_set_screen_size.
12125
6c28e44a
TT
121262019-02-27 Tom Tromey <tromey@adacore.com>
12127
12128 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12129 define.
12130 * python/py-value.c: Remove Python 2.4 workaround.
12131 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12132 workaround.
12133 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12134 Python 2.4 workaround.
12135 * python/python-internal.h: Remove Python 2.4 comment.
12136 (Py_ssize_t): Don't define.
12137 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12138 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12139 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12140 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12141 * python/python.c (do_start_initialization): Remove Python 2.4
12142 workaround.
12143 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12144 (print_children): Remove Python 2.4 workaround.
12145 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12146 workaround.
12147 (CHARBUFFERPROC_NAME): Remove.
12148 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12149 Python 2.4 workaround.
12150
2c3fc25d 121512019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12152
2c3fc25d
KB
12153 * NEWS: Note minimum Python version.
12154
6ca62222
KB
121552019-02-27 Kevin Buettner <kevinb@redhat.com>
12156
12157 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12158 code from these functions. Remove corresponding ifdefs. Use
12159 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12160 Remove gotos and target of gotos.
12161 (infpy_search_memory): Likewise.
12162
f4bc7d2c
AB
121632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12164
12165 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12166 (hppa_gdbarch_init): Don't register deleted functions with
12167 gdbarch.
12168
9734a586
AB
121692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12172 (h8300_unwind_sp): Delete.
12173 (h8300_dummy_id): Delete.
12174 (h8300_gdbarch_init): Don't register deleted functions with
12175 gdbarch.
12176
68b867f3
AB
121772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12178
12179 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12180 (ft32_unwind_pc): Delete.
12181 (ft32_unwind_sp): Delete.
12182 (ft32_gdbarch_init): Don't register deleted functions with
12183 gdbarch.
12184
2fbe7ad0
AB
121852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12186
12187 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12188 (frv_unwind_pc): Delete.
12189 (frv_unwind_sp): Delete.
12190 (frv_gdbarch_init): Don't register deleted functions with
12191 gdbarch.
12192
76055cbe
AB
121932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12194
12195 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12196 (riscv_unwind_pc): Delete.
12197 (riscv_unwind_sp): Delete.
12198 (riscv_gdbarch_init): Don't register deleted functions with
12199 gdbarch.
12200
4133e5a1
AB
122012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12204 (csky_unwind_pc): Delete.
12205 (csky_unwind_sp): Delete.
12206 (csky_gdbarch_init): Don't register deleted functions with
12207 gdbarch.
12208
8010f576
AB
122092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12210
12211 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12212 (cris_unwind_pc): Delete.
12213 (cris_unwind_sp): Delete.
12214 (cris_gdbarch_init): Don't register deleted functions with
12215 gdbarch.
12216
b56bf084
AB
122172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12218
12219 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12220 (bfin_unwind_pc): Delete.
12221 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12222
a19a650f
AB
122232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12224
12225 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12226 (arm_unwind_pc): Delete.
12227 (arm_unwind_sp): Delete.
12228 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12229
f8278c3c
AB
122302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12233 (arc_unwind_pc): Delete.
12234 (arc_unwind_sp): Delete.
12235 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12236
480e46cf
AB
122372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12238
12239 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12240 (alpha_unwind_pc): Delete.
12241 (alpha_gdbarch_init): Don't register deleted functions with
12242 gdbarch.
12243
7a995095
AB
122442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12245
12246 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12247 (aarch64_unwind_pc): Delete.
12248 (aarch64_unwind_sp): Delete.
12249 (aarch64_gdbarch_init): Don't register deleted functions with
12250 gdbarch.
12251
bf9a735e
AB
122522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * gdbtypes.c (type_align): Don't consider static members when
12255 computing structure alignment.
12256
5561fc30
AB
122572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12260 return 0 for other types.
12261 * arch-utils.c (default_type_align): Always return 0.
12262 * gdbarch.h: Regenerate.
12263 * gdbarch.sh (type_align): Extend comment.
12264 * gdbtypes.c (type_align): Add additional comments, always call
12265 gdbarch_type_align before applying the default rules.
12266 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12267 generic code will then apply a suitable default.
12268 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12269 types, return 0 for other types.
12270
9335e75a
JB
122712019-02-27 Joel Brobecker <brobecker@adacore.com>
12272
12273 * NEWS: Create a new section for the next release branch.
12274 Rename the section of the current branch, now that it has
12275 been cut.
12276
3d34d8de
JB
122772019-02-27 Joel Brobecker <brobecker@adacore.com>
12278
12279 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12280 * version.in: Bump version to 8.3.50.DATE-git.
12281
143420fb
SM
122822019-02-26 Simon Marchi <simon.marchi@efficios.com>
12283
12284 * aix-thread.c (ptid_cmp): Remove unused variable.
12285 (get_signaled_thread): Likewise.
12286 (store_regs_user_thread): Likewise.
12287 (store_regs_kernel_thread): Likewise.
12288 (fetch_regs_kernel_thread): Remove shadowed variable.
12289
172fb711
AB
122902019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * features/riscv/32bit-cpu.xml: Add register numbers.
12293 * features/riscv/32bit-fpu.c: Regenerate.
12294 * features/riscv/32bit-fpu.xml: Add register numbers.
12295 * features/riscv/64bit-cpu.xml: Add register numbers.
12296 * features/riscv/64bit-fpu.c: Regenerate.
12297 * features/riscv/64bit-fpu.xml: Add register numbers.
12298
26c89782
KB
122992019-02-26 Kevin Buettner <kevinb@redhat.com>
12300
af54ade9 12301 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12302 * python/py-value.c (convert_buffer_and_type_to_value): New
12303 function.
12304 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12305 Add support for handling an optional second argument. Call
12306 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12307 * python/python-internal.h (Py_buffer_deleter): New struct.
12308 (Py_buffer_up): New typedef.
12309
0f58c9e8
JB
123102019-02-25 John Baldwin <jhb@FreeBSD.org>
12311
12312 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12313 instead of releasing ownership.
12314
0a0f4c01
JR
123152019-02-25 Jordan Rupprecht <rupprecht@google.com>
12316
12317 * dwarf2read.c (open_and_init_dwp_file): Call
12318 elf_numsections instead of bfd_count_sections to initialize
12319 dwp_file->num_sections.
12320
cd5a152c
TT
123212019-02-25 Tom Tromey <tromey@adacore.com>
12322
12323 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12324
8a6a8513
SDJ
123252019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12326
12327 * gcore.in: Add '--readnever' option when invoking GDB.
12328
04dcda9c
SM
123292019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12330
12331 * MAINTAINERS: Update my email address.
12332
07bc701d
SM
123332019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12334
12335 * build-id.c (build_id_to_debug_bfd_1): New function.
12336 (build_id_to_debug_bfd): Look for separate debug file in
12337 sysroot.
12338
c6f4a5d0
AB
123392019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12340
12341 * gdbarch.sh: Update the copyright year range that is placed into
12342 generated files.
12343
9600246d
KS
123442019-02-22 Keith Seitz <keiths@redhat.com>
12345
12346 PR symtab/23853
12347 * linespec.c (create_sals_line_offset): Search for the default
12348 symtab's filename instead of its fullname.
12349
7557a514
AH
123502019-02-21 Alan Hayward <alan.hayward@arm.com>
12351
12352 * NEWS: Update style defaults.
12353
ee2bcb0c
AH
123542019-02-21 Alan Hayward <alan.hayward@arm.com>
12355
12356 * main.c (captured_main_1): Disable styling in batch mode.
12357
0c95f9ed
TT
123582019-02-20 Tom Tromey <tom@tromey.com>
12359
12360 * symtab.c (symtab_symbol_info): Fix typos.
12361
c763b894
TT
123622019-02-20 Tom Tromey <tromey@adacore.com>
12363
12364 * findcmd.c (_initialize_mem_search): Use upper case for
12365 metasyntactic variables.
12366
0ef8a082
AH
123672019-02-20 Alan Hayward <alan.hayward@arm.com>
12368
12369 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12370 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12371
6caa91b6
SM
123722019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12373
12374 * top.h (source_file_name): Change to std::string.
12375 * top.c (source_file_name): Likewise.
12376 (command_line_input): Adjust.
12377 * cli/cli-script.c (script_from_file): Adjust.
12378
98814c6c
TT
123792019-02-19 Tom Tromey <tromey@adacore.com>
12380
12381 * ravenscar-thread.c
12382 (ravenscar_thread_target::update_thread_list): Don't call
12383 ada_build_task_list.
12384 * ada-lang.h (ada_build_task_list): Don't declare.
12385 * ada-tasks.c (struct ada_tasks_inferior_data)
12386 <task_list_valid_p>: Now bool.
12387 (read_known_tasks, ada_task_list_changed)
12388 (ada_tasks_invalidate_inferior_data): Update.
12389 (read_known_tasks_array): Return bool.
12390 (read_known_tasks_list): Likewise.
12391 (read_known_tasks): Return void.
12392 (ada_build_task_list): Now static.
12393
70cd633e
AB
123942019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12395
12396 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12397 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12398
040b3e95
PW
123992019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12400
12401 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12402 variant for ada_tasks_pspace_data_handle and
12403 ada_tasks_inferior_data_handle.
12404 (ada_tasks_pspace_data_cleanup): New function.
12405 (ada_tasks_inferior_data_cleanup): New function.
12406
9409233b
TT
124072019-02-17 Tom Tromey <tom@tromey.com>
12408
12409 * macrotab.h (macro_source_fullname): Return a std::string.
12410 * macrotab.c (macro_include, check_for_redefinition)
12411 (macro_undef, macro_lookup_definition, foreach_macro)
12412 (foreach_macro_in_scope): Update.
12413 (macro_source_fullname): Return a std::string.
12414 * macrocmd.c (show_pp_source_pos): Update.
12415
6506371f
TT
124162019-02-17 Tom Tromey <tom@tromey.com>
12417
12418 * macrocmd.c (show_pp_source_pos): Style the file names.
12419
0c820d67
TT
124202019-02-17 Tom Tromey <tom@tromey.com>
12421
12422 PR tui/24197:
12423 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12424
a0087920
TT
124252019-02-17 Tom Tromey <tom@tromey.com>
12426
12427 * ada-lang.c (user_select_syms): Use filtered printing.
12428 * utils.c (wrap_style): New global.
12429 (desired_style): Remove.
12430 (emit_style_escape): Add stream parameter.
12431 (set_output_style, reset_terminal_style, prompt_for_continue):
12432 Update.
12433 (flush_wrap_buffer): Only flush gdb_stdout.
12434 (wrap_here): Set wrap_style.
12435 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12436 treat escape sequences as a character. Change when wrap buffer is
12437 flushed.
12438 (fputs_styled): Do not set the output style when the default is
12439 requested.
12440 * ui-style.h (struct ui_file_style) <is_default>: New method.
12441 * source.c (print_source_lines_base): Emit escape sequences in one
12442 piece.
12443
75ba10dc
JB
124442019-02-17 Joel Brobecker <brobecker@adacore.com>
12445
12446 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12447 integers and enumeration types.
12448
a2cd4f14
JB
124492019-02-17 Joel Brobecker <brobecker@adacore.com>
12450
12451 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12452 instead of lookup_symbol_in_language
12453 (do_exact_match): New function.
12454 (ada_get_symbol_name_matcher): Return do_exact_match when
12455 doing a verbatim match.
12456
485b851b
TT
124572019-02-15 Tom Tromey <tromey@adacore.com>
12458
12459 * ravenscar-thread.c (ravenscar_thread_target::resume)
12460 (ravenscar_thread_target::wait): Special case wildcard requests.
12461
0b790b1e
TT
124622019-02-15 Tom Tromey <tromey@adacore.com>
12463
12464 * ravenscar-thread.c (base_ptid): Remove.
12465 (struct ravenscar_thread_target) <close>: New method.
12466 <m_base_ptid>: New member.
12467 <update_inferior_ptid, active_task, task_is_currently_active,
12468 runtime_initialized>: Declare methods.
12469 <ravenscar_thread_target>: Add constructor.
12470 (ravenscar_thread_target::task_is_currently_active)
12471 (ravenscar_thread_target::update_inferior_ptid)
12472 (ravenscar_runtime_initialized): Rename. Now methods.
12473 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12474 (ravenscar_thread_target::update_thread_list): Update.
12475 (ravenscar_thread_target::active_task): Now method.
12476 (ravenscar_thread_target::store_registers)
12477 (ravenscar_thread_target::prepare_to_store)
12478 (ravenscar_thread_target::prepare_to_store)
12479 (ravenscar_thread_target::mourn_inferior): Update.
12480 (ravenscar_inferior_created): Use "new" to create target.
12481 (ravenscar_thread_target::get_ada_task_ptid): Update.
12482 (_initialize_ravenscar): Don't initialize base_ptid.
12483 (ravenscar_ops): Remove global.
12484
dea57a62
TT
124852019-02-15 Tom Tromey <tromey@adacore.com>
12486
12487 * target.h (push_target): Declare new overload.
12488 * target.c (push_target): New overload, taking an rvalue reference.
12489 * remote.c (remote_target::open_1): Use push_target overload.
12490 * corelow.c (core_target_open): Use push_target overload.
12491
989f3c58
TT
124922019-02-15 Tom Tromey <tromey@adacore.com>
12493
12494 * ravenscar-thread.c (is_ravenscar_task)
12495 (ravenscar_task_is_currently_active): Return bool.
12496 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12497 (_initialize_ravenscar): Remove "(void)".
12498 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12499 Return bool.
12500
6cbcc006
TT
125012019-02-15 Tom Tromey <tromey@adacore.com>
12502
12503 * ravenscar-thread.c (ravenscar_runtime_initializer)
12504 (has_ravenscar_runtime, get_running_thread_id)
12505 (ravenscar_thread_target::resume): Fix indentation.
12506
7657f14d
TT
125072019-02-15 Tom Tromey <tromey@adacore.com>
12508
12509 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12510 from ravenscar_arch_ops.
12511 (sparc_ravenscar_ops::fetch_registers)
12512 (sparc_ravenscar_ops::store_registers): Now methods.
12513 (sparc_ravenscar_prepare_to_store): Remove.
12514 (sparc_ravenscar_ops): Redefine.
12515 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12516 methods and destructor. Remove members.
12517 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12518 (ravenscar_thread_target::store_registers)
12519 (ravenscar_thread_target::prepare_to_store): Update.
12520 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12521 Remove.
12522 (struct ppc_ravenscar_powerpc_ops): Derive from
12523 ravenscar_arch_ops.
12524 (ppc_ravenscar_powerpc_ops::fetch_registers)
12525 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12526 (ppc_ravenscar_powerpc_ops): Redefine.
12527 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12528 (ppc_ravenscar_e500_ops::fetch_registers)
12529 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12530 (ppc_ravenscar_e500_ops): Redefine.
12531 * aarch64-ravenscar-thread.c
12532 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12533 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12534 (aarch64_ravenscar_fetch_registers)
12535 (aarch64_ravenscar_store_registers): Now methods.
12536 (aarch64_ravenscar_ops): Redefine.
12537
5b6ea500
TT
125382019-02-15 Tom Tromey <tromey@adacore.com>
12539
12540 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12541 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12542 (ravenscar_thread_target::stopped_by_watchpoint)
12543 (ravenscar_thread_target::stopped_data_address)
12544 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12545
e397fd39
TT
125462019-02-15 Tom Tromey <tromey@adacore.com>
12547
12548 * ravenscar-thread.c: Fix some typos.
12549
cc12f4a8
TT
125502019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12551 Tom Tromey <tromey@adacore.com>
12552
12553 * ada-lang.c (ada_exception_sal): Change addr_string to a
12554 std::string.
12555 (create_ada_exception_catchpoint): Update.
12556
5f486660
TT
125572019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12558 Tom Tromey <tromey@adacore.com>
12559
12560 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12561 (bp_location_ops): Remove.
12562 (base_breakpoint_allocate_location): Update.
12563 (free_bp_location): Update.
12564 * ada-lang.c (class ada_catchpoint_location)
12565 <ada_catchpoint_location>: Remove ops parameter.
12566 (ada_catchpoint_location_dtor): Remove.
12567 (ada_catchpoint_location_ops): Remove.
12568 (allocate_location_exception): Update.
12569 * breakpoint.h (struct bp_location_ops): Remove.
12570 (class bp_location) <bp_location>: Remove bp_location_ops
12571 parameter.
12572 <~bp_location>: Add destructor.
12573 <ops>: Remove.
12574
b671c7fb
TS
125752019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12576 Pedro Alves <palves@redhat.com>
12577
12578 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12579 'PATH_MAX'.
12580
8071c5ce
DM
125812019-02-14 David Michael <fedora.dm0@gmail.com>
12582 Samuel Thibault <samuel.thibault@gnu.org>
12583 Thomas Schwinge <thomas@codesourcery.com>
12584
12585 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12586 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12587
b1041ae0
TS
125882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12589
924514e1
TS
12590 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12591 (check_empty): Use "const char *".
12592
c29ee8d4
TS
12593 * gnu-nat.c (gnu_nat_target::detach): Instead of
12594 'detach_inferior (pid)' call
12595 'detach_inferior (find_inferior_pid (pid))'.
12596
6c6ef69f
TS
12597 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12598 'nat/fork-inferior.o'.
12599 * gnu-nat.c: #include "nat/fork-inferior.h".
12600
2d0a338c
TS
12601 * gnu-nat.c (gnu_nat_target::detach): Instead of
12602 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12603 * gnu-nat.h: #include "inf-child.h".
12604 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12605 'i386_gnu_nat_target::fetch_registers'.
12606 (gnu_store_registers): Rename/move to
12607 'i386_gnu_nat_target::store_registers'.
12608
cabb5f06
TS
12609 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12610 * gnu-nat.h (mach_thread_info): New function.
12611 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12612
b1041ae0
TS
12613 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12614
2988d01e
KF
126152019-02-14 Frederic Konrad <konrad@adacore.com>
12616
12617 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12618
c559d709
JB
126192019-02-14 Joel Brobecker <brobecker@adacore.com>
12620
12621 * windows-nat.c (windows_add_thread): Add new parameter
12622 "main_thread_p" with default value set to false. Update
12623 function documentation as well as all callers.
12624 (windows_delete_thread): Likewise.
12625 (fake_create_process): Update call to windows_add_thread.
12626 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12627 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12628 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12629 call to windows_delete_thread.
12630
007024cc
SM
126312019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12632
12633 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12634
f62318e9
JB
126352019-02-12 John Baldwin <jhb@FreeBSD.org>
12636
12637 * symfile.c (find_separate_debug_file): Use canonical path of
12638 sysroot with child_path instead of gdb_sysroot if it is valid.
12639
cd4b7848
JB
126402019-02-12 John Baldwin <jhb@FreeBSD.org>
12641
12642 * symfile.c (find_separate_debug_file): Use child_path to
12643 determine if an object file is under a sysroot.
12644
efac4bfe
JB
126452019-02-12 John Baldwin <jhb@FreeBSD.org>
12646
12647 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12648 unittests/child-path-selftests.c.
12649 * common/pathstuff.c (child_path): New function.
12650 * common/pathstuff.h (child_path): New prototype.
12651 * unittests/child-path-selftests.c: New file.
12652
402d2bfe
JB
126532019-02-12 John Baldwin <jhb@FreeBSD.org>
12654
12655 * symfile.c (find_separate_debug_file): Look for separate debug
12656 files in debug directories under the sysroot.
12657
1ed9f74e
PW
126582019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12659
12660 * symtab.h (struct minimal_symbol data_p): New const method.
12661 (struct minimal_symbol text_p): Likewise.
12662 * symtab.c (output_source_filename): Use file name style
12663 to print file name.
12664 (print_symbol_info): Likewise.
12665 (print_msymbol_info): Use address style to print addresses.
12666 Use function name style to print executable text symbols.
12667 (expand_symtab_containing_pc): Use data_p.
12668 (find_pc_sect_compunit_symtab): Likewise.
12669
2636d81d
PW
126702019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12671
12672 * breakpoint.c (describe_other_breakpoints): Use address style
12673 to print addresses.
12674 (say_where): Likewise.
12675
ac8c53cc
PW
126762019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12677
12678 * ada-typeprint.c (print_func_type): Print function name
12679 style to print function name.
12680 * c-typeprint.c (c_print_type_1): Likewise.
12681
ea638c43
AH
126822019-02-11 Alan Hayward <alan.hayward@arm.com>
12683
12684 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12685 for execve.
12686
ab759ca8
PW
126872019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12688
12689 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12690 type_stack.
12691
aff29d1c
JB
126922019-02-10 Joel Brobecker <brobecker@adacore.com>
12693
12694 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12695 TYPE_CODE_REF types.
12696
617126bc
JW
126972019-02-08 Jim Wilson <jimw@sifive.com>
12698
12699 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12700 (riscv_linux_fregset): New.
12701 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12702
46e3ed7f
TT
127032019-02-07 Tom Tromey <tom@tromey.com>
12704
12705 * thread.c (thread_cancel_execution_command): Update.
12706 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12707 methods.
12708 (struct thread_fsm_ops): Remove.
12709 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12710 (thread_fsm_should_stop, thread_fsm_return_value)
12711 (thread_fsm_set_finished, thread_fsm_finished_p)
12712 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12713 Don't declare.
12714 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12715 * infrun.c (clear_proceed_status_thread)
12716 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12717 (print_stop_event): Update.
12718 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12719 Add constructor.
12720 (step_command_fsm_ops): Remove.
12721 (new_step_command_fsm): Remove.
12722 (step_1): Update.
12723 (step_command_fsm::should_stop): Rename from
12724 step_command_fsm_should_stop.
12725 (step_command_fsm::clean_up): Rename from
12726 step_command_fsm_clean_up.
12727 (step_command_fsm::do_async_reply_reason): Rename from
12728 step_command_fsm_async_reply_reason.
12729 (struct until_next_fsm): Inherit from thread_fsm. Add
12730 constructor.
12731 (until_next_fsm_ops): Remove.
12732 (new_until_next_fsm): Remove.
12733 (until_next_fsm::should_stop): Rename from
12734 until_next_fsm_should_stop.
12735 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12736 (until_next_fsm::do_async_reply_reason): Rename from
12737 until_next_fsm_async_reply_reason.
12738 (struct finish_command_fsm): Inherit from thread_fsm. Add
12739 constructor. Change type of breakpoint.
12740 (finish_command_fsm_ops): Remove.
12741 (new_finish_command_fsm): Remove.
12742 (finish_command_fsm::should_stop): Rename from
12743 finish_command_fsm_should_stop.
12744 (finish_command_fsm::clean_up): Rename from
12745 finish_command_fsm_clean_up.
12746 (finish_command_fsm::return_value): Rename from
12747 finish_command_fsm_return_value.
12748 (finish_command_fsm::do_async_reply_reason): Rename from
12749 finish_command_fsm_async_reply_reason.
12750 (finish_command): Update.
12751 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12752 Add constructor.
12753 (call_thread_fsm_ops): Remove.
12754 (call_thread_fsm::call_thread_fsm): Rename from
12755 new_call_thread_fsm.
12756 (call_thread_fsm::should_stop): Rename from
12757 call_thread_fsm_should_stop.
12758 (call_thread_fsm::should_notify_stop): Rename from
12759 call_thread_fsm_should_notify_stop.
12760 (run_inferior_call, call_function_by_hand_dummy): Update.
12761 * cli/cli-interp.c (should_print_stop_to_console): Update.
12762 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12763 Add constructor. Change type of location_breakpoint,
12764 caller_breakpoint.
12765 (until_break_fsm_ops): Remove.
12766 (new_until_break_fsm): Remove.
12767 (until_break_fsm::should_stop): Rename from
12768 until_break_fsm_should_stop.
12769 (until_break_fsm::clean_up): Rename from
12770 until_break_fsm_clean_up.
12771 (until_break_fsm::do_async_reply_reason): Rename from
12772 until_break_fsm_async_reply_reason.
12773 (until_break_command): Update.
12774 * thread-fsm.c: Remove.
12775 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12776
1a5c2598
TT
127772019-02-07 Tom Tromey <tom@tromey.com>
12778
12779 * yy-remap.h: Add include guard.
12780 * xtensa-tdep.h: Add include guard.
12781 * xcoffread.h: Rename include guard.
12782 * varobj-iter.h: Add include guard.
12783 * tui/tui.h: Rename include guard.
12784 * tui/tui-winsource.h: Rename include guard.
12785 * tui/tui-wingeneral.h: Rename include guard.
12786 * tui/tui-windata.h: Rename include guard.
12787 * tui/tui-win.h: Rename include guard.
12788 * tui/tui-stack.h: Rename include guard.
12789 * tui/tui-source.h: Rename include guard.
12790 * tui/tui-regs.h: Rename include guard.
12791 * tui/tui-out.h: Rename include guard.
12792 * tui/tui-layout.h: Rename include guard.
12793 * tui/tui-io.h: Rename include guard.
12794 * tui/tui-hooks.h: Rename include guard.
12795 * tui/tui-file.h: Rename include guard.
12796 * tui/tui-disasm.h: Rename include guard.
12797 * tui/tui-data.h: Rename include guard.
12798 * tui/tui-command.h: Rename include guard.
12799 * tic6x-tdep.h: Add include guard.
12800 * target/waitstatus.h: Rename include guard.
12801 * target/wait.h: Rename include guard.
12802 * target/target.h: Rename include guard.
12803 * target/resume.h: Rename include guard.
12804 * target-float.h: Rename include guard.
12805 * stabsread.h: Add include guard.
12806 * rs6000-tdep.h: Add include guard.
12807 * riscv-fbsd-tdep.h: Add include guard.
12808 * regformats/regdef.h: Rename include guard.
12809 * record.h: Rename include guard.
12810 * python/python.h: Rename include guard.
12811 * python/python-internal.h: Rename include guard.
12812 * python/py-stopevent.h: Rename include guard.
12813 * python/py-ref.h: Rename include guard.
12814 * python/py-record.h: Rename include guard.
12815 * python/py-record-full.h: Rename include guard.
12816 * python/py-record-btrace.h: Rename include guard.
12817 * python/py-instruction.h: Rename include guard.
12818 * python/py-events.h: Rename include guard.
12819 * python/py-event.h: Rename include guard.
12820 * procfs.h: Add include guard.
12821 * proc-utils.h: Add include guard.
12822 * p-lang.h: Add include guard.
12823 * or1k-tdep.h: Rename include guard.
12824 * observable.h: Rename include guard.
12825 * nto-tdep.h: Rename include guard.
12826 * nat/x86-linux.h: Rename include guard.
12827 * nat/x86-linux-dregs.h: Rename include guard.
12828 * nat/x86-gcc-cpuid.h: Add include guard.
12829 * nat/x86-dregs.h: Rename include guard.
12830 * nat/x86-cpuid.h: Rename include guard.
12831 * nat/ppc-linux.h: Rename include guard.
12832 * nat/mips-linux-watch.h: Rename include guard.
12833 * nat/linux-waitpid.h: Rename include guard.
12834 * nat/linux-ptrace.h: Rename include guard.
12835 * nat/linux-procfs.h: Rename include guard.
12836 * nat/linux-osdata.h: Rename include guard.
12837 * nat/linux-nat.h: Rename include guard.
12838 * nat/linux-namespaces.h: Rename include guard.
12839 * nat/linux-btrace.h: Rename include guard.
12840 * nat/glibc_thread_db.h: Rename include guard.
12841 * nat/gdb_thread_db.h: Rename include guard.
12842 * nat/gdb_ptrace.h: Rename include guard.
12843 * nat/fork-inferior.h: Rename include guard.
12844 * nat/amd64-linux-siginfo.h: Rename include guard.
12845 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12846 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12847 * nat/aarch64-linux.h: Rename include guard.
12848 * nat/aarch64-linux-hw-point.h: Rename include guard.
12849 * mn10300-tdep.h: Add include guard.
12850 * mips-linux-tdep.h: Add include guard.
12851 * mi/mi-parse.h: Rename include guard.
12852 * mi/mi-out.h: Rename include guard.
12853 * mi/mi-main.h: Rename include guard.
12854 * mi/mi-interp.h: Rename include guard.
12855 * mi/mi-getopt.h: Rename include guard.
12856 * mi/mi-console.h: Rename include guard.
12857 * mi/mi-common.h: Rename include guard.
12858 * mi/mi-cmds.h: Rename include guard.
12859 * mi/mi-cmd-break.h: Rename include guard.
12860 * m2-lang.h: Add include guard.
12861 * location.h: Rename include guard.
12862 * linux-record.h: Rename include guard.
12863 * linux-nat.h: Add include guard.
12864 * linux-fork.h: Add include guard.
12865 * i386-darwin-tdep.h: Rename include guard.
12866 * hppa-linux-offsets.h: Add include guard.
12867 * guile/guile.h: Rename include guard.
12868 * guile/guile-internal.h: Rename include guard.
12869 * gnu-nat.h: Rename include guard.
12870 * gdb-stabs.h: Rename include guard.
12871 * frv-tdep.h: Add include guard.
12872 * f-lang.h: Add include guard.
12873 * event-loop.h: Add include guard.
12874 * darwin-nat.h: Rename include guard.
12875 * cp-abi.h: Rename include guard.
12876 * config/sparc/nm-sol2.h: Rename include guard.
12877 * config/nm-nto.h: Rename include guard.
12878 * config/nm-linux.h: Add include guard.
12879 * config/i386/nm-i386gnu.h: Rename include guard.
12880 * config/djgpp/nl_types.h: Rename include guard.
12881 * config/djgpp/langinfo.h: Rename include guard.
12882 * compile/gcc-cp-plugin.h: Add include guard.
12883 * compile/gcc-c-plugin.h: Add include guard.
12884 * compile/compile.h: Rename include guard.
12885 * compile/compile-object-run.h: Rename include guard.
12886 * compile/compile-object-load.h: Rename include guard.
12887 * compile/compile-internal.h: Rename include guard.
12888 * compile/compile-cplus.h: Rename include guard.
12889 * compile/compile-c.h: Rename include guard.
12890 * common/xml-utils.h: Rename include guard.
12891 * common/x86-xstate.h: Rename include guard.
12892 * common/version.h: Rename include guard.
12893 * common/vec.h: Rename include guard.
12894 * common/tdesc.h: Rename include guard.
12895 * common/selftest.h: Rename include guard.
12896 * common/scoped_restore.h: Rename include guard.
12897 * common/scoped_mmap.h: Rename include guard.
12898 * common/scoped_fd.h: Rename include guard.
12899 * common/safe-iterator.h: Rename include guard.
12900 * common/run-time-clock.h: Rename include guard.
12901 * common/refcounted-object.h: Rename include guard.
12902 * common/queue.h: Rename include guard.
12903 * common/ptid.h: Rename include guard.
12904 * common/print-utils.h: Rename include guard.
12905 * common/preprocessor.h: Rename include guard.
12906 * common/pathstuff.h: Rename include guard.
12907 * common/observable.h: Rename include guard.
12908 * common/netstuff.h: Rename include guard.
12909 * common/job-control.h: Rename include guard.
12910 * common/host-defs.h: Rename include guard.
12911 * common/gdb_wait.h: Rename include guard.
12912 * common/gdb_vecs.h: Rename include guard.
12913 * common/gdb_unlinker.h: Rename include guard.
12914 * common/gdb_unique_ptr.h: Rename include guard.
12915 * common/gdb_tilde_expand.h: Rename include guard.
12916 * common/gdb_sys_time.h: Rename include guard.
12917 * common/gdb_string_view.h: Rename include guard.
12918 * common/gdb_splay_tree.h: Rename include guard.
12919 * common/gdb_setjmp.h: Rename include guard.
12920 * common/gdb_ref_ptr.h: Rename include guard.
12921 * common/gdb_optional.h: Rename include guard.
12922 * common/gdb_locale.h: Rename include guard.
12923 * common/gdb_assert.h: Rename include guard.
12924 * common/filtered-iterator.h: Rename include guard.
12925 * common/filestuff.h: Rename include guard.
12926 * common/fileio.h: Rename include guard.
12927 * common/environ.h: Rename include guard.
12928 * common/common-utils.h: Rename include guard.
12929 * common/common-types.h: Rename include guard.
12930 * common/common-regcache.h: Rename include guard.
12931 * common/common-inferior.h: Rename include guard.
12932 * common/common-gdbthread.h: Rename include guard.
12933 * common/common-exceptions.h: Rename include guard.
12934 * common/common-defs.h: Rename include guard.
12935 * common/common-debug.h: Rename include guard.
12936 * common/cleanups.h: Rename include guard.
12937 * common/buffer.h: Rename include guard.
12938 * common/btrace-common.h: Rename include guard.
12939 * common/break-common.h: Rename include guard.
12940 * cli/cli-utils.h: Rename include guard.
12941 * cli/cli-style.h: Rename include guard.
12942 * cli/cli-setshow.h: Rename include guard.
12943 * cli/cli-script.h: Rename include guard.
12944 * cli/cli-interp.h: Rename include guard.
12945 * cli/cli-decode.h: Rename include guard.
12946 * cli/cli-cmds.h: Rename include guard.
12947 * charset-list.h: Add include guard.
12948 * buildsym-legacy.h: Rename include guard.
12949 * bfin-tdep.h: Add include guard.
12950 * ax.h: Rename include guard.
12951 * arm-linux-tdep.h: Add include guard.
12952 * arm-fbsd-tdep.h: Add include guard.
12953 * arch/xtensa.h: Rename include guard.
12954 * arch/tic6x.h: Add include guard.
12955 * arch/i386.h: Add include guard.
12956 * arch/arm.h: Rename include guard.
12957 * arch/arm-linux.h: Rename include guard.
12958 * arch/arm-get-next-pcs.h: Rename include guard.
12959 * arch/amd64.h: Add include guard.
12960 * arch/aarch64-insn.h: Rename include guard.
12961 * arch-utils.h: Rename include guard.
12962 * annotate.h: Add include guard.
12963 * amd64-darwin-tdep.h: Rename include guard.
12964 * aarch64-linux-tdep.h: Add include guard.
12965 * aarch64-fbsd-tdep.h: Add include guard.
12966 * aarch32-linux-nat.h: Add include guard.
12967
ab9268d2
PW
129682019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12969
12970 * macrotab.c (macro_define_internal): New function that
12971 factorizes macro_define_object_internal and macro_define_function
12972 code.
12973 (macro_define_object_internal): Use macro_define_internal.
12974 (macro_define_function): Likewise.
12975
bb0da2b4
PW
129762019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12977
12978 * macrocmd.c (extract_identifier): Return
12979 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12980 callers.
12981
424eb552
JB
129822019-02-06 John Baldwin <jhb@FreeBSD.org>
12983
12984 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12985
1688cb29
TT
129862019-02-05 Tom Tromey <tom@tromey.com>
12987
12988 * target.c (target_stack::unpush): Move assertion earlier.
12989
b5eba2d8
TT
129902019-01-30 Tom Tromey <tom@tromey.com>
12991
12992 PR python/23615:
12993 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12994 (gdbpy_parse_and_eval): Likewise.
12995 * python/python-internal.h (gdbpy_allow_threads): New class.
12996
7054e2ff
JB
129972019-01-28 John Baldwin <jhb@FreeBSD.org>
12998
12999 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13000 (aarch64_fbsd_fpregmap): Move earlier.
13001 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13002 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13003 instead of individual calls to trad_frame_set_reg_addr.
13004 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13005 earlier.
13006 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13007 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13008 instead of individual calls to trad_frame_set_reg_addr.
13009
36c25ffa
AH
130102019-01-28 Alan Hayward <alan.hayward@arm.com>
13011
13012 * CONTRIBUTE: Replace contribution list with wiki link.
13013
a0707f3c
TT
130142019-01-25 Tom Tromey <tom@tromey.com>
13015
13016 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13017
0747795c
TT
130182019-01-25 Tom Tromey <tom@tromey.com>
13019
13020 * xtensa-linux-nat.c: Fix common/ includes.
13021 * xml-support.h: Fix common/ includes.
13022 * xml-support.c: Fix common/ includes.
13023 * x86-linux-nat.c: Fix common/ includes.
13024 * windows-nat.c: Fix common/ includes.
13025 * varobj.h: Fix common/ includes.
13026 * varobj.c: Fix common/ includes.
13027 * value.c: Fix common/ includes.
13028 * valops.c: Fix common/ includes.
13029 * utils.c: Fix common/ includes.
13030 * unittests/xml-utils-selftests.c: Fix common/ includes.
13031 * unittests/utils-selftests.c: Fix common/ includes.
13032 * unittests/unpack-selftests.c: Fix common/ includes.
13033 * unittests/tracepoint-selftests.c: Fix common/ includes.
13034 * unittests/style-selftests.c: Fix common/ includes.
13035 * unittests/string_view-selftests.c: Fix common/ includes.
13036 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13037 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13038 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13039 * unittests/rsp-low-selftests.c: Fix common/ includes.
13040 * unittests/parse-connection-spec-selftests.c: Fix common/
13041 includes.
13042 * unittests/optional-selftests.c: Fix common/ includes.
13043 * unittests/offset-type-selftests.c: Fix common/ includes.
13044 * unittests/observable-selftests.c: Fix common/ includes.
13045 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13046 * unittests/memrange-selftests.c: Fix common/ includes.
13047 * unittests/memory-map-selftests.c: Fix common/ includes.
13048 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13049 * unittests/function-view-selftests.c: Fix common/ includes.
13050 * unittests/environ-selftests.c: Fix common/ includes.
13051 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13052 * unittests/common-utils-selftests.c: Fix common/ includes.
13053 * unittests/cli-utils-selftests.c: Fix common/ includes.
13054 * unittests/array-view-selftests.c: Fix common/ includes.
13055 * ui-file.c: Fix common/ includes.
13056 * tui/tui-io.c: Fix common/ includes.
13057 * tracepoint.h: Fix common/ includes.
13058 * tracepoint.c: Fix common/ includes.
13059 * tracefile-tfile.c: Fix common/ includes.
13060 * top.h: Fix common/ includes.
13061 * top.c: Fix common/ includes.
13062 * thread.c: Fix common/ includes.
13063 * target/waitstatus.h: Fix common/ includes.
13064 * target/waitstatus.c: Fix common/ includes.
13065 * target.h: Fix common/ includes.
13066 * target.c: Fix common/ includes.
13067 * target-memory.c: Fix common/ includes.
13068 * target-descriptions.c: Fix common/ includes.
13069 * symtab.h: Fix common/ includes.
13070 * symfile.c: Fix common/ includes.
13071 * stap-probe.c: Fix common/ includes.
13072 * spu-linux-nat.c: Fix common/ includes.
13073 * sparc-nat.c: Fix common/ includes.
13074 * source.c: Fix common/ includes.
13075 * solib.c: Fix common/ includes.
13076 * solib-target.c: Fix common/ includes.
13077 * ser-unix.c: Fix common/ includes.
13078 * ser-tcp.c: Fix common/ includes.
13079 * ser-pipe.c: Fix common/ includes.
13080 * ser-base.c: Fix common/ includes.
13081 * selftest-arch.c: Fix common/ includes.
13082 * s12z-tdep.c: Fix common/ includes.
13083 * rust-exp.y: Fix common/ includes.
13084 * rs6000-aix-tdep.c: Fix common/ includes.
13085 * riscv-tdep.c: Fix common/ includes.
13086 * remote.c: Fix common/ includes.
13087 * remote-notif.h: Fix common/ includes.
13088 * remote-fileio.h: Fix common/ includes.
13089 * remote-fileio.c: Fix common/ includes.
13090 * regcache.h: Fix common/ includes.
13091 * regcache.c: Fix common/ includes.
13092 * record-btrace.c: Fix common/ includes.
13093 * python/python.c: Fix common/ includes.
13094 * python/py-type.c: Fix common/ includes.
13095 * python/py-inferior.c: Fix common/ includes.
13096 * progspace.h: Fix common/ includes.
13097 * producer.c: Fix common/ includes.
13098 * procfs.c: Fix common/ includes.
13099 * proc-api.c: Fix common/ includes.
13100 * printcmd.c: Fix common/ includes.
13101 * ppc-linux-nat.c: Fix common/ includes.
13102 * parser-defs.h: Fix common/ includes.
13103 * osdata.c: Fix common/ includes.
13104 * obsd-nat.c: Fix common/ includes.
13105 * nat/x86-linux.c: Fix common/ includes.
13106 * nat/x86-linux-dregs.c: Fix common/ includes.
13107 * nat/x86-dregs.h: Fix common/ includes.
13108 * nat/x86-dregs.c: Fix common/ includes.
13109 * nat/ppc-linux.c: Fix common/ includes.
13110 * nat/mips-linux-watch.h: Fix common/ includes.
13111 * nat/mips-linux-watch.c: Fix common/ includes.
13112 * nat/linux-waitpid.c: Fix common/ includes.
13113 * nat/linux-ptrace.h: Fix common/ includes.
13114 * nat/linux-ptrace.c: Fix common/ includes.
13115 * nat/linux-procfs.c: Fix common/ includes.
13116 * nat/linux-personality.c: Fix common/ includes.
13117 * nat/linux-osdata.c: Fix common/ includes.
13118 * nat/linux-namespaces.c: Fix common/ includes.
13119 * nat/linux-btrace.h: Fix common/ includes.
13120 * nat/linux-btrace.c: Fix common/ includes.
13121 * nat/fork-inferior.c: Fix common/ includes.
13122 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13123 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13124 * nat/aarch64-linux.c: Fix common/ includes.
13125 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13126 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13127 * namespace.h: Fix common/ includes.
13128 * mips-linux-tdep.c: Fix common/ includes.
13129 * minsyms.c: Fix common/ includes.
13130 * mi/mi-parse.h: Fix common/ includes.
13131 * mi/mi-main.c: Fix common/ includes.
13132 * mi/mi-cmd-env.c: Fix common/ includes.
13133 * memrange.h: Fix common/ includes.
13134 * memattr.c: Fix common/ includes.
13135 * maint.h: Fix common/ includes.
13136 * maint.c: Fix common/ includes.
13137 * main.c: Fix common/ includes.
13138 * machoread.c: Fix common/ includes.
13139 * location.c: Fix common/ includes.
13140 * linux-thread-db.c: Fix common/ includes.
13141 * linux-nat.c: Fix common/ includes.
13142 * linux-fork.c: Fix common/ includes.
13143 * inline-frame.c: Fix common/ includes.
13144 * infrun.c: Fix common/ includes.
13145 * inflow.c: Fix common/ includes.
13146 * inferior.h: Fix common/ includes.
13147 * inferior.c: Fix common/ includes.
13148 * infcmd.c: Fix common/ includes.
13149 * inf-ptrace.c: Fix common/ includes.
13150 * inf-child.c: Fix common/ includes.
13151 * ia64-linux-nat.c: Fix common/ includes.
13152 * i387-tdep.c: Fix common/ includes.
13153 * i386-tdep.c: Fix common/ includes.
13154 * i386-linux-tdep.c: Fix common/ includes.
13155 * i386-linux-nat.c: Fix common/ includes.
13156 * i386-go32-tdep.c: Fix common/ includes.
13157 * i386-fbsd-tdep.c: Fix common/ includes.
13158 * i386-fbsd-nat.c: Fix common/ includes.
13159 * guile/scm-type.c: Fix common/ includes.
13160 * guile/guile.c: Fix common/ includes.
13161 * go32-nat.c: Fix common/ includes.
13162 * gnu-nat.c: Fix common/ includes.
13163 * gdbthread.h: Fix common/ includes.
13164 * gdbarch-selftests.c: Fix common/ includes.
13165 * gdb_usleep.c: Fix common/ includes.
13166 * gdb_select.h: Fix common/ includes.
13167 * gdb_bfd.c: Fix common/ includes.
13168 * gcore.c: Fix common/ includes.
13169 * fork-child.c: Fix common/ includes.
13170 * findvar.c: Fix common/ includes.
13171 * fbsd-nat.c: Fix common/ includes.
13172 * event-top.c: Fix common/ includes.
13173 * event-loop.c: Fix common/ includes.
13174 * dwarf2read.c: Fix common/ includes.
13175 * dwarf2loc.c: Fix common/ includes.
13176 * dwarf2-frame.c: Fix common/ includes.
13177 * dwarf-index-cache.c: Fix common/ includes.
13178 * dtrace-probe.c: Fix common/ includes.
13179 * disasm-selftests.c: Fix common/ includes.
13180 * defs.h: Fix common/ includes.
13181 * csky-tdep.c: Fix common/ includes.
13182 * cp-valprint.c: Fix common/ includes.
13183 * cp-support.h: Fix common/ includes.
13184 * cp-support.c: Fix common/ includes.
13185 * corelow.c: Fix common/ includes.
13186 * completer.h: Fix common/ includes.
13187 * completer.c: Fix common/ includes.
13188 * compile/compile.c: Fix common/ includes.
13189 * compile/compile-loc2c.c: Fix common/ includes.
13190 * compile/compile-cplus-types.c: Fix common/ includes.
13191 * compile/compile-cplus-symbols.c: Fix common/ includes.
13192 * command.h: Fix common/ includes.
13193 * cli/cli-dump.c: Fix common/ includes.
13194 * cli/cli-cmds.c: Fix common/ includes.
13195 * charset.c: Fix common/ includes.
13196 * build-id.c: Fix common/ includes.
13197 * btrace.h: Fix common/ includes.
13198 * btrace.c: Fix common/ includes.
13199 * breakpoint.h: Fix common/ includes.
13200 * breakpoint.c: Fix common/ includes.
13201 * ax.h:
13202 (enum agent_op): Fix common/ includes.
13203 * ax-general.c (struct aop_map): Fix common/ includes.
13204 * ax-gdb.c: Fix common/ includes.
13205 * auxv.c: Fix common/ includes.
13206 * auto-load.c: Fix common/ includes.
13207 * arm-tdep.c: Fix common/ includes.
13208 * arch/riscv.c: Fix common/ includes.
13209 * arch/ppc-linux-common.c: Fix common/ includes.
13210 * arch/i386.c: Fix common/ includes.
13211 * arch/arm.c: Fix common/ includes.
13212 * arch/arm-linux.c: Fix common/ includes.
13213 * arch/arm-get-next-pcs.c: Fix common/ includes.
13214 * arch/amd64.c: Fix common/ includes.
13215 * arch/aarch64.c: Fix common/ includes.
13216 * arch/aarch64-insn.c: Fix common/ includes.
13217 * arch-utils.c: Fix common/ includes.
13218 * amd64-windows-tdep.c: Fix common/ includes.
13219 * amd64-tdep.c: Fix common/ includes.
13220 * amd64-sol2-tdep.c: Fix common/ includes.
13221 * amd64-obsd-tdep.c: Fix common/ includes.
13222 * amd64-nbsd-tdep.c: Fix common/ includes.
13223 * amd64-linux-tdep.c: Fix common/ includes.
13224 * amd64-linux-nat.c: Fix common/ includes.
13225 * amd64-fbsd-tdep.c: Fix common/ includes.
13226 * amd64-fbsd-nat.c: Fix common/ includes.
13227 * amd64-dicos-tdep.c: Fix common/ includes.
13228 * amd64-darwin-tdep.c: Fix common/ includes.
13229 * agent.c: Fix common/ includes.
13230 * ada-lang.h: Fix common/ includes.
13231 * ada-lang.c: Fix common/ includes.
13232 * aarch64-tdep.c: Fix common/ includes.
13233
2f5c153e
TT
132342019-01-25 Tom Tromey <tom@tromey.com>
13235
13236 * common/create-version.sh: Use common/version.h.
13237
adc6a863
PA
132382019-01-24 Pedro Alves <palves@redhat.com>
13239
13240 * infrun.c (signal_stop, signal_print, signal_program)
13241 (signal_catch, signal_pass): Now arrays instead of pointers.
13242 (update_signals_program_target, do_target_resume)
13243 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13244 * linux-nat.c (linux_nat_target::pass_signals)
13245 (linux_nat_target::create_inferior, linux_nat_target::attach):
13246 Adjust.
13247 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13248 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13249 * procfs.c (procfs_target::pass_signals): Adjust.
13250 * record-full.c (record_full_target::resume): Adjust.
13251 * remote.c (remote_target::pass_signals)
13252 (remote_target::program_signals): Adjust.
13253 * target-debug.h (target_debug_print_signals): Now takes a
13254 gdb::array_view as parameter. Adjust.
13255 * target.h (target_ops) <pass_signals, program_signals>: Replace
13256 pointer and length parameters with gdb::array_view.
13257 (target_pass_signals, target_program_signals): Likewise.
13258 * target-delegates.c: Regenerate.
13259
3046d67a
PA
132602019-01-24 Pedro Alves <palves@redhat.com>
13261
13262 * common/forward-scope-exit.h
13263 (forward_scope_exit::forward_scope_exit): Pass arguments to
13264 m_bind_function directly, instead of creating a std::bind and
13265 copying that.
13266
353229bf
AH
132672019-01-24 Alan Hayward <alan.hayward@arm.com>
13268
13269 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13270 for static members.
13271 (pass_in_v_vfp_candidate): Likewise.
13272
311dc83a
TT
132732019-01-23 Tom Tromey <tom@tromey.com>
13274 Pedro Alves <palves@redhat.com>
13275
13276 * regcache.c (class regcache_invalidator): Remove.
13277 (regcache::raw_write): Use make_scope_exit.
13278
296bd123
TT
132792019-01-23 Tom Tromey <tom@tromey.com>
13280
13281 * ui-out.h (class ui_out_emit_type): Update comment.
13282
979a0d13
TT
132832019-01-23 Tom Tromey <tom@tromey.com>
13284
13285 * infrun.c (fetch_inferior_event): Update comment.
13286
d238133d
TT
132872019-01-23 Tom Tromey <tom@tromey.com>
13288 Pedro Alves <palves@redhat.com>
13289
13290 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13291 parameter.
13292 (fetch_inferior_event): Use SCOPE_EXIT.
13293
13294
9885e6bb
TT
132952019-01-23 Tom Tromey <tom@tromey.com>
13296 Pedro Alves <palves@redhat.com>
13297
13298 * infrun.c (disable_thread_events): Delete.
13299 (stop_all_threads): Use SCOPE_EXIT.
13300
286526c1
TT
133012019-01-23 Tom Tromey <tom@tromey.com>
13302 Pedro Alves <palves@redhat.com>
13303
13304 * symfile.c: Include forward-scope-exit.h.
13305 (clear_symtab_users_cleanup): Replace forward declaration with
13306 a FORWARD_SCOPE_EXIT.
13307 (syms_from_objfile_1): Use the forward_scope_exit and
13308 gdb::optional instead of cleanup_function.
13309 (reread_symbols): Use the forward_scope_exit instead of
13310 cleanup_function.
13311 (clear_symtab_users_cleanup): Remove function.
13312
1db93f14
TT
133132019-01-23 Tom Tromey <tom@tromey.com>
13314 Pedro Alves <palves@redhat.com>
13315
13316 * linux-nat.c: Include scope-exit.h.
13317 (cleanup_target_stop): Remove.
13318 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13319 SCOPE_EXIT.
13320
2cc83d1e
TT
133212019-01-23 Tom Tromey <tom@tromey.com>
13322 Pedro Alves <palves@redhat.com>
13323
13324 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13325 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13326
694c6bf5
TT
133272019-01-23 Tom Tromey <tom@tromey.com>
13328 Andrew Burgess <andrew.burgess@embecosm.com>
13329 Pedro Alves <palves@redhat.com>
13330
13331 * infrun.c (fetch_inferior_event): Use scope_exit.
13332 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13333 * top.c (execute_command): Use scope_exit.
13334 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13335 * utils.c (do_bpstat_clear_actions_cleanup)
13336 (make_bpstat_clear_actions_cleanup): Remove.
13337
4c41382a
TT
133382019-01-23 Tom Tromey <tom@tromey.com>
13339 Pedro Alves <palves@redhat.com>
13340
13341 * infrun.c: Include "common/scope-exit.h"
13342 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13343 (wait_for_inferior): Use SCOPE_EXIT.
13344 (fetch_inferior_event): Use scope_exit.
13345
89f8fb50
TT
133462019-01-23 Tom Tromey <tom@tromey.com>
13347 Pedro Alves <palves@redhat.com>
13348
13349 * breakpoint.c (create_breakpoint): Remove cleanup.
13350
5419bdae
TT
133512019-01-23 Tom Tromey <tom@tromey.com>
13352 Andrew Burgess <andrew.burgess@embecosm.com>
13353 Pedro Alves <palves@redhat.com>
13354
e587ef42
PA
133552019-01-23 Pedro Alves <palves@redhat.com>
13356
13357 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13358
77f0e74c
PA
133592019-01-23 Pedro Alves <palves@redhat.com>
13360 Andrew Burgess <andrew.burgess@embecosm.com>
13361
13362 * gdbthread.h: Include "common/forward-scope-exit.h".
13363 (scoped_finish_thread_state): Redefine custom class in terms of
13364 forward_scope_exit.
13365
5b9b3e53
PA
133662019-01-23 Pedro Alves <palves@redhat.com>
13367 Andrew Burgess <andrew.burgess@embecosm.com>
13368
13369 * common/forward-scope-exit.h: New file.
13370
54b65c9b
PA
133712019-01-23 Pedro Alves <palves@redhat.com>
13372 Andrew Burgess <andrew.burgess@embecosm.com>
13373 Tom Tromey <tom@tromey.com>
13374
13375 * common/scope-exit.h: New file.
13376
cf08fb29
PA
133772019-01-23 Pedro Alves <palves@redhat.com>
13378
13379 * common/preprocessor.h (ESC): Rename to ...
13380 (ESC_PARENS): ... this.
13381 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13382 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13383
ae73e2e2
TT
133842019-01-23 Tom Tromey <tom@tromey.com>
13385
13386 * language.h (class scoped_switch_to_sym_language_if_auto):
13387 Initialize m_lang in both cases.
13388
6594e122
AH
133892019-01-23 Alan Hayward <alan.hayward@arm.com>
13390
13391 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13392 with XCNEW.
13393
a7c9855d
TT
133942019-01-22 Tom Tromey <tom@tromey.com>
13395
13396 * corelow.c: Do not include sys/file.h.
13397
93cc1d53
TT
133982019-01-22 Tom Tromey <tom@tromey.com>
13399
13400 * tui/tui-wingeneral.h: Include gdb_curses.h.
13401
38561778
TT
134022019-01-22 Tom Tromey <tom@tromey.com>
13403
13404 * source-cache.h (class source_cache) <get_source_lines,
13405 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13406
37b3ab5b
TT
134072019-01-22 Tom Tromey <tom@tromey.com>
13408
13409 * remote-fileio.h (struct remote_target): Declare.
13410
3fabc016
TT
134112019-01-22 Tom Tromey <tom@tromey.com>
13412
13413 * python/py-arch.c: Do not include py-ref.h.
13414 * python/py-bpevent.c: Do not include py-ref.h.
13415 * python/py-cmd.c: Do not include py-ref.h.
13416 * python/py-continueevent.c: Do not include py-ref.h.
13417 * python/py-event.h: Do not include py-ref.h.
13418 * python/py-evtregistry.c: Do not include py-ref.h.
13419 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13420 * python/py-frame.c: Do not include py-ref.h.
13421 * python/py-framefilter.c: Do not include py-ref.h.
13422 * python/py-function.c: Do not include py-ref.h.
13423 * python/py-infevents.c: Do not include py-ref.h.
13424 * python/py-linetable.c: Do not include py-ref.h.
13425 * python/py-objfile.c: Do not include py-ref.h.
13426 * python/py-param.c: Do not include py-ref.h.
13427 * python/py-prettyprint.c: Do not include py-ref.h.
13428 * python/py-progspace.c: Do not include py-ref.h.
13429 * python/py-symbol.c: Do not include py-ref.h.
13430 * python/py-symtab.c: Do not include py-ref.h.
13431 * python/py-type.c: Do not include py-ref.h.
13432 * python/py-unwind.c: Do not include py-ref.h.
13433 * python/py-utils.c: Do not include py-ref.h.
13434 * python/py-value.c: Do not include py-ref.h.
13435 * python/py-varobj.c: Do not include py-ref.h.
13436 * python/py-xmethods.c: Do not include py-ref.h.
13437 * python/python.c: Do not include py-ref.h.
13438 * varobj.c: Do not include py-ref.h.
13439
6b4d7774
TT
134402019-01-22 Tom Tromey <tom@tromey.com>
13441
13442 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13443 keyword for bcache.
13444
7af7e9b5
TT
134452019-01-22 Tom Tromey <tom@tromey.com>
13446
13447 * compile/compile-cplus-types.c: Remove a comment by #include.
13448
951d1049
TT
134492019-01-22 Tom Tromey <tom@tromey.com>
13450
13451 * compile/gcc-c-plugin.h: Include compile-internal.h.
13452
d65d5705
TT
134532019-01-22 Tom Tromey <tom@tromey.com>
13454
13455 * stabsread.c (EXTERN): Do not define.
13456 (symnum, next_symbol_text_func, processing_gcc_compilation)
13457 (within_function, global_sym_chain, global_stabs)
13458 (previous_stab_code, this_object_header_files)
13459 (n_this_object_header_files)
13460 (n_allocated_this_object_header_files): Define.
13461 * stabsread.h (EXTERN): Never define. Use "extern".
13462
b6fb1ee5
PW
134632019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13464
13465 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13466 history_value.
13467
be6d4f74
TT
134682019-01-21 Tom Tromey <tom@tromey.com>
13469
13470 * ui-out.c: Fix includes.
13471 * tui/tui-source.c: Fix includes.
13472 * target.c: Fix includes.
13473 * remote.c: Fix includes.
13474 * regcache.c: Fix includes.
13475 * python/py-block.c: Fix includes.
13476 * printcmd.c: Fix includes.
13477 * or1k-tdep.c: Fix includes.
13478 * mi/mi-main.c: Fix includes.
13479 * m32r-tdep.c: Fix includes.
13480 * csky-tdep.c: Fix includes.
13481 * compile/compile-cplus-types.c: Fix includes.
13482 * cli/cli-interp.c: Fix includes.
13483
73021deb
AH
134842019-01-21 Alan Hayward <alan.hayward@arm.com>
13485
13486 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13487 for padding.
13488
7932255d
TT
134892019-01-16 Tom Tromey <tom@tromey.com>
13490
13491 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13492 earlier.
13493 (struct objfile) <msymbols_range>: Move from top level.
13494 <msymbols>: New method.
13495 (class objfile_msymbols): Remove.
13496 * symtab.c (default_collect_symbol_completion_matches_break_on):
13497 Update.
13498 * symmisc.c (dump_msymbols): Update.
13499 * stabsread.c (scan_file_globals): Update.
13500 * objc-lang.c (info_selectors_command, info_classes_command)
13501 (find_methods): Update.
13502 * minsyms.c (find_solib_trampoline_target): Update.
13503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13504 * coffread.c (coff_symfile_read): Update.
13505 * ada-lang.c (ada_lookup_simple_minsym)
13506 (ada_collect_symbol_completion_matches): Update.
13507
604b1bfb
TT
135082019-01-16 Tom Tromey <tom@tromey.com>
13509
13510 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13511 type. Remove no-argument constructor.
13512 <iterator::operator++>: Simplify.
13513 <begin>: Update.
13514 <end>: Use minimal_symbol_count.
13515
f252c6d5
TT
135162019-01-16 Tom Tromey <tom@tromey.com>
13517
13518 * objfiles.h (struct objfile) <psymtabs>: New method.
13519 (class objfile_psymtabs): Remove.
13520 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13521 typedef.
13522 <range>: New method.
13523 (require_partial_symbols): Change return type.
13524 * psymtab.c (require_partial_symbols)
13525 (psym_expand_symtabs_matching): Update.
13526 * mdebugread.c (parse_partial_symbols): Update.
13527 * dbxread.c (dbx_end_psymtab): Update.
13528
b669c953
TT
135292019-01-15 Tom Tromey <tom@tromey.com>
13530
13531 * symtab.c (lookup_objfile_from_block)
13532 (lookup_symbol_in_objfile_symtabs)
13533 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13534 (find_line_symtab, info_sources_command)
13535 (default_collect_symbol_completion_matches_break_on)
13536 (make_source_files_completion_list): Update.
13537 * symmisc.c (print_objfile_statistics, dump_objfile)
13538 (maintenance_print_symbols, maintenance_info_symtabs)
13539 (maintenance_check_symtabs, maintenance_info_line_tables):
13540 Update.
13541 * source.c (select_source_symtab)
13542 (forget_cached_source_info_for_objfile): Update.
13543 * objfiles.h (class objfile_compunits): Remove.
13544 (struct objfile) <compunits_range>: New typedef.
13545 (compunits): New method.
13546 * objfiles.c (objfile_relocate1): Update.
13547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13548 * maint.c (count_symtabs_and_blocks): Update.
13549 * linespec.c (iterate_over_all_matching_symtabs): Update.
13550 * cp-support.c (add_symbol_overload_list_qualified): Update.
13551 * coffread.c (coff_symtab_read): Update.
13552 * ada-lang.c (add_nonlocal_symbols)
13553 (ada_collect_symbol_completion_matches)
13554 (ada_add_global_exceptions): Update.
13555
7e955d83
TT
135562019-01-15 Tom Tromey <tom@tromey.com>
13557
13558 * progspace.h (program_space) <objfiles_safe_range>: New
13559 typedef.
13560 <objfiles_safe>: New method.
13561 * objfiles.h (class all_objfiles_safe): Remove.
13562 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13563 * jit.c (jit_inferior_exit_hook): Update.
13564
2030c079
TT
135652019-01-17 Tom Tromey <tom@tromey.com>
13566
13567 * progspace.h (program_space) <objfiles_range>: New typedef.
13568 <objfiles>: New method.
13569 <objfiles_head>: Rename from objfiles.
13570 (object_files): Update.
13571 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13572 * guile/scm-pretty-print.c
13573 (ppscm_find_pretty_printer_from_objfiles): Update.
13574 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13575 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13576 Update.
13577 * python/py-progspace.c (pspy_get_objfiles): Update.
13578 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13579 Update.
13580 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13581 (objfpy_lookup_objfile_by_build_id): Update.
13582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13583 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13584 Update.
13585 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13586 (expand_symtab_containing_pc, lookup_objfile_from_block)
13587 (lookup_static_symbol, basic_lookup_transparent_type)
13588 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13589 (find_line_symtab, info_sources_command)
13590 (default_collect_symbol_completion_matches_break_on)
13591 (make_source_files_completion_list, find_main_name): Update.
13592 * symmisc.c (print_symbol_bcache_statistics)
13593 (print_objfile_statistics, maintenance_print_symbols)
13594 (maintenance_print_msymbols, maintenance_print_objfiles)
13595 (maintenance_info_symtabs, maintenance_check_symtabs)
13596 (maintenance_expand_symtabs, maintenance_info_line_tables):
13597 Update.
13598 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13599 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13600 (map_overlay_command, unmap_overlay_command)
13601 (simple_overlay_update, expand_symtabs_matching)
13602 (map_symbol_filenames): Update.
13603 * symfile-debug.c (set_debug_symfile): Update.
13604 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13605 Update.
13606 * source.c (select_source_symtab, forget_cached_source_info):
13607 Update.
13608 * solib.c (solib_read_symbols): Update.
13609 * solib-spu.c (append_ocl_sos): Update.
13610 * psymtab.c (maintenance_print_psymbols)
13611 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13612 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13613 * printcmd.c (info_symbol_command): Update.
13614 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13615 Update.
13616 * objfiles.h (class all_objfiles): Remove.
13617 * objfiles.c (have_partial_symbols, have_full_symbols)
13618 (have_minimal_symbols, qsort_cmp, update_section_map)
13619 (shared_objfile_contains_address_p)
13620 (default_iterate_over_objfiles_in_search_order): Update.
13621 * objc-lang.c (info_selectors_command, info_classes_command)
13622 (find_methods): Update.
13623 * minsyms.c (find_solib_trampoline_target): Update.
13624 * maint.c (maintenance_info_sections)
13625 (maintenance_translate_address, count_symtabs_and_blocks):
13626 Update.
13627 * main.c (captured_main_1): Update.
13628 * linux-thread-db.c (try_thread_db_load_from_pdir)
13629 (has_libpthread): Update.
13630 * linespec.c (iterate_over_all_matching_symtabs)
13631 (search_minsyms_for_name): Update.
13632 * jit.c (jit_find_objf_with_entry_addr): Update.
13633 * hppa-tdep.c (find_unwind_entry)
13634 (hppa_lookup_stub_minimal_symbol): Update.
13635 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13636 Update.
13637 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13638 (elf_gnu_ifunc_resolve_by_got): Update.
13639 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13640 * dwarf-index-write.c (save_gdb_index_command): Update.
13641 * cp-support.c (add_symbol_overload_list_qualified): Update.
13642 * breakpoint.c (create_overlay_event_breakpoint)
13643 (create_longjmp_master_breakpoint)
13644 (create_std_terminate_master_breakpoint)
13645 (create_exception_master_breakpoint): Update.
13646 * blockframe.c (find_pc_partial_function): Update.
13647 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13648 (ada_collect_symbol_completion_matches)
13649 (ada_add_global_exceptions): Update.
13650
776489e0
TT
136512019-01-17 Tom Tromey <tom@tromey.com>
13652
13653 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13654 declare VEC.
13655 (solib_target_parse_libraries): Change return type.
13656 (library_list_start_segment, library_list_start_section)
13657 (library_list_end_library, library_list_start_library); Update.
13658 (solib_target_free_library_list): Remove.
13659 (solib_target_parse_libraries): Remove cleanup. Change return
13660 type.
13661 (solib_target_current_sos): Update.
13662
6471e7d2
TT
136632019-01-17 Tom Tromey <tromey@bapiya>
13664
13665 * valprint.c: Replace "the the" with "the".
13666 * symtab.c: Replace "the the" with "the".
13667 * solib.c: Replace "the the" with "the".
13668 * solib-dsbt.c: Replace "the the" with "the".
13669 * linespec.c: Replace "the the" with "the".
13670 * dwarf2loc.h: Replace "the the" with "the".
13671 * amd64-windows-tdep.c: Replace "the the" with "the".
13672 * aarch64-tdep.c: Replace "the the" with "the".
13673
c24bdb02
KS
136742019-01-16 Keith Seitz <keiths@redhat.com>
13675
13676 PR gdb/23773
13677 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13678 <builder>: Rename to ..
13679 <m_builder>: ... this and make private.
13680 (dwarf2_cu::get_builder): New method. Change all users of
13681 `builder' to use this method.
13682 (dwarf2_start_symtab): Move to ...
13683 (dwarf2_cu::start_symtab): ... here. Update all callers
13684 (setup_type_unit_groups): Move to ...
13685 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13686 callers.
13687 (dwarf2_cu::reset_builder): New method.
13688 (process_full_compunit, process_full_type_unit): Use
13689 dwarf2_cu::reset_builder.
13690 (follow_die_offset): Record the ancestor CU if it is different
13691 from the followed DIE's CU.
13692 (follow_die_sig_1): Likewise.
13693
8d64371b
TT
136942019-01-15 Tom Tromey <tom@tromey.com>
13695
13696 * remote.c (class remote_state) <buf>: Now a char_vector.
13697 <buf_size>: Remove.
13698 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13699 parameter.
13700 (remote_target::getpkt_or_notif_sane_1)
13701 (remote_target::getpkt_sane)
13702 (remote_target::getpkt_or_notif_sane): Likewise.
13703 (class remote_target) <putpkt>: New overload.
13704 (remote_target::read_frame): Change type of "buf_p". Remove
13705 sizeof_p parameter.
13706 (packet_ok): New overload.
13707 (packet_check_result): New overload.
13708 Update all uses.
13709
bb277751
TT
137102019-01-14 Tom Tromey <tom@tromey.com>
13711
13712 * remote-notif.c (handle_notification, remote_notif_ack)
13713 (remote_notif_parse): Make "buf" const.
13714 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13715 const.
13716 (remote_notif_parse, remote_notif_ack, handle_notification):
13717 Likewise.
13718 * remote.c (remote_notif_stop_parse): Make "buf" const.
13719 (remote_target::remote_parse_stop_reply): Make "buf" const.
13720 (remote_notif_stop_ack): Make "buf" const.
13721
05be00a8
TT
137222019-01-14 Tom Tromey <tom@tromey.com>
13723
13724 * remote.c (remote_console_output): Make parameter const.
13725
491adeca
TT
137262019-01-14 Tom Tromey <tom@tromey.com>
13727
13728 * target-debug.h (target_debug_print_signals): Constify.
13729 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13730 * procfs.c (procfs_target::pass_signals): Update.
13731 * linux-nat.c (linux_nat_target::pass_signals): Update.
13732 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13733 * target-delegates.c: Rebuild.
13734 * remote.c (remote_target::program_signals): Update.
13735 (remote_target::pass_signals): Update.
13736 * target.c (target_pass_signals): Constify argument.
13737 (target_program_signals): Likewise.
13738 * target.h (struct target_ops) <pass_signals, program_signals>:
13739 Constify argument.
13740 (target_pass_signals, target_program_signals): Constify argument.
13741
bbd94648
TT
137422019-01-14 Tom Tromey <tom@tromey.com>
13743
13744 PR tui/28819:
13745 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13746
6f072a10
PFC
137472019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13748
13749 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13750 field.
13751 * rs6000-tdep.c: Include reggroups.h.
13752 (IS_V_ALIAS_PSEUDOREG): Define.
13753 (rs6000_register_name): Return names for the "vX" aliases.
13754 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13755 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13756 aliases. Call default_register_reggroup_p for all other
13757 pseudo-registers.
13758 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13759 New functions.
13760 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13761 Handle "vX" aliases.
13762 (v_alias_pseudo_register_collect): New function.
13763 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13764 (rs6000_gdbarch_init): Initialize "vX" aliases as
13765 pseudo-registers. Restore registration of
13766 rs6000_pseudo_register_reggroup_p with
13767 set_tdesc_pseudo_register_reggroup_p.
13768
1a782351
MF
137692019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13770
13771 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13772 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13773 set_gdbarch_num_pseudo_regs.
13774
d73cff18
PW
137752019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13776
13777 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13778 Remove arg prefixname, add do_set and do_show.
13779 Add member functions set_list and show_list.
13780 * cli/cli-style.c (class cli_style_option): Update accordingly.
13781 (style_set_list): Move to file scope.
13782 (style_show_list): Likewise.
13783 (set_style): Call help_list.
13784 (show_style): Call cmd_show_list.
13785 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13786 Update to use the new macro.
13787
60a90376
JB
137882019-10-12 Joel Brobecker <brobecker@adacore.com>
13789
13790 * ada-lang.c (_initialize_ada_language): Expand the help text
13791 for the "catch exception" command.
13792
9d7c67bf
PW
137932019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13794
13795 * symtab.c (matching_obj_sections): Initialize obj,
13796 declare it closer to its usage.
13797
7cf47dc4
TT
137982019-01-10 Tom Tromey <tom@tromey.com>
13799
13800 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13801 (basic_inf_threads_range): Remove.
13802 (inf_threads_range, inf_non_exited_threads_range)
13803 (safe_inf_threads_range): Use next_adapter.
13804
d3cb6808
KS
138052019-01-10 Keith Seitz <keiths@redhat.com>
13806
13807 PR gdb/23712
13808 PR symtab/23010
13809 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13810 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13811
63a20375
KS
138122019-01-10 Keith Seitz <keiths@redhat.com>
13813
13814 PR gdb/23712
13815 PR symtab/23010
13816 * dictionary.c (pending_to_vector): Remove.
13817 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13818 Remove _1 suffix, replacing functions of the same name. Update
13819 all callers.
13820 (dict_create_hashed, dict_create_hashed_expandable)
13821 (dict_create_linear, dict_create_linear_expandable, dict_free)
13822 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13823 Make functions static.
13824
b026f593
KS
138252019-01-10 Keith Seitz <keiths@redhat.com>
13826
13827 PR gdb/23712
13828 PR symtab/23010
13829 * dictionary.h (struct dictionary): Replace declaration with
13830 multidictionary.
13831 (dict_create_hashed, dict_create_hashed_expandable)
13832 (dict_create_linear, dict_create_linear_expandable)
13833 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13834 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13835 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13836 taking multidictionary argument.
13837 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13838 * block.h (struct block) <dict>: Change to multidictionary
13839 and rename `multidict'.
13840 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13841 symmisc.c: Update all dictionary references to multidictionary.
13842
c7748ee9
KS
138432019-01-10 Keith Seitz <keiths@redhat.com>
13844
13845 PR gdb/23712
13846 PR symtab/23010
13847 * dictionary.c: Include unordered_map.
13848 (pending_to_vector): New function.
13849 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13850 Rewrite the non-"_1" functions to take vector instead
13851 of linked list.
13852 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13853 "new" _1 versions of the same name.
13854 (multidictionary): Define.
13855 (std::hash<enum language): New definition.
13856 (collate_pending_symbols_by_language, mdict_create_hashed)
13857 (mdict_create_hashed_expandable, mdict_create_linear)
13858 (mdict_create_linear_expandable, mdict_free)
13859 (find_language_dictionary, create_new_language_dictionary)
13860 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13861 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13862 (mdict_size, mdict_empty): New functions.
13863 * dictionary.h (mdict_iterator): Define.
13864
67aa1f3c
PA
138652019-01-10 Pedro Alves <palves@redhat.com>
13866
13867 * breakpoint.c (read_uploaded_action)
13868 (create_tracepoint_from_upload): Adjust to use
13869 gdb::unique_xmalloc_ptr.
13870 * ctf.c (ctf_write_uploaded_tp):
13871 (SET_ARRAY_FIELD): Use emplace_back.
13872 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13873 * tracefile-tfile.c (tfile_write_uploaded_tp):
13874 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13875 gdb::unique_xmalloc_ptr.
13876 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13877 at_string, cond_string, cmd_strings>: Replace char pointers
13878 with gdb::unique_xmalloc_ptr.
13879
2f667667
PA
138802019-01-10 Pedro Alves <palves@redhat.com>
13881
13882 * solib-target.c (library_list_start_library): Don't xstrdup name.
13883
36cb7237
PA
138842019-01-10 Pedro Alves <palves@redhat.com>
13885
13886 * mdebugread.c (parse_partial_symbols): Use
13887 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13888
da584958
AB
138892019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13890
13891 * linux-fork.c (scoped_switch_fork_info)
13892 <~scoped_switch_fork_info>: Fix incorrect variable name.
13893
1ef8573c
AB
138942019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13895
13896 * linux-fork.c (scoped_switch_fork_info)
13897 <scoped_switch_fork_info>: Make explicit.
13898 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13899
8d7bcccb
TT
139002019-01-10 Tom Tromey <tom@tromey.com>
13901
13902 * objfiles.h (objfile::reset_psymtabs): Update.
13903 * objfiles.c (objfile::objfile): Update.
13904 * psymtab.h (psymtab_storage::obstack): Update.
13905 (psymtab_storage::m_obstack): Use gdb::optional.
13906 (class psymtab_storage): Update comment. Remove objfile
13907 parameter.
13908 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13909
b596a3c7
TT
139102019-01-10 Tom Tromey <tom@tromey.com>
13911
13912 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13913 <free_psymtabs>: Now private.
13914 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13915 (allocate_psymtab): Use new method.
13916
a9342b62
TT
139172019-01-10 Tom Tromey <tom@tromey.com>
13918
13919 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13920 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13921 * mdebugread.c (parse_partial_symbols): Use
13922 allocate_dependencies.
13923 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13924 allocate_dependencies.
13925 (process_psymtab_comp_unit_reader)
13926 (build_type_psymtab_dependencies): Likewise.
13927 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13928
5af70966
TT
139292019-01-10 Tom Tromey <tom@tromey.com>
13930
13931 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13932 PSYMBOL_SET_LANGUAGE.
13933 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13934
5923a04c
TT
139352019-01-10 Tom Tromey <tom@tromey.com>
13936
13937 * psymtab.h (psymtab_storage::obstack): New method.
13938 <m_obstack>: Rename from obstack; now private.
13939 * psymtab.c (psymtab_storage): Update.
13940 * dwarf2read.c (create_addrmap_from_index)
13941 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13942 Update.
13943
6d6a12bf
TT
139442019-01-10 Tom Tromey <tom@tromey.com>
13945
13946 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13947 * objfiles.h (objfile::reset_psymtabs): New method.
13948
d320c2b5
TT
139492019-01-10 Tom Tromey <tom@tromey.com>
13950
13951 * symmisc.c (print_symbol_bcache_statistics): Update.
13952 (print_objfile_statistics): Update.
13953 * symfile.c (reread_symbols): Update.
13954 * psymtab.h (class psymtab_storage): New.
13955 * psymtab.c (psymtab_storage): New constructor.
13956 (~psymtab_storage): New destructor.
13957 (require_partial_symbols): Update.
13958 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13959 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13960 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13961 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13962 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13963 (start_psymtab_common, end_psymtab_common)
13964 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13965 (allocate_psymtab): Update.
13966 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13967 Update.
13968 (dump_psymtab_addrmap, maintenance_print_psymbols)
13969 (maintenance_check_psymtabs): Update.
13970 (class objfile_psymtabs): Move to objfiles.h.
13971 * psympriv.h (discard_psymtab): Now inline.
13972 (psymtab_discarder::psymtab_discarder): Update.
13973 (psymtab_discarder::~psymtab_discarder): Update.
13974 (ALL_OBJFILE_PSYMTABS): Rewrite.
13975 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13976 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13977 Remove fields.
13978 <partial_symtabs>: New field.
13979 (class objfile_psymtabs): Move from psymtab.h. Update.
13980 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13981 psymbol_cache.
13982 (objfile::~objfile): Don't destroy psymbol_cache.
13983 * mdebugread.c (parse_partial_symbols): Update.
13984 * dwarf2read.c (create_addrmap_from_index)
13985 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13986 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13987 (add_partial_subprogram, dwarf2_ranges_read): Update.
13988 * dwarf-index-write.c (write_address_map)
13989 (write_one_signatured_type, recursively_write_psymbols)
13990 (class debug_names, class debug_names, write_psymtabs_to_index):
13991 Update.
13992
1d94a5a3
TT
139932019-01-10 Tom Tromey <tom@tromey.com>
13994
13995 * symtab.h (SYMBOL_SET_NAMES): Update.
13996 (symbol_set_names): Update.
13997 (MSYMBOL_SET_NAMES): Update.
13998 * symtab.c (symbol_set_names): Change argument to be an
13999 objfile_per_bfd_storage.
14000 * psymtab.c (add_psymbol_to_bcache): Update.
14001 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14002
0f14768a
TT
140032019-01-10 Tom Tromey <tom@tromey.com>
14004
14005 * symtab.c (create_demangled_names_hash): Change argument to be an
14006 objfile_per_bfd_storage.
14007 (symbol_set_names): Update.
14008
6eee24ce
TT
140092019-01-10 Tom Tromey <tom@tromey.com>
14010
14011 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14012 init_psymbol_list.
14013 * psymtab.c (init_psymbol_list): Do nothing if already called.
14014 * psympriv.h (init_psymbol_list): Add comment.
14015 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14016 init_psymbol_list.
14017 * dbxread.c (dbx_symfile_read): Unconditionally call
14018 init_psymbol_list.
14019
75aedd27
TT
140202019-01-10 Tom Tromey <tom@tromey.com>
14021
14022 * xcoffread.c (scan_xcoff_symtab): Update.
14023 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14024 "where".
14025 * mdebugread.c (parse_partial_symbols)
14026 (handle_psymbol_enumerators): Update.
14027 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14028 * dbxread.c (read_dbx_symtab): Update.
14029 * psympriv.h (psymbol_placement): New enum.
14030 (add_psymbol_to_list): Update.
14031
939652a5
TT
140322019-01-10 Tom Tromey <tom@tromey.com>
14033
14034 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14035 static_psymbols parameters.
14036 (scan_xcoff_symtab): Update.
14037 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14038 static_psymbols parameters.
14039 * psympriv.h (start_psymtab_common): Update.
14040 * mdebugread.c (parse_partial_symbols): Update.
14041 * dwarf2read.c (create_partial_symtab): Update.
14042 * dbxread.c (read_dbx_symtab): Update.
14043 (start_psymtab): Remove global_psymbols and static_psymbols
14044 parameters.
14045
baa62830
TT
140462019-01-10 Tom Tromey <tom@tromey.com>
14047
14048 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14049 * psymtab.c (allocate_psymtab): Add comment.
14050 * psympriv.h (allocate_psymtab): Add comment.
14051 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14052 initializations.
14053 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14054
0e8f53ba
TT
140552019-01-10 Tom Tromey <tom@tromey.com>
14056
14057 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14058 Don't declare.
14059 * mipsread.c: Include mdebugread.h.
14060 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14061 Declare.
14062 * elfread.c: Include mdebugread.h.
14063
b22a7c6a
TT
140642019-01-09 Tom Tromey <tom@tromey.com>
14065
14066 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14067 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14068 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14069 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14070 (psym_lookup_symbol, psym_find_last_source_symtab)
14071 (psym_forget_cached_source_info, psym_print_stats)
14072 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14073 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14074 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14075 (psym_find_compunit_symtab_by_address)
14076 (maintenance_print_psymbols, maintenance_info_psymtabs)
14077 (maintenance_check_psymtabs): Use ranged for.
14078 * psymtab.h (class objfile_psymtabs): New.
14079 (require_partial_symbols): Return objfile_psymtabs.
14080 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14081
3b9d3ac2
TT
140822019-01-09 Tom Tromey <tom@tromey.com>
14083
14084 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14085 (find_pc_mapped_section, list_overlays_command)
14086 (map_overlay_command, unmap_overlay_command)
14087 (simple_overlay_update): Use all_objfiles.
14088 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14089 * printcmd.c (info_symbol_command): Use all_objfiles.
14090 * objfiles.h (ALL_OBJSECTIONS): Remove.
14091 * maint.c (maintenance_translate_address): Use all_objfiles.
14092 * gcore.c (gcore_create_callback): Use all_objfiles.
14093 (objfile_find_memory_regions): Likewise.
14094
8b31193a
TT
140952019-01-09 Tom Tromey <tom@tromey.com>
14096
14097 * symtab.c (find_line_symtab, info_sources_command)
14098 (make_source_files_completion_list): Use objfile_compunits.
14099 * source.c (select_source_symtab): Use objfile_compunits.
14100 * objfiles.h (struct objfile): Update comment.
14101 (ALL_OBJFILES): Remove.
14102 (ALL_FILETABS): Remove.
14103 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14104 objfile_compunits.
14105
d5da8b3c
TT
141062019-01-09 Tom Tromey <tom@tromey.com>
14107
14108 * symmisc.c (print_objfile_statistics, dump_objfile)
14109 (maintenance_print_symbols): Use compunit_filetabs.
14110 * source.c (forget_cached_source_info_for_objfile): Use
14111 compunit_filetabs.
14112 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14113 (ALL_FILETABS): Use compunit_filetabs.
14114 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14115 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14116
5accd1a0
TT
141172019-01-09 Tom Tromey <tom@tromey.com>
14118
14119 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14120 (compunit_filetabs): New.
14121 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14122 compunit_filetabs.
14123 (info_sources_command, make_source_files_completion_list): Remove
14124 declaration.
14125 * symmisc.c (print_objfile_statistics, dump_objfile)
14126 (maintenance_print_symbols): Remove declaration.
14127 (maintenance_info_symtabs): Use compunit_filetabs.
14128 (maintenance_info_line_tables): Likewise.
14129 * source.c (select_source_symtab): Change local variable name.
14130 (forget_cached_source_info_for_objfile): Remove declaration.
14131 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14132 * objfiles.c (objfile_relocate1): Remove declaration.
14133 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14134 declaration.
14135 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14136 * coffread.c (coff_symtab_read): Remove declaration.
14137 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14138 compunit_filetabs.
14139
d8aeb77f
TT
141402019-01-09 Tom Tromey <tom@tromey.com>
14141
14142 * symtab.c (lookup_objfile_from_block)
14143 (find_pc_sect_compunit_symtab, search_symbols)
14144 (default_collect_symbol_completion_matches_break_on): Use
14145 objfile_compunits.
14146 * objfiles.h (ALL_COMPUNITS): Remove.
14147 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14148 * cp-support.c (add_symbol_overload_list_qualified): Use
14149 objfile_compunits.
14150 * ada-lang.c (ada_collect_symbol_completion_matches)
14151 (ada_add_global_exceptions): Use objfile_compunits.
14152
592553c4
TT
141532019-01-09 Tom Tromey <tom@tromey.com>
14154
14155 * source.c (select_source_symtab)
14156 (forget_cached_source_info_for_objfile): Remove declaration.
14157 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14158 declaration.
14159 * maint.c (count_symtabs_and_blocks): Remove declaration.
14160 * cp-support.c (add_symbol_overload_list_qualified): Remove
14161 declaration.
14162 * coffread.c (coff_symtab_read): Remove declaration.
14163 * symtab.c (lookup_symbol_in_objfile_symtabs)
14164 (basic_lookup_transparent_type_1): Use objfile_compunits.
14165 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14166 (info_sources_command, search_symbols)
14167 (default_collect_symbol_completion_matches_break_on)
14168 (make_source_files_completion_list): Remove declaration.
14169 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14170 (ada_collect_symbol_completion_matches)
14171 (ada_add_global_exceptions): Remove declaration.
14172 * linespec.c (iterate_over_all_matching_symtabs): Use
14173 objfile_compunits.
14174 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14175 (class objfile_compunits): New.
14176 (ALL_COMPUNITS): Use objfile_compunits.
14177 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14178 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14179 objfile_compunits.
14180 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14181
5325b9bf
TT
141822019-01-09 Tom Tromey <tom@tromey.com>
14183
14184 * symtab.c (search_symbols)
14185 (default_collect_symbol_completion_matches_break_on): Use
14186 objfile_msymbols.
14187 * ada-lang.c (ada_lookup_simple_minsym)
14188 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14189 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14190 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14191 objfile_msymbols.
14192 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14193 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14194 * objc-lang.c (find_methods): Use objfile_msymbols.
14195 (info_selectors_command, info_classes_command): Likewise.
14196 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14197 * objfiles.h (class objfile_msymbols): New.
14198 (ALL_OBJFILE_MSYMBOLS): Remove.
14199 (ALL_MSYMBOLS): Remove.
14200
cac85af2
TT
142012019-01-09 Tom Tromey <tom@tromey.com>
14202
14203 * common/next-iterator.h (next_adapter): Add Iterator template
14204 parameter.
14205 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14206 (class all_objfiles_safe): New.
14207 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14208 * objfiles.c (put_objfile_before): Update comment.
14209 (add_separate_debug_objfile): Likewise.
14210 (free_all_objfiles): Use all_objfiles_safe.
14211 (objfile_purge_solibs): Likewise.
14212
aed57c53
TT
142132019-01-09 Tom Tromey <tom@tromey.com>
14214
14215 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14216 (expand_symtab_containing_pc, lookup_static_symbol)
14217 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14218 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14219 all_objfiles.
14220 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14221 * breakpoint.c (create_overlay_event_breakpoint)
14222 (create_longjmp_master_breakpoint)
14223 (create_std_terminate_master_breakpoint)
14224 (create_exception_master_breakpoint): Use all_objfiles.
14225 * linux-thread-db.c (try_thread_db_load_from_pdir)
14226 (has_libpthread): Use all_objfiles.
14227 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14228 * linespec.c (iterate_over_all_matching_symtabs)
14229 (search_minsyms_for_name): Use all_objfiles.
14230 * maint.c (maintenance_info_sections): Use all_objfiles.
14231 * main.c (captured_main_1): Use all_objfiles.
14232 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14233 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14234 * guile/scm-pretty-print.c
14235 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14236 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14237 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14238 (maintenance_print_msymbols): Use all_objfiles.
14239 * source.c (select_source_symtab): Use all_objfiles.
14240 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14241 * symfile.c (remove_symbol_file_command)
14242 (expand_symtabs_matching, map_symbol_filenames): Use
14243 all_objfiles.
14244 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14245 all_objfiles.
14246 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14247 * objc-lang.c (find_methods): Use all_objfiles.
14248 * objfiles.c (have_partial_symbols, have_full_symbols)
14249 (have_minimal_symbols, qsort_cmp)
14250 (default_iterate_over_objfiles_in_search_order): Use
14251 all_objfiles.
14252 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14253 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14254 (maintenance_check_psymtabs): Use all_objfiles.
14255 (ALL_PSYMTABS): Remove.
14256 * compile/compile-object-run.c (do_module_cleanup): Use
14257 all_objfiles.
14258 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14259 * cp-support.c (add_symbol_overload_list_qualified): Use
14260 all_objfiles.
14261 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14262 Use all_objfiles.
14263 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14264 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14265 all_objfiles.
14266 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14267 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14268 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14269 Uses all_objfiles.
14270 * solib.c (solib_read_symbols): Use all_objfiles
14271
99d89cde
TT
142722019-01-09 Tom Tromey <tom@tromey.com>
14273
14274 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14275 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14276 all_objfiles.
14277 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14278 * symmisc.c (print_symbol_bcache_statistics)
14279 (print_objfile_statistics, maintenance_print_objfiles)
14280 (maintenance_info_symtabs, maintenance_check_symtabs)
14281 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14282 all_objfiles.
14283 * source.c (forget_cached_source_info): Use all_objfiles.
14284 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14285 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14286 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14287 * objfiles.c (update_section_map): Use all_objfiles.
14288 (shared_objfile_contains_address_p): Likewise.
14289 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14290 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14291
21708325
TT
142922019-01-09 Tom Tromey <tom@tromey.com>
14293
14294 * common/next-iterator.h: New file.
14295 * objfiles.h (class all_objfiles): New.
14296 (struct objfile_iterator): New.
14297
669e09f6
PW
142982019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14299
14300 * NEWS: Move the description of the changed "frame", "select-frame",
14301 and "info frame" commands to the Changed commands section.
14302
041be526
SM
143032019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14304
14305 * gdbtypes.c (check_stub_method_group): Remove handling of old
14306 mangling schemes.
14307 * linespec.c (find_methods): Likewise.
14308 * stabsread.c (read_member_functions): Likewise.
14309 * valops.c (search_struct_method): Likewise.
14310 (value_struct_elt_for_reference): Likewise.
14311 * NEWS: Mention this change.
14312
0e2a2133
AB
143132019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14314
14315 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14316 print_source_lines.
14317 * source.c (print_source_lines_base): Update line number check.
14318 (print_source_lines): New function.
14319 (source_lines_range::source_lines_range): New function.
14320 * source.h (class source_lines_range): New class.
14321 (print_source_lines): New declaration.
14322
1055a3b4
PW
143232019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14324
14325 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14326
cfeadda5
TT
143272019-01-08 Tom Tromey <tom@tromey.com>
14328 Simon Marchi <simon.marchi@ericsson.com>
14329
14330 PR gdb/24060
14331 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14332 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14333 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14334 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14335 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14336 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14337
583068ca
AB
143382019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14339
14340 * source.c (select_source_symtab): Move header comment to
14341 declaration in source.h.
14342 (forget_cached_source_info_for_objfile): Likewise.
14343 (forget_cached_source_info): Likewise.
14344 (identify_source_line): Likewise.
14345 * source.h (identify_source_line): Move declaration from symtab.h
14346 and add comment from source.c
14347 (print_source_lines): Likewise.
14348 (forget_cached_source_info_for_objfile): Likewise.
14349 (forget_cached_source_info): Likewise.
14350 (select_source_symtab): Likewise.
14351 (enum print_source_lines_flag): Move definition from symtab.h.
14352 * symtab.h (identify_source_line): Move declaration to source.h.
14353 (print_source_lines): Likewise.
14354 (forget_cached_source_info_for_objfile): Likewise.
14355 (forget_cached_source_info): Likewise.
14356 (select_source_symtab): Likewise.
14357 (enum print_source_lines_flag): Move definition to source.h.
14358 * tui/tui-hooks.c: Add 'source.h' include.
14359
ec98a4ad
AB
143602019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14361
14362 * source.c (print_source_lines_base): Handle requests to print
14363 reverse line number sequences, and guard against empty lines
14364 string.
14365
62ea19c1
AB
143662019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14367
14368 * source.c (print_source_lines_base): Fix skip of '\r' if next
14369 character is '\n'.
14370
9d30e1fd
TT
143712019-01-06 Tom Tromey <tom@tromey.com>
14372
14373 * c-exp.y (struct c_parse_state) <macro_original_text,
14374 expansion_obstack>: New member.
14375 (macro_original_text, expansion_obstack): Remove globals.
14376 (scan_macro_expansion, scanning_macro_expansion)
14377 (finished_macro_expansion): Update.
14378 (scan_macro_cleanup): Remove.
14379 (yylex, c_parse): Update.
14380
c65bac38
TT
143812019-01-06 Tom Tromey <tom@tromey.com>
14382
14383 * c-exp.y (struct c_parse_state) <strings>: New member.
14384 (operator_stoken): Update.
14385
02e12e38
TT
143862019-01-06 Tom Tromey <tom@tromey.com>
14387
14388 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14389 (union type_stack_elt) <typelist_val>: Now a pointer to
14390 std::vector.
14391 (type_stack_cleanup): Don't declare.
14392 (push_typelist): Update.
14393 * parse.c (pop_typelist): Return a std::vector.
14394 (push_typelist): Take a std::vector.
14395 (follow_types): Update. Do not free args.
14396 (type_stack_cleanup): Remove.
14397 * c-exp.y (struct c_parse_state): New.
14398 (cpstate): New global.
14399 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14400 (nonempty_typelist): Update.
14401 (func_mod): Create a new vector.
14402 (c_parse): Create a c_parse_state.
14403 (check_parameter_typelist): Do not delete params.
14404 (function_method): Update. Do not delete type_list.
14405
f097f5ad
TT
144062019-01-06 Tom Tromey <tom@tromey.com>
14407
14408 PR gdb/28155:
14409 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14410 check_typedef.
14411 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14412 (print_return_value): Likewise.
14413
d2adf9f1
TT
144142019-01-05 Tom Tromey <tom@tromey.com>
14415
14416 * contrib/cleanup_check.py: Remove.
14417 * contrib/gcc-with-excheck: Remove.
14418 * contrib/exsummary.py: Remove.
14419 * contrib/excheck.py: Remove.
14420
2eab46b1
JB
144212019-01-05 Joel Brobecker <brobecker@adacore.com>
14422
14423 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14424 NULL. Initialize tpprev to NULL instead of assigning it
14425 to NULL on the next statement.
14426 * windows-nat.c (windows_delete_thread): Remove check for
14427 main_thread_id before printing thread exit notifications.
14428 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14429 Remove thread ID check against main_thread_id.
14430 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14431 windows_delete_thread.
14432 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14433
48c5e7e2
TT
144342019-01-04 Tom Tromey <tom@tromey.com>
14435
14436 * compile/compile.c (_initialize_compile): Use upper case for
14437 metasyntactic variables.
14438 * symmisc.c (_initialize_symmisc): Use upper case for
14439 metasyntactic variables.
14440 * psymtab.c (_initialize_psymtab): Use upper case for
14441 metasyntactic variables.
14442 * demangle.c (demangle_command): Use upper case for metasyntactic
14443 variables.
14444 (_initialize_demangler): Likewise.
14445 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14446 variables.
14447
986041cd
TT
144482019-01-03 Tom Tromey <tom@tromey.com>
14449
14450 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14451
7c711119
TT
144522019-01-03 Tom Tromey <tom@tromey.com>
14453
14454 * python/py-symtab.c (salpy_str): Update.
14455 (struct salpy_sal_object) <symtab>: Now a PyObject.
14456 (salpy_dealloc): Update.
14457 (del_objfile_sal): Use gdbpy_ref.
14458
1b20edf0
TT
144592019-01-03 Tom Tromey <tom@tromey.com>
14460
14461 * python/py-type.c (convert_field): Use new_reference. Return
14462 gdbpy_ref.
14463 (make_fielditem): Return gdbpy_ref.
14464 (typy_fields): Update.
14465 (typy_getitem): Update.
14466 (field_name): Return gdbpy_ref. Use new_reference.
14467 (typy_iterator_iternext): Update.
14468
ea41325b
TT
144692019-01-03 Tom Tromey <tom@tromey.com>
14470
14471 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14472
2a3c71d6
TT
144732019-01-03 Tom Tromey <tom@tromey.com>
14474
14475 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14476 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14477 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14478 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14479 (pspy_set_type_printers): Likewise.
14480 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14481 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14482 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14483 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14484 (objfpy_set_type_printers): Likewise.
14485
5c329e6a
TT
144862019-01-03 Tom Tromey <tom@tromey.com>
14487
14488 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14489 (gdbpy_print_stack): Use gdbpy_err_fetch.
14490 * python/python-internal.h (class gdbpy_err_fetch): New class.
14491 (class gdbpy_enter) <m_error_type, m_error_value,
14492 m_error_traceback>: Remove.
14493 <m_error>: New member.
14494 (gdbpy_exception_to_string): Don't declare.
14495 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14496 * python/py-value.c (convert_value_from_python): Use
14497 gdbpy_err_fetch.
14498 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14499 gdbpy_exception_to_string.
14500 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14501 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14502 gdbpy_err_fetch.
14503
169bb27b
AB
145042019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14505
14506 * linux-nat.c (delete_lwp_cleanup): Delete.
14507 (struct lwp_deleter): New struct.
14508 (lwp_info_up): New typedef.
14509 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14510 lwp_info_up.
14511
a07c8880
AB
145122019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14513
14514 * linux-fork.c (class scoped_switch_fork_info): New class.
14515 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14516
26089c49
AB
145172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14518
14519 * valops.c (find_overload_match): Remove use of null_cleanup, and
14520 calls to do_cleanups.
14521
06d3e5b0
AB
145222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14523
14524 * compile/compile-cplus-types.c
14525 (compile_cplus_instance::decl_name): Handle changes to
14526 cp_func_name.
14527 * cp-support.c (cp_func_name): Update header comment, update
14528 return type.
14529 * cp-support.h (cp_func_name): Update return type in declaration.
14530 * valops.c (find_overload_match): Move temp_func local to top
14531 level of function and change its type. Use temp_func to hold and
14532 delete temporary string obtained from cp_func_name.
14533
66644cd3
AB
145342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14535
14536 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14537 gdb::char_vector, remove cleanup, and update uses of `msg`.
14538
592d8c0a
JW
145392019-01-03 Jim Wilson <jimw@sifive.com>
14540
14541 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14542
c55d06ec
TT
145432019-01-02 Tom Tromey <tom@tromey.com>
14544
14545 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14546 (tdesc_parse_xml): Remove cleanups.
14547 * target-descriptions.h (make_cleanup_free_target_description):
14548 Don't declare.
14549 (target_desc_deleter): New struct.
14550 (target_desc_up): New typedef.
14551 * target-descriptions.c (target_desc_deleter::operator()): Rename
14552 from free_target_description.
14553 (make_cleanup_free_target_description): Remove.
14554
3a6ae42d
TT
145552019-01-02 Tom Tromey <tom@tromey.com>
14556
14557 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14558 constructor, destructor.
14559 (linespec_parser): Remove typedef.
14560 (~linespec_parser): Rename from linespec_parser_delete.
14561 (linespec_lex_to_end, linespec_complete_label)
14562 (linespec_complete): Update.
14563 (decode_line_full): Remove cleanups.
14564 (decode_line_1): Update.
14565
61fd3e73
TT
145662019-01-02 Tom Tromey <tom@tromey.com>
14567
14568 * python/python-internal.h (inferior_to_inferior_object): Change
14569 return type.
14570 * python/py-exitedevent.c (create_exited_event_object): Update.
14571 * python/py-inferior.c (inferior_to_inferior_object): Return
14572 gdbpy_ref.
14573 (python_new_inferior, python_inferior_deleted)
14574 (thread_to_thread_object, delete_thread_object)
14575 (build_inferior_list, gdbpy_selected_inferior): Update.
14576 * python/py-infthread.c (create_thread_object): Update. Also fail
14577 if inferior_to_inferior_object fails.
14578
d20172fc
SM
145792019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14580
14581 * inferior.h (class inferior) <displaced_step_state>: New field.
14582 * infrun.h (struct displaced_step_state): Move here from
14583 infrun.c. Initialize fields, add constructor.
14584 <inf>: Remove field.
14585 <reset>: New method.
14586 * infrun.c (struct displaced_step_inferior_state): Move to
14587 infrun.h.
14588 (displaced_step_inferior_states): Remove.
14589 (get_displaced_stepping_state): Adust.
14590 (displaced_step_in_progress_any_inferior): Adjust.
14591 (displaced_step_in_progress_thread): Adjust.
14592 (displaced_step_in_progress): Adjust.
14593 (add_displaced_stepping_state): Remove.
14594 (get_displaced_step_closure_by_addr): Adjust.
14595 (remove_displaced_stepping_state): Remove.
14596 (infrun_inferior_exit): Call displaced_step_state.reset.
14597 (use_displaced_stepping): Don't check for NULL.
14598 (displaced_step_prepare_throw): Call
14599 get_displaced_stepping_state.
14600 (displaced_step_fixup): Don't check for NULL.
14601 (prepare_for_detach): Don't check for NULL.
14602
e3319240
PW
146032019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14604
14605 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14606 in case of call that did not complete.
14607
5d36dfb9
AU
146082019-01-02 Andrey Utkin <autkin@undo.io>
14609
14610 * symfile.c (find_separate_debug_file): Fix search of debug files for
14611 remote debuggee.
14612
8833fbf0
TT
146132019-01-02 Tom Tromey <tom@tromey.com>
14614
14615 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14616 indentation.
14617 * python/py-frame.c (frapy_older): Remove cast.
14618 (frapy_newer): Likewise.
14619 * python/py-breakpoint.c (local_setattro): Remove cast.
14620 * python/py-arch.c (archpy_name): Remove local variable.
14621 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14622
4ada3dfd
JB
146232019-01-02 Joel Brobecker <brobecker@adacore.com>
14624
14625 * unittests/basic_string_view/element_access/char/empty.cc:
14626 Fix year range in copyright header.
14627
113b7b81
AB
146282019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14629
14630 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14631 Delete.
14632 <operator==>: Update with for removed field.
14633 <hash>: Likewise.
14634 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14635 <isa_features>: ...this.
14636 <abi_features>: New field.
14637 (riscv_isa_flen): Update comment.
14638 (riscv_abi_xlen): New declaration.
14639 (riscv_abi_flen): New declaration.
14640 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14641 isa_features.
14642 (riscv_abi_xlen): New function.
14643 (riscv_isa_flen): Update to get answer from isa_features.
14644 (riscv_abi_flen): New function.
14645 (riscv_has_fp_abi): Update to get answer from abi_features.
14646 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14647 xlen and flen.
14648 (riscv_call_info) <xlen, flen>: Update comment.
14649 (riscv_call_arg_struct): Remove invalid assertions
14650 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14651 is removed.
14652 (riscv_gdbarch_init): Gather isa features and abi features
14653 separately, ensure both match on the gdbarch when reusing an old
14654 gdbarch. Relax an error check to allow 32-bit abi float to run on
14655 a target with 64-bit float hardware.
14656
b18ca514
PW
146572019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14658
14659 * source.c (search_command_helper): Stop reverse search
14660 when line 1 has been searched.
14661
ec70d8db
PW
146622019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14663
14664 * record-full.c (record_full_base_target::close): Rewrite
14665 record_full_core_buf_list free logic.
14666
5b38f9c1
PW
146672019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14668
14669 * break-catch-syscall.c (print_one_catch_syscall): xfree
14670 the last text.
14671
66d91b39
JB
146722019-01-01 Joel Brobecker <brobecker@adacore.com>
14673
14674 * top.c (print_gdb_version): Update Copyright year in version
14675 message.
14676
42a4f53d
JB
146772019-01-01 Joel Brobecker <brobecker@adacore.com>
14678
14679 Update copyright year range in all GDB files.
14680
7e955d83 146812019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14682
5bbd631d 14683 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14684
5bbd631d 14685For older changes see ChangeLog-2018.
c906108c
SS
14686\f
14687Local Variables:
14688mode: change-log
14689left-margin: 8
14690fill-column: 74
14691version-control: never
57da7796 14692coding: utf-8
c906108c 14693End:
5bbd631d 14694