[gdb/testsuite] Fix gdb.fortran/module.exp for debug info from other files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
befcd486
TT
12019-10-16 Tom Tromey <tom@tromey.com>
2
3 * objfiles.h (struct objfile) <original_name>: Now const.
4
17bfe554
CB
52019-10-16 Christian Biesinger <cbiesinger@google.com>
6
7 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
8 pass on to sigsetjmp's second argument.
9 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
10
950b7495
KS
112019-10-16 Keith Seitz <keiths@redhat.com>
12
13 PR gdb/23567
14 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
15 sections whose size is greater than the file size.
16
ff371ec9
JW
172019-10-16 Jim Wilson <jimw@sifive.com>
18
19 * riscv-tdep.c (riscv_gcc_target_options): New.
20 (riscv_gnu_triplet_regexp): New.
21 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
22 set_gdbarch_gnu_triplet_regexp.
23
fec4e896
CB
242019-10-16 Christian Biesinger <cbiesinger@google.com>
25
26 * Makefile.in: Add xml-builtin.h.
27 * features/feature_to_c.sh: Add an include for xml-builtin.h
28 to ensure that the compiler checks that the types match.
29 * xml-builtin.h: New file.
30 * xml-support.c (fetch_xml_builtin): Add missing const.
31 * xml-support.h: Remove declaration of xml_builtins.
32
d10eccaa
TV
332019-10-16 Tom de Vries <tdevries@suse.de>
34
35 PR tdep/25096
36 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
37 (amd64_classify_aggregate): ... here.
38 (amd64_classify_aggregate_field): Handled fiels of nested structs
39 recursively.
40
745ff14e
TV
412019-10-16 Tom de Vries <tdevries@suse.de>
42
43 PR tdep/24104
44 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
45 that handles 'theclass'.
46
791b7405
AB
472019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * linespec.c (decode_digits_ordinary): Update comment.
50 * make-target-delegates: No longer need to handle VEC case.
51 * memrange.c (normalize_mem_ranges): Update comment.
52 * namespace.c (add_using_directive): Update comment.
53 * objc-lang.c (uniquify_strings): Update comment.
54 * ppc-linux-nat.c (struct thread_points): Update comment.
55 * probe.h (find_probes_in_objfile): Update comment.
56 * target.h (enum flash_preserve_mode): Update comment.
57 * varobj.c (varobj_restrict_range): Update comment.
58 * varobj.h (varobj_list_children): Update comment.
59
0dc32745
AB
602019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * Makefile.in: Remove references to vec.h and vec.c.
63 * aarch64-tdep.c: No longer include vec.h.
64 * ada-lang.c: Likewise.
65 * ada-lang.h: Likewise.
66 * arm-tdep.c: Likewise.
67 * ax.h: Likewise.
68 * breakpoint.h: Likewise.
69 * charset.c: Likewise.
70 * cp-support.h: Likewise.
71 * dtrace-probe.c: Likewise.
72 * dwarf2read.c: Likewise.
73 * extension.h: Likewise.
74 * gdb_bfd.c: Likewise.
75 * gdbsupport/gdb_vecs.h: Likewise.
76 * gdbsupport/vec.c: Remove.
77 * gdbsupport/vec.h: Remove.
78 * gdbthread.h: Likewise.
79 * guile/scm-type.c: Likewise.
80 * inline-frame.c: Likewise.
81 * machoread.c: Likewise.
82 * memattr.c: Likewise.
83 * memrange.h: Likewise.
84 * namespace.h: Likewise.
85 * nat/linux-btrace.h: Likewise.
86 * osdata.c: Likewise.
87 * parser-defs.h: Likewise.
88 * progspace.h: Likewise.
89 * python/py-type.c: Likewise.
90 * record-btrace.c: Likewise.
91 * rust-exp.y: Likewise.
92 * solib-target.c: Likewise.
93 * stap-probe.c: Likewise.
94 * target-descriptions.c: Likewise.
95 * target-memory.c: Likewise.
96 * target.h: Likewise.
97 * varobj.c: Likewise.
98 * varobj.h: Likewise.
99 * xml-support.h: Likewise.
100
ae640021
AB
1012019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
104 Update for new std::vector based implementation.
105 (process_psymtab_comp_unit_reader): Likewise.
106 (scan_partial_symbols): Likewise.
107 (recursively_compute_inclusions): Likewise.
108 (compute_compunit_symtab_includes): Likewise.
109 (process_imported_unit_die): Likewise.
110 (queue_and_load_dwo_tu): Likewise.
111 (follow_die_sig_1): Likewise.
112 * gdb/dwarf2read.h: Remove DEF_VEC_P.
113 (typedef dwarf2_per_cu_ptr): Remove.
114 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
115 function.
116 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
117 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
118 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
119 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
120 std::vector.
121
55dfc88f
TT
1222019-10-15 Tom Tromey <tromey@adacore.com>
123
124 * windows-nat.c (windows_nat_target::resume): Use %x when logging
125 TID.
126
96b49c5e
TT
1272019-10-15 Tom Tromey <tromey@adacore.com>
128
129 * windows-nat.c (windows_nat_target::fetch_registers)
130 (windows_nat_target::store_registers): Rename "pid" to "tid".
131
953cff56
TT
1322019-10-15 Tom Tromey <tromey@adacore.com>
133
134 * gdbarch.h, gdbarch.c: Rebuild.
135 * gdbarch.sh (gcc_target_options): Change return type to
136 std::string.
137 * compile/compile.c (get_args): Update.
138 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
139 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
140 std::string.
141 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
142 std::string.
143 * arch-utils.c (default_gcc_target_options): Return std::string.
144 * arch-utils.h (default_gcc_target_options): Return std::string.
145 * s390-tdep.c (s390_gcc_target_options): Return std::string.
146
81e6b8eb
CB
1472019-10-15 Christian Biesinger <cbiesinger@google.com>
148
149 * breakpoint.c (breakpoint_chain): Make static.
150 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
151 of accessing breakpoint_chain.
152
95da600f
CB
1532019-10-15 Christian Biesinger <cbiesinger@google.com>
154
155 * breakpoint.c (iterate_over_breakpoints): Change function pointer
156 to a gdb::function_view and return value to bool.
157 * breakpoint.h (iterate_over_breakpoints): Likewise.
158 * dummy-frame.c (pop_dummy_frame_bpt): Update.
159 (pop_dummy_frame): Update.
160 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
161 (gdbscm_breakpoints): Update.
162 * python/py-breakpoint.c (build_bp_list): Update.
163 (gdbpy_breakpoints): Update.
164 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
165 Update.
166 (bpfinishpy_handle_stop): Update.
167 (bpfinishpy_handle_exit): Update.
168 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
169 (svr4_update_solib_event_breakpoints): Update.
170
ba18312d
AA
1712019-10-15 Andreas Arnez <arnez@linux.ibm.com>
172
173 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
174 when unwrapping single-field structs.
175
6acc1a0b
SM
1762019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * dwarf2read.c: Remove includes.
179
284782de
SM
1802019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * ui-out.c (ui_out::call_do_message): Silence
183 -Wformat-nonliteral warning.
184
073bbbb0
SM
1852019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * breakpoint.c: Remove some includes: continuations.h, skip.h,
188 mi/mi-main.h, readline/readline.h, readline/history.h. Add
189 include: readline/tilde.h.
190
7b9a15e1
CB
1912019-10-12 Christian Biesinger <cbiesinger@google.com>
192
193 * remote.c (remote_target::get_trace_status): Remove declaration of
194 trace_regblock_size.
195
cc8dee1f
CB
1962019-10-12 Christian Biesinger <cbiesinger@google.com>
197
198 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
199 (show_user): Remove declaration of cmdlist.
200 * cli/cli-cmds.h (max_user_call_depth): Declare.
201 * cli/cli-script.c (execute_user_command): Remove declaration
202 of max_user_call_depth.
203
a83d4ef6
JW
2042019-10-11 Jim Wilson <jimw@sifive.com>
205
5f93c5a6
JW
206 * gdbsupport/print-utils.h (pulongest): Fix comment.
207 (plongest): Likewise.
208 (phex): Add missing comment, mention leading zeros.
209 (phex_nz): Add mention of no leading zeros to comment.
210
a83d4ef6
JW
211 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
212 plongest instead of unsigned long long cast.
213
26344e0c
CB
2142019-10-10 Christian Biesinger <cbiesinger@google.com>
215
216 * main.c (captured_main_1): Include gdbtk.h and remove declarations
217 for external_editor_command and gdbtk_test.
218
c2c440a9
CB
2192019-10-10 Christian Biesinger <cbiesinger@google.com>
220
221 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
222 * varobj.c (varobjdebug): Move comment to...
223 * varobj.h (varobjdebug): ...here, and declare.
224
a31bff9d
TT
2252019-10-09 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
228 erase_data_content.
229
7523da63
TT
2302019-10-09 Tom Tromey <tom@tromey.com>
231
232 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
233 * tui/tui-stack.c (tui_locator_window::rerender): Update.
234 * tui/tui-command.c (tui_cmd_window::resize)
235 (tui_refresh_cmd_win): Update.
236 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
237 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
238 * tui/tui-data.c (~tui_gen_win_info): Remove.
239 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
240 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
241 (tui_redisplay_readline, tui_mld_flush)
242 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
243 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
244 (tui_data_window::erase_data_content)
245 (tui_data_item_window::rerender)
246 (tui_data_item_window::refresh_window): Update.
247 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
248 (box_win, tui_gen_win_info::make_window)
249 (tui_gen_win_info::make_visible): Update.
250 (tui_delete_win): Remove.
251 * tui/tui-winsource.c
252 (tui_source_window_base::do_erase_source_content): Update.
253 (tui_show_source_line, tui_source_window_base::update_tab_width)
254 (tui_source_window_base::update_exec_info): Update.
255 * tui/tui-data.h (struct curses_deleter): New.
256 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
257 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
258
a7798e7f
TT
2592019-10-09 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
262
5c45899e
TT
2632019-10-09 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
266 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
267
6d7fd9aa
TT
2682019-10-09 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
271 window height directly.
272 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
273 declare.
274 * tui/tui-layout.c (tui_default_win_height): Remove.
275 (tui_default_win_viewport_height): Remove.
276
d2dd1084
TT
2772019-10-09 Tom Tromey <tom@tromey.com>
278
279 * tui/tui.h: Remove comments.
280
cff32449
TV
2812019-10-09 Tom de Vries <tdevries@suse.de>
282
283 * python/lib/gdb/printer/bound_registers.py: Use
284 '^builtin_type_bound128' as regexp argument for
285 add_builtin_pretty_printer.
286
6a25e8a2
CB
2872019-10-09 Christian Biesinger <cbiesinger@google.com>
288
289 * guile/guile.c (guile_extension_script_ops): Remove forward
290 declaration and mark as static.
291 (guile_script_ops): Likewise.
292 (extension_language_guile): Move further down in the file so
293 it can reference the definitions for guile_{extension_,}script_ops.
294
6d9d6da4
AA
2952019-10-09 Andreas Arnez <arnez@linux.ibm.com>
296
297 * s390-tdep.c (390_process_record): Handle new arch13 instructions
298 except SORTL, DFLTCC, and KDSA.
299
3abea05d
TT
3002019-10-08 Tom Tromey <tromey@adacore.com>
301
302 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
303 (struct safe_symbol_file_add_args): Remove.
304
dde996e2
TT
3052019-10-08 Tom Tromey <tromey@adacore.com>
306
307 * windows-nat.c: Don't include buildsym-legacy.h.
308
cd6fdaa1
TT
3092019-10-08 Tom Tromey <tromey@adacore.com>
310
311 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
312
79bb1944
CB
3132019-10-08 Christian Biesinger <cbiesinger@google.com>
314
315 * gdbtypes.c (overload_debug): Move comment to header.
316 * gdbtypes.h (overload_debug): Declare.
317 * valops.c: Remove declaration of overload_debug, instead
318 include gdbtypes.h.
319
34916edc
CB
3202019-10-08 Christian Biesinger <cbiesinger@google.com>
321
322 * language.c (show_language_command): Pass lang_frame_mismatch_warn
323 through _().
324 (lang_frame_mismatch_warn): Make const, mark with N_(), and
325 move comment...
326 * language.h (lang_frame_mismatch_warn): ... here. Also add
327 declaration.
328 * top.c (lang_frame_mismatch_warn): Remove declaration.
329 (check_frame_language_change): Pass lang_frame_mismatch_warn
330 through _().
331
bad5c026
CB
3322019-10-07 Christian Biesinger <cbiesinger@google.com>
333
334 * c-lang.h (vtbl_ptr_name): Declare.
335 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
336 it from the header.
337 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
338
51f1fdc3
CB
3392019-10-07 Christian Biesinger <cbiesinger@google.com>
340
341 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
342 gdb_static_assert.
343
30d1f018
WP
3442019-10-07 Weimin Pan <weimin.pan@oracle.com>
345
606813d5
WP
346 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
347 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
348 * ctfread.c: New file.
349 * ctfread.h: New file.
350 * elfread.c: Include ctfread.h.
351 (struct elfinfo text_p): New member ctfsect.
352 (elf_locate_sections): Mark CTF section.
353 (elf_symfile_read): Call elfctf_build_psymtabs.
354 * Makefile.in (LIBCTF): Add.
355 (CLIBS): Use it.
356 (CDEPS): Likewise.
357 (DIST): Add ctfread.c.
606813d5
WP
358
3592019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * ctfread.c (struct nextfield): Renamed to ...
362 (struct ctf_nextfield): ... this.
363 (struct field_info): Renamed to ...
364 (strut ctf_field_info): ... this.
365 (attach_fields_to_type): Update for renamed structures.
366 (ctf_add_member_cb): Likewise.
367 (ctf_add_enum_member_cb): Likewise.
368 (process_struct_members): Likewise.
369 (process_enum_type): Likewise.
30d1f018 370
518fe38c
WP
3712019-10-07 Weimin Pan <weimin.pan@oracle.com>
372
373 * tracectf.h: Rename, was ctf.h.
374 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
375 * tracefile.c: Likewise.
376 * tracepoint.c: Remove unused include ctf.h.
377 * mi/mi-main.c: Likewise.
378 * Makefile.in Replace ctf.c with tracectf.c.
379
225f296a
JB
3802019-10-06 Joel Brobecker <brobecker@adacore.com>
381
382 * version.in: Change version number to "9.0.50.DATE-git".
383
77c2dba3
TT
3842019-10-03 Tom Tromey <tom@tromey.com>
385
386 PR rust/24976:
387 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
388
179aed7f
AB
3892019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
392 cp_search_name_hash.
393 * NEWS: Add entry about nested function support.
394
0a4b0913
AB
3952019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
396 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
399 for nested static variables when searchin VAR_DOMAIN.
400 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
401 global scope, update comment.
402 (add_partial_subprogram): Call add_partial_subprogram recursively
403 for nested subroutines when processinng Fortran.
404 (load_partial_dies): Process the child entities of a subprogram
405 when processing Fortran.
406 (partial_die_parent_scope): Handle building scope
407 for Fortran nested functions.
408 (process_die): Record that nested functions have a scope.
409 (new_symbol): Always record Fortran subprograms on the global
410 symbol list.
411 (determine_prefix): How to build the prefix for Fortran
412 subprograms.
413
d8c06f22
AB
4142019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
417 have just sent the thread a SIGSTOP and are waiting for it to
418 arrive.
419
a8b3b8e9
AB
4202019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * btrace.c (btrace_add_pc): Remove whitespace before the template
423 parameter in 'std::vector <...>'.
424 (parse_xml_btrace_block): Likewise.
425 (btrace_maint_decode_pt): Likewise.
426 (btrace_maint_update_packets): Likewise.
427 (btrace_maint_print_packets): Likewise.
428 * btrace.h (struct btrace_maint_info): Likewise.
429 * dwarf2read.c (struct type_unit_group): Likewise.
430 (build_type_psymtabs_reader): Likewise.
431 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
432 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
433 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
434
4d825eab
TV
4352019-10-03 Tom de Vries <tdevries@suse.de>
436
437 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
438 the first line of the help text for set/show style metadata.
439
80fd2826
TT
4402019-10-02 Tom Tromey <tromey@adacore.com>
441
442 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
443 * gdbsupport/common-inferior.c: New file.
444 * infcmd.c (startup_with_shell): Don't define.
445 * nat/fork-inferior.h (startup_with_shell): Don't declare.
446 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
447 * inferior.h (startup_with_shell): Don't declare.
448
70054538
CB
4492019-10-02 Christian Biesinger <cbiesinger@google.com>
450
451 * gdbsupport/gdb_assert.h: Include errors.h.
452 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
453
37f6a7f4
TT
4542019-10-02 Tom Tromey <tromey@adacore.com>
455
456 * NEWS: Add $_ada_exception entry.
457 * ada-lang.c (struct ada_catchpoint): Add constructor.
458 <m_kind>: New member.
459 (allocate_location_exception, re_set_exception): Remove
460 "ex" parameter.
461 (should_stop_exception): Compute $_ada_exception.
462 (check_status_exception, print_it_exception)
463 (print_one_exception, print_mention_exception): Remove
464 "ex" parameter.
465 (allocate_location_catch_exception, re_set_catch_exception)
466 (check_status_exception, print_it_catch_exception)
467 (print_one_catch_exception, print_mention_catch_exception)
468 (print_recreate_catch_exception)
469 (allocate_location_catch_exception_unhandled)
470 (re_set_catch_exception_unhandled)
471 (check_status_exception, print_it_catch_exception_unhandled)
472 (print_one_catch_exception_unhandled)
473 (print_mention_catch_exception_unhandled)
474 (print_recreate_catch_exception_unhandled)
475 (allocate_location_catch_assert, re_set_catch_assert)
476 (check_status_assert, print_it_catch_assert)
477 (print_one_catch_assert, print_mention_catch_assert)
478 (print_recreate_catch_assert)
479 (allocate_location_catch_handlers, re_set_catch_handlers)
480 (check_status_handlers, print_it_catch_handlers)
481 (print_one_catch_handlers, print_mention_catch_handlers)
482 (print_recreate_catch_handlers): Remove.
483 (create_ada_exception_catchpoint): Update.
484 (initialize_ada_catchpoint_ops): Update.
485
fccf9de1
TT
4862019-10-02 Tom Tromey <tromey@adacore.com>
487
488 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
489 (create_excep_cond_exprs): Simplify exception string computation.
490 (ada_exception_catchpoint_cond_string): Likewise.
491
4b610737
TT
4922019-10-02 Tom Tromey <tromey@adacore.com>
493
494 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
495 * ada-lang.c (lesseq_defined_than): Handle
496 LOC_STATIC.
497 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
498 parameter.
499 (dwarf2_has_info): Likewise.
500 (new_symbol): Set maybe_copied on symbol when
501 appropriate.
502 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
503 parameter.
504 <can_copy>: New member.
505 * elfread.c (record_minimal_symbol): Set maybe_copied
506 on symbol when appropriate.
507 (elf_symfile_read): Update call to dwarf2_has_info.
508 * minsyms.c (lookup_minimal_symbol_linkage): New
509 function.
510 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
511 * symtab.c (get_symbol_address, get_msymbol_address):
512 New functions.
513 * symtab.h (get_symbol_address, get_msymbol_address):
514 Declare.
515 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
516 maybe_copied.
517 (struct symbol, struct minimal_symbol) <maybe_copied>:
518 New member.
519
1dd58850
TT
5202019-10-02 Tom Tromey <tromey@adacore.com>
521
522 * source.c (struct current_source_location): New.
523 (current_source_key): New global.
524 (current_source_symtab, current_source_line)
525 (current_source_pspace): Remove.
526 (get_source_location): New function.
527 (get_current_source_symtab_and_line)
528 (set_default_source_symtab_and_line)
529 (set_current_source_symtab_and_line)
530 (clear_current_source_symtab_and_line, select_source_symtab)
531 (info_source_command, print_source_lines_base)
532 (info_line_command, search_command_helper, _initialize_source):
533 Update.
534
5c281dbb
TT
5352019-10-02 Tom Tromey <tromey@adacore.com>
536
537 * source.c (select_source_symtab): Don't call
538 decode_line_with_current_source.
539
d3d32391
AB
5402019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * symtab.c (lookup_global_symbol): Search global block.
543
38583298
TT
5442019-10-02 Tom Tromey <tromey@adacore.com>
545
546 * coffread.c (process_coff_symbol): Update.
547 * dwarf2read.c (var_decode_location, new_symbol): Update.
548 * mdebugread.c (parse_symbol): Update.
549 * objfiles.c (relocate_one_symbol): Update.
550 * stabsread.c (define_symbol, fix_common_block)
551 (scan_file_globals): Update.
552 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
553 (SET_SYMBOL_VALUE_ADDRESS): New macro.
554 * xcoffread.c (process_xcoff_symbol): Update.
555
9344c18f
AA
5562019-10-02 Andreas Arnez <arnez@linux.ibm.com>
557
558 * MAINTAINERS: Update my email address.
559
df07e2c7
AB
5602019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
563 std::vector.
564 (build_type_psymtabs_reader): Update for std::vector.
565 (build_type_psymtab_dependencies): Likewise.
566 * dwarf2read.h: Remove use of DEF_VEC_P.
567 (typedef sig_type_ptr): Delete.
568
554ac434
AB
5692019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * btrace.c (btrace_maint_clear): Update to handle change from VEC
572 to std::vector.
573 (btrace_maint_decode_pt): Likewise, and move allocation of the
574 vector outside of the loop.
575 (btrace_maint_update_packets): Update to handle change from VEC to
576 std::vector.
577 (btrace_maint_print_packets): Likewise.
578 (maint_info_btrace_cmd): Likewise.
579 * btrace.h: Remove use of DEF_VEC_O.
580 (typedef btrace_pt_packet_s): Delete.
581 (struct btrace_maint_info) <packets>: Change fromm VEC to
582 std::vector.
583 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
584
46f29a9a
AB
5852019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
588 make accesses into the vector constant references.
589 (btrace_add_pc): Update for std::vector.
590 (btrace_stitch_bts): Likewise.
591 (parse_xml_btrace_block): Likewise.
592 (btrace_maint_update_packets): Likewise.
593 (btrace_maint_print_packets): Likewise.
594 (maint_info_btrace_cmd): Likewise.
595 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
596 std::vector.
597 (btrace_data::empty): Likewise.
598 (btrace_data_append): Likewise.
599 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
600 (typedef btrace_block_s): Delete.
601 (struct btrace_block): Add constructor.
602 (struct btrace_data_bts) <blocks>: Change to std::vector.
603 * nat/linux-btrace.c (perf_event_read_bts): Update for
604 std::vector.
605 (linux_read_bts): Likewise.
606
d770d56f
TT
6072019-10-01 Tom Tromey <tom@tromey.com>
608
609 * cli/cli-logging.c (show_logging_filename): Use styled_string.
610
9d636d67
TT
6112019-10-01 Tom Tromey <tom@tromey.com>
612
613 * stack.c (print_frame, info_frame_command_core): Use
614 styled_string.
615 * linux-thread-db.c (try_thread_db_load_1)
616 (try_thread_db_load_from_pdir_1): Use styled_string.
617 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
618 (auto_load_section_scripts, info_auto_load_local_gdbinit)
619 (maybe_print_unsupported_script_warning)
620 (maybe_print_script_not_found_warning): Use styled_string.
621 * ada-lang.c (user_select_syms): Use styled_string.
622
7f6aba03
TT
6232019-10-01 Tom Tromey <tom@tromey.com>
624
625 * p-lang.c (pascal_printstr): Use metadata style.
626 * value.c (show_convenience): Use metadata style.
627 * valprint.c (valprint_check_validity, val_print_optimized_out)
628 (val_print_not_saved, val_print_unavailable)
629 (val_print_invalid_address, generic_val_print, val_print)
630 (value_check_printable, val_print_array_elements): Use metadata
631 style.
632 * ui-out.h (class ui_out) <field_fmt>: New overload.
633 <do_field_fmt>: Add style parameter.
634 * ui-out.c (ui_out::field_fmt): New overload.
635 * typeprint.c (type_print_unknown_return_type)
636 (val_print_not_allocated, val_print_not_associated): Use metadata
637 style.
638 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
639 parameter.
640 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
641 * tracepoint.c (tvariables_info_1): Use metadata style.
642 * stack.c (print_frame_arg, print_frame_info, print_frame)
643 (info_frame_command_core): Use metadata style.
644 * skip.c (info_skip_command): Use metadata style.
645 * rust-lang.c (rust_print_enum): Use metadata style.
646 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
647 metadata style.
648 * python/py-framefilter.c (py_print_single_arg): Use metadata
649 style.
650 * printcmd.c (do_one_display, print_variable_and_value): Use
651 metadata style.
652 * p-valprint.c (pascal_val_print)
653 (pascal_object_print_value_fields): Use metadata style.
654 * p-typeprint.c (pascal_type_print_base): Use metadata style.
655 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
656 parameter.
657 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
658 * m2-valprint.c (m2_print_long_set): Use metadata style.
659 * m2-typeprint.c (m2_print_type): Use metadata style.
660 * infcmd.c (print_return_value_1): Use metadata style.
661 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
662 * f-valprint.c (info_common_command_for_block): Use metadata
663 style.
664 * f-typeprint.c (f_type_print_base): Use metadata style.
665 * expprint.c (print_subexp_standard): Use metadata style.
666 * cp-valprint.c (cp_print_value_fields): Use metadata style.
667 * cli/cli-style.h (class cli_style_option): Add constructor.
668 (metadata_style): Declare.
669 * cli/cli-style.c (metadata_style): New global.
670 (_initialize_cli_style): Register metadata style.
671 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
672 parameter.
673 * cli-out.c (cli_ui_out::do_field_fmt): Update.
674 * c-typeprint.c (c_type_print_base_struct_union)
675 (c_type_print_base_1): Use metadata style.
676 * breakpoint.c (watchpoint_value_print)
677 (print_one_breakpoint_location): Use metadata style.
678 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
679 style.
680 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
681 style.
682 * ada-valprint.c (val_print_packed_array_elements, printstr)
683 (print_field_values, ada_val_print_ref, ada_val_print): Use
684 metadata style.
685 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
686 style.
687 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
688 style.
689 * ada-lang.c (user_select_syms): Use metadata style.
690
14309bb6
TT
6912019-10-01 Tom Tromey <tom@tromey.com>
692
693 * cli/cli-cmds.c (pwd_command): Style output.
694
6a831f06
PA
6952019-10-01 Pedro Alves <palves@redhat.com>
696 Tom Tromey <tom@tromey.com>
697
698 * symtab.c (print_symbol_info): Use %ps.
699 (print_msymbol_info): Use %ps.
700 * symfile.c (symbol_file_add_with_addrs): Use %ps.
701 * printcmd.c (print_variable_and_value): Use %ps.
702 * macrocmd.c (show_pp_source_pos): Use %ps.
703 * infrun.c (print_exited_reason): Use ui_out::message.
704 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
705 (describe_other_breakpoints): Use ui_out::message and new
706 formats.
707 (say_where): Use new formats.
708 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
709 and new formats.
710
2a3c1174
PA
7112019-10-01 Pedro Alves <palves@redhat.com>
712 Tom Tromey <tom@tromey.com>
713
714 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
715 (test_gdb_formats): New function.
716 (run_tests): Call it.
717 (test_format_specifier): Update.
718 * utils.h (fputs_filtered): Update comment.
719 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
720 (fputs_styled_unfiltered): Declare.
721 * utils.c (fputs_styled_unfiltered): New function.
722 (vfprintf_maybe_filtered): Add gdbfmt parameter.
723 (vfprintf_filtered): Update.
724 (vfprintf_unfiltered, vprintf_filtered): Update.
725 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
726 * ui-out.h (enum ui_out_flag) <unfiltered_output,
727 disallow_ui_out_field>: New constants.
728 (enum class field_kind): New.
729 (struct base_field_s, struct signed_field_s): New.
730 (signed_field): New function.
731 (struct string_field_s): New.
732 (string_field): New function.
733 (struct styled_string_s): New.
734 (styled_string): New function.
735 (class ui_out) <message>: Add comment.
736 <vmessage, call_do_message>: New methods.
737 <do_message>: Add style parameter.
738 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
739 methods.
740 (ui_out::message): Rewrite.
741 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
742 parameter.
743 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
744 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
745 gdb_extensions parameter.
746 (class format_piece): Add parameter to constructor.
747 (n_int_args): New field.
748 * gdbsupport/format.c (format_pieces::format_pieces): Add
749 gdb_extensions parameter. Handle '*'.
750 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
751 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
752 vfprintf_styled_no_gdbfmt.
753 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
754 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
755 unfiltered output.
756 * ui-style.h (struct ui_file_style) <ptr>: New method.
757
0dfe5bfb
TT
7582019-10-01 Tom Tromey <tom@tromey.com>
759
760 * unittests/format_pieces-selftests.c: Update. Add final format.
761 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
762 empty literal pieces.
763
e43b10e1
TT
7642019-10-01 Tom Tromey <tom@tromey.com>
765
766 * ui-out.h (enum class ui_out_style_kind): Remove.
767 (class ui_out) <field_string, field_stsream, do_field_string>:
768 Change type of "style".
769 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
770 (ui_out::field_string): Update.
771 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
772 of "style".
773 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
774 * tracepoint.c (print_one_static_tracepoint_marker): Update.
775 * stack.c (print_frame_arg, print_frame_info, print_frame):
776 Update.
777 * source.c (print_source_lines_base): Update.
778 * solib.c (info_sharedlibrary_command): Update.
779 * skip.c (info_skip_command): Update.
780 * record-btrace.c (btrace_call_history_src_line)
781 (btrace_call_history): Update.
782 * python/py-framefilter.c (py_print_frame): Update.
783 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
784 "style".
785 * mi/mi-out.c (mi_ui_out::do_table_header)
786 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
787 (mi_ui_out::do_field_string): Update.
788 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
789 Update.
790 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
791 "style".
792 * cli-out.c (cli_ui_out::do_table_header)
793 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
794 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
795 (cli_ui_out::do_field_fmt): Update.
796 * breakpoint.c (print_breakpoint_location): Update.
797 (update_static_tracepoint): Update.
798
cd7c32c3
PW
7992019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
800
801 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
802 conversion of gdb_datadir.
803 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
804 remove not needed c_str ().
805
8fe0f950
AT
8062019-09-30 Ali Tamur <tamur@google.com>
807
808 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
809 (dwarf2_string_attr): Likewise.
810
5f48f8f3
AT
8112019-09-30 Ali Tamur <tamur@google.com>
812
813 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
814 (process_full_type_unit): Likewise.
815 (dump_die_shallow): Likewise.
816 (cu_debug_loc_section): Likewise.
817
6fb08628
CB
8182019-09-28 Christian Biesinger <cbiesinger@google.com>
819
820 * minsyms.c (compare_minimal_symbols): Rename to...
821 (minimal_symbol_is_less_than): ...this, and adjust to STL
822 conventions (return bool, take arguments as references)
823 (minimal_symbol_reader::install): Call std::sort instead
824 of qsort.
825
c7ee338a
CB
8262019-09-29 Christian Biesinger <cbiesinger@google.com>
827
828 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
829 hash and why.
830 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
831 msymbol_hash, msymbol_demangled_hash>: Improve comments.
832
703a86c2
SM
8332019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
834
835 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
836 * psympriv.h (add_psymbol_to_list): Move comment here and update
837 it.
838
0df0352a
TV
8392019-09-29 Tom de Vries <tdevries@suse.de>
840
841 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
842 Use $tmpdir/$(basename "$output_file").dwz instead of
843 "${output_file}.dwz".
844
ad75efa6
SM
8452019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
846
847 PR gdb/25045
848 * hppa-linux-nat.c: Include gdbarch.h.
849
ececd218
CB
8502019-09-26 Christian Biesinger <cbiesinger@google.com>
851
852 * blockframe.c (find_pc_partial_function): Change return type to bool.
853 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
854 * minsyms.c (in_gnu_ifunc_stub): Likewise.
855 (stub_gnu_ifunc_resolve_name): Likewise.
856 * symtab.c (compare_filenames_for_search): Likewise.
857 (compare_glob_filenames_for_search): Likewise.
858 (matching_obj_sections): Likewise.
859 (symbol_matches_domain): Likewise.
860 (find_line_symtab): Change out param EXACT_MATCH to bool *.
861 (find_line_pc): Change return type to bool.
862 (find_line_pc_range): Likewise.
863 (producer_is_realview): Likewise.
864 * symtab.h (symbol_matches_domain): Likewise.
865 (find_pc_partial_function): Likewise.
866 (find_pc_line_pc_range): Likewise.
867 (in_gnu_ifunc_stub): Likewise.
868 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
869 (find_line_pc): Likewise.
870 (find_line_pc_range): Likewise.
871 (matching_obj_sections): Likewise.
872 (find_line_symtab): Change out parameter to bool.
873 (producer_is_realview): Change return type to bool.
874 (compare_filenames_for_search): Likewise.
875 (compare_glob_filenames_for_search): Likewise.
876
27a900b8
TT
8772019-09-26 Tom Tromey <tom@tromey.com>
878
879 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
880 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
881 * gdb_usleep.h: Remove.
882 * gdb_usleep.c: Remove.
883 * utils.c: Don't include gdb_usleep.h.
884
5d63b30a
TT
8852019-09-26 Tom Tromey <tromey@adacore.com>
886
887 * python/py-type.c (type_to_type_object): Call check_typedef
888 for stub types.
889
12904d37
TT
8902019-09-26 Tom Tromey <tom@tromey.com>
891
892 * utils.h (initialize_utils): Don't declare.
893 * top.c (gdb_init): Don't call initialize_utils.
894 * utils.c (initialize_utils): Remove. Move contents...
895 (_initialize_utils): ... here.
896
858f25f0
TT
8972019-09-25 Tom Tromey <tom@tromey.com>
898
899 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
900 * utils.h (make_hex_string): Don't declare.
901 * utils.c (make_hex_string): Remove.
902
3d435220
TV
9032019-09-24 Tom de Vries <tdevries@suse.de>
904
905 PR gdb/23815
906 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
907 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
908
ddd44b70
DD
9092019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
910
911 * NEWS: Mention new simulator port for PRU.
912
f945dedf
CB
9132019-09-23 Christian Biesinger <cbiesinger@google.com>
914
915 * ada-exp.y (write_object_remaining): Update.
916 * ada-lang.c (ada_decode): Return a std::string instead of a char*
917 and eliminate the static buffer.
918 (ada_decode_symbol): Update.
919 (ada_la_decode): Update.
920 (ada_sniff_from_mangled_name): Update.
921 (is_valid_name_for_wild_match): Update.
922 (ada_lookup_name_info::matches): Update and simplify.
923 (name_matches_regex): Update.
924 (ada_add_global_exceptions): Update.
925 * ada-lang.h (ada_decode): Update signature.
926 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
927 * dwarf-index-write.c (debug_names::insert): Update.
928
7ab78ccb
SM
9292019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
932 formatting.
933
9252448b
SM
9342019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
937 Change "nonzero" to "true" in documentation.
938
626ca2c0
CB
9392019-09-20 Christian Biesinger <cbiesinger@google.com>
940
941 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
942 (_initialize_darwin_solib): Don't set
943 darwin_so_ops.lookup_lib_global_symbol.
944 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
945 set_gdbarch_iterate_over_objfiles_in_search_order.
946 (elf_lookup_lib_symbol): Rename to...
947 (svr4_iterate_over_objfiles_in_search_order): this, and update
948 to iterate semantics.
949 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
950 * solib.c (solib_global_lookup): Remove.
951 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
952 (solib_global_lookup): Remove.
953 * symtab.c (lookup_global_or_static_symbol): Remove call to
954 solib_global_lookup.
955
5a3a0d63
JB
9562019-09-20 Joel Brobecker <brobecker@adacore.com>
957
958 * NEWS: Move entries about default MI version now being
959 version 3, and about the GDB/MI fix for multi-location
960 breakpoints to the "since GDB 8.3" section.
961
ffea1427
JB
9622019-09-20 Joel Brobecker <brobecker@adacore.com>
963
964 GDB 8.3.1 released.
965
abf516c6
UW
9662019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
967
968 * NEWS: Mention that Cell/B.E. debugging support was removed.
969 * MAINTAINERS: Remove spu target.
970
971 * config/djgpp/fnchange.lst: Remove entries for removed files.
972
973 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
974 spu-multiarch.o, and spu-tdep.o.
975 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
976 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
977 spu-multiarch.c, and spu-tdep.c.
978 * spu-linux-nat.c: Remove file.
979 * spu-multiarch.c: Remove file.
980 * spu-tdep.c: Remove file.
981 * spu-tdep.h: Remove file.
982 * solib-spu.c: Remove file.
983 * solib-spu.h: Remove file.
984
985 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
986 * configure.nat (spu-linux): Remove.
987 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
988 solib-multiarch.o from gdb_target_obs.
989 (spu*-*-*): Remove.
990
991 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
992 feature flag.
993 (ppc_linux_no_features): Update.
994 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
995 Cell/B.E. support.
996 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
997 (tdesc_powerpc_cell64l): Likewise.
998 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
999 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1000 Cell/B.E. support.
1001 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1002 Do not include "features/rs6000/powerpc-cell32l.c" or
1003 "features/rs6000/powerpc-cell64l.c".
1004 (ppc_linux_spu_section): Remove.
1005 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1006 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1007 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1008 (ppc_linux_spe_context_lookup): Remove.
1009 (ppc_linux_spe_context_inferior_created): Remove.
1010 (ppc_linux_spe_context_solib_loaded): Remove.
1011 (ppc_linux_spe_context_solib_unloaded): Remove.
1012 (ppc_linux_spe_context): Remove.
1013 (struct ppu2spu_cache): Remove.
1014 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1015 (struct ppu2spu_data): Remove.
1016 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1017 ppu2spu_unwind): Remove.
1018 (ppc_linux_init_abi): Remove Cell/B.E. support.
1019 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1020
1021 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1022 (rs6000/powerpc-cell64l-expedite): Likewise
1023 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1024 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1025 rs6000/powerpc-cell64l.xml.
1026 * features/rs6000/powerpc-cell32l.xml: Remove.
1027 * features/rs6000/powerpc-cell64l.xml: Likewise.
1028 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1029 * features/rs6000/powerpc-cell64l.c: Likewise.
1030 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1031 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1032 * regformats/reg-spu.dat: Remove.
1033
1034 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1035 * corelow.c (struct spuid_list): Remove.
1036 (add_to_spuid_list): Remove.
1037 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1038 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1039 (remote_protocol_features): Remove associated entries.
1040 (_initialize_remote): No longer initialize them.
1041 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1042 * linux-nat.c (SPUFS_MAGIC): Remove.
1043 (linux_proc_xfer_spu): Remove.
1044 (spu_enumerate_spu_ids): Remove.
1045 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1046 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1047 (linux_make_corefile_notes): No longer call it.
1048
1049 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1050 (cooked_write_test): Likewise.
1051
78e8cb91
TT
10522019-09-20 Tom Tromey <tom@tromey.com>
1053
1054 * NEWS: Mention case-sensitivity of TUI commands.
1055 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1056 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1057 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1058
f074b67e
TT
10592019-09-20 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-source.c (tui_source_window::set_contents): Use
1062 make_unique_xstrdup.
1063 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1064 make_unique_xstrdup.
1065
63c4bf19
TT
10662019-09-20 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-data.c: Remove separator comments.
1069 * tui/tui-layout.c: Remove separator comments.
1070 * tui/tui-win.c: Remove separator comments.
1071 * tui/tui-wingeneral.c: Remove separator comments.
1072
43df9b2f
TT
10732019-09-20 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui.h (strcat_to_buf): Don't declare.
1076 * tui/tui.c (strcat_to_buf): Remove.
1077
7226433c
TT
10782019-09-20 Tom Tromey <tom@tromey.com>
1079
1080 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1081 from "fullname".
1082 * tui/tui-source.c (tui_source_window::set_contents)
1083 (tui_source_window::location_matches_p)
1084 (tui_source_window::maybe_update): Update.
1085
80df3337
TT
10862019-09-20 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1089 Update.
1090 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1091 prefix.
1092 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1093 (tui_data_window::line_from_reg_element_no)
1094 (tui_data_window::first_reg_element_no_inline)
1095 (tui_data_window::show_registers)
1096 (tui_data_window::show_register_group)
1097 (tui_data_window::display_registers_from)
1098 (tui_data_window::display_registers_from_line)
1099 (tui_data_window::first_data_item_displayed)
1100 (tui_data_window::delete_data_content_windows)
1101 (tui_data_window::erase_data_content)
1102 (tui_data_window::do_scroll_vertical)
1103 (tui_data_window::refresh_window)
1104 (tui_data_window::check_register_values): Update.
1105
9923f347
TT
11062019-09-20 Tom Tromey <tom@tromey.com>
1107
1108 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1109 (struct tui_locator_window) <full_name, proc_name>: Now
1110 std::string.
1111 * tui/tui-stack.c (tui_locator_window::make_status_line)
1112 (tui_locator_window::set_locator_fullname)
1113 (tui_locator_window::set_locator_info): Update.
1114 * tui/tui-source.c (tui_source_window::set_contents)
1115 (tui_source_window::showing_source_p): Update.
1116
b76251ab
TT
11172019-09-20 Tom Tromey <tom@tromey.com>
1118
1119 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1120 Don't call tui_locator_win_info_ptr.
1121
0891be08
TT
11222019-09-20 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1125
1b935acf
TT
11262019-09-20 Tom Tromey <tom@tromey.com>
1127
1128 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1129 height for locator.
1130 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1131 * tui/tui-layout.c (show_source_disasm_command, show_data)
1132 (show_source_or_disasm_and_command): Use 1 as height for locator.
1133
9abd8a65
TT
11342019-09-20 Tom Tromey <tom@tromey.com>
1135
1136 * tui/tui.c (tui_enable): Update.
1137 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1138 Update.
1139 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1140 Update.
1141 * tui/tui-data.c (win_resized): Now bool.
1142 (tui_win_resized): Return bool.
1143 (tui_set_win_resized_to): Accept a bool.
1144
b5457826
TT
11452019-09-20 Tom Tromey <tom@tromey.com>
1146
1147 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1148 Change type of "refresh_values_only".
1149 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1150 type of "refresh_values_only".
1151
6b915f7d
TT
11522019-09-20 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1155 std::string.
1156 (tui_disassemble): Add "pos" parameter.
1157 (tui_disasm_window::set_contents): Simplify.
1158
2ad52f6f
TT
11592019-09-20 Tom Tromey <tom@tromey.com>
1160
1161 * tui/tui-winsource.h (struct tui_source_window_base)
1162 <show_source_content>: Now private.
1163 * tui/tui-winsource.c
1164 (tui_source_window_base::show_source_content): Don't handle empty
1165 content case.
1166
b3b1bde6
TT
11672019-09-20 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-layout.c (show_source_disasm_command)
1170 (show_source_or_disasm_and_command): Don't call
1171 show_source_content.
1172
71a25ed2
TT
11732019-09-20 Tom Tromey <tom@tromey.com>
1174
1175 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1176 Declare.
1177 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1178 from tui_make_status_line.
1179 (tui_locator_window::rerender): Update.
1180
f8532154
TT
11812019-09-20 Tom Tromey <tom@tromey.com>
1182
1183 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1184 (tui_locator_window::rerender): Update.
1185
2d81b349
TT
11862019-09-20 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui-winsource.h (struct tui_source_window_base)
1189 <~tui_source_window_base>: Don't declare.
1190 <fullname>: Remove.
1191 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1192 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1193 member.
1194 * tui/tui-source.c (tui_source_window::set_contents): Update.
1195 (tui_source_window::location_matches_p)
1196 (tui_source_window::maybe_update): Update.
1197
f14bec58
TT
11982019-09-20 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui-winsource.h (~tui_source_element): Remove.
1201 (tui_source_element): Update.
1202 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1203 * tui/tui-winsource.c (tui_show_source_line): Update.
1204 * tui/tui-source.c (tui_source_window::set_contents): Update.
1205 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1206
78d5933a
TT
12072019-09-20 Tom Tromey <tom@tromey.com>
1208
1209 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1210 declare.
1211 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1212 tui_clear_source_windows_detail.
1213 * tui/tui-winsource.h (struct tui_source_window_base)
1214 <clear_detail>: Don't declare.
1215 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1216 Remove.
1217 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1218
d4207696
TT
12192019-09-20 Tom Tromey <tromey@adacore.com>
1220
1221 PR ada/24919:
1222 * block.c (contained_in): Fix final return value.
1223
00f93c44
AM
12242019-09-20 Alan Modra <amodra@gmail.com>
1225
1226 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1227 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1228 (read_indirect_string_from_dwz): Use bfd accessor.
1229 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1230 * machoread.c (macho_symfile_read_all_oso): Likewise.
1231 * solib.c (solib_bfd_open): Likewise.
1232
e4153ae6
CB
12332019-09-19 Christian Biesinger <cbiesinger@google.com>
1234
1235 * eval.c: Move declaration of overload_resolution to...
1236 * value.h: ...here.
1237
c7ae7675
CB
12382019-09-19 Christian Biesinger <cbiesinger@google.com>
1239
1240 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1241 * arm-linux-tdep.c: Likewise.
1242 * arm-nbsd-nat.c: Likewise.
1243 * arm-tdep.h: Declare arm_apcs_32.
1244 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1245
e86f08d2
CB
12462019-09-19 Christian Biesinger <cbiesinger@google.com>
1247
1248 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1249 * dwarf2read.h: Declare dwarf_always_disassemble.
1250
f64e2f40
TV
12512019-09-19 Tom de Vries <tdevries@suse.de>
1252
1253 PR gdb/25009
1254 * source-cache.c (source_cache::ensure): Catch exception thrown during
1255 construction of the highlighter.
1256
fd361982
AM
12572019-09-18 Alan Modra <amodra@gmail.com>
1258
1259 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1260 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1261 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1262 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1263 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1264 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1265 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1266 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1267 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1268 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1269 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1270 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1271 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1272 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1273 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1274 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1275 * mi/mi-interp.c: Update throughout for bfd section macro and
1276 function changes.
1277 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1278 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1279
11061048
TT
12802019-09-18 Tom Tromey <tom@tromey.com>
1281
1282 * NEWS: Add entry.
1283 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1284 call rl_initialize.
1285 (tui_enable): Do not call rl_initialize.
1286
7a27b85f
CG
12872019-09-18 Christian Groessler <chris@groessler.org>
1288
1289 * alpha-linux-nat.c: Include gdbarch.h.
1290
f64eea3a
SM
12912019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * ui-file.c: Include cli/cli-style.h.
1294 (term_cli_styling): Remove cli_styling declaration.
1295
e6f7f6d1
AM
12962019-09-18 Alan Modra <amodra@gmail.com>
1297
1298 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1299 to bfd_asymbol_section.
1300
1d38e9d1
AM
13012019-09-18 Alan Modra <amodra@gmail.com>
1302
1303 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1304 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1305 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1306
90d92a63
AM
13072019-09-18 Alan Modra <amodra@gmail.com>
1308
1309 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1310 * spu-linux-nat.c (spu_bfd_open): Likewise.
1311
a3d181d2
CB
13122019-09-18 Christian Biesinger <cbiesinger@google.com>
1313
1314 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1315 to bool to match definition in dwarf2read.c.
1316
491144b5
CB
13172019-09-17 Christian Biesinger <cbiesinger@google.com>
1318
1319 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1320 (print_signatures): Likewise.
1321 (trust_pad_over_xvs): Likewise.
1322 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1323 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1324 * arm-linux-nat.c (arm_apcs_32): Likewise.
1325 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1326 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1327 * arm-tdep.c (arm_debug): Likewise.
1328 (arm_apcs_32): Likewise.
1329 * auto-load.c (debug_auto_load): Likewise.
1330 (auto_load_gdb_scripts): Likewise.
1331 (global_auto_load): Likewise.
1332 (auto_load_local_gdbinit): Likewise.
1333 (auto_load_local_gdbinit_loaded): Likewise.
1334 * auto-load.h (global_auto_load): Likewise.
1335 (auto_load_local_gdbinit): Likewise.
1336 (auto_load_local_gdbinit_loaded): Likewise.
1337 * breakpoint.c (disconnected_dprintf): Likewise.
1338 (breakpoint_proceeded): Likewise.
1339 (automatic_hardware_breakpoints): Likewise.
1340 (always_inserted_mode): Likewise.
1341 (target_exact_watchpoints): Likewise.
1342 (_initialize_breakpoint): Update.
1343 * breakpoint.h (target_exact_watchpoints): Change to bool.
1344 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1345 * cli/cli-cmds.c (trace_commands): Likewise.
1346 * cli/cli-cmds.h (trace_commands): Likewise.
1347 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1348 to bool*.
1349 * cli/cli-logging.c (logging_overwrite): Change to bool.
1350 (logging_redirect): Likewise.
1351 (debug_redirect): Likewise.
1352 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1353 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1354 to bool.
1355 <boolean_option_def>: Update.
1356 (struct flag_option_def): Change default type of Context to bool
1357 from int.
1358 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1359 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1360 (get_setshow_command_value_string): Likewise.
1361 * cli/cli-style.c (cli_styling): Change to bool.
1362 (source_styling): Likewise.
1363 * cli/cli-style.h (source_styling): Likewise.
1364 (cli_styling): Likewise.
1365 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1366 to bool.
1367 * command.h (var_types): Update comment.
1368 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1369 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1370 bool.
1371 (debug_compile_cplus_scopes): Likewise.
1372 * compile/compile-internal.h (compile_debug): Likewise.
1373 * compile/compile.c (compile_debug): Likewise.
1374 (struct compile_options) <raw>: Likewise.
1375 * cp-support.c (catch_demangler_crashes): Likewise.
1376 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1377 (usr_cmd_cris_dwarf2_cfi): Likewise.
1378 * csky-tdep.c (csky_debug): Likewise.
1379 * darwin-nat.c (enable_mach_exceptions): Likewise.
1380 * dcache.c (dcache_enabled_p): Likewise.
1381 * defs.h (info_verbose): Likewise.
1382 * demangle.c (demangle): Likewise.
1383 (asm_demangle): Likewise.
1384 * dwarf-index-cache.c (debug_index_cache): Likewise.
1385 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1386 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1387 * dwarf2read.c (check_physname): Likewise.
1388 (use_deprecated_index_sections): Likewise.
1389 (dwarf_always_disassemble): Likewise.
1390 * eval.c (overload_resolution): Likewise.
1391 * event-top.c (set_editing_cmd_var): Likewise.
1392 (exec_done_display_p): Likewise.
1393 * event-top.h (set_editing_cmd_var): Likewise.
1394 (exec_done_display_p): Likewise.
1395 * exec.c (write_files): Likewise.
1396 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1397 (debug_fbsd_nat): Likewise.
1398 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1399 Likewise.
1400 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1401 <backtrace_past_entry> Likewise.
1402 * gdb-demangle.h (demangle): Likewise.
1403 (asm_demangle): Likewise.
1404 * gdb_bfd.c (bfd_sharing): Likewise.
1405 * gdbcore.h (write_files): Likewise.
1406 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1407 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1408 * gdbthread.h (print_thread_events): Likewise.
1409 * gdbtypes.c (opaque_type_resolution): Likewise.
1410 (strict_type_checking): Likewise.
1411 * gnu-nat.c (gnu_debug_flag): Likewise.
1412 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1413 * guile/scm-param.c (pascm_variable): Add boolval.
1414 (add_setshow_generic): Update.
1415 (pascm_param_value): Update.
1416 (pascm_set_param_value_x): Update.
1417 * hppa-tdep.c (hppa_debug): Change to bool..
1418 * infcall.c (may_call_functions_p): Likewise.
1419 (coerce_float_to_double_p): Likewise.
1420 (unwind_on_signal_p): Likewise.
1421 (unwind_on_terminating_exception_p): Likewise.
1422 * infcmd.c (startup_with_shell): Likewise.
1423 * inferior.c (print_inferior_events): Likewise.
1424 * inferior.h (startup_with_shell): Likewise.
1425 (print_inferior_events): Likewise.
1426 * infrun.c (step_stop_if_no_debug): Likewise.
1427 (detach_fork): Likewise.
1428 (debug_displaced): Likewise.
1429 (disable_randomization): Likewise.
1430 (non_stop): Likewise.
1431 (non_stop_1): Likewise.
1432 (observer_mode): Likewise.
1433 (observer_mode_1): Likewise.
1434 (set_observer_mode): Update.
1435 (sched_multi): Change to bool.
1436 * infrun.h (debug_displaced): Likewise.
1437 (sched_multi): Likewise.
1438 (step_stop_if_no_debug): Likewise.
1439 (non_stop): Likewise.
1440 (disable_randomization): Likewise.
1441 * linux-tdep.c (use_coredump_filter): Likewise.
1442 (dump_excluded_mappings): Likewise.
1443 * linux-thread-db.c (auto_load_thread_db): Likewise.
1444 (check_thread_db_on_load): Likewise.
1445 * main.c (captured_main_1): Update.
1446 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1447 xx2_opt, boolean_opt>: Change to bool.
1448 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1449 * maint.c (maintenance_profile_p): Likewise.
1450 (per_command_time): Likewise.
1451 (per_command_space): Likewise.
1452 (per_command_symtab): Likewise.
1453 * memattr.c (inaccessible_by_default): Likewise.
1454 * mi/mi-main.c (mi_async): Likewise.
1455 (mi_async_1): Likewise.
1456 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1457 * nat/fork-inferior.h (startup_with_shell): Likewise.
1458 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1459 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1460 * nios2-tdep.c (nios2_debug): Likewise.
1461 * or1k-tdep.c (or1k_debug): Likewise.
1462 * parse.c (parser_debug): Likewise.
1463 * parser-defs.h (parser_debug): Likewise.
1464 * printcmd.c (print_symbol_filename): Likewise.
1465 * proc-api.c (procfs_trace): Likewise.
1466 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1467 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1468 (set_parameter_value): Update.
1469 (add_setshow_generic): Update.
1470 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1471 to bool*.
1472 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1473 int*.
1474 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1475 * record-btrace.c (record_btrace_target::store_registers): Update.
1476 * record-full.c (record_full_memory_query): Change to bool.
1477 (record_full_stop_at_limit): Likewise.
1478 * record-full.h (record_full_memory_query): Likewise.
1479 * remote-notif.c (notif_debug): Likewise.
1480 * remote-notif.h (notif_debug): Likewise.
1481 * remote.c (use_range_stepping): Likewise.
1482 (interrupt_on_connect): Likewise.
1483 (remote_break): Likewise.
1484 * ser-tcp.c (tcp_auto_retry): Likewise.
1485 * ser-unix.c (serial_hwflow): Likewise.
1486 * skip.c (debug_skip): Likewise.
1487 * solib-aix.c (solib_aix_debug): Likewise.
1488 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1489 (spu_auto_flush_cache_p): Likewise.
1490 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1491 Likewise.
1492 (struct info_print_options) <quiet>: Likewise.
1493 * symfile-debug.c (debug_symfile): Likewise.
1494 * symfile.c (auto_solib_add): Likewise.
1495 (separate_debug_file_debug): Likewise.
1496 * symfile.h (auto_solib_add): Likewise.
1497 (separate_debug_file_debug): Likewise.
1498 * symtab.c (basenames_may_differ): Likewise.
1499 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1500 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1501 (struct info_types_options) <quiet>: Likewise.
1502 * symtab.h (demangle): Likewise.
1503 (basenames_may_differ): Likewise.
1504 * target-dcache.c (stack_cache_enabled_1): Likewise.
1505 (code_cache_enabled_1): Likewise.
1506 * target.c (trust_readonly): Likewise.
1507 (may_write_registers): Likewise.
1508 (may_write_memory): Likewise.
1509 (may_insert_breakpoints): Likewise.
1510 (may_insert_tracepoints): Likewise.
1511 (may_insert_fast_tracepoints): Likewise.
1512 (may_stop): Likewise.
1513 (auto_connect_native_target): Likewise.
1514 (target_stop_and_wait): Update.
1515 (target_async_permitted): Change to bool.
1516 (target_async_permitted_1): Likewise.
1517 (may_write_registers_1): Likewise.
1518 (may_write_memory_1): Likewise.
1519 (may_insert_breakpoints_1): Likewise.
1520 (may_insert_tracepoints_1): Likewise.
1521 (may_insert_fast_tracepoints_1): Likewise.
1522 (may_stop_1): Likewise.
1523 * target.h (target_async_permitted): Likewise.
1524 (may_write_registers): Likewise.
1525 (may_write_memory): Likewise.
1526 (may_insert_breakpoints): Likewise.
1527 (may_insert_tracepoints): Likewise.
1528 (may_insert_fast_tracepoints): Likewise.
1529 (may_stop): Likewise.
1530 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1531 (make_thread_apply_all_options_def_group): Change argument from int*
1532 to bool*.
1533 (thread_apply_all_command): Update.
1534 (print_thread_events): Change to bool.
1535 * top.c (confirm): Likewise.
1536 (command_editing_p): Likewise.
1537 (history_expansion_p): Likewise.
1538 (write_history_p): Likewise.
1539 (info_verbose): Likewise.
1540 * top.h (confirm): Likewise.
1541 (history_expansion_p): Likewise.
1542 * tracepoint.c (disconnected_tracing): Likewise.
1543 (circular_trace_buffer): Likewise.
1544 * typeprint.c (print_methods): Likewise.
1545 (print_typedefs): Likewise.
1546 * utils.c (debug_timestamp): Likewise.
1547 (sevenbit_strings): Likewise.
1548 (pagination_enabled): Likewise.
1549 * utils.h (sevenbit_strings): Likewise.
1550 (pagination_enabled): Likewise.
1551 * valops.c (overload_resolution): Likewise.
1552 * valprint.h (struct value_print_options) <prettyformat_arrays,
1553 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1554 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1555 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1556 Likewise.
1557 * windows-nat.c (new_console): Likewise.
1558 (cygwin_exceptions): Likewise.
1559 (new_group): Likewise.
1560 (debug_exec): Likewise.
1561 (debug_events): Likewise.
1562 (debug_memory): Likewise.
1563 (debug_exceptions): Likewise.
1564 (useshell): Likewise.
1565 * windows-tdep.c (maint_display_all_tib): Likewise.
1566 * xml-support.c (debug_xml): Likewise.
1567
f1b620e9
MG
15682019-09-17 Mike Gulick <mgulick@mathworks.com>
1569
1570 * source.c (prepare_path_for_appending): New function.
1571 (openp): Make use of new function.
1572 (find_and_open_source): Search for the compilation directory and
1573 source file as a relative path beneath the directory search path.
1574
67f3ed6a
AB
15752019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * source-cache.c (source_cache::get_line_charpos): Catch
1578 exceptions and return false, this matches the behaviour documented
1579 in the header file.
1580
74332189
JB
15812019-09-17 Joel Brobecker <brobecker@adacore.com>
1582
1583 * ada-tasks.c (info_task): Remove quoting of the task's name.
1584
f2f24aa9
CB
15852019-09-16 Christian Biesinger <cbiesinger@google.com>
1586
1587 * symfile.c (auto_solib_add): Replace comment with a reference
1588 to the header file.
1589
6a062a93
CB
15902019-09-14 Christian Biesinger <cbiesinger@google.com>
1591
1592 * NEWS: Mention that gdb can now be compiled with Python 3
1593 on Windows.
1594
ec6c8338
AB
15952019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * maint.c (maint_print_section_data::maint_print_section_data):
1598 Force use of 'float log10 (float)' by casting the argument to
1599 float.
1600
aa17805f
AB
16012019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * maint.c: Add 'cmath' include.
1604 (struct maint_print_section_data): New structure.
1605 (print_section_index): New function.
1606 (print_bfd_section_info): Add header comment, small whitespace
1607 cleanup, and update to call new print_section_index function.
1608 (print_objfile_section_info): Likewise.
1609 (maint_obj_section_from_bfd_section): New function.
1610 (print_bfd_section_info_maybe_relocated): New function.
1611 (maintenance_info_sections): Add header comment, always use
1612 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1613
3dd9bb46
AB
16142019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1617 inner scope, add check that the objfile has psymtabs before
1618 checking psymtabs_addrmap.
1619 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1620
4993045d
PW
16212019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1622
1623 * NEWS: Announce that Ada task names are now shown at more places,
1624 and between quotes (except in info task output).
1625 * gdb/ada-tasks.c (task_to_str): New function.
1626 (display_current_task_id): Call task_to_str.
1627 (task_command_1): Likewise.
1628 (print_ada_task_info): In non-mi mode, Properly align headers and data
1629 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1630
7a289707
RO
16312019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632
1633 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1634 prstatus.pr_lwp.pr_info instead of making it up.
1635
f2aec7f6
CB
16362019-09-11 Christian Biesinger <cbiesinger@google.com>
1637
1638 * auto-load.c (auto_load_expand_dir_vars): Update.
1639 * defs.h (gdb_datadir): Change to std::string.
1640 (python_libdir): Likewise.
1641 (relocate_gdb_directory): Change return type to std::string.
1642 * guile/guile.c (gdbscm_data_directory): Update.
1643 (initialize_scheme_side): Update.
1644 * jit.c (jit_reader_dir): Change to std::string.
1645 (jit_reader_load_command): Update.
1646 * main.c (gdb_datadir): Change to std::string.
1647 (python_libdir): Likewise.
1648 (set_gdb_data_directory): Update.
1649 (relocate_path): Change to return std::string.
1650 (relocate_gdb_directory): Change to return std::string.
1651 (relocate_gdbinit_path_maybe_in_datadir): Update.
1652 (captured_main_1): Update.
1653 * python/python.c (do_start_initialization): Update.
1654 * top.c (show_gdb_datadir): Update.
1655 * xml-syscall.c (xml_init_syscalls_info): Update.
1656 (init_syscalls_info): Update.
1657
9224a013
CB
16582019-09-11 Christian Biesinger <cbiesinger@google.com>
1659
1660 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1661 out of get_init_files.
1662 (get_init_files): Update.
1663
f48cd836
CB
16642019-09-11 Christian Biesinger <cbiesinger@google.com>
1665
1666 * main.c (get_init_files): Change to use std::string.
1667 (captured_main_1): Update.
1668 (print_gdb_help): Update.
1669
9cab7ecd
AT
16702019-09-11 Ali Tamur <tamur@google.com>
1671
1672 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1673 implementation.
1674
67547d89
CB
16752019-09-11 Christian Biesinger <cbiesinger@google.com>
1676
1677 * dbxread.c (read_dbx_symtab): Update.
1678 * dwarf2read.c (load_partial_dies): Update.
1679 * mdebugread.c (parse_partial_symbols): Update.
1680 (handle_psymbol_enumerators): Update.
1681 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1682 * psymtab.c (add_psymbol_to_bcache): Likewise.
1683 (add_psymbol_to_list): Likewise.
1684 * symtab.c (symbol_set_names): Likewise.
1685 * symtab.h (symbol_set_names): Likewise.
1686 * xcoffread.c (scan_xcoff_symtab): Update.
1687
64b2d4a0
TT
16882019-09-11 Tom Tromey <tom@tromey.com>
1689
1690 * symfile-mem.c (symbol_file_add_from_memory): Use
1691 bfd_set_filename.
1692 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1693 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1694
3b00ef10
TT
16952019-09-10 Tom Tromey <tromey@adacore.com>
1696
1697 * dwarf-index-write.c (write_psymbols): Extend error message.
1698 (debug_names::insert): Add Ada code.
1699 (debug_names::write_psymbols): Remove Ada check.
1700 (debug_names) <m_string_obstack>: New member.
1701 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1702 (gdb_index_symbol_name_matcher::matches): Remove.
1703 (mapped_index_base::find_name_components_bounds): Add "lang"
1704 parameter.
1705 (mapped_index_base::build_name_components): Also split names
1706 according to Ada syntax.
1707 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1708 type of "match_callback".
1709 (check_match, check_find_bounds_finds)
1710 (dw2_expand_symtabs_matching): Update.
1711 (dw2_debug_names_iterator): Add new constructor.
1712 (dw2_debug_names_map_matching_symbols): New function.
1713 (dw2_debug_names_expand_symtabs_matching): Update.
1714 (dwarf2_debug_names_functions): Use
1715 dw2_debug_names_map_matching_symbols.
1716
aa391654
TT
17172019-09-10 Tom Tromey <tromey@adacore.com>
1718
1719 * dwarf2read.c (dw2_get_file_names_reader): Add the
1720 CU's file name to the results.
1721
b054970d
TT
17222019-09-10 Tom Tromey <tromey@adacore.com>
1723
1724 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1725 map_matching_symbols. Update.
1726 * dwarf2read.c (dw2_map_matching_symbols): Update.
1727 * psymtab.c (match_partial_symbol): Change type; update.
1728 (psym_map_matching_symbols): Likewise.
1729 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1730 type; update.
1731 * symfile.h (struct quick_symbol_functions)
1732 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1733 Remove "match".
1734
6a3dbf1b
TT
17352019-09-10 Tom Tromey <tromey@adacore.com>
1736
1737 * psymtab.c (map_block): Remove.
1738 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1739 * symtab.c (iterate_over_symbols_terminated): New function.
1740 * symtab.c (iterate_over_symbols_terminated): Declare.
1741
6969f124
TT
17422019-09-10 Tom Tromey <tromey@adacore.com>
1743
1744 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1745 * language.h (struct language_defn) <la_iterate_over_symbols>:
1746 Return bool.
1747 * symtab.c (iterate_over_symbols): Return bool.
1748 * symtab.h (iterate_over_symbols): Return bool.
1749
199b4314
TT
17502019-09-10 Tom Tromey <tromey@adacore.com>
1751
1752 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1753 (add_nonlocal_symbols): Update.
1754 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1755 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1756 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1757 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1758 Change type of "callback". Remove "data".
1759
a084a2a6
AT
1760
17612019-09-09 Ali Tamur <tamur@google.com>
1762
1763 * dwarf2read.c (comp_unit_head): Update comment.
1764 (dwarf2_dwo_name): New function declaration.
1765 (dwarf_unit_type_name): New function declaration.
1766 (read_comp_unit_head): Add support for new compilation units,
1767 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1768 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1769 (currently named as "signature") in their header. Also clarify error
1770 messages.
1771 (lookup_dwo_id): New function. Returns the dwo id of the given
1772 compile unit.
1773 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1774 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1775 functions.
1776 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1777 (dwarf2_dwo_name): Get the dwo name if present.
1778 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1779 purposes.
1780
25a2915e
TT
17812019-09-09 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1784
e4df0874
PW
17852019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1786
1787 * python/python.c (do_start_initialization): Make progname_copy static,
1788 to avoid a leak report.
1789
8634b462
TT
17902019-09-08 Tom Tromey <tom@tromey.com>
1791
1792 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1793
c7f839cb
SM
17942019-09-07 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1797 Change type to gdb::optional<block_enum>.
1798 (dw2_symtab_iter_init): Change block_index parameter type
1799 to gdb::optional<block_enum>.
1800 (dw2_lookup_symbol): Change block_index parameter
1801 type to block_enum.c
1802 (dw2_debug_names_lookup_symbol): Likewise.
1803 * psymtab.c (psym_lookup_symbol): Likewise.
1804 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1805 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1806 Likewise.
1807
ead0e69a
CB
18082019-09-06 Christian Biesinger <cbiesinger@google.com>
1809
1810 * defs.h (relocate_gdb_directory): Change int to bool in
1811 signature and rename flag to relocatable.
1812 * main.c (relocate_path): Likewise.
1813 (relocate_gdb_directory): Likewise.
1814
b16c44de
AM
18152019-09-06 Alan Modra <amodra@gmail.com>
1816
1817 * coffread.c (coff_symfile_read): Constify filename variable.
1818 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1819 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1820 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1821 * solib.c (reload_shared_libraries_1): Likewise.
1822 * symfile.c (reread_symbols): Likewise.
1823 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1824 * solib-darwin.c (darwin_bfd_open): Likewise.
1825 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1826
06ff036e
AB
18272019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1830 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1831
4e962e74
TT
18322019-09-03 Tom Tromey <tromey@adacore.com>
1833
1834 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1835 types.
1836 (has_negatives): Unbias a range type bound.
1837 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1838 * gdbtypes.c (operator==): Handle new field.
1839 (create_range_type): Add "bias" parameter.
1840 (create_static_range_type, resolve_dynamic_range): Update.
1841 * gdbtypes.h (struct range_bounds) <bias>: New member.
1842 (create_range_type): Add bias parameter.
1843 * printcmd.c (print_scalar_formatted): Unbias range types.
1844 * value.c (unpack_long): Unbias range types.
1845 (pack_long): Bias range types.
1846
d90b8f26
AH
18472019-09-02 Alan Hayward <alan.hayward@arm.com>
1848
1849 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1850 probe arguments.
1851
fe01123e
AH
18522019-09-02 Alan Hayward <alan.hayward@arm.com>
1853
1854 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1855 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1856 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1857 (compile_probe_arg): Likewise.
1858 * probe.h (get_argument_count): Likewise.
1859 * solib-svr4.c (solib_event_probe_action): Likewise.
1860 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1861
e661ef01
AH
18622019-09-02 Alan Hayward <alan.hayward@arm.com>
1863
1864 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1865 code to here...
1866 (svr4_create_solib_event_breakpoints): ...from here.
1867
47a536d9
SDJ
18682019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1869
1870 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1871 suffix from warning message.
1872
d6a00eba
TT
18732019-08-30 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-winsource.h (struct tui_source_window_base)
1876 <refresh_all>: Don't declare.
1877 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1878 Remove.
1879 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1880 tui_show_locator_content.
1881 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1882 declare.
1883 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1884 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1885 declare.
1886
55b2657b
TT
18872019-08-30 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1890
12a8555a
TT
18912019-08-30 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1894 Remove unnecessary forward declarations.
1895
900ac242
TT
18962019-08-30 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1899 rerender.
1900 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1901 tui_show_locator_content.
1902
99ab33fb
TT
19032019-08-30 Tom Tromey <tom@tromey.com>
1904
1905 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1906 (tui_locator_window::rerender): Rewrite using body of previous
1907 tui_show_locator_content.
1908
e594a5d1
TT
19092019-08-30 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1912 set_locator_fullname>: New methods.
1913 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1914 Rename from tui_set_locator_fullname.
1915 (tui_locator_window::set_locator_info): Rename from
1916 tui_set_locator_info. Return bool.
1917 (tui_update_locator_fullname, tui_show_frame_info): Update.
1918
715bb467
TT
19192019-08-30 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1922
772f3f03
TT
19232019-08-30 Tom Tromey <tom@tromey.com>
1924
1925 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1926 call touchwin.
1927
108e13ab
TT
19282019-08-30 Tom Tromey <tom@tromey.com>
1929
1930 * tui/tui-wingeneral.c (box_win): Assume win_info and
1931 win_info->handle cannot be NULL.
1932
cdaa6eb4
TT
19332019-08-30 Tom Tromey <tom@tromey.com>
1934
1935 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1936 refresh_window>: Declare.
1937 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1938 resize.
1939 (tui_data_item_window::rerender): Rename from
1940 tui_display_register.
1941 (tui_data_item_window::refresh_window): New method.
1942 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1943 no-op.
1944
89df7f90
TT
19452019-08-30 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1948 regs_column_count, current_group>: Move later. Now private.
1949 <get_current_group>: New method.
1950 * tui/tui-regs.c (tui_reg_command): Update.
1951 * tui/tui-layout.c (tui_set_layout): Update.
1952
1bf2866a
TT
19532019-08-30 Tom Tromey <tom@tromey.com>
1954
1955 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1956 (tui_data_window::rerender): Don't call
1957 check_and_display_highlight_if_needed.
1958 (tui_data_window::refresh_all): Remove call to
1959 erase_data_content.
1960
0670413d
TT
19612019-08-30 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1964 (tui_data_window::display_registers_from)
1965 (tui_data_window::display_reg_element_at_line)
1966 (tui_data_window::display_registers_from_line): Remove checks of
1967 "empty".
1968
18bb55c7
TT
19692019-08-30 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1972 Don't declare.
1973 * tui/tui-regs.c (tui_data_window::show_registers): Call
1974 rerender.
1975 (tui_data_window::rerender): Rename from display_all_data.
1976 (tui_data_window::rerender): Remove old implementation.
1977
1f6d2f10
TT
19782019-08-30 Tom Tromey <tom@tromey.com>
1979
1980 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1981 text.
1982 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1983
16d01f9c
BW
19842019-08-29 Bernhard Wodok <barto@gmx.net>
1985 Sergio Durigan Junior <sergiodj@redhat.com>
1986
1987 PR win32/24284
1988 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1989
d8f27c60
AB
19902019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1993 when searching for types.
1994
1f20c35e
AB
19952019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * f-lang.c (f_language_defn): Use f_print_typedef.
1998 * f-lang.h (f_print_typedef): Declare.
1999 * f-typeprint.c (f_print_typedef): Define.
2000
550105b7
CB
20012019-08-27 Christian Biesinger <cbiesinger@google.com>
2002
2003 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2004
4acfdd20
AB
20052019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2006
2007 * cli/cli-utils.c (info_print_options_defs): Delete.
2008 (make_info_print_options_def_group): Delete.
2009 (extract_info_print_options): Delete.
2010 (info_print_command_completer): Delete.
2011 (info_print_args_help): Add extra parameter, and optionally
2012 include text about -n flag.
2013 * cli/cli-utils.h (struct info_print_options): Delete.
2014 (extract_info_print_options): Delete declaration.
2015 (info_print_command_completer): Delete declaration.
2016 (info_print_args_help): Add extra parameter, extend header
2017 comment.
2018 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2019 search_symbols.
2020 * stack.c (struct info_print_options): New type.
2021 (info_print_options_defs): New file scoped variable.
2022 (make_info_print_options_def_group): New static function.
2023 (info_print_command_completer): New static function.
2024 (info_locals_command): Update to use new local functions.
2025 (info_args_command): Likewise.
2026 (_initialize_stack): Add extra parameter to calls to
2027 info_print_args_help.
2028 * symtab.c (search_symbols): Add extra parameter, use this to
2029 possibly excluse non-debug symbols.
2030 (symtab_symbol_info): Add extra parameter, which is passed on to
2031 search_symbols.
2032 (struct info_print_options): New type.
2033 (info_print_options_defs): New file scoped variable.
2034 (make_info_print_options_def_group): New static function.
2035 (info_print_command_completer): New static function.
2036 (info_variables_command): Update to use local functions, and pass
2037 extra parameter through to symtab_symbol_info.
2038 (info_functions_command): Likewise.
2039 (info_types_command): Pass additional argument through to
2040 symtab_symbol_info.
2041 (rbreak_command): Pass extra argument to search_symbols.
2042 (_initialize_symtab): Add extra arguments for calls to
2043 info_print_args_help, and update help text for 'info variables',
2044 'whereis', and 'info functions' commands.
2045 * symtab.h (search_symbols): Add extra argument to declaration.
2046 * NEWS: Mention new flags.
2047
9aa55206
CB
20482019-08-26 Christian Biesinger <cbiesinger@google.com>
2049
2050 * symtab.c (lookup_static_symbol): Call the new function (and move
2051 it down to be next to lookup_global_symbol).
2052 (struct global_sym_lookup_data): Add block_enum member and rename to...
2053 (struct global_or_static_sym_lookup_data): ...this.
2054 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2055 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2056 (lookup_symbol_global_or_static_iterator_cb): ...this.
2057 (lookup_global_or_static_symbol): New function.
2058 (lookup_global_symbol): Call new function.
2059
5c31b358
TV
20602019-08-26 Tom de Vries <tdevries@suse.de>
2061
2062 PR c++/24852
2063 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2064 when pc_probe.prob == NULL.
2065
23c13d42
SM
20662019-08-25 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2069 variable symbol_linkage to symbol_linkage_.
2070
beadd3e8
SM
20712019-08-25 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2074 represent whether the symbol is static, dynamic, or we don't
2075 know.
2076
e3ec872f
YS
20772019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2078
2079 * gdb/rx-tdep.c (rx_register_names): New.
2080 (rx_register_name): Delete.
2081 (rx_psw_type): Delete.
2082 (rx_fpsw_type): Delete.
2083 (rx_register_type): Delete.
2084 (rx_gdbarch_init): Convert target-descriptions.
2085 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2086 * gdb/features/Makefile: Add rx.xml.
2087 * gdb/features/rx.xml: New.
2088 * gdb/features/rx.c: Generated.
2089 * gdb/NEWS: Mention target description support.
2090
d0509ba4
CB
20912019-08-22 Christian Biesinger <cbiesinger@google.com>
2092
2093 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2094 *slot_ptr.
2095
2d41fa11
SDJ
20962019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2097
2098 * configure.ac: Don't check for 'dlfcn.h' (moved to
2099 gdbsupport/common.m4).
2100 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2101 'gdbsupport/'.
2102 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2103 * compile/compile-c-support.c: Include
2104 'gdbsupport/gdb-dlfcn.h'.
2105 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2106 * gdb-dlfcn.c: Move to...
2107 * gdbsupport/gdb-dlfcn.c: ... here.
2108 * gdb-dlfcn.h: Move to...
2109 * gdbsupport/gdb-dlfcn.h: ... here.
2110
de8af808
SL
21112019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2112
2113 * nios2-tdep.c (struct reg_value): Improve comments. Make
2114 the offset field signed.
2115
27204489
CB
21162019-08-22 Christian Biesinger <cbiesinger@google.com>
2117
2118 * python/lib/gdb/__init__.py (_execute_file): New function.
2119 * python/python.c (python_run_simple_file): Call gdb._execute_file
2120 on Windows.
2121
43771869
AB
21222019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2125 all uses as this was never set to anything but a zero value.
2126
26c957f1
PA
21272019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2128
2129 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2130
c07aae6e
CB
21312019-08-21 Christian Biesinger <cbiesinger@google.com>
2132
2133 * tui/tui-data.h (tui_gen_win_info): Add an =default
2134 move constructor, required by some GCC versions.
2135
3960cb7a
JF
21362019-08-21 Jinke Fan <fanjinke51@yeah.net>
2137
2138 * go32-nat.c (go32_sysinfo): Add hygon_p.
2139
04c72a68
TT
21402019-08-20 Tom Tromey <tom@tromey.com>
2141
2142 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2143 line_from_reg_element_no, first_reg_element_no_inline,
2144 display_all_data, delete_data_content_windows,
2145 erase_data_content>: Now private.
2146
072272ce
TT
21472019-08-20 Tom Tromey <tom@tromey.com>
2148
2149 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2150 (tui_unhighlight_win, tui_highlight_win)
2151 (tui_win_info::make_window): Update.
2152 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2153
973961bd
TT
21542019-08-20 Tom Tromey <tom@tromey.com>
2155
2156 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2157 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2158 (MAX_PID_WIDTH): Move to tui-stack.c.
2159 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2160 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2161 (MAX_PID_WIDTH): Move from tui-data.h.
2162
ab0e1f1a
TT
21632019-08-20 Tom Tromey <tom@tromey.com>
2164
2165 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2166 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2167 (box_win): Update.
2168 (tui_gen_win_info::make_window): Rename from tui_make_window.
2169 (tui_win_info::make_window): New method.
2170 (tui_gen_win_info::make_visible): Update.
2171 * tui/tui-source.c (tui_source_window::set_contents): Update.
2172 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2173 (tui_data_window::display_registers_from): Update.
2174 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2175 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2176 Declare.
2177 <can_box>: Remove.
2178 <title>: Remove.
2179 (struct tui_win_info) <make_window>: Declare.
2180 <can_box>: Now virtual.
2181 <title>: New member.
2182 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2183 * tui/tui-command.c (tui_cmd_window::resize): Update.
2184
100c2bf3
TT
21852019-08-20 Tom Tromey <tom@tromey.com>
2186
2187 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2188 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2189 (tui_data_window::check_register_values): Update.
2190
fa4dc567
TT
21912019-08-20 Tom Tromey <tom@tromey.com>
2192
2193 * tui/tui-regs.h (struct tui_data_window): Use
2194 DISABLE_COPY_AND_ASSIGN.
2195 <regs_content>: Change type, removing unique_ptr.
2196 <tui_data_window>: Add move constructor.
2197 * tui/tui-regs.c (tui_data_window::show_registers)
2198 (tui_data_window::show_register_group)
2199 (tui_data_window::display_registers_from)
2200 (tui_data_window::display_registers_from)
2201 (tui_data_window::first_data_item_displayed)
2202 (tui_data_window::delete_data_content_windows)
2203 (tui_data_window::rerender, tui_data_window::refresh_window)
2204 (tui_data_window::check_register_values): Update.
2205
ca02d7c8
TT
22062019-08-20 Tom Tromey <tom@tromey.com>
2207
2208 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2209 show_register_group>: Declare.
2210 (tui_show_register_group): Don't declare.
2211 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2212 tui_show_registers.
2213 (tui_data_window::show_register_group): Rename from
2214 tui_show_register_group.
2215 (tui_data_window::check_register_values, tui_reg_command):
2216 Update.
2217 * tui/tui-layout.c (tui_set_layout): Update.
2218
63356bfd
TT
22192019-08-20 Tom Tromey <tom@tromey.com>
2220
2221 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2222 Declare.
2223 (tui_check_register_values): Don't declare.
2224 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2225 from tui_check_register_values.
2226 * tui/tui-hooks.c (tui_register_changed): Update.
2227
42cc14a7
TT
22282019-08-20 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-regs.c (tui_reg_layout): Move later.
2231 (tui_show_registers): Don't enable TUI mode or change layout.
2232
b9ad3686
TT
22332019-08-20 Tom Tromey <tom@tromey.com>
2234
2235 * tui/tui-regs.h (struct tui_data_item_window)
2236 <~tui_data_item_window>: Remove.
2237 <content>: Now a unique_xmalloc_ptr.
2238 * tui/tui-regs.c (tui_register_format): Return a
2239 unique_xmalloc_ptr.
2240 (tui_get_register): Update.
2241 (~tui_data_item_window): Remove.
2242 (tui_data_window::display_registers_from, tui_display_register):
2243 Update.
2244 * tui/tui-io.h (tui_expand_tabs): Update.
2245 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2246 Remove "col" parameter.
2247
8e114aab
TT
22482019-08-20 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2251 field.
2252 * tui/tui-regs.c (~tui_data_item_window): Update.
2253
1a4f81dd
TT
22542019-08-20 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2257 earlier.
2258
0f8d8876
TT
22592019-08-20 Tom Tromey <tom@tromey.com>
2260
2261 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2262
605dc2c2
TT
22632019-08-20 Tom Tromey <tom@tromey.com>
2264
2265 * tui/tui-source.h (struct tui_source_window): Update.
2266 * tui/tui-regs.c (tui_show_registers): Update.
2267 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2268 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2269 (NO_REGS_STRING): Remove defines.
2270
aedbe3bb
CM
22712019-08-20 Conrad Meyer <cem@FreeBSD.org>
2272
2273 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2274 unnecessary thread walk if remote doesn't support the packet.
2275
7ce8f214
TT
22762019-08-19 Tom Tromey <tromey@adacore.com>
2277
2278 * python/py-value.c (value_has_field): Fix indentation.
2279
f21c2bd7
TT
22802019-08-19 Tom Tromey <tromey@adacore.com>
2281
2282 * printcmd.c (do_one_display, info_display_command): Update.
2283 * block.h (contained_in): Return bool. Add allow_nested
2284 parameter.
2285 * block.c (contained_in): Return bool. Add allow_nested
2286 parameter.
2287
d806ea2d
TT
22882019-08-19 Tom Tromey <tom@tromey.com>
2289
2290 * configure: Rebuild.
2291 * configure.ac: Disallow the combination of -static-libstdc++ and
2292 source highlight.
2293 * source-cache.c (get_language_name): Handle rust.
2294 (source_cache::get_source_lines): Ignore highlighting exceptions.
2295
398fdd60
TT
22962019-08-16 Tom Tromey <tom@tromey.com>
2297
2298 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2299 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2300 (struct tui_source_window_base) <make_visible, refresh_window,
2301 resize>: Remove methods.
2302 <execution_info>: Remove field.
2303 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2304 (tui_show_source_line, tui_source_window_base)
2305 (~tui_source_window_base): Update.
2306 (tui_source_window_base::resize)
2307 (tui_source_window_base::make_visible)
2308 (tui_source_window_base::refresh_window): Remove.
2309 (tui_source_window_base::update_exec_info): Update.
2310 * tui/tui-source.c (tui_source_window::set_contents): Update.
2311 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2312
e699d331
TT
23132019-08-16 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2316 deprecated_query_hook.
2317
bb01dbfc
TT
23182019-08-16 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2321 (tui_update_source_windows_with_line): Update.
2322 * tui/tui-source.h (struct tui_source_window)
2323 <show_symtab_source>: Declare.
2324 (tui_show_symtab_source): Don't declare.
2325 * tui/tui-source.c (tui_show_symtab_source): Rename from
2326 tui_show_symtab_source.
2327
81c82c4b
TT
23282019-08-16 Tom Tromey <tom@tromey.com>
2329
2330 * tui/tui-winsource.h (struct tui_source_window_base)
2331 <set_contents>: Declare.
2332 * tui/tui-winsource.c
2333 (tui_source_window_base::update_source_window_as_is): Update.
2334 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2335 Declare.
2336 (tui_set_source_content): Don't declare.
2337 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2338 tui_set_source_content.
2339 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2340 Declare.
2341 (tui_set_disassem_content): Don't declare.
2342 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2343 tui_set_disassem_content.
2344
2ddaf614
TT
23452019-08-16 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-winsource.h (struct tui_source_window_base)
2348 <update_breakpoint_info>: Declare.
2349 (tui_update_breakpoint_info): Don't declare.
2350 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2351 (tui_update_all_breakpoint_info): Update.
2352 (tui_source_window_base::update_breakpoint_info): Rename from
2353 tui_update_breakpoint_info.
2354 (tui_source_window_base::update_exec_info): Update.
2355
017f9828
TT
23562019-08-16 Tom Tromey <tom@tromey.com>
2357
2358 * tui/tui-winsource.h (struct tui_source_window_base)
2359 <update_source_window>: Declare.
2360 (tui_update_source_window): Don't declare.
2361 * tui/tui-winsource.c
2362 (tui_source_window_base::update_source_window): Rename from
2363 tui_update_source_window.
2364 (tui_source_window_base::rerender): Update.
2365 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2366 * tui/tui-disasm.c (tui_show_disassem)
2367 (tui_show_disassem_and_update_source)
2368 (tui_disasm_window::maybe_update): Update.
2369
ed8358e9
TT
23702019-08-16 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-winsource.h (struct tui_source_window_base)
2373 <update_source_window_as_is>: Declare.
2374 (tui_update_source_window_as_is): Don't declare.
2375 * tui/tui-winsource.c (tui_update_source_window): Update
2376 (tui_source_window_base::update_source_window_as_is): Rename from
2377 tui_update_source_window_as_is.
2378 (tui_source_window_base::refill): Update.
2379 * tui/tui-source.c (tui_show_symtab_source): Update.
2380 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2381 Update.
2382
20149b6b
TT
23832019-08-16 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-winsource.h (tui_update_source_window)
2386 (tui_update_source_window_as_is): Remove "noerror" parameter.
2387 * tui/tui-winsource.c (tui_update_source_window)
2388 (tui_update_source_window_as_is): Remove "noerror" parameter.
2389 (tui_update_source_windows_with_addr)
2390 (tui_update_source_windows_with_line)
2391 (tui_source_window_base::rerender)
2392 (tui_source_window_base::refill): Update.
2393 * tui/tui-source.h (tui_set_source_content)
2394 (tui_show_symtab_source): Remove "noerror" parameter.
2395 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2396 parameter.
2397 (tui_show_symtab_source): Likewise.
2398 (tui_source_window::maybe_update): Update.
2399 * tui/tui-disasm.c (tui_show_disassem)
2400 (tui_show_disassem_and_update_source)
2401 (tui_disasm_window::do_scroll_vertical)
2402 (tui_disasm_window::maybe_update): Update.
2403
2d83e710
TT
24042019-08-16 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui.c (tui_is_window_visible): Update.
2407 * tui/tui-wingeneral.c (tui_make_window)
2408 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2409 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2410 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2411 (tui_set_win_height_command, parse_scrolling_args): Update.
2412 * tui/tui-source.c (tui_source_window::style_changed): Update.
2413 * tui/tui-regs.c (tui_show_registers)
2414 (tui_data_window::first_data_item_displayed)
2415 (tui_data_window::delete_data_content_windows)
2416 (tui_check_register_values, tui_reg_command): Update.
2417 * tui/tui-disasm.c (tui_show_disassem): Update.
2418 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2419 method.
2420 <is_visible>: Remove field.
2421 * tui/tui-data.c (tui_next_win, tui_prev_win)
2422 (tui_delete_invisible_windows): Update.
2423
d4ab829a
TT
24242019-08-16 Tom Tromey <tom@tromey.com>
2425
2426 * tui/tui-winsource.h (struct tui_source_window_base)
2427 <m_has_locator>: Remove.
2428 * tui/tui-layout.c (show_source_disasm_command, show_data)
2429 (show_source_or_disasm_and_command): Update.
2430
aa7ca1bb
AH
24312019-08-16 Alan Hayward <alan.hayward@arm.com>
2432
2433 * NEWS (Other MI changes): New subsection.
2434 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2435 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2436 * arch-utils.c (default_get_pc_address_flags): New function.
2437 * arch-utils.h (default_get_pc_address_flags): New declaration.
2438 * gdbarch.sh: Add get_pc_address_flags.
2439 * gdbarch.c: Regenerate.
2440 * gdbarch.h: Likewise.
2441 * stack.c (print_pc): New function.
2442 (print_frame_info) (print_frame): Call print_pc.
2443
6eac171f
TV
24442019-08-16 Tom de Vries <tdevries@suse.de>
2445
2446 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2447 print_objfile_section_info.
2448
3df505f6
TT
24492019-08-15 Tom Tromey <tom@tromey.com>
2450
2451 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2452 calling update_cmdwin_start_line.
2453 * tui/tui-winsource.h (struct tui_source_window_base)
2454 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2455 <rerender>: Declare.
2456 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2457 Call rerender.
2458 (tui_source_window_base::set_new_height): Remove.
2459 (tui_source_window_base::rerender): Rename from
2460 do_make_visible_with_new_height.
2461 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2462 resize method.
2463 (tui_win_info::make_invisible_and_set_new_height)
2464 (tui_win_info::make_visible_with_new_height): Remove.
2465 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2466 Declare.
2467 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2468 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2469 do_make_visible_with_new_height>: Don't declare.
2470 <rerender>: Declare.
2471 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2472 set_new_height.
2473 (tui_data_window::do_make_visible_with_new_height): Remove.
2474 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2475 call tui_show_locator_content.
2476 (tui_gen_win_info::resize): Call rerender.
2477 (show_source_or_disasm_and_command): Don't call
2478 tui_show_locator_content.
2479 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2480 method.
2481 (struct tui_win_info) <rerender>: Declare.
2482 <set_new_height, make_invisible_and_set_new_height,
2483 make_visible_with_new_height>: Don't declare.
2484 * tui/tui-data.c (tui_win_list::rerender): New method.
2485 * tui/tui-command.h (struct tui_cmd_window)
2486 <do_make_visible_with_new_height>: Don't declare.
2487 * tui/tui-command.c
2488 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2489
272560b5
TT
24902019-08-15 Tom Tromey <tromey@adacore.com>
2491
2492 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2493 * ada-lang.c (ada_enum_name): Likewise.
2494
08235187
CB
24952019-08-15 Christian Biesinger <cbiesinger@google.com>
2496
2497 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2498 leading underscore.
2499 (GdbOutputErrorFile): Likewise.
2500 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2501 accordingly.
2502 (execute_unwinders): Rename to have a leading underscore.
2503 (auto_load_packages): Likewise.
2504 (global scope): Adjust call to auto_load_packages accordingly.
2505 (GdbSetPythonDirectory): Likewise.
2506 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2507 instead of execute_unwinders.
2508
db502012
TT
25092019-08-15 Tom Tromey <tom@tromey.com>
2510
2511 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2512 (show_data): Don't change window visibility.
2513 (tui_gen_win_info::resize): Remove special case for command
2514 window. Use wresize, when available.
2515 (show_source_or_disasm_and_command): Don't change window
2516 visibility.
2517 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2518 <make_visible>: New method.
2519 * tui/tui-command.c (tui_cmd_window::resize): New method.
2520
3891b65e
TT
25212019-08-15 Tom Tromey <tom@tromey.com>
2522
2523 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2524 (struct tui_source_windows): New.
2525 * tui/tui-winsource.c (tui_display_main): Update.
2526 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2527 (new_height_ok, parse_scrolling_args): Update.
2528 * tui/tui-layout.c (show_layout, show_data): Update.
2529 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2530 (tui_add_to_source_windows): Don't declare.
2531 * tui/tui-data.c (source_windows, tui_source_windows)
2532 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2533
ee556432
TT
25342019-08-15 Tom Tromey <tom@tromey.com>
2535
2536 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2537 Rename from reset.
2538 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2539 * tui/tui-layout.c (show_source_disasm_command, show_data):
2540 Update.
2541 (tui_gen_win_info::resize): Rename.
2542 (show_source_or_disasm_and_command): Update.
2543 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2544 reset.
2545
46f438e3
TT
25462019-08-15 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2549 * tui/tui-interp.c (tui_interp::init): Don't call
2550 tui_initialize_static_data.
2551 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2552
f4ce562c
TT
25532019-08-15 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2556 examine tui_win_list.
2557
c398c3d0
TT
25582019-08-15 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2561 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2562 tui_clear_source_content.
2563 (tui_clear_source_content): Remove.
2564 (tui_source_window_base::do_erase_source_content): Hoist call to
2565 content.clear().
2566 * tui/tui-stack.c (tui_show_frame_info): Don't call
2567 tui_clear_source_content.
2568
e25d2004
TT
25692019-08-15 Tom Tromey <tom@tromey.com>
2570
2571 * tui/tui-winsource.h (struct tui_source_window_base)
2572 <do_erase_source_content>: New method.
2573 <erase_source_content>: New method.
2574 (tui_erase_source_content): Don't declare.
2575 * tui/tui-winsource.c (tui_clear_source_content): Update.
2576 (tui_source_window_base::do_erase_source_content): Rename from
2577 tui_erase_source_content.
2578 (tui_source_window_base::show_source_content): Update.
2579 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2580 * tui/tui-source.h (struct tui_source_window)
2581 <erase_source_content>: New method.
2582 * tui/tui-disasm.h (struct tui_disasm_window)
2583 <erase_source_content>: New method.
2584
002f15c2
TT
25852019-08-15 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2588 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2589 constructor.
2590 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2591 * tui/tui-source.c (tui_set_source_content): Update.
2592 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2593
c9033fe8
TT
25942019-08-15 Tom Tromey <tom@tromey.com>
2595
2596 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2597 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2598 tui-source.c.
2599 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2600 Declare.
2601 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2602 method.
2603 (tui_source_window::maybe_update): Update.
2604
088f37dd
TT
26052019-08-15 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2608 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2609 tui-disasm.c.
2610 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2611 Declare.
2612 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2613 method.
2614 (tui_disasm_window::maybe_update): Update.
2615
a54700c6
TT
26162019-08-15 Tom Tromey <tom@tromey.com>
2617
2618 * tui/tui-winsource.h (struct tui_source_window_base)
2619 <maybe_update>: Declare.
2620 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2621 method.
2622 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2623 Declare.
2624 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2625 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2626 Declare.
2627 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2628
e2a678a5
TT
26292019-08-15 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2632
f2dda477
TT
26332019-08-15 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-wingeneral.c: Include tui-stack.h.
2636 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2637 (struct tui_locator_window): Move from tui-data.h.
2638 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2639 (tui_initialize_static_data): Move from tui-data.c.
2640 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2641 (struct tui_locator_window): Move to tui-stack.c.
2642 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2643 (tui_initialize_static_data): Move to tui-stack.c.
2644
ed4a1084
TT
26452019-08-15 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui-layout.c (show_source_disasm_command)
2648 (show_source_or_disasm_and_command): Use make_visible method, not
2649 tui_make_window.
2650 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2651 Remove.
2652
65962b20
TT
26532019-08-15 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui-wingeneral.h (tui_make_window): Update.
2656 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2657 parameter.
2658 (tui_gen_win_info::make_visible): Update.
2659 * tui/tui-regs.c (tui_data_window::display_registers_from):
2660 Update.
2661 * tui/tui-layout.c (show_source_disasm_command)
2662 (show_source_or_disasm_and_command): Update.
2663 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2664 (enum tui_box): Remove.
2665 (struct tui_win_info) <can_box>: New method.
2666 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2667 method.
2668
2208ee91
TV
26692019-08-15 Tom de Vries <tdevries@suse.de>
2670
2671 * linux-nat-trad.c: Include gdbarch.h.
2672
75faf5c4
AH
26732019-08-14 Alan Hayward <alan.hayward@arm.com>
2674
2675 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2676 register sizes.
2677
b1c896b3
TT
26782019-08-14 Tom Tromey <tromey@adacore.com>
2679
2680 * darwin-nat.c: Include gdbarch.h.
2681 * darwin-nat-info.c: Include gdbarch.h.
2682
6405cd73
TT
26832019-08-13 Tom Tromey <tom@tromey.com>
2684
2685 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2686 Remove.
2687 * tui/tui-data.c (tui_initialize_static_data): Update.
2688
5216580d
TT
26892019-08-13 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-winsource.h (struct tui_exec_info_window)
2692 <~tui_exec_info_window, maybe_allocate_content, get_content,
2693 m_content>: Remove.
2694 (struct tui_source_window_base) <set_exec_info_content,
2695 show_exec_info_content>: Don't declare.
2696 * tui/tui-winsource.c
2697 (tui_exec_info_window::maybe_allocate_content): Remove.
2698 (tui_source_window_base::update_exec_info): Rename from
2699 set_exec_info_content.
2700 (tui_source_window_base::show_exec_info_content)
2701 (tui_source_window_base::update_exec_info): Remove.
2702
93858ad3
TT
27032019-08-13 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2706 declare.
2707 * tui/tui-winsource.c (tui_update_source_window_as_is)
2708 (tui_update_source_windows_with_addr, tui_erase_source_content):
2709 Update.
2710 (tui_clear_exec_info_content): Remove.
2711
e321e7ce
TT
27122019-08-13 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2715 declare.
2716 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2717 call tui_erase_exec_info_content.
2718 (tui_clear_exec_info_content): Rename from
2719 tui_erase_exec_info_content.
2720 (tui_clear_exec_info_content): Delete.
2721
8270ac62
TT
27222019-08-13 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-winsource.h (struct tui_source_window_base)
2725 <show_exec_info_content>: Declare.
2726 (tui_show_exec_info_content): Don't declare.
2727 * tui/tui-winsource.c
2728 (tui_source_window_base::show_exec_info_content): Rename from
2729 tui_show_exec_info_content.
2730 (tui_source_window_base::update_exec_info): Update.
2731
7b56485d
TT
27322019-08-13 Tom Tromey <tom@tromey.com>
2733
2734 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2735 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2736 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2737 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2738 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2739 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2740 ... here.
2741
7ba913dc
TT
27422019-08-13 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-winsource.h (struct tui_source_window_base)
2745 <update_exec_info>: Declare.
2746 (tui_update_exec_info): Don't declare.
2747 * tui/tui-winsource.c (tui_update_source_window_as_is)
2748 (tui_source_window_base::refresh_all)
2749 (tui_update_all_breakpoint_info): Update.
2750 (tui_source_window_base::update_exec_info): Rename from
2751 tui_update_exec_info.
2752 * tui/tui-stack.c (tui_show_frame_info): Update.
2753
37a4a131
TT
27542019-08-13 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-winsource.h (struct tui_source_window_base)
2757 <set_exec_info_content>: Declare.
2758 (tui_set_exec_info_content): Don't declare.
2759 * tui/tui-winsource.c
2760 (tui_source_window_base::set_exec_info_content): Rename from
2761 tui_set_exec_info_content.
2762 (tui_update_exec_info): Update.
2763
0bd27e07
TT
27642019-08-13 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-winsource.h (struct tui_source_window_base)
2767 <show_source_content>: Declare.
2768 (tui_show_source_content): Don't declare.
2769 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2770 (tui_source_window_base::show_source_content): Rename from
2771 tui_show_source_content.
2772 (tui_source_window_base::refresh_all): Update.
2773 * tui/tui-layout.c (show_source_disasm_command)
2774 (show_source_or_disasm_and_command): Update.
2775
b4ef5aeb
TT
27762019-08-13 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-winsource.c (tui_erase_source_content)
2779 (tui_show_source_content, tui_source_window_base::refresh_all):
2780 Update.
2781 * tui/tui-wingeneral.h
2782 (tui_check_and_display_highlight_if_needed): Don't declare.
2783 * tui/tui-wingeneral.c
2784 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2785 check_and_display_highlight_if_needed.
2786 * tui/tui-win.c (tui_rehighlight_all)
2787 (tui_win_info::make_visible_with_new_height): Update.
2788 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2789 (tui_data_window::erase_data_content)
2790 (tui_data_window::display_all_data): Update.
2791 * tui/tui-data.h (struct tui_win_info)
2792 <check_and_display_highlight_if_needed>: Declare.
2793
fede5273
TT
27942019-08-13 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-win.c (tui_resize_all): Call
2797 tui_delete_invisible_windows.
2798 * tui/tui-layout.c (show_layout): Call
2799 tui_delete_invisible_windows.
2800 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2801 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2802
22c3f490
TT
28032019-08-13 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2806 tui_add_win_to_layout.
2807
16cb7910
TT
28082019-08-13 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2811 * tui/tui-layout.c (tui_default_win_height): Now static.
2812
cc0c3ffb
TT
28132019-08-13 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2816 single switch.
2817 (show_source_disasm_command, show_source_or_disasm_and_command):
2818 Don't check current layout.
2819
3f3ffe54
TT
28202019-08-13 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-wingeneral.c (make_all_visible): Remove.
2823 (tui_make_all_invisible): Simplify.
2824 * tui/tui-layout.c (tui_make_all_invisible): Move from
2825 tui-wingeneral.c; simplify.
2826 (show_layout): Hoist call to tui_make_all_invisible.
2827 (show_data): Don't call tui_make_all_invisible.
2828
69258091
TT
28292019-08-13 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2832 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2833
62cf57fe
TT
28342019-08-13 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2837 tui-data.c.
2838 (show_source_disasm_command, show_data)
2839 (show_source_or_disasm_and_command): Don't use
2840 tui_set_current_layout_to.
2841 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2842 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2843 tui-layout.c.
2844 (tui_set_current_layout_to): Remove.
2845
2afade5d
TT
28462019-08-13 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-layout.c (tui_set_layout): Update.
2849 * tui/tui-data.h (struct tui_layout_def): Remove.
2850 (tui_layout_def): Don't declare.
2851 * tui/tui-data.c (layout_def): Remove.
2852 (tui_layout_def): Remove.
2853
a3504e96
TT
28542019-08-13 Tom Tromey <tom@tromey.com>
2855
2856 * tui/tui-winsource.h (struct tui_source_window_base)
2857 <clear_detail>: No longer "override".
2858 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2859 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2860 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2861 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2862 Remove.
2863 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2864
29c92911
TT
28652019-08-13 Tom Tromey <tromey@adacore.com>
2866
2867 * tracepoint.c: Don't include readline.h or history.h.
2868
86c6b807
TT
28692019-08-12 Tom Tromey <tom@tromey.com>
2870
2871 * configure: Rebuild.
2872 * configure.ac: Check for readline 7.
2873 * NEWS: Mention readline 7 requirement.
2874 * README: Update.
2875
5db2718c
TT
28762019-08-12 Tom Tromey <tom@tromey.com>
2877
2878 * mingw-hdep.c (gdb_select): Remove readline hack.
2879
dac36daf
PFC
28802019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2881
2882 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2883 when the function fails.
2884
1022c627
AA
28852019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2886
2887 * s390-tdep.c (s390_type_align): New function.
2888 (s390_gdbarch_init): Set it as type_align gdbarch method.
2889
eba4caf2
TV
28902019-08-09 Tom de Vries <tdevries@suse.de>
2891
2892 PR gdb/24591
2893 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2894 pc_low with relocation offset.
2895
123cd851
TT
28962019-08-07 Tom Tromey <tromey@adacore.com>
2897
2898 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2899 (print_frame_args): Update.
2900 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2901 Update.
2902 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2903 * frame.h (struct frame_arg): Add initializers.
2904 <error>: Now a unique_xmalloc_ptr.
2905
3d31bc39
AH
29062019-08-07 Alan Hayward <alan.hayward@arm.com>
2907
2908 * NEWS: Expand the Pointer Authentication entry.
2909 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2910 (aarch64_frame_unmask_lr): ... to this.
2911 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2912 Call aarch64_frame_unmask_lr.
2913 * frame.c (struct frame_info): Add "masked" variable.
2914 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2915 (fprint_frame): Check for masked pc.
2916 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2917 declarations.
2918 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2919 * stack.c (print_frame): Check for masked pc.
2920
0cf9feb9
TT
29212019-08-06 Tom Tromey <tom@tromey.com>
2922
2923 * stabsread.c (patch_block_stabs, read_one_struct_field)
2924 (read_enum_type): Use obstack_strndup.
2925 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2926 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2927 * dwarf2read.c (guess_full_die_structure_name)
2928 (anonymous_struct_prefix): Use obstack_strndup.
2929 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2930 * c-exp.y (yylex): Use obstack_strndup.
2931 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2932 (write_var_or_type): Use obstack_strndup.
2933
efba19b0
TT
29342019-08-06 Tom Tromey <tom@tromey.com>
2935
2936 * symfile.c (reread_symbols): Use obstack_strdup.
2937 * stabsread.c (read_type): Use obstack_strdup.
2938 * gdb_obstack.h (obstack_strdup): New overload.
2939 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2940 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2941 (dwarf2_canonicalize_name): Use obstack_strdup.
2942 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2943 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2944 Use obstack_strdup.
2945
f25102f7
TT
29462019-08-06 Tom Tromey <tom@tromey.com>
2947
2948 * gdb_obstack.h (obstack_strdup): Define.
2949 * gdb_obstack.c (obstack_strdup): Don't define.
2950
021887d8
TT
29512019-08-06 Tom Tromey <tom@tromey.com>
2952
2953 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2954 obstack_strdup.
2955 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2956 obstack_strdup.
2957 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2958 * stabsread.c (common_block_start): Use obstack_strdup.
2959 * objfiles.c (set_objfile_main_name, objfile): Use
2960 obstack_strdup.
2961 * namespace.c (add_using_directive): Use obstack_strdup.
2962 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2963 * jit.c (finalize_symtab): Use obstack_strdup.
2964 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2965 (guess_partial_die_structure_name, partial_die_info::fixup)
2966 (dwarf2_name): Use obstack_strdup.
2967 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2968 obstack_strdup.
2969 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2970 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2971 obstack_strdup.
2972 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2973
d2834edc
PW
29742019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2975
2976 * unittests/help-doc-selftests.c: New file.
2977 * Makefile.in: Add the new file.
2978
590042fc
PW
29792019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2980
2981 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2982 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2983 the full first line, except when FOR_VALUE_PREFIX. In this case,
2984 the trailing '.' is not output, and the first character is uppercased.
2985 (print_help_for_command): Update call to print_doc_line.
2986 (print_doc_of_command): Likewise.
2987 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2988 * cli/cli-option.c (append_indented_doc): Do not append newline.
2989 (build_help_option): Append newline after first appended_indented_doc
2990 only if a second call is done.
2991 (build_help): Append 2 new lines before each option, except the first
2992 one.
2993 * compile/compile.c (_initialize_compile): Add new lines after
2994 %OPTIONS%, when not at the end of the help.
2995 Change help doc or code
2996 producing the help doc to respect the invariants.
2997 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2998 Also removed the new line after 'Options:', as all other commands
2999 do not put an empty line between 'Options:' and the first option.
3000 * printcmd.c (_initialize_printcmd): Likewise.
3001 * stack.c (_initialize_stack): Likewise.
3002 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3003 incorrectly telling COMMAND is optional.
3004 * ada-lang.c (_initialize_ada_language): Change help doc or code
3005 producing the help doc to respect the invariants.
3006 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3007 * breakpoint.c (_initialize_breakpoint): Likewise.
3008 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3009 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3010 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3011 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3012 _initialize_cli_style): Likewise.
3013 * corelow.c (core_target_info): Likewise.
3014 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3015 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3016 * filesystem.c (_initialize_filesystem): Likewise.
3017 * frame.c (_initialize_frame): Likewise.
3018 * gnu-nat.c (add_task_commands): Likewise.
3019 * infcall.c (_initialize_infcall): Likewise.
3020 * infcmd.c (_initialize_infcmd): Likewise.
3021 * interps.c (_initialize_interpreter): Likewise.
3022 * language.c (_initialize_language): Likewise.
3023 * linux-fork.c (_initialize_linux_fork): Likewise.
3024 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3025 * maint.c (_initialize_maint_cmds): Likewise.
3026 * memattr.c (_initialize_mem): Likewise.
3027 * printcmd.c (_initialize_printcmd): Likewise.
3028 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3029 _RegEx): Likewise.
3030 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3031 * record-btrace.c (_initialize_record_btrace): Likewise.
3032 * record-full.c (_initialize_record_full): Likewise.
3033 * record.c (_initialize_record): Likewise.
3034 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3035 * regcache.c (_initialize_regcache): Likewise.
3036 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3037 _initialize_remote): Likewise.
3038 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3039 * serial.c (_initialize_serial): Likewise.
3040 * skip.c (_initialize_step_skip): Likewise.
3041 * source.c (_initialize_source): Likewise.
3042 * stack.c (_initialize_stack): Likewise.
3043 * symfile.c (_initialize_symfile): Likewise.
3044 * symtab.c (_initialize_symtab): Likewise.
3045 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3046 * top.c (init_main): Likewise.
3047 * tracefile-tfile.c (tfile_target_info): Likewise.
3048 * tracepoint.c (_initialize_tracepoint): Likewise.
3049 * tui/tui-win.c (_initialize_tui_win): Likewise.
3050 * utils.c (add_internal_problem_command): Likewise.
3051 * valprint.c (value_print_option_defs): Likewise.
3052
404f2902
FCE
30532019-08-06 Frank Ch. Eigler <fche@redhat.com>
3054
3055 PR build/24886
3056 * configure.ac: Drop enable-libmcheck support.
3057 * configure, config.in: Rebuild.
3058 * libmcheck.m4: Remove.
3059 * acinclude.m4: Don't include it.
3060 * Makefile.in: Don't distribute it.
3061 * top.c (print_gdb_configuration): Don't mention it.
3062
046bebe1
TT
30632019-08-06 Tom Tromey <tom@tromey.com>
3064
3065 * utils.c (set_output_style): Sometimes pass stream to
3066 emit_style_escape.
3067 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3068 * record-btrace.c (btrace_insn_history): Update.
3069 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3070 method.
3071 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3072 Update initializers.
3073 <m_uiout>: New field.
3074 <m_di>: Move lower.
3075 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3076 Remove "uiout" parameter.
3077 (dump_insns): Update.
3078 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3079 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3080
ddbcedf5
CB
30812019-08-06 Christian Biesinger <cbiesinger@google.com>
3082
3083 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3084 (error_in_psymtab_expansion): Likewise.
3085 (lookup_symbol_via_quick_fns): Likewise.
3086 (basic_lookup_transparent_type_quick): Likewise.
3087 (basic_lookup_transparent_type_1): Likewise.
3088
b08b16c8
TT
30892019-08-06 Tom Tromey <tromey@adacore.com>
3090
3091 * source.c (last_source_error): Now bool.
3092 (print_source_lines_base): Make "noprint" bool. Only open
3093 source file when last_source_visited changes.
3094
cb44333d
TT
30952019-08-06 Tom Tromey <tromey@adacore.com>
3096
3097 * annotate.c (annotate_source_line): Use g_source_cache.
3098 * source-cache.c (source_cache::get_plain_source_lines): Change
3099 parameters. Populate m_offset_cache.
3100 (source_cache::ensure): New method.
3101 (source_cache::get_line_charpos): New method.
3102 (extract_lines): Move lower. Change parameters.
3103 (source_cache::get_source_lines): Move lower.
3104 * source-cache.h (class source_cache): Update comment.
3105 <get_line_charpos>: New method.
3106 <get_source_lines>: Update comment.
3107 <clear>: Clear m_offset_cache.
3108 <get_plain_source_lines>: Change parameters.
3109 <ensure>: New method
3110 <m_offset_cache>: New member.
3111 * source.c (forget_cached_source_info_for_objfile): Update.
3112 (info_source_command): Use g_source_cache.
3113 (find_source_lines, open_source_file_with_line_charpos): Remove.
3114 (print_source_lines_base, search_command_helper): Use g_source_cache.
3115 * source.h (open_source_file_with_line_charpos): Don't declare.
3116 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3117 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3118 Use g_source_cache.
3119
872dceaa
TT
31202019-08-06 Tom Tromey <tromey@adacore.com>
3121
3122 * source-cache.c (source_cache::get_plain_source_lines):
3123 Remove "first_line" and "last_line" parameters.
3124 (source_cache::get_source_lines): Cache plain text.
3125 * source-cache.h (class source_cache)
3126 <get_plain_source_lines>: Update.
3127
269249d9
TT
31282019-08-06 Tom Tromey <tromey@adacore.com>
3129
3130 * source-cache.c (extract_lines): No longer a method.
3131 Changed type of parameter. Include final newline.
3132 (selftests::extract_lines_test): New function.
3133 (_initialize_source_cache): Likewise.
3134 * source-cache.h (class source_cache)
3135 <extract_lines>: Don't declare.
3136
c0e8dcd8
TT
31372019-08-06 Tom Tromey <tromey@adacore.com>
3138
3139 * breakpoint.c (init_breakpoint_sal): Update.
3140 (breakpoint): Update.
3141 * breakpoint.h (struct breakpoint) <filter>: Now a
3142 unique_xmalloc_ptr.
3143
0b27c27d
CB
31442019-08-05 Christian Biesinger <cbiesinger@google.com>
3145
3146 * NEWS: Mention dictionary access on blocks.
3147 * python/py-block.c (blpy_getitem): New function.
3148 (block_object_as_mapping): New struct.
3149 (block_object_type): Use new struct for tp_as_mapping field.
3150
4ee94178
CB
31512019-08-05 Christian Biesinger <cbiesinger@google.com>
3152
3153 * objfiles.h (objfile): Add a comment describing partial symbols.
3154
8abfcabc
TT
31552019-08-05 Tom Tromey <tromey@adacore.com>
3156
3157 * compile/compile.c (_initialize_compile): Use _(), not N_().
3158 * thread.c (_initialize_thread): Use _(), not N_().
3159 * stack.c (_initialize_stack): Use _(), not N_().
3160 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3161
2b79f376
SM
31622019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * dwarf2read.c (struct dw2_symtab_iterator):
3165 <want_specific_block>: Remove.
3166 <block_index>: Change type to gdb::optional.
3167 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3168 change type of BLOCK_INDEX parameter to gdb::optional.
3169 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3170 (dw2_lookup_symbol): Don't pass argument for
3171 WANT_SPECIFIC_BLOCK.
3172 (dw2_expand_symtabs_for_function): Don't pass argument for
3173 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3174 (class dw2_debug_names_iterator)
3175 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3176 parameter, change BLOCK_INDEX type to gdb::optional.
3177 <m_want_specific_block>: Remove.
3178 <m_block_index>: Change type to gdb::optional.
3179 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3180 gdb::optional. Re-write in function of gdb::optional.
3181 (dw2_debug_names_lookup_symbol): Don't pass argument for
3182 WANT_SPECIFIC_BLOCK.
3183 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3184 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3185 BLOCK_INDEX.
3186
ae60f04e
PW
31872019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3188
3189 * NEWS: Mention changes to "info sources" command.
3190
28cd9371
PW
31912019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3192
3193 * symtab.c (filename_partial_match_opts): New struct type.
3194 (struct output_source_filename_data): New members
3195 regexp, c_regexp, partial_match.
3196 (output_source_filename): Use new members to decide to print file.
3197 (info_sources_option_defs): New variable.
3198 (make_info_sources_options_def_group, print_info_sources_header,
3199 info_sources_command_completer):
3200 New functions.
3201 (info_sources_command): Read new optional arguments.
3202 (_initialize_symtab): Update info sources help.
3203
ca683e3a
AO
32042019-08-02 Alexandre Oliva <oliva@adacore.com>
3205
3206 * ada-lang.c (exception_support_info_v0): Renamed from...
3207 (default_exception_support_info): ... this. Create new
3208 definition for v1.
3209 (ada_has_this_exception_support): Look up catch_handlers_sym.
3210 (ada_exception_support_info_sniffer): Try v0 after default.
3211
f1264162
TT
32122019-08-01 Tom Tromey <tromey@adacore.com>
3213
3214 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3215 gdbarch.h.
3216
0a7b2485
CB
32172019-08-01 Christian Biesinger <cbiesinger@google.com>
3218
3219 * s12z-tdep.c: Fix include path for s12z-opc.h.
3220
c6bdbeb7
AH
32212019-08-01 Alan Hayward <alan.hayward@arm.com>
3222
3223 * NEWS: Require GNU make 3.82.
3224
a2bd7b82
TT
32252019-07-16 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3228 declare.
3229
aa3b6533
TT
32302019-07-30 Tom Tromey <tromey@adacore.com>
3231
3232 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3233
a1530dc7
KB
32342019-07-30 Kevin Buettner <kevinb@redhat.com>
3235
3236 * printcmd.c (print_address_symbolic): Print negative offsets.
3237 (build_address_symbolic): Force signed arithmetic when computing
3238 offset.
3239
2906593f
CB
32402019-07-30 Christian Biesinger <cbiesinger@google.com>
3241
3242 PR/24474: Add a function to lookup static variables.
3243 * NEWS: Mention this new function.
3244 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3245 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3246 * python/python.c (python_GdbMethods): Add new function.
3247
c620ed88
CB
32482019-07-29 Christian Biesinger <cbiesinger@google.com>
3249
3250 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3251 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3252 (objfpy_lookup_static_symbol): New function.
3253 (objfile_object_methods): Add new functions.
3254
bc4268a5
PW
32552019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3256
3257 * NEWS: Mention 'set|show print frame-info'. Mention new
3258 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3259 backtrace argument. Mention that python frame filtering code
3260 is now consistent with what 'backtrace' command prints.
3261
4b5e8d19
PW
32622019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3263
3264 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3265 comments.
3266 (print_frame_info_auto, print_frame_info_source_line,
3267 print_frame_info_location, print_frame_info_source_and_location,
3268 print_frame_info_location_and_address, print_frame_info_short_location):
3269 New declarations.
3270 (struct frame_print_options): New member print_frame_info.
3271 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3272 * stack.h (get_user_print_what_frame_info): New declaration.
3273 (frame_show_address): New declaration.
3274 * stack.c (print_frame_arguments_choices): New value 'presence'.
3275 (print_frame_info_auto, print_frame_info_source_line,
3276 print_frame_info_location, print_frame_info_source_and_location,
3277 print_frame_info_location_and_address, print_frame_info_short_location,
3278 print_frame_info_choices, print_frame_info_print_what): New definitions.
3279 (print_frame_args): Only print dots for args if print frame-arguments
3280 is 'presence'.
3281 (frame_print_option_defs): New element for "frame-info".
3282 (get_user_print_what_frame_info): New function.
3283 (frame_show_address): Make non static. Move comment to stack.h.
3284 (print_frame_info_to_print_what): New function.
3285 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3286 to decide what to print.
3287 (backtrace_command_1): Handle the new print_frame_arguments_presence
3288 value.
3289 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3290 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3291 (py_print_frame): In non-mi mode, use LOCATION as default for
3292 print_what, similarly to frame information printed directly by
3293 backtrace command. Handle frame-info user option in non MI mode.
3294
6bdfee81
KB
32952019-07-27 Kevin Buettner <kevinb@redhat.com>
3296
3297 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3298 Add case for debugging 32-bit target on 64-bit host. Revise
3299 comment.
3300
98a617f8
KB
33012019-07-27 Kevin Buettner <kevinb@redhat.com>
3302
3303 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3304 instead of find_function_entry_range_from_pc.
3305
567238c9
KB
33062019-07-27 Kevin Buettner <kevinb@redhat.com>
3307
3308 * stack.c (find_frame_funname): Remove code which preferred
3309 minsym over symtab sym in "certain pathological cases".
3310
2dc80cf8
KB
3311 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3312 parameter. Change type of "do_demangle" to bool.
3313 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3314 Pass suitable "prefer_sym_over_minsym" flag to
3315 build_address_symbolic(). Don't output "+" for negative offsets.
3316 * printcmd.c (print_address_symbolic): Update invocation of
3317 build_address_symbolic to include a "prefer_sym_over_minsym"
3318 flag.
3319 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3320 Restrict cases in which use of minimal symbol is preferred to that
3321 of a found symbol. Update comments.
3322
1aff7173
KB
3323 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3324 for entry pc when entry pc is out of range for that FDE.
3325
89b085ac
BC
33262019-07-26 Brian Callahan <bcallah@openbsd.org>
3327
3328 PR gdb/24839:
3329 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3330 type.
3331
f32feb4a
CB
33322019-07-25 Christian Biesinger <cbiesinger@google.com>
3333
3334 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3335 this function's Python signature.
3336
3337
33382019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3339
3340 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3341 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3342 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3343 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3344 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3345
3346
c54e4253
YS
33472019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3348
3349 * h8300-tdep.c (h8300_register_name_common): New.
3350 h8300_register_name): Use h8300_register_name_common.
3351 (h8300s_register_name): Likewise.
3352 (h8300sx_register_name): Likewise.
3353 (h8300h_register_nam): New.
3354 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3355
3356
40eadf04
SP
33572019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3358
3359 * arm-tdep.c (arm_skip_cmse_entry): New function.
3360 (arm_is_sgstubs_section): New function.
3361 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3362
bfa2a36d
TT
33632019-07-22 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3366 Don't self-assign.
3367
a8e9d247
AB
33682019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3371 type_print.
3372
eb86c5e2
AB
33732019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3376 so that GDB doesn't match any msymbols when searching in the
3377 TYPES_DOMAIN.
3378 (print_symbol_info): Print using typedef_print or type_print based
3379 on the type of the symbol. Add updated FIXME comment moved from...
3380 (_initialize_symtab): ... move and update FIXME comment to above.
3381
a8eab7c6
AB
33822019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * NEWS: Mention adding -q option to "info types".
3385 * symtab.c (struct info_types_options): New struct.
3386 (info_types_options_defs): New variable.
3387 (make_info_types_options_def_group): New function.
3388 (info_types_command): Use gdb::option framework to parse options.
3389 (info_types_command_completer): New function.
3390 (_initialize_symtab): Extend the help text on "info types" and
3391 register command completer.
3392
b4603c34
CB
33932019-07-21 Christian Biesinger <cbiesinger@google.com>
3394
3395 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3396 (lookup_symbol_in_objfile): Change int to block_enum and add a
3397 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3398
c8cdc1e0
CB
33992019-07-20 Christian Biesinger <cbiesinger@google.com>
3400
3401 * MAINTAINERS (Write After Approval): Add self.
3402
01e175fe
AB
34032019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3406 instruction to the dummy code region.
3407
56f79b63
TT
34082019-07-19 Tom Tromey <tromey@adacore.com>
3409
3410 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3411 (ARGSUSED, PARAMS, __func__): Remove rules.
3412
4c5aa8e0
AH
34132019-07-19 Alan Hayward <alan.hayward@arm.com>
3414
3415 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3416 * features/arm/arm-with-iwmmxt.c: Remove.
3417 * features/arm/arm-with-iwmmxt.xml: Remove.
3418 * features/arm/arm-with-m-fpa-layout.c: Remove.
3419 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3420 * features/arm/arm-with-m-vfp-d16.c: Remove.
3421 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3422 * features/arm/arm-with-m.c: Remove.
3423 * features/arm/arm-with-m.xml: Remove.
3424 * features/arm/arm-with-neon.c: Remove.
3425 * features/arm/arm-with-neon.xml: Remove.
3426 * features/arm/arm-with-vfpv2.c: Remove.
3427 * features/arm/arm-with-vfpv2.xml: Remove.
3428 * features/arm/arm-with-vfpv3.c: Remove.
3429 * features/arm/arm-with-vfpv3.xml: Remove.
3430
f42b2617
AH
34312019-07-19 Alan Hayward <alan.hayward@arm.com>
3432
3433 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3434
f29ec966
AH
34352019-07-19 Alan Hayward <alan.hayward@arm.com>
3436
3437 * arch/aarch32.c (aarch32_create_target_description): Create
3438 target descriptions using features.
3439 * arch/arm.c (arm_create_target_description)
3440 (arm_create_mprofile_target_description): Likewise.
3441 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3442
d105cce5
AH
34432019-07-19 Alan Hayward <alan.hayward@arm.com>
3444
3445 * Makefile.in: Add new files.
3446 * aarch32-tdep.c: New file.
3447 * aarch32-tdep.h: New file.
3448 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3449 Call aarch32_read_description.
3450 * arch/aarch32.c: New file.
3451 * arch/aarch32.h: New file.
3452 * arch/arm.c (arm_create_target_description)
3453 (arm_create_mprofile_target_description): New function.
3454 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3455 (arm_create_target_description)
3456 (arm_create_mprofile_target_description): New declaration.
3457 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3458 read_description functions.
3459 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3460 Likewise.
3461 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3462 * arm-tdep.c (tdesc_arm_list): New variable.
3463 (arm_register_g_packet_guesses): Call create description functions.
3464 (arm_read_description) (arm_read_mprofile_description): New
3465 function.
3466 * arm-tdep.h (arm_read_description)
3467 (arm_read_mprofile_description): Add declaration.
3468 * configure.tgt: Add new files.
3469
afe09f0b
GL
34702019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3471
3472 * top.c (new_ui_command): Open specified terminal just once.
3473
cd215b2e
TT
34742019-07-18 Tom Tromey <tromey@adacore.com>
3475
3476 * symtab.c (main_name): Constify return type.
3477 * symfile.c (set_initial_language): Update.
3478 * symtab.h (main_name): Constify return type.
3479
d8f68fcb
TT
34802019-07-17 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-winsource.c (tui_update_source_window)
3483 (tui_update_source_window_as_is)
3484 (tui_update_source_windows_with_line): Remove return.
3485 * tui/tui-disasm.c (tui_show_disassem)
3486 (tui_show_disassem_and_update_source): Remove return.
3487 * tui/tui.c (tui_reset): Remove return.
3488 * tui/tui-wingeneral.c
3489 (tui_check_and_display_highlight_if_needed): Remove return.
3490
ca5af91e
TT
34912019-07-17 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3494
5104fe36
TT
34952019-07-17 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-winsource.h (struct tui_exec_info_window)
3498 (struct tui_source_window_base): Move from tui-data.h.
3499 * tui/tui-winsource.c: Move many method definitions from
3500 elsewhere. Remove "structuring" comments.
3501 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3502 (tui_source_window_base::refresh_window): Move to
3503 tui-winsource.c.
3504 * tui/tui-win.c (tui_source_window_base::refresh_all)
3505 (tui_source_window_base::update_tab_width)
3506 (tui_source_window_base::set_new_height)
3507 (tui_source_window_base::do_make_visible_with_new_height): Move to
3508 tui-winsource.c.
3509 * tui/tui-source.h: Update.
3510 * tui/tui-source.c (tui_source_window_base::reset): Move to
3511 tui-winsource.c.
3512 * tui/tui-disasm.h: Update.
3513 * tui/tui-data.h (struct tui_exec_info_window): Move to
3514 tui-winsource.h.
3515 (struct tui_source_window_base): Likewise.
3516 * tui/tui-data.c (tui_source_window_base::clear_detail)
3517 (tui_source_window_base, ~tui_source_window_base): Move to
3518 tui-winsource.c.
3519
daa15dde
TT
35202019-07-17 Tom Tromey <tom@tromey.com>
3521
3522 * tui/tui-win.c (tui_resize_all)
3523 (tui_source_window_base::update_tab_width)
3524 (tui_adjust_win_heights): Update.
3525 (tui_win_info::make_invisible_and_set_new_height): Rename from
3526 make_invisible_and_set_new_height.
3527 * tui/tui-data.h (struct tui_win_info)
3528 <make_invisible_and_set_new_height>: New method.
3529
bfad4537
TT
35302019-07-17 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui.c: Update.
3533 * tui/tui-source.h (struct tui_source_window): Move from
3534 tui-data.h.
3535 * tui/tui-layout.c: Update.
3536 * tui/tui-disasm.c: Update.
3537 * tui/tui-data.h (struct tui_source_window): Move to
3538 tui-source.h.
3539
88f7e873
TT
35402019-07-17 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3543 tui-data.h.
3544 * tui/tui-data.h (struct tui_disasm_window): Move to
3545 tui-disasm.h.
3546
96bd6233
TT
35472019-07-17 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-regs.h (struct tui_data_item_window): Move from
3550 tui-data.h.
3551 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3552 * tui/tui-data.h (struct tui_data_item_window): Move to
3553 tui-regs.h.
3554 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3555
ce38393b
TT
35562019-07-17 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui.c: Update.
3559 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3560 (tui_cmd_window::max_height): Move to tui-command.c.
3561 * tui/tui-layout.c: Update.
3562 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3563 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3564 tui-command.c.
3565 * tui/tui-command.h (struct tui_cmd_window): Move from
3566 tui-data.h.
3567 * tui/tui-command.c: Remove "structuring" comments.
3568 (tui_cmd_window::clear_detail)
3569 (tui_cmd_window::do_make_visible_with_new_height)
3570 (tui_cmd_window::max_height): Move from elsewhere.
3571
2d8b51cb
TT
35722019-07-17 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3575 Now static.
3576 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3577 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3578
18ab23af
TT
35792019-07-17 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui.c: Update.
3582 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3583 tui-regs.c.
3584 * tui/tui-windata.h: Remove file.
3585 * tui/tui-windata.c: Remove file.
3586 * tui/tui-win.c (tui_data_window::set_new_height)
3587 (tui_data_window::do_make_visible_with_new_height): Move to
3588 tui-regs.c.
3589 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3590 * tui/tui-regs.c: Remove "structuring" comments.
3591 (tui_data_window::first_data_item_displayed)
3592 (tui_data_window::delete_data_content_windows)
3593 (tui_data_window::erase_data_content)
3594 (tui_data_window::display_all_data)
3595 (tui_data_window::refresh_all)
3596 (tui_data_window::do_scroll_vertical)
3597 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3598 (tui_data_window::do_make_visible_with_new_height)
3599 (tui_data_window::refresh_window): Move from elsewhere.
3600 (_initialize_tui_regs): Move to end of file.
3601 * tui/tui-layout.c: Update.
3602 * tui/tui-hooks.c: Update.
3603 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3604 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3605 tui-regs.c.
3606 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3607
88b7e7cc
TT
36082019-07-17 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3611 seen.
3612
0fcd3711
TT
36132019-07-17 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-win.c (tui_source_window_base::set_new_height)
3616 (tui_source_window_base::do_make_visible_with_new_height): Use
3617 m_has_locator field directly.
3618 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3619 method.
3620 (struct tui_source_window_base) <has_locator>: Likewise.
3621
4a38112d
TT
36222019-07-17 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3625 Don't declare.
3626 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3627 Remove.
3628 * tui/tui-win.c (tui_source_window_base::set_new_height)
3629 (tui_source_window_base::set_new_height)
3630 (make_invisible_and_set_new_height)
3631 (tui_source_window_base::do_make_visible_with_new_height)
3632 (tui_source_window_base::do_make_visible_with_new_height):
3633 Update.
3634 * tui/tui-layout.c (show_source_disasm_command, show_data)
3635 (show_source_or_disasm_and_command): Update.
3636 * tui/tui-layout.c (show_layout): Update.
3637
09129226
TT
36382019-07-17 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-layout.c (make_data_window): Remove.
3641 (show_data): Unify creation and re-initialization cases.
3642
4a8a5e84
TT
36432019-07-17 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-layout.c (make_source_window, make_disasm_window):
3646 Remove.
3647 (show_data): Unify creation and re-initialization cases.
3648
76d2be8e
TT
36492019-07-17 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-layout.c (make_command_window): Remove.
3652 (show_source_disasm_command, show_source_or_disasm_and_command):
3653 Unify creation and re-initialization cases.
3654
890b8bde
TT
36552019-07-17 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3658 creation and re-initialization cases.
3659
2cdfa113
TT
36602019-07-17 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-regs.c (tui_get_register): Return void.
3663
8e3cfd09
TT
36642019-07-17 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3667 Simplify.
3668
f4e04977
TT
36692019-07-17 Tom Tromey <tom@tromey.com>
3670
3671 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3672 resetting.
3673
0379b883
TT
36742019-07-17 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3677 * tui/tui-regs.c (tui_reg_layout): New function.
3678 (tui_show_registers, tui_reg_command): Use it.
3679 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3680 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3681 parameters.
3682 (tui_layout_command): Remove.
3683
b7fbad91
TT
36842019-07-17 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-layout.h (tui/tui-layout): Return void.
3687 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3688
4e1e56b9
TT
36892019-07-17 Tom Tromey <tom@tromey.com>
3690
3691 * tui/tui-layout.c (show_source_disasm_command, show_data):
3692 Update.
3693 (reset_locator): Remove.
3694 (show_source_or_disasm_and_command): Update.
3695
1e0c09ba
TT
36962019-07-17 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-source.c (tui_source_window_base::reset): Remove
3699 win_type parameter.
3700 * tui/tui-layout.c (make_command_window, make_source_window)
3701 (make_disasm_window, make_data_window)
3702 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3703 (reset_locator, show_source_or_disasm_and_command): Update.
3704 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3705 win_type parameter.
3706 (struct tui_source_window_base) <reset>: Likewise.
3707
1bf605de
TT
37082019-07-17 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-layout.c (show_source_disasm_command): Use
3711 reset_locator.
3712 (reset_locator): New function.
3713 (init_and_make_win): Remove.
3714 (show_source_or_disasm_and_command): Use reset_locator.
3715
098f9ed4
TT
37162019-07-17 Tom Tromey <tom@tromey.com>
3717
3718 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3719 condition.
3720 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3721 Remove condition.
3722 * tui/tui-source.c (tui_source_window_base::reset): New method.
3723 * tui/tui-layout.c (make_command_window): Don't call
3724 init_and_make_win.
3725 (make_source_window, make_disasm_window): Don't call
3726 make_source_or_disasm_window.
3727 (make_data_window): Don't call init_and_make_win. Change calling
3728 convention.
3729 (show_source_disasm_command, show_data): Simplify.
3730 (make_source_or_disasm_window): Remove.
3731 (show_source_or_disasm_and_command): Simplify.
3732 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3733 (struct tui_source_window_base) <reset>: Likewise.
3734 <execution_info>: Remove initializer.
3735 * tui/tui-data.c (tui_source_window_base): Initialize
3736 execution_info.
3737
80110957
TT
37382019-07-17 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3741 variable.
3742
cf82af05
TT
37432019-07-17 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui.c (tui_rl_other_window): Update.
3746 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3747 superclass method first. Always iterate over regs_content.
3748 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3749 method.
3750 * tui/tui-win.c (tui_set_focus_command): Update.
3751
01aeb396
TT
37522019-07-17 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-win.c (tui_set_focus_command): Rename from
3755 tui_set_focus. Call tui_enable.
3756 (tui_set_focus_command): Remove.
3757
fd6c75ee
TT
37582019-07-17 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3761 refresh_window.
3762 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3763 touchwin.
3764 (tui_data_window::refresh_window): Call refresh_window on data
3765 items. Always call superclass refresh_window.
3766 (tui_win_info::refresh): Remove.
3767 (tui_source_window_base::refresh_window): Update.
3768 (tui_refresh_all): Update.
3769 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3770 refresh_window.
3771 (show_source_or_disasm_and_command): Likewise.
3772 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3773 (struct tui_source_window_base) <refresh>: Likewise.
3774
f6cc34a9
TT
37752019-07-17 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-winsource.c (tui_clear_source_content)
3778 (tui_show_source_content): Update.
3779 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3780 whether content is empty.
3781 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3782 Remove.
3783
f31ec9af
TT
37842019-07-17 Tom Tromey <tom@tromey.com>
3785
3786 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3787 window's contents.
3788 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3789 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3790
d1b6f1e5
TT
37912019-07-17 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3794 (struct tui_data_item_window): Update.
3795
d9743a13
TT
37962019-07-17 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3799 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3800 defines.
3801
caf0bc4e
TT
38022019-07-17 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-winsource.h (tui_erase_source_content)
3805 (tui_clear_source_content): Remove "display_prompt" parameter.
3806 * tui/tui-winsource.c (tui_update_source_window_as_is)
3807 (tui_update_source_windows_with_addr): Update.
3808 (tui_clear_source_content): Remove "display_prompt" parameter.
3809 (tui_erase_source_content): Likewise. Simplify.
3810 (tui_show_source_content): Update.
3811 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3812 * tui/tui-stack.c (tui_show_frame_info): Update.
3813 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3814 Remove defines.
3815
9d391078
TT
38162019-07-17 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3819 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3820 parameter.
3821 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3822 parameter.
3823
a38da35d
TT
38242019-07-17 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui-winsource.c (tui_clear_source_content)
3827 (tui_show_source_content, tui_show_exec_info_content)
3828 (tui_clear_exec_info_content): Update.
3829 * tui/tui-stack.c (tui_show_locator_content): Update.
3830 (tui_show_frame_info): Update.
3831 * tui/tui-source.h (tui_source_window): Don't declare.
3832 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3833 from tui_source_is_displayed.
3834 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3835 Remove field.
3836 (struct tui_source_window_base) <content_in_use>: New field. Now
3837 bool.
3838 (struct tui_source_window) <showing_source_p>: New method.
3839 (TUI_SRC_WIN): Change cast.
3840 * tui/tui-data.c (tui_initialize_static_data): Update.
3841
c2cd8994
TT
38422019-07-17 Tom Tromey <tom@tromey.com>
3843
3844 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3845 location_matches_p.
3846 * tui/tui-source.c (tui_source_window::location_matches_p): New
3847 method.
3848 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3849 method.
3850 * tui/tui-data.h (struct tui_source_window_base)
3851 <location_matches_p>: New method.
3852 (struct tui_source_window, struct tui_disasm_window)
3853 <location_matches_p>: Likewise.
3854
4dde7b34
TT
38552019-07-17 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui-win.c (tui_set_win_height_command): Rename from
3858 tui_set_win_height.
3859 (tui_set_win_height_command): Remove.
3860
b73dd877
TT
38612019-07-17 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-source.c (tui_source_window): New constructor. Add
3864 observer.
3865 (~tui_source_window): New destructor.
3866 (tui_source_window::style_changed): New method.
3867 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3868 (tui_attach_detach_observers): Update.
3869 * tui/tui-data.h (struct tui_source_window): Make constructor not
3870 inline. Add destructor.
3871 (struct tui_source_window) <style_changed>: New method.
3872 <m_observable>: New member.
3873
ae2b5380
TT
38742019-07-17 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3877 * tui/tui-win.c (tui_resize_all): Fix typo.
3878
1ce3e844
TT
38792019-07-17 Tom Tromey <tom@tromey.com>
3880
3881 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3882 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3883 (tui_refresh_all): Remove "list" parameter. Use foreach.
3884 * tui/tui-win.c (window_name_completer): Use foreach.
3885 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3886 (update_tab_width): Likewise.
3887 * tui/tui-layout.c (show_layout): Update.
3888 * tui/tui-data.h (class tui_window_iterator): New.
3889 (struct all_tui_windows): New.
3890 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3891
fe3eaf1c
TT
38922019-07-17 Tom Tromey <tom@tromey.com>
3893
3894 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3895 parameter. Don't reference globals.
3896 (tui_reg_command): Update.
3897
368c1354
TT
38982019-07-17 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-regs.c (tui_show_registers): Simplify.
3901
e80cd204
TT
39022019-07-17 Tom Tromey <tom@tromey.com>
3903
3904 * tui/tui-regs.c (tui_show_registers): Update.
3905 (tui_show_register_group): Add win_info parameter.
3906
aca2dd16
TT
39072019-07-17 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3910 Rename from tui_display_reg_element_at_line.
3911 (tui_data_window::display_registers_from_line): Update.
3912 * tui/tui-data.h (struct tui_data_window)
3913 <display_reg_element_at_line>: New method.
3914
517e9505
TT
39152019-07-17 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-regs.h (tui_display_registers_from)
3918 (tui_display_registers_from_line): Don't declare.
3919 * tui/tui-windata.c (tui_data_window::display_all_data)
3920 (tui_data_window::refresh_all)
3921 (tui_data_window::do_scroll_vertical): Update.
3922 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3923 from tui_display_registers_from.
3924 (tui_display_reg_element_at_line): Update.
3925 (tui_data_window::display_registers_from_line): Rename from
3926 tui_display_registers_from_line.
3927 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3928 display_registers_from_line>: New methods.
3929
f76d8b19
TT
39302019-07-17 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3933 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3934 from tui_erase_data_content.
3935 (tui_data_window::display_all_data)
3936 (tui_data_window::refresh_all)
3937 (tui_data_window::do_scroll_vertical): Update.
3938 * tui/tui-regs.c (tui_show_registers): Update.
3939 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3940 New method.
3941
b4094625
TT
39422019-07-17 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3945 declare.
3946 * tui/tui-windata.c
3947 (tui_data_window::delete_data_content_windows): Rename from
3948 tui_delete_data_content_windows.
3949 (tui_data_window::display_all_data)
3950 (tui_data_window::do_scroll_vertical): Update.
3951 * tui/tui-data.h (struct tui_data_window)
3952 <delete_data_content_windows>: New method.
3953
c223a729
TT
39542019-07-17 Tom Tromey <tom@tromey.com>
3955
3956 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3957 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3958
50daf268
TT
39592019-07-17 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3962 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3963 from tui_display_all_data.
3964 * tui/tui-win.c
3965 (tui_data_window::do_make_visible_with_new_height): Update.
3966 * tui/tui-regs.c (tui_show_registers): Update.
3967 * tui/tui-layout.c (tui_set_layout): Update.
3968 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3969 method.
3970
df5f8cab
TT
39712019-07-17 Tom Tromey <tom@tromey.com>
3972
3973 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3974 * tui/tui-windata.c (tui_display_data_from): Remove.
3975 (tui_data_window::refresh_all): Update.
3976
80cb6c27
TT
39772019-07-17 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3980 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3981 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3982 tui_display_registers_from_line.
3983 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3984 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3985 "force_display" parameter.
3986
baff0c28
TT
39872019-07-17 Tom Tromey <tom@tromey.com>
3988
3989 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3990 declare.
3991 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3992 Rename from tui_first_reg_element_no_inline.
3993 (tui_display_reg_element_at_line)
3994 (tui_display_registers_from_line): Update.
3995 * tui/tui-data.h (struct tui_data_window)
3996 <first_reg_element_no_inline>: New method.
3997
3b23c5f2
TT
39982019-07-17 Tom Tromey <tom@tromey.com>
3999
4000 * tui/tui-windata.c (tui_display_data_from)
4001 (tui_data_window::do_scroll_vertical): Update.
4002 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4003 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4004 Rename from tui_line_from_reg_element_no.
4005 (tui_display_registers_from_line): Update.
4006 * tui/tui-data.h (struct tui_data_window)
4007 <line_from_reg_element_no>: New method.
4008
0b5ec218
TT
40092019-07-17 Tom Tromey <tom@tromey.com>
4010
4011 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4012 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4013 tui_last_regs_line_no.
4014 (tui_display_reg_element_at_line)
4015 (tui_display_registers_from_line): Update.
4016 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4017 method.
4018
0807ab7b
TT
40192019-07-17 Tom Tromey <tom@tromey.com>
4020
4021 PR tui/24722:
4022 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4023 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4024 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4025 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4026 (tui_update_breakpoint_info): Likewise.
4027 * tui/tui-hooks.c (tui_event_create_breakpoint)
4028 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4029 Update.
4030
9ad7fdef
TT
40312019-07-17 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4034
5813316f
TT
40352019-07-17 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-winsource.c (tui_update_source_window_as_is)
4038 (tui_update_source_windows_with_addr): Update.
4039 * tui/tui-source.h (tui_set_source_content)
4040 (tui_show_symtab_source): Add "win_info" parameter.
4041 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4042 parameter.
4043 (tui_show_symtab_source): Likewise.
4044
00e264e7
TT
40452019-07-17 Tom Tromey <tom@tromey.com>
4046
4047 * tui/tui-wingeneral.c
4048 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4049
06210ce4
TT
40502019-07-17 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4053 (struct tui_cmd_window) <can_scroll>: New method.
4054 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4055 method.
4056
381befee
TT
40572019-07-17 Tom Tromey <tromey@adacore.com>
4058
4059 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4060 do_field_signed>: Rename. Change type of "value".
4061 * ui-out.c (ui_out::field_signed): Rename from field_int.
4062 Change type of "value".
4063 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4064 type of "value".
4065 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4066 do_field_int. Change type of "value".
4067 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4068 do_field_int. Change type of "value".
4069 * tracepoint.c (trace_status_mi, tfind_1)
4070 (print_one_static_tracepoint_marker): Update.
4071 * thread.c (print_thread_info_1, print_selected_thread_frame):
4072 Update.
4073 * stack.c (print_frame, print_frame_info): Update.
4074 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4075 Update.
4076 * source.c (print_source_lines_base): Update.
4077 * skip.c (info_skip_command): Update.
4078 * record-btrace.c (btrace_ui_out_decode_error)
4079 (btrace_call_history_src_line): Update.
4080 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4081 Update.
4082 * progspace.c (print_program_space): Update.
4083 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4084 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4085 do_field_int. Change type of "value".
4086 * mi/mi-out.c (mi_ui_out::do_table_begin)
4087 (mi_ui_out::do_table_header): Update.
4088 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4089 type of "value".
4090 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4091 (mi_cmd_data_list_changed_registers, output_register)
4092 (mi_cmd_data_read_memory, mi_load_progress)
4093 (mi_cmd_trace_frame_collected): Update.
4094 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4095 Update.
4096 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4097 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4098 (mi_cmd_var_list_children, varobj_update_one): Update.
4099 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4100 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4101 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4102 * inferior.c (print_inferior): Update.
4103 * gdb_bfd.c (print_one_bfd): Update.
4104 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4105 Update.
4106 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4107 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4108 do_field_int. Change type of "value".
4109 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4110 do_field_int. Change type of "value".
4111 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4112 (print_one_breakpoint_location, print_it_catch_fork)
4113 (print_one_catch_fork, print_it_catch_vfork)
4114 (print_one_catch_vfork, print_it_catch_solib)
4115 (print_it_catch_exec, print_it_ranged_breakpoint)
4116 (print_mention_watchpoint, print_mention_masked_watchpoint)
4117 (bkpt_print_it, update_static_tracepoint): Update.
4118 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4119 * break-catch-syscall.c (print_it_catch_syscall): Update.
4120 * ada-tasks.c (print_ada_task_info): Update.
4121 * ada-lang.c (print_it_exception, print_mention_exception):
4122 Update.
4123
6b78c3f8
AB
41242019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4125
4126 PR breakpoints/24541
4127 * gdbarch.c: Regenerate.
4128 * gdbarch.h: Regenerate.
4129 * gdbarch.sh: Adjust return type and parameter types for
4130 'stap_adjust_register'.
4131 (i386_stap_adjust_register): Adjust signature and return new
4132 register name.
4133 * stap-probe.c (stap_parse_register_operand): Adjust use of
4134 'gdbarch_stap_adjust_register'.
4135
d72a9b85
TT
41362019-07-17 Tom Tromey <tromey@adacore.com>
4137
4138 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4139 declare VEC.
4140 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4141 std::vector.
4142 (struct s390_process_info): Add initializers.
4143 (s390_add_process): Use new.
4144 (s390_linux_nat_target::low_forget_process): Use delete.
4145 (s390_linux_nat_target::low_new_fork)
4146 (s390_linux_nat_target::stopped_by_watchpoint)
4147 (s390_linux_nat_target::low_prepare_to_resume)
4148 (s390_linux_nat_target::insert_watchpoint)
4149 (s390_linux_nat_target::insert_hw_breakpoint)
4150 (s390_linux_nat_target::remove_watchpoint)
4151 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4152
206e6c58
JB
41532019-07-16 John Baldwin <jhb@FreeBSD.org>
4154
4155 * aarch64-fbsd-nat.c: Include regcache.h.
4156 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4157 argument.
4158 (aarch64_fbsd_nat_target::fetch_registers)
4159 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4160 variable.
4161 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4162
cbde90f2
JB
41632019-07-16 John Baldwin <jhb@FreeBSD.org>
4164
4165 * fbsd-nat.c: Include gdbarch.h.
4166
07128006
TT
41672019-07-15 Tom Tromey <tromey@adacore.com>
4168
4169 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4170
1f77b012
TT
41712019-07-15 Tom Tromey <tromey@adacore.com>
4172
4173 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4174 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4175 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4176 * cli-out.c (cli_ui_out::do_field_int): New method.
4177 * ui-out.c (ui_out::field_unsigned): New method.
4178 * symfile.c (generic_load): Use field_unsigned.
4179 (print_transfer_performance): Likewise.
4180 * record-btrace.c (ui_out_field_uint): Remove.
4181 (btrace_call_history_insn_range, btrace_call_history): Use
4182 field_unsigned.
4183 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4184 field_unsigned.
4185 * ui-out.h (class ui_out) <field_unsigned>: New method.
4186 <do_field_unsigned>: Likewise.
4187
33eca680
TT
41882019-07-15 Tom Tromey <tromey@adacore.com>
4189
4190 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4191 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4192 * target.c (flash_erase_command): Use field_string.
4193 * infrun.c (print_signal_received_reason): Use field_string.
4194 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4195 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4196 field_string.
4197 * ada-tasks.c (print_ada_task_info): Use field_string.
4198
ca8d69be
TT
41992019-07-15 Tom Tromey <tromey@adacore.com>
4200
4201 * target.c (flash_erase_command): Use field_core_addr.
4202 * symfile.c (generic_load): Use field_core_addr.
4203 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4204 Use field_core_addr.
4205 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4206 field_core_addr.
4207
0d4e84ed
AB
42082019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4211 value if its desired type is smaller than a CORE_ADDR and signed.
4212
9a49df9d
AB
42132019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4214
4215 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4216 of changes to field names, and use new is_reference field to
4217 decide if a property is a reference or not.
4218 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4219 field.
4220 (struct dwarf2_property_baton): Update header comment, rename
4221 'referenced_type' to 'property_type' and update comments.
4222 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4223 default property type, store in property baton, update to take
4224 accound of renamed field.
4225 (read_func_scope): Update call to attr_to_dynamic_prop.
4226 (read_array_type): Likewise.
4227 (dwarf2_per_cu_addr_sized_int_type): New function.
4228 (read_subrange_index_type): Move type finding code to
4229 dwarf2_per_cu_addr_sized_int_type.
4230 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4231 (dwarf2_per_cu_addr_type): New function.
4232 (set_die_type): Update calls to attr_to_dynamic_prop.
4233
b86352cf
AB
42342019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4235
4236 * dwarf2read.c (read_subrange_index_type): New function.
4237 (read_subrange_type): Move code into new function and call it.
4238 * gdbtypes.c (create_range_type): Add some asserts.
4239
603490bf
AB
42402019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4243 update return statements.
4244 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4245 declaration, and update comment to match.
4246 * gdbtypes.c (resolve_dynamic_array): Update call to
4247 dwarf2_evaluate_property to match new return type.
4248
592f9d27
AB
42492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * valarith.c (value_subscripted_rvalue): Change lowerbound
4252 parameter type from int to LONGEST.
4253 * value.h (value_subscripted_rvalue): Likewise in declaration.
4254
60cfcb20
AB
42552019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * cli/cli-utils.c (info_print_command_completer): New function.
4258 * cli/cli-utils.h: Add 'completer.h' include, and forward
4259 declaration for 'struct cmd_list_element'.
4260 (info_print_command_completer): Declare.
4261 * stack.c (_initialize_stack): Add completer for 'info locals' and
4262 'info args'.
4263 * symtab.c (_initialize_symtab): Add completer for 'info
4264 variables' and 'info functions'.
4265 * NEWS: Mention completion for additional info commands.
4266
b16507e0
AB
42672019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * cli/cli-utils.c (extract_info_print_args): Delete.
4270 (extract_arg_maybe_quoted): Delete.
4271 (info_print_options_defs): New variable.
4272 (make_info_print_options_def_group): New function.
4273 (extract_info_print_options): Define new function.
4274 * cli/cli-utils.h (extract_info_print_args): Delete.
4275 (struct info_print_options): New structure.
4276 (extract_info_print_options): Declare new function.
4277 * stack.c (info_locals_command): Update to use new
4278 extract_info_print_options, also add a header comment.
4279 (info_args_command): Likewise.
4280 * symtab.c (info_variables_command): Likewise.
4281 (info_functions_command): Likewise.
4282
021d8588
AB
42832019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4286 to extract string arguments.
4287 * common/common-utils.c (extract_string_maybe_quoted): New function.
4288 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4289
b777eb6d
TT
42902019-07-11 Tom Tromey <tromey@adacore.com>
4291
4292 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4293 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4294 * top.h (gdbinit): Don't declare.
4295 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4296 into...
4297 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4298 * top.c (gdb_init): Don't call init_cli_cmds.
4299 (gdbinit): Remove.
4300 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4301
72ee03ff
TT
43022019-07-11 Tom Tromey <tromey@adacore.com>
4303
4304 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4305 after it has been moved.
4306
00db9531
SM
43072019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * valops.c (value_must_coerce_to_target): Change return type to
4310 bool.
4311 * value.h (value_must_coerce_to_target): Likewise.
4312
f2478a7e
SM
43132019-07-10 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * breakpoint.c (is_hardware_watchpoint): Remove
4316 forward-declaration.
4317 (is_masked_watchpoint): Change return type to bool.
4318 (is_tracepoint): Likewise.
4319 (is_breakpoint): Likewise.
4320 (is_hardware_watchpoint): Likewise.
4321 (is_watchpoint): Likewise.
4322 (is_no_memory_software_watchpoint): Likewise.
4323 (is_catchpoint): Likewise.
4324 (breakpoint_1): Make FILTER parameter's return type bool.
4325 is_masked_watchpoint): Change return type to bool.
4326 (save_breakpoints): Make FILTER parameter's return type bool.
4327 * breakpoint.h (is_breakpoint): Change return type to bool.
4328 (is_watchpoint): Likewise.
4329 (is_catchpoint): Likewise.
4330 (is_tracepoint): Likewise.
4331
0d12e84c
TT
43322019-07-10 Tom Tromey <tom@tromey.com>
4333
4334 * defs.h: Don't include gdbarch.h.
4335 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4336 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4337 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4338 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4339 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4340 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4341 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4342 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4343 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4344 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4345 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4346 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4347 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4348 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4349 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4350 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4351 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4352 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4353 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4354 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4355 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4356 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4357 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4358 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4359 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4360 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4361 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4362
f06f1252
TT
43632019-07-10 Tom Tromey <tromey@adacore.com>
4364
4365 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4366 * breakpoint.c (init_ada_exception_breakpoint): Register as
4367 bp_catchpoint.
4368 (print_one_breakpoint_location, print_one_breakpoint): Use
4369 is_ada_exception_catchpoint.
4370 * ada-lang.c (class ada_catchpoint_location): Pass
4371 bp_loc_software_breakpoint to bp_location constructor.
4372 (is_ada_exception_catchpoint): New function.
4373
7a5d944b
TT
43742019-07-10 Tom Tromey <tromey@adacore.com>
4375
4376 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4377 VEC.
4378 (struct arm_exidx_entry): New method operator<.
4379 (struct arm_exidx_data) <section_maps>: Change type.
4380 (arm_exidx_data_free): Remove.
4381 (arm_exidx_data_key): Change type. Move lower.
4382 (arm_exidx_new_objfile): Update.
4383 (arm_compare_exidx_entries): Remove.
4384 (arm_find_exidx_entry, _initialize_arm_tdep)
4385
48c66e1d
TT
43862019-07-10 Tom Tromey <tromey@adacore.com>
4387
4388 * solib-spu.c (ocl_program_data_key): Change type.
4389 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4390 Update.
4391
a269fbf1
TT
43922019-07-10 Tom Tromey <tromey@adacore.com>
4393
4394 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4395 (struct solib_aix_inferior_data) <library_list>: Change type.
4396 (solib_aix_inferior_data_handle): Change type.
4397 (get_solib_aix_inferior_data): Update.
4398 (solib_aix_free_library_list): Remove.
4399 (library_list_start_library): Update.
4400 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4401 return type.
4402 (solib_aix_get_library_list)
4403 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4404 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4405
c294730c
TT
44062019-07-10 Tom Tromey <tromey@adacore.com>
4407
4408 * solib-dsbt.c (struct dsbt_info): Add initializers.
4409 (solib_dsbt_pspace_data): Change type.
4410 (dsbt_pspace_data_cleanup): Remove.
4411 (get_dsbt_info, _initialize_dsbt_solib): Update.
4412
9d52077d
TT
44132019-07-10 Tom Tromey <tromey@adacore.com>
4414
4415 * spu-tdep.c (spu_overlay_data): Change type.
4416 (spu_get_overlay_table, spu_overlay_new_objfile)
4417 (_initialize_spu_tdep): Update.
4418
22a20dca
TT
44192019-07-10 Tom Tromey <tromey@adacore.com>
4420
4421 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4422 destructor.
4423 (dbx_objfile_data_key): Change type and declare later.
4424 (DBX_SYMFILE_INFO): Rewrite.
4425 * dbxread.c (dbx_objfile_data_key): Change type.
4426 (dbx_symfile_init): Update.
4427 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4428 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4429 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4430
cb60f420
TT
44312019-07-10 Tom Tromey <tromey@adacore.com>
4432
4433 * jit.c (jit_program_space_key): Change type. Move lower.
4434 (get_jit_program_space_data): Update.
4435 (jit_program_space_data_cleanup): Remove.
4436 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4437 Update.
4438 (struct jit_program_space_data): Add initializers.
4439
51df2ae3
TT
44402019-07-10 Tom Tromey <tromey@adacore.com>
4441
4442 * solib-darwin.c (struct darwin_info): Add initializers.
4443 (solib_darwin_pspace_data): Change type.
4444 (darwin_pspace_data_cleanup): Remove.
4445 (get_darwin_info, _initialize_darwin_solib): Update.
4446
18101a35
TT
44472019-07-10 Tom Tromey <tromey@adacore.com>
4448
4449 * remote-sim.c (struct sim_inferior_data): Add initializers,
4450 constructor, and destructor.
4451 (sim_inferior_data_key): Change type. Move lower.
4452 (check_for_duplicate_sim_descriptor): Update.
4453 (get_sim_inferior_data): Use new. Update.
4454 (~sim_inferior_data_cleanup): Rename from
4455 sim_inferior_data_cleanup. Simplify.
4456 (gdbsim_close_inferior, simulator_command)
4457 (sim_command_completer, _initialize_remote_sim): Update.
4458 (next_pid, INITIAL_PID): Move earlier.
4459
05b08ac1
TT
44602019-07-10 Tom Tromey <tromey@adacore.com>
4461
4462 * python/python-internal.h (create_thread_object): Return
4463 gdbpy_ref.
4464 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4465 * python/py-inferior.c (struct threadlist_entry): Add
4466 constructor.
4467 <thread_obj>: Now a gdbpy_ref.
4468 (thread_to_thread_object): Update.
4469 (add_thread_object): Use new.
4470 (delete_thread_object): Use delete.
4471 (infpy_threads): Update.
4472 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4473 GIL.
4474
32372d80
TT
44752019-07-10 Tom Tromey <tromey@adacore.com>
4476
4477 * valops.c (value_cast): Specialize error message for Ada.
4478
5c458ae8
SM
44792019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4482
4c462cb0
SM
44832019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4484
4485 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4486 bpstat_should_step): Return bool, adjust comments.
4487 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4488 bpstat_should_step): Likewise.
4489
89abbcc2
AH
44902019-07-10 Alan Hayward <alan.hayward@arm.com>
4491
4492 * features/Makefile: Use feature target descriptions for Arm.
4493 * features/arm/arm-core.c: Generate new file.
4494 * features/arm/arm-fpa.c: Likewise.
4495 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4496 * features/arm/arm-m-profile.c: Likewise.
4497 * features/arm/arm-vfpv2.c: Likewise.
4498 * features/arm/arm-vfpv3.c: Likewise.
4499 * features/arm/xscale-iwmmxt.c: Likewise.
4500 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4501
166a82be
AH
45022019-07-10 Alan Hayward <alan.hayward@arm.com>
4503
4504 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4505 ptrace earlier.
4506
9fb4c7e9
AH
45072019-07-10 Alan Hayward <alan.hayward@arm.com>
4508
4509 * features/aarch64-pauth.c: Regenerate.
4510
e2d0f980
SM
45112019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4512
4513 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4514 bool.
4515 (bpstat_what): Use false instead of 0.
4516
a38118e5
PA
45172019-07-09 Pedro Alves <palves@redhat.com>
4518
4519 * break-catch-throw.c (is_exception_catchpoint): New.
4520 * breakpoint.c (print_one_breakpoint_location): New parameter
4521 'raw_loc'. Handle it. Use
4522 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4523 looking at the breakpoint's type.
4524 (print_one_breakpoint): If handling "maint info breakpoints", also
4525 print locations of exception catchpoints.
4526 * breakpoint.h (is_exception_catchpoint): Declare.
4527
cb1e4e32
PA
45282019-07-09 Pedro Alves <palves@redhat.com>
4529
4530 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4531 "addr" field.
4532 (allocate_location_exception_catchpoint): New.
4533 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4534 (initialize_throw_catchpoint_ops): Install
4535 allocate_location_exception_catchpoint as allocate_location
4536 method.
4537 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4538 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4539 bp_loc_other.
4540 (breakpoint_address_is_meaningful): Delete.
4541 (bl_address_is_meaningful): New.
4542 (breakpoint_locations_match): Adjust comment.
4543 (bp_location_from_bp_type): New, factored out of...
4544 (bp_location::bp_location(breakpoint *)): ... this.
4545 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4546 factored out of...
4547 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4548 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4549 breakpoint_address_is_meaningful.
4550 (bp_locations_compare): Adjust comment.
4551 (update_global_location_list): Use bl_address_is_meaningful
4552 instead of breakpoint_address_is_meaningful.
4553 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4554 explicit.
4555 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4556 * python/py-breakpoint.c (bppy_get_location): No longer check
4557 whether location is null.
4558
b58a68fe
PA
45592019-07-09 Pedro Alves <palves@redhat.com>
4560
4561 PR c++/15468
4562 * breakpoint.c (print_one_breakpoint_location): Remove
4563 single-location assert.
4564
268a13a5
TT
45652019-07-09 Tom Tromey <tom@tromey.com>
4566
4567 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4568 * configure: Rebuild.
4569 * configure.ac: Change common to gdbsupport.
4570 * gdbsupport: Rename from common.
4571 * acinclude.m4: Change common to gdbsupport.
4572 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4573 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4574 gdbsupport.
4575 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4576 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4577 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4578 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4579 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4580 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4581 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4582 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4583 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4584 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4585 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4586 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4587 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4588 coff-pe-read.c, command.h, compile/compile-c-support.c,
4589 compile/compile-c.h, compile/compile-cplus-symbols.c,
4590 compile/compile-cplus-types.c, compile/compile-cplus.h,
4591 compile/compile-loc2c.c, compile/compile.c, completer.c,
4592 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4593 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4594 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4595 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4596 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4597 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4598 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4599 features/aarch64-core.c, features/aarch64-fpu.c,
4600 features/aarch64-pauth.c, features/aarch64-sve.c,
4601 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4602 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4603 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4604 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4605 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4606 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4607 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4608 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4609 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4610 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4611 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4612 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4613 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4614 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4615 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4616 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4617 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4618 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4619 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4620 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4621 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4622 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4623 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4624 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4625 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4626 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4627 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4628 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4629 minsyms.c, mips-linux-tdep.c, namespace.h,
4630 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4631 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4632 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4633 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4634 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4635 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4636 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4637 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4638 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4639 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4640 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4641 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4642 procfs.c, producer.c, progspace.h, psymtab.h,
4643 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4644 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4645 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4646 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4647 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4648 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4649 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4650 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4651 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4652 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4653 target-memory.c, target.c, target.h, target/waitstatus.c,
4654 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4655 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4656 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4657 unittests/array-view-selftests.c,
4658 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4659 unittests/common-utils-selftests.c,
4660 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4661 unittests/format_pieces-selftests.c,
4662 unittests/function-view-selftests.c,
4663 unittests/lookup_name_info-selftests.c,
4664 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4665 unittests/mkdir-recursive-selftests.c,
4666 unittests/observable-selftests.c,
4667 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4668 unittests/parse-connection-spec-selftests.c,
4669 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4670 unittests/scoped_fd-selftests.c,
4671 unittests/scoped_mmap-selftests.c,
4672 unittests/scoped_restore-selftests.c,
4673 unittests/string_view-selftests.c, unittests/style-selftests.c,
4674 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4675 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4676 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4677 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4678 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4679 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4680
5b0e2db4
AB
46812019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4684 bool value.
4685 (decode_digits_ordinary): Set explicit_line field in sal.
4686 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4687 symtab_and_line that was set on an explicit line number in
4688 assembler code. Do always update the recorded symtab and line if
4689 we do skip the prologue.
4690
0ba852ab
AB
46912019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4692
4693 * breakpoint.c (set_breakpoint_location_function): Remove
4694 explicit_loc parameter.
4695 (momentary_breakpoint_from_master): Update call to
4696 set_breakpoint_location_function.
4697 (add_location_to_breakpoint): Likewise.
4698
b3a7d171
AB
46992019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4702 required features based on default bfd type when no specific bfd
4703 is present.
4704
1f6f6e21
PW
47052019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4706
4707 * NEWS: Mention that GDB printf and eval commands can now print
4708 C-style and Ada-style convenience var strings without
4709 calling the inferior.
4710 * printcmd.c (printf_c_string): Locally print GDB internal var
4711 instead of transiting via the inferior.
4712 (printf_wide_c_string): Likewise.
4713
47142019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4715
5862c886 4716 PR breakpoints/25011
ea142fbf
AH
4717 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4718
0598af48
TT
47192019-07-04 Tom Tromey <tom@tromey.com>
4720
4721 PR tui/24724:
4722 * tui/tui-winsource.c (tui_clear_source_content): Update.
4723 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4724 (tui_update_breakpoint_info): Update.
4725 (tui_set_exec_info_content): Update.
4726 * tui/tui-source.c (tui_set_source_content_nil): Update.
4727 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4728 has_break.
4729 * tui/tui-data.h (enum tui_bp_flag): New.
4730 (tui_bp_flags): New enum flags type.
4731 (struct tui_source_element) <break_mode>: Change type. Rename
4732 from has_break.
4733 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4734 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4735 constants.
4736 * tui/tui-winsource.h: Fix comment.
4737
350fab54
AH
47382019-07-04 Alan Hayward <alan.hayward@arm.com>
4739
4740 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4741 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4742 (store_fpregs_to_thread)
4743 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4744 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4745 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4746 (IWMMXT_REGS_SIZE): Add define.
4747 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4748 (fetch_vfp_regs, store_vfp_regs)
4749 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4750 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4751
f0452268
AH
47522019-07-04 Alan Hayward <alan.hayward@arm.com>
4753
4754 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4755 defines.
4756 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4757 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4758 (ARM_INT_REGISTER_SIZE): ...to this.
4759 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4760 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4761 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4762 (arm_linux_collect_gregset, supply_nwfpe_register)
4763 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4764 defines.
4765 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4766 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4767 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4768 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4769 (arm_return_in_memory, arm_store_return_value)
4770 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4771 (arm_record_ld_st_multiple): Likewise.
4772 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4773 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4774
e935475c
AH
47752019-07-04 Alan Hayward <alan.hayward@arm.com>
4776
4777 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4778 AARCH64_DISPLACED_MODIFIED_INSNS.
4779 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4780 (aarch64_displaced_step_copy_insn): Likewise.
4781 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4782 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4783 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4784 ARM_DISPLACED_MODIFIED_INSNS.
4785 * arm-tdep.c (arm_gdbarch_init): Likewise.
4786 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4787 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4788 (struct arm_displaced_step_closure): Use
4789 ARM_DISPLACED_MODIFIED_INSNS.
4790
df0bb381
AH
47912019-07-04 Alan Hayward <alan.hayward@arm.com>
4792
4793 * features/Makefile: Remove unused xml files.
4794 * features/aarch64.xml: Remove.
4795 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4796 * features/i386/amd64-avx-avx512.xml: Remove.
4797 * features/i386/amd64-avx-linux.xml: Remove.
4798 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4799 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4800 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4801 * features/i386/amd64-avx-mpx.xml: Remove.
4802 * features/i386/amd64-avx.xml: Remove.
4803 * features/i386/amd64-linux.xml: Remove.
4804 * features/i386/amd64-mpx-linux.xml: Remove.
4805 * features/i386/amd64-mpx.xml: Remove.
4806 * features/i386/amd64.xml: Remove.
4807 * features/i386/i386-avx-avx512-linux.xml: Remove.
4808 * features/i386/i386-avx-avx512.xml: Remove.
4809 * features/i386/i386-avx-linux.xml: Remove.
4810 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4811 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4812 * features/i386/i386-avx-mpx-linux.xml: Remove.
4813 * features/i386/i386-avx-mpx.xml: Remove.
4814 * features/i386/i386-avx.xml: Remove.
4815 * features/i386/i386-linux.xml: Remove.
4816 * features/i386/i386-mmx-linux.xml: Remove.
4817 * features/i386/i386-mmx.xml: Remove.
4818 * features/i386/i386-mpx-linux.xml: Remove.
4819 * features/i386/i386-mpx.xml: Remove.
4820 * features/i386/i386.xml: Remove.
4821 * features/i386/x32-avx-avx512-linux.xml: Remove.
4822 * features/i386/x32-avx-linux.xml: Remove.
4823 * features/i386/x32-linux.xml: Remove.
4824
edd6266a
AH
48252019-07-04 Alan Hayward <alan.hayward@arm.com>
4826
4827 * regformats/aarch64.dat: Remove.
4828 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4829 * regformats/i386/amd64-avx-linux.dat: Remove.
4830 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4831 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4832 * regformats/i386/amd64-linux.dat: Remove.
4833 * regformats/i386/amd64-mpx-linux.dat: Remove.
4834 * regformats/i386/amd64.dat: Remove.
4835 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4836 * regformats/i386/i386-avx-linux.dat: Remove.
4837 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4838 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4839 * regformats/i386/i386-linux.dat: Remove.
4840 * regformats/i386/i386-mmx-linux.dat: Remove.
4841 * regformats/i386/i386-mpx-linux.dat: Remove.
4842 * regformats/i386/i386.dat: Remove.
4843 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4844 * regformats/i386/x32-avx-linux.dat: Remove.
4845 * regformats/i386/x32-linux.dat: Remove.
4846
2b40fda7
AH
48472019-07-04 Alan Hayward <alan.hayward@arm.com>
4848
4849 * aarch64-tdep.c: Remove xml self tests.
4850 * amd64-linux-tdep.c: Likewise.
4851 * amd64-tdep.c: Likewise.
4852 * i386-linux-tdep.c: Likewise.
4853 * i386-tdep.c: Likewise.
4854
5f4ba3e7
PA
48552019-07-03 Pedro Alves <palves@redhat.com>
4856
4857 PR cli/24732
4858 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4859 (pipe_cmd_option_defs): New.
4860 (make_pipe_cmd_options_def_group): New.
4861 (pipe_command): Use gdb::option::process_options.
4862 (pipe_command_completer): New function.
4863 (_initialize_cli_cmds): Install completer for "pipe" command.
4864
3d9be6f5
PA
48652019-07-03 Pedro Alves <palves@redhat.com>
4866
4867 * cli/cli-option.c (union option_value) <string>: New field.
4868 (struct option_def_and_value): Add ctor, move ctor, dtor and
4869 use DISABLE_COPY_AND_ASSIGN.
4870 (option_def_and_value::clear_value): New.
4871 (parse_option, save_option_value_in_ctx, get_val_type_str)
4872 (add_setshow_cmds_for_options): Handle var_string.
4873 * cli-option.h (union option_def::var_address) <string>: New
4874 field.
4875 (struct string_option_def): New.
4876 * maint-test-options.c (struct test_options_opts): Add default
4877 ctor and use DISABLE_COPY_AND_ASSIGN.
4878 <string_opt>: New field.
4879 (test_options_opts::~test_options_opts): New.
4880 (test_options_opts::dump): Also dump "-string".
4881 (test_options_option_defs): Install "string.
4882
41fc454c
PA
48832019-07-03 Pedro Alves <palves@redhat.com>
4884
4885 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4886 option_value with a null enumeration.
4887 (complete_options): Save the option values in the context.
4888 (save_option_value_in_ctx): New, factored out from ...
4889 (process_options): ... here.
4890 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4891 of the function.
4892 * maint-test-options.c (test_options_opts::dump): New, factored
4893 out from ...
4894 (maintenance_test_options_command_mode): ... here.
4895 (maintenance_test_options_command_completion_result): Delete.
4896 (maintenance_test_options_command_completion_text): Update
4897 comment.
4898 (maintenance_show_test_options_completion_result): Change
4899 prototype. Just print
4900 maintenance_test_options_command_completion_text.
4901 (save_completion_result): New.
4902 (maintenance_test_options_completer_mode): Pass options context to
4903 complete_options, and then save a dump.
4904 (_initialize_maint_test_options): Use add_cmd to install "maint
4905 show test-options-completion-result".
4906
fdbc9870
PA
49072019-07-03 Pedro Alves <palves@redhat.com>
4908
4909 * NEWS (New commands): Mention "with" and "maint with".
4910 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4911 (with_command, with_command_completer): New.
4912 (pipe_command): Adjust to new repeat_previous
4913 interface.
4914 (_initialize_cli_cmds): Install the "with" command and its "w"
4915 alias.
4916 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4917 declarations.
4918 * cli/cli-setshow.c (parse_cli_var_uinteger)
4919 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4920 argument strings for all var_types.
4921 (get_setshow_command_value_string): New, factored out from ...
4922 (do_show_command): ... this.
4923 * cli/cli-setshow.h: Include <string>.
4924 (get_setshow_command_value_string): Declare.
4925 * command.h (repeat_previous): Now returns const char *. Adjust
4926 comment.
4927 * maint.c: Include "cli/cli-cmds.h".
4928 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4929 (_initialize_maint_cmds): Register the "maintenance with" command.
4930 * top.c (repeat_previous): Move bits from pipe_command here:
4931 Return the saved command line, if any; error out if there's no
4932 command to relaunch.
4933
c6ac8931
PA
49342019-07-03 Pedro Alves <palves@redhat.com>
4935
4936 * NEWS (New commands): Mention "maint set/show test-settings"
4937 instead of "maint test-settings".
4938 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4939 (maintenance_test_settings_set_list): Rename to ...
4940 (maintenance_set_test_settings_list): ... this.
4941 (maintenance_test_settings_show_list): Rename to ...
4942 (maintenance_show_test_settings_list): ... this.
4943 (maintenance_test_settings_cmd): Delete.
4944 (maintenance_test_settings_set_cmd): ...
4945 (maintenance_set_test_settings_cmd): ... this.
4946 (maintenance_test_settings_show_cmd): ...
4947 (maintenance_show_test_settings_cmd): ... this.
4948 (maintenance_test_settings_show_value_cmd):
4949 (maintenance_show_test_settings_value_cmd): ... this.
4950 (_initialize_maint_test_settings): No longer install the "maint
4951 test-settings" prefix command. Rename "maint test-settings set"
4952 to "maint set test-settings", and "maint test-settings show" to
4953 "maint show test-settings". Adjust all subcommands.
4954
d1fcf2fd
PA
49552019-07-03 Pedro Alves <palves@redhat.com>
4956
4957 * maint-test-settings.c: Fix file's intro comment. Replace all
4958 references to "test-options" with references to "test-settings",
4959 in comments.
4960
970f9d09
PA
49612019-07-03 Pedro Alves <palves@redhat.com>
4962
4963 * maint-test-settings.c (maintenance_test_settings_xxx)
4964 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4965 New.
4966 (maintenance_test_settings_enums): Use them.
4967 (maintenance_test_settings_enum): Default to
4968 maintenance_test_settings_xxx.
4969 (_initialize_maint_test_settings): Initialize
4970 MAINTENANCE_TEST_SETTINGS_FILENAME.
4971
f3869b1a
SM
49722019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4973
4974 * breakpoint.h (remove_breakpoints_inf): Change return type to
4975 void, move function documentation here.
4976 * breakpoint.c (remove_breakpoints_inf): Change return type to
4977 void, move function documentation to header.
4978
54d66006
PA
49792019-07-02 Pedro Alves <palves@redhat.com>
4980
4981 * NEWS (Completion improvements): Mention "info threads".
4982 * thread.c (struct info_threads_opts, info_threads_option_defs)
4983 (make_info_threads_options_def_group): New.
4984 (info_threads_command): Use gdb::option::process_options.
4985 (info_threads_command_completer): New.
4986 (_initialize_thread): Use gdb::option::build_help to build the
4987 help text for "info threads".
4988
854f6088
SM
49892019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * defs.h (generic_load): Move from here...
4992 * symfile.h (generic_load): ... to here. Rename name parameter
4993 to args.
4994 * symfile.c (generic_load): Add comment.
4995
54ee4252
TT
49962019-07-01 Tom Tromey <tromey@adacore.com>
4997
4998 * dwarf2read.c
4999 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5000 declaration of without_params. Fix formatting.
5001
65392b3e
TT
50022019-07-01 Tom Tromey <tromey@adacore.com>
5003
5004 * ada-exp.y (find_primitive_type): Update.
5005 * ada-lang.h (ada_lookup_symbol): Update.
5006 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5007 parameter.
5008 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5009
7d7571f0
SDJ
50102019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5011
5012 PR breakpoints/24541
5013 * gdbarch.c: Regenerate.
5014 * gdbarch.h: Regenerate.
5015 * gdbarch.sh: Add 'stap_adjust_register'.
5016 * i386-tdep.c: Include '<unordered_set>'.
5017 (i386_stap_adjust_register): New function.
5018 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5019 * stap-probe.c (stap_parse_register_operand): Call
5020 'gdbarch_stap_adjust_register'.
5021
5af5392a
SDJ
50222019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5023
5024 PR python/24742
5025 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5026 * python/python.c (do_start_initialization): Use 'xmalloc'
5027 instead of 'PyMem_Malloc'.
5028
10d06d82
TT
50292019-06-28 Tom Tromey <tromey@adacore.com>
5030
5031 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5032 for Ada.
5033
1b7f24cd
TT
50342019-06-27 Tom Tromey <tromey@adacore.com>
5035
5036 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5037 objfile_key.
5038 (arm_find_mapping_symbol, arm_record_special_symbol)
5039 (_initialize_arm_tdep): Update.
5040 (arm_objfile_data_free): Remove.
5041
3d507ff2
TT
50422019-06-27 Tom Tromey <tromey@adacore.com>
5043
5044 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5045 to cp_print_static_field.
5046
762c164d
TT
50472019-06-26 Tom Tromey <tromey@adacore.com>
5048
5049 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5050 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5051 declare.
5052
aa2f9bcf
AH
50532019-06-26 Alan Hayward <alan.hayward@arm.com>
5054
5055 * features/aarch64-core.c (create_feature_aarch64_core):
5056 Regenerate.
5057 * features/aarch64-core.xml: Add cpsr flags.
5058
3426ae57
AH
50592019-06-26 Alan Hayward <alan.hayward@arm.com>
5060
5061 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5062 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5063
4838e44c
SM
50642019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5067 field.
5068 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5069 use.
5070 (arm_record_special_symbol): Don't insert new symbol in sorted
5071 position, push it at the end.
5072
54cc7474
SM
50732019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5074
5075 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5076 (arm_mapping_symbol_s): Remove.
5077 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5078 (arm_mapping_symbol_vec): New typedef.
5079 (struct arm_per_objfile): Add constructor.
5080 <section_maps>: Change type to
5081 std::unique_ptr<arm_mapping_symbol_vec[]>.
5082 (arm_compare_mapping_symbols): Remove.
5083 (arm_find_mapping_symbol): Adjust to section_maps type change.
5084 (arm_objfile_data_free): Call delete on arm_per_objfile.
5085 (arm_record_special_symbol): Adjust to section_maps type change.
5086 Allocate arm_per_objfile with new.
5087
b65b566c
PW
50882019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5089
5090 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5091 with the command prefix.
5092
c2fc64f5
TT
50932019-06-25 Tom Tromey <tom@tromey.com>
5094
5095 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5096 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5097
fb54fa76
TT
50982019-06-25 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5101 type.
5102 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5103 protected.
5104
f7952c57
TT
51052019-06-25 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-winsource.c
5108 (tui_source_window_base::set_is_exec_point_at): Add check against
5109 LOA_ADDRESS.
5110
17568d78
TT
51112019-06-25 Tom Tromey <tom@tromey.com>
5112
5113 * tui/tui-source.c (tui_set_source_content): Don't check before
5114 xfree.
5115 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5116
53e7cdba
TT
51172019-06-25 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-winsource.h (tui_update_source_window_as_is)
5120 (tui_alloc_source_buffer, tui_line_is_displayed)
5121 (tui_addr_is_displayed): Change type of win_info.
5122 * tui/tui-winsource.c (tui_update_source_window_as_is)
5123 (tui_clear_source_content, tui_show_source_line)
5124 (tui_show_source_content, tui_source_window_base::refill)
5125 (tui_source_window_base::set_is_exec_point_at)
5126 (tui_source_window_base::set_is_exec_point_at)
5127 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5128 (tui_alloc_source_buffer, tui_line_is_displayed)
5129 (tui_addr_is_displayed): Change type of win_info. Update.
5130 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5131 (tui_source_window_base::do_make_visible_with_new_height):
5132 Update.
5133 * tui/tui-source.c (tui_set_source_content)
5134 (tui_set_source_content_nil)
5135 (tui_source_window::do_scroll_vertical): Update.
5136 * tui/tui-layout.c (show_layout): Update.
5137 * tui/tui-disasm.c (tui_set_disassem_content)
5138 (tui_disasm_window::do_scroll_vertical): Update.
5139 * tui/tui-data.h (tui_win_content): Remove.
5140 (struct tui_gen_win_info) <content, content_size>: Remove.
5141 (struct tui_source_element): Add initializers and destructor.
5142 (union tui_which_element, struct tui_win_element): Remove.
5143 (struct tui_source_window_base) <content>: New field.
5144 (struct tui_data_window): Remove destructor.
5145 (tui_alloc_content, tui_free_win_content)
5146 (tui_free_all_source_wins_content): Don't declare.
5147 * tui/tui-data.c (tui_initialize_static_data): Update.
5148 (init_content_element, tui_alloc_content): Remove.
5149 (~tui_gen_win_info): Update.
5150 (~tui_data_window, tui_free_all_source_wins_content)
5151 (tui_free_win_content, free_content, free_content_elements):
5152 Remove.
5153
7908abbf
TT
51542019-06-25 Tom Tromey <tom@tromey.com>
5155
5156 * tui/tui-winsource.h (tui_clear_source_content)
5157 (tui_erase_source_content, tui_show_source_content): Change type
5158 of win_info.
5159 * tui/tui-winsource.c (tui_clear_source_content)
5160 (tui_erase_source_content, tui_show_source_content): Change type
5161 of win_info.
5162 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5163 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5164 win_info.
5165 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5166 win_info.
5167 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5168
02c28df0
TT
51692019-06-25 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-winsource.c (tui_clear_source_content)
5172 (tui_source_window_base::set_is_exec_point_at): Update.
5173 * tui/tui-source.c (tui_set_source_content_nil): Update.
5174 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5175 a bool.
5176 * tui/tui-data.c (init_content_element): Update.
5177
6658b1bf
TT
51782019-06-25 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5181 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5182 * tui/tui-layout.c (init_and_make_win): Update.
5183 * tui/tui.h (enum tui_win_type): Update.
5184 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5185 tui_win_is_auxillary.
5186 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5187 tui_win_is_auxillary.
5188
21e1c91e
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5192 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5193 (tui_delete_data_content_windows, tui_display_all_data)
5194 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5195 Update.
5196 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5197 * tui/tui-regs.c (tui_last_regs_line_no)
5198 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5199 (tui_show_registers): Update.
5200 (tui_show_register_group): Return void. Update.
5201 (tui_display_registers_from, tui_display_reg_element_at_line)
5202 (tui_display_registers_from_line, tui_check_register_values):
5203 Update.
5204 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5205 member.
5206 (struct tui_data_window) <regs_content>: Now a std::vector.
5207 <regs_content_count>: Remove.
5208 (tui_add_content_elements, tui_free_data_content): Don't declare.
5209 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5210 (init_content_element): Remove DATA_WIN case. Add assert.
5211 (tui_add_content_elements): Remove.
5212 (tui_data_window): Update.
5213 (tui_free_data_content): Remove.
5214 (free_content_elements): Remove DATA_WIN case.
5215
115ac53b
TT
52162019-06-25 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-data.c (tui_data_item_window): Update.
5219 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5220 * tui/tui-windata.c (tui_display_all_data)
5221 (tui_display_data_from_line): Update.
5222 (tui_check_data_values): Remove.
5223 * tui/tui-regs.c (tui_show_register_group)
5224 (tui_display_reg_element_at_line): Update.
5225 * tui/tui-hooks.c (tui_register_changed)
5226 (tui_refresh_frame_and_register_information): Call
5227 tui_check_register_values.
5228 * tui/tui-data.h (struct tui_data_window) <data_content,
5229 data_content_count, data_type>: Remove.
5230 (enum tui_data_type): Remove.
5231
5232 * tui/tui-data.c (tui_data_window::clear_detail)
5233 (~tui_data_window): Update.
5234
eaf9738b
TT
52352019-06-25 Tom Tromey <tom@tromey.com>
5236
5237 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5238 declare.
5239 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5240 Rename from tui_first_data_item_displayed. Update.
5241 (tui_data_window::refresh_all)
5242 (tui_data_window::do_scroll_vertical): Update.
5243 * tui/tui-data.h (struct tui_data_window)
5244 <first_data_item_displayed>: Declare new method.
5245
31ca4723
TT
52462019-06-25 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5249 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5250 contents...
5251 (tui_initialize_static_data): ...here.
5252
41bcff7f
TT
52532019-06-25 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5256 (tui_display_registers_from, tui_check_register_values): Update.
5257 (tui_display_register): Remove win_info parameter; update.
5258 (tui_get_register): Change type of parameters.
5259 * tui/tui-data.h (struct tui_data_element): Remove.
5260 (union tui_which_element) <data>: Remove.
5261 <data_window>: Change type.
5262 (struct tui_data_item_window): New.
5263 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5264 case. Add assert.
5265 (~tui_data_item_window): New destructor.
5266 (free_content_elements): Remove DATA_ITEM_WIN case.
5267
d2802c33
TT
52682019-06-25 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5271 Remove.
5272
dd835f8b
TT
52732019-06-25 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-data.h (struct tui_command_element): Remove.
5276 (union tui_which_element) <command>: Remove.
5277 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5278 assert.
5279 (free_content_elements): Remove CMD_WIN case.
5280
bd7db367
TT
52812019-06-25 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-layout.c (tui_set_layout): Update.
5284 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5285 * tui/tui-data.c (layout_def): Update.
5286
3add462f
TT
52872019-06-25 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5290 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5291 (tui_source_window_base::set_new_height): Update.
5292 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5293 Update.
5294 (tui_set_locator_fullname, tui_set_locator_info)
5295 (tui_show_frame_info): Update.
5296 * tui/tui-source.c (tui_set_source_content)
5297 (tui_source_is_displayed): Update.
5298 * tui/tui-layout.c (show_source_disasm_command, show_data)
5299 (show_source_or_disasm_and_command): Update.
5300 * tui/tui-disasm.c (tui_set_disassem_content)
5301 (tui_get_begin_asm_address): Update.
5302 * tui/tui-data.h (struct tui_locator_element): Remove.
5303 (union tui_which_element) <locator>: Remove.
5304 (struct tui_locator_window): New.
5305 (tui_locator_win_info_ptr): Change return type.
5306 * tui/tui-data.c (_locator): Change type.
5307 (tui_locator_win_info_ptr): Change return type.
5308 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5309 (tui_alloc_content): Add assert.
5310
489e9d8b
TT
53112019-06-25 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-winsource.c
5314 (tui_exec_info_window::maybe_allocate_content): New method.
5315 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5316 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5317 (make_source_or_disasm_window): Add cast.
5318 * tui/tui-data.h (union tui_which_element) <simple_string>:
5319 Remove.
5320 (struct tui_source_info): New.
5321 (struct tui_source_window_base) <execution_info>: Change type.
5322 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5323 case, and add assert.
5324 (tui_alloc_content): Add assert.
5325
c3fabb7d
TT
53262019-06-25 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5329 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5330 * tui/tui-data.c (tui_alloc_win_info): Remove.
5331
bbc228ee
TT
53322019-06-25 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5335 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5336 can_highlight.
5337
5fcee43a
TT
53382019-06-25 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5341 make_visible_with_new_height method.
5342 (tui_win_info::make_visible_with_new_height): New method.
5343 (tui_source_window_base::do_make_visible_with_new_height)
5344 (tui_data_window::do_make_visible_with_new_height)
5345 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5346 (make_visible_with_new_height): Remove.
5347 (tui_resize_all, tui_adjust_win_heights): Use
5348 make_visible_with_new_height method.
5349 * tui/tui-data.h (struct tui_win_info)
5350 <do_make_visible_with_new_height, make_visible_with_new_height>:
5351 New methods.
5352 (struct tui_source_window_base, struct tui_data_window)
5353 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5354 methods.
5355
d83f1fe6
TT
53562019-06-25 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5359 method.
5360 (update_tab_width): Call update_tab_width method.
5361 * tui/tui-data.h (struct tui_win_info)
5362 (struct tui_source_window_base) <update_tab_width>: New methods.
5363
17374de4
TT
53642019-06-25 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5367 parameter.
5368 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5369 parameter.
5370 (tui_gen_win_info::make_visible): Update.
5371 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5372 parameter.
5373 * tui/tui-data.h (enum tui_box): New enum.
5374 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5375
f936bca2
TT
53762019-06-25 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5379 init_and_make_win for EXEC_INFO_WIN.
5380 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5381 longer inline.
5382 (struct tui_win_info) <~tui_win_info>: Inline.
5383 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5384 Don't declare.
5385 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5386 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5387 Remove.
5388 (tui_initialize_static_data): Update.
5389 (~tui_gen_win_info): Handle more cleanup here.
5390 (~tui_source_window_base): Delete "execution_info".
5391 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5392
d6ba6a11
TT
53932019-06-25 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-layout.c (make_command_window): Don't set
5396 can_highlight.
5397 (show_source_disasm_command): Call the reset method.
5398 (show_data): Don't set can_highlight. Call the reset method.
5399 (tui_gen_win_info::reset): Rename from init_gen_win_info
5400 (init_and_make_win): Simplify. Return tui_gen_win_info.
5401 (show_source_or_disasm_and_command): Call the reset method.
5402 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5403 (struct tui_cmd_window): Set can_highlight.
5404
48a3bd16
TT
54052019-06-25 Tom Tromey <tom@tromey.com>
5406
5407 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5408 from make_visible.
5409 (tui_make_visible, tui_make_invisible): Rewrite.
5410 (tui_win_info::make_visible): Remove.
5411 (tui_source_window_base::make_visible): Update.
5412 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5413 method. Moved from...
5414 (struct tui_win_info) <make_visible>: ...here.
5415
c3bd716f
TT
54162019-06-25 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-winsource.c
5419 (tui_source_window_base::do_scroll_horizontal): Remove direction
5420 parameter.
5421 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5422 direction parameter.
5423 * tui/tui-win.c (tui_win_info::forward_scroll)
5424 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5425 (tui_win_info::right_scroll): Update.
5426 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5427 direction parameter.
5428 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5429 direction parameter.
5430 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5431 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5432 Remove direction parameter.
5433 (struct tui_source_window_base, struct tui_source_window)
5434 (struct tui_disasm_window, struct tui_data_window)
5435 (struct tui_cmd_window): Update.
5436
21c32dca
TT
54372019-06-25 Tom Tromey <tom@tromey.com>
5438
5439 * tui/tui-winsource.h (tui_set_exec_info_content)
5440 (tui_show_exec_info_content, tui_erase_exec_info_content)
5441 (tui_clear_exec_info_content, tui_update_exec_info): Change
5442 argument to tui_source_window_base.
5443 * tui/tui-winsource.c (tui_set_exec_info_content)
5444 (tui_show_exec_info_content, tui_erase_exec_info_content)
5445 (tui_clear_exec_info_content, tui_update_exec_info): Change
5446 argument to tui_source_window_base.
5447
73fbdc65
TT
54482019-06-25 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5451 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5452
33325343
TT
54532019-06-25 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5456 check.
5457
29d2c474
TT
54582019-06-25 Tom Tromey <tom@tromey.com>
5459
5460 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5461 type to void.
5462 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5463 type to void.
5464 * tui/tui-source.c (tui_set_source_content): Update.
5465 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5466
152f3f4b
TT
54672019-06-25 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-win.c (window_name_completer, tui_set_focus)
5470 (tui_all_windows_info): Use name method.
5471 * tui/tui-data.h (struct tui_gen_win_info)
5472 (struct tui_source_window, struct tui_disasm_window)
5473 (struct tui_data_window, struct tui_cmd_window) <name>: New
5474 method.
5475 (tui_win_name): Don't declare.
5476 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5477 (tui_win_name): Remove.
5478
be4da588
TT
54792019-06-25 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-winsource.h (tui_update_source_window)
5482 (tui_update_source_window_as_is): Change parameter type.
5483 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5484 to be a tui_source_window_base.
5485 (tui_update_source_window_as_is): Likewise.
5486 * tui/tui-win.c (make_visible_with_new_height): Update.
5487
5b81daba
TT
54882019-06-25 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-winsource.c (tui_erase_source_content)
5491 (tui_show_source_content, tui_show_exec_info_content)
5492 (tui_erase_exec_info_content): Use refresh_window method.
5493 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5494 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5495 from tui_refresh_win.
5496 (tui_data_window::refresh_window): New method.
5497 (tui_win_info::refresh, tui_source_window_base::refresh)
5498 (tui_refresh_all): Use refresh_window method.
5499 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5500 method.
5501 * tui/tui-regs.c (tui_display_register): Call refresh_window
5502 method.
5503 * tui/tui-layout.c (show_source_disasm_command)
5504 (show_source_or_disasm_and_command): Call refresh_window method.
5505 * tui/tui-data.h (struct tui_gen_win_info)
5506 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5507 New method.
5508
cb2ce893
TT
55092019-06-25 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui.c (tui_rl_other_window, tui_enable)
5512 (tui_is_window_visible, tui_get_command_dimension): Update.
5513 * tui/tui-winsource.c (tui_update_source_window_as_is)
5514 (tui_clear_source_content, tui_erase_source_content)
5515 (tui_show_source_line, tui_source_window_base::refill)
5516 (tui_source_window_base::do_scroll_horizontal)
5517 (tui_source_window_base::set_is_exec_point_at)
5518 (tui_update_breakpoint_info, tui_set_exec_info_content)
5519 (tui_alloc_source_buffer, tui_line_is_displayed)
5520 (tui_addr_is_displayed): Update.
5521 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5522 (tui_check_and_display_highlight_if_needed)
5523 (tui_win_info::make_visible, tui_win_info::refresh)
5524 (tui_refresh_all): Update.
5525 * tui/tui-windata.c (tui_first_data_item_displayed)
5526 (tui_delete_data_content_windows, tui_erase_data_content)
5527 (tui_display_all_data, tui_data_window::refresh_all)
5528 (tui_check_data_values): Update.
5529 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5530 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5531 (tui_win_info::backward_scroll, tui_refresh_all_win)
5532 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5533 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5534 (tui_source_window_base::set_new_height)
5535 (tui_data_window::set_new_height)
5536 (make_invisible_and_set_new_height)
5537 (make_visible_with_new_height, new_height_ok)
5538 (parse_scrolling_args): Update.
5539 * tui/tui-stack.c (tui_show_frame_info): Update.
5540 * tui/tui-source.c (tui_set_source_content)
5541 (tui_set_source_content_nil, tui_source_is_displayed)
5542 (tui_source_window::do_scroll_vertical): Update.
5543 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5544 (tui_display_registers_from, tui_display_reg_element_at_line)
5545 (tui_check_register_values, tui_reg_command): Update.
5546 * tui/tui-layout.c (tui_default_win_height)
5547 (show_source_disasm_command, show_data, init_and_make_win)
5548 (show_source_or_disasm_and_command): Update.
5549 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5550 (tui_redisplay_readline, tui_mld_flush)
5551 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5552 (tui_getc): Update.
5553 * tui/tui-disasm.c (tui_set_disassem_content)
5554 (tui_disasm_window::do_scroll_vertical): Update.
5555 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5556 Now virtual.
5557 (struct tui_win_info): Derive from tui_gen_win_info.
5558 <~tui_win_info>: Mark as override.
5559 <generic>: Remove member.
5560 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5561 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5562 (~tui_data_window, ~tui_win_info)
5563 (tui_free_all_source_wins_content): Update.
5564 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5565
ab313b35
TT
55662019-06-25 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-layout.c (init_and_make_win): Use new.
5569 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5570 destructor, initializers.
5571 (tui_alloc_generic_win_info): Don't declare.
5572 * tui/tui-data.c (_locator): Add argument to constructor.
5573 (source_win, disasm_win): New globals.
5574 (exec_info): Remove.
5575 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5576 Update.
5577 (tui_alloc_generic_win_info): Remove.
5578 (init_content_element): Use new.
5579 (tui_win_info::tui_win_info): Update.
5580 (free_content_elements) <case DATA_WIN>: Use delete.
5581
dc2c33e4
TT
55822019-06-25 Tom Tromey <tom@tromey.com>
5583
5584 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5585 * tui/tui-windata.c (tui_first_data_item_displayed)
5586 (tui_delete_data_content_windows): Update.
5587 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5588 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5589 (tui_display_registers_from, tui_check_register_values): Update.
5590 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5591 pointer.
5592 * tui/tui-data.c (init_content_element): Update. Allocate the new
5593 window.
5594 (tui_free_data_content): Update.
5595 (free_content_elements) <case DATA_WIN>: Free the window.
5596
214a5cbe
TT
55972019-06-25 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5600 Update.
5601 * tui/tui-layout.c (make_command_window)
5602 (show_source_disasm_command, show_data, init_and_make_win)
5603 (show_source_or_disasm_and_command): Update.
5604 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5605 method.
5606 <can_highight, is_highlighted>: Now bool.
5607 (tui_set_win_highlight): Don't declare.
5608 * tui/tui-data.c (tui_set_win_highlight): Remove.
5609
8e2daf15
TT
56102019-06-25 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-wingeneral.c (make_visible): Remove check of window
5613 type.
5614
8903bd8a
TT
56152019-06-25 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-win.c (tui_win_info::max_height)
5618 (tui_cmd_window::max_height): New methods.
5619 (new_height_ok): Call max_height.
5620 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5621 <max_height>: New method.
5622
3f02ce1e
TT
56232019-06-25 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-win.c (tui_source_window_base::set_new_height)
5626 (tui_data_window::set_new_height): New methods.
5627 (make_invisible_and_set_new_height): Call set_new_height method.
5628 * tui/tui-data.h (struct tui_win_info)
5629 (struct tui_source_window_base, struct tui_data_window)
5630 <set_new_height>: New method.
5631
1825f487
TT
56322019-06-25 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5635 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5636 tui_refresh_data_win.
5637 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5638 method.
5639 (tui_refresh_all_win): Call the refresh_all method.
5640 (tui_set_focus): Likewise.
5641 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5642 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5643 Likewise.
5644
ad54d15b
TT
56452019-06-25 Tom Tromey <tom@tromey.com>
5646
5647 * tui/tui-winsource.h (tui_refill_source_window)
5648 (tui_set_is_exec_point_at): Don't declare.
5649 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5650 (tui_source_window_base::refill): Rename from
5651 tui_refill_source_window.
5652 (tui_source_window_base::do_scroll_horizontal): Update.
5653 (tui_source_window_base::set_is_exec_point_at): Rename from
5654 tui_set_is_exec_point_at.
5655 (tui_update_all_breakpoint_info): Update.
5656 * tui/tui-stack.c (tui_show_frame_info): Update.
5657 * tui/tui-layout.c (show_data): Add cast.
5658 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5659 * tui/tui-data.h (struct tui_source_window_base) <refill,
5660 set_is_exec_point_at>: New methods.
5661 (tui_source_windows, tui_add_to_source_windows): Update types.
5662 (tui_add_to_source_windows): Remove redundant declaration.
5663 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5664 (tui_source_windows): Change return type.
5665 (tui_clear_source_windows_detail): Update.
5666 (tui_add_to_source_windows): Change type of parameter.
5667 (tui_free_all_source_wins_content): Update.
5668
2042b506
TT
56692019-06-25 Tom Tromey <tom@tromey.com>
5670
5671 * tui/tui-wingeneral.c (tui_win_info::refresh)
5672 (tui_source_window_base::refresh): New methods.
5673 (tui_refresh_all): Call the refresh method.
5674 * tui/tui-data.h (struct tui_win_info)
5675 (struct tui_source_window_base) <refresh>: New method.
5676
56122977
TT
56772019-06-25 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui.h (tui_is_window_visible): Return bool.
5680 * tui/tui.c (tui_is_window_visible): Return bool.
5681 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5682 (tui_make_visible, tui_make_invisible)
5683 (tui_win_info::make_visible)
5684 (tui_source_window_base::make_visible, make_all_visible)
5685 (tui_make_all_visible, tui_make_all_invisible): Update.
5686 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5687 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5688 bool.
5689 (struct tui_win_info, struct tui_source_window_base)
5690 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5691 * tui/tui-data.c (tui_init_generic_part): Update.
5692
cda37efb
TT
56932019-06-25 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5696 (tui_source_window_base::make_visible): New methods.
5697 (make_all_visible): Make method call.
5698 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5699 (struct tui_source_window_base, struct tui_cmd_window): Override
5700 make_visible.
5701 (tui_win_is_source_type): Don't declare.
5702 * tui/tui-data.c (tui_win_is_source_type): Remove.
5703
6a0ee02c
TT
57042019-06-25 Tom Tromey <tom@tromey.com>
5705
5706 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5707 NULL check.
5708
63901aec
TT
57092019-06-25 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5712 Inline constructor. Add initializers for members.
5713 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5714 constructors; now inline in class.
5715
ceb13a13
TT
57162019-06-25 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-regs.c (tui_show_registers): Update.
5719 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5720 bool.
5721 * tui/tui-data.c (tui_data_window::clear_detail)
5722 (tui_data_window): Update.
5723
238eb706
TT
57242019-06-25 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-windata.c (tui_display_all_data)
5727 (tui_display_data_from_line, tui_display_data_from)
5728 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5729 Update.
5730 * tui/tui-regs.c (tui_last_regs_line_no)
5731 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5732 (tui_show_registers, tui_show_register_group)
5733 (tui_display_registers_from, tui_display_reg_element_at_line)
5734 (tui_display_registers_from_line, tui_check_register_values)
5735 (tui_reg_next, tui_reg_prev): Update.
5736 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5737 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5738 tui_data_window.
5739 (struct tui_win_info) <detail>: Remove. Add new fields from
5740 tui_data_info.
5741 (TUI_DATA_WIN): Add cast.
5742 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5743 (~tui_data_window): Simplify.
5744
81491aa0
TT
57452019-06-25 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-layout.c (show_source_disasm_command)
5748 (show_source_or_disasm_and_command): Update.
5749 * tui/tui-io.c (update_cmdwin_start_line)
5750 (tui_redisplay_readline): Update.
5751 * tui/tui-data.h (struct tui_command_info): Remove.
5752 (struct tui_win_info) <detail>: Remove command_info member.
5753 (struct tui_data_window) <start_line>: New member, from
5754 tui_command_info.
5755 (TUI_CMD_WIN): Add casts.
5756
e6e41501
TT
57572019-06-25 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-winsource.c (tui_update_source_window)
5760 (tui_refill_source_window)
5761 (tui_source_window_base::do_scroll_horizontal)
5762 (tui_update_breakpoint_info, tui_set_exec_info_content)
5763 (tui_show_exec_info_content, tui_erase_exec_info_content)
5764 (tui_clear_exec_info_content): Update.
5765 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5766 Update.
5767 * tui/tui-win.c (make_invisible_and_set_new_height)
5768 (make_visible_with_new_height): Update.
5769 * tui/tui-source.c (tui_set_source_content)
5770 (tui_show_symtab_source): Update.
5771 * tui/tui-layout.c (extract_display_start_addr)
5772 (show_source_disasm_command, show_data)
5773 (make_source_or_disasm_window)
5774 (show_source_or_disasm_and_command): Update.
5775 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5776 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5777 "gdbarch".
5778 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5779 to tui_source_window_base.
5780 (struct tui_win_info) <detail>: Remove source_info member.
5781 (struct tui_source_window_base) <has_locator>: Inline.
5782 Move contents from tui_source_info; rename has_locator member to
5783 m_has_locator.
5784 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5785 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5786 header file.
5787 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5788 Simplify.
5789 (tui_free_all_source_wins_content): Cast to
5790 tui_source_window_base.
5791
44f0e208
TT
57922019-06-25 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-win.c (make_invisible_and_set_new_height)
5795 (make_visible_with_new_height): Call has_locator method.
5796 * tui/tui-layout.c (show_source_disasm_command, show_data)
5797 (show_source_or_disasm_and_command): Update for bool change.
5798 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5799 (tui_win_info) <has_locator>: New method.
5800 (struct tui_source_window_base) <has_locator>: New method.
5801 (tui_win_has_locator): Don't declare.
5802 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5803 from tui_win_has_locator.
5804 (tui_source_window_base): Use false, not FALSE.
5805
7778b912
TT
58062019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5809 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5810 clear_detail method directly.
5811 (tui_clear_win_detail): Remove.
5812
f83d391c
TT
58132019-06-25 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5816 "this", not TUI_DISASM_WIN.
5817
13446e05
TT
58182019-06-25 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5821 declare.
5822 * tui/tui-winsource.c
5823 (tui_source_window_base::do_scroll_horizontal): Rename from
5824 tui_horizontal_source_scroll.
5825 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5826 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5827 from tui_vertical_data_scroll.
5828 * tui/tui-win.h (tui_scroll): Don't declare.
5829 * tui/tui-win.c (tui_win_info::forward_scroll)
5830 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5831 (tui_win_info::right_scroll): Rename and update.
5832 (tui_scroll_forward_command, tui_scroll_backward_command)
5833 (tui_scroll_left_command, tui_scroll_right_command): Update.
5834 (tui_scroll): Remove.
5835 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5836 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5837 from tui_vertical_source_scroll.
5838 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5839 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5840 from tui_vertical_disassem_scroll.
5841 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5842 do_scroll_horizontal>: New methods.
5843 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5844 Likewise.
5845 (struct tui_source_window_base): Add do_scroll_horizontal.
5846 (struct tui_source_window, struct tui_disasm_window): Add
5847 do_scroll_vertical.
5848 (struct tui_data_window, struct tui_cmd_window): Add
5849 do_scroll_horizontal and do_scroll_vertical.
5850 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5851
5cf82909
TT
58522019-06-25 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-data.h (struct tui_source_window_base): New struct.
5855 (struct tui_source_window): Derive from tui_source_window_base.
5856 (struct tui_disasm_window): New struct.
5857 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5858 from tui_source_window::clear_detail.
5859 (tui_source_window_base): Rename from tui_source_window.
5860 (~tui_source_window_base): Rename from ~tui_source_window.
5861 (tui_alloc_win_info): Create a tui_disasm_window.
5862
ee1d42d6
TT
58632019-06-25 Tom Tromey <tom@tromey.com>
5864
5865 * tui/tui-data.h (struct tui_source_window)
5866 (struct tui_data_window): Declare destructors.
5867 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5868 destructors.
5869 (tui_win_info): Simplify.
5870
b4eb2452
TT
58712019-06-25 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-winsource.c (tui_display_main)
5874 (tui_update_source_windows_with_addr)
5875 (tui_update_all_breakpoint_info): Update.
5876 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5877 (new_height_ok, parse_scrolling_args): Update.
5878 * tui/tui-stack.c (tui_show_frame_info): Update.
5879 * tui/tui-data.h (struct tui_list): Remove.
5880 (tui_source_windows): Return a reference to a std::vector.
5881 * tui/tui-data.c (source_windows): Now a std::vector.
5882 (tui_source_windows): Change return type.
5883 (tui_clear_source_windows): Rewrite.
5884 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5885 (tui_free_all_source_wins_content): Rewrite.
5886
8761a91b
TT
58872019-06-25 Tom Tromey <tom@tromey.com>
5888
5889 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5890 (struct tui_data_window, struct tui_cmd_window): Declare
5891 clear_detail method.
5892 * tui/tui-data.c (tui_source_window::clear_detail)
5893 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5894 methods.
5895 (tui_clear_win_detail): Simplify.
5896
0ed69eda
TT
58972019-06-25 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-layout.c (make_source_window, make_disasm_window)
5900 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5901 Return the new window.
5902 (show_source_disasm_command, show_data)
5903 (show_source_or_disasm_and_command): Update.
5904
82432e10
TT
59052019-06-25 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5908 parameter. Return the new window.
5909 (show_source_disasm_command): Update and remove NULL check.
5910 (show_source_or_disasm_and_command): Update.
5911
ec328aa5
TT
59122019-06-25 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5915
33b906ab
TT
59162019-06-25 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-data.h (struct tui_win_info): Make constructor
5919 protected. Make destructor virtual. Add initializers.
5920 (tui_source_window, tui_data_window, tui_cmd_window): New
5921 classes.
5922 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5923 constructor. Add "type" parameter.
5924 (tui_source_window, tui_data_window, tui_cmd_window): New
5925 constructors.
5926 (tui_alloc_win_info): Instantiate the appropriate subclass.
5927
e7e11af4
TT
59282019-06-25 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-win.c (tui_resize_all): Use delete.
5931 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5932 destructor.
5933 (tui_free_window): Don't declare.
5934 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5935 Update.
5936
6792b55e
TT
59372019-06-25 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-data.h (struct tui_win_info): Add constructor.
5940 * tui/tui-data.c (tui_alloc_win_info): Use new.
5941 (tui_free_window): Use delete.
5942
f95675e1
TT
59432019-06-22 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5946 declare.
5947 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5948
5bff081c
TT
59492019-06-22 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5952 declare.
5953 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5954
47e3f474
TV
59552019-06-22 Tom de Vries <tdevries@suse.de>
5956
5957 * dwarf2read.c (create_addrmap_from_aranges)
5958 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5959 instead of '%zu'.
5960
fd5866f6
SM
59612019-06-21 Simon Marchi <simon.marchi@efficios.com>
5962
5963 * dwarf2read.h (dwarf2_section_info_def): Remove.
5964 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5965 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5966 std::vector<dwarf2_section_info>.
5967 (struct dwo_file) <~dwo_file>: Remove.
5968 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5969 types field.
5970 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5971 (dwarf2_read_debug_names): Likewise.
5972 (create_debug_types_hash_table): Change parameter type to
5973 array_view, adjust code accordingly.
5974 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5975 (partial_die_info::fixup): Likewise.
5976 (determine_prefix): Likewise.
5977 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5978
fb1eb2f9
SM
59792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5982 gdb_bfd_ref_ptr.
5983 <~dwo_file>: Remove call to gdb_bfd_unref.
5984 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5985 gdb_bfd_ref_ptr::get.
5986
51ac9db5
SM
59872019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5988
5989 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5990 type to htab_up.
5991 * dwarf2read.c (struct dwo_file): Initialize fields.
5992 <~dwo_file>: New.
5993 (free_dwo_file): Remove, move content to ~dwo_file.
5994 (struct dwo_file_deleter): Remove.
5995 (dwo_file_up>: Remove custom deleter.
5996 (free_dwo_files): Remove.
5997 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5998 dwo_files.
5999 (process_skeletonless_type_units): Call unique_ptr::get.
6000 (allocate_dwo_file_hash_table): Add deleter to created hash
6001 table. Change return type to htab_up.
6002 (lookup_dwo_file_slot): Don't memset dwo_file, call
6003 unique_ptr::get.
6004 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6005 (create_dwo_unit_in_dwp_v2): Likewise.
6006 (open_and_init_dwo_file): Likewise.
6007 (free_dwo_file_from_slot): Remove.
6008
dc4ccb6f
SM
60092019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6010
6011 * dwarf2read.h (struct dwarf2_section_info) <readin,
6012 is_virtual>: Change type to bool.
6013 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6014 true instead of 1.
6015
e6a1c5cb
TT
60162019-06-19 Tom Tromey <tom@tromey.com>
6017
6018 * tui/tui-data.h (tui_init_content_element): Don't declare.
6019
6f6ffbeb
TT
60202019-06-19 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-data.h (tui_init_win_info): Don't declare.
6023
f23f598e
TV
60242019-06-19 Tom de Vries <tdevries@suse.de>
6025
6026 * dwarf2read.h (abstract_to_concrete): Change type to
6027 std::unordered_map<sect_offset, std::vector<sect_offset>,
6028 gdb::hash_enum<sect_offset>>.
6029
680e1bee
TT
60302019-06-19 Tom Tromey <tromey@adacore.com>
6031
6032 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6033 EVAL_AVOID_SIDE_EFFECTS specially.
6034
dcf37923
TT
60352019-06-19 Tom Tromey <tromey@adacore.com>
6036
6037 * source-cache.c (highlighter): New global.
6038 (source_cache::get_source_lines): Create a highlighter on demand.
6039
494986d5
AB
60402019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * defs.h (deprecated_interactive_hook): Delete declaration.
6043 * interps.c (clear_interpreter_hooks): Remove use of
6044 deprecated_interactive_hook.
6045 * top.c (deprecated_interactive_hook): Delete definition.
6046 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6047
3360b6e7
TV
60482019-06-18 Tom de Vries <tdevries@suse.de>
6049
6050 PR gdb/24515
6051 * dwarf2read.h (abstract_to_concrete): Change type from
6052 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6053 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6054 * dwarf2read.c (read_variable): Update.
6055 (dwarf2_fetch_die_loc_sect_off): Update.
6056
310b3441
TV
60572019-06-17 Tom de Vries <tdevries@suse.de>
6058
6059 PR gdb/24617
6060 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6061 accessing parent[parent_len - 1].
6062
ba9777be
PP
60632019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6064
6065 PR gdb/24364
6066 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6067 call dtrace_process_dof with NULL dof.
6068
2b9f6e89
TV
60692019-06-16 Tom de Vries <tdevries@suse.de>
6070
6071 PR gdb/24445
6072 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6073
431b3ead
TT
60742019-06-16 Tom Tromey <tom@tromey.com>
6075
6076 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6077 (make_all_visible): Use address of member.
6078
d04b44a1
TT
60792019-06-16 Tom Tromey <tom@tromey.com>
6080
6081 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6082 (tui_free_window, free_content, free_content_elements): Remove
6083 unnecessary cast.
6084 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6085 cast.
6086 * tui/tui-regs.c (tui_show_register_group)
6087 (tui_display_registers_from, tui_display_reg_element_at_line):
6088 Remove unnecessary cast.
6089
bf5142e7
AB
60902019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * linux-nat.c (normal_mask): Delete.
6093 (_initialize_linux_nat): Don't initialise normal_mask.
6094
c4973306
SM
60952019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6096
6097 PR gdb/24445
6098 * dwarf-index-write.h (write_psymtabs_to_index): Add
6099 dwz_basename parameter.
6100 * dwarf-index-write.c (write_gdbindex): Move file writing to
6101 write_gdbindex_1. Change return type void.
6102 (assert_file_size): Move up, remove filename parameter.
6103 (write_gdbindex_1): New function.
6104 (write_debug_names): Change return type to void, call
6105 assert_file_size.
6106 (struct index_wip_file): New struct.
6107 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6108 file logic to index_wip_file. Write index for dwz file if
6109 needed.
6110 (save_gdb_index_command): Pass basename of dwz file, if present.
6111 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6112 build-id of dwz file, if present.
6113 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6114 (dwarf2_get_dwz_file): Likewise.
6115 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6116 (dwarf2_get_dwz_file): Likewise.
6117
395f9c91
TT
61182019-06-16 Tom Tromey <tom@tromey.com>
6119
6120 * coffread.c (process_coff_symbol): Use xstrdup.
6121 * value.c (create_internalvar): Use xstrdup.
6122
cafb3438
TT
61232019-06-16 Tom Tromey <tom@tromey.com>
6124
6125 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6126 * breakpoint.c (stopin_command, stopat_command)
6127 (until_break_command, decode_location_default): Remove unnecessary
6128 cast.
6129 * utils.c (subset_compare): Remove unnecessary cast.
6130 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6131 cast.
6132 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6133 cast.
6134 * infcmd.c (path_command): Remove unnecessary cast.
6135 * coffread.c (decode_type): Remove unnecessary cast.
6136 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6137 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6138 * tui/tui-stack.c (tui_show_locator_content)
6139 (tui_show_frame_info): Remove unnecessary cast.
6140 * tui/tui-win.c (tui_scroll_forward_command)
6141 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6142 (parse_scrolling_args): Remove unnecessary cast.
6143 * tui/tui-data.c (init_win_info, tui_del_window)
6144 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6145 (free_content_elements): Remove unnecessary cast.
6146 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6147 unnecessary cast.
6148 * tui/tui-source.c (tui_set_source_content)
6149 (tui_vertical_source_scroll): Remove unnecessary cast.
6150 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6151 cast.
6152 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6153 * tui/tui-regs.c (tui_display_registers_from)
6154 (tui_display_register): Remove unnecessary cast.
6155 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6156 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6157 (make_visible): Remove unnecessary cast.
6158 * tui/tui-winsource.c (tui_erase_source_content)
6159 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6160 unnecessary cast.
6161 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6162 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6163 * stabsread.c (read_type, read_array_type, read_range_type):
6164 Remove unnecessary cast.
6165 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6166 (parse_symbol, parse_type, upgrade_type, parse_external)
6167 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6168 unnecessary cast.
6169 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6170
730ead81
TT
61712019-06-16 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-data.c (tui_alloc_generic_win_info)
6174 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6175 checks.
6176
584a927c
AB
61772019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6178 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * f-typeprint.c (f_print_type): Don't return early for not
6181 associated or not allocated types.
6182 (f_type_print_varspec_suffix): Add print_rank parameter and print
6183 ranks of array types in case they dangling.
6184 (f_type_print_base): Add print_rank parameter.
6185
30056ea0
AB
61862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6187
6188 * NEWS: Mention new MI commands.
6189 * break-catch-throw.c (enum exception_event_kind): Move to
6190 breakpoint.h.
6191 (print_mention_exception_catchpoint): Output text as a single
6192 message.
6193 (catch_exception_command_1): Rename to...
6194 (catch_exception_event): ...this, make non-static, update header
6195 command, and change some parameter types.
6196 (catch_catch_command): Update for changes to
6197 catch_exception_command_1.
6198 (catch_throw_command): Likewise.
6199 (catch_rethrow_command): Likewise.
6200 * breakpoint.c (enum exception_event_kind): Delete.
6201 * breakpoint.h (enum exception_event_kind): Moved here from
6202 break-catch-throw.c.
6203 (catch_exception_event): Declare.
6204 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6205 (mi_cmd_catch_throw): New function.
6206 (mi_cmd_catch_rethrow): New function.
6207 (mi_cmd_catch_catch): New function.
6208 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6209 'catch-catch' entries.
6210 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6211 (mi_cmd_catch_rethrow): Declare.
6212 (mi_cmd_catch_catch): Declare.
6213
ec8e2b6d
AB
62142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6215
6216 * annotate.c (annotate_source_line): Change return type to void,
6217 update implementation to match.
6218 * annotate.h (annotate_source_line): Change return type to void,
6219 update header comment.
6220 * stack.c (print_frame_info): Don't change what frame information
6221 is printed based on whether annotations are on or not.
6222
0d3abd8c
AB
62232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6226 (annotate_source): Make static.
6227 (annotate_source_line): Moved from source.c and renamed from
6228 identify_source_line. Update the return type.
6229 * annotate.h (annotate_source): Delete declaration.
6230 (annotate_source_line): Declaration moved from source.h, and
6231 renamed from identify_source_line. Return type updated.
6232 * source.c (identify_source_line): Moved to annotate.c and renamed
6233 to annotate_source_line.
6234 (info_line_command): Remove check of annotation_level.
6235 * source.h (identify_source_line): Move declaration to annotate.h
6236 and rename to annotate_source_line.
6237 * stack.c: Add 'annotate.h' include.
6238 (print_frame_info): Remove check of annotation_level before
6239 calling annotate_source_line.
6240
00df30ae
AB
62412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6242
6243 * source-cache.c (source_cache::get_plain_source_lines): Use
6244 open_source_file_with_line_charpos instead of just
6245 open_source_file, remove call to find_source_lines.
6246 (source_cache::get_source_lines): Likewise.
6247 * source.c (find_source_lines): Make static.
6248 (get_filename_and_charpos): Renamed into...
6249 (open_source_file_with_line_charpos): ..this along with changes to
6250 return a scoped_fd, and some other minor clean ups.
6251 (identify_source_line): Use open_source_file_with_line_charpos.
6252 (search_command_helper): Use open_source_file_with_line_charpos
6253 instead of just open_source_file, remove call to
6254 find_source_lines.
6255 * source.h (open_source_file_with_line_charpos): Declare new
6256 function.
6257 (find_source_lines): Delete declaration.
6258
afda45a2
AB
62592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * source.c (get_filename_and_charpos): Remove fullname
6262 parameter.
6263 (identify_source_line): Update call to get_filename_and_charpos.
6264
0735b091
TT
62652019-06-14 Tom Tromey <tromey@adacore.com>
6266
6267 PR gdb/24502:
6268 * ui-style.h (skip_ansi_escape): Update comment.
6269 * ui-file.h (class no_terminal_escape_file): New class.
6270 * ui-file.c (no_terminal_escape_file::write)
6271 (no_terminal_escape_file::puts): New methods.
6272 * cli/cli-logging.c (handle_redirections): Use
6273 no_terminal_escape_file.
6274
52ce35e2
TT
62752019-06-14 Tom Tromey <tromey@adacore.com>
6276
6277 * NEWS: Move convenience variable news above Python news.
6278
73cc7272
TT
62792019-06-14 Tom Tromey <tom@tromey.com>
6280
6281 * gnulib: Move directory to top-level.
6282 * configure.ac: Don't configure gnulib.
6283 * configure: Rebuild.
6284 * common/common-defs.h: Use new path to gnulib.
6285 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6286 (GNULIB_H): Remove.
6287 (INCGNU): Look in new gnulib location.
6288 (HFILES_NO_SRCDIR): Remove gnulib files.
6289 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6290 (generated_files): Remove GNULIB_H.
6291 ($(LIBGNU), all-lib): Remove targets.
6292 (distclean): Don't mention GNULIB_BUILDDIR.
6293 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6294
f5686554
TT
62952019-06-14 Tom Tromey <tromey@adacore.com>
6296
6297 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6298 Warn if symbol file does not provide any symbols.
6299
a0c1ffed
TT
63002019-06-14 Tom Tromey <tromey@adacore.com>
6301
6302 * source.c (find_and_open_source): Respect basenames_may_differ.
6303
7c39e397
AB
63042019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6305
6306 * annotate.c (annotate_breakpoints_invalid): Make use of
6307 scoped_restore_terminal_state.
6308 (annotate_frames_invalid): Likewise.
6309
f411722c
TT
63102019-06-14 Tom Tromey <tromey@adacore.com>
6311
6312 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6313 allow assignment to an internalvar.
6314
4268ec18
TT
63152019-06-14 Tom Tromey <tromey@adacore.com>
6316
6317 * ada-lex.l: Allow "_" in attribute names.
6318
abdb711e
TT
63192019-06-14 Tom Tromey <tromey@adacore.com>
6320
6321 PR gdb/24653:
6322 * regcache.c (registers_changed): Don't call alloca.
6323 * top.c (execute_command): Don't call alloca.
6324
4c048731
PA
63252019-06-13 Pedro Alves <palves@redhat.com>
6326
6327 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6328 'expression'. When parsing an expression, error out if there's
6329 junk after "unlimited".
6330 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6331 (do_set_command): Adjust calls to is_unlimited_literal.
6332
66eb1ed3
PA
63332019-06-13 Pedro Alves <palves@redhat.com>
6334
6335 * compile/compile.c (make_compile_options_def_group): Add braces
6336 around array_view initializer.
6337 * thread.c (make_thread_apply_all_options_def_group)
6338 (make_thread_apply_all_options_def_group): Likewise.
6339
3345721a
PA
63402019-06-13 Pedro Alves <palves@redhat.com>
6341
6342 * NEWS (New commands): Mention "maint test-options
6343 require-delimiter", "maint test-options unknown-is-error", "maint
6344 test-options unknown-is-operand" and "maint show
6345 test-options-completion-result".
6346 (New command options, command completion): New section.
6347 (Completion improvements): New section.
6348 Mention that you can abbreviate "unlimited".
6349
6206060d
PA
63502019-06-13 Pedro Alves <palves@redhat.com>
6351
6352 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6353 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6354 * unittests/cli-utils-selftests.c (test_parse_flags)
6355 (test_parse_flags_qcs): Delete.
6356 (test_cli_utils): Don't call deleted functions.
6357
6665660a
PA
63582019-06-13 Pedro Alves <palves@redhat.com>
6359
6360 * thread.c: Include "cli/cli-option.h".
6361 (tp_array_compar_ascending): Global.
6362 (tp_array_compar): Delete function.
6363 (tp_array_compar_ascending, tp_array_compar_descending): New
6364 functions.
6365 (ascending_option_def, qcs_flag_option_def)
6366 (thr_qcs_flags_option_defs)
6367 (make_thread_apply_all_options_def_group)
6368 (make_thread_apply_options_def_group): New.
6369 (thread_apply_all_command): Use gdb::option::process_options.
6370 (thread_apply_command_completer)
6371 (thread_apply_all_command_completer): New.
6372 (thread_apply_command): Use gdb::option::process_options.
6373 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6374 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6375 to generate help text of "thread apply". Adjust "taas"'s help.
6376 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6377 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6378
f7e13587
PA
63792019-06-13 Pedro Alves <palves@redhat.com>
6380
6381 * thread.c (thread_apply_command): Check for invalid TID with
6382 isdigit instead of !isalpha.
6383
5d707134
PA
63842019-06-13 Pedro Alves <palves@redhat.com>
6385
6386 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6387 (validate_flags_qcs): New.
6388 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6389 (validate_flags_qcs): Declare.
6390 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6391 (make_frame_apply_options_def_group): New.
6392 (frame_apply_command_count): Process options with
6393 gdb::option::process_options.
6394 (frame_apply_completer): New.
6395 (frame_apply_level_completer, frame_apply_all_completer)
6396 (frame_apply_completer): New.
6397 (_initialize_stack): Update help of "frame apply", "frame apply
6398 level", "frame apply all" and "faas" to mention supported options
6399 and install command completers.
6400 * stack.h (frame_apply_all_completer): Declare.
6401 * thread.c: Include "stack.h".
6402 (tfaas_command): Add "--".
6403 (_initialize_thread): Update help "tfaas" to mention supported
6404 options and install command completer.
6405
272d4594
PA
64062019-06-13 Pedro Alves <palves@redhat.com>
6407
6408 * completer.c (complete_nested_command_line): New.
6409 (gdb_completion_word_break_characters_throw): Add assertion.
6410 * completer.h (complete_nested_command_line): Declare.
6411
90a1ef87
PA
64122019-06-13 Pedro Alves <palves@redhat.com>
6413
6414 * stack.c (parse_backtrace_qualifiers): New.
6415 (backtrace_command): Use it.
6416 (backtrace_command_completer): Complete on qualifiers.
6417
d4c16835
PA
64182019-06-13 Pedro Alves <palves@redhat.com>
6419
6420 * frame.c: Include "cli/cli-option.h.
6421 (user_set_backtrace_options): New.
6422 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6423 Delete.
6424 (get_prev_frame): Adjust.
6425 (boolean_option_def, uinteger_option_def)
6426 (set_backtrace_option_defs): New.
6427 (_initialize_frame): Adjust and use
6428 gdb::option::add_setshow_cmds_for_options to install "set
6429 backtrace past-main" and "set backtrace past-entry".
6430 * frame.h: Include "cli/cli-option.h".
6431 (struct frame_print_options): Forward declare.
6432 (print_frame_arguments_all, print_frame_arguments_scalars)
6433 (print_frame_arguments_none): Declare.
6434 (print_entry_values): Delete declaration.
6435 (struct frame_print_options, user_frame_print_options): New.
6436 (struct set_backtrace_options): New.
6437 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6438 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6439 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6440 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6441 (list_args_or_locals): Add frame_print_options parameter.
6442 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6443 * python/py-framefilter.c (enumerate_args): Pass down
6444 USER_FRAME_PRINT_OPTIONS.
6445 * stack.c: Include "cli/cli-option.h".
6446 (print_frame_arguments_all, print_frame_arguments_scalars)
6447 (print_frame_arguments_none): Declare.
6448 (print_raw_frame_arguments, print_entry_values): Delete.
6449 (user_frame_print_options): New.
6450 (boolean_option_def, enum_option_def, frame_print_option_defs):
6451 New.
6452 (struct backtrace_cmd_options): New.
6453 (bt_flag_option_def): New.
6454 (backtrace_command_option_defs): New.
6455 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6456 (print_frame_arg, read_frame_arg, print_frame_args)
6457 (print_frame_info, print_frame): Add frame_print_options parameter
6458 and use it.
6459 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6460 (backtrace_command_1): Add frame_print_options and
6461 backtrace_cmd_options parameters and use them.
6462 (make_backtrace_options_def_group): New.
6463 (backtrace_command): Process command options with
6464 gdb::option::process_options.
6465 (backtrace_command_completer): New.
6466 (_initialize_stack): Extend "backtrace"'s help to mention
6467 supported options. Install completer for "backtrace".
6468 Install some settings commands with add_setshow_cmds_for_options.
6469
2daf894e
PA
64702019-06-13 Pedro Alves <palves@redhat.com>
6471
6472 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6473 and that "set/show print raw frame-arguments" are now deprecated.
6474
6475 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6476 command.
6477 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6478 * stack.c (_initialize_stack): Install "set/show print
6479 raw-frame-arguments", and deprecate "set/show print raw
6480 frame-arguments".
6481 * valprint.c (_initialize_valprint): Deprecate "set/show print
6482 raw".
6483
e6ed716c
PA
64842019-06-13 Pedro Alves <palves@redhat.com>
6485
6486 * compile/compile.c (struct compile_options): New.
6487 (compile_flag_option_def, compile_command_option_defs)
6488 (make_compile_options_def_group): New.
6489 (compile_file_command): Handle options with
6490 gdb::option::process_options.
6491 (compile_file_command_completer): New function.
6492 (compile_code_command): Handle options with
6493 gdb::option::process_options.
6494 (compile_code_command_completer): New function.
6495 (_initialize_compiler): Install completers for "compile code" and
6496 "compile file". Mention available options in "compile code" and
6497 "compile code"'s help.
6498 * completer.c (advance_to_completion_word): New, factored out from
6499 ...
6500 (advance_to_expression_complete_word_point): ... this.
6501 (advance_to_filename_complete_word_point): New.
6502 * completer.h (advance_to_filename_complete_word_point): New
6503 declaration.
6504
7d8062de
PA
65052019-06-13 Pedro Alves <palves@redhat.com>
6506
6507 * compile/compile.c: Include "cli/cli-option.h".
6508 (compile_print_value): Scope data pointer is now a
6509 value_print_options pointer; adjust.
6510 (compile_print_command): Process options. Scope data pointer is
6511 now a value_print_options pointer; adjust.
6512 (_initialize_compile): Update "compile print"'s help to include
6513 supported options. Install a completer for "compile print".
6514 * cp-valprint.c (show_vtblprint, show_objectprint)
6515 (show_static_field_print): Delete.
6516 (_initialize_cp_valprint): Don't install "set print
6517 static-members", "set print vtbl", "set print object" here.
6518 * printcmd.c: Include "cli/cli-option.h" and
6519 "common/gdb_optional.h".
6520 (print_command_parse_format): Rework to fill in a
6521 value_print_options instead of a format_data.
6522 (print_value): Change parameter type from format_data pointer to
6523 value_print_options reference. Adjust.
6524 (print_command_1): Process options. Adjust to pass down a
6525 value_print_options.
6526 (print_command_completer): New.
6527 (_initialize_printcmd): Install print_command_completer as
6528 handle_brkchars completer for the "print" command. Update
6529 "print"'s help to include supported options.
6530 * valprint.c: Include "cli/cli-option.h".
6531 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6532 here from cp-valprint.c.
6533 (boolean_option_def, uinteger_option_def)
6534 (value_print_option_defs, make_value_print_options_def_group):
6535 New. Use gdb::option::add_setshow_cmds_for_options to install
6536 "set print elements", "set print null-stop", "set print repeats",
6537 "set print pretty", "set print union", "set print array", "set
6538 print address", "set print symbol", "set print array-indexes".
6539 * valprint.h: Include <string> and "cli/cli-option.h".
6540 (make_value_print_options_def_group): Declare.
6541 (print_value): Change parameter type from format_data pointer to
6542 value_print_options reference.
6543 (print_command_completer): Declare.
6544
9d0faba9
PA
65452019-06-13 Pedro Alves <palves@redhat.com>
6546
6547 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6548 (COMMON_SFILES): Add maint-test-settings.c.
6549 * cli/cli-decode.c (boolean_enums): New global, factored out from
6550 ...
6551 (add_setshow_boolean_cmd): ... here.
6552 * cli/cli-decode.h (boolean_enums): Declare.
6553 * cli/cli-option.c: New file.
6554 * cli/cli-option.h: New file.
6555 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6556 factored out from ...
6557 (parse_cli_boolean_value(const char *)): ... this.
6558 (is_unlimited_literal): Change parameter type to pointer to
6559 pointer. Adjust and advance ARG pointer.
6560 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6561 (parse_cli_var_enum): New, factored out from ...
6562 (do_set_command): ... this. Adjust.
6563 * cli/cli-setshow.h (parse_cli_boolean_value)
6564 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6565 (parse_cli_var_enum): Declare.
6566 * cli/cli-utils.c: Include "cli/cli-option.h".
6567 (get_ulongest): New.
6568 * cli/cli-utils.h (get_ulongest): Declare.
6569 (check_for_argument): New overloads.
6570 * maint-test-options.c: New file.
6571
2c722807
PA
65722019-06-13 Pedro Alves <palves@redhat.com>
6573
6574 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6575 parse a range if "-" is at the end of the string.
6576
dee7b4c8
PA
65772019-06-13 Pedro Alves <palves@redhat.com>
6578
6579 * cli/cli-setshow.c (parse_auto_binary_operation)
6580 (parse_cli_boolean_value): Don't allow "o".
6581
dca0f6c0
PA
65822019-06-13 Pedro Alves <palves@redhat.com>
6583
6584 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6585 * NEWS: Mention maint test-settings KIND.
6586 * maint-test-settings.c: New file.
6587
597bf39d
PA
65882019-06-13 Pedro Alves <palves@redhat.com>
6589
6590 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6591 completer.
6592 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6593 "set" completers.
6594
48c410fb
PA
65952019-06-13 Pedro Alves <palves@redhat.com>
6596
6597 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6598 after item.
6599
93bcb043
PA
66002019-06-13 Pedro Alves <palves@redhat.com>
6601
6602 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6603
cbba3ecd
PA
66042019-06-13 Pedro Alves <palves@redhat.com>
6605
6606 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6607 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6608 call.
6609 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6610 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6611 calls.
6612 (check_for_argument): Skip spaces after argument.
6613
b9a3f842
PA
66142019-06-13 Pedro Alves <palves@redhat.com>
6615
6616 * thread.c (thread_apply_command): Adjust TID parsing.
6617 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6618 detected before end of string.
6619 (tid_is_in_list): Error out if LIST is invalid.
6620
3844e605
PA
66212019-06-13 Pedro Alves <palves@redhat.com>
6622
6623 * completer.c (complete_line_internal_1): Rewind completion word
6624 point.
6625 (completion_tracker::advance_custom_word_point_by): Change
6626 parameter type to int.
6627 * completer.h (completion_tracker::advance_custom_word_point_by):
6628 Likewise.
6629
00b56dbe
PA
66302019-06-13 Pedro Alves <palves@redhat.com>
6631
6632 * completer.c (advance_to_completion_word): Handle delimiters.
6633
d106773e
PA
66342019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6635
6636 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6637
08f10e02
TT
66382019-06-11 Tom Tromey <tom@tromey.com>
6639
6640 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6641 (xmalloc_failed): Move to alloc.c.
6642 * alloc.c: New file.
6643 * Makefile.in (COMMON_SFILES): Add alloc.c.
6644
1c7fe951
TT
66452019-06-11 Tom Tromey <tom@tromey.com>
6646
6647 * nat/linux-waitpid.c: Don't include server.h.
6648 (linux_debug): Remove.
6649 (my_waitpid): Update.
6650
89549d7f
TT
66512019-06-11 Tom Tromey <tromey@adacore.com>
6652
6653 * infcall.c (_initialize_infcall): Remove trailing newline from
6654 help.
6655 * user-regs.c (_initialize_user_regs): Remove trailing newline
6656 from help.
6657 * typeprint.c (_initialize_typeprint): Remove trailing newline
6658 from help.
6659 * reverse.c (_initialize_reverse): Remove trailing newlines from
6660 help.
6661 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6662 from help.
6663 * language.c (add_set_language_command): Remove trailing newline
6664 from help.
6665 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6666 help.
6667 * disasm.c (_initialize_disasm): Remove trailing newline from
6668 help.
6669 * top.c (init_main): Remove trailing newline from help.
6670 * interps.c (_initialize_interpreter): Remove trailing newline
6671 from help.
6672 * btrace.c (_initialize_btrace): Remove trailing newlines from
6673 help.
6674 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6675 from help.
6676 * python/python.c (_initialize_python): Remove trailing newline
6677 from help.
6678 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6679 help.
6680 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6681 from help. Reformat some text.
6682 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6683 from help.
6684 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6685 newline from help.
6686
86108c13
TT
66872019-06-11 Tom Tromey <tromey@adacore.com>
6688
6689 * darwin-nat.c (darwin_decode_exception_message)
6690 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6691
a7067863
AB
66922019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * valops.c (value_slice): Check for not allocated or not
6695 associated values.
6696
9ab08412
TV
66972019-06-10 Tom de Vries <tdevries@suse.de>
6698
6699 PR gdb/24618
6700 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6701 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6702 invalid.
6703
f19e22e9
TV
67042019-06-10 Tom de Vries <tdevries@suse.de>
6705
6706 PR gdb/24611
6707 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6708 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6709
e99f9db0
TV
67102019-06-10 Tom de Vries <tdevries@suse.de>
6711
6712 PR symtab/24545
6713 * symtab.c (struct demangled_name_entry): Add language field.
6714 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6715 static minimal symbol". Set and use language field.
6716
9bf7038b
TT
67172019-06-10 Tom Tromey <tromey@adacore.com>
6718
6719 * ada-lang.c (_initialize_ada_language): Update help text.
6720
422186a9
TT
67212019-06-10 Tom Tromey <tromey@adacore.com>
6722
6723 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6724 with a newline.
6725 * guile/guile.c (handle_boot_error): Don't end warning with a
6726 newline.
6727 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6728 warning with a newline.
6729 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6730 newline.
6731 (s12z_frame_cache): Likewise.
6732 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6733 a newline.
6734 * solib-svr4.c (disable_probes_interface): Don't end warning with
6735 a newline.
6736 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6737 newline.
6738 * python/python.c (do_finish_initialization): Don't end warning
6739 with a newline.
6740
25ce02ee
TT
67412019-06-10 Tom Tromey <tom@tromey.com>
6742
6743 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6744 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6745 gdbpy_enter.
6746
caa429d8
TT
67472019-06-10 Tom Tromey <tromey@adacore.com>
6748
6749 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6750 data.
6751 (elf_new_init): Don't call stabsread_new_init.
6752 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6753 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6754 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6755
81873cc8
TV
67562019-06-10 Tom de Vries <tdevries@suse.de>
6757
6758 PR symtab/16264
6759 PR symtab/24517
6760 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6761
4fa0265e
РИ
67622019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6763
6764 * source.c (find_and_open_source): Also rewrite relative file
6765 names.
6766
1a3da2cd
AB
67672019-04-26 Amos Bird <amosbird@gmail.com>
6768
6769 * annotate.c (annotate_thread_exited): Add "thread-exited"
6770 annotation.
6771
3847a7bf
TT
67722019-06-06 Tom Tromey <tromey@adacore.com>
6773
6774 * maint.h (class scoped_command_stats): Use
6775 DISABLE_COPY_AND_ASSIGN.
6776 <print_time>: New method.
6777 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6778 print_time.
6779 (scoped_command_stats::print_time): New method.
6780
312617a3
AB
67812019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6784 instructions of lengths 6 or 8 bytes.
6785
b02f78f9
PA
67862019-06-04 Pedro Alves <palves@redhat.com>
6787
6788 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6789
6790 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6791 * breakpoint.c (condition_completer): Likewise.
6792 * cli/cli-dump.c (scan_expression): Likewise.
6793 * common/filestuff.c (mkdir_recursive): Likewise.
6794 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6795 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6796 (gdb_abspath): Likewise.
6797 * compile/compile-cplus-types.c
6798 (compile_cplus_instance::decl_name): Likewise.
6799 * completer.c (complete_explicit_location):
6800 (signal_completer, reg_or_group_completer_1): Likewise.
6801 * cp-support.c (cp_remove_params_if_any): Likewise.
6802 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6803 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6804 * infcmd.c (strip_bg_char): Likewise.
6805 * linespec.c (copy_token_string): Likewise.
6806 * mi/mi-main.c (output_cores): Likewise.
6807 * psymtab.c (psymtab_search_name):
6808 * symfile.c (test_set_ext_lang_command): Likewise.
6809 * target.c (target_fileio_read_stralloc): Likewise.
6810 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6811 * value.c (complete_internalvar): Likewise.
6812
e1f2e1a2
CB
68132019-06-04 Christian Biesinger <cbiesinger@google.com>
6814
6815 Add objfile property to gdb.Type.
d3238f7d
PA
6816 * NEWS: Mention Python API addition.
6817 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6818
e664d728
PW
68192019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6820
6821 * NEWS: Mention the new set|show style [title|highlight].
6822 Mention changes to "show style", "help" and "apropos".
6823
66d8c862
PW
68242019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6825
6826 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6827 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6828 instead of print_help_for_command.
6829 (print_doc_of_command): New function.
6830 (help_list): Add 'apropos -v word' suggestion.
6831 (print_help_for_command): Style the command name using title style.
6832 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6833 (_initialize_cli_cmds): Describe -v in apropos_command help.
6834
9303eb2f
PW
68352019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836
6837 * cli/cli-style.h (cli_style_option): Add name in constructor,
6838 add m_name class member, add constructor with intensity,
6839 add name class function.
6840 (cli_style_option::add_setshow_commands): Remove name argument.
6841 (highlight_style, title_style): New styles.
6842 * cli/cli-style.c (do_show): New function that shows a style
6843 characteristic styling the style name with itself.
6844 (set_style_name): New function.
6845 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6846 Update all callers according to the changes in cli/cli-style.h.
6847 * utils.h (fputs_highlighted): New function.
6848 * utils.c (fputs_highlighted): Likewise.
6849
e2c52041
PW
68502019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6851
6852 * NEWS: Mention new pipe command and new convenience variables.
6853
947d3946
PW
68542019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6855
6856 * cli/cli-cmds.c (pipe_command): New function.
6857 (_initialize_cli_cmds): Call add_com for pipe_command.
6858 Define | as an alias for pipe.
6859 (exit_status_set_internal_vars): New function.
6860 (shell_escape): Call exit_status_set_internal_vars.
6861 cli/cli-decode.c (find_command_name_length): Recognize | as
6862 a single character command.
6863
b8fd0918
PW
68642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6865
6866 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6867 top.c (execute_command_to_ui_file): New function, mostly a copy
6868 of execute_command_to_string.
6869 (execute_command_to_string): Implement by calling
6870 execute_command_to_ui_file.
6871
68bb5386
PW
68722019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6873
6874 * top.h (saved_command_line): Remove declaration.
6875 * top.c (previous_saved_command_line, previous_repeat_arguments):
6876 New variables.
6877 (saved_command_line): Make static, define together with other
6878 'repeat variables'.
6879 (dont_repeat): Clear repeat_arguments.
6880 (repeat_previous, get_saved_command_line, save_command_line):
6881 New functions.
6882 (gdb_init): Initialize saved_command_line
6883 and previous_saved_command_line.
6884 * main.c (captured_main_1): Remove saved_command_line initialization.
6885 * event-top.c (handle_line_of_input): Update to use
6886 the new 'repeat' related functions instead of direct access to
6887 saved_command_line.
6888 * command.h (repeat_previous, get_saved_command_line,
6889 save_command_line): New declarations.
6890 (dont_repeat): Add comment.
6891
bfcdb852
TT
68922019-05-30 Tom Tromey <tromey@adacore.com>
6893
6894 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6895 Fix comment.
6896 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6897
0ef209f2
JV
68982019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6899
6900 PR cli/24587
6901 * completer.c (complete): Initialize variable word.
6902
955b06fa
SDJ
69032019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6904
6905 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6906 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6907 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6908 'body' is NULL to the outter 'if', protecting the '!is_define'
6909 situation as well.
6910
fa9c3fa0
TT
69112019-05-29 Tom Tromey <tromey@adacore.com>
6912
6913 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6914 (dwarf_unknown): New function.
6915 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6916 (dwarf_type_encoding_name): Use dwarf_unknown.
6917
4330d61d
TT
69182019-05-29 Tom Tromey <tromey@adacore.com>
6919
6920 PR c++/20020:
6921 * cp-valprint.c (cp_print_value_fields): Call
6922 cp_print_static_field inside "try".
6923
33a6bc35
TT
69242019-05-29 Tom Tromey <tromey@adacore.com>
6925
6926 * inflow.c (struct terminal_info): Add default operator=.
6927 * configure: Rebuild.
6928 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6929 -Wdeprecated-copy-dtor, -Wredundant-move.
6930
000439d5
TT
69312019-05-29 Tom Tromey <tromey@adacore.com>
6932
6933 * NEWS: Add entry.
6934 * infcmd.c (print_return_value_1): Handle finish_print
6935 option.
6936 (show_print_finish): New function.
6937 (_initialize_infcmd): Add "set/show print finish" commands.
6938 * valprint.c (user_print_options): Initialize new member.
6939 * valprint.h (struct value_print_options) <finish_print>: New
6940 member.
6941
c0e70c62
TT
69422019-05-28 Tom Tromey <tromey@adacore.com>
6943
6944 * ada-lang.c (ada_remove_Xbn_suffix)
6945 (find_old_style_renaming_symbol)
6946 (parse_old_style_renaming): Remove.
6947 (ada_find_renaming_symbol): Don't call
6948 find_old_style_renaming_symbol.
6949 (ada_is_renaming_symbol): Rename from
6950 ada_find_renaming_symbol. Remove "block" parameter. Return
6951 bool. Now static.
6952 (ada_read_var_value): Update and simplify.
6953 * ada-exp.y (write_var_or_type): Remove old code.
6954
766f8836
AH
69552019-05-28 Alan Hayward <alan.hayward@arm.com>
6956
68255adc 6957 PR gdb/25010
766f8836
AH
6958 * event-top.c: Remove include comment.
6959 * inflow.c (class scoped_ignore_sigttou): Move from here...
6960 * inflow.h (class scoped_ignore_sigttou): ...to here.
6961 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6962 * top.c: Remove include comment.
6963
eb41253a
TT
69642019-05-27 Tom Tromey <tom@tromey.com>
6965
6966 * NEWS: Fix typo.
6967
4ca51187
TT
69682019-05-22 Tom Tromey <tromey@adacore.com>
6969
6970 * target.c (target_follow_exec): Constify parameter.
6971 * target-delegates.c: Rebuild.
6972 * remote.c (remote_target::follow_exec): Constify parameter.
6973 * infrun.c (follow_exec): Constify parameter.
6974 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6975 (target_follow_exec): Likewise.
6976
8fca4da0
AH
69772019-05-22 Alan Hayward <alan.hayward@arm.com>
6978
6979 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6980 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6981
b7060614
AH
69822019-05-22 Alan Hayward <alan.hayward@arm.com>
6983
6984 * NEWS: Add debugredirect and testsuite sections.
6985
0a5954bd
SC
69862019-05-22 Simon Cook <simon.cook@embecosm.com>
6987
6988 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6989 target descriptions using exclusively floating point register name
6990 aliases.
6991
dc42e902
AB
69922019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 PR gdb/18644:
6995 * f-lang.c (build_fortran_types): Handle the case where
6996 gdbarch_floatformat_for_type returns a nullptr.
6997
fb7806c7
TV
69982019-05-21 Tom de Vries <tdevries@suse.de>
6999
7000 PR cli/24587
7001 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7002
34d11c68
AB
70032019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 PR gdb/18644:
7006 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7007 16-byte floats.
7008 * i386-tdep.c (i386_floatformat_for_type): Use
7009 floatformats_ia64_quad for the 16-byte floating point component
7010 within a fortran 32-byte complex number.
7011
122cf0f2
AB
70122019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7015 delete default constructor.
7016 (find_partial_die): Update to return const struct.
7017 (partial_die_parent_scope): Move variable declaration into scope
7018 of its use and change its type to auto.
7019 (guess_partial_die_structure_name): Likewise.
7020 (partial_die_info::fixup): Likewise.
7021
33d0e35a
TT
70222019-05-17 Tom Tromey <tromey@adacore.com>
7023
7024 * source.c (find_and_open_source): Remove cast.
7025
a45575b0
TT
70262019-05-17 Tom Tromey <tromey@adacore.com>
7027
7028 * annotate.c (annotate_source): Make "filename" const.
7029 * annotate.h (annotate_source): Use const.
7030
81f47ac2
AH
70312019-05-17 Alan Hayward <alan.hayward@arm.com>
7032
7033 * disasm.c (set_disassembler_options): Send errors to stderr.
7034
ca1285d1
AH
70352019-05-17 Alan Hayward <alan.hayward@arm.com>
7036
7037 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7038 (cli_interp_base::set_logging): Check debug_redirect.
7039 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7040 * cli/cli-logging.c (debug_redirect): Add static variable.
7041 (pop_output_files): Add default param.
7042 (handle_redirections): Print debug setting.
7043 (show_logging_command): Likewise.
7044 (_initialize_cli_logging): Add debugredirect command.
7045 * interps.c (current_interp_set_logging): Add debug_redirect
7046 parameter.
7047 * interps.h (set_logging): Add debug_redirect parameter.
7048 (current_interp_set_logging): Likewise.
7049 * mi/mi-common.h: Likewise.
7050 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7051
70522019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7053 Tom Tromey <tromey@adacore.com>
7054
7055 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7056 directly.
7057 * cli/cli-interp.h (make_logging_output): Remove declaration.
7058 * cli/cli-logging.c (make_logging_output): Remove function.
7059 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7060 directly.
7061 * ui-file.c (tee_file::tee_file): Remove bools.
7062 (tee_file::~tee_file): Remove deletes.
7063 * ui-file.h (tee_file): Remove bools.
7064
26648588
JV
70652019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7066
7067 * mi/mi-cmds.h (mi_cmd_complete): New function.
7068 * mi/mi-main.c (mi_cmd_complete): Likewise.
7069 * mi/mi-cmds.c: Define new MI command -complete.
7070 * NEWS: Mention new -complete command.
7071
6e035501
JV
70722019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7073
7074 * completer.h (complete): New function.
7075 * completer.c (complete): Likewise.
7076 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7077 function defined in completer.h.
7078
7d0e2ece
JV
70792019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7080
e79be6e5 7081 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7082
fb816e8b
TV
70832019-05-17 Tom de Vries <tdevries@suse.de>
7084
7085 PR gdb/24094
7086 * dwarf2read.c (struct cu_partial_die_info): New struct.
7087 (find_partial_die): Return cu_partial_die_info.
7088 (partial_die_parent_scope, guess_partial_die_structure_name)
7089 (partial_die_info::fixup): Handle new return type of find_partial_die.
7090
677052f2
SDJ
70912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7092
a1726c38 7093 PR breakpoints/24541
677052f2
SDJ
7094 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7095 "std::string", simplifying the algorithm.
7096
f3da9116
SDJ
70972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7098
7099 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7100 (stap_static_probe_ops::get_probes): Likewise.
7101
f1bb75ab
SDJ
71022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7103
7104 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7105 '-')" and "else if".
7106 (stap_parse_single_operand): Join checks for
7107 "gdbarch_stap_parse_special_token_p" and
7108 "gdbarch_stap_parse_special_token" in the same "if" statement.
7109 Invert check when verifying for operation on register
7110 displacement.
7111
3ca58cde
SDJ
71122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7113
7114 * stap-probe.c (stap_get_opcode): Update comment.
7115 (stap_get_expected_argument_type): Likewise.
7116 (handle_stap_probe): Likewise.
7117
af2d9bee
SDJ
71182019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7119
7120 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7121 return type to 'bool'. Adjust comment. Use 'bool' when
7122 appropriate.
7123 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7124 * stap-probe.c (stap_parse_argument_1): Likewise.
7125 (stap_is_operator): Likewise.
7126 (stap_is_generic_prefix): Likewise.
7127 (stap_is_register_prefix): Likewise.
7128 (stap_is_register_indirection_prefix): Likewise.
7129 (stap_is_integer_prefix): Likewise.
7130 (stap_generic_check_suffix): Likewise.
7131 (stap_check_integer_suffix): Likewise.
7132 (stap_check_register_suffix): Likewise.
7133 (stap_check_register_indirection_suffix): Likewise.
7134 (stap_parse_register_operand): Likewise.
7135 (stap_parse_single_operand): Likewise.
7136 (stap_parse_argument_1): Likewise.
7137 (stap_probe::get_argument_count): Likewise.
7138 (stap_is_operator): Likewise.
7139
61c9c421
TT
71402019-05-16 Tom Tromey <tromey@adacore.com>
7141
7142 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7143 keyword to foreach.
7144
9ddc1af1
SM
71452019-05-15 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * linux-thread-db.c (try_thread_db_load_1): Change return type
7148 to bool.
7149 (try_thread_db_load): Likewise.
7150 (try_thread_db_load_from_pdir_1): Likewise.
7151 (try_thread_db_load_from_pdir): Likewise.
7152 (try_thread_db_load_from_sdir): Likewise.
7153 (try_thread_db_load_from_dir): Likewise.
7154 (thread_db_load_search): Likewise.
7155 (has_libpthread): Likewise.
7156 (thread_db_load): Likewise.
7157
7bede828
SDJ
71582019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7159
7160 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7161 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7162 NULL, and complain/return if that's the case.
7163
c5358db4
JD
71642019-05-15 John Darrington <john@darrington.wattle.id.au>
7165
7166 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7167 (advance, posn, abstract_read_memory): New functions.
7168 [struct mem_read_abstraction]: New struct.
7169 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7170
c408a94f
TT
71712019-05-14 Tom Tromey <tromey@adacore.com>
7172
7173 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7174 value is not lval_memory.
7175
e7bd7fba
TT
71762019-05-14 Tom Tromey <tromey@adacore.com>
7177
7178 * solib.c (info_sharedlibrary_command): Style the file name.
7179
a6d0f249
AH
71802019-05-14 Alan Hayward <alan.hayward@arm.com>
7181
7182 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7183 (aarch64_vnv_type): Likewise.
7184 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7185 * common/tdesc.c: Likewise.
7186 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7187 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7188 * features/aarch64-fpu.xml: Add ieee half view.
7189 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7190 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7191 * gdbtypes.h (struct builtin_type): Likewise.
7192 (struct objfile_type): Likewise.
7193
66b8bb74
SM
71942019-05-12 Paul Naert <paul.naert@polymtl.ca>
7195
7196 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7197 typo.
7198 * location.h (string_to_event_location): Likewise.
7199
21c219fd
JB
72002019-05-11 Joel Brobecker <brobecker@adacore.com>
7201
7202 GDB 8.3 released.
7203
13674803
SM
72042019-05-10 Simon Marchi <simon.marchi@efficios.com>
7205
7206 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7207 New variable declaration.
7208 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7209 New variable.
7210 (print_one_breakpoint): Use ui_out::test_flags and new global
7211 variable to compute use_fixed_output.
7212 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7213 Remove.
7214 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7215 (mi_multi_location_breakpoint_output_fixed): Remove.
7216 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7217 new variable.
7218 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7219 fix_multi_location_breakpoint_output flag if version >= 3.
7220 * ui-out.h (enum ui_out_flag)
7221 <fix_multi_location_breakpoint_output>: New enumerator.
7222
a9eac7f9
SM
72232019-05-10 Simon Marchi <simon.marchi@efficios.com>
7224
7225 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7226
71bed2db
TT
72272019-05-10 Tom Tromey <tromey@adacore.com>
7228
7229 * ada-lang.c (catch_ada_completer): New function.
7230 (_initialize_ada_language): Use it.
7231
24c54127
TT
72322019-05-10 Tom Tromey <tromey@adacore.com>
7233
7234 * thread.c (print_thread_info): Make "requested_threads" const.
7235 * gdbthread.h (print_thread_info): Make "requested_threads"
7236 const.
7237 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7238 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7239
7a102139
TT
72402019-05-08 Tom Tromey <tom@tromey.com>
7241
7242 * gdbtypes.c (objfile_type_data): Change type.
7243 (objfile_type, _initialize_gdbtypes): Update.
7244
924d79e2
TT
72452019-05-08 Tom Tromey <tom@tromey.com>
7246
7247 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7248 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7249 (_initialize_dwarf2_frame): Update.
7250
4c58e337
TT
72512019-05-08 Tom Tromey <tom@tromey.com>
7252
7253 * objc-lang.c (objc_objfile_data): Change type.
7254 (find_methods): Update.
7255 (_initialize_objc_lang): Remove.
7256
d772d2ab
TT
72572019-05-08 Tom Tromey <tom@tromey.com>
7258
7259 * stabsread.c (rs6000_builtin_type_data): Change type.
7260 (rs6000_builtin_type, _initialize_stabsread): Update.
7261
d11d83f4
TT
72622019-05-08 Tom Tromey <tom@tromey.com>
7263
7264 * mips-tdep.c (mips_pdr_data): Remove.
7265 (_initialize_mips_tdep): Update.
7266
9a73f0ad
TT
72672019-05-08 Tom Tromey <tom@tromey.com>
7268
7269 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7270 (hppa_init_objfile_priv_data, read_unwind_info)
7271 (find_unwind_entry, _initialize_hppa_tdep): Update.
7272
8127a2fa
TT
72732019-05-08 Tom Tromey <tom@tromey.com>
7274
7275 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7276 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7277 on obstack.
7278 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7279
91d3055d
TT
72802019-05-08 Tom Tromey <tom@tromey.com>
7281
7282 * mdebugread.c (basic_type_data): Change type.
7283 (basic_type, _initialize_mdebugread): Update.
7284
31930bd3
TT
72852019-05-08 Tom Tromey <tom@tromey.com>
7286
7287 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7288
bdb3ed9e
TT
72892019-05-08 Tom Tromey <tom@tromey.com>
7290
7291 * nto-tdep.c (nto_inferior_data_reg): Change type.
7292 (nto_inferior_data): Update.
7293 (nto_inferior_data_cleanup, nto_new_inferior_data)
7294 (_initialize_nto_tdep): Remove.
7295 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7296
f37b313d
TT
72972019-05-08 Tom Tromey <tom@tromey.com>
7298
7299 * ada-lang.c (struct ada_inferior_data): Add initializers.
7300 (ada_inferior_data): Change type.
7301 (ada_inferior_data_cleanup): Remove.
7302 (get_ada_inferior_data, ada_inferior_exit)
7303 (struct ada_pspace_data): Add initializers, destructor.
7304 (ada_pspace_data_handle): Change type.
7305 (get_ada_pspace_data): Update.
7306 (ada_pspace_data_cleanup): Remove.
7307
24699405
TT
73082019-05-08 Tom Tromey <tom@tromey.com>
7309
7310 * coffread.c (struct coff_symfile_info): Add initializers.
7311 (coff_objfile_data_key): Move lower. Change type.
7312 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7313 Update.
7314 (coff_free_info): Remove.
7315
d4e05d2f
TT
73162019-05-08 Tom Tromey <tom@tromey.com>
7317
7318 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7319 (fbsd_pspace_data_handle): Move lower. Change type.
7320 (get_fbsd_pspace_data): Update.
7321 (fbsd_pspace_data_cleanup): Remove.
7322 (_initialize_fbsd_tdep): Update.
7323
14ef6690
TT
73242019-05-08 Tom Tromey <tom@tromey.com>
7325
7326 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7327 (get_ada_tasks_pspace_data): Update.
7328 (ada_tasks_pspace_data_cleanup): Remove.
7329 (_initialize_tasks): Update.
7330 (ada_tasks_inferior_data_handle): Change type.
7331 (get_ada_tasks_inferior_data): Update.
7332 (ada_tasks_inferior_data_cleanup): Remove.
7333 (struct ada_tasks_pspace_data): Add initializers.
7334
814cf43a
TT
73352019-05-08 Tom Tromey <tom@tromey.com>
7336
7337 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7338 * symfile-debug.c (debug_sym_get_probes): Change type.
7339 * stap-probe.c (handle_stap_probe):
7340 (stap_static_probe_ops::get_probes): Change type.
7341 * probe.h (class static_probe_ops) <get_probes>: Change type.
7342 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7343 (parse_probes_in_pspace): Update.
7344 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7345 Update.
7346 (any_static_probe_ops::get_probes): Change type.
7347 * elfread.c (elfread_data): New typedef.
7348 (probe_key): Change type.
7349 (elf_get_probes): Likewise. Update.
7350 (probe_key_free): Remove.
7351 (_initialize_elfread): Update.
7352 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7353 Change type.
7354 (dtrace_process_dof_probe, dtrace_process_dof)
7355 (dtrace_static_probe_ops::get_probe): Change type.
7356
02dc647e
TT
73572019-05-08 Tom Tromey <tom@tromey.com>
7358
7359 * xcoffread.c (struct xcoff_symfile_info): Rename from
7360 coff_symfile_info. Add initializers.
7361 (xcoff_objfile_data_key): Move lower. Change type.
7362 (XCOFF_DATA): Rewrite.
7363 (xcoff_free_info): Remove.
7364 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7365 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7366 (xcoff_initial_scan): Update.
7367
09232438
TT
73682019-05-08 Tom Tromey <tom@tromey.com>
7369
7370 * solib-svr4.c (struct svr4_info): Add initializers and
7371 destructor.
7372 <probes_table>: Now an htab_up.
7373 (solib_svr4_pspace_data): Change type.
7374 (free_probes_table): Simplify.
7375 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7376 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7377 (probes_table_remove_objfile_probes, register_solib_event_probe)
7378 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7379 (_initialize_svr4_solib): Update.
7380
7b4a314f
TT
73812019-05-08 Tom Tromey <tom@tromey.com>
7382
7383 * remote.c (remote_pspace_data): Change type.
7384 (remote_pspace_data_cleanup): Remove.
7385 (get_remote_exec_file, set_pspace_remote_exec_file)
7386 (_initialize_remote): Update.
7387
51d3063a
TT
73882019-05-08 Tom Tromey <tom@tromey.com>
7389
7390 * breakpoint.c (breakpoint_objfile_key): Change type.
7391 (get_breakpoint_objfile_data): Update.
7392 (free_breakpoint_objfile_data): Remove.
7393 (_initialize_breakpoint): Update.
7394
89fb8848
TT
73952019-05-08 Tom Tromey <tom@tromey.com>
7396
7397 * linux-tdep.c (struct linux_info): Add initializers.
7398 (linux_inferior_data): Move. Change type.
7399 (invalidate_linux_cache_inf): Update.
7400 (linux_inferior_data_cleanup): Remove.
7401 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7402
e9b89e2d
TT
74032019-05-08 Tom Tromey <tom@tromey.com>
7404
7405 * auxv.c (auxv_inferior_data): Move. Change type.
7406 (auxv_inferior_data_cleanup): Remove.
7407 (invalidate_auxv_cache_inf): Rewrite.
7408 (get_auxv_inferior_data, _initialize_auxv): Update.
7409
8c42777c
TT
74102019-05-08 Tom Tromey <tom@tromey.com>
7411
7412 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7413 (symfile_debug_objfile_data_key): Change type.
7414 (symfile_debug_installed, debug_qf_has_symbols)
7415 (debug_qf_find_last_source_symtab)
7416 (debug_qf_forget_cached_source_info)
7417 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7418 (debug_qf_print_stats, debug_qf_dump)
7419 (debug_qf_expand_symtabs_for_function)
7420 (debug_qf_expand_all_symtabs)
7421 (debug_qf_expand_symtabs_with_fullname)
7422 (debug_qf_map_matching_symbols)
7423 (debug_qf_expand_symtabs_matching)
7424 (debug_qf_find_pc_sect_compunit_symtab)
7425 (debug_qf_map_symbol_filenames)
7426 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7427 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7428 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7429 (debug_sym_read_linetable, debug_sym_relocate): Update.
7430 (symfile_debug_free_objfile): Remove.
7431 (install_symfile_debug_logging, _initialize_symfile_debug):
7432 Update.
7433
5bfd760d
TT
74342019-05-08 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7437 allocate_on_obstack.
7438 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7439 (get_dwarf2_per_objfile): Update.
7440 (set_dwarf2_per_objfile): Remove.
7441 (dwarf2_has_info, dwarf2_get_section_info): Update.
7442 (dwarf2_free_objfile): Remove.
7443 (_initialize_dwarf2_read): Update.
7444
e85e19b4
TT
74452019-05-08 Tom Tromey <tom@tromey.com>
7446
7447 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7448 initializers.
7449 <unsupported_script_warning_printed,
7450 script_not_found_warning_printed>: Now bool.
7451 (auto_load_pspace_data): Change type.
7452 (~auto_load_pspace_info): Rename from
7453 auto_load_pspace_data_cleanup.
7454 (get_auto_load_pspace_data, init_loaded_scripts_info)
7455 (clear_section_scripts, maybe_print_unsupported_script_warning)
7456 (maybe_print_script_not_found_warning, _initialize_auto_load):
7457 Update.
7458
f6aa7436
TT
74592019-05-08 Tom Tromey <tom@tromey.com>
7460
7461 * objfiles.c (objfile_pspace_info): Add destructor and
7462 initializers.
7463 (objfiles_pspace_data): Change type.
7464 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7465 (get_objfile_pspace_data): Update.
7466 (objfiles_bfd_data): Change type.
7467 (get_objfile_bfd_data): Update.
7468 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7469
6ae614f6
TT
74702019-05-08 Tom Tromey <tom@tromey.com>
7471
7472 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7473 Change type.
7474 (get_catch_syscall_inferior_data): Update.
7475 (catch_syscall_inferior_data_cleanup): Remove.
7476 (_initialize_break_catch_syscall): Update.
7477
6509b8eb
TT
74782019-05-08 Tom Tromey <tom@tromey.com>
7479
7480 * inflow.c (struct terminal_info): Add destructor and
7481 initializers.
7482 (inflow_inferior_data): Change type.
7483 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7484 (get_inflow_inferior_data, inflow_inferior_exit)
7485 (swap_terminal_info, _initialize_inflow): Update.
7486
35632941
TT
74872019-05-08 Tom Tromey <tom@tromey.com>
7488
7489 * target-dcache.c (target_dcache_cleanup): Remove.
7490 (target_dcache_aspace_key): Change type.
7491 (target_dcache_init_p, target_dcache_invalidate)
7492 (target_dcache_get, target_dcache_get_or_init)
7493 (_initialize_target_dcache): Update.
7494 * dcache.h (struct dcache_deleter): New.
7495
3017b94d
TT
74962019-05-08 Tom Tromey <tom@tromey.com>
7497
7498 * symtab.c (struct symbol_cache): Add destructor and
7499 initializers.
7500 (symbol_cache_key): Move. Change type.
7501 (make_symbol_cache, free_symbol_cache): Remove.
7502 (get_symbol_cache): Update.
7503 (symbol_cache_cleanup): Remove.
7504 (ALL_PSPACES, symbol_cache_flush)
7505 (maintenance_print_symbol_cache)
7506 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7507 Update.
7508
a32ad8c5
TT
75092019-05-08 Tom Tromey <tom@tromey.com>
7510
7511 * symtab.c (struct main_info): Add destructor and initializers.
7512 (main_progspace_key): Move. Change type.
7513 (get_main_info): Update.
7514 (main_info_cleanup): Remove.
7515 (_initialize_symtab): Update.
7516
5f6e90a0
TT
75172019-05-08 Tom Tromey <tom@tromey.com>
7518
7519 * registry.h (DECLARE_REGISTRY): Define the _key class.
7520
1bd0c6e4
AB
75212019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7522
7523 * NEWS: Merge two 'New commands' sections.
7524
2228ef77
XR
75252019-05-08 Joel Brobecker <brobecker@adacore.com>
7526
7527 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7528 parameter and use Ada language definition instead.
7529 (ada_val_print_ptr): Remove unused language parameter.
7530 (ada_val_print_num): Remove language parameter and use Ada language
7531 definition instead.
7532 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7533 parameter.
7534 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7535 parameter and use Ada language definition instead.
7536 (ada_val_print_1): Update all ada_val_print_xxx calls.
7537 Remove language parameter.
7538 (ada_val_print): Update ada_val_print_1 call.
7539
60fcc1c3
TT
75402019-05-08 Tom Tromey <tromey@adacore.com>
7541
7542 * remote.c (remote_hw_watchpoint_limit)
7543 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7544 Now static.
7545
ed2b7c17
TT
75462019-05-08 Tom Tromey <tromey@adacore.com>
7547
7548 * maint.c (_initialize_maint_cmds): Move initialization code to
7549 remote.c.
7550 (watchdog, show_watchdog): Move to remote.c.
7551 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7552 "watchdog" static.
7553 (_initialize_remote): Move initialization code from maint.c.
7554 * defs.h (watchdog): Don't declare.
7555
b0be6c91
TT
75562019-05-08 Tom Tromey <tromey@adacore.com>
7557
7558 * tui/tui-interp.c: Include main.h.
7559 * interps.c: Include main.h.
7560 * main.h (interpreter_p): Declare.
7561 * defs.h (interpreter_p): Don't declare.
7562
587ee17b
TT
75632019-05-08 Tom Tromey <tromey@adacore.com>
7564
7565 * dwarf2loc.c: Include dwarf2read.h.
7566 * defs.h (read_unsigned_leb128): Don't declare.
7567 * dwarf2read.h (read_unsigned_leb128): Declare.
7568
ca1df239
TT
75692019-05-08 Tom Tromey <tromey@adacore.com>
7570
7571 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7572 method.
7573
99f20f08
TT
75742019-05-08 Tom Tromey <tromey@adacore.com>
7575
7576 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7577 when no wrap column is set.
7578
80e55b13
TT
75792019-05-08 Tom Tromey <tromey@adacore.com>
7580
7581 * c-lang.c (c_get_string): Handle non-C-style arrays.
7582
9d3421af
TT
75832019-05-08 Tom Tromey <tromey@adacore.com>
7584
7585 * typeprint.c (print_offset_data::update): Print the bit offset,
7586 not the number of bits remaining.
7587
844333e2
TT
75882019-05-08 Tom Tromey <tromey@adacore.com>
7589
7590 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7591 padding at end of comment.
7592
988915ee
TT
75932019-05-08 Tom Tromey <tromey@adacore.com>
7594
7595 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7596 Compare main types.
7597
26bfd823
TT
75982019-05-06 Tom Tromey <tom@tromey.com>
7599
7600 * common/scoped_mmap.c: Include common-defs.h.
7601 * common/scoped_mmap.h: Don't include config.h.
7602
89055eaa
TT
76032019-05-04 Tom Tromey <tom@tromey.com>
7604
7605 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7606 (struct aarch64_call_info): Add initializers.
7607 <si>: Now a std::vector.
7608 (pass_on_stack, aarch64_push_dummy_call): Update.
7609
5da01df5
TT
76102019-05-04 Simon Marchi <simon.marchi@efficios.com>
7611 Tom Tromey <tom@tromey.com>
7612
7613 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7614 (ppc_threads): Now a std::vector. Now static.
7615 (hwdebug_find_thread_points_by_tid)
7616 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7617 Update.
7618
fbdf05a1
TT
76192019-05-04 Tom Tromey <tom@tromey.com>
7620
7621 * arc-tdep.c (arc_tdesc_init): Return bool.
7622
06d16ec9
TT
76232019-05-04 Tom Tromey <tom@tromey.com>
7624
7625 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7626 Use gdb_assert_not_reached.
7627
9c056022
TT
76282019-05-04 Tom Tromey <tom@tromey.com>
7629
7630 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7631 "false".
7632
fa9c2a59
TT
76332019-05-04 Tom Tromey <tom@tromey.com>
7634
7635 * arc-tdep.c (arc_tdesc_init): Use bool.
7636
e2eb806a
TT
76372019-05-04 Tom Tromey <tom@tromey.com>
7638
7639 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7640
6fe87677
TT
76412019-05-04 Tom Tromey <tom@tromey.com>
7642
7643 * cli/cli-cmds.c (valid_command_p): Return bool.
7644
7f008c9e
TT
76452019-05-04 Tom Tromey <tom@tromey.com>
7646
7647 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7648 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7649
b6484282
RT
76502019-05-04 Raul Tambre <raul@tambre.ee>
7651
7652 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7653 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7654 operator for comparison.
7655
af97b416
TT
76562019-05-04 Tom Tromey <tom@tromey.com>
7657
7658 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7659 (lookup_partial_symbol, print_partial_symbols)
7660 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7661 (psymbol_compare): Update.
7662 (add_psymbol_to_bcache): Clear the entire psymbol.
7663 (maintenance_check_psymtabs): Update.
7664 * psympriv.h (struct partial_symbol): Don't derive from
7665 general_symbol_info.
7666 <obj_section, unrelocated_address, address,
7667 set_unrelocated_address>: Update.
7668 <ginfo>: New member.
7669 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7670 (debug_names::write_psymbols): Update.
7671
9d6d4be8
TV
76722019-05-04 Tom de Vries <tdevries@suse.de>
7673
7674 * contrib/cc-with-tweaks.sh: Support -n arg.
7675
66452beb
PW
76762019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7677
7678 * corelow.c (core_target::detach): Ensure frame cache and
7679 register caches are cleared.
7680 inferior.c (exit_inferior_1): Likewise.
7681
bde09ab7
TT
76822019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7683 Tom Tromey <tom@tromey.com>
7684
7685 * dictionary.c (collate_pending_symbols_by_language): Remove
7686 "struct" from foreach.
7687 * symtab.c (lookup_global_symbol_from_objfile)
7688 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7689 foreach.
7690 * ser-tcp.c (net_open): Remove "struct" from foreach.
7691 * objfiles.c (objfile_relocate, objfile_rebase)
7692 (objfile_has_symbols): Remove "struct" from foreach.
7693 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7694 from foreach.
7695 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7696 foreach.
7697 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7698 "struct" from foreach.
7699 * ada-lang.c (create_excep_cond_exprs)
7700 (ada_exception_catchpoint_cond_string): Remove "struct" from
7701 foreach.
7702
222a8d25
TT
77032019-05-03 Tom Tromey <tromey@adacore.com>
7704
7705 * ada-exp.y (convert_char_literal): Check suffix of each
7706 enumerator.
7707
fcd60b84
DP
77082019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7709
7710 PR ada/21406:
7711 * ada-exp.y (yywrap): Don't define.
7712 * ada-lex.l (%option): Add noyywrap
7713 (yywrap): Remove.
7714
5f2459c2
EZ
77152019-05-03 Eli Zaretskii <eliz@gnu.org>
7716
353ea2d1
EZ
7717 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7718 _WIN32_WINNT to the XP level, unless already defined to a higher
7719 level.
7720
7721 * unittests/parse-connection-spec-selftests.c:
7722 * ser-tcp.c:
7723 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7724 override.
7725
5f2459c2
EZ
7726 * symfile.c (find_separate_debug_file): Remove colon from the
7727 drive spec of DOS/Windows file names of the target, so that the
7728 file name produced from DEBUGDIR and the target's directory will
7729 be valid on DOS/Windows systems.
7730
80062eb9
AB
77312019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * rust-lang.c (val_print_struct): Handle printing structures
7734 containing strings.
7735
b8c05e85
TT
77362019-05-02 Tom Tromey <tromey@adacore.com>
7737
7738 * valarith.c (_initialize_valarith): Remove.
7739
4504bbde
TT
77402019-05-01 Tom Tromey <tromey@adacore.com>
7741
7742 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7743 bitfields.
7744
d48e62f4
TT
77452019-05-01 Tom Tromey <tromey@adacore.com>
7746
7747 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7748 for big-endian copies.
7749
15f18d14
AT
77502019-04-30 Ali Tamur <tamur@google.com>
7751 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7752 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7753 (read_3_bytes): New function.
7754
ab4ee614
JB
77552019-04-30 Joel Brobecker <brobecker@adacore.com>
7756
7757 * windows-nat.c (main_thread_id): Delete.
7758 (handle_output_debug_string): Replace main_thread_id by
7759 current_event.dwThreadId.
7760 (fake_create_process): Likewise.
7761 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7762 Do not set main_thread_id.
7763 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7764 current_event.dwThreadId.
7765 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7766
8ed5b76e
JB
77672019-04-30 Joel Brobecker <brobecker@adacore.com>
7768
7769 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7770 Use current_event.dwThreadId instead of main_thread_id.
7771
2ff0a947
TT
77722019-04-30 Tom Tromey <tromey@adacore.com>
7773
7774 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7775 (create_excep_cond_exprs): Iterate over program spaces.
7776 (ada_exception_catchpoint_cond_string): Examine all minimal
7777 symbols for exception types.
7778
a776957c
TT
77792019-04-30 Tom Tromey <tromey@adacore.com>
7780
7781 PR c++/24470:
7782 * dwarf2read.c (process_structure_scope): Handle case where type
7783 has template parameters but no symbol was created.
7784
bc68014d
AB
77852019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7786 Chris January <chris.january@arm.com>
7787
7788 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7789 qualifier.
7790 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7791
f1fdc960
AB
77922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * f-typeprint.c (f_print_type): Update rules for printing
7795 whitespace.
7796 (f_type_print_varspec_suffix): Likewise.
7797
bf7a4de1
AB
77982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7799 Chris January <chris.january@arm.com>
7800
7801 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7802 function arguments.
7803
bbe75b9d
AB
78042019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * f-lang.c (build_fortran_types): Change name of void type to
7807 lower case.
7808 * f-typeprint.c (f_type_print_base): Print the name of the void
7809 type, rather than a fixed string.
7810 * f-valprint.c (f_decorations): Use lower case void string.
7811
1db455a7
AB
78122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7813 Chris January <chris.january@arm.com>
7814
7815 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7816 types for Fortran.
7817
b6d03bb2
AB
78182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7819 Chris January <chris.january@arm.com>
7820 David Lecomber <david.lecomber@arm.com>
7821
7822 * f-exp.y (BINOP_INTRINSIC): New token.
7823 (exp): New parser rule handling BINOP_INTRINSIC.
7824 (f77_keywords): Add new builtin procedures.
7825 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7826 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7827 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7828 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7829 (print_unop_subexp_f): New function.
7830 (print_binop_subexp_f): New function.
7831 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7832 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7833 (dump_subexp_body_f): Likewise.
7834 (operator_check_f): Likewise.
7835 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7836 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7837
83228e93
AB
78382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7839
7840 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7841 UNOP_KIND.
7842 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7843 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7844 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7845 (operator_length_f): New fuction.
7846 (print_subexp_f): New function.
7847 (op_name_f): New function.
7848 (dump_subexp_body_f): New function.
7849 (operator_check_f): New function.
7850 (exp_descriptor_f): Replace standard expression handling functions
7851 with new functions.
7852 * gdb/fortran-operator.def: New file.
7853 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7854 * gdb/std-operator.def: Remove UNOP_KIND.
7855
6fdcd7cc
AB
78562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * std-operator.def: Remove unbalanced, stray double quote
7859 character.
7860
2e62ab40
AB
78612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7862 Chris January <chris.january@arm.com>
7863 Daniel Everett <daniel.everett@arm.com>
7864 Nick Forrington <nick.forrington@arm.com>
7865 Richard Bunt <richard.bunt@arm.com>
7866
7867 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7868 of depth when printing anonymous structs or unions.
7869 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7870 Don't print either the top-level value, or the children if the
7871 max-depth is exceeded.
7872 (ppscm_print_children): When printing the key of a map, allow one
7873 extra level of depth.
7874 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7875 print either the top-level value, or the children if the max-depth
7876 is exceeded.
7877 (print_children): When printing the key of a map, allow one extra
7878 level of depth.
7879 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7880 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7881 (user_print_options): Initialise max_depth field.
7882 (val_print_scalar_or_string_type_p): New function.
7883 (val_print): Check to see if the max depth has been reached.
7884 (val_print_check_max_depth): Define new function.
7885 (show_print_max_depth): New function.
7886 (_initialize_valprint): Add 'print max-depth' option.
7887 * valprint.h (struct value_print_options) <max_depth>: New field.
7888 (val_print_check_max_depth): Declare new function.
7889 * NEWS: Document new feature.
7890
4be290b2
AB
78912019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * ada-lang.c (ada_language_defn): Initialise new field.
7894 * c-lang.c (c_is_string_type_p): New function.
7895 (c_language_defn): Initialise new field.
7896 (cplus_language_defn): Initialise new field.
7897 (asm_language_defn): Initialise new field.
7898 (minimal_language_defn): Initialise new field.
7899 * c-lang.h (c_is_string_type_p): Declare new function.
7900 * d-lang.c (d_language_defn): Initialise new field.
7901 * f-lang.c (f_is_string_type_p): New function.
7902 (f_language_defn): Initialise new field.
7903 * go-lang.c (go_is_string_type_p): New function.
7904 (go_language_defn): Initialise new field.
7905 * language.c (default_is_string_type_p): New function.
7906 (unknown_language_defn): Initialise new field.
7907 (auto_language_defn): Initialise new field.
7908 * language.h (struct language_defn) <la_is_string_type_p>: New
7909 member variable.
7910 (default_is_string_type_p): Declare new function.
7911 * m2-lang.c (m2_language_defn): Initialise new field.
7912 * objc-lang.c (objc_language_defn): Initialise new field.
7913 * opencl-lang.c (opencl_language_defn): Initialise new field.
7914 * p-lang.c (pascal_is_string_type_p): New function.
7915 (pascal_language_defn): Initialise new field.
7916 * rust-lang.c (rust_is_string_type_p): New function.
7917 (rust_language_defn): Initialise new field.
7918
721b08c6
AB
79192019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7920
7921 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7922 New field.
7923 * ada-lang.c (ada_language_defn): Initialise new field.
7924 * c-lang.c (c_language_defn): Likewise.
7925 (cplus_language_defn): Likewise.
7926 (asm_language_defn): Likewise.
7927 (minimal_language_defn): Likewise.
7928 * d-lang.c (d_language_defn): Likewise.
7929 * f-lang.c (f_language_defn): Likewise.
7930 * go-lang.c (go_language_defn): Likewise.
7931 * language.c (unknown_language_defn): Likewise.
7932 (auto_language_defn): Likewise.
7933 * m2-lang.c (m2_language_defn): Likewise.
7934 * objc-lang.c (objc_language_defn): Likewise.
7935 * opencl-lang.c (opencl_language_defn): Likewise.
7936 * p-lang.c (pascal_language_defn): Likewise.
7937 * rust-lang.c (rust_language_defn): Likewise.
7938
fc913e53
AB
79392019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * ada-lang.c (ada_is_character_type): Change return type to bool.
7942 (ada_is_string_type): Likewise.
7943 * ada-lang.h (ada_is_character_type): Update declaration
7944 (ada_is_string_type): Likewise.
7945
fa731fa0
PW
79462019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7947
7948 Support style in 'frame|thread apply'
7949
7950 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7951 * record.c (record_start, record_stop): Update callers of
7952 execute_command_to_string with false.
7953 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7954 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7955 methods.
7956 (class string_file): New constructor with term_out parameter.
7957 Override methods term_out and can_emit_style_escape. New member
7958 term_out.
7959 (class stdio_file): Override can_emit_style_escape.
7960 (class tee_file): Override term_out and can_emit_style_escape.
7961 * utils.h (can_emit_style_escape): Remove.
7962 * utils.c (can_emit_style_escape): Likewise.
7963 Update all callers of can_emit_style_escape (SOMESTREAM) to
7964 SOMESTREAM->can_emit_style_escape.
7965 * source-cache.c (source_cache::get_source_lines): Likewise.
7966 * stack.c (frame_apply_command_count): Call execute_command_to_string
7967 passing the term_out characteristic of the current gdb_stdout.
7968 * thread.c (thr_try_catch_cmd): Likewise.
7969 * top.c (execute_command_to_string): pass term_out parameter
7970 to construct the string_file for the command output.
7971 * ui-file.c (term_cli_styling): New function (most code moved
7972 from utils.c can_emit_style_escape).
7973 (string_file::string_file, string_file::can_emit_style_escape,
7974 stdio_file::can_emit_style_escape, tee_file::term_out,
7975 tee_file::can_emit_style_escape): New functions.
7976
136afab8
PW
79772019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7978
7979 * NEWS: Mention the new set|show may-call-functions.
7980 * infcall.c (may_call_functions_p): New variable.
7981 (show_may_call_functions_p): New function.
7982 (call_function_by_hand_dummy): Throws an error if not
7983 may-call-functions.
7984 (_initialize_infcall): Call add_setshow_boolean_cmd for
7985 may-call-functions.
7986
725cbb63
KS
79872019-04-25 Keith Seitz <keiths@redhat.com>
7988
7989 PR c++/24367
7990 * cp-support.c (inspect_type): Don't attempt substitutions
7991 of symbol with the same name.
7992
3d1cbb78
TT
79932019-04-25 Tom Tromey <tromey@adacore.com>
7994
7995 PR gdb/24475:
7996 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7997 static.
7998
94aeb44b
TT
79992019-04-25 Tom Tromey <tromey@adacore.com>
8000
8001 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8002 rvalue reference.
8003 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8004 (gdb_xml_parser::parse): Use std::move.
8005 * python/python-internal.h (gdbpy_convert_exception): Take a const
8006 reference.
8007 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8008 std::move.
8009 * python/py-utils.c (gdbpy_convert_exception): Take a const
8010 reference.
8011 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8012 Use std::move.
8013 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8014 Use std::move.
8015 * mi/mi-main.c (mi_print_exception): Take a const reference.
8016 * main.c (handle_command_errors): Take a const reference.
8017 * linespec.c (parse_linespec): Use std::move.
8018 * infcall.c (run_inferior_call): Use std::move.
8019 (call_function_by_hand_dummy): Use std::move.
8020 * exec.c (try_open_exec_file): Use std::move.
8021 * exceptions.h (exception_print, exception_fprintf)
8022 (exception_print_same): Update.
8023 * exceptions.c (print_exception, exception_print)
8024 (exception_fprintf, exception_print_same): Change parameters to
8025 const reference.
8026 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8027 * common/new-op.c: Use std::move.
8028 * common/common-exceptions.h (struct gdb_exception): Add move
8029 constructor.
8030 (struct gdb_exception_error, struct gdb_exception_quit, struct
8031 gdb_quit_bad_alloc): Change constructor to move constructor.
8032 (throw_exception): Change parameter to rvalue reference.
8033 * common/common-exceptions.c (throw_exception): Take rvalue
8034 reference.
8035 * cli/cli-interp.c (safe_execute_command): Use std::move.
8036 * breakpoint.c (insert_bp_location, location_to_sals): Use
8037 std::move.
8038
680d7fd5
TT
80392019-04-25 Tom Tromey <tromey@adacore.com>
8040
8041 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8042 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8043 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8044 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8045 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8046 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8047 guile/scm-value.c: Use unpack.
8048 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8049 gdbscm_gdb_exception.
8050 (gdbscm_throw_gdb_exception): Likewise.
8051 (struct gdbscm_gdb_exception): New.
8052 (unpack): New function.
8053 (gdbscm_wrap): Use unpack.
8054
c6fdd8b2
TT
80552019-04-25 Tom Tromey <tromey@adacore.com>
8056
8057 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8058 (gdb_rl_callback_handler): Use std::move.
8059 * common/common-exceptions.h (struct gdb_exception): Add move
8060 assignment operator.
8061 (throw_exception_sjlj): Change "exception" to const reference.
8062 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8063 (throw_exception_sjlj): Change "exception" to const reference.
8064
cc06b668
TT
80652019-04-25 Tom Tromey <tromey@adacore.com>
8066
8067 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8068 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8069 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8070 Update.
8071 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8072 Update.
8073 * mi/mi-interp.c (mi_interp::exec): Update.
8074 * linespec.c (parse_linespec): Update.
8075 * infcall.c (run_inferior_call): Update.
8076 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8077 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8078 (gdbscm_lookup_global_symbol): Update.
8079 * guile/scm-param.c (gdbscm_parameter_value): Update.
8080 * guile/scm-frame.c (gdbscm_frame_read_register)
8081 (gdbscm_frame_read_var): Update.
8082 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8083 * exec.c (try_open_exec_file): Update.
8084 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8085 (gdb_rl_callback_handler): Update.
8086 * common/common-exceptions.h (exception_none): Don't declare.
8087 * common/common-exceptions.c (exception_none): Don't define.
8088 (struct catcher) <exception>: Update.
8089 * cli/cli-interp.c (safe_execute_command): Update.
8090 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8091
cf532bd1
AT
80922019-04-25 Ali Tamur <tamur@google.com>
8093
8094 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8095 (read_attribute_value): Likewise.
8096 (dwarf2_read_addr_index): Update comment.
8097 (read_str_index): Add DW_FORM_strx.
8098 (dwarf2_string_attr): Likewise.
8099 (dwarf2_const_value_attr): Likewise.
8100 (dump_die_shallow): Likewise.
8101 (dwarf2_fetch_constant_bytes): Likewise.
8102 (skip_form_bytes): Likewise.
8103 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8104
82433e3e
SDJ
81052019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8106
8107 PR corefiles/11608
8108 PR corefiles/18187
8109 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8110 OFFSET. Verify if current mapping contains an ELF header.
8111 (linux_find_memory_regions_full): Adjust call to
8112 dump_mapping_p.
8113
723adb65
SL
81142019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8115 Kang Li <kanglictf@gmail.com>
8116
8117 PR gdb/21600
8118
8119 * dwarf2-frame.c (read_initial_length): Be consistent about using
8120 unsigned representation of length.
8121 (decode_frame_entry_1): Likewise. Check for wraparound of
8122 end pointer as well as buffer overflow.
8123
596179f7
SDJ
81242019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8125
8126 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8127 "vq".
8128
a59240a4
TT
81292019-04-24 Tom Tromey <tromey@adacore.com>
8130
8131 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8132
f872fdbb
AB
81332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * s12z-tdep.c (s12z_unwind_pc): Delete.
8136 (s12z_unwind_sp): Delete.
8137 (s12z_gdbarch_init): Don't register deleted functions with
8138 gdbarch.
8139
b614e6f3
AB
81402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * rl78-tdep.c (rl78_unwind_sp): Delete.
8143 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8144
14faed38
AB
81452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8146
8147 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8148 (xstormy16_unwind_pc): Delete.
8149 (xstormy16_dummy_id): Delete.
8150 (xstormy16_gdbarch_init): Don't register deleted functions with
8151 gdbarch.
8152
541aad8a
AB
81532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * vax-tdep.c (vax_unwind_pc): Delete.
8156 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8157
29222070
AB
81582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * v850-tdep.c (v850_unwind_sp): Delete.
8161 (v850_unwind_pc): Delete.
8162 (v850_dummy_id): Delete.
8163 (v850_gdbarch_init): Don't register deleted functions with
8164 gdbarch.
8165
0f534d76
AB
81662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8167
8168 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8169 (tilegx_unwind_pc): Delete.
8170 (tilegx_unwind_dummy_id): Delete.
8171 (tilegx_gdbarch_init): Don't register deleted functions with
8172 gdbarch.
8173
1ba7b7f9
AB
81742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8177 (tic6x_dummy_id): Delete.
8178 (tic6x_gdbarch_init): Don't register deleted functions with
8179 gdbarch.
8180
d31f262c
AB
81812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * sparc-tdep.c (sparc_unwind_pc): Delete.
8184 (sparc32_gdbarch_init): Don't register deleted function with
8185 gdbarch.
8186
6d14d64d
AB
81872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * sh-tdep.c (sh_unwind_sp): Delete.
8190 (sh_unwind_pc): Delete.
8191 (sh_dummy_id): Delete.
8192 (sh_gdbarch_init): Don't register deleted functions with
8193 gdbarch.
8194
a40dde9d
AB
81952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * score-tdep.c (score_unwind_sp): Delete.
8198 (score_unwind_pc): Delete.
8199 (score_dummy_id): Delete.
8200 (score_gdbarch_init): Don't register deleted functions with
8201 gdbarch.
8202
47c47d69
AB
82032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8204
8205 * rx-tdep.c (rx_unwind_pc): Delete.
8206 (rx_unwind_sp): Delete.
8207 (rx_dummy_id): Delete.
8208 (rx_gdbarch_init): Don't register deleted functions with
8209 gdbarch. Update comment.
8210
833a4480
AB
82112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8214 (rs6000_dummy_id): Delete.
8215 (rs6000_gdbarch_init): Don't register deleted functions with
8216 gdbarch.
8217
3f2cef49
AB
82182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * or1k-tdep.c (or1k_dummy_id): Delete.
8221 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8222
96acf884
AB
82232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8224
8225 * nios2-tdep.c (nios2_dummy_id): Delete.
8226 (nios2_unwind_sp): Delete.
8227 (nios2_gdbarch_init): Don't register deleted functions with
8228 gdbarch.
8229
ca0ab0aa
AB
82302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8231
8232 * nds32-tdep.c (nds32_dummy_id): Delete.
8233 (nds32_unwind_pc): Delete.
8234 (nds32_unwind_sp): Delete.
8235 (nds32_gdbarch_init): Don't register deleted functions with
8236 gdbarch.
8237
c8259044
AB
82382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 * msp430-tdep.c (msp430_unwind_pc): Delete.
8241 (msp430_unwind_sp): Delete.
8242 (msp430_dummy_id): Delete.
8243 (msp430_gdbarch_init): Don't register deleted functions with
8244 gdbarch.
8245
27f113c8
AB
82462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8247
8248 * moxie-tdep.c (moxie_unwind_sp): Delete.
8249 (moxie_unwind_pc): Delete.
8250 (moxie_dummy_id): Delete.
8251 (moxie_gdbarch_init): Don't register deleted functions with
8252 gdbarch.
8253
aee6c3cd
AB
82542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8257 (mn10300_unwind_pc): Delete.
8258 (mn10300_unwind_sp): Delete.
8259 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8260 mn10300_unwind_sp.
8261 (mn10300_frame_unwind_init): Don't register deleted functions with
8262 gdbarch.
8263
8e2b5aea
AB
82642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * mep-tdep.c (mep_unwind_pc): Delete.
8267 (mep_unwind_sp): Delete.
8268 (mep_dummy_id): Delete.
8269 (mep_gdbarch_init): Don't register deleted functions with
8270 gdbarch.
8271
43cf3ede
AB
82722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8273
8274 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8275 (m68hc11_unwind_sp): Delete.
8276 (m68hc11_gdbarch_init): Don't register deleted functions with
8277 gdbarch.
8278
5e79b7bb
AB
82792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * m32r-tdep.c (m32r_unwind_sp): Delete.
8282 (m32r_unwind_pc): Delete.
8283 (m32r_dummy_id): Delete.
8284 (m32r_gdbarch_init): Don't register deleted functions with
8285 gdbarch.
8286
89b268d8
AB
82872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * m32c-tdep.c (m32c_unwind_pc): Delete.
8290 (m32c_unwind_sp): Delete.
8291 (m32c_dummy_id): Delete.
8292 (m32c_gdbarch_init): Don't register deleted functions with
8293 gdbarch.
8294
946c28d2
AB
82952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8298 (lm32_unwind_pc): Delete.
8299 (lm32_dummy_id): Delete.
8300 (lm32_gdbarch_init): Don't register deleted functions with
8301 gdbarch.
8302
bf12844a
AB
83032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8304
8305 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8306 (iq2000_unwind_pc): Delete.
8307 (iq2000_dummy_id): Delete.
8308 (iq2000_gdbarch_init): Don't register deleted functions with
8309 gdbarch.
8310
ecbc06d2
AB
83112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8312
8313 * nds32-tdep.c (nds32_type_align): Delete.
8314 (nds32_push_dummy_call): Use type_align instead.
8315
030197b4
AB
83162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8317
8318 * arm-tdep.c (arm_type_align): Only handle vector override case.
8319 (arm_push_dummy_call): Use type_align.
8320 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8321
b907456c
AB
83222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8323
8324 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8325 case.
8326 (pass_on_stack): Use type_align.
8327 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8328 function.
8329
9e97ba43
TT
83302019-04-23 Tom Tromey <tromey@adacore.com>
8331
8332 * dwarf2read.c (line_header::file_name_at): Remove unused
8333 overload.
8334
6892f601
TV
83352019-04-23 Tom de Vries <tdevries@suse.de>
8336
8337 PR gdb/24438
8338 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8339 invocation.
8340
336d760d
AT
8341
83422019-03-27 Ali Tamur <tamur@google.com>
8343
8344 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8345 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8346 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8347 (dwarf_expr_context::get_addr_index): Likewise
8348 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8349 (symbol_needs_eval_context::get_addr_index): Likewise
8350 (disassemble_dwarf_expression): Add DW_OP_addrx
8351 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8352 (read_cutu_die_from_dwo): Update comment
8353 (skip_one_die): Add DW_FORM_addrx
8354 (read_attribute_value): Likewise
8355 (var_decode_location): Add DW_OP_addrx
8356 (dwarf2_const_value_attr): Add DW_FORM_addrx
8357 (dump_die_shallow): Likewise
8358 (dwarf2_fetch_constant_bytes): Likewise
8359 (decode_locdesc): Add DW_OP_addrx
8360 (skip_form_bytes): Add DW_FORM_addrx
8361
ad9d13f8
AT
83622019-04-22 Ali Tamur <tamur@google.com>
8363
8364 * MAINTAINERS (Write After Approval): Add self.
8365
d70cc3ba
SM
83662019-04-22 Simon Marchi <simon.marchi@efficios.com>
8367
8368 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8369 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8370 (open_symbol_file_object): Likewise.
8371 (svr4_default_sos): Add info parameter.
8372 (svr4_read_so_list): Likewise.
8373 (svr4_current_sos_direct): Adjust functions calls to pass down
8374 info.
8375 (svr4_current_sos_1): Add info parameter.
8376 (svr4_current_sos): Call get_svr4_info, pass info down to
8377 svr4_current_sos_1.
8378 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8379 get_svr4_info.
8380 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8381 get_svr4_info.
8382 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8383 to get_svr4_info.
8384 (probes_table_remove_objfile_probes): Likewise.
8385 (register_solib_event_probe): Add info parameter.
8386 (solist_update_incremental): Pass info parameter down to
8387 svr4_read_so_list.
8388 (disable_probes_interface): Add info parameter.
8389 (svr4_handle_solib_event): Pass current_program_space to
8390 get_svr4_info. Adjust disable_probes_interface cleanup.
8391 (svr4_create_probe_breakpoints): Add info parameter, pass it
8392 down to register_solib_event_probe.
8393 (svr4_create_solib_event_breakpoints): Add info parameter,
8394 pass it down to svr4_create_probe_breakpoints.
8395 (enable_break): Pass info down to
8396 svr4_create_solib_event_breakpoints.
8397 (svr4_solib_create_inferior_hook): Pass current_program_space to
8398 get_svr4_info.
8399 (svr4_clear_solib): Likewise.
8400
7905fc35
PA
84012019-04-22 Pedro Alves <palves@redhat.com>
8402
8403 * solib-svr4.c (svr4_free_objfile_observer): New.
8404 (probe_and_action::objfile): New field.
8405 (probes_table_htab_remove_objfile_probes)
8406 (probes_table_remove_objfile_probes): New functions.
8407 (register_solib_event_probe): Add 'objfile' parameter. Store it
8408 in the new probe_and_action. Don't store the probe in 'lookup'.
8409 (svr4_create_probe_breakpoints): Pass objfile to
8410 register_solib_event_probe.
8411 (_initialize_svr4_solib): Register a free_objfile observer.
8412
fb881986
TT
84132019-04-19 Tom Tromey <tom@tromey.com>
8414
8415 * common/queue.h: Remove.
8416
8732db6c
TT
84172019-04-19 Tom Tromey <tom@tromey.com>
8418
8419 * event-loop.c: Don't include "common/queue.h".
8420
97dfbadd
TT
84212019-04-19 Tom Tromey <tom@tromey.com>
8422
8423 * remote.c (remote_target): Use delete.
8424 * remote-notif.h: Include <list>, not "common/queue.h".
8425 (notif_client_p): Remove typedef.
8426 (remote_notif_state): Add constructor, destructor, initializer.
8427 <notif_queue>: Now a std::list.
8428 (remote_notif_state_xfree): Don't declare.
8429 * remote-notif.c (remote_notif_process, handle_notification)
8430 (remote_notif_state_allocate): Update.
8431 (~remote_notif_state): Rename from remote_notif_state_xfree.
8432
cf250e36
TT
84332019-04-19 Tom Tromey <tom@tromey.com>
8434
8435 * symfile.c (reread_symbols): Update.
8436 * objfiles.c (objfile_register_static_link)
8437 (objfile_lookup_static_link): Update
8438 (~objfile) Don't delete static_links.
8439 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8440
61f4b350
TT
84412019-04-19 Tom Tromey <tom@tromey.com>
8442
8443 * type-stack.h (struct type_stack) <insert>: Constify string.
8444 * type-stack.c (type_stack::insert): Constify string.
8445 * gdbtypes.h (lookup_template_type): Update.
8446 (address_space_name_to_int): Update.
8447 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8448 const.
8449 (lookup_template_type): Make name const.
8450 * c-exp.y: Update rules.
8451 (lex_one_token, classify_name, classify_inner_name)
8452 (c_print_token): Update.
8453 * p-exp.y: Update rules.
8454 (yylex): Update.
8455 * f-exp.y: Update rules.
8456 (yylex): Update.
8457 * d-exp.y: Update rules.
8458 (lex_one_token, classify_name, classify_inner_name): Update.
8459 * parse.c (write_dollar_variable, copy_name): Return std::string.
8460 * parser-defs.h (copy_name): Change return type.
8461 * m2-exp.y: Update rules.
8462 (yylex): Update.
8463 * go-exp.y (lex_one_token): Update.
8464 Update rules.
8465 (classify_unsafe_function, classify_packaged_name)
8466 (classify_name, yylex): Update.
8467
189b8c2e
ST
84682019-04-19 Sergei Trofimovich <siarheit@google.com>
8469
8470 * configure.ac: add --enable-source-highlight switch.
8471 * configure: Regenerate.
8472 * top.c (print_gdb_version): plumb --enable-source-highlight
8473 status to "show configuration".
8474
8ecb59f8
TT
84752019-04-19 Tom Tromey <tromey@adacore.com>
8476
8477 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8478 Check ADA_TYPE_P.
8479 (empty_record, ada_template_to_fixed_record_type_1)
8480 (template_to_static_fixed_type)
8481 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8482 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8483 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8484 macros.
8485
62160ec9
TT
84862019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8487
8488 PR symtab/24423:
8489 * source.c (print_source_lines_base): Advance "iter" when a
8490 control character is seen.
8491
f2ae8bc8
PW
84922019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493
8494 * inferior.h (struct infcall_suspend_state_deleter):
8495 Catch exception in destructor to avoid crash.
8496
d563b953
PW
84972019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8498
8499 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8500 close to the add_com "shell".
8501
dc34c897
TT
85022019-04-18 Tom Tromey <tromey@adacore.com>
8503
8504 * process-stratum-target.h (class process_stratum_target)
8505 <stratum>: Add "final".
8506
a12e5744
TT
85072019-04-17 Tom Tromey <tromey@adacore.com>
8508
8509 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8510 against nullptr before use.
8511
a7e559cc
AH
85122019-04-17 Alan Hayward <alan.hayward@arm.com>
8513
8514 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8515
c01660c6
AB
85162019-04-17 Jim Wilson <jimw@sifive.com>
8517 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8520 code read might fail, assume 4-byte breakpoint in that case.
8521
4aa866af
LS
85222019-04-15 Leszek Swirski <leszeks@google.com>
8523
8524 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8525 rather than a hand-rolled POD check when checking for forced MEMORY
8526 classification.
8527
48574d91
AH
85282019-04-15 Alan Hayward <alan.hayward@arm.com>
8529
8530 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8531 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8532 function.
8533 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8534 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8535 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8536 declaration.
8537
4da037ef
AH
85382019-04-15 Alan Hayward <alan.hayward@arm.com>
8539
8540 * aarch64-linux-nat.c
8541 (aarch64_linux_nat_target::thread_architecture): Add override.
8542 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8543 each VQ.
8544
ccb8d7e8
AH
85452019-04-15 Alan Hayward <alan.hayward@arm.com>
8546
8547 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8548
35add35e
AB
85492019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8550
8551 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8552 target types of size 96-bits, add some additional comments, and
8553 check that the builtin type we found was the correct size.
8554
51196bbc
EZ
85552019-04-12 Eli Zaretskii <eliz@gnu.org>
8556
8557 * utils.c (prompt_for_continue): Don't restore the styling at the
8558 end, as applied_style has the wrong value. This fixes styling in
8559 long lists of file names that are interrupted by the "Continue?"
8560 prompt.
8561
62253a61
AB
85622019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8565 * c-lang.c (c_language_defn): Likewise.
8566 (cplus_language_defn): Likewise.
8567 (asm_language_defn): Likewise.
8568 (minimal_language_defn): Likewise.
8569 * d-lang.c (d_language_defn): Likewise.
8570 * f-lang.c (f_language_defn): Likewise.
8571 * go-lang.c (go_language_defn): Likewise.
8572 * language.c (unknown_language_defn): Likewise.
8573 (auto_language_defn): Likewise.
8574 * language.h (struct language_defn): Remove la_magic field.
8575 (LANG_MAGIC): Delete.
8576 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8577 * objc-lang.c (objc_language_defn): Likewise.
8578 * opencl-lang.c (opencl_language_defn): Likewise.
8579 * p-lang.c (pascal_language_defn): Likewise.
8580 * rust-lang.c (rust_language_defn): Likewise.
8581
a9158a86
AB
85822019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * riscv-tdep.c (riscv_type_align): New function.
8585 (riscv_type_alignment): Delete.
8586 (riscv_arg_location): Use 'type_align'.
8587 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8588
41077b66
AB
85892019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * gdbtypes.c (type_align): A struct with no non-static fields also
8592 has alignment of 1.
8593
9f0272f8
AB
85942019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8595
8596 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8597 component to 0.
8598 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8599 member.
8600 (riscv_struct_info::analyse): New implementation using new
8601 analyse_inner member function.
8602 (riscv_struct_info::field_offset): New member function.
8603 (riscv_struct_info::m_offsets): New member variable.
8604 (riscv_struct_info::analyse_inner): New private member function,
8605 takes the old implementation of riscv_struct_info::analyse but
8606 extended to track field offsets.
8607 (riscv_call_arg_struct): Update the struct folding special cases
8608 to handle cases where empty C++ structs, which are non-zero
8609 length, are found.
8610 (riscv_arg_location): Initialise the length of each location, a
8611 non-zero length now indicates the location is in use.
8612 (riscv_push_dummy_call): Allow for the first location having a
8613 non-zero offset when setting up arguments.
8614 (riscv_return_value): Likewise, but for return values.
8615
02cf60c7
TT
86162019-04-11 Tom Tromey <tromey@adacore.com>
8617
8618 * utils.c (internal_vproblem): Make "msg" const.
8619
68811f8f
AH
86202019-04-11 Alan Hayward <alan.hayward@arm.com>
8621
8622 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8623 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8624 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8625 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8626
3f52fdbc
KB
86272019-04-10 Kevin Buettner <kevinb@redhat.com>
8628
8629 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8630 function.
8631 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8632 of amd64_collect_native_gregset.
8633 (amd64_linux_nat_target::store_registers): Likewise.
8634
e9ad22ee
TT
86352019-04-10 Tom Tromey <tom@tromey.com>
8636
8637 * symtab.c (lookup_global_symbol_from_objfile)
8638 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8639 * objfiles.h (class separate_debug_iterator): New.
8640 (class separate_debug_range): New.
8641 (struct objfile) <separate_debug_objfiles>: New method.
8642 (objfile_separate_debug_iterate): Don't declare.
8643 * objfiles.c (separate_debug_iterator::operator++): Rename from
8644 objfile_separate_debug_iterate.
8645 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8646 iterator.
8647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8648 iterator.
8649
ee371134
TT
86502019-04-10 Tom Tromey <tom@tromey.com>
8651
8652 * symfile.c (reread_symbols): Remove old comment.
8653 * objfiles.c (free_all_objfiles): Fix a typo.
8654
bf227d61
TT
86552019-04-10 Tom Tromey <tom@tromey.com>
8656
8657 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8658 * minsyms.c (lookup_minimal_symbol): Use foreach.
8659 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8660 (lookup_minimal_symbol_solib_trampoline): Likewise.
8661 * symfile.c (reread_symbols): Use foreach.
8662
8dc433a0
TT
86632019-04-09 Ivan Begert <ivanbegert@gmail.com>
8664 Tom Tromey <tromey@adacore.com>
8665
8666 PR rust/24414:
8667 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8668 (rust_lex_int_test): Change "value" to be LONGEST.
8669 (rust_lex_tests): Add test for long integer literal.
8670
9ab8741a
TT
86712019-04-09 Tom Tromey <tromey@adacore.com>
8672
8673 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8674 to bool.
8675 (extended_remote_target::attach): Update.
8676 (remote_target::remote_notice_new_inferior): Update.
8677 (remote_target::add_current_inferior_and_thread): Update.
8678 * inferior.c (exit_inferior_1): Use "false".
8679 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8680
e242fd12
SM
86812019-04-09 Simon Marchi <simon.marchi@efficios.com>
8682
9ca1957f 8683 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8684 the "start" command.
8685
2b0c8b01
KB
86862019-04-08 Kevin Buettner <kevinb@redhat.com>
8687
8688 * python/py-inferior.c (infpy_thread_from_thread_handle):
8689 Adjust comments to reflect renaming of thread_from_thread_handle
8690 to thread_from_handle. Adjust keywords. Fix type error message.
8691 (inferior_object_methods): Add thread_from_handle. Retain
8692 thread_from_thread_handle, but mark it as deprecated.
8693
50a82723
KB
86942019-04-08 Kevin Buettner <kevinb@redhat.com>
8695
8696 * gdbthread.h (find_thread_by_handle): Revise declaration.
8697 * thread.c (find_thread_by_handle): Likewise. Adjust
8698 implementation too.
8699 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8700 support for buffer objects as handles.
8701
cf63b016
KB
87022019-04-08 Kevin Buettner <kevinb@redhat.com>
8703
8704 * python/py-infthread.c (thpy_thread_handle): New function.
8705 (thread_object_methods): Register thpy_thread_handle.
8706
3d6c6204
KB
87072019-04-08 Kevin Buettner <kevinb@redhat.com>
8708
8709 * gdbthread.h (thread_to_thread_handle): Declare.
8710 * thread.c (gdbtypes.h): Include.
8711 (thread_to_thread_handle): New function.
8712
8713 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8714 (target_thread_info_to_thread_handle): Declare.
8715 * target.c (target_thread_info_to_thread_handle): New function.
8716 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8717 * target-delegates.c: Regenerate.
8718
8719 * linux-thread-db.c (class thread_db_target): Add method
8720 thread_info_to_thread_handle.
8721 (thread_db_target::thread_info_to_thread_handle): Define.
8722 * remote.c (class remote_target): Add new method
8723 thread_info_to_thread_handle.
8724 (remote_target::thread_info_to_thread_handle): Define.
8725
56be6ea8
PA
87262019-04-08 Pedro Alves <palves@redhat.com>
8727
8728 * common/common-exceptions.c (throw_exception): Don't create
8729 named object to throw; throw directly.
8730 (throw_it): Likewise. Don't initialize gdb_exception::message
8731 here, with new; pass FMT and AP to the ctor instead.
8732 * common/common-exceptions.h: Include <string>.
8733 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8734 const char *, va_list)): New ctor. Use std::make_shared.
8735 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8736 errors)): Delete.
8737 (gdb_exception_error::gdb_exception_error(enum errors, const char
8738 *, va_list)): New.
8739 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8740 Add assertion.
8741 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8742 errors)): Delete.
8743 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8744 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8745 Add assertion.
8746
eedc3f4f
TT
87472019-04-08 Tom Tromey <tom@tromey.com>
8748
8749 * valops.c (value_rtti_indirect_type): Replace throw_exception
8750 with throw.
8751 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8752 with throw.
8753 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8754 throw.
8755 * target.c (target_translate_tls_address): Replace throw_exception
8756 with throw.
8757 * stack.c (frame_apply_command_count): Replace throw_exception
8758 with throw.
8759 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8760 throw.
8761 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8762 with throw.
8763 * rs6000-tdep.c (rs6000_frame_cache)
8764 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8765 * remote.c: Replace throw_exception with throw.
8766 * record-full.c (record_full_message, record_full_wait_1)
8767 (record_full_restore): Replace throw_exception with throw.
8768 * record-btrace.c:
8769 (get_thread_current_frame_id, record_btrace_start_replaying)
8770 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8771 (cmd_record_btrace_start): Replace throw_exception with throw.
8772 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8773 throw.
8774 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8775 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8776 * linespec.c:
8777 (find_linespec_symbols): Replace throw_exception with throw.
8778 * infrun.c (displaced_step_prepare, resume): Replace
8779 throw_exception with throw.
8780 * infcmd.c (post_create_inferior): Replace throw_exception with
8781 throw.
8782 * inf-loop.c (inferior_event_handler): Replace throw_exception
8783 with throw.
8784 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8785 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8786 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8787 (get_prev_frame_always, get_frame_pc_if_available)
8788 (get_frame_address_in_block_if_available, get_frame_language):
8789 Replace throw_exception with throw.
8790 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8791 throw_exception with throw.
8792 * eval.c (fetch_subexp_value, evaluate_var_value)
8793 (evaluate_funcall, evaluate_subexp_standard): Replace
8794 throw_exception with throw.
8795 * dwarf2loc.c (call_site_find_chain)
8796 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8797 Replace throw_exception with throw.
8798 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8799 with throw.
8800 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8801 throw.
8802 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8803 * completer.c (complete_line_internal): Replace throw_exception
8804 with throw.
8805 * compile/compile-object-run.c (compile_object_run): Replace
8806 throw_exception with throw.
8807 * cli/cli-script.c (process_next_line): Replace throw_exception
8808 with throw.
8809 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8810 (btrace_enable, btrace_maint_update_pt_packets): Replace
8811 throw_exception with throw.
8812 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8813 throw_exception with throw.
8814 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8815 throw_exception with throw.
8816 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8817 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8818 * aarch64-tdep.c (aarch64_make_prologue_cache)
8819 (aarch64_make_stub_cache): Replace throw_exception with throw.
8820
26003a20
TT
88212019-04-08 Tom Tromey <tom@tromey.com>
8822
8823 * common/common-exceptions.c (throw_exception): Rename from
8824 throw_exception_cxx. Remove old copy. Make argument const.
8825 (throw_it): Create and throw exception objects directly.
8826 * common/common-exceptions.h (throw_exception): Make argument
8827 const.
8828 (struct gdb_exception_error): Add constructor.
8829 (struct gdb_exception_quit): Add constructor.
8830
d272eb37
TT
88312019-04-08 Tom Tromey <tom@tromey.com>
8832
8833 * common/common-exceptions.h (exception_rethrow): Don't declare.
8834 (TRY_SJLJ): Update comment.
8835 (TRY, CATCH, END_CATCH): Remove.
8836 * common/common-exceptions.c (exception_rethrow): Remove.
8837
230d2906
TT
88382019-04-08 Tom Tromey <tom@tromey.com>
8839
8840 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8841 Remove.
8842 (gdb_exception_error): Rename from
8843 gdb_exception_RETURN_MASK_ERROR.
8844 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8845 (gdb_quit_bad_alloc): Update.
8846 * aarch64-tdep.c: Update.
8847 * ada-lang.c: Update.
8848 * ada-typeprint.c: Update.
8849 * ada-valprint.c: Update.
8850 * amd64-tdep.c: Update.
8851 * arch-utils.c: Update.
8852 * break-catch-throw.c: Update.
8853 * breakpoint.c: Update.
8854 * btrace.c: Update.
8855 * c-varobj.c: Update.
8856 * cli/cli-cmds.c: Update.
8857 * cli/cli-interp.c: Update.
8858 * cli/cli-script.c: Update.
8859 * common/common-exceptions.c: Update.
8860 * common/new-op.c: Update.
8861 * common/selftest.c: Update.
8862 * compile/compile-c-symbols.c: Update.
8863 * compile/compile-cplus-symbols.c: Update.
8864 * compile/compile-object-load.c: Update.
8865 * compile/compile-object-run.c: Update.
8866 * completer.c: Update.
8867 * corelow.c: Update.
8868 * cp-abi.c: Update.
8869 * cp-support.c: Update.
8870 * cp-valprint.c: Update.
8871 * darwin-nat.c: Update.
8872 * disasm-selftests.c: Update.
8873 * dtrace-probe.c: Update.
8874 * dwarf-index-cache.c: Update.
8875 * dwarf-index-write.c: Update.
8876 * dwarf2-frame-tailcall.c: Update.
8877 * dwarf2-frame.c: Update.
8878 * dwarf2loc.c: Update.
8879 * dwarf2read.c: Update.
8880 * eval.c: Update.
8881 * event-loop.c: Update.
8882 * event-top.c: Update.
8883 * exec.c: Update.
8884 * f-valprint.c: Update.
8885 * fbsd-tdep.c: Update.
8886 * frame-unwind.c: Update.
8887 * frame.c: Update.
8888 * gdbtypes.c: Update.
8889 * gnu-v3-abi.c: Update.
8890 * guile/guile-internal.h: Update.
8891 * guile/scm-block.c: Update.
8892 * guile/scm-breakpoint.c: Update.
8893 * guile/scm-cmd.c: Update.
8894 * guile/scm-disasm.c: Update.
8895 * guile/scm-frame.c: Update.
8896 * guile/scm-lazy-string.c: Update.
8897 * guile/scm-math.c: Update.
8898 * guile/scm-param.c: Update.
8899 * guile/scm-ports.c: Update.
8900 * guile/scm-pretty-print.c: Update.
8901 * guile/scm-symbol.c: Update.
8902 * guile/scm-symtab.c: Update.
8903 * guile/scm-type.c: Update.
8904 * guile/scm-value.c: Update.
8905 * i386-linux-tdep.c: Update.
8906 * i386-tdep.c: Update.
8907 * inf-loop.c: Update.
8908 * infcall.c: Update.
8909 * infcmd.c: Update.
8910 * infrun.c: Update.
8911 * jit.c: Update.
8912 * language.c: Update.
8913 * linespec.c: Update.
8914 * linux-fork.c: Update.
8915 * linux-nat.c: Update.
8916 * linux-tdep.c: Update.
8917 * linux-thread-db.c: Update.
8918 * main.c: Update.
8919 * mi/mi-cmd-break.c: Update.
8920 * mi/mi-cmd-stack.c: Update.
8921 * mi/mi-interp.c: Update.
8922 * mi/mi-main.c: Update.
8923 * objc-lang.c: Update.
8924 * p-valprint.c: Update.
8925 * parse.c: Update.
8926 * ppc-linux-tdep.c: Update.
8927 * printcmd.c: Update.
8928 * python/py-arch.c: Update.
8929 * python/py-breakpoint.c: Update.
8930 * python/py-cmd.c: Update.
8931 * python/py-finishbreakpoint.c: Update.
8932 * python/py-frame.c: Update.
8933 * python/py-framefilter.c: Update.
8934 * python/py-gdb-readline.c: Update.
8935 * python/py-inferior.c: Update.
8936 * python/py-infthread.c: Update.
8937 * python/py-lazy-string.c: Update.
8938 * python/py-linetable.c: Update.
8939 * python/py-objfile.c: Update.
8940 * python/py-param.c: Update.
8941 * python/py-prettyprint.c: Update.
8942 * python/py-progspace.c: Update.
8943 * python/py-record-btrace.c: Update.
8944 * python/py-record.c: Update.
8945 * python/py-symbol.c: Update.
8946 * python/py-type.c: Update.
8947 * python/py-unwind.c: Update.
8948 * python/py-utils.c: Update.
8949 * python/py-value.c: Update.
8950 * python/python.c: Update.
8951 * record-btrace.c: Update.
8952 * record-full.c: Update.
8953 * remote-fileio.c: Update.
8954 * remote.c: Update.
8955 * riscv-tdep.c: Update.
8956 * rs6000-aix-tdep.c: Update.
8957 * rs6000-tdep.c: Update.
8958 * rust-exp.y: Update.
8959 * rust-lang.c: Update.
8960 * s390-tdep.c: Update.
8961 * selftest-arch.c: Update.
8962 * solib-dsbt.c: Update.
8963 * solib-frv.c: Update.
8964 * solib-spu.c: Update.
8965 * solib-svr4.c: Update.
8966 * solib.c: Update.
8967 * sparc64-linux-tdep.c: Update.
8968 * stack.c: Update.
8969 * symfile-mem.c: Update.
8970 * symmisc.c: Update.
8971 * target.c: Update.
8972 * thread.c: Update.
8973 * top.c: Update.
8974 * tracefile-tfile.c: Update.
8975 * tui/tui.c: Update.
8976 * typeprint.c: Update.
8977 * unittests/cli-utils-selftests.c: Update.
8978 * unittests/parse-connection-spec-selftests.c: Update.
8979 * valops.c: Update.
8980 * valprint.c: Update.
8981 * value.c: Update.
8982 * varobj.c: Update.
8983 * windows-nat.c: Update.
8984 * x86-linux-nat.c: Update.
8985 * xml-support.c: Update.
8986
a70b8144
TT
89872019-04-08 Tom Tromey <tom@tromey.com>
8988
8989 * xml-support.c: Use C++ exception handling.
8990 * x86-linux-nat.c: Use C++ exception handling.
8991 * windows-nat.c: Use C++ exception handling.
8992 * varobj.c: Use C++ exception handling.
8993 * value.c: Use C++ exception handling.
8994 * valprint.c: Use C++ exception handling.
8995 * valops.c: Use C++ exception handling.
8996 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8997 handling.
8998 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8999 * typeprint.c: Use C++ exception handling.
9000 * tui/tui.c: Use C++ exception handling.
9001 * tracefile-tfile.c: Use C++ exception handling.
9002 * top.c: Use C++ exception handling.
9003 * thread.c: Use C++ exception handling.
9004 * target.c: Use C++ exception handling.
9005 * symmisc.c: Use C++ exception handling.
9006 * symfile-mem.c: Use C++ exception handling.
9007 * stack.c: Use C++ exception handling.
9008 * sparc64-linux-tdep.c: Use C++ exception handling.
9009 * solib.c: Use C++ exception handling.
9010 * solib-svr4.c: Use C++ exception handling.
9011 * solib-spu.c: Use C++ exception handling.
9012 * solib-frv.c: Use C++ exception handling.
9013 * solib-dsbt.c: Use C++ exception handling.
9014 * selftest-arch.c: Use C++ exception handling.
9015 * s390-tdep.c: Use C++ exception handling.
9016 * rust-lang.c: Use C++ exception handling.
9017 * rust-exp.y: Use C++ exception handling.
9018 * rs6000-tdep.c: Use C++ exception handling.
9019 * rs6000-aix-tdep.c: Use C++ exception handling.
9020 * riscv-tdep.c: Use C++ exception handling.
9021 * remote.c: Use C++ exception handling.
9022 * remote-fileio.c: Use C++ exception handling.
9023 * record-full.c: Use C++ exception handling.
9024 * record-btrace.c: Use C++ exception handling.
9025 * python/python.c: Use C++ exception handling.
9026 * python/py-value.c: Use C++ exception handling.
9027 * python/py-utils.c: Use C++ exception handling.
9028 * python/py-unwind.c: Use C++ exception handling.
9029 * python/py-type.c: Use C++ exception handling.
9030 * python/py-symbol.c: Use C++ exception handling.
9031 * python/py-record.c: Use C++ exception handling.
9032 * python/py-record-btrace.c: Use C++ exception handling.
9033 * python/py-progspace.c: Use C++ exception handling.
9034 * python/py-prettyprint.c: Use C++ exception handling.
9035 * python/py-param.c: Use C++ exception handling.
9036 * python/py-objfile.c: Use C++ exception handling.
9037 * python/py-linetable.c: Use C++ exception handling.
9038 * python/py-lazy-string.c: Use C++ exception handling.
9039 * python/py-infthread.c: Use C++ exception handling.
9040 * python/py-inferior.c: Use C++ exception handling.
9041 * python/py-gdb-readline.c: Use C++ exception handling.
9042 * python/py-framefilter.c: Use C++ exception handling.
9043 * python/py-frame.c: Use C++ exception handling.
9044 * python/py-finishbreakpoint.c: Use C++ exception handling.
9045 * python/py-cmd.c: Use C++ exception handling.
9046 * python/py-breakpoint.c: Use C++ exception handling.
9047 * python/py-arch.c: Use C++ exception handling.
9048 * printcmd.c: Use C++ exception handling.
9049 * ppc-linux-tdep.c: Use C++ exception handling.
9050 * parse.c: Use C++ exception handling.
9051 * p-valprint.c: Use C++ exception handling.
9052 * objc-lang.c: Use C++ exception handling.
9053 * mi/mi-main.c: Use C++ exception handling.
9054 * mi/mi-interp.c: Use C++ exception handling.
9055 * mi/mi-cmd-stack.c: Use C++ exception handling.
9056 * mi/mi-cmd-break.c: Use C++ exception handling.
9057 * main.c: Use C++ exception handling.
9058 * linux-thread-db.c: Use C++ exception handling.
9059 * linux-tdep.c: Use C++ exception handling.
9060 * linux-nat.c: Use C++ exception handling.
9061 * linux-fork.c: Use C++ exception handling.
9062 * linespec.c: Use C++ exception handling.
9063 * language.c: Use C++ exception handling.
9064 * jit.c: Use C++ exception handling.
9065 * infrun.c: Use C++ exception handling.
9066 * infcmd.c: Use C++ exception handling.
9067 * infcall.c: Use C++ exception handling.
9068 * inf-loop.c: Use C++ exception handling.
9069 * i386-tdep.c: Use C++ exception handling.
9070 * i386-linux-tdep.c: Use C++ exception handling.
9071 * guile/scm-value.c: Use C++ exception handling.
9072 * guile/scm-type.c: Use C++ exception handling.
9073 * guile/scm-symtab.c: Use C++ exception handling.
9074 * guile/scm-symbol.c: Use C++ exception handling.
9075 * guile/scm-pretty-print.c: Use C++ exception handling.
9076 * guile/scm-ports.c: Use C++ exception handling.
9077 * guile/scm-param.c: Use C++ exception handling.
9078 * guile/scm-math.c: Use C++ exception handling.
9079 * guile/scm-lazy-string.c: Use C++ exception handling.
9080 * guile/scm-frame.c: Use C++ exception handling.
9081 * guile/scm-disasm.c: Use C++ exception handling.
9082 * guile/scm-cmd.c: Use C++ exception handling.
9083 * guile/scm-breakpoint.c: Use C++ exception handling.
9084 * guile/scm-block.c: Use C++ exception handling.
9085 * guile/guile-internal.h: Use C++ exception handling.
9086 * gnu-v3-abi.c: Use C++ exception handling.
9087 * gdbtypes.c: Use C++ exception handling.
9088 * frame.c: Use C++ exception handling.
9089 * frame-unwind.c: Use C++ exception handling.
9090 * fbsd-tdep.c: Use C++ exception handling.
9091 * f-valprint.c: Use C++ exception handling.
9092 * exec.c: Use C++ exception handling.
9093 * event-top.c: Use C++ exception handling.
9094 * event-loop.c: Use C++ exception handling.
9095 * eval.c: Use C++ exception handling.
9096 * dwarf2read.c: Use C++ exception handling.
9097 * dwarf2loc.c: Use C++ exception handling.
9098 * dwarf2-frame.c: Use C++ exception handling.
9099 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9100 * dwarf-index-write.c: Use C++ exception handling.
9101 * dwarf-index-cache.c: Use C++ exception handling.
9102 * dtrace-probe.c: Use C++ exception handling.
9103 * disasm-selftests.c: Use C++ exception handling.
9104 * darwin-nat.c: Use C++ exception handling.
9105 * cp-valprint.c: Use C++ exception handling.
9106 * cp-support.c: Use C++ exception handling.
9107 * cp-abi.c: Use C++ exception handling.
9108 * corelow.c: Use C++ exception handling.
9109 * completer.c: Use C++ exception handling.
9110 * compile/compile-object-run.c: Use C++ exception handling.
9111 * compile/compile-object-load.c: Use C++ exception handling.
9112 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9113 * compile/compile-c-symbols.c: Use C++ exception handling.
9114 * common/selftest.c: Use C++ exception handling.
9115 * common/new-op.c: Use C++ exception handling.
9116 * cli/cli-script.c: Use C++ exception handling.
9117 * cli/cli-interp.c: Use C++ exception handling.
9118 * cli/cli-cmds.c: Use C++ exception handling.
9119 * c-varobj.c: Use C++ exception handling.
9120 * btrace.c: Use C++ exception handling.
9121 * breakpoint.c: Use C++ exception handling.
9122 * break-catch-throw.c: Use C++ exception handling.
9123 * arch-utils.c: Use C++ exception handling.
9124 * amd64-tdep.c: Use C++ exception handling.
9125 * ada-valprint.c: Use C++ exception handling.
9126 * ada-typeprint.c: Use C++ exception handling.
9127 * ada-lang.c: Use C++ exception handling.
9128 * aarch64-tdep.c: Use C++ exception handling.
9129
3d6e9d23
TT
91302019-04-08 Tom Tromey <tom@tromey.com>
9131
9132 * xml-support.c (gdb_xml_parser::parse): Update.
9133 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9134 * value.c (show_convenience): Update.
9135 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9136 (test_parse_flags_qcs): Update.
9137 * thread.c (thr_try_catch_cmd): Update.
9138 * target.c (target_translate_tls_address): Update.
9139 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9140 (info_frame_command_core, frame_apply_command_count): Update.
9141 * rust-exp.y (rust_lex_exception_test): Update.
9142 * riscv-tdep.c (riscv_print_one_register_info): Update.
9143 * remote.c (remote_target::enable_btrace): Update.
9144 * record-btrace.c (record_btrace_enable_warn): Update.
9145 * python/py-utils.c (gdbpy_convert_exception): Update.
9146 * printcmd.c (do_one_display, print_variable_and_value): Update.
9147 * mi/mi-main.c (mi_print_exception): Update.
9148 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9149 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9150 * linux-nat.c (linux_nat_target::attach): Update.
9151 * linux-fork.c (class scoped_switch_fork_info): Update.
9152 * infrun.c (displaced_step_prepare): Update.
9153 * infcall.c (call_function_by_hand_dummy): Update.
9154 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9155 * gnu-v3-abi.c (print_one_vtable): Update.
9156 * frame.c (get_prev_frame_always): Update.
9157 * f-valprint.c (info_common_command_for_block): Update.
9158 * exec.c (try_open_exec_file): Update.
9159 * exceptions.c (print_exception, exception_print)
9160 (exception_fprintf, exception_print_same): Update.
9161 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9162 * dwarf-index-cache.c (index_cache::store)
9163 (index_cache::lookup_gdb_index): Update.
9164 * darwin-nat.c (maybe_cache_shell): Update.
9165 * cp-valprint.c (cp_print_value_fields): Update.
9166 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9167 (gcc_cplus_symbol_address): Update.
9168 * compile/compile-c-symbols.c (gcc_convert_symbol)
9169 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9170 * common/selftest.c: Update.
9171 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9172 a std::string.
9173 (exception_try_scope_entry, exception_try_scope_exit): Don't
9174 declare.
9175 (struct exception_try_scope): Remove.
9176 (TRY): Don't use exception_try_scope.
9177 (struct gdb_exception): Add constructor, operator=.
9178 <what>: New method.
9179 (struct gdb_exception_RETURN_MASK_ALL)
9180 (struct gdb_exception_RETURN_MASK_ERROR)
9181 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9182 (struct gdb_quit_bad_alloc): Update.
9183 * common/common-exceptions.c (exception_none): Change
9184 initializer.
9185 (struct catcher) <state, exception>: Initialize inline.
9186 <prev>: Remove member.
9187 (current_catcher): Remove.
9188 (catchers): New global.
9189 (exceptions_state_mc_init): Simplify.
9190 (catcher_pop): Remove.
9191 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9192 (try_scope_depth, exception_try_scope_entry)
9193 (exception_try_scope_exit): Remove.
9194 (throw_exception_sjlj): Update.
9195 (exception_messages, exception_messages_size): Remove.
9196 (throw_it): Simplify.
9197 (gdb_exception_sliced_copy): Remove.
9198 (throw_exception_cxx): Update.
9199 * cli/cli-script.c (script_from_file): Update.
9200 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9201 Update.
9202 * ada-valprint.c (ada_val_print): Update.
9203 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9204 (create_excep_cond_exprs): Update.
9205
c5c10118
TT
92062019-04-08 Tom Tromey <tom@tromey.com>
9207
9208 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9209 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9210 (TRY, CATCH, END_CATCH): Remove some definitions.
9211 * common/common-exceptions.c: Don't use GDB_XCPT.
9212 (catcher_list_size): Remove.
9213 (throw_exception, throw_it): Simplify.
9214
4de283e4
TT
92152019-04-05 Tom Tromey <tom@tromey.com>
9216
9217 Revert the header-sorting patch.
9218 * ft32-tdep.c: Revert.
9219 * frv-tdep.c: Revert.
9220 * frv-linux-tdep.c: Revert.
9221 * frame.c: Revert.
9222 * frame-unwind.c: Revert.
9223 * frame-base.c: Revert.
9224 * fork-child.c: Revert.
9225 * findvar.c: Revert.
9226 * findcmd.c: Revert.
9227 * filesystem.c: Revert.
9228 * filename-seen-cache.h: Revert.
9229 * filename-seen-cache.c: Revert.
9230 * fbsd-tdep.c: Revert.
9231 * fbsd-nat.h: Revert.
9232 * fbsd-nat.c: Revert.
9233 * f-valprint.c: Revert.
9234 * f-typeprint.c: Revert.
9235 * f-lang.c: Revert.
9236 * extension.h: Revert.
9237 * extension.c: Revert.
9238 * extension-priv.h: Revert.
9239 * expprint.c: Revert.
9240 * exec.h: Revert.
9241 * exec.c: Revert.
9242 * exceptions.c: Revert.
9243 * event-top.c: Revert.
9244 * event-loop.c: Revert.
9245 * eval.c: Revert.
9246 * elfread.c: Revert.
9247 * dwarf2read.h: Revert.
9248 * dwarf2read.c: Revert.
9249 * dwarf2loc.c: Revert.
9250 * dwarf2expr.h: Revert.
9251 * dwarf2expr.c: Revert.
9252 * dwarf2-frame.c: Revert.
9253 * dwarf2-frame-tailcall.c: Revert.
9254 * dwarf-index-write.h: Revert.
9255 * dwarf-index-write.c: Revert.
9256 * dwarf-index-common.c: Revert.
9257 * dwarf-index-cache.h: Revert.
9258 * dwarf-index-cache.c: Revert.
9259 * dummy-frame.c: Revert.
9260 * dtrace-probe.c: Revert.
9261 * disasm.h: Revert.
9262 * disasm.c: Revert.
9263 * disasm-selftests.c: Revert.
9264 * dictionary.c: Revert.
9265 * dicos-tdep.c: Revert.
9266 * demangle.c: Revert.
9267 * dcache.h: Revert.
9268 * dcache.c: Revert.
9269 * darwin-nat.h: Revert.
9270 * darwin-nat.c: Revert.
9271 * darwin-nat-info.c: Revert.
9272 * d-valprint.c: Revert.
9273 * d-namespace.c: Revert.
9274 * d-lang.c: Revert.
9275 * ctf.c: Revert.
9276 * csky-tdep.c: Revert.
9277 * csky-linux-tdep.c: Revert.
9278 * cris-tdep.c: Revert.
9279 * cris-linux-tdep.c: Revert.
9280 * cp-valprint.c: Revert.
9281 * cp-support.c: Revert.
9282 * cp-namespace.c: Revert.
9283 * cp-abi.c: Revert.
9284 * corelow.c: Revert.
9285 * corefile.c: Revert.
9286 * continuations.c: Revert.
9287 * completer.h: Revert.
9288 * completer.c: Revert.
9289 * complaints.c: Revert.
9290 * coffread.c: Revert.
9291 * coff-pe-read.c: Revert.
9292 * cli-out.h: Revert.
9293 * cli-out.c: Revert.
9294 * charset.c: Revert.
9295 * c-varobj.c: Revert.
9296 * c-valprint.c: Revert.
9297 * c-typeprint.c: Revert.
9298 * c-lang.c: Revert.
9299 * buildsym.c: Revert.
9300 * buildsym-legacy.c: Revert.
9301 * build-id.h: Revert.
9302 * build-id.c: Revert.
9303 * btrace.c: Revert.
9304 * bsd-uthread.c: Revert.
9305 * breakpoint.h: Revert.
9306 * breakpoint.c: Revert.
9307 * break-catch-throw.c: Revert.
9308 * break-catch-syscall.c: Revert.
9309 * break-catch-sig.c: Revert.
9310 * blockframe.c: Revert.
9311 * block.c: Revert.
9312 * bfin-tdep.c: Revert.
9313 * bfin-linux-tdep.c: Revert.
9314 * bfd-target.c: Revert.
9315 * bcache.c: Revert.
9316 * ax-general.c: Revert.
9317 * ax-gdb.h: Revert.
9318 * ax-gdb.c: Revert.
9319 * avr-tdep.c: Revert.
9320 * auxv.c: Revert.
9321 * auto-load.c: Revert.
9322 * arm-wince-tdep.c: Revert.
9323 * arm-tdep.c: Revert.
9324 * arm-symbian-tdep.c: Revert.
9325 * arm-pikeos-tdep.c: Revert.
9326 * arm-obsd-tdep.c: Revert.
9327 * arm-nbsd-tdep.c: Revert.
9328 * arm-nbsd-nat.c: Revert.
9329 * arm-linux-tdep.c: Revert.
9330 * arm-linux-nat.c: Revert.
9331 * arm-fbsd-tdep.c: Revert.
9332 * arm-fbsd-nat.c: Revert.
9333 * arm-bsd-tdep.c: Revert.
9334 * arch-utils.c: Revert.
9335 * arc-tdep.c: Revert.
9336 * arc-newlib-tdep.c: Revert.
9337 * annotate.h: Revert.
9338 * annotate.c: Revert.
9339 * amd64-windows-tdep.c: Revert.
9340 * amd64-windows-nat.c: Revert.
9341 * amd64-tdep.c: Revert.
9342 * amd64-sol2-tdep.c: Revert.
9343 * amd64-obsd-tdep.c: Revert.
9344 * amd64-obsd-nat.c: Revert.
9345 * amd64-nbsd-tdep.c: Revert.
9346 * amd64-nbsd-nat.c: Revert.
9347 * amd64-nat.c: Revert.
9348 * amd64-linux-tdep.c: Revert.
9349 * amd64-linux-nat.c: Revert.
9350 * amd64-fbsd-tdep.c: Revert.
9351 * amd64-fbsd-nat.c: Revert.
9352 * amd64-dicos-tdep.c: Revert.
9353 * amd64-darwin-tdep.c: Revert.
9354 * amd64-bsd-nat.c: Revert.
9355 * alpha-tdep.c: Revert.
9356 * alpha-obsd-tdep.c: Revert.
9357 * alpha-nbsd-tdep.c: Revert.
9358 * alpha-mdebug-tdep.c: Revert.
9359 * alpha-linux-tdep.c: Revert.
9360 * alpha-linux-nat.c: Revert.
9361 * alpha-bsd-tdep.c: Revert.
9362 * alpha-bsd-nat.c: Revert.
9363 * aix-thread.c: Revert.
9364 * agent.c: Revert.
9365 * addrmap.c: Revert.
9366 * ada-varobj.c: Revert.
9367 * ada-valprint.c: Revert.
9368 * ada-typeprint.c: Revert.
9369 * ada-tasks.c: Revert.
9370 * ada-lang.c: Revert.
9371 * aarch64-tdep.c: Revert.
9372 * aarch64-ravenscar-thread.c: Revert.
9373 * aarch64-newlib-tdep.c: Revert.
9374 * aarch64-linux-tdep.c: Revert.
9375 * aarch64-linux-nat.c: Revert.
9376 * aarch64-fbsd-tdep.c: Revert.
9377 * aarch64-fbsd-nat.c: Revert.
9378 * aarch32-linux-nat.c: Revert.
9379
d55e5aa6
TT
93802019-04-05 Tom Tromey <tom@tromey.com>
9381
9382 * ft32-tdep.c: Sort headers.
9383 * frv-tdep.c: Sort headers.
9384 * frv-linux-tdep.c: Sort headers.
9385 * frame.c: Sort headers.
9386 * frame-unwind.c: Sort headers.
9387 * frame-base.c: Sort headers.
9388 * fork-child.c: Sort headers.
9389 * findvar.c: Sort headers.
9390 * findcmd.c: Sort headers.
9391 * filesystem.c: Sort headers.
9392 * filename-seen-cache.h: Sort headers.
9393 * filename-seen-cache.c: Sort headers.
9394 * fbsd-tdep.c: Sort headers.
9395 * fbsd-nat.h: Sort headers.
9396 * fbsd-nat.c: Sort headers.
9397 * f-valprint.c: Sort headers.
9398 * f-typeprint.c: Sort headers.
9399 * f-lang.c: Sort headers.
9400 * extension.h: Sort headers.
9401 * extension.c: Sort headers.
9402 * extension-priv.h: Sort headers.
9403 * expprint.c: Sort headers.
9404 * exec.h: Sort headers.
9405 * exec.c: Sort headers.
9406 * exceptions.c: Sort headers.
9407 * event-top.c: Sort headers.
9408 * event-loop.c: Sort headers.
9409 * eval.c: Sort headers.
9410 * elfread.c: Sort headers.
9411 * dwarf2read.h: Sort headers.
9412 * dwarf2read.c: Sort headers.
9413 * dwarf2loc.c: Sort headers.
9414 * dwarf2expr.h: Sort headers.
9415 * dwarf2expr.c: Sort headers.
9416 * dwarf2-frame.c: Sort headers.
9417 * dwarf2-frame-tailcall.c: Sort headers.
9418 * dwarf-index-write.h: Sort headers.
9419 * dwarf-index-write.c: Sort headers.
9420 * dwarf-index-common.c: Sort headers.
9421 * dwarf-index-cache.h: Sort headers.
9422 * dwarf-index-cache.c: Sort headers.
9423 * dummy-frame.c: Sort headers.
9424 * dtrace-probe.c: Sort headers.
9425 * disasm.h: Sort headers.
9426 * disasm.c: Sort headers.
9427 * disasm-selftests.c: Sort headers.
9428 * dictionary.c: Sort headers.
9429 * dicos-tdep.c: Sort headers.
9430 * demangle.c: Sort headers.
9431 * dcache.h: Sort headers.
9432 * dcache.c: Sort headers.
9433 * darwin-nat.h: Sort headers.
9434 * darwin-nat.c: Sort headers.
9435 * darwin-nat-info.c: Sort headers.
9436 * d-valprint.c: Sort headers.
9437 * d-namespace.c: Sort headers.
9438 * d-lang.c: Sort headers.
9439 * ctf.c: Sort headers.
9440 * csky-tdep.c: Sort headers.
9441 * csky-linux-tdep.c: Sort headers.
9442 * cris-tdep.c: Sort headers.
9443 * cris-linux-tdep.c: Sort headers.
9444 * cp-valprint.c: Sort headers.
9445 * cp-support.c: Sort headers.
9446 * cp-namespace.c: Sort headers.
9447 * cp-abi.c: Sort headers.
9448 * corelow.c: Sort headers.
9449 * corefile.c: Sort headers.
9450 * continuations.c: Sort headers.
9451 * completer.h: Sort headers.
9452 * completer.c: Sort headers.
9453 * complaints.c: Sort headers.
9454 * coffread.c: Sort headers.
9455 * coff-pe-read.c: Sort headers.
9456 * cli-out.h: Sort headers.
9457 * cli-out.c: Sort headers.
9458 * charset.c: Sort headers.
9459 * c-varobj.c: Sort headers.
9460 * c-valprint.c: Sort headers.
9461 * c-typeprint.c: Sort headers.
9462 * c-lang.c: Sort headers.
9463 * buildsym.c: Sort headers.
9464 * buildsym-legacy.c: Sort headers.
9465 * build-id.h: Sort headers.
9466 * build-id.c: Sort headers.
9467 * btrace.c: Sort headers.
9468 * bsd-uthread.c: Sort headers.
9469 * breakpoint.h: Sort headers.
9470 * breakpoint.c: Sort headers.
9471 * break-catch-throw.c: Sort headers.
9472 * break-catch-syscall.c: Sort headers.
9473 * break-catch-sig.c: Sort headers.
9474 * blockframe.c: Sort headers.
9475 * block.c: Sort headers.
9476 * bfin-tdep.c: Sort headers.
9477 * bfin-linux-tdep.c: Sort headers.
9478 * bfd-target.c: Sort headers.
9479 * bcache.c: Sort headers.
9480 * ax-general.c: Sort headers.
9481 * ax-gdb.h: Sort headers.
9482 * ax-gdb.c: Sort headers.
9483 * avr-tdep.c: Sort headers.
9484 * auxv.c: Sort headers.
9485 * auto-load.c: Sort headers.
9486 * arm-wince-tdep.c: Sort headers.
9487 * arm-tdep.c: Sort headers.
9488 * arm-symbian-tdep.c: Sort headers.
9489 * arm-pikeos-tdep.c: Sort headers.
9490 * arm-obsd-tdep.c: Sort headers.
9491 * arm-nbsd-tdep.c: Sort headers.
9492 * arm-nbsd-nat.c: Sort headers.
9493 * arm-linux-tdep.c: Sort headers.
9494 * arm-linux-nat.c: Sort headers.
9495 * arm-fbsd-tdep.c: Sort headers.
9496 * arm-fbsd-nat.c: Sort headers.
9497 * arm-bsd-tdep.c: Sort headers.
9498 * arch-utils.c: Sort headers.
9499 * arc-tdep.c: Sort headers.
9500 * arc-newlib-tdep.c: Sort headers.
9501 * annotate.h: Sort headers.
9502 * annotate.c: Sort headers.
9503 * amd64-windows-tdep.c: Sort headers.
9504 * amd64-windows-nat.c: Sort headers.
9505 * amd64-tdep.c: Sort headers.
9506 * amd64-sol2-tdep.c: Sort headers.
9507 * amd64-obsd-tdep.c: Sort headers.
9508 * amd64-obsd-nat.c: Sort headers.
9509 * amd64-nbsd-tdep.c: Sort headers.
9510 * amd64-nbsd-nat.c: Sort headers.
9511 * amd64-nat.c: Sort headers.
9512 * amd64-linux-tdep.c: Sort headers.
9513 * amd64-linux-nat.c: Sort headers.
9514 * amd64-fbsd-tdep.c: Sort headers.
9515 * amd64-fbsd-nat.c: Sort headers.
9516 * amd64-dicos-tdep.c: Sort headers.
9517 * amd64-darwin-tdep.c: Sort headers.
9518 * amd64-bsd-nat.c: Sort headers.
9519 * alpha-tdep.c: Sort headers.
9520 * alpha-obsd-tdep.c: Sort headers.
9521 * alpha-nbsd-tdep.c: Sort headers.
9522 * alpha-mdebug-tdep.c: Sort headers.
9523 * alpha-linux-tdep.c: Sort headers.
9524 * alpha-linux-nat.c: Sort headers.
9525 * alpha-bsd-tdep.c: Sort headers.
9526 * alpha-bsd-nat.c: Sort headers.
9527 * aix-thread.c: Sort headers.
9528 * agent.c: Sort headers.
9529 * addrmap.c: Sort headers.
9530 * ada-varobj.c: Sort headers.
9531 * ada-valprint.c: Sort headers.
9532 * ada-typeprint.c: Sort headers.
9533 * ada-tasks.c: Sort headers.
9534 * ada-lang.c: Sort headers.
9535 * aarch64-tdep.c: Sort headers.
9536 * aarch64-ravenscar-thread.c: Sort headers.
9537 * aarch64-newlib-tdep.c: Sort headers.
9538 * aarch64-linux-tdep.c: Sort headers.
9539 * aarch64-linux-nat.c: Sort headers.
9540 * aarch64-fbsd-tdep.c: Sort headers.
9541 * aarch64-fbsd-nat.c: Sort headers.
9542 * aarch32-linux-nat.c: Sort headers.
9543
699bd4cf
TT
95442019-04-04 Tom Tromey <tom@tromey.com>
9545
9546 * varobj.c (varobj_create): Update.
9547 * rust-exp.y (struct rust_parser) <update_innermost_block,
9548 lookup_symbol>: New methods.
9549 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9550 Rename.
9551 (rust_parser::rust_lookup_type)
9552 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9553 * printcmd.c (display_command, do_one_display): Update.
9554 * parser-defs.h (struct parser_state) <parser_state>: Add
9555 "tracker" parameter.
9556 (block_tracker): New member.
9557 (class innermost_block_tracker) <innermost_block_tracker>: Add
9558 "types" parameter.
9559 <reset>: Remove method.
9560 (innermost_block): Don't declare.
9561 (null_post_parser): Update.
9562 * parse.c (innermost_block): Remove global.
9563 (write_dollar_variable): Update.
9564 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9565 Remove "tracker_types" parameter.
9566 (parse_expression): Add "tracker" parameter.
9567 (parse_expression_for_completion): Update.
9568 (null_post_parser): Add "tracker" parameter.
9569 * p-exp.y: Update rules.
9570 * m2-exp.y: Update rules.
9571 * language.h (struct language_defn) <la_post_parser>: Add
9572 "tracker" parameter.
9573 * go-exp.y: Update rules.
9574 * f-exp.y: Update rules.
9575 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9576 parameter.
9577 * d-exp.y: Update rules.
9578 * c-exp.y: Update rules.
9579 * breakpoint.c (set_breakpoint_condition): Create an
9580 innermost_block_tracker.
9581 (watch_command_1): Likewise.
9582 * ada-lang.c (resolve): Add "tracker" parameter.
9583 (resolve_subexp): Likewise.
9584 * ada-exp.y (write_var_from_sym): Update.
9585
dac43e32
TT
95862019-04-04 Tom Tromey <tom@tromey.com>
9587
9588 * type-stack.h: New file.
9589 * type-stack.c: New file.
9590 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9591 type-stack.h.
9592 (insert_into_type_stack, insert_type, push_type, push_type_int)
9593 (insert_type_address_space, pop_type, pop_type_int)
9594 (pop_typelist, pop_type_stack, append_type_stack)
9595 (push_type_stack, get_type_stack, push_typelist)
9596 (follow_type_instance_flags, follow_types): Don't declare.
9597 * parse.c (type_stack): Remove global.
9598 (parse_exp_in_context): Update.
9599 (insert_into_type_stack, insert_type, push_type, push_type_int)
9600 (insert_type_address_space, pop_type, pop_type_int)
9601 (pop_typelist, pop_type_stack, append_type_stack)
9602 (push_type_stack, get_type_stack, push_typelist)
9603 (follow_type_instance_flags, follow_types): Remove (moved to
9604 type-stack.c).
9605 * f-exp.y (type_stack): New global.
9606 Update rules.
9607 (push_kind_type, f_parse): Update.
9608 * d-exp.y (type_stack): New global.
9609 Update rules.
9610 (d_parse): Update.
9611 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9612 Update rules.
9613 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9614 (HFILES_NO_SRCDIR): Add type-stack.h.
9615
2a612529
TT
96162019-04-04 Tom Tromey <tom@tromey.com>
9617
9618 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9619 (rust_parser::convert_ast_to_expression, rust_parse)
9620 (rust_lex_test_completion, rust_lex_tests): Update.
9621 * parser-defs.h (struct expr_completion_state): New.
9622 (struct parser_state) <parser_state>: Add completion parameter.
9623 <mark_struct_expression, mark_completion_tag>: New methods.
9624 <parse_completion, m_completion_state>: New members.
9625 (prefixify_expression, null_post_parser): Update.
9626 (mark_struct_expression, mark_completion_tag): Don't declare.
9627 * parse.c (parse_completion, expout_last_struct)
9628 (expout_tag_completion_type, expout_completion_name): Remove
9629 globals.
9630 (parser_state::mark_struct_expression)
9631 (parser_state::mark_completion_tag): Now methods.
9632 (prefixify_expression): Add last_struct parameter.
9633 (prefixify_subexp): Likewise.
9634 (parse_exp_1): Update.
9635 (parse_exp_in_context): Add cstate parameter. Update.
9636 (parse_expression_for_completion): Create an
9637 expr_completion_state.
9638 (null_post_parser): Add "completion" parameter.
9639 * p-exp.y: Update rules.
9640 (yylex): Update.
9641 * language.h (struct language_defn) <la_post_parser>: Add
9642 "completing" parameter.
9643 * go-exp.y: Update rules.
9644 (lex_one_token): Update.
9645 * expression.h (parse_completion): Don't declare.
9646 * d-exp.y: Update rules.
9647 (lex_one_token): Update rules.
9648 * c-exp.y: Update rules.
9649 (lex_one_token): Update.
9650 * ada-lang.c (resolve): Add "parse_completion" parameter.
9651 (resolve_subexp): Likewise.
9652 (ada_resolve_function): Likewise.
9653
43476f0b
TT
96542019-04-04 Tom Tromey <tom@tromey.com>
9655
9656 * parser-defs.h (struct parser_state) <start_arglist,
9657 end_arglist>: New methods.
9658 <arglist_len, m_funcall_chain>: New members.
9659 (arglist_len, start_arglist, end_arglist): Don't declare.
9660 * parse.c (arglist_len, funcall_chain): Remove global.
9661 (start_arglist, end_arglist): Remove functions.
9662 (parse_exp_in_context): Update.
9663 * p-exp.y: Update rules.
9664 * m2-exp.y: Update rules.
9665 * go-exp.y: Update rules.
9666 * f-exp.y: Update rules.
9667 * d-exp.y: Update rules.
9668 * c-exp.y: Update rules.
9669
5776fca3
TT
96702019-04-04 Tom Tromey <tom@tromey.com>
9671
9672 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9673 lex_operator, push_back>: New methods.
9674 Update all rules.
9675 (rust_parser::lex_hex, lex_escape): Rename and update.
9676 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9677 (rust_parser::lex_operator): Rename and update.
9678 (rust_parser::lex_number, rustyylex, rustyyerror)
9679 (rust_lex_test_init, rust_lex_test_sequence)
9680 (rust_lex_test_push_back, rust_lex_tests): Update.
9681 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9682 parameter.
9683 <lexptr, prev_lexptr>: New members.
9684 (lexptr, prev_lexptr): Don't declare.
9685 * parse.c (lexptr, prev_lexptr): Remove globals.
9686 (parse_exp_in_context): Update.
9687 * p-exp.y (yylex, yyerror): Update.
9688 * m2-exp.y (parse_number, yylex, yyerror): Update.
9689 * go-exp.y (lex_one_token, yyerror): Update.
9690 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9691 * d-exp.y (lex_one_token, yyerror): Update.
9692 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9693 (lex_one_token, yyerror): Update.
9694 * ada-lex.l (YY_INPUT): Update.
9695 (rewind_to_char): Update.
9696 * ada-exp.y (yyerror): Update.
9697
8621b685
TT
96982019-04-04 Tom Tromey <tom@tromey.com>
9699
9700 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9701 * parser-defs.h (struct parser_state) <parser_state>: Add new
9702 parameter.
9703 <comma_terminates>: New member.
9704 (comma_terminates): Don't declare global.
9705 * parse.c (comma_terminates): Remove global.
9706 (parse_exp_in_context): Update.
9707 * p-exp.y (yylex): Update.
9708 * m2-exp.y (yylex): Update.
9709 * go-exp.y (lex_one_token): Update.
9710 * f-exp.y (yylex): Update.
9711 * d-exp.y (lex_one_token): Update.
9712 * c-exp.y (lex_one_token): Update.
9713 * ada-lex.l: Update.
9714
28aaf3fd
TT
97152019-04-04 Tom Tromey <tom@tromey.com>
9716
9717 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9718 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9719 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9720 * parser-defs.h (paren_depth): Don't declare.
9721 * parse.c (paren_depth): Remove global.
9722 (parse_exp_in_context): Update.
9723 * p-exp.y (paren_depth): New global.
9724 (pascal_parse): Initialize it.
9725 * m2-exp.y (paren_depth): New global.
9726 (m2_parse): Initialize it.
9727 * go-exp.y (paren_depth): New global.
9728 (go_parse): Initialize it.
9729 * f-exp.y (paren_depth): New global.
9730 (f_parse): Initialize it.
9731 * d-exp.y (paren_depth): New global.
9732 (d_parse): Initialize it.
9733 * c-exp.y (paren_depth): New global.
9734 (c_parse): Initialize it.
9735 * ada-lex.l (paren_depth): New global.
9736 (lexer_init): Initialize it.
9737
1e58a4a4
TT
97382019-04-04 Tom Tromey <tom@tromey.com>
9739
9740 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9741 (rust_parser::convert_ast_to_type)
9742 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9743 * parser-defs.h (struct parser_state) <parser_state>: Add
9744 parameters. Initialize new members.
9745 <expression_context_block, expression_context_pc>: New members.
9746 * parse.c (expression_context_block, expression_context_pc):
9747 Remove globals.
9748 (parse_exp_in_context): Update.
9749 * p-exp.y: Update all rules.
9750 (yylex): Update.
9751 * m2-exp.y: Update all rules.
9752 (yylex): Update.
9753 * go-exp.y (yylex): Update.
9754 * f-exp.y (yylex): Update.
9755 * d-exp.y: Update all rules.
9756 (yylex): Update.
9757 * c-exp.y: Update all rules.
9758 (lex_one_token, classify_name, yylex, c_parse): Update.
9759 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9760
37eedb39
TT
97612019-04-04 Tom Tromey <tom@tromey.com>
9762
9763 * gdbarch.h, gdbarch.c: Rebuild.
9764 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9765 * stap-probe.h:
9766 (struct stap_parse_info): Replace "parser_state" with
9767 "expr_builder".
9768 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9769 (parser_state): New class.
9770 * parse.c (expr_builder): Rename.
9771 (expr_builder::release): Rename.
9772 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9773 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9774 (write_exp_elt_longcst, write_exp_elt_floatcst)
9775 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9776 (write_exp_string_vector, write_exp_bitstring)
9777 (write_exp_msymbol, mark_struct_expression)
9778 (write_dollar_variable)
9779 (insert_type_address_space, increase_expout_size): Replace
9780 "parser_state" with "expr_builder".
9781 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9782 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9783 "parser_state" with "expr_builder".
9784
73923d7e
TT
97852019-04-04 Tom Tromey <tom@tromey.com>
9786
9787 * rust-exp.y: Replace "parse_language" with method call.
9788 * p-exp.y:
9789 (yylex): Replace "parse_language" with method call.
9790 * m2-exp.y:
9791 (yylex): Replace "parse_language" with method call.
9792 * go-exp.y (classify_name): Replace "parse_language" with method
9793 call.
9794 * f-exp.y (yylex): Replace "parse_language" with method call.
9795 * d-exp.y (lex_one_token): Replace "parse_language" with method
9796 call.
9797 * c-exp.y:
9798 (lex_one_token, classify_name, yylex): Replace "parse_language"
9799 with method call.
9800 * ada-exp.y (find_primitive_type, type_char)
9801 (type_system_address): Replace "parse_language" with method call.
9802
fa9f5be6
TT
98032019-04-04 Tom Tromey <tom@tromey.com>
9804
9805 * rust-exp.y: Replace "parse_gdbarch" with method call.
9806 * parse.c (write_dollar_variable, insert_type_address_space):
9807 Replace "parse_gdbarch" with method call.
9808 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9809 call.
9810 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9811 call.
9812 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9813 "parse_gdbarch" with method call.
9814 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9815 with method call.
9816 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9817 "parse_gdbarch" with method call.
9818 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9819 "parse_gdbarch" with method call.
9820 * c-exp.y (parse_type, parse_number, classify_name): Replace
9821 "parse_gdbarch" with method call.
9822 * ada-lex.l: Replace "parse_gdbarch" with method call.
9823 * ada-exp.y (parse_type, find_primitive_type, type_char)
9824 (type_system_address): Replace "parse_gdbarch" with method call.
9825
1201a264
TT
98262019-04-04 Tom Tromey <tom@tromey.com>
9827
9828 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9829 * stap-probe.c (stap_parse_argument): Update.
9830 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9831 initial_size parameter.
9832 * rust-exp.y (rust_lex_tests): Update.
9833 * parse.c (parser_state): Update.
9834 (parse_exp_in_context): Update.
9835 * parser-defs.h (struct parser_state) <parser_state>: Remove
9836 "initial_size" parameter.
9837
e3980ce2
TT
98382019-04-04 Tom Tromey <tom@tromey.com>
9839
9840 * parser-defs.h (increase_expout_size): Don't declare.
9841 * parse.c (increase_expout_size): Now static.
9842
e9f8e3f1
TS
98432019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9844
9845 * gnu-nat.c (gnu_nat_target::wait): Fix
9846 target_waitstatus_to_string call.
9847
d7df6549
AB
98482019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9849
9850 * eval.c (evaluate_subexp_standard): Handle internal functions
9851 during Fortran function call handling.
9852
8bdc1658
AB
98532019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9854
9855 * NEWS: Mention new internal functions.
9856 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9857 (read_base_type): Use dwarf2_init_complex_target_type.
9858 * value.c (creal_internal_fn): New function.
9859 (cimag_internal_fn): New function.
9860 (_initialize_values): Register new internal functions.
9861
c29705b7
PW
98622019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863
9864 * infrun.c (stop_all_threads): If debug_infrun, always
9865 trace the wait status after wait_one, using
9866 target_waitstatus_to_string and target_pid_to_str.
9867 (handle_inferior_event): Replace various trace of
9868 wait status kind by a single trace.
9869 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9870 wait status kind image by target_waitstatus_to_string.
9871 * target/waitstatus.c (target_waitstatus_to_string): Fix
9872 obsolete comment.
9873
05caa1d2
TT
98742019-04-01 Tom Tromey <tromey@adacore.com>
9875
9876 PR symtab/23331:
9877 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9878
9d1447e0
SDJ
98792019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9880 Pedro Alves <palves@redhat.com>
9881
9882 * top.c (quit_force): Call 'finalize_values'.
9883 * value.c (finalize_values): New function.
9884 * value.h (finalize_values): Declare.
9885
7734102d
EZ
98862019-03-30 Eli Zaretskii <eliz@gnu.org>
9887
9888 * NEWS: Announce $_gdb_major and $_gdb_minor.
9889
9890 * top.c (init_gdb_version_vars): New function.
9891 (gdb_init): Call init_gdb_version_vars.
9892
188e1fa9
TT
98932019-03-29 Tom Tromey <tromey@adacore.com>
9894
9895 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9896 help text. Remove dead code.
9897
2880242d
KS
98982019-03-29 Keith Seitz <keiths@redhat.com>
9899
9900 From Siddhesh Poyarekar:
9901 * f-lang.h (f77_get_upperbound): Return LONGEST.
9902 (f77_get_lowerbound): Likewise.
9903 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9904 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9905 print them.
9906 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9907 plongest to format print it.
9908 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9909 (f77_get_upperbound): Likewise.
9910 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9911 LOWER_BOUND to LONGEST.
9912 (f77_create_arrayprint_offset_tbl): Likewise.
9913
cc1defb1
KS
99142019-03-29 Keith Seitz <keiths@redhat.com>
9915
9916 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9917 %s/pulongest for TYPE_LENGTH instead of %d in format
9918 strings.
9919 * ada-typerint.c (ada_print_type): Likewise.
9920 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9921 * compile/compile-c-support.c (generate_register_struct): Likewise.
9922 * gdbtypes.c (recursive_dump_type): Likewise.
9923 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9924 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9925 instead of %d in format strings.
9926 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9927 to std::min to ULONGEST.
9928 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9929 instead of %d in format strings.
9930 * tracepoint.c (info_scope_command): Likewise.
9931 * typeprint.c (print_offset_data::update)
9932 (print_offset_data::finish): Likewise.
9933 * xtensa-tdep.c (xtensa_store_return_value)
9934 (xtensa_push_dummy_call): Likewise.
9935
e432ccf1
JT
99362019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9937
9938 * windows-nat.c (display_selector): Fixed format specifications
9939 for 64-bit Cygwin.
9940
65d2b333
PW
99412019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9942
9943 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9944
f489207e
SL
99452019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9946
9947 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9948 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9949 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9950 (nios2_linux_init_abi): Install it.
9951
bffa1015
AH
99522019-03-28 Alan Hayward <alan.hayward@arm.com>
9953
9954 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9955
fc96163a
AH
99562019-03-28 Alan Hayward <alan.hayward@arm.com>
9957
9958 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9959
20dc7e9b
PW
99602019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9961 Tom Tromey <tromey@adacore.com>
9962
9963 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9964
7f5331a8
JB
99652019-03-26 Joel Brobecker <brobecker@adacore.com>
9966
9967 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9968 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9969 method to compute the bounds of range types. Also print "[evaluated]"
9970 if the bounds' values come from a dynamic evaluation.
9971
18c77628
AB
99722019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9973
9974 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9975 whitespace when pretty printing is on.
9976
53c973f2
AH
99772019-03-26 Alan Hayward <alan.hayward@arm.com>
9978
e79be6e5 9979 * ppc-linux-nat.c: Add include.
53c973f2 9980
d851aa71
AH
99812019-03-26 Alan Hayward <alan.hayward@arm.com>
9982
e79be6e5 9983 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9984
2fe7bab7
AH
99852019-03-26 Alan Hayward <alan.hayward@arm.com>
9986
e79be6e5 9987 * arm-linux-nat.c: Add include.
2fe7bab7 9988
068ef30e
SM
99892019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9990
9991 * source-cache.c (source_cache::get_source_lines): Re-read
9992 fullname after calling open_source_file.
9993
81a24d04
JB
99942019-03-25 John Baldwin <jhb@FreeBSD.org>
9995
9996 * NEWS: Mention TLS support for FreeBSD.
9997
79e7ae11
TT
99982019-03-25 Tom Tromey <tromey@adacore.com>
9999
10000 * minsyms.c (BUNCH_SIZE): Update comment.
10001 (~minimal_symbol_reader): Remove old comment.
10002 (compact_minimal_symbols): Update comment.
10003 (minimal_symbol_reader::install): Remove old comment. Update
10004 other comments.
10005
d45963c2
AH
100062019-03-25 Alan Hayward <alan.hayward@arm.com>
10007
10008 * s390-linux-nat.c: Add include.
10009
0f83012e
AH
100102019-03-25 Alan Hayward <alan.hayward@arm.com>
10011
10012 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10013 Call linux_get_hwcap.
10014 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10015 Likewise.
10016 (aarch64_linux_get_hwcap): Remove function.
10017 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10018 declaration.
10019 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10020 linux_get_hwcap.
10021 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10022 * linux-tdep.c (linux_get_hwcap): Add function.
10023 (linux_get_hwcap2): Likewise.
10024 * linux-tdep.h (linux_get_hwcap): Add declaration.
10025 (linux_get_hwcap2): Likewise.
10026 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10027 (ppc_linux_get_hwcap2): Likewise.
10028 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10029 linux_get_hwcap.
10030 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10031 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10032 (ppc_linux_nat_target::read_description): Likewise.
10033 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10034 * s390-linux-nat.c: Likewise.
10035 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10036
6640a367
TT
100372019-03-24 Tom Tromey <tom@tromey.com>
10038
10039 * ada-lang.c (standard_lookup): Simplify initialization.
10040 (ada_lookup_symbol_nonlocal): Simplify return.
10041 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10042 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10043 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10044 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10045 initialization.
10046 * solib.c (solib_global_lookup): Simplify.
10047 * symtab.c (null_block_symbol): Remove.
10048 (symbol_cache_lookup): Simplify returns.
10049 (lookup_language_this): Simplify returns.
10050 (lookup_symbol_aux): Simplify return.
10051 (lookup_local_symbol): Simplify returns.
10052 (lookup_global_symbol_from_objfile): Simplify return.
10053 (lookup_symbol_in_objfile_symtabs)
10054 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10055 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10056 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10057 * cp-namespace.c (cp_lookup_bare_symbol)
10058 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10059 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10060 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10061 (cp_lookup_symbol_via_imports): Simplify initialization.
10062 (find_symbol_in_baseclass): Likewise.
10063 * symtab.h (null_block_symbol): Remove.
10064 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10065 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10066 (d_lookup_symbol_module): Likewise.
10067 (find_symbol_in_baseclass): Simplify initialization.
10068
a930ebcd
TT
100692019-03-24 Tom Tromey <tom@tromey.com>
10070
10071 * expression.h: Don't include symtab.h.
10072 (struct block): Forward declare.
10073
582942f4
TT
100742019-03-24 Tom Tromey <tom@tromey.com>
10075
10076 * c-exp.y (typebase): Remove casts.
10077 * gdbtypes.c (lookup_unsigned_typename, )
10078 (lookup_signed_typename): Remove cast.
10079 * eval.c (parse_to_comma_and_eval): Remove cast.
10080 * parse.c (write_dollar_variable): Remove cast.
10081 * block.h (struct block) <superblock>: Now const.
10082 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10083 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10084 (map_block): Make "block" const.
10085 * symfile.h (struct quick_symbol_functions)
10086 <map_matching_symbols>: Constify block argument to "callback".
10087 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10088 const.
10089 (find_pc_sect_compunit_symtab): Make "b" const.
10090 (find_symbol_at_address): Likewise.
10091 (search_symbols): Likewise.
10092 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10093 (dw2_debug_names_lookup_symbol): Likewise.
10094 (dw2_map_matching_symbols): Update.
10095 * p-valprint.c (pascal_val_print): Remove "block".
10096 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10097 (aux_add_nonlocal_symbols): Make "block" const.
10098 (resolve_subexp): Remove cast.
10099 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10100 const.
10101 (iterate_over_file_blocks): Likewise.
10102 * f-exp.y (%union) <bval>: Remove.
10103 * coffread.c (patch_opaque_types): Make "b" const.
10104 * spu-tdep.c (spu_catch_start): Make "block" const.
10105 * c-valprint.c (print_unpacked_pointer): Remove "block".
10106 * symmisc.c (dump_symtab_1): Make "b" const.
10107 (block_depth): Make "block" const.
10108 * d-exp.y (%union) <bval>: Remove.
10109 * cp-support.h (cp_lookup_rtti_type): Update.
10110 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10111 * psymtab.c (psym_lookup_symbol): Make "block" const.
10112 (maintenance_check_psymtabs): Make "b" const.
10113 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10114 (enumerate_locals, enumerate_args): Update.
10115 * python/py-symtab.c (stpy_global_block): Make "block" const.
10116 (stpy_static_block): Likewise.
10117 * inline-frame.c (block_starting_point_at): Make "new_block"
10118 const.
10119 * block.c (find_block_in_blockvector): Make return type const.
10120 (blockvector_for_pc_sect): Make "b" const.
10121 (find_block_in_blockvector): Make "b" const.
10122
7ad417dd
TT
101232019-03-23 Tom Tromey <tom@tromey.com>
10124
10125 * varobj.c (varobj_create): Update.
10126 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10127 * printcmd.c (display_command, do_one_display): Don't reset
10128 innermost_block.
10129 * parser-defs.h (enum innermost_block_tracker_type): Move to
10130 expression.h.
10131 (innermost_block): Update comment.
10132 * parse.c (parse_exp_1): Add tracker_types parameter.
10133 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10134 tracker_types parameter. Reset innermost_block.
10135 (parse_exp_in_context): Remove.
10136 (parse_expression_for_completion): Update.
10137 * objfiles.c (~objfile): Don't reset expression_context_block or
10138 innermost_block.
10139 * expression.h (enum innermost_block_tracker_type): Move from
10140 parser-defs.h.
10141 (parse_exp_1): Add tracker_types parameter.
10142 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10143 reset innermost_block.
10144
b366c208
TT
101452019-03-23 Tom Tromey <tom@tromey.com>
10146
10147 * objfiles.h: Include bcache.h.
10148
9bb9b2f9
TT
101492019-03-23 Tom Tromey <tom@tromey.com>
10150
10151 * linespec.c (get_current_search_block): Use
10152 scoped_restore_current_language.
10153 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10154
59c28372
AH
101552019-03-22 Alan Hayward <alan.hayward@arm.com>
10156 Jiong Wang <jiong.wang@arm.com>
10157
10158 * aarch64-linux-tdep.c
10159 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10160 section.
10161 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10162
17e116a7
AH
101632019-03-22 Alan Hayward <alan.hayward@arm.com>
10164 Jiong Wang <jiong.wang@arm.com>
10165
10166 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10167 instructions.
10168 (aarch64_analyze_prologue_test): Add PACIASP test.
10169 (aarch64_prologue_prev_register): Unmask PC value.
10170
11e1b75f
AH
101712019-03-22 Alan Hayward <alan.hayward@arm.com>
10172 Jiong Wang <jiong.wang@arm.com>
10173
10174 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10175 (aarch64_dwarf2_prev_register): Unmask PC value.
10176 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10177 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10178 DW_CFA_AARCH64_negate_ra_state.
10179 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10180
34dcc7cf
AH
101812019-03-22 Alan Hayward <alan.hayward@arm.com>
10182 Jiong Wang <jiong.wang@arm.com>
10183
10184 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10185 registers.
10186 (aarch64_pseudo_register_name): Likewise.
10187 (aarch64_pseudo_register_type): Likewise.
10188 (aarch64_pseudo_register_reggroup_p): Likewise.
10189 (aarch64_gdbarch_init): Add pauth registers.
10190 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10191 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10192 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10193 (struct gdbarch_tdep): Add regnum for ra_state.
10194
1ef53e6b
AH
101952019-03-22 Alan Hayward <alan.hayward@arm.com>
10196 Jiong Wang <jiong.wang@arm.com>
10197
10198 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10199
76bed0fd
AH
102002019-03-22 Alan Hayward <alan.hayward@arm.com>
10201 Jiong Wang <jiong.wang@arm.com>
10202
10203 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10204 function.
10205 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10206 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10207 (aarch64_gdbarch_init): Add puth registers.
10208 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10209 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10210 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10211
ee4fbcfa
AH
102122019-03-22 Alan Hayward <alan.hayward@arm.com>
10213 Jiong Wang <jiong.wang@arm.com>
10214
10215 * aarch64-linux-nat.c
10216 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10217 * aarch64-linux-tdep.c
10218 (aarch64_linux_core_read_description): Likewise.
10219 (aarch64_linux_get_hwcap): New function.
10220 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10221 (aarch64_linux_get_hwcap): New declaration.
10222
6dc0ebde
AH
102232019-03-22 Alan Hayward <alan.hayward@arm.com>
10224 Jiong Wang <jiong.wang@arm.com>
10225
10226 * aarch64-linux-nat.c
10227 (aarch64_linux_nat_target::read_description): Add pauth param.
10228 * aarch64-linux-tdep.c
10229 (aarch64_linux_core_read_description): Likewise.
10230 * aarch64-tdep.c (struct target_desc): Add in pauth.
10231 (aarch64_read_description): Add pauth param.
10232 (aarch64_gdbarch_init): Likewise.
10233 * aarch64-tdep.h (aarch64_read_description): Likewise.
10234 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10235 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10236 * features/Makefile: Add new files.
10237 * features/aarch64-pauth.c: New file.
10238 * features/aarch64-pauth.xml: New file.
10239
595915c1
TT
102402019-03-20 Tom Tromey <tromey@adacore.com>
10241
10242 * infrun.c (handle_inferior_event): Rename from
10243 handle_inferior_event_1. Create a scoped_value_mark.
10244 (handle_inferior_event): Remove.
10245
4c7d57e7
TT
102462019-03-19 Tom Tromey <tromey@adacore.com>
10247
10248 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10249 * infrun.h (print_stop_event): Add "displays" parameter.
10250 * infrun.c (print_stop_event): Add "displays" parameter.
10251
cb246234
PA
102522019-03-19 Pedro Alves <palves@redhat.com>
10253
10254 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10255 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10256 to -1. Fix TABs vs spaces.
10257 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10258 * tui/tui-out.h (tui_ui_out) Add intro comments.
10259 <m_line, m_start_of_line>: In-class initialize, and add describing
10260 comment.
10261
3a0e45b2
AH
102622019-03-18 Alan Hayward <alan.hayward@arm.com>
10263
10264 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10265 variable names.
10266 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10267
5371b850
PA
102682019-03-18 Pedro Alves <palves@redhat.com>
10269 Eli Zaretskii <eliz@gnu.org>
10270
10271 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10272 m_line and m_start_of_line.
10273
b17c4cd0
EZ
102742019-03-18 Eli Zaretskii <eliz@gnu.org>
10275
10276 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10277 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10278 it returns a newline. This fixes a regression in TU mode, whereby
10279 the next line is output on the same screen line as the user input.
10280
4bd56d18
TT
102812019-03-18 Tom Tromey <tromey@adacore.com>
10282
10283 * minsyms.c (minimal_symbol_reader::install): Remove call to
10284 obstack_blank.
10285
55c10aca
PA
102862019-03-18 Pedro Alves <palves@redhat.com>
10287
10288 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10289 New globals.
10290 (apply_style): New, factored out from ...
10291 (apply_ansi_escape): ... this. Handle reverse video mode.
10292 (tui_set_reverse_mode): New function.
10293 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10294 * tui/tui-winsource.c (tui_show_source_line): Use
10295 tui_set_reverse_mode instead of setting A_STANDOUT.
10296 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10297 New setter methods.
10298
647bb750
HD
102992019-03-18 Hannes Domani <ssbssa@yahoo.de>
10300
10301 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10302 Handle tabs.
10303
bff8c71f
TT
103042019-03-18 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-lang.c (empty_array): Add "high" parameter.
10307 (ada_evaluate_subexp): Update.
10308
58785d98
ST
103092019-03-17 Sergei Trofimovich <siarheit@google.com>
10310
10311 * unittests/string_view-selftests.c: Define
10312 _initialize_string_view_selftests unconditionally.
10313
d4cbef22
ВМ
103142019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10315
10316 PR gdb/24350
10317 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10318
fce4c071
ВМ
103192019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10320
10321 PR gdb/24351
10322 * windows-nat.c (display_selector): Fix format specifiers.
10323
f7f0a123
EZ
103242019-03-17 Eli Zaretskii <eliz@gnu.org>
10325
10326 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10327 tui_refill_source_window instead of tui_refresh_win, to update the
10328 current execution line. This fixes redisplay of the current line
10329 when stepping through the code with "next" or "step".
10330
ab42892f
EZ
103312019-03-16 Eli Zaretskii <eliz@gnu.org>
10332
10333 * source-cache.c (source_cache::get_source_lines): Call
10334 find_source_lines to initialize s->nlines. This fixes vertical
10335 scrolling of TUI source window when the DOWN arrow is pressed.
10336
8d8c087f
PW
103372019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10338
10339 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10340 linux-thread-db.c (_initialize_thread_db): Likewise.
10341
798e1c30
EZ
103422019-03-16 Eli Zaretskii <eliz@gnu.org>
10343
10344 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10345 wclrtoeol in tui_show_source_line". This reverts changes made in
10346 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10347
eefba3da
TT
103482019-03-15 Tom Tromey <tom@tromey.com>
10349
10350 * symtab.h (struct minimal_symbol): Derive from
10351 general_symbol_info.
10352 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10353 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10354 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10355 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10356 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10357 (MSYMBOL_SEARCH_NAME): Update.
10358 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10359 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10360 * minsyms.c (minimal_symbol_reader::record_full): Update.
10361
0de2420c
TT
103622019-03-15 Tom Tromey <tom@tromey.com>
10363
10364 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10365
042d75e4
TT
103662019-03-15 Tom Tromey <tom@tromey.com>
10367
10368 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10369 unique_xmalloc_ptr.
10370 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10371 Update.
10372 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10373 (build_minimal_symbol_hash_tables)
10374 (minimal_symbol_reader::install): Update.
10375
db92718b
TT
103762019-03-15 Tom Tromey <tom@tromey.com>
10377
10378 * symtab.c (create_demangled_names_hash): Update.
10379 (symbol_set_names): Update.
10380 * objfiles.h (struct objfile_per_bfd_storage)
10381 <demangled_names_hash>: Now an htab_up.
10382 * objfiles.c (objfile_per_bfd_storage): Simplify.
10383
d6797f46
TT
103842019-03-15 Tom Tromey <tom@tromey.com>
10385
10386 * objfiles.h (struct objfile_per_bfd_storage): Declare
10387 destructor.
10388 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10389 New.
10390 (get_objfile_bfd_data): Use new. Don't initialize
10391 language_of_main.
10392 (free_objfile_per_bfd_storage): Remove.
10393 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10394
741d7538
TT
103952019-03-15 Tom Tromey <tom@tromey.com>
10396
10397 * symfile.c (reread_symbols): Update.
10398 * objfiles.c (objfile::objfile): Update.
10399 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10400 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10401 comment.
10402 (minimal_symbol_reader::install): Update.
10403 (terminate_minimal_symbol_table): Remove.
10404 * jit.c (jit_object_close_impl): Update.
10405
788c80d1
TT
104062019-03-15 Tom Tromey <tom@tromey.com>
10407
10408 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10409 initializations.
10410
1b7a07cb
TT
104112019-03-15 Tom Tromey <tom@tromey.com>
10412
10413 * objfiles.h (struct objfile_per_bfd_storage)
10414 <demangled_hash_languages>: Now a bitset.
10415 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10416 (lookup_minimal_symbol): Update.
10417
3db066bc
TT
104182019-03-15 Tom Tromey <tom@tromey.com>
10419
10420 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10421 Don't return the symbol.
10422 * coffread.c (record_minimal_symbol): Use record_full.
10423
3fff2c37
EZ
104242019-03-14 Eli Zaretskii <eliz@gnu.org>
10425
10426 The MS-Windows port of ncurses fails to switch to a color pair if
10427 one or both of the colors are the implicit default colors. This
10428 change records the default colors when TUI is initialized, and
10429 then specifies them explicitly when a color pair uses the default
10430 colors. This allows color styling in TUI mode on MS-Windows.
10431
10432 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10433 ncurses_norm_attr.
10434 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10435 colors in ncurses_norm_attr.
10436 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10437 "none", replace it with the default color recorded in
10438 ncurses_norm_attr.
10439
3b336828
TT
104402019-03-14 Tom Tromey <tromey@adacore.com>
10441
10442 * source-cache.h (class source_cache) <get_source_lines>: Return
10443 std::string.
10444 * source-cache.c (source_cache::extract_lines): Handle case where
10445 first_pos==npos. Return std::string.
10446 (source_cache::get_source_lines): Update.
10447
d085f989
TT
104482019-03-14 Tom Tromey <tromey@adacore.com>
10449
10450 * NEWS: Add item for "style sources" commands.
10451 * source-cache.c (source_cache::get_source_lines): Check
10452 source_styling.
10453 * cli/cli-style.c (source_styling): New global.
10454 (_initialize_cli_style): Add "style sources" commands.
10455 (show_style_sources): New function.
10456 * cli/cli-style.h (source_styling): Declare.
10457
6f11e682
TT
104582019-03-14 Pedro Alves <palves@redhat.com>
10459 Tom Tromey <tromey@adacore.com>
10460
10461 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10462 * tui/tui-winsource.c (tui_refill_source_window): New function,
10463 from...
10464 (tui_horizontal_source_scroll): ... here. Move some logic.
10465 * cli/cli-style.c (set_style_enabled): Notify new observable.
10466 * tui/tui-hooks.c (tui_redisplay_source): New function.
10467 (tui_attach_detach_observers): Attach or detach
10468 tui_redisplay_source.
10469 * observable.h (source_styling_changed): New observable.
10470 * observable.c: Define source_styling_changed observable.
10471
a068643d
TT
104722019-03-13 Tom Tromey <tromey@adacore.com>
10473
10474 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10475 (i386_gnu_nat_target::store_registers): Update.
10476 * target-debug.h (target_debug_print_std_string): New macro.
10477 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10478 * windows-tdep.c (display_one_tib): Update.
10479 * tui/tui-stack.c (tui_make_status_line): Update.
10480 * top.c (print_inferior_quit_action): Update.
10481 * thread.c (thr_try_catch_cmd): Update.
10482 (add_thread_with_info): Update.
10483 (thread_target_id_str): Update.
10484 (thr_try_catch_cmd): Update.
10485 (thread_command): Update.
10486 (thread_find_command): Update.
10487 * record-btrace.c (record_btrace_target::info_record)
10488 (record_btrace_resume_thread, record_btrace_target::resume)
10489 (record_btrace_cancel_resume, record_btrace_step_thread)
10490 (record_btrace_target::wait, record_btrace_target::wait)
10491 (record_btrace_target::wait, record_btrace_target::stop): Update.
10492 * progspace.c (print_program_space): Update.
10493 * process-stratum-target.c
10494 (process_stratum_target::thread_address_space): Update.
10495 * linux-fork.c (linux_fork_mourn_inferior)
10496 (detach_checkpoint_command, info_checkpoints_command)
10497 (linux_fork_context): Update.
10498 (linux_fork_detach): Update.
10499 (class scoped_switch_fork_info): Update.
10500 (delete_checkpoint_command): Update.
10501 * infrun.c (follow_fork_inferior): Update.
10502 (follow_fork_inferior): Update.
10503 (proceed_after_vfork_done): Update.
10504 (handle_vfork_child_exec_or_exit): Update.
10505 (follow_exec): Update.
10506 (displaced_step_prepare_throw): Update.
10507 (displaced_step_restore): Update.
10508 (start_step_over): Update.
10509 (resume_1): Update.
10510 (clear_proceed_status_thread): Update.
10511 (proceed): Update.
10512 (print_target_wait_results): Update.
10513 (do_target_wait): Update.
10514 (context_switch): Update.
10515 (stop_all_threads): Update.
10516 (restart_threads): Update.
10517 (finish_step_over): Update.
10518 (handle_signal_stop): Update.
10519 (switch_back_to_stepped_thread): Update.
10520 (keep_going_pass_signal): Update.
10521 (print_exited_reason): Update.
10522 (normal_stop): Update.
10523 * inferior.c (inferior_pid_to_str): Change return type.
10524 (print_selected_inferior): Update.
10525 (add_inferior): Update.
10526 (detach_inferior): Update.
10527 * dummy-frame.c (fprint_dummy_frames): Update.
10528 * dcache.c (dcache_info_1): Update.
10529 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10530 (btrace_fetch, btrace_clear): Update.
10531 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10532 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10533 type.
10534 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10535 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10536 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10537 * gdbarch.c, gdbarch.h: Rebuild.
10538 * gdbarch.sh (core_pid_to_str): Change return type.
10539 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10540 return type.
10541 (windows_nat_target::pid_to_str): Change return type.
10542 (windows_delete_thread): Update.
10543 (windows_nat_target::attach): Update.
10544 (windows_nat_target::files_info): Update.
10545 * target-delegates.c: Rebuild.
10546 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10547 return type.
10548 (sol_thread_target::pid_to_str): Change return type.
10549 * remote.c (class remote_target) <pid_to_str>: Change return
10550 type.
10551 (remote_target::pid_to_str): Change return type.
10552 (extended_remote_target::attach, remote_target::remote_stop_ns)
10553 (remote_target::remote_notif_remove_queued_reply)
10554 (remote_target::push_stop_reply, remote_target::disable_btrace):
10555 Update.
10556 (extended_remote_target::attach): Update.
10557 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10558 type.
10559 (gdbsim_target::pid_to_str): Change return type.
10560 * ravenscar-thread.c (struct ravenscar_thread_target)
10561 <pid_to_str>: Change return type.
10562 (ravenscar_thread_target::pid_to_str): Change return type.
10563 * procfs.c (class procfs_target) <pid_to_str>: Change return
10564 type.
10565 (procfs_target::pid_to_str): Change return type.
10566 (procfs_target::attach): Update.
10567 (procfs_target::detach): Update.
10568 (procfs_target::fetch_registers): Update.
10569 (procfs_target::store_registers): Update.
10570 (procfs_target::wait): Update.
10571 (procfs_target::files_info): Update.
10572 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10573 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10574 return type.
10575 (nto_procfs_target::pid_to_str): Change return type.
10576 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10577 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10578 return type.
10579 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10580 (exit_lwp): Update.
10581 (attach_proc_task_lwp_callback, get_detach_signal)
10582 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10583 (linux_nat_target::resume, wait_lwp, stop_callback)
10584 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10585 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10586 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10587 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10588 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10589 type.
10590 (inf_ptrace_target::attach): Update.
10591 (inf_ptrace_target::files_info): Update.
10592 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10593 type.
10594 (go32_nat_target::pid_to_str): Change return type.
10595 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10596 (gnu_nat_target::wait): Update.
10597 (gnu_nat_target::wait): Update.
10598 (gnu_nat_target::resume): Update.
10599 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10600 (fbsd_nat_target::wait): Update.
10601 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10602 type.
10603 (darwin_nat_target::attach): Update.
10604 * corelow.c (class core_target) <pid_to_str>: Change return type.
10605 (core_target::pid_to_str): Change return type.
10606 * target.c (normal_pid_to_str): Change return type.
10607 (default_pid_to_str): Likewise.
10608 (target_pid_to_str): Change return type.
10609 (target_translate_tls_address): Update.
10610 (target_announce_detach): Update.
10611 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10612 return type.
10613 (bsd_uthread_target::pid_to_str): Change return type.
10614 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10615 type.
10616 (bsd_kvm_target::pid_to_str): Change return type.
10617 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10618 return type.
10619 (aix_thread_target::pid_to_str): Change return type.
10620 * target.h (struct target_ops) <pid_to_str>: Change return type.
10621 (target_pid_to_str, normal_pid_to_str): Likewise.
10622 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10623 type.
10624 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10625 type.
10626 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10627 return type.
10628 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10629 type.
10630 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10631 type.
10632 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10633 return type.
10634
b4be1b06
SM
106352019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10636
10637 * NEWS: Mention that the new default MI version is 3. Mention
10638 changes to the output of commands and events that deal with
10639 multi-location breakpoints.
10640 * breakpoint.c: Include "mi/mi-out.h".
10641 (print_one_breakpoint): Change output syntax if using MI version
10642 >= 3.
10643 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10644 New.
10645 (mi_multi_location_breakpoint_output_fixed): New.
10646 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10647 (mi_cmd_fix_multi_location_breakpoint_output): New.
10648 (mi_multi_location_breakpoint_output_fixed): New.
10649 * mi/mi-cmds.c (mi_cmds): Register command
10650 -fix-multi-location-breakpoint-output.
10651 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10652 interpreter "mi".
10653
8e5e5494
SM
106542019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10655
10656 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10657 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10658 instantiate mi_ui_out based on interpreter name.
10659 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10660 * mi/mi-main.c (mi_load_progress): Likewise.
10661
197df35e
JB
106622019-03-12 John Baldwin <jhb@FreeBSD.org>
10663
10664 * NEWS: Combine separate "New targets" sections for 8.3.
10665
8399425f
JB
106662019-03-12 John Baldwin <jhb@FreeBSD.org>
10667
10668 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10669 (ppcfbsd_init_abi): Install gdbarch
10670 "fetch_tls_load_module_address" and "get_thread_local_address"
10671 methods.
10672
b0f87ed0
JB
106732019-03-12 John Baldwin <jhb@FreeBSD.org>
10674
10675 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10676 (riscv_fbsd_init_abi): Install gdbarch
10677 "fetch_tls_load_module_address" and "get_thread_local_address"
10678 methods.
10679
ce25aa57
JB
106802019-03-12 John Baldwin <jhb@FreeBSD.org>
10681
10682 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10683 (i386fbsd_init_abi): Install gdbarch
10684 "fetch_tls_load_module_address" and "get_thread_local_address"
10685 methods.
10686
f5424cfa
JB
106872019-03-12 John Baldwin <jhb@FreeBSD.org>
10688
10689 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10690 (amd64fbsd_init_abi): Install gdbarch
10691 "fetch_tls_load_module_address" and "get_thread_local_address"
10692 methods.
10693
945f3901
JB
106942019-03-12 John Baldwin <jhb@FreeBSD.org>
10695
10696 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10697 (struct fbsd_pspace_data): New type.
10698 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10699 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10700 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10701 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10702 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10703
ef0bd204
JB
107042019-03-12 John Baldwin <jhb@FreeBSD.org>
10705
10706 * gdbtypes.c (lookup_struct_elt): New function.
10707 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10708 * gdbtypes.h (struct struct_elt): New type.
10709 (lookup_struct_elt): New prototype.
10710
36c53a02
JB
107112019-03-12 John Baldwin <jhb@FreeBSD.org>
10712
10713 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10714 remove disabled code block.
10715
6e056c81
JB
107162019-03-12 John Baldwin <jhb@FreeBSD.org>
10717
10718 * gdbarch.sh (get_thread_local_address): New method.
10719 * gdbarch.h, gdbarch.c: Regenerate.
10720 * target.c (target_translate_tls_address): Use
10721 gdbarch_get_thread_local_address if present instead of
10722 target::get_thread_local_address.
10723
cd250a18
JB
107242019-03-12 John Baldwin <jhb@FreeBSD.org>
10725
10726 * target.h (target::get_thread_local_address): Update comment.
10727
df22c1e5
JB
107282019-03-12 John Baldwin <jhb@FreeBSD.org>
10729
10730 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10731 objfile->separate_debug_objfile_backlink if not NULL.
10732
dd6876c9
JB
107332019-03-12 John Baldwin <jhb@FreeBSD.org>
10734
10735 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10736 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10737 (amd64bsd_store_inferior_registers): Likewise.
10738 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10739 Enable segment base registers.
10740 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10741 PT_GETFSBASE and PT_GETGSBASE.
10742 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10743 PT_SETGSBASE.
10744 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10745 segment base registers.
10746 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10747
1163a4b7
JB
107482019-03-12 John Baldwin <jhb@FreeBSD.org>
10749
10750 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10751 Update calls to i386_target_description to add 'segments'
10752 parameter.
10753 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10754 add segment base registers.
10755 * arch/i386.c (i386_create_target_description): Add 'segments'
10756 parameter to enable segment base registers.
10757 * arch/i386.h (i386_create_target_description): Likewise.
10758 * features/i386/32bit-segments.xml: New file.
10759 * features/i386/32bit-segments.c: Generate.
10760 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10761 call to i386_target_description to add 'segments' parameter.
10762 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10763 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10764 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10765 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10766 if feature is present.
10767 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10768 Add 'segments' parameter to call to i386_target_description.
10769 (i386_target_description): Add 'segments' parameter to enable
10770 segment base registers.
10771 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10772 to call to i386_target_description.
10773 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10774 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10775 Define I386_NUM_REGS.
10776 (i386_target_description): Add 'segments' parameter to enable
10777 segment base registers.
10778
3a350822
EZ
107792019-03-12 Eli Zaretskii <eliz@gnu.org>
10780
10781 PR/24325
10782 * source-cache.c: #undef open and close, to avoid unresolved
10783 externals during linking.
10784
ffdd69cf
TT
107852019-03-12 Tom Tromey <tromey@adacore.com>
10786
10787 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10788 const. Add initializers.
10789 (_initialize_remote): Don't initialize ptid globals.
10790
ec148c57
PA
107912019-03-12 Pedro Alves <palves@redhat.com>
10792
10793 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10794
32764270
PA
107952019-03-12 Pedro Alves <palves@redhat.com>
10796
10797 * cp-name-parser.y (main): Remove unused 'len' variable.
10798
17547186
TT
107992019-03-12 Tom Tromey <tromey@adacore.com>
10800
10801 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10802 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10803
d3a70e03
TT
108042019-03-12 Tom Tromey <tromey@adacore.com>
10805
10806 * linux-nat.c (iterate_over_lwps): Update.
10807 (stop_callback): Remove parameter.
10808 (stop_wait_callback, detach_callback, resume_set_callback)
10809 (select_singlestep_lwp_callback, set_ignore_sigint)
10810 (status_callback, resumed_callback, resume_clear_callback)
10811 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10812 data parameter.
10813 (linux_nat_target::detach, linux_nat_target::resume)
10814 (linux_stop_and_wait_all_lwps, select_event_lwp)
10815 (linux_nat_filter_event, linux_nat_wait_1)
10816 (linux_nat_target::kill, linux_nat_target::stop)
10817 (linux_nat_target::stop): Update.
10818 (linux_nat_resume_callback): Change type.
10819 (resume_stopped_resumed_lwps, count_events_callback)
10820 (select_event_lwp_callback): Likewise.
10821 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10822 * arm-linux-nat.c (struct update_registers_data): Remove.
10823 (update_registers_callback): Change type.
10824 (arm_linux_insert_hw_breakpoint1): Update.
10825 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10826 parameter.
10827 (x86_linux_dr_set_addr): Update.
10828 (x86_linux_dr_set_control): Update.
10829 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10830 (iterate_over_lwps): Use gdb::function_view.
10831 * nat/aarch64-linux-hw-point.c (struct
10832 aarch64_dr_update_callback_param): Remove.
10833 (debug_reg_change_callback): Change type.
10834 (aarch64_notify_debug_reg_change): Update.
10835 * s390-linux-nat.c (s390_refresh_per_info): Update.
10836
82cb27ff
TT
108372019-03-11 Tom Tromey <tromey@adacore.com>
10838
10839 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10840 redundant assignment to "this_cu".
10841
568c0683
SM
108422019-03-08 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10845
f09ce22d
SM
108462019-03-08 Simon Marchi <simon.marchi@efficios.com>
10847
10848 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10849 from...
10850 (rank_one_type): ... this.
10851
595f96a9
SM
108522019-03-08 Simon Marchi <simon.marchi@efficios.com>
10853
10854 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10855 from...
10856 (rank_one_type): ... this.
10857
2598a94b
SM
108582019-03-08 Simon Marchi <simon.marchi@efficios.com>
10859
10860 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10861 from...
10862 (rank_one_type): ... this.
10863
7f17b20d
SM
108642019-03-08 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10867 from...
10868 (rank_one_type): ... this.
10869
2c509035
SM
108702019-03-08 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10873 from...
10874 (rank_one_type): ... this.
10875
0dd322dc
SM
108762019-03-08 Simon Marchi <simon.marchi@efficios.com>
10877
10878 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10879 from...
10880 (rank_one_type): ... this.
10881
41ea4728
SM
108822019-03-08 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10885 from...
10886 (rank_one_type): ... this.
10887
793cd1d2
SM
108882019-03-08 Simon Marchi <simon.marchi@efficios.com>
10889
10890 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10891 from...
10892 (rank_one_type): ... this.
10893
34910087
SM
108942019-03-08 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10897 from...
10898 (rank_one_type): ... this.
10899
f1f832d6
SM
109002019-03-08 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10903 from...
10904 (rank_one_type): ... this.
10905
b9f4512f
SM
109062019-03-08 Simon Marchi <simon.marchi@efficios.com>
10907
10908 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10909 from...
10910 (rank_one_type): ... this.
10911
9293fc63
SM
109122019-03-08 Simon Marchi <simon.marchi@efficios.com>
10913
10914 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10915 from...
10916 (rank_one_type): ... this.
10917
e3abbe7e
PW
109182019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10919
10920 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10921 inferior-events' shows the example events.
10922
e4adb939
EZ
109232019-03-08 Eli Zaretskii <eliz@gnu.org>
10924
10925 Support styling on native MS-Windows console
10926
10927 PR/24315
10928 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10929 on MS-Windows if $TERM is not defined.
10930
10931 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10932
10933 * posix-hdep.c (gdb_console_fputs):
10934 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10935 functions.
10936 * ui-file.h (gdb_console_fputs): Add prototype.
10937
10938 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10939 back to fputs only if the former returns zero.
10940
25629dfd
TT
109412019-03-07 Tom Tromey <tom@tromey.com>
10942
10943 * symmisc.c (print_symbol_bcache_statistics): Update.
10944 (print_objfile_statistics): Update.
10945 * symfile.c (allocate_symtab): Update.
10946 * stabsread.c: Don't include bcache.h.
10947 * psymtab.h (struct psymbol_bcache): Don't declare.
10948 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10949 (psymbol_bcache_init, psymbol_bcache_free)
10950 (psymbol_bcache_get_bcache): Don't declare.
10951 * psymtab.c (struct psymbol_bcache): Remove.
10952 (psymtab_storage::psymtab_storage): Update.
10953 (psymtab_storage::~psymtab_storage): Update.
10954 (psymbol_bcache_init, psymbol_bcache_free)
10955 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10956 (add_psymbol_to_bcache): Update.
10957 (allocate_psymtab): Update.
10958 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10959 macro_cache>: No longer pointers.
10960 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10961 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10962 * macrotab.c (macro_bcache): Update.
10963 * macroexp.c: Don't include bcache.h.
10964 * gdbtypes.c (check_types_worklist): Update.
10965 (types_deeply_equal): Remove TRY/CATCH. Update.
10966 * elfread.c (elf_symtab_read): Update.
10967 * dwarf2read.c: Don't include bcache.h.
10968 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10969 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10970 (print_bcache_statistics, bcache_memory_used): Don't declare.
10971 (struct bcache): Move from bcache.c. Add constructor, destructor,
10972 methods. Rename all data members.
10973 * bcache.c (struct bcache): Move to bcache.h.
10974 (bcache::expand_hash_table): Rename from expand_hash_table.
10975 (bcache): Remove.
10976 (bcache::insert): Rename from bcache_full.
10977 (bcache::compare): Rename from bcache_compare.
10978 (bcache_xmalloc): Remove.
10979 (bcache::~bcache): Rename from bcache_xfree.
10980 (bcache::print_statistics): Rename from print_bcache_statistics.
10981 (bcache::memory_used): Rename from bcache_memory_used.
10982
fe726667
PA
109832019-03-07 Pedro Alves <palves@redhat.com>
10984
10985 * infrun.c (normal_stop): Also check for
10986 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10987
7584bb30
AB
109882019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10989
10990 * f-lang.c (value_from_host_double): Moved to...
10991 * value.c (value_from_host_double): ...here.
10992 * value.h (value_from_host_double): Declare.
10993 * guile/scm-math.c (vlscm_convert_typed_number): Use
10994 value_from_host_double.
10995 (vlscm_convert_number): Likewise.
10996 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10997 * python/py-value.c (convert_value_from_python): Likewise.
10998
a7b1986e
TT
109992019-03-06 Tom Tromey <tom@tromey.com>
11000
11001 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11002
0ccf4211
TT
110032019-03-06 Tom Tromey <tom@tromey.com>
11004
11005 * utils.h (free_current_contents): Don't declare.
11006 * utils.c (free_current_contents): Remove.
11007
fe7b42e5
TT
110082019-03-06 Tom Tromey <tom@tromey.com>
11009
11010 * top.c (quit_force): Update.
11011 * main.c (captured_command_loop): Update.
11012 * common/new-op.c (operator new): Update.
11013 * common/common-exceptions.c (struct catcher)
11014 <save_cleanup_chain>: Remove member.
11015 (exceptions_state_mc_init): Update.
11016 (exception_try_scope_entry): Return nullptr.
11017 (exception_try_scope_exit, exception_rethrow)
11018 (throw_exception_sjlj, throw_exception_cxx): Update.
11019 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11020 (all_cleanups, do_cleanups, discard_cleanups)
11021 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11022 (restore_cleanups, restore_final_cleanups): Don't declare.
11023 (do_final_cleanups): Remove parameter.
11024 * common/cleanups.c (cleanup_chain, make_cleanup)
11025 (make_cleanup_dtor, all_cleanups, do_cleanups)
11026 (discard_my_cleanups, discard_cleanups)
11027 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11028 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11029 (null_cleanup): Remove.
11030 (do_final_cleanups): Remove parameter.
11031
c6321f19
TT
110322019-03-06 Tom Tromey <tom@tromey.com>
11033
11034 * remote.c (remote_target::remote_parse_stop_reply): Use
11035 unique_xmalloc_ptr.
11036
61b30099
TT
110372019-03-06 Tom Tromey <tom@tromey.com>
11038
11039 * stabsread.c (struct stabs_field_info): Rename from field_info.
11040 <list, fnlist>: Add initializers.
11041 <obstack>: New member.
11042 (read_member_functions, read_struct_fields, read_baseclasses):
11043 Allocate on obstack. Don't use cleanups.
11044 (read_one_struct_field, read_member_functions, read_struct_fields)
11045 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11046 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11047 (read_struct_type): Update.
11048
6cceac94
TT
110492019-03-06 Tom Tromey <tom@tromey.com>
11050
11051 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11052 * common/filestuff.h (make_cleanup_close): Don't declare.
11053 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11054 Remove.
11055
72412762
TT
110562019-03-06 Tom Tromey <tom@tromey.com>
11057
11058 * solib-aix.c: Use make_scope_exit.
11059
2b6ff1c0
TT
110602019-03-06 Tom Tromey <tom@tromey.com>
11061
11062 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11063 Use make_scope_exit.
11064
d01c5877
TT
110652019-03-06 Tom Tromey <tom@tromey.com>
11066
11067 * solib-svr4.c (disable_probes_interface): Remove parameter.
11068 (svr4_handle_solib_event): Use make_scope_exit.
11069
32603266
TT
110702019-03-06 Tom Tromey <tom@tromey.com>
11071
11072 * remote.c (struct stop_reply_deleter): Remove.
11073 (stop_reply_up): Update.
11074 (struct stop_reply): Derive from notif_event. Don't typedef.
11075 <regcache>: Now a std::vector.
11076 (stop_reply_xfree): Remove.
11077 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11078 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11079 (remote_target::discard_pending_stop_replies): Use delete.
11080 (remote_target::remote_parse_stop_reply): Update.
11081 (remote_target::process_stop_reply): Update.
11082 * remote-notif.h (struct notif_event): Add virtual destructor.
11083 Remove "dtr" member.
11084 (struct notif_client) <alloc_event>: Return a unique_ptr.
11085 (notif_event_xfree): Don't declare.
11086 (notif_event_up): New typedef.
11087 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11088 (notif_event_xfree, do_notif_event_xfree): Remove.
11089 (remote_notif_state_xfree): Update.
11090
9799571e
TT
110912019-03-06 Tom Tromey <tom@tromey.com>
11092
11093 * infrun.c (displaced_step_clear_cleanup): Now a
11094 forward_scope_exit type.
11095 (displaced_step_prepare_throw): Update.
11096 (displaced_step_fixup): Update.
11097
09e3c4ca
TT
110982019-03-06 Tom Tromey <tom@tromey.com>
11099
11100 * inferior.h (class inferior): Update comment.
11101 * gdbthread.h (class thread_info): Update comment.
11102
e2a03548
TT
111032019-03-06 Joel Brobecker <brobecker@adacore.com>
11104 Tom Tromey <tom@tromey.com>
11105
11106 * stabsread.h (struct stab_section_list): Remove.
11107 (coffstab_build_psymtabs): Update.
11108 * dbxread.c (symbuf_sections): Now a std::vector.
11109 (sect_idx): New global.
11110 (fill_symbuf): Update.
11111 (coffstab_build_psymtabs): Change type of stabsects parameter.
11112 Update.
11113 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11114 std::vector.
11115 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11116 (coff_locate_sections): Update.
11117 (coff_symfile_read): Remove cleanups. Update.
11118 (init_stringtab): Add storage parameter.
11119 (free_stringtab, free_stringtab_cleanup): Remove.
11120 (init_lineno): Add storage parameter.
11121 (free_linetab, free_linetab_cleanup): Remove.
11122
b7e60d85
PA
111232019-03-06 Pedro Alves <palves@redhat.com>
11124
11125 * linux-fork.c (fork_info::clobber_regs): Delete.
11126 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11127 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11128 comment. Adjust.
11129 (scoped_switch_fork_info::scoped_switch_fork_info)
11130 (checkpoint_command, linux_fork_context): Adjust
11131 fork_save_infrun_state calls.
11132
e52c971f
PA
111332019-03-06 Pedro Alves <palves@redhat.com>
11134
11135 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11136 (inf_has_multiple_threads): Return 'bool' and rewrite using
11137 inferior_info::threads().
11138
06974e6c
PA
111392019-03-06 Pedro Alves <palves@redhat.com>
11140
11141 * linux-fork.c: Include <list>.
11142 (fork_list): Now a std::list instance.
11143 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11144 (forks_exist_p, find_last_fork): Adjust.
11145 (new_fork): Delete.
11146 (one_fork_p): New.
11147 (add_fork): Adjust.
11148 (free_fork): Delete, folded into fork_info::~fork_info().
11149 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11150 Adjust.
11151 (init_fork_list): Delete.
11152 (linux_fork_killall, linux_fork_mourn_inferior)
11153 (linux_fork_detach, info_checkpoints_command): Adjust.
11154 (_initialize_linux_fork): No longer call init_fork_list.
11155
72f31aea
PA
111562019-03-06 Pedro Alves <palves@redhat.com>
11157
11158 * linux-fork.c (new_fork): New, split out of ...
11159 (add_fork): ... this. Return void. Move "first fork" special
11160 case from here, to ...
11161 (checkpoint_command): ... here.
11162 * linux-linux.h (add_fork): Return void.
11163
efbecbc1
AB
111642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11165
11166 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11167
0841c79a
AB
111682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11169 Chris January <chris.january@arm.com>
11170 David Lecomber <david.lecomber@arm.com>
11171
11172 * f-exp.y: New token, UNOP_INTRINSIC.
11173 (exp): New pattern using UNOP_INTRINSIC token.
11174 (f77_keywords): Add 'abs' keyword.
11175 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11176 (value_from_host_double): New function.
11177 (evaluate_subexp_f): Support UNOP_ABS.
11178
4a270568
AB
111792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11180
11181 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11182 types.
11183
067630bd
AB
111842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11185
11186 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11187 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11188 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11189
3be47f7a
AB
111902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11193
4d00f5d8
AB
111942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11195 Chris January <chris.january@arm.com>
11196
11197 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11198 * f-exp.y: Define 'KIND' token.
11199 (exp): New pattern for KIND expressions.
11200 (ptype): Handle types with a kind extension.
11201 (direct_abs_decl): Extend to spot kind extensions.
11202 (f77_keywords): Add 'kind' to the list.
11203 (push_kind_type): New function.
11204 (convert_to_kind_type): New function.
11205 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11206 * parse.c (operator_length_standard): Likewise.
11207 * parser-defs.h (enum type_pieces): Add tp_kind.
11208 * std-operator.def: Add UNOP_KIND.
11209
e454224f
AB
112102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11211
11212 * f-exp.y (f_parse): Set yydebug.
11213
9dad4a58
AB
112142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11215
11216 * f-lang.c (evaluate_subexp_f): New function.
11217 (exp_descriptor_f): New global.
11218 (f_language_defn): Use exp_descriptor_f instead of
11219 exp_descriptor_standard.
11220
c8f91604
AB
112212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11222
11223 * f-exp.y (struct token): Add comments.
11224 (dot_ops): Remove uppercase versions and the end marker.
11225 (f77_keywords): Likewise.
11226 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11227 entries in the dot_ops array are case insensitive, and use
11228 strncasecmp to compare strings. Also some whitespace cleanup in
11229 this area. Similar for the f77_keywords array, except entries in
11230 this list might be case sensitive.
11231
dd9f2c76
AB
112322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11233
11234 * f-exp.y (struct f77_boolean_val): Add comments.
11235 (boolean_values): Remove uppercase versions, and end marker.
11236 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11237 and use strncasecmp to achieve case insensitivity. Additionally,
11238 perform whitespace cleanup around this code.
11239
67a3048c
TT
112402019-03-06 Tom Tromey <tromey@adacore.com>
11241
11242 * remote-sim.c (gdbsim_target_open): Use result of
11243 gdb_argv::release.
11244
aa3cfbda
RB
112452019-03-06 Richard Bunt <richard.bunt@arm.com>
11246 Dirk Schubert <dirk.schubert@arm.com>
11247 Chris January <chris.january@arm.com>
11248
11249 * eval.c (evaluate_subexp_standard): Call Fortran argument
11250 wrapping logic.
11251 * f-lang.c (struct value): A value which can be passed into a
11252 Fortran function call.
11253 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11254 where appropriate.
11255 (struct type): Value ready for a Fortran function call.
11256 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11257 is needed.
11258 * f-lang.h (fortran_argument_convert): Declaration.
11259 (fortran_preserve_arg_pointer): Declaration.
11260 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11261
ea38e5df
TT
112622019-03-05 Tom Tromey <tromey@adacore.com>
11263
11264 * python/py-prettyprint.c (print_string_repr): Remove #if.
11265 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11266
06b5b831
TT
112672019-03-05 Tom Tromey <tromey@adacore.com>
11268
11269 * target.c (the_dummy_target): Move later. Change type to
11270 "dummy_target".
11271 (initialize_targets): Don't initialize the_dummy_target.
11272
edbd9e45
TT
112732019-03-05 Tom Tromey <tromey@adacore.com>
11274
11275 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11276 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11277
c119e040
TT
112782019-03-05 Tom Tromey <tromey@adacore.com>
11279
11280 * windows-nat.c (windows_nat_target::attach)
11281 (windows_nat_target::detach): Don't call gdb_flush.
11282 * valprint.c (generic_val_print, val_print, val_print_string):
11283 Don't call gdb_flush.
11284 * utils.c (defaulted_query): Don't call gdb_flush.
11285 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11286 * target.c (target_announce_detach): Don't call gdb_flush.
11287 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11288 * remote.c (extended_remote_target::attach): Don't call
11289 gdb_flush.
11290 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11291 * printcmd.c (do_examine): Don't call gdb_flush.
11292 (info_display_command): Don't call gdb_flush.
11293 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11294 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11295 * memattr.c (info_mem_command): Don't call gdb_flush.
11296 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11297 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11298 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11299 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11300 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11301 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11302 (gnu_nat_target::detach): Don't call gdb_flush.
11303 * f-valprint.c (f_val_print): Don't call gdb_flush.
11304 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11305 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11306 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11307 gdb_flush.
11308 * c-valprint.c (c_val_print): Don't call gdb_flush.
11309 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11310
895dafa6
TT
113112019-03-05 Tom Tromey <tromey@adacore.com>
11312
11313 * varobj.c (update_dynamic_varobj_children): Update.
11314 (install_default_visualizer): Use reset, not release.
11315 * value.c (set_internalvar): Update.
11316 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11317 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11318 ATTRIBUTE_UNUSED_RESULT.
11319
88a774b9
TT
113202019-03-05 Tom Tromey <tromey@adacore.com>
11321
11322 * remote.c (class scoped_remote_fd) <release>: Add
11323 ATTRIBUTE_UNUSED_RESULT.
11324
4e4a8b93
TT
113252019-03-05 Tom Tromey <tromey@adacore.com>
11326
11327 * macroexp.c (struct macro_buffer) <release>: Add
11328 ATTRIBUTE_UNUSED_RESULT.
11329
083eef1f
TT
113302019-03-05 Tom Tromey <tromey@adacore.com>
11331
11332 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11333 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11334 ATTRIBUTE_UNUSED_RESULT.
11335
3cabd438
TT
113362019-03-05 Tom Tromey <tromey@adacore.com>
11337
11338 * common/scoped_fd.h (class scoped_fd) <release>: Add
11339 ATTRIBUTE_UNUSED_RESULT.
11340
41e3300a
TT
113412019-03-05 Tom Tromey <tromey@adacore.com>
11342
11343 * parser-defs.h (struct parser_state) <release>: Add
11344 ATTRIBUTE_UNUSED_RESULT.
11345
18cb7c9f
TT
113462019-03-05 Tom Tromey <tromey@adacore.com>
11347
11348 * utils.h (class gdb_argv) <release>: Add
11349 ATTRIBUTE_UNUSED_RESULT.
11350 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11351
41fa577f
EZ
113522019-03-02 Eli Zaretskii <eliz@gnu.org>
11353
a6a4b2c6
EZ
11354 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11355 for-loop range, to avoid compiler warnings.
11356
11357 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11358 avoid compiler warnings about unused variables.
11359
742a7df5
EZ
11360 * NEWS: Mention end of support for native debugging on MS-Windows
11361 before XP.
11362
41fa577f
EZ
11363 PR gdb/24292
11364 * common/netstuff.c:
11365 * gdbserver/gdbreplay.c
11366 * gdbserver/remote-utils.c:
11367 * ser-tcp.c:
11368 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11369 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11370 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11371 'getaddrinfo' and 'freeaddrinfo' were not available before
11372 Windows XP, and mingw.org's MinGW headers by default define
11373 _WIN32_WINNT to 0x500.
11374
827f438f
GB
113752019-03-01 Gary Benson <gbenson@redhat.com>
11376
11377 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11378
92137da0
RO
113792019-02-28 Brian Vandenberg <phantall@gmail.com>
11380 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11381
11382 PR gdb/8527
11383 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11384 set_sigint_trap, clear_sigint_trap.
11385
799efbe8
PW
113862019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11387
11388 * target.c (target_detach): Clear the regcache and the
11389 frame cache.
11390
8ed25214
PA
113912019-02-27 Pedro Alves <palves@redhat.com>
11392
11393 * utils.c (set_screen_size): When we cap the height/width sizes,
11394 tweak the corresponding command variable to show "unlimited":
11395
23031e31
SJ
113962019-02-27 Saagar Jha <saagar@saagarjha.com>
11397 Pedro Alves <palves@redhat.com>
11398
11399 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11400 before calling rl_set_screen_size.
11401
6c28e44a
TT
114022019-02-27 Tom Tromey <tromey@adacore.com>
11403
11404 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11405 define.
11406 * python/py-value.c: Remove Python 2.4 workaround.
11407 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11408 workaround.
11409 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11410 Python 2.4 workaround.
11411 * python/python-internal.h: Remove Python 2.4 comment.
11412 (Py_ssize_t): Don't define.
11413 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11414 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11415 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11416 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11417 * python/python.c (do_start_initialization): Remove Python 2.4
11418 workaround.
11419 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11420 (print_children): Remove Python 2.4 workaround.
11421 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11422 workaround.
11423 (CHARBUFFERPROC_NAME): Remove.
11424 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11425 Python 2.4 workaround.
11426
2c3fc25d 114272019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11428
2c3fc25d
KB
11429 * NEWS: Note minimum Python version.
11430
6ca62222
KB
114312019-02-27 Kevin Buettner <kevinb@redhat.com>
11432
11433 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11434 code from these functions. Remove corresponding ifdefs. Use
11435 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11436 Remove gotos and target of gotos.
11437 (infpy_search_memory): Likewise.
11438
f4bc7d2c
AB
114392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11442 (hppa_gdbarch_init): Don't register deleted functions with
11443 gdbarch.
11444
9734a586
AB
114452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11446
11447 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11448 (h8300_unwind_sp): Delete.
11449 (h8300_dummy_id): Delete.
11450 (h8300_gdbarch_init): Don't register deleted functions with
11451 gdbarch.
11452
68b867f3
AB
114532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11454
11455 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11456 (ft32_unwind_pc): Delete.
11457 (ft32_unwind_sp): Delete.
11458 (ft32_gdbarch_init): Don't register deleted functions with
11459 gdbarch.
11460
2fbe7ad0
AB
114612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11462
11463 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11464 (frv_unwind_pc): Delete.
11465 (frv_unwind_sp): Delete.
11466 (frv_gdbarch_init): Don't register deleted functions with
11467 gdbarch.
11468
76055cbe
AB
114692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11470
11471 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11472 (riscv_unwind_pc): Delete.
11473 (riscv_unwind_sp): Delete.
11474 (riscv_gdbarch_init): Don't register deleted functions with
11475 gdbarch.
11476
4133e5a1
AB
114772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11478
11479 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11480 (csky_unwind_pc): Delete.
11481 (csky_unwind_sp): Delete.
11482 (csky_gdbarch_init): Don't register deleted functions with
11483 gdbarch.
11484
8010f576
AB
114852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11486
11487 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11488 (cris_unwind_pc): Delete.
11489 (cris_unwind_sp): Delete.
11490 (cris_gdbarch_init): Don't register deleted functions with
11491 gdbarch.
11492
b56bf084
AB
114932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11494
11495 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11496 (bfin_unwind_pc): Delete.
11497 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11498
a19a650f
AB
114992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11500
11501 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11502 (arm_unwind_pc): Delete.
11503 (arm_unwind_sp): Delete.
11504 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11505
f8278c3c
AB
115062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11507
11508 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11509 (arc_unwind_pc): Delete.
11510 (arc_unwind_sp): Delete.
11511 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11512
480e46cf
AB
115132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11514
11515 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11516 (alpha_unwind_pc): Delete.
11517 (alpha_gdbarch_init): Don't register deleted functions with
11518 gdbarch.
11519
7a995095
AB
115202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11521
11522 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11523 (aarch64_unwind_pc): Delete.
11524 (aarch64_unwind_sp): Delete.
11525 (aarch64_gdbarch_init): Don't register deleted functions with
11526 gdbarch.
11527
bf9a735e
AB
115282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11529
11530 * gdbtypes.c (type_align): Don't consider static members when
11531 computing structure alignment.
11532
5561fc30
AB
115332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11534
11535 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11536 return 0 for other types.
11537 * arch-utils.c (default_type_align): Always return 0.
11538 * gdbarch.h: Regenerate.
11539 * gdbarch.sh (type_align): Extend comment.
11540 * gdbtypes.c (type_align): Add additional comments, always call
11541 gdbarch_type_align before applying the default rules.
11542 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11543 generic code will then apply a suitable default.
11544 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11545 types, return 0 for other types.
11546
9335e75a
JB
115472019-02-27 Joel Brobecker <brobecker@adacore.com>
11548
11549 * NEWS: Create a new section for the next release branch.
11550 Rename the section of the current branch, now that it has
11551 been cut.
11552
3d34d8de
JB
115532019-02-27 Joel Brobecker <brobecker@adacore.com>
11554
11555 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11556 * version.in: Bump version to 8.3.50.DATE-git.
11557
143420fb
SM
115582019-02-26 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * aix-thread.c (ptid_cmp): Remove unused variable.
11561 (get_signaled_thread): Likewise.
11562 (store_regs_user_thread): Likewise.
11563 (store_regs_kernel_thread): Likewise.
11564 (fetch_regs_kernel_thread): Remove shadowed variable.
11565
172fb711
AB
115662019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11567
11568 * features/riscv/32bit-cpu.xml: Add register numbers.
11569 * features/riscv/32bit-fpu.c: Regenerate.
11570 * features/riscv/32bit-fpu.xml: Add register numbers.
11571 * features/riscv/64bit-cpu.xml: Add register numbers.
11572 * features/riscv/64bit-fpu.c: Regenerate.
11573 * features/riscv/64bit-fpu.xml: Add register numbers.
11574
26c89782
KB
115752019-02-26 Kevin Buettner <kevinb@redhat.com>
11576
af54ade9 11577 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11578 * python/py-value.c (convert_buffer_and_type_to_value): New
11579 function.
11580 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11581 Add support for handling an optional second argument. Call
11582 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11583 * python/python-internal.h (Py_buffer_deleter): New struct.
11584 (Py_buffer_up): New typedef.
11585
0f58c9e8
JB
115862019-02-25 John Baldwin <jhb@FreeBSD.org>
11587
11588 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11589 instead of releasing ownership.
11590
0a0f4c01
JR
115912019-02-25 Jordan Rupprecht <rupprecht@google.com>
11592
11593 * dwarf2read.c (open_and_init_dwp_file): Call
11594 elf_numsections instead of bfd_count_sections to initialize
11595 dwp_file->num_sections.
11596
cd5a152c
TT
115972019-02-25 Tom Tromey <tromey@adacore.com>
11598
11599 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11600
8a6a8513
SDJ
116012019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11602
11603 * gcore.in: Add '--readnever' option when invoking GDB.
11604
04dcda9c
SM
116052019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11606
11607 * MAINTAINERS: Update my email address.
11608
07bc701d
SM
116092019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11610
11611 * build-id.c (build_id_to_debug_bfd_1): New function.
11612 (build_id_to_debug_bfd): Look for separate debug file in
11613 sysroot.
11614
c6f4a5d0
AB
116152019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11616
11617 * gdbarch.sh: Update the copyright year range that is placed into
11618 generated files.
11619
9600246d
KS
116202019-02-22 Keith Seitz <keiths@redhat.com>
11621
11622 PR symtab/23853
11623 * linespec.c (create_sals_line_offset): Search for the default
11624 symtab's filename instead of its fullname.
11625
7557a514
AH
116262019-02-21 Alan Hayward <alan.hayward@arm.com>
11627
11628 * NEWS: Update style defaults.
11629
ee2bcb0c
AH
116302019-02-21 Alan Hayward <alan.hayward@arm.com>
11631
11632 * main.c (captured_main_1): Disable styling in batch mode.
11633
0c95f9ed
TT
116342019-02-20 Tom Tromey <tom@tromey.com>
11635
11636 * symtab.c (symtab_symbol_info): Fix typos.
11637
c763b894
TT
116382019-02-20 Tom Tromey <tromey@adacore.com>
11639
11640 * findcmd.c (_initialize_mem_search): Use upper case for
11641 metasyntactic variables.
11642
0ef8a082
AH
116432019-02-20 Alan Hayward <alan.hayward@arm.com>
11644
11645 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11646 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11647
6caa91b6
SM
116482019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11649
11650 * top.h (source_file_name): Change to std::string.
11651 * top.c (source_file_name): Likewise.
11652 (command_line_input): Adjust.
11653 * cli/cli-script.c (script_from_file): Adjust.
11654
98814c6c
TT
116552019-02-19 Tom Tromey <tromey@adacore.com>
11656
11657 * ravenscar-thread.c
11658 (ravenscar_thread_target::update_thread_list): Don't call
11659 ada_build_task_list.
11660 * ada-lang.h (ada_build_task_list): Don't declare.
11661 * ada-tasks.c (struct ada_tasks_inferior_data)
11662 <task_list_valid_p>: Now bool.
11663 (read_known_tasks, ada_task_list_changed)
11664 (ada_tasks_invalidate_inferior_data): Update.
11665 (read_known_tasks_array): Return bool.
11666 (read_known_tasks_list): Likewise.
11667 (read_known_tasks): Return void.
11668 (ada_build_task_list): Now static.
11669
70cd633e
AB
116702019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11671
11672 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11673 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11674
040b3e95
PW
116752019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11676
11677 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11678 variant for ada_tasks_pspace_data_handle and
11679 ada_tasks_inferior_data_handle.
11680 (ada_tasks_pspace_data_cleanup): New function.
11681 (ada_tasks_inferior_data_cleanup): New function.
11682
9409233b
TT
116832019-02-17 Tom Tromey <tom@tromey.com>
11684
11685 * macrotab.h (macro_source_fullname): Return a std::string.
11686 * macrotab.c (macro_include, check_for_redefinition)
11687 (macro_undef, macro_lookup_definition, foreach_macro)
11688 (foreach_macro_in_scope): Update.
11689 (macro_source_fullname): Return a std::string.
11690 * macrocmd.c (show_pp_source_pos): Update.
11691
6506371f
TT
116922019-02-17 Tom Tromey <tom@tromey.com>
11693
11694 * macrocmd.c (show_pp_source_pos): Style the file names.
11695
0c820d67
TT
116962019-02-17 Tom Tromey <tom@tromey.com>
11697
11698 PR tui/24197:
11699 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11700
a0087920
TT
117012019-02-17 Tom Tromey <tom@tromey.com>
11702
11703 * ada-lang.c (user_select_syms): Use filtered printing.
11704 * utils.c (wrap_style): New global.
11705 (desired_style): Remove.
11706 (emit_style_escape): Add stream parameter.
11707 (set_output_style, reset_terminal_style, prompt_for_continue):
11708 Update.
11709 (flush_wrap_buffer): Only flush gdb_stdout.
11710 (wrap_here): Set wrap_style.
11711 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11712 treat escape sequences as a character. Change when wrap buffer is
11713 flushed.
11714 (fputs_styled): Do not set the output style when the default is
11715 requested.
11716 * ui-style.h (struct ui_file_style) <is_default>: New method.
11717 * source.c (print_source_lines_base): Emit escape sequences in one
11718 piece.
11719
75ba10dc
JB
117202019-02-17 Joel Brobecker <brobecker@adacore.com>
11721
11722 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11723 integers and enumeration types.
11724
a2cd4f14
JB
117252019-02-17 Joel Brobecker <brobecker@adacore.com>
11726
11727 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11728 instead of lookup_symbol_in_language
11729 (do_exact_match): New function.
11730 (ada_get_symbol_name_matcher): Return do_exact_match when
11731 doing a verbatim match.
11732
485b851b
TT
117332019-02-15 Tom Tromey <tromey@adacore.com>
11734
11735 * ravenscar-thread.c (ravenscar_thread_target::resume)
11736 (ravenscar_thread_target::wait): Special case wildcard requests.
11737
0b790b1e
TT
117382019-02-15 Tom Tromey <tromey@adacore.com>
11739
11740 * ravenscar-thread.c (base_ptid): Remove.
11741 (struct ravenscar_thread_target) <close>: New method.
11742 <m_base_ptid>: New member.
11743 <update_inferior_ptid, active_task, task_is_currently_active,
11744 runtime_initialized>: Declare methods.
11745 <ravenscar_thread_target>: Add constructor.
11746 (ravenscar_thread_target::task_is_currently_active)
11747 (ravenscar_thread_target::update_inferior_ptid)
11748 (ravenscar_runtime_initialized): Rename. Now methods.
11749 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11750 (ravenscar_thread_target::update_thread_list): Update.
11751 (ravenscar_thread_target::active_task): Now method.
11752 (ravenscar_thread_target::store_registers)
11753 (ravenscar_thread_target::prepare_to_store)
11754 (ravenscar_thread_target::prepare_to_store)
11755 (ravenscar_thread_target::mourn_inferior): Update.
11756 (ravenscar_inferior_created): Use "new" to create target.
11757 (ravenscar_thread_target::get_ada_task_ptid): Update.
11758 (_initialize_ravenscar): Don't initialize base_ptid.
11759 (ravenscar_ops): Remove global.
11760
dea57a62
TT
117612019-02-15 Tom Tromey <tromey@adacore.com>
11762
11763 * target.h (push_target): Declare new overload.
11764 * target.c (push_target): New overload, taking an rvalue reference.
11765 * remote.c (remote_target::open_1): Use push_target overload.
11766 * corelow.c (core_target_open): Use push_target overload.
11767
989f3c58
TT
117682019-02-15 Tom Tromey <tromey@adacore.com>
11769
11770 * ravenscar-thread.c (is_ravenscar_task)
11771 (ravenscar_task_is_currently_active): Return bool.
11772 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11773 (_initialize_ravenscar): Remove "(void)".
11774 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11775 Return bool.
11776
6cbcc006
TT
117772019-02-15 Tom Tromey <tromey@adacore.com>
11778
11779 * ravenscar-thread.c (ravenscar_runtime_initializer)
11780 (has_ravenscar_runtime, get_running_thread_id)
11781 (ravenscar_thread_target::resume): Fix indentation.
11782
7657f14d
TT
117832019-02-15 Tom Tromey <tromey@adacore.com>
11784
11785 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11786 from ravenscar_arch_ops.
11787 (sparc_ravenscar_ops::fetch_registers)
11788 (sparc_ravenscar_ops::store_registers): Now methods.
11789 (sparc_ravenscar_prepare_to_store): Remove.
11790 (sparc_ravenscar_ops): Redefine.
11791 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11792 methods and destructor. Remove members.
11793 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11794 (ravenscar_thread_target::store_registers)
11795 (ravenscar_thread_target::prepare_to_store): Update.
11796 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11797 Remove.
11798 (struct ppc_ravenscar_powerpc_ops): Derive from
11799 ravenscar_arch_ops.
11800 (ppc_ravenscar_powerpc_ops::fetch_registers)
11801 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11802 (ppc_ravenscar_powerpc_ops): Redefine.
11803 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11804 (ppc_ravenscar_e500_ops::fetch_registers)
11805 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11806 (ppc_ravenscar_e500_ops): Redefine.
11807 * aarch64-ravenscar-thread.c
11808 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11809 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11810 (aarch64_ravenscar_fetch_registers)
11811 (aarch64_ravenscar_store_registers): Now methods.
11812 (aarch64_ravenscar_ops): Redefine.
11813
5b6ea500
TT
118142019-02-15 Tom Tromey <tromey@adacore.com>
11815
11816 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11817 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11818 (ravenscar_thread_target::stopped_by_watchpoint)
11819 (ravenscar_thread_target::stopped_data_address)
11820 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11821
e397fd39
TT
118222019-02-15 Tom Tromey <tromey@adacore.com>
11823
11824 * ravenscar-thread.c: Fix some typos.
11825
cc12f4a8
TT
118262019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11827 Tom Tromey <tromey@adacore.com>
11828
11829 * ada-lang.c (ada_exception_sal): Change addr_string to a
11830 std::string.
11831 (create_ada_exception_catchpoint): Update.
11832
5f486660
TT
118332019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11834 Tom Tromey <tromey@adacore.com>
11835
11836 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11837 (bp_location_ops): Remove.
11838 (base_breakpoint_allocate_location): Update.
11839 (free_bp_location): Update.
11840 * ada-lang.c (class ada_catchpoint_location)
11841 <ada_catchpoint_location>: Remove ops parameter.
11842 (ada_catchpoint_location_dtor): Remove.
11843 (ada_catchpoint_location_ops): Remove.
11844 (allocate_location_exception): Update.
11845 * breakpoint.h (struct bp_location_ops): Remove.
11846 (class bp_location) <bp_location>: Remove bp_location_ops
11847 parameter.
11848 <~bp_location>: Add destructor.
11849 <ops>: Remove.
11850
b671c7fb
TS
118512019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11852 Pedro Alves <palves@redhat.com>
11853
11854 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11855 'PATH_MAX'.
11856
8071c5ce
DM
118572019-02-14 David Michael <fedora.dm0@gmail.com>
11858 Samuel Thibault <samuel.thibault@gnu.org>
11859 Thomas Schwinge <thomas@codesourcery.com>
11860
11861 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11862 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11863
b1041ae0
TS
118642019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11865
924514e1
TS
11866 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11867 (check_empty): Use "const char *".
11868
c29ee8d4
TS
11869 * gnu-nat.c (gnu_nat_target::detach): Instead of
11870 'detach_inferior (pid)' call
11871 'detach_inferior (find_inferior_pid (pid))'.
11872
6c6ef69f
TS
11873 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11874 'nat/fork-inferior.o'.
11875 * gnu-nat.c: #include "nat/fork-inferior.h".
11876
2d0a338c
TS
11877 * gnu-nat.c (gnu_nat_target::detach): Instead of
11878 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11879 * gnu-nat.h: #include "inf-child.h".
11880 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11881 'i386_gnu_nat_target::fetch_registers'.
11882 (gnu_store_registers): Rename/move to
11883 'i386_gnu_nat_target::store_registers'.
11884
cabb5f06
TS
11885 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11886 * gnu-nat.h (mach_thread_info): New function.
11887 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11888
b1041ae0
TS
11889 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11890
2988d01e
KF
118912019-02-14 Frederic Konrad <konrad@adacore.com>
11892
11893 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11894
c559d709
JB
118952019-02-14 Joel Brobecker <brobecker@adacore.com>
11896
11897 * windows-nat.c (windows_add_thread): Add new parameter
11898 "main_thread_p" with default value set to false. Update
11899 function documentation as well as all callers.
11900 (windows_delete_thread): Likewise.
11901 (fake_create_process): Update call to windows_add_thread.
11902 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11903 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11904 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11905 call to windows_delete_thread.
11906
007024cc
SM
119072019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11908
11909 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11910
f62318e9
JB
119112019-02-12 John Baldwin <jhb@FreeBSD.org>
11912
11913 * symfile.c (find_separate_debug_file): Use canonical path of
11914 sysroot with child_path instead of gdb_sysroot if it is valid.
11915
cd4b7848
JB
119162019-02-12 John Baldwin <jhb@FreeBSD.org>
11917
11918 * symfile.c (find_separate_debug_file): Use child_path to
11919 determine if an object file is under a sysroot.
11920
efac4bfe
JB
119212019-02-12 John Baldwin <jhb@FreeBSD.org>
11922
11923 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11924 unittests/child-path-selftests.c.
11925 * common/pathstuff.c (child_path): New function.
11926 * common/pathstuff.h (child_path): New prototype.
11927 * unittests/child-path-selftests.c: New file.
11928
402d2bfe
JB
119292019-02-12 John Baldwin <jhb@FreeBSD.org>
11930
11931 * symfile.c (find_separate_debug_file): Look for separate debug
11932 files in debug directories under the sysroot.
11933
1ed9f74e
PW
119342019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11935
11936 * symtab.h (struct minimal_symbol data_p): New const method.
11937 (struct minimal_symbol text_p): Likewise.
11938 * symtab.c (output_source_filename): Use file name style
11939 to print file name.
11940 (print_symbol_info): Likewise.
11941 (print_msymbol_info): Use address style to print addresses.
11942 Use function name style to print executable text symbols.
11943 (expand_symtab_containing_pc): Use data_p.
11944 (find_pc_sect_compunit_symtab): Likewise.
11945
2636d81d
PW
119462019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11947
11948 * breakpoint.c (describe_other_breakpoints): Use address style
11949 to print addresses.
11950 (say_where): Likewise.
11951
ac8c53cc
PW
119522019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11953
11954 * ada-typeprint.c (print_func_type): Print function name
11955 style to print function name.
11956 * c-typeprint.c (c_print_type_1): Likewise.
11957
ea638c43
AH
119582019-02-11 Alan Hayward <alan.hayward@arm.com>
11959
11960 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11961 for execve.
11962
ab759ca8
PW
119632019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11964
11965 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11966 type_stack.
11967
aff29d1c
JB
119682019-02-10 Joel Brobecker <brobecker@adacore.com>
11969
11970 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11971 TYPE_CODE_REF types.
11972
617126bc
JW
119732019-02-08 Jim Wilson <jimw@sifive.com>
11974
11975 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11976 (riscv_linux_fregset): New.
11977 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11978
46e3ed7f
TT
119792019-02-07 Tom Tromey <tom@tromey.com>
11980
11981 * thread.c (thread_cancel_execution_command): Update.
11982 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11983 methods.
11984 (struct thread_fsm_ops): Remove.
11985 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11986 (thread_fsm_should_stop, thread_fsm_return_value)
11987 (thread_fsm_set_finished, thread_fsm_finished_p)
11988 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11989 Don't declare.
11990 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11991 * infrun.c (clear_proceed_status_thread)
11992 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11993 (print_stop_event): Update.
11994 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11995 Add constructor.
11996 (step_command_fsm_ops): Remove.
11997 (new_step_command_fsm): Remove.
11998 (step_1): Update.
11999 (step_command_fsm::should_stop): Rename from
12000 step_command_fsm_should_stop.
12001 (step_command_fsm::clean_up): Rename from
12002 step_command_fsm_clean_up.
12003 (step_command_fsm::do_async_reply_reason): Rename from
12004 step_command_fsm_async_reply_reason.
12005 (struct until_next_fsm): Inherit from thread_fsm. Add
12006 constructor.
12007 (until_next_fsm_ops): Remove.
12008 (new_until_next_fsm): Remove.
12009 (until_next_fsm::should_stop): Rename from
12010 until_next_fsm_should_stop.
12011 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12012 (until_next_fsm::do_async_reply_reason): Rename from
12013 until_next_fsm_async_reply_reason.
12014 (struct finish_command_fsm): Inherit from thread_fsm. Add
12015 constructor. Change type of breakpoint.
12016 (finish_command_fsm_ops): Remove.
12017 (new_finish_command_fsm): Remove.
12018 (finish_command_fsm::should_stop): Rename from
12019 finish_command_fsm_should_stop.
12020 (finish_command_fsm::clean_up): Rename from
12021 finish_command_fsm_clean_up.
12022 (finish_command_fsm::return_value): Rename from
12023 finish_command_fsm_return_value.
12024 (finish_command_fsm::do_async_reply_reason): Rename from
12025 finish_command_fsm_async_reply_reason.
12026 (finish_command): Update.
12027 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12028 Add constructor.
12029 (call_thread_fsm_ops): Remove.
12030 (call_thread_fsm::call_thread_fsm): Rename from
12031 new_call_thread_fsm.
12032 (call_thread_fsm::should_stop): Rename from
12033 call_thread_fsm_should_stop.
12034 (call_thread_fsm::should_notify_stop): Rename from
12035 call_thread_fsm_should_notify_stop.
12036 (run_inferior_call, call_function_by_hand_dummy): Update.
12037 * cli/cli-interp.c (should_print_stop_to_console): Update.
12038 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12039 Add constructor. Change type of location_breakpoint,
12040 caller_breakpoint.
12041 (until_break_fsm_ops): Remove.
12042 (new_until_break_fsm): Remove.
12043 (until_break_fsm::should_stop): Rename from
12044 until_break_fsm_should_stop.
12045 (until_break_fsm::clean_up): Rename from
12046 until_break_fsm_clean_up.
12047 (until_break_fsm::do_async_reply_reason): Rename from
12048 until_break_fsm_async_reply_reason.
12049 (until_break_command): Update.
12050 * thread-fsm.c: Remove.
12051 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12052
1a5c2598
TT
120532019-02-07 Tom Tromey <tom@tromey.com>
12054
12055 * yy-remap.h: Add include guard.
12056 * xtensa-tdep.h: Add include guard.
12057 * xcoffread.h: Rename include guard.
12058 * varobj-iter.h: Add include guard.
12059 * tui/tui.h: Rename include guard.
12060 * tui/tui-winsource.h: Rename include guard.
12061 * tui/tui-wingeneral.h: Rename include guard.
12062 * tui/tui-windata.h: Rename include guard.
12063 * tui/tui-win.h: Rename include guard.
12064 * tui/tui-stack.h: Rename include guard.
12065 * tui/tui-source.h: Rename include guard.
12066 * tui/tui-regs.h: Rename include guard.
12067 * tui/tui-out.h: Rename include guard.
12068 * tui/tui-layout.h: Rename include guard.
12069 * tui/tui-io.h: Rename include guard.
12070 * tui/tui-hooks.h: Rename include guard.
12071 * tui/tui-file.h: Rename include guard.
12072 * tui/tui-disasm.h: Rename include guard.
12073 * tui/tui-data.h: Rename include guard.
12074 * tui/tui-command.h: Rename include guard.
12075 * tic6x-tdep.h: Add include guard.
12076 * target/waitstatus.h: Rename include guard.
12077 * target/wait.h: Rename include guard.
12078 * target/target.h: Rename include guard.
12079 * target/resume.h: Rename include guard.
12080 * target-float.h: Rename include guard.
12081 * stabsread.h: Add include guard.
12082 * rs6000-tdep.h: Add include guard.
12083 * riscv-fbsd-tdep.h: Add include guard.
12084 * regformats/regdef.h: Rename include guard.
12085 * record.h: Rename include guard.
12086 * python/python.h: Rename include guard.
12087 * python/python-internal.h: Rename include guard.
12088 * python/py-stopevent.h: Rename include guard.
12089 * python/py-ref.h: Rename include guard.
12090 * python/py-record.h: Rename include guard.
12091 * python/py-record-full.h: Rename include guard.
12092 * python/py-record-btrace.h: Rename include guard.
12093 * python/py-instruction.h: Rename include guard.
12094 * python/py-events.h: Rename include guard.
12095 * python/py-event.h: Rename include guard.
12096 * procfs.h: Add include guard.
12097 * proc-utils.h: Add include guard.
12098 * p-lang.h: Add include guard.
12099 * or1k-tdep.h: Rename include guard.
12100 * observable.h: Rename include guard.
12101 * nto-tdep.h: Rename include guard.
12102 * nat/x86-linux.h: Rename include guard.
12103 * nat/x86-linux-dregs.h: Rename include guard.
12104 * nat/x86-gcc-cpuid.h: Add include guard.
12105 * nat/x86-dregs.h: Rename include guard.
12106 * nat/x86-cpuid.h: Rename include guard.
12107 * nat/ppc-linux.h: Rename include guard.
12108 * nat/mips-linux-watch.h: Rename include guard.
12109 * nat/linux-waitpid.h: Rename include guard.
12110 * nat/linux-ptrace.h: Rename include guard.
12111 * nat/linux-procfs.h: Rename include guard.
12112 * nat/linux-osdata.h: Rename include guard.
12113 * nat/linux-nat.h: Rename include guard.
12114 * nat/linux-namespaces.h: Rename include guard.
12115 * nat/linux-btrace.h: Rename include guard.
12116 * nat/glibc_thread_db.h: Rename include guard.
12117 * nat/gdb_thread_db.h: Rename include guard.
12118 * nat/gdb_ptrace.h: Rename include guard.
12119 * nat/fork-inferior.h: Rename include guard.
12120 * nat/amd64-linux-siginfo.h: Rename include guard.
12121 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12122 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12123 * nat/aarch64-linux.h: Rename include guard.
12124 * nat/aarch64-linux-hw-point.h: Rename include guard.
12125 * mn10300-tdep.h: Add include guard.
12126 * mips-linux-tdep.h: Add include guard.
12127 * mi/mi-parse.h: Rename include guard.
12128 * mi/mi-out.h: Rename include guard.
12129 * mi/mi-main.h: Rename include guard.
12130 * mi/mi-interp.h: Rename include guard.
12131 * mi/mi-getopt.h: Rename include guard.
12132 * mi/mi-console.h: Rename include guard.
12133 * mi/mi-common.h: Rename include guard.
12134 * mi/mi-cmds.h: Rename include guard.
12135 * mi/mi-cmd-break.h: Rename include guard.
12136 * m2-lang.h: Add include guard.
12137 * location.h: Rename include guard.
12138 * linux-record.h: Rename include guard.
12139 * linux-nat.h: Add include guard.
12140 * linux-fork.h: Add include guard.
12141 * i386-darwin-tdep.h: Rename include guard.
12142 * hppa-linux-offsets.h: Add include guard.
12143 * guile/guile.h: Rename include guard.
12144 * guile/guile-internal.h: Rename include guard.
12145 * gnu-nat.h: Rename include guard.
12146 * gdb-stabs.h: Rename include guard.
12147 * frv-tdep.h: Add include guard.
12148 * f-lang.h: Add include guard.
12149 * event-loop.h: Add include guard.
12150 * darwin-nat.h: Rename include guard.
12151 * cp-abi.h: Rename include guard.
12152 * config/sparc/nm-sol2.h: Rename include guard.
12153 * config/nm-nto.h: Rename include guard.
12154 * config/nm-linux.h: Add include guard.
12155 * config/i386/nm-i386gnu.h: Rename include guard.
12156 * config/djgpp/nl_types.h: Rename include guard.
12157 * config/djgpp/langinfo.h: Rename include guard.
12158 * compile/gcc-cp-plugin.h: Add include guard.
12159 * compile/gcc-c-plugin.h: Add include guard.
12160 * compile/compile.h: Rename include guard.
12161 * compile/compile-object-run.h: Rename include guard.
12162 * compile/compile-object-load.h: Rename include guard.
12163 * compile/compile-internal.h: Rename include guard.
12164 * compile/compile-cplus.h: Rename include guard.
12165 * compile/compile-c.h: Rename include guard.
12166 * common/xml-utils.h: Rename include guard.
12167 * common/x86-xstate.h: Rename include guard.
12168 * common/version.h: Rename include guard.
12169 * common/vec.h: Rename include guard.
12170 * common/tdesc.h: Rename include guard.
12171 * common/selftest.h: Rename include guard.
12172 * common/scoped_restore.h: Rename include guard.
12173 * common/scoped_mmap.h: Rename include guard.
12174 * common/scoped_fd.h: Rename include guard.
12175 * common/safe-iterator.h: Rename include guard.
12176 * common/run-time-clock.h: Rename include guard.
12177 * common/refcounted-object.h: Rename include guard.
12178 * common/queue.h: Rename include guard.
12179 * common/ptid.h: Rename include guard.
12180 * common/print-utils.h: Rename include guard.
12181 * common/preprocessor.h: Rename include guard.
12182 * common/pathstuff.h: Rename include guard.
12183 * common/observable.h: Rename include guard.
12184 * common/netstuff.h: Rename include guard.
12185 * common/job-control.h: Rename include guard.
12186 * common/host-defs.h: Rename include guard.
12187 * common/gdb_wait.h: Rename include guard.
12188 * common/gdb_vecs.h: Rename include guard.
12189 * common/gdb_unlinker.h: Rename include guard.
12190 * common/gdb_unique_ptr.h: Rename include guard.
12191 * common/gdb_tilde_expand.h: Rename include guard.
12192 * common/gdb_sys_time.h: Rename include guard.
12193 * common/gdb_string_view.h: Rename include guard.
12194 * common/gdb_splay_tree.h: Rename include guard.
12195 * common/gdb_setjmp.h: Rename include guard.
12196 * common/gdb_ref_ptr.h: Rename include guard.
12197 * common/gdb_optional.h: Rename include guard.
12198 * common/gdb_locale.h: Rename include guard.
12199 * common/gdb_assert.h: Rename include guard.
12200 * common/filtered-iterator.h: Rename include guard.
12201 * common/filestuff.h: Rename include guard.
12202 * common/fileio.h: Rename include guard.
12203 * common/environ.h: Rename include guard.
12204 * common/common-utils.h: Rename include guard.
12205 * common/common-types.h: Rename include guard.
12206 * common/common-regcache.h: Rename include guard.
12207 * common/common-inferior.h: Rename include guard.
12208 * common/common-gdbthread.h: Rename include guard.
12209 * common/common-exceptions.h: Rename include guard.
12210 * common/common-defs.h: Rename include guard.
12211 * common/common-debug.h: Rename include guard.
12212 * common/cleanups.h: Rename include guard.
12213 * common/buffer.h: Rename include guard.
12214 * common/btrace-common.h: Rename include guard.
12215 * common/break-common.h: Rename include guard.
12216 * cli/cli-utils.h: Rename include guard.
12217 * cli/cli-style.h: Rename include guard.
12218 * cli/cli-setshow.h: Rename include guard.
12219 * cli/cli-script.h: Rename include guard.
12220 * cli/cli-interp.h: Rename include guard.
12221 * cli/cli-decode.h: Rename include guard.
12222 * cli/cli-cmds.h: Rename include guard.
12223 * charset-list.h: Add include guard.
12224 * buildsym-legacy.h: Rename include guard.
12225 * bfin-tdep.h: Add include guard.
12226 * ax.h: Rename include guard.
12227 * arm-linux-tdep.h: Add include guard.
12228 * arm-fbsd-tdep.h: Add include guard.
12229 * arch/xtensa.h: Rename include guard.
12230 * arch/tic6x.h: Add include guard.
12231 * arch/i386.h: Add include guard.
12232 * arch/arm.h: Rename include guard.
12233 * arch/arm-linux.h: Rename include guard.
12234 * arch/arm-get-next-pcs.h: Rename include guard.
12235 * arch/amd64.h: Add include guard.
12236 * arch/aarch64-insn.h: Rename include guard.
12237 * arch-utils.h: Rename include guard.
12238 * annotate.h: Add include guard.
12239 * amd64-darwin-tdep.h: Rename include guard.
12240 * aarch64-linux-tdep.h: Add include guard.
12241 * aarch64-fbsd-tdep.h: Add include guard.
12242 * aarch32-linux-nat.h: Add include guard.
12243
ab9268d2
PW
122442019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12245
12246 * macrotab.c (macro_define_internal): New function that
12247 factorizes macro_define_object_internal and macro_define_function
12248 code.
12249 (macro_define_object_internal): Use macro_define_internal.
12250 (macro_define_function): Likewise.
12251
bb0da2b4
PW
122522019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12253
12254 * macrocmd.c (extract_identifier): Return
12255 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12256 callers.
12257
424eb552
JB
122582019-02-06 John Baldwin <jhb@FreeBSD.org>
12259
12260 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12261
1688cb29
TT
122622019-02-05 Tom Tromey <tom@tromey.com>
12263
12264 * target.c (target_stack::unpush): Move assertion earlier.
12265
b5eba2d8
TT
122662019-01-30 Tom Tromey <tom@tromey.com>
12267
12268 PR python/23615:
12269 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12270 (gdbpy_parse_and_eval): Likewise.
12271 * python/python-internal.h (gdbpy_allow_threads): New class.
12272
7054e2ff
JB
122732019-01-28 John Baldwin <jhb@FreeBSD.org>
12274
12275 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12276 (aarch64_fbsd_fpregmap): Move earlier.
12277 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12278 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12279 instead of individual calls to trad_frame_set_reg_addr.
12280 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12281 earlier.
12282 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12283 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12284 instead of individual calls to trad_frame_set_reg_addr.
12285
36c25ffa
AH
122862019-01-28 Alan Hayward <alan.hayward@arm.com>
12287
12288 * CONTRIBUTE: Replace contribution list with wiki link.
12289
a0707f3c
TT
122902019-01-25 Tom Tromey <tom@tromey.com>
12291
12292 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12293
0747795c
TT
122942019-01-25 Tom Tromey <tom@tromey.com>
12295
12296 * xtensa-linux-nat.c: Fix common/ includes.
12297 * xml-support.h: Fix common/ includes.
12298 * xml-support.c: Fix common/ includes.
12299 * x86-linux-nat.c: Fix common/ includes.
12300 * windows-nat.c: Fix common/ includes.
12301 * varobj.h: Fix common/ includes.
12302 * varobj.c: Fix common/ includes.
12303 * value.c: Fix common/ includes.
12304 * valops.c: Fix common/ includes.
12305 * utils.c: Fix common/ includes.
12306 * unittests/xml-utils-selftests.c: Fix common/ includes.
12307 * unittests/utils-selftests.c: Fix common/ includes.
12308 * unittests/unpack-selftests.c: Fix common/ includes.
12309 * unittests/tracepoint-selftests.c: Fix common/ includes.
12310 * unittests/style-selftests.c: Fix common/ includes.
12311 * unittests/string_view-selftests.c: Fix common/ includes.
12312 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12313 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12314 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12315 * unittests/rsp-low-selftests.c: Fix common/ includes.
12316 * unittests/parse-connection-spec-selftests.c: Fix common/
12317 includes.
12318 * unittests/optional-selftests.c: Fix common/ includes.
12319 * unittests/offset-type-selftests.c: Fix common/ includes.
12320 * unittests/observable-selftests.c: Fix common/ includes.
12321 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12322 * unittests/memrange-selftests.c: Fix common/ includes.
12323 * unittests/memory-map-selftests.c: Fix common/ includes.
12324 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12325 * unittests/function-view-selftests.c: Fix common/ includes.
12326 * unittests/environ-selftests.c: Fix common/ includes.
12327 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12328 * unittests/common-utils-selftests.c: Fix common/ includes.
12329 * unittests/cli-utils-selftests.c: Fix common/ includes.
12330 * unittests/array-view-selftests.c: Fix common/ includes.
12331 * ui-file.c: Fix common/ includes.
12332 * tui/tui-io.c: Fix common/ includes.
12333 * tracepoint.h: Fix common/ includes.
12334 * tracepoint.c: Fix common/ includes.
12335 * tracefile-tfile.c: Fix common/ includes.
12336 * top.h: Fix common/ includes.
12337 * top.c: Fix common/ includes.
12338 * thread.c: Fix common/ includes.
12339 * target/waitstatus.h: Fix common/ includes.
12340 * target/waitstatus.c: Fix common/ includes.
12341 * target.h: Fix common/ includes.
12342 * target.c: Fix common/ includes.
12343 * target-memory.c: Fix common/ includes.
12344 * target-descriptions.c: Fix common/ includes.
12345 * symtab.h: Fix common/ includes.
12346 * symfile.c: Fix common/ includes.
12347 * stap-probe.c: Fix common/ includes.
12348 * spu-linux-nat.c: Fix common/ includes.
12349 * sparc-nat.c: Fix common/ includes.
12350 * source.c: Fix common/ includes.
12351 * solib.c: Fix common/ includes.
12352 * solib-target.c: Fix common/ includes.
12353 * ser-unix.c: Fix common/ includes.
12354 * ser-tcp.c: Fix common/ includes.
12355 * ser-pipe.c: Fix common/ includes.
12356 * ser-base.c: Fix common/ includes.
12357 * selftest-arch.c: Fix common/ includes.
12358 * s12z-tdep.c: Fix common/ includes.
12359 * rust-exp.y: Fix common/ includes.
12360 * rs6000-aix-tdep.c: Fix common/ includes.
12361 * riscv-tdep.c: Fix common/ includes.
12362 * remote.c: Fix common/ includes.
12363 * remote-notif.h: Fix common/ includes.
12364 * remote-fileio.h: Fix common/ includes.
12365 * remote-fileio.c: Fix common/ includes.
12366 * regcache.h: Fix common/ includes.
12367 * regcache.c: Fix common/ includes.
12368 * record-btrace.c: Fix common/ includes.
12369 * python/python.c: Fix common/ includes.
12370 * python/py-type.c: Fix common/ includes.
12371 * python/py-inferior.c: Fix common/ includes.
12372 * progspace.h: Fix common/ includes.
12373 * producer.c: Fix common/ includes.
12374 * procfs.c: Fix common/ includes.
12375 * proc-api.c: Fix common/ includes.
12376 * printcmd.c: Fix common/ includes.
12377 * ppc-linux-nat.c: Fix common/ includes.
12378 * parser-defs.h: Fix common/ includes.
12379 * osdata.c: Fix common/ includes.
12380 * obsd-nat.c: Fix common/ includes.
12381 * nat/x86-linux.c: Fix common/ includes.
12382 * nat/x86-linux-dregs.c: Fix common/ includes.
12383 * nat/x86-dregs.h: Fix common/ includes.
12384 * nat/x86-dregs.c: Fix common/ includes.
12385 * nat/ppc-linux.c: Fix common/ includes.
12386 * nat/mips-linux-watch.h: Fix common/ includes.
12387 * nat/mips-linux-watch.c: Fix common/ includes.
12388 * nat/linux-waitpid.c: Fix common/ includes.
12389 * nat/linux-ptrace.h: Fix common/ includes.
12390 * nat/linux-ptrace.c: Fix common/ includes.
12391 * nat/linux-procfs.c: Fix common/ includes.
12392 * nat/linux-personality.c: Fix common/ includes.
12393 * nat/linux-osdata.c: Fix common/ includes.
12394 * nat/linux-namespaces.c: Fix common/ includes.
12395 * nat/linux-btrace.h: Fix common/ includes.
12396 * nat/linux-btrace.c: Fix common/ includes.
12397 * nat/fork-inferior.c: Fix common/ includes.
12398 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12399 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12400 * nat/aarch64-linux.c: Fix common/ includes.
12401 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12402 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12403 * namespace.h: Fix common/ includes.
12404 * mips-linux-tdep.c: Fix common/ includes.
12405 * minsyms.c: Fix common/ includes.
12406 * mi/mi-parse.h: Fix common/ includes.
12407 * mi/mi-main.c: Fix common/ includes.
12408 * mi/mi-cmd-env.c: Fix common/ includes.
12409 * memrange.h: Fix common/ includes.
12410 * memattr.c: Fix common/ includes.
12411 * maint.h: Fix common/ includes.
12412 * maint.c: Fix common/ includes.
12413 * main.c: Fix common/ includes.
12414 * machoread.c: Fix common/ includes.
12415 * location.c: Fix common/ includes.
12416 * linux-thread-db.c: Fix common/ includes.
12417 * linux-nat.c: Fix common/ includes.
12418 * linux-fork.c: Fix common/ includes.
12419 * inline-frame.c: Fix common/ includes.
12420 * infrun.c: Fix common/ includes.
12421 * inflow.c: Fix common/ includes.
12422 * inferior.h: Fix common/ includes.
12423 * inferior.c: Fix common/ includes.
12424 * infcmd.c: Fix common/ includes.
12425 * inf-ptrace.c: Fix common/ includes.
12426 * inf-child.c: Fix common/ includes.
12427 * ia64-linux-nat.c: Fix common/ includes.
12428 * i387-tdep.c: Fix common/ includes.
12429 * i386-tdep.c: Fix common/ includes.
12430 * i386-linux-tdep.c: Fix common/ includes.
12431 * i386-linux-nat.c: Fix common/ includes.
12432 * i386-go32-tdep.c: Fix common/ includes.
12433 * i386-fbsd-tdep.c: Fix common/ includes.
12434 * i386-fbsd-nat.c: Fix common/ includes.
12435 * guile/scm-type.c: Fix common/ includes.
12436 * guile/guile.c: Fix common/ includes.
12437 * go32-nat.c: Fix common/ includes.
12438 * gnu-nat.c: Fix common/ includes.
12439 * gdbthread.h: Fix common/ includes.
12440 * gdbarch-selftests.c: Fix common/ includes.
12441 * gdb_usleep.c: Fix common/ includes.
12442 * gdb_select.h: Fix common/ includes.
12443 * gdb_bfd.c: Fix common/ includes.
12444 * gcore.c: Fix common/ includes.
12445 * fork-child.c: Fix common/ includes.
12446 * findvar.c: Fix common/ includes.
12447 * fbsd-nat.c: Fix common/ includes.
12448 * event-top.c: Fix common/ includes.
12449 * event-loop.c: Fix common/ includes.
12450 * dwarf2read.c: Fix common/ includes.
12451 * dwarf2loc.c: Fix common/ includes.
12452 * dwarf2-frame.c: Fix common/ includes.
12453 * dwarf-index-cache.c: Fix common/ includes.
12454 * dtrace-probe.c: Fix common/ includes.
12455 * disasm-selftests.c: Fix common/ includes.
12456 * defs.h: Fix common/ includes.
12457 * csky-tdep.c: Fix common/ includes.
12458 * cp-valprint.c: Fix common/ includes.
12459 * cp-support.h: Fix common/ includes.
12460 * cp-support.c: Fix common/ includes.
12461 * corelow.c: Fix common/ includes.
12462 * completer.h: Fix common/ includes.
12463 * completer.c: Fix common/ includes.
12464 * compile/compile.c: Fix common/ includes.
12465 * compile/compile-loc2c.c: Fix common/ includes.
12466 * compile/compile-cplus-types.c: Fix common/ includes.
12467 * compile/compile-cplus-symbols.c: Fix common/ includes.
12468 * command.h: Fix common/ includes.
12469 * cli/cli-dump.c: Fix common/ includes.
12470 * cli/cli-cmds.c: Fix common/ includes.
12471 * charset.c: Fix common/ includes.
12472 * build-id.c: Fix common/ includes.
12473 * btrace.h: Fix common/ includes.
12474 * btrace.c: Fix common/ includes.
12475 * breakpoint.h: Fix common/ includes.
12476 * breakpoint.c: Fix common/ includes.
12477 * ax.h:
12478 (enum agent_op): Fix common/ includes.
12479 * ax-general.c (struct aop_map): Fix common/ includes.
12480 * ax-gdb.c: Fix common/ includes.
12481 * auxv.c: Fix common/ includes.
12482 * auto-load.c: Fix common/ includes.
12483 * arm-tdep.c: Fix common/ includes.
12484 * arch/riscv.c: Fix common/ includes.
12485 * arch/ppc-linux-common.c: Fix common/ includes.
12486 * arch/i386.c: Fix common/ includes.
12487 * arch/arm.c: Fix common/ includes.
12488 * arch/arm-linux.c: Fix common/ includes.
12489 * arch/arm-get-next-pcs.c: Fix common/ includes.
12490 * arch/amd64.c: Fix common/ includes.
12491 * arch/aarch64.c: Fix common/ includes.
12492 * arch/aarch64-insn.c: Fix common/ includes.
12493 * arch-utils.c: Fix common/ includes.
12494 * amd64-windows-tdep.c: Fix common/ includes.
12495 * amd64-tdep.c: Fix common/ includes.
12496 * amd64-sol2-tdep.c: Fix common/ includes.
12497 * amd64-obsd-tdep.c: Fix common/ includes.
12498 * amd64-nbsd-tdep.c: Fix common/ includes.
12499 * amd64-linux-tdep.c: Fix common/ includes.
12500 * amd64-linux-nat.c: Fix common/ includes.
12501 * amd64-fbsd-tdep.c: Fix common/ includes.
12502 * amd64-fbsd-nat.c: Fix common/ includes.
12503 * amd64-dicos-tdep.c: Fix common/ includes.
12504 * amd64-darwin-tdep.c: Fix common/ includes.
12505 * agent.c: Fix common/ includes.
12506 * ada-lang.h: Fix common/ includes.
12507 * ada-lang.c: Fix common/ includes.
12508 * aarch64-tdep.c: Fix common/ includes.
12509
2f5c153e
TT
125102019-01-25 Tom Tromey <tom@tromey.com>
12511
12512 * common/create-version.sh: Use common/version.h.
12513
adc6a863
PA
125142019-01-24 Pedro Alves <palves@redhat.com>
12515
12516 * infrun.c (signal_stop, signal_print, signal_program)
12517 (signal_catch, signal_pass): Now arrays instead of pointers.
12518 (update_signals_program_target, do_target_resume)
12519 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12520 * linux-nat.c (linux_nat_target::pass_signals)
12521 (linux_nat_target::create_inferior, linux_nat_target::attach):
12522 Adjust.
12523 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12524 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12525 * procfs.c (procfs_target::pass_signals): Adjust.
12526 * record-full.c (record_full_target::resume): Adjust.
12527 * remote.c (remote_target::pass_signals)
12528 (remote_target::program_signals): Adjust.
12529 * target-debug.h (target_debug_print_signals): Now takes a
12530 gdb::array_view as parameter. Adjust.
12531 * target.h (target_ops) <pass_signals, program_signals>: Replace
12532 pointer and length parameters with gdb::array_view.
12533 (target_pass_signals, target_program_signals): Likewise.
12534 * target-delegates.c: Regenerate.
12535
3046d67a
PA
125362019-01-24 Pedro Alves <palves@redhat.com>
12537
12538 * common/forward-scope-exit.h
12539 (forward_scope_exit::forward_scope_exit): Pass arguments to
12540 m_bind_function directly, instead of creating a std::bind and
12541 copying that.
12542
353229bf
AH
125432019-01-24 Alan Hayward <alan.hayward@arm.com>
12544
12545 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12546 for static members.
12547 (pass_in_v_vfp_candidate): Likewise.
12548
311dc83a
TT
125492019-01-23 Tom Tromey <tom@tromey.com>
12550 Pedro Alves <palves@redhat.com>
12551
12552 * regcache.c (class regcache_invalidator): Remove.
12553 (regcache::raw_write): Use make_scope_exit.
12554
296bd123
TT
125552019-01-23 Tom Tromey <tom@tromey.com>
12556
12557 * ui-out.h (class ui_out_emit_type): Update comment.
12558
979a0d13
TT
125592019-01-23 Tom Tromey <tom@tromey.com>
12560
12561 * infrun.c (fetch_inferior_event): Update comment.
12562
d238133d
TT
125632019-01-23 Tom Tromey <tom@tromey.com>
12564 Pedro Alves <palves@redhat.com>
12565
12566 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12567 parameter.
12568 (fetch_inferior_event): Use SCOPE_EXIT.
12569
12570
9885e6bb
TT
125712019-01-23 Tom Tromey <tom@tromey.com>
12572 Pedro Alves <palves@redhat.com>
12573
12574 * infrun.c (disable_thread_events): Delete.
12575 (stop_all_threads): Use SCOPE_EXIT.
12576
286526c1
TT
125772019-01-23 Tom Tromey <tom@tromey.com>
12578 Pedro Alves <palves@redhat.com>
12579
12580 * symfile.c: Include forward-scope-exit.h.
12581 (clear_symtab_users_cleanup): Replace forward declaration with
12582 a FORWARD_SCOPE_EXIT.
12583 (syms_from_objfile_1): Use the forward_scope_exit and
12584 gdb::optional instead of cleanup_function.
12585 (reread_symbols): Use the forward_scope_exit instead of
12586 cleanup_function.
12587 (clear_symtab_users_cleanup): Remove function.
12588
1db93f14
TT
125892019-01-23 Tom Tromey <tom@tromey.com>
12590 Pedro Alves <palves@redhat.com>
12591
12592 * linux-nat.c: Include scope-exit.h.
12593 (cleanup_target_stop): Remove.
12594 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12595 SCOPE_EXIT.
12596
2cc83d1e
TT
125972019-01-23 Tom Tromey <tom@tromey.com>
12598 Pedro Alves <palves@redhat.com>
12599
12600 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12601 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12602
694c6bf5
TT
126032019-01-23 Tom Tromey <tom@tromey.com>
12604 Andrew Burgess <andrew.burgess@embecosm.com>
12605 Pedro Alves <palves@redhat.com>
12606
12607 * infrun.c (fetch_inferior_event): Use scope_exit.
12608 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12609 * top.c (execute_command): Use scope_exit.
12610 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12611 * utils.c (do_bpstat_clear_actions_cleanup)
12612 (make_bpstat_clear_actions_cleanup): Remove.
12613
4c41382a
TT
126142019-01-23 Tom Tromey <tom@tromey.com>
12615 Pedro Alves <palves@redhat.com>
12616
12617 * infrun.c: Include "common/scope-exit.h"
12618 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12619 (wait_for_inferior): Use SCOPE_EXIT.
12620 (fetch_inferior_event): Use scope_exit.
12621
89f8fb50
TT
126222019-01-23 Tom Tromey <tom@tromey.com>
12623 Pedro Alves <palves@redhat.com>
12624
12625 * breakpoint.c (create_breakpoint): Remove cleanup.
12626
5419bdae
TT
126272019-01-23 Tom Tromey <tom@tromey.com>
12628 Andrew Burgess <andrew.burgess@embecosm.com>
12629 Pedro Alves <palves@redhat.com>
12630
e587ef42
PA
126312019-01-23 Pedro Alves <palves@redhat.com>
12632
12633 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12634
77f0e74c
PA
126352019-01-23 Pedro Alves <palves@redhat.com>
12636 Andrew Burgess <andrew.burgess@embecosm.com>
12637
12638 * gdbthread.h: Include "common/forward-scope-exit.h".
12639 (scoped_finish_thread_state): Redefine custom class in terms of
12640 forward_scope_exit.
12641
5b9b3e53
PA
126422019-01-23 Pedro Alves <palves@redhat.com>
12643 Andrew Burgess <andrew.burgess@embecosm.com>
12644
12645 * common/forward-scope-exit.h: New file.
12646
54b65c9b
PA
126472019-01-23 Pedro Alves <palves@redhat.com>
12648 Andrew Burgess <andrew.burgess@embecosm.com>
12649 Tom Tromey <tom@tromey.com>
12650
12651 * common/scope-exit.h: New file.
12652
cf08fb29
PA
126532019-01-23 Pedro Alves <palves@redhat.com>
12654
12655 * common/preprocessor.h (ESC): Rename to ...
12656 (ESC_PARENS): ... this.
12657 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12658 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12659
ae73e2e2
TT
126602019-01-23 Tom Tromey <tom@tromey.com>
12661
12662 * language.h (class scoped_switch_to_sym_language_if_auto):
12663 Initialize m_lang in both cases.
12664
6594e122
AH
126652019-01-23 Alan Hayward <alan.hayward@arm.com>
12666
12667 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12668 with XCNEW.
12669
a7c9855d
TT
126702019-01-22 Tom Tromey <tom@tromey.com>
12671
12672 * corelow.c: Do not include sys/file.h.
12673
93cc1d53
TT
126742019-01-22 Tom Tromey <tom@tromey.com>
12675
12676 * tui/tui-wingeneral.h: Include gdb_curses.h.
12677
38561778
TT
126782019-01-22 Tom Tromey <tom@tromey.com>
12679
12680 * source-cache.h (class source_cache) <get_source_lines,
12681 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12682
37b3ab5b
TT
126832019-01-22 Tom Tromey <tom@tromey.com>
12684
12685 * remote-fileio.h (struct remote_target): Declare.
12686
3fabc016
TT
126872019-01-22 Tom Tromey <tom@tromey.com>
12688
12689 * python/py-arch.c: Do not include py-ref.h.
12690 * python/py-bpevent.c: Do not include py-ref.h.
12691 * python/py-cmd.c: Do not include py-ref.h.
12692 * python/py-continueevent.c: Do not include py-ref.h.
12693 * python/py-event.h: Do not include py-ref.h.
12694 * python/py-evtregistry.c: Do not include py-ref.h.
12695 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12696 * python/py-frame.c: Do not include py-ref.h.
12697 * python/py-framefilter.c: Do not include py-ref.h.
12698 * python/py-function.c: Do not include py-ref.h.
12699 * python/py-infevents.c: Do not include py-ref.h.
12700 * python/py-linetable.c: Do not include py-ref.h.
12701 * python/py-objfile.c: Do not include py-ref.h.
12702 * python/py-param.c: Do not include py-ref.h.
12703 * python/py-prettyprint.c: Do not include py-ref.h.
12704 * python/py-progspace.c: Do not include py-ref.h.
12705 * python/py-symbol.c: Do not include py-ref.h.
12706 * python/py-symtab.c: Do not include py-ref.h.
12707 * python/py-type.c: Do not include py-ref.h.
12708 * python/py-unwind.c: Do not include py-ref.h.
12709 * python/py-utils.c: Do not include py-ref.h.
12710 * python/py-value.c: Do not include py-ref.h.
12711 * python/py-varobj.c: Do not include py-ref.h.
12712 * python/py-xmethods.c: Do not include py-ref.h.
12713 * python/python.c: Do not include py-ref.h.
12714 * varobj.c: Do not include py-ref.h.
12715
6b4d7774
TT
127162019-01-22 Tom Tromey <tom@tromey.com>
12717
12718 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12719 keyword for bcache.
12720
7af7e9b5
TT
127212019-01-22 Tom Tromey <tom@tromey.com>
12722
12723 * compile/compile-cplus-types.c: Remove a comment by #include.
12724
951d1049
TT
127252019-01-22 Tom Tromey <tom@tromey.com>
12726
12727 * compile/gcc-c-plugin.h: Include compile-internal.h.
12728
d65d5705
TT
127292019-01-22 Tom Tromey <tom@tromey.com>
12730
12731 * stabsread.c (EXTERN): Do not define.
12732 (symnum, next_symbol_text_func, processing_gcc_compilation)
12733 (within_function, global_sym_chain, global_stabs)
12734 (previous_stab_code, this_object_header_files)
12735 (n_this_object_header_files)
12736 (n_allocated_this_object_header_files): Define.
12737 * stabsread.h (EXTERN): Never define. Use "extern".
12738
b6fb1ee5
PW
127392019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12740
12741 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12742 history_value.
12743
be6d4f74
TT
127442019-01-21 Tom Tromey <tom@tromey.com>
12745
12746 * ui-out.c: Fix includes.
12747 * tui/tui-source.c: Fix includes.
12748 * target.c: Fix includes.
12749 * remote.c: Fix includes.
12750 * regcache.c: Fix includes.
12751 * python/py-block.c: Fix includes.
12752 * printcmd.c: Fix includes.
12753 * or1k-tdep.c: Fix includes.
12754 * mi/mi-main.c: Fix includes.
12755 * m32r-tdep.c: Fix includes.
12756 * csky-tdep.c: Fix includes.
12757 * compile/compile-cplus-types.c: Fix includes.
12758 * cli/cli-interp.c: Fix includes.
12759
73021deb
AH
127602019-01-21 Alan Hayward <alan.hayward@arm.com>
12761
12762 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12763 for padding.
12764
7932255d
TT
127652019-01-16 Tom Tromey <tom@tromey.com>
12766
12767 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12768 earlier.
12769 (struct objfile) <msymbols_range>: Move from top level.
12770 <msymbols>: New method.
12771 (class objfile_msymbols): Remove.
12772 * symtab.c (default_collect_symbol_completion_matches_break_on):
12773 Update.
12774 * symmisc.c (dump_msymbols): Update.
12775 * stabsread.c (scan_file_globals): Update.
12776 * objc-lang.c (info_selectors_command, info_classes_command)
12777 (find_methods): Update.
12778 * minsyms.c (find_solib_trampoline_target): Update.
12779 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12780 * coffread.c (coff_symfile_read): Update.
12781 * ada-lang.c (ada_lookup_simple_minsym)
12782 (ada_collect_symbol_completion_matches): Update.
12783
604b1bfb
TT
127842019-01-16 Tom Tromey <tom@tromey.com>
12785
12786 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12787 type. Remove no-argument constructor.
12788 <iterator::operator++>: Simplify.
12789 <begin>: Update.
12790 <end>: Use minimal_symbol_count.
12791
f252c6d5
TT
127922019-01-16 Tom Tromey <tom@tromey.com>
12793
12794 * objfiles.h (struct objfile) <psymtabs>: New method.
12795 (class objfile_psymtabs): Remove.
12796 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12797 typedef.
12798 <range>: New method.
12799 (require_partial_symbols): Change return type.
12800 * psymtab.c (require_partial_symbols)
12801 (psym_expand_symtabs_matching): Update.
12802 * mdebugread.c (parse_partial_symbols): Update.
12803 * dbxread.c (dbx_end_psymtab): Update.
12804
b669c953
TT
128052019-01-15 Tom Tromey <tom@tromey.com>
12806
12807 * symtab.c (lookup_objfile_from_block)
12808 (lookup_symbol_in_objfile_symtabs)
12809 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12810 (find_line_symtab, info_sources_command)
12811 (default_collect_symbol_completion_matches_break_on)
12812 (make_source_files_completion_list): Update.
12813 * symmisc.c (print_objfile_statistics, dump_objfile)
12814 (maintenance_print_symbols, maintenance_info_symtabs)
12815 (maintenance_check_symtabs, maintenance_info_line_tables):
12816 Update.
12817 * source.c (select_source_symtab)
12818 (forget_cached_source_info_for_objfile): Update.
12819 * objfiles.h (class objfile_compunits): Remove.
12820 (struct objfile) <compunits_range>: New typedef.
12821 (compunits): New method.
12822 * objfiles.c (objfile_relocate1): Update.
12823 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12824 * maint.c (count_symtabs_and_blocks): Update.
12825 * linespec.c (iterate_over_all_matching_symtabs): Update.
12826 * cp-support.c (add_symbol_overload_list_qualified): Update.
12827 * coffread.c (coff_symtab_read): Update.
12828 * ada-lang.c (add_nonlocal_symbols)
12829 (ada_collect_symbol_completion_matches)
12830 (ada_add_global_exceptions): Update.
12831
7e955d83
TT
128322019-01-15 Tom Tromey <tom@tromey.com>
12833
12834 * progspace.h (program_space) <objfiles_safe_range>: New
12835 typedef.
12836 <objfiles_safe>: New method.
12837 * objfiles.h (class all_objfiles_safe): Remove.
12838 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12839 * jit.c (jit_inferior_exit_hook): Update.
12840
2030c079
TT
128412019-01-17 Tom Tromey <tom@tromey.com>
12842
12843 * progspace.h (program_space) <objfiles_range>: New typedef.
12844 <objfiles>: New method.
12845 <objfiles_head>: Rename from objfiles.
12846 (object_files): Update.
12847 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12848 * guile/scm-pretty-print.c
12849 (ppscm_find_pretty_printer_from_objfiles): Update.
12850 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12851 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12852 Update.
12853 * python/py-progspace.c (pspy_get_objfiles): Update.
12854 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12855 Update.
12856 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12857 (objfpy_lookup_objfile_by_build_id): Update.
12858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12859 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12860 Update.
12861 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12862 (expand_symtab_containing_pc, lookup_objfile_from_block)
12863 (lookup_static_symbol, basic_lookup_transparent_type)
12864 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12865 (find_line_symtab, info_sources_command)
12866 (default_collect_symbol_completion_matches_break_on)
12867 (make_source_files_completion_list, find_main_name): Update.
12868 * symmisc.c (print_symbol_bcache_statistics)
12869 (print_objfile_statistics, maintenance_print_symbols)
12870 (maintenance_print_msymbols, maintenance_print_objfiles)
12871 (maintenance_info_symtabs, maintenance_check_symtabs)
12872 (maintenance_expand_symtabs, maintenance_info_line_tables):
12873 Update.
12874 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12875 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12876 (map_overlay_command, unmap_overlay_command)
12877 (simple_overlay_update, expand_symtabs_matching)
12878 (map_symbol_filenames): Update.
12879 * symfile-debug.c (set_debug_symfile): Update.
12880 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12881 Update.
12882 * source.c (select_source_symtab, forget_cached_source_info):
12883 Update.
12884 * solib.c (solib_read_symbols): Update.
12885 * solib-spu.c (append_ocl_sos): Update.
12886 * psymtab.c (maintenance_print_psymbols)
12887 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12888 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12889 * printcmd.c (info_symbol_command): Update.
12890 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12891 Update.
12892 * objfiles.h (class all_objfiles): Remove.
12893 * objfiles.c (have_partial_symbols, have_full_symbols)
12894 (have_minimal_symbols, qsort_cmp, update_section_map)
12895 (shared_objfile_contains_address_p)
12896 (default_iterate_over_objfiles_in_search_order): Update.
12897 * objc-lang.c (info_selectors_command, info_classes_command)
12898 (find_methods): Update.
12899 * minsyms.c (find_solib_trampoline_target): Update.
12900 * maint.c (maintenance_info_sections)
12901 (maintenance_translate_address, count_symtabs_and_blocks):
12902 Update.
12903 * main.c (captured_main_1): Update.
12904 * linux-thread-db.c (try_thread_db_load_from_pdir)
12905 (has_libpthread): Update.
12906 * linespec.c (iterate_over_all_matching_symtabs)
12907 (search_minsyms_for_name): Update.
12908 * jit.c (jit_find_objf_with_entry_addr): Update.
12909 * hppa-tdep.c (find_unwind_entry)
12910 (hppa_lookup_stub_minimal_symbol): Update.
12911 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12912 Update.
12913 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12914 (elf_gnu_ifunc_resolve_by_got): Update.
12915 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12916 * dwarf-index-write.c (save_gdb_index_command): Update.
12917 * cp-support.c (add_symbol_overload_list_qualified): Update.
12918 * breakpoint.c (create_overlay_event_breakpoint)
12919 (create_longjmp_master_breakpoint)
12920 (create_std_terminate_master_breakpoint)
12921 (create_exception_master_breakpoint): Update.
12922 * blockframe.c (find_pc_partial_function): Update.
12923 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12924 (ada_collect_symbol_completion_matches)
12925 (ada_add_global_exceptions): Update.
12926
776489e0
TT
129272019-01-17 Tom Tromey <tom@tromey.com>
12928
12929 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12930 declare VEC.
12931 (solib_target_parse_libraries): Change return type.
12932 (library_list_start_segment, library_list_start_section)
12933 (library_list_end_library, library_list_start_library); Update.
12934 (solib_target_free_library_list): Remove.
12935 (solib_target_parse_libraries): Remove cleanup. Change return
12936 type.
12937 (solib_target_current_sos): Update.
12938
6471e7d2
TT
129392019-01-17 Tom Tromey <tromey@bapiya>
12940
12941 * valprint.c: Replace "the the" with "the".
12942 * symtab.c: Replace "the the" with "the".
12943 * solib.c: Replace "the the" with "the".
12944 * solib-dsbt.c: Replace "the the" with "the".
12945 * linespec.c: Replace "the the" with "the".
12946 * dwarf2loc.h: Replace "the the" with "the".
12947 * amd64-windows-tdep.c: Replace "the the" with "the".
12948 * aarch64-tdep.c: Replace "the the" with "the".
12949
c24bdb02
KS
129502019-01-16 Keith Seitz <keiths@redhat.com>
12951
12952 PR gdb/23773
12953 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12954 <builder>: Rename to ..
12955 <m_builder>: ... this and make private.
12956 (dwarf2_cu::get_builder): New method. Change all users of
12957 `builder' to use this method.
12958 (dwarf2_start_symtab): Move to ...
12959 (dwarf2_cu::start_symtab): ... here. Update all callers
12960 (setup_type_unit_groups): Move to ...
12961 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12962 callers.
12963 (dwarf2_cu::reset_builder): New method.
12964 (process_full_compunit, process_full_type_unit): Use
12965 dwarf2_cu::reset_builder.
12966 (follow_die_offset): Record the ancestor CU if it is different
12967 from the followed DIE's CU.
12968 (follow_die_sig_1): Likewise.
12969
8d64371b
TT
129702019-01-15 Tom Tromey <tom@tromey.com>
12971
12972 * remote.c (class remote_state) <buf>: Now a char_vector.
12973 <buf_size>: Remove.
12974 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12975 parameter.
12976 (remote_target::getpkt_or_notif_sane_1)
12977 (remote_target::getpkt_sane)
12978 (remote_target::getpkt_or_notif_sane): Likewise.
12979 (class remote_target) <putpkt>: New overload.
12980 (remote_target::read_frame): Change type of "buf_p". Remove
12981 sizeof_p parameter.
12982 (packet_ok): New overload.
12983 (packet_check_result): New overload.
12984 Update all uses.
12985
bb277751
TT
129862019-01-14 Tom Tromey <tom@tromey.com>
12987
12988 * remote-notif.c (handle_notification, remote_notif_ack)
12989 (remote_notif_parse): Make "buf" const.
12990 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12991 const.
12992 (remote_notif_parse, remote_notif_ack, handle_notification):
12993 Likewise.
12994 * remote.c (remote_notif_stop_parse): Make "buf" const.
12995 (remote_target::remote_parse_stop_reply): Make "buf" const.
12996 (remote_notif_stop_ack): Make "buf" const.
12997
05be00a8
TT
129982019-01-14 Tom Tromey <tom@tromey.com>
12999
13000 * remote.c (remote_console_output): Make parameter const.
13001
491adeca
TT
130022019-01-14 Tom Tromey <tom@tromey.com>
13003
13004 * target-debug.h (target_debug_print_signals): Constify.
13005 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13006 * procfs.c (procfs_target::pass_signals): Update.
13007 * linux-nat.c (linux_nat_target::pass_signals): Update.
13008 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13009 * target-delegates.c: Rebuild.
13010 * remote.c (remote_target::program_signals): Update.
13011 (remote_target::pass_signals): Update.
13012 * target.c (target_pass_signals): Constify argument.
13013 (target_program_signals): Likewise.
13014 * target.h (struct target_ops) <pass_signals, program_signals>:
13015 Constify argument.
13016 (target_pass_signals, target_program_signals): Constify argument.
13017
bbd94648
TT
130182019-01-14 Tom Tromey <tom@tromey.com>
13019
13020 PR tui/28819:
13021 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13022
6f072a10
PFC
130232019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13024
13025 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13026 field.
13027 * rs6000-tdep.c: Include reggroups.h.
13028 (IS_V_ALIAS_PSEUDOREG): Define.
13029 (rs6000_register_name): Return names for the "vX" aliases.
13030 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13031 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13032 aliases. Call default_register_reggroup_p for all other
13033 pseudo-registers.
13034 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13035 New functions.
13036 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13037 Handle "vX" aliases.
13038 (v_alias_pseudo_register_collect): New function.
13039 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13040 (rs6000_gdbarch_init): Initialize "vX" aliases as
13041 pseudo-registers. Restore registration of
13042 rs6000_pseudo_register_reggroup_p with
13043 set_tdesc_pseudo_register_reggroup_p.
13044
1a782351
MF
130452019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13046
13047 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13048 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13049 set_gdbarch_num_pseudo_regs.
13050
d73cff18
PW
130512019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13052
13053 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13054 Remove arg prefixname, add do_set and do_show.
13055 Add member functions set_list and show_list.
13056 * cli/cli-style.c (class cli_style_option): Update accordingly.
13057 (style_set_list): Move to file scope.
13058 (style_show_list): Likewise.
13059 (set_style): Call help_list.
13060 (show_style): Call cmd_show_list.
13061 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13062 Update to use the new macro.
13063
60a90376
JB
130642019-10-12 Joel Brobecker <brobecker@adacore.com>
13065
13066 * ada-lang.c (_initialize_ada_language): Expand the help text
13067 for the "catch exception" command.
13068
9d7c67bf
PW
130692019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13070
13071 * symtab.c (matching_obj_sections): Initialize obj,
13072 declare it closer to its usage.
13073
7cf47dc4
TT
130742019-01-10 Tom Tromey <tom@tromey.com>
13075
13076 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13077 (basic_inf_threads_range): Remove.
13078 (inf_threads_range, inf_non_exited_threads_range)
13079 (safe_inf_threads_range): Use next_adapter.
13080
d3cb6808
KS
130812019-01-10 Keith Seitz <keiths@redhat.com>
13082
13083 PR gdb/23712
13084 PR symtab/23010
13085 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13086 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13087
63a20375
KS
130882019-01-10 Keith Seitz <keiths@redhat.com>
13089
13090 PR gdb/23712
13091 PR symtab/23010
13092 * dictionary.c (pending_to_vector): Remove.
13093 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13094 Remove _1 suffix, replacing functions of the same name. Update
13095 all callers.
13096 (dict_create_hashed, dict_create_hashed_expandable)
13097 (dict_create_linear, dict_create_linear_expandable, dict_free)
13098 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13099 Make functions static.
13100
b026f593
KS
131012019-01-10 Keith Seitz <keiths@redhat.com>
13102
13103 PR gdb/23712
13104 PR symtab/23010
13105 * dictionary.h (struct dictionary): Replace declaration with
13106 multidictionary.
13107 (dict_create_hashed, dict_create_hashed_expandable)
13108 (dict_create_linear, dict_create_linear_expandable)
13109 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13110 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13111 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13112 taking multidictionary argument.
13113 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13114 * block.h (struct block) <dict>: Change to multidictionary
13115 and rename `multidict'.
13116 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13117 symmisc.c: Update all dictionary references to multidictionary.
13118
c7748ee9
KS
131192019-01-10 Keith Seitz <keiths@redhat.com>
13120
13121 PR gdb/23712
13122 PR symtab/23010
13123 * dictionary.c: Include unordered_map.
13124 (pending_to_vector): New function.
13125 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13126 Rewrite the non-"_1" functions to take vector instead
13127 of linked list.
13128 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13129 "new" _1 versions of the same name.
13130 (multidictionary): Define.
13131 (std::hash<enum language): New definition.
13132 (collate_pending_symbols_by_language, mdict_create_hashed)
13133 (mdict_create_hashed_expandable, mdict_create_linear)
13134 (mdict_create_linear_expandable, mdict_free)
13135 (find_language_dictionary, create_new_language_dictionary)
13136 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13137 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13138 (mdict_size, mdict_empty): New functions.
13139 * dictionary.h (mdict_iterator): Define.
13140
67aa1f3c
PA
131412019-01-10 Pedro Alves <palves@redhat.com>
13142
13143 * breakpoint.c (read_uploaded_action)
13144 (create_tracepoint_from_upload): Adjust to use
13145 gdb::unique_xmalloc_ptr.
13146 * ctf.c (ctf_write_uploaded_tp):
13147 (SET_ARRAY_FIELD): Use emplace_back.
13148 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13149 * tracefile-tfile.c (tfile_write_uploaded_tp):
13150 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13151 gdb::unique_xmalloc_ptr.
13152 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13153 at_string, cond_string, cmd_strings>: Replace char pointers
13154 with gdb::unique_xmalloc_ptr.
13155
2f667667
PA
131562019-01-10 Pedro Alves <palves@redhat.com>
13157
13158 * solib-target.c (library_list_start_library): Don't xstrdup name.
13159
36cb7237
PA
131602019-01-10 Pedro Alves <palves@redhat.com>
13161
13162 * mdebugread.c (parse_partial_symbols): Use
13163 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13164
da584958
AB
131652019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13166
13167 * linux-fork.c (scoped_switch_fork_info)
13168 <~scoped_switch_fork_info>: Fix incorrect variable name.
13169
1ef8573c
AB
131702019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13171
13172 * linux-fork.c (scoped_switch_fork_info)
13173 <scoped_switch_fork_info>: Make explicit.
13174 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13175
8d7bcccb
TT
131762019-01-10 Tom Tromey <tom@tromey.com>
13177
13178 * objfiles.h (objfile::reset_psymtabs): Update.
13179 * objfiles.c (objfile::objfile): Update.
13180 * psymtab.h (psymtab_storage::obstack): Update.
13181 (psymtab_storage::m_obstack): Use gdb::optional.
13182 (class psymtab_storage): Update comment. Remove objfile
13183 parameter.
13184 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13185
b596a3c7
TT
131862019-01-10 Tom Tromey <tom@tromey.com>
13187
13188 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13189 <free_psymtabs>: Now private.
13190 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13191 (allocate_psymtab): Use new method.
13192
a9342b62
TT
131932019-01-10 Tom Tromey <tom@tromey.com>
13194
13195 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13196 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13197 * mdebugread.c (parse_partial_symbols): Use
13198 allocate_dependencies.
13199 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13200 allocate_dependencies.
13201 (process_psymtab_comp_unit_reader)
13202 (build_type_psymtab_dependencies): Likewise.
13203 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13204
5af70966
TT
132052019-01-10 Tom Tromey <tom@tromey.com>
13206
13207 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13208 PSYMBOL_SET_LANGUAGE.
13209 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13210
5923a04c
TT
132112019-01-10 Tom Tromey <tom@tromey.com>
13212
13213 * psymtab.h (psymtab_storage::obstack): New method.
13214 <m_obstack>: Rename from obstack; now private.
13215 * psymtab.c (psymtab_storage): Update.
13216 * dwarf2read.c (create_addrmap_from_index)
13217 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13218 Update.
13219
6d6a12bf
TT
132202019-01-10 Tom Tromey <tom@tromey.com>
13221
13222 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13223 * objfiles.h (objfile::reset_psymtabs): New method.
13224
d320c2b5
TT
132252019-01-10 Tom Tromey <tom@tromey.com>
13226
13227 * symmisc.c (print_symbol_bcache_statistics): Update.
13228 (print_objfile_statistics): Update.
13229 * symfile.c (reread_symbols): Update.
13230 * psymtab.h (class psymtab_storage): New.
13231 * psymtab.c (psymtab_storage): New constructor.
13232 (~psymtab_storage): New destructor.
13233 (require_partial_symbols): Update.
13234 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13235 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13236 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13237 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13238 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13239 (start_psymtab_common, end_psymtab_common)
13240 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13241 (allocate_psymtab): Update.
13242 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13243 Update.
13244 (dump_psymtab_addrmap, maintenance_print_psymbols)
13245 (maintenance_check_psymtabs): Update.
13246 (class objfile_psymtabs): Move to objfiles.h.
13247 * psympriv.h (discard_psymtab): Now inline.
13248 (psymtab_discarder::psymtab_discarder): Update.
13249 (psymtab_discarder::~psymtab_discarder): Update.
13250 (ALL_OBJFILE_PSYMTABS): Rewrite.
13251 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13252 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13253 Remove fields.
13254 <partial_symtabs>: New field.
13255 (class objfile_psymtabs): Move from psymtab.h. Update.
13256 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13257 psymbol_cache.
13258 (objfile::~objfile): Don't destroy psymbol_cache.
13259 * mdebugread.c (parse_partial_symbols): Update.
13260 * dwarf2read.c (create_addrmap_from_index)
13261 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13262 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13263 (add_partial_subprogram, dwarf2_ranges_read): Update.
13264 * dwarf-index-write.c (write_address_map)
13265 (write_one_signatured_type, recursively_write_psymbols)
13266 (class debug_names, class debug_names, write_psymtabs_to_index):
13267 Update.
13268
1d94a5a3
TT
132692019-01-10 Tom Tromey <tom@tromey.com>
13270
13271 * symtab.h (SYMBOL_SET_NAMES): Update.
13272 (symbol_set_names): Update.
13273 (MSYMBOL_SET_NAMES): Update.
13274 * symtab.c (symbol_set_names): Change argument to be an
13275 objfile_per_bfd_storage.
13276 * psymtab.c (add_psymbol_to_bcache): Update.
13277 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13278
0f14768a
TT
132792019-01-10 Tom Tromey <tom@tromey.com>
13280
13281 * symtab.c (create_demangled_names_hash): Change argument to be an
13282 objfile_per_bfd_storage.
13283 (symbol_set_names): Update.
13284
6eee24ce
TT
132852019-01-10 Tom Tromey <tom@tromey.com>
13286
13287 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13288 init_psymbol_list.
13289 * psymtab.c (init_psymbol_list): Do nothing if already called.
13290 * psympriv.h (init_psymbol_list): Add comment.
13291 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13292 init_psymbol_list.
13293 * dbxread.c (dbx_symfile_read): Unconditionally call
13294 init_psymbol_list.
13295
75aedd27
TT
132962019-01-10 Tom Tromey <tom@tromey.com>
13297
13298 * xcoffread.c (scan_xcoff_symtab): Update.
13299 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13300 "where".
13301 * mdebugread.c (parse_partial_symbols)
13302 (handle_psymbol_enumerators): Update.
13303 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13304 * dbxread.c (read_dbx_symtab): Update.
13305 * psympriv.h (psymbol_placement): New enum.
13306 (add_psymbol_to_list): Update.
13307
939652a5
TT
133082019-01-10 Tom Tromey <tom@tromey.com>
13309
13310 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13311 static_psymbols parameters.
13312 (scan_xcoff_symtab): Update.
13313 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13314 static_psymbols parameters.
13315 * psympriv.h (start_psymtab_common): Update.
13316 * mdebugread.c (parse_partial_symbols): Update.
13317 * dwarf2read.c (create_partial_symtab): Update.
13318 * dbxread.c (read_dbx_symtab): Update.
13319 (start_psymtab): Remove global_psymbols and static_psymbols
13320 parameters.
13321
baa62830
TT
133222019-01-10 Tom Tromey <tom@tromey.com>
13323
13324 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13325 * psymtab.c (allocate_psymtab): Add comment.
13326 * psympriv.h (allocate_psymtab): Add comment.
13327 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13328 initializations.
13329 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13330
0e8f53ba
TT
133312019-01-10 Tom Tromey <tom@tromey.com>
13332
13333 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13334 Don't declare.
13335 * mipsread.c: Include mdebugread.h.
13336 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13337 Declare.
13338 * elfread.c: Include mdebugread.h.
13339
b22a7c6a
TT
133402019-01-09 Tom Tromey <tom@tromey.com>
13341
13342 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13343 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13344 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13345 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13346 (psym_lookup_symbol, psym_find_last_source_symtab)
13347 (psym_forget_cached_source_info, psym_print_stats)
13348 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13349 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13350 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13351 (psym_find_compunit_symtab_by_address)
13352 (maintenance_print_psymbols, maintenance_info_psymtabs)
13353 (maintenance_check_psymtabs): Use ranged for.
13354 * psymtab.h (class objfile_psymtabs): New.
13355 (require_partial_symbols): Return objfile_psymtabs.
13356 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13357
3b9d3ac2
TT
133582019-01-09 Tom Tromey <tom@tromey.com>
13359
13360 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13361 (find_pc_mapped_section, list_overlays_command)
13362 (map_overlay_command, unmap_overlay_command)
13363 (simple_overlay_update): Use all_objfiles.
13364 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13365 * printcmd.c (info_symbol_command): Use all_objfiles.
13366 * objfiles.h (ALL_OBJSECTIONS): Remove.
13367 * maint.c (maintenance_translate_address): Use all_objfiles.
13368 * gcore.c (gcore_create_callback): Use all_objfiles.
13369 (objfile_find_memory_regions): Likewise.
13370
8b31193a
TT
133712019-01-09 Tom Tromey <tom@tromey.com>
13372
13373 * symtab.c (find_line_symtab, info_sources_command)
13374 (make_source_files_completion_list): Use objfile_compunits.
13375 * source.c (select_source_symtab): Use objfile_compunits.
13376 * objfiles.h (struct objfile): Update comment.
13377 (ALL_OBJFILES): Remove.
13378 (ALL_FILETABS): Remove.
13379 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13380 objfile_compunits.
13381
d5da8b3c
TT
133822019-01-09 Tom Tromey <tom@tromey.com>
13383
13384 * symmisc.c (print_objfile_statistics, dump_objfile)
13385 (maintenance_print_symbols): Use compunit_filetabs.
13386 * source.c (forget_cached_source_info_for_objfile): Use
13387 compunit_filetabs.
13388 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13389 (ALL_FILETABS): Use compunit_filetabs.
13390 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13391 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13392
5accd1a0
TT
133932019-01-09 Tom Tromey <tom@tromey.com>
13394
13395 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13396 (compunit_filetabs): New.
13397 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13398 compunit_filetabs.
13399 (info_sources_command, make_source_files_completion_list): Remove
13400 declaration.
13401 * symmisc.c (print_objfile_statistics, dump_objfile)
13402 (maintenance_print_symbols): Remove declaration.
13403 (maintenance_info_symtabs): Use compunit_filetabs.
13404 (maintenance_info_line_tables): Likewise.
13405 * source.c (select_source_symtab): Change local variable name.
13406 (forget_cached_source_info_for_objfile): Remove declaration.
13407 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13408 * objfiles.c (objfile_relocate1): Remove declaration.
13409 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13410 declaration.
13411 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13412 * coffread.c (coff_symtab_read): Remove declaration.
13413 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13414 compunit_filetabs.
13415
d8aeb77f
TT
134162019-01-09 Tom Tromey <tom@tromey.com>
13417
13418 * symtab.c (lookup_objfile_from_block)
13419 (find_pc_sect_compunit_symtab, search_symbols)
13420 (default_collect_symbol_completion_matches_break_on): Use
13421 objfile_compunits.
13422 * objfiles.h (ALL_COMPUNITS): Remove.
13423 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13424 * cp-support.c (add_symbol_overload_list_qualified): Use
13425 objfile_compunits.
13426 * ada-lang.c (ada_collect_symbol_completion_matches)
13427 (ada_add_global_exceptions): Use objfile_compunits.
13428
592553c4
TT
134292019-01-09 Tom Tromey <tom@tromey.com>
13430
13431 * source.c (select_source_symtab)
13432 (forget_cached_source_info_for_objfile): Remove declaration.
13433 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13434 declaration.
13435 * maint.c (count_symtabs_and_blocks): Remove declaration.
13436 * cp-support.c (add_symbol_overload_list_qualified): Remove
13437 declaration.
13438 * coffread.c (coff_symtab_read): Remove declaration.
13439 * symtab.c (lookup_symbol_in_objfile_symtabs)
13440 (basic_lookup_transparent_type_1): Use objfile_compunits.
13441 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13442 (info_sources_command, search_symbols)
13443 (default_collect_symbol_completion_matches_break_on)
13444 (make_source_files_completion_list): Remove declaration.
13445 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13446 (ada_collect_symbol_completion_matches)
13447 (ada_add_global_exceptions): Remove declaration.
13448 * linespec.c (iterate_over_all_matching_symtabs): Use
13449 objfile_compunits.
13450 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13451 (class objfile_compunits): New.
13452 (ALL_COMPUNITS): Use objfile_compunits.
13453 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13454 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13455 objfile_compunits.
13456 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13457
5325b9bf
TT
134582019-01-09 Tom Tromey <tom@tromey.com>
13459
13460 * symtab.c (search_symbols)
13461 (default_collect_symbol_completion_matches_break_on): Use
13462 objfile_msymbols.
13463 * ada-lang.c (ada_lookup_simple_minsym)
13464 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13465 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13466 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13467 objfile_msymbols.
13468 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13469 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13470 * objc-lang.c (find_methods): Use objfile_msymbols.
13471 (info_selectors_command, info_classes_command): Likewise.
13472 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13473 * objfiles.h (class objfile_msymbols): New.
13474 (ALL_OBJFILE_MSYMBOLS): Remove.
13475 (ALL_MSYMBOLS): Remove.
13476
cac85af2
TT
134772019-01-09 Tom Tromey <tom@tromey.com>
13478
13479 * common/next-iterator.h (next_adapter): Add Iterator template
13480 parameter.
13481 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13482 (class all_objfiles_safe): New.
13483 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13484 * objfiles.c (put_objfile_before): Update comment.
13485 (add_separate_debug_objfile): Likewise.
13486 (free_all_objfiles): Use all_objfiles_safe.
13487 (objfile_purge_solibs): Likewise.
13488
aed57c53
TT
134892019-01-09 Tom Tromey <tom@tromey.com>
13490
13491 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13492 (expand_symtab_containing_pc, lookup_static_symbol)
13493 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13494 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13495 all_objfiles.
13496 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13497 * breakpoint.c (create_overlay_event_breakpoint)
13498 (create_longjmp_master_breakpoint)
13499 (create_std_terminate_master_breakpoint)
13500 (create_exception_master_breakpoint): Use all_objfiles.
13501 * linux-thread-db.c (try_thread_db_load_from_pdir)
13502 (has_libpthread): Use all_objfiles.
13503 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13504 * linespec.c (iterate_over_all_matching_symtabs)
13505 (search_minsyms_for_name): Use all_objfiles.
13506 * maint.c (maintenance_info_sections): Use all_objfiles.
13507 * main.c (captured_main_1): Use all_objfiles.
13508 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13509 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13510 * guile/scm-pretty-print.c
13511 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13512 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13513 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13514 (maintenance_print_msymbols): Use all_objfiles.
13515 * source.c (select_source_symtab): Use all_objfiles.
13516 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13517 * symfile.c (remove_symbol_file_command)
13518 (expand_symtabs_matching, map_symbol_filenames): Use
13519 all_objfiles.
13520 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13521 all_objfiles.
13522 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13523 * objc-lang.c (find_methods): Use all_objfiles.
13524 * objfiles.c (have_partial_symbols, have_full_symbols)
13525 (have_minimal_symbols, qsort_cmp)
13526 (default_iterate_over_objfiles_in_search_order): Use
13527 all_objfiles.
13528 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13529 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13530 (maintenance_check_psymtabs): Use all_objfiles.
13531 (ALL_PSYMTABS): Remove.
13532 * compile/compile-object-run.c (do_module_cleanup): Use
13533 all_objfiles.
13534 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13535 * cp-support.c (add_symbol_overload_list_qualified): Use
13536 all_objfiles.
13537 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13538 Use all_objfiles.
13539 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13540 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13541 all_objfiles.
13542 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13543 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13544 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13545 Uses all_objfiles.
13546 * solib.c (solib_read_symbols): Use all_objfiles
13547
99d89cde
TT
135482019-01-09 Tom Tromey <tom@tromey.com>
13549
13550 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13551 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13552 all_objfiles.
13553 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13554 * symmisc.c (print_symbol_bcache_statistics)
13555 (print_objfile_statistics, maintenance_print_objfiles)
13556 (maintenance_info_symtabs, maintenance_check_symtabs)
13557 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13558 all_objfiles.
13559 * source.c (forget_cached_source_info): Use all_objfiles.
13560 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13561 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13562 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13563 * objfiles.c (update_section_map): Use all_objfiles.
13564 (shared_objfile_contains_address_p): Likewise.
13565 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13566 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13567
21708325
TT
135682019-01-09 Tom Tromey <tom@tromey.com>
13569
13570 * common/next-iterator.h: New file.
13571 * objfiles.h (class all_objfiles): New.
13572 (struct objfile_iterator): New.
13573
669e09f6
PW
135742019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13575
13576 * NEWS: Move the description of the changed "frame", "select-frame",
13577 and "info frame" commands to the Changed commands section.
13578
041be526
SM
135792019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13580
13581 * gdbtypes.c (check_stub_method_group): Remove handling of old
13582 mangling schemes.
13583 * linespec.c (find_methods): Likewise.
13584 * stabsread.c (read_member_functions): Likewise.
13585 * valops.c (search_struct_method): Likewise.
13586 (value_struct_elt_for_reference): Likewise.
13587 * NEWS: Mention this change.
13588
0e2a2133
AB
135892019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13590
13591 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13592 print_source_lines.
13593 * source.c (print_source_lines_base): Update line number check.
13594 (print_source_lines): New function.
13595 (source_lines_range::source_lines_range): New function.
13596 * source.h (class source_lines_range): New class.
13597 (print_source_lines): New declaration.
13598
1055a3b4
PW
135992019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13600
13601 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13602
cfeadda5
TT
136032019-01-08 Tom Tromey <tom@tromey.com>
13604 Simon Marchi <simon.marchi@ericsson.com>
13605
13606 PR gdb/24060
13607 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13608 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13609 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13610 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13611 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13612 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13613
583068ca
AB
136142019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * source.c (select_source_symtab): Move header comment to
13617 declaration in source.h.
13618 (forget_cached_source_info_for_objfile): Likewise.
13619 (forget_cached_source_info): Likewise.
13620 (identify_source_line): Likewise.
13621 * source.h (identify_source_line): Move declaration from symtab.h
13622 and add comment from source.c
13623 (print_source_lines): Likewise.
13624 (forget_cached_source_info_for_objfile): Likewise.
13625 (forget_cached_source_info): Likewise.
13626 (select_source_symtab): Likewise.
13627 (enum print_source_lines_flag): Move definition from symtab.h.
13628 * symtab.h (identify_source_line): Move declaration to source.h.
13629 (print_source_lines): Likewise.
13630 (forget_cached_source_info_for_objfile): Likewise.
13631 (forget_cached_source_info): Likewise.
13632 (select_source_symtab): Likewise.
13633 (enum print_source_lines_flag): Move definition to source.h.
13634 * tui/tui-hooks.c: Add 'source.h' include.
13635
ec98a4ad
AB
136362019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 * source.c (print_source_lines_base): Handle requests to print
13639 reverse line number sequences, and guard against empty lines
13640 string.
13641
62ea19c1
AB
136422019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13643
13644 * source.c (print_source_lines_base): Fix skip of '\r' if next
13645 character is '\n'.
13646
9d30e1fd
TT
136472019-01-06 Tom Tromey <tom@tromey.com>
13648
13649 * c-exp.y (struct c_parse_state) <macro_original_text,
13650 expansion_obstack>: New member.
13651 (macro_original_text, expansion_obstack): Remove globals.
13652 (scan_macro_expansion, scanning_macro_expansion)
13653 (finished_macro_expansion): Update.
13654 (scan_macro_cleanup): Remove.
13655 (yylex, c_parse): Update.
13656
c65bac38
TT
136572019-01-06 Tom Tromey <tom@tromey.com>
13658
13659 * c-exp.y (struct c_parse_state) <strings>: New member.
13660 (operator_stoken): Update.
13661
02e12e38
TT
136622019-01-06 Tom Tromey <tom@tromey.com>
13663
13664 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13665 (union type_stack_elt) <typelist_val>: Now a pointer to
13666 std::vector.
13667 (type_stack_cleanup): Don't declare.
13668 (push_typelist): Update.
13669 * parse.c (pop_typelist): Return a std::vector.
13670 (push_typelist): Take a std::vector.
13671 (follow_types): Update. Do not free args.
13672 (type_stack_cleanup): Remove.
13673 * c-exp.y (struct c_parse_state): New.
13674 (cpstate): New global.
13675 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13676 (nonempty_typelist): Update.
13677 (func_mod): Create a new vector.
13678 (c_parse): Create a c_parse_state.
13679 (check_parameter_typelist): Do not delete params.
13680 (function_method): Update. Do not delete type_list.
13681
f097f5ad
TT
136822019-01-06 Tom Tromey <tom@tromey.com>
13683
13684 PR gdb/28155:
13685 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13686 check_typedef.
13687 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13688 (print_return_value): Likewise.
13689
d2adf9f1
TT
136902019-01-05 Tom Tromey <tom@tromey.com>
13691
13692 * contrib/cleanup_check.py: Remove.
13693 * contrib/gcc-with-excheck: Remove.
13694 * contrib/exsummary.py: Remove.
13695 * contrib/excheck.py: Remove.
13696
2eab46b1
JB
136972019-01-05 Joel Brobecker <brobecker@adacore.com>
13698
13699 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13700 NULL. Initialize tpprev to NULL instead of assigning it
13701 to NULL on the next statement.
13702 * windows-nat.c (windows_delete_thread): Remove check for
13703 main_thread_id before printing thread exit notifications.
13704 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13705 Remove thread ID check against main_thread_id.
13706 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13707 windows_delete_thread.
13708 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13709
48c5e7e2
TT
137102019-01-04 Tom Tromey <tom@tromey.com>
13711
13712 * compile/compile.c (_initialize_compile): Use upper case for
13713 metasyntactic variables.
13714 * symmisc.c (_initialize_symmisc): Use upper case for
13715 metasyntactic variables.
13716 * psymtab.c (_initialize_psymtab): Use upper case for
13717 metasyntactic variables.
13718 * demangle.c (demangle_command): Use upper case for metasyntactic
13719 variables.
13720 (_initialize_demangler): Likewise.
13721 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13722 variables.
13723
986041cd
TT
137242019-01-03 Tom Tromey <tom@tromey.com>
13725
13726 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13727
7c711119
TT
137282019-01-03 Tom Tromey <tom@tromey.com>
13729
13730 * python/py-symtab.c (salpy_str): Update.
13731 (struct salpy_sal_object) <symtab>: Now a PyObject.
13732 (salpy_dealloc): Update.
13733 (del_objfile_sal): Use gdbpy_ref.
13734
1b20edf0
TT
137352019-01-03 Tom Tromey <tom@tromey.com>
13736
13737 * python/py-type.c (convert_field): Use new_reference. Return
13738 gdbpy_ref.
13739 (make_fielditem): Return gdbpy_ref.
13740 (typy_fields): Update.
13741 (typy_getitem): Update.
13742 (field_name): Return gdbpy_ref. Use new_reference.
13743 (typy_iterator_iternext): Update.
13744
ea41325b
TT
137452019-01-03 Tom Tromey <tom@tromey.com>
13746
13747 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13748
2a3c71d6
TT
137492019-01-03 Tom Tromey <tom@tromey.com>
13750
13751 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13752 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13753 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13754 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13755 (pspy_set_type_printers): Likewise.
13756 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13757 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13758 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13759 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13760 (objfpy_set_type_printers): Likewise.
13761
5c329e6a
TT
137622019-01-03 Tom Tromey <tom@tromey.com>
13763
13764 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13765 (gdbpy_print_stack): Use gdbpy_err_fetch.
13766 * python/python-internal.h (class gdbpy_err_fetch): New class.
13767 (class gdbpy_enter) <m_error_type, m_error_value,
13768 m_error_traceback>: Remove.
13769 <m_error>: New member.
13770 (gdbpy_exception_to_string): Don't declare.
13771 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13772 * python/py-value.c (convert_value_from_python): Use
13773 gdbpy_err_fetch.
13774 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13775 gdbpy_exception_to_string.
13776 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13777 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13778 gdbpy_err_fetch.
13779
169bb27b
AB
137802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13781
13782 * linux-nat.c (delete_lwp_cleanup): Delete.
13783 (struct lwp_deleter): New struct.
13784 (lwp_info_up): New typedef.
13785 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13786 lwp_info_up.
13787
a07c8880
AB
137882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13789
13790 * linux-fork.c (class scoped_switch_fork_info): New class.
13791 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13792
26089c49
AB
137932019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13794
13795 * valops.c (find_overload_match): Remove use of null_cleanup, and
13796 calls to do_cleanups.
13797
06d3e5b0
AB
137982019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13799
13800 * compile/compile-cplus-types.c
13801 (compile_cplus_instance::decl_name): Handle changes to
13802 cp_func_name.
13803 * cp-support.c (cp_func_name): Update header comment, update
13804 return type.
13805 * cp-support.h (cp_func_name): Update return type in declaration.
13806 * valops.c (find_overload_match): Move temp_func local to top
13807 level of function and change its type. Use temp_func to hold and
13808 delete temporary string obtained from cp_func_name.
13809
66644cd3
AB
138102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13811
13812 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13813 gdb::char_vector, remove cleanup, and update uses of `msg`.
13814
592d8c0a
JW
138152019-01-03 Jim Wilson <jimw@sifive.com>
13816
13817 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13818
c55d06ec
TT
138192019-01-02 Tom Tromey <tom@tromey.com>
13820
13821 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13822 (tdesc_parse_xml): Remove cleanups.
13823 * target-descriptions.h (make_cleanup_free_target_description):
13824 Don't declare.
13825 (target_desc_deleter): New struct.
13826 (target_desc_up): New typedef.
13827 * target-descriptions.c (target_desc_deleter::operator()): Rename
13828 from free_target_description.
13829 (make_cleanup_free_target_description): Remove.
13830
3a6ae42d
TT
138312019-01-02 Tom Tromey <tom@tromey.com>
13832
13833 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13834 constructor, destructor.
13835 (linespec_parser): Remove typedef.
13836 (~linespec_parser): Rename from linespec_parser_delete.
13837 (linespec_lex_to_end, linespec_complete_label)
13838 (linespec_complete): Update.
13839 (decode_line_full): Remove cleanups.
13840 (decode_line_1): Update.
13841
61fd3e73
TT
138422019-01-02 Tom Tromey <tom@tromey.com>
13843
13844 * python/python-internal.h (inferior_to_inferior_object): Change
13845 return type.
13846 * python/py-exitedevent.c (create_exited_event_object): Update.
13847 * python/py-inferior.c (inferior_to_inferior_object): Return
13848 gdbpy_ref.
13849 (python_new_inferior, python_inferior_deleted)
13850 (thread_to_thread_object, delete_thread_object)
13851 (build_inferior_list, gdbpy_selected_inferior): Update.
13852 * python/py-infthread.c (create_thread_object): Update. Also fail
13853 if inferior_to_inferior_object fails.
13854
d20172fc
SM
138552019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13856
13857 * inferior.h (class inferior) <displaced_step_state>: New field.
13858 * infrun.h (struct displaced_step_state): Move here from
13859 infrun.c. Initialize fields, add constructor.
13860 <inf>: Remove field.
13861 <reset>: New method.
13862 * infrun.c (struct displaced_step_inferior_state): Move to
13863 infrun.h.
13864 (displaced_step_inferior_states): Remove.
13865 (get_displaced_stepping_state): Adust.
13866 (displaced_step_in_progress_any_inferior): Adjust.
13867 (displaced_step_in_progress_thread): Adjust.
13868 (displaced_step_in_progress): Adjust.
13869 (add_displaced_stepping_state): Remove.
13870 (get_displaced_step_closure_by_addr): Adjust.
13871 (remove_displaced_stepping_state): Remove.
13872 (infrun_inferior_exit): Call displaced_step_state.reset.
13873 (use_displaced_stepping): Don't check for NULL.
13874 (displaced_step_prepare_throw): Call
13875 get_displaced_stepping_state.
13876 (displaced_step_fixup): Don't check for NULL.
13877 (prepare_for_detach): Don't check for NULL.
13878
e3319240
PW
138792019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13880
13881 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13882 in case of call that did not complete.
13883
5d36dfb9
AU
138842019-01-02 Andrey Utkin <autkin@undo.io>
13885
13886 * symfile.c (find_separate_debug_file): Fix search of debug files for
13887 remote debuggee.
13888
8833fbf0
TT
138892019-01-02 Tom Tromey <tom@tromey.com>
13890
13891 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13892 indentation.
13893 * python/py-frame.c (frapy_older): Remove cast.
13894 (frapy_newer): Likewise.
13895 * python/py-breakpoint.c (local_setattro): Remove cast.
13896 * python/py-arch.c (archpy_name): Remove local variable.
13897 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13898
4ada3dfd
JB
138992019-01-02 Joel Brobecker <brobecker@adacore.com>
13900
13901 * unittests/basic_string_view/element_access/char/empty.cc:
13902 Fix year range in copyright header.
13903
113b7b81
AB
139042019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13905
13906 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13907 Delete.
13908 <operator==>: Update with for removed field.
13909 <hash>: Likewise.
13910 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13911 <isa_features>: ...this.
13912 <abi_features>: New field.
13913 (riscv_isa_flen): Update comment.
13914 (riscv_abi_xlen): New declaration.
13915 (riscv_abi_flen): New declaration.
13916 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13917 isa_features.
13918 (riscv_abi_xlen): New function.
13919 (riscv_isa_flen): Update to get answer from isa_features.
13920 (riscv_abi_flen): New function.
13921 (riscv_has_fp_abi): Update to get answer from abi_features.
13922 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13923 xlen and flen.
13924 (riscv_call_info) <xlen, flen>: Update comment.
13925 (riscv_call_arg_struct): Remove invalid assertions
13926 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13927 is removed.
13928 (riscv_gdbarch_init): Gather isa features and abi features
13929 separately, ensure both match on the gdbarch when reusing an old
13930 gdbarch. Relax an error check to allow 32-bit abi float to run on
13931 a target with 64-bit float hardware.
13932
b18ca514
PW
139332019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13934
13935 * source.c (search_command_helper): Stop reverse search
13936 when line 1 has been searched.
13937
ec70d8db
PW
139382019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13939
13940 * record-full.c (record_full_base_target::close): Rewrite
13941 record_full_core_buf_list free logic.
13942
5b38f9c1
PW
139432019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13944
13945 * break-catch-syscall.c (print_one_catch_syscall): xfree
13946 the last text.
13947
66d91b39
JB
139482019-01-01 Joel Brobecker <brobecker@adacore.com>
13949
13950 * top.c (print_gdb_version): Update Copyright year in version
13951 message.
13952
42a4f53d
JB
139532019-01-01 Joel Brobecker <brobecker@adacore.com>
13954
13955 Update copyright year range in all GDB files.
13956
7e955d83 139572019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13958
5bbd631d 13959 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13960
5bbd631d 13961For older changes see ChangeLog-2018.
c906108c
SS
13962\f
13963Local Variables:
13964mode: change-log
13965left-margin: 8
13966fill-column: 74
13967version-control: never
57da7796 13968coding: utf-8
c906108c 13969End:
5bbd631d 13970
This page took 3.967015 seconds and 4 git commands to generate.