[gdb/testsuite] Fix local-static.exp with g++-4.8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
791b7405
AB
12019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * linespec.c (decode_digits_ordinary): Update comment.
4 * make-target-delegates: No longer need to handle VEC case.
5 * memrange.c (normalize_mem_ranges): Update comment.
6 * namespace.c (add_using_directive): Update comment.
7 * objc-lang.c (uniquify_strings): Update comment.
8 * ppc-linux-nat.c (struct thread_points): Update comment.
9 * probe.h (find_probes_in_objfile): Update comment.
10 * target.h (enum flash_preserve_mode): Update comment.
11 * varobj.c (varobj_restrict_range): Update comment.
12 * varobj.h (varobj_list_children): Update comment.
13
0dc32745
AB
142019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 * Makefile.in: Remove references to vec.h and vec.c.
17 * aarch64-tdep.c: No longer include vec.h.
18 * ada-lang.c: Likewise.
19 * ada-lang.h: Likewise.
20 * arm-tdep.c: Likewise.
21 * ax.h: Likewise.
22 * breakpoint.h: Likewise.
23 * charset.c: Likewise.
24 * cp-support.h: Likewise.
25 * dtrace-probe.c: Likewise.
26 * dwarf2read.c: Likewise.
27 * extension.h: Likewise.
28 * gdb_bfd.c: Likewise.
29 * gdbsupport/gdb_vecs.h: Likewise.
30 * gdbsupport/vec.c: Remove.
31 * gdbsupport/vec.h: Remove.
32 * gdbthread.h: Likewise.
33 * guile/scm-type.c: Likewise.
34 * inline-frame.c: Likewise.
35 * machoread.c: Likewise.
36 * memattr.c: Likewise.
37 * memrange.h: Likewise.
38 * namespace.h: Likewise.
39 * nat/linux-btrace.h: Likewise.
40 * osdata.c: Likewise.
41 * parser-defs.h: Likewise.
42 * progspace.h: Likewise.
43 * python/py-type.c: Likewise.
44 * record-btrace.c: Likewise.
45 * rust-exp.y: Likewise.
46 * solib-target.c: Likewise.
47 * stap-probe.c: Likewise.
48 * target-descriptions.c: Likewise.
49 * target-memory.c: Likewise.
50 * target.h: Likewise.
51 * varobj.c: Likewise.
52 * varobj.h: Likewise.
53 * xml-support.h: Likewise.
54
ae640021
AB
552019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
58 Update for new std::vector based implementation.
59 (process_psymtab_comp_unit_reader): Likewise.
60 (scan_partial_symbols): Likewise.
61 (recursively_compute_inclusions): Likewise.
62 (compute_compunit_symtab_includes): Likewise.
63 (process_imported_unit_die): Likewise.
64 (queue_and_load_dwo_tu): Likewise.
65 (follow_die_sig_1): Likewise.
66 * gdb/dwarf2read.h: Remove DEF_VEC_P.
67 (typedef dwarf2_per_cu_ptr): Remove.
68 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
69 function.
70 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
71 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
72 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
73 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
74 std::vector.
75
55dfc88f
TT
762019-10-15 Tom Tromey <tromey@adacore.com>
77
78 * windows-nat.c (windows_nat_target::resume): Use %x when logging
79 TID.
80
96b49c5e
TT
812019-10-15 Tom Tromey <tromey@adacore.com>
82
83 * windows-nat.c (windows_nat_target::fetch_registers)
84 (windows_nat_target::store_registers): Rename "pid" to "tid".
85
953cff56
TT
862019-10-15 Tom Tromey <tromey@adacore.com>
87
88 * gdbarch.h, gdbarch.c: Rebuild.
89 * gdbarch.sh (gcc_target_options): Change return type to
90 std::string.
91 * compile/compile.c (get_args): Update.
92 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
93 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
94 std::string.
95 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
96 std::string.
97 * arch-utils.c (default_gcc_target_options): Return std::string.
98 * arch-utils.h (default_gcc_target_options): Return std::string.
99 * s390-tdep.c (s390_gcc_target_options): Return std::string.
100
81e6b8eb
CB
1012019-10-15 Christian Biesinger <cbiesinger@google.com>
102
103 * breakpoint.c (breakpoint_chain): Make static.
104 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
105 of accessing breakpoint_chain.
106
95da600f
CB
1072019-10-15 Christian Biesinger <cbiesinger@google.com>
108
109 * breakpoint.c (iterate_over_breakpoints): Change function pointer
110 to a gdb::function_view and return value to bool.
111 * breakpoint.h (iterate_over_breakpoints): Likewise.
112 * dummy-frame.c (pop_dummy_frame_bpt): Update.
113 (pop_dummy_frame): Update.
114 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
115 (gdbscm_breakpoints): Update.
116 * python/py-breakpoint.c (build_bp_list): Update.
117 (gdbpy_breakpoints): Update.
118 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
119 Update.
120 (bpfinishpy_handle_stop): Update.
121 (bpfinishpy_handle_exit): Update.
122 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
123 (svr4_update_solib_event_breakpoints): Update.
124
ba18312d
AA
1252019-10-15 Andreas Arnez <arnez@linux.ibm.com>
126
127 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
128 when unwrapping single-field structs.
129
6acc1a0b
SM
1302019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * dwarf2read.c: Remove includes.
133
284782de
SM
1342019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * ui-out.c (ui_out::call_do_message): Silence
137 -Wformat-nonliteral warning.
138
073bbbb0
SM
1392019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * breakpoint.c: Remove some includes: continuations.h, skip.h,
142 mi/mi-main.h, readline/readline.h, readline/history.h. Add
143 include: readline/tilde.h.
144
7b9a15e1
CB
1452019-10-12 Christian Biesinger <cbiesinger@google.com>
146
147 * remote.c (remote_target::get_trace_status): Remove declaration of
148 trace_regblock_size.
149
cc8dee1f
CB
1502019-10-12 Christian Biesinger <cbiesinger@google.com>
151
152 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
153 (show_user): Remove declaration of cmdlist.
154 * cli/cli-cmds.h (max_user_call_depth): Declare.
155 * cli/cli-script.c (execute_user_command): Remove declaration
156 of max_user_call_depth.
157
a83d4ef6
JW
1582019-10-11 Jim Wilson <jimw@sifive.com>
159
5f93c5a6
JW
160 * gdbsupport/print-utils.h (pulongest): Fix comment.
161 (plongest): Likewise.
162 (phex): Add missing comment, mention leading zeros.
163 (phex_nz): Add mention of no leading zeros to comment.
164
a83d4ef6
JW
165 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
166 plongest instead of unsigned long long cast.
167
26344e0c
CB
1682019-10-10 Christian Biesinger <cbiesinger@google.com>
169
170 * main.c (captured_main_1): Include gdbtk.h and remove declarations
171 for external_editor_command and gdbtk_test.
172
c2c440a9
CB
1732019-10-10 Christian Biesinger <cbiesinger@google.com>
174
175 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
176 * varobj.c (varobjdebug): Move comment to...
177 * varobj.h (varobjdebug): ...here, and declare.
178
a31bff9d
TT
1792019-10-09 Tom Tromey <tom@tromey.com>
180
181 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
182 erase_data_content.
183
7523da63
TT
1842019-10-09 Tom Tromey <tom@tromey.com>
185
186 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
187 * tui/tui-stack.c (tui_locator_window::rerender): Update.
188 * tui/tui-command.c (tui_cmd_window::resize)
189 (tui_refresh_cmd_win): Update.
190 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
191 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
192 * tui/tui-data.c (~tui_gen_win_info): Remove.
193 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
194 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
195 (tui_redisplay_readline, tui_mld_flush)
196 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
197 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
198 (tui_data_window::erase_data_content)
199 (tui_data_item_window::rerender)
200 (tui_data_item_window::refresh_window): Update.
201 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
202 (box_win, tui_gen_win_info::make_window)
203 (tui_gen_win_info::make_visible): Update.
204 (tui_delete_win): Remove.
205 * tui/tui-winsource.c
206 (tui_source_window_base::do_erase_source_content): Update.
207 (tui_show_source_line, tui_source_window_base::update_tab_width)
208 (tui_source_window_base::update_exec_info): Update.
209 * tui/tui-data.h (struct curses_deleter): New.
210 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
211 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
212
a7798e7f
TT
2132019-10-09 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
216
5c45899e
TT
2172019-10-09 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
220 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
221
6d7fd9aa
TT
2222019-10-09 Tom Tromey <tom@tromey.com>
223
224 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
225 window height directly.
226 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
227 declare.
228 * tui/tui-layout.c (tui_default_win_height): Remove.
229 (tui_default_win_viewport_height): Remove.
230
d2dd1084
TT
2312019-10-09 Tom Tromey <tom@tromey.com>
232
233 * tui/tui.h: Remove comments.
234
cff32449
TV
2352019-10-09 Tom de Vries <tdevries@suse.de>
236
237 * python/lib/gdb/printer/bound_registers.py: Use
238 '^builtin_type_bound128' as regexp argument for
239 add_builtin_pretty_printer.
240
6a25e8a2
CB
2412019-10-09 Christian Biesinger <cbiesinger@google.com>
242
243 * guile/guile.c (guile_extension_script_ops): Remove forward
244 declaration and mark as static.
245 (guile_script_ops): Likewise.
246 (extension_language_guile): Move further down in the file so
247 it can reference the definitions for guile_{extension_,}script_ops.
248
6d9d6da4
AA
2492019-10-09 Andreas Arnez <arnez@linux.ibm.com>
250
251 * s390-tdep.c (390_process_record): Handle new arch13 instructions
252 except SORTL, DFLTCC, and KDSA.
253
3abea05d
TT
2542019-10-08 Tom Tromey <tromey@adacore.com>
255
256 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
257 (struct safe_symbol_file_add_args): Remove.
258
dde996e2
TT
2592019-10-08 Tom Tromey <tromey@adacore.com>
260
261 * windows-nat.c: Don't include buildsym-legacy.h.
262
cd6fdaa1
TT
2632019-10-08 Tom Tromey <tromey@adacore.com>
264
265 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
266
79bb1944
CB
2672019-10-08 Christian Biesinger <cbiesinger@google.com>
268
269 * gdbtypes.c (overload_debug): Move comment to header.
270 * gdbtypes.h (overload_debug): Declare.
271 * valops.c: Remove declaration of overload_debug, instead
272 include gdbtypes.h.
273
34916edc
CB
2742019-10-08 Christian Biesinger <cbiesinger@google.com>
275
276 * language.c (show_language_command): Pass lang_frame_mismatch_warn
277 through _().
278 (lang_frame_mismatch_warn): Make const, mark with N_(), and
279 move comment...
280 * language.h (lang_frame_mismatch_warn): ... here. Also add
281 declaration.
282 * top.c (lang_frame_mismatch_warn): Remove declaration.
283 (check_frame_language_change): Pass lang_frame_mismatch_warn
284 through _().
285
bad5c026
CB
2862019-10-07 Christian Biesinger <cbiesinger@google.com>
287
288 * c-lang.h (vtbl_ptr_name): Declare.
289 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
290 it from the header.
291 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
292
51f1fdc3
CB
2932019-10-07 Christian Biesinger <cbiesinger@google.com>
294
295 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
296 gdb_static_assert.
297
30d1f018
WP
2982019-10-07 Weimin Pan <weimin.pan@oracle.com>
299
606813d5
WP
300 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
301 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
302 * ctfread.c: New file.
303 * ctfread.h: New file.
304 * elfread.c: Include ctfread.h.
305 (struct elfinfo text_p): New member ctfsect.
306 (elf_locate_sections): Mark CTF section.
307 (elf_symfile_read): Call elfctf_build_psymtabs.
308 * Makefile.in (LIBCTF): Add.
309 (CLIBS): Use it.
310 (CDEPS): Likewise.
311 (DIST): Add ctfread.c.
606813d5
WP
312
3132019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * ctfread.c (struct nextfield): Renamed to ...
316 (struct ctf_nextfield): ... this.
317 (struct field_info): Renamed to ...
318 (strut ctf_field_info): ... this.
319 (attach_fields_to_type): Update for renamed structures.
320 (ctf_add_member_cb): Likewise.
321 (ctf_add_enum_member_cb): Likewise.
322 (process_struct_members): Likewise.
323 (process_enum_type): Likewise.
30d1f018 324
518fe38c
WP
3252019-10-07 Weimin Pan <weimin.pan@oracle.com>
326
327 * tracectf.h: Rename, was ctf.h.
328 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
329 * tracefile.c: Likewise.
330 * tracepoint.c: Remove unused include ctf.h.
331 * mi/mi-main.c: Likewise.
332 * Makefile.in Replace ctf.c with tracectf.c.
333
225f296a
JB
3342019-10-06 Joel Brobecker <brobecker@adacore.com>
335
336 * version.in: Change version number to "9.0.50.DATE-git".
337
77c2dba3
TT
3382019-10-03 Tom Tromey <tom@tromey.com>
339
340 PR rust/24976:
341 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
342
179aed7f
AB
3432019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
346 cp_search_name_hash.
347 * NEWS: Add entry about nested function support.
348
0a4b0913
AB
3492019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
350 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
353 for nested static variables when searchin VAR_DOMAIN.
354 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
355 global scope, update comment.
356 (add_partial_subprogram): Call add_partial_subprogram recursively
357 for nested subroutines when processinng Fortran.
358 (load_partial_dies): Process the child entities of a subprogram
359 when processing Fortran.
360 (partial_die_parent_scope): Handle building scope
361 for Fortran nested functions.
362 (process_die): Record that nested functions have a scope.
363 (new_symbol): Always record Fortran subprograms on the global
364 symbol list.
365 (determine_prefix): How to build the prefix for Fortran
366 subprograms.
367
d8c06f22
AB
3682019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
371 have just sent the thread a SIGSTOP and are waiting for it to
372 arrive.
373
a8b3b8e9
AB
3742019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * btrace.c (btrace_add_pc): Remove whitespace before the template
377 parameter in 'std::vector <...>'.
378 (parse_xml_btrace_block): Likewise.
379 (btrace_maint_decode_pt): Likewise.
380 (btrace_maint_update_packets): Likewise.
381 (btrace_maint_print_packets): Likewise.
382 * btrace.h (struct btrace_maint_info): Likewise.
383 * dwarf2read.c (struct type_unit_group): Likewise.
384 (build_type_psymtabs_reader): Likewise.
385 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
386 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
387 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
388
4d825eab
TV
3892019-10-03 Tom de Vries <tdevries@suse.de>
390
391 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
392 the first line of the help text for set/show style metadata.
393
80fd2826
TT
3942019-10-02 Tom Tromey <tromey@adacore.com>
395
396 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
397 * gdbsupport/common-inferior.c: New file.
398 * infcmd.c (startup_with_shell): Don't define.
399 * nat/fork-inferior.h (startup_with_shell): Don't declare.
400 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
401 * inferior.h (startup_with_shell): Don't declare.
402
70054538
CB
4032019-10-02 Christian Biesinger <cbiesinger@google.com>
404
405 * gdbsupport/gdb_assert.h: Include errors.h.
406 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
407
37f6a7f4
TT
4082019-10-02 Tom Tromey <tromey@adacore.com>
409
410 * NEWS: Add $_ada_exception entry.
411 * ada-lang.c (struct ada_catchpoint): Add constructor.
412 <m_kind>: New member.
413 (allocate_location_exception, re_set_exception): Remove
414 "ex" parameter.
415 (should_stop_exception): Compute $_ada_exception.
416 (check_status_exception, print_it_exception)
417 (print_one_exception, print_mention_exception): Remove
418 "ex" parameter.
419 (allocate_location_catch_exception, re_set_catch_exception)
420 (check_status_exception, print_it_catch_exception)
421 (print_one_catch_exception, print_mention_catch_exception)
422 (print_recreate_catch_exception)
423 (allocate_location_catch_exception_unhandled)
424 (re_set_catch_exception_unhandled)
425 (check_status_exception, print_it_catch_exception_unhandled)
426 (print_one_catch_exception_unhandled)
427 (print_mention_catch_exception_unhandled)
428 (print_recreate_catch_exception_unhandled)
429 (allocate_location_catch_assert, re_set_catch_assert)
430 (check_status_assert, print_it_catch_assert)
431 (print_one_catch_assert, print_mention_catch_assert)
432 (print_recreate_catch_assert)
433 (allocate_location_catch_handlers, re_set_catch_handlers)
434 (check_status_handlers, print_it_catch_handlers)
435 (print_one_catch_handlers, print_mention_catch_handlers)
436 (print_recreate_catch_handlers): Remove.
437 (create_ada_exception_catchpoint): Update.
438 (initialize_ada_catchpoint_ops): Update.
439
fccf9de1
TT
4402019-10-02 Tom Tromey <tromey@adacore.com>
441
442 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
443 (create_excep_cond_exprs): Simplify exception string computation.
444 (ada_exception_catchpoint_cond_string): Likewise.
445
4b610737
TT
4462019-10-02 Tom Tromey <tromey@adacore.com>
447
448 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
449 * ada-lang.c (lesseq_defined_than): Handle
450 LOC_STATIC.
451 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
452 parameter.
453 (dwarf2_has_info): Likewise.
454 (new_symbol): Set maybe_copied on symbol when
455 appropriate.
456 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
457 parameter.
458 <can_copy>: New member.
459 * elfread.c (record_minimal_symbol): Set maybe_copied
460 on symbol when appropriate.
461 (elf_symfile_read): Update call to dwarf2_has_info.
462 * minsyms.c (lookup_minimal_symbol_linkage): New
463 function.
464 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
465 * symtab.c (get_symbol_address, get_msymbol_address):
466 New functions.
467 * symtab.h (get_symbol_address, get_msymbol_address):
468 Declare.
469 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
470 maybe_copied.
471 (struct symbol, struct minimal_symbol) <maybe_copied>:
472 New member.
473
1dd58850
TT
4742019-10-02 Tom Tromey <tromey@adacore.com>
475
476 * source.c (struct current_source_location): New.
477 (current_source_key): New global.
478 (current_source_symtab, current_source_line)
479 (current_source_pspace): Remove.
480 (get_source_location): New function.
481 (get_current_source_symtab_and_line)
482 (set_default_source_symtab_and_line)
483 (set_current_source_symtab_and_line)
484 (clear_current_source_symtab_and_line, select_source_symtab)
485 (info_source_command, print_source_lines_base)
486 (info_line_command, search_command_helper, _initialize_source):
487 Update.
488
5c281dbb
TT
4892019-10-02 Tom Tromey <tromey@adacore.com>
490
491 * source.c (select_source_symtab): Don't call
492 decode_line_with_current_source.
493
d3d32391
AB
4942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
495
496 * symtab.c (lookup_global_symbol): Search global block.
497
38583298
TT
4982019-10-02 Tom Tromey <tromey@adacore.com>
499
500 * coffread.c (process_coff_symbol): Update.
501 * dwarf2read.c (var_decode_location, new_symbol): Update.
502 * mdebugread.c (parse_symbol): Update.
503 * objfiles.c (relocate_one_symbol): Update.
504 * stabsread.c (define_symbol, fix_common_block)
505 (scan_file_globals): Update.
506 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
507 (SET_SYMBOL_VALUE_ADDRESS): New macro.
508 * xcoffread.c (process_xcoff_symbol): Update.
509
9344c18f
AA
5102019-10-02 Andreas Arnez <arnez@linux.ibm.com>
511
512 * MAINTAINERS: Update my email address.
513
df07e2c7
AB
5142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
517 std::vector.
518 (build_type_psymtabs_reader): Update for std::vector.
519 (build_type_psymtab_dependencies): Likewise.
520 * dwarf2read.h: Remove use of DEF_VEC_P.
521 (typedef sig_type_ptr): Delete.
522
554ac434
AB
5232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * btrace.c (btrace_maint_clear): Update to handle change from VEC
526 to std::vector.
527 (btrace_maint_decode_pt): Likewise, and move allocation of the
528 vector outside of the loop.
529 (btrace_maint_update_packets): Update to handle change from VEC to
530 std::vector.
531 (btrace_maint_print_packets): Likewise.
532 (maint_info_btrace_cmd): Likewise.
533 * btrace.h: Remove use of DEF_VEC_O.
534 (typedef btrace_pt_packet_s): Delete.
535 (struct btrace_maint_info) <packets>: Change fromm VEC to
536 std::vector.
537 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
538
46f29a9a
AB
5392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
540
541 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
542 make accesses into the vector constant references.
543 (btrace_add_pc): Update for std::vector.
544 (btrace_stitch_bts): Likewise.
545 (parse_xml_btrace_block): Likewise.
546 (btrace_maint_update_packets): Likewise.
547 (btrace_maint_print_packets): Likewise.
548 (maint_info_btrace_cmd): Likewise.
549 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
550 std::vector.
551 (btrace_data::empty): Likewise.
552 (btrace_data_append): Likewise.
553 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
554 (typedef btrace_block_s): Delete.
555 (struct btrace_block): Add constructor.
556 (struct btrace_data_bts) <blocks>: Change to std::vector.
557 * nat/linux-btrace.c (perf_event_read_bts): Update for
558 std::vector.
559 (linux_read_bts): Likewise.
560
d770d56f
TT
5612019-10-01 Tom Tromey <tom@tromey.com>
562
563 * cli/cli-logging.c (show_logging_filename): Use styled_string.
564
9d636d67
TT
5652019-10-01 Tom Tromey <tom@tromey.com>
566
567 * stack.c (print_frame, info_frame_command_core): Use
568 styled_string.
569 * linux-thread-db.c (try_thread_db_load_1)
570 (try_thread_db_load_from_pdir_1): Use styled_string.
571 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
572 (auto_load_section_scripts, info_auto_load_local_gdbinit)
573 (maybe_print_unsupported_script_warning)
574 (maybe_print_script_not_found_warning): Use styled_string.
575 * ada-lang.c (user_select_syms): Use styled_string.
576
7f6aba03
TT
5772019-10-01 Tom Tromey <tom@tromey.com>
578
579 * p-lang.c (pascal_printstr): Use metadata style.
580 * value.c (show_convenience): Use metadata style.
581 * valprint.c (valprint_check_validity, val_print_optimized_out)
582 (val_print_not_saved, val_print_unavailable)
583 (val_print_invalid_address, generic_val_print, val_print)
584 (value_check_printable, val_print_array_elements): Use metadata
585 style.
586 * ui-out.h (class ui_out) <field_fmt>: New overload.
587 <do_field_fmt>: Add style parameter.
588 * ui-out.c (ui_out::field_fmt): New overload.
589 * typeprint.c (type_print_unknown_return_type)
590 (val_print_not_allocated, val_print_not_associated): Use metadata
591 style.
592 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
593 parameter.
594 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
595 * tracepoint.c (tvariables_info_1): Use metadata style.
596 * stack.c (print_frame_arg, print_frame_info, print_frame)
597 (info_frame_command_core): Use metadata style.
598 * skip.c (info_skip_command): Use metadata style.
599 * rust-lang.c (rust_print_enum): Use metadata style.
600 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
601 metadata style.
602 * python/py-framefilter.c (py_print_single_arg): Use metadata
603 style.
604 * printcmd.c (do_one_display, print_variable_and_value): Use
605 metadata style.
606 * p-valprint.c (pascal_val_print)
607 (pascal_object_print_value_fields): Use metadata style.
608 * p-typeprint.c (pascal_type_print_base): Use metadata style.
609 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
610 parameter.
611 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
612 * m2-valprint.c (m2_print_long_set): Use metadata style.
613 * m2-typeprint.c (m2_print_type): Use metadata style.
614 * infcmd.c (print_return_value_1): Use metadata style.
615 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
616 * f-valprint.c (info_common_command_for_block): Use metadata
617 style.
618 * f-typeprint.c (f_type_print_base): Use metadata style.
619 * expprint.c (print_subexp_standard): Use metadata style.
620 * cp-valprint.c (cp_print_value_fields): Use metadata style.
621 * cli/cli-style.h (class cli_style_option): Add constructor.
622 (metadata_style): Declare.
623 * cli/cli-style.c (metadata_style): New global.
624 (_initialize_cli_style): Register metadata style.
625 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
626 parameter.
627 * cli-out.c (cli_ui_out::do_field_fmt): Update.
628 * c-typeprint.c (c_type_print_base_struct_union)
629 (c_type_print_base_1): Use metadata style.
630 * breakpoint.c (watchpoint_value_print)
631 (print_one_breakpoint_location): Use metadata style.
632 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
633 style.
634 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
635 style.
636 * ada-valprint.c (val_print_packed_array_elements, printstr)
637 (print_field_values, ada_val_print_ref, ada_val_print): Use
638 metadata style.
639 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
640 style.
641 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
642 style.
643 * ada-lang.c (user_select_syms): Use metadata style.
644
14309bb6
TT
6452019-10-01 Tom Tromey <tom@tromey.com>
646
647 * cli/cli-cmds.c (pwd_command): Style output.
648
6a831f06
PA
6492019-10-01 Pedro Alves <palves@redhat.com>
650 Tom Tromey <tom@tromey.com>
651
652 * symtab.c (print_symbol_info): Use %ps.
653 (print_msymbol_info): Use %ps.
654 * symfile.c (symbol_file_add_with_addrs): Use %ps.
655 * printcmd.c (print_variable_and_value): Use %ps.
656 * macrocmd.c (show_pp_source_pos): Use %ps.
657 * infrun.c (print_exited_reason): Use ui_out::message.
658 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
659 (describe_other_breakpoints): Use ui_out::message and new
660 formats.
661 (say_where): Use new formats.
662 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
663 and new formats.
664
2a3c1174
PA
6652019-10-01 Pedro Alves <palves@redhat.com>
666 Tom Tromey <tom@tromey.com>
667
668 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
669 (test_gdb_formats): New function.
670 (run_tests): Call it.
671 (test_format_specifier): Update.
672 * utils.h (fputs_filtered): Update comment.
673 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
674 (fputs_styled_unfiltered): Declare.
675 * utils.c (fputs_styled_unfiltered): New function.
676 (vfprintf_maybe_filtered): Add gdbfmt parameter.
677 (vfprintf_filtered): Update.
678 (vfprintf_unfiltered, vprintf_filtered): Update.
679 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
680 * ui-out.h (enum ui_out_flag) <unfiltered_output,
681 disallow_ui_out_field>: New constants.
682 (enum class field_kind): New.
683 (struct base_field_s, struct signed_field_s): New.
684 (signed_field): New function.
685 (struct string_field_s): New.
686 (string_field): New function.
687 (struct styled_string_s): New.
688 (styled_string): New function.
689 (class ui_out) <message>: Add comment.
690 <vmessage, call_do_message>: New methods.
691 <do_message>: Add style parameter.
692 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
693 methods.
694 (ui_out::message): Rewrite.
695 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
696 parameter.
697 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
698 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
699 gdb_extensions parameter.
700 (class format_piece): Add parameter to constructor.
701 (n_int_args): New field.
702 * gdbsupport/format.c (format_pieces::format_pieces): Add
703 gdb_extensions parameter. Handle '*'.
704 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
705 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
706 vfprintf_styled_no_gdbfmt.
707 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
708 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
709 unfiltered output.
710 * ui-style.h (struct ui_file_style) <ptr>: New method.
711
0dfe5bfb
TT
7122019-10-01 Tom Tromey <tom@tromey.com>
713
714 * unittests/format_pieces-selftests.c: Update. Add final format.
715 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
716 empty literal pieces.
717
e43b10e1
TT
7182019-10-01 Tom Tromey <tom@tromey.com>
719
720 * ui-out.h (enum class ui_out_style_kind): Remove.
721 (class ui_out) <field_string, field_stsream, do_field_string>:
722 Change type of "style".
723 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
724 (ui_out::field_string): Update.
725 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
726 of "style".
727 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
728 * tracepoint.c (print_one_static_tracepoint_marker): Update.
729 * stack.c (print_frame_arg, print_frame_info, print_frame):
730 Update.
731 * source.c (print_source_lines_base): Update.
732 * solib.c (info_sharedlibrary_command): Update.
733 * skip.c (info_skip_command): Update.
734 * record-btrace.c (btrace_call_history_src_line)
735 (btrace_call_history): Update.
736 * python/py-framefilter.c (py_print_frame): Update.
737 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
738 "style".
739 * mi/mi-out.c (mi_ui_out::do_table_header)
740 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
741 (mi_ui_out::do_field_string): Update.
742 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
743 Update.
744 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
745 "style".
746 * cli-out.c (cli_ui_out::do_table_header)
747 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
748 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
749 (cli_ui_out::do_field_fmt): Update.
750 * breakpoint.c (print_breakpoint_location): Update.
751 (update_static_tracepoint): Update.
752
cd7c32c3
PW
7532019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
754
755 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
756 conversion of gdb_datadir.
757 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
758 remove not needed c_str ().
759
8fe0f950
AT
7602019-09-30 Ali Tamur <tamur@google.com>
761
762 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
763 (dwarf2_string_attr): Likewise.
764
5f48f8f3
AT
7652019-09-30 Ali Tamur <tamur@google.com>
766
767 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
768 (process_full_type_unit): Likewise.
769 (dump_die_shallow): Likewise.
770 (cu_debug_loc_section): Likewise.
771
6fb08628
CB
7722019-09-28 Christian Biesinger <cbiesinger@google.com>
773
774 * minsyms.c (compare_minimal_symbols): Rename to...
775 (minimal_symbol_is_less_than): ...this, and adjust to STL
776 conventions (return bool, take arguments as references)
777 (minimal_symbol_reader::install): Call std::sort instead
778 of qsort.
779
c7ee338a
CB
7802019-09-29 Christian Biesinger <cbiesinger@google.com>
781
782 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
783 hash and why.
784 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
785 msymbol_hash, msymbol_demangled_hash>: Improve comments.
786
703a86c2
SM
7872019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
790 * psympriv.h (add_psymbol_to_list): Move comment here and update
791 it.
792
0df0352a
TV
7932019-09-29 Tom de Vries <tdevries@suse.de>
794
795 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
796 Use $tmpdir/$(basename "$output_file").dwz instead of
797 "${output_file}.dwz".
798
ad75efa6
SM
7992019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
800
801 PR gdb/25045
802 * hppa-linux-nat.c: Include gdbarch.h.
803
ececd218
CB
8042019-09-26 Christian Biesinger <cbiesinger@google.com>
805
806 * blockframe.c (find_pc_partial_function): Change return type to bool.
807 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
808 * minsyms.c (in_gnu_ifunc_stub): Likewise.
809 (stub_gnu_ifunc_resolve_name): Likewise.
810 * symtab.c (compare_filenames_for_search): Likewise.
811 (compare_glob_filenames_for_search): Likewise.
812 (matching_obj_sections): Likewise.
813 (symbol_matches_domain): Likewise.
814 (find_line_symtab): Change out param EXACT_MATCH to bool *.
815 (find_line_pc): Change return type to bool.
816 (find_line_pc_range): Likewise.
817 (producer_is_realview): Likewise.
818 * symtab.h (symbol_matches_domain): Likewise.
819 (find_pc_partial_function): Likewise.
820 (find_pc_line_pc_range): Likewise.
821 (in_gnu_ifunc_stub): Likewise.
822 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
823 (find_line_pc): Likewise.
824 (find_line_pc_range): Likewise.
825 (matching_obj_sections): Likewise.
826 (find_line_symtab): Change out parameter to bool.
827 (producer_is_realview): Change return type to bool.
828 (compare_filenames_for_search): Likewise.
829 (compare_glob_filenames_for_search): Likewise.
830
27a900b8
TT
8312019-09-26 Tom Tromey <tom@tromey.com>
832
833 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
834 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
835 * gdb_usleep.h: Remove.
836 * gdb_usleep.c: Remove.
837 * utils.c: Don't include gdb_usleep.h.
838
5d63b30a
TT
8392019-09-26 Tom Tromey <tromey@adacore.com>
840
841 * python/py-type.c (type_to_type_object): Call check_typedef
842 for stub types.
843
12904d37
TT
8442019-09-26 Tom Tromey <tom@tromey.com>
845
846 * utils.h (initialize_utils): Don't declare.
847 * top.c (gdb_init): Don't call initialize_utils.
848 * utils.c (initialize_utils): Remove. Move contents...
849 (_initialize_utils): ... here.
850
858f25f0
TT
8512019-09-25 Tom Tromey <tom@tromey.com>
852
853 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
854 * utils.h (make_hex_string): Don't declare.
855 * utils.c (make_hex_string): Remove.
856
3d435220
TV
8572019-09-24 Tom de Vries <tdevries@suse.de>
858
859 PR gdb/23815
860 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
861 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
862
ddd44b70
DD
8632019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
864
865 * NEWS: Mention new simulator port for PRU.
866
f945dedf
CB
8672019-09-23 Christian Biesinger <cbiesinger@google.com>
868
869 * ada-exp.y (write_object_remaining): Update.
870 * ada-lang.c (ada_decode): Return a std::string instead of a char*
871 and eliminate the static buffer.
872 (ada_decode_symbol): Update.
873 (ada_la_decode): Update.
874 (ada_sniff_from_mangled_name): Update.
875 (is_valid_name_for_wild_match): Update.
876 (ada_lookup_name_info::matches): Update and simplify.
877 (name_matches_regex): Update.
878 (ada_add_global_exceptions): Update.
879 * ada-lang.h (ada_decode): Update signature.
880 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
881 * dwarf-index-write.c (debug_names::insert): Update.
882
7ab78ccb
SM
8832019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
886 formatting.
887
9252448b
SM
8882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
891 Change "nonzero" to "true" in documentation.
892
626ca2c0
CB
8932019-09-20 Christian Biesinger <cbiesinger@google.com>
894
895 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
896 (_initialize_darwin_solib): Don't set
897 darwin_so_ops.lookup_lib_global_symbol.
898 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
899 set_gdbarch_iterate_over_objfiles_in_search_order.
900 (elf_lookup_lib_symbol): Rename to...
901 (svr4_iterate_over_objfiles_in_search_order): this, and update
902 to iterate semantics.
903 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
904 * solib.c (solib_global_lookup): Remove.
905 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
906 (solib_global_lookup): Remove.
907 * symtab.c (lookup_global_or_static_symbol): Remove call to
908 solib_global_lookup.
909
5a3a0d63
JB
9102019-09-20 Joel Brobecker <brobecker@adacore.com>
911
912 * NEWS: Move entries about default MI version now being
913 version 3, and about the GDB/MI fix for multi-location
914 breakpoints to the "since GDB 8.3" section.
915
ffea1427
JB
9162019-09-20 Joel Brobecker <brobecker@adacore.com>
917
918 GDB 8.3.1 released.
919
abf516c6
UW
9202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
921
922 * NEWS: Mention that Cell/B.E. debugging support was removed.
923 * MAINTAINERS: Remove spu target.
924
925 * config/djgpp/fnchange.lst: Remove entries for removed files.
926
927 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
928 spu-multiarch.o, and spu-tdep.o.
929 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
930 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
931 spu-multiarch.c, and spu-tdep.c.
932 * spu-linux-nat.c: Remove file.
933 * spu-multiarch.c: Remove file.
934 * spu-tdep.c: Remove file.
935 * spu-tdep.h: Remove file.
936 * solib-spu.c: Remove file.
937 * solib-spu.h: Remove file.
938
939 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
940 * configure.nat (spu-linux): Remove.
941 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
942 solib-multiarch.o from gdb_target_obs.
943 (spu*-*-*): Remove.
944
945 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
946 feature flag.
947 (ppc_linux_no_features): Update.
948 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
949 Cell/B.E. support.
950 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
951 (tdesc_powerpc_cell64l): Likewise.
952 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
953 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
954 Cell/B.E. support.
955 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
956 Do not include "features/rs6000/powerpc-cell32l.c" or
957 "features/rs6000/powerpc-cell64l.c".
958 (ppc_linux_spu_section): Remove.
959 (ppc_linux_core_read_description): Remove Cell/B.E. support.
960 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
961 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
962 (ppc_linux_spe_context_lookup): Remove.
963 (ppc_linux_spe_context_inferior_created): Remove.
964 (ppc_linux_spe_context_solib_loaded): Remove.
965 (ppc_linux_spe_context_solib_unloaded): Remove.
966 (ppc_linux_spe_context): Remove.
967 (struct ppu2spu_cache): Remove.
968 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
969 (struct ppu2spu_data): Remove.
970 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
971 ppu2spu_unwind): Remove.
972 (ppc_linux_init_abi): Remove Cell/B.E. support.
973 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
974
975 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
976 (rs6000/powerpc-cell64l-expedite): Likewise
977 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
978 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
979 rs6000/powerpc-cell64l.xml.
980 * features/rs6000/powerpc-cell32l.xml: Remove.
981 * features/rs6000/powerpc-cell64l.xml: Likewise.
982 * features/rs6000/powerpc-cell32l.c: Remove generated file.
983 * features/rs6000/powerpc-cell64l.c: Likewise.
984 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
985 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
986 * regformats/reg-spu.dat: Remove.
987
988 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
989 * corelow.c (struct spuid_list): Remove.
990 (add_to_spuid_list): Remove.
991 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
992 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
993 (remote_protocol_features): Remove associated entries.
994 (_initialize_remote): No longer initialize them.
995 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
996 * linux-nat.c (SPUFS_MAGIC): Remove.
997 (linux_proc_xfer_spu): Remove.
998 (spu_enumerate_spu_ids): Remove.
999 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1000 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1001 (linux_make_corefile_notes): No longer call it.
1002
1003 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1004 (cooked_write_test): Likewise.
1005
78e8cb91
TT
10062019-09-20 Tom Tromey <tom@tromey.com>
1007
1008 * NEWS: Mention case-sensitivity of TUI commands.
1009 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1010 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1011 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1012
f074b67e
TT
10132019-09-20 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-source.c (tui_source_window::set_contents): Use
1016 make_unique_xstrdup.
1017 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1018 make_unique_xstrdup.
1019
63c4bf19
TT
10202019-09-20 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-data.c: Remove separator comments.
1023 * tui/tui-layout.c: Remove separator comments.
1024 * tui/tui-win.c: Remove separator comments.
1025 * tui/tui-wingeneral.c: Remove separator comments.
1026
43df9b2f
TT
10272019-09-20 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui.h (strcat_to_buf): Don't declare.
1030 * tui/tui.c (strcat_to_buf): Remove.
1031
7226433c
TT
10322019-09-20 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1035 from "fullname".
1036 * tui/tui-source.c (tui_source_window::set_contents)
1037 (tui_source_window::location_matches_p)
1038 (tui_source_window::maybe_update): Update.
1039
80df3337
TT
10402019-09-20 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1043 Update.
1044 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1045 prefix.
1046 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1047 (tui_data_window::line_from_reg_element_no)
1048 (tui_data_window::first_reg_element_no_inline)
1049 (tui_data_window::show_registers)
1050 (tui_data_window::show_register_group)
1051 (tui_data_window::display_registers_from)
1052 (tui_data_window::display_registers_from_line)
1053 (tui_data_window::first_data_item_displayed)
1054 (tui_data_window::delete_data_content_windows)
1055 (tui_data_window::erase_data_content)
1056 (tui_data_window::do_scroll_vertical)
1057 (tui_data_window::refresh_window)
1058 (tui_data_window::check_register_values): Update.
1059
9923f347
TT
10602019-09-20 Tom Tromey <tom@tromey.com>
1061
1062 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1063 (struct tui_locator_window) <full_name, proc_name>: Now
1064 std::string.
1065 * tui/tui-stack.c (tui_locator_window::make_status_line)
1066 (tui_locator_window::set_locator_fullname)
1067 (tui_locator_window::set_locator_info): Update.
1068 * tui/tui-source.c (tui_source_window::set_contents)
1069 (tui_source_window::showing_source_p): Update.
1070
b76251ab
TT
10712019-09-20 Tom Tromey <tom@tromey.com>
1072
1073 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1074 Don't call tui_locator_win_info_ptr.
1075
0891be08
TT
10762019-09-20 Tom Tromey <tom@tromey.com>
1077
1078 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1079
1b935acf
TT
10802019-09-20 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1083 height for locator.
1084 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1085 * tui/tui-layout.c (show_source_disasm_command, show_data)
1086 (show_source_or_disasm_and_command): Use 1 as height for locator.
1087
9abd8a65
TT
10882019-09-20 Tom Tromey <tom@tromey.com>
1089
1090 * tui/tui.c (tui_enable): Update.
1091 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1092 Update.
1093 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1094 Update.
1095 * tui/tui-data.c (win_resized): Now bool.
1096 (tui_win_resized): Return bool.
1097 (tui_set_win_resized_to): Accept a bool.
1098
b5457826
TT
10992019-09-20 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1102 Change type of "refresh_values_only".
1103 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1104 type of "refresh_values_only".
1105
6b915f7d
TT
11062019-09-20 Tom Tromey <tom@tromey.com>
1107
1108 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1109 std::string.
1110 (tui_disassemble): Add "pos" parameter.
1111 (tui_disasm_window::set_contents): Simplify.
1112
2ad52f6f
TT
11132019-09-20 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-winsource.h (struct tui_source_window_base)
1116 <show_source_content>: Now private.
1117 * tui/tui-winsource.c
1118 (tui_source_window_base::show_source_content): Don't handle empty
1119 content case.
1120
b3b1bde6
TT
11212019-09-20 Tom Tromey <tom@tromey.com>
1122
1123 * tui/tui-layout.c (show_source_disasm_command)
1124 (show_source_or_disasm_and_command): Don't call
1125 show_source_content.
1126
71a25ed2
TT
11272019-09-20 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1130 Declare.
1131 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1132 from tui_make_status_line.
1133 (tui_locator_window::rerender): Update.
1134
f8532154
TT
11352019-09-20 Tom Tromey <tom@tromey.com>
1136
1137 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1138 (tui_locator_window::rerender): Update.
1139
2d81b349
TT
11402019-09-20 Tom Tromey <tom@tromey.com>
1141
1142 * tui/tui-winsource.h (struct tui_source_window_base)
1143 <~tui_source_window_base>: Don't declare.
1144 <fullname>: Remove.
1145 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1146 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1147 member.
1148 * tui/tui-source.c (tui_source_window::set_contents): Update.
1149 (tui_source_window::location_matches_p)
1150 (tui_source_window::maybe_update): Update.
1151
f14bec58
TT
11522019-09-20 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-winsource.h (~tui_source_element): Remove.
1155 (tui_source_element): Update.
1156 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1157 * tui/tui-winsource.c (tui_show_source_line): Update.
1158 * tui/tui-source.c (tui_source_window::set_contents): Update.
1159 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1160
78d5933a
TT
11612019-09-20 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1164 declare.
1165 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1166 tui_clear_source_windows_detail.
1167 * tui/tui-winsource.h (struct tui_source_window_base)
1168 <clear_detail>: Don't declare.
1169 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1170 Remove.
1171 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1172
d4207696
TT
11732019-09-20 Tom Tromey <tromey@adacore.com>
1174
1175 PR ada/24919:
1176 * block.c (contained_in): Fix final return value.
1177
00f93c44
AM
11782019-09-20 Alan Modra <amodra@gmail.com>
1179
1180 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1181 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1182 (read_indirect_string_from_dwz): Use bfd accessor.
1183 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1184 * machoread.c (macho_symfile_read_all_oso): Likewise.
1185 * solib.c (solib_bfd_open): Likewise.
1186
e4153ae6
CB
11872019-09-19 Christian Biesinger <cbiesinger@google.com>
1188
1189 * eval.c: Move declaration of overload_resolution to...
1190 * value.h: ...here.
1191
c7ae7675
CB
11922019-09-19 Christian Biesinger <cbiesinger@google.com>
1193
1194 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1195 * arm-linux-tdep.c: Likewise.
1196 * arm-nbsd-nat.c: Likewise.
1197 * arm-tdep.h: Declare arm_apcs_32.
1198 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1199
e86f08d2
CB
12002019-09-19 Christian Biesinger <cbiesinger@google.com>
1201
1202 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1203 * dwarf2read.h: Declare dwarf_always_disassemble.
1204
f64e2f40
TV
12052019-09-19 Tom de Vries <tdevries@suse.de>
1206
1207 PR gdb/25009
1208 * source-cache.c (source_cache::ensure): Catch exception thrown during
1209 construction of the highlighter.
1210
fd361982
AM
12112019-09-18 Alan Modra <amodra@gmail.com>
1212
1213 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1214 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1215 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1216 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1217 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1218 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1219 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1220 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1221 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1222 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1223 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1224 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1225 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1226 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1227 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1228 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1229 * mi/mi-interp.c: Update throughout for bfd section macro and
1230 function changes.
1231 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1232 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1233
11061048
TT
12342019-09-18 Tom Tromey <tom@tromey.com>
1235
1236 * NEWS: Add entry.
1237 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1238 call rl_initialize.
1239 (tui_enable): Do not call rl_initialize.
1240
7a27b85f
CG
12412019-09-18 Christian Groessler <chris@groessler.org>
1242
1243 * alpha-linux-nat.c: Include gdbarch.h.
1244
f64eea3a
SM
12452019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * ui-file.c: Include cli/cli-style.h.
1248 (term_cli_styling): Remove cli_styling declaration.
1249
e6f7f6d1
AM
12502019-09-18 Alan Modra <amodra@gmail.com>
1251
1252 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1253 to bfd_asymbol_section.
1254
1d38e9d1
AM
12552019-09-18 Alan Modra <amodra@gmail.com>
1256
1257 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1258 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1259 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1260
90d92a63
AM
12612019-09-18 Alan Modra <amodra@gmail.com>
1262
1263 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1264 * spu-linux-nat.c (spu_bfd_open): Likewise.
1265
a3d181d2
CB
12662019-09-18 Christian Biesinger <cbiesinger@google.com>
1267
1268 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1269 to bool to match definition in dwarf2read.c.
1270
491144b5
CB
12712019-09-17 Christian Biesinger <cbiesinger@google.com>
1272
1273 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1274 (print_signatures): Likewise.
1275 (trust_pad_over_xvs): Likewise.
1276 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1277 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1278 * arm-linux-nat.c (arm_apcs_32): Likewise.
1279 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1280 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1281 * arm-tdep.c (arm_debug): Likewise.
1282 (arm_apcs_32): Likewise.
1283 * auto-load.c (debug_auto_load): Likewise.
1284 (auto_load_gdb_scripts): Likewise.
1285 (global_auto_load): Likewise.
1286 (auto_load_local_gdbinit): Likewise.
1287 (auto_load_local_gdbinit_loaded): Likewise.
1288 * auto-load.h (global_auto_load): Likewise.
1289 (auto_load_local_gdbinit): Likewise.
1290 (auto_load_local_gdbinit_loaded): Likewise.
1291 * breakpoint.c (disconnected_dprintf): Likewise.
1292 (breakpoint_proceeded): Likewise.
1293 (automatic_hardware_breakpoints): Likewise.
1294 (always_inserted_mode): Likewise.
1295 (target_exact_watchpoints): Likewise.
1296 (_initialize_breakpoint): Update.
1297 * breakpoint.h (target_exact_watchpoints): Change to bool.
1298 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1299 * cli/cli-cmds.c (trace_commands): Likewise.
1300 * cli/cli-cmds.h (trace_commands): Likewise.
1301 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1302 to bool*.
1303 * cli/cli-logging.c (logging_overwrite): Change to bool.
1304 (logging_redirect): Likewise.
1305 (debug_redirect): Likewise.
1306 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1307 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1308 to bool.
1309 <boolean_option_def>: Update.
1310 (struct flag_option_def): Change default type of Context to bool
1311 from int.
1312 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1313 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1314 (get_setshow_command_value_string): Likewise.
1315 * cli/cli-style.c (cli_styling): Change to bool.
1316 (source_styling): Likewise.
1317 * cli/cli-style.h (source_styling): Likewise.
1318 (cli_styling): Likewise.
1319 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1320 to bool.
1321 * command.h (var_types): Update comment.
1322 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1323 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1324 bool.
1325 (debug_compile_cplus_scopes): Likewise.
1326 * compile/compile-internal.h (compile_debug): Likewise.
1327 * compile/compile.c (compile_debug): Likewise.
1328 (struct compile_options) <raw>: Likewise.
1329 * cp-support.c (catch_demangler_crashes): Likewise.
1330 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1331 (usr_cmd_cris_dwarf2_cfi): Likewise.
1332 * csky-tdep.c (csky_debug): Likewise.
1333 * darwin-nat.c (enable_mach_exceptions): Likewise.
1334 * dcache.c (dcache_enabled_p): Likewise.
1335 * defs.h (info_verbose): Likewise.
1336 * demangle.c (demangle): Likewise.
1337 (asm_demangle): Likewise.
1338 * dwarf-index-cache.c (debug_index_cache): Likewise.
1339 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1340 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1341 * dwarf2read.c (check_physname): Likewise.
1342 (use_deprecated_index_sections): Likewise.
1343 (dwarf_always_disassemble): Likewise.
1344 * eval.c (overload_resolution): Likewise.
1345 * event-top.c (set_editing_cmd_var): Likewise.
1346 (exec_done_display_p): Likewise.
1347 * event-top.h (set_editing_cmd_var): Likewise.
1348 (exec_done_display_p): Likewise.
1349 * exec.c (write_files): Likewise.
1350 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1351 (debug_fbsd_nat): Likewise.
1352 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1353 Likewise.
1354 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1355 <backtrace_past_entry> Likewise.
1356 * gdb-demangle.h (demangle): Likewise.
1357 (asm_demangle): Likewise.
1358 * gdb_bfd.c (bfd_sharing): Likewise.
1359 * gdbcore.h (write_files): Likewise.
1360 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1361 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1362 * gdbthread.h (print_thread_events): Likewise.
1363 * gdbtypes.c (opaque_type_resolution): Likewise.
1364 (strict_type_checking): Likewise.
1365 * gnu-nat.c (gnu_debug_flag): Likewise.
1366 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1367 * guile/scm-param.c (pascm_variable): Add boolval.
1368 (add_setshow_generic): Update.
1369 (pascm_param_value): Update.
1370 (pascm_set_param_value_x): Update.
1371 * hppa-tdep.c (hppa_debug): Change to bool..
1372 * infcall.c (may_call_functions_p): Likewise.
1373 (coerce_float_to_double_p): Likewise.
1374 (unwind_on_signal_p): Likewise.
1375 (unwind_on_terminating_exception_p): Likewise.
1376 * infcmd.c (startup_with_shell): Likewise.
1377 * inferior.c (print_inferior_events): Likewise.
1378 * inferior.h (startup_with_shell): Likewise.
1379 (print_inferior_events): Likewise.
1380 * infrun.c (step_stop_if_no_debug): Likewise.
1381 (detach_fork): Likewise.
1382 (debug_displaced): Likewise.
1383 (disable_randomization): Likewise.
1384 (non_stop): Likewise.
1385 (non_stop_1): Likewise.
1386 (observer_mode): Likewise.
1387 (observer_mode_1): Likewise.
1388 (set_observer_mode): Update.
1389 (sched_multi): Change to bool.
1390 * infrun.h (debug_displaced): Likewise.
1391 (sched_multi): Likewise.
1392 (step_stop_if_no_debug): Likewise.
1393 (non_stop): Likewise.
1394 (disable_randomization): Likewise.
1395 * linux-tdep.c (use_coredump_filter): Likewise.
1396 (dump_excluded_mappings): Likewise.
1397 * linux-thread-db.c (auto_load_thread_db): Likewise.
1398 (check_thread_db_on_load): Likewise.
1399 * main.c (captured_main_1): Update.
1400 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1401 xx2_opt, boolean_opt>: Change to bool.
1402 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1403 * maint.c (maintenance_profile_p): Likewise.
1404 (per_command_time): Likewise.
1405 (per_command_space): Likewise.
1406 (per_command_symtab): Likewise.
1407 * memattr.c (inaccessible_by_default): Likewise.
1408 * mi/mi-main.c (mi_async): Likewise.
1409 (mi_async_1): Likewise.
1410 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1411 * nat/fork-inferior.h (startup_with_shell): Likewise.
1412 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1413 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1414 * nios2-tdep.c (nios2_debug): Likewise.
1415 * or1k-tdep.c (or1k_debug): Likewise.
1416 * parse.c (parser_debug): Likewise.
1417 * parser-defs.h (parser_debug): Likewise.
1418 * printcmd.c (print_symbol_filename): Likewise.
1419 * proc-api.c (procfs_trace): Likewise.
1420 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1421 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1422 (set_parameter_value): Update.
1423 (add_setshow_generic): Update.
1424 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1425 to bool*.
1426 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1427 int*.
1428 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1429 * record-btrace.c (record_btrace_target::store_registers): Update.
1430 * record-full.c (record_full_memory_query): Change to bool.
1431 (record_full_stop_at_limit): Likewise.
1432 * record-full.h (record_full_memory_query): Likewise.
1433 * remote-notif.c (notif_debug): Likewise.
1434 * remote-notif.h (notif_debug): Likewise.
1435 * remote.c (use_range_stepping): Likewise.
1436 (interrupt_on_connect): Likewise.
1437 (remote_break): Likewise.
1438 * ser-tcp.c (tcp_auto_retry): Likewise.
1439 * ser-unix.c (serial_hwflow): Likewise.
1440 * skip.c (debug_skip): Likewise.
1441 * solib-aix.c (solib_aix_debug): Likewise.
1442 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1443 (spu_auto_flush_cache_p): Likewise.
1444 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1445 Likewise.
1446 (struct info_print_options) <quiet>: Likewise.
1447 * symfile-debug.c (debug_symfile): Likewise.
1448 * symfile.c (auto_solib_add): Likewise.
1449 (separate_debug_file_debug): Likewise.
1450 * symfile.h (auto_solib_add): Likewise.
1451 (separate_debug_file_debug): Likewise.
1452 * symtab.c (basenames_may_differ): Likewise.
1453 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1454 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1455 (struct info_types_options) <quiet>: Likewise.
1456 * symtab.h (demangle): Likewise.
1457 (basenames_may_differ): Likewise.
1458 * target-dcache.c (stack_cache_enabled_1): Likewise.
1459 (code_cache_enabled_1): Likewise.
1460 * target.c (trust_readonly): Likewise.
1461 (may_write_registers): Likewise.
1462 (may_write_memory): Likewise.
1463 (may_insert_breakpoints): Likewise.
1464 (may_insert_tracepoints): Likewise.
1465 (may_insert_fast_tracepoints): Likewise.
1466 (may_stop): Likewise.
1467 (auto_connect_native_target): Likewise.
1468 (target_stop_and_wait): Update.
1469 (target_async_permitted): Change to bool.
1470 (target_async_permitted_1): Likewise.
1471 (may_write_registers_1): Likewise.
1472 (may_write_memory_1): Likewise.
1473 (may_insert_breakpoints_1): Likewise.
1474 (may_insert_tracepoints_1): Likewise.
1475 (may_insert_fast_tracepoints_1): Likewise.
1476 (may_stop_1): Likewise.
1477 * target.h (target_async_permitted): Likewise.
1478 (may_write_registers): Likewise.
1479 (may_write_memory): Likewise.
1480 (may_insert_breakpoints): Likewise.
1481 (may_insert_tracepoints): Likewise.
1482 (may_insert_fast_tracepoints): Likewise.
1483 (may_stop): Likewise.
1484 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1485 (make_thread_apply_all_options_def_group): Change argument from int*
1486 to bool*.
1487 (thread_apply_all_command): Update.
1488 (print_thread_events): Change to bool.
1489 * top.c (confirm): Likewise.
1490 (command_editing_p): Likewise.
1491 (history_expansion_p): Likewise.
1492 (write_history_p): Likewise.
1493 (info_verbose): Likewise.
1494 * top.h (confirm): Likewise.
1495 (history_expansion_p): Likewise.
1496 * tracepoint.c (disconnected_tracing): Likewise.
1497 (circular_trace_buffer): Likewise.
1498 * typeprint.c (print_methods): Likewise.
1499 (print_typedefs): Likewise.
1500 * utils.c (debug_timestamp): Likewise.
1501 (sevenbit_strings): Likewise.
1502 (pagination_enabled): Likewise.
1503 * utils.h (sevenbit_strings): Likewise.
1504 (pagination_enabled): Likewise.
1505 * valops.c (overload_resolution): Likewise.
1506 * valprint.h (struct value_print_options) <prettyformat_arrays,
1507 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1508 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1509 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1510 Likewise.
1511 * windows-nat.c (new_console): Likewise.
1512 (cygwin_exceptions): Likewise.
1513 (new_group): Likewise.
1514 (debug_exec): Likewise.
1515 (debug_events): Likewise.
1516 (debug_memory): Likewise.
1517 (debug_exceptions): Likewise.
1518 (useshell): Likewise.
1519 * windows-tdep.c (maint_display_all_tib): Likewise.
1520 * xml-support.c (debug_xml): Likewise.
1521
f1b620e9
MG
15222019-09-17 Mike Gulick <mgulick@mathworks.com>
1523
1524 * source.c (prepare_path_for_appending): New function.
1525 (openp): Make use of new function.
1526 (find_and_open_source): Search for the compilation directory and
1527 source file as a relative path beneath the directory search path.
1528
67f3ed6a
AB
15292019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * source-cache.c (source_cache::get_line_charpos): Catch
1532 exceptions and return false, this matches the behaviour documented
1533 in the header file.
1534
74332189
JB
15352019-09-17 Joel Brobecker <brobecker@adacore.com>
1536
1537 * ada-tasks.c (info_task): Remove quoting of the task's name.
1538
f2f24aa9
CB
15392019-09-16 Christian Biesinger <cbiesinger@google.com>
1540
1541 * symfile.c (auto_solib_add): Replace comment with a reference
1542 to the header file.
1543
6a062a93
CB
15442019-09-14 Christian Biesinger <cbiesinger@google.com>
1545
1546 * NEWS: Mention that gdb can now be compiled with Python 3
1547 on Windows.
1548
ec6c8338
AB
15492019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * maint.c (maint_print_section_data::maint_print_section_data):
1552 Force use of 'float log10 (float)' by casting the argument to
1553 float.
1554
aa17805f
AB
15552019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * maint.c: Add 'cmath' include.
1558 (struct maint_print_section_data): New structure.
1559 (print_section_index): New function.
1560 (print_bfd_section_info): Add header comment, small whitespace
1561 cleanup, and update to call new print_section_index function.
1562 (print_objfile_section_info): Likewise.
1563 (maint_obj_section_from_bfd_section): New function.
1564 (print_bfd_section_info_maybe_relocated): New function.
1565 (maintenance_info_sections): Add header comment, always use
1566 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1567
3dd9bb46
AB
15682019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1571 inner scope, add check that the objfile has psymtabs before
1572 checking psymtabs_addrmap.
1573 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1574
4993045d
PW
15752019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1576
1577 * NEWS: Announce that Ada task names are now shown at more places,
1578 and between quotes (except in info task output).
1579 * gdb/ada-tasks.c (task_to_str): New function.
1580 (display_current_task_id): Call task_to_str.
1581 (task_command_1): Likewise.
1582 (print_ada_task_info): In non-mi mode, Properly align headers and data
1583 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1584
7a289707
RO
15852019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1586
1587 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1588 prstatus.pr_lwp.pr_info instead of making it up.
1589
f2aec7f6
CB
15902019-09-11 Christian Biesinger <cbiesinger@google.com>
1591
1592 * auto-load.c (auto_load_expand_dir_vars): Update.
1593 * defs.h (gdb_datadir): Change to std::string.
1594 (python_libdir): Likewise.
1595 (relocate_gdb_directory): Change return type to std::string.
1596 * guile/guile.c (gdbscm_data_directory): Update.
1597 (initialize_scheme_side): Update.
1598 * jit.c (jit_reader_dir): Change to std::string.
1599 (jit_reader_load_command): Update.
1600 * main.c (gdb_datadir): Change to std::string.
1601 (python_libdir): Likewise.
1602 (set_gdb_data_directory): Update.
1603 (relocate_path): Change to return std::string.
1604 (relocate_gdb_directory): Change to return std::string.
1605 (relocate_gdbinit_path_maybe_in_datadir): Update.
1606 (captured_main_1): Update.
1607 * python/python.c (do_start_initialization): Update.
1608 * top.c (show_gdb_datadir): Update.
1609 * xml-syscall.c (xml_init_syscalls_info): Update.
1610 (init_syscalls_info): Update.
1611
9224a013
CB
16122019-09-11 Christian Biesinger <cbiesinger@google.com>
1613
1614 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1615 out of get_init_files.
1616 (get_init_files): Update.
1617
f48cd836
CB
16182019-09-11 Christian Biesinger <cbiesinger@google.com>
1619
1620 * main.c (get_init_files): Change to use std::string.
1621 (captured_main_1): Update.
1622 (print_gdb_help): Update.
1623
9cab7ecd
AT
16242019-09-11 Ali Tamur <tamur@google.com>
1625
1626 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1627 implementation.
1628
67547d89
CB
16292019-09-11 Christian Biesinger <cbiesinger@google.com>
1630
1631 * dbxread.c (read_dbx_symtab): Update.
1632 * dwarf2read.c (load_partial_dies): Update.
1633 * mdebugread.c (parse_partial_symbols): Update.
1634 (handle_psymbol_enumerators): Update.
1635 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1636 * psymtab.c (add_psymbol_to_bcache): Likewise.
1637 (add_psymbol_to_list): Likewise.
1638 * symtab.c (symbol_set_names): Likewise.
1639 * symtab.h (symbol_set_names): Likewise.
1640 * xcoffread.c (scan_xcoff_symtab): Update.
1641
64b2d4a0
TT
16422019-09-11 Tom Tromey <tom@tromey.com>
1643
1644 * symfile-mem.c (symbol_file_add_from_memory): Use
1645 bfd_set_filename.
1646 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1647 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1648
3b00ef10
TT
16492019-09-10 Tom Tromey <tromey@adacore.com>
1650
1651 * dwarf-index-write.c (write_psymbols): Extend error message.
1652 (debug_names::insert): Add Ada code.
1653 (debug_names::write_psymbols): Remove Ada check.
1654 (debug_names) <m_string_obstack>: New member.
1655 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1656 (gdb_index_symbol_name_matcher::matches): Remove.
1657 (mapped_index_base::find_name_components_bounds): Add "lang"
1658 parameter.
1659 (mapped_index_base::build_name_components): Also split names
1660 according to Ada syntax.
1661 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1662 type of "match_callback".
1663 (check_match, check_find_bounds_finds)
1664 (dw2_expand_symtabs_matching): Update.
1665 (dw2_debug_names_iterator): Add new constructor.
1666 (dw2_debug_names_map_matching_symbols): New function.
1667 (dw2_debug_names_expand_symtabs_matching): Update.
1668 (dwarf2_debug_names_functions): Use
1669 dw2_debug_names_map_matching_symbols.
1670
aa391654
TT
16712019-09-10 Tom Tromey <tromey@adacore.com>
1672
1673 * dwarf2read.c (dw2_get_file_names_reader): Add the
1674 CU's file name to the results.
1675
b054970d
TT
16762019-09-10 Tom Tromey <tromey@adacore.com>
1677
1678 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1679 map_matching_symbols. Update.
1680 * dwarf2read.c (dw2_map_matching_symbols): Update.
1681 * psymtab.c (match_partial_symbol): Change type; update.
1682 (psym_map_matching_symbols): Likewise.
1683 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1684 type; update.
1685 * symfile.h (struct quick_symbol_functions)
1686 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1687 Remove "match".
1688
6a3dbf1b
TT
16892019-09-10 Tom Tromey <tromey@adacore.com>
1690
1691 * psymtab.c (map_block): Remove.
1692 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1693 * symtab.c (iterate_over_symbols_terminated): New function.
1694 * symtab.c (iterate_over_symbols_terminated): Declare.
1695
6969f124
TT
16962019-09-10 Tom Tromey <tromey@adacore.com>
1697
1698 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1699 * language.h (struct language_defn) <la_iterate_over_symbols>:
1700 Return bool.
1701 * symtab.c (iterate_over_symbols): Return bool.
1702 * symtab.h (iterate_over_symbols): Return bool.
1703
199b4314
TT
17042019-09-10 Tom Tromey <tromey@adacore.com>
1705
1706 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1707 (add_nonlocal_symbols): Update.
1708 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1709 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1710 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1711 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1712 Change type of "callback". Remove "data".
1713
a084a2a6
AT
1714
17152019-09-09 Ali Tamur <tamur@google.com>
1716
1717 * dwarf2read.c (comp_unit_head): Update comment.
1718 (dwarf2_dwo_name): New function declaration.
1719 (dwarf_unit_type_name): New function declaration.
1720 (read_comp_unit_head): Add support for new compilation units,
1721 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1722 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1723 (currently named as "signature") in their header. Also clarify error
1724 messages.
1725 (lookup_dwo_id): New function. Returns the dwo id of the given
1726 compile unit.
1727 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1728 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1729 functions.
1730 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1731 (dwarf2_dwo_name): Get the dwo name if present.
1732 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1733 purposes.
1734
25a2915e
TT
17352019-09-09 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1738
e4df0874
PW
17392019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1740
1741 * python/python.c (do_start_initialization): Make progname_copy static,
1742 to avoid a leak report.
1743
8634b462
TT
17442019-09-08 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1747
c7f839cb
SM
17482019-09-07 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1751 Change type to gdb::optional<block_enum>.
1752 (dw2_symtab_iter_init): Change block_index parameter type
1753 to gdb::optional<block_enum>.
1754 (dw2_lookup_symbol): Change block_index parameter
1755 type to block_enum.c
1756 (dw2_debug_names_lookup_symbol): Likewise.
1757 * psymtab.c (psym_lookup_symbol): Likewise.
1758 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1759 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1760 Likewise.
1761
ead0e69a
CB
17622019-09-06 Christian Biesinger <cbiesinger@google.com>
1763
1764 * defs.h (relocate_gdb_directory): Change int to bool in
1765 signature and rename flag to relocatable.
1766 * main.c (relocate_path): Likewise.
1767 (relocate_gdb_directory): Likewise.
1768
b16c44de
AM
17692019-09-06 Alan Modra <amodra@gmail.com>
1770
1771 * coffread.c (coff_symfile_read): Constify filename variable.
1772 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1773 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1774 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1775 * solib.c (reload_shared_libraries_1): Likewise.
1776 * symfile.c (reread_symbols): Likewise.
1777 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1778 * solib-darwin.c (darwin_bfd_open): Likewise.
1779 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1780
06ff036e
AB
17812019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1784 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1785
4e962e74
TT
17862019-09-03 Tom Tromey <tromey@adacore.com>
1787
1788 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1789 types.
1790 (has_negatives): Unbias a range type bound.
1791 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1792 * gdbtypes.c (operator==): Handle new field.
1793 (create_range_type): Add "bias" parameter.
1794 (create_static_range_type, resolve_dynamic_range): Update.
1795 * gdbtypes.h (struct range_bounds) <bias>: New member.
1796 (create_range_type): Add bias parameter.
1797 * printcmd.c (print_scalar_formatted): Unbias range types.
1798 * value.c (unpack_long): Unbias range types.
1799 (pack_long): Bias range types.
1800
d90b8f26
AH
18012019-09-02 Alan Hayward <alan.hayward@arm.com>
1802
1803 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1804 probe arguments.
1805
fe01123e
AH
18062019-09-02 Alan Hayward <alan.hayward@arm.com>
1807
1808 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1809 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1810 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1811 (compile_probe_arg): Likewise.
1812 * probe.h (get_argument_count): Likewise.
1813 * solib-svr4.c (solib_event_probe_action): Likewise.
1814 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1815
e661ef01
AH
18162019-09-02 Alan Hayward <alan.hayward@arm.com>
1817
1818 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1819 code to here...
1820 (svr4_create_solib_event_breakpoints): ...from here.
1821
47a536d9
SDJ
18222019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1823
1824 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1825 suffix from warning message.
1826
d6a00eba
TT
18272019-08-30 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-winsource.h (struct tui_source_window_base)
1830 <refresh_all>: Don't declare.
1831 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1832 Remove.
1833 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1834 tui_show_locator_content.
1835 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1836 declare.
1837 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1838 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1839 declare.
1840
55b2657b
TT
18412019-08-30 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1844
12a8555a
TT
18452019-08-30 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1848 Remove unnecessary forward declarations.
1849
900ac242
TT
18502019-08-30 Tom Tromey <tom@tromey.com>
1851
1852 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1853 rerender.
1854 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1855 tui_show_locator_content.
1856
99ab33fb
TT
18572019-08-30 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1860 (tui_locator_window::rerender): Rewrite using body of previous
1861 tui_show_locator_content.
1862
e594a5d1
TT
18632019-08-30 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1866 set_locator_fullname>: New methods.
1867 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1868 Rename from tui_set_locator_fullname.
1869 (tui_locator_window::set_locator_info): Rename from
1870 tui_set_locator_info. Return bool.
1871 (tui_update_locator_fullname, tui_show_frame_info): Update.
1872
715bb467
TT
18732019-08-30 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1876
772f3f03
TT
18772019-08-30 Tom Tromey <tom@tromey.com>
1878
1879 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1880 call touchwin.
1881
108e13ab
TT
18822019-08-30 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-wingeneral.c (box_win): Assume win_info and
1885 win_info->handle cannot be NULL.
1886
cdaa6eb4
TT
18872019-08-30 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1890 refresh_window>: Declare.
1891 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1892 resize.
1893 (tui_data_item_window::rerender): Rename from
1894 tui_display_register.
1895 (tui_data_item_window::refresh_window): New method.
1896 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1897 no-op.
1898
89df7f90
TT
18992019-08-30 Tom Tromey <tom@tromey.com>
1900
1901 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1902 regs_column_count, current_group>: Move later. Now private.
1903 <get_current_group>: New method.
1904 * tui/tui-regs.c (tui_reg_command): Update.
1905 * tui/tui-layout.c (tui_set_layout): Update.
1906
1bf2866a
TT
19072019-08-30 Tom Tromey <tom@tromey.com>
1908
1909 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1910 (tui_data_window::rerender): Don't call
1911 check_and_display_highlight_if_needed.
1912 (tui_data_window::refresh_all): Remove call to
1913 erase_data_content.
1914
0670413d
TT
19152019-08-30 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1918 (tui_data_window::display_registers_from)
1919 (tui_data_window::display_reg_element_at_line)
1920 (tui_data_window::display_registers_from_line): Remove checks of
1921 "empty".
1922
18bb55c7
TT
19232019-08-30 Tom Tromey <tom@tromey.com>
1924
1925 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1926 Don't declare.
1927 * tui/tui-regs.c (tui_data_window::show_registers): Call
1928 rerender.
1929 (tui_data_window::rerender): Rename from display_all_data.
1930 (tui_data_window::rerender): Remove old implementation.
1931
1f6d2f10
TT
19322019-08-30 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1935 text.
1936 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1937
16d01f9c
BW
19382019-08-29 Bernhard Wodok <barto@gmx.net>
1939 Sergio Durigan Junior <sergiodj@redhat.com>
1940
1941 PR win32/24284
1942 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1943
d8f27c60
AB
19442019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1947 when searching for types.
1948
1f20c35e
AB
19492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * f-lang.c (f_language_defn): Use f_print_typedef.
1952 * f-lang.h (f_print_typedef): Declare.
1953 * f-typeprint.c (f_print_typedef): Define.
1954
550105b7
CB
19552019-08-27 Christian Biesinger <cbiesinger@google.com>
1956
1957 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1958
4acfdd20
AB
19592019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * cli/cli-utils.c (info_print_options_defs): Delete.
1962 (make_info_print_options_def_group): Delete.
1963 (extract_info_print_options): Delete.
1964 (info_print_command_completer): Delete.
1965 (info_print_args_help): Add extra parameter, and optionally
1966 include text about -n flag.
1967 * cli/cli-utils.h (struct info_print_options): Delete.
1968 (extract_info_print_options): Delete declaration.
1969 (info_print_command_completer): Delete declaration.
1970 (info_print_args_help): Add extra parameter, extend header
1971 comment.
1972 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1973 search_symbols.
1974 * stack.c (struct info_print_options): New type.
1975 (info_print_options_defs): New file scoped variable.
1976 (make_info_print_options_def_group): New static function.
1977 (info_print_command_completer): New static function.
1978 (info_locals_command): Update to use new local functions.
1979 (info_args_command): Likewise.
1980 (_initialize_stack): Add extra parameter to calls to
1981 info_print_args_help.
1982 * symtab.c (search_symbols): Add extra parameter, use this to
1983 possibly excluse non-debug symbols.
1984 (symtab_symbol_info): Add extra parameter, which is passed on to
1985 search_symbols.
1986 (struct info_print_options): New type.
1987 (info_print_options_defs): New file scoped variable.
1988 (make_info_print_options_def_group): New static function.
1989 (info_print_command_completer): New static function.
1990 (info_variables_command): Update to use local functions, and pass
1991 extra parameter through to symtab_symbol_info.
1992 (info_functions_command): Likewise.
1993 (info_types_command): Pass additional argument through to
1994 symtab_symbol_info.
1995 (rbreak_command): Pass extra argument to search_symbols.
1996 (_initialize_symtab): Add extra arguments for calls to
1997 info_print_args_help, and update help text for 'info variables',
1998 'whereis', and 'info functions' commands.
1999 * symtab.h (search_symbols): Add extra argument to declaration.
2000 * NEWS: Mention new flags.
2001
9aa55206
CB
20022019-08-26 Christian Biesinger <cbiesinger@google.com>
2003
2004 * symtab.c (lookup_static_symbol): Call the new function (and move
2005 it down to be next to lookup_global_symbol).
2006 (struct global_sym_lookup_data): Add block_enum member and rename to...
2007 (struct global_or_static_sym_lookup_data): ...this.
2008 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2009 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2010 (lookup_symbol_global_or_static_iterator_cb): ...this.
2011 (lookup_global_or_static_symbol): New function.
2012 (lookup_global_symbol): Call new function.
2013
5c31b358
TV
20142019-08-26 Tom de Vries <tdevries@suse.de>
2015
2016 PR c++/24852
2017 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2018 when pc_probe.prob == NULL.
2019
23c13d42
SM
20202019-08-25 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2023 variable symbol_linkage to symbol_linkage_.
2024
beadd3e8
SM
20252019-08-25 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2028 represent whether the symbol is static, dynamic, or we don't
2029 know.
2030
e3ec872f
YS
20312019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2032
2033 * gdb/rx-tdep.c (rx_register_names): New.
2034 (rx_register_name): Delete.
2035 (rx_psw_type): Delete.
2036 (rx_fpsw_type): Delete.
2037 (rx_register_type): Delete.
2038 (rx_gdbarch_init): Convert target-descriptions.
2039 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2040 * gdb/features/Makefile: Add rx.xml.
2041 * gdb/features/rx.xml: New.
2042 * gdb/features/rx.c: Generated.
2043 * gdb/NEWS: Mention target description support.
2044
d0509ba4
CB
20452019-08-22 Christian Biesinger <cbiesinger@google.com>
2046
2047 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2048 *slot_ptr.
2049
2d41fa11
SDJ
20502019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2051
2052 * configure.ac: Don't check for 'dlfcn.h' (moved to
2053 gdbsupport/common.m4).
2054 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2055 'gdbsupport/'.
2056 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2057 * compile/compile-c-support.c: Include
2058 'gdbsupport/gdb-dlfcn.h'.
2059 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2060 * gdb-dlfcn.c: Move to...
2061 * gdbsupport/gdb-dlfcn.c: ... here.
2062 * gdb-dlfcn.h: Move to...
2063 * gdbsupport/gdb-dlfcn.h: ... here.
2064
de8af808
SL
20652019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2066
2067 * nios2-tdep.c (struct reg_value): Improve comments. Make
2068 the offset field signed.
2069
27204489
CB
20702019-08-22 Christian Biesinger <cbiesinger@google.com>
2071
2072 * python/lib/gdb/__init__.py (_execute_file): New function.
2073 * python/python.c (python_run_simple_file): Call gdb._execute_file
2074 on Windows.
2075
43771869
AB
20762019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2079 all uses as this was never set to anything but a zero value.
2080
26c957f1
PA
20812019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2082
2083 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2084
c07aae6e
CB
20852019-08-21 Christian Biesinger <cbiesinger@google.com>
2086
2087 * tui/tui-data.h (tui_gen_win_info): Add an =default
2088 move constructor, required by some GCC versions.
2089
3960cb7a
JF
20902019-08-21 Jinke Fan <fanjinke51@yeah.net>
2091
2092 * go32-nat.c (go32_sysinfo): Add hygon_p.
2093
04c72a68
TT
20942019-08-20 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2097 line_from_reg_element_no, first_reg_element_no_inline,
2098 display_all_data, delete_data_content_windows,
2099 erase_data_content>: Now private.
2100
072272ce
TT
21012019-08-20 Tom Tromey <tom@tromey.com>
2102
2103 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2104 (tui_unhighlight_win, tui_highlight_win)
2105 (tui_win_info::make_window): Update.
2106 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2107
973961bd
TT
21082019-08-20 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2111 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2112 (MAX_PID_WIDTH): Move to tui-stack.c.
2113 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2114 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2115 (MAX_PID_WIDTH): Move from tui-data.h.
2116
ab0e1f1a
TT
21172019-08-20 Tom Tromey <tom@tromey.com>
2118
2119 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2120 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2121 (box_win): Update.
2122 (tui_gen_win_info::make_window): Rename from tui_make_window.
2123 (tui_win_info::make_window): New method.
2124 (tui_gen_win_info::make_visible): Update.
2125 * tui/tui-source.c (tui_source_window::set_contents): Update.
2126 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2127 (tui_data_window::display_registers_from): Update.
2128 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2129 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2130 Declare.
2131 <can_box>: Remove.
2132 <title>: Remove.
2133 (struct tui_win_info) <make_window>: Declare.
2134 <can_box>: Now virtual.
2135 <title>: New member.
2136 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2137 * tui/tui-command.c (tui_cmd_window::resize): Update.
2138
100c2bf3
TT
21392019-08-20 Tom Tromey <tom@tromey.com>
2140
2141 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2142 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2143 (tui_data_window::check_register_values): Update.
2144
fa4dc567
TT
21452019-08-20 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-regs.h (struct tui_data_window): Use
2148 DISABLE_COPY_AND_ASSIGN.
2149 <regs_content>: Change type, removing unique_ptr.
2150 <tui_data_window>: Add move constructor.
2151 * tui/tui-regs.c (tui_data_window::show_registers)
2152 (tui_data_window::show_register_group)
2153 (tui_data_window::display_registers_from)
2154 (tui_data_window::display_registers_from)
2155 (tui_data_window::first_data_item_displayed)
2156 (tui_data_window::delete_data_content_windows)
2157 (tui_data_window::rerender, tui_data_window::refresh_window)
2158 (tui_data_window::check_register_values): Update.
2159
ca02d7c8
TT
21602019-08-20 Tom Tromey <tom@tromey.com>
2161
2162 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2163 show_register_group>: Declare.
2164 (tui_show_register_group): Don't declare.
2165 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2166 tui_show_registers.
2167 (tui_data_window::show_register_group): Rename from
2168 tui_show_register_group.
2169 (tui_data_window::check_register_values, tui_reg_command):
2170 Update.
2171 * tui/tui-layout.c (tui_set_layout): Update.
2172
63356bfd
TT
21732019-08-20 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2176 Declare.
2177 (tui_check_register_values): Don't declare.
2178 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2179 from tui_check_register_values.
2180 * tui/tui-hooks.c (tui_register_changed): Update.
2181
42cc14a7
TT
21822019-08-20 Tom Tromey <tom@tromey.com>
2183
2184 * tui/tui-regs.c (tui_reg_layout): Move later.
2185 (tui_show_registers): Don't enable TUI mode or change layout.
2186
b9ad3686
TT
21872019-08-20 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-regs.h (struct tui_data_item_window)
2190 <~tui_data_item_window>: Remove.
2191 <content>: Now a unique_xmalloc_ptr.
2192 * tui/tui-regs.c (tui_register_format): Return a
2193 unique_xmalloc_ptr.
2194 (tui_get_register): Update.
2195 (~tui_data_item_window): Remove.
2196 (tui_data_window::display_registers_from, tui_display_register):
2197 Update.
2198 * tui/tui-io.h (tui_expand_tabs): Update.
2199 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2200 Remove "col" parameter.
2201
8e114aab
TT
22022019-08-20 Tom Tromey <tom@tromey.com>
2203
2204 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2205 field.
2206 * tui/tui-regs.c (~tui_data_item_window): Update.
2207
1a4f81dd
TT
22082019-08-20 Tom Tromey <tom@tromey.com>
2209
2210 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2211 earlier.
2212
0f8d8876
TT
22132019-08-20 Tom Tromey <tom@tromey.com>
2214
2215 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2216
605dc2c2
TT
22172019-08-20 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-source.h (struct tui_source_window): Update.
2220 * tui/tui-regs.c (tui_show_registers): Update.
2221 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2222 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2223 (NO_REGS_STRING): Remove defines.
2224
aedbe3bb
CM
22252019-08-20 Conrad Meyer <cem@FreeBSD.org>
2226
2227 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2228 unnecessary thread walk if remote doesn't support the packet.
2229
7ce8f214
TT
22302019-08-19 Tom Tromey <tromey@adacore.com>
2231
2232 * python/py-value.c (value_has_field): Fix indentation.
2233
f21c2bd7
TT
22342019-08-19 Tom Tromey <tromey@adacore.com>
2235
2236 * printcmd.c (do_one_display, info_display_command): Update.
2237 * block.h (contained_in): Return bool. Add allow_nested
2238 parameter.
2239 * block.c (contained_in): Return bool. Add allow_nested
2240 parameter.
2241
d806ea2d
TT
22422019-08-19 Tom Tromey <tom@tromey.com>
2243
2244 * configure: Rebuild.
2245 * configure.ac: Disallow the combination of -static-libstdc++ and
2246 source highlight.
2247 * source-cache.c (get_language_name): Handle rust.
2248 (source_cache::get_source_lines): Ignore highlighting exceptions.
2249
398fdd60
TT
22502019-08-16 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2253 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2254 (struct tui_source_window_base) <make_visible, refresh_window,
2255 resize>: Remove methods.
2256 <execution_info>: Remove field.
2257 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2258 (tui_show_source_line, tui_source_window_base)
2259 (~tui_source_window_base): Update.
2260 (tui_source_window_base::resize)
2261 (tui_source_window_base::make_visible)
2262 (tui_source_window_base::refresh_window): Remove.
2263 (tui_source_window_base::update_exec_info): Update.
2264 * tui/tui-source.c (tui_source_window::set_contents): Update.
2265 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2266
e699d331
TT
22672019-08-16 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2270 deprecated_query_hook.
2271
bb01dbfc
TT
22722019-08-16 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2275 (tui_update_source_windows_with_line): Update.
2276 * tui/tui-source.h (struct tui_source_window)
2277 <show_symtab_source>: Declare.
2278 (tui_show_symtab_source): Don't declare.
2279 * tui/tui-source.c (tui_show_symtab_source): Rename from
2280 tui_show_symtab_source.
2281
81c82c4b
TT
22822019-08-16 Tom Tromey <tom@tromey.com>
2283
2284 * tui/tui-winsource.h (struct tui_source_window_base)
2285 <set_contents>: Declare.
2286 * tui/tui-winsource.c
2287 (tui_source_window_base::update_source_window_as_is): Update.
2288 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2289 Declare.
2290 (tui_set_source_content): Don't declare.
2291 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2292 tui_set_source_content.
2293 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2294 Declare.
2295 (tui_set_disassem_content): Don't declare.
2296 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2297 tui_set_disassem_content.
2298
2ddaf614
TT
22992019-08-16 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-winsource.h (struct tui_source_window_base)
2302 <update_breakpoint_info>: Declare.
2303 (tui_update_breakpoint_info): Don't declare.
2304 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2305 (tui_update_all_breakpoint_info): Update.
2306 (tui_source_window_base::update_breakpoint_info): Rename from
2307 tui_update_breakpoint_info.
2308 (tui_source_window_base::update_exec_info): Update.
2309
017f9828
TT
23102019-08-16 Tom Tromey <tom@tromey.com>
2311
2312 * tui/tui-winsource.h (struct tui_source_window_base)
2313 <update_source_window>: Declare.
2314 (tui_update_source_window): Don't declare.
2315 * tui/tui-winsource.c
2316 (tui_source_window_base::update_source_window): Rename from
2317 tui_update_source_window.
2318 (tui_source_window_base::rerender): Update.
2319 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2320 * tui/tui-disasm.c (tui_show_disassem)
2321 (tui_show_disassem_and_update_source)
2322 (tui_disasm_window::maybe_update): Update.
2323
ed8358e9
TT
23242019-08-16 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui-winsource.h (struct tui_source_window_base)
2327 <update_source_window_as_is>: Declare.
2328 (tui_update_source_window_as_is): Don't declare.
2329 * tui/tui-winsource.c (tui_update_source_window): Update
2330 (tui_source_window_base::update_source_window_as_is): Rename from
2331 tui_update_source_window_as_is.
2332 (tui_source_window_base::refill): Update.
2333 * tui/tui-source.c (tui_show_symtab_source): Update.
2334 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2335 Update.
2336
20149b6b
TT
23372019-08-16 Tom Tromey <tom@tromey.com>
2338
2339 * tui/tui-winsource.h (tui_update_source_window)
2340 (tui_update_source_window_as_is): Remove "noerror" parameter.
2341 * tui/tui-winsource.c (tui_update_source_window)
2342 (tui_update_source_window_as_is): Remove "noerror" parameter.
2343 (tui_update_source_windows_with_addr)
2344 (tui_update_source_windows_with_line)
2345 (tui_source_window_base::rerender)
2346 (tui_source_window_base::refill): Update.
2347 * tui/tui-source.h (tui_set_source_content)
2348 (tui_show_symtab_source): Remove "noerror" parameter.
2349 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2350 parameter.
2351 (tui_show_symtab_source): Likewise.
2352 (tui_source_window::maybe_update): Update.
2353 * tui/tui-disasm.c (tui_show_disassem)
2354 (tui_show_disassem_and_update_source)
2355 (tui_disasm_window::do_scroll_vertical)
2356 (tui_disasm_window::maybe_update): Update.
2357
2d83e710
TT
23582019-08-16 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui.c (tui_is_window_visible): Update.
2361 * tui/tui-wingeneral.c (tui_make_window)
2362 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2363 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2364 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2365 (tui_set_win_height_command, parse_scrolling_args): Update.
2366 * tui/tui-source.c (tui_source_window::style_changed): Update.
2367 * tui/tui-regs.c (tui_show_registers)
2368 (tui_data_window::first_data_item_displayed)
2369 (tui_data_window::delete_data_content_windows)
2370 (tui_check_register_values, tui_reg_command): Update.
2371 * tui/tui-disasm.c (tui_show_disassem): Update.
2372 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2373 method.
2374 <is_visible>: Remove field.
2375 * tui/tui-data.c (tui_next_win, tui_prev_win)
2376 (tui_delete_invisible_windows): Update.
2377
d4ab829a
TT
23782019-08-16 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-winsource.h (struct tui_source_window_base)
2381 <m_has_locator>: Remove.
2382 * tui/tui-layout.c (show_source_disasm_command, show_data)
2383 (show_source_or_disasm_and_command): Update.
2384
aa7ca1bb
AH
23852019-08-16 Alan Hayward <alan.hayward@arm.com>
2386
2387 * NEWS (Other MI changes): New subsection.
2388 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2389 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2390 * arch-utils.c (default_get_pc_address_flags): New function.
2391 * arch-utils.h (default_get_pc_address_flags): New declaration.
2392 * gdbarch.sh: Add get_pc_address_flags.
2393 * gdbarch.c: Regenerate.
2394 * gdbarch.h: Likewise.
2395 * stack.c (print_pc): New function.
2396 (print_frame_info) (print_frame): Call print_pc.
2397
6eac171f
TV
23982019-08-16 Tom de Vries <tdevries@suse.de>
2399
2400 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2401 print_objfile_section_info.
2402
3df505f6
TT
24032019-08-15 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2406 calling update_cmdwin_start_line.
2407 * tui/tui-winsource.h (struct tui_source_window_base)
2408 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2409 <rerender>: Declare.
2410 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2411 Call rerender.
2412 (tui_source_window_base::set_new_height): Remove.
2413 (tui_source_window_base::rerender): Rename from
2414 do_make_visible_with_new_height.
2415 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2416 resize method.
2417 (tui_win_info::make_invisible_and_set_new_height)
2418 (tui_win_info::make_visible_with_new_height): Remove.
2419 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2420 Declare.
2421 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2422 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2423 do_make_visible_with_new_height>: Don't declare.
2424 <rerender>: Declare.
2425 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2426 set_new_height.
2427 (tui_data_window::do_make_visible_with_new_height): Remove.
2428 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2429 call tui_show_locator_content.
2430 (tui_gen_win_info::resize): Call rerender.
2431 (show_source_or_disasm_and_command): Don't call
2432 tui_show_locator_content.
2433 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2434 method.
2435 (struct tui_win_info) <rerender>: Declare.
2436 <set_new_height, make_invisible_and_set_new_height,
2437 make_visible_with_new_height>: Don't declare.
2438 * tui/tui-data.c (tui_win_list::rerender): New method.
2439 * tui/tui-command.h (struct tui_cmd_window)
2440 <do_make_visible_with_new_height>: Don't declare.
2441 * tui/tui-command.c
2442 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2443
272560b5
TT
24442019-08-15 Tom Tromey <tromey@adacore.com>
2445
2446 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2447 * ada-lang.c (ada_enum_name): Likewise.
2448
08235187
CB
24492019-08-15 Christian Biesinger <cbiesinger@google.com>
2450
2451 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2452 leading underscore.
2453 (GdbOutputErrorFile): Likewise.
2454 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2455 accordingly.
2456 (execute_unwinders): Rename to have a leading underscore.
2457 (auto_load_packages): Likewise.
2458 (global scope): Adjust call to auto_load_packages accordingly.
2459 (GdbSetPythonDirectory): Likewise.
2460 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2461 instead of execute_unwinders.
2462
db502012
TT
24632019-08-15 Tom Tromey <tom@tromey.com>
2464
2465 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2466 (show_data): Don't change window visibility.
2467 (tui_gen_win_info::resize): Remove special case for command
2468 window. Use wresize, when available.
2469 (show_source_or_disasm_and_command): Don't change window
2470 visibility.
2471 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2472 <make_visible>: New method.
2473 * tui/tui-command.c (tui_cmd_window::resize): New method.
2474
3891b65e
TT
24752019-08-15 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2478 (struct tui_source_windows): New.
2479 * tui/tui-winsource.c (tui_display_main): Update.
2480 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2481 (new_height_ok, parse_scrolling_args): Update.
2482 * tui/tui-layout.c (show_layout, show_data): Update.
2483 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2484 (tui_add_to_source_windows): Don't declare.
2485 * tui/tui-data.c (source_windows, tui_source_windows)
2486 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2487
ee556432
TT
24882019-08-15 Tom Tromey <tom@tromey.com>
2489
2490 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2491 Rename from reset.
2492 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2493 * tui/tui-layout.c (show_source_disasm_command, show_data):
2494 Update.
2495 (tui_gen_win_info::resize): Rename.
2496 (show_source_or_disasm_and_command): Update.
2497 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2498 reset.
2499
46f438e3
TT
25002019-08-15 Tom Tromey <tom@tromey.com>
2501
2502 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2503 * tui/tui-interp.c (tui_interp::init): Don't call
2504 tui_initialize_static_data.
2505 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2506
f4ce562c
TT
25072019-08-15 Tom Tromey <tom@tromey.com>
2508
2509 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2510 examine tui_win_list.
2511
c398c3d0
TT
25122019-08-15 Tom Tromey <tom@tromey.com>
2513
2514 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2515 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2516 tui_clear_source_content.
2517 (tui_clear_source_content): Remove.
2518 (tui_source_window_base::do_erase_source_content): Hoist call to
2519 content.clear().
2520 * tui/tui-stack.c (tui_show_frame_info): Don't call
2521 tui_clear_source_content.
2522
e25d2004
TT
25232019-08-15 Tom Tromey <tom@tromey.com>
2524
2525 * tui/tui-winsource.h (struct tui_source_window_base)
2526 <do_erase_source_content>: New method.
2527 <erase_source_content>: New method.
2528 (tui_erase_source_content): Don't declare.
2529 * tui/tui-winsource.c (tui_clear_source_content): Update.
2530 (tui_source_window_base::do_erase_source_content): Rename from
2531 tui_erase_source_content.
2532 (tui_source_window_base::show_source_content): Update.
2533 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2534 * tui/tui-source.h (struct tui_source_window)
2535 <erase_source_content>: New method.
2536 * tui/tui-disasm.h (struct tui_disasm_window)
2537 <erase_source_content>: New method.
2538
002f15c2
TT
25392019-08-15 Tom Tromey <tom@tromey.com>
2540
2541 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2542 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2543 constructor.
2544 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2545 * tui/tui-source.c (tui_set_source_content): Update.
2546 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2547
c9033fe8
TT
25482019-08-15 Tom Tromey <tom@tromey.com>
2549
2550 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2551 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2552 tui-source.c.
2553 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2554 Declare.
2555 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2556 method.
2557 (tui_source_window::maybe_update): Update.
2558
088f37dd
TT
25592019-08-15 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2562 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2563 tui-disasm.c.
2564 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2565 Declare.
2566 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2567 method.
2568 (tui_disasm_window::maybe_update): Update.
2569
a54700c6
TT
25702019-08-15 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-winsource.h (struct tui_source_window_base)
2573 <maybe_update>: Declare.
2574 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2575 method.
2576 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2577 Declare.
2578 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2579 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2580 Declare.
2581 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2582
e2a678a5
TT
25832019-08-15 Tom Tromey <tom@tromey.com>
2584
2585 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2586
f2dda477
TT
25872019-08-15 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui-wingeneral.c: Include tui-stack.h.
2590 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2591 (struct tui_locator_window): Move from tui-data.h.
2592 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2593 (tui_initialize_static_data): Move from tui-data.c.
2594 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2595 (struct tui_locator_window): Move to tui-stack.c.
2596 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2597 (tui_initialize_static_data): Move to tui-stack.c.
2598
ed4a1084
TT
25992019-08-15 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-layout.c (show_source_disasm_command)
2602 (show_source_or_disasm_and_command): Use make_visible method, not
2603 tui_make_window.
2604 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2605 Remove.
2606
65962b20
TT
26072019-08-15 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-wingeneral.h (tui_make_window): Update.
2610 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2611 parameter.
2612 (tui_gen_win_info::make_visible): Update.
2613 * tui/tui-regs.c (tui_data_window::display_registers_from):
2614 Update.
2615 * tui/tui-layout.c (show_source_disasm_command)
2616 (show_source_or_disasm_and_command): Update.
2617 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2618 (enum tui_box): Remove.
2619 (struct tui_win_info) <can_box>: New method.
2620 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2621 method.
2622
2208ee91
TV
26232019-08-15 Tom de Vries <tdevries@suse.de>
2624
2625 * linux-nat-trad.c: Include gdbarch.h.
2626
75faf5c4
AH
26272019-08-14 Alan Hayward <alan.hayward@arm.com>
2628
2629 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2630 register sizes.
2631
b1c896b3
TT
26322019-08-14 Tom Tromey <tromey@adacore.com>
2633
2634 * darwin-nat.c: Include gdbarch.h.
2635 * darwin-nat-info.c: Include gdbarch.h.
2636
6405cd73
TT
26372019-08-13 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2640 Remove.
2641 * tui/tui-data.c (tui_initialize_static_data): Update.
2642
5216580d
TT
26432019-08-13 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-winsource.h (struct tui_exec_info_window)
2646 <~tui_exec_info_window, maybe_allocate_content, get_content,
2647 m_content>: Remove.
2648 (struct tui_source_window_base) <set_exec_info_content,
2649 show_exec_info_content>: Don't declare.
2650 * tui/tui-winsource.c
2651 (tui_exec_info_window::maybe_allocate_content): Remove.
2652 (tui_source_window_base::update_exec_info): Rename from
2653 set_exec_info_content.
2654 (tui_source_window_base::show_exec_info_content)
2655 (tui_source_window_base::update_exec_info): Remove.
2656
93858ad3
TT
26572019-08-13 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2660 declare.
2661 * tui/tui-winsource.c (tui_update_source_window_as_is)
2662 (tui_update_source_windows_with_addr, tui_erase_source_content):
2663 Update.
2664 (tui_clear_exec_info_content): Remove.
2665
e321e7ce
TT
26662019-08-13 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2669 declare.
2670 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2671 call tui_erase_exec_info_content.
2672 (tui_clear_exec_info_content): Rename from
2673 tui_erase_exec_info_content.
2674 (tui_clear_exec_info_content): Delete.
2675
8270ac62
TT
26762019-08-13 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-winsource.h (struct tui_source_window_base)
2679 <show_exec_info_content>: Declare.
2680 (tui_show_exec_info_content): Don't declare.
2681 * tui/tui-winsource.c
2682 (tui_source_window_base::show_exec_info_content): Rename from
2683 tui_show_exec_info_content.
2684 (tui_source_window_base::update_exec_info): Update.
2685
7b56485d
TT
26862019-08-13 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2689 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2690 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2691 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2692 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2693 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2694 ... here.
2695
7ba913dc
TT
26962019-08-13 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-winsource.h (struct tui_source_window_base)
2699 <update_exec_info>: Declare.
2700 (tui_update_exec_info): Don't declare.
2701 * tui/tui-winsource.c (tui_update_source_window_as_is)
2702 (tui_source_window_base::refresh_all)
2703 (tui_update_all_breakpoint_info): Update.
2704 (tui_source_window_base::update_exec_info): Rename from
2705 tui_update_exec_info.
2706 * tui/tui-stack.c (tui_show_frame_info): Update.
2707
37a4a131
TT
27082019-08-13 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-winsource.h (struct tui_source_window_base)
2711 <set_exec_info_content>: Declare.
2712 (tui_set_exec_info_content): Don't declare.
2713 * tui/tui-winsource.c
2714 (tui_source_window_base::set_exec_info_content): Rename from
2715 tui_set_exec_info_content.
2716 (tui_update_exec_info): Update.
2717
0bd27e07
TT
27182019-08-13 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-winsource.h (struct tui_source_window_base)
2721 <show_source_content>: Declare.
2722 (tui_show_source_content): Don't declare.
2723 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2724 (tui_source_window_base::show_source_content): Rename from
2725 tui_show_source_content.
2726 (tui_source_window_base::refresh_all): Update.
2727 * tui/tui-layout.c (show_source_disasm_command)
2728 (show_source_or_disasm_and_command): Update.
2729
b4ef5aeb
TT
27302019-08-13 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-winsource.c (tui_erase_source_content)
2733 (tui_show_source_content, tui_source_window_base::refresh_all):
2734 Update.
2735 * tui/tui-wingeneral.h
2736 (tui_check_and_display_highlight_if_needed): Don't declare.
2737 * tui/tui-wingeneral.c
2738 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2739 check_and_display_highlight_if_needed.
2740 * tui/tui-win.c (tui_rehighlight_all)
2741 (tui_win_info::make_visible_with_new_height): Update.
2742 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2743 (tui_data_window::erase_data_content)
2744 (tui_data_window::display_all_data): Update.
2745 * tui/tui-data.h (struct tui_win_info)
2746 <check_and_display_highlight_if_needed>: Declare.
2747
fede5273
TT
27482019-08-13 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-win.c (tui_resize_all): Call
2751 tui_delete_invisible_windows.
2752 * tui/tui-layout.c (show_layout): Call
2753 tui_delete_invisible_windows.
2754 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2755 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2756
22c3f490
TT
27572019-08-13 Tom Tromey <tom@tromey.com>
2758
2759 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2760 tui_add_win_to_layout.
2761
16cb7910
TT
27622019-08-13 Tom Tromey <tom@tromey.com>
2763
2764 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2765 * tui/tui-layout.c (tui_default_win_height): Now static.
2766
cc0c3ffb
TT
27672019-08-13 Tom Tromey <tom@tromey.com>
2768
2769 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2770 single switch.
2771 (show_source_disasm_command, show_source_or_disasm_and_command):
2772 Don't check current layout.
2773
3f3ffe54
TT
27742019-08-13 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-wingeneral.c (make_all_visible): Remove.
2777 (tui_make_all_invisible): Simplify.
2778 * tui/tui-layout.c (tui_make_all_invisible): Move from
2779 tui-wingeneral.c; simplify.
2780 (show_layout): Hoist call to tui_make_all_invisible.
2781 (show_data): Don't call tui_make_all_invisible.
2782
69258091
TT
27832019-08-13 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2786 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2787
62cf57fe
TT
27882019-08-13 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2791 tui-data.c.
2792 (show_source_disasm_command, show_data)
2793 (show_source_or_disasm_and_command): Don't use
2794 tui_set_current_layout_to.
2795 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2796 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2797 tui-layout.c.
2798 (tui_set_current_layout_to): Remove.
2799
2afade5d
TT
28002019-08-13 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-layout.c (tui_set_layout): Update.
2803 * tui/tui-data.h (struct tui_layout_def): Remove.
2804 (tui_layout_def): Don't declare.
2805 * tui/tui-data.c (layout_def): Remove.
2806 (tui_layout_def): Remove.
2807
a3504e96
TT
28082019-08-13 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-winsource.h (struct tui_source_window_base)
2811 <clear_detail>: No longer "override".
2812 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2813 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2814 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2815 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2816 Remove.
2817 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2818
29c92911
TT
28192019-08-13 Tom Tromey <tromey@adacore.com>
2820
2821 * tracepoint.c: Don't include readline.h or history.h.
2822
86c6b807
TT
28232019-08-12 Tom Tromey <tom@tromey.com>
2824
2825 * configure: Rebuild.
2826 * configure.ac: Check for readline 7.
2827 * NEWS: Mention readline 7 requirement.
2828 * README: Update.
2829
5db2718c
TT
28302019-08-12 Tom Tromey <tom@tromey.com>
2831
2832 * mingw-hdep.c (gdb_select): Remove readline hack.
2833
dac36daf
PFC
28342019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2835
2836 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2837 when the function fails.
2838
1022c627
AA
28392019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2840
2841 * s390-tdep.c (s390_type_align): New function.
2842 (s390_gdbarch_init): Set it as type_align gdbarch method.
2843
eba4caf2
TV
28442019-08-09 Tom de Vries <tdevries@suse.de>
2845
2846 PR gdb/24591
2847 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2848 pc_low with relocation offset.
2849
123cd851
TT
28502019-08-07 Tom Tromey <tromey@adacore.com>
2851
2852 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2853 (print_frame_args): Update.
2854 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2855 Update.
2856 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2857 * frame.h (struct frame_arg): Add initializers.
2858 <error>: Now a unique_xmalloc_ptr.
2859
3d31bc39
AH
28602019-08-07 Alan Hayward <alan.hayward@arm.com>
2861
2862 * NEWS: Expand the Pointer Authentication entry.
2863 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2864 (aarch64_frame_unmask_lr): ... to this.
2865 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2866 Call aarch64_frame_unmask_lr.
2867 * frame.c (struct frame_info): Add "masked" variable.
2868 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2869 (fprint_frame): Check for masked pc.
2870 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2871 declarations.
2872 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2873 * stack.c (print_frame): Check for masked pc.
2874
0cf9feb9
TT
28752019-08-06 Tom Tromey <tom@tromey.com>
2876
2877 * stabsread.c (patch_block_stabs, read_one_struct_field)
2878 (read_enum_type): Use obstack_strndup.
2879 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2880 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2881 * dwarf2read.c (guess_full_die_structure_name)
2882 (anonymous_struct_prefix): Use obstack_strndup.
2883 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2884 * c-exp.y (yylex): Use obstack_strndup.
2885 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2886 (write_var_or_type): Use obstack_strndup.
2887
efba19b0
TT
28882019-08-06 Tom Tromey <tom@tromey.com>
2889
2890 * symfile.c (reread_symbols): Use obstack_strdup.
2891 * stabsread.c (read_type): Use obstack_strdup.
2892 * gdb_obstack.h (obstack_strdup): New overload.
2893 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2894 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2895 (dwarf2_canonicalize_name): Use obstack_strdup.
2896 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2897 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2898 Use obstack_strdup.
2899
f25102f7
TT
29002019-08-06 Tom Tromey <tom@tromey.com>
2901
2902 * gdb_obstack.h (obstack_strdup): Define.
2903 * gdb_obstack.c (obstack_strdup): Don't define.
2904
021887d8
TT
29052019-08-06 Tom Tromey <tom@tromey.com>
2906
2907 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2908 obstack_strdup.
2909 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2910 obstack_strdup.
2911 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2912 * stabsread.c (common_block_start): Use obstack_strdup.
2913 * objfiles.c (set_objfile_main_name, objfile): Use
2914 obstack_strdup.
2915 * namespace.c (add_using_directive): Use obstack_strdup.
2916 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2917 * jit.c (finalize_symtab): Use obstack_strdup.
2918 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2919 (guess_partial_die_structure_name, partial_die_info::fixup)
2920 (dwarf2_name): Use obstack_strdup.
2921 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2922 obstack_strdup.
2923 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2924 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2925 obstack_strdup.
2926 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2927
d2834edc
PW
29282019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2929
2930 * unittests/help-doc-selftests.c: New file.
2931 * Makefile.in: Add the new file.
2932
590042fc
PW
29332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2934
2935 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2936 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2937 the full first line, except when FOR_VALUE_PREFIX. In this case,
2938 the trailing '.' is not output, and the first character is uppercased.
2939 (print_help_for_command): Update call to print_doc_line.
2940 (print_doc_of_command): Likewise.
2941 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2942 * cli/cli-option.c (append_indented_doc): Do not append newline.
2943 (build_help_option): Append newline after first appended_indented_doc
2944 only if a second call is done.
2945 (build_help): Append 2 new lines before each option, except the first
2946 one.
2947 * compile/compile.c (_initialize_compile): Add new lines after
2948 %OPTIONS%, when not at the end of the help.
2949 Change help doc or code
2950 producing the help doc to respect the invariants.
2951 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2952 Also removed the new line after 'Options:', as all other commands
2953 do not put an empty line between 'Options:' and the first option.
2954 * printcmd.c (_initialize_printcmd): Likewise.
2955 * stack.c (_initialize_stack): Likewise.
2956 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2957 incorrectly telling COMMAND is optional.
2958 * ada-lang.c (_initialize_ada_language): Change help doc or code
2959 producing the help doc to respect the invariants.
2960 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2961 * breakpoint.c (_initialize_breakpoint): Likewise.
2962 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2963 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2964 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2965 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2966 _initialize_cli_style): Likewise.
2967 * corelow.c (core_target_info): Likewise.
2968 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2969 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2970 * filesystem.c (_initialize_filesystem): Likewise.
2971 * frame.c (_initialize_frame): Likewise.
2972 * gnu-nat.c (add_task_commands): Likewise.
2973 * infcall.c (_initialize_infcall): Likewise.
2974 * infcmd.c (_initialize_infcmd): Likewise.
2975 * interps.c (_initialize_interpreter): Likewise.
2976 * language.c (_initialize_language): Likewise.
2977 * linux-fork.c (_initialize_linux_fork): Likewise.
2978 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2979 * maint.c (_initialize_maint_cmds): Likewise.
2980 * memattr.c (_initialize_mem): Likewise.
2981 * printcmd.c (_initialize_printcmd): Likewise.
2982 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2983 _RegEx): Likewise.
2984 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2985 * record-btrace.c (_initialize_record_btrace): Likewise.
2986 * record-full.c (_initialize_record_full): Likewise.
2987 * record.c (_initialize_record): Likewise.
2988 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2989 * regcache.c (_initialize_regcache): Likewise.
2990 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2991 _initialize_remote): Likewise.
2992 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2993 * serial.c (_initialize_serial): Likewise.
2994 * skip.c (_initialize_step_skip): Likewise.
2995 * source.c (_initialize_source): Likewise.
2996 * stack.c (_initialize_stack): Likewise.
2997 * symfile.c (_initialize_symfile): Likewise.
2998 * symtab.c (_initialize_symtab): Likewise.
2999 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3000 * top.c (init_main): Likewise.
3001 * tracefile-tfile.c (tfile_target_info): Likewise.
3002 * tracepoint.c (_initialize_tracepoint): Likewise.
3003 * tui/tui-win.c (_initialize_tui_win): Likewise.
3004 * utils.c (add_internal_problem_command): Likewise.
3005 * valprint.c (value_print_option_defs): Likewise.
3006
404f2902
FCE
30072019-08-06 Frank Ch. Eigler <fche@redhat.com>
3008
3009 PR build/24886
3010 * configure.ac: Drop enable-libmcheck support.
3011 * configure, config.in: Rebuild.
3012 * libmcheck.m4: Remove.
3013 * acinclude.m4: Don't include it.
3014 * Makefile.in: Don't distribute it.
3015 * top.c (print_gdb_configuration): Don't mention it.
3016
046bebe1
TT
30172019-08-06 Tom Tromey <tom@tromey.com>
3018
3019 * utils.c (set_output_style): Sometimes pass stream to
3020 emit_style_escape.
3021 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3022 * record-btrace.c (btrace_insn_history): Update.
3023 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3024 method.
3025 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3026 Update initializers.
3027 <m_uiout>: New field.
3028 <m_di>: Move lower.
3029 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3030 Remove "uiout" parameter.
3031 (dump_insns): Update.
3032 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3033 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3034
ddbcedf5
CB
30352019-08-06 Christian Biesinger <cbiesinger@google.com>
3036
3037 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3038 (error_in_psymtab_expansion): Likewise.
3039 (lookup_symbol_via_quick_fns): Likewise.
3040 (basic_lookup_transparent_type_quick): Likewise.
3041 (basic_lookup_transparent_type_1): Likewise.
3042
b08b16c8
TT
30432019-08-06 Tom Tromey <tromey@adacore.com>
3044
3045 * source.c (last_source_error): Now bool.
3046 (print_source_lines_base): Make "noprint" bool. Only open
3047 source file when last_source_visited changes.
3048
cb44333d
TT
30492019-08-06 Tom Tromey <tromey@adacore.com>
3050
3051 * annotate.c (annotate_source_line): Use g_source_cache.
3052 * source-cache.c (source_cache::get_plain_source_lines): Change
3053 parameters. Populate m_offset_cache.
3054 (source_cache::ensure): New method.
3055 (source_cache::get_line_charpos): New method.
3056 (extract_lines): Move lower. Change parameters.
3057 (source_cache::get_source_lines): Move lower.
3058 * source-cache.h (class source_cache): Update comment.
3059 <get_line_charpos>: New method.
3060 <get_source_lines>: Update comment.
3061 <clear>: Clear m_offset_cache.
3062 <get_plain_source_lines>: Change parameters.
3063 <ensure>: New method
3064 <m_offset_cache>: New member.
3065 * source.c (forget_cached_source_info_for_objfile): Update.
3066 (info_source_command): Use g_source_cache.
3067 (find_source_lines, open_source_file_with_line_charpos): Remove.
3068 (print_source_lines_base, search_command_helper): Use g_source_cache.
3069 * source.h (open_source_file_with_line_charpos): Don't declare.
3070 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3071 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3072 Use g_source_cache.
3073
872dceaa
TT
30742019-08-06 Tom Tromey <tromey@adacore.com>
3075
3076 * source-cache.c (source_cache::get_plain_source_lines):
3077 Remove "first_line" and "last_line" parameters.
3078 (source_cache::get_source_lines): Cache plain text.
3079 * source-cache.h (class source_cache)
3080 <get_plain_source_lines>: Update.
3081
269249d9
TT
30822019-08-06 Tom Tromey <tromey@adacore.com>
3083
3084 * source-cache.c (extract_lines): No longer a method.
3085 Changed type of parameter. Include final newline.
3086 (selftests::extract_lines_test): New function.
3087 (_initialize_source_cache): Likewise.
3088 * source-cache.h (class source_cache)
3089 <extract_lines>: Don't declare.
3090
c0e8dcd8
TT
30912019-08-06 Tom Tromey <tromey@adacore.com>
3092
3093 * breakpoint.c (init_breakpoint_sal): Update.
3094 (breakpoint): Update.
3095 * breakpoint.h (struct breakpoint) <filter>: Now a
3096 unique_xmalloc_ptr.
3097
0b27c27d
CB
30982019-08-05 Christian Biesinger <cbiesinger@google.com>
3099
3100 * NEWS: Mention dictionary access on blocks.
3101 * python/py-block.c (blpy_getitem): New function.
3102 (block_object_as_mapping): New struct.
3103 (block_object_type): Use new struct for tp_as_mapping field.
3104
4ee94178
CB
31052019-08-05 Christian Biesinger <cbiesinger@google.com>
3106
3107 * objfiles.h (objfile): Add a comment describing partial symbols.
3108
8abfcabc
TT
31092019-08-05 Tom Tromey <tromey@adacore.com>
3110
3111 * compile/compile.c (_initialize_compile): Use _(), not N_().
3112 * thread.c (_initialize_thread): Use _(), not N_().
3113 * stack.c (_initialize_stack): Use _(), not N_().
3114 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3115
2b79f376
SM
31162019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3117
3118 * dwarf2read.c (struct dw2_symtab_iterator):
3119 <want_specific_block>: Remove.
3120 <block_index>: Change type to gdb::optional.
3121 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3122 change type of BLOCK_INDEX parameter to gdb::optional.
3123 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3124 (dw2_lookup_symbol): Don't pass argument for
3125 WANT_SPECIFIC_BLOCK.
3126 (dw2_expand_symtabs_for_function): Don't pass argument for
3127 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3128 (class dw2_debug_names_iterator)
3129 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3130 parameter, change BLOCK_INDEX type to gdb::optional.
3131 <m_want_specific_block>: Remove.
3132 <m_block_index>: Change type to gdb::optional.
3133 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3134 gdb::optional. Re-write in function of gdb::optional.
3135 (dw2_debug_names_lookup_symbol): Don't pass argument for
3136 WANT_SPECIFIC_BLOCK.
3137 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3138 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3139 BLOCK_INDEX.
3140
ae60f04e
PW
31412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3142
3143 * NEWS: Mention changes to "info sources" command.
3144
28cd9371
PW
31452019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3146
3147 * symtab.c (filename_partial_match_opts): New struct type.
3148 (struct output_source_filename_data): New members
3149 regexp, c_regexp, partial_match.
3150 (output_source_filename): Use new members to decide to print file.
3151 (info_sources_option_defs): New variable.
3152 (make_info_sources_options_def_group, print_info_sources_header,
3153 info_sources_command_completer):
3154 New functions.
3155 (info_sources_command): Read new optional arguments.
3156 (_initialize_symtab): Update info sources help.
3157
ca683e3a
AO
31582019-08-02 Alexandre Oliva <oliva@adacore.com>
3159
3160 * ada-lang.c (exception_support_info_v0): Renamed from...
3161 (default_exception_support_info): ... this. Create new
3162 definition for v1.
3163 (ada_has_this_exception_support): Look up catch_handlers_sym.
3164 (ada_exception_support_info_sniffer): Try v0 after default.
3165
f1264162
TT
31662019-08-01 Tom Tromey <tromey@adacore.com>
3167
3168 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3169 gdbarch.h.
3170
0a7b2485
CB
31712019-08-01 Christian Biesinger <cbiesinger@google.com>
3172
3173 * s12z-tdep.c: Fix include path for s12z-opc.h.
3174
c6bdbeb7
AH
31752019-08-01 Alan Hayward <alan.hayward@arm.com>
3176
3177 * NEWS: Require GNU make 3.82.
3178
a2bd7b82
TT
31792019-07-16 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3182 declare.
3183
aa3b6533
TT
31842019-07-30 Tom Tromey <tromey@adacore.com>
3185
3186 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3187
a1530dc7
KB
31882019-07-30 Kevin Buettner <kevinb@redhat.com>
3189
3190 * printcmd.c (print_address_symbolic): Print negative offsets.
3191 (build_address_symbolic): Force signed arithmetic when computing
3192 offset.
3193
2906593f
CB
31942019-07-30 Christian Biesinger <cbiesinger@google.com>
3195
3196 PR/24474: Add a function to lookup static variables.
3197 * NEWS: Mention this new function.
3198 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3199 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3200 * python/python.c (python_GdbMethods): Add new function.
3201
c620ed88
CB
32022019-07-29 Christian Biesinger <cbiesinger@google.com>
3203
3204 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3205 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3206 (objfpy_lookup_static_symbol): New function.
3207 (objfile_object_methods): Add new functions.
3208
bc4268a5
PW
32092019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3210
3211 * NEWS: Mention 'set|show print frame-info'. Mention new
3212 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3213 backtrace argument. Mention that python frame filtering code
3214 is now consistent with what 'backtrace' command prints.
3215
4b5e8d19
PW
32162019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3217
3218 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3219 comments.
3220 (print_frame_info_auto, print_frame_info_source_line,
3221 print_frame_info_location, print_frame_info_source_and_location,
3222 print_frame_info_location_and_address, print_frame_info_short_location):
3223 New declarations.
3224 (struct frame_print_options): New member print_frame_info.
3225 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3226 * stack.h (get_user_print_what_frame_info): New declaration.
3227 (frame_show_address): New declaration.
3228 * stack.c (print_frame_arguments_choices): New value 'presence'.
3229 (print_frame_info_auto, print_frame_info_source_line,
3230 print_frame_info_location, print_frame_info_source_and_location,
3231 print_frame_info_location_and_address, print_frame_info_short_location,
3232 print_frame_info_choices, print_frame_info_print_what): New definitions.
3233 (print_frame_args): Only print dots for args if print frame-arguments
3234 is 'presence'.
3235 (frame_print_option_defs): New element for "frame-info".
3236 (get_user_print_what_frame_info): New function.
3237 (frame_show_address): Make non static. Move comment to stack.h.
3238 (print_frame_info_to_print_what): New function.
3239 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3240 to decide what to print.
3241 (backtrace_command_1): Handle the new print_frame_arguments_presence
3242 value.
3243 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3244 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3245 (py_print_frame): In non-mi mode, use LOCATION as default for
3246 print_what, similarly to frame information printed directly by
3247 backtrace command. Handle frame-info user option in non MI mode.
3248
6bdfee81
KB
32492019-07-27 Kevin Buettner <kevinb@redhat.com>
3250
3251 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3252 Add case for debugging 32-bit target on 64-bit host. Revise
3253 comment.
3254
98a617f8
KB
32552019-07-27 Kevin Buettner <kevinb@redhat.com>
3256
3257 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3258 instead of find_function_entry_range_from_pc.
3259
567238c9
KB
32602019-07-27 Kevin Buettner <kevinb@redhat.com>
3261
3262 * stack.c (find_frame_funname): Remove code which preferred
3263 minsym over symtab sym in "certain pathological cases".
3264
2dc80cf8
KB
3265 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3266 parameter. Change type of "do_demangle" to bool.
3267 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3268 Pass suitable "prefer_sym_over_minsym" flag to
3269 build_address_symbolic(). Don't output "+" for negative offsets.
3270 * printcmd.c (print_address_symbolic): Update invocation of
3271 build_address_symbolic to include a "prefer_sym_over_minsym"
3272 flag.
3273 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3274 Restrict cases in which use of minimal symbol is preferred to that
3275 of a found symbol. Update comments.
3276
1aff7173
KB
3277 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3278 for entry pc when entry pc is out of range for that FDE.
3279
89b085ac
BC
32802019-07-26 Brian Callahan <bcallah@openbsd.org>
3281
3282 PR gdb/24839:
3283 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3284 type.
3285
f32feb4a
CB
32862019-07-25 Christian Biesinger <cbiesinger@google.com>
3287
3288 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3289 this function's Python signature.
3290
3291
32922019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3293
3294 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3295 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3296 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3297 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3298 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3299
3300
c54e4253
YS
33012019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3302
3303 * h8300-tdep.c (h8300_register_name_common): New.
3304 h8300_register_name): Use h8300_register_name_common.
3305 (h8300s_register_name): Likewise.
3306 (h8300sx_register_name): Likewise.
3307 (h8300h_register_nam): New.
3308 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3309
3310
40eadf04
SP
33112019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3312
3313 * arm-tdep.c (arm_skip_cmse_entry): New function.
3314 (arm_is_sgstubs_section): New function.
3315 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3316
bfa2a36d
TT
33172019-07-22 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3320 Don't self-assign.
3321
a8e9d247
AB
33222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3325 type_print.
3326
eb86c5e2
AB
33272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3330 so that GDB doesn't match any msymbols when searching in the
3331 TYPES_DOMAIN.
3332 (print_symbol_info): Print using typedef_print or type_print based
3333 on the type of the symbol. Add updated FIXME comment moved from...
3334 (_initialize_symtab): ... move and update FIXME comment to above.
3335
a8eab7c6
AB
33362019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3337
3338 * NEWS: Mention adding -q option to "info types".
3339 * symtab.c (struct info_types_options): New struct.
3340 (info_types_options_defs): New variable.
3341 (make_info_types_options_def_group): New function.
3342 (info_types_command): Use gdb::option framework to parse options.
3343 (info_types_command_completer): New function.
3344 (_initialize_symtab): Extend the help text on "info types" and
3345 register command completer.
3346
b4603c34
CB
33472019-07-21 Christian Biesinger <cbiesinger@google.com>
3348
3349 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3350 (lookup_symbol_in_objfile): Change int to block_enum and add a
3351 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3352
c8cdc1e0
CB
33532019-07-20 Christian Biesinger <cbiesinger@google.com>
3354
3355 * MAINTAINERS (Write After Approval): Add self.
3356
01e175fe
AB
33572019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3360 instruction to the dummy code region.
3361
56f79b63
TT
33622019-07-19 Tom Tromey <tromey@adacore.com>
3363
3364 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3365 (ARGSUSED, PARAMS, __func__): Remove rules.
3366
4c5aa8e0
AH
33672019-07-19 Alan Hayward <alan.hayward@arm.com>
3368
3369 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3370 * features/arm/arm-with-iwmmxt.c: Remove.
3371 * features/arm/arm-with-iwmmxt.xml: Remove.
3372 * features/arm/arm-with-m-fpa-layout.c: Remove.
3373 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3374 * features/arm/arm-with-m-vfp-d16.c: Remove.
3375 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3376 * features/arm/arm-with-m.c: Remove.
3377 * features/arm/arm-with-m.xml: Remove.
3378 * features/arm/arm-with-neon.c: Remove.
3379 * features/arm/arm-with-neon.xml: Remove.
3380 * features/arm/arm-with-vfpv2.c: Remove.
3381 * features/arm/arm-with-vfpv2.xml: Remove.
3382 * features/arm/arm-with-vfpv3.c: Remove.
3383 * features/arm/arm-with-vfpv3.xml: Remove.
3384
f42b2617
AH
33852019-07-19 Alan Hayward <alan.hayward@arm.com>
3386
3387 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3388
f29ec966
AH
33892019-07-19 Alan Hayward <alan.hayward@arm.com>
3390
3391 * arch/aarch32.c (aarch32_create_target_description): Create
3392 target descriptions using features.
3393 * arch/arm.c (arm_create_target_description)
3394 (arm_create_mprofile_target_description): Likewise.
3395 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3396
d105cce5
AH
33972019-07-19 Alan Hayward <alan.hayward@arm.com>
3398
3399 * Makefile.in: Add new files.
3400 * aarch32-tdep.c: New file.
3401 * aarch32-tdep.h: New file.
3402 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3403 Call aarch32_read_description.
3404 * arch/aarch32.c: New file.
3405 * arch/aarch32.h: New file.
3406 * arch/arm.c (arm_create_target_description)
3407 (arm_create_mprofile_target_description): New function.
3408 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3409 (arm_create_target_description)
3410 (arm_create_mprofile_target_description): New declaration.
3411 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3412 read_description functions.
3413 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3414 Likewise.
3415 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3416 * arm-tdep.c (tdesc_arm_list): New variable.
3417 (arm_register_g_packet_guesses): Call create description functions.
3418 (arm_read_description) (arm_read_mprofile_description): New
3419 function.
3420 * arm-tdep.h (arm_read_description)
3421 (arm_read_mprofile_description): Add declaration.
3422 * configure.tgt: Add new files.
3423
afe09f0b
GL
34242019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3425
3426 * top.c (new_ui_command): Open specified terminal just once.
3427
cd215b2e
TT
34282019-07-18 Tom Tromey <tromey@adacore.com>
3429
3430 * symtab.c (main_name): Constify return type.
3431 * symfile.c (set_initial_language): Update.
3432 * symtab.h (main_name): Constify return type.
3433
d8f68fcb
TT
34342019-07-17 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-winsource.c (tui_update_source_window)
3437 (tui_update_source_window_as_is)
3438 (tui_update_source_windows_with_line): Remove return.
3439 * tui/tui-disasm.c (tui_show_disassem)
3440 (tui_show_disassem_and_update_source): Remove return.
3441 * tui/tui.c (tui_reset): Remove return.
3442 * tui/tui-wingeneral.c
3443 (tui_check_and_display_highlight_if_needed): Remove return.
3444
ca5af91e
TT
34452019-07-17 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3448
5104fe36
TT
34492019-07-17 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-winsource.h (struct tui_exec_info_window)
3452 (struct tui_source_window_base): Move from tui-data.h.
3453 * tui/tui-winsource.c: Move many method definitions from
3454 elsewhere. Remove "structuring" comments.
3455 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3456 (tui_source_window_base::refresh_window): Move to
3457 tui-winsource.c.
3458 * tui/tui-win.c (tui_source_window_base::refresh_all)
3459 (tui_source_window_base::update_tab_width)
3460 (tui_source_window_base::set_new_height)
3461 (tui_source_window_base::do_make_visible_with_new_height): Move to
3462 tui-winsource.c.
3463 * tui/tui-source.h: Update.
3464 * tui/tui-source.c (tui_source_window_base::reset): Move to
3465 tui-winsource.c.
3466 * tui/tui-disasm.h: Update.
3467 * tui/tui-data.h (struct tui_exec_info_window): Move to
3468 tui-winsource.h.
3469 (struct tui_source_window_base): Likewise.
3470 * tui/tui-data.c (tui_source_window_base::clear_detail)
3471 (tui_source_window_base, ~tui_source_window_base): Move to
3472 tui-winsource.c.
3473
daa15dde
TT
34742019-07-17 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-win.c (tui_resize_all)
3477 (tui_source_window_base::update_tab_width)
3478 (tui_adjust_win_heights): Update.
3479 (tui_win_info::make_invisible_and_set_new_height): Rename from
3480 make_invisible_and_set_new_height.
3481 * tui/tui-data.h (struct tui_win_info)
3482 <make_invisible_and_set_new_height>: New method.
3483
bfad4537
TT
34842019-07-17 Tom Tromey <tom@tromey.com>
3485
3486 * tui/tui.c: Update.
3487 * tui/tui-source.h (struct tui_source_window): Move from
3488 tui-data.h.
3489 * tui/tui-layout.c: Update.
3490 * tui/tui-disasm.c: Update.
3491 * tui/tui-data.h (struct tui_source_window): Move to
3492 tui-source.h.
3493
88f7e873
TT
34942019-07-17 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3497 tui-data.h.
3498 * tui/tui-data.h (struct tui_disasm_window): Move to
3499 tui-disasm.h.
3500
96bd6233
TT
35012019-07-17 Tom Tromey <tom@tromey.com>
3502
3503 * tui/tui-regs.h (struct tui_data_item_window): Move from
3504 tui-data.h.
3505 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3506 * tui/tui-data.h (struct tui_data_item_window): Move to
3507 tui-regs.h.
3508 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3509
ce38393b
TT
35102019-07-17 Tom Tromey <tom@tromey.com>
3511
3512 * tui/tui.c: Update.
3513 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3514 (tui_cmd_window::max_height): Move to tui-command.c.
3515 * tui/tui-layout.c: Update.
3516 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3517 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3518 tui-command.c.
3519 * tui/tui-command.h (struct tui_cmd_window): Move from
3520 tui-data.h.
3521 * tui/tui-command.c: Remove "structuring" comments.
3522 (tui_cmd_window::clear_detail)
3523 (tui_cmd_window::do_make_visible_with_new_height)
3524 (tui_cmd_window::max_height): Move from elsewhere.
3525
2d8b51cb
TT
35262019-07-17 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3529 Now static.
3530 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3531 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3532
18ab23af
TT
35332019-07-17 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui.c: Update.
3536 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3537 tui-regs.c.
3538 * tui/tui-windata.h: Remove file.
3539 * tui/tui-windata.c: Remove file.
3540 * tui/tui-win.c (tui_data_window::set_new_height)
3541 (tui_data_window::do_make_visible_with_new_height): Move to
3542 tui-regs.c.
3543 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3544 * tui/tui-regs.c: Remove "structuring" comments.
3545 (tui_data_window::first_data_item_displayed)
3546 (tui_data_window::delete_data_content_windows)
3547 (tui_data_window::erase_data_content)
3548 (tui_data_window::display_all_data)
3549 (tui_data_window::refresh_all)
3550 (tui_data_window::do_scroll_vertical)
3551 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3552 (tui_data_window::do_make_visible_with_new_height)
3553 (tui_data_window::refresh_window): Move from elsewhere.
3554 (_initialize_tui_regs): Move to end of file.
3555 * tui/tui-layout.c: Update.
3556 * tui/tui-hooks.c: Update.
3557 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3558 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3559 tui-regs.c.
3560 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3561
88b7e7cc
TT
35622019-07-17 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3565 seen.
3566
0fcd3711
TT
35672019-07-17 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-win.c (tui_source_window_base::set_new_height)
3570 (tui_source_window_base::do_make_visible_with_new_height): Use
3571 m_has_locator field directly.
3572 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3573 method.
3574 (struct tui_source_window_base) <has_locator>: Likewise.
3575
4a38112d
TT
35762019-07-17 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3579 Don't declare.
3580 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3581 Remove.
3582 * tui/tui-win.c (tui_source_window_base::set_new_height)
3583 (tui_source_window_base::set_new_height)
3584 (make_invisible_and_set_new_height)
3585 (tui_source_window_base::do_make_visible_with_new_height)
3586 (tui_source_window_base::do_make_visible_with_new_height):
3587 Update.
3588 * tui/tui-layout.c (show_source_disasm_command, show_data)
3589 (show_source_or_disasm_and_command): Update.
3590 * tui/tui-layout.c (show_layout): Update.
3591
09129226
TT
35922019-07-17 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-layout.c (make_data_window): Remove.
3595 (show_data): Unify creation and re-initialization cases.
3596
4a8a5e84
TT
35972019-07-17 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-layout.c (make_source_window, make_disasm_window):
3600 Remove.
3601 (show_data): Unify creation and re-initialization cases.
3602
76d2be8e
TT
36032019-07-17 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-layout.c (make_command_window): Remove.
3606 (show_source_disasm_command, show_source_or_disasm_and_command):
3607 Unify creation and re-initialization cases.
3608
890b8bde
TT
36092019-07-17 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3612 creation and re-initialization cases.
3613
2cdfa113
TT
36142019-07-17 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-regs.c (tui_get_register): Return void.
3617
8e3cfd09
TT
36182019-07-17 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3621 Simplify.
3622
f4e04977
TT
36232019-07-17 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3626 resetting.
3627
0379b883
TT
36282019-07-17 Tom Tromey <tom@tromey.com>
3629
3630 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3631 * tui/tui-regs.c (tui_reg_layout): New function.
3632 (tui_show_registers, tui_reg_command): Use it.
3633 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3634 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3635 parameters.
3636 (tui_layout_command): Remove.
3637
b7fbad91
TT
36382019-07-17 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-layout.h (tui/tui-layout): Return void.
3641 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3642
4e1e56b9
TT
36432019-07-17 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-layout.c (show_source_disasm_command, show_data):
3646 Update.
3647 (reset_locator): Remove.
3648 (show_source_or_disasm_and_command): Update.
3649
1e0c09ba
TT
36502019-07-17 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-source.c (tui_source_window_base::reset): Remove
3653 win_type parameter.
3654 * tui/tui-layout.c (make_command_window, make_source_window)
3655 (make_disasm_window, make_data_window)
3656 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3657 (reset_locator, show_source_or_disasm_and_command): Update.
3658 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3659 win_type parameter.
3660 (struct tui_source_window_base) <reset>: Likewise.
3661
1bf605de
TT
36622019-07-17 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-layout.c (show_source_disasm_command): Use
3665 reset_locator.
3666 (reset_locator): New function.
3667 (init_and_make_win): Remove.
3668 (show_source_or_disasm_and_command): Use reset_locator.
3669
098f9ed4
TT
36702019-07-17 Tom Tromey <tom@tromey.com>
3671
3672 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3673 condition.
3674 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3675 Remove condition.
3676 * tui/tui-source.c (tui_source_window_base::reset): New method.
3677 * tui/tui-layout.c (make_command_window): Don't call
3678 init_and_make_win.
3679 (make_source_window, make_disasm_window): Don't call
3680 make_source_or_disasm_window.
3681 (make_data_window): Don't call init_and_make_win. Change calling
3682 convention.
3683 (show_source_disasm_command, show_data): Simplify.
3684 (make_source_or_disasm_window): Remove.
3685 (show_source_or_disasm_and_command): Simplify.
3686 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3687 (struct tui_source_window_base) <reset>: Likewise.
3688 <execution_info>: Remove initializer.
3689 * tui/tui-data.c (tui_source_window_base): Initialize
3690 execution_info.
3691
80110957
TT
36922019-07-17 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3695 variable.
3696
cf82af05
TT
36972019-07-17 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui.c (tui_rl_other_window): Update.
3700 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3701 superclass method first. Always iterate over regs_content.
3702 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3703 method.
3704 * tui/tui-win.c (tui_set_focus_command): Update.
3705
01aeb396
TT
37062019-07-17 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-win.c (tui_set_focus_command): Rename from
3709 tui_set_focus. Call tui_enable.
3710 (tui_set_focus_command): Remove.
3711
fd6c75ee
TT
37122019-07-17 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3715 refresh_window.
3716 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3717 touchwin.
3718 (tui_data_window::refresh_window): Call refresh_window on data
3719 items. Always call superclass refresh_window.
3720 (tui_win_info::refresh): Remove.
3721 (tui_source_window_base::refresh_window): Update.
3722 (tui_refresh_all): Update.
3723 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3724 refresh_window.
3725 (show_source_or_disasm_and_command): Likewise.
3726 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3727 (struct tui_source_window_base) <refresh>: Likewise.
3728
f6cc34a9
TT
37292019-07-17 Tom Tromey <tom@tromey.com>
3730
3731 * tui/tui-winsource.c (tui_clear_source_content)
3732 (tui_show_source_content): Update.
3733 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3734 whether content is empty.
3735 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3736 Remove.
3737
f31ec9af
TT
37382019-07-17 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3741 window's contents.
3742 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3743 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3744
d1b6f1e5
TT
37452019-07-17 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3748 (struct tui_data_item_window): Update.
3749
d9743a13
TT
37502019-07-17 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3753 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3754 defines.
3755
caf0bc4e
TT
37562019-07-17 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui-winsource.h (tui_erase_source_content)
3759 (tui_clear_source_content): Remove "display_prompt" parameter.
3760 * tui/tui-winsource.c (tui_update_source_window_as_is)
3761 (tui_update_source_windows_with_addr): Update.
3762 (tui_clear_source_content): Remove "display_prompt" parameter.
3763 (tui_erase_source_content): Likewise. Simplify.
3764 (tui_show_source_content): Update.
3765 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3766 * tui/tui-stack.c (tui_show_frame_info): Update.
3767 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3768 Remove defines.
3769
9d391078
TT
37702019-07-17 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3773 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3774 parameter.
3775 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3776 parameter.
3777
a38da35d
TT
37782019-07-17 Tom Tromey <tom@tromey.com>
3779
3780 * tui/tui-winsource.c (tui_clear_source_content)
3781 (tui_show_source_content, tui_show_exec_info_content)
3782 (tui_clear_exec_info_content): Update.
3783 * tui/tui-stack.c (tui_show_locator_content): Update.
3784 (tui_show_frame_info): Update.
3785 * tui/tui-source.h (tui_source_window): Don't declare.
3786 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3787 from tui_source_is_displayed.
3788 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3789 Remove field.
3790 (struct tui_source_window_base) <content_in_use>: New field. Now
3791 bool.
3792 (struct tui_source_window) <showing_source_p>: New method.
3793 (TUI_SRC_WIN): Change cast.
3794 * tui/tui-data.c (tui_initialize_static_data): Update.
3795
c2cd8994
TT
37962019-07-17 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3799 location_matches_p.
3800 * tui/tui-source.c (tui_source_window::location_matches_p): New
3801 method.
3802 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3803 method.
3804 * tui/tui-data.h (struct tui_source_window_base)
3805 <location_matches_p>: New method.
3806 (struct tui_source_window, struct tui_disasm_window)
3807 <location_matches_p>: Likewise.
3808
4dde7b34
TT
38092019-07-17 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui-win.c (tui_set_win_height_command): Rename from
3812 tui_set_win_height.
3813 (tui_set_win_height_command): Remove.
3814
b73dd877
TT
38152019-07-17 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-source.c (tui_source_window): New constructor. Add
3818 observer.
3819 (~tui_source_window): New destructor.
3820 (tui_source_window::style_changed): New method.
3821 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3822 (tui_attach_detach_observers): Update.
3823 * tui/tui-data.h (struct tui_source_window): Make constructor not
3824 inline. Add destructor.
3825 (struct tui_source_window) <style_changed>: New method.
3826 <m_observable>: New member.
3827
ae2b5380
TT
38282019-07-17 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3831 * tui/tui-win.c (tui_resize_all): Fix typo.
3832
1ce3e844
TT
38332019-07-17 Tom Tromey <tom@tromey.com>
3834
3835 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3836 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3837 (tui_refresh_all): Remove "list" parameter. Use foreach.
3838 * tui/tui-win.c (window_name_completer): Use foreach.
3839 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3840 (update_tab_width): Likewise.
3841 * tui/tui-layout.c (show_layout): Update.
3842 * tui/tui-data.h (class tui_window_iterator): New.
3843 (struct all_tui_windows): New.
3844 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3845
fe3eaf1c
TT
38462019-07-17 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3849 parameter. Don't reference globals.
3850 (tui_reg_command): Update.
3851
368c1354
TT
38522019-07-17 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-regs.c (tui_show_registers): Simplify.
3855
e80cd204
TT
38562019-07-17 Tom Tromey <tom@tromey.com>
3857
3858 * tui/tui-regs.c (tui_show_registers): Update.
3859 (tui_show_register_group): Add win_info parameter.
3860
aca2dd16
TT
38612019-07-17 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3864 Rename from tui_display_reg_element_at_line.
3865 (tui_data_window::display_registers_from_line): Update.
3866 * tui/tui-data.h (struct tui_data_window)
3867 <display_reg_element_at_line>: New method.
3868
517e9505
TT
38692019-07-17 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-regs.h (tui_display_registers_from)
3872 (tui_display_registers_from_line): Don't declare.
3873 * tui/tui-windata.c (tui_data_window::display_all_data)
3874 (tui_data_window::refresh_all)
3875 (tui_data_window::do_scroll_vertical): Update.
3876 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3877 from tui_display_registers_from.
3878 (tui_display_reg_element_at_line): Update.
3879 (tui_data_window::display_registers_from_line): Rename from
3880 tui_display_registers_from_line.
3881 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3882 display_registers_from_line>: New methods.
3883
f76d8b19
TT
38842019-07-17 Tom Tromey <tom@tromey.com>
3885
3886 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3887 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3888 from tui_erase_data_content.
3889 (tui_data_window::display_all_data)
3890 (tui_data_window::refresh_all)
3891 (tui_data_window::do_scroll_vertical): Update.
3892 * tui/tui-regs.c (tui_show_registers): Update.
3893 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3894 New method.
3895
b4094625
TT
38962019-07-17 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3899 declare.
3900 * tui/tui-windata.c
3901 (tui_data_window::delete_data_content_windows): Rename from
3902 tui_delete_data_content_windows.
3903 (tui_data_window::display_all_data)
3904 (tui_data_window::do_scroll_vertical): Update.
3905 * tui/tui-data.h (struct tui_data_window)
3906 <delete_data_content_windows>: New method.
3907
c223a729
TT
39082019-07-17 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3911 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3912
50daf268
TT
39132019-07-17 Tom Tromey <tom@tromey.com>
3914
3915 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3916 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3917 from tui_display_all_data.
3918 * tui/tui-win.c
3919 (tui_data_window::do_make_visible_with_new_height): Update.
3920 * tui/tui-regs.c (tui_show_registers): Update.
3921 * tui/tui-layout.c (tui_set_layout): Update.
3922 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3923 method.
3924
df5f8cab
TT
39252019-07-17 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3928 * tui/tui-windata.c (tui_display_data_from): Remove.
3929 (tui_data_window::refresh_all): Update.
3930
80cb6c27
TT
39312019-07-17 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3934 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3935 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3936 tui_display_registers_from_line.
3937 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3938 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3939 "force_display" parameter.
3940
baff0c28
TT
39412019-07-17 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3944 declare.
3945 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3946 Rename from tui_first_reg_element_no_inline.
3947 (tui_display_reg_element_at_line)
3948 (tui_display_registers_from_line): Update.
3949 * tui/tui-data.h (struct tui_data_window)
3950 <first_reg_element_no_inline>: New method.
3951
3b23c5f2
TT
39522019-07-17 Tom Tromey <tom@tromey.com>
3953
3954 * tui/tui-windata.c (tui_display_data_from)
3955 (tui_data_window::do_scroll_vertical): Update.
3956 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3957 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3958 Rename from tui_line_from_reg_element_no.
3959 (tui_display_registers_from_line): Update.
3960 * tui/tui-data.h (struct tui_data_window)
3961 <line_from_reg_element_no>: New method.
3962
0b5ec218
TT
39632019-07-17 Tom Tromey <tom@tromey.com>
3964
3965 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3966 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3967 tui_last_regs_line_no.
3968 (tui_display_reg_element_at_line)
3969 (tui_display_registers_from_line): Update.
3970 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3971 method.
3972
0807ab7b
TT
39732019-07-17 Tom Tromey <tom@tromey.com>
3974
3975 PR tui/24722:
3976 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3977 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3978 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3979 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3980 (tui_update_breakpoint_info): Likewise.
3981 * tui/tui-hooks.c (tui_event_create_breakpoint)
3982 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3983 Update.
3984
9ad7fdef
TT
39852019-07-17 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3988
5813316f
TT
39892019-07-17 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-winsource.c (tui_update_source_window_as_is)
3992 (tui_update_source_windows_with_addr): Update.
3993 * tui/tui-source.h (tui_set_source_content)
3994 (tui_show_symtab_source): Add "win_info" parameter.
3995 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3996 parameter.
3997 (tui_show_symtab_source): Likewise.
3998
00e264e7
TT
39992019-07-17 Tom Tromey <tom@tromey.com>
4000
4001 * tui/tui-wingeneral.c
4002 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4003
06210ce4
TT
40042019-07-17 Tom Tromey <tom@tromey.com>
4005
4006 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4007 (struct tui_cmd_window) <can_scroll>: New method.
4008 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4009 method.
4010
381befee
TT
40112019-07-17 Tom Tromey <tromey@adacore.com>
4012
4013 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4014 do_field_signed>: Rename. Change type of "value".
4015 * ui-out.c (ui_out::field_signed): Rename from field_int.
4016 Change type of "value".
4017 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4018 type of "value".
4019 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4020 do_field_int. Change type of "value".
4021 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4022 do_field_int. Change type of "value".
4023 * tracepoint.c (trace_status_mi, tfind_1)
4024 (print_one_static_tracepoint_marker): Update.
4025 * thread.c (print_thread_info_1, print_selected_thread_frame):
4026 Update.
4027 * stack.c (print_frame, print_frame_info): Update.
4028 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4029 Update.
4030 * source.c (print_source_lines_base): Update.
4031 * skip.c (info_skip_command): Update.
4032 * record-btrace.c (btrace_ui_out_decode_error)
4033 (btrace_call_history_src_line): Update.
4034 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4035 Update.
4036 * progspace.c (print_program_space): Update.
4037 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4038 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4039 do_field_int. Change type of "value".
4040 * mi/mi-out.c (mi_ui_out::do_table_begin)
4041 (mi_ui_out::do_table_header): Update.
4042 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4043 type of "value".
4044 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4045 (mi_cmd_data_list_changed_registers, output_register)
4046 (mi_cmd_data_read_memory, mi_load_progress)
4047 (mi_cmd_trace_frame_collected): Update.
4048 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4049 Update.
4050 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4051 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4052 (mi_cmd_var_list_children, varobj_update_one): Update.
4053 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4054 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4055 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4056 * inferior.c (print_inferior): Update.
4057 * gdb_bfd.c (print_one_bfd): Update.
4058 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4059 Update.
4060 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4061 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4062 do_field_int. Change type of "value".
4063 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4064 do_field_int. Change type of "value".
4065 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4066 (print_one_breakpoint_location, print_it_catch_fork)
4067 (print_one_catch_fork, print_it_catch_vfork)
4068 (print_one_catch_vfork, print_it_catch_solib)
4069 (print_it_catch_exec, print_it_ranged_breakpoint)
4070 (print_mention_watchpoint, print_mention_masked_watchpoint)
4071 (bkpt_print_it, update_static_tracepoint): Update.
4072 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4073 * break-catch-syscall.c (print_it_catch_syscall): Update.
4074 * ada-tasks.c (print_ada_task_info): Update.
4075 * ada-lang.c (print_it_exception, print_mention_exception):
4076 Update.
4077
6b78c3f8
AB
40782019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 PR breakpoints/24541
4081 * gdbarch.c: Regenerate.
4082 * gdbarch.h: Regenerate.
4083 * gdbarch.sh: Adjust return type and parameter types for
4084 'stap_adjust_register'.
4085 (i386_stap_adjust_register): Adjust signature and return new
4086 register name.
4087 * stap-probe.c (stap_parse_register_operand): Adjust use of
4088 'gdbarch_stap_adjust_register'.
4089
d72a9b85
TT
40902019-07-17 Tom Tromey <tromey@adacore.com>
4091
4092 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4093 declare VEC.
4094 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4095 std::vector.
4096 (struct s390_process_info): Add initializers.
4097 (s390_add_process): Use new.
4098 (s390_linux_nat_target::low_forget_process): Use delete.
4099 (s390_linux_nat_target::low_new_fork)
4100 (s390_linux_nat_target::stopped_by_watchpoint)
4101 (s390_linux_nat_target::low_prepare_to_resume)
4102 (s390_linux_nat_target::insert_watchpoint)
4103 (s390_linux_nat_target::insert_hw_breakpoint)
4104 (s390_linux_nat_target::remove_watchpoint)
4105 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4106
206e6c58
JB
41072019-07-16 John Baldwin <jhb@FreeBSD.org>
4108
4109 * aarch64-fbsd-nat.c: Include regcache.h.
4110 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4111 argument.
4112 (aarch64_fbsd_nat_target::fetch_registers)
4113 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4114 variable.
4115 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4116
cbde90f2
JB
41172019-07-16 John Baldwin <jhb@FreeBSD.org>
4118
4119 * fbsd-nat.c: Include gdbarch.h.
4120
07128006
TT
41212019-07-15 Tom Tromey <tromey@adacore.com>
4122
4123 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4124
1f77b012
TT
41252019-07-15 Tom Tromey <tromey@adacore.com>
4126
4127 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4128 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4129 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4130 * cli-out.c (cli_ui_out::do_field_int): New method.
4131 * ui-out.c (ui_out::field_unsigned): New method.
4132 * symfile.c (generic_load): Use field_unsigned.
4133 (print_transfer_performance): Likewise.
4134 * record-btrace.c (ui_out_field_uint): Remove.
4135 (btrace_call_history_insn_range, btrace_call_history): Use
4136 field_unsigned.
4137 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4138 field_unsigned.
4139 * ui-out.h (class ui_out) <field_unsigned>: New method.
4140 <do_field_unsigned>: Likewise.
4141
33eca680
TT
41422019-07-15 Tom Tromey <tromey@adacore.com>
4143
4144 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4145 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4146 * target.c (flash_erase_command): Use field_string.
4147 * infrun.c (print_signal_received_reason): Use field_string.
4148 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4149 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4150 field_string.
4151 * ada-tasks.c (print_ada_task_info): Use field_string.
4152
ca8d69be
TT
41532019-07-15 Tom Tromey <tromey@adacore.com>
4154
4155 * target.c (flash_erase_command): Use field_core_addr.
4156 * symfile.c (generic_load): Use field_core_addr.
4157 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4158 Use field_core_addr.
4159 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4160 field_core_addr.
4161
0d4e84ed
AB
41622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4165 value if its desired type is smaller than a CORE_ADDR and signed.
4166
9a49df9d
AB
41672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4168
4169 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4170 of changes to field names, and use new is_reference field to
4171 decide if a property is a reference or not.
4172 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4173 field.
4174 (struct dwarf2_property_baton): Update header comment, rename
4175 'referenced_type' to 'property_type' and update comments.
4176 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4177 default property type, store in property baton, update to take
4178 accound of renamed field.
4179 (read_func_scope): Update call to attr_to_dynamic_prop.
4180 (read_array_type): Likewise.
4181 (dwarf2_per_cu_addr_sized_int_type): New function.
4182 (read_subrange_index_type): Move type finding code to
4183 dwarf2_per_cu_addr_sized_int_type.
4184 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4185 (dwarf2_per_cu_addr_type): New function.
4186 (set_die_type): Update calls to attr_to_dynamic_prop.
4187
b86352cf
AB
41882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * dwarf2read.c (read_subrange_index_type): New function.
4191 (read_subrange_type): Move code into new function and call it.
4192 * gdbtypes.c (create_range_type): Add some asserts.
4193
603490bf
AB
41942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4197 update return statements.
4198 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4199 declaration, and update comment to match.
4200 * gdbtypes.c (resolve_dynamic_array): Update call to
4201 dwarf2_evaluate_property to match new return type.
4202
592f9d27
AB
42032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * valarith.c (value_subscripted_rvalue): Change lowerbound
4206 parameter type from int to LONGEST.
4207 * value.h (value_subscripted_rvalue): Likewise in declaration.
4208
60cfcb20
AB
42092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4210
4211 * cli/cli-utils.c (info_print_command_completer): New function.
4212 * cli/cli-utils.h: Add 'completer.h' include, and forward
4213 declaration for 'struct cmd_list_element'.
4214 (info_print_command_completer): Declare.
4215 * stack.c (_initialize_stack): Add completer for 'info locals' and
4216 'info args'.
4217 * symtab.c (_initialize_symtab): Add completer for 'info
4218 variables' and 'info functions'.
4219 * NEWS: Mention completion for additional info commands.
4220
b16507e0
AB
42212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * cli/cli-utils.c (extract_info_print_args): Delete.
4224 (extract_arg_maybe_quoted): Delete.
4225 (info_print_options_defs): New variable.
4226 (make_info_print_options_def_group): New function.
4227 (extract_info_print_options): Define new function.
4228 * cli/cli-utils.h (extract_info_print_args): Delete.
4229 (struct info_print_options): New structure.
4230 (extract_info_print_options): Declare new function.
4231 * stack.c (info_locals_command): Update to use new
4232 extract_info_print_options, also add a header comment.
4233 (info_args_command): Likewise.
4234 * symtab.c (info_variables_command): Likewise.
4235 (info_functions_command): Likewise.
4236
021d8588
AB
42372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4238
4239 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4240 to extract string arguments.
4241 * common/common-utils.c (extract_string_maybe_quoted): New function.
4242 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4243
b777eb6d
TT
42442019-07-11 Tom Tromey <tromey@adacore.com>
4245
4246 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4247 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4248 * top.h (gdbinit): Don't declare.
4249 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4250 into...
4251 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4252 * top.c (gdb_init): Don't call init_cli_cmds.
4253 (gdbinit): Remove.
4254 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4255
72ee03ff
TT
42562019-07-11 Tom Tromey <tromey@adacore.com>
4257
4258 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4259 after it has been moved.
4260
00db9531
SM
42612019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * valops.c (value_must_coerce_to_target): Change return type to
4264 bool.
4265 * value.h (value_must_coerce_to_target): Likewise.
4266
f2478a7e
SM
42672019-07-10 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * breakpoint.c (is_hardware_watchpoint): Remove
4270 forward-declaration.
4271 (is_masked_watchpoint): Change return type to bool.
4272 (is_tracepoint): Likewise.
4273 (is_breakpoint): Likewise.
4274 (is_hardware_watchpoint): Likewise.
4275 (is_watchpoint): Likewise.
4276 (is_no_memory_software_watchpoint): Likewise.
4277 (is_catchpoint): Likewise.
4278 (breakpoint_1): Make FILTER parameter's return type bool.
4279 is_masked_watchpoint): Change return type to bool.
4280 (save_breakpoints): Make FILTER parameter's return type bool.
4281 * breakpoint.h (is_breakpoint): Change return type to bool.
4282 (is_watchpoint): Likewise.
4283 (is_catchpoint): Likewise.
4284 (is_tracepoint): Likewise.
4285
0d12e84c
TT
42862019-07-10 Tom Tromey <tom@tromey.com>
4287
4288 * defs.h: Don't include gdbarch.h.
4289 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4290 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4291 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4292 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4293 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4294 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4295 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4296 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4297 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4298 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4299 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4300 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4301 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4302 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4303 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4304 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4305 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4306 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4307 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4308 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4309 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4310 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4311 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4312 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4313 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4314 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4315 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4316
f06f1252
TT
43172019-07-10 Tom Tromey <tromey@adacore.com>
4318
4319 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4320 * breakpoint.c (init_ada_exception_breakpoint): Register as
4321 bp_catchpoint.
4322 (print_one_breakpoint_location, print_one_breakpoint): Use
4323 is_ada_exception_catchpoint.
4324 * ada-lang.c (class ada_catchpoint_location): Pass
4325 bp_loc_software_breakpoint to bp_location constructor.
4326 (is_ada_exception_catchpoint): New function.
4327
7a5d944b
TT
43282019-07-10 Tom Tromey <tromey@adacore.com>
4329
4330 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4331 VEC.
4332 (struct arm_exidx_entry): New method operator<.
4333 (struct arm_exidx_data) <section_maps>: Change type.
4334 (arm_exidx_data_free): Remove.
4335 (arm_exidx_data_key): Change type. Move lower.
4336 (arm_exidx_new_objfile): Update.
4337 (arm_compare_exidx_entries): Remove.
4338 (arm_find_exidx_entry, _initialize_arm_tdep)
4339
48c66e1d
TT
43402019-07-10 Tom Tromey <tromey@adacore.com>
4341
4342 * solib-spu.c (ocl_program_data_key): Change type.
4343 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4344 Update.
4345
a269fbf1
TT
43462019-07-10 Tom Tromey <tromey@adacore.com>
4347
4348 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4349 (struct solib_aix_inferior_data) <library_list>: Change type.
4350 (solib_aix_inferior_data_handle): Change type.
4351 (get_solib_aix_inferior_data): Update.
4352 (solib_aix_free_library_list): Remove.
4353 (library_list_start_library): Update.
4354 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4355 return type.
4356 (solib_aix_get_library_list)
4357 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4358 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4359
c294730c
TT
43602019-07-10 Tom Tromey <tromey@adacore.com>
4361
4362 * solib-dsbt.c (struct dsbt_info): Add initializers.
4363 (solib_dsbt_pspace_data): Change type.
4364 (dsbt_pspace_data_cleanup): Remove.
4365 (get_dsbt_info, _initialize_dsbt_solib): Update.
4366
9d52077d
TT
43672019-07-10 Tom Tromey <tromey@adacore.com>
4368
4369 * spu-tdep.c (spu_overlay_data): Change type.
4370 (spu_get_overlay_table, spu_overlay_new_objfile)
4371 (_initialize_spu_tdep): Update.
4372
22a20dca
TT
43732019-07-10 Tom Tromey <tromey@adacore.com>
4374
4375 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4376 destructor.
4377 (dbx_objfile_data_key): Change type and declare later.
4378 (DBX_SYMFILE_INFO): Rewrite.
4379 * dbxread.c (dbx_objfile_data_key): Change type.
4380 (dbx_symfile_init): Update.
4381 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4382 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4383 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4384
cb60f420
TT
43852019-07-10 Tom Tromey <tromey@adacore.com>
4386
4387 * jit.c (jit_program_space_key): Change type. Move lower.
4388 (get_jit_program_space_data): Update.
4389 (jit_program_space_data_cleanup): Remove.
4390 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4391 Update.
4392 (struct jit_program_space_data): Add initializers.
4393
51df2ae3
TT
43942019-07-10 Tom Tromey <tromey@adacore.com>
4395
4396 * solib-darwin.c (struct darwin_info): Add initializers.
4397 (solib_darwin_pspace_data): Change type.
4398 (darwin_pspace_data_cleanup): Remove.
4399 (get_darwin_info, _initialize_darwin_solib): Update.
4400
18101a35
TT
44012019-07-10 Tom Tromey <tromey@adacore.com>
4402
4403 * remote-sim.c (struct sim_inferior_data): Add initializers,
4404 constructor, and destructor.
4405 (sim_inferior_data_key): Change type. Move lower.
4406 (check_for_duplicate_sim_descriptor): Update.
4407 (get_sim_inferior_data): Use new. Update.
4408 (~sim_inferior_data_cleanup): Rename from
4409 sim_inferior_data_cleanup. Simplify.
4410 (gdbsim_close_inferior, simulator_command)
4411 (sim_command_completer, _initialize_remote_sim): Update.
4412 (next_pid, INITIAL_PID): Move earlier.
4413
05b08ac1
TT
44142019-07-10 Tom Tromey <tromey@adacore.com>
4415
4416 * python/python-internal.h (create_thread_object): Return
4417 gdbpy_ref.
4418 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4419 * python/py-inferior.c (struct threadlist_entry): Add
4420 constructor.
4421 <thread_obj>: Now a gdbpy_ref.
4422 (thread_to_thread_object): Update.
4423 (add_thread_object): Use new.
4424 (delete_thread_object): Use delete.
4425 (infpy_threads): Update.
4426 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4427 GIL.
4428
32372d80
TT
44292019-07-10 Tom Tromey <tromey@adacore.com>
4430
4431 * valops.c (value_cast): Specialize error message for Ada.
4432
5c458ae8
SM
44332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4436
4c462cb0
SM
44372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4438
4439 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4440 bpstat_should_step): Return bool, adjust comments.
4441 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4442 bpstat_should_step): Likewise.
4443
89abbcc2
AH
44442019-07-10 Alan Hayward <alan.hayward@arm.com>
4445
4446 * features/Makefile: Use feature target descriptions for Arm.
4447 * features/arm/arm-core.c: Generate new file.
4448 * features/arm/arm-fpa.c: Likewise.
4449 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4450 * features/arm/arm-m-profile.c: Likewise.
4451 * features/arm/arm-vfpv2.c: Likewise.
4452 * features/arm/arm-vfpv3.c: Likewise.
4453 * features/arm/xscale-iwmmxt.c: Likewise.
4454 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4455
166a82be
AH
44562019-07-10 Alan Hayward <alan.hayward@arm.com>
4457
4458 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4459 ptrace earlier.
4460
9fb4c7e9
AH
44612019-07-10 Alan Hayward <alan.hayward@arm.com>
4462
4463 * features/aarch64-pauth.c: Regenerate.
4464
e2d0f980
SM
44652019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4466
4467 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4468 bool.
4469 (bpstat_what): Use false instead of 0.
4470
a38118e5
PA
44712019-07-09 Pedro Alves <palves@redhat.com>
4472
4473 * break-catch-throw.c (is_exception_catchpoint): New.
4474 * breakpoint.c (print_one_breakpoint_location): New parameter
4475 'raw_loc'. Handle it. Use
4476 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4477 looking at the breakpoint's type.
4478 (print_one_breakpoint): If handling "maint info breakpoints", also
4479 print locations of exception catchpoints.
4480 * breakpoint.h (is_exception_catchpoint): Declare.
4481
cb1e4e32
PA
44822019-07-09 Pedro Alves <palves@redhat.com>
4483
4484 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4485 "addr" field.
4486 (allocate_location_exception_catchpoint): New.
4487 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4488 (initialize_throw_catchpoint_ops): Install
4489 allocate_location_exception_catchpoint as allocate_location
4490 method.
4491 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4492 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4493 bp_loc_other.
4494 (breakpoint_address_is_meaningful): Delete.
4495 (bl_address_is_meaningful): New.
4496 (breakpoint_locations_match): Adjust comment.
4497 (bp_location_from_bp_type): New, factored out of...
4498 (bp_location::bp_location(breakpoint *)): ... this.
4499 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4500 factored out of...
4501 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4502 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4503 breakpoint_address_is_meaningful.
4504 (bp_locations_compare): Adjust comment.
4505 (update_global_location_list): Use bl_address_is_meaningful
4506 instead of breakpoint_address_is_meaningful.
4507 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4508 explicit.
4509 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4510 * python/py-breakpoint.c (bppy_get_location): No longer check
4511 whether location is null.
4512
b58a68fe
PA
45132019-07-09 Pedro Alves <palves@redhat.com>
4514
4515 PR c++/15468
4516 * breakpoint.c (print_one_breakpoint_location): Remove
4517 single-location assert.
4518
268a13a5
TT
45192019-07-09 Tom Tromey <tom@tromey.com>
4520
4521 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4522 * configure: Rebuild.
4523 * configure.ac: Change common to gdbsupport.
4524 * gdbsupport: Rename from common.
4525 * acinclude.m4: Change common to gdbsupport.
4526 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4527 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4528 gdbsupport.
4529 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4530 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4531 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4532 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4533 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4534 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4535 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4536 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4537 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4538 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4539 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4540 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4541 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4542 coff-pe-read.c, command.h, compile/compile-c-support.c,
4543 compile/compile-c.h, compile/compile-cplus-symbols.c,
4544 compile/compile-cplus-types.c, compile/compile-cplus.h,
4545 compile/compile-loc2c.c, compile/compile.c, completer.c,
4546 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4547 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4548 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4549 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4550 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4551 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4552 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4553 features/aarch64-core.c, features/aarch64-fpu.c,
4554 features/aarch64-pauth.c, features/aarch64-sve.c,
4555 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4556 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4557 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4558 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4559 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4560 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4561 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4562 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4563 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4564 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4565 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4566 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4567 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4568 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4569 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4570 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4571 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4572 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4573 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4574 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4575 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4576 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4577 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4578 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4579 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4580 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4581 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4582 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4583 minsyms.c, mips-linux-tdep.c, namespace.h,
4584 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4585 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4586 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4587 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4588 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4589 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4590 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4591 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4592 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4593 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4594 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4595 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4596 procfs.c, producer.c, progspace.h, psymtab.h,
4597 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4598 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4599 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4600 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4601 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4602 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4603 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4604 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4605 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4606 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4607 target-memory.c, target.c, target.h, target/waitstatus.c,
4608 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4609 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4610 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4611 unittests/array-view-selftests.c,
4612 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4613 unittests/common-utils-selftests.c,
4614 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4615 unittests/format_pieces-selftests.c,
4616 unittests/function-view-selftests.c,
4617 unittests/lookup_name_info-selftests.c,
4618 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4619 unittests/mkdir-recursive-selftests.c,
4620 unittests/observable-selftests.c,
4621 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4622 unittests/parse-connection-spec-selftests.c,
4623 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4624 unittests/scoped_fd-selftests.c,
4625 unittests/scoped_mmap-selftests.c,
4626 unittests/scoped_restore-selftests.c,
4627 unittests/string_view-selftests.c, unittests/style-selftests.c,
4628 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4629 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4630 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4631 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4632 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4633 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4634
5b0e2db4
AB
46352019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4638 bool value.
4639 (decode_digits_ordinary): Set explicit_line field in sal.
4640 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4641 symtab_and_line that was set on an explicit line number in
4642 assembler code. Do always update the recorded symtab and line if
4643 we do skip the prologue.
4644
0ba852ab
AB
46452019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * breakpoint.c (set_breakpoint_location_function): Remove
4648 explicit_loc parameter.
4649 (momentary_breakpoint_from_master): Update call to
4650 set_breakpoint_location_function.
4651 (add_location_to_breakpoint): Likewise.
4652
b3a7d171
AB
46532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4654
4655 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4656 required features based on default bfd type when no specific bfd
4657 is present.
4658
1f6f6e21
PW
46592019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4660
4661 * NEWS: Mention that GDB printf and eval commands can now print
4662 C-style and Ada-style convenience var strings without
4663 calling the inferior.
4664 * printcmd.c (printf_c_string): Locally print GDB internal var
4665 instead of transiting via the inferior.
4666 (printf_wide_c_string): Likewise.
4667
46682019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4669
5862c886 4670 PR breakpoints/25011
ea142fbf
AH
4671 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4672
0598af48
TT
46732019-07-04 Tom Tromey <tom@tromey.com>
4674
4675 PR tui/24724:
4676 * tui/tui-winsource.c (tui_clear_source_content): Update.
4677 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4678 (tui_update_breakpoint_info): Update.
4679 (tui_set_exec_info_content): Update.
4680 * tui/tui-source.c (tui_set_source_content_nil): Update.
4681 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4682 has_break.
4683 * tui/tui-data.h (enum tui_bp_flag): New.
4684 (tui_bp_flags): New enum flags type.
4685 (struct tui_source_element) <break_mode>: Change type. Rename
4686 from has_break.
4687 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4688 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4689 constants.
4690 * tui/tui-winsource.h: Fix comment.
4691
350fab54
AH
46922019-07-04 Alan Hayward <alan.hayward@arm.com>
4693
4694 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4695 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4696 (store_fpregs_to_thread)
4697 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4698 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4699 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4700 (IWMMXT_REGS_SIZE): Add define.
4701 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4702 (fetch_vfp_regs, store_vfp_regs)
4703 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4704 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4705
f0452268
AH
47062019-07-04 Alan Hayward <alan.hayward@arm.com>
4707
4708 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4709 defines.
4710 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4711 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4712 (ARM_INT_REGISTER_SIZE): ...to this.
4713 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4714 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4715 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4716 (arm_linux_collect_gregset, supply_nwfpe_register)
4717 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4718 defines.
4719 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4720 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4721 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4722 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4723 (arm_return_in_memory, arm_store_return_value)
4724 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4725 (arm_record_ld_st_multiple): Likewise.
4726 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4727 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4728
e935475c
AH
47292019-07-04 Alan Hayward <alan.hayward@arm.com>
4730
4731 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4732 AARCH64_DISPLACED_MODIFIED_INSNS.
4733 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4734 (aarch64_displaced_step_copy_insn): Likewise.
4735 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4736 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4737 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4738 ARM_DISPLACED_MODIFIED_INSNS.
4739 * arm-tdep.c (arm_gdbarch_init): Likewise.
4740 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4741 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4742 (struct arm_displaced_step_closure): Use
4743 ARM_DISPLACED_MODIFIED_INSNS.
4744
df0bb381
AH
47452019-07-04 Alan Hayward <alan.hayward@arm.com>
4746
4747 * features/Makefile: Remove unused xml files.
4748 * features/aarch64.xml: Remove.
4749 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4750 * features/i386/amd64-avx-avx512.xml: Remove.
4751 * features/i386/amd64-avx-linux.xml: Remove.
4752 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4753 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4754 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4755 * features/i386/amd64-avx-mpx.xml: Remove.
4756 * features/i386/amd64-avx.xml: Remove.
4757 * features/i386/amd64-linux.xml: Remove.
4758 * features/i386/amd64-mpx-linux.xml: Remove.
4759 * features/i386/amd64-mpx.xml: Remove.
4760 * features/i386/amd64.xml: Remove.
4761 * features/i386/i386-avx-avx512-linux.xml: Remove.
4762 * features/i386/i386-avx-avx512.xml: Remove.
4763 * features/i386/i386-avx-linux.xml: Remove.
4764 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4765 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4766 * features/i386/i386-avx-mpx-linux.xml: Remove.
4767 * features/i386/i386-avx-mpx.xml: Remove.
4768 * features/i386/i386-avx.xml: Remove.
4769 * features/i386/i386-linux.xml: Remove.
4770 * features/i386/i386-mmx-linux.xml: Remove.
4771 * features/i386/i386-mmx.xml: Remove.
4772 * features/i386/i386-mpx-linux.xml: Remove.
4773 * features/i386/i386-mpx.xml: Remove.
4774 * features/i386/i386.xml: Remove.
4775 * features/i386/x32-avx-avx512-linux.xml: Remove.
4776 * features/i386/x32-avx-linux.xml: Remove.
4777 * features/i386/x32-linux.xml: Remove.
4778
edd6266a
AH
47792019-07-04 Alan Hayward <alan.hayward@arm.com>
4780
4781 * regformats/aarch64.dat: Remove.
4782 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4783 * regformats/i386/amd64-avx-linux.dat: Remove.
4784 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4785 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4786 * regformats/i386/amd64-linux.dat: Remove.
4787 * regformats/i386/amd64-mpx-linux.dat: Remove.
4788 * regformats/i386/amd64.dat: Remove.
4789 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4790 * regformats/i386/i386-avx-linux.dat: Remove.
4791 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4792 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4793 * regformats/i386/i386-linux.dat: Remove.
4794 * regformats/i386/i386-mmx-linux.dat: Remove.
4795 * regformats/i386/i386-mpx-linux.dat: Remove.
4796 * regformats/i386/i386.dat: Remove.
4797 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4798 * regformats/i386/x32-avx-linux.dat: Remove.
4799 * regformats/i386/x32-linux.dat: Remove.
4800
2b40fda7
AH
48012019-07-04 Alan Hayward <alan.hayward@arm.com>
4802
4803 * aarch64-tdep.c: Remove xml self tests.
4804 * amd64-linux-tdep.c: Likewise.
4805 * amd64-tdep.c: Likewise.
4806 * i386-linux-tdep.c: Likewise.
4807 * i386-tdep.c: Likewise.
4808
5f4ba3e7
PA
48092019-07-03 Pedro Alves <palves@redhat.com>
4810
4811 PR cli/24732
4812 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4813 (pipe_cmd_option_defs): New.
4814 (make_pipe_cmd_options_def_group): New.
4815 (pipe_command): Use gdb::option::process_options.
4816 (pipe_command_completer): New function.
4817 (_initialize_cli_cmds): Install completer for "pipe" command.
4818
3d9be6f5
PA
48192019-07-03 Pedro Alves <palves@redhat.com>
4820
4821 * cli/cli-option.c (union option_value) <string>: New field.
4822 (struct option_def_and_value): Add ctor, move ctor, dtor and
4823 use DISABLE_COPY_AND_ASSIGN.
4824 (option_def_and_value::clear_value): New.
4825 (parse_option, save_option_value_in_ctx, get_val_type_str)
4826 (add_setshow_cmds_for_options): Handle var_string.
4827 * cli-option.h (union option_def::var_address) <string>: New
4828 field.
4829 (struct string_option_def): New.
4830 * maint-test-options.c (struct test_options_opts): Add default
4831 ctor and use DISABLE_COPY_AND_ASSIGN.
4832 <string_opt>: New field.
4833 (test_options_opts::~test_options_opts): New.
4834 (test_options_opts::dump): Also dump "-string".
4835 (test_options_option_defs): Install "string.
4836
41fc454c
PA
48372019-07-03 Pedro Alves <palves@redhat.com>
4838
4839 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4840 option_value with a null enumeration.
4841 (complete_options): Save the option values in the context.
4842 (save_option_value_in_ctx): New, factored out from ...
4843 (process_options): ... here.
4844 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4845 of the function.
4846 * maint-test-options.c (test_options_opts::dump): New, factored
4847 out from ...
4848 (maintenance_test_options_command_mode): ... here.
4849 (maintenance_test_options_command_completion_result): Delete.
4850 (maintenance_test_options_command_completion_text): Update
4851 comment.
4852 (maintenance_show_test_options_completion_result): Change
4853 prototype. Just print
4854 maintenance_test_options_command_completion_text.
4855 (save_completion_result): New.
4856 (maintenance_test_options_completer_mode): Pass options context to
4857 complete_options, and then save a dump.
4858 (_initialize_maint_test_options): Use add_cmd to install "maint
4859 show test-options-completion-result".
4860
fdbc9870
PA
48612019-07-03 Pedro Alves <palves@redhat.com>
4862
4863 * NEWS (New commands): Mention "with" and "maint with".
4864 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4865 (with_command, with_command_completer): New.
4866 (pipe_command): Adjust to new repeat_previous
4867 interface.
4868 (_initialize_cli_cmds): Install the "with" command and its "w"
4869 alias.
4870 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4871 declarations.
4872 * cli/cli-setshow.c (parse_cli_var_uinteger)
4873 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4874 argument strings for all var_types.
4875 (get_setshow_command_value_string): New, factored out from ...
4876 (do_show_command): ... this.
4877 * cli/cli-setshow.h: Include <string>.
4878 (get_setshow_command_value_string): Declare.
4879 * command.h (repeat_previous): Now returns const char *. Adjust
4880 comment.
4881 * maint.c: Include "cli/cli-cmds.h".
4882 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4883 (_initialize_maint_cmds): Register the "maintenance with" command.
4884 * top.c (repeat_previous): Move bits from pipe_command here:
4885 Return the saved command line, if any; error out if there's no
4886 command to relaunch.
4887
c6ac8931
PA
48882019-07-03 Pedro Alves <palves@redhat.com>
4889
4890 * NEWS (New commands): Mention "maint set/show test-settings"
4891 instead of "maint test-settings".
4892 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4893 (maintenance_test_settings_set_list): Rename to ...
4894 (maintenance_set_test_settings_list): ... this.
4895 (maintenance_test_settings_show_list): Rename to ...
4896 (maintenance_show_test_settings_list): ... this.
4897 (maintenance_test_settings_cmd): Delete.
4898 (maintenance_test_settings_set_cmd): ...
4899 (maintenance_set_test_settings_cmd): ... this.
4900 (maintenance_test_settings_show_cmd): ...
4901 (maintenance_show_test_settings_cmd): ... this.
4902 (maintenance_test_settings_show_value_cmd):
4903 (maintenance_show_test_settings_value_cmd): ... this.
4904 (_initialize_maint_test_settings): No longer install the "maint
4905 test-settings" prefix command. Rename "maint test-settings set"
4906 to "maint set test-settings", and "maint test-settings show" to
4907 "maint show test-settings". Adjust all subcommands.
4908
d1fcf2fd
PA
49092019-07-03 Pedro Alves <palves@redhat.com>
4910
4911 * maint-test-settings.c: Fix file's intro comment. Replace all
4912 references to "test-options" with references to "test-settings",
4913 in comments.
4914
970f9d09
PA
49152019-07-03 Pedro Alves <palves@redhat.com>
4916
4917 * maint-test-settings.c (maintenance_test_settings_xxx)
4918 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4919 New.
4920 (maintenance_test_settings_enums): Use them.
4921 (maintenance_test_settings_enum): Default to
4922 maintenance_test_settings_xxx.
4923 (_initialize_maint_test_settings): Initialize
4924 MAINTENANCE_TEST_SETTINGS_FILENAME.
4925
f3869b1a
SM
49262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * breakpoint.h (remove_breakpoints_inf): Change return type to
4929 void, move function documentation here.
4930 * breakpoint.c (remove_breakpoints_inf): Change return type to
4931 void, move function documentation to header.
4932
54d66006
PA
49332019-07-02 Pedro Alves <palves@redhat.com>
4934
4935 * NEWS (Completion improvements): Mention "info threads".
4936 * thread.c (struct info_threads_opts, info_threads_option_defs)
4937 (make_info_threads_options_def_group): New.
4938 (info_threads_command): Use gdb::option::process_options.
4939 (info_threads_command_completer): New.
4940 (_initialize_thread): Use gdb::option::build_help to build the
4941 help text for "info threads".
4942
854f6088
SM
49432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4944
4945 * defs.h (generic_load): Move from here...
4946 * symfile.h (generic_load): ... to here. Rename name parameter
4947 to args.
4948 * symfile.c (generic_load): Add comment.
4949
54ee4252
TT
49502019-07-01 Tom Tromey <tromey@adacore.com>
4951
4952 * dwarf2read.c
4953 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4954 declaration of without_params. Fix formatting.
4955
65392b3e
TT
49562019-07-01 Tom Tromey <tromey@adacore.com>
4957
4958 * ada-exp.y (find_primitive_type): Update.
4959 * ada-lang.h (ada_lookup_symbol): Update.
4960 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4961 parameter.
4962 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4963
7d7571f0
SDJ
49642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4965
4966 PR breakpoints/24541
4967 * gdbarch.c: Regenerate.
4968 * gdbarch.h: Regenerate.
4969 * gdbarch.sh: Add 'stap_adjust_register'.
4970 * i386-tdep.c: Include '<unordered_set>'.
4971 (i386_stap_adjust_register): New function.
4972 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4973 * stap-probe.c (stap_parse_register_operand): Call
4974 'gdbarch_stap_adjust_register'.
4975
5af5392a
SDJ
49762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4977
4978 PR python/24742
4979 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4980 * python/python.c (do_start_initialization): Use 'xmalloc'
4981 instead of 'PyMem_Malloc'.
4982
10d06d82
TT
49832019-06-28 Tom Tromey <tromey@adacore.com>
4984
4985 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4986 for Ada.
4987
1b7f24cd
TT
49882019-06-27 Tom Tromey <tromey@adacore.com>
4989
4990 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4991 objfile_key.
4992 (arm_find_mapping_symbol, arm_record_special_symbol)
4993 (_initialize_arm_tdep): Update.
4994 (arm_objfile_data_free): Remove.
4995
3d507ff2
TT
49962019-06-27 Tom Tromey <tromey@adacore.com>
4997
4998 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4999 to cp_print_static_field.
5000
762c164d
TT
50012019-06-26 Tom Tromey <tromey@adacore.com>
5002
5003 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5004 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5005 declare.
5006
aa2f9bcf
AH
50072019-06-26 Alan Hayward <alan.hayward@arm.com>
5008
5009 * features/aarch64-core.c (create_feature_aarch64_core):
5010 Regenerate.
5011 * features/aarch64-core.xml: Add cpsr flags.
5012
3426ae57
AH
50132019-06-26 Alan Hayward <alan.hayward@arm.com>
5014
5015 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5016 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5017
4838e44c
SM
50182019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5021 field.
5022 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5023 use.
5024 (arm_record_special_symbol): Don't insert new symbol in sorted
5025 position, push it at the end.
5026
54cc7474
SM
50272019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5030 (arm_mapping_symbol_s): Remove.
5031 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5032 (arm_mapping_symbol_vec): New typedef.
5033 (struct arm_per_objfile): Add constructor.
5034 <section_maps>: Change type to
5035 std::unique_ptr<arm_mapping_symbol_vec[]>.
5036 (arm_compare_mapping_symbols): Remove.
5037 (arm_find_mapping_symbol): Adjust to section_maps type change.
5038 (arm_objfile_data_free): Call delete on arm_per_objfile.
5039 (arm_record_special_symbol): Adjust to section_maps type change.
5040 Allocate arm_per_objfile with new.
5041
b65b566c
PW
50422019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5043
5044 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5045 with the command prefix.
5046
c2fc64f5
TT
50472019-06-25 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5050 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5051
fb54fa76
TT
50522019-06-25 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5055 type.
5056 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5057 protected.
5058
f7952c57
TT
50592019-06-25 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-winsource.c
5062 (tui_source_window_base::set_is_exec_point_at): Add check against
5063 LOA_ADDRESS.
5064
17568d78
TT
50652019-06-25 Tom Tromey <tom@tromey.com>
5066
5067 * tui/tui-source.c (tui_set_source_content): Don't check before
5068 xfree.
5069 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5070
53e7cdba
TT
50712019-06-25 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-winsource.h (tui_update_source_window_as_is)
5074 (tui_alloc_source_buffer, tui_line_is_displayed)
5075 (tui_addr_is_displayed): Change type of win_info.
5076 * tui/tui-winsource.c (tui_update_source_window_as_is)
5077 (tui_clear_source_content, tui_show_source_line)
5078 (tui_show_source_content, tui_source_window_base::refill)
5079 (tui_source_window_base::set_is_exec_point_at)
5080 (tui_source_window_base::set_is_exec_point_at)
5081 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5082 (tui_alloc_source_buffer, tui_line_is_displayed)
5083 (tui_addr_is_displayed): Change type of win_info. Update.
5084 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5085 (tui_source_window_base::do_make_visible_with_new_height):
5086 Update.
5087 * tui/tui-source.c (tui_set_source_content)
5088 (tui_set_source_content_nil)
5089 (tui_source_window::do_scroll_vertical): Update.
5090 * tui/tui-layout.c (show_layout): Update.
5091 * tui/tui-disasm.c (tui_set_disassem_content)
5092 (tui_disasm_window::do_scroll_vertical): Update.
5093 * tui/tui-data.h (tui_win_content): Remove.
5094 (struct tui_gen_win_info) <content, content_size>: Remove.
5095 (struct tui_source_element): Add initializers and destructor.
5096 (union tui_which_element, struct tui_win_element): Remove.
5097 (struct tui_source_window_base) <content>: New field.
5098 (struct tui_data_window): Remove destructor.
5099 (tui_alloc_content, tui_free_win_content)
5100 (tui_free_all_source_wins_content): Don't declare.
5101 * tui/tui-data.c (tui_initialize_static_data): Update.
5102 (init_content_element, tui_alloc_content): Remove.
5103 (~tui_gen_win_info): Update.
5104 (~tui_data_window, tui_free_all_source_wins_content)
5105 (tui_free_win_content, free_content, free_content_elements):
5106 Remove.
5107
7908abbf
TT
51082019-06-25 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-winsource.h (tui_clear_source_content)
5111 (tui_erase_source_content, tui_show_source_content): Change type
5112 of win_info.
5113 * tui/tui-winsource.c (tui_clear_source_content)
5114 (tui_erase_source_content, tui_show_source_content): Change type
5115 of win_info.
5116 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5117 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5118 win_info.
5119 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5120 win_info.
5121 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5122
02c28df0
TT
51232019-06-25 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-winsource.c (tui_clear_source_content)
5126 (tui_source_window_base::set_is_exec_point_at): Update.
5127 * tui/tui-source.c (tui_set_source_content_nil): Update.
5128 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5129 a bool.
5130 * tui/tui-data.c (init_content_element): Update.
5131
6658b1bf
TT
51322019-06-25 Tom Tromey <tom@tromey.com>
5133
5134 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5135 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5136 * tui/tui-layout.c (init_and_make_win): Update.
5137 * tui/tui.h (enum tui_win_type): Update.
5138 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5139 tui_win_is_auxillary.
5140 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5141 tui_win_is_auxillary.
5142
21e1c91e
TT
51432019-06-25 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5146 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5147 (tui_delete_data_content_windows, tui_display_all_data)
5148 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5149 Update.
5150 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5151 * tui/tui-regs.c (tui_last_regs_line_no)
5152 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5153 (tui_show_registers): Update.
5154 (tui_show_register_group): Return void. Update.
5155 (tui_display_registers_from, tui_display_reg_element_at_line)
5156 (tui_display_registers_from_line, tui_check_register_values):
5157 Update.
5158 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5159 member.
5160 (struct tui_data_window) <regs_content>: Now a std::vector.
5161 <regs_content_count>: Remove.
5162 (tui_add_content_elements, tui_free_data_content): Don't declare.
5163 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5164 (init_content_element): Remove DATA_WIN case. Add assert.
5165 (tui_add_content_elements): Remove.
5166 (tui_data_window): Update.
5167 (tui_free_data_content): Remove.
5168 (free_content_elements): Remove DATA_WIN case.
5169
115ac53b
TT
51702019-06-25 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-data.c (tui_data_item_window): Update.
5173 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5174 * tui/tui-windata.c (tui_display_all_data)
5175 (tui_display_data_from_line): Update.
5176 (tui_check_data_values): Remove.
5177 * tui/tui-regs.c (tui_show_register_group)
5178 (tui_display_reg_element_at_line): Update.
5179 * tui/tui-hooks.c (tui_register_changed)
5180 (tui_refresh_frame_and_register_information): Call
5181 tui_check_register_values.
5182 * tui/tui-data.h (struct tui_data_window) <data_content,
5183 data_content_count, data_type>: Remove.
5184 (enum tui_data_type): Remove.
5185
5186 * tui/tui-data.c (tui_data_window::clear_detail)
5187 (~tui_data_window): Update.
5188
eaf9738b
TT
51892019-06-25 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5192 declare.
5193 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5194 Rename from tui_first_data_item_displayed. Update.
5195 (tui_data_window::refresh_all)
5196 (tui_data_window::do_scroll_vertical): Update.
5197 * tui/tui-data.h (struct tui_data_window)
5198 <first_data_item_displayed>: Declare new method.
5199
31ca4723
TT
52002019-06-25 Tom Tromey <tom@tromey.com>
5201
5202 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5203 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5204 contents...
5205 (tui_initialize_static_data): ...here.
5206
41bcff7f
TT
52072019-06-25 Tom Tromey <tom@tromey.com>
5208
5209 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5210 (tui_display_registers_from, tui_check_register_values): Update.
5211 (tui_display_register): Remove win_info parameter; update.
5212 (tui_get_register): Change type of parameters.
5213 * tui/tui-data.h (struct tui_data_element): Remove.
5214 (union tui_which_element) <data>: Remove.
5215 <data_window>: Change type.
5216 (struct tui_data_item_window): New.
5217 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5218 case. Add assert.
5219 (~tui_data_item_window): New destructor.
5220 (free_content_elements): Remove DATA_ITEM_WIN case.
5221
d2802c33
TT
52222019-06-25 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5225 Remove.
5226
dd835f8b
TT
52272019-06-25 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-data.h (struct tui_command_element): Remove.
5230 (union tui_which_element) <command>: Remove.
5231 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5232 assert.
5233 (free_content_elements): Remove CMD_WIN case.
5234
bd7db367
TT
52352019-06-25 Tom Tromey <tom@tromey.com>
5236
5237 * tui/tui-layout.c (tui_set_layout): Update.
5238 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5239 * tui/tui-data.c (layout_def): Update.
5240
3add462f
TT
52412019-06-25 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5244 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5245 (tui_source_window_base::set_new_height): Update.
5246 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5247 Update.
5248 (tui_set_locator_fullname, tui_set_locator_info)
5249 (tui_show_frame_info): Update.
5250 * tui/tui-source.c (tui_set_source_content)
5251 (tui_source_is_displayed): Update.
5252 * tui/tui-layout.c (show_source_disasm_command, show_data)
5253 (show_source_or_disasm_and_command): Update.
5254 * tui/tui-disasm.c (tui_set_disassem_content)
5255 (tui_get_begin_asm_address): Update.
5256 * tui/tui-data.h (struct tui_locator_element): Remove.
5257 (union tui_which_element) <locator>: Remove.
5258 (struct tui_locator_window): New.
5259 (tui_locator_win_info_ptr): Change return type.
5260 * tui/tui-data.c (_locator): Change type.
5261 (tui_locator_win_info_ptr): Change return type.
5262 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5263 (tui_alloc_content): Add assert.
5264
489e9d8b
TT
52652019-06-25 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-winsource.c
5268 (tui_exec_info_window::maybe_allocate_content): New method.
5269 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5270 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5271 (make_source_or_disasm_window): Add cast.
5272 * tui/tui-data.h (union tui_which_element) <simple_string>:
5273 Remove.
5274 (struct tui_source_info): New.
5275 (struct tui_source_window_base) <execution_info>: Change type.
5276 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5277 case, and add assert.
5278 (tui_alloc_content): Add assert.
5279
c3fabb7d
TT
52802019-06-25 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5283 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5284 * tui/tui-data.c (tui_alloc_win_info): Remove.
5285
bbc228ee
TT
52862019-06-25 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5289 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5290 can_highlight.
5291
5fcee43a
TT
52922019-06-25 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5295 make_visible_with_new_height method.
5296 (tui_win_info::make_visible_with_new_height): New method.
5297 (tui_source_window_base::do_make_visible_with_new_height)
5298 (tui_data_window::do_make_visible_with_new_height)
5299 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5300 (make_visible_with_new_height): Remove.
5301 (tui_resize_all, tui_adjust_win_heights): Use
5302 make_visible_with_new_height method.
5303 * tui/tui-data.h (struct tui_win_info)
5304 <do_make_visible_with_new_height, make_visible_with_new_height>:
5305 New methods.
5306 (struct tui_source_window_base, struct tui_data_window)
5307 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5308 methods.
5309
d83f1fe6
TT
53102019-06-25 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5313 method.
5314 (update_tab_width): Call update_tab_width method.
5315 * tui/tui-data.h (struct tui_win_info)
5316 (struct tui_source_window_base) <update_tab_width>: New methods.
5317
17374de4
TT
53182019-06-25 Tom Tromey <tom@tromey.com>
5319
5320 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5321 parameter.
5322 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5323 parameter.
5324 (tui_gen_win_info::make_visible): Update.
5325 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5326 parameter.
5327 * tui/tui-data.h (enum tui_box): New enum.
5328 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5329
f936bca2
TT
53302019-06-25 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5333 init_and_make_win for EXEC_INFO_WIN.
5334 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5335 longer inline.
5336 (struct tui_win_info) <~tui_win_info>: Inline.
5337 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5338 Don't declare.
5339 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5340 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5341 Remove.
5342 (tui_initialize_static_data): Update.
5343 (~tui_gen_win_info): Handle more cleanup here.
5344 (~tui_source_window_base): Delete "execution_info".
5345 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5346
d6ba6a11
TT
53472019-06-25 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-layout.c (make_command_window): Don't set
5350 can_highlight.
5351 (show_source_disasm_command): Call the reset method.
5352 (show_data): Don't set can_highlight. Call the reset method.
5353 (tui_gen_win_info::reset): Rename from init_gen_win_info
5354 (init_and_make_win): Simplify. Return tui_gen_win_info.
5355 (show_source_or_disasm_and_command): Call the reset method.
5356 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5357 (struct tui_cmd_window): Set can_highlight.
5358
48a3bd16
TT
53592019-06-25 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5362 from make_visible.
5363 (tui_make_visible, tui_make_invisible): Rewrite.
5364 (tui_win_info::make_visible): Remove.
5365 (tui_source_window_base::make_visible): Update.
5366 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5367 method. Moved from...
5368 (struct tui_win_info) <make_visible>: ...here.
5369
c3bd716f
TT
53702019-06-25 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-winsource.c
5373 (tui_source_window_base::do_scroll_horizontal): Remove direction
5374 parameter.
5375 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5376 direction parameter.
5377 * tui/tui-win.c (tui_win_info::forward_scroll)
5378 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5379 (tui_win_info::right_scroll): Update.
5380 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5381 direction parameter.
5382 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5383 direction parameter.
5384 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5385 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5386 Remove direction parameter.
5387 (struct tui_source_window_base, struct tui_source_window)
5388 (struct tui_disasm_window, struct tui_data_window)
5389 (struct tui_cmd_window): Update.
5390
21c32dca
TT
53912019-06-25 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-winsource.h (tui_set_exec_info_content)
5394 (tui_show_exec_info_content, tui_erase_exec_info_content)
5395 (tui_clear_exec_info_content, tui_update_exec_info): Change
5396 argument to tui_source_window_base.
5397 * tui/tui-winsource.c (tui_set_exec_info_content)
5398 (tui_show_exec_info_content, tui_erase_exec_info_content)
5399 (tui_clear_exec_info_content, tui_update_exec_info): Change
5400 argument to tui_source_window_base.
5401
73fbdc65
TT
54022019-06-25 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5405 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5406
33325343
TT
54072019-06-25 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5410 check.
5411
29d2c474
TT
54122019-06-25 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5415 type to void.
5416 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5417 type to void.
5418 * tui/tui-source.c (tui_set_source_content): Update.
5419 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5420
152f3f4b
TT
54212019-06-25 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-win.c (window_name_completer, tui_set_focus)
5424 (tui_all_windows_info): Use name method.
5425 * tui/tui-data.h (struct tui_gen_win_info)
5426 (struct tui_source_window, struct tui_disasm_window)
5427 (struct tui_data_window, struct tui_cmd_window) <name>: New
5428 method.
5429 (tui_win_name): Don't declare.
5430 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5431 (tui_win_name): Remove.
5432
be4da588
TT
54332019-06-25 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui-winsource.h (tui_update_source_window)
5436 (tui_update_source_window_as_is): Change parameter type.
5437 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5438 to be a tui_source_window_base.
5439 (tui_update_source_window_as_is): Likewise.
5440 * tui/tui-win.c (make_visible_with_new_height): Update.
5441
5b81daba
TT
54422019-06-25 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-winsource.c (tui_erase_source_content)
5445 (tui_show_source_content, tui_show_exec_info_content)
5446 (tui_erase_exec_info_content): Use refresh_window method.
5447 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5448 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5449 from tui_refresh_win.
5450 (tui_data_window::refresh_window): New method.
5451 (tui_win_info::refresh, tui_source_window_base::refresh)
5452 (tui_refresh_all): Use refresh_window method.
5453 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5454 method.
5455 * tui/tui-regs.c (tui_display_register): Call refresh_window
5456 method.
5457 * tui/tui-layout.c (show_source_disasm_command)
5458 (show_source_or_disasm_and_command): Call refresh_window method.
5459 * tui/tui-data.h (struct tui_gen_win_info)
5460 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5461 New method.
5462
cb2ce893
TT
54632019-06-25 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui.c (tui_rl_other_window, tui_enable)
5466 (tui_is_window_visible, tui_get_command_dimension): Update.
5467 * tui/tui-winsource.c (tui_update_source_window_as_is)
5468 (tui_clear_source_content, tui_erase_source_content)
5469 (tui_show_source_line, tui_source_window_base::refill)
5470 (tui_source_window_base::do_scroll_horizontal)
5471 (tui_source_window_base::set_is_exec_point_at)
5472 (tui_update_breakpoint_info, tui_set_exec_info_content)
5473 (tui_alloc_source_buffer, tui_line_is_displayed)
5474 (tui_addr_is_displayed): Update.
5475 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5476 (tui_check_and_display_highlight_if_needed)
5477 (tui_win_info::make_visible, tui_win_info::refresh)
5478 (tui_refresh_all): Update.
5479 * tui/tui-windata.c (tui_first_data_item_displayed)
5480 (tui_delete_data_content_windows, tui_erase_data_content)
5481 (tui_display_all_data, tui_data_window::refresh_all)
5482 (tui_check_data_values): Update.
5483 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5484 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5485 (tui_win_info::backward_scroll, tui_refresh_all_win)
5486 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5487 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5488 (tui_source_window_base::set_new_height)
5489 (tui_data_window::set_new_height)
5490 (make_invisible_and_set_new_height)
5491 (make_visible_with_new_height, new_height_ok)
5492 (parse_scrolling_args): Update.
5493 * tui/tui-stack.c (tui_show_frame_info): Update.
5494 * tui/tui-source.c (tui_set_source_content)
5495 (tui_set_source_content_nil, tui_source_is_displayed)
5496 (tui_source_window::do_scroll_vertical): Update.
5497 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5498 (tui_display_registers_from, tui_display_reg_element_at_line)
5499 (tui_check_register_values, tui_reg_command): Update.
5500 * tui/tui-layout.c (tui_default_win_height)
5501 (show_source_disasm_command, show_data, init_and_make_win)
5502 (show_source_or_disasm_and_command): Update.
5503 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5504 (tui_redisplay_readline, tui_mld_flush)
5505 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5506 (tui_getc): Update.
5507 * tui/tui-disasm.c (tui_set_disassem_content)
5508 (tui_disasm_window::do_scroll_vertical): Update.
5509 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5510 Now virtual.
5511 (struct tui_win_info): Derive from tui_gen_win_info.
5512 <~tui_win_info>: Mark as override.
5513 <generic>: Remove member.
5514 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5515 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5516 (~tui_data_window, ~tui_win_info)
5517 (tui_free_all_source_wins_content): Update.
5518 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5519
ab313b35
TT
55202019-06-25 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-layout.c (init_and_make_win): Use new.
5523 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5524 destructor, initializers.
5525 (tui_alloc_generic_win_info): Don't declare.
5526 * tui/tui-data.c (_locator): Add argument to constructor.
5527 (source_win, disasm_win): New globals.
5528 (exec_info): Remove.
5529 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5530 Update.
5531 (tui_alloc_generic_win_info): Remove.
5532 (init_content_element): Use new.
5533 (tui_win_info::tui_win_info): Update.
5534 (free_content_elements) <case DATA_WIN>: Use delete.
5535
dc2c33e4
TT
55362019-06-25 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5539 * tui/tui-windata.c (tui_first_data_item_displayed)
5540 (tui_delete_data_content_windows): Update.
5541 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5542 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5543 (tui_display_registers_from, tui_check_register_values): Update.
5544 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5545 pointer.
5546 * tui/tui-data.c (init_content_element): Update. Allocate the new
5547 window.
5548 (tui_free_data_content): Update.
5549 (free_content_elements) <case DATA_WIN>: Free the window.
5550
214a5cbe
TT
55512019-06-25 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5554 Update.
5555 * tui/tui-layout.c (make_command_window)
5556 (show_source_disasm_command, show_data, init_and_make_win)
5557 (show_source_or_disasm_and_command): Update.
5558 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5559 method.
5560 <can_highight, is_highlighted>: Now bool.
5561 (tui_set_win_highlight): Don't declare.
5562 * tui/tui-data.c (tui_set_win_highlight): Remove.
5563
8e2daf15
TT
55642019-06-25 Tom Tromey <tom@tromey.com>
5565
5566 * tui/tui-wingeneral.c (make_visible): Remove check of window
5567 type.
5568
8903bd8a
TT
55692019-06-25 Tom Tromey <tom@tromey.com>
5570
5571 * tui/tui-win.c (tui_win_info::max_height)
5572 (tui_cmd_window::max_height): New methods.
5573 (new_height_ok): Call max_height.
5574 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5575 <max_height>: New method.
5576
3f02ce1e
TT
55772019-06-25 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-win.c (tui_source_window_base::set_new_height)
5580 (tui_data_window::set_new_height): New methods.
5581 (make_invisible_and_set_new_height): Call set_new_height method.
5582 * tui/tui-data.h (struct tui_win_info)
5583 (struct tui_source_window_base, struct tui_data_window)
5584 <set_new_height>: New method.
5585
1825f487
TT
55862019-06-25 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5589 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5590 tui_refresh_data_win.
5591 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5592 method.
5593 (tui_refresh_all_win): Call the refresh_all method.
5594 (tui_set_focus): Likewise.
5595 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5596 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5597 Likewise.
5598
ad54d15b
TT
55992019-06-25 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-winsource.h (tui_refill_source_window)
5602 (tui_set_is_exec_point_at): Don't declare.
5603 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5604 (tui_source_window_base::refill): Rename from
5605 tui_refill_source_window.
5606 (tui_source_window_base::do_scroll_horizontal): Update.
5607 (tui_source_window_base::set_is_exec_point_at): Rename from
5608 tui_set_is_exec_point_at.
5609 (tui_update_all_breakpoint_info): Update.
5610 * tui/tui-stack.c (tui_show_frame_info): Update.
5611 * tui/tui-layout.c (show_data): Add cast.
5612 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5613 * tui/tui-data.h (struct tui_source_window_base) <refill,
5614 set_is_exec_point_at>: New methods.
5615 (tui_source_windows, tui_add_to_source_windows): Update types.
5616 (tui_add_to_source_windows): Remove redundant declaration.
5617 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5618 (tui_source_windows): Change return type.
5619 (tui_clear_source_windows_detail): Update.
5620 (tui_add_to_source_windows): Change type of parameter.
5621 (tui_free_all_source_wins_content): Update.
5622
2042b506
TT
56232019-06-25 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-wingeneral.c (tui_win_info::refresh)
5626 (tui_source_window_base::refresh): New methods.
5627 (tui_refresh_all): Call the refresh method.
5628 * tui/tui-data.h (struct tui_win_info)
5629 (struct tui_source_window_base) <refresh>: New method.
5630
56122977
TT
56312019-06-25 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui.h (tui_is_window_visible): Return bool.
5634 * tui/tui.c (tui_is_window_visible): Return bool.
5635 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5636 (tui_make_visible, tui_make_invisible)
5637 (tui_win_info::make_visible)
5638 (tui_source_window_base::make_visible, make_all_visible)
5639 (tui_make_all_visible, tui_make_all_invisible): Update.
5640 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5641 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5642 bool.
5643 (struct tui_win_info, struct tui_source_window_base)
5644 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5645 * tui/tui-data.c (tui_init_generic_part): Update.
5646
cda37efb
TT
56472019-06-25 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5650 (tui_source_window_base::make_visible): New methods.
5651 (make_all_visible): Make method call.
5652 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5653 (struct tui_source_window_base, struct tui_cmd_window): Override
5654 make_visible.
5655 (tui_win_is_source_type): Don't declare.
5656 * tui/tui-data.c (tui_win_is_source_type): Remove.
5657
6a0ee02c
TT
56582019-06-25 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5661 NULL check.
5662
63901aec
TT
56632019-06-25 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5666 Inline constructor. Add initializers for members.
5667 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5668 constructors; now inline in class.
5669
ceb13a13
TT
56702019-06-25 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-regs.c (tui_show_registers): Update.
5673 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5674 bool.
5675 * tui/tui-data.c (tui_data_window::clear_detail)
5676 (tui_data_window): Update.
5677
238eb706
TT
56782019-06-25 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-windata.c (tui_display_all_data)
5681 (tui_display_data_from_line, tui_display_data_from)
5682 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5683 Update.
5684 * tui/tui-regs.c (tui_last_regs_line_no)
5685 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5686 (tui_show_registers, tui_show_register_group)
5687 (tui_display_registers_from, tui_display_reg_element_at_line)
5688 (tui_display_registers_from_line, tui_check_register_values)
5689 (tui_reg_next, tui_reg_prev): Update.
5690 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5691 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5692 tui_data_window.
5693 (struct tui_win_info) <detail>: Remove. Add new fields from
5694 tui_data_info.
5695 (TUI_DATA_WIN): Add cast.
5696 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5697 (~tui_data_window): Simplify.
5698
81491aa0
TT
56992019-06-25 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-layout.c (show_source_disasm_command)
5702 (show_source_or_disasm_and_command): Update.
5703 * tui/tui-io.c (update_cmdwin_start_line)
5704 (tui_redisplay_readline): Update.
5705 * tui/tui-data.h (struct tui_command_info): Remove.
5706 (struct tui_win_info) <detail>: Remove command_info member.
5707 (struct tui_data_window) <start_line>: New member, from
5708 tui_command_info.
5709 (TUI_CMD_WIN): Add casts.
5710
e6e41501
TT
57112019-06-25 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-winsource.c (tui_update_source_window)
5714 (tui_refill_source_window)
5715 (tui_source_window_base::do_scroll_horizontal)
5716 (tui_update_breakpoint_info, tui_set_exec_info_content)
5717 (tui_show_exec_info_content, tui_erase_exec_info_content)
5718 (tui_clear_exec_info_content): Update.
5719 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5720 Update.
5721 * tui/tui-win.c (make_invisible_and_set_new_height)
5722 (make_visible_with_new_height): Update.
5723 * tui/tui-source.c (tui_set_source_content)
5724 (tui_show_symtab_source): Update.
5725 * tui/tui-layout.c (extract_display_start_addr)
5726 (show_source_disasm_command, show_data)
5727 (make_source_or_disasm_window)
5728 (show_source_or_disasm_and_command): Update.
5729 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5730 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5731 "gdbarch".
5732 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5733 to tui_source_window_base.
5734 (struct tui_win_info) <detail>: Remove source_info member.
5735 (struct tui_source_window_base) <has_locator>: Inline.
5736 Move contents from tui_source_info; rename has_locator member to
5737 m_has_locator.
5738 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5739 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5740 header file.
5741 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5742 Simplify.
5743 (tui_free_all_source_wins_content): Cast to
5744 tui_source_window_base.
5745
44f0e208
TT
57462019-06-25 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-win.c (make_invisible_and_set_new_height)
5749 (make_visible_with_new_height): Call has_locator method.
5750 * tui/tui-layout.c (show_source_disasm_command, show_data)
5751 (show_source_or_disasm_and_command): Update for bool change.
5752 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5753 (tui_win_info) <has_locator>: New method.
5754 (struct tui_source_window_base) <has_locator>: New method.
5755 (tui_win_has_locator): Don't declare.
5756 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5757 from tui_win_has_locator.
5758 (tui_source_window_base): Use false, not FALSE.
5759
7778b912
TT
57602019-06-25 Tom Tromey <tom@tromey.com>
5761
5762 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5763 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5764 clear_detail method directly.
5765 (tui_clear_win_detail): Remove.
5766
f83d391c
TT
57672019-06-25 Tom Tromey <tom@tromey.com>
5768
5769 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5770 "this", not TUI_DISASM_WIN.
5771
13446e05
TT
57722019-06-25 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5775 declare.
5776 * tui/tui-winsource.c
5777 (tui_source_window_base::do_scroll_horizontal): Rename from
5778 tui_horizontal_source_scroll.
5779 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5780 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5781 from tui_vertical_data_scroll.
5782 * tui/tui-win.h (tui_scroll): Don't declare.
5783 * tui/tui-win.c (tui_win_info::forward_scroll)
5784 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5785 (tui_win_info::right_scroll): Rename and update.
5786 (tui_scroll_forward_command, tui_scroll_backward_command)
5787 (tui_scroll_left_command, tui_scroll_right_command): Update.
5788 (tui_scroll): Remove.
5789 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5790 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5791 from tui_vertical_source_scroll.
5792 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5793 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5794 from tui_vertical_disassem_scroll.
5795 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5796 do_scroll_horizontal>: New methods.
5797 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5798 Likewise.
5799 (struct tui_source_window_base): Add do_scroll_horizontal.
5800 (struct tui_source_window, struct tui_disasm_window): Add
5801 do_scroll_vertical.
5802 (struct tui_data_window, struct tui_cmd_window): Add
5803 do_scroll_horizontal and do_scroll_vertical.
5804 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5805
5cf82909
TT
58062019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-data.h (struct tui_source_window_base): New struct.
5809 (struct tui_source_window): Derive from tui_source_window_base.
5810 (struct tui_disasm_window): New struct.
5811 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5812 from tui_source_window::clear_detail.
5813 (tui_source_window_base): Rename from tui_source_window.
5814 (~tui_source_window_base): Rename from ~tui_source_window.
5815 (tui_alloc_win_info): Create a tui_disasm_window.
5816
ee1d42d6
TT
58172019-06-25 Tom Tromey <tom@tromey.com>
5818
5819 * tui/tui-data.h (struct tui_source_window)
5820 (struct tui_data_window): Declare destructors.
5821 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5822 destructors.
5823 (tui_win_info): Simplify.
5824
b4eb2452
TT
58252019-06-25 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-winsource.c (tui_display_main)
5828 (tui_update_source_windows_with_addr)
5829 (tui_update_all_breakpoint_info): Update.
5830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5831 (new_height_ok, parse_scrolling_args): Update.
5832 * tui/tui-stack.c (tui_show_frame_info): Update.
5833 * tui/tui-data.h (struct tui_list): Remove.
5834 (tui_source_windows): Return a reference to a std::vector.
5835 * tui/tui-data.c (source_windows): Now a std::vector.
5836 (tui_source_windows): Change return type.
5837 (tui_clear_source_windows): Rewrite.
5838 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5839 (tui_free_all_source_wins_content): Rewrite.
5840
8761a91b
TT
58412019-06-25 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5844 (struct tui_data_window, struct tui_cmd_window): Declare
5845 clear_detail method.
5846 * tui/tui-data.c (tui_source_window::clear_detail)
5847 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5848 methods.
5849 (tui_clear_win_detail): Simplify.
5850
0ed69eda
TT
58512019-06-25 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-layout.c (make_source_window, make_disasm_window)
5854 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5855 Return the new window.
5856 (show_source_disasm_command, show_data)
5857 (show_source_or_disasm_and_command): Update.
5858
82432e10
TT
58592019-06-25 Tom Tromey <tom@tromey.com>
5860
5861 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5862 parameter. Return the new window.
5863 (show_source_disasm_command): Update and remove NULL check.
5864 (show_source_or_disasm_and_command): Update.
5865
ec328aa5
TT
58662019-06-25 Tom Tromey <tom@tromey.com>
5867
5868 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5869
33b906ab
TT
58702019-06-25 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-data.h (struct tui_win_info): Make constructor
5873 protected. Make destructor virtual. Add initializers.
5874 (tui_source_window, tui_data_window, tui_cmd_window): New
5875 classes.
5876 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5877 constructor. Add "type" parameter.
5878 (tui_source_window, tui_data_window, tui_cmd_window): New
5879 constructors.
5880 (tui_alloc_win_info): Instantiate the appropriate subclass.
5881
e7e11af4
TT
58822019-06-25 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-win.c (tui_resize_all): Use delete.
5885 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5886 destructor.
5887 (tui_free_window): Don't declare.
5888 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5889 Update.
5890
6792b55e
TT
58912019-06-25 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-data.h (struct tui_win_info): Add constructor.
5894 * tui/tui-data.c (tui_alloc_win_info): Use new.
5895 (tui_free_window): Use delete.
5896
f95675e1
TT
58972019-06-22 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5900 declare.
5901 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5902
5bff081c
TT
59032019-06-22 Tom Tromey <tom@tromey.com>
5904
5905 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5906 declare.
5907 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5908
47e3f474
TV
59092019-06-22 Tom de Vries <tdevries@suse.de>
5910
5911 * dwarf2read.c (create_addrmap_from_aranges)
5912 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5913 instead of '%zu'.
5914
fd5866f6
SM
59152019-06-21 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * dwarf2read.h (dwarf2_section_info_def): Remove.
5918 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5919 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5920 std::vector<dwarf2_section_info>.
5921 (struct dwo_file) <~dwo_file>: Remove.
5922 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5923 types field.
5924 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5925 (dwarf2_read_debug_names): Likewise.
5926 (create_debug_types_hash_table): Change parameter type to
5927 array_view, adjust code accordingly.
5928 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5929 (partial_die_info::fixup): Likewise.
5930 (determine_prefix): Likewise.
5931 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5932
fb1eb2f9
SM
59332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5936 gdb_bfd_ref_ptr.
5937 <~dwo_file>: Remove call to gdb_bfd_unref.
5938 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5939 gdb_bfd_ref_ptr::get.
5940
51ac9db5
SM
59412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5944 type to htab_up.
5945 * dwarf2read.c (struct dwo_file): Initialize fields.
5946 <~dwo_file>: New.
5947 (free_dwo_file): Remove, move content to ~dwo_file.
5948 (struct dwo_file_deleter): Remove.
5949 (dwo_file_up>: Remove custom deleter.
5950 (free_dwo_files): Remove.
5951 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5952 dwo_files.
5953 (process_skeletonless_type_units): Call unique_ptr::get.
5954 (allocate_dwo_file_hash_table): Add deleter to created hash
5955 table. Change return type to htab_up.
5956 (lookup_dwo_file_slot): Don't memset dwo_file, call
5957 unique_ptr::get.
5958 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5959 (create_dwo_unit_in_dwp_v2): Likewise.
5960 (open_and_init_dwo_file): Likewise.
5961 (free_dwo_file_from_slot): Remove.
5962
dc4ccb6f
SM
59632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * dwarf2read.h (struct dwarf2_section_info) <readin,
5966 is_virtual>: Change type to bool.
5967 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5968 true instead of 1.
5969
e6a1c5cb
TT
59702019-06-19 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-data.h (tui_init_content_element): Don't declare.
5973
6f6ffbeb
TT
59742019-06-19 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-data.h (tui_init_win_info): Don't declare.
5977
f23f598e
TV
59782019-06-19 Tom de Vries <tdevries@suse.de>
5979
5980 * dwarf2read.h (abstract_to_concrete): Change type to
5981 std::unordered_map<sect_offset, std::vector<sect_offset>,
5982 gdb::hash_enum<sect_offset>>.
5983
680e1bee
TT
59842019-06-19 Tom Tromey <tromey@adacore.com>
5985
5986 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5987 EVAL_AVOID_SIDE_EFFECTS specially.
5988
dcf37923
TT
59892019-06-19 Tom Tromey <tromey@adacore.com>
5990
5991 * source-cache.c (highlighter): New global.
5992 (source_cache::get_source_lines): Create a highlighter on demand.
5993
494986d5
AB
59942019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * defs.h (deprecated_interactive_hook): Delete declaration.
5997 * interps.c (clear_interpreter_hooks): Remove use of
5998 deprecated_interactive_hook.
5999 * top.c (deprecated_interactive_hook): Delete definition.
6000 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6001
3360b6e7
TV
60022019-06-18 Tom de Vries <tdevries@suse.de>
6003
6004 PR gdb/24515
6005 * dwarf2read.h (abstract_to_concrete): Change type from
6006 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6007 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6008 * dwarf2read.c (read_variable): Update.
6009 (dwarf2_fetch_die_loc_sect_off): Update.
6010
310b3441
TV
60112019-06-17 Tom de Vries <tdevries@suse.de>
6012
6013 PR gdb/24617
6014 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6015 accessing parent[parent_len - 1].
6016
ba9777be
PP
60172019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6018
6019 PR gdb/24364
6020 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6021 call dtrace_process_dof with NULL dof.
6022
2b9f6e89
TV
60232019-06-16 Tom de Vries <tdevries@suse.de>
6024
6025 PR gdb/24445
6026 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6027
431b3ead
TT
60282019-06-16 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6031 (make_all_visible): Use address of member.
6032
d04b44a1
TT
60332019-06-16 Tom Tromey <tom@tromey.com>
6034
6035 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6036 (tui_free_window, free_content, free_content_elements): Remove
6037 unnecessary cast.
6038 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6039 cast.
6040 * tui/tui-regs.c (tui_show_register_group)
6041 (tui_display_registers_from, tui_display_reg_element_at_line):
6042 Remove unnecessary cast.
6043
bf5142e7
AB
60442019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 * linux-nat.c (normal_mask): Delete.
6047 (_initialize_linux_nat): Don't initialise normal_mask.
6048
c4973306
SM
60492019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6050
6051 PR gdb/24445
6052 * dwarf-index-write.h (write_psymtabs_to_index): Add
6053 dwz_basename parameter.
6054 * dwarf-index-write.c (write_gdbindex): Move file writing to
6055 write_gdbindex_1. Change return type void.
6056 (assert_file_size): Move up, remove filename parameter.
6057 (write_gdbindex_1): New function.
6058 (write_debug_names): Change return type to void, call
6059 assert_file_size.
6060 (struct index_wip_file): New struct.
6061 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6062 file logic to index_wip_file. Write index for dwz file if
6063 needed.
6064 (save_gdb_index_command): Pass basename of dwz file, if present.
6065 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6066 build-id of dwz file, if present.
6067 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6068 (dwarf2_get_dwz_file): Likewise.
6069 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6070 (dwarf2_get_dwz_file): Likewise.
6071
395f9c91
TT
60722019-06-16 Tom Tromey <tom@tromey.com>
6073
6074 * coffread.c (process_coff_symbol): Use xstrdup.
6075 * value.c (create_internalvar): Use xstrdup.
6076
cafb3438
TT
60772019-06-16 Tom Tromey <tom@tromey.com>
6078
6079 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6080 * breakpoint.c (stopin_command, stopat_command)
6081 (until_break_command, decode_location_default): Remove unnecessary
6082 cast.
6083 * utils.c (subset_compare): Remove unnecessary cast.
6084 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6085 cast.
6086 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6087 cast.
6088 * infcmd.c (path_command): Remove unnecessary cast.
6089 * coffread.c (decode_type): Remove unnecessary cast.
6090 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6091 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6092 * tui/tui-stack.c (tui_show_locator_content)
6093 (tui_show_frame_info): Remove unnecessary cast.
6094 * tui/tui-win.c (tui_scroll_forward_command)
6095 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6096 (parse_scrolling_args): Remove unnecessary cast.
6097 * tui/tui-data.c (init_win_info, tui_del_window)
6098 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6099 (free_content_elements): Remove unnecessary cast.
6100 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6101 unnecessary cast.
6102 * tui/tui-source.c (tui_set_source_content)
6103 (tui_vertical_source_scroll): Remove unnecessary cast.
6104 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6105 cast.
6106 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6107 * tui/tui-regs.c (tui_display_registers_from)
6108 (tui_display_register): Remove unnecessary cast.
6109 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6110 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6111 (make_visible): Remove unnecessary cast.
6112 * tui/tui-winsource.c (tui_erase_source_content)
6113 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6114 unnecessary cast.
6115 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6116 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6117 * stabsread.c (read_type, read_array_type, read_range_type):
6118 Remove unnecessary cast.
6119 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6120 (parse_symbol, parse_type, upgrade_type, parse_external)
6121 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6122 unnecessary cast.
6123 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6124
730ead81
TT
61252019-06-16 Tom Tromey <tom@tromey.com>
6126
6127 * tui/tui-data.c (tui_alloc_generic_win_info)
6128 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6129 checks.
6130
584a927c
AB
61312019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6132 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * f-typeprint.c (f_print_type): Don't return early for not
6135 associated or not allocated types.
6136 (f_type_print_varspec_suffix): Add print_rank parameter and print
6137 ranks of array types in case they dangling.
6138 (f_type_print_base): Add print_rank parameter.
6139
30056ea0
AB
61402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6141
6142 * NEWS: Mention new MI commands.
6143 * break-catch-throw.c (enum exception_event_kind): Move to
6144 breakpoint.h.
6145 (print_mention_exception_catchpoint): Output text as a single
6146 message.
6147 (catch_exception_command_1): Rename to...
6148 (catch_exception_event): ...this, make non-static, update header
6149 command, and change some parameter types.
6150 (catch_catch_command): Update for changes to
6151 catch_exception_command_1.
6152 (catch_throw_command): Likewise.
6153 (catch_rethrow_command): Likewise.
6154 * breakpoint.c (enum exception_event_kind): Delete.
6155 * breakpoint.h (enum exception_event_kind): Moved here from
6156 break-catch-throw.c.
6157 (catch_exception_event): Declare.
6158 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6159 (mi_cmd_catch_throw): New function.
6160 (mi_cmd_catch_rethrow): New function.
6161 (mi_cmd_catch_catch): New function.
6162 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6163 'catch-catch' entries.
6164 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6165 (mi_cmd_catch_rethrow): Declare.
6166 (mi_cmd_catch_catch): Declare.
6167
ec8e2b6d
AB
61682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6169
6170 * annotate.c (annotate_source_line): Change return type to void,
6171 update implementation to match.
6172 * annotate.h (annotate_source_line): Change return type to void,
6173 update header comment.
6174 * stack.c (print_frame_info): Don't change what frame information
6175 is printed based on whether annotations are on or not.
6176
0d3abd8c
AB
61772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6180 (annotate_source): Make static.
6181 (annotate_source_line): Moved from source.c and renamed from
6182 identify_source_line. Update the return type.
6183 * annotate.h (annotate_source): Delete declaration.
6184 (annotate_source_line): Declaration moved from source.h, and
6185 renamed from identify_source_line. Return type updated.
6186 * source.c (identify_source_line): Moved to annotate.c and renamed
6187 to annotate_source_line.
6188 (info_line_command): Remove check of annotation_level.
6189 * source.h (identify_source_line): Move declaration to annotate.h
6190 and rename to annotate_source_line.
6191 * stack.c: Add 'annotate.h' include.
6192 (print_frame_info): Remove check of annotation_level before
6193 calling annotate_source_line.
6194
00df30ae
AB
61952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * source-cache.c (source_cache::get_plain_source_lines): Use
6198 open_source_file_with_line_charpos instead of just
6199 open_source_file, remove call to find_source_lines.
6200 (source_cache::get_source_lines): Likewise.
6201 * source.c (find_source_lines): Make static.
6202 (get_filename_and_charpos): Renamed into...
6203 (open_source_file_with_line_charpos): ..this along with changes to
6204 return a scoped_fd, and some other minor clean ups.
6205 (identify_source_line): Use open_source_file_with_line_charpos.
6206 (search_command_helper): Use open_source_file_with_line_charpos
6207 instead of just open_source_file, remove call to
6208 find_source_lines.
6209 * source.h (open_source_file_with_line_charpos): Declare new
6210 function.
6211 (find_source_lines): Delete declaration.
6212
afda45a2
AB
62132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * source.c (get_filename_and_charpos): Remove fullname
6216 parameter.
6217 (identify_source_line): Update call to get_filename_and_charpos.
6218
0735b091
TT
62192019-06-14 Tom Tromey <tromey@adacore.com>
6220
6221 PR gdb/24502:
6222 * ui-style.h (skip_ansi_escape): Update comment.
6223 * ui-file.h (class no_terminal_escape_file): New class.
6224 * ui-file.c (no_terminal_escape_file::write)
6225 (no_terminal_escape_file::puts): New methods.
6226 * cli/cli-logging.c (handle_redirections): Use
6227 no_terminal_escape_file.
6228
52ce35e2
TT
62292019-06-14 Tom Tromey <tromey@adacore.com>
6230
6231 * NEWS: Move convenience variable news above Python news.
6232
73cc7272
TT
62332019-06-14 Tom Tromey <tom@tromey.com>
6234
6235 * gnulib: Move directory to top-level.
6236 * configure.ac: Don't configure gnulib.
6237 * configure: Rebuild.
6238 * common/common-defs.h: Use new path to gnulib.
6239 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6240 (GNULIB_H): Remove.
6241 (INCGNU): Look in new gnulib location.
6242 (HFILES_NO_SRCDIR): Remove gnulib files.
6243 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6244 (generated_files): Remove GNULIB_H.
6245 ($(LIBGNU), all-lib): Remove targets.
6246 (distclean): Don't mention GNULIB_BUILDDIR.
6247 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6248
f5686554
TT
62492019-06-14 Tom Tromey <tromey@adacore.com>
6250
6251 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6252 Warn if symbol file does not provide any symbols.
6253
a0c1ffed
TT
62542019-06-14 Tom Tromey <tromey@adacore.com>
6255
6256 * source.c (find_and_open_source): Respect basenames_may_differ.
6257
7c39e397
AB
62582019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * annotate.c (annotate_breakpoints_invalid): Make use of
6261 scoped_restore_terminal_state.
6262 (annotate_frames_invalid): Likewise.
6263
f411722c
TT
62642019-06-14 Tom Tromey <tromey@adacore.com>
6265
6266 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6267 allow assignment to an internalvar.
6268
4268ec18
TT
62692019-06-14 Tom Tromey <tromey@adacore.com>
6270
6271 * ada-lex.l: Allow "_" in attribute names.
6272
abdb711e
TT
62732019-06-14 Tom Tromey <tromey@adacore.com>
6274
6275 PR gdb/24653:
6276 * regcache.c (registers_changed): Don't call alloca.
6277 * top.c (execute_command): Don't call alloca.
6278
4c048731
PA
62792019-06-13 Pedro Alves <palves@redhat.com>
6280
6281 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6282 'expression'. When parsing an expression, error out if there's
6283 junk after "unlimited".
6284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6285 (do_set_command): Adjust calls to is_unlimited_literal.
6286
66eb1ed3
PA
62872019-06-13 Pedro Alves <palves@redhat.com>
6288
6289 * compile/compile.c (make_compile_options_def_group): Add braces
6290 around array_view initializer.
6291 * thread.c (make_thread_apply_all_options_def_group)
6292 (make_thread_apply_all_options_def_group): Likewise.
6293
3345721a
PA
62942019-06-13 Pedro Alves <palves@redhat.com>
6295
6296 * NEWS (New commands): Mention "maint test-options
6297 require-delimiter", "maint test-options unknown-is-error", "maint
6298 test-options unknown-is-operand" and "maint show
6299 test-options-completion-result".
6300 (New command options, command completion): New section.
6301 (Completion improvements): New section.
6302 Mention that you can abbreviate "unlimited".
6303
6206060d
PA
63042019-06-13 Pedro Alves <palves@redhat.com>
6305
6306 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6307 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6308 * unittests/cli-utils-selftests.c (test_parse_flags)
6309 (test_parse_flags_qcs): Delete.
6310 (test_cli_utils): Don't call deleted functions.
6311
6665660a
PA
63122019-06-13 Pedro Alves <palves@redhat.com>
6313
6314 * thread.c: Include "cli/cli-option.h".
6315 (tp_array_compar_ascending): Global.
6316 (tp_array_compar): Delete function.
6317 (tp_array_compar_ascending, tp_array_compar_descending): New
6318 functions.
6319 (ascending_option_def, qcs_flag_option_def)
6320 (thr_qcs_flags_option_defs)
6321 (make_thread_apply_all_options_def_group)
6322 (make_thread_apply_options_def_group): New.
6323 (thread_apply_all_command): Use gdb::option::process_options.
6324 (thread_apply_command_completer)
6325 (thread_apply_all_command_completer): New.
6326 (thread_apply_command): Use gdb::option::process_options.
6327 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6328 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6329 to generate help text of "thread apply". Adjust "taas"'s help.
6330 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6331 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6332
f7e13587
PA
63332019-06-13 Pedro Alves <palves@redhat.com>
6334
6335 * thread.c (thread_apply_command): Check for invalid TID with
6336 isdigit instead of !isalpha.
6337
5d707134
PA
63382019-06-13 Pedro Alves <palves@redhat.com>
6339
6340 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6341 (validate_flags_qcs): New.
6342 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6343 (validate_flags_qcs): Declare.
6344 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6345 (make_frame_apply_options_def_group): New.
6346 (frame_apply_command_count): Process options with
6347 gdb::option::process_options.
6348 (frame_apply_completer): New.
6349 (frame_apply_level_completer, frame_apply_all_completer)
6350 (frame_apply_completer): New.
6351 (_initialize_stack): Update help of "frame apply", "frame apply
6352 level", "frame apply all" and "faas" to mention supported options
6353 and install command completers.
6354 * stack.h (frame_apply_all_completer): Declare.
6355 * thread.c: Include "stack.h".
6356 (tfaas_command): Add "--".
6357 (_initialize_thread): Update help "tfaas" to mention supported
6358 options and install command completer.
6359
272d4594
PA
63602019-06-13 Pedro Alves <palves@redhat.com>
6361
6362 * completer.c (complete_nested_command_line): New.
6363 (gdb_completion_word_break_characters_throw): Add assertion.
6364 * completer.h (complete_nested_command_line): Declare.
6365
90a1ef87
PA
63662019-06-13 Pedro Alves <palves@redhat.com>
6367
6368 * stack.c (parse_backtrace_qualifiers): New.
6369 (backtrace_command): Use it.
6370 (backtrace_command_completer): Complete on qualifiers.
6371
d4c16835
PA
63722019-06-13 Pedro Alves <palves@redhat.com>
6373
6374 * frame.c: Include "cli/cli-option.h.
6375 (user_set_backtrace_options): New.
6376 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6377 Delete.
6378 (get_prev_frame): Adjust.
6379 (boolean_option_def, uinteger_option_def)
6380 (set_backtrace_option_defs): New.
6381 (_initialize_frame): Adjust and use
6382 gdb::option::add_setshow_cmds_for_options to install "set
6383 backtrace past-main" and "set backtrace past-entry".
6384 * frame.h: Include "cli/cli-option.h".
6385 (struct frame_print_options): Forward declare.
6386 (print_frame_arguments_all, print_frame_arguments_scalars)
6387 (print_frame_arguments_none): Declare.
6388 (print_entry_values): Delete declaration.
6389 (struct frame_print_options, user_frame_print_options): New.
6390 (struct set_backtrace_options): New.
6391 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6393 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6394 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6395 (list_args_or_locals): Add frame_print_options parameter.
6396 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6397 * python/py-framefilter.c (enumerate_args): Pass down
6398 USER_FRAME_PRINT_OPTIONS.
6399 * stack.c: Include "cli/cli-option.h".
6400 (print_frame_arguments_all, print_frame_arguments_scalars)
6401 (print_frame_arguments_none): Declare.
6402 (print_raw_frame_arguments, print_entry_values): Delete.
6403 (user_frame_print_options): New.
6404 (boolean_option_def, enum_option_def, frame_print_option_defs):
6405 New.
6406 (struct backtrace_cmd_options): New.
6407 (bt_flag_option_def): New.
6408 (backtrace_command_option_defs): New.
6409 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6410 (print_frame_arg, read_frame_arg, print_frame_args)
6411 (print_frame_info, print_frame): Add frame_print_options parameter
6412 and use it.
6413 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6414 (backtrace_command_1): Add frame_print_options and
6415 backtrace_cmd_options parameters and use them.
6416 (make_backtrace_options_def_group): New.
6417 (backtrace_command): Process command options with
6418 gdb::option::process_options.
6419 (backtrace_command_completer): New.
6420 (_initialize_stack): Extend "backtrace"'s help to mention
6421 supported options. Install completer for "backtrace".
6422 Install some settings commands with add_setshow_cmds_for_options.
6423
2daf894e
PA
64242019-06-13 Pedro Alves <palves@redhat.com>
6425
6426 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6427 and that "set/show print raw frame-arguments" are now deprecated.
6428
6429 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6430 command.
6431 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6432 * stack.c (_initialize_stack): Install "set/show print
6433 raw-frame-arguments", and deprecate "set/show print raw
6434 frame-arguments".
6435 * valprint.c (_initialize_valprint): Deprecate "set/show print
6436 raw".
6437
e6ed716c
PA
64382019-06-13 Pedro Alves <palves@redhat.com>
6439
6440 * compile/compile.c (struct compile_options): New.
6441 (compile_flag_option_def, compile_command_option_defs)
6442 (make_compile_options_def_group): New.
6443 (compile_file_command): Handle options with
6444 gdb::option::process_options.
6445 (compile_file_command_completer): New function.
6446 (compile_code_command): Handle options with
6447 gdb::option::process_options.
6448 (compile_code_command_completer): New function.
6449 (_initialize_compiler): Install completers for "compile code" and
6450 "compile file". Mention available options in "compile code" and
6451 "compile code"'s help.
6452 * completer.c (advance_to_completion_word): New, factored out from
6453 ...
6454 (advance_to_expression_complete_word_point): ... this.
6455 (advance_to_filename_complete_word_point): New.
6456 * completer.h (advance_to_filename_complete_word_point): New
6457 declaration.
6458
7d8062de
PA
64592019-06-13 Pedro Alves <palves@redhat.com>
6460
6461 * compile/compile.c: Include "cli/cli-option.h".
6462 (compile_print_value): Scope data pointer is now a
6463 value_print_options pointer; adjust.
6464 (compile_print_command): Process options. Scope data pointer is
6465 now a value_print_options pointer; adjust.
6466 (_initialize_compile): Update "compile print"'s help to include
6467 supported options. Install a completer for "compile print".
6468 * cp-valprint.c (show_vtblprint, show_objectprint)
6469 (show_static_field_print): Delete.
6470 (_initialize_cp_valprint): Don't install "set print
6471 static-members", "set print vtbl", "set print object" here.
6472 * printcmd.c: Include "cli/cli-option.h" and
6473 "common/gdb_optional.h".
6474 (print_command_parse_format): Rework to fill in a
6475 value_print_options instead of a format_data.
6476 (print_value): Change parameter type from format_data pointer to
6477 value_print_options reference. Adjust.
6478 (print_command_1): Process options. Adjust to pass down a
6479 value_print_options.
6480 (print_command_completer): New.
6481 (_initialize_printcmd): Install print_command_completer as
6482 handle_brkchars completer for the "print" command. Update
6483 "print"'s help to include supported options.
6484 * valprint.c: Include "cli/cli-option.h".
6485 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6486 here from cp-valprint.c.
6487 (boolean_option_def, uinteger_option_def)
6488 (value_print_option_defs, make_value_print_options_def_group):
6489 New. Use gdb::option::add_setshow_cmds_for_options to install
6490 "set print elements", "set print null-stop", "set print repeats",
6491 "set print pretty", "set print union", "set print array", "set
6492 print address", "set print symbol", "set print array-indexes".
6493 * valprint.h: Include <string> and "cli/cli-option.h".
6494 (make_value_print_options_def_group): Declare.
6495 (print_value): Change parameter type from format_data pointer to
6496 value_print_options reference.
6497 (print_command_completer): Declare.
6498
9d0faba9
PA
64992019-06-13 Pedro Alves <palves@redhat.com>
6500
6501 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6502 (COMMON_SFILES): Add maint-test-settings.c.
6503 * cli/cli-decode.c (boolean_enums): New global, factored out from
6504 ...
6505 (add_setshow_boolean_cmd): ... here.
6506 * cli/cli-decode.h (boolean_enums): Declare.
6507 * cli/cli-option.c: New file.
6508 * cli/cli-option.h: New file.
6509 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6510 factored out from ...
6511 (parse_cli_boolean_value(const char *)): ... this.
6512 (is_unlimited_literal): Change parameter type to pointer to
6513 pointer. Adjust and advance ARG pointer.
6514 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6515 (parse_cli_var_enum): New, factored out from ...
6516 (do_set_command): ... this. Adjust.
6517 * cli/cli-setshow.h (parse_cli_boolean_value)
6518 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6519 (parse_cli_var_enum): Declare.
6520 * cli/cli-utils.c: Include "cli/cli-option.h".
6521 (get_ulongest): New.
6522 * cli/cli-utils.h (get_ulongest): Declare.
6523 (check_for_argument): New overloads.
6524 * maint-test-options.c: New file.
6525
2c722807
PA
65262019-06-13 Pedro Alves <palves@redhat.com>
6527
6528 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6529 parse a range if "-" is at the end of the string.
6530
dee7b4c8
PA
65312019-06-13 Pedro Alves <palves@redhat.com>
6532
6533 * cli/cli-setshow.c (parse_auto_binary_operation)
6534 (parse_cli_boolean_value): Don't allow "o".
6535
dca0f6c0
PA
65362019-06-13 Pedro Alves <palves@redhat.com>
6537
6538 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6539 * NEWS: Mention maint test-settings KIND.
6540 * maint-test-settings.c: New file.
6541
597bf39d
PA
65422019-06-13 Pedro Alves <palves@redhat.com>
6543
6544 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6545 completer.
6546 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6547 "set" completers.
6548
48c410fb
PA
65492019-06-13 Pedro Alves <palves@redhat.com>
6550
6551 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6552 after item.
6553
93bcb043
PA
65542019-06-13 Pedro Alves <palves@redhat.com>
6555
6556 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6557
cbba3ecd
PA
65582019-06-13 Pedro Alves <palves@redhat.com>
6559
6560 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6561 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6562 call.
6563 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6564 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6565 calls.
6566 (check_for_argument): Skip spaces after argument.
6567
b9a3f842
PA
65682019-06-13 Pedro Alves <palves@redhat.com>
6569
6570 * thread.c (thread_apply_command): Adjust TID parsing.
6571 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6572 detected before end of string.
6573 (tid_is_in_list): Error out if LIST is invalid.
6574
3844e605
PA
65752019-06-13 Pedro Alves <palves@redhat.com>
6576
6577 * completer.c (complete_line_internal_1): Rewind completion word
6578 point.
6579 (completion_tracker::advance_custom_word_point_by): Change
6580 parameter type to int.
6581 * completer.h (completion_tracker::advance_custom_word_point_by):
6582 Likewise.
6583
00b56dbe
PA
65842019-06-13 Pedro Alves <palves@redhat.com>
6585
6586 * completer.c (advance_to_completion_word): Handle delimiters.
6587
d106773e
PA
65882019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6589
6590 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6591
08f10e02
TT
65922019-06-11 Tom Tromey <tom@tromey.com>
6593
6594 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6595 (xmalloc_failed): Move to alloc.c.
6596 * alloc.c: New file.
6597 * Makefile.in (COMMON_SFILES): Add alloc.c.
6598
1c7fe951
TT
65992019-06-11 Tom Tromey <tom@tromey.com>
6600
6601 * nat/linux-waitpid.c: Don't include server.h.
6602 (linux_debug): Remove.
6603 (my_waitpid): Update.
6604
89549d7f
TT
66052019-06-11 Tom Tromey <tromey@adacore.com>
6606
6607 * infcall.c (_initialize_infcall): Remove trailing newline from
6608 help.
6609 * user-regs.c (_initialize_user_regs): Remove trailing newline
6610 from help.
6611 * typeprint.c (_initialize_typeprint): Remove trailing newline
6612 from help.
6613 * reverse.c (_initialize_reverse): Remove trailing newlines from
6614 help.
6615 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6616 from help.
6617 * language.c (add_set_language_command): Remove trailing newline
6618 from help.
6619 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6620 help.
6621 * disasm.c (_initialize_disasm): Remove trailing newline from
6622 help.
6623 * top.c (init_main): Remove trailing newline from help.
6624 * interps.c (_initialize_interpreter): Remove trailing newline
6625 from help.
6626 * btrace.c (_initialize_btrace): Remove trailing newlines from
6627 help.
6628 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6629 from help.
6630 * python/python.c (_initialize_python): Remove trailing newline
6631 from help.
6632 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6633 help.
6634 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6635 from help. Reformat some text.
6636 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6637 from help.
6638 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6639 newline from help.
6640
86108c13
TT
66412019-06-11 Tom Tromey <tromey@adacore.com>
6642
6643 * darwin-nat.c (darwin_decode_exception_message)
6644 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6645
a7067863
AB
66462019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * valops.c (value_slice): Check for not allocated or not
6649 associated values.
6650
9ab08412
TV
66512019-06-10 Tom de Vries <tdevries@suse.de>
6652
6653 PR gdb/24618
6654 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6655 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6656 invalid.
6657
f19e22e9
TV
66582019-06-10 Tom de Vries <tdevries@suse.de>
6659
6660 PR gdb/24611
6661 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6662 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6663
e99f9db0
TV
66642019-06-10 Tom de Vries <tdevries@suse.de>
6665
6666 PR symtab/24545
6667 * symtab.c (struct demangled_name_entry): Add language field.
6668 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6669 static minimal symbol". Set and use language field.
6670
9bf7038b
TT
66712019-06-10 Tom Tromey <tromey@adacore.com>
6672
6673 * ada-lang.c (_initialize_ada_language): Update help text.
6674
422186a9
TT
66752019-06-10 Tom Tromey <tromey@adacore.com>
6676
6677 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6678 with a newline.
6679 * guile/guile.c (handle_boot_error): Don't end warning with a
6680 newline.
6681 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6682 warning with a newline.
6683 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6684 newline.
6685 (s12z_frame_cache): Likewise.
6686 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6687 a newline.
6688 * solib-svr4.c (disable_probes_interface): Don't end warning with
6689 a newline.
6690 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6691 newline.
6692 * python/python.c (do_finish_initialization): Don't end warning
6693 with a newline.
6694
25ce02ee
TT
66952019-06-10 Tom Tromey <tom@tromey.com>
6696
6697 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6698 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6699 gdbpy_enter.
6700
caa429d8
TT
67012019-06-10 Tom Tromey <tromey@adacore.com>
6702
6703 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6704 data.
6705 (elf_new_init): Don't call stabsread_new_init.
6706 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6707 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6708 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6709
81873cc8
TV
67102019-06-10 Tom de Vries <tdevries@suse.de>
6711
6712 PR symtab/16264
6713 PR symtab/24517
6714 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6715
4fa0265e
РИ
67162019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6717
6718 * source.c (find_and_open_source): Also rewrite relative file
6719 names.
6720
1a3da2cd
AB
67212019-04-26 Amos Bird <amosbird@gmail.com>
6722
6723 * annotate.c (annotate_thread_exited): Add "thread-exited"
6724 annotation.
6725
3847a7bf
TT
67262019-06-06 Tom Tromey <tromey@adacore.com>
6727
6728 * maint.h (class scoped_command_stats): Use
6729 DISABLE_COPY_AND_ASSIGN.
6730 <print_time>: New method.
6731 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6732 print_time.
6733 (scoped_command_stats::print_time): New method.
6734
312617a3
AB
67352019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6738 instructions of lengths 6 or 8 bytes.
6739
b02f78f9
PA
67402019-06-04 Pedro Alves <palves@redhat.com>
6741
6742 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6743
6744 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6745 * breakpoint.c (condition_completer): Likewise.
6746 * cli/cli-dump.c (scan_expression): Likewise.
6747 * common/filestuff.c (mkdir_recursive): Likewise.
6748 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6749 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6750 (gdb_abspath): Likewise.
6751 * compile/compile-cplus-types.c
6752 (compile_cplus_instance::decl_name): Likewise.
6753 * completer.c (complete_explicit_location):
6754 (signal_completer, reg_or_group_completer_1): Likewise.
6755 * cp-support.c (cp_remove_params_if_any): Likewise.
6756 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6757 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6758 * infcmd.c (strip_bg_char): Likewise.
6759 * linespec.c (copy_token_string): Likewise.
6760 * mi/mi-main.c (output_cores): Likewise.
6761 * psymtab.c (psymtab_search_name):
6762 * symfile.c (test_set_ext_lang_command): Likewise.
6763 * target.c (target_fileio_read_stralloc): Likewise.
6764 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6765 * value.c (complete_internalvar): Likewise.
6766
e1f2e1a2
CB
67672019-06-04 Christian Biesinger <cbiesinger@google.com>
6768
6769 Add objfile property to gdb.Type.
d3238f7d
PA
6770 * NEWS: Mention Python API addition.
6771 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6772
e664d728
PW
67732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6774
6775 * NEWS: Mention the new set|show style [title|highlight].
6776 Mention changes to "show style", "help" and "apropos".
6777
66d8c862
PW
67782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6779
6780 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6781 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6782 instead of print_help_for_command.
6783 (print_doc_of_command): New function.
6784 (help_list): Add 'apropos -v word' suggestion.
6785 (print_help_for_command): Style the command name using title style.
6786 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6787 (_initialize_cli_cmds): Describe -v in apropos_command help.
6788
9303eb2f
PW
67892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6790
6791 * cli/cli-style.h (cli_style_option): Add name in constructor,
6792 add m_name class member, add constructor with intensity,
6793 add name class function.
6794 (cli_style_option::add_setshow_commands): Remove name argument.
6795 (highlight_style, title_style): New styles.
6796 * cli/cli-style.c (do_show): New function that shows a style
6797 characteristic styling the style name with itself.
6798 (set_style_name): New function.
6799 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6800 Update all callers according to the changes in cli/cli-style.h.
6801 * utils.h (fputs_highlighted): New function.
6802 * utils.c (fputs_highlighted): Likewise.
6803
e2c52041
PW
68042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6805
6806 * NEWS: Mention new pipe command and new convenience variables.
6807
947d3946
PW
68082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6809
6810 * cli/cli-cmds.c (pipe_command): New function.
6811 (_initialize_cli_cmds): Call add_com for pipe_command.
6812 Define | as an alias for pipe.
6813 (exit_status_set_internal_vars): New function.
6814 (shell_escape): Call exit_status_set_internal_vars.
6815 cli/cli-decode.c (find_command_name_length): Recognize | as
6816 a single character command.
6817
b8fd0918
PW
68182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6819
6820 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6821 top.c (execute_command_to_ui_file): New function, mostly a copy
6822 of execute_command_to_string.
6823 (execute_command_to_string): Implement by calling
6824 execute_command_to_ui_file.
6825
68bb5386
PW
68262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6827
6828 * top.h (saved_command_line): Remove declaration.
6829 * top.c (previous_saved_command_line, previous_repeat_arguments):
6830 New variables.
6831 (saved_command_line): Make static, define together with other
6832 'repeat variables'.
6833 (dont_repeat): Clear repeat_arguments.
6834 (repeat_previous, get_saved_command_line, save_command_line):
6835 New functions.
6836 (gdb_init): Initialize saved_command_line
6837 and previous_saved_command_line.
6838 * main.c (captured_main_1): Remove saved_command_line initialization.
6839 * event-top.c (handle_line_of_input): Update to use
6840 the new 'repeat' related functions instead of direct access to
6841 saved_command_line.
6842 * command.h (repeat_previous, get_saved_command_line,
6843 save_command_line): New declarations.
6844 (dont_repeat): Add comment.
6845
bfcdb852
TT
68462019-05-30 Tom Tromey <tromey@adacore.com>
6847
6848 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6849 Fix comment.
6850 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6851
0ef209f2
JV
68522019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6853
6854 PR cli/24587
6855 * completer.c (complete): Initialize variable word.
6856
955b06fa
SDJ
68572019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6858
6859 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6860 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6861 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6862 'body' is NULL to the outter 'if', protecting the '!is_define'
6863 situation as well.
6864
fa9c3fa0
TT
68652019-05-29 Tom Tromey <tromey@adacore.com>
6866
6867 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6868 (dwarf_unknown): New function.
6869 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6870 (dwarf_type_encoding_name): Use dwarf_unknown.
6871
4330d61d
TT
68722019-05-29 Tom Tromey <tromey@adacore.com>
6873
6874 PR c++/20020:
6875 * cp-valprint.c (cp_print_value_fields): Call
6876 cp_print_static_field inside "try".
6877
33a6bc35
TT
68782019-05-29 Tom Tromey <tromey@adacore.com>
6879
6880 * inflow.c (struct terminal_info): Add default operator=.
6881 * configure: Rebuild.
6882 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6883 -Wdeprecated-copy-dtor, -Wredundant-move.
6884
000439d5
TT
68852019-05-29 Tom Tromey <tromey@adacore.com>
6886
6887 * NEWS: Add entry.
6888 * infcmd.c (print_return_value_1): Handle finish_print
6889 option.
6890 (show_print_finish): New function.
6891 (_initialize_infcmd): Add "set/show print finish" commands.
6892 * valprint.c (user_print_options): Initialize new member.
6893 * valprint.h (struct value_print_options) <finish_print>: New
6894 member.
6895
c0e70c62
TT
68962019-05-28 Tom Tromey <tromey@adacore.com>
6897
6898 * ada-lang.c (ada_remove_Xbn_suffix)
6899 (find_old_style_renaming_symbol)
6900 (parse_old_style_renaming): Remove.
6901 (ada_find_renaming_symbol): Don't call
6902 find_old_style_renaming_symbol.
6903 (ada_is_renaming_symbol): Rename from
6904 ada_find_renaming_symbol. Remove "block" parameter. Return
6905 bool. Now static.
6906 (ada_read_var_value): Update and simplify.
6907 * ada-exp.y (write_var_or_type): Remove old code.
6908
766f8836
AH
69092019-05-28 Alan Hayward <alan.hayward@arm.com>
6910
68255adc 6911 PR gdb/25010
766f8836
AH
6912 * event-top.c: Remove include comment.
6913 * inflow.c (class scoped_ignore_sigttou): Move from here...
6914 * inflow.h (class scoped_ignore_sigttou): ...to here.
6915 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6916 * top.c: Remove include comment.
6917
eb41253a
TT
69182019-05-27 Tom Tromey <tom@tromey.com>
6919
6920 * NEWS: Fix typo.
6921
4ca51187
TT
69222019-05-22 Tom Tromey <tromey@adacore.com>
6923
6924 * target.c (target_follow_exec): Constify parameter.
6925 * target-delegates.c: Rebuild.
6926 * remote.c (remote_target::follow_exec): Constify parameter.
6927 * infrun.c (follow_exec): Constify parameter.
6928 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6929 (target_follow_exec): Likewise.
6930
8fca4da0
AH
69312019-05-22 Alan Hayward <alan.hayward@arm.com>
6932
6933 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6934 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6935
b7060614
AH
69362019-05-22 Alan Hayward <alan.hayward@arm.com>
6937
6938 * NEWS: Add debugredirect and testsuite sections.
6939
0a5954bd
SC
69402019-05-22 Simon Cook <simon.cook@embecosm.com>
6941
6942 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6943 target descriptions using exclusively floating point register name
6944 aliases.
6945
dc42e902
AB
69462019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 PR gdb/18644:
6949 * f-lang.c (build_fortran_types): Handle the case where
6950 gdbarch_floatformat_for_type returns a nullptr.
6951
fb7806c7
TV
69522019-05-21 Tom de Vries <tdevries@suse.de>
6953
6954 PR cli/24587
6955 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6956
34d11c68
AB
69572019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6958
6959 PR gdb/18644:
6960 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6961 16-byte floats.
6962 * i386-tdep.c (i386_floatformat_for_type): Use
6963 floatformats_ia64_quad for the 16-byte floating point component
6964 within a fortran 32-byte complex number.
6965
122cf0f2
AB
69662019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6969 delete default constructor.
6970 (find_partial_die): Update to return const struct.
6971 (partial_die_parent_scope): Move variable declaration into scope
6972 of its use and change its type to auto.
6973 (guess_partial_die_structure_name): Likewise.
6974 (partial_die_info::fixup): Likewise.
6975
33d0e35a
TT
69762019-05-17 Tom Tromey <tromey@adacore.com>
6977
6978 * source.c (find_and_open_source): Remove cast.
6979
a45575b0
TT
69802019-05-17 Tom Tromey <tromey@adacore.com>
6981
6982 * annotate.c (annotate_source): Make "filename" const.
6983 * annotate.h (annotate_source): Use const.
6984
81f47ac2
AH
69852019-05-17 Alan Hayward <alan.hayward@arm.com>
6986
6987 * disasm.c (set_disassembler_options): Send errors to stderr.
6988
ca1285d1
AH
69892019-05-17 Alan Hayward <alan.hayward@arm.com>
6990
6991 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6992 (cli_interp_base::set_logging): Check debug_redirect.
6993 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6994 * cli/cli-logging.c (debug_redirect): Add static variable.
6995 (pop_output_files): Add default param.
6996 (handle_redirections): Print debug setting.
6997 (show_logging_command): Likewise.
6998 (_initialize_cli_logging): Add debugredirect command.
6999 * interps.c (current_interp_set_logging): Add debug_redirect
7000 parameter.
7001 * interps.h (set_logging): Add debug_redirect parameter.
7002 (current_interp_set_logging): Likewise.
7003 * mi/mi-common.h: Likewise.
7004 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7005
70062019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7007 Tom Tromey <tromey@adacore.com>
7008
7009 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7010 directly.
7011 * cli/cli-interp.h (make_logging_output): Remove declaration.
7012 * cli/cli-logging.c (make_logging_output): Remove function.
7013 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7014 directly.
7015 * ui-file.c (tee_file::tee_file): Remove bools.
7016 (tee_file::~tee_file): Remove deletes.
7017 * ui-file.h (tee_file): Remove bools.
7018
26648588
JV
70192019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7020
7021 * mi/mi-cmds.h (mi_cmd_complete): New function.
7022 * mi/mi-main.c (mi_cmd_complete): Likewise.
7023 * mi/mi-cmds.c: Define new MI command -complete.
7024 * NEWS: Mention new -complete command.
7025
6e035501
JV
70262019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7027
7028 * completer.h (complete): New function.
7029 * completer.c (complete): Likewise.
7030 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7031 function defined in completer.h.
7032
7d0e2ece
JV
70332019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7034
e79be6e5 7035 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7036
fb816e8b
TV
70372019-05-17 Tom de Vries <tdevries@suse.de>
7038
7039 PR gdb/24094
7040 * dwarf2read.c (struct cu_partial_die_info): New struct.
7041 (find_partial_die): Return cu_partial_die_info.
7042 (partial_die_parent_scope, guess_partial_die_structure_name)
7043 (partial_die_info::fixup): Handle new return type of find_partial_die.
7044
677052f2
SDJ
70452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7046
a1726c38 7047 PR breakpoints/24541
677052f2
SDJ
7048 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7049 "std::string", simplifying the algorithm.
7050
f3da9116
SDJ
70512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7052
7053 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7054 (stap_static_probe_ops::get_probes): Likewise.
7055
f1bb75ab
SDJ
70562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7057
7058 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7059 '-')" and "else if".
7060 (stap_parse_single_operand): Join checks for
7061 "gdbarch_stap_parse_special_token_p" and
7062 "gdbarch_stap_parse_special_token" in the same "if" statement.
7063 Invert check when verifying for operation on register
7064 displacement.
7065
3ca58cde
SDJ
70662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7067
7068 * stap-probe.c (stap_get_opcode): Update comment.
7069 (stap_get_expected_argument_type): Likewise.
7070 (handle_stap_probe): Likewise.
7071
af2d9bee
SDJ
70722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7073
7074 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7075 return type to 'bool'. Adjust comment. Use 'bool' when
7076 appropriate.
7077 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7078 * stap-probe.c (stap_parse_argument_1): Likewise.
7079 (stap_is_operator): Likewise.
7080 (stap_is_generic_prefix): Likewise.
7081 (stap_is_register_prefix): Likewise.
7082 (stap_is_register_indirection_prefix): Likewise.
7083 (stap_is_integer_prefix): Likewise.
7084 (stap_generic_check_suffix): Likewise.
7085 (stap_check_integer_suffix): Likewise.
7086 (stap_check_register_suffix): Likewise.
7087 (stap_check_register_indirection_suffix): Likewise.
7088 (stap_parse_register_operand): Likewise.
7089 (stap_parse_single_operand): Likewise.
7090 (stap_parse_argument_1): Likewise.
7091 (stap_probe::get_argument_count): Likewise.
7092 (stap_is_operator): Likewise.
7093
61c9c421
TT
70942019-05-16 Tom Tromey <tromey@adacore.com>
7095
7096 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7097 keyword to foreach.
7098
9ddc1af1
SM
70992019-05-15 Simon Marchi <simon.marchi@efficios.com>
7100
7101 * linux-thread-db.c (try_thread_db_load_1): Change return type
7102 to bool.
7103 (try_thread_db_load): Likewise.
7104 (try_thread_db_load_from_pdir_1): Likewise.
7105 (try_thread_db_load_from_pdir): Likewise.
7106 (try_thread_db_load_from_sdir): Likewise.
7107 (try_thread_db_load_from_dir): Likewise.
7108 (thread_db_load_search): Likewise.
7109 (has_libpthread): Likewise.
7110 (thread_db_load): Likewise.
7111
7bede828
SDJ
71122019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7113
7114 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7115 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7116 NULL, and complain/return if that's the case.
7117
c5358db4
JD
71182019-05-15 John Darrington <john@darrington.wattle.id.au>
7119
7120 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7121 (advance, posn, abstract_read_memory): New functions.
7122 [struct mem_read_abstraction]: New struct.
7123 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7124
c408a94f
TT
71252019-05-14 Tom Tromey <tromey@adacore.com>
7126
7127 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7128 value is not lval_memory.
7129
e7bd7fba
TT
71302019-05-14 Tom Tromey <tromey@adacore.com>
7131
7132 * solib.c (info_sharedlibrary_command): Style the file name.
7133
a6d0f249
AH
71342019-05-14 Alan Hayward <alan.hayward@arm.com>
7135
7136 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7137 (aarch64_vnv_type): Likewise.
7138 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7139 * common/tdesc.c: Likewise.
7140 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7141 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7142 * features/aarch64-fpu.xml: Add ieee half view.
7143 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7144 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7145 * gdbtypes.h (struct builtin_type): Likewise.
7146 (struct objfile_type): Likewise.
7147
66b8bb74
SM
71482019-05-12 Paul Naert <paul.naert@polymtl.ca>
7149
7150 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7151 typo.
7152 * location.h (string_to_event_location): Likewise.
7153
21c219fd
JB
71542019-05-11 Joel Brobecker <brobecker@adacore.com>
7155
7156 GDB 8.3 released.
7157
13674803
SM
71582019-05-10 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7161 New variable declaration.
7162 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7163 New variable.
7164 (print_one_breakpoint): Use ui_out::test_flags and new global
7165 variable to compute use_fixed_output.
7166 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7167 Remove.
7168 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7169 (mi_multi_location_breakpoint_output_fixed): Remove.
7170 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7171 new variable.
7172 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7173 fix_multi_location_breakpoint_output flag if version >= 3.
7174 * ui-out.h (enum ui_out_flag)
7175 <fix_multi_location_breakpoint_output>: New enumerator.
7176
a9eac7f9
SM
71772019-05-10 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7180
71bed2db
TT
71812019-05-10 Tom Tromey <tromey@adacore.com>
7182
7183 * ada-lang.c (catch_ada_completer): New function.
7184 (_initialize_ada_language): Use it.
7185
24c54127
TT
71862019-05-10 Tom Tromey <tromey@adacore.com>
7187
7188 * thread.c (print_thread_info): Make "requested_threads" const.
7189 * gdbthread.h (print_thread_info): Make "requested_threads"
7190 const.
7191 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7192 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7193
7a102139
TT
71942019-05-08 Tom Tromey <tom@tromey.com>
7195
7196 * gdbtypes.c (objfile_type_data): Change type.
7197 (objfile_type, _initialize_gdbtypes): Update.
7198
924d79e2
TT
71992019-05-08 Tom Tromey <tom@tromey.com>
7200
7201 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7202 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7203 (_initialize_dwarf2_frame): Update.
7204
4c58e337
TT
72052019-05-08 Tom Tromey <tom@tromey.com>
7206
7207 * objc-lang.c (objc_objfile_data): Change type.
7208 (find_methods): Update.
7209 (_initialize_objc_lang): Remove.
7210
d772d2ab
TT
72112019-05-08 Tom Tromey <tom@tromey.com>
7212
7213 * stabsread.c (rs6000_builtin_type_data): Change type.
7214 (rs6000_builtin_type, _initialize_stabsread): Update.
7215
d11d83f4
TT
72162019-05-08 Tom Tromey <tom@tromey.com>
7217
7218 * mips-tdep.c (mips_pdr_data): Remove.
7219 (_initialize_mips_tdep): Update.
7220
9a73f0ad
TT
72212019-05-08 Tom Tromey <tom@tromey.com>
7222
7223 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7224 (hppa_init_objfile_priv_data, read_unwind_info)
7225 (find_unwind_entry, _initialize_hppa_tdep): Update.
7226
8127a2fa
TT
72272019-05-08 Tom Tromey <tom@tromey.com>
7228
7229 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7230 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7231 on obstack.
7232 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7233
91d3055d
TT
72342019-05-08 Tom Tromey <tom@tromey.com>
7235
7236 * mdebugread.c (basic_type_data): Change type.
7237 (basic_type, _initialize_mdebugread): Update.
7238
31930bd3
TT
72392019-05-08 Tom Tromey <tom@tromey.com>
7240
7241 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7242
bdb3ed9e
TT
72432019-05-08 Tom Tromey <tom@tromey.com>
7244
7245 * nto-tdep.c (nto_inferior_data_reg): Change type.
7246 (nto_inferior_data): Update.
7247 (nto_inferior_data_cleanup, nto_new_inferior_data)
7248 (_initialize_nto_tdep): Remove.
7249 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7250
f37b313d
TT
72512019-05-08 Tom Tromey <tom@tromey.com>
7252
7253 * ada-lang.c (struct ada_inferior_data): Add initializers.
7254 (ada_inferior_data): Change type.
7255 (ada_inferior_data_cleanup): Remove.
7256 (get_ada_inferior_data, ada_inferior_exit)
7257 (struct ada_pspace_data): Add initializers, destructor.
7258 (ada_pspace_data_handle): Change type.
7259 (get_ada_pspace_data): Update.
7260 (ada_pspace_data_cleanup): Remove.
7261
24699405
TT
72622019-05-08 Tom Tromey <tom@tromey.com>
7263
7264 * coffread.c (struct coff_symfile_info): Add initializers.
7265 (coff_objfile_data_key): Move lower. Change type.
7266 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7267 Update.
7268 (coff_free_info): Remove.
7269
d4e05d2f
TT
72702019-05-08 Tom Tromey <tom@tromey.com>
7271
7272 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7273 (fbsd_pspace_data_handle): Move lower. Change type.
7274 (get_fbsd_pspace_data): Update.
7275 (fbsd_pspace_data_cleanup): Remove.
7276 (_initialize_fbsd_tdep): Update.
7277
14ef6690
TT
72782019-05-08 Tom Tromey <tom@tromey.com>
7279
7280 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7281 (get_ada_tasks_pspace_data): Update.
7282 (ada_tasks_pspace_data_cleanup): Remove.
7283 (_initialize_tasks): Update.
7284 (ada_tasks_inferior_data_handle): Change type.
7285 (get_ada_tasks_inferior_data): Update.
7286 (ada_tasks_inferior_data_cleanup): Remove.
7287 (struct ada_tasks_pspace_data): Add initializers.
7288
814cf43a
TT
72892019-05-08 Tom Tromey <tom@tromey.com>
7290
7291 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7292 * symfile-debug.c (debug_sym_get_probes): Change type.
7293 * stap-probe.c (handle_stap_probe):
7294 (stap_static_probe_ops::get_probes): Change type.
7295 * probe.h (class static_probe_ops) <get_probes>: Change type.
7296 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7297 (parse_probes_in_pspace): Update.
7298 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7299 Update.
7300 (any_static_probe_ops::get_probes): Change type.
7301 * elfread.c (elfread_data): New typedef.
7302 (probe_key): Change type.
7303 (elf_get_probes): Likewise. Update.
7304 (probe_key_free): Remove.
7305 (_initialize_elfread): Update.
7306 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7307 Change type.
7308 (dtrace_process_dof_probe, dtrace_process_dof)
7309 (dtrace_static_probe_ops::get_probe): Change type.
7310
02dc647e
TT
73112019-05-08 Tom Tromey <tom@tromey.com>
7312
7313 * xcoffread.c (struct xcoff_symfile_info): Rename from
7314 coff_symfile_info. Add initializers.
7315 (xcoff_objfile_data_key): Move lower. Change type.
7316 (XCOFF_DATA): Rewrite.
7317 (xcoff_free_info): Remove.
7318 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7319 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7320 (xcoff_initial_scan): Update.
7321
09232438
TT
73222019-05-08 Tom Tromey <tom@tromey.com>
7323
7324 * solib-svr4.c (struct svr4_info): Add initializers and
7325 destructor.
7326 <probes_table>: Now an htab_up.
7327 (solib_svr4_pspace_data): Change type.
7328 (free_probes_table): Simplify.
7329 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7330 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7331 (probes_table_remove_objfile_probes, register_solib_event_probe)
7332 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7333 (_initialize_svr4_solib): Update.
7334
7b4a314f
TT
73352019-05-08 Tom Tromey <tom@tromey.com>
7336
7337 * remote.c (remote_pspace_data): Change type.
7338 (remote_pspace_data_cleanup): Remove.
7339 (get_remote_exec_file, set_pspace_remote_exec_file)
7340 (_initialize_remote): Update.
7341
51d3063a
TT
73422019-05-08 Tom Tromey <tom@tromey.com>
7343
7344 * breakpoint.c (breakpoint_objfile_key): Change type.
7345 (get_breakpoint_objfile_data): Update.
7346 (free_breakpoint_objfile_data): Remove.
7347 (_initialize_breakpoint): Update.
7348
89fb8848
TT
73492019-05-08 Tom Tromey <tom@tromey.com>
7350
7351 * linux-tdep.c (struct linux_info): Add initializers.
7352 (linux_inferior_data): Move. Change type.
7353 (invalidate_linux_cache_inf): Update.
7354 (linux_inferior_data_cleanup): Remove.
7355 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7356
e9b89e2d
TT
73572019-05-08 Tom Tromey <tom@tromey.com>
7358
7359 * auxv.c (auxv_inferior_data): Move. Change type.
7360 (auxv_inferior_data_cleanup): Remove.
7361 (invalidate_auxv_cache_inf): Rewrite.
7362 (get_auxv_inferior_data, _initialize_auxv): Update.
7363
8c42777c
TT
73642019-05-08 Tom Tromey <tom@tromey.com>
7365
7366 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7367 (symfile_debug_objfile_data_key): Change type.
7368 (symfile_debug_installed, debug_qf_has_symbols)
7369 (debug_qf_find_last_source_symtab)
7370 (debug_qf_forget_cached_source_info)
7371 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7372 (debug_qf_print_stats, debug_qf_dump)
7373 (debug_qf_expand_symtabs_for_function)
7374 (debug_qf_expand_all_symtabs)
7375 (debug_qf_expand_symtabs_with_fullname)
7376 (debug_qf_map_matching_symbols)
7377 (debug_qf_expand_symtabs_matching)
7378 (debug_qf_find_pc_sect_compunit_symtab)
7379 (debug_qf_map_symbol_filenames)
7380 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7381 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7382 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7383 (debug_sym_read_linetable, debug_sym_relocate): Update.
7384 (symfile_debug_free_objfile): Remove.
7385 (install_symfile_debug_logging, _initialize_symfile_debug):
7386 Update.
7387
5bfd760d
TT
73882019-05-08 Tom Tromey <tom@tromey.com>
7389
7390 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7391 allocate_on_obstack.
7392 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7393 (get_dwarf2_per_objfile): Update.
7394 (set_dwarf2_per_objfile): Remove.
7395 (dwarf2_has_info, dwarf2_get_section_info): Update.
7396 (dwarf2_free_objfile): Remove.
7397 (_initialize_dwarf2_read): Update.
7398
e85e19b4
TT
73992019-05-08 Tom Tromey <tom@tromey.com>
7400
7401 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7402 initializers.
7403 <unsupported_script_warning_printed,
7404 script_not_found_warning_printed>: Now bool.
7405 (auto_load_pspace_data): Change type.
7406 (~auto_load_pspace_info): Rename from
7407 auto_load_pspace_data_cleanup.
7408 (get_auto_load_pspace_data, init_loaded_scripts_info)
7409 (clear_section_scripts, maybe_print_unsupported_script_warning)
7410 (maybe_print_script_not_found_warning, _initialize_auto_load):
7411 Update.
7412
f6aa7436
TT
74132019-05-08 Tom Tromey <tom@tromey.com>
7414
7415 * objfiles.c (objfile_pspace_info): Add destructor and
7416 initializers.
7417 (objfiles_pspace_data): Change type.
7418 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7419 (get_objfile_pspace_data): Update.
7420 (objfiles_bfd_data): Change type.
7421 (get_objfile_bfd_data): Update.
7422 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7423
6ae614f6
TT
74242019-05-08 Tom Tromey <tom@tromey.com>
7425
7426 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7427 Change type.
7428 (get_catch_syscall_inferior_data): Update.
7429 (catch_syscall_inferior_data_cleanup): Remove.
7430 (_initialize_break_catch_syscall): Update.
7431
6509b8eb
TT
74322019-05-08 Tom Tromey <tom@tromey.com>
7433
7434 * inflow.c (struct terminal_info): Add destructor and
7435 initializers.
7436 (inflow_inferior_data): Change type.
7437 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7438 (get_inflow_inferior_data, inflow_inferior_exit)
7439 (swap_terminal_info, _initialize_inflow): Update.
7440
35632941
TT
74412019-05-08 Tom Tromey <tom@tromey.com>
7442
7443 * target-dcache.c (target_dcache_cleanup): Remove.
7444 (target_dcache_aspace_key): Change type.
7445 (target_dcache_init_p, target_dcache_invalidate)
7446 (target_dcache_get, target_dcache_get_or_init)
7447 (_initialize_target_dcache): Update.
7448 * dcache.h (struct dcache_deleter): New.
7449
3017b94d
TT
74502019-05-08 Tom Tromey <tom@tromey.com>
7451
7452 * symtab.c (struct symbol_cache): Add destructor and
7453 initializers.
7454 (symbol_cache_key): Move. Change type.
7455 (make_symbol_cache, free_symbol_cache): Remove.
7456 (get_symbol_cache): Update.
7457 (symbol_cache_cleanup): Remove.
7458 (ALL_PSPACES, symbol_cache_flush)
7459 (maintenance_print_symbol_cache)
7460 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7461 Update.
7462
a32ad8c5
TT
74632019-05-08 Tom Tromey <tom@tromey.com>
7464
7465 * symtab.c (struct main_info): Add destructor and initializers.
7466 (main_progspace_key): Move. Change type.
7467 (get_main_info): Update.
7468 (main_info_cleanup): Remove.
7469 (_initialize_symtab): Update.
7470
5f6e90a0
TT
74712019-05-08 Tom Tromey <tom@tromey.com>
7472
7473 * registry.h (DECLARE_REGISTRY): Define the _key class.
7474
1bd0c6e4
AB
74752019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * NEWS: Merge two 'New commands' sections.
7478
2228ef77
XR
74792019-05-08 Joel Brobecker <brobecker@adacore.com>
7480
7481 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7482 parameter and use Ada language definition instead.
7483 (ada_val_print_ptr): Remove unused language parameter.
7484 (ada_val_print_num): Remove language parameter and use Ada language
7485 definition instead.
7486 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7487 parameter.
7488 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7489 parameter and use Ada language definition instead.
7490 (ada_val_print_1): Update all ada_val_print_xxx calls.
7491 Remove language parameter.
7492 (ada_val_print): Update ada_val_print_1 call.
7493
60fcc1c3
TT
74942019-05-08 Tom Tromey <tromey@adacore.com>
7495
7496 * remote.c (remote_hw_watchpoint_limit)
7497 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7498 Now static.
7499
ed2b7c17
TT
75002019-05-08 Tom Tromey <tromey@adacore.com>
7501
7502 * maint.c (_initialize_maint_cmds): Move initialization code to
7503 remote.c.
7504 (watchdog, show_watchdog): Move to remote.c.
7505 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7506 "watchdog" static.
7507 (_initialize_remote): Move initialization code from maint.c.
7508 * defs.h (watchdog): Don't declare.
7509
b0be6c91
TT
75102019-05-08 Tom Tromey <tromey@adacore.com>
7511
7512 * tui/tui-interp.c: Include main.h.
7513 * interps.c: Include main.h.
7514 * main.h (interpreter_p): Declare.
7515 * defs.h (interpreter_p): Don't declare.
7516
587ee17b
TT
75172019-05-08 Tom Tromey <tromey@adacore.com>
7518
7519 * dwarf2loc.c: Include dwarf2read.h.
7520 * defs.h (read_unsigned_leb128): Don't declare.
7521 * dwarf2read.h (read_unsigned_leb128): Declare.
7522
ca1df239
TT
75232019-05-08 Tom Tromey <tromey@adacore.com>
7524
7525 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7526 method.
7527
99f20f08
TT
75282019-05-08 Tom Tromey <tromey@adacore.com>
7529
7530 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7531 when no wrap column is set.
7532
80e55b13
TT
75332019-05-08 Tom Tromey <tromey@adacore.com>
7534
7535 * c-lang.c (c_get_string): Handle non-C-style arrays.
7536
9d3421af
TT
75372019-05-08 Tom Tromey <tromey@adacore.com>
7538
7539 * typeprint.c (print_offset_data::update): Print the bit offset,
7540 not the number of bits remaining.
7541
844333e2
TT
75422019-05-08 Tom Tromey <tromey@adacore.com>
7543
7544 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7545 padding at end of comment.
7546
988915ee
TT
75472019-05-08 Tom Tromey <tromey@adacore.com>
7548
7549 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7550 Compare main types.
7551
26bfd823
TT
75522019-05-06 Tom Tromey <tom@tromey.com>
7553
7554 * common/scoped_mmap.c: Include common-defs.h.
7555 * common/scoped_mmap.h: Don't include config.h.
7556
89055eaa
TT
75572019-05-04 Tom Tromey <tom@tromey.com>
7558
7559 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7560 (struct aarch64_call_info): Add initializers.
7561 <si>: Now a std::vector.
7562 (pass_on_stack, aarch64_push_dummy_call): Update.
7563
5da01df5
TT
75642019-05-04 Simon Marchi <simon.marchi@efficios.com>
7565 Tom Tromey <tom@tromey.com>
7566
7567 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7568 (ppc_threads): Now a std::vector. Now static.
7569 (hwdebug_find_thread_points_by_tid)
7570 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7571 Update.
7572
fbdf05a1
TT
75732019-05-04 Tom Tromey <tom@tromey.com>
7574
7575 * arc-tdep.c (arc_tdesc_init): Return bool.
7576
06d16ec9
TT
75772019-05-04 Tom Tromey <tom@tromey.com>
7578
7579 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7580 Use gdb_assert_not_reached.
7581
9c056022
TT
75822019-05-04 Tom Tromey <tom@tromey.com>
7583
7584 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7585 "false".
7586
fa9c2a59
TT
75872019-05-04 Tom Tromey <tom@tromey.com>
7588
7589 * arc-tdep.c (arc_tdesc_init): Use bool.
7590
e2eb806a
TT
75912019-05-04 Tom Tromey <tom@tromey.com>
7592
7593 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7594
6fe87677
TT
75952019-05-04 Tom Tromey <tom@tromey.com>
7596
7597 * cli/cli-cmds.c (valid_command_p): Return bool.
7598
7f008c9e
TT
75992019-05-04 Tom Tromey <tom@tromey.com>
7600
7601 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7602 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7603
b6484282
RT
76042019-05-04 Raul Tambre <raul@tambre.ee>
7605
7606 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7607 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7608 operator for comparison.
7609
af97b416
TT
76102019-05-04 Tom Tromey <tom@tromey.com>
7611
7612 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7613 (lookup_partial_symbol, print_partial_symbols)
7614 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7615 (psymbol_compare): Update.
7616 (add_psymbol_to_bcache): Clear the entire psymbol.
7617 (maintenance_check_psymtabs): Update.
7618 * psympriv.h (struct partial_symbol): Don't derive from
7619 general_symbol_info.
7620 <obj_section, unrelocated_address, address,
7621 set_unrelocated_address>: Update.
7622 <ginfo>: New member.
7623 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7624 (debug_names::write_psymbols): Update.
7625
9d6d4be8
TV
76262019-05-04 Tom de Vries <tdevries@suse.de>
7627
7628 * contrib/cc-with-tweaks.sh: Support -n arg.
7629
66452beb
PW
76302019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7631
7632 * corelow.c (core_target::detach): Ensure frame cache and
7633 register caches are cleared.
7634 inferior.c (exit_inferior_1): Likewise.
7635
bde09ab7
TT
76362019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7637 Tom Tromey <tom@tromey.com>
7638
7639 * dictionary.c (collate_pending_symbols_by_language): Remove
7640 "struct" from foreach.
7641 * symtab.c (lookup_global_symbol_from_objfile)
7642 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7643 foreach.
7644 * ser-tcp.c (net_open): Remove "struct" from foreach.
7645 * objfiles.c (objfile_relocate, objfile_rebase)
7646 (objfile_has_symbols): Remove "struct" from foreach.
7647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7648 from foreach.
7649 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7650 foreach.
7651 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7652 "struct" from foreach.
7653 * ada-lang.c (create_excep_cond_exprs)
7654 (ada_exception_catchpoint_cond_string): Remove "struct" from
7655 foreach.
7656
222a8d25
TT
76572019-05-03 Tom Tromey <tromey@adacore.com>
7658
7659 * ada-exp.y (convert_char_literal): Check suffix of each
7660 enumerator.
7661
fcd60b84
DP
76622019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7663
7664 PR ada/21406:
7665 * ada-exp.y (yywrap): Don't define.
7666 * ada-lex.l (%option): Add noyywrap
7667 (yywrap): Remove.
7668
5f2459c2
EZ
76692019-05-03 Eli Zaretskii <eliz@gnu.org>
7670
353ea2d1
EZ
7671 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7672 _WIN32_WINNT to the XP level, unless already defined to a higher
7673 level.
7674
7675 * unittests/parse-connection-spec-selftests.c:
7676 * ser-tcp.c:
7677 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7678 override.
7679
5f2459c2
EZ
7680 * symfile.c (find_separate_debug_file): Remove colon from the
7681 drive spec of DOS/Windows file names of the target, so that the
7682 file name produced from DEBUGDIR and the target's directory will
7683 be valid on DOS/Windows systems.
7684
80062eb9
AB
76852019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * rust-lang.c (val_print_struct): Handle printing structures
7688 containing strings.
7689
b8c05e85
TT
76902019-05-02 Tom Tromey <tromey@adacore.com>
7691
7692 * valarith.c (_initialize_valarith): Remove.
7693
4504bbde
TT
76942019-05-01 Tom Tromey <tromey@adacore.com>
7695
7696 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7697 bitfields.
7698
d48e62f4
TT
76992019-05-01 Tom Tromey <tromey@adacore.com>
7700
7701 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7702 for big-endian copies.
7703
15f18d14
AT
77042019-04-30 Ali Tamur <tamur@google.com>
7705 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7706 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7707 (read_3_bytes): New function.
7708
ab4ee614
JB
77092019-04-30 Joel Brobecker <brobecker@adacore.com>
7710
7711 * windows-nat.c (main_thread_id): Delete.
7712 (handle_output_debug_string): Replace main_thread_id by
7713 current_event.dwThreadId.
7714 (fake_create_process): Likewise.
7715 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7716 Do not set main_thread_id.
7717 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7718 current_event.dwThreadId.
7719 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7720
8ed5b76e
JB
77212019-04-30 Joel Brobecker <brobecker@adacore.com>
7722
7723 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7724 Use current_event.dwThreadId instead of main_thread_id.
7725
2ff0a947
TT
77262019-04-30 Tom Tromey <tromey@adacore.com>
7727
7728 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7729 (create_excep_cond_exprs): Iterate over program spaces.
7730 (ada_exception_catchpoint_cond_string): Examine all minimal
7731 symbols for exception types.
7732
a776957c
TT
77332019-04-30 Tom Tromey <tromey@adacore.com>
7734
7735 PR c++/24470:
7736 * dwarf2read.c (process_structure_scope): Handle case where type
7737 has template parameters but no symbol was created.
7738
bc68014d
AB
77392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7740 Chris January <chris.january@arm.com>
7741
7742 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7743 qualifier.
7744 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7745
f1fdc960
AB
77462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * f-typeprint.c (f_print_type): Update rules for printing
7749 whitespace.
7750 (f_type_print_varspec_suffix): Likewise.
7751
bf7a4de1
AB
77522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7753 Chris January <chris.january@arm.com>
7754
7755 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7756 function arguments.
7757
bbe75b9d
AB
77582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * f-lang.c (build_fortran_types): Change name of void type to
7761 lower case.
7762 * f-typeprint.c (f_type_print_base): Print the name of the void
7763 type, rather than a fixed string.
7764 * f-valprint.c (f_decorations): Use lower case void string.
7765
1db455a7
AB
77662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7767 Chris January <chris.january@arm.com>
7768
7769 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7770 types for Fortran.
7771
b6d03bb2
AB
77722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7773 Chris January <chris.january@arm.com>
7774 David Lecomber <david.lecomber@arm.com>
7775
7776 * f-exp.y (BINOP_INTRINSIC): New token.
7777 (exp): New parser rule handling BINOP_INTRINSIC.
7778 (f77_keywords): Add new builtin procedures.
7779 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7780 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7781 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7782 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7783 (print_unop_subexp_f): New function.
7784 (print_binop_subexp_f): New function.
7785 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7786 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7787 (dump_subexp_body_f): Likewise.
7788 (operator_check_f): Likewise.
7789 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7790 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7791
83228e93
AB
77922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7795 UNOP_KIND.
7796 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7797 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7798 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7799 (operator_length_f): New fuction.
7800 (print_subexp_f): New function.
7801 (op_name_f): New function.
7802 (dump_subexp_body_f): New function.
7803 (operator_check_f): New function.
7804 (exp_descriptor_f): Replace standard expression handling functions
7805 with new functions.
7806 * gdb/fortran-operator.def: New file.
7807 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7808 * gdb/std-operator.def: Remove UNOP_KIND.
7809
6fdcd7cc
AB
78102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * std-operator.def: Remove unbalanced, stray double quote
7813 character.
7814
2e62ab40
AB
78152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7816 Chris January <chris.january@arm.com>
7817 Daniel Everett <daniel.everett@arm.com>
7818 Nick Forrington <nick.forrington@arm.com>
7819 Richard Bunt <richard.bunt@arm.com>
7820
7821 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7822 of depth when printing anonymous structs or unions.
7823 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7824 Don't print either the top-level value, or the children if the
7825 max-depth is exceeded.
7826 (ppscm_print_children): When printing the key of a map, allow one
7827 extra level of depth.
7828 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7829 print either the top-level value, or the children if the max-depth
7830 is exceeded.
7831 (print_children): When printing the key of a map, allow one extra
7832 level of depth.
7833 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7834 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7835 (user_print_options): Initialise max_depth field.
7836 (val_print_scalar_or_string_type_p): New function.
7837 (val_print): Check to see if the max depth has been reached.
7838 (val_print_check_max_depth): Define new function.
7839 (show_print_max_depth): New function.
7840 (_initialize_valprint): Add 'print max-depth' option.
7841 * valprint.h (struct value_print_options) <max_depth>: New field.
7842 (val_print_check_max_depth): Declare new function.
7843 * NEWS: Document new feature.
7844
4be290b2
AB
78452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7846
7847 * ada-lang.c (ada_language_defn): Initialise new field.
7848 * c-lang.c (c_is_string_type_p): New function.
7849 (c_language_defn): Initialise new field.
7850 (cplus_language_defn): Initialise new field.
7851 (asm_language_defn): Initialise new field.
7852 (minimal_language_defn): Initialise new field.
7853 * c-lang.h (c_is_string_type_p): Declare new function.
7854 * d-lang.c (d_language_defn): Initialise new field.
7855 * f-lang.c (f_is_string_type_p): New function.
7856 (f_language_defn): Initialise new field.
7857 * go-lang.c (go_is_string_type_p): New function.
7858 (go_language_defn): Initialise new field.
7859 * language.c (default_is_string_type_p): New function.
7860 (unknown_language_defn): Initialise new field.
7861 (auto_language_defn): Initialise new field.
7862 * language.h (struct language_defn) <la_is_string_type_p>: New
7863 member variable.
7864 (default_is_string_type_p): Declare new function.
7865 * m2-lang.c (m2_language_defn): Initialise new field.
7866 * objc-lang.c (objc_language_defn): Initialise new field.
7867 * opencl-lang.c (opencl_language_defn): Initialise new field.
7868 * p-lang.c (pascal_is_string_type_p): New function.
7869 (pascal_language_defn): Initialise new field.
7870 * rust-lang.c (rust_is_string_type_p): New function.
7871 (rust_language_defn): Initialise new field.
7872
721b08c6
AB
78732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7874
7875 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7876 New field.
7877 * ada-lang.c (ada_language_defn): Initialise new field.
7878 * c-lang.c (c_language_defn): Likewise.
7879 (cplus_language_defn): Likewise.
7880 (asm_language_defn): Likewise.
7881 (minimal_language_defn): Likewise.
7882 * d-lang.c (d_language_defn): Likewise.
7883 * f-lang.c (f_language_defn): Likewise.
7884 * go-lang.c (go_language_defn): Likewise.
7885 * language.c (unknown_language_defn): Likewise.
7886 (auto_language_defn): Likewise.
7887 * m2-lang.c (m2_language_defn): Likewise.
7888 * objc-lang.c (objc_language_defn): Likewise.
7889 * opencl-lang.c (opencl_language_defn): Likewise.
7890 * p-lang.c (pascal_language_defn): Likewise.
7891 * rust-lang.c (rust_language_defn): Likewise.
7892
fc913e53
AB
78932019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * ada-lang.c (ada_is_character_type): Change return type to bool.
7896 (ada_is_string_type): Likewise.
7897 * ada-lang.h (ada_is_character_type): Update declaration
7898 (ada_is_string_type): Likewise.
7899
fa731fa0
PW
79002019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7901
7902 Support style in 'frame|thread apply'
7903
7904 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7905 * record.c (record_start, record_stop): Update callers of
7906 execute_command_to_string with false.
7907 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7908 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7909 methods.
7910 (class string_file): New constructor with term_out parameter.
7911 Override methods term_out and can_emit_style_escape. New member
7912 term_out.
7913 (class stdio_file): Override can_emit_style_escape.
7914 (class tee_file): Override term_out and can_emit_style_escape.
7915 * utils.h (can_emit_style_escape): Remove.
7916 * utils.c (can_emit_style_escape): Likewise.
7917 Update all callers of can_emit_style_escape (SOMESTREAM) to
7918 SOMESTREAM->can_emit_style_escape.
7919 * source-cache.c (source_cache::get_source_lines): Likewise.
7920 * stack.c (frame_apply_command_count): Call execute_command_to_string
7921 passing the term_out characteristic of the current gdb_stdout.
7922 * thread.c (thr_try_catch_cmd): Likewise.
7923 * top.c (execute_command_to_string): pass term_out parameter
7924 to construct the string_file for the command output.
7925 * ui-file.c (term_cli_styling): New function (most code moved
7926 from utils.c can_emit_style_escape).
7927 (string_file::string_file, string_file::can_emit_style_escape,
7928 stdio_file::can_emit_style_escape, tee_file::term_out,
7929 tee_file::can_emit_style_escape): New functions.
7930
136afab8
PW
79312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7932
7933 * NEWS: Mention the new set|show may-call-functions.
7934 * infcall.c (may_call_functions_p): New variable.
7935 (show_may_call_functions_p): New function.
7936 (call_function_by_hand_dummy): Throws an error if not
7937 may-call-functions.
7938 (_initialize_infcall): Call add_setshow_boolean_cmd for
7939 may-call-functions.
7940
725cbb63
KS
79412019-04-25 Keith Seitz <keiths@redhat.com>
7942
7943 PR c++/24367
7944 * cp-support.c (inspect_type): Don't attempt substitutions
7945 of symbol with the same name.
7946
3d1cbb78
TT
79472019-04-25 Tom Tromey <tromey@adacore.com>
7948
7949 PR gdb/24475:
7950 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7951 static.
7952
94aeb44b
TT
79532019-04-25 Tom Tromey <tromey@adacore.com>
7954
7955 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7956 rvalue reference.
7957 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7958 (gdb_xml_parser::parse): Use std::move.
7959 * python/python-internal.h (gdbpy_convert_exception): Take a const
7960 reference.
7961 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7962 std::move.
7963 * python/py-utils.c (gdbpy_convert_exception): Take a const
7964 reference.
7965 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7966 Use std::move.
7967 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7968 Use std::move.
7969 * mi/mi-main.c (mi_print_exception): Take a const reference.
7970 * main.c (handle_command_errors): Take a const reference.
7971 * linespec.c (parse_linespec): Use std::move.
7972 * infcall.c (run_inferior_call): Use std::move.
7973 (call_function_by_hand_dummy): Use std::move.
7974 * exec.c (try_open_exec_file): Use std::move.
7975 * exceptions.h (exception_print, exception_fprintf)
7976 (exception_print_same): Update.
7977 * exceptions.c (print_exception, exception_print)
7978 (exception_fprintf, exception_print_same): Change parameters to
7979 const reference.
7980 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7981 * common/new-op.c: Use std::move.
7982 * common/common-exceptions.h (struct gdb_exception): Add move
7983 constructor.
7984 (struct gdb_exception_error, struct gdb_exception_quit, struct
7985 gdb_quit_bad_alloc): Change constructor to move constructor.
7986 (throw_exception): Change parameter to rvalue reference.
7987 * common/common-exceptions.c (throw_exception): Take rvalue
7988 reference.
7989 * cli/cli-interp.c (safe_execute_command): Use std::move.
7990 * breakpoint.c (insert_bp_location, location_to_sals): Use
7991 std::move.
7992
680d7fd5
TT
79932019-04-25 Tom Tromey <tromey@adacore.com>
7994
7995 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7996 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7997 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7998 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7999 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8000 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8001 guile/scm-value.c: Use unpack.
8002 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8003 gdbscm_gdb_exception.
8004 (gdbscm_throw_gdb_exception): Likewise.
8005 (struct gdbscm_gdb_exception): New.
8006 (unpack): New function.
8007 (gdbscm_wrap): Use unpack.
8008
c6fdd8b2
TT
80092019-04-25 Tom Tromey <tromey@adacore.com>
8010
8011 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8012 (gdb_rl_callback_handler): Use std::move.
8013 * common/common-exceptions.h (struct gdb_exception): Add move
8014 assignment operator.
8015 (throw_exception_sjlj): Change "exception" to const reference.
8016 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8017 (throw_exception_sjlj): Change "exception" to const reference.
8018
cc06b668
TT
80192019-04-25 Tom Tromey <tromey@adacore.com>
8020
8021 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8022 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8023 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8024 Update.
8025 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8026 Update.
8027 * mi/mi-interp.c (mi_interp::exec): Update.
8028 * linespec.c (parse_linespec): Update.
8029 * infcall.c (run_inferior_call): Update.
8030 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8031 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8032 (gdbscm_lookup_global_symbol): Update.
8033 * guile/scm-param.c (gdbscm_parameter_value): Update.
8034 * guile/scm-frame.c (gdbscm_frame_read_register)
8035 (gdbscm_frame_read_var): Update.
8036 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8037 * exec.c (try_open_exec_file): Update.
8038 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8039 (gdb_rl_callback_handler): Update.
8040 * common/common-exceptions.h (exception_none): Don't declare.
8041 * common/common-exceptions.c (exception_none): Don't define.
8042 (struct catcher) <exception>: Update.
8043 * cli/cli-interp.c (safe_execute_command): Update.
8044 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8045
cf532bd1
AT
80462019-04-25 Ali Tamur <tamur@google.com>
8047
8048 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8049 (read_attribute_value): Likewise.
8050 (dwarf2_read_addr_index): Update comment.
8051 (read_str_index): Add DW_FORM_strx.
8052 (dwarf2_string_attr): Likewise.
8053 (dwarf2_const_value_attr): Likewise.
8054 (dump_die_shallow): Likewise.
8055 (dwarf2_fetch_constant_bytes): Likewise.
8056 (skip_form_bytes): Likewise.
8057 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8058
82433e3e
SDJ
80592019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8060
8061 PR corefiles/11608
8062 PR corefiles/18187
8063 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8064 OFFSET. Verify if current mapping contains an ELF header.
8065 (linux_find_memory_regions_full): Adjust call to
8066 dump_mapping_p.
8067
723adb65
SL
80682019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8069 Kang Li <kanglictf@gmail.com>
8070
8071 PR gdb/21600
8072
8073 * dwarf2-frame.c (read_initial_length): Be consistent about using
8074 unsigned representation of length.
8075 (decode_frame_entry_1): Likewise. Check for wraparound of
8076 end pointer as well as buffer overflow.
8077
596179f7
SDJ
80782019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8079
8080 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8081 "vq".
8082
a59240a4
TT
80832019-04-24 Tom Tromey <tromey@adacore.com>
8084
8085 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8086
f872fdbb
AB
80872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8088
8089 * s12z-tdep.c (s12z_unwind_pc): Delete.
8090 (s12z_unwind_sp): Delete.
8091 (s12z_gdbarch_init): Don't register deleted functions with
8092 gdbarch.
8093
b614e6f3
AB
80942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8095
8096 * rl78-tdep.c (rl78_unwind_sp): Delete.
8097 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8098
14faed38
AB
80992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8100
8101 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8102 (xstormy16_unwind_pc): Delete.
8103 (xstormy16_dummy_id): Delete.
8104 (xstormy16_gdbarch_init): Don't register deleted functions with
8105 gdbarch.
8106
541aad8a
AB
81072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * vax-tdep.c (vax_unwind_pc): Delete.
8110 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8111
29222070
AB
81122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * v850-tdep.c (v850_unwind_sp): Delete.
8115 (v850_unwind_pc): Delete.
8116 (v850_dummy_id): Delete.
8117 (v850_gdbarch_init): Don't register deleted functions with
8118 gdbarch.
8119
0f534d76
AB
81202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8123 (tilegx_unwind_pc): Delete.
8124 (tilegx_unwind_dummy_id): Delete.
8125 (tilegx_gdbarch_init): Don't register deleted functions with
8126 gdbarch.
8127
1ba7b7f9
AB
81282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8129
8130 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8131 (tic6x_dummy_id): Delete.
8132 (tic6x_gdbarch_init): Don't register deleted functions with
8133 gdbarch.
8134
d31f262c
AB
81352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8136
8137 * sparc-tdep.c (sparc_unwind_pc): Delete.
8138 (sparc32_gdbarch_init): Don't register deleted function with
8139 gdbarch.
8140
6d14d64d
AB
81412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * sh-tdep.c (sh_unwind_sp): Delete.
8144 (sh_unwind_pc): Delete.
8145 (sh_dummy_id): Delete.
8146 (sh_gdbarch_init): Don't register deleted functions with
8147 gdbarch.
8148
a40dde9d
AB
81492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * score-tdep.c (score_unwind_sp): Delete.
8152 (score_unwind_pc): Delete.
8153 (score_dummy_id): Delete.
8154 (score_gdbarch_init): Don't register deleted functions with
8155 gdbarch.
8156
47c47d69
AB
81572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * rx-tdep.c (rx_unwind_pc): Delete.
8160 (rx_unwind_sp): Delete.
8161 (rx_dummy_id): Delete.
8162 (rx_gdbarch_init): Don't register deleted functions with
8163 gdbarch. Update comment.
8164
833a4480
AB
81652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8166
8167 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8168 (rs6000_dummy_id): Delete.
8169 (rs6000_gdbarch_init): Don't register deleted functions with
8170 gdbarch.
8171
3f2cef49
AB
81722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * or1k-tdep.c (or1k_dummy_id): Delete.
8175 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8176
96acf884
AB
81772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * nios2-tdep.c (nios2_dummy_id): Delete.
8180 (nios2_unwind_sp): Delete.
8181 (nios2_gdbarch_init): Don't register deleted functions with
8182 gdbarch.
8183
ca0ab0aa
AB
81842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * nds32-tdep.c (nds32_dummy_id): Delete.
8187 (nds32_unwind_pc): Delete.
8188 (nds32_unwind_sp): Delete.
8189 (nds32_gdbarch_init): Don't register deleted functions with
8190 gdbarch.
8191
c8259044
AB
81922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8193
8194 * msp430-tdep.c (msp430_unwind_pc): Delete.
8195 (msp430_unwind_sp): Delete.
8196 (msp430_dummy_id): Delete.
8197 (msp430_gdbarch_init): Don't register deleted functions with
8198 gdbarch.
8199
27f113c8
AB
82002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8201
8202 * moxie-tdep.c (moxie_unwind_sp): Delete.
8203 (moxie_unwind_pc): Delete.
8204 (moxie_dummy_id): Delete.
8205 (moxie_gdbarch_init): Don't register deleted functions with
8206 gdbarch.
8207
aee6c3cd
AB
82082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8209
8210 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8211 (mn10300_unwind_pc): Delete.
8212 (mn10300_unwind_sp): Delete.
8213 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8214 mn10300_unwind_sp.
8215 (mn10300_frame_unwind_init): Don't register deleted functions with
8216 gdbarch.
8217
8e2b5aea
AB
82182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * mep-tdep.c (mep_unwind_pc): Delete.
8221 (mep_unwind_sp): Delete.
8222 (mep_dummy_id): Delete.
8223 (mep_gdbarch_init): Don't register deleted functions with
8224 gdbarch.
8225
43cf3ede
AB
82262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8227
8228 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8229 (m68hc11_unwind_sp): Delete.
8230 (m68hc11_gdbarch_init): Don't register deleted functions with
8231 gdbarch.
8232
5e79b7bb
AB
82332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8234
8235 * m32r-tdep.c (m32r_unwind_sp): Delete.
8236 (m32r_unwind_pc): Delete.
8237 (m32r_dummy_id): Delete.
8238 (m32r_gdbarch_init): Don't register deleted functions with
8239 gdbarch.
8240
89b268d8
AB
82412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8242
8243 * m32c-tdep.c (m32c_unwind_pc): Delete.
8244 (m32c_unwind_sp): Delete.
8245 (m32c_dummy_id): Delete.
8246 (m32c_gdbarch_init): Don't register deleted functions with
8247 gdbarch.
8248
946c28d2
AB
82492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8252 (lm32_unwind_pc): Delete.
8253 (lm32_dummy_id): Delete.
8254 (lm32_gdbarch_init): Don't register deleted functions with
8255 gdbarch.
8256
bf12844a
AB
82572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8260 (iq2000_unwind_pc): Delete.
8261 (iq2000_dummy_id): Delete.
8262 (iq2000_gdbarch_init): Don't register deleted functions with
8263 gdbarch.
8264
ecbc06d2
AB
82652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * nds32-tdep.c (nds32_type_align): Delete.
8268 (nds32_push_dummy_call): Use type_align instead.
8269
030197b4
AB
82702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8271
8272 * arm-tdep.c (arm_type_align): Only handle vector override case.
8273 (arm_push_dummy_call): Use type_align.
8274 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8275
b907456c
AB
82762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8277
8278 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8279 case.
8280 (pass_on_stack): Use type_align.
8281 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8282 function.
8283
9e97ba43
TT
82842019-04-23 Tom Tromey <tromey@adacore.com>
8285
8286 * dwarf2read.c (line_header::file_name_at): Remove unused
8287 overload.
8288
6892f601
TV
82892019-04-23 Tom de Vries <tdevries@suse.de>
8290
8291 PR gdb/24438
8292 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8293 invocation.
8294
336d760d
AT
8295
82962019-03-27 Ali Tamur <tamur@google.com>
8297
8298 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8299 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8300 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8301 (dwarf_expr_context::get_addr_index): Likewise
8302 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8303 (symbol_needs_eval_context::get_addr_index): Likewise
8304 (disassemble_dwarf_expression): Add DW_OP_addrx
8305 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8306 (read_cutu_die_from_dwo): Update comment
8307 (skip_one_die): Add DW_FORM_addrx
8308 (read_attribute_value): Likewise
8309 (var_decode_location): Add DW_OP_addrx
8310 (dwarf2_const_value_attr): Add DW_FORM_addrx
8311 (dump_die_shallow): Likewise
8312 (dwarf2_fetch_constant_bytes): Likewise
8313 (decode_locdesc): Add DW_OP_addrx
8314 (skip_form_bytes): Add DW_FORM_addrx
8315
ad9d13f8
AT
83162019-04-22 Ali Tamur <tamur@google.com>
8317
8318 * MAINTAINERS (Write After Approval): Add self.
8319
d70cc3ba
SM
83202019-04-22 Simon Marchi <simon.marchi@efficios.com>
8321
8322 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8323 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8324 (open_symbol_file_object): Likewise.
8325 (svr4_default_sos): Add info parameter.
8326 (svr4_read_so_list): Likewise.
8327 (svr4_current_sos_direct): Adjust functions calls to pass down
8328 info.
8329 (svr4_current_sos_1): Add info parameter.
8330 (svr4_current_sos): Call get_svr4_info, pass info down to
8331 svr4_current_sos_1.
8332 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8333 get_svr4_info.
8334 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8335 get_svr4_info.
8336 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8337 to get_svr4_info.
8338 (probes_table_remove_objfile_probes): Likewise.
8339 (register_solib_event_probe): Add info parameter.
8340 (solist_update_incremental): Pass info parameter down to
8341 svr4_read_so_list.
8342 (disable_probes_interface): Add info parameter.
8343 (svr4_handle_solib_event): Pass current_program_space to
8344 get_svr4_info. Adjust disable_probes_interface cleanup.
8345 (svr4_create_probe_breakpoints): Add info parameter, pass it
8346 down to register_solib_event_probe.
8347 (svr4_create_solib_event_breakpoints): Add info parameter,
8348 pass it down to svr4_create_probe_breakpoints.
8349 (enable_break): Pass info down to
8350 svr4_create_solib_event_breakpoints.
8351 (svr4_solib_create_inferior_hook): Pass current_program_space to
8352 get_svr4_info.
8353 (svr4_clear_solib): Likewise.
8354
7905fc35
PA
83552019-04-22 Pedro Alves <palves@redhat.com>
8356
8357 * solib-svr4.c (svr4_free_objfile_observer): New.
8358 (probe_and_action::objfile): New field.
8359 (probes_table_htab_remove_objfile_probes)
8360 (probes_table_remove_objfile_probes): New functions.
8361 (register_solib_event_probe): Add 'objfile' parameter. Store it
8362 in the new probe_and_action. Don't store the probe in 'lookup'.
8363 (svr4_create_probe_breakpoints): Pass objfile to
8364 register_solib_event_probe.
8365 (_initialize_svr4_solib): Register a free_objfile observer.
8366
fb881986
TT
83672019-04-19 Tom Tromey <tom@tromey.com>
8368
8369 * common/queue.h: Remove.
8370
8732db6c
TT
83712019-04-19 Tom Tromey <tom@tromey.com>
8372
8373 * event-loop.c: Don't include "common/queue.h".
8374
97dfbadd
TT
83752019-04-19 Tom Tromey <tom@tromey.com>
8376
8377 * remote.c (remote_target): Use delete.
8378 * remote-notif.h: Include <list>, not "common/queue.h".
8379 (notif_client_p): Remove typedef.
8380 (remote_notif_state): Add constructor, destructor, initializer.
8381 <notif_queue>: Now a std::list.
8382 (remote_notif_state_xfree): Don't declare.
8383 * remote-notif.c (remote_notif_process, handle_notification)
8384 (remote_notif_state_allocate): Update.
8385 (~remote_notif_state): Rename from remote_notif_state_xfree.
8386
cf250e36
TT
83872019-04-19 Tom Tromey <tom@tromey.com>
8388
8389 * symfile.c (reread_symbols): Update.
8390 * objfiles.c (objfile_register_static_link)
8391 (objfile_lookup_static_link): Update
8392 (~objfile) Don't delete static_links.
8393 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8394
61f4b350
TT
83952019-04-19 Tom Tromey <tom@tromey.com>
8396
8397 * type-stack.h (struct type_stack) <insert>: Constify string.
8398 * type-stack.c (type_stack::insert): Constify string.
8399 * gdbtypes.h (lookup_template_type): Update.
8400 (address_space_name_to_int): Update.
8401 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8402 const.
8403 (lookup_template_type): Make name const.
8404 * c-exp.y: Update rules.
8405 (lex_one_token, classify_name, classify_inner_name)
8406 (c_print_token): Update.
8407 * p-exp.y: Update rules.
8408 (yylex): Update.
8409 * f-exp.y: Update rules.
8410 (yylex): Update.
8411 * d-exp.y: Update rules.
8412 (lex_one_token, classify_name, classify_inner_name): Update.
8413 * parse.c (write_dollar_variable, copy_name): Return std::string.
8414 * parser-defs.h (copy_name): Change return type.
8415 * m2-exp.y: Update rules.
8416 (yylex): Update.
8417 * go-exp.y (lex_one_token): Update.
8418 Update rules.
8419 (classify_unsafe_function, classify_packaged_name)
8420 (classify_name, yylex): Update.
8421
189b8c2e
ST
84222019-04-19 Sergei Trofimovich <siarheit@google.com>
8423
8424 * configure.ac: add --enable-source-highlight switch.
8425 * configure: Regenerate.
8426 * top.c (print_gdb_version): plumb --enable-source-highlight
8427 status to "show configuration".
8428
8ecb59f8
TT
84292019-04-19 Tom Tromey <tromey@adacore.com>
8430
8431 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8432 Check ADA_TYPE_P.
8433 (empty_record, ada_template_to_fixed_record_type_1)
8434 (template_to_static_fixed_type)
8435 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8436 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8437 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8438 macros.
8439
62160ec9
TT
84402019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8441
8442 PR symtab/24423:
8443 * source.c (print_source_lines_base): Advance "iter" when a
8444 control character is seen.
8445
f2ae8bc8
PW
84462019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8447
8448 * inferior.h (struct infcall_suspend_state_deleter):
8449 Catch exception in destructor to avoid crash.
8450
d563b953
PW
84512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8452
8453 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8454 close to the add_com "shell".
8455
dc34c897
TT
84562019-04-18 Tom Tromey <tromey@adacore.com>
8457
8458 * process-stratum-target.h (class process_stratum_target)
8459 <stratum>: Add "final".
8460
a12e5744
TT
84612019-04-17 Tom Tromey <tromey@adacore.com>
8462
8463 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8464 against nullptr before use.
8465
a7e559cc
AH
84662019-04-17 Alan Hayward <alan.hayward@arm.com>
8467
8468 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8469
c01660c6
AB
84702019-04-17 Jim Wilson <jimw@sifive.com>
8471 Andrew Burgess <andrew.burgess@embecosm.com>
8472
8473 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8474 code read might fail, assume 4-byte breakpoint in that case.
8475
4aa866af
LS
84762019-04-15 Leszek Swirski <leszeks@google.com>
8477
8478 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8479 rather than a hand-rolled POD check when checking for forced MEMORY
8480 classification.
8481
48574d91
AH
84822019-04-15 Alan Hayward <alan.hayward@arm.com>
8483
8484 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8485 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8486 function.
8487 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8488 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8489 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8490 declaration.
8491
4da037ef
AH
84922019-04-15 Alan Hayward <alan.hayward@arm.com>
8493
8494 * aarch64-linux-nat.c
8495 (aarch64_linux_nat_target::thread_architecture): Add override.
8496 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8497 each VQ.
8498
ccb8d7e8
AH
84992019-04-15 Alan Hayward <alan.hayward@arm.com>
8500
8501 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8502
35add35e
AB
85032019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8506 target types of size 96-bits, add some additional comments, and
8507 check that the builtin type we found was the correct size.
8508
51196bbc
EZ
85092019-04-12 Eli Zaretskii <eliz@gnu.org>
8510
8511 * utils.c (prompt_for_continue): Don't restore the styling at the
8512 end, as applied_style has the wrong value. This fixes styling in
8513 long lists of file names that are interrupted by the "Continue?"
8514 prompt.
8515
62253a61
AB
85162019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8519 * c-lang.c (c_language_defn): Likewise.
8520 (cplus_language_defn): Likewise.
8521 (asm_language_defn): Likewise.
8522 (minimal_language_defn): Likewise.
8523 * d-lang.c (d_language_defn): Likewise.
8524 * f-lang.c (f_language_defn): Likewise.
8525 * go-lang.c (go_language_defn): Likewise.
8526 * language.c (unknown_language_defn): Likewise.
8527 (auto_language_defn): Likewise.
8528 * language.h (struct language_defn): Remove la_magic field.
8529 (LANG_MAGIC): Delete.
8530 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8531 * objc-lang.c (objc_language_defn): Likewise.
8532 * opencl-lang.c (opencl_language_defn): Likewise.
8533 * p-lang.c (pascal_language_defn): Likewise.
8534 * rust-lang.c (rust_language_defn): Likewise.
8535
a9158a86
AB
85362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * riscv-tdep.c (riscv_type_align): New function.
8539 (riscv_type_alignment): Delete.
8540 (riscv_arg_location): Use 'type_align'.
8541 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8542
41077b66
AB
85432019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8544
8545 * gdbtypes.c (type_align): A struct with no non-static fields also
8546 has alignment of 1.
8547
9f0272f8
AB
85482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8549
8550 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8551 component to 0.
8552 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8553 member.
8554 (riscv_struct_info::analyse): New implementation using new
8555 analyse_inner member function.
8556 (riscv_struct_info::field_offset): New member function.
8557 (riscv_struct_info::m_offsets): New member variable.
8558 (riscv_struct_info::analyse_inner): New private member function,
8559 takes the old implementation of riscv_struct_info::analyse but
8560 extended to track field offsets.
8561 (riscv_call_arg_struct): Update the struct folding special cases
8562 to handle cases where empty C++ structs, which are non-zero
8563 length, are found.
8564 (riscv_arg_location): Initialise the length of each location, a
8565 non-zero length now indicates the location is in use.
8566 (riscv_push_dummy_call): Allow for the first location having a
8567 non-zero offset when setting up arguments.
8568 (riscv_return_value): Likewise, but for return values.
8569
02cf60c7
TT
85702019-04-11 Tom Tromey <tromey@adacore.com>
8571
8572 * utils.c (internal_vproblem): Make "msg" const.
8573
68811f8f
AH
85742019-04-11 Alan Hayward <alan.hayward@arm.com>
8575
8576 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8577 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8578 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8579 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8580
3f52fdbc
KB
85812019-04-10 Kevin Buettner <kevinb@redhat.com>
8582
8583 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8584 function.
8585 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8586 of amd64_collect_native_gregset.
8587 (amd64_linux_nat_target::store_registers): Likewise.
8588
e9ad22ee
TT
85892019-04-10 Tom Tromey <tom@tromey.com>
8590
8591 * symtab.c (lookup_global_symbol_from_objfile)
8592 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8593 * objfiles.h (class separate_debug_iterator): New.
8594 (class separate_debug_range): New.
8595 (struct objfile) <separate_debug_objfiles>: New method.
8596 (objfile_separate_debug_iterate): Don't declare.
8597 * objfiles.c (separate_debug_iterator::operator++): Rename from
8598 objfile_separate_debug_iterate.
8599 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8600 iterator.
8601 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8602 iterator.
8603
ee371134
TT
86042019-04-10 Tom Tromey <tom@tromey.com>
8605
8606 * symfile.c (reread_symbols): Remove old comment.
8607 * objfiles.c (free_all_objfiles): Fix a typo.
8608
bf227d61
TT
86092019-04-10 Tom Tromey <tom@tromey.com>
8610
8611 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8612 * minsyms.c (lookup_minimal_symbol): Use foreach.
8613 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8614 (lookup_minimal_symbol_solib_trampoline): Likewise.
8615 * symfile.c (reread_symbols): Use foreach.
8616
8dc433a0
TT
86172019-04-09 Ivan Begert <ivanbegert@gmail.com>
8618 Tom Tromey <tromey@adacore.com>
8619
8620 PR rust/24414:
8621 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8622 (rust_lex_int_test): Change "value" to be LONGEST.
8623 (rust_lex_tests): Add test for long integer literal.
8624
9ab8741a
TT
86252019-04-09 Tom Tromey <tromey@adacore.com>
8626
8627 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8628 to bool.
8629 (extended_remote_target::attach): Update.
8630 (remote_target::remote_notice_new_inferior): Update.
8631 (remote_target::add_current_inferior_and_thread): Update.
8632 * inferior.c (exit_inferior_1): Use "false".
8633 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8634
e242fd12
SM
86352019-04-09 Simon Marchi <simon.marchi@efficios.com>
8636
9ca1957f 8637 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8638 the "start" command.
8639
2b0c8b01
KB
86402019-04-08 Kevin Buettner <kevinb@redhat.com>
8641
8642 * python/py-inferior.c (infpy_thread_from_thread_handle):
8643 Adjust comments to reflect renaming of thread_from_thread_handle
8644 to thread_from_handle. Adjust keywords. Fix type error message.
8645 (inferior_object_methods): Add thread_from_handle. Retain
8646 thread_from_thread_handle, but mark it as deprecated.
8647
50a82723
KB
86482019-04-08 Kevin Buettner <kevinb@redhat.com>
8649
8650 * gdbthread.h (find_thread_by_handle): Revise declaration.
8651 * thread.c (find_thread_by_handle): Likewise. Adjust
8652 implementation too.
8653 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8654 support for buffer objects as handles.
8655
cf63b016
KB
86562019-04-08 Kevin Buettner <kevinb@redhat.com>
8657
8658 * python/py-infthread.c (thpy_thread_handle): New function.
8659 (thread_object_methods): Register thpy_thread_handle.
8660
3d6c6204
KB
86612019-04-08 Kevin Buettner <kevinb@redhat.com>
8662
8663 * gdbthread.h (thread_to_thread_handle): Declare.
8664 * thread.c (gdbtypes.h): Include.
8665 (thread_to_thread_handle): New function.
8666
8667 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8668 (target_thread_info_to_thread_handle): Declare.
8669 * target.c (target_thread_info_to_thread_handle): New function.
8670 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8671 * target-delegates.c: Regenerate.
8672
8673 * linux-thread-db.c (class thread_db_target): Add method
8674 thread_info_to_thread_handle.
8675 (thread_db_target::thread_info_to_thread_handle): Define.
8676 * remote.c (class remote_target): Add new method
8677 thread_info_to_thread_handle.
8678 (remote_target::thread_info_to_thread_handle): Define.
8679
56be6ea8
PA
86802019-04-08 Pedro Alves <palves@redhat.com>
8681
8682 * common/common-exceptions.c (throw_exception): Don't create
8683 named object to throw; throw directly.
8684 (throw_it): Likewise. Don't initialize gdb_exception::message
8685 here, with new; pass FMT and AP to the ctor instead.
8686 * common/common-exceptions.h: Include <string>.
8687 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8688 const char *, va_list)): New ctor. Use std::make_shared.
8689 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8690 errors)): Delete.
8691 (gdb_exception_error::gdb_exception_error(enum errors, const char
8692 *, va_list)): New.
8693 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8694 Add assertion.
8695 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8696 errors)): Delete.
8697 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8698 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8699 Add assertion.
8700
eedc3f4f
TT
87012019-04-08 Tom Tromey <tom@tromey.com>
8702
8703 * valops.c (value_rtti_indirect_type): Replace throw_exception
8704 with throw.
8705 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8706 with throw.
8707 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8708 throw.
8709 * target.c (target_translate_tls_address): Replace throw_exception
8710 with throw.
8711 * stack.c (frame_apply_command_count): Replace throw_exception
8712 with throw.
8713 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8714 throw.
8715 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8716 with throw.
8717 * rs6000-tdep.c (rs6000_frame_cache)
8718 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8719 * remote.c: Replace throw_exception with throw.
8720 * record-full.c (record_full_message, record_full_wait_1)
8721 (record_full_restore): Replace throw_exception with throw.
8722 * record-btrace.c:
8723 (get_thread_current_frame_id, record_btrace_start_replaying)
8724 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8725 (cmd_record_btrace_start): Replace throw_exception with throw.
8726 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8727 throw.
8728 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8729 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8730 * linespec.c:
8731 (find_linespec_symbols): Replace throw_exception with throw.
8732 * infrun.c (displaced_step_prepare, resume): Replace
8733 throw_exception with throw.
8734 * infcmd.c (post_create_inferior): Replace throw_exception with
8735 throw.
8736 * inf-loop.c (inferior_event_handler): Replace throw_exception
8737 with throw.
8738 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8739 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8740 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8741 (get_prev_frame_always, get_frame_pc_if_available)
8742 (get_frame_address_in_block_if_available, get_frame_language):
8743 Replace throw_exception with throw.
8744 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8745 throw_exception with throw.
8746 * eval.c (fetch_subexp_value, evaluate_var_value)
8747 (evaluate_funcall, evaluate_subexp_standard): Replace
8748 throw_exception with throw.
8749 * dwarf2loc.c (call_site_find_chain)
8750 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8751 Replace throw_exception with throw.
8752 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8753 with throw.
8754 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8755 throw.
8756 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8757 * completer.c (complete_line_internal): Replace throw_exception
8758 with throw.
8759 * compile/compile-object-run.c (compile_object_run): Replace
8760 throw_exception with throw.
8761 * cli/cli-script.c (process_next_line): Replace throw_exception
8762 with throw.
8763 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8764 (btrace_enable, btrace_maint_update_pt_packets): Replace
8765 throw_exception with throw.
8766 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8767 throw_exception with throw.
8768 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8769 throw_exception with throw.
8770 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8771 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8772 * aarch64-tdep.c (aarch64_make_prologue_cache)
8773 (aarch64_make_stub_cache): Replace throw_exception with throw.
8774
26003a20
TT
87752019-04-08 Tom Tromey <tom@tromey.com>
8776
8777 * common/common-exceptions.c (throw_exception): Rename from
8778 throw_exception_cxx. Remove old copy. Make argument const.
8779 (throw_it): Create and throw exception objects directly.
8780 * common/common-exceptions.h (throw_exception): Make argument
8781 const.
8782 (struct gdb_exception_error): Add constructor.
8783 (struct gdb_exception_quit): Add constructor.
8784
d272eb37
TT
87852019-04-08 Tom Tromey <tom@tromey.com>
8786
8787 * common/common-exceptions.h (exception_rethrow): Don't declare.
8788 (TRY_SJLJ): Update comment.
8789 (TRY, CATCH, END_CATCH): Remove.
8790 * common/common-exceptions.c (exception_rethrow): Remove.
8791
230d2906
TT
87922019-04-08 Tom Tromey <tom@tromey.com>
8793
8794 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8795 Remove.
8796 (gdb_exception_error): Rename from
8797 gdb_exception_RETURN_MASK_ERROR.
8798 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8799 (gdb_quit_bad_alloc): Update.
8800 * aarch64-tdep.c: Update.
8801 * ada-lang.c: Update.
8802 * ada-typeprint.c: Update.
8803 * ada-valprint.c: Update.
8804 * amd64-tdep.c: Update.
8805 * arch-utils.c: Update.
8806 * break-catch-throw.c: Update.
8807 * breakpoint.c: Update.
8808 * btrace.c: Update.
8809 * c-varobj.c: Update.
8810 * cli/cli-cmds.c: Update.
8811 * cli/cli-interp.c: Update.
8812 * cli/cli-script.c: Update.
8813 * common/common-exceptions.c: Update.
8814 * common/new-op.c: Update.
8815 * common/selftest.c: Update.
8816 * compile/compile-c-symbols.c: Update.
8817 * compile/compile-cplus-symbols.c: Update.
8818 * compile/compile-object-load.c: Update.
8819 * compile/compile-object-run.c: Update.
8820 * completer.c: Update.
8821 * corelow.c: Update.
8822 * cp-abi.c: Update.
8823 * cp-support.c: Update.
8824 * cp-valprint.c: Update.
8825 * darwin-nat.c: Update.
8826 * disasm-selftests.c: Update.
8827 * dtrace-probe.c: Update.
8828 * dwarf-index-cache.c: Update.
8829 * dwarf-index-write.c: Update.
8830 * dwarf2-frame-tailcall.c: Update.
8831 * dwarf2-frame.c: Update.
8832 * dwarf2loc.c: Update.
8833 * dwarf2read.c: Update.
8834 * eval.c: Update.
8835 * event-loop.c: Update.
8836 * event-top.c: Update.
8837 * exec.c: Update.
8838 * f-valprint.c: Update.
8839 * fbsd-tdep.c: Update.
8840 * frame-unwind.c: Update.
8841 * frame.c: Update.
8842 * gdbtypes.c: Update.
8843 * gnu-v3-abi.c: Update.
8844 * guile/guile-internal.h: Update.
8845 * guile/scm-block.c: Update.
8846 * guile/scm-breakpoint.c: Update.
8847 * guile/scm-cmd.c: Update.
8848 * guile/scm-disasm.c: Update.
8849 * guile/scm-frame.c: Update.
8850 * guile/scm-lazy-string.c: Update.
8851 * guile/scm-math.c: Update.
8852 * guile/scm-param.c: Update.
8853 * guile/scm-ports.c: Update.
8854 * guile/scm-pretty-print.c: Update.
8855 * guile/scm-symbol.c: Update.
8856 * guile/scm-symtab.c: Update.
8857 * guile/scm-type.c: Update.
8858 * guile/scm-value.c: Update.
8859 * i386-linux-tdep.c: Update.
8860 * i386-tdep.c: Update.
8861 * inf-loop.c: Update.
8862 * infcall.c: Update.
8863 * infcmd.c: Update.
8864 * infrun.c: Update.
8865 * jit.c: Update.
8866 * language.c: Update.
8867 * linespec.c: Update.
8868 * linux-fork.c: Update.
8869 * linux-nat.c: Update.
8870 * linux-tdep.c: Update.
8871 * linux-thread-db.c: Update.
8872 * main.c: Update.
8873 * mi/mi-cmd-break.c: Update.
8874 * mi/mi-cmd-stack.c: Update.
8875 * mi/mi-interp.c: Update.
8876 * mi/mi-main.c: Update.
8877 * objc-lang.c: Update.
8878 * p-valprint.c: Update.
8879 * parse.c: Update.
8880 * ppc-linux-tdep.c: Update.
8881 * printcmd.c: Update.
8882 * python/py-arch.c: Update.
8883 * python/py-breakpoint.c: Update.
8884 * python/py-cmd.c: Update.
8885 * python/py-finishbreakpoint.c: Update.
8886 * python/py-frame.c: Update.
8887 * python/py-framefilter.c: Update.
8888 * python/py-gdb-readline.c: Update.
8889 * python/py-inferior.c: Update.
8890 * python/py-infthread.c: Update.
8891 * python/py-lazy-string.c: Update.
8892 * python/py-linetable.c: Update.
8893 * python/py-objfile.c: Update.
8894 * python/py-param.c: Update.
8895 * python/py-prettyprint.c: Update.
8896 * python/py-progspace.c: Update.
8897 * python/py-record-btrace.c: Update.
8898 * python/py-record.c: Update.
8899 * python/py-symbol.c: Update.
8900 * python/py-type.c: Update.
8901 * python/py-unwind.c: Update.
8902 * python/py-utils.c: Update.
8903 * python/py-value.c: Update.
8904 * python/python.c: Update.
8905 * record-btrace.c: Update.
8906 * record-full.c: Update.
8907 * remote-fileio.c: Update.
8908 * remote.c: Update.
8909 * riscv-tdep.c: Update.
8910 * rs6000-aix-tdep.c: Update.
8911 * rs6000-tdep.c: Update.
8912 * rust-exp.y: Update.
8913 * rust-lang.c: Update.
8914 * s390-tdep.c: Update.
8915 * selftest-arch.c: Update.
8916 * solib-dsbt.c: Update.
8917 * solib-frv.c: Update.
8918 * solib-spu.c: Update.
8919 * solib-svr4.c: Update.
8920 * solib.c: Update.
8921 * sparc64-linux-tdep.c: Update.
8922 * stack.c: Update.
8923 * symfile-mem.c: Update.
8924 * symmisc.c: Update.
8925 * target.c: Update.
8926 * thread.c: Update.
8927 * top.c: Update.
8928 * tracefile-tfile.c: Update.
8929 * tui/tui.c: Update.
8930 * typeprint.c: Update.
8931 * unittests/cli-utils-selftests.c: Update.
8932 * unittests/parse-connection-spec-selftests.c: Update.
8933 * valops.c: Update.
8934 * valprint.c: Update.
8935 * value.c: Update.
8936 * varobj.c: Update.
8937 * windows-nat.c: Update.
8938 * x86-linux-nat.c: Update.
8939 * xml-support.c: Update.
8940
a70b8144
TT
89412019-04-08 Tom Tromey <tom@tromey.com>
8942
8943 * xml-support.c: Use C++ exception handling.
8944 * x86-linux-nat.c: Use C++ exception handling.
8945 * windows-nat.c: Use C++ exception handling.
8946 * varobj.c: Use C++ exception handling.
8947 * value.c: Use C++ exception handling.
8948 * valprint.c: Use C++ exception handling.
8949 * valops.c: Use C++ exception handling.
8950 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8951 handling.
8952 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8953 * typeprint.c: Use C++ exception handling.
8954 * tui/tui.c: Use C++ exception handling.
8955 * tracefile-tfile.c: Use C++ exception handling.
8956 * top.c: Use C++ exception handling.
8957 * thread.c: Use C++ exception handling.
8958 * target.c: Use C++ exception handling.
8959 * symmisc.c: Use C++ exception handling.
8960 * symfile-mem.c: Use C++ exception handling.
8961 * stack.c: Use C++ exception handling.
8962 * sparc64-linux-tdep.c: Use C++ exception handling.
8963 * solib.c: Use C++ exception handling.
8964 * solib-svr4.c: Use C++ exception handling.
8965 * solib-spu.c: Use C++ exception handling.
8966 * solib-frv.c: Use C++ exception handling.
8967 * solib-dsbt.c: Use C++ exception handling.
8968 * selftest-arch.c: Use C++ exception handling.
8969 * s390-tdep.c: Use C++ exception handling.
8970 * rust-lang.c: Use C++ exception handling.
8971 * rust-exp.y: Use C++ exception handling.
8972 * rs6000-tdep.c: Use C++ exception handling.
8973 * rs6000-aix-tdep.c: Use C++ exception handling.
8974 * riscv-tdep.c: Use C++ exception handling.
8975 * remote.c: Use C++ exception handling.
8976 * remote-fileio.c: Use C++ exception handling.
8977 * record-full.c: Use C++ exception handling.
8978 * record-btrace.c: Use C++ exception handling.
8979 * python/python.c: Use C++ exception handling.
8980 * python/py-value.c: Use C++ exception handling.
8981 * python/py-utils.c: Use C++ exception handling.
8982 * python/py-unwind.c: Use C++ exception handling.
8983 * python/py-type.c: Use C++ exception handling.
8984 * python/py-symbol.c: Use C++ exception handling.
8985 * python/py-record.c: Use C++ exception handling.
8986 * python/py-record-btrace.c: Use C++ exception handling.
8987 * python/py-progspace.c: Use C++ exception handling.
8988 * python/py-prettyprint.c: Use C++ exception handling.
8989 * python/py-param.c: Use C++ exception handling.
8990 * python/py-objfile.c: Use C++ exception handling.
8991 * python/py-linetable.c: Use C++ exception handling.
8992 * python/py-lazy-string.c: Use C++ exception handling.
8993 * python/py-infthread.c: Use C++ exception handling.
8994 * python/py-inferior.c: Use C++ exception handling.
8995 * python/py-gdb-readline.c: Use C++ exception handling.
8996 * python/py-framefilter.c: Use C++ exception handling.
8997 * python/py-frame.c: Use C++ exception handling.
8998 * python/py-finishbreakpoint.c: Use C++ exception handling.
8999 * python/py-cmd.c: Use C++ exception handling.
9000 * python/py-breakpoint.c: Use C++ exception handling.
9001 * python/py-arch.c: Use C++ exception handling.
9002 * printcmd.c: Use C++ exception handling.
9003 * ppc-linux-tdep.c: Use C++ exception handling.
9004 * parse.c: Use C++ exception handling.
9005 * p-valprint.c: Use C++ exception handling.
9006 * objc-lang.c: Use C++ exception handling.
9007 * mi/mi-main.c: Use C++ exception handling.
9008 * mi/mi-interp.c: Use C++ exception handling.
9009 * mi/mi-cmd-stack.c: Use C++ exception handling.
9010 * mi/mi-cmd-break.c: Use C++ exception handling.
9011 * main.c: Use C++ exception handling.
9012 * linux-thread-db.c: Use C++ exception handling.
9013 * linux-tdep.c: Use C++ exception handling.
9014 * linux-nat.c: Use C++ exception handling.
9015 * linux-fork.c: Use C++ exception handling.
9016 * linespec.c: Use C++ exception handling.
9017 * language.c: Use C++ exception handling.
9018 * jit.c: Use C++ exception handling.
9019 * infrun.c: Use C++ exception handling.
9020 * infcmd.c: Use C++ exception handling.
9021 * infcall.c: Use C++ exception handling.
9022 * inf-loop.c: Use C++ exception handling.
9023 * i386-tdep.c: Use C++ exception handling.
9024 * i386-linux-tdep.c: Use C++ exception handling.
9025 * guile/scm-value.c: Use C++ exception handling.
9026 * guile/scm-type.c: Use C++ exception handling.
9027 * guile/scm-symtab.c: Use C++ exception handling.
9028 * guile/scm-symbol.c: Use C++ exception handling.
9029 * guile/scm-pretty-print.c: Use C++ exception handling.
9030 * guile/scm-ports.c: Use C++ exception handling.
9031 * guile/scm-param.c: Use C++ exception handling.
9032 * guile/scm-math.c: Use C++ exception handling.
9033 * guile/scm-lazy-string.c: Use C++ exception handling.
9034 * guile/scm-frame.c: Use C++ exception handling.
9035 * guile/scm-disasm.c: Use C++ exception handling.
9036 * guile/scm-cmd.c: Use C++ exception handling.
9037 * guile/scm-breakpoint.c: Use C++ exception handling.
9038 * guile/scm-block.c: Use C++ exception handling.
9039 * guile/guile-internal.h: Use C++ exception handling.
9040 * gnu-v3-abi.c: Use C++ exception handling.
9041 * gdbtypes.c: Use C++ exception handling.
9042 * frame.c: Use C++ exception handling.
9043 * frame-unwind.c: Use C++ exception handling.
9044 * fbsd-tdep.c: Use C++ exception handling.
9045 * f-valprint.c: Use C++ exception handling.
9046 * exec.c: Use C++ exception handling.
9047 * event-top.c: Use C++ exception handling.
9048 * event-loop.c: Use C++ exception handling.
9049 * eval.c: Use C++ exception handling.
9050 * dwarf2read.c: Use C++ exception handling.
9051 * dwarf2loc.c: Use C++ exception handling.
9052 * dwarf2-frame.c: Use C++ exception handling.
9053 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9054 * dwarf-index-write.c: Use C++ exception handling.
9055 * dwarf-index-cache.c: Use C++ exception handling.
9056 * dtrace-probe.c: Use C++ exception handling.
9057 * disasm-selftests.c: Use C++ exception handling.
9058 * darwin-nat.c: Use C++ exception handling.
9059 * cp-valprint.c: Use C++ exception handling.
9060 * cp-support.c: Use C++ exception handling.
9061 * cp-abi.c: Use C++ exception handling.
9062 * corelow.c: Use C++ exception handling.
9063 * completer.c: Use C++ exception handling.
9064 * compile/compile-object-run.c: Use C++ exception handling.
9065 * compile/compile-object-load.c: Use C++ exception handling.
9066 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9067 * compile/compile-c-symbols.c: Use C++ exception handling.
9068 * common/selftest.c: Use C++ exception handling.
9069 * common/new-op.c: Use C++ exception handling.
9070 * cli/cli-script.c: Use C++ exception handling.
9071 * cli/cli-interp.c: Use C++ exception handling.
9072 * cli/cli-cmds.c: Use C++ exception handling.
9073 * c-varobj.c: Use C++ exception handling.
9074 * btrace.c: Use C++ exception handling.
9075 * breakpoint.c: Use C++ exception handling.
9076 * break-catch-throw.c: Use C++ exception handling.
9077 * arch-utils.c: Use C++ exception handling.
9078 * amd64-tdep.c: Use C++ exception handling.
9079 * ada-valprint.c: Use C++ exception handling.
9080 * ada-typeprint.c: Use C++ exception handling.
9081 * ada-lang.c: Use C++ exception handling.
9082 * aarch64-tdep.c: Use C++ exception handling.
9083
3d6e9d23
TT
90842019-04-08 Tom Tromey <tom@tromey.com>
9085
9086 * xml-support.c (gdb_xml_parser::parse): Update.
9087 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9088 * value.c (show_convenience): Update.
9089 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9090 (test_parse_flags_qcs): Update.
9091 * thread.c (thr_try_catch_cmd): Update.
9092 * target.c (target_translate_tls_address): Update.
9093 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9094 (info_frame_command_core, frame_apply_command_count): Update.
9095 * rust-exp.y (rust_lex_exception_test): Update.
9096 * riscv-tdep.c (riscv_print_one_register_info): Update.
9097 * remote.c (remote_target::enable_btrace): Update.
9098 * record-btrace.c (record_btrace_enable_warn): Update.
9099 * python/py-utils.c (gdbpy_convert_exception): Update.
9100 * printcmd.c (do_one_display, print_variable_and_value): Update.
9101 * mi/mi-main.c (mi_print_exception): Update.
9102 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9103 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9104 * linux-nat.c (linux_nat_target::attach): Update.
9105 * linux-fork.c (class scoped_switch_fork_info): Update.
9106 * infrun.c (displaced_step_prepare): Update.
9107 * infcall.c (call_function_by_hand_dummy): Update.
9108 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9109 * gnu-v3-abi.c (print_one_vtable): Update.
9110 * frame.c (get_prev_frame_always): Update.
9111 * f-valprint.c (info_common_command_for_block): Update.
9112 * exec.c (try_open_exec_file): Update.
9113 * exceptions.c (print_exception, exception_print)
9114 (exception_fprintf, exception_print_same): Update.
9115 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9116 * dwarf-index-cache.c (index_cache::store)
9117 (index_cache::lookup_gdb_index): Update.
9118 * darwin-nat.c (maybe_cache_shell): Update.
9119 * cp-valprint.c (cp_print_value_fields): Update.
9120 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9121 (gcc_cplus_symbol_address): Update.
9122 * compile/compile-c-symbols.c (gcc_convert_symbol)
9123 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9124 * common/selftest.c: Update.
9125 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9126 a std::string.
9127 (exception_try_scope_entry, exception_try_scope_exit): Don't
9128 declare.
9129 (struct exception_try_scope): Remove.
9130 (TRY): Don't use exception_try_scope.
9131 (struct gdb_exception): Add constructor, operator=.
9132 <what>: New method.
9133 (struct gdb_exception_RETURN_MASK_ALL)
9134 (struct gdb_exception_RETURN_MASK_ERROR)
9135 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9136 (struct gdb_quit_bad_alloc): Update.
9137 * common/common-exceptions.c (exception_none): Change
9138 initializer.
9139 (struct catcher) <state, exception>: Initialize inline.
9140 <prev>: Remove member.
9141 (current_catcher): Remove.
9142 (catchers): New global.
9143 (exceptions_state_mc_init): Simplify.
9144 (catcher_pop): Remove.
9145 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9146 (try_scope_depth, exception_try_scope_entry)
9147 (exception_try_scope_exit): Remove.
9148 (throw_exception_sjlj): Update.
9149 (exception_messages, exception_messages_size): Remove.
9150 (throw_it): Simplify.
9151 (gdb_exception_sliced_copy): Remove.
9152 (throw_exception_cxx): Update.
9153 * cli/cli-script.c (script_from_file): Update.
9154 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9155 Update.
9156 * ada-valprint.c (ada_val_print): Update.
9157 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9158 (create_excep_cond_exprs): Update.
9159
c5c10118
TT
91602019-04-08 Tom Tromey <tom@tromey.com>
9161
9162 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9163 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9164 (TRY, CATCH, END_CATCH): Remove some definitions.
9165 * common/common-exceptions.c: Don't use GDB_XCPT.
9166 (catcher_list_size): Remove.
9167 (throw_exception, throw_it): Simplify.
9168
4de283e4
TT
91692019-04-05 Tom Tromey <tom@tromey.com>
9170
9171 Revert the header-sorting patch.
9172 * ft32-tdep.c: Revert.
9173 * frv-tdep.c: Revert.
9174 * frv-linux-tdep.c: Revert.
9175 * frame.c: Revert.
9176 * frame-unwind.c: Revert.
9177 * frame-base.c: Revert.
9178 * fork-child.c: Revert.
9179 * findvar.c: Revert.
9180 * findcmd.c: Revert.
9181 * filesystem.c: Revert.
9182 * filename-seen-cache.h: Revert.
9183 * filename-seen-cache.c: Revert.
9184 * fbsd-tdep.c: Revert.
9185 * fbsd-nat.h: Revert.
9186 * fbsd-nat.c: Revert.
9187 * f-valprint.c: Revert.
9188 * f-typeprint.c: Revert.
9189 * f-lang.c: Revert.
9190 * extension.h: Revert.
9191 * extension.c: Revert.
9192 * extension-priv.h: Revert.
9193 * expprint.c: Revert.
9194 * exec.h: Revert.
9195 * exec.c: Revert.
9196 * exceptions.c: Revert.
9197 * event-top.c: Revert.
9198 * event-loop.c: Revert.
9199 * eval.c: Revert.
9200 * elfread.c: Revert.
9201 * dwarf2read.h: Revert.
9202 * dwarf2read.c: Revert.
9203 * dwarf2loc.c: Revert.
9204 * dwarf2expr.h: Revert.
9205 * dwarf2expr.c: Revert.
9206 * dwarf2-frame.c: Revert.
9207 * dwarf2-frame-tailcall.c: Revert.
9208 * dwarf-index-write.h: Revert.
9209 * dwarf-index-write.c: Revert.
9210 * dwarf-index-common.c: Revert.
9211 * dwarf-index-cache.h: Revert.
9212 * dwarf-index-cache.c: Revert.
9213 * dummy-frame.c: Revert.
9214 * dtrace-probe.c: Revert.
9215 * disasm.h: Revert.
9216 * disasm.c: Revert.
9217 * disasm-selftests.c: Revert.
9218 * dictionary.c: Revert.
9219 * dicos-tdep.c: Revert.
9220 * demangle.c: Revert.
9221 * dcache.h: Revert.
9222 * dcache.c: Revert.
9223 * darwin-nat.h: Revert.
9224 * darwin-nat.c: Revert.
9225 * darwin-nat-info.c: Revert.
9226 * d-valprint.c: Revert.
9227 * d-namespace.c: Revert.
9228 * d-lang.c: Revert.
9229 * ctf.c: Revert.
9230 * csky-tdep.c: Revert.
9231 * csky-linux-tdep.c: Revert.
9232 * cris-tdep.c: Revert.
9233 * cris-linux-tdep.c: Revert.
9234 * cp-valprint.c: Revert.
9235 * cp-support.c: Revert.
9236 * cp-namespace.c: Revert.
9237 * cp-abi.c: Revert.
9238 * corelow.c: Revert.
9239 * corefile.c: Revert.
9240 * continuations.c: Revert.
9241 * completer.h: Revert.
9242 * completer.c: Revert.
9243 * complaints.c: Revert.
9244 * coffread.c: Revert.
9245 * coff-pe-read.c: Revert.
9246 * cli-out.h: Revert.
9247 * cli-out.c: Revert.
9248 * charset.c: Revert.
9249 * c-varobj.c: Revert.
9250 * c-valprint.c: Revert.
9251 * c-typeprint.c: Revert.
9252 * c-lang.c: Revert.
9253 * buildsym.c: Revert.
9254 * buildsym-legacy.c: Revert.
9255 * build-id.h: Revert.
9256 * build-id.c: Revert.
9257 * btrace.c: Revert.
9258 * bsd-uthread.c: Revert.
9259 * breakpoint.h: Revert.
9260 * breakpoint.c: Revert.
9261 * break-catch-throw.c: Revert.
9262 * break-catch-syscall.c: Revert.
9263 * break-catch-sig.c: Revert.
9264 * blockframe.c: Revert.
9265 * block.c: Revert.
9266 * bfin-tdep.c: Revert.
9267 * bfin-linux-tdep.c: Revert.
9268 * bfd-target.c: Revert.
9269 * bcache.c: Revert.
9270 * ax-general.c: Revert.
9271 * ax-gdb.h: Revert.
9272 * ax-gdb.c: Revert.
9273 * avr-tdep.c: Revert.
9274 * auxv.c: Revert.
9275 * auto-load.c: Revert.
9276 * arm-wince-tdep.c: Revert.
9277 * arm-tdep.c: Revert.
9278 * arm-symbian-tdep.c: Revert.
9279 * arm-pikeos-tdep.c: Revert.
9280 * arm-obsd-tdep.c: Revert.
9281 * arm-nbsd-tdep.c: Revert.
9282 * arm-nbsd-nat.c: Revert.
9283 * arm-linux-tdep.c: Revert.
9284 * arm-linux-nat.c: Revert.
9285 * arm-fbsd-tdep.c: Revert.
9286 * arm-fbsd-nat.c: Revert.
9287 * arm-bsd-tdep.c: Revert.
9288 * arch-utils.c: Revert.
9289 * arc-tdep.c: Revert.
9290 * arc-newlib-tdep.c: Revert.
9291 * annotate.h: Revert.
9292 * annotate.c: Revert.
9293 * amd64-windows-tdep.c: Revert.
9294 * amd64-windows-nat.c: Revert.
9295 * amd64-tdep.c: Revert.
9296 * amd64-sol2-tdep.c: Revert.
9297 * amd64-obsd-tdep.c: Revert.
9298 * amd64-obsd-nat.c: Revert.
9299 * amd64-nbsd-tdep.c: Revert.
9300 * amd64-nbsd-nat.c: Revert.
9301 * amd64-nat.c: Revert.
9302 * amd64-linux-tdep.c: Revert.
9303 * amd64-linux-nat.c: Revert.
9304 * amd64-fbsd-tdep.c: Revert.
9305 * amd64-fbsd-nat.c: Revert.
9306 * amd64-dicos-tdep.c: Revert.
9307 * amd64-darwin-tdep.c: Revert.
9308 * amd64-bsd-nat.c: Revert.
9309 * alpha-tdep.c: Revert.
9310 * alpha-obsd-tdep.c: Revert.
9311 * alpha-nbsd-tdep.c: Revert.
9312 * alpha-mdebug-tdep.c: Revert.
9313 * alpha-linux-tdep.c: Revert.
9314 * alpha-linux-nat.c: Revert.
9315 * alpha-bsd-tdep.c: Revert.
9316 * alpha-bsd-nat.c: Revert.
9317 * aix-thread.c: Revert.
9318 * agent.c: Revert.
9319 * addrmap.c: Revert.
9320 * ada-varobj.c: Revert.
9321 * ada-valprint.c: Revert.
9322 * ada-typeprint.c: Revert.
9323 * ada-tasks.c: Revert.
9324 * ada-lang.c: Revert.
9325 * aarch64-tdep.c: Revert.
9326 * aarch64-ravenscar-thread.c: Revert.
9327 * aarch64-newlib-tdep.c: Revert.
9328 * aarch64-linux-tdep.c: Revert.
9329 * aarch64-linux-nat.c: Revert.
9330 * aarch64-fbsd-tdep.c: Revert.
9331 * aarch64-fbsd-nat.c: Revert.
9332 * aarch32-linux-nat.c: Revert.
9333
d55e5aa6
TT
93342019-04-05 Tom Tromey <tom@tromey.com>
9335
9336 * ft32-tdep.c: Sort headers.
9337 * frv-tdep.c: Sort headers.
9338 * frv-linux-tdep.c: Sort headers.
9339 * frame.c: Sort headers.
9340 * frame-unwind.c: Sort headers.
9341 * frame-base.c: Sort headers.
9342 * fork-child.c: Sort headers.
9343 * findvar.c: Sort headers.
9344 * findcmd.c: Sort headers.
9345 * filesystem.c: Sort headers.
9346 * filename-seen-cache.h: Sort headers.
9347 * filename-seen-cache.c: Sort headers.
9348 * fbsd-tdep.c: Sort headers.
9349 * fbsd-nat.h: Sort headers.
9350 * fbsd-nat.c: Sort headers.
9351 * f-valprint.c: Sort headers.
9352 * f-typeprint.c: Sort headers.
9353 * f-lang.c: Sort headers.
9354 * extension.h: Sort headers.
9355 * extension.c: Sort headers.
9356 * extension-priv.h: Sort headers.
9357 * expprint.c: Sort headers.
9358 * exec.h: Sort headers.
9359 * exec.c: Sort headers.
9360 * exceptions.c: Sort headers.
9361 * event-top.c: Sort headers.
9362 * event-loop.c: Sort headers.
9363 * eval.c: Sort headers.
9364 * elfread.c: Sort headers.
9365 * dwarf2read.h: Sort headers.
9366 * dwarf2read.c: Sort headers.
9367 * dwarf2loc.c: Sort headers.
9368 * dwarf2expr.h: Sort headers.
9369 * dwarf2expr.c: Sort headers.
9370 * dwarf2-frame.c: Sort headers.
9371 * dwarf2-frame-tailcall.c: Sort headers.
9372 * dwarf-index-write.h: Sort headers.
9373 * dwarf-index-write.c: Sort headers.
9374 * dwarf-index-common.c: Sort headers.
9375 * dwarf-index-cache.h: Sort headers.
9376 * dwarf-index-cache.c: Sort headers.
9377 * dummy-frame.c: Sort headers.
9378 * dtrace-probe.c: Sort headers.
9379 * disasm.h: Sort headers.
9380 * disasm.c: Sort headers.
9381 * disasm-selftests.c: Sort headers.
9382 * dictionary.c: Sort headers.
9383 * dicos-tdep.c: Sort headers.
9384 * demangle.c: Sort headers.
9385 * dcache.h: Sort headers.
9386 * dcache.c: Sort headers.
9387 * darwin-nat.h: Sort headers.
9388 * darwin-nat.c: Sort headers.
9389 * darwin-nat-info.c: Sort headers.
9390 * d-valprint.c: Sort headers.
9391 * d-namespace.c: Sort headers.
9392 * d-lang.c: Sort headers.
9393 * ctf.c: Sort headers.
9394 * csky-tdep.c: Sort headers.
9395 * csky-linux-tdep.c: Sort headers.
9396 * cris-tdep.c: Sort headers.
9397 * cris-linux-tdep.c: Sort headers.
9398 * cp-valprint.c: Sort headers.
9399 * cp-support.c: Sort headers.
9400 * cp-namespace.c: Sort headers.
9401 * cp-abi.c: Sort headers.
9402 * corelow.c: Sort headers.
9403 * corefile.c: Sort headers.
9404 * continuations.c: Sort headers.
9405 * completer.h: Sort headers.
9406 * completer.c: Sort headers.
9407 * complaints.c: Sort headers.
9408 * coffread.c: Sort headers.
9409 * coff-pe-read.c: Sort headers.
9410 * cli-out.h: Sort headers.
9411 * cli-out.c: Sort headers.
9412 * charset.c: Sort headers.
9413 * c-varobj.c: Sort headers.
9414 * c-valprint.c: Sort headers.
9415 * c-typeprint.c: Sort headers.
9416 * c-lang.c: Sort headers.
9417 * buildsym.c: Sort headers.
9418 * buildsym-legacy.c: Sort headers.
9419 * build-id.h: Sort headers.
9420 * build-id.c: Sort headers.
9421 * btrace.c: Sort headers.
9422 * bsd-uthread.c: Sort headers.
9423 * breakpoint.h: Sort headers.
9424 * breakpoint.c: Sort headers.
9425 * break-catch-throw.c: Sort headers.
9426 * break-catch-syscall.c: Sort headers.
9427 * break-catch-sig.c: Sort headers.
9428 * blockframe.c: Sort headers.
9429 * block.c: Sort headers.
9430 * bfin-tdep.c: Sort headers.
9431 * bfin-linux-tdep.c: Sort headers.
9432 * bfd-target.c: Sort headers.
9433 * bcache.c: Sort headers.
9434 * ax-general.c: Sort headers.
9435 * ax-gdb.h: Sort headers.
9436 * ax-gdb.c: Sort headers.
9437 * avr-tdep.c: Sort headers.
9438 * auxv.c: Sort headers.
9439 * auto-load.c: Sort headers.
9440 * arm-wince-tdep.c: Sort headers.
9441 * arm-tdep.c: Sort headers.
9442 * arm-symbian-tdep.c: Sort headers.
9443 * arm-pikeos-tdep.c: Sort headers.
9444 * arm-obsd-tdep.c: Sort headers.
9445 * arm-nbsd-tdep.c: Sort headers.
9446 * arm-nbsd-nat.c: Sort headers.
9447 * arm-linux-tdep.c: Sort headers.
9448 * arm-linux-nat.c: Sort headers.
9449 * arm-fbsd-tdep.c: Sort headers.
9450 * arm-fbsd-nat.c: Sort headers.
9451 * arm-bsd-tdep.c: Sort headers.
9452 * arch-utils.c: Sort headers.
9453 * arc-tdep.c: Sort headers.
9454 * arc-newlib-tdep.c: Sort headers.
9455 * annotate.h: Sort headers.
9456 * annotate.c: Sort headers.
9457 * amd64-windows-tdep.c: Sort headers.
9458 * amd64-windows-nat.c: Sort headers.
9459 * amd64-tdep.c: Sort headers.
9460 * amd64-sol2-tdep.c: Sort headers.
9461 * amd64-obsd-tdep.c: Sort headers.
9462 * amd64-obsd-nat.c: Sort headers.
9463 * amd64-nbsd-tdep.c: Sort headers.
9464 * amd64-nbsd-nat.c: Sort headers.
9465 * amd64-nat.c: Sort headers.
9466 * amd64-linux-tdep.c: Sort headers.
9467 * amd64-linux-nat.c: Sort headers.
9468 * amd64-fbsd-tdep.c: Sort headers.
9469 * amd64-fbsd-nat.c: Sort headers.
9470 * amd64-dicos-tdep.c: Sort headers.
9471 * amd64-darwin-tdep.c: Sort headers.
9472 * amd64-bsd-nat.c: Sort headers.
9473 * alpha-tdep.c: Sort headers.
9474 * alpha-obsd-tdep.c: Sort headers.
9475 * alpha-nbsd-tdep.c: Sort headers.
9476 * alpha-mdebug-tdep.c: Sort headers.
9477 * alpha-linux-tdep.c: Sort headers.
9478 * alpha-linux-nat.c: Sort headers.
9479 * alpha-bsd-tdep.c: Sort headers.
9480 * alpha-bsd-nat.c: Sort headers.
9481 * aix-thread.c: Sort headers.
9482 * agent.c: Sort headers.
9483 * addrmap.c: Sort headers.
9484 * ada-varobj.c: Sort headers.
9485 * ada-valprint.c: Sort headers.
9486 * ada-typeprint.c: Sort headers.
9487 * ada-tasks.c: Sort headers.
9488 * ada-lang.c: Sort headers.
9489 * aarch64-tdep.c: Sort headers.
9490 * aarch64-ravenscar-thread.c: Sort headers.
9491 * aarch64-newlib-tdep.c: Sort headers.
9492 * aarch64-linux-tdep.c: Sort headers.
9493 * aarch64-linux-nat.c: Sort headers.
9494 * aarch64-fbsd-tdep.c: Sort headers.
9495 * aarch64-fbsd-nat.c: Sort headers.
9496 * aarch32-linux-nat.c: Sort headers.
9497
699bd4cf
TT
94982019-04-04 Tom Tromey <tom@tromey.com>
9499
9500 * varobj.c (varobj_create): Update.
9501 * rust-exp.y (struct rust_parser) <update_innermost_block,
9502 lookup_symbol>: New methods.
9503 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9504 Rename.
9505 (rust_parser::rust_lookup_type)
9506 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9507 * printcmd.c (display_command, do_one_display): Update.
9508 * parser-defs.h (struct parser_state) <parser_state>: Add
9509 "tracker" parameter.
9510 (block_tracker): New member.
9511 (class innermost_block_tracker) <innermost_block_tracker>: Add
9512 "types" parameter.
9513 <reset>: Remove method.
9514 (innermost_block): Don't declare.
9515 (null_post_parser): Update.
9516 * parse.c (innermost_block): Remove global.
9517 (write_dollar_variable): Update.
9518 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9519 Remove "tracker_types" parameter.
9520 (parse_expression): Add "tracker" parameter.
9521 (parse_expression_for_completion): Update.
9522 (null_post_parser): Add "tracker" parameter.
9523 * p-exp.y: Update rules.
9524 * m2-exp.y: Update rules.
9525 * language.h (struct language_defn) <la_post_parser>: Add
9526 "tracker" parameter.
9527 * go-exp.y: Update rules.
9528 * f-exp.y: Update rules.
9529 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9530 parameter.
9531 * d-exp.y: Update rules.
9532 * c-exp.y: Update rules.
9533 * breakpoint.c (set_breakpoint_condition): Create an
9534 innermost_block_tracker.
9535 (watch_command_1): Likewise.
9536 * ada-lang.c (resolve): Add "tracker" parameter.
9537 (resolve_subexp): Likewise.
9538 * ada-exp.y (write_var_from_sym): Update.
9539
dac43e32
TT
95402019-04-04 Tom Tromey <tom@tromey.com>
9541
9542 * type-stack.h: New file.
9543 * type-stack.c: New file.
9544 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9545 type-stack.h.
9546 (insert_into_type_stack, insert_type, push_type, push_type_int)
9547 (insert_type_address_space, pop_type, pop_type_int)
9548 (pop_typelist, pop_type_stack, append_type_stack)
9549 (push_type_stack, get_type_stack, push_typelist)
9550 (follow_type_instance_flags, follow_types): Don't declare.
9551 * parse.c (type_stack): Remove global.
9552 (parse_exp_in_context): Update.
9553 (insert_into_type_stack, insert_type, push_type, push_type_int)
9554 (insert_type_address_space, pop_type, pop_type_int)
9555 (pop_typelist, pop_type_stack, append_type_stack)
9556 (push_type_stack, get_type_stack, push_typelist)
9557 (follow_type_instance_flags, follow_types): Remove (moved to
9558 type-stack.c).
9559 * f-exp.y (type_stack): New global.
9560 Update rules.
9561 (push_kind_type, f_parse): Update.
9562 * d-exp.y (type_stack): New global.
9563 Update rules.
9564 (d_parse): Update.
9565 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9566 Update rules.
9567 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9568 (HFILES_NO_SRCDIR): Add type-stack.h.
9569
2a612529
TT
95702019-04-04 Tom Tromey <tom@tromey.com>
9571
9572 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9573 (rust_parser::convert_ast_to_expression, rust_parse)
9574 (rust_lex_test_completion, rust_lex_tests): Update.
9575 * parser-defs.h (struct expr_completion_state): New.
9576 (struct parser_state) <parser_state>: Add completion parameter.
9577 <mark_struct_expression, mark_completion_tag>: New methods.
9578 <parse_completion, m_completion_state>: New members.
9579 (prefixify_expression, null_post_parser): Update.
9580 (mark_struct_expression, mark_completion_tag): Don't declare.
9581 * parse.c (parse_completion, expout_last_struct)
9582 (expout_tag_completion_type, expout_completion_name): Remove
9583 globals.
9584 (parser_state::mark_struct_expression)
9585 (parser_state::mark_completion_tag): Now methods.
9586 (prefixify_expression): Add last_struct parameter.
9587 (prefixify_subexp): Likewise.
9588 (parse_exp_1): Update.
9589 (parse_exp_in_context): Add cstate parameter. Update.
9590 (parse_expression_for_completion): Create an
9591 expr_completion_state.
9592 (null_post_parser): Add "completion" parameter.
9593 * p-exp.y: Update rules.
9594 (yylex): Update.
9595 * language.h (struct language_defn) <la_post_parser>: Add
9596 "completing" parameter.
9597 * go-exp.y: Update rules.
9598 (lex_one_token): Update.
9599 * expression.h (parse_completion): Don't declare.
9600 * d-exp.y: Update rules.
9601 (lex_one_token): Update rules.
9602 * c-exp.y: Update rules.
9603 (lex_one_token): Update.
9604 * ada-lang.c (resolve): Add "parse_completion" parameter.
9605 (resolve_subexp): Likewise.
9606 (ada_resolve_function): Likewise.
9607
43476f0b
TT
96082019-04-04 Tom Tromey <tom@tromey.com>
9609
9610 * parser-defs.h (struct parser_state) <start_arglist,
9611 end_arglist>: New methods.
9612 <arglist_len, m_funcall_chain>: New members.
9613 (arglist_len, start_arglist, end_arglist): Don't declare.
9614 * parse.c (arglist_len, funcall_chain): Remove global.
9615 (start_arglist, end_arglist): Remove functions.
9616 (parse_exp_in_context): Update.
9617 * p-exp.y: Update rules.
9618 * m2-exp.y: Update rules.
9619 * go-exp.y: Update rules.
9620 * f-exp.y: Update rules.
9621 * d-exp.y: Update rules.
9622 * c-exp.y: Update rules.
9623
5776fca3
TT
96242019-04-04 Tom Tromey <tom@tromey.com>
9625
9626 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9627 lex_operator, push_back>: New methods.
9628 Update all rules.
9629 (rust_parser::lex_hex, lex_escape): Rename and update.
9630 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9631 (rust_parser::lex_operator): Rename and update.
9632 (rust_parser::lex_number, rustyylex, rustyyerror)
9633 (rust_lex_test_init, rust_lex_test_sequence)
9634 (rust_lex_test_push_back, rust_lex_tests): Update.
9635 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9636 parameter.
9637 <lexptr, prev_lexptr>: New members.
9638 (lexptr, prev_lexptr): Don't declare.
9639 * parse.c (lexptr, prev_lexptr): Remove globals.
9640 (parse_exp_in_context): Update.
9641 * p-exp.y (yylex, yyerror): Update.
9642 * m2-exp.y (parse_number, yylex, yyerror): Update.
9643 * go-exp.y (lex_one_token, yyerror): Update.
9644 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9645 * d-exp.y (lex_one_token, yyerror): Update.
9646 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9647 (lex_one_token, yyerror): Update.
9648 * ada-lex.l (YY_INPUT): Update.
9649 (rewind_to_char): Update.
9650 * ada-exp.y (yyerror): Update.
9651
8621b685
TT
96522019-04-04 Tom Tromey <tom@tromey.com>
9653
9654 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9655 * parser-defs.h (struct parser_state) <parser_state>: Add new
9656 parameter.
9657 <comma_terminates>: New member.
9658 (comma_terminates): Don't declare global.
9659 * parse.c (comma_terminates): Remove global.
9660 (parse_exp_in_context): Update.
9661 * p-exp.y (yylex): Update.
9662 * m2-exp.y (yylex): Update.
9663 * go-exp.y (lex_one_token): Update.
9664 * f-exp.y (yylex): Update.
9665 * d-exp.y (lex_one_token): Update.
9666 * c-exp.y (lex_one_token): Update.
9667 * ada-lex.l: Update.
9668
28aaf3fd
TT
96692019-04-04 Tom Tromey <tom@tromey.com>
9670
9671 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9672 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9673 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9674 * parser-defs.h (paren_depth): Don't declare.
9675 * parse.c (paren_depth): Remove global.
9676 (parse_exp_in_context): Update.
9677 * p-exp.y (paren_depth): New global.
9678 (pascal_parse): Initialize it.
9679 * m2-exp.y (paren_depth): New global.
9680 (m2_parse): Initialize it.
9681 * go-exp.y (paren_depth): New global.
9682 (go_parse): Initialize it.
9683 * f-exp.y (paren_depth): New global.
9684 (f_parse): Initialize it.
9685 * d-exp.y (paren_depth): New global.
9686 (d_parse): Initialize it.
9687 * c-exp.y (paren_depth): New global.
9688 (c_parse): Initialize it.
9689 * ada-lex.l (paren_depth): New global.
9690 (lexer_init): Initialize it.
9691
1e58a4a4
TT
96922019-04-04 Tom Tromey <tom@tromey.com>
9693
9694 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9695 (rust_parser::convert_ast_to_type)
9696 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9697 * parser-defs.h (struct parser_state) <parser_state>: Add
9698 parameters. Initialize new members.
9699 <expression_context_block, expression_context_pc>: New members.
9700 * parse.c (expression_context_block, expression_context_pc):
9701 Remove globals.
9702 (parse_exp_in_context): Update.
9703 * p-exp.y: Update all rules.
9704 (yylex): Update.
9705 * m2-exp.y: Update all rules.
9706 (yylex): Update.
9707 * go-exp.y (yylex): Update.
9708 * f-exp.y (yylex): Update.
9709 * d-exp.y: Update all rules.
9710 (yylex): Update.
9711 * c-exp.y: Update all rules.
9712 (lex_one_token, classify_name, yylex, c_parse): Update.
9713 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9714
37eedb39
TT
97152019-04-04 Tom Tromey <tom@tromey.com>
9716
9717 * gdbarch.h, gdbarch.c: Rebuild.
9718 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9719 * stap-probe.h:
9720 (struct stap_parse_info): Replace "parser_state" with
9721 "expr_builder".
9722 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9723 (parser_state): New class.
9724 * parse.c (expr_builder): Rename.
9725 (expr_builder::release): Rename.
9726 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9727 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9728 (write_exp_elt_longcst, write_exp_elt_floatcst)
9729 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9730 (write_exp_string_vector, write_exp_bitstring)
9731 (write_exp_msymbol, mark_struct_expression)
9732 (write_dollar_variable)
9733 (insert_type_address_space, increase_expout_size): Replace
9734 "parser_state" with "expr_builder".
9735 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9736 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9737 "parser_state" with "expr_builder".
9738
73923d7e
TT
97392019-04-04 Tom Tromey <tom@tromey.com>
9740
9741 * rust-exp.y: Replace "parse_language" with method call.
9742 * p-exp.y:
9743 (yylex): Replace "parse_language" with method call.
9744 * m2-exp.y:
9745 (yylex): Replace "parse_language" with method call.
9746 * go-exp.y (classify_name): Replace "parse_language" with method
9747 call.
9748 * f-exp.y (yylex): Replace "parse_language" with method call.
9749 * d-exp.y (lex_one_token): Replace "parse_language" with method
9750 call.
9751 * c-exp.y:
9752 (lex_one_token, classify_name, yylex): Replace "parse_language"
9753 with method call.
9754 * ada-exp.y (find_primitive_type, type_char)
9755 (type_system_address): Replace "parse_language" with method call.
9756
fa9f5be6
TT
97572019-04-04 Tom Tromey <tom@tromey.com>
9758
9759 * rust-exp.y: Replace "parse_gdbarch" with method call.
9760 * parse.c (write_dollar_variable, insert_type_address_space):
9761 Replace "parse_gdbarch" with method call.
9762 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9763 call.
9764 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9765 call.
9766 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9767 "parse_gdbarch" with method call.
9768 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9769 with method call.
9770 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9771 "parse_gdbarch" with method call.
9772 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9773 "parse_gdbarch" with method call.
9774 * c-exp.y (parse_type, parse_number, classify_name): Replace
9775 "parse_gdbarch" with method call.
9776 * ada-lex.l: Replace "parse_gdbarch" with method call.
9777 * ada-exp.y (parse_type, find_primitive_type, type_char)
9778 (type_system_address): Replace "parse_gdbarch" with method call.
9779
1201a264
TT
97802019-04-04 Tom Tromey <tom@tromey.com>
9781
9782 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9783 * stap-probe.c (stap_parse_argument): Update.
9784 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9785 initial_size parameter.
9786 * rust-exp.y (rust_lex_tests): Update.
9787 * parse.c (parser_state): Update.
9788 (parse_exp_in_context): Update.
9789 * parser-defs.h (struct parser_state) <parser_state>: Remove
9790 "initial_size" parameter.
9791
e3980ce2
TT
97922019-04-04 Tom Tromey <tom@tromey.com>
9793
9794 * parser-defs.h (increase_expout_size): Don't declare.
9795 * parse.c (increase_expout_size): Now static.
9796
e9f8e3f1
TS
97972019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9798
9799 * gnu-nat.c (gnu_nat_target::wait): Fix
9800 target_waitstatus_to_string call.
9801
d7df6549
AB
98022019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 * eval.c (evaluate_subexp_standard): Handle internal functions
9805 during Fortran function call handling.
9806
8bdc1658
AB
98072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 * NEWS: Mention new internal functions.
9810 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9811 (read_base_type): Use dwarf2_init_complex_target_type.
9812 * value.c (creal_internal_fn): New function.
9813 (cimag_internal_fn): New function.
9814 (_initialize_values): Register new internal functions.
9815
c29705b7
PW
98162019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9817
9818 * infrun.c (stop_all_threads): If debug_infrun, always
9819 trace the wait status after wait_one, using
9820 target_waitstatus_to_string and target_pid_to_str.
9821 (handle_inferior_event): Replace various trace of
9822 wait status kind by a single trace.
9823 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9824 wait status kind image by target_waitstatus_to_string.
9825 * target/waitstatus.c (target_waitstatus_to_string): Fix
9826 obsolete comment.
9827
05caa1d2
TT
98282019-04-01 Tom Tromey <tromey@adacore.com>
9829
9830 PR symtab/23331:
9831 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9832
9d1447e0
SDJ
98332019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9834 Pedro Alves <palves@redhat.com>
9835
9836 * top.c (quit_force): Call 'finalize_values'.
9837 * value.c (finalize_values): New function.
9838 * value.h (finalize_values): Declare.
9839
7734102d
EZ
98402019-03-30 Eli Zaretskii <eliz@gnu.org>
9841
9842 * NEWS: Announce $_gdb_major and $_gdb_minor.
9843
9844 * top.c (init_gdb_version_vars): New function.
9845 (gdb_init): Call init_gdb_version_vars.
9846
188e1fa9
TT
98472019-03-29 Tom Tromey <tromey@adacore.com>
9848
9849 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9850 help text. Remove dead code.
9851
2880242d
KS
98522019-03-29 Keith Seitz <keiths@redhat.com>
9853
9854 From Siddhesh Poyarekar:
9855 * f-lang.h (f77_get_upperbound): Return LONGEST.
9856 (f77_get_lowerbound): Likewise.
9857 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9858 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9859 print them.
9860 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9861 plongest to format print it.
9862 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9863 (f77_get_upperbound): Likewise.
9864 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9865 LOWER_BOUND to LONGEST.
9866 (f77_create_arrayprint_offset_tbl): Likewise.
9867
cc1defb1
KS
98682019-03-29 Keith Seitz <keiths@redhat.com>
9869
9870 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9871 %s/pulongest for TYPE_LENGTH instead of %d in format
9872 strings.
9873 * ada-typerint.c (ada_print_type): Likewise.
9874 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9875 * compile/compile-c-support.c (generate_register_struct): Likewise.
9876 * gdbtypes.c (recursive_dump_type): Likewise.
9877 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9878 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9879 instead of %d in format strings.
9880 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9881 to std::min to ULONGEST.
9882 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9883 instead of %d in format strings.
9884 * tracepoint.c (info_scope_command): Likewise.
9885 * typeprint.c (print_offset_data::update)
9886 (print_offset_data::finish): Likewise.
9887 * xtensa-tdep.c (xtensa_store_return_value)
9888 (xtensa_push_dummy_call): Likewise.
9889
e432ccf1
JT
98902019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9891
9892 * windows-nat.c (display_selector): Fixed format specifications
9893 for 64-bit Cygwin.
9894
65d2b333
PW
98952019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9896
9897 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9898
f489207e
SL
98992019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9900
9901 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9902 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9903 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9904 (nios2_linux_init_abi): Install it.
9905
bffa1015
AH
99062019-03-28 Alan Hayward <alan.hayward@arm.com>
9907
9908 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9909
fc96163a
AH
99102019-03-28 Alan Hayward <alan.hayward@arm.com>
9911
9912 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9913
20dc7e9b
PW
99142019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9915 Tom Tromey <tromey@adacore.com>
9916
9917 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9918
7f5331a8
JB
99192019-03-26 Joel Brobecker <brobecker@adacore.com>
9920
9921 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9922 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9923 method to compute the bounds of range types. Also print "[evaluated]"
9924 if the bounds' values come from a dynamic evaluation.
9925
18c77628
AB
99262019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9929 whitespace when pretty printing is on.
9930
53c973f2
AH
99312019-03-26 Alan Hayward <alan.hayward@arm.com>
9932
e79be6e5 9933 * ppc-linux-nat.c: Add include.
53c973f2 9934
d851aa71
AH
99352019-03-26 Alan Hayward <alan.hayward@arm.com>
9936
e79be6e5 9937 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9938
2fe7bab7
AH
99392019-03-26 Alan Hayward <alan.hayward@arm.com>
9940
e79be6e5 9941 * arm-linux-nat.c: Add include.
2fe7bab7 9942
068ef30e
SM
99432019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * source-cache.c (source_cache::get_source_lines): Re-read
9946 fullname after calling open_source_file.
9947
81a24d04
JB
99482019-03-25 John Baldwin <jhb@FreeBSD.org>
9949
9950 * NEWS: Mention TLS support for FreeBSD.
9951
79e7ae11
TT
99522019-03-25 Tom Tromey <tromey@adacore.com>
9953
9954 * minsyms.c (BUNCH_SIZE): Update comment.
9955 (~minimal_symbol_reader): Remove old comment.
9956 (compact_minimal_symbols): Update comment.
9957 (minimal_symbol_reader::install): Remove old comment. Update
9958 other comments.
9959
d45963c2
AH
99602019-03-25 Alan Hayward <alan.hayward@arm.com>
9961
9962 * s390-linux-nat.c: Add include.
9963
0f83012e
AH
99642019-03-25 Alan Hayward <alan.hayward@arm.com>
9965
9966 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9967 Call linux_get_hwcap.
9968 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9969 Likewise.
9970 (aarch64_linux_get_hwcap): Remove function.
9971 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9972 declaration.
9973 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9974 linux_get_hwcap.
9975 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9976 * linux-tdep.c (linux_get_hwcap): Add function.
9977 (linux_get_hwcap2): Likewise.
9978 * linux-tdep.h (linux_get_hwcap): Add declaration.
9979 (linux_get_hwcap2): Likewise.
9980 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9981 (ppc_linux_get_hwcap2): Likewise.
9982 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9983 linux_get_hwcap.
9984 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9985 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9986 (ppc_linux_nat_target::read_description): Likewise.
9987 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9988 * s390-linux-nat.c: Likewise.
9989 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9990
6640a367
TT
99912019-03-24 Tom Tromey <tom@tromey.com>
9992
9993 * ada-lang.c (standard_lookup): Simplify initialization.
9994 (ada_lookup_symbol_nonlocal): Simplify return.
9995 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9996 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9997 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9998 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9999 initialization.
10000 * solib.c (solib_global_lookup): Simplify.
10001 * symtab.c (null_block_symbol): Remove.
10002 (symbol_cache_lookup): Simplify returns.
10003 (lookup_language_this): Simplify returns.
10004 (lookup_symbol_aux): Simplify return.
10005 (lookup_local_symbol): Simplify returns.
10006 (lookup_global_symbol_from_objfile): Simplify return.
10007 (lookup_symbol_in_objfile_symtabs)
10008 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10009 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10010 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10011 * cp-namespace.c (cp_lookup_bare_symbol)
10012 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10013 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10014 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10015 (cp_lookup_symbol_via_imports): Simplify initialization.
10016 (find_symbol_in_baseclass): Likewise.
10017 * symtab.h (null_block_symbol): Remove.
10018 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10019 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10020 (d_lookup_symbol_module): Likewise.
10021 (find_symbol_in_baseclass): Simplify initialization.
10022
a930ebcd
TT
100232019-03-24 Tom Tromey <tom@tromey.com>
10024
10025 * expression.h: Don't include symtab.h.
10026 (struct block): Forward declare.
10027
582942f4
TT
100282019-03-24 Tom Tromey <tom@tromey.com>
10029
10030 * c-exp.y (typebase): Remove casts.
10031 * gdbtypes.c (lookup_unsigned_typename, )
10032 (lookup_signed_typename): Remove cast.
10033 * eval.c (parse_to_comma_and_eval): Remove cast.
10034 * parse.c (write_dollar_variable): Remove cast.
10035 * block.h (struct block) <superblock>: Now const.
10036 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10037 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10038 (map_block): Make "block" const.
10039 * symfile.h (struct quick_symbol_functions)
10040 <map_matching_symbols>: Constify block argument to "callback".
10041 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10042 const.
10043 (find_pc_sect_compunit_symtab): Make "b" const.
10044 (find_symbol_at_address): Likewise.
10045 (search_symbols): Likewise.
10046 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10047 (dw2_debug_names_lookup_symbol): Likewise.
10048 (dw2_map_matching_symbols): Update.
10049 * p-valprint.c (pascal_val_print): Remove "block".
10050 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10051 (aux_add_nonlocal_symbols): Make "block" const.
10052 (resolve_subexp): Remove cast.
10053 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10054 const.
10055 (iterate_over_file_blocks): Likewise.
10056 * f-exp.y (%union) <bval>: Remove.
10057 * coffread.c (patch_opaque_types): Make "b" const.
10058 * spu-tdep.c (spu_catch_start): Make "block" const.
10059 * c-valprint.c (print_unpacked_pointer): Remove "block".
10060 * symmisc.c (dump_symtab_1): Make "b" const.
10061 (block_depth): Make "block" const.
10062 * d-exp.y (%union) <bval>: Remove.
10063 * cp-support.h (cp_lookup_rtti_type): Update.
10064 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10065 * psymtab.c (psym_lookup_symbol): Make "block" const.
10066 (maintenance_check_psymtabs): Make "b" const.
10067 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10068 (enumerate_locals, enumerate_args): Update.
10069 * python/py-symtab.c (stpy_global_block): Make "block" const.
10070 (stpy_static_block): Likewise.
10071 * inline-frame.c (block_starting_point_at): Make "new_block"
10072 const.
10073 * block.c (find_block_in_blockvector): Make return type const.
10074 (blockvector_for_pc_sect): Make "b" const.
10075 (find_block_in_blockvector): Make "b" const.
10076
7ad417dd
TT
100772019-03-23 Tom Tromey <tom@tromey.com>
10078
10079 * varobj.c (varobj_create): Update.
10080 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10081 * printcmd.c (display_command, do_one_display): Don't reset
10082 innermost_block.
10083 * parser-defs.h (enum innermost_block_tracker_type): Move to
10084 expression.h.
10085 (innermost_block): Update comment.
10086 * parse.c (parse_exp_1): Add tracker_types parameter.
10087 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10088 tracker_types parameter. Reset innermost_block.
10089 (parse_exp_in_context): Remove.
10090 (parse_expression_for_completion): Update.
10091 * objfiles.c (~objfile): Don't reset expression_context_block or
10092 innermost_block.
10093 * expression.h (enum innermost_block_tracker_type): Move from
10094 parser-defs.h.
10095 (parse_exp_1): Add tracker_types parameter.
10096 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10097 reset innermost_block.
10098
b366c208
TT
100992019-03-23 Tom Tromey <tom@tromey.com>
10100
10101 * objfiles.h: Include bcache.h.
10102
9bb9b2f9
TT
101032019-03-23 Tom Tromey <tom@tromey.com>
10104
10105 * linespec.c (get_current_search_block): Use
10106 scoped_restore_current_language.
10107 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10108
59c28372
AH
101092019-03-22 Alan Hayward <alan.hayward@arm.com>
10110 Jiong Wang <jiong.wang@arm.com>
10111
10112 * aarch64-linux-tdep.c
10113 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10114 section.
10115 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10116
17e116a7
AH
101172019-03-22 Alan Hayward <alan.hayward@arm.com>
10118 Jiong Wang <jiong.wang@arm.com>
10119
10120 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10121 instructions.
10122 (aarch64_analyze_prologue_test): Add PACIASP test.
10123 (aarch64_prologue_prev_register): Unmask PC value.
10124
11e1b75f
AH
101252019-03-22 Alan Hayward <alan.hayward@arm.com>
10126 Jiong Wang <jiong.wang@arm.com>
10127
10128 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10129 (aarch64_dwarf2_prev_register): Unmask PC value.
10130 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10131 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10132 DW_CFA_AARCH64_negate_ra_state.
10133 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10134
34dcc7cf
AH
101352019-03-22 Alan Hayward <alan.hayward@arm.com>
10136 Jiong Wang <jiong.wang@arm.com>
10137
10138 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10139 registers.
10140 (aarch64_pseudo_register_name): Likewise.
10141 (aarch64_pseudo_register_type): Likewise.
10142 (aarch64_pseudo_register_reggroup_p): Likewise.
10143 (aarch64_gdbarch_init): Add pauth registers.
10144 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10145 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10146 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10147 (struct gdbarch_tdep): Add regnum for ra_state.
10148
1ef53e6b
AH
101492019-03-22 Alan Hayward <alan.hayward@arm.com>
10150 Jiong Wang <jiong.wang@arm.com>
10151
10152 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10153
76bed0fd
AH
101542019-03-22 Alan Hayward <alan.hayward@arm.com>
10155 Jiong Wang <jiong.wang@arm.com>
10156
10157 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10158 function.
10159 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10160 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10161 (aarch64_gdbarch_init): Add puth registers.
10162 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10163 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10164 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10165
ee4fbcfa
AH
101662019-03-22 Alan Hayward <alan.hayward@arm.com>
10167 Jiong Wang <jiong.wang@arm.com>
10168
10169 * aarch64-linux-nat.c
10170 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10171 * aarch64-linux-tdep.c
10172 (aarch64_linux_core_read_description): Likewise.
10173 (aarch64_linux_get_hwcap): New function.
10174 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10175 (aarch64_linux_get_hwcap): New declaration.
10176
6dc0ebde
AH
101772019-03-22 Alan Hayward <alan.hayward@arm.com>
10178 Jiong Wang <jiong.wang@arm.com>
10179
10180 * aarch64-linux-nat.c
10181 (aarch64_linux_nat_target::read_description): Add pauth param.
10182 * aarch64-linux-tdep.c
10183 (aarch64_linux_core_read_description): Likewise.
10184 * aarch64-tdep.c (struct target_desc): Add in pauth.
10185 (aarch64_read_description): Add pauth param.
10186 (aarch64_gdbarch_init): Likewise.
10187 * aarch64-tdep.h (aarch64_read_description): Likewise.
10188 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10189 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10190 * features/Makefile: Add new files.
10191 * features/aarch64-pauth.c: New file.
10192 * features/aarch64-pauth.xml: New file.
10193
595915c1
TT
101942019-03-20 Tom Tromey <tromey@adacore.com>
10195
10196 * infrun.c (handle_inferior_event): Rename from
10197 handle_inferior_event_1. Create a scoped_value_mark.
10198 (handle_inferior_event): Remove.
10199
4c7d57e7
TT
102002019-03-19 Tom Tromey <tromey@adacore.com>
10201
10202 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10203 * infrun.h (print_stop_event): Add "displays" parameter.
10204 * infrun.c (print_stop_event): Add "displays" parameter.
10205
cb246234
PA
102062019-03-19 Pedro Alves <palves@redhat.com>
10207
10208 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10209 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10210 to -1. Fix TABs vs spaces.
10211 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10212 * tui/tui-out.h (tui_ui_out) Add intro comments.
10213 <m_line, m_start_of_line>: In-class initialize, and add describing
10214 comment.
10215
3a0e45b2
AH
102162019-03-18 Alan Hayward <alan.hayward@arm.com>
10217
10218 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10219 variable names.
10220 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10221
5371b850
PA
102222019-03-18 Pedro Alves <palves@redhat.com>
10223 Eli Zaretskii <eliz@gnu.org>
10224
10225 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10226 m_line and m_start_of_line.
10227
b17c4cd0
EZ
102282019-03-18 Eli Zaretskii <eliz@gnu.org>
10229
10230 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10231 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10232 it returns a newline. This fixes a regression in TU mode, whereby
10233 the next line is output on the same screen line as the user input.
10234
4bd56d18
TT
102352019-03-18 Tom Tromey <tromey@adacore.com>
10236
10237 * minsyms.c (minimal_symbol_reader::install): Remove call to
10238 obstack_blank.
10239
55c10aca
PA
102402019-03-18 Pedro Alves <palves@redhat.com>
10241
10242 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10243 New globals.
10244 (apply_style): New, factored out from ...
10245 (apply_ansi_escape): ... this. Handle reverse video mode.
10246 (tui_set_reverse_mode): New function.
10247 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10248 * tui/tui-winsource.c (tui_show_source_line): Use
10249 tui_set_reverse_mode instead of setting A_STANDOUT.
10250 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10251 New setter methods.
10252
647bb750
HD
102532019-03-18 Hannes Domani <ssbssa@yahoo.de>
10254
10255 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10256 Handle tabs.
10257
bff8c71f
TT
102582019-03-18 Tom Tromey <tromey@adacore.com>
10259
10260 * ada-lang.c (empty_array): Add "high" parameter.
10261 (ada_evaluate_subexp): Update.
10262
58785d98
ST
102632019-03-17 Sergei Trofimovich <siarheit@google.com>
10264
10265 * unittests/string_view-selftests.c: Define
10266 _initialize_string_view_selftests unconditionally.
10267
d4cbef22
ВМ
102682019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10269
10270 PR gdb/24350
10271 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10272
fce4c071
ВМ
102732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10274
10275 PR gdb/24351
10276 * windows-nat.c (display_selector): Fix format specifiers.
10277
f7f0a123
EZ
102782019-03-17 Eli Zaretskii <eliz@gnu.org>
10279
10280 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10281 tui_refill_source_window instead of tui_refresh_win, to update the
10282 current execution line. This fixes redisplay of the current line
10283 when stepping through the code with "next" or "step".
10284
ab42892f
EZ
102852019-03-16 Eli Zaretskii <eliz@gnu.org>
10286
10287 * source-cache.c (source_cache::get_source_lines): Call
10288 find_source_lines to initialize s->nlines. This fixes vertical
10289 scrolling of TUI source window when the DOWN arrow is pressed.
10290
8d8c087f
PW
102912019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10292
10293 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10294 linux-thread-db.c (_initialize_thread_db): Likewise.
10295
798e1c30
EZ
102962019-03-16 Eli Zaretskii <eliz@gnu.org>
10297
10298 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10299 wclrtoeol in tui_show_source_line". This reverts changes made in
10300 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10301
eefba3da
TT
103022019-03-15 Tom Tromey <tom@tromey.com>
10303
10304 * symtab.h (struct minimal_symbol): Derive from
10305 general_symbol_info.
10306 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10307 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10308 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10309 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10310 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10311 (MSYMBOL_SEARCH_NAME): Update.
10312 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10313 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10314 * minsyms.c (minimal_symbol_reader::record_full): Update.
10315
0de2420c
TT
103162019-03-15 Tom Tromey <tom@tromey.com>
10317
10318 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10319
042d75e4
TT
103202019-03-15 Tom Tromey <tom@tromey.com>
10321
10322 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10323 unique_xmalloc_ptr.
10324 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10325 Update.
10326 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10327 (build_minimal_symbol_hash_tables)
10328 (minimal_symbol_reader::install): Update.
10329
db92718b
TT
103302019-03-15 Tom Tromey <tom@tromey.com>
10331
10332 * symtab.c (create_demangled_names_hash): Update.
10333 (symbol_set_names): Update.
10334 * objfiles.h (struct objfile_per_bfd_storage)
10335 <demangled_names_hash>: Now an htab_up.
10336 * objfiles.c (objfile_per_bfd_storage): Simplify.
10337
d6797f46
TT
103382019-03-15 Tom Tromey <tom@tromey.com>
10339
10340 * objfiles.h (struct objfile_per_bfd_storage): Declare
10341 destructor.
10342 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10343 New.
10344 (get_objfile_bfd_data): Use new. Don't initialize
10345 language_of_main.
10346 (free_objfile_per_bfd_storage): Remove.
10347 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10348
741d7538
TT
103492019-03-15 Tom Tromey <tom@tromey.com>
10350
10351 * symfile.c (reread_symbols): Update.
10352 * objfiles.c (objfile::objfile): Update.
10353 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10354 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10355 comment.
10356 (minimal_symbol_reader::install): Update.
10357 (terminate_minimal_symbol_table): Remove.
10358 * jit.c (jit_object_close_impl): Update.
10359
788c80d1
TT
103602019-03-15 Tom Tromey <tom@tromey.com>
10361
10362 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10363 initializations.
10364
1b7a07cb
TT
103652019-03-15 Tom Tromey <tom@tromey.com>
10366
10367 * objfiles.h (struct objfile_per_bfd_storage)
10368 <demangled_hash_languages>: Now a bitset.
10369 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10370 (lookup_minimal_symbol): Update.
10371
3db066bc
TT
103722019-03-15 Tom Tromey <tom@tromey.com>
10373
10374 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10375 Don't return the symbol.
10376 * coffread.c (record_minimal_symbol): Use record_full.
10377
3fff2c37
EZ
103782019-03-14 Eli Zaretskii <eliz@gnu.org>
10379
10380 The MS-Windows port of ncurses fails to switch to a color pair if
10381 one or both of the colors are the implicit default colors. This
10382 change records the default colors when TUI is initialized, and
10383 then specifies them explicitly when a color pair uses the default
10384 colors. This allows color styling in TUI mode on MS-Windows.
10385
10386 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10387 ncurses_norm_attr.
10388 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10389 colors in ncurses_norm_attr.
10390 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10391 "none", replace it with the default color recorded in
10392 ncurses_norm_attr.
10393
3b336828
TT
103942019-03-14 Tom Tromey <tromey@adacore.com>
10395
10396 * source-cache.h (class source_cache) <get_source_lines>: Return
10397 std::string.
10398 * source-cache.c (source_cache::extract_lines): Handle case where
10399 first_pos==npos. Return std::string.
10400 (source_cache::get_source_lines): Update.
10401
d085f989
TT
104022019-03-14 Tom Tromey <tromey@adacore.com>
10403
10404 * NEWS: Add item for "style sources" commands.
10405 * source-cache.c (source_cache::get_source_lines): Check
10406 source_styling.
10407 * cli/cli-style.c (source_styling): New global.
10408 (_initialize_cli_style): Add "style sources" commands.
10409 (show_style_sources): New function.
10410 * cli/cli-style.h (source_styling): Declare.
10411
6f11e682
TT
104122019-03-14 Pedro Alves <palves@redhat.com>
10413 Tom Tromey <tromey@adacore.com>
10414
10415 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10416 * tui/tui-winsource.c (tui_refill_source_window): New function,
10417 from...
10418 (tui_horizontal_source_scroll): ... here. Move some logic.
10419 * cli/cli-style.c (set_style_enabled): Notify new observable.
10420 * tui/tui-hooks.c (tui_redisplay_source): New function.
10421 (tui_attach_detach_observers): Attach or detach
10422 tui_redisplay_source.
10423 * observable.h (source_styling_changed): New observable.
10424 * observable.c: Define source_styling_changed observable.
10425
a068643d
TT
104262019-03-13 Tom Tromey <tromey@adacore.com>
10427
10428 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10429 (i386_gnu_nat_target::store_registers): Update.
10430 * target-debug.h (target_debug_print_std_string): New macro.
10431 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10432 * windows-tdep.c (display_one_tib): Update.
10433 * tui/tui-stack.c (tui_make_status_line): Update.
10434 * top.c (print_inferior_quit_action): Update.
10435 * thread.c (thr_try_catch_cmd): Update.
10436 (add_thread_with_info): Update.
10437 (thread_target_id_str): Update.
10438 (thr_try_catch_cmd): Update.
10439 (thread_command): Update.
10440 (thread_find_command): Update.
10441 * record-btrace.c (record_btrace_target::info_record)
10442 (record_btrace_resume_thread, record_btrace_target::resume)
10443 (record_btrace_cancel_resume, record_btrace_step_thread)
10444 (record_btrace_target::wait, record_btrace_target::wait)
10445 (record_btrace_target::wait, record_btrace_target::stop): Update.
10446 * progspace.c (print_program_space): Update.
10447 * process-stratum-target.c
10448 (process_stratum_target::thread_address_space): Update.
10449 * linux-fork.c (linux_fork_mourn_inferior)
10450 (detach_checkpoint_command, info_checkpoints_command)
10451 (linux_fork_context): Update.
10452 (linux_fork_detach): Update.
10453 (class scoped_switch_fork_info): Update.
10454 (delete_checkpoint_command): Update.
10455 * infrun.c (follow_fork_inferior): Update.
10456 (follow_fork_inferior): Update.
10457 (proceed_after_vfork_done): Update.
10458 (handle_vfork_child_exec_or_exit): Update.
10459 (follow_exec): Update.
10460 (displaced_step_prepare_throw): Update.
10461 (displaced_step_restore): Update.
10462 (start_step_over): Update.
10463 (resume_1): Update.
10464 (clear_proceed_status_thread): Update.
10465 (proceed): Update.
10466 (print_target_wait_results): Update.
10467 (do_target_wait): Update.
10468 (context_switch): Update.
10469 (stop_all_threads): Update.
10470 (restart_threads): Update.
10471 (finish_step_over): Update.
10472 (handle_signal_stop): Update.
10473 (switch_back_to_stepped_thread): Update.
10474 (keep_going_pass_signal): Update.
10475 (print_exited_reason): Update.
10476 (normal_stop): Update.
10477 * inferior.c (inferior_pid_to_str): Change return type.
10478 (print_selected_inferior): Update.
10479 (add_inferior): Update.
10480 (detach_inferior): Update.
10481 * dummy-frame.c (fprint_dummy_frames): Update.
10482 * dcache.c (dcache_info_1): Update.
10483 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10484 (btrace_fetch, btrace_clear): Update.
10485 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10486 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10487 type.
10488 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10489 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10490 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10491 * gdbarch.c, gdbarch.h: Rebuild.
10492 * gdbarch.sh (core_pid_to_str): Change return type.
10493 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10494 return type.
10495 (windows_nat_target::pid_to_str): Change return type.
10496 (windows_delete_thread): Update.
10497 (windows_nat_target::attach): Update.
10498 (windows_nat_target::files_info): Update.
10499 * target-delegates.c: Rebuild.
10500 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10501 return type.
10502 (sol_thread_target::pid_to_str): Change return type.
10503 * remote.c (class remote_target) <pid_to_str>: Change return
10504 type.
10505 (remote_target::pid_to_str): Change return type.
10506 (extended_remote_target::attach, remote_target::remote_stop_ns)
10507 (remote_target::remote_notif_remove_queued_reply)
10508 (remote_target::push_stop_reply, remote_target::disable_btrace):
10509 Update.
10510 (extended_remote_target::attach): Update.
10511 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10512 type.
10513 (gdbsim_target::pid_to_str): Change return type.
10514 * ravenscar-thread.c (struct ravenscar_thread_target)
10515 <pid_to_str>: Change return type.
10516 (ravenscar_thread_target::pid_to_str): Change return type.
10517 * procfs.c (class procfs_target) <pid_to_str>: Change return
10518 type.
10519 (procfs_target::pid_to_str): Change return type.
10520 (procfs_target::attach): Update.
10521 (procfs_target::detach): Update.
10522 (procfs_target::fetch_registers): Update.
10523 (procfs_target::store_registers): Update.
10524 (procfs_target::wait): Update.
10525 (procfs_target::files_info): Update.
10526 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10527 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10528 return type.
10529 (nto_procfs_target::pid_to_str): Change return type.
10530 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10531 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10532 return type.
10533 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10534 (exit_lwp): Update.
10535 (attach_proc_task_lwp_callback, get_detach_signal)
10536 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10537 (linux_nat_target::resume, wait_lwp, stop_callback)
10538 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10539 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10540 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10541 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10542 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10543 type.
10544 (inf_ptrace_target::attach): Update.
10545 (inf_ptrace_target::files_info): Update.
10546 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10547 type.
10548 (go32_nat_target::pid_to_str): Change return type.
10549 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10550 (gnu_nat_target::wait): Update.
10551 (gnu_nat_target::wait): Update.
10552 (gnu_nat_target::resume): Update.
10553 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10554 (fbsd_nat_target::wait): Update.
10555 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10556 type.
10557 (darwin_nat_target::attach): Update.
10558 * corelow.c (class core_target) <pid_to_str>: Change return type.
10559 (core_target::pid_to_str): Change return type.
10560 * target.c (normal_pid_to_str): Change return type.
10561 (default_pid_to_str): Likewise.
10562 (target_pid_to_str): Change return type.
10563 (target_translate_tls_address): Update.
10564 (target_announce_detach): Update.
10565 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10566 return type.
10567 (bsd_uthread_target::pid_to_str): Change return type.
10568 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10569 type.
10570 (bsd_kvm_target::pid_to_str): Change return type.
10571 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10572 return type.
10573 (aix_thread_target::pid_to_str): Change return type.
10574 * target.h (struct target_ops) <pid_to_str>: Change return type.
10575 (target_pid_to_str, normal_pid_to_str): Likewise.
10576 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10577 type.
10578 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10579 type.
10580 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10581 return type.
10582 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10583 type.
10584 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10585 type.
10586 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10587 return type.
10588
b4be1b06
SM
105892019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10590
10591 * NEWS: Mention that the new default MI version is 3. Mention
10592 changes to the output of commands and events that deal with
10593 multi-location breakpoints.
10594 * breakpoint.c: Include "mi/mi-out.h".
10595 (print_one_breakpoint): Change output syntax if using MI version
10596 >= 3.
10597 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10598 New.
10599 (mi_multi_location_breakpoint_output_fixed): New.
10600 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10601 (mi_cmd_fix_multi_location_breakpoint_output): New.
10602 (mi_multi_location_breakpoint_output_fixed): New.
10603 * mi/mi-cmds.c (mi_cmds): Register command
10604 -fix-multi-location-breakpoint-output.
10605 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10606 interpreter "mi".
10607
8e5e5494
SM
106082019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10611 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10612 instantiate mi_ui_out based on interpreter name.
10613 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10614 * mi/mi-main.c (mi_load_progress): Likewise.
10615
197df35e
JB
106162019-03-12 John Baldwin <jhb@FreeBSD.org>
10617
10618 * NEWS: Combine separate "New targets" sections for 8.3.
10619
8399425f
JB
106202019-03-12 John Baldwin <jhb@FreeBSD.org>
10621
10622 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10623 (ppcfbsd_init_abi): Install gdbarch
10624 "fetch_tls_load_module_address" and "get_thread_local_address"
10625 methods.
10626
b0f87ed0
JB
106272019-03-12 John Baldwin <jhb@FreeBSD.org>
10628
10629 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10630 (riscv_fbsd_init_abi): Install gdbarch
10631 "fetch_tls_load_module_address" and "get_thread_local_address"
10632 methods.
10633
ce25aa57
JB
106342019-03-12 John Baldwin <jhb@FreeBSD.org>
10635
10636 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10637 (i386fbsd_init_abi): Install gdbarch
10638 "fetch_tls_load_module_address" and "get_thread_local_address"
10639 methods.
10640
f5424cfa
JB
106412019-03-12 John Baldwin <jhb@FreeBSD.org>
10642
10643 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10644 (amd64fbsd_init_abi): Install gdbarch
10645 "fetch_tls_load_module_address" and "get_thread_local_address"
10646 methods.
10647
945f3901
JB
106482019-03-12 John Baldwin <jhb@FreeBSD.org>
10649
10650 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10651 (struct fbsd_pspace_data): New type.
10652 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10653 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10654 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10655 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10656 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10657
ef0bd204
JB
106582019-03-12 John Baldwin <jhb@FreeBSD.org>
10659
10660 * gdbtypes.c (lookup_struct_elt): New function.
10661 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10662 * gdbtypes.h (struct struct_elt): New type.
10663 (lookup_struct_elt): New prototype.
10664
36c53a02
JB
106652019-03-12 John Baldwin <jhb@FreeBSD.org>
10666
10667 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10668 remove disabled code block.
10669
6e056c81
JB
106702019-03-12 John Baldwin <jhb@FreeBSD.org>
10671
10672 * gdbarch.sh (get_thread_local_address): New method.
10673 * gdbarch.h, gdbarch.c: Regenerate.
10674 * target.c (target_translate_tls_address): Use
10675 gdbarch_get_thread_local_address if present instead of
10676 target::get_thread_local_address.
10677
cd250a18
JB
106782019-03-12 John Baldwin <jhb@FreeBSD.org>
10679
10680 * target.h (target::get_thread_local_address): Update comment.
10681
df22c1e5
JB
106822019-03-12 John Baldwin <jhb@FreeBSD.org>
10683
10684 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10685 objfile->separate_debug_objfile_backlink if not NULL.
10686
dd6876c9
JB
106872019-03-12 John Baldwin <jhb@FreeBSD.org>
10688
10689 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10690 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10691 (amd64bsd_store_inferior_registers): Likewise.
10692 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10693 Enable segment base registers.
10694 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10695 PT_GETFSBASE and PT_GETGSBASE.
10696 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10697 PT_SETGSBASE.
10698 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10699 segment base registers.
10700 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10701
1163a4b7
JB
107022019-03-12 John Baldwin <jhb@FreeBSD.org>
10703
10704 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10705 Update calls to i386_target_description to add 'segments'
10706 parameter.
10707 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10708 add segment base registers.
10709 * arch/i386.c (i386_create_target_description): Add 'segments'
10710 parameter to enable segment base registers.
10711 * arch/i386.h (i386_create_target_description): Likewise.
10712 * features/i386/32bit-segments.xml: New file.
10713 * features/i386/32bit-segments.c: Generate.
10714 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10715 call to i386_target_description to add 'segments' parameter.
10716 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10717 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10718 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10719 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10720 if feature is present.
10721 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10722 Add 'segments' parameter to call to i386_target_description.
10723 (i386_target_description): Add 'segments' parameter to enable
10724 segment base registers.
10725 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10726 to call to i386_target_description.
10727 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10728 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10729 Define I386_NUM_REGS.
10730 (i386_target_description): Add 'segments' parameter to enable
10731 segment base registers.
10732
3a350822
EZ
107332019-03-12 Eli Zaretskii <eliz@gnu.org>
10734
10735 PR/24325
10736 * source-cache.c: #undef open and close, to avoid unresolved
10737 externals during linking.
10738
ffdd69cf
TT
107392019-03-12 Tom Tromey <tromey@adacore.com>
10740
10741 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10742 const. Add initializers.
10743 (_initialize_remote): Don't initialize ptid globals.
10744
ec148c57
PA
107452019-03-12 Pedro Alves <palves@redhat.com>
10746
10747 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10748
32764270
PA
107492019-03-12 Pedro Alves <palves@redhat.com>
10750
10751 * cp-name-parser.y (main): Remove unused 'len' variable.
10752
17547186
TT
107532019-03-12 Tom Tromey <tromey@adacore.com>
10754
10755 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10756 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10757
d3a70e03
TT
107582019-03-12 Tom Tromey <tromey@adacore.com>
10759
10760 * linux-nat.c (iterate_over_lwps): Update.
10761 (stop_callback): Remove parameter.
10762 (stop_wait_callback, detach_callback, resume_set_callback)
10763 (select_singlestep_lwp_callback, set_ignore_sigint)
10764 (status_callback, resumed_callback, resume_clear_callback)
10765 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10766 data parameter.
10767 (linux_nat_target::detach, linux_nat_target::resume)
10768 (linux_stop_and_wait_all_lwps, select_event_lwp)
10769 (linux_nat_filter_event, linux_nat_wait_1)
10770 (linux_nat_target::kill, linux_nat_target::stop)
10771 (linux_nat_target::stop): Update.
10772 (linux_nat_resume_callback): Change type.
10773 (resume_stopped_resumed_lwps, count_events_callback)
10774 (select_event_lwp_callback): Likewise.
10775 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10776 * arm-linux-nat.c (struct update_registers_data): Remove.
10777 (update_registers_callback): Change type.
10778 (arm_linux_insert_hw_breakpoint1): Update.
10779 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10780 parameter.
10781 (x86_linux_dr_set_addr): Update.
10782 (x86_linux_dr_set_control): Update.
10783 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10784 (iterate_over_lwps): Use gdb::function_view.
10785 * nat/aarch64-linux-hw-point.c (struct
10786 aarch64_dr_update_callback_param): Remove.
10787 (debug_reg_change_callback): Change type.
10788 (aarch64_notify_debug_reg_change): Update.
10789 * s390-linux-nat.c (s390_refresh_per_info): Update.
10790
82cb27ff
TT
107912019-03-11 Tom Tromey <tromey@adacore.com>
10792
10793 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10794 redundant assignment to "this_cu".
10795
568c0683
SM
107962019-03-08 Simon Marchi <simon.marchi@efficios.com>
10797
10798 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10799
f09ce22d
SM
108002019-03-08 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10803 from...
10804 (rank_one_type): ... this.
10805
595f96a9
SM
108062019-03-08 Simon Marchi <simon.marchi@efficios.com>
10807
10808 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10809 from...
10810 (rank_one_type): ... this.
10811
2598a94b
SM
108122019-03-08 Simon Marchi <simon.marchi@efficios.com>
10813
10814 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10815 from...
10816 (rank_one_type): ... this.
10817
7f17b20d
SM
108182019-03-08 Simon Marchi <simon.marchi@efficios.com>
10819
10820 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10821 from...
10822 (rank_one_type): ... this.
10823
2c509035
SM
108242019-03-08 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10827 from...
10828 (rank_one_type): ... this.
10829
0dd322dc
SM
108302019-03-08 Simon Marchi <simon.marchi@efficios.com>
10831
10832 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10833 from...
10834 (rank_one_type): ... this.
10835
41ea4728
SM
108362019-03-08 Simon Marchi <simon.marchi@efficios.com>
10837
10838 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10839 from...
10840 (rank_one_type): ... this.
10841
793cd1d2
SM
108422019-03-08 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10845 from...
10846 (rank_one_type): ... this.
10847
34910087
SM
108482019-03-08 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10851 from...
10852 (rank_one_type): ... this.
10853
f1f832d6
SM
108542019-03-08 Simon Marchi <simon.marchi@efficios.com>
10855
10856 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10857 from...
10858 (rank_one_type): ... this.
10859
b9f4512f
SM
108602019-03-08 Simon Marchi <simon.marchi@efficios.com>
10861
10862 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10863 from...
10864 (rank_one_type): ... this.
10865
9293fc63
SM
108662019-03-08 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10869 from...
10870 (rank_one_type): ... this.
10871
e3abbe7e
PW
108722019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10873
10874 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10875 inferior-events' shows the example events.
10876
e4adb939
EZ
108772019-03-08 Eli Zaretskii <eliz@gnu.org>
10878
10879 Support styling on native MS-Windows console
10880
10881 PR/24315
10882 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10883 on MS-Windows if $TERM is not defined.
10884
10885 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10886
10887 * posix-hdep.c (gdb_console_fputs):
10888 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10889 functions.
10890 * ui-file.h (gdb_console_fputs): Add prototype.
10891
10892 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10893 back to fputs only if the former returns zero.
10894
25629dfd
TT
108952019-03-07 Tom Tromey <tom@tromey.com>
10896
10897 * symmisc.c (print_symbol_bcache_statistics): Update.
10898 (print_objfile_statistics): Update.
10899 * symfile.c (allocate_symtab): Update.
10900 * stabsread.c: Don't include bcache.h.
10901 * psymtab.h (struct psymbol_bcache): Don't declare.
10902 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10903 (psymbol_bcache_init, psymbol_bcache_free)
10904 (psymbol_bcache_get_bcache): Don't declare.
10905 * psymtab.c (struct psymbol_bcache): Remove.
10906 (psymtab_storage::psymtab_storage): Update.
10907 (psymtab_storage::~psymtab_storage): Update.
10908 (psymbol_bcache_init, psymbol_bcache_free)
10909 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10910 (add_psymbol_to_bcache): Update.
10911 (allocate_psymtab): Update.
10912 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10913 macro_cache>: No longer pointers.
10914 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10915 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10916 * macrotab.c (macro_bcache): Update.
10917 * macroexp.c: Don't include bcache.h.
10918 * gdbtypes.c (check_types_worklist): Update.
10919 (types_deeply_equal): Remove TRY/CATCH. Update.
10920 * elfread.c (elf_symtab_read): Update.
10921 * dwarf2read.c: Don't include bcache.h.
10922 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10923 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10924 (print_bcache_statistics, bcache_memory_used): Don't declare.
10925 (struct bcache): Move from bcache.c. Add constructor, destructor,
10926 methods. Rename all data members.
10927 * bcache.c (struct bcache): Move to bcache.h.
10928 (bcache::expand_hash_table): Rename from expand_hash_table.
10929 (bcache): Remove.
10930 (bcache::insert): Rename from bcache_full.
10931 (bcache::compare): Rename from bcache_compare.
10932 (bcache_xmalloc): Remove.
10933 (bcache::~bcache): Rename from bcache_xfree.
10934 (bcache::print_statistics): Rename from print_bcache_statistics.
10935 (bcache::memory_used): Rename from bcache_memory_used.
10936
fe726667
PA
109372019-03-07 Pedro Alves <palves@redhat.com>
10938
10939 * infrun.c (normal_stop): Also check for
10940 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10941
7584bb30
AB
109422019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10943
10944 * f-lang.c (value_from_host_double): Moved to...
10945 * value.c (value_from_host_double): ...here.
10946 * value.h (value_from_host_double): Declare.
10947 * guile/scm-math.c (vlscm_convert_typed_number): Use
10948 value_from_host_double.
10949 (vlscm_convert_number): Likewise.
10950 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10951 * python/py-value.c (convert_value_from_python): Likewise.
10952
a7b1986e
TT
109532019-03-06 Tom Tromey <tom@tromey.com>
10954
10955 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10956
0ccf4211
TT
109572019-03-06 Tom Tromey <tom@tromey.com>
10958
10959 * utils.h (free_current_contents): Don't declare.
10960 * utils.c (free_current_contents): Remove.
10961
fe7b42e5
TT
109622019-03-06 Tom Tromey <tom@tromey.com>
10963
10964 * top.c (quit_force): Update.
10965 * main.c (captured_command_loop): Update.
10966 * common/new-op.c (operator new): Update.
10967 * common/common-exceptions.c (struct catcher)
10968 <save_cleanup_chain>: Remove member.
10969 (exceptions_state_mc_init): Update.
10970 (exception_try_scope_entry): Return nullptr.
10971 (exception_try_scope_exit, exception_rethrow)
10972 (throw_exception_sjlj, throw_exception_cxx): Update.
10973 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10974 (all_cleanups, do_cleanups, discard_cleanups)
10975 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10976 (restore_cleanups, restore_final_cleanups): Don't declare.
10977 (do_final_cleanups): Remove parameter.
10978 * common/cleanups.c (cleanup_chain, make_cleanup)
10979 (make_cleanup_dtor, all_cleanups, do_cleanups)
10980 (discard_my_cleanups, discard_cleanups)
10981 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10982 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10983 (null_cleanup): Remove.
10984 (do_final_cleanups): Remove parameter.
10985
c6321f19
TT
109862019-03-06 Tom Tromey <tom@tromey.com>
10987
10988 * remote.c (remote_target::remote_parse_stop_reply): Use
10989 unique_xmalloc_ptr.
10990
61b30099
TT
109912019-03-06 Tom Tromey <tom@tromey.com>
10992
10993 * stabsread.c (struct stabs_field_info): Rename from field_info.
10994 <list, fnlist>: Add initializers.
10995 <obstack>: New member.
10996 (read_member_functions, read_struct_fields, read_baseclasses):
10997 Allocate on obstack. Don't use cleanups.
10998 (read_one_struct_field, read_member_functions, read_struct_fields)
10999 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11000 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11001 (read_struct_type): Update.
11002
6cceac94
TT
110032019-03-06 Tom Tromey <tom@tromey.com>
11004
11005 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11006 * common/filestuff.h (make_cleanup_close): Don't declare.
11007 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11008 Remove.
11009
72412762
TT
110102019-03-06 Tom Tromey <tom@tromey.com>
11011
11012 * solib-aix.c: Use make_scope_exit.
11013
2b6ff1c0
TT
110142019-03-06 Tom Tromey <tom@tromey.com>
11015
11016 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11017 Use make_scope_exit.
11018
d01c5877
TT
110192019-03-06 Tom Tromey <tom@tromey.com>
11020
11021 * solib-svr4.c (disable_probes_interface): Remove parameter.
11022 (svr4_handle_solib_event): Use make_scope_exit.
11023
32603266
TT
110242019-03-06 Tom Tromey <tom@tromey.com>
11025
11026 * remote.c (struct stop_reply_deleter): Remove.
11027 (stop_reply_up): Update.
11028 (struct stop_reply): Derive from notif_event. Don't typedef.
11029 <regcache>: Now a std::vector.
11030 (stop_reply_xfree): Remove.
11031 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11032 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11033 (remote_target::discard_pending_stop_replies): Use delete.
11034 (remote_target::remote_parse_stop_reply): Update.
11035 (remote_target::process_stop_reply): Update.
11036 * remote-notif.h (struct notif_event): Add virtual destructor.
11037 Remove "dtr" member.
11038 (struct notif_client) <alloc_event>: Return a unique_ptr.
11039 (notif_event_xfree): Don't declare.
11040 (notif_event_up): New typedef.
11041 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11042 (notif_event_xfree, do_notif_event_xfree): Remove.
11043 (remote_notif_state_xfree): Update.
11044
9799571e
TT
110452019-03-06 Tom Tromey <tom@tromey.com>
11046
11047 * infrun.c (displaced_step_clear_cleanup): Now a
11048 forward_scope_exit type.
11049 (displaced_step_prepare_throw): Update.
11050 (displaced_step_fixup): Update.
11051
09e3c4ca
TT
110522019-03-06 Tom Tromey <tom@tromey.com>
11053
11054 * inferior.h (class inferior): Update comment.
11055 * gdbthread.h (class thread_info): Update comment.
11056
e2a03548
TT
110572019-03-06 Joel Brobecker <brobecker@adacore.com>
11058 Tom Tromey <tom@tromey.com>
11059
11060 * stabsread.h (struct stab_section_list): Remove.
11061 (coffstab_build_psymtabs): Update.
11062 * dbxread.c (symbuf_sections): Now a std::vector.
11063 (sect_idx): New global.
11064 (fill_symbuf): Update.
11065 (coffstab_build_psymtabs): Change type of stabsects parameter.
11066 Update.
11067 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11068 std::vector.
11069 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11070 (coff_locate_sections): Update.
11071 (coff_symfile_read): Remove cleanups. Update.
11072 (init_stringtab): Add storage parameter.
11073 (free_stringtab, free_stringtab_cleanup): Remove.
11074 (init_lineno): Add storage parameter.
11075 (free_linetab, free_linetab_cleanup): Remove.
11076
b7e60d85
PA
110772019-03-06 Pedro Alves <palves@redhat.com>
11078
11079 * linux-fork.c (fork_info::clobber_regs): Delete.
11080 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11081 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11082 comment. Adjust.
11083 (scoped_switch_fork_info::scoped_switch_fork_info)
11084 (checkpoint_command, linux_fork_context): Adjust
11085 fork_save_infrun_state calls.
11086
e52c971f
PA
110872019-03-06 Pedro Alves <palves@redhat.com>
11088
11089 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11090 (inf_has_multiple_threads): Return 'bool' and rewrite using
11091 inferior_info::threads().
11092
06974e6c
PA
110932019-03-06 Pedro Alves <palves@redhat.com>
11094
11095 * linux-fork.c: Include <list>.
11096 (fork_list): Now a std::list instance.
11097 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11098 (forks_exist_p, find_last_fork): Adjust.
11099 (new_fork): Delete.
11100 (one_fork_p): New.
11101 (add_fork): Adjust.
11102 (free_fork): Delete, folded into fork_info::~fork_info().
11103 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11104 Adjust.
11105 (init_fork_list): Delete.
11106 (linux_fork_killall, linux_fork_mourn_inferior)
11107 (linux_fork_detach, info_checkpoints_command): Adjust.
11108 (_initialize_linux_fork): No longer call init_fork_list.
11109
72f31aea
PA
111102019-03-06 Pedro Alves <palves@redhat.com>
11111
11112 * linux-fork.c (new_fork): New, split out of ...
11113 (add_fork): ... this. Return void. Move "first fork" special
11114 case from here, to ...
11115 (checkpoint_command): ... here.
11116 * linux-linux.h (add_fork): Return void.
11117
efbecbc1
AB
111182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11121
0841c79a
AB
111222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11123 Chris January <chris.january@arm.com>
11124 David Lecomber <david.lecomber@arm.com>
11125
11126 * f-exp.y: New token, UNOP_INTRINSIC.
11127 (exp): New pattern using UNOP_INTRINSIC token.
11128 (f77_keywords): Add 'abs' keyword.
11129 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11130 (value_from_host_double): New function.
11131 (evaluate_subexp_f): Support UNOP_ABS.
11132
4a270568
AB
111332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11134
11135 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11136 types.
11137
067630bd
AB
111382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11139
11140 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11141 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11142 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11143
3be47f7a
AB
111442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11147
4d00f5d8
AB
111482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11149 Chris January <chris.january@arm.com>
11150
11151 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11152 * f-exp.y: Define 'KIND' token.
11153 (exp): New pattern for KIND expressions.
11154 (ptype): Handle types with a kind extension.
11155 (direct_abs_decl): Extend to spot kind extensions.
11156 (f77_keywords): Add 'kind' to the list.
11157 (push_kind_type): New function.
11158 (convert_to_kind_type): New function.
11159 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11160 * parse.c (operator_length_standard): Likewise.
11161 * parser-defs.h (enum type_pieces): Add tp_kind.
11162 * std-operator.def: Add UNOP_KIND.
11163
e454224f
AB
111642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11165
11166 * f-exp.y (f_parse): Set yydebug.
11167
9dad4a58
AB
111682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 * f-lang.c (evaluate_subexp_f): New function.
11171 (exp_descriptor_f): New global.
11172 (f_language_defn): Use exp_descriptor_f instead of
11173 exp_descriptor_standard.
11174
c8f91604
AB
111752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * f-exp.y (struct token): Add comments.
11178 (dot_ops): Remove uppercase versions and the end marker.
11179 (f77_keywords): Likewise.
11180 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11181 entries in the dot_ops array are case insensitive, and use
11182 strncasecmp to compare strings. Also some whitespace cleanup in
11183 this area. Similar for the f77_keywords array, except entries in
11184 this list might be case sensitive.
11185
dd9f2c76
AB
111862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * f-exp.y (struct f77_boolean_val): Add comments.
11189 (boolean_values): Remove uppercase versions, and end marker.
11190 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11191 and use strncasecmp to achieve case insensitivity. Additionally,
11192 perform whitespace cleanup around this code.
11193
67a3048c
TT
111942019-03-06 Tom Tromey <tromey@adacore.com>
11195
11196 * remote-sim.c (gdbsim_target_open): Use result of
11197 gdb_argv::release.
11198
aa3cfbda
RB
111992019-03-06 Richard Bunt <richard.bunt@arm.com>
11200 Dirk Schubert <dirk.schubert@arm.com>
11201 Chris January <chris.january@arm.com>
11202
11203 * eval.c (evaluate_subexp_standard): Call Fortran argument
11204 wrapping logic.
11205 * f-lang.c (struct value): A value which can be passed into a
11206 Fortran function call.
11207 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11208 where appropriate.
11209 (struct type): Value ready for a Fortran function call.
11210 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11211 is needed.
11212 * f-lang.h (fortran_argument_convert): Declaration.
11213 (fortran_preserve_arg_pointer): Declaration.
11214 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11215
ea38e5df
TT
112162019-03-05 Tom Tromey <tromey@adacore.com>
11217
11218 * python/py-prettyprint.c (print_string_repr): Remove #if.
11219 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11220
06b5b831
TT
112212019-03-05 Tom Tromey <tromey@adacore.com>
11222
11223 * target.c (the_dummy_target): Move later. Change type to
11224 "dummy_target".
11225 (initialize_targets): Don't initialize the_dummy_target.
11226
edbd9e45
TT
112272019-03-05 Tom Tromey <tromey@adacore.com>
11228
11229 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11230 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11231
c119e040
TT
112322019-03-05 Tom Tromey <tromey@adacore.com>
11233
11234 * windows-nat.c (windows_nat_target::attach)
11235 (windows_nat_target::detach): Don't call gdb_flush.
11236 * valprint.c (generic_val_print, val_print, val_print_string):
11237 Don't call gdb_flush.
11238 * utils.c (defaulted_query): Don't call gdb_flush.
11239 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11240 * target.c (target_announce_detach): Don't call gdb_flush.
11241 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11242 * remote.c (extended_remote_target::attach): Don't call
11243 gdb_flush.
11244 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11245 * printcmd.c (do_examine): Don't call gdb_flush.
11246 (info_display_command): Don't call gdb_flush.
11247 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11248 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11249 * memattr.c (info_mem_command): Don't call gdb_flush.
11250 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11251 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11252 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11253 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11254 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11255 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11256 (gnu_nat_target::detach): Don't call gdb_flush.
11257 * f-valprint.c (f_val_print): Don't call gdb_flush.
11258 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11259 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11260 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11261 gdb_flush.
11262 * c-valprint.c (c_val_print): Don't call gdb_flush.
11263 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11264
895dafa6
TT
112652019-03-05 Tom Tromey <tromey@adacore.com>
11266
11267 * varobj.c (update_dynamic_varobj_children): Update.
11268 (install_default_visualizer): Use reset, not release.
11269 * value.c (set_internalvar): Update.
11270 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11271 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11272 ATTRIBUTE_UNUSED_RESULT.
11273
88a774b9
TT
112742019-03-05 Tom Tromey <tromey@adacore.com>
11275
11276 * remote.c (class scoped_remote_fd) <release>: Add
11277 ATTRIBUTE_UNUSED_RESULT.
11278
4e4a8b93
TT
112792019-03-05 Tom Tromey <tromey@adacore.com>
11280
11281 * macroexp.c (struct macro_buffer) <release>: Add
11282 ATTRIBUTE_UNUSED_RESULT.
11283
083eef1f
TT
112842019-03-05 Tom Tromey <tromey@adacore.com>
11285
11286 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11287 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11288 ATTRIBUTE_UNUSED_RESULT.
11289
3cabd438
TT
112902019-03-05 Tom Tromey <tromey@adacore.com>
11291
11292 * common/scoped_fd.h (class scoped_fd) <release>: Add
11293 ATTRIBUTE_UNUSED_RESULT.
11294
41e3300a
TT
112952019-03-05 Tom Tromey <tromey@adacore.com>
11296
11297 * parser-defs.h (struct parser_state) <release>: Add
11298 ATTRIBUTE_UNUSED_RESULT.
11299
18cb7c9f
TT
113002019-03-05 Tom Tromey <tromey@adacore.com>
11301
11302 * utils.h (class gdb_argv) <release>: Add
11303 ATTRIBUTE_UNUSED_RESULT.
11304 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11305
41fa577f
EZ
113062019-03-02 Eli Zaretskii <eliz@gnu.org>
11307
a6a4b2c6
EZ
11308 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11309 for-loop range, to avoid compiler warnings.
11310
11311 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11312 avoid compiler warnings about unused variables.
11313
742a7df5
EZ
11314 * NEWS: Mention end of support for native debugging on MS-Windows
11315 before XP.
11316
41fa577f
EZ
11317 PR gdb/24292
11318 * common/netstuff.c:
11319 * gdbserver/gdbreplay.c
11320 * gdbserver/remote-utils.c:
11321 * ser-tcp.c:
11322 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11323 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11324 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11325 'getaddrinfo' and 'freeaddrinfo' were not available before
11326 Windows XP, and mingw.org's MinGW headers by default define
11327 _WIN32_WINNT to 0x500.
11328
827f438f
GB
113292019-03-01 Gary Benson <gbenson@redhat.com>
11330
11331 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11332
92137da0
RO
113332019-02-28 Brian Vandenberg <phantall@gmail.com>
11334 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11335
11336 PR gdb/8527
11337 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11338 set_sigint_trap, clear_sigint_trap.
11339
799efbe8
PW
113402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11341
11342 * target.c (target_detach): Clear the regcache and the
11343 frame cache.
11344
8ed25214
PA
113452019-02-27 Pedro Alves <palves@redhat.com>
11346
11347 * utils.c (set_screen_size): When we cap the height/width sizes,
11348 tweak the corresponding command variable to show "unlimited":
11349
23031e31
SJ
113502019-02-27 Saagar Jha <saagar@saagarjha.com>
11351 Pedro Alves <palves@redhat.com>
11352
11353 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11354 before calling rl_set_screen_size.
11355
6c28e44a
TT
113562019-02-27 Tom Tromey <tromey@adacore.com>
11357
11358 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11359 define.
11360 * python/py-value.c: Remove Python 2.4 workaround.
11361 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11362 workaround.
11363 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11364 Python 2.4 workaround.
11365 * python/python-internal.h: Remove Python 2.4 comment.
11366 (Py_ssize_t): Don't define.
11367 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11368 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11369 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11370 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11371 * python/python.c (do_start_initialization): Remove Python 2.4
11372 workaround.
11373 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11374 (print_children): Remove Python 2.4 workaround.
11375 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11376 workaround.
11377 (CHARBUFFERPROC_NAME): Remove.
11378 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11379 Python 2.4 workaround.
11380
2c3fc25d 113812019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11382
2c3fc25d
KB
11383 * NEWS: Note minimum Python version.
11384
6ca62222
KB
113852019-02-27 Kevin Buettner <kevinb@redhat.com>
11386
11387 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11388 code from these functions. Remove corresponding ifdefs. Use
11389 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11390 Remove gotos and target of gotos.
11391 (infpy_search_memory): Likewise.
11392
f4bc7d2c
AB
113932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11394
11395 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11396 (hppa_gdbarch_init): Don't register deleted functions with
11397 gdbarch.
11398
9734a586
AB
113992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11400
11401 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11402 (h8300_unwind_sp): Delete.
11403 (h8300_dummy_id): Delete.
11404 (h8300_gdbarch_init): Don't register deleted functions with
11405 gdbarch.
11406
68b867f3
AB
114072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11408
11409 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11410 (ft32_unwind_pc): Delete.
11411 (ft32_unwind_sp): Delete.
11412 (ft32_gdbarch_init): Don't register deleted functions with
11413 gdbarch.
11414
2fbe7ad0
AB
114152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11418 (frv_unwind_pc): Delete.
11419 (frv_unwind_sp): Delete.
11420 (frv_gdbarch_init): Don't register deleted functions with
11421 gdbarch.
11422
76055cbe
AB
114232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11424
11425 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11426 (riscv_unwind_pc): Delete.
11427 (riscv_unwind_sp): Delete.
11428 (riscv_gdbarch_init): Don't register deleted functions with
11429 gdbarch.
11430
4133e5a1
AB
114312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11432
11433 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11434 (csky_unwind_pc): Delete.
11435 (csky_unwind_sp): Delete.
11436 (csky_gdbarch_init): Don't register deleted functions with
11437 gdbarch.
11438
8010f576
AB
114392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11442 (cris_unwind_pc): Delete.
11443 (cris_unwind_sp): Delete.
11444 (cris_gdbarch_init): Don't register deleted functions with
11445 gdbarch.
11446
b56bf084
AB
114472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11450 (bfin_unwind_pc): Delete.
11451 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11452
a19a650f
AB
114532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11454
11455 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11456 (arm_unwind_pc): Delete.
11457 (arm_unwind_sp): Delete.
11458 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11459
f8278c3c
AB
114602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11463 (arc_unwind_pc): Delete.
11464 (arc_unwind_sp): Delete.
11465 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11466
480e46cf
AB
114672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11468
11469 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11470 (alpha_unwind_pc): Delete.
11471 (alpha_gdbarch_init): Don't register deleted functions with
11472 gdbarch.
11473
7a995095
AB
114742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11475
11476 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11477 (aarch64_unwind_pc): Delete.
11478 (aarch64_unwind_sp): Delete.
11479 (aarch64_gdbarch_init): Don't register deleted functions with
11480 gdbarch.
11481
bf9a735e
AB
114822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11483
11484 * gdbtypes.c (type_align): Don't consider static members when
11485 computing structure alignment.
11486
5561fc30
AB
114872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11488
11489 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11490 return 0 for other types.
11491 * arch-utils.c (default_type_align): Always return 0.
11492 * gdbarch.h: Regenerate.
11493 * gdbarch.sh (type_align): Extend comment.
11494 * gdbtypes.c (type_align): Add additional comments, always call
11495 gdbarch_type_align before applying the default rules.
11496 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11497 generic code will then apply a suitable default.
11498 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11499 types, return 0 for other types.
11500
9335e75a
JB
115012019-02-27 Joel Brobecker <brobecker@adacore.com>
11502
11503 * NEWS: Create a new section for the next release branch.
11504 Rename the section of the current branch, now that it has
11505 been cut.
11506
3d34d8de
JB
115072019-02-27 Joel Brobecker <brobecker@adacore.com>
11508
11509 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11510 * version.in: Bump version to 8.3.50.DATE-git.
11511
143420fb
SM
115122019-02-26 Simon Marchi <simon.marchi@efficios.com>
11513
11514 * aix-thread.c (ptid_cmp): Remove unused variable.
11515 (get_signaled_thread): Likewise.
11516 (store_regs_user_thread): Likewise.
11517 (store_regs_kernel_thread): Likewise.
11518 (fetch_regs_kernel_thread): Remove shadowed variable.
11519
172fb711
AB
115202019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11521
11522 * features/riscv/32bit-cpu.xml: Add register numbers.
11523 * features/riscv/32bit-fpu.c: Regenerate.
11524 * features/riscv/32bit-fpu.xml: Add register numbers.
11525 * features/riscv/64bit-cpu.xml: Add register numbers.
11526 * features/riscv/64bit-fpu.c: Regenerate.
11527 * features/riscv/64bit-fpu.xml: Add register numbers.
11528
26c89782
KB
115292019-02-26 Kevin Buettner <kevinb@redhat.com>
11530
af54ade9 11531 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11532 * python/py-value.c (convert_buffer_and_type_to_value): New
11533 function.
11534 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11535 Add support for handling an optional second argument. Call
11536 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11537 * python/python-internal.h (Py_buffer_deleter): New struct.
11538 (Py_buffer_up): New typedef.
11539
0f58c9e8
JB
115402019-02-25 John Baldwin <jhb@FreeBSD.org>
11541
11542 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11543 instead of releasing ownership.
11544
0a0f4c01
JR
115452019-02-25 Jordan Rupprecht <rupprecht@google.com>
11546
11547 * dwarf2read.c (open_and_init_dwp_file): Call
11548 elf_numsections instead of bfd_count_sections to initialize
11549 dwp_file->num_sections.
11550
cd5a152c
TT
115512019-02-25 Tom Tromey <tromey@adacore.com>
11552
11553 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11554
8a6a8513
SDJ
115552019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11556
11557 * gcore.in: Add '--readnever' option when invoking GDB.
11558
04dcda9c
SM
115592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11560
11561 * MAINTAINERS: Update my email address.
11562
07bc701d
SM
115632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11564
11565 * build-id.c (build_id_to_debug_bfd_1): New function.
11566 (build_id_to_debug_bfd): Look for separate debug file in
11567 sysroot.
11568
c6f4a5d0
AB
115692019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * gdbarch.sh: Update the copyright year range that is placed into
11572 generated files.
11573
9600246d
KS
115742019-02-22 Keith Seitz <keiths@redhat.com>
11575
11576 PR symtab/23853
11577 * linespec.c (create_sals_line_offset): Search for the default
11578 symtab's filename instead of its fullname.
11579
7557a514
AH
115802019-02-21 Alan Hayward <alan.hayward@arm.com>
11581
11582 * NEWS: Update style defaults.
11583
ee2bcb0c
AH
115842019-02-21 Alan Hayward <alan.hayward@arm.com>
11585
11586 * main.c (captured_main_1): Disable styling in batch mode.
11587
0c95f9ed
TT
115882019-02-20 Tom Tromey <tom@tromey.com>
11589
11590 * symtab.c (symtab_symbol_info): Fix typos.
11591
c763b894
TT
115922019-02-20 Tom Tromey <tromey@adacore.com>
11593
11594 * findcmd.c (_initialize_mem_search): Use upper case for
11595 metasyntactic variables.
11596
0ef8a082
AH
115972019-02-20 Alan Hayward <alan.hayward@arm.com>
11598
11599 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11600 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11601
6caa91b6
SM
116022019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11603
11604 * top.h (source_file_name): Change to std::string.
11605 * top.c (source_file_name): Likewise.
11606 (command_line_input): Adjust.
11607 * cli/cli-script.c (script_from_file): Adjust.
11608
98814c6c
TT
116092019-02-19 Tom Tromey <tromey@adacore.com>
11610
11611 * ravenscar-thread.c
11612 (ravenscar_thread_target::update_thread_list): Don't call
11613 ada_build_task_list.
11614 * ada-lang.h (ada_build_task_list): Don't declare.
11615 * ada-tasks.c (struct ada_tasks_inferior_data)
11616 <task_list_valid_p>: Now bool.
11617 (read_known_tasks, ada_task_list_changed)
11618 (ada_tasks_invalidate_inferior_data): Update.
11619 (read_known_tasks_array): Return bool.
11620 (read_known_tasks_list): Likewise.
11621 (read_known_tasks): Return void.
11622 (ada_build_task_list): Now static.
11623
70cd633e
AB
116242019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11625
11626 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11627 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11628
040b3e95
PW
116292019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11630
11631 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11632 variant for ada_tasks_pspace_data_handle and
11633 ada_tasks_inferior_data_handle.
11634 (ada_tasks_pspace_data_cleanup): New function.
11635 (ada_tasks_inferior_data_cleanup): New function.
11636
9409233b
TT
116372019-02-17 Tom Tromey <tom@tromey.com>
11638
11639 * macrotab.h (macro_source_fullname): Return a std::string.
11640 * macrotab.c (macro_include, check_for_redefinition)
11641 (macro_undef, macro_lookup_definition, foreach_macro)
11642 (foreach_macro_in_scope): Update.
11643 (macro_source_fullname): Return a std::string.
11644 * macrocmd.c (show_pp_source_pos): Update.
11645
6506371f
TT
116462019-02-17 Tom Tromey <tom@tromey.com>
11647
11648 * macrocmd.c (show_pp_source_pos): Style the file names.
11649
0c820d67
TT
116502019-02-17 Tom Tromey <tom@tromey.com>
11651
11652 PR tui/24197:
11653 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11654
a0087920
TT
116552019-02-17 Tom Tromey <tom@tromey.com>
11656
11657 * ada-lang.c (user_select_syms): Use filtered printing.
11658 * utils.c (wrap_style): New global.
11659 (desired_style): Remove.
11660 (emit_style_escape): Add stream parameter.
11661 (set_output_style, reset_terminal_style, prompt_for_continue):
11662 Update.
11663 (flush_wrap_buffer): Only flush gdb_stdout.
11664 (wrap_here): Set wrap_style.
11665 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11666 treat escape sequences as a character. Change when wrap buffer is
11667 flushed.
11668 (fputs_styled): Do not set the output style when the default is
11669 requested.
11670 * ui-style.h (struct ui_file_style) <is_default>: New method.
11671 * source.c (print_source_lines_base): Emit escape sequences in one
11672 piece.
11673
75ba10dc
JB
116742019-02-17 Joel Brobecker <brobecker@adacore.com>
11675
11676 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11677 integers and enumeration types.
11678
a2cd4f14
JB
116792019-02-17 Joel Brobecker <brobecker@adacore.com>
11680
11681 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11682 instead of lookup_symbol_in_language
11683 (do_exact_match): New function.
11684 (ada_get_symbol_name_matcher): Return do_exact_match when
11685 doing a verbatim match.
11686
485b851b
TT
116872019-02-15 Tom Tromey <tromey@adacore.com>
11688
11689 * ravenscar-thread.c (ravenscar_thread_target::resume)
11690 (ravenscar_thread_target::wait): Special case wildcard requests.
11691
0b790b1e
TT
116922019-02-15 Tom Tromey <tromey@adacore.com>
11693
11694 * ravenscar-thread.c (base_ptid): Remove.
11695 (struct ravenscar_thread_target) <close>: New method.
11696 <m_base_ptid>: New member.
11697 <update_inferior_ptid, active_task, task_is_currently_active,
11698 runtime_initialized>: Declare methods.
11699 <ravenscar_thread_target>: Add constructor.
11700 (ravenscar_thread_target::task_is_currently_active)
11701 (ravenscar_thread_target::update_inferior_ptid)
11702 (ravenscar_runtime_initialized): Rename. Now methods.
11703 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11704 (ravenscar_thread_target::update_thread_list): Update.
11705 (ravenscar_thread_target::active_task): Now method.
11706 (ravenscar_thread_target::store_registers)
11707 (ravenscar_thread_target::prepare_to_store)
11708 (ravenscar_thread_target::prepare_to_store)
11709 (ravenscar_thread_target::mourn_inferior): Update.
11710 (ravenscar_inferior_created): Use "new" to create target.
11711 (ravenscar_thread_target::get_ada_task_ptid): Update.
11712 (_initialize_ravenscar): Don't initialize base_ptid.
11713 (ravenscar_ops): Remove global.
11714
dea57a62
TT
117152019-02-15 Tom Tromey <tromey@adacore.com>
11716
11717 * target.h (push_target): Declare new overload.
11718 * target.c (push_target): New overload, taking an rvalue reference.
11719 * remote.c (remote_target::open_1): Use push_target overload.
11720 * corelow.c (core_target_open): Use push_target overload.
11721
989f3c58
TT
117222019-02-15 Tom Tromey <tromey@adacore.com>
11723
11724 * ravenscar-thread.c (is_ravenscar_task)
11725 (ravenscar_task_is_currently_active): Return bool.
11726 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11727 (_initialize_ravenscar): Remove "(void)".
11728 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11729 Return bool.
11730
6cbcc006
TT
117312019-02-15 Tom Tromey <tromey@adacore.com>
11732
11733 * ravenscar-thread.c (ravenscar_runtime_initializer)
11734 (has_ravenscar_runtime, get_running_thread_id)
11735 (ravenscar_thread_target::resume): Fix indentation.
11736
7657f14d
TT
117372019-02-15 Tom Tromey <tromey@adacore.com>
11738
11739 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11740 from ravenscar_arch_ops.
11741 (sparc_ravenscar_ops::fetch_registers)
11742 (sparc_ravenscar_ops::store_registers): Now methods.
11743 (sparc_ravenscar_prepare_to_store): Remove.
11744 (sparc_ravenscar_ops): Redefine.
11745 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11746 methods and destructor. Remove members.
11747 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11748 (ravenscar_thread_target::store_registers)
11749 (ravenscar_thread_target::prepare_to_store): Update.
11750 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11751 Remove.
11752 (struct ppc_ravenscar_powerpc_ops): Derive from
11753 ravenscar_arch_ops.
11754 (ppc_ravenscar_powerpc_ops::fetch_registers)
11755 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11756 (ppc_ravenscar_powerpc_ops): Redefine.
11757 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11758 (ppc_ravenscar_e500_ops::fetch_registers)
11759 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11760 (ppc_ravenscar_e500_ops): Redefine.
11761 * aarch64-ravenscar-thread.c
11762 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11763 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11764 (aarch64_ravenscar_fetch_registers)
11765 (aarch64_ravenscar_store_registers): Now methods.
11766 (aarch64_ravenscar_ops): Redefine.
11767
5b6ea500
TT
117682019-02-15 Tom Tromey <tromey@adacore.com>
11769
11770 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11771 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11772 (ravenscar_thread_target::stopped_by_watchpoint)
11773 (ravenscar_thread_target::stopped_data_address)
11774 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11775
e397fd39
TT
117762019-02-15 Tom Tromey <tromey@adacore.com>
11777
11778 * ravenscar-thread.c: Fix some typos.
11779
cc12f4a8
TT
117802019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11781 Tom Tromey <tromey@adacore.com>
11782
11783 * ada-lang.c (ada_exception_sal): Change addr_string to a
11784 std::string.
11785 (create_ada_exception_catchpoint): Update.
11786
5f486660
TT
117872019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11788 Tom Tromey <tromey@adacore.com>
11789
11790 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11791 (bp_location_ops): Remove.
11792 (base_breakpoint_allocate_location): Update.
11793 (free_bp_location): Update.
11794 * ada-lang.c (class ada_catchpoint_location)
11795 <ada_catchpoint_location>: Remove ops parameter.
11796 (ada_catchpoint_location_dtor): Remove.
11797 (ada_catchpoint_location_ops): Remove.
11798 (allocate_location_exception): Update.
11799 * breakpoint.h (struct bp_location_ops): Remove.
11800 (class bp_location) <bp_location>: Remove bp_location_ops
11801 parameter.
11802 <~bp_location>: Add destructor.
11803 <ops>: Remove.
11804
b671c7fb
TS
118052019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11806 Pedro Alves <palves@redhat.com>
11807
11808 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11809 'PATH_MAX'.
11810
8071c5ce
DM
118112019-02-14 David Michael <fedora.dm0@gmail.com>
11812 Samuel Thibault <samuel.thibault@gnu.org>
11813 Thomas Schwinge <thomas@codesourcery.com>
11814
11815 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11816 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11817
b1041ae0
TS
118182019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11819
924514e1
TS
11820 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11821 (check_empty): Use "const char *".
11822
c29ee8d4
TS
11823 * gnu-nat.c (gnu_nat_target::detach): Instead of
11824 'detach_inferior (pid)' call
11825 'detach_inferior (find_inferior_pid (pid))'.
11826
6c6ef69f
TS
11827 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11828 'nat/fork-inferior.o'.
11829 * gnu-nat.c: #include "nat/fork-inferior.h".
11830
2d0a338c
TS
11831 * gnu-nat.c (gnu_nat_target::detach): Instead of
11832 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11833 * gnu-nat.h: #include "inf-child.h".
11834 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11835 'i386_gnu_nat_target::fetch_registers'.
11836 (gnu_store_registers): Rename/move to
11837 'i386_gnu_nat_target::store_registers'.
11838
cabb5f06
TS
11839 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11840 * gnu-nat.h (mach_thread_info): New function.
11841 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11842
b1041ae0
TS
11843 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11844
2988d01e
KF
118452019-02-14 Frederic Konrad <konrad@adacore.com>
11846
11847 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11848
c559d709
JB
118492019-02-14 Joel Brobecker <brobecker@adacore.com>
11850
11851 * windows-nat.c (windows_add_thread): Add new parameter
11852 "main_thread_p" with default value set to false. Update
11853 function documentation as well as all callers.
11854 (windows_delete_thread): Likewise.
11855 (fake_create_process): Update call to windows_add_thread.
11856 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11857 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11858 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11859 call to windows_delete_thread.
11860
007024cc
SM
118612019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11862
11863 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11864
f62318e9
JB
118652019-02-12 John Baldwin <jhb@FreeBSD.org>
11866
11867 * symfile.c (find_separate_debug_file): Use canonical path of
11868 sysroot with child_path instead of gdb_sysroot if it is valid.
11869
cd4b7848
JB
118702019-02-12 John Baldwin <jhb@FreeBSD.org>
11871
11872 * symfile.c (find_separate_debug_file): Use child_path to
11873 determine if an object file is under a sysroot.
11874
efac4bfe
JB
118752019-02-12 John Baldwin <jhb@FreeBSD.org>
11876
11877 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11878 unittests/child-path-selftests.c.
11879 * common/pathstuff.c (child_path): New function.
11880 * common/pathstuff.h (child_path): New prototype.
11881 * unittests/child-path-selftests.c: New file.
11882
402d2bfe
JB
118832019-02-12 John Baldwin <jhb@FreeBSD.org>
11884
11885 * symfile.c (find_separate_debug_file): Look for separate debug
11886 files in debug directories under the sysroot.
11887
1ed9f74e
PW
118882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11889
11890 * symtab.h (struct minimal_symbol data_p): New const method.
11891 (struct minimal_symbol text_p): Likewise.
11892 * symtab.c (output_source_filename): Use file name style
11893 to print file name.
11894 (print_symbol_info): Likewise.
11895 (print_msymbol_info): Use address style to print addresses.
11896 Use function name style to print executable text symbols.
11897 (expand_symtab_containing_pc): Use data_p.
11898 (find_pc_sect_compunit_symtab): Likewise.
11899
2636d81d
PW
119002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11901
11902 * breakpoint.c (describe_other_breakpoints): Use address style
11903 to print addresses.
11904 (say_where): Likewise.
11905
ac8c53cc
PW
119062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11907
11908 * ada-typeprint.c (print_func_type): Print function name
11909 style to print function name.
11910 * c-typeprint.c (c_print_type_1): Likewise.
11911
ea638c43
AH
119122019-02-11 Alan Hayward <alan.hayward@arm.com>
11913
11914 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11915 for execve.
11916
ab759ca8
PW
119172019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11918
11919 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11920 type_stack.
11921
aff29d1c
JB
119222019-02-10 Joel Brobecker <brobecker@adacore.com>
11923
11924 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11925 TYPE_CODE_REF types.
11926
617126bc
JW
119272019-02-08 Jim Wilson <jimw@sifive.com>
11928
11929 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11930 (riscv_linux_fregset): New.
11931 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11932
46e3ed7f
TT
119332019-02-07 Tom Tromey <tom@tromey.com>
11934
11935 * thread.c (thread_cancel_execution_command): Update.
11936 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11937 methods.
11938 (struct thread_fsm_ops): Remove.
11939 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11940 (thread_fsm_should_stop, thread_fsm_return_value)
11941 (thread_fsm_set_finished, thread_fsm_finished_p)
11942 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11943 Don't declare.
11944 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11945 * infrun.c (clear_proceed_status_thread)
11946 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11947 (print_stop_event): Update.
11948 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11949 Add constructor.
11950 (step_command_fsm_ops): Remove.
11951 (new_step_command_fsm): Remove.
11952 (step_1): Update.
11953 (step_command_fsm::should_stop): Rename from
11954 step_command_fsm_should_stop.
11955 (step_command_fsm::clean_up): Rename from
11956 step_command_fsm_clean_up.
11957 (step_command_fsm::do_async_reply_reason): Rename from
11958 step_command_fsm_async_reply_reason.
11959 (struct until_next_fsm): Inherit from thread_fsm. Add
11960 constructor.
11961 (until_next_fsm_ops): Remove.
11962 (new_until_next_fsm): Remove.
11963 (until_next_fsm::should_stop): Rename from
11964 until_next_fsm_should_stop.
11965 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11966 (until_next_fsm::do_async_reply_reason): Rename from
11967 until_next_fsm_async_reply_reason.
11968 (struct finish_command_fsm): Inherit from thread_fsm. Add
11969 constructor. Change type of breakpoint.
11970 (finish_command_fsm_ops): Remove.
11971 (new_finish_command_fsm): Remove.
11972 (finish_command_fsm::should_stop): Rename from
11973 finish_command_fsm_should_stop.
11974 (finish_command_fsm::clean_up): Rename from
11975 finish_command_fsm_clean_up.
11976 (finish_command_fsm::return_value): Rename from
11977 finish_command_fsm_return_value.
11978 (finish_command_fsm::do_async_reply_reason): Rename from
11979 finish_command_fsm_async_reply_reason.
11980 (finish_command): Update.
11981 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11982 Add constructor.
11983 (call_thread_fsm_ops): Remove.
11984 (call_thread_fsm::call_thread_fsm): Rename from
11985 new_call_thread_fsm.
11986 (call_thread_fsm::should_stop): Rename from
11987 call_thread_fsm_should_stop.
11988 (call_thread_fsm::should_notify_stop): Rename from
11989 call_thread_fsm_should_notify_stop.
11990 (run_inferior_call, call_function_by_hand_dummy): Update.
11991 * cli/cli-interp.c (should_print_stop_to_console): Update.
11992 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11993 Add constructor. Change type of location_breakpoint,
11994 caller_breakpoint.
11995 (until_break_fsm_ops): Remove.
11996 (new_until_break_fsm): Remove.
11997 (until_break_fsm::should_stop): Rename from
11998 until_break_fsm_should_stop.
11999 (until_break_fsm::clean_up): Rename from
12000 until_break_fsm_clean_up.
12001 (until_break_fsm::do_async_reply_reason): Rename from
12002 until_break_fsm_async_reply_reason.
12003 (until_break_command): Update.
12004 * thread-fsm.c: Remove.
12005 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12006
1a5c2598
TT
120072019-02-07 Tom Tromey <tom@tromey.com>
12008
12009 * yy-remap.h: Add include guard.
12010 * xtensa-tdep.h: Add include guard.
12011 * xcoffread.h: Rename include guard.
12012 * varobj-iter.h: Add include guard.
12013 * tui/tui.h: Rename include guard.
12014 * tui/tui-winsource.h: Rename include guard.
12015 * tui/tui-wingeneral.h: Rename include guard.
12016 * tui/tui-windata.h: Rename include guard.
12017 * tui/tui-win.h: Rename include guard.
12018 * tui/tui-stack.h: Rename include guard.
12019 * tui/tui-source.h: Rename include guard.
12020 * tui/tui-regs.h: Rename include guard.
12021 * tui/tui-out.h: Rename include guard.
12022 * tui/tui-layout.h: Rename include guard.
12023 * tui/tui-io.h: Rename include guard.
12024 * tui/tui-hooks.h: Rename include guard.
12025 * tui/tui-file.h: Rename include guard.
12026 * tui/tui-disasm.h: Rename include guard.
12027 * tui/tui-data.h: Rename include guard.
12028 * tui/tui-command.h: Rename include guard.
12029 * tic6x-tdep.h: Add include guard.
12030 * target/waitstatus.h: Rename include guard.
12031 * target/wait.h: Rename include guard.
12032 * target/target.h: Rename include guard.
12033 * target/resume.h: Rename include guard.
12034 * target-float.h: Rename include guard.
12035 * stabsread.h: Add include guard.
12036 * rs6000-tdep.h: Add include guard.
12037 * riscv-fbsd-tdep.h: Add include guard.
12038 * regformats/regdef.h: Rename include guard.
12039 * record.h: Rename include guard.
12040 * python/python.h: Rename include guard.
12041 * python/python-internal.h: Rename include guard.
12042 * python/py-stopevent.h: Rename include guard.
12043 * python/py-ref.h: Rename include guard.
12044 * python/py-record.h: Rename include guard.
12045 * python/py-record-full.h: Rename include guard.
12046 * python/py-record-btrace.h: Rename include guard.
12047 * python/py-instruction.h: Rename include guard.
12048 * python/py-events.h: Rename include guard.
12049 * python/py-event.h: Rename include guard.
12050 * procfs.h: Add include guard.
12051 * proc-utils.h: Add include guard.
12052 * p-lang.h: Add include guard.
12053 * or1k-tdep.h: Rename include guard.
12054 * observable.h: Rename include guard.
12055 * nto-tdep.h: Rename include guard.
12056 * nat/x86-linux.h: Rename include guard.
12057 * nat/x86-linux-dregs.h: Rename include guard.
12058 * nat/x86-gcc-cpuid.h: Add include guard.
12059 * nat/x86-dregs.h: Rename include guard.
12060 * nat/x86-cpuid.h: Rename include guard.
12061 * nat/ppc-linux.h: Rename include guard.
12062 * nat/mips-linux-watch.h: Rename include guard.
12063 * nat/linux-waitpid.h: Rename include guard.
12064 * nat/linux-ptrace.h: Rename include guard.
12065 * nat/linux-procfs.h: Rename include guard.
12066 * nat/linux-osdata.h: Rename include guard.
12067 * nat/linux-nat.h: Rename include guard.
12068 * nat/linux-namespaces.h: Rename include guard.
12069 * nat/linux-btrace.h: Rename include guard.
12070 * nat/glibc_thread_db.h: Rename include guard.
12071 * nat/gdb_thread_db.h: Rename include guard.
12072 * nat/gdb_ptrace.h: Rename include guard.
12073 * nat/fork-inferior.h: Rename include guard.
12074 * nat/amd64-linux-siginfo.h: Rename include guard.
12075 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12076 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12077 * nat/aarch64-linux.h: Rename include guard.
12078 * nat/aarch64-linux-hw-point.h: Rename include guard.
12079 * mn10300-tdep.h: Add include guard.
12080 * mips-linux-tdep.h: Add include guard.
12081 * mi/mi-parse.h: Rename include guard.
12082 * mi/mi-out.h: Rename include guard.
12083 * mi/mi-main.h: Rename include guard.
12084 * mi/mi-interp.h: Rename include guard.
12085 * mi/mi-getopt.h: Rename include guard.
12086 * mi/mi-console.h: Rename include guard.
12087 * mi/mi-common.h: Rename include guard.
12088 * mi/mi-cmds.h: Rename include guard.
12089 * mi/mi-cmd-break.h: Rename include guard.
12090 * m2-lang.h: Add include guard.
12091 * location.h: Rename include guard.
12092 * linux-record.h: Rename include guard.
12093 * linux-nat.h: Add include guard.
12094 * linux-fork.h: Add include guard.
12095 * i386-darwin-tdep.h: Rename include guard.
12096 * hppa-linux-offsets.h: Add include guard.
12097 * guile/guile.h: Rename include guard.
12098 * guile/guile-internal.h: Rename include guard.
12099 * gnu-nat.h: Rename include guard.
12100 * gdb-stabs.h: Rename include guard.
12101 * frv-tdep.h: Add include guard.
12102 * f-lang.h: Add include guard.
12103 * event-loop.h: Add include guard.
12104 * darwin-nat.h: Rename include guard.
12105 * cp-abi.h: Rename include guard.
12106 * config/sparc/nm-sol2.h: Rename include guard.
12107 * config/nm-nto.h: Rename include guard.
12108 * config/nm-linux.h: Add include guard.
12109 * config/i386/nm-i386gnu.h: Rename include guard.
12110 * config/djgpp/nl_types.h: Rename include guard.
12111 * config/djgpp/langinfo.h: Rename include guard.
12112 * compile/gcc-cp-plugin.h: Add include guard.
12113 * compile/gcc-c-plugin.h: Add include guard.
12114 * compile/compile.h: Rename include guard.
12115 * compile/compile-object-run.h: Rename include guard.
12116 * compile/compile-object-load.h: Rename include guard.
12117 * compile/compile-internal.h: Rename include guard.
12118 * compile/compile-cplus.h: Rename include guard.
12119 * compile/compile-c.h: Rename include guard.
12120 * common/xml-utils.h: Rename include guard.
12121 * common/x86-xstate.h: Rename include guard.
12122 * common/version.h: Rename include guard.
12123 * common/vec.h: Rename include guard.
12124 * common/tdesc.h: Rename include guard.
12125 * common/selftest.h: Rename include guard.
12126 * common/scoped_restore.h: Rename include guard.
12127 * common/scoped_mmap.h: Rename include guard.
12128 * common/scoped_fd.h: Rename include guard.
12129 * common/safe-iterator.h: Rename include guard.
12130 * common/run-time-clock.h: Rename include guard.
12131 * common/refcounted-object.h: Rename include guard.
12132 * common/queue.h: Rename include guard.
12133 * common/ptid.h: Rename include guard.
12134 * common/print-utils.h: Rename include guard.
12135 * common/preprocessor.h: Rename include guard.
12136 * common/pathstuff.h: Rename include guard.
12137 * common/observable.h: Rename include guard.
12138 * common/netstuff.h: Rename include guard.
12139 * common/job-control.h: Rename include guard.
12140 * common/host-defs.h: Rename include guard.
12141 * common/gdb_wait.h: Rename include guard.
12142 * common/gdb_vecs.h: Rename include guard.
12143 * common/gdb_unlinker.h: Rename include guard.
12144 * common/gdb_unique_ptr.h: Rename include guard.
12145 * common/gdb_tilde_expand.h: Rename include guard.
12146 * common/gdb_sys_time.h: Rename include guard.
12147 * common/gdb_string_view.h: Rename include guard.
12148 * common/gdb_splay_tree.h: Rename include guard.
12149 * common/gdb_setjmp.h: Rename include guard.
12150 * common/gdb_ref_ptr.h: Rename include guard.
12151 * common/gdb_optional.h: Rename include guard.
12152 * common/gdb_locale.h: Rename include guard.
12153 * common/gdb_assert.h: Rename include guard.
12154 * common/filtered-iterator.h: Rename include guard.
12155 * common/filestuff.h: Rename include guard.
12156 * common/fileio.h: Rename include guard.
12157 * common/environ.h: Rename include guard.
12158 * common/common-utils.h: Rename include guard.
12159 * common/common-types.h: Rename include guard.
12160 * common/common-regcache.h: Rename include guard.
12161 * common/common-inferior.h: Rename include guard.
12162 * common/common-gdbthread.h: Rename include guard.
12163 * common/common-exceptions.h: Rename include guard.
12164 * common/common-defs.h: Rename include guard.
12165 * common/common-debug.h: Rename include guard.
12166 * common/cleanups.h: Rename include guard.
12167 * common/buffer.h: Rename include guard.
12168 * common/btrace-common.h: Rename include guard.
12169 * common/break-common.h: Rename include guard.
12170 * cli/cli-utils.h: Rename include guard.
12171 * cli/cli-style.h: Rename include guard.
12172 * cli/cli-setshow.h: Rename include guard.
12173 * cli/cli-script.h: Rename include guard.
12174 * cli/cli-interp.h: Rename include guard.
12175 * cli/cli-decode.h: Rename include guard.
12176 * cli/cli-cmds.h: Rename include guard.
12177 * charset-list.h: Add include guard.
12178 * buildsym-legacy.h: Rename include guard.
12179 * bfin-tdep.h: Add include guard.
12180 * ax.h: Rename include guard.
12181 * arm-linux-tdep.h: Add include guard.
12182 * arm-fbsd-tdep.h: Add include guard.
12183 * arch/xtensa.h: Rename include guard.
12184 * arch/tic6x.h: Add include guard.
12185 * arch/i386.h: Add include guard.
12186 * arch/arm.h: Rename include guard.
12187 * arch/arm-linux.h: Rename include guard.
12188 * arch/arm-get-next-pcs.h: Rename include guard.
12189 * arch/amd64.h: Add include guard.
12190 * arch/aarch64-insn.h: Rename include guard.
12191 * arch-utils.h: Rename include guard.
12192 * annotate.h: Add include guard.
12193 * amd64-darwin-tdep.h: Rename include guard.
12194 * aarch64-linux-tdep.h: Add include guard.
12195 * aarch64-fbsd-tdep.h: Add include guard.
12196 * aarch32-linux-nat.h: Add include guard.
12197
ab9268d2
PW
121982019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12199
12200 * macrotab.c (macro_define_internal): New function that
12201 factorizes macro_define_object_internal and macro_define_function
12202 code.
12203 (macro_define_object_internal): Use macro_define_internal.
12204 (macro_define_function): Likewise.
12205
bb0da2b4
PW
122062019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12207
12208 * macrocmd.c (extract_identifier): Return
12209 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12210 callers.
12211
424eb552
JB
122122019-02-06 John Baldwin <jhb@FreeBSD.org>
12213
12214 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12215
1688cb29
TT
122162019-02-05 Tom Tromey <tom@tromey.com>
12217
12218 * target.c (target_stack::unpush): Move assertion earlier.
12219
b5eba2d8
TT
122202019-01-30 Tom Tromey <tom@tromey.com>
12221
12222 PR python/23615:
12223 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12224 (gdbpy_parse_and_eval): Likewise.
12225 * python/python-internal.h (gdbpy_allow_threads): New class.
12226
7054e2ff
JB
122272019-01-28 John Baldwin <jhb@FreeBSD.org>
12228
12229 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12230 (aarch64_fbsd_fpregmap): Move earlier.
12231 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12232 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12233 instead of individual calls to trad_frame_set_reg_addr.
12234 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12235 earlier.
12236 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12237 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12238 instead of individual calls to trad_frame_set_reg_addr.
12239
36c25ffa
AH
122402019-01-28 Alan Hayward <alan.hayward@arm.com>
12241
12242 * CONTRIBUTE: Replace contribution list with wiki link.
12243
a0707f3c
TT
122442019-01-25 Tom Tromey <tom@tromey.com>
12245
12246 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12247
0747795c
TT
122482019-01-25 Tom Tromey <tom@tromey.com>
12249
12250 * xtensa-linux-nat.c: Fix common/ includes.
12251 * xml-support.h: Fix common/ includes.
12252 * xml-support.c: Fix common/ includes.
12253 * x86-linux-nat.c: Fix common/ includes.
12254 * windows-nat.c: Fix common/ includes.
12255 * varobj.h: Fix common/ includes.
12256 * varobj.c: Fix common/ includes.
12257 * value.c: Fix common/ includes.
12258 * valops.c: Fix common/ includes.
12259 * utils.c: Fix common/ includes.
12260 * unittests/xml-utils-selftests.c: Fix common/ includes.
12261 * unittests/utils-selftests.c: Fix common/ includes.
12262 * unittests/unpack-selftests.c: Fix common/ includes.
12263 * unittests/tracepoint-selftests.c: Fix common/ includes.
12264 * unittests/style-selftests.c: Fix common/ includes.
12265 * unittests/string_view-selftests.c: Fix common/ includes.
12266 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12267 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12268 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12269 * unittests/rsp-low-selftests.c: Fix common/ includes.
12270 * unittests/parse-connection-spec-selftests.c: Fix common/
12271 includes.
12272 * unittests/optional-selftests.c: Fix common/ includes.
12273 * unittests/offset-type-selftests.c: Fix common/ includes.
12274 * unittests/observable-selftests.c: Fix common/ includes.
12275 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12276 * unittests/memrange-selftests.c: Fix common/ includes.
12277 * unittests/memory-map-selftests.c: Fix common/ includes.
12278 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12279 * unittests/function-view-selftests.c: Fix common/ includes.
12280 * unittests/environ-selftests.c: Fix common/ includes.
12281 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12282 * unittests/common-utils-selftests.c: Fix common/ includes.
12283 * unittests/cli-utils-selftests.c: Fix common/ includes.
12284 * unittests/array-view-selftests.c: Fix common/ includes.
12285 * ui-file.c: Fix common/ includes.
12286 * tui/tui-io.c: Fix common/ includes.
12287 * tracepoint.h: Fix common/ includes.
12288 * tracepoint.c: Fix common/ includes.
12289 * tracefile-tfile.c: Fix common/ includes.
12290 * top.h: Fix common/ includes.
12291 * top.c: Fix common/ includes.
12292 * thread.c: Fix common/ includes.
12293 * target/waitstatus.h: Fix common/ includes.
12294 * target/waitstatus.c: Fix common/ includes.
12295 * target.h: Fix common/ includes.
12296 * target.c: Fix common/ includes.
12297 * target-memory.c: Fix common/ includes.
12298 * target-descriptions.c: Fix common/ includes.
12299 * symtab.h: Fix common/ includes.
12300 * symfile.c: Fix common/ includes.
12301 * stap-probe.c: Fix common/ includes.
12302 * spu-linux-nat.c: Fix common/ includes.
12303 * sparc-nat.c: Fix common/ includes.
12304 * source.c: Fix common/ includes.
12305 * solib.c: Fix common/ includes.
12306 * solib-target.c: Fix common/ includes.
12307 * ser-unix.c: Fix common/ includes.
12308 * ser-tcp.c: Fix common/ includes.
12309 * ser-pipe.c: Fix common/ includes.
12310 * ser-base.c: Fix common/ includes.
12311 * selftest-arch.c: Fix common/ includes.
12312 * s12z-tdep.c: Fix common/ includes.
12313 * rust-exp.y: Fix common/ includes.
12314 * rs6000-aix-tdep.c: Fix common/ includes.
12315 * riscv-tdep.c: Fix common/ includes.
12316 * remote.c: Fix common/ includes.
12317 * remote-notif.h: Fix common/ includes.
12318 * remote-fileio.h: Fix common/ includes.
12319 * remote-fileio.c: Fix common/ includes.
12320 * regcache.h: Fix common/ includes.
12321 * regcache.c: Fix common/ includes.
12322 * record-btrace.c: Fix common/ includes.
12323 * python/python.c: Fix common/ includes.
12324 * python/py-type.c: Fix common/ includes.
12325 * python/py-inferior.c: Fix common/ includes.
12326 * progspace.h: Fix common/ includes.
12327 * producer.c: Fix common/ includes.
12328 * procfs.c: Fix common/ includes.
12329 * proc-api.c: Fix common/ includes.
12330 * printcmd.c: Fix common/ includes.
12331 * ppc-linux-nat.c: Fix common/ includes.
12332 * parser-defs.h: Fix common/ includes.
12333 * osdata.c: Fix common/ includes.
12334 * obsd-nat.c: Fix common/ includes.
12335 * nat/x86-linux.c: Fix common/ includes.
12336 * nat/x86-linux-dregs.c: Fix common/ includes.
12337 * nat/x86-dregs.h: Fix common/ includes.
12338 * nat/x86-dregs.c: Fix common/ includes.
12339 * nat/ppc-linux.c: Fix common/ includes.
12340 * nat/mips-linux-watch.h: Fix common/ includes.
12341 * nat/mips-linux-watch.c: Fix common/ includes.
12342 * nat/linux-waitpid.c: Fix common/ includes.
12343 * nat/linux-ptrace.h: Fix common/ includes.
12344 * nat/linux-ptrace.c: Fix common/ includes.
12345 * nat/linux-procfs.c: Fix common/ includes.
12346 * nat/linux-personality.c: Fix common/ includes.
12347 * nat/linux-osdata.c: Fix common/ includes.
12348 * nat/linux-namespaces.c: Fix common/ includes.
12349 * nat/linux-btrace.h: Fix common/ includes.
12350 * nat/linux-btrace.c: Fix common/ includes.
12351 * nat/fork-inferior.c: Fix common/ includes.
12352 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12353 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12354 * nat/aarch64-linux.c: Fix common/ includes.
12355 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12356 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12357 * namespace.h: Fix common/ includes.
12358 * mips-linux-tdep.c: Fix common/ includes.
12359 * minsyms.c: Fix common/ includes.
12360 * mi/mi-parse.h: Fix common/ includes.
12361 * mi/mi-main.c: Fix common/ includes.
12362 * mi/mi-cmd-env.c: Fix common/ includes.
12363 * memrange.h: Fix common/ includes.
12364 * memattr.c: Fix common/ includes.
12365 * maint.h: Fix common/ includes.
12366 * maint.c: Fix common/ includes.
12367 * main.c: Fix common/ includes.
12368 * machoread.c: Fix common/ includes.
12369 * location.c: Fix common/ includes.
12370 * linux-thread-db.c: Fix common/ includes.
12371 * linux-nat.c: Fix common/ includes.
12372 * linux-fork.c: Fix common/ includes.
12373 * inline-frame.c: Fix common/ includes.
12374 * infrun.c: Fix common/ includes.
12375 * inflow.c: Fix common/ includes.
12376 * inferior.h: Fix common/ includes.
12377 * inferior.c: Fix common/ includes.
12378 * infcmd.c: Fix common/ includes.
12379 * inf-ptrace.c: Fix common/ includes.
12380 * inf-child.c: Fix common/ includes.
12381 * ia64-linux-nat.c: Fix common/ includes.
12382 * i387-tdep.c: Fix common/ includes.
12383 * i386-tdep.c: Fix common/ includes.
12384 * i386-linux-tdep.c: Fix common/ includes.
12385 * i386-linux-nat.c: Fix common/ includes.
12386 * i386-go32-tdep.c: Fix common/ includes.
12387 * i386-fbsd-tdep.c: Fix common/ includes.
12388 * i386-fbsd-nat.c: Fix common/ includes.
12389 * guile/scm-type.c: Fix common/ includes.
12390 * guile/guile.c: Fix common/ includes.
12391 * go32-nat.c: Fix common/ includes.
12392 * gnu-nat.c: Fix common/ includes.
12393 * gdbthread.h: Fix common/ includes.
12394 * gdbarch-selftests.c: Fix common/ includes.
12395 * gdb_usleep.c: Fix common/ includes.
12396 * gdb_select.h: Fix common/ includes.
12397 * gdb_bfd.c: Fix common/ includes.
12398 * gcore.c: Fix common/ includes.
12399 * fork-child.c: Fix common/ includes.
12400 * findvar.c: Fix common/ includes.
12401 * fbsd-nat.c: Fix common/ includes.
12402 * event-top.c: Fix common/ includes.
12403 * event-loop.c: Fix common/ includes.
12404 * dwarf2read.c: Fix common/ includes.
12405 * dwarf2loc.c: Fix common/ includes.
12406 * dwarf2-frame.c: Fix common/ includes.
12407 * dwarf-index-cache.c: Fix common/ includes.
12408 * dtrace-probe.c: Fix common/ includes.
12409 * disasm-selftests.c: Fix common/ includes.
12410 * defs.h: Fix common/ includes.
12411 * csky-tdep.c: Fix common/ includes.
12412 * cp-valprint.c: Fix common/ includes.
12413 * cp-support.h: Fix common/ includes.
12414 * cp-support.c: Fix common/ includes.
12415 * corelow.c: Fix common/ includes.
12416 * completer.h: Fix common/ includes.
12417 * completer.c: Fix common/ includes.
12418 * compile/compile.c: Fix common/ includes.
12419 * compile/compile-loc2c.c: Fix common/ includes.
12420 * compile/compile-cplus-types.c: Fix common/ includes.
12421 * compile/compile-cplus-symbols.c: Fix common/ includes.
12422 * command.h: Fix common/ includes.
12423 * cli/cli-dump.c: Fix common/ includes.
12424 * cli/cli-cmds.c: Fix common/ includes.
12425 * charset.c: Fix common/ includes.
12426 * build-id.c: Fix common/ includes.
12427 * btrace.h: Fix common/ includes.
12428 * btrace.c: Fix common/ includes.
12429 * breakpoint.h: Fix common/ includes.
12430 * breakpoint.c: Fix common/ includes.
12431 * ax.h:
12432 (enum agent_op): Fix common/ includes.
12433 * ax-general.c (struct aop_map): Fix common/ includes.
12434 * ax-gdb.c: Fix common/ includes.
12435 * auxv.c: Fix common/ includes.
12436 * auto-load.c: Fix common/ includes.
12437 * arm-tdep.c: Fix common/ includes.
12438 * arch/riscv.c: Fix common/ includes.
12439 * arch/ppc-linux-common.c: Fix common/ includes.
12440 * arch/i386.c: Fix common/ includes.
12441 * arch/arm.c: Fix common/ includes.
12442 * arch/arm-linux.c: Fix common/ includes.
12443 * arch/arm-get-next-pcs.c: Fix common/ includes.
12444 * arch/amd64.c: Fix common/ includes.
12445 * arch/aarch64.c: Fix common/ includes.
12446 * arch/aarch64-insn.c: Fix common/ includes.
12447 * arch-utils.c: Fix common/ includes.
12448 * amd64-windows-tdep.c: Fix common/ includes.
12449 * amd64-tdep.c: Fix common/ includes.
12450 * amd64-sol2-tdep.c: Fix common/ includes.
12451 * amd64-obsd-tdep.c: Fix common/ includes.
12452 * amd64-nbsd-tdep.c: Fix common/ includes.
12453 * amd64-linux-tdep.c: Fix common/ includes.
12454 * amd64-linux-nat.c: Fix common/ includes.
12455 * amd64-fbsd-tdep.c: Fix common/ includes.
12456 * amd64-fbsd-nat.c: Fix common/ includes.
12457 * amd64-dicos-tdep.c: Fix common/ includes.
12458 * amd64-darwin-tdep.c: Fix common/ includes.
12459 * agent.c: Fix common/ includes.
12460 * ada-lang.h: Fix common/ includes.
12461 * ada-lang.c: Fix common/ includes.
12462 * aarch64-tdep.c: Fix common/ includes.
12463
2f5c153e
TT
124642019-01-25 Tom Tromey <tom@tromey.com>
12465
12466 * common/create-version.sh: Use common/version.h.
12467
adc6a863
PA
124682019-01-24 Pedro Alves <palves@redhat.com>
12469
12470 * infrun.c (signal_stop, signal_print, signal_program)
12471 (signal_catch, signal_pass): Now arrays instead of pointers.
12472 (update_signals_program_target, do_target_resume)
12473 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12474 * linux-nat.c (linux_nat_target::pass_signals)
12475 (linux_nat_target::create_inferior, linux_nat_target::attach):
12476 Adjust.
12477 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12478 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12479 * procfs.c (procfs_target::pass_signals): Adjust.
12480 * record-full.c (record_full_target::resume): Adjust.
12481 * remote.c (remote_target::pass_signals)
12482 (remote_target::program_signals): Adjust.
12483 * target-debug.h (target_debug_print_signals): Now takes a
12484 gdb::array_view as parameter. Adjust.
12485 * target.h (target_ops) <pass_signals, program_signals>: Replace
12486 pointer and length parameters with gdb::array_view.
12487 (target_pass_signals, target_program_signals): Likewise.
12488 * target-delegates.c: Regenerate.
12489
3046d67a
PA
124902019-01-24 Pedro Alves <palves@redhat.com>
12491
12492 * common/forward-scope-exit.h
12493 (forward_scope_exit::forward_scope_exit): Pass arguments to
12494 m_bind_function directly, instead of creating a std::bind and
12495 copying that.
12496
353229bf
AH
124972019-01-24 Alan Hayward <alan.hayward@arm.com>
12498
12499 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12500 for static members.
12501 (pass_in_v_vfp_candidate): Likewise.
12502
311dc83a
TT
125032019-01-23 Tom Tromey <tom@tromey.com>
12504 Pedro Alves <palves@redhat.com>
12505
12506 * regcache.c (class regcache_invalidator): Remove.
12507 (regcache::raw_write): Use make_scope_exit.
12508
296bd123
TT
125092019-01-23 Tom Tromey <tom@tromey.com>
12510
12511 * ui-out.h (class ui_out_emit_type): Update comment.
12512
979a0d13
TT
125132019-01-23 Tom Tromey <tom@tromey.com>
12514
12515 * infrun.c (fetch_inferior_event): Update comment.
12516
d238133d
TT
125172019-01-23 Tom Tromey <tom@tromey.com>
12518 Pedro Alves <palves@redhat.com>
12519
12520 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12521 parameter.
12522 (fetch_inferior_event): Use SCOPE_EXIT.
12523
12524
9885e6bb
TT
125252019-01-23 Tom Tromey <tom@tromey.com>
12526 Pedro Alves <palves@redhat.com>
12527
12528 * infrun.c (disable_thread_events): Delete.
12529 (stop_all_threads): Use SCOPE_EXIT.
12530
286526c1
TT
125312019-01-23 Tom Tromey <tom@tromey.com>
12532 Pedro Alves <palves@redhat.com>
12533
12534 * symfile.c: Include forward-scope-exit.h.
12535 (clear_symtab_users_cleanup): Replace forward declaration with
12536 a FORWARD_SCOPE_EXIT.
12537 (syms_from_objfile_1): Use the forward_scope_exit and
12538 gdb::optional instead of cleanup_function.
12539 (reread_symbols): Use the forward_scope_exit instead of
12540 cleanup_function.
12541 (clear_symtab_users_cleanup): Remove function.
12542
1db93f14
TT
125432019-01-23 Tom Tromey <tom@tromey.com>
12544 Pedro Alves <palves@redhat.com>
12545
12546 * linux-nat.c: Include scope-exit.h.
12547 (cleanup_target_stop): Remove.
12548 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12549 SCOPE_EXIT.
12550
2cc83d1e
TT
125512019-01-23 Tom Tromey <tom@tromey.com>
12552 Pedro Alves <palves@redhat.com>
12553
12554 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12555 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12556
694c6bf5
TT
125572019-01-23 Tom Tromey <tom@tromey.com>
12558 Andrew Burgess <andrew.burgess@embecosm.com>
12559 Pedro Alves <palves@redhat.com>
12560
12561 * infrun.c (fetch_inferior_event): Use scope_exit.
12562 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12563 * top.c (execute_command): Use scope_exit.
12564 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12565 * utils.c (do_bpstat_clear_actions_cleanup)
12566 (make_bpstat_clear_actions_cleanup): Remove.
12567
4c41382a
TT
125682019-01-23 Tom Tromey <tom@tromey.com>
12569 Pedro Alves <palves@redhat.com>
12570
12571 * infrun.c: Include "common/scope-exit.h"
12572 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12573 (wait_for_inferior): Use SCOPE_EXIT.
12574 (fetch_inferior_event): Use scope_exit.
12575
89f8fb50
TT
125762019-01-23 Tom Tromey <tom@tromey.com>
12577 Pedro Alves <palves@redhat.com>
12578
12579 * breakpoint.c (create_breakpoint): Remove cleanup.
12580
5419bdae
TT
125812019-01-23 Tom Tromey <tom@tromey.com>
12582 Andrew Burgess <andrew.burgess@embecosm.com>
12583 Pedro Alves <palves@redhat.com>
12584
e587ef42
PA
125852019-01-23 Pedro Alves <palves@redhat.com>
12586
12587 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12588
77f0e74c
PA
125892019-01-23 Pedro Alves <palves@redhat.com>
12590 Andrew Burgess <andrew.burgess@embecosm.com>
12591
12592 * gdbthread.h: Include "common/forward-scope-exit.h".
12593 (scoped_finish_thread_state): Redefine custom class in terms of
12594 forward_scope_exit.
12595
5b9b3e53
PA
125962019-01-23 Pedro Alves <palves@redhat.com>
12597 Andrew Burgess <andrew.burgess@embecosm.com>
12598
12599 * common/forward-scope-exit.h: New file.
12600
54b65c9b
PA
126012019-01-23 Pedro Alves <palves@redhat.com>
12602 Andrew Burgess <andrew.burgess@embecosm.com>
12603 Tom Tromey <tom@tromey.com>
12604
12605 * common/scope-exit.h: New file.
12606
cf08fb29
PA
126072019-01-23 Pedro Alves <palves@redhat.com>
12608
12609 * common/preprocessor.h (ESC): Rename to ...
12610 (ESC_PARENS): ... this.
12611 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12612 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12613
ae73e2e2
TT
126142019-01-23 Tom Tromey <tom@tromey.com>
12615
12616 * language.h (class scoped_switch_to_sym_language_if_auto):
12617 Initialize m_lang in both cases.
12618
6594e122
AH
126192019-01-23 Alan Hayward <alan.hayward@arm.com>
12620
12621 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12622 with XCNEW.
12623
a7c9855d
TT
126242019-01-22 Tom Tromey <tom@tromey.com>
12625
12626 * corelow.c: Do not include sys/file.h.
12627
93cc1d53
TT
126282019-01-22 Tom Tromey <tom@tromey.com>
12629
12630 * tui/tui-wingeneral.h: Include gdb_curses.h.
12631
38561778
TT
126322019-01-22 Tom Tromey <tom@tromey.com>
12633
12634 * source-cache.h (class source_cache) <get_source_lines,
12635 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12636
37b3ab5b
TT
126372019-01-22 Tom Tromey <tom@tromey.com>
12638
12639 * remote-fileio.h (struct remote_target): Declare.
12640
3fabc016
TT
126412019-01-22 Tom Tromey <tom@tromey.com>
12642
12643 * python/py-arch.c: Do not include py-ref.h.
12644 * python/py-bpevent.c: Do not include py-ref.h.
12645 * python/py-cmd.c: Do not include py-ref.h.
12646 * python/py-continueevent.c: Do not include py-ref.h.
12647 * python/py-event.h: Do not include py-ref.h.
12648 * python/py-evtregistry.c: Do not include py-ref.h.
12649 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12650 * python/py-frame.c: Do not include py-ref.h.
12651 * python/py-framefilter.c: Do not include py-ref.h.
12652 * python/py-function.c: Do not include py-ref.h.
12653 * python/py-infevents.c: Do not include py-ref.h.
12654 * python/py-linetable.c: Do not include py-ref.h.
12655 * python/py-objfile.c: Do not include py-ref.h.
12656 * python/py-param.c: Do not include py-ref.h.
12657 * python/py-prettyprint.c: Do not include py-ref.h.
12658 * python/py-progspace.c: Do not include py-ref.h.
12659 * python/py-symbol.c: Do not include py-ref.h.
12660 * python/py-symtab.c: Do not include py-ref.h.
12661 * python/py-type.c: Do not include py-ref.h.
12662 * python/py-unwind.c: Do not include py-ref.h.
12663 * python/py-utils.c: Do not include py-ref.h.
12664 * python/py-value.c: Do not include py-ref.h.
12665 * python/py-varobj.c: Do not include py-ref.h.
12666 * python/py-xmethods.c: Do not include py-ref.h.
12667 * python/python.c: Do not include py-ref.h.
12668 * varobj.c: Do not include py-ref.h.
12669
6b4d7774
TT
126702019-01-22 Tom Tromey <tom@tromey.com>
12671
12672 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12673 keyword for bcache.
12674
7af7e9b5
TT
126752019-01-22 Tom Tromey <tom@tromey.com>
12676
12677 * compile/compile-cplus-types.c: Remove a comment by #include.
12678
951d1049
TT
126792019-01-22 Tom Tromey <tom@tromey.com>
12680
12681 * compile/gcc-c-plugin.h: Include compile-internal.h.
12682
d65d5705
TT
126832019-01-22 Tom Tromey <tom@tromey.com>
12684
12685 * stabsread.c (EXTERN): Do not define.
12686 (symnum, next_symbol_text_func, processing_gcc_compilation)
12687 (within_function, global_sym_chain, global_stabs)
12688 (previous_stab_code, this_object_header_files)
12689 (n_this_object_header_files)
12690 (n_allocated_this_object_header_files): Define.
12691 * stabsread.h (EXTERN): Never define. Use "extern".
12692
b6fb1ee5
PW
126932019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12694
12695 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12696 history_value.
12697
be6d4f74
TT
126982019-01-21 Tom Tromey <tom@tromey.com>
12699
12700 * ui-out.c: Fix includes.
12701 * tui/tui-source.c: Fix includes.
12702 * target.c: Fix includes.
12703 * remote.c: Fix includes.
12704 * regcache.c: Fix includes.
12705 * python/py-block.c: Fix includes.
12706 * printcmd.c: Fix includes.
12707 * or1k-tdep.c: Fix includes.
12708 * mi/mi-main.c: Fix includes.
12709 * m32r-tdep.c: Fix includes.
12710 * csky-tdep.c: Fix includes.
12711 * compile/compile-cplus-types.c: Fix includes.
12712 * cli/cli-interp.c: Fix includes.
12713
73021deb
AH
127142019-01-21 Alan Hayward <alan.hayward@arm.com>
12715
12716 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12717 for padding.
12718
7932255d
TT
127192019-01-16 Tom Tromey <tom@tromey.com>
12720
12721 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12722 earlier.
12723 (struct objfile) <msymbols_range>: Move from top level.
12724 <msymbols>: New method.
12725 (class objfile_msymbols): Remove.
12726 * symtab.c (default_collect_symbol_completion_matches_break_on):
12727 Update.
12728 * symmisc.c (dump_msymbols): Update.
12729 * stabsread.c (scan_file_globals): Update.
12730 * objc-lang.c (info_selectors_command, info_classes_command)
12731 (find_methods): Update.
12732 * minsyms.c (find_solib_trampoline_target): Update.
12733 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12734 * coffread.c (coff_symfile_read): Update.
12735 * ada-lang.c (ada_lookup_simple_minsym)
12736 (ada_collect_symbol_completion_matches): Update.
12737
604b1bfb
TT
127382019-01-16 Tom Tromey <tom@tromey.com>
12739
12740 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12741 type. Remove no-argument constructor.
12742 <iterator::operator++>: Simplify.
12743 <begin>: Update.
12744 <end>: Use minimal_symbol_count.
12745
f252c6d5
TT
127462019-01-16 Tom Tromey <tom@tromey.com>
12747
12748 * objfiles.h (struct objfile) <psymtabs>: New method.
12749 (class objfile_psymtabs): Remove.
12750 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12751 typedef.
12752 <range>: New method.
12753 (require_partial_symbols): Change return type.
12754 * psymtab.c (require_partial_symbols)
12755 (psym_expand_symtabs_matching): Update.
12756 * mdebugread.c (parse_partial_symbols): Update.
12757 * dbxread.c (dbx_end_psymtab): Update.
12758
b669c953
TT
127592019-01-15 Tom Tromey <tom@tromey.com>
12760
12761 * symtab.c (lookup_objfile_from_block)
12762 (lookup_symbol_in_objfile_symtabs)
12763 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12764 (find_line_symtab, info_sources_command)
12765 (default_collect_symbol_completion_matches_break_on)
12766 (make_source_files_completion_list): Update.
12767 * symmisc.c (print_objfile_statistics, dump_objfile)
12768 (maintenance_print_symbols, maintenance_info_symtabs)
12769 (maintenance_check_symtabs, maintenance_info_line_tables):
12770 Update.
12771 * source.c (select_source_symtab)
12772 (forget_cached_source_info_for_objfile): Update.
12773 * objfiles.h (class objfile_compunits): Remove.
12774 (struct objfile) <compunits_range>: New typedef.
12775 (compunits): New method.
12776 * objfiles.c (objfile_relocate1): Update.
12777 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12778 * maint.c (count_symtabs_and_blocks): Update.
12779 * linespec.c (iterate_over_all_matching_symtabs): Update.
12780 * cp-support.c (add_symbol_overload_list_qualified): Update.
12781 * coffread.c (coff_symtab_read): Update.
12782 * ada-lang.c (add_nonlocal_symbols)
12783 (ada_collect_symbol_completion_matches)
12784 (ada_add_global_exceptions): Update.
12785
7e955d83
TT
127862019-01-15 Tom Tromey <tom@tromey.com>
12787
12788 * progspace.h (program_space) <objfiles_safe_range>: New
12789 typedef.
12790 <objfiles_safe>: New method.
12791 * objfiles.h (class all_objfiles_safe): Remove.
12792 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12793 * jit.c (jit_inferior_exit_hook): Update.
12794
2030c079
TT
127952019-01-17 Tom Tromey <tom@tromey.com>
12796
12797 * progspace.h (program_space) <objfiles_range>: New typedef.
12798 <objfiles>: New method.
12799 <objfiles_head>: Rename from objfiles.
12800 (object_files): Update.
12801 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12802 * guile/scm-pretty-print.c
12803 (ppscm_find_pretty_printer_from_objfiles): Update.
12804 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12805 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12806 Update.
12807 * python/py-progspace.c (pspy_get_objfiles): Update.
12808 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12809 Update.
12810 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12811 (objfpy_lookup_objfile_by_build_id): Update.
12812 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12813 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12814 Update.
12815 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12816 (expand_symtab_containing_pc, lookup_objfile_from_block)
12817 (lookup_static_symbol, basic_lookup_transparent_type)
12818 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12819 (find_line_symtab, info_sources_command)
12820 (default_collect_symbol_completion_matches_break_on)
12821 (make_source_files_completion_list, find_main_name): Update.
12822 * symmisc.c (print_symbol_bcache_statistics)
12823 (print_objfile_statistics, maintenance_print_symbols)
12824 (maintenance_print_msymbols, maintenance_print_objfiles)
12825 (maintenance_info_symtabs, maintenance_check_symtabs)
12826 (maintenance_expand_symtabs, maintenance_info_line_tables):
12827 Update.
12828 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12829 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12830 (map_overlay_command, unmap_overlay_command)
12831 (simple_overlay_update, expand_symtabs_matching)
12832 (map_symbol_filenames): Update.
12833 * symfile-debug.c (set_debug_symfile): Update.
12834 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12835 Update.
12836 * source.c (select_source_symtab, forget_cached_source_info):
12837 Update.
12838 * solib.c (solib_read_symbols): Update.
12839 * solib-spu.c (append_ocl_sos): Update.
12840 * psymtab.c (maintenance_print_psymbols)
12841 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12842 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12843 * printcmd.c (info_symbol_command): Update.
12844 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12845 Update.
12846 * objfiles.h (class all_objfiles): Remove.
12847 * objfiles.c (have_partial_symbols, have_full_symbols)
12848 (have_minimal_symbols, qsort_cmp, update_section_map)
12849 (shared_objfile_contains_address_p)
12850 (default_iterate_over_objfiles_in_search_order): Update.
12851 * objc-lang.c (info_selectors_command, info_classes_command)
12852 (find_methods): Update.
12853 * minsyms.c (find_solib_trampoline_target): Update.
12854 * maint.c (maintenance_info_sections)
12855 (maintenance_translate_address, count_symtabs_and_blocks):
12856 Update.
12857 * main.c (captured_main_1): Update.
12858 * linux-thread-db.c (try_thread_db_load_from_pdir)
12859 (has_libpthread): Update.
12860 * linespec.c (iterate_over_all_matching_symtabs)
12861 (search_minsyms_for_name): Update.
12862 * jit.c (jit_find_objf_with_entry_addr): Update.
12863 * hppa-tdep.c (find_unwind_entry)
12864 (hppa_lookup_stub_minimal_symbol): Update.
12865 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12866 Update.
12867 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12868 (elf_gnu_ifunc_resolve_by_got): Update.
12869 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12870 * dwarf-index-write.c (save_gdb_index_command): Update.
12871 * cp-support.c (add_symbol_overload_list_qualified): Update.
12872 * breakpoint.c (create_overlay_event_breakpoint)
12873 (create_longjmp_master_breakpoint)
12874 (create_std_terminate_master_breakpoint)
12875 (create_exception_master_breakpoint): Update.
12876 * blockframe.c (find_pc_partial_function): Update.
12877 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12878 (ada_collect_symbol_completion_matches)
12879 (ada_add_global_exceptions): Update.
12880
776489e0
TT
128812019-01-17 Tom Tromey <tom@tromey.com>
12882
12883 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12884 declare VEC.
12885 (solib_target_parse_libraries): Change return type.
12886 (library_list_start_segment, library_list_start_section)
12887 (library_list_end_library, library_list_start_library); Update.
12888 (solib_target_free_library_list): Remove.
12889 (solib_target_parse_libraries): Remove cleanup. Change return
12890 type.
12891 (solib_target_current_sos): Update.
12892
6471e7d2
TT
128932019-01-17 Tom Tromey <tromey@bapiya>
12894
12895 * valprint.c: Replace "the the" with "the".
12896 * symtab.c: Replace "the the" with "the".
12897 * solib.c: Replace "the the" with "the".
12898 * solib-dsbt.c: Replace "the the" with "the".
12899 * linespec.c: Replace "the the" with "the".
12900 * dwarf2loc.h: Replace "the the" with "the".
12901 * amd64-windows-tdep.c: Replace "the the" with "the".
12902 * aarch64-tdep.c: Replace "the the" with "the".
12903
c24bdb02
KS
129042019-01-16 Keith Seitz <keiths@redhat.com>
12905
12906 PR gdb/23773
12907 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12908 <builder>: Rename to ..
12909 <m_builder>: ... this and make private.
12910 (dwarf2_cu::get_builder): New method. Change all users of
12911 `builder' to use this method.
12912 (dwarf2_start_symtab): Move to ...
12913 (dwarf2_cu::start_symtab): ... here. Update all callers
12914 (setup_type_unit_groups): Move to ...
12915 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12916 callers.
12917 (dwarf2_cu::reset_builder): New method.
12918 (process_full_compunit, process_full_type_unit): Use
12919 dwarf2_cu::reset_builder.
12920 (follow_die_offset): Record the ancestor CU if it is different
12921 from the followed DIE's CU.
12922 (follow_die_sig_1): Likewise.
12923
8d64371b
TT
129242019-01-15 Tom Tromey <tom@tromey.com>
12925
12926 * remote.c (class remote_state) <buf>: Now a char_vector.
12927 <buf_size>: Remove.
12928 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12929 parameter.
12930 (remote_target::getpkt_or_notif_sane_1)
12931 (remote_target::getpkt_sane)
12932 (remote_target::getpkt_or_notif_sane): Likewise.
12933 (class remote_target) <putpkt>: New overload.
12934 (remote_target::read_frame): Change type of "buf_p". Remove
12935 sizeof_p parameter.
12936 (packet_ok): New overload.
12937 (packet_check_result): New overload.
12938 Update all uses.
12939
bb277751
TT
129402019-01-14 Tom Tromey <tom@tromey.com>
12941
12942 * remote-notif.c (handle_notification, remote_notif_ack)
12943 (remote_notif_parse): Make "buf" const.
12944 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12945 const.
12946 (remote_notif_parse, remote_notif_ack, handle_notification):
12947 Likewise.
12948 * remote.c (remote_notif_stop_parse): Make "buf" const.
12949 (remote_target::remote_parse_stop_reply): Make "buf" const.
12950 (remote_notif_stop_ack): Make "buf" const.
12951
05be00a8
TT
129522019-01-14 Tom Tromey <tom@tromey.com>
12953
12954 * remote.c (remote_console_output): Make parameter const.
12955
491adeca
TT
129562019-01-14 Tom Tromey <tom@tromey.com>
12957
12958 * target-debug.h (target_debug_print_signals): Constify.
12959 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12960 * procfs.c (procfs_target::pass_signals): Update.
12961 * linux-nat.c (linux_nat_target::pass_signals): Update.
12962 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12963 * target-delegates.c: Rebuild.
12964 * remote.c (remote_target::program_signals): Update.
12965 (remote_target::pass_signals): Update.
12966 * target.c (target_pass_signals): Constify argument.
12967 (target_program_signals): Likewise.
12968 * target.h (struct target_ops) <pass_signals, program_signals>:
12969 Constify argument.
12970 (target_pass_signals, target_program_signals): Constify argument.
12971
bbd94648
TT
129722019-01-14 Tom Tromey <tom@tromey.com>
12973
12974 PR tui/28819:
12975 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12976
6f072a10
PFC
129772019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12978
12979 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12980 field.
12981 * rs6000-tdep.c: Include reggroups.h.
12982 (IS_V_ALIAS_PSEUDOREG): Define.
12983 (rs6000_register_name): Return names for the "vX" aliases.
12984 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12985 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12986 aliases. Call default_register_reggroup_p for all other
12987 pseudo-registers.
12988 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12989 New functions.
12990 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12991 Handle "vX" aliases.
12992 (v_alias_pseudo_register_collect): New function.
12993 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12994 (rs6000_gdbarch_init): Initialize "vX" aliases as
12995 pseudo-registers. Restore registration of
12996 rs6000_pseudo_register_reggroup_p with
12997 set_tdesc_pseudo_register_reggroup_p.
12998
1a782351
MF
129992019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13000
13001 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13002 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13003 set_gdbarch_num_pseudo_regs.
13004
d73cff18
PW
130052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13006
13007 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13008 Remove arg prefixname, add do_set and do_show.
13009 Add member functions set_list and show_list.
13010 * cli/cli-style.c (class cli_style_option): Update accordingly.
13011 (style_set_list): Move to file scope.
13012 (style_show_list): Likewise.
13013 (set_style): Call help_list.
13014 (show_style): Call cmd_show_list.
13015 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13016 Update to use the new macro.
13017
60a90376
JB
130182019-10-12 Joel Brobecker <brobecker@adacore.com>
13019
13020 * ada-lang.c (_initialize_ada_language): Expand the help text
13021 for the "catch exception" command.
13022
9d7c67bf
PW
130232019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13024
13025 * symtab.c (matching_obj_sections): Initialize obj,
13026 declare it closer to its usage.
13027
7cf47dc4
TT
130282019-01-10 Tom Tromey <tom@tromey.com>
13029
13030 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13031 (basic_inf_threads_range): Remove.
13032 (inf_threads_range, inf_non_exited_threads_range)
13033 (safe_inf_threads_range): Use next_adapter.
13034
d3cb6808
KS
130352019-01-10 Keith Seitz <keiths@redhat.com>
13036
13037 PR gdb/23712
13038 PR symtab/23010
13039 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13040 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13041
63a20375
KS
130422019-01-10 Keith Seitz <keiths@redhat.com>
13043
13044 PR gdb/23712
13045 PR symtab/23010
13046 * dictionary.c (pending_to_vector): Remove.
13047 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13048 Remove _1 suffix, replacing functions of the same name. Update
13049 all callers.
13050 (dict_create_hashed, dict_create_hashed_expandable)
13051 (dict_create_linear, dict_create_linear_expandable, dict_free)
13052 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13053 Make functions static.
13054
b026f593
KS
130552019-01-10 Keith Seitz <keiths@redhat.com>
13056
13057 PR gdb/23712
13058 PR symtab/23010
13059 * dictionary.h (struct dictionary): Replace declaration with
13060 multidictionary.
13061 (dict_create_hashed, dict_create_hashed_expandable)
13062 (dict_create_linear, dict_create_linear_expandable)
13063 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13064 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13065 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13066 taking multidictionary argument.
13067 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13068 * block.h (struct block) <dict>: Change to multidictionary
13069 and rename `multidict'.
13070 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13071 symmisc.c: Update all dictionary references to multidictionary.
13072
c7748ee9
KS
130732019-01-10 Keith Seitz <keiths@redhat.com>
13074
13075 PR gdb/23712
13076 PR symtab/23010
13077 * dictionary.c: Include unordered_map.
13078 (pending_to_vector): New function.
13079 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13080 Rewrite the non-"_1" functions to take vector instead
13081 of linked list.
13082 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13083 "new" _1 versions of the same name.
13084 (multidictionary): Define.
13085 (std::hash<enum language): New definition.
13086 (collate_pending_symbols_by_language, mdict_create_hashed)
13087 (mdict_create_hashed_expandable, mdict_create_linear)
13088 (mdict_create_linear_expandable, mdict_free)
13089 (find_language_dictionary, create_new_language_dictionary)
13090 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13091 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13092 (mdict_size, mdict_empty): New functions.
13093 * dictionary.h (mdict_iterator): Define.
13094
67aa1f3c
PA
130952019-01-10 Pedro Alves <palves@redhat.com>
13096
13097 * breakpoint.c (read_uploaded_action)
13098 (create_tracepoint_from_upload): Adjust to use
13099 gdb::unique_xmalloc_ptr.
13100 * ctf.c (ctf_write_uploaded_tp):
13101 (SET_ARRAY_FIELD): Use emplace_back.
13102 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13103 * tracefile-tfile.c (tfile_write_uploaded_tp):
13104 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13105 gdb::unique_xmalloc_ptr.
13106 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13107 at_string, cond_string, cmd_strings>: Replace char pointers
13108 with gdb::unique_xmalloc_ptr.
13109
2f667667
PA
131102019-01-10 Pedro Alves <palves@redhat.com>
13111
13112 * solib-target.c (library_list_start_library): Don't xstrdup name.
13113
36cb7237
PA
131142019-01-10 Pedro Alves <palves@redhat.com>
13115
13116 * mdebugread.c (parse_partial_symbols): Use
13117 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13118
da584958
AB
131192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13120
13121 * linux-fork.c (scoped_switch_fork_info)
13122 <~scoped_switch_fork_info>: Fix incorrect variable name.
13123
1ef8573c
AB
131242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * linux-fork.c (scoped_switch_fork_info)
13127 <scoped_switch_fork_info>: Make explicit.
13128 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13129
8d7bcccb
TT
131302019-01-10 Tom Tromey <tom@tromey.com>
13131
13132 * objfiles.h (objfile::reset_psymtabs): Update.
13133 * objfiles.c (objfile::objfile): Update.
13134 * psymtab.h (psymtab_storage::obstack): Update.
13135 (psymtab_storage::m_obstack): Use gdb::optional.
13136 (class psymtab_storage): Update comment. Remove objfile
13137 parameter.
13138 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13139
b596a3c7
TT
131402019-01-10 Tom Tromey <tom@tromey.com>
13141
13142 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13143 <free_psymtabs>: Now private.
13144 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13145 (allocate_psymtab): Use new method.
13146
a9342b62
TT
131472019-01-10 Tom Tromey <tom@tromey.com>
13148
13149 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13150 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13151 * mdebugread.c (parse_partial_symbols): Use
13152 allocate_dependencies.
13153 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13154 allocate_dependencies.
13155 (process_psymtab_comp_unit_reader)
13156 (build_type_psymtab_dependencies): Likewise.
13157 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13158
5af70966
TT
131592019-01-10 Tom Tromey <tom@tromey.com>
13160
13161 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13162 PSYMBOL_SET_LANGUAGE.
13163 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13164
5923a04c
TT
131652019-01-10 Tom Tromey <tom@tromey.com>
13166
13167 * psymtab.h (psymtab_storage::obstack): New method.
13168 <m_obstack>: Rename from obstack; now private.
13169 * psymtab.c (psymtab_storage): Update.
13170 * dwarf2read.c (create_addrmap_from_index)
13171 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13172 Update.
13173
6d6a12bf
TT
131742019-01-10 Tom Tromey <tom@tromey.com>
13175
13176 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13177 * objfiles.h (objfile::reset_psymtabs): New method.
13178
d320c2b5
TT
131792019-01-10 Tom Tromey <tom@tromey.com>
13180
13181 * symmisc.c (print_symbol_bcache_statistics): Update.
13182 (print_objfile_statistics): Update.
13183 * symfile.c (reread_symbols): Update.
13184 * psymtab.h (class psymtab_storage): New.
13185 * psymtab.c (psymtab_storage): New constructor.
13186 (~psymtab_storage): New destructor.
13187 (require_partial_symbols): Update.
13188 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13189 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13190 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13191 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13192 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13193 (start_psymtab_common, end_psymtab_common)
13194 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13195 (allocate_psymtab): Update.
13196 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13197 Update.
13198 (dump_psymtab_addrmap, maintenance_print_psymbols)
13199 (maintenance_check_psymtabs): Update.
13200 (class objfile_psymtabs): Move to objfiles.h.
13201 * psympriv.h (discard_psymtab): Now inline.
13202 (psymtab_discarder::psymtab_discarder): Update.
13203 (psymtab_discarder::~psymtab_discarder): Update.
13204 (ALL_OBJFILE_PSYMTABS): Rewrite.
13205 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13206 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13207 Remove fields.
13208 <partial_symtabs>: New field.
13209 (class objfile_psymtabs): Move from psymtab.h. Update.
13210 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13211 psymbol_cache.
13212 (objfile::~objfile): Don't destroy psymbol_cache.
13213 * mdebugread.c (parse_partial_symbols): Update.
13214 * dwarf2read.c (create_addrmap_from_index)
13215 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13216 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13217 (add_partial_subprogram, dwarf2_ranges_read): Update.
13218 * dwarf-index-write.c (write_address_map)
13219 (write_one_signatured_type, recursively_write_psymbols)
13220 (class debug_names, class debug_names, write_psymtabs_to_index):
13221 Update.
13222
1d94a5a3
TT
132232019-01-10 Tom Tromey <tom@tromey.com>
13224
13225 * symtab.h (SYMBOL_SET_NAMES): Update.
13226 (symbol_set_names): Update.
13227 (MSYMBOL_SET_NAMES): Update.
13228 * symtab.c (symbol_set_names): Change argument to be an
13229 objfile_per_bfd_storage.
13230 * psymtab.c (add_psymbol_to_bcache): Update.
13231 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13232
0f14768a
TT
132332019-01-10 Tom Tromey <tom@tromey.com>
13234
13235 * symtab.c (create_demangled_names_hash): Change argument to be an
13236 objfile_per_bfd_storage.
13237 (symbol_set_names): Update.
13238
6eee24ce
TT
132392019-01-10 Tom Tromey <tom@tromey.com>
13240
13241 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13242 init_psymbol_list.
13243 * psymtab.c (init_psymbol_list): Do nothing if already called.
13244 * psympriv.h (init_psymbol_list): Add comment.
13245 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13246 init_psymbol_list.
13247 * dbxread.c (dbx_symfile_read): Unconditionally call
13248 init_psymbol_list.
13249
75aedd27
TT
132502019-01-10 Tom Tromey <tom@tromey.com>
13251
13252 * xcoffread.c (scan_xcoff_symtab): Update.
13253 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13254 "where".
13255 * mdebugread.c (parse_partial_symbols)
13256 (handle_psymbol_enumerators): Update.
13257 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13258 * dbxread.c (read_dbx_symtab): Update.
13259 * psympriv.h (psymbol_placement): New enum.
13260 (add_psymbol_to_list): Update.
13261
939652a5
TT
132622019-01-10 Tom Tromey <tom@tromey.com>
13263
13264 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13265 static_psymbols parameters.
13266 (scan_xcoff_symtab): Update.
13267 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13268 static_psymbols parameters.
13269 * psympriv.h (start_psymtab_common): Update.
13270 * mdebugread.c (parse_partial_symbols): Update.
13271 * dwarf2read.c (create_partial_symtab): Update.
13272 * dbxread.c (read_dbx_symtab): Update.
13273 (start_psymtab): Remove global_psymbols and static_psymbols
13274 parameters.
13275
baa62830
TT
132762019-01-10 Tom Tromey <tom@tromey.com>
13277
13278 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13279 * psymtab.c (allocate_psymtab): Add comment.
13280 * psympriv.h (allocate_psymtab): Add comment.
13281 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13282 initializations.
13283 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13284
0e8f53ba
TT
132852019-01-10 Tom Tromey <tom@tromey.com>
13286
13287 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13288 Don't declare.
13289 * mipsread.c: Include mdebugread.h.
13290 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13291 Declare.
13292 * elfread.c: Include mdebugread.h.
13293
b22a7c6a
TT
132942019-01-09 Tom Tromey <tom@tromey.com>
13295
13296 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13297 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13298 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13299 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13300 (psym_lookup_symbol, psym_find_last_source_symtab)
13301 (psym_forget_cached_source_info, psym_print_stats)
13302 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13303 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13304 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13305 (psym_find_compunit_symtab_by_address)
13306 (maintenance_print_psymbols, maintenance_info_psymtabs)
13307 (maintenance_check_psymtabs): Use ranged for.
13308 * psymtab.h (class objfile_psymtabs): New.
13309 (require_partial_symbols): Return objfile_psymtabs.
13310 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13311
3b9d3ac2
TT
133122019-01-09 Tom Tromey <tom@tromey.com>
13313
13314 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13315 (find_pc_mapped_section, list_overlays_command)
13316 (map_overlay_command, unmap_overlay_command)
13317 (simple_overlay_update): Use all_objfiles.
13318 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13319 * printcmd.c (info_symbol_command): Use all_objfiles.
13320 * objfiles.h (ALL_OBJSECTIONS): Remove.
13321 * maint.c (maintenance_translate_address): Use all_objfiles.
13322 * gcore.c (gcore_create_callback): Use all_objfiles.
13323 (objfile_find_memory_regions): Likewise.
13324
8b31193a
TT
133252019-01-09 Tom Tromey <tom@tromey.com>
13326
13327 * symtab.c (find_line_symtab, info_sources_command)
13328 (make_source_files_completion_list): Use objfile_compunits.
13329 * source.c (select_source_symtab): Use objfile_compunits.
13330 * objfiles.h (struct objfile): Update comment.
13331 (ALL_OBJFILES): Remove.
13332 (ALL_FILETABS): Remove.
13333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13334 objfile_compunits.
13335
d5da8b3c
TT
133362019-01-09 Tom Tromey <tom@tromey.com>
13337
13338 * symmisc.c (print_objfile_statistics, dump_objfile)
13339 (maintenance_print_symbols): Use compunit_filetabs.
13340 * source.c (forget_cached_source_info_for_objfile): Use
13341 compunit_filetabs.
13342 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13343 (ALL_FILETABS): Use compunit_filetabs.
13344 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13345 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13346
5accd1a0
TT
133472019-01-09 Tom Tromey <tom@tromey.com>
13348
13349 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13350 (compunit_filetabs): New.
13351 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13352 compunit_filetabs.
13353 (info_sources_command, make_source_files_completion_list): Remove
13354 declaration.
13355 * symmisc.c (print_objfile_statistics, dump_objfile)
13356 (maintenance_print_symbols): Remove declaration.
13357 (maintenance_info_symtabs): Use compunit_filetabs.
13358 (maintenance_info_line_tables): Likewise.
13359 * source.c (select_source_symtab): Change local variable name.
13360 (forget_cached_source_info_for_objfile): Remove declaration.
13361 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13362 * objfiles.c (objfile_relocate1): Remove declaration.
13363 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13364 declaration.
13365 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13366 * coffread.c (coff_symtab_read): Remove declaration.
13367 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13368 compunit_filetabs.
13369
d8aeb77f
TT
133702019-01-09 Tom Tromey <tom@tromey.com>
13371
13372 * symtab.c (lookup_objfile_from_block)
13373 (find_pc_sect_compunit_symtab, search_symbols)
13374 (default_collect_symbol_completion_matches_break_on): Use
13375 objfile_compunits.
13376 * objfiles.h (ALL_COMPUNITS): Remove.
13377 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13378 * cp-support.c (add_symbol_overload_list_qualified): Use
13379 objfile_compunits.
13380 * ada-lang.c (ada_collect_symbol_completion_matches)
13381 (ada_add_global_exceptions): Use objfile_compunits.
13382
592553c4
TT
133832019-01-09 Tom Tromey <tom@tromey.com>
13384
13385 * source.c (select_source_symtab)
13386 (forget_cached_source_info_for_objfile): Remove declaration.
13387 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13388 declaration.
13389 * maint.c (count_symtabs_and_blocks): Remove declaration.
13390 * cp-support.c (add_symbol_overload_list_qualified): Remove
13391 declaration.
13392 * coffread.c (coff_symtab_read): Remove declaration.
13393 * symtab.c (lookup_symbol_in_objfile_symtabs)
13394 (basic_lookup_transparent_type_1): Use objfile_compunits.
13395 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13396 (info_sources_command, search_symbols)
13397 (default_collect_symbol_completion_matches_break_on)
13398 (make_source_files_completion_list): Remove declaration.
13399 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13400 (ada_collect_symbol_completion_matches)
13401 (ada_add_global_exceptions): Remove declaration.
13402 * linespec.c (iterate_over_all_matching_symtabs): Use
13403 objfile_compunits.
13404 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13405 (class objfile_compunits): New.
13406 (ALL_COMPUNITS): Use objfile_compunits.
13407 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13408 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13409 objfile_compunits.
13410 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13411
5325b9bf
TT
134122019-01-09 Tom Tromey <tom@tromey.com>
13413
13414 * symtab.c (search_symbols)
13415 (default_collect_symbol_completion_matches_break_on): Use
13416 objfile_msymbols.
13417 * ada-lang.c (ada_lookup_simple_minsym)
13418 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13419 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13420 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13421 objfile_msymbols.
13422 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13423 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13424 * objc-lang.c (find_methods): Use objfile_msymbols.
13425 (info_selectors_command, info_classes_command): Likewise.
13426 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13427 * objfiles.h (class objfile_msymbols): New.
13428 (ALL_OBJFILE_MSYMBOLS): Remove.
13429 (ALL_MSYMBOLS): Remove.
13430
cac85af2
TT
134312019-01-09 Tom Tromey <tom@tromey.com>
13432
13433 * common/next-iterator.h (next_adapter): Add Iterator template
13434 parameter.
13435 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13436 (class all_objfiles_safe): New.
13437 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13438 * objfiles.c (put_objfile_before): Update comment.
13439 (add_separate_debug_objfile): Likewise.
13440 (free_all_objfiles): Use all_objfiles_safe.
13441 (objfile_purge_solibs): Likewise.
13442
aed57c53
TT
134432019-01-09 Tom Tromey <tom@tromey.com>
13444
13445 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13446 (expand_symtab_containing_pc, lookup_static_symbol)
13447 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13448 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13449 all_objfiles.
13450 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13451 * breakpoint.c (create_overlay_event_breakpoint)
13452 (create_longjmp_master_breakpoint)
13453 (create_std_terminate_master_breakpoint)
13454 (create_exception_master_breakpoint): Use all_objfiles.
13455 * linux-thread-db.c (try_thread_db_load_from_pdir)
13456 (has_libpthread): Use all_objfiles.
13457 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13458 * linespec.c (iterate_over_all_matching_symtabs)
13459 (search_minsyms_for_name): Use all_objfiles.
13460 * maint.c (maintenance_info_sections): Use all_objfiles.
13461 * main.c (captured_main_1): Use all_objfiles.
13462 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13463 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13464 * guile/scm-pretty-print.c
13465 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13466 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13467 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13468 (maintenance_print_msymbols): Use all_objfiles.
13469 * source.c (select_source_symtab): Use all_objfiles.
13470 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13471 * symfile.c (remove_symbol_file_command)
13472 (expand_symtabs_matching, map_symbol_filenames): Use
13473 all_objfiles.
13474 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13475 all_objfiles.
13476 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13477 * objc-lang.c (find_methods): Use all_objfiles.
13478 * objfiles.c (have_partial_symbols, have_full_symbols)
13479 (have_minimal_symbols, qsort_cmp)
13480 (default_iterate_over_objfiles_in_search_order): Use
13481 all_objfiles.
13482 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13483 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13484 (maintenance_check_psymtabs): Use all_objfiles.
13485 (ALL_PSYMTABS): Remove.
13486 * compile/compile-object-run.c (do_module_cleanup): Use
13487 all_objfiles.
13488 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13489 * cp-support.c (add_symbol_overload_list_qualified): Use
13490 all_objfiles.
13491 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13492 Use all_objfiles.
13493 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13494 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13495 all_objfiles.
13496 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13497 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13498 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13499 Uses all_objfiles.
13500 * solib.c (solib_read_symbols): Use all_objfiles
13501
99d89cde
TT
135022019-01-09 Tom Tromey <tom@tromey.com>
13503
13504 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13505 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13506 all_objfiles.
13507 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13508 * symmisc.c (print_symbol_bcache_statistics)
13509 (print_objfile_statistics, maintenance_print_objfiles)
13510 (maintenance_info_symtabs, maintenance_check_symtabs)
13511 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13512 all_objfiles.
13513 * source.c (forget_cached_source_info): Use all_objfiles.
13514 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13515 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13516 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13517 * objfiles.c (update_section_map): Use all_objfiles.
13518 (shared_objfile_contains_address_p): Likewise.
13519 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13520 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13521
21708325
TT
135222019-01-09 Tom Tromey <tom@tromey.com>
13523
13524 * common/next-iterator.h: New file.
13525 * objfiles.h (class all_objfiles): New.
13526 (struct objfile_iterator): New.
13527
669e09f6
PW
135282019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13529
13530 * NEWS: Move the description of the changed "frame", "select-frame",
13531 and "info frame" commands to the Changed commands section.
13532
041be526
SM
135332019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13534
13535 * gdbtypes.c (check_stub_method_group): Remove handling of old
13536 mangling schemes.
13537 * linespec.c (find_methods): Likewise.
13538 * stabsread.c (read_member_functions): Likewise.
13539 * valops.c (search_struct_method): Likewise.
13540 (value_struct_elt_for_reference): Likewise.
13541 * NEWS: Mention this change.
13542
0e2a2133
AB
135432019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13546 print_source_lines.
13547 * source.c (print_source_lines_base): Update line number check.
13548 (print_source_lines): New function.
13549 (source_lines_range::source_lines_range): New function.
13550 * source.h (class source_lines_range): New class.
13551 (print_source_lines): New declaration.
13552
1055a3b4
PW
135532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13554
13555 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13556
cfeadda5
TT
135572019-01-08 Tom Tromey <tom@tromey.com>
13558 Simon Marchi <simon.marchi@ericsson.com>
13559
13560 PR gdb/24060
13561 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13562 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13563 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13564 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13565 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13566 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13567
583068ca
AB
135682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13569
13570 * source.c (select_source_symtab): Move header comment to
13571 declaration in source.h.
13572 (forget_cached_source_info_for_objfile): Likewise.
13573 (forget_cached_source_info): Likewise.
13574 (identify_source_line): Likewise.
13575 * source.h (identify_source_line): Move declaration from symtab.h
13576 and add comment from source.c
13577 (print_source_lines): Likewise.
13578 (forget_cached_source_info_for_objfile): Likewise.
13579 (forget_cached_source_info): Likewise.
13580 (select_source_symtab): Likewise.
13581 (enum print_source_lines_flag): Move definition from symtab.h.
13582 * symtab.h (identify_source_line): Move declaration to source.h.
13583 (print_source_lines): Likewise.
13584 (forget_cached_source_info_for_objfile): Likewise.
13585 (forget_cached_source_info): Likewise.
13586 (select_source_symtab): Likewise.
13587 (enum print_source_lines_flag): Move definition to source.h.
13588 * tui/tui-hooks.c: Add 'source.h' include.
13589
ec98a4ad
AB
135902019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13591
13592 * source.c (print_source_lines_base): Handle requests to print
13593 reverse line number sequences, and guard against empty lines
13594 string.
13595
62ea19c1
AB
135962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13597
13598 * source.c (print_source_lines_base): Fix skip of '\r' if next
13599 character is '\n'.
13600
9d30e1fd
TT
136012019-01-06 Tom Tromey <tom@tromey.com>
13602
13603 * c-exp.y (struct c_parse_state) <macro_original_text,
13604 expansion_obstack>: New member.
13605 (macro_original_text, expansion_obstack): Remove globals.
13606 (scan_macro_expansion, scanning_macro_expansion)
13607 (finished_macro_expansion): Update.
13608 (scan_macro_cleanup): Remove.
13609 (yylex, c_parse): Update.
13610
c65bac38
TT
136112019-01-06 Tom Tromey <tom@tromey.com>
13612
13613 * c-exp.y (struct c_parse_state) <strings>: New member.
13614 (operator_stoken): Update.
13615
02e12e38
TT
136162019-01-06 Tom Tromey <tom@tromey.com>
13617
13618 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13619 (union type_stack_elt) <typelist_val>: Now a pointer to
13620 std::vector.
13621 (type_stack_cleanup): Don't declare.
13622 (push_typelist): Update.
13623 * parse.c (pop_typelist): Return a std::vector.
13624 (push_typelist): Take a std::vector.
13625 (follow_types): Update. Do not free args.
13626 (type_stack_cleanup): Remove.
13627 * c-exp.y (struct c_parse_state): New.
13628 (cpstate): New global.
13629 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13630 (nonempty_typelist): Update.
13631 (func_mod): Create a new vector.
13632 (c_parse): Create a c_parse_state.
13633 (check_parameter_typelist): Do not delete params.
13634 (function_method): Update. Do not delete type_list.
13635
f097f5ad
TT
136362019-01-06 Tom Tromey <tom@tromey.com>
13637
13638 PR gdb/28155:
13639 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13640 check_typedef.
13641 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13642 (print_return_value): Likewise.
13643
d2adf9f1
TT
136442019-01-05 Tom Tromey <tom@tromey.com>
13645
13646 * contrib/cleanup_check.py: Remove.
13647 * contrib/gcc-with-excheck: Remove.
13648 * contrib/exsummary.py: Remove.
13649 * contrib/excheck.py: Remove.
13650
2eab46b1
JB
136512019-01-05 Joel Brobecker <brobecker@adacore.com>
13652
13653 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13654 NULL. Initialize tpprev to NULL instead of assigning it
13655 to NULL on the next statement.
13656 * windows-nat.c (windows_delete_thread): Remove check for
13657 main_thread_id before printing thread exit notifications.
13658 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13659 Remove thread ID check against main_thread_id.
13660 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13661 windows_delete_thread.
13662 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13663
48c5e7e2
TT
136642019-01-04 Tom Tromey <tom@tromey.com>
13665
13666 * compile/compile.c (_initialize_compile): Use upper case for
13667 metasyntactic variables.
13668 * symmisc.c (_initialize_symmisc): Use upper case for
13669 metasyntactic variables.
13670 * psymtab.c (_initialize_psymtab): Use upper case for
13671 metasyntactic variables.
13672 * demangle.c (demangle_command): Use upper case for metasyntactic
13673 variables.
13674 (_initialize_demangler): Likewise.
13675 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13676 variables.
13677
986041cd
TT
136782019-01-03 Tom Tromey <tom@tromey.com>
13679
13680 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13681
7c711119
TT
136822019-01-03 Tom Tromey <tom@tromey.com>
13683
13684 * python/py-symtab.c (salpy_str): Update.
13685 (struct salpy_sal_object) <symtab>: Now a PyObject.
13686 (salpy_dealloc): Update.
13687 (del_objfile_sal): Use gdbpy_ref.
13688
1b20edf0
TT
136892019-01-03 Tom Tromey <tom@tromey.com>
13690
13691 * python/py-type.c (convert_field): Use new_reference. Return
13692 gdbpy_ref.
13693 (make_fielditem): Return gdbpy_ref.
13694 (typy_fields): Update.
13695 (typy_getitem): Update.
13696 (field_name): Return gdbpy_ref. Use new_reference.
13697 (typy_iterator_iternext): Update.
13698
ea41325b
TT
136992019-01-03 Tom Tromey <tom@tromey.com>
13700
13701 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13702
2a3c71d6
TT
137032019-01-03 Tom Tromey <tom@tromey.com>
13704
13705 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13706 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13707 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13708 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13709 (pspy_set_type_printers): Likewise.
13710 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13711 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13712 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13713 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13714 (objfpy_set_type_printers): Likewise.
13715
5c329e6a
TT
137162019-01-03 Tom Tromey <tom@tromey.com>
13717
13718 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13719 (gdbpy_print_stack): Use gdbpy_err_fetch.
13720 * python/python-internal.h (class gdbpy_err_fetch): New class.
13721 (class gdbpy_enter) <m_error_type, m_error_value,
13722 m_error_traceback>: Remove.
13723 <m_error>: New member.
13724 (gdbpy_exception_to_string): Don't declare.
13725 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13726 * python/py-value.c (convert_value_from_python): Use
13727 gdbpy_err_fetch.
13728 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13729 gdbpy_exception_to_string.
13730 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13731 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13732 gdbpy_err_fetch.
13733
169bb27b
AB
137342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13735
13736 * linux-nat.c (delete_lwp_cleanup): Delete.
13737 (struct lwp_deleter): New struct.
13738 (lwp_info_up): New typedef.
13739 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13740 lwp_info_up.
13741
a07c8880
AB
137422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13743
13744 * linux-fork.c (class scoped_switch_fork_info): New class.
13745 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13746
26089c49
AB
137472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 * valops.c (find_overload_match): Remove use of null_cleanup, and
13750 calls to do_cleanups.
13751
06d3e5b0
AB
137522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13753
13754 * compile/compile-cplus-types.c
13755 (compile_cplus_instance::decl_name): Handle changes to
13756 cp_func_name.
13757 * cp-support.c (cp_func_name): Update header comment, update
13758 return type.
13759 * cp-support.h (cp_func_name): Update return type in declaration.
13760 * valops.c (find_overload_match): Move temp_func local to top
13761 level of function and change its type. Use temp_func to hold and
13762 delete temporary string obtained from cp_func_name.
13763
66644cd3
AB
137642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13767 gdb::char_vector, remove cleanup, and update uses of `msg`.
13768
592d8c0a
JW
137692019-01-03 Jim Wilson <jimw@sifive.com>
13770
13771 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13772
c55d06ec
TT
137732019-01-02 Tom Tromey <tom@tromey.com>
13774
13775 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13776 (tdesc_parse_xml): Remove cleanups.
13777 * target-descriptions.h (make_cleanup_free_target_description):
13778 Don't declare.
13779 (target_desc_deleter): New struct.
13780 (target_desc_up): New typedef.
13781 * target-descriptions.c (target_desc_deleter::operator()): Rename
13782 from free_target_description.
13783 (make_cleanup_free_target_description): Remove.
13784
3a6ae42d
TT
137852019-01-02 Tom Tromey <tom@tromey.com>
13786
13787 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13788 constructor, destructor.
13789 (linespec_parser): Remove typedef.
13790 (~linespec_parser): Rename from linespec_parser_delete.
13791 (linespec_lex_to_end, linespec_complete_label)
13792 (linespec_complete): Update.
13793 (decode_line_full): Remove cleanups.
13794 (decode_line_1): Update.
13795
61fd3e73
TT
137962019-01-02 Tom Tromey <tom@tromey.com>
13797
13798 * python/python-internal.h (inferior_to_inferior_object): Change
13799 return type.
13800 * python/py-exitedevent.c (create_exited_event_object): Update.
13801 * python/py-inferior.c (inferior_to_inferior_object): Return
13802 gdbpy_ref.
13803 (python_new_inferior, python_inferior_deleted)
13804 (thread_to_thread_object, delete_thread_object)
13805 (build_inferior_list, gdbpy_selected_inferior): Update.
13806 * python/py-infthread.c (create_thread_object): Update. Also fail
13807 if inferior_to_inferior_object fails.
13808
d20172fc
SM
138092019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13810
13811 * inferior.h (class inferior) <displaced_step_state>: New field.
13812 * infrun.h (struct displaced_step_state): Move here from
13813 infrun.c. Initialize fields, add constructor.
13814 <inf>: Remove field.
13815 <reset>: New method.
13816 * infrun.c (struct displaced_step_inferior_state): Move to
13817 infrun.h.
13818 (displaced_step_inferior_states): Remove.
13819 (get_displaced_stepping_state): Adust.
13820 (displaced_step_in_progress_any_inferior): Adjust.
13821 (displaced_step_in_progress_thread): Adjust.
13822 (displaced_step_in_progress): Adjust.
13823 (add_displaced_stepping_state): Remove.
13824 (get_displaced_step_closure_by_addr): Adjust.
13825 (remove_displaced_stepping_state): Remove.
13826 (infrun_inferior_exit): Call displaced_step_state.reset.
13827 (use_displaced_stepping): Don't check for NULL.
13828 (displaced_step_prepare_throw): Call
13829 get_displaced_stepping_state.
13830 (displaced_step_fixup): Don't check for NULL.
13831 (prepare_for_detach): Don't check for NULL.
13832
e3319240
PW
138332019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13834
13835 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13836 in case of call that did not complete.
13837
5d36dfb9
AU
138382019-01-02 Andrey Utkin <autkin@undo.io>
13839
13840 * symfile.c (find_separate_debug_file): Fix search of debug files for
13841 remote debuggee.
13842
8833fbf0
TT
138432019-01-02 Tom Tromey <tom@tromey.com>
13844
13845 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13846 indentation.
13847 * python/py-frame.c (frapy_older): Remove cast.
13848 (frapy_newer): Likewise.
13849 * python/py-breakpoint.c (local_setattro): Remove cast.
13850 * python/py-arch.c (archpy_name): Remove local variable.
13851 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13852
4ada3dfd
JB
138532019-01-02 Joel Brobecker <brobecker@adacore.com>
13854
13855 * unittests/basic_string_view/element_access/char/empty.cc:
13856 Fix year range in copyright header.
13857
113b7b81
AB
138582019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13859
13860 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13861 Delete.
13862 <operator==>: Update with for removed field.
13863 <hash>: Likewise.
13864 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13865 <isa_features>: ...this.
13866 <abi_features>: New field.
13867 (riscv_isa_flen): Update comment.
13868 (riscv_abi_xlen): New declaration.
13869 (riscv_abi_flen): New declaration.
13870 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13871 isa_features.
13872 (riscv_abi_xlen): New function.
13873 (riscv_isa_flen): Update to get answer from isa_features.
13874 (riscv_abi_flen): New function.
13875 (riscv_has_fp_abi): Update to get answer from abi_features.
13876 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13877 xlen and flen.
13878 (riscv_call_info) <xlen, flen>: Update comment.
13879 (riscv_call_arg_struct): Remove invalid assertions
13880 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13881 is removed.
13882 (riscv_gdbarch_init): Gather isa features and abi features
13883 separately, ensure both match on the gdbarch when reusing an old
13884 gdbarch. Relax an error check to allow 32-bit abi float to run on
13885 a target with 64-bit float hardware.
13886
b18ca514
PW
138872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13888
13889 * source.c (search_command_helper): Stop reverse search
13890 when line 1 has been searched.
13891
ec70d8db
PW
138922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13893
13894 * record-full.c (record_full_base_target::close): Rewrite
13895 record_full_core_buf_list free logic.
13896
5b38f9c1
PW
138972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13898
13899 * break-catch-syscall.c (print_one_catch_syscall): xfree
13900 the last text.
13901
66d91b39
JB
139022019-01-01 Joel Brobecker <brobecker@adacore.com>
13903
13904 * top.c (print_gdb_version): Update Copyright year in version
13905 message.
13906
42a4f53d
JB
139072019-01-01 Joel Brobecker <brobecker@adacore.com>
13908
13909 Update copyright year range in all GDB files.
13910
7e955d83 139112019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13912
5bbd631d 13913 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13914
5bbd631d 13915For older changes see ChangeLog-2018.
c906108c
SS
13916\f
13917Local Variables:
13918mode: change-log
13919left-margin: 8
13920fill-column: 74
13921version-control: never
57da7796 13922coding: utf-8
c906108c 13923End:
5bbd631d 13924
This page took 2.941336 seconds and 4 git commands to generate.