]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Convert int to bool in agent.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
75cafaa6
CB
12019-10-31 Christian Biesinger <cbiesinger@google.com>
2
3 * gdbsupport/agent.c (debug_agent): Change type to bool.
4 (use_agent): Likewise.
5 (all_agent_symbols_look_up): Likewise.
6 (agent_loaded_p): Change return value to bool.
7 (agent_look_up_symbols): Update.
8 (agent_capability_check): Change return value to bool.
9 * gdbsupport/agent.h (agent_loaded_p): Likewise.
10 (debug_agent): Change type to bool.
11 (use_agent): Likewise.
12 (agent_capability_check): Change return value to bool.
13
808590ec
CB
142019-10-30 Christian Biesinger <cbiesinger@google.com>
15
16 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
17 (build_minimal_symbol_hash_tables): Code to clear the table moved
18 to clear_minimal_symbol_hash_tables.
19 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
20 when needed.
21
f18ad8a1
SM
222019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * infcmd.c: Remove includes.
25 * infrun.c: Remove includes.
26
de93309a
SM
272019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
30 (grow_vect): Remove declaration.
31 (ada_type_of_array): Remove declaration.
32 (ada_update_initial_language): Remove declaration.
33 (ada_fold_name): Remove declaration.
34 (ada_fill_in_ada_prototype): Remove declaration.
35 (user_select_syms): Remove declaration.
36 (get_selections): Remove declaration.
37 (ada_tag_type): Remove declaration.
38 (ada_value_tag): Remove declaration.
39 (ada_is_others_clause): Remove declaration.
40 (ada_in_variant): Remove declaration.
41 (ada_value_struct_elt): Remove declaration.
42 (ada_attribute_name): Remove declaration.
43 (ada_system_address_type): Remove declaration.
44 * ada-lang.c (ada_watch_location_expression): Make static.
45 (GROW_VECT): Move here from ada-lang.h.
46 (grow_vect): Make static.
47 (ada_update_initial_language): Make static.
48 (ada_fold_name): Make static.
49 (ada_type_of_array): Make static.
50 (encoded_ordered_before): Move up.
51 (sort_choices): Move up.
52 (print_signatures): Move up.
53 (ada_print_symbol_signature): Move up.
54 (get_selections): Move up and make static.
55 (user_select_syms): Move up and make static.
56 (ada_value_struct_elt): Move up and make static.
57 (ada_tag_type): Make static.
58 (ada_value_tag): Make static.
59 (ada_is_others_clause): Make static.
60 (ada_in_variant): Make static.
61 (ada_attribute_name): Make static.
62
cdc46a9f
SM
632019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * ada-lang.c: Remove includes.
66 * ada-typeprint.c: Remove includes.
67 * ada-valprint.c: Remove includes.
68
90421c56
SM
692019-10-29 Simon Marchi <simon.marchi@efficios.com>
70
71 * addrmap.c: Add static assertions of type size, moved from
72 _initialize_addrmap.
73 (_initialize_addrmap): Remove.
74
31edb802
CB
752019-10-29 Christian Biesinger <cbiesinger@google.com>
76
77 * coffread.c (record_minimal_symbol): Update.
78 (process_coff_symbol): Update.
79 * dbxread.c (read_dbx_symtab): Update.
80 * dwarf2read.c (add_partial_symbol): Update.
81 (fixup_go_packaging): Update.
82 (load_partial_dies): Update.
83 (new_symbol): Update.
84 * elfread.c (record_minimal_symbol): Change signature to use
85 gdb::string_view instead of name+len.
86 (elf_symtab_read): Update.
87 (elf_rel_plt_read): Update.
88 * mdebugread.c (parse_partial_symbols): Update.
89 (handle_psymbol_enumerators): Update.
90 (new_symbol): Update.
91 * minsyms.c (minimal_symbol_reader::record_full): Change signature
92 to use gdb::string_view instead of name+len.
93 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
94 * psympriv.h (add_psymbol_to_list): Likewise.
95 * psymtab.c (add_psymbol_to_bcache): Likewise.
96 (add_psymbol_to_list): Likewise.
97 * stabsread.c (define_symbol): Update.
98 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
99 * symtab.h (SYMBOL_SET_NAMES): Likewise.
100 (symbol_set_names): Likewise.
101 * xcoffread.c (scan_xcoff_symtab): Update.
102
0c921b21
CB
1032019-10-29 Christian Biesinger <cbiesinger@google.com>
104
105 * symtab.h (symbol_set_names): Document that copy_name must be
106 set to true for non-nullterminated strings.
107 * symtab.c (symbol_set_names): Only make a nullterminated copy of
108 linkage_name if the entry was not found and we need to demangle.
109
35e65c49
CB
1102019-10-29 Christian Biesinger <cbiesinger@google.com>
111
112 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
113 * dwarf2-frame.c (bsearch_fde_cmp): Update.
114 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
115 * gdbsupport/gdb_binary_search.h: New file.
116
ed2a2229
CB
1172019-10-29 Christian Biesinger <cbiesinger@google.com>
118
119 * NEWS: Mention new --with-system-gdbinit-dir option.
120 * config.in: Regenerate.
121 * configure: Regenerate.
122 * configure.ac: Add new option --with-system-gdbinit-dir.
123 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
124 for a ".gdb" suffix.
125 * main.c (get_init_files): Change system_gdbinit argument to
126 a vector and return the files in SYSTEM_GDBINIT_DIR in
127 addition to SYSTEM_GDBINIT.
128 (captured_main_1): Update.
129 (print_gdb_help): Update.
130 * top.c (print_gdb_configuration): Also print the value of
131 SYSTEM_GDBINIT_DIR.
132
87f34879
CB
1332019-10-28 Christian Biesinger <cbiesinger@google.com>
134
135 * gdbsupport/common-utils.h (startswith): Add an overloaded version
136 that takes gdb::string_view arguments.
137
30baf67b
TV
1382019-10-26 Tom de Vries <tdevries@suse.de>
139
140 * aarch64-linux-tdep.c: Fix typos in comments.
141 * aarch64-tdep.c: Same.
142 * ada-lang.c: Same.
143 * amd64-nat.c: Same.
144 * arc-tdep.c: Same.
145 * arch/aarch64-insn.c: Same.
146 * block.c: Same.
147 * breakpoint.h: Same.
148 * btrace.h: Same.
149 * c-varobj.c: Same.
150 * cli/cli-decode.c: Same.
151 * cli/cli-script.c: Same.
152 * cli/cli-utils.h: Same.
153 * coff-pe-read.c: Same.
154 * coffread.c: Same.
155 * compile/compile-cplus-symbols.c: Same.
156 * compile/compile-object-run.c: Same.
157 * completer.c: Same.
158 * corelow.c: Same.
159 * cp-support.c: Same.
160 * demangle.c: Same.
161 * dwarf-index-write.c: Same.
162 * dwarf2-frame.c: Same.
163 * dwarf2-frame.h: Same.
164 * eval.c: Same.
165 * frame-base.h: Same.
166 * frame.h: Same.
167 * gdbcmd.h: Same.
168 * gdbtypes.h: Same.
169 * gnu-nat.c: Same.
170 * guile/scm-objfile.c: Same.
171 * i386-tdep.c: Same.
172 * i386-tdep.h: Same.
173 * infcall.c: Same.
174 * infcall.h: Same.
175 * linux-nat.c: Same.
176 * m68k-tdep.c: Same.
177 * macroexp.c: Same.
178 * memattr.c: Same.
179 * mi/mi-cmd-disas.c: Same.
180 * mi/mi-getopt.h: Same.
181 * mi/mi-main.c: Same.
182 * minsyms.c: Same.
183 * nat/aarch64-sve-linux-sigcontext.h: Same.
184 * objfiles.h: Same.
185 * ppc-linux-nat.c: Same.
186 * ppc-linux-tdep.c: Same.
187 * ppc-tdep.h: Same.
188 * progspace.h: Same.
189 * prologue-value.h: Same.
190 * python/py-evtregistry.c: Same.
191 * python/py-instruction.h: Same.
192 * record-btrace.c: Same.
193 * record-full.c: Same.
194 * remote.c: Same.
195 * rs6000-tdep.c: Same.
196 * ser-tcp.c: Same.
197 * sol-thread.c: Same.
198 * sparc-sol2-tdep.c: Same.
199 * sparc64-tdep.c: Same.
200 * stabsread.c: Same.
201 * symfile.c: Same.
202 * symtab.h: Same.
203 * target.c: Same.
204 * tracepoint.c: Same.
205 * tui/tui-data.h: Same.
206 * tui/tui-io.c: Same.
207 * tui/tui-win.c: Same.
208 * tui/tui.c: Same.
209 * unittests/rsp-low-selftests.c: Same.
210 * user-regs.h: Same.
211 * utils.c: Same.
212 * utils.h: Same.
213 * valarith.c: Same.
214 * valops.c: Same.
215 * valprint.c: Same.
216 * valprint.h: Same.
217 * value.c: Same.
218 * value.h: Same.
219 * varobj.c: Same.
220 * x86-nat.h: Same.
221 * xtensa-tdep.c: Same.
222
1834d45f
AT
2232019-10-25 Ali Tamur <tamur@google.com>
224
225 * charset.c (find_charset_names): Reflect API change.
226
5396ae17
CB
2272019-10-25 Christian Biesinger <cbiesinger@google.com>
228
229 * symtab.c (struct demangled_name_entry): Change demangled name
230 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
231 part of the struct anymore.
232 (symbol_set_names): No longer obstack allocate + copy the demangled
233 name, just store the allocated name from bfd.
234
93878f47
TT
2352019-10-25 Tom Tromey <tromey@adacore.com>
236
237 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
238 (bsearch_cie_cmp, add_cie): Remove.
239 (find_cie): Reimplement.
240 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
241 (dwarf2_build_frame_info): Update.
242
7b71fc97
L
2432019-10-24 H.J. Lu <hongjiu.lu@intel.com>
244
245 PR gdb/25126
246 * symfile.c (reread_symbols): Call forget_cached_source_info to
247 clear the stale source cache.
248
cbb5a2ea
CB
2492019-10-24 Christian Biesinger <cbiesinger@google.com>
250
251 * configure: Regenerate.
252 * configure.ac: Remove code that sets python_has_threads.
253
71737c43
CB
2542019-10-24 Christian Biesinger <cbiesinger@google.com>
255
256 * config.in: Regenerate.
257 * configure: Regenerate.
258 * configure.ac: Remove the code that uses sed to get the python
259 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
260
33d569b7
AB
2612019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * python/py-progspace.c (pspy_block_for_pc): Return None for all
264 error paths.
265
f16f7b7c
TT
2662019-10-23 Tom Tromey <tom@tromey.com>
267
268 * arc-tdep.c: Remove ".." from include.
269 * frv-tdep.c: Remove ".." from include.
270 * lm32-tdep.c: Remove ".." from include.
271 * microblaze-tdep.c: Remove ".." from include.
272 * or1k-tdep.h: Remove ".." from include.
273 * s12z-tdep.c: Remove ".." from include.
274 * Makefile.in (OPCODES_CFLAGS): Add comment.
275 (TOP_CFLAGS): New variable.
276 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
277
6999161a
TT
2782019-10-23 Tom Tromey <tom@tromey.com>
279
280 * Makefile.in (READLINE_DIR): Update.
281
12e7c35e
TBA
2822019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283
284 * infcall.c (call_function_by_hand_dummy): Fix the function
285 comment. And extract out a code section into...
286 (reserve_stack_space): ...this new function.
287
37055cad
TBA
2882019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
289
290 * infcall.c (value_arg_coerce): Remove an unused parameter.
291 (call_function_by_hand_dummy): Update the call to
292 'value_arg_coerce'.
293
39bcc47c
TBA
2942019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
295
296 * infcall.c (call_function_by_hand_dummy): Refactor.
297
bd888c0f
TBA
2982019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299
300 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
301
c12d372d
TT
3022019-10-23 Tom Tromey <tom@tromey.com>
303
304 * configure: Rebuild.
305 * configure.ac: Don't check for sigprocmask.
306 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
307
4d0b984b
TT
3082019-10-23 Tom Tromey <tom@tromey.com>
309
310 * configure: Rebuild.
311 * acinclude.m4: Use m4_include, not sinclude.
312
7e785608
TV
3132019-10-23 Tom de Vries <tdevries@suse.de>
314
315 PR breakpoints/24687
316 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
317
403772ef
CB
3182019-10-22 Christian Biesinger <cbiesinger@google.com>
319
320 * symtab.c (struct demangled_name_entry) <language>: Change from
321 bitfield to regular variable.
322
3a494279
CB
3232019-10-22 Christian Biesinger <cbiesinger@google.com>
324
325 * symtab.c (struct demangled_name_entry): Add a constructor.
326 (free_demangled_name_entry): New function to call the destructor
327 for demangled_name_entry.
328 (create_demangled_names_hash): Pass free_demangled_name_entry to
329 htab_create_alloc.
330 (symbol_set_names): Call placement new for demangled_name_entry.
331 * utils.c: No longer include xxhash.h here, now that fast_hash
332 is inlined in the header.
333 * utils.h: Instead, include it here.
334
ccb1ba62
CB
3352019-10-22 Christian Biesinger <cbiesinger@google.com>
336
337 * Makefile.in: Link with libxxhash.
338 * config.in: Regenerate.
339 * configure: Regenerate.
340 * configure.ac: Search for libxxhash.
341 * utils.c (fast_hash): Use xxhash if present.
342
1a6ff1a9
CB
3432019-10-22 Christian Biesinger <cbiesinger@google.com>
344
345 * utils.h (fast_hash): New function.
346 * symtab.c (hash_demangled_name_entry): Call new function
347 fast_hash.
348
7bb43059
CB
3492019-10-22 Christian Biesinger <cbiesinger@google.com>
350
351 * symtab.c (struct demangled_name_entry): Change type of mangled
352 to gdb::string_view. Also adds a constructor that takes the
353 mangled name.
354 (hash_demangled_name_entry): Update.
355 (eq_demangled_name_entry): Update.
356 (free_demangled_name_entry): New function to call the destructor
357 now that this is not a POD anymore.
358 (create_demangled_names_hash): Pass free_demangled_name_entry to
359 htab_create_alloc.
360 (symbol_set_names): Update.
361
7ba99d21
AT
3622019-10-21 Ali Tamur <tamu@google.com>
363
364 * dwarf2read.c (dir_index): Change type.
365 (file_name_index): Likewise.
366 (line_header::include_dir_at): Change comment and implementation on
367 whether it is DWARF 5.
368 (line_header::is_valid_file_index): New function.
369 (line_header::file_name_at): Change comment and implementation on
370 whether it is DWARF 5.
371 (line_header::file_names): Change to private field renamed as
372 m_file_names and introduce a new accessor method.
373 (line_header::file_names_size): New method.
374 (line_header::include_dirs): Change to private field and rename as
375 m_include_dirs.
376 (dw2_get_file_names_reader): Define local var at a smaller scope and
377 reflect API change.
378 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
379 (process_structure_scope): Likewise.
380 (line_header::add_include_dir): Change message and reflect renaming.
381 (line_header::add_file_name): Likewise.
382 (read_formatted_entries): Handle DW_FORM_data16.
383 (dwarf_decode_line_header): Fix line header length calculation.
384 (psymtab_include_file_name): Change comment and API.
385 (lnp_state_machine::m_file): Update comment and reflect type change.
386 (lnp_state_machine::record_line): Reflect type change.
387 (dwarf_decode_lines): Reflect API change.
388 (file_file_name): Likewise.
389 (file_full_name): Likewise.
390
45f47c3a
AB
3912019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
394
e5f3c0e3
TT
3952019-10-21 Tom Tromey <tom@tromey.com>
396
397 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
398
a0a461e5
TT
3992019-10-21 Tom Tromey <tom@tromey.com>
400
401 * configure.ac (nm.h): Conditionally create nm.h link. Subst
402 NM_H. Use AC_CONFIG_LINKS.
403 * configure: Rebuild.
404 * Makefile.in (NM_H): New variable.
405 (generated_files): Add NM_H. Remove gcore.
406 (nm.h, stamp-nmh): New targets.
407
54d83b8d
TT
4082019-10-20 Tom Tromey <tom@tromey.com>
409
410 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
411 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
412 obsolete comment.
413 (put_objfile_before): Now static.
414
23771117
SM
4152019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * gdbsupport/common-utils.h (startswith): Change return type to
418 bool.
419
39ef2f62
CB
4202019-10-19 Christian Biesinger <cbiesinger@google.com>
421
422 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
423 * breakpoint.c (bp_locations_compare): Rename to...
424 (bp_location_is_less_than): ...this, and change to std::sort semantics.
425 (update_global_location_list): Use std::sort instead of qsort.
426 * buildsym.c (compare_line_numbers): Rename to...
427 (lte_is_less_than): ...this, and change to std::sort semantics.
428 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
429 instead of qsort.
430 * disasm.c (compare_lines): Rename to...
431 (line_is_less_than): ...this, and change to std::sort semantics.
432 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
433 of qsort.
434 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
435 (fde_is_less_than): ...this, and change to std::sort semantics.
436 (dwarf2_build_frame_info): Call std::sort instead of qsort.
437 * mdebugread.c (compare_blocks):
438 (block_is_less_than): ...this, and change to std::sort semantics.
439 (sort_blocks): Call std::sort instead of qsort.
440 * objfiles.c (qsort_cmp): Rename to...
441 (sort_cmp): ...this, and change to std::sort semantics.
442 (update_section_map): Call std::sort instead of qsort.
443 * remote.c (compare_pnums): Remove.
444 (map_regcache_remote_table): Call std::sort instead of qsort.
445 * utils.c (compare_positive_ints): Remove.
446 * utils.h (compare_positive_ints): Remove.
447 * xcoffread.c (compare_lte): Remove.
448 (arrange_linetable): Call std::sort instead of qsort.
449
f71433ee
SDJ
4502019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
451
452 * symfile.c (init_entry_point_info): Fix typo.
453 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
454
85102364
TV
4552019-10-18 Tom de Vries <tdevries@suse.de>
456
457 * aarch64-tdep.c: Fix typos in comments.
458 * ada-lang.c: Same.
459 * ada-tasks.c: Same.
460 * alpha-tdep.c: Same.
461 * alpha-tdep.h: Same.
462 * amd64-nat.c: Same.
463 * amd64-windows-tdep.c: Same.
464 * arc-tdep.c: Same.
465 * arc-tdep.h: Same.
466 * arch-utils.c: Same.
467 * arm-nbsd-tdep.c: Same.
468 * arm-tdep.c: Same.
469 * ax-gdb.c: Same.
470 * blockframe.c: Same.
471 * btrace.c: Same.
472 * c-varobj.c: Same.
473 * coff-pe-read.c: Same.
474 * coffread.c: Same.
475 * cris-tdep.c: Same.
476 * darwin-nat.c: Same.
477 * dbxread.c: Same.
478 * dcache.c: Same.
479 * disasm.c: Same.
480 * dtrace-probe.c: Same.
481 * dwarf-index-write.c: Same.
482 * dwarf2-frame-tailcall.c: Same.
483 * dwarf2-frame.c: Same.
484 * dwarf2read.c: Same.
485 * eval.c: Same.
486 * exceptions.c: Same.
487 * fbsd-tdep.c: Same.
488 * findvar.c: Same.
489 * frame.c: Same.
490 * frv-tdep.c: Same.
491 * gnu-v3-abi.c: Same.
492 * go32-nat.c: Same.
493 * h8300-tdep.c: Same.
494 * hppa-tdep.c: Same.
495 * i386-linux-tdep.c: Same.
496 * i386-tdep.c: Same.
497 * ia64-libunwind-tdep.c: Same.
498 * ia64-tdep.c: Same.
499 * infcmd.c: Same.
500 * infrun.c: Same.
501 * linespec.c: Same.
502 * linux-nat.c: Same.
503 * linux-thread-db.c: Same.
504 * machoread.c: Same.
505 * mdebugread.c: Same.
506 * mep-tdep.c: Same.
507 * mn10300-tdep.c: Same.
508 * namespace.c: Same.
509 * objfiles.c: Same.
510 * opencl-lang.c: Same.
511 * or1k-tdep.c: Same.
512 * osabi.c: Same.
513 * ppc-linux-nat.c: Same.
514 * ppc-linux-tdep.c: Same.
515 * ppc-sysv-tdep.c: Same.
516 * printcmd.c: Same.
517 * procfs.c: Same.
518 * record-btrace.c: Same.
519 * record-full.c: Same.
520 * remote-fileio.c: Same.
521 * remote.c: Same.
522 * rs6000-tdep.c: Same.
523 * s12z-tdep.c: Same.
524 * score-tdep.c: Same.
525 * ser-base.c: Same.
526 * ser-go32.c: Same.
527 * skip.c: Same.
528 * sol-thread.c: Same.
529 * solib-svr4.c: Same.
530 * solib.c: Same.
531 * source.c: Same.
532 * sparc-nat.c: Same.
533 * sparc-sol2-tdep.c: Same.
534 * sparc-tdep.c: Same.
535 * sparc64-tdep.c: Same.
536 * stabsread.c: Same.
537 * stack.c: Same.
538 * symfile.c: Same.
539 * symtab.c: Same.
540 * target-descriptions.c: Same.
541 * target-float.c: Same.
542 * thread.c: Same.
543 * utils.c: Same.
544 * valops.c: Same.
545 * valprint.c: Same.
546 * value.c: Same.
547 * varobj.c: Same.
548 * windows-nat.c: Same.
549 * xcoffread.c: Same.
550 * xstormy16-tdep.c: Same.
551 * xtensa-tdep.c: Same.
552
c5adaa19
TT
5532019-10-17 Tom Tromey <tromey@adacore.com>
554
555 * configure: Rebuild.
556 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
557 in AC_CONFIG_FILES invocation.
558 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
559 new-style config.status invocation.
560
405feb71
TV
5612019-10-17 Tom de Vries <tdevries@suse.de>
562
563 * arm-nbsd-nat.c: Fix typos in comments.
564 * arm-tdep.c: Same.
565 * darwin-nat-info.c: Same.
566 * dwarf2read.c: Same.
567 * elfread.c: Same.
568 * event-top.c: Same.
569 * findvar.c: Same.
570 * gdbtypes.c: Same.
571 * hppa-tdep.c: Same.
572 * i386-tdep.c: Same.
573 * jit.c: Same.
574 * main.c: Same.
575 * mdebugread.c: Same.
576 * moxie-tdep.c: Same.
577 * nto-procfs.c: Same.
578 * osabi.c: Same.
579 * ppc-linux-tdep.c: Same.
580 * remote.c: Same.
581 * riscv-tdep.c: Same.
582 * s390-tdep.c: Same.
583 * sh-tdep.c: Same.
584 * sparc-linux-tdep.c: Same.
585 * sparc-nat.c: Same.
586 * stack.c: Same.
587 * target-descriptions.c: Same.
588 * top.c: Same.
589 * varobj.c: Same.
590
befcd486
TT
5912019-10-16 Tom Tromey <tom@tromey.com>
592
593 * objfiles.h (struct objfile) <original_name>: Now const.
594
17bfe554
CB
5952019-10-16 Christian Biesinger <cbiesinger@google.com>
596
597 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
598 pass on to sigsetjmp's second argument.
599 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
600
950b7495
KS
6012019-10-16 Keith Seitz <keiths@redhat.com>
602
603 PR gdb/23567
604 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
605 sections whose size is greater than the file size.
606
ff371ec9
JW
6072019-10-16 Jim Wilson <jimw@sifive.com>
608
609 * riscv-tdep.c (riscv_gcc_target_options): New.
610 (riscv_gnu_triplet_regexp): New.
611 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
612 set_gdbarch_gnu_triplet_regexp.
613
fec4e896
CB
6142019-10-16 Christian Biesinger <cbiesinger@google.com>
615
616 * Makefile.in: Add xml-builtin.h.
617 * features/feature_to_c.sh: Add an include for xml-builtin.h
618 to ensure that the compiler checks that the types match.
619 * xml-builtin.h: New file.
620 * xml-support.c (fetch_xml_builtin): Add missing const.
621 * xml-support.h: Remove declaration of xml_builtins.
622
d10eccaa
TV
6232019-10-16 Tom de Vries <tdevries@suse.de>
624
625 PR tdep/25096
626 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
627 (amd64_classify_aggregate): ... here.
628 (amd64_classify_aggregate_field): Handled fiels of nested structs
629 recursively.
630
745ff14e
TV
6312019-10-16 Tom de Vries <tdevries@suse.de>
632
633 PR tdep/24104
634 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
635 that handles 'theclass'.
636
791b7405
AB
6372019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * linespec.c (decode_digits_ordinary): Update comment.
640 * make-target-delegates: No longer need to handle VEC case.
641 * memrange.c (normalize_mem_ranges): Update comment.
642 * namespace.c (add_using_directive): Update comment.
643 * objc-lang.c (uniquify_strings): Update comment.
644 * ppc-linux-nat.c (struct thread_points): Update comment.
645 * probe.h (find_probes_in_objfile): Update comment.
646 * target.h (enum flash_preserve_mode): Update comment.
647 * varobj.c (varobj_restrict_range): Update comment.
648 * varobj.h (varobj_list_children): Update comment.
649
0dc32745
AB
6502019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * Makefile.in: Remove references to vec.h and vec.c.
653 * aarch64-tdep.c: No longer include vec.h.
654 * ada-lang.c: Likewise.
655 * ada-lang.h: Likewise.
656 * arm-tdep.c: Likewise.
657 * ax.h: Likewise.
658 * breakpoint.h: Likewise.
659 * charset.c: Likewise.
660 * cp-support.h: Likewise.
661 * dtrace-probe.c: Likewise.
662 * dwarf2read.c: Likewise.
663 * extension.h: Likewise.
664 * gdb_bfd.c: Likewise.
665 * gdbsupport/gdb_vecs.h: Likewise.
666 * gdbsupport/vec.c: Remove.
667 * gdbsupport/vec.h: Remove.
668 * gdbthread.h: Likewise.
669 * guile/scm-type.c: Likewise.
670 * inline-frame.c: Likewise.
671 * machoread.c: Likewise.
672 * memattr.c: Likewise.
673 * memrange.h: Likewise.
674 * namespace.h: Likewise.
675 * nat/linux-btrace.h: Likewise.
676 * osdata.c: Likewise.
677 * parser-defs.h: Likewise.
678 * progspace.h: Likewise.
679 * python/py-type.c: Likewise.
680 * record-btrace.c: Likewise.
681 * rust-exp.y: Likewise.
682 * solib-target.c: Likewise.
683 * stap-probe.c: Likewise.
684 * target-descriptions.c: Likewise.
685 * target-memory.c: Likewise.
686 * target.h: Likewise.
687 * varobj.c: Likewise.
688 * varobj.h: Likewise.
689 * xml-support.h: Likewise.
690
ae640021
AB
6912019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
694 Update for new std::vector based implementation.
695 (process_psymtab_comp_unit_reader): Likewise.
696 (scan_partial_symbols): Likewise.
697 (recursively_compute_inclusions): Likewise.
698 (compute_compunit_symtab_includes): Likewise.
699 (process_imported_unit_die): Likewise.
700 (queue_and_load_dwo_tu): Likewise.
701 (follow_die_sig_1): Likewise.
702 * gdb/dwarf2read.h: Remove DEF_VEC_P.
703 (typedef dwarf2_per_cu_ptr): Remove.
704 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
705 function.
706 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
707 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
708 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
709 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
710 std::vector.
711
55dfc88f
TT
7122019-10-15 Tom Tromey <tromey@adacore.com>
713
714 * windows-nat.c (windows_nat_target::resume): Use %x when logging
715 TID.
716
96b49c5e
TT
7172019-10-15 Tom Tromey <tromey@adacore.com>
718
719 * windows-nat.c (windows_nat_target::fetch_registers)
720 (windows_nat_target::store_registers): Rename "pid" to "tid".
721
953cff56
TT
7222019-10-15 Tom Tromey <tromey@adacore.com>
723
724 * gdbarch.h, gdbarch.c: Rebuild.
725 * gdbarch.sh (gcc_target_options): Change return type to
726 std::string.
727 * compile/compile.c (get_args): Update.
728 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
729 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
730 std::string.
731 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
732 std::string.
733 * arch-utils.c (default_gcc_target_options): Return std::string.
734 * arch-utils.h (default_gcc_target_options): Return std::string.
735 * s390-tdep.c (s390_gcc_target_options): Return std::string.
736
81e6b8eb
CB
7372019-10-15 Christian Biesinger <cbiesinger@google.com>
738
739 * breakpoint.c (breakpoint_chain): Make static.
740 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
741 of accessing breakpoint_chain.
742
95da600f
CB
7432019-10-15 Christian Biesinger <cbiesinger@google.com>
744
745 * breakpoint.c (iterate_over_breakpoints): Change function pointer
746 to a gdb::function_view and return value to bool.
747 * breakpoint.h (iterate_over_breakpoints): Likewise.
748 * dummy-frame.c (pop_dummy_frame_bpt): Update.
749 (pop_dummy_frame): Update.
750 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
751 (gdbscm_breakpoints): Update.
752 * python/py-breakpoint.c (build_bp_list): Update.
753 (gdbpy_breakpoints): Update.
754 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
755 Update.
756 (bpfinishpy_handle_stop): Update.
757 (bpfinishpy_handle_exit): Update.
758 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
759 (svr4_update_solib_event_breakpoints): Update.
760
ba18312d
AA
7612019-10-15 Andreas Arnez <arnez@linux.ibm.com>
762
763 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
764 when unwrapping single-field structs.
765
6acc1a0b
SM
7662019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * dwarf2read.c: Remove includes.
769
284782de
SM
7702019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * ui-out.c (ui_out::call_do_message): Silence
773 -Wformat-nonliteral warning.
774
073bbbb0
SM
7752019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * breakpoint.c: Remove some includes: continuations.h, skip.h,
778 mi/mi-main.h, readline/readline.h, readline/history.h. Add
779 include: readline/tilde.h.
780
7b9a15e1
CB
7812019-10-12 Christian Biesinger <cbiesinger@google.com>
782
783 * remote.c (remote_target::get_trace_status): Remove declaration of
784 trace_regblock_size.
785
cc8dee1f
CB
7862019-10-12 Christian Biesinger <cbiesinger@google.com>
787
788 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
789 (show_user): Remove declaration of cmdlist.
790 * cli/cli-cmds.h (max_user_call_depth): Declare.
791 * cli/cli-script.c (execute_user_command): Remove declaration
792 of max_user_call_depth.
793
a83d4ef6
JW
7942019-10-11 Jim Wilson <jimw@sifive.com>
795
5f93c5a6
JW
796 * gdbsupport/print-utils.h (pulongest): Fix comment.
797 (plongest): Likewise.
798 (phex): Add missing comment, mention leading zeros.
799 (phex_nz): Add mention of no leading zeros to comment.
800
a83d4ef6
JW
801 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
802 plongest instead of unsigned long long cast.
803
26344e0c
CB
8042019-10-10 Christian Biesinger <cbiesinger@google.com>
805
806 * main.c (captured_main_1): Include gdbtk.h and remove declarations
807 for external_editor_command and gdbtk_test.
808
c2c440a9
CB
8092019-10-10 Christian Biesinger <cbiesinger@google.com>
810
811 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
812 * varobj.c (varobjdebug): Move comment to...
813 * varobj.h (varobjdebug): ...here, and declare.
814
a31bff9d
TT
8152019-10-09 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
818 erase_data_content.
819
7523da63
TT
8202019-10-09 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
823 * tui/tui-stack.c (tui_locator_window::rerender): Update.
824 * tui/tui-command.c (tui_cmd_window::resize)
825 (tui_refresh_cmd_win): Update.
826 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
827 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
828 * tui/tui-data.c (~tui_gen_win_info): Remove.
829 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
830 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
831 (tui_redisplay_readline, tui_mld_flush)
832 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
833 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
834 (tui_data_window::erase_data_content)
835 (tui_data_item_window::rerender)
836 (tui_data_item_window::refresh_window): Update.
837 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
838 (box_win, tui_gen_win_info::make_window)
839 (tui_gen_win_info::make_visible): Update.
840 (tui_delete_win): Remove.
841 * tui/tui-winsource.c
842 (tui_source_window_base::do_erase_source_content): Update.
843 (tui_show_source_line, tui_source_window_base::update_tab_width)
844 (tui_source_window_base::update_exec_info): Update.
845 * tui/tui-data.h (struct curses_deleter): New.
846 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
847 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
848
a7798e7f
TT
8492019-10-09 Tom Tromey <tom@tromey.com>
850
851 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
852
5c45899e
TT
8532019-10-09 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
856 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
857
6d7fd9aa
TT
8582019-10-09 Tom Tromey <tom@tromey.com>
859
860 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
861 window height directly.
862 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
863 declare.
864 * tui/tui-layout.c (tui_default_win_height): Remove.
865 (tui_default_win_viewport_height): Remove.
866
d2dd1084
TT
8672019-10-09 Tom Tromey <tom@tromey.com>
868
869 * tui/tui.h: Remove comments.
870
cff32449
TV
8712019-10-09 Tom de Vries <tdevries@suse.de>
872
873 * python/lib/gdb/printer/bound_registers.py: Use
874 '^builtin_type_bound128' as regexp argument for
875 add_builtin_pretty_printer.
876
6a25e8a2
CB
8772019-10-09 Christian Biesinger <cbiesinger@google.com>
878
879 * guile/guile.c (guile_extension_script_ops): Remove forward
880 declaration and mark as static.
881 (guile_script_ops): Likewise.
882 (extension_language_guile): Move further down in the file so
883 it can reference the definitions for guile_{extension_,}script_ops.
884
6d9d6da4
AA
8852019-10-09 Andreas Arnez <arnez@linux.ibm.com>
886
887 * s390-tdep.c (390_process_record): Handle new arch13 instructions
888 except SORTL, DFLTCC, and KDSA.
889
3abea05d
TT
8902019-10-08 Tom Tromey <tromey@adacore.com>
891
892 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
893 (struct safe_symbol_file_add_args): Remove.
894
dde996e2
TT
8952019-10-08 Tom Tromey <tromey@adacore.com>
896
897 * windows-nat.c: Don't include buildsym-legacy.h.
898
cd6fdaa1
TT
8992019-10-08 Tom Tromey <tromey@adacore.com>
900
901 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
902
79bb1944
CB
9032019-10-08 Christian Biesinger <cbiesinger@google.com>
904
905 * gdbtypes.c (overload_debug): Move comment to header.
906 * gdbtypes.h (overload_debug): Declare.
907 * valops.c: Remove declaration of overload_debug, instead
908 include gdbtypes.h.
909
34916edc
CB
9102019-10-08 Christian Biesinger <cbiesinger@google.com>
911
912 * language.c (show_language_command): Pass lang_frame_mismatch_warn
913 through _().
914 (lang_frame_mismatch_warn): Make const, mark with N_(), and
915 move comment...
916 * language.h (lang_frame_mismatch_warn): ... here. Also add
917 declaration.
918 * top.c (lang_frame_mismatch_warn): Remove declaration.
919 (check_frame_language_change): Pass lang_frame_mismatch_warn
920 through _().
921
bad5c026
CB
9222019-10-07 Christian Biesinger <cbiesinger@google.com>
923
924 * c-lang.h (vtbl_ptr_name): Declare.
925 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
926 it from the header.
927 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
928
51f1fdc3
CB
9292019-10-07 Christian Biesinger <cbiesinger@google.com>
930
931 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
932 gdb_static_assert.
933
30d1f018
WP
9342019-10-07 Weimin Pan <weimin.pan@oracle.com>
935
606813d5
WP
936 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
937 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
938 * ctfread.c: New file.
939 * ctfread.h: New file.
940 * elfread.c: Include ctfread.h.
941 (struct elfinfo text_p): New member ctfsect.
942 (elf_locate_sections): Mark CTF section.
943 (elf_symfile_read): Call elfctf_build_psymtabs.
944 * Makefile.in (LIBCTF): Add.
945 (CLIBS): Use it.
946 (CDEPS): Likewise.
947 (DIST): Add ctfread.c.
606813d5
WP
948
9492019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * ctfread.c (struct nextfield): Renamed to ...
952 (struct ctf_nextfield): ... this.
953 (struct field_info): Renamed to ...
954 (strut ctf_field_info): ... this.
955 (attach_fields_to_type): Update for renamed structures.
956 (ctf_add_member_cb): Likewise.
957 (ctf_add_enum_member_cb): Likewise.
958 (process_struct_members): Likewise.
959 (process_enum_type): Likewise.
30d1f018 960
518fe38c
WP
9612019-10-07 Weimin Pan <weimin.pan@oracle.com>
962
963 * tracectf.h: Rename, was ctf.h.
964 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
965 * tracefile.c: Likewise.
966 * tracepoint.c: Remove unused include ctf.h.
967 * mi/mi-main.c: Likewise.
968 * Makefile.in Replace ctf.c with tracectf.c.
969
225f296a
JB
9702019-10-06 Joel Brobecker <brobecker@adacore.com>
971
972 * version.in: Change version number to "9.0.50.DATE-git".
973
77c2dba3
TT
9742019-10-03 Tom Tromey <tom@tromey.com>
975
976 PR rust/24976:
977 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
978
179aed7f
AB
9792019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
982 cp_search_name_hash.
983 * NEWS: Add entry about nested function support.
984
0a4b0913
AB
9852019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
986 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
989 for nested static variables when searchin VAR_DOMAIN.
990 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
991 global scope, update comment.
992 (add_partial_subprogram): Call add_partial_subprogram recursively
993 for nested subroutines when processinng Fortran.
994 (load_partial_dies): Process the child entities of a subprogram
995 when processing Fortran.
996 (partial_die_parent_scope): Handle building scope
997 for Fortran nested functions.
998 (process_die): Record that nested functions have a scope.
999 (new_symbol): Always record Fortran subprograms on the global
1000 symbol list.
1001 (determine_prefix): How to build the prefix for Fortran
1002 subprograms.
1003
d8c06f22
AB
10042019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1007 have just sent the thread a SIGSTOP and are waiting for it to
1008 arrive.
1009
a8b3b8e9
AB
10102019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1011
1012 * btrace.c (btrace_add_pc): Remove whitespace before the template
1013 parameter in 'std::vector <...>'.
1014 (parse_xml_btrace_block): Likewise.
1015 (btrace_maint_decode_pt): Likewise.
1016 (btrace_maint_update_packets): Likewise.
1017 (btrace_maint_print_packets): Likewise.
1018 * btrace.h (struct btrace_maint_info): Likewise.
1019 * dwarf2read.c (struct type_unit_group): Likewise.
1020 (build_type_psymtabs_reader): Likewise.
1021 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1022 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1023 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1024
4d825eab
TV
10252019-10-03 Tom de Vries <tdevries@suse.de>
1026
1027 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1028 the first line of the help text for set/show style metadata.
1029
80fd2826
TT
10302019-10-02 Tom Tromey <tromey@adacore.com>
1031
1032 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1033 * gdbsupport/common-inferior.c: New file.
1034 * infcmd.c (startup_with_shell): Don't define.
1035 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1036 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1037 * inferior.h (startup_with_shell): Don't declare.
1038
70054538
CB
10392019-10-02 Christian Biesinger <cbiesinger@google.com>
1040
1041 * gdbsupport/gdb_assert.h: Include errors.h.
1042 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1043
37f6a7f4
TT
10442019-10-02 Tom Tromey <tromey@adacore.com>
1045
1046 * NEWS: Add $_ada_exception entry.
1047 * ada-lang.c (struct ada_catchpoint): Add constructor.
1048 <m_kind>: New member.
1049 (allocate_location_exception, re_set_exception): Remove
1050 "ex" parameter.
1051 (should_stop_exception): Compute $_ada_exception.
1052 (check_status_exception, print_it_exception)
1053 (print_one_exception, print_mention_exception): Remove
1054 "ex" parameter.
1055 (allocate_location_catch_exception, re_set_catch_exception)
1056 (check_status_exception, print_it_catch_exception)
1057 (print_one_catch_exception, print_mention_catch_exception)
1058 (print_recreate_catch_exception)
1059 (allocate_location_catch_exception_unhandled)
1060 (re_set_catch_exception_unhandled)
1061 (check_status_exception, print_it_catch_exception_unhandled)
1062 (print_one_catch_exception_unhandled)
1063 (print_mention_catch_exception_unhandled)
1064 (print_recreate_catch_exception_unhandled)
1065 (allocate_location_catch_assert, re_set_catch_assert)
1066 (check_status_assert, print_it_catch_assert)
1067 (print_one_catch_assert, print_mention_catch_assert)
1068 (print_recreate_catch_assert)
1069 (allocate_location_catch_handlers, re_set_catch_handlers)
1070 (check_status_handlers, print_it_catch_handlers)
1071 (print_one_catch_handlers, print_mention_catch_handlers)
1072 (print_recreate_catch_handlers): Remove.
1073 (create_ada_exception_catchpoint): Update.
1074 (initialize_ada_catchpoint_ops): Update.
1075
fccf9de1
TT
10762019-10-02 Tom Tromey <tromey@adacore.com>
1077
1078 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1079 (create_excep_cond_exprs): Simplify exception string computation.
1080 (ada_exception_catchpoint_cond_string): Likewise.
1081
4b610737
TT
10822019-10-02 Tom Tromey <tromey@adacore.com>
1083
1084 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1085 * ada-lang.c (lesseq_defined_than): Handle
1086 LOC_STATIC.
1087 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1088 parameter.
1089 (dwarf2_has_info): Likewise.
1090 (new_symbol): Set maybe_copied on symbol when
1091 appropriate.
1092 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1093 parameter.
1094 <can_copy>: New member.
1095 * elfread.c (record_minimal_symbol): Set maybe_copied
1096 on symbol when appropriate.
1097 (elf_symfile_read): Update call to dwarf2_has_info.
1098 * minsyms.c (lookup_minimal_symbol_linkage): New
1099 function.
1100 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1101 * symtab.c (get_symbol_address, get_msymbol_address):
1102 New functions.
1103 * symtab.h (get_symbol_address, get_msymbol_address):
1104 Declare.
1105 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1106 maybe_copied.
1107 (struct symbol, struct minimal_symbol) <maybe_copied>:
1108 New member.
1109
1dd58850
TT
11102019-10-02 Tom Tromey <tromey@adacore.com>
1111
1112 * source.c (struct current_source_location): New.
1113 (current_source_key): New global.
1114 (current_source_symtab, current_source_line)
1115 (current_source_pspace): Remove.
1116 (get_source_location): New function.
1117 (get_current_source_symtab_and_line)
1118 (set_default_source_symtab_and_line)
1119 (set_current_source_symtab_and_line)
1120 (clear_current_source_symtab_and_line, select_source_symtab)
1121 (info_source_command, print_source_lines_base)
1122 (info_line_command, search_command_helper, _initialize_source):
1123 Update.
1124
5c281dbb
TT
11252019-10-02 Tom Tromey <tromey@adacore.com>
1126
1127 * source.c (select_source_symtab): Don't call
1128 decode_line_with_current_source.
1129
d3d32391
AB
11302019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * symtab.c (lookup_global_symbol): Search global block.
1133
38583298
TT
11342019-10-02 Tom Tromey <tromey@adacore.com>
1135
1136 * coffread.c (process_coff_symbol): Update.
1137 * dwarf2read.c (var_decode_location, new_symbol): Update.
1138 * mdebugread.c (parse_symbol): Update.
1139 * objfiles.c (relocate_one_symbol): Update.
1140 * stabsread.c (define_symbol, fix_common_block)
1141 (scan_file_globals): Update.
1142 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1143 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1144 * xcoffread.c (process_xcoff_symbol): Update.
1145
9344c18f
AA
11462019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1147
1148 * MAINTAINERS: Update my email address.
1149
df07e2c7
AB
11502019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1153 std::vector.
1154 (build_type_psymtabs_reader): Update for std::vector.
1155 (build_type_psymtab_dependencies): Likewise.
1156 * dwarf2read.h: Remove use of DEF_VEC_P.
1157 (typedef sig_type_ptr): Delete.
1158
554ac434
AB
11592019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1162 to std::vector.
1163 (btrace_maint_decode_pt): Likewise, and move allocation of the
1164 vector outside of the loop.
1165 (btrace_maint_update_packets): Update to handle change from VEC to
1166 std::vector.
1167 (btrace_maint_print_packets): Likewise.
1168 (maint_info_btrace_cmd): Likewise.
1169 * btrace.h: Remove use of DEF_VEC_O.
1170 (typedef btrace_pt_packet_s): Delete.
1171 (struct btrace_maint_info) <packets>: Change fromm VEC to
1172 std::vector.
1173 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1174
46f29a9a
AB
11752019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1178 make accesses into the vector constant references.
1179 (btrace_add_pc): Update for std::vector.
1180 (btrace_stitch_bts): Likewise.
1181 (parse_xml_btrace_block): Likewise.
1182 (btrace_maint_update_packets): Likewise.
1183 (btrace_maint_print_packets): Likewise.
1184 (maint_info_btrace_cmd): Likewise.
1185 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1186 std::vector.
1187 (btrace_data::empty): Likewise.
1188 (btrace_data_append): Likewise.
1189 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1190 (typedef btrace_block_s): Delete.
1191 (struct btrace_block): Add constructor.
1192 (struct btrace_data_bts) <blocks>: Change to std::vector.
1193 * nat/linux-btrace.c (perf_event_read_bts): Update for
1194 std::vector.
1195 (linux_read_bts): Likewise.
1196
d770d56f
TT
11972019-10-01 Tom Tromey <tom@tromey.com>
1198
1199 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1200
9d636d67
TT
12012019-10-01 Tom Tromey <tom@tromey.com>
1202
1203 * stack.c (print_frame, info_frame_command_core): Use
1204 styled_string.
1205 * linux-thread-db.c (try_thread_db_load_1)
1206 (try_thread_db_load_from_pdir_1): Use styled_string.
1207 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1208 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1209 (maybe_print_unsupported_script_warning)
1210 (maybe_print_script_not_found_warning): Use styled_string.
1211 * ada-lang.c (user_select_syms): Use styled_string.
1212
7f6aba03
TT
12132019-10-01 Tom Tromey <tom@tromey.com>
1214
1215 * p-lang.c (pascal_printstr): Use metadata style.
1216 * value.c (show_convenience): Use metadata style.
1217 * valprint.c (valprint_check_validity, val_print_optimized_out)
1218 (val_print_not_saved, val_print_unavailable)
1219 (val_print_invalid_address, generic_val_print, val_print)
1220 (value_check_printable, val_print_array_elements): Use metadata
1221 style.
1222 * ui-out.h (class ui_out) <field_fmt>: New overload.
1223 <do_field_fmt>: Add style parameter.
1224 * ui-out.c (ui_out::field_fmt): New overload.
1225 * typeprint.c (type_print_unknown_return_type)
1226 (val_print_not_allocated, val_print_not_associated): Use metadata
1227 style.
1228 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1229 parameter.
1230 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1231 * tracepoint.c (tvariables_info_1): Use metadata style.
1232 * stack.c (print_frame_arg, print_frame_info, print_frame)
1233 (info_frame_command_core): Use metadata style.
1234 * skip.c (info_skip_command): Use metadata style.
1235 * rust-lang.c (rust_print_enum): Use metadata style.
1236 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1237 metadata style.
1238 * python/py-framefilter.c (py_print_single_arg): Use metadata
1239 style.
1240 * printcmd.c (do_one_display, print_variable_and_value): Use
1241 metadata style.
1242 * p-valprint.c (pascal_val_print)
1243 (pascal_object_print_value_fields): Use metadata style.
1244 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1245 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1246 parameter.
1247 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1248 * m2-valprint.c (m2_print_long_set): Use metadata style.
1249 * m2-typeprint.c (m2_print_type): Use metadata style.
1250 * infcmd.c (print_return_value_1): Use metadata style.
1251 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1252 * f-valprint.c (info_common_command_for_block): Use metadata
1253 style.
1254 * f-typeprint.c (f_type_print_base): Use metadata style.
1255 * expprint.c (print_subexp_standard): Use metadata style.
1256 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1257 * cli/cli-style.h (class cli_style_option): Add constructor.
1258 (metadata_style): Declare.
1259 * cli/cli-style.c (metadata_style): New global.
1260 (_initialize_cli_style): Register metadata style.
1261 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1262 parameter.
1263 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1264 * c-typeprint.c (c_type_print_base_struct_union)
1265 (c_type_print_base_1): Use metadata style.
1266 * breakpoint.c (watchpoint_value_print)
1267 (print_one_breakpoint_location): Use metadata style.
1268 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1269 style.
1270 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1271 style.
1272 * ada-valprint.c (val_print_packed_array_elements, printstr)
1273 (print_field_values, ada_val_print_ref, ada_val_print): Use
1274 metadata style.
1275 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1276 style.
1277 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1278 style.
1279 * ada-lang.c (user_select_syms): Use metadata style.
1280
14309bb6
TT
12812019-10-01 Tom Tromey <tom@tromey.com>
1282
1283 * cli/cli-cmds.c (pwd_command): Style output.
1284
6a831f06
PA
12852019-10-01 Pedro Alves <palves@redhat.com>
1286 Tom Tromey <tom@tromey.com>
1287
1288 * symtab.c (print_symbol_info): Use %ps.
1289 (print_msymbol_info): Use %ps.
1290 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1291 * printcmd.c (print_variable_and_value): Use %ps.
1292 * macrocmd.c (show_pp_source_pos): Use %ps.
1293 * infrun.c (print_exited_reason): Use ui_out::message.
1294 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1295 (describe_other_breakpoints): Use ui_out::message and new
1296 formats.
1297 (say_where): Use new formats.
1298 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1299 and new formats.
1300
2a3c1174
PA
13012019-10-01 Pedro Alves <palves@redhat.com>
1302 Tom Tromey <tom@tromey.com>
1303
1304 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1305 (test_gdb_formats): New function.
1306 (run_tests): Call it.
1307 (test_format_specifier): Update.
1308 * utils.h (fputs_filtered): Update comment.
1309 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1310 (fputs_styled_unfiltered): Declare.
1311 * utils.c (fputs_styled_unfiltered): New function.
1312 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1313 (vfprintf_filtered): Update.
1314 (vfprintf_unfiltered, vprintf_filtered): Update.
1315 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1316 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1317 disallow_ui_out_field>: New constants.
1318 (enum class field_kind): New.
1319 (struct base_field_s, struct signed_field_s): New.
1320 (signed_field): New function.
1321 (struct string_field_s): New.
1322 (string_field): New function.
1323 (struct styled_string_s): New.
1324 (styled_string): New function.
1325 (class ui_out) <message>: Add comment.
1326 <vmessage, call_do_message>: New methods.
1327 <do_message>: Add style parameter.
1328 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1329 methods.
1330 (ui_out::message): Rewrite.
1331 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1332 parameter.
1333 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1334 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1335 gdb_extensions parameter.
1336 (class format_piece): Add parameter to constructor.
1337 (n_int_args): New field.
1338 * gdbsupport/format.c (format_pieces::format_pieces): Add
1339 gdb_extensions parameter. Handle '*'.
1340 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1341 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1342 vfprintf_styled_no_gdbfmt.
1343 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1344 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1345 unfiltered output.
1346 * ui-style.h (struct ui_file_style) <ptr>: New method.
1347
0dfe5bfb
TT
13482019-10-01 Tom Tromey <tom@tromey.com>
1349
1350 * unittests/format_pieces-selftests.c: Update. Add final format.
1351 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1352 empty literal pieces.
1353
e43b10e1
TT
13542019-10-01 Tom Tromey <tom@tromey.com>
1355
1356 * ui-out.h (enum class ui_out_style_kind): Remove.
1357 (class ui_out) <field_string, field_stsream, do_field_string>:
1358 Change type of "style".
1359 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1360 (ui_out::field_string): Update.
1361 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1362 of "style".
1363 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1364 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1365 * stack.c (print_frame_arg, print_frame_info, print_frame):
1366 Update.
1367 * source.c (print_source_lines_base): Update.
1368 * solib.c (info_sharedlibrary_command): Update.
1369 * skip.c (info_skip_command): Update.
1370 * record-btrace.c (btrace_call_history_src_line)
1371 (btrace_call_history): Update.
1372 * python/py-framefilter.c (py_print_frame): Update.
1373 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1374 "style".
1375 * mi/mi-out.c (mi_ui_out::do_table_header)
1376 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1377 (mi_ui_out::do_field_string): Update.
1378 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1379 Update.
1380 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1381 "style".
1382 * cli-out.c (cli_ui_out::do_table_header)
1383 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1384 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1385 (cli_ui_out::do_field_fmt): Update.
1386 * breakpoint.c (print_breakpoint_location): Update.
1387 (update_static_tracepoint): Update.
1388
cd7c32c3
PW
13892019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1390
1391 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1392 conversion of gdb_datadir.
1393 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1394 remove not needed c_str ().
1395
8fe0f950
AT
13962019-09-30 Ali Tamur <tamur@google.com>
1397
1398 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1399 (dwarf2_string_attr): Likewise.
1400
5f48f8f3
AT
14012019-09-30 Ali Tamur <tamur@google.com>
1402
1403 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1404 (process_full_type_unit): Likewise.
1405 (dump_die_shallow): Likewise.
1406 (cu_debug_loc_section): Likewise.
1407
6fb08628
CB
14082019-09-28 Christian Biesinger <cbiesinger@google.com>
1409
1410 * minsyms.c (compare_minimal_symbols): Rename to...
1411 (minimal_symbol_is_less_than): ...this, and adjust to STL
1412 conventions (return bool, take arguments as references)
1413 (minimal_symbol_reader::install): Call std::sort instead
1414 of qsort.
1415
c7ee338a
CB
14162019-09-29 Christian Biesinger <cbiesinger@google.com>
1417
1418 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1419 hash and why.
1420 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1421 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1422
703a86c2
SM
14232019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1424
1425 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1426 * psympriv.h (add_psymbol_to_list): Move comment here and update
1427 it.
1428
0df0352a
TV
14292019-09-29 Tom de Vries <tdevries@suse.de>
1430
1431 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1432 Use $tmpdir/$(basename "$output_file").dwz instead of
1433 "${output_file}.dwz".
1434
ad75efa6
SM
14352019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 PR gdb/25045
1438 * hppa-linux-nat.c: Include gdbarch.h.
1439
ececd218
CB
14402019-09-26 Christian Biesinger <cbiesinger@google.com>
1441
1442 * blockframe.c (find_pc_partial_function): Change return type to bool.
1443 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1444 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1445 (stub_gnu_ifunc_resolve_name): Likewise.
1446 * symtab.c (compare_filenames_for_search): Likewise.
1447 (compare_glob_filenames_for_search): Likewise.
1448 (matching_obj_sections): Likewise.
1449 (symbol_matches_domain): Likewise.
1450 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1451 (find_line_pc): Change return type to bool.
1452 (find_line_pc_range): Likewise.
1453 (producer_is_realview): Likewise.
1454 * symtab.h (symbol_matches_domain): Likewise.
1455 (find_pc_partial_function): Likewise.
1456 (find_pc_line_pc_range): Likewise.
1457 (in_gnu_ifunc_stub): Likewise.
1458 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1459 (find_line_pc): Likewise.
1460 (find_line_pc_range): Likewise.
1461 (matching_obj_sections): Likewise.
1462 (find_line_symtab): Change out parameter to bool.
1463 (producer_is_realview): Change return type to bool.
1464 (compare_filenames_for_search): Likewise.
1465 (compare_glob_filenames_for_search): Likewise.
1466
27a900b8
TT
14672019-09-26 Tom Tromey <tom@tromey.com>
1468
1469 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1470 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1471 * gdb_usleep.h: Remove.
1472 * gdb_usleep.c: Remove.
1473 * utils.c: Don't include gdb_usleep.h.
1474
5d63b30a
TT
14752019-09-26 Tom Tromey <tromey@adacore.com>
1476
1477 * python/py-type.c (type_to_type_object): Call check_typedef
1478 for stub types.
1479
12904d37
TT
14802019-09-26 Tom Tromey <tom@tromey.com>
1481
1482 * utils.h (initialize_utils): Don't declare.
1483 * top.c (gdb_init): Don't call initialize_utils.
1484 * utils.c (initialize_utils): Remove. Move contents...
1485 (_initialize_utils): ... here.
1486
858f25f0
TT
14872019-09-25 Tom Tromey <tom@tromey.com>
1488
1489 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1490 * utils.h (make_hex_string): Don't declare.
1491 * utils.c (make_hex_string): Remove.
1492
3d435220
TV
14932019-09-24 Tom de Vries <tdevries@suse.de>
1494
1495 PR gdb/23815
1496 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1497 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1498
ddd44b70
DD
14992019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1500
1501 * NEWS: Mention new simulator port for PRU.
1502
f945dedf
CB
15032019-09-23 Christian Biesinger <cbiesinger@google.com>
1504
1505 * ada-exp.y (write_object_remaining): Update.
1506 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1507 and eliminate the static buffer.
1508 (ada_decode_symbol): Update.
1509 (ada_la_decode): Update.
1510 (ada_sniff_from_mangled_name): Update.
1511 (is_valid_name_for_wild_match): Update.
1512 (ada_lookup_name_info::matches): Update and simplify.
1513 (name_matches_regex): Update.
1514 (ada_add_global_exceptions): Update.
1515 * ada-lang.h (ada_decode): Update signature.
1516 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1517 * dwarf-index-write.c (debug_names::insert): Update.
1518
7ab78ccb
SM
15192019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1522 formatting.
1523
9252448b
SM
15242019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1527 Change "nonzero" to "true" in documentation.
1528
626ca2c0
CB
15292019-09-20 Christian Biesinger <cbiesinger@google.com>
1530
1531 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1532 (_initialize_darwin_solib): Don't set
1533 darwin_so_ops.lookup_lib_global_symbol.
1534 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1535 set_gdbarch_iterate_over_objfiles_in_search_order.
1536 (elf_lookup_lib_symbol): Rename to...
1537 (svr4_iterate_over_objfiles_in_search_order): this, and update
1538 to iterate semantics.
1539 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1540 * solib.c (solib_global_lookup): Remove.
1541 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1542 (solib_global_lookup): Remove.
1543 * symtab.c (lookup_global_or_static_symbol): Remove call to
1544 solib_global_lookup.
1545
5a3a0d63
JB
15462019-09-20 Joel Brobecker <brobecker@adacore.com>
1547
1548 * NEWS: Move entries about default MI version now being
1549 version 3, and about the GDB/MI fix for multi-location
1550 breakpoints to the "since GDB 8.3" section.
1551
ffea1427
JB
15522019-09-20 Joel Brobecker <brobecker@adacore.com>
1553
1554 GDB 8.3.1 released.
1555
abf516c6
UW
15562019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1557
1558 * NEWS: Mention that Cell/B.E. debugging support was removed.
1559 * MAINTAINERS: Remove spu target.
1560
1561 * config/djgpp/fnchange.lst: Remove entries for removed files.
1562
1563 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1564 spu-multiarch.o, and spu-tdep.o.
1565 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1566 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1567 spu-multiarch.c, and spu-tdep.c.
1568 * spu-linux-nat.c: Remove file.
1569 * spu-multiarch.c: Remove file.
1570 * spu-tdep.c: Remove file.
1571 * spu-tdep.h: Remove file.
1572 * solib-spu.c: Remove file.
1573 * solib-spu.h: Remove file.
1574
1575 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1576 * configure.nat (spu-linux): Remove.
1577 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1578 solib-multiarch.o from gdb_target_obs.
1579 (spu*-*-*): Remove.
1580
1581 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1582 feature flag.
1583 (ppc_linux_no_features): Update.
1584 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1585 Cell/B.E. support.
1586 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1587 (tdesc_powerpc_cell64l): Likewise.
1588 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1589 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1590 Cell/B.E. support.
1591 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1592 Do not include "features/rs6000/powerpc-cell32l.c" or
1593 "features/rs6000/powerpc-cell64l.c".
1594 (ppc_linux_spu_section): Remove.
1595 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1596 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1597 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1598 (ppc_linux_spe_context_lookup): Remove.
1599 (ppc_linux_spe_context_inferior_created): Remove.
1600 (ppc_linux_spe_context_solib_loaded): Remove.
1601 (ppc_linux_spe_context_solib_unloaded): Remove.
1602 (ppc_linux_spe_context): Remove.
1603 (struct ppu2spu_cache): Remove.
1604 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1605 (struct ppu2spu_data): Remove.
1606 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1607 ppu2spu_unwind): Remove.
1608 (ppc_linux_init_abi): Remove Cell/B.E. support.
1609 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1610
1611 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1612 (rs6000/powerpc-cell64l-expedite): Likewise
1613 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1614 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1615 rs6000/powerpc-cell64l.xml.
1616 * features/rs6000/powerpc-cell32l.xml: Remove.
1617 * features/rs6000/powerpc-cell64l.xml: Likewise.
1618 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1619 * features/rs6000/powerpc-cell64l.c: Likewise.
1620 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1621 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1622 * regformats/reg-spu.dat: Remove.
1623
1624 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1625 * corelow.c (struct spuid_list): Remove.
1626 (add_to_spuid_list): Remove.
1627 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1628 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1629 (remote_protocol_features): Remove associated entries.
1630 (_initialize_remote): No longer initialize them.
1631 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1632 * linux-nat.c (SPUFS_MAGIC): Remove.
1633 (linux_proc_xfer_spu): Remove.
1634 (spu_enumerate_spu_ids): Remove.
1635 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1636 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1637 (linux_make_corefile_notes): No longer call it.
1638
1639 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1640 (cooked_write_test): Likewise.
1641
78e8cb91
TT
16422019-09-20 Tom Tromey <tom@tromey.com>
1643
1644 * NEWS: Mention case-sensitivity of TUI commands.
1645 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1646 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1647 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1648
f074b67e
TT
16492019-09-20 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-source.c (tui_source_window::set_contents): Use
1652 make_unique_xstrdup.
1653 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1654 make_unique_xstrdup.
1655
63c4bf19
TT
16562019-09-20 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-data.c: Remove separator comments.
1659 * tui/tui-layout.c: Remove separator comments.
1660 * tui/tui-win.c: Remove separator comments.
1661 * tui/tui-wingeneral.c: Remove separator comments.
1662
43df9b2f
TT
16632019-09-20 Tom Tromey <tom@tromey.com>
1664
1665 * tui/tui.h (strcat_to_buf): Don't declare.
1666 * tui/tui.c (strcat_to_buf): Remove.
1667
7226433c
TT
16682019-09-20 Tom Tromey <tom@tromey.com>
1669
1670 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1671 from "fullname".
1672 * tui/tui-source.c (tui_source_window::set_contents)
1673 (tui_source_window::location_matches_p)
1674 (tui_source_window::maybe_update): Update.
1675
80df3337
TT
16762019-09-20 Tom Tromey <tom@tromey.com>
1677
1678 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1679 Update.
1680 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1681 prefix.
1682 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1683 (tui_data_window::line_from_reg_element_no)
1684 (tui_data_window::first_reg_element_no_inline)
1685 (tui_data_window::show_registers)
1686 (tui_data_window::show_register_group)
1687 (tui_data_window::display_registers_from)
1688 (tui_data_window::display_registers_from_line)
1689 (tui_data_window::first_data_item_displayed)
1690 (tui_data_window::delete_data_content_windows)
1691 (tui_data_window::erase_data_content)
1692 (tui_data_window::do_scroll_vertical)
1693 (tui_data_window::refresh_window)
1694 (tui_data_window::check_register_values): Update.
1695
9923f347
TT
16962019-09-20 Tom Tromey <tom@tromey.com>
1697
1698 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1699 (struct tui_locator_window) <full_name, proc_name>: Now
1700 std::string.
1701 * tui/tui-stack.c (tui_locator_window::make_status_line)
1702 (tui_locator_window::set_locator_fullname)
1703 (tui_locator_window::set_locator_info): Update.
1704 * tui/tui-source.c (tui_source_window::set_contents)
1705 (tui_source_window::showing_source_p): Update.
1706
b76251ab
TT
17072019-09-20 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1710 Don't call tui_locator_win_info_ptr.
1711
0891be08
TT
17122019-09-20 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1715
1b935acf
TT
17162019-09-20 Tom Tromey <tom@tromey.com>
1717
1718 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1719 height for locator.
1720 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1721 * tui/tui-layout.c (show_source_disasm_command, show_data)
1722 (show_source_or_disasm_and_command): Use 1 as height for locator.
1723
9abd8a65
TT
17242019-09-20 Tom Tromey <tom@tromey.com>
1725
1726 * tui/tui.c (tui_enable): Update.
1727 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1728 Update.
1729 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1730 Update.
1731 * tui/tui-data.c (win_resized): Now bool.
1732 (tui_win_resized): Return bool.
1733 (tui_set_win_resized_to): Accept a bool.
1734
b5457826
TT
17352019-09-20 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1738 Change type of "refresh_values_only".
1739 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1740 type of "refresh_values_only".
1741
6b915f7d
TT
17422019-09-20 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1745 std::string.
1746 (tui_disassemble): Add "pos" parameter.
1747 (tui_disasm_window::set_contents): Simplify.
1748
2ad52f6f
TT
17492019-09-20 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-winsource.h (struct tui_source_window_base)
1752 <show_source_content>: Now private.
1753 * tui/tui-winsource.c
1754 (tui_source_window_base::show_source_content): Don't handle empty
1755 content case.
1756
b3b1bde6
TT
17572019-09-20 Tom Tromey <tom@tromey.com>
1758
1759 * tui/tui-layout.c (show_source_disasm_command)
1760 (show_source_or_disasm_and_command): Don't call
1761 show_source_content.
1762
71a25ed2
TT
17632019-09-20 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1766 Declare.
1767 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1768 from tui_make_status_line.
1769 (tui_locator_window::rerender): Update.
1770
f8532154
TT
17712019-09-20 Tom Tromey <tom@tromey.com>
1772
1773 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1774 (tui_locator_window::rerender): Update.
1775
2d81b349
TT
17762019-09-20 Tom Tromey <tom@tromey.com>
1777
1778 * tui/tui-winsource.h (struct tui_source_window_base)
1779 <~tui_source_window_base>: Don't declare.
1780 <fullname>: Remove.
1781 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1782 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1783 member.
1784 * tui/tui-source.c (tui_source_window::set_contents): Update.
1785 (tui_source_window::location_matches_p)
1786 (tui_source_window::maybe_update): Update.
1787
f14bec58
TT
17882019-09-20 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-winsource.h (~tui_source_element): Remove.
1791 (tui_source_element): Update.
1792 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1793 * tui/tui-winsource.c (tui_show_source_line): Update.
1794 * tui/tui-source.c (tui_source_window::set_contents): Update.
1795 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1796
78d5933a
TT
17972019-09-20 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1800 declare.
1801 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1802 tui_clear_source_windows_detail.
1803 * tui/tui-winsource.h (struct tui_source_window_base)
1804 <clear_detail>: Don't declare.
1805 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1806 Remove.
1807 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1808
d4207696
TT
18092019-09-20 Tom Tromey <tromey@adacore.com>
1810
1811 PR ada/24919:
1812 * block.c (contained_in): Fix final return value.
1813
00f93c44
AM
18142019-09-20 Alan Modra <amodra@gmail.com>
1815
1816 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1817 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1818 (read_indirect_string_from_dwz): Use bfd accessor.
1819 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1820 * machoread.c (macho_symfile_read_all_oso): Likewise.
1821 * solib.c (solib_bfd_open): Likewise.
1822
e4153ae6
CB
18232019-09-19 Christian Biesinger <cbiesinger@google.com>
1824
1825 * eval.c: Move declaration of overload_resolution to...
1826 * value.h: ...here.
1827
c7ae7675
CB
18282019-09-19 Christian Biesinger <cbiesinger@google.com>
1829
1830 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1831 * arm-linux-tdep.c: Likewise.
1832 * arm-nbsd-nat.c: Likewise.
1833 * arm-tdep.h: Declare arm_apcs_32.
1834 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1835
e86f08d2
CB
18362019-09-19 Christian Biesinger <cbiesinger@google.com>
1837
1838 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1839 * dwarf2read.h: Declare dwarf_always_disassemble.
1840
f64e2f40
TV
18412019-09-19 Tom de Vries <tdevries@suse.de>
1842
1843 PR gdb/25009
1844 * source-cache.c (source_cache::ensure): Catch exception thrown during
1845 construction of the highlighter.
1846
fd361982
AM
18472019-09-18 Alan Modra <amodra@gmail.com>
1848
1849 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1850 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1851 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1852 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1853 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1854 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1855 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1856 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1857 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1858 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1859 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1860 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1861 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1862 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1863 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1864 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1865 * mi/mi-interp.c: Update throughout for bfd section macro and
1866 function changes.
1867 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1868 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1869
11061048
TT
18702019-09-18 Tom Tromey <tom@tromey.com>
1871
1872 * NEWS: Add entry.
1873 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1874 call rl_initialize.
1875 (tui_enable): Do not call rl_initialize.
1876
7a27b85f
CG
18772019-09-18 Christian Groessler <chris@groessler.org>
1878
1879 * alpha-linux-nat.c: Include gdbarch.h.
1880
f64eea3a
SM
18812019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 * ui-file.c: Include cli/cli-style.h.
1884 (term_cli_styling): Remove cli_styling declaration.
1885
e6f7f6d1
AM
18862019-09-18 Alan Modra <amodra@gmail.com>
1887
1888 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1889 to bfd_asymbol_section.
1890
1d38e9d1
AM
18912019-09-18 Alan Modra <amodra@gmail.com>
1892
1893 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1894 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1895 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1896
90d92a63
AM
18972019-09-18 Alan Modra <amodra@gmail.com>
1898
1899 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1900 * spu-linux-nat.c (spu_bfd_open): Likewise.
1901
a3d181d2
CB
19022019-09-18 Christian Biesinger <cbiesinger@google.com>
1903
1904 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1905 to bool to match definition in dwarf2read.c.
1906
491144b5
CB
19072019-09-17 Christian Biesinger <cbiesinger@google.com>
1908
1909 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1910 (print_signatures): Likewise.
1911 (trust_pad_over_xvs): Likewise.
1912 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1913 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1914 * arm-linux-nat.c (arm_apcs_32): Likewise.
1915 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1916 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1917 * arm-tdep.c (arm_debug): Likewise.
1918 (arm_apcs_32): Likewise.
1919 * auto-load.c (debug_auto_load): Likewise.
1920 (auto_load_gdb_scripts): Likewise.
1921 (global_auto_load): Likewise.
1922 (auto_load_local_gdbinit): Likewise.
1923 (auto_load_local_gdbinit_loaded): Likewise.
1924 * auto-load.h (global_auto_load): Likewise.
1925 (auto_load_local_gdbinit): Likewise.
1926 (auto_load_local_gdbinit_loaded): Likewise.
1927 * breakpoint.c (disconnected_dprintf): Likewise.
1928 (breakpoint_proceeded): Likewise.
1929 (automatic_hardware_breakpoints): Likewise.
1930 (always_inserted_mode): Likewise.
1931 (target_exact_watchpoints): Likewise.
1932 (_initialize_breakpoint): Update.
1933 * breakpoint.h (target_exact_watchpoints): Change to bool.
1934 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1935 * cli/cli-cmds.c (trace_commands): Likewise.
1936 * cli/cli-cmds.h (trace_commands): Likewise.
1937 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1938 to bool*.
1939 * cli/cli-logging.c (logging_overwrite): Change to bool.
1940 (logging_redirect): Likewise.
1941 (debug_redirect): Likewise.
1942 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1943 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1944 to bool.
1945 <boolean_option_def>: Update.
1946 (struct flag_option_def): Change default type of Context to bool
1947 from int.
1948 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1949 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1950 (get_setshow_command_value_string): Likewise.
1951 * cli/cli-style.c (cli_styling): Change to bool.
1952 (source_styling): Likewise.
1953 * cli/cli-style.h (source_styling): Likewise.
1954 (cli_styling): Likewise.
1955 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1956 to bool.
1957 * command.h (var_types): Update comment.
1958 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1959 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1960 bool.
1961 (debug_compile_cplus_scopes): Likewise.
1962 * compile/compile-internal.h (compile_debug): Likewise.
1963 * compile/compile.c (compile_debug): Likewise.
1964 (struct compile_options) <raw>: Likewise.
1965 * cp-support.c (catch_demangler_crashes): Likewise.
1966 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1967 (usr_cmd_cris_dwarf2_cfi): Likewise.
1968 * csky-tdep.c (csky_debug): Likewise.
1969 * darwin-nat.c (enable_mach_exceptions): Likewise.
1970 * dcache.c (dcache_enabled_p): Likewise.
1971 * defs.h (info_verbose): Likewise.
1972 * demangle.c (demangle): Likewise.
1973 (asm_demangle): Likewise.
1974 * dwarf-index-cache.c (debug_index_cache): Likewise.
1975 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1976 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1977 * dwarf2read.c (check_physname): Likewise.
1978 (use_deprecated_index_sections): Likewise.
1979 (dwarf_always_disassemble): Likewise.
1980 * eval.c (overload_resolution): Likewise.
1981 * event-top.c (set_editing_cmd_var): Likewise.
1982 (exec_done_display_p): Likewise.
1983 * event-top.h (set_editing_cmd_var): Likewise.
1984 (exec_done_display_p): Likewise.
1985 * exec.c (write_files): Likewise.
1986 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1987 (debug_fbsd_nat): Likewise.
1988 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1989 Likewise.
1990 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1991 <backtrace_past_entry> Likewise.
1992 * gdb-demangle.h (demangle): Likewise.
1993 (asm_demangle): Likewise.
1994 * gdb_bfd.c (bfd_sharing): Likewise.
1995 * gdbcore.h (write_files): Likewise.
1996 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1997 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1998 * gdbthread.h (print_thread_events): Likewise.
1999 * gdbtypes.c (opaque_type_resolution): Likewise.
2000 (strict_type_checking): Likewise.
2001 * gnu-nat.c (gnu_debug_flag): Likewise.
2002 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2003 * guile/scm-param.c (pascm_variable): Add boolval.
2004 (add_setshow_generic): Update.
2005 (pascm_param_value): Update.
2006 (pascm_set_param_value_x): Update.
2007 * hppa-tdep.c (hppa_debug): Change to bool..
2008 * infcall.c (may_call_functions_p): Likewise.
2009 (coerce_float_to_double_p): Likewise.
2010 (unwind_on_signal_p): Likewise.
2011 (unwind_on_terminating_exception_p): Likewise.
2012 * infcmd.c (startup_with_shell): Likewise.
2013 * inferior.c (print_inferior_events): Likewise.
2014 * inferior.h (startup_with_shell): Likewise.
2015 (print_inferior_events): Likewise.
2016 * infrun.c (step_stop_if_no_debug): Likewise.
2017 (detach_fork): Likewise.
2018 (debug_displaced): Likewise.
2019 (disable_randomization): Likewise.
2020 (non_stop): Likewise.
2021 (non_stop_1): Likewise.
2022 (observer_mode): Likewise.
2023 (observer_mode_1): Likewise.
2024 (set_observer_mode): Update.
2025 (sched_multi): Change to bool.
2026 * infrun.h (debug_displaced): Likewise.
2027 (sched_multi): Likewise.
2028 (step_stop_if_no_debug): Likewise.
2029 (non_stop): Likewise.
2030 (disable_randomization): Likewise.
2031 * linux-tdep.c (use_coredump_filter): Likewise.
2032 (dump_excluded_mappings): Likewise.
2033 * linux-thread-db.c (auto_load_thread_db): Likewise.
2034 (check_thread_db_on_load): Likewise.
2035 * main.c (captured_main_1): Update.
2036 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2037 xx2_opt, boolean_opt>: Change to bool.
2038 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2039 * maint.c (maintenance_profile_p): Likewise.
2040 (per_command_time): Likewise.
2041 (per_command_space): Likewise.
2042 (per_command_symtab): Likewise.
2043 * memattr.c (inaccessible_by_default): Likewise.
2044 * mi/mi-main.c (mi_async): Likewise.
2045 (mi_async_1): Likewise.
2046 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2047 * nat/fork-inferior.h (startup_with_shell): Likewise.
2048 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2049 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2050 * nios2-tdep.c (nios2_debug): Likewise.
2051 * or1k-tdep.c (or1k_debug): Likewise.
2052 * parse.c (parser_debug): Likewise.
2053 * parser-defs.h (parser_debug): Likewise.
2054 * printcmd.c (print_symbol_filename): Likewise.
2055 * proc-api.c (procfs_trace): Likewise.
2056 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2057 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2058 (set_parameter_value): Update.
2059 (add_setshow_generic): Update.
2060 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2061 to bool*.
2062 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2063 int*.
2064 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2065 * record-btrace.c (record_btrace_target::store_registers): Update.
2066 * record-full.c (record_full_memory_query): Change to bool.
2067 (record_full_stop_at_limit): Likewise.
2068 * record-full.h (record_full_memory_query): Likewise.
2069 * remote-notif.c (notif_debug): Likewise.
2070 * remote-notif.h (notif_debug): Likewise.
2071 * remote.c (use_range_stepping): Likewise.
2072 (interrupt_on_connect): Likewise.
2073 (remote_break): Likewise.
2074 * ser-tcp.c (tcp_auto_retry): Likewise.
2075 * ser-unix.c (serial_hwflow): Likewise.
2076 * skip.c (debug_skip): Likewise.
2077 * solib-aix.c (solib_aix_debug): Likewise.
2078 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2079 (spu_auto_flush_cache_p): Likewise.
2080 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2081 Likewise.
2082 (struct info_print_options) <quiet>: Likewise.
2083 * symfile-debug.c (debug_symfile): Likewise.
2084 * symfile.c (auto_solib_add): Likewise.
2085 (separate_debug_file_debug): Likewise.
2086 * symfile.h (auto_solib_add): Likewise.
2087 (separate_debug_file_debug): Likewise.
2088 * symtab.c (basenames_may_differ): Likewise.
2089 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2090 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2091 (struct info_types_options) <quiet>: Likewise.
2092 * symtab.h (demangle): Likewise.
2093 (basenames_may_differ): Likewise.
2094 * target-dcache.c (stack_cache_enabled_1): Likewise.
2095 (code_cache_enabled_1): Likewise.
2096 * target.c (trust_readonly): Likewise.
2097 (may_write_registers): Likewise.
2098 (may_write_memory): Likewise.
2099 (may_insert_breakpoints): Likewise.
2100 (may_insert_tracepoints): Likewise.
2101 (may_insert_fast_tracepoints): Likewise.
2102 (may_stop): Likewise.
2103 (auto_connect_native_target): Likewise.
2104 (target_stop_and_wait): Update.
2105 (target_async_permitted): Change to bool.
2106 (target_async_permitted_1): Likewise.
2107 (may_write_registers_1): Likewise.
2108 (may_write_memory_1): Likewise.
2109 (may_insert_breakpoints_1): Likewise.
2110 (may_insert_tracepoints_1): Likewise.
2111 (may_insert_fast_tracepoints_1): Likewise.
2112 (may_stop_1): Likewise.
2113 * target.h (target_async_permitted): Likewise.
2114 (may_write_registers): Likewise.
2115 (may_write_memory): Likewise.
2116 (may_insert_breakpoints): Likewise.
2117 (may_insert_tracepoints): Likewise.
2118 (may_insert_fast_tracepoints): Likewise.
2119 (may_stop): Likewise.
2120 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2121 (make_thread_apply_all_options_def_group): Change argument from int*
2122 to bool*.
2123 (thread_apply_all_command): Update.
2124 (print_thread_events): Change to bool.
2125 * top.c (confirm): Likewise.
2126 (command_editing_p): Likewise.
2127 (history_expansion_p): Likewise.
2128 (write_history_p): Likewise.
2129 (info_verbose): Likewise.
2130 * top.h (confirm): Likewise.
2131 (history_expansion_p): Likewise.
2132 * tracepoint.c (disconnected_tracing): Likewise.
2133 (circular_trace_buffer): Likewise.
2134 * typeprint.c (print_methods): Likewise.
2135 (print_typedefs): Likewise.
2136 * utils.c (debug_timestamp): Likewise.
2137 (sevenbit_strings): Likewise.
2138 (pagination_enabled): Likewise.
2139 * utils.h (sevenbit_strings): Likewise.
2140 (pagination_enabled): Likewise.
2141 * valops.c (overload_resolution): Likewise.
2142 * valprint.h (struct value_print_options) <prettyformat_arrays,
2143 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2144 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2145 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2146 Likewise.
2147 * windows-nat.c (new_console): Likewise.
2148 (cygwin_exceptions): Likewise.
2149 (new_group): Likewise.
2150 (debug_exec): Likewise.
2151 (debug_events): Likewise.
2152 (debug_memory): Likewise.
2153 (debug_exceptions): Likewise.
2154 (useshell): Likewise.
2155 * windows-tdep.c (maint_display_all_tib): Likewise.
2156 * xml-support.c (debug_xml): Likewise.
2157
f1b620e9
MG
21582019-09-17 Mike Gulick <mgulick@mathworks.com>
2159
2160 * source.c (prepare_path_for_appending): New function.
2161 (openp): Make use of new function.
2162 (find_and_open_source): Search for the compilation directory and
2163 source file as a relative path beneath the directory search path.
2164
67f3ed6a
AB
21652019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * source-cache.c (source_cache::get_line_charpos): Catch
2168 exceptions and return false, this matches the behaviour documented
2169 in the header file.
2170
74332189
JB
21712019-09-17 Joel Brobecker <brobecker@adacore.com>
2172
2173 * ada-tasks.c (info_task): Remove quoting of the task's name.
2174
f2f24aa9
CB
21752019-09-16 Christian Biesinger <cbiesinger@google.com>
2176
2177 * symfile.c (auto_solib_add): Replace comment with a reference
2178 to the header file.
2179
6a062a93
CB
21802019-09-14 Christian Biesinger <cbiesinger@google.com>
2181
2182 * NEWS: Mention that gdb can now be compiled with Python 3
2183 on Windows.
2184
ec6c8338
AB
21852019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * maint.c (maint_print_section_data::maint_print_section_data):
2188 Force use of 'float log10 (float)' by casting the argument to
2189 float.
2190
aa17805f
AB
21912019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2192
2193 * maint.c: Add 'cmath' include.
2194 (struct maint_print_section_data): New structure.
2195 (print_section_index): New function.
2196 (print_bfd_section_info): Add header comment, small whitespace
2197 cleanup, and update to call new print_section_index function.
2198 (print_objfile_section_info): Likewise.
2199 (maint_obj_section_from_bfd_section): New function.
2200 (print_bfd_section_info_maybe_relocated): New function.
2201 (maintenance_info_sections): Add header comment, always use
2202 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2203
3dd9bb46
AB
22042019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2207 inner scope, add check that the objfile has psymtabs before
2208 checking psymtabs_addrmap.
2209 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2210
4993045d
PW
22112019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2212
2213 * NEWS: Announce that Ada task names are now shown at more places,
2214 and between quotes (except in info task output).
2215 * gdb/ada-tasks.c (task_to_str): New function.
2216 (display_current_task_id): Call task_to_str.
2217 (task_command_1): Likewise.
2218 (print_ada_task_info): In non-mi mode, Properly align headers and data
2219 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2220
7a289707
RO
22212019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2222
2223 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2224 prstatus.pr_lwp.pr_info instead of making it up.
2225
f2aec7f6
CB
22262019-09-11 Christian Biesinger <cbiesinger@google.com>
2227
2228 * auto-load.c (auto_load_expand_dir_vars): Update.
2229 * defs.h (gdb_datadir): Change to std::string.
2230 (python_libdir): Likewise.
2231 (relocate_gdb_directory): Change return type to std::string.
2232 * guile/guile.c (gdbscm_data_directory): Update.
2233 (initialize_scheme_side): Update.
2234 * jit.c (jit_reader_dir): Change to std::string.
2235 (jit_reader_load_command): Update.
2236 * main.c (gdb_datadir): Change to std::string.
2237 (python_libdir): Likewise.
2238 (set_gdb_data_directory): Update.
2239 (relocate_path): Change to return std::string.
2240 (relocate_gdb_directory): Change to return std::string.
2241 (relocate_gdbinit_path_maybe_in_datadir): Update.
2242 (captured_main_1): Update.
2243 * python/python.c (do_start_initialization): Update.
2244 * top.c (show_gdb_datadir): Update.
2245 * xml-syscall.c (xml_init_syscalls_info): Update.
2246 (init_syscalls_info): Update.
2247
9224a013
CB
22482019-09-11 Christian Biesinger <cbiesinger@google.com>
2249
2250 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2251 out of get_init_files.
2252 (get_init_files): Update.
2253
f48cd836
CB
22542019-09-11 Christian Biesinger <cbiesinger@google.com>
2255
2256 * main.c (get_init_files): Change to use std::string.
2257 (captured_main_1): Update.
2258 (print_gdb_help): Update.
2259
9cab7ecd
AT
22602019-09-11 Ali Tamur <tamur@google.com>
2261
2262 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2263 implementation.
2264
67547d89
CB
22652019-09-11 Christian Biesinger <cbiesinger@google.com>
2266
2267 * dbxread.c (read_dbx_symtab): Update.
2268 * dwarf2read.c (load_partial_dies): Update.
2269 * mdebugread.c (parse_partial_symbols): Update.
2270 (handle_psymbol_enumerators): Update.
2271 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2272 * psymtab.c (add_psymbol_to_bcache): Likewise.
2273 (add_psymbol_to_list): Likewise.
2274 * symtab.c (symbol_set_names): Likewise.
2275 * symtab.h (symbol_set_names): Likewise.
2276 * xcoffread.c (scan_xcoff_symtab): Update.
2277
64b2d4a0
TT
22782019-09-11 Tom Tromey <tom@tromey.com>
2279
2280 * symfile-mem.c (symbol_file_add_from_memory): Use
2281 bfd_set_filename.
2282 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2283 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2284
3b00ef10
TT
22852019-09-10 Tom Tromey <tromey@adacore.com>
2286
2287 * dwarf-index-write.c (write_psymbols): Extend error message.
2288 (debug_names::insert): Add Ada code.
2289 (debug_names::write_psymbols): Remove Ada check.
2290 (debug_names) <m_string_obstack>: New member.
2291 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2292 (gdb_index_symbol_name_matcher::matches): Remove.
2293 (mapped_index_base::find_name_components_bounds): Add "lang"
2294 parameter.
2295 (mapped_index_base::build_name_components): Also split names
2296 according to Ada syntax.
2297 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2298 type of "match_callback".
2299 (check_match, check_find_bounds_finds)
2300 (dw2_expand_symtabs_matching): Update.
2301 (dw2_debug_names_iterator): Add new constructor.
2302 (dw2_debug_names_map_matching_symbols): New function.
2303 (dw2_debug_names_expand_symtabs_matching): Update.
2304 (dwarf2_debug_names_functions): Use
2305 dw2_debug_names_map_matching_symbols.
2306
aa391654
TT
23072019-09-10 Tom Tromey <tromey@adacore.com>
2308
2309 * dwarf2read.c (dw2_get_file_names_reader): Add the
2310 CU's file name to the results.
2311
b054970d
TT
23122019-09-10 Tom Tromey <tromey@adacore.com>
2313
2314 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2315 map_matching_symbols. Update.
2316 * dwarf2read.c (dw2_map_matching_symbols): Update.
2317 * psymtab.c (match_partial_symbol): Change type; update.
2318 (psym_map_matching_symbols): Likewise.
2319 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2320 type; update.
2321 * symfile.h (struct quick_symbol_functions)
2322 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2323 Remove "match".
2324
6a3dbf1b
TT
23252019-09-10 Tom Tromey <tromey@adacore.com>
2326
2327 * psymtab.c (map_block): Remove.
2328 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2329 * symtab.c (iterate_over_symbols_terminated): New function.
2330 * symtab.c (iterate_over_symbols_terminated): Declare.
2331
6969f124
TT
23322019-09-10 Tom Tromey <tromey@adacore.com>
2333
2334 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2335 * language.h (struct language_defn) <la_iterate_over_symbols>:
2336 Return bool.
2337 * symtab.c (iterate_over_symbols): Return bool.
2338 * symtab.h (iterate_over_symbols): Return bool.
2339
199b4314
TT
23402019-09-10 Tom Tromey <tromey@adacore.com>
2341
2342 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2343 (add_nonlocal_symbols): Update.
2344 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2345 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2346 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2347 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2348 Change type of "callback". Remove "data".
2349
a084a2a6
AT
2350
23512019-09-09 Ali Tamur <tamur@google.com>
2352
2353 * dwarf2read.c (comp_unit_head): Update comment.
2354 (dwarf2_dwo_name): New function declaration.
2355 (dwarf_unit_type_name): New function declaration.
2356 (read_comp_unit_head): Add support for new compilation units,
2357 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2358 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2359 (currently named as "signature") in their header. Also clarify error
2360 messages.
2361 (lookup_dwo_id): New function. Returns the dwo id of the given
2362 compile unit.
2363 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2364 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2365 functions.
2366 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2367 (dwarf2_dwo_name): Get the dwo name if present.
2368 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2369 purposes.
2370
25a2915e
TT
23712019-09-09 Tom Tromey <tom@tromey.com>
2372
2373 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2374
e4df0874
PW
23752019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2376
2377 * python/python.c (do_start_initialization): Make progname_copy static,
2378 to avoid a leak report.
2379
8634b462
TT
23802019-09-08 Tom Tromey <tom@tromey.com>
2381
2382 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2383
c7f839cb
SM
23842019-09-07 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2387 Change type to gdb::optional<block_enum>.
2388 (dw2_symtab_iter_init): Change block_index parameter type
2389 to gdb::optional<block_enum>.
2390 (dw2_lookup_symbol): Change block_index parameter
2391 type to block_enum.c
2392 (dw2_debug_names_lookup_symbol): Likewise.
2393 * psymtab.c (psym_lookup_symbol): Likewise.
2394 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2395 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2396 Likewise.
2397
ead0e69a
CB
23982019-09-06 Christian Biesinger <cbiesinger@google.com>
2399
2400 * defs.h (relocate_gdb_directory): Change int to bool in
2401 signature and rename flag to relocatable.
2402 * main.c (relocate_path): Likewise.
2403 (relocate_gdb_directory): Likewise.
2404
b16c44de
AM
24052019-09-06 Alan Modra <amodra@gmail.com>
2406
2407 * coffread.c (coff_symfile_read): Constify filename variable.
2408 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2409 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2410 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2411 * solib.c (reload_shared_libraries_1): Likewise.
2412 * symfile.c (reread_symbols): Likewise.
2413 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2414 * solib-darwin.c (darwin_bfd_open): Likewise.
2415 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2416
06ff036e
AB
24172019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2420 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2421
4e962e74
TT
24222019-09-03 Tom Tromey <tromey@adacore.com>
2423
2424 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2425 types.
2426 (has_negatives): Unbias a range type bound.
2427 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2428 * gdbtypes.c (operator==): Handle new field.
2429 (create_range_type): Add "bias" parameter.
2430 (create_static_range_type, resolve_dynamic_range): Update.
2431 * gdbtypes.h (struct range_bounds) <bias>: New member.
2432 (create_range_type): Add bias parameter.
2433 * printcmd.c (print_scalar_formatted): Unbias range types.
2434 * value.c (unpack_long): Unbias range types.
2435 (pack_long): Bias range types.
2436
d90b8f26
AH
24372019-09-02 Alan Hayward <alan.hayward@arm.com>
2438
2439 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2440 probe arguments.
2441
fe01123e
AH
24422019-09-02 Alan Hayward <alan.hayward@arm.com>
2443
2444 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2445 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2446 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2447 (compile_probe_arg): Likewise.
2448 * probe.h (get_argument_count): Likewise.
2449 * solib-svr4.c (solib_event_probe_action): Likewise.
2450 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2451
e661ef01
AH
24522019-09-02 Alan Hayward <alan.hayward@arm.com>
2453
2454 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2455 code to here...
2456 (svr4_create_solib_event_breakpoints): ...from here.
2457
47a536d9
SDJ
24582019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2459
2460 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2461 suffix from warning message.
2462
d6a00eba
TT
24632019-08-30 Tom Tromey <tom@tromey.com>
2464
2465 * tui/tui-winsource.h (struct tui_source_window_base)
2466 <refresh_all>: Don't declare.
2467 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2468 Remove.
2469 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2470 tui_show_locator_content.
2471 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2472 declare.
2473 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2474 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2475 declare.
2476
55b2657b
TT
24772019-08-30 Tom Tromey <tom@tromey.com>
2478
2479 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2480
12a8555a
TT
24812019-08-30 Tom Tromey <tom@tromey.com>
2482
2483 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2484 Remove unnecessary forward declarations.
2485
900ac242
TT
24862019-08-30 Tom Tromey <tom@tromey.com>
2487
2488 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2489 rerender.
2490 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2491 tui_show_locator_content.
2492
99ab33fb
TT
24932019-08-30 Tom Tromey <tom@tromey.com>
2494
2495 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2496 (tui_locator_window::rerender): Rewrite using body of previous
2497 tui_show_locator_content.
2498
e594a5d1
TT
24992019-08-30 Tom Tromey <tom@tromey.com>
2500
2501 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2502 set_locator_fullname>: New methods.
2503 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2504 Rename from tui_set_locator_fullname.
2505 (tui_locator_window::set_locator_info): Rename from
2506 tui_set_locator_info. Return bool.
2507 (tui_update_locator_fullname, tui_show_frame_info): Update.
2508
715bb467
TT
25092019-08-30 Tom Tromey <tom@tromey.com>
2510
2511 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2512
772f3f03
TT
25132019-08-30 Tom Tromey <tom@tromey.com>
2514
2515 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2516 call touchwin.
2517
108e13ab
TT
25182019-08-30 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-wingeneral.c (box_win): Assume win_info and
2521 win_info->handle cannot be NULL.
2522
cdaa6eb4
TT
25232019-08-30 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2526 refresh_window>: Declare.
2527 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2528 resize.
2529 (tui_data_item_window::rerender): Rename from
2530 tui_display_register.
2531 (tui_data_item_window::refresh_window): New method.
2532 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2533 no-op.
2534
89df7f90
TT
25352019-08-30 Tom Tromey <tom@tromey.com>
2536
2537 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2538 regs_column_count, current_group>: Move later. Now private.
2539 <get_current_group>: New method.
2540 * tui/tui-regs.c (tui_reg_command): Update.
2541 * tui/tui-layout.c (tui_set_layout): Update.
2542
1bf2866a
TT
25432019-08-30 Tom Tromey <tom@tromey.com>
2544
2545 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2546 (tui_data_window::rerender): Don't call
2547 check_and_display_highlight_if_needed.
2548 (tui_data_window::refresh_all): Remove call to
2549 erase_data_content.
2550
0670413d
TT
25512019-08-30 Tom Tromey <tom@tromey.com>
2552
2553 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2554 (tui_data_window::display_registers_from)
2555 (tui_data_window::display_reg_element_at_line)
2556 (tui_data_window::display_registers_from_line): Remove checks of
2557 "empty".
2558
18bb55c7
TT
25592019-08-30 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2562 Don't declare.
2563 * tui/tui-regs.c (tui_data_window::show_registers): Call
2564 rerender.
2565 (tui_data_window::rerender): Rename from display_all_data.
2566 (tui_data_window::rerender): Remove old implementation.
2567
1f6d2f10
TT
25682019-08-30 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2571 text.
2572 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2573
16d01f9c
BW
25742019-08-29 Bernhard Wodok <barto@gmx.net>
2575 Sergio Durigan Junior <sergiodj@redhat.com>
2576
2577 PR win32/24284
2578 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2579
d8f27c60
AB
25802019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2583 when searching for types.
2584
1f20c35e
AB
25852019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * f-lang.c (f_language_defn): Use f_print_typedef.
2588 * f-lang.h (f_print_typedef): Declare.
2589 * f-typeprint.c (f_print_typedef): Define.
2590
550105b7
CB
25912019-08-27 Christian Biesinger <cbiesinger@google.com>
2592
2593 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2594
4acfdd20
AB
25952019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * cli/cli-utils.c (info_print_options_defs): Delete.
2598 (make_info_print_options_def_group): Delete.
2599 (extract_info_print_options): Delete.
2600 (info_print_command_completer): Delete.
2601 (info_print_args_help): Add extra parameter, and optionally
2602 include text about -n flag.
2603 * cli/cli-utils.h (struct info_print_options): Delete.
2604 (extract_info_print_options): Delete declaration.
2605 (info_print_command_completer): Delete declaration.
2606 (info_print_args_help): Add extra parameter, extend header
2607 comment.
2608 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2609 search_symbols.
2610 * stack.c (struct info_print_options): New type.
2611 (info_print_options_defs): New file scoped variable.
2612 (make_info_print_options_def_group): New static function.
2613 (info_print_command_completer): New static function.
2614 (info_locals_command): Update to use new local functions.
2615 (info_args_command): Likewise.
2616 (_initialize_stack): Add extra parameter to calls to
2617 info_print_args_help.
2618 * symtab.c (search_symbols): Add extra parameter, use this to
2619 possibly excluse non-debug symbols.
2620 (symtab_symbol_info): Add extra parameter, which is passed on to
2621 search_symbols.
2622 (struct info_print_options): New type.
2623 (info_print_options_defs): New file scoped variable.
2624 (make_info_print_options_def_group): New static function.
2625 (info_print_command_completer): New static function.
2626 (info_variables_command): Update to use local functions, and pass
2627 extra parameter through to symtab_symbol_info.
2628 (info_functions_command): Likewise.
2629 (info_types_command): Pass additional argument through to
2630 symtab_symbol_info.
2631 (rbreak_command): Pass extra argument to search_symbols.
2632 (_initialize_symtab): Add extra arguments for calls to
2633 info_print_args_help, and update help text for 'info variables',
2634 'whereis', and 'info functions' commands.
2635 * symtab.h (search_symbols): Add extra argument to declaration.
2636 * NEWS: Mention new flags.
2637
9aa55206
CB
26382019-08-26 Christian Biesinger <cbiesinger@google.com>
2639
2640 * symtab.c (lookup_static_symbol): Call the new function (and move
2641 it down to be next to lookup_global_symbol).
2642 (struct global_sym_lookup_data): Add block_enum member and rename to...
2643 (struct global_or_static_sym_lookup_data): ...this.
2644 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2645 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2646 (lookup_symbol_global_or_static_iterator_cb): ...this.
2647 (lookup_global_or_static_symbol): New function.
2648 (lookup_global_symbol): Call new function.
2649
5c31b358
TV
26502019-08-26 Tom de Vries <tdevries@suse.de>
2651
2652 PR c++/24852
2653 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2654 when pc_probe.prob == NULL.
2655
23c13d42
SM
26562019-08-25 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2659 variable symbol_linkage to symbol_linkage_.
2660
beadd3e8
SM
26612019-08-25 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2664 represent whether the symbol is static, dynamic, or we don't
2665 know.
2666
e3ec872f
YS
26672019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2668
2669 * gdb/rx-tdep.c (rx_register_names): New.
2670 (rx_register_name): Delete.
2671 (rx_psw_type): Delete.
2672 (rx_fpsw_type): Delete.
2673 (rx_register_type): Delete.
2674 (rx_gdbarch_init): Convert target-descriptions.
2675 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2676 * gdb/features/Makefile: Add rx.xml.
2677 * gdb/features/rx.xml: New.
2678 * gdb/features/rx.c: Generated.
2679 * gdb/NEWS: Mention target description support.
2680
d0509ba4
CB
26812019-08-22 Christian Biesinger <cbiesinger@google.com>
2682
2683 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2684 *slot_ptr.
2685
2d41fa11
SDJ
26862019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2687
2688 * configure.ac: Don't check for 'dlfcn.h' (moved to
2689 gdbsupport/common.m4).
2690 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2691 'gdbsupport/'.
2692 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2693 * compile/compile-c-support.c: Include
2694 'gdbsupport/gdb-dlfcn.h'.
2695 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2696 * gdb-dlfcn.c: Move to...
2697 * gdbsupport/gdb-dlfcn.c: ... here.
2698 * gdb-dlfcn.h: Move to...
2699 * gdbsupport/gdb-dlfcn.h: ... here.
2700
de8af808
SL
27012019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2702
2703 * nios2-tdep.c (struct reg_value): Improve comments. Make
2704 the offset field signed.
2705
27204489
CB
27062019-08-22 Christian Biesinger <cbiesinger@google.com>
2707
2708 * python/lib/gdb/__init__.py (_execute_file): New function.
2709 * python/python.c (python_run_simple_file): Call gdb._execute_file
2710 on Windows.
2711
43771869
AB
27122019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2715 all uses as this was never set to anything but a zero value.
2716
26c957f1
PA
27172019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2718
2719 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2720
c07aae6e
CB
27212019-08-21 Christian Biesinger <cbiesinger@google.com>
2722
2723 * tui/tui-data.h (tui_gen_win_info): Add an =default
2724 move constructor, required by some GCC versions.
2725
3960cb7a
JF
27262019-08-21 Jinke Fan <fanjinke51@yeah.net>
2727
2728 * go32-nat.c (go32_sysinfo): Add hygon_p.
2729
04c72a68
TT
27302019-08-20 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2733 line_from_reg_element_no, first_reg_element_no_inline,
2734 display_all_data, delete_data_content_windows,
2735 erase_data_content>: Now private.
2736
072272ce
TT
27372019-08-20 Tom Tromey <tom@tromey.com>
2738
2739 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2740 (tui_unhighlight_win, tui_highlight_win)
2741 (tui_win_info::make_window): Update.
2742 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2743
973961bd
TT
27442019-08-20 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2747 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2748 (MAX_PID_WIDTH): Move to tui-stack.c.
2749 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2750 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2751 (MAX_PID_WIDTH): Move from tui-data.h.
2752
ab0e1f1a
TT
27532019-08-20 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2756 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2757 (box_win): Update.
2758 (tui_gen_win_info::make_window): Rename from tui_make_window.
2759 (tui_win_info::make_window): New method.
2760 (tui_gen_win_info::make_visible): Update.
2761 * tui/tui-source.c (tui_source_window::set_contents): Update.
2762 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2763 (tui_data_window::display_registers_from): Update.
2764 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2765 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2766 Declare.
2767 <can_box>: Remove.
2768 <title>: Remove.
2769 (struct tui_win_info) <make_window>: Declare.
2770 <can_box>: Now virtual.
2771 <title>: New member.
2772 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2773 * tui/tui-command.c (tui_cmd_window::resize): Update.
2774
100c2bf3
TT
27752019-08-20 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2778 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2779 (tui_data_window::check_register_values): Update.
2780
fa4dc567
TT
27812019-08-20 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-regs.h (struct tui_data_window): Use
2784 DISABLE_COPY_AND_ASSIGN.
2785 <regs_content>: Change type, removing unique_ptr.
2786 <tui_data_window>: Add move constructor.
2787 * tui/tui-regs.c (tui_data_window::show_registers)
2788 (tui_data_window::show_register_group)
2789 (tui_data_window::display_registers_from)
2790 (tui_data_window::display_registers_from)
2791 (tui_data_window::first_data_item_displayed)
2792 (tui_data_window::delete_data_content_windows)
2793 (tui_data_window::rerender, tui_data_window::refresh_window)
2794 (tui_data_window::check_register_values): Update.
2795
ca02d7c8
TT
27962019-08-20 Tom Tromey <tom@tromey.com>
2797
2798 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2799 show_register_group>: Declare.
2800 (tui_show_register_group): Don't declare.
2801 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2802 tui_show_registers.
2803 (tui_data_window::show_register_group): Rename from
2804 tui_show_register_group.
2805 (tui_data_window::check_register_values, tui_reg_command):
2806 Update.
2807 * tui/tui-layout.c (tui_set_layout): Update.
2808
63356bfd
TT
28092019-08-20 Tom Tromey <tom@tromey.com>
2810
2811 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2812 Declare.
2813 (tui_check_register_values): Don't declare.
2814 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2815 from tui_check_register_values.
2816 * tui/tui-hooks.c (tui_register_changed): Update.
2817
42cc14a7
TT
28182019-08-20 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-regs.c (tui_reg_layout): Move later.
2821 (tui_show_registers): Don't enable TUI mode or change layout.
2822
b9ad3686
TT
28232019-08-20 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-regs.h (struct tui_data_item_window)
2826 <~tui_data_item_window>: Remove.
2827 <content>: Now a unique_xmalloc_ptr.
2828 * tui/tui-regs.c (tui_register_format): Return a
2829 unique_xmalloc_ptr.
2830 (tui_get_register): Update.
2831 (~tui_data_item_window): Remove.
2832 (tui_data_window::display_registers_from, tui_display_register):
2833 Update.
2834 * tui/tui-io.h (tui_expand_tabs): Update.
2835 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2836 Remove "col" parameter.
2837
8e114aab
TT
28382019-08-20 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2841 field.
2842 * tui/tui-regs.c (~tui_data_item_window): Update.
2843
1a4f81dd
TT
28442019-08-20 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2847 earlier.
2848
0f8d8876
TT
28492019-08-20 Tom Tromey <tom@tromey.com>
2850
2851 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2852
605dc2c2
TT
28532019-08-20 Tom Tromey <tom@tromey.com>
2854
2855 * tui/tui-source.h (struct tui_source_window): Update.
2856 * tui/tui-regs.c (tui_show_registers): Update.
2857 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2858 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2859 (NO_REGS_STRING): Remove defines.
2860
aedbe3bb
CM
28612019-08-20 Conrad Meyer <cem@FreeBSD.org>
2862
2863 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2864 unnecessary thread walk if remote doesn't support the packet.
2865
7ce8f214
TT
28662019-08-19 Tom Tromey <tromey@adacore.com>
2867
2868 * python/py-value.c (value_has_field): Fix indentation.
2869
f21c2bd7
TT
28702019-08-19 Tom Tromey <tromey@adacore.com>
2871
2872 * printcmd.c (do_one_display, info_display_command): Update.
2873 * block.h (contained_in): Return bool. Add allow_nested
2874 parameter.
2875 * block.c (contained_in): Return bool. Add allow_nested
2876 parameter.
2877
d806ea2d
TT
28782019-08-19 Tom Tromey <tom@tromey.com>
2879
2880 * configure: Rebuild.
2881 * configure.ac: Disallow the combination of -static-libstdc++ and
2882 source highlight.
2883 * source-cache.c (get_language_name): Handle rust.
2884 (source_cache::get_source_lines): Ignore highlighting exceptions.
2885
398fdd60
TT
28862019-08-16 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2889 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2890 (struct tui_source_window_base) <make_visible, refresh_window,
2891 resize>: Remove methods.
2892 <execution_info>: Remove field.
2893 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2894 (tui_show_source_line, tui_source_window_base)
2895 (~tui_source_window_base): Update.
2896 (tui_source_window_base::resize)
2897 (tui_source_window_base::make_visible)
2898 (tui_source_window_base::refresh_window): Remove.
2899 (tui_source_window_base::update_exec_info): Update.
2900 * tui/tui-source.c (tui_source_window::set_contents): Update.
2901 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2902
e699d331
TT
29032019-08-16 Tom Tromey <tom@tromey.com>
2904
2905 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2906 deprecated_query_hook.
2907
bb01dbfc
TT
29082019-08-16 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2911 (tui_update_source_windows_with_line): Update.
2912 * tui/tui-source.h (struct tui_source_window)
2913 <show_symtab_source>: Declare.
2914 (tui_show_symtab_source): Don't declare.
2915 * tui/tui-source.c (tui_show_symtab_source): Rename from
2916 tui_show_symtab_source.
2917
81c82c4b
TT
29182019-08-16 Tom Tromey <tom@tromey.com>
2919
2920 * tui/tui-winsource.h (struct tui_source_window_base)
2921 <set_contents>: Declare.
2922 * tui/tui-winsource.c
2923 (tui_source_window_base::update_source_window_as_is): Update.
2924 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2925 Declare.
2926 (tui_set_source_content): Don't declare.
2927 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2928 tui_set_source_content.
2929 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2930 Declare.
2931 (tui_set_disassem_content): Don't declare.
2932 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2933 tui_set_disassem_content.
2934
2ddaf614
TT
29352019-08-16 Tom Tromey <tom@tromey.com>
2936
2937 * tui/tui-winsource.h (struct tui_source_window_base)
2938 <update_breakpoint_info>: Declare.
2939 (tui_update_breakpoint_info): Don't declare.
2940 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2941 (tui_update_all_breakpoint_info): Update.
2942 (tui_source_window_base::update_breakpoint_info): Rename from
2943 tui_update_breakpoint_info.
2944 (tui_source_window_base::update_exec_info): Update.
2945
017f9828
TT
29462019-08-16 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-winsource.h (struct tui_source_window_base)
2949 <update_source_window>: Declare.
2950 (tui_update_source_window): Don't declare.
2951 * tui/tui-winsource.c
2952 (tui_source_window_base::update_source_window): Rename from
2953 tui_update_source_window.
2954 (tui_source_window_base::rerender): Update.
2955 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2956 * tui/tui-disasm.c (tui_show_disassem)
2957 (tui_show_disassem_and_update_source)
2958 (tui_disasm_window::maybe_update): Update.
2959
ed8358e9
TT
29602019-08-16 Tom Tromey <tom@tromey.com>
2961
2962 * tui/tui-winsource.h (struct tui_source_window_base)
2963 <update_source_window_as_is>: Declare.
2964 (tui_update_source_window_as_is): Don't declare.
2965 * tui/tui-winsource.c (tui_update_source_window): Update
2966 (tui_source_window_base::update_source_window_as_is): Rename from
2967 tui_update_source_window_as_is.
2968 (tui_source_window_base::refill): Update.
2969 * tui/tui-source.c (tui_show_symtab_source): Update.
2970 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2971 Update.
2972
20149b6b
TT
29732019-08-16 Tom Tromey <tom@tromey.com>
2974
2975 * tui/tui-winsource.h (tui_update_source_window)
2976 (tui_update_source_window_as_is): Remove "noerror" parameter.
2977 * tui/tui-winsource.c (tui_update_source_window)
2978 (tui_update_source_window_as_is): Remove "noerror" parameter.
2979 (tui_update_source_windows_with_addr)
2980 (tui_update_source_windows_with_line)
2981 (tui_source_window_base::rerender)
2982 (tui_source_window_base::refill): Update.
2983 * tui/tui-source.h (tui_set_source_content)
2984 (tui_show_symtab_source): Remove "noerror" parameter.
2985 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2986 parameter.
2987 (tui_show_symtab_source): Likewise.
2988 (tui_source_window::maybe_update): Update.
2989 * tui/tui-disasm.c (tui_show_disassem)
2990 (tui_show_disassem_and_update_source)
2991 (tui_disasm_window::do_scroll_vertical)
2992 (tui_disasm_window::maybe_update): Update.
2993
2d83e710
TT
29942019-08-16 Tom Tromey <tom@tromey.com>
2995
2996 * tui/tui.c (tui_is_window_visible): Update.
2997 * tui/tui-wingeneral.c (tui_make_window)
2998 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2999 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3000 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3001 (tui_set_win_height_command, parse_scrolling_args): Update.
3002 * tui/tui-source.c (tui_source_window::style_changed): Update.
3003 * tui/tui-regs.c (tui_show_registers)
3004 (tui_data_window::first_data_item_displayed)
3005 (tui_data_window::delete_data_content_windows)
3006 (tui_check_register_values, tui_reg_command): Update.
3007 * tui/tui-disasm.c (tui_show_disassem): Update.
3008 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3009 method.
3010 <is_visible>: Remove field.
3011 * tui/tui-data.c (tui_next_win, tui_prev_win)
3012 (tui_delete_invisible_windows): Update.
3013
d4ab829a
TT
30142019-08-16 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-winsource.h (struct tui_source_window_base)
3017 <m_has_locator>: Remove.
3018 * tui/tui-layout.c (show_source_disasm_command, show_data)
3019 (show_source_or_disasm_and_command): Update.
3020
aa7ca1bb
AH
30212019-08-16 Alan Hayward <alan.hayward@arm.com>
3022
3023 * NEWS (Other MI changes): New subsection.
3024 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3025 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3026 * arch-utils.c (default_get_pc_address_flags): New function.
3027 * arch-utils.h (default_get_pc_address_flags): New declaration.
3028 * gdbarch.sh: Add get_pc_address_flags.
3029 * gdbarch.c: Regenerate.
3030 * gdbarch.h: Likewise.
3031 * stack.c (print_pc): New function.
3032 (print_frame_info) (print_frame): Call print_pc.
3033
6eac171f
TV
30342019-08-16 Tom de Vries <tdevries@suse.de>
3035
3036 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3037 print_objfile_section_info.
3038
3df505f6
TT
30392019-08-15 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3042 calling update_cmdwin_start_line.
3043 * tui/tui-winsource.h (struct tui_source_window_base)
3044 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3045 <rerender>: Declare.
3046 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3047 Call rerender.
3048 (tui_source_window_base::set_new_height): Remove.
3049 (tui_source_window_base::rerender): Rename from
3050 do_make_visible_with_new_height.
3051 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3052 resize method.
3053 (tui_win_info::make_invisible_and_set_new_height)
3054 (tui_win_info::make_visible_with_new_height): Remove.
3055 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3056 Declare.
3057 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3058 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3059 do_make_visible_with_new_height>: Don't declare.
3060 <rerender>: Declare.
3061 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3062 set_new_height.
3063 (tui_data_window::do_make_visible_with_new_height): Remove.
3064 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3065 call tui_show_locator_content.
3066 (tui_gen_win_info::resize): Call rerender.
3067 (show_source_or_disasm_and_command): Don't call
3068 tui_show_locator_content.
3069 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3070 method.
3071 (struct tui_win_info) <rerender>: Declare.
3072 <set_new_height, make_invisible_and_set_new_height,
3073 make_visible_with_new_height>: Don't declare.
3074 * tui/tui-data.c (tui_win_list::rerender): New method.
3075 * tui/tui-command.h (struct tui_cmd_window)
3076 <do_make_visible_with_new_height>: Don't declare.
3077 * tui/tui-command.c
3078 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3079
272560b5
TT
30802019-08-15 Tom Tromey <tromey@adacore.com>
3081
3082 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3083 * ada-lang.c (ada_enum_name): Likewise.
3084
08235187
CB
30852019-08-15 Christian Biesinger <cbiesinger@google.com>
3086
3087 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3088 leading underscore.
3089 (GdbOutputErrorFile): Likewise.
3090 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3091 accordingly.
3092 (execute_unwinders): Rename to have a leading underscore.
3093 (auto_load_packages): Likewise.
3094 (global scope): Adjust call to auto_load_packages accordingly.
3095 (GdbSetPythonDirectory): Likewise.
3096 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3097 instead of execute_unwinders.
3098
db502012
TT
30992019-08-15 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3102 (show_data): Don't change window visibility.
3103 (tui_gen_win_info::resize): Remove special case for command
3104 window. Use wresize, when available.
3105 (show_source_or_disasm_and_command): Don't change window
3106 visibility.
3107 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3108 <make_visible>: New method.
3109 * tui/tui-command.c (tui_cmd_window::resize): New method.
3110
3891b65e
TT
31112019-08-15 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3114 (struct tui_source_windows): New.
3115 * tui/tui-winsource.c (tui_display_main): Update.
3116 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3117 (new_height_ok, parse_scrolling_args): Update.
3118 * tui/tui-layout.c (show_layout, show_data): Update.
3119 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3120 (tui_add_to_source_windows): Don't declare.
3121 * tui/tui-data.c (source_windows, tui_source_windows)
3122 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3123
ee556432
TT
31242019-08-15 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3127 Rename from reset.
3128 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3129 * tui/tui-layout.c (show_source_disasm_command, show_data):
3130 Update.
3131 (tui_gen_win_info::resize): Rename.
3132 (show_source_or_disasm_and_command): Update.
3133 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3134 reset.
3135
46f438e3
TT
31362019-08-15 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3139 * tui/tui-interp.c (tui_interp::init): Don't call
3140 tui_initialize_static_data.
3141 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3142
f4ce562c
TT
31432019-08-15 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3146 examine tui_win_list.
3147
c398c3d0
TT
31482019-08-15 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3151 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3152 tui_clear_source_content.
3153 (tui_clear_source_content): Remove.
3154 (tui_source_window_base::do_erase_source_content): Hoist call to
3155 content.clear().
3156 * tui/tui-stack.c (tui_show_frame_info): Don't call
3157 tui_clear_source_content.
3158
e25d2004
TT
31592019-08-15 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-winsource.h (struct tui_source_window_base)
3162 <do_erase_source_content>: New method.
3163 <erase_source_content>: New method.
3164 (tui_erase_source_content): Don't declare.
3165 * tui/tui-winsource.c (tui_clear_source_content): Update.
3166 (tui_source_window_base::do_erase_source_content): Rename from
3167 tui_erase_source_content.
3168 (tui_source_window_base::show_source_content): Update.
3169 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3170 * tui/tui-source.h (struct tui_source_window)
3171 <erase_source_content>: New method.
3172 * tui/tui-disasm.h (struct tui_disasm_window)
3173 <erase_source_content>: New method.
3174
002f15c2
TT
31752019-08-15 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3178 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3179 constructor.
3180 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3181 * tui/tui-source.c (tui_set_source_content): Update.
3182 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3183
c9033fe8
TT
31842019-08-15 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3187 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3188 tui-source.c.
3189 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3190 Declare.
3191 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3192 method.
3193 (tui_source_window::maybe_update): Update.
3194
088f37dd
TT
31952019-08-15 Tom Tromey <tom@tromey.com>
3196
3197 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3198 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3199 tui-disasm.c.
3200 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3201 Declare.
3202 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3203 method.
3204 (tui_disasm_window::maybe_update): Update.
3205
a54700c6
TT
32062019-08-15 Tom Tromey <tom@tromey.com>
3207
3208 * tui/tui-winsource.h (struct tui_source_window_base)
3209 <maybe_update>: Declare.
3210 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3211 method.
3212 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3213 Declare.
3214 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3215 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3216 Declare.
3217 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3218
e2a678a5
TT
32192019-08-15 Tom Tromey <tom@tromey.com>
3220
3221 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3222
f2dda477
TT
32232019-08-15 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-wingeneral.c: Include tui-stack.h.
3226 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3227 (struct tui_locator_window): Move from tui-data.h.
3228 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3229 (tui_initialize_static_data): Move from tui-data.c.
3230 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3231 (struct tui_locator_window): Move to tui-stack.c.
3232 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3233 (tui_initialize_static_data): Move to tui-stack.c.
3234
ed4a1084
TT
32352019-08-15 Tom Tromey <tom@tromey.com>
3236
3237 * tui/tui-layout.c (show_source_disasm_command)
3238 (show_source_or_disasm_and_command): Use make_visible method, not
3239 tui_make_window.
3240 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3241 Remove.
3242
65962b20
TT
32432019-08-15 Tom Tromey <tom@tromey.com>
3244
3245 * tui/tui-wingeneral.h (tui_make_window): Update.
3246 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3247 parameter.
3248 (tui_gen_win_info::make_visible): Update.
3249 * tui/tui-regs.c (tui_data_window::display_registers_from):
3250 Update.
3251 * tui/tui-layout.c (show_source_disasm_command)
3252 (show_source_or_disasm_and_command): Update.
3253 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3254 (enum tui_box): Remove.
3255 (struct tui_win_info) <can_box>: New method.
3256 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3257 method.
3258
2208ee91
TV
32592019-08-15 Tom de Vries <tdevries@suse.de>
3260
3261 * linux-nat-trad.c: Include gdbarch.h.
3262
75faf5c4
AH
32632019-08-14 Alan Hayward <alan.hayward@arm.com>
3264
3265 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3266 register sizes.
3267
b1c896b3
TT
32682019-08-14 Tom Tromey <tromey@adacore.com>
3269
3270 * darwin-nat.c: Include gdbarch.h.
3271 * darwin-nat-info.c: Include gdbarch.h.
3272
6405cd73
TT
32732019-08-13 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3276 Remove.
3277 * tui/tui-data.c (tui_initialize_static_data): Update.
3278
5216580d
TT
32792019-08-13 Tom Tromey <tom@tromey.com>
3280
3281 * tui/tui-winsource.h (struct tui_exec_info_window)
3282 <~tui_exec_info_window, maybe_allocate_content, get_content,
3283 m_content>: Remove.
3284 (struct tui_source_window_base) <set_exec_info_content,
3285 show_exec_info_content>: Don't declare.
3286 * tui/tui-winsource.c
3287 (tui_exec_info_window::maybe_allocate_content): Remove.
3288 (tui_source_window_base::update_exec_info): Rename from
3289 set_exec_info_content.
3290 (tui_source_window_base::show_exec_info_content)
3291 (tui_source_window_base::update_exec_info): Remove.
3292
93858ad3
TT
32932019-08-13 Tom Tromey <tom@tromey.com>
3294
3295 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3296 declare.
3297 * tui/tui-winsource.c (tui_update_source_window_as_is)
3298 (tui_update_source_windows_with_addr, tui_erase_source_content):
3299 Update.
3300 (tui_clear_exec_info_content): Remove.
3301
e321e7ce
TT
33022019-08-13 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3305 declare.
3306 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3307 call tui_erase_exec_info_content.
3308 (tui_clear_exec_info_content): Rename from
3309 tui_erase_exec_info_content.
3310 (tui_clear_exec_info_content): Delete.
3311
8270ac62
TT
33122019-08-13 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-winsource.h (struct tui_source_window_base)
3315 <show_exec_info_content>: Declare.
3316 (tui_show_exec_info_content): Don't declare.
3317 * tui/tui-winsource.c
3318 (tui_source_window_base::show_exec_info_content): Rename from
3319 tui_show_exec_info_content.
3320 (tui_source_window_base::update_exec_info): Update.
3321
7b56485d
TT
33222019-08-13 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3325 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3326 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3327 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3328 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3329 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3330 ... here.
3331
7ba913dc
TT
33322019-08-13 Tom Tromey <tom@tromey.com>
3333
3334 * tui/tui-winsource.h (struct tui_source_window_base)
3335 <update_exec_info>: Declare.
3336 (tui_update_exec_info): Don't declare.
3337 * tui/tui-winsource.c (tui_update_source_window_as_is)
3338 (tui_source_window_base::refresh_all)
3339 (tui_update_all_breakpoint_info): Update.
3340 (tui_source_window_base::update_exec_info): Rename from
3341 tui_update_exec_info.
3342 * tui/tui-stack.c (tui_show_frame_info): Update.
3343
37a4a131
TT
33442019-08-13 Tom Tromey <tom@tromey.com>
3345
3346 * tui/tui-winsource.h (struct tui_source_window_base)
3347 <set_exec_info_content>: Declare.
3348 (tui_set_exec_info_content): Don't declare.
3349 * tui/tui-winsource.c
3350 (tui_source_window_base::set_exec_info_content): Rename from
3351 tui_set_exec_info_content.
3352 (tui_update_exec_info): Update.
3353
0bd27e07
TT
33542019-08-13 Tom Tromey <tom@tromey.com>
3355
3356 * tui/tui-winsource.h (struct tui_source_window_base)
3357 <show_source_content>: Declare.
3358 (tui_show_source_content): Don't declare.
3359 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3360 (tui_source_window_base::show_source_content): Rename from
3361 tui_show_source_content.
3362 (tui_source_window_base::refresh_all): Update.
3363 * tui/tui-layout.c (show_source_disasm_command)
3364 (show_source_or_disasm_and_command): Update.
3365
b4ef5aeb
TT
33662019-08-13 Tom Tromey <tom@tromey.com>
3367
3368 * tui/tui-winsource.c (tui_erase_source_content)
3369 (tui_show_source_content, tui_source_window_base::refresh_all):
3370 Update.
3371 * tui/tui-wingeneral.h
3372 (tui_check_and_display_highlight_if_needed): Don't declare.
3373 * tui/tui-wingeneral.c
3374 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3375 check_and_display_highlight_if_needed.
3376 * tui/tui-win.c (tui_rehighlight_all)
3377 (tui_win_info::make_visible_with_new_height): Update.
3378 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3379 (tui_data_window::erase_data_content)
3380 (tui_data_window::display_all_data): Update.
3381 * tui/tui-data.h (struct tui_win_info)
3382 <check_and_display_highlight_if_needed>: Declare.
3383
fede5273
TT
33842019-08-13 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui-win.c (tui_resize_all): Call
3387 tui_delete_invisible_windows.
3388 * tui/tui-layout.c (show_layout): Call
3389 tui_delete_invisible_windows.
3390 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3391 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3392
22c3f490
TT
33932019-08-13 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3396 tui_add_win_to_layout.
3397
16cb7910
TT
33982019-08-13 Tom Tromey <tom@tromey.com>
3399
3400 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3401 * tui/tui-layout.c (tui_default_win_height): Now static.
3402
cc0c3ffb
TT
34032019-08-13 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3406 single switch.
3407 (show_source_disasm_command, show_source_or_disasm_and_command):
3408 Don't check current layout.
3409
3f3ffe54
TT
34102019-08-13 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-wingeneral.c (make_all_visible): Remove.
3413 (tui_make_all_invisible): Simplify.
3414 * tui/tui-layout.c (tui_make_all_invisible): Move from
3415 tui-wingeneral.c; simplify.
3416 (show_layout): Hoist call to tui_make_all_invisible.
3417 (show_data): Don't call tui_make_all_invisible.
3418
69258091
TT
34192019-08-13 Tom Tromey <tom@tromey.com>
3420
3421 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3422 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3423
62cf57fe
TT
34242019-08-13 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3427 tui-data.c.
3428 (show_source_disasm_command, show_data)
3429 (show_source_or_disasm_and_command): Don't use
3430 tui_set_current_layout_to.
3431 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3432 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3433 tui-layout.c.
3434 (tui_set_current_layout_to): Remove.
3435
2afade5d
TT
34362019-08-13 Tom Tromey <tom@tromey.com>
3437
3438 * tui/tui-layout.c (tui_set_layout): Update.
3439 * tui/tui-data.h (struct tui_layout_def): Remove.
3440 (tui_layout_def): Don't declare.
3441 * tui/tui-data.c (layout_def): Remove.
3442 (tui_layout_def): Remove.
3443
a3504e96
TT
34442019-08-13 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-winsource.h (struct tui_source_window_base)
3447 <clear_detail>: No longer "override".
3448 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3449 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3450 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3451 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3452 Remove.
3453 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3454
29c92911
TT
34552019-08-13 Tom Tromey <tromey@adacore.com>
3456
3457 * tracepoint.c: Don't include readline.h or history.h.
3458
86c6b807
TT
34592019-08-12 Tom Tromey <tom@tromey.com>
3460
3461 * configure: Rebuild.
3462 * configure.ac: Check for readline 7.
3463 * NEWS: Mention readline 7 requirement.
3464 * README: Update.
3465
5db2718c
TT
34662019-08-12 Tom Tromey <tom@tromey.com>
3467
3468 * mingw-hdep.c (gdb_select): Remove readline hack.
3469
dac36daf
PFC
34702019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3471
3472 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3473 when the function fails.
3474
1022c627
AA
34752019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3476
3477 * s390-tdep.c (s390_type_align): New function.
3478 (s390_gdbarch_init): Set it as type_align gdbarch method.
3479
eba4caf2
TV
34802019-08-09 Tom de Vries <tdevries@suse.de>
3481
3482 PR gdb/24591
3483 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3484 pc_low with relocation offset.
3485
123cd851
TT
34862019-08-07 Tom Tromey <tromey@adacore.com>
3487
3488 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3489 (print_frame_args): Update.
3490 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3491 Update.
3492 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3493 * frame.h (struct frame_arg): Add initializers.
3494 <error>: Now a unique_xmalloc_ptr.
3495
3d31bc39
AH
34962019-08-07 Alan Hayward <alan.hayward@arm.com>
3497
3498 * NEWS: Expand the Pointer Authentication entry.
3499 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3500 (aarch64_frame_unmask_lr): ... to this.
3501 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3502 Call aarch64_frame_unmask_lr.
3503 * frame.c (struct frame_info): Add "masked" variable.
3504 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3505 (fprint_frame): Check for masked pc.
3506 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3507 declarations.
3508 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3509 * stack.c (print_frame): Check for masked pc.
3510
0cf9feb9
TT
35112019-08-06 Tom Tromey <tom@tromey.com>
3512
3513 * stabsread.c (patch_block_stabs, read_one_struct_field)
3514 (read_enum_type): Use obstack_strndup.
3515 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3516 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3517 * dwarf2read.c (guess_full_die_structure_name)
3518 (anonymous_struct_prefix): Use obstack_strndup.
3519 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3520 * c-exp.y (yylex): Use obstack_strndup.
3521 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3522 (write_var_or_type): Use obstack_strndup.
3523
efba19b0
TT
35242019-08-06 Tom Tromey <tom@tromey.com>
3525
3526 * symfile.c (reread_symbols): Use obstack_strdup.
3527 * stabsread.c (read_type): Use obstack_strdup.
3528 * gdb_obstack.h (obstack_strdup): New overload.
3529 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3530 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3531 (dwarf2_canonicalize_name): Use obstack_strdup.
3532 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3533 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3534 Use obstack_strdup.
3535
f25102f7
TT
35362019-08-06 Tom Tromey <tom@tromey.com>
3537
3538 * gdb_obstack.h (obstack_strdup): Define.
3539 * gdb_obstack.c (obstack_strdup): Don't define.
3540
021887d8
TT
35412019-08-06 Tom Tromey <tom@tromey.com>
3542
3543 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3544 obstack_strdup.
3545 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3546 obstack_strdup.
3547 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3548 * stabsread.c (common_block_start): Use obstack_strdup.
3549 * objfiles.c (set_objfile_main_name, objfile): Use
3550 obstack_strdup.
3551 * namespace.c (add_using_directive): Use obstack_strdup.
3552 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3553 * jit.c (finalize_symtab): Use obstack_strdup.
3554 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3555 (guess_partial_die_structure_name, partial_die_info::fixup)
3556 (dwarf2_name): Use obstack_strdup.
3557 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3558 obstack_strdup.
3559 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3560 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3561 obstack_strdup.
3562 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3563
d2834edc
PW
35642019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3565
3566 * unittests/help-doc-selftests.c: New file.
3567 * Makefile.in: Add the new file.
3568
590042fc
PW
35692019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3570
3571 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3572 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3573 the full first line, except when FOR_VALUE_PREFIX. In this case,
3574 the trailing '.' is not output, and the first character is uppercased.
3575 (print_help_for_command): Update call to print_doc_line.
3576 (print_doc_of_command): Likewise.
3577 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3578 * cli/cli-option.c (append_indented_doc): Do not append newline.
3579 (build_help_option): Append newline after first appended_indented_doc
3580 only if a second call is done.
3581 (build_help): Append 2 new lines before each option, except the first
3582 one.
3583 * compile/compile.c (_initialize_compile): Add new lines after
3584 %OPTIONS%, when not at the end of the help.
3585 Change help doc or code
3586 producing the help doc to respect the invariants.
3587 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3588 Also removed the new line after 'Options:', as all other commands
3589 do not put an empty line between 'Options:' and the first option.
3590 * printcmd.c (_initialize_printcmd): Likewise.
3591 * stack.c (_initialize_stack): Likewise.
3592 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3593 incorrectly telling COMMAND is optional.
3594 * ada-lang.c (_initialize_ada_language): Change help doc or code
3595 producing the help doc to respect the invariants.
3596 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3597 * breakpoint.c (_initialize_breakpoint): Likewise.
3598 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3599 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3600 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3601 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3602 _initialize_cli_style): Likewise.
3603 * corelow.c (core_target_info): Likewise.
3604 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3605 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3606 * filesystem.c (_initialize_filesystem): Likewise.
3607 * frame.c (_initialize_frame): Likewise.
3608 * gnu-nat.c (add_task_commands): Likewise.
3609 * infcall.c (_initialize_infcall): Likewise.
3610 * infcmd.c (_initialize_infcmd): Likewise.
3611 * interps.c (_initialize_interpreter): Likewise.
3612 * language.c (_initialize_language): Likewise.
3613 * linux-fork.c (_initialize_linux_fork): Likewise.
3614 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3615 * maint.c (_initialize_maint_cmds): Likewise.
3616 * memattr.c (_initialize_mem): Likewise.
3617 * printcmd.c (_initialize_printcmd): Likewise.
3618 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3619 _RegEx): Likewise.
3620 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3621 * record-btrace.c (_initialize_record_btrace): Likewise.
3622 * record-full.c (_initialize_record_full): Likewise.
3623 * record.c (_initialize_record): Likewise.
3624 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3625 * regcache.c (_initialize_regcache): Likewise.
3626 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3627 _initialize_remote): Likewise.
3628 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3629 * serial.c (_initialize_serial): Likewise.
3630 * skip.c (_initialize_step_skip): Likewise.
3631 * source.c (_initialize_source): Likewise.
3632 * stack.c (_initialize_stack): Likewise.
3633 * symfile.c (_initialize_symfile): Likewise.
3634 * symtab.c (_initialize_symtab): Likewise.
3635 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3636 * top.c (init_main): Likewise.
3637 * tracefile-tfile.c (tfile_target_info): Likewise.
3638 * tracepoint.c (_initialize_tracepoint): Likewise.
3639 * tui/tui-win.c (_initialize_tui_win): Likewise.
3640 * utils.c (add_internal_problem_command): Likewise.
3641 * valprint.c (value_print_option_defs): Likewise.
3642
404f2902
FCE
36432019-08-06 Frank Ch. Eigler <fche@redhat.com>
3644
3645 PR build/24886
3646 * configure.ac: Drop enable-libmcheck support.
3647 * configure, config.in: Rebuild.
3648 * libmcheck.m4: Remove.
3649 * acinclude.m4: Don't include it.
3650 * Makefile.in: Don't distribute it.
3651 * top.c (print_gdb_configuration): Don't mention it.
3652
046bebe1
TT
36532019-08-06 Tom Tromey <tom@tromey.com>
3654
3655 * utils.c (set_output_style): Sometimes pass stream to
3656 emit_style_escape.
3657 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3658 * record-btrace.c (btrace_insn_history): Update.
3659 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3660 method.
3661 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3662 Update initializers.
3663 <m_uiout>: New field.
3664 <m_di>: Move lower.
3665 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3666 Remove "uiout" parameter.
3667 (dump_insns): Update.
3668 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3669 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3670
ddbcedf5
CB
36712019-08-06 Christian Biesinger <cbiesinger@google.com>
3672
3673 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3674 (error_in_psymtab_expansion): Likewise.
3675 (lookup_symbol_via_quick_fns): Likewise.
3676 (basic_lookup_transparent_type_quick): Likewise.
3677 (basic_lookup_transparent_type_1): Likewise.
3678
b08b16c8
TT
36792019-08-06 Tom Tromey <tromey@adacore.com>
3680
3681 * source.c (last_source_error): Now bool.
3682 (print_source_lines_base): Make "noprint" bool. Only open
3683 source file when last_source_visited changes.
3684
cb44333d
TT
36852019-08-06 Tom Tromey <tromey@adacore.com>
3686
3687 * annotate.c (annotate_source_line): Use g_source_cache.
3688 * source-cache.c (source_cache::get_plain_source_lines): Change
3689 parameters. Populate m_offset_cache.
3690 (source_cache::ensure): New method.
3691 (source_cache::get_line_charpos): New method.
3692 (extract_lines): Move lower. Change parameters.
3693 (source_cache::get_source_lines): Move lower.
3694 * source-cache.h (class source_cache): Update comment.
3695 <get_line_charpos>: New method.
3696 <get_source_lines>: Update comment.
3697 <clear>: Clear m_offset_cache.
3698 <get_plain_source_lines>: Change parameters.
3699 <ensure>: New method
3700 <m_offset_cache>: New member.
3701 * source.c (forget_cached_source_info_for_objfile): Update.
3702 (info_source_command): Use g_source_cache.
3703 (find_source_lines, open_source_file_with_line_charpos): Remove.
3704 (print_source_lines_base, search_command_helper): Use g_source_cache.
3705 * source.h (open_source_file_with_line_charpos): Don't declare.
3706 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3707 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3708 Use g_source_cache.
3709
872dceaa
TT
37102019-08-06 Tom Tromey <tromey@adacore.com>
3711
3712 * source-cache.c (source_cache::get_plain_source_lines):
3713 Remove "first_line" and "last_line" parameters.
3714 (source_cache::get_source_lines): Cache plain text.
3715 * source-cache.h (class source_cache)
3716 <get_plain_source_lines>: Update.
3717
269249d9
TT
37182019-08-06 Tom Tromey <tromey@adacore.com>
3719
3720 * source-cache.c (extract_lines): No longer a method.
3721 Changed type of parameter. Include final newline.
3722 (selftests::extract_lines_test): New function.
3723 (_initialize_source_cache): Likewise.
3724 * source-cache.h (class source_cache)
3725 <extract_lines>: Don't declare.
3726
c0e8dcd8
TT
37272019-08-06 Tom Tromey <tromey@adacore.com>
3728
3729 * breakpoint.c (init_breakpoint_sal): Update.
3730 (breakpoint): Update.
3731 * breakpoint.h (struct breakpoint) <filter>: Now a
3732 unique_xmalloc_ptr.
3733
0b27c27d
CB
37342019-08-05 Christian Biesinger <cbiesinger@google.com>
3735
3736 * NEWS: Mention dictionary access on blocks.
3737 * python/py-block.c (blpy_getitem): New function.
3738 (block_object_as_mapping): New struct.
3739 (block_object_type): Use new struct for tp_as_mapping field.
3740
4ee94178
CB
37412019-08-05 Christian Biesinger <cbiesinger@google.com>
3742
3743 * objfiles.h (objfile): Add a comment describing partial symbols.
3744
8abfcabc
TT
37452019-08-05 Tom Tromey <tromey@adacore.com>
3746
3747 * compile/compile.c (_initialize_compile): Use _(), not N_().
3748 * thread.c (_initialize_thread): Use _(), not N_().
3749 * stack.c (_initialize_stack): Use _(), not N_().
3750 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3751
2b79f376
SM
37522019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * dwarf2read.c (struct dw2_symtab_iterator):
3755 <want_specific_block>: Remove.
3756 <block_index>: Change type to gdb::optional.
3757 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3758 change type of BLOCK_INDEX parameter to gdb::optional.
3759 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3760 (dw2_lookup_symbol): Don't pass argument for
3761 WANT_SPECIFIC_BLOCK.
3762 (dw2_expand_symtabs_for_function): Don't pass argument for
3763 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3764 (class dw2_debug_names_iterator)
3765 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3766 parameter, change BLOCK_INDEX type to gdb::optional.
3767 <m_want_specific_block>: Remove.
3768 <m_block_index>: Change type to gdb::optional.
3769 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3770 gdb::optional. Re-write in function of gdb::optional.
3771 (dw2_debug_names_lookup_symbol): Don't pass argument for
3772 WANT_SPECIFIC_BLOCK.
3773 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3774 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3775 BLOCK_INDEX.
3776
ae60f04e
PW
37772019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3778
3779 * NEWS: Mention changes to "info sources" command.
3780
28cd9371
PW
37812019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3782
3783 * symtab.c (filename_partial_match_opts): New struct type.
3784 (struct output_source_filename_data): New members
3785 regexp, c_regexp, partial_match.
3786 (output_source_filename): Use new members to decide to print file.
3787 (info_sources_option_defs): New variable.
3788 (make_info_sources_options_def_group, print_info_sources_header,
3789 info_sources_command_completer):
3790 New functions.
3791 (info_sources_command): Read new optional arguments.
3792 (_initialize_symtab): Update info sources help.
3793
ca683e3a
AO
37942019-08-02 Alexandre Oliva <oliva@adacore.com>
3795
3796 * ada-lang.c (exception_support_info_v0): Renamed from...
3797 (default_exception_support_info): ... this. Create new
3798 definition for v1.
3799 (ada_has_this_exception_support): Look up catch_handlers_sym.
3800 (ada_exception_support_info_sniffer): Try v0 after default.
3801
f1264162
TT
38022019-08-01 Tom Tromey <tromey@adacore.com>
3803
3804 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3805 gdbarch.h.
3806
0a7b2485
CB
38072019-08-01 Christian Biesinger <cbiesinger@google.com>
3808
3809 * s12z-tdep.c: Fix include path for s12z-opc.h.
3810
c6bdbeb7
AH
38112019-08-01 Alan Hayward <alan.hayward@arm.com>
3812
3813 * NEWS: Require GNU make 3.82.
3814
a2bd7b82
TT
38152019-07-16 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3818 declare.
3819
aa3b6533
TT
38202019-07-30 Tom Tromey <tromey@adacore.com>
3821
3822 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3823
a1530dc7
KB
38242019-07-30 Kevin Buettner <kevinb@redhat.com>
3825
3826 * printcmd.c (print_address_symbolic): Print negative offsets.
3827 (build_address_symbolic): Force signed arithmetic when computing
3828 offset.
3829
2906593f
CB
38302019-07-30 Christian Biesinger <cbiesinger@google.com>
3831
3832 PR/24474: Add a function to lookup static variables.
3833 * NEWS: Mention this new function.
3834 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3835 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3836 * python/python.c (python_GdbMethods): Add new function.
3837
c620ed88
CB
38382019-07-29 Christian Biesinger <cbiesinger@google.com>
3839
3840 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3841 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3842 (objfpy_lookup_static_symbol): New function.
3843 (objfile_object_methods): Add new functions.
3844
bc4268a5
PW
38452019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3846
3847 * NEWS: Mention 'set|show print frame-info'. Mention new
3848 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3849 backtrace argument. Mention that python frame filtering code
3850 is now consistent with what 'backtrace' command prints.
3851
4b5e8d19
PW
38522019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3853
3854 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3855 comments.
3856 (print_frame_info_auto, print_frame_info_source_line,
3857 print_frame_info_location, print_frame_info_source_and_location,
3858 print_frame_info_location_and_address, print_frame_info_short_location):
3859 New declarations.
3860 (struct frame_print_options): New member print_frame_info.
3861 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3862 * stack.h (get_user_print_what_frame_info): New declaration.
3863 (frame_show_address): New declaration.
3864 * stack.c (print_frame_arguments_choices): New value 'presence'.
3865 (print_frame_info_auto, print_frame_info_source_line,
3866 print_frame_info_location, print_frame_info_source_and_location,
3867 print_frame_info_location_and_address, print_frame_info_short_location,
3868 print_frame_info_choices, print_frame_info_print_what): New definitions.
3869 (print_frame_args): Only print dots for args if print frame-arguments
3870 is 'presence'.
3871 (frame_print_option_defs): New element for "frame-info".
3872 (get_user_print_what_frame_info): New function.
3873 (frame_show_address): Make non static. Move comment to stack.h.
3874 (print_frame_info_to_print_what): New function.
3875 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3876 to decide what to print.
3877 (backtrace_command_1): Handle the new print_frame_arguments_presence
3878 value.
3879 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3880 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3881 (py_print_frame): In non-mi mode, use LOCATION as default for
3882 print_what, similarly to frame information printed directly by
3883 backtrace command. Handle frame-info user option in non MI mode.
3884
6bdfee81
KB
38852019-07-27 Kevin Buettner <kevinb@redhat.com>
3886
3887 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3888 Add case for debugging 32-bit target on 64-bit host. Revise
3889 comment.
3890
98a617f8
KB
38912019-07-27 Kevin Buettner <kevinb@redhat.com>
3892
3893 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3894 instead of find_function_entry_range_from_pc.
3895
567238c9
KB
38962019-07-27 Kevin Buettner <kevinb@redhat.com>
3897
3898 * stack.c (find_frame_funname): Remove code which preferred
3899 minsym over symtab sym in "certain pathological cases".
3900
2dc80cf8
KB
3901 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3902 parameter. Change type of "do_demangle" to bool.
3903 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3904 Pass suitable "prefer_sym_over_minsym" flag to
3905 build_address_symbolic(). Don't output "+" for negative offsets.
3906 * printcmd.c (print_address_symbolic): Update invocation of
3907 build_address_symbolic to include a "prefer_sym_over_minsym"
3908 flag.
3909 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3910 Restrict cases in which use of minimal symbol is preferred to that
3911 of a found symbol. Update comments.
3912
1aff7173
KB
3913 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3914 for entry pc when entry pc is out of range for that FDE.
3915
89b085ac
BC
39162019-07-26 Brian Callahan <bcallah@openbsd.org>
3917
3918 PR gdb/24839:
3919 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3920 type.
3921
f32feb4a
CB
39222019-07-25 Christian Biesinger <cbiesinger@google.com>
3923
3924 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3925 this function's Python signature.
3926
3927
39282019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3929
3930 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3931 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3932 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3933 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3934 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3935
3936
c54e4253
YS
39372019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3938
3939 * h8300-tdep.c (h8300_register_name_common): New.
3940 h8300_register_name): Use h8300_register_name_common.
3941 (h8300s_register_name): Likewise.
3942 (h8300sx_register_name): Likewise.
3943 (h8300h_register_nam): New.
3944 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3945
3946
40eadf04
SP
39472019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3948
3949 * arm-tdep.c (arm_skip_cmse_entry): New function.
3950 (arm_is_sgstubs_section): New function.
3951 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3952
bfa2a36d
TT
39532019-07-22 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3956 Don't self-assign.
3957
a8e9d247
AB
39582019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3961 type_print.
3962
eb86c5e2
AB
39632019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3966 so that GDB doesn't match any msymbols when searching in the
3967 TYPES_DOMAIN.
3968 (print_symbol_info): Print using typedef_print or type_print based
3969 on the type of the symbol. Add updated FIXME comment moved from...
3970 (_initialize_symtab): ... move and update FIXME comment to above.
3971
a8eab7c6
AB
39722019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * NEWS: Mention adding -q option to "info types".
3975 * symtab.c (struct info_types_options): New struct.
3976 (info_types_options_defs): New variable.
3977 (make_info_types_options_def_group): New function.
3978 (info_types_command): Use gdb::option framework to parse options.
3979 (info_types_command_completer): New function.
3980 (_initialize_symtab): Extend the help text on "info types" and
3981 register command completer.
3982
b4603c34
CB
39832019-07-21 Christian Biesinger <cbiesinger@google.com>
3984
3985 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3986 (lookup_symbol_in_objfile): Change int to block_enum and add a
3987 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3988
c8cdc1e0
CB
39892019-07-20 Christian Biesinger <cbiesinger@google.com>
3990
3991 * MAINTAINERS (Write After Approval): Add self.
3992
01e175fe
AB
39932019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3994
3995 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3996 instruction to the dummy code region.
3997
56f79b63
TT
39982019-07-19 Tom Tromey <tromey@adacore.com>
3999
4000 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4001 (ARGSUSED, PARAMS, __func__): Remove rules.
4002
4c5aa8e0
AH
40032019-07-19 Alan Hayward <alan.hayward@arm.com>
4004
4005 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4006 * features/arm/arm-with-iwmmxt.c: Remove.
4007 * features/arm/arm-with-iwmmxt.xml: Remove.
4008 * features/arm/arm-with-m-fpa-layout.c: Remove.
4009 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4010 * features/arm/arm-with-m-vfp-d16.c: Remove.
4011 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4012 * features/arm/arm-with-m.c: Remove.
4013 * features/arm/arm-with-m.xml: Remove.
4014 * features/arm/arm-with-neon.c: Remove.
4015 * features/arm/arm-with-neon.xml: Remove.
4016 * features/arm/arm-with-vfpv2.c: Remove.
4017 * features/arm/arm-with-vfpv2.xml: Remove.
4018 * features/arm/arm-with-vfpv3.c: Remove.
4019 * features/arm/arm-with-vfpv3.xml: Remove.
4020
f42b2617
AH
40212019-07-19 Alan Hayward <alan.hayward@arm.com>
4022
4023 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4024
f29ec966
AH
40252019-07-19 Alan Hayward <alan.hayward@arm.com>
4026
4027 * arch/aarch32.c (aarch32_create_target_description): Create
4028 target descriptions using features.
4029 * arch/arm.c (arm_create_target_description)
4030 (arm_create_mprofile_target_description): Likewise.
4031 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4032
d105cce5
AH
40332019-07-19 Alan Hayward <alan.hayward@arm.com>
4034
4035 * Makefile.in: Add new files.
4036 * aarch32-tdep.c: New file.
4037 * aarch32-tdep.h: New file.
4038 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4039 Call aarch32_read_description.
4040 * arch/aarch32.c: New file.
4041 * arch/aarch32.h: New file.
4042 * arch/arm.c (arm_create_target_description)
4043 (arm_create_mprofile_target_description): New function.
4044 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4045 (arm_create_target_description)
4046 (arm_create_mprofile_target_description): New declaration.
4047 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4048 read_description functions.
4049 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4050 Likewise.
4051 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4052 * arm-tdep.c (tdesc_arm_list): New variable.
4053 (arm_register_g_packet_guesses): Call create description functions.
4054 (arm_read_description) (arm_read_mprofile_description): New
4055 function.
4056 * arm-tdep.h (arm_read_description)
4057 (arm_read_mprofile_description): Add declaration.
4058 * configure.tgt: Add new files.
4059
afe09f0b
GL
40602019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4061
4062 * top.c (new_ui_command): Open specified terminal just once.
4063
cd215b2e
TT
40642019-07-18 Tom Tromey <tromey@adacore.com>
4065
4066 * symtab.c (main_name): Constify return type.
4067 * symfile.c (set_initial_language): Update.
4068 * symtab.h (main_name): Constify return type.
4069
d8f68fcb
TT
40702019-07-17 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-winsource.c (tui_update_source_window)
4073 (tui_update_source_window_as_is)
4074 (tui_update_source_windows_with_line): Remove return.
4075 * tui/tui-disasm.c (tui_show_disassem)
4076 (tui_show_disassem_and_update_source): Remove return.
4077 * tui/tui.c (tui_reset): Remove return.
4078 * tui/tui-wingeneral.c
4079 (tui_check_and_display_highlight_if_needed): Remove return.
4080
ca5af91e
TT
40812019-07-17 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4084
5104fe36
TT
40852019-07-17 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-winsource.h (struct tui_exec_info_window)
4088 (struct tui_source_window_base): Move from tui-data.h.
4089 * tui/tui-winsource.c: Move many method definitions from
4090 elsewhere. Remove "structuring" comments.
4091 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4092 (tui_source_window_base::refresh_window): Move to
4093 tui-winsource.c.
4094 * tui/tui-win.c (tui_source_window_base::refresh_all)
4095 (tui_source_window_base::update_tab_width)
4096 (tui_source_window_base::set_new_height)
4097 (tui_source_window_base::do_make_visible_with_new_height): Move to
4098 tui-winsource.c.
4099 * tui/tui-source.h: Update.
4100 * tui/tui-source.c (tui_source_window_base::reset): Move to
4101 tui-winsource.c.
4102 * tui/tui-disasm.h: Update.
4103 * tui/tui-data.h (struct tui_exec_info_window): Move to
4104 tui-winsource.h.
4105 (struct tui_source_window_base): Likewise.
4106 * tui/tui-data.c (tui_source_window_base::clear_detail)
4107 (tui_source_window_base, ~tui_source_window_base): Move to
4108 tui-winsource.c.
4109
daa15dde
TT
41102019-07-17 Tom Tromey <tom@tromey.com>
4111
4112 * tui/tui-win.c (tui_resize_all)
4113 (tui_source_window_base::update_tab_width)
4114 (tui_adjust_win_heights): Update.
4115 (tui_win_info::make_invisible_and_set_new_height): Rename from
4116 make_invisible_and_set_new_height.
4117 * tui/tui-data.h (struct tui_win_info)
4118 <make_invisible_and_set_new_height>: New method.
4119
bfad4537
TT
41202019-07-17 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui.c: Update.
4123 * tui/tui-source.h (struct tui_source_window): Move from
4124 tui-data.h.
4125 * tui/tui-layout.c: Update.
4126 * tui/tui-disasm.c: Update.
4127 * tui/tui-data.h (struct tui_source_window): Move to
4128 tui-source.h.
4129
88f7e873
TT
41302019-07-17 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4133 tui-data.h.
4134 * tui/tui-data.h (struct tui_disasm_window): Move to
4135 tui-disasm.h.
4136
96bd6233
TT
41372019-07-17 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-regs.h (struct tui_data_item_window): Move from
4140 tui-data.h.
4141 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4142 * tui/tui-data.h (struct tui_data_item_window): Move to
4143 tui-regs.h.
4144 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4145
ce38393b
TT
41462019-07-17 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui.c: Update.
4149 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4150 (tui_cmd_window::max_height): Move to tui-command.c.
4151 * tui/tui-layout.c: Update.
4152 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4153 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4154 tui-command.c.
4155 * tui/tui-command.h (struct tui_cmd_window): Move from
4156 tui-data.h.
4157 * tui/tui-command.c: Remove "structuring" comments.
4158 (tui_cmd_window::clear_detail)
4159 (tui_cmd_window::do_make_visible_with_new_height)
4160 (tui_cmd_window::max_height): Move from elsewhere.
4161
2d8b51cb
TT
41622019-07-17 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4165 Now static.
4166 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4167 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4168
18ab23af
TT
41692019-07-17 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui.c: Update.
4172 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4173 tui-regs.c.
4174 * tui/tui-windata.h: Remove file.
4175 * tui/tui-windata.c: Remove file.
4176 * tui/tui-win.c (tui_data_window::set_new_height)
4177 (tui_data_window::do_make_visible_with_new_height): Move to
4178 tui-regs.c.
4179 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4180 * tui/tui-regs.c: Remove "structuring" comments.
4181 (tui_data_window::first_data_item_displayed)
4182 (tui_data_window::delete_data_content_windows)
4183 (tui_data_window::erase_data_content)
4184 (tui_data_window::display_all_data)
4185 (tui_data_window::refresh_all)
4186 (tui_data_window::do_scroll_vertical)
4187 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4188 (tui_data_window::do_make_visible_with_new_height)
4189 (tui_data_window::refresh_window): Move from elsewhere.
4190 (_initialize_tui_regs): Move to end of file.
4191 * tui/tui-layout.c: Update.
4192 * tui/tui-hooks.c: Update.
4193 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4194 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4195 tui-regs.c.
4196 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4197
88b7e7cc
TT
41982019-07-17 Tom Tromey <tom@tromey.com>
4199
4200 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4201 seen.
4202
0fcd3711
TT
42032019-07-17 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-win.c (tui_source_window_base::set_new_height)
4206 (tui_source_window_base::do_make_visible_with_new_height): Use
4207 m_has_locator field directly.
4208 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4209 method.
4210 (struct tui_source_window_base) <has_locator>: Likewise.
4211
4a38112d
TT
42122019-07-17 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4215 Don't declare.
4216 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4217 Remove.
4218 * tui/tui-win.c (tui_source_window_base::set_new_height)
4219 (tui_source_window_base::set_new_height)
4220 (make_invisible_and_set_new_height)
4221 (tui_source_window_base::do_make_visible_with_new_height)
4222 (tui_source_window_base::do_make_visible_with_new_height):
4223 Update.
4224 * tui/tui-layout.c (show_source_disasm_command, show_data)
4225 (show_source_or_disasm_and_command): Update.
4226 * tui/tui-layout.c (show_layout): Update.
4227
09129226
TT
42282019-07-17 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-layout.c (make_data_window): Remove.
4231 (show_data): Unify creation and re-initialization cases.
4232
4a8a5e84
TT
42332019-07-17 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-layout.c (make_source_window, make_disasm_window):
4236 Remove.
4237 (show_data): Unify creation and re-initialization cases.
4238
76d2be8e
TT
42392019-07-17 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui-layout.c (make_command_window): Remove.
4242 (show_source_disasm_command, show_source_or_disasm_and_command):
4243 Unify creation and re-initialization cases.
4244
890b8bde
TT
42452019-07-17 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4248 creation and re-initialization cases.
4249
2cdfa113
TT
42502019-07-17 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-regs.c (tui_get_register): Return void.
4253
8e3cfd09
TT
42542019-07-17 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4257 Simplify.
4258
f4e04977
TT
42592019-07-17 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4262 resetting.
4263
0379b883
TT
42642019-07-17 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4267 * tui/tui-regs.c (tui_reg_layout): New function.
4268 (tui_show_registers, tui_reg_command): Use it.
4269 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4270 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4271 parameters.
4272 (tui_layout_command): Remove.
4273
b7fbad91
TT
42742019-07-17 Tom Tromey <tom@tromey.com>
4275
4276 * tui/tui-layout.h (tui/tui-layout): Return void.
4277 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4278
4e1e56b9
TT
42792019-07-17 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-layout.c (show_source_disasm_command, show_data):
4282 Update.
4283 (reset_locator): Remove.
4284 (show_source_or_disasm_and_command): Update.
4285
1e0c09ba
TT
42862019-07-17 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-source.c (tui_source_window_base::reset): Remove
4289 win_type parameter.
4290 * tui/tui-layout.c (make_command_window, make_source_window)
4291 (make_disasm_window, make_data_window)
4292 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4293 (reset_locator, show_source_or_disasm_and_command): Update.
4294 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4295 win_type parameter.
4296 (struct tui_source_window_base) <reset>: Likewise.
4297
1bf605de
TT
42982019-07-17 Tom Tromey <tom@tromey.com>
4299
4300 * tui/tui-layout.c (show_source_disasm_command): Use
4301 reset_locator.
4302 (reset_locator): New function.
4303 (init_and_make_win): Remove.
4304 (show_source_or_disasm_and_command): Use reset_locator.
4305
098f9ed4
TT
43062019-07-17 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4309 condition.
4310 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4311 Remove condition.
4312 * tui/tui-source.c (tui_source_window_base::reset): New method.
4313 * tui/tui-layout.c (make_command_window): Don't call
4314 init_and_make_win.
4315 (make_source_window, make_disasm_window): Don't call
4316 make_source_or_disasm_window.
4317 (make_data_window): Don't call init_and_make_win. Change calling
4318 convention.
4319 (show_source_disasm_command, show_data): Simplify.
4320 (make_source_or_disasm_window): Remove.
4321 (show_source_or_disasm_and_command): Simplify.
4322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4323 (struct tui_source_window_base) <reset>: Likewise.
4324 <execution_info>: Remove initializer.
4325 * tui/tui-data.c (tui_source_window_base): Initialize
4326 execution_info.
4327
80110957
TT
43282019-07-17 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4331 variable.
4332
cf82af05
TT
43332019-07-17 Tom Tromey <tom@tromey.com>
4334
4335 * tui/tui.c (tui_rl_other_window): Update.
4336 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4337 superclass method first. Always iterate over regs_content.
4338 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4339 method.
4340 * tui/tui-win.c (tui_set_focus_command): Update.
4341
01aeb396
TT
43422019-07-17 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-win.c (tui_set_focus_command): Rename from
4345 tui_set_focus. Call tui_enable.
4346 (tui_set_focus_command): Remove.
4347
fd6c75ee
TT
43482019-07-17 Tom Tromey <tom@tromey.com>
4349
4350 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4351 refresh_window.
4352 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4353 touchwin.
4354 (tui_data_window::refresh_window): Call refresh_window on data
4355 items. Always call superclass refresh_window.
4356 (tui_win_info::refresh): Remove.
4357 (tui_source_window_base::refresh_window): Update.
4358 (tui_refresh_all): Update.
4359 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4360 refresh_window.
4361 (show_source_or_disasm_and_command): Likewise.
4362 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4363 (struct tui_source_window_base) <refresh>: Likewise.
4364
f6cc34a9
TT
43652019-07-17 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-winsource.c (tui_clear_source_content)
4368 (tui_show_source_content): Update.
4369 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4370 whether content is empty.
4371 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4372 Remove.
4373
f31ec9af
TT
43742019-07-17 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4377 window's contents.
4378 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4379 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4380
d1b6f1e5
TT
43812019-07-17 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4384 (struct tui_data_item_window): Update.
4385
d9743a13
TT
43862019-07-17 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4389 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4390 defines.
4391
caf0bc4e
TT
43922019-07-17 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-winsource.h (tui_erase_source_content)
4395 (tui_clear_source_content): Remove "display_prompt" parameter.
4396 * tui/tui-winsource.c (tui_update_source_window_as_is)
4397 (tui_update_source_windows_with_addr): Update.
4398 (tui_clear_source_content): Remove "display_prompt" parameter.
4399 (tui_erase_source_content): Likewise. Simplify.
4400 (tui_show_source_content): Update.
4401 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4402 * tui/tui-stack.c (tui_show_frame_info): Update.
4403 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4404 Remove defines.
4405
9d391078
TT
44062019-07-17 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4409 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4410 parameter.
4411 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4412 parameter.
4413
a38da35d
TT
44142019-07-17 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-winsource.c (tui_clear_source_content)
4417 (tui_show_source_content, tui_show_exec_info_content)
4418 (tui_clear_exec_info_content): Update.
4419 * tui/tui-stack.c (tui_show_locator_content): Update.
4420 (tui_show_frame_info): Update.
4421 * tui/tui-source.h (tui_source_window): Don't declare.
4422 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4423 from tui_source_is_displayed.
4424 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4425 Remove field.
4426 (struct tui_source_window_base) <content_in_use>: New field. Now
4427 bool.
4428 (struct tui_source_window) <showing_source_p>: New method.
4429 (TUI_SRC_WIN): Change cast.
4430 * tui/tui-data.c (tui_initialize_static_data): Update.
4431
c2cd8994
TT
44322019-07-17 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4435 location_matches_p.
4436 * tui/tui-source.c (tui_source_window::location_matches_p): New
4437 method.
4438 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4439 method.
4440 * tui/tui-data.h (struct tui_source_window_base)
4441 <location_matches_p>: New method.
4442 (struct tui_source_window, struct tui_disasm_window)
4443 <location_matches_p>: Likewise.
4444
4dde7b34
TT
44452019-07-17 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-win.c (tui_set_win_height_command): Rename from
4448 tui_set_win_height.
4449 (tui_set_win_height_command): Remove.
4450
b73dd877
TT
44512019-07-17 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-source.c (tui_source_window): New constructor. Add
4454 observer.
4455 (~tui_source_window): New destructor.
4456 (tui_source_window::style_changed): New method.
4457 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4458 (tui_attach_detach_observers): Update.
4459 * tui/tui-data.h (struct tui_source_window): Make constructor not
4460 inline. Add destructor.
4461 (struct tui_source_window) <style_changed>: New method.
4462 <m_observable>: New member.
4463
ae2b5380
TT
44642019-07-17 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4467 * tui/tui-win.c (tui_resize_all): Fix typo.
4468
1ce3e844
TT
44692019-07-17 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4472 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4473 (tui_refresh_all): Remove "list" parameter. Use foreach.
4474 * tui/tui-win.c (window_name_completer): Use foreach.
4475 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4476 (update_tab_width): Likewise.
4477 * tui/tui-layout.c (show_layout): Update.
4478 * tui/tui-data.h (class tui_window_iterator): New.
4479 (struct all_tui_windows): New.
4480 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4481
fe3eaf1c
TT
44822019-07-17 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4485 parameter. Don't reference globals.
4486 (tui_reg_command): Update.
4487
368c1354
TT
44882019-07-17 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-regs.c (tui_show_registers): Simplify.
4491
e80cd204
TT
44922019-07-17 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-regs.c (tui_show_registers): Update.
4495 (tui_show_register_group): Add win_info parameter.
4496
aca2dd16
TT
44972019-07-17 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4500 Rename from tui_display_reg_element_at_line.
4501 (tui_data_window::display_registers_from_line): Update.
4502 * tui/tui-data.h (struct tui_data_window)
4503 <display_reg_element_at_line>: New method.
4504
517e9505
TT
45052019-07-17 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-regs.h (tui_display_registers_from)
4508 (tui_display_registers_from_line): Don't declare.
4509 * tui/tui-windata.c (tui_data_window::display_all_data)
4510 (tui_data_window::refresh_all)
4511 (tui_data_window::do_scroll_vertical): Update.
4512 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4513 from tui_display_registers_from.
4514 (tui_display_reg_element_at_line): Update.
4515 (tui_data_window::display_registers_from_line): Rename from
4516 tui_display_registers_from_line.
4517 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4518 display_registers_from_line>: New methods.
4519
f76d8b19
TT
45202019-07-17 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4523 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4524 from tui_erase_data_content.
4525 (tui_data_window::display_all_data)
4526 (tui_data_window::refresh_all)
4527 (tui_data_window::do_scroll_vertical): Update.
4528 * tui/tui-regs.c (tui_show_registers): Update.
4529 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4530 New method.
4531
b4094625
TT
45322019-07-17 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4535 declare.
4536 * tui/tui-windata.c
4537 (tui_data_window::delete_data_content_windows): Rename from
4538 tui_delete_data_content_windows.
4539 (tui_data_window::display_all_data)
4540 (tui_data_window::do_scroll_vertical): Update.
4541 * tui/tui-data.h (struct tui_data_window)
4542 <delete_data_content_windows>: New method.
4543
c223a729
TT
45442019-07-17 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4547 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4548
50daf268
TT
45492019-07-17 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4552 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4553 from tui_display_all_data.
4554 * tui/tui-win.c
4555 (tui_data_window::do_make_visible_with_new_height): Update.
4556 * tui/tui-regs.c (tui_show_registers): Update.
4557 * tui/tui-layout.c (tui_set_layout): Update.
4558 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4559 method.
4560
df5f8cab
TT
45612019-07-17 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4564 * tui/tui-windata.c (tui_display_data_from): Remove.
4565 (tui_data_window::refresh_all): Update.
4566
80cb6c27
TT
45672019-07-17 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4570 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4571 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4572 tui_display_registers_from_line.
4573 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4574 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4575 "force_display" parameter.
4576
baff0c28
TT
45772019-07-17 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4580 declare.
4581 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4582 Rename from tui_first_reg_element_no_inline.
4583 (tui_display_reg_element_at_line)
4584 (tui_display_registers_from_line): Update.
4585 * tui/tui-data.h (struct tui_data_window)
4586 <first_reg_element_no_inline>: New method.
4587
3b23c5f2
TT
45882019-07-17 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-windata.c (tui_display_data_from)
4591 (tui_data_window::do_scroll_vertical): Update.
4592 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4593 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4594 Rename from tui_line_from_reg_element_no.
4595 (tui_display_registers_from_line): Update.
4596 * tui/tui-data.h (struct tui_data_window)
4597 <line_from_reg_element_no>: New method.
4598
0b5ec218
TT
45992019-07-17 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4602 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4603 tui_last_regs_line_no.
4604 (tui_display_reg_element_at_line)
4605 (tui_display_registers_from_line): Update.
4606 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4607 method.
4608
0807ab7b
TT
46092019-07-17 Tom Tromey <tom@tromey.com>
4610
4611 PR tui/24722:
4612 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4613 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4614 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4615 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4616 (tui_update_breakpoint_info): Likewise.
4617 * tui/tui-hooks.c (tui_event_create_breakpoint)
4618 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4619 Update.
4620
9ad7fdef
TT
46212019-07-17 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4624
5813316f
TT
46252019-07-17 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-winsource.c (tui_update_source_window_as_is)
4628 (tui_update_source_windows_with_addr): Update.
4629 * tui/tui-source.h (tui_set_source_content)
4630 (tui_show_symtab_source): Add "win_info" parameter.
4631 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4632 parameter.
4633 (tui_show_symtab_source): Likewise.
4634
00e264e7
TT
46352019-07-17 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-wingeneral.c
4638 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4639
06210ce4
TT
46402019-07-17 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4643 (struct tui_cmd_window) <can_scroll>: New method.
4644 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4645 method.
4646
381befee
TT
46472019-07-17 Tom Tromey <tromey@adacore.com>
4648
4649 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4650 do_field_signed>: Rename. Change type of "value".
4651 * ui-out.c (ui_out::field_signed): Rename from field_int.
4652 Change type of "value".
4653 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4654 type of "value".
4655 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4656 do_field_int. Change type of "value".
4657 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4658 do_field_int. Change type of "value".
4659 * tracepoint.c (trace_status_mi, tfind_1)
4660 (print_one_static_tracepoint_marker): Update.
4661 * thread.c (print_thread_info_1, print_selected_thread_frame):
4662 Update.
4663 * stack.c (print_frame, print_frame_info): Update.
4664 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4665 Update.
4666 * source.c (print_source_lines_base): Update.
4667 * skip.c (info_skip_command): Update.
4668 * record-btrace.c (btrace_ui_out_decode_error)
4669 (btrace_call_history_src_line): Update.
4670 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4671 Update.
4672 * progspace.c (print_program_space): Update.
4673 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4674 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4675 do_field_int. Change type of "value".
4676 * mi/mi-out.c (mi_ui_out::do_table_begin)
4677 (mi_ui_out::do_table_header): Update.
4678 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4679 type of "value".
4680 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4681 (mi_cmd_data_list_changed_registers, output_register)
4682 (mi_cmd_data_read_memory, mi_load_progress)
4683 (mi_cmd_trace_frame_collected): Update.
4684 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4685 Update.
4686 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4687 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4688 (mi_cmd_var_list_children, varobj_update_one): Update.
4689 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4690 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4691 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4692 * inferior.c (print_inferior): Update.
4693 * gdb_bfd.c (print_one_bfd): Update.
4694 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4695 Update.
4696 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4697 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4698 do_field_int. Change type of "value".
4699 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4700 do_field_int. Change type of "value".
4701 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4702 (print_one_breakpoint_location, print_it_catch_fork)
4703 (print_one_catch_fork, print_it_catch_vfork)
4704 (print_one_catch_vfork, print_it_catch_solib)
4705 (print_it_catch_exec, print_it_ranged_breakpoint)
4706 (print_mention_watchpoint, print_mention_masked_watchpoint)
4707 (bkpt_print_it, update_static_tracepoint): Update.
4708 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4709 * break-catch-syscall.c (print_it_catch_syscall): Update.
4710 * ada-tasks.c (print_ada_task_info): Update.
4711 * ada-lang.c (print_it_exception, print_mention_exception):
4712 Update.
4713
6b78c3f8
AB
47142019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 PR breakpoints/24541
4717 * gdbarch.c: Regenerate.
4718 * gdbarch.h: Regenerate.
4719 * gdbarch.sh: Adjust return type and parameter types for
4720 'stap_adjust_register'.
4721 (i386_stap_adjust_register): Adjust signature and return new
4722 register name.
4723 * stap-probe.c (stap_parse_register_operand): Adjust use of
4724 'gdbarch_stap_adjust_register'.
4725
d72a9b85
TT
47262019-07-17 Tom Tromey <tromey@adacore.com>
4727
4728 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4729 declare VEC.
4730 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4731 std::vector.
4732 (struct s390_process_info): Add initializers.
4733 (s390_add_process): Use new.
4734 (s390_linux_nat_target::low_forget_process): Use delete.
4735 (s390_linux_nat_target::low_new_fork)
4736 (s390_linux_nat_target::stopped_by_watchpoint)
4737 (s390_linux_nat_target::low_prepare_to_resume)
4738 (s390_linux_nat_target::insert_watchpoint)
4739 (s390_linux_nat_target::insert_hw_breakpoint)
4740 (s390_linux_nat_target::remove_watchpoint)
4741 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4742
206e6c58
JB
47432019-07-16 John Baldwin <jhb@FreeBSD.org>
4744
4745 * aarch64-fbsd-nat.c: Include regcache.h.
4746 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4747 argument.
4748 (aarch64_fbsd_nat_target::fetch_registers)
4749 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4750 variable.
4751 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4752
cbde90f2
JB
47532019-07-16 John Baldwin <jhb@FreeBSD.org>
4754
4755 * fbsd-nat.c: Include gdbarch.h.
4756
07128006
TT
47572019-07-15 Tom Tromey <tromey@adacore.com>
4758
4759 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4760
1f77b012
TT
47612019-07-15 Tom Tromey <tromey@adacore.com>
4762
4763 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4764 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4765 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4766 * cli-out.c (cli_ui_out::do_field_int): New method.
4767 * ui-out.c (ui_out::field_unsigned): New method.
4768 * symfile.c (generic_load): Use field_unsigned.
4769 (print_transfer_performance): Likewise.
4770 * record-btrace.c (ui_out_field_uint): Remove.
4771 (btrace_call_history_insn_range, btrace_call_history): Use
4772 field_unsigned.
4773 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4774 field_unsigned.
4775 * ui-out.h (class ui_out) <field_unsigned>: New method.
4776 <do_field_unsigned>: Likewise.
4777
33eca680
TT
47782019-07-15 Tom Tromey <tromey@adacore.com>
4779
4780 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4781 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4782 * target.c (flash_erase_command): Use field_string.
4783 * infrun.c (print_signal_received_reason): Use field_string.
4784 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4785 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4786 field_string.
4787 * ada-tasks.c (print_ada_task_info): Use field_string.
4788
ca8d69be
TT
47892019-07-15 Tom Tromey <tromey@adacore.com>
4790
4791 * target.c (flash_erase_command): Use field_core_addr.
4792 * symfile.c (generic_load): Use field_core_addr.
4793 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4794 Use field_core_addr.
4795 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4796 field_core_addr.
4797
0d4e84ed
AB
47982019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4799
4800 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4801 value if its desired type is smaller than a CORE_ADDR and signed.
4802
9a49df9d
AB
48032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4806 of changes to field names, and use new is_reference field to
4807 decide if a property is a reference or not.
4808 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4809 field.
4810 (struct dwarf2_property_baton): Update header comment, rename
4811 'referenced_type' to 'property_type' and update comments.
4812 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4813 default property type, store in property baton, update to take
4814 accound of renamed field.
4815 (read_func_scope): Update call to attr_to_dynamic_prop.
4816 (read_array_type): Likewise.
4817 (dwarf2_per_cu_addr_sized_int_type): New function.
4818 (read_subrange_index_type): Move type finding code to
4819 dwarf2_per_cu_addr_sized_int_type.
4820 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4821 (dwarf2_per_cu_addr_type): New function.
4822 (set_die_type): Update calls to attr_to_dynamic_prop.
4823
b86352cf
AB
48242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * dwarf2read.c (read_subrange_index_type): New function.
4827 (read_subrange_type): Move code into new function and call it.
4828 * gdbtypes.c (create_range_type): Add some asserts.
4829
603490bf
AB
48302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4833 update return statements.
4834 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4835 declaration, and update comment to match.
4836 * gdbtypes.c (resolve_dynamic_array): Update call to
4837 dwarf2_evaluate_property to match new return type.
4838
592f9d27
AB
48392019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * valarith.c (value_subscripted_rvalue): Change lowerbound
4842 parameter type from int to LONGEST.
4843 * value.h (value_subscripted_rvalue): Likewise in declaration.
4844
60cfcb20
AB
48452019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4846
4847 * cli/cli-utils.c (info_print_command_completer): New function.
4848 * cli/cli-utils.h: Add 'completer.h' include, and forward
4849 declaration for 'struct cmd_list_element'.
4850 (info_print_command_completer): Declare.
4851 * stack.c (_initialize_stack): Add completer for 'info locals' and
4852 'info args'.
4853 * symtab.c (_initialize_symtab): Add completer for 'info
4854 variables' and 'info functions'.
4855 * NEWS: Mention completion for additional info commands.
4856
b16507e0
AB
48572019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * cli/cli-utils.c (extract_info_print_args): Delete.
4860 (extract_arg_maybe_quoted): Delete.
4861 (info_print_options_defs): New variable.
4862 (make_info_print_options_def_group): New function.
4863 (extract_info_print_options): Define new function.
4864 * cli/cli-utils.h (extract_info_print_args): Delete.
4865 (struct info_print_options): New structure.
4866 (extract_info_print_options): Declare new function.
4867 * stack.c (info_locals_command): Update to use new
4868 extract_info_print_options, also add a header comment.
4869 (info_args_command): Likewise.
4870 * symtab.c (info_variables_command): Likewise.
4871 (info_functions_command): Likewise.
4872
021d8588
AB
48732019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4876 to extract string arguments.
4877 * common/common-utils.c (extract_string_maybe_quoted): New function.
4878 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4879
b777eb6d
TT
48802019-07-11 Tom Tromey <tromey@adacore.com>
4881
4882 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4883 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4884 * top.h (gdbinit): Don't declare.
4885 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4886 into...
4887 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4888 * top.c (gdb_init): Don't call init_cli_cmds.
4889 (gdbinit): Remove.
4890 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4891
72ee03ff
TT
48922019-07-11 Tom Tromey <tromey@adacore.com>
4893
4894 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4895 after it has been moved.
4896
00db9531
SM
48972019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4898
4899 * valops.c (value_must_coerce_to_target): Change return type to
4900 bool.
4901 * value.h (value_must_coerce_to_target): Likewise.
4902
f2478a7e
SM
49032019-07-10 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * breakpoint.c (is_hardware_watchpoint): Remove
4906 forward-declaration.
4907 (is_masked_watchpoint): Change return type to bool.
4908 (is_tracepoint): Likewise.
4909 (is_breakpoint): Likewise.
4910 (is_hardware_watchpoint): Likewise.
4911 (is_watchpoint): Likewise.
4912 (is_no_memory_software_watchpoint): Likewise.
4913 (is_catchpoint): Likewise.
4914 (breakpoint_1): Make FILTER parameter's return type bool.
4915 is_masked_watchpoint): Change return type to bool.
4916 (save_breakpoints): Make FILTER parameter's return type bool.
4917 * breakpoint.h (is_breakpoint): Change return type to bool.
4918 (is_watchpoint): Likewise.
4919 (is_catchpoint): Likewise.
4920 (is_tracepoint): Likewise.
4921
0d12e84c
TT
49222019-07-10 Tom Tromey <tom@tromey.com>
4923
4924 * defs.h: Don't include gdbarch.h.
4925 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4926 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4927 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4928 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4929 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4930 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4931 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4932 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4933 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4934 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4935 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4936 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4937 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4938 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4939 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4940 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4941 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4942 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4943 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4944 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4945 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4946 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4947 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4948 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4949 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4950 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4951 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4952
f06f1252
TT
49532019-07-10 Tom Tromey <tromey@adacore.com>
4954
4955 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4956 * breakpoint.c (init_ada_exception_breakpoint): Register as
4957 bp_catchpoint.
4958 (print_one_breakpoint_location, print_one_breakpoint): Use
4959 is_ada_exception_catchpoint.
4960 * ada-lang.c (class ada_catchpoint_location): Pass
4961 bp_loc_software_breakpoint to bp_location constructor.
4962 (is_ada_exception_catchpoint): New function.
4963
7a5d944b
TT
49642019-07-10 Tom Tromey <tromey@adacore.com>
4965
4966 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4967 VEC.
4968 (struct arm_exidx_entry): New method operator<.
4969 (struct arm_exidx_data) <section_maps>: Change type.
4970 (arm_exidx_data_free): Remove.
4971 (arm_exidx_data_key): Change type. Move lower.
4972 (arm_exidx_new_objfile): Update.
4973 (arm_compare_exidx_entries): Remove.
4974 (arm_find_exidx_entry, _initialize_arm_tdep)
4975
48c66e1d
TT
49762019-07-10 Tom Tromey <tromey@adacore.com>
4977
4978 * solib-spu.c (ocl_program_data_key): Change type.
4979 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4980 Update.
4981
a269fbf1
TT
49822019-07-10 Tom Tromey <tromey@adacore.com>
4983
4984 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4985 (struct solib_aix_inferior_data) <library_list>: Change type.
4986 (solib_aix_inferior_data_handle): Change type.
4987 (get_solib_aix_inferior_data): Update.
4988 (solib_aix_free_library_list): Remove.
4989 (library_list_start_library): Update.
4990 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4991 return type.
4992 (solib_aix_get_library_list)
4993 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4994 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4995
c294730c
TT
49962019-07-10 Tom Tromey <tromey@adacore.com>
4997
4998 * solib-dsbt.c (struct dsbt_info): Add initializers.
4999 (solib_dsbt_pspace_data): Change type.
5000 (dsbt_pspace_data_cleanup): Remove.
5001 (get_dsbt_info, _initialize_dsbt_solib): Update.
5002
9d52077d
TT
50032019-07-10 Tom Tromey <tromey@adacore.com>
5004
5005 * spu-tdep.c (spu_overlay_data): Change type.
5006 (spu_get_overlay_table, spu_overlay_new_objfile)
5007 (_initialize_spu_tdep): Update.
5008
22a20dca
TT
50092019-07-10 Tom Tromey <tromey@adacore.com>
5010
5011 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5012 destructor.
5013 (dbx_objfile_data_key): Change type and declare later.
5014 (DBX_SYMFILE_INFO): Rewrite.
5015 * dbxread.c (dbx_objfile_data_key): Change type.
5016 (dbx_symfile_init): Update.
5017 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5018 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5019 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5020
cb60f420
TT
50212019-07-10 Tom Tromey <tromey@adacore.com>
5022
5023 * jit.c (jit_program_space_key): Change type. Move lower.
5024 (get_jit_program_space_data): Update.
5025 (jit_program_space_data_cleanup): Remove.
5026 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5027 Update.
5028 (struct jit_program_space_data): Add initializers.
5029
51df2ae3
TT
50302019-07-10 Tom Tromey <tromey@adacore.com>
5031
5032 * solib-darwin.c (struct darwin_info): Add initializers.
5033 (solib_darwin_pspace_data): Change type.
5034 (darwin_pspace_data_cleanup): Remove.
5035 (get_darwin_info, _initialize_darwin_solib): Update.
5036
18101a35
TT
50372019-07-10 Tom Tromey <tromey@adacore.com>
5038
5039 * remote-sim.c (struct sim_inferior_data): Add initializers,
5040 constructor, and destructor.
5041 (sim_inferior_data_key): Change type. Move lower.
5042 (check_for_duplicate_sim_descriptor): Update.
5043 (get_sim_inferior_data): Use new. Update.
5044 (~sim_inferior_data_cleanup): Rename from
5045 sim_inferior_data_cleanup. Simplify.
5046 (gdbsim_close_inferior, simulator_command)
5047 (sim_command_completer, _initialize_remote_sim): Update.
5048 (next_pid, INITIAL_PID): Move earlier.
5049
05b08ac1
TT
50502019-07-10 Tom Tromey <tromey@adacore.com>
5051
5052 * python/python-internal.h (create_thread_object): Return
5053 gdbpy_ref.
5054 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5055 * python/py-inferior.c (struct threadlist_entry): Add
5056 constructor.
5057 <thread_obj>: Now a gdbpy_ref.
5058 (thread_to_thread_object): Update.
5059 (add_thread_object): Use new.
5060 (delete_thread_object): Use delete.
5061 (infpy_threads): Update.
5062 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5063 GIL.
5064
32372d80
TT
50652019-07-10 Tom Tromey <tromey@adacore.com>
5066
5067 * valops.c (value_cast): Specialize error message for Ada.
5068
5c458ae8
SM
50692019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5070
5071 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5072
4c462cb0
SM
50732019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5074
5075 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5076 bpstat_should_step): Return bool, adjust comments.
5077 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5078 bpstat_should_step): Likewise.
5079
89abbcc2
AH
50802019-07-10 Alan Hayward <alan.hayward@arm.com>
5081
5082 * features/Makefile: Use feature target descriptions for Arm.
5083 * features/arm/arm-core.c: Generate new file.
5084 * features/arm/arm-fpa.c: Likewise.
5085 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5086 * features/arm/arm-m-profile.c: Likewise.
5087 * features/arm/arm-vfpv2.c: Likewise.
5088 * features/arm/arm-vfpv3.c: Likewise.
5089 * features/arm/xscale-iwmmxt.c: Likewise.
5090 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5091
166a82be
AH
50922019-07-10 Alan Hayward <alan.hayward@arm.com>
5093
5094 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5095 ptrace earlier.
5096
9fb4c7e9
AH
50972019-07-10 Alan Hayward <alan.hayward@arm.com>
5098
5099 * features/aarch64-pauth.c: Regenerate.
5100
e2d0f980
SM
51012019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5102
5103 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5104 bool.
5105 (bpstat_what): Use false instead of 0.
5106
a38118e5
PA
51072019-07-09 Pedro Alves <palves@redhat.com>
5108
5109 * break-catch-throw.c (is_exception_catchpoint): New.
5110 * breakpoint.c (print_one_breakpoint_location): New parameter
5111 'raw_loc'. Handle it. Use
5112 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5113 looking at the breakpoint's type.
5114 (print_one_breakpoint): If handling "maint info breakpoints", also
5115 print locations of exception catchpoints.
5116 * breakpoint.h (is_exception_catchpoint): Declare.
5117
cb1e4e32
PA
51182019-07-09 Pedro Alves <palves@redhat.com>
5119
5120 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5121 "addr" field.
5122 (allocate_location_exception_catchpoint): New.
5123 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5124 (initialize_throw_catchpoint_ops): Install
5125 allocate_location_exception_catchpoint as allocate_location
5126 method.
5127 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5128 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5129 bp_loc_other.
5130 (breakpoint_address_is_meaningful): Delete.
5131 (bl_address_is_meaningful): New.
5132 (breakpoint_locations_match): Adjust comment.
5133 (bp_location_from_bp_type): New, factored out of...
5134 (bp_location::bp_location(breakpoint *)): ... this.
5135 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5136 factored out of...
5137 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5138 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5139 breakpoint_address_is_meaningful.
5140 (bp_locations_compare): Adjust comment.
5141 (update_global_location_list): Use bl_address_is_meaningful
5142 instead of breakpoint_address_is_meaningful.
5143 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5144 explicit.
5145 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5146 * python/py-breakpoint.c (bppy_get_location): No longer check
5147 whether location is null.
5148
b58a68fe
PA
51492019-07-09 Pedro Alves <palves@redhat.com>
5150
5151 PR c++/15468
5152 * breakpoint.c (print_one_breakpoint_location): Remove
5153 single-location assert.
5154
268a13a5
TT
51552019-07-09 Tom Tromey <tom@tromey.com>
5156
5157 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5158 * configure: Rebuild.
5159 * configure.ac: Change common to gdbsupport.
5160 * gdbsupport: Rename from common.
5161 * acinclude.m4: Change common to gdbsupport.
5162 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5163 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5164 gdbsupport.
5165 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5166 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5167 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5168 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5169 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5170 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5171 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5172 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5173 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5174 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5175 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5176 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5177 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5178 coff-pe-read.c, command.h, compile/compile-c-support.c,
5179 compile/compile-c.h, compile/compile-cplus-symbols.c,
5180 compile/compile-cplus-types.c, compile/compile-cplus.h,
5181 compile/compile-loc2c.c, compile/compile.c, completer.c,
5182 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5183 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5184 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5185 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5186 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5187 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5188 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5189 features/aarch64-core.c, features/aarch64-fpu.c,
5190 features/aarch64-pauth.c, features/aarch64-sve.c,
5191 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5192 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5193 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5194 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5195 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5196 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5197 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5198 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5199 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5200 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5201 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5202 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5203 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5204 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5205 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5206 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5207 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5208 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5209 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5210 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5211 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5212 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5213 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5214 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5215 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5216 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5217 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5218 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5219 minsyms.c, mips-linux-tdep.c, namespace.h,
5220 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5221 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5222 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5223 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5224 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5225 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5226 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5227 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5228 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5229 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5230 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5231 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5232 procfs.c, producer.c, progspace.h, psymtab.h,
5233 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5234 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5235 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5236 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5237 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5238 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5239 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5240 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5241 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5242 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5243 target-memory.c, target.c, target.h, target/waitstatus.c,
5244 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5245 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5246 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5247 unittests/array-view-selftests.c,
5248 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5249 unittests/common-utils-selftests.c,
5250 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5251 unittests/format_pieces-selftests.c,
5252 unittests/function-view-selftests.c,
5253 unittests/lookup_name_info-selftests.c,
5254 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5255 unittests/mkdir-recursive-selftests.c,
5256 unittests/observable-selftests.c,
5257 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5258 unittests/parse-connection-spec-selftests.c,
5259 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5260 unittests/scoped_fd-selftests.c,
5261 unittests/scoped_mmap-selftests.c,
5262 unittests/scoped_restore-selftests.c,
5263 unittests/string_view-selftests.c, unittests/style-selftests.c,
5264 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5265 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5266 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5267 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5268 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5269 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5270
5b0e2db4
AB
52712019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5272
5273 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5274 bool value.
5275 (decode_digits_ordinary): Set explicit_line field in sal.
5276 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5277 symtab_and_line that was set on an explicit line number in
5278 assembler code. Do always update the recorded symtab and line if
5279 we do skip the prologue.
5280
0ba852ab
AB
52812019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * breakpoint.c (set_breakpoint_location_function): Remove
5284 explicit_loc parameter.
5285 (momentary_breakpoint_from_master): Update call to
5286 set_breakpoint_location_function.
5287 (add_location_to_breakpoint): Likewise.
5288
b3a7d171
AB
52892019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5290
5291 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5292 required features based on default bfd type when no specific bfd
5293 is present.
5294
1f6f6e21
PW
52952019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5296
5297 * NEWS: Mention that GDB printf and eval commands can now print
5298 C-style and Ada-style convenience var strings without
5299 calling the inferior.
5300 * printcmd.c (printf_c_string): Locally print GDB internal var
5301 instead of transiting via the inferior.
5302 (printf_wide_c_string): Likewise.
5303
53042019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5305
5862c886 5306 PR breakpoints/25011
ea142fbf
AH
5307 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5308
0598af48
TT
53092019-07-04 Tom Tromey <tom@tromey.com>
5310
5311 PR tui/24724:
5312 * tui/tui-winsource.c (tui_clear_source_content): Update.
5313 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5314 (tui_update_breakpoint_info): Update.
5315 (tui_set_exec_info_content): Update.
5316 * tui/tui-source.c (tui_set_source_content_nil): Update.
5317 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5318 has_break.
5319 * tui/tui-data.h (enum tui_bp_flag): New.
5320 (tui_bp_flags): New enum flags type.
5321 (struct tui_source_element) <break_mode>: Change type. Rename
5322 from has_break.
5323 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5324 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5325 constants.
5326 * tui/tui-winsource.h: Fix comment.
5327
350fab54
AH
53282019-07-04 Alan Hayward <alan.hayward@arm.com>
5329
5330 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5331 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5332 (store_fpregs_to_thread)
5333 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5334 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5335 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5336 (IWMMXT_REGS_SIZE): Add define.
5337 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5338 (fetch_vfp_regs, store_vfp_regs)
5339 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5340 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5341
f0452268
AH
53422019-07-04 Alan Hayward <alan.hayward@arm.com>
5343
5344 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5345 defines.
5346 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5347 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5348 (ARM_INT_REGISTER_SIZE): ...to this.
5349 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5350 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5351 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5352 (arm_linux_collect_gregset, supply_nwfpe_register)
5353 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5354 defines.
5355 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5356 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5357 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5358 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5359 (arm_return_in_memory, arm_store_return_value)
5360 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5361 (arm_record_ld_st_multiple): Likewise.
5362 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5363 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5364
e935475c
AH
53652019-07-04 Alan Hayward <alan.hayward@arm.com>
5366
5367 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5368 AARCH64_DISPLACED_MODIFIED_INSNS.
5369 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5370 (aarch64_displaced_step_copy_insn): Likewise.
5371 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5372 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5373 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5374 ARM_DISPLACED_MODIFIED_INSNS.
5375 * arm-tdep.c (arm_gdbarch_init): Likewise.
5376 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5377 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5378 (struct arm_displaced_step_closure): Use
5379 ARM_DISPLACED_MODIFIED_INSNS.
5380
df0bb381
AH
53812019-07-04 Alan Hayward <alan.hayward@arm.com>
5382
5383 * features/Makefile: Remove unused xml files.
5384 * features/aarch64.xml: Remove.
5385 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5386 * features/i386/amd64-avx-avx512.xml: Remove.
5387 * features/i386/amd64-avx-linux.xml: Remove.
5388 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5389 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5390 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5391 * features/i386/amd64-avx-mpx.xml: Remove.
5392 * features/i386/amd64-avx.xml: Remove.
5393 * features/i386/amd64-linux.xml: Remove.
5394 * features/i386/amd64-mpx-linux.xml: Remove.
5395 * features/i386/amd64-mpx.xml: Remove.
5396 * features/i386/amd64.xml: Remove.
5397 * features/i386/i386-avx-avx512-linux.xml: Remove.
5398 * features/i386/i386-avx-avx512.xml: Remove.
5399 * features/i386/i386-avx-linux.xml: Remove.
5400 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5401 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5402 * features/i386/i386-avx-mpx-linux.xml: Remove.
5403 * features/i386/i386-avx-mpx.xml: Remove.
5404 * features/i386/i386-avx.xml: Remove.
5405 * features/i386/i386-linux.xml: Remove.
5406 * features/i386/i386-mmx-linux.xml: Remove.
5407 * features/i386/i386-mmx.xml: Remove.
5408 * features/i386/i386-mpx-linux.xml: Remove.
5409 * features/i386/i386-mpx.xml: Remove.
5410 * features/i386/i386.xml: Remove.
5411 * features/i386/x32-avx-avx512-linux.xml: Remove.
5412 * features/i386/x32-avx-linux.xml: Remove.
5413 * features/i386/x32-linux.xml: Remove.
5414
edd6266a
AH
54152019-07-04 Alan Hayward <alan.hayward@arm.com>
5416
5417 * regformats/aarch64.dat: Remove.
5418 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5419 * regformats/i386/amd64-avx-linux.dat: Remove.
5420 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5421 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5422 * regformats/i386/amd64-linux.dat: Remove.
5423 * regformats/i386/amd64-mpx-linux.dat: Remove.
5424 * regformats/i386/amd64.dat: Remove.
5425 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5426 * regformats/i386/i386-avx-linux.dat: Remove.
5427 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5428 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5429 * regformats/i386/i386-linux.dat: Remove.
5430 * regformats/i386/i386-mmx-linux.dat: Remove.
5431 * regformats/i386/i386-mpx-linux.dat: Remove.
5432 * regformats/i386/i386.dat: Remove.
5433 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5434 * regformats/i386/x32-avx-linux.dat: Remove.
5435 * regformats/i386/x32-linux.dat: Remove.
5436
2b40fda7
AH
54372019-07-04 Alan Hayward <alan.hayward@arm.com>
5438
5439 * aarch64-tdep.c: Remove xml self tests.
5440 * amd64-linux-tdep.c: Likewise.
5441 * amd64-tdep.c: Likewise.
5442 * i386-linux-tdep.c: Likewise.
5443 * i386-tdep.c: Likewise.
5444
5f4ba3e7
PA
54452019-07-03 Pedro Alves <palves@redhat.com>
5446
5447 PR cli/24732
5448 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5449 (pipe_cmd_option_defs): New.
5450 (make_pipe_cmd_options_def_group): New.
5451 (pipe_command): Use gdb::option::process_options.
5452 (pipe_command_completer): New function.
5453 (_initialize_cli_cmds): Install completer for "pipe" command.
5454
3d9be6f5
PA
54552019-07-03 Pedro Alves <palves@redhat.com>
5456
5457 * cli/cli-option.c (union option_value) <string>: New field.
5458 (struct option_def_and_value): Add ctor, move ctor, dtor and
5459 use DISABLE_COPY_AND_ASSIGN.
5460 (option_def_and_value::clear_value): New.
5461 (parse_option, save_option_value_in_ctx, get_val_type_str)
5462 (add_setshow_cmds_for_options): Handle var_string.
5463 * cli-option.h (union option_def::var_address) <string>: New
5464 field.
5465 (struct string_option_def): New.
5466 * maint-test-options.c (struct test_options_opts): Add default
5467 ctor and use DISABLE_COPY_AND_ASSIGN.
5468 <string_opt>: New field.
5469 (test_options_opts::~test_options_opts): New.
5470 (test_options_opts::dump): Also dump "-string".
5471 (test_options_option_defs): Install "string.
5472
41fc454c
PA
54732019-07-03 Pedro Alves <palves@redhat.com>
5474
5475 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5476 option_value with a null enumeration.
5477 (complete_options): Save the option values in the context.
5478 (save_option_value_in_ctx): New, factored out from ...
5479 (process_options): ... here.
5480 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5481 of the function.
5482 * maint-test-options.c (test_options_opts::dump): New, factored
5483 out from ...
5484 (maintenance_test_options_command_mode): ... here.
5485 (maintenance_test_options_command_completion_result): Delete.
5486 (maintenance_test_options_command_completion_text): Update
5487 comment.
5488 (maintenance_show_test_options_completion_result): Change
5489 prototype. Just print
5490 maintenance_test_options_command_completion_text.
5491 (save_completion_result): New.
5492 (maintenance_test_options_completer_mode): Pass options context to
5493 complete_options, and then save a dump.
5494 (_initialize_maint_test_options): Use add_cmd to install "maint
5495 show test-options-completion-result".
5496
fdbc9870
PA
54972019-07-03 Pedro Alves <palves@redhat.com>
5498
5499 * NEWS (New commands): Mention "with" and "maint with".
5500 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5501 (with_command, with_command_completer): New.
5502 (pipe_command): Adjust to new repeat_previous
5503 interface.
5504 (_initialize_cli_cmds): Install the "with" command and its "w"
5505 alias.
5506 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5507 declarations.
5508 * cli/cli-setshow.c (parse_cli_var_uinteger)
5509 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5510 argument strings for all var_types.
5511 (get_setshow_command_value_string): New, factored out from ...
5512 (do_show_command): ... this.
5513 * cli/cli-setshow.h: Include <string>.
5514 (get_setshow_command_value_string): Declare.
5515 * command.h (repeat_previous): Now returns const char *. Adjust
5516 comment.
5517 * maint.c: Include "cli/cli-cmds.h".
5518 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5519 (_initialize_maint_cmds): Register the "maintenance with" command.
5520 * top.c (repeat_previous): Move bits from pipe_command here:
5521 Return the saved command line, if any; error out if there's no
5522 command to relaunch.
5523
c6ac8931
PA
55242019-07-03 Pedro Alves <palves@redhat.com>
5525
5526 * NEWS (New commands): Mention "maint set/show test-settings"
5527 instead of "maint test-settings".
5528 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5529 (maintenance_test_settings_set_list): Rename to ...
5530 (maintenance_set_test_settings_list): ... this.
5531 (maintenance_test_settings_show_list): Rename to ...
5532 (maintenance_show_test_settings_list): ... this.
5533 (maintenance_test_settings_cmd): Delete.
5534 (maintenance_test_settings_set_cmd): ...
5535 (maintenance_set_test_settings_cmd): ... this.
5536 (maintenance_test_settings_show_cmd): ...
5537 (maintenance_show_test_settings_cmd): ... this.
5538 (maintenance_test_settings_show_value_cmd):
5539 (maintenance_show_test_settings_value_cmd): ... this.
5540 (_initialize_maint_test_settings): No longer install the "maint
5541 test-settings" prefix command. Rename "maint test-settings set"
5542 to "maint set test-settings", and "maint test-settings show" to
5543 "maint show test-settings". Adjust all subcommands.
5544
d1fcf2fd
PA
55452019-07-03 Pedro Alves <palves@redhat.com>
5546
5547 * maint-test-settings.c: Fix file's intro comment. Replace all
5548 references to "test-options" with references to "test-settings",
5549 in comments.
5550
970f9d09
PA
55512019-07-03 Pedro Alves <palves@redhat.com>
5552
5553 * maint-test-settings.c (maintenance_test_settings_xxx)
5554 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5555 New.
5556 (maintenance_test_settings_enums): Use them.
5557 (maintenance_test_settings_enum): Default to
5558 maintenance_test_settings_xxx.
5559 (_initialize_maint_test_settings): Initialize
5560 MAINTENANCE_TEST_SETTINGS_FILENAME.
5561
f3869b1a
SM
55622019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * breakpoint.h (remove_breakpoints_inf): Change return type to
5565 void, move function documentation here.
5566 * breakpoint.c (remove_breakpoints_inf): Change return type to
5567 void, move function documentation to header.
5568
54d66006
PA
55692019-07-02 Pedro Alves <palves@redhat.com>
5570
5571 * NEWS (Completion improvements): Mention "info threads".
5572 * thread.c (struct info_threads_opts, info_threads_option_defs)
5573 (make_info_threads_options_def_group): New.
5574 (info_threads_command): Use gdb::option::process_options.
5575 (info_threads_command_completer): New.
5576 (_initialize_thread): Use gdb::option::build_help to build the
5577 help text for "info threads".
5578
854f6088
SM
55792019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * defs.h (generic_load): Move from here...
5582 * symfile.h (generic_load): ... to here. Rename name parameter
5583 to args.
5584 * symfile.c (generic_load): Add comment.
5585
54ee4252
TT
55862019-07-01 Tom Tromey <tromey@adacore.com>
5587
5588 * dwarf2read.c
5589 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5590 declaration of without_params. Fix formatting.
5591
65392b3e
TT
55922019-07-01 Tom Tromey <tromey@adacore.com>
5593
5594 * ada-exp.y (find_primitive_type): Update.
5595 * ada-lang.h (ada_lookup_symbol): Update.
5596 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5597 parameter.
5598 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5599
7d7571f0
SDJ
56002019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5601
5602 PR breakpoints/24541
5603 * gdbarch.c: Regenerate.
5604 * gdbarch.h: Regenerate.
5605 * gdbarch.sh: Add 'stap_adjust_register'.
5606 * i386-tdep.c: Include '<unordered_set>'.
5607 (i386_stap_adjust_register): New function.
5608 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5609 * stap-probe.c (stap_parse_register_operand): Call
5610 'gdbarch_stap_adjust_register'.
5611
5af5392a
SDJ
56122019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5613
5614 PR python/24742
5615 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5616 * python/python.c (do_start_initialization): Use 'xmalloc'
5617 instead of 'PyMem_Malloc'.
5618
10d06d82
TT
56192019-06-28 Tom Tromey <tromey@adacore.com>
5620
5621 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5622 for Ada.
5623
1b7f24cd
TT
56242019-06-27 Tom Tromey <tromey@adacore.com>
5625
5626 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5627 objfile_key.
5628 (arm_find_mapping_symbol, arm_record_special_symbol)
5629 (_initialize_arm_tdep): Update.
5630 (arm_objfile_data_free): Remove.
5631
3d507ff2
TT
56322019-06-27 Tom Tromey <tromey@adacore.com>
5633
5634 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5635 to cp_print_static_field.
5636
762c164d
TT
56372019-06-26 Tom Tromey <tromey@adacore.com>
5638
5639 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5640 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5641 declare.
5642
aa2f9bcf
AH
56432019-06-26 Alan Hayward <alan.hayward@arm.com>
5644
5645 * features/aarch64-core.c (create_feature_aarch64_core):
5646 Regenerate.
5647 * features/aarch64-core.xml: Add cpsr flags.
5648
3426ae57
AH
56492019-06-26 Alan Hayward <alan.hayward@arm.com>
5650
5651 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5652 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5653
4838e44c
SM
56542019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5657 field.
5658 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5659 use.
5660 (arm_record_special_symbol): Don't insert new symbol in sorted
5661 position, push it at the end.
5662
54cc7474
SM
56632019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5666 (arm_mapping_symbol_s): Remove.
5667 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5668 (arm_mapping_symbol_vec): New typedef.
5669 (struct arm_per_objfile): Add constructor.
5670 <section_maps>: Change type to
5671 std::unique_ptr<arm_mapping_symbol_vec[]>.
5672 (arm_compare_mapping_symbols): Remove.
5673 (arm_find_mapping_symbol): Adjust to section_maps type change.
5674 (arm_objfile_data_free): Call delete on arm_per_objfile.
5675 (arm_record_special_symbol): Adjust to section_maps type change.
5676 Allocate arm_per_objfile with new.
5677
b65b566c
PW
56782019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5679
5680 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5681 with the command prefix.
5682
c2fc64f5
TT
56832019-06-25 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5686 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5687
fb54fa76
TT
56882019-06-25 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5691 type.
5692 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5693 protected.
5694
f7952c57
TT
56952019-06-25 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-winsource.c
5698 (tui_source_window_base::set_is_exec_point_at): Add check against
5699 LOA_ADDRESS.
5700
17568d78
TT
57012019-06-25 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-source.c (tui_set_source_content): Don't check before
5704 xfree.
5705 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5706
53e7cdba
TT
57072019-06-25 Tom Tromey <tom@tromey.com>
5708
5709 * tui/tui-winsource.h (tui_update_source_window_as_is)
5710 (tui_alloc_source_buffer, tui_line_is_displayed)
5711 (tui_addr_is_displayed): Change type of win_info.
5712 * tui/tui-winsource.c (tui_update_source_window_as_is)
5713 (tui_clear_source_content, tui_show_source_line)
5714 (tui_show_source_content, tui_source_window_base::refill)
5715 (tui_source_window_base::set_is_exec_point_at)
5716 (tui_source_window_base::set_is_exec_point_at)
5717 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5718 (tui_alloc_source_buffer, tui_line_is_displayed)
5719 (tui_addr_is_displayed): Change type of win_info. Update.
5720 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5721 (tui_source_window_base::do_make_visible_with_new_height):
5722 Update.
5723 * tui/tui-source.c (tui_set_source_content)
5724 (tui_set_source_content_nil)
5725 (tui_source_window::do_scroll_vertical): Update.
5726 * tui/tui-layout.c (show_layout): Update.
5727 * tui/tui-disasm.c (tui_set_disassem_content)
5728 (tui_disasm_window::do_scroll_vertical): Update.
5729 * tui/tui-data.h (tui_win_content): Remove.
5730 (struct tui_gen_win_info) <content, content_size>: Remove.
5731 (struct tui_source_element): Add initializers and destructor.
5732 (union tui_which_element, struct tui_win_element): Remove.
5733 (struct tui_source_window_base) <content>: New field.
5734 (struct tui_data_window): Remove destructor.
5735 (tui_alloc_content, tui_free_win_content)
5736 (tui_free_all_source_wins_content): Don't declare.
5737 * tui/tui-data.c (tui_initialize_static_data): Update.
5738 (init_content_element, tui_alloc_content): Remove.
5739 (~tui_gen_win_info): Update.
5740 (~tui_data_window, tui_free_all_source_wins_content)
5741 (tui_free_win_content, free_content, free_content_elements):
5742 Remove.
5743
7908abbf
TT
57442019-06-25 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-winsource.h (tui_clear_source_content)
5747 (tui_erase_source_content, tui_show_source_content): Change type
5748 of win_info.
5749 * tui/tui-winsource.c (tui_clear_source_content)
5750 (tui_erase_source_content, tui_show_source_content): Change type
5751 of win_info.
5752 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5753 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5754 win_info.
5755 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5756 win_info.
5757 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5758
02c28df0
TT
57592019-06-25 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.c (tui_clear_source_content)
5762 (tui_source_window_base::set_is_exec_point_at): Update.
5763 * tui/tui-source.c (tui_set_source_content_nil): Update.
5764 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5765 a bool.
5766 * tui/tui-data.c (init_content_element): Update.
5767
6658b1bf
TT
57682019-06-25 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5771 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5772 * tui/tui-layout.c (init_and_make_win): Update.
5773 * tui/tui.h (enum tui_win_type): Update.
5774 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5775 tui_win_is_auxillary.
5776 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5777 tui_win_is_auxillary.
5778
21e1c91e
TT
57792019-06-25 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5782 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5783 (tui_delete_data_content_windows, tui_display_all_data)
5784 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5785 Update.
5786 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5787 * tui/tui-regs.c (tui_last_regs_line_no)
5788 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5789 (tui_show_registers): Update.
5790 (tui_show_register_group): Return void. Update.
5791 (tui_display_registers_from, tui_display_reg_element_at_line)
5792 (tui_display_registers_from_line, tui_check_register_values):
5793 Update.
5794 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5795 member.
5796 (struct tui_data_window) <regs_content>: Now a std::vector.
5797 <regs_content_count>: Remove.
5798 (tui_add_content_elements, tui_free_data_content): Don't declare.
5799 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5800 (init_content_element): Remove DATA_WIN case. Add assert.
5801 (tui_add_content_elements): Remove.
5802 (tui_data_window): Update.
5803 (tui_free_data_content): Remove.
5804 (free_content_elements): Remove DATA_WIN case.
5805
115ac53b
TT
58062019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-data.c (tui_data_item_window): Update.
5809 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5810 * tui/tui-windata.c (tui_display_all_data)
5811 (tui_display_data_from_line): Update.
5812 (tui_check_data_values): Remove.
5813 * tui/tui-regs.c (tui_show_register_group)
5814 (tui_display_reg_element_at_line): Update.
5815 * tui/tui-hooks.c (tui_register_changed)
5816 (tui_refresh_frame_and_register_information): Call
5817 tui_check_register_values.
5818 * tui/tui-data.h (struct tui_data_window) <data_content,
5819 data_content_count, data_type>: Remove.
5820 (enum tui_data_type): Remove.
5821
5822 * tui/tui-data.c (tui_data_window::clear_detail)
5823 (~tui_data_window): Update.
5824
eaf9738b
TT
58252019-06-25 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5828 declare.
5829 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5830 Rename from tui_first_data_item_displayed. Update.
5831 (tui_data_window::refresh_all)
5832 (tui_data_window::do_scroll_vertical): Update.
5833 * tui/tui-data.h (struct tui_data_window)
5834 <first_data_item_displayed>: Declare new method.
5835
31ca4723
TT
58362019-06-25 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5839 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5840 contents...
5841 (tui_initialize_static_data): ...here.
5842
41bcff7f
TT
58432019-06-25 Tom Tromey <tom@tromey.com>
5844
5845 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5846 (tui_display_registers_from, tui_check_register_values): Update.
5847 (tui_display_register): Remove win_info parameter; update.
5848 (tui_get_register): Change type of parameters.
5849 * tui/tui-data.h (struct tui_data_element): Remove.
5850 (union tui_which_element) <data>: Remove.
5851 <data_window>: Change type.
5852 (struct tui_data_item_window): New.
5853 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5854 case. Add assert.
5855 (~tui_data_item_window): New destructor.
5856 (free_content_elements): Remove DATA_ITEM_WIN case.
5857
d2802c33
TT
58582019-06-25 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5861 Remove.
5862
dd835f8b
TT
58632019-06-25 Tom Tromey <tom@tromey.com>
5864
5865 * tui/tui-data.h (struct tui_command_element): Remove.
5866 (union tui_which_element) <command>: Remove.
5867 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5868 assert.
5869 (free_content_elements): Remove CMD_WIN case.
5870
bd7db367
TT
58712019-06-25 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-layout.c (tui_set_layout): Update.
5874 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5875 * tui/tui-data.c (layout_def): Update.
5876
3add462f
TT
58772019-06-25 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5880 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5881 (tui_source_window_base::set_new_height): Update.
5882 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5883 Update.
5884 (tui_set_locator_fullname, tui_set_locator_info)
5885 (tui_show_frame_info): Update.
5886 * tui/tui-source.c (tui_set_source_content)
5887 (tui_source_is_displayed): Update.
5888 * tui/tui-layout.c (show_source_disasm_command, show_data)
5889 (show_source_or_disasm_and_command): Update.
5890 * tui/tui-disasm.c (tui_set_disassem_content)
5891 (tui_get_begin_asm_address): Update.
5892 * tui/tui-data.h (struct tui_locator_element): Remove.
5893 (union tui_which_element) <locator>: Remove.
5894 (struct tui_locator_window): New.
5895 (tui_locator_win_info_ptr): Change return type.
5896 * tui/tui-data.c (_locator): Change type.
5897 (tui_locator_win_info_ptr): Change return type.
5898 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5899 (tui_alloc_content): Add assert.
5900
489e9d8b
TT
59012019-06-25 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui-winsource.c
5904 (tui_exec_info_window::maybe_allocate_content): New method.
5905 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5906 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5907 (make_source_or_disasm_window): Add cast.
5908 * tui/tui-data.h (union tui_which_element) <simple_string>:
5909 Remove.
5910 (struct tui_source_info): New.
5911 (struct tui_source_window_base) <execution_info>: Change type.
5912 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5913 case, and add assert.
5914 (tui_alloc_content): Add assert.
5915
c3fabb7d
TT
59162019-06-25 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5919 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5920 * tui/tui-data.c (tui_alloc_win_info): Remove.
5921
bbc228ee
TT
59222019-06-25 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5925 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5926 can_highlight.
5927
5fcee43a
TT
59282019-06-25 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5931 make_visible_with_new_height method.
5932 (tui_win_info::make_visible_with_new_height): New method.
5933 (tui_source_window_base::do_make_visible_with_new_height)
5934 (tui_data_window::do_make_visible_with_new_height)
5935 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5936 (make_visible_with_new_height): Remove.
5937 (tui_resize_all, tui_adjust_win_heights): Use
5938 make_visible_with_new_height method.
5939 * tui/tui-data.h (struct tui_win_info)
5940 <do_make_visible_with_new_height, make_visible_with_new_height>:
5941 New methods.
5942 (struct tui_source_window_base, struct tui_data_window)
5943 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5944 methods.
5945
d83f1fe6
TT
59462019-06-25 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5949 method.
5950 (update_tab_width): Call update_tab_width method.
5951 * tui/tui-data.h (struct tui_win_info)
5952 (struct tui_source_window_base) <update_tab_width>: New methods.
5953
17374de4
TT
59542019-06-25 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5957 parameter.
5958 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5959 parameter.
5960 (tui_gen_win_info::make_visible): Update.
5961 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5962 parameter.
5963 * tui/tui-data.h (enum tui_box): New enum.
5964 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5965
f936bca2
TT
59662019-06-25 Tom Tromey <tom@tromey.com>
5967
5968 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5969 init_and_make_win for EXEC_INFO_WIN.
5970 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5971 longer inline.
5972 (struct tui_win_info) <~tui_win_info>: Inline.
5973 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5974 Don't declare.
5975 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5976 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5977 Remove.
5978 (tui_initialize_static_data): Update.
5979 (~tui_gen_win_info): Handle more cleanup here.
5980 (~tui_source_window_base): Delete "execution_info".
5981 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5982
d6ba6a11
TT
59832019-06-25 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-layout.c (make_command_window): Don't set
5986 can_highlight.
5987 (show_source_disasm_command): Call the reset method.
5988 (show_data): Don't set can_highlight. Call the reset method.
5989 (tui_gen_win_info::reset): Rename from init_gen_win_info
5990 (init_and_make_win): Simplify. Return tui_gen_win_info.
5991 (show_source_or_disasm_and_command): Call the reset method.
5992 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5993 (struct tui_cmd_window): Set can_highlight.
5994
48a3bd16
TT
59952019-06-25 Tom Tromey <tom@tromey.com>
5996
5997 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5998 from make_visible.
5999 (tui_make_visible, tui_make_invisible): Rewrite.
6000 (tui_win_info::make_visible): Remove.
6001 (tui_source_window_base::make_visible): Update.
6002 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6003 method. Moved from...
6004 (struct tui_win_info) <make_visible>: ...here.
6005
c3bd716f
TT
60062019-06-25 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-winsource.c
6009 (tui_source_window_base::do_scroll_horizontal): Remove direction
6010 parameter.
6011 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6012 direction parameter.
6013 * tui/tui-win.c (tui_win_info::forward_scroll)
6014 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6015 (tui_win_info::right_scroll): Update.
6016 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6017 direction parameter.
6018 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6019 direction parameter.
6020 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6021 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6022 Remove direction parameter.
6023 (struct tui_source_window_base, struct tui_source_window)
6024 (struct tui_disasm_window, struct tui_data_window)
6025 (struct tui_cmd_window): Update.
6026
21c32dca
TT
60272019-06-25 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-winsource.h (tui_set_exec_info_content)
6030 (tui_show_exec_info_content, tui_erase_exec_info_content)
6031 (tui_clear_exec_info_content, tui_update_exec_info): Change
6032 argument to tui_source_window_base.
6033 * tui/tui-winsource.c (tui_set_exec_info_content)
6034 (tui_show_exec_info_content, tui_erase_exec_info_content)
6035 (tui_clear_exec_info_content, tui_update_exec_info): Change
6036 argument to tui_source_window_base.
6037
73fbdc65
TT
60382019-06-25 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6041 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6042
33325343
TT
60432019-06-25 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6046 check.
6047
29d2c474
TT
60482019-06-25 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6051 type to void.
6052 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6053 type to void.
6054 * tui/tui-source.c (tui_set_source_content): Update.
6055 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6056
152f3f4b
TT
60572019-06-25 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-win.c (window_name_completer, tui_set_focus)
6060 (tui_all_windows_info): Use name method.
6061 * tui/tui-data.h (struct tui_gen_win_info)
6062 (struct tui_source_window, struct tui_disasm_window)
6063 (struct tui_data_window, struct tui_cmd_window) <name>: New
6064 method.
6065 (tui_win_name): Don't declare.
6066 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6067 (tui_win_name): Remove.
6068
be4da588
TT
60692019-06-25 Tom Tromey <tom@tromey.com>
6070
6071 * tui/tui-winsource.h (tui_update_source_window)
6072 (tui_update_source_window_as_is): Change parameter type.
6073 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6074 to be a tui_source_window_base.
6075 (tui_update_source_window_as_is): Likewise.
6076 * tui/tui-win.c (make_visible_with_new_height): Update.
6077
5b81daba
TT
60782019-06-25 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-winsource.c (tui_erase_source_content)
6081 (tui_show_source_content, tui_show_exec_info_content)
6082 (tui_erase_exec_info_content): Use refresh_window method.
6083 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6084 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6085 from tui_refresh_win.
6086 (tui_data_window::refresh_window): New method.
6087 (tui_win_info::refresh, tui_source_window_base::refresh)
6088 (tui_refresh_all): Use refresh_window method.
6089 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6090 method.
6091 * tui/tui-regs.c (tui_display_register): Call refresh_window
6092 method.
6093 * tui/tui-layout.c (show_source_disasm_command)
6094 (show_source_or_disasm_and_command): Call refresh_window method.
6095 * tui/tui-data.h (struct tui_gen_win_info)
6096 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6097 New method.
6098
cb2ce893
TT
60992019-06-25 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui.c (tui_rl_other_window, tui_enable)
6102 (tui_is_window_visible, tui_get_command_dimension): Update.
6103 * tui/tui-winsource.c (tui_update_source_window_as_is)
6104 (tui_clear_source_content, tui_erase_source_content)
6105 (tui_show_source_line, tui_source_window_base::refill)
6106 (tui_source_window_base::do_scroll_horizontal)
6107 (tui_source_window_base::set_is_exec_point_at)
6108 (tui_update_breakpoint_info, tui_set_exec_info_content)
6109 (tui_alloc_source_buffer, tui_line_is_displayed)
6110 (tui_addr_is_displayed): Update.
6111 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6112 (tui_check_and_display_highlight_if_needed)
6113 (tui_win_info::make_visible, tui_win_info::refresh)
6114 (tui_refresh_all): Update.
6115 * tui/tui-windata.c (tui_first_data_item_displayed)
6116 (tui_delete_data_content_windows, tui_erase_data_content)
6117 (tui_display_all_data, tui_data_window::refresh_all)
6118 (tui_check_data_values): Update.
6119 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6120 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6121 (tui_win_info::backward_scroll, tui_refresh_all_win)
6122 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6123 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6124 (tui_source_window_base::set_new_height)
6125 (tui_data_window::set_new_height)
6126 (make_invisible_and_set_new_height)
6127 (make_visible_with_new_height, new_height_ok)
6128 (parse_scrolling_args): Update.
6129 * tui/tui-stack.c (tui_show_frame_info): Update.
6130 * tui/tui-source.c (tui_set_source_content)
6131 (tui_set_source_content_nil, tui_source_is_displayed)
6132 (tui_source_window::do_scroll_vertical): Update.
6133 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6134 (tui_display_registers_from, tui_display_reg_element_at_line)
6135 (tui_check_register_values, tui_reg_command): Update.
6136 * tui/tui-layout.c (tui_default_win_height)
6137 (show_source_disasm_command, show_data, init_and_make_win)
6138 (show_source_or_disasm_and_command): Update.
6139 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6140 (tui_redisplay_readline, tui_mld_flush)
6141 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6142 (tui_getc): Update.
6143 * tui/tui-disasm.c (tui_set_disassem_content)
6144 (tui_disasm_window::do_scroll_vertical): Update.
6145 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6146 Now virtual.
6147 (struct tui_win_info): Derive from tui_gen_win_info.
6148 <~tui_win_info>: Mark as override.
6149 <generic>: Remove member.
6150 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6151 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6152 (~tui_data_window, ~tui_win_info)
6153 (tui_free_all_source_wins_content): Update.
6154 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6155
ab313b35
TT
61562019-06-25 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-layout.c (init_and_make_win): Use new.
6159 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6160 destructor, initializers.
6161 (tui_alloc_generic_win_info): Don't declare.
6162 * tui/tui-data.c (_locator): Add argument to constructor.
6163 (source_win, disasm_win): New globals.
6164 (exec_info): Remove.
6165 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6166 Update.
6167 (tui_alloc_generic_win_info): Remove.
6168 (init_content_element): Use new.
6169 (tui_win_info::tui_win_info): Update.
6170 (free_content_elements) <case DATA_WIN>: Use delete.
6171
dc2c33e4
TT
61722019-06-25 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6175 * tui/tui-windata.c (tui_first_data_item_displayed)
6176 (tui_delete_data_content_windows): Update.
6177 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6178 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6179 (tui_display_registers_from, tui_check_register_values): Update.
6180 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6181 pointer.
6182 * tui/tui-data.c (init_content_element): Update. Allocate the new
6183 window.
6184 (tui_free_data_content): Update.
6185 (free_content_elements) <case DATA_WIN>: Free the window.
6186
214a5cbe
TT
61872019-06-25 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6190 Update.
6191 * tui/tui-layout.c (make_command_window)
6192 (show_source_disasm_command, show_data, init_and_make_win)
6193 (show_source_or_disasm_and_command): Update.
6194 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6195 method.
6196 <can_highight, is_highlighted>: Now bool.
6197 (tui_set_win_highlight): Don't declare.
6198 * tui/tui-data.c (tui_set_win_highlight): Remove.
6199
8e2daf15
TT
62002019-06-25 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-wingeneral.c (make_visible): Remove check of window
6203 type.
6204
8903bd8a
TT
62052019-06-25 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui-win.c (tui_win_info::max_height)
6208 (tui_cmd_window::max_height): New methods.
6209 (new_height_ok): Call max_height.
6210 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6211 <max_height>: New method.
6212
3f02ce1e
TT
62132019-06-25 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-win.c (tui_source_window_base::set_new_height)
6216 (tui_data_window::set_new_height): New methods.
6217 (make_invisible_and_set_new_height): Call set_new_height method.
6218 * tui/tui-data.h (struct tui_win_info)
6219 (struct tui_source_window_base, struct tui_data_window)
6220 <set_new_height>: New method.
6221
1825f487
TT
62222019-06-25 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6225 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6226 tui_refresh_data_win.
6227 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6228 method.
6229 (tui_refresh_all_win): Call the refresh_all method.
6230 (tui_set_focus): Likewise.
6231 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6232 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6233 Likewise.
6234
ad54d15b
TT
62352019-06-25 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-winsource.h (tui_refill_source_window)
6238 (tui_set_is_exec_point_at): Don't declare.
6239 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6240 (tui_source_window_base::refill): Rename from
6241 tui_refill_source_window.
6242 (tui_source_window_base::do_scroll_horizontal): Update.
6243 (tui_source_window_base::set_is_exec_point_at): Rename from
6244 tui_set_is_exec_point_at.
6245 (tui_update_all_breakpoint_info): Update.
6246 * tui/tui-stack.c (tui_show_frame_info): Update.
6247 * tui/tui-layout.c (show_data): Add cast.
6248 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6249 * tui/tui-data.h (struct tui_source_window_base) <refill,
6250 set_is_exec_point_at>: New methods.
6251 (tui_source_windows, tui_add_to_source_windows): Update types.
6252 (tui_add_to_source_windows): Remove redundant declaration.
6253 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6254 (tui_source_windows): Change return type.
6255 (tui_clear_source_windows_detail): Update.
6256 (tui_add_to_source_windows): Change type of parameter.
6257 (tui_free_all_source_wins_content): Update.
6258
2042b506
TT
62592019-06-25 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui-wingeneral.c (tui_win_info::refresh)
6262 (tui_source_window_base::refresh): New methods.
6263 (tui_refresh_all): Call the refresh method.
6264 * tui/tui-data.h (struct tui_win_info)
6265 (struct tui_source_window_base) <refresh>: New method.
6266
56122977
TT
62672019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui.h (tui_is_window_visible): Return bool.
6270 * tui/tui.c (tui_is_window_visible): Return bool.
6271 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6272 (tui_make_visible, tui_make_invisible)
6273 (tui_win_info::make_visible)
6274 (tui_source_window_base::make_visible, make_all_visible)
6275 (tui_make_all_visible, tui_make_all_invisible): Update.
6276 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6277 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6278 bool.
6279 (struct tui_win_info, struct tui_source_window_base)
6280 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6281 * tui/tui-data.c (tui_init_generic_part): Update.
6282
cda37efb
TT
62832019-06-25 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6286 (tui_source_window_base::make_visible): New methods.
6287 (make_all_visible): Make method call.
6288 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6289 (struct tui_source_window_base, struct tui_cmd_window): Override
6290 make_visible.
6291 (tui_win_is_source_type): Don't declare.
6292 * tui/tui-data.c (tui_win_is_source_type): Remove.
6293
6a0ee02c
TT
62942019-06-25 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6297 NULL check.
6298
63901aec
TT
62992019-06-25 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6302 Inline constructor. Add initializers for members.
6303 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6304 constructors; now inline in class.
6305
ceb13a13
TT
63062019-06-25 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-regs.c (tui_show_registers): Update.
6309 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6310 bool.
6311 * tui/tui-data.c (tui_data_window::clear_detail)
6312 (tui_data_window): Update.
6313
238eb706
TT
63142019-06-25 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-windata.c (tui_display_all_data)
6317 (tui_display_data_from_line, tui_display_data_from)
6318 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6319 Update.
6320 * tui/tui-regs.c (tui_last_regs_line_no)
6321 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6322 (tui_show_registers, tui_show_register_group)
6323 (tui_display_registers_from, tui_display_reg_element_at_line)
6324 (tui_display_registers_from_line, tui_check_register_values)
6325 (tui_reg_next, tui_reg_prev): Update.
6326 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6327 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6328 tui_data_window.
6329 (struct tui_win_info) <detail>: Remove. Add new fields from
6330 tui_data_info.
6331 (TUI_DATA_WIN): Add cast.
6332 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6333 (~tui_data_window): Simplify.
6334
81491aa0
TT
63352019-06-25 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-layout.c (show_source_disasm_command)
6338 (show_source_or_disasm_and_command): Update.
6339 * tui/tui-io.c (update_cmdwin_start_line)
6340 (tui_redisplay_readline): Update.
6341 * tui/tui-data.h (struct tui_command_info): Remove.
6342 (struct tui_win_info) <detail>: Remove command_info member.
6343 (struct tui_data_window) <start_line>: New member, from
6344 tui_command_info.
6345 (TUI_CMD_WIN): Add casts.
6346
e6e41501
TT
63472019-06-25 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui-winsource.c (tui_update_source_window)
6350 (tui_refill_source_window)
6351 (tui_source_window_base::do_scroll_horizontal)
6352 (tui_update_breakpoint_info, tui_set_exec_info_content)
6353 (tui_show_exec_info_content, tui_erase_exec_info_content)
6354 (tui_clear_exec_info_content): Update.
6355 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6356 Update.
6357 * tui/tui-win.c (make_invisible_and_set_new_height)
6358 (make_visible_with_new_height): Update.
6359 * tui/tui-source.c (tui_set_source_content)
6360 (tui_show_symtab_source): Update.
6361 * tui/tui-layout.c (extract_display_start_addr)
6362 (show_source_disasm_command, show_data)
6363 (make_source_or_disasm_window)
6364 (show_source_or_disasm_and_command): Update.
6365 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6366 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6367 "gdbarch".
6368 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6369 to tui_source_window_base.
6370 (struct tui_win_info) <detail>: Remove source_info member.
6371 (struct tui_source_window_base) <has_locator>: Inline.
6372 Move contents from tui_source_info; rename has_locator member to
6373 m_has_locator.
6374 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6375 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6376 header file.
6377 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6378 Simplify.
6379 (tui_free_all_source_wins_content): Cast to
6380 tui_source_window_base.
6381
44f0e208
TT
63822019-06-25 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-win.c (make_invisible_and_set_new_height)
6385 (make_visible_with_new_height): Call has_locator method.
6386 * tui/tui-layout.c (show_source_disasm_command, show_data)
6387 (show_source_or_disasm_and_command): Update for bool change.
6388 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6389 (tui_win_info) <has_locator>: New method.
6390 (struct tui_source_window_base) <has_locator>: New method.
6391 (tui_win_has_locator): Don't declare.
6392 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6393 from tui_win_has_locator.
6394 (tui_source_window_base): Use false, not FALSE.
6395
7778b912
TT
63962019-06-25 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6399 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6400 clear_detail method directly.
6401 (tui_clear_win_detail): Remove.
6402
f83d391c
TT
64032019-06-25 Tom Tromey <tom@tromey.com>
6404
6405 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6406 "this", not TUI_DISASM_WIN.
6407
13446e05
TT
64082019-06-25 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6411 declare.
6412 * tui/tui-winsource.c
6413 (tui_source_window_base::do_scroll_horizontal): Rename from
6414 tui_horizontal_source_scroll.
6415 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6416 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6417 from tui_vertical_data_scroll.
6418 * tui/tui-win.h (tui_scroll): Don't declare.
6419 * tui/tui-win.c (tui_win_info::forward_scroll)
6420 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6421 (tui_win_info::right_scroll): Rename and update.
6422 (tui_scroll_forward_command, tui_scroll_backward_command)
6423 (tui_scroll_left_command, tui_scroll_right_command): Update.
6424 (tui_scroll): Remove.
6425 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6426 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6427 from tui_vertical_source_scroll.
6428 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6429 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6430 from tui_vertical_disassem_scroll.
6431 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6432 do_scroll_horizontal>: New methods.
6433 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6434 Likewise.
6435 (struct tui_source_window_base): Add do_scroll_horizontal.
6436 (struct tui_source_window, struct tui_disasm_window): Add
6437 do_scroll_vertical.
6438 (struct tui_data_window, struct tui_cmd_window): Add
6439 do_scroll_horizontal and do_scroll_vertical.
6440 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6441
5cf82909
TT
64422019-06-25 Tom Tromey <tom@tromey.com>
6443
6444 * tui/tui-data.h (struct tui_source_window_base): New struct.
6445 (struct tui_source_window): Derive from tui_source_window_base.
6446 (struct tui_disasm_window): New struct.
6447 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6448 from tui_source_window::clear_detail.
6449 (tui_source_window_base): Rename from tui_source_window.
6450 (~tui_source_window_base): Rename from ~tui_source_window.
6451 (tui_alloc_win_info): Create a tui_disasm_window.
6452
ee1d42d6
TT
64532019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-data.h (struct tui_source_window)
6456 (struct tui_data_window): Declare destructors.
6457 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6458 destructors.
6459 (tui_win_info): Simplify.
6460
b4eb2452
TT
64612019-06-25 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-winsource.c (tui_display_main)
6464 (tui_update_source_windows_with_addr)
6465 (tui_update_all_breakpoint_info): Update.
6466 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6467 (new_height_ok, parse_scrolling_args): Update.
6468 * tui/tui-stack.c (tui_show_frame_info): Update.
6469 * tui/tui-data.h (struct tui_list): Remove.
6470 (tui_source_windows): Return a reference to a std::vector.
6471 * tui/tui-data.c (source_windows): Now a std::vector.
6472 (tui_source_windows): Change return type.
6473 (tui_clear_source_windows): Rewrite.
6474 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6475 (tui_free_all_source_wins_content): Rewrite.
6476
8761a91b
TT
64772019-06-25 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6480 (struct tui_data_window, struct tui_cmd_window): Declare
6481 clear_detail method.
6482 * tui/tui-data.c (tui_source_window::clear_detail)
6483 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6484 methods.
6485 (tui_clear_win_detail): Simplify.
6486
0ed69eda
TT
64872019-06-25 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-layout.c (make_source_window, make_disasm_window)
6490 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6491 Return the new window.
6492 (show_source_disasm_command, show_data)
6493 (show_source_or_disasm_and_command): Update.
6494
82432e10
TT
64952019-06-25 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6498 parameter. Return the new window.
6499 (show_source_disasm_command): Update and remove NULL check.
6500 (show_source_or_disasm_and_command): Update.
6501
ec328aa5
TT
65022019-06-25 Tom Tromey <tom@tromey.com>
6503
6504 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6505
33b906ab
TT
65062019-06-25 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-data.h (struct tui_win_info): Make constructor
6509 protected. Make destructor virtual. Add initializers.
6510 (tui_source_window, tui_data_window, tui_cmd_window): New
6511 classes.
6512 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6513 constructor. Add "type" parameter.
6514 (tui_source_window, tui_data_window, tui_cmd_window): New
6515 constructors.
6516 (tui_alloc_win_info): Instantiate the appropriate subclass.
6517
e7e11af4
TT
65182019-06-25 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-win.c (tui_resize_all): Use delete.
6521 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6522 destructor.
6523 (tui_free_window): Don't declare.
6524 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6525 Update.
6526
6792b55e
TT
65272019-06-25 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-data.h (struct tui_win_info): Add constructor.
6530 * tui/tui-data.c (tui_alloc_win_info): Use new.
6531 (tui_free_window): Use delete.
6532
f95675e1
TT
65332019-06-22 Tom Tromey <tom@tromey.com>
6534
6535 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6536 declare.
6537 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6538
5bff081c
TT
65392019-06-22 Tom Tromey <tom@tromey.com>
6540
6541 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6542 declare.
6543 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6544
47e3f474
TV
65452019-06-22 Tom de Vries <tdevries@suse.de>
6546
6547 * dwarf2read.c (create_addrmap_from_aranges)
6548 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6549 instead of '%zu'.
6550
fd5866f6
SM
65512019-06-21 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2read.h (dwarf2_section_info_def): Remove.
6554 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6555 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6556 std::vector<dwarf2_section_info>.
6557 (struct dwo_file) <~dwo_file>: Remove.
6558 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6559 types field.
6560 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6561 (dwarf2_read_debug_names): Likewise.
6562 (create_debug_types_hash_table): Change parameter type to
6563 array_view, adjust code accordingly.
6564 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6565 (partial_die_info::fixup): Likewise.
6566 (determine_prefix): Likewise.
6567 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6568
fb1eb2f9
SM
65692019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6572 gdb_bfd_ref_ptr.
6573 <~dwo_file>: Remove call to gdb_bfd_unref.
6574 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6575 gdb_bfd_ref_ptr::get.
6576
51ac9db5
SM
65772019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6580 type to htab_up.
6581 * dwarf2read.c (struct dwo_file): Initialize fields.
6582 <~dwo_file>: New.
6583 (free_dwo_file): Remove, move content to ~dwo_file.
6584 (struct dwo_file_deleter): Remove.
6585 (dwo_file_up>: Remove custom deleter.
6586 (free_dwo_files): Remove.
6587 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6588 dwo_files.
6589 (process_skeletonless_type_units): Call unique_ptr::get.
6590 (allocate_dwo_file_hash_table): Add deleter to created hash
6591 table. Change return type to htab_up.
6592 (lookup_dwo_file_slot): Don't memset dwo_file, call
6593 unique_ptr::get.
6594 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6595 (create_dwo_unit_in_dwp_v2): Likewise.
6596 (open_and_init_dwo_file): Likewise.
6597 (free_dwo_file_from_slot): Remove.
6598
dc4ccb6f
SM
65992019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * dwarf2read.h (struct dwarf2_section_info) <readin,
6602 is_virtual>: Change type to bool.
6603 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6604 true instead of 1.
6605
e6a1c5cb
TT
66062019-06-19 Tom Tromey <tom@tromey.com>
6607
6608 * tui/tui-data.h (tui_init_content_element): Don't declare.
6609
6f6ffbeb
TT
66102019-06-19 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-data.h (tui_init_win_info): Don't declare.
6613
f23f598e
TV
66142019-06-19 Tom de Vries <tdevries@suse.de>
6615
6616 * dwarf2read.h (abstract_to_concrete): Change type to
6617 std::unordered_map<sect_offset, std::vector<sect_offset>,
6618 gdb::hash_enum<sect_offset>>.
6619
680e1bee
TT
66202019-06-19 Tom Tromey <tromey@adacore.com>
6621
6622 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6623 EVAL_AVOID_SIDE_EFFECTS specially.
6624
dcf37923
TT
66252019-06-19 Tom Tromey <tromey@adacore.com>
6626
6627 * source-cache.c (highlighter): New global.
6628 (source_cache::get_source_lines): Create a highlighter on demand.
6629
494986d5
AB
66302019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * defs.h (deprecated_interactive_hook): Delete declaration.
6633 * interps.c (clear_interpreter_hooks): Remove use of
6634 deprecated_interactive_hook.
6635 * top.c (deprecated_interactive_hook): Delete definition.
6636 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6637
3360b6e7
TV
66382019-06-18 Tom de Vries <tdevries@suse.de>
6639
6640 PR gdb/24515
6641 * dwarf2read.h (abstract_to_concrete): Change type from
6642 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6643 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6644 * dwarf2read.c (read_variable): Update.
6645 (dwarf2_fetch_die_loc_sect_off): Update.
6646
310b3441
TV
66472019-06-17 Tom de Vries <tdevries@suse.de>
6648
6649 PR gdb/24617
6650 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6651 accessing parent[parent_len - 1].
6652
ba9777be
PP
66532019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6654
6655 PR gdb/24364
6656 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6657 call dtrace_process_dof with NULL dof.
6658
2b9f6e89
TV
66592019-06-16 Tom de Vries <tdevries@suse.de>
6660
6661 PR gdb/24445
6662 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6663
431b3ead
TT
66642019-06-16 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6667 (make_all_visible): Use address of member.
6668
d04b44a1
TT
66692019-06-16 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6672 (tui_free_window, free_content, free_content_elements): Remove
6673 unnecessary cast.
6674 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6675 cast.
6676 * tui/tui-regs.c (tui_show_register_group)
6677 (tui_display_registers_from, tui_display_reg_element_at_line):
6678 Remove unnecessary cast.
6679
bf5142e7
AB
66802019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6681
6682 * linux-nat.c (normal_mask): Delete.
6683 (_initialize_linux_nat): Don't initialise normal_mask.
6684
c4973306
SM
66852019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6686
6687 PR gdb/24445
6688 * dwarf-index-write.h (write_psymtabs_to_index): Add
6689 dwz_basename parameter.
6690 * dwarf-index-write.c (write_gdbindex): Move file writing to
6691 write_gdbindex_1. Change return type void.
6692 (assert_file_size): Move up, remove filename parameter.
6693 (write_gdbindex_1): New function.
6694 (write_debug_names): Change return type to void, call
6695 assert_file_size.
6696 (struct index_wip_file): New struct.
6697 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6698 file logic to index_wip_file. Write index for dwz file if
6699 needed.
6700 (save_gdb_index_command): Pass basename of dwz file, if present.
6701 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6702 build-id of dwz file, if present.
6703 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6704 (dwarf2_get_dwz_file): Likewise.
6705 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6706 (dwarf2_get_dwz_file): Likewise.
6707
395f9c91
TT
67082019-06-16 Tom Tromey <tom@tromey.com>
6709
6710 * coffread.c (process_coff_symbol): Use xstrdup.
6711 * value.c (create_internalvar): Use xstrdup.
6712
cafb3438
TT
67132019-06-16 Tom Tromey <tom@tromey.com>
6714
6715 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6716 * breakpoint.c (stopin_command, stopat_command)
6717 (until_break_command, decode_location_default): Remove unnecessary
6718 cast.
6719 * utils.c (subset_compare): Remove unnecessary cast.
6720 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6721 cast.
6722 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6723 cast.
6724 * infcmd.c (path_command): Remove unnecessary cast.
6725 * coffread.c (decode_type): Remove unnecessary cast.
6726 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6727 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6728 * tui/tui-stack.c (tui_show_locator_content)
6729 (tui_show_frame_info): Remove unnecessary cast.
6730 * tui/tui-win.c (tui_scroll_forward_command)
6731 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6732 (parse_scrolling_args): Remove unnecessary cast.
6733 * tui/tui-data.c (init_win_info, tui_del_window)
6734 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6735 (free_content_elements): Remove unnecessary cast.
6736 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6737 unnecessary cast.
6738 * tui/tui-source.c (tui_set_source_content)
6739 (tui_vertical_source_scroll): Remove unnecessary cast.
6740 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6741 cast.
6742 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6743 * tui/tui-regs.c (tui_display_registers_from)
6744 (tui_display_register): Remove unnecessary cast.
6745 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6746 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6747 (make_visible): Remove unnecessary cast.
6748 * tui/tui-winsource.c (tui_erase_source_content)
6749 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6750 unnecessary cast.
6751 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6752 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6753 * stabsread.c (read_type, read_array_type, read_range_type):
6754 Remove unnecessary cast.
6755 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6756 (parse_symbol, parse_type, upgrade_type, parse_external)
6757 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6758 unnecessary cast.
6759 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6760
730ead81
TT
67612019-06-16 Tom Tromey <tom@tromey.com>
6762
6763 * tui/tui-data.c (tui_alloc_generic_win_info)
6764 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6765 checks.
6766
584a927c
AB
67672019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6768 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * f-typeprint.c (f_print_type): Don't return early for not
6771 associated or not allocated types.
6772 (f_type_print_varspec_suffix): Add print_rank parameter and print
6773 ranks of array types in case they dangling.
6774 (f_type_print_base): Add print_rank parameter.
6775
30056ea0
AB
67762019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * NEWS: Mention new MI commands.
6779 * break-catch-throw.c (enum exception_event_kind): Move to
6780 breakpoint.h.
6781 (print_mention_exception_catchpoint): Output text as a single
6782 message.
6783 (catch_exception_command_1): Rename to...
6784 (catch_exception_event): ...this, make non-static, update header
6785 command, and change some parameter types.
6786 (catch_catch_command): Update for changes to
6787 catch_exception_command_1.
6788 (catch_throw_command): Likewise.
6789 (catch_rethrow_command): Likewise.
6790 * breakpoint.c (enum exception_event_kind): Delete.
6791 * breakpoint.h (enum exception_event_kind): Moved here from
6792 break-catch-throw.c.
6793 (catch_exception_event): Declare.
6794 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6795 (mi_cmd_catch_throw): New function.
6796 (mi_cmd_catch_rethrow): New function.
6797 (mi_cmd_catch_catch): New function.
6798 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6799 'catch-catch' entries.
6800 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6801 (mi_cmd_catch_rethrow): Declare.
6802 (mi_cmd_catch_catch): Declare.
6803
ec8e2b6d
AB
68042019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * annotate.c (annotate_source_line): Change return type to void,
6807 update implementation to match.
6808 * annotate.h (annotate_source_line): Change return type to void,
6809 update header comment.
6810 * stack.c (print_frame_info): Don't change what frame information
6811 is printed based on whether annotations are on or not.
6812
0d3abd8c
AB
68132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6816 (annotate_source): Make static.
6817 (annotate_source_line): Moved from source.c and renamed from
6818 identify_source_line. Update the return type.
6819 * annotate.h (annotate_source): Delete declaration.
6820 (annotate_source_line): Declaration moved from source.h, and
6821 renamed from identify_source_line. Return type updated.
6822 * source.c (identify_source_line): Moved to annotate.c and renamed
6823 to annotate_source_line.
6824 (info_line_command): Remove check of annotation_level.
6825 * source.h (identify_source_line): Move declaration to annotate.h
6826 and rename to annotate_source_line.
6827 * stack.c: Add 'annotate.h' include.
6828 (print_frame_info): Remove check of annotation_level before
6829 calling annotate_source_line.
6830
00df30ae
AB
68312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * source-cache.c (source_cache::get_plain_source_lines): Use
6834 open_source_file_with_line_charpos instead of just
6835 open_source_file, remove call to find_source_lines.
6836 (source_cache::get_source_lines): Likewise.
6837 * source.c (find_source_lines): Make static.
6838 (get_filename_and_charpos): Renamed into...
6839 (open_source_file_with_line_charpos): ..this along with changes to
6840 return a scoped_fd, and some other minor clean ups.
6841 (identify_source_line): Use open_source_file_with_line_charpos.
6842 (search_command_helper): Use open_source_file_with_line_charpos
6843 instead of just open_source_file, remove call to
6844 find_source_lines.
6845 * source.h (open_source_file_with_line_charpos): Declare new
6846 function.
6847 (find_source_lines): Delete declaration.
6848
afda45a2
AB
68492019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6850
6851 * source.c (get_filename_and_charpos): Remove fullname
6852 parameter.
6853 (identify_source_line): Update call to get_filename_and_charpos.
6854
0735b091
TT
68552019-06-14 Tom Tromey <tromey@adacore.com>
6856
6857 PR gdb/24502:
6858 * ui-style.h (skip_ansi_escape): Update comment.
6859 * ui-file.h (class no_terminal_escape_file): New class.
6860 * ui-file.c (no_terminal_escape_file::write)
6861 (no_terminal_escape_file::puts): New methods.
6862 * cli/cli-logging.c (handle_redirections): Use
6863 no_terminal_escape_file.
6864
52ce35e2
TT
68652019-06-14 Tom Tromey <tromey@adacore.com>
6866
6867 * NEWS: Move convenience variable news above Python news.
6868
73cc7272
TT
68692019-06-14 Tom Tromey <tom@tromey.com>
6870
6871 * gnulib: Move directory to top-level.
6872 * configure.ac: Don't configure gnulib.
6873 * configure: Rebuild.
6874 * common/common-defs.h: Use new path to gnulib.
6875 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6876 (GNULIB_H): Remove.
6877 (INCGNU): Look in new gnulib location.
6878 (HFILES_NO_SRCDIR): Remove gnulib files.
6879 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6880 (generated_files): Remove GNULIB_H.
6881 ($(LIBGNU), all-lib): Remove targets.
6882 (distclean): Don't mention GNULIB_BUILDDIR.
6883 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6884
f5686554
TT
68852019-06-14 Tom Tromey <tromey@adacore.com>
6886
6887 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6888 Warn if symbol file does not provide any symbols.
6889
a0c1ffed
TT
68902019-06-14 Tom Tromey <tromey@adacore.com>
6891
6892 * source.c (find_and_open_source): Respect basenames_may_differ.
6893
7c39e397
AB
68942019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * annotate.c (annotate_breakpoints_invalid): Make use of
6897 scoped_restore_terminal_state.
6898 (annotate_frames_invalid): Likewise.
6899
f411722c
TT
69002019-06-14 Tom Tromey <tromey@adacore.com>
6901
6902 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6903 allow assignment to an internalvar.
6904
4268ec18
TT
69052019-06-14 Tom Tromey <tromey@adacore.com>
6906
6907 * ada-lex.l: Allow "_" in attribute names.
6908
abdb711e
TT
69092019-06-14 Tom Tromey <tromey@adacore.com>
6910
6911 PR gdb/24653:
6912 * regcache.c (registers_changed): Don't call alloca.
6913 * top.c (execute_command): Don't call alloca.
6914
4c048731
PA
69152019-06-13 Pedro Alves <palves@redhat.com>
6916
6917 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6918 'expression'. When parsing an expression, error out if there's
6919 junk after "unlimited".
6920 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6921 (do_set_command): Adjust calls to is_unlimited_literal.
6922
66eb1ed3
PA
69232019-06-13 Pedro Alves <palves@redhat.com>
6924
6925 * compile/compile.c (make_compile_options_def_group): Add braces
6926 around array_view initializer.
6927 * thread.c (make_thread_apply_all_options_def_group)
6928 (make_thread_apply_all_options_def_group): Likewise.
6929
3345721a
PA
69302019-06-13 Pedro Alves <palves@redhat.com>
6931
6932 * NEWS (New commands): Mention "maint test-options
6933 require-delimiter", "maint test-options unknown-is-error", "maint
6934 test-options unknown-is-operand" and "maint show
6935 test-options-completion-result".
6936 (New command options, command completion): New section.
6937 (Completion improvements): New section.
6938 Mention that you can abbreviate "unlimited".
6939
6206060d
PA
69402019-06-13 Pedro Alves <palves@redhat.com>
6941
6942 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6943 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6944 * unittests/cli-utils-selftests.c (test_parse_flags)
6945 (test_parse_flags_qcs): Delete.
6946 (test_cli_utils): Don't call deleted functions.
6947
6665660a
PA
69482019-06-13 Pedro Alves <palves@redhat.com>
6949
6950 * thread.c: Include "cli/cli-option.h".
6951 (tp_array_compar_ascending): Global.
6952 (tp_array_compar): Delete function.
6953 (tp_array_compar_ascending, tp_array_compar_descending): New
6954 functions.
6955 (ascending_option_def, qcs_flag_option_def)
6956 (thr_qcs_flags_option_defs)
6957 (make_thread_apply_all_options_def_group)
6958 (make_thread_apply_options_def_group): New.
6959 (thread_apply_all_command): Use gdb::option::process_options.
6960 (thread_apply_command_completer)
6961 (thread_apply_all_command_completer): New.
6962 (thread_apply_command): Use gdb::option::process_options.
6963 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6964 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6965 to generate help text of "thread apply". Adjust "taas"'s help.
6966 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6967 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6968
f7e13587
PA
69692019-06-13 Pedro Alves <palves@redhat.com>
6970
6971 * thread.c (thread_apply_command): Check for invalid TID with
6972 isdigit instead of !isalpha.
6973
5d707134
PA
69742019-06-13 Pedro Alves <palves@redhat.com>
6975
6976 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6977 (validate_flags_qcs): New.
6978 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6979 (validate_flags_qcs): Declare.
6980 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6981 (make_frame_apply_options_def_group): New.
6982 (frame_apply_command_count): Process options with
6983 gdb::option::process_options.
6984 (frame_apply_completer): New.
6985 (frame_apply_level_completer, frame_apply_all_completer)
6986 (frame_apply_completer): New.
6987 (_initialize_stack): Update help of "frame apply", "frame apply
6988 level", "frame apply all" and "faas" to mention supported options
6989 and install command completers.
6990 * stack.h (frame_apply_all_completer): Declare.
6991 * thread.c: Include "stack.h".
6992 (tfaas_command): Add "--".
6993 (_initialize_thread): Update help "tfaas" to mention supported
6994 options and install command completer.
6995
272d4594
PA
69962019-06-13 Pedro Alves <palves@redhat.com>
6997
6998 * completer.c (complete_nested_command_line): New.
6999 (gdb_completion_word_break_characters_throw): Add assertion.
7000 * completer.h (complete_nested_command_line): Declare.
7001
90a1ef87
PA
70022019-06-13 Pedro Alves <palves@redhat.com>
7003
7004 * stack.c (parse_backtrace_qualifiers): New.
7005 (backtrace_command): Use it.
7006 (backtrace_command_completer): Complete on qualifiers.
7007
d4c16835
PA
70082019-06-13 Pedro Alves <palves@redhat.com>
7009
7010 * frame.c: Include "cli/cli-option.h.
7011 (user_set_backtrace_options): New.
7012 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7013 Delete.
7014 (get_prev_frame): Adjust.
7015 (boolean_option_def, uinteger_option_def)
7016 (set_backtrace_option_defs): New.
7017 (_initialize_frame): Adjust and use
7018 gdb::option::add_setshow_cmds_for_options to install "set
7019 backtrace past-main" and "set backtrace past-entry".
7020 * frame.h: Include "cli/cli-option.h".
7021 (struct frame_print_options): Forward declare.
7022 (print_frame_arguments_all, print_frame_arguments_scalars)
7023 (print_frame_arguments_none): Declare.
7024 (print_entry_values): Delete declaration.
7025 (struct frame_print_options, user_frame_print_options): New.
7026 (struct set_backtrace_options): New.
7027 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7029 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7030 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7031 (list_args_or_locals): Add frame_print_options parameter.
7032 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7033 * python/py-framefilter.c (enumerate_args): Pass down
7034 USER_FRAME_PRINT_OPTIONS.
7035 * stack.c: Include "cli/cli-option.h".
7036 (print_frame_arguments_all, print_frame_arguments_scalars)
7037 (print_frame_arguments_none): Declare.
7038 (print_raw_frame_arguments, print_entry_values): Delete.
7039 (user_frame_print_options): New.
7040 (boolean_option_def, enum_option_def, frame_print_option_defs):
7041 New.
7042 (struct backtrace_cmd_options): New.
7043 (bt_flag_option_def): New.
7044 (backtrace_command_option_defs): New.
7045 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7046 (print_frame_arg, read_frame_arg, print_frame_args)
7047 (print_frame_info, print_frame): Add frame_print_options parameter
7048 and use it.
7049 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7050 (backtrace_command_1): Add frame_print_options and
7051 backtrace_cmd_options parameters and use them.
7052 (make_backtrace_options_def_group): New.
7053 (backtrace_command): Process command options with
7054 gdb::option::process_options.
7055 (backtrace_command_completer): New.
7056 (_initialize_stack): Extend "backtrace"'s help to mention
7057 supported options. Install completer for "backtrace".
7058 Install some settings commands with add_setshow_cmds_for_options.
7059
2daf894e
PA
70602019-06-13 Pedro Alves <palves@redhat.com>
7061
7062 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7063 and that "set/show print raw frame-arguments" are now deprecated.
7064
7065 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7066 command.
7067 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7068 * stack.c (_initialize_stack): Install "set/show print
7069 raw-frame-arguments", and deprecate "set/show print raw
7070 frame-arguments".
7071 * valprint.c (_initialize_valprint): Deprecate "set/show print
7072 raw".
7073
e6ed716c
PA
70742019-06-13 Pedro Alves <palves@redhat.com>
7075
7076 * compile/compile.c (struct compile_options): New.
7077 (compile_flag_option_def, compile_command_option_defs)
7078 (make_compile_options_def_group): New.
7079 (compile_file_command): Handle options with
7080 gdb::option::process_options.
7081 (compile_file_command_completer): New function.
7082 (compile_code_command): Handle options with
7083 gdb::option::process_options.
7084 (compile_code_command_completer): New function.
7085 (_initialize_compiler): Install completers for "compile code" and
7086 "compile file". Mention available options in "compile code" and
7087 "compile code"'s help.
7088 * completer.c (advance_to_completion_word): New, factored out from
7089 ...
7090 (advance_to_expression_complete_word_point): ... this.
7091 (advance_to_filename_complete_word_point): New.
7092 * completer.h (advance_to_filename_complete_word_point): New
7093 declaration.
7094
7d8062de
PA
70952019-06-13 Pedro Alves <palves@redhat.com>
7096
7097 * compile/compile.c: Include "cli/cli-option.h".
7098 (compile_print_value): Scope data pointer is now a
7099 value_print_options pointer; adjust.
7100 (compile_print_command): Process options. Scope data pointer is
7101 now a value_print_options pointer; adjust.
7102 (_initialize_compile): Update "compile print"'s help to include
7103 supported options. Install a completer for "compile print".
7104 * cp-valprint.c (show_vtblprint, show_objectprint)
7105 (show_static_field_print): Delete.
7106 (_initialize_cp_valprint): Don't install "set print
7107 static-members", "set print vtbl", "set print object" here.
7108 * printcmd.c: Include "cli/cli-option.h" and
7109 "common/gdb_optional.h".
7110 (print_command_parse_format): Rework to fill in a
7111 value_print_options instead of a format_data.
7112 (print_value): Change parameter type from format_data pointer to
7113 value_print_options reference. Adjust.
7114 (print_command_1): Process options. Adjust to pass down a
7115 value_print_options.
7116 (print_command_completer): New.
7117 (_initialize_printcmd): Install print_command_completer as
7118 handle_brkchars completer for the "print" command. Update
7119 "print"'s help to include supported options.
7120 * valprint.c: Include "cli/cli-option.h".
7121 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7122 here from cp-valprint.c.
7123 (boolean_option_def, uinteger_option_def)
7124 (value_print_option_defs, make_value_print_options_def_group):
7125 New. Use gdb::option::add_setshow_cmds_for_options to install
7126 "set print elements", "set print null-stop", "set print repeats",
7127 "set print pretty", "set print union", "set print array", "set
7128 print address", "set print symbol", "set print array-indexes".
7129 * valprint.h: Include <string> and "cli/cli-option.h".
7130 (make_value_print_options_def_group): Declare.
7131 (print_value): Change parameter type from format_data pointer to
7132 value_print_options reference.
7133 (print_command_completer): Declare.
7134
9d0faba9
PA
71352019-06-13 Pedro Alves <palves@redhat.com>
7136
7137 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7138 (COMMON_SFILES): Add maint-test-settings.c.
7139 * cli/cli-decode.c (boolean_enums): New global, factored out from
7140 ...
7141 (add_setshow_boolean_cmd): ... here.
7142 * cli/cli-decode.h (boolean_enums): Declare.
7143 * cli/cli-option.c: New file.
7144 * cli/cli-option.h: New file.
7145 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7146 factored out from ...
7147 (parse_cli_boolean_value(const char *)): ... this.
7148 (is_unlimited_literal): Change parameter type to pointer to
7149 pointer. Adjust and advance ARG pointer.
7150 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7151 (parse_cli_var_enum): New, factored out from ...
7152 (do_set_command): ... this. Adjust.
7153 * cli/cli-setshow.h (parse_cli_boolean_value)
7154 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7155 (parse_cli_var_enum): Declare.
7156 * cli/cli-utils.c: Include "cli/cli-option.h".
7157 (get_ulongest): New.
7158 * cli/cli-utils.h (get_ulongest): Declare.
7159 (check_for_argument): New overloads.
7160 * maint-test-options.c: New file.
7161
2c722807
PA
71622019-06-13 Pedro Alves <palves@redhat.com>
7163
7164 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7165 parse a range if "-" is at the end of the string.
7166
dee7b4c8
PA
71672019-06-13 Pedro Alves <palves@redhat.com>
7168
7169 * cli/cli-setshow.c (parse_auto_binary_operation)
7170 (parse_cli_boolean_value): Don't allow "o".
7171
dca0f6c0
PA
71722019-06-13 Pedro Alves <palves@redhat.com>
7173
7174 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7175 * NEWS: Mention maint test-settings KIND.
7176 * maint-test-settings.c: New file.
7177
597bf39d
PA
71782019-06-13 Pedro Alves <palves@redhat.com>
7179
7180 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7181 completer.
7182 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7183 "set" completers.
7184
48c410fb
PA
71852019-06-13 Pedro Alves <palves@redhat.com>
7186
7187 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7188 after item.
7189
93bcb043
PA
71902019-06-13 Pedro Alves <palves@redhat.com>
7191
7192 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7193
cbba3ecd
PA
71942019-06-13 Pedro Alves <palves@redhat.com>
7195
7196 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7197 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7198 call.
7199 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7200 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7201 calls.
7202 (check_for_argument): Skip spaces after argument.
7203
b9a3f842
PA
72042019-06-13 Pedro Alves <palves@redhat.com>
7205
7206 * thread.c (thread_apply_command): Adjust TID parsing.
7207 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7208 detected before end of string.
7209 (tid_is_in_list): Error out if LIST is invalid.
7210
3844e605
PA
72112019-06-13 Pedro Alves <palves@redhat.com>
7212
7213 * completer.c (complete_line_internal_1): Rewind completion word
7214 point.
7215 (completion_tracker::advance_custom_word_point_by): Change
7216 parameter type to int.
7217 * completer.h (completion_tracker::advance_custom_word_point_by):
7218 Likewise.
7219
00b56dbe
PA
72202019-06-13 Pedro Alves <palves@redhat.com>
7221
7222 * completer.c (advance_to_completion_word): Handle delimiters.
7223
d106773e
PA
72242019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7225
7226 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7227
08f10e02
TT
72282019-06-11 Tom Tromey <tom@tromey.com>
7229
7230 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7231 (xmalloc_failed): Move to alloc.c.
7232 * alloc.c: New file.
7233 * Makefile.in (COMMON_SFILES): Add alloc.c.
7234
1c7fe951
TT
72352019-06-11 Tom Tromey <tom@tromey.com>
7236
7237 * nat/linux-waitpid.c: Don't include server.h.
7238 (linux_debug): Remove.
7239 (my_waitpid): Update.
7240
89549d7f
TT
72412019-06-11 Tom Tromey <tromey@adacore.com>
7242
7243 * infcall.c (_initialize_infcall): Remove trailing newline from
7244 help.
7245 * user-regs.c (_initialize_user_regs): Remove trailing newline
7246 from help.
7247 * typeprint.c (_initialize_typeprint): Remove trailing newline
7248 from help.
7249 * reverse.c (_initialize_reverse): Remove trailing newlines from
7250 help.
7251 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7252 from help.
7253 * language.c (add_set_language_command): Remove trailing newline
7254 from help.
7255 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7256 help.
7257 * disasm.c (_initialize_disasm): Remove trailing newline from
7258 help.
7259 * top.c (init_main): Remove trailing newline from help.
7260 * interps.c (_initialize_interpreter): Remove trailing newline
7261 from help.
7262 * btrace.c (_initialize_btrace): Remove trailing newlines from
7263 help.
7264 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7265 from help.
7266 * python/python.c (_initialize_python): Remove trailing newline
7267 from help.
7268 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7269 help.
7270 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7271 from help. Reformat some text.
7272 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7273 from help.
7274 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7275 newline from help.
7276
86108c13
TT
72772019-06-11 Tom Tromey <tromey@adacore.com>
7278
7279 * darwin-nat.c (darwin_decode_exception_message)
7280 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7281
a7067863
AB
72822019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 * valops.c (value_slice): Check for not allocated or not
7285 associated values.
7286
9ab08412
TV
72872019-06-10 Tom de Vries <tdevries@suse.de>
7288
7289 PR gdb/24618
7290 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7291 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7292 invalid.
7293
f19e22e9
TV
72942019-06-10 Tom de Vries <tdevries@suse.de>
7295
7296 PR gdb/24611
7297 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7298 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7299
e99f9db0
TV
73002019-06-10 Tom de Vries <tdevries@suse.de>
7301
7302 PR symtab/24545
7303 * symtab.c (struct demangled_name_entry): Add language field.
7304 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7305 static minimal symbol". Set and use language field.
7306
9bf7038b
TT
73072019-06-10 Tom Tromey <tromey@adacore.com>
7308
7309 * ada-lang.c (_initialize_ada_language): Update help text.
7310
422186a9
TT
73112019-06-10 Tom Tromey <tromey@adacore.com>
7312
7313 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7314 with a newline.
7315 * guile/guile.c (handle_boot_error): Don't end warning with a
7316 newline.
7317 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7318 warning with a newline.
7319 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7320 newline.
7321 (s12z_frame_cache): Likewise.
7322 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7323 a newline.
7324 * solib-svr4.c (disable_probes_interface): Don't end warning with
7325 a newline.
7326 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7327 newline.
7328 * python/python.c (do_finish_initialization): Don't end warning
7329 with a newline.
7330
25ce02ee
TT
73312019-06-10 Tom Tromey <tom@tromey.com>
7332
7333 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7334 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7335 gdbpy_enter.
7336
caa429d8
TT
73372019-06-10 Tom Tromey <tromey@adacore.com>
7338
7339 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7340 data.
7341 (elf_new_init): Don't call stabsread_new_init.
7342 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7343 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7344 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7345
81873cc8
TV
73462019-06-10 Tom de Vries <tdevries@suse.de>
7347
7348 PR symtab/16264
7349 PR symtab/24517
7350 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7351
4fa0265e
РИ
73522019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7353
7354 * source.c (find_and_open_source): Also rewrite relative file
7355 names.
7356
1a3da2cd
AB
73572019-04-26 Amos Bird <amosbird@gmail.com>
7358
7359 * annotate.c (annotate_thread_exited): Add "thread-exited"
7360 annotation.
7361
3847a7bf
TT
73622019-06-06 Tom Tromey <tromey@adacore.com>
7363
7364 * maint.h (class scoped_command_stats): Use
7365 DISABLE_COPY_AND_ASSIGN.
7366 <print_time>: New method.
7367 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7368 print_time.
7369 (scoped_command_stats::print_time): New method.
7370
312617a3
AB
73712019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7374 instructions of lengths 6 or 8 bytes.
7375
b02f78f9
PA
73762019-06-04 Pedro Alves <palves@redhat.com>
7377
7378 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7379
7380 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7381 * breakpoint.c (condition_completer): Likewise.
7382 * cli/cli-dump.c (scan_expression): Likewise.
7383 * common/filestuff.c (mkdir_recursive): Likewise.
7384 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7385 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7386 (gdb_abspath): Likewise.
7387 * compile/compile-cplus-types.c
7388 (compile_cplus_instance::decl_name): Likewise.
7389 * completer.c (complete_explicit_location):
7390 (signal_completer, reg_or_group_completer_1): Likewise.
7391 * cp-support.c (cp_remove_params_if_any): Likewise.
7392 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7393 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7394 * infcmd.c (strip_bg_char): Likewise.
7395 * linespec.c (copy_token_string): Likewise.
7396 * mi/mi-main.c (output_cores): Likewise.
7397 * psymtab.c (psymtab_search_name):
7398 * symfile.c (test_set_ext_lang_command): Likewise.
7399 * target.c (target_fileio_read_stralloc): Likewise.
7400 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7401 * value.c (complete_internalvar): Likewise.
7402
e1f2e1a2
CB
74032019-06-04 Christian Biesinger <cbiesinger@google.com>
7404
7405 Add objfile property to gdb.Type.
d3238f7d
PA
7406 * NEWS: Mention Python API addition.
7407 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7408
e664d728
PW
74092019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7410
7411 * NEWS: Mention the new set|show style [title|highlight].
7412 Mention changes to "show style", "help" and "apropos".
7413
66d8c862
PW
74142019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7415
7416 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7417 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7418 instead of print_help_for_command.
7419 (print_doc_of_command): New function.
7420 (help_list): Add 'apropos -v word' suggestion.
7421 (print_help_for_command): Style the command name using title style.
7422 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7423 (_initialize_cli_cmds): Describe -v in apropos_command help.
7424
9303eb2f
PW
74252019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7426
7427 * cli/cli-style.h (cli_style_option): Add name in constructor,
7428 add m_name class member, add constructor with intensity,
7429 add name class function.
7430 (cli_style_option::add_setshow_commands): Remove name argument.
7431 (highlight_style, title_style): New styles.
7432 * cli/cli-style.c (do_show): New function that shows a style
7433 characteristic styling the style name with itself.
7434 (set_style_name): New function.
7435 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7436 Update all callers according to the changes in cli/cli-style.h.
7437 * utils.h (fputs_highlighted): New function.
7438 * utils.c (fputs_highlighted): Likewise.
7439
e2c52041
PW
74402019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7441
7442 * NEWS: Mention new pipe command and new convenience variables.
7443
947d3946
PW
74442019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7445
7446 * cli/cli-cmds.c (pipe_command): New function.
7447 (_initialize_cli_cmds): Call add_com for pipe_command.
7448 Define | as an alias for pipe.
7449 (exit_status_set_internal_vars): New function.
7450 (shell_escape): Call exit_status_set_internal_vars.
7451 cli/cli-decode.c (find_command_name_length): Recognize | as
7452 a single character command.
7453
b8fd0918
PW
74542019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7455
7456 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7457 top.c (execute_command_to_ui_file): New function, mostly a copy
7458 of execute_command_to_string.
7459 (execute_command_to_string): Implement by calling
7460 execute_command_to_ui_file.
7461
68bb5386
PW
74622019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7463
7464 * top.h (saved_command_line): Remove declaration.
7465 * top.c (previous_saved_command_line, previous_repeat_arguments):
7466 New variables.
7467 (saved_command_line): Make static, define together with other
7468 'repeat variables'.
7469 (dont_repeat): Clear repeat_arguments.
7470 (repeat_previous, get_saved_command_line, save_command_line):
7471 New functions.
7472 (gdb_init): Initialize saved_command_line
7473 and previous_saved_command_line.
7474 * main.c (captured_main_1): Remove saved_command_line initialization.
7475 * event-top.c (handle_line_of_input): Update to use
7476 the new 'repeat' related functions instead of direct access to
7477 saved_command_line.
7478 * command.h (repeat_previous, get_saved_command_line,
7479 save_command_line): New declarations.
7480 (dont_repeat): Add comment.
7481
bfcdb852
TT
74822019-05-30 Tom Tromey <tromey@adacore.com>
7483
7484 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7485 Fix comment.
7486 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7487
0ef209f2
JV
74882019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7489
7490 PR cli/24587
7491 * completer.c (complete): Initialize variable word.
7492
955b06fa
SDJ
74932019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7494
7495 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7496 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7497 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7498 'body' is NULL to the outter 'if', protecting the '!is_define'
7499 situation as well.
7500
fa9c3fa0
TT
75012019-05-29 Tom Tromey <tromey@adacore.com>
7502
7503 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7504 (dwarf_unknown): New function.
7505 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7506 (dwarf_type_encoding_name): Use dwarf_unknown.
7507
4330d61d
TT
75082019-05-29 Tom Tromey <tromey@adacore.com>
7509
7510 PR c++/20020:
7511 * cp-valprint.c (cp_print_value_fields): Call
7512 cp_print_static_field inside "try".
7513
33a6bc35
TT
75142019-05-29 Tom Tromey <tromey@adacore.com>
7515
7516 * inflow.c (struct terminal_info): Add default operator=.
7517 * configure: Rebuild.
7518 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7519 -Wdeprecated-copy-dtor, -Wredundant-move.
7520
000439d5
TT
75212019-05-29 Tom Tromey <tromey@adacore.com>
7522
7523 * NEWS: Add entry.
7524 * infcmd.c (print_return_value_1): Handle finish_print
7525 option.
7526 (show_print_finish): New function.
7527 (_initialize_infcmd): Add "set/show print finish" commands.
7528 * valprint.c (user_print_options): Initialize new member.
7529 * valprint.h (struct value_print_options) <finish_print>: New
7530 member.
7531
c0e70c62
TT
75322019-05-28 Tom Tromey <tromey@adacore.com>
7533
7534 * ada-lang.c (ada_remove_Xbn_suffix)
7535 (find_old_style_renaming_symbol)
7536 (parse_old_style_renaming): Remove.
7537 (ada_find_renaming_symbol): Don't call
7538 find_old_style_renaming_symbol.
7539 (ada_is_renaming_symbol): Rename from
7540 ada_find_renaming_symbol. Remove "block" parameter. Return
7541 bool. Now static.
7542 (ada_read_var_value): Update and simplify.
7543 * ada-exp.y (write_var_or_type): Remove old code.
7544
766f8836
AH
75452019-05-28 Alan Hayward <alan.hayward@arm.com>
7546
68255adc 7547 PR gdb/25010
766f8836
AH
7548 * event-top.c: Remove include comment.
7549 * inflow.c (class scoped_ignore_sigttou): Move from here...
7550 * inflow.h (class scoped_ignore_sigttou): ...to here.
7551 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7552 * top.c: Remove include comment.
7553
eb41253a
TT
75542019-05-27 Tom Tromey <tom@tromey.com>
7555
7556 * NEWS: Fix typo.
7557
4ca51187
TT
75582019-05-22 Tom Tromey <tromey@adacore.com>
7559
7560 * target.c (target_follow_exec): Constify parameter.
7561 * target-delegates.c: Rebuild.
7562 * remote.c (remote_target::follow_exec): Constify parameter.
7563 * infrun.c (follow_exec): Constify parameter.
7564 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7565 (target_follow_exec): Likewise.
7566
8fca4da0
AH
75672019-05-22 Alan Hayward <alan.hayward@arm.com>
7568
7569 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7570 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7571
b7060614
AH
75722019-05-22 Alan Hayward <alan.hayward@arm.com>
7573
7574 * NEWS: Add debugredirect and testsuite sections.
7575
0a5954bd
SC
75762019-05-22 Simon Cook <simon.cook@embecosm.com>
7577
7578 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7579 target descriptions using exclusively floating point register name
7580 aliases.
7581
dc42e902
AB
75822019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7583
7584 PR gdb/18644:
7585 * f-lang.c (build_fortran_types): Handle the case where
7586 gdbarch_floatformat_for_type returns a nullptr.
7587
fb7806c7
TV
75882019-05-21 Tom de Vries <tdevries@suse.de>
7589
7590 PR cli/24587
7591 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7592
34d11c68
AB
75932019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7594
7595 PR gdb/18644:
7596 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7597 16-byte floats.
7598 * i386-tdep.c (i386_floatformat_for_type): Use
7599 floatformats_ia64_quad for the 16-byte floating point component
7600 within a fortran 32-byte complex number.
7601
122cf0f2
AB
76022019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7603
7604 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7605 delete default constructor.
7606 (find_partial_die): Update to return const struct.
7607 (partial_die_parent_scope): Move variable declaration into scope
7608 of its use and change its type to auto.
7609 (guess_partial_die_structure_name): Likewise.
7610 (partial_die_info::fixup): Likewise.
7611
33d0e35a
TT
76122019-05-17 Tom Tromey <tromey@adacore.com>
7613
7614 * source.c (find_and_open_source): Remove cast.
7615
a45575b0
TT
76162019-05-17 Tom Tromey <tromey@adacore.com>
7617
7618 * annotate.c (annotate_source): Make "filename" const.
7619 * annotate.h (annotate_source): Use const.
7620
81f47ac2
AH
76212019-05-17 Alan Hayward <alan.hayward@arm.com>
7622
7623 * disasm.c (set_disassembler_options): Send errors to stderr.
7624
ca1285d1
AH
76252019-05-17 Alan Hayward <alan.hayward@arm.com>
7626
7627 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7628 (cli_interp_base::set_logging): Check debug_redirect.
7629 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7630 * cli/cli-logging.c (debug_redirect): Add static variable.
7631 (pop_output_files): Add default param.
7632 (handle_redirections): Print debug setting.
7633 (show_logging_command): Likewise.
7634 (_initialize_cli_logging): Add debugredirect command.
7635 * interps.c (current_interp_set_logging): Add debug_redirect
7636 parameter.
7637 * interps.h (set_logging): Add debug_redirect parameter.
7638 (current_interp_set_logging): Likewise.
7639 * mi/mi-common.h: Likewise.
7640 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7641
76422019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7643 Tom Tromey <tromey@adacore.com>
7644
7645 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7646 directly.
7647 * cli/cli-interp.h (make_logging_output): Remove declaration.
7648 * cli/cli-logging.c (make_logging_output): Remove function.
7649 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7650 directly.
7651 * ui-file.c (tee_file::tee_file): Remove bools.
7652 (tee_file::~tee_file): Remove deletes.
7653 * ui-file.h (tee_file): Remove bools.
7654
26648588
JV
76552019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7656
7657 * mi/mi-cmds.h (mi_cmd_complete): New function.
7658 * mi/mi-main.c (mi_cmd_complete): Likewise.
7659 * mi/mi-cmds.c: Define new MI command -complete.
7660 * NEWS: Mention new -complete command.
7661
6e035501
JV
76622019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7663
7664 * completer.h (complete): New function.
7665 * completer.c (complete): Likewise.
7666 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7667 function defined in completer.h.
7668
7d0e2ece
JV
76692019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7670
e79be6e5 7671 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7672
fb816e8b
TV
76732019-05-17 Tom de Vries <tdevries@suse.de>
7674
7675 PR gdb/24094
7676 * dwarf2read.c (struct cu_partial_die_info): New struct.
7677 (find_partial_die): Return cu_partial_die_info.
7678 (partial_die_parent_scope, guess_partial_die_structure_name)
7679 (partial_die_info::fixup): Handle new return type of find_partial_die.
7680
677052f2
SDJ
76812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7682
a1726c38 7683 PR breakpoints/24541
677052f2
SDJ
7684 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7685 "std::string", simplifying the algorithm.
7686
f3da9116
SDJ
76872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7688
7689 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7690 (stap_static_probe_ops::get_probes): Likewise.
7691
f1bb75ab
SDJ
76922019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7693
7694 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7695 '-')" and "else if".
7696 (stap_parse_single_operand): Join checks for
7697 "gdbarch_stap_parse_special_token_p" and
7698 "gdbarch_stap_parse_special_token" in the same "if" statement.
7699 Invert check when verifying for operation on register
7700 displacement.
7701
3ca58cde
SDJ
77022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7703
7704 * stap-probe.c (stap_get_opcode): Update comment.
7705 (stap_get_expected_argument_type): Likewise.
7706 (handle_stap_probe): Likewise.
7707
af2d9bee
SDJ
77082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7709
7710 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7711 return type to 'bool'. Adjust comment. Use 'bool' when
7712 appropriate.
7713 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7714 * stap-probe.c (stap_parse_argument_1): Likewise.
7715 (stap_is_operator): Likewise.
7716 (stap_is_generic_prefix): Likewise.
7717 (stap_is_register_prefix): Likewise.
7718 (stap_is_register_indirection_prefix): Likewise.
7719 (stap_is_integer_prefix): Likewise.
7720 (stap_generic_check_suffix): Likewise.
7721 (stap_check_integer_suffix): Likewise.
7722 (stap_check_register_suffix): Likewise.
7723 (stap_check_register_indirection_suffix): Likewise.
7724 (stap_parse_register_operand): Likewise.
7725 (stap_parse_single_operand): Likewise.
7726 (stap_parse_argument_1): Likewise.
7727 (stap_probe::get_argument_count): Likewise.
7728 (stap_is_operator): Likewise.
7729
61c9c421
TT
77302019-05-16 Tom Tromey <tromey@adacore.com>
7731
7732 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7733 keyword to foreach.
7734
9ddc1af1
SM
77352019-05-15 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * linux-thread-db.c (try_thread_db_load_1): Change return type
7738 to bool.
7739 (try_thread_db_load): Likewise.
7740 (try_thread_db_load_from_pdir_1): Likewise.
7741 (try_thread_db_load_from_pdir): Likewise.
7742 (try_thread_db_load_from_sdir): Likewise.
7743 (try_thread_db_load_from_dir): Likewise.
7744 (thread_db_load_search): Likewise.
7745 (has_libpthread): Likewise.
7746 (thread_db_load): Likewise.
7747
7bede828
SDJ
77482019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7749
7750 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7751 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7752 NULL, and complain/return if that's the case.
7753
c5358db4
JD
77542019-05-15 John Darrington <john@darrington.wattle.id.au>
7755
7756 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7757 (advance, posn, abstract_read_memory): New functions.
7758 [struct mem_read_abstraction]: New struct.
7759 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7760
c408a94f
TT
77612019-05-14 Tom Tromey <tromey@adacore.com>
7762
7763 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7764 value is not lval_memory.
7765
e7bd7fba
TT
77662019-05-14 Tom Tromey <tromey@adacore.com>
7767
7768 * solib.c (info_sharedlibrary_command): Style the file name.
7769
a6d0f249
AH
77702019-05-14 Alan Hayward <alan.hayward@arm.com>
7771
7772 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7773 (aarch64_vnv_type): Likewise.
7774 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7775 * common/tdesc.c: Likewise.
7776 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7777 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7778 * features/aarch64-fpu.xml: Add ieee half view.
7779 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7780 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7781 * gdbtypes.h (struct builtin_type): Likewise.
7782 (struct objfile_type): Likewise.
7783
66b8bb74
SM
77842019-05-12 Paul Naert <paul.naert@polymtl.ca>
7785
7786 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7787 typo.
7788 * location.h (string_to_event_location): Likewise.
7789
21c219fd
JB
77902019-05-11 Joel Brobecker <brobecker@adacore.com>
7791
7792 GDB 8.3 released.
7793
13674803
SM
77942019-05-10 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7797 New variable declaration.
7798 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7799 New variable.
7800 (print_one_breakpoint): Use ui_out::test_flags and new global
7801 variable to compute use_fixed_output.
7802 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7803 Remove.
7804 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7805 (mi_multi_location_breakpoint_output_fixed): Remove.
7806 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7807 new variable.
7808 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7809 fix_multi_location_breakpoint_output flag if version >= 3.
7810 * ui-out.h (enum ui_out_flag)
7811 <fix_multi_location_breakpoint_output>: New enumerator.
7812
a9eac7f9
SM
78132019-05-10 Simon Marchi <simon.marchi@efficios.com>
7814
7815 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7816
71bed2db
TT
78172019-05-10 Tom Tromey <tromey@adacore.com>
7818
7819 * ada-lang.c (catch_ada_completer): New function.
7820 (_initialize_ada_language): Use it.
7821
24c54127
TT
78222019-05-10 Tom Tromey <tromey@adacore.com>
7823
7824 * thread.c (print_thread_info): Make "requested_threads" const.
7825 * gdbthread.h (print_thread_info): Make "requested_threads"
7826 const.
7827 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7828 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7829
7a102139
TT
78302019-05-08 Tom Tromey <tom@tromey.com>
7831
7832 * gdbtypes.c (objfile_type_data): Change type.
7833 (objfile_type, _initialize_gdbtypes): Update.
7834
924d79e2
TT
78352019-05-08 Tom Tromey <tom@tromey.com>
7836
7837 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7838 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7839 (_initialize_dwarf2_frame): Update.
7840
4c58e337
TT
78412019-05-08 Tom Tromey <tom@tromey.com>
7842
7843 * objc-lang.c (objc_objfile_data): Change type.
7844 (find_methods): Update.
7845 (_initialize_objc_lang): Remove.
7846
d772d2ab
TT
78472019-05-08 Tom Tromey <tom@tromey.com>
7848
7849 * stabsread.c (rs6000_builtin_type_data): Change type.
7850 (rs6000_builtin_type, _initialize_stabsread): Update.
7851
d11d83f4
TT
78522019-05-08 Tom Tromey <tom@tromey.com>
7853
7854 * mips-tdep.c (mips_pdr_data): Remove.
7855 (_initialize_mips_tdep): Update.
7856
9a73f0ad
TT
78572019-05-08 Tom Tromey <tom@tromey.com>
7858
7859 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7860 (hppa_init_objfile_priv_data, read_unwind_info)
7861 (find_unwind_entry, _initialize_hppa_tdep): Update.
7862
8127a2fa
TT
78632019-05-08 Tom Tromey <tom@tromey.com>
7864
7865 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7866 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7867 on obstack.
7868 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7869
91d3055d
TT
78702019-05-08 Tom Tromey <tom@tromey.com>
7871
7872 * mdebugread.c (basic_type_data): Change type.
7873 (basic_type, _initialize_mdebugread): Update.
7874
31930bd3
TT
78752019-05-08 Tom Tromey <tom@tromey.com>
7876
7877 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7878
bdb3ed9e
TT
78792019-05-08 Tom Tromey <tom@tromey.com>
7880
7881 * nto-tdep.c (nto_inferior_data_reg): Change type.
7882 (nto_inferior_data): Update.
7883 (nto_inferior_data_cleanup, nto_new_inferior_data)
7884 (_initialize_nto_tdep): Remove.
7885 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7886
f37b313d
TT
78872019-05-08 Tom Tromey <tom@tromey.com>
7888
7889 * ada-lang.c (struct ada_inferior_data): Add initializers.
7890 (ada_inferior_data): Change type.
7891 (ada_inferior_data_cleanup): Remove.
7892 (get_ada_inferior_data, ada_inferior_exit)
7893 (struct ada_pspace_data): Add initializers, destructor.
7894 (ada_pspace_data_handle): Change type.
7895 (get_ada_pspace_data): Update.
7896 (ada_pspace_data_cleanup): Remove.
7897
24699405
TT
78982019-05-08 Tom Tromey <tom@tromey.com>
7899
7900 * coffread.c (struct coff_symfile_info): Add initializers.
7901 (coff_objfile_data_key): Move lower. Change type.
7902 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7903 Update.
7904 (coff_free_info): Remove.
7905
d4e05d2f
TT
79062019-05-08 Tom Tromey <tom@tromey.com>
7907
7908 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7909 (fbsd_pspace_data_handle): Move lower. Change type.
7910 (get_fbsd_pspace_data): Update.
7911 (fbsd_pspace_data_cleanup): Remove.
7912 (_initialize_fbsd_tdep): Update.
7913
14ef6690
TT
79142019-05-08 Tom Tromey <tom@tromey.com>
7915
7916 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7917 (get_ada_tasks_pspace_data): Update.
7918 (ada_tasks_pspace_data_cleanup): Remove.
7919 (_initialize_tasks): Update.
7920 (ada_tasks_inferior_data_handle): Change type.
7921 (get_ada_tasks_inferior_data): Update.
7922 (ada_tasks_inferior_data_cleanup): Remove.
7923 (struct ada_tasks_pspace_data): Add initializers.
7924
814cf43a
TT
79252019-05-08 Tom Tromey <tom@tromey.com>
7926
7927 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7928 * symfile-debug.c (debug_sym_get_probes): Change type.
7929 * stap-probe.c (handle_stap_probe):
7930 (stap_static_probe_ops::get_probes): Change type.
7931 * probe.h (class static_probe_ops) <get_probes>: Change type.
7932 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7933 (parse_probes_in_pspace): Update.
7934 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7935 Update.
7936 (any_static_probe_ops::get_probes): Change type.
7937 * elfread.c (elfread_data): New typedef.
7938 (probe_key): Change type.
7939 (elf_get_probes): Likewise. Update.
7940 (probe_key_free): Remove.
7941 (_initialize_elfread): Update.
7942 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7943 Change type.
7944 (dtrace_process_dof_probe, dtrace_process_dof)
7945 (dtrace_static_probe_ops::get_probe): Change type.
7946
02dc647e
TT
79472019-05-08 Tom Tromey <tom@tromey.com>
7948
7949 * xcoffread.c (struct xcoff_symfile_info): Rename from
7950 coff_symfile_info. Add initializers.
7951 (xcoff_objfile_data_key): Move lower. Change type.
7952 (XCOFF_DATA): Rewrite.
7953 (xcoff_free_info): Remove.
7954 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7955 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7956 (xcoff_initial_scan): Update.
7957
09232438
TT
79582019-05-08 Tom Tromey <tom@tromey.com>
7959
7960 * solib-svr4.c (struct svr4_info): Add initializers and
7961 destructor.
7962 <probes_table>: Now an htab_up.
7963 (solib_svr4_pspace_data): Change type.
7964 (free_probes_table): Simplify.
7965 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7966 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7967 (probes_table_remove_objfile_probes, register_solib_event_probe)
7968 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7969 (_initialize_svr4_solib): Update.
7970
7b4a314f
TT
79712019-05-08 Tom Tromey <tom@tromey.com>
7972
7973 * remote.c (remote_pspace_data): Change type.
7974 (remote_pspace_data_cleanup): Remove.
7975 (get_remote_exec_file, set_pspace_remote_exec_file)
7976 (_initialize_remote): Update.
7977
51d3063a
TT
79782019-05-08 Tom Tromey <tom@tromey.com>
7979
7980 * breakpoint.c (breakpoint_objfile_key): Change type.
7981 (get_breakpoint_objfile_data): Update.
7982 (free_breakpoint_objfile_data): Remove.
7983 (_initialize_breakpoint): Update.
7984
89fb8848
TT
79852019-05-08 Tom Tromey <tom@tromey.com>
7986
7987 * linux-tdep.c (struct linux_info): Add initializers.
7988 (linux_inferior_data): Move. Change type.
7989 (invalidate_linux_cache_inf): Update.
7990 (linux_inferior_data_cleanup): Remove.
7991 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7992
e9b89e2d
TT
79932019-05-08 Tom Tromey <tom@tromey.com>
7994
7995 * auxv.c (auxv_inferior_data): Move. Change type.
7996 (auxv_inferior_data_cleanup): Remove.
7997 (invalidate_auxv_cache_inf): Rewrite.
7998 (get_auxv_inferior_data, _initialize_auxv): Update.
7999
8c42777c
TT
80002019-05-08 Tom Tromey <tom@tromey.com>
8001
8002 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8003 (symfile_debug_objfile_data_key): Change type.
8004 (symfile_debug_installed, debug_qf_has_symbols)
8005 (debug_qf_find_last_source_symtab)
8006 (debug_qf_forget_cached_source_info)
8007 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8008 (debug_qf_print_stats, debug_qf_dump)
8009 (debug_qf_expand_symtabs_for_function)
8010 (debug_qf_expand_all_symtabs)
8011 (debug_qf_expand_symtabs_with_fullname)
8012 (debug_qf_map_matching_symbols)
8013 (debug_qf_expand_symtabs_matching)
8014 (debug_qf_find_pc_sect_compunit_symtab)
8015 (debug_qf_map_symbol_filenames)
8016 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8017 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8018 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8019 (debug_sym_read_linetable, debug_sym_relocate): Update.
8020 (symfile_debug_free_objfile): Remove.
8021 (install_symfile_debug_logging, _initialize_symfile_debug):
8022 Update.
8023
5bfd760d
TT
80242019-05-08 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8027 allocate_on_obstack.
8028 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8029 (get_dwarf2_per_objfile): Update.
8030 (set_dwarf2_per_objfile): Remove.
8031 (dwarf2_has_info, dwarf2_get_section_info): Update.
8032 (dwarf2_free_objfile): Remove.
8033 (_initialize_dwarf2_read): Update.
8034
e85e19b4
TT
80352019-05-08 Tom Tromey <tom@tromey.com>
8036
8037 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8038 initializers.
8039 <unsupported_script_warning_printed,
8040 script_not_found_warning_printed>: Now bool.
8041 (auto_load_pspace_data): Change type.
8042 (~auto_load_pspace_info): Rename from
8043 auto_load_pspace_data_cleanup.
8044 (get_auto_load_pspace_data, init_loaded_scripts_info)
8045 (clear_section_scripts, maybe_print_unsupported_script_warning)
8046 (maybe_print_script_not_found_warning, _initialize_auto_load):
8047 Update.
8048
f6aa7436
TT
80492019-05-08 Tom Tromey <tom@tromey.com>
8050
8051 * objfiles.c (objfile_pspace_info): Add destructor and
8052 initializers.
8053 (objfiles_pspace_data): Change type.
8054 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8055 (get_objfile_pspace_data): Update.
8056 (objfiles_bfd_data): Change type.
8057 (get_objfile_bfd_data): Update.
8058 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8059
6ae614f6
TT
80602019-05-08 Tom Tromey <tom@tromey.com>
8061
8062 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8063 Change type.
8064 (get_catch_syscall_inferior_data): Update.
8065 (catch_syscall_inferior_data_cleanup): Remove.
8066 (_initialize_break_catch_syscall): Update.
8067
6509b8eb
TT
80682019-05-08 Tom Tromey <tom@tromey.com>
8069
8070 * inflow.c (struct terminal_info): Add destructor and
8071 initializers.
8072 (inflow_inferior_data): Change type.
8073 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8074 (get_inflow_inferior_data, inflow_inferior_exit)
8075 (swap_terminal_info, _initialize_inflow): Update.
8076
35632941
TT
80772019-05-08 Tom Tromey <tom@tromey.com>
8078
8079 * target-dcache.c (target_dcache_cleanup): Remove.
8080 (target_dcache_aspace_key): Change type.
8081 (target_dcache_init_p, target_dcache_invalidate)
8082 (target_dcache_get, target_dcache_get_or_init)
8083 (_initialize_target_dcache): Update.
8084 * dcache.h (struct dcache_deleter): New.
8085
3017b94d
TT
80862019-05-08 Tom Tromey <tom@tromey.com>
8087
8088 * symtab.c (struct symbol_cache): Add destructor and
8089 initializers.
8090 (symbol_cache_key): Move. Change type.
8091 (make_symbol_cache, free_symbol_cache): Remove.
8092 (get_symbol_cache): Update.
8093 (symbol_cache_cleanup): Remove.
8094 (ALL_PSPACES, symbol_cache_flush)
8095 (maintenance_print_symbol_cache)
8096 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8097 Update.
8098
a32ad8c5
TT
80992019-05-08 Tom Tromey <tom@tromey.com>
8100
8101 * symtab.c (struct main_info): Add destructor and initializers.
8102 (main_progspace_key): Move. Change type.
8103 (get_main_info): Update.
8104 (main_info_cleanup): Remove.
8105 (_initialize_symtab): Update.
8106
5f6e90a0
TT
81072019-05-08 Tom Tromey <tom@tromey.com>
8108
8109 * registry.h (DECLARE_REGISTRY): Define the _key class.
8110
1bd0c6e4
AB
81112019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8112
8113 * NEWS: Merge two 'New commands' sections.
8114
2228ef77
XR
81152019-05-08 Joel Brobecker <brobecker@adacore.com>
8116
8117 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8118 parameter and use Ada language definition instead.
8119 (ada_val_print_ptr): Remove unused language parameter.
8120 (ada_val_print_num): Remove language parameter and use Ada language
8121 definition instead.
8122 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8123 parameter.
8124 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8125 parameter and use Ada language definition instead.
8126 (ada_val_print_1): Update all ada_val_print_xxx calls.
8127 Remove language parameter.
8128 (ada_val_print): Update ada_val_print_1 call.
8129
60fcc1c3
TT
81302019-05-08 Tom Tromey <tromey@adacore.com>
8131
8132 * remote.c (remote_hw_watchpoint_limit)
8133 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8134 Now static.
8135
ed2b7c17
TT
81362019-05-08 Tom Tromey <tromey@adacore.com>
8137
8138 * maint.c (_initialize_maint_cmds): Move initialization code to
8139 remote.c.
8140 (watchdog, show_watchdog): Move to remote.c.
8141 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8142 "watchdog" static.
8143 (_initialize_remote): Move initialization code from maint.c.
8144 * defs.h (watchdog): Don't declare.
8145
b0be6c91
TT
81462019-05-08 Tom Tromey <tromey@adacore.com>
8147
8148 * tui/tui-interp.c: Include main.h.
8149 * interps.c: Include main.h.
8150 * main.h (interpreter_p): Declare.
8151 * defs.h (interpreter_p): Don't declare.
8152
587ee17b
TT
81532019-05-08 Tom Tromey <tromey@adacore.com>
8154
8155 * dwarf2loc.c: Include dwarf2read.h.
8156 * defs.h (read_unsigned_leb128): Don't declare.
8157 * dwarf2read.h (read_unsigned_leb128): Declare.
8158
ca1df239
TT
81592019-05-08 Tom Tromey <tromey@adacore.com>
8160
8161 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8162 method.
8163
99f20f08
TT
81642019-05-08 Tom Tromey <tromey@adacore.com>
8165
8166 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8167 when no wrap column is set.
8168
80e55b13
TT
81692019-05-08 Tom Tromey <tromey@adacore.com>
8170
8171 * c-lang.c (c_get_string): Handle non-C-style arrays.
8172
9d3421af
TT
81732019-05-08 Tom Tromey <tromey@adacore.com>
8174
8175 * typeprint.c (print_offset_data::update): Print the bit offset,
8176 not the number of bits remaining.
8177
844333e2
TT
81782019-05-08 Tom Tromey <tromey@adacore.com>
8179
8180 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8181 padding at end of comment.
8182
988915ee
TT
81832019-05-08 Tom Tromey <tromey@adacore.com>
8184
8185 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8186 Compare main types.
8187
26bfd823
TT
81882019-05-06 Tom Tromey <tom@tromey.com>
8189
8190 * common/scoped_mmap.c: Include common-defs.h.
8191 * common/scoped_mmap.h: Don't include config.h.
8192
89055eaa
TT
81932019-05-04 Tom Tromey <tom@tromey.com>
8194
8195 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8196 (struct aarch64_call_info): Add initializers.
8197 <si>: Now a std::vector.
8198 (pass_on_stack, aarch64_push_dummy_call): Update.
8199
5da01df5
TT
82002019-05-04 Simon Marchi <simon.marchi@efficios.com>
8201 Tom Tromey <tom@tromey.com>
8202
8203 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8204 (ppc_threads): Now a std::vector. Now static.
8205 (hwdebug_find_thread_points_by_tid)
8206 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8207 Update.
8208
fbdf05a1
TT
82092019-05-04 Tom Tromey <tom@tromey.com>
8210
8211 * arc-tdep.c (arc_tdesc_init): Return bool.
8212
06d16ec9
TT
82132019-05-04 Tom Tromey <tom@tromey.com>
8214
8215 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8216 Use gdb_assert_not_reached.
8217
9c056022
TT
82182019-05-04 Tom Tromey <tom@tromey.com>
8219
8220 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8221 "false".
8222
fa9c2a59
TT
82232019-05-04 Tom Tromey <tom@tromey.com>
8224
8225 * arc-tdep.c (arc_tdesc_init): Use bool.
8226
e2eb806a
TT
82272019-05-04 Tom Tromey <tom@tromey.com>
8228
8229 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8230
6fe87677
TT
82312019-05-04 Tom Tromey <tom@tromey.com>
8232
8233 * cli/cli-cmds.c (valid_command_p): Return bool.
8234
7f008c9e
TT
82352019-05-04 Tom Tromey <tom@tromey.com>
8236
8237 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8238 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8239
b6484282
RT
82402019-05-04 Raul Tambre <raul@tambre.ee>
8241
8242 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8243 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8244 operator for comparison.
8245
af97b416
TT
82462019-05-04 Tom Tromey <tom@tromey.com>
8247
8248 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8249 (lookup_partial_symbol, print_partial_symbols)
8250 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8251 (psymbol_compare): Update.
8252 (add_psymbol_to_bcache): Clear the entire psymbol.
8253 (maintenance_check_psymtabs): Update.
8254 * psympriv.h (struct partial_symbol): Don't derive from
8255 general_symbol_info.
8256 <obj_section, unrelocated_address, address,
8257 set_unrelocated_address>: Update.
8258 <ginfo>: New member.
8259 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8260 (debug_names::write_psymbols): Update.
8261
9d6d4be8
TV
82622019-05-04 Tom de Vries <tdevries@suse.de>
8263
8264 * contrib/cc-with-tweaks.sh: Support -n arg.
8265
66452beb
PW
82662019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8267
8268 * corelow.c (core_target::detach): Ensure frame cache and
8269 register caches are cleared.
8270 inferior.c (exit_inferior_1): Likewise.
8271
bde09ab7
TT
82722019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8273 Tom Tromey <tom@tromey.com>
8274
8275 * dictionary.c (collate_pending_symbols_by_language): Remove
8276 "struct" from foreach.
8277 * symtab.c (lookup_global_symbol_from_objfile)
8278 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8279 foreach.
8280 * ser-tcp.c (net_open): Remove "struct" from foreach.
8281 * objfiles.c (objfile_relocate, objfile_rebase)
8282 (objfile_has_symbols): Remove "struct" from foreach.
8283 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8284 from foreach.
8285 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8286 foreach.
8287 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8288 "struct" from foreach.
8289 * ada-lang.c (create_excep_cond_exprs)
8290 (ada_exception_catchpoint_cond_string): Remove "struct" from
8291 foreach.
8292
222a8d25
TT
82932019-05-03 Tom Tromey <tromey@adacore.com>
8294
8295 * ada-exp.y (convert_char_literal): Check suffix of each
8296 enumerator.
8297
fcd60b84
DP
82982019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8299
8300 PR ada/21406:
8301 * ada-exp.y (yywrap): Don't define.
8302 * ada-lex.l (%option): Add noyywrap
8303 (yywrap): Remove.
8304
5f2459c2
EZ
83052019-05-03 Eli Zaretskii <eliz@gnu.org>
8306
353ea2d1
EZ
8307 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8308 _WIN32_WINNT to the XP level, unless already defined to a higher
8309 level.
8310
8311 * unittests/parse-connection-spec-selftests.c:
8312 * ser-tcp.c:
8313 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8314 override.
8315
5f2459c2
EZ
8316 * symfile.c (find_separate_debug_file): Remove colon from the
8317 drive spec of DOS/Windows file names of the target, so that the
8318 file name produced from DEBUGDIR and the target's directory will
8319 be valid on DOS/Windows systems.
8320
80062eb9
AB
83212019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8322
8323 * rust-lang.c (val_print_struct): Handle printing structures
8324 containing strings.
8325
b8c05e85
TT
83262019-05-02 Tom Tromey <tromey@adacore.com>
8327
8328 * valarith.c (_initialize_valarith): Remove.
8329
4504bbde
TT
83302019-05-01 Tom Tromey <tromey@adacore.com>
8331
8332 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8333 bitfields.
8334
d48e62f4
TT
83352019-05-01 Tom Tromey <tromey@adacore.com>
8336
8337 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8338 for big-endian copies.
8339
15f18d14
AT
83402019-04-30 Ali Tamur <tamur@google.com>
8341 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8342 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8343 (read_3_bytes): New function.
8344
ab4ee614
JB
83452019-04-30 Joel Brobecker <brobecker@adacore.com>
8346
8347 * windows-nat.c (main_thread_id): Delete.
8348 (handle_output_debug_string): Replace main_thread_id by
8349 current_event.dwThreadId.
8350 (fake_create_process): Likewise.
8351 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8352 Do not set main_thread_id.
8353 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8354 current_event.dwThreadId.
8355 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8356
8ed5b76e
JB
83572019-04-30 Joel Brobecker <brobecker@adacore.com>
8358
8359 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8360 Use current_event.dwThreadId instead of main_thread_id.
8361
2ff0a947
TT
83622019-04-30 Tom Tromey <tromey@adacore.com>
8363
8364 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8365 (create_excep_cond_exprs): Iterate over program spaces.
8366 (ada_exception_catchpoint_cond_string): Examine all minimal
8367 symbols for exception types.
8368
a776957c
TT
83692019-04-30 Tom Tromey <tromey@adacore.com>
8370
8371 PR c++/24470:
8372 * dwarf2read.c (process_structure_scope): Handle case where type
8373 has template parameters but no symbol was created.
8374
bc68014d
AB
83752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8376 Chris January <chris.january@arm.com>
8377
8378 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8379 qualifier.
8380 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8381
f1fdc960
AB
83822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * f-typeprint.c (f_print_type): Update rules for printing
8385 whitespace.
8386 (f_type_print_varspec_suffix): Likewise.
8387
bf7a4de1
AB
83882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8389 Chris January <chris.january@arm.com>
8390
8391 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8392 function arguments.
8393
bbe75b9d
AB
83942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8395
8396 * f-lang.c (build_fortran_types): Change name of void type to
8397 lower case.
8398 * f-typeprint.c (f_type_print_base): Print the name of the void
8399 type, rather than a fixed string.
8400 * f-valprint.c (f_decorations): Use lower case void string.
8401
1db455a7
AB
84022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8403 Chris January <chris.january@arm.com>
8404
8405 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8406 types for Fortran.
8407
b6d03bb2
AB
84082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8409 Chris January <chris.january@arm.com>
8410 David Lecomber <david.lecomber@arm.com>
8411
8412 * f-exp.y (BINOP_INTRINSIC): New token.
8413 (exp): New parser rule handling BINOP_INTRINSIC.
8414 (f77_keywords): Add new builtin procedures.
8415 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8416 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8417 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8418 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8419 (print_unop_subexp_f): New function.
8420 (print_binop_subexp_f): New function.
8421 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8422 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8423 (dump_subexp_body_f): Likewise.
8424 (operator_check_f): Likewise.
8425 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8426 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8427
83228e93
AB
84282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8431 UNOP_KIND.
8432 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8433 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8434 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8435 (operator_length_f): New fuction.
8436 (print_subexp_f): New function.
8437 (op_name_f): New function.
8438 (dump_subexp_body_f): New function.
8439 (operator_check_f): New function.
8440 (exp_descriptor_f): Replace standard expression handling functions
8441 with new functions.
8442 * gdb/fortran-operator.def: New file.
8443 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8444 * gdb/std-operator.def: Remove UNOP_KIND.
8445
6fdcd7cc
AB
84462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8447
8448 * std-operator.def: Remove unbalanced, stray double quote
8449 character.
8450
2e62ab40
AB
84512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8452 Chris January <chris.january@arm.com>
8453 Daniel Everett <daniel.everett@arm.com>
8454 Nick Forrington <nick.forrington@arm.com>
8455 Richard Bunt <richard.bunt@arm.com>
8456
8457 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8458 of depth when printing anonymous structs or unions.
8459 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8460 Don't print either the top-level value, or the children if the
8461 max-depth is exceeded.
8462 (ppscm_print_children): When printing the key of a map, allow one
8463 extra level of depth.
8464 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8465 print either the top-level value, or the children if the max-depth
8466 is exceeded.
8467 (print_children): When printing the key of a map, allow one extra
8468 level of depth.
8469 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8470 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8471 (user_print_options): Initialise max_depth field.
8472 (val_print_scalar_or_string_type_p): New function.
8473 (val_print): Check to see if the max depth has been reached.
8474 (val_print_check_max_depth): Define new function.
8475 (show_print_max_depth): New function.
8476 (_initialize_valprint): Add 'print max-depth' option.
8477 * valprint.h (struct value_print_options) <max_depth>: New field.
8478 (val_print_check_max_depth): Declare new function.
8479 * NEWS: Document new feature.
8480
4be290b2
AB
84812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8482
8483 * ada-lang.c (ada_language_defn): Initialise new field.
8484 * c-lang.c (c_is_string_type_p): New function.
8485 (c_language_defn): Initialise new field.
8486 (cplus_language_defn): Initialise new field.
8487 (asm_language_defn): Initialise new field.
8488 (minimal_language_defn): Initialise new field.
8489 * c-lang.h (c_is_string_type_p): Declare new function.
8490 * d-lang.c (d_language_defn): Initialise new field.
8491 * f-lang.c (f_is_string_type_p): New function.
8492 (f_language_defn): Initialise new field.
8493 * go-lang.c (go_is_string_type_p): New function.
8494 (go_language_defn): Initialise new field.
8495 * language.c (default_is_string_type_p): New function.
8496 (unknown_language_defn): Initialise new field.
8497 (auto_language_defn): Initialise new field.
8498 * language.h (struct language_defn) <la_is_string_type_p>: New
8499 member variable.
8500 (default_is_string_type_p): Declare new function.
8501 * m2-lang.c (m2_language_defn): Initialise new field.
8502 * objc-lang.c (objc_language_defn): Initialise new field.
8503 * opencl-lang.c (opencl_language_defn): Initialise new field.
8504 * p-lang.c (pascal_is_string_type_p): New function.
8505 (pascal_language_defn): Initialise new field.
8506 * rust-lang.c (rust_is_string_type_p): New function.
8507 (rust_language_defn): Initialise new field.
8508
721b08c6
AB
85092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8512 New field.
8513 * ada-lang.c (ada_language_defn): Initialise new field.
8514 * c-lang.c (c_language_defn): Likewise.
8515 (cplus_language_defn): Likewise.
8516 (asm_language_defn): Likewise.
8517 (minimal_language_defn): Likewise.
8518 * d-lang.c (d_language_defn): Likewise.
8519 * f-lang.c (f_language_defn): Likewise.
8520 * go-lang.c (go_language_defn): Likewise.
8521 * language.c (unknown_language_defn): Likewise.
8522 (auto_language_defn): Likewise.
8523 * m2-lang.c (m2_language_defn): Likewise.
8524 * objc-lang.c (objc_language_defn): Likewise.
8525 * opencl-lang.c (opencl_language_defn): Likewise.
8526 * p-lang.c (pascal_language_defn): Likewise.
8527 * rust-lang.c (rust_language_defn): Likewise.
8528
fc913e53
AB
85292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * ada-lang.c (ada_is_character_type): Change return type to bool.
8532 (ada_is_string_type): Likewise.
8533 * ada-lang.h (ada_is_character_type): Update declaration
8534 (ada_is_string_type): Likewise.
8535
fa731fa0
PW
85362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8537
8538 Support style in 'frame|thread apply'
8539
8540 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8541 * record.c (record_start, record_stop): Update callers of
8542 execute_command_to_string with false.
8543 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8544 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8545 methods.
8546 (class string_file): New constructor with term_out parameter.
8547 Override methods term_out and can_emit_style_escape. New member
8548 term_out.
8549 (class stdio_file): Override can_emit_style_escape.
8550 (class tee_file): Override term_out and can_emit_style_escape.
8551 * utils.h (can_emit_style_escape): Remove.
8552 * utils.c (can_emit_style_escape): Likewise.
8553 Update all callers of can_emit_style_escape (SOMESTREAM) to
8554 SOMESTREAM->can_emit_style_escape.
8555 * source-cache.c (source_cache::get_source_lines): Likewise.
8556 * stack.c (frame_apply_command_count): Call execute_command_to_string
8557 passing the term_out characteristic of the current gdb_stdout.
8558 * thread.c (thr_try_catch_cmd): Likewise.
8559 * top.c (execute_command_to_string): pass term_out parameter
8560 to construct the string_file for the command output.
8561 * ui-file.c (term_cli_styling): New function (most code moved
8562 from utils.c can_emit_style_escape).
8563 (string_file::string_file, string_file::can_emit_style_escape,
8564 stdio_file::can_emit_style_escape, tee_file::term_out,
8565 tee_file::can_emit_style_escape): New functions.
8566
136afab8
PW
85672019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8568
8569 * NEWS: Mention the new set|show may-call-functions.
8570 * infcall.c (may_call_functions_p): New variable.
8571 (show_may_call_functions_p): New function.
8572 (call_function_by_hand_dummy): Throws an error if not
8573 may-call-functions.
8574 (_initialize_infcall): Call add_setshow_boolean_cmd for
8575 may-call-functions.
8576
725cbb63
KS
85772019-04-25 Keith Seitz <keiths@redhat.com>
8578
8579 PR c++/24367
8580 * cp-support.c (inspect_type): Don't attempt substitutions
8581 of symbol with the same name.
8582
3d1cbb78
TT
85832019-04-25 Tom Tromey <tromey@adacore.com>
8584
8585 PR gdb/24475:
8586 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8587 static.
8588
94aeb44b
TT
85892019-04-25 Tom Tromey <tromey@adacore.com>
8590
8591 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8592 rvalue reference.
8593 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8594 (gdb_xml_parser::parse): Use std::move.
8595 * python/python-internal.h (gdbpy_convert_exception): Take a const
8596 reference.
8597 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8598 std::move.
8599 * python/py-utils.c (gdbpy_convert_exception): Take a const
8600 reference.
8601 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8602 Use std::move.
8603 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8604 Use std::move.
8605 * mi/mi-main.c (mi_print_exception): Take a const reference.
8606 * main.c (handle_command_errors): Take a const reference.
8607 * linespec.c (parse_linespec): Use std::move.
8608 * infcall.c (run_inferior_call): Use std::move.
8609 (call_function_by_hand_dummy): Use std::move.
8610 * exec.c (try_open_exec_file): Use std::move.
8611 * exceptions.h (exception_print, exception_fprintf)
8612 (exception_print_same): Update.
8613 * exceptions.c (print_exception, exception_print)
8614 (exception_fprintf, exception_print_same): Change parameters to
8615 const reference.
8616 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8617 * common/new-op.c: Use std::move.
8618 * common/common-exceptions.h (struct gdb_exception): Add move
8619 constructor.
8620 (struct gdb_exception_error, struct gdb_exception_quit, struct
8621 gdb_quit_bad_alloc): Change constructor to move constructor.
8622 (throw_exception): Change parameter to rvalue reference.
8623 * common/common-exceptions.c (throw_exception): Take rvalue
8624 reference.
8625 * cli/cli-interp.c (safe_execute_command): Use std::move.
8626 * breakpoint.c (insert_bp_location, location_to_sals): Use
8627 std::move.
8628
680d7fd5
TT
86292019-04-25 Tom Tromey <tromey@adacore.com>
8630
8631 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8632 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8633 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8634 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8635 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8636 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8637 guile/scm-value.c: Use unpack.
8638 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8639 gdbscm_gdb_exception.
8640 (gdbscm_throw_gdb_exception): Likewise.
8641 (struct gdbscm_gdb_exception): New.
8642 (unpack): New function.
8643 (gdbscm_wrap): Use unpack.
8644
c6fdd8b2
TT
86452019-04-25 Tom Tromey <tromey@adacore.com>
8646
8647 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8648 (gdb_rl_callback_handler): Use std::move.
8649 * common/common-exceptions.h (struct gdb_exception): Add move
8650 assignment operator.
8651 (throw_exception_sjlj): Change "exception" to const reference.
8652 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8653 (throw_exception_sjlj): Change "exception" to const reference.
8654
cc06b668
TT
86552019-04-25 Tom Tromey <tromey@adacore.com>
8656
8657 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8658 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8659 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8660 Update.
8661 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8662 Update.
8663 * mi/mi-interp.c (mi_interp::exec): Update.
8664 * linespec.c (parse_linespec): Update.
8665 * infcall.c (run_inferior_call): Update.
8666 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8667 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8668 (gdbscm_lookup_global_symbol): Update.
8669 * guile/scm-param.c (gdbscm_parameter_value): Update.
8670 * guile/scm-frame.c (gdbscm_frame_read_register)
8671 (gdbscm_frame_read_var): Update.
8672 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8673 * exec.c (try_open_exec_file): Update.
8674 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8675 (gdb_rl_callback_handler): Update.
8676 * common/common-exceptions.h (exception_none): Don't declare.
8677 * common/common-exceptions.c (exception_none): Don't define.
8678 (struct catcher) <exception>: Update.
8679 * cli/cli-interp.c (safe_execute_command): Update.
8680 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8681
cf532bd1
AT
86822019-04-25 Ali Tamur <tamur@google.com>
8683
8684 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8685 (read_attribute_value): Likewise.
8686 (dwarf2_read_addr_index): Update comment.
8687 (read_str_index): Add DW_FORM_strx.
8688 (dwarf2_string_attr): Likewise.
8689 (dwarf2_const_value_attr): Likewise.
8690 (dump_die_shallow): Likewise.
8691 (dwarf2_fetch_constant_bytes): Likewise.
8692 (skip_form_bytes): Likewise.
8693 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8694
82433e3e
SDJ
86952019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8696
8697 PR corefiles/11608
8698 PR corefiles/18187
8699 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8700 OFFSET. Verify if current mapping contains an ELF header.
8701 (linux_find_memory_regions_full): Adjust call to
8702 dump_mapping_p.
8703
723adb65
SL
87042019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8705 Kang Li <kanglictf@gmail.com>
8706
8707 PR gdb/21600
8708
8709 * dwarf2-frame.c (read_initial_length): Be consistent about using
8710 unsigned representation of length.
8711 (decode_frame_entry_1): Likewise. Check for wraparound of
8712 end pointer as well as buffer overflow.
8713
596179f7
SDJ
87142019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8715
8716 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8717 "vq".
8718
a59240a4
TT
87192019-04-24 Tom Tromey <tromey@adacore.com>
8720
8721 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8722
f872fdbb
AB
87232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * s12z-tdep.c (s12z_unwind_pc): Delete.
8726 (s12z_unwind_sp): Delete.
8727 (s12z_gdbarch_init): Don't register deleted functions with
8728 gdbarch.
8729
b614e6f3
AB
87302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * rl78-tdep.c (rl78_unwind_sp): Delete.
8733 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8734
14faed38
AB
87352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8738 (xstormy16_unwind_pc): Delete.
8739 (xstormy16_dummy_id): Delete.
8740 (xstormy16_gdbarch_init): Don't register deleted functions with
8741 gdbarch.
8742
541aad8a
AB
87432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8744
8745 * vax-tdep.c (vax_unwind_pc): Delete.
8746 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8747
29222070
AB
87482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * v850-tdep.c (v850_unwind_sp): Delete.
8751 (v850_unwind_pc): Delete.
8752 (v850_dummy_id): Delete.
8753 (v850_gdbarch_init): Don't register deleted functions with
8754 gdbarch.
8755
0f534d76
AB
87562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8759 (tilegx_unwind_pc): Delete.
8760 (tilegx_unwind_dummy_id): Delete.
8761 (tilegx_gdbarch_init): Don't register deleted functions with
8762 gdbarch.
8763
1ba7b7f9
AB
87642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8765
8766 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8767 (tic6x_dummy_id): Delete.
8768 (tic6x_gdbarch_init): Don't register deleted functions with
8769 gdbarch.
8770
d31f262c
AB
87712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 * sparc-tdep.c (sparc_unwind_pc): Delete.
8774 (sparc32_gdbarch_init): Don't register deleted function with
8775 gdbarch.
8776
6d14d64d
AB
87772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * sh-tdep.c (sh_unwind_sp): Delete.
8780 (sh_unwind_pc): Delete.
8781 (sh_dummy_id): Delete.
8782 (sh_gdbarch_init): Don't register deleted functions with
8783 gdbarch.
8784
a40dde9d
AB
87852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8786
8787 * score-tdep.c (score_unwind_sp): Delete.
8788 (score_unwind_pc): Delete.
8789 (score_dummy_id): Delete.
8790 (score_gdbarch_init): Don't register deleted functions with
8791 gdbarch.
8792
47c47d69
AB
87932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * rx-tdep.c (rx_unwind_pc): Delete.
8796 (rx_unwind_sp): Delete.
8797 (rx_dummy_id): Delete.
8798 (rx_gdbarch_init): Don't register deleted functions with
8799 gdbarch. Update comment.
8800
833a4480
AB
88012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8802
8803 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8804 (rs6000_dummy_id): Delete.
8805 (rs6000_gdbarch_init): Don't register deleted functions with
8806 gdbarch.
8807
3f2cef49
AB
88082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * or1k-tdep.c (or1k_dummy_id): Delete.
8811 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8812
96acf884
AB
88132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8814
8815 * nios2-tdep.c (nios2_dummy_id): Delete.
8816 (nios2_unwind_sp): Delete.
8817 (nios2_gdbarch_init): Don't register deleted functions with
8818 gdbarch.
8819
ca0ab0aa
AB
88202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8821
8822 * nds32-tdep.c (nds32_dummy_id): Delete.
8823 (nds32_unwind_pc): Delete.
8824 (nds32_unwind_sp): Delete.
8825 (nds32_gdbarch_init): Don't register deleted functions with
8826 gdbarch.
8827
c8259044
AB
88282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * msp430-tdep.c (msp430_unwind_pc): Delete.
8831 (msp430_unwind_sp): Delete.
8832 (msp430_dummy_id): Delete.
8833 (msp430_gdbarch_init): Don't register deleted functions with
8834 gdbarch.
8835
27f113c8
AB
88362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * moxie-tdep.c (moxie_unwind_sp): Delete.
8839 (moxie_unwind_pc): Delete.
8840 (moxie_dummy_id): Delete.
8841 (moxie_gdbarch_init): Don't register deleted functions with
8842 gdbarch.
8843
aee6c3cd
AB
88442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8845
8846 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8847 (mn10300_unwind_pc): Delete.
8848 (mn10300_unwind_sp): Delete.
8849 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8850 mn10300_unwind_sp.
8851 (mn10300_frame_unwind_init): Don't register deleted functions with
8852 gdbarch.
8853
8e2b5aea
AB
88542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8855
8856 * mep-tdep.c (mep_unwind_pc): Delete.
8857 (mep_unwind_sp): Delete.
8858 (mep_dummy_id): Delete.
8859 (mep_gdbarch_init): Don't register deleted functions with
8860 gdbarch.
8861
43cf3ede
AB
88622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8865 (m68hc11_unwind_sp): Delete.
8866 (m68hc11_gdbarch_init): Don't register deleted functions with
8867 gdbarch.
8868
5e79b7bb
AB
88692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * m32r-tdep.c (m32r_unwind_sp): Delete.
8872 (m32r_unwind_pc): Delete.
8873 (m32r_dummy_id): Delete.
8874 (m32r_gdbarch_init): Don't register deleted functions with
8875 gdbarch.
8876
89b268d8
AB
88772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * m32c-tdep.c (m32c_unwind_pc): Delete.
8880 (m32c_unwind_sp): Delete.
8881 (m32c_dummy_id): Delete.
8882 (m32c_gdbarch_init): Don't register deleted functions with
8883 gdbarch.
8884
946c28d2
AB
88852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8886
8887 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8888 (lm32_unwind_pc): Delete.
8889 (lm32_dummy_id): Delete.
8890 (lm32_gdbarch_init): Don't register deleted functions with
8891 gdbarch.
8892
bf12844a
AB
88932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8894
8895 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8896 (iq2000_unwind_pc): Delete.
8897 (iq2000_dummy_id): Delete.
8898 (iq2000_gdbarch_init): Don't register deleted functions with
8899 gdbarch.
8900
ecbc06d2
AB
89012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8902
8903 * nds32-tdep.c (nds32_type_align): Delete.
8904 (nds32_push_dummy_call): Use type_align instead.
8905
030197b4
AB
89062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8907
8908 * arm-tdep.c (arm_type_align): Only handle vector override case.
8909 (arm_push_dummy_call): Use type_align.
8910 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8911
b907456c
AB
89122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8913
8914 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8915 case.
8916 (pass_on_stack): Use type_align.
8917 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8918 function.
8919
9e97ba43
TT
89202019-04-23 Tom Tromey <tromey@adacore.com>
8921
8922 * dwarf2read.c (line_header::file_name_at): Remove unused
8923 overload.
8924
6892f601
TV
89252019-04-23 Tom de Vries <tdevries@suse.de>
8926
8927 PR gdb/24438
8928 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8929 invocation.
8930
336d760d
AT
8931
89322019-03-27 Ali Tamur <tamur@google.com>
8933
8934 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8935 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8936 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8937 (dwarf_expr_context::get_addr_index): Likewise
8938 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8939 (symbol_needs_eval_context::get_addr_index): Likewise
8940 (disassemble_dwarf_expression): Add DW_OP_addrx
8941 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8942 (read_cutu_die_from_dwo): Update comment
8943 (skip_one_die): Add DW_FORM_addrx
8944 (read_attribute_value): Likewise
8945 (var_decode_location): Add DW_OP_addrx
8946 (dwarf2_const_value_attr): Add DW_FORM_addrx
8947 (dump_die_shallow): Likewise
8948 (dwarf2_fetch_constant_bytes): Likewise
8949 (decode_locdesc): Add DW_OP_addrx
8950 (skip_form_bytes): Add DW_FORM_addrx
8951
ad9d13f8
AT
89522019-04-22 Ali Tamur <tamur@google.com>
8953
8954 * MAINTAINERS (Write After Approval): Add self.
8955
d70cc3ba
SM
89562019-04-22 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8959 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8960 (open_symbol_file_object): Likewise.
8961 (svr4_default_sos): Add info parameter.
8962 (svr4_read_so_list): Likewise.
8963 (svr4_current_sos_direct): Adjust functions calls to pass down
8964 info.
8965 (svr4_current_sos_1): Add info parameter.
8966 (svr4_current_sos): Call get_svr4_info, pass info down to
8967 svr4_current_sos_1.
8968 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8969 get_svr4_info.
8970 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8971 get_svr4_info.
8972 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8973 to get_svr4_info.
8974 (probes_table_remove_objfile_probes): Likewise.
8975 (register_solib_event_probe): Add info parameter.
8976 (solist_update_incremental): Pass info parameter down to
8977 svr4_read_so_list.
8978 (disable_probes_interface): Add info parameter.
8979 (svr4_handle_solib_event): Pass current_program_space to
8980 get_svr4_info. Adjust disable_probes_interface cleanup.
8981 (svr4_create_probe_breakpoints): Add info parameter, pass it
8982 down to register_solib_event_probe.
8983 (svr4_create_solib_event_breakpoints): Add info parameter,
8984 pass it down to svr4_create_probe_breakpoints.
8985 (enable_break): Pass info down to
8986 svr4_create_solib_event_breakpoints.
8987 (svr4_solib_create_inferior_hook): Pass current_program_space to
8988 get_svr4_info.
8989 (svr4_clear_solib): Likewise.
8990
7905fc35
PA
89912019-04-22 Pedro Alves <palves@redhat.com>
8992
8993 * solib-svr4.c (svr4_free_objfile_observer): New.
8994 (probe_and_action::objfile): New field.
8995 (probes_table_htab_remove_objfile_probes)
8996 (probes_table_remove_objfile_probes): New functions.
8997 (register_solib_event_probe): Add 'objfile' parameter. Store it
8998 in the new probe_and_action. Don't store the probe in 'lookup'.
8999 (svr4_create_probe_breakpoints): Pass objfile to
9000 register_solib_event_probe.
9001 (_initialize_svr4_solib): Register a free_objfile observer.
9002
fb881986
TT
90032019-04-19 Tom Tromey <tom@tromey.com>
9004
9005 * common/queue.h: Remove.
9006
8732db6c
TT
90072019-04-19 Tom Tromey <tom@tromey.com>
9008
9009 * event-loop.c: Don't include "common/queue.h".
9010
97dfbadd
TT
90112019-04-19 Tom Tromey <tom@tromey.com>
9012
9013 * remote.c (remote_target): Use delete.
9014 * remote-notif.h: Include <list>, not "common/queue.h".
9015 (notif_client_p): Remove typedef.
9016 (remote_notif_state): Add constructor, destructor, initializer.
9017 <notif_queue>: Now a std::list.
9018 (remote_notif_state_xfree): Don't declare.
9019 * remote-notif.c (remote_notif_process, handle_notification)
9020 (remote_notif_state_allocate): Update.
9021 (~remote_notif_state): Rename from remote_notif_state_xfree.
9022
cf250e36
TT
90232019-04-19 Tom Tromey <tom@tromey.com>
9024
9025 * symfile.c (reread_symbols): Update.
9026 * objfiles.c (objfile_register_static_link)
9027 (objfile_lookup_static_link): Update
9028 (~objfile) Don't delete static_links.
9029 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9030
61f4b350
TT
90312019-04-19 Tom Tromey <tom@tromey.com>
9032
9033 * type-stack.h (struct type_stack) <insert>: Constify string.
9034 * type-stack.c (type_stack::insert): Constify string.
9035 * gdbtypes.h (lookup_template_type): Update.
9036 (address_space_name_to_int): Update.
9037 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9038 const.
9039 (lookup_template_type): Make name const.
9040 * c-exp.y: Update rules.
9041 (lex_one_token, classify_name, classify_inner_name)
9042 (c_print_token): Update.
9043 * p-exp.y: Update rules.
9044 (yylex): Update.
9045 * f-exp.y: Update rules.
9046 (yylex): Update.
9047 * d-exp.y: Update rules.
9048 (lex_one_token, classify_name, classify_inner_name): Update.
9049 * parse.c (write_dollar_variable, copy_name): Return std::string.
9050 * parser-defs.h (copy_name): Change return type.
9051 * m2-exp.y: Update rules.
9052 (yylex): Update.
9053 * go-exp.y (lex_one_token): Update.
9054 Update rules.
9055 (classify_unsafe_function, classify_packaged_name)
9056 (classify_name, yylex): Update.
9057
189b8c2e
ST
90582019-04-19 Sergei Trofimovich <siarheit@google.com>
9059
9060 * configure.ac: add --enable-source-highlight switch.
9061 * configure: Regenerate.
9062 * top.c (print_gdb_version): plumb --enable-source-highlight
9063 status to "show configuration".
9064
8ecb59f8
TT
90652019-04-19 Tom Tromey <tromey@adacore.com>
9066
9067 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9068 Check ADA_TYPE_P.
9069 (empty_record, ada_template_to_fixed_record_type_1)
9070 (template_to_static_fixed_type)
9071 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9072 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9073 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9074 macros.
9075
62160ec9
TT
90762019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9077
9078 PR symtab/24423:
9079 * source.c (print_source_lines_base): Advance "iter" when a
9080 control character is seen.
9081
f2ae8bc8
PW
90822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9083
9084 * inferior.h (struct infcall_suspend_state_deleter):
9085 Catch exception in destructor to avoid crash.
9086
d563b953
PW
90872019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9088
9089 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9090 close to the add_com "shell".
9091
dc34c897
TT
90922019-04-18 Tom Tromey <tromey@adacore.com>
9093
9094 * process-stratum-target.h (class process_stratum_target)
9095 <stratum>: Add "final".
9096
a12e5744
TT
90972019-04-17 Tom Tromey <tromey@adacore.com>
9098
9099 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9100 against nullptr before use.
9101
a7e559cc
AH
91022019-04-17 Alan Hayward <alan.hayward@arm.com>
9103
9104 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9105
c01660c6
AB
91062019-04-17 Jim Wilson <jimw@sifive.com>
9107 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9110 code read might fail, assume 4-byte breakpoint in that case.
9111
4aa866af
LS
91122019-04-15 Leszek Swirski <leszeks@google.com>
9113
9114 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9115 rather than a hand-rolled POD check when checking for forced MEMORY
9116 classification.
9117
48574d91
AH
91182019-04-15 Alan Hayward <alan.hayward@arm.com>
9119
9120 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9121 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9122 function.
9123 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9124 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9125 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9126 declaration.
9127
4da037ef
AH
91282019-04-15 Alan Hayward <alan.hayward@arm.com>
9129
9130 * aarch64-linux-nat.c
9131 (aarch64_linux_nat_target::thread_architecture): Add override.
9132 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9133 each VQ.
9134
ccb8d7e8
AH
91352019-04-15 Alan Hayward <alan.hayward@arm.com>
9136
9137 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9138
35add35e
AB
91392019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9142 target types of size 96-bits, add some additional comments, and
9143 check that the builtin type we found was the correct size.
9144
51196bbc
EZ
91452019-04-12 Eli Zaretskii <eliz@gnu.org>
9146
9147 * utils.c (prompt_for_continue): Don't restore the styling at the
9148 end, as applied_style has the wrong value. This fixes styling in
9149 long lists of file names that are interrupted by the "Continue?"
9150 prompt.
9151
62253a61
AB
91522019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9155 * c-lang.c (c_language_defn): Likewise.
9156 (cplus_language_defn): Likewise.
9157 (asm_language_defn): Likewise.
9158 (minimal_language_defn): Likewise.
9159 * d-lang.c (d_language_defn): Likewise.
9160 * f-lang.c (f_language_defn): Likewise.
9161 * go-lang.c (go_language_defn): Likewise.
9162 * language.c (unknown_language_defn): Likewise.
9163 (auto_language_defn): Likewise.
9164 * language.h (struct language_defn): Remove la_magic field.
9165 (LANG_MAGIC): Delete.
9166 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9167 * objc-lang.c (objc_language_defn): Likewise.
9168 * opencl-lang.c (opencl_language_defn): Likewise.
9169 * p-lang.c (pascal_language_defn): Likewise.
9170 * rust-lang.c (rust_language_defn): Likewise.
9171
a9158a86
AB
91722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9173
9174 * riscv-tdep.c (riscv_type_align): New function.
9175 (riscv_type_alignment): Delete.
9176 (riscv_arg_location): Use 'type_align'.
9177 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9178
41077b66
AB
91792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * gdbtypes.c (type_align): A struct with no non-static fields also
9182 has alignment of 1.
9183
9f0272f8
AB
91842019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9187 component to 0.
9188 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9189 member.
9190 (riscv_struct_info::analyse): New implementation using new
9191 analyse_inner member function.
9192 (riscv_struct_info::field_offset): New member function.
9193 (riscv_struct_info::m_offsets): New member variable.
9194 (riscv_struct_info::analyse_inner): New private member function,
9195 takes the old implementation of riscv_struct_info::analyse but
9196 extended to track field offsets.
9197 (riscv_call_arg_struct): Update the struct folding special cases
9198 to handle cases where empty C++ structs, which are non-zero
9199 length, are found.
9200 (riscv_arg_location): Initialise the length of each location, a
9201 non-zero length now indicates the location is in use.
9202 (riscv_push_dummy_call): Allow for the first location having a
9203 non-zero offset when setting up arguments.
9204 (riscv_return_value): Likewise, but for return values.
9205
02cf60c7
TT
92062019-04-11 Tom Tromey <tromey@adacore.com>
9207
9208 * utils.c (internal_vproblem): Make "msg" const.
9209
68811f8f
AH
92102019-04-11 Alan Hayward <alan.hayward@arm.com>
9211
9212 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9213 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9214 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9215 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9216
3f52fdbc
KB
92172019-04-10 Kevin Buettner <kevinb@redhat.com>
9218
9219 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9220 function.
9221 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9222 of amd64_collect_native_gregset.
9223 (amd64_linux_nat_target::store_registers): Likewise.
9224
e9ad22ee
TT
92252019-04-10 Tom Tromey <tom@tromey.com>
9226
9227 * symtab.c (lookup_global_symbol_from_objfile)
9228 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9229 * objfiles.h (class separate_debug_iterator): New.
9230 (class separate_debug_range): New.
9231 (struct objfile) <separate_debug_objfiles>: New method.
9232 (objfile_separate_debug_iterate): Don't declare.
9233 * objfiles.c (separate_debug_iterator::operator++): Rename from
9234 objfile_separate_debug_iterate.
9235 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9236 iterator.
9237 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9238 iterator.
9239
ee371134
TT
92402019-04-10 Tom Tromey <tom@tromey.com>
9241
9242 * symfile.c (reread_symbols): Remove old comment.
9243 * objfiles.c (free_all_objfiles): Fix a typo.
9244
bf227d61
TT
92452019-04-10 Tom Tromey <tom@tromey.com>
9246
9247 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9248 * minsyms.c (lookup_minimal_symbol): Use foreach.
9249 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9250 (lookup_minimal_symbol_solib_trampoline): Likewise.
9251 * symfile.c (reread_symbols): Use foreach.
9252
8dc433a0
TT
92532019-04-09 Ivan Begert <ivanbegert@gmail.com>
9254 Tom Tromey <tromey@adacore.com>
9255
9256 PR rust/24414:
9257 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9258 (rust_lex_int_test): Change "value" to be LONGEST.
9259 (rust_lex_tests): Add test for long integer literal.
9260
9ab8741a
TT
92612019-04-09 Tom Tromey <tromey@adacore.com>
9262
9263 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9264 to bool.
9265 (extended_remote_target::attach): Update.
9266 (remote_target::remote_notice_new_inferior): Update.
9267 (remote_target::add_current_inferior_and_thread): Update.
9268 * inferior.c (exit_inferior_1): Use "false".
9269 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9270
e242fd12
SM
92712019-04-09 Simon Marchi <simon.marchi@efficios.com>
9272
9ca1957f 9273 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9274 the "start" command.
9275
2b0c8b01
KB
92762019-04-08 Kevin Buettner <kevinb@redhat.com>
9277
9278 * python/py-inferior.c (infpy_thread_from_thread_handle):
9279 Adjust comments to reflect renaming of thread_from_thread_handle
9280 to thread_from_handle. Adjust keywords. Fix type error message.
9281 (inferior_object_methods): Add thread_from_handle. Retain
9282 thread_from_thread_handle, but mark it as deprecated.
9283
50a82723
KB
92842019-04-08 Kevin Buettner <kevinb@redhat.com>
9285
9286 * gdbthread.h (find_thread_by_handle): Revise declaration.
9287 * thread.c (find_thread_by_handle): Likewise. Adjust
9288 implementation too.
9289 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9290 support for buffer objects as handles.
9291
cf63b016
KB
92922019-04-08 Kevin Buettner <kevinb@redhat.com>
9293
9294 * python/py-infthread.c (thpy_thread_handle): New function.
9295 (thread_object_methods): Register thpy_thread_handle.
9296
3d6c6204
KB
92972019-04-08 Kevin Buettner <kevinb@redhat.com>
9298
9299 * gdbthread.h (thread_to_thread_handle): Declare.
9300 * thread.c (gdbtypes.h): Include.
9301 (thread_to_thread_handle): New function.
9302
9303 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9304 (target_thread_info_to_thread_handle): Declare.
9305 * target.c (target_thread_info_to_thread_handle): New function.
9306 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9307 * target-delegates.c: Regenerate.
9308
9309 * linux-thread-db.c (class thread_db_target): Add method
9310 thread_info_to_thread_handle.
9311 (thread_db_target::thread_info_to_thread_handle): Define.
9312 * remote.c (class remote_target): Add new method
9313 thread_info_to_thread_handle.
9314 (remote_target::thread_info_to_thread_handle): Define.
9315
56be6ea8
PA
93162019-04-08 Pedro Alves <palves@redhat.com>
9317
9318 * common/common-exceptions.c (throw_exception): Don't create
9319 named object to throw; throw directly.
9320 (throw_it): Likewise. Don't initialize gdb_exception::message
9321 here, with new; pass FMT and AP to the ctor instead.
9322 * common/common-exceptions.h: Include <string>.
9323 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9324 const char *, va_list)): New ctor. Use std::make_shared.
9325 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9326 errors)): Delete.
9327 (gdb_exception_error::gdb_exception_error(enum errors, const char
9328 *, va_list)): New.
9329 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9330 Add assertion.
9331 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9332 errors)): Delete.
9333 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9334 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9335 Add assertion.
9336
eedc3f4f
TT
93372019-04-08 Tom Tromey <tom@tromey.com>
9338
9339 * valops.c (value_rtti_indirect_type): Replace throw_exception
9340 with throw.
9341 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9342 with throw.
9343 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9344 throw.
9345 * target.c (target_translate_tls_address): Replace throw_exception
9346 with throw.
9347 * stack.c (frame_apply_command_count): Replace throw_exception
9348 with throw.
9349 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9350 throw.
9351 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9352 with throw.
9353 * rs6000-tdep.c (rs6000_frame_cache)
9354 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9355 * remote.c: Replace throw_exception with throw.
9356 * record-full.c (record_full_message, record_full_wait_1)
9357 (record_full_restore): Replace throw_exception with throw.
9358 * record-btrace.c:
9359 (get_thread_current_frame_id, record_btrace_start_replaying)
9360 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9361 (cmd_record_btrace_start): Replace throw_exception with throw.
9362 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9363 throw.
9364 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9365 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9366 * linespec.c:
9367 (find_linespec_symbols): Replace throw_exception with throw.
9368 * infrun.c (displaced_step_prepare, resume): Replace
9369 throw_exception with throw.
9370 * infcmd.c (post_create_inferior): Replace throw_exception with
9371 throw.
9372 * inf-loop.c (inferior_event_handler): Replace throw_exception
9373 with throw.
9374 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9375 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9376 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9377 (get_prev_frame_always, get_frame_pc_if_available)
9378 (get_frame_address_in_block_if_available, get_frame_language):
9379 Replace throw_exception with throw.
9380 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9381 throw_exception with throw.
9382 * eval.c (fetch_subexp_value, evaluate_var_value)
9383 (evaluate_funcall, evaluate_subexp_standard): Replace
9384 throw_exception with throw.
9385 * dwarf2loc.c (call_site_find_chain)
9386 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9387 Replace throw_exception with throw.
9388 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9389 with throw.
9390 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9391 throw.
9392 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9393 * completer.c (complete_line_internal): Replace throw_exception
9394 with throw.
9395 * compile/compile-object-run.c (compile_object_run): Replace
9396 throw_exception with throw.
9397 * cli/cli-script.c (process_next_line): Replace throw_exception
9398 with throw.
9399 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9400 (btrace_enable, btrace_maint_update_pt_packets): Replace
9401 throw_exception with throw.
9402 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9403 throw_exception with throw.
9404 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9405 throw_exception with throw.
9406 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9407 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9408 * aarch64-tdep.c (aarch64_make_prologue_cache)
9409 (aarch64_make_stub_cache): Replace throw_exception with throw.
9410
26003a20
TT
94112019-04-08 Tom Tromey <tom@tromey.com>
9412
9413 * common/common-exceptions.c (throw_exception): Rename from
9414 throw_exception_cxx. Remove old copy. Make argument const.
9415 (throw_it): Create and throw exception objects directly.
9416 * common/common-exceptions.h (throw_exception): Make argument
9417 const.
9418 (struct gdb_exception_error): Add constructor.
9419 (struct gdb_exception_quit): Add constructor.
9420
d272eb37
TT
94212019-04-08 Tom Tromey <tom@tromey.com>
9422
9423 * common/common-exceptions.h (exception_rethrow): Don't declare.
9424 (TRY_SJLJ): Update comment.
9425 (TRY, CATCH, END_CATCH): Remove.
9426 * common/common-exceptions.c (exception_rethrow): Remove.
9427
230d2906
TT
94282019-04-08 Tom Tromey <tom@tromey.com>
9429
9430 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9431 Remove.
9432 (gdb_exception_error): Rename from
9433 gdb_exception_RETURN_MASK_ERROR.
9434 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9435 (gdb_quit_bad_alloc): Update.
9436 * aarch64-tdep.c: Update.
9437 * ada-lang.c: Update.
9438 * ada-typeprint.c: Update.
9439 * ada-valprint.c: Update.
9440 * amd64-tdep.c: Update.
9441 * arch-utils.c: Update.
9442 * break-catch-throw.c: Update.
9443 * breakpoint.c: Update.
9444 * btrace.c: Update.
9445 * c-varobj.c: Update.
9446 * cli/cli-cmds.c: Update.
9447 * cli/cli-interp.c: Update.
9448 * cli/cli-script.c: Update.
9449 * common/common-exceptions.c: Update.
9450 * common/new-op.c: Update.
9451 * common/selftest.c: Update.
9452 * compile/compile-c-symbols.c: Update.
9453 * compile/compile-cplus-symbols.c: Update.
9454 * compile/compile-object-load.c: Update.
9455 * compile/compile-object-run.c: Update.
9456 * completer.c: Update.
9457 * corelow.c: Update.
9458 * cp-abi.c: Update.
9459 * cp-support.c: Update.
9460 * cp-valprint.c: Update.
9461 * darwin-nat.c: Update.
9462 * disasm-selftests.c: Update.
9463 * dtrace-probe.c: Update.
9464 * dwarf-index-cache.c: Update.
9465 * dwarf-index-write.c: Update.
9466 * dwarf2-frame-tailcall.c: Update.
9467 * dwarf2-frame.c: Update.
9468 * dwarf2loc.c: Update.
9469 * dwarf2read.c: Update.
9470 * eval.c: Update.
9471 * event-loop.c: Update.
9472 * event-top.c: Update.
9473 * exec.c: Update.
9474 * f-valprint.c: Update.
9475 * fbsd-tdep.c: Update.
9476 * frame-unwind.c: Update.
9477 * frame.c: Update.
9478 * gdbtypes.c: Update.
9479 * gnu-v3-abi.c: Update.
9480 * guile/guile-internal.h: Update.
9481 * guile/scm-block.c: Update.
9482 * guile/scm-breakpoint.c: Update.
9483 * guile/scm-cmd.c: Update.
9484 * guile/scm-disasm.c: Update.
9485 * guile/scm-frame.c: Update.
9486 * guile/scm-lazy-string.c: Update.
9487 * guile/scm-math.c: Update.
9488 * guile/scm-param.c: Update.
9489 * guile/scm-ports.c: Update.
9490 * guile/scm-pretty-print.c: Update.
9491 * guile/scm-symbol.c: Update.
9492 * guile/scm-symtab.c: Update.
9493 * guile/scm-type.c: Update.
9494 * guile/scm-value.c: Update.
9495 * i386-linux-tdep.c: Update.
9496 * i386-tdep.c: Update.
9497 * inf-loop.c: Update.
9498 * infcall.c: Update.
9499 * infcmd.c: Update.
9500 * infrun.c: Update.
9501 * jit.c: Update.
9502 * language.c: Update.
9503 * linespec.c: Update.
9504 * linux-fork.c: Update.
9505 * linux-nat.c: Update.
9506 * linux-tdep.c: Update.
9507 * linux-thread-db.c: Update.
9508 * main.c: Update.
9509 * mi/mi-cmd-break.c: Update.
9510 * mi/mi-cmd-stack.c: Update.
9511 * mi/mi-interp.c: Update.
9512 * mi/mi-main.c: Update.
9513 * objc-lang.c: Update.
9514 * p-valprint.c: Update.
9515 * parse.c: Update.
9516 * ppc-linux-tdep.c: Update.
9517 * printcmd.c: Update.
9518 * python/py-arch.c: Update.
9519 * python/py-breakpoint.c: Update.
9520 * python/py-cmd.c: Update.
9521 * python/py-finishbreakpoint.c: Update.
9522 * python/py-frame.c: Update.
9523 * python/py-framefilter.c: Update.
9524 * python/py-gdb-readline.c: Update.
9525 * python/py-inferior.c: Update.
9526 * python/py-infthread.c: Update.
9527 * python/py-lazy-string.c: Update.
9528 * python/py-linetable.c: Update.
9529 * python/py-objfile.c: Update.
9530 * python/py-param.c: Update.
9531 * python/py-prettyprint.c: Update.
9532 * python/py-progspace.c: Update.
9533 * python/py-record-btrace.c: Update.
9534 * python/py-record.c: Update.
9535 * python/py-symbol.c: Update.
9536 * python/py-type.c: Update.
9537 * python/py-unwind.c: Update.
9538 * python/py-utils.c: Update.
9539 * python/py-value.c: Update.
9540 * python/python.c: Update.
9541 * record-btrace.c: Update.
9542 * record-full.c: Update.
9543 * remote-fileio.c: Update.
9544 * remote.c: Update.
9545 * riscv-tdep.c: Update.
9546 * rs6000-aix-tdep.c: Update.
9547 * rs6000-tdep.c: Update.
9548 * rust-exp.y: Update.
9549 * rust-lang.c: Update.
9550 * s390-tdep.c: Update.
9551 * selftest-arch.c: Update.
9552 * solib-dsbt.c: Update.
9553 * solib-frv.c: Update.
9554 * solib-spu.c: Update.
9555 * solib-svr4.c: Update.
9556 * solib.c: Update.
9557 * sparc64-linux-tdep.c: Update.
9558 * stack.c: Update.
9559 * symfile-mem.c: Update.
9560 * symmisc.c: Update.
9561 * target.c: Update.
9562 * thread.c: Update.
9563 * top.c: Update.
9564 * tracefile-tfile.c: Update.
9565 * tui/tui.c: Update.
9566 * typeprint.c: Update.
9567 * unittests/cli-utils-selftests.c: Update.
9568 * unittests/parse-connection-spec-selftests.c: Update.
9569 * valops.c: Update.
9570 * valprint.c: Update.
9571 * value.c: Update.
9572 * varobj.c: Update.
9573 * windows-nat.c: Update.
9574 * x86-linux-nat.c: Update.
9575 * xml-support.c: Update.
9576
a70b8144
TT
95772019-04-08 Tom Tromey <tom@tromey.com>
9578
9579 * xml-support.c: Use C++ exception handling.
9580 * x86-linux-nat.c: Use C++ exception handling.
9581 * windows-nat.c: Use C++ exception handling.
9582 * varobj.c: Use C++ exception handling.
9583 * value.c: Use C++ exception handling.
9584 * valprint.c: Use C++ exception handling.
9585 * valops.c: Use C++ exception handling.
9586 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9587 handling.
9588 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9589 * typeprint.c: Use C++ exception handling.
9590 * tui/tui.c: Use C++ exception handling.
9591 * tracefile-tfile.c: Use C++ exception handling.
9592 * top.c: Use C++ exception handling.
9593 * thread.c: Use C++ exception handling.
9594 * target.c: Use C++ exception handling.
9595 * symmisc.c: Use C++ exception handling.
9596 * symfile-mem.c: Use C++ exception handling.
9597 * stack.c: Use C++ exception handling.
9598 * sparc64-linux-tdep.c: Use C++ exception handling.
9599 * solib.c: Use C++ exception handling.
9600 * solib-svr4.c: Use C++ exception handling.
9601 * solib-spu.c: Use C++ exception handling.
9602 * solib-frv.c: Use C++ exception handling.
9603 * solib-dsbt.c: Use C++ exception handling.
9604 * selftest-arch.c: Use C++ exception handling.
9605 * s390-tdep.c: Use C++ exception handling.
9606 * rust-lang.c: Use C++ exception handling.
9607 * rust-exp.y: Use C++ exception handling.
9608 * rs6000-tdep.c: Use C++ exception handling.
9609 * rs6000-aix-tdep.c: Use C++ exception handling.
9610 * riscv-tdep.c: Use C++ exception handling.
9611 * remote.c: Use C++ exception handling.
9612 * remote-fileio.c: Use C++ exception handling.
9613 * record-full.c: Use C++ exception handling.
9614 * record-btrace.c: Use C++ exception handling.
9615 * python/python.c: Use C++ exception handling.
9616 * python/py-value.c: Use C++ exception handling.
9617 * python/py-utils.c: Use C++ exception handling.
9618 * python/py-unwind.c: Use C++ exception handling.
9619 * python/py-type.c: Use C++ exception handling.
9620 * python/py-symbol.c: Use C++ exception handling.
9621 * python/py-record.c: Use C++ exception handling.
9622 * python/py-record-btrace.c: Use C++ exception handling.
9623 * python/py-progspace.c: Use C++ exception handling.
9624 * python/py-prettyprint.c: Use C++ exception handling.
9625 * python/py-param.c: Use C++ exception handling.
9626 * python/py-objfile.c: Use C++ exception handling.
9627 * python/py-linetable.c: Use C++ exception handling.
9628 * python/py-lazy-string.c: Use C++ exception handling.
9629 * python/py-infthread.c: Use C++ exception handling.
9630 * python/py-inferior.c: Use C++ exception handling.
9631 * python/py-gdb-readline.c: Use C++ exception handling.
9632 * python/py-framefilter.c: Use C++ exception handling.
9633 * python/py-frame.c: Use C++ exception handling.
9634 * python/py-finishbreakpoint.c: Use C++ exception handling.
9635 * python/py-cmd.c: Use C++ exception handling.
9636 * python/py-breakpoint.c: Use C++ exception handling.
9637 * python/py-arch.c: Use C++ exception handling.
9638 * printcmd.c: Use C++ exception handling.
9639 * ppc-linux-tdep.c: Use C++ exception handling.
9640 * parse.c: Use C++ exception handling.
9641 * p-valprint.c: Use C++ exception handling.
9642 * objc-lang.c: Use C++ exception handling.
9643 * mi/mi-main.c: Use C++ exception handling.
9644 * mi/mi-interp.c: Use C++ exception handling.
9645 * mi/mi-cmd-stack.c: Use C++ exception handling.
9646 * mi/mi-cmd-break.c: Use C++ exception handling.
9647 * main.c: Use C++ exception handling.
9648 * linux-thread-db.c: Use C++ exception handling.
9649 * linux-tdep.c: Use C++ exception handling.
9650 * linux-nat.c: Use C++ exception handling.
9651 * linux-fork.c: Use C++ exception handling.
9652 * linespec.c: Use C++ exception handling.
9653 * language.c: Use C++ exception handling.
9654 * jit.c: Use C++ exception handling.
9655 * infrun.c: Use C++ exception handling.
9656 * infcmd.c: Use C++ exception handling.
9657 * infcall.c: Use C++ exception handling.
9658 * inf-loop.c: Use C++ exception handling.
9659 * i386-tdep.c: Use C++ exception handling.
9660 * i386-linux-tdep.c: Use C++ exception handling.
9661 * guile/scm-value.c: Use C++ exception handling.
9662 * guile/scm-type.c: Use C++ exception handling.
9663 * guile/scm-symtab.c: Use C++ exception handling.
9664 * guile/scm-symbol.c: Use C++ exception handling.
9665 * guile/scm-pretty-print.c: Use C++ exception handling.
9666 * guile/scm-ports.c: Use C++ exception handling.
9667 * guile/scm-param.c: Use C++ exception handling.
9668 * guile/scm-math.c: Use C++ exception handling.
9669 * guile/scm-lazy-string.c: Use C++ exception handling.
9670 * guile/scm-frame.c: Use C++ exception handling.
9671 * guile/scm-disasm.c: Use C++ exception handling.
9672 * guile/scm-cmd.c: Use C++ exception handling.
9673 * guile/scm-breakpoint.c: Use C++ exception handling.
9674 * guile/scm-block.c: Use C++ exception handling.
9675 * guile/guile-internal.h: Use C++ exception handling.
9676 * gnu-v3-abi.c: Use C++ exception handling.
9677 * gdbtypes.c: Use C++ exception handling.
9678 * frame.c: Use C++ exception handling.
9679 * frame-unwind.c: Use C++ exception handling.
9680 * fbsd-tdep.c: Use C++ exception handling.
9681 * f-valprint.c: Use C++ exception handling.
9682 * exec.c: Use C++ exception handling.
9683 * event-top.c: Use C++ exception handling.
9684 * event-loop.c: Use C++ exception handling.
9685 * eval.c: Use C++ exception handling.
9686 * dwarf2read.c: Use C++ exception handling.
9687 * dwarf2loc.c: Use C++ exception handling.
9688 * dwarf2-frame.c: Use C++ exception handling.
9689 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9690 * dwarf-index-write.c: Use C++ exception handling.
9691 * dwarf-index-cache.c: Use C++ exception handling.
9692 * dtrace-probe.c: Use C++ exception handling.
9693 * disasm-selftests.c: Use C++ exception handling.
9694 * darwin-nat.c: Use C++ exception handling.
9695 * cp-valprint.c: Use C++ exception handling.
9696 * cp-support.c: Use C++ exception handling.
9697 * cp-abi.c: Use C++ exception handling.
9698 * corelow.c: Use C++ exception handling.
9699 * completer.c: Use C++ exception handling.
9700 * compile/compile-object-run.c: Use C++ exception handling.
9701 * compile/compile-object-load.c: Use C++ exception handling.
9702 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9703 * compile/compile-c-symbols.c: Use C++ exception handling.
9704 * common/selftest.c: Use C++ exception handling.
9705 * common/new-op.c: Use C++ exception handling.
9706 * cli/cli-script.c: Use C++ exception handling.
9707 * cli/cli-interp.c: Use C++ exception handling.
9708 * cli/cli-cmds.c: Use C++ exception handling.
9709 * c-varobj.c: Use C++ exception handling.
9710 * btrace.c: Use C++ exception handling.
9711 * breakpoint.c: Use C++ exception handling.
9712 * break-catch-throw.c: Use C++ exception handling.
9713 * arch-utils.c: Use C++ exception handling.
9714 * amd64-tdep.c: Use C++ exception handling.
9715 * ada-valprint.c: Use C++ exception handling.
9716 * ada-typeprint.c: Use C++ exception handling.
9717 * ada-lang.c: Use C++ exception handling.
9718 * aarch64-tdep.c: Use C++ exception handling.
9719
3d6e9d23
TT
97202019-04-08 Tom Tromey <tom@tromey.com>
9721
9722 * xml-support.c (gdb_xml_parser::parse): Update.
9723 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9724 * value.c (show_convenience): Update.
9725 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9726 (test_parse_flags_qcs): Update.
9727 * thread.c (thr_try_catch_cmd): Update.
9728 * target.c (target_translate_tls_address): Update.
9729 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9730 (info_frame_command_core, frame_apply_command_count): Update.
9731 * rust-exp.y (rust_lex_exception_test): Update.
9732 * riscv-tdep.c (riscv_print_one_register_info): Update.
9733 * remote.c (remote_target::enable_btrace): Update.
9734 * record-btrace.c (record_btrace_enable_warn): Update.
9735 * python/py-utils.c (gdbpy_convert_exception): Update.
9736 * printcmd.c (do_one_display, print_variable_and_value): Update.
9737 * mi/mi-main.c (mi_print_exception): Update.
9738 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9739 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9740 * linux-nat.c (linux_nat_target::attach): Update.
9741 * linux-fork.c (class scoped_switch_fork_info): Update.
9742 * infrun.c (displaced_step_prepare): Update.
9743 * infcall.c (call_function_by_hand_dummy): Update.
9744 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9745 * gnu-v3-abi.c (print_one_vtable): Update.
9746 * frame.c (get_prev_frame_always): Update.
9747 * f-valprint.c (info_common_command_for_block): Update.
9748 * exec.c (try_open_exec_file): Update.
9749 * exceptions.c (print_exception, exception_print)
9750 (exception_fprintf, exception_print_same): Update.
9751 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9752 * dwarf-index-cache.c (index_cache::store)
9753 (index_cache::lookup_gdb_index): Update.
9754 * darwin-nat.c (maybe_cache_shell): Update.
9755 * cp-valprint.c (cp_print_value_fields): Update.
9756 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9757 (gcc_cplus_symbol_address): Update.
9758 * compile/compile-c-symbols.c (gcc_convert_symbol)
9759 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9760 * common/selftest.c: Update.
9761 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9762 a std::string.
9763 (exception_try_scope_entry, exception_try_scope_exit): Don't
9764 declare.
9765 (struct exception_try_scope): Remove.
9766 (TRY): Don't use exception_try_scope.
9767 (struct gdb_exception): Add constructor, operator=.
9768 <what>: New method.
9769 (struct gdb_exception_RETURN_MASK_ALL)
9770 (struct gdb_exception_RETURN_MASK_ERROR)
9771 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9772 (struct gdb_quit_bad_alloc): Update.
9773 * common/common-exceptions.c (exception_none): Change
9774 initializer.
9775 (struct catcher) <state, exception>: Initialize inline.
9776 <prev>: Remove member.
9777 (current_catcher): Remove.
9778 (catchers): New global.
9779 (exceptions_state_mc_init): Simplify.
9780 (catcher_pop): Remove.
9781 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9782 (try_scope_depth, exception_try_scope_entry)
9783 (exception_try_scope_exit): Remove.
9784 (throw_exception_sjlj): Update.
9785 (exception_messages, exception_messages_size): Remove.
9786 (throw_it): Simplify.
9787 (gdb_exception_sliced_copy): Remove.
9788 (throw_exception_cxx): Update.
9789 * cli/cli-script.c (script_from_file): Update.
9790 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9791 Update.
9792 * ada-valprint.c (ada_val_print): Update.
9793 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9794 (create_excep_cond_exprs): Update.
9795
c5c10118
TT
97962019-04-08 Tom Tromey <tom@tromey.com>
9797
9798 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9799 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9800 (TRY, CATCH, END_CATCH): Remove some definitions.
9801 * common/common-exceptions.c: Don't use GDB_XCPT.
9802 (catcher_list_size): Remove.
9803 (throw_exception, throw_it): Simplify.
9804
4de283e4
TT
98052019-04-05 Tom Tromey <tom@tromey.com>
9806
9807 Revert the header-sorting patch.
9808 * ft32-tdep.c: Revert.
9809 * frv-tdep.c: Revert.
9810 * frv-linux-tdep.c: Revert.
9811 * frame.c: Revert.
9812 * frame-unwind.c: Revert.
9813 * frame-base.c: Revert.
9814 * fork-child.c: Revert.
9815 * findvar.c: Revert.
9816 * findcmd.c: Revert.
9817 * filesystem.c: Revert.
9818 * filename-seen-cache.h: Revert.
9819 * filename-seen-cache.c: Revert.
9820 * fbsd-tdep.c: Revert.
9821 * fbsd-nat.h: Revert.
9822 * fbsd-nat.c: Revert.
9823 * f-valprint.c: Revert.
9824 * f-typeprint.c: Revert.
9825 * f-lang.c: Revert.
9826 * extension.h: Revert.
9827 * extension.c: Revert.
9828 * extension-priv.h: Revert.
9829 * expprint.c: Revert.
9830 * exec.h: Revert.
9831 * exec.c: Revert.
9832 * exceptions.c: Revert.
9833 * event-top.c: Revert.
9834 * event-loop.c: Revert.
9835 * eval.c: Revert.
9836 * elfread.c: Revert.
9837 * dwarf2read.h: Revert.
9838 * dwarf2read.c: Revert.
9839 * dwarf2loc.c: Revert.
9840 * dwarf2expr.h: Revert.
9841 * dwarf2expr.c: Revert.
9842 * dwarf2-frame.c: Revert.
9843 * dwarf2-frame-tailcall.c: Revert.
9844 * dwarf-index-write.h: Revert.
9845 * dwarf-index-write.c: Revert.
9846 * dwarf-index-common.c: Revert.
9847 * dwarf-index-cache.h: Revert.
9848 * dwarf-index-cache.c: Revert.
9849 * dummy-frame.c: Revert.
9850 * dtrace-probe.c: Revert.
9851 * disasm.h: Revert.
9852 * disasm.c: Revert.
9853 * disasm-selftests.c: Revert.
9854 * dictionary.c: Revert.
9855 * dicos-tdep.c: Revert.
9856 * demangle.c: Revert.
9857 * dcache.h: Revert.
9858 * dcache.c: Revert.
9859 * darwin-nat.h: Revert.
9860 * darwin-nat.c: Revert.
9861 * darwin-nat-info.c: Revert.
9862 * d-valprint.c: Revert.
9863 * d-namespace.c: Revert.
9864 * d-lang.c: Revert.
9865 * ctf.c: Revert.
9866 * csky-tdep.c: Revert.
9867 * csky-linux-tdep.c: Revert.
9868 * cris-tdep.c: Revert.
9869 * cris-linux-tdep.c: Revert.
9870 * cp-valprint.c: Revert.
9871 * cp-support.c: Revert.
9872 * cp-namespace.c: Revert.
9873 * cp-abi.c: Revert.
9874 * corelow.c: Revert.
9875 * corefile.c: Revert.
9876 * continuations.c: Revert.
9877 * completer.h: Revert.
9878 * completer.c: Revert.
9879 * complaints.c: Revert.
9880 * coffread.c: Revert.
9881 * coff-pe-read.c: Revert.
9882 * cli-out.h: Revert.
9883 * cli-out.c: Revert.
9884 * charset.c: Revert.
9885 * c-varobj.c: Revert.
9886 * c-valprint.c: Revert.
9887 * c-typeprint.c: Revert.
9888 * c-lang.c: Revert.
9889 * buildsym.c: Revert.
9890 * buildsym-legacy.c: Revert.
9891 * build-id.h: Revert.
9892 * build-id.c: Revert.
9893 * btrace.c: Revert.
9894 * bsd-uthread.c: Revert.
9895 * breakpoint.h: Revert.
9896 * breakpoint.c: Revert.
9897 * break-catch-throw.c: Revert.
9898 * break-catch-syscall.c: Revert.
9899 * break-catch-sig.c: Revert.
9900 * blockframe.c: Revert.
9901 * block.c: Revert.
9902 * bfin-tdep.c: Revert.
9903 * bfin-linux-tdep.c: Revert.
9904 * bfd-target.c: Revert.
9905 * bcache.c: Revert.
9906 * ax-general.c: Revert.
9907 * ax-gdb.h: Revert.
9908 * ax-gdb.c: Revert.
9909 * avr-tdep.c: Revert.
9910 * auxv.c: Revert.
9911 * auto-load.c: Revert.
9912 * arm-wince-tdep.c: Revert.
9913 * arm-tdep.c: Revert.
9914 * arm-symbian-tdep.c: Revert.
9915 * arm-pikeos-tdep.c: Revert.
9916 * arm-obsd-tdep.c: Revert.
9917 * arm-nbsd-tdep.c: Revert.
9918 * arm-nbsd-nat.c: Revert.
9919 * arm-linux-tdep.c: Revert.
9920 * arm-linux-nat.c: Revert.
9921 * arm-fbsd-tdep.c: Revert.
9922 * arm-fbsd-nat.c: Revert.
9923 * arm-bsd-tdep.c: Revert.
9924 * arch-utils.c: Revert.
9925 * arc-tdep.c: Revert.
9926 * arc-newlib-tdep.c: Revert.
9927 * annotate.h: Revert.
9928 * annotate.c: Revert.
9929 * amd64-windows-tdep.c: Revert.
9930 * amd64-windows-nat.c: Revert.
9931 * amd64-tdep.c: Revert.
9932 * amd64-sol2-tdep.c: Revert.
9933 * amd64-obsd-tdep.c: Revert.
9934 * amd64-obsd-nat.c: Revert.
9935 * amd64-nbsd-tdep.c: Revert.
9936 * amd64-nbsd-nat.c: Revert.
9937 * amd64-nat.c: Revert.
9938 * amd64-linux-tdep.c: Revert.
9939 * amd64-linux-nat.c: Revert.
9940 * amd64-fbsd-tdep.c: Revert.
9941 * amd64-fbsd-nat.c: Revert.
9942 * amd64-dicos-tdep.c: Revert.
9943 * amd64-darwin-tdep.c: Revert.
9944 * amd64-bsd-nat.c: Revert.
9945 * alpha-tdep.c: Revert.
9946 * alpha-obsd-tdep.c: Revert.
9947 * alpha-nbsd-tdep.c: Revert.
9948 * alpha-mdebug-tdep.c: Revert.
9949 * alpha-linux-tdep.c: Revert.
9950 * alpha-linux-nat.c: Revert.
9951 * alpha-bsd-tdep.c: Revert.
9952 * alpha-bsd-nat.c: Revert.
9953 * aix-thread.c: Revert.
9954 * agent.c: Revert.
9955 * addrmap.c: Revert.
9956 * ada-varobj.c: Revert.
9957 * ada-valprint.c: Revert.
9958 * ada-typeprint.c: Revert.
9959 * ada-tasks.c: Revert.
9960 * ada-lang.c: Revert.
9961 * aarch64-tdep.c: Revert.
9962 * aarch64-ravenscar-thread.c: Revert.
9963 * aarch64-newlib-tdep.c: Revert.
9964 * aarch64-linux-tdep.c: Revert.
9965 * aarch64-linux-nat.c: Revert.
9966 * aarch64-fbsd-tdep.c: Revert.
9967 * aarch64-fbsd-nat.c: Revert.
9968 * aarch32-linux-nat.c: Revert.
9969
d55e5aa6
TT
99702019-04-05 Tom Tromey <tom@tromey.com>
9971
9972 * ft32-tdep.c: Sort headers.
9973 * frv-tdep.c: Sort headers.
9974 * frv-linux-tdep.c: Sort headers.
9975 * frame.c: Sort headers.
9976 * frame-unwind.c: Sort headers.
9977 * frame-base.c: Sort headers.
9978 * fork-child.c: Sort headers.
9979 * findvar.c: Sort headers.
9980 * findcmd.c: Sort headers.
9981 * filesystem.c: Sort headers.
9982 * filename-seen-cache.h: Sort headers.
9983 * filename-seen-cache.c: Sort headers.
9984 * fbsd-tdep.c: Sort headers.
9985 * fbsd-nat.h: Sort headers.
9986 * fbsd-nat.c: Sort headers.
9987 * f-valprint.c: Sort headers.
9988 * f-typeprint.c: Sort headers.
9989 * f-lang.c: Sort headers.
9990 * extension.h: Sort headers.
9991 * extension.c: Sort headers.
9992 * extension-priv.h: Sort headers.
9993 * expprint.c: Sort headers.
9994 * exec.h: Sort headers.
9995 * exec.c: Sort headers.
9996 * exceptions.c: Sort headers.
9997 * event-top.c: Sort headers.
9998 * event-loop.c: Sort headers.
9999 * eval.c: Sort headers.
10000 * elfread.c: Sort headers.
10001 * dwarf2read.h: Sort headers.
10002 * dwarf2read.c: Sort headers.
10003 * dwarf2loc.c: Sort headers.
10004 * dwarf2expr.h: Sort headers.
10005 * dwarf2expr.c: Sort headers.
10006 * dwarf2-frame.c: Sort headers.
10007 * dwarf2-frame-tailcall.c: Sort headers.
10008 * dwarf-index-write.h: Sort headers.
10009 * dwarf-index-write.c: Sort headers.
10010 * dwarf-index-common.c: Sort headers.
10011 * dwarf-index-cache.h: Sort headers.
10012 * dwarf-index-cache.c: Sort headers.
10013 * dummy-frame.c: Sort headers.
10014 * dtrace-probe.c: Sort headers.
10015 * disasm.h: Sort headers.
10016 * disasm.c: Sort headers.
10017 * disasm-selftests.c: Sort headers.
10018 * dictionary.c: Sort headers.
10019 * dicos-tdep.c: Sort headers.
10020 * demangle.c: Sort headers.
10021 * dcache.h: Sort headers.
10022 * dcache.c: Sort headers.
10023 * darwin-nat.h: Sort headers.
10024 * darwin-nat.c: Sort headers.
10025 * darwin-nat-info.c: Sort headers.
10026 * d-valprint.c: Sort headers.
10027 * d-namespace.c: Sort headers.
10028 * d-lang.c: Sort headers.
10029 * ctf.c: Sort headers.
10030 * csky-tdep.c: Sort headers.
10031 * csky-linux-tdep.c: Sort headers.
10032 * cris-tdep.c: Sort headers.
10033 * cris-linux-tdep.c: Sort headers.
10034 * cp-valprint.c: Sort headers.
10035 * cp-support.c: Sort headers.
10036 * cp-namespace.c: Sort headers.
10037 * cp-abi.c: Sort headers.
10038 * corelow.c: Sort headers.
10039 * corefile.c: Sort headers.
10040 * continuations.c: Sort headers.
10041 * completer.h: Sort headers.
10042 * completer.c: Sort headers.
10043 * complaints.c: Sort headers.
10044 * coffread.c: Sort headers.
10045 * coff-pe-read.c: Sort headers.
10046 * cli-out.h: Sort headers.
10047 * cli-out.c: Sort headers.
10048 * charset.c: Sort headers.
10049 * c-varobj.c: Sort headers.
10050 * c-valprint.c: Sort headers.
10051 * c-typeprint.c: Sort headers.
10052 * c-lang.c: Sort headers.
10053 * buildsym.c: Sort headers.
10054 * buildsym-legacy.c: Sort headers.
10055 * build-id.h: Sort headers.
10056 * build-id.c: Sort headers.
10057 * btrace.c: Sort headers.
10058 * bsd-uthread.c: Sort headers.
10059 * breakpoint.h: Sort headers.
10060 * breakpoint.c: Sort headers.
10061 * break-catch-throw.c: Sort headers.
10062 * break-catch-syscall.c: Sort headers.
10063 * break-catch-sig.c: Sort headers.
10064 * blockframe.c: Sort headers.
10065 * block.c: Sort headers.
10066 * bfin-tdep.c: Sort headers.
10067 * bfin-linux-tdep.c: Sort headers.
10068 * bfd-target.c: Sort headers.
10069 * bcache.c: Sort headers.
10070 * ax-general.c: Sort headers.
10071 * ax-gdb.h: Sort headers.
10072 * ax-gdb.c: Sort headers.
10073 * avr-tdep.c: Sort headers.
10074 * auxv.c: Sort headers.
10075 * auto-load.c: Sort headers.
10076 * arm-wince-tdep.c: Sort headers.
10077 * arm-tdep.c: Sort headers.
10078 * arm-symbian-tdep.c: Sort headers.
10079 * arm-pikeos-tdep.c: Sort headers.
10080 * arm-obsd-tdep.c: Sort headers.
10081 * arm-nbsd-tdep.c: Sort headers.
10082 * arm-nbsd-nat.c: Sort headers.
10083 * arm-linux-tdep.c: Sort headers.
10084 * arm-linux-nat.c: Sort headers.
10085 * arm-fbsd-tdep.c: Sort headers.
10086 * arm-fbsd-nat.c: Sort headers.
10087 * arm-bsd-tdep.c: Sort headers.
10088 * arch-utils.c: Sort headers.
10089 * arc-tdep.c: Sort headers.
10090 * arc-newlib-tdep.c: Sort headers.
10091 * annotate.h: Sort headers.
10092 * annotate.c: Sort headers.
10093 * amd64-windows-tdep.c: Sort headers.
10094 * amd64-windows-nat.c: Sort headers.
10095 * amd64-tdep.c: Sort headers.
10096 * amd64-sol2-tdep.c: Sort headers.
10097 * amd64-obsd-tdep.c: Sort headers.
10098 * amd64-obsd-nat.c: Sort headers.
10099 * amd64-nbsd-tdep.c: Sort headers.
10100 * amd64-nbsd-nat.c: Sort headers.
10101 * amd64-nat.c: Sort headers.
10102 * amd64-linux-tdep.c: Sort headers.
10103 * amd64-linux-nat.c: Sort headers.
10104 * amd64-fbsd-tdep.c: Sort headers.
10105 * amd64-fbsd-nat.c: Sort headers.
10106 * amd64-dicos-tdep.c: Sort headers.
10107 * amd64-darwin-tdep.c: Sort headers.
10108 * amd64-bsd-nat.c: Sort headers.
10109 * alpha-tdep.c: Sort headers.
10110 * alpha-obsd-tdep.c: Sort headers.
10111 * alpha-nbsd-tdep.c: Sort headers.
10112 * alpha-mdebug-tdep.c: Sort headers.
10113 * alpha-linux-tdep.c: Sort headers.
10114 * alpha-linux-nat.c: Sort headers.
10115 * alpha-bsd-tdep.c: Sort headers.
10116 * alpha-bsd-nat.c: Sort headers.
10117 * aix-thread.c: Sort headers.
10118 * agent.c: Sort headers.
10119 * addrmap.c: Sort headers.
10120 * ada-varobj.c: Sort headers.
10121 * ada-valprint.c: Sort headers.
10122 * ada-typeprint.c: Sort headers.
10123 * ada-tasks.c: Sort headers.
10124 * ada-lang.c: Sort headers.
10125 * aarch64-tdep.c: Sort headers.
10126 * aarch64-ravenscar-thread.c: Sort headers.
10127 * aarch64-newlib-tdep.c: Sort headers.
10128 * aarch64-linux-tdep.c: Sort headers.
10129 * aarch64-linux-nat.c: Sort headers.
10130 * aarch64-fbsd-tdep.c: Sort headers.
10131 * aarch64-fbsd-nat.c: Sort headers.
10132 * aarch32-linux-nat.c: Sort headers.
10133
699bd4cf
TT
101342019-04-04 Tom Tromey <tom@tromey.com>
10135
10136 * varobj.c (varobj_create): Update.
10137 * rust-exp.y (struct rust_parser) <update_innermost_block,
10138 lookup_symbol>: New methods.
10139 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10140 Rename.
10141 (rust_parser::rust_lookup_type)
10142 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10143 * printcmd.c (display_command, do_one_display): Update.
10144 * parser-defs.h (struct parser_state) <parser_state>: Add
10145 "tracker" parameter.
10146 (block_tracker): New member.
10147 (class innermost_block_tracker) <innermost_block_tracker>: Add
10148 "types" parameter.
10149 <reset>: Remove method.
10150 (innermost_block): Don't declare.
10151 (null_post_parser): Update.
10152 * parse.c (innermost_block): Remove global.
10153 (write_dollar_variable): Update.
10154 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10155 Remove "tracker_types" parameter.
10156 (parse_expression): Add "tracker" parameter.
10157 (parse_expression_for_completion): Update.
10158 (null_post_parser): Add "tracker" parameter.
10159 * p-exp.y: Update rules.
10160 * m2-exp.y: Update rules.
10161 * language.h (struct language_defn) <la_post_parser>: Add
10162 "tracker" parameter.
10163 * go-exp.y: Update rules.
10164 * f-exp.y: Update rules.
10165 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10166 parameter.
10167 * d-exp.y: Update rules.
10168 * c-exp.y: Update rules.
10169 * breakpoint.c (set_breakpoint_condition): Create an
10170 innermost_block_tracker.
10171 (watch_command_1): Likewise.
10172 * ada-lang.c (resolve): Add "tracker" parameter.
10173 (resolve_subexp): Likewise.
10174 * ada-exp.y (write_var_from_sym): Update.
10175
dac43e32
TT
101762019-04-04 Tom Tromey <tom@tromey.com>
10177
10178 * type-stack.h: New file.
10179 * type-stack.c: New file.
10180 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10181 type-stack.h.
10182 (insert_into_type_stack, insert_type, push_type, push_type_int)
10183 (insert_type_address_space, pop_type, pop_type_int)
10184 (pop_typelist, pop_type_stack, append_type_stack)
10185 (push_type_stack, get_type_stack, push_typelist)
10186 (follow_type_instance_flags, follow_types): Don't declare.
10187 * parse.c (type_stack): Remove global.
10188 (parse_exp_in_context): Update.
10189 (insert_into_type_stack, insert_type, push_type, push_type_int)
10190 (insert_type_address_space, pop_type, pop_type_int)
10191 (pop_typelist, pop_type_stack, append_type_stack)
10192 (push_type_stack, get_type_stack, push_typelist)
10193 (follow_type_instance_flags, follow_types): Remove (moved to
10194 type-stack.c).
10195 * f-exp.y (type_stack): New global.
10196 Update rules.
10197 (push_kind_type, f_parse): Update.
10198 * d-exp.y (type_stack): New global.
10199 Update rules.
10200 (d_parse): Update.
10201 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10202 Update rules.
10203 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10204 (HFILES_NO_SRCDIR): Add type-stack.h.
10205
2a612529
TT
102062019-04-04 Tom Tromey <tom@tromey.com>
10207
10208 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10209 (rust_parser::convert_ast_to_expression, rust_parse)
10210 (rust_lex_test_completion, rust_lex_tests): Update.
10211 * parser-defs.h (struct expr_completion_state): New.
10212 (struct parser_state) <parser_state>: Add completion parameter.
10213 <mark_struct_expression, mark_completion_tag>: New methods.
10214 <parse_completion, m_completion_state>: New members.
10215 (prefixify_expression, null_post_parser): Update.
10216 (mark_struct_expression, mark_completion_tag): Don't declare.
10217 * parse.c (parse_completion, expout_last_struct)
10218 (expout_tag_completion_type, expout_completion_name): Remove
10219 globals.
10220 (parser_state::mark_struct_expression)
10221 (parser_state::mark_completion_tag): Now methods.
10222 (prefixify_expression): Add last_struct parameter.
10223 (prefixify_subexp): Likewise.
10224 (parse_exp_1): Update.
10225 (parse_exp_in_context): Add cstate parameter. Update.
10226 (parse_expression_for_completion): Create an
10227 expr_completion_state.
10228 (null_post_parser): Add "completion" parameter.
10229 * p-exp.y: Update rules.
10230 (yylex): Update.
10231 * language.h (struct language_defn) <la_post_parser>: Add
10232 "completing" parameter.
10233 * go-exp.y: Update rules.
10234 (lex_one_token): Update.
10235 * expression.h (parse_completion): Don't declare.
10236 * d-exp.y: Update rules.
10237 (lex_one_token): Update rules.
10238 * c-exp.y: Update rules.
10239 (lex_one_token): Update.
10240 * ada-lang.c (resolve): Add "parse_completion" parameter.
10241 (resolve_subexp): Likewise.
10242 (ada_resolve_function): Likewise.
10243
43476f0b
TT
102442019-04-04 Tom Tromey <tom@tromey.com>
10245
10246 * parser-defs.h (struct parser_state) <start_arglist,
10247 end_arglist>: New methods.
10248 <arglist_len, m_funcall_chain>: New members.
10249 (arglist_len, start_arglist, end_arglist): Don't declare.
10250 * parse.c (arglist_len, funcall_chain): Remove global.
10251 (start_arglist, end_arglist): Remove functions.
10252 (parse_exp_in_context): Update.
10253 * p-exp.y: Update rules.
10254 * m2-exp.y: Update rules.
10255 * go-exp.y: Update rules.
10256 * f-exp.y: Update rules.
10257 * d-exp.y: Update rules.
10258 * c-exp.y: Update rules.
10259
5776fca3
TT
102602019-04-04 Tom Tromey <tom@tromey.com>
10261
10262 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10263 lex_operator, push_back>: New methods.
10264 Update all rules.
10265 (rust_parser::lex_hex, lex_escape): Rename and update.
10266 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10267 (rust_parser::lex_operator): Rename and update.
10268 (rust_parser::lex_number, rustyylex, rustyyerror)
10269 (rust_lex_test_init, rust_lex_test_sequence)
10270 (rust_lex_test_push_back, rust_lex_tests): Update.
10271 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10272 parameter.
10273 <lexptr, prev_lexptr>: New members.
10274 (lexptr, prev_lexptr): Don't declare.
10275 * parse.c (lexptr, prev_lexptr): Remove globals.
10276 (parse_exp_in_context): Update.
10277 * p-exp.y (yylex, yyerror): Update.
10278 * m2-exp.y (parse_number, yylex, yyerror): Update.
10279 * go-exp.y (lex_one_token, yyerror): Update.
10280 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10281 * d-exp.y (lex_one_token, yyerror): Update.
10282 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10283 (lex_one_token, yyerror): Update.
10284 * ada-lex.l (YY_INPUT): Update.
10285 (rewind_to_char): Update.
10286 * ada-exp.y (yyerror): Update.
10287
8621b685
TT
102882019-04-04 Tom Tromey <tom@tromey.com>
10289
10290 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10291 * parser-defs.h (struct parser_state) <parser_state>: Add new
10292 parameter.
10293 <comma_terminates>: New member.
10294 (comma_terminates): Don't declare global.
10295 * parse.c (comma_terminates): Remove global.
10296 (parse_exp_in_context): Update.
10297 * p-exp.y (yylex): Update.
10298 * m2-exp.y (yylex): Update.
10299 * go-exp.y (lex_one_token): Update.
10300 * f-exp.y (yylex): Update.
10301 * d-exp.y (lex_one_token): Update.
10302 * c-exp.y (lex_one_token): Update.
10303 * ada-lex.l: Update.
10304
28aaf3fd
TT
103052019-04-04 Tom Tromey <tom@tromey.com>
10306
10307 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10308 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10309 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10310 * parser-defs.h (paren_depth): Don't declare.
10311 * parse.c (paren_depth): Remove global.
10312 (parse_exp_in_context): Update.
10313 * p-exp.y (paren_depth): New global.
10314 (pascal_parse): Initialize it.
10315 * m2-exp.y (paren_depth): New global.
10316 (m2_parse): Initialize it.
10317 * go-exp.y (paren_depth): New global.
10318 (go_parse): Initialize it.
10319 * f-exp.y (paren_depth): New global.
10320 (f_parse): Initialize it.
10321 * d-exp.y (paren_depth): New global.
10322 (d_parse): Initialize it.
10323 * c-exp.y (paren_depth): New global.
10324 (c_parse): Initialize it.
10325 * ada-lex.l (paren_depth): New global.
10326 (lexer_init): Initialize it.
10327
1e58a4a4
TT
103282019-04-04 Tom Tromey <tom@tromey.com>
10329
10330 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10331 (rust_parser::convert_ast_to_type)
10332 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10333 * parser-defs.h (struct parser_state) <parser_state>: Add
10334 parameters. Initialize new members.
10335 <expression_context_block, expression_context_pc>: New members.
10336 * parse.c (expression_context_block, expression_context_pc):
10337 Remove globals.
10338 (parse_exp_in_context): Update.
10339 * p-exp.y: Update all rules.
10340 (yylex): Update.
10341 * m2-exp.y: Update all rules.
10342 (yylex): Update.
10343 * go-exp.y (yylex): Update.
10344 * f-exp.y (yylex): Update.
10345 * d-exp.y: Update all rules.
10346 (yylex): Update.
10347 * c-exp.y: Update all rules.
10348 (lex_one_token, classify_name, yylex, c_parse): Update.
10349 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10350
37eedb39
TT
103512019-04-04 Tom Tromey <tom@tromey.com>
10352
10353 * gdbarch.h, gdbarch.c: Rebuild.
10354 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10355 * stap-probe.h:
10356 (struct stap_parse_info): Replace "parser_state" with
10357 "expr_builder".
10358 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10359 (parser_state): New class.
10360 * parse.c (expr_builder): Rename.
10361 (expr_builder::release): Rename.
10362 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10363 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10364 (write_exp_elt_longcst, write_exp_elt_floatcst)
10365 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10366 (write_exp_string_vector, write_exp_bitstring)
10367 (write_exp_msymbol, mark_struct_expression)
10368 (write_dollar_variable)
10369 (insert_type_address_space, increase_expout_size): Replace
10370 "parser_state" with "expr_builder".
10371 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10372 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10373 "parser_state" with "expr_builder".
10374
73923d7e
TT
103752019-04-04 Tom Tromey <tom@tromey.com>
10376
10377 * rust-exp.y: Replace "parse_language" with method call.
10378 * p-exp.y:
10379 (yylex): Replace "parse_language" with method call.
10380 * m2-exp.y:
10381 (yylex): Replace "parse_language" with method call.
10382 * go-exp.y (classify_name): Replace "parse_language" with method
10383 call.
10384 * f-exp.y (yylex): Replace "parse_language" with method call.
10385 * d-exp.y (lex_one_token): Replace "parse_language" with method
10386 call.
10387 * c-exp.y:
10388 (lex_one_token, classify_name, yylex): Replace "parse_language"
10389 with method call.
10390 * ada-exp.y (find_primitive_type, type_char)
10391 (type_system_address): Replace "parse_language" with method call.
10392
fa9f5be6
TT
103932019-04-04 Tom Tromey <tom@tromey.com>
10394
10395 * rust-exp.y: Replace "parse_gdbarch" with method call.
10396 * parse.c (write_dollar_variable, insert_type_address_space):
10397 Replace "parse_gdbarch" with method call.
10398 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10399 call.
10400 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10401 call.
10402 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10403 "parse_gdbarch" with method call.
10404 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10405 with method call.
10406 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10407 "parse_gdbarch" with method call.
10408 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10409 "parse_gdbarch" with method call.
10410 * c-exp.y (parse_type, parse_number, classify_name): Replace
10411 "parse_gdbarch" with method call.
10412 * ada-lex.l: Replace "parse_gdbarch" with method call.
10413 * ada-exp.y (parse_type, find_primitive_type, type_char)
10414 (type_system_address): Replace "parse_gdbarch" with method call.
10415
1201a264
TT
104162019-04-04 Tom Tromey <tom@tromey.com>
10417
10418 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10419 * stap-probe.c (stap_parse_argument): Update.
10420 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10421 initial_size parameter.
10422 * rust-exp.y (rust_lex_tests): Update.
10423 * parse.c (parser_state): Update.
10424 (parse_exp_in_context): Update.
10425 * parser-defs.h (struct parser_state) <parser_state>: Remove
10426 "initial_size" parameter.
10427
e3980ce2
TT
104282019-04-04 Tom Tromey <tom@tromey.com>
10429
10430 * parser-defs.h (increase_expout_size): Don't declare.
10431 * parse.c (increase_expout_size): Now static.
10432
e9f8e3f1
TS
104332019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10434
10435 * gnu-nat.c (gnu_nat_target::wait): Fix
10436 target_waitstatus_to_string call.
10437
d7df6549
AB
104382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * eval.c (evaluate_subexp_standard): Handle internal functions
10441 during Fortran function call handling.
10442
8bdc1658
AB
104432019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10444
10445 * NEWS: Mention new internal functions.
10446 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10447 (read_base_type): Use dwarf2_init_complex_target_type.
10448 * value.c (creal_internal_fn): New function.
10449 (cimag_internal_fn): New function.
10450 (_initialize_values): Register new internal functions.
10451
c29705b7
PW
104522019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10453
10454 * infrun.c (stop_all_threads): If debug_infrun, always
10455 trace the wait status after wait_one, using
10456 target_waitstatus_to_string and target_pid_to_str.
10457 (handle_inferior_event): Replace various trace of
10458 wait status kind by a single trace.
10459 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10460 wait status kind image by target_waitstatus_to_string.
10461 * target/waitstatus.c (target_waitstatus_to_string): Fix
10462 obsolete comment.
10463
05caa1d2
TT
104642019-04-01 Tom Tromey <tromey@adacore.com>
10465
10466 PR symtab/23331:
10467 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10468
9d1447e0
SDJ
104692019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10470 Pedro Alves <palves@redhat.com>
10471
10472 * top.c (quit_force): Call 'finalize_values'.
10473 * value.c (finalize_values): New function.
10474 * value.h (finalize_values): Declare.
10475
7734102d
EZ
104762019-03-30 Eli Zaretskii <eliz@gnu.org>
10477
10478 * NEWS: Announce $_gdb_major and $_gdb_minor.
10479
10480 * top.c (init_gdb_version_vars): New function.
10481 (gdb_init): Call init_gdb_version_vars.
10482
188e1fa9
TT
104832019-03-29 Tom Tromey <tromey@adacore.com>
10484
10485 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10486 help text. Remove dead code.
10487
2880242d
KS
104882019-03-29 Keith Seitz <keiths@redhat.com>
10489
10490 From Siddhesh Poyarekar:
10491 * f-lang.h (f77_get_upperbound): Return LONGEST.
10492 (f77_get_lowerbound): Likewise.
10493 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10494 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10495 print them.
10496 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10497 plongest to format print it.
10498 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10499 (f77_get_upperbound): Likewise.
10500 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10501 LOWER_BOUND to LONGEST.
10502 (f77_create_arrayprint_offset_tbl): Likewise.
10503
cc1defb1
KS
105042019-03-29 Keith Seitz <keiths@redhat.com>
10505
10506 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10507 %s/pulongest for TYPE_LENGTH instead of %d in format
10508 strings.
10509 * ada-typerint.c (ada_print_type): Likewise.
10510 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10511 * compile/compile-c-support.c (generate_register_struct): Likewise.
10512 * gdbtypes.c (recursive_dump_type): Likewise.
10513 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10514 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10515 instead of %d in format strings.
10516 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10517 to std::min to ULONGEST.
10518 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10519 instead of %d in format strings.
10520 * tracepoint.c (info_scope_command): Likewise.
10521 * typeprint.c (print_offset_data::update)
10522 (print_offset_data::finish): Likewise.
10523 * xtensa-tdep.c (xtensa_store_return_value)
10524 (xtensa_push_dummy_call): Likewise.
10525
e432ccf1
JT
105262019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10527
10528 * windows-nat.c (display_selector): Fixed format specifications
10529 for 64-bit Cygwin.
10530
65d2b333
PW
105312019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10532
10533 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10534
f489207e
SL
105352019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10536
10537 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10538 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10539 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10540 (nios2_linux_init_abi): Install it.
10541
bffa1015
AH
105422019-03-28 Alan Hayward <alan.hayward@arm.com>
10543
10544 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10545
fc96163a
AH
105462019-03-28 Alan Hayward <alan.hayward@arm.com>
10547
10548 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10549
20dc7e9b
PW
105502019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10551 Tom Tromey <tromey@adacore.com>
10552
10553 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10554
7f5331a8
JB
105552019-03-26 Joel Brobecker <brobecker@adacore.com>
10556
10557 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10558 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10559 method to compute the bounds of range types. Also print "[evaluated]"
10560 if the bounds' values come from a dynamic evaluation.
10561
18c77628
AB
105622019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10565 whitespace when pretty printing is on.
10566
53c973f2
AH
105672019-03-26 Alan Hayward <alan.hayward@arm.com>
10568
e79be6e5 10569 * ppc-linux-nat.c: Add include.
53c973f2 10570
d851aa71
AH
105712019-03-26 Alan Hayward <alan.hayward@arm.com>
10572
e79be6e5 10573 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10574
2fe7bab7
AH
105752019-03-26 Alan Hayward <alan.hayward@arm.com>
10576
e79be6e5 10577 * arm-linux-nat.c: Add include.
2fe7bab7 10578
068ef30e
SM
105792019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 * source-cache.c (source_cache::get_source_lines): Re-read
10582 fullname after calling open_source_file.
10583
81a24d04
JB
105842019-03-25 John Baldwin <jhb@FreeBSD.org>
10585
10586 * NEWS: Mention TLS support for FreeBSD.
10587
79e7ae11
TT
105882019-03-25 Tom Tromey <tromey@adacore.com>
10589
10590 * minsyms.c (BUNCH_SIZE): Update comment.
10591 (~minimal_symbol_reader): Remove old comment.
10592 (compact_minimal_symbols): Update comment.
10593 (minimal_symbol_reader::install): Remove old comment. Update
10594 other comments.
10595
d45963c2
AH
105962019-03-25 Alan Hayward <alan.hayward@arm.com>
10597
10598 * s390-linux-nat.c: Add include.
10599
0f83012e
AH
106002019-03-25 Alan Hayward <alan.hayward@arm.com>
10601
10602 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10603 Call linux_get_hwcap.
10604 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10605 Likewise.
10606 (aarch64_linux_get_hwcap): Remove function.
10607 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10608 declaration.
10609 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10610 linux_get_hwcap.
10611 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10612 * linux-tdep.c (linux_get_hwcap): Add function.
10613 (linux_get_hwcap2): Likewise.
10614 * linux-tdep.h (linux_get_hwcap): Add declaration.
10615 (linux_get_hwcap2): Likewise.
10616 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10617 (ppc_linux_get_hwcap2): Likewise.
10618 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10619 linux_get_hwcap.
10620 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10621 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10622 (ppc_linux_nat_target::read_description): Likewise.
10623 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10624 * s390-linux-nat.c: Likewise.
10625 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10626
6640a367
TT
106272019-03-24 Tom Tromey <tom@tromey.com>
10628
10629 * ada-lang.c (standard_lookup): Simplify initialization.
10630 (ada_lookup_symbol_nonlocal): Simplify return.
10631 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10632 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10633 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10634 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10635 initialization.
10636 * solib.c (solib_global_lookup): Simplify.
10637 * symtab.c (null_block_symbol): Remove.
10638 (symbol_cache_lookup): Simplify returns.
10639 (lookup_language_this): Simplify returns.
10640 (lookup_symbol_aux): Simplify return.
10641 (lookup_local_symbol): Simplify returns.
10642 (lookup_global_symbol_from_objfile): Simplify return.
10643 (lookup_symbol_in_objfile_symtabs)
10644 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10645 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10646 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10647 * cp-namespace.c (cp_lookup_bare_symbol)
10648 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10649 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10650 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10651 (cp_lookup_symbol_via_imports): Simplify initialization.
10652 (find_symbol_in_baseclass): Likewise.
10653 * symtab.h (null_block_symbol): Remove.
10654 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10655 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10656 (d_lookup_symbol_module): Likewise.
10657 (find_symbol_in_baseclass): Simplify initialization.
10658
a930ebcd
TT
106592019-03-24 Tom Tromey <tom@tromey.com>
10660
10661 * expression.h: Don't include symtab.h.
10662 (struct block): Forward declare.
10663
582942f4
TT
106642019-03-24 Tom Tromey <tom@tromey.com>
10665
10666 * c-exp.y (typebase): Remove casts.
10667 * gdbtypes.c (lookup_unsigned_typename, )
10668 (lookup_signed_typename): Remove cast.
10669 * eval.c (parse_to_comma_and_eval): Remove cast.
10670 * parse.c (write_dollar_variable): Remove cast.
10671 * block.h (struct block) <superblock>: Now const.
10672 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10673 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10674 (map_block): Make "block" const.
10675 * symfile.h (struct quick_symbol_functions)
10676 <map_matching_symbols>: Constify block argument to "callback".
10677 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10678 const.
10679 (find_pc_sect_compunit_symtab): Make "b" const.
10680 (find_symbol_at_address): Likewise.
10681 (search_symbols): Likewise.
10682 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10683 (dw2_debug_names_lookup_symbol): Likewise.
10684 (dw2_map_matching_symbols): Update.
10685 * p-valprint.c (pascal_val_print): Remove "block".
10686 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10687 (aux_add_nonlocal_symbols): Make "block" const.
10688 (resolve_subexp): Remove cast.
10689 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10690 const.
10691 (iterate_over_file_blocks): Likewise.
10692 * f-exp.y (%union) <bval>: Remove.
10693 * coffread.c (patch_opaque_types): Make "b" const.
10694 * spu-tdep.c (spu_catch_start): Make "block" const.
10695 * c-valprint.c (print_unpacked_pointer): Remove "block".
10696 * symmisc.c (dump_symtab_1): Make "b" const.
10697 (block_depth): Make "block" const.
10698 * d-exp.y (%union) <bval>: Remove.
10699 * cp-support.h (cp_lookup_rtti_type): Update.
10700 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10701 * psymtab.c (psym_lookup_symbol): Make "block" const.
10702 (maintenance_check_psymtabs): Make "b" const.
10703 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10704 (enumerate_locals, enumerate_args): Update.
10705 * python/py-symtab.c (stpy_global_block): Make "block" const.
10706 (stpy_static_block): Likewise.
10707 * inline-frame.c (block_starting_point_at): Make "new_block"
10708 const.
10709 * block.c (find_block_in_blockvector): Make return type const.
10710 (blockvector_for_pc_sect): Make "b" const.
10711 (find_block_in_blockvector): Make "b" const.
10712
7ad417dd
TT
107132019-03-23 Tom Tromey <tom@tromey.com>
10714
10715 * varobj.c (varobj_create): Update.
10716 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10717 * printcmd.c (display_command, do_one_display): Don't reset
10718 innermost_block.
10719 * parser-defs.h (enum innermost_block_tracker_type): Move to
10720 expression.h.
10721 (innermost_block): Update comment.
10722 * parse.c (parse_exp_1): Add tracker_types parameter.
10723 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10724 tracker_types parameter. Reset innermost_block.
10725 (parse_exp_in_context): Remove.
10726 (parse_expression_for_completion): Update.
10727 * objfiles.c (~objfile): Don't reset expression_context_block or
10728 innermost_block.
10729 * expression.h (enum innermost_block_tracker_type): Move from
10730 parser-defs.h.
10731 (parse_exp_1): Add tracker_types parameter.
10732 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10733 reset innermost_block.
10734
b366c208
TT
107352019-03-23 Tom Tromey <tom@tromey.com>
10736
10737 * objfiles.h: Include bcache.h.
10738
9bb9b2f9
TT
107392019-03-23 Tom Tromey <tom@tromey.com>
10740
10741 * linespec.c (get_current_search_block): Use
10742 scoped_restore_current_language.
10743 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10744
59c28372
AH
107452019-03-22 Alan Hayward <alan.hayward@arm.com>
10746 Jiong Wang <jiong.wang@arm.com>
10747
10748 * aarch64-linux-tdep.c
10749 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10750 section.
10751 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10752
17e116a7
AH
107532019-03-22 Alan Hayward <alan.hayward@arm.com>
10754 Jiong Wang <jiong.wang@arm.com>
10755
10756 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10757 instructions.
10758 (aarch64_analyze_prologue_test): Add PACIASP test.
10759 (aarch64_prologue_prev_register): Unmask PC value.
10760
11e1b75f
AH
107612019-03-22 Alan Hayward <alan.hayward@arm.com>
10762 Jiong Wang <jiong.wang@arm.com>
10763
10764 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10765 (aarch64_dwarf2_prev_register): Unmask PC value.
10766 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10767 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10768 DW_CFA_AARCH64_negate_ra_state.
10769 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10770
34dcc7cf
AH
107712019-03-22 Alan Hayward <alan.hayward@arm.com>
10772 Jiong Wang <jiong.wang@arm.com>
10773
10774 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10775 registers.
10776 (aarch64_pseudo_register_name): Likewise.
10777 (aarch64_pseudo_register_type): Likewise.
10778 (aarch64_pseudo_register_reggroup_p): Likewise.
10779 (aarch64_gdbarch_init): Add pauth registers.
10780 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10781 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10782 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10783 (struct gdbarch_tdep): Add regnum for ra_state.
10784
1ef53e6b
AH
107852019-03-22 Alan Hayward <alan.hayward@arm.com>
10786 Jiong Wang <jiong.wang@arm.com>
10787
10788 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10789
76bed0fd
AH
107902019-03-22 Alan Hayward <alan.hayward@arm.com>
10791 Jiong Wang <jiong.wang@arm.com>
10792
10793 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10794 function.
10795 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10796 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10797 (aarch64_gdbarch_init): Add puth registers.
10798 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10799 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10800 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10801
ee4fbcfa
AH
108022019-03-22 Alan Hayward <alan.hayward@arm.com>
10803 Jiong Wang <jiong.wang@arm.com>
10804
10805 * aarch64-linux-nat.c
10806 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10807 * aarch64-linux-tdep.c
10808 (aarch64_linux_core_read_description): Likewise.
10809 (aarch64_linux_get_hwcap): New function.
10810 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10811 (aarch64_linux_get_hwcap): New declaration.
10812
6dc0ebde
AH
108132019-03-22 Alan Hayward <alan.hayward@arm.com>
10814 Jiong Wang <jiong.wang@arm.com>
10815
10816 * aarch64-linux-nat.c
10817 (aarch64_linux_nat_target::read_description): Add pauth param.
10818 * aarch64-linux-tdep.c
10819 (aarch64_linux_core_read_description): Likewise.
10820 * aarch64-tdep.c (struct target_desc): Add in pauth.
10821 (aarch64_read_description): Add pauth param.
10822 (aarch64_gdbarch_init): Likewise.
10823 * aarch64-tdep.h (aarch64_read_description): Likewise.
10824 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10825 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10826 * features/Makefile: Add new files.
10827 * features/aarch64-pauth.c: New file.
10828 * features/aarch64-pauth.xml: New file.
10829
595915c1
TT
108302019-03-20 Tom Tromey <tromey@adacore.com>
10831
10832 * infrun.c (handle_inferior_event): Rename from
10833 handle_inferior_event_1. Create a scoped_value_mark.
10834 (handle_inferior_event): Remove.
10835
4c7d57e7
TT
108362019-03-19 Tom Tromey <tromey@adacore.com>
10837
10838 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10839 * infrun.h (print_stop_event): Add "displays" parameter.
10840 * infrun.c (print_stop_event): Add "displays" parameter.
10841
cb246234
PA
108422019-03-19 Pedro Alves <palves@redhat.com>
10843
10844 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10845 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10846 to -1. Fix TABs vs spaces.
10847 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10848 * tui/tui-out.h (tui_ui_out) Add intro comments.
10849 <m_line, m_start_of_line>: In-class initialize, and add describing
10850 comment.
10851
3a0e45b2
AH
108522019-03-18 Alan Hayward <alan.hayward@arm.com>
10853
10854 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10855 variable names.
10856 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10857
5371b850
PA
108582019-03-18 Pedro Alves <palves@redhat.com>
10859 Eli Zaretskii <eliz@gnu.org>
10860
10861 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10862 m_line and m_start_of_line.
10863
b17c4cd0
EZ
108642019-03-18 Eli Zaretskii <eliz@gnu.org>
10865
10866 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10867 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10868 it returns a newline. This fixes a regression in TU mode, whereby
10869 the next line is output on the same screen line as the user input.
10870
4bd56d18
TT
108712019-03-18 Tom Tromey <tromey@adacore.com>
10872
10873 * minsyms.c (minimal_symbol_reader::install): Remove call to
10874 obstack_blank.
10875
55c10aca
PA
108762019-03-18 Pedro Alves <palves@redhat.com>
10877
10878 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10879 New globals.
10880 (apply_style): New, factored out from ...
10881 (apply_ansi_escape): ... this. Handle reverse video mode.
10882 (tui_set_reverse_mode): New function.
10883 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10884 * tui/tui-winsource.c (tui_show_source_line): Use
10885 tui_set_reverse_mode instead of setting A_STANDOUT.
10886 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10887 New setter methods.
10888
647bb750
HD
108892019-03-18 Hannes Domani <ssbssa@yahoo.de>
10890
10891 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10892 Handle tabs.
10893
bff8c71f
TT
108942019-03-18 Tom Tromey <tromey@adacore.com>
10895
10896 * ada-lang.c (empty_array): Add "high" parameter.
10897 (ada_evaluate_subexp): Update.
10898
58785d98
ST
108992019-03-17 Sergei Trofimovich <siarheit@google.com>
10900
10901 * unittests/string_view-selftests.c: Define
10902 _initialize_string_view_selftests unconditionally.
10903
d4cbef22
ВМ
109042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10905
10906 PR gdb/24350
10907 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10908
fce4c071
ВМ
109092019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10910
10911 PR gdb/24351
10912 * windows-nat.c (display_selector): Fix format specifiers.
10913
f7f0a123
EZ
109142019-03-17 Eli Zaretskii <eliz@gnu.org>
10915
10916 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10917 tui_refill_source_window instead of tui_refresh_win, to update the
10918 current execution line. This fixes redisplay of the current line
10919 when stepping through the code with "next" or "step".
10920
ab42892f
EZ
109212019-03-16 Eli Zaretskii <eliz@gnu.org>
10922
10923 * source-cache.c (source_cache::get_source_lines): Call
10924 find_source_lines to initialize s->nlines. This fixes vertical
10925 scrolling of TUI source window when the DOWN arrow is pressed.
10926
8d8c087f
PW
109272019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10928
10929 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10930 linux-thread-db.c (_initialize_thread_db): Likewise.
10931
798e1c30
EZ
109322019-03-16 Eli Zaretskii <eliz@gnu.org>
10933
10934 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10935 wclrtoeol in tui_show_source_line". This reverts changes made in
10936 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10937
eefba3da
TT
109382019-03-15 Tom Tromey <tom@tromey.com>
10939
10940 * symtab.h (struct minimal_symbol): Derive from
10941 general_symbol_info.
10942 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10943 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10944 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10945 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10946 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10947 (MSYMBOL_SEARCH_NAME): Update.
10948 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10949 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10950 * minsyms.c (minimal_symbol_reader::record_full): Update.
10951
0de2420c
TT
109522019-03-15 Tom Tromey <tom@tromey.com>
10953
10954 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10955
042d75e4
TT
109562019-03-15 Tom Tromey <tom@tromey.com>
10957
10958 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10959 unique_xmalloc_ptr.
10960 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10961 Update.
10962 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10963 (build_minimal_symbol_hash_tables)
10964 (minimal_symbol_reader::install): Update.
10965
db92718b
TT
109662019-03-15 Tom Tromey <tom@tromey.com>
10967
10968 * symtab.c (create_demangled_names_hash): Update.
10969 (symbol_set_names): Update.
10970 * objfiles.h (struct objfile_per_bfd_storage)
10971 <demangled_names_hash>: Now an htab_up.
10972 * objfiles.c (objfile_per_bfd_storage): Simplify.
10973
d6797f46
TT
109742019-03-15 Tom Tromey <tom@tromey.com>
10975
10976 * objfiles.h (struct objfile_per_bfd_storage): Declare
10977 destructor.
10978 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10979 New.
10980 (get_objfile_bfd_data): Use new. Don't initialize
10981 language_of_main.
10982 (free_objfile_per_bfd_storage): Remove.
10983 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10984
741d7538
TT
109852019-03-15 Tom Tromey <tom@tromey.com>
10986
10987 * symfile.c (reread_symbols): Update.
10988 * objfiles.c (objfile::objfile): Update.
10989 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10990 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10991 comment.
10992 (minimal_symbol_reader::install): Update.
10993 (terminate_minimal_symbol_table): Remove.
10994 * jit.c (jit_object_close_impl): Update.
10995
788c80d1
TT
109962019-03-15 Tom Tromey <tom@tromey.com>
10997
10998 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10999 initializations.
11000
1b7a07cb
TT
110012019-03-15 Tom Tromey <tom@tromey.com>
11002
11003 * objfiles.h (struct objfile_per_bfd_storage)
11004 <demangled_hash_languages>: Now a bitset.
11005 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11006 (lookup_minimal_symbol): Update.
11007
3db066bc
TT
110082019-03-15 Tom Tromey <tom@tromey.com>
11009
11010 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11011 Don't return the symbol.
11012 * coffread.c (record_minimal_symbol): Use record_full.
11013
3fff2c37
EZ
110142019-03-14 Eli Zaretskii <eliz@gnu.org>
11015
11016 The MS-Windows port of ncurses fails to switch to a color pair if
11017 one or both of the colors are the implicit default colors. This
11018 change records the default colors when TUI is initialized, and
11019 then specifies them explicitly when a color pair uses the default
11020 colors. This allows color styling in TUI mode on MS-Windows.
11021
11022 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11023 ncurses_norm_attr.
11024 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11025 colors in ncurses_norm_attr.
11026 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11027 "none", replace it with the default color recorded in
11028 ncurses_norm_attr.
11029
3b336828
TT
110302019-03-14 Tom Tromey <tromey@adacore.com>
11031
11032 * source-cache.h (class source_cache) <get_source_lines>: Return
11033 std::string.
11034 * source-cache.c (source_cache::extract_lines): Handle case where
11035 first_pos==npos. Return std::string.
11036 (source_cache::get_source_lines): Update.
11037
d085f989
TT
110382019-03-14 Tom Tromey <tromey@adacore.com>
11039
11040 * NEWS: Add item for "style sources" commands.
11041 * source-cache.c (source_cache::get_source_lines): Check
11042 source_styling.
11043 * cli/cli-style.c (source_styling): New global.
11044 (_initialize_cli_style): Add "style sources" commands.
11045 (show_style_sources): New function.
11046 * cli/cli-style.h (source_styling): Declare.
11047
6f11e682
TT
110482019-03-14 Pedro Alves <palves@redhat.com>
11049 Tom Tromey <tromey@adacore.com>
11050
11051 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11052 * tui/tui-winsource.c (tui_refill_source_window): New function,
11053 from...
11054 (tui_horizontal_source_scroll): ... here. Move some logic.
11055 * cli/cli-style.c (set_style_enabled): Notify new observable.
11056 * tui/tui-hooks.c (tui_redisplay_source): New function.
11057 (tui_attach_detach_observers): Attach or detach
11058 tui_redisplay_source.
11059 * observable.h (source_styling_changed): New observable.
11060 * observable.c: Define source_styling_changed observable.
11061
a068643d
TT
110622019-03-13 Tom Tromey <tromey@adacore.com>
11063
11064 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11065 (i386_gnu_nat_target::store_registers): Update.
11066 * target-debug.h (target_debug_print_std_string): New macro.
11067 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11068 * windows-tdep.c (display_one_tib): Update.
11069 * tui/tui-stack.c (tui_make_status_line): Update.
11070 * top.c (print_inferior_quit_action): Update.
11071 * thread.c (thr_try_catch_cmd): Update.
11072 (add_thread_with_info): Update.
11073 (thread_target_id_str): Update.
11074 (thr_try_catch_cmd): Update.
11075 (thread_command): Update.
11076 (thread_find_command): Update.
11077 * record-btrace.c (record_btrace_target::info_record)
11078 (record_btrace_resume_thread, record_btrace_target::resume)
11079 (record_btrace_cancel_resume, record_btrace_step_thread)
11080 (record_btrace_target::wait, record_btrace_target::wait)
11081 (record_btrace_target::wait, record_btrace_target::stop): Update.
11082 * progspace.c (print_program_space): Update.
11083 * process-stratum-target.c
11084 (process_stratum_target::thread_address_space): Update.
11085 * linux-fork.c (linux_fork_mourn_inferior)
11086 (detach_checkpoint_command, info_checkpoints_command)
11087 (linux_fork_context): Update.
11088 (linux_fork_detach): Update.
11089 (class scoped_switch_fork_info): Update.
11090 (delete_checkpoint_command): Update.
11091 * infrun.c (follow_fork_inferior): Update.
11092 (follow_fork_inferior): Update.
11093 (proceed_after_vfork_done): Update.
11094 (handle_vfork_child_exec_or_exit): Update.
11095 (follow_exec): Update.
11096 (displaced_step_prepare_throw): Update.
11097 (displaced_step_restore): Update.
11098 (start_step_over): Update.
11099 (resume_1): Update.
11100 (clear_proceed_status_thread): Update.
11101 (proceed): Update.
11102 (print_target_wait_results): Update.
11103 (do_target_wait): Update.
11104 (context_switch): Update.
11105 (stop_all_threads): Update.
11106 (restart_threads): Update.
11107 (finish_step_over): Update.
11108 (handle_signal_stop): Update.
11109 (switch_back_to_stepped_thread): Update.
11110 (keep_going_pass_signal): Update.
11111 (print_exited_reason): Update.
11112 (normal_stop): Update.
11113 * inferior.c (inferior_pid_to_str): Change return type.
11114 (print_selected_inferior): Update.
11115 (add_inferior): Update.
11116 (detach_inferior): Update.
11117 * dummy-frame.c (fprint_dummy_frames): Update.
11118 * dcache.c (dcache_info_1): Update.
11119 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11120 (btrace_fetch, btrace_clear): Update.
11121 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11122 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11123 type.
11124 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11125 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11126 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11127 * gdbarch.c, gdbarch.h: Rebuild.
11128 * gdbarch.sh (core_pid_to_str): Change return type.
11129 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11130 return type.
11131 (windows_nat_target::pid_to_str): Change return type.
11132 (windows_delete_thread): Update.
11133 (windows_nat_target::attach): Update.
11134 (windows_nat_target::files_info): Update.
11135 * target-delegates.c: Rebuild.
11136 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11137 return type.
11138 (sol_thread_target::pid_to_str): Change return type.
11139 * remote.c (class remote_target) <pid_to_str>: Change return
11140 type.
11141 (remote_target::pid_to_str): Change return type.
11142 (extended_remote_target::attach, remote_target::remote_stop_ns)
11143 (remote_target::remote_notif_remove_queued_reply)
11144 (remote_target::push_stop_reply, remote_target::disable_btrace):
11145 Update.
11146 (extended_remote_target::attach): Update.
11147 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11148 type.
11149 (gdbsim_target::pid_to_str): Change return type.
11150 * ravenscar-thread.c (struct ravenscar_thread_target)
11151 <pid_to_str>: Change return type.
11152 (ravenscar_thread_target::pid_to_str): Change return type.
11153 * procfs.c (class procfs_target) <pid_to_str>: Change return
11154 type.
11155 (procfs_target::pid_to_str): Change return type.
11156 (procfs_target::attach): Update.
11157 (procfs_target::detach): Update.
11158 (procfs_target::fetch_registers): Update.
11159 (procfs_target::store_registers): Update.
11160 (procfs_target::wait): Update.
11161 (procfs_target::files_info): Update.
11162 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11163 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11164 return type.
11165 (nto_procfs_target::pid_to_str): Change return type.
11166 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11167 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11168 return type.
11169 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11170 (exit_lwp): Update.
11171 (attach_proc_task_lwp_callback, get_detach_signal)
11172 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11173 (linux_nat_target::resume, wait_lwp, stop_callback)
11174 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11175 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11176 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11177 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11178 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11179 type.
11180 (inf_ptrace_target::attach): Update.
11181 (inf_ptrace_target::files_info): Update.
11182 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11183 type.
11184 (go32_nat_target::pid_to_str): Change return type.
11185 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11186 (gnu_nat_target::wait): Update.
11187 (gnu_nat_target::wait): Update.
11188 (gnu_nat_target::resume): Update.
11189 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11190 (fbsd_nat_target::wait): Update.
11191 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11192 type.
11193 (darwin_nat_target::attach): Update.
11194 * corelow.c (class core_target) <pid_to_str>: Change return type.
11195 (core_target::pid_to_str): Change return type.
11196 * target.c (normal_pid_to_str): Change return type.
11197 (default_pid_to_str): Likewise.
11198 (target_pid_to_str): Change return type.
11199 (target_translate_tls_address): Update.
11200 (target_announce_detach): Update.
11201 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11202 return type.
11203 (bsd_uthread_target::pid_to_str): Change return type.
11204 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11205 type.
11206 (bsd_kvm_target::pid_to_str): Change return type.
11207 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11208 return type.
11209 (aix_thread_target::pid_to_str): Change return type.
11210 * target.h (struct target_ops) <pid_to_str>: Change return type.
11211 (target_pid_to_str, normal_pid_to_str): Likewise.
11212 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11213 type.
11214 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11215 type.
11216 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11217 return type.
11218 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11219 type.
11220 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11221 type.
11222 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11223 return type.
11224
b4be1b06
SM
112252019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11226
11227 * NEWS: Mention that the new default MI version is 3. Mention
11228 changes to the output of commands and events that deal with
11229 multi-location breakpoints.
11230 * breakpoint.c: Include "mi/mi-out.h".
11231 (print_one_breakpoint): Change output syntax if using MI version
11232 >= 3.
11233 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11234 New.
11235 (mi_multi_location_breakpoint_output_fixed): New.
11236 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11237 (mi_cmd_fix_multi_location_breakpoint_output): New.
11238 (mi_multi_location_breakpoint_output_fixed): New.
11239 * mi/mi-cmds.c (mi_cmds): Register command
11240 -fix-multi-location-breakpoint-output.
11241 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11242 interpreter "mi".
11243
8e5e5494
SM
112442019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11245
11246 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11247 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11248 instantiate mi_ui_out based on interpreter name.
11249 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11250 * mi/mi-main.c (mi_load_progress): Likewise.
11251
197df35e
JB
112522019-03-12 John Baldwin <jhb@FreeBSD.org>
11253
11254 * NEWS: Combine separate "New targets" sections for 8.3.
11255
8399425f
JB
112562019-03-12 John Baldwin <jhb@FreeBSD.org>
11257
11258 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11259 (ppcfbsd_init_abi): Install gdbarch
11260 "fetch_tls_load_module_address" and "get_thread_local_address"
11261 methods.
11262
b0f87ed0
JB
112632019-03-12 John Baldwin <jhb@FreeBSD.org>
11264
11265 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11266 (riscv_fbsd_init_abi): Install gdbarch
11267 "fetch_tls_load_module_address" and "get_thread_local_address"
11268 methods.
11269
ce25aa57
JB
112702019-03-12 John Baldwin <jhb@FreeBSD.org>
11271
11272 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11273 (i386fbsd_init_abi): Install gdbarch
11274 "fetch_tls_load_module_address" and "get_thread_local_address"
11275 methods.
11276
f5424cfa
JB
112772019-03-12 John Baldwin <jhb@FreeBSD.org>
11278
11279 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11280 (amd64fbsd_init_abi): Install gdbarch
11281 "fetch_tls_load_module_address" and "get_thread_local_address"
11282 methods.
11283
945f3901
JB
112842019-03-12 John Baldwin <jhb@FreeBSD.org>
11285
11286 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11287 (struct fbsd_pspace_data): New type.
11288 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11289 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11290 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11291 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11292 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11293
ef0bd204
JB
112942019-03-12 John Baldwin <jhb@FreeBSD.org>
11295
11296 * gdbtypes.c (lookup_struct_elt): New function.
11297 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11298 * gdbtypes.h (struct struct_elt): New type.
11299 (lookup_struct_elt): New prototype.
11300
36c53a02
JB
113012019-03-12 John Baldwin <jhb@FreeBSD.org>
11302
11303 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11304 remove disabled code block.
11305
6e056c81
JB
113062019-03-12 John Baldwin <jhb@FreeBSD.org>
11307
11308 * gdbarch.sh (get_thread_local_address): New method.
11309 * gdbarch.h, gdbarch.c: Regenerate.
11310 * target.c (target_translate_tls_address): Use
11311 gdbarch_get_thread_local_address if present instead of
11312 target::get_thread_local_address.
11313
cd250a18
JB
113142019-03-12 John Baldwin <jhb@FreeBSD.org>
11315
11316 * target.h (target::get_thread_local_address): Update comment.
11317
df22c1e5
JB
113182019-03-12 John Baldwin <jhb@FreeBSD.org>
11319
11320 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11321 objfile->separate_debug_objfile_backlink if not NULL.
11322
dd6876c9
JB
113232019-03-12 John Baldwin <jhb@FreeBSD.org>
11324
11325 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11326 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11327 (amd64bsd_store_inferior_registers): Likewise.
11328 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11329 Enable segment base registers.
11330 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11331 PT_GETFSBASE and PT_GETGSBASE.
11332 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11333 PT_SETGSBASE.
11334 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11335 segment base registers.
11336 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11337
1163a4b7
JB
113382019-03-12 John Baldwin <jhb@FreeBSD.org>
11339
11340 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11341 Update calls to i386_target_description to add 'segments'
11342 parameter.
11343 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11344 add segment base registers.
11345 * arch/i386.c (i386_create_target_description): Add 'segments'
11346 parameter to enable segment base registers.
11347 * arch/i386.h (i386_create_target_description): Likewise.
11348 * features/i386/32bit-segments.xml: New file.
11349 * features/i386/32bit-segments.c: Generate.
11350 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11351 call to i386_target_description to add 'segments' parameter.
11352 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11353 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11354 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11355 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11356 if feature is present.
11357 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11358 Add 'segments' parameter to call to i386_target_description.
11359 (i386_target_description): Add 'segments' parameter to enable
11360 segment base registers.
11361 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11362 to call to i386_target_description.
11363 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11364 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11365 Define I386_NUM_REGS.
11366 (i386_target_description): Add 'segments' parameter to enable
11367 segment base registers.
11368
3a350822
EZ
113692019-03-12 Eli Zaretskii <eliz@gnu.org>
11370
11371 PR/24325
11372 * source-cache.c: #undef open and close, to avoid unresolved
11373 externals during linking.
11374
ffdd69cf
TT
113752019-03-12 Tom Tromey <tromey@adacore.com>
11376
11377 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11378 const. Add initializers.
11379 (_initialize_remote): Don't initialize ptid globals.
11380
ec148c57
PA
113812019-03-12 Pedro Alves <palves@redhat.com>
11382
11383 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11384
32764270
PA
113852019-03-12 Pedro Alves <palves@redhat.com>
11386
11387 * cp-name-parser.y (main): Remove unused 'len' variable.
11388
17547186
TT
113892019-03-12 Tom Tromey <tromey@adacore.com>
11390
11391 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11392 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11393
d3a70e03
TT
113942019-03-12 Tom Tromey <tromey@adacore.com>
11395
11396 * linux-nat.c (iterate_over_lwps): Update.
11397 (stop_callback): Remove parameter.
11398 (stop_wait_callback, detach_callback, resume_set_callback)
11399 (select_singlestep_lwp_callback, set_ignore_sigint)
11400 (status_callback, resumed_callback, resume_clear_callback)
11401 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11402 data parameter.
11403 (linux_nat_target::detach, linux_nat_target::resume)
11404 (linux_stop_and_wait_all_lwps, select_event_lwp)
11405 (linux_nat_filter_event, linux_nat_wait_1)
11406 (linux_nat_target::kill, linux_nat_target::stop)
11407 (linux_nat_target::stop): Update.
11408 (linux_nat_resume_callback): Change type.
11409 (resume_stopped_resumed_lwps, count_events_callback)
11410 (select_event_lwp_callback): Likewise.
11411 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11412 * arm-linux-nat.c (struct update_registers_data): Remove.
11413 (update_registers_callback): Change type.
11414 (arm_linux_insert_hw_breakpoint1): Update.
11415 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11416 parameter.
11417 (x86_linux_dr_set_addr): Update.
11418 (x86_linux_dr_set_control): Update.
11419 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11420 (iterate_over_lwps): Use gdb::function_view.
11421 * nat/aarch64-linux-hw-point.c (struct
11422 aarch64_dr_update_callback_param): Remove.
11423 (debug_reg_change_callback): Change type.
11424 (aarch64_notify_debug_reg_change): Update.
11425 * s390-linux-nat.c (s390_refresh_per_info): Update.
11426
82cb27ff
TT
114272019-03-11 Tom Tromey <tromey@adacore.com>
11428
11429 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11430 redundant assignment to "this_cu".
11431
568c0683
SM
114322019-03-08 Simon Marchi <simon.marchi@efficios.com>
11433
11434 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11435
f09ce22d
SM
114362019-03-08 Simon Marchi <simon.marchi@efficios.com>
11437
11438 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11439 from...
11440 (rank_one_type): ... this.
11441
595f96a9
SM
114422019-03-08 Simon Marchi <simon.marchi@efficios.com>
11443
11444 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11445 from...
11446 (rank_one_type): ... this.
11447
2598a94b
SM
114482019-03-08 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11451 from...
11452 (rank_one_type): ... this.
11453
7f17b20d
SM
114542019-03-08 Simon Marchi <simon.marchi@efficios.com>
11455
11456 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11457 from...
11458 (rank_one_type): ... this.
11459
2c509035
SM
114602019-03-08 Simon Marchi <simon.marchi@efficios.com>
11461
11462 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11463 from...
11464 (rank_one_type): ... this.
11465
0dd322dc
SM
114662019-03-08 Simon Marchi <simon.marchi@efficios.com>
11467
11468 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11469 from...
11470 (rank_one_type): ... this.
11471
41ea4728
SM
114722019-03-08 Simon Marchi <simon.marchi@efficios.com>
11473
11474 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11475 from...
11476 (rank_one_type): ... this.
11477
793cd1d2
SM
114782019-03-08 Simon Marchi <simon.marchi@efficios.com>
11479
11480 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11481 from...
11482 (rank_one_type): ... this.
11483
34910087
SM
114842019-03-08 Simon Marchi <simon.marchi@efficios.com>
11485
11486 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11487 from...
11488 (rank_one_type): ... this.
11489
f1f832d6
SM
114902019-03-08 Simon Marchi <simon.marchi@efficios.com>
11491
11492 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11493 from...
11494 (rank_one_type): ... this.
11495
b9f4512f
SM
114962019-03-08 Simon Marchi <simon.marchi@efficios.com>
11497
11498 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11499 from...
11500 (rank_one_type): ... this.
11501
9293fc63
SM
115022019-03-08 Simon Marchi <simon.marchi@efficios.com>
11503
11504 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11505 from...
11506 (rank_one_type): ... this.
11507
e3abbe7e
PW
115082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11509
11510 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11511 inferior-events' shows the example events.
11512
e4adb939
EZ
115132019-03-08 Eli Zaretskii <eliz@gnu.org>
11514
11515 Support styling on native MS-Windows console
11516
11517 PR/24315
11518 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11519 on MS-Windows if $TERM is not defined.
11520
11521 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11522
11523 * posix-hdep.c (gdb_console_fputs):
11524 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11525 functions.
11526 * ui-file.h (gdb_console_fputs): Add prototype.
11527
11528 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11529 back to fputs only if the former returns zero.
11530
25629dfd
TT
115312019-03-07 Tom Tromey <tom@tromey.com>
11532
11533 * symmisc.c (print_symbol_bcache_statistics): Update.
11534 (print_objfile_statistics): Update.
11535 * symfile.c (allocate_symtab): Update.
11536 * stabsread.c: Don't include bcache.h.
11537 * psymtab.h (struct psymbol_bcache): Don't declare.
11538 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11539 (psymbol_bcache_init, psymbol_bcache_free)
11540 (psymbol_bcache_get_bcache): Don't declare.
11541 * psymtab.c (struct psymbol_bcache): Remove.
11542 (psymtab_storage::psymtab_storage): Update.
11543 (psymtab_storage::~psymtab_storage): Update.
11544 (psymbol_bcache_init, psymbol_bcache_free)
11545 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11546 (add_psymbol_to_bcache): Update.
11547 (allocate_psymtab): Update.
11548 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11549 macro_cache>: No longer pointers.
11550 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11551 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11552 * macrotab.c (macro_bcache): Update.
11553 * macroexp.c: Don't include bcache.h.
11554 * gdbtypes.c (check_types_worklist): Update.
11555 (types_deeply_equal): Remove TRY/CATCH. Update.
11556 * elfread.c (elf_symtab_read): Update.
11557 * dwarf2read.c: Don't include bcache.h.
11558 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11559 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11560 (print_bcache_statistics, bcache_memory_used): Don't declare.
11561 (struct bcache): Move from bcache.c. Add constructor, destructor,
11562 methods. Rename all data members.
11563 * bcache.c (struct bcache): Move to bcache.h.
11564 (bcache::expand_hash_table): Rename from expand_hash_table.
11565 (bcache): Remove.
11566 (bcache::insert): Rename from bcache_full.
11567 (bcache::compare): Rename from bcache_compare.
11568 (bcache_xmalloc): Remove.
11569 (bcache::~bcache): Rename from bcache_xfree.
11570 (bcache::print_statistics): Rename from print_bcache_statistics.
11571 (bcache::memory_used): Rename from bcache_memory_used.
11572
fe726667
PA
115732019-03-07 Pedro Alves <palves@redhat.com>
11574
11575 * infrun.c (normal_stop): Also check for
11576 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11577
7584bb30
AB
115782019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11579
11580 * f-lang.c (value_from_host_double): Moved to...
11581 * value.c (value_from_host_double): ...here.
11582 * value.h (value_from_host_double): Declare.
11583 * guile/scm-math.c (vlscm_convert_typed_number): Use
11584 value_from_host_double.
11585 (vlscm_convert_number): Likewise.
11586 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11587 * python/py-value.c (convert_value_from_python): Likewise.
11588
a7b1986e
TT
115892019-03-06 Tom Tromey <tom@tromey.com>
11590
11591 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11592
0ccf4211
TT
115932019-03-06 Tom Tromey <tom@tromey.com>
11594
11595 * utils.h (free_current_contents): Don't declare.
11596 * utils.c (free_current_contents): Remove.
11597
fe7b42e5
TT
115982019-03-06 Tom Tromey <tom@tromey.com>
11599
11600 * top.c (quit_force): Update.
11601 * main.c (captured_command_loop): Update.
11602 * common/new-op.c (operator new): Update.
11603 * common/common-exceptions.c (struct catcher)
11604 <save_cleanup_chain>: Remove member.
11605 (exceptions_state_mc_init): Update.
11606 (exception_try_scope_entry): Return nullptr.
11607 (exception_try_scope_exit, exception_rethrow)
11608 (throw_exception_sjlj, throw_exception_cxx): Update.
11609 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11610 (all_cleanups, do_cleanups, discard_cleanups)
11611 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11612 (restore_cleanups, restore_final_cleanups): Don't declare.
11613 (do_final_cleanups): Remove parameter.
11614 * common/cleanups.c (cleanup_chain, make_cleanup)
11615 (make_cleanup_dtor, all_cleanups, do_cleanups)
11616 (discard_my_cleanups, discard_cleanups)
11617 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11618 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11619 (null_cleanup): Remove.
11620 (do_final_cleanups): Remove parameter.
11621
c6321f19
TT
116222019-03-06 Tom Tromey <tom@tromey.com>
11623
11624 * remote.c (remote_target::remote_parse_stop_reply): Use
11625 unique_xmalloc_ptr.
11626
61b30099
TT
116272019-03-06 Tom Tromey <tom@tromey.com>
11628
11629 * stabsread.c (struct stabs_field_info): Rename from field_info.
11630 <list, fnlist>: Add initializers.
11631 <obstack>: New member.
11632 (read_member_functions, read_struct_fields, read_baseclasses):
11633 Allocate on obstack. Don't use cleanups.
11634 (read_one_struct_field, read_member_functions, read_struct_fields)
11635 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11636 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11637 (read_struct_type): Update.
11638
6cceac94
TT
116392019-03-06 Tom Tromey <tom@tromey.com>
11640
11641 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11642 * common/filestuff.h (make_cleanup_close): Don't declare.
11643 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11644 Remove.
11645
72412762
TT
116462019-03-06 Tom Tromey <tom@tromey.com>
11647
11648 * solib-aix.c: Use make_scope_exit.
11649
2b6ff1c0
TT
116502019-03-06 Tom Tromey <tom@tromey.com>
11651
11652 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11653 Use make_scope_exit.
11654
d01c5877
TT
116552019-03-06 Tom Tromey <tom@tromey.com>
11656
11657 * solib-svr4.c (disable_probes_interface): Remove parameter.
11658 (svr4_handle_solib_event): Use make_scope_exit.
11659
32603266
TT
116602019-03-06 Tom Tromey <tom@tromey.com>
11661
11662 * remote.c (struct stop_reply_deleter): Remove.
11663 (stop_reply_up): Update.
11664 (struct stop_reply): Derive from notif_event. Don't typedef.
11665 <regcache>: Now a std::vector.
11666 (stop_reply_xfree): Remove.
11667 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11668 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11669 (remote_target::discard_pending_stop_replies): Use delete.
11670 (remote_target::remote_parse_stop_reply): Update.
11671 (remote_target::process_stop_reply): Update.
11672 * remote-notif.h (struct notif_event): Add virtual destructor.
11673 Remove "dtr" member.
11674 (struct notif_client) <alloc_event>: Return a unique_ptr.
11675 (notif_event_xfree): Don't declare.
11676 (notif_event_up): New typedef.
11677 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11678 (notif_event_xfree, do_notif_event_xfree): Remove.
11679 (remote_notif_state_xfree): Update.
11680
9799571e
TT
116812019-03-06 Tom Tromey <tom@tromey.com>
11682
11683 * infrun.c (displaced_step_clear_cleanup): Now a
11684 forward_scope_exit type.
11685 (displaced_step_prepare_throw): Update.
11686 (displaced_step_fixup): Update.
11687
09e3c4ca
TT
116882019-03-06 Tom Tromey <tom@tromey.com>
11689
11690 * inferior.h (class inferior): Update comment.
11691 * gdbthread.h (class thread_info): Update comment.
11692
e2a03548
TT
116932019-03-06 Joel Brobecker <brobecker@adacore.com>
11694 Tom Tromey <tom@tromey.com>
11695
11696 * stabsread.h (struct stab_section_list): Remove.
11697 (coffstab_build_psymtabs): Update.
11698 * dbxread.c (symbuf_sections): Now a std::vector.
11699 (sect_idx): New global.
11700 (fill_symbuf): Update.
11701 (coffstab_build_psymtabs): Change type of stabsects parameter.
11702 Update.
11703 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11704 std::vector.
11705 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11706 (coff_locate_sections): Update.
11707 (coff_symfile_read): Remove cleanups. Update.
11708 (init_stringtab): Add storage parameter.
11709 (free_stringtab, free_stringtab_cleanup): Remove.
11710 (init_lineno): Add storage parameter.
11711 (free_linetab, free_linetab_cleanup): Remove.
11712
b7e60d85
PA
117132019-03-06 Pedro Alves <palves@redhat.com>
11714
11715 * linux-fork.c (fork_info::clobber_regs): Delete.
11716 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11717 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11718 comment. Adjust.
11719 (scoped_switch_fork_info::scoped_switch_fork_info)
11720 (checkpoint_command, linux_fork_context): Adjust
11721 fork_save_infrun_state calls.
11722
e52c971f
PA
117232019-03-06 Pedro Alves <palves@redhat.com>
11724
11725 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11726 (inf_has_multiple_threads): Return 'bool' and rewrite using
11727 inferior_info::threads().
11728
06974e6c
PA
117292019-03-06 Pedro Alves <palves@redhat.com>
11730
11731 * linux-fork.c: Include <list>.
11732 (fork_list): Now a std::list instance.
11733 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11734 (forks_exist_p, find_last_fork): Adjust.
11735 (new_fork): Delete.
11736 (one_fork_p): New.
11737 (add_fork): Adjust.
11738 (free_fork): Delete, folded into fork_info::~fork_info().
11739 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11740 Adjust.
11741 (init_fork_list): Delete.
11742 (linux_fork_killall, linux_fork_mourn_inferior)
11743 (linux_fork_detach, info_checkpoints_command): Adjust.
11744 (_initialize_linux_fork): No longer call init_fork_list.
11745
72f31aea
PA
117462019-03-06 Pedro Alves <palves@redhat.com>
11747
11748 * linux-fork.c (new_fork): New, split out of ...
11749 (add_fork): ... this. Return void. Move "first fork" special
11750 case from here, to ...
11751 (checkpoint_command): ... here.
11752 * linux-linux.h (add_fork): Return void.
11753
efbecbc1
AB
117542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11755
11756 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11757
0841c79a
AB
117582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11759 Chris January <chris.january@arm.com>
11760 David Lecomber <david.lecomber@arm.com>
11761
11762 * f-exp.y: New token, UNOP_INTRINSIC.
11763 (exp): New pattern using UNOP_INTRINSIC token.
11764 (f77_keywords): Add 'abs' keyword.
11765 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11766 (value_from_host_double): New function.
11767 (evaluate_subexp_f): Support UNOP_ABS.
11768
4a270568
AB
117692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11770
11771 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11772 types.
11773
067630bd
AB
117742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11775
11776 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11777 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11778 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11779
3be47f7a
AB
117802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11781
11782 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11783
4d00f5d8
AB
117842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11785 Chris January <chris.january@arm.com>
11786
11787 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11788 * f-exp.y: Define 'KIND' token.
11789 (exp): New pattern for KIND expressions.
11790 (ptype): Handle types with a kind extension.
11791 (direct_abs_decl): Extend to spot kind extensions.
11792 (f77_keywords): Add 'kind' to the list.
11793 (push_kind_type): New function.
11794 (convert_to_kind_type): New function.
11795 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11796 * parse.c (operator_length_standard): Likewise.
11797 * parser-defs.h (enum type_pieces): Add tp_kind.
11798 * std-operator.def: Add UNOP_KIND.
11799
e454224f
AB
118002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11801
11802 * f-exp.y (f_parse): Set yydebug.
11803
9dad4a58
AB
118042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11805
11806 * f-lang.c (evaluate_subexp_f): New function.
11807 (exp_descriptor_f): New global.
11808 (f_language_defn): Use exp_descriptor_f instead of
11809 exp_descriptor_standard.
11810
c8f91604
AB
118112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11812
11813 * f-exp.y (struct token): Add comments.
11814 (dot_ops): Remove uppercase versions and the end marker.
11815 (f77_keywords): Likewise.
11816 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11817 entries in the dot_ops array are case insensitive, and use
11818 strncasecmp to compare strings. Also some whitespace cleanup in
11819 this area. Similar for the f77_keywords array, except entries in
11820 this list might be case sensitive.
11821
dd9f2c76
AB
118222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11823
11824 * f-exp.y (struct f77_boolean_val): Add comments.
11825 (boolean_values): Remove uppercase versions, and end marker.
11826 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11827 and use strncasecmp to achieve case insensitivity. Additionally,
11828 perform whitespace cleanup around this code.
11829
67a3048c
TT
118302019-03-06 Tom Tromey <tromey@adacore.com>
11831
11832 * remote-sim.c (gdbsim_target_open): Use result of
11833 gdb_argv::release.
11834
aa3cfbda
RB
118352019-03-06 Richard Bunt <richard.bunt@arm.com>
11836 Dirk Schubert <dirk.schubert@arm.com>
11837 Chris January <chris.january@arm.com>
11838
11839 * eval.c (evaluate_subexp_standard): Call Fortran argument
11840 wrapping logic.
11841 * f-lang.c (struct value): A value which can be passed into a
11842 Fortran function call.
11843 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11844 where appropriate.
11845 (struct type): Value ready for a Fortran function call.
11846 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11847 is needed.
11848 * f-lang.h (fortran_argument_convert): Declaration.
11849 (fortran_preserve_arg_pointer): Declaration.
11850 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11851
ea38e5df
TT
118522019-03-05 Tom Tromey <tromey@adacore.com>
11853
11854 * python/py-prettyprint.c (print_string_repr): Remove #if.
11855 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11856
06b5b831
TT
118572019-03-05 Tom Tromey <tromey@adacore.com>
11858
11859 * target.c (the_dummy_target): Move later. Change type to
11860 "dummy_target".
11861 (initialize_targets): Don't initialize the_dummy_target.
11862
edbd9e45
TT
118632019-03-05 Tom Tromey <tromey@adacore.com>
11864
11865 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11866 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11867
c119e040
TT
118682019-03-05 Tom Tromey <tromey@adacore.com>
11869
11870 * windows-nat.c (windows_nat_target::attach)
11871 (windows_nat_target::detach): Don't call gdb_flush.
11872 * valprint.c (generic_val_print, val_print, val_print_string):
11873 Don't call gdb_flush.
11874 * utils.c (defaulted_query): Don't call gdb_flush.
11875 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11876 * target.c (target_announce_detach): Don't call gdb_flush.
11877 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11878 * remote.c (extended_remote_target::attach): Don't call
11879 gdb_flush.
11880 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11881 * printcmd.c (do_examine): Don't call gdb_flush.
11882 (info_display_command): Don't call gdb_flush.
11883 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11884 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11885 * memattr.c (info_mem_command): Don't call gdb_flush.
11886 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11887 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11888 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11889 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11890 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11891 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11892 (gnu_nat_target::detach): Don't call gdb_flush.
11893 * f-valprint.c (f_val_print): Don't call gdb_flush.
11894 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11895 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11896 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11897 gdb_flush.
11898 * c-valprint.c (c_val_print): Don't call gdb_flush.
11899 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11900
895dafa6
TT
119012019-03-05 Tom Tromey <tromey@adacore.com>
11902
11903 * varobj.c (update_dynamic_varobj_children): Update.
11904 (install_default_visualizer): Use reset, not release.
11905 * value.c (set_internalvar): Update.
11906 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11907 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11908 ATTRIBUTE_UNUSED_RESULT.
11909
88a774b9
TT
119102019-03-05 Tom Tromey <tromey@adacore.com>
11911
11912 * remote.c (class scoped_remote_fd) <release>: Add
11913 ATTRIBUTE_UNUSED_RESULT.
11914
4e4a8b93
TT
119152019-03-05 Tom Tromey <tromey@adacore.com>
11916
11917 * macroexp.c (struct macro_buffer) <release>: Add
11918 ATTRIBUTE_UNUSED_RESULT.
11919
083eef1f
TT
119202019-03-05 Tom Tromey <tromey@adacore.com>
11921
11922 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11923 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11924 ATTRIBUTE_UNUSED_RESULT.
11925
3cabd438
TT
119262019-03-05 Tom Tromey <tromey@adacore.com>
11927
11928 * common/scoped_fd.h (class scoped_fd) <release>: Add
11929 ATTRIBUTE_UNUSED_RESULT.
11930
41e3300a
TT
119312019-03-05 Tom Tromey <tromey@adacore.com>
11932
11933 * parser-defs.h (struct parser_state) <release>: Add
11934 ATTRIBUTE_UNUSED_RESULT.
11935
18cb7c9f
TT
119362019-03-05 Tom Tromey <tromey@adacore.com>
11937
11938 * utils.h (class gdb_argv) <release>: Add
11939 ATTRIBUTE_UNUSED_RESULT.
11940 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11941
41fa577f
EZ
119422019-03-02 Eli Zaretskii <eliz@gnu.org>
11943
a6a4b2c6
EZ
11944 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11945 for-loop range, to avoid compiler warnings.
11946
11947 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11948 avoid compiler warnings about unused variables.
11949
742a7df5
EZ
11950 * NEWS: Mention end of support for native debugging on MS-Windows
11951 before XP.
11952
41fa577f
EZ
11953 PR gdb/24292
11954 * common/netstuff.c:
11955 * gdbserver/gdbreplay.c
11956 * gdbserver/remote-utils.c:
11957 * ser-tcp.c:
11958 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11959 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11960 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11961 'getaddrinfo' and 'freeaddrinfo' were not available before
11962 Windows XP, and mingw.org's MinGW headers by default define
11963 _WIN32_WINNT to 0x500.
11964
827f438f
GB
119652019-03-01 Gary Benson <gbenson@redhat.com>
11966
11967 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11968
92137da0
RO
119692019-02-28 Brian Vandenberg <phantall@gmail.com>
11970 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11971
11972 PR gdb/8527
11973 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11974 set_sigint_trap, clear_sigint_trap.
11975
799efbe8
PW
119762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11977
11978 * target.c (target_detach): Clear the regcache and the
11979 frame cache.
11980
8ed25214
PA
119812019-02-27 Pedro Alves <palves@redhat.com>
11982
11983 * utils.c (set_screen_size): When we cap the height/width sizes,
11984 tweak the corresponding command variable to show "unlimited":
11985
23031e31
SJ
119862019-02-27 Saagar Jha <saagar@saagarjha.com>
11987 Pedro Alves <palves@redhat.com>
11988
11989 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11990 before calling rl_set_screen_size.
11991
6c28e44a
TT
119922019-02-27 Tom Tromey <tromey@adacore.com>
11993
11994 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11995 define.
11996 * python/py-value.c: Remove Python 2.4 workaround.
11997 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11998 workaround.
11999 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12000 Python 2.4 workaround.
12001 * python/python-internal.h: Remove Python 2.4 comment.
12002 (Py_ssize_t): Don't define.
12003 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12004 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12005 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12006 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12007 * python/python.c (do_start_initialization): Remove Python 2.4
12008 workaround.
12009 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12010 (print_children): Remove Python 2.4 workaround.
12011 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12012 workaround.
12013 (CHARBUFFERPROC_NAME): Remove.
12014 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12015 Python 2.4 workaround.
12016
2c3fc25d 120172019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12018
2c3fc25d
KB
12019 * NEWS: Note minimum Python version.
12020
6ca62222
KB
120212019-02-27 Kevin Buettner <kevinb@redhat.com>
12022
12023 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12024 code from these functions. Remove corresponding ifdefs. Use
12025 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12026 Remove gotos and target of gotos.
12027 (infpy_search_memory): Likewise.
12028
f4bc7d2c
AB
120292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12030
12031 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12032 (hppa_gdbarch_init): Don't register deleted functions with
12033 gdbarch.
12034
9734a586
AB
120352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12036
12037 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12038 (h8300_unwind_sp): Delete.
12039 (h8300_dummy_id): Delete.
12040 (h8300_gdbarch_init): Don't register deleted functions with
12041 gdbarch.
12042
68b867f3
AB
120432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12044
12045 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12046 (ft32_unwind_pc): Delete.
12047 (ft32_unwind_sp): Delete.
12048 (ft32_gdbarch_init): Don't register deleted functions with
12049 gdbarch.
12050
2fbe7ad0
AB
120512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12054 (frv_unwind_pc): Delete.
12055 (frv_unwind_sp): Delete.
12056 (frv_gdbarch_init): Don't register deleted functions with
12057 gdbarch.
12058
76055cbe
AB
120592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12062 (riscv_unwind_pc): Delete.
12063 (riscv_unwind_sp): Delete.
12064 (riscv_gdbarch_init): Don't register deleted functions with
12065 gdbarch.
12066
4133e5a1
AB
120672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12068
12069 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12070 (csky_unwind_pc): Delete.
12071 (csky_unwind_sp): Delete.
12072 (csky_gdbarch_init): Don't register deleted functions with
12073 gdbarch.
12074
8010f576
AB
120752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12076
12077 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12078 (cris_unwind_pc): Delete.
12079 (cris_unwind_sp): Delete.
12080 (cris_gdbarch_init): Don't register deleted functions with
12081 gdbarch.
12082
b56bf084
AB
120832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12084
12085 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12086 (bfin_unwind_pc): Delete.
12087 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12088
a19a650f
AB
120892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12090
12091 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12092 (arm_unwind_pc): Delete.
12093 (arm_unwind_sp): Delete.
12094 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12095
f8278c3c
AB
120962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12097
12098 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12099 (arc_unwind_pc): Delete.
12100 (arc_unwind_sp): Delete.
12101 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12102
480e46cf
AB
121032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12104
12105 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12106 (alpha_unwind_pc): Delete.
12107 (alpha_gdbarch_init): Don't register deleted functions with
12108 gdbarch.
12109
7a995095
AB
121102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12111
12112 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12113 (aarch64_unwind_pc): Delete.
12114 (aarch64_unwind_sp): Delete.
12115 (aarch64_gdbarch_init): Don't register deleted functions with
12116 gdbarch.
12117
bf9a735e
AB
121182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12119
12120 * gdbtypes.c (type_align): Don't consider static members when
12121 computing structure alignment.
12122
5561fc30
AB
121232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12124
12125 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12126 return 0 for other types.
12127 * arch-utils.c (default_type_align): Always return 0.
12128 * gdbarch.h: Regenerate.
12129 * gdbarch.sh (type_align): Extend comment.
12130 * gdbtypes.c (type_align): Add additional comments, always call
12131 gdbarch_type_align before applying the default rules.
12132 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12133 generic code will then apply a suitable default.
12134 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12135 types, return 0 for other types.
12136
9335e75a
JB
121372019-02-27 Joel Brobecker <brobecker@adacore.com>
12138
12139 * NEWS: Create a new section for the next release branch.
12140 Rename the section of the current branch, now that it has
12141 been cut.
12142
3d34d8de
JB
121432019-02-27 Joel Brobecker <brobecker@adacore.com>
12144
12145 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12146 * version.in: Bump version to 8.3.50.DATE-git.
12147
143420fb
SM
121482019-02-26 Simon Marchi <simon.marchi@efficios.com>
12149
12150 * aix-thread.c (ptid_cmp): Remove unused variable.
12151 (get_signaled_thread): Likewise.
12152 (store_regs_user_thread): Likewise.
12153 (store_regs_kernel_thread): Likewise.
12154 (fetch_regs_kernel_thread): Remove shadowed variable.
12155
172fb711
AB
121562019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12157
12158 * features/riscv/32bit-cpu.xml: Add register numbers.
12159 * features/riscv/32bit-fpu.c: Regenerate.
12160 * features/riscv/32bit-fpu.xml: Add register numbers.
12161 * features/riscv/64bit-cpu.xml: Add register numbers.
12162 * features/riscv/64bit-fpu.c: Regenerate.
12163 * features/riscv/64bit-fpu.xml: Add register numbers.
12164
26c89782
KB
121652019-02-26 Kevin Buettner <kevinb@redhat.com>
12166
af54ade9 12167 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12168 * python/py-value.c (convert_buffer_and_type_to_value): New
12169 function.
12170 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12171 Add support for handling an optional second argument. Call
12172 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12173 * python/python-internal.h (Py_buffer_deleter): New struct.
12174 (Py_buffer_up): New typedef.
12175
0f58c9e8
JB
121762019-02-25 John Baldwin <jhb@FreeBSD.org>
12177
12178 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12179 instead of releasing ownership.
12180
0a0f4c01
JR
121812019-02-25 Jordan Rupprecht <rupprecht@google.com>
12182
12183 * dwarf2read.c (open_and_init_dwp_file): Call
12184 elf_numsections instead of bfd_count_sections to initialize
12185 dwp_file->num_sections.
12186
cd5a152c
TT
121872019-02-25 Tom Tromey <tromey@adacore.com>
12188
12189 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12190
8a6a8513
SDJ
121912019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12192
12193 * gcore.in: Add '--readnever' option when invoking GDB.
12194
04dcda9c
SM
121952019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12196
12197 * MAINTAINERS: Update my email address.
12198
07bc701d
SM
121992019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12200
12201 * build-id.c (build_id_to_debug_bfd_1): New function.
12202 (build_id_to_debug_bfd): Look for separate debug file in
12203 sysroot.
12204
c6f4a5d0
AB
122052019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12206
12207 * gdbarch.sh: Update the copyright year range that is placed into
12208 generated files.
12209
9600246d
KS
122102019-02-22 Keith Seitz <keiths@redhat.com>
12211
12212 PR symtab/23853
12213 * linespec.c (create_sals_line_offset): Search for the default
12214 symtab's filename instead of its fullname.
12215
7557a514
AH
122162019-02-21 Alan Hayward <alan.hayward@arm.com>
12217
12218 * NEWS: Update style defaults.
12219
ee2bcb0c
AH
122202019-02-21 Alan Hayward <alan.hayward@arm.com>
12221
12222 * main.c (captured_main_1): Disable styling in batch mode.
12223
0c95f9ed
TT
122242019-02-20 Tom Tromey <tom@tromey.com>
12225
12226 * symtab.c (symtab_symbol_info): Fix typos.
12227
c763b894
TT
122282019-02-20 Tom Tromey <tromey@adacore.com>
12229
12230 * findcmd.c (_initialize_mem_search): Use upper case for
12231 metasyntactic variables.
12232
0ef8a082
AH
122332019-02-20 Alan Hayward <alan.hayward@arm.com>
12234
12235 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12236 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12237
6caa91b6
SM
122382019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12239
12240 * top.h (source_file_name): Change to std::string.
12241 * top.c (source_file_name): Likewise.
12242 (command_line_input): Adjust.
12243 * cli/cli-script.c (script_from_file): Adjust.
12244
98814c6c
TT
122452019-02-19 Tom Tromey <tromey@adacore.com>
12246
12247 * ravenscar-thread.c
12248 (ravenscar_thread_target::update_thread_list): Don't call
12249 ada_build_task_list.
12250 * ada-lang.h (ada_build_task_list): Don't declare.
12251 * ada-tasks.c (struct ada_tasks_inferior_data)
12252 <task_list_valid_p>: Now bool.
12253 (read_known_tasks, ada_task_list_changed)
12254 (ada_tasks_invalidate_inferior_data): Update.
12255 (read_known_tasks_array): Return bool.
12256 (read_known_tasks_list): Likewise.
12257 (read_known_tasks): Return void.
12258 (ada_build_task_list): Now static.
12259
70cd633e
AB
122602019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12261
12262 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12263 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12264
040b3e95
PW
122652019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12266
12267 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12268 variant for ada_tasks_pspace_data_handle and
12269 ada_tasks_inferior_data_handle.
12270 (ada_tasks_pspace_data_cleanup): New function.
12271 (ada_tasks_inferior_data_cleanup): New function.
12272
9409233b
TT
122732019-02-17 Tom Tromey <tom@tromey.com>
12274
12275 * macrotab.h (macro_source_fullname): Return a std::string.
12276 * macrotab.c (macro_include, check_for_redefinition)
12277 (macro_undef, macro_lookup_definition, foreach_macro)
12278 (foreach_macro_in_scope): Update.
12279 (macro_source_fullname): Return a std::string.
12280 * macrocmd.c (show_pp_source_pos): Update.
12281
6506371f
TT
122822019-02-17 Tom Tromey <tom@tromey.com>
12283
12284 * macrocmd.c (show_pp_source_pos): Style the file names.
12285
0c820d67
TT
122862019-02-17 Tom Tromey <tom@tromey.com>
12287
12288 PR tui/24197:
12289 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12290
a0087920
TT
122912019-02-17 Tom Tromey <tom@tromey.com>
12292
12293 * ada-lang.c (user_select_syms): Use filtered printing.
12294 * utils.c (wrap_style): New global.
12295 (desired_style): Remove.
12296 (emit_style_escape): Add stream parameter.
12297 (set_output_style, reset_terminal_style, prompt_for_continue):
12298 Update.
12299 (flush_wrap_buffer): Only flush gdb_stdout.
12300 (wrap_here): Set wrap_style.
12301 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12302 treat escape sequences as a character. Change when wrap buffer is
12303 flushed.
12304 (fputs_styled): Do not set the output style when the default is
12305 requested.
12306 * ui-style.h (struct ui_file_style) <is_default>: New method.
12307 * source.c (print_source_lines_base): Emit escape sequences in one
12308 piece.
12309
75ba10dc
JB
123102019-02-17 Joel Brobecker <brobecker@adacore.com>
12311
12312 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12313 integers and enumeration types.
12314
a2cd4f14
JB
123152019-02-17 Joel Brobecker <brobecker@adacore.com>
12316
12317 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12318 instead of lookup_symbol_in_language
12319 (do_exact_match): New function.
12320 (ada_get_symbol_name_matcher): Return do_exact_match when
12321 doing a verbatim match.
12322
485b851b
TT
123232019-02-15 Tom Tromey <tromey@adacore.com>
12324
12325 * ravenscar-thread.c (ravenscar_thread_target::resume)
12326 (ravenscar_thread_target::wait): Special case wildcard requests.
12327
0b790b1e
TT
123282019-02-15 Tom Tromey <tromey@adacore.com>
12329
12330 * ravenscar-thread.c (base_ptid): Remove.
12331 (struct ravenscar_thread_target) <close>: New method.
12332 <m_base_ptid>: New member.
12333 <update_inferior_ptid, active_task, task_is_currently_active,
12334 runtime_initialized>: Declare methods.
12335 <ravenscar_thread_target>: Add constructor.
12336 (ravenscar_thread_target::task_is_currently_active)
12337 (ravenscar_thread_target::update_inferior_ptid)
12338 (ravenscar_runtime_initialized): Rename. Now methods.
12339 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12340 (ravenscar_thread_target::update_thread_list): Update.
12341 (ravenscar_thread_target::active_task): Now method.
12342 (ravenscar_thread_target::store_registers)
12343 (ravenscar_thread_target::prepare_to_store)
12344 (ravenscar_thread_target::prepare_to_store)
12345 (ravenscar_thread_target::mourn_inferior): Update.
12346 (ravenscar_inferior_created): Use "new" to create target.
12347 (ravenscar_thread_target::get_ada_task_ptid): Update.
12348 (_initialize_ravenscar): Don't initialize base_ptid.
12349 (ravenscar_ops): Remove global.
12350
dea57a62
TT
123512019-02-15 Tom Tromey <tromey@adacore.com>
12352
12353 * target.h (push_target): Declare new overload.
12354 * target.c (push_target): New overload, taking an rvalue reference.
12355 * remote.c (remote_target::open_1): Use push_target overload.
12356 * corelow.c (core_target_open): Use push_target overload.
12357
989f3c58
TT
123582019-02-15 Tom Tromey <tromey@adacore.com>
12359
12360 * ravenscar-thread.c (is_ravenscar_task)
12361 (ravenscar_task_is_currently_active): Return bool.
12362 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12363 (_initialize_ravenscar): Remove "(void)".
12364 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12365 Return bool.
12366
6cbcc006
TT
123672019-02-15 Tom Tromey <tromey@adacore.com>
12368
12369 * ravenscar-thread.c (ravenscar_runtime_initializer)
12370 (has_ravenscar_runtime, get_running_thread_id)
12371 (ravenscar_thread_target::resume): Fix indentation.
12372
7657f14d
TT
123732019-02-15 Tom Tromey <tromey@adacore.com>
12374
12375 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12376 from ravenscar_arch_ops.
12377 (sparc_ravenscar_ops::fetch_registers)
12378 (sparc_ravenscar_ops::store_registers): Now methods.
12379 (sparc_ravenscar_prepare_to_store): Remove.
12380 (sparc_ravenscar_ops): Redefine.
12381 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12382 methods and destructor. Remove members.
12383 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12384 (ravenscar_thread_target::store_registers)
12385 (ravenscar_thread_target::prepare_to_store): Update.
12386 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12387 Remove.
12388 (struct ppc_ravenscar_powerpc_ops): Derive from
12389 ravenscar_arch_ops.
12390 (ppc_ravenscar_powerpc_ops::fetch_registers)
12391 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12392 (ppc_ravenscar_powerpc_ops): Redefine.
12393 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12394 (ppc_ravenscar_e500_ops::fetch_registers)
12395 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12396 (ppc_ravenscar_e500_ops): Redefine.
12397 * aarch64-ravenscar-thread.c
12398 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12399 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12400 (aarch64_ravenscar_fetch_registers)
12401 (aarch64_ravenscar_store_registers): Now methods.
12402 (aarch64_ravenscar_ops): Redefine.
12403
5b6ea500
TT
124042019-02-15 Tom Tromey <tromey@adacore.com>
12405
12406 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12407 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12408 (ravenscar_thread_target::stopped_by_watchpoint)
12409 (ravenscar_thread_target::stopped_data_address)
12410 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12411
e397fd39
TT
124122019-02-15 Tom Tromey <tromey@adacore.com>
12413
12414 * ravenscar-thread.c: Fix some typos.
12415
cc12f4a8
TT
124162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12417 Tom Tromey <tromey@adacore.com>
12418
12419 * ada-lang.c (ada_exception_sal): Change addr_string to a
12420 std::string.
12421 (create_ada_exception_catchpoint): Update.
12422
5f486660
TT
124232019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12424 Tom Tromey <tromey@adacore.com>
12425
12426 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12427 (bp_location_ops): Remove.
12428 (base_breakpoint_allocate_location): Update.
12429 (free_bp_location): Update.
12430 * ada-lang.c (class ada_catchpoint_location)
12431 <ada_catchpoint_location>: Remove ops parameter.
12432 (ada_catchpoint_location_dtor): Remove.
12433 (ada_catchpoint_location_ops): Remove.
12434 (allocate_location_exception): Update.
12435 * breakpoint.h (struct bp_location_ops): Remove.
12436 (class bp_location) <bp_location>: Remove bp_location_ops
12437 parameter.
12438 <~bp_location>: Add destructor.
12439 <ops>: Remove.
12440
b671c7fb
TS
124412019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12442 Pedro Alves <palves@redhat.com>
12443
12444 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12445 'PATH_MAX'.
12446
8071c5ce
DM
124472019-02-14 David Michael <fedora.dm0@gmail.com>
12448 Samuel Thibault <samuel.thibault@gnu.org>
12449 Thomas Schwinge <thomas@codesourcery.com>
12450
12451 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12452 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12453
b1041ae0
TS
124542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12455
924514e1
TS
12456 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12457 (check_empty): Use "const char *".
12458
c29ee8d4
TS
12459 * gnu-nat.c (gnu_nat_target::detach): Instead of
12460 'detach_inferior (pid)' call
12461 'detach_inferior (find_inferior_pid (pid))'.
12462
6c6ef69f
TS
12463 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12464 'nat/fork-inferior.o'.
12465 * gnu-nat.c: #include "nat/fork-inferior.h".
12466
2d0a338c
TS
12467 * gnu-nat.c (gnu_nat_target::detach): Instead of
12468 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12469 * gnu-nat.h: #include "inf-child.h".
12470 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12471 'i386_gnu_nat_target::fetch_registers'.
12472 (gnu_store_registers): Rename/move to
12473 'i386_gnu_nat_target::store_registers'.
12474
cabb5f06
TS
12475 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12476 * gnu-nat.h (mach_thread_info): New function.
12477 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12478
b1041ae0
TS
12479 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12480
2988d01e
KF
124812019-02-14 Frederic Konrad <konrad@adacore.com>
12482
12483 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12484
c559d709
JB
124852019-02-14 Joel Brobecker <brobecker@adacore.com>
12486
12487 * windows-nat.c (windows_add_thread): Add new parameter
12488 "main_thread_p" with default value set to false. Update
12489 function documentation as well as all callers.
12490 (windows_delete_thread): Likewise.
12491 (fake_create_process): Update call to windows_add_thread.
12492 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12493 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12494 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12495 call to windows_delete_thread.
12496
007024cc
SM
124972019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12498
12499 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12500
f62318e9
JB
125012019-02-12 John Baldwin <jhb@FreeBSD.org>
12502
12503 * symfile.c (find_separate_debug_file): Use canonical path of
12504 sysroot with child_path instead of gdb_sysroot if it is valid.
12505
cd4b7848
JB
125062019-02-12 John Baldwin <jhb@FreeBSD.org>
12507
12508 * symfile.c (find_separate_debug_file): Use child_path to
12509 determine if an object file is under a sysroot.
12510
efac4bfe
JB
125112019-02-12 John Baldwin <jhb@FreeBSD.org>
12512
12513 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12514 unittests/child-path-selftests.c.
12515 * common/pathstuff.c (child_path): New function.
12516 * common/pathstuff.h (child_path): New prototype.
12517 * unittests/child-path-selftests.c: New file.
12518
402d2bfe
JB
125192019-02-12 John Baldwin <jhb@FreeBSD.org>
12520
12521 * symfile.c (find_separate_debug_file): Look for separate debug
12522 files in debug directories under the sysroot.
12523
1ed9f74e
PW
125242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12525
12526 * symtab.h (struct minimal_symbol data_p): New const method.
12527 (struct minimal_symbol text_p): Likewise.
12528 * symtab.c (output_source_filename): Use file name style
12529 to print file name.
12530 (print_symbol_info): Likewise.
12531 (print_msymbol_info): Use address style to print addresses.
12532 Use function name style to print executable text symbols.
12533 (expand_symtab_containing_pc): Use data_p.
12534 (find_pc_sect_compunit_symtab): Likewise.
12535
2636d81d
PW
125362019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12537
12538 * breakpoint.c (describe_other_breakpoints): Use address style
12539 to print addresses.
12540 (say_where): Likewise.
12541
ac8c53cc
PW
125422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12543
12544 * ada-typeprint.c (print_func_type): Print function name
12545 style to print function name.
12546 * c-typeprint.c (c_print_type_1): Likewise.
12547
ea638c43
AH
125482019-02-11 Alan Hayward <alan.hayward@arm.com>
12549
12550 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12551 for execve.
12552
ab759ca8
PW
125532019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12554
12555 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12556 type_stack.
12557
aff29d1c
JB
125582019-02-10 Joel Brobecker <brobecker@adacore.com>
12559
12560 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12561 TYPE_CODE_REF types.
12562
617126bc
JW
125632019-02-08 Jim Wilson <jimw@sifive.com>
12564
12565 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12566 (riscv_linux_fregset): New.
12567 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12568
46e3ed7f
TT
125692019-02-07 Tom Tromey <tom@tromey.com>
12570
12571 * thread.c (thread_cancel_execution_command): Update.
12572 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12573 methods.
12574 (struct thread_fsm_ops): Remove.
12575 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12576 (thread_fsm_should_stop, thread_fsm_return_value)
12577 (thread_fsm_set_finished, thread_fsm_finished_p)
12578 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12579 Don't declare.
12580 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12581 * infrun.c (clear_proceed_status_thread)
12582 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12583 (print_stop_event): Update.
12584 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12585 Add constructor.
12586 (step_command_fsm_ops): Remove.
12587 (new_step_command_fsm): Remove.
12588 (step_1): Update.
12589 (step_command_fsm::should_stop): Rename from
12590 step_command_fsm_should_stop.
12591 (step_command_fsm::clean_up): Rename from
12592 step_command_fsm_clean_up.
12593 (step_command_fsm::do_async_reply_reason): Rename from
12594 step_command_fsm_async_reply_reason.
12595 (struct until_next_fsm): Inherit from thread_fsm. Add
12596 constructor.
12597 (until_next_fsm_ops): Remove.
12598 (new_until_next_fsm): Remove.
12599 (until_next_fsm::should_stop): Rename from
12600 until_next_fsm_should_stop.
12601 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12602 (until_next_fsm::do_async_reply_reason): Rename from
12603 until_next_fsm_async_reply_reason.
12604 (struct finish_command_fsm): Inherit from thread_fsm. Add
12605 constructor. Change type of breakpoint.
12606 (finish_command_fsm_ops): Remove.
12607 (new_finish_command_fsm): Remove.
12608 (finish_command_fsm::should_stop): Rename from
12609 finish_command_fsm_should_stop.
12610 (finish_command_fsm::clean_up): Rename from
12611 finish_command_fsm_clean_up.
12612 (finish_command_fsm::return_value): Rename from
12613 finish_command_fsm_return_value.
12614 (finish_command_fsm::do_async_reply_reason): Rename from
12615 finish_command_fsm_async_reply_reason.
12616 (finish_command): Update.
12617 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12618 Add constructor.
12619 (call_thread_fsm_ops): Remove.
12620 (call_thread_fsm::call_thread_fsm): Rename from
12621 new_call_thread_fsm.
12622 (call_thread_fsm::should_stop): Rename from
12623 call_thread_fsm_should_stop.
12624 (call_thread_fsm::should_notify_stop): Rename from
12625 call_thread_fsm_should_notify_stop.
12626 (run_inferior_call, call_function_by_hand_dummy): Update.
12627 * cli/cli-interp.c (should_print_stop_to_console): Update.
12628 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12629 Add constructor. Change type of location_breakpoint,
12630 caller_breakpoint.
12631 (until_break_fsm_ops): Remove.
12632 (new_until_break_fsm): Remove.
12633 (until_break_fsm::should_stop): Rename from
12634 until_break_fsm_should_stop.
12635 (until_break_fsm::clean_up): Rename from
12636 until_break_fsm_clean_up.
12637 (until_break_fsm::do_async_reply_reason): Rename from
12638 until_break_fsm_async_reply_reason.
12639 (until_break_command): Update.
12640 * thread-fsm.c: Remove.
12641 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12642
1a5c2598
TT
126432019-02-07 Tom Tromey <tom@tromey.com>
12644
12645 * yy-remap.h: Add include guard.
12646 * xtensa-tdep.h: Add include guard.
12647 * xcoffread.h: Rename include guard.
12648 * varobj-iter.h: Add include guard.
12649 * tui/tui.h: Rename include guard.
12650 * tui/tui-winsource.h: Rename include guard.
12651 * tui/tui-wingeneral.h: Rename include guard.
12652 * tui/tui-windata.h: Rename include guard.
12653 * tui/tui-win.h: Rename include guard.
12654 * tui/tui-stack.h: Rename include guard.
12655 * tui/tui-source.h: Rename include guard.
12656 * tui/tui-regs.h: Rename include guard.
12657 * tui/tui-out.h: Rename include guard.
12658 * tui/tui-layout.h: Rename include guard.
12659 * tui/tui-io.h: Rename include guard.
12660 * tui/tui-hooks.h: Rename include guard.
12661 * tui/tui-file.h: Rename include guard.
12662 * tui/tui-disasm.h: Rename include guard.
12663 * tui/tui-data.h: Rename include guard.
12664 * tui/tui-command.h: Rename include guard.
12665 * tic6x-tdep.h: Add include guard.
12666 * target/waitstatus.h: Rename include guard.
12667 * target/wait.h: Rename include guard.
12668 * target/target.h: Rename include guard.
12669 * target/resume.h: Rename include guard.
12670 * target-float.h: Rename include guard.
12671 * stabsread.h: Add include guard.
12672 * rs6000-tdep.h: Add include guard.
12673 * riscv-fbsd-tdep.h: Add include guard.
12674 * regformats/regdef.h: Rename include guard.
12675 * record.h: Rename include guard.
12676 * python/python.h: Rename include guard.
12677 * python/python-internal.h: Rename include guard.
12678 * python/py-stopevent.h: Rename include guard.
12679 * python/py-ref.h: Rename include guard.
12680 * python/py-record.h: Rename include guard.
12681 * python/py-record-full.h: Rename include guard.
12682 * python/py-record-btrace.h: Rename include guard.
12683 * python/py-instruction.h: Rename include guard.
12684 * python/py-events.h: Rename include guard.
12685 * python/py-event.h: Rename include guard.
12686 * procfs.h: Add include guard.
12687 * proc-utils.h: Add include guard.
12688 * p-lang.h: Add include guard.
12689 * or1k-tdep.h: Rename include guard.
12690 * observable.h: Rename include guard.
12691 * nto-tdep.h: Rename include guard.
12692 * nat/x86-linux.h: Rename include guard.
12693 * nat/x86-linux-dregs.h: Rename include guard.
12694 * nat/x86-gcc-cpuid.h: Add include guard.
12695 * nat/x86-dregs.h: Rename include guard.
12696 * nat/x86-cpuid.h: Rename include guard.
12697 * nat/ppc-linux.h: Rename include guard.
12698 * nat/mips-linux-watch.h: Rename include guard.
12699 * nat/linux-waitpid.h: Rename include guard.
12700 * nat/linux-ptrace.h: Rename include guard.
12701 * nat/linux-procfs.h: Rename include guard.
12702 * nat/linux-osdata.h: Rename include guard.
12703 * nat/linux-nat.h: Rename include guard.
12704 * nat/linux-namespaces.h: Rename include guard.
12705 * nat/linux-btrace.h: Rename include guard.
12706 * nat/glibc_thread_db.h: Rename include guard.
12707 * nat/gdb_thread_db.h: Rename include guard.
12708 * nat/gdb_ptrace.h: Rename include guard.
12709 * nat/fork-inferior.h: Rename include guard.
12710 * nat/amd64-linux-siginfo.h: Rename include guard.
12711 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12712 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12713 * nat/aarch64-linux.h: Rename include guard.
12714 * nat/aarch64-linux-hw-point.h: Rename include guard.
12715 * mn10300-tdep.h: Add include guard.
12716 * mips-linux-tdep.h: Add include guard.
12717 * mi/mi-parse.h: Rename include guard.
12718 * mi/mi-out.h: Rename include guard.
12719 * mi/mi-main.h: Rename include guard.
12720 * mi/mi-interp.h: Rename include guard.
12721 * mi/mi-getopt.h: Rename include guard.
12722 * mi/mi-console.h: Rename include guard.
12723 * mi/mi-common.h: Rename include guard.
12724 * mi/mi-cmds.h: Rename include guard.
12725 * mi/mi-cmd-break.h: Rename include guard.
12726 * m2-lang.h: Add include guard.
12727 * location.h: Rename include guard.
12728 * linux-record.h: Rename include guard.
12729 * linux-nat.h: Add include guard.
12730 * linux-fork.h: Add include guard.
12731 * i386-darwin-tdep.h: Rename include guard.
12732 * hppa-linux-offsets.h: Add include guard.
12733 * guile/guile.h: Rename include guard.
12734 * guile/guile-internal.h: Rename include guard.
12735 * gnu-nat.h: Rename include guard.
12736 * gdb-stabs.h: Rename include guard.
12737 * frv-tdep.h: Add include guard.
12738 * f-lang.h: Add include guard.
12739 * event-loop.h: Add include guard.
12740 * darwin-nat.h: Rename include guard.
12741 * cp-abi.h: Rename include guard.
12742 * config/sparc/nm-sol2.h: Rename include guard.
12743 * config/nm-nto.h: Rename include guard.
12744 * config/nm-linux.h: Add include guard.
12745 * config/i386/nm-i386gnu.h: Rename include guard.
12746 * config/djgpp/nl_types.h: Rename include guard.
12747 * config/djgpp/langinfo.h: Rename include guard.
12748 * compile/gcc-cp-plugin.h: Add include guard.
12749 * compile/gcc-c-plugin.h: Add include guard.
12750 * compile/compile.h: Rename include guard.
12751 * compile/compile-object-run.h: Rename include guard.
12752 * compile/compile-object-load.h: Rename include guard.
12753 * compile/compile-internal.h: Rename include guard.
12754 * compile/compile-cplus.h: Rename include guard.
12755 * compile/compile-c.h: Rename include guard.
12756 * common/xml-utils.h: Rename include guard.
12757 * common/x86-xstate.h: Rename include guard.
12758 * common/version.h: Rename include guard.
12759 * common/vec.h: Rename include guard.
12760 * common/tdesc.h: Rename include guard.
12761 * common/selftest.h: Rename include guard.
12762 * common/scoped_restore.h: Rename include guard.
12763 * common/scoped_mmap.h: Rename include guard.
12764 * common/scoped_fd.h: Rename include guard.
12765 * common/safe-iterator.h: Rename include guard.
12766 * common/run-time-clock.h: Rename include guard.
12767 * common/refcounted-object.h: Rename include guard.
12768 * common/queue.h: Rename include guard.
12769 * common/ptid.h: Rename include guard.
12770 * common/print-utils.h: Rename include guard.
12771 * common/preprocessor.h: Rename include guard.
12772 * common/pathstuff.h: Rename include guard.
12773 * common/observable.h: Rename include guard.
12774 * common/netstuff.h: Rename include guard.
12775 * common/job-control.h: Rename include guard.
12776 * common/host-defs.h: Rename include guard.
12777 * common/gdb_wait.h: Rename include guard.
12778 * common/gdb_vecs.h: Rename include guard.
12779 * common/gdb_unlinker.h: Rename include guard.
12780 * common/gdb_unique_ptr.h: Rename include guard.
12781 * common/gdb_tilde_expand.h: Rename include guard.
12782 * common/gdb_sys_time.h: Rename include guard.
12783 * common/gdb_string_view.h: Rename include guard.
12784 * common/gdb_splay_tree.h: Rename include guard.
12785 * common/gdb_setjmp.h: Rename include guard.
12786 * common/gdb_ref_ptr.h: Rename include guard.
12787 * common/gdb_optional.h: Rename include guard.
12788 * common/gdb_locale.h: Rename include guard.
12789 * common/gdb_assert.h: Rename include guard.
12790 * common/filtered-iterator.h: Rename include guard.
12791 * common/filestuff.h: Rename include guard.
12792 * common/fileio.h: Rename include guard.
12793 * common/environ.h: Rename include guard.
12794 * common/common-utils.h: Rename include guard.
12795 * common/common-types.h: Rename include guard.
12796 * common/common-regcache.h: Rename include guard.
12797 * common/common-inferior.h: Rename include guard.
12798 * common/common-gdbthread.h: Rename include guard.
12799 * common/common-exceptions.h: Rename include guard.
12800 * common/common-defs.h: Rename include guard.
12801 * common/common-debug.h: Rename include guard.
12802 * common/cleanups.h: Rename include guard.
12803 * common/buffer.h: Rename include guard.
12804 * common/btrace-common.h: Rename include guard.
12805 * common/break-common.h: Rename include guard.
12806 * cli/cli-utils.h: Rename include guard.
12807 * cli/cli-style.h: Rename include guard.
12808 * cli/cli-setshow.h: Rename include guard.
12809 * cli/cli-script.h: Rename include guard.
12810 * cli/cli-interp.h: Rename include guard.
12811 * cli/cli-decode.h: Rename include guard.
12812 * cli/cli-cmds.h: Rename include guard.
12813 * charset-list.h: Add include guard.
12814 * buildsym-legacy.h: Rename include guard.
12815 * bfin-tdep.h: Add include guard.
12816 * ax.h: Rename include guard.
12817 * arm-linux-tdep.h: Add include guard.
12818 * arm-fbsd-tdep.h: Add include guard.
12819 * arch/xtensa.h: Rename include guard.
12820 * arch/tic6x.h: Add include guard.
12821 * arch/i386.h: Add include guard.
12822 * arch/arm.h: Rename include guard.
12823 * arch/arm-linux.h: Rename include guard.
12824 * arch/arm-get-next-pcs.h: Rename include guard.
12825 * arch/amd64.h: Add include guard.
12826 * arch/aarch64-insn.h: Rename include guard.
12827 * arch-utils.h: Rename include guard.
12828 * annotate.h: Add include guard.
12829 * amd64-darwin-tdep.h: Rename include guard.
12830 * aarch64-linux-tdep.h: Add include guard.
12831 * aarch64-fbsd-tdep.h: Add include guard.
12832 * aarch32-linux-nat.h: Add include guard.
12833
ab9268d2
PW
128342019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12835
12836 * macrotab.c (macro_define_internal): New function that
12837 factorizes macro_define_object_internal and macro_define_function
12838 code.
12839 (macro_define_object_internal): Use macro_define_internal.
12840 (macro_define_function): Likewise.
12841
bb0da2b4
PW
128422019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12843
12844 * macrocmd.c (extract_identifier): Return
12845 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12846 callers.
12847
424eb552
JB
128482019-02-06 John Baldwin <jhb@FreeBSD.org>
12849
12850 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12851
1688cb29
TT
128522019-02-05 Tom Tromey <tom@tromey.com>
12853
12854 * target.c (target_stack::unpush): Move assertion earlier.
12855
b5eba2d8
TT
128562019-01-30 Tom Tromey <tom@tromey.com>
12857
12858 PR python/23615:
12859 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12860 (gdbpy_parse_and_eval): Likewise.
12861 * python/python-internal.h (gdbpy_allow_threads): New class.
12862
7054e2ff
JB
128632019-01-28 John Baldwin <jhb@FreeBSD.org>
12864
12865 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12866 (aarch64_fbsd_fpregmap): Move earlier.
12867 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12868 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12869 instead of individual calls to trad_frame_set_reg_addr.
12870 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12871 earlier.
12872 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12873 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12874 instead of individual calls to trad_frame_set_reg_addr.
12875
36c25ffa
AH
128762019-01-28 Alan Hayward <alan.hayward@arm.com>
12877
12878 * CONTRIBUTE: Replace contribution list with wiki link.
12879
a0707f3c
TT
128802019-01-25 Tom Tromey <tom@tromey.com>
12881
12882 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12883
0747795c
TT
128842019-01-25 Tom Tromey <tom@tromey.com>
12885
12886 * xtensa-linux-nat.c: Fix common/ includes.
12887 * xml-support.h: Fix common/ includes.
12888 * xml-support.c: Fix common/ includes.
12889 * x86-linux-nat.c: Fix common/ includes.
12890 * windows-nat.c: Fix common/ includes.
12891 * varobj.h: Fix common/ includes.
12892 * varobj.c: Fix common/ includes.
12893 * value.c: Fix common/ includes.
12894 * valops.c: Fix common/ includes.
12895 * utils.c: Fix common/ includes.
12896 * unittests/xml-utils-selftests.c: Fix common/ includes.
12897 * unittests/utils-selftests.c: Fix common/ includes.
12898 * unittests/unpack-selftests.c: Fix common/ includes.
12899 * unittests/tracepoint-selftests.c: Fix common/ includes.
12900 * unittests/style-selftests.c: Fix common/ includes.
12901 * unittests/string_view-selftests.c: Fix common/ includes.
12902 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12903 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12904 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12905 * unittests/rsp-low-selftests.c: Fix common/ includes.
12906 * unittests/parse-connection-spec-selftests.c: Fix common/
12907 includes.
12908 * unittests/optional-selftests.c: Fix common/ includes.
12909 * unittests/offset-type-selftests.c: Fix common/ includes.
12910 * unittests/observable-selftests.c: Fix common/ includes.
12911 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12912 * unittests/memrange-selftests.c: Fix common/ includes.
12913 * unittests/memory-map-selftests.c: Fix common/ includes.
12914 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12915 * unittests/function-view-selftests.c: Fix common/ includes.
12916 * unittests/environ-selftests.c: Fix common/ includes.
12917 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12918 * unittests/common-utils-selftests.c: Fix common/ includes.
12919 * unittests/cli-utils-selftests.c: Fix common/ includes.
12920 * unittests/array-view-selftests.c: Fix common/ includes.
12921 * ui-file.c: Fix common/ includes.
12922 * tui/tui-io.c: Fix common/ includes.
12923 * tracepoint.h: Fix common/ includes.
12924 * tracepoint.c: Fix common/ includes.
12925 * tracefile-tfile.c: Fix common/ includes.
12926 * top.h: Fix common/ includes.
12927 * top.c: Fix common/ includes.
12928 * thread.c: Fix common/ includes.
12929 * target/waitstatus.h: Fix common/ includes.
12930 * target/waitstatus.c: Fix common/ includes.
12931 * target.h: Fix common/ includes.
12932 * target.c: Fix common/ includes.
12933 * target-memory.c: Fix common/ includes.
12934 * target-descriptions.c: Fix common/ includes.
12935 * symtab.h: Fix common/ includes.
12936 * symfile.c: Fix common/ includes.
12937 * stap-probe.c: Fix common/ includes.
12938 * spu-linux-nat.c: Fix common/ includes.
12939 * sparc-nat.c: Fix common/ includes.
12940 * source.c: Fix common/ includes.
12941 * solib.c: Fix common/ includes.
12942 * solib-target.c: Fix common/ includes.
12943 * ser-unix.c: Fix common/ includes.
12944 * ser-tcp.c: Fix common/ includes.
12945 * ser-pipe.c: Fix common/ includes.
12946 * ser-base.c: Fix common/ includes.
12947 * selftest-arch.c: Fix common/ includes.
12948 * s12z-tdep.c: Fix common/ includes.
12949 * rust-exp.y: Fix common/ includes.
12950 * rs6000-aix-tdep.c: Fix common/ includes.
12951 * riscv-tdep.c: Fix common/ includes.
12952 * remote.c: Fix common/ includes.
12953 * remote-notif.h: Fix common/ includes.
12954 * remote-fileio.h: Fix common/ includes.
12955 * remote-fileio.c: Fix common/ includes.
12956 * regcache.h: Fix common/ includes.
12957 * regcache.c: Fix common/ includes.
12958 * record-btrace.c: Fix common/ includes.
12959 * python/python.c: Fix common/ includes.
12960 * python/py-type.c: Fix common/ includes.
12961 * python/py-inferior.c: Fix common/ includes.
12962 * progspace.h: Fix common/ includes.
12963 * producer.c: Fix common/ includes.
12964 * procfs.c: Fix common/ includes.
12965 * proc-api.c: Fix common/ includes.
12966 * printcmd.c: Fix common/ includes.
12967 * ppc-linux-nat.c: Fix common/ includes.
12968 * parser-defs.h: Fix common/ includes.
12969 * osdata.c: Fix common/ includes.
12970 * obsd-nat.c: Fix common/ includes.
12971 * nat/x86-linux.c: Fix common/ includes.
12972 * nat/x86-linux-dregs.c: Fix common/ includes.
12973 * nat/x86-dregs.h: Fix common/ includes.
12974 * nat/x86-dregs.c: Fix common/ includes.
12975 * nat/ppc-linux.c: Fix common/ includes.
12976 * nat/mips-linux-watch.h: Fix common/ includes.
12977 * nat/mips-linux-watch.c: Fix common/ includes.
12978 * nat/linux-waitpid.c: Fix common/ includes.
12979 * nat/linux-ptrace.h: Fix common/ includes.
12980 * nat/linux-ptrace.c: Fix common/ includes.
12981 * nat/linux-procfs.c: Fix common/ includes.
12982 * nat/linux-personality.c: Fix common/ includes.
12983 * nat/linux-osdata.c: Fix common/ includes.
12984 * nat/linux-namespaces.c: Fix common/ includes.
12985 * nat/linux-btrace.h: Fix common/ includes.
12986 * nat/linux-btrace.c: Fix common/ includes.
12987 * nat/fork-inferior.c: Fix common/ includes.
12988 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12989 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12990 * nat/aarch64-linux.c: Fix common/ includes.
12991 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12992 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12993 * namespace.h: Fix common/ includes.
12994 * mips-linux-tdep.c: Fix common/ includes.
12995 * minsyms.c: Fix common/ includes.
12996 * mi/mi-parse.h: Fix common/ includes.
12997 * mi/mi-main.c: Fix common/ includes.
12998 * mi/mi-cmd-env.c: Fix common/ includes.
12999 * memrange.h: Fix common/ includes.
13000 * memattr.c: Fix common/ includes.
13001 * maint.h: Fix common/ includes.
13002 * maint.c: Fix common/ includes.
13003 * main.c: Fix common/ includes.
13004 * machoread.c: Fix common/ includes.
13005 * location.c: Fix common/ includes.
13006 * linux-thread-db.c: Fix common/ includes.
13007 * linux-nat.c: Fix common/ includes.
13008 * linux-fork.c: Fix common/ includes.
13009 * inline-frame.c: Fix common/ includes.
13010 * infrun.c: Fix common/ includes.
13011 * inflow.c: Fix common/ includes.
13012 * inferior.h: Fix common/ includes.
13013 * inferior.c: Fix common/ includes.
13014 * infcmd.c: Fix common/ includes.
13015 * inf-ptrace.c: Fix common/ includes.
13016 * inf-child.c: Fix common/ includes.
13017 * ia64-linux-nat.c: Fix common/ includes.
13018 * i387-tdep.c: Fix common/ includes.
13019 * i386-tdep.c: Fix common/ includes.
13020 * i386-linux-tdep.c: Fix common/ includes.
13021 * i386-linux-nat.c: Fix common/ includes.
13022 * i386-go32-tdep.c: Fix common/ includes.
13023 * i386-fbsd-tdep.c: Fix common/ includes.
13024 * i386-fbsd-nat.c: Fix common/ includes.
13025 * guile/scm-type.c: Fix common/ includes.
13026 * guile/guile.c: Fix common/ includes.
13027 * go32-nat.c: Fix common/ includes.
13028 * gnu-nat.c: Fix common/ includes.
13029 * gdbthread.h: Fix common/ includes.
13030 * gdbarch-selftests.c: Fix common/ includes.
13031 * gdb_usleep.c: Fix common/ includes.
13032 * gdb_select.h: Fix common/ includes.
13033 * gdb_bfd.c: Fix common/ includes.
13034 * gcore.c: Fix common/ includes.
13035 * fork-child.c: Fix common/ includes.
13036 * findvar.c: Fix common/ includes.
13037 * fbsd-nat.c: Fix common/ includes.
13038 * event-top.c: Fix common/ includes.
13039 * event-loop.c: Fix common/ includes.
13040 * dwarf2read.c: Fix common/ includes.
13041 * dwarf2loc.c: Fix common/ includes.
13042 * dwarf2-frame.c: Fix common/ includes.
13043 * dwarf-index-cache.c: Fix common/ includes.
13044 * dtrace-probe.c: Fix common/ includes.
13045 * disasm-selftests.c: Fix common/ includes.
13046 * defs.h: Fix common/ includes.
13047 * csky-tdep.c: Fix common/ includes.
13048 * cp-valprint.c: Fix common/ includes.
13049 * cp-support.h: Fix common/ includes.
13050 * cp-support.c: Fix common/ includes.
13051 * corelow.c: Fix common/ includes.
13052 * completer.h: Fix common/ includes.
13053 * completer.c: Fix common/ includes.
13054 * compile/compile.c: Fix common/ includes.
13055 * compile/compile-loc2c.c: Fix common/ includes.
13056 * compile/compile-cplus-types.c: Fix common/ includes.
13057 * compile/compile-cplus-symbols.c: Fix common/ includes.
13058 * command.h: Fix common/ includes.
13059 * cli/cli-dump.c: Fix common/ includes.
13060 * cli/cli-cmds.c: Fix common/ includes.
13061 * charset.c: Fix common/ includes.
13062 * build-id.c: Fix common/ includes.
13063 * btrace.h: Fix common/ includes.
13064 * btrace.c: Fix common/ includes.
13065 * breakpoint.h: Fix common/ includes.
13066 * breakpoint.c: Fix common/ includes.
13067 * ax.h:
13068 (enum agent_op): Fix common/ includes.
13069 * ax-general.c (struct aop_map): Fix common/ includes.
13070 * ax-gdb.c: Fix common/ includes.
13071 * auxv.c: Fix common/ includes.
13072 * auto-load.c: Fix common/ includes.
13073 * arm-tdep.c: Fix common/ includes.
13074 * arch/riscv.c: Fix common/ includes.
13075 * arch/ppc-linux-common.c: Fix common/ includes.
13076 * arch/i386.c: Fix common/ includes.
13077 * arch/arm.c: Fix common/ includes.
13078 * arch/arm-linux.c: Fix common/ includes.
13079 * arch/arm-get-next-pcs.c: Fix common/ includes.
13080 * arch/amd64.c: Fix common/ includes.
13081 * arch/aarch64.c: Fix common/ includes.
13082 * arch/aarch64-insn.c: Fix common/ includes.
13083 * arch-utils.c: Fix common/ includes.
13084 * amd64-windows-tdep.c: Fix common/ includes.
13085 * amd64-tdep.c: Fix common/ includes.
13086 * amd64-sol2-tdep.c: Fix common/ includes.
13087 * amd64-obsd-tdep.c: Fix common/ includes.
13088 * amd64-nbsd-tdep.c: Fix common/ includes.
13089 * amd64-linux-tdep.c: Fix common/ includes.
13090 * amd64-linux-nat.c: Fix common/ includes.
13091 * amd64-fbsd-tdep.c: Fix common/ includes.
13092 * amd64-fbsd-nat.c: Fix common/ includes.
13093 * amd64-dicos-tdep.c: Fix common/ includes.
13094 * amd64-darwin-tdep.c: Fix common/ includes.
13095 * agent.c: Fix common/ includes.
13096 * ada-lang.h: Fix common/ includes.
13097 * ada-lang.c: Fix common/ includes.
13098 * aarch64-tdep.c: Fix common/ includes.
13099
2f5c153e
TT
131002019-01-25 Tom Tromey <tom@tromey.com>
13101
13102 * common/create-version.sh: Use common/version.h.
13103
adc6a863
PA
131042019-01-24 Pedro Alves <palves@redhat.com>
13105
13106 * infrun.c (signal_stop, signal_print, signal_program)
13107 (signal_catch, signal_pass): Now arrays instead of pointers.
13108 (update_signals_program_target, do_target_resume)
13109 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13110 * linux-nat.c (linux_nat_target::pass_signals)
13111 (linux_nat_target::create_inferior, linux_nat_target::attach):
13112 Adjust.
13113 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13114 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13115 * procfs.c (procfs_target::pass_signals): Adjust.
13116 * record-full.c (record_full_target::resume): Adjust.
13117 * remote.c (remote_target::pass_signals)
13118 (remote_target::program_signals): Adjust.
13119 * target-debug.h (target_debug_print_signals): Now takes a
13120 gdb::array_view as parameter. Adjust.
13121 * target.h (target_ops) <pass_signals, program_signals>: Replace
13122 pointer and length parameters with gdb::array_view.
13123 (target_pass_signals, target_program_signals): Likewise.
13124 * target-delegates.c: Regenerate.
13125
3046d67a
PA
131262019-01-24 Pedro Alves <palves@redhat.com>
13127
13128 * common/forward-scope-exit.h
13129 (forward_scope_exit::forward_scope_exit): Pass arguments to
13130 m_bind_function directly, instead of creating a std::bind and
13131 copying that.
13132
353229bf
AH
131332019-01-24 Alan Hayward <alan.hayward@arm.com>
13134
13135 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13136 for static members.
13137 (pass_in_v_vfp_candidate): Likewise.
13138
311dc83a
TT
131392019-01-23 Tom Tromey <tom@tromey.com>
13140 Pedro Alves <palves@redhat.com>
13141
13142 * regcache.c (class regcache_invalidator): Remove.
13143 (regcache::raw_write): Use make_scope_exit.
13144
296bd123
TT
131452019-01-23 Tom Tromey <tom@tromey.com>
13146
13147 * ui-out.h (class ui_out_emit_type): Update comment.
13148
979a0d13
TT
131492019-01-23 Tom Tromey <tom@tromey.com>
13150
13151 * infrun.c (fetch_inferior_event): Update comment.
13152
d238133d
TT
131532019-01-23 Tom Tromey <tom@tromey.com>
13154 Pedro Alves <palves@redhat.com>
13155
13156 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13157 parameter.
13158 (fetch_inferior_event): Use SCOPE_EXIT.
13159
13160
9885e6bb
TT
131612019-01-23 Tom Tromey <tom@tromey.com>
13162 Pedro Alves <palves@redhat.com>
13163
13164 * infrun.c (disable_thread_events): Delete.
13165 (stop_all_threads): Use SCOPE_EXIT.
13166
286526c1
TT
131672019-01-23 Tom Tromey <tom@tromey.com>
13168 Pedro Alves <palves@redhat.com>
13169
13170 * symfile.c: Include forward-scope-exit.h.
13171 (clear_symtab_users_cleanup): Replace forward declaration with
13172 a FORWARD_SCOPE_EXIT.
13173 (syms_from_objfile_1): Use the forward_scope_exit and
13174 gdb::optional instead of cleanup_function.
13175 (reread_symbols): Use the forward_scope_exit instead of
13176 cleanup_function.
13177 (clear_symtab_users_cleanup): Remove function.
13178
1db93f14
TT
131792019-01-23 Tom Tromey <tom@tromey.com>
13180 Pedro Alves <palves@redhat.com>
13181
13182 * linux-nat.c: Include scope-exit.h.
13183 (cleanup_target_stop): Remove.
13184 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13185 SCOPE_EXIT.
13186
2cc83d1e
TT
131872019-01-23 Tom Tromey <tom@tromey.com>
13188 Pedro Alves <palves@redhat.com>
13189
13190 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13191 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13192
694c6bf5
TT
131932019-01-23 Tom Tromey <tom@tromey.com>
13194 Andrew Burgess <andrew.burgess@embecosm.com>
13195 Pedro Alves <palves@redhat.com>
13196
13197 * infrun.c (fetch_inferior_event): Use scope_exit.
13198 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13199 * top.c (execute_command): Use scope_exit.
13200 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13201 * utils.c (do_bpstat_clear_actions_cleanup)
13202 (make_bpstat_clear_actions_cleanup): Remove.
13203
4c41382a
TT
132042019-01-23 Tom Tromey <tom@tromey.com>
13205 Pedro Alves <palves@redhat.com>
13206
13207 * infrun.c: Include "common/scope-exit.h"
13208 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13209 (wait_for_inferior): Use SCOPE_EXIT.
13210 (fetch_inferior_event): Use scope_exit.
13211
89f8fb50
TT
132122019-01-23 Tom Tromey <tom@tromey.com>
13213 Pedro Alves <palves@redhat.com>
13214
13215 * breakpoint.c (create_breakpoint): Remove cleanup.
13216
5419bdae
TT
132172019-01-23 Tom Tromey <tom@tromey.com>
13218 Andrew Burgess <andrew.burgess@embecosm.com>
13219 Pedro Alves <palves@redhat.com>
13220
e587ef42
PA
132212019-01-23 Pedro Alves <palves@redhat.com>
13222
13223 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13224
77f0e74c
PA
132252019-01-23 Pedro Alves <palves@redhat.com>
13226 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * gdbthread.h: Include "common/forward-scope-exit.h".
13229 (scoped_finish_thread_state): Redefine custom class in terms of
13230 forward_scope_exit.
13231
5b9b3e53
PA
132322019-01-23 Pedro Alves <palves@redhat.com>
13233 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * common/forward-scope-exit.h: New file.
13236
54b65c9b
PA
132372019-01-23 Pedro Alves <palves@redhat.com>
13238 Andrew Burgess <andrew.burgess@embecosm.com>
13239 Tom Tromey <tom@tromey.com>
13240
13241 * common/scope-exit.h: New file.
13242
cf08fb29
PA
132432019-01-23 Pedro Alves <palves@redhat.com>
13244
13245 * common/preprocessor.h (ESC): Rename to ...
13246 (ESC_PARENS): ... this.
13247 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13248 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13249
ae73e2e2
TT
132502019-01-23 Tom Tromey <tom@tromey.com>
13251
13252 * language.h (class scoped_switch_to_sym_language_if_auto):
13253 Initialize m_lang in both cases.
13254
6594e122
AH
132552019-01-23 Alan Hayward <alan.hayward@arm.com>
13256
13257 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13258 with XCNEW.
13259
a7c9855d
TT
132602019-01-22 Tom Tromey <tom@tromey.com>
13261
13262 * corelow.c: Do not include sys/file.h.
13263
93cc1d53
TT
132642019-01-22 Tom Tromey <tom@tromey.com>
13265
13266 * tui/tui-wingeneral.h: Include gdb_curses.h.
13267
38561778
TT
132682019-01-22 Tom Tromey <tom@tromey.com>
13269
13270 * source-cache.h (class source_cache) <get_source_lines,
13271 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13272
37b3ab5b
TT
132732019-01-22 Tom Tromey <tom@tromey.com>
13274
13275 * remote-fileio.h (struct remote_target): Declare.
13276
3fabc016
TT
132772019-01-22 Tom Tromey <tom@tromey.com>
13278
13279 * python/py-arch.c: Do not include py-ref.h.
13280 * python/py-bpevent.c: Do not include py-ref.h.
13281 * python/py-cmd.c: Do not include py-ref.h.
13282 * python/py-continueevent.c: Do not include py-ref.h.
13283 * python/py-event.h: Do not include py-ref.h.
13284 * python/py-evtregistry.c: Do not include py-ref.h.
13285 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13286 * python/py-frame.c: Do not include py-ref.h.
13287 * python/py-framefilter.c: Do not include py-ref.h.
13288 * python/py-function.c: Do not include py-ref.h.
13289 * python/py-infevents.c: Do not include py-ref.h.
13290 * python/py-linetable.c: Do not include py-ref.h.
13291 * python/py-objfile.c: Do not include py-ref.h.
13292 * python/py-param.c: Do not include py-ref.h.
13293 * python/py-prettyprint.c: Do not include py-ref.h.
13294 * python/py-progspace.c: Do not include py-ref.h.
13295 * python/py-symbol.c: Do not include py-ref.h.
13296 * python/py-symtab.c: Do not include py-ref.h.
13297 * python/py-type.c: Do not include py-ref.h.
13298 * python/py-unwind.c: Do not include py-ref.h.
13299 * python/py-utils.c: Do not include py-ref.h.
13300 * python/py-value.c: Do not include py-ref.h.
13301 * python/py-varobj.c: Do not include py-ref.h.
13302 * python/py-xmethods.c: Do not include py-ref.h.
13303 * python/python.c: Do not include py-ref.h.
13304 * varobj.c: Do not include py-ref.h.
13305
6b4d7774
TT
133062019-01-22 Tom Tromey <tom@tromey.com>
13307
13308 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13309 keyword for bcache.
13310
7af7e9b5
TT
133112019-01-22 Tom Tromey <tom@tromey.com>
13312
13313 * compile/compile-cplus-types.c: Remove a comment by #include.
13314
951d1049
TT
133152019-01-22 Tom Tromey <tom@tromey.com>
13316
13317 * compile/gcc-c-plugin.h: Include compile-internal.h.
13318
d65d5705
TT
133192019-01-22 Tom Tromey <tom@tromey.com>
13320
13321 * stabsread.c (EXTERN): Do not define.
13322 (symnum, next_symbol_text_func, processing_gcc_compilation)
13323 (within_function, global_sym_chain, global_stabs)
13324 (previous_stab_code, this_object_header_files)
13325 (n_this_object_header_files)
13326 (n_allocated_this_object_header_files): Define.
13327 * stabsread.h (EXTERN): Never define. Use "extern".
13328
b6fb1ee5
PW
133292019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13330
13331 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13332 history_value.
13333
be6d4f74
TT
133342019-01-21 Tom Tromey <tom@tromey.com>
13335
13336 * ui-out.c: Fix includes.
13337 * tui/tui-source.c: Fix includes.
13338 * target.c: Fix includes.
13339 * remote.c: Fix includes.
13340 * regcache.c: Fix includes.
13341 * python/py-block.c: Fix includes.
13342 * printcmd.c: Fix includes.
13343 * or1k-tdep.c: Fix includes.
13344 * mi/mi-main.c: Fix includes.
13345 * m32r-tdep.c: Fix includes.
13346 * csky-tdep.c: Fix includes.
13347 * compile/compile-cplus-types.c: Fix includes.
13348 * cli/cli-interp.c: Fix includes.
13349
73021deb
AH
133502019-01-21 Alan Hayward <alan.hayward@arm.com>
13351
13352 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13353 for padding.
13354
7932255d
TT
133552019-01-16 Tom Tromey <tom@tromey.com>
13356
13357 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13358 earlier.
13359 (struct objfile) <msymbols_range>: Move from top level.
13360 <msymbols>: New method.
13361 (class objfile_msymbols): Remove.
13362 * symtab.c (default_collect_symbol_completion_matches_break_on):
13363 Update.
13364 * symmisc.c (dump_msymbols): Update.
13365 * stabsread.c (scan_file_globals): Update.
13366 * objc-lang.c (info_selectors_command, info_classes_command)
13367 (find_methods): Update.
13368 * minsyms.c (find_solib_trampoline_target): Update.
13369 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13370 * coffread.c (coff_symfile_read): Update.
13371 * ada-lang.c (ada_lookup_simple_minsym)
13372 (ada_collect_symbol_completion_matches): Update.
13373
604b1bfb
TT
133742019-01-16 Tom Tromey <tom@tromey.com>
13375
13376 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13377 type. Remove no-argument constructor.
13378 <iterator::operator++>: Simplify.
13379 <begin>: Update.
13380 <end>: Use minimal_symbol_count.
13381
f252c6d5
TT
133822019-01-16 Tom Tromey <tom@tromey.com>
13383
13384 * objfiles.h (struct objfile) <psymtabs>: New method.
13385 (class objfile_psymtabs): Remove.
13386 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13387 typedef.
13388 <range>: New method.
13389 (require_partial_symbols): Change return type.
13390 * psymtab.c (require_partial_symbols)
13391 (psym_expand_symtabs_matching): Update.
13392 * mdebugread.c (parse_partial_symbols): Update.
13393 * dbxread.c (dbx_end_psymtab): Update.
13394
b669c953
TT
133952019-01-15 Tom Tromey <tom@tromey.com>
13396
13397 * symtab.c (lookup_objfile_from_block)
13398 (lookup_symbol_in_objfile_symtabs)
13399 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13400 (find_line_symtab, info_sources_command)
13401 (default_collect_symbol_completion_matches_break_on)
13402 (make_source_files_completion_list): Update.
13403 * symmisc.c (print_objfile_statistics, dump_objfile)
13404 (maintenance_print_symbols, maintenance_info_symtabs)
13405 (maintenance_check_symtabs, maintenance_info_line_tables):
13406 Update.
13407 * source.c (select_source_symtab)
13408 (forget_cached_source_info_for_objfile): Update.
13409 * objfiles.h (class objfile_compunits): Remove.
13410 (struct objfile) <compunits_range>: New typedef.
13411 (compunits): New method.
13412 * objfiles.c (objfile_relocate1): Update.
13413 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13414 * maint.c (count_symtabs_and_blocks): Update.
13415 * linespec.c (iterate_over_all_matching_symtabs): Update.
13416 * cp-support.c (add_symbol_overload_list_qualified): Update.
13417 * coffread.c (coff_symtab_read): Update.
13418 * ada-lang.c (add_nonlocal_symbols)
13419 (ada_collect_symbol_completion_matches)
13420 (ada_add_global_exceptions): Update.
13421
7e955d83
TT
134222019-01-15 Tom Tromey <tom@tromey.com>
13423
13424 * progspace.h (program_space) <objfiles_safe_range>: New
13425 typedef.
13426 <objfiles_safe>: New method.
13427 * objfiles.h (class all_objfiles_safe): Remove.
13428 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13429 * jit.c (jit_inferior_exit_hook): Update.
13430
2030c079
TT
134312019-01-17 Tom Tromey <tom@tromey.com>
13432
13433 * progspace.h (program_space) <objfiles_range>: New typedef.
13434 <objfiles>: New method.
13435 <objfiles_head>: Rename from objfiles.
13436 (object_files): Update.
13437 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13438 * guile/scm-pretty-print.c
13439 (ppscm_find_pretty_printer_from_objfiles): Update.
13440 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13441 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13442 Update.
13443 * python/py-progspace.c (pspy_get_objfiles): Update.
13444 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13445 Update.
13446 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13447 (objfpy_lookup_objfile_by_build_id): Update.
13448 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13449 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13450 Update.
13451 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13452 (expand_symtab_containing_pc, lookup_objfile_from_block)
13453 (lookup_static_symbol, basic_lookup_transparent_type)
13454 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13455 (find_line_symtab, info_sources_command)
13456 (default_collect_symbol_completion_matches_break_on)
13457 (make_source_files_completion_list, find_main_name): Update.
13458 * symmisc.c (print_symbol_bcache_statistics)
13459 (print_objfile_statistics, maintenance_print_symbols)
13460 (maintenance_print_msymbols, maintenance_print_objfiles)
13461 (maintenance_info_symtabs, maintenance_check_symtabs)
13462 (maintenance_expand_symtabs, maintenance_info_line_tables):
13463 Update.
13464 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13465 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13466 (map_overlay_command, unmap_overlay_command)
13467 (simple_overlay_update, expand_symtabs_matching)
13468 (map_symbol_filenames): Update.
13469 * symfile-debug.c (set_debug_symfile): Update.
13470 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13471 Update.
13472 * source.c (select_source_symtab, forget_cached_source_info):
13473 Update.
13474 * solib.c (solib_read_symbols): Update.
13475 * solib-spu.c (append_ocl_sos): Update.
13476 * psymtab.c (maintenance_print_psymbols)
13477 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13478 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13479 * printcmd.c (info_symbol_command): Update.
13480 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13481 Update.
13482 * objfiles.h (class all_objfiles): Remove.
13483 * objfiles.c (have_partial_symbols, have_full_symbols)
13484 (have_minimal_symbols, qsort_cmp, update_section_map)
13485 (shared_objfile_contains_address_p)
13486 (default_iterate_over_objfiles_in_search_order): Update.
13487 * objc-lang.c (info_selectors_command, info_classes_command)
13488 (find_methods): Update.
13489 * minsyms.c (find_solib_trampoline_target): Update.
13490 * maint.c (maintenance_info_sections)
13491 (maintenance_translate_address, count_symtabs_and_blocks):
13492 Update.
13493 * main.c (captured_main_1): Update.
13494 * linux-thread-db.c (try_thread_db_load_from_pdir)
13495 (has_libpthread): Update.
13496 * linespec.c (iterate_over_all_matching_symtabs)
13497 (search_minsyms_for_name): Update.
13498 * jit.c (jit_find_objf_with_entry_addr): Update.
13499 * hppa-tdep.c (find_unwind_entry)
13500 (hppa_lookup_stub_minimal_symbol): Update.
13501 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13502 Update.
13503 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13504 (elf_gnu_ifunc_resolve_by_got): Update.
13505 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13506 * dwarf-index-write.c (save_gdb_index_command): Update.
13507 * cp-support.c (add_symbol_overload_list_qualified): Update.
13508 * breakpoint.c (create_overlay_event_breakpoint)
13509 (create_longjmp_master_breakpoint)
13510 (create_std_terminate_master_breakpoint)
13511 (create_exception_master_breakpoint): Update.
13512 * blockframe.c (find_pc_partial_function): Update.
13513 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13514 (ada_collect_symbol_completion_matches)
13515 (ada_add_global_exceptions): Update.
13516
776489e0
TT
135172019-01-17 Tom Tromey <tom@tromey.com>
13518
13519 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13520 declare VEC.
13521 (solib_target_parse_libraries): Change return type.
13522 (library_list_start_segment, library_list_start_section)
13523 (library_list_end_library, library_list_start_library); Update.
13524 (solib_target_free_library_list): Remove.
13525 (solib_target_parse_libraries): Remove cleanup. Change return
13526 type.
13527 (solib_target_current_sos): Update.
13528
6471e7d2
TT
135292019-01-17 Tom Tromey <tromey@bapiya>
13530
13531 * valprint.c: Replace "the the" with "the".
13532 * symtab.c: Replace "the the" with "the".
13533 * solib.c: Replace "the the" with "the".
13534 * solib-dsbt.c: Replace "the the" with "the".
13535 * linespec.c: Replace "the the" with "the".
13536 * dwarf2loc.h: Replace "the the" with "the".
13537 * amd64-windows-tdep.c: Replace "the the" with "the".
13538 * aarch64-tdep.c: Replace "the the" with "the".
13539
c24bdb02
KS
135402019-01-16 Keith Seitz <keiths@redhat.com>
13541
13542 PR gdb/23773
13543 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13544 <builder>: Rename to ..
13545 <m_builder>: ... this and make private.
13546 (dwarf2_cu::get_builder): New method. Change all users of
13547 `builder' to use this method.
13548 (dwarf2_start_symtab): Move to ...
13549 (dwarf2_cu::start_symtab): ... here. Update all callers
13550 (setup_type_unit_groups): Move to ...
13551 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13552 callers.
13553 (dwarf2_cu::reset_builder): New method.
13554 (process_full_compunit, process_full_type_unit): Use
13555 dwarf2_cu::reset_builder.
13556 (follow_die_offset): Record the ancestor CU if it is different
13557 from the followed DIE's CU.
13558 (follow_die_sig_1): Likewise.
13559
8d64371b
TT
135602019-01-15 Tom Tromey <tom@tromey.com>
13561
13562 * remote.c (class remote_state) <buf>: Now a char_vector.
13563 <buf_size>: Remove.
13564 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13565 parameter.
13566 (remote_target::getpkt_or_notif_sane_1)
13567 (remote_target::getpkt_sane)
13568 (remote_target::getpkt_or_notif_sane): Likewise.
13569 (class remote_target) <putpkt>: New overload.
13570 (remote_target::read_frame): Change type of "buf_p". Remove
13571 sizeof_p parameter.
13572 (packet_ok): New overload.
13573 (packet_check_result): New overload.
13574 Update all uses.
13575
bb277751
TT
135762019-01-14 Tom Tromey <tom@tromey.com>
13577
13578 * remote-notif.c (handle_notification, remote_notif_ack)
13579 (remote_notif_parse): Make "buf" const.
13580 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13581 const.
13582 (remote_notif_parse, remote_notif_ack, handle_notification):
13583 Likewise.
13584 * remote.c (remote_notif_stop_parse): Make "buf" const.
13585 (remote_target::remote_parse_stop_reply): Make "buf" const.
13586 (remote_notif_stop_ack): Make "buf" const.
13587
05be00a8
TT
135882019-01-14 Tom Tromey <tom@tromey.com>
13589
13590 * remote.c (remote_console_output): Make parameter const.
13591
491adeca
TT
135922019-01-14 Tom Tromey <tom@tromey.com>
13593
13594 * target-debug.h (target_debug_print_signals): Constify.
13595 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13596 * procfs.c (procfs_target::pass_signals): Update.
13597 * linux-nat.c (linux_nat_target::pass_signals): Update.
13598 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13599 * target-delegates.c: Rebuild.
13600 * remote.c (remote_target::program_signals): Update.
13601 (remote_target::pass_signals): Update.
13602 * target.c (target_pass_signals): Constify argument.
13603 (target_program_signals): Likewise.
13604 * target.h (struct target_ops) <pass_signals, program_signals>:
13605 Constify argument.
13606 (target_pass_signals, target_program_signals): Constify argument.
13607
bbd94648
TT
136082019-01-14 Tom Tromey <tom@tromey.com>
13609
13610 PR tui/28819:
13611 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13612
6f072a10
PFC
136132019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13614
13615 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13616 field.
13617 * rs6000-tdep.c: Include reggroups.h.
13618 (IS_V_ALIAS_PSEUDOREG): Define.
13619 (rs6000_register_name): Return names for the "vX" aliases.
13620 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13621 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13622 aliases. Call default_register_reggroup_p for all other
13623 pseudo-registers.
13624 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13625 New functions.
13626 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13627 Handle "vX" aliases.
13628 (v_alias_pseudo_register_collect): New function.
13629 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13630 (rs6000_gdbarch_init): Initialize "vX" aliases as
13631 pseudo-registers. Restore registration of
13632 rs6000_pseudo_register_reggroup_p with
13633 set_tdesc_pseudo_register_reggroup_p.
13634
1a782351
MF
136352019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13636
13637 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13638 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13639 set_gdbarch_num_pseudo_regs.
13640
d73cff18
PW
136412019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13642
13643 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13644 Remove arg prefixname, add do_set and do_show.
13645 Add member functions set_list and show_list.
13646 * cli/cli-style.c (class cli_style_option): Update accordingly.
13647 (style_set_list): Move to file scope.
13648 (style_show_list): Likewise.
13649 (set_style): Call help_list.
13650 (show_style): Call cmd_show_list.
13651 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13652 Update to use the new macro.
13653
60a90376
JB
136542019-10-12 Joel Brobecker <brobecker@adacore.com>
13655
13656 * ada-lang.c (_initialize_ada_language): Expand the help text
13657 for the "catch exception" command.
13658
9d7c67bf
PW
136592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13660
13661 * symtab.c (matching_obj_sections): Initialize obj,
13662 declare it closer to its usage.
13663
7cf47dc4
TT
136642019-01-10 Tom Tromey <tom@tromey.com>
13665
13666 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13667 (basic_inf_threads_range): Remove.
13668 (inf_threads_range, inf_non_exited_threads_range)
13669 (safe_inf_threads_range): Use next_adapter.
13670
d3cb6808
KS
136712019-01-10 Keith Seitz <keiths@redhat.com>
13672
13673 PR gdb/23712
13674 PR symtab/23010
13675 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13676 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13677
63a20375
KS
136782019-01-10 Keith Seitz <keiths@redhat.com>
13679
13680 PR gdb/23712
13681 PR symtab/23010
13682 * dictionary.c (pending_to_vector): Remove.
13683 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13684 Remove _1 suffix, replacing functions of the same name. Update
13685 all callers.
13686 (dict_create_hashed, dict_create_hashed_expandable)
13687 (dict_create_linear, dict_create_linear_expandable, dict_free)
13688 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13689 Make functions static.
13690
b026f593
KS
136912019-01-10 Keith Seitz <keiths@redhat.com>
13692
13693 PR gdb/23712
13694 PR symtab/23010
13695 * dictionary.h (struct dictionary): Replace declaration with
13696 multidictionary.
13697 (dict_create_hashed, dict_create_hashed_expandable)
13698 (dict_create_linear, dict_create_linear_expandable)
13699 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13700 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13701 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13702 taking multidictionary argument.
13703 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13704 * block.h (struct block) <dict>: Change to multidictionary
13705 and rename `multidict'.
13706 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13707 symmisc.c: Update all dictionary references to multidictionary.
13708
c7748ee9
KS
137092019-01-10 Keith Seitz <keiths@redhat.com>
13710
13711 PR gdb/23712
13712 PR symtab/23010
13713 * dictionary.c: Include unordered_map.
13714 (pending_to_vector): New function.
13715 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13716 Rewrite the non-"_1" functions to take vector instead
13717 of linked list.
13718 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13719 "new" _1 versions of the same name.
13720 (multidictionary): Define.
13721 (std::hash<enum language): New definition.
13722 (collate_pending_symbols_by_language, mdict_create_hashed)
13723 (mdict_create_hashed_expandable, mdict_create_linear)
13724 (mdict_create_linear_expandable, mdict_free)
13725 (find_language_dictionary, create_new_language_dictionary)
13726 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13727 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13728 (mdict_size, mdict_empty): New functions.
13729 * dictionary.h (mdict_iterator): Define.
13730
67aa1f3c
PA
137312019-01-10 Pedro Alves <palves@redhat.com>
13732
13733 * breakpoint.c (read_uploaded_action)
13734 (create_tracepoint_from_upload): Adjust to use
13735 gdb::unique_xmalloc_ptr.
13736 * ctf.c (ctf_write_uploaded_tp):
13737 (SET_ARRAY_FIELD): Use emplace_back.
13738 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13739 * tracefile-tfile.c (tfile_write_uploaded_tp):
13740 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13741 gdb::unique_xmalloc_ptr.
13742 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13743 at_string, cond_string, cmd_strings>: Replace char pointers
13744 with gdb::unique_xmalloc_ptr.
13745
2f667667
PA
137462019-01-10 Pedro Alves <palves@redhat.com>
13747
13748 * solib-target.c (library_list_start_library): Don't xstrdup name.
13749
36cb7237
PA
137502019-01-10 Pedro Alves <palves@redhat.com>
13751
13752 * mdebugread.c (parse_partial_symbols): Use
13753 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13754
da584958
AB
137552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13756
13757 * linux-fork.c (scoped_switch_fork_info)
13758 <~scoped_switch_fork_info>: Fix incorrect variable name.
13759
1ef8573c
AB
137602019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13761
13762 * linux-fork.c (scoped_switch_fork_info)
13763 <scoped_switch_fork_info>: Make explicit.
13764 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13765
8d7bcccb
TT
137662019-01-10 Tom Tromey <tom@tromey.com>
13767
13768 * objfiles.h (objfile::reset_psymtabs): Update.
13769 * objfiles.c (objfile::objfile): Update.
13770 * psymtab.h (psymtab_storage::obstack): Update.
13771 (psymtab_storage::m_obstack): Use gdb::optional.
13772 (class psymtab_storage): Update comment. Remove objfile
13773 parameter.
13774 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13775
b596a3c7
TT
137762019-01-10 Tom Tromey <tom@tromey.com>
13777
13778 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13779 <free_psymtabs>: Now private.
13780 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13781 (allocate_psymtab): Use new method.
13782
a9342b62
TT
137832019-01-10 Tom Tromey <tom@tromey.com>
13784
13785 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13786 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13787 * mdebugread.c (parse_partial_symbols): Use
13788 allocate_dependencies.
13789 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13790 allocate_dependencies.
13791 (process_psymtab_comp_unit_reader)
13792 (build_type_psymtab_dependencies): Likewise.
13793 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13794
5af70966
TT
137952019-01-10 Tom Tromey <tom@tromey.com>
13796
13797 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13798 PSYMBOL_SET_LANGUAGE.
13799 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13800
5923a04c
TT
138012019-01-10 Tom Tromey <tom@tromey.com>
13802
13803 * psymtab.h (psymtab_storage::obstack): New method.
13804 <m_obstack>: Rename from obstack; now private.
13805 * psymtab.c (psymtab_storage): Update.
13806 * dwarf2read.c (create_addrmap_from_index)
13807 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13808 Update.
13809
6d6a12bf
TT
138102019-01-10 Tom Tromey <tom@tromey.com>
13811
13812 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13813 * objfiles.h (objfile::reset_psymtabs): New method.
13814
d320c2b5
TT
138152019-01-10 Tom Tromey <tom@tromey.com>
13816
13817 * symmisc.c (print_symbol_bcache_statistics): Update.
13818 (print_objfile_statistics): Update.
13819 * symfile.c (reread_symbols): Update.
13820 * psymtab.h (class psymtab_storage): New.
13821 * psymtab.c (psymtab_storage): New constructor.
13822 (~psymtab_storage): New destructor.
13823 (require_partial_symbols): Update.
13824 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13825 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13826 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13827 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13828 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13829 (start_psymtab_common, end_psymtab_common)
13830 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13831 (allocate_psymtab): Update.
13832 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13833 Update.
13834 (dump_psymtab_addrmap, maintenance_print_psymbols)
13835 (maintenance_check_psymtabs): Update.
13836 (class objfile_psymtabs): Move to objfiles.h.
13837 * psympriv.h (discard_psymtab): Now inline.
13838 (psymtab_discarder::psymtab_discarder): Update.
13839 (psymtab_discarder::~psymtab_discarder): Update.
13840 (ALL_OBJFILE_PSYMTABS): Rewrite.
13841 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13842 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13843 Remove fields.
13844 <partial_symtabs>: New field.
13845 (class objfile_psymtabs): Move from psymtab.h. Update.
13846 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13847 psymbol_cache.
13848 (objfile::~objfile): Don't destroy psymbol_cache.
13849 * mdebugread.c (parse_partial_symbols): Update.
13850 * dwarf2read.c (create_addrmap_from_index)
13851 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13852 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13853 (add_partial_subprogram, dwarf2_ranges_read): Update.
13854 * dwarf-index-write.c (write_address_map)
13855 (write_one_signatured_type, recursively_write_psymbols)
13856 (class debug_names, class debug_names, write_psymtabs_to_index):
13857 Update.
13858
1d94a5a3
TT
138592019-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * symtab.h (SYMBOL_SET_NAMES): Update.
13862 (symbol_set_names): Update.
13863 (MSYMBOL_SET_NAMES): Update.
13864 * symtab.c (symbol_set_names): Change argument to be an
13865 objfile_per_bfd_storage.
13866 * psymtab.c (add_psymbol_to_bcache): Update.
13867 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13868
0f14768a
TT
138692019-01-10 Tom Tromey <tom@tromey.com>
13870
13871 * symtab.c (create_demangled_names_hash): Change argument to be an
13872 objfile_per_bfd_storage.
13873 (symbol_set_names): Update.
13874
6eee24ce
TT
138752019-01-10 Tom Tromey <tom@tromey.com>
13876
13877 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13878 init_psymbol_list.
13879 * psymtab.c (init_psymbol_list): Do nothing if already called.
13880 * psympriv.h (init_psymbol_list): Add comment.
13881 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13882 init_psymbol_list.
13883 * dbxread.c (dbx_symfile_read): Unconditionally call
13884 init_psymbol_list.
13885
75aedd27
TT
138862019-01-10 Tom Tromey <tom@tromey.com>
13887
13888 * xcoffread.c (scan_xcoff_symtab): Update.
13889 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13890 "where".
13891 * mdebugread.c (parse_partial_symbols)
13892 (handle_psymbol_enumerators): Update.
13893 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13894 * dbxread.c (read_dbx_symtab): Update.
13895 * psympriv.h (psymbol_placement): New enum.
13896 (add_psymbol_to_list): Update.
13897
939652a5
TT
138982019-01-10 Tom Tromey <tom@tromey.com>
13899
13900 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13901 static_psymbols parameters.
13902 (scan_xcoff_symtab): Update.
13903 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13904 static_psymbols parameters.
13905 * psympriv.h (start_psymtab_common): Update.
13906 * mdebugread.c (parse_partial_symbols): Update.
13907 * dwarf2read.c (create_partial_symtab): Update.
13908 * dbxread.c (read_dbx_symtab): Update.
13909 (start_psymtab): Remove global_psymbols and static_psymbols
13910 parameters.
13911
baa62830
TT
139122019-01-10 Tom Tromey <tom@tromey.com>
13913
13914 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13915 * psymtab.c (allocate_psymtab): Add comment.
13916 * psympriv.h (allocate_psymtab): Add comment.
13917 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13918 initializations.
13919 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13920
0e8f53ba
TT
139212019-01-10 Tom Tromey <tom@tromey.com>
13922
13923 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13924 Don't declare.
13925 * mipsread.c: Include mdebugread.h.
13926 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13927 Declare.
13928 * elfread.c: Include mdebugread.h.
13929
b22a7c6a
TT
139302019-01-09 Tom Tromey <tom@tromey.com>
13931
13932 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13933 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13934 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13935 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13936 (psym_lookup_symbol, psym_find_last_source_symtab)
13937 (psym_forget_cached_source_info, psym_print_stats)
13938 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13939 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13940 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13941 (psym_find_compunit_symtab_by_address)
13942 (maintenance_print_psymbols, maintenance_info_psymtabs)
13943 (maintenance_check_psymtabs): Use ranged for.
13944 * psymtab.h (class objfile_psymtabs): New.
13945 (require_partial_symbols): Return objfile_psymtabs.
13946 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13947
3b9d3ac2
TT
139482019-01-09 Tom Tromey <tom@tromey.com>
13949
13950 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13951 (find_pc_mapped_section, list_overlays_command)
13952 (map_overlay_command, unmap_overlay_command)
13953 (simple_overlay_update): Use all_objfiles.
13954 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13955 * printcmd.c (info_symbol_command): Use all_objfiles.
13956 * objfiles.h (ALL_OBJSECTIONS): Remove.
13957 * maint.c (maintenance_translate_address): Use all_objfiles.
13958 * gcore.c (gcore_create_callback): Use all_objfiles.
13959 (objfile_find_memory_regions): Likewise.
13960
8b31193a
TT
139612019-01-09 Tom Tromey <tom@tromey.com>
13962
13963 * symtab.c (find_line_symtab, info_sources_command)
13964 (make_source_files_completion_list): Use objfile_compunits.
13965 * source.c (select_source_symtab): Use objfile_compunits.
13966 * objfiles.h (struct objfile): Update comment.
13967 (ALL_OBJFILES): Remove.
13968 (ALL_FILETABS): Remove.
13969 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13970 objfile_compunits.
13971
d5da8b3c
TT
139722019-01-09 Tom Tromey <tom@tromey.com>
13973
13974 * symmisc.c (print_objfile_statistics, dump_objfile)
13975 (maintenance_print_symbols): Use compunit_filetabs.
13976 * source.c (forget_cached_source_info_for_objfile): Use
13977 compunit_filetabs.
13978 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13979 (ALL_FILETABS): Use compunit_filetabs.
13980 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13981 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13982
5accd1a0
TT
139832019-01-09 Tom Tromey <tom@tromey.com>
13984
13985 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13986 (compunit_filetabs): New.
13987 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13988 compunit_filetabs.
13989 (info_sources_command, make_source_files_completion_list): Remove
13990 declaration.
13991 * symmisc.c (print_objfile_statistics, dump_objfile)
13992 (maintenance_print_symbols): Remove declaration.
13993 (maintenance_info_symtabs): Use compunit_filetabs.
13994 (maintenance_info_line_tables): Likewise.
13995 * source.c (select_source_symtab): Change local variable name.
13996 (forget_cached_source_info_for_objfile): Remove declaration.
13997 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13998 * objfiles.c (objfile_relocate1): Remove declaration.
13999 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14000 declaration.
14001 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14002 * coffread.c (coff_symtab_read): Remove declaration.
14003 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14004 compunit_filetabs.
14005
d8aeb77f
TT
140062019-01-09 Tom Tromey <tom@tromey.com>
14007
14008 * symtab.c (lookup_objfile_from_block)
14009 (find_pc_sect_compunit_symtab, search_symbols)
14010 (default_collect_symbol_completion_matches_break_on): Use
14011 objfile_compunits.
14012 * objfiles.h (ALL_COMPUNITS): Remove.
14013 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14014 * cp-support.c (add_symbol_overload_list_qualified): Use
14015 objfile_compunits.
14016 * ada-lang.c (ada_collect_symbol_completion_matches)
14017 (ada_add_global_exceptions): Use objfile_compunits.
14018
592553c4
TT
140192019-01-09 Tom Tromey <tom@tromey.com>
14020
14021 * source.c (select_source_symtab)
14022 (forget_cached_source_info_for_objfile): Remove declaration.
14023 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14024 declaration.
14025 * maint.c (count_symtabs_and_blocks): Remove declaration.
14026 * cp-support.c (add_symbol_overload_list_qualified): Remove
14027 declaration.
14028 * coffread.c (coff_symtab_read): Remove declaration.
14029 * symtab.c (lookup_symbol_in_objfile_symtabs)
14030 (basic_lookup_transparent_type_1): Use objfile_compunits.
14031 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14032 (info_sources_command, search_symbols)
14033 (default_collect_symbol_completion_matches_break_on)
14034 (make_source_files_completion_list): Remove declaration.
14035 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14036 (ada_collect_symbol_completion_matches)
14037 (ada_add_global_exceptions): Remove declaration.
14038 * linespec.c (iterate_over_all_matching_symtabs): Use
14039 objfile_compunits.
14040 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14041 (class objfile_compunits): New.
14042 (ALL_COMPUNITS): Use objfile_compunits.
14043 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14044 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14045 objfile_compunits.
14046 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14047
5325b9bf
TT
140482019-01-09 Tom Tromey <tom@tromey.com>
14049
14050 * symtab.c (search_symbols)
14051 (default_collect_symbol_completion_matches_break_on): Use
14052 objfile_msymbols.
14053 * ada-lang.c (ada_lookup_simple_minsym)
14054 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14055 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14056 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14057 objfile_msymbols.
14058 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14059 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14060 * objc-lang.c (find_methods): Use objfile_msymbols.
14061 (info_selectors_command, info_classes_command): Likewise.
14062 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14063 * objfiles.h (class objfile_msymbols): New.
14064 (ALL_OBJFILE_MSYMBOLS): Remove.
14065 (ALL_MSYMBOLS): Remove.
14066
cac85af2
TT
140672019-01-09 Tom Tromey <tom@tromey.com>
14068
14069 * common/next-iterator.h (next_adapter): Add Iterator template
14070 parameter.
14071 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14072 (class all_objfiles_safe): New.
14073 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14074 * objfiles.c (put_objfile_before): Update comment.
14075 (add_separate_debug_objfile): Likewise.
14076 (free_all_objfiles): Use all_objfiles_safe.
14077 (objfile_purge_solibs): Likewise.
14078
aed57c53
TT
140792019-01-09 Tom Tromey <tom@tromey.com>
14080
14081 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14082 (expand_symtab_containing_pc, lookup_static_symbol)
14083 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14084 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14085 all_objfiles.
14086 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14087 * breakpoint.c (create_overlay_event_breakpoint)
14088 (create_longjmp_master_breakpoint)
14089 (create_std_terminate_master_breakpoint)
14090 (create_exception_master_breakpoint): Use all_objfiles.
14091 * linux-thread-db.c (try_thread_db_load_from_pdir)
14092 (has_libpthread): Use all_objfiles.
14093 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14094 * linespec.c (iterate_over_all_matching_symtabs)
14095 (search_minsyms_for_name): Use all_objfiles.
14096 * maint.c (maintenance_info_sections): Use all_objfiles.
14097 * main.c (captured_main_1): Use all_objfiles.
14098 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14099 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14100 * guile/scm-pretty-print.c
14101 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14102 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14103 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14104 (maintenance_print_msymbols): Use all_objfiles.
14105 * source.c (select_source_symtab): Use all_objfiles.
14106 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14107 * symfile.c (remove_symbol_file_command)
14108 (expand_symtabs_matching, map_symbol_filenames): Use
14109 all_objfiles.
14110 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14111 all_objfiles.
14112 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14113 * objc-lang.c (find_methods): Use all_objfiles.
14114 * objfiles.c (have_partial_symbols, have_full_symbols)
14115 (have_minimal_symbols, qsort_cmp)
14116 (default_iterate_over_objfiles_in_search_order): Use
14117 all_objfiles.
14118 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14119 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14120 (maintenance_check_psymtabs): Use all_objfiles.
14121 (ALL_PSYMTABS): Remove.
14122 * compile/compile-object-run.c (do_module_cleanup): Use
14123 all_objfiles.
14124 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14125 * cp-support.c (add_symbol_overload_list_qualified): Use
14126 all_objfiles.
14127 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14128 Use all_objfiles.
14129 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14130 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14131 all_objfiles.
14132 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14133 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14134 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14135 Uses all_objfiles.
14136 * solib.c (solib_read_symbols): Use all_objfiles
14137
99d89cde
TT
141382019-01-09 Tom Tromey <tom@tromey.com>
14139
14140 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14141 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14142 all_objfiles.
14143 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14144 * symmisc.c (print_symbol_bcache_statistics)
14145 (print_objfile_statistics, maintenance_print_objfiles)
14146 (maintenance_info_symtabs, maintenance_check_symtabs)
14147 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14148 all_objfiles.
14149 * source.c (forget_cached_source_info): Use all_objfiles.
14150 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14151 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14152 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14153 * objfiles.c (update_section_map): Use all_objfiles.
14154 (shared_objfile_contains_address_p): Likewise.
14155 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14156 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14157
21708325
TT
141582019-01-09 Tom Tromey <tom@tromey.com>
14159
14160 * common/next-iterator.h: New file.
14161 * objfiles.h (class all_objfiles): New.
14162 (struct objfile_iterator): New.
14163
669e09f6
PW
141642019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14165
14166 * NEWS: Move the description of the changed "frame", "select-frame",
14167 and "info frame" commands to the Changed commands section.
14168
041be526
SM
141692019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14170
14171 * gdbtypes.c (check_stub_method_group): Remove handling of old
14172 mangling schemes.
14173 * linespec.c (find_methods): Likewise.
14174 * stabsread.c (read_member_functions): Likewise.
14175 * valops.c (search_struct_method): Likewise.
14176 (value_struct_elt_for_reference): Likewise.
14177 * NEWS: Mention this change.
14178
0e2a2133
AB
141792019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14180
14181 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14182 print_source_lines.
14183 * source.c (print_source_lines_base): Update line number check.
14184 (print_source_lines): New function.
14185 (source_lines_range::source_lines_range): New function.
14186 * source.h (class source_lines_range): New class.
14187 (print_source_lines): New declaration.
14188
1055a3b4
PW
141892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14190
14191 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14192
cfeadda5
TT
141932019-01-08 Tom Tromey <tom@tromey.com>
14194 Simon Marchi <simon.marchi@ericsson.com>
14195
14196 PR gdb/24060
14197 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14198 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14199 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14200 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14201 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14202 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14203
583068ca
AB
142042019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14205
14206 * source.c (select_source_symtab): Move header comment to
14207 declaration in source.h.
14208 (forget_cached_source_info_for_objfile): Likewise.
14209 (forget_cached_source_info): Likewise.
14210 (identify_source_line): Likewise.
14211 * source.h (identify_source_line): Move declaration from symtab.h
14212 and add comment from source.c
14213 (print_source_lines): Likewise.
14214 (forget_cached_source_info_for_objfile): Likewise.
14215 (forget_cached_source_info): Likewise.
14216 (select_source_symtab): Likewise.
14217 (enum print_source_lines_flag): Move definition from symtab.h.
14218 * symtab.h (identify_source_line): Move declaration to source.h.
14219 (print_source_lines): Likewise.
14220 (forget_cached_source_info_for_objfile): Likewise.
14221 (forget_cached_source_info): Likewise.
14222 (select_source_symtab): Likewise.
14223 (enum print_source_lines_flag): Move definition to source.h.
14224 * tui/tui-hooks.c: Add 'source.h' include.
14225
ec98a4ad
AB
142262019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14227
14228 * source.c (print_source_lines_base): Handle requests to print
14229 reverse line number sequences, and guard against empty lines
14230 string.
14231
62ea19c1
AB
142322019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14233
14234 * source.c (print_source_lines_base): Fix skip of '\r' if next
14235 character is '\n'.
14236
9d30e1fd
TT
142372019-01-06 Tom Tromey <tom@tromey.com>
14238
14239 * c-exp.y (struct c_parse_state) <macro_original_text,
14240 expansion_obstack>: New member.
14241 (macro_original_text, expansion_obstack): Remove globals.
14242 (scan_macro_expansion, scanning_macro_expansion)
14243 (finished_macro_expansion): Update.
14244 (scan_macro_cleanup): Remove.
14245 (yylex, c_parse): Update.
14246
c65bac38
TT
142472019-01-06 Tom Tromey <tom@tromey.com>
14248
14249 * c-exp.y (struct c_parse_state) <strings>: New member.
14250 (operator_stoken): Update.
14251
02e12e38
TT
142522019-01-06 Tom Tromey <tom@tromey.com>
14253
14254 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14255 (union type_stack_elt) <typelist_val>: Now a pointer to
14256 std::vector.
14257 (type_stack_cleanup): Don't declare.
14258 (push_typelist): Update.
14259 * parse.c (pop_typelist): Return a std::vector.
14260 (push_typelist): Take a std::vector.
14261 (follow_types): Update. Do not free args.
14262 (type_stack_cleanup): Remove.
14263 * c-exp.y (struct c_parse_state): New.
14264 (cpstate): New global.
14265 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14266 (nonempty_typelist): Update.
14267 (func_mod): Create a new vector.
14268 (c_parse): Create a c_parse_state.
14269 (check_parameter_typelist): Do not delete params.
14270 (function_method): Update. Do not delete type_list.
14271
f097f5ad
TT
142722019-01-06 Tom Tromey <tom@tromey.com>
14273
14274 PR gdb/28155:
14275 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14276 check_typedef.
14277 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14278 (print_return_value): Likewise.
14279
d2adf9f1
TT
142802019-01-05 Tom Tromey <tom@tromey.com>
14281
14282 * contrib/cleanup_check.py: Remove.
14283 * contrib/gcc-with-excheck: Remove.
14284 * contrib/exsummary.py: Remove.
14285 * contrib/excheck.py: Remove.
14286
2eab46b1
JB
142872019-01-05 Joel Brobecker <brobecker@adacore.com>
14288
14289 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14290 NULL. Initialize tpprev to NULL instead of assigning it
14291 to NULL on the next statement.
14292 * windows-nat.c (windows_delete_thread): Remove check for
14293 main_thread_id before printing thread exit notifications.
14294 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14295 Remove thread ID check against main_thread_id.
14296 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14297 windows_delete_thread.
14298 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14299
48c5e7e2
TT
143002019-01-04 Tom Tromey <tom@tromey.com>
14301
14302 * compile/compile.c (_initialize_compile): Use upper case for
14303 metasyntactic variables.
14304 * symmisc.c (_initialize_symmisc): Use upper case for
14305 metasyntactic variables.
14306 * psymtab.c (_initialize_psymtab): Use upper case for
14307 metasyntactic variables.
14308 * demangle.c (demangle_command): Use upper case for metasyntactic
14309 variables.
14310 (_initialize_demangler): Likewise.
14311 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14312 variables.
14313
986041cd
TT
143142019-01-03 Tom Tromey <tom@tromey.com>
14315
14316 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14317
7c711119
TT
143182019-01-03 Tom Tromey <tom@tromey.com>
14319
14320 * python/py-symtab.c (salpy_str): Update.
14321 (struct salpy_sal_object) <symtab>: Now a PyObject.
14322 (salpy_dealloc): Update.
14323 (del_objfile_sal): Use gdbpy_ref.
14324
1b20edf0
TT
143252019-01-03 Tom Tromey <tom@tromey.com>
14326
14327 * python/py-type.c (convert_field): Use new_reference. Return
14328 gdbpy_ref.
14329 (make_fielditem): Return gdbpy_ref.
14330 (typy_fields): Update.
14331 (typy_getitem): Update.
14332 (field_name): Return gdbpy_ref. Use new_reference.
14333 (typy_iterator_iternext): Update.
14334
ea41325b
TT
143352019-01-03 Tom Tromey <tom@tromey.com>
14336
14337 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14338
2a3c71d6
TT
143392019-01-03 Tom Tromey <tom@tromey.com>
14340
14341 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14342 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14343 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14344 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14345 (pspy_set_type_printers): Likewise.
14346 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14347 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14348 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14349 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14350 (objfpy_set_type_printers): Likewise.
14351
5c329e6a
TT
143522019-01-03 Tom Tromey <tom@tromey.com>
14353
14354 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14355 (gdbpy_print_stack): Use gdbpy_err_fetch.
14356 * python/python-internal.h (class gdbpy_err_fetch): New class.
14357 (class gdbpy_enter) <m_error_type, m_error_value,
14358 m_error_traceback>: Remove.
14359 <m_error>: New member.
14360 (gdbpy_exception_to_string): Don't declare.
14361 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14362 * python/py-value.c (convert_value_from_python): Use
14363 gdbpy_err_fetch.
14364 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14365 gdbpy_exception_to_string.
14366 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14367 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14368 gdbpy_err_fetch.
14369
169bb27b
AB
143702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14371
14372 * linux-nat.c (delete_lwp_cleanup): Delete.
14373 (struct lwp_deleter): New struct.
14374 (lwp_info_up): New typedef.
14375 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14376 lwp_info_up.
14377
a07c8880
AB
143782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14379
14380 * linux-fork.c (class scoped_switch_fork_info): New class.
14381 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14382
26089c49
AB
143832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14384
14385 * valops.c (find_overload_match): Remove use of null_cleanup, and
14386 calls to do_cleanups.
14387
06d3e5b0
AB
143882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14389
14390 * compile/compile-cplus-types.c
14391 (compile_cplus_instance::decl_name): Handle changes to
14392 cp_func_name.
14393 * cp-support.c (cp_func_name): Update header comment, update
14394 return type.
14395 * cp-support.h (cp_func_name): Update return type in declaration.
14396 * valops.c (find_overload_match): Move temp_func local to top
14397 level of function and change its type. Use temp_func to hold and
14398 delete temporary string obtained from cp_func_name.
14399
66644cd3
AB
144002019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14401
14402 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14403 gdb::char_vector, remove cleanup, and update uses of `msg`.
14404
592d8c0a
JW
144052019-01-03 Jim Wilson <jimw@sifive.com>
14406
14407 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14408
c55d06ec
TT
144092019-01-02 Tom Tromey <tom@tromey.com>
14410
14411 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14412 (tdesc_parse_xml): Remove cleanups.
14413 * target-descriptions.h (make_cleanup_free_target_description):
14414 Don't declare.
14415 (target_desc_deleter): New struct.
14416 (target_desc_up): New typedef.
14417 * target-descriptions.c (target_desc_deleter::operator()): Rename
14418 from free_target_description.
14419 (make_cleanup_free_target_description): Remove.
14420
3a6ae42d
TT
144212019-01-02 Tom Tromey <tom@tromey.com>
14422
14423 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14424 constructor, destructor.
14425 (linespec_parser): Remove typedef.
14426 (~linespec_parser): Rename from linespec_parser_delete.
14427 (linespec_lex_to_end, linespec_complete_label)
14428 (linespec_complete): Update.
14429 (decode_line_full): Remove cleanups.
14430 (decode_line_1): Update.
14431
61fd3e73
TT
144322019-01-02 Tom Tromey <tom@tromey.com>
14433
14434 * python/python-internal.h (inferior_to_inferior_object): Change
14435 return type.
14436 * python/py-exitedevent.c (create_exited_event_object): Update.
14437 * python/py-inferior.c (inferior_to_inferior_object): Return
14438 gdbpy_ref.
14439 (python_new_inferior, python_inferior_deleted)
14440 (thread_to_thread_object, delete_thread_object)
14441 (build_inferior_list, gdbpy_selected_inferior): Update.
14442 * python/py-infthread.c (create_thread_object): Update. Also fail
14443 if inferior_to_inferior_object fails.
14444
d20172fc
SM
144452019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14446
14447 * inferior.h (class inferior) <displaced_step_state>: New field.
14448 * infrun.h (struct displaced_step_state): Move here from
14449 infrun.c. Initialize fields, add constructor.
14450 <inf>: Remove field.
14451 <reset>: New method.
14452 * infrun.c (struct displaced_step_inferior_state): Move to
14453 infrun.h.
14454 (displaced_step_inferior_states): Remove.
14455 (get_displaced_stepping_state): Adust.
14456 (displaced_step_in_progress_any_inferior): Adjust.
14457 (displaced_step_in_progress_thread): Adjust.
14458 (displaced_step_in_progress): Adjust.
14459 (add_displaced_stepping_state): Remove.
14460 (get_displaced_step_closure_by_addr): Adjust.
14461 (remove_displaced_stepping_state): Remove.
14462 (infrun_inferior_exit): Call displaced_step_state.reset.
14463 (use_displaced_stepping): Don't check for NULL.
14464 (displaced_step_prepare_throw): Call
14465 get_displaced_stepping_state.
14466 (displaced_step_fixup): Don't check for NULL.
14467 (prepare_for_detach): Don't check for NULL.
14468
e3319240
PW
144692019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14470
14471 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14472 in case of call that did not complete.
14473
5d36dfb9
AU
144742019-01-02 Andrey Utkin <autkin@undo.io>
14475
14476 * symfile.c (find_separate_debug_file): Fix search of debug files for
14477 remote debuggee.
14478
8833fbf0
TT
144792019-01-02 Tom Tromey <tom@tromey.com>
14480
14481 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14482 indentation.
14483 * python/py-frame.c (frapy_older): Remove cast.
14484 (frapy_newer): Likewise.
14485 * python/py-breakpoint.c (local_setattro): Remove cast.
14486 * python/py-arch.c (archpy_name): Remove local variable.
14487 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14488
4ada3dfd
JB
144892019-01-02 Joel Brobecker <brobecker@adacore.com>
14490
14491 * unittests/basic_string_view/element_access/char/empty.cc:
14492 Fix year range in copyright header.
14493
113b7b81
AB
144942019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14495
14496 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14497 Delete.
14498 <operator==>: Update with for removed field.
14499 <hash>: Likewise.
14500 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14501 <isa_features>: ...this.
14502 <abi_features>: New field.
14503 (riscv_isa_flen): Update comment.
14504 (riscv_abi_xlen): New declaration.
14505 (riscv_abi_flen): New declaration.
14506 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14507 isa_features.
14508 (riscv_abi_xlen): New function.
14509 (riscv_isa_flen): Update to get answer from isa_features.
14510 (riscv_abi_flen): New function.
14511 (riscv_has_fp_abi): Update to get answer from abi_features.
14512 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14513 xlen and flen.
14514 (riscv_call_info) <xlen, flen>: Update comment.
14515 (riscv_call_arg_struct): Remove invalid assertions
14516 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14517 is removed.
14518 (riscv_gdbarch_init): Gather isa features and abi features
14519 separately, ensure both match on the gdbarch when reusing an old
14520 gdbarch. Relax an error check to allow 32-bit abi float to run on
14521 a target with 64-bit float hardware.
14522
b18ca514
PW
145232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14524
14525 * source.c (search_command_helper): Stop reverse search
14526 when line 1 has been searched.
14527
ec70d8db
PW
145282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14529
14530 * record-full.c (record_full_base_target::close): Rewrite
14531 record_full_core_buf_list free logic.
14532
5b38f9c1
PW
145332019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14534
14535 * break-catch-syscall.c (print_one_catch_syscall): xfree
14536 the last text.
14537
66d91b39
JB
145382019-01-01 Joel Brobecker <brobecker@adacore.com>
14539
14540 * top.c (print_gdb_version): Update Copyright year in version
14541 message.
14542
42a4f53d
JB
145432019-01-01 Joel Brobecker <brobecker@adacore.com>
14544
14545 Update copyright year range in all GDB files.
14546
7e955d83 145472019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14548
5bbd631d 14549 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14550
5bbd631d 14551For older changes see ChangeLog-2018.
c906108c
SS
14552\f
14553Local Variables:
14554mode: change-log
14555left-margin: 8
14556fill-column: 74
14557version-control: never
57da7796 14558coding: utf-8
c906108c 14559End:
5bbd631d 14560