]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Replace bsearch with a std::lower_bound-based search
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35e65c49
CB
12019-10-29 Christian Biesinger <cbiesinger@google.com>
2
3 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
4 * dwarf2-frame.c (bsearch_fde_cmp): Update.
5 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
6 * gdbsupport/gdb_binary_search.h: New file.
7
ed2a2229
CB
82019-10-29 Christian Biesinger <cbiesinger@google.com>
9
10 * NEWS: Mention new --with-system-gdbinit-dir option.
11 * config.in: Regenerate.
12 * configure: Regenerate.
13 * configure.ac: Add new option --with-system-gdbinit-dir.
14 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
15 for a ".gdb" suffix.
16 * main.c (get_init_files): Change system_gdbinit argument to
17 a vector and return the files in SYSTEM_GDBINIT_DIR in
18 addition to SYSTEM_GDBINIT.
19 (captured_main_1): Update.
20 (print_gdb_help): Update.
21 * top.c (print_gdb_configuration): Also print the value of
22 SYSTEM_GDBINIT_DIR.
23
87f34879
CB
242019-10-28 Christian Biesinger <cbiesinger@google.com>
25
26 * gdbsupport/common-utils.h (startswith): Add an overloaded version
27 that takes gdb::string_view arguments.
28
30baf67b
TV
292019-10-26 Tom de Vries <tdevries@suse.de>
30
31 * aarch64-linux-tdep.c: Fix typos in comments.
32 * aarch64-tdep.c: Same.
33 * ada-lang.c: Same.
34 * amd64-nat.c: Same.
35 * arc-tdep.c: Same.
36 * arch/aarch64-insn.c: Same.
37 * block.c: Same.
38 * breakpoint.h: Same.
39 * btrace.h: Same.
40 * c-varobj.c: Same.
41 * cli/cli-decode.c: Same.
42 * cli/cli-script.c: Same.
43 * cli/cli-utils.h: Same.
44 * coff-pe-read.c: Same.
45 * coffread.c: Same.
46 * compile/compile-cplus-symbols.c: Same.
47 * compile/compile-object-run.c: Same.
48 * completer.c: Same.
49 * corelow.c: Same.
50 * cp-support.c: Same.
51 * demangle.c: Same.
52 * dwarf-index-write.c: Same.
53 * dwarf2-frame.c: Same.
54 * dwarf2-frame.h: Same.
55 * eval.c: Same.
56 * frame-base.h: Same.
57 * frame.h: Same.
58 * gdbcmd.h: Same.
59 * gdbtypes.h: Same.
60 * gnu-nat.c: Same.
61 * guile/scm-objfile.c: Same.
62 * i386-tdep.c: Same.
63 * i386-tdep.h: Same.
64 * infcall.c: Same.
65 * infcall.h: Same.
66 * linux-nat.c: Same.
67 * m68k-tdep.c: Same.
68 * macroexp.c: Same.
69 * memattr.c: Same.
70 * mi/mi-cmd-disas.c: Same.
71 * mi/mi-getopt.h: Same.
72 * mi/mi-main.c: Same.
73 * minsyms.c: Same.
74 * nat/aarch64-sve-linux-sigcontext.h: Same.
75 * objfiles.h: Same.
76 * ppc-linux-nat.c: Same.
77 * ppc-linux-tdep.c: Same.
78 * ppc-tdep.h: Same.
79 * progspace.h: Same.
80 * prologue-value.h: Same.
81 * python/py-evtregistry.c: Same.
82 * python/py-instruction.h: Same.
83 * record-btrace.c: Same.
84 * record-full.c: Same.
85 * remote.c: Same.
86 * rs6000-tdep.c: Same.
87 * ser-tcp.c: Same.
88 * sol-thread.c: Same.
89 * sparc-sol2-tdep.c: Same.
90 * sparc64-tdep.c: Same.
91 * stabsread.c: Same.
92 * symfile.c: Same.
93 * symtab.h: Same.
94 * target.c: Same.
95 * tracepoint.c: Same.
96 * tui/tui-data.h: Same.
97 * tui/tui-io.c: Same.
98 * tui/tui-win.c: Same.
99 * tui/tui.c: Same.
100 * unittests/rsp-low-selftests.c: Same.
101 * user-regs.h: Same.
102 * utils.c: Same.
103 * utils.h: Same.
104 * valarith.c: Same.
105 * valops.c: Same.
106 * valprint.c: Same.
107 * valprint.h: Same.
108 * value.c: Same.
109 * value.h: Same.
110 * varobj.c: Same.
111 * x86-nat.h: Same.
112 * xtensa-tdep.c: Same.
113
1834d45f
AT
1142019-10-25 Ali Tamur <tamur@google.com>
115
116 * charset.c (find_charset_names): Reflect API change.
117
5396ae17
CB
1182019-10-25 Christian Biesinger <cbiesinger@google.com>
119
120 * symtab.c (struct demangled_name_entry): Change demangled name
121 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
122 part of the struct anymore.
123 (symbol_set_names): No longer obstack allocate + copy the demangled
124 name, just store the allocated name from bfd.
125
93878f47
TT
1262019-10-25 Tom Tromey <tromey@adacore.com>
127
128 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
129 (bsearch_cie_cmp, add_cie): Remove.
130 (find_cie): Reimplement.
131 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
132 (dwarf2_build_frame_info): Update.
133
7b71fc97
L
1342019-10-24 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR gdb/25126
137 * symfile.c (reread_symbols): Call forget_cached_source_info to
138 clear the stale source cache.
139
cbb5a2ea
CB
1402019-10-24 Christian Biesinger <cbiesinger@google.com>
141
142 * configure: Regenerate.
143 * configure.ac: Remove code that sets python_has_threads.
144
71737c43
CB
1452019-10-24 Christian Biesinger <cbiesinger@google.com>
146
147 * config.in: Regenerate.
148 * configure: Regenerate.
149 * configure.ac: Remove the code that uses sed to get the python
150 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
151
33d569b7
AB
1522019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * python/py-progspace.c (pspy_block_for_pc): Return None for all
155 error paths.
156
f16f7b7c
TT
1572019-10-23 Tom Tromey <tom@tromey.com>
158
159 * arc-tdep.c: Remove ".." from include.
160 * frv-tdep.c: Remove ".." from include.
161 * lm32-tdep.c: Remove ".." from include.
162 * microblaze-tdep.c: Remove ".." from include.
163 * or1k-tdep.h: Remove ".." from include.
164 * s12z-tdep.c: Remove ".." from include.
165 * Makefile.in (OPCODES_CFLAGS): Add comment.
166 (TOP_CFLAGS): New variable.
167 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
168
6999161a
TT
1692019-10-23 Tom Tromey <tom@tromey.com>
170
171 * Makefile.in (READLINE_DIR): Update.
172
12e7c35e
TBA
1732019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 * infcall.c (call_function_by_hand_dummy): Fix the function
176 comment. And extract out a code section into...
177 (reserve_stack_space): ...this new function.
178
37055cad
TBA
1792019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
180
181 * infcall.c (value_arg_coerce): Remove an unused parameter.
182 (call_function_by_hand_dummy): Update the call to
183 'value_arg_coerce'.
184
39bcc47c
TBA
1852019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
186
187 * infcall.c (call_function_by_hand_dummy): Refactor.
188
bd888c0f
TBA
1892019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
190
191 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
192
c12d372d
TT
1932019-10-23 Tom Tromey <tom@tromey.com>
194
195 * configure: Rebuild.
196 * configure.ac: Don't check for sigprocmask.
197 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
198
4d0b984b
TT
1992019-10-23 Tom Tromey <tom@tromey.com>
200
201 * configure: Rebuild.
202 * acinclude.m4: Use m4_include, not sinclude.
203
7e785608
TV
2042019-10-23 Tom de Vries <tdevries@suse.de>
205
206 PR breakpoints/24687
207 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
208
403772ef
CB
2092019-10-22 Christian Biesinger <cbiesinger@google.com>
210
211 * symtab.c (struct demangled_name_entry) <language>: Change from
212 bitfield to regular variable.
213
3a494279
CB
2142019-10-22 Christian Biesinger <cbiesinger@google.com>
215
216 * symtab.c (struct demangled_name_entry): Add a constructor.
217 (free_demangled_name_entry): New function to call the destructor
218 for demangled_name_entry.
219 (create_demangled_names_hash): Pass free_demangled_name_entry to
220 htab_create_alloc.
221 (symbol_set_names): Call placement new for demangled_name_entry.
222 * utils.c: No longer include xxhash.h here, now that fast_hash
223 is inlined in the header.
224 * utils.h: Instead, include it here.
225
ccb1ba62
CB
2262019-10-22 Christian Biesinger <cbiesinger@google.com>
227
228 * Makefile.in: Link with libxxhash.
229 * config.in: Regenerate.
230 * configure: Regenerate.
231 * configure.ac: Search for libxxhash.
232 * utils.c (fast_hash): Use xxhash if present.
233
1a6ff1a9
CB
2342019-10-22 Christian Biesinger <cbiesinger@google.com>
235
236 * utils.h (fast_hash): New function.
237 * symtab.c (hash_demangled_name_entry): Call new function
238 fast_hash.
239
7bb43059
CB
2402019-10-22 Christian Biesinger <cbiesinger@google.com>
241
242 * symtab.c (struct demangled_name_entry): Change type of mangled
243 to gdb::string_view. Also adds a constructor that takes the
244 mangled name.
245 (hash_demangled_name_entry): Update.
246 (eq_demangled_name_entry): Update.
247 (free_demangled_name_entry): New function to call the destructor
248 now that this is not a POD anymore.
249 (create_demangled_names_hash): Pass free_demangled_name_entry to
250 htab_create_alloc.
251 (symbol_set_names): Update.
252
7ba99d21
AT
2532019-10-21 Ali Tamur <tamu@google.com>
254
255 * dwarf2read.c (dir_index): Change type.
256 (file_name_index): Likewise.
257 (line_header::include_dir_at): Change comment and implementation on
258 whether it is DWARF 5.
259 (line_header::is_valid_file_index): New function.
260 (line_header::file_name_at): Change comment and implementation on
261 whether it is DWARF 5.
262 (line_header::file_names): Change to private field renamed as
263 m_file_names and introduce a new accessor method.
264 (line_header::file_names_size): New method.
265 (line_header::include_dirs): Change to private field and rename as
266 m_include_dirs.
267 (dw2_get_file_names_reader): Define local var at a smaller scope and
268 reflect API change.
269 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
270 (process_structure_scope): Likewise.
271 (line_header::add_include_dir): Change message and reflect renaming.
272 (line_header::add_file_name): Likewise.
273 (read_formatted_entries): Handle DW_FORM_data16.
274 (dwarf_decode_line_header): Fix line header length calculation.
275 (psymtab_include_file_name): Change comment and API.
276 (lnp_state_machine::m_file): Update comment and reflect type change.
277 (lnp_state_machine::record_line): Reflect type change.
278 (dwarf_decode_lines): Reflect API change.
279 (file_file_name): Likewise.
280 (file_full_name): Likewise.
281
45f47c3a
AB
2822019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
285
e5f3c0e3
TT
2862019-10-21 Tom Tromey <tom@tromey.com>
287
288 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
289
a0a461e5
TT
2902019-10-21 Tom Tromey <tom@tromey.com>
291
292 * configure.ac (nm.h): Conditionally create nm.h link. Subst
293 NM_H. Use AC_CONFIG_LINKS.
294 * configure: Rebuild.
295 * Makefile.in (NM_H): New variable.
296 (generated_files): Add NM_H. Remove gcore.
297 (nm.h, stamp-nmh): New targets.
298
54d83b8d
TT
2992019-10-20 Tom Tromey <tom@tromey.com>
300
301 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
302 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
303 obsolete comment.
304 (put_objfile_before): Now static.
305
23771117
SM
3062019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * gdbsupport/common-utils.h (startswith): Change return type to
309 bool.
310
39ef2f62
CB
3112019-10-19 Christian Biesinger <cbiesinger@google.com>
312
313 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
314 * breakpoint.c (bp_locations_compare): Rename to...
315 (bp_location_is_less_than): ...this, and change to std::sort semantics.
316 (update_global_location_list): Use std::sort instead of qsort.
317 * buildsym.c (compare_line_numbers): Rename to...
318 (lte_is_less_than): ...this, and change to std::sort semantics.
319 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
320 instead of qsort.
321 * disasm.c (compare_lines): Rename to...
322 (line_is_less_than): ...this, and change to std::sort semantics.
323 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
324 of qsort.
325 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
326 (fde_is_less_than): ...this, and change to std::sort semantics.
327 (dwarf2_build_frame_info): Call std::sort instead of qsort.
328 * mdebugread.c (compare_blocks):
329 (block_is_less_than): ...this, and change to std::sort semantics.
330 (sort_blocks): Call std::sort instead of qsort.
331 * objfiles.c (qsort_cmp): Rename to...
332 (sort_cmp): ...this, and change to std::sort semantics.
333 (update_section_map): Call std::sort instead of qsort.
334 * remote.c (compare_pnums): Remove.
335 (map_regcache_remote_table): Call std::sort instead of qsort.
336 * utils.c (compare_positive_ints): Remove.
337 * utils.h (compare_positive_ints): Remove.
338 * xcoffread.c (compare_lte): Remove.
339 (arrange_linetable): Call std::sort instead of qsort.
340
f71433ee
SDJ
3412019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
342
343 * symfile.c (init_entry_point_info): Fix typo.
344 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
345
85102364
TV
3462019-10-18 Tom de Vries <tdevries@suse.de>
347
348 * aarch64-tdep.c: Fix typos in comments.
349 * ada-lang.c: Same.
350 * ada-tasks.c: Same.
351 * alpha-tdep.c: Same.
352 * alpha-tdep.h: Same.
353 * amd64-nat.c: Same.
354 * amd64-windows-tdep.c: Same.
355 * arc-tdep.c: Same.
356 * arc-tdep.h: Same.
357 * arch-utils.c: Same.
358 * arm-nbsd-tdep.c: Same.
359 * arm-tdep.c: Same.
360 * ax-gdb.c: Same.
361 * blockframe.c: Same.
362 * btrace.c: Same.
363 * c-varobj.c: Same.
364 * coff-pe-read.c: Same.
365 * coffread.c: Same.
366 * cris-tdep.c: Same.
367 * darwin-nat.c: Same.
368 * dbxread.c: Same.
369 * dcache.c: Same.
370 * disasm.c: Same.
371 * dtrace-probe.c: Same.
372 * dwarf-index-write.c: Same.
373 * dwarf2-frame-tailcall.c: Same.
374 * dwarf2-frame.c: Same.
375 * dwarf2read.c: Same.
376 * eval.c: Same.
377 * exceptions.c: Same.
378 * fbsd-tdep.c: Same.
379 * findvar.c: Same.
380 * frame.c: Same.
381 * frv-tdep.c: Same.
382 * gnu-v3-abi.c: Same.
383 * go32-nat.c: Same.
384 * h8300-tdep.c: Same.
385 * hppa-tdep.c: Same.
386 * i386-linux-tdep.c: Same.
387 * i386-tdep.c: Same.
388 * ia64-libunwind-tdep.c: Same.
389 * ia64-tdep.c: Same.
390 * infcmd.c: Same.
391 * infrun.c: Same.
392 * linespec.c: Same.
393 * linux-nat.c: Same.
394 * linux-thread-db.c: Same.
395 * machoread.c: Same.
396 * mdebugread.c: Same.
397 * mep-tdep.c: Same.
398 * mn10300-tdep.c: Same.
399 * namespace.c: Same.
400 * objfiles.c: Same.
401 * opencl-lang.c: Same.
402 * or1k-tdep.c: Same.
403 * osabi.c: Same.
404 * ppc-linux-nat.c: Same.
405 * ppc-linux-tdep.c: Same.
406 * ppc-sysv-tdep.c: Same.
407 * printcmd.c: Same.
408 * procfs.c: Same.
409 * record-btrace.c: Same.
410 * record-full.c: Same.
411 * remote-fileio.c: Same.
412 * remote.c: Same.
413 * rs6000-tdep.c: Same.
414 * s12z-tdep.c: Same.
415 * score-tdep.c: Same.
416 * ser-base.c: Same.
417 * ser-go32.c: Same.
418 * skip.c: Same.
419 * sol-thread.c: Same.
420 * solib-svr4.c: Same.
421 * solib.c: Same.
422 * source.c: Same.
423 * sparc-nat.c: Same.
424 * sparc-sol2-tdep.c: Same.
425 * sparc-tdep.c: Same.
426 * sparc64-tdep.c: Same.
427 * stabsread.c: Same.
428 * stack.c: Same.
429 * symfile.c: Same.
430 * symtab.c: Same.
431 * target-descriptions.c: Same.
432 * target-float.c: Same.
433 * thread.c: Same.
434 * utils.c: Same.
435 * valops.c: Same.
436 * valprint.c: Same.
437 * value.c: Same.
438 * varobj.c: Same.
439 * windows-nat.c: Same.
440 * xcoffread.c: Same.
441 * xstormy16-tdep.c: Same.
442 * xtensa-tdep.c: Same.
443
c5adaa19
TT
4442019-10-17 Tom Tromey <tromey@adacore.com>
445
446 * configure: Rebuild.
447 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
448 in AC_CONFIG_FILES invocation.
449 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
450 new-style config.status invocation.
451
405feb71
TV
4522019-10-17 Tom de Vries <tdevries@suse.de>
453
454 * arm-nbsd-nat.c: Fix typos in comments.
455 * arm-tdep.c: Same.
456 * darwin-nat-info.c: Same.
457 * dwarf2read.c: Same.
458 * elfread.c: Same.
459 * event-top.c: Same.
460 * findvar.c: Same.
461 * gdbtypes.c: Same.
462 * hppa-tdep.c: Same.
463 * i386-tdep.c: Same.
464 * jit.c: Same.
465 * main.c: Same.
466 * mdebugread.c: Same.
467 * moxie-tdep.c: Same.
468 * nto-procfs.c: Same.
469 * osabi.c: Same.
470 * ppc-linux-tdep.c: Same.
471 * remote.c: Same.
472 * riscv-tdep.c: Same.
473 * s390-tdep.c: Same.
474 * sh-tdep.c: Same.
475 * sparc-linux-tdep.c: Same.
476 * sparc-nat.c: Same.
477 * stack.c: Same.
478 * target-descriptions.c: Same.
479 * top.c: Same.
480 * varobj.c: Same.
481
befcd486
TT
4822019-10-16 Tom Tromey <tom@tromey.com>
483
484 * objfiles.h (struct objfile) <original_name>: Now const.
485
17bfe554
CB
4862019-10-16 Christian Biesinger <cbiesinger@google.com>
487
488 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
489 pass on to sigsetjmp's second argument.
490 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
491
950b7495
KS
4922019-10-16 Keith Seitz <keiths@redhat.com>
493
494 PR gdb/23567
495 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
496 sections whose size is greater than the file size.
497
ff371ec9
JW
4982019-10-16 Jim Wilson <jimw@sifive.com>
499
500 * riscv-tdep.c (riscv_gcc_target_options): New.
501 (riscv_gnu_triplet_regexp): New.
502 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
503 set_gdbarch_gnu_triplet_regexp.
504
fec4e896
CB
5052019-10-16 Christian Biesinger <cbiesinger@google.com>
506
507 * Makefile.in: Add xml-builtin.h.
508 * features/feature_to_c.sh: Add an include for xml-builtin.h
509 to ensure that the compiler checks that the types match.
510 * xml-builtin.h: New file.
511 * xml-support.c (fetch_xml_builtin): Add missing const.
512 * xml-support.h: Remove declaration of xml_builtins.
513
d10eccaa
TV
5142019-10-16 Tom de Vries <tdevries@suse.de>
515
516 PR tdep/25096
517 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
518 (amd64_classify_aggregate): ... here.
519 (amd64_classify_aggregate_field): Handled fiels of nested structs
520 recursively.
521
745ff14e
TV
5222019-10-16 Tom de Vries <tdevries@suse.de>
523
524 PR tdep/24104
525 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
526 that handles 'theclass'.
527
791b7405
AB
5282019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * linespec.c (decode_digits_ordinary): Update comment.
531 * make-target-delegates: No longer need to handle VEC case.
532 * memrange.c (normalize_mem_ranges): Update comment.
533 * namespace.c (add_using_directive): Update comment.
534 * objc-lang.c (uniquify_strings): Update comment.
535 * ppc-linux-nat.c (struct thread_points): Update comment.
536 * probe.h (find_probes_in_objfile): Update comment.
537 * target.h (enum flash_preserve_mode): Update comment.
538 * varobj.c (varobj_restrict_range): Update comment.
539 * varobj.h (varobj_list_children): Update comment.
540
0dc32745
AB
5412019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * Makefile.in: Remove references to vec.h and vec.c.
544 * aarch64-tdep.c: No longer include vec.h.
545 * ada-lang.c: Likewise.
546 * ada-lang.h: Likewise.
547 * arm-tdep.c: Likewise.
548 * ax.h: Likewise.
549 * breakpoint.h: Likewise.
550 * charset.c: Likewise.
551 * cp-support.h: Likewise.
552 * dtrace-probe.c: Likewise.
553 * dwarf2read.c: Likewise.
554 * extension.h: Likewise.
555 * gdb_bfd.c: Likewise.
556 * gdbsupport/gdb_vecs.h: Likewise.
557 * gdbsupport/vec.c: Remove.
558 * gdbsupport/vec.h: Remove.
559 * gdbthread.h: Likewise.
560 * guile/scm-type.c: Likewise.
561 * inline-frame.c: Likewise.
562 * machoread.c: Likewise.
563 * memattr.c: Likewise.
564 * memrange.h: Likewise.
565 * namespace.h: Likewise.
566 * nat/linux-btrace.h: Likewise.
567 * osdata.c: Likewise.
568 * parser-defs.h: Likewise.
569 * progspace.h: Likewise.
570 * python/py-type.c: Likewise.
571 * record-btrace.c: Likewise.
572 * rust-exp.y: Likewise.
573 * solib-target.c: Likewise.
574 * stap-probe.c: Likewise.
575 * target-descriptions.c: Likewise.
576 * target-memory.c: Likewise.
577 * target.h: Likewise.
578 * varobj.c: Likewise.
579 * varobj.h: Likewise.
580 * xml-support.h: Likewise.
581
ae640021
AB
5822019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
585 Update for new std::vector based implementation.
586 (process_psymtab_comp_unit_reader): Likewise.
587 (scan_partial_symbols): Likewise.
588 (recursively_compute_inclusions): Likewise.
589 (compute_compunit_symtab_includes): Likewise.
590 (process_imported_unit_die): Likewise.
591 (queue_and_load_dwo_tu): Likewise.
592 (follow_die_sig_1): Likewise.
593 * gdb/dwarf2read.h: Remove DEF_VEC_P.
594 (typedef dwarf2_per_cu_ptr): Remove.
595 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
596 function.
597 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
598 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
599 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
600 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
601 std::vector.
602
55dfc88f
TT
6032019-10-15 Tom Tromey <tromey@adacore.com>
604
605 * windows-nat.c (windows_nat_target::resume): Use %x when logging
606 TID.
607
96b49c5e
TT
6082019-10-15 Tom Tromey <tromey@adacore.com>
609
610 * windows-nat.c (windows_nat_target::fetch_registers)
611 (windows_nat_target::store_registers): Rename "pid" to "tid".
612
953cff56
TT
6132019-10-15 Tom Tromey <tromey@adacore.com>
614
615 * gdbarch.h, gdbarch.c: Rebuild.
616 * gdbarch.sh (gcc_target_options): Change return type to
617 std::string.
618 * compile/compile.c (get_args): Update.
619 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
620 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
621 std::string.
622 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
623 std::string.
624 * arch-utils.c (default_gcc_target_options): Return std::string.
625 * arch-utils.h (default_gcc_target_options): Return std::string.
626 * s390-tdep.c (s390_gcc_target_options): Return std::string.
627
81e6b8eb
CB
6282019-10-15 Christian Biesinger <cbiesinger@google.com>
629
630 * breakpoint.c (breakpoint_chain): Make static.
631 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
632 of accessing breakpoint_chain.
633
95da600f
CB
6342019-10-15 Christian Biesinger <cbiesinger@google.com>
635
636 * breakpoint.c (iterate_over_breakpoints): Change function pointer
637 to a gdb::function_view and return value to bool.
638 * breakpoint.h (iterate_over_breakpoints): Likewise.
639 * dummy-frame.c (pop_dummy_frame_bpt): Update.
640 (pop_dummy_frame): Update.
641 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
642 (gdbscm_breakpoints): Update.
643 * python/py-breakpoint.c (build_bp_list): Update.
644 (gdbpy_breakpoints): Update.
645 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
646 Update.
647 (bpfinishpy_handle_stop): Update.
648 (bpfinishpy_handle_exit): Update.
649 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
650 (svr4_update_solib_event_breakpoints): Update.
651
ba18312d
AA
6522019-10-15 Andreas Arnez <arnez@linux.ibm.com>
653
654 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
655 when unwrapping single-field structs.
656
6acc1a0b
SM
6572019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * dwarf2read.c: Remove includes.
660
284782de
SM
6612019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
662
663 * ui-out.c (ui_out::call_do_message): Silence
664 -Wformat-nonliteral warning.
665
073bbbb0
SM
6662019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * breakpoint.c: Remove some includes: continuations.h, skip.h,
669 mi/mi-main.h, readline/readline.h, readline/history.h. Add
670 include: readline/tilde.h.
671
7b9a15e1
CB
6722019-10-12 Christian Biesinger <cbiesinger@google.com>
673
674 * remote.c (remote_target::get_trace_status): Remove declaration of
675 trace_regblock_size.
676
cc8dee1f
CB
6772019-10-12 Christian Biesinger <cbiesinger@google.com>
678
679 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
680 (show_user): Remove declaration of cmdlist.
681 * cli/cli-cmds.h (max_user_call_depth): Declare.
682 * cli/cli-script.c (execute_user_command): Remove declaration
683 of max_user_call_depth.
684
a83d4ef6
JW
6852019-10-11 Jim Wilson <jimw@sifive.com>
686
5f93c5a6
JW
687 * gdbsupport/print-utils.h (pulongest): Fix comment.
688 (plongest): Likewise.
689 (phex): Add missing comment, mention leading zeros.
690 (phex_nz): Add mention of no leading zeros to comment.
691
a83d4ef6
JW
692 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
693 plongest instead of unsigned long long cast.
694
26344e0c
CB
6952019-10-10 Christian Biesinger <cbiesinger@google.com>
696
697 * main.c (captured_main_1): Include gdbtk.h and remove declarations
698 for external_editor_command and gdbtk_test.
699
c2c440a9
CB
7002019-10-10 Christian Biesinger <cbiesinger@google.com>
701
702 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
703 * varobj.c (varobjdebug): Move comment to...
704 * varobj.h (varobjdebug): ...here, and declare.
705
a31bff9d
TT
7062019-10-09 Tom Tromey <tom@tromey.com>
707
708 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
709 erase_data_content.
710
7523da63
TT
7112019-10-09 Tom Tromey <tom@tromey.com>
712
713 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
714 * tui/tui-stack.c (tui_locator_window::rerender): Update.
715 * tui/tui-command.c (tui_cmd_window::resize)
716 (tui_refresh_cmd_win): Update.
717 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
718 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
719 * tui/tui-data.c (~tui_gen_win_info): Remove.
720 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
721 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
722 (tui_redisplay_readline, tui_mld_flush)
723 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
724 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
725 (tui_data_window::erase_data_content)
726 (tui_data_item_window::rerender)
727 (tui_data_item_window::refresh_window): Update.
728 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
729 (box_win, tui_gen_win_info::make_window)
730 (tui_gen_win_info::make_visible): Update.
731 (tui_delete_win): Remove.
732 * tui/tui-winsource.c
733 (tui_source_window_base::do_erase_source_content): Update.
734 (tui_show_source_line, tui_source_window_base::update_tab_width)
735 (tui_source_window_base::update_exec_info): Update.
736 * tui/tui-data.h (struct curses_deleter): New.
737 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
738 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
739
a7798e7f
TT
7402019-10-09 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
743
5c45899e
TT
7442019-10-09 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
747 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
748
6d7fd9aa
TT
7492019-10-09 Tom Tromey <tom@tromey.com>
750
751 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
752 window height directly.
753 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
754 declare.
755 * tui/tui-layout.c (tui_default_win_height): Remove.
756 (tui_default_win_viewport_height): Remove.
757
d2dd1084
TT
7582019-10-09 Tom Tromey <tom@tromey.com>
759
760 * tui/tui.h: Remove comments.
761
cff32449
TV
7622019-10-09 Tom de Vries <tdevries@suse.de>
763
764 * python/lib/gdb/printer/bound_registers.py: Use
765 '^builtin_type_bound128' as regexp argument for
766 add_builtin_pretty_printer.
767
6a25e8a2
CB
7682019-10-09 Christian Biesinger <cbiesinger@google.com>
769
770 * guile/guile.c (guile_extension_script_ops): Remove forward
771 declaration and mark as static.
772 (guile_script_ops): Likewise.
773 (extension_language_guile): Move further down in the file so
774 it can reference the definitions for guile_{extension_,}script_ops.
775
6d9d6da4
AA
7762019-10-09 Andreas Arnez <arnez@linux.ibm.com>
777
778 * s390-tdep.c (390_process_record): Handle new arch13 instructions
779 except SORTL, DFLTCC, and KDSA.
780
3abea05d
TT
7812019-10-08 Tom Tromey <tromey@adacore.com>
782
783 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
784 (struct safe_symbol_file_add_args): Remove.
785
dde996e2
TT
7862019-10-08 Tom Tromey <tromey@adacore.com>
787
788 * windows-nat.c: Don't include buildsym-legacy.h.
789
cd6fdaa1
TT
7902019-10-08 Tom Tromey <tromey@adacore.com>
791
792 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
793
79bb1944
CB
7942019-10-08 Christian Biesinger <cbiesinger@google.com>
795
796 * gdbtypes.c (overload_debug): Move comment to header.
797 * gdbtypes.h (overload_debug): Declare.
798 * valops.c: Remove declaration of overload_debug, instead
799 include gdbtypes.h.
800
34916edc
CB
8012019-10-08 Christian Biesinger <cbiesinger@google.com>
802
803 * language.c (show_language_command): Pass lang_frame_mismatch_warn
804 through _().
805 (lang_frame_mismatch_warn): Make const, mark with N_(), and
806 move comment...
807 * language.h (lang_frame_mismatch_warn): ... here. Also add
808 declaration.
809 * top.c (lang_frame_mismatch_warn): Remove declaration.
810 (check_frame_language_change): Pass lang_frame_mismatch_warn
811 through _().
812
bad5c026
CB
8132019-10-07 Christian Biesinger <cbiesinger@google.com>
814
815 * c-lang.h (vtbl_ptr_name): Declare.
816 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
817 it from the header.
818 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
819
51f1fdc3
CB
8202019-10-07 Christian Biesinger <cbiesinger@google.com>
821
822 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
823 gdb_static_assert.
824
30d1f018
WP
8252019-10-07 Weimin Pan <weimin.pan@oracle.com>
826
606813d5
WP
827 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
828 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
829 * ctfread.c: New file.
830 * ctfread.h: New file.
831 * elfread.c: Include ctfread.h.
832 (struct elfinfo text_p): New member ctfsect.
833 (elf_locate_sections): Mark CTF section.
834 (elf_symfile_read): Call elfctf_build_psymtabs.
835 * Makefile.in (LIBCTF): Add.
836 (CLIBS): Use it.
837 (CDEPS): Likewise.
838 (DIST): Add ctfread.c.
606813d5
WP
839
8402019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 * ctfread.c (struct nextfield): Renamed to ...
843 (struct ctf_nextfield): ... this.
844 (struct field_info): Renamed to ...
845 (strut ctf_field_info): ... this.
846 (attach_fields_to_type): Update for renamed structures.
847 (ctf_add_member_cb): Likewise.
848 (ctf_add_enum_member_cb): Likewise.
849 (process_struct_members): Likewise.
850 (process_enum_type): Likewise.
30d1f018 851
518fe38c
WP
8522019-10-07 Weimin Pan <weimin.pan@oracle.com>
853
854 * tracectf.h: Rename, was ctf.h.
855 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
856 * tracefile.c: Likewise.
857 * tracepoint.c: Remove unused include ctf.h.
858 * mi/mi-main.c: Likewise.
859 * Makefile.in Replace ctf.c with tracectf.c.
860
225f296a
JB
8612019-10-06 Joel Brobecker <brobecker@adacore.com>
862
863 * version.in: Change version number to "9.0.50.DATE-git".
864
77c2dba3
TT
8652019-10-03 Tom Tromey <tom@tromey.com>
866
867 PR rust/24976:
868 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
869
179aed7f
AB
8702019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
873 cp_search_name_hash.
874 * NEWS: Add entry about nested function support.
875
0a4b0913
AB
8762019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
877 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
880 for nested static variables when searchin VAR_DOMAIN.
881 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
882 global scope, update comment.
883 (add_partial_subprogram): Call add_partial_subprogram recursively
884 for nested subroutines when processinng Fortran.
885 (load_partial_dies): Process the child entities of a subprogram
886 when processing Fortran.
887 (partial_die_parent_scope): Handle building scope
888 for Fortran nested functions.
889 (process_die): Record that nested functions have a scope.
890 (new_symbol): Always record Fortran subprograms on the global
891 symbol list.
892 (determine_prefix): How to build the prefix for Fortran
893 subprograms.
894
d8c06f22
AB
8952019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
898 have just sent the thread a SIGSTOP and are waiting for it to
899 arrive.
900
a8b3b8e9
AB
9012019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * btrace.c (btrace_add_pc): Remove whitespace before the template
904 parameter in 'std::vector <...>'.
905 (parse_xml_btrace_block): Likewise.
906 (btrace_maint_decode_pt): Likewise.
907 (btrace_maint_update_packets): Likewise.
908 (btrace_maint_print_packets): Likewise.
909 * btrace.h (struct btrace_maint_info): Likewise.
910 * dwarf2read.c (struct type_unit_group): Likewise.
911 (build_type_psymtabs_reader): Likewise.
912 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
913 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
914 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
915
4d825eab
TV
9162019-10-03 Tom de Vries <tdevries@suse.de>
917
918 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
919 the first line of the help text for set/show style metadata.
920
80fd2826
TT
9212019-10-02 Tom Tromey <tromey@adacore.com>
922
923 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
924 * gdbsupport/common-inferior.c: New file.
925 * infcmd.c (startup_with_shell): Don't define.
926 * nat/fork-inferior.h (startup_with_shell): Don't declare.
927 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
928 * inferior.h (startup_with_shell): Don't declare.
929
70054538
CB
9302019-10-02 Christian Biesinger <cbiesinger@google.com>
931
932 * gdbsupport/gdb_assert.h: Include errors.h.
933 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
934
37f6a7f4
TT
9352019-10-02 Tom Tromey <tromey@adacore.com>
936
937 * NEWS: Add $_ada_exception entry.
938 * ada-lang.c (struct ada_catchpoint): Add constructor.
939 <m_kind>: New member.
940 (allocate_location_exception, re_set_exception): Remove
941 "ex" parameter.
942 (should_stop_exception): Compute $_ada_exception.
943 (check_status_exception, print_it_exception)
944 (print_one_exception, print_mention_exception): Remove
945 "ex" parameter.
946 (allocate_location_catch_exception, re_set_catch_exception)
947 (check_status_exception, print_it_catch_exception)
948 (print_one_catch_exception, print_mention_catch_exception)
949 (print_recreate_catch_exception)
950 (allocate_location_catch_exception_unhandled)
951 (re_set_catch_exception_unhandled)
952 (check_status_exception, print_it_catch_exception_unhandled)
953 (print_one_catch_exception_unhandled)
954 (print_mention_catch_exception_unhandled)
955 (print_recreate_catch_exception_unhandled)
956 (allocate_location_catch_assert, re_set_catch_assert)
957 (check_status_assert, print_it_catch_assert)
958 (print_one_catch_assert, print_mention_catch_assert)
959 (print_recreate_catch_assert)
960 (allocate_location_catch_handlers, re_set_catch_handlers)
961 (check_status_handlers, print_it_catch_handlers)
962 (print_one_catch_handlers, print_mention_catch_handlers)
963 (print_recreate_catch_handlers): Remove.
964 (create_ada_exception_catchpoint): Update.
965 (initialize_ada_catchpoint_ops): Update.
966
fccf9de1
TT
9672019-10-02 Tom Tromey <tromey@adacore.com>
968
969 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
970 (create_excep_cond_exprs): Simplify exception string computation.
971 (ada_exception_catchpoint_cond_string): Likewise.
972
4b610737
TT
9732019-10-02 Tom Tromey <tromey@adacore.com>
974
975 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
976 * ada-lang.c (lesseq_defined_than): Handle
977 LOC_STATIC.
978 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
979 parameter.
980 (dwarf2_has_info): Likewise.
981 (new_symbol): Set maybe_copied on symbol when
982 appropriate.
983 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
984 parameter.
985 <can_copy>: New member.
986 * elfread.c (record_minimal_symbol): Set maybe_copied
987 on symbol when appropriate.
988 (elf_symfile_read): Update call to dwarf2_has_info.
989 * minsyms.c (lookup_minimal_symbol_linkage): New
990 function.
991 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
992 * symtab.c (get_symbol_address, get_msymbol_address):
993 New functions.
994 * symtab.h (get_symbol_address, get_msymbol_address):
995 Declare.
996 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
997 maybe_copied.
998 (struct symbol, struct minimal_symbol) <maybe_copied>:
999 New member.
1000
1dd58850
TT
10012019-10-02 Tom Tromey <tromey@adacore.com>
1002
1003 * source.c (struct current_source_location): New.
1004 (current_source_key): New global.
1005 (current_source_symtab, current_source_line)
1006 (current_source_pspace): Remove.
1007 (get_source_location): New function.
1008 (get_current_source_symtab_and_line)
1009 (set_default_source_symtab_and_line)
1010 (set_current_source_symtab_and_line)
1011 (clear_current_source_symtab_and_line, select_source_symtab)
1012 (info_source_command, print_source_lines_base)
1013 (info_line_command, search_command_helper, _initialize_source):
1014 Update.
1015
5c281dbb
TT
10162019-10-02 Tom Tromey <tromey@adacore.com>
1017
1018 * source.c (select_source_symtab): Don't call
1019 decode_line_with_current_source.
1020
d3d32391
AB
10212019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * symtab.c (lookup_global_symbol): Search global block.
1024
38583298
TT
10252019-10-02 Tom Tromey <tromey@adacore.com>
1026
1027 * coffread.c (process_coff_symbol): Update.
1028 * dwarf2read.c (var_decode_location, new_symbol): Update.
1029 * mdebugread.c (parse_symbol): Update.
1030 * objfiles.c (relocate_one_symbol): Update.
1031 * stabsread.c (define_symbol, fix_common_block)
1032 (scan_file_globals): Update.
1033 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1034 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1035 * xcoffread.c (process_xcoff_symbol): Update.
1036
9344c18f
AA
10372019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1038
1039 * MAINTAINERS: Update my email address.
1040
df07e2c7
AB
10412019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1044 std::vector.
1045 (build_type_psymtabs_reader): Update for std::vector.
1046 (build_type_psymtab_dependencies): Likewise.
1047 * dwarf2read.h: Remove use of DEF_VEC_P.
1048 (typedef sig_type_ptr): Delete.
1049
554ac434
AB
10502019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1053 to std::vector.
1054 (btrace_maint_decode_pt): Likewise, and move allocation of the
1055 vector outside of the loop.
1056 (btrace_maint_update_packets): Update to handle change from VEC to
1057 std::vector.
1058 (btrace_maint_print_packets): Likewise.
1059 (maint_info_btrace_cmd): Likewise.
1060 * btrace.h: Remove use of DEF_VEC_O.
1061 (typedef btrace_pt_packet_s): Delete.
1062 (struct btrace_maint_info) <packets>: Change fromm VEC to
1063 std::vector.
1064 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1065
46f29a9a
AB
10662019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1069 make accesses into the vector constant references.
1070 (btrace_add_pc): Update for std::vector.
1071 (btrace_stitch_bts): Likewise.
1072 (parse_xml_btrace_block): Likewise.
1073 (btrace_maint_update_packets): Likewise.
1074 (btrace_maint_print_packets): Likewise.
1075 (maint_info_btrace_cmd): Likewise.
1076 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1077 std::vector.
1078 (btrace_data::empty): Likewise.
1079 (btrace_data_append): Likewise.
1080 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1081 (typedef btrace_block_s): Delete.
1082 (struct btrace_block): Add constructor.
1083 (struct btrace_data_bts) <blocks>: Change to std::vector.
1084 * nat/linux-btrace.c (perf_event_read_bts): Update for
1085 std::vector.
1086 (linux_read_bts): Likewise.
1087
d770d56f
TT
10882019-10-01 Tom Tromey <tom@tromey.com>
1089
1090 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1091
9d636d67
TT
10922019-10-01 Tom Tromey <tom@tromey.com>
1093
1094 * stack.c (print_frame, info_frame_command_core): Use
1095 styled_string.
1096 * linux-thread-db.c (try_thread_db_load_1)
1097 (try_thread_db_load_from_pdir_1): Use styled_string.
1098 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1099 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1100 (maybe_print_unsupported_script_warning)
1101 (maybe_print_script_not_found_warning): Use styled_string.
1102 * ada-lang.c (user_select_syms): Use styled_string.
1103
7f6aba03
TT
11042019-10-01 Tom Tromey <tom@tromey.com>
1105
1106 * p-lang.c (pascal_printstr): Use metadata style.
1107 * value.c (show_convenience): Use metadata style.
1108 * valprint.c (valprint_check_validity, val_print_optimized_out)
1109 (val_print_not_saved, val_print_unavailable)
1110 (val_print_invalid_address, generic_val_print, val_print)
1111 (value_check_printable, val_print_array_elements): Use metadata
1112 style.
1113 * ui-out.h (class ui_out) <field_fmt>: New overload.
1114 <do_field_fmt>: Add style parameter.
1115 * ui-out.c (ui_out::field_fmt): New overload.
1116 * typeprint.c (type_print_unknown_return_type)
1117 (val_print_not_allocated, val_print_not_associated): Use metadata
1118 style.
1119 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1120 parameter.
1121 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1122 * tracepoint.c (tvariables_info_1): Use metadata style.
1123 * stack.c (print_frame_arg, print_frame_info, print_frame)
1124 (info_frame_command_core): Use metadata style.
1125 * skip.c (info_skip_command): Use metadata style.
1126 * rust-lang.c (rust_print_enum): Use metadata style.
1127 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1128 metadata style.
1129 * python/py-framefilter.c (py_print_single_arg): Use metadata
1130 style.
1131 * printcmd.c (do_one_display, print_variable_and_value): Use
1132 metadata style.
1133 * p-valprint.c (pascal_val_print)
1134 (pascal_object_print_value_fields): Use metadata style.
1135 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1136 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1137 parameter.
1138 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1139 * m2-valprint.c (m2_print_long_set): Use metadata style.
1140 * m2-typeprint.c (m2_print_type): Use metadata style.
1141 * infcmd.c (print_return_value_1): Use metadata style.
1142 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1143 * f-valprint.c (info_common_command_for_block): Use metadata
1144 style.
1145 * f-typeprint.c (f_type_print_base): Use metadata style.
1146 * expprint.c (print_subexp_standard): Use metadata style.
1147 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1148 * cli/cli-style.h (class cli_style_option): Add constructor.
1149 (metadata_style): Declare.
1150 * cli/cli-style.c (metadata_style): New global.
1151 (_initialize_cli_style): Register metadata style.
1152 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1153 parameter.
1154 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1155 * c-typeprint.c (c_type_print_base_struct_union)
1156 (c_type_print_base_1): Use metadata style.
1157 * breakpoint.c (watchpoint_value_print)
1158 (print_one_breakpoint_location): Use metadata style.
1159 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1160 style.
1161 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1162 style.
1163 * ada-valprint.c (val_print_packed_array_elements, printstr)
1164 (print_field_values, ada_val_print_ref, ada_val_print): Use
1165 metadata style.
1166 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1167 style.
1168 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1169 style.
1170 * ada-lang.c (user_select_syms): Use metadata style.
1171
14309bb6
TT
11722019-10-01 Tom Tromey <tom@tromey.com>
1173
1174 * cli/cli-cmds.c (pwd_command): Style output.
1175
6a831f06
PA
11762019-10-01 Pedro Alves <palves@redhat.com>
1177 Tom Tromey <tom@tromey.com>
1178
1179 * symtab.c (print_symbol_info): Use %ps.
1180 (print_msymbol_info): Use %ps.
1181 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1182 * printcmd.c (print_variable_and_value): Use %ps.
1183 * macrocmd.c (show_pp_source_pos): Use %ps.
1184 * infrun.c (print_exited_reason): Use ui_out::message.
1185 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1186 (describe_other_breakpoints): Use ui_out::message and new
1187 formats.
1188 (say_where): Use new formats.
1189 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1190 and new formats.
1191
2a3c1174
PA
11922019-10-01 Pedro Alves <palves@redhat.com>
1193 Tom Tromey <tom@tromey.com>
1194
1195 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1196 (test_gdb_formats): New function.
1197 (run_tests): Call it.
1198 (test_format_specifier): Update.
1199 * utils.h (fputs_filtered): Update comment.
1200 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1201 (fputs_styled_unfiltered): Declare.
1202 * utils.c (fputs_styled_unfiltered): New function.
1203 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1204 (vfprintf_filtered): Update.
1205 (vfprintf_unfiltered, vprintf_filtered): Update.
1206 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1207 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1208 disallow_ui_out_field>: New constants.
1209 (enum class field_kind): New.
1210 (struct base_field_s, struct signed_field_s): New.
1211 (signed_field): New function.
1212 (struct string_field_s): New.
1213 (string_field): New function.
1214 (struct styled_string_s): New.
1215 (styled_string): New function.
1216 (class ui_out) <message>: Add comment.
1217 <vmessage, call_do_message>: New methods.
1218 <do_message>: Add style parameter.
1219 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1220 methods.
1221 (ui_out::message): Rewrite.
1222 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1223 parameter.
1224 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1225 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1226 gdb_extensions parameter.
1227 (class format_piece): Add parameter to constructor.
1228 (n_int_args): New field.
1229 * gdbsupport/format.c (format_pieces::format_pieces): Add
1230 gdb_extensions parameter. Handle '*'.
1231 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1232 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1233 vfprintf_styled_no_gdbfmt.
1234 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1235 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1236 unfiltered output.
1237 * ui-style.h (struct ui_file_style) <ptr>: New method.
1238
0dfe5bfb
TT
12392019-10-01 Tom Tromey <tom@tromey.com>
1240
1241 * unittests/format_pieces-selftests.c: Update. Add final format.
1242 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1243 empty literal pieces.
1244
e43b10e1
TT
12452019-10-01 Tom Tromey <tom@tromey.com>
1246
1247 * ui-out.h (enum class ui_out_style_kind): Remove.
1248 (class ui_out) <field_string, field_stsream, do_field_string>:
1249 Change type of "style".
1250 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1251 (ui_out::field_string): Update.
1252 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1253 of "style".
1254 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1255 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1256 * stack.c (print_frame_arg, print_frame_info, print_frame):
1257 Update.
1258 * source.c (print_source_lines_base): Update.
1259 * solib.c (info_sharedlibrary_command): Update.
1260 * skip.c (info_skip_command): Update.
1261 * record-btrace.c (btrace_call_history_src_line)
1262 (btrace_call_history): Update.
1263 * python/py-framefilter.c (py_print_frame): Update.
1264 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1265 "style".
1266 * mi/mi-out.c (mi_ui_out::do_table_header)
1267 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1268 (mi_ui_out::do_field_string): Update.
1269 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1270 Update.
1271 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1272 "style".
1273 * cli-out.c (cli_ui_out::do_table_header)
1274 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1275 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1276 (cli_ui_out::do_field_fmt): Update.
1277 * breakpoint.c (print_breakpoint_location): Update.
1278 (update_static_tracepoint): Update.
1279
cd7c32c3
PW
12802019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1281
1282 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1283 conversion of gdb_datadir.
1284 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1285 remove not needed c_str ().
1286
8fe0f950
AT
12872019-09-30 Ali Tamur <tamur@google.com>
1288
1289 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1290 (dwarf2_string_attr): Likewise.
1291
5f48f8f3
AT
12922019-09-30 Ali Tamur <tamur@google.com>
1293
1294 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1295 (process_full_type_unit): Likewise.
1296 (dump_die_shallow): Likewise.
1297 (cu_debug_loc_section): Likewise.
1298
6fb08628
CB
12992019-09-28 Christian Biesinger <cbiesinger@google.com>
1300
1301 * minsyms.c (compare_minimal_symbols): Rename to...
1302 (minimal_symbol_is_less_than): ...this, and adjust to STL
1303 conventions (return bool, take arguments as references)
1304 (minimal_symbol_reader::install): Call std::sort instead
1305 of qsort.
1306
c7ee338a
CB
13072019-09-29 Christian Biesinger <cbiesinger@google.com>
1308
1309 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1310 hash and why.
1311 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1312 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1313
703a86c2
SM
13142019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1317 * psympriv.h (add_psymbol_to_list): Move comment here and update
1318 it.
1319
0df0352a
TV
13202019-09-29 Tom de Vries <tdevries@suse.de>
1321
1322 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1323 Use $tmpdir/$(basename "$output_file").dwz instead of
1324 "${output_file}.dwz".
1325
ad75efa6
SM
13262019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 PR gdb/25045
1329 * hppa-linux-nat.c: Include gdbarch.h.
1330
ececd218
CB
13312019-09-26 Christian Biesinger <cbiesinger@google.com>
1332
1333 * blockframe.c (find_pc_partial_function): Change return type to bool.
1334 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1335 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1336 (stub_gnu_ifunc_resolve_name): Likewise.
1337 * symtab.c (compare_filenames_for_search): Likewise.
1338 (compare_glob_filenames_for_search): Likewise.
1339 (matching_obj_sections): Likewise.
1340 (symbol_matches_domain): Likewise.
1341 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1342 (find_line_pc): Change return type to bool.
1343 (find_line_pc_range): Likewise.
1344 (producer_is_realview): Likewise.
1345 * symtab.h (symbol_matches_domain): Likewise.
1346 (find_pc_partial_function): Likewise.
1347 (find_pc_line_pc_range): Likewise.
1348 (in_gnu_ifunc_stub): Likewise.
1349 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1350 (find_line_pc): Likewise.
1351 (find_line_pc_range): Likewise.
1352 (matching_obj_sections): Likewise.
1353 (find_line_symtab): Change out parameter to bool.
1354 (producer_is_realview): Change return type to bool.
1355 (compare_filenames_for_search): Likewise.
1356 (compare_glob_filenames_for_search): Likewise.
1357
27a900b8
TT
13582019-09-26 Tom Tromey <tom@tromey.com>
1359
1360 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1361 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1362 * gdb_usleep.h: Remove.
1363 * gdb_usleep.c: Remove.
1364 * utils.c: Don't include gdb_usleep.h.
1365
5d63b30a
TT
13662019-09-26 Tom Tromey <tromey@adacore.com>
1367
1368 * python/py-type.c (type_to_type_object): Call check_typedef
1369 for stub types.
1370
12904d37
TT
13712019-09-26 Tom Tromey <tom@tromey.com>
1372
1373 * utils.h (initialize_utils): Don't declare.
1374 * top.c (gdb_init): Don't call initialize_utils.
1375 * utils.c (initialize_utils): Remove. Move contents...
1376 (_initialize_utils): ... here.
1377
858f25f0
TT
13782019-09-25 Tom Tromey <tom@tromey.com>
1379
1380 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1381 * utils.h (make_hex_string): Don't declare.
1382 * utils.c (make_hex_string): Remove.
1383
3d435220
TV
13842019-09-24 Tom de Vries <tdevries@suse.de>
1385
1386 PR gdb/23815
1387 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1388 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1389
ddd44b70
DD
13902019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1391
1392 * NEWS: Mention new simulator port for PRU.
1393
f945dedf
CB
13942019-09-23 Christian Biesinger <cbiesinger@google.com>
1395
1396 * ada-exp.y (write_object_remaining): Update.
1397 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1398 and eliminate the static buffer.
1399 (ada_decode_symbol): Update.
1400 (ada_la_decode): Update.
1401 (ada_sniff_from_mangled_name): Update.
1402 (is_valid_name_for_wild_match): Update.
1403 (ada_lookup_name_info::matches): Update and simplify.
1404 (name_matches_regex): Update.
1405 (ada_add_global_exceptions): Update.
1406 * ada-lang.h (ada_decode): Update signature.
1407 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1408 * dwarf-index-write.c (debug_names::insert): Update.
1409
7ab78ccb
SM
14102019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1413 formatting.
1414
9252448b
SM
14152019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1418 Change "nonzero" to "true" in documentation.
1419
626ca2c0
CB
14202019-09-20 Christian Biesinger <cbiesinger@google.com>
1421
1422 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1423 (_initialize_darwin_solib): Don't set
1424 darwin_so_ops.lookup_lib_global_symbol.
1425 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1426 set_gdbarch_iterate_over_objfiles_in_search_order.
1427 (elf_lookup_lib_symbol): Rename to...
1428 (svr4_iterate_over_objfiles_in_search_order): this, and update
1429 to iterate semantics.
1430 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1431 * solib.c (solib_global_lookup): Remove.
1432 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1433 (solib_global_lookup): Remove.
1434 * symtab.c (lookup_global_or_static_symbol): Remove call to
1435 solib_global_lookup.
1436
5a3a0d63
JB
14372019-09-20 Joel Brobecker <brobecker@adacore.com>
1438
1439 * NEWS: Move entries about default MI version now being
1440 version 3, and about the GDB/MI fix for multi-location
1441 breakpoints to the "since GDB 8.3" section.
1442
ffea1427
JB
14432019-09-20 Joel Brobecker <brobecker@adacore.com>
1444
1445 GDB 8.3.1 released.
1446
abf516c6
UW
14472019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1448
1449 * NEWS: Mention that Cell/B.E. debugging support was removed.
1450 * MAINTAINERS: Remove spu target.
1451
1452 * config/djgpp/fnchange.lst: Remove entries for removed files.
1453
1454 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1455 spu-multiarch.o, and spu-tdep.o.
1456 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1457 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1458 spu-multiarch.c, and spu-tdep.c.
1459 * spu-linux-nat.c: Remove file.
1460 * spu-multiarch.c: Remove file.
1461 * spu-tdep.c: Remove file.
1462 * spu-tdep.h: Remove file.
1463 * solib-spu.c: Remove file.
1464 * solib-spu.h: Remove file.
1465
1466 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1467 * configure.nat (spu-linux): Remove.
1468 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1469 solib-multiarch.o from gdb_target_obs.
1470 (spu*-*-*): Remove.
1471
1472 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1473 feature flag.
1474 (ppc_linux_no_features): Update.
1475 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1476 Cell/B.E. support.
1477 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1478 (tdesc_powerpc_cell64l): Likewise.
1479 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1480 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1481 Cell/B.E. support.
1482 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1483 Do not include "features/rs6000/powerpc-cell32l.c" or
1484 "features/rs6000/powerpc-cell64l.c".
1485 (ppc_linux_spu_section): Remove.
1486 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1487 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1488 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1489 (ppc_linux_spe_context_lookup): Remove.
1490 (ppc_linux_spe_context_inferior_created): Remove.
1491 (ppc_linux_spe_context_solib_loaded): Remove.
1492 (ppc_linux_spe_context_solib_unloaded): Remove.
1493 (ppc_linux_spe_context): Remove.
1494 (struct ppu2spu_cache): Remove.
1495 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1496 (struct ppu2spu_data): Remove.
1497 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1498 ppu2spu_unwind): Remove.
1499 (ppc_linux_init_abi): Remove Cell/B.E. support.
1500 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1501
1502 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1503 (rs6000/powerpc-cell64l-expedite): Likewise
1504 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1505 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1506 rs6000/powerpc-cell64l.xml.
1507 * features/rs6000/powerpc-cell32l.xml: Remove.
1508 * features/rs6000/powerpc-cell64l.xml: Likewise.
1509 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1510 * features/rs6000/powerpc-cell64l.c: Likewise.
1511 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1512 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1513 * regformats/reg-spu.dat: Remove.
1514
1515 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1516 * corelow.c (struct spuid_list): Remove.
1517 (add_to_spuid_list): Remove.
1518 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1519 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1520 (remote_protocol_features): Remove associated entries.
1521 (_initialize_remote): No longer initialize them.
1522 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1523 * linux-nat.c (SPUFS_MAGIC): Remove.
1524 (linux_proc_xfer_spu): Remove.
1525 (spu_enumerate_spu_ids): Remove.
1526 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1527 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1528 (linux_make_corefile_notes): No longer call it.
1529
1530 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1531 (cooked_write_test): Likewise.
1532
78e8cb91
TT
15332019-09-20 Tom Tromey <tom@tromey.com>
1534
1535 * NEWS: Mention case-sensitivity of TUI commands.
1536 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1537 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1538 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1539
f074b67e
TT
15402019-09-20 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-source.c (tui_source_window::set_contents): Use
1543 make_unique_xstrdup.
1544 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1545 make_unique_xstrdup.
1546
63c4bf19
TT
15472019-09-20 Tom Tromey <tom@tromey.com>
1548
1549 * tui/tui-data.c: Remove separator comments.
1550 * tui/tui-layout.c: Remove separator comments.
1551 * tui/tui-win.c: Remove separator comments.
1552 * tui/tui-wingeneral.c: Remove separator comments.
1553
43df9b2f
TT
15542019-09-20 Tom Tromey <tom@tromey.com>
1555
1556 * tui/tui.h (strcat_to_buf): Don't declare.
1557 * tui/tui.c (strcat_to_buf): Remove.
1558
7226433c
TT
15592019-09-20 Tom Tromey <tom@tromey.com>
1560
1561 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1562 from "fullname".
1563 * tui/tui-source.c (tui_source_window::set_contents)
1564 (tui_source_window::location_matches_p)
1565 (tui_source_window::maybe_update): Update.
1566
80df3337
TT
15672019-09-20 Tom Tromey <tom@tromey.com>
1568
1569 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1570 Update.
1571 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1572 prefix.
1573 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1574 (tui_data_window::line_from_reg_element_no)
1575 (tui_data_window::first_reg_element_no_inline)
1576 (tui_data_window::show_registers)
1577 (tui_data_window::show_register_group)
1578 (tui_data_window::display_registers_from)
1579 (tui_data_window::display_registers_from_line)
1580 (tui_data_window::first_data_item_displayed)
1581 (tui_data_window::delete_data_content_windows)
1582 (tui_data_window::erase_data_content)
1583 (tui_data_window::do_scroll_vertical)
1584 (tui_data_window::refresh_window)
1585 (tui_data_window::check_register_values): Update.
1586
9923f347
TT
15872019-09-20 Tom Tromey <tom@tromey.com>
1588
1589 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1590 (struct tui_locator_window) <full_name, proc_name>: Now
1591 std::string.
1592 * tui/tui-stack.c (tui_locator_window::make_status_line)
1593 (tui_locator_window::set_locator_fullname)
1594 (tui_locator_window::set_locator_info): Update.
1595 * tui/tui-source.c (tui_source_window::set_contents)
1596 (tui_source_window::showing_source_p): Update.
1597
b76251ab
TT
15982019-09-20 Tom Tromey <tom@tromey.com>
1599
1600 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1601 Don't call tui_locator_win_info_ptr.
1602
0891be08
TT
16032019-09-20 Tom Tromey <tom@tromey.com>
1604
1605 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1606
1b935acf
TT
16072019-09-20 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1610 height for locator.
1611 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1612 * tui/tui-layout.c (show_source_disasm_command, show_data)
1613 (show_source_or_disasm_and_command): Use 1 as height for locator.
1614
9abd8a65
TT
16152019-09-20 Tom Tromey <tom@tromey.com>
1616
1617 * tui/tui.c (tui_enable): Update.
1618 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1619 Update.
1620 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1621 Update.
1622 * tui/tui-data.c (win_resized): Now bool.
1623 (tui_win_resized): Return bool.
1624 (tui_set_win_resized_to): Accept a bool.
1625
b5457826
TT
16262019-09-20 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1629 Change type of "refresh_values_only".
1630 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1631 type of "refresh_values_only".
1632
6b915f7d
TT
16332019-09-20 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1636 std::string.
1637 (tui_disassemble): Add "pos" parameter.
1638 (tui_disasm_window::set_contents): Simplify.
1639
2ad52f6f
TT
16402019-09-20 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-winsource.h (struct tui_source_window_base)
1643 <show_source_content>: Now private.
1644 * tui/tui-winsource.c
1645 (tui_source_window_base::show_source_content): Don't handle empty
1646 content case.
1647
b3b1bde6
TT
16482019-09-20 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-layout.c (show_source_disasm_command)
1651 (show_source_or_disasm_and_command): Don't call
1652 show_source_content.
1653
71a25ed2
TT
16542019-09-20 Tom Tromey <tom@tromey.com>
1655
1656 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1657 Declare.
1658 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1659 from tui_make_status_line.
1660 (tui_locator_window::rerender): Update.
1661
f8532154
TT
16622019-09-20 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1665 (tui_locator_window::rerender): Update.
1666
2d81b349
TT
16672019-09-20 Tom Tromey <tom@tromey.com>
1668
1669 * tui/tui-winsource.h (struct tui_source_window_base)
1670 <~tui_source_window_base>: Don't declare.
1671 <fullname>: Remove.
1672 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1673 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1674 member.
1675 * tui/tui-source.c (tui_source_window::set_contents): Update.
1676 (tui_source_window::location_matches_p)
1677 (tui_source_window::maybe_update): Update.
1678
f14bec58
TT
16792019-09-20 Tom Tromey <tom@tromey.com>
1680
1681 * tui/tui-winsource.h (~tui_source_element): Remove.
1682 (tui_source_element): Update.
1683 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1684 * tui/tui-winsource.c (tui_show_source_line): Update.
1685 * tui/tui-source.c (tui_source_window::set_contents): Update.
1686 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1687
78d5933a
TT
16882019-09-20 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1691 declare.
1692 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1693 tui_clear_source_windows_detail.
1694 * tui/tui-winsource.h (struct tui_source_window_base)
1695 <clear_detail>: Don't declare.
1696 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1697 Remove.
1698 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1699
d4207696
TT
17002019-09-20 Tom Tromey <tromey@adacore.com>
1701
1702 PR ada/24919:
1703 * block.c (contained_in): Fix final return value.
1704
00f93c44
AM
17052019-09-20 Alan Modra <amodra@gmail.com>
1706
1707 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1708 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1709 (read_indirect_string_from_dwz): Use bfd accessor.
1710 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1711 * machoread.c (macho_symfile_read_all_oso): Likewise.
1712 * solib.c (solib_bfd_open): Likewise.
1713
e4153ae6
CB
17142019-09-19 Christian Biesinger <cbiesinger@google.com>
1715
1716 * eval.c: Move declaration of overload_resolution to...
1717 * value.h: ...here.
1718
c7ae7675
CB
17192019-09-19 Christian Biesinger <cbiesinger@google.com>
1720
1721 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1722 * arm-linux-tdep.c: Likewise.
1723 * arm-nbsd-nat.c: Likewise.
1724 * arm-tdep.h: Declare arm_apcs_32.
1725 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1726
e86f08d2
CB
17272019-09-19 Christian Biesinger <cbiesinger@google.com>
1728
1729 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1730 * dwarf2read.h: Declare dwarf_always_disassemble.
1731
f64e2f40
TV
17322019-09-19 Tom de Vries <tdevries@suse.de>
1733
1734 PR gdb/25009
1735 * source-cache.c (source_cache::ensure): Catch exception thrown during
1736 construction of the highlighter.
1737
fd361982
AM
17382019-09-18 Alan Modra <amodra@gmail.com>
1739
1740 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1741 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1742 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1743 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1744 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1745 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1746 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1747 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1748 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1749 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1750 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1751 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1752 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1753 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1754 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1755 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1756 * mi/mi-interp.c: Update throughout for bfd section macro and
1757 function changes.
1758 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1759 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1760
11061048
TT
17612019-09-18 Tom Tromey <tom@tromey.com>
1762
1763 * NEWS: Add entry.
1764 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1765 call rl_initialize.
1766 (tui_enable): Do not call rl_initialize.
1767
7a27b85f
CG
17682019-09-18 Christian Groessler <chris@groessler.org>
1769
1770 * alpha-linux-nat.c: Include gdbarch.h.
1771
f64eea3a
SM
17722019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1773
1774 * ui-file.c: Include cli/cli-style.h.
1775 (term_cli_styling): Remove cli_styling declaration.
1776
e6f7f6d1
AM
17772019-09-18 Alan Modra <amodra@gmail.com>
1778
1779 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1780 to bfd_asymbol_section.
1781
1d38e9d1
AM
17822019-09-18 Alan Modra <amodra@gmail.com>
1783
1784 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1785 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1786 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1787
90d92a63
AM
17882019-09-18 Alan Modra <amodra@gmail.com>
1789
1790 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1791 * spu-linux-nat.c (spu_bfd_open): Likewise.
1792
a3d181d2
CB
17932019-09-18 Christian Biesinger <cbiesinger@google.com>
1794
1795 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1796 to bool to match definition in dwarf2read.c.
1797
491144b5
CB
17982019-09-17 Christian Biesinger <cbiesinger@google.com>
1799
1800 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1801 (print_signatures): Likewise.
1802 (trust_pad_over_xvs): Likewise.
1803 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1804 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1805 * arm-linux-nat.c (arm_apcs_32): Likewise.
1806 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1807 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1808 * arm-tdep.c (arm_debug): Likewise.
1809 (arm_apcs_32): Likewise.
1810 * auto-load.c (debug_auto_load): Likewise.
1811 (auto_load_gdb_scripts): Likewise.
1812 (global_auto_load): Likewise.
1813 (auto_load_local_gdbinit): Likewise.
1814 (auto_load_local_gdbinit_loaded): Likewise.
1815 * auto-load.h (global_auto_load): Likewise.
1816 (auto_load_local_gdbinit): Likewise.
1817 (auto_load_local_gdbinit_loaded): Likewise.
1818 * breakpoint.c (disconnected_dprintf): Likewise.
1819 (breakpoint_proceeded): Likewise.
1820 (automatic_hardware_breakpoints): Likewise.
1821 (always_inserted_mode): Likewise.
1822 (target_exact_watchpoints): Likewise.
1823 (_initialize_breakpoint): Update.
1824 * breakpoint.h (target_exact_watchpoints): Change to bool.
1825 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1826 * cli/cli-cmds.c (trace_commands): Likewise.
1827 * cli/cli-cmds.h (trace_commands): Likewise.
1828 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1829 to bool*.
1830 * cli/cli-logging.c (logging_overwrite): Change to bool.
1831 (logging_redirect): Likewise.
1832 (debug_redirect): Likewise.
1833 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1834 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1835 to bool.
1836 <boolean_option_def>: Update.
1837 (struct flag_option_def): Change default type of Context to bool
1838 from int.
1839 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1840 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1841 (get_setshow_command_value_string): Likewise.
1842 * cli/cli-style.c (cli_styling): Change to bool.
1843 (source_styling): Likewise.
1844 * cli/cli-style.h (source_styling): Likewise.
1845 (cli_styling): Likewise.
1846 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1847 to bool.
1848 * command.h (var_types): Update comment.
1849 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1850 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1851 bool.
1852 (debug_compile_cplus_scopes): Likewise.
1853 * compile/compile-internal.h (compile_debug): Likewise.
1854 * compile/compile.c (compile_debug): Likewise.
1855 (struct compile_options) <raw>: Likewise.
1856 * cp-support.c (catch_demangler_crashes): Likewise.
1857 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1858 (usr_cmd_cris_dwarf2_cfi): Likewise.
1859 * csky-tdep.c (csky_debug): Likewise.
1860 * darwin-nat.c (enable_mach_exceptions): Likewise.
1861 * dcache.c (dcache_enabled_p): Likewise.
1862 * defs.h (info_verbose): Likewise.
1863 * demangle.c (demangle): Likewise.
1864 (asm_demangle): Likewise.
1865 * dwarf-index-cache.c (debug_index_cache): Likewise.
1866 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1867 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1868 * dwarf2read.c (check_physname): Likewise.
1869 (use_deprecated_index_sections): Likewise.
1870 (dwarf_always_disassemble): Likewise.
1871 * eval.c (overload_resolution): Likewise.
1872 * event-top.c (set_editing_cmd_var): Likewise.
1873 (exec_done_display_p): Likewise.
1874 * event-top.h (set_editing_cmd_var): Likewise.
1875 (exec_done_display_p): Likewise.
1876 * exec.c (write_files): Likewise.
1877 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1878 (debug_fbsd_nat): Likewise.
1879 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1880 Likewise.
1881 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1882 <backtrace_past_entry> Likewise.
1883 * gdb-demangle.h (demangle): Likewise.
1884 (asm_demangle): Likewise.
1885 * gdb_bfd.c (bfd_sharing): Likewise.
1886 * gdbcore.h (write_files): Likewise.
1887 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1888 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1889 * gdbthread.h (print_thread_events): Likewise.
1890 * gdbtypes.c (opaque_type_resolution): Likewise.
1891 (strict_type_checking): Likewise.
1892 * gnu-nat.c (gnu_debug_flag): Likewise.
1893 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1894 * guile/scm-param.c (pascm_variable): Add boolval.
1895 (add_setshow_generic): Update.
1896 (pascm_param_value): Update.
1897 (pascm_set_param_value_x): Update.
1898 * hppa-tdep.c (hppa_debug): Change to bool..
1899 * infcall.c (may_call_functions_p): Likewise.
1900 (coerce_float_to_double_p): Likewise.
1901 (unwind_on_signal_p): Likewise.
1902 (unwind_on_terminating_exception_p): Likewise.
1903 * infcmd.c (startup_with_shell): Likewise.
1904 * inferior.c (print_inferior_events): Likewise.
1905 * inferior.h (startup_with_shell): Likewise.
1906 (print_inferior_events): Likewise.
1907 * infrun.c (step_stop_if_no_debug): Likewise.
1908 (detach_fork): Likewise.
1909 (debug_displaced): Likewise.
1910 (disable_randomization): Likewise.
1911 (non_stop): Likewise.
1912 (non_stop_1): Likewise.
1913 (observer_mode): Likewise.
1914 (observer_mode_1): Likewise.
1915 (set_observer_mode): Update.
1916 (sched_multi): Change to bool.
1917 * infrun.h (debug_displaced): Likewise.
1918 (sched_multi): Likewise.
1919 (step_stop_if_no_debug): Likewise.
1920 (non_stop): Likewise.
1921 (disable_randomization): Likewise.
1922 * linux-tdep.c (use_coredump_filter): Likewise.
1923 (dump_excluded_mappings): Likewise.
1924 * linux-thread-db.c (auto_load_thread_db): Likewise.
1925 (check_thread_db_on_load): Likewise.
1926 * main.c (captured_main_1): Update.
1927 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1928 xx2_opt, boolean_opt>: Change to bool.
1929 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1930 * maint.c (maintenance_profile_p): Likewise.
1931 (per_command_time): Likewise.
1932 (per_command_space): Likewise.
1933 (per_command_symtab): Likewise.
1934 * memattr.c (inaccessible_by_default): Likewise.
1935 * mi/mi-main.c (mi_async): Likewise.
1936 (mi_async_1): Likewise.
1937 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1938 * nat/fork-inferior.h (startup_with_shell): Likewise.
1939 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1940 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1941 * nios2-tdep.c (nios2_debug): Likewise.
1942 * or1k-tdep.c (or1k_debug): Likewise.
1943 * parse.c (parser_debug): Likewise.
1944 * parser-defs.h (parser_debug): Likewise.
1945 * printcmd.c (print_symbol_filename): Likewise.
1946 * proc-api.c (procfs_trace): Likewise.
1947 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1948 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1949 (set_parameter_value): Update.
1950 (add_setshow_generic): Update.
1951 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1952 to bool*.
1953 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1954 int*.
1955 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1956 * record-btrace.c (record_btrace_target::store_registers): Update.
1957 * record-full.c (record_full_memory_query): Change to bool.
1958 (record_full_stop_at_limit): Likewise.
1959 * record-full.h (record_full_memory_query): Likewise.
1960 * remote-notif.c (notif_debug): Likewise.
1961 * remote-notif.h (notif_debug): Likewise.
1962 * remote.c (use_range_stepping): Likewise.
1963 (interrupt_on_connect): Likewise.
1964 (remote_break): Likewise.
1965 * ser-tcp.c (tcp_auto_retry): Likewise.
1966 * ser-unix.c (serial_hwflow): Likewise.
1967 * skip.c (debug_skip): Likewise.
1968 * solib-aix.c (solib_aix_debug): Likewise.
1969 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1970 (spu_auto_flush_cache_p): Likewise.
1971 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1972 Likewise.
1973 (struct info_print_options) <quiet>: Likewise.
1974 * symfile-debug.c (debug_symfile): Likewise.
1975 * symfile.c (auto_solib_add): Likewise.
1976 (separate_debug_file_debug): Likewise.
1977 * symfile.h (auto_solib_add): Likewise.
1978 (separate_debug_file_debug): Likewise.
1979 * symtab.c (basenames_may_differ): Likewise.
1980 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1981 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1982 (struct info_types_options) <quiet>: Likewise.
1983 * symtab.h (demangle): Likewise.
1984 (basenames_may_differ): Likewise.
1985 * target-dcache.c (stack_cache_enabled_1): Likewise.
1986 (code_cache_enabled_1): Likewise.
1987 * target.c (trust_readonly): Likewise.
1988 (may_write_registers): Likewise.
1989 (may_write_memory): Likewise.
1990 (may_insert_breakpoints): Likewise.
1991 (may_insert_tracepoints): Likewise.
1992 (may_insert_fast_tracepoints): Likewise.
1993 (may_stop): Likewise.
1994 (auto_connect_native_target): Likewise.
1995 (target_stop_and_wait): Update.
1996 (target_async_permitted): Change to bool.
1997 (target_async_permitted_1): Likewise.
1998 (may_write_registers_1): Likewise.
1999 (may_write_memory_1): Likewise.
2000 (may_insert_breakpoints_1): Likewise.
2001 (may_insert_tracepoints_1): Likewise.
2002 (may_insert_fast_tracepoints_1): Likewise.
2003 (may_stop_1): Likewise.
2004 * target.h (target_async_permitted): Likewise.
2005 (may_write_registers): Likewise.
2006 (may_write_memory): Likewise.
2007 (may_insert_breakpoints): Likewise.
2008 (may_insert_tracepoints): Likewise.
2009 (may_insert_fast_tracepoints): Likewise.
2010 (may_stop): Likewise.
2011 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2012 (make_thread_apply_all_options_def_group): Change argument from int*
2013 to bool*.
2014 (thread_apply_all_command): Update.
2015 (print_thread_events): Change to bool.
2016 * top.c (confirm): Likewise.
2017 (command_editing_p): Likewise.
2018 (history_expansion_p): Likewise.
2019 (write_history_p): Likewise.
2020 (info_verbose): Likewise.
2021 * top.h (confirm): Likewise.
2022 (history_expansion_p): Likewise.
2023 * tracepoint.c (disconnected_tracing): Likewise.
2024 (circular_trace_buffer): Likewise.
2025 * typeprint.c (print_methods): Likewise.
2026 (print_typedefs): Likewise.
2027 * utils.c (debug_timestamp): Likewise.
2028 (sevenbit_strings): Likewise.
2029 (pagination_enabled): Likewise.
2030 * utils.h (sevenbit_strings): Likewise.
2031 (pagination_enabled): Likewise.
2032 * valops.c (overload_resolution): Likewise.
2033 * valprint.h (struct value_print_options) <prettyformat_arrays,
2034 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2035 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2036 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2037 Likewise.
2038 * windows-nat.c (new_console): Likewise.
2039 (cygwin_exceptions): Likewise.
2040 (new_group): Likewise.
2041 (debug_exec): Likewise.
2042 (debug_events): Likewise.
2043 (debug_memory): Likewise.
2044 (debug_exceptions): Likewise.
2045 (useshell): Likewise.
2046 * windows-tdep.c (maint_display_all_tib): Likewise.
2047 * xml-support.c (debug_xml): Likewise.
2048
f1b620e9
MG
20492019-09-17 Mike Gulick <mgulick@mathworks.com>
2050
2051 * source.c (prepare_path_for_appending): New function.
2052 (openp): Make use of new function.
2053 (find_and_open_source): Search for the compilation directory and
2054 source file as a relative path beneath the directory search path.
2055
67f3ed6a
AB
20562019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * source-cache.c (source_cache::get_line_charpos): Catch
2059 exceptions and return false, this matches the behaviour documented
2060 in the header file.
2061
74332189
JB
20622019-09-17 Joel Brobecker <brobecker@adacore.com>
2063
2064 * ada-tasks.c (info_task): Remove quoting of the task's name.
2065
f2f24aa9
CB
20662019-09-16 Christian Biesinger <cbiesinger@google.com>
2067
2068 * symfile.c (auto_solib_add): Replace comment with a reference
2069 to the header file.
2070
6a062a93
CB
20712019-09-14 Christian Biesinger <cbiesinger@google.com>
2072
2073 * NEWS: Mention that gdb can now be compiled with Python 3
2074 on Windows.
2075
ec6c8338
AB
20762019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * maint.c (maint_print_section_data::maint_print_section_data):
2079 Force use of 'float log10 (float)' by casting the argument to
2080 float.
2081
aa17805f
AB
20822019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * maint.c: Add 'cmath' include.
2085 (struct maint_print_section_data): New structure.
2086 (print_section_index): New function.
2087 (print_bfd_section_info): Add header comment, small whitespace
2088 cleanup, and update to call new print_section_index function.
2089 (print_objfile_section_info): Likewise.
2090 (maint_obj_section_from_bfd_section): New function.
2091 (print_bfd_section_info_maybe_relocated): New function.
2092 (maintenance_info_sections): Add header comment, always use
2093 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2094
3dd9bb46
AB
20952019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2098 inner scope, add check that the objfile has psymtabs before
2099 checking psymtabs_addrmap.
2100 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2101
4993045d
PW
21022019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2103
2104 * NEWS: Announce that Ada task names are now shown at more places,
2105 and between quotes (except in info task output).
2106 * gdb/ada-tasks.c (task_to_str): New function.
2107 (display_current_task_id): Call task_to_str.
2108 (task_command_1): Likewise.
2109 (print_ada_task_info): In non-mi mode, Properly align headers and data
2110 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2111
7a289707
RO
21122019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2113
2114 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2115 prstatus.pr_lwp.pr_info instead of making it up.
2116
f2aec7f6
CB
21172019-09-11 Christian Biesinger <cbiesinger@google.com>
2118
2119 * auto-load.c (auto_load_expand_dir_vars): Update.
2120 * defs.h (gdb_datadir): Change to std::string.
2121 (python_libdir): Likewise.
2122 (relocate_gdb_directory): Change return type to std::string.
2123 * guile/guile.c (gdbscm_data_directory): Update.
2124 (initialize_scheme_side): Update.
2125 * jit.c (jit_reader_dir): Change to std::string.
2126 (jit_reader_load_command): Update.
2127 * main.c (gdb_datadir): Change to std::string.
2128 (python_libdir): Likewise.
2129 (set_gdb_data_directory): Update.
2130 (relocate_path): Change to return std::string.
2131 (relocate_gdb_directory): Change to return std::string.
2132 (relocate_gdbinit_path_maybe_in_datadir): Update.
2133 (captured_main_1): Update.
2134 * python/python.c (do_start_initialization): Update.
2135 * top.c (show_gdb_datadir): Update.
2136 * xml-syscall.c (xml_init_syscalls_info): Update.
2137 (init_syscalls_info): Update.
2138
9224a013
CB
21392019-09-11 Christian Biesinger <cbiesinger@google.com>
2140
2141 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2142 out of get_init_files.
2143 (get_init_files): Update.
2144
f48cd836
CB
21452019-09-11 Christian Biesinger <cbiesinger@google.com>
2146
2147 * main.c (get_init_files): Change to use std::string.
2148 (captured_main_1): Update.
2149 (print_gdb_help): Update.
2150
9cab7ecd
AT
21512019-09-11 Ali Tamur <tamur@google.com>
2152
2153 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2154 implementation.
2155
67547d89
CB
21562019-09-11 Christian Biesinger <cbiesinger@google.com>
2157
2158 * dbxread.c (read_dbx_symtab): Update.
2159 * dwarf2read.c (load_partial_dies): Update.
2160 * mdebugread.c (parse_partial_symbols): Update.
2161 (handle_psymbol_enumerators): Update.
2162 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2163 * psymtab.c (add_psymbol_to_bcache): Likewise.
2164 (add_psymbol_to_list): Likewise.
2165 * symtab.c (symbol_set_names): Likewise.
2166 * symtab.h (symbol_set_names): Likewise.
2167 * xcoffread.c (scan_xcoff_symtab): Update.
2168
64b2d4a0
TT
21692019-09-11 Tom Tromey <tom@tromey.com>
2170
2171 * symfile-mem.c (symbol_file_add_from_memory): Use
2172 bfd_set_filename.
2173 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2174 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2175
3b00ef10
TT
21762019-09-10 Tom Tromey <tromey@adacore.com>
2177
2178 * dwarf-index-write.c (write_psymbols): Extend error message.
2179 (debug_names::insert): Add Ada code.
2180 (debug_names::write_psymbols): Remove Ada check.
2181 (debug_names) <m_string_obstack>: New member.
2182 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2183 (gdb_index_symbol_name_matcher::matches): Remove.
2184 (mapped_index_base::find_name_components_bounds): Add "lang"
2185 parameter.
2186 (mapped_index_base::build_name_components): Also split names
2187 according to Ada syntax.
2188 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2189 type of "match_callback".
2190 (check_match, check_find_bounds_finds)
2191 (dw2_expand_symtabs_matching): Update.
2192 (dw2_debug_names_iterator): Add new constructor.
2193 (dw2_debug_names_map_matching_symbols): New function.
2194 (dw2_debug_names_expand_symtabs_matching): Update.
2195 (dwarf2_debug_names_functions): Use
2196 dw2_debug_names_map_matching_symbols.
2197
aa391654
TT
21982019-09-10 Tom Tromey <tromey@adacore.com>
2199
2200 * dwarf2read.c (dw2_get_file_names_reader): Add the
2201 CU's file name to the results.
2202
b054970d
TT
22032019-09-10 Tom Tromey <tromey@adacore.com>
2204
2205 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2206 map_matching_symbols. Update.
2207 * dwarf2read.c (dw2_map_matching_symbols): Update.
2208 * psymtab.c (match_partial_symbol): Change type; update.
2209 (psym_map_matching_symbols): Likewise.
2210 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2211 type; update.
2212 * symfile.h (struct quick_symbol_functions)
2213 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2214 Remove "match".
2215
6a3dbf1b
TT
22162019-09-10 Tom Tromey <tromey@adacore.com>
2217
2218 * psymtab.c (map_block): Remove.
2219 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2220 * symtab.c (iterate_over_symbols_terminated): New function.
2221 * symtab.c (iterate_over_symbols_terminated): Declare.
2222
6969f124
TT
22232019-09-10 Tom Tromey <tromey@adacore.com>
2224
2225 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2226 * language.h (struct language_defn) <la_iterate_over_symbols>:
2227 Return bool.
2228 * symtab.c (iterate_over_symbols): Return bool.
2229 * symtab.h (iterate_over_symbols): Return bool.
2230
199b4314
TT
22312019-09-10 Tom Tromey <tromey@adacore.com>
2232
2233 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2234 (add_nonlocal_symbols): Update.
2235 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2236 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2237 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2238 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2239 Change type of "callback". Remove "data".
2240
a084a2a6
AT
2241
22422019-09-09 Ali Tamur <tamur@google.com>
2243
2244 * dwarf2read.c (comp_unit_head): Update comment.
2245 (dwarf2_dwo_name): New function declaration.
2246 (dwarf_unit_type_name): New function declaration.
2247 (read_comp_unit_head): Add support for new compilation units,
2248 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2249 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2250 (currently named as "signature") in their header. Also clarify error
2251 messages.
2252 (lookup_dwo_id): New function. Returns the dwo id of the given
2253 compile unit.
2254 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2255 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2256 functions.
2257 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2258 (dwarf2_dwo_name): Get the dwo name if present.
2259 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2260 purposes.
2261
25a2915e
TT
22622019-09-09 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2265
e4df0874
PW
22662019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2267
2268 * python/python.c (do_start_initialization): Make progname_copy static,
2269 to avoid a leak report.
2270
8634b462
TT
22712019-09-08 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2274
c7f839cb
SM
22752019-09-07 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2278 Change type to gdb::optional<block_enum>.
2279 (dw2_symtab_iter_init): Change block_index parameter type
2280 to gdb::optional<block_enum>.
2281 (dw2_lookup_symbol): Change block_index parameter
2282 type to block_enum.c
2283 (dw2_debug_names_lookup_symbol): Likewise.
2284 * psymtab.c (psym_lookup_symbol): Likewise.
2285 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2286 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2287 Likewise.
2288
ead0e69a
CB
22892019-09-06 Christian Biesinger <cbiesinger@google.com>
2290
2291 * defs.h (relocate_gdb_directory): Change int to bool in
2292 signature and rename flag to relocatable.
2293 * main.c (relocate_path): Likewise.
2294 (relocate_gdb_directory): Likewise.
2295
b16c44de
AM
22962019-09-06 Alan Modra <amodra@gmail.com>
2297
2298 * coffread.c (coff_symfile_read): Constify filename variable.
2299 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2300 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2301 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2302 * solib.c (reload_shared_libraries_1): Likewise.
2303 * symfile.c (reread_symbols): Likewise.
2304 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2305 * solib-darwin.c (darwin_bfd_open): Likewise.
2306 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2307
06ff036e
AB
23082019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2311 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2312
4e962e74
TT
23132019-09-03 Tom Tromey <tromey@adacore.com>
2314
2315 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2316 types.
2317 (has_negatives): Unbias a range type bound.
2318 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2319 * gdbtypes.c (operator==): Handle new field.
2320 (create_range_type): Add "bias" parameter.
2321 (create_static_range_type, resolve_dynamic_range): Update.
2322 * gdbtypes.h (struct range_bounds) <bias>: New member.
2323 (create_range_type): Add bias parameter.
2324 * printcmd.c (print_scalar_formatted): Unbias range types.
2325 * value.c (unpack_long): Unbias range types.
2326 (pack_long): Bias range types.
2327
d90b8f26
AH
23282019-09-02 Alan Hayward <alan.hayward@arm.com>
2329
2330 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2331 probe arguments.
2332
fe01123e
AH
23332019-09-02 Alan Hayward <alan.hayward@arm.com>
2334
2335 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2336 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2337 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2338 (compile_probe_arg): Likewise.
2339 * probe.h (get_argument_count): Likewise.
2340 * solib-svr4.c (solib_event_probe_action): Likewise.
2341 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2342
e661ef01
AH
23432019-09-02 Alan Hayward <alan.hayward@arm.com>
2344
2345 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2346 code to here...
2347 (svr4_create_solib_event_breakpoints): ...from here.
2348
47a536d9
SDJ
23492019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2350
2351 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2352 suffix from warning message.
2353
d6a00eba
TT
23542019-08-30 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <refresh_all>: Don't declare.
2358 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2359 Remove.
2360 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2361 tui_show_locator_content.
2362 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2363 declare.
2364 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2365 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2366 declare.
2367
55b2657b
TT
23682019-08-30 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2371
12a8555a
TT
23722019-08-30 Tom Tromey <tom@tromey.com>
2373
2374 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2375 Remove unnecessary forward declarations.
2376
900ac242
TT
23772019-08-30 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2380 rerender.
2381 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2382 tui_show_locator_content.
2383
99ab33fb
TT
23842019-08-30 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2387 (tui_locator_window::rerender): Rewrite using body of previous
2388 tui_show_locator_content.
2389
e594a5d1
TT
23902019-08-30 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2393 set_locator_fullname>: New methods.
2394 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2395 Rename from tui_set_locator_fullname.
2396 (tui_locator_window::set_locator_info): Rename from
2397 tui_set_locator_info. Return bool.
2398 (tui_update_locator_fullname, tui_show_frame_info): Update.
2399
715bb467
TT
24002019-08-30 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2403
772f3f03
TT
24042019-08-30 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2407 call touchwin.
2408
108e13ab
TT
24092019-08-30 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui-wingeneral.c (box_win): Assume win_info and
2412 win_info->handle cannot be NULL.
2413
cdaa6eb4
TT
24142019-08-30 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2417 refresh_window>: Declare.
2418 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2419 resize.
2420 (tui_data_item_window::rerender): Rename from
2421 tui_display_register.
2422 (tui_data_item_window::refresh_window): New method.
2423 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2424 no-op.
2425
89df7f90
TT
24262019-08-30 Tom Tromey <tom@tromey.com>
2427
2428 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2429 regs_column_count, current_group>: Move later. Now private.
2430 <get_current_group>: New method.
2431 * tui/tui-regs.c (tui_reg_command): Update.
2432 * tui/tui-layout.c (tui_set_layout): Update.
2433
1bf2866a
TT
24342019-08-30 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2437 (tui_data_window::rerender): Don't call
2438 check_and_display_highlight_if_needed.
2439 (tui_data_window::refresh_all): Remove call to
2440 erase_data_content.
2441
0670413d
TT
24422019-08-30 Tom Tromey <tom@tromey.com>
2443
2444 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2445 (tui_data_window::display_registers_from)
2446 (tui_data_window::display_reg_element_at_line)
2447 (tui_data_window::display_registers_from_line): Remove checks of
2448 "empty".
2449
18bb55c7
TT
24502019-08-30 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2453 Don't declare.
2454 * tui/tui-regs.c (tui_data_window::show_registers): Call
2455 rerender.
2456 (tui_data_window::rerender): Rename from display_all_data.
2457 (tui_data_window::rerender): Remove old implementation.
2458
1f6d2f10
TT
24592019-08-30 Tom Tromey <tom@tromey.com>
2460
2461 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2462 text.
2463 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2464
16d01f9c
BW
24652019-08-29 Bernhard Wodok <barto@gmx.net>
2466 Sergio Durigan Junior <sergiodj@redhat.com>
2467
2468 PR win32/24284
2469 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2470
d8f27c60
AB
24712019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2474 when searching for types.
2475
1f20c35e
AB
24762019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * f-lang.c (f_language_defn): Use f_print_typedef.
2479 * f-lang.h (f_print_typedef): Declare.
2480 * f-typeprint.c (f_print_typedef): Define.
2481
550105b7
CB
24822019-08-27 Christian Biesinger <cbiesinger@google.com>
2483
2484 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2485
4acfdd20
AB
24862019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * cli/cli-utils.c (info_print_options_defs): Delete.
2489 (make_info_print_options_def_group): Delete.
2490 (extract_info_print_options): Delete.
2491 (info_print_command_completer): Delete.
2492 (info_print_args_help): Add extra parameter, and optionally
2493 include text about -n flag.
2494 * cli/cli-utils.h (struct info_print_options): Delete.
2495 (extract_info_print_options): Delete declaration.
2496 (info_print_command_completer): Delete declaration.
2497 (info_print_args_help): Add extra parameter, extend header
2498 comment.
2499 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2500 search_symbols.
2501 * stack.c (struct info_print_options): New type.
2502 (info_print_options_defs): New file scoped variable.
2503 (make_info_print_options_def_group): New static function.
2504 (info_print_command_completer): New static function.
2505 (info_locals_command): Update to use new local functions.
2506 (info_args_command): Likewise.
2507 (_initialize_stack): Add extra parameter to calls to
2508 info_print_args_help.
2509 * symtab.c (search_symbols): Add extra parameter, use this to
2510 possibly excluse non-debug symbols.
2511 (symtab_symbol_info): Add extra parameter, which is passed on to
2512 search_symbols.
2513 (struct info_print_options): New type.
2514 (info_print_options_defs): New file scoped variable.
2515 (make_info_print_options_def_group): New static function.
2516 (info_print_command_completer): New static function.
2517 (info_variables_command): Update to use local functions, and pass
2518 extra parameter through to symtab_symbol_info.
2519 (info_functions_command): Likewise.
2520 (info_types_command): Pass additional argument through to
2521 symtab_symbol_info.
2522 (rbreak_command): Pass extra argument to search_symbols.
2523 (_initialize_symtab): Add extra arguments for calls to
2524 info_print_args_help, and update help text for 'info variables',
2525 'whereis', and 'info functions' commands.
2526 * symtab.h (search_symbols): Add extra argument to declaration.
2527 * NEWS: Mention new flags.
2528
9aa55206
CB
25292019-08-26 Christian Biesinger <cbiesinger@google.com>
2530
2531 * symtab.c (lookup_static_symbol): Call the new function (and move
2532 it down to be next to lookup_global_symbol).
2533 (struct global_sym_lookup_data): Add block_enum member and rename to...
2534 (struct global_or_static_sym_lookup_data): ...this.
2535 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2536 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2537 (lookup_symbol_global_or_static_iterator_cb): ...this.
2538 (lookup_global_or_static_symbol): New function.
2539 (lookup_global_symbol): Call new function.
2540
5c31b358
TV
25412019-08-26 Tom de Vries <tdevries@suse.de>
2542
2543 PR c++/24852
2544 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2545 when pc_probe.prob == NULL.
2546
23c13d42
SM
25472019-08-25 Simon Marchi <simon.marchi@efficios.com>
2548
2549 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2550 variable symbol_linkage to symbol_linkage_.
2551
beadd3e8
SM
25522019-08-25 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2555 represent whether the symbol is static, dynamic, or we don't
2556 know.
2557
e3ec872f
YS
25582019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2559
2560 * gdb/rx-tdep.c (rx_register_names): New.
2561 (rx_register_name): Delete.
2562 (rx_psw_type): Delete.
2563 (rx_fpsw_type): Delete.
2564 (rx_register_type): Delete.
2565 (rx_gdbarch_init): Convert target-descriptions.
2566 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2567 * gdb/features/Makefile: Add rx.xml.
2568 * gdb/features/rx.xml: New.
2569 * gdb/features/rx.c: Generated.
2570 * gdb/NEWS: Mention target description support.
2571
d0509ba4
CB
25722019-08-22 Christian Biesinger <cbiesinger@google.com>
2573
2574 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2575 *slot_ptr.
2576
2d41fa11
SDJ
25772019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2578
2579 * configure.ac: Don't check for 'dlfcn.h' (moved to
2580 gdbsupport/common.m4).
2581 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2582 'gdbsupport/'.
2583 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2584 * compile/compile-c-support.c: Include
2585 'gdbsupport/gdb-dlfcn.h'.
2586 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2587 * gdb-dlfcn.c: Move to...
2588 * gdbsupport/gdb-dlfcn.c: ... here.
2589 * gdb-dlfcn.h: Move to...
2590 * gdbsupport/gdb-dlfcn.h: ... here.
2591
de8af808
SL
25922019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2593
2594 * nios2-tdep.c (struct reg_value): Improve comments. Make
2595 the offset field signed.
2596
27204489
CB
25972019-08-22 Christian Biesinger <cbiesinger@google.com>
2598
2599 * python/lib/gdb/__init__.py (_execute_file): New function.
2600 * python/python.c (python_run_simple_file): Call gdb._execute_file
2601 on Windows.
2602
43771869
AB
26032019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2606 all uses as this was never set to anything but a zero value.
2607
26c957f1
PA
26082019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2609
2610 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2611
c07aae6e
CB
26122019-08-21 Christian Biesinger <cbiesinger@google.com>
2613
2614 * tui/tui-data.h (tui_gen_win_info): Add an =default
2615 move constructor, required by some GCC versions.
2616
3960cb7a
JF
26172019-08-21 Jinke Fan <fanjinke51@yeah.net>
2618
2619 * go32-nat.c (go32_sysinfo): Add hygon_p.
2620
04c72a68
TT
26212019-08-20 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2624 line_from_reg_element_no, first_reg_element_no_inline,
2625 display_all_data, delete_data_content_windows,
2626 erase_data_content>: Now private.
2627
072272ce
TT
26282019-08-20 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2631 (tui_unhighlight_win, tui_highlight_win)
2632 (tui_win_info::make_window): Update.
2633 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2634
973961bd
TT
26352019-08-20 Tom Tromey <tom@tromey.com>
2636
2637 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2638 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2639 (MAX_PID_WIDTH): Move to tui-stack.c.
2640 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2641 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2642 (MAX_PID_WIDTH): Move from tui-data.h.
2643
ab0e1f1a
TT
26442019-08-20 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2647 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2648 (box_win): Update.
2649 (tui_gen_win_info::make_window): Rename from tui_make_window.
2650 (tui_win_info::make_window): New method.
2651 (tui_gen_win_info::make_visible): Update.
2652 * tui/tui-source.c (tui_source_window::set_contents): Update.
2653 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2654 (tui_data_window::display_registers_from): Update.
2655 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2656 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2657 Declare.
2658 <can_box>: Remove.
2659 <title>: Remove.
2660 (struct tui_win_info) <make_window>: Declare.
2661 <can_box>: Now virtual.
2662 <title>: New member.
2663 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2664 * tui/tui-command.c (tui_cmd_window::resize): Update.
2665
100c2bf3
TT
26662019-08-20 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2669 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2670 (tui_data_window::check_register_values): Update.
2671
fa4dc567
TT
26722019-08-20 Tom Tromey <tom@tromey.com>
2673
2674 * tui/tui-regs.h (struct tui_data_window): Use
2675 DISABLE_COPY_AND_ASSIGN.
2676 <regs_content>: Change type, removing unique_ptr.
2677 <tui_data_window>: Add move constructor.
2678 * tui/tui-regs.c (tui_data_window::show_registers)
2679 (tui_data_window::show_register_group)
2680 (tui_data_window::display_registers_from)
2681 (tui_data_window::display_registers_from)
2682 (tui_data_window::first_data_item_displayed)
2683 (tui_data_window::delete_data_content_windows)
2684 (tui_data_window::rerender, tui_data_window::refresh_window)
2685 (tui_data_window::check_register_values): Update.
2686
ca02d7c8
TT
26872019-08-20 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2690 show_register_group>: Declare.
2691 (tui_show_register_group): Don't declare.
2692 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2693 tui_show_registers.
2694 (tui_data_window::show_register_group): Rename from
2695 tui_show_register_group.
2696 (tui_data_window::check_register_values, tui_reg_command):
2697 Update.
2698 * tui/tui-layout.c (tui_set_layout): Update.
2699
63356bfd
TT
27002019-08-20 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2703 Declare.
2704 (tui_check_register_values): Don't declare.
2705 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2706 from tui_check_register_values.
2707 * tui/tui-hooks.c (tui_register_changed): Update.
2708
42cc14a7
TT
27092019-08-20 Tom Tromey <tom@tromey.com>
2710
2711 * tui/tui-regs.c (tui_reg_layout): Move later.
2712 (tui_show_registers): Don't enable TUI mode or change layout.
2713
b9ad3686
TT
27142019-08-20 Tom Tromey <tom@tromey.com>
2715
2716 * tui/tui-regs.h (struct tui_data_item_window)
2717 <~tui_data_item_window>: Remove.
2718 <content>: Now a unique_xmalloc_ptr.
2719 * tui/tui-regs.c (tui_register_format): Return a
2720 unique_xmalloc_ptr.
2721 (tui_get_register): Update.
2722 (~tui_data_item_window): Remove.
2723 (tui_data_window::display_registers_from, tui_display_register):
2724 Update.
2725 * tui/tui-io.h (tui_expand_tabs): Update.
2726 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2727 Remove "col" parameter.
2728
8e114aab
TT
27292019-08-20 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2732 field.
2733 * tui/tui-regs.c (~tui_data_item_window): Update.
2734
1a4f81dd
TT
27352019-08-20 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2738 earlier.
2739
0f8d8876
TT
27402019-08-20 Tom Tromey <tom@tromey.com>
2741
2742 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2743
605dc2c2
TT
27442019-08-20 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-source.h (struct tui_source_window): Update.
2747 * tui/tui-regs.c (tui_show_registers): Update.
2748 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2749 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2750 (NO_REGS_STRING): Remove defines.
2751
aedbe3bb
CM
27522019-08-20 Conrad Meyer <cem@FreeBSD.org>
2753
2754 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2755 unnecessary thread walk if remote doesn't support the packet.
2756
7ce8f214
TT
27572019-08-19 Tom Tromey <tromey@adacore.com>
2758
2759 * python/py-value.c (value_has_field): Fix indentation.
2760
f21c2bd7
TT
27612019-08-19 Tom Tromey <tromey@adacore.com>
2762
2763 * printcmd.c (do_one_display, info_display_command): Update.
2764 * block.h (contained_in): Return bool. Add allow_nested
2765 parameter.
2766 * block.c (contained_in): Return bool. Add allow_nested
2767 parameter.
2768
d806ea2d
TT
27692019-08-19 Tom Tromey <tom@tromey.com>
2770
2771 * configure: Rebuild.
2772 * configure.ac: Disallow the combination of -static-libstdc++ and
2773 source highlight.
2774 * source-cache.c (get_language_name): Handle rust.
2775 (source_cache::get_source_lines): Ignore highlighting exceptions.
2776
398fdd60
TT
27772019-08-16 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2780 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2781 (struct tui_source_window_base) <make_visible, refresh_window,
2782 resize>: Remove methods.
2783 <execution_info>: Remove field.
2784 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2785 (tui_show_source_line, tui_source_window_base)
2786 (~tui_source_window_base): Update.
2787 (tui_source_window_base::resize)
2788 (tui_source_window_base::make_visible)
2789 (tui_source_window_base::refresh_window): Remove.
2790 (tui_source_window_base::update_exec_info): Update.
2791 * tui/tui-source.c (tui_source_window::set_contents): Update.
2792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2793
e699d331
TT
27942019-08-16 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2797 deprecated_query_hook.
2798
bb01dbfc
TT
27992019-08-16 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2802 (tui_update_source_windows_with_line): Update.
2803 * tui/tui-source.h (struct tui_source_window)
2804 <show_symtab_source>: Declare.
2805 (tui_show_symtab_source): Don't declare.
2806 * tui/tui-source.c (tui_show_symtab_source): Rename from
2807 tui_show_symtab_source.
2808
81c82c4b
TT
28092019-08-16 Tom Tromey <tom@tromey.com>
2810
2811 * tui/tui-winsource.h (struct tui_source_window_base)
2812 <set_contents>: Declare.
2813 * tui/tui-winsource.c
2814 (tui_source_window_base::update_source_window_as_is): Update.
2815 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2816 Declare.
2817 (tui_set_source_content): Don't declare.
2818 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2819 tui_set_source_content.
2820 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2821 Declare.
2822 (tui_set_disassem_content): Don't declare.
2823 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2824 tui_set_disassem_content.
2825
2ddaf614
TT
28262019-08-16 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-winsource.h (struct tui_source_window_base)
2829 <update_breakpoint_info>: Declare.
2830 (tui_update_breakpoint_info): Don't declare.
2831 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2832 (tui_update_all_breakpoint_info): Update.
2833 (tui_source_window_base::update_breakpoint_info): Rename from
2834 tui_update_breakpoint_info.
2835 (tui_source_window_base::update_exec_info): Update.
2836
017f9828
TT
28372019-08-16 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-winsource.h (struct tui_source_window_base)
2840 <update_source_window>: Declare.
2841 (tui_update_source_window): Don't declare.
2842 * tui/tui-winsource.c
2843 (tui_source_window_base::update_source_window): Rename from
2844 tui_update_source_window.
2845 (tui_source_window_base::rerender): Update.
2846 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2847 * tui/tui-disasm.c (tui_show_disassem)
2848 (tui_show_disassem_and_update_source)
2849 (tui_disasm_window::maybe_update): Update.
2850
ed8358e9
TT
28512019-08-16 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-winsource.h (struct tui_source_window_base)
2854 <update_source_window_as_is>: Declare.
2855 (tui_update_source_window_as_is): Don't declare.
2856 * tui/tui-winsource.c (tui_update_source_window): Update
2857 (tui_source_window_base::update_source_window_as_is): Rename from
2858 tui_update_source_window_as_is.
2859 (tui_source_window_base::refill): Update.
2860 * tui/tui-source.c (tui_show_symtab_source): Update.
2861 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2862 Update.
2863
20149b6b
TT
28642019-08-16 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-winsource.h (tui_update_source_window)
2867 (tui_update_source_window_as_is): Remove "noerror" parameter.
2868 * tui/tui-winsource.c (tui_update_source_window)
2869 (tui_update_source_window_as_is): Remove "noerror" parameter.
2870 (tui_update_source_windows_with_addr)
2871 (tui_update_source_windows_with_line)
2872 (tui_source_window_base::rerender)
2873 (tui_source_window_base::refill): Update.
2874 * tui/tui-source.h (tui_set_source_content)
2875 (tui_show_symtab_source): Remove "noerror" parameter.
2876 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2877 parameter.
2878 (tui_show_symtab_source): Likewise.
2879 (tui_source_window::maybe_update): Update.
2880 * tui/tui-disasm.c (tui_show_disassem)
2881 (tui_show_disassem_and_update_source)
2882 (tui_disasm_window::do_scroll_vertical)
2883 (tui_disasm_window::maybe_update): Update.
2884
2d83e710
TT
28852019-08-16 Tom Tromey <tom@tromey.com>
2886
2887 * tui/tui.c (tui_is_window_visible): Update.
2888 * tui/tui-wingeneral.c (tui_make_window)
2889 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2890 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2891 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2892 (tui_set_win_height_command, parse_scrolling_args): Update.
2893 * tui/tui-source.c (tui_source_window::style_changed): Update.
2894 * tui/tui-regs.c (tui_show_registers)
2895 (tui_data_window::first_data_item_displayed)
2896 (tui_data_window::delete_data_content_windows)
2897 (tui_check_register_values, tui_reg_command): Update.
2898 * tui/tui-disasm.c (tui_show_disassem): Update.
2899 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2900 method.
2901 <is_visible>: Remove field.
2902 * tui/tui-data.c (tui_next_win, tui_prev_win)
2903 (tui_delete_invisible_windows): Update.
2904
d4ab829a
TT
29052019-08-16 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-winsource.h (struct tui_source_window_base)
2908 <m_has_locator>: Remove.
2909 * tui/tui-layout.c (show_source_disasm_command, show_data)
2910 (show_source_or_disasm_and_command): Update.
2911
aa7ca1bb
AH
29122019-08-16 Alan Hayward <alan.hayward@arm.com>
2913
2914 * NEWS (Other MI changes): New subsection.
2915 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2916 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2917 * arch-utils.c (default_get_pc_address_flags): New function.
2918 * arch-utils.h (default_get_pc_address_flags): New declaration.
2919 * gdbarch.sh: Add get_pc_address_flags.
2920 * gdbarch.c: Regenerate.
2921 * gdbarch.h: Likewise.
2922 * stack.c (print_pc): New function.
2923 (print_frame_info) (print_frame): Call print_pc.
2924
6eac171f
TV
29252019-08-16 Tom de Vries <tdevries@suse.de>
2926
2927 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2928 print_objfile_section_info.
2929
3df505f6
TT
29302019-08-15 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2933 calling update_cmdwin_start_line.
2934 * tui/tui-winsource.h (struct tui_source_window_base)
2935 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2936 <rerender>: Declare.
2937 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2938 Call rerender.
2939 (tui_source_window_base::set_new_height): Remove.
2940 (tui_source_window_base::rerender): Rename from
2941 do_make_visible_with_new_height.
2942 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2943 resize method.
2944 (tui_win_info::make_invisible_and_set_new_height)
2945 (tui_win_info::make_visible_with_new_height): Remove.
2946 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2947 Declare.
2948 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2949 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2950 do_make_visible_with_new_height>: Don't declare.
2951 <rerender>: Declare.
2952 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2953 set_new_height.
2954 (tui_data_window::do_make_visible_with_new_height): Remove.
2955 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2956 call tui_show_locator_content.
2957 (tui_gen_win_info::resize): Call rerender.
2958 (show_source_or_disasm_and_command): Don't call
2959 tui_show_locator_content.
2960 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2961 method.
2962 (struct tui_win_info) <rerender>: Declare.
2963 <set_new_height, make_invisible_and_set_new_height,
2964 make_visible_with_new_height>: Don't declare.
2965 * tui/tui-data.c (tui_win_list::rerender): New method.
2966 * tui/tui-command.h (struct tui_cmd_window)
2967 <do_make_visible_with_new_height>: Don't declare.
2968 * tui/tui-command.c
2969 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2970
272560b5
TT
29712019-08-15 Tom Tromey <tromey@adacore.com>
2972
2973 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2974 * ada-lang.c (ada_enum_name): Likewise.
2975
08235187
CB
29762019-08-15 Christian Biesinger <cbiesinger@google.com>
2977
2978 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2979 leading underscore.
2980 (GdbOutputErrorFile): Likewise.
2981 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2982 accordingly.
2983 (execute_unwinders): Rename to have a leading underscore.
2984 (auto_load_packages): Likewise.
2985 (global scope): Adjust call to auto_load_packages accordingly.
2986 (GdbSetPythonDirectory): Likewise.
2987 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2988 instead of execute_unwinders.
2989
db502012
TT
29902019-08-15 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2993 (show_data): Don't change window visibility.
2994 (tui_gen_win_info::resize): Remove special case for command
2995 window. Use wresize, when available.
2996 (show_source_or_disasm_and_command): Don't change window
2997 visibility.
2998 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2999 <make_visible>: New method.
3000 * tui/tui-command.c (tui_cmd_window::resize): New method.
3001
3891b65e
TT
30022019-08-15 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3005 (struct tui_source_windows): New.
3006 * tui/tui-winsource.c (tui_display_main): Update.
3007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3008 (new_height_ok, parse_scrolling_args): Update.
3009 * tui/tui-layout.c (show_layout, show_data): Update.
3010 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3011 (tui_add_to_source_windows): Don't declare.
3012 * tui/tui-data.c (source_windows, tui_source_windows)
3013 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3014
ee556432
TT
30152019-08-15 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3018 Rename from reset.
3019 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3020 * tui/tui-layout.c (show_source_disasm_command, show_data):
3021 Update.
3022 (tui_gen_win_info::resize): Rename.
3023 (show_source_or_disasm_and_command): Update.
3024 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3025 reset.
3026
46f438e3
TT
30272019-08-15 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3030 * tui/tui-interp.c (tui_interp::init): Don't call
3031 tui_initialize_static_data.
3032 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3033
f4ce562c
TT
30342019-08-15 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3037 examine tui_win_list.
3038
c398c3d0
TT
30392019-08-15 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3042 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3043 tui_clear_source_content.
3044 (tui_clear_source_content): Remove.
3045 (tui_source_window_base::do_erase_source_content): Hoist call to
3046 content.clear().
3047 * tui/tui-stack.c (tui_show_frame_info): Don't call
3048 tui_clear_source_content.
3049
e25d2004
TT
30502019-08-15 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-winsource.h (struct tui_source_window_base)
3053 <do_erase_source_content>: New method.
3054 <erase_source_content>: New method.
3055 (tui_erase_source_content): Don't declare.
3056 * tui/tui-winsource.c (tui_clear_source_content): Update.
3057 (tui_source_window_base::do_erase_source_content): Rename from
3058 tui_erase_source_content.
3059 (tui_source_window_base::show_source_content): Update.
3060 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3061 * tui/tui-source.h (struct tui_source_window)
3062 <erase_source_content>: New method.
3063 * tui/tui-disasm.h (struct tui_disasm_window)
3064 <erase_source_content>: New method.
3065
002f15c2
TT
30662019-08-15 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3069 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3070 constructor.
3071 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3072 * tui/tui-source.c (tui_set_source_content): Update.
3073 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3074
c9033fe8
TT
30752019-08-15 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3078 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3079 tui-source.c.
3080 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3081 Declare.
3082 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3083 method.
3084 (tui_source_window::maybe_update): Update.
3085
088f37dd
TT
30862019-08-15 Tom Tromey <tom@tromey.com>
3087
3088 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3089 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3090 tui-disasm.c.
3091 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3092 Declare.
3093 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3094 method.
3095 (tui_disasm_window::maybe_update): Update.
3096
a54700c6
TT
30972019-08-15 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-winsource.h (struct tui_source_window_base)
3100 <maybe_update>: Declare.
3101 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3102 method.
3103 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3104 Declare.
3105 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3106 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3107 Declare.
3108 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3109
e2a678a5
TT
31102019-08-15 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3113
f2dda477
TT
31142019-08-15 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-wingeneral.c: Include tui-stack.h.
3117 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3118 (struct tui_locator_window): Move from tui-data.h.
3119 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3120 (tui_initialize_static_data): Move from tui-data.c.
3121 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3122 (struct tui_locator_window): Move to tui-stack.c.
3123 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3124 (tui_initialize_static_data): Move to tui-stack.c.
3125
ed4a1084
TT
31262019-08-15 Tom Tromey <tom@tromey.com>
3127
3128 * tui/tui-layout.c (show_source_disasm_command)
3129 (show_source_or_disasm_and_command): Use make_visible method, not
3130 tui_make_window.
3131 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3132 Remove.
3133
65962b20
TT
31342019-08-15 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-wingeneral.h (tui_make_window): Update.
3137 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3138 parameter.
3139 (tui_gen_win_info::make_visible): Update.
3140 * tui/tui-regs.c (tui_data_window::display_registers_from):
3141 Update.
3142 * tui/tui-layout.c (show_source_disasm_command)
3143 (show_source_or_disasm_and_command): Update.
3144 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3145 (enum tui_box): Remove.
3146 (struct tui_win_info) <can_box>: New method.
3147 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3148 method.
3149
2208ee91
TV
31502019-08-15 Tom de Vries <tdevries@suse.de>
3151
3152 * linux-nat-trad.c: Include gdbarch.h.
3153
75faf5c4
AH
31542019-08-14 Alan Hayward <alan.hayward@arm.com>
3155
3156 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3157 register sizes.
3158
b1c896b3
TT
31592019-08-14 Tom Tromey <tromey@adacore.com>
3160
3161 * darwin-nat.c: Include gdbarch.h.
3162 * darwin-nat-info.c: Include gdbarch.h.
3163
6405cd73
TT
31642019-08-13 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3167 Remove.
3168 * tui/tui-data.c (tui_initialize_static_data): Update.
3169
5216580d
TT
31702019-08-13 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-winsource.h (struct tui_exec_info_window)
3173 <~tui_exec_info_window, maybe_allocate_content, get_content,
3174 m_content>: Remove.
3175 (struct tui_source_window_base) <set_exec_info_content,
3176 show_exec_info_content>: Don't declare.
3177 * tui/tui-winsource.c
3178 (tui_exec_info_window::maybe_allocate_content): Remove.
3179 (tui_source_window_base::update_exec_info): Rename from
3180 set_exec_info_content.
3181 (tui_source_window_base::show_exec_info_content)
3182 (tui_source_window_base::update_exec_info): Remove.
3183
93858ad3
TT
31842019-08-13 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3187 declare.
3188 * tui/tui-winsource.c (tui_update_source_window_as_is)
3189 (tui_update_source_windows_with_addr, tui_erase_source_content):
3190 Update.
3191 (tui_clear_exec_info_content): Remove.
3192
e321e7ce
TT
31932019-08-13 Tom Tromey <tom@tromey.com>
3194
3195 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3196 declare.
3197 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3198 call tui_erase_exec_info_content.
3199 (tui_clear_exec_info_content): Rename from
3200 tui_erase_exec_info_content.
3201 (tui_clear_exec_info_content): Delete.
3202
8270ac62
TT
32032019-08-13 Tom Tromey <tom@tromey.com>
3204
3205 * tui/tui-winsource.h (struct tui_source_window_base)
3206 <show_exec_info_content>: Declare.
3207 (tui_show_exec_info_content): Don't declare.
3208 * tui/tui-winsource.c
3209 (tui_source_window_base::show_exec_info_content): Rename from
3210 tui_show_exec_info_content.
3211 (tui_source_window_base::update_exec_info): Update.
3212
7b56485d
TT
32132019-08-13 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3216 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3217 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3218 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3219 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3220 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3221 ... here.
3222
7ba913dc
TT
32232019-08-13 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-winsource.h (struct tui_source_window_base)
3226 <update_exec_info>: Declare.
3227 (tui_update_exec_info): Don't declare.
3228 * tui/tui-winsource.c (tui_update_source_window_as_is)
3229 (tui_source_window_base::refresh_all)
3230 (tui_update_all_breakpoint_info): Update.
3231 (tui_source_window_base::update_exec_info): Rename from
3232 tui_update_exec_info.
3233 * tui/tui-stack.c (tui_show_frame_info): Update.
3234
37a4a131
TT
32352019-08-13 Tom Tromey <tom@tromey.com>
3236
3237 * tui/tui-winsource.h (struct tui_source_window_base)
3238 <set_exec_info_content>: Declare.
3239 (tui_set_exec_info_content): Don't declare.
3240 * tui/tui-winsource.c
3241 (tui_source_window_base::set_exec_info_content): Rename from
3242 tui_set_exec_info_content.
3243 (tui_update_exec_info): Update.
3244
0bd27e07
TT
32452019-08-13 Tom Tromey <tom@tromey.com>
3246
3247 * tui/tui-winsource.h (struct tui_source_window_base)
3248 <show_source_content>: Declare.
3249 (tui_show_source_content): Don't declare.
3250 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3251 (tui_source_window_base::show_source_content): Rename from
3252 tui_show_source_content.
3253 (tui_source_window_base::refresh_all): Update.
3254 * tui/tui-layout.c (show_source_disasm_command)
3255 (show_source_or_disasm_and_command): Update.
3256
b4ef5aeb
TT
32572019-08-13 Tom Tromey <tom@tromey.com>
3258
3259 * tui/tui-winsource.c (tui_erase_source_content)
3260 (tui_show_source_content, tui_source_window_base::refresh_all):
3261 Update.
3262 * tui/tui-wingeneral.h
3263 (tui_check_and_display_highlight_if_needed): Don't declare.
3264 * tui/tui-wingeneral.c
3265 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3266 check_and_display_highlight_if_needed.
3267 * tui/tui-win.c (tui_rehighlight_all)
3268 (tui_win_info::make_visible_with_new_height): Update.
3269 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3270 (tui_data_window::erase_data_content)
3271 (tui_data_window::display_all_data): Update.
3272 * tui/tui-data.h (struct tui_win_info)
3273 <check_and_display_highlight_if_needed>: Declare.
3274
fede5273
TT
32752019-08-13 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-win.c (tui_resize_all): Call
3278 tui_delete_invisible_windows.
3279 * tui/tui-layout.c (show_layout): Call
3280 tui_delete_invisible_windows.
3281 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3282 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3283
22c3f490
TT
32842019-08-13 Tom Tromey <tom@tromey.com>
3285
3286 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3287 tui_add_win_to_layout.
3288
16cb7910
TT
32892019-08-13 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3292 * tui/tui-layout.c (tui_default_win_height): Now static.
3293
cc0c3ffb
TT
32942019-08-13 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3297 single switch.
3298 (show_source_disasm_command, show_source_or_disasm_and_command):
3299 Don't check current layout.
3300
3f3ffe54
TT
33012019-08-13 Tom Tromey <tom@tromey.com>
3302
3303 * tui/tui-wingeneral.c (make_all_visible): Remove.
3304 (tui_make_all_invisible): Simplify.
3305 * tui/tui-layout.c (tui_make_all_invisible): Move from
3306 tui-wingeneral.c; simplify.
3307 (show_layout): Hoist call to tui_make_all_invisible.
3308 (show_data): Don't call tui_make_all_invisible.
3309
69258091
TT
33102019-08-13 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3313 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3314
62cf57fe
TT
33152019-08-13 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3318 tui-data.c.
3319 (show_source_disasm_command, show_data)
3320 (show_source_or_disasm_and_command): Don't use
3321 tui_set_current_layout_to.
3322 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3323 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3324 tui-layout.c.
3325 (tui_set_current_layout_to): Remove.
3326
2afade5d
TT
33272019-08-13 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-layout.c (tui_set_layout): Update.
3330 * tui/tui-data.h (struct tui_layout_def): Remove.
3331 (tui_layout_def): Don't declare.
3332 * tui/tui-data.c (layout_def): Remove.
3333 (tui_layout_def): Remove.
3334
a3504e96
TT
33352019-08-13 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-winsource.h (struct tui_source_window_base)
3338 <clear_detail>: No longer "override".
3339 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3340 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3341 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3342 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3343 Remove.
3344 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3345
29c92911
TT
33462019-08-13 Tom Tromey <tromey@adacore.com>
3347
3348 * tracepoint.c: Don't include readline.h or history.h.
3349
86c6b807
TT
33502019-08-12 Tom Tromey <tom@tromey.com>
3351
3352 * configure: Rebuild.
3353 * configure.ac: Check for readline 7.
3354 * NEWS: Mention readline 7 requirement.
3355 * README: Update.
3356
5db2718c
TT
33572019-08-12 Tom Tromey <tom@tromey.com>
3358
3359 * mingw-hdep.c (gdb_select): Remove readline hack.
3360
dac36daf
PFC
33612019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3362
3363 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3364 when the function fails.
3365
1022c627
AA
33662019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3367
3368 * s390-tdep.c (s390_type_align): New function.
3369 (s390_gdbarch_init): Set it as type_align gdbarch method.
3370
eba4caf2
TV
33712019-08-09 Tom de Vries <tdevries@suse.de>
3372
3373 PR gdb/24591
3374 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3375 pc_low with relocation offset.
3376
123cd851
TT
33772019-08-07 Tom Tromey <tromey@adacore.com>
3378
3379 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3380 (print_frame_args): Update.
3381 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3382 Update.
3383 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3384 * frame.h (struct frame_arg): Add initializers.
3385 <error>: Now a unique_xmalloc_ptr.
3386
3d31bc39
AH
33872019-08-07 Alan Hayward <alan.hayward@arm.com>
3388
3389 * NEWS: Expand the Pointer Authentication entry.
3390 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3391 (aarch64_frame_unmask_lr): ... to this.
3392 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3393 Call aarch64_frame_unmask_lr.
3394 * frame.c (struct frame_info): Add "masked" variable.
3395 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3396 (fprint_frame): Check for masked pc.
3397 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3398 declarations.
3399 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3400 * stack.c (print_frame): Check for masked pc.
3401
0cf9feb9
TT
34022019-08-06 Tom Tromey <tom@tromey.com>
3403
3404 * stabsread.c (patch_block_stabs, read_one_struct_field)
3405 (read_enum_type): Use obstack_strndup.
3406 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3407 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3408 * dwarf2read.c (guess_full_die_structure_name)
3409 (anonymous_struct_prefix): Use obstack_strndup.
3410 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3411 * c-exp.y (yylex): Use obstack_strndup.
3412 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3413 (write_var_or_type): Use obstack_strndup.
3414
efba19b0
TT
34152019-08-06 Tom Tromey <tom@tromey.com>
3416
3417 * symfile.c (reread_symbols): Use obstack_strdup.
3418 * stabsread.c (read_type): Use obstack_strdup.
3419 * gdb_obstack.h (obstack_strdup): New overload.
3420 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3421 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3422 (dwarf2_canonicalize_name): Use obstack_strdup.
3423 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3424 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3425 Use obstack_strdup.
3426
f25102f7
TT
34272019-08-06 Tom Tromey <tom@tromey.com>
3428
3429 * gdb_obstack.h (obstack_strdup): Define.
3430 * gdb_obstack.c (obstack_strdup): Don't define.
3431
021887d8
TT
34322019-08-06 Tom Tromey <tom@tromey.com>
3433
3434 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3435 obstack_strdup.
3436 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3437 obstack_strdup.
3438 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3439 * stabsread.c (common_block_start): Use obstack_strdup.
3440 * objfiles.c (set_objfile_main_name, objfile): Use
3441 obstack_strdup.
3442 * namespace.c (add_using_directive): Use obstack_strdup.
3443 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3444 * jit.c (finalize_symtab): Use obstack_strdup.
3445 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3446 (guess_partial_die_structure_name, partial_die_info::fixup)
3447 (dwarf2_name): Use obstack_strdup.
3448 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3449 obstack_strdup.
3450 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3451 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3452 obstack_strdup.
3453 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3454
d2834edc
PW
34552019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * unittests/help-doc-selftests.c: New file.
3458 * Makefile.in: Add the new file.
3459
590042fc
PW
34602019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3461
3462 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3463 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3464 the full first line, except when FOR_VALUE_PREFIX. In this case,
3465 the trailing '.' is not output, and the first character is uppercased.
3466 (print_help_for_command): Update call to print_doc_line.
3467 (print_doc_of_command): Likewise.
3468 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3469 * cli/cli-option.c (append_indented_doc): Do not append newline.
3470 (build_help_option): Append newline after first appended_indented_doc
3471 only if a second call is done.
3472 (build_help): Append 2 new lines before each option, except the first
3473 one.
3474 * compile/compile.c (_initialize_compile): Add new lines after
3475 %OPTIONS%, when not at the end of the help.
3476 Change help doc or code
3477 producing the help doc to respect the invariants.
3478 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3479 Also removed the new line after 'Options:', as all other commands
3480 do not put an empty line between 'Options:' and the first option.
3481 * printcmd.c (_initialize_printcmd): Likewise.
3482 * stack.c (_initialize_stack): Likewise.
3483 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3484 incorrectly telling COMMAND is optional.
3485 * ada-lang.c (_initialize_ada_language): Change help doc or code
3486 producing the help doc to respect the invariants.
3487 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3488 * breakpoint.c (_initialize_breakpoint): Likewise.
3489 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3490 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3491 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3492 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3493 _initialize_cli_style): Likewise.
3494 * corelow.c (core_target_info): Likewise.
3495 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3496 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3497 * filesystem.c (_initialize_filesystem): Likewise.
3498 * frame.c (_initialize_frame): Likewise.
3499 * gnu-nat.c (add_task_commands): Likewise.
3500 * infcall.c (_initialize_infcall): Likewise.
3501 * infcmd.c (_initialize_infcmd): Likewise.
3502 * interps.c (_initialize_interpreter): Likewise.
3503 * language.c (_initialize_language): Likewise.
3504 * linux-fork.c (_initialize_linux_fork): Likewise.
3505 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3506 * maint.c (_initialize_maint_cmds): Likewise.
3507 * memattr.c (_initialize_mem): Likewise.
3508 * printcmd.c (_initialize_printcmd): Likewise.
3509 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3510 _RegEx): Likewise.
3511 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3512 * record-btrace.c (_initialize_record_btrace): Likewise.
3513 * record-full.c (_initialize_record_full): Likewise.
3514 * record.c (_initialize_record): Likewise.
3515 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3516 * regcache.c (_initialize_regcache): Likewise.
3517 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3518 _initialize_remote): Likewise.
3519 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3520 * serial.c (_initialize_serial): Likewise.
3521 * skip.c (_initialize_step_skip): Likewise.
3522 * source.c (_initialize_source): Likewise.
3523 * stack.c (_initialize_stack): Likewise.
3524 * symfile.c (_initialize_symfile): Likewise.
3525 * symtab.c (_initialize_symtab): Likewise.
3526 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3527 * top.c (init_main): Likewise.
3528 * tracefile-tfile.c (tfile_target_info): Likewise.
3529 * tracepoint.c (_initialize_tracepoint): Likewise.
3530 * tui/tui-win.c (_initialize_tui_win): Likewise.
3531 * utils.c (add_internal_problem_command): Likewise.
3532 * valprint.c (value_print_option_defs): Likewise.
3533
404f2902
FCE
35342019-08-06 Frank Ch. Eigler <fche@redhat.com>
3535
3536 PR build/24886
3537 * configure.ac: Drop enable-libmcheck support.
3538 * configure, config.in: Rebuild.
3539 * libmcheck.m4: Remove.
3540 * acinclude.m4: Don't include it.
3541 * Makefile.in: Don't distribute it.
3542 * top.c (print_gdb_configuration): Don't mention it.
3543
046bebe1
TT
35442019-08-06 Tom Tromey <tom@tromey.com>
3545
3546 * utils.c (set_output_style): Sometimes pass stream to
3547 emit_style_escape.
3548 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3549 * record-btrace.c (btrace_insn_history): Update.
3550 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3551 method.
3552 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3553 Update initializers.
3554 <m_uiout>: New field.
3555 <m_di>: Move lower.
3556 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3557 Remove "uiout" parameter.
3558 (dump_insns): Update.
3559 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3560 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3561
ddbcedf5
CB
35622019-08-06 Christian Biesinger <cbiesinger@google.com>
3563
3564 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3565 (error_in_psymtab_expansion): Likewise.
3566 (lookup_symbol_via_quick_fns): Likewise.
3567 (basic_lookup_transparent_type_quick): Likewise.
3568 (basic_lookup_transparent_type_1): Likewise.
3569
b08b16c8
TT
35702019-08-06 Tom Tromey <tromey@adacore.com>
3571
3572 * source.c (last_source_error): Now bool.
3573 (print_source_lines_base): Make "noprint" bool. Only open
3574 source file when last_source_visited changes.
3575
cb44333d
TT
35762019-08-06 Tom Tromey <tromey@adacore.com>
3577
3578 * annotate.c (annotate_source_line): Use g_source_cache.
3579 * source-cache.c (source_cache::get_plain_source_lines): Change
3580 parameters. Populate m_offset_cache.
3581 (source_cache::ensure): New method.
3582 (source_cache::get_line_charpos): New method.
3583 (extract_lines): Move lower. Change parameters.
3584 (source_cache::get_source_lines): Move lower.
3585 * source-cache.h (class source_cache): Update comment.
3586 <get_line_charpos>: New method.
3587 <get_source_lines>: Update comment.
3588 <clear>: Clear m_offset_cache.
3589 <get_plain_source_lines>: Change parameters.
3590 <ensure>: New method
3591 <m_offset_cache>: New member.
3592 * source.c (forget_cached_source_info_for_objfile): Update.
3593 (info_source_command): Use g_source_cache.
3594 (find_source_lines, open_source_file_with_line_charpos): Remove.
3595 (print_source_lines_base, search_command_helper): Use g_source_cache.
3596 * source.h (open_source_file_with_line_charpos): Don't declare.
3597 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3598 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3599 Use g_source_cache.
3600
872dceaa
TT
36012019-08-06 Tom Tromey <tromey@adacore.com>
3602
3603 * source-cache.c (source_cache::get_plain_source_lines):
3604 Remove "first_line" and "last_line" parameters.
3605 (source_cache::get_source_lines): Cache plain text.
3606 * source-cache.h (class source_cache)
3607 <get_plain_source_lines>: Update.
3608
269249d9
TT
36092019-08-06 Tom Tromey <tromey@adacore.com>
3610
3611 * source-cache.c (extract_lines): No longer a method.
3612 Changed type of parameter. Include final newline.
3613 (selftests::extract_lines_test): New function.
3614 (_initialize_source_cache): Likewise.
3615 * source-cache.h (class source_cache)
3616 <extract_lines>: Don't declare.
3617
c0e8dcd8
TT
36182019-08-06 Tom Tromey <tromey@adacore.com>
3619
3620 * breakpoint.c (init_breakpoint_sal): Update.
3621 (breakpoint): Update.
3622 * breakpoint.h (struct breakpoint) <filter>: Now a
3623 unique_xmalloc_ptr.
3624
0b27c27d
CB
36252019-08-05 Christian Biesinger <cbiesinger@google.com>
3626
3627 * NEWS: Mention dictionary access on blocks.
3628 * python/py-block.c (blpy_getitem): New function.
3629 (block_object_as_mapping): New struct.
3630 (block_object_type): Use new struct for tp_as_mapping field.
3631
4ee94178
CB
36322019-08-05 Christian Biesinger <cbiesinger@google.com>
3633
3634 * objfiles.h (objfile): Add a comment describing partial symbols.
3635
8abfcabc
TT
36362019-08-05 Tom Tromey <tromey@adacore.com>
3637
3638 * compile/compile.c (_initialize_compile): Use _(), not N_().
3639 * thread.c (_initialize_thread): Use _(), not N_().
3640 * stack.c (_initialize_stack): Use _(), not N_().
3641 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3642
2b79f376
SM
36432019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3644
3645 * dwarf2read.c (struct dw2_symtab_iterator):
3646 <want_specific_block>: Remove.
3647 <block_index>: Change type to gdb::optional.
3648 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3649 change type of BLOCK_INDEX parameter to gdb::optional.
3650 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3651 (dw2_lookup_symbol): Don't pass argument for
3652 WANT_SPECIFIC_BLOCK.
3653 (dw2_expand_symtabs_for_function): Don't pass argument for
3654 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3655 (class dw2_debug_names_iterator)
3656 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3657 parameter, change BLOCK_INDEX type to gdb::optional.
3658 <m_want_specific_block>: Remove.
3659 <m_block_index>: Change type to gdb::optional.
3660 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3661 gdb::optional. Re-write in function of gdb::optional.
3662 (dw2_debug_names_lookup_symbol): Don't pass argument for
3663 WANT_SPECIFIC_BLOCK.
3664 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3665 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3666 BLOCK_INDEX.
3667
ae60f04e
PW
36682019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3669
3670 * NEWS: Mention changes to "info sources" command.
3671
28cd9371
PW
36722019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3673
3674 * symtab.c (filename_partial_match_opts): New struct type.
3675 (struct output_source_filename_data): New members
3676 regexp, c_regexp, partial_match.
3677 (output_source_filename): Use new members to decide to print file.
3678 (info_sources_option_defs): New variable.
3679 (make_info_sources_options_def_group, print_info_sources_header,
3680 info_sources_command_completer):
3681 New functions.
3682 (info_sources_command): Read new optional arguments.
3683 (_initialize_symtab): Update info sources help.
3684
ca683e3a
AO
36852019-08-02 Alexandre Oliva <oliva@adacore.com>
3686
3687 * ada-lang.c (exception_support_info_v0): Renamed from...
3688 (default_exception_support_info): ... this. Create new
3689 definition for v1.
3690 (ada_has_this_exception_support): Look up catch_handlers_sym.
3691 (ada_exception_support_info_sniffer): Try v0 after default.
3692
f1264162
TT
36932019-08-01 Tom Tromey <tromey@adacore.com>
3694
3695 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3696 gdbarch.h.
3697
0a7b2485
CB
36982019-08-01 Christian Biesinger <cbiesinger@google.com>
3699
3700 * s12z-tdep.c: Fix include path for s12z-opc.h.
3701
c6bdbeb7
AH
37022019-08-01 Alan Hayward <alan.hayward@arm.com>
3703
3704 * NEWS: Require GNU make 3.82.
3705
a2bd7b82
TT
37062019-07-16 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3709 declare.
3710
aa3b6533
TT
37112019-07-30 Tom Tromey <tromey@adacore.com>
3712
3713 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3714
a1530dc7
KB
37152019-07-30 Kevin Buettner <kevinb@redhat.com>
3716
3717 * printcmd.c (print_address_symbolic): Print negative offsets.
3718 (build_address_symbolic): Force signed arithmetic when computing
3719 offset.
3720
2906593f
CB
37212019-07-30 Christian Biesinger <cbiesinger@google.com>
3722
3723 PR/24474: Add a function to lookup static variables.
3724 * NEWS: Mention this new function.
3725 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3726 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3727 * python/python.c (python_GdbMethods): Add new function.
3728
c620ed88
CB
37292019-07-29 Christian Biesinger <cbiesinger@google.com>
3730
3731 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3732 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3733 (objfpy_lookup_static_symbol): New function.
3734 (objfile_object_methods): Add new functions.
3735
bc4268a5
PW
37362019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3737
3738 * NEWS: Mention 'set|show print frame-info'. Mention new
3739 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3740 backtrace argument. Mention that python frame filtering code
3741 is now consistent with what 'backtrace' command prints.
3742
4b5e8d19
PW
37432019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3744
3745 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3746 comments.
3747 (print_frame_info_auto, print_frame_info_source_line,
3748 print_frame_info_location, print_frame_info_source_and_location,
3749 print_frame_info_location_and_address, print_frame_info_short_location):
3750 New declarations.
3751 (struct frame_print_options): New member print_frame_info.
3752 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3753 * stack.h (get_user_print_what_frame_info): New declaration.
3754 (frame_show_address): New declaration.
3755 * stack.c (print_frame_arguments_choices): New value 'presence'.
3756 (print_frame_info_auto, print_frame_info_source_line,
3757 print_frame_info_location, print_frame_info_source_and_location,
3758 print_frame_info_location_and_address, print_frame_info_short_location,
3759 print_frame_info_choices, print_frame_info_print_what): New definitions.
3760 (print_frame_args): Only print dots for args if print frame-arguments
3761 is 'presence'.
3762 (frame_print_option_defs): New element for "frame-info".
3763 (get_user_print_what_frame_info): New function.
3764 (frame_show_address): Make non static. Move comment to stack.h.
3765 (print_frame_info_to_print_what): New function.
3766 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3767 to decide what to print.
3768 (backtrace_command_1): Handle the new print_frame_arguments_presence
3769 value.
3770 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3771 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3772 (py_print_frame): In non-mi mode, use LOCATION as default for
3773 print_what, similarly to frame information printed directly by
3774 backtrace command. Handle frame-info user option in non MI mode.
3775
6bdfee81
KB
37762019-07-27 Kevin Buettner <kevinb@redhat.com>
3777
3778 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3779 Add case for debugging 32-bit target on 64-bit host. Revise
3780 comment.
3781
98a617f8
KB
37822019-07-27 Kevin Buettner <kevinb@redhat.com>
3783
3784 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3785 instead of find_function_entry_range_from_pc.
3786
567238c9
KB
37872019-07-27 Kevin Buettner <kevinb@redhat.com>
3788
3789 * stack.c (find_frame_funname): Remove code which preferred
3790 minsym over symtab sym in "certain pathological cases".
3791
2dc80cf8
KB
3792 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3793 parameter. Change type of "do_demangle" to bool.
3794 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3795 Pass suitable "prefer_sym_over_minsym" flag to
3796 build_address_symbolic(). Don't output "+" for negative offsets.
3797 * printcmd.c (print_address_symbolic): Update invocation of
3798 build_address_symbolic to include a "prefer_sym_over_minsym"
3799 flag.
3800 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3801 Restrict cases in which use of minimal symbol is preferred to that
3802 of a found symbol. Update comments.
3803
1aff7173
KB
3804 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3805 for entry pc when entry pc is out of range for that FDE.
3806
89b085ac
BC
38072019-07-26 Brian Callahan <bcallah@openbsd.org>
3808
3809 PR gdb/24839:
3810 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3811 type.
3812
f32feb4a
CB
38132019-07-25 Christian Biesinger <cbiesinger@google.com>
3814
3815 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3816 this function's Python signature.
3817
3818
38192019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3820
3821 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3822 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3823 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3824 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3825 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3826
3827
c54e4253
YS
38282019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3829
3830 * h8300-tdep.c (h8300_register_name_common): New.
3831 h8300_register_name): Use h8300_register_name_common.
3832 (h8300s_register_name): Likewise.
3833 (h8300sx_register_name): Likewise.
3834 (h8300h_register_nam): New.
3835 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3836
3837
40eadf04
SP
38382019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3839
3840 * arm-tdep.c (arm_skip_cmse_entry): New function.
3841 (arm_is_sgstubs_section): New function.
3842 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3843
bfa2a36d
TT
38442019-07-22 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3847 Don't self-assign.
3848
a8e9d247
AB
38492019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3850
3851 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3852 type_print.
3853
eb86c5e2
AB
38542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3857 so that GDB doesn't match any msymbols when searching in the
3858 TYPES_DOMAIN.
3859 (print_symbol_info): Print using typedef_print or type_print based
3860 on the type of the symbol. Add updated FIXME comment moved from...
3861 (_initialize_symtab): ... move and update FIXME comment to above.
3862
a8eab7c6
AB
38632019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * NEWS: Mention adding -q option to "info types".
3866 * symtab.c (struct info_types_options): New struct.
3867 (info_types_options_defs): New variable.
3868 (make_info_types_options_def_group): New function.
3869 (info_types_command): Use gdb::option framework to parse options.
3870 (info_types_command_completer): New function.
3871 (_initialize_symtab): Extend the help text on "info types" and
3872 register command completer.
3873
b4603c34
CB
38742019-07-21 Christian Biesinger <cbiesinger@google.com>
3875
3876 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3877 (lookup_symbol_in_objfile): Change int to block_enum and add a
3878 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3879
c8cdc1e0
CB
38802019-07-20 Christian Biesinger <cbiesinger@google.com>
3881
3882 * MAINTAINERS (Write After Approval): Add self.
3883
01e175fe
AB
38842019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3887 instruction to the dummy code region.
3888
56f79b63
TT
38892019-07-19 Tom Tromey <tromey@adacore.com>
3890
3891 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3892 (ARGSUSED, PARAMS, __func__): Remove rules.
3893
4c5aa8e0
AH
38942019-07-19 Alan Hayward <alan.hayward@arm.com>
3895
3896 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3897 * features/arm/arm-with-iwmmxt.c: Remove.
3898 * features/arm/arm-with-iwmmxt.xml: Remove.
3899 * features/arm/arm-with-m-fpa-layout.c: Remove.
3900 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3901 * features/arm/arm-with-m-vfp-d16.c: Remove.
3902 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3903 * features/arm/arm-with-m.c: Remove.
3904 * features/arm/arm-with-m.xml: Remove.
3905 * features/arm/arm-with-neon.c: Remove.
3906 * features/arm/arm-with-neon.xml: Remove.
3907 * features/arm/arm-with-vfpv2.c: Remove.
3908 * features/arm/arm-with-vfpv2.xml: Remove.
3909 * features/arm/arm-with-vfpv3.c: Remove.
3910 * features/arm/arm-with-vfpv3.xml: Remove.
3911
f42b2617
AH
39122019-07-19 Alan Hayward <alan.hayward@arm.com>
3913
3914 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3915
f29ec966
AH
39162019-07-19 Alan Hayward <alan.hayward@arm.com>
3917
3918 * arch/aarch32.c (aarch32_create_target_description): Create
3919 target descriptions using features.
3920 * arch/arm.c (arm_create_target_description)
3921 (arm_create_mprofile_target_description): Likewise.
3922 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3923
d105cce5
AH
39242019-07-19 Alan Hayward <alan.hayward@arm.com>
3925
3926 * Makefile.in: Add new files.
3927 * aarch32-tdep.c: New file.
3928 * aarch32-tdep.h: New file.
3929 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3930 Call aarch32_read_description.
3931 * arch/aarch32.c: New file.
3932 * arch/aarch32.h: New file.
3933 * arch/arm.c (arm_create_target_description)
3934 (arm_create_mprofile_target_description): New function.
3935 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3936 (arm_create_target_description)
3937 (arm_create_mprofile_target_description): New declaration.
3938 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3939 read_description functions.
3940 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3941 Likewise.
3942 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3943 * arm-tdep.c (tdesc_arm_list): New variable.
3944 (arm_register_g_packet_guesses): Call create description functions.
3945 (arm_read_description) (arm_read_mprofile_description): New
3946 function.
3947 * arm-tdep.h (arm_read_description)
3948 (arm_read_mprofile_description): Add declaration.
3949 * configure.tgt: Add new files.
3950
afe09f0b
GL
39512019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3952
3953 * top.c (new_ui_command): Open specified terminal just once.
3954
cd215b2e
TT
39552019-07-18 Tom Tromey <tromey@adacore.com>
3956
3957 * symtab.c (main_name): Constify return type.
3958 * symfile.c (set_initial_language): Update.
3959 * symtab.h (main_name): Constify return type.
3960
d8f68fcb
TT
39612019-07-17 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui-winsource.c (tui_update_source_window)
3964 (tui_update_source_window_as_is)
3965 (tui_update_source_windows_with_line): Remove return.
3966 * tui/tui-disasm.c (tui_show_disassem)
3967 (tui_show_disassem_and_update_source): Remove return.
3968 * tui/tui.c (tui_reset): Remove return.
3969 * tui/tui-wingeneral.c
3970 (tui_check_and_display_highlight_if_needed): Remove return.
3971
ca5af91e
TT
39722019-07-17 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3975
5104fe36
TT
39762019-07-17 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-winsource.h (struct tui_exec_info_window)
3979 (struct tui_source_window_base): Move from tui-data.h.
3980 * tui/tui-winsource.c: Move many method definitions from
3981 elsewhere. Remove "structuring" comments.
3982 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3983 (tui_source_window_base::refresh_window): Move to
3984 tui-winsource.c.
3985 * tui/tui-win.c (tui_source_window_base::refresh_all)
3986 (tui_source_window_base::update_tab_width)
3987 (tui_source_window_base::set_new_height)
3988 (tui_source_window_base::do_make_visible_with_new_height): Move to
3989 tui-winsource.c.
3990 * tui/tui-source.h: Update.
3991 * tui/tui-source.c (tui_source_window_base::reset): Move to
3992 tui-winsource.c.
3993 * tui/tui-disasm.h: Update.
3994 * tui/tui-data.h (struct tui_exec_info_window): Move to
3995 tui-winsource.h.
3996 (struct tui_source_window_base): Likewise.
3997 * tui/tui-data.c (tui_source_window_base::clear_detail)
3998 (tui_source_window_base, ~tui_source_window_base): Move to
3999 tui-winsource.c.
4000
daa15dde
TT
40012019-07-17 Tom Tromey <tom@tromey.com>
4002
4003 * tui/tui-win.c (tui_resize_all)
4004 (tui_source_window_base::update_tab_width)
4005 (tui_adjust_win_heights): Update.
4006 (tui_win_info::make_invisible_and_set_new_height): Rename from
4007 make_invisible_and_set_new_height.
4008 * tui/tui-data.h (struct tui_win_info)
4009 <make_invisible_and_set_new_height>: New method.
4010
bfad4537
TT
40112019-07-17 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui.c: Update.
4014 * tui/tui-source.h (struct tui_source_window): Move from
4015 tui-data.h.
4016 * tui/tui-layout.c: Update.
4017 * tui/tui-disasm.c: Update.
4018 * tui/tui-data.h (struct tui_source_window): Move to
4019 tui-source.h.
4020
88f7e873
TT
40212019-07-17 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4024 tui-data.h.
4025 * tui/tui-data.h (struct tui_disasm_window): Move to
4026 tui-disasm.h.
4027
96bd6233
TT
40282019-07-17 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-regs.h (struct tui_data_item_window): Move from
4031 tui-data.h.
4032 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4033 * tui/tui-data.h (struct tui_data_item_window): Move to
4034 tui-regs.h.
4035 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4036
ce38393b
TT
40372019-07-17 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui.c: Update.
4040 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4041 (tui_cmd_window::max_height): Move to tui-command.c.
4042 * tui/tui-layout.c: Update.
4043 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4044 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4045 tui-command.c.
4046 * tui/tui-command.h (struct tui_cmd_window): Move from
4047 tui-data.h.
4048 * tui/tui-command.c: Remove "structuring" comments.
4049 (tui_cmd_window::clear_detail)
4050 (tui_cmd_window::do_make_visible_with_new_height)
4051 (tui_cmd_window::max_height): Move from elsewhere.
4052
2d8b51cb
TT
40532019-07-17 Tom Tromey <tom@tromey.com>
4054
4055 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4056 Now static.
4057 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4058 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4059
18ab23af
TT
40602019-07-17 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui.c: Update.
4063 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4064 tui-regs.c.
4065 * tui/tui-windata.h: Remove file.
4066 * tui/tui-windata.c: Remove file.
4067 * tui/tui-win.c (tui_data_window::set_new_height)
4068 (tui_data_window::do_make_visible_with_new_height): Move to
4069 tui-regs.c.
4070 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4071 * tui/tui-regs.c: Remove "structuring" comments.
4072 (tui_data_window::first_data_item_displayed)
4073 (tui_data_window::delete_data_content_windows)
4074 (tui_data_window::erase_data_content)
4075 (tui_data_window::display_all_data)
4076 (tui_data_window::refresh_all)
4077 (tui_data_window::do_scroll_vertical)
4078 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4079 (tui_data_window::do_make_visible_with_new_height)
4080 (tui_data_window::refresh_window): Move from elsewhere.
4081 (_initialize_tui_regs): Move to end of file.
4082 * tui/tui-layout.c: Update.
4083 * tui/tui-hooks.c: Update.
4084 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4085 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4086 tui-regs.c.
4087 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4088
88b7e7cc
TT
40892019-07-17 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4092 seen.
4093
0fcd3711
TT
40942019-07-17 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-win.c (tui_source_window_base::set_new_height)
4097 (tui_source_window_base::do_make_visible_with_new_height): Use
4098 m_has_locator field directly.
4099 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4100 method.
4101 (struct tui_source_window_base) <has_locator>: Likewise.
4102
4a38112d
TT
41032019-07-17 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4106 Don't declare.
4107 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4108 Remove.
4109 * tui/tui-win.c (tui_source_window_base::set_new_height)
4110 (tui_source_window_base::set_new_height)
4111 (make_invisible_and_set_new_height)
4112 (tui_source_window_base::do_make_visible_with_new_height)
4113 (tui_source_window_base::do_make_visible_with_new_height):
4114 Update.
4115 * tui/tui-layout.c (show_source_disasm_command, show_data)
4116 (show_source_or_disasm_and_command): Update.
4117 * tui/tui-layout.c (show_layout): Update.
4118
09129226
TT
41192019-07-17 Tom Tromey <tom@tromey.com>
4120
4121 * tui/tui-layout.c (make_data_window): Remove.
4122 (show_data): Unify creation and re-initialization cases.
4123
4a8a5e84
TT
41242019-07-17 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-layout.c (make_source_window, make_disasm_window):
4127 Remove.
4128 (show_data): Unify creation and re-initialization cases.
4129
76d2be8e
TT
41302019-07-17 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-layout.c (make_command_window): Remove.
4133 (show_source_disasm_command, show_source_or_disasm_and_command):
4134 Unify creation and re-initialization cases.
4135
890b8bde
TT
41362019-07-17 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4139 creation and re-initialization cases.
4140
2cdfa113
TT
41412019-07-17 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-regs.c (tui_get_register): Return void.
4144
8e3cfd09
TT
41452019-07-17 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4148 Simplify.
4149
f4e04977
TT
41502019-07-17 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4153 resetting.
4154
0379b883
TT
41552019-07-17 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4158 * tui/tui-regs.c (tui_reg_layout): New function.
4159 (tui_show_registers, tui_reg_command): Use it.
4160 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4161 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4162 parameters.
4163 (tui_layout_command): Remove.
4164
b7fbad91
TT
41652019-07-17 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-layout.h (tui/tui-layout): Return void.
4168 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4169
4e1e56b9
TT
41702019-07-17 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-layout.c (show_source_disasm_command, show_data):
4173 Update.
4174 (reset_locator): Remove.
4175 (show_source_or_disasm_and_command): Update.
4176
1e0c09ba
TT
41772019-07-17 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-source.c (tui_source_window_base::reset): Remove
4180 win_type parameter.
4181 * tui/tui-layout.c (make_command_window, make_source_window)
4182 (make_disasm_window, make_data_window)
4183 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4184 (reset_locator, show_source_or_disasm_and_command): Update.
4185 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4186 win_type parameter.
4187 (struct tui_source_window_base) <reset>: Likewise.
4188
1bf605de
TT
41892019-07-17 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-layout.c (show_source_disasm_command): Use
4192 reset_locator.
4193 (reset_locator): New function.
4194 (init_and_make_win): Remove.
4195 (show_source_or_disasm_and_command): Use reset_locator.
4196
098f9ed4
TT
41972019-07-17 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4200 condition.
4201 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4202 Remove condition.
4203 * tui/tui-source.c (tui_source_window_base::reset): New method.
4204 * tui/tui-layout.c (make_command_window): Don't call
4205 init_and_make_win.
4206 (make_source_window, make_disasm_window): Don't call
4207 make_source_or_disasm_window.
4208 (make_data_window): Don't call init_and_make_win. Change calling
4209 convention.
4210 (show_source_disasm_command, show_data): Simplify.
4211 (make_source_or_disasm_window): Remove.
4212 (show_source_or_disasm_and_command): Simplify.
4213 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4214 (struct tui_source_window_base) <reset>: Likewise.
4215 <execution_info>: Remove initializer.
4216 * tui/tui-data.c (tui_source_window_base): Initialize
4217 execution_info.
4218
80110957
TT
42192019-07-17 Tom Tromey <tom@tromey.com>
4220
4221 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4222 variable.
4223
cf82af05
TT
42242019-07-17 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui.c (tui_rl_other_window): Update.
4227 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4228 superclass method first. Always iterate over regs_content.
4229 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4230 method.
4231 * tui/tui-win.c (tui_set_focus_command): Update.
4232
01aeb396
TT
42332019-07-17 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-win.c (tui_set_focus_command): Rename from
4236 tui_set_focus. Call tui_enable.
4237 (tui_set_focus_command): Remove.
4238
fd6c75ee
TT
42392019-07-17 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4242 refresh_window.
4243 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4244 touchwin.
4245 (tui_data_window::refresh_window): Call refresh_window on data
4246 items. Always call superclass refresh_window.
4247 (tui_win_info::refresh): Remove.
4248 (tui_source_window_base::refresh_window): Update.
4249 (tui_refresh_all): Update.
4250 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4251 refresh_window.
4252 (show_source_or_disasm_and_command): Likewise.
4253 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4254 (struct tui_source_window_base) <refresh>: Likewise.
4255
f6cc34a9
TT
42562019-07-17 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-winsource.c (tui_clear_source_content)
4259 (tui_show_source_content): Update.
4260 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4261 whether content is empty.
4262 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4263 Remove.
4264
f31ec9af
TT
42652019-07-17 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4268 window's contents.
4269 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4270 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4271
d1b6f1e5
TT
42722019-07-17 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4275 (struct tui_data_item_window): Update.
4276
d9743a13
TT
42772019-07-17 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4280 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4281 defines.
4282
caf0bc4e
TT
42832019-07-17 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-winsource.h (tui_erase_source_content)
4286 (tui_clear_source_content): Remove "display_prompt" parameter.
4287 * tui/tui-winsource.c (tui_update_source_window_as_is)
4288 (tui_update_source_windows_with_addr): Update.
4289 (tui_clear_source_content): Remove "display_prompt" parameter.
4290 (tui_erase_source_content): Likewise. Simplify.
4291 (tui_show_source_content): Update.
4292 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4293 * tui/tui-stack.c (tui_show_frame_info): Update.
4294 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4295 Remove defines.
4296
9d391078
TT
42972019-07-17 Tom Tromey <tom@tromey.com>
4298
4299 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4300 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4301 parameter.
4302 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4303 parameter.
4304
a38da35d
TT
43052019-07-17 Tom Tromey <tom@tromey.com>
4306
4307 * tui/tui-winsource.c (tui_clear_source_content)
4308 (tui_show_source_content, tui_show_exec_info_content)
4309 (tui_clear_exec_info_content): Update.
4310 * tui/tui-stack.c (tui_show_locator_content): Update.
4311 (tui_show_frame_info): Update.
4312 * tui/tui-source.h (tui_source_window): Don't declare.
4313 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4314 from tui_source_is_displayed.
4315 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4316 Remove field.
4317 (struct tui_source_window_base) <content_in_use>: New field. Now
4318 bool.
4319 (struct tui_source_window) <showing_source_p>: New method.
4320 (TUI_SRC_WIN): Change cast.
4321 * tui/tui-data.c (tui_initialize_static_data): Update.
4322
c2cd8994
TT
43232019-07-17 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4326 location_matches_p.
4327 * tui/tui-source.c (tui_source_window::location_matches_p): New
4328 method.
4329 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4330 method.
4331 * tui/tui-data.h (struct tui_source_window_base)
4332 <location_matches_p>: New method.
4333 (struct tui_source_window, struct tui_disasm_window)
4334 <location_matches_p>: Likewise.
4335
4dde7b34
TT
43362019-07-17 Tom Tromey <tom@tromey.com>
4337
4338 * tui/tui-win.c (tui_set_win_height_command): Rename from
4339 tui_set_win_height.
4340 (tui_set_win_height_command): Remove.
4341
b73dd877
TT
43422019-07-17 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-source.c (tui_source_window): New constructor. Add
4345 observer.
4346 (~tui_source_window): New destructor.
4347 (tui_source_window::style_changed): New method.
4348 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4349 (tui_attach_detach_observers): Update.
4350 * tui/tui-data.h (struct tui_source_window): Make constructor not
4351 inline. Add destructor.
4352 (struct tui_source_window) <style_changed>: New method.
4353 <m_observable>: New member.
4354
ae2b5380
TT
43552019-07-17 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4358 * tui/tui-win.c (tui_resize_all): Fix typo.
4359
1ce3e844
TT
43602019-07-17 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4363 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4364 (tui_refresh_all): Remove "list" parameter. Use foreach.
4365 * tui/tui-win.c (window_name_completer): Use foreach.
4366 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4367 (update_tab_width): Likewise.
4368 * tui/tui-layout.c (show_layout): Update.
4369 * tui/tui-data.h (class tui_window_iterator): New.
4370 (struct all_tui_windows): New.
4371 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4372
fe3eaf1c
TT
43732019-07-17 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4376 parameter. Don't reference globals.
4377 (tui_reg_command): Update.
4378
368c1354
TT
43792019-07-17 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-regs.c (tui_show_registers): Simplify.
4382
e80cd204
TT
43832019-07-17 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-regs.c (tui_show_registers): Update.
4386 (tui_show_register_group): Add win_info parameter.
4387
aca2dd16
TT
43882019-07-17 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4391 Rename from tui_display_reg_element_at_line.
4392 (tui_data_window::display_registers_from_line): Update.
4393 * tui/tui-data.h (struct tui_data_window)
4394 <display_reg_element_at_line>: New method.
4395
517e9505
TT
43962019-07-17 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-regs.h (tui_display_registers_from)
4399 (tui_display_registers_from_line): Don't declare.
4400 * tui/tui-windata.c (tui_data_window::display_all_data)
4401 (tui_data_window::refresh_all)
4402 (tui_data_window::do_scroll_vertical): Update.
4403 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4404 from tui_display_registers_from.
4405 (tui_display_reg_element_at_line): Update.
4406 (tui_data_window::display_registers_from_line): Rename from
4407 tui_display_registers_from_line.
4408 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4409 display_registers_from_line>: New methods.
4410
f76d8b19
TT
44112019-07-17 Tom Tromey <tom@tromey.com>
4412
4413 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4414 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4415 from tui_erase_data_content.
4416 (tui_data_window::display_all_data)
4417 (tui_data_window::refresh_all)
4418 (tui_data_window::do_scroll_vertical): Update.
4419 * tui/tui-regs.c (tui_show_registers): Update.
4420 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4421 New method.
4422
b4094625
TT
44232019-07-17 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4426 declare.
4427 * tui/tui-windata.c
4428 (tui_data_window::delete_data_content_windows): Rename from
4429 tui_delete_data_content_windows.
4430 (tui_data_window::display_all_data)
4431 (tui_data_window::do_scroll_vertical): Update.
4432 * tui/tui-data.h (struct tui_data_window)
4433 <delete_data_content_windows>: New method.
4434
c223a729
TT
44352019-07-17 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4438 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4439
50daf268
TT
44402019-07-17 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4443 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4444 from tui_display_all_data.
4445 * tui/tui-win.c
4446 (tui_data_window::do_make_visible_with_new_height): Update.
4447 * tui/tui-regs.c (tui_show_registers): Update.
4448 * tui/tui-layout.c (tui_set_layout): Update.
4449 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4450 method.
4451
df5f8cab
TT
44522019-07-17 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4455 * tui/tui-windata.c (tui_display_data_from): Remove.
4456 (tui_data_window::refresh_all): Update.
4457
80cb6c27
TT
44582019-07-17 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4461 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4462 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4463 tui_display_registers_from_line.
4464 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4465 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4466 "force_display" parameter.
4467
baff0c28
TT
44682019-07-17 Tom Tromey <tom@tromey.com>
4469
4470 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4471 declare.
4472 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4473 Rename from tui_first_reg_element_no_inline.
4474 (tui_display_reg_element_at_line)
4475 (tui_display_registers_from_line): Update.
4476 * tui/tui-data.h (struct tui_data_window)
4477 <first_reg_element_no_inline>: New method.
4478
3b23c5f2
TT
44792019-07-17 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-windata.c (tui_display_data_from)
4482 (tui_data_window::do_scroll_vertical): Update.
4483 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4484 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4485 Rename from tui_line_from_reg_element_no.
4486 (tui_display_registers_from_line): Update.
4487 * tui/tui-data.h (struct tui_data_window)
4488 <line_from_reg_element_no>: New method.
4489
0b5ec218
TT
44902019-07-17 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4493 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4494 tui_last_regs_line_no.
4495 (tui_display_reg_element_at_line)
4496 (tui_display_registers_from_line): Update.
4497 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4498 method.
4499
0807ab7b
TT
45002019-07-17 Tom Tromey <tom@tromey.com>
4501
4502 PR tui/24722:
4503 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4504 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4505 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4506 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4507 (tui_update_breakpoint_info): Likewise.
4508 * tui/tui-hooks.c (tui_event_create_breakpoint)
4509 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4510 Update.
4511
9ad7fdef
TT
45122019-07-17 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4515
5813316f
TT
45162019-07-17 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-winsource.c (tui_update_source_window_as_is)
4519 (tui_update_source_windows_with_addr): Update.
4520 * tui/tui-source.h (tui_set_source_content)
4521 (tui_show_symtab_source): Add "win_info" parameter.
4522 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4523 parameter.
4524 (tui_show_symtab_source): Likewise.
4525
00e264e7
TT
45262019-07-17 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-wingeneral.c
4529 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4530
06210ce4
TT
45312019-07-17 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4534 (struct tui_cmd_window) <can_scroll>: New method.
4535 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4536 method.
4537
381befee
TT
45382019-07-17 Tom Tromey <tromey@adacore.com>
4539
4540 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4541 do_field_signed>: Rename. Change type of "value".
4542 * ui-out.c (ui_out::field_signed): Rename from field_int.
4543 Change type of "value".
4544 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4545 type of "value".
4546 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4547 do_field_int. Change type of "value".
4548 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4549 do_field_int. Change type of "value".
4550 * tracepoint.c (trace_status_mi, tfind_1)
4551 (print_one_static_tracepoint_marker): Update.
4552 * thread.c (print_thread_info_1, print_selected_thread_frame):
4553 Update.
4554 * stack.c (print_frame, print_frame_info): Update.
4555 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4556 Update.
4557 * source.c (print_source_lines_base): Update.
4558 * skip.c (info_skip_command): Update.
4559 * record-btrace.c (btrace_ui_out_decode_error)
4560 (btrace_call_history_src_line): Update.
4561 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4562 Update.
4563 * progspace.c (print_program_space): Update.
4564 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4565 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4566 do_field_int. Change type of "value".
4567 * mi/mi-out.c (mi_ui_out::do_table_begin)
4568 (mi_ui_out::do_table_header): Update.
4569 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4570 type of "value".
4571 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4572 (mi_cmd_data_list_changed_registers, output_register)
4573 (mi_cmd_data_read_memory, mi_load_progress)
4574 (mi_cmd_trace_frame_collected): Update.
4575 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4576 Update.
4577 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4578 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4579 (mi_cmd_var_list_children, varobj_update_one): Update.
4580 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4581 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4583 * inferior.c (print_inferior): Update.
4584 * gdb_bfd.c (print_one_bfd): Update.
4585 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4586 Update.
4587 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4588 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4589 do_field_int. Change type of "value".
4590 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4591 do_field_int. Change type of "value".
4592 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4593 (print_one_breakpoint_location, print_it_catch_fork)
4594 (print_one_catch_fork, print_it_catch_vfork)
4595 (print_one_catch_vfork, print_it_catch_solib)
4596 (print_it_catch_exec, print_it_ranged_breakpoint)
4597 (print_mention_watchpoint, print_mention_masked_watchpoint)
4598 (bkpt_print_it, update_static_tracepoint): Update.
4599 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4600 * break-catch-syscall.c (print_it_catch_syscall): Update.
4601 * ada-tasks.c (print_ada_task_info): Update.
4602 * ada-lang.c (print_it_exception, print_mention_exception):
4603 Update.
4604
6b78c3f8
AB
46052019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 PR breakpoints/24541
4608 * gdbarch.c: Regenerate.
4609 * gdbarch.h: Regenerate.
4610 * gdbarch.sh: Adjust return type and parameter types for
4611 'stap_adjust_register'.
4612 (i386_stap_adjust_register): Adjust signature and return new
4613 register name.
4614 * stap-probe.c (stap_parse_register_operand): Adjust use of
4615 'gdbarch_stap_adjust_register'.
4616
d72a9b85
TT
46172019-07-17 Tom Tromey <tromey@adacore.com>
4618
4619 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4620 declare VEC.
4621 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4622 std::vector.
4623 (struct s390_process_info): Add initializers.
4624 (s390_add_process): Use new.
4625 (s390_linux_nat_target::low_forget_process): Use delete.
4626 (s390_linux_nat_target::low_new_fork)
4627 (s390_linux_nat_target::stopped_by_watchpoint)
4628 (s390_linux_nat_target::low_prepare_to_resume)
4629 (s390_linux_nat_target::insert_watchpoint)
4630 (s390_linux_nat_target::insert_hw_breakpoint)
4631 (s390_linux_nat_target::remove_watchpoint)
4632 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4633
206e6c58
JB
46342019-07-16 John Baldwin <jhb@FreeBSD.org>
4635
4636 * aarch64-fbsd-nat.c: Include regcache.h.
4637 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4638 argument.
4639 (aarch64_fbsd_nat_target::fetch_registers)
4640 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4641 variable.
4642 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4643
cbde90f2
JB
46442019-07-16 John Baldwin <jhb@FreeBSD.org>
4645
4646 * fbsd-nat.c: Include gdbarch.h.
4647
07128006
TT
46482019-07-15 Tom Tromey <tromey@adacore.com>
4649
4650 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4651
1f77b012
TT
46522019-07-15 Tom Tromey <tromey@adacore.com>
4653
4654 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4655 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4656 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4657 * cli-out.c (cli_ui_out::do_field_int): New method.
4658 * ui-out.c (ui_out::field_unsigned): New method.
4659 * symfile.c (generic_load): Use field_unsigned.
4660 (print_transfer_performance): Likewise.
4661 * record-btrace.c (ui_out_field_uint): Remove.
4662 (btrace_call_history_insn_range, btrace_call_history): Use
4663 field_unsigned.
4664 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4665 field_unsigned.
4666 * ui-out.h (class ui_out) <field_unsigned>: New method.
4667 <do_field_unsigned>: Likewise.
4668
33eca680
TT
46692019-07-15 Tom Tromey <tromey@adacore.com>
4670
4671 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4672 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4673 * target.c (flash_erase_command): Use field_string.
4674 * infrun.c (print_signal_received_reason): Use field_string.
4675 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4676 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4677 field_string.
4678 * ada-tasks.c (print_ada_task_info): Use field_string.
4679
ca8d69be
TT
46802019-07-15 Tom Tromey <tromey@adacore.com>
4681
4682 * target.c (flash_erase_command): Use field_core_addr.
4683 * symfile.c (generic_load): Use field_core_addr.
4684 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4685 Use field_core_addr.
4686 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4687 field_core_addr.
4688
0d4e84ed
AB
46892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4692 value if its desired type is smaller than a CORE_ADDR and signed.
4693
9a49df9d
AB
46942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4695
4696 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4697 of changes to field names, and use new is_reference field to
4698 decide if a property is a reference or not.
4699 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4700 field.
4701 (struct dwarf2_property_baton): Update header comment, rename
4702 'referenced_type' to 'property_type' and update comments.
4703 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4704 default property type, store in property baton, update to take
4705 accound of renamed field.
4706 (read_func_scope): Update call to attr_to_dynamic_prop.
4707 (read_array_type): Likewise.
4708 (dwarf2_per_cu_addr_sized_int_type): New function.
4709 (read_subrange_index_type): Move type finding code to
4710 dwarf2_per_cu_addr_sized_int_type.
4711 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4712 (dwarf2_per_cu_addr_type): New function.
4713 (set_die_type): Update calls to attr_to_dynamic_prop.
4714
b86352cf
AB
47152019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * dwarf2read.c (read_subrange_index_type): New function.
4718 (read_subrange_type): Move code into new function and call it.
4719 * gdbtypes.c (create_range_type): Add some asserts.
4720
603490bf
AB
47212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4724 update return statements.
4725 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4726 declaration, and update comment to match.
4727 * gdbtypes.c (resolve_dynamic_array): Update call to
4728 dwarf2_evaluate_property to match new return type.
4729
592f9d27
AB
47302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * valarith.c (value_subscripted_rvalue): Change lowerbound
4733 parameter type from int to LONGEST.
4734 * value.h (value_subscripted_rvalue): Likewise in declaration.
4735
60cfcb20
AB
47362019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4737
4738 * cli/cli-utils.c (info_print_command_completer): New function.
4739 * cli/cli-utils.h: Add 'completer.h' include, and forward
4740 declaration for 'struct cmd_list_element'.
4741 (info_print_command_completer): Declare.
4742 * stack.c (_initialize_stack): Add completer for 'info locals' and
4743 'info args'.
4744 * symtab.c (_initialize_symtab): Add completer for 'info
4745 variables' and 'info functions'.
4746 * NEWS: Mention completion for additional info commands.
4747
b16507e0
AB
47482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * cli/cli-utils.c (extract_info_print_args): Delete.
4751 (extract_arg_maybe_quoted): Delete.
4752 (info_print_options_defs): New variable.
4753 (make_info_print_options_def_group): New function.
4754 (extract_info_print_options): Define new function.
4755 * cli/cli-utils.h (extract_info_print_args): Delete.
4756 (struct info_print_options): New structure.
4757 (extract_info_print_options): Declare new function.
4758 * stack.c (info_locals_command): Update to use new
4759 extract_info_print_options, also add a header comment.
4760 (info_args_command): Likewise.
4761 * symtab.c (info_variables_command): Likewise.
4762 (info_functions_command): Likewise.
4763
021d8588
AB
47642019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4767 to extract string arguments.
4768 * common/common-utils.c (extract_string_maybe_quoted): New function.
4769 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4770
b777eb6d
TT
47712019-07-11 Tom Tromey <tromey@adacore.com>
4772
4773 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4774 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4775 * top.h (gdbinit): Don't declare.
4776 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4777 into...
4778 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4779 * top.c (gdb_init): Don't call init_cli_cmds.
4780 (gdbinit): Remove.
4781 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4782
72ee03ff
TT
47832019-07-11 Tom Tromey <tromey@adacore.com>
4784
4785 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4786 after it has been moved.
4787
00db9531
SM
47882019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * valops.c (value_must_coerce_to_target): Change return type to
4791 bool.
4792 * value.h (value_must_coerce_to_target): Likewise.
4793
f2478a7e
SM
47942019-07-10 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * breakpoint.c (is_hardware_watchpoint): Remove
4797 forward-declaration.
4798 (is_masked_watchpoint): Change return type to bool.
4799 (is_tracepoint): Likewise.
4800 (is_breakpoint): Likewise.
4801 (is_hardware_watchpoint): Likewise.
4802 (is_watchpoint): Likewise.
4803 (is_no_memory_software_watchpoint): Likewise.
4804 (is_catchpoint): Likewise.
4805 (breakpoint_1): Make FILTER parameter's return type bool.
4806 is_masked_watchpoint): Change return type to bool.
4807 (save_breakpoints): Make FILTER parameter's return type bool.
4808 * breakpoint.h (is_breakpoint): Change return type to bool.
4809 (is_watchpoint): Likewise.
4810 (is_catchpoint): Likewise.
4811 (is_tracepoint): Likewise.
4812
0d12e84c
TT
48132019-07-10 Tom Tromey <tom@tromey.com>
4814
4815 * defs.h: Don't include gdbarch.h.
4816 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4817 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4818 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4819 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4820 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4821 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4822 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4823 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4824 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4825 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4826 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4827 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4828 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4829 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4830 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4831 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4832 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4833 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4834 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4835 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4836 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4837 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4838 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4839 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4840 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4841 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4842 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4843
f06f1252
TT
48442019-07-10 Tom Tromey <tromey@adacore.com>
4845
4846 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4847 * breakpoint.c (init_ada_exception_breakpoint): Register as
4848 bp_catchpoint.
4849 (print_one_breakpoint_location, print_one_breakpoint): Use
4850 is_ada_exception_catchpoint.
4851 * ada-lang.c (class ada_catchpoint_location): Pass
4852 bp_loc_software_breakpoint to bp_location constructor.
4853 (is_ada_exception_catchpoint): New function.
4854
7a5d944b
TT
48552019-07-10 Tom Tromey <tromey@adacore.com>
4856
4857 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4858 VEC.
4859 (struct arm_exidx_entry): New method operator<.
4860 (struct arm_exidx_data) <section_maps>: Change type.
4861 (arm_exidx_data_free): Remove.
4862 (arm_exidx_data_key): Change type. Move lower.
4863 (arm_exidx_new_objfile): Update.
4864 (arm_compare_exidx_entries): Remove.
4865 (arm_find_exidx_entry, _initialize_arm_tdep)
4866
48c66e1d
TT
48672019-07-10 Tom Tromey <tromey@adacore.com>
4868
4869 * solib-spu.c (ocl_program_data_key): Change type.
4870 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4871 Update.
4872
a269fbf1
TT
48732019-07-10 Tom Tromey <tromey@adacore.com>
4874
4875 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4876 (struct solib_aix_inferior_data) <library_list>: Change type.
4877 (solib_aix_inferior_data_handle): Change type.
4878 (get_solib_aix_inferior_data): Update.
4879 (solib_aix_free_library_list): Remove.
4880 (library_list_start_library): Update.
4881 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4882 return type.
4883 (solib_aix_get_library_list)
4884 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4885 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4886
c294730c
TT
48872019-07-10 Tom Tromey <tromey@adacore.com>
4888
4889 * solib-dsbt.c (struct dsbt_info): Add initializers.
4890 (solib_dsbt_pspace_data): Change type.
4891 (dsbt_pspace_data_cleanup): Remove.
4892 (get_dsbt_info, _initialize_dsbt_solib): Update.
4893
9d52077d
TT
48942019-07-10 Tom Tromey <tromey@adacore.com>
4895
4896 * spu-tdep.c (spu_overlay_data): Change type.
4897 (spu_get_overlay_table, spu_overlay_new_objfile)
4898 (_initialize_spu_tdep): Update.
4899
22a20dca
TT
49002019-07-10 Tom Tromey <tromey@adacore.com>
4901
4902 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4903 destructor.
4904 (dbx_objfile_data_key): Change type and declare later.
4905 (DBX_SYMFILE_INFO): Rewrite.
4906 * dbxread.c (dbx_objfile_data_key): Change type.
4907 (dbx_symfile_init): Update.
4908 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4909 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4910 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4911
cb60f420
TT
49122019-07-10 Tom Tromey <tromey@adacore.com>
4913
4914 * jit.c (jit_program_space_key): Change type. Move lower.
4915 (get_jit_program_space_data): Update.
4916 (jit_program_space_data_cleanup): Remove.
4917 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4918 Update.
4919 (struct jit_program_space_data): Add initializers.
4920
51df2ae3
TT
49212019-07-10 Tom Tromey <tromey@adacore.com>
4922
4923 * solib-darwin.c (struct darwin_info): Add initializers.
4924 (solib_darwin_pspace_data): Change type.
4925 (darwin_pspace_data_cleanup): Remove.
4926 (get_darwin_info, _initialize_darwin_solib): Update.
4927
18101a35
TT
49282019-07-10 Tom Tromey <tromey@adacore.com>
4929
4930 * remote-sim.c (struct sim_inferior_data): Add initializers,
4931 constructor, and destructor.
4932 (sim_inferior_data_key): Change type. Move lower.
4933 (check_for_duplicate_sim_descriptor): Update.
4934 (get_sim_inferior_data): Use new. Update.
4935 (~sim_inferior_data_cleanup): Rename from
4936 sim_inferior_data_cleanup. Simplify.
4937 (gdbsim_close_inferior, simulator_command)
4938 (sim_command_completer, _initialize_remote_sim): Update.
4939 (next_pid, INITIAL_PID): Move earlier.
4940
05b08ac1
TT
49412019-07-10 Tom Tromey <tromey@adacore.com>
4942
4943 * python/python-internal.h (create_thread_object): Return
4944 gdbpy_ref.
4945 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4946 * python/py-inferior.c (struct threadlist_entry): Add
4947 constructor.
4948 <thread_obj>: Now a gdbpy_ref.
4949 (thread_to_thread_object): Update.
4950 (add_thread_object): Use new.
4951 (delete_thread_object): Use delete.
4952 (infpy_threads): Update.
4953 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4954 GIL.
4955
32372d80
TT
49562019-07-10 Tom Tromey <tromey@adacore.com>
4957
4958 * valops.c (value_cast): Specialize error message for Ada.
4959
5c458ae8
SM
49602019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4961
4962 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4963
4c462cb0
SM
49642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4965
4966 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4967 bpstat_should_step): Return bool, adjust comments.
4968 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4969 bpstat_should_step): Likewise.
4970
89abbcc2
AH
49712019-07-10 Alan Hayward <alan.hayward@arm.com>
4972
4973 * features/Makefile: Use feature target descriptions for Arm.
4974 * features/arm/arm-core.c: Generate new file.
4975 * features/arm/arm-fpa.c: Likewise.
4976 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4977 * features/arm/arm-m-profile.c: Likewise.
4978 * features/arm/arm-vfpv2.c: Likewise.
4979 * features/arm/arm-vfpv3.c: Likewise.
4980 * features/arm/xscale-iwmmxt.c: Likewise.
4981 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4982
166a82be
AH
49832019-07-10 Alan Hayward <alan.hayward@arm.com>
4984
4985 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4986 ptrace earlier.
4987
9fb4c7e9
AH
49882019-07-10 Alan Hayward <alan.hayward@arm.com>
4989
4990 * features/aarch64-pauth.c: Regenerate.
4991
e2d0f980
SM
49922019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4995 bool.
4996 (bpstat_what): Use false instead of 0.
4997
a38118e5
PA
49982019-07-09 Pedro Alves <palves@redhat.com>
4999
5000 * break-catch-throw.c (is_exception_catchpoint): New.
5001 * breakpoint.c (print_one_breakpoint_location): New parameter
5002 'raw_loc'. Handle it. Use
5003 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5004 looking at the breakpoint's type.
5005 (print_one_breakpoint): If handling "maint info breakpoints", also
5006 print locations of exception catchpoints.
5007 * breakpoint.h (is_exception_catchpoint): Declare.
5008
cb1e4e32
PA
50092019-07-09 Pedro Alves <palves@redhat.com>
5010
5011 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5012 "addr" field.
5013 (allocate_location_exception_catchpoint): New.
5014 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5015 (initialize_throw_catchpoint_ops): Install
5016 allocate_location_exception_catchpoint as allocate_location
5017 method.
5018 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5019 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5020 bp_loc_other.
5021 (breakpoint_address_is_meaningful): Delete.
5022 (bl_address_is_meaningful): New.
5023 (breakpoint_locations_match): Adjust comment.
5024 (bp_location_from_bp_type): New, factored out of...
5025 (bp_location::bp_location(breakpoint *)): ... this.
5026 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5027 factored out of...
5028 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5029 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5030 breakpoint_address_is_meaningful.
5031 (bp_locations_compare): Adjust comment.
5032 (update_global_location_list): Use bl_address_is_meaningful
5033 instead of breakpoint_address_is_meaningful.
5034 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5035 explicit.
5036 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5037 * python/py-breakpoint.c (bppy_get_location): No longer check
5038 whether location is null.
5039
b58a68fe
PA
50402019-07-09 Pedro Alves <palves@redhat.com>
5041
5042 PR c++/15468
5043 * breakpoint.c (print_one_breakpoint_location): Remove
5044 single-location assert.
5045
268a13a5
TT
50462019-07-09 Tom Tromey <tom@tromey.com>
5047
5048 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5049 * configure: Rebuild.
5050 * configure.ac: Change common to gdbsupport.
5051 * gdbsupport: Rename from common.
5052 * acinclude.m4: Change common to gdbsupport.
5053 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5054 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5055 gdbsupport.
5056 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5057 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5058 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5059 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5060 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5061 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5062 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5063 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5064 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5065 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5066 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5067 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5068 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5069 coff-pe-read.c, command.h, compile/compile-c-support.c,
5070 compile/compile-c.h, compile/compile-cplus-symbols.c,
5071 compile/compile-cplus-types.c, compile/compile-cplus.h,
5072 compile/compile-loc2c.c, compile/compile.c, completer.c,
5073 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5074 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5075 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5076 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5077 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5078 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5079 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5080 features/aarch64-core.c, features/aarch64-fpu.c,
5081 features/aarch64-pauth.c, features/aarch64-sve.c,
5082 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5083 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5084 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5085 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5086 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5087 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5088 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5089 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5090 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5091 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5092 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5093 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5094 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5095 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5096 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5097 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5098 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5099 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5100 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5101 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5102 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5103 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5104 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5105 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5106 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5107 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5108 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5109 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5110 minsyms.c, mips-linux-tdep.c, namespace.h,
5111 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5112 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5113 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5114 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5115 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5116 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5117 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5118 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5119 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5120 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5121 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5122 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5123 procfs.c, producer.c, progspace.h, psymtab.h,
5124 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5125 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5126 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5127 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5128 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5129 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5130 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5131 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5132 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5133 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5134 target-memory.c, target.c, target.h, target/waitstatus.c,
5135 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5136 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5137 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5138 unittests/array-view-selftests.c,
5139 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5140 unittests/common-utils-selftests.c,
5141 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5142 unittests/format_pieces-selftests.c,
5143 unittests/function-view-selftests.c,
5144 unittests/lookup_name_info-selftests.c,
5145 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5146 unittests/mkdir-recursive-selftests.c,
5147 unittests/observable-selftests.c,
5148 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5149 unittests/parse-connection-spec-selftests.c,
5150 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5151 unittests/scoped_fd-selftests.c,
5152 unittests/scoped_mmap-selftests.c,
5153 unittests/scoped_restore-selftests.c,
5154 unittests/string_view-selftests.c, unittests/style-selftests.c,
5155 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5156 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5157 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5158 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5159 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5160 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5161
5b0e2db4
AB
51622019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5165 bool value.
5166 (decode_digits_ordinary): Set explicit_line field in sal.
5167 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5168 symtab_and_line that was set on an explicit line number in
5169 assembler code. Do always update the recorded symtab and line if
5170 we do skip the prologue.
5171
0ba852ab
AB
51722019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5173
5174 * breakpoint.c (set_breakpoint_location_function): Remove
5175 explicit_loc parameter.
5176 (momentary_breakpoint_from_master): Update call to
5177 set_breakpoint_location_function.
5178 (add_location_to_breakpoint): Likewise.
5179
b3a7d171
AB
51802019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5181
5182 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5183 required features based on default bfd type when no specific bfd
5184 is present.
5185
1f6f6e21
PW
51862019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5187
5188 * NEWS: Mention that GDB printf and eval commands can now print
5189 C-style and Ada-style convenience var strings without
5190 calling the inferior.
5191 * printcmd.c (printf_c_string): Locally print GDB internal var
5192 instead of transiting via the inferior.
5193 (printf_wide_c_string): Likewise.
5194
51952019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5196
5862c886 5197 PR breakpoints/25011
ea142fbf
AH
5198 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5199
0598af48
TT
52002019-07-04 Tom Tromey <tom@tromey.com>
5201
5202 PR tui/24724:
5203 * tui/tui-winsource.c (tui_clear_source_content): Update.
5204 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5205 (tui_update_breakpoint_info): Update.
5206 (tui_set_exec_info_content): Update.
5207 * tui/tui-source.c (tui_set_source_content_nil): Update.
5208 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5209 has_break.
5210 * tui/tui-data.h (enum tui_bp_flag): New.
5211 (tui_bp_flags): New enum flags type.
5212 (struct tui_source_element) <break_mode>: Change type. Rename
5213 from has_break.
5214 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5215 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5216 constants.
5217 * tui/tui-winsource.h: Fix comment.
5218
350fab54
AH
52192019-07-04 Alan Hayward <alan.hayward@arm.com>
5220
5221 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5222 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5223 (store_fpregs_to_thread)
5224 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5225 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5226 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5227 (IWMMXT_REGS_SIZE): Add define.
5228 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5229 (fetch_vfp_regs, store_vfp_regs)
5230 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5231 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5232
f0452268
AH
52332019-07-04 Alan Hayward <alan.hayward@arm.com>
5234
5235 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5236 defines.
5237 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5238 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5239 (ARM_INT_REGISTER_SIZE): ...to this.
5240 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5241 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5242 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5243 (arm_linux_collect_gregset, supply_nwfpe_register)
5244 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5245 defines.
5246 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5247 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5248 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5249 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5250 (arm_return_in_memory, arm_store_return_value)
5251 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5252 (arm_record_ld_st_multiple): Likewise.
5253 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5254 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5255
e935475c
AH
52562019-07-04 Alan Hayward <alan.hayward@arm.com>
5257
5258 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5259 AARCH64_DISPLACED_MODIFIED_INSNS.
5260 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5261 (aarch64_displaced_step_copy_insn): Likewise.
5262 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5263 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5264 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5265 ARM_DISPLACED_MODIFIED_INSNS.
5266 * arm-tdep.c (arm_gdbarch_init): Likewise.
5267 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5268 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5269 (struct arm_displaced_step_closure): Use
5270 ARM_DISPLACED_MODIFIED_INSNS.
5271
df0bb381
AH
52722019-07-04 Alan Hayward <alan.hayward@arm.com>
5273
5274 * features/Makefile: Remove unused xml files.
5275 * features/aarch64.xml: Remove.
5276 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5277 * features/i386/amd64-avx-avx512.xml: Remove.
5278 * features/i386/amd64-avx-linux.xml: Remove.
5279 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5280 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5281 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5282 * features/i386/amd64-avx-mpx.xml: Remove.
5283 * features/i386/amd64-avx.xml: Remove.
5284 * features/i386/amd64-linux.xml: Remove.
5285 * features/i386/amd64-mpx-linux.xml: Remove.
5286 * features/i386/amd64-mpx.xml: Remove.
5287 * features/i386/amd64.xml: Remove.
5288 * features/i386/i386-avx-avx512-linux.xml: Remove.
5289 * features/i386/i386-avx-avx512.xml: Remove.
5290 * features/i386/i386-avx-linux.xml: Remove.
5291 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5292 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5293 * features/i386/i386-avx-mpx-linux.xml: Remove.
5294 * features/i386/i386-avx-mpx.xml: Remove.
5295 * features/i386/i386-avx.xml: Remove.
5296 * features/i386/i386-linux.xml: Remove.
5297 * features/i386/i386-mmx-linux.xml: Remove.
5298 * features/i386/i386-mmx.xml: Remove.
5299 * features/i386/i386-mpx-linux.xml: Remove.
5300 * features/i386/i386-mpx.xml: Remove.
5301 * features/i386/i386.xml: Remove.
5302 * features/i386/x32-avx-avx512-linux.xml: Remove.
5303 * features/i386/x32-avx-linux.xml: Remove.
5304 * features/i386/x32-linux.xml: Remove.
5305
edd6266a
AH
53062019-07-04 Alan Hayward <alan.hayward@arm.com>
5307
5308 * regformats/aarch64.dat: Remove.
5309 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5310 * regformats/i386/amd64-avx-linux.dat: Remove.
5311 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5312 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5313 * regformats/i386/amd64-linux.dat: Remove.
5314 * regformats/i386/amd64-mpx-linux.dat: Remove.
5315 * regformats/i386/amd64.dat: Remove.
5316 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5317 * regformats/i386/i386-avx-linux.dat: Remove.
5318 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5319 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5320 * regformats/i386/i386-linux.dat: Remove.
5321 * regformats/i386/i386-mmx-linux.dat: Remove.
5322 * regformats/i386/i386-mpx-linux.dat: Remove.
5323 * regformats/i386/i386.dat: Remove.
5324 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5325 * regformats/i386/x32-avx-linux.dat: Remove.
5326 * regformats/i386/x32-linux.dat: Remove.
5327
2b40fda7
AH
53282019-07-04 Alan Hayward <alan.hayward@arm.com>
5329
5330 * aarch64-tdep.c: Remove xml self tests.
5331 * amd64-linux-tdep.c: Likewise.
5332 * amd64-tdep.c: Likewise.
5333 * i386-linux-tdep.c: Likewise.
5334 * i386-tdep.c: Likewise.
5335
5f4ba3e7
PA
53362019-07-03 Pedro Alves <palves@redhat.com>
5337
5338 PR cli/24732
5339 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5340 (pipe_cmd_option_defs): New.
5341 (make_pipe_cmd_options_def_group): New.
5342 (pipe_command): Use gdb::option::process_options.
5343 (pipe_command_completer): New function.
5344 (_initialize_cli_cmds): Install completer for "pipe" command.
5345
3d9be6f5
PA
53462019-07-03 Pedro Alves <palves@redhat.com>
5347
5348 * cli/cli-option.c (union option_value) <string>: New field.
5349 (struct option_def_and_value): Add ctor, move ctor, dtor and
5350 use DISABLE_COPY_AND_ASSIGN.
5351 (option_def_and_value::clear_value): New.
5352 (parse_option, save_option_value_in_ctx, get_val_type_str)
5353 (add_setshow_cmds_for_options): Handle var_string.
5354 * cli-option.h (union option_def::var_address) <string>: New
5355 field.
5356 (struct string_option_def): New.
5357 * maint-test-options.c (struct test_options_opts): Add default
5358 ctor and use DISABLE_COPY_AND_ASSIGN.
5359 <string_opt>: New field.
5360 (test_options_opts::~test_options_opts): New.
5361 (test_options_opts::dump): Also dump "-string".
5362 (test_options_option_defs): Install "string.
5363
41fc454c
PA
53642019-07-03 Pedro Alves <palves@redhat.com>
5365
5366 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5367 option_value with a null enumeration.
5368 (complete_options): Save the option values in the context.
5369 (save_option_value_in_ctx): New, factored out from ...
5370 (process_options): ... here.
5371 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5372 of the function.
5373 * maint-test-options.c (test_options_opts::dump): New, factored
5374 out from ...
5375 (maintenance_test_options_command_mode): ... here.
5376 (maintenance_test_options_command_completion_result): Delete.
5377 (maintenance_test_options_command_completion_text): Update
5378 comment.
5379 (maintenance_show_test_options_completion_result): Change
5380 prototype. Just print
5381 maintenance_test_options_command_completion_text.
5382 (save_completion_result): New.
5383 (maintenance_test_options_completer_mode): Pass options context to
5384 complete_options, and then save a dump.
5385 (_initialize_maint_test_options): Use add_cmd to install "maint
5386 show test-options-completion-result".
5387
fdbc9870
PA
53882019-07-03 Pedro Alves <palves@redhat.com>
5389
5390 * NEWS (New commands): Mention "with" and "maint with".
5391 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5392 (with_command, with_command_completer): New.
5393 (pipe_command): Adjust to new repeat_previous
5394 interface.
5395 (_initialize_cli_cmds): Install the "with" command and its "w"
5396 alias.
5397 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5398 declarations.
5399 * cli/cli-setshow.c (parse_cli_var_uinteger)
5400 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5401 argument strings for all var_types.
5402 (get_setshow_command_value_string): New, factored out from ...
5403 (do_show_command): ... this.
5404 * cli/cli-setshow.h: Include <string>.
5405 (get_setshow_command_value_string): Declare.
5406 * command.h (repeat_previous): Now returns const char *. Adjust
5407 comment.
5408 * maint.c: Include "cli/cli-cmds.h".
5409 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5410 (_initialize_maint_cmds): Register the "maintenance with" command.
5411 * top.c (repeat_previous): Move bits from pipe_command here:
5412 Return the saved command line, if any; error out if there's no
5413 command to relaunch.
5414
c6ac8931
PA
54152019-07-03 Pedro Alves <palves@redhat.com>
5416
5417 * NEWS (New commands): Mention "maint set/show test-settings"
5418 instead of "maint test-settings".
5419 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5420 (maintenance_test_settings_set_list): Rename to ...
5421 (maintenance_set_test_settings_list): ... this.
5422 (maintenance_test_settings_show_list): Rename to ...
5423 (maintenance_show_test_settings_list): ... this.
5424 (maintenance_test_settings_cmd): Delete.
5425 (maintenance_test_settings_set_cmd): ...
5426 (maintenance_set_test_settings_cmd): ... this.
5427 (maintenance_test_settings_show_cmd): ...
5428 (maintenance_show_test_settings_cmd): ... this.
5429 (maintenance_test_settings_show_value_cmd):
5430 (maintenance_show_test_settings_value_cmd): ... this.
5431 (_initialize_maint_test_settings): No longer install the "maint
5432 test-settings" prefix command. Rename "maint test-settings set"
5433 to "maint set test-settings", and "maint test-settings show" to
5434 "maint show test-settings". Adjust all subcommands.
5435
d1fcf2fd
PA
54362019-07-03 Pedro Alves <palves@redhat.com>
5437
5438 * maint-test-settings.c: Fix file's intro comment. Replace all
5439 references to "test-options" with references to "test-settings",
5440 in comments.
5441
970f9d09
PA
54422019-07-03 Pedro Alves <palves@redhat.com>
5443
5444 * maint-test-settings.c (maintenance_test_settings_xxx)
5445 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5446 New.
5447 (maintenance_test_settings_enums): Use them.
5448 (maintenance_test_settings_enum): Default to
5449 maintenance_test_settings_xxx.
5450 (_initialize_maint_test_settings): Initialize
5451 MAINTENANCE_TEST_SETTINGS_FILENAME.
5452
f3869b1a
SM
54532019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * breakpoint.h (remove_breakpoints_inf): Change return type to
5456 void, move function documentation here.
5457 * breakpoint.c (remove_breakpoints_inf): Change return type to
5458 void, move function documentation to header.
5459
54d66006
PA
54602019-07-02 Pedro Alves <palves@redhat.com>
5461
5462 * NEWS (Completion improvements): Mention "info threads".
5463 * thread.c (struct info_threads_opts, info_threads_option_defs)
5464 (make_info_threads_options_def_group): New.
5465 (info_threads_command): Use gdb::option::process_options.
5466 (info_threads_command_completer): New.
5467 (_initialize_thread): Use gdb::option::build_help to build the
5468 help text for "info threads".
5469
854f6088
SM
54702019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * defs.h (generic_load): Move from here...
5473 * symfile.h (generic_load): ... to here. Rename name parameter
5474 to args.
5475 * symfile.c (generic_load): Add comment.
5476
54ee4252
TT
54772019-07-01 Tom Tromey <tromey@adacore.com>
5478
5479 * dwarf2read.c
5480 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5481 declaration of without_params. Fix formatting.
5482
65392b3e
TT
54832019-07-01 Tom Tromey <tromey@adacore.com>
5484
5485 * ada-exp.y (find_primitive_type): Update.
5486 * ada-lang.h (ada_lookup_symbol): Update.
5487 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5488 parameter.
5489 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5490
7d7571f0
SDJ
54912019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5492
5493 PR breakpoints/24541
5494 * gdbarch.c: Regenerate.
5495 * gdbarch.h: Regenerate.
5496 * gdbarch.sh: Add 'stap_adjust_register'.
5497 * i386-tdep.c: Include '<unordered_set>'.
5498 (i386_stap_adjust_register): New function.
5499 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5500 * stap-probe.c (stap_parse_register_operand): Call
5501 'gdbarch_stap_adjust_register'.
5502
5af5392a
SDJ
55032019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5504
5505 PR python/24742
5506 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5507 * python/python.c (do_start_initialization): Use 'xmalloc'
5508 instead of 'PyMem_Malloc'.
5509
10d06d82
TT
55102019-06-28 Tom Tromey <tromey@adacore.com>
5511
5512 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5513 for Ada.
5514
1b7f24cd
TT
55152019-06-27 Tom Tromey <tromey@adacore.com>
5516
5517 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5518 objfile_key.
5519 (arm_find_mapping_symbol, arm_record_special_symbol)
5520 (_initialize_arm_tdep): Update.
5521 (arm_objfile_data_free): Remove.
5522
3d507ff2
TT
55232019-06-27 Tom Tromey <tromey@adacore.com>
5524
5525 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5526 to cp_print_static_field.
5527
762c164d
TT
55282019-06-26 Tom Tromey <tromey@adacore.com>
5529
5530 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5531 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5532 declare.
5533
aa2f9bcf
AH
55342019-06-26 Alan Hayward <alan.hayward@arm.com>
5535
5536 * features/aarch64-core.c (create_feature_aarch64_core):
5537 Regenerate.
5538 * features/aarch64-core.xml: Add cpsr flags.
5539
3426ae57
AH
55402019-06-26 Alan Hayward <alan.hayward@arm.com>
5541
5542 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5543 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5544
4838e44c
SM
55452019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5548 field.
5549 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5550 use.
5551 (arm_record_special_symbol): Don't insert new symbol in sorted
5552 position, push it at the end.
5553
54cc7474
SM
55542019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5555
5556 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5557 (arm_mapping_symbol_s): Remove.
5558 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5559 (arm_mapping_symbol_vec): New typedef.
5560 (struct arm_per_objfile): Add constructor.
5561 <section_maps>: Change type to
5562 std::unique_ptr<arm_mapping_symbol_vec[]>.
5563 (arm_compare_mapping_symbols): Remove.
5564 (arm_find_mapping_symbol): Adjust to section_maps type change.
5565 (arm_objfile_data_free): Call delete on arm_per_objfile.
5566 (arm_record_special_symbol): Adjust to section_maps type change.
5567 Allocate arm_per_objfile with new.
5568
b65b566c
PW
55692019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5570
5571 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5572 with the command prefix.
5573
c2fc64f5
TT
55742019-06-25 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5577 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5578
fb54fa76
TT
55792019-06-25 Tom Tromey <tom@tromey.com>
5580
5581 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5582 type.
5583 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5584 protected.
5585
f7952c57
TT
55862019-06-25 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-winsource.c
5589 (tui_source_window_base::set_is_exec_point_at): Add check against
5590 LOA_ADDRESS.
5591
17568d78
TT
55922019-06-25 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-source.c (tui_set_source_content): Don't check before
5595 xfree.
5596 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5597
53e7cdba
TT
55982019-06-25 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-winsource.h (tui_update_source_window_as_is)
5601 (tui_alloc_source_buffer, tui_line_is_displayed)
5602 (tui_addr_is_displayed): Change type of win_info.
5603 * tui/tui-winsource.c (tui_update_source_window_as_is)
5604 (tui_clear_source_content, tui_show_source_line)
5605 (tui_show_source_content, tui_source_window_base::refill)
5606 (tui_source_window_base::set_is_exec_point_at)
5607 (tui_source_window_base::set_is_exec_point_at)
5608 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5609 (tui_alloc_source_buffer, tui_line_is_displayed)
5610 (tui_addr_is_displayed): Change type of win_info. Update.
5611 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5612 (tui_source_window_base::do_make_visible_with_new_height):
5613 Update.
5614 * tui/tui-source.c (tui_set_source_content)
5615 (tui_set_source_content_nil)
5616 (tui_source_window::do_scroll_vertical): Update.
5617 * tui/tui-layout.c (show_layout): Update.
5618 * tui/tui-disasm.c (tui_set_disassem_content)
5619 (tui_disasm_window::do_scroll_vertical): Update.
5620 * tui/tui-data.h (tui_win_content): Remove.
5621 (struct tui_gen_win_info) <content, content_size>: Remove.
5622 (struct tui_source_element): Add initializers and destructor.
5623 (union tui_which_element, struct tui_win_element): Remove.
5624 (struct tui_source_window_base) <content>: New field.
5625 (struct tui_data_window): Remove destructor.
5626 (tui_alloc_content, tui_free_win_content)
5627 (tui_free_all_source_wins_content): Don't declare.
5628 * tui/tui-data.c (tui_initialize_static_data): Update.
5629 (init_content_element, tui_alloc_content): Remove.
5630 (~tui_gen_win_info): Update.
5631 (~tui_data_window, tui_free_all_source_wins_content)
5632 (tui_free_win_content, free_content, free_content_elements):
5633 Remove.
5634
7908abbf
TT
56352019-06-25 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-winsource.h (tui_clear_source_content)
5638 (tui_erase_source_content, tui_show_source_content): Change type
5639 of win_info.
5640 * tui/tui-winsource.c (tui_clear_source_content)
5641 (tui_erase_source_content, tui_show_source_content): Change type
5642 of win_info.
5643 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5644 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5645 win_info.
5646 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5647 win_info.
5648 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5649
02c28df0
TT
56502019-06-25 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-winsource.c (tui_clear_source_content)
5653 (tui_source_window_base::set_is_exec_point_at): Update.
5654 * tui/tui-source.c (tui_set_source_content_nil): Update.
5655 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5656 a bool.
5657 * tui/tui-data.c (init_content_element): Update.
5658
6658b1bf
TT
56592019-06-25 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5662 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5663 * tui/tui-layout.c (init_and_make_win): Update.
5664 * tui/tui.h (enum tui_win_type): Update.
5665 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5666 tui_win_is_auxillary.
5667 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5668 tui_win_is_auxillary.
5669
21e1c91e
TT
56702019-06-25 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5673 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5674 (tui_delete_data_content_windows, tui_display_all_data)
5675 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5676 Update.
5677 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5678 * tui/tui-regs.c (tui_last_regs_line_no)
5679 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5680 (tui_show_registers): Update.
5681 (tui_show_register_group): Return void. Update.
5682 (tui_display_registers_from, tui_display_reg_element_at_line)
5683 (tui_display_registers_from_line, tui_check_register_values):
5684 Update.
5685 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5686 member.
5687 (struct tui_data_window) <regs_content>: Now a std::vector.
5688 <regs_content_count>: Remove.
5689 (tui_add_content_elements, tui_free_data_content): Don't declare.
5690 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5691 (init_content_element): Remove DATA_WIN case. Add assert.
5692 (tui_add_content_elements): Remove.
5693 (tui_data_window): Update.
5694 (tui_free_data_content): Remove.
5695 (free_content_elements): Remove DATA_WIN case.
5696
115ac53b
TT
56972019-06-25 Tom Tromey <tom@tromey.com>
5698
5699 * tui/tui-data.c (tui_data_item_window): Update.
5700 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5701 * tui/tui-windata.c (tui_display_all_data)
5702 (tui_display_data_from_line): Update.
5703 (tui_check_data_values): Remove.
5704 * tui/tui-regs.c (tui_show_register_group)
5705 (tui_display_reg_element_at_line): Update.
5706 * tui/tui-hooks.c (tui_register_changed)
5707 (tui_refresh_frame_and_register_information): Call
5708 tui_check_register_values.
5709 * tui/tui-data.h (struct tui_data_window) <data_content,
5710 data_content_count, data_type>: Remove.
5711 (enum tui_data_type): Remove.
5712
5713 * tui/tui-data.c (tui_data_window::clear_detail)
5714 (~tui_data_window): Update.
5715
eaf9738b
TT
57162019-06-25 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5719 declare.
5720 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5721 Rename from tui_first_data_item_displayed. Update.
5722 (tui_data_window::refresh_all)
5723 (tui_data_window::do_scroll_vertical): Update.
5724 * tui/tui-data.h (struct tui_data_window)
5725 <first_data_item_displayed>: Declare new method.
5726
31ca4723
TT
57272019-06-25 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5730 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5731 contents...
5732 (tui_initialize_static_data): ...here.
5733
41bcff7f
TT
57342019-06-25 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5737 (tui_display_registers_from, tui_check_register_values): Update.
5738 (tui_display_register): Remove win_info parameter; update.
5739 (tui_get_register): Change type of parameters.
5740 * tui/tui-data.h (struct tui_data_element): Remove.
5741 (union tui_which_element) <data>: Remove.
5742 <data_window>: Change type.
5743 (struct tui_data_item_window): New.
5744 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5745 case. Add assert.
5746 (~tui_data_item_window): New destructor.
5747 (free_content_elements): Remove DATA_ITEM_WIN case.
5748
d2802c33
TT
57492019-06-25 Tom Tromey <tom@tromey.com>
5750
5751 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5752 Remove.
5753
dd835f8b
TT
57542019-06-25 Tom Tromey <tom@tromey.com>
5755
5756 * tui/tui-data.h (struct tui_command_element): Remove.
5757 (union tui_which_element) <command>: Remove.
5758 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5759 assert.
5760 (free_content_elements): Remove CMD_WIN case.
5761
bd7db367
TT
57622019-06-25 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-layout.c (tui_set_layout): Update.
5765 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5766 * tui/tui-data.c (layout_def): Update.
5767
3add462f
TT
57682019-06-25 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5771 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5772 (tui_source_window_base::set_new_height): Update.
5773 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5774 Update.
5775 (tui_set_locator_fullname, tui_set_locator_info)
5776 (tui_show_frame_info): Update.
5777 * tui/tui-source.c (tui_set_source_content)
5778 (tui_source_is_displayed): Update.
5779 * tui/tui-layout.c (show_source_disasm_command, show_data)
5780 (show_source_or_disasm_and_command): Update.
5781 * tui/tui-disasm.c (tui_set_disassem_content)
5782 (tui_get_begin_asm_address): Update.
5783 * tui/tui-data.h (struct tui_locator_element): Remove.
5784 (union tui_which_element) <locator>: Remove.
5785 (struct tui_locator_window): New.
5786 (tui_locator_win_info_ptr): Change return type.
5787 * tui/tui-data.c (_locator): Change type.
5788 (tui_locator_win_info_ptr): Change return type.
5789 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5790 (tui_alloc_content): Add assert.
5791
489e9d8b
TT
57922019-06-25 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-winsource.c
5795 (tui_exec_info_window::maybe_allocate_content): New method.
5796 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5797 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5798 (make_source_or_disasm_window): Add cast.
5799 * tui/tui-data.h (union tui_which_element) <simple_string>:
5800 Remove.
5801 (struct tui_source_info): New.
5802 (struct tui_source_window_base) <execution_info>: Change type.
5803 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5804 case, and add assert.
5805 (tui_alloc_content): Add assert.
5806
c3fabb7d
TT
58072019-06-25 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5810 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5811 * tui/tui-data.c (tui_alloc_win_info): Remove.
5812
bbc228ee
TT
58132019-06-25 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5816 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5817 can_highlight.
5818
5fcee43a
TT
58192019-06-25 Tom Tromey <tom@tromey.com>
5820
5821 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5822 make_visible_with_new_height method.
5823 (tui_win_info::make_visible_with_new_height): New method.
5824 (tui_source_window_base::do_make_visible_with_new_height)
5825 (tui_data_window::do_make_visible_with_new_height)
5826 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5827 (make_visible_with_new_height): Remove.
5828 (tui_resize_all, tui_adjust_win_heights): Use
5829 make_visible_with_new_height method.
5830 * tui/tui-data.h (struct tui_win_info)
5831 <do_make_visible_with_new_height, make_visible_with_new_height>:
5832 New methods.
5833 (struct tui_source_window_base, struct tui_data_window)
5834 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5835 methods.
5836
d83f1fe6
TT
58372019-06-25 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5840 method.
5841 (update_tab_width): Call update_tab_width method.
5842 * tui/tui-data.h (struct tui_win_info)
5843 (struct tui_source_window_base) <update_tab_width>: New methods.
5844
17374de4
TT
58452019-06-25 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5848 parameter.
5849 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5850 parameter.
5851 (tui_gen_win_info::make_visible): Update.
5852 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5853 parameter.
5854 * tui/tui-data.h (enum tui_box): New enum.
5855 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5856
f936bca2
TT
58572019-06-25 Tom Tromey <tom@tromey.com>
5858
5859 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5860 init_and_make_win for EXEC_INFO_WIN.
5861 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5862 longer inline.
5863 (struct tui_win_info) <~tui_win_info>: Inline.
5864 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5865 Don't declare.
5866 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5867 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5868 Remove.
5869 (tui_initialize_static_data): Update.
5870 (~tui_gen_win_info): Handle more cleanup here.
5871 (~tui_source_window_base): Delete "execution_info".
5872 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5873
d6ba6a11
TT
58742019-06-25 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-layout.c (make_command_window): Don't set
5877 can_highlight.
5878 (show_source_disasm_command): Call the reset method.
5879 (show_data): Don't set can_highlight. Call the reset method.
5880 (tui_gen_win_info::reset): Rename from init_gen_win_info
5881 (init_and_make_win): Simplify. Return tui_gen_win_info.
5882 (show_source_or_disasm_and_command): Call the reset method.
5883 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5884 (struct tui_cmd_window): Set can_highlight.
5885
48a3bd16
TT
58862019-06-25 Tom Tromey <tom@tromey.com>
5887
5888 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5889 from make_visible.
5890 (tui_make_visible, tui_make_invisible): Rewrite.
5891 (tui_win_info::make_visible): Remove.
5892 (tui_source_window_base::make_visible): Update.
5893 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5894 method. Moved from...
5895 (struct tui_win_info) <make_visible>: ...here.
5896
c3bd716f
TT
58972019-06-25 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-winsource.c
5900 (tui_source_window_base::do_scroll_horizontal): Remove direction
5901 parameter.
5902 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5903 direction parameter.
5904 * tui/tui-win.c (tui_win_info::forward_scroll)
5905 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5906 (tui_win_info::right_scroll): Update.
5907 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5908 direction parameter.
5909 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5910 direction parameter.
5911 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5912 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5913 Remove direction parameter.
5914 (struct tui_source_window_base, struct tui_source_window)
5915 (struct tui_disasm_window, struct tui_data_window)
5916 (struct tui_cmd_window): Update.
5917
21c32dca
TT
59182019-06-25 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-winsource.h (tui_set_exec_info_content)
5921 (tui_show_exec_info_content, tui_erase_exec_info_content)
5922 (tui_clear_exec_info_content, tui_update_exec_info): Change
5923 argument to tui_source_window_base.
5924 * tui/tui-winsource.c (tui_set_exec_info_content)
5925 (tui_show_exec_info_content, tui_erase_exec_info_content)
5926 (tui_clear_exec_info_content, tui_update_exec_info): Change
5927 argument to tui_source_window_base.
5928
73fbdc65
TT
59292019-06-25 Tom Tromey <tom@tromey.com>
5930
5931 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5932 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5933
33325343
TT
59342019-06-25 Tom Tromey <tom@tromey.com>
5935
5936 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5937 check.
5938
29d2c474
TT
59392019-06-25 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5942 type to void.
5943 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5944 type to void.
5945 * tui/tui-source.c (tui_set_source_content): Update.
5946 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5947
152f3f4b
TT
59482019-06-25 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-win.c (window_name_completer, tui_set_focus)
5951 (tui_all_windows_info): Use name method.
5952 * tui/tui-data.h (struct tui_gen_win_info)
5953 (struct tui_source_window, struct tui_disasm_window)
5954 (struct tui_data_window, struct tui_cmd_window) <name>: New
5955 method.
5956 (tui_win_name): Don't declare.
5957 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5958 (tui_win_name): Remove.
5959
be4da588
TT
59602019-06-25 Tom Tromey <tom@tromey.com>
5961
5962 * tui/tui-winsource.h (tui_update_source_window)
5963 (tui_update_source_window_as_is): Change parameter type.
5964 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5965 to be a tui_source_window_base.
5966 (tui_update_source_window_as_is): Likewise.
5967 * tui/tui-win.c (make_visible_with_new_height): Update.
5968
5b81daba
TT
59692019-06-25 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-winsource.c (tui_erase_source_content)
5972 (tui_show_source_content, tui_show_exec_info_content)
5973 (tui_erase_exec_info_content): Use refresh_window method.
5974 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5975 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5976 from tui_refresh_win.
5977 (tui_data_window::refresh_window): New method.
5978 (tui_win_info::refresh, tui_source_window_base::refresh)
5979 (tui_refresh_all): Use refresh_window method.
5980 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5981 method.
5982 * tui/tui-regs.c (tui_display_register): Call refresh_window
5983 method.
5984 * tui/tui-layout.c (show_source_disasm_command)
5985 (show_source_or_disasm_and_command): Call refresh_window method.
5986 * tui/tui-data.h (struct tui_gen_win_info)
5987 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5988 New method.
5989
cb2ce893
TT
59902019-06-25 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui.c (tui_rl_other_window, tui_enable)
5993 (tui_is_window_visible, tui_get_command_dimension): Update.
5994 * tui/tui-winsource.c (tui_update_source_window_as_is)
5995 (tui_clear_source_content, tui_erase_source_content)
5996 (tui_show_source_line, tui_source_window_base::refill)
5997 (tui_source_window_base::do_scroll_horizontal)
5998 (tui_source_window_base::set_is_exec_point_at)
5999 (tui_update_breakpoint_info, tui_set_exec_info_content)
6000 (tui_alloc_source_buffer, tui_line_is_displayed)
6001 (tui_addr_is_displayed): Update.
6002 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6003 (tui_check_and_display_highlight_if_needed)
6004 (tui_win_info::make_visible, tui_win_info::refresh)
6005 (tui_refresh_all): Update.
6006 * tui/tui-windata.c (tui_first_data_item_displayed)
6007 (tui_delete_data_content_windows, tui_erase_data_content)
6008 (tui_display_all_data, tui_data_window::refresh_all)
6009 (tui_check_data_values): Update.
6010 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6011 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6012 (tui_win_info::backward_scroll, tui_refresh_all_win)
6013 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6014 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6015 (tui_source_window_base::set_new_height)
6016 (tui_data_window::set_new_height)
6017 (make_invisible_and_set_new_height)
6018 (make_visible_with_new_height, new_height_ok)
6019 (parse_scrolling_args): Update.
6020 * tui/tui-stack.c (tui_show_frame_info): Update.
6021 * tui/tui-source.c (tui_set_source_content)
6022 (tui_set_source_content_nil, tui_source_is_displayed)
6023 (tui_source_window::do_scroll_vertical): Update.
6024 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6025 (tui_display_registers_from, tui_display_reg_element_at_line)
6026 (tui_check_register_values, tui_reg_command): Update.
6027 * tui/tui-layout.c (tui_default_win_height)
6028 (show_source_disasm_command, show_data, init_and_make_win)
6029 (show_source_or_disasm_and_command): Update.
6030 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6031 (tui_redisplay_readline, tui_mld_flush)
6032 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6033 (tui_getc): Update.
6034 * tui/tui-disasm.c (tui_set_disassem_content)
6035 (tui_disasm_window::do_scroll_vertical): Update.
6036 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6037 Now virtual.
6038 (struct tui_win_info): Derive from tui_gen_win_info.
6039 <~tui_win_info>: Mark as override.
6040 <generic>: Remove member.
6041 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6042 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6043 (~tui_data_window, ~tui_win_info)
6044 (tui_free_all_source_wins_content): Update.
6045 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6046
ab313b35
TT
60472019-06-25 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-layout.c (init_and_make_win): Use new.
6050 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6051 destructor, initializers.
6052 (tui_alloc_generic_win_info): Don't declare.
6053 * tui/tui-data.c (_locator): Add argument to constructor.
6054 (source_win, disasm_win): New globals.
6055 (exec_info): Remove.
6056 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6057 Update.
6058 (tui_alloc_generic_win_info): Remove.
6059 (init_content_element): Use new.
6060 (tui_win_info::tui_win_info): Update.
6061 (free_content_elements) <case DATA_WIN>: Use delete.
6062
dc2c33e4
TT
60632019-06-25 Tom Tromey <tom@tromey.com>
6064
6065 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6066 * tui/tui-windata.c (tui_first_data_item_displayed)
6067 (tui_delete_data_content_windows): Update.
6068 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6069 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6070 (tui_display_registers_from, tui_check_register_values): Update.
6071 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6072 pointer.
6073 * tui/tui-data.c (init_content_element): Update. Allocate the new
6074 window.
6075 (tui_free_data_content): Update.
6076 (free_content_elements) <case DATA_WIN>: Free the window.
6077
214a5cbe
TT
60782019-06-25 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6081 Update.
6082 * tui/tui-layout.c (make_command_window)
6083 (show_source_disasm_command, show_data, init_and_make_win)
6084 (show_source_or_disasm_and_command): Update.
6085 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6086 method.
6087 <can_highight, is_highlighted>: Now bool.
6088 (tui_set_win_highlight): Don't declare.
6089 * tui/tui-data.c (tui_set_win_highlight): Remove.
6090
8e2daf15
TT
60912019-06-25 Tom Tromey <tom@tromey.com>
6092
6093 * tui/tui-wingeneral.c (make_visible): Remove check of window
6094 type.
6095
8903bd8a
TT
60962019-06-25 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui-win.c (tui_win_info::max_height)
6099 (tui_cmd_window::max_height): New methods.
6100 (new_height_ok): Call max_height.
6101 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6102 <max_height>: New method.
6103
3f02ce1e
TT
61042019-06-25 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-win.c (tui_source_window_base::set_new_height)
6107 (tui_data_window::set_new_height): New methods.
6108 (make_invisible_and_set_new_height): Call set_new_height method.
6109 * tui/tui-data.h (struct tui_win_info)
6110 (struct tui_source_window_base, struct tui_data_window)
6111 <set_new_height>: New method.
6112
1825f487
TT
61132019-06-25 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6116 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6117 tui_refresh_data_win.
6118 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6119 method.
6120 (tui_refresh_all_win): Call the refresh_all method.
6121 (tui_set_focus): Likewise.
6122 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6123 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6124 Likewise.
6125
ad54d15b
TT
61262019-06-25 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-winsource.h (tui_refill_source_window)
6129 (tui_set_is_exec_point_at): Don't declare.
6130 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6131 (tui_source_window_base::refill): Rename from
6132 tui_refill_source_window.
6133 (tui_source_window_base::do_scroll_horizontal): Update.
6134 (tui_source_window_base::set_is_exec_point_at): Rename from
6135 tui_set_is_exec_point_at.
6136 (tui_update_all_breakpoint_info): Update.
6137 * tui/tui-stack.c (tui_show_frame_info): Update.
6138 * tui/tui-layout.c (show_data): Add cast.
6139 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6140 * tui/tui-data.h (struct tui_source_window_base) <refill,
6141 set_is_exec_point_at>: New methods.
6142 (tui_source_windows, tui_add_to_source_windows): Update types.
6143 (tui_add_to_source_windows): Remove redundant declaration.
6144 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6145 (tui_source_windows): Change return type.
6146 (tui_clear_source_windows_detail): Update.
6147 (tui_add_to_source_windows): Change type of parameter.
6148 (tui_free_all_source_wins_content): Update.
6149
2042b506
TT
61502019-06-25 Tom Tromey <tom@tromey.com>
6151
6152 * tui/tui-wingeneral.c (tui_win_info::refresh)
6153 (tui_source_window_base::refresh): New methods.
6154 (tui_refresh_all): Call the refresh method.
6155 * tui/tui-data.h (struct tui_win_info)
6156 (struct tui_source_window_base) <refresh>: New method.
6157
56122977
TT
61582019-06-25 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui.h (tui_is_window_visible): Return bool.
6161 * tui/tui.c (tui_is_window_visible): Return bool.
6162 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6163 (tui_make_visible, tui_make_invisible)
6164 (tui_win_info::make_visible)
6165 (tui_source_window_base::make_visible, make_all_visible)
6166 (tui_make_all_visible, tui_make_all_invisible): Update.
6167 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6168 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6169 bool.
6170 (struct tui_win_info, struct tui_source_window_base)
6171 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6172 * tui/tui-data.c (tui_init_generic_part): Update.
6173
cda37efb
TT
61742019-06-25 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6177 (tui_source_window_base::make_visible): New methods.
6178 (make_all_visible): Make method call.
6179 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6180 (struct tui_source_window_base, struct tui_cmd_window): Override
6181 make_visible.
6182 (tui_win_is_source_type): Don't declare.
6183 * tui/tui-data.c (tui_win_is_source_type): Remove.
6184
6a0ee02c
TT
61852019-06-25 Tom Tromey <tom@tromey.com>
6186
6187 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6188 NULL check.
6189
63901aec
TT
61902019-06-25 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6193 Inline constructor. Add initializers for members.
6194 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6195 constructors; now inline in class.
6196
ceb13a13
TT
61972019-06-25 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-regs.c (tui_show_registers): Update.
6200 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6201 bool.
6202 * tui/tui-data.c (tui_data_window::clear_detail)
6203 (tui_data_window): Update.
6204
238eb706
TT
62052019-06-25 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui-windata.c (tui_display_all_data)
6208 (tui_display_data_from_line, tui_display_data_from)
6209 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6210 Update.
6211 * tui/tui-regs.c (tui_last_regs_line_no)
6212 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6213 (tui_show_registers, tui_show_register_group)
6214 (tui_display_registers_from, tui_display_reg_element_at_line)
6215 (tui_display_registers_from_line, tui_check_register_values)
6216 (tui_reg_next, tui_reg_prev): Update.
6217 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6218 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6219 tui_data_window.
6220 (struct tui_win_info) <detail>: Remove. Add new fields from
6221 tui_data_info.
6222 (TUI_DATA_WIN): Add cast.
6223 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6224 (~tui_data_window): Simplify.
6225
81491aa0
TT
62262019-06-25 Tom Tromey <tom@tromey.com>
6227
6228 * tui/tui-layout.c (show_source_disasm_command)
6229 (show_source_or_disasm_and_command): Update.
6230 * tui/tui-io.c (update_cmdwin_start_line)
6231 (tui_redisplay_readline): Update.
6232 * tui/tui-data.h (struct tui_command_info): Remove.
6233 (struct tui_win_info) <detail>: Remove command_info member.
6234 (struct tui_data_window) <start_line>: New member, from
6235 tui_command_info.
6236 (TUI_CMD_WIN): Add casts.
6237
e6e41501
TT
62382019-06-25 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-winsource.c (tui_update_source_window)
6241 (tui_refill_source_window)
6242 (tui_source_window_base::do_scroll_horizontal)
6243 (tui_update_breakpoint_info, tui_set_exec_info_content)
6244 (tui_show_exec_info_content, tui_erase_exec_info_content)
6245 (tui_clear_exec_info_content): Update.
6246 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6247 Update.
6248 * tui/tui-win.c (make_invisible_and_set_new_height)
6249 (make_visible_with_new_height): Update.
6250 * tui/tui-source.c (tui_set_source_content)
6251 (tui_show_symtab_source): Update.
6252 * tui/tui-layout.c (extract_display_start_addr)
6253 (show_source_disasm_command, show_data)
6254 (make_source_or_disasm_window)
6255 (show_source_or_disasm_and_command): Update.
6256 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6257 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6258 "gdbarch".
6259 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6260 to tui_source_window_base.
6261 (struct tui_win_info) <detail>: Remove source_info member.
6262 (struct tui_source_window_base) <has_locator>: Inline.
6263 Move contents from tui_source_info; rename has_locator member to
6264 m_has_locator.
6265 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6266 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6267 header file.
6268 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6269 Simplify.
6270 (tui_free_all_source_wins_content): Cast to
6271 tui_source_window_base.
6272
44f0e208
TT
62732019-06-25 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-win.c (make_invisible_and_set_new_height)
6276 (make_visible_with_new_height): Call has_locator method.
6277 * tui/tui-layout.c (show_source_disasm_command, show_data)
6278 (show_source_or_disasm_and_command): Update for bool change.
6279 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6280 (tui_win_info) <has_locator>: New method.
6281 (struct tui_source_window_base) <has_locator>: New method.
6282 (tui_win_has_locator): Don't declare.
6283 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6284 from tui_win_has_locator.
6285 (tui_source_window_base): Use false, not FALSE.
6286
7778b912
TT
62872019-06-25 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6290 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6291 clear_detail method directly.
6292 (tui_clear_win_detail): Remove.
6293
f83d391c
TT
62942019-06-25 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6297 "this", not TUI_DISASM_WIN.
6298
13446e05
TT
62992019-06-25 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6302 declare.
6303 * tui/tui-winsource.c
6304 (tui_source_window_base::do_scroll_horizontal): Rename from
6305 tui_horizontal_source_scroll.
6306 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6307 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6308 from tui_vertical_data_scroll.
6309 * tui/tui-win.h (tui_scroll): Don't declare.
6310 * tui/tui-win.c (tui_win_info::forward_scroll)
6311 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6312 (tui_win_info::right_scroll): Rename and update.
6313 (tui_scroll_forward_command, tui_scroll_backward_command)
6314 (tui_scroll_left_command, tui_scroll_right_command): Update.
6315 (tui_scroll): Remove.
6316 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6317 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6318 from tui_vertical_source_scroll.
6319 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6320 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6321 from tui_vertical_disassem_scroll.
6322 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6323 do_scroll_horizontal>: New methods.
6324 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6325 Likewise.
6326 (struct tui_source_window_base): Add do_scroll_horizontal.
6327 (struct tui_source_window, struct tui_disasm_window): Add
6328 do_scroll_vertical.
6329 (struct tui_data_window, struct tui_cmd_window): Add
6330 do_scroll_horizontal and do_scroll_vertical.
6331 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6332
5cf82909
TT
63332019-06-25 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-data.h (struct tui_source_window_base): New struct.
6336 (struct tui_source_window): Derive from tui_source_window_base.
6337 (struct tui_disasm_window): New struct.
6338 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6339 from tui_source_window::clear_detail.
6340 (tui_source_window_base): Rename from tui_source_window.
6341 (~tui_source_window_base): Rename from ~tui_source_window.
6342 (tui_alloc_win_info): Create a tui_disasm_window.
6343
ee1d42d6
TT
63442019-06-25 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-data.h (struct tui_source_window)
6347 (struct tui_data_window): Declare destructors.
6348 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6349 destructors.
6350 (tui_win_info): Simplify.
6351
b4eb2452
TT
63522019-06-25 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-winsource.c (tui_display_main)
6355 (tui_update_source_windows_with_addr)
6356 (tui_update_all_breakpoint_info): Update.
6357 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6358 (new_height_ok, parse_scrolling_args): Update.
6359 * tui/tui-stack.c (tui_show_frame_info): Update.
6360 * tui/tui-data.h (struct tui_list): Remove.
6361 (tui_source_windows): Return a reference to a std::vector.
6362 * tui/tui-data.c (source_windows): Now a std::vector.
6363 (tui_source_windows): Change return type.
6364 (tui_clear_source_windows): Rewrite.
6365 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6366 (tui_free_all_source_wins_content): Rewrite.
6367
8761a91b
TT
63682019-06-25 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6371 (struct tui_data_window, struct tui_cmd_window): Declare
6372 clear_detail method.
6373 * tui/tui-data.c (tui_source_window::clear_detail)
6374 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6375 methods.
6376 (tui_clear_win_detail): Simplify.
6377
0ed69eda
TT
63782019-06-25 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-layout.c (make_source_window, make_disasm_window)
6381 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6382 Return the new window.
6383 (show_source_disasm_command, show_data)
6384 (show_source_or_disasm_and_command): Update.
6385
82432e10
TT
63862019-06-25 Tom Tromey <tom@tromey.com>
6387
6388 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6389 parameter. Return the new window.
6390 (show_source_disasm_command): Update and remove NULL check.
6391 (show_source_or_disasm_and_command): Update.
6392
ec328aa5
TT
63932019-06-25 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6396
33b906ab
TT
63972019-06-25 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-data.h (struct tui_win_info): Make constructor
6400 protected. Make destructor virtual. Add initializers.
6401 (tui_source_window, tui_data_window, tui_cmd_window): New
6402 classes.
6403 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6404 constructor. Add "type" parameter.
6405 (tui_source_window, tui_data_window, tui_cmd_window): New
6406 constructors.
6407 (tui_alloc_win_info): Instantiate the appropriate subclass.
6408
e7e11af4
TT
64092019-06-25 Tom Tromey <tom@tromey.com>
6410
6411 * tui/tui-win.c (tui_resize_all): Use delete.
6412 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6413 destructor.
6414 (tui_free_window): Don't declare.
6415 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6416 Update.
6417
6792b55e
TT
64182019-06-25 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-data.h (struct tui_win_info): Add constructor.
6421 * tui/tui-data.c (tui_alloc_win_info): Use new.
6422 (tui_free_window): Use delete.
6423
f95675e1
TT
64242019-06-22 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6427 declare.
6428 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6429
5bff081c
TT
64302019-06-22 Tom Tromey <tom@tromey.com>
6431
6432 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6433 declare.
6434 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6435
47e3f474
TV
64362019-06-22 Tom de Vries <tdevries@suse.de>
6437
6438 * dwarf2read.c (create_addrmap_from_aranges)
6439 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6440 instead of '%zu'.
6441
fd5866f6
SM
64422019-06-21 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * dwarf2read.h (dwarf2_section_info_def): Remove.
6445 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6446 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6447 std::vector<dwarf2_section_info>.
6448 (struct dwo_file) <~dwo_file>: Remove.
6449 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6450 types field.
6451 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6452 (dwarf2_read_debug_names): Likewise.
6453 (create_debug_types_hash_table): Change parameter type to
6454 array_view, adjust code accordingly.
6455 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6456 (partial_die_info::fixup): Likewise.
6457 (determine_prefix): Likewise.
6458 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6459
fb1eb2f9
SM
64602019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6461
6462 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6463 gdb_bfd_ref_ptr.
6464 <~dwo_file>: Remove call to gdb_bfd_unref.
6465 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6466 gdb_bfd_ref_ptr::get.
6467
51ac9db5
SM
64682019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6471 type to htab_up.
6472 * dwarf2read.c (struct dwo_file): Initialize fields.
6473 <~dwo_file>: New.
6474 (free_dwo_file): Remove, move content to ~dwo_file.
6475 (struct dwo_file_deleter): Remove.
6476 (dwo_file_up>: Remove custom deleter.
6477 (free_dwo_files): Remove.
6478 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6479 dwo_files.
6480 (process_skeletonless_type_units): Call unique_ptr::get.
6481 (allocate_dwo_file_hash_table): Add deleter to created hash
6482 table. Change return type to htab_up.
6483 (lookup_dwo_file_slot): Don't memset dwo_file, call
6484 unique_ptr::get.
6485 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6486 (create_dwo_unit_in_dwp_v2): Likewise.
6487 (open_and_init_dwo_file): Likewise.
6488 (free_dwo_file_from_slot): Remove.
6489
dc4ccb6f
SM
64902019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * dwarf2read.h (struct dwarf2_section_info) <readin,
6493 is_virtual>: Change type to bool.
6494 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6495 true instead of 1.
6496
e6a1c5cb
TT
64972019-06-19 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-data.h (tui_init_content_element): Don't declare.
6500
6f6ffbeb
TT
65012019-06-19 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-data.h (tui_init_win_info): Don't declare.
6504
f23f598e
TV
65052019-06-19 Tom de Vries <tdevries@suse.de>
6506
6507 * dwarf2read.h (abstract_to_concrete): Change type to
6508 std::unordered_map<sect_offset, std::vector<sect_offset>,
6509 gdb::hash_enum<sect_offset>>.
6510
680e1bee
TT
65112019-06-19 Tom Tromey <tromey@adacore.com>
6512
6513 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6514 EVAL_AVOID_SIDE_EFFECTS specially.
6515
dcf37923
TT
65162019-06-19 Tom Tromey <tromey@adacore.com>
6517
6518 * source-cache.c (highlighter): New global.
6519 (source_cache::get_source_lines): Create a highlighter on demand.
6520
494986d5
AB
65212019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6522
6523 * defs.h (deprecated_interactive_hook): Delete declaration.
6524 * interps.c (clear_interpreter_hooks): Remove use of
6525 deprecated_interactive_hook.
6526 * top.c (deprecated_interactive_hook): Delete definition.
6527 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6528
3360b6e7
TV
65292019-06-18 Tom de Vries <tdevries@suse.de>
6530
6531 PR gdb/24515
6532 * dwarf2read.h (abstract_to_concrete): Change type from
6533 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6534 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6535 * dwarf2read.c (read_variable): Update.
6536 (dwarf2_fetch_die_loc_sect_off): Update.
6537
310b3441
TV
65382019-06-17 Tom de Vries <tdevries@suse.de>
6539
6540 PR gdb/24617
6541 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6542 accessing parent[parent_len - 1].
6543
ba9777be
PP
65442019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6545
6546 PR gdb/24364
6547 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6548 call dtrace_process_dof with NULL dof.
6549
2b9f6e89
TV
65502019-06-16 Tom de Vries <tdevries@suse.de>
6551
6552 PR gdb/24445
6553 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6554
431b3ead
TT
65552019-06-16 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6558 (make_all_visible): Use address of member.
6559
d04b44a1
TT
65602019-06-16 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6563 (tui_free_window, free_content, free_content_elements): Remove
6564 unnecessary cast.
6565 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6566 cast.
6567 * tui/tui-regs.c (tui_show_register_group)
6568 (tui_display_registers_from, tui_display_reg_element_at_line):
6569 Remove unnecessary cast.
6570
bf5142e7
AB
65712019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * linux-nat.c (normal_mask): Delete.
6574 (_initialize_linux_nat): Don't initialise normal_mask.
6575
c4973306
SM
65762019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6577
6578 PR gdb/24445
6579 * dwarf-index-write.h (write_psymtabs_to_index): Add
6580 dwz_basename parameter.
6581 * dwarf-index-write.c (write_gdbindex): Move file writing to
6582 write_gdbindex_1. Change return type void.
6583 (assert_file_size): Move up, remove filename parameter.
6584 (write_gdbindex_1): New function.
6585 (write_debug_names): Change return type to void, call
6586 assert_file_size.
6587 (struct index_wip_file): New struct.
6588 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6589 file logic to index_wip_file. Write index for dwz file if
6590 needed.
6591 (save_gdb_index_command): Pass basename of dwz file, if present.
6592 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6593 build-id of dwz file, if present.
6594 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6595 (dwarf2_get_dwz_file): Likewise.
6596 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6597 (dwarf2_get_dwz_file): Likewise.
6598
395f9c91
TT
65992019-06-16 Tom Tromey <tom@tromey.com>
6600
6601 * coffread.c (process_coff_symbol): Use xstrdup.
6602 * value.c (create_internalvar): Use xstrdup.
6603
cafb3438
TT
66042019-06-16 Tom Tromey <tom@tromey.com>
6605
6606 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6607 * breakpoint.c (stopin_command, stopat_command)
6608 (until_break_command, decode_location_default): Remove unnecessary
6609 cast.
6610 * utils.c (subset_compare): Remove unnecessary cast.
6611 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6612 cast.
6613 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6614 cast.
6615 * infcmd.c (path_command): Remove unnecessary cast.
6616 * coffread.c (decode_type): Remove unnecessary cast.
6617 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6618 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6619 * tui/tui-stack.c (tui_show_locator_content)
6620 (tui_show_frame_info): Remove unnecessary cast.
6621 * tui/tui-win.c (tui_scroll_forward_command)
6622 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6623 (parse_scrolling_args): Remove unnecessary cast.
6624 * tui/tui-data.c (init_win_info, tui_del_window)
6625 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6626 (free_content_elements): Remove unnecessary cast.
6627 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6628 unnecessary cast.
6629 * tui/tui-source.c (tui_set_source_content)
6630 (tui_vertical_source_scroll): Remove unnecessary cast.
6631 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6632 cast.
6633 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6634 * tui/tui-regs.c (tui_display_registers_from)
6635 (tui_display_register): Remove unnecessary cast.
6636 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6637 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6638 (make_visible): Remove unnecessary cast.
6639 * tui/tui-winsource.c (tui_erase_source_content)
6640 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6641 unnecessary cast.
6642 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6643 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6644 * stabsread.c (read_type, read_array_type, read_range_type):
6645 Remove unnecessary cast.
6646 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6647 (parse_symbol, parse_type, upgrade_type, parse_external)
6648 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6649 unnecessary cast.
6650 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6651
730ead81
TT
66522019-06-16 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-data.c (tui_alloc_generic_win_info)
6655 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6656 checks.
6657
584a927c
AB
66582019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6659 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 * f-typeprint.c (f_print_type): Don't return early for not
6662 associated or not allocated types.
6663 (f_type_print_varspec_suffix): Add print_rank parameter and print
6664 ranks of array types in case they dangling.
6665 (f_type_print_base): Add print_rank parameter.
6666
30056ea0
AB
66672019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * NEWS: Mention new MI commands.
6670 * break-catch-throw.c (enum exception_event_kind): Move to
6671 breakpoint.h.
6672 (print_mention_exception_catchpoint): Output text as a single
6673 message.
6674 (catch_exception_command_1): Rename to...
6675 (catch_exception_event): ...this, make non-static, update header
6676 command, and change some parameter types.
6677 (catch_catch_command): Update for changes to
6678 catch_exception_command_1.
6679 (catch_throw_command): Likewise.
6680 (catch_rethrow_command): Likewise.
6681 * breakpoint.c (enum exception_event_kind): Delete.
6682 * breakpoint.h (enum exception_event_kind): Moved here from
6683 break-catch-throw.c.
6684 (catch_exception_event): Declare.
6685 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6686 (mi_cmd_catch_throw): New function.
6687 (mi_cmd_catch_rethrow): New function.
6688 (mi_cmd_catch_catch): New function.
6689 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6690 'catch-catch' entries.
6691 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6692 (mi_cmd_catch_rethrow): Declare.
6693 (mi_cmd_catch_catch): Declare.
6694
ec8e2b6d
AB
66952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * annotate.c (annotate_source_line): Change return type to void,
6698 update implementation to match.
6699 * annotate.h (annotate_source_line): Change return type to void,
6700 update header comment.
6701 * stack.c (print_frame_info): Don't change what frame information
6702 is printed based on whether annotations are on or not.
6703
0d3abd8c
AB
67042019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6707 (annotate_source): Make static.
6708 (annotate_source_line): Moved from source.c and renamed from
6709 identify_source_line. Update the return type.
6710 * annotate.h (annotate_source): Delete declaration.
6711 (annotate_source_line): Declaration moved from source.h, and
6712 renamed from identify_source_line. Return type updated.
6713 * source.c (identify_source_line): Moved to annotate.c and renamed
6714 to annotate_source_line.
6715 (info_line_command): Remove check of annotation_level.
6716 * source.h (identify_source_line): Move declaration to annotate.h
6717 and rename to annotate_source_line.
6718 * stack.c: Add 'annotate.h' include.
6719 (print_frame_info): Remove check of annotation_level before
6720 calling annotate_source_line.
6721
00df30ae
AB
67222019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * source-cache.c (source_cache::get_plain_source_lines): Use
6725 open_source_file_with_line_charpos instead of just
6726 open_source_file, remove call to find_source_lines.
6727 (source_cache::get_source_lines): Likewise.
6728 * source.c (find_source_lines): Make static.
6729 (get_filename_and_charpos): Renamed into...
6730 (open_source_file_with_line_charpos): ..this along with changes to
6731 return a scoped_fd, and some other minor clean ups.
6732 (identify_source_line): Use open_source_file_with_line_charpos.
6733 (search_command_helper): Use open_source_file_with_line_charpos
6734 instead of just open_source_file, remove call to
6735 find_source_lines.
6736 * source.h (open_source_file_with_line_charpos): Declare new
6737 function.
6738 (find_source_lines): Delete declaration.
6739
afda45a2
AB
67402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * source.c (get_filename_and_charpos): Remove fullname
6743 parameter.
6744 (identify_source_line): Update call to get_filename_and_charpos.
6745
0735b091
TT
67462019-06-14 Tom Tromey <tromey@adacore.com>
6747
6748 PR gdb/24502:
6749 * ui-style.h (skip_ansi_escape): Update comment.
6750 * ui-file.h (class no_terminal_escape_file): New class.
6751 * ui-file.c (no_terminal_escape_file::write)
6752 (no_terminal_escape_file::puts): New methods.
6753 * cli/cli-logging.c (handle_redirections): Use
6754 no_terminal_escape_file.
6755
52ce35e2
TT
67562019-06-14 Tom Tromey <tromey@adacore.com>
6757
6758 * NEWS: Move convenience variable news above Python news.
6759
73cc7272
TT
67602019-06-14 Tom Tromey <tom@tromey.com>
6761
6762 * gnulib: Move directory to top-level.
6763 * configure.ac: Don't configure gnulib.
6764 * configure: Rebuild.
6765 * common/common-defs.h: Use new path to gnulib.
6766 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6767 (GNULIB_H): Remove.
6768 (INCGNU): Look in new gnulib location.
6769 (HFILES_NO_SRCDIR): Remove gnulib files.
6770 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6771 (generated_files): Remove GNULIB_H.
6772 ($(LIBGNU), all-lib): Remove targets.
6773 (distclean): Don't mention GNULIB_BUILDDIR.
6774 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6775
f5686554
TT
67762019-06-14 Tom Tromey <tromey@adacore.com>
6777
6778 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6779 Warn if symbol file does not provide any symbols.
6780
a0c1ffed
TT
67812019-06-14 Tom Tromey <tromey@adacore.com>
6782
6783 * source.c (find_and_open_source): Respect basenames_may_differ.
6784
7c39e397
AB
67852019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6786
6787 * annotate.c (annotate_breakpoints_invalid): Make use of
6788 scoped_restore_terminal_state.
6789 (annotate_frames_invalid): Likewise.
6790
f411722c
TT
67912019-06-14 Tom Tromey <tromey@adacore.com>
6792
6793 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6794 allow assignment to an internalvar.
6795
4268ec18
TT
67962019-06-14 Tom Tromey <tromey@adacore.com>
6797
6798 * ada-lex.l: Allow "_" in attribute names.
6799
abdb711e
TT
68002019-06-14 Tom Tromey <tromey@adacore.com>
6801
6802 PR gdb/24653:
6803 * regcache.c (registers_changed): Don't call alloca.
6804 * top.c (execute_command): Don't call alloca.
6805
4c048731
PA
68062019-06-13 Pedro Alves <palves@redhat.com>
6807
6808 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6809 'expression'. When parsing an expression, error out if there's
6810 junk after "unlimited".
6811 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6812 (do_set_command): Adjust calls to is_unlimited_literal.
6813
66eb1ed3
PA
68142019-06-13 Pedro Alves <palves@redhat.com>
6815
6816 * compile/compile.c (make_compile_options_def_group): Add braces
6817 around array_view initializer.
6818 * thread.c (make_thread_apply_all_options_def_group)
6819 (make_thread_apply_all_options_def_group): Likewise.
6820
3345721a
PA
68212019-06-13 Pedro Alves <palves@redhat.com>
6822
6823 * NEWS (New commands): Mention "maint test-options
6824 require-delimiter", "maint test-options unknown-is-error", "maint
6825 test-options unknown-is-operand" and "maint show
6826 test-options-completion-result".
6827 (New command options, command completion): New section.
6828 (Completion improvements): New section.
6829 Mention that you can abbreviate "unlimited".
6830
6206060d
PA
68312019-06-13 Pedro Alves <palves@redhat.com>
6832
6833 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6834 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6835 * unittests/cli-utils-selftests.c (test_parse_flags)
6836 (test_parse_flags_qcs): Delete.
6837 (test_cli_utils): Don't call deleted functions.
6838
6665660a
PA
68392019-06-13 Pedro Alves <palves@redhat.com>
6840
6841 * thread.c: Include "cli/cli-option.h".
6842 (tp_array_compar_ascending): Global.
6843 (tp_array_compar): Delete function.
6844 (tp_array_compar_ascending, tp_array_compar_descending): New
6845 functions.
6846 (ascending_option_def, qcs_flag_option_def)
6847 (thr_qcs_flags_option_defs)
6848 (make_thread_apply_all_options_def_group)
6849 (make_thread_apply_options_def_group): New.
6850 (thread_apply_all_command): Use gdb::option::process_options.
6851 (thread_apply_command_completer)
6852 (thread_apply_all_command_completer): New.
6853 (thread_apply_command): Use gdb::option::process_options.
6854 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6855 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6856 to generate help text of "thread apply". Adjust "taas"'s help.
6857 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6858 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6859
f7e13587
PA
68602019-06-13 Pedro Alves <palves@redhat.com>
6861
6862 * thread.c (thread_apply_command): Check for invalid TID with
6863 isdigit instead of !isalpha.
6864
5d707134
PA
68652019-06-13 Pedro Alves <palves@redhat.com>
6866
6867 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6868 (validate_flags_qcs): New.
6869 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6870 (validate_flags_qcs): Declare.
6871 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6872 (make_frame_apply_options_def_group): New.
6873 (frame_apply_command_count): Process options with
6874 gdb::option::process_options.
6875 (frame_apply_completer): New.
6876 (frame_apply_level_completer, frame_apply_all_completer)
6877 (frame_apply_completer): New.
6878 (_initialize_stack): Update help of "frame apply", "frame apply
6879 level", "frame apply all" and "faas" to mention supported options
6880 and install command completers.
6881 * stack.h (frame_apply_all_completer): Declare.
6882 * thread.c: Include "stack.h".
6883 (tfaas_command): Add "--".
6884 (_initialize_thread): Update help "tfaas" to mention supported
6885 options and install command completer.
6886
272d4594
PA
68872019-06-13 Pedro Alves <palves@redhat.com>
6888
6889 * completer.c (complete_nested_command_line): New.
6890 (gdb_completion_word_break_characters_throw): Add assertion.
6891 * completer.h (complete_nested_command_line): Declare.
6892
90a1ef87
PA
68932019-06-13 Pedro Alves <palves@redhat.com>
6894
6895 * stack.c (parse_backtrace_qualifiers): New.
6896 (backtrace_command): Use it.
6897 (backtrace_command_completer): Complete on qualifiers.
6898
d4c16835
PA
68992019-06-13 Pedro Alves <palves@redhat.com>
6900
6901 * frame.c: Include "cli/cli-option.h.
6902 (user_set_backtrace_options): New.
6903 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6904 Delete.
6905 (get_prev_frame): Adjust.
6906 (boolean_option_def, uinteger_option_def)
6907 (set_backtrace_option_defs): New.
6908 (_initialize_frame): Adjust and use
6909 gdb::option::add_setshow_cmds_for_options to install "set
6910 backtrace past-main" and "set backtrace past-entry".
6911 * frame.h: Include "cli/cli-option.h".
6912 (struct frame_print_options): Forward declare.
6913 (print_frame_arguments_all, print_frame_arguments_scalars)
6914 (print_frame_arguments_none): Declare.
6915 (print_entry_values): Delete declaration.
6916 (struct frame_print_options, user_frame_print_options): New.
6917 (struct set_backtrace_options): New.
6918 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6920 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6921 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6922 (list_args_or_locals): Add frame_print_options parameter.
6923 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6924 * python/py-framefilter.c (enumerate_args): Pass down
6925 USER_FRAME_PRINT_OPTIONS.
6926 * stack.c: Include "cli/cli-option.h".
6927 (print_frame_arguments_all, print_frame_arguments_scalars)
6928 (print_frame_arguments_none): Declare.
6929 (print_raw_frame_arguments, print_entry_values): Delete.
6930 (user_frame_print_options): New.
6931 (boolean_option_def, enum_option_def, frame_print_option_defs):
6932 New.
6933 (struct backtrace_cmd_options): New.
6934 (bt_flag_option_def): New.
6935 (backtrace_command_option_defs): New.
6936 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6937 (print_frame_arg, read_frame_arg, print_frame_args)
6938 (print_frame_info, print_frame): Add frame_print_options parameter
6939 and use it.
6940 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6941 (backtrace_command_1): Add frame_print_options and
6942 backtrace_cmd_options parameters and use them.
6943 (make_backtrace_options_def_group): New.
6944 (backtrace_command): Process command options with
6945 gdb::option::process_options.
6946 (backtrace_command_completer): New.
6947 (_initialize_stack): Extend "backtrace"'s help to mention
6948 supported options. Install completer for "backtrace".
6949 Install some settings commands with add_setshow_cmds_for_options.
6950
2daf894e
PA
69512019-06-13 Pedro Alves <palves@redhat.com>
6952
6953 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6954 and that "set/show print raw frame-arguments" are now deprecated.
6955
6956 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6957 command.
6958 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6959 * stack.c (_initialize_stack): Install "set/show print
6960 raw-frame-arguments", and deprecate "set/show print raw
6961 frame-arguments".
6962 * valprint.c (_initialize_valprint): Deprecate "set/show print
6963 raw".
6964
e6ed716c
PA
69652019-06-13 Pedro Alves <palves@redhat.com>
6966
6967 * compile/compile.c (struct compile_options): New.
6968 (compile_flag_option_def, compile_command_option_defs)
6969 (make_compile_options_def_group): New.
6970 (compile_file_command): Handle options with
6971 gdb::option::process_options.
6972 (compile_file_command_completer): New function.
6973 (compile_code_command): Handle options with
6974 gdb::option::process_options.
6975 (compile_code_command_completer): New function.
6976 (_initialize_compiler): Install completers for "compile code" and
6977 "compile file". Mention available options in "compile code" and
6978 "compile code"'s help.
6979 * completer.c (advance_to_completion_word): New, factored out from
6980 ...
6981 (advance_to_expression_complete_word_point): ... this.
6982 (advance_to_filename_complete_word_point): New.
6983 * completer.h (advance_to_filename_complete_word_point): New
6984 declaration.
6985
7d8062de
PA
69862019-06-13 Pedro Alves <palves@redhat.com>
6987
6988 * compile/compile.c: Include "cli/cli-option.h".
6989 (compile_print_value): Scope data pointer is now a
6990 value_print_options pointer; adjust.
6991 (compile_print_command): Process options. Scope data pointer is
6992 now a value_print_options pointer; adjust.
6993 (_initialize_compile): Update "compile print"'s help to include
6994 supported options. Install a completer for "compile print".
6995 * cp-valprint.c (show_vtblprint, show_objectprint)
6996 (show_static_field_print): Delete.
6997 (_initialize_cp_valprint): Don't install "set print
6998 static-members", "set print vtbl", "set print object" here.
6999 * printcmd.c: Include "cli/cli-option.h" and
7000 "common/gdb_optional.h".
7001 (print_command_parse_format): Rework to fill in a
7002 value_print_options instead of a format_data.
7003 (print_value): Change parameter type from format_data pointer to
7004 value_print_options reference. Adjust.
7005 (print_command_1): Process options. Adjust to pass down a
7006 value_print_options.
7007 (print_command_completer): New.
7008 (_initialize_printcmd): Install print_command_completer as
7009 handle_brkchars completer for the "print" command. Update
7010 "print"'s help to include supported options.
7011 * valprint.c: Include "cli/cli-option.h".
7012 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7013 here from cp-valprint.c.
7014 (boolean_option_def, uinteger_option_def)
7015 (value_print_option_defs, make_value_print_options_def_group):
7016 New. Use gdb::option::add_setshow_cmds_for_options to install
7017 "set print elements", "set print null-stop", "set print repeats",
7018 "set print pretty", "set print union", "set print array", "set
7019 print address", "set print symbol", "set print array-indexes".
7020 * valprint.h: Include <string> and "cli/cli-option.h".
7021 (make_value_print_options_def_group): Declare.
7022 (print_value): Change parameter type from format_data pointer to
7023 value_print_options reference.
7024 (print_command_completer): Declare.
7025
9d0faba9
PA
70262019-06-13 Pedro Alves <palves@redhat.com>
7027
7028 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7029 (COMMON_SFILES): Add maint-test-settings.c.
7030 * cli/cli-decode.c (boolean_enums): New global, factored out from
7031 ...
7032 (add_setshow_boolean_cmd): ... here.
7033 * cli/cli-decode.h (boolean_enums): Declare.
7034 * cli/cli-option.c: New file.
7035 * cli/cli-option.h: New file.
7036 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7037 factored out from ...
7038 (parse_cli_boolean_value(const char *)): ... this.
7039 (is_unlimited_literal): Change parameter type to pointer to
7040 pointer. Adjust and advance ARG pointer.
7041 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7042 (parse_cli_var_enum): New, factored out from ...
7043 (do_set_command): ... this. Adjust.
7044 * cli/cli-setshow.h (parse_cli_boolean_value)
7045 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7046 (parse_cli_var_enum): Declare.
7047 * cli/cli-utils.c: Include "cli/cli-option.h".
7048 (get_ulongest): New.
7049 * cli/cli-utils.h (get_ulongest): Declare.
7050 (check_for_argument): New overloads.
7051 * maint-test-options.c: New file.
7052
2c722807
PA
70532019-06-13 Pedro Alves <palves@redhat.com>
7054
7055 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7056 parse a range if "-" is at the end of the string.
7057
dee7b4c8
PA
70582019-06-13 Pedro Alves <palves@redhat.com>
7059
7060 * cli/cli-setshow.c (parse_auto_binary_operation)
7061 (parse_cli_boolean_value): Don't allow "o".
7062
dca0f6c0
PA
70632019-06-13 Pedro Alves <palves@redhat.com>
7064
7065 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7066 * NEWS: Mention maint test-settings KIND.
7067 * maint-test-settings.c: New file.
7068
597bf39d
PA
70692019-06-13 Pedro Alves <palves@redhat.com>
7070
7071 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7072 completer.
7073 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7074 "set" completers.
7075
48c410fb
PA
70762019-06-13 Pedro Alves <palves@redhat.com>
7077
7078 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7079 after item.
7080
93bcb043
PA
70812019-06-13 Pedro Alves <palves@redhat.com>
7082
7083 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7084
cbba3ecd
PA
70852019-06-13 Pedro Alves <palves@redhat.com>
7086
7087 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7088 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7089 call.
7090 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7091 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7092 calls.
7093 (check_for_argument): Skip spaces after argument.
7094
b9a3f842
PA
70952019-06-13 Pedro Alves <palves@redhat.com>
7096
7097 * thread.c (thread_apply_command): Adjust TID parsing.
7098 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7099 detected before end of string.
7100 (tid_is_in_list): Error out if LIST is invalid.
7101
3844e605
PA
71022019-06-13 Pedro Alves <palves@redhat.com>
7103
7104 * completer.c (complete_line_internal_1): Rewind completion word
7105 point.
7106 (completion_tracker::advance_custom_word_point_by): Change
7107 parameter type to int.
7108 * completer.h (completion_tracker::advance_custom_word_point_by):
7109 Likewise.
7110
00b56dbe
PA
71112019-06-13 Pedro Alves <palves@redhat.com>
7112
7113 * completer.c (advance_to_completion_word): Handle delimiters.
7114
d106773e
PA
71152019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7116
7117 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7118
08f10e02
TT
71192019-06-11 Tom Tromey <tom@tromey.com>
7120
7121 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7122 (xmalloc_failed): Move to alloc.c.
7123 * alloc.c: New file.
7124 * Makefile.in (COMMON_SFILES): Add alloc.c.
7125
1c7fe951
TT
71262019-06-11 Tom Tromey <tom@tromey.com>
7127
7128 * nat/linux-waitpid.c: Don't include server.h.
7129 (linux_debug): Remove.
7130 (my_waitpid): Update.
7131
89549d7f
TT
71322019-06-11 Tom Tromey <tromey@adacore.com>
7133
7134 * infcall.c (_initialize_infcall): Remove trailing newline from
7135 help.
7136 * user-regs.c (_initialize_user_regs): Remove trailing newline
7137 from help.
7138 * typeprint.c (_initialize_typeprint): Remove trailing newline
7139 from help.
7140 * reverse.c (_initialize_reverse): Remove trailing newlines from
7141 help.
7142 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7143 from help.
7144 * language.c (add_set_language_command): Remove trailing newline
7145 from help.
7146 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7147 help.
7148 * disasm.c (_initialize_disasm): Remove trailing newline from
7149 help.
7150 * top.c (init_main): Remove trailing newline from help.
7151 * interps.c (_initialize_interpreter): Remove trailing newline
7152 from help.
7153 * btrace.c (_initialize_btrace): Remove trailing newlines from
7154 help.
7155 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7156 from help.
7157 * python/python.c (_initialize_python): Remove trailing newline
7158 from help.
7159 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7160 help.
7161 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7162 from help. Reformat some text.
7163 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7164 from help.
7165 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7166 newline from help.
7167
86108c13
TT
71682019-06-11 Tom Tromey <tromey@adacore.com>
7169
7170 * darwin-nat.c (darwin_decode_exception_message)
7171 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7172
a7067863
AB
71732019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7174
7175 * valops.c (value_slice): Check for not allocated or not
7176 associated values.
7177
9ab08412
TV
71782019-06-10 Tom de Vries <tdevries@suse.de>
7179
7180 PR gdb/24618
7181 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7182 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7183 invalid.
7184
f19e22e9
TV
71852019-06-10 Tom de Vries <tdevries@suse.de>
7186
7187 PR gdb/24611
7188 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7189 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7190
e99f9db0
TV
71912019-06-10 Tom de Vries <tdevries@suse.de>
7192
7193 PR symtab/24545
7194 * symtab.c (struct demangled_name_entry): Add language field.
7195 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7196 static minimal symbol". Set and use language field.
7197
9bf7038b
TT
71982019-06-10 Tom Tromey <tromey@adacore.com>
7199
7200 * ada-lang.c (_initialize_ada_language): Update help text.
7201
422186a9
TT
72022019-06-10 Tom Tromey <tromey@adacore.com>
7203
7204 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7205 with a newline.
7206 * guile/guile.c (handle_boot_error): Don't end warning with a
7207 newline.
7208 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7209 warning with a newline.
7210 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7211 newline.
7212 (s12z_frame_cache): Likewise.
7213 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7214 a newline.
7215 * solib-svr4.c (disable_probes_interface): Don't end warning with
7216 a newline.
7217 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7218 newline.
7219 * python/python.c (do_finish_initialization): Don't end warning
7220 with a newline.
7221
25ce02ee
TT
72222019-06-10 Tom Tromey <tom@tromey.com>
7223
7224 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7225 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7226 gdbpy_enter.
7227
caa429d8
TT
72282019-06-10 Tom Tromey <tromey@adacore.com>
7229
7230 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7231 data.
7232 (elf_new_init): Don't call stabsread_new_init.
7233 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7234 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7235 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7236
81873cc8
TV
72372019-06-10 Tom de Vries <tdevries@suse.de>
7238
7239 PR symtab/16264
7240 PR symtab/24517
7241 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7242
4fa0265e
РИ
72432019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7244
7245 * source.c (find_and_open_source): Also rewrite relative file
7246 names.
7247
1a3da2cd
AB
72482019-04-26 Amos Bird <amosbird@gmail.com>
7249
7250 * annotate.c (annotate_thread_exited): Add "thread-exited"
7251 annotation.
7252
3847a7bf
TT
72532019-06-06 Tom Tromey <tromey@adacore.com>
7254
7255 * maint.h (class scoped_command_stats): Use
7256 DISABLE_COPY_AND_ASSIGN.
7257 <print_time>: New method.
7258 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7259 print_time.
7260 (scoped_command_stats::print_time): New method.
7261
312617a3
AB
72622019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7265 instructions of lengths 6 or 8 bytes.
7266
b02f78f9
PA
72672019-06-04 Pedro Alves <palves@redhat.com>
7268
7269 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7270
7271 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7272 * breakpoint.c (condition_completer): Likewise.
7273 * cli/cli-dump.c (scan_expression): Likewise.
7274 * common/filestuff.c (mkdir_recursive): Likewise.
7275 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7276 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7277 (gdb_abspath): Likewise.
7278 * compile/compile-cplus-types.c
7279 (compile_cplus_instance::decl_name): Likewise.
7280 * completer.c (complete_explicit_location):
7281 (signal_completer, reg_or_group_completer_1): Likewise.
7282 * cp-support.c (cp_remove_params_if_any): Likewise.
7283 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7284 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7285 * infcmd.c (strip_bg_char): Likewise.
7286 * linespec.c (copy_token_string): Likewise.
7287 * mi/mi-main.c (output_cores): Likewise.
7288 * psymtab.c (psymtab_search_name):
7289 * symfile.c (test_set_ext_lang_command): Likewise.
7290 * target.c (target_fileio_read_stralloc): Likewise.
7291 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7292 * value.c (complete_internalvar): Likewise.
7293
e1f2e1a2
CB
72942019-06-04 Christian Biesinger <cbiesinger@google.com>
7295
7296 Add objfile property to gdb.Type.
d3238f7d
PA
7297 * NEWS: Mention Python API addition.
7298 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7299
e664d728
PW
73002019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7301
7302 * NEWS: Mention the new set|show style [title|highlight].
7303 Mention changes to "show style", "help" and "apropos".
7304
66d8c862
PW
73052019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7306
7307 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7308 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7309 instead of print_help_for_command.
7310 (print_doc_of_command): New function.
7311 (help_list): Add 'apropos -v word' suggestion.
7312 (print_help_for_command): Style the command name using title style.
7313 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7314 (_initialize_cli_cmds): Describe -v in apropos_command help.
7315
9303eb2f
PW
73162019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7317
7318 * cli/cli-style.h (cli_style_option): Add name in constructor,
7319 add m_name class member, add constructor with intensity,
7320 add name class function.
7321 (cli_style_option::add_setshow_commands): Remove name argument.
7322 (highlight_style, title_style): New styles.
7323 * cli/cli-style.c (do_show): New function that shows a style
7324 characteristic styling the style name with itself.
7325 (set_style_name): New function.
7326 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7327 Update all callers according to the changes in cli/cli-style.h.
7328 * utils.h (fputs_highlighted): New function.
7329 * utils.c (fputs_highlighted): Likewise.
7330
e2c52041
PW
73312019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7332
7333 * NEWS: Mention new pipe command and new convenience variables.
7334
947d3946
PW
73352019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7336
7337 * cli/cli-cmds.c (pipe_command): New function.
7338 (_initialize_cli_cmds): Call add_com for pipe_command.
7339 Define | as an alias for pipe.
7340 (exit_status_set_internal_vars): New function.
7341 (shell_escape): Call exit_status_set_internal_vars.
7342 cli/cli-decode.c (find_command_name_length): Recognize | as
7343 a single character command.
7344
b8fd0918
PW
73452019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7346
7347 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7348 top.c (execute_command_to_ui_file): New function, mostly a copy
7349 of execute_command_to_string.
7350 (execute_command_to_string): Implement by calling
7351 execute_command_to_ui_file.
7352
68bb5386
PW
73532019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7354
7355 * top.h (saved_command_line): Remove declaration.
7356 * top.c (previous_saved_command_line, previous_repeat_arguments):
7357 New variables.
7358 (saved_command_line): Make static, define together with other
7359 'repeat variables'.
7360 (dont_repeat): Clear repeat_arguments.
7361 (repeat_previous, get_saved_command_line, save_command_line):
7362 New functions.
7363 (gdb_init): Initialize saved_command_line
7364 and previous_saved_command_line.
7365 * main.c (captured_main_1): Remove saved_command_line initialization.
7366 * event-top.c (handle_line_of_input): Update to use
7367 the new 'repeat' related functions instead of direct access to
7368 saved_command_line.
7369 * command.h (repeat_previous, get_saved_command_line,
7370 save_command_line): New declarations.
7371 (dont_repeat): Add comment.
7372
bfcdb852
TT
73732019-05-30 Tom Tromey <tromey@adacore.com>
7374
7375 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7376 Fix comment.
7377 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7378
0ef209f2
JV
73792019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7380
7381 PR cli/24587
7382 * completer.c (complete): Initialize variable word.
7383
955b06fa
SDJ
73842019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7385
7386 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7387 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7388 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7389 'body' is NULL to the outter 'if', protecting the '!is_define'
7390 situation as well.
7391
fa9c3fa0
TT
73922019-05-29 Tom Tromey <tromey@adacore.com>
7393
7394 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7395 (dwarf_unknown): New function.
7396 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7397 (dwarf_type_encoding_name): Use dwarf_unknown.
7398
4330d61d
TT
73992019-05-29 Tom Tromey <tromey@adacore.com>
7400
7401 PR c++/20020:
7402 * cp-valprint.c (cp_print_value_fields): Call
7403 cp_print_static_field inside "try".
7404
33a6bc35
TT
74052019-05-29 Tom Tromey <tromey@adacore.com>
7406
7407 * inflow.c (struct terminal_info): Add default operator=.
7408 * configure: Rebuild.
7409 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7410 -Wdeprecated-copy-dtor, -Wredundant-move.
7411
000439d5
TT
74122019-05-29 Tom Tromey <tromey@adacore.com>
7413
7414 * NEWS: Add entry.
7415 * infcmd.c (print_return_value_1): Handle finish_print
7416 option.
7417 (show_print_finish): New function.
7418 (_initialize_infcmd): Add "set/show print finish" commands.
7419 * valprint.c (user_print_options): Initialize new member.
7420 * valprint.h (struct value_print_options) <finish_print>: New
7421 member.
7422
c0e70c62
TT
74232019-05-28 Tom Tromey <tromey@adacore.com>
7424
7425 * ada-lang.c (ada_remove_Xbn_suffix)
7426 (find_old_style_renaming_symbol)
7427 (parse_old_style_renaming): Remove.
7428 (ada_find_renaming_symbol): Don't call
7429 find_old_style_renaming_symbol.
7430 (ada_is_renaming_symbol): Rename from
7431 ada_find_renaming_symbol. Remove "block" parameter. Return
7432 bool. Now static.
7433 (ada_read_var_value): Update and simplify.
7434 * ada-exp.y (write_var_or_type): Remove old code.
7435
766f8836
AH
74362019-05-28 Alan Hayward <alan.hayward@arm.com>
7437
68255adc 7438 PR gdb/25010
766f8836
AH
7439 * event-top.c: Remove include comment.
7440 * inflow.c (class scoped_ignore_sigttou): Move from here...
7441 * inflow.h (class scoped_ignore_sigttou): ...to here.
7442 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7443 * top.c: Remove include comment.
7444
eb41253a
TT
74452019-05-27 Tom Tromey <tom@tromey.com>
7446
7447 * NEWS: Fix typo.
7448
4ca51187
TT
74492019-05-22 Tom Tromey <tromey@adacore.com>
7450
7451 * target.c (target_follow_exec): Constify parameter.
7452 * target-delegates.c: Rebuild.
7453 * remote.c (remote_target::follow_exec): Constify parameter.
7454 * infrun.c (follow_exec): Constify parameter.
7455 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7456 (target_follow_exec): Likewise.
7457
8fca4da0
AH
74582019-05-22 Alan Hayward <alan.hayward@arm.com>
7459
7460 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7461 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7462
b7060614
AH
74632019-05-22 Alan Hayward <alan.hayward@arm.com>
7464
7465 * NEWS: Add debugredirect and testsuite sections.
7466
0a5954bd
SC
74672019-05-22 Simon Cook <simon.cook@embecosm.com>
7468
7469 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7470 target descriptions using exclusively floating point register name
7471 aliases.
7472
dc42e902
AB
74732019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 PR gdb/18644:
7476 * f-lang.c (build_fortran_types): Handle the case where
7477 gdbarch_floatformat_for_type returns a nullptr.
7478
fb7806c7
TV
74792019-05-21 Tom de Vries <tdevries@suse.de>
7480
7481 PR cli/24587
7482 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7483
34d11c68
AB
74842019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7485
7486 PR gdb/18644:
7487 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7488 16-byte floats.
7489 * i386-tdep.c (i386_floatformat_for_type): Use
7490 floatformats_ia64_quad for the 16-byte floating point component
7491 within a fortran 32-byte complex number.
7492
122cf0f2
AB
74932019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7496 delete default constructor.
7497 (find_partial_die): Update to return const struct.
7498 (partial_die_parent_scope): Move variable declaration into scope
7499 of its use and change its type to auto.
7500 (guess_partial_die_structure_name): Likewise.
7501 (partial_die_info::fixup): Likewise.
7502
33d0e35a
TT
75032019-05-17 Tom Tromey <tromey@adacore.com>
7504
7505 * source.c (find_and_open_source): Remove cast.
7506
a45575b0
TT
75072019-05-17 Tom Tromey <tromey@adacore.com>
7508
7509 * annotate.c (annotate_source): Make "filename" const.
7510 * annotate.h (annotate_source): Use const.
7511
81f47ac2
AH
75122019-05-17 Alan Hayward <alan.hayward@arm.com>
7513
7514 * disasm.c (set_disassembler_options): Send errors to stderr.
7515
ca1285d1
AH
75162019-05-17 Alan Hayward <alan.hayward@arm.com>
7517
7518 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7519 (cli_interp_base::set_logging): Check debug_redirect.
7520 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7521 * cli/cli-logging.c (debug_redirect): Add static variable.
7522 (pop_output_files): Add default param.
7523 (handle_redirections): Print debug setting.
7524 (show_logging_command): Likewise.
7525 (_initialize_cli_logging): Add debugredirect command.
7526 * interps.c (current_interp_set_logging): Add debug_redirect
7527 parameter.
7528 * interps.h (set_logging): Add debug_redirect parameter.
7529 (current_interp_set_logging): Likewise.
7530 * mi/mi-common.h: Likewise.
7531 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7532
75332019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7534 Tom Tromey <tromey@adacore.com>
7535
7536 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7537 directly.
7538 * cli/cli-interp.h (make_logging_output): Remove declaration.
7539 * cli/cli-logging.c (make_logging_output): Remove function.
7540 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7541 directly.
7542 * ui-file.c (tee_file::tee_file): Remove bools.
7543 (tee_file::~tee_file): Remove deletes.
7544 * ui-file.h (tee_file): Remove bools.
7545
26648588
JV
75462019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7547
7548 * mi/mi-cmds.h (mi_cmd_complete): New function.
7549 * mi/mi-main.c (mi_cmd_complete): Likewise.
7550 * mi/mi-cmds.c: Define new MI command -complete.
7551 * NEWS: Mention new -complete command.
7552
6e035501
JV
75532019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7554
7555 * completer.h (complete): New function.
7556 * completer.c (complete): Likewise.
7557 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7558 function defined in completer.h.
7559
7d0e2ece
JV
75602019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7561
e79be6e5 7562 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7563
fb816e8b
TV
75642019-05-17 Tom de Vries <tdevries@suse.de>
7565
7566 PR gdb/24094
7567 * dwarf2read.c (struct cu_partial_die_info): New struct.
7568 (find_partial_die): Return cu_partial_die_info.
7569 (partial_die_parent_scope, guess_partial_die_structure_name)
7570 (partial_die_info::fixup): Handle new return type of find_partial_die.
7571
677052f2
SDJ
75722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7573
a1726c38 7574 PR breakpoints/24541
677052f2
SDJ
7575 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7576 "std::string", simplifying the algorithm.
7577
f3da9116
SDJ
75782019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7579
7580 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7581 (stap_static_probe_ops::get_probes): Likewise.
7582
f1bb75ab
SDJ
75832019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7584
7585 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7586 '-')" and "else if".
7587 (stap_parse_single_operand): Join checks for
7588 "gdbarch_stap_parse_special_token_p" and
7589 "gdbarch_stap_parse_special_token" in the same "if" statement.
7590 Invert check when verifying for operation on register
7591 displacement.
7592
3ca58cde
SDJ
75932019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7594
7595 * stap-probe.c (stap_get_opcode): Update comment.
7596 (stap_get_expected_argument_type): Likewise.
7597 (handle_stap_probe): Likewise.
7598
af2d9bee
SDJ
75992019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7600
7601 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7602 return type to 'bool'. Adjust comment. Use 'bool' when
7603 appropriate.
7604 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7605 * stap-probe.c (stap_parse_argument_1): Likewise.
7606 (stap_is_operator): Likewise.
7607 (stap_is_generic_prefix): Likewise.
7608 (stap_is_register_prefix): Likewise.
7609 (stap_is_register_indirection_prefix): Likewise.
7610 (stap_is_integer_prefix): Likewise.
7611 (stap_generic_check_suffix): Likewise.
7612 (stap_check_integer_suffix): Likewise.
7613 (stap_check_register_suffix): Likewise.
7614 (stap_check_register_indirection_suffix): Likewise.
7615 (stap_parse_register_operand): Likewise.
7616 (stap_parse_single_operand): Likewise.
7617 (stap_parse_argument_1): Likewise.
7618 (stap_probe::get_argument_count): Likewise.
7619 (stap_is_operator): Likewise.
7620
61c9c421
TT
76212019-05-16 Tom Tromey <tromey@adacore.com>
7622
7623 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7624 keyword to foreach.
7625
9ddc1af1
SM
76262019-05-15 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * linux-thread-db.c (try_thread_db_load_1): Change return type
7629 to bool.
7630 (try_thread_db_load): Likewise.
7631 (try_thread_db_load_from_pdir_1): Likewise.
7632 (try_thread_db_load_from_pdir): Likewise.
7633 (try_thread_db_load_from_sdir): Likewise.
7634 (try_thread_db_load_from_dir): Likewise.
7635 (thread_db_load_search): Likewise.
7636 (has_libpthread): Likewise.
7637 (thread_db_load): Likewise.
7638
7bede828
SDJ
76392019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7640
7641 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7642 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7643 NULL, and complain/return if that's the case.
7644
c5358db4
JD
76452019-05-15 John Darrington <john@darrington.wattle.id.au>
7646
7647 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7648 (advance, posn, abstract_read_memory): New functions.
7649 [struct mem_read_abstraction]: New struct.
7650 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7651
c408a94f
TT
76522019-05-14 Tom Tromey <tromey@adacore.com>
7653
7654 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7655 value is not lval_memory.
7656
e7bd7fba
TT
76572019-05-14 Tom Tromey <tromey@adacore.com>
7658
7659 * solib.c (info_sharedlibrary_command): Style the file name.
7660
a6d0f249
AH
76612019-05-14 Alan Hayward <alan.hayward@arm.com>
7662
7663 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7664 (aarch64_vnv_type): Likewise.
7665 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7666 * common/tdesc.c: Likewise.
7667 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7668 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7669 * features/aarch64-fpu.xml: Add ieee half view.
7670 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7671 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7672 * gdbtypes.h (struct builtin_type): Likewise.
7673 (struct objfile_type): Likewise.
7674
66b8bb74
SM
76752019-05-12 Paul Naert <paul.naert@polymtl.ca>
7676
7677 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7678 typo.
7679 * location.h (string_to_event_location): Likewise.
7680
21c219fd
JB
76812019-05-11 Joel Brobecker <brobecker@adacore.com>
7682
7683 GDB 8.3 released.
7684
13674803
SM
76852019-05-10 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7688 New variable declaration.
7689 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7690 New variable.
7691 (print_one_breakpoint): Use ui_out::test_flags and new global
7692 variable to compute use_fixed_output.
7693 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7694 Remove.
7695 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7696 (mi_multi_location_breakpoint_output_fixed): Remove.
7697 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7698 new variable.
7699 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7700 fix_multi_location_breakpoint_output flag if version >= 3.
7701 * ui-out.h (enum ui_out_flag)
7702 <fix_multi_location_breakpoint_output>: New enumerator.
7703
a9eac7f9
SM
77042019-05-10 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7707
71bed2db
TT
77082019-05-10 Tom Tromey <tromey@adacore.com>
7709
7710 * ada-lang.c (catch_ada_completer): New function.
7711 (_initialize_ada_language): Use it.
7712
24c54127
TT
77132019-05-10 Tom Tromey <tromey@adacore.com>
7714
7715 * thread.c (print_thread_info): Make "requested_threads" const.
7716 * gdbthread.h (print_thread_info): Make "requested_threads"
7717 const.
7718 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7719 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7720
7a102139
TT
77212019-05-08 Tom Tromey <tom@tromey.com>
7722
7723 * gdbtypes.c (objfile_type_data): Change type.
7724 (objfile_type, _initialize_gdbtypes): Update.
7725
924d79e2
TT
77262019-05-08 Tom Tromey <tom@tromey.com>
7727
7728 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7729 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7730 (_initialize_dwarf2_frame): Update.
7731
4c58e337
TT
77322019-05-08 Tom Tromey <tom@tromey.com>
7733
7734 * objc-lang.c (objc_objfile_data): Change type.
7735 (find_methods): Update.
7736 (_initialize_objc_lang): Remove.
7737
d772d2ab
TT
77382019-05-08 Tom Tromey <tom@tromey.com>
7739
7740 * stabsread.c (rs6000_builtin_type_data): Change type.
7741 (rs6000_builtin_type, _initialize_stabsread): Update.
7742
d11d83f4
TT
77432019-05-08 Tom Tromey <tom@tromey.com>
7744
7745 * mips-tdep.c (mips_pdr_data): Remove.
7746 (_initialize_mips_tdep): Update.
7747
9a73f0ad
TT
77482019-05-08 Tom Tromey <tom@tromey.com>
7749
7750 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7751 (hppa_init_objfile_priv_data, read_unwind_info)
7752 (find_unwind_entry, _initialize_hppa_tdep): Update.
7753
8127a2fa
TT
77542019-05-08 Tom Tromey <tom@tromey.com>
7755
7756 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7757 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7758 on obstack.
7759 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7760
91d3055d
TT
77612019-05-08 Tom Tromey <tom@tromey.com>
7762
7763 * mdebugread.c (basic_type_data): Change type.
7764 (basic_type, _initialize_mdebugread): Update.
7765
31930bd3
TT
77662019-05-08 Tom Tromey <tom@tromey.com>
7767
7768 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7769
bdb3ed9e
TT
77702019-05-08 Tom Tromey <tom@tromey.com>
7771
7772 * nto-tdep.c (nto_inferior_data_reg): Change type.
7773 (nto_inferior_data): Update.
7774 (nto_inferior_data_cleanup, nto_new_inferior_data)
7775 (_initialize_nto_tdep): Remove.
7776 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7777
f37b313d
TT
77782019-05-08 Tom Tromey <tom@tromey.com>
7779
7780 * ada-lang.c (struct ada_inferior_data): Add initializers.
7781 (ada_inferior_data): Change type.
7782 (ada_inferior_data_cleanup): Remove.
7783 (get_ada_inferior_data, ada_inferior_exit)
7784 (struct ada_pspace_data): Add initializers, destructor.
7785 (ada_pspace_data_handle): Change type.
7786 (get_ada_pspace_data): Update.
7787 (ada_pspace_data_cleanup): Remove.
7788
24699405
TT
77892019-05-08 Tom Tromey <tom@tromey.com>
7790
7791 * coffread.c (struct coff_symfile_info): Add initializers.
7792 (coff_objfile_data_key): Move lower. Change type.
7793 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7794 Update.
7795 (coff_free_info): Remove.
7796
d4e05d2f
TT
77972019-05-08 Tom Tromey <tom@tromey.com>
7798
7799 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7800 (fbsd_pspace_data_handle): Move lower. Change type.
7801 (get_fbsd_pspace_data): Update.
7802 (fbsd_pspace_data_cleanup): Remove.
7803 (_initialize_fbsd_tdep): Update.
7804
14ef6690
TT
78052019-05-08 Tom Tromey <tom@tromey.com>
7806
7807 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7808 (get_ada_tasks_pspace_data): Update.
7809 (ada_tasks_pspace_data_cleanup): Remove.
7810 (_initialize_tasks): Update.
7811 (ada_tasks_inferior_data_handle): Change type.
7812 (get_ada_tasks_inferior_data): Update.
7813 (ada_tasks_inferior_data_cleanup): Remove.
7814 (struct ada_tasks_pspace_data): Add initializers.
7815
814cf43a
TT
78162019-05-08 Tom Tromey <tom@tromey.com>
7817
7818 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7819 * symfile-debug.c (debug_sym_get_probes): Change type.
7820 * stap-probe.c (handle_stap_probe):
7821 (stap_static_probe_ops::get_probes): Change type.
7822 * probe.h (class static_probe_ops) <get_probes>: Change type.
7823 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7824 (parse_probes_in_pspace): Update.
7825 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7826 Update.
7827 (any_static_probe_ops::get_probes): Change type.
7828 * elfread.c (elfread_data): New typedef.
7829 (probe_key): Change type.
7830 (elf_get_probes): Likewise. Update.
7831 (probe_key_free): Remove.
7832 (_initialize_elfread): Update.
7833 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7834 Change type.
7835 (dtrace_process_dof_probe, dtrace_process_dof)
7836 (dtrace_static_probe_ops::get_probe): Change type.
7837
02dc647e
TT
78382019-05-08 Tom Tromey <tom@tromey.com>
7839
7840 * xcoffread.c (struct xcoff_symfile_info): Rename from
7841 coff_symfile_info. Add initializers.
7842 (xcoff_objfile_data_key): Move lower. Change type.
7843 (XCOFF_DATA): Rewrite.
7844 (xcoff_free_info): Remove.
7845 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7846 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7847 (xcoff_initial_scan): Update.
7848
09232438
TT
78492019-05-08 Tom Tromey <tom@tromey.com>
7850
7851 * solib-svr4.c (struct svr4_info): Add initializers and
7852 destructor.
7853 <probes_table>: Now an htab_up.
7854 (solib_svr4_pspace_data): Change type.
7855 (free_probes_table): Simplify.
7856 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7857 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7858 (probes_table_remove_objfile_probes, register_solib_event_probe)
7859 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7860 (_initialize_svr4_solib): Update.
7861
7b4a314f
TT
78622019-05-08 Tom Tromey <tom@tromey.com>
7863
7864 * remote.c (remote_pspace_data): Change type.
7865 (remote_pspace_data_cleanup): Remove.
7866 (get_remote_exec_file, set_pspace_remote_exec_file)
7867 (_initialize_remote): Update.
7868
51d3063a
TT
78692019-05-08 Tom Tromey <tom@tromey.com>
7870
7871 * breakpoint.c (breakpoint_objfile_key): Change type.
7872 (get_breakpoint_objfile_data): Update.
7873 (free_breakpoint_objfile_data): Remove.
7874 (_initialize_breakpoint): Update.
7875
89fb8848
TT
78762019-05-08 Tom Tromey <tom@tromey.com>
7877
7878 * linux-tdep.c (struct linux_info): Add initializers.
7879 (linux_inferior_data): Move. Change type.
7880 (invalidate_linux_cache_inf): Update.
7881 (linux_inferior_data_cleanup): Remove.
7882 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7883
e9b89e2d
TT
78842019-05-08 Tom Tromey <tom@tromey.com>
7885
7886 * auxv.c (auxv_inferior_data): Move. Change type.
7887 (auxv_inferior_data_cleanup): Remove.
7888 (invalidate_auxv_cache_inf): Rewrite.
7889 (get_auxv_inferior_data, _initialize_auxv): Update.
7890
8c42777c
TT
78912019-05-08 Tom Tromey <tom@tromey.com>
7892
7893 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7894 (symfile_debug_objfile_data_key): Change type.
7895 (symfile_debug_installed, debug_qf_has_symbols)
7896 (debug_qf_find_last_source_symtab)
7897 (debug_qf_forget_cached_source_info)
7898 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7899 (debug_qf_print_stats, debug_qf_dump)
7900 (debug_qf_expand_symtabs_for_function)
7901 (debug_qf_expand_all_symtabs)
7902 (debug_qf_expand_symtabs_with_fullname)
7903 (debug_qf_map_matching_symbols)
7904 (debug_qf_expand_symtabs_matching)
7905 (debug_qf_find_pc_sect_compunit_symtab)
7906 (debug_qf_map_symbol_filenames)
7907 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7908 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7909 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7910 (debug_sym_read_linetable, debug_sym_relocate): Update.
7911 (symfile_debug_free_objfile): Remove.
7912 (install_symfile_debug_logging, _initialize_symfile_debug):
7913 Update.
7914
5bfd760d
TT
79152019-05-08 Tom Tromey <tom@tromey.com>
7916
7917 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7918 allocate_on_obstack.
7919 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7920 (get_dwarf2_per_objfile): Update.
7921 (set_dwarf2_per_objfile): Remove.
7922 (dwarf2_has_info, dwarf2_get_section_info): Update.
7923 (dwarf2_free_objfile): Remove.
7924 (_initialize_dwarf2_read): Update.
7925
e85e19b4
TT
79262019-05-08 Tom Tromey <tom@tromey.com>
7927
7928 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7929 initializers.
7930 <unsupported_script_warning_printed,
7931 script_not_found_warning_printed>: Now bool.
7932 (auto_load_pspace_data): Change type.
7933 (~auto_load_pspace_info): Rename from
7934 auto_load_pspace_data_cleanup.
7935 (get_auto_load_pspace_data, init_loaded_scripts_info)
7936 (clear_section_scripts, maybe_print_unsupported_script_warning)
7937 (maybe_print_script_not_found_warning, _initialize_auto_load):
7938 Update.
7939
f6aa7436
TT
79402019-05-08 Tom Tromey <tom@tromey.com>
7941
7942 * objfiles.c (objfile_pspace_info): Add destructor and
7943 initializers.
7944 (objfiles_pspace_data): Change type.
7945 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7946 (get_objfile_pspace_data): Update.
7947 (objfiles_bfd_data): Change type.
7948 (get_objfile_bfd_data): Update.
7949 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7950
6ae614f6
TT
79512019-05-08 Tom Tromey <tom@tromey.com>
7952
7953 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7954 Change type.
7955 (get_catch_syscall_inferior_data): Update.
7956 (catch_syscall_inferior_data_cleanup): Remove.
7957 (_initialize_break_catch_syscall): Update.
7958
6509b8eb
TT
79592019-05-08 Tom Tromey <tom@tromey.com>
7960
7961 * inflow.c (struct terminal_info): Add destructor and
7962 initializers.
7963 (inflow_inferior_data): Change type.
7964 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7965 (get_inflow_inferior_data, inflow_inferior_exit)
7966 (swap_terminal_info, _initialize_inflow): Update.
7967
35632941
TT
79682019-05-08 Tom Tromey <tom@tromey.com>
7969
7970 * target-dcache.c (target_dcache_cleanup): Remove.
7971 (target_dcache_aspace_key): Change type.
7972 (target_dcache_init_p, target_dcache_invalidate)
7973 (target_dcache_get, target_dcache_get_or_init)
7974 (_initialize_target_dcache): Update.
7975 * dcache.h (struct dcache_deleter): New.
7976
3017b94d
TT
79772019-05-08 Tom Tromey <tom@tromey.com>
7978
7979 * symtab.c (struct symbol_cache): Add destructor and
7980 initializers.
7981 (symbol_cache_key): Move. Change type.
7982 (make_symbol_cache, free_symbol_cache): Remove.
7983 (get_symbol_cache): Update.
7984 (symbol_cache_cleanup): Remove.
7985 (ALL_PSPACES, symbol_cache_flush)
7986 (maintenance_print_symbol_cache)
7987 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7988 Update.
7989
a32ad8c5
TT
79902019-05-08 Tom Tromey <tom@tromey.com>
7991
7992 * symtab.c (struct main_info): Add destructor and initializers.
7993 (main_progspace_key): Move. Change type.
7994 (get_main_info): Update.
7995 (main_info_cleanup): Remove.
7996 (_initialize_symtab): Update.
7997
5f6e90a0
TT
79982019-05-08 Tom Tromey <tom@tromey.com>
7999
8000 * registry.h (DECLARE_REGISTRY): Define the _key class.
8001
1bd0c6e4
AB
80022019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * NEWS: Merge two 'New commands' sections.
8005
2228ef77
XR
80062019-05-08 Joel Brobecker <brobecker@adacore.com>
8007
8008 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8009 parameter and use Ada language definition instead.
8010 (ada_val_print_ptr): Remove unused language parameter.
8011 (ada_val_print_num): Remove language parameter and use Ada language
8012 definition instead.
8013 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8014 parameter.
8015 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8016 parameter and use Ada language definition instead.
8017 (ada_val_print_1): Update all ada_val_print_xxx calls.
8018 Remove language parameter.
8019 (ada_val_print): Update ada_val_print_1 call.
8020
60fcc1c3
TT
80212019-05-08 Tom Tromey <tromey@adacore.com>
8022
8023 * remote.c (remote_hw_watchpoint_limit)
8024 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8025 Now static.
8026
ed2b7c17
TT
80272019-05-08 Tom Tromey <tromey@adacore.com>
8028
8029 * maint.c (_initialize_maint_cmds): Move initialization code to
8030 remote.c.
8031 (watchdog, show_watchdog): Move to remote.c.
8032 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8033 "watchdog" static.
8034 (_initialize_remote): Move initialization code from maint.c.
8035 * defs.h (watchdog): Don't declare.
8036
b0be6c91
TT
80372019-05-08 Tom Tromey <tromey@adacore.com>
8038
8039 * tui/tui-interp.c: Include main.h.
8040 * interps.c: Include main.h.
8041 * main.h (interpreter_p): Declare.
8042 * defs.h (interpreter_p): Don't declare.
8043
587ee17b
TT
80442019-05-08 Tom Tromey <tromey@adacore.com>
8045
8046 * dwarf2loc.c: Include dwarf2read.h.
8047 * defs.h (read_unsigned_leb128): Don't declare.
8048 * dwarf2read.h (read_unsigned_leb128): Declare.
8049
ca1df239
TT
80502019-05-08 Tom Tromey <tromey@adacore.com>
8051
8052 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8053 method.
8054
99f20f08
TT
80552019-05-08 Tom Tromey <tromey@adacore.com>
8056
8057 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8058 when no wrap column is set.
8059
80e55b13
TT
80602019-05-08 Tom Tromey <tromey@adacore.com>
8061
8062 * c-lang.c (c_get_string): Handle non-C-style arrays.
8063
9d3421af
TT
80642019-05-08 Tom Tromey <tromey@adacore.com>
8065
8066 * typeprint.c (print_offset_data::update): Print the bit offset,
8067 not the number of bits remaining.
8068
844333e2
TT
80692019-05-08 Tom Tromey <tromey@adacore.com>
8070
8071 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8072 padding at end of comment.
8073
988915ee
TT
80742019-05-08 Tom Tromey <tromey@adacore.com>
8075
8076 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8077 Compare main types.
8078
26bfd823
TT
80792019-05-06 Tom Tromey <tom@tromey.com>
8080
8081 * common/scoped_mmap.c: Include common-defs.h.
8082 * common/scoped_mmap.h: Don't include config.h.
8083
89055eaa
TT
80842019-05-04 Tom Tromey <tom@tromey.com>
8085
8086 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8087 (struct aarch64_call_info): Add initializers.
8088 <si>: Now a std::vector.
8089 (pass_on_stack, aarch64_push_dummy_call): Update.
8090
5da01df5
TT
80912019-05-04 Simon Marchi <simon.marchi@efficios.com>
8092 Tom Tromey <tom@tromey.com>
8093
8094 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8095 (ppc_threads): Now a std::vector. Now static.
8096 (hwdebug_find_thread_points_by_tid)
8097 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8098 Update.
8099
fbdf05a1
TT
81002019-05-04 Tom Tromey <tom@tromey.com>
8101
8102 * arc-tdep.c (arc_tdesc_init): Return bool.
8103
06d16ec9
TT
81042019-05-04 Tom Tromey <tom@tromey.com>
8105
8106 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8107 Use gdb_assert_not_reached.
8108
9c056022
TT
81092019-05-04 Tom Tromey <tom@tromey.com>
8110
8111 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8112 "false".
8113
fa9c2a59
TT
81142019-05-04 Tom Tromey <tom@tromey.com>
8115
8116 * arc-tdep.c (arc_tdesc_init): Use bool.
8117
e2eb806a
TT
81182019-05-04 Tom Tromey <tom@tromey.com>
8119
8120 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8121
6fe87677
TT
81222019-05-04 Tom Tromey <tom@tromey.com>
8123
8124 * cli/cli-cmds.c (valid_command_p): Return bool.
8125
7f008c9e
TT
81262019-05-04 Tom Tromey <tom@tromey.com>
8127
8128 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8129 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8130
b6484282
RT
81312019-05-04 Raul Tambre <raul@tambre.ee>
8132
8133 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8134 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8135 operator for comparison.
8136
af97b416
TT
81372019-05-04 Tom Tromey <tom@tromey.com>
8138
8139 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8140 (lookup_partial_symbol, print_partial_symbols)
8141 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8142 (psymbol_compare): Update.
8143 (add_psymbol_to_bcache): Clear the entire psymbol.
8144 (maintenance_check_psymtabs): Update.
8145 * psympriv.h (struct partial_symbol): Don't derive from
8146 general_symbol_info.
8147 <obj_section, unrelocated_address, address,
8148 set_unrelocated_address>: Update.
8149 <ginfo>: New member.
8150 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8151 (debug_names::write_psymbols): Update.
8152
9d6d4be8
TV
81532019-05-04 Tom de Vries <tdevries@suse.de>
8154
8155 * contrib/cc-with-tweaks.sh: Support -n arg.
8156
66452beb
PW
81572019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8158
8159 * corelow.c (core_target::detach): Ensure frame cache and
8160 register caches are cleared.
8161 inferior.c (exit_inferior_1): Likewise.
8162
bde09ab7
TT
81632019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8164 Tom Tromey <tom@tromey.com>
8165
8166 * dictionary.c (collate_pending_symbols_by_language): Remove
8167 "struct" from foreach.
8168 * symtab.c (lookup_global_symbol_from_objfile)
8169 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8170 foreach.
8171 * ser-tcp.c (net_open): Remove "struct" from foreach.
8172 * objfiles.c (objfile_relocate, objfile_rebase)
8173 (objfile_has_symbols): Remove "struct" from foreach.
8174 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8175 from foreach.
8176 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8177 foreach.
8178 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8179 "struct" from foreach.
8180 * ada-lang.c (create_excep_cond_exprs)
8181 (ada_exception_catchpoint_cond_string): Remove "struct" from
8182 foreach.
8183
222a8d25
TT
81842019-05-03 Tom Tromey <tromey@adacore.com>
8185
8186 * ada-exp.y (convert_char_literal): Check suffix of each
8187 enumerator.
8188
fcd60b84
DP
81892019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8190
8191 PR ada/21406:
8192 * ada-exp.y (yywrap): Don't define.
8193 * ada-lex.l (%option): Add noyywrap
8194 (yywrap): Remove.
8195
5f2459c2
EZ
81962019-05-03 Eli Zaretskii <eliz@gnu.org>
8197
353ea2d1
EZ
8198 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8199 _WIN32_WINNT to the XP level, unless already defined to a higher
8200 level.
8201
8202 * unittests/parse-connection-spec-selftests.c:
8203 * ser-tcp.c:
8204 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8205 override.
8206
5f2459c2
EZ
8207 * symfile.c (find_separate_debug_file): Remove colon from the
8208 drive spec of DOS/Windows file names of the target, so that the
8209 file name produced from DEBUGDIR and the target's directory will
8210 be valid on DOS/Windows systems.
8211
80062eb9
AB
82122019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8213
8214 * rust-lang.c (val_print_struct): Handle printing structures
8215 containing strings.
8216
b8c05e85
TT
82172019-05-02 Tom Tromey <tromey@adacore.com>
8218
8219 * valarith.c (_initialize_valarith): Remove.
8220
4504bbde
TT
82212019-05-01 Tom Tromey <tromey@adacore.com>
8222
8223 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8224 bitfields.
8225
d48e62f4
TT
82262019-05-01 Tom Tromey <tromey@adacore.com>
8227
8228 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8229 for big-endian copies.
8230
15f18d14
AT
82312019-04-30 Ali Tamur <tamur@google.com>
8232 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8233 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8234 (read_3_bytes): New function.
8235
ab4ee614
JB
82362019-04-30 Joel Brobecker <brobecker@adacore.com>
8237
8238 * windows-nat.c (main_thread_id): Delete.
8239 (handle_output_debug_string): Replace main_thread_id by
8240 current_event.dwThreadId.
8241 (fake_create_process): Likewise.
8242 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8243 Do not set main_thread_id.
8244 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8245 current_event.dwThreadId.
8246 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8247
8ed5b76e
JB
82482019-04-30 Joel Brobecker <brobecker@adacore.com>
8249
8250 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8251 Use current_event.dwThreadId instead of main_thread_id.
8252
2ff0a947
TT
82532019-04-30 Tom Tromey <tromey@adacore.com>
8254
8255 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8256 (create_excep_cond_exprs): Iterate over program spaces.
8257 (ada_exception_catchpoint_cond_string): Examine all minimal
8258 symbols for exception types.
8259
a776957c
TT
82602019-04-30 Tom Tromey <tromey@adacore.com>
8261
8262 PR c++/24470:
8263 * dwarf2read.c (process_structure_scope): Handle case where type
8264 has template parameters but no symbol was created.
8265
bc68014d
AB
82662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8267 Chris January <chris.january@arm.com>
8268
8269 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8270 qualifier.
8271 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8272
f1fdc960
AB
82732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8274
8275 * f-typeprint.c (f_print_type): Update rules for printing
8276 whitespace.
8277 (f_type_print_varspec_suffix): Likewise.
8278
bf7a4de1
AB
82792019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8280 Chris January <chris.january@arm.com>
8281
8282 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8283 function arguments.
8284
bbe75b9d
AB
82852019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8286
8287 * f-lang.c (build_fortran_types): Change name of void type to
8288 lower case.
8289 * f-typeprint.c (f_type_print_base): Print the name of the void
8290 type, rather than a fixed string.
8291 * f-valprint.c (f_decorations): Use lower case void string.
8292
1db455a7
AB
82932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8294 Chris January <chris.january@arm.com>
8295
8296 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8297 types for Fortran.
8298
b6d03bb2
AB
82992019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8300 Chris January <chris.january@arm.com>
8301 David Lecomber <david.lecomber@arm.com>
8302
8303 * f-exp.y (BINOP_INTRINSIC): New token.
8304 (exp): New parser rule handling BINOP_INTRINSIC.
8305 (f77_keywords): Add new builtin procedures.
8306 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8307 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8308 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8309 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8310 (print_unop_subexp_f): New function.
8311 (print_binop_subexp_f): New function.
8312 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8313 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8314 (dump_subexp_body_f): Likewise.
8315 (operator_check_f): Likewise.
8316 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8317 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8318
83228e93
AB
83192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8322 UNOP_KIND.
8323 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8324 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8325 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8326 (operator_length_f): New fuction.
8327 (print_subexp_f): New function.
8328 (op_name_f): New function.
8329 (dump_subexp_body_f): New function.
8330 (operator_check_f): New function.
8331 (exp_descriptor_f): Replace standard expression handling functions
8332 with new functions.
8333 * gdb/fortran-operator.def: New file.
8334 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8335 * gdb/std-operator.def: Remove UNOP_KIND.
8336
6fdcd7cc
AB
83372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8338
8339 * std-operator.def: Remove unbalanced, stray double quote
8340 character.
8341
2e62ab40
AB
83422019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8343 Chris January <chris.january@arm.com>
8344 Daniel Everett <daniel.everett@arm.com>
8345 Nick Forrington <nick.forrington@arm.com>
8346 Richard Bunt <richard.bunt@arm.com>
8347
8348 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8349 of depth when printing anonymous structs or unions.
8350 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8351 Don't print either the top-level value, or the children if the
8352 max-depth is exceeded.
8353 (ppscm_print_children): When printing the key of a map, allow one
8354 extra level of depth.
8355 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8356 print either the top-level value, or the children if the max-depth
8357 is exceeded.
8358 (print_children): When printing the key of a map, allow one extra
8359 level of depth.
8360 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8361 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8362 (user_print_options): Initialise max_depth field.
8363 (val_print_scalar_or_string_type_p): New function.
8364 (val_print): Check to see if the max depth has been reached.
8365 (val_print_check_max_depth): Define new function.
8366 (show_print_max_depth): New function.
8367 (_initialize_valprint): Add 'print max-depth' option.
8368 * valprint.h (struct value_print_options) <max_depth>: New field.
8369 (val_print_check_max_depth): Declare new function.
8370 * NEWS: Document new feature.
8371
4be290b2
AB
83722019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8373
8374 * ada-lang.c (ada_language_defn): Initialise new field.
8375 * c-lang.c (c_is_string_type_p): New function.
8376 (c_language_defn): Initialise new field.
8377 (cplus_language_defn): Initialise new field.
8378 (asm_language_defn): Initialise new field.
8379 (minimal_language_defn): Initialise new field.
8380 * c-lang.h (c_is_string_type_p): Declare new function.
8381 * d-lang.c (d_language_defn): Initialise new field.
8382 * f-lang.c (f_is_string_type_p): New function.
8383 (f_language_defn): Initialise new field.
8384 * go-lang.c (go_is_string_type_p): New function.
8385 (go_language_defn): Initialise new field.
8386 * language.c (default_is_string_type_p): New function.
8387 (unknown_language_defn): Initialise new field.
8388 (auto_language_defn): Initialise new field.
8389 * language.h (struct language_defn) <la_is_string_type_p>: New
8390 member variable.
8391 (default_is_string_type_p): Declare new function.
8392 * m2-lang.c (m2_language_defn): Initialise new field.
8393 * objc-lang.c (objc_language_defn): Initialise new field.
8394 * opencl-lang.c (opencl_language_defn): Initialise new field.
8395 * p-lang.c (pascal_is_string_type_p): New function.
8396 (pascal_language_defn): Initialise new field.
8397 * rust-lang.c (rust_is_string_type_p): New function.
8398 (rust_language_defn): Initialise new field.
8399
721b08c6
AB
84002019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8403 New field.
8404 * ada-lang.c (ada_language_defn): Initialise new field.
8405 * c-lang.c (c_language_defn): Likewise.
8406 (cplus_language_defn): Likewise.
8407 (asm_language_defn): Likewise.
8408 (minimal_language_defn): Likewise.
8409 * d-lang.c (d_language_defn): Likewise.
8410 * f-lang.c (f_language_defn): Likewise.
8411 * go-lang.c (go_language_defn): Likewise.
8412 * language.c (unknown_language_defn): Likewise.
8413 (auto_language_defn): Likewise.
8414 * m2-lang.c (m2_language_defn): Likewise.
8415 * objc-lang.c (objc_language_defn): Likewise.
8416 * opencl-lang.c (opencl_language_defn): Likewise.
8417 * p-lang.c (pascal_language_defn): Likewise.
8418 * rust-lang.c (rust_language_defn): Likewise.
8419
fc913e53
AB
84202019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * ada-lang.c (ada_is_character_type): Change return type to bool.
8423 (ada_is_string_type): Likewise.
8424 * ada-lang.h (ada_is_character_type): Update declaration
8425 (ada_is_string_type): Likewise.
8426
fa731fa0
PW
84272019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8428
8429 Support style in 'frame|thread apply'
8430
8431 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8432 * record.c (record_start, record_stop): Update callers of
8433 execute_command_to_string with false.
8434 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8435 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8436 methods.
8437 (class string_file): New constructor with term_out parameter.
8438 Override methods term_out and can_emit_style_escape. New member
8439 term_out.
8440 (class stdio_file): Override can_emit_style_escape.
8441 (class tee_file): Override term_out and can_emit_style_escape.
8442 * utils.h (can_emit_style_escape): Remove.
8443 * utils.c (can_emit_style_escape): Likewise.
8444 Update all callers of can_emit_style_escape (SOMESTREAM) to
8445 SOMESTREAM->can_emit_style_escape.
8446 * source-cache.c (source_cache::get_source_lines): Likewise.
8447 * stack.c (frame_apply_command_count): Call execute_command_to_string
8448 passing the term_out characteristic of the current gdb_stdout.
8449 * thread.c (thr_try_catch_cmd): Likewise.
8450 * top.c (execute_command_to_string): pass term_out parameter
8451 to construct the string_file for the command output.
8452 * ui-file.c (term_cli_styling): New function (most code moved
8453 from utils.c can_emit_style_escape).
8454 (string_file::string_file, string_file::can_emit_style_escape,
8455 stdio_file::can_emit_style_escape, tee_file::term_out,
8456 tee_file::can_emit_style_escape): New functions.
8457
136afab8
PW
84582019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8459
8460 * NEWS: Mention the new set|show may-call-functions.
8461 * infcall.c (may_call_functions_p): New variable.
8462 (show_may_call_functions_p): New function.
8463 (call_function_by_hand_dummy): Throws an error if not
8464 may-call-functions.
8465 (_initialize_infcall): Call add_setshow_boolean_cmd for
8466 may-call-functions.
8467
725cbb63
KS
84682019-04-25 Keith Seitz <keiths@redhat.com>
8469
8470 PR c++/24367
8471 * cp-support.c (inspect_type): Don't attempt substitutions
8472 of symbol with the same name.
8473
3d1cbb78
TT
84742019-04-25 Tom Tromey <tromey@adacore.com>
8475
8476 PR gdb/24475:
8477 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8478 static.
8479
94aeb44b
TT
84802019-04-25 Tom Tromey <tromey@adacore.com>
8481
8482 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8483 rvalue reference.
8484 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8485 (gdb_xml_parser::parse): Use std::move.
8486 * python/python-internal.h (gdbpy_convert_exception): Take a const
8487 reference.
8488 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8489 std::move.
8490 * python/py-utils.c (gdbpy_convert_exception): Take a const
8491 reference.
8492 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8493 Use std::move.
8494 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8495 Use std::move.
8496 * mi/mi-main.c (mi_print_exception): Take a const reference.
8497 * main.c (handle_command_errors): Take a const reference.
8498 * linespec.c (parse_linespec): Use std::move.
8499 * infcall.c (run_inferior_call): Use std::move.
8500 (call_function_by_hand_dummy): Use std::move.
8501 * exec.c (try_open_exec_file): Use std::move.
8502 * exceptions.h (exception_print, exception_fprintf)
8503 (exception_print_same): Update.
8504 * exceptions.c (print_exception, exception_print)
8505 (exception_fprintf, exception_print_same): Change parameters to
8506 const reference.
8507 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8508 * common/new-op.c: Use std::move.
8509 * common/common-exceptions.h (struct gdb_exception): Add move
8510 constructor.
8511 (struct gdb_exception_error, struct gdb_exception_quit, struct
8512 gdb_quit_bad_alloc): Change constructor to move constructor.
8513 (throw_exception): Change parameter to rvalue reference.
8514 * common/common-exceptions.c (throw_exception): Take rvalue
8515 reference.
8516 * cli/cli-interp.c (safe_execute_command): Use std::move.
8517 * breakpoint.c (insert_bp_location, location_to_sals): Use
8518 std::move.
8519
680d7fd5
TT
85202019-04-25 Tom Tromey <tromey@adacore.com>
8521
8522 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8523 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8524 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8525 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8526 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8527 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8528 guile/scm-value.c: Use unpack.
8529 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8530 gdbscm_gdb_exception.
8531 (gdbscm_throw_gdb_exception): Likewise.
8532 (struct gdbscm_gdb_exception): New.
8533 (unpack): New function.
8534 (gdbscm_wrap): Use unpack.
8535
c6fdd8b2
TT
85362019-04-25 Tom Tromey <tromey@adacore.com>
8537
8538 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8539 (gdb_rl_callback_handler): Use std::move.
8540 * common/common-exceptions.h (struct gdb_exception): Add move
8541 assignment operator.
8542 (throw_exception_sjlj): Change "exception" to const reference.
8543 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8544 (throw_exception_sjlj): Change "exception" to const reference.
8545
cc06b668
TT
85462019-04-25 Tom Tromey <tromey@adacore.com>
8547
8548 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8549 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8550 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8551 Update.
8552 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8553 Update.
8554 * mi/mi-interp.c (mi_interp::exec): Update.
8555 * linespec.c (parse_linespec): Update.
8556 * infcall.c (run_inferior_call): Update.
8557 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8558 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8559 (gdbscm_lookup_global_symbol): Update.
8560 * guile/scm-param.c (gdbscm_parameter_value): Update.
8561 * guile/scm-frame.c (gdbscm_frame_read_register)
8562 (gdbscm_frame_read_var): Update.
8563 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8564 * exec.c (try_open_exec_file): Update.
8565 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8566 (gdb_rl_callback_handler): Update.
8567 * common/common-exceptions.h (exception_none): Don't declare.
8568 * common/common-exceptions.c (exception_none): Don't define.
8569 (struct catcher) <exception>: Update.
8570 * cli/cli-interp.c (safe_execute_command): Update.
8571 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8572
cf532bd1
AT
85732019-04-25 Ali Tamur <tamur@google.com>
8574
8575 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8576 (read_attribute_value): Likewise.
8577 (dwarf2_read_addr_index): Update comment.
8578 (read_str_index): Add DW_FORM_strx.
8579 (dwarf2_string_attr): Likewise.
8580 (dwarf2_const_value_attr): Likewise.
8581 (dump_die_shallow): Likewise.
8582 (dwarf2_fetch_constant_bytes): Likewise.
8583 (skip_form_bytes): Likewise.
8584 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8585
82433e3e
SDJ
85862019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8587
8588 PR corefiles/11608
8589 PR corefiles/18187
8590 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8591 OFFSET. Verify if current mapping contains an ELF header.
8592 (linux_find_memory_regions_full): Adjust call to
8593 dump_mapping_p.
8594
723adb65
SL
85952019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8596 Kang Li <kanglictf@gmail.com>
8597
8598 PR gdb/21600
8599
8600 * dwarf2-frame.c (read_initial_length): Be consistent about using
8601 unsigned representation of length.
8602 (decode_frame_entry_1): Likewise. Check for wraparound of
8603 end pointer as well as buffer overflow.
8604
596179f7
SDJ
86052019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8606
8607 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8608 "vq".
8609
a59240a4
TT
86102019-04-24 Tom Tromey <tromey@adacore.com>
8611
8612 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8613
f872fdbb
AB
86142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * s12z-tdep.c (s12z_unwind_pc): Delete.
8617 (s12z_unwind_sp): Delete.
8618 (s12z_gdbarch_init): Don't register deleted functions with
8619 gdbarch.
8620
b614e6f3
AB
86212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * rl78-tdep.c (rl78_unwind_sp): Delete.
8624 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8625
14faed38
AB
86262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8627
8628 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8629 (xstormy16_unwind_pc): Delete.
8630 (xstormy16_dummy_id): Delete.
8631 (xstormy16_gdbarch_init): Don't register deleted functions with
8632 gdbarch.
8633
541aad8a
AB
86342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * vax-tdep.c (vax_unwind_pc): Delete.
8637 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8638
29222070
AB
86392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * v850-tdep.c (v850_unwind_sp): Delete.
8642 (v850_unwind_pc): Delete.
8643 (v850_dummy_id): Delete.
8644 (v850_gdbarch_init): Don't register deleted functions with
8645 gdbarch.
8646
0f534d76
AB
86472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8648
8649 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8650 (tilegx_unwind_pc): Delete.
8651 (tilegx_unwind_dummy_id): Delete.
8652 (tilegx_gdbarch_init): Don't register deleted functions with
8653 gdbarch.
8654
1ba7b7f9
AB
86552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8656
8657 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8658 (tic6x_dummy_id): Delete.
8659 (tic6x_gdbarch_init): Don't register deleted functions with
8660 gdbarch.
8661
d31f262c
AB
86622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * sparc-tdep.c (sparc_unwind_pc): Delete.
8665 (sparc32_gdbarch_init): Don't register deleted function with
8666 gdbarch.
8667
6d14d64d
AB
86682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8669
8670 * sh-tdep.c (sh_unwind_sp): Delete.
8671 (sh_unwind_pc): Delete.
8672 (sh_dummy_id): Delete.
8673 (sh_gdbarch_init): Don't register deleted functions with
8674 gdbarch.
8675
a40dde9d
AB
86762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * score-tdep.c (score_unwind_sp): Delete.
8679 (score_unwind_pc): Delete.
8680 (score_dummy_id): Delete.
8681 (score_gdbarch_init): Don't register deleted functions with
8682 gdbarch.
8683
47c47d69
AB
86842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8685
8686 * rx-tdep.c (rx_unwind_pc): Delete.
8687 (rx_unwind_sp): Delete.
8688 (rx_dummy_id): Delete.
8689 (rx_gdbarch_init): Don't register deleted functions with
8690 gdbarch. Update comment.
8691
833a4480
AB
86922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8695 (rs6000_dummy_id): Delete.
8696 (rs6000_gdbarch_init): Don't register deleted functions with
8697 gdbarch.
8698
3f2cef49
AB
86992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8700
8701 * or1k-tdep.c (or1k_dummy_id): Delete.
8702 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8703
96acf884
AB
87042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * nios2-tdep.c (nios2_dummy_id): Delete.
8707 (nios2_unwind_sp): Delete.
8708 (nios2_gdbarch_init): Don't register deleted functions with
8709 gdbarch.
8710
ca0ab0aa
AB
87112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * nds32-tdep.c (nds32_dummy_id): Delete.
8714 (nds32_unwind_pc): Delete.
8715 (nds32_unwind_sp): Delete.
8716 (nds32_gdbarch_init): Don't register deleted functions with
8717 gdbarch.
8718
c8259044
AB
87192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * msp430-tdep.c (msp430_unwind_pc): Delete.
8722 (msp430_unwind_sp): Delete.
8723 (msp430_dummy_id): Delete.
8724 (msp430_gdbarch_init): Don't register deleted functions with
8725 gdbarch.
8726
27f113c8
AB
87272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8728
8729 * moxie-tdep.c (moxie_unwind_sp): Delete.
8730 (moxie_unwind_pc): Delete.
8731 (moxie_dummy_id): Delete.
8732 (moxie_gdbarch_init): Don't register deleted functions with
8733 gdbarch.
8734
aee6c3cd
AB
87352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8738 (mn10300_unwind_pc): Delete.
8739 (mn10300_unwind_sp): Delete.
8740 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8741 mn10300_unwind_sp.
8742 (mn10300_frame_unwind_init): Don't register deleted functions with
8743 gdbarch.
8744
8e2b5aea
AB
87452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * mep-tdep.c (mep_unwind_pc): Delete.
8748 (mep_unwind_sp): Delete.
8749 (mep_dummy_id): Delete.
8750 (mep_gdbarch_init): Don't register deleted functions with
8751 gdbarch.
8752
43cf3ede
AB
87532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8756 (m68hc11_unwind_sp): Delete.
8757 (m68hc11_gdbarch_init): Don't register deleted functions with
8758 gdbarch.
8759
5e79b7bb
AB
87602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * m32r-tdep.c (m32r_unwind_sp): Delete.
8763 (m32r_unwind_pc): Delete.
8764 (m32r_dummy_id): Delete.
8765 (m32r_gdbarch_init): Don't register deleted functions with
8766 gdbarch.
8767
89b268d8
AB
87682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * m32c-tdep.c (m32c_unwind_pc): Delete.
8771 (m32c_unwind_sp): Delete.
8772 (m32c_dummy_id): Delete.
8773 (m32c_gdbarch_init): Don't register deleted functions with
8774 gdbarch.
8775
946c28d2
AB
87762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8779 (lm32_unwind_pc): Delete.
8780 (lm32_dummy_id): Delete.
8781 (lm32_gdbarch_init): Don't register deleted functions with
8782 gdbarch.
8783
bf12844a
AB
87842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8787 (iq2000_unwind_pc): Delete.
8788 (iq2000_dummy_id): Delete.
8789 (iq2000_gdbarch_init): Don't register deleted functions with
8790 gdbarch.
8791
ecbc06d2
AB
87922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8793
8794 * nds32-tdep.c (nds32_type_align): Delete.
8795 (nds32_push_dummy_call): Use type_align instead.
8796
030197b4
AB
87972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8798
8799 * arm-tdep.c (arm_type_align): Only handle vector override case.
8800 (arm_push_dummy_call): Use type_align.
8801 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8802
b907456c
AB
88032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8806 case.
8807 (pass_on_stack): Use type_align.
8808 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8809 function.
8810
9e97ba43
TT
88112019-04-23 Tom Tromey <tromey@adacore.com>
8812
8813 * dwarf2read.c (line_header::file_name_at): Remove unused
8814 overload.
8815
6892f601
TV
88162019-04-23 Tom de Vries <tdevries@suse.de>
8817
8818 PR gdb/24438
8819 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8820 invocation.
8821
336d760d
AT
8822
88232019-03-27 Ali Tamur <tamur@google.com>
8824
8825 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8826 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8827 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8828 (dwarf_expr_context::get_addr_index): Likewise
8829 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8830 (symbol_needs_eval_context::get_addr_index): Likewise
8831 (disassemble_dwarf_expression): Add DW_OP_addrx
8832 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8833 (read_cutu_die_from_dwo): Update comment
8834 (skip_one_die): Add DW_FORM_addrx
8835 (read_attribute_value): Likewise
8836 (var_decode_location): Add DW_OP_addrx
8837 (dwarf2_const_value_attr): Add DW_FORM_addrx
8838 (dump_die_shallow): Likewise
8839 (dwarf2_fetch_constant_bytes): Likewise
8840 (decode_locdesc): Add DW_OP_addrx
8841 (skip_form_bytes): Add DW_FORM_addrx
8842
ad9d13f8
AT
88432019-04-22 Ali Tamur <tamur@google.com>
8844
8845 * MAINTAINERS (Write After Approval): Add self.
8846
d70cc3ba
SM
88472019-04-22 Simon Marchi <simon.marchi@efficios.com>
8848
8849 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8850 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8851 (open_symbol_file_object): Likewise.
8852 (svr4_default_sos): Add info parameter.
8853 (svr4_read_so_list): Likewise.
8854 (svr4_current_sos_direct): Adjust functions calls to pass down
8855 info.
8856 (svr4_current_sos_1): Add info parameter.
8857 (svr4_current_sos): Call get_svr4_info, pass info down to
8858 svr4_current_sos_1.
8859 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8860 get_svr4_info.
8861 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8862 get_svr4_info.
8863 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8864 to get_svr4_info.
8865 (probes_table_remove_objfile_probes): Likewise.
8866 (register_solib_event_probe): Add info parameter.
8867 (solist_update_incremental): Pass info parameter down to
8868 svr4_read_so_list.
8869 (disable_probes_interface): Add info parameter.
8870 (svr4_handle_solib_event): Pass current_program_space to
8871 get_svr4_info. Adjust disable_probes_interface cleanup.
8872 (svr4_create_probe_breakpoints): Add info parameter, pass it
8873 down to register_solib_event_probe.
8874 (svr4_create_solib_event_breakpoints): Add info parameter,
8875 pass it down to svr4_create_probe_breakpoints.
8876 (enable_break): Pass info down to
8877 svr4_create_solib_event_breakpoints.
8878 (svr4_solib_create_inferior_hook): Pass current_program_space to
8879 get_svr4_info.
8880 (svr4_clear_solib): Likewise.
8881
7905fc35
PA
88822019-04-22 Pedro Alves <palves@redhat.com>
8883
8884 * solib-svr4.c (svr4_free_objfile_observer): New.
8885 (probe_and_action::objfile): New field.
8886 (probes_table_htab_remove_objfile_probes)
8887 (probes_table_remove_objfile_probes): New functions.
8888 (register_solib_event_probe): Add 'objfile' parameter. Store it
8889 in the new probe_and_action. Don't store the probe in 'lookup'.
8890 (svr4_create_probe_breakpoints): Pass objfile to
8891 register_solib_event_probe.
8892 (_initialize_svr4_solib): Register a free_objfile observer.
8893
fb881986
TT
88942019-04-19 Tom Tromey <tom@tromey.com>
8895
8896 * common/queue.h: Remove.
8897
8732db6c
TT
88982019-04-19 Tom Tromey <tom@tromey.com>
8899
8900 * event-loop.c: Don't include "common/queue.h".
8901
97dfbadd
TT
89022019-04-19 Tom Tromey <tom@tromey.com>
8903
8904 * remote.c (remote_target): Use delete.
8905 * remote-notif.h: Include <list>, not "common/queue.h".
8906 (notif_client_p): Remove typedef.
8907 (remote_notif_state): Add constructor, destructor, initializer.
8908 <notif_queue>: Now a std::list.
8909 (remote_notif_state_xfree): Don't declare.
8910 * remote-notif.c (remote_notif_process, handle_notification)
8911 (remote_notif_state_allocate): Update.
8912 (~remote_notif_state): Rename from remote_notif_state_xfree.
8913
cf250e36
TT
89142019-04-19 Tom Tromey <tom@tromey.com>
8915
8916 * symfile.c (reread_symbols): Update.
8917 * objfiles.c (objfile_register_static_link)
8918 (objfile_lookup_static_link): Update
8919 (~objfile) Don't delete static_links.
8920 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8921
61f4b350
TT
89222019-04-19 Tom Tromey <tom@tromey.com>
8923
8924 * type-stack.h (struct type_stack) <insert>: Constify string.
8925 * type-stack.c (type_stack::insert): Constify string.
8926 * gdbtypes.h (lookup_template_type): Update.
8927 (address_space_name_to_int): Update.
8928 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8929 const.
8930 (lookup_template_type): Make name const.
8931 * c-exp.y: Update rules.
8932 (lex_one_token, classify_name, classify_inner_name)
8933 (c_print_token): Update.
8934 * p-exp.y: Update rules.
8935 (yylex): Update.
8936 * f-exp.y: Update rules.
8937 (yylex): Update.
8938 * d-exp.y: Update rules.
8939 (lex_one_token, classify_name, classify_inner_name): Update.
8940 * parse.c (write_dollar_variable, copy_name): Return std::string.
8941 * parser-defs.h (copy_name): Change return type.
8942 * m2-exp.y: Update rules.
8943 (yylex): Update.
8944 * go-exp.y (lex_one_token): Update.
8945 Update rules.
8946 (classify_unsafe_function, classify_packaged_name)
8947 (classify_name, yylex): Update.
8948
189b8c2e
ST
89492019-04-19 Sergei Trofimovich <siarheit@google.com>
8950
8951 * configure.ac: add --enable-source-highlight switch.
8952 * configure: Regenerate.
8953 * top.c (print_gdb_version): plumb --enable-source-highlight
8954 status to "show configuration".
8955
8ecb59f8
TT
89562019-04-19 Tom Tromey <tromey@adacore.com>
8957
8958 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8959 Check ADA_TYPE_P.
8960 (empty_record, ada_template_to_fixed_record_type_1)
8961 (template_to_static_fixed_type)
8962 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8963 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8964 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8965 macros.
8966
62160ec9
TT
89672019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8968
8969 PR symtab/24423:
8970 * source.c (print_source_lines_base): Advance "iter" when a
8971 control character is seen.
8972
f2ae8bc8
PW
89732019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8974
8975 * inferior.h (struct infcall_suspend_state_deleter):
8976 Catch exception in destructor to avoid crash.
8977
d563b953
PW
89782019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8979
8980 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8981 close to the add_com "shell".
8982
dc34c897
TT
89832019-04-18 Tom Tromey <tromey@adacore.com>
8984
8985 * process-stratum-target.h (class process_stratum_target)
8986 <stratum>: Add "final".
8987
a12e5744
TT
89882019-04-17 Tom Tromey <tromey@adacore.com>
8989
8990 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8991 against nullptr before use.
8992
a7e559cc
AH
89932019-04-17 Alan Hayward <alan.hayward@arm.com>
8994
8995 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8996
c01660c6
AB
89972019-04-17 Jim Wilson <jimw@sifive.com>
8998 Andrew Burgess <andrew.burgess@embecosm.com>
8999
9000 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9001 code read might fail, assume 4-byte breakpoint in that case.
9002
4aa866af
LS
90032019-04-15 Leszek Swirski <leszeks@google.com>
9004
9005 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9006 rather than a hand-rolled POD check when checking for forced MEMORY
9007 classification.
9008
48574d91
AH
90092019-04-15 Alan Hayward <alan.hayward@arm.com>
9010
9011 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9012 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9013 function.
9014 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9015 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9016 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9017 declaration.
9018
4da037ef
AH
90192019-04-15 Alan Hayward <alan.hayward@arm.com>
9020
9021 * aarch64-linux-nat.c
9022 (aarch64_linux_nat_target::thread_architecture): Add override.
9023 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9024 each VQ.
9025
ccb8d7e8
AH
90262019-04-15 Alan Hayward <alan.hayward@arm.com>
9027
9028 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9029
35add35e
AB
90302019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9033 target types of size 96-bits, add some additional comments, and
9034 check that the builtin type we found was the correct size.
9035
51196bbc
EZ
90362019-04-12 Eli Zaretskii <eliz@gnu.org>
9037
9038 * utils.c (prompt_for_continue): Don't restore the styling at the
9039 end, as applied_style has the wrong value. This fixes styling in
9040 long lists of file names that are interrupted by the "Continue?"
9041 prompt.
9042
62253a61
AB
90432019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9046 * c-lang.c (c_language_defn): Likewise.
9047 (cplus_language_defn): Likewise.
9048 (asm_language_defn): Likewise.
9049 (minimal_language_defn): Likewise.
9050 * d-lang.c (d_language_defn): Likewise.
9051 * f-lang.c (f_language_defn): Likewise.
9052 * go-lang.c (go_language_defn): Likewise.
9053 * language.c (unknown_language_defn): Likewise.
9054 (auto_language_defn): Likewise.
9055 * language.h (struct language_defn): Remove la_magic field.
9056 (LANG_MAGIC): Delete.
9057 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9058 * objc-lang.c (objc_language_defn): Likewise.
9059 * opencl-lang.c (opencl_language_defn): Likewise.
9060 * p-lang.c (pascal_language_defn): Likewise.
9061 * rust-lang.c (rust_language_defn): Likewise.
9062
a9158a86
AB
90632019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9064
9065 * riscv-tdep.c (riscv_type_align): New function.
9066 (riscv_type_alignment): Delete.
9067 (riscv_arg_location): Use 'type_align'.
9068 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9069
41077b66
AB
90702019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * gdbtypes.c (type_align): A struct with no non-static fields also
9073 has alignment of 1.
9074
9f0272f8
AB
90752019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9076
9077 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9078 component to 0.
9079 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9080 member.
9081 (riscv_struct_info::analyse): New implementation using new
9082 analyse_inner member function.
9083 (riscv_struct_info::field_offset): New member function.
9084 (riscv_struct_info::m_offsets): New member variable.
9085 (riscv_struct_info::analyse_inner): New private member function,
9086 takes the old implementation of riscv_struct_info::analyse but
9087 extended to track field offsets.
9088 (riscv_call_arg_struct): Update the struct folding special cases
9089 to handle cases where empty C++ structs, which are non-zero
9090 length, are found.
9091 (riscv_arg_location): Initialise the length of each location, a
9092 non-zero length now indicates the location is in use.
9093 (riscv_push_dummy_call): Allow for the first location having a
9094 non-zero offset when setting up arguments.
9095 (riscv_return_value): Likewise, but for return values.
9096
02cf60c7
TT
90972019-04-11 Tom Tromey <tromey@adacore.com>
9098
9099 * utils.c (internal_vproblem): Make "msg" const.
9100
68811f8f
AH
91012019-04-11 Alan Hayward <alan.hayward@arm.com>
9102
9103 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9104 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9105 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9106 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9107
3f52fdbc
KB
91082019-04-10 Kevin Buettner <kevinb@redhat.com>
9109
9110 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9111 function.
9112 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9113 of amd64_collect_native_gregset.
9114 (amd64_linux_nat_target::store_registers): Likewise.
9115
e9ad22ee
TT
91162019-04-10 Tom Tromey <tom@tromey.com>
9117
9118 * symtab.c (lookup_global_symbol_from_objfile)
9119 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9120 * objfiles.h (class separate_debug_iterator): New.
9121 (class separate_debug_range): New.
9122 (struct objfile) <separate_debug_objfiles>: New method.
9123 (objfile_separate_debug_iterate): Don't declare.
9124 * objfiles.c (separate_debug_iterator::operator++): Rename from
9125 objfile_separate_debug_iterate.
9126 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9127 iterator.
9128 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9129 iterator.
9130
ee371134
TT
91312019-04-10 Tom Tromey <tom@tromey.com>
9132
9133 * symfile.c (reread_symbols): Remove old comment.
9134 * objfiles.c (free_all_objfiles): Fix a typo.
9135
bf227d61
TT
91362019-04-10 Tom Tromey <tom@tromey.com>
9137
9138 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9139 * minsyms.c (lookup_minimal_symbol): Use foreach.
9140 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9141 (lookup_minimal_symbol_solib_trampoline): Likewise.
9142 * symfile.c (reread_symbols): Use foreach.
9143
8dc433a0
TT
91442019-04-09 Ivan Begert <ivanbegert@gmail.com>
9145 Tom Tromey <tromey@adacore.com>
9146
9147 PR rust/24414:
9148 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9149 (rust_lex_int_test): Change "value" to be LONGEST.
9150 (rust_lex_tests): Add test for long integer literal.
9151
9ab8741a
TT
91522019-04-09 Tom Tromey <tromey@adacore.com>
9153
9154 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9155 to bool.
9156 (extended_remote_target::attach): Update.
9157 (remote_target::remote_notice_new_inferior): Update.
9158 (remote_target::add_current_inferior_and_thread): Update.
9159 * inferior.c (exit_inferior_1): Use "false".
9160 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9161
e242fd12
SM
91622019-04-09 Simon Marchi <simon.marchi@efficios.com>
9163
9ca1957f 9164 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9165 the "start" command.
9166
2b0c8b01
KB
91672019-04-08 Kevin Buettner <kevinb@redhat.com>
9168
9169 * python/py-inferior.c (infpy_thread_from_thread_handle):
9170 Adjust comments to reflect renaming of thread_from_thread_handle
9171 to thread_from_handle. Adjust keywords. Fix type error message.
9172 (inferior_object_methods): Add thread_from_handle. Retain
9173 thread_from_thread_handle, but mark it as deprecated.
9174
50a82723
KB
91752019-04-08 Kevin Buettner <kevinb@redhat.com>
9176
9177 * gdbthread.h (find_thread_by_handle): Revise declaration.
9178 * thread.c (find_thread_by_handle): Likewise. Adjust
9179 implementation too.
9180 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9181 support for buffer objects as handles.
9182
cf63b016
KB
91832019-04-08 Kevin Buettner <kevinb@redhat.com>
9184
9185 * python/py-infthread.c (thpy_thread_handle): New function.
9186 (thread_object_methods): Register thpy_thread_handle.
9187
3d6c6204
KB
91882019-04-08 Kevin Buettner <kevinb@redhat.com>
9189
9190 * gdbthread.h (thread_to_thread_handle): Declare.
9191 * thread.c (gdbtypes.h): Include.
9192 (thread_to_thread_handle): New function.
9193
9194 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9195 (target_thread_info_to_thread_handle): Declare.
9196 * target.c (target_thread_info_to_thread_handle): New function.
9197 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9198 * target-delegates.c: Regenerate.
9199
9200 * linux-thread-db.c (class thread_db_target): Add method
9201 thread_info_to_thread_handle.
9202 (thread_db_target::thread_info_to_thread_handle): Define.
9203 * remote.c (class remote_target): Add new method
9204 thread_info_to_thread_handle.
9205 (remote_target::thread_info_to_thread_handle): Define.
9206
56be6ea8
PA
92072019-04-08 Pedro Alves <palves@redhat.com>
9208
9209 * common/common-exceptions.c (throw_exception): Don't create
9210 named object to throw; throw directly.
9211 (throw_it): Likewise. Don't initialize gdb_exception::message
9212 here, with new; pass FMT and AP to the ctor instead.
9213 * common/common-exceptions.h: Include <string>.
9214 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9215 const char *, va_list)): New ctor. Use std::make_shared.
9216 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9217 errors)): Delete.
9218 (gdb_exception_error::gdb_exception_error(enum errors, const char
9219 *, va_list)): New.
9220 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9221 Add assertion.
9222 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9223 errors)): Delete.
9224 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9225 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9226 Add assertion.
9227
eedc3f4f
TT
92282019-04-08 Tom Tromey <tom@tromey.com>
9229
9230 * valops.c (value_rtti_indirect_type): Replace throw_exception
9231 with throw.
9232 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9233 with throw.
9234 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9235 throw.
9236 * target.c (target_translate_tls_address): Replace throw_exception
9237 with throw.
9238 * stack.c (frame_apply_command_count): Replace throw_exception
9239 with throw.
9240 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9241 throw.
9242 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9243 with throw.
9244 * rs6000-tdep.c (rs6000_frame_cache)
9245 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9246 * remote.c: Replace throw_exception with throw.
9247 * record-full.c (record_full_message, record_full_wait_1)
9248 (record_full_restore): Replace throw_exception with throw.
9249 * record-btrace.c:
9250 (get_thread_current_frame_id, record_btrace_start_replaying)
9251 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9252 (cmd_record_btrace_start): Replace throw_exception with throw.
9253 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9254 throw.
9255 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9256 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9257 * linespec.c:
9258 (find_linespec_symbols): Replace throw_exception with throw.
9259 * infrun.c (displaced_step_prepare, resume): Replace
9260 throw_exception with throw.
9261 * infcmd.c (post_create_inferior): Replace throw_exception with
9262 throw.
9263 * inf-loop.c (inferior_event_handler): Replace throw_exception
9264 with throw.
9265 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9266 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9267 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9268 (get_prev_frame_always, get_frame_pc_if_available)
9269 (get_frame_address_in_block_if_available, get_frame_language):
9270 Replace throw_exception with throw.
9271 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9272 throw_exception with throw.
9273 * eval.c (fetch_subexp_value, evaluate_var_value)
9274 (evaluate_funcall, evaluate_subexp_standard): Replace
9275 throw_exception with throw.
9276 * dwarf2loc.c (call_site_find_chain)
9277 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9278 Replace throw_exception with throw.
9279 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9280 with throw.
9281 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9282 throw.
9283 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9284 * completer.c (complete_line_internal): Replace throw_exception
9285 with throw.
9286 * compile/compile-object-run.c (compile_object_run): Replace
9287 throw_exception with throw.
9288 * cli/cli-script.c (process_next_line): Replace throw_exception
9289 with throw.
9290 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9291 (btrace_enable, btrace_maint_update_pt_packets): Replace
9292 throw_exception with throw.
9293 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9294 throw_exception with throw.
9295 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9296 throw_exception with throw.
9297 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9298 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9299 * aarch64-tdep.c (aarch64_make_prologue_cache)
9300 (aarch64_make_stub_cache): Replace throw_exception with throw.
9301
26003a20
TT
93022019-04-08 Tom Tromey <tom@tromey.com>
9303
9304 * common/common-exceptions.c (throw_exception): Rename from
9305 throw_exception_cxx. Remove old copy. Make argument const.
9306 (throw_it): Create and throw exception objects directly.
9307 * common/common-exceptions.h (throw_exception): Make argument
9308 const.
9309 (struct gdb_exception_error): Add constructor.
9310 (struct gdb_exception_quit): Add constructor.
9311
d272eb37
TT
93122019-04-08 Tom Tromey <tom@tromey.com>
9313
9314 * common/common-exceptions.h (exception_rethrow): Don't declare.
9315 (TRY_SJLJ): Update comment.
9316 (TRY, CATCH, END_CATCH): Remove.
9317 * common/common-exceptions.c (exception_rethrow): Remove.
9318
230d2906
TT
93192019-04-08 Tom Tromey <tom@tromey.com>
9320
9321 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9322 Remove.
9323 (gdb_exception_error): Rename from
9324 gdb_exception_RETURN_MASK_ERROR.
9325 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9326 (gdb_quit_bad_alloc): Update.
9327 * aarch64-tdep.c: Update.
9328 * ada-lang.c: Update.
9329 * ada-typeprint.c: Update.
9330 * ada-valprint.c: Update.
9331 * amd64-tdep.c: Update.
9332 * arch-utils.c: Update.
9333 * break-catch-throw.c: Update.
9334 * breakpoint.c: Update.
9335 * btrace.c: Update.
9336 * c-varobj.c: Update.
9337 * cli/cli-cmds.c: Update.
9338 * cli/cli-interp.c: Update.
9339 * cli/cli-script.c: Update.
9340 * common/common-exceptions.c: Update.
9341 * common/new-op.c: Update.
9342 * common/selftest.c: Update.
9343 * compile/compile-c-symbols.c: Update.
9344 * compile/compile-cplus-symbols.c: Update.
9345 * compile/compile-object-load.c: Update.
9346 * compile/compile-object-run.c: Update.
9347 * completer.c: Update.
9348 * corelow.c: Update.
9349 * cp-abi.c: Update.
9350 * cp-support.c: Update.
9351 * cp-valprint.c: Update.
9352 * darwin-nat.c: Update.
9353 * disasm-selftests.c: Update.
9354 * dtrace-probe.c: Update.
9355 * dwarf-index-cache.c: Update.
9356 * dwarf-index-write.c: Update.
9357 * dwarf2-frame-tailcall.c: Update.
9358 * dwarf2-frame.c: Update.
9359 * dwarf2loc.c: Update.
9360 * dwarf2read.c: Update.
9361 * eval.c: Update.
9362 * event-loop.c: Update.
9363 * event-top.c: Update.
9364 * exec.c: Update.
9365 * f-valprint.c: Update.
9366 * fbsd-tdep.c: Update.
9367 * frame-unwind.c: Update.
9368 * frame.c: Update.
9369 * gdbtypes.c: Update.
9370 * gnu-v3-abi.c: Update.
9371 * guile/guile-internal.h: Update.
9372 * guile/scm-block.c: Update.
9373 * guile/scm-breakpoint.c: Update.
9374 * guile/scm-cmd.c: Update.
9375 * guile/scm-disasm.c: Update.
9376 * guile/scm-frame.c: Update.
9377 * guile/scm-lazy-string.c: Update.
9378 * guile/scm-math.c: Update.
9379 * guile/scm-param.c: Update.
9380 * guile/scm-ports.c: Update.
9381 * guile/scm-pretty-print.c: Update.
9382 * guile/scm-symbol.c: Update.
9383 * guile/scm-symtab.c: Update.
9384 * guile/scm-type.c: Update.
9385 * guile/scm-value.c: Update.
9386 * i386-linux-tdep.c: Update.
9387 * i386-tdep.c: Update.
9388 * inf-loop.c: Update.
9389 * infcall.c: Update.
9390 * infcmd.c: Update.
9391 * infrun.c: Update.
9392 * jit.c: Update.
9393 * language.c: Update.
9394 * linespec.c: Update.
9395 * linux-fork.c: Update.
9396 * linux-nat.c: Update.
9397 * linux-tdep.c: Update.
9398 * linux-thread-db.c: Update.
9399 * main.c: Update.
9400 * mi/mi-cmd-break.c: Update.
9401 * mi/mi-cmd-stack.c: Update.
9402 * mi/mi-interp.c: Update.
9403 * mi/mi-main.c: Update.
9404 * objc-lang.c: Update.
9405 * p-valprint.c: Update.
9406 * parse.c: Update.
9407 * ppc-linux-tdep.c: Update.
9408 * printcmd.c: Update.
9409 * python/py-arch.c: Update.
9410 * python/py-breakpoint.c: Update.
9411 * python/py-cmd.c: Update.
9412 * python/py-finishbreakpoint.c: Update.
9413 * python/py-frame.c: Update.
9414 * python/py-framefilter.c: Update.
9415 * python/py-gdb-readline.c: Update.
9416 * python/py-inferior.c: Update.
9417 * python/py-infthread.c: Update.
9418 * python/py-lazy-string.c: Update.
9419 * python/py-linetable.c: Update.
9420 * python/py-objfile.c: Update.
9421 * python/py-param.c: Update.
9422 * python/py-prettyprint.c: Update.
9423 * python/py-progspace.c: Update.
9424 * python/py-record-btrace.c: Update.
9425 * python/py-record.c: Update.
9426 * python/py-symbol.c: Update.
9427 * python/py-type.c: Update.
9428 * python/py-unwind.c: Update.
9429 * python/py-utils.c: Update.
9430 * python/py-value.c: Update.
9431 * python/python.c: Update.
9432 * record-btrace.c: Update.
9433 * record-full.c: Update.
9434 * remote-fileio.c: Update.
9435 * remote.c: Update.
9436 * riscv-tdep.c: Update.
9437 * rs6000-aix-tdep.c: Update.
9438 * rs6000-tdep.c: Update.
9439 * rust-exp.y: Update.
9440 * rust-lang.c: Update.
9441 * s390-tdep.c: Update.
9442 * selftest-arch.c: Update.
9443 * solib-dsbt.c: Update.
9444 * solib-frv.c: Update.
9445 * solib-spu.c: Update.
9446 * solib-svr4.c: Update.
9447 * solib.c: Update.
9448 * sparc64-linux-tdep.c: Update.
9449 * stack.c: Update.
9450 * symfile-mem.c: Update.
9451 * symmisc.c: Update.
9452 * target.c: Update.
9453 * thread.c: Update.
9454 * top.c: Update.
9455 * tracefile-tfile.c: Update.
9456 * tui/tui.c: Update.
9457 * typeprint.c: Update.
9458 * unittests/cli-utils-selftests.c: Update.
9459 * unittests/parse-connection-spec-selftests.c: Update.
9460 * valops.c: Update.
9461 * valprint.c: Update.
9462 * value.c: Update.
9463 * varobj.c: Update.
9464 * windows-nat.c: Update.
9465 * x86-linux-nat.c: Update.
9466 * xml-support.c: Update.
9467
a70b8144
TT
94682019-04-08 Tom Tromey <tom@tromey.com>
9469
9470 * xml-support.c: Use C++ exception handling.
9471 * x86-linux-nat.c: Use C++ exception handling.
9472 * windows-nat.c: Use C++ exception handling.
9473 * varobj.c: Use C++ exception handling.
9474 * value.c: Use C++ exception handling.
9475 * valprint.c: Use C++ exception handling.
9476 * valops.c: Use C++ exception handling.
9477 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9478 handling.
9479 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9480 * typeprint.c: Use C++ exception handling.
9481 * tui/tui.c: Use C++ exception handling.
9482 * tracefile-tfile.c: Use C++ exception handling.
9483 * top.c: Use C++ exception handling.
9484 * thread.c: Use C++ exception handling.
9485 * target.c: Use C++ exception handling.
9486 * symmisc.c: Use C++ exception handling.
9487 * symfile-mem.c: Use C++ exception handling.
9488 * stack.c: Use C++ exception handling.
9489 * sparc64-linux-tdep.c: Use C++ exception handling.
9490 * solib.c: Use C++ exception handling.
9491 * solib-svr4.c: Use C++ exception handling.
9492 * solib-spu.c: Use C++ exception handling.
9493 * solib-frv.c: Use C++ exception handling.
9494 * solib-dsbt.c: Use C++ exception handling.
9495 * selftest-arch.c: Use C++ exception handling.
9496 * s390-tdep.c: Use C++ exception handling.
9497 * rust-lang.c: Use C++ exception handling.
9498 * rust-exp.y: Use C++ exception handling.
9499 * rs6000-tdep.c: Use C++ exception handling.
9500 * rs6000-aix-tdep.c: Use C++ exception handling.
9501 * riscv-tdep.c: Use C++ exception handling.
9502 * remote.c: Use C++ exception handling.
9503 * remote-fileio.c: Use C++ exception handling.
9504 * record-full.c: Use C++ exception handling.
9505 * record-btrace.c: Use C++ exception handling.
9506 * python/python.c: Use C++ exception handling.
9507 * python/py-value.c: Use C++ exception handling.
9508 * python/py-utils.c: Use C++ exception handling.
9509 * python/py-unwind.c: Use C++ exception handling.
9510 * python/py-type.c: Use C++ exception handling.
9511 * python/py-symbol.c: Use C++ exception handling.
9512 * python/py-record.c: Use C++ exception handling.
9513 * python/py-record-btrace.c: Use C++ exception handling.
9514 * python/py-progspace.c: Use C++ exception handling.
9515 * python/py-prettyprint.c: Use C++ exception handling.
9516 * python/py-param.c: Use C++ exception handling.
9517 * python/py-objfile.c: Use C++ exception handling.
9518 * python/py-linetable.c: Use C++ exception handling.
9519 * python/py-lazy-string.c: Use C++ exception handling.
9520 * python/py-infthread.c: Use C++ exception handling.
9521 * python/py-inferior.c: Use C++ exception handling.
9522 * python/py-gdb-readline.c: Use C++ exception handling.
9523 * python/py-framefilter.c: Use C++ exception handling.
9524 * python/py-frame.c: Use C++ exception handling.
9525 * python/py-finishbreakpoint.c: Use C++ exception handling.
9526 * python/py-cmd.c: Use C++ exception handling.
9527 * python/py-breakpoint.c: Use C++ exception handling.
9528 * python/py-arch.c: Use C++ exception handling.
9529 * printcmd.c: Use C++ exception handling.
9530 * ppc-linux-tdep.c: Use C++ exception handling.
9531 * parse.c: Use C++ exception handling.
9532 * p-valprint.c: Use C++ exception handling.
9533 * objc-lang.c: Use C++ exception handling.
9534 * mi/mi-main.c: Use C++ exception handling.
9535 * mi/mi-interp.c: Use C++ exception handling.
9536 * mi/mi-cmd-stack.c: Use C++ exception handling.
9537 * mi/mi-cmd-break.c: Use C++ exception handling.
9538 * main.c: Use C++ exception handling.
9539 * linux-thread-db.c: Use C++ exception handling.
9540 * linux-tdep.c: Use C++ exception handling.
9541 * linux-nat.c: Use C++ exception handling.
9542 * linux-fork.c: Use C++ exception handling.
9543 * linespec.c: Use C++ exception handling.
9544 * language.c: Use C++ exception handling.
9545 * jit.c: Use C++ exception handling.
9546 * infrun.c: Use C++ exception handling.
9547 * infcmd.c: Use C++ exception handling.
9548 * infcall.c: Use C++ exception handling.
9549 * inf-loop.c: Use C++ exception handling.
9550 * i386-tdep.c: Use C++ exception handling.
9551 * i386-linux-tdep.c: Use C++ exception handling.
9552 * guile/scm-value.c: Use C++ exception handling.
9553 * guile/scm-type.c: Use C++ exception handling.
9554 * guile/scm-symtab.c: Use C++ exception handling.
9555 * guile/scm-symbol.c: Use C++ exception handling.
9556 * guile/scm-pretty-print.c: Use C++ exception handling.
9557 * guile/scm-ports.c: Use C++ exception handling.
9558 * guile/scm-param.c: Use C++ exception handling.
9559 * guile/scm-math.c: Use C++ exception handling.
9560 * guile/scm-lazy-string.c: Use C++ exception handling.
9561 * guile/scm-frame.c: Use C++ exception handling.
9562 * guile/scm-disasm.c: Use C++ exception handling.
9563 * guile/scm-cmd.c: Use C++ exception handling.
9564 * guile/scm-breakpoint.c: Use C++ exception handling.
9565 * guile/scm-block.c: Use C++ exception handling.
9566 * guile/guile-internal.h: Use C++ exception handling.
9567 * gnu-v3-abi.c: Use C++ exception handling.
9568 * gdbtypes.c: Use C++ exception handling.
9569 * frame.c: Use C++ exception handling.
9570 * frame-unwind.c: Use C++ exception handling.
9571 * fbsd-tdep.c: Use C++ exception handling.
9572 * f-valprint.c: Use C++ exception handling.
9573 * exec.c: Use C++ exception handling.
9574 * event-top.c: Use C++ exception handling.
9575 * event-loop.c: Use C++ exception handling.
9576 * eval.c: Use C++ exception handling.
9577 * dwarf2read.c: Use C++ exception handling.
9578 * dwarf2loc.c: Use C++ exception handling.
9579 * dwarf2-frame.c: Use C++ exception handling.
9580 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9581 * dwarf-index-write.c: Use C++ exception handling.
9582 * dwarf-index-cache.c: Use C++ exception handling.
9583 * dtrace-probe.c: Use C++ exception handling.
9584 * disasm-selftests.c: Use C++ exception handling.
9585 * darwin-nat.c: Use C++ exception handling.
9586 * cp-valprint.c: Use C++ exception handling.
9587 * cp-support.c: Use C++ exception handling.
9588 * cp-abi.c: Use C++ exception handling.
9589 * corelow.c: Use C++ exception handling.
9590 * completer.c: Use C++ exception handling.
9591 * compile/compile-object-run.c: Use C++ exception handling.
9592 * compile/compile-object-load.c: Use C++ exception handling.
9593 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9594 * compile/compile-c-symbols.c: Use C++ exception handling.
9595 * common/selftest.c: Use C++ exception handling.
9596 * common/new-op.c: Use C++ exception handling.
9597 * cli/cli-script.c: Use C++ exception handling.
9598 * cli/cli-interp.c: Use C++ exception handling.
9599 * cli/cli-cmds.c: Use C++ exception handling.
9600 * c-varobj.c: Use C++ exception handling.
9601 * btrace.c: Use C++ exception handling.
9602 * breakpoint.c: Use C++ exception handling.
9603 * break-catch-throw.c: Use C++ exception handling.
9604 * arch-utils.c: Use C++ exception handling.
9605 * amd64-tdep.c: Use C++ exception handling.
9606 * ada-valprint.c: Use C++ exception handling.
9607 * ada-typeprint.c: Use C++ exception handling.
9608 * ada-lang.c: Use C++ exception handling.
9609 * aarch64-tdep.c: Use C++ exception handling.
9610
3d6e9d23
TT
96112019-04-08 Tom Tromey <tom@tromey.com>
9612
9613 * xml-support.c (gdb_xml_parser::parse): Update.
9614 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9615 * value.c (show_convenience): Update.
9616 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9617 (test_parse_flags_qcs): Update.
9618 * thread.c (thr_try_catch_cmd): Update.
9619 * target.c (target_translate_tls_address): Update.
9620 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9621 (info_frame_command_core, frame_apply_command_count): Update.
9622 * rust-exp.y (rust_lex_exception_test): Update.
9623 * riscv-tdep.c (riscv_print_one_register_info): Update.
9624 * remote.c (remote_target::enable_btrace): Update.
9625 * record-btrace.c (record_btrace_enable_warn): Update.
9626 * python/py-utils.c (gdbpy_convert_exception): Update.
9627 * printcmd.c (do_one_display, print_variable_and_value): Update.
9628 * mi/mi-main.c (mi_print_exception): Update.
9629 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9630 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9631 * linux-nat.c (linux_nat_target::attach): Update.
9632 * linux-fork.c (class scoped_switch_fork_info): Update.
9633 * infrun.c (displaced_step_prepare): Update.
9634 * infcall.c (call_function_by_hand_dummy): Update.
9635 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9636 * gnu-v3-abi.c (print_one_vtable): Update.
9637 * frame.c (get_prev_frame_always): Update.
9638 * f-valprint.c (info_common_command_for_block): Update.
9639 * exec.c (try_open_exec_file): Update.
9640 * exceptions.c (print_exception, exception_print)
9641 (exception_fprintf, exception_print_same): Update.
9642 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9643 * dwarf-index-cache.c (index_cache::store)
9644 (index_cache::lookup_gdb_index): Update.
9645 * darwin-nat.c (maybe_cache_shell): Update.
9646 * cp-valprint.c (cp_print_value_fields): Update.
9647 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9648 (gcc_cplus_symbol_address): Update.
9649 * compile/compile-c-symbols.c (gcc_convert_symbol)
9650 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9651 * common/selftest.c: Update.
9652 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9653 a std::string.
9654 (exception_try_scope_entry, exception_try_scope_exit): Don't
9655 declare.
9656 (struct exception_try_scope): Remove.
9657 (TRY): Don't use exception_try_scope.
9658 (struct gdb_exception): Add constructor, operator=.
9659 <what>: New method.
9660 (struct gdb_exception_RETURN_MASK_ALL)
9661 (struct gdb_exception_RETURN_MASK_ERROR)
9662 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9663 (struct gdb_quit_bad_alloc): Update.
9664 * common/common-exceptions.c (exception_none): Change
9665 initializer.
9666 (struct catcher) <state, exception>: Initialize inline.
9667 <prev>: Remove member.
9668 (current_catcher): Remove.
9669 (catchers): New global.
9670 (exceptions_state_mc_init): Simplify.
9671 (catcher_pop): Remove.
9672 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9673 (try_scope_depth, exception_try_scope_entry)
9674 (exception_try_scope_exit): Remove.
9675 (throw_exception_sjlj): Update.
9676 (exception_messages, exception_messages_size): Remove.
9677 (throw_it): Simplify.
9678 (gdb_exception_sliced_copy): Remove.
9679 (throw_exception_cxx): Update.
9680 * cli/cli-script.c (script_from_file): Update.
9681 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9682 Update.
9683 * ada-valprint.c (ada_val_print): Update.
9684 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9685 (create_excep_cond_exprs): Update.
9686
c5c10118
TT
96872019-04-08 Tom Tromey <tom@tromey.com>
9688
9689 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9690 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9691 (TRY, CATCH, END_CATCH): Remove some definitions.
9692 * common/common-exceptions.c: Don't use GDB_XCPT.
9693 (catcher_list_size): Remove.
9694 (throw_exception, throw_it): Simplify.
9695
4de283e4
TT
96962019-04-05 Tom Tromey <tom@tromey.com>
9697
9698 Revert the header-sorting patch.
9699 * ft32-tdep.c: Revert.
9700 * frv-tdep.c: Revert.
9701 * frv-linux-tdep.c: Revert.
9702 * frame.c: Revert.
9703 * frame-unwind.c: Revert.
9704 * frame-base.c: Revert.
9705 * fork-child.c: Revert.
9706 * findvar.c: Revert.
9707 * findcmd.c: Revert.
9708 * filesystem.c: Revert.
9709 * filename-seen-cache.h: Revert.
9710 * filename-seen-cache.c: Revert.
9711 * fbsd-tdep.c: Revert.
9712 * fbsd-nat.h: Revert.
9713 * fbsd-nat.c: Revert.
9714 * f-valprint.c: Revert.
9715 * f-typeprint.c: Revert.
9716 * f-lang.c: Revert.
9717 * extension.h: Revert.
9718 * extension.c: Revert.
9719 * extension-priv.h: Revert.
9720 * expprint.c: Revert.
9721 * exec.h: Revert.
9722 * exec.c: Revert.
9723 * exceptions.c: Revert.
9724 * event-top.c: Revert.
9725 * event-loop.c: Revert.
9726 * eval.c: Revert.
9727 * elfread.c: Revert.
9728 * dwarf2read.h: Revert.
9729 * dwarf2read.c: Revert.
9730 * dwarf2loc.c: Revert.
9731 * dwarf2expr.h: Revert.
9732 * dwarf2expr.c: Revert.
9733 * dwarf2-frame.c: Revert.
9734 * dwarf2-frame-tailcall.c: Revert.
9735 * dwarf-index-write.h: Revert.
9736 * dwarf-index-write.c: Revert.
9737 * dwarf-index-common.c: Revert.
9738 * dwarf-index-cache.h: Revert.
9739 * dwarf-index-cache.c: Revert.
9740 * dummy-frame.c: Revert.
9741 * dtrace-probe.c: Revert.
9742 * disasm.h: Revert.
9743 * disasm.c: Revert.
9744 * disasm-selftests.c: Revert.
9745 * dictionary.c: Revert.
9746 * dicos-tdep.c: Revert.
9747 * demangle.c: Revert.
9748 * dcache.h: Revert.
9749 * dcache.c: Revert.
9750 * darwin-nat.h: Revert.
9751 * darwin-nat.c: Revert.
9752 * darwin-nat-info.c: Revert.
9753 * d-valprint.c: Revert.
9754 * d-namespace.c: Revert.
9755 * d-lang.c: Revert.
9756 * ctf.c: Revert.
9757 * csky-tdep.c: Revert.
9758 * csky-linux-tdep.c: Revert.
9759 * cris-tdep.c: Revert.
9760 * cris-linux-tdep.c: Revert.
9761 * cp-valprint.c: Revert.
9762 * cp-support.c: Revert.
9763 * cp-namespace.c: Revert.
9764 * cp-abi.c: Revert.
9765 * corelow.c: Revert.
9766 * corefile.c: Revert.
9767 * continuations.c: Revert.
9768 * completer.h: Revert.
9769 * completer.c: Revert.
9770 * complaints.c: Revert.
9771 * coffread.c: Revert.
9772 * coff-pe-read.c: Revert.
9773 * cli-out.h: Revert.
9774 * cli-out.c: Revert.
9775 * charset.c: Revert.
9776 * c-varobj.c: Revert.
9777 * c-valprint.c: Revert.
9778 * c-typeprint.c: Revert.
9779 * c-lang.c: Revert.
9780 * buildsym.c: Revert.
9781 * buildsym-legacy.c: Revert.
9782 * build-id.h: Revert.
9783 * build-id.c: Revert.
9784 * btrace.c: Revert.
9785 * bsd-uthread.c: Revert.
9786 * breakpoint.h: Revert.
9787 * breakpoint.c: Revert.
9788 * break-catch-throw.c: Revert.
9789 * break-catch-syscall.c: Revert.
9790 * break-catch-sig.c: Revert.
9791 * blockframe.c: Revert.
9792 * block.c: Revert.
9793 * bfin-tdep.c: Revert.
9794 * bfin-linux-tdep.c: Revert.
9795 * bfd-target.c: Revert.
9796 * bcache.c: Revert.
9797 * ax-general.c: Revert.
9798 * ax-gdb.h: Revert.
9799 * ax-gdb.c: Revert.
9800 * avr-tdep.c: Revert.
9801 * auxv.c: Revert.
9802 * auto-load.c: Revert.
9803 * arm-wince-tdep.c: Revert.
9804 * arm-tdep.c: Revert.
9805 * arm-symbian-tdep.c: Revert.
9806 * arm-pikeos-tdep.c: Revert.
9807 * arm-obsd-tdep.c: Revert.
9808 * arm-nbsd-tdep.c: Revert.
9809 * arm-nbsd-nat.c: Revert.
9810 * arm-linux-tdep.c: Revert.
9811 * arm-linux-nat.c: Revert.
9812 * arm-fbsd-tdep.c: Revert.
9813 * arm-fbsd-nat.c: Revert.
9814 * arm-bsd-tdep.c: Revert.
9815 * arch-utils.c: Revert.
9816 * arc-tdep.c: Revert.
9817 * arc-newlib-tdep.c: Revert.
9818 * annotate.h: Revert.
9819 * annotate.c: Revert.
9820 * amd64-windows-tdep.c: Revert.
9821 * amd64-windows-nat.c: Revert.
9822 * amd64-tdep.c: Revert.
9823 * amd64-sol2-tdep.c: Revert.
9824 * amd64-obsd-tdep.c: Revert.
9825 * amd64-obsd-nat.c: Revert.
9826 * amd64-nbsd-tdep.c: Revert.
9827 * amd64-nbsd-nat.c: Revert.
9828 * amd64-nat.c: Revert.
9829 * amd64-linux-tdep.c: Revert.
9830 * amd64-linux-nat.c: Revert.
9831 * amd64-fbsd-tdep.c: Revert.
9832 * amd64-fbsd-nat.c: Revert.
9833 * amd64-dicos-tdep.c: Revert.
9834 * amd64-darwin-tdep.c: Revert.
9835 * amd64-bsd-nat.c: Revert.
9836 * alpha-tdep.c: Revert.
9837 * alpha-obsd-tdep.c: Revert.
9838 * alpha-nbsd-tdep.c: Revert.
9839 * alpha-mdebug-tdep.c: Revert.
9840 * alpha-linux-tdep.c: Revert.
9841 * alpha-linux-nat.c: Revert.
9842 * alpha-bsd-tdep.c: Revert.
9843 * alpha-bsd-nat.c: Revert.
9844 * aix-thread.c: Revert.
9845 * agent.c: Revert.
9846 * addrmap.c: Revert.
9847 * ada-varobj.c: Revert.
9848 * ada-valprint.c: Revert.
9849 * ada-typeprint.c: Revert.
9850 * ada-tasks.c: Revert.
9851 * ada-lang.c: Revert.
9852 * aarch64-tdep.c: Revert.
9853 * aarch64-ravenscar-thread.c: Revert.
9854 * aarch64-newlib-tdep.c: Revert.
9855 * aarch64-linux-tdep.c: Revert.
9856 * aarch64-linux-nat.c: Revert.
9857 * aarch64-fbsd-tdep.c: Revert.
9858 * aarch64-fbsd-nat.c: Revert.
9859 * aarch32-linux-nat.c: Revert.
9860
d55e5aa6
TT
98612019-04-05 Tom Tromey <tom@tromey.com>
9862
9863 * ft32-tdep.c: Sort headers.
9864 * frv-tdep.c: Sort headers.
9865 * frv-linux-tdep.c: Sort headers.
9866 * frame.c: Sort headers.
9867 * frame-unwind.c: Sort headers.
9868 * frame-base.c: Sort headers.
9869 * fork-child.c: Sort headers.
9870 * findvar.c: Sort headers.
9871 * findcmd.c: Sort headers.
9872 * filesystem.c: Sort headers.
9873 * filename-seen-cache.h: Sort headers.
9874 * filename-seen-cache.c: Sort headers.
9875 * fbsd-tdep.c: Sort headers.
9876 * fbsd-nat.h: Sort headers.
9877 * fbsd-nat.c: Sort headers.
9878 * f-valprint.c: Sort headers.
9879 * f-typeprint.c: Sort headers.
9880 * f-lang.c: Sort headers.
9881 * extension.h: Sort headers.
9882 * extension.c: Sort headers.
9883 * extension-priv.h: Sort headers.
9884 * expprint.c: Sort headers.
9885 * exec.h: Sort headers.
9886 * exec.c: Sort headers.
9887 * exceptions.c: Sort headers.
9888 * event-top.c: Sort headers.
9889 * event-loop.c: Sort headers.
9890 * eval.c: Sort headers.
9891 * elfread.c: Sort headers.
9892 * dwarf2read.h: Sort headers.
9893 * dwarf2read.c: Sort headers.
9894 * dwarf2loc.c: Sort headers.
9895 * dwarf2expr.h: Sort headers.
9896 * dwarf2expr.c: Sort headers.
9897 * dwarf2-frame.c: Sort headers.
9898 * dwarf2-frame-tailcall.c: Sort headers.
9899 * dwarf-index-write.h: Sort headers.
9900 * dwarf-index-write.c: Sort headers.
9901 * dwarf-index-common.c: Sort headers.
9902 * dwarf-index-cache.h: Sort headers.
9903 * dwarf-index-cache.c: Sort headers.
9904 * dummy-frame.c: Sort headers.
9905 * dtrace-probe.c: Sort headers.
9906 * disasm.h: Sort headers.
9907 * disasm.c: Sort headers.
9908 * disasm-selftests.c: Sort headers.
9909 * dictionary.c: Sort headers.
9910 * dicos-tdep.c: Sort headers.
9911 * demangle.c: Sort headers.
9912 * dcache.h: Sort headers.
9913 * dcache.c: Sort headers.
9914 * darwin-nat.h: Sort headers.
9915 * darwin-nat.c: Sort headers.
9916 * darwin-nat-info.c: Sort headers.
9917 * d-valprint.c: Sort headers.
9918 * d-namespace.c: Sort headers.
9919 * d-lang.c: Sort headers.
9920 * ctf.c: Sort headers.
9921 * csky-tdep.c: Sort headers.
9922 * csky-linux-tdep.c: Sort headers.
9923 * cris-tdep.c: Sort headers.
9924 * cris-linux-tdep.c: Sort headers.
9925 * cp-valprint.c: Sort headers.
9926 * cp-support.c: Sort headers.
9927 * cp-namespace.c: Sort headers.
9928 * cp-abi.c: Sort headers.
9929 * corelow.c: Sort headers.
9930 * corefile.c: Sort headers.
9931 * continuations.c: Sort headers.
9932 * completer.h: Sort headers.
9933 * completer.c: Sort headers.
9934 * complaints.c: Sort headers.
9935 * coffread.c: Sort headers.
9936 * coff-pe-read.c: Sort headers.
9937 * cli-out.h: Sort headers.
9938 * cli-out.c: Sort headers.
9939 * charset.c: Sort headers.
9940 * c-varobj.c: Sort headers.
9941 * c-valprint.c: Sort headers.
9942 * c-typeprint.c: Sort headers.
9943 * c-lang.c: Sort headers.
9944 * buildsym.c: Sort headers.
9945 * buildsym-legacy.c: Sort headers.
9946 * build-id.h: Sort headers.
9947 * build-id.c: Sort headers.
9948 * btrace.c: Sort headers.
9949 * bsd-uthread.c: Sort headers.
9950 * breakpoint.h: Sort headers.
9951 * breakpoint.c: Sort headers.
9952 * break-catch-throw.c: Sort headers.
9953 * break-catch-syscall.c: Sort headers.
9954 * break-catch-sig.c: Sort headers.
9955 * blockframe.c: Sort headers.
9956 * block.c: Sort headers.
9957 * bfin-tdep.c: Sort headers.
9958 * bfin-linux-tdep.c: Sort headers.
9959 * bfd-target.c: Sort headers.
9960 * bcache.c: Sort headers.
9961 * ax-general.c: Sort headers.
9962 * ax-gdb.h: Sort headers.
9963 * ax-gdb.c: Sort headers.
9964 * avr-tdep.c: Sort headers.
9965 * auxv.c: Sort headers.
9966 * auto-load.c: Sort headers.
9967 * arm-wince-tdep.c: Sort headers.
9968 * arm-tdep.c: Sort headers.
9969 * arm-symbian-tdep.c: Sort headers.
9970 * arm-pikeos-tdep.c: Sort headers.
9971 * arm-obsd-tdep.c: Sort headers.
9972 * arm-nbsd-tdep.c: Sort headers.
9973 * arm-nbsd-nat.c: Sort headers.
9974 * arm-linux-tdep.c: Sort headers.
9975 * arm-linux-nat.c: Sort headers.
9976 * arm-fbsd-tdep.c: Sort headers.
9977 * arm-fbsd-nat.c: Sort headers.
9978 * arm-bsd-tdep.c: Sort headers.
9979 * arch-utils.c: Sort headers.
9980 * arc-tdep.c: Sort headers.
9981 * arc-newlib-tdep.c: Sort headers.
9982 * annotate.h: Sort headers.
9983 * annotate.c: Sort headers.
9984 * amd64-windows-tdep.c: Sort headers.
9985 * amd64-windows-nat.c: Sort headers.
9986 * amd64-tdep.c: Sort headers.
9987 * amd64-sol2-tdep.c: Sort headers.
9988 * amd64-obsd-tdep.c: Sort headers.
9989 * amd64-obsd-nat.c: Sort headers.
9990 * amd64-nbsd-tdep.c: Sort headers.
9991 * amd64-nbsd-nat.c: Sort headers.
9992 * amd64-nat.c: Sort headers.
9993 * amd64-linux-tdep.c: Sort headers.
9994 * amd64-linux-nat.c: Sort headers.
9995 * amd64-fbsd-tdep.c: Sort headers.
9996 * amd64-fbsd-nat.c: Sort headers.
9997 * amd64-dicos-tdep.c: Sort headers.
9998 * amd64-darwin-tdep.c: Sort headers.
9999 * amd64-bsd-nat.c: Sort headers.
10000 * alpha-tdep.c: Sort headers.
10001 * alpha-obsd-tdep.c: Sort headers.
10002 * alpha-nbsd-tdep.c: Sort headers.
10003 * alpha-mdebug-tdep.c: Sort headers.
10004 * alpha-linux-tdep.c: Sort headers.
10005 * alpha-linux-nat.c: Sort headers.
10006 * alpha-bsd-tdep.c: Sort headers.
10007 * alpha-bsd-nat.c: Sort headers.
10008 * aix-thread.c: Sort headers.
10009 * agent.c: Sort headers.
10010 * addrmap.c: Sort headers.
10011 * ada-varobj.c: Sort headers.
10012 * ada-valprint.c: Sort headers.
10013 * ada-typeprint.c: Sort headers.
10014 * ada-tasks.c: Sort headers.
10015 * ada-lang.c: Sort headers.
10016 * aarch64-tdep.c: Sort headers.
10017 * aarch64-ravenscar-thread.c: Sort headers.
10018 * aarch64-newlib-tdep.c: Sort headers.
10019 * aarch64-linux-tdep.c: Sort headers.
10020 * aarch64-linux-nat.c: Sort headers.
10021 * aarch64-fbsd-tdep.c: Sort headers.
10022 * aarch64-fbsd-nat.c: Sort headers.
10023 * aarch32-linux-nat.c: Sort headers.
10024
699bd4cf
TT
100252019-04-04 Tom Tromey <tom@tromey.com>
10026
10027 * varobj.c (varobj_create): Update.
10028 * rust-exp.y (struct rust_parser) <update_innermost_block,
10029 lookup_symbol>: New methods.
10030 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10031 Rename.
10032 (rust_parser::rust_lookup_type)
10033 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10034 * printcmd.c (display_command, do_one_display): Update.
10035 * parser-defs.h (struct parser_state) <parser_state>: Add
10036 "tracker" parameter.
10037 (block_tracker): New member.
10038 (class innermost_block_tracker) <innermost_block_tracker>: Add
10039 "types" parameter.
10040 <reset>: Remove method.
10041 (innermost_block): Don't declare.
10042 (null_post_parser): Update.
10043 * parse.c (innermost_block): Remove global.
10044 (write_dollar_variable): Update.
10045 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10046 Remove "tracker_types" parameter.
10047 (parse_expression): Add "tracker" parameter.
10048 (parse_expression_for_completion): Update.
10049 (null_post_parser): Add "tracker" parameter.
10050 * p-exp.y: Update rules.
10051 * m2-exp.y: Update rules.
10052 * language.h (struct language_defn) <la_post_parser>: Add
10053 "tracker" parameter.
10054 * go-exp.y: Update rules.
10055 * f-exp.y: Update rules.
10056 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10057 parameter.
10058 * d-exp.y: Update rules.
10059 * c-exp.y: Update rules.
10060 * breakpoint.c (set_breakpoint_condition): Create an
10061 innermost_block_tracker.
10062 (watch_command_1): Likewise.
10063 * ada-lang.c (resolve): Add "tracker" parameter.
10064 (resolve_subexp): Likewise.
10065 * ada-exp.y (write_var_from_sym): Update.
10066
dac43e32
TT
100672019-04-04 Tom Tromey <tom@tromey.com>
10068
10069 * type-stack.h: New file.
10070 * type-stack.c: New file.
10071 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10072 type-stack.h.
10073 (insert_into_type_stack, insert_type, push_type, push_type_int)
10074 (insert_type_address_space, pop_type, pop_type_int)
10075 (pop_typelist, pop_type_stack, append_type_stack)
10076 (push_type_stack, get_type_stack, push_typelist)
10077 (follow_type_instance_flags, follow_types): Don't declare.
10078 * parse.c (type_stack): Remove global.
10079 (parse_exp_in_context): Update.
10080 (insert_into_type_stack, insert_type, push_type, push_type_int)
10081 (insert_type_address_space, pop_type, pop_type_int)
10082 (pop_typelist, pop_type_stack, append_type_stack)
10083 (push_type_stack, get_type_stack, push_typelist)
10084 (follow_type_instance_flags, follow_types): Remove (moved to
10085 type-stack.c).
10086 * f-exp.y (type_stack): New global.
10087 Update rules.
10088 (push_kind_type, f_parse): Update.
10089 * d-exp.y (type_stack): New global.
10090 Update rules.
10091 (d_parse): Update.
10092 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10093 Update rules.
10094 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10095 (HFILES_NO_SRCDIR): Add type-stack.h.
10096
2a612529
TT
100972019-04-04 Tom Tromey <tom@tromey.com>
10098
10099 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10100 (rust_parser::convert_ast_to_expression, rust_parse)
10101 (rust_lex_test_completion, rust_lex_tests): Update.
10102 * parser-defs.h (struct expr_completion_state): New.
10103 (struct parser_state) <parser_state>: Add completion parameter.
10104 <mark_struct_expression, mark_completion_tag>: New methods.
10105 <parse_completion, m_completion_state>: New members.
10106 (prefixify_expression, null_post_parser): Update.
10107 (mark_struct_expression, mark_completion_tag): Don't declare.
10108 * parse.c (parse_completion, expout_last_struct)
10109 (expout_tag_completion_type, expout_completion_name): Remove
10110 globals.
10111 (parser_state::mark_struct_expression)
10112 (parser_state::mark_completion_tag): Now methods.
10113 (prefixify_expression): Add last_struct parameter.
10114 (prefixify_subexp): Likewise.
10115 (parse_exp_1): Update.
10116 (parse_exp_in_context): Add cstate parameter. Update.
10117 (parse_expression_for_completion): Create an
10118 expr_completion_state.
10119 (null_post_parser): Add "completion" parameter.
10120 * p-exp.y: Update rules.
10121 (yylex): Update.
10122 * language.h (struct language_defn) <la_post_parser>: Add
10123 "completing" parameter.
10124 * go-exp.y: Update rules.
10125 (lex_one_token): Update.
10126 * expression.h (parse_completion): Don't declare.
10127 * d-exp.y: Update rules.
10128 (lex_one_token): Update rules.
10129 * c-exp.y: Update rules.
10130 (lex_one_token): Update.
10131 * ada-lang.c (resolve): Add "parse_completion" parameter.
10132 (resolve_subexp): Likewise.
10133 (ada_resolve_function): Likewise.
10134
43476f0b
TT
101352019-04-04 Tom Tromey <tom@tromey.com>
10136
10137 * parser-defs.h (struct parser_state) <start_arglist,
10138 end_arglist>: New methods.
10139 <arglist_len, m_funcall_chain>: New members.
10140 (arglist_len, start_arglist, end_arglist): Don't declare.
10141 * parse.c (arglist_len, funcall_chain): Remove global.
10142 (start_arglist, end_arglist): Remove functions.
10143 (parse_exp_in_context): Update.
10144 * p-exp.y: Update rules.
10145 * m2-exp.y: Update rules.
10146 * go-exp.y: Update rules.
10147 * f-exp.y: Update rules.
10148 * d-exp.y: Update rules.
10149 * c-exp.y: Update rules.
10150
5776fca3
TT
101512019-04-04 Tom Tromey <tom@tromey.com>
10152
10153 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10154 lex_operator, push_back>: New methods.
10155 Update all rules.
10156 (rust_parser::lex_hex, lex_escape): Rename and update.
10157 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10158 (rust_parser::lex_operator): Rename and update.
10159 (rust_parser::lex_number, rustyylex, rustyyerror)
10160 (rust_lex_test_init, rust_lex_test_sequence)
10161 (rust_lex_test_push_back, rust_lex_tests): Update.
10162 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10163 parameter.
10164 <lexptr, prev_lexptr>: New members.
10165 (lexptr, prev_lexptr): Don't declare.
10166 * parse.c (lexptr, prev_lexptr): Remove globals.
10167 (parse_exp_in_context): Update.
10168 * p-exp.y (yylex, yyerror): Update.
10169 * m2-exp.y (parse_number, yylex, yyerror): Update.
10170 * go-exp.y (lex_one_token, yyerror): Update.
10171 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10172 * d-exp.y (lex_one_token, yyerror): Update.
10173 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10174 (lex_one_token, yyerror): Update.
10175 * ada-lex.l (YY_INPUT): Update.
10176 (rewind_to_char): Update.
10177 * ada-exp.y (yyerror): Update.
10178
8621b685
TT
101792019-04-04 Tom Tromey <tom@tromey.com>
10180
10181 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10182 * parser-defs.h (struct parser_state) <parser_state>: Add new
10183 parameter.
10184 <comma_terminates>: New member.
10185 (comma_terminates): Don't declare global.
10186 * parse.c (comma_terminates): Remove global.
10187 (parse_exp_in_context): Update.
10188 * p-exp.y (yylex): Update.
10189 * m2-exp.y (yylex): Update.
10190 * go-exp.y (lex_one_token): Update.
10191 * f-exp.y (yylex): Update.
10192 * d-exp.y (lex_one_token): Update.
10193 * c-exp.y (lex_one_token): Update.
10194 * ada-lex.l: Update.
10195
28aaf3fd
TT
101962019-04-04 Tom Tromey <tom@tromey.com>
10197
10198 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10199 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10200 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10201 * parser-defs.h (paren_depth): Don't declare.
10202 * parse.c (paren_depth): Remove global.
10203 (parse_exp_in_context): Update.
10204 * p-exp.y (paren_depth): New global.
10205 (pascal_parse): Initialize it.
10206 * m2-exp.y (paren_depth): New global.
10207 (m2_parse): Initialize it.
10208 * go-exp.y (paren_depth): New global.
10209 (go_parse): Initialize it.
10210 * f-exp.y (paren_depth): New global.
10211 (f_parse): Initialize it.
10212 * d-exp.y (paren_depth): New global.
10213 (d_parse): Initialize it.
10214 * c-exp.y (paren_depth): New global.
10215 (c_parse): Initialize it.
10216 * ada-lex.l (paren_depth): New global.
10217 (lexer_init): Initialize it.
10218
1e58a4a4
TT
102192019-04-04 Tom Tromey <tom@tromey.com>
10220
10221 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10222 (rust_parser::convert_ast_to_type)
10223 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10224 * parser-defs.h (struct parser_state) <parser_state>: Add
10225 parameters. Initialize new members.
10226 <expression_context_block, expression_context_pc>: New members.
10227 * parse.c (expression_context_block, expression_context_pc):
10228 Remove globals.
10229 (parse_exp_in_context): Update.
10230 * p-exp.y: Update all rules.
10231 (yylex): Update.
10232 * m2-exp.y: Update all rules.
10233 (yylex): Update.
10234 * go-exp.y (yylex): Update.
10235 * f-exp.y (yylex): Update.
10236 * d-exp.y: Update all rules.
10237 (yylex): Update.
10238 * c-exp.y: Update all rules.
10239 (lex_one_token, classify_name, yylex, c_parse): Update.
10240 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10241
37eedb39
TT
102422019-04-04 Tom Tromey <tom@tromey.com>
10243
10244 * gdbarch.h, gdbarch.c: Rebuild.
10245 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10246 * stap-probe.h:
10247 (struct stap_parse_info): Replace "parser_state" with
10248 "expr_builder".
10249 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10250 (parser_state): New class.
10251 * parse.c (expr_builder): Rename.
10252 (expr_builder::release): Rename.
10253 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10254 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10255 (write_exp_elt_longcst, write_exp_elt_floatcst)
10256 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10257 (write_exp_string_vector, write_exp_bitstring)
10258 (write_exp_msymbol, mark_struct_expression)
10259 (write_dollar_variable)
10260 (insert_type_address_space, increase_expout_size): Replace
10261 "parser_state" with "expr_builder".
10262 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10263 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10264 "parser_state" with "expr_builder".
10265
73923d7e
TT
102662019-04-04 Tom Tromey <tom@tromey.com>
10267
10268 * rust-exp.y: Replace "parse_language" with method call.
10269 * p-exp.y:
10270 (yylex): Replace "parse_language" with method call.
10271 * m2-exp.y:
10272 (yylex): Replace "parse_language" with method call.
10273 * go-exp.y (classify_name): Replace "parse_language" with method
10274 call.
10275 * f-exp.y (yylex): Replace "parse_language" with method call.
10276 * d-exp.y (lex_one_token): Replace "parse_language" with method
10277 call.
10278 * c-exp.y:
10279 (lex_one_token, classify_name, yylex): Replace "parse_language"
10280 with method call.
10281 * ada-exp.y (find_primitive_type, type_char)
10282 (type_system_address): Replace "parse_language" with method call.
10283
fa9f5be6
TT
102842019-04-04 Tom Tromey <tom@tromey.com>
10285
10286 * rust-exp.y: Replace "parse_gdbarch" with method call.
10287 * parse.c (write_dollar_variable, insert_type_address_space):
10288 Replace "parse_gdbarch" with method call.
10289 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10290 call.
10291 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10292 call.
10293 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10294 "parse_gdbarch" with method call.
10295 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10296 with method call.
10297 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10298 "parse_gdbarch" with method call.
10299 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10300 "parse_gdbarch" with method call.
10301 * c-exp.y (parse_type, parse_number, classify_name): Replace
10302 "parse_gdbarch" with method call.
10303 * ada-lex.l: Replace "parse_gdbarch" with method call.
10304 * ada-exp.y (parse_type, find_primitive_type, type_char)
10305 (type_system_address): Replace "parse_gdbarch" with method call.
10306
1201a264
TT
103072019-04-04 Tom Tromey <tom@tromey.com>
10308
10309 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10310 * stap-probe.c (stap_parse_argument): Update.
10311 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10312 initial_size parameter.
10313 * rust-exp.y (rust_lex_tests): Update.
10314 * parse.c (parser_state): Update.
10315 (parse_exp_in_context): Update.
10316 * parser-defs.h (struct parser_state) <parser_state>: Remove
10317 "initial_size" parameter.
10318
e3980ce2
TT
103192019-04-04 Tom Tromey <tom@tromey.com>
10320
10321 * parser-defs.h (increase_expout_size): Don't declare.
10322 * parse.c (increase_expout_size): Now static.
10323
e9f8e3f1
TS
103242019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10325
10326 * gnu-nat.c (gnu_nat_target::wait): Fix
10327 target_waitstatus_to_string call.
10328
d7df6549
AB
103292019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * eval.c (evaluate_subexp_standard): Handle internal functions
10332 during Fortran function call handling.
10333
8bdc1658
AB
103342019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * NEWS: Mention new internal functions.
10337 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10338 (read_base_type): Use dwarf2_init_complex_target_type.
10339 * value.c (creal_internal_fn): New function.
10340 (cimag_internal_fn): New function.
10341 (_initialize_values): Register new internal functions.
10342
c29705b7
PW
103432019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10344
10345 * infrun.c (stop_all_threads): If debug_infrun, always
10346 trace the wait status after wait_one, using
10347 target_waitstatus_to_string and target_pid_to_str.
10348 (handle_inferior_event): Replace various trace of
10349 wait status kind by a single trace.
10350 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10351 wait status kind image by target_waitstatus_to_string.
10352 * target/waitstatus.c (target_waitstatus_to_string): Fix
10353 obsolete comment.
10354
05caa1d2
TT
103552019-04-01 Tom Tromey <tromey@adacore.com>
10356
10357 PR symtab/23331:
10358 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10359
9d1447e0
SDJ
103602019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10361 Pedro Alves <palves@redhat.com>
10362
10363 * top.c (quit_force): Call 'finalize_values'.
10364 * value.c (finalize_values): New function.
10365 * value.h (finalize_values): Declare.
10366
7734102d
EZ
103672019-03-30 Eli Zaretskii <eliz@gnu.org>
10368
10369 * NEWS: Announce $_gdb_major and $_gdb_minor.
10370
10371 * top.c (init_gdb_version_vars): New function.
10372 (gdb_init): Call init_gdb_version_vars.
10373
188e1fa9
TT
103742019-03-29 Tom Tromey <tromey@adacore.com>
10375
10376 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10377 help text. Remove dead code.
10378
2880242d
KS
103792019-03-29 Keith Seitz <keiths@redhat.com>
10380
10381 From Siddhesh Poyarekar:
10382 * f-lang.h (f77_get_upperbound): Return LONGEST.
10383 (f77_get_lowerbound): Likewise.
10384 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10385 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10386 print them.
10387 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10388 plongest to format print it.
10389 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10390 (f77_get_upperbound): Likewise.
10391 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10392 LOWER_BOUND to LONGEST.
10393 (f77_create_arrayprint_offset_tbl): Likewise.
10394
cc1defb1
KS
103952019-03-29 Keith Seitz <keiths@redhat.com>
10396
10397 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10398 %s/pulongest for TYPE_LENGTH instead of %d in format
10399 strings.
10400 * ada-typerint.c (ada_print_type): Likewise.
10401 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10402 * compile/compile-c-support.c (generate_register_struct): Likewise.
10403 * gdbtypes.c (recursive_dump_type): Likewise.
10404 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10405 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10406 instead of %d in format strings.
10407 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10408 to std::min to ULONGEST.
10409 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10410 instead of %d in format strings.
10411 * tracepoint.c (info_scope_command): Likewise.
10412 * typeprint.c (print_offset_data::update)
10413 (print_offset_data::finish): Likewise.
10414 * xtensa-tdep.c (xtensa_store_return_value)
10415 (xtensa_push_dummy_call): Likewise.
10416
e432ccf1
JT
104172019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10418
10419 * windows-nat.c (display_selector): Fixed format specifications
10420 for 64-bit Cygwin.
10421
65d2b333
PW
104222019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10423
10424 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10425
f489207e
SL
104262019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10427
10428 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10429 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10430 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10431 (nios2_linux_init_abi): Install it.
10432
bffa1015
AH
104332019-03-28 Alan Hayward <alan.hayward@arm.com>
10434
10435 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10436
fc96163a
AH
104372019-03-28 Alan Hayward <alan.hayward@arm.com>
10438
10439 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10440
20dc7e9b
PW
104412019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10442 Tom Tromey <tromey@adacore.com>
10443
10444 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10445
7f5331a8
JB
104462019-03-26 Joel Brobecker <brobecker@adacore.com>
10447
10448 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10449 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10450 method to compute the bounds of range types. Also print "[evaluated]"
10451 if the bounds' values come from a dynamic evaluation.
10452
18c77628
AB
104532019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10456 whitespace when pretty printing is on.
10457
53c973f2
AH
104582019-03-26 Alan Hayward <alan.hayward@arm.com>
10459
e79be6e5 10460 * ppc-linux-nat.c: Add include.
53c973f2 10461
d851aa71
AH
104622019-03-26 Alan Hayward <alan.hayward@arm.com>
10463
e79be6e5 10464 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10465
2fe7bab7
AH
104662019-03-26 Alan Hayward <alan.hayward@arm.com>
10467
e79be6e5 10468 * arm-linux-nat.c: Add include.
2fe7bab7 10469
068ef30e
SM
104702019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * source-cache.c (source_cache::get_source_lines): Re-read
10473 fullname after calling open_source_file.
10474
81a24d04
JB
104752019-03-25 John Baldwin <jhb@FreeBSD.org>
10476
10477 * NEWS: Mention TLS support for FreeBSD.
10478
79e7ae11
TT
104792019-03-25 Tom Tromey <tromey@adacore.com>
10480
10481 * minsyms.c (BUNCH_SIZE): Update comment.
10482 (~minimal_symbol_reader): Remove old comment.
10483 (compact_minimal_symbols): Update comment.
10484 (minimal_symbol_reader::install): Remove old comment. Update
10485 other comments.
10486
d45963c2
AH
104872019-03-25 Alan Hayward <alan.hayward@arm.com>
10488
10489 * s390-linux-nat.c: Add include.
10490
0f83012e
AH
104912019-03-25 Alan Hayward <alan.hayward@arm.com>
10492
10493 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10494 Call linux_get_hwcap.
10495 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10496 Likewise.
10497 (aarch64_linux_get_hwcap): Remove function.
10498 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10499 declaration.
10500 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10501 linux_get_hwcap.
10502 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10503 * linux-tdep.c (linux_get_hwcap): Add function.
10504 (linux_get_hwcap2): Likewise.
10505 * linux-tdep.h (linux_get_hwcap): Add declaration.
10506 (linux_get_hwcap2): Likewise.
10507 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10508 (ppc_linux_get_hwcap2): Likewise.
10509 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10510 linux_get_hwcap.
10511 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10512 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10513 (ppc_linux_nat_target::read_description): Likewise.
10514 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10515 * s390-linux-nat.c: Likewise.
10516 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10517
6640a367
TT
105182019-03-24 Tom Tromey <tom@tromey.com>
10519
10520 * ada-lang.c (standard_lookup): Simplify initialization.
10521 (ada_lookup_symbol_nonlocal): Simplify return.
10522 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10523 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10524 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10525 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10526 initialization.
10527 * solib.c (solib_global_lookup): Simplify.
10528 * symtab.c (null_block_symbol): Remove.
10529 (symbol_cache_lookup): Simplify returns.
10530 (lookup_language_this): Simplify returns.
10531 (lookup_symbol_aux): Simplify return.
10532 (lookup_local_symbol): Simplify returns.
10533 (lookup_global_symbol_from_objfile): Simplify return.
10534 (lookup_symbol_in_objfile_symtabs)
10535 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10536 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10537 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10538 * cp-namespace.c (cp_lookup_bare_symbol)
10539 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10540 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10541 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10542 (cp_lookup_symbol_via_imports): Simplify initialization.
10543 (find_symbol_in_baseclass): Likewise.
10544 * symtab.h (null_block_symbol): Remove.
10545 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10546 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10547 (d_lookup_symbol_module): Likewise.
10548 (find_symbol_in_baseclass): Simplify initialization.
10549
a930ebcd
TT
105502019-03-24 Tom Tromey <tom@tromey.com>
10551
10552 * expression.h: Don't include symtab.h.
10553 (struct block): Forward declare.
10554
582942f4
TT
105552019-03-24 Tom Tromey <tom@tromey.com>
10556
10557 * c-exp.y (typebase): Remove casts.
10558 * gdbtypes.c (lookup_unsigned_typename, )
10559 (lookup_signed_typename): Remove cast.
10560 * eval.c (parse_to_comma_and_eval): Remove cast.
10561 * parse.c (write_dollar_variable): Remove cast.
10562 * block.h (struct block) <superblock>: Now const.
10563 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10564 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10565 (map_block): Make "block" const.
10566 * symfile.h (struct quick_symbol_functions)
10567 <map_matching_symbols>: Constify block argument to "callback".
10568 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10569 const.
10570 (find_pc_sect_compunit_symtab): Make "b" const.
10571 (find_symbol_at_address): Likewise.
10572 (search_symbols): Likewise.
10573 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10574 (dw2_debug_names_lookup_symbol): Likewise.
10575 (dw2_map_matching_symbols): Update.
10576 * p-valprint.c (pascal_val_print): Remove "block".
10577 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10578 (aux_add_nonlocal_symbols): Make "block" const.
10579 (resolve_subexp): Remove cast.
10580 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10581 const.
10582 (iterate_over_file_blocks): Likewise.
10583 * f-exp.y (%union) <bval>: Remove.
10584 * coffread.c (patch_opaque_types): Make "b" const.
10585 * spu-tdep.c (spu_catch_start): Make "block" const.
10586 * c-valprint.c (print_unpacked_pointer): Remove "block".
10587 * symmisc.c (dump_symtab_1): Make "b" const.
10588 (block_depth): Make "block" const.
10589 * d-exp.y (%union) <bval>: Remove.
10590 * cp-support.h (cp_lookup_rtti_type): Update.
10591 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10592 * psymtab.c (psym_lookup_symbol): Make "block" const.
10593 (maintenance_check_psymtabs): Make "b" const.
10594 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10595 (enumerate_locals, enumerate_args): Update.
10596 * python/py-symtab.c (stpy_global_block): Make "block" const.
10597 (stpy_static_block): Likewise.
10598 * inline-frame.c (block_starting_point_at): Make "new_block"
10599 const.
10600 * block.c (find_block_in_blockvector): Make return type const.
10601 (blockvector_for_pc_sect): Make "b" const.
10602 (find_block_in_blockvector): Make "b" const.
10603
7ad417dd
TT
106042019-03-23 Tom Tromey <tom@tromey.com>
10605
10606 * varobj.c (varobj_create): Update.
10607 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10608 * printcmd.c (display_command, do_one_display): Don't reset
10609 innermost_block.
10610 * parser-defs.h (enum innermost_block_tracker_type): Move to
10611 expression.h.
10612 (innermost_block): Update comment.
10613 * parse.c (parse_exp_1): Add tracker_types parameter.
10614 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10615 tracker_types parameter. Reset innermost_block.
10616 (parse_exp_in_context): Remove.
10617 (parse_expression_for_completion): Update.
10618 * objfiles.c (~objfile): Don't reset expression_context_block or
10619 innermost_block.
10620 * expression.h (enum innermost_block_tracker_type): Move from
10621 parser-defs.h.
10622 (parse_exp_1): Add tracker_types parameter.
10623 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10624 reset innermost_block.
10625
b366c208
TT
106262019-03-23 Tom Tromey <tom@tromey.com>
10627
10628 * objfiles.h: Include bcache.h.
10629
9bb9b2f9
TT
106302019-03-23 Tom Tromey <tom@tromey.com>
10631
10632 * linespec.c (get_current_search_block): Use
10633 scoped_restore_current_language.
10634 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10635
59c28372
AH
106362019-03-22 Alan Hayward <alan.hayward@arm.com>
10637 Jiong Wang <jiong.wang@arm.com>
10638
10639 * aarch64-linux-tdep.c
10640 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10641 section.
10642 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10643
17e116a7
AH
106442019-03-22 Alan Hayward <alan.hayward@arm.com>
10645 Jiong Wang <jiong.wang@arm.com>
10646
10647 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10648 instructions.
10649 (aarch64_analyze_prologue_test): Add PACIASP test.
10650 (aarch64_prologue_prev_register): Unmask PC value.
10651
11e1b75f
AH
106522019-03-22 Alan Hayward <alan.hayward@arm.com>
10653 Jiong Wang <jiong.wang@arm.com>
10654
10655 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10656 (aarch64_dwarf2_prev_register): Unmask PC value.
10657 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10658 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10659 DW_CFA_AARCH64_negate_ra_state.
10660 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10661
34dcc7cf
AH
106622019-03-22 Alan Hayward <alan.hayward@arm.com>
10663 Jiong Wang <jiong.wang@arm.com>
10664
10665 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10666 registers.
10667 (aarch64_pseudo_register_name): Likewise.
10668 (aarch64_pseudo_register_type): Likewise.
10669 (aarch64_pseudo_register_reggroup_p): Likewise.
10670 (aarch64_gdbarch_init): Add pauth registers.
10671 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10672 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10673 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10674 (struct gdbarch_tdep): Add regnum for ra_state.
10675
1ef53e6b
AH
106762019-03-22 Alan Hayward <alan.hayward@arm.com>
10677 Jiong Wang <jiong.wang@arm.com>
10678
10679 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10680
76bed0fd
AH
106812019-03-22 Alan Hayward <alan.hayward@arm.com>
10682 Jiong Wang <jiong.wang@arm.com>
10683
10684 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10685 function.
10686 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10687 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10688 (aarch64_gdbarch_init): Add puth registers.
10689 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10690 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10691 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10692
ee4fbcfa
AH
106932019-03-22 Alan Hayward <alan.hayward@arm.com>
10694 Jiong Wang <jiong.wang@arm.com>
10695
10696 * aarch64-linux-nat.c
10697 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10698 * aarch64-linux-tdep.c
10699 (aarch64_linux_core_read_description): Likewise.
10700 (aarch64_linux_get_hwcap): New function.
10701 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10702 (aarch64_linux_get_hwcap): New declaration.
10703
6dc0ebde
AH
107042019-03-22 Alan Hayward <alan.hayward@arm.com>
10705 Jiong Wang <jiong.wang@arm.com>
10706
10707 * aarch64-linux-nat.c
10708 (aarch64_linux_nat_target::read_description): Add pauth param.
10709 * aarch64-linux-tdep.c
10710 (aarch64_linux_core_read_description): Likewise.
10711 * aarch64-tdep.c (struct target_desc): Add in pauth.
10712 (aarch64_read_description): Add pauth param.
10713 (aarch64_gdbarch_init): Likewise.
10714 * aarch64-tdep.h (aarch64_read_description): Likewise.
10715 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10716 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10717 * features/Makefile: Add new files.
10718 * features/aarch64-pauth.c: New file.
10719 * features/aarch64-pauth.xml: New file.
10720
595915c1
TT
107212019-03-20 Tom Tromey <tromey@adacore.com>
10722
10723 * infrun.c (handle_inferior_event): Rename from
10724 handle_inferior_event_1. Create a scoped_value_mark.
10725 (handle_inferior_event): Remove.
10726
4c7d57e7
TT
107272019-03-19 Tom Tromey <tromey@adacore.com>
10728
10729 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10730 * infrun.h (print_stop_event): Add "displays" parameter.
10731 * infrun.c (print_stop_event): Add "displays" parameter.
10732
cb246234
PA
107332019-03-19 Pedro Alves <palves@redhat.com>
10734
10735 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10736 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10737 to -1. Fix TABs vs spaces.
10738 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10739 * tui/tui-out.h (tui_ui_out) Add intro comments.
10740 <m_line, m_start_of_line>: In-class initialize, and add describing
10741 comment.
10742
3a0e45b2
AH
107432019-03-18 Alan Hayward <alan.hayward@arm.com>
10744
10745 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10746 variable names.
10747 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10748
5371b850
PA
107492019-03-18 Pedro Alves <palves@redhat.com>
10750 Eli Zaretskii <eliz@gnu.org>
10751
10752 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10753 m_line and m_start_of_line.
10754
b17c4cd0
EZ
107552019-03-18 Eli Zaretskii <eliz@gnu.org>
10756
10757 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10758 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10759 it returns a newline. This fixes a regression in TU mode, whereby
10760 the next line is output on the same screen line as the user input.
10761
4bd56d18
TT
107622019-03-18 Tom Tromey <tromey@adacore.com>
10763
10764 * minsyms.c (minimal_symbol_reader::install): Remove call to
10765 obstack_blank.
10766
55c10aca
PA
107672019-03-18 Pedro Alves <palves@redhat.com>
10768
10769 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10770 New globals.
10771 (apply_style): New, factored out from ...
10772 (apply_ansi_escape): ... this. Handle reverse video mode.
10773 (tui_set_reverse_mode): New function.
10774 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10775 * tui/tui-winsource.c (tui_show_source_line): Use
10776 tui_set_reverse_mode instead of setting A_STANDOUT.
10777 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10778 New setter methods.
10779
647bb750
HD
107802019-03-18 Hannes Domani <ssbssa@yahoo.de>
10781
10782 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10783 Handle tabs.
10784
bff8c71f
TT
107852019-03-18 Tom Tromey <tromey@adacore.com>
10786
10787 * ada-lang.c (empty_array): Add "high" parameter.
10788 (ada_evaluate_subexp): Update.
10789
58785d98
ST
107902019-03-17 Sergei Trofimovich <siarheit@google.com>
10791
10792 * unittests/string_view-selftests.c: Define
10793 _initialize_string_view_selftests unconditionally.
10794
d4cbef22
ВМ
107952019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10796
10797 PR gdb/24350
10798 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10799
fce4c071
ВМ
108002019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10801
10802 PR gdb/24351
10803 * windows-nat.c (display_selector): Fix format specifiers.
10804
f7f0a123
EZ
108052019-03-17 Eli Zaretskii <eliz@gnu.org>
10806
10807 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10808 tui_refill_source_window instead of tui_refresh_win, to update the
10809 current execution line. This fixes redisplay of the current line
10810 when stepping through the code with "next" or "step".
10811
ab42892f
EZ
108122019-03-16 Eli Zaretskii <eliz@gnu.org>
10813
10814 * source-cache.c (source_cache::get_source_lines): Call
10815 find_source_lines to initialize s->nlines. This fixes vertical
10816 scrolling of TUI source window when the DOWN arrow is pressed.
10817
8d8c087f
PW
108182019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10819
10820 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10821 linux-thread-db.c (_initialize_thread_db): Likewise.
10822
798e1c30
EZ
108232019-03-16 Eli Zaretskii <eliz@gnu.org>
10824
10825 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10826 wclrtoeol in tui_show_source_line". This reverts changes made in
10827 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10828
eefba3da
TT
108292019-03-15 Tom Tromey <tom@tromey.com>
10830
10831 * symtab.h (struct minimal_symbol): Derive from
10832 general_symbol_info.
10833 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10834 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10835 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10836 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10837 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10838 (MSYMBOL_SEARCH_NAME): Update.
10839 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10840 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10841 * minsyms.c (minimal_symbol_reader::record_full): Update.
10842
0de2420c
TT
108432019-03-15 Tom Tromey <tom@tromey.com>
10844
10845 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10846
042d75e4
TT
108472019-03-15 Tom Tromey <tom@tromey.com>
10848
10849 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10850 unique_xmalloc_ptr.
10851 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10852 Update.
10853 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10854 (build_minimal_symbol_hash_tables)
10855 (minimal_symbol_reader::install): Update.
10856
db92718b
TT
108572019-03-15 Tom Tromey <tom@tromey.com>
10858
10859 * symtab.c (create_demangled_names_hash): Update.
10860 (symbol_set_names): Update.
10861 * objfiles.h (struct objfile_per_bfd_storage)
10862 <demangled_names_hash>: Now an htab_up.
10863 * objfiles.c (objfile_per_bfd_storage): Simplify.
10864
d6797f46
TT
108652019-03-15 Tom Tromey <tom@tromey.com>
10866
10867 * objfiles.h (struct objfile_per_bfd_storage): Declare
10868 destructor.
10869 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10870 New.
10871 (get_objfile_bfd_data): Use new. Don't initialize
10872 language_of_main.
10873 (free_objfile_per_bfd_storage): Remove.
10874 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10875
741d7538
TT
108762019-03-15 Tom Tromey <tom@tromey.com>
10877
10878 * symfile.c (reread_symbols): Update.
10879 * objfiles.c (objfile::objfile): Update.
10880 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10881 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10882 comment.
10883 (minimal_symbol_reader::install): Update.
10884 (terminate_minimal_symbol_table): Remove.
10885 * jit.c (jit_object_close_impl): Update.
10886
788c80d1
TT
108872019-03-15 Tom Tromey <tom@tromey.com>
10888
10889 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10890 initializations.
10891
1b7a07cb
TT
108922019-03-15 Tom Tromey <tom@tromey.com>
10893
10894 * objfiles.h (struct objfile_per_bfd_storage)
10895 <demangled_hash_languages>: Now a bitset.
10896 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10897 (lookup_minimal_symbol): Update.
10898
3db066bc
TT
108992019-03-15 Tom Tromey <tom@tromey.com>
10900
10901 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10902 Don't return the symbol.
10903 * coffread.c (record_minimal_symbol): Use record_full.
10904
3fff2c37
EZ
109052019-03-14 Eli Zaretskii <eliz@gnu.org>
10906
10907 The MS-Windows port of ncurses fails to switch to a color pair if
10908 one or both of the colors are the implicit default colors. This
10909 change records the default colors when TUI is initialized, and
10910 then specifies them explicitly when a color pair uses the default
10911 colors. This allows color styling in TUI mode on MS-Windows.
10912
10913 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10914 ncurses_norm_attr.
10915 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10916 colors in ncurses_norm_attr.
10917 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10918 "none", replace it with the default color recorded in
10919 ncurses_norm_attr.
10920
3b336828
TT
109212019-03-14 Tom Tromey <tromey@adacore.com>
10922
10923 * source-cache.h (class source_cache) <get_source_lines>: Return
10924 std::string.
10925 * source-cache.c (source_cache::extract_lines): Handle case where
10926 first_pos==npos. Return std::string.
10927 (source_cache::get_source_lines): Update.
10928
d085f989
TT
109292019-03-14 Tom Tromey <tromey@adacore.com>
10930
10931 * NEWS: Add item for "style sources" commands.
10932 * source-cache.c (source_cache::get_source_lines): Check
10933 source_styling.
10934 * cli/cli-style.c (source_styling): New global.
10935 (_initialize_cli_style): Add "style sources" commands.
10936 (show_style_sources): New function.
10937 * cli/cli-style.h (source_styling): Declare.
10938
6f11e682
TT
109392019-03-14 Pedro Alves <palves@redhat.com>
10940 Tom Tromey <tromey@adacore.com>
10941
10942 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10943 * tui/tui-winsource.c (tui_refill_source_window): New function,
10944 from...
10945 (tui_horizontal_source_scroll): ... here. Move some logic.
10946 * cli/cli-style.c (set_style_enabled): Notify new observable.
10947 * tui/tui-hooks.c (tui_redisplay_source): New function.
10948 (tui_attach_detach_observers): Attach or detach
10949 tui_redisplay_source.
10950 * observable.h (source_styling_changed): New observable.
10951 * observable.c: Define source_styling_changed observable.
10952
a068643d
TT
109532019-03-13 Tom Tromey <tromey@adacore.com>
10954
10955 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10956 (i386_gnu_nat_target::store_registers): Update.
10957 * target-debug.h (target_debug_print_std_string): New macro.
10958 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10959 * windows-tdep.c (display_one_tib): Update.
10960 * tui/tui-stack.c (tui_make_status_line): Update.
10961 * top.c (print_inferior_quit_action): Update.
10962 * thread.c (thr_try_catch_cmd): Update.
10963 (add_thread_with_info): Update.
10964 (thread_target_id_str): Update.
10965 (thr_try_catch_cmd): Update.
10966 (thread_command): Update.
10967 (thread_find_command): Update.
10968 * record-btrace.c (record_btrace_target::info_record)
10969 (record_btrace_resume_thread, record_btrace_target::resume)
10970 (record_btrace_cancel_resume, record_btrace_step_thread)
10971 (record_btrace_target::wait, record_btrace_target::wait)
10972 (record_btrace_target::wait, record_btrace_target::stop): Update.
10973 * progspace.c (print_program_space): Update.
10974 * process-stratum-target.c
10975 (process_stratum_target::thread_address_space): Update.
10976 * linux-fork.c (linux_fork_mourn_inferior)
10977 (detach_checkpoint_command, info_checkpoints_command)
10978 (linux_fork_context): Update.
10979 (linux_fork_detach): Update.
10980 (class scoped_switch_fork_info): Update.
10981 (delete_checkpoint_command): Update.
10982 * infrun.c (follow_fork_inferior): Update.
10983 (follow_fork_inferior): Update.
10984 (proceed_after_vfork_done): Update.
10985 (handle_vfork_child_exec_or_exit): Update.
10986 (follow_exec): Update.
10987 (displaced_step_prepare_throw): Update.
10988 (displaced_step_restore): Update.
10989 (start_step_over): Update.
10990 (resume_1): Update.
10991 (clear_proceed_status_thread): Update.
10992 (proceed): Update.
10993 (print_target_wait_results): Update.
10994 (do_target_wait): Update.
10995 (context_switch): Update.
10996 (stop_all_threads): Update.
10997 (restart_threads): Update.
10998 (finish_step_over): Update.
10999 (handle_signal_stop): Update.
11000 (switch_back_to_stepped_thread): Update.
11001 (keep_going_pass_signal): Update.
11002 (print_exited_reason): Update.
11003 (normal_stop): Update.
11004 * inferior.c (inferior_pid_to_str): Change return type.
11005 (print_selected_inferior): Update.
11006 (add_inferior): Update.
11007 (detach_inferior): Update.
11008 * dummy-frame.c (fprint_dummy_frames): Update.
11009 * dcache.c (dcache_info_1): Update.
11010 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11011 (btrace_fetch, btrace_clear): Update.
11012 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11013 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11014 type.
11015 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11016 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11017 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11018 * gdbarch.c, gdbarch.h: Rebuild.
11019 * gdbarch.sh (core_pid_to_str): Change return type.
11020 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11021 return type.
11022 (windows_nat_target::pid_to_str): Change return type.
11023 (windows_delete_thread): Update.
11024 (windows_nat_target::attach): Update.
11025 (windows_nat_target::files_info): Update.
11026 * target-delegates.c: Rebuild.
11027 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11028 return type.
11029 (sol_thread_target::pid_to_str): Change return type.
11030 * remote.c (class remote_target) <pid_to_str>: Change return
11031 type.
11032 (remote_target::pid_to_str): Change return type.
11033 (extended_remote_target::attach, remote_target::remote_stop_ns)
11034 (remote_target::remote_notif_remove_queued_reply)
11035 (remote_target::push_stop_reply, remote_target::disable_btrace):
11036 Update.
11037 (extended_remote_target::attach): Update.
11038 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11039 type.
11040 (gdbsim_target::pid_to_str): Change return type.
11041 * ravenscar-thread.c (struct ravenscar_thread_target)
11042 <pid_to_str>: Change return type.
11043 (ravenscar_thread_target::pid_to_str): Change return type.
11044 * procfs.c (class procfs_target) <pid_to_str>: Change return
11045 type.
11046 (procfs_target::pid_to_str): Change return type.
11047 (procfs_target::attach): Update.
11048 (procfs_target::detach): Update.
11049 (procfs_target::fetch_registers): Update.
11050 (procfs_target::store_registers): Update.
11051 (procfs_target::wait): Update.
11052 (procfs_target::files_info): Update.
11053 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11054 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11055 return type.
11056 (nto_procfs_target::pid_to_str): Change return type.
11057 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11058 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11059 return type.
11060 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11061 (exit_lwp): Update.
11062 (attach_proc_task_lwp_callback, get_detach_signal)
11063 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11064 (linux_nat_target::resume, wait_lwp, stop_callback)
11065 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11066 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11067 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11068 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11069 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11070 type.
11071 (inf_ptrace_target::attach): Update.
11072 (inf_ptrace_target::files_info): Update.
11073 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11074 type.
11075 (go32_nat_target::pid_to_str): Change return type.
11076 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11077 (gnu_nat_target::wait): Update.
11078 (gnu_nat_target::wait): Update.
11079 (gnu_nat_target::resume): Update.
11080 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11081 (fbsd_nat_target::wait): Update.
11082 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11083 type.
11084 (darwin_nat_target::attach): Update.
11085 * corelow.c (class core_target) <pid_to_str>: Change return type.
11086 (core_target::pid_to_str): Change return type.
11087 * target.c (normal_pid_to_str): Change return type.
11088 (default_pid_to_str): Likewise.
11089 (target_pid_to_str): Change return type.
11090 (target_translate_tls_address): Update.
11091 (target_announce_detach): Update.
11092 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11093 return type.
11094 (bsd_uthread_target::pid_to_str): Change return type.
11095 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11096 type.
11097 (bsd_kvm_target::pid_to_str): Change return type.
11098 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11099 return type.
11100 (aix_thread_target::pid_to_str): Change return type.
11101 * target.h (struct target_ops) <pid_to_str>: Change return type.
11102 (target_pid_to_str, normal_pid_to_str): Likewise.
11103 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11104 type.
11105 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11106 type.
11107 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11108 return type.
11109 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11110 type.
11111 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11112 type.
11113 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11114 return type.
11115
b4be1b06
SM
111162019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11117
11118 * NEWS: Mention that the new default MI version is 3. Mention
11119 changes to the output of commands and events that deal with
11120 multi-location breakpoints.
11121 * breakpoint.c: Include "mi/mi-out.h".
11122 (print_one_breakpoint): Change output syntax if using MI version
11123 >= 3.
11124 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11125 New.
11126 (mi_multi_location_breakpoint_output_fixed): New.
11127 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11128 (mi_cmd_fix_multi_location_breakpoint_output): New.
11129 (mi_multi_location_breakpoint_output_fixed): New.
11130 * mi/mi-cmds.c (mi_cmds): Register command
11131 -fix-multi-location-breakpoint-output.
11132 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11133 interpreter "mi".
11134
8e5e5494
SM
111352019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11138 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11139 instantiate mi_ui_out based on interpreter name.
11140 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11141 * mi/mi-main.c (mi_load_progress): Likewise.
11142
197df35e
JB
111432019-03-12 John Baldwin <jhb@FreeBSD.org>
11144
11145 * NEWS: Combine separate "New targets" sections for 8.3.
11146
8399425f
JB
111472019-03-12 John Baldwin <jhb@FreeBSD.org>
11148
11149 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11150 (ppcfbsd_init_abi): Install gdbarch
11151 "fetch_tls_load_module_address" and "get_thread_local_address"
11152 methods.
11153
b0f87ed0
JB
111542019-03-12 John Baldwin <jhb@FreeBSD.org>
11155
11156 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11157 (riscv_fbsd_init_abi): Install gdbarch
11158 "fetch_tls_load_module_address" and "get_thread_local_address"
11159 methods.
11160
ce25aa57
JB
111612019-03-12 John Baldwin <jhb@FreeBSD.org>
11162
11163 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11164 (i386fbsd_init_abi): Install gdbarch
11165 "fetch_tls_load_module_address" and "get_thread_local_address"
11166 methods.
11167
f5424cfa
JB
111682019-03-12 John Baldwin <jhb@FreeBSD.org>
11169
11170 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11171 (amd64fbsd_init_abi): Install gdbarch
11172 "fetch_tls_load_module_address" and "get_thread_local_address"
11173 methods.
11174
945f3901
JB
111752019-03-12 John Baldwin <jhb@FreeBSD.org>
11176
11177 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11178 (struct fbsd_pspace_data): New type.
11179 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11180 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11181 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11182 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11183 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11184
ef0bd204
JB
111852019-03-12 John Baldwin <jhb@FreeBSD.org>
11186
11187 * gdbtypes.c (lookup_struct_elt): New function.
11188 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11189 * gdbtypes.h (struct struct_elt): New type.
11190 (lookup_struct_elt): New prototype.
11191
36c53a02
JB
111922019-03-12 John Baldwin <jhb@FreeBSD.org>
11193
11194 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11195 remove disabled code block.
11196
6e056c81
JB
111972019-03-12 John Baldwin <jhb@FreeBSD.org>
11198
11199 * gdbarch.sh (get_thread_local_address): New method.
11200 * gdbarch.h, gdbarch.c: Regenerate.
11201 * target.c (target_translate_tls_address): Use
11202 gdbarch_get_thread_local_address if present instead of
11203 target::get_thread_local_address.
11204
cd250a18
JB
112052019-03-12 John Baldwin <jhb@FreeBSD.org>
11206
11207 * target.h (target::get_thread_local_address): Update comment.
11208
df22c1e5
JB
112092019-03-12 John Baldwin <jhb@FreeBSD.org>
11210
11211 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11212 objfile->separate_debug_objfile_backlink if not NULL.
11213
dd6876c9
JB
112142019-03-12 John Baldwin <jhb@FreeBSD.org>
11215
11216 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11217 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11218 (amd64bsd_store_inferior_registers): Likewise.
11219 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11220 Enable segment base registers.
11221 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11222 PT_GETFSBASE and PT_GETGSBASE.
11223 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11224 PT_SETGSBASE.
11225 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11226 segment base registers.
11227 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11228
1163a4b7
JB
112292019-03-12 John Baldwin <jhb@FreeBSD.org>
11230
11231 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11232 Update calls to i386_target_description to add 'segments'
11233 parameter.
11234 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11235 add segment base registers.
11236 * arch/i386.c (i386_create_target_description): Add 'segments'
11237 parameter to enable segment base registers.
11238 * arch/i386.h (i386_create_target_description): Likewise.
11239 * features/i386/32bit-segments.xml: New file.
11240 * features/i386/32bit-segments.c: Generate.
11241 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11242 call to i386_target_description to add 'segments' parameter.
11243 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11244 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11245 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11246 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11247 if feature is present.
11248 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11249 Add 'segments' parameter to call to i386_target_description.
11250 (i386_target_description): Add 'segments' parameter to enable
11251 segment base registers.
11252 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11253 to call to i386_target_description.
11254 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11255 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11256 Define I386_NUM_REGS.
11257 (i386_target_description): Add 'segments' parameter to enable
11258 segment base registers.
11259
3a350822
EZ
112602019-03-12 Eli Zaretskii <eliz@gnu.org>
11261
11262 PR/24325
11263 * source-cache.c: #undef open and close, to avoid unresolved
11264 externals during linking.
11265
ffdd69cf
TT
112662019-03-12 Tom Tromey <tromey@adacore.com>
11267
11268 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11269 const. Add initializers.
11270 (_initialize_remote): Don't initialize ptid globals.
11271
ec148c57
PA
112722019-03-12 Pedro Alves <palves@redhat.com>
11273
11274 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11275
32764270
PA
112762019-03-12 Pedro Alves <palves@redhat.com>
11277
11278 * cp-name-parser.y (main): Remove unused 'len' variable.
11279
17547186
TT
112802019-03-12 Tom Tromey <tromey@adacore.com>
11281
11282 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11283 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11284
d3a70e03
TT
112852019-03-12 Tom Tromey <tromey@adacore.com>
11286
11287 * linux-nat.c (iterate_over_lwps): Update.
11288 (stop_callback): Remove parameter.
11289 (stop_wait_callback, detach_callback, resume_set_callback)
11290 (select_singlestep_lwp_callback, set_ignore_sigint)
11291 (status_callback, resumed_callback, resume_clear_callback)
11292 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11293 data parameter.
11294 (linux_nat_target::detach, linux_nat_target::resume)
11295 (linux_stop_and_wait_all_lwps, select_event_lwp)
11296 (linux_nat_filter_event, linux_nat_wait_1)
11297 (linux_nat_target::kill, linux_nat_target::stop)
11298 (linux_nat_target::stop): Update.
11299 (linux_nat_resume_callback): Change type.
11300 (resume_stopped_resumed_lwps, count_events_callback)
11301 (select_event_lwp_callback): Likewise.
11302 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11303 * arm-linux-nat.c (struct update_registers_data): Remove.
11304 (update_registers_callback): Change type.
11305 (arm_linux_insert_hw_breakpoint1): Update.
11306 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11307 parameter.
11308 (x86_linux_dr_set_addr): Update.
11309 (x86_linux_dr_set_control): Update.
11310 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11311 (iterate_over_lwps): Use gdb::function_view.
11312 * nat/aarch64-linux-hw-point.c (struct
11313 aarch64_dr_update_callback_param): Remove.
11314 (debug_reg_change_callback): Change type.
11315 (aarch64_notify_debug_reg_change): Update.
11316 * s390-linux-nat.c (s390_refresh_per_info): Update.
11317
82cb27ff
TT
113182019-03-11 Tom Tromey <tromey@adacore.com>
11319
11320 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11321 redundant assignment to "this_cu".
11322
568c0683
SM
113232019-03-08 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11326
f09ce22d
SM
113272019-03-08 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11330 from...
11331 (rank_one_type): ... this.
11332
595f96a9
SM
113332019-03-08 Simon Marchi <simon.marchi@efficios.com>
11334
11335 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11336 from...
11337 (rank_one_type): ... this.
11338
2598a94b
SM
113392019-03-08 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11342 from...
11343 (rank_one_type): ... this.
11344
7f17b20d
SM
113452019-03-08 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11348 from...
11349 (rank_one_type): ... this.
11350
2c509035
SM
113512019-03-08 Simon Marchi <simon.marchi@efficios.com>
11352
11353 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11354 from...
11355 (rank_one_type): ... this.
11356
0dd322dc
SM
113572019-03-08 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11360 from...
11361 (rank_one_type): ... this.
11362
41ea4728
SM
113632019-03-08 Simon Marchi <simon.marchi@efficios.com>
11364
11365 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11366 from...
11367 (rank_one_type): ... this.
11368
793cd1d2
SM
113692019-03-08 Simon Marchi <simon.marchi@efficios.com>
11370
11371 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11372 from...
11373 (rank_one_type): ... this.
11374
34910087
SM
113752019-03-08 Simon Marchi <simon.marchi@efficios.com>
11376
11377 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11378 from...
11379 (rank_one_type): ... this.
11380
f1f832d6
SM
113812019-03-08 Simon Marchi <simon.marchi@efficios.com>
11382
11383 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11384 from...
11385 (rank_one_type): ... this.
11386
b9f4512f
SM
113872019-03-08 Simon Marchi <simon.marchi@efficios.com>
11388
11389 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11390 from...
11391 (rank_one_type): ... this.
11392
9293fc63
SM
113932019-03-08 Simon Marchi <simon.marchi@efficios.com>
11394
11395 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11396 from...
11397 (rank_one_type): ... this.
11398
e3abbe7e
PW
113992019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11400
11401 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11402 inferior-events' shows the example events.
11403
e4adb939
EZ
114042019-03-08 Eli Zaretskii <eliz@gnu.org>
11405
11406 Support styling on native MS-Windows console
11407
11408 PR/24315
11409 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11410 on MS-Windows if $TERM is not defined.
11411
11412 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11413
11414 * posix-hdep.c (gdb_console_fputs):
11415 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11416 functions.
11417 * ui-file.h (gdb_console_fputs): Add prototype.
11418
11419 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11420 back to fputs only if the former returns zero.
11421
25629dfd
TT
114222019-03-07 Tom Tromey <tom@tromey.com>
11423
11424 * symmisc.c (print_symbol_bcache_statistics): Update.
11425 (print_objfile_statistics): Update.
11426 * symfile.c (allocate_symtab): Update.
11427 * stabsread.c: Don't include bcache.h.
11428 * psymtab.h (struct psymbol_bcache): Don't declare.
11429 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11430 (psymbol_bcache_init, psymbol_bcache_free)
11431 (psymbol_bcache_get_bcache): Don't declare.
11432 * psymtab.c (struct psymbol_bcache): Remove.
11433 (psymtab_storage::psymtab_storage): Update.
11434 (psymtab_storage::~psymtab_storage): Update.
11435 (psymbol_bcache_init, psymbol_bcache_free)
11436 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11437 (add_psymbol_to_bcache): Update.
11438 (allocate_psymtab): Update.
11439 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11440 macro_cache>: No longer pointers.
11441 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11442 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11443 * macrotab.c (macro_bcache): Update.
11444 * macroexp.c: Don't include bcache.h.
11445 * gdbtypes.c (check_types_worklist): Update.
11446 (types_deeply_equal): Remove TRY/CATCH. Update.
11447 * elfread.c (elf_symtab_read): Update.
11448 * dwarf2read.c: Don't include bcache.h.
11449 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11450 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11451 (print_bcache_statistics, bcache_memory_used): Don't declare.
11452 (struct bcache): Move from bcache.c. Add constructor, destructor,
11453 methods. Rename all data members.
11454 * bcache.c (struct bcache): Move to bcache.h.
11455 (bcache::expand_hash_table): Rename from expand_hash_table.
11456 (bcache): Remove.
11457 (bcache::insert): Rename from bcache_full.
11458 (bcache::compare): Rename from bcache_compare.
11459 (bcache_xmalloc): Remove.
11460 (bcache::~bcache): Rename from bcache_xfree.
11461 (bcache::print_statistics): Rename from print_bcache_statistics.
11462 (bcache::memory_used): Rename from bcache_memory_used.
11463
fe726667
PA
114642019-03-07 Pedro Alves <palves@redhat.com>
11465
11466 * infrun.c (normal_stop): Also check for
11467 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11468
7584bb30
AB
114692019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11470
11471 * f-lang.c (value_from_host_double): Moved to...
11472 * value.c (value_from_host_double): ...here.
11473 * value.h (value_from_host_double): Declare.
11474 * guile/scm-math.c (vlscm_convert_typed_number): Use
11475 value_from_host_double.
11476 (vlscm_convert_number): Likewise.
11477 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11478 * python/py-value.c (convert_value_from_python): Likewise.
11479
a7b1986e
TT
114802019-03-06 Tom Tromey <tom@tromey.com>
11481
11482 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11483
0ccf4211
TT
114842019-03-06 Tom Tromey <tom@tromey.com>
11485
11486 * utils.h (free_current_contents): Don't declare.
11487 * utils.c (free_current_contents): Remove.
11488
fe7b42e5
TT
114892019-03-06 Tom Tromey <tom@tromey.com>
11490
11491 * top.c (quit_force): Update.
11492 * main.c (captured_command_loop): Update.
11493 * common/new-op.c (operator new): Update.
11494 * common/common-exceptions.c (struct catcher)
11495 <save_cleanup_chain>: Remove member.
11496 (exceptions_state_mc_init): Update.
11497 (exception_try_scope_entry): Return nullptr.
11498 (exception_try_scope_exit, exception_rethrow)
11499 (throw_exception_sjlj, throw_exception_cxx): Update.
11500 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11501 (all_cleanups, do_cleanups, discard_cleanups)
11502 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11503 (restore_cleanups, restore_final_cleanups): Don't declare.
11504 (do_final_cleanups): Remove parameter.
11505 * common/cleanups.c (cleanup_chain, make_cleanup)
11506 (make_cleanup_dtor, all_cleanups, do_cleanups)
11507 (discard_my_cleanups, discard_cleanups)
11508 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11509 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11510 (null_cleanup): Remove.
11511 (do_final_cleanups): Remove parameter.
11512
c6321f19
TT
115132019-03-06 Tom Tromey <tom@tromey.com>
11514
11515 * remote.c (remote_target::remote_parse_stop_reply): Use
11516 unique_xmalloc_ptr.
11517
61b30099
TT
115182019-03-06 Tom Tromey <tom@tromey.com>
11519
11520 * stabsread.c (struct stabs_field_info): Rename from field_info.
11521 <list, fnlist>: Add initializers.
11522 <obstack>: New member.
11523 (read_member_functions, read_struct_fields, read_baseclasses):
11524 Allocate on obstack. Don't use cleanups.
11525 (read_one_struct_field, read_member_functions, read_struct_fields)
11526 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11527 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11528 (read_struct_type): Update.
11529
6cceac94
TT
115302019-03-06 Tom Tromey <tom@tromey.com>
11531
11532 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11533 * common/filestuff.h (make_cleanup_close): Don't declare.
11534 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11535 Remove.
11536
72412762
TT
115372019-03-06 Tom Tromey <tom@tromey.com>
11538
11539 * solib-aix.c: Use make_scope_exit.
11540
2b6ff1c0
TT
115412019-03-06 Tom Tromey <tom@tromey.com>
11542
11543 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11544 Use make_scope_exit.
11545
d01c5877
TT
115462019-03-06 Tom Tromey <tom@tromey.com>
11547
11548 * solib-svr4.c (disable_probes_interface): Remove parameter.
11549 (svr4_handle_solib_event): Use make_scope_exit.
11550
32603266
TT
115512019-03-06 Tom Tromey <tom@tromey.com>
11552
11553 * remote.c (struct stop_reply_deleter): Remove.
11554 (stop_reply_up): Update.
11555 (struct stop_reply): Derive from notif_event. Don't typedef.
11556 <regcache>: Now a std::vector.
11557 (stop_reply_xfree): Remove.
11558 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11559 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11560 (remote_target::discard_pending_stop_replies): Use delete.
11561 (remote_target::remote_parse_stop_reply): Update.
11562 (remote_target::process_stop_reply): Update.
11563 * remote-notif.h (struct notif_event): Add virtual destructor.
11564 Remove "dtr" member.
11565 (struct notif_client) <alloc_event>: Return a unique_ptr.
11566 (notif_event_xfree): Don't declare.
11567 (notif_event_up): New typedef.
11568 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11569 (notif_event_xfree, do_notif_event_xfree): Remove.
11570 (remote_notif_state_xfree): Update.
11571
9799571e
TT
115722019-03-06 Tom Tromey <tom@tromey.com>
11573
11574 * infrun.c (displaced_step_clear_cleanup): Now a
11575 forward_scope_exit type.
11576 (displaced_step_prepare_throw): Update.
11577 (displaced_step_fixup): Update.
11578
09e3c4ca
TT
115792019-03-06 Tom Tromey <tom@tromey.com>
11580
11581 * inferior.h (class inferior): Update comment.
11582 * gdbthread.h (class thread_info): Update comment.
11583
e2a03548
TT
115842019-03-06 Joel Brobecker <brobecker@adacore.com>
11585 Tom Tromey <tom@tromey.com>
11586
11587 * stabsread.h (struct stab_section_list): Remove.
11588 (coffstab_build_psymtabs): Update.
11589 * dbxread.c (symbuf_sections): Now a std::vector.
11590 (sect_idx): New global.
11591 (fill_symbuf): Update.
11592 (coffstab_build_psymtabs): Change type of stabsects parameter.
11593 Update.
11594 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11595 std::vector.
11596 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11597 (coff_locate_sections): Update.
11598 (coff_symfile_read): Remove cleanups. Update.
11599 (init_stringtab): Add storage parameter.
11600 (free_stringtab, free_stringtab_cleanup): Remove.
11601 (init_lineno): Add storage parameter.
11602 (free_linetab, free_linetab_cleanup): Remove.
11603
b7e60d85
PA
116042019-03-06 Pedro Alves <palves@redhat.com>
11605
11606 * linux-fork.c (fork_info::clobber_regs): Delete.
11607 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11608 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11609 comment. Adjust.
11610 (scoped_switch_fork_info::scoped_switch_fork_info)
11611 (checkpoint_command, linux_fork_context): Adjust
11612 fork_save_infrun_state calls.
11613
e52c971f
PA
116142019-03-06 Pedro Alves <palves@redhat.com>
11615
11616 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11617 (inf_has_multiple_threads): Return 'bool' and rewrite using
11618 inferior_info::threads().
11619
06974e6c
PA
116202019-03-06 Pedro Alves <palves@redhat.com>
11621
11622 * linux-fork.c: Include <list>.
11623 (fork_list): Now a std::list instance.
11624 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11625 (forks_exist_p, find_last_fork): Adjust.
11626 (new_fork): Delete.
11627 (one_fork_p): New.
11628 (add_fork): Adjust.
11629 (free_fork): Delete, folded into fork_info::~fork_info().
11630 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11631 Adjust.
11632 (init_fork_list): Delete.
11633 (linux_fork_killall, linux_fork_mourn_inferior)
11634 (linux_fork_detach, info_checkpoints_command): Adjust.
11635 (_initialize_linux_fork): No longer call init_fork_list.
11636
72f31aea
PA
116372019-03-06 Pedro Alves <palves@redhat.com>
11638
11639 * linux-fork.c (new_fork): New, split out of ...
11640 (add_fork): ... this. Return void. Move "first fork" special
11641 case from here, to ...
11642 (checkpoint_command): ... here.
11643 * linux-linux.h (add_fork): Return void.
11644
efbecbc1
AB
116452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11646
11647 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11648
0841c79a
AB
116492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11650 Chris January <chris.january@arm.com>
11651 David Lecomber <david.lecomber@arm.com>
11652
11653 * f-exp.y: New token, UNOP_INTRINSIC.
11654 (exp): New pattern using UNOP_INTRINSIC token.
11655 (f77_keywords): Add 'abs' keyword.
11656 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11657 (value_from_host_double): New function.
11658 (evaluate_subexp_f): Support UNOP_ABS.
11659
4a270568
AB
116602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11661
11662 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11663 types.
11664
067630bd
AB
116652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11666
11667 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11668 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11669 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11670
3be47f7a
AB
116712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11674
4d00f5d8
AB
116752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11676 Chris January <chris.january@arm.com>
11677
11678 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11679 * f-exp.y: Define 'KIND' token.
11680 (exp): New pattern for KIND expressions.
11681 (ptype): Handle types with a kind extension.
11682 (direct_abs_decl): Extend to spot kind extensions.
11683 (f77_keywords): Add 'kind' to the list.
11684 (push_kind_type): New function.
11685 (convert_to_kind_type): New function.
11686 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11687 * parse.c (operator_length_standard): Likewise.
11688 * parser-defs.h (enum type_pieces): Add tp_kind.
11689 * std-operator.def: Add UNOP_KIND.
11690
e454224f
AB
116912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11692
11693 * f-exp.y (f_parse): Set yydebug.
11694
9dad4a58
AB
116952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11696
11697 * f-lang.c (evaluate_subexp_f): New function.
11698 (exp_descriptor_f): New global.
11699 (f_language_defn): Use exp_descriptor_f instead of
11700 exp_descriptor_standard.
11701
c8f91604
AB
117022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 * f-exp.y (struct token): Add comments.
11705 (dot_ops): Remove uppercase versions and the end marker.
11706 (f77_keywords): Likewise.
11707 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11708 entries in the dot_ops array are case insensitive, and use
11709 strncasecmp to compare strings. Also some whitespace cleanup in
11710 this area. Similar for the f77_keywords array, except entries in
11711 this list might be case sensitive.
11712
dd9f2c76
AB
117132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11714
11715 * f-exp.y (struct f77_boolean_val): Add comments.
11716 (boolean_values): Remove uppercase versions, and end marker.
11717 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11718 and use strncasecmp to achieve case insensitivity. Additionally,
11719 perform whitespace cleanup around this code.
11720
67a3048c
TT
117212019-03-06 Tom Tromey <tromey@adacore.com>
11722
11723 * remote-sim.c (gdbsim_target_open): Use result of
11724 gdb_argv::release.
11725
aa3cfbda
RB
117262019-03-06 Richard Bunt <richard.bunt@arm.com>
11727 Dirk Schubert <dirk.schubert@arm.com>
11728 Chris January <chris.january@arm.com>
11729
11730 * eval.c (evaluate_subexp_standard): Call Fortran argument
11731 wrapping logic.
11732 * f-lang.c (struct value): A value which can be passed into a
11733 Fortran function call.
11734 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11735 where appropriate.
11736 (struct type): Value ready for a Fortran function call.
11737 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11738 is needed.
11739 * f-lang.h (fortran_argument_convert): Declaration.
11740 (fortran_preserve_arg_pointer): Declaration.
11741 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11742
ea38e5df
TT
117432019-03-05 Tom Tromey <tromey@adacore.com>
11744
11745 * python/py-prettyprint.c (print_string_repr): Remove #if.
11746 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11747
06b5b831
TT
117482019-03-05 Tom Tromey <tromey@adacore.com>
11749
11750 * target.c (the_dummy_target): Move later. Change type to
11751 "dummy_target".
11752 (initialize_targets): Don't initialize the_dummy_target.
11753
edbd9e45
TT
117542019-03-05 Tom Tromey <tromey@adacore.com>
11755
11756 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11757 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11758
c119e040
TT
117592019-03-05 Tom Tromey <tromey@adacore.com>
11760
11761 * windows-nat.c (windows_nat_target::attach)
11762 (windows_nat_target::detach): Don't call gdb_flush.
11763 * valprint.c (generic_val_print, val_print, val_print_string):
11764 Don't call gdb_flush.
11765 * utils.c (defaulted_query): Don't call gdb_flush.
11766 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11767 * target.c (target_announce_detach): Don't call gdb_flush.
11768 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11769 * remote.c (extended_remote_target::attach): Don't call
11770 gdb_flush.
11771 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11772 * printcmd.c (do_examine): Don't call gdb_flush.
11773 (info_display_command): Don't call gdb_flush.
11774 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11775 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11776 * memattr.c (info_mem_command): Don't call gdb_flush.
11777 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11778 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11779 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11780 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11781 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11782 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11783 (gnu_nat_target::detach): Don't call gdb_flush.
11784 * f-valprint.c (f_val_print): Don't call gdb_flush.
11785 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11786 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11787 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11788 gdb_flush.
11789 * c-valprint.c (c_val_print): Don't call gdb_flush.
11790 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11791
895dafa6
TT
117922019-03-05 Tom Tromey <tromey@adacore.com>
11793
11794 * varobj.c (update_dynamic_varobj_children): Update.
11795 (install_default_visualizer): Use reset, not release.
11796 * value.c (set_internalvar): Update.
11797 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11798 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11799 ATTRIBUTE_UNUSED_RESULT.
11800
88a774b9
TT
118012019-03-05 Tom Tromey <tromey@adacore.com>
11802
11803 * remote.c (class scoped_remote_fd) <release>: Add
11804 ATTRIBUTE_UNUSED_RESULT.
11805
4e4a8b93
TT
118062019-03-05 Tom Tromey <tromey@adacore.com>
11807
11808 * macroexp.c (struct macro_buffer) <release>: Add
11809 ATTRIBUTE_UNUSED_RESULT.
11810
083eef1f
TT
118112019-03-05 Tom Tromey <tromey@adacore.com>
11812
11813 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11814 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11815 ATTRIBUTE_UNUSED_RESULT.
11816
3cabd438
TT
118172019-03-05 Tom Tromey <tromey@adacore.com>
11818
11819 * common/scoped_fd.h (class scoped_fd) <release>: Add
11820 ATTRIBUTE_UNUSED_RESULT.
11821
41e3300a
TT
118222019-03-05 Tom Tromey <tromey@adacore.com>
11823
11824 * parser-defs.h (struct parser_state) <release>: Add
11825 ATTRIBUTE_UNUSED_RESULT.
11826
18cb7c9f
TT
118272019-03-05 Tom Tromey <tromey@adacore.com>
11828
11829 * utils.h (class gdb_argv) <release>: Add
11830 ATTRIBUTE_UNUSED_RESULT.
11831 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11832
41fa577f
EZ
118332019-03-02 Eli Zaretskii <eliz@gnu.org>
11834
a6a4b2c6
EZ
11835 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11836 for-loop range, to avoid compiler warnings.
11837
11838 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11839 avoid compiler warnings about unused variables.
11840
742a7df5
EZ
11841 * NEWS: Mention end of support for native debugging on MS-Windows
11842 before XP.
11843
41fa577f
EZ
11844 PR gdb/24292
11845 * common/netstuff.c:
11846 * gdbserver/gdbreplay.c
11847 * gdbserver/remote-utils.c:
11848 * ser-tcp.c:
11849 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11850 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11851 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11852 'getaddrinfo' and 'freeaddrinfo' were not available before
11853 Windows XP, and mingw.org's MinGW headers by default define
11854 _WIN32_WINNT to 0x500.
11855
827f438f
GB
118562019-03-01 Gary Benson <gbenson@redhat.com>
11857
11858 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11859
92137da0
RO
118602019-02-28 Brian Vandenberg <phantall@gmail.com>
11861 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11862
11863 PR gdb/8527
11864 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11865 set_sigint_trap, clear_sigint_trap.
11866
799efbe8
PW
118672019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11868
11869 * target.c (target_detach): Clear the regcache and the
11870 frame cache.
11871
8ed25214
PA
118722019-02-27 Pedro Alves <palves@redhat.com>
11873
11874 * utils.c (set_screen_size): When we cap the height/width sizes,
11875 tweak the corresponding command variable to show "unlimited":
11876
23031e31
SJ
118772019-02-27 Saagar Jha <saagar@saagarjha.com>
11878 Pedro Alves <palves@redhat.com>
11879
11880 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11881 before calling rl_set_screen_size.
11882
6c28e44a
TT
118832019-02-27 Tom Tromey <tromey@adacore.com>
11884
11885 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11886 define.
11887 * python/py-value.c: Remove Python 2.4 workaround.
11888 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11889 workaround.
11890 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11891 Python 2.4 workaround.
11892 * python/python-internal.h: Remove Python 2.4 comment.
11893 (Py_ssize_t): Don't define.
11894 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11895 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11896 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11897 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11898 * python/python.c (do_start_initialization): Remove Python 2.4
11899 workaround.
11900 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11901 (print_children): Remove Python 2.4 workaround.
11902 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11903 workaround.
11904 (CHARBUFFERPROC_NAME): Remove.
11905 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11906 Python 2.4 workaround.
11907
2c3fc25d 119082019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11909
2c3fc25d
KB
11910 * NEWS: Note minimum Python version.
11911
6ca62222
KB
119122019-02-27 Kevin Buettner <kevinb@redhat.com>
11913
11914 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11915 code from these functions. Remove corresponding ifdefs. Use
11916 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11917 Remove gotos and target of gotos.
11918 (infpy_search_memory): Likewise.
11919
f4bc7d2c
AB
119202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11921
11922 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11923 (hppa_gdbarch_init): Don't register deleted functions with
11924 gdbarch.
11925
9734a586
AB
119262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11927
11928 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11929 (h8300_unwind_sp): Delete.
11930 (h8300_dummy_id): Delete.
11931 (h8300_gdbarch_init): Don't register deleted functions with
11932 gdbarch.
11933
68b867f3
AB
119342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11937 (ft32_unwind_pc): Delete.
11938 (ft32_unwind_sp): Delete.
11939 (ft32_gdbarch_init): Don't register deleted functions with
11940 gdbarch.
11941
2fbe7ad0
AB
119422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11945 (frv_unwind_pc): Delete.
11946 (frv_unwind_sp): Delete.
11947 (frv_gdbarch_init): Don't register deleted functions with
11948 gdbarch.
11949
76055cbe
AB
119502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11951
11952 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11953 (riscv_unwind_pc): Delete.
11954 (riscv_unwind_sp): Delete.
11955 (riscv_gdbarch_init): Don't register deleted functions with
11956 gdbarch.
11957
4133e5a1
AB
119582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11959
11960 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11961 (csky_unwind_pc): Delete.
11962 (csky_unwind_sp): Delete.
11963 (csky_gdbarch_init): Don't register deleted functions with
11964 gdbarch.
11965
8010f576
AB
119662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11969 (cris_unwind_pc): Delete.
11970 (cris_unwind_sp): Delete.
11971 (cris_gdbarch_init): Don't register deleted functions with
11972 gdbarch.
11973
b56bf084
AB
119742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11975
11976 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11977 (bfin_unwind_pc): Delete.
11978 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11979
a19a650f
AB
119802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11981
11982 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11983 (arm_unwind_pc): Delete.
11984 (arm_unwind_sp): Delete.
11985 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11986
f8278c3c
AB
119872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11988
11989 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11990 (arc_unwind_pc): Delete.
11991 (arc_unwind_sp): Delete.
11992 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11993
480e46cf
AB
119942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11997 (alpha_unwind_pc): Delete.
11998 (alpha_gdbarch_init): Don't register deleted functions with
11999 gdbarch.
12000
7a995095
AB
120012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12002
12003 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12004 (aarch64_unwind_pc): Delete.
12005 (aarch64_unwind_sp): Delete.
12006 (aarch64_gdbarch_init): Don't register deleted functions with
12007 gdbarch.
12008
bf9a735e
AB
120092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12010
12011 * gdbtypes.c (type_align): Don't consider static members when
12012 computing structure alignment.
12013
5561fc30
AB
120142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12015
12016 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12017 return 0 for other types.
12018 * arch-utils.c (default_type_align): Always return 0.
12019 * gdbarch.h: Regenerate.
12020 * gdbarch.sh (type_align): Extend comment.
12021 * gdbtypes.c (type_align): Add additional comments, always call
12022 gdbarch_type_align before applying the default rules.
12023 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12024 generic code will then apply a suitable default.
12025 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12026 types, return 0 for other types.
12027
9335e75a
JB
120282019-02-27 Joel Brobecker <brobecker@adacore.com>
12029
12030 * NEWS: Create a new section for the next release branch.
12031 Rename the section of the current branch, now that it has
12032 been cut.
12033
3d34d8de
JB
120342019-02-27 Joel Brobecker <brobecker@adacore.com>
12035
12036 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12037 * version.in: Bump version to 8.3.50.DATE-git.
12038
143420fb
SM
120392019-02-26 Simon Marchi <simon.marchi@efficios.com>
12040
12041 * aix-thread.c (ptid_cmp): Remove unused variable.
12042 (get_signaled_thread): Likewise.
12043 (store_regs_user_thread): Likewise.
12044 (store_regs_kernel_thread): Likewise.
12045 (fetch_regs_kernel_thread): Remove shadowed variable.
12046
172fb711
AB
120472019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * features/riscv/32bit-cpu.xml: Add register numbers.
12050 * features/riscv/32bit-fpu.c: Regenerate.
12051 * features/riscv/32bit-fpu.xml: Add register numbers.
12052 * features/riscv/64bit-cpu.xml: Add register numbers.
12053 * features/riscv/64bit-fpu.c: Regenerate.
12054 * features/riscv/64bit-fpu.xml: Add register numbers.
12055
26c89782
KB
120562019-02-26 Kevin Buettner <kevinb@redhat.com>
12057
af54ade9 12058 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12059 * python/py-value.c (convert_buffer_and_type_to_value): New
12060 function.
12061 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12062 Add support for handling an optional second argument. Call
12063 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12064 * python/python-internal.h (Py_buffer_deleter): New struct.
12065 (Py_buffer_up): New typedef.
12066
0f58c9e8
JB
120672019-02-25 John Baldwin <jhb@FreeBSD.org>
12068
12069 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12070 instead of releasing ownership.
12071
0a0f4c01
JR
120722019-02-25 Jordan Rupprecht <rupprecht@google.com>
12073
12074 * dwarf2read.c (open_and_init_dwp_file): Call
12075 elf_numsections instead of bfd_count_sections to initialize
12076 dwp_file->num_sections.
12077
cd5a152c
TT
120782019-02-25 Tom Tromey <tromey@adacore.com>
12079
12080 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12081
8a6a8513
SDJ
120822019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12083
12084 * gcore.in: Add '--readnever' option when invoking GDB.
12085
04dcda9c
SM
120862019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12087
12088 * MAINTAINERS: Update my email address.
12089
07bc701d
SM
120902019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12091
12092 * build-id.c (build_id_to_debug_bfd_1): New function.
12093 (build_id_to_debug_bfd): Look for separate debug file in
12094 sysroot.
12095
c6f4a5d0
AB
120962019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12097
12098 * gdbarch.sh: Update the copyright year range that is placed into
12099 generated files.
12100
9600246d
KS
121012019-02-22 Keith Seitz <keiths@redhat.com>
12102
12103 PR symtab/23853
12104 * linespec.c (create_sals_line_offset): Search for the default
12105 symtab's filename instead of its fullname.
12106
7557a514
AH
121072019-02-21 Alan Hayward <alan.hayward@arm.com>
12108
12109 * NEWS: Update style defaults.
12110
ee2bcb0c
AH
121112019-02-21 Alan Hayward <alan.hayward@arm.com>
12112
12113 * main.c (captured_main_1): Disable styling in batch mode.
12114
0c95f9ed
TT
121152019-02-20 Tom Tromey <tom@tromey.com>
12116
12117 * symtab.c (symtab_symbol_info): Fix typos.
12118
c763b894
TT
121192019-02-20 Tom Tromey <tromey@adacore.com>
12120
12121 * findcmd.c (_initialize_mem_search): Use upper case for
12122 metasyntactic variables.
12123
0ef8a082
AH
121242019-02-20 Alan Hayward <alan.hayward@arm.com>
12125
12126 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12127 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12128
6caa91b6
SM
121292019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12130
12131 * top.h (source_file_name): Change to std::string.
12132 * top.c (source_file_name): Likewise.
12133 (command_line_input): Adjust.
12134 * cli/cli-script.c (script_from_file): Adjust.
12135
98814c6c
TT
121362019-02-19 Tom Tromey <tromey@adacore.com>
12137
12138 * ravenscar-thread.c
12139 (ravenscar_thread_target::update_thread_list): Don't call
12140 ada_build_task_list.
12141 * ada-lang.h (ada_build_task_list): Don't declare.
12142 * ada-tasks.c (struct ada_tasks_inferior_data)
12143 <task_list_valid_p>: Now bool.
12144 (read_known_tasks, ada_task_list_changed)
12145 (ada_tasks_invalidate_inferior_data): Update.
12146 (read_known_tasks_array): Return bool.
12147 (read_known_tasks_list): Likewise.
12148 (read_known_tasks): Return void.
12149 (ada_build_task_list): Now static.
12150
70cd633e
AB
121512019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12152
12153 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12154 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12155
040b3e95
PW
121562019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12157
12158 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12159 variant for ada_tasks_pspace_data_handle and
12160 ada_tasks_inferior_data_handle.
12161 (ada_tasks_pspace_data_cleanup): New function.
12162 (ada_tasks_inferior_data_cleanup): New function.
12163
9409233b
TT
121642019-02-17 Tom Tromey <tom@tromey.com>
12165
12166 * macrotab.h (macro_source_fullname): Return a std::string.
12167 * macrotab.c (macro_include, check_for_redefinition)
12168 (macro_undef, macro_lookup_definition, foreach_macro)
12169 (foreach_macro_in_scope): Update.
12170 (macro_source_fullname): Return a std::string.
12171 * macrocmd.c (show_pp_source_pos): Update.
12172
6506371f
TT
121732019-02-17 Tom Tromey <tom@tromey.com>
12174
12175 * macrocmd.c (show_pp_source_pos): Style the file names.
12176
0c820d67
TT
121772019-02-17 Tom Tromey <tom@tromey.com>
12178
12179 PR tui/24197:
12180 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12181
a0087920
TT
121822019-02-17 Tom Tromey <tom@tromey.com>
12183
12184 * ada-lang.c (user_select_syms): Use filtered printing.
12185 * utils.c (wrap_style): New global.
12186 (desired_style): Remove.
12187 (emit_style_escape): Add stream parameter.
12188 (set_output_style, reset_terminal_style, prompt_for_continue):
12189 Update.
12190 (flush_wrap_buffer): Only flush gdb_stdout.
12191 (wrap_here): Set wrap_style.
12192 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12193 treat escape sequences as a character. Change when wrap buffer is
12194 flushed.
12195 (fputs_styled): Do not set the output style when the default is
12196 requested.
12197 * ui-style.h (struct ui_file_style) <is_default>: New method.
12198 * source.c (print_source_lines_base): Emit escape sequences in one
12199 piece.
12200
75ba10dc
JB
122012019-02-17 Joel Brobecker <brobecker@adacore.com>
12202
12203 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12204 integers and enumeration types.
12205
a2cd4f14
JB
122062019-02-17 Joel Brobecker <brobecker@adacore.com>
12207
12208 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12209 instead of lookup_symbol_in_language
12210 (do_exact_match): New function.
12211 (ada_get_symbol_name_matcher): Return do_exact_match when
12212 doing a verbatim match.
12213
485b851b
TT
122142019-02-15 Tom Tromey <tromey@adacore.com>
12215
12216 * ravenscar-thread.c (ravenscar_thread_target::resume)
12217 (ravenscar_thread_target::wait): Special case wildcard requests.
12218
0b790b1e
TT
122192019-02-15 Tom Tromey <tromey@adacore.com>
12220
12221 * ravenscar-thread.c (base_ptid): Remove.
12222 (struct ravenscar_thread_target) <close>: New method.
12223 <m_base_ptid>: New member.
12224 <update_inferior_ptid, active_task, task_is_currently_active,
12225 runtime_initialized>: Declare methods.
12226 <ravenscar_thread_target>: Add constructor.
12227 (ravenscar_thread_target::task_is_currently_active)
12228 (ravenscar_thread_target::update_inferior_ptid)
12229 (ravenscar_runtime_initialized): Rename. Now methods.
12230 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12231 (ravenscar_thread_target::update_thread_list): Update.
12232 (ravenscar_thread_target::active_task): Now method.
12233 (ravenscar_thread_target::store_registers)
12234 (ravenscar_thread_target::prepare_to_store)
12235 (ravenscar_thread_target::prepare_to_store)
12236 (ravenscar_thread_target::mourn_inferior): Update.
12237 (ravenscar_inferior_created): Use "new" to create target.
12238 (ravenscar_thread_target::get_ada_task_ptid): Update.
12239 (_initialize_ravenscar): Don't initialize base_ptid.
12240 (ravenscar_ops): Remove global.
12241
dea57a62
TT
122422019-02-15 Tom Tromey <tromey@adacore.com>
12243
12244 * target.h (push_target): Declare new overload.
12245 * target.c (push_target): New overload, taking an rvalue reference.
12246 * remote.c (remote_target::open_1): Use push_target overload.
12247 * corelow.c (core_target_open): Use push_target overload.
12248
989f3c58
TT
122492019-02-15 Tom Tromey <tromey@adacore.com>
12250
12251 * ravenscar-thread.c (is_ravenscar_task)
12252 (ravenscar_task_is_currently_active): Return bool.
12253 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12254 (_initialize_ravenscar): Remove "(void)".
12255 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12256 Return bool.
12257
6cbcc006
TT
122582019-02-15 Tom Tromey <tromey@adacore.com>
12259
12260 * ravenscar-thread.c (ravenscar_runtime_initializer)
12261 (has_ravenscar_runtime, get_running_thread_id)
12262 (ravenscar_thread_target::resume): Fix indentation.
12263
7657f14d
TT
122642019-02-15 Tom Tromey <tromey@adacore.com>
12265
12266 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12267 from ravenscar_arch_ops.
12268 (sparc_ravenscar_ops::fetch_registers)
12269 (sparc_ravenscar_ops::store_registers): Now methods.
12270 (sparc_ravenscar_prepare_to_store): Remove.
12271 (sparc_ravenscar_ops): Redefine.
12272 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12273 methods and destructor. Remove members.
12274 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12275 (ravenscar_thread_target::store_registers)
12276 (ravenscar_thread_target::prepare_to_store): Update.
12277 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12278 Remove.
12279 (struct ppc_ravenscar_powerpc_ops): Derive from
12280 ravenscar_arch_ops.
12281 (ppc_ravenscar_powerpc_ops::fetch_registers)
12282 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12283 (ppc_ravenscar_powerpc_ops): Redefine.
12284 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12285 (ppc_ravenscar_e500_ops::fetch_registers)
12286 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12287 (ppc_ravenscar_e500_ops): Redefine.
12288 * aarch64-ravenscar-thread.c
12289 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12290 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12291 (aarch64_ravenscar_fetch_registers)
12292 (aarch64_ravenscar_store_registers): Now methods.
12293 (aarch64_ravenscar_ops): Redefine.
12294
5b6ea500
TT
122952019-02-15 Tom Tromey <tromey@adacore.com>
12296
12297 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12298 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12299 (ravenscar_thread_target::stopped_by_watchpoint)
12300 (ravenscar_thread_target::stopped_data_address)
12301 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12302
e397fd39
TT
123032019-02-15 Tom Tromey <tromey@adacore.com>
12304
12305 * ravenscar-thread.c: Fix some typos.
12306
cc12f4a8
TT
123072019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12308 Tom Tromey <tromey@adacore.com>
12309
12310 * ada-lang.c (ada_exception_sal): Change addr_string to a
12311 std::string.
12312 (create_ada_exception_catchpoint): Update.
12313
5f486660
TT
123142019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12315 Tom Tromey <tromey@adacore.com>
12316
12317 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12318 (bp_location_ops): Remove.
12319 (base_breakpoint_allocate_location): Update.
12320 (free_bp_location): Update.
12321 * ada-lang.c (class ada_catchpoint_location)
12322 <ada_catchpoint_location>: Remove ops parameter.
12323 (ada_catchpoint_location_dtor): Remove.
12324 (ada_catchpoint_location_ops): Remove.
12325 (allocate_location_exception): Update.
12326 * breakpoint.h (struct bp_location_ops): Remove.
12327 (class bp_location) <bp_location>: Remove bp_location_ops
12328 parameter.
12329 <~bp_location>: Add destructor.
12330 <ops>: Remove.
12331
b671c7fb
TS
123322019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12333 Pedro Alves <palves@redhat.com>
12334
12335 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12336 'PATH_MAX'.
12337
8071c5ce
DM
123382019-02-14 David Michael <fedora.dm0@gmail.com>
12339 Samuel Thibault <samuel.thibault@gnu.org>
12340 Thomas Schwinge <thomas@codesourcery.com>
12341
12342 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12343 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12344
b1041ae0
TS
123452019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12346
924514e1
TS
12347 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12348 (check_empty): Use "const char *".
12349
c29ee8d4
TS
12350 * gnu-nat.c (gnu_nat_target::detach): Instead of
12351 'detach_inferior (pid)' call
12352 'detach_inferior (find_inferior_pid (pid))'.
12353
6c6ef69f
TS
12354 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12355 'nat/fork-inferior.o'.
12356 * gnu-nat.c: #include "nat/fork-inferior.h".
12357
2d0a338c
TS
12358 * gnu-nat.c (gnu_nat_target::detach): Instead of
12359 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12360 * gnu-nat.h: #include "inf-child.h".
12361 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12362 'i386_gnu_nat_target::fetch_registers'.
12363 (gnu_store_registers): Rename/move to
12364 'i386_gnu_nat_target::store_registers'.
12365
cabb5f06
TS
12366 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12367 * gnu-nat.h (mach_thread_info): New function.
12368 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12369
b1041ae0
TS
12370 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12371
2988d01e
KF
123722019-02-14 Frederic Konrad <konrad@adacore.com>
12373
12374 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12375
c559d709
JB
123762019-02-14 Joel Brobecker <brobecker@adacore.com>
12377
12378 * windows-nat.c (windows_add_thread): Add new parameter
12379 "main_thread_p" with default value set to false. Update
12380 function documentation as well as all callers.
12381 (windows_delete_thread): Likewise.
12382 (fake_create_process): Update call to windows_add_thread.
12383 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12384 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12385 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12386 call to windows_delete_thread.
12387
007024cc
SM
123882019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12389
12390 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12391
f62318e9
JB
123922019-02-12 John Baldwin <jhb@FreeBSD.org>
12393
12394 * symfile.c (find_separate_debug_file): Use canonical path of
12395 sysroot with child_path instead of gdb_sysroot if it is valid.
12396
cd4b7848
JB
123972019-02-12 John Baldwin <jhb@FreeBSD.org>
12398
12399 * symfile.c (find_separate_debug_file): Use child_path to
12400 determine if an object file is under a sysroot.
12401
efac4bfe
JB
124022019-02-12 John Baldwin <jhb@FreeBSD.org>
12403
12404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12405 unittests/child-path-selftests.c.
12406 * common/pathstuff.c (child_path): New function.
12407 * common/pathstuff.h (child_path): New prototype.
12408 * unittests/child-path-selftests.c: New file.
12409
402d2bfe
JB
124102019-02-12 John Baldwin <jhb@FreeBSD.org>
12411
12412 * symfile.c (find_separate_debug_file): Look for separate debug
12413 files in debug directories under the sysroot.
12414
1ed9f74e
PW
124152019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12416
12417 * symtab.h (struct minimal_symbol data_p): New const method.
12418 (struct minimal_symbol text_p): Likewise.
12419 * symtab.c (output_source_filename): Use file name style
12420 to print file name.
12421 (print_symbol_info): Likewise.
12422 (print_msymbol_info): Use address style to print addresses.
12423 Use function name style to print executable text symbols.
12424 (expand_symtab_containing_pc): Use data_p.
12425 (find_pc_sect_compunit_symtab): Likewise.
12426
2636d81d
PW
124272019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12428
12429 * breakpoint.c (describe_other_breakpoints): Use address style
12430 to print addresses.
12431 (say_where): Likewise.
12432
ac8c53cc
PW
124332019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12434
12435 * ada-typeprint.c (print_func_type): Print function name
12436 style to print function name.
12437 * c-typeprint.c (c_print_type_1): Likewise.
12438
ea638c43
AH
124392019-02-11 Alan Hayward <alan.hayward@arm.com>
12440
12441 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12442 for execve.
12443
ab759ca8
PW
124442019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12445
12446 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12447 type_stack.
12448
aff29d1c
JB
124492019-02-10 Joel Brobecker <brobecker@adacore.com>
12450
12451 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12452 TYPE_CODE_REF types.
12453
617126bc
JW
124542019-02-08 Jim Wilson <jimw@sifive.com>
12455
12456 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12457 (riscv_linux_fregset): New.
12458 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12459
46e3ed7f
TT
124602019-02-07 Tom Tromey <tom@tromey.com>
12461
12462 * thread.c (thread_cancel_execution_command): Update.
12463 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12464 methods.
12465 (struct thread_fsm_ops): Remove.
12466 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12467 (thread_fsm_should_stop, thread_fsm_return_value)
12468 (thread_fsm_set_finished, thread_fsm_finished_p)
12469 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12470 Don't declare.
12471 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12472 * infrun.c (clear_proceed_status_thread)
12473 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12474 (print_stop_event): Update.
12475 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12476 Add constructor.
12477 (step_command_fsm_ops): Remove.
12478 (new_step_command_fsm): Remove.
12479 (step_1): Update.
12480 (step_command_fsm::should_stop): Rename from
12481 step_command_fsm_should_stop.
12482 (step_command_fsm::clean_up): Rename from
12483 step_command_fsm_clean_up.
12484 (step_command_fsm::do_async_reply_reason): Rename from
12485 step_command_fsm_async_reply_reason.
12486 (struct until_next_fsm): Inherit from thread_fsm. Add
12487 constructor.
12488 (until_next_fsm_ops): Remove.
12489 (new_until_next_fsm): Remove.
12490 (until_next_fsm::should_stop): Rename from
12491 until_next_fsm_should_stop.
12492 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12493 (until_next_fsm::do_async_reply_reason): Rename from
12494 until_next_fsm_async_reply_reason.
12495 (struct finish_command_fsm): Inherit from thread_fsm. Add
12496 constructor. Change type of breakpoint.
12497 (finish_command_fsm_ops): Remove.
12498 (new_finish_command_fsm): Remove.
12499 (finish_command_fsm::should_stop): Rename from
12500 finish_command_fsm_should_stop.
12501 (finish_command_fsm::clean_up): Rename from
12502 finish_command_fsm_clean_up.
12503 (finish_command_fsm::return_value): Rename from
12504 finish_command_fsm_return_value.
12505 (finish_command_fsm::do_async_reply_reason): Rename from
12506 finish_command_fsm_async_reply_reason.
12507 (finish_command): Update.
12508 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12509 Add constructor.
12510 (call_thread_fsm_ops): Remove.
12511 (call_thread_fsm::call_thread_fsm): Rename from
12512 new_call_thread_fsm.
12513 (call_thread_fsm::should_stop): Rename from
12514 call_thread_fsm_should_stop.
12515 (call_thread_fsm::should_notify_stop): Rename from
12516 call_thread_fsm_should_notify_stop.
12517 (run_inferior_call, call_function_by_hand_dummy): Update.
12518 * cli/cli-interp.c (should_print_stop_to_console): Update.
12519 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12520 Add constructor. Change type of location_breakpoint,
12521 caller_breakpoint.
12522 (until_break_fsm_ops): Remove.
12523 (new_until_break_fsm): Remove.
12524 (until_break_fsm::should_stop): Rename from
12525 until_break_fsm_should_stop.
12526 (until_break_fsm::clean_up): Rename from
12527 until_break_fsm_clean_up.
12528 (until_break_fsm::do_async_reply_reason): Rename from
12529 until_break_fsm_async_reply_reason.
12530 (until_break_command): Update.
12531 * thread-fsm.c: Remove.
12532 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12533
1a5c2598
TT
125342019-02-07 Tom Tromey <tom@tromey.com>
12535
12536 * yy-remap.h: Add include guard.
12537 * xtensa-tdep.h: Add include guard.
12538 * xcoffread.h: Rename include guard.
12539 * varobj-iter.h: Add include guard.
12540 * tui/tui.h: Rename include guard.
12541 * tui/tui-winsource.h: Rename include guard.
12542 * tui/tui-wingeneral.h: Rename include guard.
12543 * tui/tui-windata.h: Rename include guard.
12544 * tui/tui-win.h: Rename include guard.
12545 * tui/tui-stack.h: Rename include guard.
12546 * tui/tui-source.h: Rename include guard.
12547 * tui/tui-regs.h: Rename include guard.
12548 * tui/tui-out.h: Rename include guard.
12549 * tui/tui-layout.h: Rename include guard.
12550 * tui/tui-io.h: Rename include guard.
12551 * tui/tui-hooks.h: Rename include guard.
12552 * tui/tui-file.h: Rename include guard.
12553 * tui/tui-disasm.h: Rename include guard.
12554 * tui/tui-data.h: Rename include guard.
12555 * tui/tui-command.h: Rename include guard.
12556 * tic6x-tdep.h: Add include guard.
12557 * target/waitstatus.h: Rename include guard.
12558 * target/wait.h: Rename include guard.
12559 * target/target.h: Rename include guard.
12560 * target/resume.h: Rename include guard.
12561 * target-float.h: Rename include guard.
12562 * stabsread.h: Add include guard.
12563 * rs6000-tdep.h: Add include guard.
12564 * riscv-fbsd-tdep.h: Add include guard.
12565 * regformats/regdef.h: Rename include guard.
12566 * record.h: Rename include guard.
12567 * python/python.h: Rename include guard.
12568 * python/python-internal.h: Rename include guard.
12569 * python/py-stopevent.h: Rename include guard.
12570 * python/py-ref.h: Rename include guard.
12571 * python/py-record.h: Rename include guard.
12572 * python/py-record-full.h: Rename include guard.
12573 * python/py-record-btrace.h: Rename include guard.
12574 * python/py-instruction.h: Rename include guard.
12575 * python/py-events.h: Rename include guard.
12576 * python/py-event.h: Rename include guard.
12577 * procfs.h: Add include guard.
12578 * proc-utils.h: Add include guard.
12579 * p-lang.h: Add include guard.
12580 * or1k-tdep.h: Rename include guard.
12581 * observable.h: Rename include guard.
12582 * nto-tdep.h: Rename include guard.
12583 * nat/x86-linux.h: Rename include guard.
12584 * nat/x86-linux-dregs.h: Rename include guard.
12585 * nat/x86-gcc-cpuid.h: Add include guard.
12586 * nat/x86-dregs.h: Rename include guard.
12587 * nat/x86-cpuid.h: Rename include guard.
12588 * nat/ppc-linux.h: Rename include guard.
12589 * nat/mips-linux-watch.h: Rename include guard.
12590 * nat/linux-waitpid.h: Rename include guard.
12591 * nat/linux-ptrace.h: Rename include guard.
12592 * nat/linux-procfs.h: Rename include guard.
12593 * nat/linux-osdata.h: Rename include guard.
12594 * nat/linux-nat.h: Rename include guard.
12595 * nat/linux-namespaces.h: Rename include guard.
12596 * nat/linux-btrace.h: Rename include guard.
12597 * nat/glibc_thread_db.h: Rename include guard.
12598 * nat/gdb_thread_db.h: Rename include guard.
12599 * nat/gdb_ptrace.h: Rename include guard.
12600 * nat/fork-inferior.h: Rename include guard.
12601 * nat/amd64-linux-siginfo.h: Rename include guard.
12602 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12603 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12604 * nat/aarch64-linux.h: Rename include guard.
12605 * nat/aarch64-linux-hw-point.h: Rename include guard.
12606 * mn10300-tdep.h: Add include guard.
12607 * mips-linux-tdep.h: Add include guard.
12608 * mi/mi-parse.h: Rename include guard.
12609 * mi/mi-out.h: Rename include guard.
12610 * mi/mi-main.h: Rename include guard.
12611 * mi/mi-interp.h: Rename include guard.
12612 * mi/mi-getopt.h: Rename include guard.
12613 * mi/mi-console.h: Rename include guard.
12614 * mi/mi-common.h: Rename include guard.
12615 * mi/mi-cmds.h: Rename include guard.
12616 * mi/mi-cmd-break.h: Rename include guard.
12617 * m2-lang.h: Add include guard.
12618 * location.h: Rename include guard.
12619 * linux-record.h: Rename include guard.
12620 * linux-nat.h: Add include guard.
12621 * linux-fork.h: Add include guard.
12622 * i386-darwin-tdep.h: Rename include guard.
12623 * hppa-linux-offsets.h: Add include guard.
12624 * guile/guile.h: Rename include guard.
12625 * guile/guile-internal.h: Rename include guard.
12626 * gnu-nat.h: Rename include guard.
12627 * gdb-stabs.h: Rename include guard.
12628 * frv-tdep.h: Add include guard.
12629 * f-lang.h: Add include guard.
12630 * event-loop.h: Add include guard.
12631 * darwin-nat.h: Rename include guard.
12632 * cp-abi.h: Rename include guard.
12633 * config/sparc/nm-sol2.h: Rename include guard.
12634 * config/nm-nto.h: Rename include guard.
12635 * config/nm-linux.h: Add include guard.
12636 * config/i386/nm-i386gnu.h: Rename include guard.
12637 * config/djgpp/nl_types.h: Rename include guard.
12638 * config/djgpp/langinfo.h: Rename include guard.
12639 * compile/gcc-cp-plugin.h: Add include guard.
12640 * compile/gcc-c-plugin.h: Add include guard.
12641 * compile/compile.h: Rename include guard.
12642 * compile/compile-object-run.h: Rename include guard.
12643 * compile/compile-object-load.h: Rename include guard.
12644 * compile/compile-internal.h: Rename include guard.
12645 * compile/compile-cplus.h: Rename include guard.
12646 * compile/compile-c.h: Rename include guard.
12647 * common/xml-utils.h: Rename include guard.
12648 * common/x86-xstate.h: Rename include guard.
12649 * common/version.h: Rename include guard.
12650 * common/vec.h: Rename include guard.
12651 * common/tdesc.h: Rename include guard.
12652 * common/selftest.h: Rename include guard.
12653 * common/scoped_restore.h: Rename include guard.
12654 * common/scoped_mmap.h: Rename include guard.
12655 * common/scoped_fd.h: Rename include guard.
12656 * common/safe-iterator.h: Rename include guard.
12657 * common/run-time-clock.h: Rename include guard.
12658 * common/refcounted-object.h: Rename include guard.
12659 * common/queue.h: Rename include guard.
12660 * common/ptid.h: Rename include guard.
12661 * common/print-utils.h: Rename include guard.
12662 * common/preprocessor.h: Rename include guard.
12663 * common/pathstuff.h: Rename include guard.
12664 * common/observable.h: Rename include guard.
12665 * common/netstuff.h: Rename include guard.
12666 * common/job-control.h: Rename include guard.
12667 * common/host-defs.h: Rename include guard.
12668 * common/gdb_wait.h: Rename include guard.
12669 * common/gdb_vecs.h: Rename include guard.
12670 * common/gdb_unlinker.h: Rename include guard.
12671 * common/gdb_unique_ptr.h: Rename include guard.
12672 * common/gdb_tilde_expand.h: Rename include guard.
12673 * common/gdb_sys_time.h: Rename include guard.
12674 * common/gdb_string_view.h: Rename include guard.
12675 * common/gdb_splay_tree.h: Rename include guard.
12676 * common/gdb_setjmp.h: Rename include guard.
12677 * common/gdb_ref_ptr.h: Rename include guard.
12678 * common/gdb_optional.h: Rename include guard.
12679 * common/gdb_locale.h: Rename include guard.
12680 * common/gdb_assert.h: Rename include guard.
12681 * common/filtered-iterator.h: Rename include guard.
12682 * common/filestuff.h: Rename include guard.
12683 * common/fileio.h: Rename include guard.
12684 * common/environ.h: Rename include guard.
12685 * common/common-utils.h: Rename include guard.
12686 * common/common-types.h: Rename include guard.
12687 * common/common-regcache.h: Rename include guard.
12688 * common/common-inferior.h: Rename include guard.
12689 * common/common-gdbthread.h: Rename include guard.
12690 * common/common-exceptions.h: Rename include guard.
12691 * common/common-defs.h: Rename include guard.
12692 * common/common-debug.h: Rename include guard.
12693 * common/cleanups.h: Rename include guard.
12694 * common/buffer.h: Rename include guard.
12695 * common/btrace-common.h: Rename include guard.
12696 * common/break-common.h: Rename include guard.
12697 * cli/cli-utils.h: Rename include guard.
12698 * cli/cli-style.h: Rename include guard.
12699 * cli/cli-setshow.h: Rename include guard.
12700 * cli/cli-script.h: Rename include guard.
12701 * cli/cli-interp.h: Rename include guard.
12702 * cli/cli-decode.h: Rename include guard.
12703 * cli/cli-cmds.h: Rename include guard.
12704 * charset-list.h: Add include guard.
12705 * buildsym-legacy.h: Rename include guard.
12706 * bfin-tdep.h: Add include guard.
12707 * ax.h: Rename include guard.
12708 * arm-linux-tdep.h: Add include guard.
12709 * arm-fbsd-tdep.h: Add include guard.
12710 * arch/xtensa.h: Rename include guard.
12711 * arch/tic6x.h: Add include guard.
12712 * arch/i386.h: Add include guard.
12713 * arch/arm.h: Rename include guard.
12714 * arch/arm-linux.h: Rename include guard.
12715 * arch/arm-get-next-pcs.h: Rename include guard.
12716 * arch/amd64.h: Add include guard.
12717 * arch/aarch64-insn.h: Rename include guard.
12718 * arch-utils.h: Rename include guard.
12719 * annotate.h: Add include guard.
12720 * amd64-darwin-tdep.h: Rename include guard.
12721 * aarch64-linux-tdep.h: Add include guard.
12722 * aarch64-fbsd-tdep.h: Add include guard.
12723 * aarch32-linux-nat.h: Add include guard.
12724
ab9268d2
PW
127252019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12726
12727 * macrotab.c (macro_define_internal): New function that
12728 factorizes macro_define_object_internal and macro_define_function
12729 code.
12730 (macro_define_object_internal): Use macro_define_internal.
12731 (macro_define_function): Likewise.
12732
bb0da2b4
PW
127332019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12734
12735 * macrocmd.c (extract_identifier): Return
12736 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12737 callers.
12738
424eb552
JB
127392019-02-06 John Baldwin <jhb@FreeBSD.org>
12740
12741 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12742
1688cb29
TT
127432019-02-05 Tom Tromey <tom@tromey.com>
12744
12745 * target.c (target_stack::unpush): Move assertion earlier.
12746
b5eba2d8
TT
127472019-01-30 Tom Tromey <tom@tromey.com>
12748
12749 PR python/23615:
12750 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12751 (gdbpy_parse_and_eval): Likewise.
12752 * python/python-internal.h (gdbpy_allow_threads): New class.
12753
7054e2ff
JB
127542019-01-28 John Baldwin <jhb@FreeBSD.org>
12755
12756 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12757 (aarch64_fbsd_fpregmap): Move earlier.
12758 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12759 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12760 instead of individual calls to trad_frame_set_reg_addr.
12761 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12762 earlier.
12763 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12764 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12765 instead of individual calls to trad_frame_set_reg_addr.
12766
36c25ffa
AH
127672019-01-28 Alan Hayward <alan.hayward@arm.com>
12768
12769 * CONTRIBUTE: Replace contribution list with wiki link.
12770
a0707f3c
TT
127712019-01-25 Tom Tromey <tom@tromey.com>
12772
12773 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12774
0747795c
TT
127752019-01-25 Tom Tromey <tom@tromey.com>
12776
12777 * xtensa-linux-nat.c: Fix common/ includes.
12778 * xml-support.h: Fix common/ includes.
12779 * xml-support.c: Fix common/ includes.
12780 * x86-linux-nat.c: Fix common/ includes.
12781 * windows-nat.c: Fix common/ includes.
12782 * varobj.h: Fix common/ includes.
12783 * varobj.c: Fix common/ includes.
12784 * value.c: Fix common/ includes.
12785 * valops.c: Fix common/ includes.
12786 * utils.c: Fix common/ includes.
12787 * unittests/xml-utils-selftests.c: Fix common/ includes.
12788 * unittests/utils-selftests.c: Fix common/ includes.
12789 * unittests/unpack-selftests.c: Fix common/ includes.
12790 * unittests/tracepoint-selftests.c: Fix common/ includes.
12791 * unittests/style-selftests.c: Fix common/ includes.
12792 * unittests/string_view-selftests.c: Fix common/ includes.
12793 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12794 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12795 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12796 * unittests/rsp-low-selftests.c: Fix common/ includes.
12797 * unittests/parse-connection-spec-selftests.c: Fix common/
12798 includes.
12799 * unittests/optional-selftests.c: Fix common/ includes.
12800 * unittests/offset-type-selftests.c: Fix common/ includes.
12801 * unittests/observable-selftests.c: Fix common/ includes.
12802 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12803 * unittests/memrange-selftests.c: Fix common/ includes.
12804 * unittests/memory-map-selftests.c: Fix common/ includes.
12805 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12806 * unittests/function-view-selftests.c: Fix common/ includes.
12807 * unittests/environ-selftests.c: Fix common/ includes.
12808 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12809 * unittests/common-utils-selftests.c: Fix common/ includes.
12810 * unittests/cli-utils-selftests.c: Fix common/ includes.
12811 * unittests/array-view-selftests.c: Fix common/ includes.
12812 * ui-file.c: Fix common/ includes.
12813 * tui/tui-io.c: Fix common/ includes.
12814 * tracepoint.h: Fix common/ includes.
12815 * tracepoint.c: Fix common/ includes.
12816 * tracefile-tfile.c: Fix common/ includes.
12817 * top.h: Fix common/ includes.
12818 * top.c: Fix common/ includes.
12819 * thread.c: Fix common/ includes.
12820 * target/waitstatus.h: Fix common/ includes.
12821 * target/waitstatus.c: Fix common/ includes.
12822 * target.h: Fix common/ includes.
12823 * target.c: Fix common/ includes.
12824 * target-memory.c: Fix common/ includes.
12825 * target-descriptions.c: Fix common/ includes.
12826 * symtab.h: Fix common/ includes.
12827 * symfile.c: Fix common/ includes.
12828 * stap-probe.c: Fix common/ includes.
12829 * spu-linux-nat.c: Fix common/ includes.
12830 * sparc-nat.c: Fix common/ includes.
12831 * source.c: Fix common/ includes.
12832 * solib.c: Fix common/ includes.
12833 * solib-target.c: Fix common/ includes.
12834 * ser-unix.c: Fix common/ includes.
12835 * ser-tcp.c: Fix common/ includes.
12836 * ser-pipe.c: Fix common/ includes.
12837 * ser-base.c: Fix common/ includes.
12838 * selftest-arch.c: Fix common/ includes.
12839 * s12z-tdep.c: Fix common/ includes.
12840 * rust-exp.y: Fix common/ includes.
12841 * rs6000-aix-tdep.c: Fix common/ includes.
12842 * riscv-tdep.c: Fix common/ includes.
12843 * remote.c: Fix common/ includes.
12844 * remote-notif.h: Fix common/ includes.
12845 * remote-fileio.h: Fix common/ includes.
12846 * remote-fileio.c: Fix common/ includes.
12847 * regcache.h: Fix common/ includes.
12848 * regcache.c: Fix common/ includes.
12849 * record-btrace.c: Fix common/ includes.
12850 * python/python.c: Fix common/ includes.
12851 * python/py-type.c: Fix common/ includes.
12852 * python/py-inferior.c: Fix common/ includes.
12853 * progspace.h: Fix common/ includes.
12854 * producer.c: Fix common/ includes.
12855 * procfs.c: Fix common/ includes.
12856 * proc-api.c: Fix common/ includes.
12857 * printcmd.c: Fix common/ includes.
12858 * ppc-linux-nat.c: Fix common/ includes.
12859 * parser-defs.h: Fix common/ includes.
12860 * osdata.c: Fix common/ includes.
12861 * obsd-nat.c: Fix common/ includes.
12862 * nat/x86-linux.c: Fix common/ includes.
12863 * nat/x86-linux-dregs.c: Fix common/ includes.
12864 * nat/x86-dregs.h: Fix common/ includes.
12865 * nat/x86-dregs.c: Fix common/ includes.
12866 * nat/ppc-linux.c: Fix common/ includes.
12867 * nat/mips-linux-watch.h: Fix common/ includes.
12868 * nat/mips-linux-watch.c: Fix common/ includes.
12869 * nat/linux-waitpid.c: Fix common/ includes.
12870 * nat/linux-ptrace.h: Fix common/ includes.
12871 * nat/linux-ptrace.c: Fix common/ includes.
12872 * nat/linux-procfs.c: Fix common/ includes.
12873 * nat/linux-personality.c: Fix common/ includes.
12874 * nat/linux-osdata.c: Fix common/ includes.
12875 * nat/linux-namespaces.c: Fix common/ includes.
12876 * nat/linux-btrace.h: Fix common/ includes.
12877 * nat/linux-btrace.c: Fix common/ includes.
12878 * nat/fork-inferior.c: Fix common/ includes.
12879 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12880 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12881 * nat/aarch64-linux.c: Fix common/ includes.
12882 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12883 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12884 * namespace.h: Fix common/ includes.
12885 * mips-linux-tdep.c: Fix common/ includes.
12886 * minsyms.c: Fix common/ includes.
12887 * mi/mi-parse.h: Fix common/ includes.
12888 * mi/mi-main.c: Fix common/ includes.
12889 * mi/mi-cmd-env.c: Fix common/ includes.
12890 * memrange.h: Fix common/ includes.
12891 * memattr.c: Fix common/ includes.
12892 * maint.h: Fix common/ includes.
12893 * maint.c: Fix common/ includes.
12894 * main.c: Fix common/ includes.
12895 * machoread.c: Fix common/ includes.
12896 * location.c: Fix common/ includes.
12897 * linux-thread-db.c: Fix common/ includes.
12898 * linux-nat.c: Fix common/ includes.
12899 * linux-fork.c: Fix common/ includes.
12900 * inline-frame.c: Fix common/ includes.
12901 * infrun.c: Fix common/ includes.
12902 * inflow.c: Fix common/ includes.
12903 * inferior.h: Fix common/ includes.
12904 * inferior.c: Fix common/ includes.
12905 * infcmd.c: Fix common/ includes.
12906 * inf-ptrace.c: Fix common/ includes.
12907 * inf-child.c: Fix common/ includes.
12908 * ia64-linux-nat.c: Fix common/ includes.
12909 * i387-tdep.c: Fix common/ includes.
12910 * i386-tdep.c: Fix common/ includes.
12911 * i386-linux-tdep.c: Fix common/ includes.
12912 * i386-linux-nat.c: Fix common/ includes.
12913 * i386-go32-tdep.c: Fix common/ includes.
12914 * i386-fbsd-tdep.c: Fix common/ includes.
12915 * i386-fbsd-nat.c: Fix common/ includes.
12916 * guile/scm-type.c: Fix common/ includes.
12917 * guile/guile.c: Fix common/ includes.
12918 * go32-nat.c: Fix common/ includes.
12919 * gnu-nat.c: Fix common/ includes.
12920 * gdbthread.h: Fix common/ includes.
12921 * gdbarch-selftests.c: Fix common/ includes.
12922 * gdb_usleep.c: Fix common/ includes.
12923 * gdb_select.h: Fix common/ includes.
12924 * gdb_bfd.c: Fix common/ includes.
12925 * gcore.c: Fix common/ includes.
12926 * fork-child.c: Fix common/ includes.
12927 * findvar.c: Fix common/ includes.
12928 * fbsd-nat.c: Fix common/ includes.
12929 * event-top.c: Fix common/ includes.
12930 * event-loop.c: Fix common/ includes.
12931 * dwarf2read.c: Fix common/ includes.
12932 * dwarf2loc.c: Fix common/ includes.
12933 * dwarf2-frame.c: Fix common/ includes.
12934 * dwarf-index-cache.c: Fix common/ includes.
12935 * dtrace-probe.c: Fix common/ includes.
12936 * disasm-selftests.c: Fix common/ includes.
12937 * defs.h: Fix common/ includes.
12938 * csky-tdep.c: Fix common/ includes.
12939 * cp-valprint.c: Fix common/ includes.
12940 * cp-support.h: Fix common/ includes.
12941 * cp-support.c: Fix common/ includes.
12942 * corelow.c: Fix common/ includes.
12943 * completer.h: Fix common/ includes.
12944 * completer.c: Fix common/ includes.
12945 * compile/compile.c: Fix common/ includes.
12946 * compile/compile-loc2c.c: Fix common/ includes.
12947 * compile/compile-cplus-types.c: Fix common/ includes.
12948 * compile/compile-cplus-symbols.c: Fix common/ includes.
12949 * command.h: Fix common/ includes.
12950 * cli/cli-dump.c: Fix common/ includes.
12951 * cli/cli-cmds.c: Fix common/ includes.
12952 * charset.c: Fix common/ includes.
12953 * build-id.c: Fix common/ includes.
12954 * btrace.h: Fix common/ includes.
12955 * btrace.c: Fix common/ includes.
12956 * breakpoint.h: Fix common/ includes.
12957 * breakpoint.c: Fix common/ includes.
12958 * ax.h:
12959 (enum agent_op): Fix common/ includes.
12960 * ax-general.c (struct aop_map): Fix common/ includes.
12961 * ax-gdb.c: Fix common/ includes.
12962 * auxv.c: Fix common/ includes.
12963 * auto-load.c: Fix common/ includes.
12964 * arm-tdep.c: Fix common/ includes.
12965 * arch/riscv.c: Fix common/ includes.
12966 * arch/ppc-linux-common.c: Fix common/ includes.
12967 * arch/i386.c: Fix common/ includes.
12968 * arch/arm.c: Fix common/ includes.
12969 * arch/arm-linux.c: Fix common/ includes.
12970 * arch/arm-get-next-pcs.c: Fix common/ includes.
12971 * arch/amd64.c: Fix common/ includes.
12972 * arch/aarch64.c: Fix common/ includes.
12973 * arch/aarch64-insn.c: Fix common/ includes.
12974 * arch-utils.c: Fix common/ includes.
12975 * amd64-windows-tdep.c: Fix common/ includes.
12976 * amd64-tdep.c: Fix common/ includes.
12977 * amd64-sol2-tdep.c: Fix common/ includes.
12978 * amd64-obsd-tdep.c: Fix common/ includes.
12979 * amd64-nbsd-tdep.c: Fix common/ includes.
12980 * amd64-linux-tdep.c: Fix common/ includes.
12981 * amd64-linux-nat.c: Fix common/ includes.
12982 * amd64-fbsd-tdep.c: Fix common/ includes.
12983 * amd64-fbsd-nat.c: Fix common/ includes.
12984 * amd64-dicos-tdep.c: Fix common/ includes.
12985 * amd64-darwin-tdep.c: Fix common/ includes.
12986 * agent.c: Fix common/ includes.
12987 * ada-lang.h: Fix common/ includes.
12988 * ada-lang.c: Fix common/ includes.
12989 * aarch64-tdep.c: Fix common/ includes.
12990
2f5c153e
TT
129912019-01-25 Tom Tromey <tom@tromey.com>
12992
12993 * common/create-version.sh: Use common/version.h.
12994
adc6a863
PA
129952019-01-24 Pedro Alves <palves@redhat.com>
12996
12997 * infrun.c (signal_stop, signal_print, signal_program)
12998 (signal_catch, signal_pass): Now arrays instead of pointers.
12999 (update_signals_program_target, do_target_resume)
13000 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13001 * linux-nat.c (linux_nat_target::pass_signals)
13002 (linux_nat_target::create_inferior, linux_nat_target::attach):
13003 Adjust.
13004 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13005 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13006 * procfs.c (procfs_target::pass_signals): Adjust.
13007 * record-full.c (record_full_target::resume): Adjust.
13008 * remote.c (remote_target::pass_signals)
13009 (remote_target::program_signals): Adjust.
13010 * target-debug.h (target_debug_print_signals): Now takes a
13011 gdb::array_view as parameter. Adjust.
13012 * target.h (target_ops) <pass_signals, program_signals>: Replace
13013 pointer and length parameters with gdb::array_view.
13014 (target_pass_signals, target_program_signals): Likewise.
13015 * target-delegates.c: Regenerate.
13016
3046d67a
PA
130172019-01-24 Pedro Alves <palves@redhat.com>
13018
13019 * common/forward-scope-exit.h
13020 (forward_scope_exit::forward_scope_exit): Pass arguments to
13021 m_bind_function directly, instead of creating a std::bind and
13022 copying that.
13023
353229bf
AH
130242019-01-24 Alan Hayward <alan.hayward@arm.com>
13025
13026 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13027 for static members.
13028 (pass_in_v_vfp_candidate): Likewise.
13029
311dc83a
TT
130302019-01-23 Tom Tromey <tom@tromey.com>
13031 Pedro Alves <palves@redhat.com>
13032
13033 * regcache.c (class regcache_invalidator): Remove.
13034 (regcache::raw_write): Use make_scope_exit.
13035
296bd123
TT
130362019-01-23 Tom Tromey <tom@tromey.com>
13037
13038 * ui-out.h (class ui_out_emit_type): Update comment.
13039
979a0d13
TT
130402019-01-23 Tom Tromey <tom@tromey.com>
13041
13042 * infrun.c (fetch_inferior_event): Update comment.
13043
d238133d
TT
130442019-01-23 Tom Tromey <tom@tromey.com>
13045 Pedro Alves <palves@redhat.com>
13046
13047 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13048 parameter.
13049 (fetch_inferior_event): Use SCOPE_EXIT.
13050
13051
9885e6bb
TT
130522019-01-23 Tom Tromey <tom@tromey.com>
13053 Pedro Alves <palves@redhat.com>
13054
13055 * infrun.c (disable_thread_events): Delete.
13056 (stop_all_threads): Use SCOPE_EXIT.
13057
286526c1
TT
130582019-01-23 Tom Tromey <tom@tromey.com>
13059 Pedro Alves <palves@redhat.com>
13060
13061 * symfile.c: Include forward-scope-exit.h.
13062 (clear_symtab_users_cleanup): Replace forward declaration with
13063 a FORWARD_SCOPE_EXIT.
13064 (syms_from_objfile_1): Use the forward_scope_exit and
13065 gdb::optional instead of cleanup_function.
13066 (reread_symbols): Use the forward_scope_exit instead of
13067 cleanup_function.
13068 (clear_symtab_users_cleanup): Remove function.
13069
1db93f14
TT
130702019-01-23 Tom Tromey <tom@tromey.com>
13071 Pedro Alves <palves@redhat.com>
13072
13073 * linux-nat.c: Include scope-exit.h.
13074 (cleanup_target_stop): Remove.
13075 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13076 SCOPE_EXIT.
13077
2cc83d1e
TT
130782019-01-23 Tom Tromey <tom@tromey.com>
13079 Pedro Alves <palves@redhat.com>
13080
13081 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13082 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13083
694c6bf5
TT
130842019-01-23 Tom Tromey <tom@tromey.com>
13085 Andrew Burgess <andrew.burgess@embecosm.com>
13086 Pedro Alves <palves@redhat.com>
13087
13088 * infrun.c (fetch_inferior_event): Use scope_exit.
13089 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13090 * top.c (execute_command): Use scope_exit.
13091 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13092 * utils.c (do_bpstat_clear_actions_cleanup)
13093 (make_bpstat_clear_actions_cleanup): Remove.
13094
4c41382a
TT
130952019-01-23 Tom Tromey <tom@tromey.com>
13096 Pedro Alves <palves@redhat.com>
13097
13098 * infrun.c: Include "common/scope-exit.h"
13099 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13100 (wait_for_inferior): Use SCOPE_EXIT.
13101 (fetch_inferior_event): Use scope_exit.
13102
89f8fb50
TT
131032019-01-23 Tom Tromey <tom@tromey.com>
13104 Pedro Alves <palves@redhat.com>
13105
13106 * breakpoint.c (create_breakpoint): Remove cleanup.
13107
5419bdae
TT
131082019-01-23 Tom Tromey <tom@tromey.com>
13109 Andrew Burgess <andrew.burgess@embecosm.com>
13110 Pedro Alves <palves@redhat.com>
13111
e587ef42
PA
131122019-01-23 Pedro Alves <palves@redhat.com>
13113
13114 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13115
77f0e74c
PA
131162019-01-23 Pedro Alves <palves@redhat.com>
13117 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * gdbthread.h: Include "common/forward-scope-exit.h".
13120 (scoped_finish_thread_state): Redefine custom class in terms of
13121 forward_scope_exit.
13122
5b9b3e53
PA
131232019-01-23 Pedro Alves <palves@redhat.com>
13124 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * common/forward-scope-exit.h: New file.
13127
54b65c9b
PA
131282019-01-23 Pedro Alves <palves@redhat.com>
13129 Andrew Burgess <andrew.burgess@embecosm.com>
13130 Tom Tromey <tom@tromey.com>
13131
13132 * common/scope-exit.h: New file.
13133
cf08fb29
PA
131342019-01-23 Pedro Alves <palves@redhat.com>
13135
13136 * common/preprocessor.h (ESC): Rename to ...
13137 (ESC_PARENS): ... this.
13138 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13139 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13140
ae73e2e2
TT
131412019-01-23 Tom Tromey <tom@tromey.com>
13142
13143 * language.h (class scoped_switch_to_sym_language_if_auto):
13144 Initialize m_lang in both cases.
13145
6594e122
AH
131462019-01-23 Alan Hayward <alan.hayward@arm.com>
13147
13148 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13149 with XCNEW.
13150
a7c9855d
TT
131512019-01-22 Tom Tromey <tom@tromey.com>
13152
13153 * corelow.c: Do not include sys/file.h.
13154
93cc1d53
TT
131552019-01-22 Tom Tromey <tom@tromey.com>
13156
13157 * tui/tui-wingeneral.h: Include gdb_curses.h.
13158
38561778
TT
131592019-01-22 Tom Tromey <tom@tromey.com>
13160
13161 * source-cache.h (class source_cache) <get_source_lines,
13162 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13163
37b3ab5b
TT
131642019-01-22 Tom Tromey <tom@tromey.com>
13165
13166 * remote-fileio.h (struct remote_target): Declare.
13167
3fabc016
TT
131682019-01-22 Tom Tromey <tom@tromey.com>
13169
13170 * python/py-arch.c: Do not include py-ref.h.
13171 * python/py-bpevent.c: Do not include py-ref.h.
13172 * python/py-cmd.c: Do not include py-ref.h.
13173 * python/py-continueevent.c: Do not include py-ref.h.
13174 * python/py-event.h: Do not include py-ref.h.
13175 * python/py-evtregistry.c: Do not include py-ref.h.
13176 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13177 * python/py-frame.c: Do not include py-ref.h.
13178 * python/py-framefilter.c: Do not include py-ref.h.
13179 * python/py-function.c: Do not include py-ref.h.
13180 * python/py-infevents.c: Do not include py-ref.h.
13181 * python/py-linetable.c: Do not include py-ref.h.
13182 * python/py-objfile.c: Do not include py-ref.h.
13183 * python/py-param.c: Do not include py-ref.h.
13184 * python/py-prettyprint.c: Do not include py-ref.h.
13185 * python/py-progspace.c: Do not include py-ref.h.
13186 * python/py-symbol.c: Do not include py-ref.h.
13187 * python/py-symtab.c: Do not include py-ref.h.
13188 * python/py-type.c: Do not include py-ref.h.
13189 * python/py-unwind.c: Do not include py-ref.h.
13190 * python/py-utils.c: Do not include py-ref.h.
13191 * python/py-value.c: Do not include py-ref.h.
13192 * python/py-varobj.c: Do not include py-ref.h.
13193 * python/py-xmethods.c: Do not include py-ref.h.
13194 * python/python.c: Do not include py-ref.h.
13195 * varobj.c: Do not include py-ref.h.
13196
6b4d7774
TT
131972019-01-22 Tom Tromey <tom@tromey.com>
13198
13199 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13200 keyword for bcache.
13201
7af7e9b5
TT
132022019-01-22 Tom Tromey <tom@tromey.com>
13203
13204 * compile/compile-cplus-types.c: Remove a comment by #include.
13205
951d1049
TT
132062019-01-22 Tom Tromey <tom@tromey.com>
13207
13208 * compile/gcc-c-plugin.h: Include compile-internal.h.
13209
d65d5705
TT
132102019-01-22 Tom Tromey <tom@tromey.com>
13211
13212 * stabsread.c (EXTERN): Do not define.
13213 (symnum, next_symbol_text_func, processing_gcc_compilation)
13214 (within_function, global_sym_chain, global_stabs)
13215 (previous_stab_code, this_object_header_files)
13216 (n_this_object_header_files)
13217 (n_allocated_this_object_header_files): Define.
13218 * stabsread.h (EXTERN): Never define. Use "extern".
13219
b6fb1ee5
PW
132202019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13221
13222 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13223 history_value.
13224
be6d4f74
TT
132252019-01-21 Tom Tromey <tom@tromey.com>
13226
13227 * ui-out.c: Fix includes.
13228 * tui/tui-source.c: Fix includes.
13229 * target.c: Fix includes.
13230 * remote.c: Fix includes.
13231 * regcache.c: Fix includes.
13232 * python/py-block.c: Fix includes.
13233 * printcmd.c: Fix includes.
13234 * or1k-tdep.c: Fix includes.
13235 * mi/mi-main.c: Fix includes.
13236 * m32r-tdep.c: Fix includes.
13237 * csky-tdep.c: Fix includes.
13238 * compile/compile-cplus-types.c: Fix includes.
13239 * cli/cli-interp.c: Fix includes.
13240
73021deb
AH
132412019-01-21 Alan Hayward <alan.hayward@arm.com>
13242
13243 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13244 for padding.
13245
7932255d
TT
132462019-01-16 Tom Tromey <tom@tromey.com>
13247
13248 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13249 earlier.
13250 (struct objfile) <msymbols_range>: Move from top level.
13251 <msymbols>: New method.
13252 (class objfile_msymbols): Remove.
13253 * symtab.c (default_collect_symbol_completion_matches_break_on):
13254 Update.
13255 * symmisc.c (dump_msymbols): Update.
13256 * stabsread.c (scan_file_globals): Update.
13257 * objc-lang.c (info_selectors_command, info_classes_command)
13258 (find_methods): Update.
13259 * minsyms.c (find_solib_trampoline_target): Update.
13260 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13261 * coffread.c (coff_symfile_read): Update.
13262 * ada-lang.c (ada_lookup_simple_minsym)
13263 (ada_collect_symbol_completion_matches): Update.
13264
604b1bfb
TT
132652019-01-16 Tom Tromey <tom@tromey.com>
13266
13267 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13268 type. Remove no-argument constructor.
13269 <iterator::operator++>: Simplify.
13270 <begin>: Update.
13271 <end>: Use minimal_symbol_count.
13272
f252c6d5
TT
132732019-01-16 Tom Tromey <tom@tromey.com>
13274
13275 * objfiles.h (struct objfile) <psymtabs>: New method.
13276 (class objfile_psymtabs): Remove.
13277 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13278 typedef.
13279 <range>: New method.
13280 (require_partial_symbols): Change return type.
13281 * psymtab.c (require_partial_symbols)
13282 (psym_expand_symtabs_matching): Update.
13283 * mdebugread.c (parse_partial_symbols): Update.
13284 * dbxread.c (dbx_end_psymtab): Update.
13285
b669c953
TT
132862019-01-15 Tom Tromey <tom@tromey.com>
13287
13288 * symtab.c (lookup_objfile_from_block)
13289 (lookup_symbol_in_objfile_symtabs)
13290 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13291 (find_line_symtab, info_sources_command)
13292 (default_collect_symbol_completion_matches_break_on)
13293 (make_source_files_completion_list): Update.
13294 * symmisc.c (print_objfile_statistics, dump_objfile)
13295 (maintenance_print_symbols, maintenance_info_symtabs)
13296 (maintenance_check_symtabs, maintenance_info_line_tables):
13297 Update.
13298 * source.c (select_source_symtab)
13299 (forget_cached_source_info_for_objfile): Update.
13300 * objfiles.h (class objfile_compunits): Remove.
13301 (struct objfile) <compunits_range>: New typedef.
13302 (compunits): New method.
13303 * objfiles.c (objfile_relocate1): Update.
13304 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13305 * maint.c (count_symtabs_and_blocks): Update.
13306 * linespec.c (iterate_over_all_matching_symtabs): Update.
13307 * cp-support.c (add_symbol_overload_list_qualified): Update.
13308 * coffread.c (coff_symtab_read): Update.
13309 * ada-lang.c (add_nonlocal_symbols)
13310 (ada_collect_symbol_completion_matches)
13311 (ada_add_global_exceptions): Update.
13312
7e955d83
TT
133132019-01-15 Tom Tromey <tom@tromey.com>
13314
13315 * progspace.h (program_space) <objfiles_safe_range>: New
13316 typedef.
13317 <objfiles_safe>: New method.
13318 * objfiles.h (class all_objfiles_safe): Remove.
13319 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13320 * jit.c (jit_inferior_exit_hook): Update.
13321
2030c079
TT
133222019-01-17 Tom Tromey <tom@tromey.com>
13323
13324 * progspace.h (program_space) <objfiles_range>: New typedef.
13325 <objfiles>: New method.
13326 <objfiles_head>: Rename from objfiles.
13327 (object_files): Update.
13328 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13329 * guile/scm-pretty-print.c
13330 (ppscm_find_pretty_printer_from_objfiles): Update.
13331 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13332 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13333 Update.
13334 * python/py-progspace.c (pspy_get_objfiles): Update.
13335 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13336 Update.
13337 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13338 (objfpy_lookup_objfile_by_build_id): Update.
13339 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13340 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13341 Update.
13342 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13343 (expand_symtab_containing_pc, lookup_objfile_from_block)
13344 (lookup_static_symbol, basic_lookup_transparent_type)
13345 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13346 (find_line_symtab, info_sources_command)
13347 (default_collect_symbol_completion_matches_break_on)
13348 (make_source_files_completion_list, find_main_name): Update.
13349 * symmisc.c (print_symbol_bcache_statistics)
13350 (print_objfile_statistics, maintenance_print_symbols)
13351 (maintenance_print_msymbols, maintenance_print_objfiles)
13352 (maintenance_info_symtabs, maintenance_check_symtabs)
13353 (maintenance_expand_symtabs, maintenance_info_line_tables):
13354 Update.
13355 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13356 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13357 (map_overlay_command, unmap_overlay_command)
13358 (simple_overlay_update, expand_symtabs_matching)
13359 (map_symbol_filenames): Update.
13360 * symfile-debug.c (set_debug_symfile): Update.
13361 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13362 Update.
13363 * source.c (select_source_symtab, forget_cached_source_info):
13364 Update.
13365 * solib.c (solib_read_symbols): Update.
13366 * solib-spu.c (append_ocl_sos): Update.
13367 * psymtab.c (maintenance_print_psymbols)
13368 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13369 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13370 * printcmd.c (info_symbol_command): Update.
13371 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13372 Update.
13373 * objfiles.h (class all_objfiles): Remove.
13374 * objfiles.c (have_partial_symbols, have_full_symbols)
13375 (have_minimal_symbols, qsort_cmp, update_section_map)
13376 (shared_objfile_contains_address_p)
13377 (default_iterate_over_objfiles_in_search_order): Update.
13378 * objc-lang.c (info_selectors_command, info_classes_command)
13379 (find_methods): Update.
13380 * minsyms.c (find_solib_trampoline_target): Update.
13381 * maint.c (maintenance_info_sections)
13382 (maintenance_translate_address, count_symtabs_and_blocks):
13383 Update.
13384 * main.c (captured_main_1): Update.
13385 * linux-thread-db.c (try_thread_db_load_from_pdir)
13386 (has_libpthread): Update.
13387 * linespec.c (iterate_over_all_matching_symtabs)
13388 (search_minsyms_for_name): Update.
13389 * jit.c (jit_find_objf_with_entry_addr): Update.
13390 * hppa-tdep.c (find_unwind_entry)
13391 (hppa_lookup_stub_minimal_symbol): Update.
13392 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13393 Update.
13394 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13395 (elf_gnu_ifunc_resolve_by_got): Update.
13396 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13397 * dwarf-index-write.c (save_gdb_index_command): Update.
13398 * cp-support.c (add_symbol_overload_list_qualified): Update.
13399 * breakpoint.c (create_overlay_event_breakpoint)
13400 (create_longjmp_master_breakpoint)
13401 (create_std_terminate_master_breakpoint)
13402 (create_exception_master_breakpoint): Update.
13403 * blockframe.c (find_pc_partial_function): Update.
13404 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13405 (ada_collect_symbol_completion_matches)
13406 (ada_add_global_exceptions): Update.
13407
776489e0
TT
134082019-01-17 Tom Tromey <tom@tromey.com>
13409
13410 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13411 declare VEC.
13412 (solib_target_parse_libraries): Change return type.
13413 (library_list_start_segment, library_list_start_section)
13414 (library_list_end_library, library_list_start_library); Update.
13415 (solib_target_free_library_list): Remove.
13416 (solib_target_parse_libraries): Remove cleanup. Change return
13417 type.
13418 (solib_target_current_sos): Update.
13419
6471e7d2
TT
134202019-01-17 Tom Tromey <tromey@bapiya>
13421
13422 * valprint.c: Replace "the the" with "the".
13423 * symtab.c: Replace "the the" with "the".
13424 * solib.c: Replace "the the" with "the".
13425 * solib-dsbt.c: Replace "the the" with "the".
13426 * linespec.c: Replace "the the" with "the".
13427 * dwarf2loc.h: Replace "the the" with "the".
13428 * amd64-windows-tdep.c: Replace "the the" with "the".
13429 * aarch64-tdep.c: Replace "the the" with "the".
13430
c24bdb02
KS
134312019-01-16 Keith Seitz <keiths@redhat.com>
13432
13433 PR gdb/23773
13434 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13435 <builder>: Rename to ..
13436 <m_builder>: ... this and make private.
13437 (dwarf2_cu::get_builder): New method. Change all users of
13438 `builder' to use this method.
13439 (dwarf2_start_symtab): Move to ...
13440 (dwarf2_cu::start_symtab): ... here. Update all callers
13441 (setup_type_unit_groups): Move to ...
13442 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13443 callers.
13444 (dwarf2_cu::reset_builder): New method.
13445 (process_full_compunit, process_full_type_unit): Use
13446 dwarf2_cu::reset_builder.
13447 (follow_die_offset): Record the ancestor CU if it is different
13448 from the followed DIE's CU.
13449 (follow_die_sig_1): Likewise.
13450
8d64371b
TT
134512019-01-15 Tom Tromey <tom@tromey.com>
13452
13453 * remote.c (class remote_state) <buf>: Now a char_vector.
13454 <buf_size>: Remove.
13455 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13456 parameter.
13457 (remote_target::getpkt_or_notif_sane_1)
13458 (remote_target::getpkt_sane)
13459 (remote_target::getpkt_or_notif_sane): Likewise.
13460 (class remote_target) <putpkt>: New overload.
13461 (remote_target::read_frame): Change type of "buf_p". Remove
13462 sizeof_p parameter.
13463 (packet_ok): New overload.
13464 (packet_check_result): New overload.
13465 Update all uses.
13466
bb277751
TT
134672019-01-14 Tom Tromey <tom@tromey.com>
13468
13469 * remote-notif.c (handle_notification, remote_notif_ack)
13470 (remote_notif_parse): Make "buf" const.
13471 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13472 const.
13473 (remote_notif_parse, remote_notif_ack, handle_notification):
13474 Likewise.
13475 * remote.c (remote_notif_stop_parse): Make "buf" const.
13476 (remote_target::remote_parse_stop_reply): Make "buf" const.
13477 (remote_notif_stop_ack): Make "buf" const.
13478
05be00a8
TT
134792019-01-14 Tom Tromey <tom@tromey.com>
13480
13481 * remote.c (remote_console_output): Make parameter const.
13482
491adeca
TT
134832019-01-14 Tom Tromey <tom@tromey.com>
13484
13485 * target-debug.h (target_debug_print_signals): Constify.
13486 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13487 * procfs.c (procfs_target::pass_signals): Update.
13488 * linux-nat.c (linux_nat_target::pass_signals): Update.
13489 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13490 * target-delegates.c: Rebuild.
13491 * remote.c (remote_target::program_signals): Update.
13492 (remote_target::pass_signals): Update.
13493 * target.c (target_pass_signals): Constify argument.
13494 (target_program_signals): Likewise.
13495 * target.h (struct target_ops) <pass_signals, program_signals>:
13496 Constify argument.
13497 (target_pass_signals, target_program_signals): Constify argument.
13498
bbd94648
TT
134992019-01-14 Tom Tromey <tom@tromey.com>
13500
13501 PR tui/28819:
13502 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13503
6f072a10
PFC
135042019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13505
13506 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13507 field.
13508 * rs6000-tdep.c: Include reggroups.h.
13509 (IS_V_ALIAS_PSEUDOREG): Define.
13510 (rs6000_register_name): Return names for the "vX" aliases.
13511 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13512 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13513 aliases. Call default_register_reggroup_p for all other
13514 pseudo-registers.
13515 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13516 New functions.
13517 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13518 Handle "vX" aliases.
13519 (v_alias_pseudo_register_collect): New function.
13520 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13521 (rs6000_gdbarch_init): Initialize "vX" aliases as
13522 pseudo-registers. Restore registration of
13523 rs6000_pseudo_register_reggroup_p with
13524 set_tdesc_pseudo_register_reggroup_p.
13525
1a782351
MF
135262019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13527
13528 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13529 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13530 set_gdbarch_num_pseudo_regs.
13531
d73cff18
PW
135322019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13533
13534 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13535 Remove arg prefixname, add do_set and do_show.
13536 Add member functions set_list and show_list.
13537 * cli/cli-style.c (class cli_style_option): Update accordingly.
13538 (style_set_list): Move to file scope.
13539 (style_show_list): Likewise.
13540 (set_style): Call help_list.
13541 (show_style): Call cmd_show_list.
13542 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13543 Update to use the new macro.
13544
60a90376
JB
135452019-10-12 Joel Brobecker <brobecker@adacore.com>
13546
13547 * ada-lang.c (_initialize_ada_language): Expand the help text
13548 for the "catch exception" command.
13549
9d7c67bf
PW
135502019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13551
13552 * symtab.c (matching_obj_sections): Initialize obj,
13553 declare it closer to its usage.
13554
7cf47dc4
TT
135552019-01-10 Tom Tromey <tom@tromey.com>
13556
13557 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13558 (basic_inf_threads_range): Remove.
13559 (inf_threads_range, inf_non_exited_threads_range)
13560 (safe_inf_threads_range): Use next_adapter.
13561
d3cb6808
KS
135622019-01-10 Keith Seitz <keiths@redhat.com>
13563
13564 PR gdb/23712
13565 PR symtab/23010
13566 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13567 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13568
63a20375
KS
135692019-01-10 Keith Seitz <keiths@redhat.com>
13570
13571 PR gdb/23712
13572 PR symtab/23010
13573 * dictionary.c (pending_to_vector): Remove.
13574 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13575 Remove _1 suffix, replacing functions of the same name. Update
13576 all callers.
13577 (dict_create_hashed, dict_create_hashed_expandable)
13578 (dict_create_linear, dict_create_linear_expandable, dict_free)
13579 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13580 Make functions static.
13581
b026f593
KS
135822019-01-10 Keith Seitz <keiths@redhat.com>
13583
13584 PR gdb/23712
13585 PR symtab/23010
13586 * dictionary.h (struct dictionary): Replace declaration with
13587 multidictionary.
13588 (dict_create_hashed, dict_create_hashed_expandable)
13589 (dict_create_linear, dict_create_linear_expandable)
13590 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13591 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13592 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13593 taking multidictionary argument.
13594 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13595 * block.h (struct block) <dict>: Change to multidictionary
13596 and rename `multidict'.
13597 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13598 symmisc.c: Update all dictionary references to multidictionary.
13599
c7748ee9
KS
136002019-01-10 Keith Seitz <keiths@redhat.com>
13601
13602 PR gdb/23712
13603 PR symtab/23010
13604 * dictionary.c: Include unordered_map.
13605 (pending_to_vector): New function.
13606 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13607 Rewrite the non-"_1" functions to take vector instead
13608 of linked list.
13609 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13610 "new" _1 versions of the same name.
13611 (multidictionary): Define.
13612 (std::hash<enum language): New definition.
13613 (collate_pending_symbols_by_language, mdict_create_hashed)
13614 (mdict_create_hashed_expandable, mdict_create_linear)
13615 (mdict_create_linear_expandable, mdict_free)
13616 (find_language_dictionary, create_new_language_dictionary)
13617 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13618 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13619 (mdict_size, mdict_empty): New functions.
13620 * dictionary.h (mdict_iterator): Define.
13621
67aa1f3c
PA
136222019-01-10 Pedro Alves <palves@redhat.com>
13623
13624 * breakpoint.c (read_uploaded_action)
13625 (create_tracepoint_from_upload): Adjust to use
13626 gdb::unique_xmalloc_ptr.
13627 * ctf.c (ctf_write_uploaded_tp):
13628 (SET_ARRAY_FIELD): Use emplace_back.
13629 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13630 * tracefile-tfile.c (tfile_write_uploaded_tp):
13631 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13632 gdb::unique_xmalloc_ptr.
13633 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13634 at_string, cond_string, cmd_strings>: Replace char pointers
13635 with gdb::unique_xmalloc_ptr.
13636
2f667667
PA
136372019-01-10 Pedro Alves <palves@redhat.com>
13638
13639 * solib-target.c (library_list_start_library): Don't xstrdup name.
13640
36cb7237
PA
136412019-01-10 Pedro Alves <palves@redhat.com>
13642
13643 * mdebugread.c (parse_partial_symbols): Use
13644 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13645
da584958
AB
136462019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13647
13648 * linux-fork.c (scoped_switch_fork_info)
13649 <~scoped_switch_fork_info>: Fix incorrect variable name.
13650
1ef8573c
AB
136512019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13652
13653 * linux-fork.c (scoped_switch_fork_info)
13654 <scoped_switch_fork_info>: Make explicit.
13655 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13656
8d7bcccb
TT
136572019-01-10 Tom Tromey <tom@tromey.com>
13658
13659 * objfiles.h (objfile::reset_psymtabs): Update.
13660 * objfiles.c (objfile::objfile): Update.
13661 * psymtab.h (psymtab_storage::obstack): Update.
13662 (psymtab_storage::m_obstack): Use gdb::optional.
13663 (class psymtab_storage): Update comment. Remove objfile
13664 parameter.
13665 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13666
b596a3c7
TT
136672019-01-10 Tom Tromey <tom@tromey.com>
13668
13669 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13670 <free_psymtabs>: Now private.
13671 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13672 (allocate_psymtab): Use new method.
13673
a9342b62
TT
136742019-01-10 Tom Tromey <tom@tromey.com>
13675
13676 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13677 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13678 * mdebugread.c (parse_partial_symbols): Use
13679 allocate_dependencies.
13680 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13681 allocate_dependencies.
13682 (process_psymtab_comp_unit_reader)
13683 (build_type_psymtab_dependencies): Likewise.
13684 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13685
5af70966
TT
136862019-01-10 Tom Tromey <tom@tromey.com>
13687
13688 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13689 PSYMBOL_SET_LANGUAGE.
13690 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13691
5923a04c
TT
136922019-01-10 Tom Tromey <tom@tromey.com>
13693
13694 * psymtab.h (psymtab_storage::obstack): New method.
13695 <m_obstack>: Rename from obstack; now private.
13696 * psymtab.c (psymtab_storage): Update.
13697 * dwarf2read.c (create_addrmap_from_index)
13698 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13699 Update.
13700
6d6a12bf
TT
137012019-01-10 Tom Tromey <tom@tromey.com>
13702
13703 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13704 * objfiles.h (objfile::reset_psymtabs): New method.
13705
d320c2b5
TT
137062019-01-10 Tom Tromey <tom@tromey.com>
13707
13708 * symmisc.c (print_symbol_bcache_statistics): Update.
13709 (print_objfile_statistics): Update.
13710 * symfile.c (reread_symbols): Update.
13711 * psymtab.h (class psymtab_storage): New.
13712 * psymtab.c (psymtab_storage): New constructor.
13713 (~psymtab_storage): New destructor.
13714 (require_partial_symbols): Update.
13715 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13716 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13717 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13718 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13719 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13720 (start_psymtab_common, end_psymtab_common)
13721 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13722 (allocate_psymtab): Update.
13723 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13724 Update.
13725 (dump_psymtab_addrmap, maintenance_print_psymbols)
13726 (maintenance_check_psymtabs): Update.
13727 (class objfile_psymtabs): Move to objfiles.h.
13728 * psympriv.h (discard_psymtab): Now inline.
13729 (psymtab_discarder::psymtab_discarder): Update.
13730 (psymtab_discarder::~psymtab_discarder): Update.
13731 (ALL_OBJFILE_PSYMTABS): Rewrite.
13732 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13733 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13734 Remove fields.
13735 <partial_symtabs>: New field.
13736 (class objfile_psymtabs): Move from psymtab.h. Update.
13737 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13738 psymbol_cache.
13739 (objfile::~objfile): Don't destroy psymbol_cache.
13740 * mdebugread.c (parse_partial_symbols): Update.
13741 * dwarf2read.c (create_addrmap_from_index)
13742 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13743 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13744 (add_partial_subprogram, dwarf2_ranges_read): Update.
13745 * dwarf-index-write.c (write_address_map)
13746 (write_one_signatured_type, recursively_write_psymbols)
13747 (class debug_names, class debug_names, write_psymtabs_to_index):
13748 Update.
13749
1d94a5a3
TT
137502019-01-10 Tom Tromey <tom@tromey.com>
13751
13752 * symtab.h (SYMBOL_SET_NAMES): Update.
13753 (symbol_set_names): Update.
13754 (MSYMBOL_SET_NAMES): Update.
13755 * symtab.c (symbol_set_names): Change argument to be an
13756 objfile_per_bfd_storage.
13757 * psymtab.c (add_psymbol_to_bcache): Update.
13758 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13759
0f14768a
TT
137602019-01-10 Tom Tromey <tom@tromey.com>
13761
13762 * symtab.c (create_demangled_names_hash): Change argument to be an
13763 objfile_per_bfd_storage.
13764 (symbol_set_names): Update.
13765
6eee24ce
TT
137662019-01-10 Tom Tromey <tom@tromey.com>
13767
13768 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13769 init_psymbol_list.
13770 * psymtab.c (init_psymbol_list): Do nothing if already called.
13771 * psympriv.h (init_psymbol_list): Add comment.
13772 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13773 init_psymbol_list.
13774 * dbxread.c (dbx_symfile_read): Unconditionally call
13775 init_psymbol_list.
13776
75aedd27
TT
137772019-01-10 Tom Tromey <tom@tromey.com>
13778
13779 * xcoffread.c (scan_xcoff_symtab): Update.
13780 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13781 "where".
13782 * mdebugread.c (parse_partial_symbols)
13783 (handle_psymbol_enumerators): Update.
13784 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13785 * dbxread.c (read_dbx_symtab): Update.
13786 * psympriv.h (psymbol_placement): New enum.
13787 (add_psymbol_to_list): Update.
13788
939652a5
TT
137892019-01-10 Tom Tromey <tom@tromey.com>
13790
13791 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13792 static_psymbols parameters.
13793 (scan_xcoff_symtab): Update.
13794 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13795 static_psymbols parameters.
13796 * psympriv.h (start_psymtab_common): Update.
13797 * mdebugread.c (parse_partial_symbols): Update.
13798 * dwarf2read.c (create_partial_symtab): Update.
13799 * dbxread.c (read_dbx_symtab): Update.
13800 (start_psymtab): Remove global_psymbols and static_psymbols
13801 parameters.
13802
baa62830
TT
138032019-01-10 Tom Tromey <tom@tromey.com>
13804
13805 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13806 * psymtab.c (allocate_psymtab): Add comment.
13807 * psympriv.h (allocate_psymtab): Add comment.
13808 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13809 initializations.
13810 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13811
0e8f53ba
TT
138122019-01-10 Tom Tromey <tom@tromey.com>
13813
13814 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13815 Don't declare.
13816 * mipsread.c: Include mdebugread.h.
13817 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13818 Declare.
13819 * elfread.c: Include mdebugread.h.
13820
b22a7c6a
TT
138212019-01-09 Tom Tromey <tom@tromey.com>
13822
13823 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13824 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13825 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13826 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13827 (psym_lookup_symbol, psym_find_last_source_symtab)
13828 (psym_forget_cached_source_info, psym_print_stats)
13829 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13830 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13831 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13832 (psym_find_compunit_symtab_by_address)
13833 (maintenance_print_psymbols, maintenance_info_psymtabs)
13834 (maintenance_check_psymtabs): Use ranged for.
13835 * psymtab.h (class objfile_psymtabs): New.
13836 (require_partial_symbols): Return objfile_psymtabs.
13837 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13838
3b9d3ac2
TT
138392019-01-09 Tom Tromey <tom@tromey.com>
13840
13841 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13842 (find_pc_mapped_section, list_overlays_command)
13843 (map_overlay_command, unmap_overlay_command)
13844 (simple_overlay_update): Use all_objfiles.
13845 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13846 * printcmd.c (info_symbol_command): Use all_objfiles.
13847 * objfiles.h (ALL_OBJSECTIONS): Remove.
13848 * maint.c (maintenance_translate_address): Use all_objfiles.
13849 * gcore.c (gcore_create_callback): Use all_objfiles.
13850 (objfile_find_memory_regions): Likewise.
13851
8b31193a
TT
138522019-01-09 Tom Tromey <tom@tromey.com>
13853
13854 * symtab.c (find_line_symtab, info_sources_command)
13855 (make_source_files_completion_list): Use objfile_compunits.
13856 * source.c (select_source_symtab): Use objfile_compunits.
13857 * objfiles.h (struct objfile): Update comment.
13858 (ALL_OBJFILES): Remove.
13859 (ALL_FILETABS): Remove.
13860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13861 objfile_compunits.
13862
d5da8b3c
TT
138632019-01-09 Tom Tromey <tom@tromey.com>
13864
13865 * symmisc.c (print_objfile_statistics, dump_objfile)
13866 (maintenance_print_symbols): Use compunit_filetabs.
13867 * source.c (forget_cached_source_info_for_objfile): Use
13868 compunit_filetabs.
13869 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13870 (ALL_FILETABS): Use compunit_filetabs.
13871 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13872 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13873
5accd1a0
TT
138742019-01-09 Tom Tromey <tom@tromey.com>
13875
13876 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13877 (compunit_filetabs): New.
13878 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13879 compunit_filetabs.
13880 (info_sources_command, make_source_files_completion_list): Remove
13881 declaration.
13882 * symmisc.c (print_objfile_statistics, dump_objfile)
13883 (maintenance_print_symbols): Remove declaration.
13884 (maintenance_info_symtabs): Use compunit_filetabs.
13885 (maintenance_info_line_tables): Likewise.
13886 * source.c (select_source_symtab): Change local variable name.
13887 (forget_cached_source_info_for_objfile): Remove declaration.
13888 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13889 * objfiles.c (objfile_relocate1): Remove declaration.
13890 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13891 declaration.
13892 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13893 * coffread.c (coff_symtab_read): Remove declaration.
13894 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13895 compunit_filetabs.
13896
d8aeb77f
TT
138972019-01-09 Tom Tromey <tom@tromey.com>
13898
13899 * symtab.c (lookup_objfile_from_block)
13900 (find_pc_sect_compunit_symtab, search_symbols)
13901 (default_collect_symbol_completion_matches_break_on): Use
13902 objfile_compunits.
13903 * objfiles.h (ALL_COMPUNITS): Remove.
13904 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13905 * cp-support.c (add_symbol_overload_list_qualified): Use
13906 objfile_compunits.
13907 * ada-lang.c (ada_collect_symbol_completion_matches)
13908 (ada_add_global_exceptions): Use objfile_compunits.
13909
592553c4
TT
139102019-01-09 Tom Tromey <tom@tromey.com>
13911
13912 * source.c (select_source_symtab)
13913 (forget_cached_source_info_for_objfile): Remove declaration.
13914 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13915 declaration.
13916 * maint.c (count_symtabs_and_blocks): Remove declaration.
13917 * cp-support.c (add_symbol_overload_list_qualified): Remove
13918 declaration.
13919 * coffread.c (coff_symtab_read): Remove declaration.
13920 * symtab.c (lookup_symbol_in_objfile_symtabs)
13921 (basic_lookup_transparent_type_1): Use objfile_compunits.
13922 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13923 (info_sources_command, search_symbols)
13924 (default_collect_symbol_completion_matches_break_on)
13925 (make_source_files_completion_list): Remove declaration.
13926 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13927 (ada_collect_symbol_completion_matches)
13928 (ada_add_global_exceptions): Remove declaration.
13929 * linespec.c (iterate_over_all_matching_symtabs): Use
13930 objfile_compunits.
13931 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13932 (class objfile_compunits): New.
13933 (ALL_COMPUNITS): Use objfile_compunits.
13934 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13935 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13936 objfile_compunits.
13937 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13938
5325b9bf
TT
139392019-01-09 Tom Tromey <tom@tromey.com>
13940
13941 * symtab.c (search_symbols)
13942 (default_collect_symbol_completion_matches_break_on): Use
13943 objfile_msymbols.
13944 * ada-lang.c (ada_lookup_simple_minsym)
13945 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13946 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13947 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13948 objfile_msymbols.
13949 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13950 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13951 * objc-lang.c (find_methods): Use objfile_msymbols.
13952 (info_selectors_command, info_classes_command): Likewise.
13953 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13954 * objfiles.h (class objfile_msymbols): New.
13955 (ALL_OBJFILE_MSYMBOLS): Remove.
13956 (ALL_MSYMBOLS): Remove.
13957
cac85af2
TT
139582019-01-09 Tom Tromey <tom@tromey.com>
13959
13960 * common/next-iterator.h (next_adapter): Add Iterator template
13961 parameter.
13962 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13963 (class all_objfiles_safe): New.
13964 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13965 * objfiles.c (put_objfile_before): Update comment.
13966 (add_separate_debug_objfile): Likewise.
13967 (free_all_objfiles): Use all_objfiles_safe.
13968 (objfile_purge_solibs): Likewise.
13969
aed57c53
TT
139702019-01-09 Tom Tromey <tom@tromey.com>
13971
13972 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13973 (expand_symtab_containing_pc, lookup_static_symbol)
13974 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13975 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13976 all_objfiles.
13977 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13978 * breakpoint.c (create_overlay_event_breakpoint)
13979 (create_longjmp_master_breakpoint)
13980 (create_std_terminate_master_breakpoint)
13981 (create_exception_master_breakpoint): Use all_objfiles.
13982 * linux-thread-db.c (try_thread_db_load_from_pdir)
13983 (has_libpthread): Use all_objfiles.
13984 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13985 * linespec.c (iterate_over_all_matching_symtabs)
13986 (search_minsyms_for_name): Use all_objfiles.
13987 * maint.c (maintenance_info_sections): Use all_objfiles.
13988 * main.c (captured_main_1): Use all_objfiles.
13989 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13990 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13991 * guile/scm-pretty-print.c
13992 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13993 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13994 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13995 (maintenance_print_msymbols): Use all_objfiles.
13996 * source.c (select_source_symtab): Use all_objfiles.
13997 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13998 * symfile.c (remove_symbol_file_command)
13999 (expand_symtabs_matching, map_symbol_filenames): Use
14000 all_objfiles.
14001 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14002 all_objfiles.
14003 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14004 * objc-lang.c (find_methods): Use all_objfiles.
14005 * objfiles.c (have_partial_symbols, have_full_symbols)
14006 (have_minimal_symbols, qsort_cmp)
14007 (default_iterate_over_objfiles_in_search_order): Use
14008 all_objfiles.
14009 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14010 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14011 (maintenance_check_psymtabs): Use all_objfiles.
14012 (ALL_PSYMTABS): Remove.
14013 * compile/compile-object-run.c (do_module_cleanup): Use
14014 all_objfiles.
14015 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14016 * cp-support.c (add_symbol_overload_list_qualified): Use
14017 all_objfiles.
14018 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14019 Use all_objfiles.
14020 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14021 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14022 all_objfiles.
14023 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14024 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14025 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14026 Uses all_objfiles.
14027 * solib.c (solib_read_symbols): Use all_objfiles
14028
99d89cde
TT
140292019-01-09 Tom Tromey <tom@tromey.com>
14030
14031 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14032 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14033 all_objfiles.
14034 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14035 * symmisc.c (print_symbol_bcache_statistics)
14036 (print_objfile_statistics, maintenance_print_objfiles)
14037 (maintenance_info_symtabs, maintenance_check_symtabs)
14038 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14039 all_objfiles.
14040 * source.c (forget_cached_source_info): Use all_objfiles.
14041 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14042 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14043 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14044 * objfiles.c (update_section_map): Use all_objfiles.
14045 (shared_objfile_contains_address_p): Likewise.
14046 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14047 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14048
21708325
TT
140492019-01-09 Tom Tromey <tom@tromey.com>
14050
14051 * common/next-iterator.h: New file.
14052 * objfiles.h (class all_objfiles): New.
14053 (struct objfile_iterator): New.
14054
669e09f6
PW
140552019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14056
14057 * NEWS: Move the description of the changed "frame", "select-frame",
14058 and "info frame" commands to the Changed commands section.
14059
041be526
SM
140602019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14061
14062 * gdbtypes.c (check_stub_method_group): Remove handling of old
14063 mangling schemes.
14064 * linespec.c (find_methods): Likewise.
14065 * stabsread.c (read_member_functions): Likewise.
14066 * valops.c (search_struct_method): Likewise.
14067 (value_struct_elt_for_reference): Likewise.
14068 * NEWS: Mention this change.
14069
0e2a2133
AB
140702019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14071
14072 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14073 print_source_lines.
14074 * source.c (print_source_lines_base): Update line number check.
14075 (print_source_lines): New function.
14076 (source_lines_range::source_lines_range): New function.
14077 * source.h (class source_lines_range): New class.
14078 (print_source_lines): New declaration.
14079
1055a3b4
PW
140802019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14081
14082 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14083
cfeadda5
TT
140842019-01-08 Tom Tromey <tom@tromey.com>
14085 Simon Marchi <simon.marchi@ericsson.com>
14086
14087 PR gdb/24060
14088 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14089 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14090 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14091 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14092 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14093 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14094
583068ca
AB
140952019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14096
14097 * source.c (select_source_symtab): Move header comment to
14098 declaration in source.h.
14099 (forget_cached_source_info_for_objfile): Likewise.
14100 (forget_cached_source_info): Likewise.
14101 (identify_source_line): Likewise.
14102 * source.h (identify_source_line): Move declaration from symtab.h
14103 and add comment from source.c
14104 (print_source_lines): Likewise.
14105 (forget_cached_source_info_for_objfile): Likewise.
14106 (forget_cached_source_info): Likewise.
14107 (select_source_symtab): Likewise.
14108 (enum print_source_lines_flag): Move definition from symtab.h.
14109 * symtab.h (identify_source_line): Move declaration to source.h.
14110 (print_source_lines): Likewise.
14111 (forget_cached_source_info_for_objfile): Likewise.
14112 (forget_cached_source_info): Likewise.
14113 (select_source_symtab): Likewise.
14114 (enum print_source_lines_flag): Move definition to source.h.
14115 * tui/tui-hooks.c: Add 'source.h' include.
14116
ec98a4ad
AB
141172019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14118
14119 * source.c (print_source_lines_base): Handle requests to print
14120 reverse line number sequences, and guard against empty lines
14121 string.
14122
62ea19c1
AB
141232019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14124
14125 * source.c (print_source_lines_base): Fix skip of '\r' if next
14126 character is '\n'.
14127
9d30e1fd
TT
141282019-01-06 Tom Tromey <tom@tromey.com>
14129
14130 * c-exp.y (struct c_parse_state) <macro_original_text,
14131 expansion_obstack>: New member.
14132 (macro_original_text, expansion_obstack): Remove globals.
14133 (scan_macro_expansion, scanning_macro_expansion)
14134 (finished_macro_expansion): Update.
14135 (scan_macro_cleanup): Remove.
14136 (yylex, c_parse): Update.
14137
c65bac38
TT
141382019-01-06 Tom Tromey <tom@tromey.com>
14139
14140 * c-exp.y (struct c_parse_state) <strings>: New member.
14141 (operator_stoken): Update.
14142
02e12e38
TT
141432019-01-06 Tom Tromey <tom@tromey.com>
14144
14145 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14146 (union type_stack_elt) <typelist_val>: Now a pointer to
14147 std::vector.
14148 (type_stack_cleanup): Don't declare.
14149 (push_typelist): Update.
14150 * parse.c (pop_typelist): Return a std::vector.
14151 (push_typelist): Take a std::vector.
14152 (follow_types): Update. Do not free args.
14153 (type_stack_cleanup): Remove.
14154 * c-exp.y (struct c_parse_state): New.
14155 (cpstate): New global.
14156 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14157 (nonempty_typelist): Update.
14158 (func_mod): Create a new vector.
14159 (c_parse): Create a c_parse_state.
14160 (check_parameter_typelist): Do not delete params.
14161 (function_method): Update. Do not delete type_list.
14162
f097f5ad
TT
141632019-01-06 Tom Tromey <tom@tromey.com>
14164
14165 PR gdb/28155:
14166 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14167 check_typedef.
14168 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14169 (print_return_value): Likewise.
14170
d2adf9f1
TT
141712019-01-05 Tom Tromey <tom@tromey.com>
14172
14173 * contrib/cleanup_check.py: Remove.
14174 * contrib/gcc-with-excheck: Remove.
14175 * contrib/exsummary.py: Remove.
14176 * contrib/excheck.py: Remove.
14177
2eab46b1
JB
141782019-01-05 Joel Brobecker <brobecker@adacore.com>
14179
14180 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14181 NULL. Initialize tpprev to NULL instead of assigning it
14182 to NULL on the next statement.
14183 * windows-nat.c (windows_delete_thread): Remove check for
14184 main_thread_id before printing thread exit notifications.
14185 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14186 Remove thread ID check against main_thread_id.
14187 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14188 windows_delete_thread.
14189 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14190
48c5e7e2
TT
141912019-01-04 Tom Tromey <tom@tromey.com>
14192
14193 * compile/compile.c (_initialize_compile): Use upper case for
14194 metasyntactic variables.
14195 * symmisc.c (_initialize_symmisc): Use upper case for
14196 metasyntactic variables.
14197 * psymtab.c (_initialize_psymtab): Use upper case for
14198 metasyntactic variables.
14199 * demangle.c (demangle_command): Use upper case for metasyntactic
14200 variables.
14201 (_initialize_demangler): Likewise.
14202 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14203 variables.
14204
986041cd
TT
142052019-01-03 Tom Tromey <tom@tromey.com>
14206
14207 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14208
7c711119
TT
142092019-01-03 Tom Tromey <tom@tromey.com>
14210
14211 * python/py-symtab.c (salpy_str): Update.
14212 (struct salpy_sal_object) <symtab>: Now a PyObject.
14213 (salpy_dealloc): Update.
14214 (del_objfile_sal): Use gdbpy_ref.
14215
1b20edf0
TT
142162019-01-03 Tom Tromey <tom@tromey.com>
14217
14218 * python/py-type.c (convert_field): Use new_reference. Return
14219 gdbpy_ref.
14220 (make_fielditem): Return gdbpy_ref.
14221 (typy_fields): Update.
14222 (typy_getitem): Update.
14223 (field_name): Return gdbpy_ref. Use new_reference.
14224 (typy_iterator_iternext): Update.
14225
ea41325b
TT
142262019-01-03 Tom Tromey <tom@tromey.com>
14227
14228 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14229
2a3c71d6
TT
142302019-01-03 Tom Tromey <tom@tromey.com>
14231
14232 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14233 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14234 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14235 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14236 (pspy_set_type_printers): Likewise.
14237 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14238 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14239 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14240 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14241 (objfpy_set_type_printers): Likewise.
14242
5c329e6a
TT
142432019-01-03 Tom Tromey <tom@tromey.com>
14244
14245 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14246 (gdbpy_print_stack): Use gdbpy_err_fetch.
14247 * python/python-internal.h (class gdbpy_err_fetch): New class.
14248 (class gdbpy_enter) <m_error_type, m_error_value,
14249 m_error_traceback>: Remove.
14250 <m_error>: New member.
14251 (gdbpy_exception_to_string): Don't declare.
14252 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14253 * python/py-value.c (convert_value_from_python): Use
14254 gdbpy_err_fetch.
14255 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14256 gdbpy_exception_to_string.
14257 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14258 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14259 gdbpy_err_fetch.
14260
169bb27b
AB
142612019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14262
14263 * linux-nat.c (delete_lwp_cleanup): Delete.
14264 (struct lwp_deleter): New struct.
14265 (lwp_info_up): New typedef.
14266 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14267 lwp_info_up.
14268
a07c8880
AB
142692019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14270
14271 * linux-fork.c (class scoped_switch_fork_info): New class.
14272 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14273
26089c49
AB
142742019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14275
14276 * valops.c (find_overload_match): Remove use of null_cleanup, and
14277 calls to do_cleanups.
14278
06d3e5b0
AB
142792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14280
14281 * compile/compile-cplus-types.c
14282 (compile_cplus_instance::decl_name): Handle changes to
14283 cp_func_name.
14284 * cp-support.c (cp_func_name): Update header comment, update
14285 return type.
14286 * cp-support.h (cp_func_name): Update return type in declaration.
14287 * valops.c (find_overload_match): Move temp_func local to top
14288 level of function and change its type. Use temp_func to hold and
14289 delete temporary string obtained from cp_func_name.
14290
66644cd3
AB
142912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14292
14293 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14294 gdb::char_vector, remove cleanup, and update uses of `msg`.
14295
592d8c0a
JW
142962019-01-03 Jim Wilson <jimw@sifive.com>
14297
14298 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14299
c55d06ec
TT
143002019-01-02 Tom Tromey <tom@tromey.com>
14301
14302 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14303 (tdesc_parse_xml): Remove cleanups.
14304 * target-descriptions.h (make_cleanup_free_target_description):
14305 Don't declare.
14306 (target_desc_deleter): New struct.
14307 (target_desc_up): New typedef.
14308 * target-descriptions.c (target_desc_deleter::operator()): Rename
14309 from free_target_description.
14310 (make_cleanup_free_target_description): Remove.
14311
3a6ae42d
TT
143122019-01-02 Tom Tromey <tom@tromey.com>
14313
14314 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14315 constructor, destructor.
14316 (linespec_parser): Remove typedef.
14317 (~linespec_parser): Rename from linespec_parser_delete.
14318 (linespec_lex_to_end, linespec_complete_label)
14319 (linespec_complete): Update.
14320 (decode_line_full): Remove cleanups.
14321 (decode_line_1): Update.
14322
61fd3e73
TT
143232019-01-02 Tom Tromey <tom@tromey.com>
14324
14325 * python/python-internal.h (inferior_to_inferior_object): Change
14326 return type.
14327 * python/py-exitedevent.c (create_exited_event_object): Update.
14328 * python/py-inferior.c (inferior_to_inferior_object): Return
14329 gdbpy_ref.
14330 (python_new_inferior, python_inferior_deleted)
14331 (thread_to_thread_object, delete_thread_object)
14332 (build_inferior_list, gdbpy_selected_inferior): Update.
14333 * python/py-infthread.c (create_thread_object): Update. Also fail
14334 if inferior_to_inferior_object fails.
14335
d20172fc
SM
143362019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14337
14338 * inferior.h (class inferior) <displaced_step_state>: New field.
14339 * infrun.h (struct displaced_step_state): Move here from
14340 infrun.c. Initialize fields, add constructor.
14341 <inf>: Remove field.
14342 <reset>: New method.
14343 * infrun.c (struct displaced_step_inferior_state): Move to
14344 infrun.h.
14345 (displaced_step_inferior_states): Remove.
14346 (get_displaced_stepping_state): Adust.
14347 (displaced_step_in_progress_any_inferior): Adjust.
14348 (displaced_step_in_progress_thread): Adjust.
14349 (displaced_step_in_progress): Adjust.
14350 (add_displaced_stepping_state): Remove.
14351 (get_displaced_step_closure_by_addr): Adjust.
14352 (remove_displaced_stepping_state): Remove.
14353 (infrun_inferior_exit): Call displaced_step_state.reset.
14354 (use_displaced_stepping): Don't check for NULL.
14355 (displaced_step_prepare_throw): Call
14356 get_displaced_stepping_state.
14357 (displaced_step_fixup): Don't check for NULL.
14358 (prepare_for_detach): Don't check for NULL.
14359
e3319240
PW
143602019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14361
14362 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14363 in case of call that did not complete.
14364
5d36dfb9
AU
143652019-01-02 Andrey Utkin <autkin@undo.io>
14366
14367 * symfile.c (find_separate_debug_file): Fix search of debug files for
14368 remote debuggee.
14369
8833fbf0
TT
143702019-01-02 Tom Tromey <tom@tromey.com>
14371
14372 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14373 indentation.
14374 * python/py-frame.c (frapy_older): Remove cast.
14375 (frapy_newer): Likewise.
14376 * python/py-breakpoint.c (local_setattro): Remove cast.
14377 * python/py-arch.c (archpy_name): Remove local variable.
14378 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14379
4ada3dfd
JB
143802019-01-02 Joel Brobecker <brobecker@adacore.com>
14381
14382 * unittests/basic_string_view/element_access/char/empty.cc:
14383 Fix year range in copyright header.
14384
113b7b81
AB
143852019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14386
14387 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14388 Delete.
14389 <operator==>: Update with for removed field.
14390 <hash>: Likewise.
14391 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14392 <isa_features>: ...this.
14393 <abi_features>: New field.
14394 (riscv_isa_flen): Update comment.
14395 (riscv_abi_xlen): New declaration.
14396 (riscv_abi_flen): New declaration.
14397 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14398 isa_features.
14399 (riscv_abi_xlen): New function.
14400 (riscv_isa_flen): Update to get answer from isa_features.
14401 (riscv_abi_flen): New function.
14402 (riscv_has_fp_abi): Update to get answer from abi_features.
14403 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14404 xlen and flen.
14405 (riscv_call_info) <xlen, flen>: Update comment.
14406 (riscv_call_arg_struct): Remove invalid assertions
14407 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14408 is removed.
14409 (riscv_gdbarch_init): Gather isa features and abi features
14410 separately, ensure both match on the gdbarch when reusing an old
14411 gdbarch. Relax an error check to allow 32-bit abi float to run on
14412 a target with 64-bit float hardware.
14413
b18ca514
PW
144142019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14415
14416 * source.c (search_command_helper): Stop reverse search
14417 when line 1 has been searched.
14418
ec70d8db
PW
144192019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14420
14421 * record-full.c (record_full_base_target::close): Rewrite
14422 record_full_core_buf_list free logic.
14423
5b38f9c1
PW
144242019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14425
14426 * break-catch-syscall.c (print_one_catch_syscall): xfree
14427 the last text.
14428
66d91b39
JB
144292019-01-01 Joel Brobecker <brobecker@adacore.com>
14430
14431 * top.c (print_gdb_version): Update Copyright year in version
14432 message.
14433
42a4f53d
JB
144342019-01-01 Joel Brobecker <brobecker@adacore.com>
14435
14436 Update copyright year range in all GDB files.
14437
7e955d83 144382019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14439
5bbd631d 14440 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14441
5bbd631d 14442For older changes see ChangeLog-2018.
c906108c
SS
14443\f
14444Local Variables:
14445mode: change-log
14446left-margin: 8
14447fill-column: 74
14448version-control: never
57da7796 14449coding: utf-8
c906108c 14450End:
5bbd631d 14451