[gdb/testsuite] Compile infcall-nested-structs.exp with -O2
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
54d83b8d
TT
12019-10-20 Tom Tromey <tom@tromey.com>
2
3 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
4 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
5 obsolete comment.
6 (put_objfile_before): Now static.
7
23771117
SM
82019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * gdbsupport/common-utils.h (startswith): Change return type to
11 bool.
12
39ef2f62
CB
132019-10-19 Christian Biesinger <cbiesinger@google.com>
14
15 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
16 * breakpoint.c (bp_locations_compare): Rename to...
17 (bp_location_is_less_than): ...this, and change to std::sort semantics.
18 (update_global_location_list): Use std::sort instead of qsort.
19 * buildsym.c (compare_line_numbers): Rename to...
20 (lte_is_less_than): ...this, and change to std::sort semantics.
21 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
22 instead of qsort.
23 * disasm.c (compare_lines): Rename to...
24 (line_is_less_than): ...this, and change to std::sort semantics.
25 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
26 of qsort.
27 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
28 (fde_is_less_than): ...this, and change to std::sort semantics.
29 (dwarf2_build_frame_info): Call std::sort instead of qsort.
30 * mdebugread.c (compare_blocks):
31 (block_is_less_than): ...this, and change to std::sort semantics.
32 (sort_blocks): Call std::sort instead of qsort.
33 * objfiles.c (qsort_cmp): Rename to...
34 (sort_cmp): ...this, and change to std::sort semantics.
35 (update_section_map): Call std::sort instead of qsort.
36 * remote.c (compare_pnums): Remove.
37 (map_regcache_remote_table): Call std::sort instead of qsort.
38 * utils.c (compare_positive_ints): Remove.
39 * utils.h (compare_positive_ints): Remove.
40 * xcoffread.c (compare_lte): Remove.
41 (arrange_linetable): Call std::sort instead of qsort.
42
f71433ee
SDJ
432019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
44
45 * symfile.c (init_entry_point_info): Fix typo.
46 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
47
85102364
TV
482019-10-18 Tom de Vries <tdevries@suse.de>
49
50 * aarch64-tdep.c: Fix typos in comments.
51 * ada-lang.c: Same.
52 * ada-tasks.c: Same.
53 * alpha-tdep.c: Same.
54 * alpha-tdep.h: Same.
55 * amd64-nat.c: Same.
56 * amd64-windows-tdep.c: Same.
57 * arc-tdep.c: Same.
58 * arc-tdep.h: Same.
59 * arch-utils.c: Same.
60 * arm-nbsd-tdep.c: Same.
61 * arm-tdep.c: Same.
62 * ax-gdb.c: Same.
63 * blockframe.c: Same.
64 * btrace.c: Same.
65 * c-varobj.c: Same.
66 * coff-pe-read.c: Same.
67 * coffread.c: Same.
68 * cris-tdep.c: Same.
69 * darwin-nat.c: Same.
70 * dbxread.c: Same.
71 * dcache.c: Same.
72 * disasm.c: Same.
73 * dtrace-probe.c: Same.
74 * dwarf-index-write.c: Same.
75 * dwarf2-frame-tailcall.c: Same.
76 * dwarf2-frame.c: Same.
77 * dwarf2read.c: Same.
78 * eval.c: Same.
79 * exceptions.c: Same.
80 * fbsd-tdep.c: Same.
81 * findvar.c: Same.
82 * frame.c: Same.
83 * frv-tdep.c: Same.
84 * gnu-v3-abi.c: Same.
85 * go32-nat.c: Same.
86 * h8300-tdep.c: Same.
87 * hppa-tdep.c: Same.
88 * i386-linux-tdep.c: Same.
89 * i386-tdep.c: Same.
90 * ia64-libunwind-tdep.c: Same.
91 * ia64-tdep.c: Same.
92 * infcmd.c: Same.
93 * infrun.c: Same.
94 * linespec.c: Same.
95 * linux-nat.c: Same.
96 * linux-thread-db.c: Same.
97 * machoread.c: Same.
98 * mdebugread.c: Same.
99 * mep-tdep.c: Same.
100 * mn10300-tdep.c: Same.
101 * namespace.c: Same.
102 * objfiles.c: Same.
103 * opencl-lang.c: Same.
104 * or1k-tdep.c: Same.
105 * osabi.c: Same.
106 * ppc-linux-nat.c: Same.
107 * ppc-linux-tdep.c: Same.
108 * ppc-sysv-tdep.c: Same.
109 * printcmd.c: Same.
110 * procfs.c: Same.
111 * record-btrace.c: Same.
112 * record-full.c: Same.
113 * remote-fileio.c: Same.
114 * remote.c: Same.
115 * rs6000-tdep.c: Same.
116 * s12z-tdep.c: Same.
117 * score-tdep.c: Same.
118 * ser-base.c: Same.
119 * ser-go32.c: Same.
120 * skip.c: Same.
121 * sol-thread.c: Same.
122 * solib-svr4.c: Same.
123 * solib.c: Same.
124 * source.c: Same.
125 * sparc-nat.c: Same.
126 * sparc-sol2-tdep.c: Same.
127 * sparc-tdep.c: Same.
128 * sparc64-tdep.c: Same.
129 * stabsread.c: Same.
130 * stack.c: Same.
131 * symfile.c: Same.
132 * symtab.c: Same.
133 * target-descriptions.c: Same.
134 * target-float.c: Same.
135 * thread.c: Same.
136 * utils.c: Same.
137 * valops.c: Same.
138 * valprint.c: Same.
139 * value.c: Same.
140 * varobj.c: Same.
141 * windows-nat.c: Same.
142 * xcoffread.c: Same.
143 * xstormy16-tdep.c: Same.
144 * xtensa-tdep.c: Same.
145
c5adaa19
TT
1462019-10-17 Tom Tromey <tromey@adacore.com>
147
148 * configure: Rebuild.
149 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
150 in AC_CONFIG_FILES invocation.
151 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
152 new-style config.status invocation.
153
405feb71
TV
1542019-10-17 Tom de Vries <tdevries@suse.de>
155
156 * arm-nbsd-nat.c: Fix typos in comments.
157 * arm-tdep.c: Same.
158 * darwin-nat-info.c: Same.
159 * dwarf2read.c: Same.
160 * elfread.c: Same.
161 * event-top.c: Same.
162 * findvar.c: Same.
163 * gdbtypes.c: Same.
164 * hppa-tdep.c: Same.
165 * i386-tdep.c: Same.
166 * jit.c: Same.
167 * main.c: Same.
168 * mdebugread.c: Same.
169 * moxie-tdep.c: Same.
170 * nto-procfs.c: Same.
171 * osabi.c: Same.
172 * ppc-linux-tdep.c: Same.
173 * remote.c: Same.
174 * riscv-tdep.c: Same.
175 * s390-tdep.c: Same.
176 * sh-tdep.c: Same.
177 * sparc-linux-tdep.c: Same.
178 * sparc-nat.c: Same.
179 * stack.c: Same.
180 * target-descriptions.c: Same.
181 * top.c: Same.
182 * varobj.c: Same.
183
befcd486
TT
1842019-10-16 Tom Tromey <tom@tromey.com>
185
186 * objfiles.h (struct objfile) <original_name>: Now const.
187
17bfe554
CB
1882019-10-16 Christian Biesinger <cbiesinger@google.com>
189
190 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
191 pass on to sigsetjmp's second argument.
192 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
193
950b7495
KS
1942019-10-16 Keith Seitz <keiths@redhat.com>
195
196 PR gdb/23567
197 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
198 sections whose size is greater than the file size.
199
ff371ec9
JW
2002019-10-16 Jim Wilson <jimw@sifive.com>
201
202 * riscv-tdep.c (riscv_gcc_target_options): New.
203 (riscv_gnu_triplet_regexp): New.
204 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
205 set_gdbarch_gnu_triplet_regexp.
206
fec4e896
CB
2072019-10-16 Christian Biesinger <cbiesinger@google.com>
208
209 * Makefile.in: Add xml-builtin.h.
210 * features/feature_to_c.sh: Add an include for xml-builtin.h
211 to ensure that the compiler checks that the types match.
212 * xml-builtin.h: New file.
213 * xml-support.c (fetch_xml_builtin): Add missing const.
214 * xml-support.h: Remove declaration of xml_builtins.
215
d10eccaa
TV
2162019-10-16 Tom de Vries <tdevries@suse.de>
217
218 PR tdep/25096
219 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
220 (amd64_classify_aggregate): ... here.
221 (amd64_classify_aggregate_field): Handled fiels of nested structs
222 recursively.
223
745ff14e
TV
2242019-10-16 Tom de Vries <tdevries@suse.de>
225
226 PR tdep/24104
227 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
228 that handles 'theclass'.
229
791b7405
AB
2302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * linespec.c (decode_digits_ordinary): Update comment.
233 * make-target-delegates: No longer need to handle VEC case.
234 * memrange.c (normalize_mem_ranges): Update comment.
235 * namespace.c (add_using_directive): Update comment.
236 * objc-lang.c (uniquify_strings): Update comment.
237 * ppc-linux-nat.c (struct thread_points): Update comment.
238 * probe.h (find_probes_in_objfile): Update comment.
239 * target.h (enum flash_preserve_mode): Update comment.
240 * varobj.c (varobj_restrict_range): Update comment.
241 * varobj.h (varobj_list_children): Update comment.
242
0dc32745
AB
2432019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * Makefile.in: Remove references to vec.h and vec.c.
246 * aarch64-tdep.c: No longer include vec.h.
247 * ada-lang.c: Likewise.
248 * ada-lang.h: Likewise.
249 * arm-tdep.c: Likewise.
250 * ax.h: Likewise.
251 * breakpoint.h: Likewise.
252 * charset.c: Likewise.
253 * cp-support.h: Likewise.
254 * dtrace-probe.c: Likewise.
255 * dwarf2read.c: Likewise.
256 * extension.h: Likewise.
257 * gdb_bfd.c: Likewise.
258 * gdbsupport/gdb_vecs.h: Likewise.
259 * gdbsupport/vec.c: Remove.
260 * gdbsupport/vec.h: Remove.
261 * gdbthread.h: Likewise.
262 * guile/scm-type.c: Likewise.
263 * inline-frame.c: Likewise.
264 * machoread.c: Likewise.
265 * memattr.c: Likewise.
266 * memrange.h: Likewise.
267 * namespace.h: Likewise.
268 * nat/linux-btrace.h: Likewise.
269 * osdata.c: Likewise.
270 * parser-defs.h: Likewise.
271 * progspace.h: Likewise.
272 * python/py-type.c: Likewise.
273 * record-btrace.c: Likewise.
274 * rust-exp.y: Likewise.
275 * solib-target.c: Likewise.
276 * stap-probe.c: Likewise.
277 * target-descriptions.c: Likewise.
278 * target-memory.c: Likewise.
279 * target.h: Likewise.
280 * varobj.c: Likewise.
281 * varobj.h: Likewise.
282 * xml-support.h: Likewise.
283
ae640021
AB
2842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
287 Update for new std::vector based implementation.
288 (process_psymtab_comp_unit_reader): Likewise.
289 (scan_partial_symbols): Likewise.
290 (recursively_compute_inclusions): Likewise.
291 (compute_compunit_symtab_includes): Likewise.
292 (process_imported_unit_die): Likewise.
293 (queue_and_load_dwo_tu): Likewise.
294 (follow_die_sig_1): Likewise.
295 * gdb/dwarf2read.h: Remove DEF_VEC_P.
296 (typedef dwarf2_per_cu_ptr): Remove.
297 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
298 function.
299 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
300 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
301 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
302 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
303 std::vector.
304
55dfc88f
TT
3052019-10-15 Tom Tromey <tromey@adacore.com>
306
307 * windows-nat.c (windows_nat_target::resume): Use %x when logging
308 TID.
309
96b49c5e
TT
3102019-10-15 Tom Tromey <tromey@adacore.com>
311
312 * windows-nat.c (windows_nat_target::fetch_registers)
313 (windows_nat_target::store_registers): Rename "pid" to "tid".
314
953cff56
TT
3152019-10-15 Tom Tromey <tromey@adacore.com>
316
317 * gdbarch.h, gdbarch.c: Rebuild.
318 * gdbarch.sh (gcc_target_options): Change return type to
319 std::string.
320 * compile/compile.c (get_args): Update.
321 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
322 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
323 std::string.
324 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
325 std::string.
326 * arch-utils.c (default_gcc_target_options): Return std::string.
327 * arch-utils.h (default_gcc_target_options): Return std::string.
328 * s390-tdep.c (s390_gcc_target_options): Return std::string.
329
81e6b8eb
CB
3302019-10-15 Christian Biesinger <cbiesinger@google.com>
331
332 * breakpoint.c (breakpoint_chain): Make static.
333 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
334 of accessing breakpoint_chain.
335
95da600f
CB
3362019-10-15 Christian Biesinger <cbiesinger@google.com>
337
338 * breakpoint.c (iterate_over_breakpoints): Change function pointer
339 to a gdb::function_view and return value to bool.
340 * breakpoint.h (iterate_over_breakpoints): Likewise.
341 * dummy-frame.c (pop_dummy_frame_bpt): Update.
342 (pop_dummy_frame): Update.
343 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
344 (gdbscm_breakpoints): Update.
345 * python/py-breakpoint.c (build_bp_list): Update.
346 (gdbpy_breakpoints): Update.
347 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
348 Update.
349 (bpfinishpy_handle_stop): Update.
350 (bpfinishpy_handle_exit): Update.
351 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
352 (svr4_update_solib_event_breakpoints): Update.
353
ba18312d
AA
3542019-10-15 Andreas Arnez <arnez@linux.ibm.com>
355
356 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
357 when unwrapping single-field structs.
358
6acc1a0b
SM
3592019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * dwarf2read.c: Remove includes.
362
284782de
SM
3632019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * ui-out.c (ui_out::call_do_message): Silence
366 -Wformat-nonliteral warning.
367
073bbbb0
SM
3682019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * breakpoint.c: Remove some includes: continuations.h, skip.h,
371 mi/mi-main.h, readline/readline.h, readline/history.h. Add
372 include: readline/tilde.h.
373
7b9a15e1
CB
3742019-10-12 Christian Biesinger <cbiesinger@google.com>
375
376 * remote.c (remote_target::get_trace_status): Remove declaration of
377 trace_regblock_size.
378
cc8dee1f
CB
3792019-10-12 Christian Biesinger <cbiesinger@google.com>
380
381 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
382 (show_user): Remove declaration of cmdlist.
383 * cli/cli-cmds.h (max_user_call_depth): Declare.
384 * cli/cli-script.c (execute_user_command): Remove declaration
385 of max_user_call_depth.
386
a83d4ef6
JW
3872019-10-11 Jim Wilson <jimw@sifive.com>
388
5f93c5a6
JW
389 * gdbsupport/print-utils.h (pulongest): Fix comment.
390 (plongest): Likewise.
391 (phex): Add missing comment, mention leading zeros.
392 (phex_nz): Add mention of no leading zeros to comment.
393
a83d4ef6
JW
394 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
395 plongest instead of unsigned long long cast.
396
26344e0c
CB
3972019-10-10 Christian Biesinger <cbiesinger@google.com>
398
399 * main.c (captured_main_1): Include gdbtk.h and remove declarations
400 for external_editor_command and gdbtk_test.
401
c2c440a9
CB
4022019-10-10 Christian Biesinger <cbiesinger@google.com>
403
404 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
405 * varobj.c (varobjdebug): Move comment to...
406 * varobj.h (varobjdebug): ...here, and declare.
407
a31bff9d
TT
4082019-10-09 Tom Tromey <tom@tromey.com>
409
410 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
411 erase_data_content.
412
7523da63
TT
4132019-10-09 Tom Tromey <tom@tromey.com>
414
415 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
416 * tui/tui-stack.c (tui_locator_window::rerender): Update.
417 * tui/tui-command.c (tui_cmd_window::resize)
418 (tui_refresh_cmd_win): Update.
419 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
420 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
421 * tui/tui-data.c (~tui_gen_win_info): Remove.
422 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
423 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
424 (tui_redisplay_readline, tui_mld_flush)
425 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
426 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
427 (tui_data_window::erase_data_content)
428 (tui_data_item_window::rerender)
429 (tui_data_item_window::refresh_window): Update.
430 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
431 (box_win, tui_gen_win_info::make_window)
432 (tui_gen_win_info::make_visible): Update.
433 (tui_delete_win): Remove.
434 * tui/tui-winsource.c
435 (tui_source_window_base::do_erase_source_content): Update.
436 (tui_show_source_line, tui_source_window_base::update_tab_width)
437 (tui_source_window_base::update_exec_info): Update.
438 * tui/tui-data.h (struct curses_deleter): New.
439 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
440 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
441
a7798e7f
TT
4422019-10-09 Tom Tromey <tom@tromey.com>
443
444 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
445
5c45899e
TT
4462019-10-09 Tom Tromey <tom@tromey.com>
447
448 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
449 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
450
6d7fd9aa
TT
4512019-10-09 Tom Tromey <tom@tromey.com>
452
453 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
454 window height directly.
455 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
456 declare.
457 * tui/tui-layout.c (tui_default_win_height): Remove.
458 (tui_default_win_viewport_height): Remove.
459
d2dd1084
TT
4602019-10-09 Tom Tromey <tom@tromey.com>
461
462 * tui/tui.h: Remove comments.
463
cff32449
TV
4642019-10-09 Tom de Vries <tdevries@suse.de>
465
466 * python/lib/gdb/printer/bound_registers.py: Use
467 '^builtin_type_bound128' as regexp argument for
468 add_builtin_pretty_printer.
469
6a25e8a2
CB
4702019-10-09 Christian Biesinger <cbiesinger@google.com>
471
472 * guile/guile.c (guile_extension_script_ops): Remove forward
473 declaration and mark as static.
474 (guile_script_ops): Likewise.
475 (extension_language_guile): Move further down in the file so
476 it can reference the definitions for guile_{extension_,}script_ops.
477
6d9d6da4
AA
4782019-10-09 Andreas Arnez <arnez@linux.ibm.com>
479
480 * s390-tdep.c (390_process_record): Handle new arch13 instructions
481 except SORTL, DFLTCC, and KDSA.
482
3abea05d
TT
4832019-10-08 Tom Tromey <tromey@adacore.com>
484
485 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
486 (struct safe_symbol_file_add_args): Remove.
487
dde996e2
TT
4882019-10-08 Tom Tromey <tromey@adacore.com>
489
490 * windows-nat.c: Don't include buildsym-legacy.h.
491
cd6fdaa1
TT
4922019-10-08 Tom Tromey <tromey@adacore.com>
493
494 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
495
79bb1944
CB
4962019-10-08 Christian Biesinger <cbiesinger@google.com>
497
498 * gdbtypes.c (overload_debug): Move comment to header.
499 * gdbtypes.h (overload_debug): Declare.
500 * valops.c: Remove declaration of overload_debug, instead
501 include gdbtypes.h.
502
34916edc
CB
5032019-10-08 Christian Biesinger <cbiesinger@google.com>
504
505 * language.c (show_language_command): Pass lang_frame_mismatch_warn
506 through _().
507 (lang_frame_mismatch_warn): Make const, mark with N_(), and
508 move comment...
509 * language.h (lang_frame_mismatch_warn): ... here. Also add
510 declaration.
511 * top.c (lang_frame_mismatch_warn): Remove declaration.
512 (check_frame_language_change): Pass lang_frame_mismatch_warn
513 through _().
514
bad5c026
CB
5152019-10-07 Christian Biesinger <cbiesinger@google.com>
516
517 * c-lang.h (vtbl_ptr_name): Declare.
518 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
519 it from the header.
520 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
521
51f1fdc3
CB
5222019-10-07 Christian Biesinger <cbiesinger@google.com>
523
524 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
525 gdb_static_assert.
526
30d1f018
WP
5272019-10-07 Weimin Pan <weimin.pan@oracle.com>
528
606813d5
WP
529 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
530 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
531 * ctfread.c: New file.
532 * ctfread.h: New file.
533 * elfread.c: Include ctfread.h.
534 (struct elfinfo text_p): New member ctfsect.
535 (elf_locate_sections): Mark CTF section.
536 (elf_symfile_read): Call elfctf_build_psymtabs.
537 * Makefile.in (LIBCTF): Add.
538 (CLIBS): Use it.
539 (CDEPS): Likewise.
540 (DIST): Add ctfread.c.
606813d5
WP
541
5422019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * ctfread.c (struct nextfield): Renamed to ...
545 (struct ctf_nextfield): ... this.
546 (struct field_info): Renamed to ...
547 (strut ctf_field_info): ... this.
548 (attach_fields_to_type): Update for renamed structures.
549 (ctf_add_member_cb): Likewise.
550 (ctf_add_enum_member_cb): Likewise.
551 (process_struct_members): Likewise.
552 (process_enum_type): Likewise.
30d1f018 553
518fe38c
WP
5542019-10-07 Weimin Pan <weimin.pan@oracle.com>
555
556 * tracectf.h: Rename, was ctf.h.
557 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
558 * tracefile.c: Likewise.
559 * tracepoint.c: Remove unused include ctf.h.
560 * mi/mi-main.c: Likewise.
561 * Makefile.in Replace ctf.c with tracectf.c.
562
225f296a
JB
5632019-10-06 Joel Brobecker <brobecker@adacore.com>
564
565 * version.in: Change version number to "9.0.50.DATE-git".
566
77c2dba3
TT
5672019-10-03 Tom Tromey <tom@tromey.com>
568
569 PR rust/24976:
570 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
571
179aed7f
AB
5722019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
575 cp_search_name_hash.
576 * NEWS: Add entry about nested function support.
577
0a4b0913
AB
5782019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
579 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
582 for nested static variables when searchin VAR_DOMAIN.
583 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
584 global scope, update comment.
585 (add_partial_subprogram): Call add_partial_subprogram recursively
586 for nested subroutines when processinng Fortran.
587 (load_partial_dies): Process the child entities of a subprogram
588 when processing Fortran.
589 (partial_die_parent_scope): Handle building scope
590 for Fortran nested functions.
591 (process_die): Record that nested functions have a scope.
592 (new_symbol): Always record Fortran subprograms on the global
593 symbol list.
594 (determine_prefix): How to build the prefix for Fortran
595 subprograms.
596
d8c06f22
AB
5972019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
600 have just sent the thread a SIGSTOP and are waiting for it to
601 arrive.
602
a8b3b8e9
AB
6032019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * btrace.c (btrace_add_pc): Remove whitespace before the template
606 parameter in 'std::vector <...>'.
607 (parse_xml_btrace_block): Likewise.
608 (btrace_maint_decode_pt): Likewise.
609 (btrace_maint_update_packets): Likewise.
610 (btrace_maint_print_packets): Likewise.
611 * btrace.h (struct btrace_maint_info): Likewise.
612 * dwarf2read.c (struct type_unit_group): Likewise.
613 (build_type_psymtabs_reader): Likewise.
614 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
615 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
616 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
617
4d825eab
TV
6182019-10-03 Tom de Vries <tdevries@suse.de>
619
620 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
621 the first line of the help text for set/show style metadata.
622
80fd2826
TT
6232019-10-02 Tom Tromey <tromey@adacore.com>
624
625 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
626 * gdbsupport/common-inferior.c: New file.
627 * infcmd.c (startup_with_shell): Don't define.
628 * nat/fork-inferior.h (startup_with_shell): Don't declare.
629 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
630 * inferior.h (startup_with_shell): Don't declare.
631
70054538
CB
6322019-10-02 Christian Biesinger <cbiesinger@google.com>
633
634 * gdbsupport/gdb_assert.h: Include errors.h.
635 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
636
37f6a7f4
TT
6372019-10-02 Tom Tromey <tromey@adacore.com>
638
639 * NEWS: Add $_ada_exception entry.
640 * ada-lang.c (struct ada_catchpoint): Add constructor.
641 <m_kind>: New member.
642 (allocate_location_exception, re_set_exception): Remove
643 "ex" parameter.
644 (should_stop_exception): Compute $_ada_exception.
645 (check_status_exception, print_it_exception)
646 (print_one_exception, print_mention_exception): Remove
647 "ex" parameter.
648 (allocate_location_catch_exception, re_set_catch_exception)
649 (check_status_exception, print_it_catch_exception)
650 (print_one_catch_exception, print_mention_catch_exception)
651 (print_recreate_catch_exception)
652 (allocate_location_catch_exception_unhandled)
653 (re_set_catch_exception_unhandled)
654 (check_status_exception, print_it_catch_exception_unhandled)
655 (print_one_catch_exception_unhandled)
656 (print_mention_catch_exception_unhandled)
657 (print_recreate_catch_exception_unhandled)
658 (allocate_location_catch_assert, re_set_catch_assert)
659 (check_status_assert, print_it_catch_assert)
660 (print_one_catch_assert, print_mention_catch_assert)
661 (print_recreate_catch_assert)
662 (allocate_location_catch_handlers, re_set_catch_handlers)
663 (check_status_handlers, print_it_catch_handlers)
664 (print_one_catch_handlers, print_mention_catch_handlers)
665 (print_recreate_catch_handlers): Remove.
666 (create_ada_exception_catchpoint): Update.
667 (initialize_ada_catchpoint_ops): Update.
668
fccf9de1
TT
6692019-10-02 Tom Tromey <tromey@adacore.com>
670
671 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
672 (create_excep_cond_exprs): Simplify exception string computation.
673 (ada_exception_catchpoint_cond_string): Likewise.
674
4b610737
TT
6752019-10-02 Tom Tromey <tromey@adacore.com>
676
677 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
678 * ada-lang.c (lesseq_defined_than): Handle
679 LOC_STATIC.
680 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
681 parameter.
682 (dwarf2_has_info): Likewise.
683 (new_symbol): Set maybe_copied on symbol when
684 appropriate.
685 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
686 parameter.
687 <can_copy>: New member.
688 * elfread.c (record_minimal_symbol): Set maybe_copied
689 on symbol when appropriate.
690 (elf_symfile_read): Update call to dwarf2_has_info.
691 * minsyms.c (lookup_minimal_symbol_linkage): New
692 function.
693 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
694 * symtab.c (get_symbol_address, get_msymbol_address):
695 New functions.
696 * symtab.h (get_symbol_address, get_msymbol_address):
697 Declare.
698 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
699 maybe_copied.
700 (struct symbol, struct minimal_symbol) <maybe_copied>:
701 New member.
702
1dd58850
TT
7032019-10-02 Tom Tromey <tromey@adacore.com>
704
705 * source.c (struct current_source_location): New.
706 (current_source_key): New global.
707 (current_source_symtab, current_source_line)
708 (current_source_pspace): Remove.
709 (get_source_location): New function.
710 (get_current_source_symtab_and_line)
711 (set_default_source_symtab_and_line)
712 (set_current_source_symtab_and_line)
713 (clear_current_source_symtab_and_line, select_source_symtab)
714 (info_source_command, print_source_lines_base)
715 (info_line_command, search_command_helper, _initialize_source):
716 Update.
717
5c281dbb
TT
7182019-10-02 Tom Tromey <tromey@adacore.com>
719
720 * source.c (select_source_symtab): Don't call
721 decode_line_with_current_source.
722
d3d32391
AB
7232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * symtab.c (lookup_global_symbol): Search global block.
726
38583298
TT
7272019-10-02 Tom Tromey <tromey@adacore.com>
728
729 * coffread.c (process_coff_symbol): Update.
730 * dwarf2read.c (var_decode_location, new_symbol): Update.
731 * mdebugread.c (parse_symbol): Update.
732 * objfiles.c (relocate_one_symbol): Update.
733 * stabsread.c (define_symbol, fix_common_block)
734 (scan_file_globals): Update.
735 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
736 (SET_SYMBOL_VALUE_ADDRESS): New macro.
737 * xcoffread.c (process_xcoff_symbol): Update.
738
9344c18f
AA
7392019-10-02 Andreas Arnez <arnez@linux.ibm.com>
740
741 * MAINTAINERS: Update my email address.
742
df07e2c7
AB
7432019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
746 std::vector.
747 (build_type_psymtabs_reader): Update for std::vector.
748 (build_type_psymtab_dependencies): Likewise.
749 * dwarf2read.h: Remove use of DEF_VEC_P.
750 (typedef sig_type_ptr): Delete.
751
554ac434
AB
7522019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * btrace.c (btrace_maint_clear): Update to handle change from VEC
755 to std::vector.
756 (btrace_maint_decode_pt): Likewise, and move allocation of the
757 vector outside of the loop.
758 (btrace_maint_update_packets): Update to handle change from VEC to
759 std::vector.
760 (btrace_maint_print_packets): Likewise.
761 (maint_info_btrace_cmd): Likewise.
762 * btrace.h: Remove use of DEF_VEC_O.
763 (typedef btrace_pt_packet_s): Delete.
764 (struct btrace_maint_info) <packets>: Change fromm VEC to
765 std::vector.
766 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
767
46f29a9a
AB
7682019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
771 make accesses into the vector constant references.
772 (btrace_add_pc): Update for std::vector.
773 (btrace_stitch_bts): Likewise.
774 (parse_xml_btrace_block): Likewise.
775 (btrace_maint_update_packets): Likewise.
776 (btrace_maint_print_packets): Likewise.
777 (maint_info_btrace_cmd): Likewise.
778 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
779 std::vector.
780 (btrace_data::empty): Likewise.
781 (btrace_data_append): Likewise.
782 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
783 (typedef btrace_block_s): Delete.
784 (struct btrace_block): Add constructor.
785 (struct btrace_data_bts) <blocks>: Change to std::vector.
786 * nat/linux-btrace.c (perf_event_read_bts): Update for
787 std::vector.
788 (linux_read_bts): Likewise.
789
d770d56f
TT
7902019-10-01 Tom Tromey <tom@tromey.com>
791
792 * cli/cli-logging.c (show_logging_filename): Use styled_string.
793
9d636d67
TT
7942019-10-01 Tom Tromey <tom@tromey.com>
795
796 * stack.c (print_frame, info_frame_command_core): Use
797 styled_string.
798 * linux-thread-db.c (try_thread_db_load_1)
799 (try_thread_db_load_from_pdir_1): Use styled_string.
800 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
801 (auto_load_section_scripts, info_auto_load_local_gdbinit)
802 (maybe_print_unsupported_script_warning)
803 (maybe_print_script_not_found_warning): Use styled_string.
804 * ada-lang.c (user_select_syms): Use styled_string.
805
7f6aba03
TT
8062019-10-01 Tom Tromey <tom@tromey.com>
807
808 * p-lang.c (pascal_printstr): Use metadata style.
809 * value.c (show_convenience): Use metadata style.
810 * valprint.c (valprint_check_validity, val_print_optimized_out)
811 (val_print_not_saved, val_print_unavailable)
812 (val_print_invalid_address, generic_val_print, val_print)
813 (value_check_printable, val_print_array_elements): Use metadata
814 style.
815 * ui-out.h (class ui_out) <field_fmt>: New overload.
816 <do_field_fmt>: Add style parameter.
817 * ui-out.c (ui_out::field_fmt): New overload.
818 * typeprint.c (type_print_unknown_return_type)
819 (val_print_not_allocated, val_print_not_associated): Use metadata
820 style.
821 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
822 parameter.
823 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
824 * tracepoint.c (tvariables_info_1): Use metadata style.
825 * stack.c (print_frame_arg, print_frame_info, print_frame)
826 (info_frame_command_core): Use metadata style.
827 * skip.c (info_skip_command): Use metadata style.
828 * rust-lang.c (rust_print_enum): Use metadata style.
829 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
830 metadata style.
831 * python/py-framefilter.c (py_print_single_arg): Use metadata
832 style.
833 * printcmd.c (do_one_display, print_variable_and_value): Use
834 metadata style.
835 * p-valprint.c (pascal_val_print)
836 (pascal_object_print_value_fields): Use metadata style.
837 * p-typeprint.c (pascal_type_print_base): Use metadata style.
838 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
839 parameter.
840 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
841 * m2-valprint.c (m2_print_long_set): Use metadata style.
842 * m2-typeprint.c (m2_print_type): Use metadata style.
843 * infcmd.c (print_return_value_1): Use metadata style.
844 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
845 * f-valprint.c (info_common_command_for_block): Use metadata
846 style.
847 * f-typeprint.c (f_type_print_base): Use metadata style.
848 * expprint.c (print_subexp_standard): Use metadata style.
849 * cp-valprint.c (cp_print_value_fields): Use metadata style.
850 * cli/cli-style.h (class cli_style_option): Add constructor.
851 (metadata_style): Declare.
852 * cli/cli-style.c (metadata_style): New global.
853 (_initialize_cli_style): Register metadata style.
854 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
855 parameter.
856 * cli-out.c (cli_ui_out::do_field_fmt): Update.
857 * c-typeprint.c (c_type_print_base_struct_union)
858 (c_type_print_base_1): Use metadata style.
859 * breakpoint.c (watchpoint_value_print)
860 (print_one_breakpoint_location): Use metadata style.
861 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
862 style.
863 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
864 style.
865 * ada-valprint.c (val_print_packed_array_elements, printstr)
866 (print_field_values, ada_val_print_ref, ada_val_print): Use
867 metadata style.
868 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
869 style.
870 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
871 style.
872 * ada-lang.c (user_select_syms): Use metadata style.
873
14309bb6
TT
8742019-10-01 Tom Tromey <tom@tromey.com>
875
876 * cli/cli-cmds.c (pwd_command): Style output.
877
6a831f06
PA
8782019-10-01 Pedro Alves <palves@redhat.com>
879 Tom Tromey <tom@tromey.com>
880
881 * symtab.c (print_symbol_info): Use %ps.
882 (print_msymbol_info): Use %ps.
883 * symfile.c (symbol_file_add_with_addrs): Use %ps.
884 * printcmd.c (print_variable_and_value): Use %ps.
885 * macrocmd.c (show_pp_source_pos): Use %ps.
886 * infrun.c (print_exited_reason): Use ui_out::message.
887 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
888 (describe_other_breakpoints): Use ui_out::message and new
889 formats.
890 (say_where): Use new formats.
891 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
892 and new formats.
893
2a3c1174
PA
8942019-10-01 Pedro Alves <palves@redhat.com>
895 Tom Tromey <tom@tromey.com>
896
897 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
898 (test_gdb_formats): New function.
899 (run_tests): Call it.
900 (test_format_specifier): Update.
901 * utils.h (fputs_filtered): Update comment.
902 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
903 (fputs_styled_unfiltered): Declare.
904 * utils.c (fputs_styled_unfiltered): New function.
905 (vfprintf_maybe_filtered): Add gdbfmt parameter.
906 (vfprintf_filtered): Update.
907 (vfprintf_unfiltered, vprintf_filtered): Update.
908 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
909 * ui-out.h (enum ui_out_flag) <unfiltered_output,
910 disallow_ui_out_field>: New constants.
911 (enum class field_kind): New.
912 (struct base_field_s, struct signed_field_s): New.
913 (signed_field): New function.
914 (struct string_field_s): New.
915 (string_field): New function.
916 (struct styled_string_s): New.
917 (styled_string): New function.
918 (class ui_out) <message>: Add comment.
919 <vmessage, call_do_message>: New methods.
920 <do_message>: Add style parameter.
921 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
922 methods.
923 (ui_out::message): Rewrite.
924 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
925 parameter.
926 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
927 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
928 gdb_extensions parameter.
929 (class format_piece): Add parameter to constructor.
930 (n_int_args): New field.
931 * gdbsupport/format.c (format_pieces::format_pieces): Add
932 gdb_extensions parameter. Handle '*'.
933 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
934 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
935 vfprintf_styled_no_gdbfmt.
936 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
937 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
938 unfiltered output.
939 * ui-style.h (struct ui_file_style) <ptr>: New method.
940
0dfe5bfb
TT
9412019-10-01 Tom Tromey <tom@tromey.com>
942
943 * unittests/format_pieces-selftests.c: Update. Add final format.
944 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
945 empty literal pieces.
946
e43b10e1
TT
9472019-10-01 Tom Tromey <tom@tromey.com>
948
949 * ui-out.h (enum class ui_out_style_kind): Remove.
950 (class ui_out) <field_string, field_stsream, do_field_string>:
951 Change type of "style".
952 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
953 (ui_out::field_string): Update.
954 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
955 of "style".
956 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
957 * tracepoint.c (print_one_static_tracepoint_marker): Update.
958 * stack.c (print_frame_arg, print_frame_info, print_frame):
959 Update.
960 * source.c (print_source_lines_base): Update.
961 * solib.c (info_sharedlibrary_command): Update.
962 * skip.c (info_skip_command): Update.
963 * record-btrace.c (btrace_call_history_src_line)
964 (btrace_call_history): Update.
965 * python/py-framefilter.c (py_print_frame): Update.
966 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
967 "style".
968 * mi/mi-out.c (mi_ui_out::do_table_header)
969 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
970 (mi_ui_out::do_field_string): Update.
971 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
972 Update.
973 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
974 "style".
975 * cli-out.c (cli_ui_out::do_table_header)
976 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
977 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
978 (cli_ui_out::do_field_fmt): Update.
979 * breakpoint.c (print_breakpoint_location): Update.
980 (update_static_tracepoint): Update.
981
cd7c32c3
PW
9822019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
983
984 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
985 conversion of gdb_datadir.
986 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
987 remove not needed c_str ().
988
8fe0f950
AT
9892019-09-30 Ali Tamur <tamur@google.com>
990
991 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
992 (dwarf2_string_attr): Likewise.
993
5f48f8f3
AT
9942019-09-30 Ali Tamur <tamur@google.com>
995
996 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
997 (process_full_type_unit): Likewise.
998 (dump_die_shallow): Likewise.
999 (cu_debug_loc_section): Likewise.
1000
6fb08628
CB
10012019-09-28 Christian Biesinger <cbiesinger@google.com>
1002
1003 * minsyms.c (compare_minimal_symbols): Rename to...
1004 (minimal_symbol_is_less_than): ...this, and adjust to STL
1005 conventions (return bool, take arguments as references)
1006 (minimal_symbol_reader::install): Call std::sort instead
1007 of qsort.
1008
c7ee338a
CB
10092019-09-29 Christian Biesinger <cbiesinger@google.com>
1010
1011 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1012 hash and why.
1013 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1014 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1015
703a86c2
SM
10162019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1019 * psympriv.h (add_psymbol_to_list): Move comment here and update
1020 it.
1021
0df0352a
TV
10222019-09-29 Tom de Vries <tdevries@suse.de>
1023
1024 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1025 Use $tmpdir/$(basename "$output_file").dwz instead of
1026 "${output_file}.dwz".
1027
ad75efa6
SM
10282019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 PR gdb/25045
1031 * hppa-linux-nat.c: Include gdbarch.h.
1032
ececd218
CB
10332019-09-26 Christian Biesinger <cbiesinger@google.com>
1034
1035 * blockframe.c (find_pc_partial_function): Change return type to bool.
1036 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1037 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1038 (stub_gnu_ifunc_resolve_name): Likewise.
1039 * symtab.c (compare_filenames_for_search): Likewise.
1040 (compare_glob_filenames_for_search): Likewise.
1041 (matching_obj_sections): Likewise.
1042 (symbol_matches_domain): Likewise.
1043 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1044 (find_line_pc): Change return type to bool.
1045 (find_line_pc_range): Likewise.
1046 (producer_is_realview): Likewise.
1047 * symtab.h (symbol_matches_domain): Likewise.
1048 (find_pc_partial_function): Likewise.
1049 (find_pc_line_pc_range): Likewise.
1050 (in_gnu_ifunc_stub): Likewise.
1051 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1052 (find_line_pc): Likewise.
1053 (find_line_pc_range): Likewise.
1054 (matching_obj_sections): Likewise.
1055 (find_line_symtab): Change out parameter to bool.
1056 (producer_is_realview): Change return type to bool.
1057 (compare_filenames_for_search): Likewise.
1058 (compare_glob_filenames_for_search): Likewise.
1059
27a900b8
TT
10602019-09-26 Tom Tromey <tom@tromey.com>
1061
1062 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1063 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1064 * gdb_usleep.h: Remove.
1065 * gdb_usleep.c: Remove.
1066 * utils.c: Don't include gdb_usleep.h.
1067
5d63b30a
TT
10682019-09-26 Tom Tromey <tromey@adacore.com>
1069
1070 * python/py-type.c (type_to_type_object): Call check_typedef
1071 for stub types.
1072
12904d37
TT
10732019-09-26 Tom Tromey <tom@tromey.com>
1074
1075 * utils.h (initialize_utils): Don't declare.
1076 * top.c (gdb_init): Don't call initialize_utils.
1077 * utils.c (initialize_utils): Remove. Move contents...
1078 (_initialize_utils): ... here.
1079
858f25f0
TT
10802019-09-25 Tom Tromey <tom@tromey.com>
1081
1082 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1083 * utils.h (make_hex_string): Don't declare.
1084 * utils.c (make_hex_string): Remove.
1085
3d435220
TV
10862019-09-24 Tom de Vries <tdevries@suse.de>
1087
1088 PR gdb/23815
1089 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1090 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1091
ddd44b70
DD
10922019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1093
1094 * NEWS: Mention new simulator port for PRU.
1095
f945dedf
CB
10962019-09-23 Christian Biesinger <cbiesinger@google.com>
1097
1098 * ada-exp.y (write_object_remaining): Update.
1099 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1100 and eliminate the static buffer.
1101 (ada_decode_symbol): Update.
1102 (ada_la_decode): Update.
1103 (ada_sniff_from_mangled_name): Update.
1104 (is_valid_name_for_wild_match): Update.
1105 (ada_lookup_name_info::matches): Update and simplify.
1106 (name_matches_regex): Update.
1107 (ada_add_global_exceptions): Update.
1108 * ada-lang.h (ada_decode): Update signature.
1109 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1110 * dwarf-index-write.c (debug_names::insert): Update.
1111
7ab78ccb
SM
11122019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1115 formatting.
1116
9252448b
SM
11172019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1120 Change "nonzero" to "true" in documentation.
1121
626ca2c0
CB
11222019-09-20 Christian Biesinger <cbiesinger@google.com>
1123
1124 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1125 (_initialize_darwin_solib): Don't set
1126 darwin_so_ops.lookup_lib_global_symbol.
1127 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1128 set_gdbarch_iterate_over_objfiles_in_search_order.
1129 (elf_lookup_lib_symbol): Rename to...
1130 (svr4_iterate_over_objfiles_in_search_order): this, and update
1131 to iterate semantics.
1132 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1133 * solib.c (solib_global_lookup): Remove.
1134 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1135 (solib_global_lookup): Remove.
1136 * symtab.c (lookup_global_or_static_symbol): Remove call to
1137 solib_global_lookup.
1138
5a3a0d63
JB
11392019-09-20 Joel Brobecker <brobecker@adacore.com>
1140
1141 * NEWS: Move entries about default MI version now being
1142 version 3, and about the GDB/MI fix for multi-location
1143 breakpoints to the "since GDB 8.3" section.
1144
ffea1427
JB
11452019-09-20 Joel Brobecker <brobecker@adacore.com>
1146
1147 GDB 8.3.1 released.
1148
abf516c6
UW
11492019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1150
1151 * NEWS: Mention that Cell/B.E. debugging support was removed.
1152 * MAINTAINERS: Remove spu target.
1153
1154 * config/djgpp/fnchange.lst: Remove entries for removed files.
1155
1156 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1157 spu-multiarch.o, and spu-tdep.o.
1158 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1159 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1160 spu-multiarch.c, and spu-tdep.c.
1161 * spu-linux-nat.c: Remove file.
1162 * spu-multiarch.c: Remove file.
1163 * spu-tdep.c: Remove file.
1164 * spu-tdep.h: Remove file.
1165 * solib-spu.c: Remove file.
1166 * solib-spu.h: Remove file.
1167
1168 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1169 * configure.nat (spu-linux): Remove.
1170 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1171 solib-multiarch.o from gdb_target_obs.
1172 (spu*-*-*): Remove.
1173
1174 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1175 feature flag.
1176 (ppc_linux_no_features): Update.
1177 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1178 Cell/B.E. support.
1179 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1180 (tdesc_powerpc_cell64l): Likewise.
1181 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1182 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1183 Cell/B.E. support.
1184 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1185 Do not include "features/rs6000/powerpc-cell32l.c" or
1186 "features/rs6000/powerpc-cell64l.c".
1187 (ppc_linux_spu_section): Remove.
1188 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1189 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1190 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1191 (ppc_linux_spe_context_lookup): Remove.
1192 (ppc_linux_spe_context_inferior_created): Remove.
1193 (ppc_linux_spe_context_solib_loaded): Remove.
1194 (ppc_linux_spe_context_solib_unloaded): Remove.
1195 (ppc_linux_spe_context): Remove.
1196 (struct ppu2spu_cache): Remove.
1197 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1198 (struct ppu2spu_data): Remove.
1199 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1200 ppu2spu_unwind): Remove.
1201 (ppc_linux_init_abi): Remove Cell/B.E. support.
1202 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1203
1204 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1205 (rs6000/powerpc-cell64l-expedite): Likewise
1206 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1207 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1208 rs6000/powerpc-cell64l.xml.
1209 * features/rs6000/powerpc-cell32l.xml: Remove.
1210 * features/rs6000/powerpc-cell64l.xml: Likewise.
1211 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1212 * features/rs6000/powerpc-cell64l.c: Likewise.
1213 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1214 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1215 * regformats/reg-spu.dat: Remove.
1216
1217 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1218 * corelow.c (struct spuid_list): Remove.
1219 (add_to_spuid_list): Remove.
1220 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1221 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1222 (remote_protocol_features): Remove associated entries.
1223 (_initialize_remote): No longer initialize them.
1224 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1225 * linux-nat.c (SPUFS_MAGIC): Remove.
1226 (linux_proc_xfer_spu): Remove.
1227 (spu_enumerate_spu_ids): Remove.
1228 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1229 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1230 (linux_make_corefile_notes): No longer call it.
1231
1232 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1233 (cooked_write_test): Likewise.
1234
78e8cb91
TT
12352019-09-20 Tom Tromey <tom@tromey.com>
1236
1237 * NEWS: Mention case-sensitivity of TUI commands.
1238 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1239 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1240 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1241
f074b67e
TT
12422019-09-20 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-source.c (tui_source_window::set_contents): Use
1245 make_unique_xstrdup.
1246 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1247 make_unique_xstrdup.
1248
63c4bf19
TT
12492019-09-20 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-data.c: Remove separator comments.
1252 * tui/tui-layout.c: Remove separator comments.
1253 * tui/tui-win.c: Remove separator comments.
1254 * tui/tui-wingeneral.c: Remove separator comments.
1255
43df9b2f
TT
12562019-09-20 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui.h (strcat_to_buf): Don't declare.
1259 * tui/tui.c (strcat_to_buf): Remove.
1260
7226433c
TT
12612019-09-20 Tom Tromey <tom@tromey.com>
1262
1263 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1264 from "fullname".
1265 * tui/tui-source.c (tui_source_window::set_contents)
1266 (tui_source_window::location_matches_p)
1267 (tui_source_window::maybe_update): Update.
1268
80df3337
TT
12692019-09-20 Tom Tromey <tom@tromey.com>
1270
1271 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1272 Update.
1273 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1274 prefix.
1275 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1276 (tui_data_window::line_from_reg_element_no)
1277 (tui_data_window::first_reg_element_no_inline)
1278 (tui_data_window::show_registers)
1279 (tui_data_window::show_register_group)
1280 (tui_data_window::display_registers_from)
1281 (tui_data_window::display_registers_from_line)
1282 (tui_data_window::first_data_item_displayed)
1283 (tui_data_window::delete_data_content_windows)
1284 (tui_data_window::erase_data_content)
1285 (tui_data_window::do_scroll_vertical)
1286 (tui_data_window::refresh_window)
1287 (tui_data_window::check_register_values): Update.
1288
9923f347
TT
12892019-09-20 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1292 (struct tui_locator_window) <full_name, proc_name>: Now
1293 std::string.
1294 * tui/tui-stack.c (tui_locator_window::make_status_line)
1295 (tui_locator_window::set_locator_fullname)
1296 (tui_locator_window::set_locator_info): Update.
1297 * tui/tui-source.c (tui_source_window::set_contents)
1298 (tui_source_window::showing_source_p): Update.
1299
b76251ab
TT
13002019-09-20 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1303 Don't call tui_locator_win_info_ptr.
1304
0891be08
TT
13052019-09-20 Tom Tromey <tom@tromey.com>
1306
1307 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1308
1b935acf
TT
13092019-09-20 Tom Tromey <tom@tromey.com>
1310
1311 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1312 height for locator.
1313 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1314 * tui/tui-layout.c (show_source_disasm_command, show_data)
1315 (show_source_or_disasm_and_command): Use 1 as height for locator.
1316
9abd8a65
TT
13172019-09-20 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui.c (tui_enable): Update.
1320 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1321 Update.
1322 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1323 Update.
1324 * tui/tui-data.c (win_resized): Now bool.
1325 (tui_win_resized): Return bool.
1326 (tui_set_win_resized_to): Accept a bool.
1327
b5457826
TT
13282019-09-20 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1331 Change type of "refresh_values_only".
1332 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1333 type of "refresh_values_only".
1334
6b915f7d
TT
13352019-09-20 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1338 std::string.
1339 (tui_disassemble): Add "pos" parameter.
1340 (tui_disasm_window::set_contents): Simplify.
1341
2ad52f6f
TT
13422019-09-20 Tom Tromey <tom@tromey.com>
1343
1344 * tui/tui-winsource.h (struct tui_source_window_base)
1345 <show_source_content>: Now private.
1346 * tui/tui-winsource.c
1347 (tui_source_window_base::show_source_content): Don't handle empty
1348 content case.
1349
b3b1bde6
TT
13502019-09-20 Tom Tromey <tom@tromey.com>
1351
1352 * tui/tui-layout.c (show_source_disasm_command)
1353 (show_source_or_disasm_and_command): Don't call
1354 show_source_content.
1355
71a25ed2
TT
13562019-09-20 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1359 Declare.
1360 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1361 from tui_make_status_line.
1362 (tui_locator_window::rerender): Update.
1363
f8532154
TT
13642019-09-20 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1367 (tui_locator_window::rerender): Update.
1368
2d81b349
TT
13692019-09-20 Tom Tromey <tom@tromey.com>
1370
1371 * tui/tui-winsource.h (struct tui_source_window_base)
1372 <~tui_source_window_base>: Don't declare.
1373 <fullname>: Remove.
1374 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1375 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1376 member.
1377 * tui/tui-source.c (tui_source_window::set_contents): Update.
1378 (tui_source_window::location_matches_p)
1379 (tui_source_window::maybe_update): Update.
1380
f14bec58
TT
13812019-09-20 Tom Tromey <tom@tromey.com>
1382
1383 * tui/tui-winsource.h (~tui_source_element): Remove.
1384 (tui_source_element): Update.
1385 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1386 * tui/tui-winsource.c (tui_show_source_line): Update.
1387 * tui/tui-source.c (tui_source_window::set_contents): Update.
1388 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1389
78d5933a
TT
13902019-09-20 Tom Tromey <tom@tromey.com>
1391
1392 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1393 declare.
1394 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1395 tui_clear_source_windows_detail.
1396 * tui/tui-winsource.h (struct tui_source_window_base)
1397 <clear_detail>: Don't declare.
1398 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1399 Remove.
1400 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1401
d4207696
TT
14022019-09-20 Tom Tromey <tromey@adacore.com>
1403
1404 PR ada/24919:
1405 * block.c (contained_in): Fix final return value.
1406
00f93c44
AM
14072019-09-20 Alan Modra <amodra@gmail.com>
1408
1409 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1410 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1411 (read_indirect_string_from_dwz): Use bfd accessor.
1412 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1413 * machoread.c (macho_symfile_read_all_oso): Likewise.
1414 * solib.c (solib_bfd_open): Likewise.
1415
e4153ae6
CB
14162019-09-19 Christian Biesinger <cbiesinger@google.com>
1417
1418 * eval.c: Move declaration of overload_resolution to...
1419 * value.h: ...here.
1420
c7ae7675
CB
14212019-09-19 Christian Biesinger <cbiesinger@google.com>
1422
1423 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1424 * arm-linux-tdep.c: Likewise.
1425 * arm-nbsd-nat.c: Likewise.
1426 * arm-tdep.h: Declare arm_apcs_32.
1427 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1428
e86f08d2
CB
14292019-09-19 Christian Biesinger <cbiesinger@google.com>
1430
1431 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1432 * dwarf2read.h: Declare dwarf_always_disassemble.
1433
f64e2f40
TV
14342019-09-19 Tom de Vries <tdevries@suse.de>
1435
1436 PR gdb/25009
1437 * source-cache.c (source_cache::ensure): Catch exception thrown during
1438 construction of the highlighter.
1439
fd361982
AM
14402019-09-18 Alan Modra <amodra@gmail.com>
1441
1442 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1443 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1444 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1445 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1446 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1447 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1448 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1449 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1450 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1451 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1452 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1453 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1454 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1455 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1456 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1457 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1458 * mi/mi-interp.c: Update throughout for bfd section macro and
1459 function changes.
1460 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1461 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1462
11061048
TT
14632019-09-18 Tom Tromey <tom@tromey.com>
1464
1465 * NEWS: Add entry.
1466 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1467 call rl_initialize.
1468 (tui_enable): Do not call rl_initialize.
1469
7a27b85f
CG
14702019-09-18 Christian Groessler <chris@groessler.org>
1471
1472 * alpha-linux-nat.c: Include gdbarch.h.
1473
f64eea3a
SM
14742019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * ui-file.c: Include cli/cli-style.h.
1477 (term_cli_styling): Remove cli_styling declaration.
1478
e6f7f6d1
AM
14792019-09-18 Alan Modra <amodra@gmail.com>
1480
1481 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1482 to bfd_asymbol_section.
1483
1d38e9d1
AM
14842019-09-18 Alan Modra <amodra@gmail.com>
1485
1486 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1487 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1488 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1489
90d92a63
AM
14902019-09-18 Alan Modra <amodra@gmail.com>
1491
1492 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1493 * spu-linux-nat.c (spu_bfd_open): Likewise.
1494
a3d181d2
CB
14952019-09-18 Christian Biesinger <cbiesinger@google.com>
1496
1497 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1498 to bool to match definition in dwarf2read.c.
1499
491144b5
CB
15002019-09-17 Christian Biesinger <cbiesinger@google.com>
1501
1502 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1503 (print_signatures): Likewise.
1504 (trust_pad_over_xvs): Likewise.
1505 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1506 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1507 * arm-linux-nat.c (arm_apcs_32): Likewise.
1508 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1509 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1510 * arm-tdep.c (arm_debug): Likewise.
1511 (arm_apcs_32): Likewise.
1512 * auto-load.c (debug_auto_load): Likewise.
1513 (auto_load_gdb_scripts): Likewise.
1514 (global_auto_load): Likewise.
1515 (auto_load_local_gdbinit): Likewise.
1516 (auto_load_local_gdbinit_loaded): Likewise.
1517 * auto-load.h (global_auto_load): Likewise.
1518 (auto_load_local_gdbinit): Likewise.
1519 (auto_load_local_gdbinit_loaded): Likewise.
1520 * breakpoint.c (disconnected_dprintf): Likewise.
1521 (breakpoint_proceeded): Likewise.
1522 (automatic_hardware_breakpoints): Likewise.
1523 (always_inserted_mode): Likewise.
1524 (target_exact_watchpoints): Likewise.
1525 (_initialize_breakpoint): Update.
1526 * breakpoint.h (target_exact_watchpoints): Change to bool.
1527 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1528 * cli/cli-cmds.c (trace_commands): Likewise.
1529 * cli/cli-cmds.h (trace_commands): Likewise.
1530 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1531 to bool*.
1532 * cli/cli-logging.c (logging_overwrite): Change to bool.
1533 (logging_redirect): Likewise.
1534 (debug_redirect): Likewise.
1535 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1536 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1537 to bool.
1538 <boolean_option_def>: Update.
1539 (struct flag_option_def): Change default type of Context to bool
1540 from int.
1541 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1542 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1543 (get_setshow_command_value_string): Likewise.
1544 * cli/cli-style.c (cli_styling): Change to bool.
1545 (source_styling): Likewise.
1546 * cli/cli-style.h (source_styling): Likewise.
1547 (cli_styling): Likewise.
1548 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1549 to bool.
1550 * command.h (var_types): Update comment.
1551 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1552 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1553 bool.
1554 (debug_compile_cplus_scopes): Likewise.
1555 * compile/compile-internal.h (compile_debug): Likewise.
1556 * compile/compile.c (compile_debug): Likewise.
1557 (struct compile_options) <raw>: Likewise.
1558 * cp-support.c (catch_demangler_crashes): Likewise.
1559 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1560 (usr_cmd_cris_dwarf2_cfi): Likewise.
1561 * csky-tdep.c (csky_debug): Likewise.
1562 * darwin-nat.c (enable_mach_exceptions): Likewise.
1563 * dcache.c (dcache_enabled_p): Likewise.
1564 * defs.h (info_verbose): Likewise.
1565 * demangle.c (demangle): Likewise.
1566 (asm_demangle): Likewise.
1567 * dwarf-index-cache.c (debug_index_cache): Likewise.
1568 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1569 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1570 * dwarf2read.c (check_physname): Likewise.
1571 (use_deprecated_index_sections): Likewise.
1572 (dwarf_always_disassemble): Likewise.
1573 * eval.c (overload_resolution): Likewise.
1574 * event-top.c (set_editing_cmd_var): Likewise.
1575 (exec_done_display_p): Likewise.
1576 * event-top.h (set_editing_cmd_var): Likewise.
1577 (exec_done_display_p): Likewise.
1578 * exec.c (write_files): Likewise.
1579 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1580 (debug_fbsd_nat): Likewise.
1581 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1582 Likewise.
1583 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1584 <backtrace_past_entry> Likewise.
1585 * gdb-demangle.h (demangle): Likewise.
1586 (asm_demangle): Likewise.
1587 * gdb_bfd.c (bfd_sharing): Likewise.
1588 * gdbcore.h (write_files): Likewise.
1589 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1590 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1591 * gdbthread.h (print_thread_events): Likewise.
1592 * gdbtypes.c (opaque_type_resolution): Likewise.
1593 (strict_type_checking): Likewise.
1594 * gnu-nat.c (gnu_debug_flag): Likewise.
1595 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1596 * guile/scm-param.c (pascm_variable): Add boolval.
1597 (add_setshow_generic): Update.
1598 (pascm_param_value): Update.
1599 (pascm_set_param_value_x): Update.
1600 * hppa-tdep.c (hppa_debug): Change to bool..
1601 * infcall.c (may_call_functions_p): Likewise.
1602 (coerce_float_to_double_p): Likewise.
1603 (unwind_on_signal_p): Likewise.
1604 (unwind_on_terminating_exception_p): Likewise.
1605 * infcmd.c (startup_with_shell): Likewise.
1606 * inferior.c (print_inferior_events): Likewise.
1607 * inferior.h (startup_with_shell): Likewise.
1608 (print_inferior_events): Likewise.
1609 * infrun.c (step_stop_if_no_debug): Likewise.
1610 (detach_fork): Likewise.
1611 (debug_displaced): Likewise.
1612 (disable_randomization): Likewise.
1613 (non_stop): Likewise.
1614 (non_stop_1): Likewise.
1615 (observer_mode): Likewise.
1616 (observer_mode_1): Likewise.
1617 (set_observer_mode): Update.
1618 (sched_multi): Change to bool.
1619 * infrun.h (debug_displaced): Likewise.
1620 (sched_multi): Likewise.
1621 (step_stop_if_no_debug): Likewise.
1622 (non_stop): Likewise.
1623 (disable_randomization): Likewise.
1624 * linux-tdep.c (use_coredump_filter): Likewise.
1625 (dump_excluded_mappings): Likewise.
1626 * linux-thread-db.c (auto_load_thread_db): Likewise.
1627 (check_thread_db_on_load): Likewise.
1628 * main.c (captured_main_1): Update.
1629 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1630 xx2_opt, boolean_opt>: Change to bool.
1631 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1632 * maint.c (maintenance_profile_p): Likewise.
1633 (per_command_time): Likewise.
1634 (per_command_space): Likewise.
1635 (per_command_symtab): Likewise.
1636 * memattr.c (inaccessible_by_default): Likewise.
1637 * mi/mi-main.c (mi_async): Likewise.
1638 (mi_async_1): Likewise.
1639 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1640 * nat/fork-inferior.h (startup_with_shell): Likewise.
1641 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1642 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1643 * nios2-tdep.c (nios2_debug): Likewise.
1644 * or1k-tdep.c (or1k_debug): Likewise.
1645 * parse.c (parser_debug): Likewise.
1646 * parser-defs.h (parser_debug): Likewise.
1647 * printcmd.c (print_symbol_filename): Likewise.
1648 * proc-api.c (procfs_trace): Likewise.
1649 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1650 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1651 (set_parameter_value): Update.
1652 (add_setshow_generic): Update.
1653 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1654 to bool*.
1655 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1656 int*.
1657 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1658 * record-btrace.c (record_btrace_target::store_registers): Update.
1659 * record-full.c (record_full_memory_query): Change to bool.
1660 (record_full_stop_at_limit): Likewise.
1661 * record-full.h (record_full_memory_query): Likewise.
1662 * remote-notif.c (notif_debug): Likewise.
1663 * remote-notif.h (notif_debug): Likewise.
1664 * remote.c (use_range_stepping): Likewise.
1665 (interrupt_on_connect): Likewise.
1666 (remote_break): Likewise.
1667 * ser-tcp.c (tcp_auto_retry): Likewise.
1668 * ser-unix.c (serial_hwflow): Likewise.
1669 * skip.c (debug_skip): Likewise.
1670 * solib-aix.c (solib_aix_debug): Likewise.
1671 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1672 (spu_auto_flush_cache_p): Likewise.
1673 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1674 Likewise.
1675 (struct info_print_options) <quiet>: Likewise.
1676 * symfile-debug.c (debug_symfile): Likewise.
1677 * symfile.c (auto_solib_add): Likewise.
1678 (separate_debug_file_debug): Likewise.
1679 * symfile.h (auto_solib_add): Likewise.
1680 (separate_debug_file_debug): Likewise.
1681 * symtab.c (basenames_may_differ): Likewise.
1682 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1683 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1684 (struct info_types_options) <quiet>: Likewise.
1685 * symtab.h (demangle): Likewise.
1686 (basenames_may_differ): Likewise.
1687 * target-dcache.c (stack_cache_enabled_1): Likewise.
1688 (code_cache_enabled_1): Likewise.
1689 * target.c (trust_readonly): Likewise.
1690 (may_write_registers): Likewise.
1691 (may_write_memory): Likewise.
1692 (may_insert_breakpoints): Likewise.
1693 (may_insert_tracepoints): Likewise.
1694 (may_insert_fast_tracepoints): Likewise.
1695 (may_stop): Likewise.
1696 (auto_connect_native_target): Likewise.
1697 (target_stop_and_wait): Update.
1698 (target_async_permitted): Change to bool.
1699 (target_async_permitted_1): Likewise.
1700 (may_write_registers_1): Likewise.
1701 (may_write_memory_1): Likewise.
1702 (may_insert_breakpoints_1): Likewise.
1703 (may_insert_tracepoints_1): Likewise.
1704 (may_insert_fast_tracepoints_1): Likewise.
1705 (may_stop_1): Likewise.
1706 * target.h (target_async_permitted): Likewise.
1707 (may_write_registers): Likewise.
1708 (may_write_memory): Likewise.
1709 (may_insert_breakpoints): Likewise.
1710 (may_insert_tracepoints): Likewise.
1711 (may_insert_fast_tracepoints): Likewise.
1712 (may_stop): Likewise.
1713 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1714 (make_thread_apply_all_options_def_group): Change argument from int*
1715 to bool*.
1716 (thread_apply_all_command): Update.
1717 (print_thread_events): Change to bool.
1718 * top.c (confirm): Likewise.
1719 (command_editing_p): Likewise.
1720 (history_expansion_p): Likewise.
1721 (write_history_p): Likewise.
1722 (info_verbose): Likewise.
1723 * top.h (confirm): Likewise.
1724 (history_expansion_p): Likewise.
1725 * tracepoint.c (disconnected_tracing): Likewise.
1726 (circular_trace_buffer): Likewise.
1727 * typeprint.c (print_methods): Likewise.
1728 (print_typedefs): Likewise.
1729 * utils.c (debug_timestamp): Likewise.
1730 (sevenbit_strings): Likewise.
1731 (pagination_enabled): Likewise.
1732 * utils.h (sevenbit_strings): Likewise.
1733 (pagination_enabled): Likewise.
1734 * valops.c (overload_resolution): Likewise.
1735 * valprint.h (struct value_print_options) <prettyformat_arrays,
1736 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1737 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1738 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1739 Likewise.
1740 * windows-nat.c (new_console): Likewise.
1741 (cygwin_exceptions): Likewise.
1742 (new_group): Likewise.
1743 (debug_exec): Likewise.
1744 (debug_events): Likewise.
1745 (debug_memory): Likewise.
1746 (debug_exceptions): Likewise.
1747 (useshell): Likewise.
1748 * windows-tdep.c (maint_display_all_tib): Likewise.
1749 * xml-support.c (debug_xml): Likewise.
1750
f1b620e9
MG
17512019-09-17 Mike Gulick <mgulick@mathworks.com>
1752
1753 * source.c (prepare_path_for_appending): New function.
1754 (openp): Make use of new function.
1755 (find_and_open_source): Search for the compilation directory and
1756 source file as a relative path beneath the directory search path.
1757
67f3ed6a
AB
17582019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * source-cache.c (source_cache::get_line_charpos): Catch
1761 exceptions and return false, this matches the behaviour documented
1762 in the header file.
1763
74332189
JB
17642019-09-17 Joel Brobecker <brobecker@adacore.com>
1765
1766 * ada-tasks.c (info_task): Remove quoting of the task's name.
1767
f2f24aa9
CB
17682019-09-16 Christian Biesinger <cbiesinger@google.com>
1769
1770 * symfile.c (auto_solib_add): Replace comment with a reference
1771 to the header file.
1772
6a062a93
CB
17732019-09-14 Christian Biesinger <cbiesinger@google.com>
1774
1775 * NEWS: Mention that gdb can now be compiled with Python 3
1776 on Windows.
1777
ec6c8338
AB
17782019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * maint.c (maint_print_section_data::maint_print_section_data):
1781 Force use of 'float log10 (float)' by casting the argument to
1782 float.
1783
aa17805f
AB
17842019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * maint.c: Add 'cmath' include.
1787 (struct maint_print_section_data): New structure.
1788 (print_section_index): New function.
1789 (print_bfd_section_info): Add header comment, small whitespace
1790 cleanup, and update to call new print_section_index function.
1791 (print_objfile_section_info): Likewise.
1792 (maint_obj_section_from_bfd_section): New function.
1793 (print_bfd_section_info_maybe_relocated): New function.
1794 (maintenance_info_sections): Add header comment, always use
1795 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1796
3dd9bb46
AB
17972019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1800 inner scope, add check that the objfile has psymtabs before
1801 checking psymtabs_addrmap.
1802 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1803
4993045d
PW
18042019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1805
1806 * NEWS: Announce that Ada task names are now shown at more places,
1807 and between quotes (except in info task output).
1808 * gdb/ada-tasks.c (task_to_str): New function.
1809 (display_current_task_id): Call task_to_str.
1810 (task_command_1): Likewise.
1811 (print_ada_task_info): In non-mi mode, Properly align headers and data
1812 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1813
7a289707
RO
18142019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815
1816 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1817 prstatus.pr_lwp.pr_info instead of making it up.
1818
f2aec7f6
CB
18192019-09-11 Christian Biesinger <cbiesinger@google.com>
1820
1821 * auto-load.c (auto_load_expand_dir_vars): Update.
1822 * defs.h (gdb_datadir): Change to std::string.
1823 (python_libdir): Likewise.
1824 (relocate_gdb_directory): Change return type to std::string.
1825 * guile/guile.c (gdbscm_data_directory): Update.
1826 (initialize_scheme_side): Update.
1827 * jit.c (jit_reader_dir): Change to std::string.
1828 (jit_reader_load_command): Update.
1829 * main.c (gdb_datadir): Change to std::string.
1830 (python_libdir): Likewise.
1831 (set_gdb_data_directory): Update.
1832 (relocate_path): Change to return std::string.
1833 (relocate_gdb_directory): Change to return std::string.
1834 (relocate_gdbinit_path_maybe_in_datadir): Update.
1835 (captured_main_1): Update.
1836 * python/python.c (do_start_initialization): Update.
1837 * top.c (show_gdb_datadir): Update.
1838 * xml-syscall.c (xml_init_syscalls_info): Update.
1839 (init_syscalls_info): Update.
1840
9224a013
CB
18412019-09-11 Christian Biesinger <cbiesinger@google.com>
1842
1843 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1844 out of get_init_files.
1845 (get_init_files): Update.
1846
f48cd836
CB
18472019-09-11 Christian Biesinger <cbiesinger@google.com>
1848
1849 * main.c (get_init_files): Change to use std::string.
1850 (captured_main_1): Update.
1851 (print_gdb_help): Update.
1852
9cab7ecd
AT
18532019-09-11 Ali Tamur <tamur@google.com>
1854
1855 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1856 implementation.
1857
67547d89
CB
18582019-09-11 Christian Biesinger <cbiesinger@google.com>
1859
1860 * dbxread.c (read_dbx_symtab): Update.
1861 * dwarf2read.c (load_partial_dies): Update.
1862 * mdebugread.c (parse_partial_symbols): Update.
1863 (handle_psymbol_enumerators): Update.
1864 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1865 * psymtab.c (add_psymbol_to_bcache): Likewise.
1866 (add_psymbol_to_list): Likewise.
1867 * symtab.c (symbol_set_names): Likewise.
1868 * symtab.h (symbol_set_names): Likewise.
1869 * xcoffread.c (scan_xcoff_symtab): Update.
1870
64b2d4a0
TT
18712019-09-11 Tom Tromey <tom@tromey.com>
1872
1873 * symfile-mem.c (symbol_file_add_from_memory): Use
1874 bfd_set_filename.
1875 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1876 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1877
3b00ef10
TT
18782019-09-10 Tom Tromey <tromey@adacore.com>
1879
1880 * dwarf-index-write.c (write_psymbols): Extend error message.
1881 (debug_names::insert): Add Ada code.
1882 (debug_names::write_psymbols): Remove Ada check.
1883 (debug_names) <m_string_obstack>: New member.
1884 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1885 (gdb_index_symbol_name_matcher::matches): Remove.
1886 (mapped_index_base::find_name_components_bounds): Add "lang"
1887 parameter.
1888 (mapped_index_base::build_name_components): Also split names
1889 according to Ada syntax.
1890 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1891 type of "match_callback".
1892 (check_match, check_find_bounds_finds)
1893 (dw2_expand_symtabs_matching): Update.
1894 (dw2_debug_names_iterator): Add new constructor.
1895 (dw2_debug_names_map_matching_symbols): New function.
1896 (dw2_debug_names_expand_symtabs_matching): Update.
1897 (dwarf2_debug_names_functions): Use
1898 dw2_debug_names_map_matching_symbols.
1899
aa391654
TT
19002019-09-10 Tom Tromey <tromey@adacore.com>
1901
1902 * dwarf2read.c (dw2_get_file_names_reader): Add the
1903 CU's file name to the results.
1904
b054970d
TT
19052019-09-10 Tom Tromey <tromey@adacore.com>
1906
1907 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1908 map_matching_symbols. Update.
1909 * dwarf2read.c (dw2_map_matching_symbols): Update.
1910 * psymtab.c (match_partial_symbol): Change type; update.
1911 (psym_map_matching_symbols): Likewise.
1912 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1913 type; update.
1914 * symfile.h (struct quick_symbol_functions)
1915 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1916 Remove "match".
1917
6a3dbf1b
TT
19182019-09-10 Tom Tromey <tromey@adacore.com>
1919
1920 * psymtab.c (map_block): Remove.
1921 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1922 * symtab.c (iterate_over_symbols_terminated): New function.
1923 * symtab.c (iterate_over_symbols_terminated): Declare.
1924
6969f124
TT
19252019-09-10 Tom Tromey <tromey@adacore.com>
1926
1927 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1928 * language.h (struct language_defn) <la_iterate_over_symbols>:
1929 Return bool.
1930 * symtab.c (iterate_over_symbols): Return bool.
1931 * symtab.h (iterate_over_symbols): Return bool.
1932
199b4314
TT
19332019-09-10 Tom Tromey <tromey@adacore.com>
1934
1935 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1936 (add_nonlocal_symbols): Update.
1937 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1938 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1939 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1940 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1941 Change type of "callback". Remove "data".
1942
a084a2a6
AT
1943
19442019-09-09 Ali Tamur <tamur@google.com>
1945
1946 * dwarf2read.c (comp_unit_head): Update comment.
1947 (dwarf2_dwo_name): New function declaration.
1948 (dwarf_unit_type_name): New function declaration.
1949 (read_comp_unit_head): Add support for new compilation units,
1950 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1951 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1952 (currently named as "signature") in their header. Also clarify error
1953 messages.
1954 (lookup_dwo_id): New function. Returns the dwo id of the given
1955 compile unit.
1956 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1957 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1958 functions.
1959 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1960 (dwarf2_dwo_name): Get the dwo name if present.
1961 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1962 purposes.
1963
25a2915e
TT
19642019-09-09 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1967
e4df0874
PW
19682019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1969
1970 * python/python.c (do_start_initialization): Make progname_copy static,
1971 to avoid a leak report.
1972
8634b462
TT
19732019-09-08 Tom Tromey <tom@tromey.com>
1974
1975 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1976
c7f839cb
SM
19772019-09-07 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1980 Change type to gdb::optional<block_enum>.
1981 (dw2_symtab_iter_init): Change block_index parameter type
1982 to gdb::optional<block_enum>.
1983 (dw2_lookup_symbol): Change block_index parameter
1984 type to block_enum.c
1985 (dw2_debug_names_lookup_symbol): Likewise.
1986 * psymtab.c (psym_lookup_symbol): Likewise.
1987 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1988 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1989 Likewise.
1990
ead0e69a
CB
19912019-09-06 Christian Biesinger <cbiesinger@google.com>
1992
1993 * defs.h (relocate_gdb_directory): Change int to bool in
1994 signature and rename flag to relocatable.
1995 * main.c (relocate_path): Likewise.
1996 (relocate_gdb_directory): Likewise.
1997
b16c44de
AM
19982019-09-06 Alan Modra <amodra@gmail.com>
1999
2000 * coffread.c (coff_symfile_read): Constify filename variable.
2001 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2002 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2003 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2004 * solib.c (reload_shared_libraries_1): Likewise.
2005 * symfile.c (reread_symbols): Likewise.
2006 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2007 * solib-darwin.c (darwin_bfd_open): Likewise.
2008 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2009
06ff036e
AB
20102019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2013 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2014
4e962e74
TT
20152019-09-03 Tom Tromey <tromey@adacore.com>
2016
2017 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2018 types.
2019 (has_negatives): Unbias a range type bound.
2020 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2021 * gdbtypes.c (operator==): Handle new field.
2022 (create_range_type): Add "bias" parameter.
2023 (create_static_range_type, resolve_dynamic_range): Update.
2024 * gdbtypes.h (struct range_bounds) <bias>: New member.
2025 (create_range_type): Add bias parameter.
2026 * printcmd.c (print_scalar_formatted): Unbias range types.
2027 * value.c (unpack_long): Unbias range types.
2028 (pack_long): Bias range types.
2029
d90b8f26
AH
20302019-09-02 Alan Hayward <alan.hayward@arm.com>
2031
2032 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2033 probe arguments.
2034
fe01123e
AH
20352019-09-02 Alan Hayward <alan.hayward@arm.com>
2036
2037 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2038 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2039 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2040 (compile_probe_arg): Likewise.
2041 * probe.h (get_argument_count): Likewise.
2042 * solib-svr4.c (solib_event_probe_action): Likewise.
2043 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2044
e661ef01
AH
20452019-09-02 Alan Hayward <alan.hayward@arm.com>
2046
2047 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2048 code to here...
2049 (svr4_create_solib_event_breakpoints): ...from here.
2050
47a536d9
SDJ
20512019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2052
2053 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2054 suffix from warning message.
2055
d6a00eba
TT
20562019-08-30 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-winsource.h (struct tui_source_window_base)
2059 <refresh_all>: Don't declare.
2060 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2061 Remove.
2062 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2063 tui_show_locator_content.
2064 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2065 declare.
2066 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2067 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2068 declare.
2069
55b2657b
TT
20702019-08-30 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2073
12a8555a
TT
20742019-08-30 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2077 Remove unnecessary forward declarations.
2078
900ac242
TT
20792019-08-30 Tom Tromey <tom@tromey.com>
2080
2081 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2082 rerender.
2083 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2084 tui_show_locator_content.
2085
99ab33fb
TT
20862019-08-30 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2089 (tui_locator_window::rerender): Rewrite using body of previous
2090 tui_show_locator_content.
2091
e594a5d1
TT
20922019-08-30 Tom Tromey <tom@tromey.com>
2093
2094 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2095 set_locator_fullname>: New methods.
2096 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2097 Rename from tui_set_locator_fullname.
2098 (tui_locator_window::set_locator_info): Rename from
2099 tui_set_locator_info. Return bool.
2100 (tui_update_locator_fullname, tui_show_frame_info): Update.
2101
715bb467
TT
21022019-08-30 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2105
772f3f03
TT
21062019-08-30 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2109 call touchwin.
2110
108e13ab
TT
21112019-08-30 Tom Tromey <tom@tromey.com>
2112
2113 * tui/tui-wingeneral.c (box_win): Assume win_info and
2114 win_info->handle cannot be NULL.
2115
cdaa6eb4
TT
21162019-08-30 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2119 refresh_window>: Declare.
2120 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2121 resize.
2122 (tui_data_item_window::rerender): Rename from
2123 tui_display_register.
2124 (tui_data_item_window::refresh_window): New method.
2125 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2126 no-op.
2127
89df7f90
TT
21282019-08-30 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2131 regs_column_count, current_group>: Move later. Now private.
2132 <get_current_group>: New method.
2133 * tui/tui-regs.c (tui_reg_command): Update.
2134 * tui/tui-layout.c (tui_set_layout): Update.
2135
1bf2866a
TT
21362019-08-30 Tom Tromey <tom@tromey.com>
2137
2138 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2139 (tui_data_window::rerender): Don't call
2140 check_and_display_highlight_if_needed.
2141 (tui_data_window::refresh_all): Remove call to
2142 erase_data_content.
2143
0670413d
TT
21442019-08-30 Tom Tromey <tom@tromey.com>
2145
2146 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2147 (tui_data_window::display_registers_from)
2148 (tui_data_window::display_reg_element_at_line)
2149 (tui_data_window::display_registers_from_line): Remove checks of
2150 "empty".
2151
18bb55c7
TT
21522019-08-30 Tom Tromey <tom@tromey.com>
2153
2154 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2155 Don't declare.
2156 * tui/tui-regs.c (tui_data_window::show_registers): Call
2157 rerender.
2158 (tui_data_window::rerender): Rename from display_all_data.
2159 (tui_data_window::rerender): Remove old implementation.
2160
1f6d2f10
TT
21612019-08-30 Tom Tromey <tom@tromey.com>
2162
2163 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2164 text.
2165 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2166
16d01f9c
BW
21672019-08-29 Bernhard Wodok <barto@gmx.net>
2168 Sergio Durigan Junior <sergiodj@redhat.com>
2169
2170 PR win32/24284
2171 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2172
d8f27c60
AB
21732019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2176 when searching for types.
2177
1f20c35e
AB
21782019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * f-lang.c (f_language_defn): Use f_print_typedef.
2181 * f-lang.h (f_print_typedef): Declare.
2182 * f-typeprint.c (f_print_typedef): Define.
2183
550105b7
CB
21842019-08-27 Christian Biesinger <cbiesinger@google.com>
2185
2186 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2187
4acfdd20
AB
21882019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * cli/cli-utils.c (info_print_options_defs): Delete.
2191 (make_info_print_options_def_group): Delete.
2192 (extract_info_print_options): Delete.
2193 (info_print_command_completer): Delete.
2194 (info_print_args_help): Add extra parameter, and optionally
2195 include text about -n flag.
2196 * cli/cli-utils.h (struct info_print_options): Delete.
2197 (extract_info_print_options): Delete declaration.
2198 (info_print_command_completer): Delete declaration.
2199 (info_print_args_help): Add extra parameter, extend header
2200 comment.
2201 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2202 search_symbols.
2203 * stack.c (struct info_print_options): New type.
2204 (info_print_options_defs): New file scoped variable.
2205 (make_info_print_options_def_group): New static function.
2206 (info_print_command_completer): New static function.
2207 (info_locals_command): Update to use new local functions.
2208 (info_args_command): Likewise.
2209 (_initialize_stack): Add extra parameter to calls to
2210 info_print_args_help.
2211 * symtab.c (search_symbols): Add extra parameter, use this to
2212 possibly excluse non-debug symbols.
2213 (symtab_symbol_info): Add extra parameter, which is passed on to
2214 search_symbols.
2215 (struct info_print_options): New type.
2216 (info_print_options_defs): New file scoped variable.
2217 (make_info_print_options_def_group): New static function.
2218 (info_print_command_completer): New static function.
2219 (info_variables_command): Update to use local functions, and pass
2220 extra parameter through to symtab_symbol_info.
2221 (info_functions_command): Likewise.
2222 (info_types_command): Pass additional argument through to
2223 symtab_symbol_info.
2224 (rbreak_command): Pass extra argument to search_symbols.
2225 (_initialize_symtab): Add extra arguments for calls to
2226 info_print_args_help, and update help text for 'info variables',
2227 'whereis', and 'info functions' commands.
2228 * symtab.h (search_symbols): Add extra argument to declaration.
2229 * NEWS: Mention new flags.
2230
9aa55206
CB
22312019-08-26 Christian Biesinger <cbiesinger@google.com>
2232
2233 * symtab.c (lookup_static_symbol): Call the new function (and move
2234 it down to be next to lookup_global_symbol).
2235 (struct global_sym_lookup_data): Add block_enum member and rename to...
2236 (struct global_or_static_sym_lookup_data): ...this.
2237 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2238 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2239 (lookup_symbol_global_or_static_iterator_cb): ...this.
2240 (lookup_global_or_static_symbol): New function.
2241 (lookup_global_symbol): Call new function.
2242
5c31b358
TV
22432019-08-26 Tom de Vries <tdevries@suse.de>
2244
2245 PR c++/24852
2246 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2247 when pc_probe.prob == NULL.
2248
23c13d42
SM
22492019-08-25 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2252 variable symbol_linkage to symbol_linkage_.
2253
beadd3e8
SM
22542019-08-25 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2257 represent whether the symbol is static, dynamic, or we don't
2258 know.
2259
e3ec872f
YS
22602019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2261
2262 * gdb/rx-tdep.c (rx_register_names): New.
2263 (rx_register_name): Delete.
2264 (rx_psw_type): Delete.
2265 (rx_fpsw_type): Delete.
2266 (rx_register_type): Delete.
2267 (rx_gdbarch_init): Convert target-descriptions.
2268 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2269 * gdb/features/Makefile: Add rx.xml.
2270 * gdb/features/rx.xml: New.
2271 * gdb/features/rx.c: Generated.
2272 * gdb/NEWS: Mention target description support.
2273
d0509ba4
CB
22742019-08-22 Christian Biesinger <cbiesinger@google.com>
2275
2276 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2277 *slot_ptr.
2278
2d41fa11
SDJ
22792019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2280
2281 * configure.ac: Don't check for 'dlfcn.h' (moved to
2282 gdbsupport/common.m4).
2283 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2284 'gdbsupport/'.
2285 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2286 * compile/compile-c-support.c: Include
2287 'gdbsupport/gdb-dlfcn.h'.
2288 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2289 * gdb-dlfcn.c: Move to...
2290 * gdbsupport/gdb-dlfcn.c: ... here.
2291 * gdb-dlfcn.h: Move to...
2292 * gdbsupport/gdb-dlfcn.h: ... here.
2293
de8af808
SL
22942019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2295
2296 * nios2-tdep.c (struct reg_value): Improve comments. Make
2297 the offset field signed.
2298
27204489
CB
22992019-08-22 Christian Biesinger <cbiesinger@google.com>
2300
2301 * python/lib/gdb/__init__.py (_execute_file): New function.
2302 * python/python.c (python_run_simple_file): Call gdb._execute_file
2303 on Windows.
2304
43771869
AB
23052019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2308 all uses as this was never set to anything but a zero value.
2309
26c957f1
PA
23102019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2311
2312 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2313
c07aae6e
CB
23142019-08-21 Christian Biesinger <cbiesinger@google.com>
2315
2316 * tui/tui-data.h (tui_gen_win_info): Add an =default
2317 move constructor, required by some GCC versions.
2318
3960cb7a
JF
23192019-08-21 Jinke Fan <fanjinke51@yeah.net>
2320
2321 * go32-nat.c (go32_sysinfo): Add hygon_p.
2322
04c72a68
TT
23232019-08-20 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2326 line_from_reg_element_no, first_reg_element_no_inline,
2327 display_all_data, delete_data_content_windows,
2328 erase_data_content>: Now private.
2329
072272ce
TT
23302019-08-20 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2333 (tui_unhighlight_win, tui_highlight_win)
2334 (tui_win_info::make_window): Update.
2335 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2336
973961bd
TT
23372019-08-20 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2340 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2341 (MAX_PID_WIDTH): Move to tui-stack.c.
2342 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2343 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2344 (MAX_PID_WIDTH): Move from tui-data.h.
2345
ab0e1f1a
TT
23462019-08-20 Tom Tromey <tom@tromey.com>
2347
2348 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2349 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2350 (box_win): Update.
2351 (tui_gen_win_info::make_window): Rename from tui_make_window.
2352 (tui_win_info::make_window): New method.
2353 (tui_gen_win_info::make_visible): Update.
2354 * tui/tui-source.c (tui_source_window::set_contents): Update.
2355 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2356 (tui_data_window::display_registers_from): Update.
2357 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2358 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2359 Declare.
2360 <can_box>: Remove.
2361 <title>: Remove.
2362 (struct tui_win_info) <make_window>: Declare.
2363 <can_box>: Now virtual.
2364 <title>: New member.
2365 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2366 * tui/tui-command.c (tui_cmd_window::resize): Update.
2367
100c2bf3
TT
23682019-08-20 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2371 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2372 (tui_data_window::check_register_values): Update.
2373
fa4dc567
TT
23742019-08-20 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-regs.h (struct tui_data_window): Use
2377 DISABLE_COPY_AND_ASSIGN.
2378 <regs_content>: Change type, removing unique_ptr.
2379 <tui_data_window>: Add move constructor.
2380 * tui/tui-regs.c (tui_data_window::show_registers)
2381 (tui_data_window::show_register_group)
2382 (tui_data_window::display_registers_from)
2383 (tui_data_window::display_registers_from)
2384 (tui_data_window::first_data_item_displayed)
2385 (tui_data_window::delete_data_content_windows)
2386 (tui_data_window::rerender, tui_data_window::refresh_window)
2387 (tui_data_window::check_register_values): Update.
2388
ca02d7c8
TT
23892019-08-20 Tom Tromey <tom@tromey.com>
2390
2391 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2392 show_register_group>: Declare.
2393 (tui_show_register_group): Don't declare.
2394 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2395 tui_show_registers.
2396 (tui_data_window::show_register_group): Rename from
2397 tui_show_register_group.
2398 (tui_data_window::check_register_values, tui_reg_command):
2399 Update.
2400 * tui/tui-layout.c (tui_set_layout): Update.
2401
63356bfd
TT
24022019-08-20 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2405 Declare.
2406 (tui_check_register_values): Don't declare.
2407 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2408 from tui_check_register_values.
2409 * tui/tui-hooks.c (tui_register_changed): Update.
2410
42cc14a7
TT
24112019-08-20 Tom Tromey <tom@tromey.com>
2412
2413 * tui/tui-regs.c (tui_reg_layout): Move later.
2414 (tui_show_registers): Don't enable TUI mode or change layout.
2415
b9ad3686
TT
24162019-08-20 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-regs.h (struct tui_data_item_window)
2419 <~tui_data_item_window>: Remove.
2420 <content>: Now a unique_xmalloc_ptr.
2421 * tui/tui-regs.c (tui_register_format): Return a
2422 unique_xmalloc_ptr.
2423 (tui_get_register): Update.
2424 (~tui_data_item_window): Remove.
2425 (tui_data_window::display_registers_from, tui_display_register):
2426 Update.
2427 * tui/tui-io.h (tui_expand_tabs): Update.
2428 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2429 Remove "col" parameter.
2430
8e114aab
TT
24312019-08-20 Tom Tromey <tom@tromey.com>
2432
2433 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2434 field.
2435 * tui/tui-regs.c (~tui_data_item_window): Update.
2436
1a4f81dd
TT
24372019-08-20 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2440 earlier.
2441
0f8d8876
TT
24422019-08-20 Tom Tromey <tom@tromey.com>
2443
2444 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2445
605dc2c2
TT
24462019-08-20 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui-source.h (struct tui_source_window): Update.
2449 * tui/tui-regs.c (tui_show_registers): Update.
2450 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2451 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2452 (NO_REGS_STRING): Remove defines.
2453
aedbe3bb
CM
24542019-08-20 Conrad Meyer <cem@FreeBSD.org>
2455
2456 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2457 unnecessary thread walk if remote doesn't support the packet.
2458
7ce8f214
TT
24592019-08-19 Tom Tromey <tromey@adacore.com>
2460
2461 * python/py-value.c (value_has_field): Fix indentation.
2462
f21c2bd7
TT
24632019-08-19 Tom Tromey <tromey@adacore.com>
2464
2465 * printcmd.c (do_one_display, info_display_command): Update.
2466 * block.h (contained_in): Return bool. Add allow_nested
2467 parameter.
2468 * block.c (contained_in): Return bool. Add allow_nested
2469 parameter.
2470
d806ea2d
TT
24712019-08-19 Tom Tromey <tom@tromey.com>
2472
2473 * configure: Rebuild.
2474 * configure.ac: Disallow the combination of -static-libstdc++ and
2475 source highlight.
2476 * source-cache.c (get_language_name): Handle rust.
2477 (source_cache::get_source_lines): Ignore highlighting exceptions.
2478
398fdd60
TT
24792019-08-16 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2482 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2483 (struct tui_source_window_base) <make_visible, refresh_window,
2484 resize>: Remove methods.
2485 <execution_info>: Remove field.
2486 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2487 (tui_show_source_line, tui_source_window_base)
2488 (~tui_source_window_base): Update.
2489 (tui_source_window_base::resize)
2490 (tui_source_window_base::make_visible)
2491 (tui_source_window_base::refresh_window): Remove.
2492 (tui_source_window_base::update_exec_info): Update.
2493 * tui/tui-source.c (tui_source_window::set_contents): Update.
2494 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2495
e699d331
TT
24962019-08-16 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2499 deprecated_query_hook.
2500
bb01dbfc
TT
25012019-08-16 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2504 (tui_update_source_windows_with_line): Update.
2505 * tui/tui-source.h (struct tui_source_window)
2506 <show_symtab_source>: Declare.
2507 (tui_show_symtab_source): Don't declare.
2508 * tui/tui-source.c (tui_show_symtab_source): Rename from
2509 tui_show_symtab_source.
2510
81c82c4b
TT
25112019-08-16 Tom Tromey <tom@tromey.com>
2512
2513 * tui/tui-winsource.h (struct tui_source_window_base)
2514 <set_contents>: Declare.
2515 * tui/tui-winsource.c
2516 (tui_source_window_base::update_source_window_as_is): Update.
2517 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2518 Declare.
2519 (tui_set_source_content): Don't declare.
2520 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2521 tui_set_source_content.
2522 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2523 Declare.
2524 (tui_set_disassem_content): Don't declare.
2525 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2526 tui_set_disassem_content.
2527
2ddaf614
TT
25282019-08-16 Tom Tromey <tom@tromey.com>
2529
2530 * tui/tui-winsource.h (struct tui_source_window_base)
2531 <update_breakpoint_info>: Declare.
2532 (tui_update_breakpoint_info): Don't declare.
2533 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2534 (tui_update_all_breakpoint_info): Update.
2535 (tui_source_window_base::update_breakpoint_info): Rename from
2536 tui_update_breakpoint_info.
2537 (tui_source_window_base::update_exec_info): Update.
2538
017f9828
TT
25392019-08-16 Tom Tromey <tom@tromey.com>
2540
2541 * tui/tui-winsource.h (struct tui_source_window_base)
2542 <update_source_window>: Declare.
2543 (tui_update_source_window): Don't declare.
2544 * tui/tui-winsource.c
2545 (tui_source_window_base::update_source_window): Rename from
2546 tui_update_source_window.
2547 (tui_source_window_base::rerender): Update.
2548 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2549 * tui/tui-disasm.c (tui_show_disassem)
2550 (tui_show_disassem_and_update_source)
2551 (tui_disasm_window::maybe_update): Update.
2552
ed8358e9
TT
25532019-08-16 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-winsource.h (struct tui_source_window_base)
2556 <update_source_window_as_is>: Declare.
2557 (tui_update_source_window_as_is): Don't declare.
2558 * tui/tui-winsource.c (tui_update_source_window): Update
2559 (tui_source_window_base::update_source_window_as_is): Rename from
2560 tui_update_source_window_as_is.
2561 (tui_source_window_base::refill): Update.
2562 * tui/tui-source.c (tui_show_symtab_source): Update.
2563 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2564 Update.
2565
20149b6b
TT
25662019-08-16 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-winsource.h (tui_update_source_window)
2569 (tui_update_source_window_as_is): Remove "noerror" parameter.
2570 * tui/tui-winsource.c (tui_update_source_window)
2571 (tui_update_source_window_as_is): Remove "noerror" parameter.
2572 (tui_update_source_windows_with_addr)
2573 (tui_update_source_windows_with_line)
2574 (tui_source_window_base::rerender)
2575 (tui_source_window_base::refill): Update.
2576 * tui/tui-source.h (tui_set_source_content)
2577 (tui_show_symtab_source): Remove "noerror" parameter.
2578 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2579 parameter.
2580 (tui_show_symtab_source): Likewise.
2581 (tui_source_window::maybe_update): Update.
2582 * tui/tui-disasm.c (tui_show_disassem)
2583 (tui_show_disassem_and_update_source)
2584 (tui_disasm_window::do_scroll_vertical)
2585 (tui_disasm_window::maybe_update): Update.
2586
2d83e710
TT
25872019-08-16 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui.c (tui_is_window_visible): Update.
2590 * tui/tui-wingeneral.c (tui_make_window)
2591 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2592 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2593 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2594 (tui_set_win_height_command, parse_scrolling_args): Update.
2595 * tui/tui-source.c (tui_source_window::style_changed): Update.
2596 * tui/tui-regs.c (tui_show_registers)
2597 (tui_data_window::first_data_item_displayed)
2598 (tui_data_window::delete_data_content_windows)
2599 (tui_check_register_values, tui_reg_command): Update.
2600 * tui/tui-disasm.c (tui_show_disassem): Update.
2601 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2602 method.
2603 <is_visible>: Remove field.
2604 * tui/tui-data.c (tui_next_win, tui_prev_win)
2605 (tui_delete_invisible_windows): Update.
2606
d4ab829a
TT
26072019-08-16 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-winsource.h (struct tui_source_window_base)
2610 <m_has_locator>: Remove.
2611 * tui/tui-layout.c (show_source_disasm_command, show_data)
2612 (show_source_or_disasm_and_command): Update.
2613
aa7ca1bb
AH
26142019-08-16 Alan Hayward <alan.hayward@arm.com>
2615
2616 * NEWS (Other MI changes): New subsection.
2617 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2618 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2619 * arch-utils.c (default_get_pc_address_flags): New function.
2620 * arch-utils.h (default_get_pc_address_flags): New declaration.
2621 * gdbarch.sh: Add get_pc_address_flags.
2622 * gdbarch.c: Regenerate.
2623 * gdbarch.h: Likewise.
2624 * stack.c (print_pc): New function.
2625 (print_frame_info) (print_frame): Call print_pc.
2626
6eac171f
TV
26272019-08-16 Tom de Vries <tdevries@suse.de>
2628
2629 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2630 print_objfile_section_info.
2631
3df505f6
TT
26322019-08-15 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2635 calling update_cmdwin_start_line.
2636 * tui/tui-winsource.h (struct tui_source_window_base)
2637 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2638 <rerender>: Declare.
2639 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2640 Call rerender.
2641 (tui_source_window_base::set_new_height): Remove.
2642 (tui_source_window_base::rerender): Rename from
2643 do_make_visible_with_new_height.
2644 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2645 resize method.
2646 (tui_win_info::make_invisible_and_set_new_height)
2647 (tui_win_info::make_visible_with_new_height): Remove.
2648 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2649 Declare.
2650 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2651 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2652 do_make_visible_with_new_height>: Don't declare.
2653 <rerender>: Declare.
2654 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2655 set_new_height.
2656 (tui_data_window::do_make_visible_with_new_height): Remove.
2657 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2658 call tui_show_locator_content.
2659 (tui_gen_win_info::resize): Call rerender.
2660 (show_source_or_disasm_and_command): Don't call
2661 tui_show_locator_content.
2662 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2663 method.
2664 (struct tui_win_info) <rerender>: Declare.
2665 <set_new_height, make_invisible_and_set_new_height,
2666 make_visible_with_new_height>: Don't declare.
2667 * tui/tui-data.c (tui_win_list::rerender): New method.
2668 * tui/tui-command.h (struct tui_cmd_window)
2669 <do_make_visible_with_new_height>: Don't declare.
2670 * tui/tui-command.c
2671 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2672
272560b5
TT
26732019-08-15 Tom Tromey <tromey@adacore.com>
2674
2675 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2676 * ada-lang.c (ada_enum_name): Likewise.
2677
08235187
CB
26782019-08-15 Christian Biesinger <cbiesinger@google.com>
2679
2680 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2681 leading underscore.
2682 (GdbOutputErrorFile): Likewise.
2683 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2684 accordingly.
2685 (execute_unwinders): Rename to have a leading underscore.
2686 (auto_load_packages): Likewise.
2687 (global scope): Adjust call to auto_load_packages accordingly.
2688 (GdbSetPythonDirectory): Likewise.
2689 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2690 instead of execute_unwinders.
2691
db502012
TT
26922019-08-15 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2695 (show_data): Don't change window visibility.
2696 (tui_gen_win_info::resize): Remove special case for command
2697 window. Use wresize, when available.
2698 (show_source_or_disasm_and_command): Don't change window
2699 visibility.
2700 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2701 <make_visible>: New method.
2702 * tui/tui-command.c (tui_cmd_window::resize): New method.
2703
3891b65e
TT
27042019-08-15 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2707 (struct tui_source_windows): New.
2708 * tui/tui-winsource.c (tui_display_main): Update.
2709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2710 (new_height_ok, parse_scrolling_args): Update.
2711 * tui/tui-layout.c (show_layout, show_data): Update.
2712 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2713 (tui_add_to_source_windows): Don't declare.
2714 * tui/tui-data.c (source_windows, tui_source_windows)
2715 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2716
ee556432
TT
27172019-08-15 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2720 Rename from reset.
2721 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2722 * tui/tui-layout.c (show_source_disasm_command, show_data):
2723 Update.
2724 (tui_gen_win_info::resize): Rename.
2725 (show_source_or_disasm_and_command): Update.
2726 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2727 reset.
2728
46f438e3
TT
27292019-08-15 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2732 * tui/tui-interp.c (tui_interp::init): Don't call
2733 tui_initialize_static_data.
2734 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2735
f4ce562c
TT
27362019-08-15 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2739 examine tui_win_list.
2740
c398c3d0
TT
27412019-08-15 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2744 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2745 tui_clear_source_content.
2746 (tui_clear_source_content): Remove.
2747 (tui_source_window_base::do_erase_source_content): Hoist call to
2748 content.clear().
2749 * tui/tui-stack.c (tui_show_frame_info): Don't call
2750 tui_clear_source_content.
2751
e25d2004
TT
27522019-08-15 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-winsource.h (struct tui_source_window_base)
2755 <do_erase_source_content>: New method.
2756 <erase_source_content>: New method.
2757 (tui_erase_source_content): Don't declare.
2758 * tui/tui-winsource.c (tui_clear_source_content): Update.
2759 (tui_source_window_base::do_erase_source_content): Rename from
2760 tui_erase_source_content.
2761 (tui_source_window_base::show_source_content): Update.
2762 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2763 * tui/tui-source.h (struct tui_source_window)
2764 <erase_source_content>: New method.
2765 * tui/tui-disasm.h (struct tui_disasm_window)
2766 <erase_source_content>: New method.
2767
002f15c2
TT
27682019-08-15 Tom Tromey <tom@tromey.com>
2769
2770 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2771 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2772 constructor.
2773 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2774 * tui/tui-source.c (tui_set_source_content): Update.
2775 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2776
c9033fe8
TT
27772019-08-15 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2780 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2781 tui-source.c.
2782 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2783 Declare.
2784 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2785 method.
2786 (tui_source_window::maybe_update): Update.
2787
088f37dd
TT
27882019-08-15 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2791 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2792 tui-disasm.c.
2793 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2794 Declare.
2795 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2796 method.
2797 (tui_disasm_window::maybe_update): Update.
2798
a54700c6
TT
27992019-08-15 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-winsource.h (struct tui_source_window_base)
2802 <maybe_update>: Declare.
2803 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2804 method.
2805 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2806 Declare.
2807 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2808 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2809 Declare.
2810 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2811
e2a678a5
TT
28122019-08-15 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2815
f2dda477
TT
28162019-08-15 Tom Tromey <tom@tromey.com>
2817
2818 * tui/tui-wingeneral.c: Include tui-stack.h.
2819 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2820 (struct tui_locator_window): Move from tui-data.h.
2821 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2822 (tui_initialize_static_data): Move from tui-data.c.
2823 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2824 (struct tui_locator_window): Move to tui-stack.c.
2825 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2826 (tui_initialize_static_data): Move to tui-stack.c.
2827
ed4a1084
TT
28282019-08-15 Tom Tromey <tom@tromey.com>
2829
2830 * tui/tui-layout.c (show_source_disasm_command)
2831 (show_source_or_disasm_and_command): Use make_visible method, not
2832 tui_make_window.
2833 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2834 Remove.
2835
65962b20
TT
28362019-08-15 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui-wingeneral.h (tui_make_window): Update.
2839 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2840 parameter.
2841 (tui_gen_win_info::make_visible): Update.
2842 * tui/tui-regs.c (tui_data_window::display_registers_from):
2843 Update.
2844 * tui/tui-layout.c (show_source_disasm_command)
2845 (show_source_or_disasm_and_command): Update.
2846 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2847 (enum tui_box): Remove.
2848 (struct tui_win_info) <can_box>: New method.
2849 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2850 method.
2851
2208ee91
TV
28522019-08-15 Tom de Vries <tdevries@suse.de>
2853
2854 * linux-nat-trad.c: Include gdbarch.h.
2855
75faf5c4
AH
28562019-08-14 Alan Hayward <alan.hayward@arm.com>
2857
2858 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2859 register sizes.
2860
b1c896b3
TT
28612019-08-14 Tom Tromey <tromey@adacore.com>
2862
2863 * darwin-nat.c: Include gdbarch.h.
2864 * darwin-nat-info.c: Include gdbarch.h.
2865
6405cd73
TT
28662019-08-13 Tom Tromey <tom@tromey.com>
2867
2868 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2869 Remove.
2870 * tui/tui-data.c (tui_initialize_static_data): Update.
2871
5216580d
TT
28722019-08-13 Tom Tromey <tom@tromey.com>
2873
2874 * tui/tui-winsource.h (struct tui_exec_info_window)
2875 <~tui_exec_info_window, maybe_allocate_content, get_content,
2876 m_content>: Remove.
2877 (struct tui_source_window_base) <set_exec_info_content,
2878 show_exec_info_content>: Don't declare.
2879 * tui/tui-winsource.c
2880 (tui_exec_info_window::maybe_allocate_content): Remove.
2881 (tui_source_window_base::update_exec_info): Rename from
2882 set_exec_info_content.
2883 (tui_source_window_base::show_exec_info_content)
2884 (tui_source_window_base::update_exec_info): Remove.
2885
93858ad3
TT
28862019-08-13 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2889 declare.
2890 * tui/tui-winsource.c (tui_update_source_window_as_is)
2891 (tui_update_source_windows_with_addr, tui_erase_source_content):
2892 Update.
2893 (tui_clear_exec_info_content): Remove.
2894
e321e7ce
TT
28952019-08-13 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2898 declare.
2899 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2900 call tui_erase_exec_info_content.
2901 (tui_clear_exec_info_content): Rename from
2902 tui_erase_exec_info_content.
2903 (tui_clear_exec_info_content): Delete.
2904
8270ac62
TT
29052019-08-13 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-winsource.h (struct tui_source_window_base)
2908 <show_exec_info_content>: Declare.
2909 (tui_show_exec_info_content): Don't declare.
2910 * tui/tui-winsource.c
2911 (tui_source_window_base::show_exec_info_content): Rename from
2912 tui_show_exec_info_content.
2913 (tui_source_window_base::update_exec_info): Update.
2914
7b56485d
TT
29152019-08-13 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2918 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2919 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2920 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2921 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2922 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2923 ... here.
2924
7ba913dc
TT
29252019-08-13 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-winsource.h (struct tui_source_window_base)
2928 <update_exec_info>: Declare.
2929 (tui_update_exec_info): Don't declare.
2930 * tui/tui-winsource.c (tui_update_source_window_as_is)
2931 (tui_source_window_base::refresh_all)
2932 (tui_update_all_breakpoint_info): Update.
2933 (tui_source_window_base::update_exec_info): Rename from
2934 tui_update_exec_info.
2935 * tui/tui-stack.c (tui_show_frame_info): Update.
2936
37a4a131
TT
29372019-08-13 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-winsource.h (struct tui_source_window_base)
2940 <set_exec_info_content>: Declare.
2941 (tui_set_exec_info_content): Don't declare.
2942 * tui/tui-winsource.c
2943 (tui_source_window_base::set_exec_info_content): Rename from
2944 tui_set_exec_info_content.
2945 (tui_update_exec_info): Update.
2946
0bd27e07
TT
29472019-08-13 Tom Tromey <tom@tromey.com>
2948
2949 * tui/tui-winsource.h (struct tui_source_window_base)
2950 <show_source_content>: Declare.
2951 (tui_show_source_content): Don't declare.
2952 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2953 (tui_source_window_base::show_source_content): Rename from
2954 tui_show_source_content.
2955 (tui_source_window_base::refresh_all): Update.
2956 * tui/tui-layout.c (show_source_disasm_command)
2957 (show_source_or_disasm_and_command): Update.
2958
b4ef5aeb
TT
29592019-08-13 Tom Tromey <tom@tromey.com>
2960
2961 * tui/tui-winsource.c (tui_erase_source_content)
2962 (tui_show_source_content, tui_source_window_base::refresh_all):
2963 Update.
2964 * tui/tui-wingeneral.h
2965 (tui_check_and_display_highlight_if_needed): Don't declare.
2966 * tui/tui-wingeneral.c
2967 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2968 check_and_display_highlight_if_needed.
2969 * tui/tui-win.c (tui_rehighlight_all)
2970 (tui_win_info::make_visible_with_new_height): Update.
2971 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2972 (tui_data_window::erase_data_content)
2973 (tui_data_window::display_all_data): Update.
2974 * tui/tui-data.h (struct tui_win_info)
2975 <check_and_display_highlight_if_needed>: Declare.
2976
fede5273
TT
29772019-08-13 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-win.c (tui_resize_all): Call
2980 tui_delete_invisible_windows.
2981 * tui/tui-layout.c (show_layout): Call
2982 tui_delete_invisible_windows.
2983 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2984 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2985
22c3f490
TT
29862019-08-13 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2989 tui_add_win_to_layout.
2990
16cb7910
TT
29912019-08-13 Tom Tromey <tom@tromey.com>
2992
2993 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2994 * tui/tui-layout.c (tui_default_win_height): Now static.
2995
cc0c3ffb
TT
29962019-08-13 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2999 single switch.
3000 (show_source_disasm_command, show_source_or_disasm_and_command):
3001 Don't check current layout.
3002
3f3ffe54
TT
30032019-08-13 Tom Tromey <tom@tromey.com>
3004
3005 * tui/tui-wingeneral.c (make_all_visible): Remove.
3006 (tui_make_all_invisible): Simplify.
3007 * tui/tui-layout.c (tui_make_all_invisible): Move from
3008 tui-wingeneral.c; simplify.
3009 (show_layout): Hoist call to tui_make_all_invisible.
3010 (show_data): Don't call tui_make_all_invisible.
3011
69258091
TT
30122019-08-13 Tom Tromey <tom@tromey.com>
3013
3014 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3015 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3016
62cf57fe
TT
30172019-08-13 Tom Tromey <tom@tromey.com>
3018
3019 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3020 tui-data.c.
3021 (show_source_disasm_command, show_data)
3022 (show_source_or_disasm_and_command): Don't use
3023 tui_set_current_layout_to.
3024 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3025 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3026 tui-layout.c.
3027 (tui_set_current_layout_to): Remove.
3028
2afade5d
TT
30292019-08-13 Tom Tromey <tom@tromey.com>
3030
3031 * tui/tui-layout.c (tui_set_layout): Update.
3032 * tui/tui-data.h (struct tui_layout_def): Remove.
3033 (tui_layout_def): Don't declare.
3034 * tui/tui-data.c (layout_def): Remove.
3035 (tui_layout_def): Remove.
3036
a3504e96
TT
30372019-08-13 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.h (struct tui_source_window_base)
3040 <clear_detail>: No longer "override".
3041 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3042 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3043 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3044 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3045 Remove.
3046 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3047
29c92911
TT
30482019-08-13 Tom Tromey <tromey@adacore.com>
3049
3050 * tracepoint.c: Don't include readline.h or history.h.
3051
86c6b807
TT
30522019-08-12 Tom Tromey <tom@tromey.com>
3053
3054 * configure: Rebuild.
3055 * configure.ac: Check for readline 7.
3056 * NEWS: Mention readline 7 requirement.
3057 * README: Update.
3058
5db2718c
TT
30592019-08-12 Tom Tromey <tom@tromey.com>
3060
3061 * mingw-hdep.c (gdb_select): Remove readline hack.
3062
dac36daf
PFC
30632019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3064
3065 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3066 when the function fails.
3067
1022c627
AA
30682019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3069
3070 * s390-tdep.c (s390_type_align): New function.
3071 (s390_gdbarch_init): Set it as type_align gdbarch method.
3072
eba4caf2
TV
30732019-08-09 Tom de Vries <tdevries@suse.de>
3074
3075 PR gdb/24591
3076 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3077 pc_low with relocation offset.
3078
123cd851
TT
30792019-08-07 Tom Tromey <tromey@adacore.com>
3080
3081 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3082 (print_frame_args): Update.
3083 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3084 Update.
3085 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3086 * frame.h (struct frame_arg): Add initializers.
3087 <error>: Now a unique_xmalloc_ptr.
3088
3d31bc39
AH
30892019-08-07 Alan Hayward <alan.hayward@arm.com>
3090
3091 * NEWS: Expand the Pointer Authentication entry.
3092 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3093 (aarch64_frame_unmask_lr): ... to this.
3094 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3095 Call aarch64_frame_unmask_lr.
3096 * frame.c (struct frame_info): Add "masked" variable.
3097 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3098 (fprint_frame): Check for masked pc.
3099 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3100 declarations.
3101 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3102 * stack.c (print_frame): Check for masked pc.
3103
0cf9feb9
TT
31042019-08-06 Tom Tromey <tom@tromey.com>
3105
3106 * stabsread.c (patch_block_stabs, read_one_struct_field)
3107 (read_enum_type): Use obstack_strndup.
3108 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3109 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3110 * dwarf2read.c (guess_full_die_structure_name)
3111 (anonymous_struct_prefix): Use obstack_strndup.
3112 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3113 * c-exp.y (yylex): Use obstack_strndup.
3114 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3115 (write_var_or_type): Use obstack_strndup.
3116
efba19b0
TT
31172019-08-06 Tom Tromey <tom@tromey.com>
3118
3119 * symfile.c (reread_symbols): Use obstack_strdup.
3120 * stabsread.c (read_type): Use obstack_strdup.
3121 * gdb_obstack.h (obstack_strdup): New overload.
3122 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3123 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3124 (dwarf2_canonicalize_name): Use obstack_strdup.
3125 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3126 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3127 Use obstack_strdup.
3128
f25102f7
TT
31292019-08-06 Tom Tromey <tom@tromey.com>
3130
3131 * gdb_obstack.h (obstack_strdup): Define.
3132 * gdb_obstack.c (obstack_strdup): Don't define.
3133
021887d8
TT
31342019-08-06 Tom Tromey <tom@tromey.com>
3135
3136 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3137 obstack_strdup.
3138 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3139 obstack_strdup.
3140 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3141 * stabsread.c (common_block_start): Use obstack_strdup.
3142 * objfiles.c (set_objfile_main_name, objfile): Use
3143 obstack_strdup.
3144 * namespace.c (add_using_directive): Use obstack_strdup.
3145 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3146 * jit.c (finalize_symtab): Use obstack_strdup.
3147 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3148 (guess_partial_die_structure_name, partial_die_info::fixup)
3149 (dwarf2_name): Use obstack_strdup.
3150 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3151 obstack_strdup.
3152 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3153 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3154 obstack_strdup.
3155 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3156
d2834edc
PW
31572019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3158
3159 * unittests/help-doc-selftests.c: New file.
3160 * Makefile.in: Add the new file.
3161
590042fc
PW
31622019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3163
3164 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3165 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3166 the full first line, except when FOR_VALUE_PREFIX. In this case,
3167 the trailing '.' is not output, and the first character is uppercased.
3168 (print_help_for_command): Update call to print_doc_line.
3169 (print_doc_of_command): Likewise.
3170 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3171 * cli/cli-option.c (append_indented_doc): Do not append newline.
3172 (build_help_option): Append newline after first appended_indented_doc
3173 only if a second call is done.
3174 (build_help): Append 2 new lines before each option, except the first
3175 one.
3176 * compile/compile.c (_initialize_compile): Add new lines after
3177 %OPTIONS%, when not at the end of the help.
3178 Change help doc or code
3179 producing the help doc to respect the invariants.
3180 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3181 Also removed the new line after 'Options:', as all other commands
3182 do not put an empty line between 'Options:' and the first option.
3183 * printcmd.c (_initialize_printcmd): Likewise.
3184 * stack.c (_initialize_stack): Likewise.
3185 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3186 incorrectly telling COMMAND is optional.
3187 * ada-lang.c (_initialize_ada_language): Change help doc or code
3188 producing the help doc to respect the invariants.
3189 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3190 * breakpoint.c (_initialize_breakpoint): Likewise.
3191 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3192 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3193 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3194 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3195 _initialize_cli_style): Likewise.
3196 * corelow.c (core_target_info): Likewise.
3197 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3198 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3199 * filesystem.c (_initialize_filesystem): Likewise.
3200 * frame.c (_initialize_frame): Likewise.
3201 * gnu-nat.c (add_task_commands): Likewise.
3202 * infcall.c (_initialize_infcall): Likewise.
3203 * infcmd.c (_initialize_infcmd): Likewise.
3204 * interps.c (_initialize_interpreter): Likewise.
3205 * language.c (_initialize_language): Likewise.
3206 * linux-fork.c (_initialize_linux_fork): Likewise.
3207 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3208 * maint.c (_initialize_maint_cmds): Likewise.
3209 * memattr.c (_initialize_mem): Likewise.
3210 * printcmd.c (_initialize_printcmd): Likewise.
3211 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3212 _RegEx): Likewise.
3213 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3214 * record-btrace.c (_initialize_record_btrace): Likewise.
3215 * record-full.c (_initialize_record_full): Likewise.
3216 * record.c (_initialize_record): Likewise.
3217 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3218 * regcache.c (_initialize_regcache): Likewise.
3219 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3220 _initialize_remote): Likewise.
3221 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3222 * serial.c (_initialize_serial): Likewise.
3223 * skip.c (_initialize_step_skip): Likewise.
3224 * source.c (_initialize_source): Likewise.
3225 * stack.c (_initialize_stack): Likewise.
3226 * symfile.c (_initialize_symfile): Likewise.
3227 * symtab.c (_initialize_symtab): Likewise.
3228 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3229 * top.c (init_main): Likewise.
3230 * tracefile-tfile.c (tfile_target_info): Likewise.
3231 * tracepoint.c (_initialize_tracepoint): Likewise.
3232 * tui/tui-win.c (_initialize_tui_win): Likewise.
3233 * utils.c (add_internal_problem_command): Likewise.
3234 * valprint.c (value_print_option_defs): Likewise.
3235
404f2902
FCE
32362019-08-06 Frank Ch. Eigler <fche@redhat.com>
3237
3238 PR build/24886
3239 * configure.ac: Drop enable-libmcheck support.
3240 * configure, config.in: Rebuild.
3241 * libmcheck.m4: Remove.
3242 * acinclude.m4: Don't include it.
3243 * Makefile.in: Don't distribute it.
3244 * top.c (print_gdb_configuration): Don't mention it.
3245
046bebe1
TT
32462019-08-06 Tom Tromey <tom@tromey.com>
3247
3248 * utils.c (set_output_style): Sometimes pass stream to
3249 emit_style_escape.
3250 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3251 * record-btrace.c (btrace_insn_history): Update.
3252 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3253 method.
3254 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3255 Update initializers.
3256 <m_uiout>: New field.
3257 <m_di>: Move lower.
3258 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3259 Remove "uiout" parameter.
3260 (dump_insns): Update.
3261 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3262 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3263
ddbcedf5
CB
32642019-08-06 Christian Biesinger <cbiesinger@google.com>
3265
3266 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3267 (error_in_psymtab_expansion): Likewise.
3268 (lookup_symbol_via_quick_fns): Likewise.
3269 (basic_lookup_transparent_type_quick): Likewise.
3270 (basic_lookup_transparent_type_1): Likewise.
3271
b08b16c8
TT
32722019-08-06 Tom Tromey <tromey@adacore.com>
3273
3274 * source.c (last_source_error): Now bool.
3275 (print_source_lines_base): Make "noprint" bool. Only open
3276 source file when last_source_visited changes.
3277
cb44333d
TT
32782019-08-06 Tom Tromey <tromey@adacore.com>
3279
3280 * annotate.c (annotate_source_line): Use g_source_cache.
3281 * source-cache.c (source_cache::get_plain_source_lines): Change
3282 parameters. Populate m_offset_cache.
3283 (source_cache::ensure): New method.
3284 (source_cache::get_line_charpos): New method.
3285 (extract_lines): Move lower. Change parameters.
3286 (source_cache::get_source_lines): Move lower.
3287 * source-cache.h (class source_cache): Update comment.
3288 <get_line_charpos>: New method.
3289 <get_source_lines>: Update comment.
3290 <clear>: Clear m_offset_cache.
3291 <get_plain_source_lines>: Change parameters.
3292 <ensure>: New method
3293 <m_offset_cache>: New member.
3294 * source.c (forget_cached_source_info_for_objfile): Update.
3295 (info_source_command): Use g_source_cache.
3296 (find_source_lines, open_source_file_with_line_charpos): Remove.
3297 (print_source_lines_base, search_command_helper): Use g_source_cache.
3298 * source.h (open_source_file_with_line_charpos): Don't declare.
3299 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3300 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3301 Use g_source_cache.
3302
872dceaa
TT
33032019-08-06 Tom Tromey <tromey@adacore.com>
3304
3305 * source-cache.c (source_cache::get_plain_source_lines):
3306 Remove "first_line" and "last_line" parameters.
3307 (source_cache::get_source_lines): Cache plain text.
3308 * source-cache.h (class source_cache)
3309 <get_plain_source_lines>: Update.
3310
269249d9
TT
33112019-08-06 Tom Tromey <tromey@adacore.com>
3312
3313 * source-cache.c (extract_lines): No longer a method.
3314 Changed type of parameter. Include final newline.
3315 (selftests::extract_lines_test): New function.
3316 (_initialize_source_cache): Likewise.
3317 * source-cache.h (class source_cache)
3318 <extract_lines>: Don't declare.
3319
c0e8dcd8
TT
33202019-08-06 Tom Tromey <tromey@adacore.com>
3321
3322 * breakpoint.c (init_breakpoint_sal): Update.
3323 (breakpoint): Update.
3324 * breakpoint.h (struct breakpoint) <filter>: Now a
3325 unique_xmalloc_ptr.
3326
0b27c27d
CB
33272019-08-05 Christian Biesinger <cbiesinger@google.com>
3328
3329 * NEWS: Mention dictionary access on blocks.
3330 * python/py-block.c (blpy_getitem): New function.
3331 (block_object_as_mapping): New struct.
3332 (block_object_type): Use new struct for tp_as_mapping field.
3333
4ee94178
CB
33342019-08-05 Christian Biesinger <cbiesinger@google.com>
3335
3336 * objfiles.h (objfile): Add a comment describing partial symbols.
3337
8abfcabc
TT
33382019-08-05 Tom Tromey <tromey@adacore.com>
3339
3340 * compile/compile.c (_initialize_compile): Use _(), not N_().
3341 * thread.c (_initialize_thread): Use _(), not N_().
3342 * stack.c (_initialize_stack): Use _(), not N_().
3343 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3344
2b79f376
SM
33452019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * dwarf2read.c (struct dw2_symtab_iterator):
3348 <want_specific_block>: Remove.
3349 <block_index>: Change type to gdb::optional.
3350 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3351 change type of BLOCK_INDEX parameter to gdb::optional.
3352 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3353 (dw2_lookup_symbol): Don't pass argument for
3354 WANT_SPECIFIC_BLOCK.
3355 (dw2_expand_symtabs_for_function): Don't pass argument for
3356 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3357 (class dw2_debug_names_iterator)
3358 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3359 parameter, change BLOCK_INDEX type to gdb::optional.
3360 <m_want_specific_block>: Remove.
3361 <m_block_index>: Change type to gdb::optional.
3362 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3363 gdb::optional. Re-write in function of gdb::optional.
3364 (dw2_debug_names_lookup_symbol): Don't pass argument for
3365 WANT_SPECIFIC_BLOCK.
3366 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3367 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3368 BLOCK_INDEX.
3369
ae60f04e
PW
33702019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3371
3372 * NEWS: Mention changes to "info sources" command.
3373
28cd9371
PW
33742019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3375
3376 * symtab.c (filename_partial_match_opts): New struct type.
3377 (struct output_source_filename_data): New members
3378 regexp, c_regexp, partial_match.
3379 (output_source_filename): Use new members to decide to print file.
3380 (info_sources_option_defs): New variable.
3381 (make_info_sources_options_def_group, print_info_sources_header,
3382 info_sources_command_completer):
3383 New functions.
3384 (info_sources_command): Read new optional arguments.
3385 (_initialize_symtab): Update info sources help.
3386
ca683e3a
AO
33872019-08-02 Alexandre Oliva <oliva@adacore.com>
3388
3389 * ada-lang.c (exception_support_info_v0): Renamed from...
3390 (default_exception_support_info): ... this. Create new
3391 definition for v1.
3392 (ada_has_this_exception_support): Look up catch_handlers_sym.
3393 (ada_exception_support_info_sniffer): Try v0 after default.
3394
f1264162
TT
33952019-08-01 Tom Tromey <tromey@adacore.com>
3396
3397 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3398 gdbarch.h.
3399
0a7b2485
CB
34002019-08-01 Christian Biesinger <cbiesinger@google.com>
3401
3402 * s12z-tdep.c: Fix include path for s12z-opc.h.
3403
c6bdbeb7
AH
34042019-08-01 Alan Hayward <alan.hayward@arm.com>
3405
3406 * NEWS: Require GNU make 3.82.
3407
a2bd7b82
TT
34082019-07-16 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3411 declare.
3412
aa3b6533
TT
34132019-07-30 Tom Tromey <tromey@adacore.com>
3414
3415 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3416
a1530dc7
KB
34172019-07-30 Kevin Buettner <kevinb@redhat.com>
3418
3419 * printcmd.c (print_address_symbolic): Print negative offsets.
3420 (build_address_symbolic): Force signed arithmetic when computing
3421 offset.
3422
2906593f
CB
34232019-07-30 Christian Biesinger <cbiesinger@google.com>
3424
3425 PR/24474: Add a function to lookup static variables.
3426 * NEWS: Mention this new function.
3427 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3428 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3429 * python/python.c (python_GdbMethods): Add new function.
3430
c620ed88
CB
34312019-07-29 Christian Biesinger <cbiesinger@google.com>
3432
3433 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3434 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3435 (objfpy_lookup_static_symbol): New function.
3436 (objfile_object_methods): Add new functions.
3437
bc4268a5
PW
34382019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3439
3440 * NEWS: Mention 'set|show print frame-info'. Mention new
3441 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3442 backtrace argument. Mention that python frame filtering code
3443 is now consistent with what 'backtrace' command prints.
3444
4b5e8d19
PW
34452019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3446
3447 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3448 comments.
3449 (print_frame_info_auto, print_frame_info_source_line,
3450 print_frame_info_location, print_frame_info_source_and_location,
3451 print_frame_info_location_and_address, print_frame_info_short_location):
3452 New declarations.
3453 (struct frame_print_options): New member print_frame_info.
3454 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3455 * stack.h (get_user_print_what_frame_info): New declaration.
3456 (frame_show_address): New declaration.
3457 * stack.c (print_frame_arguments_choices): New value 'presence'.
3458 (print_frame_info_auto, print_frame_info_source_line,
3459 print_frame_info_location, print_frame_info_source_and_location,
3460 print_frame_info_location_and_address, print_frame_info_short_location,
3461 print_frame_info_choices, print_frame_info_print_what): New definitions.
3462 (print_frame_args): Only print dots for args if print frame-arguments
3463 is 'presence'.
3464 (frame_print_option_defs): New element for "frame-info".
3465 (get_user_print_what_frame_info): New function.
3466 (frame_show_address): Make non static. Move comment to stack.h.
3467 (print_frame_info_to_print_what): New function.
3468 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3469 to decide what to print.
3470 (backtrace_command_1): Handle the new print_frame_arguments_presence
3471 value.
3472 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3473 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3474 (py_print_frame): In non-mi mode, use LOCATION as default for
3475 print_what, similarly to frame information printed directly by
3476 backtrace command. Handle frame-info user option in non MI mode.
3477
6bdfee81
KB
34782019-07-27 Kevin Buettner <kevinb@redhat.com>
3479
3480 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3481 Add case for debugging 32-bit target on 64-bit host. Revise
3482 comment.
3483
98a617f8
KB
34842019-07-27 Kevin Buettner <kevinb@redhat.com>
3485
3486 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3487 instead of find_function_entry_range_from_pc.
3488
567238c9
KB
34892019-07-27 Kevin Buettner <kevinb@redhat.com>
3490
3491 * stack.c (find_frame_funname): Remove code which preferred
3492 minsym over symtab sym in "certain pathological cases".
3493
2dc80cf8
KB
3494 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3495 parameter. Change type of "do_demangle" to bool.
3496 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3497 Pass suitable "prefer_sym_over_minsym" flag to
3498 build_address_symbolic(). Don't output "+" for negative offsets.
3499 * printcmd.c (print_address_symbolic): Update invocation of
3500 build_address_symbolic to include a "prefer_sym_over_minsym"
3501 flag.
3502 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3503 Restrict cases in which use of minimal symbol is preferred to that
3504 of a found symbol. Update comments.
3505
1aff7173
KB
3506 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3507 for entry pc when entry pc is out of range for that FDE.
3508
89b085ac
BC
35092019-07-26 Brian Callahan <bcallah@openbsd.org>
3510
3511 PR gdb/24839:
3512 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3513 type.
3514
f32feb4a
CB
35152019-07-25 Christian Biesinger <cbiesinger@google.com>
3516
3517 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3518 this function's Python signature.
3519
3520
35212019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3522
3523 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3524 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3525 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3526 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3527 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3528
3529
c54e4253
YS
35302019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3531
3532 * h8300-tdep.c (h8300_register_name_common): New.
3533 h8300_register_name): Use h8300_register_name_common.
3534 (h8300s_register_name): Likewise.
3535 (h8300sx_register_name): Likewise.
3536 (h8300h_register_nam): New.
3537 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3538
3539
40eadf04
SP
35402019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3541
3542 * arm-tdep.c (arm_skip_cmse_entry): New function.
3543 (arm_is_sgstubs_section): New function.
3544 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3545
bfa2a36d
TT
35462019-07-22 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3549 Don't self-assign.
3550
a8e9d247
AB
35512019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3554 type_print.
3555
eb86c5e2
AB
35562019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3559 so that GDB doesn't match any msymbols when searching in the
3560 TYPES_DOMAIN.
3561 (print_symbol_info): Print using typedef_print or type_print based
3562 on the type of the symbol. Add updated FIXME comment moved from...
3563 (_initialize_symtab): ... move and update FIXME comment to above.
3564
a8eab7c6
AB
35652019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3566
3567 * NEWS: Mention adding -q option to "info types".
3568 * symtab.c (struct info_types_options): New struct.
3569 (info_types_options_defs): New variable.
3570 (make_info_types_options_def_group): New function.
3571 (info_types_command): Use gdb::option framework to parse options.
3572 (info_types_command_completer): New function.
3573 (_initialize_symtab): Extend the help text on "info types" and
3574 register command completer.
3575
b4603c34
CB
35762019-07-21 Christian Biesinger <cbiesinger@google.com>
3577
3578 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3579 (lookup_symbol_in_objfile): Change int to block_enum and add a
3580 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3581
c8cdc1e0
CB
35822019-07-20 Christian Biesinger <cbiesinger@google.com>
3583
3584 * MAINTAINERS (Write After Approval): Add self.
3585
01e175fe
AB
35862019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3589 instruction to the dummy code region.
3590
56f79b63
TT
35912019-07-19 Tom Tromey <tromey@adacore.com>
3592
3593 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3594 (ARGSUSED, PARAMS, __func__): Remove rules.
3595
4c5aa8e0
AH
35962019-07-19 Alan Hayward <alan.hayward@arm.com>
3597
3598 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3599 * features/arm/arm-with-iwmmxt.c: Remove.
3600 * features/arm/arm-with-iwmmxt.xml: Remove.
3601 * features/arm/arm-with-m-fpa-layout.c: Remove.
3602 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3603 * features/arm/arm-with-m-vfp-d16.c: Remove.
3604 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3605 * features/arm/arm-with-m.c: Remove.
3606 * features/arm/arm-with-m.xml: Remove.
3607 * features/arm/arm-with-neon.c: Remove.
3608 * features/arm/arm-with-neon.xml: Remove.
3609 * features/arm/arm-with-vfpv2.c: Remove.
3610 * features/arm/arm-with-vfpv2.xml: Remove.
3611 * features/arm/arm-with-vfpv3.c: Remove.
3612 * features/arm/arm-with-vfpv3.xml: Remove.
3613
f42b2617
AH
36142019-07-19 Alan Hayward <alan.hayward@arm.com>
3615
3616 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3617
f29ec966
AH
36182019-07-19 Alan Hayward <alan.hayward@arm.com>
3619
3620 * arch/aarch32.c (aarch32_create_target_description): Create
3621 target descriptions using features.
3622 * arch/arm.c (arm_create_target_description)
3623 (arm_create_mprofile_target_description): Likewise.
3624 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3625
d105cce5
AH
36262019-07-19 Alan Hayward <alan.hayward@arm.com>
3627
3628 * Makefile.in: Add new files.
3629 * aarch32-tdep.c: New file.
3630 * aarch32-tdep.h: New file.
3631 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3632 Call aarch32_read_description.
3633 * arch/aarch32.c: New file.
3634 * arch/aarch32.h: New file.
3635 * arch/arm.c (arm_create_target_description)
3636 (arm_create_mprofile_target_description): New function.
3637 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3638 (arm_create_target_description)
3639 (arm_create_mprofile_target_description): New declaration.
3640 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3641 read_description functions.
3642 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3643 Likewise.
3644 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3645 * arm-tdep.c (tdesc_arm_list): New variable.
3646 (arm_register_g_packet_guesses): Call create description functions.
3647 (arm_read_description) (arm_read_mprofile_description): New
3648 function.
3649 * arm-tdep.h (arm_read_description)
3650 (arm_read_mprofile_description): Add declaration.
3651 * configure.tgt: Add new files.
3652
afe09f0b
GL
36532019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3654
3655 * top.c (new_ui_command): Open specified terminal just once.
3656
cd215b2e
TT
36572019-07-18 Tom Tromey <tromey@adacore.com>
3658
3659 * symtab.c (main_name): Constify return type.
3660 * symfile.c (set_initial_language): Update.
3661 * symtab.h (main_name): Constify return type.
3662
d8f68fcb
TT
36632019-07-17 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-winsource.c (tui_update_source_window)
3666 (tui_update_source_window_as_is)
3667 (tui_update_source_windows_with_line): Remove return.
3668 * tui/tui-disasm.c (tui_show_disassem)
3669 (tui_show_disassem_and_update_source): Remove return.
3670 * tui/tui.c (tui_reset): Remove return.
3671 * tui/tui-wingeneral.c
3672 (tui_check_and_display_highlight_if_needed): Remove return.
3673
ca5af91e
TT
36742019-07-17 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3677
5104fe36
TT
36782019-07-17 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-winsource.h (struct tui_exec_info_window)
3681 (struct tui_source_window_base): Move from tui-data.h.
3682 * tui/tui-winsource.c: Move many method definitions from
3683 elsewhere. Remove "structuring" comments.
3684 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3685 (tui_source_window_base::refresh_window): Move to
3686 tui-winsource.c.
3687 * tui/tui-win.c (tui_source_window_base::refresh_all)
3688 (tui_source_window_base::update_tab_width)
3689 (tui_source_window_base::set_new_height)
3690 (tui_source_window_base::do_make_visible_with_new_height): Move to
3691 tui-winsource.c.
3692 * tui/tui-source.h: Update.
3693 * tui/tui-source.c (tui_source_window_base::reset): Move to
3694 tui-winsource.c.
3695 * tui/tui-disasm.h: Update.
3696 * tui/tui-data.h (struct tui_exec_info_window): Move to
3697 tui-winsource.h.
3698 (struct tui_source_window_base): Likewise.
3699 * tui/tui-data.c (tui_source_window_base::clear_detail)
3700 (tui_source_window_base, ~tui_source_window_base): Move to
3701 tui-winsource.c.
3702
daa15dde
TT
37032019-07-17 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-win.c (tui_resize_all)
3706 (tui_source_window_base::update_tab_width)
3707 (tui_adjust_win_heights): Update.
3708 (tui_win_info::make_invisible_and_set_new_height): Rename from
3709 make_invisible_and_set_new_height.
3710 * tui/tui-data.h (struct tui_win_info)
3711 <make_invisible_and_set_new_height>: New method.
3712
bfad4537
TT
37132019-07-17 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui.c: Update.
3716 * tui/tui-source.h (struct tui_source_window): Move from
3717 tui-data.h.
3718 * tui/tui-layout.c: Update.
3719 * tui/tui-disasm.c: Update.
3720 * tui/tui-data.h (struct tui_source_window): Move to
3721 tui-source.h.
3722
88f7e873
TT
37232019-07-17 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3726 tui-data.h.
3727 * tui/tui-data.h (struct tui_disasm_window): Move to
3728 tui-disasm.h.
3729
96bd6233
TT
37302019-07-17 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-regs.h (struct tui_data_item_window): Move from
3733 tui-data.h.
3734 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3735 * tui/tui-data.h (struct tui_data_item_window): Move to
3736 tui-regs.h.
3737 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3738
ce38393b
TT
37392019-07-17 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui.c: Update.
3742 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3743 (tui_cmd_window::max_height): Move to tui-command.c.
3744 * tui/tui-layout.c: Update.
3745 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3746 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3747 tui-command.c.
3748 * tui/tui-command.h (struct tui_cmd_window): Move from
3749 tui-data.h.
3750 * tui/tui-command.c: Remove "structuring" comments.
3751 (tui_cmd_window::clear_detail)
3752 (tui_cmd_window::do_make_visible_with_new_height)
3753 (tui_cmd_window::max_height): Move from elsewhere.
3754
2d8b51cb
TT
37552019-07-17 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3758 Now static.
3759 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3760 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3761
18ab23af
TT
37622019-07-17 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui.c: Update.
3765 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3766 tui-regs.c.
3767 * tui/tui-windata.h: Remove file.
3768 * tui/tui-windata.c: Remove file.
3769 * tui/tui-win.c (tui_data_window::set_new_height)
3770 (tui_data_window::do_make_visible_with_new_height): Move to
3771 tui-regs.c.
3772 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3773 * tui/tui-regs.c: Remove "structuring" comments.
3774 (tui_data_window::first_data_item_displayed)
3775 (tui_data_window::delete_data_content_windows)
3776 (tui_data_window::erase_data_content)
3777 (tui_data_window::display_all_data)
3778 (tui_data_window::refresh_all)
3779 (tui_data_window::do_scroll_vertical)
3780 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3781 (tui_data_window::do_make_visible_with_new_height)
3782 (tui_data_window::refresh_window): Move from elsewhere.
3783 (_initialize_tui_regs): Move to end of file.
3784 * tui/tui-layout.c: Update.
3785 * tui/tui-hooks.c: Update.
3786 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3787 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3788 tui-regs.c.
3789 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3790
88b7e7cc
TT
37912019-07-17 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3794 seen.
3795
0fcd3711
TT
37962019-07-17 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-win.c (tui_source_window_base::set_new_height)
3799 (tui_source_window_base::do_make_visible_with_new_height): Use
3800 m_has_locator field directly.
3801 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3802 method.
3803 (struct tui_source_window_base) <has_locator>: Likewise.
3804
4a38112d
TT
38052019-07-17 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3808 Don't declare.
3809 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3810 Remove.
3811 * tui/tui-win.c (tui_source_window_base::set_new_height)
3812 (tui_source_window_base::set_new_height)
3813 (make_invisible_and_set_new_height)
3814 (tui_source_window_base::do_make_visible_with_new_height)
3815 (tui_source_window_base::do_make_visible_with_new_height):
3816 Update.
3817 * tui/tui-layout.c (show_source_disasm_command, show_data)
3818 (show_source_or_disasm_and_command): Update.
3819 * tui/tui-layout.c (show_layout): Update.
3820
09129226
TT
38212019-07-17 Tom Tromey <tom@tromey.com>
3822
3823 * tui/tui-layout.c (make_data_window): Remove.
3824 (show_data): Unify creation and re-initialization cases.
3825
4a8a5e84
TT
38262019-07-17 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-layout.c (make_source_window, make_disasm_window):
3829 Remove.
3830 (show_data): Unify creation and re-initialization cases.
3831
76d2be8e
TT
38322019-07-17 Tom Tromey <tom@tromey.com>
3833
3834 * tui/tui-layout.c (make_command_window): Remove.
3835 (show_source_disasm_command, show_source_or_disasm_and_command):
3836 Unify creation and re-initialization cases.
3837
890b8bde
TT
38382019-07-17 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3841 creation and re-initialization cases.
3842
2cdfa113
TT
38432019-07-17 Tom Tromey <tom@tromey.com>
3844
3845 * tui/tui-regs.c (tui_get_register): Return void.
3846
8e3cfd09
TT
38472019-07-17 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3850 Simplify.
3851
f4e04977
TT
38522019-07-17 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3855 resetting.
3856
0379b883
TT
38572019-07-17 Tom Tromey <tom@tromey.com>
3858
3859 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3860 * tui/tui-regs.c (tui_reg_layout): New function.
3861 (tui_show_registers, tui_reg_command): Use it.
3862 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3863 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3864 parameters.
3865 (tui_layout_command): Remove.
3866
b7fbad91
TT
38672019-07-17 Tom Tromey <tom@tromey.com>
3868
3869 * tui/tui-layout.h (tui/tui-layout): Return void.
3870 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3871
4e1e56b9
TT
38722019-07-17 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-layout.c (show_source_disasm_command, show_data):
3875 Update.
3876 (reset_locator): Remove.
3877 (show_source_or_disasm_and_command): Update.
3878
1e0c09ba
TT
38792019-07-17 Tom Tromey <tom@tromey.com>
3880
3881 * tui/tui-source.c (tui_source_window_base::reset): Remove
3882 win_type parameter.
3883 * tui/tui-layout.c (make_command_window, make_source_window)
3884 (make_disasm_window, make_data_window)
3885 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3886 (reset_locator, show_source_or_disasm_and_command): Update.
3887 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3888 win_type parameter.
3889 (struct tui_source_window_base) <reset>: Likewise.
3890
1bf605de
TT
38912019-07-17 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-layout.c (show_source_disasm_command): Use
3894 reset_locator.
3895 (reset_locator): New function.
3896 (init_and_make_win): Remove.
3897 (show_source_or_disasm_and_command): Use reset_locator.
3898
098f9ed4
TT
38992019-07-17 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3902 condition.
3903 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3904 Remove condition.
3905 * tui/tui-source.c (tui_source_window_base::reset): New method.
3906 * tui/tui-layout.c (make_command_window): Don't call
3907 init_and_make_win.
3908 (make_source_window, make_disasm_window): Don't call
3909 make_source_or_disasm_window.
3910 (make_data_window): Don't call init_and_make_win. Change calling
3911 convention.
3912 (show_source_disasm_command, show_data): Simplify.
3913 (make_source_or_disasm_window): Remove.
3914 (show_source_or_disasm_and_command): Simplify.
3915 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3916 (struct tui_source_window_base) <reset>: Likewise.
3917 <execution_info>: Remove initializer.
3918 * tui/tui-data.c (tui_source_window_base): Initialize
3919 execution_info.
3920
80110957
TT
39212019-07-17 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3924 variable.
3925
cf82af05
TT
39262019-07-17 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui.c (tui_rl_other_window): Update.
3929 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3930 superclass method first. Always iterate over regs_content.
3931 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3932 method.
3933 * tui/tui-win.c (tui_set_focus_command): Update.
3934
01aeb396
TT
39352019-07-17 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-win.c (tui_set_focus_command): Rename from
3938 tui_set_focus. Call tui_enable.
3939 (tui_set_focus_command): Remove.
3940
fd6c75ee
TT
39412019-07-17 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3944 refresh_window.
3945 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3946 touchwin.
3947 (tui_data_window::refresh_window): Call refresh_window on data
3948 items. Always call superclass refresh_window.
3949 (tui_win_info::refresh): Remove.
3950 (tui_source_window_base::refresh_window): Update.
3951 (tui_refresh_all): Update.
3952 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3953 refresh_window.
3954 (show_source_or_disasm_and_command): Likewise.
3955 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3956 (struct tui_source_window_base) <refresh>: Likewise.
3957
f6cc34a9
TT
39582019-07-17 Tom Tromey <tom@tromey.com>
3959
3960 * tui/tui-winsource.c (tui_clear_source_content)
3961 (tui_show_source_content): Update.
3962 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3963 whether content is empty.
3964 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3965 Remove.
3966
f31ec9af
TT
39672019-07-17 Tom Tromey <tom@tromey.com>
3968
3969 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3970 window's contents.
3971 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3972 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3973
d1b6f1e5
TT
39742019-07-17 Tom Tromey <tom@tromey.com>
3975
3976 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3977 (struct tui_data_item_window): Update.
3978
d9743a13
TT
39792019-07-17 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3982 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3983 defines.
3984
caf0bc4e
TT
39852019-07-17 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-winsource.h (tui_erase_source_content)
3988 (tui_clear_source_content): Remove "display_prompt" parameter.
3989 * tui/tui-winsource.c (tui_update_source_window_as_is)
3990 (tui_update_source_windows_with_addr): Update.
3991 (tui_clear_source_content): Remove "display_prompt" parameter.
3992 (tui_erase_source_content): Likewise. Simplify.
3993 (tui_show_source_content): Update.
3994 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3995 * tui/tui-stack.c (tui_show_frame_info): Update.
3996 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3997 Remove defines.
3998
9d391078
TT
39992019-07-17 Tom Tromey <tom@tromey.com>
4000
4001 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4002 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4003 parameter.
4004 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4005 parameter.
4006
a38da35d
TT
40072019-07-17 Tom Tromey <tom@tromey.com>
4008
4009 * tui/tui-winsource.c (tui_clear_source_content)
4010 (tui_show_source_content, tui_show_exec_info_content)
4011 (tui_clear_exec_info_content): Update.
4012 * tui/tui-stack.c (tui_show_locator_content): Update.
4013 (tui_show_frame_info): Update.
4014 * tui/tui-source.h (tui_source_window): Don't declare.
4015 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4016 from tui_source_is_displayed.
4017 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4018 Remove field.
4019 (struct tui_source_window_base) <content_in_use>: New field. Now
4020 bool.
4021 (struct tui_source_window) <showing_source_p>: New method.
4022 (TUI_SRC_WIN): Change cast.
4023 * tui/tui-data.c (tui_initialize_static_data): Update.
4024
c2cd8994
TT
40252019-07-17 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4028 location_matches_p.
4029 * tui/tui-source.c (tui_source_window::location_matches_p): New
4030 method.
4031 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4032 method.
4033 * tui/tui-data.h (struct tui_source_window_base)
4034 <location_matches_p>: New method.
4035 (struct tui_source_window, struct tui_disasm_window)
4036 <location_matches_p>: Likewise.
4037
4dde7b34
TT
40382019-07-17 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-win.c (tui_set_win_height_command): Rename from
4041 tui_set_win_height.
4042 (tui_set_win_height_command): Remove.
4043
b73dd877
TT
40442019-07-17 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-source.c (tui_source_window): New constructor. Add
4047 observer.
4048 (~tui_source_window): New destructor.
4049 (tui_source_window::style_changed): New method.
4050 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4051 (tui_attach_detach_observers): Update.
4052 * tui/tui-data.h (struct tui_source_window): Make constructor not
4053 inline. Add destructor.
4054 (struct tui_source_window) <style_changed>: New method.
4055 <m_observable>: New member.
4056
ae2b5380
TT
40572019-07-17 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4060 * tui/tui-win.c (tui_resize_all): Fix typo.
4061
1ce3e844
TT
40622019-07-17 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4065 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4066 (tui_refresh_all): Remove "list" parameter. Use foreach.
4067 * tui/tui-win.c (window_name_completer): Use foreach.
4068 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4069 (update_tab_width): Likewise.
4070 * tui/tui-layout.c (show_layout): Update.
4071 * tui/tui-data.h (class tui_window_iterator): New.
4072 (struct all_tui_windows): New.
4073 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4074
fe3eaf1c
TT
40752019-07-17 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4078 parameter. Don't reference globals.
4079 (tui_reg_command): Update.
4080
368c1354
TT
40812019-07-17 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-regs.c (tui_show_registers): Simplify.
4084
e80cd204
TT
40852019-07-17 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-regs.c (tui_show_registers): Update.
4088 (tui_show_register_group): Add win_info parameter.
4089
aca2dd16
TT
40902019-07-17 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4093 Rename from tui_display_reg_element_at_line.
4094 (tui_data_window::display_registers_from_line): Update.
4095 * tui/tui-data.h (struct tui_data_window)
4096 <display_reg_element_at_line>: New method.
4097
517e9505
TT
40982019-07-17 Tom Tromey <tom@tromey.com>
4099
4100 * tui/tui-regs.h (tui_display_registers_from)
4101 (tui_display_registers_from_line): Don't declare.
4102 * tui/tui-windata.c (tui_data_window::display_all_data)
4103 (tui_data_window::refresh_all)
4104 (tui_data_window::do_scroll_vertical): Update.
4105 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4106 from tui_display_registers_from.
4107 (tui_display_reg_element_at_line): Update.
4108 (tui_data_window::display_registers_from_line): Rename from
4109 tui_display_registers_from_line.
4110 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4111 display_registers_from_line>: New methods.
4112
f76d8b19
TT
41132019-07-17 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4116 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4117 from tui_erase_data_content.
4118 (tui_data_window::display_all_data)
4119 (tui_data_window::refresh_all)
4120 (tui_data_window::do_scroll_vertical): Update.
4121 * tui/tui-regs.c (tui_show_registers): Update.
4122 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4123 New method.
4124
b4094625
TT
41252019-07-17 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4128 declare.
4129 * tui/tui-windata.c
4130 (tui_data_window::delete_data_content_windows): Rename from
4131 tui_delete_data_content_windows.
4132 (tui_data_window::display_all_data)
4133 (tui_data_window::do_scroll_vertical): Update.
4134 * tui/tui-data.h (struct tui_data_window)
4135 <delete_data_content_windows>: New method.
4136
c223a729
TT
41372019-07-17 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4140 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4141
50daf268
TT
41422019-07-17 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4145 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4146 from tui_display_all_data.
4147 * tui/tui-win.c
4148 (tui_data_window::do_make_visible_with_new_height): Update.
4149 * tui/tui-regs.c (tui_show_registers): Update.
4150 * tui/tui-layout.c (tui_set_layout): Update.
4151 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4152 method.
4153
df5f8cab
TT
41542019-07-17 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4157 * tui/tui-windata.c (tui_display_data_from): Remove.
4158 (tui_data_window::refresh_all): Update.
4159
80cb6c27
TT
41602019-07-17 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4163 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4164 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4165 tui_display_registers_from_line.
4166 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4167 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4168 "force_display" parameter.
4169
baff0c28
TT
41702019-07-17 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4173 declare.
4174 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4175 Rename from tui_first_reg_element_no_inline.
4176 (tui_display_reg_element_at_line)
4177 (tui_display_registers_from_line): Update.
4178 * tui/tui-data.h (struct tui_data_window)
4179 <first_reg_element_no_inline>: New method.
4180
3b23c5f2
TT
41812019-07-17 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-windata.c (tui_display_data_from)
4184 (tui_data_window::do_scroll_vertical): Update.
4185 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4186 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4187 Rename from tui_line_from_reg_element_no.
4188 (tui_display_registers_from_line): Update.
4189 * tui/tui-data.h (struct tui_data_window)
4190 <line_from_reg_element_no>: New method.
4191
0b5ec218
TT
41922019-07-17 Tom Tromey <tom@tromey.com>
4193
4194 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4195 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4196 tui_last_regs_line_no.
4197 (tui_display_reg_element_at_line)
4198 (tui_display_registers_from_line): Update.
4199 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4200 method.
4201
0807ab7b
TT
42022019-07-17 Tom Tromey <tom@tromey.com>
4203
4204 PR tui/24722:
4205 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4206 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4207 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4208 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4209 (tui_update_breakpoint_info): Likewise.
4210 * tui/tui-hooks.c (tui_event_create_breakpoint)
4211 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4212 Update.
4213
9ad7fdef
TT
42142019-07-17 Tom Tromey <tom@tromey.com>
4215
4216 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4217
5813316f
TT
42182019-07-17 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-winsource.c (tui_update_source_window_as_is)
4221 (tui_update_source_windows_with_addr): Update.
4222 * tui/tui-source.h (tui_set_source_content)
4223 (tui_show_symtab_source): Add "win_info" parameter.
4224 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4225 parameter.
4226 (tui_show_symtab_source): Likewise.
4227
00e264e7
TT
42282019-07-17 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-wingeneral.c
4231 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4232
06210ce4
TT
42332019-07-17 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4236 (struct tui_cmd_window) <can_scroll>: New method.
4237 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4238 method.
4239
381befee
TT
42402019-07-17 Tom Tromey <tromey@adacore.com>
4241
4242 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4243 do_field_signed>: Rename. Change type of "value".
4244 * ui-out.c (ui_out::field_signed): Rename from field_int.
4245 Change type of "value".
4246 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4247 type of "value".
4248 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4249 do_field_int. Change type of "value".
4250 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4251 do_field_int. Change type of "value".
4252 * tracepoint.c (trace_status_mi, tfind_1)
4253 (print_one_static_tracepoint_marker): Update.
4254 * thread.c (print_thread_info_1, print_selected_thread_frame):
4255 Update.
4256 * stack.c (print_frame, print_frame_info): Update.
4257 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4258 Update.
4259 * source.c (print_source_lines_base): Update.
4260 * skip.c (info_skip_command): Update.
4261 * record-btrace.c (btrace_ui_out_decode_error)
4262 (btrace_call_history_src_line): Update.
4263 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4264 Update.
4265 * progspace.c (print_program_space): Update.
4266 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4267 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4268 do_field_int. Change type of "value".
4269 * mi/mi-out.c (mi_ui_out::do_table_begin)
4270 (mi_ui_out::do_table_header): Update.
4271 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4272 type of "value".
4273 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4274 (mi_cmd_data_list_changed_registers, output_register)
4275 (mi_cmd_data_read_memory, mi_load_progress)
4276 (mi_cmd_trace_frame_collected): Update.
4277 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4278 Update.
4279 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4280 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4281 (mi_cmd_var_list_children, varobj_update_one): Update.
4282 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4283 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4284 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4285 * inferior.c (print_inferior): Update.
4286 * gdb_bfd.c (print_one_bfd): Update.
4287 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4288 Update.
4289 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4290 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4291 do_field_int. Change type of "value".
4292 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4293 do_field_int. Change type of "value".
4294 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4295 (print_one_breakpoint_location, print_it_catch_fork)
4296 (print_one_catch_fork, print_it_catch_vfork)
4297 (print_one_catch_vfork, print_it_catch_solib)
4298 (print_it_catch_exec, print_it_ranged_breakpoint)
4299 (print_mention_watchpoint, print_mention_masked_watchpoint)
4300 (bkpt_print_it, update_static_tracepoint): Update.
4301 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4302 * break-catch-syscall.c (print_it_catch_syscall): Update.
4303 * ada-tasks.c (print_ada_task_info): Update.
4304 * ada-lang.c (print_it_exception, print_mention_exception):
4305 Update.
4306
6b78c3f8
AB
43072019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 PR breakpoints/24541
4310 * gdbarch.c: Regenerate.
4311 * gdbarch.h: Regenerate.
4312 * gdbarch.sh: Adjust return type and parameter types for
4313 'stap_adjust_register'.
4314 (i386_stap_adjust_register): Adjust signature and return new
4315 register name.
4316 * stap-probe.c (stap_parse_register_operand): Adjust use of
4317 'gdbarch_stap_adjust_register'.
4318
d72a9b85
TT
43192019-07-17 Tom Tromey <tromey@adacore.com>
4320
4321 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4322 declare VEC.
4323 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4324 std::vector.
4325 (struct s390_process_info): Add initializers.
4326 (s390_add_process): Use new.
4327 (s390_linux_nat_target::low_forget_process): Use delete.
4328 (s390_linux_nat_target::low_new_fork)
4329 (s390_linux_nat_target::stopped_by_watchpoint)
4330 (s390_linux_nat_target::low_prepare_to_resume)
4331 (s390_linux_nat_target::insert_watchpoint)
4332 (s390_linux_nat_target::insert_hw_breakpoint)
4333 (s390_linux_nat_target::remove_watchpoint)
4334 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4335
206e6c58
JB
43362019-07-16 John Baldwin <jhb@FreeBSD.org>
4337
4338 * aarch64-fbsd-nat.c: Include regcache.h.
4339 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4340 argument.
4341 (aarch64_fbsd_nat_target::fetch_registers)
4342 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4343 variable.
4344 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4345
cbde90f2
JB
43462019-07-16 John Baldwin <jhb@FreeBSD.org>
4347
4348 * fbsd-nat.c: Include gdbarch.h.
4349
07128006
TT
43502019-07-15 Tom Tromey <tromey@adacore.com>
4351
4352 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4353
1f77b012
TT
43542019-07-15 Tom Tromey <tromey@adacore.com>
4355
4356 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4357 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4358 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4359 * cli-out.c (cli_ui_out::do_field_int): New method.
4360 * ui-out.c (ui_out::field_unsigned): New method.
4361 * symfile.c (generic_load): Use field_unsigned.
4362 (print_transfer_performance): Likewise.
4363 * record-btrace.c (ui_out_field_uint): Remove.
4364 (btrace_call_history_insn_range, btrace_call_history): Use
4365 field_unsigned.
4366 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4367 field_unsigned.
4368 * ui-out.h (class ui_out) <field_unsigned>: New method.
4369 <do_field_unsigned>: Likewise.
4370
33eca680
TT
43712019-07-15 Tom Tromey <tromey@adacore.com>
4372
4373 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4374 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4375 * target.c (flash_erase_command): Use field_string.
4376 * infrun.c (print_signal_received_reason): Use field_string.
4377 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4378 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4379 field_string.
4380 * ada-tasks.c (print_ada_task_info): Use field_string.
4381
ca8d69be
TT
43822019-07-15 Tom Tromey <tromey@adacore.com>
4383
4384 * target.c (flash_erase_command): Use field_core_addr.
4385 * symfile.c (generic_load): Use field_core_addr.
4386 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4387 Use field_core_addr.
4388 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4389 field_core_addr.
4390
0d4e84ed
AB
43912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4392
4393 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4394 value if its desired type is smaller than a CORE_ADDR and signed.
4395
9a49df9d
AB
43962019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4399 of changes to field names, and use new is_reference field to
4400 decide if a property is a reference or not.
4401 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4402 field.
4403 (struct dwarf2_property_baton): Update header comment, rename
4404 'referenced_type' to 'property_type' and update comments.
4405 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4406 default property type, store in property baton, update to take
4407 accound of renamed field.
4408 (read_func_scope): Update call to attr_to_dynamic_prop.
4409 (read_array_type): Likewise.
4410 (dwarf2_per_cu_addr_sized_int_type): New function.
4411 (read_subrange_index_type): Move type finding code to
4412 dwarf2_per_cu_addr_sized_int_type.
4413 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4414 (dwarf2_per_cu_addr_type): New function.
4415 (set_die_type): Update calls to attr_to_dynamic_prop.
4416
b86352cf
AB
44172019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4418
4419 * dwarf2read.c (read_subrange_index_type): New function.
4420 (read_subrange_type): Move code into new function and call it.
4421 * gdbtypes.c (create_range_type): Add some asserts.
4422
603490bf
AB
44232019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4426 update return statements.
4427 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4428 declaration, and update comment to match.
4429 * gdbtypes.c (resolve_dynamic_array): Update call to
4430 dwarf2_evaluate_property to match new return type.
4431
592f9d27
AB
44322019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4433
4434 * valarith.c (value_subscripted_rvalue): Change lowerbound
4435 parameter type from int to LONGEST.
4436 * value.h (value_subscripted_rvalue): Likewise in declaration.
4437
60cfcb20
AB
44382019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * cli/cli-utils.c (info_print_command_completer): New function.
4441 * cli/cli-utils.h: Add 'completer.h' include, and forward
4442 declaration for 'struct cmd_list_element'.
4443 (info_print_command_completer): Declare.
4444 * stack.c (_initialize_stack): Add completer for 'info locals' and
4445 'info args'.
4446 * symtab.c (_initialize_symtab): Add completer for 'info
4447 variables' and 'info functions'.
4448 * NEWS: Mention completion for additional info commands.
4449
b16507e0
AB
44502019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4451
4452 * cli/cli-utils.c (extract_info_print_args): Delete.
4453 (extract_arg_maybe_quoted): Delete.
4454 (info_print_options_defs): New variable.
4455 (make_info_print_options_def_group): New function.
4456 (extract_info_print_options): Define new function.
4457 * cli/cli-utils.h (extract_info_print_args): Delete.
4458 (struct info_print_options): New structure.
4459 (extract_info_print_options): Declare new function.
4460 * stack.c (info_locals_command): Update to use new
4461 extract_info_print_options, also add a header comment.
4462 (info_args_command): Likewise.
4463 * symtab.c (info_variables_command): Likewise.
4464 (info_functions_command): Likewise.
4465
021d8588
AB
44662019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4467
4468 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4469 to extract string arguments.
4470 * common/common-utils.c (extract_string_maybe_quoted): New function.
4471 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4472
b777eb6d
TT
44732019-07-11 Tom Tromey <tromey@adacore.com>
4474
4475 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4476 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4477 * top.h (gdbinit): Don't declare.
4478 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4479 into...
4480 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4481 * top.c (gdb_init): Don't call init_cli_cmds.
4482 (gdbinit): Remove.
4483 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4484
72ee03ff
TT
44852019-07-11 Tom Tromey <tromey@adacore.com>
4486
4487 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4488 after it has been moved.
4489
00db9531
SM
44902019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * valops.c (value_must_coerce_to_target): Change return type to
4493 bool.
4494 * value.h (value_must_coerce_to_target): Likewise.
4495
f2478a7e
SM
44962019-07-10 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * breakpoint.c (is_hardware_watchpoint): Remove
4499 forward-declaration.
4500 (is_masked_watchpoint): Change return type to bool.
4501 (is_tracepoint): Likewise.
4502 (is_breakpoint): Likewise.
4503 (is_hardware_watchpoint): Likewise.
4504 (is_watchpoint): Likewise.
4505 (is_no_memory_software_watchpoint): Likewise.
4506 (is_catchpoint): Likewise.
4507 (breakpoint_1): Make FILTER parameter's return type bool.
4508 is_masked_watchpoint): Change return type to bool.
4509 (save_breakpoints): Make FILTER parameter's return type bool.
4510 * breakpoint.h (is_breakpoint): Change return type to bool.
4511 (is_watchpoint): Likewise.
4512 (is_catchpoint): Likewise.
4513 (is_tracepoint): Likewise.
4514
0d12e84c
TT
45152019-07-10 Tom Tromey <tom@tromey.com>
4516
4517 * defs.h: Don't include gdbarch.h.
4518 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4519 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4520 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4521 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4522 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4523 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4524 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4525 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4526 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4527 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4528 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4529 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4530 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4531 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4532 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4533 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4534 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4535 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4536 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4537 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4538 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4539 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4540 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4541 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4542 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4543 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4544 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4545
f06f1252
TT
45462019-07-10 Tom Tromey <tromey@adacore.com>
4547
4548 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4549 * breakpoint.c (init_ada_exception_breakpoint): Register as
4550 bp_catchpoint.
4551 (print_one_breakpoint_location, print_one_breakpoint): Use
4552 is_ada_exception_catchpoint.
4553 * ada-lang.c (class ada_catchpoint_location): Pass
4554 bp_loc_software_breakpoint to bp_location constructor.
4555 (is_ada_exception_catchpoint): New function.
4556
7a5d944b
TT
45572019-07-10 Tom Tromey <tromey@adacore.com>
4558
4559 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4560 VEC.
4561 (struct arm_exidx_entry): New method operator<.
4562 (struct arm_exidx_data) <section_maps>: Change type.
4563 (arm_exidx_data_free): Remove.
4564 (arm_exidx_data_key): Change type. Move lower.
4565 (arm_exidx_new_objfile): Update.
4566 (arm_compare_exidx_entries): Remove.
4567 (arm_find_exidx_entry, _initialize_arm_tdep)
4568
48c66e1d
TT
45692019-07-10 Tom Tromey <tromey@adacore.com>
4570
4571 * solib-spu.c (ocl_program_data_key): Change type.
4572 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4573 Update.
4574
a269fbf1
TT
45752019-07-10 Tom Tromey <tromey@adacore.com>
4576
4577 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4578 (struct solib_aix_inferior_data) <library_list>: Change type.
4579 (solib_aix_inferior_data_handle): Change type.
4580 (get_solib_aix_inferior_data): Update.
4581 (solib_aix_free_library_list): Remove.
4582 (library_list_start_library): Update.
4583 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4584 return type.
4585 (solib_aix_get_library_list)
4586 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4587 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4588
c294730c
TT
45892019-07-10 Tom Tromey <tromey@adacore.com>
4590
4591 * solib-dsbt.c (struct dsbt_info): Add initializers.
4592 (solib_dsbt_pspace_data): Change type.
4593 (dsbt_pspace_data_cleanup): Remove.
4594 (get_dsbt_info, _initialize_dsbt_solib): Update.
4595
9d52077d
TT
45962019-07-10 Tom Tromey <tromey@adacore.com>
4597
4598 * spu-tdep.c (spu_overlay_data): Change type.
4599 (spu_get_overlay_table, spu_overlay_new_objfile)
4600 (_initialize_spu_tdep): Update.
4601
22a20dca
TT
46022019-07-10 Tom Tromey <tromey@adacore.com>
4603
4604 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4605 destructor.
4606 (dbx_objfile_data_key): Change type and declare later.
4607 (DBX_SYMFILE_INFO): Rewrite.
4608 * dbxread.c (dbx_objfile_data_key): Change type.
4609 (dbx_symfile_init): Update.
4610 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4611 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4612 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4613
cb60f420
TT
46142019-07-10 Tom Tromey <tromey@adacore.com>
4615
4616 * jit.c (jit_program_space_key): Change type. Move lower.
4617 (get_jit_program_space_data): Update.
4618 (jit_program_space_data_cleanup): Remove.
4619 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4620 Update.
4621 (struct jit_program_space_data): Add initializers.
4622
51df2ae3
TT
46232019-07-10 Tom Tromey <tromey@adacore.com>
4624
4625 * solib-darwin.c (struct darwin_info): Add initializers.
4626 (solib_darwin_pspace_data): Change type.
4627 (darwin_pspace_data_cleanup): Remove.
4628 (get_darwin_info, _initialize_darwin_solib): Update.
4629
18101a35
TT
46302019-07-10 Tom Tromey <tromey@adacore.com>
4631
4632 * remote-sim.c (struct sim_inferior_data): Add initializers,
4633 constructor, and destructor.
4634 (sim_inferior_data_key): Change type. Move lower.
4635 (check_for_duplicate_sim_descriptor): Update.
4636 (get_sim_inferior_data): Use new. Update.
4637 (~sim_inferior_data_cleanup): Rename from
4638 sim_inferior_data_cleanup. Simplify.
4639 (gdbsim_close_inferior, simulator_command)
4640 (sim_command_completer, _initialize_remote_sim): Update.
4641 (next_pid, INITIAL_PID): Move earlier.
4642
05b08ac1
TT
46432019-07-10 Tom Tromey <tromey@adacore.com>
4644
4645 * python/python-internal.h (create_thread_object): Return
4646 gdbpy_ref.
4647 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4648 * python/py-inferior.c (struct threadlist_entry): Add
4649 constructor.
4650 <thread_obj>: Now a gdbpy_ref.
4651 (thread_to_thread_object): Update.
4652 (add_thread_object): Use new.
4653 (delete_thread_object): Use delete.
4654 (infpy_threads): Update.
4655 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4656 GIL.
4657
32372d80
TT
46582019-07-10 Tom Tromey <tromey@adacore.com>
4659
4660 * valops.c (value_cast): Specialize error message for Ada.
4661
5c458ae8
SM
46622019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4665
4c462cb0
SM
46662019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4669 bpstat_should_step): Return bool, adjust comments.
4670 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4671 bpstat_should_step): Likewise.
4672
89abbcc2
AH
46732019-07-10 Alan Hayward <alan.hayward@arm.com>
4674
4675 * features/Makefile: Use feature target descriptions for Arm.
4676 * features/arm/arm-core.c: Generate new file.
4677 * features/arm/arm-fpa.c: Likewise.
4678 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4679 * features/arm/arm-m-profile.c: Likewise.
4680 * features/arm/arm-vfpv2.c: Likewise.
4681 * features/arm/arm-vfpv3.c: Likewise.
4682 * features/arm/xscale-iwmmxt.c: Likewise.
4683 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4684
166a82be
AH
46852019-07-10 Alan Hayward <alan.hayward@arm.com>
4686
4687 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4688 ptrace earlier.
4689
9fb4c7e9
AH
46902019-07-10 Alan Hayward <alan.hayward@arm.com>
4691
4692 * features/aarch64-pauth.c: Regenerate.
4693
e2d0f980
SM
46942019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4695
4696 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4697 bool.
4698 (bpstat_what): Use false instead of 0.
4699
a38118e5
PA
47002019-07-09 Pedro Alves <palves@redhat.com>
4701
4702 * break-catch-throw.c (is_exception_catchpoint): New.
4703 * breakpoint.c (print_one_breakpoint_location): New parameter
4704 'raw_loc'. Handle it. Use
4705 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4706 looking at the breakpoint's type.
4707 (print_one_breakpoint): If handling "maint info breakpoints", also
4708 print locations of exception catchpoints.
4709 * breakpoint.h (is_exception_catchpoint): Declare.
4710
cb1e4e32
PA
47112019-07-09 Pedro Alves <palves@redhat.com>
4712
4713 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4714 "addr" field.
4715 (allocate_location_exception_catchpoint): New.
4716 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4717 (initialize_throw_catchpoint_ops): Install
4718 allocate_location_exception_catchpoint as allocate_location
4719 method.
4720 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4721 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4722 bp_loc_other.
4723 (breakpoint_address_is_meaningful): Delete.
4724 (bl_address_is_meaningful): New.
4725 (breakpoint_locations_match): Adjust comment.
4726 (bp_location_from_bp_type): New, factored out of...
4727 (bp_location::bp_location(breakpoint *)): ... this.
4728 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4729 factored out of...
4730 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4731 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4732 breakpoint_address_is_meaningful.
4733 (bp_locations_compare): Adjust comment.
4734 (update_global_location_list): Use bl_address_is_meaningful
4735 instead of breakpoint_address_is_meaningful.
4736 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4737 explicit.
4738 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4739 * python/py-breakpoint.c (bppy_get_location): No longer check
4740 whether location is null.
4741
b58a68fe
PA
47422019-07-09 Pedro Alves <palves@redhat.com>
4743
4744 PR c++/15468
4745 * breakpoint.c (print_one_breakpoint_location): Remove
4746 single-location assert.
4747
268a13a5
TT
47482019-07-09 Tom Tromey <tom@tromey.com>
4749
4750 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4751 * configure: Rebuild.
4752 * configure.ac: Change common to gdbsupport.
4753 * gdbsupport: Rename from common.
4754 * acinclude.m4: Change common to gdbsupport.
4755 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4756 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4757 gdbsupport.
4758 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4759 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4760 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4761 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4762 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4763 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4764 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4765 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4766 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4767 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4768 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4769 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4770 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4771 coff-pe-read.c, command.h, compile/compile-c-support.c,
4772 compile/compile-c.h, compile/compile-cplus-symbols.c,
4773 compile/compile-cplus-types.c, compile/compile-cplus.h,
4774 compile/compile-loc2c.c, compile/compile.c, completer.c,
4775 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4776 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4777 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4778 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4779 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4780 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4781 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4782 features/aarch64-core.c, features/aarch64-fpu.c,
4783 features/aarch64-pauth.c, features/aarch64-sve.c,
4784 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4785 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4786 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4787 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4788 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4789 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4790 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4791 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4792 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4793 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4794 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4795 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4796 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4797 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4798 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4799 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4800 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4801 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4802 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4803 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4804 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4805 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4806 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4807 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4808 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4809 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4810 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4811 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4812 minsyms.c, mips-linux-tdep.c, namespace.h,
4813 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4814 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4815 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4816 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4817 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4818 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4819 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4820 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4821 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4822 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4823 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4824 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4825 procfs.c, producer.c, progspace.h, psymtab.h,
4826 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4827 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4828 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4829 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4830 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4831 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4832 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4833 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4834 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4835 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4836 target-memory.c, target.c, target.h, target/waitstatus.c,
4837 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4838 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4839 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4840 unittests/array-view-selftests.c,
4841 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4842 unittests/common-utils-selftests.c,
4843 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4844 unittests/format_pieces-selftests.c,
4845 unittests/function-view-selftests.c,
4846 unittests/lookup_name_info-selftests.c,
4847 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4848 unittests/mkdir-recursive-selftests.c,
4849 unittests/observable-selftests.c,
4850 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4851 unittests/parse-connection-spec-selftests.c,
4852 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4853 unittests/scoped_fd-selftests.c,
4854 unittests/scoped_mmap-selftests.c,
4855 unittests/scoped_restore-selftests.c,
4856 unittests/string_view-selftests.c, unittests/style-selftests.c,
4857 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4858 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4859 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4860 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4861 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4862 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4863
5b0e2db4
AB
48642019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4867 bool value.
4868 (decode_digits_ordinary): Set explicit_line field in sal.
4869 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4870 symtab_and_line that was set on an explicit line number in
4871 assembler code. Do always update the recorded symtab and line if
4872 we do skip the prologue.
4873
0ba852ab
AB
48742019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * breakpoint.c (set_breakpoint_location_function): Remove
4877 explicit_loc parameter.
4878 (momentary_breakpoint_from_master): Update call to
4879 set_breakpoint_location_function.
4880 (add_location_to_breakpoint): Likewise.
4881
b3a7d171
AB
48822019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4883
4884 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4885 required features based on default bfd type when no specific bfd
4886 is present.
4887
1f6f6e21
PW
48882019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4889
4890 * NEWS: Mention that GDB printf and eval commands can now print
4891 C-style and Ada-style convenience var strings without
4892 calling the inferior.
4893 * printcmd.c (printf_c_string): Locally print GDB internal var
4894 instead of transiting via the inferior.
4895 (printf_wide_c_string): Likewise.
4896
48972019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4898
5862c886 4899 PR breakpoints/25011
ea142fbf
AH
4900 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4901
0598af48
TT
49022019-07-04 Tom Tromey <tom@tromey.com>
4903
4904 PR tui/24724:
4905 * tui/tui-winsource.c (tui_clear_source_content): Update.
4906 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4907 (tui_update_breakpoint_info): Update.
4908 (tui_set_exec_info_content): Update.
4909 * tui/tui-source.c (tui_set_source_content_nil): Update.
4910 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4911 has_break.
4912 * tui/tui-data.h (enum tui_bp_flag): New.
4913 (tui_bp_flags): New enum flags type.
4914 (struct tui_source_element) <break_mode>: Change type. Rename
4915 from has_break.
4916 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4917 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4918 constants.
4919 * tui/tui-winsource.h: Fix comment.
4920
350fab54
AH
49212019-07-04 Alan Hayward <alan.hayward@arm.com>
4922
4923 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4924 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4925 (store_fpregs_to_thread)
4926 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4927 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4928 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4929 (IWMMXT_REGS_SIZE): Add define.
4930 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4931 (fetch_vfp_regs, store_vfp_regs)
4932 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4933 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4934
f0452268
AH
49352019-07-04 Alan Hayward <alan.hayward@arm.com>
4936
4937 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4938 defines.
4939 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4940 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4941 (ARM_INT_REGISTER_SIZE): ...to this.
4942 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4943 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4944 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4945 (arm_linux_collect_gregset, supply_nwfpe_register)
4946 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4947 defines.
4948 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4949 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4950 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4951 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4952 (arm_return_in_memory, arm_store_return_value)
4953 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4954 (arm_record_ld_st_multiple): Likewise.
4955 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4956 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4957
e935475c
AH
49582019-07-04 Alan Hayward <alan.hayward@arm.com>
4959
4960 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4961 AARCH64_DISPLACED_MODIFIED_INSNS.
4962 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4963 (aarch64_displaced_step_copy_insn): Likewise.
4964 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4965 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4966 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4967 ARM_DISPLACED_MODIFIED_INSNS.
4968 * arm-tdep.c (arm_gdbarch_init): Likewise.
4969 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4970 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4971 (struct arm_displaced_step_closure): Use
4972 ARM_DISPLACED_MODIFIED_INSNS.
4973
df0bb381
AH
49742019-07-04 Alan Hayward <alan.hayward@arm.com>
4975
4976 * features/Makefile: Remove unused xml files.
4977 * features/aarch64.xml: Remove.
4978 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4979 * features/i386/amd64-avx-avx512.xml: Remove.
4980 * features/i386/amd64-avx-linux.xml: Remove.
4981 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4982 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4983 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4984 * features/i386/amd64-avx-mpx.xml: Remove.
4985 * features/i386/amd64-avx.xml: Remove.
4986 * features/i386/amd64-linux.xml: Remove.
4987 * features/i386/amd64-mpx-linux.xml: Remove.
4988 * features/i386/amd64-mpx.xml: Remove.
4989 * features/i386/amd64.xml: Remove.
4990 * features/i386/i386-avx-avx512-linux.xml: Remove.
4991 * features/i386/i386-avx-avx512.xml: Remove.
4992 * features/i386/i386-avx-linux.xml: Remove.
4993 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4994 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4995 * features/i386/i386-avx-mpx-linux.xml: Remove.
4996 * features/i386/i386-avx-mpx.xml: Remove.
4997 * features/i386/i386-avx.xml: Remove.
4998 * features/i386/i386-linux.xml: Remove.
4999 * features/i386/i386-mmx-linux.xml: Remove.
5000 * features/i386/i386-mmx.xml: Remove.
5001 * features/i386/i386-mpx-linux.xml: Remove.
5002 * features/i386/i386-mpx.xml: Remove.
5003 * features/i386/i386.xml: Remove.
5004 * features/i386/x32-avx-avx512-linux.xml: Remove.
5005 * features/i386/x32-avx-linux.xml: Remove.
5006 * features/i386/x32-linux.xml: Remove.
5007
edd6266a
AH
50082019-07-04 Alan Hayward <alan.hayward@arm.com>
5009
5010 * regformats/aarch64.dat: Remove.
5011 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5012 * regformats/i386/amd64-avx-linux.dat: Remove.
5013 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5014 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5015 * regformats/i386/amd64-linux.dat: Remove.
5016 * regformats/i386/amd64-mpx-linux.dat: Remove.
5017 * regformats/i386/amd64.dat: Remove.
5018 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5019 * regformats/i386/i386-avx-linux.dat: Remove.
5020 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5021 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5022 * regformats/i386/i386-linux.dat: Remove.
5023 * regformats/i386/i386-mmx-linux.dat: Remove.
5024 * regformats/i386/i386-mpx-linux.dat: Remove.
5025 * regformats/i386/i386.dat: Remove.
5026 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5027 * regformats/i386/x32-avx-linux.dat: Remove.
5028 * regformats/i386/x32-linux.dat: Remove.
5029
2b40fda7
AH
50302019-07-04 Alan Hayward <alan.hayward@arm.com>
5031
5032 * aarch64-tdep.c: Remove xml self tests.
5033 * amd64-linux-tdep.c: Likewise.
5034 * amd64-tdep.c: Likewise.
5035 * i386-linux-tdep.c: Likewise.
5036 * i386-tdep.c: Likewise.
5037
5f4ba3e7
PA
50382019-07-03 Pedro Alves <palves@redhat.com>
5039
5040 PR cli/24732
5041 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5042 (pipe_cmd_option_defs): New.
5043 (make_pipe_cmd_options_def_group): New.
5044 (pipe_command): Use gdb::option::process_options.
5045 (pipe_command_completer): New function.
5046 (_initialize_cli_cmds): Install completer for "pipe" command.
5047
3d9be6f5
PA
50482019-07-03 Pedro Alves <palves@redhat.com>
5049
5050 * cli/cli-option.c (union option_value) <string>: New field.
5051 (struct option_def_and_value): Add ctor, move ctor, dtor and
5052 use DISABLE_COPY_AND_ASSIGN.
5053 (option_def_and_value::clear_value): New.
5054 (parse_option, save_option_value_in_ctx, get_val_type_str)
5055 (add_setshow_cmds_for_options): Handle var_string.
5056 * cli-option.h (union option_def::var_address) <string>: New
5057 field.
5058 (struct string_option_def): New.
5059 * maint-test-options.c (struct test_options_opts): Add default
5060 ctor and use DISABLE_COPY_AND_ASSIGN.
5061 <string_opt>: New field.
5062 (test_options_opts::~test_options_opts): New.
5063 (test_options_opts::dump): Also dump "-string".
5064 (test_options_option_defs): Install "string.
5065
41fc454c
PA
50662019-07-03 Pedro Alves <palves@redhat.com>
5067
5068 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5069 option_value with a null enumeration.
5070 (complete_options): Save the option values in the context.
5071 (save_option_value_in_ctx): New, factored out from ...
5072 (process_options): ... here.
5073 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5074 of the function.
5075 * maint-test-options.c (test_options_opts::dump): New, factored
5076 out from ...
5077 (maintenance_test_options_command_mode): ... here.
5078 (maintenance_test_options_command_completion_result): Delete.
5079 (maintenance_test_options_command_completion_text): Update
5080 comment.
5081 (maintenance_show_test_options_completion_result): Change
5082 prototype. Just print
5083 maintenance_test_options_command_completion_text.
5084 (save_completion_result): New.
5085 (maintenance_test_options_completer_mode): Pass options context to
5086 complete_options, and then save a dump.
5087 (_initialize_maint_test_options): Use add_cmd to install "maint
5088 show test-options-completion-result".
5089
fdbc9870
PA
50902019-07-03 Pedro Alves <palves@redhat.com>
5091
5092 * NEWS (New commands): Mention "with" and "maint with".
5093 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5094 (with_command, with_command_completer): New.
5095 (pipe_command): Adjust to new repeat_previous
5096 interface.
5097 (_initialize_cli_cmds): Install the "with" command and its "w"
5098 alias.
5099 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5100 declarations.
5101 * cli/cli-setshow.c (parse_cli_var_uinteger)
5102 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5103 argument strings for all var_types.
5104 (get_setshow_command_value_string): New, factored out from ...
5105 (do_show_command): ... this.
5106 * cli/cli-setshow.h: Include <string>.
5107 (get_setshow_command_value_string): Declare.
5108 * command.h (repeat_previous): Now returns const char *. Adjust
5109 comment.
5110 * maint.c: Include "cli/cli-cmds.h".
5111 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5112 (_initialize_maint_cmds): Register the "maintenance with" command.
5113 * top.c (repeat_previous): Move bits from pipe_command here:
5114 Return the saved command line, if any; error out if there's no
5115 command to relaunch.
5116
c6ac8931
PA
51172019-07-03 Pedro Alves <palves@redhat.com>
5118
5119 * NEWS (New commands): Mention "maint set/show test-settings"
5120 instead of "maint test-settings".
5121 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5122 (maintenance_test_settings_set_list): Rename to ...
5123 (maintenance_set_test_settings_list): ... this.
5124 (maintenance_test_settings_show_list): Rename to ...
5125 (maintenance_show_test_settings_list): ... this.
5126 (maintenance_test_settings_cmd): Delete.
5127 (maintenance_test_settings_set_cmd): ...
5128 (maintenance_set_test_settings_cmd): ... this.
5129 (maintenance_test_settings_show_cmd): ...
5130 (maintenance_show_test_settings_cmd): ... this.
5131 (maintenance_test_settings_show_value_cmd):
5132 (maintenance_show_test_settings_value_cmd): ... this.
5133 (_initialize_maint_test_settings): No longer install the "maint
5134 test-settings" prefix command. Rename "maint test-settings set"
5135 to "maint set test-settings", and "maint test-settings show" to
5136 "maint show test-settings". Adjust all subcommands.
5137
d1fcf2fd
PA
51382019-07-03 Pedro Alves <palves@redhat.com>
5139
5140 * maint-test-settings.c: Fix file's intro comment. Replace all
5141 references to "test-options" with references to "test-settings",
5142 in comments.
5143
970f9d09
PA
51442019-07-03 Pedro Alves <palves@redhat.com>
5145
5146 * maint-test-settings.c (maintenance_test_settings_xxx)
5147 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5148 New.
5149 (maintenance_test_settings_enums): Use them.
5150 (maintenance_test_settings_enum): Default to
5151 maintenance_test_settings_xxx.
5152 (_initialize_maint_test_settings): Initialize
5153 MAINTENANCE_TEST_SETTINGS_FILENAME.
5154
f3869b1a
SM
51552019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5156
5157 * breakpoint.h (remove_breakpoints_inf): Change return type to
5158 void, move function documentation here.
5159 * breakpoint.c (remove_breakpoints_inf): Change return type to
5160 void, move function documentation to header.
5161
54d66006
PA
51622019-07-02 Pedro Alves <palves@redhat.com>
5163
5164 * NEWS (Completion improvements): Mention "info threads".
5165 * thread.c (struct info_threads_opts, info_threads_option_defs)
5166 (make_info_threads_options_def_group): New.
5167 (info_threads_command): Use gdb::option::process_options.
5168 (info_threads_command_completer): New.
5169 (_initialize_thread): Use gdb::option::build_help to build the
5170 help text for "info threads".
5171
854f6088
SM
51722019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5173
5174 * defs.h (generic_load): Move from here...
5175 * symfile.h (generic_load): ... to here. Rename name parameter
5176 to args.
5177 * symfile.c (generic_load): Add comment.
5178
54ee4252
TT
51792019-07-01 Tom Tromey <tromey@adacore.com>
5180
5181 * dwarf2read.c
5182 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5183 declaration of without_params. Fix formatting.
5184
65392b3e
TT
51852019-07-01 Tom Tromey <tromey@adacore.com>
5186
5187 * ada-exp.y (find_primitive_type): Update.
5188 * ada-lang.h (ada_lookup_symbol): Update.
5189 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5190 parameter.
5191 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5192
7d7571f0
SDJ
51932019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5194
5195 PR breakpoints/24541
5196 * gdbarch.c: Regenerate.
5197 * gdbarch.h: Regenerate.
5198 * gdbarch.sh: Add 'stap_adjust_register'.
5199 * i386-tdep.c: Include '<unordered_set>'.
5200 (i386_stap_adjust_register): New function.
5201 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5202 * stap-probe.c (stap_parse_register_operand): Call
5203 'gdbarch_stap_adjust_register'.
5204
5af5392a
SDJ
52052019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5206
5207 PR python/24742
5208 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5209 * python/python.c (do_start_initialization): Use 'xmalloc'
5210 instead of 'PyMem_Malloc'.
5211
10d06d82
TT
52122019-06-28 Tom Tromey <tromey@adacore.com>
5213
5214 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5215 for Ada.
5216
1b7f24cd
TT
52172019-06-27 Tom Tromey <tromey@adacore.com>
5218
5219 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5220 objfile_key.
5221 (arm_find_mapping_symbol, arm_record_special_symbol)
5222 (_initialize_arm_tdep): Update.
5223 (arm_objfile_data_free): Remove.
5224
3d507ff2
TT
52252019-06-27 Tom Tromey <tromey@adacore.com>
5226
5227 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5228 to cp_print_static_field.
5229
762c164d
TT
52302019-06-26 Tom Tromey <tromey@adacore.com>
5231
5232 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5233 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5234 declare.
5235
aa2f9bcf
AH
52362019-06-26 Alan Hayward <alan.hayward@arm.com>
5237
5238 * features/aarch64-core.c (create_feature_aarch64_core):
5239 Regenerate.
5240 * features/aarch64-core.xml: Add cpsr flags.
5241
3426ae57
AH
52422019-06-26 Alan Hayward <alan.hayward@arm.com>
5243
5244 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5245 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5246
4838e44c
SM
52472019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5250 field.
5251 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5252 use.
5253 (arm_record_special_symbol): Don't insert new symbol in sorted
5254 position, push it at the end.
5255
54cc7474
SM
52562019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5259 (arm_mapping_symbol_s): Remove.
5260 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5261 (arm_mapping_symbol_vec): New typedef.
5262 (struct arm_per_objfile): Add constructor.
5263 <section_maps>: Change type to
5264 std::unique_ptr<arm_mapping_symbol_vec[]>.
5265 (arm_compare_mapping_symbols): Remove.
5266 (arm_find_mapping_symbol): Adjust to section_maps type change.
5267 (arm_objfile_data_free): Call delete on arm_per_objfile.
5268 (arm_record_special_symbol): Adjust to section_maps type change.
5269 Allocate arm_per_objfile with new.
5270
b65b566c
PW
52712019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5272
5273 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5274 with the command prefix.
5275
c2fc64f5
TT
52762019-06-25 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5279 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5280
fb54fa76
TT
52812019-06-25 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5284 type.
5285 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5286 protected.
5287
f7952c57
TT
52882019-06-25 Tom Tromey <tom@tromey.com>
5289
5290 * tui/tui-winsource.c
5291 (tui_source_window_base::set_is_exec_point_at): Add check against
5292 LOA_ADDRESS.
5293
17568d78
TT
52942019-06-25 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-source.c (tui_set_source_content): Don't check before
5297 xfree.
5298 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5299
53e7cdba
TT
53002019-06-25 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui-winsource.h (tui_update_source_window_as_is)
5303 (tui_alloc_source_buffer, tui_line_is_displayed)
5304 (tui_addr_is_displayed): Change type of win_info.
5305 * tui/tui-winsource.c (tui_update_source_window_as_is)
5306 (tui_clear_source_content, tui_show_source_line)
5307 (tui_show_source_content, tui_source_window_base::refill)
5308 (tui_source_window_base::set_is_exec_point_at)
5309 (tui_source_window_base::set_is_exec_point_at)
5310 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5311 (tui_alloc_source_buffer, tui_line_is_displayed)
5312 (tui_addr_is_displayed): Change type of win_info. Update.
5313 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5314 (tui_source_window_base::do_make_visible_with_new_height):
5315 Update.
5316 * tui/tui-source.c (tui_set_source_content)
5317 (tui_set_source_content_nil)
5318 (tui_source_window::do_scroll_vertical): Update.
5319 * tui/tui-layout.c (show_layout): Update.
5320 * tui/tui-disasm.c (tui_set_disassem_content)
5321 (tui_disasm_window::do_scroll_vertical): Update.
5322 * tui/tui-data.h (tui_win_content): Remove.
5323 (struct tui_gen_win_info) <content, content_size>: Remove.
5324 (struct tui_source_element): Add initializers and destructor.
5325 (union tui_which_element, struct tui_win_element): Remove.
5326 (struct tui_source_window_base) <content>: New field.
5327 (struct tui_data_window): Remove destructor.
5328 (tui_alloc_content, tui_free_win_content)
5329 (tui_free_all_source_wins_content): Don't declare.
5330 * tui/tui-data.c (tui_initialize_static_data): Update.
5331 (init_content_element, tui_alloc_content): Remove.
5332 (~tui_gen_win_info): Update.
5333 (~tui_data_window, tui_free_all_source_wins_content)
5334 (tui_free_win_content, free_content, free_content_elements):
5335 Remove.
5336
7908abbf
TT
53372019-06-25 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-winsource.h (tui_clear_source_content)
5340 (tui_erase_source_content, tui_show_source_content): Change type
5341 of win_info.
5342 * tui/tui-winsource.c (tui_clear_source_content)
5343 (tui_erase_source_content, tui_show_source_content): Change type
5344 of win_info.
5345 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5346 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5347 win_info.
5348 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5349 win_info.
5350 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5351
02c28df0
TT
53522019-06-25 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-winsource.c (tui_clear_source_content)
5355 (tui_source_window_base::set_is_exec_point_at): Update.
5356 * tui/tui-source.c (tui_set_source_content_nil): Update.
5357 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5358 a bool.
5359 * tui/tui-data.c (init_content_element): Update.
5360
6658b1bf
TT
53612019-06-25 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5364 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5365 * tui/tui-layout.c (init_and_make_win): Update.
5366 * tui/tui.h (enum tui_win_type): Update.
5367 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5368 tui_win_is_auxillary.
5369 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5370 tui_win_is_auxillary.
5371
21e1c91e
TT
53722019-06-25 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5375 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5376 (tui_delete_data_content_windows, tui_display_all_data)
5377 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5378 Update.
5379 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5380 * tui/tui-regs.c (tui_last_regs_line_no)
5381 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5382 (tui_show_registers): Update.
5383 (tui_show_register_group): Return void. Update.
5384 (tui_display_registers_from, tui_display_reg_element_at_line)
5385 (tui_display_registers_from_line, tui_check_register_values):
5386 Update.
5387 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5388 member.
5389 (struct tui_data_window) <regs_content>: Now a std::vector.
5390 <regs_content_count>: Remove.
5391 (tui_add_content_elements, tui_free_data_content): Don't declare.
5392 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5393 (init_content_element): Remove DATA_WIN case. Add assert.
5394 (tui_add_content_elements): Remove.
5395 (tui_data_window): Update.
5396 (tui_free_data_content): Remove.
5397 (free_content_elements): Remove DATA_WIN case.
5398
115ac53b
TT
53992019-06-25 Tom Tromey <tom@tromey.com>
5400
5401 * tui/tui-data.c (tui_data_item_window): Update.
5402 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5403 * tui/tui-windata.c (tui_display_all_data)
5404 (tui_display_data_from_line): Update.
5405 (tui_check_data_values): Remove.
5406 * tui/tui-regs.c (tui_show_register_group)
5407 (tui_display_reg_element_at_line): Update.
5408 * tui/tui-hooks.c (tui_register_changed)
5409 (tui_refresh_frame_and_register_information): Call
5410 tui_check_register_values.
5411 * tui/tui-data.h (struct tui_data_window) <data_content,
5412 data_content_count, data_type>: Remove.
5413 (enum tui_data_type): Remove.
5414
5415 * tui/tui-data.c (tui_data_window::clear_detail)
5416 (~tui_data_window): Update.
5417
eaf9738b
TT
54182019-06-25 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5421 declare.
5422 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5423 Rename from tui_first_data_item_displayed. Update.
5424 (tui_data_window::refresh_all)
5425 (tui_data_window::do_scroll_vertical): Update.
5426 * tui/tui-data.h (struct tui_data_window)
5427 <first_data_item_displayed>: Declare new method.
5428
31ca4723
TT
54292019-06-25 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5432 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5433 contents...
5434 (tui_initialize_static_data): ...here.
5435
41bcff7f
TT
54362019-06-25 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5439 (tui_display_registers_from, tui_check_register_values): Update.
5440 (tui_display_register): Remove win_info parameter; update.
5441 (tui_get_register): Change type of parameters.
5442 * tui/tui-data.h (struct tui_data_element): Remove.
5443 (union tui_which_element) <data>: Remove.
5444 <data_window>: Change type.
5445 (struct tui_data_item_window): New.
5446 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5447 case. Add assert.
5448 (~tui_data_item_window): New destructor.
5449 (free_content_elements): Remove DATA_ITEM_WIN case.
5450
d2802c33
TT
54512019-06-25 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5454 Remove.
5455
dd835f8b
TT
54562019-06-25 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-data.h (struct tui_command_element): Remove.
5459 (union tui_which_element) <command>: Remove.
5460 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5461 assert.
5462 (free_content_elements): Remove CMD_WIN case.
5463
bd7db367
TT
54642019-06-25 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-layout.c (tui_set_layout): Update.
5467 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5468 * tui/tui-data.c (layout_def): Update.
5469
3add462f
TT
54702019-06-25 Tom Tromey <tom@tromey.com>
5471
5472 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5473 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5474 (tui_source_window_base::set_new_height): Update.
5475 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5476 Update.
5477 (tui_set_locator_fullname, tui_set_locator_info)
5478 (tui_show_frame_info): Update.
5479 * tui/tui-source.c (tui_set_source_content)
5480 (tui_source_is_displayed): Update.
5481 * tui/tui-layout.c (show_source_disasm_command, show_data)
5482 (show_source_or_disasm_and_command): Update.
5483 * tui/tui-disasm.c (tui_set_disassem_content)
5484 (tui_get_begin_asm_address): Update.
5485 * tui/tui-data.h (struct tui_locator_element): Remove.
5486 (union tui_which_element) <locator>: Remove.
5487 (struct tui_locator_window): New.
5488 (tui_locator_win_info_ptr): Change return type.
5489 * tui/tui-data.c (_locator): Change type.
5490 (tui_locator_win_info_ptr): Change return type.
5491 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5492 (tui_alloc_content): Add assert.
5493
489e9d8b
TT
54942019-06-25 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-winsource.c
5497 (tui_exec_info_window::maybe_allocate_content): New method.
5498 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5499 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5500 (make_source_or_disasm_window): Add cast.
5501 * tui/tui-data.h (union tui_which_element) <simple_string>:
5502 Remove.
5503 (struct tui_source_info): New.
5504 (struct tui_source_window_base) <execution_info>: Change type.
5505 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5506 case, and add assert.
5507 (tui_alloc_content): Add assert.
5508
c3fabb7d
TT
55092019-06-25 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5512 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5513 * tui/tui-data.c (tui_alloc_win_info): Remove.
5514
bbc228ee
TT
55152019-06-25 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5518 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5519 can_highlight.
5520
5fcee43a
TT
55212019-06-25 Tom Tromey <tom@tromey.com>
5522
5523 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5524 make_visible_with_new_height method.
5525 (tui_win_info::make_visible_with_new_height): New method.
5526 (tui_source_window_base::do_make_visible_with_new_height)
5527 (tui_data_window::do_make_visible_with_new_height)
5528 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5529 (make_visible_with_new_height): Remove.
5530 (tui_resize_all, tui_adjust_win_heights): Use
5531 make_visible_with_new_height method.
5532 * tui/tui-data.h (struct tui_win_info)
5533 <do_make_visible_with_new_height, make_visible_with_new_height>:
5534 New methods.
5535 (struct tui_source_window_base, struct tui_data_window)
5536 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5537 methods.
5538
d83f1fe6
TT
55392019-06-25 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5542 method.
5543 (update_tab_width): Call update_tab_width method.
5544 * tui/tui-data.h (struct tui_win_info)
5545 (struct tui_source_window_base) <update_tab_width>: New methods.
5546
17374de4
TT
55472019-06-25 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5550 parameter.
5551 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5552 parameter.
5553 (tui_gen_win_info::make_visible): Update.
5554 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5555 parameter.
5556 * tui/tui-data.h (enum tui_box): New enum.
5557 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5558
f936bca2
TT
55592019-06-25 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5562 init_and_make_win for EXEC_INFO_WIN.
5563 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5564 longer inline.
5565 (struct tui_win_info) <~tui_win_info>: Inline.
5566 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5567 Don't declare.
5568 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5569 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5570 Remove.
5571 (tui_initialize_static_data): Update.
5572 (~tui_gen_win_info): Handle more cleanup here.
5573 (~tui_source_window_base): Delete "execution_info".
5574 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5575
d6ba6a11
TT
55762019-06-25 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-layout.c (make_command_window): Don't set
5579 can_highlight.
5580 (show_source_disasm_command): Call the reset method.
5581 (show_data): Don't set can_highlight. Call the reset method.
5582 (tui_gen_win_info::reset): Rename from init_gen_win_info
5583 (init_and_make_win): Simplify. Return tui_gen_win_info.
5584 (show_source_or_disasm_and_command): Call the reset method.
5585 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5586 (struct tui_cmd_window): Set can_highlight.
5587
48a3bd16
TT
55882019-06-25 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5591 from make_visible.
5592 (tui_make_visible, tui_make_invisible): Rewrite.
5593 (tui_win_info::make_visible): Remove.
5594 (tui_source_window_base::make_visible): Update.
5595 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5596 method. Moved from...
5597 (struct tui_win_info) <make_visible>: ...here.
5598
c3bd716f
TT
55992019-06-25 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-winsource.c
5602 (tui_source_window_base::do_scroll_horizontal): Remove direction
5603 parameter.
5604 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5605 direction parameter.
5606 * tui/tui-win.c (tui_win_info::forward_scroll)
5607 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5608 (tui_win_info::right_scroll): Update.
5609 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5610 direction parameter.
5611 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5612 direction parameter.
5613 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5614 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5615 Remove direction parameter.
5616 (struct tui_source_window_base, struct tui_source_window)
5617 (struct tui_disasm_window, struct tui_data_window)
5618 (struct tui_cmd_window): Update.
5619
21c32dca
TT
56202019-06-25 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-winsource.h (tui_set_exec_info_content)
5623 (tui_show_exec_info_content, tui_erase_exec_info_content)
5624 (tui_clear_exec_info_content, tui_update_exec_info): Change
5625 argument to tui_source_window_base.
5626 * tui/tui-winsource.c (tui_set_exec_info_content)
5627 (tui_show_exec_info_content, tui_erase_exec_info_content)
5628 (tui_clear_exec_info_content, tui_update_exec_info): Change
5629 argument to tui_source_window_base.
5630
73fbdc65
TT
56312019-06-25 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5634 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5635
33325343
TT
56362019-06-25 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5639 check.
5640
29d2c474
TT
56412019-06-25 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5644 type to void.
5645 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5646 type to void.
5647 * tui/tui-source.c (tui_set_source_content): Update.
5648 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5649
152f3f4b
TT
56502019-06-25 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-win.c (window_name_completer, tui_set_focus)
5653 (tui_all_windows_info): Use name method.
5654 * tui/tui-data.h (struct tui_gen_win_info)
5655 (struct tui_source_window, struct tui_disasm_window)
5656 (struct tui_data_window, struct tui_cmd_window) <name>: New
5657 method.
5658 (tui_win_name): Don't declare.
5659 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5660 (tui_win_name): Remove.
5661
be4da588
TT
56622019-06-25 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-winsource.h (tui_update_source_window)
5665 (tui_update_source_window_as_is): Change parameter type.
5666 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5667 to be a tui_source_window_base.
5668 (tui_update_source_window_as_is): Likewise.
5669 * tui/tui-win.c (make_visible_with_new_height): Update.
5670
5b81daba
TT
56712019-06-25 Tom Tromey <tom@tromey.com>
5672
5673 * tui/tui-winsource.c (tui_erase_source_content)
5674 (tui_show_source_content, tui_show_exec_info_content)
5675 (tui_erase_exec_info_content): Use refresh_window method.
5676 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5677 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5678 from tui_refresh_win.
5679 (tui_data_window::refresh_window): New method.
5680 (tui_win_info::refresh, tui_source_window_base::refresh)
5681 (tui_refresh_all): Use refresh_window method.
5682 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5683 method.
5684 * tui/tui-regs.c (tui_display_register): Call refresh_window
5685 method.
5686 * tui/tui-layout.c (show_source_disasm_command)
5687 (show_source_or_disasm_and_command): Call refresh_window method.
5688 * tui/tui-data.h (struct tui_gen_win_info)
5689 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5690 New method.
5691
cb2ce893
TT
56922019-06-25 Tom Tromey <tom@tromey.com>
5693
5694 * tui/tui.c (tui_rl_other_window, tui_enable)
5695 (tui_is_window_visible, tui_get_command_dimension): Update.
5696 * tui/tui-winsource.c (tui_update_source_window_as_is)
5697 (tui_clear_source_content, tui_erase_source_content)
5698 (tui_show_source_line, tui_source_window_base::refill)
5699 (tui_source_window_base::do_scroll_horizontal)
5700 (tui_source_window_base::set_is_exec_point_at)
5701 (tui_update_breakpoint_info, tui_set_exec_info_content)
5702 (tui_alloc_source_buffer, tui_line_is_displayed)
5703 (tui_addr_is_displayed): Update.
5704 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5705 (tui_check_and_display_highlight_if_needed)
5706 (tui_win_info::make_visible, tui_win_info::refresh)
5707 (tui_refresh_all): Update.
5708 * tui/tui-windata.c (tui_first_data_item_displayed)
5709 (tui_delete_data_content_windows, tui_erase_data_content)
5710 (tui_display_all_data, tui_data_window::refresh_all)
5711 (tui_check_data_values): Update.
5712 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5713 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5714 (tui_win_info::backward_scroll, tui_refresh_all_win)
5715 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5716 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5717 (tui_source_window_base::set_new_height)
5718 (tui_data_window::set_new_height)
5719 (make_invisible_and_set_new_height)
5720 (make_visible_with_new_height, new_height_ok)
5721 (parse_scrolling_args): Update.
5722 * tui/tui-stack.c (tui_show_frame_info): Update.
5723 * tui/tui-source.c (tui_set_source_content)
5724 (tui_set_source_content_nil, tui_source_is_displayed)
5725 (tui_source_window::do_scroll_vertical): Update.
5726 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5727 (tui_display_registers_from, tui_display_reg_element_at_line)
5728 (tui_check_register_values, tui_reg_command): Update.
5729 * tui/tui-layout.c (tui_default_win_height)
5730 (show_source_disasm_command, show_data, init_and_make_win)
5731 (show_source_or_disasm_and_command): Update.
5732 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5733 (tui_redisplay_readline, tui_mld_flush)
5734 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5735 (tui_getc): Update.
5736 * tui/tui-disasm.c (tui_set_disassem_content)
5737 (tui_disasm_window::do_scroll_vertical): Update.
5738 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5739 Now virtual.
5740 (struct tui_win_info): Derive from tui_gen_win_info.
5741 <~tui_win_info>: Mark as override.
5742 <generic>: Remove member.
5743 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5744 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5745 (~tui_data_window, ~tui_win_info)
5746 (tui_free_all_source_wins_content): Update.
5747 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5748
ab313b35
TT
57492019-06-25 Tom Tromey <tom@tromey.com>
5750
5751 * tui/tui-layout.c (init_and_make_win): Use new.
5752 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5753 destructor, initializers.
5754 (tui_alloc_generic_win_info): Don't declare.
5755 * tui/tui-data.c (_locator): Add argument to constructor.
5756 (source_win, disasm_win): New globals.
5757 (exec_info): Remove.
5758 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5759 Update.
5760 (tui_alloc_generic_win_info): Remove.
5761 (init_content_element): Use new.
5762 (tui_win_info::tui_win_info): Update.
5763 (free_content_elements) <case DATA_WIN>: Use delete.
5764
dc2c33e4
TT
57652019-06-25 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5768 * tui/tui-windata.c (tui_first_data_item_displayed)
5769 (tui_delete_data_content_windows): Update.
5770 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5771 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5772 (tui_display_registers_from, tui_check_register_values): Update.
5773 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5774 pointer.
5775 * tui/tui-data.c (init_content_element): Update. Allocate the new
5776 window.
5777 (tui_free_data_content): Update.
5778 (free_content_elements) <case DATA_WIN>: Free the window.
5779
214a5cbe
TT
57802019-06-25 Tom Tromey <tom@tromey.com>
5781
5782 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5783 Update.
5784 * tui/tui-layout.c (make_command_window)
5785 (show_source_disasm_command, show_data, init_and_make_win)
5786 (show_source_or_disasm_and_command): Update.
5787 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5788 method.
5789 <can_highight, is_highlighted>: Now bool.
5790 (tui_set_win_highlight): Don't declare.
5791 * tui/tui-data.c (tui_set_win_highlight): Remove.
5792
8e2daf15
TT
57932019-06-25 Tom Tromey <tom@tromey.com>
5794
5795 * tui/tui-wingeneral.c (make_visible): Remove check of window
5796 type.
5797
8903bd8a
TT
57982019-06-25 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui-win.c (tui_win_info::max_height)
5801 (tui_cmd_window::max_height): New methods.
5802 (new_height_ok): Call max_height.
5803 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5804 <max_height>: New method.
5805
3f02ce1e
TT
58062019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-win.c (tui_source_window_base::set_new_height)
5809 (tui_data_window::set_new_height): New methods.
5810 (make_invisible_and_set_new_height): Call set_new_height method.
5811 * tui/tui-data.h (struct tui_win_info)
5812 (struct tui_source_window_base, struct tui_data_window)
5813 <set_new_height>: New method.
5814
1825f487
TT
58152019-06-25 Tom Tromey <tom@tromey.com>
5816
5817 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5818 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5819 tui_refresh_data_win.
5820 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5821 method.
5822 (tui_refresh_all_win): Call the refresh_all method.
5823 (tui_set_focus): Likewise.
5824 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5825 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5826 Likewise.
5827
ad54d15b
TT
58282019-06-25 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-winsource.h (tui_refill_source_window)
5831 (tui_set_is_exec_point_at): Don't declare.
5832 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5833 (tui_source_window_base::refill): Rename from
5834 tui_refill_source_window.
5835 (tui_source_window_base::do_scroll_horizontal): Update.
5836 (tui_source_window_base::set_is_exec_point_at): Rename from
5837 tui_set_is_exec_point_at.
5838 (tui_update_all_breakpoint_info): Update.
5839 * tui/tui-stack.c (tui_show_frame_info): Update.
5840 * tui/tui-layout.c (show_data): Add cast.
5841 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5842 * tui/tui-data.h (struct tui_source_window_base) <refill,
5843 set_is_exec_point_at>: New methods.
5844 (tui_source_windows, tui_add_to_source_windows): Update types.
5845 (tui_add_to_source_windows): Remove redundant declaration.
5846 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5847 (tui_source_windows): Change return type.
5848 (tui_clear_source_windows_detail): Update.
5849 (tui_add_to_source_windows): Change type of parameter.
5850 (tui_free_all_source_wins_content): Update.
5851
2042b506
TT
58522019-06-25 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-wingeneral.c (tui_win_info::refresh)
5855 (tui_source_window_base::refresh): New methods.
5856 (tui_refresh_all): Call the refresh method.
5857 * tui/tui-data.h (struct tui_win_info)
5858 (struct tui_source_window_base) <refresh>: New method.
5859
56122977
TT
58602019-06-25 Tom Tromey <tom@tromey.com>
5861
5862 * tui/tui.h (tui_is_window_visible): Return bool.
5863 * tui/tui.c (tui_is_window_visible): Return bool.
5864 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5865 (tui_make_visible, tui_make_invisible)
5866 (tui_win_info::make_visible)
5867 (tui_source_window_base::make_visible, make_all_visible)
5868 (tui_make_all_visible, tui_make_all_invisible): Update.
5869 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5870 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5871 bool.
5872 (struct tui_win_info, struct tui_source_window_base)
5873 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5874 * tui/tui-data.c (tui_init_generic_part): Update.
5875
cda37efb
TT
58762019-06-25 Tom Tromey <tom@tromey.com>
5877
5878 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5879 (tui_source_window_base::make_visible): New methods.
5880 (make_all_visible): Make method call.
5881 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5882 (struct tui_source_window_base, struct tui_cmd_window): Override
5883 make_visible.
5884 (tui_win_is_source_type): Don't declare.
5885 * tui/tui-data.c (tui_win_is_source_type): Remove.
5886
6a0ee02c
TT
58872019-06-25 Tom Tromey <tom@tromey.com>
5888
5889 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5890 NULL check.
5891
63901aec
TT
58922019-06-25 Tom Tromey <tom@tromey.com>
5893
5894 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5895 Inline constructor. Add initializers for members.
5896 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5897 constructors; now inline in class.
5898
ceb13a13
TT
58992019-06-25 Tom Tromey <tom@tromey.com>
5900
5901 * tui/tui-regs.c (tui_show_registers): Update.
5902 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5903 bool.
5904 * tui/tui-data.c (tui_data_window::clear_detail)
5905 (tui_data_window): Update.
5906
238eb706
TT
59072019-06-25 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-windata.c (tui_display_all_data)
5910 (tui_display_data_from_line, tui_display_data_from)
5911 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5912 Update.
5913 * tui/tui-regs.c (tui_last_regs_line_no)
5914 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5915 (tui_show_registers, tui_show_register_group)
5916 (tui_display_registers_from, tui_display_reg_element_at_line)
5917 (tui_display_registers_from_line, tui_check_register_values)
5918 (tui_reg_next, tui_reg_prev): Update.
5919 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5920 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5921 tui_data_window.
5922 (struct tui_win_info) <detail>: Remove. Add new fields from
5923 tui_data_info.
5924 (TUI_DATA_WIN): Add cast.
5925 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5926 (~tui_data_window): Simplify.
5927
81491aa0
TT
59282019-06-25 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-layout.c (show_source_disasm_command)
5931 (show_source_or_disasm_and_command): Update.
5932 * tui/tui-io.c (update_cmdwin_start_line)
5933 (tui_redisplay_readline): Update.
5934 * tui/tui-data.h (struct tui_command_info): Remove.
5935 (struct tui_win_info) <detail>: Remove command_info member.
5936 (struct tui_data_window) <start_line>: New member, from
5937 tui_command_info.
5938 (TUI_CMD_WIN): Add casts.
5939
e6e41501
TT
59402019-06-25 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-winsource.c (tui_update_source_window)
5943 (tui_refill_source_window)
5944 (tui_source_window_base::do_scroll_horizontal)
5945 (tui_update_breakpoint_info, tui_set_exec_info_content)
5946 (tui_show_exec_info_content, tui_erase_exec_info_content)
5947 (tui_clear_exec_info_content): Update.
5948 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5949 Update.
5950 * tui/tui-win.c (make_invisible_and_set_new_height)
5951 (make_visible_with_new_height): Update.
5952 * tui/tui-source.c (tui_set_source_content)
5953 (tui_show_symtab_source): Update.
5954 * tui/tui-layout.c (extract_display_start_addr)
5955 (show_source_disasm_command, show_data)
5956 (make_source_or_disasm_window)
5957 (show_source_or_disasm_and_command): Update.
5958 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5959 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5960 "gdbarch".
5961 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5962 to tui_source_window_base.
5963 (struct tui_win_info) <detail>: Remove source_info member.
5964 (struct tui_source_window_base) <has_locator>: Inline.
5965 Move contents from tui_source_info; rename has_locator member to
5966 m_has_locator.
5967 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5968 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5969 header file.
5970 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5971 Simplify.
5972 (tui_free_all_source_wins_content): Cast to
5973 tui_source_window_base.
5974
44f0e208
TT
59752019-06-25 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-win.c (make_invisible_and_set_new_height)
5978 (make_visible_with_new_height): Call has_locator method.
5979 * tui/tui-layout.c (show_source_disasm_command, show_data)
5980 (show_source_or_disasm_and_command): Update for bool change.
5981 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5982 (tui_win_info) <has_locator>: New method.
5983 (struct tui_source_window_base) <has_locator>: New method.
5984 (tui_win_has_locator): Don't declare.
5985 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5986 from tui_win_has_locator.
5987 (tui_source_window_base): Use false, not FALSE.
5988
7778b912
TT
59892019-06-25 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5992 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5993 clear_detail method directly.
5994 (tui_clear_win_detail): Remove.
5995
f83d391c
TT
59962019-06-25 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5999 "this", not TUI_DISASM_WIN.
6000
13446e05
TT
60012019-06-25 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6004 declare.
6005 * tui/tui-winsource.c
6006 (tui_source_window_base::do_scroll_horizontal): Rename from
6007 tui_horizontal_source_scroll.
6008 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6009 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6010 from tui_vertical_data_scroll.
6011 * tui/tui-win.h (tui_scroll): Don't declare.
6012 * tui/tui-win.c (tui_win_info::forward_scroll)
6013 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6014 (tui_win_info::right_scroll): Rename and update.
6015 (tui_scroll_forward_command, tui_scroll_backward_command)
6016 (tui_scroll_left_command, tui_scroll_right_command): Update.
6017 (tui_scroll): Remove.
6018 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6019 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6020 from tui_vertical_source_scroll.
6021 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6022 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6023 from tui_vertical_disassem_scroll.
6024 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6025 do_scroll_horizontal>: New methods.
6026 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6027 Likewise.
6028 (struct tui_source_window_base): Add do_scroll_horizontal.
6029 (struct tui_source_window, struct tui_disasm_window): Add
6030 do_scroll_vertical.
6031 (struct tui_data_window, struct tui_cmd_window): Add
6032 do_scroll_horizontal and do_scroll_vertical.
6033 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6034
5cf82909
TT
60352019-06-25 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-data.h (struct tui_source_window_base): New struct.
6038 (struct tui_source_window): Derive from tui_source_window_base.
6039 (struct tui_disasm_window): New struct.
6040 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6041 from tui_source_window::clear_detail.
6042 (tui_source_window_base): Rename from tui_source_window.
6043 (~tui_source_window_base): Rename from ~tui_source_window.
6044 (tui_alloc_win_info): Create a tui_disasm_window.
6045
ee1d42d6
TT
60462019-06-25 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-data.h (struct tui_source_window)
6049 (struct tui_data_window): Declare destructors.
6050 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6051 destructors.
6052 (tui_win_info): Simplify.
6053
b4eb2452
TT
60542019-06-25 Tom Tromey <tom@tromey.com>
6055
6056 * tui/tui-winsource.c (tui_display_main)
6057 (tui_update_source_windows_with_addr)
6058 (tui_update_all_breakpoint_info): Update.
6059 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6060 (new_height_ok, parse_scrolling_args): Update.
6061 * tui/tui-stack.c (tui_show_frame_info): Update.
6062 * tui/tui-data.h (struct tui_list): Remove.
6063 (tui_source_windows): Return a reference to a std::vector.
6064 * tui/tui-data.c (source_windows): Now a std::vector.
6065 (tui_source_windows): Change return type.
6066 (tui_clear_source_windows): Rewrite.
6067 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6068 (tui_free_all_source_wins_content): Rewrite.
6069
8761a91b
TT
60702019-06-25 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6073 (struct tui_data_window, struct tui_cmd_window): Declare
6074 clear_detail method.
6075 * tui/tui-data.c (tui_source_window::clear_detail)
6076 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6077 methods.
6078 (tui_clear_win_detail): Simplify.
6079
0ed69eda
TT
60802019-06-25 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-layout.c (make_source_window, make_disasm_window)
6083 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6084 Return the new window.
6085 (show_source_disasm_command, show_data)
6086 (show_source_or_disasm_and_command): Update.
6087
82432e10
TT
60882019-06-25 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6091 parameter. Return the new window.
6092 (show_source_disasm_command): Update and remove NULL check.
6093 (show_source_or_disasm_and_command): Update.
6094
ec328aa5
TT
60952019-06-25 Tom Tromey <tom@tromey.com>
6096
6097 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6098
33b906ab
TT
60992019-06-25 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-data.h (struct tui_win_info): Make constructor
6102 protected. Make destructor virtual. Add initializers.
6103 (tui_source_window, tui_data_window, tui_cmd_window): New
6104 classes.
6105 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6106 constructor. Add "type" parameter.
6107 (tui_source_window, tui_data_window, tui_cmd_window): New
6108 constructors.
6109 (tui_alloc_win_info): Instantiate the appropriate subclass.
6110
e7e11af4
TT
61112019-06-25 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-win.c (tui_resize_all): Use delete.
6114 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6115 destructor.
6116 (tui_free_window): Don't declare.
6117 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6118 Update.
6119
6792b55e
TT
61202019-06-25 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui-data.h (struct tui_win_info): Add constructor.
6123 * tui/tui-data.c (tui_alloc_win_info): Use new.
6124 (tui_free_window): Use delete.
6125
f95675e1
TT
61262019-06-22 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6129 declare.
6130 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6131
5bff081c
TT
61322019-06-22 Tom Tromey <tom@tromey.com>
6133
6134 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6135 declare.
6136 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6137
47e3f474
TV
61382019-06-22 Tom de Vries <tdevries@suse.de>
6139
6140 * dwarf2read.c (create_addrmap_from_aranges)
6141 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6142 instead of '%zu'.
6143
fd5866f6
SM
61442019-06-21 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * dwarf2read.h (dwarf2_section_info_def): Remove.
6147 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6148 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6149 std::vector<dwarf2_section_info>.
6150 (struct dwo_file) <~dwo_file>: Remove.
6151 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6152 types field.
6153 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6154 (dwarf2_read_debug_names): Likewise.
6155 (create_debug_types_hash_table): Change parameter type to
6156 array_view, adjust code accordingly.
6157 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6158 (partial_die_info::fixup): Likewise.
6159 (determine_prefix): Likewise.
6160 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6161
fb1eb2f9
SM
61622019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6165 gdb_bfd_ref_ptr.
6166 <~dwo_file>: Remove call to gdb_bfd_unref.
6167 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6168 gdb_bfd_ref_ptr::get.
6169
51ac9db5
SM
61702019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6173 type to htab_up.
6174 * dwarf2read.c (struct dwo_file): Initialize fields.
6175 <~dwo_file>: New.
6176 (free_dwo_file): Remove, move content to ~dwo_file.
6177 (struct dwo_file_deleter): Remove.
6178 (dwo_file_up>: Remove custom deleter.
6179 (free_dwo_files): Remove.
6180 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6181 dwo_files.
6182 (process_skeletonless_type_units): Call unique_ptr::get.
6183 (allocate_dwo_file_hash_table): Add deleter to created hash
6184 table. Change return type to htab_up.
6185 (lookup_dwo_file_slot): Don't memset dwo_file, call
6186 unique_ptr::get.
6187 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6188 (create_dwo_unit_in_dwp_v2): Likewise.
6189 (open_and_init_dwo_file): Likewise.
6190 (free_dwo_file_from_slot): Remove.
6191
dc4ccb6f
SM
61922019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * dwarf2read.h (struct dwarf2_section_info) <readin,
6195 is_virtual>: Change type to bool.
6196 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6197 true instead of 1.
6198
e6a1c5cb
TT
61992019-06-19 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-data.h (tui_init_content_element): Don't declare.
6202
6f6ffbeb
TT
62032019-06-19 Tom Tromey <tom@tromey.com>
6204
6205 * tui/tui-data.h (tui_init_win_info): Don't declare.
6206
f23f598e
TV
62072019-06-19 Tom de Vries <tdevries@suse.de>
6208
6209 * dwarf2read.h (abstract_to_concrete): Change type to
6210 std::unordered_map<sect_offset, std::vector<sect_offset>,
6211 gdb::hash_enum<sect_offset>>.
6212
680e1bee
TT
62132019-06-19 Tom Tromey <tromey@adacore.com>
6214
6215 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6216 EVAL_AVOID_SIDE_EFFECTS specially.
6217
dcf37923
TT
62182019-06-19 Tom Tromey <tromey@adacore.com>
6219
6220 * source-cache.c (highlighter): New global.
6221 (source_cache::get_source_lines): Create a highlighter on demand.
6222
494986d5
AB
62232019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 * defs.h (deprecated_interactive_hook): Delete declaration.
6226 * interps.c (clear_interpreter_hooks): Remove use of
6227 deprecated_interactive_hook.
6228 * top.c (deprecated_interactive_hook): Delete definition.
6229 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6230
3360b6e7
TV
62312019-06-18 Tom de Vries <tdevries@suse.de>
6232
6233 PR gdb/24515
6234 * dwarf2read.h (abstract_to_concrete): Change type from
6235 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6236 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6237 * dwarf2read.c (read_variable): Update.
6238 (dwarf2_fetch_die_loc_sect_off): Update.
6239
310b3441
TV
62402019-06-17 Tom de Vries <tdevries@suse.de>
6241
6242 PR gdb/24617
6243 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6244 accessing parent[parent_len - 1].
6245
ba9777be
PP
62462019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6247
6248 PR gdb/24364
6249 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6250 call dtrace_process_dof with NULL dof.
6251
2b9f6e89
TV
62522019-06-16 Tom de Vries <tdevries@suse.de>
6253
6254 PR gdb/24445
6255 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6256
431b3ead
TT
62572019-06-16 Tom Tromey <tom@tromey.com>
6258
6259 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6260 (make_all_visible): Use address of member.
6261
d04b44a1
TT
62622019-06-16 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6265 (tui_free_window, free_content, free_content_elements): Remove
6266 unnecessary cast.
6267 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6268 cast.
6269 * tui/tui-regs.c (tui_show_register_group)
6270 (tui_display_registers_from, tui_display_reg_element_at_line):
6271 Remove unnecessary cast.
6272
bf5142e7
AB
62732019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * linux-nat.c (normal_mask): Delete.
6276 (_initialize_linux_nat): Don't initialise normal_mask.
6277
c4973306
SM
62782019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 PR gdb/24445
6281 * dwarf-index-write.h (write_psymtabs_to_index): Add
6282 dwz_basename parameter.
6283 * dwarf-index-write.c (write_gdbindex): Move file writing to
6284 write_gdbindex_1. Change return type void.
6285 (assert_file_size): Move up, remove filename parameter.
6286 (write_gdbindex_1): New function.
6287 (write_debug_names): Change return type to void, call
6288 assert_file_size.
6289 (struct index_wip_file): New struct.
6290 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6291 file logic to index_wip_file. Write index for dwz file if
6292 needed.
6293 (save_gdb_index_command): Pass basename of dwz file, if present.
6294 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6295 build-id of dwz file, if present.
6296 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6297 (dwarf2_get_dwz_file): Likewise.
6298 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6299 (dwarf2_get_dwz_file): Likewise.
6300
395f9c91
TT
63012019-06-16 Tom Tromey <tom@tromey.com>
6302
6303 * coffread.c (process_coff_symbol): Use xstrdup.
6304 * value.c (create_internalvar): Use xstrdup.
6305
cafb3438
TT
63062019-06-16 Tom Tromey <tom@tromey.com>
6307
6308 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6309 * breakpoint.c (stopin_command, stopat_command)
6310 (until_break_command, decode_location_default): Remove unnecessary
6311 cast.
6312 * utils.c (subset_compare): Remove unnecessary cast.
6313 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6314 cast.
6315 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6316 cast.
6317 * infcmd.c (path_command): Remove unnecessary cast.
6318 * coffread.c (decode_type): Remove unnecessary cast.
6319 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6320 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6321 * tui/tui-stack.c (tui_show_locator_content)
6322 (tui_show_frame_info): Remove unnecessary cast.
6323 * tui/tui-win.c (tui_scroll_forward_command)
6324 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6325 (parse_scrolling_args): Remove unnecessary cast.
6326 * tui/tui-data.c (init_win_info, tui_del_window)
6327 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6328 (free_content_elements): Remove unnecessary cast.
6329 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6330 unnecessary cast.
6331 * tui/tui-source.c (tui_set_source_content)
6332 (tui_vertical_source_scroll): Remove unnecessary cast.
6333 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6334 cast.
6335 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6336 * tui/tui-regs.c (tui_display_registers_from)
6337 (tui_display_register): Remove unnecessary cast.
6338 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6339 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6340 (make_visible): Remove unnecessary cast.
6341 * tui/tui-winsource.c (tui_erase_source_content)
6342 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6343 unnecessary cast.
6344 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6345 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6346 * stabsread.c (read_type, read_array_type, read_range_type):
6347 Remove unnecessary cast.
6348 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6349 (parse_symbol, parse_type, upgrade_type, parse_external)
6350 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6351 unnecessary cast.
6352 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6353
730ead81
TT
63542019-06-16 Tom Tromey <tom@tromey.com>
6355
6356 * tui/tui-data.c (tui_alloc_generic_win_info)
6357 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6358 checks.
6359
584a927c
AB
63602019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6361 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 * f-typeprint.c (f_print_type): Don't return early for not
6364 associated or not allocated types.
6365 (f_type_print_varspec_suffix): Add print_rank parameter and print
6366 ranks of array types in case they dangling.
6367 (f_type_print_base): Add print_rank parameter.
6368
30056ea0
AB
63692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 * NEWS: Mention new MI commands.
6372 * break-catch-throw.c (enum exception_event_kind): Move to
6373 breakpoint.h.
6374 (print_mention_exception_catchpoint): Output text as a single
6375 message.
6376 (catch_exception_command_1): Rename to...
6377 (catch_exception_event): ...this, make non-static, update header
6378 command, and change some parameter types.
6379 (catch_catch_command): Update for changes to
6380 catch_exception_command_1.
6381 (catch_throw_command): Likewise.
6382 (catch_rethrow_command): Likewise.
6383 * breakpoint.c (enum exception_event_kind): Delete.
6384 * breakpoint.h (enum exception_event_kind): Moved here from
6385 break-catch-throw.c.
6386 (catch_exception_event): Declare.
6387 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6388 (mi_cmd_catch_throw): New function.
6389 (mi_cmd_catch_rethrow): New function.
6390 (mi_cmd_catch_catch): New function.
6391 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6392 'catch-catch' entries.
6393 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6394 (mi_cmd_catch_rethrow): Declare.
6395 (mi_cmd_catch_catch): Declare.
6396
ec8e2b6d
AB
63972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 * annotate.c (annotate_source_line): Change return type to void,
6400 update implementation to match.
6401 * annotate.h (annotate_source_line): Change return type to void,
6402 update header comment.
6403 * stack.c (print_frame_info): Don't change what frame information
6404 is printed based on whether annotations are on or not.
6405
0d3abd8c
AB
64062019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6409 (annotate_source): Make static.
6410 (annotate_source_line): Moved from source.c and renamed from
6411 identify_source_line. Update the return type.
6412 * annotate.h (annotate_source): Delete declaration.
6413 (annotate_source_line): Declaration moved from source.h, and
6414 renamed from identify_source_line. Return type updated.
6415 * source.c (identify_source_line): Moved to annotate.c and renamed
6416 to annotate_source_line.
6417 (info_line_command): Remove check of annotation_level.
6418 * source.h (identify_source_line): Move declaration to annotate.h
6419 and rename to annotate_source_line.
6420 * stack.c: Add 'annotate.h' include.
6421 (print_frame_info): Remove check of annotation_level before
6422 calling annotate_source_line.
6423
00df30ae
AB
64242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * source-cache.c (source_cache::get_plain_source_lines): Use
6427 open_source_file_with_line_charpos instead of just
6428 open_source_file, remove call to find_source_lines.
6429 (source_cache::get_source_lines): Likewise.
6430 * source.c (find_source_lines): Make static.
6431 (get_filename_and_charpos): Renamed into...
6432 (open_source_file_with_line_charpos): ..this along with changes to
6433 return a scoped_fd, and some other minor clean ups.
6434 (identify_source_line): Use open_source_file_with_line_charpos.
6435 (search_command_helper): Use open_source_file_with_line_charpos
6436 instead of just open_source_file, remove call to
6437 find_source_lines.
6438 * source.h (open_source_file_with_line_charpos): Declare new
6439 function.
6440 (find_source_lines): Delete declaration.
6441
afda45a2
AB
64422019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6443
6444 * source.c (get_filename_and_charpos): Remove fullname
6445 parameter.
6446 (identify_source_line): Update call to get_filename_and_charpos.
6447
0735b091
TT
64482019-06-14 Tom Tromey <tromey@adacore.com>
6449
6450 PR gdb/24502:
6451 * ui-style.h (skip_ansi_escape): Update comment.
6452 * ui-file.h (class no_terminal_escape_file): New class.
6453 * ui-file.c (no_terminal_escape_file::write)
6454 (no_terminal_escape_file::puts): New methods.
6455 * cli/cli-logging.c (handle_redirections): Use
6456 no_terminal_escape_file.
6457
52ce35e2
TT
64582019-06-14 Tom Tromey <tromey@adacore.com>
6459
6460 * NEWS: Move convenience variable news above Python news.
6461
73cc7272
TT
64622019-06-14 Tom Tromey <tom@tromey.com>
6463
6464 * gnulib: Move directory to top-level.
6465 * configure.ac: Don't configure gnulib.
6466 * configure: Rebuild.
6467 * common/common-defs.h: Use new path to gnulib.
6468 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6469 (GNULIB_H): Remove.
6470 (INCGNU): Look in new gnulib location.
6471 (HFILES_NO_SRCDIR): Remove gnulib files.
6472 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6473 (generated_files): Remove GNULIB_H.
6474 ($(LIBGNU), all-lib): Remove targets.
6475 (distclean): Don't mention GNULIB_BUILDDIR.
6476 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6477
f5686554
TT
64782019-06-14 Tom Tromey <tromey@adacore.com>
6479
6480 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6481 Warn if symbol file does not provide any symbols.
6482
a0c1ffed
TT
64832019-06-14 Tom Tromey <tromey@adacore.com>
6484
6485 * source.c (find_and_open_source): Respect basenames_may_differ.
6486
7c39e397
AB
64872019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * annotate.c (annotate_breakpoints_invalid): Make use of
6490 scoped_restore_terminal_state.
6491 (annotate_frames_invalid): Likewise.
6492
f411722c
TT
64932019-06-14 Tom Tromey <tromey@adacore.com>
6494
6495 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6496 allow assignment to an internalvar.
6497
4268ec18
TT
64982019-06-14 Tom Tromey <tromey@adacore.com>
6499
6500 * ada-lex.l: Allow "_" in attribute names.
6501
abdb711e
TT
65022019-06-14 Tom Tromey <tromey@adacore.com>
6503
6504 PR gdb/24653:
6505 * regcache.c (registers_changed): Don't call alloca.
6506 * top.c (execute_command): Don't call alloca.
6507
4c048731
PA
65082019-06-13 Pedro Alves <palves@redhat.com>
6509
6510 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6511 'expression'. When parsing an expression, error out if there's
6512 junk after "unlimited".
6513 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6514 (do_set_command): Adjust calls to is_unlimited_literal.
6515
66eb1ed3
PA
65162019-06-13 Pedro Alves <palves@redhat.com>
6517
6518 * compile/compile.c (make_compile_options_def_group): Add braces
6519 around array_view initializer.
6520 * thread.c (make_thread_apply_all_options_def_group)
6521 (make_thread_apply_all_options_def_group): Likewise.
6522
3345721a
PA
65232019-06-13 Pedro Alves <palves@redhat.com>
6524
6525 * NEWS (New commands): Mention "maint test-options
6526 require-delimiter", "maint test-options unknown-is-error", "maint
6527 test-options unknown-is-operand" and "maint show
6528 test-options-completion-result".
6529 (New command options, command completion): New section.
6530 (Completion improvements): New section.
6531 Mention that you can abbreviate "unlimited".
6532
6206060d
PA
65332019-06-13 Pedro Alves <palves@redhat.com>
6534
6535 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6536 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6537 * unittests/cli-utils-selftests.c (test_parse_flags)
6538 (test_parse_flags_qcs): Delete.
6539 (test_cli_utils): Don't call deleted functions.
6540
6665660a
PA
65412019-06-13 Pedro Alves <palves@redhat.com>
6542
6543 * thread.c: Include "cli/cli-option.h".
6544 (tp_array_compar_ascending): Global.
6545 (tp_array_compar): Delete function.
6546 (tp_array_compar_ascending, tp_array_compar_descending): New
6547 functions.
6548 (ascending_option_def, qcs_flag_option_def)
6549 (thr_qcs_flags_option_defs)
6550 (make_thread_apply_all_options_def_group)
6551 (make_thread_apply_options_def_group): New.
6552 (thread_apply_all_command): Use gdb::option::process_options.
6553 (thread_apply_command_completer)
6554 (thread_apply_all_command_completer): New.
6555 (thread_apply_command): Use gdb::option::process_options.
6556 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6557 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6558 to generate help text of "thread apply". Adjust "taas"'s help.
6559 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6560 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6561
f7e13587
PA
65622019-06-13 Pedro Alves <palves@redhat.com>
6563
6564 * thread.c (thread_apply_command): Check for invalid TID with
6565 isdigit instead of !isalpha.
6566
5d707134
PA
65672019-06-13 Pedro Alves <palves@redhat.com>
6568
6569 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6570 (validate_flags_qcs): New.
6571 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6572 (validate_flags_qcs): Declare.
6573 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6574 (make_frame_apply_options_def_group): New.
6575 (frame_apply_command_count): Process options with
6576 gdb::option::process_options.
6577 (frame_apply_completer): New.
6578 (frame_apply_level_completer, frame_apply_all_completer)
6579 (frame_apply_completer): New.
6580 (_initialize_stack): Update help of "frame apply", "frame apply
6581 level", "frame apply all" and "faas" to mention supported options
6582 and install command completers.
6583 * stack.h (frame_apply_all_completer): Declare.
6584 * thread.c: Include "stack.h".
6585 (tfaas_command): Add "--".
6586 (_initialize_thread): Update help "tfaas" to mention supported
6587 options and install command completer.
6588
272d4594
PA
65892019-06-13 Pedro Alves <palves@redhat.com>
6590
6591 * completer.c (complete_nested_command_line): New.
6592 (gdb_completion_word_break_characters_throw): Add assertion.
6593 * completer.h (complete_nested_command_line): Declare.
6594
90a1ef87
PA
65952019-06-13 Pedro Alves <palves@redhat.com>
6596
6597 * stack.c (parse_backtrace_qualifiers): New.
6598 (backtrace_command): Use it.
6599 (backtrace_command_completer): Complete on qualifiers.
6600
d4c16835
PA
66012019-06-13 Pedro Alves <palves@redhat.com>
6602
6603 * frame.c: Include "cli/cli-option.h.
6604 (user_set_backtrace_options): New.
6605 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6606 Delete.
6607 (get_prev_frame): Adjust.
6608 (boolean_option_def, uinteger_option_def)
6609 (set_backtrace_option_defs): New.
6610 (_initialize_frame): Adjust and use
6611 gdb::option::add_setshow_cmds_for_options to install "set
6612 backtrace past-main" and "set backtrace past-entry".
6613 * frame.h: Include "cli/cli-option.h".
6614 (struct frame_print_options): Forward declare.
6615 (print_frame_arguments_all, print_frame_arguments_scalars)
6616 (print_frame_arguments_none): Declare.
6617 (print_entry_values): Delete declaration.
6618 (struct frame_print_options, user_frame_print_options): New.
6619 (struct set_backtrace_options): New.
6620 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6621 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6622 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6623 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6624 (list_args_or_locals): Add frame_print_options parameter.
6625 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6626 * python/py-framefilter.c (enumerate_args): Pass down
6627 USER_FRAME_PRINT_OPTIONS.
6628 * stack.c: Include "cli/cli-option.h".
6629 (print_frame_arguments_all, print_frame_arguments_scalars)
6630 (print_frame_arguments_none): Declare.
6631 (print_raw_frame_arguments, print_entry_values): Delete.
6632 (user_frame_print_options): New.
6633 (boolean_option_def, enum_option_def, frame_print_option_defs):
6634 New.
6635 (struct backtrace_cmd_options): New.
6636 (bt_flag_option_def): New.
6637 (backtrace_command_option_defs): New.
6638 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6639 (print_frame_arg, read_frame_arg, print_frame_args)
6640 (print_frame_info, print_frame): Add frame_print_options parameter
6641 and use it.
6642 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6643 (backtrace_command_1): Add frame_print_options and
6644 backtrace_cmd_options parameters and use them.
6645 (make_backtrace_options_def_group): New.
6646 (backtrace_command): Process command options with
6647 gdb::option::process_options.
6648 (backtrace_command_completer): New.
6649 (_initialize_stack): Extend "backtrace"'s help to mention
6650 supported options. Install completer for "backtrace".
6651 Install some settings commands with add_setshow_cmds_for_options.
6652
2daf894e
PA
66532019-06-13 Pedro Alves <palves@redhat.com>
6654
6655 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6656 and that "set/show print raw frame-arguments" are now deprecated.
6657
6658 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6659 command.
6660 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6661 * stack.c (_initialize_stack): Install "set/show print
6662 raw-frame-arguments", and deprecate "set/show print raw
6663 frame-arguments".
6664 * valprint.c (_initialize_valprint): Deprecate "set/show print
6665 raw".
6666
e6ed716c
PA
66672019-06-13 Pedro Alves <palves@redhat.com>
6668
6669 * compile/compile.c (struct compile_options): New.
6670 (compile_flag_option_def, compile_command_option_defs)
6671 (make_compile_options_def_group): New.
6672 (compile_file_command): Handle options with
6673 gdb::option::process_options.
6674 (compile_file_command_completer): New function.
6675 (compile_code_command): Handle options with
6676 gdb::option::process_options.
6677 (compile_code_command_completer): New function.
6678 (_initialize_compiler): Install completers for "compile code" and
6679 "compile file". Mention available options in "compile code" and
6680 "compile code"'s help.
6681 * completer.c (advance_to_completion_word): New, factored out from
6682 ...
6683 (advance_to_expression_complete_word_point): ... this.
6684 (advance_to_filename_complete_word_point): New.
6685 * completer.h (advance_to_filename_complete_word_point): New
6686 declaration.
6687
7d8062de
PA
66882019-06-13 Pedro Alves <palves@redhat.com>
6689
6690 * compile/compile.c: Include "cli/cli-option.h".
6691 (compile_print_value): Scope data pointer is now a
6692 value_print_options pointer; adjust.
6693 (compile_print_command): Process options. Scope data pointer is
6694 now a value_print_options pointer; adjust.
6695 (_initialize_compile): Update "compile print"'s help to include
6696 supported options. Install a completer for "compile print".
6697 * cp-valprint.c (show_vtblprint, show_objectprint)
6698 (show_static_field_print): Delete.
6699 (_initialize_cp_valprint): Don't install "set print
6700 static-members", "set print vtbl", "set print object" here.
6701 * printcmd.c: Include "cli/cli-option.h" and
6702 "common/gdb_optional.h".
6703 (print_command_parse_format): Rework to fill in a
6704 value_print_options instead of a format_data.
6705 (print_value): Change parameter type from format_data pointer to
6706 value_print_options reference. Adjust.
6707 (print_command_1): Process options. Adjust to pass down a
6708 value_print_options.
6709 (print_command_completer): New.
6710 (_initialize_printcmd): Install print_command_completer as
6711 handle_brkchars completer for the "print" command. Update
6712 "print"'s help to include supported options.
6713 * valprint.c: Include "cli/cli-option.h".
6714 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6715 here from cp-valprint.c.
6716 (boolean_option_def, uinteger_option_def)
6717 (value_print_option_defs, make_value_print_options_def_group):
6718 New. Use gdb::option::add_setshow_cmds_for_options to install
6719 "set print elements", "set print null-stop", "set print repeats",
6720 "set print pretty", "set print union", "set print array", "set
6721 print address", "set print symbol", "set print array-indexes".
6722 * valprint.h: Include <string> and "cli/cli-option.h".
6723 (make_value_print_options_def_group): Declare.
6724 (print_value): Change parameter type from format_data pointer to
6725 value_print_options reference.
6726 (print_command_completer): Declare.
6727
9d0faba9
PA
67282019-06-13 Pedro Alves <palves@redhat.com>
6729
6730 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6731 (COMMON_SFILES): Add maint-test-settings.c.
6732 * cli/cli-decode.c (boolean_enums): New global, factored out from
6733 ...
6734 (add_setshow_boolean_cmd): ... here.
6735 * cli/cli-decode.h (boolean_enums): Declare.
6736 * cli/cli-option.c: New file.
6737 * cli/cli-option.h: New file.
6738 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6739 factored out from ...
6740 (parse_cli_boolean_value(const char *)): ... this.
6741 (is_unlimited_literal): Change parameter type to pointer to
6742 pointer. Adjust and advance ARG pointer.
6743 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6744 (parse_cli_var_enum): New, factored out from ...
6745 (do_set_command): ... this. Adjust.
6746 * cli/cli-setshow.h (parse_cli_boolean_value)
6747 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6748 (parse_cli_var_enum): Declare.
6749 * cli/cli-utils.c: Include "cli/cli-option.h".
6750 (get_ulongest): New.
6751 * cli/cli-utils.h (get_ulongest): Declare.
6752 (check_for_argument): New overloads.
6753 * maint-test-options.c: New file.
6754
2c722807
PA
67552019-06-13 Pedro Alves <palves@redhat.com>
6756
6757 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6758 parse a range if "-" is at the end of the string.
6759
dee7b4c8
PA
67602019-06-13 Pedro Alves <palves@redhat.com>
6761
6762 * cli/cli-setshow.c (parse_auto_binary_operation)
6763 (parse_cli_boolean_value): Don't allow "o".
6764
dca0f6c0
PA
67652019-06-13 Pedro Alves <palves@redhat.com>
6766
6767 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6768 * NEWS: Mention maint test-settings KIND.
6769 * maint-test-settings.c: New file.
6770
597bf39d
PA
67712019-06-13 Pedro Alves <palves@redhat.com>
6772
6773 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6774 completer.
6775 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6776 "set" completers.
6777
48c410fb
PA
67782019-06-13 Pedro Alves <palves@redhat.com>
6779
6780 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6781 after item.
6782
93bcb043
PA
67832019-06-13 Pedro Alves <palves@redhat.com>
6784
6785 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6786
cbba3ecd
PA
67872019-06-13 Pedro Alves <palves@redhat.com>
6788
6789 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6790 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6791 call.
6792 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6793 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6794 calls.
6795 (check_for_argument): Skip spaces after argument.
6796
b9a3f842
PA
67972019-06-13 Pedro Alves <palves@redhat.com>
6798
6799 * thread.c (thread_apply_command): Adjust TID parsing.
6800 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6801 detected before end of string.
6802 (tid_is_in_list): Error out if LIST is invalid.
6803
3844e605
PA
68042019-06-13 Pedro Alves <palves@redhat.com>
6805
6806 * completer.c (complete_line_internal_1): Rewind completion word
6807 point.
6808 (completion_tracker::advance_custom_word_point_by): Change
6809 parameter type to int.
6810 * completer.h (completion_tracker::advance_custom_word_point_by):
6811 Likewise.
6812
00b56dbe
PA
68132019-06-13 Pedro Alves <palves@redhat.com>
6814
6815 * completer.c (advance_to_completion_word): Handle delimiters.
6816
d106773e
PA
68172019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6818
6819 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6820
08f10e02
TT
68212019-06-11 Tom Tromey <tom@tromey.com>
6822
6823 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6824 (xmalloc_failed): Move to alloc.c.
6825 * alloc.c: New file.
6826 * Makefile.in (COMMON_SFILES): Add alloc.c.
6827
1c7fe951
TT
68282019-06-11 Tom Tromey <tom@tromey.com>
6829
6830 * nat/linux-waitpid.c: Don't include server.h.
6831 (linux_debug): Remove.
6832 (my_waitpid): Update.
6833
89549d7f
TT
68342019-06-11 Tom Tromey <tromey@adacore.com>
6835
6836 * infcall.c (_initialize_infcall): Remove trailing newline from
6837 help.
6838 * user-regs.c (_initialize_user_regs): Remove trailing newline
6839 from help.
6840 * typeprint.c (_initialize_typeprint): Remove trailing newline
6841 from help.
6842 * reverse.c (_initialize_reverse): Remove trailing newlines from
6843 help.
6844 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6845 from help.
6846 * language.c (add_set_language_command): Remove trailing newline
6847 from help.
6848 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6849 help.
6850 * disasm.c (_initialize_disasm): Remove trailing newline from
6851 help.
6852 * top.c (init_main): Remove trailing newline from help.
6853 * interps.c (_initialize_interpreter): Remove trailing newline
6854 from help.
6855 * btrace.c (_initialize_btrace): Remove trailing newlines from
6856 help.
6857 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6858 from help.
6859 * python/python.c (_initialize_python): Remove trailing newline
6860 from help.
6861 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6862 help.
6863 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6864 from help. Reformat some text.
6865 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6866 from help.
6867 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6868 newline from help.
6869
86108c13
TT
68702019-06-11 Tom Tromey <tromey@adacore.com>
6871
6872 * darwin-nat.c (darwin_decode_exception_message)
6873 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6874
a7067863
AB
68752019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * valops.c (value_slice): Check for not allocated or not
6878 associated values.
6879
9ab08412
TV
68802019-06-10 Tom de Vries <tdevries@suse.de>
6881
6882 PR gdb/24618
6883 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6884 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6885 invalid.
6886
f19e22e9
TV
68872019-06-10 Tom de Vries <tdevries@suse.de>
6888
6889 PR gdb/24611
6890 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6891 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6892
e99f9db0
TV
68932019-06-10 Tom de Vries <tdevries@suse.de>
6894
6895 PR symtab/24545
6896 * symtab.c (struct demangled_name_entry): Add language field.
6897 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6898 static minimal symbol". Set and use language field.
6899
9bf7038b
TT
69002019-06-10 Tom Tromey <tromey@adacore.com>
6901
6902 * ada-lang.c (_initialize_ada_language): Update help text.
6903
422186a9
TT
69042019-06-10 Tom Tromey <tromey@adacore.com>
6905
6906 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6907 with a newline.
6908 * guile/guile.c (handle_boot_error): Don't end warning with a
6909 newline.
6910 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6911 warning with a newline.
6912 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6913 newline.
6914 (s12z_frame_cache): Likewise.
6915 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6916 a newline.
6917 * solib-svr4.c (disable_probes_interface): Don't end warning with
6918 a newline.
6919 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6920 newline.
6921 * python/python.c (do_finish_initialization): Don't end warning
6922 with a newline.
6923
25ce02ee
TT
69242019-06-10 Tom Tromey <tom@tromey.com>
6925
6926 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6927 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6928 gdbpy_enter.
6929
caa429d8
TT
69302019-06-10 Tom Tromey <tromey@adacore.com>
6931
6932 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6933 data.
6934 (elf_new_init): Don't call stabsread_new_init.
6935 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6936 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6937 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6938
81873cc8
TV
69392019-06-10 Tom de Vries <tdevries@suse.de>
6940
6941 PR symtab/16264
6942 PR symtab/24517
6943 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6944
4fa0265e
РИ
69452019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6946
6947 * source.c (find_and_open_source): Also rewrite relative file
6948 names.
6949
1a3da2cd
AB
69502019-04-26 Amos Bird <amosbird@gmail.com>
6951
6952 * annotate.c (annotate_thread_exited): Add "thread-exited"
6953 annotation.
6954
3847a7bf
TT
69552019-06-06 Tom Tromey <tromey@adacore.com>
6956
6957 * maint.h (class scoped_command_stats): Use
6958 DISABLE_COPY_AND_ASSIGN.
6959 <print_time>: New method.
6960 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6961 print_time.
6962 (scoped_command_stats::print_time): New method.
6963
312617a3
AB
69642019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6965
6966 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6967 instructions of lengths 6 or 8 bytes.
6968
b02f78f9
PA
69692019-06-04 Pedro Alves <palves@redhat.com>
6970
6971 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6972
6973 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6974 * breakpoint.c (condition_completer): Likewise.
6975 * cli/cli-dump.c (scan_expression): Likewise.
6976 * common/filestuff.c (mkdir_recursive): Likewise.
6977 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6978 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6979 (gdb_abspath): Likewise.
6980 * compile/compile-cplus-types.c
6981 (compile_cplus_instance::decl_name): Likewise.
6982 * completer.c (complete_explicit_location):
6983 (signal_completer, reg_or_group_completer_1): Likewise.
6984 * cp-support.c (cp_remove_params_if_any): Likewise.
6985 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6986 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6987 * infcmd.c (strip_bg_char): Likewise.
6988 * linespec.c (copy_token_string): Likewise.
6989 * mi/mi-main.c (output_cores): Likewise.
6990 * psymtab.c (psymtab_search_name):
6991 * symfile.c (test_set_ext_lang_command): Likewise.
6992 * target.c (target_fileio_read_stralloc): Likewise.
6993 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6994 * value.c (complete_internalvar): Likewise.
6995
e1f2e1a2
CB
69962019-06-04 Christian Biesinger <cbiesinger@google.com>
6997
6998 Add objfile property to gdb.Type.
d3238f7d
PA
6999 * NEWS: Mention Python API addition.
7000 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7001
e664d728
PW
70022019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7003
7004 * NEWS: Mention the new set|show style [title|highlight].
7005 Mention changes to "show style", "help" and "apropos".
7006
66d8c862
PW
70072019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7008
7009 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7010 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7011 instead of print_help_for_command.
7012 (print_doc_of_command): New function.
7013 (help_list): Add 'apropos -v word' suggestion.
7014 (print_help_for_command): Style the command name using title style.
7015 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7016 (_initialize_cli_cmds): Describe -v in apropos_command help.
7017
9303eb2f
PW
70182019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7019
7020 * cli/cli-style.h (cli_style_option): Add name in constructor,
7021 add m_name class member, add constructor with intensity,
7022 add name class function.
7023 (cli_style_option::add_setshow_commands): Remove name argument.
7024 (highlight_style, title_style): New styles.
7025 * cli/cli-style.c (do_show): New function that shows a style
7026 characteristic styling the style name with itself.
7027 (set_style_name): New function.
7028 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7029 Update all callers according to the changes in cli/cli-style.h.
7030 * utils.h (fputs_highlighted): New function.
7031 * utils.c (fputs_highlighted): Likewise.
7032
e2c52041
PW
70332019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7034
7035 * NEWS: Mention new pipe command and new convenience variables.
7036
947d3946
PW
70372019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7038
7039 * cli/cli-cmds.c (pipe_command): New function.
7040 (_initialize_cli_cmds): Call add_com for pipe_command.
7041 Define | as an alias for pipe.
7042 (exit_status_set_internal_vars): New function.
7043 (shell_escape): Call exit_status_set_internal_vars.
7044 cli/cli-decode.c (find_command_name_length): Recognize | as
7045 a single character command.
7046
b8fd0918
PW
70472019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7048
7049 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7050 top.c (execute_command_to_ui_file): New function, mostly a copy
7051 of execute_command_to_string.
7052 (execute_command_to_string): Implement by calling
7053 execute_command_to_ui_file.
7054
68bb5386
PW
70552019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7056
7057 * top.h (saved_command_line): Remove declaration.
7058 * top.c (previous_saved_command_line, previous_repeat_arguments):
7059 New variables.
7060 (saved_command_line): Make static, define together with other
7061 'repeat variables'.
7062 (dont_repeat): Clear repeat_arguments.
7063 (repeat_previous, get_saved_command_line, save_command_line):
7064 New functions.
7065 (gdb_init): Initialize saved_command_line
7066 and previous_saved_command_line.
7067 * main.c (captured_main_1): Remove saved_command_line initialization.
7068 * event-top.c (handle_line_of_input): Update to use
7069 the new 'repeat' related functions instead of direct access to
7070 saved_command_line.
7071 * command.h (repeat_previous, get_saved_command_line,
7072 save_command_line): New declarations.
7073 (dont_repeat): Add comment.
7074
bfcdb852
TT
70752019-05-30 Tom Tromey <tromey@adacore.com>
7076
7077 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7078 Fix comment.
7079 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7080
0ef209f2
JV
70812019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7082
7083 PR cli/24587
7084 * completer.c (complete): Initialize variable word.
7085
955b06fa
SDJ
70862019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7087
7088 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7089 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7090 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7091 'body' is NULL to the outter 'if', protecting the '!is_define'
7092 situation as well.
7093
fa9c3fa0
TT
70942019-05-29 Tom Tromey <tromey@adacore.com>
7095
7096 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7097 (dwarf_unknown): New function.
7098 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7099 (dwarf_type_encoding_name): Use dwarf_unknown.
7100
4330d61d
TT
71012019-05-29 Tom Tromey <tromey@adacore.com>
7102
7103 PR c++/20020:
7104 * cp-valprint.c (cp_print_value_fields): Call
7105 cp_print_static_field inside "try".
7106
33a6bc35
TT
71072019-05-29 Tom Tromey <tromey@adacore.com>
7108
7109 * inflow.c (struct terminal_info): Add default operator=.
7110 * configure: Rebuild.
7111 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7112 -Wdeprecated-copy-dtor, -Wredundant-move.
7113
000439d5
TT
71142019-05-29 Tom Tromey <tromey@adacore.com>
7115
7116 * NEWS: Add entry.
7117 * infcmd.c (print_return_value_1): Handle finish_print
7118 option.
7119 (show_print_finish): New function.
7120 (_initialize_infcmd): Add "set/show print finish" commands.
7121 * valprint.c (user_print_options): Initialize new member.
7122 * valprint.h (struct value_print_options) <finish_print>: New
7123 member.
7124
c0e70c62
TT
71252019-05-28 Tom Tromey <tromey@adacore.com>
7126
7127 * ada-lang.c (ada_remove_Xbn_suffix)
7128 (find_old_style_renaming_symbol)
7129 (parse_old_style_renaming): Remove.
7130 (ada_find_renaming_symbol): Don't call
7131 find_old_style_renaming_symbol.
7132 (ada_is_renaming_symbol): Rename from
7133 ada_find_renaming_symbol. Remove "block" parameter. Return
7134 bool. Now static.
7135 (ada_read_var_value): Update and simplify.
7136 * ada-exp.y (write_var_or_type): Remove old code.
7137
766f8836
AH
71382019-05-28 Alan Hayward <alan.hayward@arm.com>
7139
68255adc 7140 PR gdb/25010
766f8836
AH
7141 * event-top.c: Remove include comment.
7142 * inflow.c (class scoped_ignore_sigttou): Move from here...
7143 * inflow.h (class scoped_ignore_sigttou): ...to here.
7144 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7145 * top.c: Remove include comment.
7146
eb41253a
TT
71472019-05-27 Tom Tromey <tom@tromey.com>
7148
7149 * NEWS: Fix typo.
7150
4ca51187
TT
71512019-05-22 Tom Tromey <tromey@adacore.com>
7152
7153 * target.c (target_follow_exec): Constify parameter.
7154 * target-delegates.c: Rebuild.
7155 * remote.c (remote_target::follow_exec): Constify parameter.
7156 * infrun.c (follow_exec): Constify parameter.
7157 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7158 (target_follow_exec): Likewise.
7159
8fca4da0
AH
71602019-05-22 Alan Hayward <alan.hayward@arm.com>
7161
7162 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7163 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7164
b7060614
AH
71652019-05-22 Alan Hayward <alan.hayward@arm.com>
7166
7167 * NEWS: Add debugredirect and testsuite sections.
7168
0a5954bd
SC
71692019-05-22 Simon Cook <simon.cook@embecosm.com>
7170
7171 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7172 target descriptions using exclusively floating point register name
7173 aliases.
7174
dc42e902
AB
71752019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 PR gdb/18644:
7178 * f-lang.c (build_fortran_types): Handle the case where
7179 gdbarch_floatformat_for_type returns a nullptr.
7180
fb7806c7
TV
71812019-05-21 Tom de Vries <tdevries@suse.de>
7182
7183 PR cli/24587
7184 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7185
34d11c68
AB
71862019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 PR gdb/18644:
7189 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7190 16-byte floats.
7191 * i386-tdep.c (i386_floatformat_for_type): Use
7192 floatformats_ia64_quad for the 16-byte floating point component
7193 within a fortran 32-byte complex number.
7194
122cf0f2
AB
71952019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7198 delete default constructor.
7199 (find_partial_die): Update to return const struct.
7200 (partial_die_parent_scope): Move variable declaration into scope
7201 of its use and change its type to auto.
7202 (guess_partial_die_structure_name): Likewise.
7203 (partial_die_info::fixup): Likewise.
7204
33d0e35a
TT
72052019-05-17 Tom Tromey <tromey@adacore.com>
7206
7207 * source.c (find_and_open_source): Remove cast.
7208
a45575b0
TT
72092019-05-17 Tom Tromey <tromey@adacore.com>
7210
7211 * annotate.c (annotate_source): Make "filename" const.
7212 * annotate.h (annotate_source): Use const.
7213
81f47ac2
AH
72142019-05-17 Alan Hayward <alan.hayward@arm.com>
7215
7216 * disasm.c (set_disassembler_options): Send errors to stderr.
7217
ca1285d1
AH
72182019-05-17 Alan Hayward <alan.hayward@arm.com>
7219
7220 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7221 (cli_interp_base::set_logging): Check debug_redirect.
7222 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7223 * cli/cli-logging.c (debug_redirect): Add static variable.
7224 (pop_output_files): Add default param.
7225 (handle_redirections): Print debug setting.
7226 (show_logging_command): Likewise.
7227 (_initialize_cli_logging): Add debugredirect command.
7228 * interps.c (current_interp_set_logging): Add debug_redirect
7229 parameter.
7230 * interps.h (set_logging): Add debug_redirect parameter.
7231 (current_interp_set_logging): Likewise.
7232 * mi/mi-common.h: Likewise.
7233 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7234
72352019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7236 Tom Tromey <tromey@adacore.com>
7237
7238 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7239 directly.
7240 * cli/cli-interp.h (make_logging_output): Remove declaration.
7241 * cli/cli-logging.c (make_logging_output): Remove function.
7242 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7243 directly.
7244 * ui-file.c (tee_file::tee_file): Remove bools.
7245 (tee_file::~tee_file): Remove deletes.
7246 * ui-file.h (tee_file): Remove bools.
7247
26648588
JV
72482019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7249
7250 * mi/mi-cmds.h (mi_cmd_complete): New function.
7251 * mi/mi-main.c (mi_cmd_complete): Likewise.
7252 * mi/mi-cmds.c: Define new MI command -complete.
7253 * NEWS: Mention new -complete command.
7254
6e035501
JV
72552019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7256
7257 * completer.h (complete): New function.
7258 * completer.c (complete): Likewise.
7259 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7260 function defined in completer.h.
7261
7d0e2ece
JV
72622019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7263
e79be6e5 7264 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7265
fb816e8b
TV
72662019-05-17 Tom de Vries <tdevries@suse.de>
7267
7268 PR gdb/24094
7269 * dwarf2read.c (struct cu_partial_die_info): New struct.
7270 (find_partial_die): Return cu_partial_die_info.
7271 (partial_die_parent_scope, guess_partial_die_structure_name)
7272 (partial_die_info::fixup): Handle new return type of find_partial_die.
7273
677052f2
SDJ
72742019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7275
a1726c38 7276 PR breakpoints/24541
677052f2
SDJ
7277 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7278 "std::string", simplifying the algorithm.
7279
f3da9116
SDJ
72802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7281
7282 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7283 (stap_static_probe_ops::get_probes): Likewise.
7284
f1bb75ab
SDJ
72852019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7286
7287 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7288 '-')" and "else if".
7289 (stap_parse_single_operand): Join checks for
7290 "gdbarch_stap_parse_special_token_p" and
7291 "gdbarch_stap_parse_special_token" in the same "if" statement.
7292 Invert check when verifying for operation on register
7293 displacement.
7294
3ca58cde
SDJ
72952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7296
7297 * stap-probe.c (stap_get_opcode): Update comment.
7298 (stap_get_expected_argument_type): Likewise.
7299 (handle_stap_probe): Likewise.
7300
af2d9bee
SDJ
73012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7302
7303 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7304 return type to 'bool'. Adjust comment. Use 'bool' when
7305 appropriate.
7306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7307 * stap-probe.c (stap_parse_argument_1): Likewise.
7308 (stap_is_operator): Likewise.
7309 (stap_is_generic_prefix): Likewise.
7310 (stap_is_register_prefix): Likewise.
7311 (stap_is_register_indirection_prefix): Likewise.
7312 (stap_is_integer_prefix): Likewise.
7313 (stap_generic_check_suffix): Likewise.
7314 (stap_check_integer_suffix): Likewise.
7315 (stap_check_register_suffix): Likewise.
7316 (stap_check_register_indirection_suffix): Likewise.
7317 (stap_parse_register_operand): Likewise.
7318 (stap_parse_single_operand): Likewise.
7319 (stap_parse_argument_1): Likewise.
7320 (stap_probe::get_argument_count): Likewise.
7321 (stap_is_operator): Likewise.
7322
61c9c421
TT
73232019-05-16 Tom Tromey <tromey@adacore.com>
7324
7325 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7326 keyword to foreach.
7327
9ddc1af1
SM
73282019-05-15 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * linux-thread-db.c (try_thread_db_load_1): Change return type
7331 to bool.
7332 (try_thread_db_load): Likewise.
7333 (try_thread_db_load_from_pdir_1): Likewise.
7334 (try_thread_db_load_from_pdir): Likewise.
7335 (try_thread_db_load_from_sdir): Likewise.
7336 (try_thread_db_load_from_dir): Likewise.
7337 (thread_db_load_search): Likewise.
7338 (has_libpthread): Likewise.
7339 (thread_db_load): Likewise.
7340
7bede828
SDJ
73412019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7342
7343 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7344 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7345 NULL, and complain/return if that's the case.
7346
c5358db4
JD
73472019-05-15 John Darrington <john@darrington.wattle.id.au>
7348
7349 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7350 (advance, posn, abstract_read_memory): New functions.
7351 [struct mem_read_abstraction]: New struct.
7352 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7353
c408a94f
TT
73542019-05-14 Tom Tromey <tromey@adacore.com>
7355
7356 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7357 value is not lval_memory.
7358
e7bd7fba
TT
73592019-05-14 Tom Tromey <tromey@adacore.com>
7360
7361 * solib.c (info_sharedlibrary_command): Style the file name.
7362
a6d0f249
AH
73632019-05-14 Alan Hayward <alan.hayward@arm.com>
7364
7365 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7366 (aarch64_vnv_type): Likewise.
7367 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7368 * common/tdesc.c: Likewise.
7369 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7370 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7371 * features/aarch64-fpu.xml: Add ieee half view.
7372 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7373 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7374 * gdbtypes.h (struct builtin_type): Likewise.
7375 (struct objfile_type): Likewise.
7376
66b8bb74
SM
73772019-05-12 Paul Naert <paul.naert@polymtl.ca>
7378
7379 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7380 typo.
7381 * location.h (string_to_event_location): Likewise.
7382
21c219fd
JB
73832019-05-11 Joel Brobecker <brobecker@adacore.com>
7384
7385 GDB 8.3 released.
7386
13674803
SM
73872019-05-10 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7390 New variable declaration.
7391 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7392 New variable.
7393 (print_one_breakpoint): Use ui_out::test_flags and new global
7394 variable to compute use_fixed_output.
7395 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7396 Remove.
7397 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7398 (mi_multi_location_breakpoint_output_fixed): Remove.
7399 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7400 new variable.
7401 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7402 fix_multi_location_breakpoint_output flag if version >= 3.
7403 * ui-out.h (enum ui_out_flag)
7404 <fix_multi_location_breakpoint_output>: New enumerator.
7405
a9eac7f9
SM
74062019-05-10 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7409
71bed2db
TT
74102019-05-10 Tom Tromey <tromey@adacore.com>
7411
7412 * ada-lang.c (catch_ada_completer): New function.
7413 (_initialize_ada_language): Use it.
7414
24c54127
TT
74152019-05-10 Tom Tromey <tromey@adacore.com>
7416
7417 * thread.c (print_thread_info): Make "requested_threads" const.
7418 * gdbthread.h (print_thread_info): Make "requested_threads"
7419 const.
7420 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7421 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7422
7a102139
TT
74232019-05-08 Tom Tromey <tom@tromey.com>
7424
7425 * gdbtypes.c (objfile_type_data): Change type.
7426 (objfile_type, _initialize_gdbtypes): Update.
7427
924d79e2
TT
74282019-05-08 Tom Tromey <tom@tromey.com>
7429
7430 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7431 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7432 (_initialize_dwarf2_frame): Update.
7433
4c58e337
TT
74342019-05-08 Tom Tromey <tom@tromey.com>
7435
7436 * objc-lang.c (objc_objfile_data): Change type.
7437 (find_methods): Update.
7438 (_initialize_objc_lang): Remove.
7439
d772d2ab
TT
74402019-05-08 Tom Tromey <tom@tromey.com>
7441
7442 * stabsread.c (rs6000_builtin_type_data): Change type.
7443 (rs6000_builtin_type, _initialize_stabsread): Update.
7444
d11d83f4
TT
74452019-05-08 Tom Tromey <tom@tromey.com>
7446
7447 * mips-tdep.c (mips_pdr_data): Remove.
7448 (_initialize_mips_tdep): Update.
7449
9a73f0ad
TT
74502019-05-08 Tom Tromey <tom@tromey.com>
7451
7452 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7453 (hppa_init_objfile_priv_data, read_unwind_info)
7454 (find_unwind_entry, _initialize_hppa_tdep): Update.
7455
8127a2fa
TT
74562019-05-08 Tom Tromey <tom@tromey.com>
7457
7458 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7459 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7460 on obstack.
7461 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7462
91d3055d
TT
74632019-05-08 Tom Tromey <tom@tromey.com>
7464
7465 * mdebugread.c (basic_type_data): Change type.
7466 (basic_type, _initialize_mdebugread): Update.
7467
31930bd3
TT
74682019-05-08 Tom Tromey <tom@tromey.com>
7469
7470 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7471
bdb3ed9e
TT
74722019-05-08 Tom Tromey <tom@tromey.com>
7473
7474 * nto-tdep.c (nto_inferior_data_reg): Change type.
7475 (nto_inferior_data): Update.
7476 (nto_inferior_data_cleanup, nto_new_inferior_data)
7477 (_initialize_nto_tdep): Remove.
7478 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7479
f37b313d
TT
74802019-05-08 Tom Tromey <tom@tromey.com>
7481
7482 * ada-lang.c (struct ada_inferior_data): Add initializers.
7483 (ada_inferior_data): Change type.
7484 (ada_inferior_data_cleanup): Remove.
7485 (get_ada_inferior_data, ada_inferior_exit)
7486 (struct ada_pspace_data): Add initializers, destructor.
7487 (ada_pspace_data_handle): Change type.
7488 (get_ada_pspace_data): Update.
7489 (ada_pspace_data_cleanup): Remove.
7490
24699405
TT
74912019-05-08 Tom Tromey <tom@tromey.com>
7492
7493 * coffread.c (struct coff_symfile_info): Add initializers.
7494 (coff_objfile_data_key): Move lower. Change type.
7495 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7496 Update.
7497 (coff_free_info): Remove.
7498
d4e05d2f
TT
74992019-05-08 Tom Tromey <tom@tromey.com>
7500
7501 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7502 (fbsd_pspace_data_handle): Move lower. Change type.
7503 (get_fbsd_pspace_data): Update.
7504 (fbsd_pspace_data_cleanup): Remove.
7505 (_initialize_fbsd_tdep): Update.
7506
14ef6690
TT
75072019-05-08 Tom Tromey <tom@tromey.com>
7508
7509 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7510 (get_ada_tasks_pspace_data): Update.
7511 (ada_tasks_pspace_data_cleanup): Remove.
7512 (_initialize_tasks): Update.
7513 (ada_tasks_inferior_data_handle): Change type.
7514 (get_ada_tasks_inferior_data): Update.
7515 (ada_tasks_inferior_data_cleanup): Remove.
7516 (struct ada_tasks_pspace_data): Add initializers.
7517
814cf43a
TT
75182019-05-08 Tom Tromey <tom@tromey.com>
7519
7520 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7521 * symfile-debug.c (debug_sym_get_probes): Change type.
7522 * stap-probe.c (handle_stap_probe):
7523 (stap_static_probe_ops::get_probes): Change type.
7524 * probe.h (class static_probe_ops) <get_probes>: Change type.
7525 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7526 (parse_probes_in_pspace): Update.
7527 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7528 Update.
7529 (any_static_probe_ops::get_probes): Change type.
7530 * elfread.c (elfread_data): New typedef.
7531 (probe_key): Change type.
7532 (elf_get_probes): Likewise. Update.
7533 (probe_key_free): Remove.
7534 (_initialize_elfread): Update.
7535 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7536 Change type.
7537 (dtrace_process_dof_probe, dtrace_process_dof)
7538 (dtrace_static_probe_ops::get_probe): Change type.
7539
02dc647e
TT
75402019-05-08 Tom Tromey <tom@tromey.com>
7541
7542 * xcoffread.c (struct xcoff_symfile_info): Rename from
7543 coff_symfile_info. Add initializers.
7544 (xcoff_objfile_data_key): Move lower. Change type.
7545 (XCOFF_DATA): Rewrite.
7546 (xcoff_free_info): Remove.
7547 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7548 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7549 (xcoff_initial_scan): Update.
7550
09232438
TT
75512019-05-08 Tom Tromey <tom@tromey.com>
7552
7553 * solib-svr4.c (struct svr4_info): Add initializers and
7554 destructor.
7555 <probes_table>: Now an htab_up.
7556 (solib_svr4_pspace_data): Change type.
7557 (free_probes_table): Simplify.
7558 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7559 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7560 (probes_table_remove_objfile_probes, register_solib_event_probe)
7561 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7562 (_initialize_svr4_solib): Update.
7563
7b4a314f
TT
75642019-05-08 Tom Tromey <tom@tromey.com>
7565
7566 * remote.c (remote_pspace_data): Change type.
7567 (remote_pspace_data_cleanup): Remove.
7568 (get_remote_exec_file, set_pspace_remote_exec_file)
7569 (_initialize_remote): Update.
7570
51d3063a
TT
75712019-05-08 Tom Tromey <tom@tromey.com>
7572
7573 * breakpoint.c (breakpoint_objfile_key): Change type.
7574 (get_breakpoint_objfile_data): Update.
7575 (free_breakpoint_objfile_data): Remove.
7576 (_initialize_breakpoint): Update.
7577
89fb8848
TT
75782019-05-08 Tom Tromey <tom@tromey.com>
7579
7580 * linux-tdep.c (struct linux_info): Add initializers.
7581 (linux_inferior_data): Move. Change type.
7582 (invalidate_linux_cache_inf): Update.
7583 (linux_inferior_data_cleanup): Remove.
7584 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7585
e9b89e2d
TT
75862019-05-08 Tom Tromey <tom@tromey.com>
7587
7588 * auxv.c (auxv_inferior_data): Move. Change type.
7589 (auxv_inferior_data_cleanup): Remove.
7590 (invalidate_auxv_cache_inf): Rewrite.
7591 (get_auxv_inferior_data, _initialize_auxv): Update.
7592
8c42777c
TT
75932019-05-08 Tom Tromey <tom@tromey.com>
7594
7595 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7596 (symfile_debug_objfile_data_key): Change type.
7597 (symfile_debug_installed, debug_qf_has_symbols)
7598 (debug_qf_find_last_source_symtab)
7599 (debug_qf_forget_cached_source_info)
7600 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7601 (debug_qf_print_stats, debug_qf_dump)
7602 (debug_qf_expand_symtabs_for_function)
7603 (debug_qf_expand_all_symtabs)
7604 (debug_qf_expand_symtabs_with_fullname)
7605 (debug_qf_map_matching_symbols)
7606 (debug_qf_expand_symtabs_matching)
7607 (debug_qf_find_pc_sect_compunit_symtab)
7608 (debug_qf_map_symbol_filenames)
7609 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7610 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7611 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7612 (debug_sym_read_linetable, debug_sym_relocate): Update.
7613 (symfile_debug_free_objfile): Remove.
7614 (install_symfile_debug_logging, _initialize_symfile_debug):
7615 Update.
7616
5bfd760d
TT
76172019-05-08 Tom Tromey <tom@tromey.com>
7618
7619 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7620 allocate_on_obstack.
7621 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7622 (get_dwarf2_per_objfile): Update.
7623 (set_dwarf2_per_objfile): Remove.
7624 (dwarf2_has_info, dwarf2_get_section_info): Update.
7625 (dwarf2_free_objfile): Remove.
7626 (_initialize_dwarf2_read): Update.
7627
e85e19b4
TT
76282019-05-08 Tom Tromey <tom@tromey.com>
7629
7630 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7631 initializers.
7632 <unsupported_script_warning_printed,
7633 script_not_found_warning_printed>: Now bool.
7634 (auto_load_pspace_data): Change type.
7635 (~auto_load_pspace_info): Rename from
7636 auto_load_pspace_data_cleanup.
7637 (get_auto_load_pspace_data, init_loaded_scripts_info)
7638 (clear_section_scripts, maybe_print_unsupported_script_warning)
7639 (maybe_print_script_not_found_warning, _initialize_auto_load):
7640 Update.
7641
f6aa7436
TT
76422019-05-08 Tom Tromey <tom@tromey.com>
7643
7644 * objfiles.c (objfile_pspace_info): Add destructor and
7645 initializers.
7646 (objfiles_pspace_data): Change type.
7647 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7648 (get_objfile_pspace_data): Update.
7649 (objfiles_bfd_data): Change type.
7650 (get_objfile_bfd_data): Update.
7651 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7652
6ae614f6
TT
76532019-05-08 Tom Tromey <tom@tromey.com>
7654
7655 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7656 Change type.
7657 (get_catch_syscall_inferior_data): Update.
7658 (catch_syscall_inferior_data_cleanup): Remove.
7659 (_initialize_break_catch_syscall): Update.
7660
6509b8eb
TT
76612019-05-08 Tom Tromey <tom@tromey.com>
7662
7663 * inflow.c (struct terminal_info): Add destructor and
7664 initializers.
7665 (inflow_inferior_data): Change type.
7666 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7667 (get_inflow_inferior_data, inflow_inferior_exit)
7668 (swap_terminal_info, _initialize_inflow): Update.
7669
35632941
TT
76702019-05-08 Tom Tromey <tom@tromey.com>
7671
7672 * target-dcache.c (target_dcache_cleanup): Remove.
7673 (target_dcache_aspace_key): Change type.
7674 (target_dcache_init_p, target_dcache_invalidate)
7675 (target_dcache_get, target_dcache_get_or_init)
7676 (_initialize_target_dcache): Update.
7677 * dcache.h (struct dcache_deleter): New.
7678
3017b94d
TT
76792019-05-08 Tom Tromey <tom@tromey.com>
7680
7681 * symtab.c (struct symbol_cache): Add destructor and
7682 initializers.
7683 (symbol_cache_key): Move. Change type.
7684 (make_symbol_cache, free_symbol_cache): Remove.
7685 (get_symbol_cache): Update.
7686 (symbol_cache_cleanup): Remove.
7687 (ALL_PSPACES, symbol_cache_flush)
7688 (maintenance_print_symbol_cache)
7689 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7690 Update.
7691
a32ad8c5
TT
76922019-05-08 Tom Tromey <tom@tromey.com>
7693
7694 * symtab.c (struct main_info): Add destructor and initializers.
7695 (main_progspace_key): Move. Change type.
7696 (get_main_info): Update.
7697 (main_info_cleanup): Remove.
7698 (_initialize_symtab): Update.
7699
5f6e90a0
TT
77002019-05-08 Tom Tromey <tom@tromey.com>
7701
7702 * registry.h (DECLARE_REGISTRY): Define the _key class.
7703
1bd0c6e4
AB
77042019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * NEWS: Merge two 'New commands' sections.
7707
2228ef77
XR
77082019-05-08 Joel Brobecker <brobecker@adacore.com>
7709
7710 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7711 parameter and use Ada language definition instead.
7712 (ada_val_print_ptr): Remove unused language parameter.
7713 (ada_val_print_num): Remove language parameter and use Ada language
7714 definition instead.
7715 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7716 parameter.
7717 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7718 parameter and use Ada language definition instead.
7719 (ada_val_print_1): Update all ada_val_print_xxx calls.
7720 Remove language parameter.
7721 (ada_val_print): Update ada_val_print_1 call.
7722
60fcc1c3
TT
77232019-05-08 Tom Tromey <tromey@adacore.com>
7724
7725 * remote.c (remote_hw_watchpoint_limit)
7726 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7727 Now static.
7728
ed2b7c17
TT
77292019-05-08 Tom Tromey <tromey@adacore.com>
7730
7731 * maint.c (_initialize_maint_cmds): Move initialization code to
7732 remote.c.
7733 (watchdog, show_watchdog): Move to remote.c.
7734 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7735 "watchdog" static.
7736 (_initialize_remote): Move initialization code from maint.c.
7737 * defs.h (watchdog): Don't declare.
7738
b0be6c91
TT
77392019-05-08 Tom Tromey <tromey@adacore.com>
7740
7741 * tui/tui-interp.c: Include main.h.
7742 * interps.c: Include main.h.
7743 * main.h (interpreter_p): Declare.
7744 * defs.h (interpreter_p): Don't declare.
7745
587ee17b
TT
77462019-05-08 Tom Tromey <tromey@adacore.com>
7747
7748 * dwarf2loc.c: Include dwarf2read.h.
7749 * defs.h (read_unsigned_leb128): Don't declare.
7750 * dwarf2read.h (read_unsigned_leb128): Declare.
7751
ca1df239
TT
77522019-05-08 Tom Tromey <tromey@adacore.com>
7753
7754 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7755 method.
7756
99f20f08
TT
77572019-05-08 Tom Tromey <tromey@adacore.com>
7758
7759 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7760 when no wrap column is set.
7761
80e55b13
TT
77622019-05-08 Tom Tromey <tromey@adacore.com>
7763
7764 * c-lang.c (c_get_string): Handle non-C-style arrays.
7765
9d3421af
TT
77662019-05-08 Tom Tromey <tromey@adacore.com>
7767
7768 * typeprint.c (print_offset_data::update): Print the bit offset,
7769 not the number of bits remaining.
7770
844333e2
TT
77712019-05-08 Tom Tromey <tromey@adacore.com>
7772
7773 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7774 padding at end of comment.
7775
988915ee
TT
77762019-05-08 Tom Tromey <tromey@adacore.com>
7777
7778 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7779 Compare main types.
7780
26bfd823
TT
77812019-05-06 Tom Tromey <tom@tromey.com>
7782
7783 * common/scoped_mmap.c: Include common-defs.h.
7784 * common/scoped_mmap.h: Don't include config.h.
7785
89055eaa
TT
77862019-05-04 Tom Tromey <tom@tromey.com>
7787
7788 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7789 (struct aarch64_call_info): Add initializers.
7790 <si>: Now a std::vector.
7791 (pass_on_stack, aarch64_push_dummy_call): Update.
7792
5da01df5
TT
77932019-05-04 Simon Marchi <simon.marchi@efficios.com>
7794 Tom Tromey <tom@tromey.com>
7795
7796 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7797 (ppc_threads): Now a std::vector. Now static.
7798 (hwdebug_find_thread_points_by_tid)
7799 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7800 Update.
7801
fbdf05a1
TT
78022019-05-04 Tom Tromey <tom@tromey.com>
7803
7804 * arc-tdep.c (arc_tdesc_init): Return bool.
7805
06d16ec9
TT
78062019-05-04 Tom Tromey <tom@tromey.com>
7807
7808 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7809 Use gdb_assert_not_reached.
7810
9c056022
TT
78112019-05-04 Tom Tromey <tom@tromey.com>
7812
7813 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7814 "false".
7815
fa9c2a59
TT
78162019-05-04 Tom Tromey <tom@tromey.com>
7817
7818 * arc-tdep.c (arc_tdesc_init): Use bool.
7819
e2eb806a
TT
78202019-05-04 Tom Tromey <tom@tromey.com>
7821
7822 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7823
6fe87677
TT
78242019-05-04 Tom Tromey <tom@tromey.com>
7825
7826 * cli/cli-cmds.c (valid_command_p): Return bool.
7827
7f008c9e
TT
78282019-05-04 Tom Tromey <tom@tromey.com>
7829
7830 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7831 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7832
b6484282
RT
78332019-05-04 Raul Tambre <raul@tambre.ee>
7834
7835 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7836 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7837 operator for comparison.
7838
af97b416
TT
78392019-05-04 Tom Tromey <tom@tromey.com>
7840
7841 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7842 (lookup_partial_symbol, print_partial_symbols)
7843 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7844 (psymbol_compare): Update.
7845 (add_psymbol_to_bcache): Clear the entire psymbol.
7846 (maintenance_check_psymtabs): Update.
7847 * psympriv.h (struct partial_symbol): Don't derive from
7848 general_symbol_info.
7849 <obj_section, unrelocated_address, address,
7850 set_unrelocated_address>: Update.
7851 <ginfo>: New member.
7852 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7853 (debug_names::write_psymbols): Update.
7854
9d6d4be8
TV
78552019-05-04 Tom de Vries <tdevries@suse.de>
7856
7857 * contrib/cc-with-tweaks.sh: Support -n arg.
7858
66452beb
PW
78592019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7860
7861 * corelow.c (core_target::detach): Ensure frame cache and
7862 register caches are cleared.
7863 inferior.c (exit_inferior_1): Likewise.
7864
bde09ab7
TT
78652019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7866 Tom Tromey <tom@tromey.com>
7867
7868 * dictionary.c (collate_pending_symbols_by_language): Remove
7869 "struct" from foreach.
7870 * symtab.c (lookup_global_symbol_from_objfile)
7871 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7872 foreach.
7873 * ser-tcp.c (net_open): Remove "struct" from foreach.
7874 * objfiles.c (objfile_relocate, objfile_rebase)
7875 (objfile_has_symbols): Remove "struct" from foreach.
7876 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7877 from foreach.
7878 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7879 foreach.
7880 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7881 "struct" from foreach.
7882 * ada-lang.c (create_excep_cond_exprs)
7883 (ada_exception_catchpoint_cond_string): Remove "struct" from
7884 foreach.
7885
222a8d25
TT
78862019-05-03 Tom Tromey <tromey@adacore.com>
7887
7888 * ada-exp.y (convert_char_literal): Check suffix of each
7889 enumerator.
7890
fcd60b84
DP
78912019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7892
7893 PR ada/21406:
7894 * ada-exp.y (yywrap): Don't define.
7895 * ada-lex.l (%option): Add noyywrap
7896 (yywrap): Remove.
7897
5f2459c2
EZ
78982019-05-03 Eli Zaretskii <eliz@gnu.org>
7899
353ea2d1
EZ
7900 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7901 _WIN32_WINNT to the XP level, unless already defined to a higher
7902 level.
7903
7904 * unittests/parse-connection-spec-selftests.c:
7905 * ser-tcp.c:
7906 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7907 override.
7908
5f2459c2
EZ
7909 * symfile.c (find_separate_debug_file): Remove colon from the
7910 drive spec of DOS/Windows file names of the target, so that the
7911 file name produced from DEBUGDIR and the target's directory will
7912 be valid on DOS/Windows systems.
7913
80062eb9
AB
79142019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * rust-lang.c (val_print_struct): Handle printing structures
7917 containing strings.
7918
b8c05e85
TT
79192019-05-02 Tom Tromey <tromey@adacore.com>
7920
7921 * valarith.c (_initialize_valarith): Remove.
7922
4504bbde
TT
79232019-05-01 Tom Tromey <tromey@adacore.com>
7924
7925 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7926 bitfields.
7927
d48e62f4
TT
79282019-05-01 Tom Tromey <tromey@adacore.com>
7929
7930 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7931 for big-endian copies.
7932
15f18d14
AT
79332019-04-30 Ali Tamur <tamur@google.com>
7934 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7935 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7936 (read_3_bytes): New function.
7937
ab4ee614
JB
79382019-04-30 Joel Brobecker <brobecker@adacore.com>
7939
7940 * windows-nat.c (main_thread_id): Delete.
7941 (handle_output_debug_string): Replace main_thread_id by
7942 current_event.dwThreadId.
7943 (fake_create_process): Likewise.
7944 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7945 Do not set main_thread_id.
7946 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7947 current_event.dwThreadId.
7948 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7949
8ed5b76e
JB
79502019-04-30 Joel Brobecker <brobecker@adacore.com>
7951
7952 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7953 Use current_event.dwThreadId instead of main_thread_id.
7954
2ff0a947
TT
79552019-04-30 Tom Tromey <tromey@adacore.com>
7956
7957 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7958 (create_excep_cond_exprs): Iterate over program spaces.
7959 (ada_exception_catchpoint_cond_string): Examine all minimal
7960 symbols for exception types.
7961
a776957c
TT
79622019-04-30 Tom Tromey <tromey@adacore.com>
7963
7964 PR c++/24470:
7965 * dwarf2read.c (process_structure_scope): Handle case where type
7966 has template parameters but no symbol was created.
7967
bc68014d
AB
79682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7969 Chris January <chris.january@arm.com>
7970
7971 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7972 qualifier.
7973 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7974
f1fdc960
AB
79752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * f-typeprint.c (f_print_type): Update rules for printing
7978 whitespace.
7979 (f_type_print_varspec_suffix): Likewise.
7980
bf7a4de1
AB
79812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7982 Chris January <chris.january@arm.com>
7983
7984 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7985 function arguments.
7986
bbe75b9d
AB
79872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7988
7989 * f-lang.c (build_fortran_types): Change name of void type to
7990 lower case.
7991 * f-typeprint.c (f_type_print_base): Print the name of the void
7992 type, rather than a fixed string.
7993 * f-valprint.c (f_decorations): Use lower case void string.
7994
1db455a7
AB
79952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7996 Chris January <chris.january@arm.com>
7997
7998 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7999 types for Fortran.
8000
b6d03bb2
AB
80012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8002 Chris January <chris.january@arm.com>
8003 David Lecomber <david.lecomber@arm.com>
8004
8005 * f-exp.y (BINOP_INTRINSIC): New token.
8006 (exp): New parser rule handling BINOP_INTRINSIC.
8007 (f77_keywords): Add new builtin procedures.
8008 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8009 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8010 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8011 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8012 (print_unop_subexp_f): New function.
8013 (print_binop_subexp_f): New function.
8014 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8015 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8016 (dump_subexp_body_f): Likewise.
8017 (operator_check_f): Likewise.
8018 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8019 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8020
83228e93
AB
80212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8024 UNOP_KIND.
8025 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8026 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8027 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8028 (operator_length_f): New fuction.
8029 (print_subexp_f): New function.
8030 (op_name_f): New function.
8031 (dump_subexp_body_f): New function.
8032 (operator_check_f): New function.
8033 (exp_descriptor_f): Replace standard expression handling functions
8034 with new functions.
8035 * gdb/fortran-operator.def: New file.
8036 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8037 * gdb/std-operator.def: Remove UNOP_KIND.
8038
6fdcd7cc
AB
80392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * std-operator.def: Remove unbalanced, stray double quote
8042 character.
8043
2e62ab40
AB
80442019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8045 Chris January <chris.january@arm.com>
8046 Daniel Everett <daniel.everett@arm.com>
8047 Nick Forrington <nick.forrington@arm.com>
8048 Richard Bunt <richard.bunt@arm.com>
8049
8050 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8051 of depth when printing anonymous structs or unions.
8052 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8053 Don't print either the top-level value, or the children if the
8054 max-depth is exceeded.
8055 (ppscm_print_children): When printing the key of a map, allow one
8056 extra level of depth.
8057 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8058 print either the top-level value, or the children if the max-depth
8059 is exceeded.
8060 (print_children): When printing the key of a map, allow one extra
8061 level of depth.
8062 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8063 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8064 (user_print_options): Initialise max_depth field.
8065 (val_print_scalar_or_string_type_p): New function.
8066 (val_print): Check to see if the max depth has been reached.
8067 (val_print_check_max_depth): Define new function.
8068 (show_print_max_depth): New function.
8069 (_initialize_valprint): Add 'print max-depth' option.
8070 * valprint.h (struct value_print_options) <max_depth>: New field.
8071 (val_print_check_max_depth): Declare new function.
8072 * NEWS: Document new feature.
8073
4be290b2
AB
80742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8075
8076 * ada-lang.c (ada_language_defn): Initialise new field.
8077 * c-lang.c (c_is_string_type_p): New function.
8078 (c_language_defn): Initialise new field.
8079 (cplus_language_defn): Initialise new field.
8080 (asm_language_defn): Initialise new field.
8081 (minimal_language_defn): Initialise new field.
8082 * c-lang.h (c_is_string_type_p): Declare new function.
8083 * d-lang.c (d_language_defn): Initialise new field.
8084 * f-lang.c (f_is_string_type_p): New function.
8085 (f_language_defn): Initialise new field.
8086 * go-lang.c (go_is_string_type_p): New function.
8087 (go_language_defn): Initialise new field.
8088 * language.c (default_is_string_type_p): New function.
8089 (unknown_language_defn): Initialise new field.
8090 (auto_language_defn): Initialise new field.
8091 * language.h (struct language_defn) <la_is_string_type_p>: New
8092 member variable.
8093 (default_is_string_type_p): Declare new function.
8094 * m2-lang.c (m2_language_defn): Initialise new field.
8095 * objc-lang.c (objc_language_defn): Initialise new field.
8096 * opencl-lang.c (opencl_language_defn): Initialise new field.
8097 * p-lang.c (pascal_is_string_type_p): New function.
8098 (pascal_language_defn): Initialise new field.
8099 * rust-lang.c (rust_is_string_type_p): New function.
8100 (rust_language_defn): Initialise new field.
8101
721b08c6
AB
81022019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8105 New field.
8106 * ada-lang.c (ada_language_defn): Initialise new field.
8107 * c-lang.c (c_language_defn): Likewise.
8108 (cplus_language_defn): Likewise.
8109 (asm_language_defn): Likewise.
8110 (minimal_language_defn): Likewise.
8111 * d-lang.c (d_language_defn): Likewise.
8112 * f-lang.c (f_language_defn): Likewise.
8113 * go-lang.c (go_language_defn): Likewise.
8114 * language.c (unknown_language_defn): Likewise.
8115 (auto_language_defn): Likewise.
8116 * m2-lang.c (m2_language_defn): Likewise.
8117 * objc-lang.c (objc_language_defn): Likewise.
8118 * opencl-lang.c (opencl_language_defn): Likewise.
8119 * p-lang.c (pascal_language_defn): Likewise.
8120 * rust-lang.c (rust_language_defn): Likewise.
8121
fc913e53
AB
81222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8123
8124 * ada-lang.c (ada_is_character_type): Change return type to bool.
8125 (ada_is_string_type): Likewise.
8126 * ada-lang.h (ada_is_character_type): Update declaration
8127 (ada_is_string_type): Likewise.
8128
fa731fa0
PW
81292019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8130
8131 Support style in 'frame|thread apply'
8132
8133 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8134 * record.c (record_start, record_stop): Update callers of
8135 execute_command_to_string with false.
8136 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8137 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8138 methods.
8139 (class string_file): New constructor with term_out parameter.
8140 Override methods term_out and can_emit_style_escape. New member
8141 term_out.
8142 (class stdio_file): Override can_emit_style_escape.
8143 (class tee_file): Override term_out and can_emit_style_escape.
8144 * utils.h (can_emit_style_escape): Remove.
8145 * utils.c (can_emit_style_escape): Likewise.
8146 Update all callers of can_emit_style_escape (SOMESTREAM) to
8147 SOMESTREAM->can_emit_style_escape.
8148 * source-cache.c (source_cache::get_source_lines): Likewise.
8149 * stack.c (frame_apply_command_count): Call execute_command_to_string
8150 passing the term_out characteristic of the current gdb_stdout.
8151 * thread.c (thr_try_catch_cmd): Likewise.
8152 * top.c (execute_command_to_string): pass term_out parameter
8153 to construct the string_file for the command output.
8154 * ui-file.c (term_cli_styling): New function (most code moved
8155 from utils.c can_emit_style_escape).
8156 (string_file::string_file, string_file::can_emit_style_escape,
8157 stdio_file::can_emit_style_escape, tee_file::term_out,
8158 tee_file::can_emit_style_escape): New functions.
8159
136afab8
PW
81602019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8161
8162 * NEWS: Mention the new set|show may-call-functions.
8163 * infcall.c (may_call_functions_p): New variable.
8164 (show_may_call_functions_p): New function.
8165 (call_function_by_hand_dummy): Throws an error if not
8166 may-call-functions.
8167 (_initialize_infcall): Call add_setshow_boolean_cmd for
8168 may-call-functions.
8169
725cbb63
KS
81702019-04-25 Keith Seitz <keiths@redhat.com>
8171
8172 PR c++/24367
8173 * cp-support.c (inspect_type): Don't attempt substitutions
8174 of symbol with the same name.
8175
3d1cbb78
TT
81762019-04-25 Tom Tromey <tromey@adacore.com>
8177
8178 PR gdb/24475:
8179 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8180 static.
8181
94aeb44b
TT
81822019-04-25 Tom Tromey <tromey@adacore.com>
8183
8184 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8185 rvalue reference.
8186 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8187 (gdb_xml_parser::parse): Use std::move.
8188 * python/python-internal.h (gdbpy_convert_exception): Take a const
8189 reference.
8190 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8191 std::move.
8192 * python/py-utils.c (gdbpy_convert_exception): Take a const
8193 reference.
8194 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8195 Use std::move.
8196 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8197 Use std::move.
8198 * mi/mi-main.c (mi_print_exception): Take a const reference.
8199 * main.c (handle_command_errors): Take a const reference.
8200 * linespec.c (parse_linespec): Use std::move.
8201 * infcall.c (run_inferior_call): Use std::move.
8202 (call_function_by_hand_dummy): Use std::move.
8203 * exec.c (try_open_exec_file): Use std::move.
8204 * exceptions.h (exception_print, exception_fprintf)
8205 (exception_print_same): Update.
8206 * exceptions.c (print_exception, exception_print)
8207 (exception_fprintf, exception_print_same): Change parameters to
8208 const reference.
8209 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8210 * common/new-op.c: Use std::move.
8211 * common/common-exceptions.h (struct gdb_exception): Add move
8212 constructor.
8213 (struct gdb_exception_error, struct gdb_exception_quit, struct
8214 gdb_quit_bad_alloc): Change constructor to move constructor.
8215 (throw_exception): Change parameter to rvalue reference.
8216 * common/common-exceptions.c (throw_exception): Take rvalue
8217 reference.
8218 * cli/cli-interp.c (safe_execute_command): Use std::move.
8219 * breakpoint.c (insert_bp_location, location_to_sals): Use
8220 std::move.
8221
680d7fd5
TT
82222019-04-25 Tom Tromey <tromey@adacore.com>
8223
8224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8225 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8226 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8227 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8228 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8229 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8230 guile/scm-value.c: Use unpack.
8231 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8232 gdbscm_gdb_exception.
8233 (gdbscm_throw_gdb_exception): Likewise.
8234 (struct gdbscm_gdb_exception): New.
8235 (unpack): New function.
8236 (gdbscm_wrap): Use unpack.
8237
c6fdd8b2
TT
82382019-04-25 Tom Tromey <tromey@adacore.com>
8239
8240 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8241 (gdb_rl_callback_handler): Use std::move.
8242 * common/common-exceptions.h (struct gdb_exception): Add move
8243 assignment operator.
8244 (throw_exception_sjlj): Change "exception" to const reference.
8245 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8246 (throw_exception_sjlj): Change "exception" to const reference.
8247
cc06b668
TT
82482019-04-25 Tom Tromey <tromey@adacore.com>
8249
8250 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8251 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8252 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8253 Update.
8254 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8255 Update.
8256 * mi/mi-interp.c (mi_interp::exec): Update.
8257 * linespec.c (parse_linespec): Update.
8258 * infcall.c (run_inferior_call): Update.
8259 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8260 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8261 (gdbscm_lookup_global_symbol): Update.
8262 * guile/scm-param.c (gdbscm_parameter_value): Update.
8263 * guile/scm-frame.c (gdbscm_frame_read_register)
8264 (gdbscm_frame_read_var): Update.
8265 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8266 * exec.c (try_open_exec_file): Update.
8267 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8268 (gdb_rl_callback_handler): Update.
8269 * common/common-exceptions.h (exception_none): Don't declare.
8270 * common/common-exceptions.c (exception_none): Don't define.
8271 (struct catcher) <exception>: Update.
8272 * cli/cli-interp.c (safe_execute_command): Update.
8273 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8274
cf532bd1
AT
82752019-04-25 Ali Tamur <tamur@google.com>
8276
8277 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8278 (read_attribute_value): Likewise.
8279 (dwarf2_read_addr_index): Update comment.
8280 (read_str_index): Add DW_FORM_strx.
8281 (dwarf2_string_attr): Likewise.
8282 (dwarf2_const_value_attr): Likewise.
8283 (dump_die_shallow): Likewise.
8284 (dwarf2_fetch_constant_bytes): Likewise.
8285 (skip_form_bytes): Likewise.
8286 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8287
82433e3e
SDJ
82882019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8289
8290 PR corefiles/11608
8291 PR corefiles/18187
8292 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8293 OFFSET. Verify if current mapping contains an ELF header.
8294 (linux_find_memory_regions_full): Adjust call to
8295 dump_mapping_p.
8296
723adb65
SL
82972019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8298 Kang Li <kanglictf@gmail.com>
8299
8300 PR gdb/21600
8301
8302 * dwarf2-frame.c (read_initial_length): Be consistent about using
8303 unsigned representation of length.
8304 (decode_frame_entry_1): Likewise. Check for wraparound of
8305 end pointer as well as buffer overflow.
8306
596179f7
SDJ
83072019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8308
8309 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8310 "vq".
8311
a59240a4
TT
83122019-04-24 Tom Tromey <tromey@adacore.com>
8313
8314 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8315
f872fdbb
AB
83162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8317
8318 * s12z-tdep.c (s12z_unwind_pc): Delete.
8319 (s12z_unwind_sp): Delete.
8320 (s12z_gdbarch_init): Don't register deleted functions with
8321 gdbarch.
8322
b614e6f3
AB
83232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8324
8325 * rl78-tdep.c (rl78_unwind_sp): Delete.
8326 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8327
14faed38
AB
83282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8329
8330 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8331 (xstormy16_unwind_pc): Delete.
8332 (xstormy16_dummy_id): Delete.
8333 (xstormy16_gdbarch_init): Don't register deleted functions with
8334 gdbarch.
8335
541aad8a
AB
83362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * vax-tdep.c (vax_unwind_pc): Delete.
8339 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8340
29222070
AB
83412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8342
8343 * v850-tdep.c (v850_unwind_sp): Delete.
8344 (v850_unwind_pc): Delete.
8345 (v850_dummy_id): Delete.
8346 (v850_gdbarch_init): Don't register deleted functions with
8347 gdbarch.
8348
0f534d76
AB
83492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8350
8351 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8352 (tilegx_unwind_pc): Delete.
8353 (tilegx_unwind_dummy_id): Delete.
8354 (tilegx_gdbarch_init): Don't register deleted functions with
8355 gdbarch.
8356
1ba7b7f9
AB
83572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8358
8359 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8360 (tic6x_dummy_id): Delete.
8361 (tic6x_gdbarch_init): Don't register deleted functions with
8362 gdbarch.
8363
d31f262c
AB
83642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8365
8366 * sparc-tdep.c (sparc_unwind_pc): Delete.
8367 (sparc32_gdbarch_init): Don't register deleted function with
8368 gdbarch.
8369
6d14d64d
AB
83702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8371
8372 * sh-tdep.c (sh_unwind_sp): Delete.
8373 (sh_unwind_pc): Delete.
8374 (sh_dummy_id): Delete.
8375 (sh_gdbarch_init): Don't register deleted functions with
8376 gdbarch.
8377
a40dde9d
AB
83782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * score-tdep.c (score_unwind_sp): Delete.
8381 (score_unwind_pc): Delete.
8382 (score_dummy_id): Delete.
8383 (score_gdbarch_init): Don't register deleted functions with
8384 gdbarch.
8385
47c47d69
AB
83862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8387
8388 * rx-tdep.c (rx_unwind_pc): Delete.
8389 (rx_unwind_sp): Delete.
8390 (rx_dummy_id): Delete.
8391 (rx_gdbarch_init): Don't register deleted functions with
8392 gdbarch. Update comment.
8393
833a4480
AB
83942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8395
8396 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8397 (rs6000_dummy_id): Delete.
8398 (rs6000_gdbarch_init): Don't register deleted functions with
8399 gdbarch.
8400
3f2cef49
AB
84012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * or1k-tdep.c (or1k_dummy_id): Delete.
8404 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8405
96acf884
AB
84062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8407
8408 * nios2-tdep.c (nios2_dummy_id): Delete.
8409 (nios2_unwind_sp): Delete.
8410 (nios2_gdbarch_init): Don't register deleted functions with
8411 gdbarch.
8412
ca0ab0aa
AB
84132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * nds32-tdep.c (nds32_dummy_id): Delete.
8416 (nds32_unwind_pc): Delete.
8417 (nds32_unwind_sp): Delete.
8418 (nds32_gdbarch_init): Don't register deleted functions with
8419 gdbarch.
8420
c8259044
AB
84212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * msp430-tdep.c (msp430_unwind_pc): Delete.
8424 (msp430_unwind_sp): Delete.
8425 (msp430_dummy_id): Delete.
8426 (msp430_gdbarch_init): Don't register deleted functions with
8427 gdbarch.
8428
27f113c8
AB
84292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8430
8431 * moxie-tdep.c (moxie_unwind_sp): Delete.
8432 (moxie_unwind_pc): Delete.
8433 (moxie_dummy_id): Delete.
8434 (moxie_gdbarch_init): Don't register deleted functions with
8435 gdbarch.
8436
aee6c3cd
AB
84372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8440 (mn10300_unwind_pc): Delete.
8441 (mn10300_unwind_sp): Delete.
8442 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8443 mn10300_unwind_sp.
8444 (mn10300_frame_unwind_init): Don't register deleted functions with
8445 gdbarch.
8446
8e2b5aea
AB
84472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8448
8449 * mep-tdep.c (mep_unwind_pc): Delete.
8450 (mep_unwind_sp): Delete.
8451 (mep_dummy_id): Delete.
8452 (mep_gdbarch_init): Don't register deleted functions with
8453 gdbarch.
8454
43cf3ede
AB
84552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8456
8457 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8458 (m68hc11_unwind_sp): Delete.
8459 (m68hc11_gdbarch_init): Don't register deleted functions with
8460 gdbarch.
8461
5e79b7bb
AB
84622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8463
8464 * m32r-tdep.c (m32r_unwind_sp): Delete.
8465 (m32r_unwind_pc): Delete.
8466 (m32r_dummy_id): Delete.
8467 (m32r_gdbarch_init): Don't register deleted functions with
8468 gdbarch.
8469
89b268d8
AB
84702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * m32c-tdep.c (m32c_unwind_pc): Delete.
8473 (m32c_unwind_sp): Delete.
8474 (m32c_dummy_id): Delete.
8475 (m32c_gdbarch_init): Don't register deleted functions with
8476 gdbarch.
8477
946c28d2
AB
84782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8479
8480 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8481 (lm32_unwind_pc): Delete.
8482 (lm32_dummy_id): Delete.
8483 (lm32_gdbarch_init): Don't register deleted functions with
8484 gdbarch.
8485
bf12844a
AB
84862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8489 (iq2000_unwind_pc): Delete.
8490 (iq2000_dummy_id): Delete.
8491 (iq2000_gdbarch_init): Don't register deleted functions with
8492 gdbarch.
8493
ecbc06d2
AB
84942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * nds32-tdep.c (nds32_type_align): Delete.
8497 (nds32_push_dummy_call): Use type_align instead.
8498
030197b4
AB
84992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * arm-tdep.c (arm_type_align): Only handle vector override case.
8502 (arm_push_dummy_call): Use type_align.
8503 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8504
b907456c
AB
85052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8508 case.
8509 (pass_on_stack): Use type_align.
8510 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8511 function.
8512
9e97ba43
TT
85132019-04-23 Tom Tromey <tromey@adacore.com>
8514
8515 * dwarf2read.c (line_header::file_name_at): Remove unused
8516 overload.
8517
6892f601
TV
85182019-04-23 Tom de Vries <tdevries@suse.de>
8519
8520 PR gdb/24438
8521 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8522 invocation.
8523
336d760d
AT
8524
85252019-03-27 Ali Tamur <tamur@google.com>
8526
8527 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8528 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8529 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8530 (dwarf_expr_context::get_addr_index): Likewise
8531 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8532 (symbol_needs_eval_context::get_addr_index): Likewise
8533 (disassemble_dwarf_expression): Add DW_OP_addrx
8534 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8535 (read_cutu_die_from_dwo): Update comment
8536 (skip_one_die): Add DW_FORM_addrx
8537 (read_attribute_value): Likewise
8538 (var_decode_location): Add DW_OP_addrx
8539 (dwarf2_const_value_attr): Add DW_FORM_addrx
8540 (dump_die_shallow): Likewise
8541 (dwarf2_fetch_constant_bytes): Likewise
8542 (decode_locdesc): Add DW_OP_addrx
8543 (skip_form_bytes): Add DW_FORM_addrx
8544
ad9d13f8
AT
85452019-04-22 Ali Tamur <tamur@google.com>
8546
8547 * MAINTAINERS (Write After Approval): Add self.
8548
d70cc3ba
SM
85492019-04-22 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8552 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8553 (open_symbol_file_object): Likewise.
8554 (svr4_default_sos): Add info parameter.
8555 (svr4_read_so_list): Likewise.
8556 (svr4_current_sos_direct): Adjust functions calls to pass down
8557 info.
8558 (svr4_current_sos_1): Add info parameter.
8559 (svr4_current_sos): Call get_svr4_info, pass info down to
8560 svr4_current_sos_1.
8561 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8562 get_svr4_info.
8563 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8564 get_svr4_info.
8565 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8566 to get_svr4_info.
8567 (probes_table_remove_objfile_probes): Likewise.
8568 (register_solib_event_probe): Add info parameter.
8569 (solist_update_incremental): Pass info parameter down to
8570 svr4_read_so_list.
8571 (disable_probes_interface): Add info parameter.
8572 (svr4_handle_solib_event): Pass current_program_space to
8573 get_svr4_info. Adjust disable_probes_interface cleanup.
8574 (svr4_create_probe_breakpoints): Add info parameter, pass it
8575 down to register_solib_event_probe.
8576 (svr4_create_solib_event_breakpoints): Add info parameter,
8577 pass it down to svr4_create_probe_breakpoints.
8578 (enable_break): Pass info down to
8579 svr4_create_solib_event_breakpoints.
8580 (svr4_solib_create_inferior_hook): Pass current_program_space to
8581 get_svr4_info.
8582 (svr4_clear_solib): Likewise.
8583
7905fc35
PA
85842019-04-22 Pedro Alves <palves@redhat.com>
8585
8586 * solib-svr4.c (svr4_free_objfile_observer): New.
8587 (probe_and_action::objfile): New field.
8588 (probes_table_htab_remove_objfile_probes)
8589 (probes_table_remove_objfile_probes): New functions.
8590 (register_solib_event_probe): Add 'objfile' parameter. Store it
8591 in the new probe_and_action. Don't store the probe in 'lookup'.
8592 (svr4_create_probe_breakpoints): Pass objfile to
8593 register_solib_event_probe.
8594 (_initialize_svr4_solib): Register a free_objfile observer.
8595
fb881986
TT
85962019-04-19 Tom Tromey <tom@tromey.com>
8597
8598 * common/queue.h: Remove.
8599
8732db6c
TT
86002019-04-19 Tom Tromey <tom@tromey.com>
8601
8602 * event-loop.c: Don't include "common/queue.h".
8603
97dfbadd
TT
86042019-04-19 Tom Tromey <tom@tromey.com>
8605
8606 * remote.c (remote_target): Use delete.
8607 * remote-notif.h: Include <list>, not "common/queue.h".
8608 (notif_client_p): Remove typedef.
8609 (remote_notif_state): Add constructor, destructor, initializer.
8610 <notif_queue>: Now a std::list.
8611 (remote_notif_state_xfree): Don't declare.
8612 * remote-notif.c (remote_notif_process, handle_notification)
8613 (remote_notif_state_allocate): Update.
8614 (~remote_notif_state): Rename from remote_notif_state_xfree.
8615
cf250e36
TT
86162019-04-19 Tom Tromey <tom@tromey.com>
8617
8618 * symfile.c (reread_symbols): Update.
8619 * objfiles.c (objfile_register_static_link)
8620 (objfile_lookup_static_link): Update
8621 (~objfile) Don't delete static_links.
8622 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8623
61f4b350
TT
86242019-04-19 Tom Tromey <tom@tromey.com>
8625
8626 * type-stack.h (struct type_stack) <insert>: Constify string.
8627 * type-stack.c (type_stack::insert): Constify string.
8628 * gdbtypes.h (lookup_template_type): Update.
8629 (address_space_name_to_int): Update.
8630 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8631 const.
8632 (lookup_template_type): Make name const.
8633 * c-exp.y: Update rules.
8634 (lex_one_token, classify_name, classify_inner_name)
8635 (c_print_token): Update.
8636 * p-exp.y: Update rules.
8637 (yylex): Update.
8638 * f-exp.y: Update rules.
8639 (yylex): Update.
8640 * d-exp.y: Update rules.
8641 (lex_one_token, classify_name, classify_inner_name): Update.
8642 * parse.c (write_dollar_variable, copy_name): Return std::string.
8643 * parser-defs.h (copy_name): Change return type.
8644 * m2-exp.y: Update rules.
8645 (yylex): Update.
8646 * go-exp.y (lex_one_token): Update.
8647 Update rules.
8648 (classify_unsafe_function, classify_packaged_name)
8649 (classify_name, yylex): Update.
8650
189b8c2e
ST
86512019-04-19 Sergei Trofimovich <siarheit@google.com>
8652
8653 * configure.ac: add --enable-source-highlight switch.
8654 * configure: Regenerate.
8655 * top.c (print_gdb_version): plumb --enable-source-highlight
8656 status to "show configuration".
8657
8ecb59f8
TT
86582019-04-19 Tom Tromey <tromey@adacore.com>
8659
8660 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8661 Check ADA_TYPE_P.
8662 (empty_record, ada_template_to_fixed_record_type_1)
8663 (template_to_static_fixed_type)
8664 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8665 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8666 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8667 macros.
8668
62160ec9
TT
86692019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8670
8671 PR symtab/24423:
8672 * source.c (print_source_lines_base): Advance "iter" when a
8673 control character is seen.
8674
f2ae8bc8
PW
86752019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8676
8677 * inferior.h (struct infcall_suspend_state_deleter):
8678 Catch exception in destructor to avoid crash.
8679
d563b953
PW
86802019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8681
8682 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8683 close to the add_com "shell".
8684
dc34c897
TT
86852019-04-18 Tom Tromey <tromey@adacore.com>
8686
8687 * process-stratum-target.h (class process_stratum_target)
8688 <stratum>: Add "final".
8689
a12e5744
TT
86902019-04-17 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8693 against nullptr before use.
8694
a7e559cc
AH
86952019-04-17 Alan Hayward <alan.hayward@arm.com>
8696
8697 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8698
c01660c6
AB
86992019-04-17 Jim Wilson <jimw@sifive.com>
8700 Andrew Burgess <andrew.burgess@embecosm.com>
8701
8702 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8703 code read might fail, assume 4-byte breakpoint in that case.
8704
4aa866af
LS
87052019-04-15 Leszek Swirski <leszeks@google.com>
8706
8707 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8708 rather than a hand-rolled POD check when checking for forced MEMORY
8709 classification.
8710
48574d91
AH
87112019-04-15 Alan Hayward <alan.hayward@arm.com>
8712
8713 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8714 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8715 function.
8716 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8717 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8718 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8719 declaration.
8720
4da037ef
AH
87212019-04-15 Alan Hayward <alan.hayward@arm.com>
8722
8723 * aarch64-linux-nat.c
8724 (aarch64_linux_nat_target::thread_architecture): Add override.
8725 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8726 each VQ.
8727
ccb8d7e8
AH
87282019-04-15 Alan Hayward <alan.hayward@arm.com>
8729
8730 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8731
35add35e
AB
87322019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8735 target types of size 96-bits, add some additional comments, and
8736 check that the builtin type we found was the correct size.
8737
51196bbc
EZ
87382019-04-12 Eli Zaretskii <eliz@gnu.org>
8739
8740 * utils.c (prompt_for_continue): Don't restore the styling at the
8741 end, as applied_style has the wrong value. This fixes styling in
8742 long lists of file names that are interrupted by the "Continue?"
8743 prompt.
8744
62253a61
AB
87452019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8748 * c-lang.c (c_language_defn): Likewise.
8749 (cplus_language_defn): Likewise.
8750 (asm_language_defn): Likewise.
8751 (minimal_language_defn): Likewise.
8752 * d-lang.c (d_language_defn): Likewise.
8753 * f-lang.c (f_language_defn): Likewise.
8754 * go-lang.c (go_language_defn): Likewise.
8755 * language.c (unknown_language_defn): Likewise.
8756 (auto_language_defn): Likewise.
8757 * language.h (struct language_defn): Remove la_magic field.
8758 (LANG_MAGIC): Delete.
8759 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8760 * objc-lang.c (objc_language_defn): Likewise.
8761 * opencl-lang.c (opencl_language_defn): Likewise.
8762 * p-lang.c (pascal_language_defn): Likewise.
8763 * rust-lang.c (rust_language_defn): Likewise.
8764
a9158a86
AB
87652019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8766
8767 * riscv-tdep.c (riscv_type_align): New function.
8768 (riscv_type_alignment): Delete.
8769 (riscv_arg_location): Use 'type_align'.
8770 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8771
41077b66
AB
87722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 * gdbtypes.c (type_align): A struct with no non-static fields also
8775 has alignment of 1.
8776
9f0272f8
AB
87772019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8780 component to 0.
8781 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8782 member.
8783 (riscv_struct_info::analyse): New implementation using new
8784 analyse_inner member function.
8785 (riscv_struct_info::field_offset): New member function.
8786 (riscv_struct_info::m_offsets): New member variable.
8787 (riscv_struct_info::analyse_inner): New private member function,
8788 takes the old implementation of riscv_struct_info::analyse but
8789 extended to track field offsets.
8790 (riscv_call_arg_struct): Update the struct folding special cases
8791 to handle cases where empty C++ structs, which are non-zero
8792 length, are found.
8793 (riscv_arg_location): Initialise the length of each location, a
8794 non-zero length now indicates the location is in use.
8795 (riscv_push_dummy_call): Allow for the first location having a
8796 non-zero offset when setting up arguments.
8797 (riscv_return_value): Likewise, but for return values.
8798
02cf60c7
TT
87992019-04-11 Tom Tromey <tromey@adacore.com>
8800
8801 * utils.c (internal_vproblem): Make "msg" const.
8802
68811f8f
AH
88032019-04-11 Alan Hayward <alan.hayward@arm.com>
8804
8805 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8806 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8807 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8808 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8809
3f52fdbc
KB
88102019-04-10 Kevin Buettner <kevinb@redhat.com>
8811
8812 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8813 function.
8814 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8815 of amd64_collect_native_gregset.
8816 (amd64_linux_nat_target::store_registers): Likewise.
8817
e9ad22ee
TT
88182019-04-10 Tom Tromey <tom@tromey.com>
8819
8820 * symtab.c (lookup_global_symbol_from_objfile)
8821 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8822 * objfiles.h (class separate_debug_iterator): New.
8823 (class separate_debug_range): New.
8824 (struct objfile) <separate_debug_objfiles>: New method.
8825 (objfile_separate_debug_iterate): Don't declare.
8826 * objfiles.c (separate_debug_iterator::operator++): Rename from
8827 objfile_separate_debug_iterate.
8828 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8829 iterator.
8830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8831 iterator.
8832
ee371134
TT
88332019-04-10 Tom Tromey <tom@tromey.com>
8834
8835 * symfile.c (reread_symbols): Remove old comment.
8836 * objfiles.c (free_all_objfiles): Fix a typo.
8837
bf227d61
TT
88382019-04-10 Tom Tromey <tom@tromey.com>
8839
8840 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8841 * minsyms.c (lookup_minimal_symbol): Use foreach.
8842 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8843 (lookup_minimal_symbol_solib_trampoline): Likewise.
8844 * symfile.c (reread_symbols): Use foreach.
8845
8dc433a0
TT
88462019-04-09 Ivan Begert <ivanbegert@gmail.com>
8847 Tom Tromey <tromey@adacore.com>
8848
8849 PR rust/24414:
8850 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8851 (rust_lex_int_test): Change "value" to be LONGEST.
8852 (rust_lex_tests): Add test for long integer literal.
8853
9ab8741a
TT
88542019-04-09 Tom Tromey <tromey@adacore.com>
8855
8856 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8857 to bool.
8858 (extended_remote_target::attach): Update.
8859 (remote_target::remote_notice_new_inferior): Update.
8860 (remote_target::add_current_inferior_and_thread): Update.
8861 * inferior.c (exit_inferior_1): Use "false".
8862 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8863
e242fd12
SM
88642019-04-09 Simon Marchi <simon.marchi@efficios.com>
8865
9ca1957f 8866 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8867 the "start" command.
8868
2b0c8b01
KB
88692019-04-08 Kevin Buettner <kevinb@redhat.com>
8870
8871 * python/py-inferior.c (infpy_thread_from_thread_handle):
8872 Adjust comments to reflect renaming of thread_from_thread_handle
8873 to thread_from_handle. Adjust keywords. Fix type error message.
8874 (inferior_object_methods): Add thread_from_handle. Retain
8875 thread_from_thread_handle, but mark it as deprecated.
8876
50a82723
KB
88772019-04-08 Kevin Buettner <kevinb@redhat.com>
8878
8879 * gdbthread.h (find_thread_by_handle): Revise declaration.
8880 * thread.c (find_thread_by_handle): Likewise. Adjust
8881 implementation too.
8882 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8883 support for buffer objects as handles.
8884
cf63b016
KB
88852019-04-08 Kevin Buettner <kevinb@redhat.com>
8886
8887 * python/py-infthread.c (thpy_thread_handle): New function.
8888 (thread_object_methods): Register thpy_thread_handle.
8889
3d6c6204
KB
88902019-04-08 Kevin Buettner <kevinb@redhat.com>
8891
8892 * gdbthread.h (thread_to_thread_handle): Declare.
8893 * thread.c (gdbtypes.h): Include.
8894 (thread_to_thread_handle): New function.
8895
8896 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8897 (target_thread_info_to_thread_handle): Declare.
8898 * target.c (target_thread_info_to_thread_handle): New function.
8899 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8900 * target-delegates.c: Regenerate.
8901
8902 * linux-thread-db.c (class thread_db_target): Add method
8903 thread_info_to_thread_handle.
8904 (thread_db_target::thread_info_to_thread_handle): Define.
8905 * remote.c (class remote_target): Add new method
8906 thread_info_to_thread_handle.
8907 (remote_target::thread_info_to_thread_handle): Define.
8908
56be6ea8
PA
89092019-04-08 Pedro Alves <palves@redhat.com>
8910
8911 * common/common-exceptions.c (throw_exception): Don't create
8912 named object to throw; throw directly.
8913 (throw_it): Likewise. Don't initialize gdb_exception::message
8914 here, with new; pass FMT and AP to the ctor instead.
8915 * common/common-exceptions.h: Include <string>.
8916 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8917 const char *, va_list)): New ctor. Use std::make_shared.
8918 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8919 errors)): Delete.
8920 (gdb_exception_error::gdb_exception_error(enum errors, const char
8921 *, va_list)): New.
8922 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8923 Add assertion.
8924 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8925 errors)): Delete.
8926 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8927 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8928 Add assertion.
8929
eedc3f4f
TT
89302019-04-08 Tom Tromey <tom@tromey.com>
8931
8932 * valops.c (value_rtti_indirect_type): Replace throw_exception
8933 with throw.
8934 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8935 with throw.
8936 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8937 throw.
8938 * target.c (target_translate_tls_address): Replace throw_exception
8939 with throw.
8940 * stack.c (frame_apply_command_count): Replace throw_exception
8941 with throw.
8942 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8943 throw.
8944 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8945 with throw.
8946 * rs6000-tdep.c (rs6000_frame_cache)
8947 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8948 * remote.c: Replace throw_exception with throw.
8949 * record-full.c (record_full_message, record_full_wait_1)
8950 (record_full_restore): Replace throw_exception with throw.
8951 * record-btrace.c:
8952 (get_thread_current_frame_id, record_btrace_start_replaying)
8953 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8954 (cmd_record_btrace_start): Replace throw_exception with throw.
8955 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8956 throw.
8957 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8958 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8959 * linespec.c:
8960 (find_linespec_symbols): Replace throw_exception with throw.
8961 * infrun.c (displaced_step_prepare, resume): Replace
8962 throw_exception with throw.
8963 * infcmd.c (post_create_inferior): Replace throw_exception with
8964 throw.
8965 * inf-loop.c (inferior_event_handler): Replace throw_exception
8966 with throw.
8967 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8968 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8969 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8970 (get_prev_frame_always, get_frame_pc_if_available)
8971 (get_frame_address_in_block_if_available, get_frame_language):
8972 Replace throw_exception with throw.
8973 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8974 throw_exception with throw.
8975 * eval.c (fetch_subexp_value, evaluate_var_value)
8976 (evaluate_funcall, evaluate_subexp_standard): Replace
8977 throw_exception with throw.
8978 * dwarf2loc.c (call_site_find_chain)
8979 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8980 Replace throw_exception with throw.
8981 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8982 with throw.
8983 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8984 throw.
8985 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8986 * completer.c (complete_line_internal): Replace throw_exception
8987 with throw.
8988 * compile/compile-object-run.c (compile_object_run): Replace
8989 throw_exception with throw.
8990 * cli/cli-script.c (process_next_line): Replace throw_exception
8991 with throw.
8992 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8993 (btrace_enable, btrace_maint_update_pt_packets): Replace
8994 throw_exception with throw.
8995 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8996 throw_exception with throw.
8997 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8998 throw_exception with throw.
8999 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9000 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9001 * aarch64-tdep.c (aarch64_make_prologue_cache)
9002 (aarch64_make_stub_cache): Replace throw_exception with throw.
9003
26003a20
TT
90042019-04-08 Tom Tromey <tom@tromey.com>
9005
9006 * common/common-exceptions.c (throw_exception): Rename from
9007 throw_exception_cxx. Remove old copy. Make argument const.
9008 (throw_it): Create and throw exception objects directly.
9009 * common/common-exceptions.h (throw_exception): Make argument
9010 const.
9011 (struct gdb_exception_error): Add constructor.
9012 (struct gdb_exception_quit): Add constructor.
9013
d272eb37
TT
90142019-04-08 Tom Tromey <tom@tromey.com>
9015
9016 * common/common-exceptions.h (exception_rethrow): Don't declare.
9017 (TRY_SJLJ): Update comment.
9018 (TRY, CATCH, END_CATCH): Remove.
9019 * common/common-exceptions.c (exception_rethrow): Remove.
9020
230d2906
TT
90212019-04-08 Tom Tromey <tom@tromey.com>
9022
9023 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9024 Remove.
9025 (gdb_exception_error): Rename from
9026 gdb_exception_RETURN_MASK_ERROR.
9027 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9028 (gdb_quit_bad_alloc): Update.
9029 * aarch64-tdep.c: Update.
9030 * ada-lang.c: Update.
9031 * ada-typeprint.c: Update.
9032 * ada-valprint.c: Update.
9033 * amd64-tdep.c: Update.
9034 * arch-utils.c: Update.
9035 * break-catch-throw.c: Update.
9036 * breakpoint.c: Update.
9037 * btrace.c: Update.
9038 * c-varobj.c: Update.
9039 * cli/cli-cmds.c: Update.
9040 * cli/cli-interp.c: Update.
9041 * cli/cli-script.c: Update.
9042 * common/common-exceptions.c: Update.
9043 * common/new-op.c: Update.
9044 * common/selftest.c: Update.
9045 * compile/compile-c-symbols.c: Update.
9046 * compile/compile-cplus-symbols.c: Update.
9047 * compile/compile-object-load.c: Update.
9048 * compile/compile-object-run.c: Update.
9049 * completer.c: Update.
9050 * corelow.c: Update.
9051 * cp-abi.c: Update.
9052 * cp-support.c: Update.
9053 * cp-valprint.c: Update.
9054 * darwin-nat.c: Update.
9055 * disasm-selftests.c: Update.
9056 * dtrace-probe.c: Update.
9057 * dwarf-index-cache.c: Update.
9058 * dwarf-index-write.c: Update.
9059 * dwarf2-frame-tailcall.c: Update.
9060 * dwarf2-frame.c: Update.
9061 * dwarf2loc.c: Update.
9062 * dwarf2read.c: Update.
9063 * eval.c: Update.
9064 * event-loop.c: Update.
9065 * event-top.c: Update.
9066 * exec.c: Update.
9067 * f-valprint.c: Update.
9068 * fbsd-tdep.c: Update.
9069 * frame-unwind.c: Update.
9070 * frame.c: Update.
9071 * gdbtypes.c: Update.
9072 * gnu-v3-abi.c: Update.
9073 * guile/guile-internal.h: Update.
9074 * guile/scm-block.c: Update.
9075 * guile/scm-breakpoint.c: Update.
9076 * guile/scm-cmd.c: Update.
9077 * guile/scm-disasm.c: Update.
9078 * guile/scm-frame.c: Update.
9079 * guile/scm-lazy-string.c: Update.
9080 * guile/scm-math.c: Update.
9081 * guile/scm-param.c: Update.
9082 * guile/scm-ports.c: Update.
9083 * guile/scm-pretty-print.c: Update.
9084 * guile/scm-symbol.c: Update.
9085 * guile/scm-symtab.c: Update.
9086 * guile/scm-type.c: Update.
9087 * guile/scm-value.c: Update.
9088 * i386-linux-tdep.c: Update.
9089 * i386-tdep.c: Update.
9090 * inf-loop.c: Update.
9091 * infcall.c: Update.
9092 * infcmd.c: Update.
9093 * infrun.c: Update.
9094 * jit.c: Update.
9095 * language.c: Update.
9096 * linespec.c: Update.
9097 * linux-fork.c: Update.
9098 * linux-nat.c: Update.
9099 * linux-tdep.c: Update.
9100 * linux-thread-db.c: Update.
9101 * main.c: Update.
9102 * mi/mi-cmd-break.c: Update.
9103 * mi/mi-cmd-stack.c: Update.
9104 * mi/mi-interp.c: Update.
9105 * mi/mi-main.c: Update.
9106 * objc-lang.c: Update.
9107 * p-valprint.c: Update.
9108 * parse.c: Update.
9109 * ppc-linux-tdep.c: Update.
9110 * printcmd.c: Update.
9111 * python/py-arch.c: Update.
9112 * python/py-breakpoint.c: Update.
9113 * python/py-cmd.c: Update.
9114 * python/py-finishbreakpoint.c: Update.
9115 * python/py-frame.c: Update.
9116 * python/py-framefilter.c: Update.
9117 * python/py-gdb-readline.c: Update.
9118 * python/py-inferior.c: Update.
9119 * python/py-infthread.c: Update.
9120 * python/py-lazy-string.c: Update.
9121 * python/py-linetable.c: Update.
9122 * python/py-objfile.c: Update.
9123 * python/py-param.c: Update.
9124 * python/py-prettyprint.c: Update.
9125 * python/py-progspace.c: Update.
9126 * python/py-record-btrace.c: Update.
9127 * python/py-record.c: Update.
9128 * python/py-symbol.c: Update.
9129 * python/py-type.c: Update.
9130 * python/py-unwind.c: Update.
9131 * python/py-utils.c: Update.
9132 * python/py-value.c: Update.
9133 * python/python.c: Update.
9134 * record-btrace.c: Update.
9135 * record-full.c: Update.
9136 * remote-fileio.c: Update.
9137 * remote.c: Update.
9138 * riscv-tdep.c: Update.
9139 * rs6000-aix-tdep.c: Update.
9140 * rs6000-tdep.c: Update.
9141 * rust-exp.y: Update.
9142 * rust-lang.c: Update.
9143 * s390-tdep.c: Update.
9144 * selftest-arch.c: Update.
9145 * solib-dsbt.c: Update.
9146 * solib-frv.c: Update.
9147 * solib-spu.c: Update.
9148 * solib-svr4.c: Update.
9149 * solib.c: Update.
9150 * sparc64-linux-tdep.c: Update.
9151 * stack.c: Update.
9152 * symfile-mem.c: Update.
9153 * symmisc.c: Update.
9154 * target.c: Update.
9155 * thread.c: Update.
9156 * top.c: Update.
9157 * tracefile-tfile.c: Update.
9158 * tui/tui.c: Update.
9159 * typeprint.c: Update.
9160 * unittests/cli-utils-selftests.c: Update.
9161 * unittests/parse-connection-spec-selftests.c: Update.
9162 * valops.c: Update.
9163 * valprint.c: Update.
9164 * value.c: Update.
9165 * varobj.c: Update.
9166 * windows-nat.c: Update.
9167 * x86-linux-nat.c: Update.
9168 * xml-support.c: Update.
9169
a70b8144
TT
91702019-04-08 Tom Tromey <tom@tromey.com>
9171
9172 * xml-support.c: Use C++ exception handling.
9173 * x86-linux-nat.c: Use C++ exception handling.
9174 * windows-nat.c: Use C++ exception handling.
9175 * varobj.c: Use C++ exception handling.
9176 * value.c: Use C++ exception handling.
9177 * valprint.c: Use C++ exception handling.
9178 * valops.c: Use C++ exception handling.
9179 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9180 handling.
9181 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9182 * typeprint.c: Use C++ exception handling.
9183 * tui/tui.c: Use C++ exception handling.
9184 * tracefile-tfile.c: Use C++ exception handling.
9185 * top.c: Use C++ exception handling.
9186 * thread.c: Use C++ exception handling.
9187 * target.c: Use C++ exception handling.
9188 * symmisc.c: Use C++ exception handling.
9189 * symfile-mem.c: Use C++ exception handling.
9190 * stack.c: Use C++ exception handling.
9191 * sparc64-linux-tdep.c: Use C++ exception handling.
9192 * solib.c: Use C++ exception handling.
9193 * solib-svr4.c: Use C++ exception handling.
9194 * solib-spu.c: Use C++ exception handling.
9195 * solib-frv.c: Use C++ exception handling.
9196 * solib-dsbt.c: Use C++ exception handling.
9197 * selftest-arch.c: Use C++ exception handling.
9198 * s390-tdep.c: Use C++ exception handling.
9199 * rust-lang.c: Use C++ exception handling.
9200 * rust-exp.y: Use C++ exception handling.
9201 * rs6000-tdep.c: Use C++ exception handling.
9202 * rs6000-aix-tdep.c: Use C++ exception handling.
9203 * riscv-tdep.c: Use C++ exception handling.
9204 * remote.c: Use C++ exception handling.
9205 * remote-fileio.c: Use C++ exception handling.
9206 * record-full.c: Use C++ exception handling.
9207 * record-btrace.c: Use C++ exception handling.
9208 * python/python.c: Use C++ exception handling.
9209 * python/py-value.c: Use C++ exception handling.
9210 * python/py-utils.c: Use C++ exception handling.
9211 * python/py-unwind.c: Use C++ exception handling.
9212 * python/py-type.c: Use C++ exception handling.
9213 * python/py-symbol.c: Use C++ exception handling.
9214 * python/py-record.c: Use C++ exception handling.
9215 * python/py-record-btrace.c: Use C++ exception handling.
9216 * python/py-progspace.c: Use C++ exception handling.
9217 * python/py-prettyprint.c: Use C++ exception handling.
9218 * python/py-param.c: Use C++ exception handling.
9219 * python/py-objfile.c: Use C++ exception handling.
9220 * python/py-linetable.c: Use C++ exception handling.
9221 * python/py-lazy-string.c: Use C++ exception handling.
9222 * python/py-infthread.c: Use C++ exception handling.
9223 * python/py-inferior.c: Use C++ exception handling.
9224 * python/py-gdb-readline.c: Use C++ exception handling.
9225 * python/py-framefilter.c: Use C++ exception handling.
9226 * python/py-frame.c: Use C++ exception handling.
9227 * python/py-finishbreakpoint.c: Use C++ exception handling.
9228 * python/py-cmd.c: Use C++ exception handling.
9229 * python/py-breakpoint.c: Use C++ exception handling.
9230 * python/py-arch.c: Use C++ exception handling.
9231 * printcmd.c: Use C++ exception handling.
9232 * ppc-linux-tdep.c: Use C++ exception handling.
9233 * parse.c: Use C++ exception handling.
9234 * p-valprint.c: Use C++ exception handling.
9235 * objc-lang.c: Use C++ exception handling.
9236 * mi/mi-main.c: Use C++ exception handling.
9237 * mi/mi-interp.c: Use C++ exception handling.
9238 * mi/mi-cmd-stack.c: Use C++ exception handling.
9239 * mi/mi-cmd-break.c: Use C++ exception handling.
9240 * main.c: Use C++ exception handling.
9241 * linux-thread-db.c: Use C++ exception handling.
9242 * linux-tdep.c: Use C++ exception handling.
9243 * linux-nat.c: Use C++ exception handling.
9244 * linux-fork.c: Use C++ exception handling.
9245 * linespec.c: Use C++ exception handling.
9246 * language.c: Use C++ exception handling.
9247 * jit.c: Use C++ exception handling.
9248 * infrun.c: Use C++ exception handling.
9249 * infcmd.c: Use C++ exception handling.
9250 * infcall.c: Use C++ exception handling.
9251 * inf-loop.c: Use C++ exception handling.
9252 * i386-tdep.c: Use C++ exception handling.
9253 * i386-linux-tdep.c: Use C++ exception handling.
9254 * guile/scm-value.c: Use C++ exception handling.
9255 * guile/scm-type.c: Use C++ exception handling.
9256 * guile/scm-symtab.c: Use C++ exception handling.
9257 * guile/scm-symbol.c: Use C++ exception handling.
9258 * guile/scm-pretty-print.c: Use C++ exception handling.
9259 * guile/scm-ports.c: Use C++ exception handling.
9260 * guile/scm-param.c: Use C++ exception handling.
9261 * guile/scm-math.c: Use C++ exception handling.
9262 * guile/scm-lazy-string.c: Use C++ exception handling.
9263 * guile/scm-frame.c: Use C++ exception handling.
9264 * guile/scm-disasm.c: Use C++ exception handling.
9265 * guile/scm-cmd.c: Use C++ exception handling.
9266 * guile/scm-breakpoint.c: Use C++ exception handling.
9267 * guile/scm-block.c: Use C++ exception handling.
9268 * guile/guile-internal.h: Use C++ exception handling.
9269 * gnu-v3-abi.c: Use C++ exception handling.
9270 * gdbtypes.c: Use C++ exception handling.
9271 * frame.c: Use C++ exception handling.
9272 * frame-unwind.c: Use C++ exception handling.
9273 * fbsd-tdep.c: Use C++ exception handling.
9274 * f-valprint.c: Use C++ exception handling.
9275 * exec.c: Use C++ exception handling.
9276 * event-top.c: Use C++ exception handling.
9277 * event-loop.c: Use C++ exception handling.
9278 * eval.c: Use C++ exception handling.
9279 * dwarf2read.c: Use C++ exception handling.
9280 * dwarf2loc.c: Use C++ exception handling.
9281 * dwarf2-frame.c: Use C++ exception handling.
9282 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9283 * dwarf-index-write.c: Use C++ exception handling.
9284 * dwarf-index-cache.c: Use C++ exception handling.
9285 * dtrace-probe.c: Use C++ exception handling.
9286 * disasm-selftests.c: Use C++ exception handling.
9287 * darwin-nat.c: Use C++ exception handling.
9288 * cp-valprint.c: Use C++ exception handling.
9289 * cp-support.c: Use C++ exception handling.
9290 * cp-abi.c: Use C++ exception handling.
9291 * corelow.c: Use C++ exception handling.
9292 * completer.c: Use C++ exception handling.
9293 * compile/compile-object-run.c: Use C++ exception handling.
9294 * compile/compile-object-load.c: Use C++ exception handling.
9295 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9296 * compile/compile-c-symbols.c: Use C++ exception handling.
9297 * common/selftest.c: Use C++ exception handling.
9298 * common/new-op.c: Use C++ exception handling.
9299 * cli/cli-script.c: Use C++ exception handling.
9300 * cli/cli-interp.c: Use C++ exception handling.
9301 * cli/cli-cmds.c: Use C++ exception handling.
9302 * c-varobj.c: Use C++ exception handling.
9303 * btrace.c: Use C++ exception handling.
9304 * breakpoint.c: Use C++ exception handling.
9305 * break-catch-throw.c: Use C++ exception handling.
9306 * arch-utils.c: Use C++ exception handling.
9307 * amd64-tdep.c: Use C++ exception handling.
9308 * ada-valprint.c: Use C++ exception handling.
9309 * ada-typeprint.c: Use C++ exception handling.
9310 * ada-lang.c: Use C++ exception handling.
9311 * aarch64-tdep.c: Use C++ exception handling.
9312
3d6e9d23
TT
93132019-04-08 Tom Tromey <tom@tromey.com>
9314
9315 * xml-support.c (gdb_xml_parser::parse): Update.
9316 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9317 * value.c (show_convenience): Update.
9318 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9319 (test_parse_flags_qcs): Update.
9320 * thread.c (thr_try_catch_cmd): Update.
9321 * target.c (target_translate_tls_address): Update.
9322 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9323 (info_frame_command_core, frame_apply_command_count): Update.
9324 * rust-exp.y (rust_lex_exception_test): Update.
9325 * riscv-tdep.c (riscv_print_one_register_info): Update.
9326 * remote.c (remote_target::enable_btrace): Update.
9327 * record-btrace.c (record_btrace_enable_warn): Update.
9328 * python/py-utils.c (gdbpy_convert_exception): Update.
9329 * printcmd.c (do_one_display, print_variable_and_value): Update.
9330 * mi/mi-main.c (mi_print_exception): Update.
9331 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9332 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9333 * linux-nat.c (linux_nat_target::attach): Update.
9334 * linux-fork.c (class scoped_switch_fork_info): Update.
9335 * infrun.c (displaced_step_prepare): Update.
9336 * infcall.c (call_function_by_hand_dummy): Update.
9337 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9338 * gnu-v3-abi.c (print_one_vtable): Update.
9339 * frame.c (get_prev_frame_always): Update.
9340 * f-valprint.c (info_common_command_for_block): Update.
9341 * exec.c (try_open_exec_file): Update.
9342 * exceptions.c (print_exception, exception_print)
9343 (exception_fprintf, exception_print_same): Update.
9344 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9345 * dwarf-index-cache.c (index_cache::store)
9346 (index_cache::lookup_gdb_index): Update.
9347 * darwin-nat.c (maybe_cache_shell): Update.
9348 * cp-valprint.c (cp_print_value_fields): Update.
9349 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9350 (gcc_cplus_symbol_address): Update.
9351 * compile/compile-c-symbols.c (gcc_convert_symbol)
9352 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9353 * common/selftest.c: Update.
9354 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9355 a std::string.
9356 (exception_try_scope_entry, exception_try_scope_exit): Don't
9357 declare.
9358 (struct exception_try_scope): Remove.
9359 (TRY): Don't use exception_try_scope.
9360 (struct gdb_exception): Add constructor, operator=.
9361 <what>: New method.
9362 (struct gdb_exception_RETURN_MASK_ALL)
9363 (struct gdb_exception_RETURN_MASK_ERROR)
9364 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9365 (struct gdb_quit_bad_alloc): Update.
9366 * common/common-exceptions.c (exception_none): Change
9367 initializer.
9368 (struct catcher) <state, exception>: Initialize inline.
9369 <prev>: Remove member.
9370 (current_catcher): Remove.
9371 (catchers): New global.
9372 (exceptions_state_mc_init): Simplify.
9373 (catcher_pop): Remove.
9374 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9375 (try_scope_depth, exception_try_scope_entry)
9376 (exception_try_scope_exit): Remove.
9377 (throw_exception_sjlj): Update.
9378 (exception_messages, exception_messages_size): Remove.
9379 (throw_it): Simplify.
9380 (gdb_exception_sliced_copy): Remove.
9381 (throw_exception_cxx): Update.
9382 * cli/cli-script.c (script_from_file): Update.
9383 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9384 Update.
9385 * ada-valprint.c (ada_val_print): Update.
9386 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9387 (create_excep_cond_exprs): Update.
9388
c5c10118
TT
93892019-04-08 Tom Tromey <tom@tromey.com>
9390
9391 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9392 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9393 (TRY, CATCH, END_CATCH): Remove some definitions.
9394 * common/common-exceptions.c: Don't use GDB_XCPT.
9395 (catcher_list_size): Remove.
9396 (throw_exception, throw_it): Simplify.
9397
4de283e4
TT
93982019-04-05 Tom Tromey <tom@tromey.com>
9399
9400 Revert the header-sorting patch.
9401 * ft32-tdep.c: Revert.
9402 * frv-tdep.c: Revert.
9403 * frv-linux-tdep.c: Revert.
9404 * frame.c: Revert.
9405 * frame-unwind.c: Revert.
9406 * frame-base.c: Revert.
9407 * fork-child.c: Revert.
9408 * findvar.c: Revert.
9409 * findcmd.c: Revert.
9410 * filesystem.c: Revert.
9411 * filename-seen-cache.h: Revert.
9412 * filename-seen-cache.c: Revert.
9413 * fbsd-tdep.c: Revert.
9414 * fbsd-nat.h: Revert.
9415 * fbsd-nat.c: Revert.
9416 * f-valprint.c: Revert.
9417 * f-typeprint.c: Revert.
9418 * f-lang.c: Revert.
9419 * extension.h: Revert.
9420 * extension.c: Revert.
9421 * extension-priv.h: Revert.
9422 * expprint.c: Revert.
9423 * exec.h: Revert.
9424 * exec.c: Revert.
9425 * exceptions.c: Revert.
9426 * event-top.c: Revert.
9427 * event-loop.c: Revert.
9428 * eval.c: Revert.
9429 * elfread.c: Revert.
9430 * dwarf2read.h: Revert.
9431 * dwarf2read.c: Revert.
9432 * dwarf2loc.c: Revert.
9433 * dwarf2expr.h: Revert.
9434 * dwarf2expr.c: Revert.
9435 * dwarf2-frame.c: Revert.
9436 * dwarf2-frame-tailcall.c: Revert.
9437 * dwarf-index-write.h: Revert.
9438 * dwarf-index-write.c: Revert.
9439 * dwarf-index-common.c: Revert.
9440 * dwarf-index-cache.h: Revert.
9441 * dwarf-index-cache.c: Revert.
9442 * dummy-frame.c: Revert.
9443 * dtrace-probe.c: Revert.
9444 * disasm.h: Revert.
9445 * disasm.c: Revert.
9446 * disasm-selftests.c: Revert.
9447 * dictionary.c: Revert.
9448 * dicos-tdep.c: Revert.
9449 * demangle.c: Revert.
9450 * dcache.h: Revert.
9451 * dcache.c: Revert.
9452 * darwin-nat.h: Revert.
9453 * darwin-nat.c: Revert.
9454 * darwin-nat-info.c: Revert.
9455 * d-valprint.c: Revert.
9456 * d-namespace.c: Revert.
9457 * d-lang.c: Revert.
9458 * ctf.c: Revert.
9459 * csky-tdep.c: Revert.
9460 * csky-linux-tdep.c: Revert.
9461 * cris-tdep.c: Revert.
9462 * cris-linux-tdep.c: Revert.
9463 * cp-valprint.c: Revert.
9464 * cp-support.c: Revert.
9465 * cp-namespace.c: Revert.
9466 * cp-abi.c: Revert.
9467 * corelow.c: Revert.
9468 * corefile.c: Revert.
9469 * continuations.c: Revert.
9470 * completer.h: Revert.
9471 * completer.c: Revert.
9472 * complaints.c: Revert.
9473 * coffread.c: Revert.
9474 * coff-pe-read.c: Revert.
9475 * cli-out.h: Revert.
9476 * cli-out.c: Revert.
9477 * charset.c: Revert.
9478 * c-varobj.c: Revert.
9479 * c-valprint.c: Revert.
9480 * c-typeprint.c: Revert.
9481 * c-lang.c: Revert.
9482 * buildsym.c: Revert.
9483 * buildsym-legacy.c: Revert.
9484 * build-id.h: Revert.
9485 * build-id.c: Revert.
9486 * btrace.c: Revert.
9487 * bsd-uthread.c: Revert.
9488 * breakpoint.h: Revert.
9489 * breakpoint.c: Revert.
9490 * break-catch-throw.c: Revert.
9491 * break-catch-syscall.c: Revert.
9492 * break-catch-sig.c: Revert.
9493 * blockframe.c: Revert.
9494 * block.c: Revert.
9495 * bfin-tdep.c: Revert.
9496 * bfin-linux-tdep.c: Revert.
9497 * bfd-target.c: Revert.
9498 * bcache.c: Revert.
9499 * ax-general.c: Revert.
9500 * ax-gdb.h: Revert.
9501 * ax-gdb.c: Revert.
9502 * avr-tdep.c: Revert.
9503 * auxv.c: Revert.
9504 * auto-load.c: Revert.
9505 * arm-wince-tdep.c: Revert.
9506 * arm-tdep.c: Revert.
9507 * arm-symbian-tdep.c: Revert.
9508 * arm-pikeos-tdep.c: Revert.
9509 * arm-obsd-tdep.c: Revert.
9510 * arm-nbsd-tdep.c: Revert.
9511 * arm-nbsd-nat.c: Revert.
9512 * arm-linux-tdep.c: Revert.
9513 * arm-linux-nat.c: Revert.
9514 * arm-fbsd-tdep.c: Revert.
9515 * arm-fbsd-nat.c: Revert.
9516 * arm-bsd-tdep.c: Revert.
9517 * arch-utils.c: Revert.
9518 * arc-tdep.c: Revert.
9519 * arc-newlib-tdep.c: Revert.
9520 * annotate.h: Revert.
9521 * annotate.c: Revert.
9522 * amd64-windows-tdep.c: Revert.
9523 * amd64-windows-nat.c: Revert.
9524 * amd64-tdep.c: Revert.
9525 * amd64-sol2-tdep.c: Revert.
9526 * amd64-obsd-tdep.c: Revert.
9527 * amd64-obsd-nat.c: Revert.
9528 * amd64-nbsd-tdep.c: Revert.
9529 * amd64-nbsd-nat.c: Revert.
9530 * amd64-nat.c: Revert.
9531 * amd64-linux-tdep.c: Revert.
9532 * amd64-linux-nat.c: Revert.
9533 * amd64-fbsd-tdep.c: Revert.
9534 * amd64-fbsd-nat.c: Revert.
9535 * amd64-dicos-tdep.c: Revert.
9536 * amd64-darwin-tdep.c: Revert.
9537 * amd64-bsd-nat.c: Revert.
9538 * alpha-tdep.c: Revert.
9539 * alpha-obsd-tdep.c: Revert.
9540 * alpha-nbsd-tdep.c: Revert.
9541 * alpha-mdebug-tdep.c: Revert.
9542 * alpha-linux-tdep.c: Revert.
9543 * alpha-linux-nat.c: Revert.
9544 * alpha-bsd-tdep.c: Revert.
9545 * alpha-bsd-nat.c: Revert.
9546 * aix-thread.c: Revert.
9547 * agent.c: Revert.
9548 * addrmap.c: Revert.
9549 * ada-varobj.c: Revert.
9550 * ada-valprint.c: Revert.
9551 * ada-typeprint.c: Revert.
9552 * ada-tasks.c: Revert.
9553 * ada-lang.c: Revert.
9554 * aarch64-tdep.c: Revert.
9555 * aarch64-ravenscar-thread.c: Revert.
9556 * aarch64-newlib-tdep.c: Revert.
9557 * aarch64-linux-tdep.c: Revert.
9558 * aarch64-linux-nat.c: Revert.
9559 * aarch64-fbsd-tdep.c: Revert.
9560 * aarch64-fbsd-nat.c: Revert.
9561 * aarch32-linux-nat.c: Revert.
9562
d55e5aa6
TT
95632019-04-05 Tom Tromey <tom@tromey.com>
9564
9565 * ft32-tdep.c: Sort headers.
9566 * frv-tdep.c: Sort headers.
9567 * frv-linux-tdep.c: Sort headers.
9568 * frame.c: Sort headers.
9569 * frame-unwind.c: Sort headers.
9570 * frame-base.c: Sort headers.
9571 * fork-child.c: Sort headers.
9572 * findvar.c: Sort headers.
9573 * findcmd.c: Sort headers.
9574 * filesystem.c: Sort headers.
9575 * filename-seen-cache.h: Sort headers.
9576 * filename-seen-cache.c: Sort headers.
9577 * fbsd-tdep.c: Sort headers.
9578 * fbsd-nat.h: Sort headers.
9579 * fbsd-nat.c: Sort headers.
9580 * f-valprint.c: Sort headers.
9581 * f-typeprint.c: Sort headers.
9582 * f-lang.c: Sort headers.
9583 * extension.h: Sort headers.
9584 * extension.c: Sort headers.
9585 * extension-priv.h: Sort headers.
9586 * expprint.c: Sort headers.
9587 * exec.h: Sort headers.
9588 * exec.c: Sort headers.
9589 * exceptions.c: Sort headers.
9590 * event-top.c: Sort headers.
9591 * event-loop.c: Sort headers.
9592 * eval.c: Sort headers.
9593 * elfread.c: Sort headers.
9594 * dwarf2read.h: Sort headers.
9595 * dwarf2read.c: Sort headers.
9596 * dwarf2loc.c: Sort headers.
9597 * dwarf2expr.h: Sort headers.
9598 * dwarf2expr.c: Sort headers.
9599 * dwarf2-frame.c: Sort headers.
9600 * dwarf2-frame-tailcall.c: Sort headers.
9601 * dwarf-index-write.h: Sort headers.
9602 * dwarf-index-write.c: Sort headers.
9603 * dwarf-index-common.c: Sort headers.
9604 * dwarf-index-cache.h: Sort headers.
9605 * dwarf-index-cache.c: Sort headers.
9606 * dummy-frame.c: Sort headers.
9607 * dtrace-probe.c: Sort headers.
9608 * disasm.h: Sort headers.
9609 * disasm.c: Sort headers.
9610 * disasm-selftests.c: Sort headers.
9611 * dictionary.c: Sort headers.
9612 * dicos-tdep.c: Sort headers.
9613 * demangle.c: Sort headers.
9614 * dcache.h: Sort headers.
9615 * dcache.c: Sort headers.
9616 * darwin-nat.h: Sort headers.
9617 * darwin-nat.c: Sort headers.
9618 * darwin-nat-info.c: Sort headers.
9619 * d-valprint.c: Sort headers.
9620 * d-namespace.c: Sort headers.
9621 * d-lang.c: Sort headers.
9622 * ctf.c: Sort headers.
9623 * csky-tdep.c: Sort headers.
9624 * csky-linux-tdep.c: Sort headers.
9625 * cris-tdep.c: Sort headers.
9626 * cris-linux-tdep.c: Sort headers.
9627 * cp-valprint.c: Sort headers.
9628 * cp-support.c: Sort headers.
9629 * cp-namespace.c: Sort headers.
9630 * cp-abi.c: Sort headers.
9631 * corelow.c: Sort headers.
9632 * corefile.c: Sort headers.
9633 * continuations.c: Sort headers.
9634 * completer.h: Sort headers.
9635 * completer.c: Sort headers.
9636 * complaints.c: Sort headers.
9637 * coffread.c: Sort headers.
9638 * coff-pe-read.c: Sort headers.
9639 * cli-out.h: Sort headers.
9640 * cli-out.c: Sort headers.
9641 * charset.c: Sort headers.
9642 * c-varobj.c: Sort headers.
9643 * c-valprint.c: Sort headers.
9644 * c-typeprint.c: Sort headers.
9645 * c-lang.c: Sort headers.
9646 * buildsym.c: Sort headers.
9647 * buildsym-legacy.c: Sort headers.
9648 * build-id.h: Sort headers.
9649 * build-id.c: Sort headers.
9650 * btrace.c: Sort headers.
9651 * bsd-uthread.c: Sort headers.
9652 * breakpoint.h: Sort headers.
9653 * breakpoint.c: Sort headers.
9654 * break-catch-throw.c: Sort headers.
9655 * break-catch-syscall.c: Sort headers.
9656 * break-catch-sig.c: Sort headers.
9657 * blockframe.c: Sort headers.
9658 * block.c: Sort headers.
9659 * bfin-tdep.c: Sort headers.
9660 * bfin-linux-tdep.c: Sort headers.
9661 * bfd-target.c: Sort headers.
9662 * bcache.c: Sort headers.
9663 * ax-general.c: Sort headers.
9664 * ax-gdb.h: Sort headers.
9665 * ax-gdb.c: Sort headers.
9666 * avr-tdep.c: Sort headers.
9667 * auxv.c: Sort headers.
9668 * auto-load.c: Sort headers.
9669 * arm-wince-tdep.c: Sort headers.
9670 * arm-tdep.c: Sort headers.
9671 * arm-symbian-tdep.c: Sort headers.
9672 * arm-pikeos-tdep.c: Sort headers.
9673 * arm-obsd-tdep.c: Sort headers.
9674 * arm-nbsd-tdep.c: Sort headers.
9675 * arm-nbsd-nat.c: Sort headers.
9676 * arm-linux-tdep.c: Sort headers.
9677 * arm-linux-nat.c: Sort headers.
9678 * arm-fbsd-tdep.c: Sort headers.
9679 * arm-fbsd-nat.c: Sort headers.
9680 * arm-bsd-tdep.c: Sort headers.
9681 * arch-utils.c: Sort headers.
9682 * arc-tdep.c: Sort headers.
9683 * arc-newlib-tdep.c: Sort headers.
9684 * annotate.h: Sort headers.
9685 * annotate.c: Sort headers.
9686 * amd64-windows-tdep.c: Sort headers.
9687 * amd64-windows-nat.c: Sort headers.
9688 * amd64-tdep.c: Sort headers.
9689 * amd64-sol2-tdep.c: Sort headers.
9690 * amd64-obsd-tdep.c: Sort headers.
9691 * amd64-obsd-nat.c: Sort headers.
9692 * amd64-nbsd-tdep.c: Sort headers.
9693 * amd64-nbsd-nat.c: Sort headers.
9694 * amd64-nat.c: Sort headers.
9695 * amd64-linux-tdep.c: Sort headers.
9696 * amd64-linux-nat.c: Sort headers.
9697 * amd64-fbsd-tdep.c: Sort headers.
9698 * amd64-fbsd-nat.c: Sort headers.
9699 * amd64-dicos-tdep.c: Sort headers.
9700 * amd64-darwin-tdep.c: Sort headers.
9701 * amd64-bsd-nat.c: Sort headers.
9702 * alpha-tdep.c: Sort headers.
9703 * alpha-obsd-tdep.c: Sort headers.
9704 * alpha-nbsd-tdep.c: Sort headers.
9705 * alpha-mdebug-tdep.c: Sort headers.
9706 * alpha-linux-tdep.c: Sort headers.
9707 * alpha-linux-nat.c: Sort headers.
9708 * alpha-bsd-tdep.c: Sort headers.
9709 * alpha-bsd-nat.c: Sort headers.
9710 * aix-thread.c: Sort headers.
9711 * agent.c: Sort headers.
9712 * addrmap.c: Sort headers.
9713 * ada-varobj.c: Sort headers.
9714 * ada-valprint.c: Sort headers.
9715 * ada-typeprint.c: Sort headers.
9716 * ada-tasks.c: Sort headers.
9717 * ada-lang.c: Sort headers.
9718 * aarch64-tdep.c: Sort headers.
9719 * aarch64-ravenscar-thread.c: Sort headers.
9720 * aarch64-newlib-tdep.c: Sort headers.
9721 * aarch64-linux-tdep.c: Sort headers.
9722 * aarch64-linux-nat.c: Sort headers.
9723 * aarch64-fbsd-tdep.c: Sort headers.
9724 * aarch64-fbsd-nat.c: Sort headers.
9725 * aarch32-linux-nat.c: Sort headers.
9726
699bd4cf
TT
97272019-04-04 Tom Tromey <tom@tromey.com>
9728
9729 * varobj.c (varobj_create): Update.
9730 * rust-exp.y (struct rust_parser) <update_innermost_block,
9731 lookup_symbol>: New methods.
9732 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9733 Rename.
9734 (rust_parser::rust_lookup_type)
9735 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9736 * printcmd.c (display_command, do_one_display): Update.
9737 * parser-defs.h (struct parser_state) <parser_state>: Add
9738 "tracker" parameter.
9739 (block_tracker): New member.
9740 (class innermost_block_tracker) <innermost_block_tracker>: Add
9741 "types" parameter.
9742 <reset>: Remove method.
9743 (innermost_block): Don't declare.
9744 (null_post_parser): Update.
9745 * parse.c (innermost_block): Remove global.
9746 (write_dollar_variable): Update.
9747 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9748 Remove "tracker_types" parameter.
9749 (parse_expression): Add "tracker" parameter.
9750 (parse_expression_for_completion): Update.
9751 (null_post_parser): Add "tracker" parameter.
9752 * p-exp.y: Update rules.
9753 * m2-exp.y: Update rules.
9754 * language.h (struct language_defn) <la_post_parser>: Add
9755 "tracker" parameter.
9756 * go-exp.y: Update rules.
9757 * f-exp.y: Update rules.
9758 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9759 parameter.
9760 * d-exp.y: Update rules.
9761 * c-exp.y: Update rules.
9762 * breakpoint.c (set_breakpoint_condition): Create an
9763 innermost_block_tracker.
9764 (watch_command_1): Likewise.
9765 * ada-lang.c (resolve): Add "tracker" parameter.
9766 (resolve_subexp): Likewise.
9767 * ada-exp.y (write_var_from_sym): Update.
9768
dac43e32
TT
97692019-04-04 Tom Tromey <tom@tromey.com>
9770
9771 * type-stack.h: New file.
9772 * type-stack.c: New file.
9773 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9774 type-stack.h.
9775 (insert_into_type_stack, insert_type, push_type, push_type_int)
9776 (insert_type_address_space, pop_type, pop_type_int)
9777 (pop_typelist, pop_type_stack, append_type_stack)
9778 (push_type_stack, get_type_stack, push_typelist)
9779 (follow_type_instance_flags, follow_types): Don't declare.
9780 * parse.c (type_stack): Remove global.
9781 (parse_exp_in_context): Update.
9782 (insert_into_type_stack, insert_type, push_type, push_type_int)
9783 (insert_type_address_space, pop_type, pop_type_int)
9784 (pop_typelist, pop_type_stack, append_type_stack)
9785 (push_type_stack, get_type_stack, push_typelist)
9786 (follow_type_instance_flags, follow_types): Remove (moved to
9787 type-stack.c).
9788 * f-exp.y (type_stack): New global.
9789 Update rules.
9790 (push_kind_type, f_parse): Update.
9791 * d-exp.y (type_stack): New global.
9792 Update rules.
9793 (d_parse): Update.
9794 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9795 Update rules.
9796 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9797 (HFILES_NO_SRCDIR): Add type-stack.h.
9798
2a612529
TT
97992019-04-04 Tom Tromey <tom@tromey.com>
9800
9801 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9802 (rust_parser::convert_ast_to_expression, rust_parse)
9803 (rust_lex_test_completion, rust_lex_tests): Update.
9804 * parser-defs.h (struct expr_completion_state): New.
9805 (struct parser_state) <parser_state>: Add completion parameter.
9806 <mark_struct_expression, mark_completion_tag>: New methods.
9807 <parse_completion, m_completion_state>: New members.
9808 (prefixify_expression, null_post_parser): Update.
9809 (mark_struct_expression, mark_completion_tag): Don't declare.
9810 * parse.c (parse_completion, expout_last_struct)
9811 (expout_tag_completion_type, expout_completion_name): Remove
9812 globals.
9813 (parser_state::mark_struct_expression)
9814 (parser_state::mark_completion_tag): Now methods.
9815 (prefixify_expression): Add last_struct parameter.
9816 (prefixify_subexp): Likewise.
9817 (parse_exp_1): Update.
9818 (parse_exp_in_context): Add cstate parameter. Update.
9819 (parse_expression_for_completion): Create an
9820 expr_completion_state.
9821 (null_post_parser): Add "completion" parameter.
9822 * p-exp.y: Update rules.
9823 (yylex): Update.
9824 * language.h (struct language_defn) <la_post_parser>: Add
9825 "completing" parameter.
9826 * go-exp.y: Update rules.
9827 (lex_one_token): Update.
9828 * expression.h (parse_completion): Don't declare.
9829 * d-exp.y: Update rules.
9830 (lex_one_token): Update rules.
9831 * c-exp.y: Update rules.
9832 (lex_one_token): Update.
9833 * ada-lang.c (resolve): Add "parse_completion" parameter.
9834 (resolve_subexp): Likewise.
9835 (ada_resolve_function): Likewise.
9836
43476f0b
TT
98372019-04-04 Tom Tromey <tom@tromey.com>
9838
9839 * parser-defs.h (struct parser_state) <start_arglist,
9840 end_arglist>: New methods.
9841 <arglist_len, m_funcall_chain>: New members.
9842 (arglist_len, start_arglist, end_arglist): Don't declare.
9843 * parse.c (arglist_len, funcall_chain): Remove global.
9844 (start_arglist, end_arglist): Remove functions.
9845 (parse_exp_in_context): Update.
9846 * p-exp.y: Update rules.
9847 * m2-exp.y: Update rules.
9848 * go-exp.y: Update rules.
9849 * f-exp.y: Update rules.
9850 * d-exp.y: Update rules.
9851 * c-exp.y: Update rules.
9852
5776fca3
TT
98532019-04-04 Tom Tromey <tom@tromey.com>
9854
9855 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9856 lex_operator, push_back>: New methods.
9857 Update all rules.
9858 (rust_parser::lex_hex, lex_escape): Rename and update.
9859 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9860 (rust_parser::lex_operator): Rename and update.
9861 (rust_parser::lex_number, rustyylex, rustyyerror)
9862 (rust_lex_test_init, rust_lex_test_sequence)
9863 (rust_lex_test_push_back, rust_lex_tests): Update.
9864 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9865 parameter.
9866 <lexptr, prev_lexptr>: New members.
9867 (lexptr, prev_lexptr): Don't declare.
9868 * parse.c (lexptr, prev_lexptr): Remove globals.
9869 (parse_exp_in_context): Update.
9870 * p-exp.y (yylex, yyerror): Update.
9871 * m2-exp.y (parse_number, yylex, yyerror): Update.
9872 * go-exp.y (lex_one_token, yyerror): Update.
9873 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9874 * d-exp.y (lex_one_token, yyerror): Update.
9875 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9876 (lex_one_token, yyerror): Update.
9877 * ada-lex.l (YY_INPUT): Update.
9878 (rewind_to_char): Update.
9879 * ada-exp.y (yyerror): Update.
9880
8621b685
TT
98812019-04-04 Tom Tromey <tom@tromey.com>
9882
9883 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9884 * parser-defs.h (struct parser_state) <parser_state>: Add new
9885 parameter.
9886 <comma_terminates>: New member.
9887 (comma_terminates): Don't declare global.
9888 * parse.c (comma_terminates): Remove global.
9889 (parse_exp_in_context): Update.
9890 * p-exp.y (yylex): Update.
9891 * m2-exp.y (yylex): Update.
9892 * go-exp.y (lex_one_token): Update.
9893 * f-exp.y (yylex): Update.
9894 * d-exp.y (lex_one_token): Update.
9895 * c-exp.y (lex_one_token): Update.
9896 * ada-lex.l: Update.
9897
28aaf3fd
TT
98982019-04-04 Tom Tromey <tom@tromey.com>
9899
9900 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9901 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9902 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9903 * parser-defs.h (paren_depth): Don't declare.
9904 * parse.c (paren_depth): Remove global.
9905 (parse_exp_in_context): Update.
9906 * p-exp.y (paren_depth): New global.
9907 (pascal_parse): Initialize it.
9908 * m2-exp.y (paren_depth): New global.
9909 (m2_parse): Initialize it.
9910 * go-exp.y (paren_depth): New global.
9911 (go_parse): Initialize it.
9912 * f-exp.y (paren_depth): New global.
9913 (f_parse): Initialize it.
9914 * d-exp.y (paren_depth): New global.
9915 (d_parse): Initialize it.
9916 * c-exp.y (paren_depth): New global.
9917 (c_parse): Initialize it.
9918 * ada-lex.l (paren_depth): New global.
9919 (lexer_init): Initialize it.
9920
1e58a4a4
TT
99212019-04-04 Tom Tromey <tom@tromey.com>
9922
9923 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9924 (rust_parser::convert_ast_to_type)
9925 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9926 * parser-defs.h (struct parser_state) <parser_state>: Add
9927 parameters. Initialize new members.
9928 <expression_context_block, expression_context_pc>: New members.
9929 * parse.c (expression_context_block, expression_context_pc):
9930 Remove globals.
9931 (parse_exp_in_context): Update.
9932 * p-exp.y: Update all rules.
9933 (yylex): Update.
9934 * m2-exp.y: Update all rules.
9935 (yylex): Update.
9936 * go-exp.y (yylex): Update.
9937 * f-exp.y (yylex): Update.
9938 * d-exp.y: Update all rules.
9939 (yylex): Update.
9940 * c-exp.y: Update all rules.
9941 (lex_one_token, classify_name, yylex, c_parse): Update.
9942 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9943
37eedb39
TT
99442019-04-04 Tom Tromey <tom@tromey.com>
9945
9946 * gdbarch.h, gdbarch.c: Rebuild.
9947 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9948 * stap-probe.h:
9949 (struct stap_parse_info): Replace "parser_state" with
9950 "expr_builder".
9951 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9952 (parser_state): New class.
9953 * parse.c (expr_builder): Rename.
9954 (expr_builder::release): Rename.
9955 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9956 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9957 (write_exp_elt_longcst, write_exp_elt_floatcst)
9958 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9959 (write_exp_string_vector, write_exp_bitstring)
9960 (write_exp_msymbol, mark_struct_expression)
9961 (write_dollar_variable)
9962 (insert_type_address_space, increase_expout_size): Replace
9963 "parser_state" with "expr_builder".
9964 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9965 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9966 "parser_state" with "expr_builder".
9967
73923d7e
TT
99682019-04-04 Tom Tromey <tom@tromey.com>
9969
9970 * rust-exp.y: Replace "parse_language" with method call.
9971 * p-exp.y:
9972 (yylex): Replace "parse_language" with method call.
9973 * m2-exp.y:
9974 (yylex): Replace "parse_language" with method call.
9975 * go-exp.y (classify_name): Replace "parse_language" with method
9976 call.
9977 * f-exp.y (yylex): Replace "parse_language" with method call.
9978 * d-exp.y (lex_one_token): Replace "parse_language" with method
9979 call.
9980 * c-exp.y:
9981 (lex_one_token, classify_name, yylex): Replace "parse_language"
9982 with method call.
9983 * ada-exp.y (find_primitive_type, type_char)
9984 (type_system_address): Replace "parse_language" with method call.
9985
fa9f5be6
TT
99862019-04-04 Tom Tromey <tom@tromey.com>
9987
9988 * rust-exp.y: Replace "parse_gdbarch" with method call.
9989 * parse.c (write_dollar_variable, insert_type_address_space):
9990 Replace "parse_gdbarch" with method call.
9991 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9992 call.
9993 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9994 call.
9995 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9996 "parse_gdbarch" with method call.
9997 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9998 with method call.
9999 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10000 "parse_gdbarch" with method call.
10001 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10002 "parse_gdbarch" with method call.
10003 * c-exp.y (parse_type, parse_number, classify_name): Replace
10004 "parse_gdbarch" with method call.
10005 * ada-lex.l: Replace "parse_gdbarch" with method call.
10006 * ada-exp.y (parse_type, find_primitive_type, type_char)
10007 (type_system_address): Replace "parse_gdbarch" with method call.
10008
1201a264
TT
100092019-04-04 Tom Tromey <tom@tromey.com>
10010
10011 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10012 * stap-probe.c (stap_parse_argument): Update.
10013 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10014 initial_size parameter.
10015 * rust-exp.y (rust_lex_tests): Update.
10016 * parse.c (parser_state): Update.
10017 (parse_exp_in_context): Update.
10018 * parser-defs.h (struct parser_state) <parser_state>: Remove
10019 "initial_size" parameter.
10020
e3980ce2
TT
100212019-04-04 Tom Tromey <tom@tromey.com>
10022
10023 * parser-defs.h (increase_expout_size): Don't declare.
10024 * parse.c (increase_expout_size): Now static.
10025
e9f8e3f1
TS
100262019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10027
10028 * gnu-nat.c (gnu_nat_target::wait): Fix
10029 target_waitstatus_to_string call.
10030
d7df6549
AB
100312019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10032
10033 * eval.c (evaluate_subexp_standard): Handle internal functions
10034 during Fortran function call handling.
10035
8bdc1658
AB
100362019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10037
10038 * NEWS: Mention new internal functions.
10039 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10040 (read_base_type): Use dwarf2_init_complex_target_type.
10041 * value.c (creal_internal_fn): New function.
10042 (cimag_internal_fn): New function.
10043 (_initialize_values): Register new internal functions.
10044
c29705b7
PW
100452019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10046
10047 * infrun.c (stop_all_threads): If debug_infrun, always
10048 trace the wait status after wait_one, using
10049 target_waitstatus_to_string and target_pid_to_str.
10050 (handle_inferior_event): Replace various trace of
10051 wait status kind by a single trace.
10052 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10053 wait status kind image by target_waitstatus_to_string.
10054 * target/waitstatus.c (target_waitstatus_to_string): Fix
10055 obsolete comment.
10056
05caa1d2
TT
100572019-04-01 Tom Tromey <tromey@adacore.com>
10058
10059 PR symtab/23331:
10060 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10061
9d1447e0
SDJ
100622019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10063 Pedro Alves <palves@redhat.com>
10064
10065 * top.c (quit_force): Call 'finalize_values'.
10066 * value.c (finalize_values): New function.
10067 * value.h (finalize_values): Declare.
10068
7734102d
EZ
100692019-03-30 Eli Zaretskii <eliz@gnu.org>
10070
10071 * NEWS: Announce $_gdb_major and $_gdb_minor.
10072
10073 * top.c (init_gdb_version_vars): New function.
10074 (gdb_init): Call init_gdb_version_vars.
10075
188e1fa9
TT
100762019-03-29 Tom Tromey <tromey@adacore.com>
10077
10078 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10079 help text. Remove dead code.
10080
2880242d
KS
100812019-03-29 Keith Seitz <keiths@redhat.com>
10082
10083 From Siddhesh Poyarekar:
10084 * f-lang.h (f77_get_upperbound): Return LONGEST.
10085 (f77_get_lowerbound): Likewise.
10086 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10087 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10088 print them.
10089 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10090 plongest to format print it.
10091 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10092 (f77_get_upperbound): Likewise.
10093 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10094 LOWER_BOUND to LONGEST.
10095 (f77_create_arrayprint_offset_tbl): Likewise.
10096
cc1defb1
KS
100972019-03-29 Keith Seitz <keiths@redhat.com>
10098
10099 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10100 %s/pulongest for TYPE_LENGTH instead of %d in format
10101 strings.
10102 * ada-typerint.c (ada_print_type): Likewise.
10103 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10104 * compile/compile-c-support.c (generate_register_struct): Likewise.
10105 * gdbtypes.c (recursive_dump_type): Likewise.
10106 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10107 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10108 instead of %d in format strings.
10109 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10110 to std::min to ULONGEST.
10111 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10112 instead of %d in format strings.
10113 * tracepoint.c (info_scope_command): Likewise.
10114 * typeprint.c (print_offset_data::update)
10115 (print_offset_data::finish): Likewise.
10116 * xtensa-tdep.c (xtensa_store_return_value)
10117 (xtensa_push_dummy_call): Likewise.
10118
e432ccf1
JT
101192019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10120
10121 * windows-nat.c (display_selector): Fixed format specifications
10122 for 64-bit Cygwin.
10123
65d2b333
PW
101242019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10125
10126 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10127
f489207e
SL
101282019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10129
10130 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10131 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10132 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10133 (nios2_linux_init_abi): Install it.
10134
bffa1015
AH
101352019-03-28 Alan Hayward <alan.hayward@arm.com>
10136
10137 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10138
fc96163a
AH
101392019-03-28 Alan Hayward <alan.hayward@arm.com>
10140
10141 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10142
20dc7e9b
PW
101432019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10144 Tom Tromey <tromey@adacore.com>
10145
10146 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10147
7f5331a8
JB
101482019-03-26 Joel Brobecker <brobecker@adacore.com>
10149
10150 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10151 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10152 method to compute the bounds of range types. Also print "[evaluated]"
10153 if the bounds' values come from a dynamic evaluation.
10154
18c77628
AB
101552019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10156
10157 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10158 whitespace when pretty printing is on.
10159
53c973f2
AH
101602019-03-26 Alan Hayward <alan.hayward@arm.com>
10161
e79be6e5 10162 * ppc-linux-nat.c: Add include.
53c973f2 10163
d851aa71
AH
101642019-03-26 Alan Hayward <alan.hayward@arm.com>
10165
e79be6e5 10166 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10167
2fe7bab7
AH
101682019-03-26 Alan Hayward <alan.hayward@arm.com>
10169
e79be6e5 10170 * arm-linux-nat.c: Add include.
2fe7bab7 10171
068ef30e
SM
101722019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10173
10174 * source-cache.c (source_cache::get_source_lines): Re-read
10175 fullname after calling open_source_file.
10176
81a24d04
JB
101772019-03-25 John Baldwin <jhb@FreeBSD.org>
10178
10179 * NEWS: Mention TLS support for FreeBSD.
10180
79e7ae11
TT
101812019-03-25 Tom Tromey <tromey@adacore.com>
10182
10183 * minsyms.c (BUNCH_SIZE): Update comment.
10184 (~minimal_symbol_reader): Remove old comment.
10185 (compact_minimal_symbols): Update comment.
10186 (minimal_symbol_reader::install): Remove old comment. Update
10187 other comments.
10188
d45963c2
AH
101892019-03-25 Alan Hayward <alan.hayward@arm.com>
10190
10191 * s390-linux-nat.c: Add include.
10192
0f83012e
AH
101932019-03-25 Alan Hayward <alan.hayward@arm.com>
10194
10195 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10196 Call linux_get_hwcap.
10197 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10198 Likewise.
10199 (aarch64_linux_get_hwcap): Remove function.
10200 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10201 declaration.
10202 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10203 linux_get_hwcap.
10204 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10205 * linux-tdep.c (linux_get_hwcap): Add function.
10206 (linux_get_hwcap2): Likewise.
10207 * linux-tdep.h (linux_get_hwcap): Add declaration.
10208 (linux_get_hwcap2): Likewise.
10209 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10210 (ppc_linux_get_hwcap2): Likewise.
10211 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10212 linux_get_hwcap.
10213 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10214 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10215 (ppc_linux_nat_target::read_description): Likewise.
10216 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10217 * s390-linux-nat.c: Likewise.
10218 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10219
6640a367
TT
102202019-03-24 Tom Tromey <tom@tromey.com>
10221
10222 * ada-lang.c (standard_lookup): Simplify initialization.
10223 (ada_lookup_symbol_nonlocal): Simplify return.
10224 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10225 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10226 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10227 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10228 initialization.
10229 * solib.c (solib_global_lookup): Simplify.
10230 * symtab.c (null_block_symbol): Remove.
10231 (symbol_cache_lookup): Simplify returns.
10232 (lookup_language_this): Simplify returns.
10233 (lookup_symbol_aux): Simplify return.
10234 (lookup_local_symbol): Simplify returns.
10235 (lookup_global_symbol_from_objfile): Simplify return.
10236 (lookup_symbol_in_objfile_symtabs)
10237 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10238 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10239 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10240 * cp-namespace.c (cp_lookup_bare_symbol)
10241 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10242 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10243 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10244 (cp_lookup_symbol_via_imports): Simplify initialization.
10245 (find_symbol_in_baseclass): Likewise.
10246 * symtab.h (null_block_symbol): Remove.
10247 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10248 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10249 (d_lookup_symbol_module): Likewise.
10250 (find_symbol_in_baseclass): Simplify initialization.
10251
a930ebcd
TT
102522019-03-24 Tom Tromey <tom@tromey.com>
10253
10254 * expression.h: Don't include symtab.h.
10255 (struct block): Forward declare.
10256
582942f4
TT
102572019-03-24 Tom Tromey <tom@tromey.com>
10258
10259 * c-exp.y (typebase): Remove casts.
10260 * gdbtypes.c (lookup_unsigned_typename, )
10261 (lookup_signed_typename): Remove cast.
10262 * eval.c (parse_to_comma_and_eval): Remove cast.
10263 * parse.c (write_dollar_variable): Remove cast.
10264 * block.h (struct block) <superblock>: Now const.
10265 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10266 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10267 (map_block): Make "block" const.
10268 * symfile.h (struct quick_symbol_functions)
10269 <map_matching_symbols>: Constify block argument to "callback".
10270 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10271 const.
10272 (find_pc_sect_compunit_symtab): Make "b" const.
10273 (find_symbol_at_address): Likewise.
10274 (search_symbols): Likewise.
10275 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10276 (dw2_debug_names_lookup_symbol): Likewise.
10277 (dw2_map_matching_symbols): Update.
10278 * p-valprint.c (pascal_val_print): Remove "block".
10279 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10280 (aux_add_nonlocal_symbols): Make "block" const.
10281 (resolve_subexp): Remove cast.
10282 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10283 const.
10284 (iterate_over_file_blocks): Likewise.
10285 * f-exp.y (%union) <bval>: Remove.
10286 * coffread.c (patch_opaque_types): Make "b" const.
10287 * spu-tdep.c (spu_catch_start): Make "block" const.
10288 * c-valprint.c (print_unpacked_pointer): Remove "block".
10289 * symmisc.c (dump_symtab_1): Make "b" const.
10290 (block_depth): Make "block" const.
10291 * d-exp.y (%union) <bval>: Remove.
10292 * cp-support.h (cp_lookup_rtti_type): Update.
10293 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10294 * psymtab.c (psym_lookup_symbol): Make "block" const.
10295 (maintenance_check_psymtabs): Make "b" const.
10296 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10297 (enumerate_locals, enumerate_args): Update.
10298 * python/py-symtab.c (stpy_global_block): Make "block" const.
10299 (stpy_static_block): Likewise.
10300 * inline-frame.c (block_starting_point_at): Make "new_block"
10301 const.
10302 * block.c (find_block_in_blockvector): Make return type const.
10303 (blockvector_for_pc_sect): Make "b" const.
10304 (find_block_in_blockvector): Make "b" const.
10305
7ad417dd
TT
103062019-03-23 Tom Tromey <tom@tromey.com>
10307
10308 * varobj.c (varobj_create): Update.
10309 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10310 * printcmd.c (display_command, do_one_display): Don't reset
10311 innermost_block.
10312 * parser-defs.h (enum innermost_block_tracker_type): Move to
10313 expression.h.
10314 (innermost_block): Update comment.
10315 * parse.c (parse_exp_1): Add tracker_types parameter.
10316 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10317 tracker_types parameter. Reset innermost_block.
10318 (parse_exp_in_context): Remove.
10319 (parse_expression_for_completion): Update.
10320 * objfiles.c (~objfile): Don't reset expression_context_block or
10321 innermost_block.
10322 * expression.h (enum innermost_block_tracker_type): Move from
10323 parser-defs.h.
10324 (parse_exp_1): Add tracker_types parameter.
10325 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10326 reset innermost_block.
10327
b366c208
TT
103282019-03-23 Tom Tromey <tom@tromey.com>
10329
10330 * objfiles.h: Include bcache.h.
10331
9bb9b2f9
TT
103322019-03-23 Tom Tromey <tom@tromey.com>
10333
10334 * linespec.c (get_current_search_block): Use
10335 scoped_restore_current_language.
10336 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10337
59c28372
AH
103382019-03-22 Alan Hayward <alan.hayward@arm.com>
10339 Jiong Wang <jiong.wang@arm.com>
10340
10341 * aarch64-linux-tdep.c
10342 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10343 section.
10344 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10345
17e116a7
AH
103462019-03-22 Alan Hayward <alan.hayward@arm.com>
10347 Jiong Wang <jiong.wang@arm.com>
10348
10349 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10350 instructions.
10351 (aarch64_analyze_prologue_test): Add PACIASP test.
10352 (aarch64_prologue_prev_register): Unmask PC value.
10353
11e1b75f
AH
103542019-03-22 Alan Hayward <alan.hayward@arm.com>
10355 Jiong Wang <jiong.wang@arm.com>
10356
10357 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10358 (aarch64_dwarf2_prev_register): Unmask PC value.
10359 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10360 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10361 DW_CFA_AARCH64_negate_ra_state.
10362 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10363
34dcc7cf
AH
103642019-03-22 Alan Hayward <alan.hayward@arm.com>
10365 Jiong Wang <jiong.wang@arm.com>
10366
10367 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10368 registers.
10369 (aarch64_pseudo_register_name): Likewise.
10370 (aarch64_pseudo_register_type): Likewise.
10371 (aarch64_pseudo_register_reggroup_p): Likewise.
10372 (aarch64_gdbarch_init): Add pauth registers.
10373 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10374 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10375 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10376 (struct gdbarch_tdep): Add regnum for ra_state.
10377
1ef53e6b
AH
103782019-03-22 Alan Hayward <alan.hayward@arm.com>
10379 Jiong Wang <jiong.wang@arm.com>
10380
10381 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10382
76bed0fd
AH
103832019-03-22 Alan Hayward <alan.hayward@arm.com>
10384 Jiong Wang <jiong.wang@arm.com>
10385
10386 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10387 function.
10388 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10389 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10390 (aarch64_gdbarch_init): Add puth registers.
10391 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10392 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10393 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10394
ee4fbcfa
AH
103952019-03-22 Alan Hayward <alan.hayward@arm.com>
10396 Jiong Wang <jiong.wang@arm.com>
10397
10398 * aarch64-linux-nat.c
10399 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10400 * aarch64-linux-tdep.c
10401 (aarch64_linux_core_read_description): Likewise.
10402 (aarch64_linux_get_hwcap): New function.
10403 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10404 (aarch64_linux_get_hwcap): New declaration.
10405
6dc0ebde
AH
104062019-03-22 Alan Hayward <alan.hayward@arm.com>
10407 Jiong Wang <jiong.wang@arm.com>
10408
10409 * aarch64-linux-nat.c
10410 (aarch64_linux_nat_target::read_description): Add pauth param.
10411 * aarch64-linux-tdep.c
10412 (aarch64_linux_core_read_description): Likewise.
10413 * aarch64-tdep.c (struct target_desc): Add in pauth.
10414 (aarch64_read_description): Add pauth param.
10415 (aarch64_gdbarch_init): Likewise.
10416 * aarch64-tdep.h (aarch64_read_description): Likewise.
10417 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10418 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10419 * features/Makefile: Add new files.
10420 * features/aarch64-pauth.c: New file.
10421 * features/aarch64-pauth.xml: New file.
10422
595915c1
TT
104232019-03-20 Tom Tromey <tromey@adacore.com>
10424
10425 * infrun.c (handle_inferior_event): Rename from
10426 handle_inferior_event_1. Create a scoped_value_mark.
10427 (handle_inferior_event): Remove.
10428
4c7d57e7
TT
104292019-03-19 Tom Tromey <tromey@adacore.com>
10430
10431 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10432 * infrun.h (print_stop_event): Add "displays" parameter.
10433 * infrun.c (print_stop_event): Add "displays" parameter.
10434
cb246234
PA
104352019-03-19 Pedro Alves <palves@redhat.com>
10436
10437 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10438 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10439 to -1. Fix TABs vs spaces.
10440 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10441 * tui/tui-out.h (tui_ui_out) Add intro comments.
10442 <m_line, m_start_of_line>: In-class initialize, and add describing
10443 comment.
10444
3a0e45b2
AH
104452019-03-18 Alan Hayward <alan.hayward@arm.com>
10446
10447 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10448 variable names.
10449 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10450
5371b850
PA
104512019-03-18 Pedro Alves <palves@redhat.com>
10452 Eli Zaretskii <eliz@gnu.org>
10453
10454 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10455 m_line and m_start_of_line.
10456
b17c4cd0
EZ
104572019-03-18 Eli Zaretskii <eliz@gnu.org>
10458
10459 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10460 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10461 it returns a newline. This fixes a regression in TU mode, whereby
10462 the next line is output on the same screen line as the user input.
10463
4bd56d18
TT
104642019-03-18 Tom Tromey <tromey@adacore.com>
10465
10466 * minsyms.c (minimal_symbol_reader::install): Remove call to
10467 obstack_blank.
10468
55c10aca
PA
104692019-03-18 Pedro Alves <palves@redhat.com>
10470
10471 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10472 New globals.
10473 (apply_style): New, factored out from ...
10474 (apply_ansi_escape): ... this. Handle reverse video mode.
10475 (tui_set_reverse_mode): New function.
10476 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10477 * tui/tui-winsource.c (tui_show_source_line): Use
10478 tui_set_reverse_mode instead of setting A_STANDOUT.
10479 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10480 New setter methods.
10481
647bb750
HD
104822019-03-18 Hannes Domani <ssbssa@yahoo.de>
10483
10484 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10485 Handle tabs.
10486
bff8c71f
TT
104872019-03-18 Tom Tromey <tromey@adacore.com>
10488
10489 * ada-lang.c (empty_array): Add "high" parameter.
10490 (ada_evaluate_subexp): Update.
10491
58785d98
ST
104922019-03-17 Sergei Trofimovich <siarheit@google.com>
10493
10494 * unittests/string_view-selftests.c: Define
10495 _initialize_string_view_selftests unconditionally.
10496
d4cbef22
ВМ
104972019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10498
10499 PR gdb/24350
10500 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10501
fce4c071
ВМ
105022019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10503
10504 PR gdb/24351
10505 * windows-nat.c (display_selector): Fix format specifiers.
10506
f7f0a123
EZ
105072019-03-17 Eli Zaretskii <eliz@gnu.org>
10508
10509 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10510 tui_refill_source_window instead of tui_refresh_win, to update the
10511 current execution line. This fixes redisplay of the current line
10512 when stepping through the code with "next" or "step".
10513
ab42892f
EZ
105142019-03-16 Eli Zaretskii <eliz@gnu.org>
10515
10516 * source-cache.c (source_cache::get_source_lines): Call
10517 find_source_lines to initialize s->nlines. This fixes vertical
10518 scrolling of TUI source window when the DOWN arrow is pressed.
10519
8d8c087f
PW
105202019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10521
10522 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10523 linux-thread-db.c (_initialize_thread_db): Likewise.
10524
798e1c30
EZ
105252019-03-16 Eli Zaretskii <eliz@gnu.org>
10526
10527 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10528 wclrtoeol in tui_show_source_line". This reverts changes made in
10529 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10530
eefba3da
TT
105312019-03-15 Tom Tromey <tom@tromey.com>
10532
10533 * symtab.h (struct minimal_symbol): Derive from
10534 general_symbol_info.
10535 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10536 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10537 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10538 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10539 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10540 (MSYMBOL_SEARCH_NAME): Update.
10541 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10542 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10543 * minsyms.c (minimal_symbol_reader::record_full): Update.
10544
0de2420c
TT
105452019-03-15 Tom Tromey <tom@tromey.com>
10546
10547 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10548
042d75e4
TT
105492019-03-15 Tom Tromey <tom@tromey.com>
10550
10551 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10552 unique_xmalloc_ptr.
10553 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10554 Update.
10555 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10556 (build_minimal_symbol_hash_tables)
10557 (minimal_symbol_reader::install): Update.
10558
db92718b
TT
105592019-03-15 Tom Tromey <tom@tromey.com>
10560
10561 * symtab.c (create_demangled_names_hash): Update.
10562 (symbol_set_names): Update.
10563 * objfiles.h (struct objfile_per_bfd_storage)
10564 <demangled_names_hash>: Now an htab_up.
10565 * objfiles.c (objfile_per_bfd_storage): Simplify.
10566
d6797f46
TT
105672019-03-15 Tom Tromey <tom@tromey.com>
10568
10569 * objfiles.h (struct objfile_per_bfd_storage): Declare
10570 destructor.
10571 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10572 New.
10573 (get_objfile_bfd_data): Use new. Don't initialize
10574 language_of_main.
10575 (free_objfile_per_bfd_storage): Remove.
10576 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10577
741d7538
TT
105782019-03-15 Tom Tromey <tom@tromey.com>
10579
10580 * symfile.c (reread_symbols): Update.
10581 * objfiles.c (objfile::objfile): Update.
10582 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10584 comment.
10585 (minimal_symbol_reader::install): Update.
10586 (terminate_minimal_symbol_table): Remove.
10587 * jit.c (jit_object_close_impl): Update.
10588
788c80d1
TT
105892019-03-15 Tom Tromey <tom@tromey.com>
10590
10591 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10592 initializations.
10593
1b7a07cb
TT
105942019-03-15 Tom Tromey <tom@tromey.com>
10595
10596 * objfiles.h (struct objfile_per_bfd_storage)
10597 <demangled_hash_languages>: Now a bitset.
10598 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10599 (lookup_minimal_symbol): Update.
10600
3db066bc
TT
106012019-03-15 Tom Tromey <tom@tromey.com>
10602
10603 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10604 Don't return the symbol.
10605 * coffread.c (record_minimal_symbol): Use record_full.
10606
3fff2c37
EZ
106072019-03-14 Eli Zaretskii <eliz@gnu.org>
10608
10609 The MS-Windows port of ncurses fails to switch to a color pair if
10610 one or both of the colors are the implicit default colors. This
10611 change records the default colors when TUI is initialized, and
10612 then specifies them explicitly when a color pair uses the default
10613 colors. This allows color styling in TUI mode on MS-Windows.
10614
10615 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10616 ncurses_norm_attr.
10617 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10618 colors in ncurses_norm_attr.
10619 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10620 "none", replace it with the default color recorded in
10621 ncurses_norm_attr.
10622
3b336828
TT
106232019-03-14 Tom Tromey <tromey@adacore.com>
10624
10625 * source-cache.h (class source_cache) <get_source_lines>: Return
10626 std::string.
10627 * source-cache.c (source_cache::extract_lines): Handle case where
10628 first_pos==npos. Return std::string.
10629 (source_cache::get_source_lines): Update.
10630
d085f989
TT
106312019-03-14 Tom Tromey <tromey@adacore.com>
10632
10633 * NEWS: Add item for "style sources" commands.
10634 * source-cache.c (source_cache::get_source_lines): Check
10635 source_styling.
10636 * cli/cli-style.c (source_styling): New global.
10637 (_initialize_cli_style): Add "style sources" commands.
10638 (show_style_sources): New function.
10639 * cli/cli-style.h (source_styling): Declare.
10640
6f11e682
TT
106412019-03-14 Pedro Alves <palves@redhat.com>
10642 Tom Tromey <tromey@adacore.com>
10643
10644 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10645 * tui/tui-winsource.c (tui_refill_source_window): New function,
10646 from...
10647 (tui_horizontal_source_scroll): ... here. Move some logic.
10648 * cli/cli-style.c (set_style_enabled): Notify new observable.
10649 * tui/tui-hooks.c (tui_redisplay_source): New function.
10650 (tui_attach_detach_observers): Attach or detach
10651 tui_redisplay_source.
10652 * observable.h (source_styling_changed): New observable.
10653 * observable.c: Define source_styling_changed observable.
10654
a068643d
TT
106552019-03-13 Tom Tromey <tromey@adacore.com>
10656
10657 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10658 (i386_gnu_nat_target::store_registers): Update.
10659 * target-debug.h (target_debug_print_std_string): New macro.
10660 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10661 * windows-tdep.c (display_one_tib): Update.
10662 * tui/tui-stack.c (tui_make_status_line): Update.
10663 * top.c (print_inferior_quit_action): Update.
10664 * thread.c (thr_try_catch_cmd): Update.
10665 (add_thread_with_info): Update.
10666 (thread_target_id_str): Update.
10667 (thr_try_catch_cmd): Update.
10668 (thread_command): Update.
10669 (thread_find_command): Update.
10670 * record-btrace.c (record_btrace_target::info_record)
10671 (record_btrace_resume_thread, record_btrace_target::resume)
10672 (record_btrace_cancel_resume, record_btrace_step_thread)
10673 (record_btrace_target::wait, record_btrace_target::wait)
10674 (record_btrace_target::wait, record_btrace_target::stop): Update.
10675 * progspace.c (print_program_space): Update.
10676 * process-stratum-target.c
10677 (process_stratum_target::thread_address_space): Update.
10678 * linux-fork.c (linux_fork_mourn_inferior)
10679 (detach_checkpoint_command, info_checkpoints_command)
10680 (linux_fork_context): Update.
10681 (linux_fork_detach): Update.
10682 (class scoped_switch_fork_info): Update.
10683 (delete_checkpoint_command): Update.
10684 * infrun.c (follow_fork_inferior): Update.
10685 (follow_fork_inferior): Update.
10686 (proceed_after_vfork_done): Update.
10687 (handle_vfork_child_exec_or_exit): Update.
10688 (follow_exec): Update.
10689 (displaced_step_prepare_throw): Update.
10690 (displaced_step_restore): Update.
10691 (start_step_over): Update.
10692 (resume_1): Update.
10693 (clear_proceed_status_thread): Update.
10694 (proceed): Update.
10695 (print_target_wait_results): Update.
10696 (do_target_wait): Update.
10697 (context_switch): Update.
10698 (stop_all_threads): Update.
10699 (restart_threads): Update.
10700 (finish_step_over): Update.
10701 (handle_signal_stop): Update.
10702 (switch_back_to_stepped_thread): Update.
10703 (keep_going_pass_signal): Update.
10704 (print_exited_reason): Update.
10705 (normal_stop): Update.
10706 * inferior.c (inferior_pid_to_str): Change return type.
10707 (print_selected_inferior): Update.
10708 (add_inferior): Update.
10709 (detach_inferior): Update.
10710 * dummy-frame.c (fprint_dummy_frames): Update.
10711 * dcache.c (dcache_info_1): Update.
10712 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10713 (btrace_fetch, btrace_clear): Update.
10714 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10715 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10716 type.
10717 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10718 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10719 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10720 * gdbarch.c, gdbarch.h: Rebuild.
10721 * gdbarch.sh (core_pid_to_str): Change return type.
10722 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10723 return type.
10724 (windows_nat_target::pid_to_str): Change return type.
10725 (windows_delete_thread): Update.
10726 (windows_nat_target::attach): Update.
10727 (windows_nat_target::files_info): Update.
10728 * target-delegates.c: Rebuild.
10729 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10730 return type.
10731 (sol_thread_target::pid_to_str): Change return type.
10732 * remote.c (class remote_target) <pid_to_str>: Change return
10733 type.
10734 (remote_target::pid_to_str): Change return type.
10735 (extended_remote_target::attach, remote_target::remote_stop_ns)
10736 (remote_target::remote_notif_remove_queued_reply)
10737 (remote_target::push_stop_reply, remote_target::disable_btrace):
10738 Update.
10739 (extended_remote_target::attach): Update.
10740 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10741 type.
10742 (gdbsim_target::pid_to_str): Change return type.
10743 * ravenscar-thread.c (struct ravenscar_thread_target)
10744 <pid_to_str>: Change return type.
10745 (ravenscar_thread_target::pid_to_str): Change return type.
10746 * procfs.c (class procfs_target) <pid_to_str>: Change return
10747 type.
10748 (procfs_target::pid_to_str): Change return type.
10749 (procfs_target::attach): Update.
10750 (procfs_target::detach): Update.
10751 (procfs_target::fetch_registers): Update.
10752 (procfs_target::store_registers): Update.
10753 (procfs_target::wait): Update.
10754 (procfs_target::files_info): Update.
10755 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10756 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10757 return type.
10758 (nto_procfs_target::pid_to_str): Change return type.
10759 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10760 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10761 return type.
10762 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10763 (exit_lwp): Update.
10764 (attach_proc_task_lwp_callback, get_detach_signal)
10765 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10766 (linux_nat_target::resume, wait_lwp, stop_callback)
10767 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10768 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10769 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10770 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10771 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10772 type.
10773 (inf_ptrace_target::attach): Update.
10774 (inf_ptrace_target::files_info): Update.
10775 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10776 type.
10777 (go32_nat_target::pid_to_str): Change return type.
10778 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10779 (gnu_nat_target::wait): Update.
10780 (gnu_nat_target::wait): Update.
10781 (gnu_nat_target::resume): Update.
10782 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10783 (fbsd_nat_target::wait): Update.
10784 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10785 type.
10786 (darwin_nat_target::attach): Update.
10787 * corelow.c (class core_target) <pid_to_str>: Change return type.
10788 (core_target::pid_to_str): Change return type.
10789 * target.c (normal_pid_to_str): Change return type.
10790 (default_pid_to_str): Likewise.
10791 (target_pid_to_str): Change return type.
10792 (target_translate_tls_address): Update.
10793 (target_announce_detach): Update.
10794 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10795 return type.
10796 (bsd_uthread_target::pid_to_str): Change return type.
10797 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10798 type.
10799 (bsd_kvm_target::pid_to_str): Change return type.
10800 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10801 return type.
10802 (aix_thread_target::pid_to_str): Change return type.
10803 * target.h (struct target_ops) <pid_to_str>: Change return type.
10804 (target_pid_to_str, normal_pid_to_str): Likewise.
10805 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10806 type.
10807 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10808 type.
10809 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10810 return type.
10811 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10812 type.
10813 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10814 type.
10815 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10816 return type.
10817
b4be1b06
SM
108182019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10819
10820 * NEWS: Mention that the new default MI version is 3. Mention
10821 changes to the output of commands and events that deal with
10822 multi-location breakpoints.
10823 * breakpoint.c: Include "mi/mi-out.h".
10824 (print_one_breakpoint): Change output syntax if using MI version
10825 >= 3.
10826 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10827 New.
10828 (mi_multi_location_breakpoint_output_fixed): New.
10829 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10830 (mi_cmd_fix_multi_location_breakpoint_output): New.
10831 (mi_multi_location_breakpoint_output_fixed): New.
10832 * mi/mi-cmds.c (mi_cmds): Register command
10833 -fix-multi-location-breakpoint-output.
10834 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10835 interpreter "mi".
10836
8e5e5494
SM
108372019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10838
10839 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10840 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10841 instantiate mi_ui_out based on interpreter name.
10842 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10843 * mi/mi-main.c (mi_load_progress): Likewise.
10844
197df35e
JB
108452019-03-12 John Baldwin <jhb@FreeBSD.org>
10846
10847 * NEWS: Combine separate "New targets" sections for 8.3.
10848
8399425f
JB
108492019-03-12 John Baldwin <jhb@FreeBSD.org>
10850
10851 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10852 (ppcfbsd_init_abi): Install gdbarch
10853 "fetch_tls_load_module_address" and "get_thread_local_address"
10854 methods.
10855
b0f87ed0
JB
108562019-03-12 John Baldwin <jhb@FreeBSD.org>
10857
10858 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10859 (riscv_fbsd_init_abi): Install gdbarch
10860 "fetch_tls_load_module_address" and "get_thread_local_address"
10861 methods.
10862
ce25aa57
JB
108632019-03-12 John Baldwin <jhb@FreeBSD.org>
10864
10865 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10866 (i386fbsd_init_abi): Install gdbarch
10867 "fetch_tls_load_module_address" and "get_thread_local_address"
10868 methods.
10869
f5424cfa
JB
108702019-03-12 John Baldwin <jhb@FreeBSD.org>
10871
10872 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10873 (amd64fbsd_init_abi): Install gdbarch
10874 "fetch_tls_load_module_address" and "get_thread_local_address"
10875 methods.
10876
945f3901
JB
108772019-03-12 John Baldwin <jhb@FreeBSD.org>
10878
10879 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10880 (struct fbsd_pspace_data): New type.
10881 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10882 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10883 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10884 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10885 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10886
ef0bd204
JB
108872019-03-12 John Baldwin <jhb@FreeBSD.org>
10888
10889 * gdbtypes.c (lookup_struct_elt): New function.
10890 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10891 * gdbtypes.h (struct struct_elt): New type.
10892 (lookup_struct_elt): New prototype.
10893
36c53a02
JB
108942019-03-12 John Baldwin <jhb@FreeBSD.org>
10895
10896 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10897 remove disabled code block.
10898
6e056c81
JB
108992019-03-12 John Baldwin <jhb@FreeBSD.org>
10900
10901 * gdbarch.sh (get_thread_local_address): New method.
10902 * gdbarch.h, gdbarch.c: Regenerate.
10903 * target.c (target_translate_tls_address): Use
10904 gdbarch_get_thread_local_address if present instead of
10905 target::get_thread_local_address.
10906
cd250a18
JB
109072019-03-12 John Baldwin <jhb@FreeBSD.org>
10908
10909 * target.h (target::get_thread_local_address): Update comment.
10910
df22c1e5
JB
109112019-03-12 John Baldwin <jhb@FreeBSD.org>
10912
10913 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10914 objfile->separate_debug_objfile_backlink if not NULL.
10915
dd6876c9
JB
109162019-03-12 John Baldwin <jhb@FreeBSD.org>
10917
10918 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10919 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10920 (amd64bsd_store_inferior_registers): Likewise.
10921 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10922 Enable segment base registers.
10923 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10924 PT_GETFSBASE and PT_GETGSBASE.
10925 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10926 PT_SETGSBASE.
10927 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10928 segment base registers.
10929 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10930
1163a4b7
JB
109312019-03-12 John Baldwin <jhb@FreeBSD.org>
10932
10933 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10934 Update calls to i386_target_description to add 'segments'
10935 parameter.
10936 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10937 add segment base registers.
10938 * arch/i386.c (i386_create_target_description): Add 'segments'
10939 parameter to enable segment base registers.
10940 * arch/i386.h (i386_create_target_description): Likewise.
10941 * features/i386/32bit-segments.xml: New file.
10942 * features/i386/32bit-segments.c: Generate.
10943 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10944 call to i386_target_description to add 'segments' parameter.
10945 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10946 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10947 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10948 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10949 if feature is present.
10950 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10951 Add 'segments' parameter to call to i386_target_description.
10952 (i386_target_description): Add 'segments' parameter to enable
10953 segment base registers.
10954 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10955 to call to i386_target_description.
10956 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10957 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10958 Define I386_NUM_REGS.
10959 (i386_target_description): Add 'segments' parameter to enable
10960 segment base registers.
10961
3a350822
EZ
109622019-03-12 Eli Zaretskii <eliz@gnu.org>
10963
10964 PR/24325
10965 * source-cache.c: #undef open and close, to avoid unresolved
10966 externals during linking.
10967
ffdd69cf
TT
109682019-03-12 Tom Tromey <tromey@adacore.com>
10969
10970 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10971 const. Add initializers.
10972 (_initialize_remote): Don't initialize ptid globals.
10973
ec148c57
PA
109742019-03-12 Pedro Alves <palves@redhat.com>
10975
10976 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10977
32764270
PA
109782019-03-12 Pedro Alves <palves@redhat.com>
10979
10980 * cp-name-parser.y (main): Remove unused 'len' variable.
10981
17547186
TT
109822019-03-12 Tom Tromey <tromey@adacore.com>
10983
10984 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10985 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10986
d3a70e03
TT
109872019-03-12 Tom Tromey <tromey@adacore.com>
10988
10989 * linux-nat.c (iterate_over_lwps): Update.
10990 (stop_callback): Remove parameter.
10991 (stop_wait_callback, detach_callback, resume_set_callback)
10992 (select_singlestep_lwp_callback, set_ignore_sigint)
10993 (status_callback, resumed_callback, resume_clear_callback)
10994 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10995 data parameter.
10996 (linux_nat_target::detach, linux_nat_target::resume)
10997 (linux_stop_and_wait_all_lwps, select_event_lwp)
10998 (linux_nat_filter_event, linux_nat_wait_1)
10999 (linux_nat_target::kill, linux_nat_target::stop)
11000 (linux_nat_target::stop): Update.
11001 (linux_nat_resume_callback): Change type.
11002 (resume_stopped_resumed_lwps, count_events_callback)
11003 (select_event_lwp_callback): Likewise.
11004 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11005 * arm-linux-nat.c (struct update_registers_data): Remove.
11006 (update_registers_callback): Change type.
11007 (arm_linux_insert_hw_breakpoint1): Update.
11008 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11009 parameter.
11010 (x86_linux_dr_set_addr): Update.
11011 (x86_linux_dr_set_control): Update.
11012 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11013 (iterate_over_lwps): Use gdb::function_view.
11014 * nat/aarch64-linux-hw-point.c (struct
11015 aarch64_dr_update_callback_param): Remove.
11016 (debug_reg_change_callback): Change type.
11017 (aarch64_notify_debug_reg_change): Update.
11018 * s390-linux-nat.c (s390_refresh_per_info): Update.
11019
82cb27ff
TT
110202019-03-11 Tom Tromey <tromey@adacore.com>
11021
11022 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11023 redundant assignment to "this_cu".
11024
568c0683
SM
110252019-03-08 Simon Marchi <simon.marchi@efficios.com>
11026
11027 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11028
f09ce22d
SM
110292019-03-08 Simon Marchi <simon.marchi@efficios.com>
11030
11031 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11032 from...
11033 (rank_one_type): ... this.
11034
595f96a9
SM
110352019-03-08 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11038 from...
11039 (rank_one_type): ... this.
11040
2598a94b
SM
110412019-03-08 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11044 from...
11045 (rank_one_type): ... this.
11046
7f17b20d
SM
110472019-03-08 Simon Marchi <simon.marchi@efficios.com>
11048
11049 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11050 from...
11051 (rank_one_type): ... this.
11052
2c509035
SM
110532019-03-08 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11056 from...
11057 (rank_one_type): ... this.
11058
0dd322dc
SM
110592019-03-08 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11062 from...
11063 (rank_one_type): ... this.
11064
41ea4728
SM
110652019-03-08 Simon Marchi <simon.marchi@efficios.com>
11066
11067 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11068 from...
11069 (rank_one_type): ... this.
11070
793cd1d2
SM
110712019-03-08 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11074 from...
11075 (rank_one_type): ... this.
11076
34910087
SM
110772019-03-08 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11080 from...
11081 (rank_one_type): ... this.
11082
f1f832d6
SM
110832019-03-08 Simon Marchi <simon.marchi@efficios.com>
11084
11085 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11086 from...
11087 (rank_one_type): ... this.
11088
b9f4512f
SM
110892019-03-08 Simon Marchi <simon.marchi@efficios.com>
11090
11091 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11092 from...
11093 (rank_one_type): ... this.
11094
9293fc63
SM
110952019-03-08 Simon Marchi <simon.marchi@efficios.com>
11096
11097 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11098 from...
11099 (rank_one_type): ... this.
11100
e3abbe7e
PW
111012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11102
11103 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11104 inferior-events' shows the example events.
11105
e4adb939
EZ
111062019-03-08 Eli Zaretskii <eliz@gnu.org>
11107
11108 Support styling on native MS-Windows console
11109
11110 PR/24315
11111 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11112 on MS-Windows if $TERM is not defined.
11113
11114 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11115
11116 * posix-hdep.c (gdb_console_fputs):
11117 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11118 functions.
11119 * ui-file.h (gdb_console_fputs): Add prototype.
11120
11121 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11122 back to fputs only if the former returns zero.
11123
25629dfd
TT
111242019-03-07 Tom Tromey <tom@tromey.com>
11125
11126 * symmisc.c (print_symbol_bcache_statistics): Update.
11127 (print_objfile_statistics): Update.
11128 * symfile.c (allocate_symtab): Update.
11129 * stabsread.c: Don't include bcache.h.
11130 * psymtab.h (struct psymbol_bcache): Don't declare.
11131 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11132 (psymbol_bcache_init, psymbol_bcache_free)
11133 (psymbol_bcache_get_bcache): Don't declare.
11134 * psymtab.c (struct psymbol_bcache): Remove.
11135 (psymtab_storage::psymtab_storage): Update.
11136 (psymtab_storage::~psymtab_storage): Update.
11137 (psymbol_bcache_init, psymbol_bcache_free)
11138 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11139 (add_psymbol_to_bcache): Update.
11140 (allocate_psymtab): Update.
11141 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11142 macro_cache>: No longer pointers.
11143 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11144 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11145 * macrotab.c (macro_bcache): Update.
11146 * macroexp.c: Don't include bcache.h.
11147 * gdbtypes.c (check_types_worklist): Update.
11148 (types_deeply_equal): Remove TRY/CATCH. Update.
11149 * elfread.c (elf_symtab_read): Update.
11150 * dwarf2read.c: Don't include bcache.h.
11151 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11152 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11153 (print_bcache_statistics, bcache_memory_used): Don't declare.
11154 (struct bcache): Move from bcache.c. Add constructor, destructor,
11155 methods. Rename all data members.
11156 * bcache.c (struct bcache): Move to bcache.h.
11157 (bcache::expand_hash_table): Rename from expand_hash_table.
11158 (bcache): Remove.
11159 (bcache::insert): Rename from bcache_full.
11160 (bcache::compare): Rename from bcache_compare.
11161 (bcache_xmalloc): Remove.
11162 (bcache::~bcache): Rename from bcache_xfree.
11163 (bcache::print_statistics): Rename from print_bcache_statistics.
11164 (bcache::memory_used): Rename from bcache_memory_used.
11165
fe726667
PA
111662019-03-07 Pedro Alves <palves@redhat.com>
11167
11168 * infrun.c (normal_stop): Also check for
11169 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11170
7584bb30
AB
111712019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11172
11173 * f-lang.c (value_from_host_double): Moved to...
11174 * value.c (value_from_host_double): ...here.
11175 * value.h (value_from_host_double): Declare.
11176 * guile/scm-math.c (vlscm_convert_typed_number): Use
11177 value_from_host_double.
11178 (vlscm_convert_number): Likewise.
11179 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11180 * python/py-value.c (convert_value_from_python): Likewise.
11181
a7b1986e
TT
111822019-03-06 Tom Tromey <tom@tromey.com>
11183
11184 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11185
0ccf4211
TT
111862019-03-06 Tom Tromey <tom@tromey.com>
11187
11188 * utils.h (free_current_contents): Don't declare.
11189 * utils.c (free_current_contents): Remove.
11190
fe7b42e5
TT
111912019-03-06 Tom Tromey <tom@tromey.com>
11192
11193 * top.c (quit_force): Update.
11194 * main.c (captured_command_loop): Update.
11195 * common/new-op.c (operator new): Update.
11196 * common/common-exceptions.c (struct catcher)
11197 <save_cleanup_chain>: Remove member.
11198 (exceptions_state_mc_init): Update.
11199 (exception_try_scope_entry): Return nullptr.
11200 (exception_try_scope_exit, exception_rethrow)
11201 (throw_exception_sjlj, throw_exception_cxx): Update.
11202 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11203 (all_cleanups, do_cleanups, discard_cleanups)
11204 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11205 (restore_cleanups, restore_final_cleanups): Don't declare.
11206 (do_final_cleanups): Remove parameter.
11207 * common/cleanups.c (cleanup_chain, make_cleanup)
11208 (make_cleanup_dtor, all_cleanups, do_cleanups)
11209 (discard_my_cleanups, discard_cleanups)
11210 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11211 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11212 (null_cleanup): Remove.
11213 (do_final_cleanups): Remove parameter.
11214
c6321f19
TT
112152019-03-06 Tom Tromey <tom@tromey.com>
11216
11217 * remote.c (remote_target::remote_parse_stop_reply): Use
11218 unique_xmalloc_ptr.
11219
61b30099
TT
112202019-03-06 Tom Tromey <tom@tromey.com>
11221
11222 * stabsread.c (struct stabs_field_info): Rename from field_info.
11223 <list, fnlist>: Add initializers.
11224 <obstack>: New member.
11225 (read_member_functions, read_struct_fields, read_baseclasses):
11226 Allocate on obstack. Don't use cleanups.
11227 (read_one_struct_field, read_member_functions, read_struct_fields)
11228 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11229 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11230 (read_struct_type): Update.
11231
6cceac94
TT
112322019-03-06 Tom Tromey <tom@tromey.com>
11233
11234 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11235 * common/filestuff.h (make_cleanup_close): Don't declare.
11236 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11237 Remove.
11238
72412762
TT
112392019-03-06 Tom Tromey <tom@tromey.com>
11240
11241 * solib-aix.c: Use make_scope_exit.
11242
2b6ff1c0
TT
112432019-03-06 Tom Tromey <tom@tromey.com>
11244
11245 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11246 Use make_scope_exit.
11247
d01c5877
TT
112482019-03-06 Tom Tromey <tom@tromey.com>
11249
11250 * solib-svr4.c (disable_probes_interface): Remove parameter.
11251 (svr4_handle_solib_event): Use make_scope_exit.
11252
32603266
TT
112532019-03-06 Tom Tromey <tom@tromey.com>
11254
11255 * remote.c (struct stop_reply_deleter): Remove.
11256 (stop_reply_up): Update.
11257 (struct stop_reply): Derive from notif_event. Don't typedef.
11258 <regcache>: Now a std::vector.
11259 (stop_reply_xfree): Remove.
11260 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11261 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11262 (remote_target::discard_pending_stop_replies): Use delete.
11263 (remote_target::remote_parse_stop_reply): Update.
11264 (remote_target::process_stop_reply): Update.
11265 * remote-notif.h (struct notif_event): Add virtual destructor.
11266 Remove "dtr" member.
11267 (struct notif_client) <alloc_event>: Return a unique_ptr.
11268 (notif_event_xfree): Don't declare.
11269 (notif_event_up): New typedef.
11270 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11271 (notif_event_xfree, do_notif_event_xfree): Remove.
11272 (remote_notif_state_xfree): Update.
11273
9799571e
TT
112742019-03-06 Tom Tromey <tom@tromey.com>
11275
11276 * infrun.c (displaced_step_clear_cleanup): Now a
11277 forward_scope_exit type.
11278 (displaced_step_prepare_throw): Update.
11279 (displaced_step_fixup): Update.
11280
09e3c4ca
TT
112812019-03-06 Tom Tromey <tom@tromey.com>
11282
11283 * inferior.h (class inferior): Update comment.
11284 * gdbthread.h (class thread_info): Update comment.
11285
e2a03548
TT
112862019-03-06 Joel Brobecker <brobecker@adacore.com>
11287 Tom Tromey <tom@tromey.com>
11288
11289 * stabsread.h (struct stab_section_list): Remove.
11290 (coffstab_build_psymtabs): Update.
11291 * dbxread.c (symbuf_sections): Now a std::vector.
11292 (sect_idx): New global.
11293 (fill_symbuf): Update.
11294 (coffstab_build_psymtabs): Change type of stabsects parameter.
11295 Update.
11296 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11297 std::vector.
11298 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11299 (coff_locate_sections): Update.
11300 (coff_symfile_read): Remove cleanups. Update.
11301 (init_stringtab): Add storage parameter.
11302 (free_stringtab, free_stringtab_cleanup): Remove.
11303 (init_lineno): Add storage parameter.
11304 (free_linetab, free_linetab_cleanup): Remove.
11305
b7e60d85
PA
113062019-03-06 Pedro Alves <palves@redhat.com>
11307
11308 * linux-fork.c (fork_info::clobber_regs): Delete.
11309 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11310 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11311 comment. Adjust.
11312 (scoped_switch_fork_info::scoped_switch_fork_info)
11313 (checkpoint_command, linux_fork_context): Adjust
11314 fork_save_infrun_state calls.
11315
e52c971f
PA
113162019-03-06 Pedro Alves <palves@redhat.com>
11317
11318 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11319 (inf_has_multiple_threads): Return 'bool' and rewrite using
11320 inferior_info::threads().
11321
06974e6c
PA
113222019-03-06 Pedro Alves <palves@redhat.com>
11323
11324 * linux-fork.c: Include <list>.
11325 (fork_list): Now a std::list instance.
11326 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11327 (forks_exist_p, find_last_fork): Adjust.
11328 (new_fork): Delete.
11329 (one_fork_p): New.
11330 (add_fork): Adjust.
11331 (free_fork): Delete, folded into fork_info::~fork_info().
11332 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11333 Adjust.
11334 (init_fork_list): Delete.
11335 (linux_fork_killall, linux_fork_mourn_inferior)
11336 (linux_fork_detach, info_checkpoints_command): Adjust.
11337 (_initialize_linux_fork): No longer call init_fork_list.
11338
72f31aea
PA
113392019-03-06 Pedro Alves <palves@redhat.com>
11340
11341 * linux-fork.c (new_fork): New, split out of ...
11342 (add_fork): ... this. Return void. Move "first fork" special
11343 case from here, to ...
11344 (checkpoint_command): ... here.
11345 * linux-linux.h (add_fork): Return void.
11346
efbecbc1
AB
113472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11348
11349 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11350
0841c79a
AB
113512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11352 Chris January <chris.january@arm.com>
11353 David Lecomber <david.lecomber@arm.com>
11354
11355 * f-exp.y: New token, UNOP_INTRINSIC.
11356 (exp): New pattern using UNOP_INTRINSIC token.
11357 (f77_keywords): Add 'abs' keyword.
11358 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11359 (value_from_host_double): New function.
11360 (evaluate_subexp_f): Support UNOP_ABS.
11361
4a270568
AB
113622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11365 types.
11366
067630bd
AB
113672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11370 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11371 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11372
3be47f7a
AB
113732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11374
11375 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11376
4d00f5d8
AB
113772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11378 Chris January <chris.january@arm.com>
11379
11380 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11381 * f-exp.y: Define 'KIND' token.
11382 (exp): New pattern for KIND expressions.
11383 (ptype): Handle types with a kind extension.
11384 (direct_abs_decl): Extend to spot kind extensions.
11385 (f77_keywords): Add 'kind' to the list.
11386 (push_kind_type): New function.
11387 (convert_to_kind_type): New function.
11388 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11389 * parse.c (operator_length_standard): Likewise.
11390 * parser-defs.h (enum type_pieces): Add tp_kind.
11391 * std-operator.def: Add UNOP_KIND.
11392
e454224f
AB
113932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11394
11395 * f-exp.y (f_parse): Set yydebug.
11396
9dad4a58
AB
113972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11398
11399 * f-lang.c (evaluate_subexp_f): New function.
11400 (exp_descriptor_f): New global.
11401 (f_language_defn): Use exp_descriptor_f instead of
11402 exp_descriptor_standard.
11403
c8f91604
AB
114042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11405
11406 * f-exp.y (struct token): Add comments.
11407 (dot_ops): Remove uppercase versions and the end marker.
11408 (f77_keywords): Likewise.
11409 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11410 entries in the dot_ops array are case insensitive, and use
11411 strncasecmp to compare strings. Also some whitespace cleanup in
11412 this area. Similar for the f77_keywords array, except entries in
11413 this list might be case sensitive.
11414
dd9f2c76
AB
114152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * f-exp.y (struct f77_boolean_val): Add comments.
11418 (boolean_values): Remove uppercase versions, and end marker.
11419 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11420 and use strncasecmp to achieve case insensitivity. Additionally,
11421 perform whitespace cleanup around this code.
11422
67a3048c
TT
114232019-03-06 Tom Tromey <tromey@adacore.com>
11424
11425 * remote-sim.c (gdbsim_target_open): Use result of
11426 gdb_argv::release.
11427
aa3cfbda
RB
114282019-03-06 Richard Bunt <richard.bunt@arm.com>
11429 Dirk Schubert <dirk.schubert@arm.com>
11430 Chris January <chris.january@arm.com>
11431
11432 * eval.c (evaluate_subexp_standard): Call Fortran argument
11433 wrapping logic.
11434 * f-lang.c (struct value): A value which can be passed into a
11435 Fortran function call.
11436 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11437 where appropriate.
11438 (struct type): Value ready for a Fortran function call.
11439 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11440 is needed.
11441 * f-lang.h (fortran_argument_convert): Declaration.
11442 (fortran_preserve_arg_pointer): Declaration.
11443 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11444
ea38e5df
TT
114452019-03-05 Tom Tromey <tromey@adacore.com>
11446
11447 * python/py-prettyprint.c (print_string_repr): Remove #if.
11448 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11449
06b5b831
TT
114502019-03-05 Tom Tromey <tromey@adacore.com>
11451
11452 * target.c (the_dummy_target): Move later. Change type to
11453 "dummy_target".
11454 (initialize_targets): Don't initialize the_dummy_target.
11455
edbd9e45
TT
114562019-03-05 Tom Tromey <tromey@adacore.com>
11457
11458 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11459 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11460
c119e040
TT
114612019-03-05 Tom Tromey <tromey@adacore.com>
11462
11463 * windows-nat.c (windows_nat_target::attach)
11464 (windows_nat_target::detach): Don't call gdb_flush.
11465 * valprint.c (generic_val_print, val_print, val_print_string):
11466 Don't call gdb_flush.
11467 * utils.c (defaulted_query): Don't call gdb_flush.
11468 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11469 * target.c (target_announce_detach): Don't call gdb_flush.
11470 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11471 * remote.c (extended_remote_target::attach): Don't call
11472 gdb_flush.
11473 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11474 * printcmd.c (do_examine): Don't call gdb_flush.
11475 (info_display_command): Don't call gdb_flush.
11476 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11477 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11478 * memattr.c (info_mem_command): Don't call gdb_flush.
11479 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11480 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11481 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11482 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11483 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11484 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11485 (gnu_nat_target::detach): Don't call gdb_flush.
11486 * f-valprint.c (f_val_print): Don't call gdb_flush.
11487 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11488 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11489 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11490 gdb_flush.
11491 * c-valprint.c (c_val_print): Don't call gdb_flush.
11492 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11493
895dafa6
TT
114942019-03-05 Tom Tromey <tromey@adacore.com>
11495
11496 * varobj.c (update_dynamic_varobj_children): Update.
11497 (install_default_visualizer): Use reset, not release.
11498 * value.c (set_internalvar): Update.
11499 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11500 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11501 ATTRIBUTE_UNUSED_RESULT.
11502
88a774b9
TT
115032019-03-05 Tom Tromey <tromey@adacore.com>
11504
11505 * remote.c (class scoped_remote_fd) <release>: Add
11506 ATTRIBUTE_UNUSED_RESULT.
11507
4e4a8b93
TT
115082019-03-05 Tom Tromey <tromey@adacore.com>
11509
11510 * macroexp.c (struct macro_buffer) <release>: Add
11511 ATTRIBUTE_UNUSED_RESULT.
11512
083eef1f
TT
115132019-03-05 Tom Tromey <tromey@adacore.com>
11514
11515 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11516 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11517 ATTRIBUTE_UNUSED_RESULT.
11518
3cabd438
TT
115192019-03-05 Tom Tromey <tromey@adacore.com>
11520
11521 * common/scoped_fd.h (class scoped_fd) <release>: Add
11522 ATTRIBUTE_UNUSED_RESULT.
11523
41e3300a
TT
115242019-03-05 Tom Tromey <tromey@adacore.com>
11525
11526 * parser-defs.h (struct parser_state) <release>: Add
11527 ATTRIBUTE_UNUSED_RESULT.
11528
18cb7c9f
TT
115292019-03-05 Tom Tromey <tromey@adacore.com>
11530
11531 * utils.h (class gdb_argv) <release>: Add
11532 ATTRIBUTE_UNUSED_RESULT.
11533 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11534
41fa577f
EZ
115352019-03-02 Eli Zaretskii <eliz@gnu.org>
11536
a6a4b2c6
EZ
11537 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11538 for-loop range, to avoid compiler warnings.
11539
11540 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11541 avoid compiler warnings about unused variables.
11542
742a7df5
EZ
11543 * NEWS: Mention end of support for native debugging on MS-Windows
11544 before XP.
11545
41fa577f
EZ
11546 PR gdb/24292
11547 * common/netstuff.c:
11548 * gdbserver/gdbreplay.c
11549 * gdbserver/remote-utils.c:
11550 * ser-tcp.c:
11551 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11552 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11553 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11554 'getaddrinfo' and 'freeaddrinfo' were not available before
11555 Windows XP, and mingw.org's MinGW headers by default define
11556 _WIN32_WINNT to 0x500.
11557
827f438f
GB
115582019-03-01 Gary Benson <gbenson@redhat.com>
11559
11560 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11561
92137da0
RO
115622019-02-28 Brian Vandenberg <phantall@gmail.com>
11563 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11564
11565 PR gdb/8527
11566 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11567 set_sigint_trap, clear_sigint_trap.
11568
799efbe8
PW
115692019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11570
11571 * target.c (target_detach): Clear the regcache and the
11572 frame cache.
11573
8ed25214
PA
115742019-02-27 Pedro Alves <palves@redhat.com>
11575
11576 * utils.c (set_screen_size): When we cap the height/width sizes,
11577 tweak the corresponding command variable to show "unlimited":
11578
23031e31
SJ
115792019-02-27 Saagar Jha <saagar@saagarjha.com>
11580 Pedro Alves <palves@redhat.com>
11581
11582 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11583 before calling rl_set_screen_size.
11584
6c28e44a
TT
115852019-02-27 Tom Tromey <tromey@adacore.com>
11586
11587 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11588 define.
11589 * python/py-value.c: Remove Python 2.4 workaround.
11590 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11591 workaround.
11592 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11593 Python 2.4 workaround.
11594 * python/python-internal.h: Remove Python 2.4 comment.
11595 (Py_ssize_t): Don't define.
11596 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11597 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11598 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11599 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11600 * python/python.c (do_start_initialization): Remove Python 2.4
11601 workaround.
11602 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11603 (print_children): Remove Python 2.4 workaround.
11604 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11605 workaround.
11606 (CHARBUFFERPROC_NAME): Remove.
11607 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11608 Python 2.4 workaround.
11609
2c3fc25d 116102019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11611
2c3fc25d
KB
11612 * NEWS: Note minimum Python version.
11613
6ca62222
KB
116142019-02-27 Kevin Buettner <kevinb@redhat.com>
11615
11616 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11617 code from these functions. Remove corresponding ifdefs. Use
11618 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11619 Remove gotos and target of gotos.
11620 (infpy_search_memory): Likewise.
11621
f4bc7d2c
AB
116222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11625 (hppa_gdbarch_init): Don't register deleted functions with
11626 gdbarch.
11627
9734a586
AB
116282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11629
11630 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11631 (h8300_unwind_sp): Delete.
11632 (h8300_dummy_id): Delete.
11633 (h8300_gdbarch_init): Don't register deleted functions with
11634 gdbarch.
11635
68b867f3
AB
116362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11637
11638 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11639 (ft32_unwind_pc): Delete.
11640 (ft32_unwind_sp): Delete.
11641 (ft32_gdbarch_init): Don't register deleted functions with
11642 gdbarch.
11643
2fbe7ad0
AB
116442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11645
11646 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11647 (frv_unwind_pc): Delete.
11648 (frv_unwind_sp): Delete.
11649 (frv_gdbarch_init): Don't register deleted functions with
11650 gdbarch.
11651
76055cbe
AB
116522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11655 (riscv_unwind_pc): Delete.
11656 (riscv_unwind_sp): Delete.
11657 (riscv_gdbarch_init): Don't register deleted functions with
11658 gdbarch.
11659
4133e5a1
AB
116602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11661
11662 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11663 (csky_unwind_pc): Delete.
11664 (csky_unwind_sp): Delete.
11665 (csky_gdbarch_init): Don't register deleted functions with
11666 gdbarch.
11667
8010f576
AB
116682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11669
11670 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11671 (cris_unwind_pc): Delete.
11672 (cris_unwind_sp): Delete.
11673 (cris_gdbarch_init): Don't register deleted functions with
11674 gdbarch.
11675
b56bf084
AB
116762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11677
11678 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11679 (bfin_unwind_pc): Delete.
11680 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11681
a19a650f
AB
116822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11683
11684 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11685 (arm_unwind_pc): Delete.
11686 (arm_unwind_sp): Delete.
11687 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11688
f8278c3c
AB
116892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11690
11691 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11692 (arc_unwind_pc): Delete.
11693 (arc_unwind_sp): Delete.
11694 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11695
480e46cf
AB
116962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11697
11698 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11699 (alpha_unwind_pc): Delete.
11700 (alpha_gdbarch_init): Don't register deleted functions with
11701 gdbarch.
11702
7a995095
AB
117032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11706 (aarch64_unwind_pc): Delete.
11707 (aarch64_unwind_sp): Delete.
11708 (aarch64_gdbarch_init): Don't register deleted functions with
11709 gdbarch.
11710
bf9a735e
AB
117112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11712
11713 * gdbtypes.c (type_align): Don't consider static members when
11714 computing structure alignment.
11715
5561fc30
AB
117162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11717
11718 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11719 return 0 for other types.
11720 * arch-utils.c (default_type_align): Always return 0.
11721 * gdbarch.h: Regenerate.
11722 * gdbarch.sh (type_align): Extend comment.
11723 * gdbtypes.c (type_align): Add additional comments, always call
11724 gdbarch_type_align before applying the default rules.
11725 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11726 generic code will then apply a suitable default.
11727 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11728 types, return 0 for other types.
11729
9335e75a
JB
117302019-02-27 Joel Brobecker <brobecker@adacore.com>
11731
11732 * NEWS: Create a new section for the next release branch.
11733 Rename the section of the current branch, now that it has
11734 been cut.
11735
3d34d8de
JB
117362019-02-27 Joel Brobecker <brobecker@adacore.com>
11737
11738 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11739 * version.in: Bump version to 8.3.50.DATE-git.
11740
143420fb
SM
117412019-02-26 Simon Marchi <simon.marchi@efficios.com>
11742
11743 * aix-thread.c (ptid_cmp): Remove unused variable.
11744 (get_signaled_thread): Likewise.
11745 (store_regs_user_thread): Likewise.
11746 (store_regs_kernel_thread): Likewise.
11747 (fetch_regs_kernel_thread): Remove shadowed variable.
11748
172fb711
AB
117492019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11750
11751 * features/riscv/32bit-cpu.xml: Add register numbers.
11752 * features/riscv/32bit-fpu.c: Regenerate.
11753 * features/riscv/32bit-fpu.xml: Add register numbers.
11754 * features/riscv/64bit-cpu.xml: Add register numbers.
11755 * features/riscv/64bit-fpu.c: Regenerate.
11756 * features/riscv/64bit-fpu.xml: Add register numbers.
11757
26c89782
KB
117582019-02-26 Kevin Buettner <kevinb@redhat.com>
11759
af54ade9 11760 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11761 * python/py-value.c (convert_buffer_and_type_to_value): New
11762 function.
11763 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11764 Add support for handling an optional second argument. Call
11765 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11766 * python/python-internal.h (Py_buffer_deleter): New struct.
11767 (Py_buffer_up): New typedef.
11768
0f58c9e8
JB
117692019-02-25 John Baldwin <jhb@FreeBSD.org>
11770
11771 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11772 instead of releasing ownership.
11773
0a0f4c01
JR
117742019-02-25 Jordan Rupprecht <rupprecht@google.com>
11775
11776 * dwarf2read.c (open_and_init_dwp_file): Call
11777 elf_numsections instead of bfd_count_sections to initialize
11778 dwp_file->num_sections.
11779
cd5a152c
TT
117802019-02-25 Tom Tromey <tromey@adacore.com>
11781
11782 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11783
8a6a8513
SDJ
117842019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11785
11786 * gcore.in: Add '--readnever' option when invoking GDB.
11787
04dcda9c
SM
117882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * MAINTAINERS: Update my email address.
11791
07bc701d
SM
117922019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11793
11794 * build-id.c (build_id_to_debug_bfd_1): New function.
11795 (build_id_to_debug_bfd): Look for separate debug file in
11796 sysroot.
11797
c6f4a5d0
AB
117982019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11799
11800 * gdbarch.sh: Update the copyright year range that is placed into
11801 generated files.
11802
9600246d
KS
118032019-02-22 Keith Seitz <keiths@redhat.com>
11804
11805 PR symtab/23853
11806 * linespec.c (create_sals_line_offset): Search for the default
11807 symtab's filename instead of its fullname.
11808
7557a514
AH
118092019-02-21 Alan Hayward <alan.hayward@arm.com>
11810
11811 * NEWS: Update style defaults.
11812
ee2bcb0c
AH
118132019-02-21 Alan Hayward <alan.hayward@arm.com>
11814
11815 * main.c (captured_main_1): Disable styling in batch mode.
11816
0c95f9ed
TT
118172019-02-20 Tom Tromey <tom@tromey.com>
11818
11819 * symtab.c (symtab_symbol_info): Fix typos.
11820
c763b894
TT
118212019-02-20 Tom Tromey <tromey@adacore.com>
11822
11823 * findcmd.c (_initialize_mem_search): Use upper case for
11824 metasyntactic variables.
11825
0ef8a082
AH
118262019-02-20 Alan Hayward <alan.hayward@arm.com>
11827
11828 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11829 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11830
6caa91b6
SM
118312019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11832
11833 * top.h (source_file_name): Change to std::string.
11834 * top.c (source_file_name): Likewise.
11835 (command_line_input): Adjust.
11836 * cli/cli-script.c (script_from_file): Adjust.
11837
98814c6c
TT
118382019-02-19 Tom Tromey <tromey@adacore.com>
11839
11840 * ravenscar-thread.c
11841 (ravenscar_thread_target::update_thread_list): Don't call
11842 ada_build_task_list.
11843 * ada-lang.h (ada_build_task_list): Don't declare.
11844 * ada-tasks.c (struct ada_tasks_inferior_data)
11845 <task_list_valid_p>: Now bool.
11846 (read_known_tasks, ada_task_list_changed)
11847 (ada_tasks_invalidate_inferior_data): Update.
11848 (read_known_tasks_array): Return bool.
11849 (read_known_tasks_list): Likewise.
11850 (read_known_tasks): Return void.
11851 (ada_build_task_list): Now static.
11852
70cd633e
AB
118532019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11856 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11857
040b3e95
PW
118582019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11859
11860 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11861 variant for ada_tasks_pspace_data_handle and
11862 ada_tasks_inferior_data_handle.
11863 (ada_tasks_pspace_data_cleanup): New function.
11864 (ada_tasks_inferior_data_cleanup): New function.
11865
9409233b
TT
118662019-02-17 Tom Tromey <tom@tromey.com>
11867
11868 * macrotab.h (macro_source_fullname): Return a std::string.
11869 * macrotab.c (macro_include, check_for_redefinition)
11870 (macro_undef, macro_lookup_definition, foreach_macro)
11871 (foreach_macro_in_scope): Update.
11872 (macro_source_fullname): Return a std::string.
11873 * macrocmd.c (show_pp_source_pos): Update.
11874
6506371f
TT
118752019-02-17 Tom Tromey <tom@tromey.com>
11876
11877 * macrocmd.c (show_pp_source_pos): Style the file names.
11878
0c820d67
TT
118792019-02-17 Tom Tromey <tom@tromey.com>
11880
11881 PR tui/24197:
11882 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11883
a0087920
TT
118842019-02-17 Tom Tromey <tom@tromey.com>
11885
11886 * ada-lang.c (user_select_syms): Use filtered printing.
11887 * utils.c (wrap_style): New global.
11888 (desired_style): Remove.
11889 (emit_style_escape): Add stream parameter.
11890 (set_output_style, reset_terminal_style, prompt_for_continue):
11891 Update.
11892 (flush_wrap_buffer): Only flush gdb_stdout.
11893 (wrap_here): Set wrap_style.
11894 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11895 treat escape sequences as a character. Change when wrap buffer is
11896 flushed.
11897 (fputs_styled): Do not set the output style when the default is
11898 requested.
11899 * ui-style.h (struct ui_file_style) <is_default>: New method.
11900 * source.c (print_source_lines_base): Emit escape sequences in one
11901 piece.
11902
75ba10dc
JB
119032019-02-17 Joel Brobecker <brobecker@adacore.com>
11904
11905 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11906 integers and enumeration types.
11907
a2cd4f14
JB
119082019-02-17 Joel Brobecker <brobecker@adacore.com>
11909
11910 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11911 instead of lookup_symbol_in_language
11912 (do_exact_match): New function.
11913 (ada_get_symbol_name_matcher): Return do_exact_match when
11914 doing a verbatim match.
11915
485b851b
TT
119162019-02-15 Tom Tromey <tromey@adacore.com>
11917
11918 * ravenscar-thread.c (ravenscar_thread_target::resume)
11919 (ravenscar_thread_target::wait): Special case wildcard requests.
11920
0b790b1e
TT
119212019-02-15 Tom Tromey <tromey@adacore.com>
11922
11923 * ravenscar-thread.c (base_ptid): Remove.
11924 (struct ravenscar_thread_target) <close>: New method.
11925 <m_base_ptid>: New member.
11926 <update_inferior_ptid, active_task, task_is_currently_active,
11927 runtime_initialized>: Declare methods.
11928 <ravenscar_thread_target>: Add constructor.
11929 (ravenscar_thread_target::task_is_currently_active)
11930 (ravenscar_thread_target::update_inferior_ptid)
11931 (ravenscar_runtime_initialized): Rename. Now methods.
11932 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11933 (ravenscar_thread_target::update_thread_list): Update.
11934 (ravenscar_thread_target::active_task): Now method.
11935 (ravenscar_thread_target::store_registers)
11936 (ravenscar_thread_target::prepare_to_store)
11937 (ravenscar_thread_target::prepare_to_store)
11938 (ravenscar_thread_target::mourn_inferior): Update.
11939 (ravenscar_inferior_created): Use "new" to create target.
11940 (ravenscar_thread_target::get_ada_task_ptid): Update.
11941 (_initialize_ravenscar): Don't initialize base_ptid.
11942 (ravenscar_ops): Remove global.
11943
dea57a62
TT
119442019-02-15 Tom Tromey <tromey@adacore.com>
11945
11946 * target.h (push_target): Declare new overload.
11947 * target.c (push_target): New overload, taking an rvalue reference.
11948 * remote.c (remote_target::open_1): Use push_target overload.
11949 * corelow.c (core_target_open): Use push_target overload.
11950
989f3c58
TT
119512019-02-15 Tom Tromey <tromey@adacore.com>
11952
11953 * ravenscar-thread.c (is_ravenscar_task)
11954 (ravenscar_task_is_currently_active): Return bool.
11955 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11956 (_initialize_ravenscar): Remove "(void)".
11957 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11958 Return bool.
11959
6cbcc006
TT
119602019-02-15 Tom Tromey <tromey@adacore.com>
11961
11962 * ravenscar-thread.c (ravenscar_runtime_initializer)
11963 (has_ravenscar_runtime, get_running_thread_id)
11964 (ravenscar_thread_target::resume): Fix indentation.
11965
7657f14d
TT
119662019-02-15 Tom Tromey <tromey@adacore.com>
11967
11968 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11969 from ravenscar_arch_ops.
11970 (sparc_ravenscar_ops::fetch_registers)
11971 (sparc_ravenscar_ops::store_registers): Now methods.
11972 (sparc_ravenscar_prepare_to_store): Remove.
11973 (sparc_ravenscar_ops): Redefine.
11974 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11975 methods and destructor. Remove members.
11976 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11977 (ravenscar_thread_target::store_registers)
11978 (ravenscar_thread_target::prepare_to_store): Update.
11979 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11980 Remove.
11981 (struct ppc_ravenscar_powerpc_ops): Derive from
11982 ravenscar_arch_ops.
11983 (ppc_ravenscar_powerpc_ops::fetch_registers)
11984 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11985 (ppc_ravenscar_powerpc_ops): Redefine.
11986 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11987 (ppc_ravenscar_e500_ops::fetch_registers)
11988 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11989 (ppc_ravenscar_e500_ops): Redefine.
11990 * aarch64-ravenscar-thread.c
11991 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11992 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11993 (aarch64_ravenscar_fetch_registers)
11994 (aarch64_ravenscar_store_registers): Now methods.
11995 (aarch64_ravenscar_ops): Redefine.
11996
5b6ea500
TT
119972019-02-15 Tom Tromey <tromey@adacore.com>
11998
11999 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12000 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12001 (ravenscar_thread_target::stopped_by_watchpoint)
12002 (ravenscar_thread_target::stopped_data_address)
12003 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12004
e397fd39
TT
120052019-02-15 Tom Tromey <tromey@adacore.com>
12006
12007 * ravenscar-thread.c: Fix some typos.
12008
cc12f4a8
TT
120092019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12010 Tom Tromey <tromey@adacore.com>
12011
12012 * ada-lang.c (ada_exception_sal): Change addr_string to a
12013 std::string.
12014 (create_ada_exception_catchpoint): Update.
12015
5f486660
TT
120162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12017 Tom Tromey <tromey@adacore.com>
12018
12019 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12020 (bp_location_ops): Remove.
12021 (base_breakpoint_allocate_location): Update.
12022 (free_bp_location): Update.
12023 * ada-lang.c (class ada_catchpoint_location)
12024 <ada_catchpoint_location>: Remove ops parameter.
12025 (ada_catchpoint_location_dtor): Remove.
12026 (ada_catchpoint_location_ops): Remove.
12027 (allocate_location_exception): Update.
12028 * breakpoint.h (struct bp_location_ops): Remove.
12029 (class bp_location) <bp_location>: Remove bp_location_ops
12030 parameter.
12031 <~bp_location>: Add destructor.
12032 <ops>: Remove.
12033
b671c7fb
TS
120342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12035 Pedro Alves <palves@redhat.com>
12036
12037 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12038 'PATH_MAX'.
12039
8071c5ce
DM
120402019-02-14 David Michael <fedora.dm0@gmail.com>
12041 Samuel Thibault <samuel.thibault@gnu.org>
12042 Thomas Schwinge <thomas@codesourcery.com>
12043
12044 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12045 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12046
b1041ae0
TS
120472019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12048
924514e1
TS
12049 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12050 (check_empty): Use "const char *".
12051
c29ee8d4
TS
12052 * gnu-nat.c (gnu_nat_target::detach): Instead of
12053 'detach_inferior (pid)' call
12054 'detach_inferior (find_inferior_pid (pid))'.
12055
6c6ef69f
TS
12056 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12057 'nat/fork-inferior.o'.
12058 * gnu-nat.c: #include "nat/fork-inferior.h".
12059
2d0a338c
TS
12060 * gnu-nat.c (gnu_nat_target::detach): Instead of
12061 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12062 * gnu-nat.h: #include "inf-child.h".
12063 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12064 'i386_gnu_nat_target::fetch_registers'.
12065 (gnu_store_registers): Rename/move to
12066 'i386_gnu_nat_target::store_registers'.
12067
cabb5f06
TS
12068 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12069 * gnu-nat.h (mach_thread_info): New function.
12070 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12071
b1041ae0
TS
12072 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12073
2988d01e
KF
120742019-02-14 Frederic Konrad <konrad@adacore.com>
12075
12076 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12077
c559d709
JB
120782019-02-14 Joel Brobecker <brobecker@adacore.com>
12079
12080 * windows-nat.c (windows_add_thread): Add new parameter
12081 "main_thread_p" with default value set to false. Update
12082 function documentation as well as all callers.
12083 (windows_delete_thread): Likewise.
12084 (fake_create_process): Update call to windows_add_thread.
12085 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12086 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12087 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12088 call to windows_delete_thread.
12089
007024cc
SM
120902019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12091
12092 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12093
f62318e9
JB
120942019-02-12 John Baldwin <jhb@FreeBSD.org>
12095
12096 * symfile.c (find_separate_debug_file): Use canonical path of
12097 sysroot with child_path instead of gdb_sysroot if it is valid.
12098
cd4b7848
JB
120992019-02-12 John Baldwin <jhb@FreeBSD.org>
12100
12101 * symfile.c (find_separate_debug_file): Use child_path to
12102 determine if an object file is under a sysroot.
12103
efac4bfe
JB
121042019-02-12 John Baldwin <jhb@FreeBSD.org>
12105
12106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12107 unittests/child-path-selftests.c.
12108 * common/pathstuff.c (child_path): New function.
12109 * common/pathstuff.h (child_path): New prototype.
12110 * unittests/child-path-selftests.c: New file.
12111
402d2bfe
JB
121122019-02-12 John Baldwin <jhb@FreeBSD.org>
12113
12114 * symfile.c (find_separate_debug_file): Look for separate debug
12115 files in debug directories under the sysroot.
12116
1ed9f74e
PW
121172019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12118
12119 * symtab.h (struct minimal_symbol data_p): New const method.
12120 (struct minimal_symbol text_p): Likewise.
12121 * symtab.c (output_source_filename): Use file name style
12122 to print file name.
12123 (print_symbol_info): Likewise.
12124 (print_msymbol_info): Use address style to print addresses.
12125 Use function name style to print executable text symbols.
12126 (expand_symtab_containing_pc): Use data_p.
12127 (find_pc_sect_compunit_symtab): Likewise.
12128
2636d81d
PW
121292019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12130
12131 * breakpoint.c (describe_other_breakpoints): Use address style
12132 to print addresses.
12133 (say_where): Likewise.
12134
ac8c53cc
PW
121352019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12136
12137 * ada-typeprint.c (print_func_type): Print function name
12138 style to print function name.
12139 * c-typeprint.c (c_print_type_1): Likewise.
12140
ea638c43
AH
121412019-02-11 Alan Hayward <alan.hayward@arm.com>
12142
12143 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12144 for execve.
12145
ab759ca8
PW
121462019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12147
12148 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12149 type_stack.
12150
aff29d1c
JB
121512019-02-10 Joel Brobecker <brobecker@adacore.com>
12152
12153 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12154 TYPE_CODE_REF types.
12155
617126bc
JW
121562019-02-08 Jim Wilson <jimw@sifive.com>
12157
12158 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12159 (riscv_linux_fregset): New.
12160 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12161
46e3ed7f
TT
121622019-02-07 Tom Tromey <tom@tromey.com>
12163
12164 * thread.c (thread_cancel_execution_command): Update.
12165 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12166 methods.
12167 (struct thread_fsm_ops): Remove.
12168 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12169 (thread_fsm_should_stop, thread_fsm_return_value)
12170 (thread_fsm_set_finished, thread_fsm_finished_p)
12171 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12172 Don't declare.
12173 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12174 * infrun.c (clear_proceed_status_thread)
12175 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12176 (print_stop_event): Update.
12177 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12178 Add constructor.
12179 (step_command_fsm_ops): Remove.
12180 (new_step_command_fsm): Remove.
12181 (step_1): Update.
12182 (step_command_fsm::should_stop): Rename from
12183 step_command_fsm_should_stop.
12184 (step_command_fsm::clean_up): Rename from
12185 step_command_fsm_clean_up.
12186 (step_command_fsm::do_async_reply_reason): Rename from
12187 step_command_fsm_async_reply_reason.
12188 (struct until_next_fsm): Inherit from thread_fsm. Add
12189 constructor.
12190 (until_next_fsm_ops): Remove.
12191 (new_until_next_fsm): Remove.
12192 (until_next_fsm::should_stop): Rename from
12193 until_next_fsm_should_stop.
12194 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12195 (until_next_fsm::do_async_reply_reason): Rename from
12196 until_next_fsm_async_reply_reason.
12197 (struct finish_command_fsm): Inherit from thread_fsm. Add
12198 constructor. Change type of breakpoint.
12199 (finish_command_fsm_ops): Remove.
12200 (new_finish_command_fsm): Remove.
12201 (finish_command_fsm::should_stop): Rename from
12202 finish_command_fsm_should_stop.
12203 (finish_command_fsm::clean_up): Rename from
12204 finish_command_fsm_clean_up.
12205 (finish_command_fsm::return_value): Rename from
12206 finish_command_fsm_return_value.
12207 (finish_command_fsm::do_async_reply_reason): Rename from
12208 finish_command_fsm_async_reply_reason.
12209 (finish_command): Update.
12210 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12211 Add constructor.
12212 (call_thread_fsm_ops): Remove.
12213 (call_thread_fsm::call_thread_fsm): Rename from
12214 new_call_thread_fsm.
12215 (call_thread_fsm::should_stop): Rename from
12216 call_thread_fsm_should_stop.
12217 (call_thread_fsm::should_notify_stop): Rename from
12218 call_thread_fsm_should_notify_stop.
12219 (run_inferior_call, call_function_by_hand_dummy): Update.
12220 * cli/cli-interp.c (should_print_stop_to_console): Update.
12221 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12222 Add constructor. Change type of location_breakpoint,
12223 caller_breakpoint.
12224 (until_break_fsm_ops): Remove.
12225 (new_until_break_fsm): Remove.
12226 (until_break_fsm::should_stop): Rename from
12227 until_break_fsm_should_stop.
12228 (until_break_fsm::clean_up): Rename from
12229 until_break_fsm_clean_up.
12230 (until_break_fsm::do_async_reply_reason): Rename from
12231 until_break_fsm_async_reply_reason.
12232 (until_break_command): Update.
12233 * thread-fsm.c: Remove.
12234 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12235
1a5c2598
TT
122362019-02-07 Tom Tromey <tom@tromey.com>
12237
12238 * yy-remap.h: Add include guard.
12239 * xtensa-tdep.h: Add include guard.
12240 * xcoffread.h: Rename include guard.
12241 * varobj-iter.h: Add include guard.
12242 * tui/tui.h: Rename include guard.
12243 * tui/tui-winsource.h: Rename include guard.
12244 * tui/tui-wingeneral.h: Rename include guard.
12245 * tui/tui-windata.h: Rename include guard.
12246 * tui/tui-win.h: Rename include guard.
12247 * tui/tui-stack.h: Rename include guard.
12248 * tui/tui-source.h: Rename include guard.
12249 * tui/tui-regs.h: Rename include guard.
12250 * tui/tui-out.h: Rename include guard.
12251 * tui/tui-layout.h: Rename include guard.
12252 * tui/tui-io.h: Rename include guard.
12253 * tui/tui-hooks.h: Rename include guard.
12254 * tui/tui-file.h: Rename include guard.
12255 * tui/tui-disasm.h: Rename include guard.
12256 * tui/tui-data.h: Rename include guard.
12257 * tui/tui-command.h: Rename include guard.
12258 * tic6x-tdep.h: Add include guard.
12259 * target/waitstatus.h: Rename include guard.
12260 * target/wait.h: Rename include guard.
12261 * target/target.h: Rename include guard.
12262 * target/resume.h: Rename include guard.
12263 * target-float.h: Rename include guard.
12264 * stabsread.h: Add include guard.
12265 * rs6000-tdep.h: Add include guard.
12266 * riscv-fbsd-tdep.h: Add include guard.
12267 * regformats/regdef.h: Rename include guard.
12268 * record.h: Rename include guard.
12269 * python/python.h: Rename include guard.
12270 * python/python-internal.h: Rename include guard.
12271 * python/py-stopevent.h: Rename include guard.
12272 * python/py-ref.h: Rename include guard.
12273 * python/py-record.h: Rename include guard.
12274 * python/py-record-full.h: Rename include guard.
12275 * python/py-record-btrace.h: Rename include guard.
12276 * python/py-instruction.h: Rename include guard.
12277 * python/py-events.h: Rename include guard.
12278 * python/py-event.h: Rename include guard.
12279 * procfs.h: Add include guard.
12280 * proc-utils.h: Add include guard.
12281 * p-lang.h: Add include guard.
12282 * or1k-tdep.h: Rename include guard.
12283 * observable.h: Rename include guard.
12284 * nto-tdep.h: Rename include guard.
12285 * nat/x86-linux.h: Rename include guard.
12286 * nat/x86-linux-dregs.h: Rename include guard.
12287 * nat/x86-gcc-cpuid.h: Add include guard.
12288 * nat/x86-dregs.h: Rename include guard.
12289 * nat/x86-cpuid.h: Rename include guard.
12290 * nat/ppc-linux.h: Rename include guard.
12291 * nat/mips-linux-watch.h: Rename include guard.
12292 * nat/linux-waitpid.h: Rename include guard.
12293 * nat/linux-ptrace.h: Rename include guard.
12294 * nat/linux-procfs.h: Rename include guard.
12295 * nat/linux-osdata.h: Rename include guard.
12296 * nat/linux-nat.h: Rename include guard.
12297 * nat/linux-namespaces.h: Rename include guard.
12298 * nat/linux-btrace.h: Rename include guard.
12299 * nat/glibc_thread_db.h: Rename include guard.
12300 * nat/gdb_thread_db.h: Rename include guard.
12301 * nat/gdb_ptrace.h: Rename include guard.
12302 * nat/fork-inferior.h: Rename include guard.
12303 * nat/amd64-linux-siginfo.h: Rename include guard.
12304 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12305 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12306 * nat/aarch64-linux.h: Rename include guard.
12307 * nat/aarch64-linux-hw-point.h: Rename include guard.
12308 * mn10300-tdep.h: Add include guard.
12309 * mips-linux-tdep.h: Add include guard.
12310 * mi/mi-parse.h: Rename include guard.
12311 * mi/mi-out.h: Rename include guard.
12312 * mi/mi-main.h: Rename include guard.
12313 * mi/mi-interp.h: Rename include guard.
12314 * mi/mi-getopt.h: Rename include guard.
12315 * mi/mi-console.h: Rename include guard.
12316 * mi/mi-common.h: Rename include guard.
12317 * mi/mi-cmds.h: Rename include guard.
12318 * mi/mi-cmd-break.h: Rename include guard.
12319 * m2-lang.h: Add include guard.
12320 * location.h: Rename include guard.
12321 * linux-record.h: Rename include guard.
12322 * linux-nat.h: Add include guard.
12323 * linux-fork.h: Add include guard.
12324 * i386-darwin-tdep.h: Rename include guard.
12325 * hppa-linux-offsets.h: Add include guard.
12326 * guile/guile.h: Rename include guard.
12327 * guile/guile-internal.h: Rename include guard.
12328 * gnu-nat.h: Rename include guard.
12329 * gdb-stabs.h: Rename include guard.
12330 * frv-tdep.h: Add include guard.
12331 * f-lang.h: Add include guard.
12332 * event-loop.h: Add include guard.
12333 * darwin-nat.h: Rename include guard.
12334 * cp-abi.h: Rename include guard.
12335 * config/sparc/nm-sol2.h: Rename include guard.
12336 * config/nm-nto.h: Rename include guard.
12337 * config/nm-linux.h: Add include guard.
12338 * config/i386/nm-i386gnu.h: Rename include guard.
12339 * config/djgpp/nl_types.h: Rename include guard.
12340 * config/djgpp/langinfo.h: Rename include guard.
12341 * compile/gcc-cp-plugin.h: Add include guard.
12342 * compile/gcc-c-plugin.h: Add include guard.
12343 * compile/compile.h: Rename include guard.
12344 * compile/compile-object-run.h: Rename include guard.
12345 * compile/compile-object-load.h: Rename include guard.
12346 * compile/compile-internal.h: Rename include guard.
12347 * compile/compile-cplus.h: Rename include guard.
12348 * compile/compile-c.h: Rename include guard.
12349 * common/xml-utils.h: Rename include guard.
12350 * common/x86-xstate.h: Rename include guard.
12351 * common/version.h: Rename include guard.
12352 * common/vec.h: Rename include guard.
12353 * common/tdesc.h: Rename include guard.
12354 * common/selftest.h: Rename include guard.
12355 * common/scoped_restore.h: Rename include guard.
12356 * common/scoped_mmap.h: Rename include guard.
12357 * common/scoped_fd.h: Rename include guard.
12358 * common/safe-iterator.h: Rename include guard.
12359 * common/run-time-clock.h: Rename include guard.
12360 * common/refcounted-object.h: Rename include guard.
12361 * common/queue.h: Rename include guard.
12362 * common/ptid.h: Rename include guard.
12363 * common/print-utils.h: Rename include guard.
12364 * common/preprocessor.h: Rename include guard.
12365 * common/pathstuff.h: Rename include guard.
12366 * common/observable.h: Rename include guard.
12367 * common/netstuff.h: Rename include guard.
12368 * common/job-control.h: Rename include guard.
12369 * common/host-defs.h: Rename include guard.
12370 * common/gdb_wait.h: Rename include guard.
12371 * common/gdb_vecs.h: Rename include guard.
12372 * common/gdb_unlinker.h: Rename include guard.
12373 * common/gdb_unique_ptr.h: Rename include guard.
12374 * common/gdb_tilde_expand.h: Rename include guard.
12375 * common/gdb_sys_time.h: Rename include guard.
12376 * common/gdb_string_view.h: Rename include guard.
12377 * common/gdb_splay_tree.h: Rename include guard.
12378 * common/gdb_setjmp.h: Rename include guard.
12379 * common/gdb_ref_ptr.h: Rename include guard.
12380 * common/gdb_optional.h: Rename include guard.
12381 * common/gdb_locale.h: Rename include guard.
12382 * common/gdb_assert.h: Rename include guard.
12383 * common/filtered-iterator.h: Rename include guard.
12384 * common/filestuff.h: Rename include guard.
12385 * common/fileio.h: Rename include guard.
12386 * common/environ.h: Rename include guard.
12387 * common/common-utils.h: Rename include guard.
12388 * common/common-types.h: Rename include guard.
12389 * common/common-regcache.h: Rename include guard.
12390 * common/common-inferior.h: Rename include guard.
12391 * common/common-gdbthread.h: Rename include guard.
12392 * common/common-exceptions.h: Rename include guard.
12393 * common/common-defs.h: Rename include guard.
12394 * common/common-debug.h: Rename include guard.
12395 * common/cleanups.h: Rename include guard.
12396 * common/buffer.h: Rename include guard.
12397 * common/btrace-common.h: Rename include guard.
12398 * common/break-common.h: Rename include guard.
12399 * cli/cli-utils.h: Rename include guard.
12400 * cli/cli-style.h: Rename include guard.
12401 * cli/cli-setshow.h: Rename include guard.
12402 * cli/cli-script.h: Rename include guard.
12403 * cli/cli-interp.h: Rename include guard.
12404 * cli/cli-decode.h: Rename include guard.
12405 * cli/cli-cmds.h: Rename include guard.
12406 * charset-list.h: Add include guard.
12407 * buildsym-legacy.h: Rename include guard.
12408 * bfin-tdep.h: Add include guard.
12409 * ax.h: Rename include guard.
12410 * arm-linux-tdep.h: Add include guard.
12411 * arm-fbsd-tdep.h: Add include guard.
12412 * arch/xtensa.h: Rename include guard.
12413 * arch/tic6x.h: Add include guard.
12414 * arch/i386.h: Add include guard.
12415 * arch/arm.h: Rename include guard.
12416 * arch/arm-linux.h: Rename include guard.
12417 * arch/arm-get-next-pcs.h: Rename include guard.
12418 * arch/amd64.h: Add include guard.
12419 * arch/aarch64-insn.h: Rename include guard.
12420 * arch-utils.h: Rename include guard.
12421 * annotate.h: Add include guard.
12422 * amd64-darwin-tdep.h: Rename include guard.
12423 * aarch64-linux-tdep.h: Add include guard.
12424 * aarch64-fbsd-tdep.h: Add include guard.
12425 * aarch32-linux-nat.h: Add include guard.
12426
ab9268d2
PW
124272019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12428
12429 * macrotab.c (macro_define_internal): New function that
12430 factorizes macro_define_object_internal and macro_define_function
12431 code.
12432 (macro_define_object_internal): Use macro_define_internal.
12433 (macro_define_function): Likewise.
12434
bb0da2b4
PW
124352019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12436
12437 * macrocmd.c (extract_identifier): Return
12438 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12439 callers.
12440
424eb552
JB
124412019-02-06 John Baldwin <jhb@FreeBSD.org>
12442
12443 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12444
1688cb29
TT
124452019-02-05 Tom Tromey <tom@tromey.com>
12446
12447 * target.c (target_stack::unpush): Move assertion earlier.
12448
b5eba2d8
TT
124492019-01-30 Tom Tromey <tom@tromey.com>
12450
12451 PR python/23615:
12452 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12453 (gdbpy_parse_and_eval): Likewise.
12454 * python/python-internal.h (gdbpy_allow_threads): New class.
12455
7054e2ff
JB
124562019-01-28 John Baldwin <jhb@FreeBSD.org>
12457
12458 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12459 (aarch64_fbsd_fpregmap): Move earlier.
12460 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12461 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12462 instead of individual calls to trad_frame_set_reg_addr.
12463 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12464 earlier.
12465 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12466 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12467 instead of individual calls to trad_frame_set_reg_addr.
12468
36c25ffa
AH
124692019-01-28 Alan Hayward <alan.hayward@arm.com>
12470
12471 * CONTRIBUTE: Replace contribution list with wiki link.
12472
a0707f3c
TT
124732019-01-25 Tom Tromey <tom@tromey.com>
12474
12475 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12476
0747795c
TT
124772019-01-25 Tom Tromey <tom@tromey.com>
12478
12479 * xtensa-linux-nat.c: Fix common/ includes.
12480 * xml-support.h: Fix common/ includes.
12481 * xml-support.c: Fix common/ includes.
12482 * x86-linux-nat.c: Fix common/ includes.
12483 * windows-nat.c: Fix common/ includes.
12484 * varobj.h: Fix common/ includes.
12485 * varobj.c: Fix common/ includes.
12486 * value.c: Fix common/ includes.
12487 * valops.c: Fix common/ includes.
12488 * utils.c: Fix common/ includes.
12489 * unittests/xml-utils-selftests.c: Fix common/ includes.
12490 * unittests/utils-selftests.c: Fix common/ includes.
12491 * unittests/unpack-selftests.c: Fix common/ includes.
12492 * unittests/tracepoint-selftests.c: Fix common/ includes.
12493 * unittests/style-selftests.c: Fix common/ includes.
12494 * unittests/string_view-selftests.c: Fix common/ includes.
12495 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12496 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12497 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12498 * unittests/rsp-low-selftests.c: Fix common/ includes.
12499 * unittests/parse-connection-spec-selftests.c: Fix common/
12500 includes.
12501 * unittests/optional-selftests.c: Fix common/ includes.
12502 * unittests/offset-type-selftests.c: Fix common/ includes.
12503 * unittests/observable-selftests.c: Fix common/ includes.
12504 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12505 * unittests/memrange-selftests.c: Fix common/ includes.
12506 * unittests/memory-map-selftests.c: Fix common/ includes.
12507 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12508 * unittests/function-view-selftests.c: Fix common/ includes.
12509 * unittests/environ-selftests.c: Fix common/ includes.
12510 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12511 * unittests/common-utils-selftests.c: Fix common/ includes.
12512 * unittests/cli-utils-selftests.c: Fix common/ includes.
12513 * unittests/array-view-selftests.c: Fix common/ includes.
12514 * ui-file.c: Fix common/ includes.
12515 * tui/tui-io.c: Fix common/ includes.
12516 * tracepoint.h: Fix common/ includes.
12517 * tracepoint.c: Fix common/ includes.
12518 * tracefile-tfile.c: Fix common/ includes.
12519 * top.h: Fix common/ includes.
12520 * top.c: Fix common/ includes.
12521 * thread.c: Fix common/ includes.
12522 * target/waitstatus.h: Fix common/ includes.
12523 * target/waitstatus.c: Fix common/ includes.
12524 * target.h: Fix common/ includes.
12525 * target.c: Fix common/ includes.
12526 * target-memory.c: Fix common/ includes.
12527 * target-descriptions.c: Fix common/ includes.
12528 * symtab.h: Fix common/ includes.
12529 * symfile.c: Fix common/ includes.
12530 * stap-probe.c: Fix common/ includes.
12531 * spu-linux-nat.c: Fix common/ includes.
12532 * sparc-nat.c: Fix common/ includes.
12533 * source.c: Fix common/ includes.
12534 * solib.c: Fix common/ includes.
12535 * solib-target.c: Fix common/ includes.
12536 * ser-unix.c: Fix common/ includes.
12537 * ser-tcp.c: Fix common/ includes.
12538 * ser-pipe.c: Fix common/ includes.
12539 * ser-base.c: Fix common/ includes.
12540 * selftest-arch.c: Fix common/ includes.
12541 * s12z-tdep.c: Fix common/ includes.
12542 * rust-exp.y: Fix common/ includes.
12543 * rs6000-aix-tdep.c: Fix common/ includes.
12544 * riscv-tdep.c: Fix common/ includes.
12545 * remote.c: Fix common/ includes.
12546 * remote-notif.h: Fix common/ includes.
12547 * remote-fileio.h: Fix common/ includes.
12548 * remote-fileio.c: Fix common/ includes.
12549 * regcache.h: Fix common/ includes.
12550 * regcache.c: Fix common/ includes.
12551 * record-btrace.c: Fix common/ includes.
12552 * python/python.c: Fix common/ includes.
12553 * python/py-type.c: Fix common/ includes.
12554 * python/py-inferior.c: Fix common/ includes.
12555 * progspace.h: Fix common/ includes.
12556 * producer.c: Fix common/ includes.
12557 * procfs.c: Fix common/ includes.
12558 * proc-api.c: Fix common/ includes.
12559 * printcmd.c: Fix common/ includes.
12560 * ppc-linux-nat.c: Fix common/ includes.
12561 * parser-defs.h: Fix common/ includes.
12562 * osdata.c: Fix common/ includes.
12563 * obsd-nat.c: Fix common/ includes.
12564 * nat/x86-linux.c: Fix common/ includes.
12565 * nat/x86-linux-dregs.c: Fix common/ includes.
12566 * nat/x86-dregs.h: Fix common/ includes.
12567 * nat/x86-dregs.c: Fix common/ includes.
12568 * nat/ppc-linux.c: Fix common/ includes.
12569 * nat/mips-linux-watch.h: Fix common/ includes.
12570 * nat/mips-linux-watch.c: Fix common/ includes.
12571 * nat/linux-waitpid.c: Fix common/ includes.
12572 * nat/linux-ptrace.h: Fix common/ includes.
12573 * nat/linux-ptrace.c: Fix common/ includes.
12574 * nat/linux-procfs.c: Fix common/ includes.
12575 * nat/linux-personality.c: Fix common/ includes.
12576 * nat/linux-osdata.c: Fix common/ includes.
12577 * nat/linux-namespaces.c: Fix common/ includes.
12578 * nat/linux-btrace.h: Fix common/ includes.
12579 * nat/linux-btrace.c: Fix common/ includes.
12580 * nat/fork-inferior.c: Fix common/ includes.
12581 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12582 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12583 * nat/aarch64-linux.c: Fix common/ includes.
12584 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12585 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12586 * namespace.h: Fix common/ includes.
12587 * mips-linux-tdep.c: Fix common/ includes.
12588 * minsyms.c: Fix common/ includes.
12589 * mi/mi-parse.h: Fix common/ includes.
12590 * mi/mi-main.c: Fix common/ includes.
12591 * mi/mi-cmd-env.c: Fix common/ includes.
12592 * memrange.h: Fix common/ includes.
12593 * memattr.c: Fix common/ includes.
12594 * maint.h: Fix common/ includes.
12595 * maint.c: Fix common/ includes.
12596 * main.c: Fix common/ includes.
12597 * machoread.c: Fix common/ includes.
12598 * location.c: Fix common/ includes.
12599 * linux-thread-db.c: Fix common/ includes.
12600 * linux-nat.c: Fix common/ includes.
12601 * linux-fork.c: Fix common/ includes.
12602 * inline-frame.c: Fix common/ includes.
12603 * infrun.c: Fix common/ includes.
12604 * inflow.c: Fix common/ includes.
12605 * inferior.h: Fix common/ includes.
12606 * inferior.c: Fix common/ includes.
12607 * infcmd.c: Fix common/ includes.
12608 * inf-ptrace.c: Fix common/ includes.
12609 * inf-child.c: Fix common/ includes.
12610 * ia64-linux-nat.c: Fix common/ includes.
12611 * i387-tdep.c: Fix common/ includes.
12612 * i386-tdep.c: Fix common/ includes.
12613 * i386-linux-tdep.c: Fix common/ includes.
12614 * i386-linux-nat.c: Fix common/ includes.
12615 * i386-go32-tdep.c: Fix common/ includes.
12616 * i386-fbsd-tdep.c: Fix common/ includes.
12617 * i386-fbsd-nat.c: Fix common/ includes.
12618 * guile/scm-type.c: Fix common/ includes.
12619 * guile/guile.c: Fix common/ includes.
12620 * go32-nat.c: Fix common/ includes.
12621 * gnu-nat.c: Fix common/ includes.
12622 * gdbthread.h: Fix common/ includes.
12623 * gdbarch-selftests.c: Fix common/ includes.
12624 * gdb_usleep.c: Fix common/ includes.
12625 * gdb_select.h: Fix common/ includes.
12626 * gdb_bfd.c: Fix common/ includes.
12627 * gcore.c: Fix common/ includes.
12628 * fork-child.c: Fix common/ includes.
12629 * findvar.c: Fix common/ includes.
12630 * fbsd-nat.c: Fix common/ includes.
12631 * event-top.c: Fix common/ includes.
12632 * event-loop.c: Fix common/ includes.
12633 * dwarf2read.c: Fix common/ includes.
12634 * dwarf2loc.c: Fix common/ includes.
12635 * dwarf2-frame.c: Fix common/ includes.
12636 * dwarf-index-cache.c: Fix common/ includes.
12637 * dtrace-probe.c: Fix common/ includes.
12638 * disasm-selftests.c: Fix common/ includes.
12639 * defs.h: Fix common/ includes.
12640 * csky-tdep.c: Fix common/ includes.
12641 * cp-valprint.c: Fix common/ includes.
12642 * cp-support.h: Fix common/ includes.
12643 * cp-support.c: Fix common/ includes.
12644 * corelow.c: Fix common/ includes.
12645 * completer.h: Fix common/ includes.
12646 * completer.c: Fix common/ includes.
12647 * compile/compile.c: Fix common/ includes.
12648 * compile/compile-loc2c.c: Fix common/ includes.
12649 * compile/compile-cplus-types.c: Fix common/ includes.
12650 * compile/compile-cplus-symbols.c: Fix common/ includes.
12651 * command.h: Fix common/ includes.
12652 * cli/cli-dump.c: Fix common/ includes.
12653 * cli/cli-cmds.c: Fix common/ includes.
12654 * charset.c: Fix common/ includes.
12655 * build-id.c: Fix common/ includes.
12656 * btrace.h: Fix common/ includes.
12657 * btrace.c: Fix common/ includes.
12658 * breakpoint.h: Fix common/ includes.
12659 * breakpoint.c: Fix common/ includes.
12660 * ax.h:
12661 (enum agent_op): Fix common/ includes.
12662 * ax-general.c (struct aop_map): Fix common/ includes.
12663 * ax-gdb.c: Fix common/ includes.
12664 * auxv.c: Fix common/ includes.
12665 * auto-load.c: Fix common/ includes.
12666 * arm-tdep.c: Fix common/ includes.
12667 * arch/riscv.c: Fix common/ includes.
12668 * arch/ppc-linux-common.c: Fix common/ includes.
12669 * arch/i386.c: Fix common/ includes.
12670 * arch/arm.c: Fix common/ includes.
12671 * arch/arm-linux.c: Fix common/ includes.
12672 * arch/arm-get-next-pcs.c: Fix common/ includes.
12673 * arch/amd64.c: Fix common/ includes.
12674 * arch/aarch64.c: Fix common/ includes.
12675 * arch/aarch64-insn.c: Fix common/ includes.
12676 * arch-utils.c: Fix common/ includes.
12677 * amd64-windows-tdep.c: Fix common/ includes.
12678 * amd64-tdep.c: Fix common/ includes.
12679 * amd64-sol2-tdep.c: Fix common/ includes.
12680 * amd64-obsd-tdep.c: Fix common/ includes.
12681 * amd64-nbsd-tdep.c: Fix common/ includes.
12682 * amd64-linux-tdep.c: Fix common/ includes.
12683 * amd64-linux-nat.c: Fix common/ includes.
12684 * amd64-fbsd-tdep.c: Fix common/ includes.
12685 * amd64-fbsd-nat.c: Fix common/ includes.
12686 * amd64-dicos-tdep.c: Fix common/ includes.
12687 * amd64-darwin-tdep.c: Fix common/ includes.
12688 * agent.c: Fix common/ includes.
12689 * ada-lang.h: Fix common/ includes.
12690 * ada-lang.c: Fix common/ includes.
12691 * aarch64-tdep.c: Fix common/ includes.
12692
2f5c153e
TT
126932019-01-25 Tom Tromey <tom@tromey.com>
12694
12695 * common/create-version.sh: Use common/version.h.
12696
adc6a863
PA
126972019-01-24 Pedro Alves <palves@redhat.com>
12698
12699 * infrun.c (signal_stop, signal_print, signal_program)
12700 (signal_catch, signal_pass): Now arrays instead of pointers.
12701 (update_signals_program_target, do_target_resume)
12702 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12703 * linux-nat.c (linux_nat_target::pass_signals)
12704 (linux_nat_target::create_inferior, linux_nat_target::attach):
12705 Adjust.
12706 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12707 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12708 * procfs.c (procfs_target::pass_signals): Adjust.
12709 * record-full.c (record_full_target::resume): Adjust.
12710 * remote.c (remote_target::pass_signals)
12711 (remote_target::program_signals): Adjust.
12712 * target-debug.h (target_debug_print_signals): Now takes a
12713 gdb::array_view as parameter. Adjust.
12714 * target.h (target_ops) <pass_signals, program_signals>: Replace
12715 pointer and length parameters with gdb::array_view.
12716 (target_pass_signals, target_program_signals): Likewise.
12717 * target-delegates.c: Regenerate.
12718
3046d67a
PA
127192019-01-24 Pedro Alves <palves@redhat.com>
12720
12721 * common/forward-scope-exit.h
12722 (forward_scope_exit::forward_scope_exit): Pass arguments to
12723 m_bind_function directly, instead of creating a std::bind and
12724 copying that.
12725
353229bf
AH
127262019-01-24 Alan Hayward <alan.hayward@arm.com>
12727
12728 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12729 for static members.
12730 (pass_in_v_vfp_candidate): Likewise.
12731
311dc83a
TT
127322019-01-23 Tom Tromey <tom@tromey.com>
12733 Pedro Alves <palves@redhat.com>
12734
12735 * regcache.c (class regcache_invalidator): Remove.
12736 (regcache::raw_write): Use make_scope_exit.
12737
296bd123
TT
127382019-01-23 Tom Tromey <tom@tromey.com>
12739
12740 * ui-out.h (class ui_out_emit_type): Update comment.
12741
979a0d13
TT
127422019-01-23 Tom Tromey <tom@tromey.com>
12743
12744 * infrun.c (fetch_inferior_event): Update comment.
12745
d238133d
TT
127462019-01-23 Tom Tromey <tom@tromey.com>
12747 Pedro Alves <palves@redhat.com>
12748
12749 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12750 parameter.
12751 (fetch_inferior_event): Use SCOPE_EXIT.
12752
12753
9885e6bb
TT
127542019-01-23 Tom Tromey <tom@tromey.com>
12755 Pedro Alves <palves@redhat.com>
12756
12757 * infrun.c (disable_thread_events): Delete.
12758 (stop_all_threads): Use SCOPE_EXIT.
12759
286526c1
TT
127602019-01-23 Tom Tromey <tom@tromey.com>
12761 Pedro Alves <palves@redhat.com>
12762
12763 * symfile.c: Include forward-scope-exit.h.
12764 (clear_symtab_users_cleanup): Replace forward declaration with
12765 a FORWARD_SCOPE_EXIT.
12766 (syms_from_objfile_1): Use the forward_scope_exit and
12767 gdb::optional instead of cleanup_function.
12768 (reread_symbols): Use the forward_scope_exit instead of
12769 cleanup_function.
12770 (clear_symtab_users_cleanup): Remove function.
12771
1db93f14
TT
127722019-01-23 Tom Tromey <tom@tromey.com>
12773 Pedro Alves <palves@redhat.com>
12774
12775 * linux-nat.c: Include scope-exit.h.
12776 (cleanup_target_stop): Remove.
12777 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12778 SCOPE_EXIT.
12779
2cc83d1e
TT
127802019-01-23 Tom Tromey <tom@tromey.com>
12781 Pedro Alves <palves@redhat.com>
12782
12783 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12784 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12785
694c6bf5
TT
127862019-01-23 Tom Tromey <tom@tromey.com>
12787 Andrew Burgess <andrew.burgess@embecosm.com>
12788 Pedro Alves <palves@redhat.com>
12789
12790 * infrun.c (fetch_inferior_event): Use scope_exit.
12791 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12792 * top.c (execute_command): Use scope_exit.
12793 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12794 * utils.c (do_bpstat_clear_actions_cleanup)
12795 (make_bpstat_clear_actions_cleanup): Remove.
12796
4c41382a
TT
127972019-01-23 Tom Tromey <tom@tromey.com>
12798 Pedro Alves <palves@redhat.com>
12799
12800 * infrun.c: Include "common/scope-exit.h"
12801 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12802 (wait_for_inferior): Use SCOPE_EXIT.
12803 (fetch_inferior_event): Use scope_exit.
12804
89f8fb50
TT
128052019-01-23 Tom Tromey <tom@tromey.com>
12806 Pedro Alves <palves@redhat.com>
12807
12808 * breakpoint.c (create_breakpoint): Remove cleanup.
12809
5419bdae
TT
128102019-01-23 Tom Tromey <tom@tromey.com>
12811 Andrew Burgess <andrew.burgess@embecosm.com>
12812 Pedro Alves <palves@redhat.com>
12813
e587ef42
PA
128142019-01-23 Pedro Alves <palves@redhat.com>
12815
12816 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12817
77f0e74c
PA
128182019-01-23 Pedro Alves <palves@redhat.com>
12819 Andrew Burgess <andrew.burgess@embecosm.com>
12820
12821 * gdbthread.h: Include "common/forward-scope-exit.h".
12822 (scoped_finish_thread_state): Redefine custom class in terms of
12823 forward_scope_exit.
12824
5b9b3e53
PA
128252019-01-23 Pedro Alves <palves@redhat.com>
12826 Andrew Burgess <andrew.burgess@embecosm.com>
12827
12828 * common/forward-scope-exit.h: New file.
12829
54b65c9b
PA
128302019-01-23 Pedro Alves <palves@redhat.com>
12831 Andrew Burgess <andrew.burgess@embecosm.com>
12832 Tom Tromey <tom@tromey.com>
12833
12834 * common/scope-exit.h: New file.
12835
cf08fb29
PA
128362019-01-23 Pedro Alves <palves@redhat.com>
12837
12838 * common/preprocessor.h (ESC): Rename to ...
12839 (ESC_PARENS): ... this.
12840 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12841 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12842
ae73e2e2
TT
128432019-01-23 Tom Tromey <tom@tromey.com>
12844
12845 * language.h (class scoped_switch_to_sym_language_if_auto):
12846 Initialize m_lang in both cases.
12847
6594e122
AH
128482019-01-23 Alan Hayward <alan.hayward@arm.com>
12849
12850 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12851 with XCNEW.
12852
a7c9855d
TT
128532019-01-22 Tom Tromey <tom@tromey.com>
12854
12855 * corelow.c: Do not include sys/file.h.
12856
93cc1d53
TT
128572019-01-22 Tom Tromey <tom@tromey.com>
12858
12859 * tui/tui-wingeneral.h: Include gdb_curses.h.
12860
38561778
TT
128612019-01-22 Tom Tromey <tom@tromey.com>
12862
12863 * source-cache.h (class source_cache) <get_source_lines,
12864 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12865
37b3ab5b
TT
128662019-01-22 Tom Tromey <tom@tromey.com>
12867
12868 * remote-fileio.h (struct remote_target): Declare.
12869
3fabc016
TT
128702019-01-22 Tom Tromey <tom@tromey.com>
12871
12872 * python/py-arch.c: Do not include py-ref.h.
12873 * python/py-bpevent.c: Do not include py-ref.h.
12874 * python/py-cmd.c: Do not include py-ref.h.
12875 * python/py-continueevent.c: Do not include py-ref.h.
12876 * python/py-event.h: Do not include py-ref.h.
12877 * python/py-evtregistry.c: Do not include py-ref.h.
12878 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12879 * python/py-frame.c: Do not include py-ref.h.
12880 * python/py-framefilter.c: Do not include py-ref.h.
12881 * python/py-function.c: Do not include py-ref.h.
12882 * python/py-infevents.c: Do not include py-ref.h.
12883 * python/py-linetable.c: Do not include py-ref.h.
12884 * python/py-objfile.c: Do not include py-ref.h.
12885 * python/py-param.c: Do not include py-ref.h.
12886 * python/py-prettyprint.c: Do not include py-ref.h.
12887 * python/py-progspace.c: Do not include py-ref.h.
12888 * python/py-symbol.c: Do not include py-ref.h.
12889 * python/py-symtab.c: Do not include py-ref.h.
12890 * python/py-type.c: Do not include py-ref.h.
12891 * python/py-unwind.c: Do not include py-ref.h.
12892 * python/py-utils.c: Do not include py-ref.h.
12893 * python/py-value.c: Do not include py-ref.h.
12894 * python/py-varobj.c: Do not include py-ref.h.
12895 * python/py-xmethods.c: Do not include py-ref.h.
12896 * python/python.c: Do not include py-ref.h.
12897 * varobj.c: Do not include py-ref.h.
12898
6b4d7774
TT
128992019-01-22 Tom Tromey <tom@tromey.com>
12900
12901 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12902 keyword for bcache.
12903
7af7e9b5
TT
129042019-01-22 Tom Tromey <tom@tromey.com>
12905
12906 * compile/compile-cplus-types.c: Remove a comment by #include.
12907
951d1049
TT
129082019-01-22 Tom Tromey <tom@tromey.com>
12909
12910 * compile/gcc-c-plugin.h: Include compile-internal.h.
12911
d65d5705
TT
129122019-01-22 Tom Tromey <tom@tromey.com>
12913
12914 * stabsread.c (EXTERN): Do not define.
12915 (symnum, next_symbol_text_func, processing_gcc_compilation)
12916 (within_function, global_sym_chain, global_stabs)
12917 (previous_stab_code, this_object_header_files)
12918 (n_this_object_header_files)
12919 (n_allocated_this_object_header_files): Define.
12920 * stabsread.h (EXTERN): Never define. Use "extern".
12921
b6fb1ee5
PW
129222019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12923
12924 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12925 history_value.
12926
be6d4f74
TT
129272019-01-21 Tom Tromey <tom@tromey.com>
12928
12929 * ui-out.c: Fix includes.
12930 * tui/tui-source.c: Fix includes.
12931 * target.c: Fix includes.
12932 * remote.c: Fix includes.
12933 * regcache.c: Fix includes.
12934 * python/py-block.c: Fix includes.
12935 * printcmd.c: Fix includes.
12936 * or1k-tdep.c: Fix includes.
12937 * mi/mi-main.c: Fix includes.
12938 * m32r-tdep.c: Fix includes.
12939 * csky-tdep.c: Fix includes.
12940 * compile/compile-cplus-types.c: Fix includes.
12941 * cli/cli-interp.c: Fix includes.
12942
73021deb
AH
129432019-01-21 Alan Hayward <alan.hayward@arm.com>
12944
12945 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12946 for padding.
12947
7932255d
TT
129482019-01-16 Tom Tromey <tom@tromey.com>
12949
12950 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12951 earlier.
12952 (struct objfile) <msymbols_range>: Move from top level.
12953 <msymbols>: New method.
12954 (class objfile_msymbols): Remove.
12955 * symtab.c (default_collect_symbol_completion_matches_break_on):
12956 Update.
12957 * symmisc.c (dump_msymbols): Update.
12958 * stabsread.c (scan_file_globals): Update.
12959 * objc-lang.c (info_selectors_command, info_classes_command)
12960 (find_methods): Update.
12961 * minsyms.c (find_solib_trampoline_target): Update.
12962 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12963 * coffread.c (coff_symfile_read): Update.
12964 * ada-lang.c (ada_lookup_simple_minsym)
12965 (ada_collect_symbol_completion_matches): Update.
12966
604b1bfb
TT
129672019-01-16 Tom Tromey <tom@tromey.com>
12968
12969 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12970 type. Remove no-argument constructor.
12971 <iterator::operator++>: Simplify.
12972 <begin>: Update.
12973 <end>: Use minimal_symbol_count.
12974
f252c6d5
TT
129752019-01-16 Tom Tromey <tom@tromey.com>
12976
12977 * objfiles.h (struct objfile) <psymtabs>: New method.
12978 (class objfile_psymtabs): Remove.
12979 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12980 typedef.
12981 <range>: New method.
12982 (require_partial_symbols): Change return type.
12983 * psymtab.c (require_partial_symbols)
12984 (psym_expand_symtabs_matching): Update.
12985 * mdebugread.c (parse_partial_symbols): Update.
12986 * dbxread.c (dbx_end_psymtab): Update.
12987
b669c953
TT
129882019-01-15 Tom Tromey <tom@tromey.com>
12989
12990 * symtab.c (lookup_objfile_from_block)
12991 (lookup_symbol_in_objfile_symtabs)
12992 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12993 (find_line_symtab, info_sources_command)
12994 (default_collect_symbol_completion_matches_break_on)
12995 (make_source_files_completion_list): Update.
12996 * symmisc.c (print_objfile_statistics, dump_objfile)
12997 (maintenance_print_symbols, maintenance_info_symtabs)
12998 (maintenance_check_symtabs, maintenance_info_line_tables):
12999 Update.
13000 * source.c (select_source_symtab)
13001 (forget_cached_source_info_for_objfile): Update.
13002 * objfiles.h (class objfile_compunits): Remove.
13003 (struct objfile) <compunits_range>: New typedef.
13004 (compunits): New method.
13005 * objfiles.c (objfile_relocate1): Update.
13006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13007 * maint.c (count_symtabs_and_blocks): Update.
13008 * linespec.c (iterate_over_all_matching_symtabs): Update.
13009 * cp-support.c (add_symbol_overload_list_qualified): Update.
13010 * coffread.c (coff_symtab_read): Update.
13011 * ada-lang.c (add_nonlocal_symbols)
13012 (ada_collect_symbol_completion_matches)
13013 (ada_add_global_exceptions): Update.
13014
7e955d83
TT
130152019-01-15 Tom Tromey <tom@tromey.com>
13016
13017 * progspace.h (program_space) <objfiles_safe_range>: New
13018 typedef.
13019 <objfiles_safe>: New method.
13020 * objfiles.h (class all_objfiles_safe): Remove.
13021 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13022 * jit.c (jit_inferior_exit_hook): Update.
13023
2030c079
TT
130242019-01-17 Tom Tromey <tom@tromey.com>
13025
13026 * progspace.h (program_space) <objfiles_range>: New typedef.
13027 <objfiles>: New method.
13028 <objfiles_head>: Rename from objfiles.
13029 (object_files): Update.
13030 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13031 * guile/scm-pretty-print.c
13032 (ppscm_find_pretty_printer_from_objfiles): Update.
13033 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13034 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13035 Update.
13036 * python/py-progspace.c (pspy_get_objfiles): Update.
13037 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13038 Update.
13039 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13040 (objfpy_lookup_objfile_by_build_id): Update.
13041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13042 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13043 Update.
13044 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13045 (expand_symtab_containing_pc, lookup_objfile_from_block)
13046 (lookup_static_symbol, basic_lookup_transparent_type)
13047 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13048 (find_line_symtab, info_sources_command)
13049 (default_collect_symbol_completion_matches_break_on)
13050 (make_source_files_completion_list, find_main_name): Update.
13051 * symmisc.c (print_symbol_bcache_statistics)
13052 (print_objfile_statistics, maintenance_print_symbols)
13053 (maintenance_print_msymbols, maintenance_print_objfiles)
13054 (maintenance_info_symtabs, maintenance_check_symtabs)
13055 (maintenance_expand_symtabs, maintenance_info_line_tables):
13056 Update.
13057 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13058 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13059 (map_overlay_command, unmap_overlay_command)
13060 (simple_overlay_update, expand_symtabs_matching)
13061 (map_symbol_filenames): Update.
13062 * symfile-debug.c (set_debug_symfile): Update.
13063 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13064 Update.
13065 * source.c (select_source_symtab, forget_cached_source_info):
13066 Update.
13067 * solib.c (solib_read_symbols): Update.
13068 * solib-spu.c (append_ocl_sos): Update.
13069 * psymtab.c (maintenance_print_psymbols)
13070 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13071 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13072 * printcmd.c (info_symbol_command): Update.
13073 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13074 Update.
13075 * objfiles.h (class all_objfiles): Remove.
13076 * objfiles.c (have_partial_symbols, have_full_symbols)
13077 (have_minimal_symbols, qsort_cmp, update_section_map)
13078 (shared_objfile_contains_address_p)
13079 (default_iterate_over_objfiles_in_search_order): Update.
13080 * objc-lang.c (info_selectors_command, info_classes_command)
13081 (find_methods): Update.
13082 * minsyms.c (find_solib_trampoline_target): Update.
13083 * maint.c (maintenance_info_sections)
13084 (maintenance_translate_address, count_symtabs_and_blocks):
13085 Update.
13086 * main.c (captured_main_1): Update.
13087 * linux-thread-db.c (try_thread_db_load_from_pdir)
13088 (has_libpthread): Update.
13089 * linespec.c (iterate_over_all_matching_symtabs)
13090 (search_minsyms_for_name): Update.
13091 * jit.c (jit_find_objf_with_entry_addr): Update.
13092 * hppa-tdep.c (find_unwind_entry)
13093 (hppa_lookup_stub_minimal_symbol): Update.
13094 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13095 Update.
13096 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13097 (elf_gnu_ifunc_resolve_by_got): Update.
13098 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13099 * dwarf-index-write.c (save_gdb_index_command): Update.
13100 * cp-support.c (add_symbol_overload_list_qualified): Update.
13101 * breakpoint.c (create_overlay_event_breakpoint)
13102 (create_longjmp_master_breakpoint)
13103 (create_std_terminate_master_breakpoint)
13104 (create_exception_master_breakpoint): Update.
13105 * blockframe.c (find_pc_partial_function): Update.
13106 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13107 (ada_collect_symbol_completion_matches)
13108 (ada_add_global_exceptions): Update.
13109
776489e0
TT
131102019-01-17 Tom Tromey <tom@tromey.com>
13111
13112 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13113 declare VEC.
13114 (solib_target_parse_libraries): Change return type.
13115 (library_list_start_segment, library_list_start_section)
13116 (library_list_end_library, library_list_start_library); Update.
13117 (solib_target_free_library_list): Remove.
13118 (solib_target_parse_libraries): Remove cleanup. Change return
13119 type.
13120 (solib_target_current_sos): Update.
13121
6471e7d2
TT
131222019-01-17 Tom Tromey <tromey@bapiya>
13123
13124 * valprint.c: Replace "the the" with "the".
13125 * symtab.c: Replace "the the" with "the".
13126 * solib.c: Replace "the the" with "the".
13127 * solib-dsbt.c: Replace "the the" with "the".
13128 * linespec.c: Replace "the the" with "the".
13129 * dwarf2loc.h: Replace "the the" with "the".
13130 * amd64-windows-tdep.c: Replace "the the" with "the".
13131 * aarch64-tdep.c: Replace "the the" with "the".
13132
c24bdb02
KS
131332019-01-16 Keith Seitz <keiths@redhat.com>
13134
13135 PR gdb/23773
13136 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13137 <builder>: Rename to ..
13138 <m_builder>: ... this and make private.
13139 (dwarf2_cu::get_builder): New method. Change all users of
13140 `builder' to use this method.
13141 (dwarf2_start_symtab): Move to ...
13142 (dwarf2_cu::start_symtab): ... here. Update all callers
13143 (setup_type_unit_groups): Move to ...
13144 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13145 callers.
13146 (dwarf2_cu::reset_builder): New method.
13147 (process_full_compunit, process_full_type_unit): Use
13148 dwarf2_cu::reset_builder.
13149 (follow_die_offset): Record the ancestor CU if it is different
13150 from the followed DIE's CU.
13151 (follow_die_sig_1): Likewise.
13152
8d64371b
TT
131532019-01-15 Tom Tromey <tom@tromey.com>
13154
13155 * remote.c (class remote_state) <buf>: Now a char_vector.
13156 <buf_size>: Remove.
13157 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13158 parameter.
13159 (remote_target::getpkt_or_notif_sane_1)
13160 (remote_target::getpkt_sane)
13161 (remote_target::getpkt_or_notif_sane): Likewise.
13162 (class remote_target) <putpkt>: New overload.
13163 (remote_target::read_frame): Change type of "buf_p". Remove
13164 sizeof_p parameter.
13165 (packet_ok): New overload.
13166 (packet_check_result): New overload.
13167 Update all uses.
13168
bb277751
TT
131692019-01-14 Tom Tromey <tom@tromey.com>
13170
13171 * remote-notif.c (handle_notification, remote_notif_ack)
13172 (remote_notif_parse): Make "buf" const.
13173 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13174 const.
13175 (remote_notif_parse, remote_notif_ack, handle_notification):
13176 Likewise.
13177 * remote.c (remote_notif_stop_parse): Make "buf" const.
13178 (remote_target::remote_parse_stop_reply): Make "buf" const.
13179 (remote_notif_stop_ack): Make "buf" const.
13180
05be00a8
TT
131812019-01-14 Tom Tromey <tom@tromey.com>
13182
13183 * remote.c (remote_console_output): Make parameter const.
13184
491adeca
TT
131852019-01-14 Tom Tromey <tom@tromey.com>
13186
13187 * target-debug.h (target_debug_print_signals): Constify.
13188 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13189 * procfs.c (procfs_target::pass_signals): Update.
13190 * linux-nat.c (linux_nat_target::pass_signals): Update.
13191 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13192 * target-delegates.c: Rebuild.
13193 * remote.c (remote_target::program_signals): Update.
13194 (remote_target::pass_signals): Update.
13195 * target.c (target_pass_signals): Constify argument.
13196 (target_program_signals): Likewise.
13197 * target.h (struct target_ops) <pass_signals, program_signals>:
13198 Constify argument.
13199 (target_pass_signals, target_program_signals): Constify argument.
13200
bbd94648
TT
132012019-01-14 Tom Tromey <tom@tromey.com>
13202
13203 PR tui/28819:
13204 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13205
6f072a10
PFC
132062019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13207
13208 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13209 field.
13210 * rs6000-tdep.c: Include reggroups.h.
13211 (IS_V_ALIAS_PSEUDOREG): Define.
13212 (rs6000_register_name): Return names for the "vX" aliases.
13213 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13214 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13215 aliases. Call default_register_reggroup_p for all other
13216 pseudo-registers.
13217 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13218 New functions.
13219 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13220 Handle "vX" aliases.
13221 (v_alias_pseudo_register_collect): New function.
13222 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13223 (rs6000_gdbarch_init): Initialize "vX" aliases as
13224 pseudo-registers. Restore registration of
13225 rs6000_pseudo_register_reggroup_p with
13226 set_tdesc_pseudo_register_reggroup_p.
13227
1a782351
MF
132282019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13229
13230 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13231 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13232 set_gdbarch_num_pseudo_regs.
13233
d73cff18
PW
132342019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13235
13236 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13237 Remove arg prefixname, add do_set and do_show.
13238 Add member functions set_list and show_list.
13239 * cli/cli-style.c (class cli_style_option): Update accordingly.
13240 (style_set_list): Move to file scope.
13241 (style_show_list): Likewise.
13242 (set_style): Call help_list.
13243 (show_style): Call cmd_show_list.
13244 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13245 Update to use the new macro.
13246
60a90376
JB
132472019-10-12 Joel Brobecker <brobecker@adacore.com>
13248
13249 * ada-lang.c (_initialize_ada_language): Expand the help text
13250 for the "catch exception" command.
13251
9d7c67bf
PW
132522019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13253
13254 * symtab.c (matching_obj_sections): Initialize obj,
13255 declare it closer to its usage.
13256
7cf47dc4
TT
132572019-01-10 Tom Tromey <tom@tromey.com>
13258
13259 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13260 (basic_inf_threads_range): Remove.
13261 (inf_threads_range, inf_non_exited_threads_range)
13262 (safe_inf_threads_range): Use next_adapter.
13263
d3cb6808
KS
132642019-01-10 Keith Seitz <keiths@redhat.com>
13265
13266 PR gdb/23712
13267 PR symtab/23010
13268 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13269 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13270
63a20375
KS
132712019-01-10 Keith Seitz <keiths@redhat.com>
13272
13273 PR gdb/23712
13274 PR symtab/23010
13275 * dictionary.c (pending_to_vector): Remove.
13276 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13277 Remove _1 suffix, replacing functions of the same name. Update
13278 all callers.
13279 (dict_create_hashed, dict_create_hashed_expandable)
13280 (dict_create_linear, dict_create_linear_expandable, dict_free)
13281 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13282 Make functions static.
13283
b026f593
KS
132842019-01-10 Keith Seitz <keiths@redhat.com>
13285
13286 PR gdb/23712
13287 PR symtab/23010
13288 * dictionary.h (struct dictionary): Replace declaration with
13289 multidictionary.
13290 (dict_create_hashed, dict_create_hashed_expandable)
13291 (dict_create_linear, dict_create_linear_expandable)
13292 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13293 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13294 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13295 taking multidictionary argument.
13296 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13297 * block.h (struct block) <dict>: Change to multidictionary
13298 and rename `multidict'.
13299 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13300 symmisc.c: Update all dictionary references to multidictionary.
13301
c7748ee9
KS
133022019-01-10 Keith Seitz <keiths@redhat.com>
13303
13304 PR gdb/23712
13305 PR symtab/23010
13306 * dictionary.c: Include unordered_map.
13307 (pending_to_vector): New function.
13308 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13309 Rewrite the non-"_1" functions to take vector instead
13310 of linked list.
13311 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13312 "new" _1 versions of the same name.
13313 (multidictionary): Define.
13314 (std::hash<enum language): New definition.
13315 (collate_pending_symbols_by_language, mdict_create_hashed)
13316 (mdict_create_hashed_expandable, mdict_create_linear)
13317 (mdict_create_linear_expandable, mdict_free)
13318 (find_language_dictionary, create_new_language_dictionary)
13319 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13320 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13321 (mdict_size, mdict_empty): New functions.
13322 * dictionary.h (mdict_iterator): Define.
13323
67aa1f3c
PA
133242019-01-10 Pedro Alves <palves@redhat.com>
13325
13326 * breakpoint.c (read_uploaded_action)
13327 (create_tracepoint_from_upload): Adjust to use
13328 gdb::unique_xmalloc_ptr.
13329 * ctf.c (ctf_write_uploaded_tp):
13330 (SET_ARRAY_FIELD): Use emplace_back.
13331 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13332 * tracefile-tfile.c (tfile_write_uploaded_tp):
13333 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13334 gdb::unique_xmalloc_ptr.
13335 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13336 at_string, cond_string, cmd_strings>: Replace char pointers
13337 with gdb::unique_xmalloc_ptr.
13338
2f667667
PA
133392019-01-10 Pedro Alves <palves@redhat.com>
13340
13341 * solib-target.c (library_list_start_library): Don't xstrdup name.
13342
36cb7237
PA
133432019-01-10 Pedro Alves <palves@redhat.com>
13344
13345 * mdebugread.c (parse_partial_symbols): Use
13346 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13347
da584958
AB
133482019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13349
13350 * linux-fork.c (scoped_switch_fork_info)
13351 <~scoped_switch_fork_info>: Fix incorrect variable name.
13352
1ef8573c
AB
133532019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13354
13355 * linux-fork.c (scoped_switch_fork_info)
13356 <scoped_switch_fork_info>: Make explicit.
13357 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13358
8d7bcccb
TT
133592019-01-10 Tom Tromey <tom@tromey.com>
13360
13361 * objfiles.h (objfile::reset_psymtabs): Update.
13362 * objfiles.c (objfile::objfile): Update.
13363 * psymtab.h (psymtab_storage::obstack): Update.
13364 (psymtab_storage::m_obstack): Use gdb::optional.
13365 (class psymtab_storage): Update comment. Remove objfile
13366 parameter.
13367 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13368
b596a3c7
TT
133692019-01-10 Tom Tromey <tom@tromey.com>
13370
13371 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13372 <free_psymtabs>: Now private.
13373 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13374 (allocate_psymtab): Use new method.
13375
a9342b62
TT
133762019-01-10 Tom Tromey <tom@tromey.com>
13377
13378 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13379 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13380 * mdebugread.c (parse_partial_symbols): Use
13381 allocate_dependencies.
13382 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13383 allocate_dependencies.
13384 (process_psymtab_comp_unit_reader)
13385 (build_type_psymtab_dependencies): Likewise.
13386 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13387
5af70966
TT
133882019-01-10 Tom Tromey <tom@tromey.com>
13389
13390 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13391 PSYMBOL_SET_LANGUAGE.
13392 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13393
5923a04c
TT
133942019-01-10 Tom Tromey <tom@tromey.com>
13395
13396 * psymtab.h (psymtab_storage::obstack): New method.
13397 <m_obstack>: Rename from obstack; now private.
13398 * psymtab.c (psymtab_storage): Update.
13399 * dwarf2read.c (create_addrmap_from_index)
13400 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13401 Update.
13402
6d6a12bf
TT
134032019-01-10 Tom Tromey <tom@tromey.com>
13404
13405 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13406 * objfiles.h (objfile::reset_psymtabs): New method.
13407
d320c2b5
TT
134082019-01-10 Tom Tromey <tom@tromey.com>
13409
13410 * symmisc.c (print_symbol_bcache_statistics): Update.
13411 (print_objfile_statistics): Update.
13412 * symfile.c (reread_symbols): Update.
13413 * psymtab.h (class psymtab_storage): New.
13414 * psymtab.c (psymtab_storage): New constructor.
13415 (~psymtab_storage): New destructor.
13416 (require_partial_symbols): Update.
13417 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13418 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13419 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13420 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13421 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13422 (start_psymtab_common, end_psymtab_common)
13423 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13424 (allocate_psymtab): Update.
13425 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13426 Update.
13427 (dump_psymtab_addrmap, maintenance_print_psymbols)
13428 (maintenance_check_psymtabs): Update.
13429 (class objfile_psymtabs): Move to objfiles.h.
13430 * psympriv.h (discard_psymtab): Now inline.
13431 (psymtab_discarder::psymtab_discarder): Update.
13432 (psymtab_discarder::~psymtab_discarder): Update.
13433 (ALL_OBJFILE_PSYMTABS): Rewrite.
13434 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13435 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13436 Remove fields.
13437 <partial_symtabs>: New field.
13438 (class objfile_psymtabs): Move from psymtab.h. Update.
13439 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13440 psymbol_cache.
13441 (objfile::~objfile): Don't destroy psymbol_cache.
13442 * mdebugread.c (parse_partial_symbols): Update.
13443 * dwarf2read.c (create_addrmap_from_index)
13444 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13445 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13446 (add_partial_subprogram, dwarf2_ranges_read): Update.
13447 * dwarf-index-write.c (write_address_map)
13448 (write_one_signatured_type, recursively_write_psymbols)
13449 (class debug_names, class debug_names, write_psymtabs_to_index):
13450 Update.
13451
1d94a5a3
TT
134522019-01-10 Tom Tromey <tom@tromey.com>
13453
13454 * symtab.h (SYMBOL_SET_NAMES): Update.
13455 (symbol_set_names): Update.
13456 (MSYMBOL_SET_NAMES): Update.
13457 * symtab.c (symbol_set_names): Change argument to be an
13458 objfile_per_bfd_storage.
13459 * psymtab.c (add_psymbol_to_bcache): Update.
13460 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13461
0f14768a
TT
134622019-01-10 Tom Tromey <tom@tromey.com>
13463
13464 * symtab.c (create_demangled_names_hash): Change argument to be an
13465 objfile_per_bfd_storage.
13466 (symbol_set_names): Update.
13467
6eee24ce
TT
134682019-01-10 Tom Tromey <tom@tromey.com>
13469
13470 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13471 init_psymbol_list.
13472 * psymtab.c (init_psymbol_list): Do nothing if already called.
13473 * psympriv.h (init_psymbol_list): Add comment.
13474 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13475 init_psymbol_list.
13476 * dbxread.c (dbx_symfile_read): Unconditionally call
13477 init_psymbol_list.
13478
75aedd27
TT
134792019-01-10 Tom Tromey <tom@tromey.com>
13480
13481 * xcoffread.c (scan_xcoff_symtab): Update.
13482 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13483 "where".
13484 * mdebugread.c (parse_partial_symbols)
13485 (handle_psymbol_enumerators): Update.
13486 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13487 * dbxread.c (read_dbx_symtab): Update.
13488 * psympriv.h (psymbol_placement): New enum.
13489 (add_psymbol_to_list): Update.
13490
939652a5
TT
134912019-01-10 Tom Tromey <tom@tromey.com>
13492
13493 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13494 static_psymbols parameters.
13495 (scan_xcoff_symtab): Update.
13496 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13497 static_psymbols parameters.
13498 * psympriv.h (start_psymtab_common): Update.
13499 * mdebugread.c (parse_partial_symbols): Update.
13500 * dwarf2read.c (create_partial_symtab): Update.
13501 * dbxread.c (read_dbx_symtab): Update.
13502 (start_psymtab): Remove global_psymbols and static_psymbols
13503 parameters.
13504
baa62830
TT
135052019-01-10 Tom Tromey <tom@tromey.com>
13506
13507 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13508 * psymtab.c (allocate_psymtab): Add comment.
13509 * psympriv.h (allocate_psymtab): Add comment.
13510 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13511 initializations.
13512 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13513
0e8f53ba
TT
135142019-01-10 Tom Tromey <tom@tromey.com>
13515
13516 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13517 Don't declare.
13518 * mipsread.c: Include mdebugread.h.
13519 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13520 Declare.
13521 * elfread.c: Include mdebugread.h.
13522
b22a7c6a
TT
135232019-01-09 Tom Tromey <tom@tromey.com>
13524
13525 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13526 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13527 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13528 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13529 (psym_lookup_symbol, psym_find_last_source_symtab)
13530 (psym_forget_cached_source_info, psym_print_stats)
13531 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13532 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13533 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13534 (psym_find_compunit_symtab_by_address)
13535 (maintenance_print_psymbols, maintenance_info_psymtabs)
13536 (maintenance_check_psymtabs): Use ranged for.
13537 * psymtab.h (class objfile_psymtabs): New.
13538 (require_partial_symbols): Return objfile_psymtabs.
13539 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13540
3b9d3ac2
TT
135412019-01-09 Tom Tromey <tom@tromey.com>
13542
13543 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13544 (find_pc_mapped_section, list_overlays_command)
13545 (map_overlay_command, unmap_overlay_command)
13546 (simple_overlay_update): Use all_objfiles.
13547 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13548 * printcmd.c (info_symbol_command): Use all_objfiles.
13549 * objfiles.h (ALL_OBJSECTIONS): Remove.
13550 * maint.c (maintenance_translate_address): Use all_objfiles.
13551 * gcore.c (gcore_create_callback): Use all_objfiles.
13552 (objfile_find_memory_regions): Likewise.
13553
8b31193a
TT
135542019-01-09 Tom Tromey <tom@tromey.com>
13555
13556 * symtab.c (find_line_symtab, info_sources_command)
13557 (make_source_files_completion_list): Use objfile_compunits.
13558 * source.c (select_source_symtab): Use objfile_compunits.
13559 * objfiles.h (struct objfile): Update comment.
13560 (ALL_OBJFILES): Remove.
13561 (ALL_FILETABS): Remove.
13562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13563 objfile_compunits.
13564
d5da8b3c
TT
135652019-01-09 Tom Tromey <tom@tromey.com>
13566
13567 * symmisc.c (print_objfile_statistics, dump_objfile)
13568 (maintenance_print_symbols): Use compunit_filetabs.
13569 * source.c (forget_cached_source_info_for_objfile): Use
13570 compunit_filetabs.
13571 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13572 (ALL_FILETABS): Use compunit_filetabs.
13573 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13574 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13575
5accd1a0
TT
135762019-01-09 Tom Tromey <tom@tromey.com>
13577
13578 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13579 (compunit_filetabs): New.
13580 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13581 compunit_filetabs.
13582 (info_sources_command, make_source_files_completion_list): Remove
13583 declaration.
13584 * symmisc.c (print_objfile_statistics, dump_objfile)
13585 (maintenance_print_symbols): Remove declaration.
13586 (maintenance_info_symtabs): Use compunit_filetabs.
13587 (maintenance_info_line_tables): Likewise.
13588 * source.c (select_source_symtab): Change local variable name.
13589 (forget_cached_source_info_for_objfile): Remove declaration.
13590 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13591 * objfiles.c (objfile_relocate1): Remove declaration.
13592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13593 declaration.
13594 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13595 * coffread.c (coff_symtab_read): Remove declaration.
13596 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13597 compunit_filetabs.
13598
d8aeb77f
TT
135992019-01-09 Tom Tromey <tom@tromey.com>
13600
13601 * symtab.c (lookup_objfile_from_block)
13602 (find_pc_sect_compunit_symtab, search_symbols)
13603 (default_collect_symbol_completion_matches_break_on): Use
13604 objfile_compunits.
13605 * objfiles.h (ALL_COMPUNITS): Remove.
13606 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13607 * cp-support.c (add_symbol_overload_list_qualified): Use
13608 objfile_compunits.
13609 * ada-lang.c (ada_collect_symbol_completion_matches)
13610 (ada_add_global_exceptions): Use objfile_compunits.
13611
592553c4
TT
136122019-01-09 Tom Tromey <tom@tromey.com>
13613
13614 * source.c (select_source_symtab)
13615 (forget_cached_source_info_for_objfile): Remove declaration.
13616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13617 declaration.
13618 * maint.c (count_symtabs_and_blocks): Remove declaration.
13619 * cp-support.c (add_symbol_overload_list_qualified): Remove
13620 declaration.
13621 * coffread.c (coff_symtab_read): Remove declaration.
13622 * symtab.c (lookup_symbol_in_objfile_symtabs)
13623 (basic_lookup_transparent_type_1): Use objfile_compunits.
13624 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13625 (info_sources_command, search_symbols)
13626 (default_collect_symbol_completion_matches_break_on)
13627 (make_source_files_completion_list): Remove declaration.
13628 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13629 (ada_collect_symbol_completion_matches)
13630 (ada_add_global_exceptions): Remove declaration.
13631 * linespec.c (iterate_over_all_matching_symtabs): Use
13632 objfile_compunits.
13633 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13634 (class objfile_compunits): New.
13635 (ALL_COMPUNITS): Use objfile_compunits.
13636 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13637 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13638 objfile_compunits.
13639 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13640
5325b9bf
TT
136412019-01-09 Tom Tromey <tom@tromey.com>
13642
13643 * symtab.c (search_symbols)
13644 (default_collect_symbol_completion_matches_break_on): Use
13645 objfile_msymbols.
13646 * ada-lang.c (ada_lookup_simple_minsym)
13647 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13648 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13649 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13650 objfile_msymbols.
13651 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13652 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13653 * objc-lang.c (find_methods): Use objfile_msymbols.
13654 (info_selectors_command, info_classes_command): Likewise.
13655 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13656 * objfiles.h (class objfile_msymbols): New.
13657 (ALL_OBJFILE_MSYMBOLS): Remove.
13658 (ALL_MSYMBOLS): Remove.
13659
cac85af2
TT
136602019-01-09 Tom Tromey <tom@tromey.com>
13661
13662 * common/next-iterator.h (next_adapter): Add Iterator template
13663 parameter.
13664 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13665 (class all_objfiles_safe): New.
13666 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13667 * objfiles.c (put_objfile_before): Update comment.
13668 (add_separate_debug_objfile): Likewise.
13669 (free_all_objfiles): Use all_objfiles_safe.
13670 (objfile_purge_solibs): Likewise.
13671
aed57c53
TT
136722019-01-09 Tom Tromey <tom@tromey.com>
13673
13674 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13675 (expand_symtab_containing_pc, lookup_static_symbol)
13676 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13677 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13678 all_objfiles.
13679 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13680 * breakpoint.c (create_overlay_event_breakpoint)
13681 (create_longjmp_master_breakpoint)
13682 (create_std_terminate_master_breakpoint)
13683 (create_exception_master_breakpoint): Use all_objfiles.
13684 * linux-thread-db.c (try_thread_db_load_from_pdir)
13685 (has_libpthread): Use all_objfiles.
13686 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13687 * linespec.c (iterate_over_all_matching_symtabs)
13688 (search_minsyms_for_name): Use all_objfiles.
13689 * maint.c (maintenance_info_sections): Use all_objfiles.
13690 * main.c (captured_main_1): Use all_objfiles.
13691 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13692 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13693 * guile/scm-pretty-print.c
13694 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13695 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13696 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13697 (maintenance_print_msymbols): Use all_objfiles.
13698 * source.c (select_source_symtab): Use all_objfiles.
13699 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13700 * symfile.c (remove_symbol_file_command)
13701 (expand_symtabs_matching, map_symbol_filenames): Use
13702 all_objfiles.
13703 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13704 all_objfiles.
13705 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13706 * objc-lang.c (find_methods): Use all_objfiles.
13707 * objfiles.c (have_partial_symbols, have_full_symbols)
13708 (have_minimal_symbols, qsort_cmp)
13709 (default_iterate_over_objfiles_in_search_order): Use
13710 all_objfiles.
13711 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13712 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13713 (maintenance_check_psymtabs): Use all_objfiles.
13714 (ALL_PSYMTABS): Remove.
13715 * compile/compile-object-run.c (do_module_cleanup): Use
13716 all_objfiles.
13717 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13718 * cp-support.c (add_symbol_overload_list_qualified): Use
13719 all_objfiles.
13720 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13721 Use all_objfiles.
13722 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13723 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13724 all_objfiles.
13725 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13726 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13727 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13728 Uses all_objfiles.
13729 * solib.c (solib_read_symbols): Use all_objfiles
13730
99d89cde
TT
137312019-01-09 Tom Tromey <tom@tromey.com>
13732
13733 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13734 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13735 all_objfiles.
13736 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13737 * symmisc.c (print_symbol_bcache_statistics)
13738 (print_objfile_statistics, maintenance_print_objfiles)
13739 (maintenance_info_symtabs, maintenance_check_symtabs)
13740 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13741 all_objfiles.
13742 * source.c (forget_cached_source_info): Use all_objfiles.
13743 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13744 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13745 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13746 * objfiles.c (update_section_map): Use all_objfiles.
13747 (shared_objfile_contains_address_p): Likewise.
13748 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13749 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13750
21708325
TT
137512019-01-09 Tom Tromey <tom@tromey.com>
13752
13753 * common/next-iterator.h: New file.
13754 * objfiles.h (class all_objfiles): New.
13755 (struct objfile_iterator): New.
13756
669e09f6
PW
137572019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13758
13759 * NEWS: Move the description of the changed "frame", "select-frame",
13760 and "info frame" commands to the Changed commands section.
13761
041be526
SM
137622019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13763
13764 * gdbtypes.c (check_stub_method_group): Remove handling of old
13765 mangling schemes.
13766 * linespec.c (find_methods): Likewise.
13767 * stabsread.c (read_member_functions): Likewise.
13768 * valops.c (search_struct_method): Likewise.
13769 (value_struct_elt_for_reference): Likewise.
13770 * NEWS: Mention this change.
13771
0e2a2133
AB
137722019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13773
13774 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13775 print_source_lines.
13776 * source.c (print_source_lines_base): Update line number check.
13777 (print_source_lines): New function.
13778 (source_lines_range::source_lines_range): New function.
13779 * source.h (class source_lines_range): New class.
13780 (print_source_lines): New declaration.
13781
1055a3b4
PW
137822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13783
13784 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13785
cfeadda5
TT
137862019-01-08 Tom Tromey <tom@tromey.com>
13787 Simon Marchi <simon.marchi@ericsson.com>
13788
13789 PR gdb/24060
13790 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13791 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13792 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13793 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13794 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13795 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13796
583068ca
AB
137972019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13798
13799 * source.c (select_source_symtab): Move header comment to
13800 declaration in source.h.
13801 (forget_cached_source_info_for_objfile): Likewise.
13802 (forget_cached_source_info): Likewise.
13803 (identify_source_line): Likewise.
13804 * source.h (identify_source_line): Move declaration from symtab.h
13805 and add comment from source.c
13806 (print_source_lines): Likewise.
13807 (forget_cached_source_info_for_objfile): Likewise.
13808 (forget_cached_source_info): Likewise.
13809 (select_source_symtab): Likewise.
13810 (enum print_source_lines_flag): Move definition from symtab.h.
13811 * symtab.h (identify_source_line): Move declaration to source.h.
13812 (print_source_lines): Likewise.
13813 (forget_cached_source_info_for_objfile): Likewise.
13814 (forget_cached_source_info): Likewise.
13815 (select_source_symtab): Likewise.
13816 (enum print_source_lines_flag): Move definition to source.h.
13817 * tui/tui-hooks.c: Add 'source.h' include.
13818
ec98a4ad
AB
138192019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13820
13821 * source.c (print_source_lines_base): Handle requests to print
13822 reverse line number sequences, and guard against empty lines
13823 string.
13824
62ea19c1
AB
138252019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13826
13827 * source.c (print_source_lines_base): Fix skip of '\r' if next
13828 character is '\n'.
13829
9d30e1fd
TT
138302019-01-06 Tom Tromey <tom@tromey.com>
13831
13832 * c-exp.y (struct c_parse_state) <macro_original_text,
13833 expansion_obstack>: New member.
13834 (macro_original_text, expansion_obstack): Remove globals.
13835 (scan_macro_expansion, scanning_macro_expansion)
13836 (finished_macro_expansion): Update.
13837 (scan_macro_cleanup): Remove.
13838 (yylex, c_parse): Update.
13839
c65bac38
TT
138402019-01-06 Tom Tromey <tom@tromey.com>
13841
13842 * c-exp.y (struct c_parse_state) <strings>: New member.
13843 (operator_stoken): Update.
13844
02e12e38
TT
138452019-01-06 Tom Tromey <tom@tromey.com>
13846
13847 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13848 (union type_stack_elt) <typelist_val>: Now a pointer to
13849 std::vector.
13850 (type_stack_cleanup): Don't declare.
13851 (push_typelist): Update.
13852 * parse.c (pop_typelist): Return a std::vector.
13853 (push_typelist): Take a std::vector.
13854 (follow_types): Update. Do not free args.
13855 (type_stack_cleanup): Remove.
13856 * c-exp.y (struct c_parse_state): New.
13857 (cpstate): New global.
13858 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13859 (nonempty_typelist): Update.
13860 (func_mod): Create a new vector.
13861 (c_parse): Create a c_parse_state.
13862 (check_parameter_typelist): Do not delete params.
13863 (function_method): Update. Do not delete type_list.
13864
f097f5ad
TT
138652019-01-06 Tom Tromey <tom@tromey.com>
13866
13867 PR gdb/28155:
13868 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13869 check_typedef.
13870 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13871 (print_return_value): Likewise.
13872
d2adf9f1
TT
138732019-01-05 Tom Tromey <tom@tromey.com>
13874
13875 * contrib/cleanup_check.py: Remove.
13876 * contrib/gcc-with-excheck: Remove.
13877 * contrib/exsummary.py: Remove.
13878 * contrib/excheck.py: Remove.
13879
2eab46b1
JB
138802019-01-05 Joel Brobecker <brobecker@adacore.com>
13881
13882 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13883 NULL. Initialize tpprev to NULL instead of assigning it
13884 to NULL on the next statement.
13885 * windows-nat.c (windows_delete_thread): Remove check for
13886 main_thread_id before printing thread exit notifications.
13887 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13888 Remove thread ID check against main_thread_id.
13889 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13890 windows_delete_thread.
13891 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13892
48c5e7e2
TT
138932019-01-04 Tom Tromey <tom@tromey.com>
13894
13895 * compile/compile.c (_initialize_compile): Use upper case for
13896 metasyntactic variables.
13897 * symmisc.c (_initialize_symmisc): Use upper case for
13898 metasyntactic variables.
13899 * psymtab.c (_initialize_psymtab): Use upper case for
13900 metasyntactic variables.
13901 * demangle.c (demangle_command): Use upper case for metasyntactic
13902 variables.
13903 (_initialize_demangler): Likewise.
13904 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13905 variables.
13906
986041cd
TT
139072019-01-03 Tom Tromey <tom@tromey.com>
13908
13909 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13910
7c711119
TT
139112019-01-03 Tom Tromey <tom@tromey.com>
13912
13913 * python/py-symtab.c (salpy_str): Update.
13914 (struct salpy_sal_object) <symtab>: Now a PyObject.
13915 (salpy_dealloc): Update.
13916 (del_objfile_sal): Use gdbpy_ref.
13917
1b20edf0
TT
139182019-01-03 Tom Tromey <tom@tromey.com>
13919
13920 * python/py-type.c (convert_field): Use new_reference. Return
13921 gdbpy_ref.
13922 (make_fielditem): Return gdbpy_ref.
13923 (typy_fields): Update.
13924 (typy_getitem): Update.
13925 (field_name): Return gdbpy_ref. Use new_reference.
13926 (typy_iterator_iternext): Update.
13927
ea41325b
TT
139282019-01-03 Tom Tromey <tom@tromey.com>
13929
13930 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13931
2a3c71d6
TT
139322019-01-03 Tom Tromey <tom@tromey.com>
13933
13934 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13935 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13936 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13937 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13938 (pspy_set_type_printers): Likewise.
13939 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13940 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13941 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13942 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13943 (objfpy_set_type_printers): Likewise.
13944
5c329e6a
TT
139452019-01-03 Tom Tromey <tom@tromey.com>
13946
13947 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13948 (gdbpy_print_stack): Use gdbpy_err_fetch.
13949 * python/python-internal.h (class gdbpy_err_fetch): New class.
13950 (class gdbpy_enter) <m_error_type, m_error_value,
13951 m_error_traceback>: Remove.
13952 <m_error>: New member.
13953 (gdbpy_exception_to_string): Don't declare.
13954 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13955 * python/py-value.c (convert_value_from_python): Use
13956 gdbpy_err_fetch.
13957 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13958 gdbpy_exception_to_string.
13959 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13960 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13961 gdbpy_err_fetch.
13962
169bb27b
AB
139632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13964
13965 * linux-nat.c (delete_lwp_cleanup): Delete.
13966 (struct lwp_deleter): New struct.
13967 (lwp_info_up): New typedef.
13968 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13969 lwp_info_up.
13970
a07c8880
AB
139712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13972
13973 * linux-fork.c (class scoped_switch_fork_info): New class.
13974 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13975
26089c49
AB
139762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13977
13978 * valops.c (find_overload_match): Remove use of null_cleanup, and
13979 calls to do_cleanups.
13980
06d3e5b0
AB
139812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13982
13983 * compile/compile-cplus-types.c
13984 (compile_cplus_instance::decl_name): Handle changes to
13985 cp_func_name.
13986 * cp-support.c (cp_func_name): Update header comment, update
13987 return type.
13988 * cp-support.h (cp_func_name): Update return type in declaration.
13989 * valops.c (find_overload_match): Move temp_func local to top
13990 level of function and change its type. Use temp_func to hold and
13991 delete temporary string obtained from cp_func_name.
13992
66644cd3
AB
139932019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13994
13995 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13996 gdb::char_vector, remove cleanup, and update uses of `msg`.
13997
592d8c0a
JW
139982019-01-03 Jim Wilson <jimw@sifive.com>
13999
14000 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14001
c55d06ec
TT
140022019-01-02 Tom Tromey <tom@tromey.com>
14003
14004 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14005 (tdesc_parse_xml): Remove cleanups.
14006 * target-descriptions.h (make_cleanup_free_target_description):
14007 Don't declare.
14008 (target_desc_deleter): New struct.
14009 (target_desc_up): New typedef.
14010 * target-descriptions.c (target_desc_deleter::operator()): Rename
14011 from free_target_description.
14012 (make_cleanup_free_target_description): Remove.
14013
3a6ae42d
TT
140142019-01-02 Tom Tromey <tom@tromey.com>
14015
14016 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14017 constructor, destructor.
14018 (linespec_parser): Remove typedef.
14019 (~linespec_parser): Rename from linespec_parser_delete.
14020 (linespec_lex_to_end, linespec_complete_label)
14021 (linespec_complete): Update.
14022 (decode_line_full): Remove cleanups.
14023 (decode_line_1): Update.
14024
61fd3e73
TT
140252019-01-02 Tom Tromey <tom@tromey.com>
14026
14027 * python/python-internal.h (inferior_to_inferior_object): Change
14028 return type.
14029 * python/py-exitedevent.c (create_exited_event_object): Update.
14030 * python/py-inferior.c (inferior_to_inferior_object): Return
14031 gdbpy_ref.
14032 (python_new_inferior, python_inferior_deleted)
14033 (thread_to_thread_object, delete_thread_object)
14034 (build_inferior_list, gdbpy_selected_inferior): Update.
14035 * python/py-infthread.c (create_thread_object): Update. Also fail
14036 if inferior_to_inferior_object fails.
14037
d20172fc
SM
140382019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14039
14040 * inferior.h (class inferior) <displaced_step_state>: New field.
14041 * infrun.h (struct displaced_step_state): Move here from
14042 infrun.c. Initialize fields, add constructor.
14043 <inf>: Remove field.
14044 <reset>: New method.
14045 * infrun.c (struct displaced_step_inferior_state): Move to
14046 infrun.h.
14047 (displaced_step_inferior_states): Remove.
14048 (get_displaced_stepping_state): Adust.
14049 (displaced_step_in_progress_any_inferior): Adjust.
14050 (displaced_step_in_progress_thread): Adjust.
14051 (displaced_step_in_progress): Adjust.
14052 (add_displaced_stepping_state): Remove.
14053 (get_displaced_step_closure_by_addr): Adjust.
14054 (remove_displaced_stepping_state): Remove.
14055 (infrun_inferior_exit): Call displaced_step_state.reset.
14056 (use_displaced_stepping): Don't check for NULL.
14057 (displaced_step_prepare_throw): Call
14058 get_displaced_stepping_state.
14059 (displaced_step_fixup): Don't check for NULL.
14060 (prepare_for_detach): Don't check for NULL.
14061
e3319240
PW
140622019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14063
14064 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14065 in case of call that did not complete.
14066
5d36dfb9
AU
140672019-01-02 Andrey Utkin <autkin@undo.io>
14068
14069 * symfile.c (find_separate_debug_file): Fix search of debug files for
14070 remote debuggee.
14071
8833fbf0
TT
140722019-01-02 Tom Tromey <tom@tromey.com>
14073
14074 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14075 indentation.
14076 * python/py-frame.c (frapy_older): Remove cast.
14077 (frapy_newer): Likewise.
14078 * python/py-breakpoint.c (local_setattro): Remove cast.
14079 * python/py-arch.c (archpy_name): Remove local variable.
14080 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14081
4ada3dfd
JB
140822019-01-02 Joel Brobecker <brobecker@adacore.com>
14083
14084 * unittests/basic_string_view/element_access/char/empty.cc:
14085 Fix year range in copyright header.
14086
113b7b81
AB
140872019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14088
14089 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14090 Delete.
14091 <operator==>: Update with for removed field.
14092 <hash>: Likewise.
14093 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14094 <isa_features>: ...this.
14095 <abi_features>: New field.
14096 (riscv_isa_flen): Update comment.
14097 (riscv_abi_xlen): New declaration.
14098 (riscv_abi_flen): New declaration.
14099 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14100 isa_features.
14101 (riscv_abi_xlen): New function.
14102 (riscv_isa_flen): Update to get answer from isa_features.
14103 (riscv_abi_flen): New function.
14104 (riscv_has_fp_abi): Update to get answer from abi_features.
14105 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14106 xlen and flen.
14107 (riscv_call_info) <xlen, flen>: Update comment.
14108 (riscv_call_arg_struct): Remove invalid assertions
14109 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14110 is removed.
14111 (riscv_gdbarch_init): Gather isa features and abi features
14112 separately, ensure both match on the gdbarch when reusing an old
14113 gdbarch. Relax an error check to allow 32-bit abi float to run on
14114 a target with 64-bit float hardware.
14115
b18ca514
PW
141162019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14117
14118 * source.c (search_command_helper): Stop reverse search
14119 when line 1 has been searched.
14120
ec70d8db
PW
141212019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14122
14123 * record-full.c (record_full_base_target::close): Rewrite
14124 record_full_core_buf_list free logic.
14125
5b38f9c1
PW
141262019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14127
14128 * break-catch-syscall.c (print_one_catch_syscall): xfree
14129 the last text.
14130
66d91b39
JB
141312019-01-01 Joel Brobecker <brobecker@adacore.com>
14132
14133 * top.c (print_gdb_version): Update Copyright year in version
14134 message.
14135
42a4f53d
JB
141362019-01-01 Joel Brobecker <brobecker@adacore.com>
14137
14138 Update copyright year range in all GDB files.
14139
7e955d83 141402019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14141
5bbd631d 14142 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14143
5bbd631d 14144For older changes see ChangeLog-2018.
c906108c
SS
14145\f
14146Local Variables:
14147mode: change-log
14148left-margin: 8
14149fill-column: 74
14150version-control: never
57da7796 14151coding: utf-8
c906108c 14152End:
5bbd631d 14153
This page took 2.866764 seconds and 4 git commands to generate.