Change gcc_target_options to return std::string
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
953cff56
TT
12019-10-15 Tom Tromey <tromey@adacore.com>
2
3 * gdbarch.h, gdbarch.c: Rebuild.
4 * gdbarch.sh (gcc_target_options): Change return type to
5 std::string.
6 * compile/compile.c (get_args): Update.
7 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
8 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
9 std::string.
10 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
11 std::string.
12 * arch-utils.c (default_gcc_target_options): Return std::string.
13 * arch-utils.h (default_gcc_target_options): Return std::string.
14 * s390-tdep.c (s390_gcc_target_options): Return std::string.
15
81e6b8eb
CB
162019-10-15 Christian Biesinger <cbiesinger@google.com>
17
18 * breakpoint.c (breakpoint_chain): Make static.
19 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
20 of accessing breakpoint_chain.
21
95da600f
CB
222019-10-15 Christian Biesinger <cbiesinger@google.com>
23
24 * breakpoint.c (iterate_over_breakpoints): Change function pointer
25 to a gdb::function_view and return value to bool.
26 * breakpoint.h (iterate_over_breakpoints): Likewise.
27 * dummy-frame.c (pop_dummy_frame_bpt): Update.
28 (pop_dummy_frame): Update.
29 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
30 (gdbscm_breakpoints): Update.
31 * python/py-breakpoint.c (build_bp_list): Update.
32 (gdbpy_breakpoints): Update.
33 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
34 Update.
35 (bpfinishpy_handle_stop): Update.
36 (bpfinishpy_handle_exit): Update.
37 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
38 (svr4_update_solib_event_breakpoints): Update.
39
ba18312d
AA
402019-10-15 Andreas Arnez <arnez@linux.ibm.com>
41
42 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
43 when unwrapping single-field structs.
44
6acc1a0b
SM
452019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * dwarf2read.c: Remove includes.
48
284782de
SM
492019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * ui-out.c (ui_out::call_do_message): Silence
52 -Wformat-nonliteral warning.
53
073bbbb0
SM
542019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * breakpoint.c: Remove some includes: continuations.h, skip.h,
57 mi/mi-main.h, readline/readline.h, readline/history.h. Add
58 include: readline/tilde.h.
59
7b9a15e1
CB
602019-10-12 Christian Biesinger <cbiesinger@google.com>
61
62 * remote.c (remote_target::get_trace_status): Remove declaration of
63 trace_regblock_size.
64
cc8dee1f
CB
652019-10-12 Christian Biesinger <cbiesinger@google.com>
66
67 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
68 (show_user): Remove declaration of cmdlist.
69 * cli/cli-cmds.h (max_user_call_depth): Declare.
70 * cli/cli-script.c (execute_user_command): Remove declaration
71 of max_user_call_depth.
72
a83d4ef6
JW
732019-10-11 Jim Wilson <jimw@sifive.com>
74
5f93c5a6
JW
75 * gdbsupport/print-utils.h (pulongest): Fix comment.
76 (plongest): Likewise.
77 (phex): Add missing comment, mention leading zeros.
78 (phex_nz): Add mention of no leading zeros to comment.
79
a83d4ef6
JW
80 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
81 plongest instead of unsigned long long cast.
82
26344e0c
CB
832019-10-10 Christian Biesinger <cbiesinger@google.com>
84
85 * main.c (captured_main_1): Include gdbtk.h and remove declarations
86 for external_editor_command and gdbtk_test.
87
c2c440a9
CB
882019-10-10 Christian Biesinger <cbiesinger@google.com>
89
90 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
91 * varobj.c (varobjdebug): Move comment to...
92 * varobj.h (varobjdebug): ...here, and declare.
93
a31bff9d
TT
942019-10-09 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
97 erase_data_content.
98
7523da63
TT
992019-10-09 Tom Tromey <tom@tromey.com>
100
101 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
102 * tui/tui-stack.c (tui_locator_window::rerender): Update.
103 * tui/tui-command.c (tui_cmd_window::resize)
104 (tui_refresh_cmd_win): Update.
105 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
106 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
107 * tui/tui-data.c (~tui_gen_win_info): Remove.
108 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
109 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
110 (tui_redisplay_readline, tui_mld_flush)
111 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
112 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
113 (tui_data_window::erase_data_content)
114 (tui_data_item_window::rerender)
115 (tui_data_item_window::refresh_window): Update.
116 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
117 (box_win, tui_gen_win_info::make_window)
118 (tui_gen_win_info::make_visible): Update.
119 (tui_delete_win): Remove.
120 * tui/tui-winsource.c
121 (tui_source_window_base::do_erase_source_content): Update.
122 (tui_show_source_line, tui_source_window_base::update_tab_width)
123 (tui_source_window_base::update_exec_info): Update.
124 * tui/tui-data.h (struct curses_deleter): New.
125 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
126 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
127
a7798e7f
TT
1282019-10-09 Tom Tromey <tom@tromey.com>
129
130 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
131
5c45899e
TT
1322019-10-09 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
135 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
136
6d7fd9aa
TT
1372019-10-09 Tom Tromey <tom@tromey.com>
138
139 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
140 window height directly.
141 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
142 declare.
143 * tui/tui-layout.c (tui_default_win_height): Remove.
144 (tui_default_win_viewport_height): Remove.
145
d2dd1084
TT
1462019-10-09 Tom Tromey <tom@tromey.com>
147
148 * tui/tui.h: Remove comments.
149
cff32449
TV
1502019-10-09 Tom de Vries <tdevries@suse.de>
151
152 * python/lib/gdb/printer/bound_registers.py: Use
153 '^builtin_type_bound128' as regexp argument for
154 add_builtin_pretty_printer.
155
6a25e8a2
CB
1562019-10-09 Christian Biesinger <cbiesinger@google.com>
157
158 * guile/guile.c (guile_extension_script_ops): Remove forward
159 declaration and mark as static.
160 (guile_script_ops): Likewise.
161 (extension_language_guile): Move further down in the file so
162 it can reference the definitions for guile_{extension_,}script_ops.
163
6d9d6da4
AA
1642019-10-09 Andreas Arnez <arnez@linux.ibm.com>
165
166 * s390-tdep.c (390_process_record): Handle new arch13 instructions
167 except SORTL, DFLTCC, and KDSA.
168
3abea05d
TT
1692019-10-08 Tom Tromey <tromey@adacore.com>
170
171 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
172 (struct safe_symbol_file_add_args): Remove.
173
dde996e2
TT
1742019-10-08 Tom Tromey <tromey@adacore.com>
175
176 * windows-nat.c: Don't include buildsym-legacy.h.
177
cd6fdaa1
TT
1782019-10-08 Tom Tromey <tromey@adacore.com>
179
180 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
181
79bb1944
CB
1822019-10-08 Christian Biesinger <cbiesinger@google.com>
183
184 * gdbtypes.c (overload_debug): Move comment to header.
185 * gdbtypes.h (overload_debug): Declare.
186 * valops.c: Remove declaration of overload_debug, instead
187 include gdbtypes.h.
188
34916edc
CB
1892019-10-08 Christian Biesinger <cbiesinger@google.com>
190
191 * language.c (show_language_command): Pass lang_frame_mismatch_warn
192 through _().
193 (lang_frame_mismatch_warn): Make const, mark with N_(), and
194 move comment...
195 * language.h (lang_frame_mismatch_warn): ... here. Also add
196 declaration.
197 * top.c (lang_frame_mismatch_warn): Remove declaration.
198 (check_frame_language_change): Pass lang_frame_mismatch_warn
199 through _().
200
bad5c026
CB
2012019-10-07 Christian Biesinger <cbiesinger@google.com>
202
203 * c-lang.h (vtbl_ptr_name): Declare.
204 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
205 it from the header.
206 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
207
51f1fdc3
CB
2082019-10-07 Christian Biesinger <cbiesinger@google.com>
209
210 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
211 gdb_static_assert.
212
30d1f018
WP
2132019-10-07 Weimin Pan <weimin.pan@oracle.com>
214
606813d5
WP
215 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
216 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
217 * ctfread.c: New file.
218 * ctfread.h: New file.
219 * elfread.c: Include ctfread.h.
220 (struct elfinfo text_p): New member ctfsect.
221 (elf_locate_sections): Mark CTF section.
222 (elf_symfile_read): Call elfctf_build_psymtabs.
223 * Makefile.in (LIBCTF): Add.
224 (CLIBS): Use it.
225 (CDEPS): Likewise.
226 (DIST): Add ctfread.c.
606813d5
WP
227
2282019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * ctfread.c (struct nextfield): Renamed to ...
231 (struct ctf_nextfield): ... this.
232 (struct field_info): Renamed to ...
233 (strut ctf_field_info): ... this.
234 (attach_fields_to_type): Update for renamed structures.
235 (ctf_add_member_cb): Likewise.
236 (ctf_add_enum_member_cb): Likewise.
237 (process_struct_members): Likewise.
238 (process_enum_type): Likewise.
30d1f018 239
518fe38c
WP
2402019-10-07 Weimin Pan <weimin.pan@oracle.com>
241
242 * tracectf.h: Rename, was ctf.h.
243 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
244 * tracefile.c: Likewise.
245 * tracepoint.c: Remove unused include ctf.h.
246 * mi/mi-main.c: Likewise.
247 * Makefile.in Replace ctf.c with tracectf.c.
248
225f296a
JB
2492019-10-06 Joel Brobecker <brobecker@adacore.com>
250
251 * version.in: Change version number to "9.0.50.DATE-git".
252
77c2dba3
TT
2532019-10-03 Tom Tromey <tom@tromey.com>
254
255 PR rust/24976:
256 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
257
179aed7f
AB
2582019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
261 cp_search_name_hash.
262 * NEWS: Add entry about nested function support.
263
0a4b0913
AB
2642019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
265 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
268 for nested static variables when searchin VAR_DOMAIN.
269 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
270 global scope, update comment.
271 (add_partial_subprogram): Call add_partial_subprogram recursively
272 for nested subroutines when processinng Fortran.
273 (load_partial_dies): Process the child entities of a subprogram
274 when processing Fortran.
275 (partial_die_parent_scope): Handle building scope
276 for Fortran nested functions.
277 (process_die): Record that nested functions have a scope.
278 (new_symbol): Always record Fortran subprograms on the global
279 symbol list.
280 (determine_prefix): How to build the prefix for Fortran
281 subprograms.
282
d8c06f22
AB
2832019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
286 have just sent the thread a SIGSTOP and are waiting for it to
287 arrive.
288
a8b3b8e9
AB
2892019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * btrace.c (btrace_add_pc): Remove whitespace before the template
292 parameter in 'std::vector <...>'.
293 (parse_xml_btrace_block): Likewise.
294 (btrace_maint_decode_pt): Likewise.
295 (btrace_maint_update_packets): Likewise.
296 (btrace_maint_print_packets): Likewise.
297 * btrace.h (struct btrace_maint_info): Likewise.
298 * dwarf2read.c (struct type_unit_group): Likewise.
299 (build_type_psymtabs_reader): Likewise.
300 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
301 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
302 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
303
4d825eab
TV
3042019-10-03 Tom de Vries <tdevries@suse.de>
305
306 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
307 the first line of the help text for set/show style metadata.
308
80fd2826
TT
3092019-10-02 Tom Tromey <tromey@adacore.com>
310
311 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
312 * gdbsupport/common-inferior.c: New file.
313 * infcmd.c (startup_with_shell): Don't define.
314 * nat/fork-inferior.h (startup_with_shell): Don't declare.
315 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
316 * inferior.h (startup_with_shell): Don't declare.
317
70054538
CB
3182019-10-02 Christian Biesinger <cbiesinger@google.com>
319
320 * gdbsupport/gdb_assert.h: Include errors.h.
321 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
322
37f6a7f4
TT
3232019-10-02 Tom Tromey <tromey@adacore.com>
324
325 * NEWS: Add $_ada_exception entry.
326 * ada-lang.c (struct ada_catchpoint): Add constructor.
327 <m_kind>: New member.
328 (allocate_location_exception, re_set_exception): Remove
329 "ex" parameter.
330 (should_stop_exception): Compute $_ada_exception.
331 (check_status_exception, print_it_exception)
332 (print_one_exception, print_mention_exception): Remove
333 "ex" parameter.
334 (allocate_location_catch_exception, re_set_catch_exception)
335 (check_status_exception, print_it_catch_exception)
336 (print_one_catch_exception, print_mention_catch_exception)
337 (print_recreate_catch_exception)
338 (allocate_location_catch_exception_unhandled)
339 (re_set_catch_exception_unhandled)
340 (check_status_exception, print_it_catch_exception_unhandled)
341 (print_one_catch_exception_unhandled)
342 (print_mention_catch_exception_unhandled)
343 (print_recreate_catch_exception_unhandled)
344 (allocate_location_catch_assert, re_set_catch_assert)
345 (check_status_assert, print_it_catch_assert)
346 (print_one_catch_assert, print_mention_catch_assert)
347 (print_recreate_catch_assert)
348 (allocate_location_catch_handlers, re_set_catch_handlers)
349 (check_status_handlers, print_it_catch_handlers)
350 (print_one_catch_handlers, print_mention_catch_handlers)
351 (print_recreate_catch_handlers): Remove.
352 (create_ada_exception_catchpoint): Update.
353 (initialize_ada_catchpoint_ops): Update.
354
fccf9de1
TT
3552019-10-02 Tom Tromey <tromey@adacore.com>
356
357 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
358 (create_excep_cond_exprs): Simplify exception string computation.
359 (ada_exception_catchpoint_cond_string): Likewise.
360
4b610737
TT
3612019-10-02 Tom Tromey <tromey@adacore.com>
362
363 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
364 * ada-lang.c (lesseq_defined_than): Handle
365 LOC_STATIC.
366 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
367 parameter.
368 (dwarf2_has_info): Likewise.
369 (new_symbol): Set maybe_copied on symbol when
370 appropriate.
371 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
372 parameter.
373 <can_copy>: New member.
374 * elfread.c (record_minimal_symbol): Set maybe_copied
375 on symbol when appropriate.
376 (elf_symfile_read): Update call to dwarf2_has_info.
377 * minsyms.c (lookup_minimal_symbol_linkage): New
378 function.
379 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
380 * symtab.c (get_symbol_address, get_msymbol_address):
381 New functions.
382 * symtab.h (get_symbol_address, get_msymbol_address):
383 Declare.
384 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
385 maybe_copied.
386 (struct symbol, struct minimal_symbol) <maybe_copied>:
387 New member.
388
1dd58850
TT
3892019-10-02 Tom Tromey <tromey@adacore.com>
390
391 * source.c (struct current_source_location): New.
392 (current_source_key): New global.
393 (current_source_symtab, current_source_line)
394 (current_source_pspace): Remove.
395 (get_source_location): New function.
396 (get_current_source_symtab_and_line)
397 (set_default_source_symtab_and_line)
398 (set_current_source_symtab_and_line)
399 (clear_current_source_symtab_and_line, select_source_symtab)
400 (info_source_command, print_source_lines_base)
401 (info_line_command, search_command_helper, _initialize_source):
402 Update.
403
5c281dbb
TT
4042019-10-02 Tom Tromey <tromey@adacore.com>
405
406 * source.c (select_source_symtab): Don't call
407 decode_line_with_current_source.
408
d3d32391
AB
4092019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * symtab.c (lookup_global_symbol): Search global block.
412
38583298
TT
4132019-10-02 Tom Tromey <tromey@adacore.com>
414
415 * coffread.c (process_coff_symbol): Update.
416 * dwarf2read.c (var_decode_location, new_symbol): Update.
417 * mdebugread.c (parse_symbol): Update.
418 * objfiles.c (relocate_one_symbol): Update.
419 * stabsread.c (define_symbol, fix_common_block)
420 (scan_file_globals): Update.
421 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
422 (SET_SYMBOL_VALUE_ADDRESS): New macro.
423 * xcoffread.c (process_xcoff_symbol): Update.
424
9344c18f
AA
4252019-10-02 Andreas Arnez <arnez@linux.ibm.com>
426
427 * MAINTAINERS: Update my email address.
428
df07e2c7
AB
4292019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
432 std::vector.
433 (build_type_psymtabs_reader): Update for std::vector.
434 (build_type_psymtab_dependencies): Likewise.
435 * dwarf2read.h: Remove use of DEF_VEC_P.
436 (typedef sig_type_ptr): Delete.
437
554ac434
AB
4382019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * btrace.c (btrace_maint_clear): Update to handle change from VEC
441 to std::vector.
442 (btrace_maint_decode_pt): Likewise, and move allocation of the
443 vector outside of the loop.
444 (btrace_maint_update_packets): Update to handle change from VEC to
445 std::vector.
446 (btrace_maint_print_packets): Likewise.
447 (maint_info_btrace_cmd): Likewise.
448 * btrace.h: Remove use of DEF_VEC_O.
449 (typedef btrace_pt_packet_s): Delete.
450 (struct btrace_maint_info) <packets>: Change fromm VEC to
451 std::vector.
452 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
453
46f29a9a
AB
4542019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
457 make accesses into the vector constant references.
458 (btrace_add_pc): Update for std::vector.
459 (btrace_stitch_bts): Likewise.
460 (parse_xml_btrace_block): Likewise.
461 (btrace_maint_update_packets): Likewise.
462 (btrace_maint_print_packets): Likewise.
463 (maint_info_btrace_cmd): Likewise.
464 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
465 std::vector.
466 (btrace_data::empty): Likewise.
467 (btrace_data_append): Likewise.
468 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
469 (typedef btrace_block_s): Delete.
470 (struct btrace_block): Add constructor.
471 (struct btrace_data_bts) <blocks>: Change to std::vector.
472 * nat/linux-btrace.c (perf_event_read_bts): Update for
473 std::vector.
474 (linux_read_bts): Likewise.
475
d770d56f
TT
4762019-10-01 Tom Tromey <tom@tromey.com>
477
478 * cli/cli-logging.c (show_logging_filename): Use styled_string.
479
9d636d67
TT
4802019-10-01 Tom Tromey <tom@tromey.com>
481
482 * stack.c (print_frame, info_frame_command_core): Use
483 styled_string.
484 * linux-thread-db.c (try_thread_db_load_1)
485 (try_thread_db_load_from_pdir_1): Use styled_string.
486 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
487 (auto_load_section_scripts, info_auto_load_local_gdbinit)
488 (maybe_print_unsupported_script_warning)
489 (maybe_print_script_not_found_warning): Use styled_string.
490 * ada-lang.c (user_select_syms): Use styled_string.
491
7f6aba03
TT
4922019-10-01 Tom Tromey <tom@tromey.com>
493
494 * p-lang.c (pascal_printstr): Use metadata style.
495 * value.c (show_convenience): Use metadata style.
496 * valprint.c (valprint_check_validity, val_print_optimized_out)
497 (val_print_not_saved, val_print_unavailable)
498 (val_print_invalid_address, generic_val_print, val_print)
499 (value_check_printable, val_print_array_elements): Use metadata
500 style.
501 * ui-out.h (class ui_out) <field_fmt>: New overload.
502 <do_field_fmt>: Add style parameter.
503 * ui-out.c (ui_out::field_fmt): New overload.
504 * typeprint.c (type_print_unknown_return_type)
505 (val_print_not_allocated, val_print_not_associated): Use metadata
506 style.
507 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
508 parameter.
509 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
510 * tracepoint.c (tvariables_info_1): Use metadata style.
511 * stack.c (print_frame_arg, print_frame_info, print_frame)
512 (info_frame_command_core): Use metadata style.
513 * skip.c (info_skip_command): Use metadata style.
514 * rust-lang.c (rust_print_enum): Use metadata style.
515 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
516 metadata style.
517 * python/py-framefilter.c (py_print_single_arg): Use metadata
518 style.
519 * printcmd.c (do_one_display, print_variable_and_value): Use
520 metadata style.
521 * p-valprint.c (pascal_val_print)
522 (pascal_object_print_value_fields): Use metadata style.
523 * p-typeprint.c (pascal_type_print_base): Use metadata style.
524 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
525 parameter.
526 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
527 * m2-valprint.c (m2_print_long_set): Use metadata style.
528 * m2-typeprint.c (m2_print_type): Use metadata style.
529 * infcmd.c (print_return_value_1): Use metadata style.
530 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
531 * f-valprint.c (info_common_command_for_block): Use metadata
532 style.
533 * f-typeprint.c (f_type_print_base): Use metadata style.
534 * expprint.c (print_subexp_standard): Use metadata style.
535 * cp-valprint.c (cp_print_value_fields): Use metadata style.
536 * cli/cli-style.h (class cli_style_option): Add constructor.
537 (metadata_style): Declare.
538 * cli/cli-style.c (metadata_style): New global.
539 (_initialize_cli_style): Register metadata style.
540 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
541 parameter.
542 * cli-out.c (cli_ui_out::do_field_fmt): Update.
543 * c-typeprint.c (c_type_print_base_struct_union)
544 (c_type_print_base_1): Use metadata style.
545 * breakpoint.c (watchpoint_value_print)
546 (print_one_breakpoint_location): Use metadata style.
547 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
548 style.
549 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
550 style.
551 * ada-valprint.c (val_print_packed_array_elements, printstr)
552 (print_field_values, ada_val_print_ref, ada_val_print): Use
553 metadata style.
554 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
555 style.
556 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
557 style.
558 * ada-lang.c (user_select_syms): Use metadata style.
559
14309bb6
TT
5602019-10-01 Tom Tromey <tom@tromey.com>
561
562 * cli/cli-cmds.c (pwd_command): Style output.
563
6a831f06
PA
5642019-10-01 Pedro Alves <palves@redhat.com>
565 Tom Tromey <tom@tromey.com>
566
567 * symtab.c (print_symbol_info): Use %ps.
568 (print_msymbol_info): Use %ps.
569 * symfile.c (symbol_file_add_with_addrs): Use %ps.
570 * printcmd.c (print_variable_and_value): Use %ps.
571 * macrocmd.c (show_pp_source_pos): Use %ps.
572 * infrun.c (print_exited_reason): Use ui_out::message.
573 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
574 (describe_other_breakpoints): Use ui_out::message and new
575 formats.
576 (say_where): Use new formats.
577 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
578 and new formats.
579
2a3c1174
PA
5802019-10-01 Pedro Alves <palves@redhat.com>
581 Tom Tromey <tom@tromey.com>
582
583 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
584 (test_gdb_formats): New function.
585 (run_tests): Call it.
586 (test_format_specifier): Update.
587 * utils.h (fputs_filtered): Update comment.
588 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
589 (fputs_styled_unfiltered): Declare.
590 * utils.c (fputs_styled_unfiltered): New function.
591 (vfprintf_maybe_filtered): Add gdbfmt parameter.
592 (vfprintf_filtered): Update.
593 (vfprintf_unfiltered, vprintf_filtered): Update.
594 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
595 * ui-out.h (enum ui_out_flag) <unfiltered_output,
596 disallow_ui_out_field>: New constants.
597 (enum class field_kind): New.
598 (struct base_field_s, struct signed_field_s): New.
599 (signed_field): New function.
600 (struct string_field_s): New.
601 (string_field): New function.
602 (struct styled_string_s): New.
603 (styled_string): New function.
604 (class ui_out) <message>: Add comment.
605 <vmessage, call_do_message>: New methods.
606 <do_message>: Add style parameter.
607 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
608 methods.
609 (ui_out::message): Rewrite.
610 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
611 parameter.
612 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
613 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
614 gdb_extensions parameter.
615 (class format_piece): Add parameter to constructor.
616 (n_int_args): New field.
617 * gdbsupport/format.c (format_pieces::format_pieces): Add
618 gdb_extensions parameter. Handle '*'.
619 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
620 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
621 vfprintf_styled_no_gdbfmt.
622 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
623 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
624 unfiltered output.
625 * ui-style.h (struct ui_file_style) <ptr>: New method.
626
0dfe5bfb
TT
6272019-10-01 Tom Tromey <tom@tromey.com>
628
629 * unittests/format_pieces-selftests.c: Update. Add final format.
630 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
631 empty literal pieces.
632
e43b10e1
TT
6332019-10-01 Tom Tromey <tom@tromey.com>
634
635 * ui-out.h (enum class ui_out_style_kind): Remove.
636 (class ui_out) <field_string, field_stsream, do_field_string>:
637 Change type of "style".
638 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
639 (ui_out::field_string): Update.
640 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
641 of "style".
642 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
643 * tracepoint.c (print_one_static_tracepoint_marker): Update.
644 * stack.c (print_frame_arg, print_frame_info, print_frame):
645 Update.
646 * source.c (print_source_lines_base): Update.
647 * solib.c (info_sharedlibrary_command): Update.
648 * skip.c (info_skip_command): Update.
649 * record-btrace.c (btrace_call_history_src_line)
650 (btrace_call_history): Update.
651 * python/py-framefilter.c (py_print_frame): Update.
652 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
653 "style".
654 * mi/mi-out.c (mi_ui_out::do_table_header)
655 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
656 (mi_ui_out::do_field_string): Update.
657 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
658 Update.
659 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
660 "style".
661 * cli-out.c (cli_ui_out::do_table_header)
662 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
663 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
664 (cli_ui_out::do_field_fmt): Update.
665 * breakpoint.c (print_breakpoint_location): Update.
666 (update_static_tracepoint): Update.
667
cd7c32c3
PW
6682019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
669
670 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
671 conversion of gdb_datadir.
672 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
673 remove not needed c_str ().
674
8fe0f950
AT
6752019-09-30 Ali Tamur <tamur@google.com>
676
677 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
678 (dwarf2_string_attr): Likewise.
679
5f48f8f3
AT
6802019-09-30 Ali Tamur <tamur@google.com>
681
682 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
683 (process_full_type_unit): Likewise.
684 (dump_die_shallow): Likewise.
685 (cu_debug_loc_section): Likewise.
686
6fb08628
CB
6872019-09-28 Christian Biesinger <cbiesinger@google.com>
688
689 * minsyms.c (compare_minimal_symbols): Rename to...
690 (minimal_symbol_is_less_than): ...this, and adjust to STL
691 conventions (return bool, take arguments as references)
692 (minimal_symbol_reader::install): Call std::sort instead
693 of qsort.
694
c7ee338a
CB
6952019-09-29 Christian Biesinger <cbiesinger@google.com>
696
697 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
698 hash and why.
699 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
700 msymbol_hash, msymbol_demangled_hash>: Improve comments.
701
703a86c2
SM
7022019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
705 * psympriv.h (add_psymbol_to_list): Move comment here and update
706 it.
707
0df0352a
TV
7082019-09-29 Tom de Vries <tdevries@suse.de>
709
710 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
711 Use $tmpdir/$(basename "$output_file").dwz instead of
712 "${output_file}.dwz".
713
ad75efa6
SM
7142019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
715
716 PR gdb/25045
717 * hppa-linux-nat.c: Include gdbarch.h.
718
ececd218
CB
7192019-09-26 Christian Biesinger <cbiesinger@google.com>
720
721 * blockframe.c (find_pc_partial_function): Change return type to bool.
722 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
723 * minsyms.c (in_gnu_ifunc_stub): Likewise.
724 (stub_gnu_ifunc_resolve_name): Likewise.
725 * symtab.c (compare_filenames_for_search): Likewise.
726 (compare_glob_filenames_for_search): Likewise.
727 (matching_obj_sections): Likewise.
728 (symbol_matches_domain): Likewise.
729 (find_line_symtab): Change out param EXACT_MATCH to bool *.
730 (find_line_pc): Change return type to bool.
731 (find_line_pc_range): Likewise.
732 (producer_is_realview): Likewise.
733 * symtab.h (symbol_matches_domain): Likewise.
734 (find_pc_partial_function): Likewise.
735 (find_pc_line_pc_range): Likewise.
736 (in_gnu_ifunc_stub): Likewise.
737 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
738 (find_line_pc): Likewise.
739 (find_line_pc_range): Likewise.
740 (matching_obj_sections): Likewise.
741 (find_line_symtab): Change out parameter to bool.
742 (producer_is_realview): Change return type to bool.
743 (compare_filenames_for_search): Likewise.
744 (compare_glob_filenames_for_search): Likewise.
745
27a900b8
TT
7462019-09-26 Tom Tromey <tom@tromey.com>
747
748 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
749 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
750 * gdb_usleep.h: Remove.
751 * gdb_usleep.c: Remove.
752 * utils.c: Don't include gdb_usleep.h.
753
5d63b30a
TT
7542019-09-26 Tom Tromey <tromey@adacore.com>
755
756 * python/py-type.c (type_to_type_object): Call check_typedef
757 for stub types.
758
12904d37
TT
7592019-09-26 Tom Tromey <tom@tromey.com>
760
761 * utils.h (initialize_utils): Don't declare.
762 * top.c (gdb_init): Don't call initialize_utils.
763 * utils.c (initialize_utils): Remove. Move contents...
764 (_initialize_utils): ... here.
765
858f25f0
TT
7662019-09-25 Tom Tromey <tom@tromey.com>
767
768 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
769 * utils.h (make_hex_string): Don't declare.
770 * utils.c (make_hex_string): Remove.
771
3d435220
TV
7722019-09-24 Tom de Vries <tdevries@suse.de>
773
774 PR gdb/23815
775 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
776 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
777
ddd44b70
DD
7782019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
779
780 * NEWS: Mention new simulator port for PRU.
781
f945dedf
CB
7822019-09-23 Christian Biesinger <cbiesinger@google.com>
783
784 * ada-exp.y (write_object_remaining): Update.
785 * ada-lang.c (ada_decode): Return a std::string instead of a char*
786 and eliminate the static buffer.
787 (ada_decode_symbol): Update.
788 (ada_la_decode): Update.
789 (ada_sniff_from_mangled_name): Update.
790 (is_valid_name_for_wild_match): Update.
791 (ada_lookup_name_info::matches): Update and simplify.
792 (name_matches_regex): Update.
793 (ada_add_global_exceptions): Update.
794 * ada-lang.h (ada_decode): Update signature.
795 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
796 * dwarf-index-write.c (debug_names::insert): Update.
797
7ab78ccb
SM
7982019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
801 formatting.
802
9252448b
SM
8032019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
806 Change "nonzero" to "true" in documentation.
807
626ca2c0
CB
8082019-09-20 Christian Biesinger <cbiesinger@google.com>
809
810 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
811 (_initialize_darwin_solib): Don't set
812 darwin_so_ops.lookup_lib_global_symbol.
813 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
814 set_gdbarch_iterate_over_objfiles_in_search_order.
815 (elf_lookup_lib_symbol): Rename to...
816 (svr4_iterate_over_objfiles_in_search_order): this, and update
817 to iterate semantics.
818 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
819 * solib.c (solib_global_lookup): Remove.
820 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
821 (solib_global_lookup): Remove.
822 * symtab.c (lookup_global_or_static_symbol): Remove call to
823 solib_global_lookup.
824
5a3a0d63
JB
8252019-09-20 Joel Brobecker <brobecker@adacore.com>
826
827 * NEWS: Move entries about default MI version now being
828 version 3, and about the GDB/MI fix for multi-location
829 breakpoints to the "since GDB 8.3" section.
830
ffea1427
JB
8312019-09-20 Joel Brobecker <brobecker@adacore.com>
832
833 GDB 8.3.1 released.
834
abf516c6
UW
8352019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
836
837 * NEWS: Mention that Cell/B.E. debugging support was removed.
838 * MAINTAINERS: Remove spu target.
839
840 * config/djgpp/fnchange.lst: Remove entries for removed files.
841
842 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
843 spu-multiarch.o, and spu-tdep.o.
844 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
845 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
846 spu-multiarch.c, and spu-tdep.c.
847 * spu-linux-nat.c: Remove file.
848 * spu-multiarch.c: Remove file.
849 * spu-tdep.c: Remove file.
850 * spu-tdep.h: Remove file.
851 * solib-spu.c: Remove file.
852 * solib-spu.h: Remove file.
853
854 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
855 * configure.nat (spu-linux): Remove.
856 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
857 solib-multiarch.o from gdb_target_obs.
858 (spu*-*-*): Remove.
859
860 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
861 feature flag.
862 (ppc_linux_no_features): Update.
863 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
864 Cell/B.E. support.
865 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
866 (tdesc_powerpc_cell64l): Likewise.
867 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
868 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
869 Cell/B.E. support.
870 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
871 Do not include "features/rs6000/powerpc-cell32l.c" or
872 "features/rs6000/powerpc-cell64l.c".
873 (ppc_linux_spu_section): Remove.
874 (ppc_linux_core_read_description): Remove Cell/B.E. support.
875 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
876 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
877 (ppc_linux_spe_context_lookup): Remove.
878 (ppc_linux_spe_context_inferior_created): Remove.
879 (ppc_linux_spe_context_solib_loaded): Remove.
880 (ppc_linux_spe_context_solib_unloaded): Remove.
881 (ppc_linux_spe_context): Remove.
882 (struct ppu2spu_cache): Remove.
883 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
884 (struct ppu2spu_data): Remove.
885 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
886 ppu2spu_unwind): Remove.
887 (ppc_linux_init_abi): Remove Cell/B.E. support.
888 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
889
890 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
891 (rs6000/powerpc-cell64l-expedite): Likewise
892 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
893 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
894 rs6000/powerpc-cell64l.xml.
895 * features/rs6000/powerpc-cell32l.xml: Remove.
896 * features/rs6000/powerpc-cell64l.xml: Likewise.
897 * features/rs6000/powerpc-cell32l.c: Remove generated file.
898 * features/rs6000/powerpc-cell64l.c: Likewise.
899 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
900 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
901 * regformats/reg-spu.dat: Remove.
902
903 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
904 * corelow.c (struct spuid_list): Remove.
905 (add_to_spuid_list): Remove.
906 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
907 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
908 (remote_protocol_features): Remove associated entries.
909 (_initialize_remote): No longer initialize them.
910 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
911 * linux-nat.c (SPUFS_MAGIC): Remove.
912 (linux_proc_xfer_spu): Remove.
913 (spu_enumerate_spu_ids): Remove.
914 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
915 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
916 (linux_make_corefile_notes): No longer call it.
917
918 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
919 (cooked_write_test): Likewise.
920
78e8cb91
TT
9212019-09-20 Tom Tromey <tom@tromey.com>
922
923 * NEWS: Mention case-sensitivity of TUI commands.
924 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
925 (tui_set_win_height_command, parse_scrolling_args): Likewise.
926 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
927
f074b67e
TT
9282019-09-20 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-source.c (tui_source_window::set_contents): Use
931 make_unique_xstrdup.
932 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
933 make_unique_xstrdup.
934
63c4bf19
TT
9352019-09-20 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-data.c: Remove separator comments.
938 * tui/tui-layout.c: Remove separator comments.
939 * tui/tui-win.c: Remove separator comments.
940 * tui/tui-wingeneral.c: Remove separator comments.
941
43df9b2f
TT
9422019-09-20 Tom Tromey <tom@tromey.com>
943
944 * tui/tui.h (strcat_to_buf): Don't declare.
945 * tui/tui.c (strcat_to_buf): Remove.
946
7226433c
TT
9472019-09-20 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
950 from "fullname".
951 * tui/tui-source.c (tui_source_window::set_contents)
952 (tui_source_window::location_matches_p)
953 (tui_source_window::maybe_update): Update.
954
80df3337
TT
9552019-09-20 Tom Tromey <tom@tromey.com>
956
957 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
958 Update.
959 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
960 prefix.
961 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
962 (tui_data_window::line_from_reg_element_no)
963 (tui_data_window::first_reg_element_no_inline)
964 (tui_data_window::show_registers)
965 (tui_data_window::show_register_group)
966 (tui_data_window::display_registers_from)
967 (tui_data_window::display_registers_from_line)
968 (tui_data_window::first_data_item_displayed)
969 (tui_data_window::delete_data_content_windows)
970 (tui_data_window::erase_data_content)
971 (tui_data_window::do_scroll_vertical)
972 (tui_data_window::refresh_window)
973 (tui_data_window::check_register_values): Update.
974
9923f347
TT
9752019-09-20 Tom Tromey <tom@tromey.com>
976
977 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
978 (struct tui_locator_window) <full_name, proc_name>: Now
979 std::string.
980 * tui/tui-stack.c (tui_locator_window::make_status_line)
981 (tui_locator_window::set_locator_fullname)
982 (tui_locator_window::set_locator_info): Update.
983 * tui/tui-source.c (tui_source_window::set_contents)
984 (tui_source_window::showing_source_p): Update.
985
b76251ab
TT
9862019-09-20 Tom Tromey <tom@tromey.com>
987
988 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
989 Don't call tui_locator_win_info_ptr.
990
0891be08
TT
9912019-09-20 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-win.c (tui_resize_all): Don't call refresh.
994
1b935acf
TT
9952019-09-20 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
998 height for locator.
999 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1000 * tui/tui-layout.c (show_source_disasm_command, show_data)
1001 (show_source_or_disasm_and_command): Use 1 as height for locator.
1002
9abd8a65
TT
10032019-09-20 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui.c (tui_enable): Update.
1006 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1007 Update.
1008 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1009 Update.
1010 * tui/tui-data.c (win_resized): Now bool.
1011 (tui_win_resized): Return bool.
1012 (tui_set_win_resized_to): Accept a bool.
1013
b5457826
TT
10142019-09-20 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1017 Change type of "refresh_values_only".
1018 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1019 type of "refresh_values_only".
1020
6b915f7d
TT
10212019-09-20 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1024 std::string.
1025 (tui_disassemble): Add "pos" parameter.
1026 (tui_disasm_window::set_contents): Simplify.
1027
2ad52f6f
TT
10282019-09-20 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-winsource.h (struct tui_source_window_base)
1031 <show_source_content>: Now private.
1032 * tui/tui-winsource.c
1033 (tui_source_window_base::show_source_content): Don't handle empty
1034 content case.
1035
b3b1bde6
TT
10362019-09-20 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-layout.c (show_source_disasm_command)
1039 (show_source_or_disasm_and_command): Don't call
1040 show_source_content.
1041
71a25ed2
TT
10422019-09-20 Tom Tromey <tom@tromey.com>
1043
1044 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1045 Declare.
1046 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1047 from tui_make_status_line.
1048 (tui_locator_window::rerender): Update.
1049
f8532154
TT
10502019-09-20 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1053 (tui_locator_window::rerender): Update.
1054
2d81b349
TT
10552019-09-20 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-winsource.h (struct tui_source_window_base)
1058 <~tui_source_window_base>: Don't declare.
1059 <fullname>: Remove.
1060 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1061 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1062 member.
1063 * tui/tui-source.c (tui_source_window::set_contents): Update.
1064 (tui_source_window::location_matches_p)
1065 (tui_source_window::maybe_update): Update.
1066
f14bec58
TT
10672019-09-20 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-winsource.h (~tui_source_element): Remove.
1070 (tui_source_element): Update.
1071 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1072 * tui/tui-winsource.c (tui_show_source_line): Update.
1073 * tui/tui-source.c (tui_source_window::set_contents): Update.
1074 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1075
78d5933a
TT
10762019-09-20 Tom Tromey <tom@tromey.com>
1077
1078 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1079 declare.
1080 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1081 tui_clear_source_windows_detail.
1082 * tui/tui-winsource.h (struct tui_source_window_base)
1083 <clear_detail>: Don't declare.
1084 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1085 Remove.
1086 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1087
d4207696
TT
10882019-09-20 Tom Tromey <tromey@adacore.com>
1089
1090 PR ada/24919:
1091 * block.c (contained_in): Fix final return value.
1092
00f93c44
AM
10932019-09-20 Alan Modra <amodra@gmail.com>
1094
1095 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1096 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1097 (read_indirect_string_from_dwz): Use bfd accessor.
1098 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1099 * machoread.c (macho_symfile_read_all_oso): Likewise.
1100 * solib.c (solib_bfd_open): Likewise.
1101
e4153ae6
CB
11022019-09-19 Christian Biesinger <cbiesinger@google.com>
1103
1104 * eval.c: Move declaration of overload_resolution to...
1105 * value.h: ...here.
1106
c7ae7675
CB
11072019-09-19 Christian Biesinger <cbiesinger@google.com>
1108
1109 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1110 * arm-linux-tdep.c: Likewise.
1111 * arm-nbsd-nat.c: Likewise.
1112 * arm-tdep.h: Declare arm_apcs_32.
1113 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1114
e86f08d2
CB
11152019-09-19 Christian Biesinger <cbiesinger@google.com>
1116
1117 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1118 * dwarf2read.h: Declare dwarf_always_disassemble.
1119
f64e2f40
TV
11202019-09-19 Tom de Vries <tdevries@suse.de>
1121
1122 PR gdb/25009
1123 * source-cache.c (source_cache::ensure): Catch exception thrown during
1124 construction of the highlighter.
1125
fd361982
AM
11262019-09-18 Alan Modra <amodra@gmail.com>
1127
1128 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1129 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1130 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1131 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1132 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1133 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1134 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1135 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1136 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1137 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1138 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1139 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1140 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1141 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1142 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1143 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1144 * mi/mi-interp.c: Update throughout for bfd section macro and
1145 function changes.
1146 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1147 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1148
11061048
TT
11492019-09-18 Tom Tromey <tom@tromey.com>
1150
1151 * NEWS: Add entry.
1152 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1153 call rl_initialize.
1154 (tui_enable): Do not call rl_initialize.
1155
7a27b85f
CG
11562019-09-18 Christian Groessler <chris@groessler.org>
1157
1158 * alpha-linux-nat.c: Include gdbarch.h.
1159
f64eea3a
SM
11602019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * ui-file.c: Include cli/cli-style.h.
1163 (term_cli_styling): Remove cli_styling declaration.
1164
e6f7f6d1
AM
11652019-09-18 Alan Modra <amodra@gmail.com>
1166
1167 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1168 to bfd_asymbol_section.
1169
1d38e9d1
AM
11702019-09-18 Alan Modra <amodra@gmail.com>
1171
1172 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1173 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1174 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1175
90d92a63
AM
11762019-09-18 Alan Modra <amodra@gmail.com>
1177
1178 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1179 * spu-linux-nat.c (spu_bfd_open): Likewise.
1180
a3d181d2
CB
11812019-09-18 Christian Biesinger <cbiesinger@google.com>
1182
1183 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1184 to bool to match definition in dwarf2read.c.
1185
491144b5
CB
11862019-09-17 Christian Biesinger <cbiesinger@google.com>
1187
1188 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1189 (print_signatures): Likewise.
1190 (trust_pad_over_xvs): Likewise.
1191 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1192 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1193 * arm-linux-nat.c (arm_apcs_32): Likewise.
1194 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1195 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1196 * arm-tdep.c (arm_debug): Likewise.
1197 (arm_apcs_32): Likewise.
1198 * auto-load.c (debug_auto_load): Likewise.
1199 (auto_load_gdb_scripts): Likewise.
1200 (global_auto_load): Likewise.
1201 (auto_load_local_gdbinit): Likewise.
1202 (auto_load_local_gdbinit_loaded): Likewise.
1203 * auto-load.h (global_auto_load): Likewise.
1204 (auto_load_local_gdbinit): Likewise.
1205 (auto_load_local_gdbinit_loaded): Likewise.
1206 * breakpoint.c (disconnected_dprintf): Likewise.
1207 (breakpoint_proceeded): Likewise.
1208 (automatic_hardware_breakpoints): Likewise.
1209 (always_inserted_mode): Likewise.
1210 (target_exact_watchpoints): Likewise.
1211 (_initialize_breakpoint): Update.
1212 * breakpoint.h (target_exact_watchpoints): Change to bool.
1213 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1214 * cli/cli-cmds.c (trace_commands): Likewise.
1215 * cli/cli-cmds.h (trace_commands): Likewise.
1216 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1217 to bool*.
1218 * cli/cli-logging.c (logging_overwrite): Change to bool.
1219 (logging_redirect): Likewise.
1220 (debug_redirect): Likewise.
1221 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1222 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1223 to bool.
1224 <boolean_option_def>: Update.
1225 (struct flag_option_def): Change default type of Context to bool
1226 from int.
1227 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1228 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1229 (get_setshow_command_value_string): Likewise.
1230 * cli/cli-style.c (cli_styling): Change to bool.
1231 (source_styling): Likewise.
1232 * cli/cli-style.h (source_styling): Likewise.
1233 (cli_styling): Likewise.
1234 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1235 to bool.
1236 * command.h (var_types): Update comment.
1237 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1238 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1239 bool.
1240 (debug_compile_cplus_scopes): Likewise.
1241 * compile/compile-internal.h (compile_debug): Likewise.
1242 * compile/compile.c (compile_debug): Likewise.
1243 (struct compile_options) <raw>: Likewise.
1244 * cp-support.c (catch_demangler_crashes): Likewise.
1245 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1246 (usr_cmd_cris_dwarf2_cfi): Likewise.
1247 * csky-tdep.c (csky_debug): Likewise.
1248 * darwin-nat.c (enable_mach_exceptions): Likewise.
1249 * dcache.c (dcache_enabled_p): Likewise.
1250 * defs.h (info_verbose): Likewise.
1251 * demangle.c (demangle): Likewise.
1252 (asm_demangle): Likewise.
1253 * dwarf-index-cache.c (debug_index_cache): Likewise.
1254 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1255 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1256 * dwarf2read.c (check_physname): Likewise.
1257 (use_deprecated_index_sections): Likewise.
1258 (dwarf_always_disassemble): Likewise.
1259 * eval.c (overload_resolution): Likewise.
1260 * event-top.c (set_editing_cmd_var): Likewise.
1261 (exec_done_display_p): Likewise.
1262 * event-top.h (set_editing_cmd_var): Likewise.
1263 (exec_done_display_p): Likewise.
1264 * exec.c (write_files): Likewise.
1265 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1266 (debug_fbsd_nat): Likewise.
1267 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1268 Likewise.
1269 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1270 <backtrace_past_entry> Likewise.
1271 * gdb-demangle.h (demangle): Likewise.
1272 (asm_demangle): Likewise.
1273 * gdb_bfd.c (bfd_sharing): Likewise.
1274 * gdbcore.h (write_files): Likewise.
1275 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1276 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1277 * gdbthread.h (print_thread_events): Likewise.
1278 * gdbtypes.c (opaque_type_resolution): Likewise.
1279 (strict_type_checking): Likewise.
1280 * gnu-nat.c (gnu_debug_flag): Likewise.
1281 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1282 * guile/scm-param.c (pascm_variable): Add boolval.
1283 (add_setshow_generic): Update.
1284 (pascm_param_value): Update.
1285 (pascm_set_param_value_x): Update.
1286 * hppa-tdep.c (hppa_debug): Change to bool..
1287 * infcall.c (may_call_functions_p): Likewise.
1288 (coerce_float_to_double_p): Likewise.
1289 (unwind_on_signal_p): Likewise.
1290 (unwind_on_terminating_exception_p): Likewise.
1291 * infcmd.c (startup_with_shell): Likewise.
1292 * inferior.c (print_inferior_events): Likewise.
1293 * inferior.h (startup_with_shell): Likewise.
1294 (print_inferior_events): Likewise.
1295 * infrun.c (step_stop_if_no_debug): Likewise.
1296 (detach_fork): Likewise.
1297 (debug_displaced): Likewise.
1298 (disable_randomization): Likewise.
1299 (non_stop): Likewise.
1300 (non_stop_1): Likewise.
1301 (observer_mode): Likewise.
1302 (observer_mode_1): Likewise.
1303 (set_observer_mode): Update.
1304 (sched_multi): Change to bool.
1305 * infrun.h (debug_displaced): Likewise.
1306 (sched_multi): Likewise.
1307 (step_stop_if_no_debug): Likewise.
1308 (non_stop): Likewise.
1309 (disable_randomization): Likewise.
1310 * linux-tdep.c (use_coredump_filter): Likewise.
1311 (dump_excluded_mappings): Likewise.
1312 * linux-thread-db.c (auto_load_thread_db): Likewise.
1313 (check_thread_db_on_load): Likewise.
1314 * main.c (captured_main_1): Update.
1315 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1316 xx2_opt, boolean_opt>: Change to bool.
1317 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1318 * maint.c (maintenance_profile_p): Likewise.
1319 (per_command_time): Likewise.
1320 (per_command_space): Likewise.
1321 (per_command_symtab): Likewise.
1322 * memattr.c (inaccessible_by_default): Likewise.
1323 * mi/mi-main.c (mi_async): Likewise.
1324 (mi_async_1): Likewise.
1325 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1326 * nat/fork-inferior.h (startup_with_shell): Likewise.
1327 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1328 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1329 * nios2-tdep.c (nios2_debug): Likewise.
1330 * or1k-tdep.c (or1k_debug): Likewise.
1331 * parse.c (parser_debug): Likewise.
1332 * parser-defs.h (parser_debug): Likewise.
1333 * printcmd.c (print_symbol_filename): Likewise.
1334 * proc-api.c (procfs_trace): Likewise.
1335 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1336 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1337 (set_parameter_value): Update.
1338 (add_setshow_generic): Update.
1339 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1340 to bool*.
1341 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1342 int*.
1343 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1344 * record-btrace.c (record_btrace_target::store_registers): Update.
1345 * record-full.c (record_full_memory_query): Change to bool.
1346 (record_full_stop_at_limit): Likewise.
1347 * record-full.h (record_full_memory_query): Likewise.
1348 * remote-notif.c (notif_debug): Likewise.
1349 * remote-notif.h (notif_debug): Likewise.
1350 * remote.c (use_range_stepping): Likewise.
1351 (interrupt_on_connect): Likewise.
1352 (remote_break): Likewise.
1353 * ser-tcp.c (tcp_auto_retry): Likewise.
1354 * ser-unix.c (serial_hwflow): Likewise.
1355 * skip.c (debug_skip): Likewise.
1356 * solib-aix.c (solib_aix_debug): Likewise.
1357 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1358 (spu_auto_flush_cache_p): Likewise.
1359 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1360 Likewise.
1361 (struct info_print_options) <quiet>: Likewise.
1362 * symfile-debug.c (debug_symfile): Likewise.
1363 * symfile.c (auto_solib_add): Likewise.
1364 (separate_debug_file_debug): Likewise.
1365 * symfile.h (auto_solib_add): Likewise.
1366 (separate_debug_file_debug): Likewise.
1367 * symtab.c (basenames_may_differ): Likewise.
1368 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1369 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1370 (struct info_types_options) <quiet>: Likewise.
1371 * symtab.h (demangle): Likewise.
1372 (basenames_may_differ): Likewise.
1373 * target-dcache.c (stack_cache_enabled_1): Likewise.
1374 (code_cache_enabled_1): Likewise.
1375 * target.c (trust_readonly): Likewise.
1376 (may_write_registers): Likewise.
1377 (may_write_memory): Likewise.
1378 (may_insert_breakpoints): Likewise.
1379 (may_insert_tracepoints): Likewise.
1380 (may_insert_fast_tracepoints): Likewise.
1381 (may_stop): Likewise.
1382 (auto_connect_native_target): Likewise.
1383 (target_stop_and_wait): Update.
1384 (target_async_permitted): Change to bool.
1385 (target_async_permitted_1): Likewise.
1386 (may_write_registers_1): Likewise.
1387 (may_write_memory_1): Likewise.
1388 (may_insert_breakpoints_1): Likewise.
1389 (may_insert_tracepoints_1): Likewise.
1390 (may_insert_fast_tracepoints_1): Likewise.
1391 (may_stop_1): Likewise.
1392 * target.h (target_async_permitted): Likewise.
1393 (may_write_registers): Likewise.
1394 (may_write_memory): Likewise.
1395 (may_insert_breakpoints): Likewise.
1396 (may_insert_tracepoints): Likewise.
1397 (may_insert_fast_tracepoints): Likewise.
1398 (may_stop): Likewise.
1399 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1400 (make_thread_apply_all_options_def_group): Change argument from int*
1401 to bool*.
1402 (thread_apply_all_command): Update.
1403 (print_thread_events): Change to bool.
1404 * top.c (confirm): Likewise.
1405 (command_editing_p): Likewise.
1406 (history_expansion_p): Likewise.
1407 (write_history_p): Likewise.
1408 (info_verbose): Likewise.
1409 * top.h (confirm): Likewise.
1410 (history_expansion_p): Likewise.
1411 * tracepoint.c (disconnected_tracing): Likewise.
1412 (circular_trace_buffer): Likewise.
1413 * typeprint.c (print_methods): Likewise.
1414 (print_typedefs): Likewise.
1415 * utils.c (debug_timestamp): Likewise.
1416 (sevenbit_strings): Likewise.
1417 (pagination_enabled): Likewise.
1418 * utils.h (sevenbit_strings): Likewise.
1419 (pagination_enabled): Likewise.
1420 * valops.c (overload_resolution): Likewise.
1421 * valprint.h (struct value_print_options) <prettyformat_arrays,
1422 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1423 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1424 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1425 Likewise.
1426 * windows-nat.c (new_console): Likewise.
1427 (cygwin_exceptions): Likewise.
1428 (new_group): Likewise.
1429 (debug_exec): Likewise.
1430 (debug_events): Likewise.
1431 (debug_memory): Likewise.
1432 (debug_exceptions): Likewise.
1433 (useshell): Likewise.
1434 * windows-tdep.c (maint_display_all_tib): Likewise.
1435 * xml-support.c (debug_xml): Likewise.
1436
f1b620e9
MG
14372019-09-17 Mike Gulick <mgulick@mathworks.com>
1438
1439 * source.c (prepare_path_for_appending): New function.
1440 (openp): Make use of new function.
1441 (find_and_open_source): Search for the compilation directory and
1442 source file as a relative path beneath the directory search path.
1443
67f3ed6a
AB
14442019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * source-cache.c (source_cache::get_line_charpos): Catch
1447 exceptions and return false, this matches the behaviour documented
1448 in the header file.
1449
74332189
JB
14502019-09-17 Joel Brobecker <brobecker@adacore.com>
1451
1452 * ada-tasks.c (info_task): Remove quoting of the task's name.
1453
f2f24aa9
CB
14542019-09-16 Christian Biesinger <cbiesinger@google.com>
1455
1456 * symfile.c (auto_solib_add): Replace comment with a reference
1457 to the header file.
1458
6a062a93
CB
14592019-09-14 Christian Biesinger <cbiesinger@google.com>
1460
1461 * NEWS: Mention that gdb can now be compiled with Python 3
1462 on Windows.
1463
ec6c8338
AB
14642019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * maint.c (maint_print_section_data::maint_print_section_data):
1467 Force use of 'float log10 (float)' by casting the argument to
1468 float.
1469
aa17805f
AB
14702019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * maint.c: Add 'cmath' include.
1473 (struct maint_print_section_data): New structure.
1474 (print_section_index): New function.
1475 (print_bfd_section_info): Add header comment, small whitespace
1476 cleanup, and update to call new print_section_index function.
1477 (print_objfile_section_info): Likewise.
1478 (maint_obj_section_from_bfd_section): New function.
1479 (print_bfd_section_info_maybe_relocated): New function.
1480 (maintenance_info_sections): Add header comment, always use
1481 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1482
3dd9bb46
AB
14832019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1486 inner scope, add check that the objfile has psymtabs before
1487 checking psymtabs_addrmap.
1488 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1489
4993045d
PW
14902019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1491
1492 * NEWS: Announce that Ada task names are now shown at more places,
1493 and between quotes (except in info task output).
1494 * gdb/ada-tasks.c (task_to_str): New function.
1495 (display_current_task_id): Call task_to_str.
1496 (task_command_1): Likewise.
1497 (print_ada_task_info): In non-mi mode, Properly align headers and data
1498 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1499
7a289707
RO
15002019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1501
1502 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1503 prstatus.pr_lwp.pr_info instead of making it up.
1504
f2aec7f6
CB
15052019-09-11 Christian Biesinger <cbiesinger@google.com>
1506
1507 * auto-load.c (auto_load_expand_dir_vars): Update.
1508 * defs.h (gdb_datadir): Change to std::string.
1509 (python_libdir): Likewise.
1510 (relocate_gdb_directory): Change return type to std::string.
1511 * guile/guile.c (gdbscm_data_directory): Update.
1512 (initialize_scheme_side): Update.
1513 * jit.c (jit_reader_dir): Change to std::string.
1514 (jit_reader_load_command): Update.
1515 * main.c (gdb_datadir): Change to std::string.
1516 (python_libdir): Likewise.
1517 (set_gdb_data_directory): Update.
1518 (relocate_path): Change to return std::string.
1519 (relocate_gdb_directory): Change to return std::string.
1520 (relocate_gdbinit_path_maybe_in_datadir): Update.
1521 (captured_main_1): Update.
1522 * python/python.c (do_start_initialization): Update.
1523 * top.c (show_gdb_datadir): Update.
1524 * xml-syscall.c (xml_init_syscalls_info): Update.
1525 (init_syscalls_info): Update.
1526
9224a013
CB
15272019-09-11 Christian Biesinger <cbiesinger@google.com>
1528
1529 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1530 out of get_init_files.
1531 (get_init_files): Update.
1532
f48cd836
CB
15332019-09-11 Christian Biesinger <cbiesinger@google.com>
1534
1535 * main.c (get_init_files): Change to use std::string.
1536 (captured_main_1): Update.
1537 (print_gdb_help): Update.
1538
9cab7ecd
AT
15392019-09-11 Ali Tamur <tamur@google.com>
1540
1541 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1542 implementation.
1543
67547d89
CB
15442019-09-11 Christian Biesinger <cbiesinger@google.com>
1545
1546 * dbxread.c (read_dbx_symtab): Update.
1547 * dwarf2read.c (load_partial_dies): Update.
1548 * mdebugread.c (parse_partial_symbols): Update.
1549 (handle_psymbol_enumerators): Update.
1550 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1551 * psymtab.c (add_psymbol_to_bcache): Likewise.
1552 (add_psymbol_to_list): Likewise.
1553 * symtab.c (symbol_set_names): Likewise.
1554 * symtab.h (symbol_set_names): Likewise.
1555 * xcoffread.c (scan_xcoff_symtab): Update.
1556
64b2d4a0
TT
15572019-09-11 Tom Tromey <tom@tromey.com>
1558
1559 * symfile-mem.c (symbol_file_add_from_memory): Use
1560 bfd_set_filename.
1561 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1562 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1563
3b00ef10
TT
15642019-09-10 Tom Tromey <tromey@adacore.com>
1565
1566 * dwarf-index-write.c (write_psymbols): Extend error message.
1567 (debug_names::insert): Add Ada code.
1568 (debug_names::write_psymbols): Remove Ada check.
1569 (debug_names) <m_string_obstack>: New member.
1570 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1571 (gdb_index_symbol_name_matcher::matches): Remove.
1572 (mapped_index_base::find_name_components_bounds): Add "lang"
1573 parameter.
1574 (mapped_index_base::build_name_components): Also split names
1575 according to Ada syntax.
1576 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1577 type of "match_callback".
1578 (check_match, check_find_bounds_finds)
1579 (dw2_expand_symtabs_matching): Update.
1580 (dw2_debug_names_iterator): Add new constructor.
1581 (dw2_debug_names_map_matching_symbols): New function.
1582 (dw2_debug_names_expand_symtabs_matching): Update.
1583 (dwarf2_debug_names_functions): Use
1584 dw2_debug_names_map_matching_symbols.
1585
aa391654
TT
15862019-09-10 Tom Tromey <tromey@adacore.com>
1587
1588 * dwarf2read.c (dw2_get_file_names_reader): Add the
1589 CU's file name to the results.
1590
b054970d
TT
15912019-09-10 Tom Tromey <tromey@adacore.com>
1592
1593 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1594 map_matching_symbols. Update.
1595 * dwarf2read.c (dw2_map_matching_symbols): Update.
1596 * psymtab.c (match_partial_symbol): Change type; update.
1597 (psym_map_matching_symbols): Likewise.
1598 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1599 type; update.
1600 * symfile.h (struct quick_symbol_functions)
1601 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1602 Remove "match".
1603
6a3dbf1b
TT
16042019-09-10 Tom Tromey <tromey@adacore.com>
1605
1606 * psymtab.c (map_block): Remove.
1607 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1608 * symtab.c (iterate_over_symbols_terminated): New function.
1609 * symtab.c (iterate_over_symbols_terminated): Declare.
1610
6969f124
TT
16112019-09-10 Tom Tromey <tromey@adacore.com>
1612
1613 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1614 * language.h (struct language_defn) <la_iterate_over_symbols>:
1615 Return bool.
1616 * symtab.c (iterate_over_symbols): Return bool.
1617 * symtab.h (iterate_over_symbols): Return bool.
1618
199b4314
TT
16192019-09-10 Tom Tromey <tromey@adacore.com>
1620
1621 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1622 (add_nonlocal_symbols): Update.
1623 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1624 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1625 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1626 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1627 Change type of "callback". Remove "data".
1628
a084a2a6
AT
1629
16302019-09-09 Ali Tamur <tamur@google.com>
1631
1632 * dwarf2read.c (comp_unit_head): Update comment.
1633 (dwarf2_dwo_name): New function declaration.
1634 (dwarf_unit_type_name): New function declaration.
1635 (read_comp_unit_head): Add support for new compilation units,
1636 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1637 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1638 (currently named as "signature") in their header. Also clarify error
1639 messages.
1640 (lookup_dwo_id): New function. Returns the dwo id of the given
1641 compile unit.
1642 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1643 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1644 functions.
1645 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1646 (dwarf2_dwo_name): Get the dwo name if present.
1647 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1648 purposes.
1649
25a2915e
TT
16502019-09-09 Tom Tromey <tom@tromey.com>
1651
1652 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1653
e4df0874
PW
16542019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1655
1656 * python/python.c (do_start_initialization): Make progname_copy static,
1657 to avoid a leak report.
1658
8634b462
TT
16592019-09-08 Tom Tromey <tom@tromey.com>
1660
1661 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1662
c7f839cb
SM
16632019-09-07 Simon Marchi <simon.marchi@efficios.com>
1664
1665 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1666 Change type to gdb::optional<block_enum>.
1667 (dw2_symtab_iter_init): Change block_index parameter type
1668 to gdb::optional<block_enum>.
1669 (dw2_lookup_symbol): Change block_index parameter
1670 type to block_enum.c
1671 (dw2_debug_names_lookup_symbol): Likewise.
1672 * psymtab.c (psym_lookup_symbol): Likewise.
1673 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1674 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1675 Likewise.
1676
ead0e69a
CB
16772019-09-06 Christian Biesinger <cbiesinger@google.com>
1678
1679 * defs.h (relocate_gdb_directory): Change int to bool in
1680 signature and rename flag to relocatable.
1681 * main.c (relocate_path): Likewise.
1682 (relocate_gdb_directory): Likewise.
1683
b16c44de
AM
16842019-09-06 Alan Modra <amodra@gmail.com>
1685
1686 * coffread.c (coff_symfile_read): Constify filename variable.
1687 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1688 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1689 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1690 * solib.c (reload_shared_libraries_1): Likewise.
1691 * symfile.c (reread_symbols): Likewise.
1692 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1693 * solib-darwin.c (darwin_bfd_open): Likewise.
1694 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1695
06ff036e
AB
16962019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1699 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1700
4e962e74
TT
17012019-09-03 Tom Tromey <tromey@adacore.com>
1702
1703 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1704 types.
1705 (has_negatives): Unbias a range type bound.
1706 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1707 * gdbtypes.c (operator==): Handle new field.
1708 (create_range_type): Add "bias" parameter.
1709 (create_static_range_type, resolve_dynamic_range): Update.
1710 * gdbtypes.h (struct range_bounds) <bias>: New member.
1711 (create_range_type): Add bias parameter.
1712 * printcmd.c (print_scalar_formatted): Unbias range types.
1713 * value.c (unpack_long): Unbias range types.
1714 (pack_long): Bias range types.
1715
d90b8f26
AH
17162019-09-02 Alan Hayward <alan.hayward@arm.com>
1717
1718 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1719 probe arguments.
1720
fe01123e
AH
17212019-09-02 Alan Hayward <alan.hayward@arm.com>
1722
1723 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1724 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1725 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1726 (compile_probe_arg): Likewise.
1727 * probe.h (get_argument_count): Likewise.
1728 * solib-svr4.c (solib_event_probe_action): Likewise.
1729 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1730
e661ef01
AH
17312019-09-02 Alan Hayward <alan.hayward@arm.com>
1732
1733 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1734 code to here...
1735 (svr4_create_solib_event_breakpoints): ...from here.
1736
47a536d9
SDJ
17372019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1738
1739 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1740 suffix from warning message.
1741
d6a00eba
TT
17422019-08-30 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui-winsource.h (struct tui_source_window_base)
1745 <refresh_all>: Don't declare.
1746 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1747 Remove.
1748 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1749 tui_show_locator_content.
1750 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1751 declare.
1752 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1753 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1754 declare.
1755
55b2657b
TT
17562019-08-30 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1759
12a8555a
TT
17602019-08-30 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1763 Remove unnecessary forward declarations.
1764
900ac242
TT
17652019-08-30 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1768 rerender.
1769 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1770 tui_show_locator_content.
1771
99ab33fb
TT
17722019-08-30 Tom Tromey <tom@tromey.com>
1773
1774 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1775 (tui_locator_window::rerender): Rewrite using body of previous
1776 tui_show_locator_content.
1777
e594a5d1
TT
17782019-08-30 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1781 set_locator_fullname>: New methods.
1782 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1783 Rename from tui_set_locator_fullname.
1784 (tui_locator_window::set_locator_info): Rename from
1785 tui_set_locator_info. Return bool.
1786 (tui_update_locator_fullname, tui_show_frame_info): Update.
1787
715bb467
TT
17882019-08-30 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1791
772f3f03
TT
17922019-08-30 Tom Tromey <tom@tromey.com>
1793
1794 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1795 call touchwin.
1796
108e13ab
TT
17972019-08-30 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-wingeneral.c (box_win): Assume win_info and
1800 win_info->handle cannot be NULL.
1801
cdaa6eb4
TT
18022019-08-30 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1805 refresh_window>: Declare.
1806 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1807 resize.
1808 (tui_data_item_window::rerender): Rename from
1809 tui_display_register.
1810 (tui_data_item_window::refresh_window): New method.
1811 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1812 no-op.
1813
89df7f90
TT
18142019-08-30 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1817 regs_column_count, current_group>: Move later. Now private.
1818 <get_current_group>: New method.
1819 * tui/tui-regs.c (tui_reg_command): Update.
1820 * tui/tui-layout.c (tui_set_layout): Update.
1821
1bf2866a
TT
18222019-08-30 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1825 (tui_data_window::rerender): Don't call
1826 check_and_display_highlight_if_needed.
1827 (tui_data_window::refresh_all): Remove call to
1828 erase_data_content.
1829
0670413d
TT
18302019-08-30 Tom Tromey <tom@tromey.com>
1831
1832 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1833 (tui_data_window::display_registers_from)
1834 (tui_data_window::display_reg_element_at_line)
1835 (tui_data_window::display_registers_from_line): Remove checks of
1836 "empty".
1837
18bb55c7
TT
18382019-08-30 Tom Tromey <tom@tromey.com>
1839
1840 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1841 Don't declare.
1842 * tui/tui-regs.c (tui_data_window::show_registers): Call
1843 rerender.
1844 (tui_data_window::rerender): Rename from display_all_data.
1845 (tui_data_window::rerender): Remove old implementation.
1846
1f6d2f10
TT
18472019-08-30 Tom Tromey <tom@tromey.com>
1848
1849 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1850 text.
1851 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1852
16d01f9c
BW
18532019-08-29 Bernhard Wodok <barto@gmx.net>
1854 Sergio Durigan Junior <sergiodj@redhat.com>
1855
1856 PR win32/24284
1857 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1858
d8f27c60
AB
18592019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1862 when searching for types.
1863
1f20c35e
AB
18642019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * f-lang.c (f_language_defn): Use f_print_typedef.
1867 * f-lang.h (f_print_typedef): Declare.
1868 * f-typeprint.c (f_print_typedef): Define.
1869
550105b7
CB
18702019-08-27 Christian Biesinger <cbiesinger@google.com>
1871
1872 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1873
4acfdd20
AB
18742019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * cli/cli-utils.c (info_print_options_defs): Delete.
1877 (make_info_print_options_def_group): Delete.
1878 (extract_info_print_options): Delete.
1879 (info_print_command_completer): Delete.
1880 (info_print_args_help): Add extra parameter, and optionally
1881 include text about -n flag.
1882 * cli/cli-utils.h (struct info_print_options): Delete.
1883 (extract_info_print_options): Delete declaration.
1884 (info_print_command_completer): Delete declaration.
1885 (info_print_args_help): Add extra parameter, extend header
1886 comment.
1887 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1888 search_symbols.
1889 * stack.c (struct info_print_options): New type.
1890 (info_print_options_defs): New file scoped variable.
1891 (make_info_print_options_def_group): New static function.
1892 (info_print_command_completer): New static function.
1893 (info_locals_command): Update to use new local functions.
1894 (info_args_command): Likewise.
1895 (_initialize_stack): Add extra parameter to calls to
1896 info_print_args_help.
1897 * symtab.c (search_symbols): Add extra parameter, use this to
1898 possibly excluse non-debug symbols.
1899 (symtab_symbol_info): Add extra parameter, which is passed on to
1900 search_symbols.
1901 (struct info_print_options): New type.
1902 (info_print_options_defs): New file scoped variable.
1903 (make_info_print_options_def_group): New static function.
1904 (info_print_command_completer): New static function.
1905 (info_variables_command): Update to use local functions, and pass
1906 extra parameter through to symtab_symbol_info.
1907 (info_functions_command): Likewise.
1908 (info_types_command): Pass additional argument through to
1909 symtab_symbol_info.
1910 (rbreak_command): Pass extra argument to search_symbols.
1911 (_initialize_symtab): Add extra arguments for calls to
1912 info_print_args_help, and update help text for 'info variables',
1913 'whereis', and 'info functions' commands.
1914 * symtab.h (search_symbols): Add extra argument to declaration.
1915 * NEWS: Mention new flags.
1916
9aa55206
CB
19172019-08-26 Christian Biesinger <cbiesinger@google.com>
1918
1919 * symtab.c (lookup_static_symbol): Call the new function (and move
1920 it down to be next to lookup_global_symbol).
1921 (struct global_sym_lookup_data): Add block_enum member and rename to...
1922 (struct global_or_static_sym_lookup_data): ...this.
1923 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1924 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1925 (lookup_symbol_global_or_static_iterator_cb): ...this.
1926 (lookup_global_or_static_symbol): New function.
1927 (lookup_global_symbol): Call new function.
1928
5c31b358
TV
19292019-08-26 Tom de Vries <tdevries@suse.de>
1930
1931 PR c++/24852
1932 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1933 when pc_probe.prob == NULL.
1934
23c13d42
SM
19352019-08-25 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1938 variable symbol_linkage to symbol_linkage_.
1939
beadd3e8
SM
19402019-08-25 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1943 represent whether the symbol is static, dynamic, or we don't
1944 know.
1945
e3ec872f
YS
19462019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1947
1948 * gdb/rx-tdep.c (rx_register_names): New.
1949 (rx_register_name): Delete.
1950 (rx_psw_type): Delete.
1951 (rx_fpsw_type): Delete.
1952 (rx_register_type): Delete.
1953 (rx_gdbarch_init): Convert target-descriptions.
1954 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1955 * gdb/features/Makefile: Add rx.xml.
1956 * gdb/features/rx.xml: New.
1957 * gdb/features/rx.c: Generated.
1958 * gdb/NEWS: Mention target description support.
1959
d0509ba4
CB
19602019-08-22 Christian Biesinger <cbiesinger@google.com>
1961
1962 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1963 *slot_ptr.
1964
2d41fa11
SDJ
19652019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1966
1967 * configure.ac: Don't check for 'dlfcn.h' (moved to
1968 gdbsupport/common.m4).
1969 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1970 'gdbsupport/'.
1971 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1972 * compile/compile-c-support.c: Include
1973 'gdbsupport/gdb-dlfcn.h'.
1974 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1975 * gdb-dlfcn.c: Move to...
1976 * gdbsupport/gdb-dlfcn.c: ... here.
1977 * gdb-dlfcn.h: Move to...
1978 * gdbsupport/gdb-dlfcn.h: ... here.
1979
de8af808
SL
19802019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1981
1982 * nios2-tdep.c (struct reg_value): Improve comments. Make
1983 the offset field signed.
1984
27204489
CB
19852019-08-22 Christian Biesinger <cbiesinger@google.com>
1986
1987 * python/lib/gdb/__init__.py (_execute_file): New function.
1988 * python/python.c (python_run_simple_file): Call gdb._execute_file
1989 on Windows.
1990
43771869
AB
19912019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1994 all uses as this was never set to anything but a zero value.
1995
26c957f1
PA
19962019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1997
1998 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1999
c07aae6e
CB
20002019-08-21 Christian Biesinger <cbiesinger@google.com>
2001
2002 * tui/tui-data.h (tui_gen_win_info): Add an =default
2003 move constructor, required by some GCC versions.
2004
3960cb7a
JF
20052019-08-21 Jinke Fan <fanjinke51@yeah.net>
2006
2007 * go32-nat.c (go32_sysinfo): Add hygon_p.
2008
04c72a68
TT
20092019-08-20 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2012 line_from_reg_element_no, first_reg_element_no_inline,
2013 display_all_data, delete_data_content_windows,
2014 erase_data_content>: Now private.
2015
072272ce
TT
20162019-08-20 Tom Tromey <tom@tromey.com>
2017
2018 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2019 (tui_unhighlight_win, tui_highlight_win)
2020 (tui_win_info::make_window): Update.
2021 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2022
973961bd
TT
20232019-08-20 Tom Tromey <tom@tromey.com>
2024
2025 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2026 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2027 (MAX_PID_WIDTH): Move to tui-stack.c.
2028 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2029 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2030 (MAX_PID_WIDTH): Move from tui-data.h.
2031
ab0e1f1a
TT
20322019-08-20 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2035 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2036 (box_win): Update.
2037 (tui_gen_win_info::make_window): Rename from tui_make_window.
2038 (tui_win_info::make_window): New method.
2039 (tui_gen_win_info::make_visible): Update.
2040 * tui/tui-source.c (tui_source_window::set_contents): Update.
2041 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2042 (tui_data_window::display_registers_from): Update.
2043 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2044 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2045 Declare.
2046 <can_box>: Remove.
2047 <title>: Remove.
2048 (struct tui_win_info) <make_window>: Declare.
2049 <can_box>: Now virtual.
2050 <title>: New member.
2051 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2052 * tui/tui-command.c (tui_cmd_window::resize): Update.
2053
100c2bf3
TT
20542019-08-20 Tom Tromey <tom@tromey.com>
2055
2056 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2057 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2058 (tui_data_window::check_register_values): Update.
2059
fa4dc567
TT
20602019-08-20 Tom Tromey <tom@tromey.com>
2061
2062 * tui/tui-regs.h (struct tui_data_window): Use
2063 DISABLE_COPY_AND_ASSIGN.
2064 <regs_content>: Change type, removing unique_ptr.
2065 <tui_data_window>: Add move constructor.
2066 * tui/tui-regs.c (tui_data_window::show_registers)
2067 (tui_data_window::show_register_group)
2068 (tui_data_window::display_registers_from)
2069 (tui_data_window::display_registers_from)
2070 (tui_data_window::first_data_item_displayed)
2071 (tui_data_window::delete_data_content_windows)
2072 (tui_data_window::rerender, tui_data_window::refresh_window)
2073 (tui_data_window::check_register_values): Update.
2074
ca02d7c8
TT
20752019-08-20 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2078 show_register_group>: Declare.
2079 (tui_show_register_group): Don't declare.
2080 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2081 tui_show_registers.
2082 (tui_data_window::show_register_group): Rename from
2083 tui_show_register_group.
2084 (tui_data_window::check_register_values, tui_reg_command):
2085 Update.
2086 * tui/tui-layout.c (tui_set_layout): Update.
2087
63356bfd
TT
20882019-08-20 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2091 Declare.
2092 (tui_check_register_values): Don't declare.
2093 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2094 from tui_check_register_values.
2095 * tui/tui-hooks.c (tui_register_changed): Update.
2096
42cc14a7
TT
20972019-08-20 Tom Tromey <tom@tromey.com>
2098
2099 * tui/tui-regs.c (tui_reg_layout): Move later.
2100 (tui_show_registers): Don't enable TUI mode or change layout.
2101
b9ad3686
TT
21022019-08-20 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-regs.h (struct tui_data_item_window)
2105 <~tui_data_item_window>: Remove.
2106 <content>: Now a unique_xmalloc_ptr.
2107 * tui/tui-regs.c (tui_register_format): Return a
2108 unique_xmalloc_ptr.
2109 (tui_get_register): Update.
2110 (~tui_data_item_window): Remove.
2111 (tui_data_window::display_registers_from, tui_display_register):
2112 Update.
2113 * tui/tui-io.h (tui_expand_tabs): Update.
2114 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2115 Remove "col" parameter.
2116
8e114aab
TT
21172019-08-20 Tom Tromey <tom@tromey.com>
2118
2119 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2120 field.
2121 * tui/tui-regs.c (~tui_data_item_window): Update.
2122
1a4f81dd
TT
21232019-08-20 Tom Tromey <tom@tromey.com>
2124
2125 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2126 earlier.
2127
0f8d8876
TT
21282019-08-20 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2131
605dc2c2
TT
21322019-08-20 Tom Tromey <tom@tromey.com>
2133
2134 * tui/tui-source.h (struct tui_source_window): Update.
2135 * tui/tui-regs.c (tui_show_registers): Update.
2136 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2137 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2138 (NO_REGS_STRING): Remove defines.
2139
aedbe3bb
CM
21402019-08-20 Conrad Meyer <cem@FreeBSD.org>
2141
2142 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2143 unnecessary thread walk if remote doesn't support the packet.
2144
7ce8f214
TT
21452019-08-19 Tom Tromey <tromey@adacore.com>
2146
2147 * python/py-value.c (value_has_field): Fix indentation.
2148
f21c2bd7
TT
21492019-08-19 Tom Tromey <tromey@adacore.com>
2150
2151 * printcmd.c (do_one_display, info_display_command): Update.
2152 * block.h (contained_in): Return bool. Add allow_nested
2153 parameter.
2154 * block.c (contained_in): Return bool. Add allow_nested
2155 parameter.
2156
d806ea2d
TT
21572019-08-19 Tom Tromey <tom@tromey.com>
2158
2159 * configure: Rebuild.
2160 * configure.ac: Disallow the combination of -static-libstdc++ and
2161 source highlight.
2162 * source-cache.c (get_language_name): Handle rust.
2163 (source_cache::get_source_lines): Ignore highlighting exceptions.
2164
398fdd60
TT
21652019-08-16 Tom Tromey <tom@tromey.com>
2166
2167 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2168 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2169 (struct tui_source_window_base) <make_visible, refresh_window,
2170 resize>: Remove methods.
2171 <execution_info>: Remove field.
2172 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2173 (tui_show_source_line, tui_source_window_base)
2174 (~tui_source_window_base): Update.
2175 (tui_source_window_base::resize)
2176 (tui_source_window_base::make_visible)
2177 (tui_source_window_base::refresh_window): Remove.
2178 (tui_source_window_base::update_exec_info): Update.
2179 * tui/tui-source.c (tui_source_window::set_contents): Update.
2180 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2181
e699d331
TT
21822019-08-16 Tom Tromey <tom@tromey.com>
2183
2184 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2185 deprecated_query_hook.
2186
bb01dbfc
TT
21872019-08-16 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2190 (tui_update_source_windows_with_line): Update.
2191 * tui/tui-source.h (struct tui_source_window)
2192 <show_symtab_source>: Declare.
2193 (tui_show_symtab_source): Don't declare.
2194 * tui/tui-source.c (tui_show_symtab_source): Rename from
2195 tui_show_symtab_source.
2196
81c82c4b
TT
21972019-08-16 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-winsource.h (struct tui_source_window_base)
2200 <set_contents>: Declare.
2201 * tui/tui-winsource.c
2202 (tui_source_window_base::update_source_window_as_is): Update.
2203 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2204 Declare.
2205 (tui_set_source_content): Don't declare.
2206 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2207 tui_set_source_content.
2208 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2209 Declare.
2210 (tui_set_disassem_content): Don't declare.
2211 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2212 tui_set_disassem_content.
2213
2ddaf614
TT
22142019-08-16 Tom Tromey <tom@tromey.com>
2215
2216 * tui/tui-winsource.h (struct tui_source_window_base)
2217 <update_breakpoint_info>: Declare.
2218 (tui_update_breakpoint_info): Don't declare.
2219 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2220 (tui_update_all_breakpoint_info): Update.
2221 (tui_source_window_base::update_breakpoint_info): Rename from
2222 tui_update_breakpoint_info.
2223 (tui_source_window_base::update_exec_info): Update.
2224
017f9828
TT
22252019-08-16 Tom Tromey <tom@tromey.com>
2226
2227 * tui/tui-winsource.h (struct tui_source_window_base)
2228 <update_source_window>: Declare.
2229 (tui_update_source_window): Don't declare.
2230 * tui/tui-winsource.c
2231 (tui_source_window_base::update_source_window): Rename from
2232 tui_update_source_window.
2233 (tui_source_window_base::rerender): Update.
2234 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2235 * tui/tui-disasm.c (tui_show_disassem)
2236 (tui_show_disassem_and_update_source)
2237 (tui_disasm_window::maybe_update): Update.
2238
ed8358e9
TT
22392019-08-16 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-winsource.h (struct tui_source_window_base)
2242 <update_source_window_as_is>: Declare.
2243 (tui_update_source_window_as_is): Don't declare.
2244 * tui/tui-winsource.c (tui_update_source_window): Update
2245 (tui_source_window_base::update_source_window_as_is): Rename from
2246 tui_update_source_window_as_is.
2247 (tui_source_window_base::refill): Update.
2248 * tui/tui-source.c (tui_show_symtab_source): Update.
2249 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2250 Update.
2251
20149b6b
TT
22522019-08-16 Tom Tromey <tom@tromey.com>
2253
2254 * tui/tui-winsource.h (tui_update_source_window)
2255 (tui_update_source_window_as_is): Remove "noerror" parameter.
2256 * tui/tui-winsource.c (tui_update_source_window)
2257 (tui_update_source_window_as_is): Remove "noerror" parameter.
2258 (tui_update_source_windows_with_addr)
2259 (tui_update_source_windows_with_line)
2260 (tui_source_window_base::rerender)
2261 (tui_source_window_base::refill): Update.
2262 * tui/tui-source.h (tui_set_source_content)
2263 (tui_show_symtab_source): Remove "noerror" parameter.
2264 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2265 parameter.
2266 (tui_show_symtab_source): Likewise.
2267 (tui_source_window::maybe_update): Update.
2268 * tui/tui-disasm.c (tui_show_disassem)
2269 (tui_show_disassem_and_update_source)
2270 (tui_disasm_window::do_scroll_vertical)
2271 (tui_disasm_window::maybe_update): Update.
2272
2d83e710
TT
22732019-08-16 Tom Tromey <tom@tromey.com>
2274
2275 * tui/tui.c (tui_is_window_visible): Update.
2276 * tui/tui-wingeneral.c (tui_make_window)
2277 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2278 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2279 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2280 (tui_set_win_height_command, parse_scrolling_args): Update.
2281 * tui/tui-source.c (tui_source_window::style_changed): Update.
2282 * tui/tui-regs.c (tui_show_registers)
2283 (tui_data_window::first_data_item_displayed)
2284 (tui_data_window::delete_data_content_windows)
2285 (tui_check_register_values, tui_reg_command): Update.
2286 * tui/tui-disasm.c (tui_show_disassem): Update.
2287 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2288 method.
2289 <is_visible>: Remove field.
2290 * tui/tui-data.c (tui_next_win, tui_prev_win)
2291 (tui_delete_invisible_windows): Update.
2292
d4ab829a
TT
22932019-08-16 Tom Tromey <tom@tromey.com>
2294
2295 * tui/tui-winsource.h (struct tui_source_window_base)
2296 <m_has_locator>: Remove.
2297 * tui/tui-layout.c (show_source_disasm_command, show_data)
2298 (show_source_or_disasm_and_command): Update.
2299
aa7ca1bb
AH
23002019-08-16 Alan Hayward <alan.hayward@arm.com>
2301
2302 * NEWS (Other MI changes): New subsection.
2303 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2304 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2305 * arch-utils.c (default_get_pc_address_flags): New function.
2306 * arch-utils.h (default_get_pc_address_flags): New declaration.
2307 * gdbarch.sh: Add get_pc_address_flags.
2308 * gdbarch.c: Regenerate.
2309 * gdbarch.h: Likewise.
2310 * stack.c (print_pc): New function.
2311 (print_frame_info) (print_frame): Call print_pc.
2312
6eac171f
TV
23132019-08-16 Tom de Vries <tdevries@suse.de>
2314
2315 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2316 print_objfile_section_info.
2317
3df505f6
TT
23182019-08-15 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2321 calling update_cmdwin_start_line.
2322 * tui/tui-winsource.h (struct tui_source_window_base)
2323 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2324 <rerender>: Declare.
2325 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2326 Call rerender.
2327 (tui_source_window_base::set_new_height): Remove.
2328 (tui_source_window_base::rerender): Rename from
2329 do_make_visible_with_new_height.
2330 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2331 resize method.
2332 (tui_win_info::make_invisible_and_set_new_height)
2333 (tui_win_info::make_visible_with_new_height): Remove.
2334 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2335 Declare.
2336 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2337 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2338 do_make_visible_with_new_height>: Don't declare.
2339 <rerender>: Declare.
2340 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2341 set_new_height.
2342 (tui_data_window::do_make_visible_with_new_height): Remove.
2343 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2344 call tui_show_locator_content.
2345 (tui_gen_win_info::resize): Call rerender.
2346 (show_source_or_disasm_and_command): Don't call
2347 tui_show_locator_content.
2348 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2349 method.
2350 (struct tui_win_info) <rerender>: Declare.
2351 <set_new_height, make_invisible_and_set_new_height,
2352 make_visible_with_new_height>: Don't declare.
2353 * tui/tui-data.c (tui_win_list::rerender): New method.
2354 * tui/tui-command.h (struct tui_cmd_window)
2355 <do_make_visible_with_new_height>: Don't declare.
2356 * tui/tui-command.c
2357 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2358
272560b5
TT
23592019-08-15 Tom Tromey <tromey@adacore.com>
2360
2361 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2362 * ada-lang.c (ada_enum_name): Likewise.
2363
08235187
CB
23642019-08-15 Christian Biesinger <cbiesinger@google.com>
2365
2366 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2367 leading underscore.
2368 (GdbOutputErrorFile): Likewise.
2369 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2370 accordingly.
2371 (execute_unwinders): Rename to have a leading underscore.
2372 (auto_load_packages): Likewise.
2373 (global scope): Adjust call to auto_load_packages accordingly.
2374 (GdbSetPythonDirectory): Likewise.
2375 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2376 instead of execute_unwinders.
2377
db502012
TT
23782019-08-15 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2381 (show_data): Don't change window visibility.
2382 (tui_gen_win_info::resize): Remove special case for command
2383 window. Use wresize, when available.
2384 (show_source_or_disasm_and_command): Don't change window
2385 visibility.
2386 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2387 <make_visible>: New method.
2388 * tui/tui-command.c (tui_cmd_window::resize): New method.
2389
3891b65e
TT
23902019-08-15 Tom Tromey <tom@tromey.com>
2391
2392 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2393 (struct tui_source_windows): New.
2394 * tui/tui-winsource.c (tui_display_main): Update.
2395 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2396 (new_height_ok, parse_scrolling_args): Update.
2397 * tui/tui-layout.c (show_layout, show_data): Update.
2398 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2399 (tui_add_to_source_windows): Don't declare.
2400 * tui/tui-data.c (source_windows, tui_source_windows)
2401 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2402
ee556432
TT
24032019-08-15 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2406 Rename from reset.
2407 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2408 * tui/tui-layout.c (show_source_disasm_command, show_data):
2409 Update.
2410 (tui_gen_win_info::resize): Rename.
2411 (show_source_or_disasm_and_command): Update.
2412 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2413 reset.
2414
46f438e3
TT
24152019-08-15 Tom Tromey <tom@tromey.com>
2416
2417 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2418 * tui/tui-interp.c (tui_interp::init): Don't call
2419 tui_initialize_static_data.
2420 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2421
f4ce562c
TT
24222019-08-15 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2425 examine tui_win_list.
2426
c398c3d0
TT
24272019-08-15 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2430 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2431 tui_clear_source_content.
2432 (tui_clear_source_content): Remove.
2433 (tui_source_window_base::do_erase_source_content): Hoist call to
2434 content.clear().
2435 * tui/tui-stack.c (tui_show_frame_info): Don't call
2436 tui_clear_source_content.
2437
e25d2004
TT
24382019-08-15 Tom Tromey <tom@tromey.com>
2439
2440 * tui/tui-winsource.h (struct tui_source_window_base)
2441 <do_erase_source_content>: New method.
2442 <erase_source_content>: New method.
2443 (tui_erase_source_content): Don't declare.
2444 * tui/tui-winsource.c (tui_clear_source_content): Update.
2445 (tui_source_window_base::do_erase_source_content): Rename from
2446 tui_erase_source_content.
2447 (tui_source_window_base::show_source_content): Update.
2448 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2449 * tui/tui-source.h (struct tui_source_window)
2450 <erase_source_content>: New method.
2451 * tui/tui-disasm.h (struct tui_disasm_window)
2452 <erase_source_content>: New method.
2453
002f15c2
TT
24542019-08-15 Tom Tromey <tom@tromey.com>
2455
2456 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2457 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2458 constructor.
2459 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2460 * tui/tui-source.c (tui_set_source_content): Update.
2461 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2462
c9033fe8
TT
24632019-08-15 Tom Tromey <tom@tromey.com>
2464
2465 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2466 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2467 tui-source.c.
2468 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2469 Declare.
2470 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2471 method.
2472 (tui_source_window::maybe_update): Update.
2473
088f37dd
TT
24742019-08-15 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2477 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2478 tui-disasm.c.
2479 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2480 Declare.
2481 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2482 method.
2483 (tui_disasm_window::maybe_update): Update.
2484
a54700c6
TT
24852019-08-15 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-winsource.h (struct tui_source_window_base)
2488 <maybe_update>: Declare.
2489 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2490 method.
2491 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2492 Declare.
2493 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2494 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2495 Declare.
2496 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2497
e2a678a5
TT
24982019-08-15 Tom Tromey <tom@tromey.com>
2499
2500 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2501
f2dda477
TT
25022019-08-15 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-wingeneral.c: Include tui-stack.h.
2505 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2506 (struct tui_locator_window): Move from tui-data.h.
2507 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2508 (tui_initialize_static_data): Move from tui-data.c.
2509 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2510 (struct tui_locator_window): Move to tui-stack.c.
2511 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2512 (tui_initialize_static_data): Move to tui-stack.c.
2513
ed4a1084
TT
25142019-08-15 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-layout.c (show_source_disasm_command)
2517 (show_source_or_disasm_and_command): Use make_visible method, not
2518 tui_make_window.
2519 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2520 Remove.
2521
65962b20
TT
25222019-08-15 Tom Tromey <tom@tromey.com>
2523
2524 * tui/tui-wingeneral.h (tui_make_window): Update.
2525 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2526 parameter.
2527 (tui_gen_win_info::make_visible): Update.
2528 * tui/tui-regs.c (tui_data_window::display_registers_from):
2529 Update.
2530 * tui/tui-layout.c (show_source_disasm_command)
2531 (show_source_or_disasm_and_command): Update.
2532 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2533 (enum tui_box): Remove.
2534 (struct tui_win_info) <can_box>: New method.
2535 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2536 method.
2537
2208ee91
TV
25382019-08-15 Tom de Vries <tdevries@suse.de>
2539
2540 * linux-nat-trad.c: Include gdbarch.h.
2541
75faf5c4
AH
25422019-08-14 Alan Hayward <alan.hayward@arm.com>
2543
2544 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2545 register sizes.
2546
b1c896b3
TT
25472019-08-14 Tom Tromey <tromey@adacore.com>
2548
2549 * darwin-nat.c: Include gdbarch.h.
2550 * darwin-nat-info.c: Include gdbarch.h.
2551
6405cd73
TT
25522019-08-13 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2555 Remove.
2556 * tui/tui-data.c (tui_initialize_static_data): Update.
2557
5216580d
TT
25582019-08-13 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-winsource.h (struct tui_exec_info_window)
2561 <~tui_exec_info_window, maybe_allocate_content, get_content,
2562 m_content>: Remove.
2563 (struct tui_source_window_base) <set_exec_info_content,
2564 show_exec_info_content>: Don't declare.
2565 * tui/tui-winsource.c
2566 (tui_exec_info_window::maybe_allocate_content): Remove.
2567 (tui_source_window_base::update_exec_info): Rename from
2568 set_exec_info_content.
2569 (tui_source_window_base::show_exec_info_content)
2570 (tui_source_window_base::update_exec_info): Remove.
2571
93858ad3
TT
25722019-08-13 Tom Tromey <tom@tromey.com>
2573
2574 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2575 declare.
2576 * tui/tui-winsource.c (tui_update_source_window_as_is)
2577 (tui_update_source_windows_with_addr, tui_erase_source_content):
2578 Update.
2579 (tui_clear_exec_info_content): Remove.
2580
e321e7ce
TT
25812019-08-13 Tom Tromey <tom@tromey.com>
2582
2583 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2584 declare.
2585 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2586 call tui_erase_exec_info_content.
2587 (tui_clear_exec_info_content): Rename from
2588 tui_erase_exec_info_content.
2589 (tui_clear_exec_info_content): Delete.
2590
8270ac62
TT
25912019-08-13 Tom Tromey <tom@tromey.com>
2592
2593 * tui/tui-winsource.h (struct tui_source_window_base)
2594 <show_exec_info_content>: Declare.
2595 (tui_show_exec_info_content): Don't declare.
2596 * tui/tui-winsource.c
2597 (tui_source_window_base::show_exec_info_content): Rename from
2598 tui_show_exec_info_content.
2599 (tui_source_window_base::update_exec_info): Update.
2600
7b56485d
TT
26012019-08-13 Tom Tromey <tom@tromey.com>
2602
2603 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2604 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2605 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2606 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2607 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2608 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2609 ... here.
2610
7ba913dc
TT
26112019-08-13 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-winsource.h (struct tui_source_window_base)
2614 <update_exec_info>: Declare.
2615 (tui_update_exec_info): Don't declare.
2616 * tui/tui-winsource.c (tui_update_source_window_as_is)
2617 (tui_source_window_base::refresh_all)
2618 (tui_update_all_breakpoint_info): Update.
2619 (tui_source_window_base::update_exec_info): Rename from
2620 tui_update_exec_info.
2621 * tui/tui-stack.c (tui_show_frame_info): Update.
2622
37a4a131
TT
26232019-08-13 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-winsource.h (struct tui_source_window_base)
2626 <set_exec_info_content>: Declare.
2627 (tui_set_exec_info_content): Don't declare.
2628 * tui/tui-winsource.c
2629 (tui_source_window_base::set_exec_info_content): Rename from
2630 tui_set_exec_info_content.
2631 (tui_update_exec_info): Update.
2632
0bd27e07
TT
26332019-08-13 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-winsource.h (struct tui_source_window_base)
2636 <show_source_content>: Declare.
2637 (tui_show_source_content): Don't declare.
2638 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2639 (tui_source_window_base::show_source_content): Rename from
2640 tui_show_source_content.
2641 (tui_source_window_base::refresh_all): Update.
2642 * tui/tui-layout.c (show_source_disasm_command)
2643 (show_source_or_disasm_and_command): Update.
2644
b4ef5aeb
TT
26452019-08-13 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui-winsource.c (tui_erase_source_content)
2648 (tui_show_source_content, tui_source_window_base::refresh_all):
2649 Update.
2650 * tui/tui-wingeneral.h
2651 (tui_check_and_display_highlight_if_needed): Don't declare.
2652 * tui/tui-wingeneral.c
2653 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2654 check_and_display_highlight_if_needed.
2655 * tui/tui-win.c (tui_rehighlight_all)
2656 (tui_win_info::make_visible_with_new_height): Update.
2657 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2658 (tui_data_window::erase_data_content)
2659 (tui_data_window::display_all_data): Update.
2660 * tui/tui-data.h (struct tui_win_info)
2661 <check_and_display_highlight_if_needed>: Declare.
2662
fede5273
TT
26632019-08-13 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui-win.c (tui_resize_all): Call
2666 tui_delete_invisible_windows.
2667 * tui/tui-layout.c (show_layout): Call
2668 tui_delete_invisible_windows.
2669 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2670 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2671
22c3f490
TT
26722019-08-13 Tom Tromey <tom@tromey.com>
2673
2674 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2675 tui_add_win_to_layout.
2676
16cb7910
TT
26772019-08-13 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2680 * tui/tui-layout.c (tui_default_win_height): Now static.
2681
cc0c3ffb
TT
26822019-08-13 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2685 single switch.
2686 (show_source_disasm_command, show_source_or_disasm_and_command):
2687 Don't check current layout.
2688
3f3ffe54
TT
26892019-08-13 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-wingeneral.c (make_all_visible): Remove.
2692 (tui_make_all_invisible): Simplify.
2693 * tui/tui-layout.c (tui_make_all_invisible): Move from
2694 tui-wingeneral.c; simplify.
2695 (show_layout): Hoist call to tui_make_all_invisible.
2696 (show_data): Don't call tui_make_all_invisible.
2697
69258091
TT
26982019-08-13 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2701 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2702
62cf57fe
TT
27032019-08-13 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2706 tui-data.c.
2707 (show_source_disasm_command, show_data)
2708 (show_source_or_disasm_and_command): Don't use
2709 tui_set_current_layout_to.
2710 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2711 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2712 tui-layout.c.
2713 (tui_set_current_layout_to): Remove.
2714
2afade5d
TT
27152019-08-13 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-layout.c (tui_set_layout): Update.
2718 * tui/tui-data.h (struct tui_layout_def): Remove.
2719 (tui_layout_def): Don't declare.
2720 * tui/tui-data.c (layout_def): Remove.
2721 (tui_layout_def): Remove.
2722
a3504e96
TT
27232019-08-13 Tom Tromey <tom@tromey.com>
2724
2725 * tui/tui-winsource.h (struct tui_source_window_base)
2726 <clear_detail>: No longer "override".
2727 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2728 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2729 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2730 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2731 Remove.
2732 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2733
29c92911
TT
27342019-08-13 Tom Tromey <tromey@adacore.com>
2735
2736 * tracepoint.c: Don't include readline.h or history.h.
2737
86c6b807
TT
27382019-08-12 Tom Tromey <tom@tromey.com>
2739
2740 * configure: Rebuild.
2741 * configure.ac: Check for readline 7.
2742 * NEWS: Mention readline 7 requirement.
2743 * README: Update.
2744
5db2718c
TT
27452019-08-12 Tom Tromey <tom@tromey.com>
2746
2747 * mingw-hdep.c (gdb_select): Remove readline hack.
2748
dac36daf
PFC
27492019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2750
2751 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2752 when the function fails.
2753
1022c627
AA
27542019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2755
2756 * s390-tdep.c (s390_type_align): New function.
2757 (s390_gdbarch_init): Set it as type_align gdbarch method.
2758
eba4caf2
TV
27592019-08-09 Tom de Vries <tdevries@suse.de>
2760
2761 PR gdb/24591
2762 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2763 pc_low with relocation offset.
2764
123cd851
TT
27652019-08-07 Tom Tromey <tromey@adacore.com>
2766
2767 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2768 (print_frame_args): Update.
2769 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2770 Update.
2771 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2772 * frame.h (struct frame_arg): Add initializers.
2773 <error>: Now a unique_xmalloc_ptr.
2774
3d31bc39
AH
27752019-08-07 Alan Hayward <alan.hayward@arm.com>
2776
2777 * NEWS: Expand the Pointer Authentication entry.
2778 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2779 (aarch64_frame_unmask_lr): ... to this.
2780 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2781 Call aarch64_frame_unmask_lr.
2782 * frame.c (struct frame_info): Add "masked" variable.
2783 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2784 (fprint_frame): Check for masked pc.
2785 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2786 declarations.
2787 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2788 * stack.c (print_frame): Check for masked pc.
2789
0cf9feb9
TT
27902019-08-06 Tom Tromey <tom@tromey.com>
2791
2792 * stabsread.c (patch_block_stabs, read_one_struct_field)
2793 (read_enum_type): Use obstack_strndup.
2794 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2795 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2796 * dwarf2read.c (guess_full_die_structure_name)
2797 (anonymous_struct_prefix): Use obstack_strndup.
2798 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2799 * c-exp.y (yylex): Use obstack_strndup.
2800 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2801 (write_var_or_type): Use obstack_strndup.
2802
efba19b0
TT
28032019-08-06 Tom Tromey <tom@tromey.com>
2804
2805 * symfile.c (reread_symbols): Use obstack_strdup.
2806 * stabsread.c (read_type): Use obstack_strdup.
2807 * gdb_obstack.h (obstack_strdup): New overload.
2808 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2809 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2810 (dwarf2_canonicalize_name): Use obstack_strdup.
2811 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2812 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2813 Use obstack_strdup.
2814
f25102f7
TT
28152019-08-06 Tom Tromey <tom@tromey.com>
2816
2817 * gdb_obstack.h (obstack_strdup): Define.
2818 * gdb_obstack.c (obstack_strdup): Don't define.
2819
021887d8
TT
28202019-08-06 Tom Tromey <tom@tromey.com>
2821
2822 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2823 obstack_strdup.
2824 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2825 obstack_strdup.
2826 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2827 * stabsread.c (common_block_start): Use obstack_strdup.
2828 * objfiles.c (set_objfile_main_name, objfile): Use
2829 obstack_strdup.
2830 * namespace.c (add_using_directive): Use obstack_strdup.
2831 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2832 * jit.c (finalize_symtab): Use obstack_strdup.
2833 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2834 (guess_partial_die_structure_name, partial_die_info::fixup)
2835 (dwarf2_name): Use obstack_strdup.
2836 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2837 obstack_strdup.
2838 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2839 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2840 obstack_strdup.
2841 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2842
d2834edc
PW
28432019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2844
2845 * unittests/help-doc-selftests.c: New file.
2846 * Makefile.in: Add the new file.
2847
590042fc
PW
28482019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2849
2850 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2851 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2852 the full first line, except when FOR_VALUE_PREFIX. In this case,
2853 the trailing '.' is not output, and the first character is uppercased.
2854 (print_help_for_command): Update call to print_doc_line.
2855 (print_doc_of_command): Likewise.
2856 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2857 * cli/cli-option.c (append_indented_doc): Do not append newline.
2858 (build_help_option): Append newline after first appended_indented_doc
2859 only if a second call is done.
2860 (build_help): Append 2 new lines before each option, except the first
2861 one.
2862 * compile/compile.c (_initialize_compile): Add new lines after
2863 %OPTIONS%, when not at the end of the help.
2864 Change help doc or code
2865 producing the help doc to respect the invariants.
2866 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2867 Also removed the new line after 'Options:', as all other commands
2868 do not put an empty line between 'Options:' and the first option.
2869 * printcmd.c (_initialize_printcmd): Likewise.
2870 * stack.c (_initialize_stack): Likewise.
2871 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2872 incorrectly telling COMMAND is optional.
2873 * ada-lang.c (_initialize_ada_language): Change help doc or code
2874 producing the help doc to respect the invariants.
2875 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2876 * breakpoint.c (_initialize_breakpoint): Likewise.
2877 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2878 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2879 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2880 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2881 _initialize_cli_style): Likewise.
2882 * corelow.c (core_target_info): Likewise.
2883 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2884 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2885 * filesystem.c (_initialize_filesystem): Likewise.
2886 * frame.c (_initialize_frame): Likewise.
2887 * gnu-nat.c (add_task_commands): Likewise.
2888 * infcall.c (_initialize_infcall): Likewise.
2889 * infcmd.c (_initialize_infcmd): Likewise.
2890 * interps.c (_initialize_interpreter): Likewise.
2891 * language.c (_initialize_language): Likewise.
2892 * linux-fork.c (_initialize_linux_fork): Likewise.
2893 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2894 * maint.c (_initialize_maint_cmds): Likewise.
2895 * memattr.c (_initialize_mem): Likewise.
2896 * printcmd.c (_initialize_printcmd): Likewise.
2897 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2898 _RegEx): Likewise.
2899 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2900 * record-btrace.c (_initialize_record_btrace): Likewise.
2901 * record-full.c (_initialize_record_full): Likewise.
2902 * record.c (_initialize_record): Likewise.
2903 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2904 * regcache.c (_initialize_regcache): Likewise.
2905 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2906 _initialize_remote): Likewise.
2907 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2908 * serial.c (_initialize_serial): Likewise.
2909 * skip.c (_initialize_step_skip): Likewise.
2910 * source.c (_initialize_source): Likewise.
2911 * stack.c (_initialize_stack): Likewise.
2912 * symfile.c (_initialize_symfile): Likewise.
2913 * symtab.c (_initialize_symtab): Likewise.
2914 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2915 * top.c (init_main): Likewise.
2916 * tracefile-tfile.c (tfile_target_info): Likewise.
2917 * tracepoint.c (_initialize_tracepoint): Likewise.
2918 * tui/tui-win.c (_initialize_tui_win): Likewise.
2919 * utils.c (add_internal_problem_command): Likewise.
2920 * valprint.c (value_print_option_defs): Likewise.
2921
404f2902
FCE
29222019-08-06 Frank Ch. Eigler <fche@redhat.com>
2923
2924 PR build/24886
2925 * configure.ac: Drop enable-libmcheck support.
2926 * configure, config.in: Rebuild.
2927 * libmcheck.m4: Remove.
2928 * acinclude.m4: Don't include it.
2929 * Makefile.in: Don't distribute it.
2930 * top.c (print_gdb_configuration): Don't mention it.
2931
046bebe1
TT
29322019-08-06 Tom Tromey <tom@tromey.com>
2933
2934 * utils.c (set_output_style): Sometimes pass stream to
2935 emit_style_escape.
2936 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2937 * record-btrace.c (btrace_insn_history): Update.
2938 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2939 method.
2940 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2941 Update initializers.
2942 <m_uiout>: New field.
2943 <m_di>: Move lower.
2944 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2945 Remove "uiout" parameter.
2946 (dump_insns): Update.
2947 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2948 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2949
ddbcedf5
CB
29502019-08-06 Christian Biesinger <cbiesinger@google.com>
2951
2952 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2953 (error_in_psymtab_expansion): Likewise.
2954 (lookup_symbol_via_quick_fns): Likewise.
2955 (basic_lookup_transparent_type_quick): Likewise.
2956 (basic_lookup_transparent_type_1): Likewise.
2957
b08b16c8
TT
29582019-08-06 Tom Tromey <tromey@adacore.com>
2959
2960 * source.c (last_source_error): Now bool.
2961 (print_source_lines_base): Make "noprint" bool. Only open
2962 source file when last_source_visited changes.
2963
cb44333d
TT
29642019-08-06 Tom Tromey <tromey@adacore.com>
2965
2966 * annotate.c (annotate_source_line): Use g_source_cache.
2967 * source-cache.c (source_cache::get_plain_source_lines): Change
2968 parameters. Populate m_offset_cache.
2969 (source_cache::ensure): New method.
2970 (source_cache::get_line_charpos): New method.
2971 (extract_lines): Move lower. Change parameters.
2972 (source_cache::get_source_lines): Move lower.
2973 * source-cache.h (class source_cache): Update comment.
2974 <get_line_charpos>: New method.
2975 <get_source_lines>: Update comment.
2976 <clear>: Clear m_offset_cache.
2977 <get_plain_source_lines>: Change parameters.
2978 <ensure>: New method
2979 <m_offset_cache>: New member.
2980 * source.c (forget_cached_source_info_for_objfile): Update.
2981 (info_source_command): Use g_source_cache.
2982 (find_source_lines, open_source_file_with_line_charpos): Remove.
2983 (print_source_lines_base, search_command_helper): Use g_source_cache.
2984 * source.h (open_source_file_with_line_charpos): Don't declare.
2985 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2986 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2987 Use g_source_cache.
2988
872dceaa
TT
29892019-08-06 Tom Tromey <tromey@adacore.com>
2990
2991 * source-cache.c (source_cache::get_plain_source_lines):
2992 Remove "first_line" and "last_line" parameters.
2993 (source_cache::get_source_lines): Cache plain text.
2994 * source-cache.h (class source_cache)
2995 <get_plain_source_lines>: Update.
2996
269249d9
TT
29972019-08-06 Tom Tromey <tromey@adacore.com>
2998
2999 * source-cache.c (extract_lines): No longer a method.
3000 Changed type of parameter. Include final newline.
3001 (selftests::extract_lines_test): New function.
3002 (_initialize_source_cache): Likewise.
3003 * source-cache.h (class source_cache)
3004 <extract_lines>: Don't declare.
3005
c0e8dcd8
TT
30062019-08-06 Tom Tromey <tromey@adacore.com>
3007
3008 * breakpoint.c (init_breakpoint_sal): Update.
3009 (breakpoint): Update.
3010 * breakpoint.h (struct breakpoint) <filter>: Now a
3011 unique_xmalloc_ptr.
3012
0b27c27d
CB
30132019-08-05 Christian Biesinger <cbiesinger@google.com>
3014
3015 * NEWS: Mention dictionary access on blocks.
3016 * python/py-block.c (blpy_getitem): New function.
3017 (block_object_as_mapping): New struct.
3018 (block_object_type): Use new struct for tp_as_mapping field.
3019
4ee94178
CB
30202019-08-05 Christian Biesinger <cbiesinger@google.com>
3021
3022 * objfiles.h (objfile): Add a comment describing partial symbols.
3023
8abfcabc
TT
30242019-08-05 Tom Tromey <tromey@adacore.com>
3025
3026 * compile/compile.c (_initialize_compile): Use _(), not N_().
3027 * thread.c (_initialize_thread): Use _(), not N_().
3028 * stack.c (_initialize_stack): Use _(), not N_().
3029 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3030
2b79f376
SM
30312019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3032
3033 * dwarf2read.c (struct dw2_symtab_iterator):
3034 <want_specific_block>: Remove.
3035 <block_index>: Change type to gdb::optional.
3036 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3037 change type of BLOCK_INDEX parameter to gdb::optional.
3038 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3039 (dw2_lookup_symbol): Don't pass argument for
3040 WANT_SPECIFIC_BLOCK.
3041 (dw2_expand_symtabs_for_function): Don't pass argument for
3042 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3043 (class dw2_debug_names_iterator)
3044 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3045 parameter, change BLOCK_INDEX type to gdb::optional.
3046 <m_want_specific_block>: Remove.
3047 <m_block_index>: Change type to gdb::optional.
3048 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3049 gdb::optional. Re-write in function of gdb::optional.
3050 (dw2_debug_names_lookup_symbol): Don't pass argument for
3051 WANT_SPECIFIC_BLOCK.
3052 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3053 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3054 BLOCK_INDEX.
3055
ae60f04e
PW
30562019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3057
3058 * NEWS: Mention changes to "info sources" command.
3059
28cd9371
PW
30602019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3061
3062 * symtab.c (filename_partial_match_opts): New struct type.
3063 (struct output_source_filename_data): New members
3064 regexp, c_regexp, partial_match.
3065 (output_source_filename): Use new members to decide to print file.
3066 (info_sources_option_defs): New variable.
3067 (make_info_sources_options_def_group, print_info_sources_header,
3068 info_sources_command_completer):
3069 New functions.
3070 (info_sources_command): Read new optional arguments.
3071 (_initialize_symtab): Update info sources help.
3072
ca683e3a
AO
30732019-08-02 Alexandre Oliva <oliva@adacore.com>
3074
3075 * ada-lang.c (exception_support_info_v0): Renamed from...
3076 (default_exception_support_info): ... this. Create new
3077 definition for v1.
3078 (ada_has_this_exception_support): Look up catch_handlers_sym.
3079 (ada_exception_support_info_sniffer): Try v0 after default.
3080
f1264162
TT
30812019-08-01 Tom Tromey <tromey@adacore.com>
3082
3083 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3084 gdbarch.h.
3085
0a7b2485
CB
30862019-08-01 Christian Biesinger <cbiesinger@google.com>
3087
3088 * s12z-tdep.c: Fix include path for s12z-opc.h.
3089
c6bdbeb7
AH
30902019-08-01 Alan Hayward <alan.hayward@arm.com>
3091
3092 * NEWS: Require GNU make 3.82.
3093
a2bd7b82
TT
30942019-07-16 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3097 declare.
3098
aa3b6533
TT
30992019-07-30 Tom Tromey <tromey@adacore.com>
3100
3101 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3102
a1530dc7
KB
31032019-07-30 Kevin Buettner <kevinb@redhat.com>
3104
3105 * printcmd.c (print_address_symbolic): Print negative offsets.
3106 (build_address_symbolic): Force signed arithmetic when computing
3107 offset.
3108
2906593f
CB
31092019-07-30 Christian Biesinger <cbiesinger@google.com>
3110
3111 PR/24474: Add a function to lookup static variables.
3112 * NEWS: Mention this new function.
3113 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3114 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3115 * python/python.c (python_GdbMethods): Add new function.
3116
c620ed88
CB
31172019-07-29 Christian Biesinger <cbiesinger@google.com>
3118
3119 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3120 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3121 (objfpy_lookup_static_symbol): New function.
3122 (objfile_object_methods): Add new functions.
3123
bc4268a5
PW
31242019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3125
3126 * NEWS: Mention 'set|show print frame-info'. Mention new
3127 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3128 backtrace argument. Mention that python frame filtering code
3129 is now consistent with what 'backtrace' command prints.
3130
4b5e8d19
PW
31312019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3132
3133 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3134 comments.
3135 (print_frame_info_auto, print_frame_info_source_line,
3136 print_frame_info_location, print_frame_info_source_and_location,
3137 print_frame_info_location_and_address, print_frame_info_short_location):
3138 New declarations.
3139 (struct frame_print_options): New member print_frame_info.
3140 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3141 * stack.h (get_user_print_what_frame_info): New declaration.
3142 (frame_show_address): New declaration.
3143 * stack.c (print_frame_arguments_choices): New value 'presence'.
3144 (print_frame_info_auto, print_frame_info_source_line,
3145 print_frame_info_location, print_frame_info_source_and_location,
3146 print_frame_info_location_and_address, print_frame_info_short_location,
3147 print_frame_info_choices, print_frame_info_print_what): New definitions.
3148 (print_frame_args): Only print dots for args if print frame-arguments
3149 is 'presence'.
3150 (frame_print_option_defs): New element for "frame-info".
3151 (get_user_print_what_frame_info): New function.
3152 (frame_show_address): Make non static. Move comment to stack.h.
3153 (print_frame_info_to_print_what): New function.
3154 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3155 to decide what to print.
3156 (backtrace_command_1): Handle the new print_frame_arguments_presence
3157 value.
3158 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3159 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3160 (py_print_frame): In non-mi mode, use LOCATION as default for
3161 print_what, similarly to frame information printed directly by
3162 backtrace command. Handle frame-info user option in non MI mode.
3163
6bdfee81
KB
31642019-07-27 Kevin Buettner <kevinb@redhat.com>
3165
3166 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3167 Add case for debugging 32-bit target on 64-bit host. Revise
3168 comment.
3169
98a617f8
KB
31702019-07-27 Kevin Buettner <kevinb@redhat.com>
3171
3172 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3173 instead of find_function_entry_range_from_pc.
3174
567238c9
KB
31752019-07-27 Kevin Buettner <kevinb@redhat.com>
3176
3177 * stack.c (find_frame_funname): Remove code which preferred
3178 minsym over symtab sym in "certain pathological cases".
3179
2dc80cf8
KB
3180 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3181 parameter. Change type of "do_demangle" to bool.
3182 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3183 Pass suitable "prefer_sym_over_minsym" flag to
3184 build_address_symbolic(). Don't output "+" for negative offsets.
3185 * printcmd.c (print_address_symbolic): Update invocation of
3186 build_address_symbolic to include a "prefer_sym_over_minsym"
3187 flag.
3188 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3189 Restrict cases in which use of minimal symbol is preferred to that
3190 of a found symbol. Update comments.
3191
1aff7173
KB
3192 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3193 for entry pc when entry pc is out of range for that FDE.
3194
89b085ac
BC
31952019-07-26 Brian Callahan <bcallah@openbsd.org>
3196
3197 PR gdb/24839:
3198 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3199 type.
3200
f32feb4a
CB
32012019-07-25 Christian Biesinger <cbiesinger@google.com>
3202
3203 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3204 this function's Python signature.
3205
3206
32072019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3208
3209 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3210 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3211 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3212 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3213 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3214
3215
c54e4253
YS
32162019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3217
3218 * h8300-tdep.c (h8300_register_name_common): New.
3219 h8300_register_name): Use h8300_register_name_common.
3220 (h8300s_register_name): Likewise.
3221 (h8300sx_register_name): Likewise.
3222 (h8300h_register_nam): New.
3223 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3224
3225
40eadf04
SP
32262019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3227
3228 * arm-tdep.c (arm_skip_cmse_entry): New function.
3229 (arm_is_sgstubs_section): New function.
3230 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3231
bfa2a36d
TT
32322019-07-22 Tom Tromey <tom@tromey.com>
3233
3234 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3235 Don't self-assign.
3236
a8e9d247
AB
32372019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3240 type_print.
3241
eb86c5e2
AB
32422019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3245 so that GDB doesn't match any msymbols when searching in the
3246 TYPES_DOMAIN.
3247 (print_symbol_info): Print using typedef_print or type_print based
3248 on the type of the symbol. Add updated FIXME comment moved from...
3249 (_initialize_symtab): ... move and update FIXME comment to above.
3250
a8eab7c6
AB
32512019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * NEWS: Mention adding -q option to "info types".
3254 * symtab.c (struct info_types_options): New struct.
3255 (info_types_options_defs): New variable.
3256 (make_info_types_options_def_group): New function.
3257 (info_types_command): Use gdb::option framework to parse options.
3258 (info_types_command_completer): New function.
3259 (_initialize_symtab): Extend the help text on "info types" and
3260 register command completer.
3261
b4603c34
CB
32622019-07-21 Christian Biesinger <cbiesinger@google.com>
3263
3264 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3265 (lookup_symbol_in_objfile): Change int to block_enum and add a
3266 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3267
c8cdc1e0
CB
32682019-07-20 Christian Biesinger <cbiesinger@google.com>
3269
3270 * MAINTAINERS (Write After Approval): Add self.
3271
01e175fe
AB
32722019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3275 instruction to the dummy code region.
3276
56f79b63
TT
32772019-07-19 Tom Tromey <tromey@adacore.com>
3278
3279 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3280 (ARGSUSED, PARAMS, __func__): Remove rules.
3281
4c5aa8e0
AH
32822019-07-19 Alan Hayward <alan.hayward@arm.com>
3283
3284 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3285 * features/arm/arm-with-iwmmxt.c: Remove.
3286 * features/arm/arm-with-iwmmxt.xml: Remove.
3287 * features/arm/arm-with-m-fpa-layout.c: Remove.
3288 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3289 * features/arm/arm-with-m-vfp-d16.c: Remove.
3290 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3291 * features/arm/arm-with-m.c: Remove.
3292 * features/arm/arm-with-m.xml: Remove.
3293 * features/arm/arm-with-neon.c: Remove.
3294 * features/arm/arm-with-neon.xml: Remove.
3295 * features/arm/arm-with-vfpv2.c: Remove.
3296 * features/arm/arm-with-vfpv2.xml: Remove.
3297 * features/arm/arm-with-vfpv3.c: Remove.
3298 * features/arm/arm-with-vfpv3.xml: Remove.
3299
f42b2617
AH
33002019-07-19 Alan Hayward <alan.hayward@arm.com>
3301
3302 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3303
f29ec966
AH
33042019-07-19 Alan Hayward <alan.hayward@arm.com>
3305
3306 * arch/aarch32.c (aarch32_create_target_description): Create
3307 target descriptions using features.
3308 * arch/arm.c (arm_create_target_description)
3309 (arm_create_mprofile_target_description): Likewise.
3310 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3311
d105cce5
AH
33122019-07-19 Alan Hayward <alan.hayward@arm.com>
3313
3314 * Makefile.in: Add new files.
3315 * aarch32-tdep.c: New file.
3316 * aarch32-tdep.h: New file.
3317 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3318 Call aarch32_read_description.
3319 * arch/aarch32.c: New file.
3320 * arch/aarch32.h: New file.
3321 * arch/arm.c (arm_create_target_description)
3322 (arm_create_mprofile_target_description): New function.
3323 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3324 (arm_create_target_description)
3325 (arm_create_mprofile_target_description): New declaration.
3326 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3327 read_description functions.
3328 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3329 Likewise.
3330 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3331 * arm-tdep.c (tdesc_arm_list): New variable.
3332 (arm_register_g_packet_guesses): Call create description functions.
3333 (arm_read_description) (arm_read_mprofile_description): New
3334 function.
3335 * arm-tdep.h (arm_read_description)
3336 (arm_read_mprofile_description): Add declaration.
3337 * configure.tgt: Add new files.
3338
afe09f0b
GL
33392019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3340
3341 * top.c (new_ui_command): Open specified terminal just once.
3342
cd215b2e
TT
33432019-07-18 Tom Tromey <tromey@adacore.com>
3344
3345 * symtab.c (main_name): Constify return type.
3346 * symfile.c (set_initial_language): Update.
3347 * symtab.h (main_name): Constify return type.
3348
d8f68fcb
TT
33492019-07-17 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui-winsource.c (tui_update_source_window)
3352 (tui_update_source_window_as_is)
3353 (tui_update_source_windows_with_line): Remove return.
3354 * tui/tui-disasm.c (tui_show_disassem)
3355 (tui_show_disassem_and_update_source): Remove return.
3356 * tui/tui.c (tui_reset): Remove return.
3357 * tui/tui-wingeneral.c
3358 (tui_check_and_display_highlight_if_needed): Remove return.
3359
ca5af91e
TT
33602019-07-17 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3363
5104fe36
TT
33642019-07-17 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-winsource.h (struct tui_exec_info_window)
3367 (struct tui_source_window_base): Move from tui-data.h.
3368 * tui/tui-winsource.c: Move many method definitions from
3369 elsewhere. Remove "structuring" comments.
3370 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3371 (tui_source_window_base::refresh_window): Move to
3372 tui-winsource.c.
3373 * tui/tui-win.c (tui_source_window_base::refresh_all)
3374 (tui_source_window_base::update_tab_width)
3375 (tui_source_window_base::set_new_height)
3376 (tui_source_window_base::do_make_visible_with_new_height): Move to
3377 tui-winsource.c.
3378 * tui/tui-source.h: Update.
3379 * tui/tui-source.c (tui_source_window_base::reset): Move to
3380 tui-winsource.c.
3381 * tui/tui-disasm.h: Update.
3382 * tui/tui-data.h (struct tui_exec_info_window): Move to
3383 tui-winsource.h.
3384 (struct tui_source_window_base): Likewise.
3385 * tui/tui-data.c (tui_source_window_base::clear_detail)
3386 (tui_source_window_base, ~tui_source_window_base): Move to
3387 tui-winsource.c.
3388
daa15dde
TT
33892019-07-17 Tom Tromey <tom@tromey.com>
3390
3391 * tui/tui-win.c (tui_resize_all)
3392 (tui_source_window_base::update_tab_width)
3393 (tui_adjust_win_heights): Update.
3394 (tui_win_info::make_invisible_and_set_new_height): Rename from
3395 make_invisible_and_set_new_height.
3396 * tui/tui-data.h (struct tui_win_info)
3397 <make_invisible_and_set_new_height>: New method.
3398
bfad4537
TT
33992019-07-17 Tom Tromey <tom@tromey.com>
3400
3401 * tui/tui.c: Update.
3402 * tui/tui-source.h (struct tui_source_window): Move from
3403 tui-data.h.
3404 * tui/tui-layout.c: Update.
3405 * tui/tui-disasm.c: Update.
3406 * tui/tui-data.h (struct tui_source_window): Move to
3407 tui-source.h.
3408
88f7e873
TT
34092019-07-17 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3412 tui-data.h.
3413 * tui/tui-data.h (struct tui_disasm_window): Move to
3414 tui-disasm.h.
3415
96bd6233
TT
34162019-07-17 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui-regs.h (struct tui_data_item_window): Move from
3419 tui-data.h.
3420 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3421 * tui/tui-data.h (struct tui_data_item_window): Move to
3422 tui-regs.h.
3423 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3424
ce38393b
TT
34252019-07-17 Tom Tromey <tom@tromey.com>
3426
3427 * tui/tui.c: Update.
3428 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3429 (tui_cmd_window::max_height): Move to tui-command.c.
3430 * tui/tui-layout.c: Update.
3431 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3432 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3433 tui-command.c.
3434 * tui/tui-command.h (struct tui_cmd_window): Move from
3435 tui-data.h.
3436 * tui/tui-command.c: Remove "structuring" comments.
3437 (tui_cmd_window::clear_detail)
3438 (tui_cmd_window::do_make_visible_with_new_height)
3439 (tui_cmd_window::max_height): Move from elsewhere.
3440
2d8b51cb
TT
34412019-07-17 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3444 Now static.
3445 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3446 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3447
18ab23af
TT
34482019-07-17 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui.c: Update.
3451 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3452 tui-regs.c.
3453 * tui/tui-windata.h: Remove file.
3454 * tui/tui-windata.c: Remove file.
3455 * tui/tui-win.c (tui_data_window::set_new_height)
3456 (tui_data_window::do_make_visible_with_new_height): Move to
3457 tui-regs.c.
3458 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3459 * tui/tui-regs.c: Remove "structuring" comments.
3460 (tui_data_window::first_data_item_displayed)
3461 (tui_data_window::delete_data_content_windows)
3462 (tui_data_window::erase_data_content)
3463 (tui_data_window::display_all_data)
3464 (tui_data_window::refresh_all)
3465 (tui_data_window::do_scroll_vertical)
3466 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3467 (tui_data_window::do_make_visible_with_new_height)
3468 (tui_data_window::refresh_window): Move from elsewhere.
3469 (_initialize_tui_regs): Move to end of file.
3470 * tui/tui-layout.c: Update.
3471 * tui/tui-hooks.c: Update.
3472 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3473 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3474 tui-regs.c.
3475 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3476
88b7e7cc
TT
34772019-07-17 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3480 seen.
3481
0fcd3711
TT
34822019-07-17 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-win.c (tui_source_window_base::set_new_height)
3485 (tui_source_window_base::do_make_visible_with_new_height): Use
3486 m_has_locator field directly.
3487 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3488 method.
3489 (struct tui_source_window_base) <has_locator>: Likewise.
3490
4a38112d
TT
34912019-07-17 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3494 Don't declare.
3495 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3496 Remove.
3497 * tui/tui-win.c (tui_source_window_base::set_new_height)
3498 (tui_source_window_base::set_new_height)
3499 (make_invisible_and_set_new_height)
3500 (tui_source_window_base::do_make_visible_with_new_height)
3501 (tui_source_window_base::do_make_visible_with_new_height):
3502 Update.
3503 * tui/tui-layout.c (show_source_disasm_command, show_data)
3504 (show_source_or_disasm_and_command): Update.
3505 * tui/tui-layout.c (show_layout): Update.
3506
09129226
TT
35072019-07-17 Tom Tromey <tom@tromey.com>
3508
3509 * tui/tui-layout.c (make_data_window): Remove.
3510 (show_data): Unify creation and re-initialization cases.
3511
4a8a5e84
TT
35122019-07-17 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui-layout.c (make_source_window, make_disasm_window):
3515 Remove.
3516 (show_data): Unify creation and re-initialization cases.
3517
76d2be8e
TT
35182019-07-17 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-layout.c (make_command_window): Remove.
3521 (show_source_disasm_command, show_source_or_disasm_and_command):
3522 Unify creation and re-initialization cases.
3523
890b8bde
TT
35242019-07-17 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3527 creation and re-initialization cases.
3528
2cdfa113
TT
35292019-07-17 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-regs.c (tui_get_register): Return void.
3532
8e3cfd09
TT
35332019-07-17 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3536 Simplify.
3537
f4e04977
TT
35382019-07-17 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3541 resetting.
3542
0379b883
TT
35432019-07-17 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3546 * tui/tui-regs.c (tui_reg_layout): New function.
3547 (tui_show_registers, tui_reg_command): Use it.
3548 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3549 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3550 parameters.
3551 (tui_layout_command): Remove.
3552
b7fbad91
TT
35532019-07-17 Tom Tromey <tom@tromey.com>
3554
3555 * tui/tui-layout.h (tui/tui-layout): Return void.
3556 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3557
4e1e56b9
TT
35582019-07-17 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-layout.c (show_source_disasm_command, show_data):
3561 Update.
3562 (reset_locator): Remove.
3563 (show_source_or_disasm_and_command): Update.
3564
1e0c09ba
TT
35652019-07-17 Tom Tromey <tom@tromey.com>
3566
3567 * tui/tui-source.c (tui_source_window_base::reset): Remove
3568 win_type parameter.
3569 * tui/tui-layout.c (make_command_window, make_source_window)
3570 (make_disasm_window, make_data_window)
3571 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3572 (reset_locator, show_source_or_disasm_and_command): Update.
3573 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3574 win_type parameter.
3575 (struct tui_source_window_base) <reset>: Likewise.
3576
1bf605de
TT
35772019-07-17 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-layout.c (show_source_disasm_command): Use
3580 reset_locator.
3581 (reset_locator): New function.
3582 (init_and_make_win): Remove.
3583 (show_source_or_disasm_and_command): Use reset_locator.
3584
098f9ed4
TT
35852019-07-17 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3588 condition.
3589 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3590 Remove condition.
3591 * tui/tui-source.c (tui_source_window_base::reset): New method.
3592 * tui/tui-layout.c (make_command_window): Don't call
3593 init_and_make_win.
3594 (make_source_window, make_disasm_window): Don't call
3595 make_source_or_disasm_window.
3596 (make_data_window): Don't call init_and_make_win. Change calling
3597 convention.
3598 (show_source_disasm_command, show_data): Simplify.
3599 (make_source_or_disasm_window): Remove.
3600 (show_source_or_disasm_and_command): Simplify.
3601 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3602 (struct tui_source_window_base) <reset>: Likewise.
3603 <execution_info>: Remove initializer.
3604 * tui/tui-data.c (tui_source_window_base): Initialize
3605 execution_info.
3606
80110957
TT
36072019-07-17 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3610 variable.
3611
cf82af05
TT
36122019-07-17 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui.c (tui_rl_other_window): Update.
3615 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3616 superclass method first. Always iterate over regs_content.
3617 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3618 method.
3619 * tui/tui-win.c (tui_set_focus_command): Update.
3620
01aeb396
TT
36212019-07-17 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-win.c (tui_set_focus_command): Rename from
3624 tui_set_focus. Call tui_enable.
3625 (tui_set_focus_command): Remove.
3626
fd6c75ee
TT
36272019-07-17 Tom Tromey <tom@tromey.com>
3628
3629 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3630 refresh_window.
3631 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3632 touchwin.
3633 (tui_data_window::refresh_window): Call refresh_window on data
3634 items. Always call superclass refresh_window.
3635 (tui_win_info::refresh): Remove.
3636 (tui_source_window_base::refresh_window): Update.
3637 (tui_refresh_all): Update.
3638 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3639 refresh_window.
3640 (show_source_or_disasm_and_command): Likewise.
3641 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3642 (struct tui_source_window_base) <refresh>: Likewise.
3643
f6cc34a9
TT
36442019-07-17 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-winsource.c (tui_clear_source_content)
3647 (tui_show_source_content): Update.
3648 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3649 whether content is empty.
3650 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3651 Remove.
3652
f31ec9af
TT
36532019-07-17 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3656 window's contents.
3657 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3658 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3659
d1b6f1e5
TT
36602019-07-17 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3663 (struct tui_data_item_window): Update.
3664
d9743a13
TT
36652019-07-17 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3668 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3669 defines.
3670
caf0bc4e
TT
36712019-07-17 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-winsource.h (tui_erase_source_content)
3674 (tui_clear_source_content): Remove "display_prompt" parameter.
3675 * tui/tui-winsource.c (tui_update_source_window_as_is)
3676 (tui_update_source_windows_with_addr): Update.
3677 (tui_clear_source_content): Remove "display_prompt" parameter.
3678 (tui_erase_source_content): Likewise. Simplify.
3679 (tui_show_source_content): Update.
3680 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3681 * tui/tui-stack.c (tui_show_frame_info): Update.
3682 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3683 Remove defines.
3684
9d391078
TT
36852019-07-17 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3688 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3689 parameter.
3690 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3691 parameter.
3692
a38da35d
TT
36932019-07-17 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-winsource.c (tui_clear_source_content)
3696 (tui_show_source_content, tui_show_exec_info_content)
3697 (tui_clear_exec_info_content): Update.
3698 * tui/tui-stack.c (tui_show_locator_content): Update.
3699 (tui_show_frame_info): Update.
3700 * tui/tui-source.h (tui_source_window): Don't declare.
3701 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3702 from tui_source_is_displayed.
3703 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3704 Remove field.
3705 (struct tui_source_window_base) <content_in_use>: New field. Now
3706 bool.
3707 (struct tui_source_window) <showing_source_p>: New method.
3708 (TUI_SRC_WIN): Change cast.
3709 * tui/tui-data.c (tui_initialize_static_data): Update.
3710
c2cd8994
TT
37112019-07-17 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3714 location_matches_p.
3715 * tui/tui-source.c (tui_source_window::location_matches_p): New
3716 method.
3717 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3718 method.
3719 * tui/tui-data.h (struct tui_source_window_base)
3720 <location_matches_p>: New method.
3721 (struct tui_source_window, struct tui_disasm_window)
3722 <location_matches_p>: Likewise.
3723
4dde7b34
TT
37242019-07-17 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-win.c (tui_set_win_height_command): Rename from
3727 tui_set_win_height.
3728 (tui_set_win_height_command): Remove.
3729
b73dd877
TT
37302019-07-17 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-source.c (tui_source_window): New constructor. Add
3733 observer.
3734 (~tui_source_window): New destructor.
3735 (tui_source_window::style_changed): New method.
3736 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3737 (tui_attach_detach_observers): Update.
3738 * tui/tui-data.h (struct tui_source_window): Make constructor not
3739 inline. Add destructor.
3740 (struct tui_source_window) <style_changed>: New method.
3741 <m_observable>: New member.
3742
ae2b5380
TT
37432019-07-17 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3746 * tui/tui-win.c (tui_resize_all): Fix typo.
3747
1ce3e844
TT
37482019-07-17 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3751 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3752 (tui_refresh_all): Remove "list" parameter. Use foreach.
3753 * tui/tui-win.c (window_name_completer): Use foreach.
3754 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3755 (update_tab_width): Likewise.
3756 * tui/tui-layout.c (show_layout): Update.
3757 * tui/tui-data.h (class tui_window_iterator): New.
3758 (struct all_tui_windows): New.
3759 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3760
fe3eaf1c
TT
37612019-07-17 Tom Tromey <tom@tromey.com>
3762
3763 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3764 parameter. Don't reference globals.
3765 (tui_reg_command): Update.
3766
368c1354
TT
37672019-07-17 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-regs.c (tui_show_registers): Simplify.
3770
e80cd204
TT
37712019-07-17 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-regs.c (tui_show_registers): Update.
3774 (tui_show_register_group): Add win_info parameter.
3775
aca2dd16
TT
37762019-07-17 Tom Tromey <tom@tromey.com>
3777
3778 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3779 Rename from tui_display_reg_element_at_line.
3780 (tui_data_window::display_registers_from_line): Update.
3781 * tui/tui-data.h (struct tui_data_window)
3782 <display_reg_element_at_line>: New method.
3783
517e9505
TT
37842019-07-17 Tom Tromey <tom@tromey.com>
3785
3786 * tui/tui-regs.h (tui_display_registers_from)
3787 (tui_display_registers_from_line): Don't declare.
3788 * tui/tui-windata.c (tui_data_window::display_all_data)
3789 (tui_data_window::refresh_all)
3790 (tui_data_window::do_scroll_vertical): Update.
3791 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3792 from tui_display_registers_from.
3793 (tui_display_reg_element_at_line): Update.
3794 (tui_data_window::display_registers_from_line): Rename from
3795 tui_display_registers_from_line.
3796 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3797 display_registers_from_line>: New methods.
3798
f76d8b19
TT
37992019-07-17 Tom Tromey <tom@tromey.com>
3800
3801 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3802 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3803 from tui_erase_data_content.
3804 (tui_data_window::display_all_data)
3805 (tui_data_window::refresh_all)
3806 (tui_data_window::do_scroll_vertical): Update.
3807 * tui/tui-regs.c (tui_show_registers): Update.
3808 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3809 New method.
3810
b4094625
TT
38112019-07-17 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3814 declare.
3815 * tui/tui-windata.c
3816 (tui_data_window::delete_data_content_windows): Rename from
3817 tui_delete_data_content_windows.
3818 (tui_data_window::display_all_data)
3819 (tui_data_window::do_scroll_vertical): Update.
3820 * tui/tui-data.h (struct tui_data_window)
3821 <delete_data_content_windows>: New method.
3822
c223a729
TT
38232019-07-17 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3826 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3827
50daf268
TT
38282019-07-17 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3831 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3832 from tui_display_all_data.
3833 * tui/tui-win.c
3834 (tui_data_window::do_make_visible_with_new_height): Update.
3835 * tui/tui-regs.c (tui_show_registers): Update.
3836 * tui/tui-layout.c (tui_set_layout): Update.
3837 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3838 method.
3839
df5f8cab
TT
38402019-07-17 Tom Tromey <tom@tromey.com>
3841
3842 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3843 * tui/tui-windata.c (tui_display_data_from): Remove.
3844 (tui_data_window::refresh_all): Update.
3845
80cb6c27
TT
38462019-07-17 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3849 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3850 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3851 tui_display_registers_from_line.
3852 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3853 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3854 "force_display" parameter.
3855
baff0c28
TT
38562019-07-17 Tom Tromey <tom@tromey.com>
3857
3858 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3859 declare.
3860 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3861 Rename from tui_first_reg_element_no_inline.
3862 (tui_display_reg_element_at_line)
3863 (tui_display_registers_from_line): Update.
3864 * tui/tui-data.h (struct tui_data_window)
3865 <first_reg_element_no_inline>: New method.
3866
3b23c5f2
TT
38672019-07-17 Tom Tromey <tom@tromey.com>
3868
3869 * tui/tui-windata.c (tui_display_data_from)
3870 (tui_data_window::do_scroll_vertical): Update.
3871 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3872 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3873 Rename from tui_line_from_reg_element_no.
3874 (tui_display_registers_from_line): Update.
3875 * tui/tui-data.h (struct tui_data_window)
3876 <line_from_reg_element_no>: New method.
3877
0b5ec218
TT
38782019-07-17 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3881 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3882 tui_last_regs_line_no.
3883 (tui_display_reg_element_at_line)
3884 (tui_display_registers_from_line): Update.
3885 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3886 method.
3887
0807ab7b
TT
38882019-07-17 Tom Tromey <tom@tromey.com>
3889
3890 PR tui/24722:
3891 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3892 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3893 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3894 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3895 (tui_update_breakpoint_info): Likewise.
3896 * tui/tui-hooks.c (tui_event_create_breakpoint)
3897 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3898 Update.
3899
9ad7fdef
TT
39002019-07-17 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3903
5813316f
TT
39042019-07-17 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-winsource.c (tui_update_source_window_as_is)
3907 (tui_update_source_windows_with_addr): Update.
3908 * tui/tui-source.h (tui_set_source_content)
3909 (tui_show_symtab_source): Add "win_info" parameter.
3910 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3911 parameter.
3912 (tui_show_symtab_source): Likewise.
3913
00e264e7
TT
39142019-07-17 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui-wingeneral.c
3917 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3918
06210ce4
TT
39192019-07-17 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3922 (struct tui_cmd_window) <can_scroll>: New method.
3923 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3924 method.
3925
381befee
TT
39262019-07-17 Tom Tromey <tromey@adacore.com>
3927
3928 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3929 do_field_signed>: Rename. Change type of "value".
3930 * ui-out.c (ui_out::field_signed): Rename from field_int.
3931 Change type of "value".
3932 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3933 type of "value".
3934 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3935 do_field_int. Change type of "value".
3936 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3937 do_field_int. Change type of "value".
3938 * tracepoint.c (trace_status_mi, tfind_1)
3939 (print_one_static_tracepoint_marker): Update.
3940 * thread.c (print_thread_info_1, print_selected_thread_frame):
3941 Update.
3942 * stack.c (print_frame, print_frame_info): Update.
3943 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3944 Update.
3945 * source.c (print_source_lines_base): Update.
3946 * skip.c (info_skip_command): Update.
3947 * record-btrace.c (btrace_ui_out_decode_error)
3948 (btrace_call_history_src_line): Update.
3949 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3950 Update.
3951 * progspace.c (print_program_space): Update.
3952 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3953 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3954 do_field_int. Change type of "value".
3955 * mi/mi-out.c (mi_ui_out::do_table_begin)
3956 (mi_ui_out::do_table_header): Update.
3957 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3958 type of "value".
3959 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3960 (mi_cmd_data_list_changed_registers, output_register)
3961 (mi_cmd_data_read_memory, mi_load_progress)
3962 (mi_cmd_trace_frame_collected): Update.
3963 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3964 Update.
3965 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3966 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3967 (mi_cmd_var_list_children, varobj_update_one): Update.
3968 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3969 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3970 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3971 * inferior.c (print_inferior): Update.
3972 * gdb_bfd.c (print_one_bfd): Update.
3973 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3974 Update.
3975 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3976 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3977 do_field_int. Change type of "value".
3978 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3979 do_field_int. Change type of "value".
3980 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3981 (print_one_breakpoint_location, print_it_catch_fork)
3982 (print_one_catch_fork, print_it_catch_vfork)
3983 (print_one_catch_vfork, print_it_catch_solib)
3984 (print_it_catch_exec, print_it_ranged_breakpoint)
3985 (print_mention_watchpoint, print_mention_masked_watchpoint)
3986 (bkpt_print_it, update_static_tracepoint): Update.
3987 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3988 * break-catch-syscall.c (print_it_catch_syscall): Update.
3989 * ada-tasks.c (print_ada_task_info): Update.
3990 * ada-lang.c (print_it_exception, print_mention_exception):
3991 Update.
3992
6b78c3f8
AB
39932019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3994
3995 PR breakpoints/24541
3996 * gdbarch.c: Regenerate.
3997 * gdbarch.h: Regenerate.
3998 * gdbarch.sh: Adjust return type and parameter types for
3999 'stap_adjust_register'.
4000 (i386_stap_adjust_register): Adjust signature and return new
4001 register name.
4002 * stap-probe.c (stap_parse_register_operand): Adjust use of
4003 'gdbarch_stap_adjust_register'.
4004
d72a9b85
TT
40052019-07-17 Tom Tromey <tromey@adacore.com>
4006
4007 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4008 declare VEC.
4009 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4010 std::vector.
4011 (struct s390_process_info): Add initializers.
4012 (s390_add_process): Use new.
4013 (s390_linux_nat_target::low_forget_process): Use delete.
4014 (s390_linux_nat_target::low_new_fork)
4015 (s390_linux_nat_target::stopped_by_watchpoint)
4016 (s390_linux_nat_target::low_prepare_to_resume)
4017 (s390_linux_nat_target::insert_watchpoint)
4018 (s390_linux_nat_target::insert_hw_breakpoint)
4019 (s390_linux_nat_target::remove_watchpoint)
4020 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4021
206e6c58
JB
40222019-07-16 John Baldwin <jhb@FreeBSD.org>
4023
4024 * aarch64-fbsd-nat.c: Include regcache.h.
4025 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4026 argument.
4027 (aarch64_fbsd_nat_target::fetch_registers)
4028 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4029 variable.
4030 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4031
cbde90f2
JB
40322019-07-16 John Baldwin <jhb@FreeBSD.org>
4033
4034 * fbsd-nat.c: Include gdbarch.h.
4035
07128006
TT
40362019-07-15 Tom Tromey <tromey@adacore.com>
4037
4038 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4039
1f77b012
TT
40402019-07-15 Tom Tromey <tromey@adacore.com>
4041
4042 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4043 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4044 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4045 * cli-out.c (cli_ui_out::do_field_int): New method.
4046 * ui-out.c (ui_out::field_unsigned): New method.
4047 * symfile.c (generic_load): Use field_unsigned.
4048 (print_transfer_performance): Likewise.
4049 * record-btrace.c (ui_out_field_uint): Remove.
4050 (btrace_call_history_insn_range, btrace_call_history): Use
4051 field_unsigned.
4052 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4053 field_unsigned.
4054 * ui-out.h (class ui_out) <field_unsigned>: New method.
4055 <do_field_unsigned>: Likewise.
4056
33eca680
TT
40572019-07-15 Tom Tromey <tromey@adacore.com>
4058
4059 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4060 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4061 * target.c (flash_erase_command): Use field_string.
4062 * infrun.c (print_signal_received_reason): Use field_string.
4063 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4064 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4065 field_string.
4066 * ada-tasks.c (print_ada_task_info): Use field_string.
4067
ca8d69be
TT
40682019-07-15 Tom Tromey <tromey@adacore.com>
4069
4070 * target.c (flash_erase_command): Use field_core_addr.
4071 * symfile.c (generic_load): Use field_core_addr.
4072 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4073 Use field_core_addr.
4074 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4075 field_core_addr.
4076
0d4e84ed
AB
40772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4080 value if its desired type is smaller than a CORE_ADDR and signed.
4081
9a49df9d
AB
40822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4083
4084 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4085 of changes to field names, and use new is_reference field to
4086 decide if a property is a reference or not.
4087 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4088 field.
4089 (struct dwarf2_property_baton): Update header comment, rename
4090 'referenced_type' to 'property_type' and update comments.
4091 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4092 default property type, store in property baton, update to take
4093 accound of renamed field.
4094 (read_func_scope): Update call to attr_to_dynamic_prop.
4095 (read_array_type): Likewise.
4096 (dwarf2_per_cu_addr_sized_int_type): New function.
4097 (read_subrange_index_type): Move type finding code to
4098 dwarf2_per_cu_addr_sized_int_type.
4099 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4100 (dwarf2_per_cu_addr_type): New function.
4101 (set_die_type): Update calls to attr_to_dynamic_prop.
4102
b86352cf
AB
41032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * dwarf2read.c (read_subrange_index_type): New function.
4106 (read_subrange_type): Move code into new function and call it.
4107 * gdbtypes.c (create_range_type): Add some asserts.
4108
603490bf
AB
41092019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4112 update return statements.
4113 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4114 declaration, and update comment to match.
4115 * gdbtypes.c (resolve_dynamic_array): Update call to
4116 dwarf2_evaluate_property to match new return type.
4117
592f9d27
AB
41182019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4119
4120 * valarith.c (value_subscripted_rvalue): Change lowerbound
4121 parameter type from int to LONGEST.
4122 * value.h (value_subscripted_rvalue): Likewise in declaration.
4123
60cfcb20
AB
41242019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4125
4126 * cli/cli-utils.c (info_print_command_completer): New function.
4127 * cli/cli-utils.h: Add 'completer.h' include, and forward
4128 declaration for 'struct cmd_list_element'.
4129 (info_print_command_completer): Declare.
4130 * stack.c (_initialize_stack): Add completer for 'info locals' and
4131 'info args'.
4132 * symtab.c (_initialize_symtab): Add completer for 'info
4133 variables' and 'info functions'.
4134 * NEWS: Mention completion for additional info commands.
4135
b16507e0
AB
41362019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4137
4138 * cli/cli-utils.c (extract_info_print_args): Delete.
4139 (extract_arg_maybe_quoted): Delete.
4140 (info_print_options_defs): New variable.
4141 (make_info_print_options_def_group): New function.
4142 (extract_info_print_options): Define new function.
4143 * cli/cli-utils.h (extract_info_print_args): Delete.
4144 (struct info_print_options): New structure.
4145 (extract_info_print_options): Declare new function.
4146 * stack.c (info_locals_command): Update to use new
4147 extract_info_print_options, also add a header comment.
4148 (info_args_command): Likewise.
4149 * symtab.c (info_variables_command): Likewise.
4150 (info_functions_command): Likewise.
4151
021d8588
AB
41522019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4155 to extract string arguments.
4156 * common/common-utils.c (extract_string_maybe_quoted): New function.
4157 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4158
b777eb6d
TT
41592019-07-11 Tom Tromey <tromey@adacore.com>
4160
4161 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4162 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4163 * top.h (gdbinit): Don't declare.
4164 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4165 into...
4166 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4167 * top.c (gdb_init): Don't call init_cli_cmds.
4168 (gdbinit): Remove.
4169 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4170
72ee03ff
TT
41712019-07-11 Tom Tromey <tromey@adacore.com>
4172
4173 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4174 after it has been moved.
4175
00db9531
SM
41762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4177
4178 * valops.c (value_must_coerce_to_target): Change return type to
4179 bool.
4180 * value.h (value_must_coerce_to_target): Likewise.
4181
f2478a7e
SM
41822019-07-10 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * breakpoint.c (is_hardware_watchpoint): Remove
4185 forward-declaration.
4186 (is_masked_watchpoint): Change return type to bool.
4187 (is_tracepoint): Likewise.
4188 (is_breakpoint): Likewise.
4189 (is_hardware_watchpoint): Likewise.
4190 (is_watchpoint): Likewise.
4191 (is_no_memory_software_watchpoint): Likewise.
4192 (is_catchpoint): Likewise.
4193 (breakpoint_1): Make FILTER parameter's return type bool.
4194 is_masked_watchpoint): Change return type to bool.
4195 (save_breakpoints): Make FILTER parameter's return type bool.
4196 * breakpoint.h (is_breakpoint): Change return type to bool.
4197 (is_watchpoint): Likewise.
4198 (is_catchpoint): Likewise.
4199 (is_tracepoint): Likewise.
4200
0d12e84c
TT
42012019-07-10 Tom Tromey <tom@tromey.com>
4202
4203 * defs.h: Don't include gdbarch.h.
4204 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4205 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4206 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4207 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4208 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4209 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4210 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4211 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4212 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4213 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4214 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4215 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4216 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4217 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4218 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4219 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4220 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4221 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4222 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4223 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4224 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4225 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4226 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4227 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4228 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4229 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4230 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4231
f06f1252
TT
42322019-07-10 Tom Tromey <tromey@adacore.com>
4233
4234 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4235 * breakpoint.c (init_ada_exception_breakpoint): Register as
4236 bp_catchpoint.
4237 (print_one_breakpoint_location, print_one_breakpoint): Use
4238 is_ada_exception_catchpoint.
4239 * ada-lang.c (class ada_catchpoint_location): Pass
4240 bp_loc_software_breakpoint to bp_location constructor.
4241 (is_ada_exception_catchpoint): New function.
4242
7a5d944b
TT
42432019-07-10 Tom Tromey <tromey@adacore.com>
4244
4245 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4246 VEC.
4247 (struct arm_exidx_entry): New method operator<.
4248 (struct arm_exidx_data) <section_maps>: Change type.
4249 (arm_exidx_data_free): Remove.
4250 (arm_exidx_data_key): Change type. Move lower.
4251 (arm_exidx_new_objfile): Update.
4252 (arm_compare_exidx_entries): Remove.
4253 (arm_find_exidx_entry, _initialize_arm_tdep)
4254
48c66e1d
TT
42552019-07-10 Tom Tromey <tromey@adacore.com>
4256
4257 * solib-spu.c (ocl_program_data_key): Change type.
4258 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4259 Update.
4260
a269fbf1
TT
42612019-07-10 Tom Tromey <tromey@adacore.com>
4262
4263 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4264 (struct solib_aix_inferior_data) <library_list>: Change type.
4265 (solib_aix_inferior_data_handle): Change type.
4266 (get_solib_aix_inferior_data): Update.
4267 (solib_aix_free_library_list): Remove.
4268 (library_list_start_library): Update.
4269 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4270 return type.
4271 (solib_aix_get_library_list)
4272 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4273 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4274
c294730c
TT
42752019-07-10 Tom Tromey <tromey@adacore.com>
4276
4277 * solib-dsbt.c (struct dsbt_info): Add initializers.
4278 (solib_dsbt_pspace_data): Change type.
4279 (dsbt_pspace_data_cleanup): Remove.
4280 (get_dsbt_info, _initialize_dsbt_solib): Update.
4281
9d52077d
TT
42822019-07-10 Tom Tromey <tromey@adacore.com>
4283
4284 * spu-tdep.c (spu_overlay_data): Change type.
4285 (spu_get_overlay_table, spu_overlay_new_objfile)
4286 (_initialize_spu_tdep): Update.
4287
22a20dca
TT
42882019-07-10 Tom Tromey <tromey@adacore.com>
4289
4290 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4291 destructor.
4292 (dbx_objfile_data_key): Change type and declare later.
4293 (DBX_SYMFILE_INFO): Rewrite.
4294 * dbxread.c (dbx_objfile_data_key): Change type.
4295 (dbx_symfile_init): Update.
4296 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4297 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4298 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4299
cb60f420
TT
43002019-07-10 Tom Tromey <tromey@adacore.com>
4301
4302 * jit.c (jit_program_space_key): Change type. Move lower.
4303 (get_jit_program_space_data): Update.
4304 (jit_program_space_data_cleanup): Remove.
4305 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4306 Update.
4307 (struct jit_program_space_data): Add initializers.
4308
51df2ae3
TT
43092019-07-10 Tom Tromey <tromey@adacore.com>
4310
4311 * solib-darwin.c (struct darwin_info): Add initializers.
4312 (solib_darwin_pspace_data): Change type.
4313 (darwin_pspace_data_cleanup): Remove.
4314 (get_darwin_info, _initialize_darwin_solib): Update.
4315
18101a35
TT
43162019-07-10 Tom Tromey <tromey@adacore.com>
4317
4318 * remote-sim.c (struct sim_inferior_data): Add initializers,
4319 constructor, and destructor.
4320 (sim_inferior_data_key): Change type. Move lower.
4321 (check_for_duplicate_sim_descriptor): Update.
4322 (get_sim_inferior_data): Use new. Update.
4323 (~sim_inferior_data_cleanup): Rename from
4324 sim_inferior_data_cleanup. Simplify.
4325 (gdbsim_close_inferior, simulator_command)
4326 (sim_command_completer, _initialize_remote_sim): Update.
4327 (next_pid, INITIAL_PID): Move earlier.
4328
05b08ac1
TT
43292019-07-10 Tom Tromey <tromey@adacore.com>
4330
4331 * python/python-internal.h (create_thread_object): Return
4332 gdbpy_ref.
4333 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4334 * python/py-inferior.c (struct threadlist_entry): Add
4335 constructor.
4336 <thread_obj>: Now a gdbpy_ref.
4337 (thread_to_thread_object): Update.
4338 (add_thread_object): Use new.
4339 (delete_thread_object): Use delete.
4340 (infpy_threads): Update.
4341 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4342 GIL.
4343
32372d80
TT
43442019-07-10 Tom Tromey <tromey@adacore.com>
4345
4346 * valops.c (value_cast): Specialize error message for Ada.
4347
5c458ae8
SM
43482019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4349
4350 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4351
4c462cb0
SM
43522019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4353
4354 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4355 bpstat_should_step): Return bool, adjust comments.
4356 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4357 bpstat_should_step): Likewise.
4358
89abbcc2
AH
43592019-07-10 Alan Hayward <alan.hayward@arm.com>
4360
4361 * features/Makefile: Use feature target descriptions for Arm.
4362 * features/arm/arm-core.c: Generate new file.
4363 * features/arm/arm-fpa.c: Likewise.
4364 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4365 * features/arm/arm-m-profile.c: Likewise.
4366 * features/arm/arm-vfpv2.c: Likewise.
4367 * features/arm/arm-vfpv3.c: Likewise.
4368 * features/arm/xscale-iwmmxt.c: Likewise.
4369 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4370
166a82be
AH
43712019-07-10 Alan Hayward <alan.hayward@arm.com>
4372
4373 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4374 ptrace earlier.
4375
9fb4c7e9
AH
43762019-07-10 Alan Hayward <alan.hayward@arm.com>
4377
4378 * features/aarch64-pauth.c: Regenerate.
4379
e2d0f980
SM
43802019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4383 bool.
4384 (bpstat_what): Use false instead of 0.
4385
a38118e5
PA
43862019-07-09 Pedro Alves <palves@redhat.com>
4387
4388 * break-catch-throw.c (is_exception_catchpoint): New.
4389 * breakpoint.c (print_one_breakpoint_location): New parameter
4390 'raw_loc'. Handle it. Use
4391 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4392 looking at the breakpoint's type.
4393 (print_one_breakpoint): If handling "maint info breakpoints", also
4394 print locations of exception catchpoints.
4395 * breakpoint.h (is_exception_catchpoint): Declare.
4396
cb1e4e32
PA
43972019-07-09 Pedro Alves <palves@redhat.com>
4398
4399 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4400 "addr" field.
4401 (allocate_location_exception_catchpoint): New.
4402 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4403 (initialize_throw_catchpoint_ops): Install
4404 allocate_location_exception_catchpoint as allocate_location
4405 method.
4406 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4407 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4408 bp_loc_other.
4409 (breakpoint_address_is_meaningful): Delete.
4410 (bl_address_is_meaningful): New.
4411 (breakpoint_locations_match): Adjust comment.
4412 (bp_location_from_bp_type): New, factored out of...
4413 (bp_location::bp_location(breakpoint *)): ... this.
4414 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4415 factored out of...
4416 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4417 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4418 breakpoint_address_is_meaningful.
4419 (bp_locations_compare): Adjust comment.
4420 (update_global_location_list): Use bl_address_is_meaningful
4421 instead of breakpoint_address_is_meaningful.
4422 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4423 explicit.
4424 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4425 * python/py-breakpoint.c (bppy_get_location): No longer check
4426 whether location is null.
4427
b58a68fe
PA
44282019-07-09 Pedro Alves <palves@redhat.com>
4429
4430 PR c++/15468
4431 * breakpoint.c (print_one_breakpoint_location): Remove
4432 single-location assert.
4433
268a13a5
TT
44342019-07-09 Tom Tromey <tom@tromey.com>
4435
4436 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4437 * configure: Rebuild.
4438 * configure.ac: Change common to gdbsupport.
4439 * gdbsupport: Rename from common.
4440 * acinclude.m4: Change common to gdbsupport.
4441 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4442 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4443 gdbsupport.
4444 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4445 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4446 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4447 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4448 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4449 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4450 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4451 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4452 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4453 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4454 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4455 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4456 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4457 coff-pe-read.c, command.h, compile/compile-c-support.c,
4458 compile/compile-c.h, compile/compile-cplus-symbols.c,
4459 compile/compile-cplus-types.c, compile/compile-cplus.h,
4460 compile/compile-loc2c.c, compile/compile.c, completer.c,
4461 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4462 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4463 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4464 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4465 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4466 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4467 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4468 features/aarch64-core.c, features/aarch64-fpu.c,
4469 features/aarch64-pauth.c, features/aarch64-sve.c,
4470 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4471 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4472 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4473 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4474 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4475 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4476 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4477 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4478 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4479 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4480 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4481 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4482 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4483 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4484 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4485 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4486 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4487 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4488 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4489 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4490 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4491 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4492 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4493 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4494 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4495 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4496 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4497 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4498 minsyms.c, mips-linux-tdep.c, namespace.h,
4499 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4500 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4501 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4502 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4503 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4504 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4505 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4506 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4507 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4508 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4509 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4510 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4511 procfs.c, producer.c, progspace.h, psymtab.h,
4512 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4513 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4514 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4515 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4516 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4517 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4518 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4519 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4520 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4521 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4522 target-memory.c, target.c, target.h, target/waitstatus.c,
4523 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4524 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4525 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4526 unittests/array-view-selftests.c,
4527 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4528 unittests/common-utils-selftests.c,
4529 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4530 unittests/format_pieces-selftests.c,
4531 unittests/function-view-selftests.c,
4532 unittests/lookup_name_info-selftests.c,
4533 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4534 unittests/mkdir-recursive-selftests.c,
4535 unittests/observable-selftests.c,
4536 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4537 unittests/parse-connection-spec-selftests.c,
4538 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4539 unittests/scoped_fd-selftests.c,
4540 unittests/scoped_mmap-selftests.c,
4541 unittests/scoped_restore-selftests.c,
4542 unittests/string_view-selftests.c, unittests/style-selftests.c,
4543 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4544 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4545 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4546 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4547 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4548 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4549
5b0e2db4
AB
45502019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4553 bool value.
4554 (decode_digits_ordinary): Set explicit_line field in sal.
4555 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4556 symtab_and_line that was set on an explicit line number in
4557 assembler code. Do always update the recorded symtab and line if
4558 we do skip the prologue.
4559
0ba852ab
AB
45602019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * breakpoint.c (set_breakpoint_location_function): Remove
4563 explicit_loc parameter.
4564 (momentary_breakpoint_from_master): Update call to
4565 set_breakpoint_location_function.
4566 (add_location_to_breakpoint): Likewise.
4567
b3a7d171
AB
45682019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4571 required features based on default bfd type when no specific bfd
4572 is present.
4573
1f6f6e21
PW
45742019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4575
4576 * NEWS: Mention that GDB printf and eval commands can now print
4577 C-style and Ada-style convenience var strings without
4578 calling the inferior.
4579 * printcmd.c (printf_c_string): Locally print GDB internal var
4580 instead of transiting via the inferior.
4581 (printf_wide_c_string): Likewise.
4582
45832019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4584
5862c886 4585 PR breakpoints/25011
ea142fbf
AH
4586 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4587
0598af48
TT
45882019-07-04 Tom Tromey <tom@tromey.com>
4589
4590 PR tui/24724:
4591 * tui/tui-winsource.c (tui_clear_source_content): Update.
4592 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4593 (tui_update_breakpoint_info): Update.
4594 (tui_set_exec_info_content): Update.
4595 * tui/tui-source.c (tui_set_source_content_nil): Update.
4596 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4597 has_break.
4598 * tui/tui-data.h (enum tui_bp_flag): New.
4599 (tui_bp_flags): New enum flags type.
4600 (struct tui_source_element) <break_mode>: Change type. Rename
4601 from has_break.
4602 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4603 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4604 constants.
4605 * tui/tui-winsource.h: Fix comment.
4606
350fab54
AH
46072019-07-04 Alan Hayward <alan.hayward@arm.com>
4608
4609 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4610 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4611 (store_fpregs_to_thread)
4612 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4613 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4614 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4615 (IWMMXT_REGS_SIZE): Add define.
4616 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4617 (fetch_vfp_regs, store_vfp_regs)
4618 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4619 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4620
f0452268
AH
46212019-07-04 Alan Hayward <alan.hayward@arm.com>
4622
4623 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4624 defines.
4625 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4626 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4627 (ARM_INT_REGISTER_SIZE): ...to this.
4628 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4629 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4630 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4631 (arm_linux_collect_gregset, supply_nwfpe_register)
4632 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4633 defines.
4634 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4635 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4636 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4637 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4638 (arm_return_in_memory, arm_store_return_value)
4639 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4640 (arm_record_ld_st_multiple): Likewise.
4641 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4642 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4643
e935475c
AH
46442019-07-04 Alan Hayward <alan.hayward@arm.com>
4645
4646 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4647 AARCH64_DISPLACED_MODIFIED_INSNS.
4648 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4649 (aarch64_displaced_step_copy_insn): Likewise.
4650 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4651 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4652 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4653 ARM_DISPLACED_MODIFIED_INSNS.
4654 * arm-tdep.c (arm_gdbarch_init): Likewise.
4655 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4656 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4657 (struct arm_displaced_step_closure): Use
4658 ARM_DISPLACED_MODIFIED_INSNS.
4659
df0bb381
AH
46602019-07-04 Alan Hayward <alan.hayward@arm.com>
4661
4662 * features/Makefile: Remove unused xml files.
4663 * features/aarch64.xml: Remove.
4664 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4665 * features/i386/amd64-avx-avx512.xml: Remove.
4666 * features/i386/amd64-avx-linux.xml: Remove.
4667 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4668 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4669 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4670 * features/i386/amd64-avx-mpx.xml: Remove.
4671 * features/i386/amd64-avx.xml: Remove.
4672 * features/i386/amd64-linux.xml: Remove.
4673 * features/i386/amd64-mpx-linux.xml: Remove.
4674 * features/i386/amd64-mpx.xml: Remove.
4675 * features/i386/amd64.xml: Remove.
4676 * features/i386/i386-avx-avx512-linux.xml: Remove.
4677 * features/i386/i386-avx-avx512.xml: Remove.
4678 * features/i386/i386-avx-linux.xml: Remove.
4679 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4680 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4681 * features/i386/i386-avx-mpx-linux.xml: Remove.
4682 * features/i386/i386-avx-mpx.xml: Remove.
4683 * features/i386/i386-avx.xml: Remove.
4684 * features/i386/i386-linux.xml: Remove.
4685 * features/i386/i386-mmx-linux.xml: Remove.
4686 * features/i386/i386-mmx.xml: Remove.
4687 * features/i386/i386-mpx-linux.xml: Remove.
4688 * features/i386/i386-mpx.xml: Remove.
4689 * features/i386/i386.xml: Remove.
4690 * features/i386/x32-avx-avx512-linux.xml: Remove.
4691 * features/i386/x32-avx-linux.xml: Remove.
4692 * features/i386/x32-linux.xml: Remove.
4693
edd6266a
AH
46942019-07-04 Alan Hayward <alan.hayward@arm.com>
4695
4696 * regformats/aarch64.dat: Remove.
4697 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4698 * regformats/i386/amd64-avx-linux.dat: Remove.
4699 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4700 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4701 * regformats/i386/amd64-linux.dat: Remove.
4702 * regformats/i386/amd64-mpx-linux.dat: Remove.
4703 * regformats/i386/amd64.dat: Remove.
4704 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4705 * regformats/i386/i386-avx-linux.dat: Remove.
4706 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4707 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4708 * regformats/i386/i386-linux.dat: Remove.
4709 * regformats/i386/i386-mmx-linux.dat: Remove.
4710 * regformats/i386/i386-mpx-linux.dat: Remove.
4711 * regformats/i386/i386.dat: Remove.
4712 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4713 * regformats/i386/x32-avx-linux.dat: Remove.
4714 * regformats/i386/x32-linux.dat: Remove.
4715
2b40fda7
AH
47162019-07-04 Alan Hayward <alan.hayward@arm.com>
4717
4718 * aarch64-tdep.c: Remove xml self tests.
4719 * amd64-linux-tdep.c: Likewise.
4720 * amd64-tdep.c: Likewise.
4721 * i386-linux-tdep.c: Likewise.
4722 * i386-tdep.c: Likewise.
4723
5f4ba3e7
PA
47242019-07-03 Pedro Alves <palves@redhat.com>
4725
4726 PR cli/24732
4727 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4728 (pipe_cmd_option_defs): New.
4729 (make_pipe_cmd_options_def_group): New.
4730 (pipe_command): Use gdb::option::process_options.
4731 (pipe_command_completer): New function.
4732 (_initialize_cli_cmds): Install completer for "pipe" command.
4733
3d9be6f5
PA
47342019-07-03 Pedro Alves <palves@redhat.com>
4735
4736 * cli/cli-option.c (union option_value) <string>: New field.
4737 (struct option_def_and_value): Add ctor, move ctor, dtor and
4738 use DISABLE_COPY_AND_ASSIGN.
4739 (option_def_and_value::clear_value): New.
4740 (parse_option, save_option_value_in_ctx, get_val_type_str)
4741 (add_setshow_cmds_for_options): Handle var_string.
4742 * cli-option.h (union option_def::var_address) <string>: New
4743 field.
4744 (struct string_option_def): New.
4745 * maint-test-options.c (struct test_options_opts): Add default
4746 ctor and use DISABLE_COPY_AND_ASSIGN.
4747 <string_opt>: New field.
4748 (test_options_opts::~test_options_opts): New.
4749 (test_options_opts::dump): Also dump "-string".
4750 (test_options_option_defs): Install "string.
4751
41fc454c
PA
47522019-07-03 Pedro Alves <palves@redhat.com>
4753
4754 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4755 option_value with a null enumeration.
4756 (complete_options): Save the option values in the context.
4757 (save_option_value_in_ctx): New, factored out from ...
4758 (process_options): ... here.
4759 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4760 of the function.
4761 * maint-test-options.c (test_options_opts::dump): New, factored
4762 out from ...
4763 (maintenance_test_options_command_mode): ... here.
4764 (maintenance_test_options_command_completion_result): Delete.
4765 (maintenance_test_options_command_completion_text): Update
4766 comment.
4767 (maintenance_show_test_options_completion_result): Change
4768 prototype. Just print
4769 maintenance_test_options_command_completion_text.
4770 (save_completion_result): New.
4771 (maintenance_test_options_completer_mode): Pass options context to
4772 complete_options, and then save a dump.
4773 (_initialize_maint_test_options): Use add_cmd to install "maint
4774 show test-options-completion-result".
4775
fdbc9870
PA
47762019-07-03 Pedro Alves <palves@redhat.com>
4777
4778 * NEWS (New commands): Mention "with" and "maint with".
4779 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4780 (with_command, with_command_completer): New.
4781 (pipe_command): Adjust to new repeat_previous
4782 interface.
4783 (_initialize_cli_cmds): Install the "with" command and its "w"
4784 alias.
4785 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4786 declarations.
4787 * cli/cli-setshow.c (parse_cli_var_uinteger)
4788 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4789 argument strings for all var_types.
4790 (get_setshow_command_value_string): New, factored out from ...
4791 (do_show_command): ... this.
4792 * cli/cli-setshow.h: Include <string>.
4793 (get_setshow_command_value_string): Declare.
4794 * command.h (repeat_previous): Now returns const char *. Adjust
4795 comment.
4796 * maint.c: Include "cli/cli-cmds.h".
4797 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4798 (_initialize_maint_cmds): Register the "maintenance with" command.
4799 * top.c (repeat_previous): Move bits from pipe_command here:
4800 Return the saved command line, if any; error out if there's no
4801 command to relaunch.
4802
c6ac8931
PA
48032019-07-03 Pedro Alves <palves@redhat.com>
4804
4805 * NEWS (New commands): Mention "maint set/show test-settings"
4806 instead of "maint test-settings".
4807 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4808 (maintenance_test_settings_set_list): Rename to ...
4809 (maintenance_set_test_settings_list): ... this.
4810 (maintenance_test_settings_show_list): Rename to ...
4811 (maintenance_show_test_settings_list): ... this.
4812 (maintenance_test_settings_cmd): Delete.
4813 (maintenance_test_settings_set_cmd): ...
4814 (maintenance_set_test_settings_cmd): ... this.
4815 (maintenance_test_settings_show_cmd): ...
4816 (maintenance_show_test_settings_cmd): ... this.
4817 (maintenance_test_settings_show_value_cmd):
4818 (maintenance_show_test_settings_value_cmd): ... this.
4819 (_initialize_maint_test_settings): No longer install the "maint
4820 test-settings" prefix command. Rename "maint test-settings set"
4821 to "maint set test-settings", and "maint test-settings show" to
4822 "maint show test-settings". Adjust all subcommands.
4823
d1fcf2fd
PA
48242019-07-03 Pedro Alves <palves@redhat.com>
4825
4826 * maint-test-settings.c: Fix file's intro comment. Replace all
4827 references to "test-options" with references to "test-settings",
4828 in comments.
4829
970f9d09
PA
48302019-07-03 Pedro Alves <palves@redhat.com>
4831
4832 * maint-test-settings.c (maintenance_test_settings_xxx)
4833 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4834 New.
4835 (maintenance_test_settings_enums): Use them.
4836 (maintenance_test_settings_enum): Default to
4837 maintenance_test_settings_xxx.
4838 (_initialize_maint_test_settings): Initialize
4839 MAINTENANCE_TEST_SETTINGS_FILENAME.
4840
f3869b1a
SM
48412019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * breakpoint.h (remove_breakpoints_inf): Change return type to
4844 void, move function documentation here.
4845 * breakpoint.c (remove_breakpoints_inf): Change return type to
4846 void, move function documentation to header.
4847
54d66006
PA
48482019-07-02 Pedro Alves <palves@redhat.com>
4849
4850 * NEWS (Completion improvements): Mention "info threads".
4851 * thread.c (struct info_threads_opts, info_threads_option_defs)
4852 (make_info_threads_options_def_group): New.
4853 (info_threads_command): Use gdb::option::process_options.
4854 (info_threads_command_completer): New.
4855 (_initialize_thread): Use gdb::option::build_help to build the
4856 help text for "info threads".
4857
854f6088
SM
48582019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * defs.h (generic_load): Move from here...
4861 * symfile.h (generic_load): ... to here. Rename name parameter
4862 to args.
4863 * symfile.c (generic_load): Add comment.
4864
54ee4252
TT
48652019-07-01 Tom Tromey <tromey@adacore.com>
4866
4867 * dwarf2read.c
4868 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4869 declaration of without_params. Fix formatting.
4870
65392b3e
TT
48712019-07-01 Tom Tromey <tromey@adacore.com>
4872
4873 * ada-exp.y (find_primitive_type): Update.
4874 * ada-lang.h (ada_lookup_symbol): Update.
4875 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4876 parameter.
4877 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4878
7d7571f0
SDJ
48792019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4880
4881 PR breakpoints/24541
4882 * gdbarch.c: Regenerate.
4883 * gdbarch.h: Regenerate.
4884 * gdbarch.sh: Add 'stap_adjust_register'.
4885 * i386-tdep.c: Include '<unordered_set>'.
4886 (i386_stap_adjust_register): New function.
4887 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4888 * stap-probe.c (stap_parse_register_operand): Call
4889 'gdbarch_stap_adjust_register'.
4890
5af5392a
SDJ
48912019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4892
4893 PR python/24742
4894 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4895 * python/python.c (do_start_initialization): Use 'xmalloc'
4896 instead of 'PyMem_Malloc'.
4897
10d06d82
TT
48982019-06-28 Tom Tromey <tromey@adacore.com>
4899
4900 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4901 for Ada.
4902
1b7f24cd
TT
49032019-06-27 Tom Tromey <tromey@adacore.com>
4904
4905 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4906 objfile_key.
4907 (arm_find_mapping_symbol, arm_record_special_symbol)
4908 (_initialize_arm_tdep): Update.
4909 (arm_objfile_data_free): Remove.
4910
3d507ff2
TT
49112019-06-27 Tom Tromey <tromey@adacore.com>
4912
4913 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4914 to cp_print_static_field.
4915
762c164d
TT
49162019-06-26 Tom Tromey <tromey@adacore.com>
4917
4918 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4919 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4920 declare.
4921
aa2f9bcf
AH
49222019-06-26 Alan Hayward <alan.hayward@arm.com>
4923
4924 * features/aarch64-core.c (create_feature_aarch64_core):
4925 Regenerate.
4926 * features/aarch64-core.xml: Add cpsr flags.
4927
3426ae57
AH
49282019-06-26 Alan Hayward <alan.hayward@arm.com>
4929
4930 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4931 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4932
4838e44c
SM
49332019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4936 field.
4937 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4938 use.
4939 (arm_record_special_symbol): Don't insert new symbol in sorted
4940 position, push it at the end.
4941
54cc7474
SM
49422019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4943
4944 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4945 (arm_mapping_symbol_s): Remove.
4946 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4947 (arm_mapping_symbol_vec): New typedef.
4948 (struct arm_per_objfile): Add constructor.
4949 <section_maps>: Change type to
4950 std::unique_ptr<arm_mapping_symbol_vec[]>.
4951 (arm_compare_mapping_symbols): Remove.
4952 (arm_find_mapping_symbol): Adjust to section_maps type change.
4953 (arm_objfile_data_free): Call delete on arm_per_objfile.
4954 (arm_record_special_symbol): Adjust to section_maps type change.
4955 Allocate arm_per_objfile with new.
4956
b65b566c
PW
49572019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4958
4959 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4960 with the command prefix.
4961
c2fc64f5
TT
49622019-06-25 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4965 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4966
fb54fa76
TT
49672019-06-25 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4970 type.
4971 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4972 protected.
4973
f7952c57
TT
49742019-06-25 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-winsource.c
4977 (tui_source_window_base::set_is_exec_point_at): Add check against
4978 LOA_ADDRESS.
4979
17568d78
TT
49802019-06-25 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-source.c (tui_set_source_content): Don't check before
4983 xfree.
4984 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4985
53e7cdba
TT
49862019-06-25 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-winsource.h (tui_update_source_window_as_is)
4989 (tui_alloc_source_buffer, tui_line_is_displayed)
4990 (tui_addr_is_displayed): Change type of win_info.
4991 * tui/tui-winsource.c (tui_update_source_window_as_is)
4992 (tui_clear_source_content, tui_show_source_line)
4993 (tui_show_source_content, tui_source_window_base::refill)
4994 (tui_source_window_base::set_is_exec_point_at)
4995 (tui_source_window_base::set_is_exec_point_at)
4996 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4997 (tui_alloc_source_buffer, tui_line_is_displayed)
4998 (tui_addr_is_displayed): Change type of win_info. Update.
4999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5000 (tui_source_window_base::do_make_visible_with_new_height):
5001 Update.
5002 * tui/tui-source.c (tui_set_source_content)
5003 (tui_set_source_content_nil)
5004 (tui_source_window::do_scroll_vertical): Update.
5005 * tui/tui-layout.c (show_layout): Update.
5006 * tui/tui-disasm.c (tui_set_disassem_content)
5007 (tui_disasm_window::do_scroll_vertical): Update.
5008 * tui/tui-data.h (tui_win_content): Remove.
5009 (struct tui_gen_win_info) <content, content_size>: Remove.
5010 (struct tui_source_element): Add initializers and destructor.
5011 (union tui_which_element, struct tui_win_element): Remove.
5012 (struct tui_source_window_base) <content>: New field.
5013 (struct tui_data_window): Remove destructor.
5014 (tui_alloc_content, tui_free_win_content)
5015 (tui_free_all_source_wins_content): Don't declare.
5016 * tui/tui-data.c (tui_initialize_static_data): Update.
5017 (init_content_element, tui_alloc_content): Remove.
5018 (~tui_gen_win_info): Update.
5019 (~tui_data_window, tui_free_all_source_wins_content)
5020 (tui_free_win_content, free_content, free_content_elements):
5021 Remove.
5022
7908abbf
TT
50232019-06-25 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-winsource.h (tui_clear_source_content)
5026 (tui_erase_source_content, tui_show_source_content): Change type
5027 of win_info.
5028 * tui/tui-winsource.c (tui_clear_source_content)
5029 (tui_erase_source_content, tui_show_source_content): Change type
5030 of win_info.
5031 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5032 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5033 win_info.
5034 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5035 win_info.
5036 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5037
02c28df0
TT
50382019-06-25 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-winsource.c (tui_clear_source_content)
5041 (tui_source_window_base::set_is_exec_point_at): Update.
5042 * tui/tui-source.c (tui_set_source_content_nil): Update.
5043 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5044 a bool.
5045 * tui/tui-data.c (init_content_element): Update.
5046
6658b1bf
TT
50472019-06-25 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5050 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5051 * tui/tui-layout.c (init_and_make_win): Update.
5052 * tui/tui.h (enum tui_win_type): Update.
5053 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5054 tui_win_is_auxillary.
5055 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5056 tui_win_is_auxillary.
5057
21e1c91e
TT
50582019-06-25 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5061 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5062 (tui_delete_data_content_windows, tui_display_all_data)
5063 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5064 Update.
5065 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5066 * tui/tui-regs.c (tui_last_regs_line_no)
5067 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5068 (tui_show_registers): Update.
5069 (tui_show_register_group): Return void. Update.
5070 (tui_display_registers_from, tui_display_reg_element_at_line)
5071 (tui_display_registers_from_line, tui_check_register_values):
5072 Update.
5073 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5074 member.
5075 (struct tui_data_window) <regs_content>: Now a std::vector.
5076 <regs_content_count>: Remove.
5077 (tui_add_content_elements, tui_free_data_content): Don't declare.
5078 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5079 (init_content_element): Remove DATA_WIN case. Add assert.
5080 (tui_add_content_elements): Remove.
5081 (tui_data_window): Update.
5082 (tui_free_data_content): Remove.
5083 (free_content_elements): Remove DATA_WIN case.
5084
115ac53b
TT
50852019-06-25 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-data.c (tui_data_item_window): Update.
5088 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5089 * tui/tui-windata.c (tui_display_all_data)
5090 (tui_display_data_from_line): Update.
5091 (tui_check_data_values): Remove.
5092 * tui/tui-regs.c (tui_show_register_group)
5093 (tui_display_reg_element_at_line): Update.
5094 * tui/tui-hooks.c (tui_register_changed)
5095 (tui_refresh_frame_and_register_information): Call
5096 tui_check_register_values.
5097 * tui/tui-data.h (struct tui_data_window) <data_content,
5098 data_content_count, data_type>: Remove.
5099 (enum tui_data_type): Remove.
5100
5101 * tui/tui-data.c (tui_data_window::clear_detail)
5102 (~tui_data_window): Update.
5103
eaf9738b
TT
51042019-06-25 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5107 declare.
5108 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5109 Rename from tui_first_data_item_displayed. Update.
5110 (tui_data_window::refresh_all)
5111 (tui_data_window::do_scroll_vertical): Update.
5112 * tui/tui-data.h (struct tui_data_window)
5113 <first_data_item_displayed>: Declare new method.
5114
31ca4723
TT
51152019-06-25 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5118 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5119 contents...
5120 (tui_initialize_static_data): ...here.
5121
41bcff7f
TT
51222019-06-25 Tom Tromey <tom@tromey.com>
5123
5124 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5125 (tui_display_registers_from, tui_check_register_values): Update.
5126 (tui_display_register): Remove win_info parameter; update.
5127 (tui_get_register): Change type of parameters.
5128 * tui/tui-data.h (struct tui_data_element): Remove.
5129 (union tui_which_element) <data>: Remove.
5130 <data_window>: Change type.
5131 (struct tui_data_item_window): New.
5132 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5133 case. Add assert.
5134 (~tui_data_item_window): New destructor.
5135 (free_content_elements): Remove DATA_ITEM_WIN case.
5136
d2802c33
TT
51372019-06-25 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5140 Remove.
5141
dd835f8b
TT
51422019-06-25 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-data.h (struct tui_command_element): Remove.
5145 (union tui_which_element) <command>: Remove.
5146 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5147 assert.
5148 (free_content_elements): Remove CMD_WIN case.
5149
bd7db367
TT
51502019-06-25 Tom Tromey <tom@tromey.com>
5151
5152 * tui/tui-layout.c (tui_set_layout): Update.
5153 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5154 * tui/tui-data.c (layout_def): Update.
5155
3add462f
TT
51562019-06-25 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5159 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5160 (tui_source_window_base::set_new_height): Update.
5161 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5162 Update.
5163 (tui_set_locator_fullname, tui_set_locator_info)
5164 (tui_show_frame_info): Update.
5165 * tui/tui-source.c (tui_set_source_content)
5166 (tui_source_is_displayed): Update.
5167 * tui/tui-layout.c (show_source_disasm_command, show_data)
5168 (show_source_or_disasm_and_command): Update.
5169 * tui/tui-disasm.c (tui_set_disassem_content)
5170 (tui_get_begin_asm_address): Update.
5171 * tui/tui-data.h (struct tui_locator_element): Remove.
5172 (union tui_which_element) <locator>: Remove.
5173 (struct tui_locator_window): New.
5174 (tui_locator_win_info_ptr): Change return type.
5175 * tui/tui-data.c (_locator): Change type.
5176 (tui_locator_win_info_ptr): Change return type.
5177 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5178 (tui_alloc_content): Add assert.
5179
489e9d8b
TT
51802019-06-25 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.c
5183 (tui_exec_info_window::maybe_allocate_content): New method.
5184 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5185 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5186 (make_source_or_disasm_window): Add cast.
5187 * tui/tui-data.h (union tui_which_element) <simple_string>:
5188 Remove.
5189 (struct tui_source_info): New.
5190 (struct tui_source_window_base) <execution_info>: Change type.
5191 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5192 case, and add assert.
5193 (tui_alloc_content): Add assert.
5194
c3fabb7d
TT
51952019-06-25 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5198 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5199 * tui/tui-data.c (tui_alloc_win_info): Remove.
5200
bbc228ee
TT
52012019-06-25 Tom Tromey <tom@tromey.com>
5202
5203 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5204 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5205 can_highlight.
5206
5fcee43a
TT
52072019-06-25 Tom Tromey <tom@tromey.com>
5208
5209 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5210 make_visible_with_new_height method.
5211 (tui_win_info::make_visible_with_new_height): New method.
5212 (tui_source_window_base::do_make_visible_with_new_height)
5213 (tui_data_window::do_make_visible_with_new_height)
5214 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5215 (make_visible_with_new_height): Remove.
5216 (tui_resize_all, tui_adjust_win_heights): Use
5217 make_visible_with_new_height method.
5218 * tui/tui-data.h (struct tui_win_info)
5219 <do_make_visible_with_new_height, make_visible_with_new_height>:
5220 New methods.
5221 (struct tui_source_window_base, struct tui_data_window)
5222 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5223 methods.
5224
d83f1fe6
TT
52252019-06-25 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5228 method.
5229 (update_tab_width): Call update_tab_width method.
5230 * tui/tui-data.h (struct tui_win_info)
5231 (struct tui_source_window_base) <update_tab_width>: New methods.
5232
17374de4
TT
52332019-06-25 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5236 parameter.
5237 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5238 parameter.
5239 (tui_gen_win_info::make_visible): Update.
5240 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5241 parameter.
5242 * tui/tui-data.h (enum tui_box): New enum.
5243 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5244
f936bca2
TT
52452019-06-25 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5248 init_and_make_win for EXEC_INFO_WIN.
5249 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5250 longer inline.
5251 (struct tui_win_info) <~tui_win_info>: Inline.
5252 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5253 Don't declare.
5254 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5255 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5256 Remove.
5257 (tui_initialize_static_data): Update.
5258 (~tui_gen_win_info): Handle more cleanup here.
5259 (~tui_source_window_base): Delete "execution_info".
5260 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5261
d6ba6a11
TT
52622019-06-25 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-layout.c (make_command_window): Don't set
5265 can_highlight.
5266 (show_source_disasm_command): Call the reset method.
5267 (show_data): Don't set can_highlight. Call the reset method.
5268 (tui_gen_win_info::reset): Rename from init_gen_win_info
5269 (init_and_make_win): Simplify. Return tui_gen_win_info.
5270 (show_source_or_disasm_and_command): Call the reset method.
5271 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5272 (struct tui_cmd_window): Set can_highlight.
5273
48a3bd16
TT
52742019-06-25 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5277 from make_visible.
5278 (tui_make_visible, tui_make_invisible): Rewrite.
5279 (tui_win_info::make_visible): Remove.
5280 (tui_source_window_base::make_visible): Update.
5281 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5282 method. Moved from...
5283 (struct tui_win_info) <make_visible>: ...here.
5284
c3bd716f
TT
52852019-06-25 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui-winsource.c
5288 (tui_source_window_base::do_scroll_horizontal): Remove direction
5289 parameter.
5290 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5291 direction parameter.
5292 * tui/tui-win.c (tui_win_info::forward_scroll)
5293 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5294 (tui_win_info::right_scroll): Update.
5295 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5296 direction parameter.
5297 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5298 direction parameter.
5299 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5300 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5301 Remove direction parameter.
5302 (struct tui_source_window_base, struct tui_source_window)
5303 (struct tui_disasm_window, struct tui_data_window)
5304 (struct tui_cmd_window): Update.
5305
21c32dca
TT
53062019-06-25 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-winsource.h (tui_set_exec_info_content)
5309 (tui_show_exec_info_content, tui_erase_exec_info_content)
5310 (tui_clear_exec_info_content, tui_update_exec_info): Change
5311 argument to tui_source_window_base.
5312 * tui/tui-winsource.c (tui_set_exec_info_content)
5313 (tui_show_exec_info_content, tui_erase_exec_info_content)
5314 (tui_clear_exec_info_content, tui_update_exec_info): Change
5315 argument to tui_source_window_base.
5316
73fbdc65
TT
53172019-06-25 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5320 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5321
33325343
TT
53222019-06-25 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5325 check.
5326
29d2c474
TT
53272019-06-25 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5330 type to void.
5331 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5332 type to void.
5333 * tui/tui-source.c (tui_set_source_content): Update.
5334 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5335
152f3f4b
TT
53362019-06-25 Tom Tromey <tom@tromey.com>
5337
5338 * tui/tui-win.c (window_name_completer, tui_set_focus)
5339 (tui_all_windows_info): Use name method.
5340 * tui/tui-data.h (struct tui_gen_win_info)
5341 (struct tui_source_window, struct tui_disasm_window)
5342 (struct tui_data_window, struct tui_cmd_window) <name>: New
5343 method.
5344 (tui_win_name): Don't declare.
5345 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5346 (tui_win_name): Remove.
5347
be4da588
TT
53482019-06-25 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-winsource.h (tui_update_source_window)
5351 (tui_update_source_window_as_is): Change parameter type.
5352 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5353 to be a tui_source_window_base.
5354 (tui_update_source_window_as_is): Likewise.
5355 * tui/tui-win.c (make_visible_with_new_height): Update.
5356
5b81daba
TT
53572019-06-25 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui-winsource.c (tui_erase_source_content)
5360 (tui_show_source_content, tui_show_exec_info_content)
5361 (tui_erase_exec_info_content): Use refresh_window method.
5362 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5363 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5364 from tui_refresh_win.
5365 (tui_data_window::refresh_window): New method.
5366 (tui_win_info::refresh, tui_source_window_base::refresh)
5367 (tui_refresh_all): Use refresh_window method.
5368 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5369 method.
5370 * tui/tui-regs.c (tui_display_register): Call refresh_window
5371 method.
5372 * tui/tui-layout.c (show_source_disasm_command)
5373 (show_source_or_disasm_and_command): Call refresh_window method.
5374 * tui/tui-data.h (struct tui_gen_win_info)
5375 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5376 New method.
5377
cb2ce893
TT
53782019-06-25 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui.c (tui_rl_other_window, tui_enable)
5381 (tui_is_window_visible, tui_get_command_dimension): Update.
5382 * tui/tui-winsource.c (tui_update_source_window_as_is)
5383 (tui_clear_source_content, tui_erase_source_content)
5384 (tui_show_source_line, tui_source_window_base::refill)
5385 (tui_source_window_base::do_scroll_horizontal)
5386 (tui_source_window_base::set_is_exec_point_at)
5387 (tui_update_breakpoint_info, tui_set_exec_info_content)
5388 (tui_alloc_source_buffer, tui_line_is_displayed)
5389 (tui_addr_is_displayed): Update.
5390 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5391 (tui_check_and_display_highlight_if_needed)
5392 (tui_win_info::make_visible, tui_win_info::refresh)
5393 (tui_refresh_all): Update.
5394 * tui/tui-windata.c (tui_first_data_item_displayed)
5395 (tui_delete_data_content_windows, tui_erase_data_content)
5396 (tui_display_all_data, tui_data_window::refresh_all)
5397 (tui_check_data_values): Update.
5398 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5399 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5400 (tui_win_info::backward_scroll, tui_refresh_all_win)
5401 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5402 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5403 (tui_source_window_base::set_new_height)
5404 (tui_data_window::set_new_height)
5405 (make_invisible_and_set_new_height)
5406 (make_visible_with_new_height, new_height_ok)
5407 (parse_scrolling_args): Update.
5408 * tui/tui-stack.c (tui_show_frame_info): Update.
5409 * tui/tui-source.c (tui_set_source_content)
5410 (tui_set_source_content_nil, tui_source_is_displayed)
5411 (tui_source_window::do_scroll_vertical): Update.
5412 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5413 (tui_display_registers_from, tui_display_reg_element_at_line)
5414 (tui_check_register_values, tui_reg_command): Update.
5415 * tui/tui-layout.c (tui_default_win_height)
5416 (show_source_disasm_command, show_data, init_and_make_win)
5417 (show_source_or_disasm_and_command): Update.
5418 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5419 (tui_redisplay_readline, tui_mld_flush)
5420 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5421 (tui_getc): Update.
5422 * tui/tui-disasm.c (tui_set_disassem_content)
5423 (tui_disasm_window::do_scroll_vertical): Update.
5424 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5425 Now virtual.
5426 (struct tui_win_info): Derive from tui_gen_win_info.
5427 <~tui_win_info>: Mark as override.
5428 <generic>: Remove member.
5429 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5430 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5431 (~tui_data_window, ~tui_win_info)
5432 (tui_free_all_source_wins_content): Update.
5433 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5434
ab313b35
TT
54352019-06-25 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-layout.c (init_and_make_win): Use new.
5438 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5439 destructor, initializers.
5440 (tui_alloc_generic_win_info): Don't declare.
5441 * tui/tui-data.c (_locator): Add argument to constructor.
5442 (source_win, disasm_win): New globals.
5443 (exec_info): Remove.
5444 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5445 Update.
5446 (tui_alloc_generic_win_info): Remove.
5447 (init_content_element): Use new.
5448 (tui_win_info::tui_win_info): Update.
5449 (free_content_elements) <case DATA_WIN>: Use delete.
5450
dc2c33e4
TT
54512019-06-25 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5454 * tui/tui-windata.c (tui_first_data_item_displayed)
5455 (tui_delete_data_content_windows): Update.
5456 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5457 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5458 (tui_display_registers_from, tui_check_register_values): Update.
5459 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5460 pointer.
5461 * tui/tui-data.c (init_content_element): Update. Allocate the new
5462 window.
5463 (tui_free_data_content): Update.
5464 (free_content_elements) <case DATA_WIN>: Free the window.
5465
214a5cbe
TT
54662019-06-25 Tom Tromey <tom@tromey.com>
5467
5468 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5469 Update.
5470 * tui/tui-layout.c (make_command_window)
5471 (show_source_disasm_command, show_data, init_and_make_win)
5472 (show_source_or_disasm_and_command): Update.
5473 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5474 method.
5475 <can_highight, is_highlighted>: Now bool.
5476 (tui_set_win_highlight): Don't declare.
5477 * tui/tui-data.c (tui_set_win_highlight): Remove.
5478
8e2daf15
TT
54792019-06-25 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-wingeneral.c (make_visible): Remove check of window
5482 type.
5483
8903bd8a
TT
54842019-06-25 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui-win.c (tui_win_info::max_height)
5487 (tui_cmd_window::max_height): New methods.
5488 (new_height_ok): Call max_height.
5489 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5490 <max_height>: New method.
5491
3f02ce1e
TT
54922019-06-25 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-win.c (tui_source_window_base::set_new_height)
5495 (tui_data_window::set_new_height): New methods.
5496 (make_invisible_and_set_new_height): Call set_new_height method.
5497 * tui/tui-data.h (struct tui_win_info)
5498 (struct tui_source_window_base, struct tui_data_window)
5499 <set_new_height>: New method.
5500
1825f487
TT
55012019-06-25 Tom Tromey <tom@tromey.com>
5502
5503 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5504 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5505 tui_refresh_data_win.
5506 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5507 method.
5508 (tui_refresh_all_win): Call the refresh_all method.
5509 (tui_set_focus): Likewise.
5510 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5511 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5512 Likewise.
5513
ad54d15b
TT
55142019-06-25 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-winsource.h (tui_refill_source_window)
5517 (tui_set_is_exec_point_at): Don't declare.
5518 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5519 (tui_source_window_base::refill): Rename from
5520 tui_refill_source_window.
5521 (tui_source_window_base::do_scroll_horizontal): Update.
5522 (tui_source_window_base::set_is_exec_point_at): Rename from
5523 tui_set_is_exec_point_at.
5524 (tui_update_all_breakpoint_info): Update.
5525 * tui/tui-stack.c (tui_show_frame_info): Update.
5526 * tui/tui-layout.c (show_data): Add cast.
5527 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5528 * tui/tui-data.h (struct tui_source_window_base) <refill,
5529 set_is_exec_point_at>: New methods.
5530 (tui_source_windows, tui_add_to_source_windows): Update types.
5531 (tui_add_to_source_windows): Remove redundant declaration.
5532 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5533 (tui_source_windows): Change return type.
5534 (tui_clear_source_windows_detail): Update.
5535 (tui_add_to_source_windows): Change type of parameter.
5536 (tui_free_all_source_wins_content): Update.
5537
2042b506
TT
55382019-06-25 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-wingeneral.c (tui_win_info::refresh)
5541 (tui_source_window_base::refresh): New methods.
5542 (tui_refresh_all): Call the refresh method.
5543 * tui/tui-data.h (struct tui_win_info)
5544 (struct tui_source_window_base) <refresh>: New method.
5545
56122977
TT
55462019-06-25 Tom Tromey <tom@tromey.com>
5547
5548 * tui/tui.h (tui_is_window_visible): Return bool.
5549 * tui/tui.c (tui_is_window_visible): Return bool.
5550 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5551 (tui_make_visible, tui_make_invisible)
5552 (tui_win_info::make_visible)
5553 (tui_source_window_base::make_visible, make_all_visible)
5554 (tui_make_all_visible, tui_make_all_invisible): Update.
5555 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5556 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5557 bool.
5558 (struct tui_win_info, struct tui_source_window_base)
5559 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5560 * tui/tui-data.c (tui_init_generic_part): Update.
5561
cda37efb
TT
55622019-06-25 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5565 (tui_source_window_base::make_visible): New methods.
5566 (make_all_visible): Make method call.
5567 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5568 (struct tui_source_window_base, struct tui_cmd_window): Override
5569 make_visible.
5570 (tui_win_is_source_type): Don't declare.
5571 * tui/tui-data.c (tui_win_is_source_type): Remove.
5572
6a0ee02c
TT
55732019-06-25 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5576 NULL check.
5577
63901aec
TT
55782019-06-25 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5581 Inline constructor. Add initializers for members.
5582 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5583 constructors; now inline in class.
5584
ceb13a13
TT
55852019-06-25 Tom Tromey <tom@tromey.com>
5586
5587 * tui/tui-regs.c (tui_show_registers): Update.
5588 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5589 bool.
5590 * tui/tui-data.c (tui_data_window::clear_detail)
5591 (tui_data_window): Update.
5592
238eb706
TT
55932019-06-25 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-windata.c (tui_display_all_data)
5596 (tui_display_data_from_line, tui_display_data_from)
5597 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5598 Update.
5599 * tui/tui-regs.c (tui_last_regs_line_no)
5600 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5601 (tui_show_registers, tui_show_register_group)
5602 (tui_display_registers_from, tui_display_reg_element_at_line)
5603 (tui_display_registers_from_line, tui_check_register_values)
5604 (tui_reg_next, tui_reg_prev): Update.
5605 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5606 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5607 tui_data_window.
5608 (struct tui_win_info) <detail>: Remove. Add new fields from
5609 tui_data_info.
5610 (TUI_DATA_WIN): Add cast.
5611 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5612 (~tui_data_window): Simplify.
5613
81491aa0
TT
56142019-06-25 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-layout.c (show_source_disasm_command)
5617 (show_source_or_disasm_and_command): Update.
5618 * tui/tui-io.c (update_cmdwin_start_line)
5619 (tui_redisplay_readline): Update.
5620 * tui/tui-data.h (struct tui_command_info): Remove.
5621 (struct tui_win_info) <detail>: Remove command_info member.
5622 (struct tui_data_window) <start_line>: New member, from
5623 tui_command_info.
5624 (TUI_CMD_WIN): Add casts.
5625
e6e41501
TT
56262019-06-25 Tom Tromey <tom@tromey.com>
5627
5628 * tui/tui-winsource.c (tui_update_source_window)
5629 (tui_refill_source_window)
5630 (tui_source_window_base::do_scroll_horizontal)
5631 (tui_update_breakpoint_info, tui_set_exec_info_content)
5632 (tui_show_exec_info_content, tui_erase_exec_info_content)
5633 (tui_clear_exec_info_content): Update.
5634 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5635 Update.
5636 * tui/tui-win.c (make_invisible_and_set_new_height)
5637 (make_visible_with_new_height): Update.
5638 * tui/tui-source.c (tui_set_source_content)
5639 (tui_show_symtab_source): Update.
5640 * tui/tui-layout.c (extract_display_start_addr)
5641 (show_source_disasm_command, show_data)
5642 (make_source_or_disasm_window)
5643 (show_source_or_disasm_and_command): Update.
5644 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5645 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5646 "gdbarch".
5647 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5648 to tui_source_window_base.
5649 (struct tui_win_info) <detail>: Remove source_info member.
5650 (struct tui_source_window_base) <has_locator>: Inline.
5651 Move contents from tui_source_info; rename has_locator member to
5652 m_has_locator.
5653 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5654 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5655 header file.
5656 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5657 Simplify.
5658 (tui_free_all_source_wins_content): Cast to
5659 tui_source_window_base.
5660
44f0e208
TT
56612019-06-25 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-win.c (make_invisible_and_set_new_height)
5664 (make_visible_with_new_height): Call has_locator method.
5665 * tui/tui-layout.c (show_source_disasm_command, show_data)
5666 (show_source_or_disasm_and_command): Update for bool change.
5667 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5668 (tui_win_info) <has_locator>: New method.
5669 (struct tui_source_window_base) <has_locator>: New method.
5670 (tui_win_has_locator): Don't declare.
5671 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5672 from tui_win_has_locator.
5673 (tui_source_window_base): Use false, not FALSE.
5674
7778b912
TT
56752019-06-25 Tom Tromey <tom@tromey.com>
5676
5677 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5678 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5679 clear_detail method directly.
5680 (tui_clear_win_detail): Remove.
5681
f83d391c
TT
56822019-06-25 Tom Tromey <tom@tromey.com>
5683
5684 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5685 "this", not TUI_DISASM_WIN.
5686
13446e05
TT
56872019-06-25 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5690 declare.
5691 * tui/tui-winsource.c
5692 (tui_source_window_base::do_scroll_horizontal): Rename from
5693 tui_horizontal_source_scroll.
5694 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5695 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5696 from tui_vertical_data_scroll.
5697 * tui/tui-win.h (tui_scroll): Don't declare.
5698 * tui/tui-win.c (tui_win_info::forward_scroll)
5699 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5700 (tui_win_info::right_scroll): Rename and update.
5701 (tui_scroll_forward_command, tui_scroll_backward_command)
5702 (tui_scroll_left_command, tui_scroll_right_command): Update.
5703 (tui_scroll): Remove.
5704 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5705 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5706 from tui_vertical_source_scroll.
5707 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5708 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5709 from tui_vertical_disassem_scroll.
5710 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5711 do_scroll_horizontal>: New methods.
5712 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5713 Likewise.
5714 (struct tui_source_window_base): Add do_scroll_horizontal.
5715 (struct tui_source_window, struct tui_disasm_window): Add
5716 do_scroll_vertical.
5717 (struct tui_data_window, struct tui_cmd_window): Add
5718 do_scroll_horizontal and do_scroll_vertical.
5719 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5720
5cf82909
TT
57212019-06-25 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-data.h (struct tui_source_window_base): New struct.
5724 (struct tui_source_window): Derive from tui_source_window_base.
5725 (struct tui_disasm_window): New struct.
5726 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5727 from tui_source_window::clear_detail.
5728 (tui_source_window_base): Rename from tui_source_window.
5729 (~tui_source_window_base): Rename from ~tui_source_window.
5730 (tui_alloc_win_info): Create a tui_disasm_window.
5731
ee1d42d6
TT
57322019-06-25 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-data.h (struct tui_source_window)
5735 (struct tui_data_window): Declare destructors.
5736 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5737 destructors.
5738 (tui_win_info): Simplify.
5739
b4eb2452
TT
57402019-06-25 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-winsource.c (tui_display_main)
5743 (tui_update_source_windows_with_addr)
5744 (tui_update_all_breakpoint_info): Update.
5745 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5746 (new_height_ok, parse_scrolling_args): Update.
5747 * tui/tui-stack.c (tui_show_frame_info): Update.
5748 * tui/tui-data.h (struct tui_list): Remove.
5749 (tui_source_windows): Return a reference to a std::vector.
5750 * tui/tui-data.c (source_windows): Now a std::vector.
5751 (tui_source_windows): Change return type.
5752 (tui_clear_source_windows): Rewrite.
5753 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5754 (tui_free_all_source_wins_content): Rewrite.
5755
8761a91b
TT
57562019-06-25 Tom Tromey <tom@tromey.com>
5757
5758 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5759 (struct tui_data_window, struct tui_cmd_window): Declare
5760 clear_detail method.
5761 * tui/tui-data.c (tui_source_window::clear_detail)
5762 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5763 methods.
5764 (tui_clear_win_detail): Simplify.
5765
0ed69eda
TT
57662019-06-25 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-layout.c (make_source_window, make_disasm_window)
5769 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5770 Return the new window.
5771 (show_source_disasm_command, show_data)
5772 (show_source_or_disasm_and_command): Update.
5773
82432e10
TT
57742019-06-25 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5777 parameter. Return the new window.
5778 (show_source_disasm_command): Update and remove NULL check.
5779 (show_source_or_disasm_and_command): Update.
5780
ec328aa5
TT
57812019-06-25 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5784
33b906ab
TT
57852019-06-25 Tom Tromey <tom@tromey.com>
5786
5787 * tui/tui-data.h (struct tui_win_info): Make constructor
5788 protected. Make destructor virtual. Add initializers.
5789 (tui_source_window, tui_data_window, tui_cmd_window): New
5790 classes.
5791 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5792 constructor. Add "type" parameter.
5793 (tui_source_window, tui_data_window, tui_cmd_window): New
5794 constructors.
5795 (tui_alloc_win_info): Instantiate the appropriate subclass.
5796
e7e11af4
TT
57972019-06-25 Tom Tromey <tom@tromey.com>
5798
5799 * tui/tui-win.c (tui_resize_all): Use delete.
5800 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5801 destructor.
5802 (tui_free_window): Don't declare.
5803 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5804 Update.
5805
6792b55e
TT
58062019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-data.h (struct tui_win_info): Add constructor.
5809 * tui/tui-data.c (tui_alloc_win_info): Use new.
5810 (tui_free_window): Use delete.
5811
f95675e1
TT
58122019-06-22 Tom Tromey <tom@tromey.com>
5813
5814 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5815 declare.
5816 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5817
5bff081c
TT
58182019-06-22 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5821 declare.
5822 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5823
47e3f474
TV
58242019-06-22 Tom de Vries <tdevries@suse.de>
5825
5826 * dwarf2read.c (create_addrmap_from_aranges)
5827 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5828 instead of '%zu'.
5829
fd5866f6
SM
58302019-06-21 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * dwarf2read.h (dwarf2_section_info_def): Remove.
5833 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5834 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5835 std::vector<dwarf2_section_info>.
5836 (struct dwo_file) <~dwo_file>: Remove.
5837 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5838 types field.
5839 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5840 (dwarf2_read_debug_names): Likewise.
5841 (create_debug_types_hash_table): Change parameter type to
5842 array_view, adjust code accordingly.
5843 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5844 (partial_die_info::fixup): Likewise.
5845 (determine_prefix): Likewise.
5846 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5847
fb1eb2f9
SM
58482019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5851 gdb_bfd_ref_ptr.
5852 <~dwo_file>: Remove call to gdb_bfd_unref.
5853 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5854 gdb_bfd_ref_ptr::get.
5855
51ac9db5
SM
58562019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5859 type to htab_up.
5860 * dwarf2read.c (struct dwo_file): Initialize fields.
5861 <~dwo_file>: New.
5862 (free_dwo_file): Remove, move content to ~dwo_file.
5863 (struct dwo_file_deleter): Remove.
5864 (dwo_file_up>: Remove custom deleter.
5865 (free_dwo_files): Remove.
5866 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5867 dwo_files.
5868 (process_skeletonless_type_units): Call unique_ptr::get.
5869 (allocate_dwo_file_hash_table): Add deleter to created hash
5870 table. Change return type to htab_up.
5871 (lookup_dwo_file_slot): Don't memset dwo_file, call
5872 unique_ptr::get.
5873 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5874 (create_dwo_unit_in_dwp_v2): Likewise.
5875 (open_and_init_dwo_file): Likewise.
5876 (free_dwo_file_from_slot): Remove.
5877
dc4ccb6f
SM
58782019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * dwarf2read.h (struct dwarf2_section_info) <readin,
5881 is_virtual>: Change type to bool.
5882 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5883 true instead of 1.
5884
e6a1c5cb
TT
58852019-06-19 Tom Tromey <tom@tromey.com>
5886
5887 * tui/tui-data.h (tui_init_content_element): Don't declare.
5888
6f6ffbeb
TT
58892019-06-19 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-data.h (tui_init_win_info): Don't declare.
5892
f23f598e
TV
58932019-06-19 Tom de Vries <tdevries@suse.de>
5894
5895 * dwarf2read.h (abstract_to_concrete): Change type to
5896 std::unordered_map<sect_offset, std::vector<sect_offset>,
5897 gdb::hash_enum<sect_offset>>.
5898
680e1bee
TT
58992019-06-19 Tom Tromey <tromey@adacore.com>
5900
5901 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5902 EVAL_AVOID_SIDE_EFFECTS specially.
5903
dcf37923
TT
59042019-06-19 Tom Tromey <tromey@adacore.com>
5905
5906 * source-cache.c (highlighter): New global.
5907 (source_cache::get_source_lines): Create a highlighter on demand.
5908
494986d5
AB
59092019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * defs.h (deprecated_interactive_hook): Delete declaration.
5912 * interps.c (clear_interpreter_hooks): Remove use of
5913 deprecated_interactive_hook.
5914 * top.c (deprecated_interactive_hook): Delete definition.
5915 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5916
3360b6e7
TV
59172019-06-18 Tom de Vries <tdevries@suse.de>
5918
5919 PR gdb/24515
5920 * dwarf2read.h (abstract_to_concrete): Change type from
5921 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5922 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5923 * dwarf2read.c (read_variable): Update.
5924 (dwarf2_fetch_die_loc_sect_off): Update.
5925
310b3441
TV
59262019-06-17 Tom de Vries <tdevries@suse.de>
5927
5928 PR gdb/24617
5929 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5930 accessing parent[parent_len - 1].
5931
ba9777be
PP
59322019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5933
5934 PR gdb/24364
5935 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5936 call dtrace_process_dof with NULL dof.
5937
2b9f6e89
TV
59382019-06-16 Tom de Vries <tdevries@suse.de>
5939
5940 PR gdb/24445
5941 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5942
431b3ead
TT
59432019-06-16 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5946 (make_all_visible): Use address of member.
5947
d04b44a1
TT
59482019-06-16 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5951 (tui_free_window, free_content, free_content_elements): Remove
5952 unnecessary cast.
5953 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5954 cast.
5955 * tui/tui-regs.c (tui_show_register_group)
5956 (tui_display_registers_from, tui_display_reg_element_at_line):
5957 Remove unnecessary cast.
5958
bf5142e7
AB
59592019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5960
5961 * linux-nat.c (normal_mask): Delete.
5962 (_initialize_linux_nat): Don't initialise normal_mask.
5963
c4973306
SM
59642019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 PR gdb/24445
5967 * dwarf-index-write.h (write_psymtabs_to_index): Add
5968 dwz_basename parameter.
5969 * dwarf-index-write.c (write_gdbindex): Move file writing to
5970 write_gdbindex_1. Change return type void.
5971 (assert_file_size): Move up, remove filename parameter.
5972 (write_gdbindex_1): New function.
5973 (write_debug_names): Change return type to void, call
5974 assert_file_size.
5975 (struct index_wip_file): New struct.
5976 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5977 file logic to index_wip_file. Write index for dwz file if
5978 needed.
5979 (save_gdb_index_command): Pass basename of dwz file, if present.
5980 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5981 build-id of dwz file, if present.
5982 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5983 (dwarf2_get_dwz_file): Likewise.
5984 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5985 (dwarf2_get_dwz_file): Likewise.
5986
395f9c91
TT
59872019-06-16 Tom Tromey <tom@tromey.com>
5988
5989 * coffread.c (process_coff_symbol): Use xstrdup.
5990 * value.c (create_internalvar): Use xstrdup.
5991
cafb3438
TT
59922019-06-16 Tom Tromey <tom@tromey.com>
5993
5994 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5995 * breakpoint.c (stopin_command, stopat_command)
5996 (until_break_command, decode_location_default): Remove unnecessary
5997 cast.
5998 * utils.c (subset_compare): Remove unnecessary cast.
5999 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6000 cast.
6001 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6002 cast.
6003 * infcmd.c (path_command): Remove unnecessary cast.
6004 * coffread.c (decode_type): Remove unnecessary cast.
6005 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6006 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6007 * tui/tui-stack.c (tui_show_locator_content)
6008 (tui_show_frame_info): Remove unnecessary cast.
6009 * tui/tui-win.c (tui_scroll_forward_command)
6010 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6011 (parse_scrolling_args): Remove unnecessary cast.
6012 * tui/tui-data.c (init_win_info, tui_del_window)
6013 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6014 (free_content_elements): Remove unnecessary cast.
6015 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6016 unnecessary cast.
6017 * tui/tui-source.c (tui_set_source_content)
6018 (tui_vertical_source_scroll): Remove unnecessary cast.
6019 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6020 cast.
6021 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6022 * tui/tui-regs.c (tui_display_registers_from)
6023 (tui_display_register): Remove unnecessary cast.
6024 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6025 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6026 (make_visible): Remove unnecessary cast.
6027 * tui/tui-winsource.c (tui_erase_source_content)
6028 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6029 unnecessary cast.
6030 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6031 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6032 * stabsread.c (read_type, read_array_type, read_range_type):
6033 Remove unnecessary cast.
6034 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6035 (parse_symbol, parse_type, upgrade_type, parse_external)
6036 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6037 unnecessary cast.
6038 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6039
730ead81
TT
60402019-06-16 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui-data.c (tui_alloc_generic_win_info)
6043 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6044 checks.
6045
584a927c
AB
60462019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6047 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * f-typeprint.c (f_print_type): Don't return early for not
6050 associated or not allocated types.
6051 (f_type_print_varspec_suffix): Add print_rank parameter and print
6052 ranks of array types in case they dangling.
6053 (f_type_print_base): Add print_rank parameter.
6054
30056ea0
AB
60552019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 * NEWS: Mention new MI commands.
6058 * break-catch-throw.c (enum exception_event_kind): Move to
6059 breakpoint.h.
6060 (print_mention_exception_catchpoint): Output text as a single
6061 message.
6062 (catch_exception_command_1): Rename to...
6063 (catch_exception_event): ...this, make non-static, update header
6064 command, and change some parameter types.
6065 (catch_catch_command): Update for changes to
6066 catch_exception_command_1.
6067 (catch_throw_command): Likewise.
6068 (catch_rethrow_command): Likewise.
6069 * breakpoint.c (enum exception_event_kind): Delete.
6070 * breakpoint.h (enum exception_event_kind): Moved here from
6071 break-catch-throw.c.
6072 (catch_exception_event): Declare.
6073 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6074 (mi_cmd_catch_throw): New function.
6075 (mi_cmd_catch_rethrow): New function.
6076 (mi_cmd_catch_catch): New function.
6077 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6078 'catch-catch' entries.
6079 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6080 (mi_cmd_catch_rethrow): Declare.
6081 (mi_cmd_catch_catch): Declare.
6082
ec8e2b6d
AB
60832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6084
6085 * annotate.c (annotate_source_line): Change return type to void,
6086 update implementation to match.
6087 * annotate.h (annotate_source_line): Change return type to void,
6088 update header comment.
6089 * stack.c (print_frame_info): Don't change what frame information
6090 is printed based on whether annotations are on or not.
6091
0d3abd8c
AB
60922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6095 (annotate_source): Make static.
6096 (annotate_source_line): Moved from source.c and renamed from
6097 identify_source_line. Update the return type.
6098 * annotate.h (annotate_source): Delete declaration.
6099 (annotate_source_line): Declaration moved from source.h, and
6100 renamed from identify_source_line. Return type updated.
6101 * source.c (identify_source_line): Moved to annotate.c and renamed
6102 to annotate_source_line.
6103 (info_line_command): Remove check of annotation_level.
6104 * source.h (identify_source_line): Move declaration to annotate.h
6105 and rename to annotate_source_line.
6106 * stack.c: Add 'annotate.h' include.
6107 (print_frame_info): Remove check of annotation_level before
6108 calling annotate_source_line.
6109
00df30ae
AB
61102019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * source-cache.c (source_cache::get_plain_source_lines): Use
6113 open_source_file_with_line_charpos instead of just
6114 open_source_file, remove call to find_source_lines.
6115 (source_cache::get_source_lines): Likewise.
6116 * source.c (find_source_lines): Make static.
6117 (get_filename_and_charpos): Renamed into...
6118 (open_source_file_with_line_charpos): ..this along with changes to
6119 return a scoped_fd, and some other minor clean ups.
6120 (identify_source_line): Use open_source_file_with_line_charpos.
6121 (search_command_helper): Use open_source_file_with_line_charpos
6122 instead of just open_source_file, remove call to
6123 find_source_lines.
6124 * source.h (open_source_file_with_line_charpos): Declare new
6125 function.
6126 (find_source_lines): Delete declaration.
6127
afda45a2
AB
61282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * source.c (get_filename_and_charpos): Remove fullname
6131 parameter.
6132 (identify_source_line): Update call to get_filename_and_charpos.
6133
0735b091
TT
61342019-06-14 Tom Tromey <tromey@adacore.com>
6135
6136 PR gdb/24502:
6137 * ui-style.h (skip_ansi_escape): Update comment.
6138 * ui-file.h (class no_terminal_escape_file): New class.
6139 * ui-file.c (no_terminal_escape_file::write)
6140 (no_terminal_escape_file::puts): New methods.
6141 * cli/cli-logging.c (handle_redirections): Use
6142 no_terminal_escape_file.
6143
52ce35e2
TT
61442019-06-14 Tom Tromey <tromey@adacore.com>
6145
6146 * NEWS: Move convenience variable news above Python news.
6147
73cc7272
TT
61482019-06-14 Tom Tromey <tom@tromey.com>
6149
6150 * gnulib: Move directory to top-level.
6151 * configure.ac: Don't configure gnulib.
6152 * configure: Rebuild.
6153 * common/common-defs.h: Use new path to gnulib.
6154 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6155 (GNULIB_H): Remove.
6156 (INCGNU): Look in new gnulib location.
6157 (HFILES_NO_SRCDIR): Remove gnulib files.
6158 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6159 (generated_files): Remove GNULIB_H.
6160 ($(LIBGNU), all-lib): Remove targets.
6161 (distclean): Don't mention GNULIB_BUILDDIR.
6162 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6163
f5686554
TT
61642019-06-14 Tom Tromey <tromey@adacore.com>
6165
6166 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6167 Warn if symbol file does not provide any symbols.
6168
a0c1ffed
TT
61692019-06-14 Tom Tromey <tromey@adacore.com>
6170
6171 * source.c (find_and_open_source): Respect basenames_may_differ.
6172
7c39e397
AB
61732019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6174
6175 * annotate.c (annotate_breakpoints_invalid): Make use of
6176 scoped_restore_terminal_state.
6177 (annotate_frames_invalid): Likewise.
6178
f411722c
TT
61792019-06-14 Tom Tromey <tromey@adacore.com>
6180
6181 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6182 allow assignment to an internalvar.
6183
4268ec18
TT
61842019-06-14 Tom Tromey <tromey@adacore.com>
6185
6186 * ada-lex.l: Allow "_" in attribute names.
6187
abdb711e
TT
61882019-06-14 Tom Tromey <tromey@adacore.com>
6189
6190 PR gdb/24653:
6191 * regcache.c (registers_changed): Don't call alloca.
6192 * top.c (execute_command): Don't call alloca.
6193
4c048731
PA
61942019-06-13 Pedro Alves <palves@redhat.com>
6195
6196 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6197 'expression'. When parsing an expression, error out if there's
6198 junk after "unlimited".
6199 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6200 (do_set_command): Adjust calls to is_unlimited_literal.
6201
66eb1ed3
PA
62022019-06-13 Pedro Alves <palves@redhat.com>
6203
6204 * compile/compile.c (make_compile_options_def_group): Add braces
6205 around array_view initializer.
6206 * thread.c (make_thread_apply_all_options_def_group)
6207 (make_thread_apply_all_options_def_group): Likewise.
6208
3345721a
PA
62092019-06-13 Pedro Alves <palves@redhat.com>
6210
6211 * NEWS (New commands): Mention "maint test-options
6212 require-delimiter", "maint test-options unknown-is-error", "maint
6213 test-options unknown-is-operand" and "maint show
6214 test-options-completion-result".
6215 (New command options, command completion): New section.
6216 (Completion improvements): New section.
6217 Mention that you can abbreviate "unlimited".
6218
6206060d
PA
62192019-06-13 Pedro Alves <palves@redhat.com>
6220
6221 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6222 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6223 * unittests/cli-utils-selftests.c (test_parse_flags)
6224 (test_parse_flags_qcs): Delete.
6225 (test_cli_utils): Don't call deleted functions.
6226
6665660a
PA
62272019-06-13 Pedro Alves <palves@redhat.com>
6228
6229 * thread.c: Include "cli/cli-option.h".
6230 (tp_array_compar_ascending): Global.
6231 (tp_array_compar): Delete function.
6232 (tp_array_compar_ascending, tp_array_compar_descending): New
6233 functions.
6234 (ascending_option_def, qcs_flag_option_def)
6235 (thr_qcs_flags_option_defs)
6236 (make_thread_apply_all_options_def_group)
6237 (make_thread_apply_options_def_group): New.
6238 (thread_apply_all_command): Use gdb::option::process_options.
6239 (thread_apply_command_completer)
6240 (thread_apply_all_command_completer): New.
6241 (thread_apply_command): Use gdb::option::process_options.
6242 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6243 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6244 to generate help text of "thread apply". Adjust "taas"'s help.
6245 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6246 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6247
f7e13587
PA
62482019-06-13 Pedro Alves <palves@redhat.com>
6249
6250 * thread.c (thread_apply_command): Check for invalid TID with
6251 isdigit instead of !isalpha.
6252
5d707134
PA
62532019-06-13 Pedro Alves <palves@redhat.com>
6254
6255 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6256 (validate_flags_qcs): New.
6257 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6258 (validate_flags_qcs): Declare.
6259 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6260 (make_frame_apply_options_def_group): New.
6261 (frame_apply_command_count): Process options with
6262 gdb::option::process_options.
6263 (frame_apply_completer): New.
6264 (frame_apply_level_completer, frame_apply_all_completer)
6265 (frame_apply_completer): New.
6266 (_initialize_stack): Update help of "frame apply", "frame apply
6267 level", "frame apply all" and "faas" to mention supported options
6268 and install command completers.
6269 * stack.h (frame_apply_all_completer): Declare.
6270 * thread.c: Include "stack.h".
6271 (tfaas_command): Add "--".
6272 (_initialize_thread): Update help "tfaas" to mention supported
6273 options and install command completer.
6274
272d4594
PA
62752019-06-13 Pedro Alves <palves@redhat.com>
6276
6277 * completer.c (complete_nested_command_line): New.
6278 (gdb_completion_word_break_characters_throw): Add assertion.
6279 * completer.h (complete_nested_command_line): Declare.
6280
90a1ef87
PA
62812019-06-13 Pedro Alves <palves@redhat.com>
6282
6283 * stack.c (parse_backtrace_qualifiers): New.
6284 (backtrace_command): Use it.
6285 (backtrace_command_completer): Complete on qualifiers.
6286
d4c16835
PA
62872019-06-13 Pedro Alves <palves@redhat.com>
6288
6289 * frame.c: Include "cli/cli-option.h.
6290 (user_set_backtrace_options): New.
6291 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6292 Delete.
6293 (get_prev_frame): Adjust.
6294 (boolean_option_def, uinteger_option_def)
6295 (set_backtrace_option_defs): New.
6296 (_initialize_frame): Adjust and use
6297 gdb::option::add_setshow_cmds_for_options to install "set
6298 backtrace past-main" and "set backtrace past-entry".
6299 * frame.h: Include "cli/cli-option.h".
6300 (struct frame_print_options): Forward declare.
6301 (print_frame_arguments_all, print_frame_arguments_scalars)
6302 (print_frame_arguments_none): Declare.
6303 (print_entry_values): Delete declaration.
6304 (struct frame_print_options, user_frame_print_options): New.
6305 (struct set_backtrace_options): New.
6306 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6308 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6309 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6310 (list_args_or_locals): Add frame_print_options parameter.
6311 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6312 * python/py-framefilter.c (enumerate_args): Pass down
6313 USER_FRAME_PRINT_OPTIONS.
6314 * stack.c: Include "cli/cli-option.h".
6315 (print_frame_arguments_all, print_frame_arguments_scalars)
6316 (print_frame_arguments_none): Declare.
6317 (print_raw_frame_arguments, print_entry_values): Delete.
6318 (user_frame_print_options): New.
6319 (boolean_option_def, enum_option_def, frame_print_option_defs):
6320 New.
6321 (struct backtrace_cmd_options): New.
6322 (bt_flag_option_def): New.
6323 (backtrace_command_option_defs): New.
6324 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6325 (print_frame_arg, read_frame_arg, print_frame_args)
6326 (print_frame_info, print_frame): Add frame_print_options parameter
6327 and use it.
6328 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6329 (backtrace_command_1): Add frame_print_options and
6330 backtrace_cmd_options parameters and use them.
6331 (make_backtrace_options_def_group): New.
6332 (backtrace_command): Process command options with
6333 gdb::option::process_options.
6334 (backtrace_command_completer): New.
6335 (_initialize_stack): Extend "backtrace"'s help to mention
6336 supported options. Install completer for "backtrace".
6337 Install some settings commands with add_setshow_cmds_for_options.
6338
2daf894e
PA
63392019-06-13 Pedro Alves <palves@redhat.com>
6340
6341 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6342 and that "set/show print raw frame-arguments" are now deprecated.
6343
6344 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6345 command.
6346 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6347 * stack.c (_initialize_stack): Install "set/show print
6348 raw-frame-arguments", and deprecate "set/show print raw
6349 frame-arguments".
6350 * valprint.c (_initialize_valprint): Deprecate "set/show print
6351 raw".
6352
e6ed716c
PA
63532019-06-13 Pedro Alves <palves@redhat.com>
6354
6355 * compile/compile.c (struct compile_options): New.
6356 (compile_flag_option_def, compile_command_option_defs)
6357 (make_compile_options_def_group): New.
6358 (compile_file_command): Handle options with
6359 gdb::option::process_options.
6360 (compile_file_command_completer): New function.
6361 (compile_code_command): Handle options with
6362 gdb::option::process_options.
6363 (compile_code_command_completer): New function.
6364 (_initialize_compiler): Install completers for "compile code" and
6365 "compile file". Mention available options in "compile code" and
6366 "compile code"'s help.
6367 * completer.c (advance_to_completion_word): New, factored out from
6368 ...
6369 (advance_to_expression_complete_word_point): ... this.
6370 (advance_to_filename_complete_word_point): New.
6371 * completer.h (advance_to_filename_complete_word_point): New
6372 declaration.
6373
7d8062de
PA
63742019-06-13 Pedro Alves <palves@redhat.com>
6375
6376 * compile/compile.c: Include "cli/cli-option.h".
6377 (compile_print_value): Scope data pointer is now a
6378 value_print_options pointer; adjust.
6379 (compile_print_command): Process options. Scope data pointer is
6380 now a value_print_options pointer; adjust.
6381 (_initialize_compile): Update "compile print"'s help to include
6382 supported options. Install a completer for "compile print".
6383 * cp-valprint.c (show_vtblprint, show_objectprint)
6384 (show_static_field_print): Delete.
6385 (_initialize_cp_valprint): Don't install "set print
6386 static-members", "set print vtbl", "set print object" here.
6387 * printcmd.c: Include "cli/cli-option.h" and
6388 "common/gdb_optional.h".
6389 (print_command_parse_format): Rework to fill in a
6390 value_print_options instead of a format_data.
6391 (print_value): Change parameter type from format_data pointer to
6392 value_print_options reference. Adjust.
6393 (print_command_1): Process options. Adjust to pass down a
6394 value_print_options.
6395 (print_command_completer): New.
6396 (_initialize_printcmd): Install print_command_completer as
6397 handle_brkchars completer for the "print" command. Update
6398 "print"'s help to include supported options.
6399 * valprint.c: Include "cli/cli-option.h".
6400 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6401 here from cp-valprint.c.
6402 (boolean_option_def, uinteger_option_def)
6403 (value_print_option_defs, make_value_print_options_def_group):
6404 New. Use gdb::option::add_setshow_cmds_for_options to install
6405 "set print elements", "set print null-stop", "set print repeats",
6406 "set print pretty", "set print union", "set print array", "set
6407 print address", "set print symbol", "set print array-indexes".
6408 * valprint.h: Include <string> and "cli/cli-option.h".
6409 (make_value_print_options_def_group): Declare.
6410 (print_value): Change parameter type from format_data pointer to
6411 value_print_options reference.
6412 (print_command_completer): Declare.
6413
9d0faba9
PA
64142019-06-13 Pedro Alves <palves@redhat.com>
6415
6416 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6417 (COMMON_SFILES): Add maint-test-settings.c.
6418 * cli/cli-decode.c (boolean_enums): New global, factored out from
6419 ...
6420 (add_setshow_boolean_cmd): ... here.
6421 * cli/cli-decode.h (boolean_enums): Declare.
6422 * cli/cli-option.c: New file.
6423 * cli/cli-option.h: New file.
6424 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6425 factored out from ...
6426 (parse_cli_boolean_value(const char *)): ... this.
6427 (is_unlimited_literal): Change parameter type to pointer to
6428 pointer. Adjust and advance ARG pointer.
6429 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6430 (parse_cli_var_enum): New, factored out from ...
6431 (do_set_command): ... this. Adjust.
6432 * cli/cli-setshow.h (parse_cli_boolean_value)
6433 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6434 (parse_cli_var_enum): Declare.
6435 * cli/cli-utils.c: Include "cli/cli-option.h".
6436 (get_ulongest): New.
6437 * cli/cli-utils.h (get_ulongest): Declare.
6438 (check_for_argument): New overloads.
6439 * maint-test-options.c: New file.
6440
2c722807
PA
64412019-06-13 Pedro Alves <palves@redhat.com>
6442
6443 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6444 parse a range if "-" is at the end of the string.
6445
dee7b4c8
PA
64462019-06-13 Pedro Alves <palves@redhat.com>
6447
6448 * cli/cli-setshow.c (parse_auto_binary_operation)
6449 (parse_cli_boolean_value): Don't allow "o".
6450
dca0f6c0
PA
64512019-06-13 Pedro Alves <palves@redhat.com>
6452
6453 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6454 * NEWS: Mention maint test-settings KIND.
6455 * maint-test-settings.c: New file.
6456
597bf39d
PA
64572019-06-13 Pedro Alves <palves@redhat.com>
6458
6459 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6460 completer.
6461 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6462 "set" completers.
6463
48c410fb
PA
64642019-06-13 Pedro Alves <palves@redhat.com>
6465
6466 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6467 after item.
6468
93bcb043
PA
64692019-06-13 Pedro Alves <palves@redhat.com>
6470
6471 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6472
cbba3ecd
PA
64732019-06-13 Pedro Alves <palves@redhat.com>
6474
6475 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6476 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6477 call.
6478 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6479 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6480 calls.
6481 (check_for_argument): Skip spaces after argument.
6482
b9a3f842
PA
64832019-06-13 Pedro Alves <palves@redhat.com>
6484
6485 * thread.c (thread_apply_command): Adjust TID parsing.
6486 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6487 detected before end of string.
6488 (tid_is_in_list): Error out if LIST is invalid.
6489
3844e605
PA
64902019-06-13 Pedro Alves <palves@redhat.com>
6491
6492 * completer.c (complete_line_internal_1): Rewind completion word
6493 point.
6494 (completion_tracker::advance_custom_word_point_by): Change
6495 parameter type to int.
6496 * completer.h (completion_tracker::advance_custom_word_point_by):
6497 Likewise.
6498
00b56dbe
PA
64992019-06-13 Pedro Alves <palves@redhat.com>
6500
6501 * completer.c (advance_to_completion_word): Handle delimiters.
6502
d106773e
PA
65032019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6504
6505 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6506
08f10e02
TT
65072019-06-11 Tom Tromey <tom@tromey.com>
6508
6509 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6510 (xmalloc_failed): Move to alloc.c.
6511 * alloc.c: New file.
6512 * Makefile.in (COMMON_SFILES): Add alloc.c.
6513
1c7fe951
TT
65142019-06-11 Tom Tromey <tom@tromey.com>
6515
6516 * nat/linux-waitpid.c: Don't include server.h.
6517 (linux_debug): Remove.
6518 (my_waitpid): Update.
6519
89549d7f
TT
65202019-06-11 Tom Tromey <tromey@adacore.com>
6521
6522 * infcall.c (_initialize_infcall): Remove trailing newline from
6523 help.
6524 * user-regs.c (_initialize_user_regs): Remove trailing newline
6525 from help.
6526 * typeprint.c (_initialize_typeprint): Remove trailing newline
6527 from help.
6528 * reverse.c (_initialize_reverse): Remove trailing newlines from
6529 help.
6530 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6531 from help.
6532 * language.c (add_set_language_command): Remove trailing newline
6533 from help.
6534 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6535 help.
6536 * disasm.c (_initialize_disasm): Remove trailing newline from
6537 help.
6538 * top.c (init_main): Remove trailing newline from help.
6539 * interps.c (_initialize_interpreter): Remove trailing newline
6540 from help.
6541 * btrace.c (_initialize_btrace): Remove trailing newlines from
6542 help.
6543 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6544 from help.
6545 * python/python.c (_initialize_python): Remove trailing newline
6546 from help.
6547 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6548 help.
6549 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6550 from help. Reformat some text.
6551 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6552 from help.
6553 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6554 newline from help.
6555
86108c13
TT
65562019-06-11 Tom Tromey <tromey@adacore.com>
6557
6558 * darwin-nat.c (darwin_decode_exception_message)
6559 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6560
a7067863
AB
65612019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * valops.c (value_slice): Check for not allocated or not
6564 associated values.
6565
9ab08412
TV
65662019-06-10 Tom de Vries <tdevries@suse.de>
6567
6568 PR gdb/24618
6569 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6570 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6571 invalid.
6572
f19e22e9
TV
65732019-06-10 Tom de Vries <tdevries@suse.de>
6574
6575 PR gdb/24611
6576 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6577 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6578
e99f9db0
TV
65792019-06-10 Tom de Vries <tdevries@suse.de>
6580
6581 PR symtab/24545
6582 * symtab.c (struct demangled_name_entry): Add language field.
6583 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6584 static minimal symbol". Set and use language field.
6585
9bf7038b
TT
65862019-06-10 Tom Tromey <tromey@adacore.com>
6587
6588 * ada-lang.c (_initialize_ada_language): Update help text.
6589
422186a9
TT
65902019-06-10 Tom Tromey <tromey@adacore.com>
6591
6592 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6593 with a newline.
6594 * guile/guile.c (handle_boot_error): Don't end warning with a
6595 newline.
6596 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6597 warning with a newline.
6598 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6599 newline.
6600 (s12z_frame_cache): Likewise.
6601 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6602 a newline.
6603 * solib-svr4.c (disable_probes_interface): Don't end warning with
6604 a newline.
6605 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6606 newline.
6607 * python/python.c (do_finish_initialization): Don't end warning
6608 with a newline.
6609
25ce02ee
TT
66102019-06-10 Tom Tromey <tom@tromey.com>
6611
6612 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6613 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6614 gdbpy_enter.
6615
caa429d8
TT
66162019-06-10 Tom Tromey <tromey@adacore.com>
6617
6618 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6619 data.
6620 (elf_new_init): Don't call stabsread_new_init.
6621 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6622 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6623 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6624
81873cc8
TV
66252019-06-10 Tom de Vries <tdevries@suse.de>
6626
6627 PR symtab/16264
6628 PR symtab/24517
6629 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6630
4fa0265e
РИ
66312019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6632
6633 * source.c (find_and_open_source): Also rewrite relative file
6634 names.
6635
1a3da2cd
AB
66362019-04-26 Amos Bird <amosbird@gmail.com>
6637
6638 * annotate.c (annotate_thread_exited): Add "thread-exited"
6639 annotation.
6640
3847a7bf
TT
66412019-06-06 Tom Tromey <tromey@adacore.com>
6642
6643 * maint.h (class scoped_command_stats): Use
6644 DISABLE_COPY_AND_ASSIGN.
6645 <print_time>: New method.
6646 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6647 print_time.
6648 (scoped_command_stats::print_time): New method.
6649
312617a3
AB
66502019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6651
6652 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6653 instructions of lengths 6 or 8 bytes.
6654
b02f78f9
PA
66552019-06-04 Pedro Alves <palves@redhat.com>
6656
6657 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6658
6659 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6660 * breakpoint.c (condition_completer): Likewise.
6661 * cli/cli-dump.c (scan_expression): Likewise.
6662 * common/filestuff.c (mkdir_recursive): Likewise.
6663 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6664 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6665 (gdb_abspath): Likewise.
6666 * compile/compile-cplus-types.c
6667 (compile_cplus_instance::decl_name): Likewise.
6668 * completer.c (complete_explicit_location):
6669 (signal_completer, reg_or_group_completer_1): Likewise.
6670 * cp-support.c (cp_remove_params_if_any): Likewise.
6671 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6672 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6673 * infcmd.c (strip_bg_char): Likewise.
6674 * linespec.c (copy_token_string): Likewise.
6675 * mi/mi-main.c (output_cores): Likewise.
6676 * psymtab.c (psymtab_search_name):
6677 * symfile.c (test_set_ext_lang_command): Likewise.
6678 * target.c (target_fileio_read_stralloc): Likewise.
6679 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6680 * value.c (complete_internalvar): Likewise.
6681
e1f2e1a2
CB
66822019-06-04 Christian Biesinger <cbiesinger@google.com>
6683
6684 Add objfile property to gdb.Type.
d3238f7d
PA
6685 * NEWS: Mention Python API addition.
6686 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6687
e664d728
PW
66882019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6689
6690 * NEWS: Mention the new set|show style [title|highlight].
6691 Mention changes to "show style", "help" and "apropos".
6692
66d8c862
PW
66932019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6694
6695 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6696 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6697 instead of print_help_for_command.
6698 (print_doc_of_command): New function.
6699 (help_list): Add 'apropos -v word' suggestion.
6700 (print_help_for_command): Style the command name using title style.
6701 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6702 (_initialize_cli_cmds): Describe -v in apropos_command help.
6703
9303eb2f
PW
67042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6705
6706 * cli/cli-style.h (cli_style_option): Add name in constructor,
6707 add m_name class member, add constructor with intensity,
6708 add name class function.
6709 (cli_style_option::add_setshow_commands): Remove name argument.
6710 (highlight_style, title_style): New styles.
6711 * cli/cli-style.c (do_show): New function that shows a style
6712 characteristic styling the style name with itself.
6713 (set_style_name): New function.
6714 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6715 Update all callers according to the changes in cli/cli-style.h.
6716 * utils.h (fputs_highlighted): New function.
6717 * utils.c (fputs_highlighted): Likewise.
6718
e2c52041
PW
67192019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6720
6721 * NEWS: Mention new pipe command and new convenience variables.
6722
947d3946
PW
67232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6724
6725 * cli/cli-cmds.c (pipe_command): New function.
6726 (_initialize_cli_cmds): Call add_com for pipe_command.
6727 Define | as an alias for pipe.
6728 (exit_status_set_internal_vars): New function.
6729 (shell_escape): Call exit_status_set_internal_vars.
6730 cli/cli-decode.c (find_command_name_length): Recognize | as
6731 a single character command.
6732
b8fd0918
PW
67332019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6734
6735 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6736 top.c (execute_command_to_ui_file): New function, mostly a copy
6737 of execute_command_to_string.
6738 (execute_command_to_string): Implement by calling
6739 execute_command_to_ui_file.
6740
68bb5386
PW
67412019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6742
6743 * top.h (saved_command_line): Remove declaration.
6744 * top.c (previous_saved_command_line, previous_repeat_arguments):
6745 New variables.
6746 (saved_command_line): Make static, define together with other
6747 'repeat variables'.
6748 (dont_repeat): Clear repeat_arguments.
6749 (repeat_previous, get_saved_command_line, save_command_line):
6750 New functions.
6751 (gdb_init): Initialize saved_command_line
6752 and previous_saved_command_line.
6753 * main.c (captured_main_1): Remove saved_command_line initialization.
6754 * event-top.c (handle_line_of_input): Update to use
6755 the new 'repeat' related functions instead of direct access to
6756 saved_command_line.
6757 * command.h (repeat_previous, get_saved_command_line,
6758 save_command_line): New declarations.
6759 (dont_repeat): Add comment.
6760
bfcdb852
TT
67612019-05-30 Tom Tromey <tromey@adacore.com>
6762
6763 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6764 Fix comment.
6765 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6766
0ef209f2
JV
67672019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6768
6769 PR cli/24587
6770 * completer.c (complete): Initialize variable word.
6771
955b06fa
SDJ
67722019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6773
6774 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6775 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6776 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6777 'body' is NULL to the outter 'if', protecting the '!is_define'
6778 situation as well.
6779
fa9c3fa0
TT
67802019-05-29 Tom Tromey <tromey@adacore.com>
6781
6782 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6783 (dwarf_unknown): New function.
6784 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6785 (dwarf_type_encoding_name): Use dwarf_unknown.
6786
4330d61d
TT
67872019-05-29 Tom Tromey <tromey@adacore.com>
6788
6789 PR c++/20020:
6790 * cp-valprint.c (cp_print_value_fields): Call
6791 cp_print_static_field inside "try".
6792
33a6bc35
TT
67932019-05-29 Tom Tromey <tromey@adacore.com>
6794
6795 * inflow.c (struct terminal_info): Add default operator=.
6796 * configure: Rebuild.
6797 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6798 -Wdeprecated-copy-dtor, -Wredundant-move.
6799
000439d5
TT
68002019-05-29 Tom Tromey <tromey@adacore.com>
6801
6802 * NEWS: Add entry.
6803 * infcmd.c (print_return_value_1): Handle finish_print
6804 option.
6805 (show_print_finish): New function.
6806 (_initialize_infcmd): Add "set/show print finish" commands.
6807 * valprint.c (user_print_options): Initialize new member.
6808 * valprint.h (struct value_print_options) <finish_print>: New
6809 member.
6810
c0e70c62
TT
68112019-05-28 Tom Tromey <tromey@adacore.com>
6812
6813 * ada-lang.c (ada_remove_Xbn_suffix)
6814 (find_old_style_renaming_symbol)
6815 (parse_old_style_renaming): Remove.
6816 (ada_find_renaming_symbol): Don't call
6817 find_old_style_renaming_symbol.
6818 (ada_is_renaming_symbol): Rename from
6819 ada_find_renaming_symbol. Remove "block" parameter. Return
6820 bool. Now static.
6821 (ada_read_var_value): Update and simplify.
6822 * ada-exp.y (write_var_or_type): Remove old code.
6823
766f8836
AH
68242019-05-28 Alan Hayward <alan.hayward@arm.com>
6825
68255adc 6826 PR gdb/25010
766f8836
AH
6827 * event-top.c: Remove include comment.
6828 * inflow.c (class scoped_ignore_sigttou): Move from here...
6829 * inflow.h (class scoped_ignore_sigttou): ...to here.
6830 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6831 * top.c: Remove include comment.
6832
eb41253a
TT
68332019-05-27 Tom Tromey <tom@tromey.com>
6834
6835 * NEWS: Fix typo.
6836
4ca51187
TT
68372019-05-22 Tom Tromey <tromey@adacore.com>
6838
6839 * target.c (target_follow_exec): Constify parameter.
6840 * target-delegates.c: Rebuild.
6841 * remote.c (remote_target::follow_exec): Constify parameter.
6842 * infrun.c (follow_exec): Constify parameter.
6843 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6844 (target_follow_exec): Likewise.
6845
8fca4da0
AH
68462019-05-22 Alan Hayward <alan.hayward@arm.com>
6847
6848 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6849 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6850
b7060614
AH
68512019-05-22 Alan Hayward <alan.hayward@arm.com>
6852
6853 * NEWS: Add debugredirect and testsuite sections.
6854
0a5954bd
SC
68552019-05-22 Simon Cook <simon.cook@embecosm.com>
6856
6857 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6858 target descriptions using exclusively floating point register name
6859 aliases.
6860
dc42e902
AB
68612019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6862
6863 PR gdb/18644:
6864 * f-lang.c (build_fortran_types): Handle the case where
6865 gdbarch_floatformat_for_type returns a nullptr.
6866
fb7806c7
TV
68672019-05-21 Tom de Vries <tdevries@suse.de>
6868
6869 PR cli/24587
6870 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6871
34d11c68
AB
68722019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 PR gdb/18644:
6875 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6876 16-byte floats.
6877 * i386-tdep.c (i386_floatformat_for_type): Use
6878 floatformats_ia64_quad for the 16-byte floating point component
6879 within a fortran 32-byte complex number.
6880
122cf0f2
AB
68812019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6882
6883 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6884 delete default constructor.
6885 (find_partial_die): Update to return const struct.
6886 (partial_die_parent_scope): Move variable declaration into scope
6887 of its use and change its type to auto.
6888 (guess_partial_die_structure_name): Likewise.
6889 (partial_die_info::fixup): Likewise.
6890
33d0e35a
TT
68912019-05-17 Tom Tromey <tromey@adacore.com>
6892
6893 * source.c (find_and_open_source): Remove cast.
6894
a45575b0
TT
68952019-05-17 Tom Tromey <tromey@adacore.com>
6896
6897 * annotate.c (annotate_source): Make "filename" const.
6898 * annotate.h (annotate_source): Use const.
6899
81f47ac2
AH
69002019-05-17 Alan Hayward <alan.hayward@arm.com>
6901
6902 * disasm.c (set_disassembler_options): Send errors to stderr.
6903
ca1285d1
AH
69042019-05-17 Alan Hayward <alan.hayward@arm.com>
6905
6906 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6907 (cli_interp_base::set_logging): Check debug_redirect.
6908 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6909 * cli/cli-logging.c (debug_redirect): Add static variable.
6910 (pop_output_files): Add default param.
6911 (handle_redirections): Print debug setting.
6912 (show_logging_command): Likewise.
6913 (_initialize_cli_logging): Add debugredirect command.
6914 * interps.c (current_interp_set_logging): Add debug_redirect
6915 parameter.
6916 * interps.h (set_logging): Add debug_redirect parameter.
6917 (current_interp_set_logging): Likewise.
6918 * mi/mi-common.h: Likewise.
6919 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6920
69212019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6922 Tom Tromey <tromey@adacore.com>
6923
6924 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6925 directly.
6926 * cli/cli-interp.h (make_logging_output): Remove declaration.
6927 * cli/cli-logging.c (make_logging_output): Remove function.
6928 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6929 directly.
6930 * ui-file.c (tee_file::tee_file): Remove bools.
6931 (tee_file::~tee_file): Remove deletes.
6932 * ui-file.h (tee_file): Remove bools.
6933
26648588
JV
69342019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6935
6936 * mi/mi-cmds.h (mi_cmd_complete): New function.
6937 * mi/mi-main.c (mi_cmd_complete): Likewise.
6938 * mi/mi-cmds.c: Define new MI command -complete.
6939 * NEWS: Mention new -complete command.
6940
6e035501
JV
69412019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6942
6943 * completer.h (complete): New function.
6944 * completer.c (complete): Likewise.
6945 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6946 function defined in completer.h.
6947
7d0e2ece
JV
69482019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6949
e79be6e5 6950 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6951
fb816e8b
TV
69522019-05-17 Tom de Vries <tdevries@suse.de>
6953
6954 PR gdb/24094
6955 * dwarf2read.c (struct cu_partial_die_info): New struct.
6956 (find_partial_die): Return cu_partial_die_info.
6957 (partial_die_parent_scope, guess_partial_die_structure_name)
6958 (partial_die_info::fixup): Handle new return type of find_partial_die.
6959
677052f2
SDJ
69602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6961
a1726c38 6962 PR breakpoints/24541
677052f2
SDJ
6963 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6964 "std::string", simplifying the algorithm.
6965
f3da9116
SDJ
69662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6969 (stap_static_probe_ops::get_probes): Likewise.
6970
f1bb75ab
SDJ
69712019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6972
6973 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6974 '-')" and "else if".
6975 (stap_parse_single_operand): Join checks for
6976 "gdbarch_stap_parse_special_token_p" and
6977 "gdbarch_stap_parse_special_token" in the same "if" statement.
6978 Invert check when verifying for operation on register
6979 displacement.
6980
3ca58cde
SDJ
69812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6982
6983 * stap-probe.c (stap_get_opcode): Update comment.
6984 (stap_get_expected_argument_type): Likewise.
6985 (handle_stap_probe): Likewise.
6986
af2d9bee
SDJ
69872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6988
6989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6990 return type to 'bool'. Adjust comment. Use 'bool' when
6991 appropriate.
6992 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6993 * stap-probe.c (stap_parse_argument_1): Likewise.
6994 (stap_is_operator): Likewise.
6995 (stap_is_generic_prefix): Likewise.
6996 (stap_is_register_prefix): Likewise.
6997 (stap_is_register_indirection_prefix): Likewise.
6998 (stap_is_integer_prefix): Likewise.
6999 (stap_generic_check_suffix): Likewise.
7000 (stap_check_integer_suffix): Likewise.
7001 (stap_check_register_suffix): Likewise.
7002 (stap_check_register_indirection_suffix): Likewise.
7003 (stap_parse_register_operand): Likewise.
7004 (stap_parse_single_operand): Likewise.
7005 (stap_parse_argument_1): Likewise.
7006 (stap_probe::get_argument_count): Likewise.
7007 (stap_is_operator): Likewise.
7008
61c9c421
TT
70092019-05-16 Tom Tromey <tromey@adacore.com>
7010
7011 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7012 keyword to foreach.
7013
9ddc1af1
SM
70142019-05-15 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * linux-thread-db.c (try_thread_db_load_1): Change return type
7017 to bool.
7018 (try_thread_db_load): Likewise.
7019 (try_thread_db_load_from_pdir_1): Likewise.
7020 (try_thread_db_load_from_pdir): Likewise.
7021 (try_thread_db_load_from_sdir): Likewise.
7022 (try_thread_db_load_from_dir): Likewise.
7023 (thread_db_load_search): Likewise.
7024 (has_libpthread): Likewise.
7025 (thread_db_load): Likewise.
7026
7bede828
SDJ
70272019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7028
7029 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7030 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7031 NULL, and complain/return if that's the case.
7032
c5358db4
JD
70332019-05-15 John Darrington <john@darrington.wattle.id.au>
7034
7035 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7036 (advance, posn, abstract_read_memory): New functions.
7037 [struct mem_read_abstraction]: New struct.
7038 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7039
c408a94f
TT
70402019-05-14 Tom Tromey <tromey@adacore.com>
7041
7042 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7043 value is not lval_memory.
7044
e7bd7fba
TT
70452019-05-14 Tom Tromey <tromey@adacore.com>
7046
7047 * solib.c (info_sharedlibrary_command): Style the file name.
7048
a6d0f249
AH
70492019-05-14 Alan Hayward <alan.hayward@arm.com>
7050
7051 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7052 (aarch64_vnv_type): Likewise.
7053 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7054 * common/tdesc.c: Likewise.
7055 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7056 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7057 * features/aarch64-fpu.xml: Add ieee half view.
7058 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7059 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7060 * gdbtypes.h (struct builtin_type): Likewise.
7061 (struct objfile_type): Likewise.
7062
66b8bb74
SM
70632019-05-12 Paul Naert <paul.naert@polymtl.ca>
7064
7065 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7066 typo.
7067 * location.h (string_to_event_location): Likewise.
7068
21c219fd
JB
70692019-05-11 Joel Brobecker <brobecker@adacore.com>
7070
7071 GDB 8.3 released.
7072
13674803
SM
70732019-05-10 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7076 New variable declaration.
7077 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7078 New variable.
7079 (print_one_breakpoint): Use ui_out::test_flags and new global
7080 variable to compute use_fixed_output.
7081 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7082 Remove.
7083 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7084 (mi_multi_location_breakpoint_output_fixed): Remove.
7085 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7086 new variable.
7087 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7088 fix_multi_location_breakpoint_output flag if version >= 3.
7089 * ui-out.h (enum ui_out_flag)
7090 <fix_multi_location_breakpoint_output>: New enumerator.
7091
a9eac7f9
SM
70922019-05-10 Simon Marchi <simon.marchi@efficios.com>
7093
7094 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7095
71bed2db
TT
70962019-05-10 Tom Tromey <tromey@adacore.com>
7097
7098 * ada-lang.c (catch_ada_completer): New function.
7099 (_initialize_ada_language): Use it.
7100
24c54127
TT
71012019-05-10 Tom Tromey <tromey@adacore.com>
7102
7103 * thread.c (print_thread_info): Make "requested_threads" const.
7104 * gdbthread.h (print_thread_info): Make "requested_threads"
7105 const.
7106 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7107 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7108
7a102139
TT
71092019-05-08 Tom Tromey <tom@tromey.com>
7110
7111 * gdbtypes.c (objfile_type_data): Change type.
7112 (objfile_type, _initialize_gdbtypes): Update.
7113
924d79e2
TT
71142019-05-08 Tom Tromey <tom@tromey.com>
7115
7116 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7117 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7118 (_initialize_dwarf2_frame): Update.
7119
4c58e337
TT
71202019-05-08 Tom Tromey <tom@tromey.com>
7121
7122 * objc-lang.c (objc_objfile_data): Change type.
7123 (find_methods): Update.
7124 (_initialize_objc_lang): Remove.
7125
d772d2ab
TT
71262019-05-08 Tom Tromey <tom@tromey.com>
7127
7128 * stabsread.c (rs6000_builtin_type_data): Change type.
7129 (rs6000_builtin_type, _initialize_stabsread): Update.
7130
d11d83f4
TT
71312019-05-08 Tom Tromey <tom@tromey.com>
7132
7133 * mips-tdep.c (mips_pdr_data): Remove.
7134 (_initialize_mips_tdep): Update.
7135
9a73f0ad
TT
71362019-05-08 Tom Tromey <tom@tromey.com>
7137
7138 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7139 (hppa_init_objfile_priv_data, read_unwind_info)
7140 (find_unwind_entry, _initialize_hppa_tdep): Update.
7141
8127a2fa
TT
71422019-05-08 Tom Tromey <tom@tromey.com>
7143
7144 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7145 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7146 on obstack.
7147 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7148
91d3055d
TT
71492019-05-08 Tom Tromey <tom@tromey.com>
7150
7151 * mdebugread.c (basic_type_data): Change type.
7152 (basic_type, _initialize_mdebugread): Update.
7153
31930bd3
TT
71542019-05-08 Tom Tromey <tom@tromey.com>
7155
7156 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7157
bdb3ed9e
TT
71582019-05-08 Tom Tromey <tom@tromey.com>
7159
7160 * nto-tdep.c (nto_inferior_data_reg): Change type.
7161 (nto_inferior_data): Update.
7162 (nto_inferior_data_cleanup, nto_new_inferior_data)
7163 (_initialize_nto_tdep): Remove.
7164 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7165
f37b313d
TT
71662019-05-08 Tom Tromey <tom@tromey.com>
7167
7168 * ada-lang.c (struct ada_inferior_data): Add initializers.
7169 (ada_inferior_data): Change type.
7170 (ada_inferior_data_cleanup): Remove.
7171 (get_ada_inferior_data, ada_inferior_exit)
7172 (struct ada_pspace_data): Add initializers, destructor.
7173 (ada_pspace_data_handle): Change type.
7174 (get_ada_pspace_data): Update.
7175 (ada_pspace_data_cleanup): Remove.
7176
24699405
TT
71772019-05-08 Tom Tromey <tom@tromey.com>
7178
7179 * coffread.c (struct coff_symfile_info): Add initializers.
7180 (coff_objfile_data_key): Move lower. Change type.
7181 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7182 Update.
7183 (coff_free_info): Remove.
7184
d4e05d2f
TT
71852019-05-08 Tom Tromey <tom@tromey.com>
7186
7187 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7188 (fbsd_pspace_data_handle): Move lower. Change type.
7189 (get_fbsd_pspace_data): Update.
7190 (fbsd_pspace_data_cleanup): Remove.
7191 (_initialize_fbsd_tdep): Update.
7192
14ef6690
TT
71932019-05-08 Tom Tromey <tom@tromey.com>
7194
7195 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7196 (get_ada_tasks_pspace_data): Update.
7197 (ada_tasks_pspace_data_cleanup): Remove.
7198 (_initialize_tasks): Update.
7199 (ada_tasks_inferior_data_handle): Change type.
7200 (get_ada_tasks_inferior_data): Update.
7201 (ada_tasks_inferior_data_cleanup): Remove.
7202 (struct ada_tasks_pspace_data): Add initializers.
7203
814cf43a
TT
72042019-05-08 Tom Tromey <tom@tromey.com>
7205
7206 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7207 * symfile-debug.c (debug_sym_get_probes): Change type.
7208 * stap-probe.c (handle_stap_probe):
7209 (stap_static_probe_ops::get_probes): Change type.
7210 * probe.h (class static_probe_ops) <get_probes>: Change type.
7211 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7212 (parse_probes_in_pspace): Update.
7213 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7214 Update.
7215 (any_static_probe_ops::get_probes): Change type.
7216 * elfread.c (elfread_data): New typedef.
7217 (probe_key): Change type.
7218 (elf_get_probes): Likewise. Update.
7219 (probe_key_free): Remove.
7220 (_initialize_elfread): Update.
7221 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7222 Change type.
7223 (dtrace_process_dof_probe, dtrace_process_dof)
7224 (dtrace_static_probe_ops::get_probe): Change type.
7225
02dc647e
TT
72262019-05-08 Tom Tromey <tom@tromey.com>
7227
7228 * xcoffread.c (struct xcoff_symfile_info): Rename from
7229 coff_symfile_info. Add initializers.
7230 (xcoff_objfile_data_key): Move lower. Change type.
7231 (XCOFF_DATA): Rewrite.
7232 (xcoff_free_info): Remove.
7233 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7234 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7235 (xcoff_initial_scan): Update.
7236
09232438
TT
72372019-05-08 Tom Tromey <tom@tromey.com>
7238
7239 * solib-svr4.c (struct svr4_info): Add initializers and
7240 destructor.
7241 <probes_table>: Now an htab_up.
7242 (solib_svr4_pspace_data): Change type.
7243 (free_probes_table): Simplify.
7244 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7245 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7246 (probes_table_remove_objfile_probes, register_solib_event_probe)
7247 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7248 (_initialize_svr4_solib): Update.
7249
7b4a314f
TT
72502019-05-08 Tom Tromey <tom@tromey.com>
7251
7252 * remote.c (remote_pspace_data): Change type.
7253 (remote_pspace_data_cleanup): Remove.
7254 (get_remote_exec_file, set_pspace_remote_exec_file)
7255 (_initialize_remote): Update.
7256
51d3063a
TT
72572019-05-08 Tom Tromey <tom@tromey.com>
7258
7259 * breakpoint.c (breakpoint_objfile_key): Change type.
7260 (get_breakpoint_objfile_data): Update.
7261 (free_breakpoint_objfile_data): Remove.
7262 (_initialize_breakpoint): Update.
7263
89fb8848
TT
72642019-05-08 Tom Tromey <tom@tromey.com>
7265
7266 * linux-tdep.c (struct linux_info): Add initializers.
7267 (linux_inferior_data): Move. Change type.
7268 (invalidate_linux_cache_inf): Update.
7269 (linux_inferior_data_cleanup): Remove.
7270 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7271
e9b89e2d
TT
72722019-05-08 Tom Tromey <tom@tromey.com>
7273
7274 * auxv.c (auxv_inferior_data): Move. Change type.
7275 (auxv_inferior_data_cleanup): Remove.
7276 (invalidate_auxv_cache_inf): Rewrite.
7277 (get_auxv_inferior_data, _initialize_auxv): Update.
7278
8c42777c
TT
72792019-05-08 Tom Tromey <tom@tromey.com>
7280
7281 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7282 (symfile_debug_objfile_data_key): Change type.
7283 (symfile_debug_installed, debug_qf_has_symbols)
7284 (debug_qf_find_last_source_symtab)
7285 (debug_qf_forget_cached_source_info)
7286 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7287 (debug_qf_print_stats, debug_qf_dump)
7288 (debug_qf_expand_symtabs_for_function)
7289 (debug_qf_expand_all_symtabs)
7290 (debug_qf_expand_symtabs_with_fullname)
7291 (debug_qf_map_matching_symbols)
7292 (debug_qf_expand_symtabs_matching)
7293 (debug_qf_find_pc_sect_compunit_symtab)
7294 (debug_qf_map_symbol_filenames)
7295 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7296 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7297 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7298 (debug_sym_read_linetable, debug_sym_relocate): Update.
7299 (symfile_debug_free_objfile): Remove.
7300 (install_symfile_debug_logging, _initialize_symfile_debug):
7301 Update.
7302
5bfd760d
TT
73032019-05-08 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7306 allocate_on_obstack.
7307 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7308 (get_dwarf2_per_objfile): Update.
7309 (set_dwarf2_per_objfile): Remove.
7310 (dwarf2_has_info, dwarf2_get_section_info): Update.
7311 (dwarf2_free_objfile): Remove.
7312 (_initialize_dwarf2_read): Update.
7313
e85e19b4
TT
73142019-05-08 Tom Tromey <tom@tromey.com>
7315
7316 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7317 initializers.
7318 <unsupported_script_warning_printed,
7319 script_not_found_warning_printed>: Now bool.
7320 (auto_load_pspace_data): Change type.
7321 (~auto_load_pspace_info): Rename from
7322 auto_load_pspace_data_cleanup.
7323 (get_auto_load_pspace_data, init_loaded_scripts_info)
7324 (clear_section_scripts, maybe_print_unsupported_script_warning)
7325 (maybe_print_script_not_found_warning, _initialize_auto_load):
7326 Update.
7327
f6aa7436
TT
73282019-05-08 Tom Tromey <tom@tromey.com>
7329
7330 * objfiles.c (objfile_pspace_info): Add destructor and
7331 initializers.
7332 (objfiles_pspace_data): Change type.
7333 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7334 (get_objfile_pspace_data): Update.
7335 (objfiles_bfd_data): Change type.
7336 (get_objfile_bfd_data): Update.
7337 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7338
6ae614f6
TT
73392019-05-08 Tom Tromey <tom@tromey.com>
7340
7341 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7342 Change type.
7343 (get_catch_syscall_inferior_data): Update.
7344 (catch_syscall_inferior_data_cleanup): Remove.
7345 (_initialize_break_catch_syscall): Update.
7346
6509b8eb
TT
73472019-05-08 Tom Tromey <tom@tromey.com>
7348
7349 * inflow.c (struct terminal_info): Add destructor and
7350 initializers.
7351 (inflow_inferior_data): Change type.
7352 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7353 (get_inflow_inferior_data, inflow_inferior_exit)
7354 (swap_terminal_info, _initialize_inflow): Update.
7355
35632941
TT
73562019-05-08 Tom Tromey <tom@tromey.com>
7357
7358 * target-dcache.c (target_dcache_cleanup): Remove.
7359 (target_dcache_aspace_key): Change type.
7360 (target_dcache_init_p, target_dcache_invalidate)
7361 (target_dcache_get, target_dcache_get_or_init)
7362 (_initialize_target_dcache): Update.
7363 * dcache.h (struct dcache_deleter): New.
7364
3017b94d
TT
73652019-05-08 Tom Tromey <tom@tromey.com>
7366
7367 * symtab.c (struct symbol_cache): Add destructor and
7368 initializers.
7369 (symbol_cache_key): Move. Change type.
7370 (make_symbol_cache, free_symbol_cache): Remove.
7371 (get_symbol_cache): Update.
7372 (symbol_cache_cleanup): Remove.
7373 (ALL_PSPACES, symbol_cache_flush)
7374 (maintenance_print_symbol_cache)
7375 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7376 Update.
7377
a32ad8c5
TT
73782019-05-08 Tom Tromey <tom@tromey.com>
7379
7380 * symtab.c (struct main_info): Add destructor and initializers.
7381 (main_progspace_key): Move. Change type.
7382 (get_main_info): Update.
7383 (main_info_cleanup): Remove.
7384 (_initialize_symtab): Update.
7385
5f6e90a0
TT
73862019-05-08 Tom Tromey <tom@tromey.com>
7387
7388 * registry.h (DECLARE_REGISTRY): Define the _key class.
7389
1bd0c6e4
AB
73902019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7391
7392 * NEWS: Merge two 'New commands' sections.
7393
2228ef77
XR
73942019-05-08 Joel Brobecker <brobecker@adacore.com>
7395
7396 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7397 parameter and use Ada language definition instead.
7398 (ada_val_print_ptr): Remove unused language parameter.
7399 (ada_val_print_num): Remove language parameter and use Ada language
7400 definition instead.
7401 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7402 parameter.
7403 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7404 parameter and use Ada language definition instead.
7405 (ada_val_print_1): Update all ada_val_print_xxx calls.
7406 Remove language parameter.
7407 (ada_val_print): Update ada_val_print_1 call.
7408
60fcc1c3
TT
74092019-05-08 Tom Tromey <tromey@adacore.com>
7410
7411 * remote.c (remote_hw_watchpoint_limit)
7412 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7413 Now static.
7414
ed2b7c17
TT
74152019-05-08 Tom Tromey <tromey@adacore.com>
7416
7417 * maint.c (_initialize_maint_cmds): Move initialization code to
7418 remote.c.
7419 (watchdog, show_watchdog): Move to remote.c.
7420 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7421 "watchdog" static.
7422 (_initialize_remote): Move initialization code from maint.c.
7423 * defs.h (watchdog): Don't declare.
7424
b0be6c91
TT
74252019-05-08 Tom Tromey <tromey@adacore.com>
7426
7427 * tui/tui-interp.c: Include main.h.
7428 * interps.c: Include main.h.
7429 * main.h (interpreter_p): Declare.
7430 * defs.h (interpreter_p): Don't declare.
7431
587ee17b
TT
74322019-05-08 Tom Tromey <tromey@adacore.com>
7433
7434 * dwarf2loc.c: Include dwarf2read.h.
7435 * defs.h (read_unsigned_leb128): Don't declare.
7436 * dwarf2read.h (read_unsigned_leb128): Declare.
7437
ca1df239
TT
74382019-05-08 Tom Tromey <tromey@adacore.com>
7439
7440 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7441 method.
7442
99f20f08
TT
74432019-05-08 Tom Tromey <tromey@adacore.com>
7444
7445 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7446 when no wrap column is set.
7447
80e55b13
TT
74482019-05-08 Tom Tromey <tromey@adacore.com>
7449
7450 * c-lang.c (c_get_string): Handle non-C-style arrays.
7451
9d3421af
TT
74522019-05-08 Tom Tromey <tromey@adacore.com>
7453
7454 * typeprint.c (print_offset_data::update): Print the bit offset,
7455 not the number of bits remaining.
7456
844333e2
TT
74572019-05-08 Tom Tromey <tromey@adacore.com>
7458
7459 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7460 padding at end of comment.
7461
988915ee
TT
74622019-05-08 Tom Tromey <tromey@adacore.com>
7463
7464 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7465 Compare main types.
7466
26bfd823
TT
74672019-05-06 Tom Tromey <tom@tromey.com>
7468
7469 * common/scoped_mmap.c: Include common-defs.h.
7470 * common/scoped_mmap.h: Don't include config.h.
7471
89055eaa
TT
74722019-05-04 Tom Tromey <tom@tromey.com>
7473
7474 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7475 (struct aarch64_call_info): Add initializers.
7476 <si>: Now a std::vector.
7477 (pass_on_stack, aarch64_push_dummy_call): Update.
7478
5da01df5
TT
74792019-05-04 Simon Marchi <simon.marchi@efficios.com>
7480 Tom Tromey <tom@tromey.com>
7481
7482 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7483 (ppc_threads): Now a std::vector. Now static.
7484 (hwdebug_find_thread_points_by_tid)
7485 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7486 Update.
7487
fbdf05a1
TT
74882019-05-04 Tom Tromey <tom@tromey.com>
7489
7490 * arc-tdep.c (arc_tdesc_init): Return bool.
7491
06d16ec9
TT
74922019-05-04 Tom Tromey <tom@tromey.com>
7493
7494 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7495 Use gdb_assert_not_reached.
7496
9c056022
TT
74972019-05-04 Tom Tromey <tom@tromey.com>
7498
7499 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7500 "false".
7501
fa9c2a59
TT
75022019-05-04 Tom Tromey <tom@tromey.com>
7503
7504 * arc-tdep.c (arc_tdesc_init): Use bool.
7505
e2eb806a
TT
75062019-05-04 Tom Tromey <tom@tromey.com>
7507
7508 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7509
6fe87677
TT
75102019-05-04 Tom Tromey <tom@tromey.com>
7511
7512 * cli/cli-cmds.c (valid_command_p): Return bool.
7513
7f008c9e
TT
75142019-05-04 Tom Tromey <tom@tromey.com>
7515
7516 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7517 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7518
b6484282
RT
75192019-05-04 Raul Tambre <raul@tambre.ee>
7520
7521 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7522 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7523 operator for comparison.
7524
af97b416
TT
75252019-05-04 Tom Tromey <tom@tromey.com>
7526
7527 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7528 (lookup_partial_symbol, print_partial_symbols)
7529 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7530 (psymbol_compare): Update.
7531 (add_psymbol_to_bcache): Clear the entire psymbol.
7532 (maintenance_check_psymtabs): Update.
7533 * psympriv.h (struct partial_symbol): Don't derive from
7534 general_symbol_info.
7535 <obj_section, unrelocated_address, address,
7536 set_unrelocated_address>: Update.
7537 <ginfo>: New member.
7538 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7539 (debug_names::write_psymbols): Update.
7540
9d6d4be8
TV
75412019-05-04 Tom de Vries <tdevries@suse.de>
7542
7543 * contrib/cc-with-tweaks.sh: Support -n arg.
7544
66452beb
PW
75452019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7546
7547 * corelow.c (core_target::detach): Ensure frame cache and
7548 register caches are cleared.
7549 inferior.c (exit_inferior_1): Likewise.
7550
bde09ab7
TT
75512019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7552 Tom Tromey <tom@tromey.com>
7553
7554 * dictionary.c (collate_pending_symbols_by_language): Remove
7555 "struct" from foreach.
7556 * symtab.c (lookup_global_symbol_from_objfile)
7557 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7558 foreach.
7559 * ser-tcp.c (net_open): Remove "struct" from foreach.
7560 * objfiles.c (objfile_relocate, objfile_rebase)
7561 (objfile_has_symbols): Remove "struct" from foreach.
7562 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7563 from foreach.
7564 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7565 foreach.
7566 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7567 "struct" from foreach.
7568 * ada-lang.c (create_excep_cond_exprs)
7569 (ada_exception_catchpoint_cond_string): Remove "struct" from
7570 foreach.
7571
222a8d25
TT
75722019-05-03 Tom Tromey <tromey@adacore.com>
7573
7574 * ada-exp.y (convert_char_literal): Check suffix of each
7575 enumerator.
7576
fcd60b84
DP
75772019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7578
7579 PR ada/21406:
7580 * ada-exp.y (yywrap): Don't define.
7581 * ada-lex.l (%option): Add noyywrap
7582 (yywrap): Remove.
7583
5f2459c2
EZ
75842019-05-03 Eli Zaretskii <eliz@gnu.org>
7585
353ea2d1
EZ
7586 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7587 _WIN32_WINNT to the XP level, unless already defined to a higher
7588 level.
7589
7590 * unittests/parse-connection-spec-selftests.c:
7591 * ser-tcp.c:
7592 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7593 override.
7594
5f2459c2
EZ
7595 * symfile.c (find_separate_debug_file): Remove colon from the
7596 drive spec of DOS/Windows file names of the target, so that the
7597 file name produced from DEBUGDIR and the target's directory will
7598 be valid on DOS/Windows systems.
7599
80062eb9
AB
76002019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7601
7602 * rust-lang.c (val_print_struct): Handle printing structures
7603 containing strings.
7604
b8c05e85
TT
76052019-05-02 Tom Tromey <tromey@adacore.com>
7606
7607 * valarith.c (_initialize_valarith): Remove.
7608
4504bbde
TT
76092019-05-01 Tom Tromey <tromey@adacore.com>
7610
7611 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7612 bitfields.
7613
d48e62f4
TT
76142019-05-01 Tom Tromey <tromey@adacore.com>
7615
7616 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7617 for big-endian copies.
7618
15f18d14
AT
76192019-04-30 Ali Tamur <tamur@google.com>
7620 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7621 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7622 (read_3_bytes): New function.
7623
ab4ee614
JB
76242019-04-30 Joel Brobecker <brobecker@adacore.com>
7625
7626 * windows-nat.c (main_thread_id): Delete.
7627 (handle_output_debug_string): Replace main_thread_id by
7628 current_event.dwThreadId.
7629 (fake_create_process): Likewise.
7630 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7631 Do not set main_thread_id.
7632 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7633 current_event.dwThreadId.
7634 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7635
8ed5b76e
JB
76362019-04-30 Joel Brobecker <brobecker@adacore.com>
7637
7638 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7639 Use current_event.dwThreadId instead of main_thread_id.
7640
2ff0a947
TT
76412019-04-30 Tom Tromey <tromey@adacore.com>
7642
7643 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7644 (create_excep_cond_exprs): Iterate over program spaces.
7645 (ada_exception_catchpoint_cond_string): Examine all minimal
7646 symbols for exception types.
7647
a776957c
TT
76482019-04-30 Tom Tromey <tromey@adacore.com>
7649
7650 PR c++/24470:
7651 * dwarf2read.c (process_structure_scope): Handle case where type
7652 has template parameters but no symbol was created.
7653
bc68014d
AB
76542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7655 Chris January <chris.january@arm.com>
7656
7657 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7658 qualifier.
7659 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7660
f1fdc960
AB
76612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7662
7663 * f-typeprint.c (f_print_type): Update rules for printing
7664 whitespace.
7665 (f_type_print_varspec_suffix): Likewise.
7666
bf7a4de1
AB
76672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7668 Chris January <chris.january@arm.com>
7669
7670 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7671 function arguments.
7672
bbe75b9d
AB
76732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7674
7675 * f-lang.c (build_fortran_types): Change name of void type to
7676 lower case.
7677 * f-typeprint.c (f_type_print_base): Print the name of the void
7678 type, rather than a fixed string.
7679 * f-valprint.c (f_decorations): Use lower case void string.
7680
1db455a7
AB
76812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7682 Chris January <chris.january@arm.com>
7683
7684 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7685 types for Fortran.
7686
b6d03bb2
AB
76872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7688 Chris January <chris.january@arm.com>
7689 David Lecomber <david.lecomber@arm.com>
7690
7691 * f-exp.y (BINOP_INTRINSIC): New token.
7692 (exp): New parser rule handling BINOP_INTRINSIC.
7693 (f77_keywords): Add new builtin procedures.
7694 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7695 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7696 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7697 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7698 (print_unop_subexp_f): New function.
7699 (print_binop_subexp_f): New function.
7700 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7701 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7702 (dump_subexp_body_f): Likewise.
7703 (operator_check_f): Likewise.
7704 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7705 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7706
83228e93
AB
77072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7710 UNOP_KIND.
7711 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7712 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7713 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7714 (operator_length_f): New fuction.
7715 (print_subexp_f): New function.
7716 (op_name_f): New function.
7717 (dump_subexp_body_f): New function.
7718 (operator_check_f): New function.
7719 (exp_descriptor_f): Replace standard expression handling functions
7720 with new functions.
7721 * gdb/fortran-operator.def: New file.
7722 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7723 * gdb/std-operator.def: Remove UNOP_KIND.
7724
6fdcd7cc
AB
77252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * std-operator.def: Remove unbalanced, stray double quote
7728 character.
7729
2e62ab40
AB
77302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7731 Chris January <chris.january@arm.com>
7732 Daniel Everett <daniel.everett@arm.com>
7733 Nick Forrington <nick.forrington@arm.com>
7734 Richard Bunt <richard.bunt@arm.com>
7735
7736 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7737 of depth when printing anonymous structs or unions.
7738 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7739 Don't print either the top-level value, or the children if the
7740 max-depth is exceeded.
7741 (ppscm_print_children): When printing the key of a map, allow one
7742 extra level of depth.
7743 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7744 print either the top-level value, or the children if the max-depth
7745 is exceeded.
7746 (print_children): When printing the key of a map, allow one extra
7747 level of depth.
7748 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7749 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7750 (user_print_options): Initialise max_depth field.
7751 (val_print_scalar_or_string_type_p): New function.
7752 (val_print): Check to see if the max depth has been reached.
7753 (val_print_check_max_depth): Define new function.
7754 (show_print_max_depth): New function.
7755 (_initialize_valprint): Add 'print max-depth' option.
7756 * valprint.h (struct value_print_options) <max_depth>: New field.
7757 (val_print_check_max_depth): Declare new function.
7758 * NEWS: Document new feature.
7759
4be290b2
AB
77602019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7761
7762 * ada-lang.c (ada_language_defn): Initialise new field.
7763 * c-lang.c (c_is_string_type_p): New function.
7764 (c_language_defn): Initialise new field.
7765 (cplus_language_defn): Initialise new field.
7766 (asm_language_defn): Initialise new field.
7767 (minimal_language_defn): Initialise new field.
7768 * c-lang.h (c_is_string_type_p): Declare new function.
7769 * d-lang.c (d_language_defn): Initialise new field.
7770 * f-lang.c (f_is_string_type_p): New function.
7771 (f_language_defn): Initialise new field.
7772 * go-lang.c (go_is_string_type_p): New function.
7773 (go_language_defn): Initialise new field.
7774 * language.c (default_is_string_type_p): New function.
7775 (unknown_language_defn): Initialise new field.
7776 (auto_language_defn): Initialise new field.
7777 * language.h (struct language_defn) <la_is_string_type_p>: New
7778 member variable.
7779 (default_is_string_type_p): Declare new function.
7780 * m2-lang.c (m2_language_defn): Initialise new field.
7781 * objc-lang.c (objc_language_defn): Initialise new field.
7782 * opencl-lang.c (opencl_language_defn): Initialise new field.
7783 * p-lang.c (pascal_is_string_type_p): New function.
7784 (pascal_language_defn): Initialise new field.
7785 * rust-lang.c (rust_is_string_type_p): New function.
7786 (rust_language_defn): Initialise new field.
7787
721b08c6
AB
77882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7791 New field.
7792 * ada-lang.c (ada_language_defn): Initialise new field.
7793 * c-lang.c (c_language_defn): Likewise.
7794 (cplus_language_defn): Likewise.
7795 (asm_language_defn): Likewise.
7796 (minimal_language_defn): Likewise.
7797 * d-lang.c (d_language_defn): Likewise.
7798 * f-lang.c (f_language_defn): Likewise.
7799 * go-lang.c (go_language_defn): Likewise.
7800 * language.c (unknown_language_defn): Likewise.
7801 (auto_language_defn): Likewise.
7802 * m2-lang.c (m2_language_defn): Likewise.
7803 * objc-lang.c (objc_language_defn): Likewise.
7804 * opencl-lang.c (opencl_language_defn): Likewise.
7805 * p-lang.c (pascal_language_defn): Likewise.
7806 * rust-lang.c (rust_language_defn): Likewise.
7807
fc913e53
AB
78082019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7809
7810 * ada-lang.c (ada_is_character_type): Change return type to bool.
7811 (ada_is_string_type): Likewise.
7812 * ada-lang.h (ada_is_character_type): Update declaration
7813 (ada_is_string_type): Likewise.
7814
fa731fa0
PW
78152019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7816
7817 Support style in 'frame|thread apply'
7818
7819 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7820 * record.c (record_start, record_stop): Update callers of
7821 execute_command_to_string with false.
7822 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7823 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7824 methods.
7825 (class string_file): New constructor with term_out parameter.
7826 Override methods term_out and can_emit_style_escape. New member
7827 term_out.
7828 (class stdio_file): Override can_emit_style_escape.
7829 (class tee_file): Override term_out and can_emit_style_escape.
7830 * utils.h (can_emit_style_escape): Remove.
7831 * utils.c (can_emit_style_escape): Likewise.
7832 Update all callers of can_emit_style_escape (SOMESTREAM) to
7833 SOMESTREAM->can_emit_style_escape.
7834 * source-cache.c (source_cache::get_source_lines): Likewise.
7835 * stack.c (frame_apply_command_count): Call execute_command_to_string
7836 passing the term_out characteristic of the current gdb_stdout.
7837 * thread.c (thr_try_catch_cmd): Likewise.
7838 * top.c (execute_command_to_string): pass term_out parameter
7839 to construct the string_file for the command output.
7840 * ui-file.c (term_cli_styling): New function (most code moved
7841 from utils.c can_emit_style_escape).
7842 (string_file::string_file, string_file::can_emit_style_escape,
7843 stdio_file::can_emit_style_escape, tee_file::term_out,
7844 tee_file::can_emit_style_escape): New functions.
7845
136afab8
PW
78462019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7847
7848 * NEWS: Mention the new set|show may-call-functions.
7849 * infcall.c (may_call_functions_p): New variable.
7850 (show_may_call_functions_p): New function.
7851 (call_function_by_hand_dummy): Throws an error if not
7852 may-call-functions.
7853 (_initialize_infcall): Call add_setshow_boolean_cmd for
7854 may-call-functions.
7855
725cbb63
KS
78562019-04-25 Keith Seitz <keiths@redhat.com>
7857
7858 PR c++/24367
7859 * cp-support.c (inspect_type): Don't attempt substitutions
7860 of symbol with the same name.
7861
3d1cbb78
TT
78622019-04-25 Tom Tromey <tromey@adacore.com>
7863
7864 PR gdb/24475:
7865 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7866 static.
7867
94aeb44b
TT
78682019-04-25 Tom Tromey <tromey@adacore.com>
7869
7870 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7871 rvalue reference.
7872 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7873 (gdb_xml_parser::parse): Use std::move.
7874 * python/python-internal.h (gdbpy_convert_exception): Take a const
7875 reference.
7876 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7877 std::move.
7878 * python/py-utils.c (gdbpy_convert_exception): Take a const
7879 reference.
7880 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7881 Use std::move.
7882 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7883 Use std::move.
7884 * mi/mi-main.c (mi_print_exception): Take a const reference.
7885 * main.c (handle_command_errors): Take a const reference.
7886 * linespec.c (parse_linespec): Use std::move.
7887 * infcall.c (run_inferior_call): Use std::move.
7888 (call_function_by_hand_dummy): Use std::move.
7889 * exec.c (try_open_exec_file): Use std::move.
7890 * exceptions.h (exception_print, exception_fprintf)
7891 (exception_print_same): Update.
7892 * exceptions.c (print_exception, exception_print)
7893 (exception_fprintf, exception_print_same): Change parameters to
7894 const reference.
7895 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7896 * common/new-op.c: Use std::move.
7897 * common/common-exceptions.h (struct gdb_exception): Add move
7898 constructor.
7899 (struct gdb_exception_error, struct gdb_exception_quit, struct
7900 gdb_quit_bad_alloc): Change constructor to move constructor.
7901 (throw_exception): Change parameter to rvalue reference.
7902 * common/common-exceptions.c (throw_exception): Take rvalue
7903 reference.
7904 * cli/cli-interp.c (safe_execute_command): Use std::move.
7905 * breakpoint.c (insert_bp_location, location_to_sals): Use
7906 std::move.
7907
680d7fd5
TT
79082019-04-25 Tom Tromey <tromey@adacore.com>
7909
7910 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7911 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7912 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7913 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7914 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7915 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7916 guile/scm-value.c: Use unpack.
7917 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7918 gdbscm_gdb_exception.
7919 (gdbscm_throw_gdb_exception): Likewise.
7920 (struct gdbscm_gdb_exception): New.
7921 (unpack): New function.
7922 (gdbscm_wrap): Use unpack.
7923
c6fdd8b2
TT
79242019-04-25 Tom Tromey <tromey@adacore.com>
7925
7926 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7927 (gdb_rl_callback_handler): Use std::move.
7928 * common/common-exceptions.h (struct gdb_exception): Add move
7929 assignment operator.
7930 (throw_exception_sjlj): Change "exception" to const reference.
7931 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7932 (throw_exception_sjlj): Change "exception" to const reference.
7933
cc06b668
TT
79342019-04-25 Tom Tromey <tromey@adacore.com>
7935
7936 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7937 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7938 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7939 Update.
7940 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7941 Update.
7942 * mi/mi-interp.c (mi_interp::exec): Update.
7943 * linespec.c (parse_linespec): Update.
7944 * infcall.c (run_inferior_call): Update.
7945 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7946 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7947 (gdbscm_lookup_global_symbol): Update.
7948 * guile/scm-param.c (gdbscm_parameter_value): Update.
7949 * guile/scm-frame.c (gdbscm_frame_read_register)
7950 (gdbscm_frame_read_var): Update.
7951 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7952 * exec.c (try_open_exec_file): Update.
7953 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7954 (gdb_rl_callback_handler): Update.
7955 * common/common-exceptions.h (exception_none): Don't declare.
7956 * common/common-exceptions.c (exception_none): Don't define.
7957 (struct catcher) <exception>: Update.
7958 * cli/cli-interp.c (safe_execute_command): Update.
7959 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7960
cf532bd1
AT
79612019-04-25 Ali Tamur <tamur@google.com>
7962
7963 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7964 (read_attribute_value): Likewise.
7965 (dwarf2_read_addr_index): Update comment.
7966 (read_str_index): Add DW_FORM_strx.
7967 (dwarf2_string_attr): Likewise.
7968 (dwarf2_const_value_attr): Likewise.
7969 (dump_die_shallow): Likewise.
7970 (dwarf2_fetch_constant_bytes): Likewise.
7971 (skip_form_bytes): Likewise.
7972 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7973
82433e3e
SDJ
79742019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7975
7976 PR corefiles/11608
7977 PR corefiles/18187
7978 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7979 OFFSET. Verify if current mapping contains an ELF header.
7980 (linux_find_memory_regions_full): Adjust call to
7981 dump_mapping_p.
7982
723adb65
SL
79832019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7984 Kang Li <kanglictf@gmail.com>
7985
7986 PR gdb/21600
7987
7988 * dwarf2-frame.c (read_initial_length): Be consistent about using
7989 unsigned representation of length.
7990 (decode_frame_entry_1): Likewise. Check for wraparound of
7991 end pointer as well as buffer overflow.
7992
596179f7
SDJ
79932019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7994
7995 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7996 "vq".
7997
a59240a4
TT
79982019-04-24 Tom Tromey <tromey@adacore.com>
7999
8000 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8001
f872fdbb
AB
80022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * s12z-tdep.c (s12z_unwind_pc): Delete.
8005 (s12z_unwind_sp): Delete.
8006 (s12z_gdbarch_init): Don't register deleted functions with
8007 gdbarch.
8008
b614e6f3
AB
80092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * rl78-tdep.c (rl78_unwind_sp): Delete.
8012 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8013
14faed38
AB
80142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8017 (xstormy16_unwind_pc): Delete.
8018 (xstormy16_dummy_id): Delete.
8019 (xstormy16_gdbarch_init): Don't register deleted functions with
8020 gdbarch.
8021
541aad8a
AB
80222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * vax-tdep.c (vax_unwind_pc): Delete.
8025 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8026
29222070
AB
80272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8028
8029 * v850-tdep.c (v850_unwind_sp): Delete.
8030 (v850_unwind_pc): Delete.
8031 (v850_dummy_id): Delete.
8032 (v850_gdbarch_init): Don't register deleted functions with
8033 gdbarch.
8034
0f534d76
AB
80352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8038 (tilegx_unwind_pc): Delete.
8039 (tilegx_unwind_dummy_id): Delete.
8040 (tilegx_gdbarch_init): Don't register deleted functions with
8041 gdbarch.
8042
1ba7b7f9
AB
80432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8046 (tic6x_dummy_id): Delete.
8047 (tic6x_gdbarch_init): Don't register deleted functions with
8048 gdbarch.
8049
d31f262c
AB
80502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8051
8052 * sparc-tdep.c (sparc_unwind_pc): Delete.
8053 (sparc32_gdbarch_init): Don't register deleted function with
8054 gdbarch.
8055
6d14d64d
AB
80562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8057
8058 * sh-tdep.c (sh_unwind_sp): Delete.
8059 (sh_unwind_pc): Delete.
8060 (sh_dummy_id): Delete.
8061 (sh_gdbarch_init): Don't register deleted functions with
8062 gdbarch.
8063
a40dde9d
AB
80642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8065
8066 * score-tdep.c (score_unwind_sp): Delete.
8067 (score_unwind_pc): Delete.
8068 (score_dummy_id): Delete.
8069 (score_gdbarch_init): Don't register deleted functions with
8070 gdbarch.
8071
47c47d69
AB
80722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * rx-tdep.c (rx_unwind_pc): Delete.
8075 (rx_unwind_sp): Delete.
8076 (rx_dummy_id): Delete.
8077 (rx_gdbarch_init): Don't register deleted functions with
8078 gdbarch. Update comment.
8079
833a4480
AB
80802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8083 (rs6000_dummy_id): Delete.
8084 (rs6000_gdbarch_init): Don't register deleted functions with
8085 gdbarch.
8086
3f2cef49
AB
80872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8088
8089 * or1k-tdep.c (or1k_dummy_id): Delete.
8090 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8091
96acf884
AB
80922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * nios2-tdep.c (nios2_dummy_id): Delete.
8095 (nios2_unwind_sp): Delete.
8096 (nios2_gdbarch_init): Don't register deleted functions with
8097 gdbarch.
8098
ca0ab0aa
AB
80992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8100
8101 * nds32-tdep.c (nds32_dummy_id): Delete.
8102 (nds32_unwind_pc): Delete.
8103 (nds32_unwind_sp): Delete.
8104 (nds32_gdbarch_init): Don't register deleted functions with
8105 gdbarch.
8106
c8259044
AB
81072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * msp430-tdep.c (msp430_unwind_pc): Delete.
8110 (msp430_unwind_sp): Delete.
8111 (msp430_dummy_id): Delete.
8112 (msp430_gdbarch_init): Don't register deleted functions with
8113 gdbarch.
8114
27f113c8
AB
81152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8116
8117 * moxie-tdep.c (moxie_unwind_sp): Delete.
8118 (moxie_unwind_pc): Delete.
8119 (moxie_dummy_id): Delete.
8120 (moxie_gdbarch_init): Don't register deleted functions with
8121 gdbarch.
8122
aee6c3cd
AB
81232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8124
8125 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8126 (mn10300_unwind_pc): Delete.
8127 (mn10300_unwind_sp): Delete.
8128 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8129 mn10300_unwind_sp.
8130 (mn10300_frame_unwind_init): Don't register deleted functions with
8131 gdbarch.
8132
8e2b5aea
AB
81332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * mep-tdep.c (mep_unwind_pc): Delete.
8136 (mep_unwind_sp): Delete.
8137 (mep_dummy_id): Delete.
8138 (mep_gdbarch_init): Don't register deleted functions with
8139 gdbarch.
8140
43cf3ede
AB
81412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8144 (m68hc11_unwind_sp): Delete.
8145 (m68hc11_gdbarch_init): Don't register deleted functions with
8146 gdbarch.
8147
5e79b7bb
AB
81482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * m32r-tdep.c (m32r_unwind_sp): Delete.
8151 (m32r_unwind_pc): Delete.
8152 (m32r_dummy_id): Delete.
8153 (m32r_gdbarch_init): Don't register deleted functions with
8154 gdbarch.
8155
89b268d8
AB
81562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8157
8158 * m32c-tdep.c (m32c_unwind_pc): Delete.
8159 (m32c_unwind_sp): Delete.
8160 (m32c_dummy_id): Delete.
8161 (m32c_gdbarch_init): Don't register deleted functions with
8162 gdbarch.
8163
946c28d2
AB
81642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8165
8166 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8167 (lm32_unwind_pc): Delete.
8168 (lm32_dummy_id): Delete.
8169 (lm32_gdbarch_init): Don't register deleted functions with
8170 gdbarch.
8171
bf12844a
AB
81722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8175 (iq2000_unwind_pc): Delete.
8176 (iq2000_dummy_id): Delete.
8177 (iq2000_gdbarch_init): Don't register deleted functions with
8178 gdbarch.
8179
ecbc06d2
AB
81802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8181
8182 * nds32-tdep.c (nds32_type_align): Delete.
8183 (nds32_push_dummy_call): Use type_align instead.
8184
030197b4
AB
81852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8186
8187 * arm-tdep.c (arm_type_align): Only handle vector override case.
8188 (arm_push_dummy_call): Use type_align.
8189 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8190
b907456c
AB
81912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8192
8193 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8194 case.
8195 (pass_on_stack): Use type_align.
8196 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8197 function.
8198
9e97ba43
TT
81992019-04-23 Tom Tromey <tromey@adacore.com>
8200
8201 * dwarf2read.c (line_header::file_name_at): Remove unused
8202 overload.
8203
6892f601
TV
82042019-04-23 Tom de Vries <tdevries@suse.de>
8205
8206 PR gdb/24438
8207 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8208 invocation.
8209
336d760d
AT
8210
82112019-03-27 Ali Tamur <tamur@google.com>
8212
8213 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8214 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8215 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8216 (dwarf_expr_context::get_addr_index): Likewise
8217 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8218 (symbol_needs_eval_context::get_addr_index): Likewise
8219 (disassemble_dwarf_expression): Add DW_OP_addrx
8220 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8221 (read_cutu_die_from_dwo): Update comment
8222 (skip_one_die): Add DW_FORM_addrx
8223 (read_attribute_value): Likewise
8224 (var_decode_location): Add DW_OP_addrx
8225 (dwarf2_const_value_attr): Add DW_FORM_addrx
8226 (dump_die_shallow): Likewise
8227 (dwarf2_fetch_constant_bytes): Likewise
8228 (decode_locdesc): Add DW_OP_addrx
8229 (skip_form_bytes): Add DW_FORM_addrx
8230
ad9d13f8
AT
82312019-04-22 Ali Tamur <tamur@google.com>
8232
8233 * MAINTAINERS (Write After Approval): Add self.
8234
d70cc3ba
SM
82352019-04-22 Simon Marchi <simon.marchi@efficios.com>
8236
8237 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8238 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8239 (open_symbol_file_object): Likewise.
8240 (svr4_default_sos): Add info parameter.
8241 (svr4_read_so_list): Likewise.
8242 (svr4_current_sos_direct): Adjust functions calls to pass down
8243 info.
8244 (svr4_current_sos_1): Add info parameter.
8245 (svr4_current_sos): Call get_svr4_info, pass info down to
8246 svr4_current_sos_1.
8247 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8248 get_svr4_info.
8249 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8250 get_svr4_info.
8251 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8252 to get_svr4_info.
8253 (probes_table_remove_objfile_probes): Likewise.
8254 (register_solib_event_probe): Add info parameter.
8255 (solist_update_incremental): Pass info parameter down to
8256 svr4_read_so_list.
8257 (disable_probes_interface): Add info parameter.
8258 (svr4_handle_solib_event): Pass current_program_space to
8259 get_svr4_info. Adjust disable_probes_interface cleanup.
8260 (svr4_create_probe_breakpoints): Add info parameter, pass it
8261 down to register_solib_event_probe.
8262 (svr4_create_solib_event_breakpoints): Add info parameter,
8263 pass it down to svr4_create_probe_breakpoints.
8264 (enable_break): Pass info down to
8265 svr4_create_solib_event_breakpoints.
8266 (svr4_solib_create_inferior_hook): Pass current_program_space to
8267 get_svr4_info.
8268 (svr4_clear_solib): Likewise.
8269
7905fc35
PA
82702019-04-22 Pedro Alves <palves@redhat.com>
8271
8272 * solib-svr4.c (svr4_free_objfile_observer): New.
8273 (probe_and_action::objfile): New field.
8274 (probes_table_htab_remove_objfile_probes)
8275 (probes_table_remove_objfile_probes): New functions.
8276 (register_solib_event_probe): Add 'objfile' parameter. Store it
8277 in the new probe_and_action. Don't store the probe in 'lookup'.
8278 (svr4_create_probe_breakpoints): Pass objfile to
8279 register_solib_event_probe.
8280 (_initialize_svr4_solib): Register a free_objfile observer.
8281
fb881986
TT
82822019-04-19 Tom Tromey <tom@tromey.com>
8283
8284 * common/queue.h: Remove.
8285
8732db6c
TT
82862019-04-19 Tom Tromey <tom@tromey.com>
8287
8288 * event-loop.c: Don't include "common/queue.h".
8289
97dfbadd
TT
82902019-04-19 Tom Tromey <tom@tromey.com>
8291
8292 * remote.c (remote_target): Use delete.
8293 * remote-notif.h: Include <list>, not "common/queue.h".
8294 (notif_client_p): Remove typedef.
8295 (remote_notif_state): Add constructor, destructor, initializer.
8296 <notif_queue>: Now a std::list.
8297 (remote_notif_state_xfree): Don't declare.
8298 * remote-notif.c (remote_notif_process, handle_notification)
8299 (remote_notif_state_allocate): Update.
8300 (~remote_notif_state): Rename from remote_notif_state_xfree.
8301
cf250e36
TT
83022019-04-19 Tom Tromey <tom@tromey.com>
8303
8304 * symfile.c (reread_symbols): Update.
8305 * objfiles.c (objfile_register_static_link)
8306 (objfile_lookup_static_link): Update
8307 (~objfile) Don't delete static_links.
8308 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8309
61f4b350
TT
83102019-04-19 Tom Tromey <tom@tromey.com>
8311
8312 * type-stack.h (struct type_stack) <insert>: Constify string.
8313 * type-stack.c (type_stack::insert): Constify string.
8314 * gdbtypes.h (lookup_template_type): Update.
8315 (address_space_name_to_int): Update.
8316 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8317 const.
8318 (lookup_template_type): Make name const.
8319 * c-exp.y: Update rules.
8320 (lex_one_token, classify_name, classify_inner_name)
8321 (c_print_token): Update.
8322 * p-exp.y: Update rules.
8323 (yylex): Update.
8324 * f-exp.y: Update rules.
8325 (yylex): Update.
8326 * d-exp.y: Update rules.
8327 (lex_one_token, classify_name, classify_inner_name): Update.
8328 * parse.c (write_dollar_variable, copy_name): Return std::string.
8329 * parser-defs.h (copy_name): Change return type.
8330 * m2-exp.y: Update rules.
8331 (yylex): Update.
8332 * go-exp.y (lex_one_token): Update.
8333 Update rules.
8334 (classify_unsafe_function, classify_packaged_name)
8335 (classify_name, yylex): Update.
8336
189b8c2e
ST
83372019-04-19 Sergei Trofimovich <siarheit@google.com>
8338
8339 * configure.ac: add --enable-source-highlight switch.
8340 * configure: Regenerate.
8341 * top.c (print_gdb_version): plumb --enable-source-highlight
8342 status to "show configuration".
8343
8ecb59f8
TT
83442019-04-19 Tom Tromey <tromey@adacore.com>
8345
8346 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8347 Check ADA_TYPE_P.
8348 (empty_record, ada_template_to_fixed_record_type_1)
8349 (template_to_static_fixed_type)
8350 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8351 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8352 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8353 macros.
8354
62160ec9
TT
83552019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8356
8357 PR symtab/24423:
8358 * source.c (print_source_lines_base): Advance "iter" when a
8359 control character is seen.
8360
f2ae8bc8
PW
83612019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8362
8363 * inferior.h (struct infcall_suspend_state_deleter):
8364 Catch exception in destructor to avoid crash.
8365
d563b953
PW
83662019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8367
8368 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8369 close to the add_com "shell".
8370
dc34c897
TT
83712019-04-18 Tom Tromey <tromey@adacore.com>
8372
8373 * process-stratum-target.h (class process_stratum_target)
8374 <stratum>: Add "final".
8375
a12e5744
TT
83762019-04-17 Tom Tromey <tromey@adacore.com>
8377
8378 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8379 against nullptr before use.
8380
a7e559cc
AH
83812019-04-17 Alan Hayward <alan.hayward@arm.com>
8382
8383 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8384
c01660c6
AB
83852019-04-17 Jim Wilson <jimw@sifive.com>
8386 Andrew Burgess <andrew.burgess@embecosm.com>
8387
8388 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8389 code read might fail, assume 4-byte breakpoint in that case.
8390
4aa866af
LS
83912019-04-15 Leszek Swirski <leszeks@google.com>
8392
8393 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8394 rather than a hand-rolled POD check when checking for forced MEMORY
8395 classification.
8396
48574d91
AH
83972019-04-15 Alan Hayward <alan.hayward@arm.com>
8398
8399 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8400 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8401 function.
8402 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8403 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8404 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8405 declaration.
8406
4da037ef
AH
84072019-04-15 Alan Hayward <alan.hayward@arm.com>
8408
8409 * aarch64-linux-nat.c
8410 (aarch64_linux_nat_target::thread_architecture): Add override.
8411 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8412 each VQ.
8413
ccb8d7e8
AH
84142019-04-15 Alan Hayward <alan.hayward@arm.com>
8415
8416 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8417
35add35e
AB
84182019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8419
8420 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8421 target types of size 96-bits, add some additional comments, and
8422 check that the builtin type we found was the correct size.
8423
51196bbc
EZ
84242019-04-12 Eli Zaretskii <eliz@gnu.org>
8425
8426 * utils.c (prompt_for_continue): Don't restore the styling at the
8427 end, as applied_style has the wrong value. This fixes styling in
8428 long lists of file names that are interrupted by the "Continue?"
8429 prompt.
8430
62253a61
AB
84312019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8432
8433 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8434 * c-lang.c (c_language_defn): Likewise.
8435 (cplus_language_defn): Likewise.
8436 (asm_language_defn): Likewise.
8437 (minimal_language_defn): Likewise.
8438 * d-lang.c (d_language_defn): Likewise.
8439 * f-lang.c (f_language_defn): Likewise.
8440 * go-lang.c (go_language_defn): Likewise.
8441 * language.c (unknown_language_defn): Likewise.
8442 (auto_language_defn): Likewise.
8443 * language.h (struct language_defn): Remove la_magic field.
8444 (LANG_MAGIC): Delete.
8445 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8446 * objc-lang.c (objc_language_defn): Likewise.
8447 * opencl-lang.c (opencl_language_defn): Likewise.
8448 * p-lang.c (pascal_language_defn): Likewise.
8449 * rust-lang.c (rust_language_defn): Likewise.
8450
a9158a86
AB
84512019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * riscv-tdep.c (riscv_type_align): New function.
8454 (riscv_type_alignment): Delete.
8455 (riscv_arg_location): Use 'type_align'.
8456 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8457
41077b66
AB
84582019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * gdbtypes.c (type_align): A struct with no non-static fields also
8461 has alignment of 1.
8462
9f0272f8
AB
84632019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8464
8465 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8466 component to 0.
8467 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8468 member.
8469 (riscv_struct_info::analyse): New implementation using new
8470 analyse_inner member function.
8471 (riscv_struct_info::field_offset): New member function.
8472 (riscv_struct_info::m_offsets): New member variable.
8473 (riscv_struct_info::analyse_inner): New private member function,
8474 takes the old implementation of riscv_struct_info::analyse but
8475 extended to track field offsets.
8476 (riscv_call_arg_struct): Update the struct folding special cases
8477 to handle cases where empty C++ structs, which are non-zero
8478 length, are found.
8479 (riscv_arg_location): Initialise the length of each location, a
8480 non-zero length now indicates the location is in use.
8481 (riscv_push_dummy_call): Allow for the first location having a
8482 non-zero offset when setting up arguments.
8483 (riscv_return_value): Likewise, but for return values.
8484
02cf60c7
TT
84852019-04-11 Tom Tromey <tromey@adacore.com>
8486
8487 * utils.c (internal_vproblem): Make "msg" const.
8488
68811f8f
AH
84892019-04-11 Alan Hayward <alan.hayward@arm.com>
8490
8491 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8492 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8493 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8494 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8495
3f52fdbc
KB
84962019-04-10 Kevin Buettner <kevinb@redhat.com>
8497
8498 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8499 function.
8500 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8501 of amd64_collect_native_gregset.
8502 (amd64_linux_nat_target::store_registers): Likewise.
8503
e9ad22ee
TT
85042019-04-10 Tom Tromey <tom@tromey.com>
8505
8506 * symtab.c (lookup_global_symbol_from_objfile)
8507 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8508 * objfiles.h (class separate_debug_iterator): New.
8509 (class separate_debug_range): New.
8510 (struct objfile) <separate_debug_objfiles>: New method.
8511 (objfile_separate_debug_iterate): Don't declare.
8512 * objfiles.c (separate_debug_iterator::operator++): Rename from
8513 objfile_separate_debug_iterate.
8514 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8515 iterator.
8516 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8517 iterator.
8518
ee371134
TT
85192019-04-10 Tom Tromey <tom@tromey.com>
8520
8521 * symfile.c (reread_symbols): Remove old comment.
8522 * objfiles.c (free_all_objfiles): Fix a typo.
8523
bf227d61
TT
85242019-04-10 Tom Tromey <tom@tromey.com>
8525
8526 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8527 * minsyms.c (lookup_minimal_symbol): Use foreach.
8528 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8529 (lookup_minimal_symbol_solib_trampoline): Likewise.
8530 * symfile.c (reread_symbols): Use foreach.
8531
8dc433a0
TT
85322019-04-09 Ivan Begert <ivanbegert@gmail.com>
8533 Tom Tromey <tromey@adacore.com>
8534
8535 PR rust/24414:
8536 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8537 (rust_lex_int_test): Change "value" to be LONGEST.
8538 (rust_lex_tests): Add test for long integer literal.
8539
9ab8741a
TT
85402019-04-09 Tom Tromey <tromey@adacore.com>
8541
8542 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8543 to bool.
8544 (extended_remote_target::attach): Update.
8545 (remote_target::remote_notice_new_inferior): Update.
8546 (remote_target::add_current_inferior_and_thread): Update.
8547 * inferior.c (exit_inferior_1): Use "false".
8548 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8549
e242fd12
SM
85502019-04-09 Simon Marchi <simon.marchi@efficios.com>
8551
9ca1957f 8552 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8553 the "start" command.
8554
2b0c8b01
KB
85552019-04-08 Kevin Buettner <kevinb@redhat.com>
8556
8557 * python/py-inferior.c (infpy_thread_from_thread_handle):
8558 Adjust comments to reflect renaming of thread_from_thread_handle
8559 to thread_from_handle. Adjust keywords. Fix type error message.
8560 (inferior_object_methods): Add thread_from_handle. Retain
8561 thread_from_thread_handle, but mark it as deprecated.
8562
50a82723
KB
85632019-04-08 Kevin Buettner <kevinb@redhat.com>
8564
8565 * gdbthread.h (find_thread_by_handle): Revise declaration.
8566 * thread.c (find_thread_by_handle): Likewise. Adjust
8567 implementation too.
8568 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8569 support for buffer objects as handles.
8570
cf63b016
KB
85712019-04-08 Kevin Buettner <kevinb@redhat.com>
8572
8573 * python/py-infthread.c (thpy_thread_handle): New function.
8574 (thread_object_methods): Register thpy_thread_handle.
8575
3d6c6204
KB
85762019-04-08 Kevin Buettner <kevinb@redhat.com>
8577
8578 * gdbthread.h (thread_to_thread_handle): Declare.
8579 * thread.c (gdbtypes.h): Include.
8580 (thread_to_thread_handle): New function.
8581
8582 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8583 (target_thread_info_to_thread_handle): Declare.
8584 * target.c (target_thread_info_to_thread_handle): New function.
8585 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8586 * target-delegates.c: Regenerate.
8587
8588 * linux-thread-db.c (class thread_db_target): Add method
8589 thread_info_to_thread_handle.
8590 (thread_db_target::thread_info_to_thread_handle): Define.
8591 * remote.c (class remote_target): Add new method
8592 thread_info_to_thread_handle.
8593 (remote_target::thread_info_to_thread_handle): Define.
8594
56be6ea8
PA
85952019-04-08 Pedro Alves <palves@redhat.com>
8596
8597 * common/common-exceptions.c (throw_exception): Don't create
8598 named object to throw; throw directly.
8599 (throw_it): Likewise. Don't initialize gdb_exception::message
8600 here, with new; pass FMT and AP to the ctor instead.
8601 * common/common-exceptions.h: Include <string>.
8602 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8603 const char *, va_list)): New ctor. Use std::make_shared.
8604 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8605 errors)): Delete.
8606 (gdb_exception_error::gdb_exception_error(enum errors, const char
8607 *, va_list)): New.
8608 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8609 Add assertion.
8610 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8611 errors)): Delete.
8612 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8613 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8614 Add assertion.
8615
eedc3f4f
TT
86162019-04-08 Tom Tromey <tom@tromey.com>
8617
8618 * valops.c (value_rtti_indirect_type): Replace throw_exception
8619 with throw.
8620 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8621 with throw.
8622 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8623 throw.
8624 * target.c (target_translate_tls_address): Replace throw_exception
8625 with throw.
8626 * stack.c (frame_apply_command_count): Replace throw_exception
8627 with throw.
8628 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8629 throw.
8630 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8631 with throw.
8632 * rs6000-tdep.c (rs6000_frame_cache)
8633 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8634 * remote.c: Replace throw_exception with throw.
8635 * record-full.c (record_full_message, record_full_wait_1)
8636 (record_full_restore): Replace throw_exception with throw.
8637 * record-btrace.c:
8638 (get_thread_current_frame_id, record_btrace_start_replaying)
8639 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8640 (cmd_record_btrace_start): Replace throw_exception with throw.
8641 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8642 throw.
8643 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8644 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8645 * linespec.c:
8646 (find_linespec_symbols): Replace throw_exception with throw.
8647 * infrun.c (displaced_step_prepare, resume): Replace
8648 throw_exception with throw.
8649 * infcmd.c (post_create_inferior): Replace throw_exception with
8650 throw.
8651 * inf-loop.c (inferior_event_handler): Replace throw_exception
8652 with throw.
8653 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8654 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8655 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8656 (get_prev_frame_always, get_frame_pc_if_available)
8657 (get_frame_address_in_block_if_available, get_frame_language):
8658 Replace throw_exception with throw.
8659 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8660 throw_exception with throw.
8661 * eval.c (fetch_subexp_value, evaluate_var_value)
8662 (evaluate_funcall, evaluate_subexp_standard): Replace
8663 throw_exception with throw.
8664 * dwarf2loc.c (call_site_find_chain)
8665 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8666 Replace throw_exception with throw.
8667 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8668 with throw.
8669 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8670 throw.
8671 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8672 * completer.c (complete_line_internal): Replace throw_exception
8673 with throw.
8674 * compile/compile-object-run.c (compile_object_run): Replace
8675 throw_exception with throw.
8676 * cli/cli-script.c (process_next_line): Replace throw_exception
8677 with throw.
8678 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8679 (btrace_enable, btrace_maint_update_pt_packets): Replace
8680 throw_exception with throw.
8681 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8682 throw_exception with throw.
8683 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8684 throw_exception with throw.
8685 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8686 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8687 * aarch64-tdep.c (aarch64_make_prologue_cache)
8688 (aarch64_make_stub_cache): Replace throw_exception with throw.
8689
26003a20
TT
86902019-04-08 Tom Tromey <tom@tromey.com>
8691
8692 * common/common-exceptions.c (throw_exception): Rename from
8693 throw_exception_cxx. Remove old copy. Make argument const.
8694 (throw_it): Create and throw exception objects directly.
8695 * common/common-exceptions.h (throw_exception): Make argument
8696 const.
8697 (struct gdb_exception_error): Add constructor.
8698 (struct gdb_exception_quit): Add constructor.
8699
d272eb37
TT
87002019-04-08 Tom Tromey <tom@tromey.com>
8701
8702 * common/common-exceptions.h (exception_rethrow): Don't declare.
8703 (TRY_SJLJ): Update comment.
8704 (TRY, CATCH, END_CATCH): Remove.
8705 * common/common-exceptions.c (exception_rethrow): Remove.
8706
230d2906
TT
87072019-04-08 Tom Tromey <tom@tromey.com>
8708
8709 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8710 Remove.
8711 (gdb_exception_error): Rename from
8712 gdb_exception_RETURN_MASK_ERROR.
8713 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8714 (gdb_quit_bad_alloc): Update.
8715 * aarch64-tdep.c: Update.
8716 * ada-lang.c: Update.
8717 * ada-typeprint.c: Update.
8718 * ada-valprint.c: Update.
8719 * amd64-tdep.c: Update.
8720 * arch-utils.c: Update.
8721 * break-catch-throw.c: Update.
8722 * breakpoint.c: Update.
8723 * btrace.c: Update.
8724 * c-varobj.c: Update.
8725 * cli/cli-cmds.c: Update.
8726 * cli/cli-interp.c: Update.
8727 * cli/cli-script.c: Update.
8728 * common/common-exceptions.c: Update.
8729 * common/new-op.c: Update.
8730 * common/selftest.c: Update.
8731 * compile/compile-c-symbols.c: Update.
8732 * compile/compile-cplus-symbols.c: Update.
8733 * compile/compile-object-load.c: Update.
8734 * compile/compile-object-run.c: Update.
8735 * completer.c: Update.
8736 * corelow.c: Update.
8737 * cp-abi.c: Update.
8738 * cp-support.c: Update.
8739 * cp-valprint.c: Update.
8740 * darwin-nat.c: Update.
8741 * disasm-selftests.c: Update.
8742 * dtrace-probe.c: Update.
8743 * dwarf-index-cache.c: Update.
8744 * dwarf-index-write.c: Update.
8745 * dwarf2-frame-tailcall.c: Update.
8746 * dwarf2-frame.c: Update.
8747 * dwarf2loc.c: Update.
8748 * dwarf2read.c: Update.
8749 * eval.c: Update.
8750 * event-loop.c: Update.
8751 * event-top.c: Update.
8752 * exec.c: Update.
8753 * f-valprint.c: Update.
8754 * fbsd-tdep.c: Update.
8755 * frame-unwind.c: Update.
8756 * frame.c: Update.
8757 * gdbtypes.c: Update.
8758 * gnu-v3-abi.c: Update.
8759 * guile/guile-internal.h: Update.
8760 * guile/scm-block.c: Update.
8761 * guile/scm-breakpoint.c: Update.
8762 * guile/scm-cmd.c: Update.
8763 * guile/scm-disasm.c: Update.
8764 * guile/scm-frame.c: Update.
8765 * guile/scm-lazy-string.c: Update.
8766 * guile/scm-math.c: Update.
8767 * guile/scm-param.c: Update.
8768 * guile/scm-ports.c: Update.
8769 * guile/scm-pretty-print.c: Update.
8770 * guile/scm-symbol.c: Update.
8771 * guile/scm-symtab.c: Update.
8772 * guile/scm-type.c: Update.
8773 * guile/scm-value.c: Update.
8774 * i386-linux-tdep.c: Update.
8775 * i386-tdep.c: Update.
8776 * inf-loop.c: Update.
8777 * infcall.c: Update.
8778 * infcmd.c: Update.
8779 * infrun.c: Update.
8780 * jit.c: Update.
8781 * language.c: Update.
8782 * linespec.c: Update.
8783 * linux-fork.c: Update.
8784 * linux-nat.c: Update.
8785 * linux-tdep.c: Update.
8786 * linux-thread-db.c: Update.
8787 * main.c: Update.
8788 * mi/mi-cmd-break.c: Update.
8789 * mi/mi-cmd-stack.c: Update.
8790 * mi/mi-interp.c: Update.
8791 * mi/mi-main.c: Update.
8792 * objc-lang.c: Update.
8793 * p-valprint.c: Update.
8794 * parse.c: Update.
8795 * ppc-linux-tdep.c: Update.
8796 * printcmd.c: Update.
8797 * python/py-arch.c: Update.
8798 * python/py-breakpoint.c: Update.
8799 * python/py-cmd.c: Update.
8800 * python/py-finishbreakpoint.c: Update.
8801 * python/py-frame.c: Update.
8802 * python/py-framefilter.c: Update.
8803 * python/py-gdb-readline.c: Update.
8804 * python/py-inferior.c: Update.
8805 * python/py-infthread.c: Update.
8806 * python/py-lazy-string.c: Update.
8807 * python/py-linetable.c: Update.
8808 * python/py-objfile.c: Update.
8809 * python/py-param.c: Update.
8810 * python/py-prettyprint.c: Update.
8811 * python/py-progspace.c: Update.
8812 * python/py-record-btrace.c: Update.
8813 * python/py-record.c: Update.
8814 * python/py-symbol.c: Update.
8815 * python/py-type.c: Update.
8816 * python/py-unwind.c: Update.
8817 * python/py-utils.c: Update.
8818 * python/py-value.c: Update.
8819 * python/python.c: Update.
8820 * record-btrace.c: Update.
8821 * record-full.c: Update.
8822 * remote-fileio.c: Update.
8823 * remote.c: Update.
8824 * riscv-tdep.c: Update.
8825 * rs6000-aix-tdep.c: Update.
8826 * rs6000-tdep.c: Update.
8827 * rust-exp.y: Update.
8828 * rust-lang.c: Update.
8829 * s390-tdep.c: Update.
8830 * selftest-arch.c: Update.
8831 * solib-dsbt.c: Update.
8832 * solib-frv.c: Update.
8833 * solib-spu.c: Update.
8834 * solib-svr4.c: Update.
8835 * solib.c: Update.
8836 * sparc64-linux-tdep.c: Update.
8837 * stack.c: Update.
8838 * symfile-mem.c: Update.
8839 * symmisc.c: Update.
8840 * target.c: Update.
8841 * thread.c: Update.
8842 * top.c: Update.
8843 * tracefile-tfile.c: Update.
8844 * tui/tui.c: Update.
8845 * typeprint.c: Update.
8846 * unittests/cli-utils-selftests.c: Update.
8847 * unittests/parse-connection-spec-selftests.c: Update.
8848 * valops.c: Update.
8849 * valprint.c: Update.
8850 * value.c: Update.
8851 * varobj.c: Update.
8852 * windows-nat.c: Update.
8853 * x86-linux-nat.c: Update.
8854 * xml-support.c: Update.
8855
a70b8144
TT
88562019-04-08 Tom Tromey <tom@tromey.com>
8857
8858 * xml-support.c: Use C++ exception handling.
8859 * x86-linux-nat.c: Use C++ exception handling.
8860 * windows-nat.c: Use C++ exception handling.
8861 * varobj.c: Use C++ exception handling.
8862 * value.c: Use C++ exception handling.
8863 * valprint.c: Use C++ exception handling.
8864 * valops.c: Use C++ exception handling.
8865 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8866 handling.
8867 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8868 * typeprint.c: Use C++ exception handling.
8869 * tui/tui.c: Use C++ exception handling.
8870 * tracefile-tfile.c: Use C++ exception handling.
8871 * top.c: Use C++ exception handling.
8872 * thread.c: Use C++ exception handling.
8873 * target.c: Use C++ exception handling.
8874 * symmisc.c: Use C++ exception handling.
8875 * symfile-mem.c: Use C++ exception handling.
8876 * stack.c: Use C++ exception handling.
8877 * sparc64-linux-tdep.c: Use C++ exception handling.
8878 * solib.c: Use C++ exception handling.
8879 * solib-svr4.c: Use C++ exception handling.
8880 * solib-spu.c: Use C++ exception handling.
8881 * solib-frv.c: Use C++ exception handling.
8882 * solib-dsbt.c: Use C++ exception handling.
8883 * selftest-arch.c: Use C++ exception handling.
8884 * s390-tdep.c: Use C++ exception handling.
8885 * rust-lang.c: Use C++ exception handling.
8886 * rust-exp.y: Use C++ exception handling.
8887 * rs6000-tdep.c: Use C++ exception handling.
8888 * rs6000-aix-tdep.c: Use C++ exception handling.
8889 * riscv-tdep.c: Use C++ exception handling.
8890 * remote.c: Use C++ exception handling.
8891 * remote-fileio.c: Use C++ exception handling.
8892 * record-full.c: Use C++ exception handling.
8893 * record-btrace.c: Use C++ exception handling.
8894 * python/python.c: Use C++ exception handling.
8895 * python/py-value.c: Use C++ exception handling.
8896 * python/py-utils.c: Use C++ exception handling.
8897 * python/py-unwind.c: Use C++ exception handling.
8898 * python/py-type.c: Use C++ exception handling.
8899 * python/py-symbol.c: Use C++ exception handling.
8900 * python/py-record.c: Use C++ exception handling.
8901 * python/py-record-btrace.c: Use C++ exception handling.
8902 * python/py-progspace.c: Use C++ exception handling.
8903 * python/py-prettyprint.c: Use C++ exception handling.
8904 * python/py-param.c: Use C++ exception handling.
8905 * python/py-objfile.c: Use C++ exception handling.
8906 * python/py-linetable.c: Use C++ exception handling.
8907 * python/py-lazy-string.c: Use C++ exception handling.
8908 * python/py-infthread.c: Use C++ exception handling.
8909 * python/py-inferior.c: Use C++ exception handling.
8910 * python/py-gdb-readline.c: Use C++ exception handling.
8911 * python/py-framefilter.c: Use C++ exception handling.
8912 * python/py-frame.c: Use C++ exception handling.
8913 * python/py-finishbreakpoint.c: Use C++ exception handling.
8914 * python/py-cmd.c: Use C++ exception handling.
8915 * python/py-breakpoint.c: Use C++ exception handling.
8916 * python/py-arch.c: Use C++ exception handling.
8917 * printcmd.c: Use C++ exception handling.
8918 * ppc-linux-tdep.c: Use C++ exception handling.
8919 * parse.c: Use C++ exception handling.
8920 * p-valprint.c: Use C++ exception handling.
8921 * objc-lang.c: Use C++ exception handling.
8922 * mi/mi-main.c: Use C++ exception handling.
8923 * mi/mi-interp.c: Use C++ exception handling.
8924 * mi/mi-cmd-stack.c: Use C++ exception handling.
8925 * mi/mi-cmd-break.c: Use C++ exception handling.
8926 * main.c: Use C++ exception handling.
8927 * linux-thread-db.c: Use C++ exception handling.
8928 * linux-tdep.c: Use C++ exception handling.
8929 * linux-nat.c: Use C++ exception handling.
8930 * linux-fork.c: Use C++ exception handling.
8931 * linespec.c: Use C++ exception handling.
8932 * language.c: Use C++ exception handling.
8933 * jit.c: Use C++ exception handling.
8934 * infrun.c: Use C++ exception handling.
8935 * infcmd.c: Use C++ exception handling.
8936 * infcall.c: Use C++ exception handling.
8937 * inf-loop.c: Use C++ exception handling.
8938 * i386-tdep.c: Use C++ exception handling.
8939 * i386-linux-tdep.c: Use C++ exception handling.
8940 * guile/scm-value.c: Use C++ exception handling.
8941 * guile/scm-type.c: Use C++ exception handling.
8942 * guile/scm-symtab.c: Use C++ exception handling.
8943 * guile/scm-symbol.c: Use C++ exception handling.
8944 * guile/scm-pretty-print.c: Use C++ exception handling.
8945 * guile/scm-ports.c: Use C++ exception handling.
8946 * guile/scm-param.c: Use C++ exception handling.
8947 * guile/scm-math.c: Use C++ exception handling.
8948 * guile/scm-lazy-string.c: Use C++ exception handling.
8949 * guile/scm-frame.c: Use C++ exception handling.
8950 * guile/scm-disasm.c: Use C++ exception handling.
8951 * guile/scm-cmd.c: Use C++ exception handling.
8952 * guile/scm-breakpoint.c: Use C++ exception handling.
8953 * guile/scm-block.c: Use C++ exception handling.
8954 * guile/guile-internal.h: Use C++ exception handling.
8955 * gnu-v3-abi.c: Use C++ exception handling.
8956 * gdbtypes.c: Use C++ exception handling.
8957 * frame.c: Use C++ exception handling.
8958 * frame-unwind.c: Use C++ exception handling.
8959 * fbsd-tdep.c: Use C++ exception handling.
8960 * f-valprint.c: Use C++ exception handling.
8961 * exec.c: Use C++ exception handling.
8962 * event-top.c: Use C++ exception handling.
8963 * event-loop.c: Use C++ exception handling.
8964 * eval.c: Use C++ exception handling.
8965 * dwarf2read.c: Use C++ exception handling.
8966 * dwarf2loc.c: Use C++ exception handling.
8967 * dwarf2-frame.c: Use C++ exception handling.
8968 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8969 * dwarf-index-write.c: Use C++ exception handling.
8970 * dwarf-index-cache.c: Use C++ exception handling.
8971 * dtrace-probe.c: Use C++ exception handling.
8972 * disasm-selftests.c: Use C++ exception handling.
8973 * darwin-nat.c: Use C++ exception handling.
8974 * cp-valprint.c: Use C++ exception handling.
8975 * cp-support.c: Use C++ exception handling.
8976 * cp-abi.c: Use C++ exception handling.
8977 * corelow.c: Use C++ exception handling.
8978 * completer.c: Use C++ exception handling.
8979 * compile/compile-object-run.c: Use C++ exception handling.
8980 * compile/compile-object-load.c: Use C++ exception handling.
8981 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8982 * compile/compile-c-symbols.c: Use C++ exception handling.
8983 * common/selftest.c: Use C++ exception handling.
8984 * common/new-op.c: Use C++ exception handling.
8985 * cli/cli-script.c: Use C++ exception handling.
8986 * cli/cli-interp.c: Use C++ exception handling.
8987 * cli/cli-cmds.c: Use C++ exception handling.
8988 * c-varobj.c: Use C++ exception handling.
8989 * btrace.c: Use C++ exception handling.
8990 * breakpoint.c: Use C++ exception handling.
8991 * break-catch-throw.c: Use C++ exception handling.
8992 * arch-utils.c: Use C++ exception handling.
8993 * amd64-tdep.c: Use C++ exception handling.
8994 * ada-valprint.c: Use C++ exception handling.
8995 * ada-typeprint.c: Use C++ exception handling.
8996 * ada-lang.c: Use C++ exception handling.
8997 * aarch64-tdep.c: Use C++ exception handling.
8998
3d6e9d23
TT
89992019-04-08 Tom Tromey <tom@tromey.com>
9000
9001 * xml-support.c (gdb_xml_parser::parse): Update.
9002 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9003 * value.c (show_convenience): Update.
9004 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9005 (test_parse_flags_qcs): Update.
9006 * thread.c (thr_try_catch_cmd): Update.
9007 * target.c (target_translate_tls_address): Update.
9008 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9009 (info_frame_command_core, frame_apply_command_count): Update.
9010 * rust-exp.y (rust_lex_exception_test): Update.
9011 * riscv-tdep.c (riscv_print_one_register_info): Update.
9012 * remote.c (remote_target::enable_btrace): Update.
9013 * record-btrace.c (record_btrace_enable_warn): Update.
9014 * python/py-utils.c (gdbpy_convert_exception): Update.
9015 * printcmd.c (do_one_display, print_variable_and_value): Update.
9016 * mi/mi-main.c (mi_print_exception): Update.
9017 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9018 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9019 * linux-nat.c (linux_nat_target::attach): Update.
9020 * linux-fork.c (class scoped_switch_fork_info): Update.
9021 * infrun.c (displaced_step_prepare): Update.
9022 * infcall.c (call_function_by_hand_dummy): Update.
9023 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9024 * gnu-v3-abi.c (print_one_vtable): Update.
9025 * frame.c (get_prev_frame_always): Update.
9026 * f-valprint.c (info_common_command_for_block): Update.
9027 * exec.c (try_open_exec_file): Update.
9028 * exceptions.c (print_exception, exception_print)
9029 (exception_fprintf, exception_print_same): Update.
9030 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9031 * dwarf-index-cache.c (index_cache::store)
9032 (index_cache::lookup_gdb_index): Update.
9033 * darwin-nat.c (maybe_cache_shell): Update.
9034 * cp-valprint.c (cp_print_value_fields): Update.
9035 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9036 (gcc_cplus_symbol_address): Update.
9037 * compile/compile-c-symbols.c (gcc_convert_symbol)
9038 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9039 * common/selftest.c: Update.
9040 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9041 a std::string.
9042 (exception_try_scope_entry, exception_try_scope_exit): Don't
9043 declare.
9044 (struct exception_try_scope): Remove.
9045 (TRY): Don't use exception_try_scope.
9046 (struct gdb_exception): Add constructor, operator=.
9047 <what>: New method.
9048 (struct gdb_exception_RETURN_MASK_ALL)
9049 (struct gdb_exception_RETURN_MASK_ERROR)
9050 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9051 (struct gdb_quit_bad_alloc): Update.
9052 * common/common-exceptions.c (exception_none): Change
9053 initializer.
9054 (struct catcher) <state, exception>: Initialize inline.
9055 <prev>: Remove member.
9056 (current_catcher): Remove.
9057 (catchers): New global.
9058 (exceptions_state_mc_init): Simplify.
9059 (catcher_pop): Remove.
9060 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9061 (try_scope_depth, exception_try_scope_entry)
9062 (exception_try_scope_exit): Remove.
9063 (throw_exception_sjlj): Update.
9064 (exception_messages, exception_messages_size): Remove.
9065 (throw_it): Simplify.
9066 (gdb_exception_sliced_copy): Remove.
9067 (throw_exception_cxx): Update.
9068 * cli/cli-script.c (script_from_file): Update.
9069 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9070 Update.
9071 * ada-valprint.c (ada_val_print): Update.
9072 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9073 (create_excep_cond_exprs): Update.
9074
c5c10118
TT
90752019-04-08 Tom Tromey <tom@tromey.com>
9076
9077 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9078 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9079 (TRY, CATCH, END_CATCH): Remove some definitions.
9080 * common/common-exceptions.c: Don't use GDB_XCPT.
9081 (catcher_list_size): Remove.
9082 (throw_exception, throw_it): Simplify.
9083
4de283e4
TT
90842019-04-05 Tom Tromey <tom@tromey.com>
9085
9086 Revert the header-sorting patch.
9087 * ft32-tdep.c: Revert.
9088 * frv-tdep.c: Revert.
9089 * frv-linux-tdep.c: Revert.
9090 * frame.c: Revert.
9091 * frame-unwind.c: Revert.
9092 * frame-base.c: Revert.
9093 * fork-child.c: Revert.
9094 * findvar.c: Revert.
9095 * findcmd.c: Revert.
9096 * filesystem.c: Revert.
9097 * filename-seen-cache.h: Revert.
9098 * filename-seen-cache.c: Revert.
9099 * fbsd-tdep.c: Revert.
9100 * fbsd-nat.h: Revert.
9101 * fbsd-nat.c: Revert.
9102 * f-valprint.c: Revert.
9103 * f-typeprint.c: Revert.
9104 * f-lang.c: Revert.
9105 * extension.h: Revert.
9106 * extension.c: Revert.
9107 * extension-priv.h: Revert.
9108 * expprint.c: Revert.
9109 * exec.h: Revert.
9110 * exec.c: Revert.
9111 * exceptions.c: Revert.
9112 * event-top.c: Revert.
9113 * event-loop.c: Revert.
9114 * eval.c: Revert.
9115 * elfread.c: Revert.
9116 * dwarf2read.h: Revert.
9117 * dwarf2read.c: Revert.
9118 * dwarf2loc.c: Revert.
9119 * dwarf2expr.h: Revert.
9120 * dwarf2expr.c: Revert.
9121 * dwarf2-frame.c: Revert.
9122 * dwarf2-frame-tailcall.c: Revert.
9123 * dwarf-index-write.h: Revert.
9124 * dwarf-index-write.c: Revert.
9125 * dwarf-index-common.c: Revert.
9126 * dwarf-index-cache.h: Revert.
9127 * dwarf-index-cache.c: Revert.
9128 * dummy-frame.c: Revert.
9129 * dtrace-probe.c: Revert.
9130 * disasm.h: Revert.
9131 * disasm.c: Revert.
9132 * disasm-selftests.c: Revert.
9133 * dictionary.c: Revert.
9134 * dicos-tdep.c: Revert.
9135 * demangle.c: Revert.
9136 * dcache.h: Revert.
9137 * dcache.c: Revert.
9138 * darwin-nat.h: Revert.
9139 * darwin-nat.c: Revert.
9140 * darwin-nat-info.c: Revert.
9141 * d-valprint.c: Revert.
9142 * d-namespace.c: Revert.
9143 * d-lang.c: Revert.
9144 * ctf.c: Revert.
9145 * csky-tdep.c: Revert.
9146 * csky-linux-tdep.c: Revert.
9147 * cris-tdep.c: Revert.
9148 * cris-linux-tdep.c: Revert.
9149 * cp-valprint.c: Revert.
9150 * cp-support.c: Revert.
9151 * cp-namespace.c: Revert.
9152 * cp-abi.c: Revert.
9153 * corelow.c: Revert.
9154 * corefile.c: Revert.
9155 * continuations.c: Revert.
9156 * completer.h: Revert.
9157 * completer.c: Revert.
9158 * complaints.c: Revert.
9159 * coffread.c: Revert.
9160 * coff-pe-read.c: Revert.
9161 * cli-out.h: Revert.
9162 * cli-out.c: Revert.
9163 * charset.c: Revert.
9164 * c-varobj.c: Revert.
9165 * c-valprint.c: Revert.
9166 * c-typeprint.c: Revert.
9167 * c-lang.c: Revert.
9168 * buildsym.c: Revert.
9169 * buildsym-legacy.c: Revert.
9170 * build-id.h: Revert.
9171 * build-id.c: Revert.
9172 * btrace.c: Revert.
9173 * bsd-uthread.c: Revert.
9174 * breakpoint.h: Revert.
9175 * breakpoint.c: Revert.
9176 * break-catch-throw.c: Revert.
9177 * break-catch-syscall.c: Revert.
9178 * break-catch-sig.c: Revert.
9179 * blockframe.c: Revert.
9180 * block.c: Revert.
9181 * bfin-tdep.c: Revert.
9182 * bfin-linux-tdep.c: Revert.
9183 * bfd-target.c: Revert.
9184 * bcache.c: Revert.
9185 * ax-general.c: Revert.
9186 * ax-gdb.h: Revert.
9187 * ax-gdb.c: Revert.
9188 * avr-tdep.c: Revert.
9189 * auxv.c: Revert.
9190 * auto-load.c: Revert.
9191 * arm-wince-tdep.c: Revert.
9192 * arm-tdep.c: Revert.
9193 * arm-symbian-tdep.c: Revert.
9194 * arm-pikeos-tdep.c: Revert.
9195 * arm-obsd-tdep.c: Revert.
9196 * arm-nbsd-tdep.c: Revert.
9197 * arm-nbsd-nat.c: Revert.
9198 * arm-linux-tdep.c: Revert.
9199 * arm-linux-nat.c: Revert.
9200 * arm-fbsd-tdep.c: Revert.
9201 * arm-fbsd-nat.c: Revert.
9202 * arm-bsd-tdep.c: Revert.
9203 * arch-utils.c: Revert.
9204 * arc-tdep.c: Revert.
9205 * arc-newlib-tdep.c: Revert.
9206 * annotate.h: Revert.
9207 * annotate.c: Revert.
9208 * amd64-windows-tdep.c: Revert.
9209 * amd64-windows-nat.c: Revert.
9210 * amd64-tdep.c: Revert.
9211 * amd64-sol2-tdep.c: Revert.
9212 * amd64-obsd-tdep.c: Revert.
9213 * amd64-obsd-nat.c: Revert.
9214 * amd64-nbsd-tdep.c: Revert.
9215 * amd64-nbsd-nat.c: Revert.
9216 * amd64-nat.c: Revert.
9217 * amd64-linux-tdep.c: Revert.
9218 * amd64-linux-nat.c: Revert.
9219 * amd64-fbsd-tdep.c: Revert.
9220 * amd64-fbsd-nat.c: Revert.
9221 * amd64-dicos-tdep.c: Revert.
9222 * amd64-darwin-tdep.c: Revert.
9223 * amd64-bsd-nat.c: Revert.
9224 * alpha-tdep.c: Revert.
9225 * alpha-obsd-tdep.c: Revert.
9226 * alpha-nbsd-tdep.c: Revert.
9227 * alpha-mdebug-tdep.c: Revert.
9228 * alpha-linux-tdep.c: Revert.
9229 * alpha-linux-nat.c: Revert.
9230 * alpha-bsd-tdep.c: Revert.
9231 * alpha-bsd-nat.c: Revert.
9232 * aix-thread.c: Revert.
9233 * agent.c: Revert.
9234 * addrmap.c: Revert.
9235 * ada-varobj.c: Revert.
9236 * ada-valprint.c: Revert.
9237 * ada-typeprint.c: Revert.
9238 * ada-tasks.c: Revert.
9239 * ada-lang.c: Revert.
9240 * aarch64-tdep.c: Revert.
9241 * aarch64-ravenscar-thread.c: Revert.
9242 * aarch64-newlib-tdep.c: Revert.
9243 * aarch64-linux-tdep.c: Revert.
9244 * aarch64-linux-nat.c: Revert.
9245 * aarch64-fbsd-tdep.c: Revert.
9246 * aarch64-fbsd-nat.c: Revert.
9247 * aarch32-linux-nat.c: Revert.
9248
d55e5aa6
TT
92492019-04-05 Tom Tromey <tom@tromey.com>
9250
9251 * ft32-tdep.c: Sort headers.
9252 * frv-tdep.c: Sort headers.
9253 * frv-linux-tdep.c: Sort headers.
9254 * frame.c: Sort headers.
9255 * frame-unwind.c: Sort headers.
9256 * frame-base.c: Sort headers.
9257 * fork-child.c: Sort headers.
9258 * findvar.c: Sort headers.
9259 * findcmd.c: Sort headers.
9260 * filesystem.c: Sort headers.
9261 * filename-seen-cache.h: Sort headers.
9262 * filename-seen-cache.c: Sort headers.
9263 * fbsd-tdep.c: Sort headers.
9264 * fbsd-nat.h: Sort headers.
9265 * fbsd-nat.c: Sort headers.
9266 * f-valprint.c: Sort headers.
9267 * f-typeprint.c: Sort headers.
9268 * f-lang.c: Sort headers.
9269 * extension.h: Sort headers.
9270 * extension.c: Sort headers.
9271 * extension-priv.h: Sort headers.
9272 * expprint.c: Sort headers.
9273 * exec.h: Sort headers.
9274 * exec.c: Sort headers.
9275 * exceptions.c: Sort headers.
9276 * event-top.c: Sort headers.
9277 * event-loop.c: Sort headers.
9278 * eval.c: Sort headers.
9279 * elfread.c: Sort headers.
9280 * dwarf2read.h: Sort headers.
9281 * dwarf2read.c: Sort headers.
9282 * dwarf2loc.c: Sort headers.
9283 * dwarf2expr.h: Sort headers.
9284 * dwarf2expr.c: Sort headers.
9285 * dwarf2-frame.c: Sort headers.
9286 * dwarf2-frame-tailcall.c: Sort headers.
9287 * dwarf-index-write.h: Sort headers.
9288 * dwarf-index-write.c: Sort headers.
9289 * dwarf-index-common.c: Sort headers.
9290 * dwarf-index-cache.h: Sort headers.
9291 * dwarf-index-cache.c: Sort headers.
9292 * dummy-frame.c: Sort headers.
9293 * dtrace-probe.c: Sort headers.
9294 * disasm.h: Sort headers.
9295 * disasm.c: Sort headers.
9296 * disasm-selftests.c: Sort headers.
9297 * dictionary.c: Sort headers.
9298 * dicos-tdep.c: Sort headers.
9299 * demangle.c: Sort headers.
9300 * dcache.h: Sort headers.
9301 * dcache.c: Sort headers.
9302 * darwin-nat.h: Sort headers.
9303 * darwin-nat.c: Sort headers.
9304 * darwin-nat-info.c: Sort headers.
9305 * d-valprint.c: Sort headers.
9306 * d-namespace.c: Sort headers.
9307 * d-lang.c: Sort headers.
9308 * ctf.c: Sort headers.
9309 * csky-tdep.c: Sort headers.
9310 * csky-linux-tdep.c: Sort headers.
9311 * cris-tdep.c: Sort headers.
9312 * cris-linux-tdep.c: Sort headers.
9313 * cp-valprint.c: Sort headers.
9314 * cp-support.c: Sort headers.
9315 * cp-namespace.c: Sort headers.
9316 * cp-abi.c: Sort headers.
9317 * corelow.c: Sort headers.
9318 * corefile.c: Sort headers.
9319 * continuations.c: Sort headers.
9320 * completer.h: Sort headers.
9321 * completer.c: Sort headers.
9322 * complaints.c: Sort headers.
9323 * coffread.c: Sort headers.
9324 * coff-pe-read.c: Sort headers.
9325 * cli-out.h: Sort headers.
9326 * cli-out.c: Sort headers.
9327 * charset.c: Sort headers.
9328 * c-varobj.c: Sort headers.
9329 * c-valprint.c: Sort headers.
9330 * c-typeprint.c: Sort headers.
9331 * c-lang.c: Sort headers.
9332 * buildsym.c: Sort headers.
9333 * buildsym-legacy.c: Sort headers.
9334 * build-id.h: Sort headers.
9335 * build-id.c: Sort headers.
9336 * btrace.c: Sort headers.
9337 * bsd-uthread.c: Sort headers.
9338 * breakpoint.h: Sort headers.
9339 * breakpoint.c: Sort headers.
9340 * break-catch-throw.c: Sort headers.
9341 * break-catch-syscall.c: Sort headers.
9342 * break-catch-sig.c: Sort headers.
9343 * blockframe.c: Sort headers.
9344 * block.c: Sort headers.
9345 * bfin-tdep.c: Sort headers.
9346 * bfin-linux-tdep.c: Sort headers.
9347 * bfd-target.c: Sort headers.
9348 * bcache.c: Sort headers.
9349 * ax-general.c: Sort headers.
9350 * ax-gdb.h: Sort headers.
9351 * ax-gdb.c: Sort headers.
9352 * avr-tdep.c: Sort headers.
9353 * auxv.c: Sort headers.
9354 * auto-load.c: Sort headers.
9355 * arm-wince-tdep.c: Sort headers.
9356 * arm-tdep.c: Sort headers.
9357 * arm-symbian-tdep.c: Sort headers.
9358 * arm-pikeos-tdep.c: Sort headers.
9359 * arm-obsd-tdep.c: Sort headers.
9360 * arm-nbsd-tdep.c: Sort headers.
9361 * arm-nbsd-nat.c: Sort headers.
9362 * arm-linux-tdep.c: Sort headers.
9363 * arm-linux-nat.c: Sort headers.
9364 * arm-fbsd-tdep.c: Sort headers.
9365 * arm-fbsd-nat.c: Sort headers.
9366 * arm-bsd-tdep.c: Sort headers.
9367 * arch-utils.c: Sort headers.
9368 * arc-tdep.c: Sort headers.
9369 * arc-newlib-tdep.c: Sort headers.
9370 * annotate.h: Sort headers.
9371 * annotate.c: Sort headers.
9372 * amd64-windows-tdep.c: Sort headers.
9373 * amd64-windows-nat.c: Sort headers.
9374 * amd64-tdep.c: Sort headers.
9375 * amd64-sol2-tdep.c: Sort headers.
9376 * amd64-obsd-tdep.c: Sort headers.
9377 * amd64-obsd-nat.c: Sort headers.
9378 * amd64-nbsd-tdep.c: Sort headers.
9379 * amd64-nbsd-nat.c: Sort headers.
9380 * amd64-nat.c: Sort headers.
9381 * amd64-linux-tdep.c: Sort headers.
9382 * amd64-linux-nat.c: Sort headers.
9383 * amd64-fbsd-tdep.c: Sort headers.
9384 * amd64-fbsd-nat.c: Sort headers.
9385 * amd64-dicos-tdep.c: Sort headers.
9386 * amd64-darwin-tdep.c: Sort headers.
9387 * amd64-bsd-nat.c: Sort headers.
9388 * alpha-tdep.c: Sort headers.
9389 * alpha-obsd-tdep.c: Sort headers.
9390 * alpha-nbsd-tdep.c: Sort headers.
9391 * alpha-mdebug-tdep.c: Sort headers.
9392 * alpha-linux-tdep.c: Sort headers.
9393 * alpha-linux-nat.c: Sort headers.
9394 * alpha-bsd-tdep.c: Sort headers.
9395 * alpha-bsd-nat.c: Sort headers.
9396 * aix-thread.c: Sort headers.
9397 * agent.c: Sort headers.
9398 * addrmap.c: Sort headers.
9399 * ada-varobj.c: Sort headers.
9400 * ada-valprint.c: Sort headers.
9401 * ada-typeprint.c: Sort headers.
9402 * ada-tasks.c: Sort headers.
9403 * ada-lang.c: Sort headers.
9404 * aarch64-tdep.c: Sort headers.
9405 * aarch64-ravenscar-thread.c: Sort headers.
9406 * aarch64-newlib-tdep.c: Sort headers.
9407 * aarch64-linux-tdep.c: Sort headers.
9408 * aarch64-linux-nat.c: Sort headers.
9409 * aarch64-fbsd-tdep.c: Sort headers.
9410 * aarch64-fbsd-nat.c: Sort headers.
9411 * aarch32-linux-nat.c: Sort headers.
9412
699bd4cf
TT
94132019-04-04 Tom Tromey <tom@tromey.com>
9414
9415 * varobj.c (varobj_create): Update.
9416 * rust-exp.y (struct rust_parser) <update_innermost_block,
9417 lookup_symbol>: New methods.
9418 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9419 Rename.
9420 (rust_parser::rust_lookup_type)
9421 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9422 * printcmd.c (display_command, do_one_display): Update.
9423 * parser-defs.h (struct parser_state) <parser_state>: Add
9424 "tracker" parameter.
9425 (block_tracker): New member.
9426 (class innermost_block_tracker) <innermost_block_tracker>: Add
9427 "types" parameter.
9428 <reset>: Remove method.
9429 (innermost_block): Don't declare.
9430 (null_post_parser): Update.
9431 * parse.c (innermost_block): Remove global.
9432 (write_dollar_variable): Update.
9433 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9434 Remove "tracker_types" parameter.
9435 (parse_expression): Add "tracker" parameter.
9436 (parse_expression_for_completion): Update.
9437 (null_post_parser): Add "tracker" parameter.
9438 * p-exp.y: Update rules.
9439 * m2-exp.y: Update rules.
9440 * language.h (struct language_defn) <la_post_parser>: Add
9441 "tracker" parameter.
9442 * go-exp.y: Update rules.
9443 * f-exp.y: Update rules.
9444 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9445 parameter.
9446 * d-exp.y: Update rules.
9447 * c-exp.y: Update rules.
9448 * breakpoint.c (set_breakpoint_condition): Create an
9449 innermost_block_tracker.
9450 (watch_command_1): Likewise.
9451 * ada-lang.c (resolve): Add "tracker" parameter.
9452 (resolve_subexp): Likewise.
9453 * ada-exp.y (write_var_from_sym): Update.
9454
dac43e32
TT
94552019-04-04 Tom Tromey <tom@tromey.com>
9456
9457 * type-stack.h: New file.
9458 * type-stack.c: New file.
9459 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9460 type-stack.h.
9461 (insert_into_type_stack, insert_type, push_type, push_type_int)
9462 (insert_type_address_space, pop_type, pop_type_int)
9463 (pop_typelist, pop_type_stack, append_type_stack)
9464 (push_type_stack, get_type_stack, push_typelist)
9465 (follow_type_instance_flags, follow_types): Don't declare.
9466 * parse.c (type_stack): Remove global.
9467 (parse_exp_in_context): Update.
9468 (insert_into_type_stack, insert_type, push_type, push_type_int)
9469 (insert_type_address_space, pop_type, pop_type_int)
9470 (pop_typelist, pop_type_stack, append_type_stack)
9471 (push_type_stack, get_type_stack, push_typelist)
9472 (follow_type_instance_flags, follow_types): Remove (moved to
9473 type-stack.c).
9474 * f-exp.y (type_stack): New global.
9475 Update rules.
9476 (push_kind_type, f_parse): Update.
9477 * d-exp.y (type_stack): New global.
9478 Update rules.
9479 (d_parse): Update.
9480 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9481 Update rules.
9482 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9483 (HFILES_NO_SRCDIR): Add type-stack.h.
9484
2a612529
TT
94852019-04-04 Tom Tromey <tom@tromey.com>
9486
9487 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9488 (rust_parser::convert_ast_to_expression, rust_parse)
9489 (rust_lex_test_completion, rust_lex_tests): Update.
9490 * parser-defs.h (struct expr_completion_state): New.
9491 (struct parser_state) <parser_state>: Add completion parameter.
9492 <mark_struct_expression, mark_completion_tag>: New methods.
9493 <parse_completion, m_completion_state>: New members.
9494 (prefixify_expression, null_post_parser): Update.
9495 (mark_struct_expression, mark_completion_tag): Don't declare.
9496 * parse.c (parse_completion, expout_last_struct)
9497 (expout_tag_completion_type, expout_completion_name): Remove
9498 globals.
9499 (parser_state::mark_struct_expression)
9500 (parser_state::mark_completion_tag): Now methods.
9501 (prefixify_expression): Add last_struct parameter.
9502 (prefixify_subexp): Likewise.
9503 (parse_exp_1): Update.
9504 (parse_exp_in_context): Add cstate parameter. Update.
9505 (parse_expression_for_completion): Create an
9506 expr_completion_state.
9507 (null_post_parser): Add "completion" parameter.
9508 * p-exp.y: Update rules.
9509 (yylex): Update.
9510 * language.h (struct language_defn) <la_post_parser>: Add
9511 "completing" parameter.
9512 * go-exp.y: Update rules.
9513 (lex_one_token): Update.
9514 * expression.h (parse_completion): Don't declare.
9515 * d-exp.y: Update rules.
9516 (lex_one_token): Update rules.
9517 * c-exp.y: Update rules.
9518 (lex_one_token): Update.
9519 * ada-lang.c (resolve): Add "parse_completion" parameter.
9520 (resolve_subexp): Likewise.
9521 (ada_resolve_function): Likewise.
9522
43476f0b
TT
95232019-04-04 Tom Tromey <tom@tromey.com>
9524
9525 * parser-defs.h (struct parser_state) <start_arglist,
9526 end_arglist>: New methods.
9527 <arglist_len, m_funcall_chain>: New members.
9528 (arglist_len, start_arglist, end_arglist): Don't declare.
9529 * parse.c (arglist_len, funcall_chain): Remove global.
9530 (start_arglist, end_arglist): Remove functions.
9531 (parse_exp_in_context): Update.
9532 * p-exp.y: Update rules.
9533 * m2-exp.y: Update rules.
9534 * go-exp.y: Update rules.
9535 * f-exp.y: Update rules.
9536 * d-exp.y: Update rules.
9537 * c-exp.y: Update rules.
9538
5776fca3
TT
95392019-04-04 Tom Tromey <tom@tromey.com>
9540
9541 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9542 lex_operator, push_back>: New methods.
9543 Update all rules.
9544 (rust_parser::lex_hex, lex_escape): Rename and update.
9545 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9546 (rust_parser::lex_operator): Rename and update.
9547 (rust_parser::lex_number, rustyylex, rustyyerror)
9548 (rust_lex_test_init, rust_lex_test_sequence)
9549 (rust_lex_test_push_back, rust_lex_tests): Update.
9550 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9551 parameter.
9552 <lexptr, prev_lexptr>: New members.
9553 (lexptr, prev_lexptr): Don't declare.
9554 * parse.c (lexptr, prev_lexptr): Remove globals.
9555 (parse_exp_in_context): Update.
9556 * p-exp.y (yylex, yyerror): Update.
9557 * m2-exp.y (parse_number, yylex, yyerror): Update.
9558 * go-exp.y (lex_one_token, yyerror): Update.
9559 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9560 * d-exp.y (lex_one_token, yyerror): Update.
9561 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9562 (lex_one_token, yyerror): Update.
9563 * ada-lex.l (YY_INPUT): Update.
9564 (rewind_to_char): Update.
9565 * ada-exp.y (yyerror): Update.
9566
8621b685
TT
95672019-04-04 Tom Tromey <tom@tromey.com>
9568
9569 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9570 * parser-defs.h (struct parser_state) <parser_state>: Add new
9571 parameter.
9572 <comma_terminates>: New member.
9573 (comma_terminates): Don't declare global.
9574 * parse.c (comma_terminates): Remove global.
9575 (parse_exp_in_context): Update.
9576 * p-exp.y (yylex): Update.
9577 * m2-exp.y (yylex): Update.
9578 * go-exp.y (lex_one_token): Update.
9579 * f-exp.y (yylex): Update.
9580 * d-exp.y (lex_one_token): Update.
9581 * c-exp.y (lex_one_token): Update.
9582 * ada-lex.l: Update.
9583
28aaf3fd
TT
95842019-04-04 Tom Tromey <tom@tromey.com>
9585
9586 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9587 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9588 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9589 * parser-defs.h (paren_depth): Don't declare.
9590 * parse.c (paren_depth): Remove global.
9591 (parse_exp_in_context): Update.
9592 * p-exp.y (paren_depth): New global.
9593 (pascal_parse): Initialize it.
9594 * m2-exp.y (paren_depth): New global.
9595 (m2_parse): Initialize it.
9596 * go-exp.y (paren_depth): New global.
9597 (go_parse): Initialize it.
9598 * f-exp.y (paren_depth): New global.
9599 (f_parse): Initialize it.
9600 * d-exp.y (paren_depth): New global.
9601 (d_parse): Initialize it.
9602 * c-exp.y (paren_depth): New global.
9603 (c_parse): Initialize it.
9604 * ada-lex.l (paren_depth): New global.
9605 (lexer_init): Initialize it.
9606
1e58a4a4
TT
96072019-04-04 Tom Tromey <tom@tromey.com>
9608
9609 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9610 (rust_parser::convert_ast_to_type)
9611 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9612 * parser-defs.h (struct parser_state) <parser_state>: Add
9613 parameters. Initialize new members.
9614 <expression_context_block, expression_context_pc>: New members.
9615 * parse.c (expression_context_block, expression_context_pc):
9616 Remove globals.
9617 (parse_exp_in_context): Update.
9618 * p-exp.y: Update all rules.
9619 (yylex): Update.
9620 * m2-exp.y: Update all rules.
9621 (yylex): Update.
9622 * go-exp.y (yylex): Update.
9623 * f-exp.y (yylex): Update.
9624 * d-exp.y: Update all rules.
9625 (yylex): Update.
9626 * c-exp.y: Update all rules.
9627 (lex_one_token, classify_name, yylex, c_parse): Update.
9628 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9629
37eedb39
TT
96302019-04-04 Tom Tromey <tom@tromey.com>
9631
9632 * gdbarch.h, gdbarch.c: Rebuild.
9633 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9634 * stap-probe.h:
9635 (struct stap_parse_info): Replace "parser_state" with
9636 "expr_builder".
9637 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9638 (parser_state): New class.
9639 * parse.c (expr_builder): Rename.
9640 (expr_builder::release): Rename.
9641 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9642 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9643 (write_exp_elt_longcst, write_exp_elt_floatcst)
9644 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9645 (write_exp_string_vector, write_exp_bitstring)
9646 (write_exp_msymbol, mark_struct_expression)
9647 (write_dollar_variable)
9648 (insert_type_address_space, increase_expout_size): Replace
9649 "parser_state" with "expr_builder".
9650 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9651 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9652 "parser_state" with "expr_builder".
9653
73923d7e
TT
96542019-04-04 Tom Tromey <tom@tromey.com>
9655
9656 * rust-exp.y: Replace "parse_language" with method call.
9657 * p-exp.y:
9658 (yylex): Replace "parse_language" with method call.
9659 * m2-exp.y:
9660 (yylex): Replace "parse_language" with method call.
9661 * go-exp.y (classify_name): Replace "parse_language" with method
9662 call.
9663 * f-exp.y (yylex): Replace "parse_language" with method call.
9664 * d-exp.y (lex_one_token): Replace "parse_language" with method
9665 call.
9666 * c-exp.y:
9667 (lex_one_token, classify_name, yylex): Replace "parse_language"
9668 with method call.
9669 * ada-exp.y (find_primitive_type, type_char)
9670 (type_system_address): Replace "parse_language" with method call.
9671
fa9f5be6
TT
96722019-04-04 Tom Tromey <tom@tromey.com>
9673
9674 * rust-exp.y: Replace "parse_gdbarch" with method call.
9675 * parse.c (write_dollar_variable, insert_type_address_space):
9676 Replace "parse_gdbarch" with method call.
9677 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9678 call.
9679 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9680 call.
9681 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9682 "parse_gdbarch" with method call.
9683 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9684 with method call.
9685 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9686 "parse_gdbarch" with method call.
9687 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9688 "parse_gdbarch" with method call.
9689 * c-exp.y (parse_type, parse_number, classify_name): Replace
9690 "parse_gdbarch" with method call.
9691 * ada-lex.l: Replace "parse_gdbarch" with method call.
9692 * ada-exp.y (parse_type, find_primitive_type, type_char)
9693 (type_system_address): Replace "parse_gdbarch" with method call.
9694
1201a264
TT
96952019-04-04 Tom Tromey <tom@tromey.com>
9696
9697 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9698 * stap-probe.c (stap_parse_argument): Update.
9699 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9700 initial_size parameter.
9701 * rust-exp.y (rust_lex_tests): Update.
9702 * parse.c (parser_state): Update.
9703 (parse_exp_in_context): Update.
9704 * parser-defs.h (struct parser_state) <parser_state>: Remove
9705 "initial_size" parameter.
9706
e3980ce2
TT
97072019-04-04 Tom Tromey <tom@tromey.com>
9708
9709 * parser-defs.h (increase_expout_size): Don't declare.
9710 * parse.c (increase_expout_size): Now static.
9711
e9f8e3f1
TS
97122019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9713
9714 * gnu-nat.c (gnu_nat_target::wait): Fix
9715 target_waitstatus_to_string call.
9716
d7df6549
AB
97172019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9718
9719 * eval.c (evaluate_subexp_standard): Handle internal functions
9720 during Fortran function call handling.
9721
8bdc1658
AB
97222019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9723
9724 * NEWS: Mention new internal functions.
9725 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9726 (read_base_type): Use dwarf2_init_complex_target_type.
9727 * value.c (creal_internal_fn): New function.
9728 (cimag_internal_fn): New function.
9729 (_initialize_values): Register new internal functions.
9730
c29705b7
PW
97312019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9732
9733 * infrun.c (stop_all_threads): If debug_infrun, always
9734 trace the wait status after wait_one, using
9735 target_waitstatus_to_string and target_pid_to_str.
9736 (handle_inferior_event): Replace various trace of
9737 wait status kind by a single trace.
9738 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9739 wait status kind image by target_waitstatus_to_string.
9740 * target/waitstatus.c (target_waitstatus_to_string): Fix
9741 obsolete comment.
9742
05caa1d2
TT
97432019-04-01 Tom Tromey <tromey@adacore.com>
9744
9745 PR symtab/23331:
9746 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9747
9d1447e0
SDJ
97482019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9749 Pedro Alves <palves@redhat.com>
9750
9751 * top.c (quit_force): Call 'finalize_values'.
9752 * value.c (finalize_values): New function.
9753 * value.h (finalize_values): Declare.
9754
7734102d
EZ
97552019-03-30 Eli Zaretskii <eliz@gnu.org>
9756
9757 * NEWS: Announce $_gdb_major and $_gdb_minor.
9758
9759 * top.c (init_gdb_version_vars): New function.
9760 (gdb_init): Call init_gdb_version_vars.
9761
188e1fa9
TT
97622019-03-29 Tom Tromey <tromey@adacore.com>
9763
9764 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9765 help text. Remove dead code.
9766
2880242d
KS
97672019-03-29 Keith Seitz <keiths@redhat.com>
9768
9769 From Siddhesh Poyarekar:
9770 * f-lang.h (f77_get_upperbound): Return LONGEST.
9771 (f77_get_lowerbound): Likewise.
9772 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9773 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9774 print them.
9775 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9776 plongest to format print it.
9777 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9778 (f77_get_upperbound): Likewise.
9779 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9780 LOWER_BOUND to LONGEST.
9781 (f77_create_arrayprint_offset_tbl): Likewise.
9782
cc1defb1
KS
97832019-03-29 Keith Seitz <keiths@redhat.com>
9784
9785 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9786 %s/pulongest for TYPE_LENGTH instead of %d in format
9787 strings.
9788 * ada-typerint.c (ada_print_type): Likewise.
9789 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9790 * compile/compile-c-support.c (generate_register_struct): Likewise.
9791 * gdbtypes.c (recursive_dump_type): Likewise.
9792 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9793 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9794 instead of %d in format strings.
9795 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9796 to std::min to ULONGEST.
9797 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9798 instead of %d in format strings.
9799 * tracepoint.c (info_scope_command): Likewise.
9800 * typeprint.c (print_offset_data::update)
9801 (print_offset_data::finish): Likewise.
9802 * xtensa-tdep.c (xtensa_store_return_value)
9803 (xtensa_push_dummy_call): Likewise.
9804
e432ccf1
JT
98052019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9806
9807 * windows-nat.c (display_selector): Fixed format specifications
9808 for 64-bit Cygwin.
9809
65d2b333
PW
98102019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9811
9812 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9813
f489207e
SL
98142019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9815
9816 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9817 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9818 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9819 (nios2_linux_init_abi): Install it.
9820
bffa1015
AH
98212019-03-28 Alan Hayward <alan.hayward@arm.com>
9822
9823 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9824
fc96163a
AH
98252019-03-28 Alan Hayward <alan.hayward@arm.com>
9826
9827 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9828
20dc7e9b
PW
98292019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9830 Tom Tromey <tromey@adacore.com>
9831
9832 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9833
7f5331a8
JB
98342019-03-26 Joel Brobecker <brobecker@adacore.com>
9835
9836 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9837 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9838 method to compute the bounds of range types. Also print "[evaluated]"
9839 if the bounds' values come from a dynamic evaluation.
9840
18c77628
AB
98412019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9844 whitespace when pretty printing is on.
9845
53c973f2
AH
98462019-03-26 Alan Hayward <alan.hayward@arm.com>
9847
e79be6e5 9848 * ppc-linux-nat.c: Add include.
53c973f2 9849
d851aa71
AH
98502019-03-26 Alan Hayward <alan.hayward@arm.com>
9851
e79be6e5 9852 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9853
2fe7bab7
AH
98542019-03-26 Alan Hayward <alan.hayward@arm.com>
9855
e79be6e5 9856 * arm-linux-nat.c: Add include.
2fe7bab7 9857
068ef30e
SM
98582019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9859
9860 * source-cache.c (source_cache::get_source_lines): Re-read
9861 fullname after calling open_source_file.
9862
81a24d04
JB
98632019-03-25 John Baldwin <jhb@FreeBSD.org>
9864
9865 * NEWS: Mention TLS support for FreeBSD.
9866
79e7ae11
TT
98672019-03-25 Tom Tromey <tromey@adacore.com>
9868
9869 * minsyms.c (BUNCH_SIZE): Update comment.
9870 (~minimal_symbol_reader): Remove old comment.
9871 (compact_minimal_symbols): Update comment.
9872 (minimal_symbol_reader::install): Remove old comment. Update
9873 other comments.
9874
d45963c2
AH
98752019-03-25 Alan Hayward <alan.hayward@arm.com>
9876
9877 * s390-linux-nat.c: Add include.
9878
0f83012e
AH
98792019-03-25 Alan Hayward <alan.hayward@arm.com>
9880
9881 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9882 Call linux_get_hwcap.
9883 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9884 Likewise.
9885 (aarch64_linux_get_hwcap): Remove function.
9886 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9887 declaration.
9888 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9889 linux_get_hwcap.
9890 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9891 * linux-tdep.c (linux_get_hwcap): Add function.
9892 (linux_get_hwcap2): Likewise.
9893 * linux-tdep.h (linux_get_hwcap): Add declaration.
9894 (linux_get_hwcap2): Likewise.
9895 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9896 (ppc_linux_get_hwcap2): Likewise.
9897 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9898 linux_get_hwcap.
9899 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9900 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9901 (ppc_linux_nat_target::read_description): Likewise.
9902 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9903 * s390-linux-nat.c: Likewise.
9904 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9905
6640a367
TT
99062019-03-24 Tom Tromey <tom@tromey.com>
9907
9908 * ada-lang.c (standard_lookup): Simplify initialization.
9909 (ada_lookup_symbol_nonlocal): Simplify return.
9910 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9911 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9912 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9913 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9914 initialization.
9915 * solib.c (solib_global_lookup): Simplify.
9916 * symtab.c (null_block_symbol): Remove.
9917 (symbol_cache_lookup): Simplify returns.
9918 (lookup_language_this): Simplify returns.
9919 (lookup_symbol_aux): Simplify return.
9920 (lookup_local_symbol): Simplify returns.
9921 (lookup_global_symbol_from_objfile): Simplify return.
9922 (lookup_symbol_in_objfile_symtabs)
9923 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9924 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9925 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9926 * cp-namespace.c (cp_lookup_bare_symbol)
9927 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9928 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9929 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9930 (cp_lookup_symbol_via_imports): Simplify initialization.
9931 (find_symbol_in_baseclass): Likewise.
9932 * symtab.h (null_block_symbol): Remove.
9933 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9934 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9935 (d_lookup_symbol_module): Likewise.
9936 (find_symbol_in_baseclass): Simplify initialization.
9937
a930ebcd
TT
99382019-03-24 Tom Tromey <tom@tromey.com>
9939
9940 * expression.h: Don't include symtab.h.
9941 (struct block): Forward declare.
9942
582942f4
TT
99432019-03-24 Tom Tromey <tom@tromey.com>
9944
9945 * c-exp.y (typebase): Remove casts.
9946 * gdbtypes.c (lookup_unsigned_typename, )
9947 (lookup_signed_typename): Remove cast.
9948 * eval.c (parse_to_comma_and_eval): Remove cast.
9949 * parse.c (write_dollar_variable): Remove cast.
9950 * block.h (struct block) <superblock>: Now const.
9951 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9952 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9953 (map_block): Make "block" const.
9954 * symfile.h (struct quick_symbol_functions)
9955 <map_matching_symbols>: Constify block argument to "callback".
9956 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9957 const.
9958 (find_pc_sect_compunit_symtab): Make "b" const.
9959 (find_symbol_at_address): Likewise.
9960 (search_symbols): Likewise.
9961 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9962 (dw2_debug_names_lookup_symbol): Likewise.
9963 (dw2_map_matching_symbols): Update.
9964 * p-valprint.c (pascal_val_print): Remove "block".
9965 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9966 (aux_add_nonlocal_symbols): Make "block" const.
9967 (resolve_subexp): Remove cast.
9968 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9969 const.
9970 (iterate_over_file_blocks): Likewise.
9971 * f-exp.y (%union) <bval>: Remove.
9972 * coffread.c (patch_opaque_types): Make "b" const.
9973 * spu-tdep.c (spu_catch_start): Make "block" const.
9974 * c-valprint.c (print_unpacked_pointer): Remove "block".
9975 * symmisc.c (dump_symtab_1): Make "b" const.
9976 (block_depth): Make "block" const.
9977 * d-exp.y (%union) <bval>: Remove.
9978 * cp-support.h (cp_lookup_rtti_type): Update.
9979 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9980 * psymtab.c (psym_lookup_symbol): Make "block" const.
9981 (maintenance_check_psymtabs): Make "b" const.
9982 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9983 (enumerate_locals, enumerate_args): Update.
9984 * python/py-symtab.c (stpy_global_block): Make "block" const.
9985 (stpy_static_block): Likewise.
9986 * inline-frame.c (block_starting_point_at): Make "new_block"
9987 const.
9988 * block.c (find_block_in_blockvector): Make return type const.
9989 (blockvector_for_pc_sect): Make "b" const.
9990 (find_block_in_blockvector): Make "b" const.
9991
7ad417dd
TT
99922019-03-23 Tom Tromey <tom@tromey.com>
9993
9994 * varobj.c (varobj_create): Update.
9995 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9996 * printcmd.c (display_command, do_one_display): Don't reset
9997 innermost_block.
9998 * parser-defs.h (enum innermost_block_tracker_type): Move to
9999 expression.h.
10000 (innermost_block): Update comment.
10001 * parse.c (parse_exp_1): Add tracker_types parameter.
10002 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10003 tracker_types parameter. Reset innermost_block.
10004 (parse_exp_in_context): Remove.
10005 (parse_expression_for_completion): Update.
10006 * objfiles.c (~objfile): Don't reset expression_context_block or
10007 innermost_block.
10008 * expression.h (enum innermost_block_tracker_type): Move from
10009 parser-defs.h.
10010 (parse_exp_1): Add tracker_types parameter.
10011 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10012 reset innermost_block.
10013
b366c208
TT
100142019-03-23 Tom Tromey <tom@tromey.com>
10015
10016 * objfiles.h: Include bcache.h.
10017
9bb9b2f9
TT
100182019-03-23 Tom Tromey <tom@tromey.com>
10019
10020 * linespec.c (get_current_search_block): Use
10021 scoped_restore_current_language.
10022 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10023
59c28372
AH
100242019-03-22 Alan Hayward <alan.hayward@arm.com>
10025 Jiong Wang <jiong.wang@arm.com>
10026
10027 * aarch64-linux-tdep.c
10028 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10029 section.
10030 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10031
17e116a7
AH
100322019-03-22 Alan Hayward <alan.hayward@arm.com>
10033 Jiong Wang <jiong.wang@arm.com>
10034
10035 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10036 instructions.
10037 (aarch64_analyze_prologue_test): Add PACIASP test.
10038 (aarch64_prologue_prev_register): Unmask PC value.
10039
11e1b75f
AH
100402019-03-22 Alan Hayward <alan.hayward@arm.com>
10041 Jiong Wang <jiong.wang@arm.com>
10042
10043 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10044 (aarch64_dwarf2_prev_register): Unmask PC value.
10045 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10046 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10047 DW_CFA_AARCH64_negate_ra_state.
10048 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10049
34dcc7cf
AH
100502019-03-22 Alan Hayward <alan.hayward@arm.com>
10051 Jiong Wang <jiong.wang@arm.com>
10052
10053 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10054 registers.
10055 (aarch64_pseudo_register_name): Likewise.
10056 (aarch64_pseudo_register_type): Likewise.
10057 (aarch64_pseudo_register_reggroup_p): Likewise.
10058 (aarch64_gdbarch_init): Add pauth registers.
10059 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10060 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10061 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10062 (struct gdbarch_tdep): Add regnum for ra_state.
10063
1ef53e6b
AH
100642019-03-22 Alan Hayward <alan.hayward@arm.com>
10065 Jiong Wang <jiong.wang@arm.com>
10066
10067 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10068
76bed0fd
AH
100692019-03-22 Alan Hayward <alan.hayward@arm.com>
10070 Jiong Wang <jiong.wang@arm.com>
10071
10072 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10073 function.
10074 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10075 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10076 (aarch64_gdbarch_init): Add puth registers.
10077 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10078 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10079 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10080
ee4fbcfa
AH
100812019-03-22 Alan Hayward <alan.hayward@arm.com>
10082 Jiong Wang <jiong.wang@arm.com>
10083
10084 * aarch64-linux-nat.c
10085 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10086 * aarch64-linux-tdep.c
10087 (aarch64_linux_core_read_description): Likewise.
10088 (aarch64_linux_get_hwcap): New function.
10089 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10090 (aarch64_linux_get_hwcap): New declaration.
10091
6dc0ebde
AH
100922019-03-22 Alan Hayward <alan.hayward@arm.com>
10093 Jiong Wang <jiong.wang@arm.com>
10094
10095 * aarch64-linux-nat.c
10096 (aarch64_linux_nat_target::read_description): Add pauth param.
10097 * aarch64-linux-tdep.c
10098 (aarch64_linux_core_read_description): Likewise.
10099 * aarch64-tdep.c (struct target_desc): Add in pauth.
10100 (aarch64_read_description): Add pauth param.
10101 (aarch64_gdbarch_init): Likewise.
10102 * aarch64-tdep.h (aarch64_read_description): Likewise.
10103 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10104 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10105 * features/Makefile: Add new files.
10106 * features/aarch64-pauth.c: New file.
10107 * features/aarch64-pauth.xml: New file.
10108
595915c1
TT
101092019-03-20 Tom Tromey <tromey@adacore.com>
10110
10111 * infrun.c (handle_inferior_event): Rename from
10112 handle_inferior_event_1. Create a scoped_value_mark.
10113 (handle_inferior_event): Remove.
10114
4c7d57e7
TT
101152019-03-19 Tom Tromey <tromey@adacore.com>
10116
10117 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10118 * infrun.h (print_stop_event): Add "displays" parameter.
10119 * infrun.c (print_stop_event): Add "displays" parameter.
10120
cb246234
PA
101212019-03-19 Pedro Alves <palves@redhat.com>
10122
10123 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10124 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10125 to -1. Fix TABs vs spaces.
10126 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10127 * tui/tui-out.h (tui_ui_out) Add intro comments.
10128 <m_line, m_start_of_line>: In-class initialize, and add describing
10129 comment.
10130
3a0e45b2
AH
101312019-03-18 Alan Hayward <alan.hayward@arm.com>
10132
10133 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10134 variable names.
10135 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10136
5371b850
PA
101372019-03-18 Pedro Alves <palves@redhat.com>
10138 Eli Zaretskii <eliz@gnu.org>
10139
10140 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10141 m_line and m_start_of_line.
10142
b17c4cd0
EZ
101432019-03-18 Eli Zaretskii <eliz@gnu.org>
10144
10145 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10146 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10147 it returns a newline. This fixes a regression in TU mode, whereby
10148 the next line is output on the same screen line as the user input.
10149
4bd56d18
TT
101502019-03-18 Tom Tromey <tromey@adacore.com>
10151
10152 * minsyms.c (minimal_symbol_reader::install): Remove call to
10153 obstack_blank.
10154
55c10aca
PA
101552019-03-18 Pedro Alves <palves@redhat.com>
10156
10157 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10158 New globals.
10159 (apply_style): New, factored out from ...
10160 (apply_ansi_escape): ... this. Handle reverse video mode.
10161 (tui_set_reverse_mode): New function.
10162 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10163 * tui/tui-winsource.c (tui_show_source_line): Use
10164 tui_set_reverse_mode instead of setting A_STANDOUT.
10165 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10166 New setter methods.
10167
647bb750
HD
101682019-03-18 Hannes Domani <ssbssa@yahoo.de>
10169
10170 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10171 Handle tabs.
10172
bff8c71f
TT
101732019-03-18 Tom Tromey <tromey@adacore.com>
10174
10175 * ada-lang.c (empty_array): Add "high" parameter.
10176 (ada_evaluate_subexp): Update.
10177
58785d98
ST
101782019-03-17 Sergei Trofimovich <siarheit@google.com>
10179
10180 * unittests/string_view-selftests.c: Define
10181 _initialize_string_view_selftests unconditionally.
10182
d4cbef22
ВМ
101832019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10184
10185 PR gdb/24350
10186 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10187
fce4c071
ВМ
101882019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10189
10190 PR gdb/24351
10191 * windows-nat.c (display_selector): Fix format specifiers.
10192
f7f0a123
EZ
101932019-03-17 Eli Zaretskii <eliz@gnu.org>
10194
10195 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10196 tui_refill_source_window instead of tui_refresh_win, to update the
10197 current execution line. This fixes redisplay of the current line
10198 when stepping through the code with "next" or "step".
10199
ab42892f
EZ
102002019-03-16 Eli Zaretskii <eliz@gnu.org>
10201
10202 * source-cache.c (source_cache::get_source_lines): Call
10203 find_source_lines to initialize s->nlines. This fixes vertical
10204 scrolling of TUI source window when the DOWN arrow is pressed.
10205
8d8c087f
PW
102062019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10207
10208 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10209 linux-thread-db.c (_initialize_thread_db): Likewise.
10210
798e1c30
EZ
102112019-03-16 Eli Zaretskii <eliz@gnu.org>
10212
10213 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10214 wclrtoeol in tui_show_source_line". This reverts changes made in
10215 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10216
eefba3da
TT
102172019-03-15 Tom Tromey <tom@tromey.com>
10218
10219 * symtab.h (struct minimal_symbol): Derive from
10220 general_symbol_info.
10221 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10222 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10223 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10224 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10225 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10226 (MSYMBOL_SEARCH_NAME): Update.
10227 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10228 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10229 * minsyms.c (minimal_symbol_reader::record_full): Update.
10230
0de2420c
TT
102312019-03-15 Tom Tromey <tom@tromey.com>
10232
10233 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10234
042d75e4
TT
102352019-03-15 Tom Tromey <tom@tromey.com>
10236
10237 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10238 unique_xmalloc_ptr.
10239 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10240 Update.
10241 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10242 (build_minimal_symbol_hash_tables)
10243 (minimal_symbol_reader::install): Update.
10244
db92718b
TT
102452019-03-15 Tom Tromey <tom@tromey.com>
10246
10247 * symtab.c (create_demangled_names_hash): Update.
10248 (symbol_set_names): Update.
10249 * objfiles.h (struct objfile_per_bfd_storage)
10250 <demangled_names_hash>: Now an htab_up.
10251 * objfiles.c (objfile_per_bfd_storage): Simplify.
10252
d6797f46
TT
102532019-03-15 Tom Tromey <tom@tromey.com>
10254
10255 * objfiles.h (struct objfile_per_bfd_storage): Declare
10256 destructor.
10257 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10258 New.
10259 (get_objfile_bfd_data): Use new. Don't initialize
10260 language_of_main.
10261 (free_objfile_per_bfd_storage): Remove.
10262 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10263
741d7538
TT
102642019-03-15 Tom Tromey <tom@tromey.com>
10265
10266 * symfile.c (reread_symbols): Update.
10267 * objfiles.c (objfile::objfile): Update.
10268 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10269 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10270 comment.
10271 (minimal_symbol_reader::install): Update.
10272 (terminate_minimal_symbol_table): Remove.
10273 * jit.c (jit_object_close_impl): Update.
10274
788c80d1
TT
102752019-03-15 Tom Tromey <tom@tromey.com>
10276
10277 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10278 initializations.
10279
1b7a07cb
TT
102802019-03-15 Tom Tromey <tom@tromey.com>
10281
10282 * objfiles.h (struct objfile_per_bfd_storage)
10283 <demangled_hash_languages>: Now a bitset.
10284 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10285 (lookup_minimal_symbol): Update.
10286
3db066bc
TT
102872019-03-15 Tom Tromey <tom@tromey.com>
10288
10289 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10290 Don't return the symbol.
10291 * coffread.c (record_minimal_symbol): Use record_full.
10292
3fff2c37
EZ
102932019-03-14 Eli Zaretskii <eliz@gnu.org>
10294
10295 The MS-Windows port of ncurses fails to switch to a color pair if
10296 one or both of the colors are the implicit default colors. This
10297 change records the default colors when TUI is initialized, and
10298 then specifies them explicitly when a color pair uses the default
10299 colors. This allows color styling in TUI mode on MS-Windows.
10300
10301 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10302 ncurses_norm_attr.
10303 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10304 colors in ncurses_norm_attr.
10305 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10306 "none", replace it with the default color recorded in
10307 ncurses_norm_attr.
10308
3b336828
TT
103092019-03-14 Tom Tromey <tromey@adacore.com>
10310
10311 * source-cache.h (class source_cache) <get_source_lines>: Return
10312 std::string.
10313 * source-cache.c (source_cache::extract_lines): Handle case where
10314 first_pos==npos. Return std::string.
10315 (source_cache::get_source_lines): Update.
10316
d085f989
TT
103172019-03-14 Tom Tromey <tromey@adacore.com>
10318
10319 * NEWS: Add item for "style sources" commands.
10320 * source-cache.c (source_cache::get_source_lines): Check
10321 source_styling.
10322 * cli/cli-style.c (source_styling): New global.
10323 (_initialize_cli_style): Add "style sources" commands.
10324 (show_style_sources): New function.
10325 * cli/cli-style.h (source_styling): Declare.
10326
6f11e682
TT
103272019-03-14 Pedro Alves <palves@redhat.com>
10328 Tom Tromey <tromey@adacore.com>
10329
10330 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10331 * tui/tui-winsource.c (tui_refill_source_window): New function,
10332 from...
10333 (tui_horizontal_source_scroll): ... here. Move some logic.
10334 * cli/cli-style.c (set_style_enabled): Notify new observable.
10335 * tui/tui-hooks.c (tui_redisplay_source): New function.
10336 (tui_attach_detach_observers): Attach or detach
10337 tui_redisplay_source.
10338 * observable.h (source_styling_changed): New observable.
10339 * observable.c: Define source_styling_changed observable.
10340
a068643d
TT
103412019-03-13 Tom Tromey <tromey@adacore.com>
10342
10343 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10344 (i386_gnu_nat_target::store_registers): Update.
10345 * target-debug.h (target_debug_print_std_string): New macro.
10346 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10347 * windows-tdep.c (display_one_tib): Update.
10348 * tui/tui-stack.c (tui_make_status_line): Update.
10349 * top.c (print_inferior_quit_action): Update.
10350 * thread.c (thr_try_catch_cmd): Update.
10351 (add_thread_with_info): Update.
10352 (thread_target_id_str): Update.
10353 (thr_try_catch_cmd): Update.
10354 (thread_command): Update.
10355 (thread_find_command): Update.
10356 * record-btrace.c (record_btrace_target::info_record)
10357 (record_btrace_resume_thread, record_btrace_target::resume)
10358 (record_btrace_cancel_resume, record_btrace_step_thread)
10359 (record_btrace_target::wait, record_btrace_target::wait)
10360 (record_btrace_target::wait, record_btrace_target::stop): Update.
10361 * progspace.c (print_program_space): Update.
10362 * process-stratum-target.c
10363 (process_stratum_target::thread_address_space): Update.
10364 * linux-fork.c (linux_fork_mourn_inferior)
10365 (detach_checkpoint_command, info_checkpoints_command)
10366 (linux_fork_context): Update.
10367 (linux_fork_detach): Update.
10368 (class scoped_switch_fork_info): Update.
10369 (delete_checkpoint_command): Update.
10370 * infrun.c (follow_fork_inferior): Update.
10371 (follow_fork_inferior): Update.
10372 (proceed_after_vfork_done): Update.
10373 (handle_vfork_child_exec_or_exit): Update.
10374 (follow_exec): Update.
10375 (displaced_step_prepare_throw): Update.
10376 (displaced_step_restore): Update.
10377 (start_step_over): Update.
10378 (resume_1): Update.
10379 (clear_proceed_status_thread): Update.
10380 (proceed): Update.
10381 (print_target_wait_results): Update.
10382 (do_target_wait): Update.
10383 (context_switch): Update.
10384 (stop_all_threads): Update.
10385 (restart_threads): Update.
10386 (finish_step_over): Update.
10387 (handle_signal_stop): Update.
10388 (switch_back_to_stepped_thread): Update.
10389 (keep_going_pass_signal): Update.
10390 (print_exited_reason): Update.
10391 (normal_stop): Update.
10392 * inferior.c (inferior_pid_to_str): Change return type.
10393 (print_selected_inferior): Update.
10394 (add_inferior): Update.
10395 (detach_inferior): Update.
10396 * dummy-frame.c (fprint_dummy_frames): Update.
10397 * dcache.c (dcache_info_1): Update.
10398 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10399 (btrace_fetch, btrace_clear): Update.
10400 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10401 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10402 type.
10403 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10404 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10405 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10406 * gdbarch.c, gdbarch.h: Rebuild.
10407 * gdbarch.sh (core_pid_to_str): Change return type.
10408 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10409 return type.
10410 (windows_nat_target::pid_to_str): Change return type.
10411 (windows_delete_thread): Update.
10412 (windows_nat_target::attach): Update.
10413 (windows_nat_target::files_info): Update.
10414 * target-delegates.c: Rebuild.
10415 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10416 return type.
10417 (sol_thread_target::pid_to_str): Change return type.
10418 * remote.c (class remote_target) <pid_to_str>: Change return
10419 type.
10420 (remote_target::pid_to_str): Change return type.
10421 (extended_remote_target::attach, remote_target::remote_stop_ns)
10422 (remote_target::remote_notif_remove_queued_reply)
10423 (remote_target::push_stop_reply, remote_target::disable_btrace):
10424 Update.
10425 (extended_remote_target::attach): Update.
10426 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10427 type.
10428 (gdbsim_target::pid_to_str): Change return type.
10429 * ravenscar-thread.c (struct ravenscar_thread_target)
10430 <pid_to_str>: Change return type.
10431 (ravenscar_thread_target::pid_to_str): Change return type.
10432 * procfs.c (class procfs_target) <pid_to_str>: Change return
10433 type.
10434 (procfs_target::pid_to_str): Change return type.
10435 (procfs_target::attach): Update.
10436 (procfs_target::detach): Update.
10437 (procfs_target::fetch_registers): Update.
10438 (procfs_target::store_registers): Update.
10439 (procfs_target::wait): Update.
10440 (procfs_target::files_info): Update.
10441 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10442 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10443 return type.
10444 (nto_procfs_target::pid_to_str): Change return type.
10445 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10446 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10447 return type.
10448 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10449 (exit_lwp): Update.
10450 (attach_proc_task_lwp_callback, get_detach_signal)
10451 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10452 (linux_nat_target::resume, wait_lwp, stop_callback)
10453 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10454 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10455 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10456 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10457 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10458 type.
10459 (inf_ptrace_target::attach): Update.
10460 (inf_ptrace_target::files_info): Update.
10461 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10462 type.
10463 (go32_nat_target::pid_to_str): Change return type.
10464 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10465 (gnu_nat_target::wait): Update.
10466 (gnu_nat_target::wait): Update.
10467 (gnu_nat_target::resume): Update.
10468 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10469 (fbsd_nat_target::wait): Update.
10470 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10471 type.
10472 (darwin_nat_target::attach): Update.
10473 * corelow.c (class core_target) <pid_to_str>: Change return type.
10474 (core_target::pid_to_str): Change return type.
10475 * target.c (normal_pid_to_str): Change return type.
10476 (default_pid_to_str): Likewise.
10477 (target_pid_to_str): Change return type.
10478 (target_translate_tls_address): Update.
10479 (target_announce_detach): Update.
10480 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10481 return type.
10482 (bsd_uthread_target::pid_to_str): Change return type.
10483 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10484 type.
10485 (bsd_kvm_target::pid_to_str): Change return type.
10486 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10487 return type.
10488 (aix_thread_target::pid_to_str): Change return type.
10489 * target.h (struct target_ops) <pid_to_str>: Change return type.
10490 (target_pid_to_str, normal_pid_to_str): Likewise.
10491 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10492 type.
10493 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10494 type.
10495 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10496 return type.
10497 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10498 type.
10499 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10500 type.
10501 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10502 return type.
10503
b4be1b06
SM
105042019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10505
10506 * NEWS: Mention that the new default MI version is 3. Mention
10507 changes to the output of commands and events that deal with
10508 multi-location breakpoints.
10509 * breakpoint.c: Include "mi/mi-out.h".
10510 (print_one_breakpoint): Change output syntax if using MI version
10511 >= 3.
10512 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10513 New.
10514 (mi_multi_location_breakpoint_output_fixed): New.
10515 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10516 (mi_cmd_fix_multi_location_breakpoint_output): New.
10517 (mi_multi_location_breakpoint_output_fixed): New.
10518 * mi/mi-cmds.c (mi_cmds): Register command
10519 -fix-multi-location-breakpoint-output.
10520 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10521 interpreter "mi".
10522
8e5e5494
SM
105232019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10524
10525 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10526 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10527 instantiate mi_ui_out based on interpreter name.
10528 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10529 * mi/mi-main.c (mi_load_progress): Likewise.
10530
197df35e
JB
105312019-03-12 John Baldwin <jhb@FreeBSD.org>
10532
10533 * NEWS: Combine separate "New targets" sections for 8.3.
10534
8399425f
JB
105352019-03-12 John Baldwin <jhb@FreeBSD.org>
10536
10537 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10538 (ppcfbsd_init_abi): Install gdbarch
10539 "fetch_tls_load_module_address" and "get_thread_local_address"
10540 methods.
10541
b0f87ed0
JB
105422019-03-12 John Baldwin <jhb@FreeBSD.org>
10543
10544 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10545 (riscv_fbsd_init_abi): Install gdbarch
10546 "fetch_tls_load_module_address" and "get_thread_local_address"
10547 methods.
10548
ce25aa57
JB
105492019-03-12 John Baldwin <jhb@FreeBSD.org>
10550
10551 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10552 (i386fbsd_init_abi): Install gdbarch
10553 "fetch_tls_load_module_address" and "get_thread_local_address"
10554 methods.
10555
f5424cfa
JB
105562019-03-12 John Baldwin <jhb@FreeBSD.org>
10557
10558 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10559 (amd64fbsd_init_abi): Install gdbarch
10560 "fetch_tls_load_module_address" and "get_thread_local_address"
10561 methods.
10562
945f3901
JB
105632019-03-12 John Baldwin <jhb@FreeBSD.org>
10564
10565 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10566 (struct fbsd_pspace_data): New type.
10567 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10568 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10569 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10570 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10571 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10572
ef0bd204
JB
105732019-03-12 John Baldwin <jhb@FreeBSD.org>
10574
10575 * gdbtypes.c (lookup_struct_elt): New function.
10576 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10577 * gdbtypes.h (struct struct_elt): New type.
10578 (lookup_struct_elt): New prototype.
10579
36c53a02
JB
105802019-03-12 John Baldwin <jhb@FreeBSD.org>
10581
10582 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10583 remove disabled code block.
10584
6e056c81
JB
105852019-03-12 John Baldwin <jhb@FreeBSD.org>
10586
10587 * gdbarch.sh (get_thread_local_address): New method.
10588 * gdbarch.h, gdbarch.c: Regenerate.
10589 * target.c (target_translate_tls_address): Use
10590 gdbarch_get_thread_local_address if present instead of
10591 target::get_thread_local_address.
10592
cd250a18
JB
105932019-03-12 John Baldwin <jhb@FreeBSD.org>
10594
10595 * target.h (target::get_thread_local_address): Update comment.
10596
df22c1e5
JB
105972019-03-12 John Baldwin <jhb@FreeBSD.org>
10598
10599 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10600 objfile->separate_debug_objfile_backlink if not NULL.
10601
dd6876c9
JB
106022019-03-12 John Baldwin <jhb@FreeBSD.org>
10603
10604 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10605 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10606 (amd64bsd_store_inferior_registers): Likewise.
10607 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10608 Enable segment base registers.
10609 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10610 PT_GETFSBASE and PT_GETGSBASE.
10611 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10612 PT_SETGSBASE.
10613 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10614 segment base registers.
10615 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10616
1163a4b7
JB
106172019-03-12 John Baldwin <jhb@FreeBSD.org>
10618
10619 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10620 Update calls to i386_target_description to add 'segments'
10621 parameter.
10622 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10623 add segment base registers.
10624 * arch/i386.c (i386_create_target_description): Add 'segments'
10625 parameter to enable segment base registers.
10626 * arch/i386.h (i386_create_target_description): Likewise.
10627 * features/i386/32bit-segments.xml: New file.
10628 * features/i386/32bit-segments.c: Generate.
10629 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10630 call to i386_target_description to add 'segments' parameter.
10631 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10632 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10633 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10634 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10635 if feature is present.
10636 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10637 Add 'segments' parameter to call to i386_target_description.
10638 (i386_target_description): Add 'segments' parameter to enable
10639 segment base registers.
10640 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10641 to call to i386_target_description.
10642 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10643 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10644 Define I386_NUM_REGS.
10645 (i386_target_description): Add 'segments' parameter to enable
10646 segment base registers.
10647
3a350822
EZ
106482019-03-12 Eli Zaretskii <eliz@gnu.org>
10649
10650 PR/24325
10651 * source-cache.c: #undef open and close, to avoid unresolved
10652 externals during linking.
10653
ffdd69cf
TT
106542019-03-12 Tom Tromey <tromey@adacore.com>
10655
10656 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10657 const. Add initializers.
10658 (_initialize_remote): Don't initialize ptid globals.
10659
ec148c57
PA
106602019-03-12 Pedro Alves <palves@redhat.com>
10661
10662 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10663
32764270
PA
106642019-03-12 Pedro Alves <palves@redhat.com>
10665
10666 * cp-name-parser.y (main): Remove unused 'len' variable.
10667
17547186
TT
106682019-03-12 Tom Tromey <tromey@adacore.com>
10669
10670 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10671 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10672
d3a70e03
TT
106732019-03-12 Tom Tromey <tromey@adacore.com>
10674
10675 * linux-nat.c (iterate_over_lwps): Update.
10676 (stop_callback): Remove parameter.
10677 (stop_wait_callback, detach_callback, resume_set_callback)
10678 (select_singlestep_lwp_callback, set_ignore_sigint)
10679 (status_callback, resumed_callback, resume_clear_callback)
10680 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10681 data parameter.
10682 (linux_nat_target::detach, linux_nat_target::resume)
10683 (linux_stop_and_wait_all_lwps, select_event_lwp)
10684 (linux_nat_filter_event, linux_nat_wait_1)
10685 (linux_nat_target::kill, linux_nat_target::stop)
10686 (linux_nat_target::stop): Update.
10687 (linux_nat_resume_callback): Change type.
10688 (resume_stopped_resumed_lwps, count_events_callback)
10689 (select_event_lwp_callback): Likewise.
10690 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10691 * arm-linux-nat.c (struct update_registers_data): Remove.
10692 (update_registers_callback): Change type.
10693 (arm_linux_insert_hw_breakpoint1): Update.
10694 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10695 parameter.
10696 (x86_linux_dr_set_addr): Update.
10697 (x86_linux_dr_set_control): Update.
10698 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10699 (iterate_over_lwps): Use gdb::function_view.
10700 * nat/aarch64-linux-hw-point.c (struct
10701 aarch64_dr_update_callback_param): Remove.
10702 (debug_reg_change_callback): Change type.
10703 (aarch64_notify_debug_reg_change): Update.
10704 * s390-linux-nat.c (s390_refresh_per_info): Update.
10705
82cb27ff
TT
107062019-03-11 Tom Tromey <tromey@adacore.com>
10707
10708 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10709 redundant assignment to "this_cu".
10710
568c0683
SM
107112019-03-08 Simon Marchi <simon.marchi@efficios.com>
10712
10713 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10714
f09ce22d
SM
107152019-03-08 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10718 from...
10719 (rank_one_type): ... this.
10720
595f96a9
SM
107212019-03-08 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10724 from...
10725 (rank_one_type): ... this.
10726
2598a94b
SM
107272019-03-08 Simon Marchi <simon.marchi@efficios.com>
10728
10729 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10730 from...
10731 (rank_one_type): ... this.
10732
7f17b20d
SM
107332019-03-08 Simon Marchi <simon.marchi@efficios.com>
10734
10735 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10736 from...
10737 (rank_one_type): ... this.
10738
2c509035
SM
107392019-03-08 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10742 from...
10743 (rank_one_type): ... this.
10744
0dd322dc
SM
107452019-03-08 Simon Marchi <simon.marchi@efficios.com>
10746
10747 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10748 from...
10749 (rank_one_type): ... this.
10750
41ea4728
SM
107512019-03-08 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10754 from...
10755 (rank_one_type): ... this.
10756
793cd1d2
SM
107572019-03-08 Simon Marchi <simon.marchi@efficios.com>
10758
10759 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10760 from...
10761 (rank_one_type): ... this.
10762
34910087
SM
107632019-03-08 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10766 from...
10767 (rank_one_type): ... this.
10768
f1f832d6
SM
107692019-03-08 Simon Marchi <simon.marchi@efficios.com>
10770
10771 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10772 from...
10773 (rank_one_type): ... this.
10774
b9f4512f
SM
107752019-03-08 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10778 from...
10779 (rank_one_type): ... this.
10780
9293fc63
SM
107812019-03-08 Simon Marchi <simon.marchi@efficios.com>
10782
10783 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10784 from...
10785 (rank_one_type): ... this.
10786
e3abbe7e
PW
107872019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10788
10789 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10790 inferior-events' shows the example events.
10791
e4adb939
EZ
107922019-03-08 Eli Zaretskii <eliz@gnu.org>
10793
10794 Support styling on native MS-Windows console
10795
10796 PR/24315
10797 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10798 on MS-Windows if $TERM is not defined.
10799
10800 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10801
10802 * posix-hdep.c (gdb_console_fputs):
10803 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10804 functions.
10805 * ui-file.h (gdb_console_fputs): Add prototype.
10806
10807 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10808 back to fputs only if the former returns zero.
10809
25629dfd
TT
108102019-03-07 Tom Tromey <tom@tromey.com>
10811
10812 * symmisc.c (print_symbol_bcache_statistics): Update.
10813 (print_objfile_statistics): Update.
10814 * symfile.c (allocate_symtab): Update.
10815 * stabsread.c: Don't include bcache.h.
10816 * psymtab.h (struct psymbol_bcache): Don't declare.
10817 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10818 (psymbol_bcache_init, psymbol_bcache_free)
10819 (psymbol_bcache_get_bcache): Don't declare.
10820 * psymtab.c (struct psymbol_bcache): Remove.
10821 (psymtab_storage::psymtab_storage): Update.
10822 (psymtab_storage::~psymtab_storage): Update.
10823 (psymbol_bcache_init, psymbol_bcache_free)
10824 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10825 (add_psymbol_to_bcache): Update.
10826 (allocate_psymtab): Update.
10827 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10828 macro_cache>: No longer pointers.
10829 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10830 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10831 * macrotab.c (macro_bcache): Update.
10832 * macroexp.c: Don't include bcache.h.
10833 * gdbtypes.c (check_types_worklist): Update.
10834 (types_deeply_equal): Remove TRY/CATCH. Update.
10835 * elfread.c (elf_symtab_read): Update.
10836 * dwarf2read.c: Don't include bcache.h.
10837 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10838 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10839 (print_bcache_statistics, bcache_memory_used): Don't declare.
10840 (struct bcache): Move from bcache.c. Add constructor, destructor,
10841 methods. Rename all data members.
10842 * bcache.c (struct bcache): Move to bcache.h.
10843 (bcache::expand_hash_table): Rename from expand_hash_table.
10844 (bcache): Remove.
10845 (bcache::insert): Rename from bcache_full.
10846 (bcache::compare): Rename from bcache_compare.
10847 (bcache_xmalloc): Remove.
10848 (bcache::~bcache): Rename from bcache_xfree.
10849 (bcache::print_statistics): Rename from print_bcache_statistics.
10850 (bcache::memory_used): Rename from bcache_memory_used.
10851
fe726667
PA
108522019-03-07 Pedro Alves <palves@redhat.com>
10853
10854 * infrun.c (normal_stop): Also check for
10855 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10856
7584bb30
AB
108572019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * f-lang.c (value_from_host_double): Moved to...
10860 * value.c (value_from_host_double): ...here.
10861 * value.h (value_from_host_double): Declare.
10862 * guile/scm-math.c (vlscm_convert_typed_number): Use
10863 value_from_host_double.
10864 (vlscm_convert_number): Likewise.
10865 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10866 * python/py-value.c (convert_value_from_python): Likewise.
10867
a7b1986e
TT
108682019-03-06 Tom Tromey <tom@tromey.com>
10869
10870 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10871
0ccf4211
TT
108722019-03-06 Tom Tromey <tom@tromey.com>
10873
10874 * utils.h (free_current_contents): Don't declare.
10875 * utils.c (free_current_contents): Remove.
10876
fe7b42e5
TT
108772019-03-06 Tom Tromey <tom@tromey.com>
10878
10879 * top.c (quit_force): Update.
10880 * main.c (captured_command_loop): Update.
10881 * common/new-op.c (operator new): Update.
10882 * common/common-exceptions.c (struct catcher)
10883 <save_cleanup_chain>: Remove member.
10884 (exceptions_state_mc_init): Update.
10885 (exception_try_scope_entry): Return nullptr.
10886 (exception_try_scope_exit, exception_rethrow)
10887 (throw_exception_sjlj, throw_exception_cxx): Update.
10888 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10889 (all_cleanups, do_cleanups, discard_cleanups)
10890 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10891 (restore_cleanups, restore_final_cleanups): Don't declare.
10892 (do_final_cleanups): Remove parameter.
10893 * common/cleanups.c (cleanup_chain, make_cleanup)
10894 (make_cleanup_dtor, all_cleanups, do_cleanups)
10895 (discard_my_cleanups, discard_cleanups)
10896 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10897 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10898 (null_cleanup): Remove.
10899 (do_final_cleanups): Remove parameter.
10900
c6321f19
TT
109012019-03-06 Tom Tromey <tom@tromey.com>
10902
10903 * remote.c (remote_target::remote_parse_stop_reply): Use
10904 unique_xmalloc_ptr.
10905
61b30099
TT
109062019-03-06 Tom Tromey <tom@tromey.com>
10907
10908 * stabsread.c (struct stabs_field_info): Rename from field_info.
10909 <list, fnlist>: Add initializers.
10910 <obstack>: New member.
10911 (read_member_functions, read_struct_fields, read_baseclasses):
10912 Allocate on obstack. Don't use cleanups.
10913 (read_one_struct_field, read_member_functions, read_struct_fields)
10914 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10915 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10916 (read_struct_type): Update.
10917
6cceac94
TT
109182019-03-06 Tom Tromey <tom@tromey.com>
10919
10920 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10921 * common/filestuff.h (make_cleanup_close): Don't declare.
10922 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10923 Remove.
10924
72412762
TT
109252019-03-06 Tom Tromey <tom@tromey.com>
10926
10927 * solib-aix.c: Use make_scope_exit.
10928
2b6ff1c0
TT
109292019-03-06 Tom Tromey <tom@tromey.com>
10930
10931 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10932 Use make_scope_exit.
10933
d01c5877
TT
109342019-03-06 Tom Tromey <tom@tromey.com>
10935
10936 * solib-svr4.c (disable_probes_interface): Remove parameter.
10937 (svr4_handle_solib_event): Use make_scope_exit.
10938
32603266
TT
109392019-03-06 Tom Tromey <tom@tromey.com>
10940
10941 * remote.c (struct stop_reply_deleter): Remove.
10942 (stop_reply_up): Update.
10943 (struct stop_reply): Derive from notif_event. Don't typedef.
10944 <regcache>: Now a std::vector.
10945 (stop_reply_xfree): Remove.
10946 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10947 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10948 (remote_target::discard_pending_stop_replies): Use delete.
10949 (remote_target::remote_parse_stop_reply): Update.
10950 (remote_target::process_stop_reply): Update.
10951 * remote-notif.h (struct notif_event): Add virtual destructor.
10952 Remove "dtr" member.
10953 (struct notif_client) <alloc_event>: Return a unique_ptr.
10954 (notif_event_xfree): Don't declare.
10955 (notif_event_up): New typedef.
10956 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10957 (notif_event_xfree, do_notif_event_xfree): Remove.
10958 (remote_notif_state_xfree): Update.
10959
9799571e
TT
109602019-03-06 Tom Tromey <tom@tromey.com>
10961
10962 * infrun.c (displaced_step_clear_cleanup): Now a
10963 forward_scope_exit type.
10964 (displaced_step_prepare_throw): Update.
10965 (displaced_step_fixup): Update.
10966
09e3c4ca
TT
109672019-03-06 Tom Tromey <tom@tromey.com>
10968
10969 * inferior.h (class inferior): Update comment.
10970 * gdbthread.h (class thread_info): Update comment.
10971
e2a03548
TT
109722019-03-06 Joel Brobecker <brobecker@adacore.com>
10973 Tom Tromey <tom@tromey.com>
10974
10975 * stabsread.h (struct stab_section_list): Remove.
10976 (coffstab_build_psymtabs): Update.
10977 * dbxread.c (symbuf_sections): Now a std::vector.
10978 (sect_idx): New global.
10979 (fill_symbuf): Update.
10980 (coffstab_build_psymtabs): Change type of stabsects parameter.
10981 Update.
10982 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10983 std::vector.
10984 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10985 (coff_locate_sections): Update.
10986 (coff_symfile_read): Remove cleanups. Update.
10987 (init_stringtab): Add storage parameter.
10988 (free_stringtab, free_stringtab_cleanup): Remove.
10989 (init_lineno): Add storage parameter.
10990 (free_linetab, free_linetab_cleanup): Remove.
10991
b7e60d85
PA
109922019-03-06 Pedro Alves <palves@redhat.com>
10993
10994 * linux-fork.c (fork_info::clobber_regs): Delete.
10995 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10996 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10997 comment. Adjust.
10998 (scoped_switch_fork_info::scoped_switch_fork_info)
10999 (checkpoint_command, linux_fork_context): Adjust
11000 fork_save_infrun_state calls.
11001
e52c971f
PA
110022019-03-06 Pedro Alves <palves@redhat.com>
11003
11004 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11005 (inf_has_multiple_threads): Return 'bool' and rewrite using
11006 inferior_info::threads().
11007
06974e6c
PA
110082019-03-06 Pedro Alves <palves@redhat.com>
11009
11010 * linux-fork.c: Include <list>.
11011 (fork_list): Now a std::list instance.
11012 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11013 (forks_exist_p, find_last_fork): Adjust.
11014 (new_fork): Delete.
11015 (one_fork_p): New.
11016 (add_fork): Adjust.
11017 (free_fork): Delete, folded into fork_info::~fork_info().
11018 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11019 Adjust.
11020 (init_fork_list): Delete.
11021 (linux_fork_killall, linux_fork_mourn_inferior)
11022 (linux_fork_detach, info_checkpoints_command): Adjust.
11023 (_initialize_linux_fork): No longer call init_fork_list.
11024
72f31aea
PA
110252019-03-06 Pedro Alves <palves@redhat.com>
11026
11027 * linux-fork.c (new_fork): New, split out of ...
11028 (add_fork): ... this. Return void. Move "first fork" special
11029 case from here, to ...
11030 (checkpoint_command): ... here.
11031 * linux-linux.h (add_fork): Return void.
11032
efbecbc1
AB
110332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11034
11035 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11036
0841c79a
AB
110372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11038 Chris January <chris.january@arm.com>
11039 David Lecomber <david.lecomber@arm.com>
11040
11041 * f-exp.y: New token, UNOP_INTRINSIC.
11042 (exp): New pattern using UNOP_INTRINSIC token.
11043 (f77_keywords): Add 'abs' keyword.
11044 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11045 (value_from_host_double): New function.
11046 (evaluate_subexp_f): Support UNOP_ABS.
11047
4a270568
AB
110482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11051 types.
11052
067630bd
AB
110532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11056 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11057 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11058
3be47f7a
AB
110592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11060
11061 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11062
4d00f5d8
AB
110632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11064 Chris January <chris.january@arm.com>
11065
11066 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11067 * f-exp.y: Define 'KIND' token.
11068 (exp): New pattern for KIND expressions.
11069 (ptype): Handle types with a kind extension.
11070 (direct_abs_decl): Extend to spot kind extensions.
11071 (f77_keywords): Add 'kind' to the list.
11072 (push_kind_type): New function.
11073 (convert_to_kind_type): New function.
11074 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11075 * parse.c (operator_length_standard): Likewise.
11076 * parser-defs.h (enum type_pieces): Add tp_kind.
11077 * std-operator.def: Add UNOP_KIND.
11078
e454224f
AB
110792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11080
11081 * f-exp.y (f_parse): Set yydebug.
11082
9dad4a58
AB
110832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11084
11085 * f-lang.c (evaluate_subexp_f): New function.
11086 (exp_descriptor_f): New global.
11087 (f_language_defn): Use exp_descriptor_f instead of
11088 exp_descriptor_standard.
11089
c8f91604
AB
110902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * f-exp.y (struct token): Add comments.
11093 (dot_ops): Remove uppercase versions and the end marker.
11094 (f77_keywords): Likewise.
11095 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11096 entries in the dot_ops array are case insensitive, and use
11097 strncasecmp to compare strings. Also some whitespace cleanup in
11098 this area. Similar for the f77_keywords array, except entries in
11099 this list might be case sensitive.
11100
dd9f2c76
AB
111012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * f-exp.y (struct f77_boolean_val): Add comments.
11104 (boolean_values): Remove uppercase versions, and end marker.
11105 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11106 and use strncasecmp to achieve case insensitivity. Additionally,
11107 perform whitespace cleanup around this code.
11108
67a3048c
TT
111092019-03-06 Tom Tromey <tromey@adacore.com>
11110
11111 * remote-sim.c (gdbsim_target_open): Use result of
11112 gdb_argv::release.
11113
aa3cfbda
RB
111142019-03-06 Richard Bunt <richard.bunt@arm.com>
11115 Dirk Schubert <dirk.schubert@arm.com>
11116 Chris January <chris.january@arm.com>
11117
11118 * eval.c (evaluate_subexp_standard): Call Fortran argument
11119 wrapping logic.
11120 * f-lang.c (struct value): A value which can be passed into a
11121 Fortran function call.
11122 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11123 where appropriate.
11124 (struct type): Value ready for a Fortran function call.
11125 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11126 is needed.
11127 * f-lang.h (fortran_argument_convert): Declaration.
11128 (fortran_preserve_arg_pointer): Declaration.
11129 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11130
ea38e5df
TT
111312019-03-05 Tom Tromey <tromey@adacore.com>
11132
11133 * python/py-prettyprint.c (print_string_repr): Remove #if.
11134 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11135
06b5b831
TT
111362019-03-05 Tom Tromey <tromey@adacore.com>
11137
11138 * target.c (the_dummy_target): Move later. Change type to
11139 "dummy_target".
11140 (initialize_targets): Don't initialize the_dummy_target.
11141
edbd9e45
TT
111422019-03-05 Tom Tromey <tromey@adacore.com>
11143
11144 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11145 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11146
c119e040
TT
111472019-03-05 Tom Tromey <tromey@adacore.com>
11148
11149 * windows-nat.c (windows_nat_target::attach)
11150 (windows_nat_target::detach): Don't call gdb_flush.
11151 * valprint.c (generic_val_print, val_print, val_print_string):
11152 Don't call gdb_flush.
11153 * utils.c (defaulted_query): Don't call gdb_flush.
11154 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11155 * target.c (target_announce_detach): Don't call gdb_flush.
11156 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11157 * remote.c (extended_remote_target::attach): Don't call
11158 gdb_flush.
11159 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11160 * printcmd.c (do_examine): Don't call gdb_flush.
11161 (info_display_command): Don't call gdb_flush.
11162 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11163 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11164 * memattr.c (info_mem_command): Don't call gdb_flush.
11165 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11166 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11167 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11168 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11169 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11170 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11171 (gnu_nat_target::detach): Don't call gdb_flush.
11172 * f-valprint.c (f_val_print): Don't call gdb_flush.
11173 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11174 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11175 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11176 gdb_flush.
11177 * c-valprint.c (c_val_print): Don't call gdb_flush.
11178 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11179
895dafa6
TT
111802019-03-05 Tom Tromey <tromey@adacore.com>
11181
11182 * varobj.c (update_dynamic_varobj_children): Update.
11183 (install_default_visualizer): Use reset, not release.
11184 * value.c (set_internalvar): Update.
11185 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11186 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11187 ATTRIBUTE_UNUSED_RESULT.
11188
88a774b9
TT
111892019-03-05 Tom Tromey <tromey@adacore.com>
11190
11191 * remote.c (class scoped_remote_fd) <release>: Add
11192 ATTRIBUTE_UNUSED_RESULT.
11193
4e4a8b93
TT
111942019-03-05 Tom Tromey <tromey@adacore.com>
11195
11196 * macroexp.c (struct macro_buffer) <release>: Add
11197 ATTRIBUTE_UNUSED_RESULT.
11198
083eef1f
TT
111992019-03-05 Tom Tromey <tromey@adacore.com>
11200
11201 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11202 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11203 ATTRIBUTE_UNUSED_RESULT.
11204
3cabd438
TT
112052019-03-05 Tom Tromey <tromey@adacore.com>
11206
11207 * common/scoped_fd.h (class scoped_fd) <release>: Add
11208 ATTRIBUTE_UNUSED_RESULT.
11209
41e3300a
TT
112102019-03-05 Tom Tromey <tromey@adacore.com>
11211
11212 * parser-defs.h (struct parser_state) <release>: Add
11213 ATTRIBUTE_UNUSED_RESULT.
11214
18cb7c9f
TT
112152019-03-05 Tom Tromey <tromey@adacore.com>
11216
11217 * utils.h (class gdb_argv) <release>: Add
11218 ATTRIBUTE_UNUSED_RESULT.
11219 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11220
41fa577f
EZ
112212019-03-02 Eli Zaretskii <eliz@gnu.org>
11222
a6a4b2c6
EZ
11223 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11224 for-loop range, to avoid compiler warnings.
11225
11226 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11227 avoid compiler warnings about unused variables.
11228
742a7df5
EZ
11229 * NEWS: Mention end of support for native debugging on MS-Windows
11230 before XP.
11231
41fa577f
EZ
11232 PR gdb/24292
11233 * common/netstuff.c:
11234 * gdbserver/gdbreplay.c
11235 * gdbserver/remote-utils.c:
11236 * ser-tcp.c:
11237 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11238 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11239 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11240 'getaddrinfo' and 'freeaddrinfo' were not available before
11241 Windows XP, and mingw.org's MinGW headers by default define
11242 _WIN32_WINNT to 0x500.
11243
827f438f
GB
112442019-03-01 Gary Benson <gbenson@redhat.com>
11245
11246 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11247
92137da0
RO
112482019-02-28 Brian Vandenberg <phantall@gmail.com>
11249 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11250
11251 PR gdb/8527
11252 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11253 set_sigint_trap, clear_sigint_trap.
11254
799efbe8
PW
112552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11256
11257 * target.c (target_detach): Clear the regcache and the
11258 frame cache.
11259
8ed25214
PA
112602019-02-27 Pedro Alves <palves@redhat.com>
11261
11262 * utils.c (set_screen_size): When we cap the height/width sizes,
11263 tweak the corresponding command variable to show "unlimited":
11264
23031e31
SJ
112652019-02-27 Saagar Jha <saagar@saagarjha.com>
11266 Pedro Alves <palves@redhat.com>
11267
11268 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11269 before calling rl_set_screen_size.
11270
6c28e44a
TT
112712019-02-27 Tom Tromey <tromey@adacore.com>
11272
11273 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11274 define.
11275 * python/py-value.c: Remove Python 2.4 workaround.
11276 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11277 workaround.
11278 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11279 Python 2.4 workaround.
11280 * python/python-internal.h: Remove Python 2.4 comment.
11281 (Py_ssize_t): Don't define.
11282 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11283 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11284 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11285 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11286 * python/python.c (do_start_initialization): Remove Python 2.4
11287 workaround.
11288 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11289 (print_children): Remove Python 2.4 workaround.
11290 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11291 workaround.
11292 (CHARBUFFERPROC_NAME): Remove.
11293 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11294 Python 2.4 workaround.
11295
2c3fc25d 112962019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11297
2c3fc25d
KB
11298 * NEWS: Note minimum Python version.
11299
6ca62222
KB
113002019-02-27 Kevin Buettner <kevinb@redhat.com>
11301
11302 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11303 code from these functions. Remove corresponding ifdefs. Use
11304 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11305 Remove gotos and target of gotos.
11306 (infpy_search_memory): Likewise.
11307
f4bc7d2c
AB
113082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11311 (hppa_gdbarch_init): Don't register deleted functions with
11312 gdbarch.
11313
9734a586
AB
113142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11315
11316 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11317 (h8300_unwind_sp): Delete.
11318 (h8300_dummy_id): Delete.
11319 (h8300_gdbarch_init): Don't register deleted functions with
11320 gdbarch.
11321
68b867f3
AB
113222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11323
11324 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11325 (ft32_unwind_pc): Delete.
11326 (ft32_unwind_sp): Delete.
11327 (ft32_gdbarch_init): Don't register deleted functions with
11328 gdbarch.
11329
2fbe7ad0
AB
113302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11333 (frv_unwind_pc): Delete.
11334 (frv_unwind_sp): Delete.
11335 (frv_gdbarch_init): Don't register deleted functions with
11336 gdbarch.
11337
76055cbe
AB
113382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11339
11340 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11341 (riscv_unwind_pc): Delete.
11342 (riscv_unwind_sp): Delete.
11343 (riscv_gdbarch_init): Don't register deleted functions with
11344 gdbarch.
11345
4133e5a1
AB
113462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11347
11348 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11349 (csky_unwind_pc): Delete.
11350 (csky_unwind_sp): Delete.
11351 (csky_gdbarch_init): Don't register deleted functions with
11352 gdbarch.
11353
8010f576
AB
113542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11355
11356 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11357 (cris_unwind_pc): Delete.
11358 (cris_unwind_sp): Delete.
11359 (cris_gdbarch_init): Don't register deleted functions with
11360 gdbarch.
11361
b56bf084
AB
113622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11365 (bfin_unwind_pc): Delete.
11366 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11367
a19a650f
AB
113682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11369
11370 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11371 (arm_unwind_pc): Delete.
11372 (arm_unwind_sp): Delete.
11373 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11374
f8278c3c
AB
113752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11376
11377 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11378 (arc_unwind_pc): Delete.
11379 (arc_unwind_sp): Delete.
11380 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11381
480e46cf
AB
113822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11383
11384 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11385 (alpha_unwind_pc): Delete.
11386 (alpha_gdbarch_init): Don't register deleted functions with
11387 gdbarch.
11388
7a995095
AB
113892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11390
11391 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11392 (aarch64_unwind_pc): Delete.
11393 (aarch64_unwind_sp): Delete.
11394 (aarch64_gdbarch_init): Don't register deleted functions with
11395 gdbarch.
11396
bf9a735e
AB
113972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11398
11399 * gdbtypes.c (type_align): Don't consider static members when
11400 computing structure alignment.
11401
5561fc30
AB
114022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11403
11404 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11405 return 0 for other types.
11406 * arch-utils.c (default_type_align): Always return 0.
11407 * gdbarch.h: Regenerate.
11408 * gdbarch.sh (type_align): Extend comment.
11409 * gdbtypes.c (type_align): Add additional comments, always call
11410 gdbarch_type_align before applying the default rules.
11411 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11412 generic code will then apply a suitable default.
11413 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11414 types, return 0 for other types.
11415
9335e75a
JB
114162019-02-27 Joel Brobecker <brobecker@adacore.com>
11417
11418 * NEWS: Create a new section for the next release branch.
11419 Rename the section of the current branch, now that it has
11420 been cut.
11421
3d34d8de
JB
114222019-02-27 Joel Brobecker <brobecker@adacore.com>
11423
11424 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11425 * version.in: Bump version to 8.3.50.DATE-git.
11426
143420fb
SM
114272019-02-26 Simon Marchi <simon.marchi@efficios.com>
11428
11429 * aix-thread.c (ptid_cmp): Remove unused variable.
11430 (get_signaled_thread): Likewise.
11431 (store_regs_user_thread): Likewise.
11432 (store_regs_kernel_thread): Likewise.
11433 (fetch_regs_kernel_thread): Remove shadowed variable.
11434
172fb711
AB
114352019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11436
11437 * features/riscv/32bit-cpu.xml: Add register numbers.
11438 * features/riscv/32bit-fpu.c: Regenerate.
11439 * features/riscv/32bit-fpu.xml: Add register numbers.
11440 * features/riscv/64bit-cpu.xml: Add register numbers.
11441 * features/riscv/64bit-fpu.c: Regenerate.
11442 * features/riscv/64bit-fpu.xml: Add register numbers.
11443
26c89782
KB
114442019-02-26 Kevin Buettner <kevinb@redhat.com>
11445
af54ade9 11446 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11447 * python/py-value.c (convert_buffer_and_type_to_value): New
11448 function.
11449 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11450 Add support for handling an optional second argument. Call
11451 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11452 * python/python-internal.h (Py_buffer_deleter): New struct.
11453 (Py_buffer_up): New typedef.
11454
0f58c9e8
JB
114552019-02-25 John Baldwin <jhb@FreeBSD.org>
11456
11457 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11458 instead of releasing ownership.
11459
0a0f4c01
JR
114602019-02-25 Jordan Rupprecht <rupprecht@google.com>
11461
11462 * dwarf2read.c (open_and_init_dwp_file): Call
11463 elf_numsections instead of bfd_count_sections to initialize
11464 dwp_file->num_sections.
11465
cd5a152c
TT
114662019-02-25 Tom Tromey <tromey@adacore.com>
11467
11468 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11469
8a6a8513
SDJ
114702019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11471
11472 * gcore.in: Add '--readnever' option when invoking GDB.
11473
04dcda9c
SM
114742019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11475
11476 * MAINTAINERS: Update my email address.
11477
07bc701d
SM
114782019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11479
11480 * build-id.c (build_id_to_debug_bfd_1): New function.
11481 (build_id_to_debug_bfd): Look for separate debug file in
11482 sysroot.
11483
c6f4a5d0
AB
114842019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11485
11486 * gdbarch.sh: Update the copyright year range that is placed into
11487 generated files.
11488
9600246d
KS
114892019-02-22 Keith Seitz <keiths@redhat.com>
11490
11491 PR symtab/23853
11492 * linespec.c (create_sals_line_offset): Search for the default
11493 symtab's filename instead of its fullname.
11494
7557a514
AH
114952019-02-21 Alan Hayward <alan.hayward@arm.com>
11496
11497 * NEWS: Update style defaults.
11498
ee2bcb0c
AH
114992019-02-21 Alan Hayward <alan.hayward@arm.com>
11500
11501 * main.c (captured_main_1): Disable styling in batch mode.
11502
0c95f9ed
TT
115032019-02-20 Tom Tromey <tom@tromey.com>
11504
11505 * symtab.c (symtab_symbol_info): Fix typos.
11506
c763b894
TT
115072019-02-20 Tom Tromey <tromey@adacore.com>
11508
11509 * findcmd.c (_initialize_mem_search): Use upper case for
11510 metasyntactic variables.
11511
0ef8a082
AH
115122019-02-20 Alan Hayward <alan.hayward@arm.com>
11513
11514 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11515 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11516
6caa91b6
SM
115172019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11518
11519 * top.h (source_file_name): Change to std::string.
11520 * top.c (source_file_name): Likewise.
11521 (command_line_input): Adjust.
11522 * cli/cli-script.c (script_from_file): Adjust.
11523
98814c6c
TT
115242019-02-19 Tom Tromey <tromey@adacore.com>
11525
11526 * ravenscar-thread.c
11527 (ravenscar_thread_target::update_thread_list): Don't call
11528 ada_build_task_list.
11529 * ada-lang.h (ada_build_task_list): Don't declare.
11530 * ada-tasks.c (struct ada_tasks_inferior_data)
11531 <task_list_valid_p>: Now bool.
11532 (read_known_tasks, ada_task_list_changed)
11533 (ada_tasks_invalidate_inferior_data): Update.
11534 (read_known_tasks_array): Return bool.
11535 (read_known_tasks_list): Likewise.
11536 (read_known_tasks): Return void.
11537 (ada_build_task_list): Now static.
11538
70cd633e
AB
115392019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11542 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11543
040b3e95
PW
115442019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11545
11546 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11547 variant for ada_tasks_pspace_data_handle and
11548 ada_tasks_inferior_data_handle.
11549 (ada_tasks_pspace_data_cleanup): New function.
11550 (ada_tasks_inferior_data_cleanup): New function.
11551
9409233b
TT
115522019-02-17 Tom Tromey <tom@tromey.com>
11553
11554 * macrotab.h (macro_source_fullname): Return a std::string.
11555 * macrotab.c (macro_include, check_for_redefinition)
11556 (macro_undef, macro_lookup_definition, foreach_macro)
11557 (foreach_macro_in_scope): Update.
11558 (macro_source_fullname): Return a std::string.
11559 * macrocmd.c (show_pp_source_pos): Update.
11560
6506371f
TT
115612019-02-17 Tom Tromey <tom@tromey.com>
11562
11563 * macrocmd.c (show_pp_source_pos): Style the file names.
11564
0c820d67
TT
115652019-02-17 Tom Tromey <tom@tromey.com>
11566
11567 PR tui/24197:
11568 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11569
a0087920
TT
115702019-02-17 Tom Tromey <tom@tromey.com>
11571
11572 * ada-lang.c (user_select_syms): Use filtered printing.
11573 * utils.c (wrap_style): New global.
11574 (desired_style): Remove.
11575 (emit_style_escape): Add stream parameter.
11576 (set_output_style, reset_terminal_style, prompt_for_continue):
11577 Update.
11578 (flush_wrap_buffer): Only flush gdb_stdout.
11579 (wrap_here): Set wrap_style.
11580 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11581 treat escape sequences as a character. Change when wrap buffer is
11582 flushed.
11583 (fputs_styled): Do not set the output style when the default is
11584 requested.
11585 * ui-style.h (struct ui_file_style) <is_default>: New method.
11586 * source.c (print_source_lines_base): Emit escape sequences in one
11587 piece.
11588
75ba10dc
JB
115892019-02-17 Joel Brobecker <brobecker@adacore.com>
11590
11591 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11592 integers and enumeration types.
11593
a2cd4f14
JB
115942019-02-17 Joel Brobecker <brobecker@adacore.com>
11595
11596 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11597 instead of lookup_symbol_in_language
11598 (do_exact_match): New function.
11599 (ada_get_symbol_name_matcher): Return do_exact_match when
11600 doing a verbatim match.
11601
485b851b
TT
116022019-02-15 Tom Tromey <tromey@adacore.com>
11603
11604 * ravenscar-thread.c (ravenscar_thread_target::resume)
11605 (ravenscar_thread_target::wait): Special case wildcard requests.
11606
0b790b1e
TT
116072019-02-15 Tom Tromey <tromey@adacore.com>
11608
11609 * ravenscar-thread.c (base_ptid): Remove.
11610 (struct ravenscar_thread_target) <close>: New method.
11611 <m_base_ptid>: New member.
11612 <update_inferior_ptid, active_task, task_is_currently_active,
11613 runtime_initialized>: Declare methods.
11614 <ravenscar_thread_target>: Add constructor.
11615 (ravenscar_thread_target::task_is_currently_active)
11616 (ravenscar_thread_target::update_inferior_ptid)
11617 (ravenscar_runtime_initialized): Rename. Now methods.
11618 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11619 (ravenscar_thread_target::update_thread_list): Update.
11620 (ravenscar_thread_target::active_task): Now method.
11621 (ravenscar_thread_target::store_registers)
11622 (ravenscar_thread_target::prepare_to_store)
11623 (ravenscar_thread_target::prepare_to_store)
11624 (ravenscar_thread_target::mourn_inferior): Update.
11625 (ravenscar_inferior_created): Use "new" to create target.
11626 (ravenscar_thread_target::get_ada_task_ptid): Update.
11627 (_initialize_ravenscar): Don't initialize base_ptid.
11628 (ravenscar_ops): Remove global.
11629
dea57a62
TT
116302019-02-15 Tom Tromey <tromey@adacore.com>
11631
11632 * target.h (push_target): Declare new overload.
11633 * target.c (push_target): New overload, taking an rvalue reference.
11634 * remote.c (remote_target::open_1): Use push_target overload.
11635 * corelow.c (core_target_open): Use push_target overload.
11636
989f3c58
TT
116372019-02-15 Tom Tromey <tromey@adacore.com>
11638
11639 * ravenscar-thread.c (is_ravenscar_task)
11640 (ravenscar_task_is_currently_active): Return bool.
11641 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11642 (_initialize_ravenscar): Remove "(void)".
11643 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11644 Return bool.
11645
6cbcc006
TT
116462019-02-15 Tom Tromey <tromey@adacore.com>
11647
11648 * ravenscar-thread.c (ravenscar_runtime_initializer)
11649 (has_ravenscar_runtime, get_running_thread_id)
11650 (ravenscar_thread_target::resume): Fix indentation.
11651
7657f14d
TT
116522019-02-15 Tom Tromey <tromey@adacore.com>
11653
11654 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11655 from ravenscar_arch_ops.
11656 (sparc_ravenscar_ops::fetch_registers)
11657 (sparc_ravenscar_ops::store_registers): Now methods.
11658 (sparc_ravenscar_prepare_to_store): Remove.
11659 (sparc_ravenscar_ops): Redefine.
11660 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11661 methods and destructor. Remove members.
11662 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11663 (ravenscar_thread_target::store_registers)
11664 (ravenscar_thread_target::prepare_to_store): Update.
11665 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11666 Remove.
11667 (struct ppc_ravenscar_powerpc_ops): Derive from
11668 ravenscar_arch_ops.
11669 (ppc_ravenscar_powerpc_ops::fetch_registers)
11670 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11671 (ppc_ravenscar_powerpc_ops): Redefine.
11672 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11673 (ppc_ravenscar_e500_ops::fetch_registers)
11674 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11675 (ppc_ravenscar_e500_ops): Redefine.
11676 * aarch64-ravenscar-thread.c
11677 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11678 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11679 (aarch64_ravenscar_fetch_registers)
11680 (aarch64_ravenscar_store_registers): Now methods.
11681 (aarch64_ravenscar_ops): Redefine.
11682
5b6ea500
TT
116832019-02-15 Tom Tromey <tromey@adacore.com>
11684
11685 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11686 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11687 (ravenscar_thread_target::stopped_by_watchpoint)
11688 (ravenscar_thread_target::stopped_data_address)
11689 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11690
e397fd39
TT
116912019-02-15 Tom Tromey <tromey@adacore.com>
11692
11693 * ravenscar-thread.c: Fix some typos.
11694
cc12f4a8
TT
116952019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11696 Tom Tromey <tromey@adacore.com>
11697
11698 * ada-lang.c (ada_exception_sal): Change addr_string to a
11699 std::string.
11700 (create_ada_exception_catchpoint): Update.
11701
5f486660
TT
117022019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11703 Tom Tromey <tromey@adacore.com>
11704
11705 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11706 (bp_location_ops): Remove.
11707 (base_breakpoint_allocate_location): Update.
11708 (free_bp_location): Update.
11709 * ada-lang.c (class ada_catchpoint_location)
11710 <ada_catchpoint_location>: Remove ops parameter.
11711 (ada_catchpoint_location_dtor): Remove.
11712 (ada_catchpoint_location_ops): Remove.
11713 (allocate_location_exception): Update.
11714 * breakpoint.h (struct bp_location_ops): Remove.
11715 (class bp_location) <bp_location>: Remove bp_location_ops
11716 parameter.
11717 <~bp_location>: Add destructor.
11718 <ops>: Remove.
11719
b671c7fb
TS
117202019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11721 Pedro Alves <palves@redhat.com>
11722
11723 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11724 'PATH_MAX'.
11725
8071c5ce
DM
117262019-02-14 David Michael <fedora.dm0@gmail.com>
11727 Samuel Thibault <samuel.thibault@gnu.org>
11728 Thomas Schwinge <thomas@codesourcery.com>
11729
11730 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11731 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11732
b1041ae0
TS
117332019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11734
924514e1
TS
11735 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11736 (check_empty): Use "const char *".
11737
c29ee8d4
TS
11738 * gnu-nat.c (gnu_nat_target::detach): Instead of
11739 'detach_inferior (pid)' call
11740 'detach_inferior (find_inferior_pid (pid))'.
11741
6c6ef69f
TS
11742 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11743 'nat/fork-inferior.o'.
11744 * gnu-nat.c: #include "nat/fork-inferior.h".
11745
2d0a338c
TS
11746 * gnu-nat.c (gnu_nat_target::detach): Instead of
11747 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11748 * gnu-nat.h: #include "inf-child.h".
11749 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11750 'i386_gnu_nat_target::fetch_registers'.
11751 (gnu_store_registers): Rename/move to
11752 'i386_gnu_nat_target::store_registers'.
11753
cabb5f06
TS
11754 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11755 * gnu-nat.h (mach_thread_info): New function.
11756 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11757
b1041ae0
TS
11758 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11759
2988d01e
KF
117602019-02-14 Frederic Konrad <konrad@adacore.com>
11761
11762 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11763
c559d709
JB
117642019-02-14 Joel Brobecker <brobecker@adacore.com>
11765
11766 * windows-nat.c (windows_add_thread): Add new parameter
11767 "main_thread_p" with default value set to false. Update
11768 function documentation as well as all callers.
11769 (windows_delete_thread): Likewise.
11770 (fake_create_process): Update call to windows_add_thread.
11771 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11772 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11773 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11774 call to windows_delete_thread.
11775
007024cc
SM
117762019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11777
11778 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11779
f62318e9
JB
117802019-02-12 John Baldwin <jhb@FreeBSD.org>
11781
11782 * symfile.c (find_separate_debug_file): Use canonical path of
11783 sysroot with child_path instead of gdb_sysroot if it is valid.
11784
cd4b7848
JB
117852019-02-12 John Baldwin <jhb@FreeBSD.org>
11786
11787 * symfile.c (find_separate_debug_file): Use child_path to
11788 determine if an object file is under a sysroot.
11789
efac4bfe
JB
117902019-02-12 John Baldwin <jhb@FreeBSD.org>
11791
11792 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11793 unittests/child-path-selftests.c.
11794 * common/pathstuff.c (child_path): New function.
11795 * common/pathstuff.h (child_path): New prototype.
11796 * unittests/child-path-selftests.c: New file.
11797
402d2bfe
JB
117982019-02-12 John Baldwin <jhb@FreeBSD.org>
11799
11800 * symfile.c (find_separate_debug_file): Look for separate debug
11801 files in debug directories under the sysroot.
11802
1ed9f74e
PW
118032019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11804
11805 * symtab.h (struct minimal_symbol data_p): New const method.
11806 (struct minimal_symbol text_p): Likewise.
11807 * symtab.c (output_source_filename): Use file name style
11808 to print file name.
11809 (print_symbol_info): Likewise.
11810 (print_msymbol_info): Use address style to print addresses.
11811 Use function name style to print executable text symbols.
11812 (expand_symtab_containing_pc): Use data_p.
11813 (find_pc_sect_compunit_symtab): Likewise.
11814
2636d81d
PW
118152019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11816
11817 * breakpoint.c (describe_other_breakpoints): Use address style
11818 to print addresses.
11819 (say_where): Likewise.
11820
ac8c53cc
PW
118212019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11822
11823 * ada-typeprint.c (print_func_type): Print function name
11824 style to print function name.
11825 * c-typeprint.c (c_print_type_1): Likewise.
11826
ea638c43
AH
118272019-02-11 Alan Hayward <alan.hayward@arm.com>
11828
11829 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11830 for execve.
11831
ab759ca8
PW
118322019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11833
11834 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11835 type_stack.
11836
aff29d1c
JB
118372019-02-10 Joel Brobecker <brobecker@adacore.com>
11838
11839 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11840 TYPE_CODE_REF types.
11841
617126bc
JW
118422019-02-08 Jim Wilson <jimw@sifive.com>
11843
11844 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11845 (riscv_linux_fregset): New.
11846 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11847
46e3ed7f
TT
118482019-02-07 Tom Tromey <tom@tromey.com>
11849
11850 * thread.c (thread_cancel_execution_command): Update.
11851 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11852 methods.
11853 (struct thread_fsm_ops): Remove.
11854 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11855 (thread_fsm_should_stop, thread_fsm_return_value)
11856 (thread_fsm_set_finished, thread_fsm_finished_p)
11857 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11858 Don't declare.
11859 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11860 * infrun.c (clear_proceed_status_thread)
11861 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11862 (print_stop_event): Update.
11863 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11864 Add constructor.
11865 (step_command_fsm_ops): Remove.
11866 (new_step_command_fsm): Remove.
11867 (step_1): Update.
11868 (step_command_fsm::should_stop): Rename from
11869 step_command_fsm_should_stop.
11870 (step_command_fsm::clean_up): Rename from
11871 step_command_fsm_clean_up.
11872 (step_command_fsm::do_async_reply_reason): Rename from
11873 step_command_fsm_async_reply_reason.
11874 (struct until_next_fsm): Inherit from thread_fsm. Add
11875 constructor.
11876 (until_next_fsm_ops): Remove.
11877 (new_until_next_fsm): Remove.
11878 (until_next_fsm::should_stop): Rename from
11879 until_next_fsm_should_stop.
11880 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11881 (until_next_fsm::do_async_reply_reason): Rename from
11882 until_next_fsm_async_reply_reason.
11883 (struct finish_command_fsm): Inherit from thread_fsm. Add
11884 constructor. Change type of breakpoint.
11885 (finish_command_fsm_ops): Remove.
11886 (new_finish_command_fsm): Remove.
11887 (finish_command_fsm::should_stop): Rename from
11888 finish_command_fsm_should_stop.
11889 (finish_command_fsm::clean_up): Rename from
11890 finish_command_fsm_clean_up.
11891 (finish_command_fsm::return_value): Rename from
11892 finish_command_fsm_return_value.
11893 (finish_command_fsm::do_async_reply_reason): Rename from
11894 finish_command_fsm_async_reply_reason.
11895 (finish_command): Update.
11896 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11897 Add constructor.
11898 (call_thread_fsm_ops): Remove.
11899 (call_thread_fsm::call_thread_fsm): Rename from
11900 new_call_thread_fsm.
11901 (call_thread_fsm::should_stop): Rename from
11902 call_thread_fsm_should_stop.
11903 (call_thread_fsm::should_notify_stop): Rename from
11904 call_thread_fsm_should_notify_stop.
11905 (run_inferior_call, call_function_by_hand_dummy): Update.
11906 * cli/cli-interp.c (should_print_stop_to_console): Update.
11907 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11908 Add constructor. Change type of location_breakpoint,
11909 caller_breakpoint.
11910 (until_break_fsm_ops): Remove.
11911 (new_until_break_fsm): Remove.
11912 (until_break_fsm::should_stop): Rename from
11913 until_break_fsm_should_stop.
11914 (until_break_fsm::clean_up): Rename from
11915 until_break_fsm_clean_up.
11916 (until_break_fsm::do_async_reply_reason): Rename from
11917 until_break_fsm_async_reply_reason.
11918 (until_break_command): Update.
11919 * thread-fsm.c: Remove.
11920 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11921
1a5c2598
TT
119222019-02-07 Tom Tromey <tom@tromey.com>
11923
11924 * yy-remap.h: Add include guard.
11925 * xtensa-tdep.h: Add include guard.
11926 * xcoffread.h: Rename include guard.
11927 * varobj-iter.h: Add include guard.
11928 * tui/tui.h: Rename include guard.
11929 * tui/tui-winsource.h: Rename include guard.
11930 * tui/tui-wingeneral.h: Rename include guard.
11931 * tui/tui-windata.h: Rename include guard.
11932 * tui/tui-win.h: Rename include guard.
11933 * tui/tui-stack.h: Rename include guard.
11934 * tui/tui-source.h: Rename include guard.
11935 * tui/tui-regs.h: Rename include guard.
11936 * tui/tui-out.h: Rename include guard.
11937 * tui/tui-layout.h: Rename include guard.
11938 * tui/tui-io.h: Rename include guard.
11939 * tui/tui-hooks.h: Rename include guard.
11940 * tui/tui-file.h: Rename include guard.
11941 * tui/tui-disasm.h: Rename include guard.
11942 * tui/tui-data.h: Rename include guard.
11943 * tui/tui-command.h: Rename include guard.
11944 * tic6x-tdep.h: Add include guard.
11945 * target/waitstatus.h: Rename include guard.
11946 * target/wait.h: Rename include guard.
11947 * target/target.h: Rename include guard.
11948 * target/resume.h: Rename include guard.
11949 * target-float.h: Rename include guard.
11950 * stabsread.h: Add include guard.
11951 * rs6000-tdep.h: Add include guard.
11952 * riscv-fbsd-tdep.h: Add include guard.
11953 * regformats/regdef.h: Rename include guard.
11954 * record.h: Rename include guard.
11955 * python/python.h: Rename include guard.
11956 * python/python-internal.h: Rename include guard.
11957 * python/py-stopevent.h: Rename include guard.
11958 * python/py-ref.h: Rename include guard.
11959 * python/py-record.h: Rename include guard.
11960 * python/py-record-full.h: Rename include guard.
11961 * python/py-record-btrace.h: Rename include guard.
11962 * python/py-instruction.h: Rename include guard.
11963 * python/py-events.h: Rename include guard.
11964 * python/py-event.h: Rename include guard.
11965 * procfs.h: Add include guard.
11966 * proc-utils.h: Add include guard.
11967 * p-lang.h: Add include guard.
11968 * or1k-tdep.h: Rename include guard.
11969 * observable.h: Rename include guard.
11970 * nto-tdep.h: Rename include guard.
11971 * nat/x86-linux.h: Rename include guard.
11972 * nat/x86-linux-dregs.h: Rename include guard.
11973 * nat/x86-gcc-cpuid.h: Add include guard.
11974 * nat/x86-dregs.h: Rename include guard.
11975 * nat/x86-cpuid.h: Rename include guard.
11976 * nat/ppc-linux.h: Rename include guard.
11977 * nat/mips-linux-watch.h: Rename include guard.
11978 * nat/linux-waitpid.h: Rename include guard.
11979 * nat/linux-ptrace.h: Rename include guard.
11980 * nat/linux-procfs.h: Rename include guard.
11981 * nat/linux-osdata.h: Rename include guard.
11982 * nat/linux-nat.h: Rename include guard.
11983 * nat/linux-namespaces.h: Rename include guard.
11984 * nat/linux-btrace.h: Rename include guard.
11985 * nat/glibc_thread_db.h: Rename include guard.
11986 * nat/gdb_thread_db.h: Rename include guard.
11987 * nat/gdb_ptrace.h: Rename include guard.
11988 * nat/fork-inferior.h: Rename include guard.
11989 * nat/amd64-linux-siginfo.h: Rename include guard.
11990 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11991 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11992 * nat/aarch64-linux.h: Rename include guard.
11993 * nat/aarch64-linux-hw-point.h: Rename include guard.
11994 * mn10300-tdep.h: Add include guard.
11995 * mips-linux-tdep.h: Add include guard.
11996 * mi/mi-parse.h: Rename include guard.
11997 * mi/mi-out.h: Rename include guard.
11998 * mi/mi-main.h: Rename include guard.
11999 * mi/mi-interp.h: Rename include guard.
12000 * mi/mi-getopt.h: Rename include guard.
12001 * mi/mi-console.h: Rename include guard.
12002 * mi/mi-common.h: Rename include guard.
12003 * mi/mi-cmds.h: Rename include guard.
12004 * mi/mi-cmd-break.h: Rename include guard.
12005 * m2-lang.h: Add include guard.
12006 * location.h: Rename include guard.
12007 * linux-record.h: Rename include guard.
12008 * linux-nat.h: Add include guard.
12009 * linux-fork.h: Add include guard.
12010 * i386-darwin-tdep.h: Rename include guard.
12011 * hppa-linux-offsets.h: Add include guard.
12012 * guile/guile.h: Rename include guard.
12013 * guile/guile-internal.h: Rename include guard.
12014 * gnu-nat.h: Rename include guard.
12015 * gdb-stabs.h: Rename include guard.
12016 * frv-tdep.h: Add include guard.
12017 * f-lang.h: Add include guard.
12018 * event-loop.h: Add include guard.
12019 * darwin-nat.h: Rename include guard.
12020 * cp-abi.h: Rename include guard.
12021 * config/sparc/nm-sol2.h: Rename include guard.
12022 * config/nm-nto.h: Rename include guard.
12023 * config/nm-linux.h: Add include guard.
12024 * config/i386/nm-i386gnu.h: Rename include guard.
12025 * config/djgpp/nl_types.h: Rename include guard.
12026 * config/djgpp/langinfo.h: Rename include guard.
12027 * compile/gcc-cp-plugin.h: Add include guard.
12028 * compile/gcc-c-plugin.h: Add include guard.
12029 * compile/compile.h: Rename include guard.
12030 * compile/compile-object-run.h: Rename include guard.
12031 * compile/compile-object-load.h: Rename include guard.
12032 * compile/compile-internal.h: Rename include guard.
12033 * compile/compile-cplus.h: Rename include guard.
12034 * compile/compile-c.h: Rename include guard.
12035 * common/xml-utils.h: Rename include guard.
12036 * common/x86-xstate.h: Rename include guard.
12037 * common/version.h: Rename include guard.
12038 * common/vec.h: Rename include guard.
12039 * common/tdesc.h: Rename include guard.
12040 * common/selftest.h: Rename include guard.
12041 * common/scoped_restore.h: Rename include guard.
12042 * common/scoped_mmap.h: Rename include guard.
12043 * common/scoped_fd.h: Rename include guard.
12044 * common/safe-iterator.h: Rename include guard.
12045 * common/run-time-clock.h: Rename include guard.
12046 * common/refcounted-object.h: Rename include guard.
12047 * common/queue.h: Rename include guard.
12048 * common/ptid.h: Rename include guard.
12049 * common/print-utils.h: Rename include guard.
12050 * common/preprocessor.h: Rename include guard.
12051 * common/pathstuff.h: Rename include guard.
12052 * common/observable.h: Rename include guard.
12053 * common/netstuff.h: Rename include guard.
12054 * common/job-control.h: Rename include guard.
12055 * common/host-defs.h: Rename include guard.
12056 * common/gdb_wait.h: Rename include guard.
12057 * common/gdb_vecs.h: Rename include guard.
12058 * common/gdb_unlinker.h: Rename include guard.
12059 * common/gdb_unique_ptr.h: Rename include guard.
12060 * common/gdb_tilde_expand.h: Rename include guard.
12061 * common/gdb_sys_time.h: Rename include guard.
12062 * common/gdb_string_view.h: Rename include guard.
12063 * common/gdb_splay_tree.h: Rename include guard.
12064 * common/gdb_setjmp.h: Rename include guard.
12065 * common/gdb_ref_ptr.h: Rename include guard.
12066 * common/gdb_optional.h: Rename include guard.
12067 * common/gdb_locale.h: Rename include guard.
12068 * common/gdb_assert.h: Rename include guard.
12069 * common/filtered-iterator.h: Rename include guard.
12070 * common/filestuff.h: Rename include guard.
12071 * common/fileio.h: Rename include guard.
12072 * common/environ.h: Rename include guard.
12073 * common/common-utils.h: Rename include guard.
12074 * common/common-types.h: Rename include guard.
12075 * common/common-regcache.h: Rename include guard.
12076 * common/common-inferior.h: Rename include guard.
12077 * common/common-gdbthread.h: Rename include guard.
12078 * common/common-exceptions.h: Rename include guard.
12079 * common/common-defs.h: Rename include guard.
12080 * common/common-debug.h: Rename include guard.
12081 * common/cleanups.h: Rename include guard.
12082 * common/buffer.h: Rename include guard.
12083 * common/btrace-common.h: Rename include guard.
12084 * common/break-common.h: Rename include guard.
12085 * cli/cli-utils.h: Rename include guard.
12086 * cli/cli-style.h: Rename include guard.
12087 * cli/cli-setshow.h: Rename include guard.
12088 * cli/cli-script.h: Rename include guard.
12089 * cli/cli-interp.h: Rename include guard.
12090 * cli/cli-decode.h: Rename include guard.
12091 * cli/cli-cmds.h: Rename include guard.
12092 * charset-list.h: Add include guard.
12093 * buildsym-legacy.h: Rename include guard.
12094 * bfin-tdep.h: Add include guard.
12095 * ax.h: Rename include guard.
12096 * arm-linux-tdep.h: Add include guard.
12097 * arm-fbsd-tdep.h: Add include guard.
12098 * arch/xtensa.h: Rename include guard.
12099 * arch/tic6x.h: Add include guard.
12100 * arch/i386.h: Add include guard.
12101 * arch/arm.h: Rename include guard.
12102 * arch/arm-linux.h: Rename include guard.
12103 * arch/arm-get-next-pcs.h: Rename include guard.
12104 * arch/amd64.h: Add include guard.
12105 * arch/aarch64-insn.h: Rename include guard.
12106 * arch-utils.h: Rename include guard.
12107 * annotate.h: Add include guard.
12108 * amd64-darwin-tdep.h: Rename include guard.
12109 * aarch64-linux-tdep.h: Add include guard.
12110 * aarch64-fbsd-tdep.h: Add include guard.
12111 * aarch32-linux-nat.h: Add include guard.
12112
ab9268d2
PW
121132019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12114
12115 * macrotab.c (macro_define_internal): New function that
12116 factorizes macro_define_object_internal and macro_define_function
12117 code.
12118 (macro_define_object_internal): Use macro_define_internal.
12119 (macro_define_function): Likewise.
12120
bb0da2b4
PW
121212019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12122
12123 * macrocmd.c (extract_identifier): Return
12124 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12125 callers.
12126
424eb552
JB
121272019-02-06 John Baldwin <jhb@FreeBSD.org>
12128
12129 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12130
1688cb29
TT
121312019-02-05 Tom Tromey <tom@tromey.com>
12132
12133 * target.c (target_stack::unpush): Move assertion earlier.
12134
b5eba2d8
TT
121352019-01-30 Tom Tromey <tom@tromey.com>
12136
12137 PR python/23615:
12138 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12139 (gdbpy_parse_and_eval): Likewise.
12140 * python/python-internal.h (gdbpy_allow_threads): New class.
12141
7054e2ff
JB
121422019-01-28 John Baldwin <jhb@FreeBSD.org>
12143
12144 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12145 (aarch64_fbsd_fpregmap): Move earlier.
12146 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12147 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12148 instead of individual calls to trad_frame_set_reg_addr.
12149 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12150 earlier.
12151 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12152 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12153 instead of individual calls to trad_frame_set_reg_addr.
12154
36c25ffa
AH
121552019-01-28 Alan Hayward <alan.hayward@arm.com>
12156
12157 * CONTRIBUTE: Replace contribution list with wiki link.
12158
a0707f3c
TT
121592019-01-25 Tom Tromey <tom@tromey.com>
12160
12161 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12162
0747795c
TT
121632019-01-25 Tom Tromey <tom@tromey.com>
12164
12165 * xtensa-linux-nat.c: Fix common/ includes.
12166 * xml-support.h: Fix common/ includes.
12167 * xml-support.c: Fix common/ includes.
12168 * x86-linux-nat.c: Fix common/ includes.
12169 * windows-nat.c: Fix common/ includes.
12170 * varobj.h: Fix common/ includes.
12171 * varobj.c: Fix common/ includes.
12172 * value.c: Fix common/ includes.
12173 * valops.c: Fix common/ includes.
12174 * utils.c: Fix common/ includes.
12175 * unittests/xml-utils-selftests.c: Fix common/ includes.
12176 * unittests/utils-selftests.c: Fix common/ includes.
12177 * unittests/unpack-selftests.c: Fix common/ includes.
12178 * unittests/tracepoint-selftests.c: Fix common/ includes.
12179 * unittests/style-selftests.c: Fix common/ includes.
12180 * unittests/string_view-selftests.c: Fix common/ includes.
12181 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12182 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12183 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12184 * unittests/rsp-low-selftests.c: Fix common/ includes.
12185 * unittests/parse-connection-spec-selftests.c: Fix common/
12186 includes.
12187 * unittests/optional-selftests.c: Fix common/ includes.
12188 * unittests/offset-type-selftests.c: Fix common/ includes.
12189 * unittests/observable-selftests.c: Fix common/ includes.
12190 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12191 * unittests/memrange-selftests.c: Fix common/ includes.
12192 * unittests/memory-map-selftests.c: Fix common/ includes.
12193 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12194 * unittests/function-view-selftests.c: Fix common/ includes.
12195 * unittests/environ-selftests.c: Fix common/ includes.
12196 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12197 * unittests/common-utils-selftests.c: Fix common/ includes.
12198 * unittests/cli-utils-selftests.c: Fix common/ includes.
12199 * unittests/array-view-selftests.c: Fix common/ includes.
12200 * ui-file.c: Fix common/ includes.
12201 * tui/tui-io.c: Fix common/ includes.
12202 * tracepoint.h: Fix common/ includes.
12203 * tracepoint.c: Fix common/ includes.
12204 * tracefile-tfile.c: Fix common/ includes.
12205 * top.h: Fix common/ includes.
12206 * top.c: Fix common/ includes.
12207 * thread.c: Fix common/ includes.
12208 * target/waitstatus.h: Fix common/ includes.
12209 * target/waitstatus.c: Fix common/ includes.
12210 * target.h: Fix common/ includes.
12211 * target.c: Fix common/ includes.
12212 * target-memory.c: Fix common/ includes.
12213 * target-descriptions.c: Fix common/ includes.
12214 * symtab.h: Fix common/ includes.
12215 * symfile.c: Fix common/ includes.
12216 * stap-probe.c: Fix common/ includes.
12217 * spu-linux-nat.c: Fix common/ includes.
12218 * sparc-nat.c: Fix common/ includes.
12219 * source.c: Fix common/ includes.
12220 * solib.c: Fix common/ includes.
12221 * solib-target.c: Fix common/ includes.
12222 * ser-unix.c: Fix common/ includes.
12223 * ser-tcp.c: Fix common/ includes.
12224 * ser-pipe.c: Fix common/ includes.
12225 * ser-base.c: Fix common/ includes.
12226 * selftest-arch.c: Fix common/ includes.
12227 * s12z-tdep.c: Fix common/ includes.
12228 * rust-exp.y: Fix common/ includes.
12229 * rs6000-aix-tdep.c: Fix common/ includes.
12230 * riscv-tdep.c: Fix common/ includes.
12231 * remote.c: Fix common/ includes.
12232 * remote-notif.h: Fix common/ includes.
12233 * remote-fileio.h: Fix common/ includes.
12234 * remote-fileio.c: Fix common/ includes.
12235 * regcache.h: Fix common/ includes.
12236 * regcache.c: Fix common/ includes.
12237 * record-btrace.c: Fix common/ includes.
12238 * python/python.c: Fix common/ includes.
12239 * python/py-type.c: Fix common/ includes.
12240 * python/py-inferior.c: Fix common/ includes.
12241 * progspace.h: Fix common/ includes.
12242 * producer.c: Fix common/ includes.
12243 * procfs.c: Fix common/ includes.
12244 * proc-api.c: Fix common/ includes.
12245 * printcmd.c: Fix common/ includes.
12246 * ppc-linux-nat.c: Fix common/ includes.
12247 * parser-defs.h: Fix common/ includes.
12248 * osdata.c: Fix common/ includes.
12249 * obsd-nat.c: Fix common/ includes.
12250 * nat/x86-linux.c: Fix common/ includes.
12251 * nat/x86-linux-dregs.c: Fix common/ includes.
12252 * nat/x86-dregs.h: Fix common/ includes.
12253 * nat/x86-dregs.c: Fix common/ includes.
12254 * nat/ppc-linux.c: Fix common/ includes.
12255 * nat/mips-linux-watch.h: Fix common/ includes.
12256 * nat/mips-linux-watch.c: Fix common/ includes.
12257 * nat/linux-waitpid.c: Fix common/ includes.
12258 * nat/linux-ptrace.h: Fix common/ includes.
12259 * nat/linux-ptrace.c: Fix common/ includes.
12260 * nat/linux-procfs.c: Fix common/ includes.
12261 * nat/linux-personality.c: Fix common/ includes.
12262 * nat/linux-osdata.c: Fix common/ includes.
12263 * nat/linux-namespaces.c: Fix common/ includes.
12264 * nat/linux-btrace.h: Fix common/ includes.
12265 * nat/linux-btrace.c: Fix common/ includes.
12266 * nat/fork-inferior.c: Fix common/ includes.
12267 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12268 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12269 * nat/aarch64-linux.c: Fix common/ includes.
12270 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12271 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12272 * namespace.h: Fix common/ includes.
12273 * mips-linux-tdep.c: Fix common/ includes.
12274 * minsyms.c: Fix common/ includes.
12275 * mi/mi-parse.h: Fix common/ includes.
12276 * mi/mi-main.c: Fix common/ includes.
12277 * mi/mi-cmd-env.c: Fix common/ includes.
12278 * memrange.h: Fix common/ includes.
12279 * memattr.c: Fix common/ includes.
12280 * maint.h: Fix common/ includes.
12281 * maint.c: Fix common/ includes.
12282 * main.c: Fix common/ includes.
12283 * machoread.c: Fix common/ includes.
12284 * location.c: Fix common/ includes.
12285 * linux-thread-db.c: Fix common/ includes.
12286 * linux-nat.c: Fix common/ includes.
12287 * linux-fork.c: Fix common/ includes.
12288 * inline-frame.c: Fix common/ includes.
12289 * infrun.c: Fix common/ includes.
12290 * inflow.c: Fix common/ includes.
12291 * inferior.h: Fix common/ includes.
12292 * inferior.c: Fix common/ includes.
12293 * infcmd.c: Fix common/ includes.
12294 * inf-ptrace.c: Fix common/ includes.
12295 * inf-child.c: Fix common/ includes.
12296 * ia64-linux-nat.c: Fix common/ includes.
12297 * i387-tdep.c: Fix common/ includes.
12298 * i386-tdep.c: Fix common/ includes.
12299 * i386-linux-tdep.c: Fix common/ includes.
12300 * i386-linux-nat.c: Fix common/ includes.
12301 * i386-go32-tdep.c: Fix common/ includes.
12302 * i386-fbsd-tdep.c: Fix common/ includes.
12303 * i386-fbsd-nat.c: Fix common/ includes.
12304 * guile/scm-type.c: Fix common/ includes.
12305 * guile/guile.c: Fix common/ includes.
12306 * go32-nat.c: Fix common/ includes.
12307 * gnu-nat.c: Fix common/ includes.
12308 * gdbthread.h: Fix common/ includes.
12309 * gdbarch-selftests.c: Fix common/ includes.
12310 * gdb_usleep.c: Fix common/ includes.
12311 * gdb_select.h: Fix common/ includes.
12312 * gdb_bfd.c: Fix common/ includes.
12313 * gcore.c: Fix common/ includes.
12314 * fork-child.c: Fix common/ includes.
12315 * findvar.c: Fix common/ includes.
12316 * fbsd-nat.c: Fix common/ includes.
12317 * event-top.c: Fix common/ includes.
12318 * event-loop.c: Fix common/ includes.
12319 * dwarf2read.c: Fix common/ includes.
12320 * dwarf2loc.c: Fix common/ includes.
12321 * dwarf2-frame.c: Fix common/ includes.
12322 * dwarf-index-cache.c: Fix common/ includes.
12323 * dtrace-probe.c: Fix common/ includes.
12324 * disasm-selftests.c: Fix common/ includes.
12325 * defs.h: Fix common/ includes.
12326 * csky-tdep.c: Fix common/ includes.
12327 * cp-valprint.c: Fix common/ includes.
12328 * cp-support.h: Fix common/ includes.
12329 * cp-support.c: Fix common/ includes.
12330 * corelow.c: Fix common/ includes.
12331 * completer.h: Fix common/ includes.
12332 * completer.c: Fix common/ includes.
12333 * compile/compile.c: Fix common/ includes.
12334 * compile/compile-loc2c.c: Fix common/ includes.
12335 * compile/compile-cplus-types.c: Fix common/ includes.
12336 * compile/compile-cplus-symbols.c: Fix common/ includes.
12337 * command.h: Fix common/ includes.
12338 * cli/cli-dump.c: Fix common/ includes.
12339 * cli/cli-cmds.c: Fix common/ includes.
12340 * charset.c: Fix common/ includes.
12341 * build-id.c: Fix common/ includes.
12342 * btrace.h: Fix common/ includes.
12343 * btrace.c: Fix common/ includes.
12344 * breakpoint.h: Fix common/ includes.
12345 * breakpoint.c: Fix common/ includes.
12346 * ax.h:
12347 (enum agent_op): Fix common/ includes.
12348 * ax-general.c (struct aop_map): Fix common/ includes.
12349 * ax-gdb.c: Fix common/ includes.
12350 * auxv.c: Fix common/ includes.
12351 * auto-load.c: Fix common/ includes.
12352 * arm-tdep.c: Fix common/ includes.
12353 * arch/riscv.c: Fix common/ includes.
12354 * arch/ppc-linux-common.c: Fix common/ includes.
12355 * arch/i386.c: Fix common/ includes.
12356 * arch/arm.c: Fix common/ includes.
12357 * arch/arm-linux.c: Fix common/ includes.
12358 * arch/arm-get-next-pcs.c: Fix common/ includes.
12359 * arch/amd64.c: Fix common/ includes.
12360 * arch/aarch64.c: Fix common/ includes.
12361 * arch/aarch64-insn.c: Fix common/ includes.
12362 * arch-utils.c: Fix common/ includes.
12363 * amd64-windows-tdep.c: Fix common/ includes.
12364 * amd64-tdep.c: Fix common/ includes.
12365 * amd64-sol2-tdep.c: Fix common/ includes.
12366 * amd64-obsd-tdep.c: Fix common/ includes.
12367 * amd64-nbsd-tdep.c: Fix common/ includes.
12368 * amd64-linux-tdep.c: Fix common/ includes.
12369 * amd64-linux-nat.c: Fix common/ includes.
12370 * amd64-fbsd-tdep.c: Fix common/ includes.
12371 * amd64-fbsd-nat.c: Fix common/ includes.
12372 * amd64-dicos-tdep.c: Fix common/ includes.
12373 * amd64-darwin-tdep.c: Fix common/ includes.
12374 * agent.c: Fix common/ includes.
12375 * ada-lang.h: Fix common/ includes.
12376 * ada-lang.c: Fix common/ includes.
12377 * aarch64-tdep.c: Fix common/ includes.
12378
2f5c153e
TT
123792019-01-25 Tom Tromey <tom@tromey.com>
12380
12381 * common/create-version.sh: Use common/version.h.
12382
adc6a863
PA
123832019-01-24 Pedro Alves <palves@redhat.com>
12384
12385 * infrun.c (signal_stop, signal_print, signal_program)
12386 (signal_catch, signal_pass): Now arrays instead of pointers.
12387 (update_signals_program_target, do_target_resume)
12388 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12389 * linux-nat.c (linux_nat_target::pass_signals)
12390 (linux_nat_target::create_inferior, linux_nat_target::attach):
12391 Adjust.
12392 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12393 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12394 * procfs.c (procfs_target::pass_signals): Adjust.
12395 * record-full.c (record_full_target::resume): Adjust.
12396 * remote.c (remote_target::pass_signals)
12397 (remote_target::program_signals): Adjust.
12398 * target-debug.h (target_debug_print_signals): Now takes a
12399 gdb::array_view as parameter. Adjust.
12400 * target.h (target_ops) <pass_signals, program_signals>: Replace
12401 pointer and length parameters with gdb::array_view.
12402 (target_pass_signals, target_program_signals): Likewise.
12403 * target-delegates.c: Regenerate.
12404
3046d67a
PA
124052019-01-24 Pedro Alves <palves@redhat.com>
12406
12407 * common/forward-scope-exit.h
12408 (forward_scope_exit::forward_scope_exit): Pass arguments to
12409 m_bind_function directly, instead of creating a std::bind and
12410 copying that.
12411
353229bf
AH
124122019-01-24 Alan Hayward <alan.hayward@arm.com>
12413
12414 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12415 for static members.
12416 (pass_in_v_vfp_candidate): Likewise.
12417
311dc83a
TT
124182019-01-23 Tom Tromey <tom@tromey.com>
12419 Pedro Alves <palves@redhat.com>
12420
12421 * regcache.c (class regcache_invalidator): Remove.
12422 (regcache::raw_write): Use make_scope_exit.
12423
296bd123
TT
124242019-01-23 Tom Tromey <tom@tromey.com>
12425
12426 * ui-out.h (class ui_out_emit_type): Update comment.
12427
979a0d13
TT
124282019-01-23 Tom Tromey <tom@tromey.com>
12429
12430 * infrun.c (fetch_inferior_event): Update comment.
12431
d238133d
TT
124322019-01-23 Tom Tromey <tom@tromey.com>
12433 Pedro Alves <palves@redhat.com>
12434
12435 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12436 parameter.
12437 (fetch_inferior_event): Use SCOPE_EXIT.
12438
12439
9885e6bb
TT
124402019-01-23 Tom Tromey <tom@tromey.com>
12441 Pedro Alves <palves@redhat.com>
12442
12443 * infrun.c (disable_thread_events): Delete.
12444 (stop_all_threads): Use SCOPE_EXIT.
12445
286526c1
TT
124462019-01-23 Tom Tromey <tom@tromey.com>
12447 Pedro Alves <palves@redhat.com>
12448
12449 * symfile.c: Include forward-scope-exit.h.
12450 (clear_symtab_users_cleanup): Replace forward declaration with
12451 a FORWARD_SCOPE_EXIT.
12452 (syms_from_objfile_1): Use the forward_scope_exit and
12453 gdb::optional instead of cleanup_function.
12454 (reread_symbols): Use the forward_scope_exit instead of
12455 cleanup_function.
12456 (clear_symtab_users_cleanup): Remove function.
12457
1db93f14
TT
124582019-01-23 Tom Tromey <tom@tromey.com>
12459 Pedro Alves <palves@redhat.com>
12460
12461 * linux-nat.c: Include scope-exit.h.
12462 (cleanup_target_stop): Remove.
12463 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12464 SCOPE_EXIT.
12465
2cc83d1e
TT
124662019-01-23 Tom Tromey <tom@tromey.com>
12467 Pedro Alves <palves@redhat.com>
12468
12469 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12470 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12471
694c6bf5
TT
124722019-01-23 Tom Tromey <tom@tromey.com>
12473 Andrew Burgess <andrew.burgess@embecosm.com>
12474 Pedro Alves <palves@redhat.com>
12475
12476 * infrun.c (fetch_inferior_event): Use scope_exit.
12477 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12478 * top.c (execute_command): Use scope_exit.
12479 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12480 * utils.c (do_bpstat_clear_actions_cleanup)
12481 (make_bpstat_clear_actions_cleanup): Remove.
12482
4c41382a
TT
124832019-01-23 Tom Tromey <tom@tromey.com>
12484 Pedro Alves <palves@redhat.com>
12485
12486 * infrun.c: Include "common/scope-exit.h"
12487 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12488 (wait_for_inferior): Use SCOPE_EXIT.
12489 (fetch_inferior_event): Use scope_exit.
12490
89f8fb50
TT
124912019-01-23 Tom Tromey <tom@tromey.com>
12492 Pedro Alves <palves@redhat.com>
12493
12494 * breakpoint.c (create_breakpoint): Remove cleanup.
12495
5419bdae
TT
124962019-01-23 Tom Tromey <tom@tromey.com>
12497 Andrew Burgess <andrew.burgess@embecosm.com>
12498 Pedro Alves <palves@redhat.com>
12499
e587ef42
PA
125002019-01-23 Pedro Alves <palves@redhat.com>
12501
12502 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12503
77f0e74c
PA
125042019-01-23 Pedro Alves <palves@redhat.com>
12505 Andrew Burgess <andrew.burgess@embecosm.com>
12506
12507 * gdbthread.h: Include "common/forward-scope-exit.h".
12508 (scoped_finish_thread_state): Redefine custom class in terms of
12509 forward_scope_exit.
12510
5b9b3e53
PA
125112019-01-23 Pedro Alves <palves@redhat.com>
12512 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * common/forward-scope-exit.h: New file.
12515
54b65c9b
PA
125162019-01-23 Pedro Alves <palves@redhat.com>
12517 Andrew Burgess <andrew.burgess@embecosm.com>
12518 Tom Tromey <tom@tromey.com>
12519
12520 * common/scope-exit.h: New file.
12521
cf08fb29
PA
125222019-01-23 Pedro Alves <palves@redhat.com>
12523
12524 * common/preprocessor.h (ESC): Rename to ...
12525 (ESC_PARENS): ... this.
12526 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12527 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12528
ae73e2e2
TT
125292019-01-23 Tom Tromey <tom@tromey.com>
12530
12531 * language.h (class scoped_switch_to_sym_language_if_auto):
12532 Initialize m_lang in both cases.
12533
6594e122
AH
125342019-01-23 Alan Hayward <alan.hayward@arm.com>
12535
12536 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12537 with XCNEW.
12538
a7c9855d
TT
125392019-01-22 Tom Tromey <tom@tromey.com>
12540
12541 * corelow.c: Do not include sys/file.h.
12542
93cc1d53
TT
125432019-01-22 Tom Tromey <tom@tromey.com>
12544
12545 * tui/tui-wingeneral.h: Include gdb_curses.h.
12546
38561778
TT
125472019-01-22 Tom Tromey <tom@tromey.com>
12548
12549 * source-cache.h (class source_cache) <get_source_lines,
12550 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12551
37b3ab5b
TT
125522019-01-22 Tom Tromey <tom@tromey.com>
12553
12554 * remote-fileio.h (struct remote_target): Declare.
12555
3fabc016
TT
125562019-01-22 Tom Tromey <tom@tromey.com>
12557
12558 * python/py-arch.c: Do not include py-ref.h.
12559 * python/py-bpevent.c: Do not include py-ref.h.
12560 * python/py-cmd.c: Do not include py-ref.h.
12561 * python/py-continueevent.c: Do not include py-ref.h.
12562 * python/py-event.h: Do not include py-ref.h.
12563 * python/py-evtregistry.c: Do not include py-ref.h.
12564 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12565 * python/py-frame.c: Do not include py-ref.h.
12566 * python/py-framefilter.c: Do not include py-ref.h.
12567 * python/py-function.c: Do not include py-ref.h.
12568 * python/py-infevents.c: Do not include py-ref.h.
12569 * python/py-linetable.c: Do not include py-ref.h.
12570 * python/py-objfile.c: Do not include py-ref.h.
12571 * python/py-param.c: Do not include py-ref.h.
12572 * python/py-prettyprint.c: Do not include py-ref.h.
12573 * python/py-progspace.c: Do not include py-ref.h.
12574 * python/py-symbol.c: Do not include py-ref.h.
12575 * python/py-symtab.c: Do not include py-ref.h.
12576 * python/py-type.c: Do not include py-ref.h.
12577 * python/py-unwind.c: Do not include py-ref.h.
12578 * python/py-utils.c: Do not include py-ref.h.
12579 * python/py-value.c: Do not include py-ref.h.
12580 * python/py-varobj.c: Do not include py-ref.h.
12581 * python/py-xmethods.c: Do not include py-ref.h.
12582 * python/python.c: Do not include py-ref.h.
12583 * varobj.c: Do not include py-ref.h.
12584
6b4d7774
TT
125852019-01-22 Tom Tromey <tom@tromey.com>
12586
12587 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12588 keyword for bcache.
12589
7af7e9b5
TT
125902019-01-22 Tom Tromey <tom@tromey.com>
12591
12592 * compile/compile-cplus-types.c: Remove a comment by #include.
12593
951d1049
TT
125942019-01-22 Tom Tromey <tom@tromey.com>
12595
12596 * compile/gcc-c-plugin.h: Include compile-internal.h.
12597
d65d5705
TT
125982019-01-22 Tom Tromey <tom@tromey.com>
12599
12600 * stabsread.c (EXTERN): Do not define.
12601 (symnum, next_symbol_text_func, processing_gcc_compilation)
12602 (within_function, global_sym_chain, global_stabs)
12603 (previous_stab_code, this_object_header_files)
12604 (n_this_object_header_files)
12605 (n_allocated_this_object_header_files): Define.
12606 * stabsread.h (EXTERN): Never define. Use "extern".
12607
b6fb1ee5
PW
126082019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12609
12610 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12611 history_value.
12612
be6d4f74
TT
126132019-01-21 Tom Tromey <tom@tromey.com>
12614
12615 * ui-out.c: Fix includes.
12616 * tui/tui-source.c: Fix includes.
12617 * target.c: Fix includes.
12618 * remote.c: Fix includes.
12619 * regcache.c: Fix includes.
12620 * python/py-block.c: Fix includes.
12621 * printcmd.c: Fix includes.
12622 * or1k-tdep.c: Fix includes.
12623 * mi/mi-main.c: Fix includes.
12624 * m32r-tdep.c: Fix includes.
12625 * csky-tdep.c: Fix includes.
12626 * compile/compile-cplus-types.c: Fix includes.
12627 * cli/cli-interp.c: Fix includes.
12628
73021deb
AH
126292019-01-21 Alan Hayward <alan.hayward@arm.com>
12630
12631 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12632 for padding.
12633
7932255d
TT
126342019-01-16 Tom Tromey <tom@tromey.com>
12635
12636 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12637 earlier.
12638 (struct objfile) <msymbols_range>: Move from top level.
12639 <msymbols>: New method.
12640 (class objfile_msymbols): Remove.
12641 * symtab.c (default_collect_symbol_completion_matches_break_on):
12642 Update.
12643 * symmisc.c (dump_msymbols): Update.
12644 * stabsread.c (scan_file_globals): Update.
12645 * objc-lang.c (info_selectors_command, info_classes_command)
12646 (find_methods): Update.
12647 * minsyms.c (find_solib_trampoline_target): Update.
12648 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12649 * coffread.c (coff_symfile_read): Update.
12650 * ada-lang.c (ada_lookup_simple_minsym)
12651 (ada_collect_symbol_completion_matches): Update.
12652
604b1bfb
TT
126532019-01-16 Tom Tromey <tom@tromey.com>
12654
12655 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12656 type. Remove no-argument constructor.
12657 <iterator::operator++>: Simplify.
12658 <begin>: Update.
12659 <end>: Use minimal_symbol_count.
12660
f252c6d5
TT
126612019-01-16 Tom Tromey <tom@tromey.com>
12662
12663 * objfiles.h (struct objfile) <psymtabs>: New method.
12664 (class objfile_psymtabs): Remove.
12665 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12666 typedef.
12667 <range>: New method.
12668 (require_partial_symbols): Change return type.
12669 * psymtab.c (require_partial_symbols)
12670 (psym_expand_symtabs_matching): Update.
12671 * mdebugread.c (parse_partial_symbols): Update.
12672 * dbxread.c (dbx_end_psymtab): Update.
12673
b669c953
TT
126742019-01-15 Tom Tromey <tom@tromey.com>
12675
12676 * symtab.c (lookup_objfile_from_block)
12677 (lookup_symbol_in_objfile_symtabs)
12678 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12679 (find_line_symtab, info_sources_command)
12680 (default_collect_symbol_completion_matches_break_on)
12681 (make_source_files_completion_list): Update.
12682 * symmisc.c (print_objfile_statistics, dump_objfile)
12683 (maintenance_print_symbols, maintenance_info_symtabs)
12684 (maintenance_check_symtabs, maintenance_info_line_tables):
12685 Update.
12686 * source.c (select_source_symtab)
12687 (forget_cached_source_info_for_objfile): Update.
12688 * objfiles.h (class objfile_compunits): Remove.
12689 (struct objfile) <compunits_range>: New typedef.
12690 (compunits): New method.
12691 * objfiles.c (objfile_relocate1): Update.
12692 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12693 * maint.c (count_symtabs_and_blocks): Update.
12694 * linespec.c (iterate_over_all_matching_symtabs): Update.
12695 * cp-support.c (add_symbol_overload_list_qualified): Update.
12696 * coffread.c (coff_symtab_read): Update.
12697 * ada-lang.c (add_nonlocal_symbols)
12698 (ada_collect_symbol_completion_matches)
12699 (ada_add_global_exceptions): Update.
12700
7e955d83
TT
127012019-01-15 Tom Tromey <tom@tromey.com>
12702
12703 * progspace.h (program_space) <objfiles_safe_range>: New
12704 typedef.
12705 <objfiles_safe>: New method.
12706 * objfiles.h (class all_objfiles_safe): Remove.
12707 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12708 * jit.c (jit_inferior_exit_hook): Update.
12709
2030c079
TT
127102019-01-17 Tom Tromey <tom@tromey.com>
12711
12712 * progspace.h (program_space) <objfiles_range>: New typedef.
12713 <objfiles>: New method.
12714 <objfiles_head>: Rename from objfiles.
12715 (object_files): Update.
12716 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12717 * guile/scm-pretty-print.c
12718 (ppscm_find_pretty_printer_from_objfiles): Update.
12719 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12720 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12721 Update.
12722 * python/py-progspace.c (pspy_get_objfiles): Update.
12723 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12724 Update.
12725 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12726 (objfpy_lookup_objfile_by_build_id): Update.
12727 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12728 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12729 Update.
12730 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12731 (expand_symtab_containing_pc, lookup_objfile_from_block)
12732 (lookup_static_symbol, basic_lookup_transparent_type)
12733 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12734 (find_line_symtab, info_sources_command)
12735 (default_collect_symbol_completion_matches_break_on)
12736 (make_source_files_completion_list, find_main_name): Update.
12737 * symmisc.c (print_symbol_bcache_statistics)
12738 (print_objfile_statistics, maintenance_print_symbols)
12739 (maintenance_print_msymbols, maintenance_print_objfiles)
12740 (maintenance_info_symtabs, maintenance_check_symtabs)
12741 (maintenance_expand_symtabs, maintenance_info_line_tables):
12742 Update.
12743 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12744 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12745 (map_overlay_command, unmap_overlay_command)
12746 (simple_overlay_update, expand_symtabs_matching)
12747 (map_symbol_filenames): Update.
12748 * symfile-debug.c (set_debug_symfile): Update.
12749 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12750 Update.
12751 * source.c (select_source_symtab, forget_cached_source_info):
12752 Update.
12753 * solib.c (solib_read_symbols): Update.
12754 * solib-spu.c (append_ocl_sos): Update.
12755 * psymtab.c (maintenance_print_psymbols)
12756 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12757 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12758 * printcmd.c (info_symbol_command): Update.
12759 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12760 Update.
12761 * objfiles.h (class all_objfiles): Remove.
12762 * objfiles.c (have_partial_symbols, have_full_symbols)
12763 (have_minimal_symbols, qsort_cmp, update_section_map)
12764 (shared_objfile_contains_address_p)
12765 (default_iterate_over_objfiles_in_search_order): Update.
12766 * objc-lang.c (info_selectors_command, info_classes_command)
12767 (find_methods): Update.
12768 * minsyms.c (find_solib_trampoline_target): Update.
12769 * maint.c (maintenance_info_sections)
12770 (maintenance_translate_address, count_symtabs_and_blocks):
12771 Update.
12772 * main.c (captured_main_1): Update.
12773 * linux-thread-db.c (try_thread_db_load_from_pdir)
12774 (has_libpthread): Update.
12775 * linespec.c (iterate_over_all_matching_symtabs)
12776 (search_minsyms_for_name): Update.
12777 * jit.c (jit_find_objf_with_entry_addr): Update.
12778 * hppa-tdep.c (find_unwind_entry)
12779 (hppa_lookup_stub_minimal_symbol): Update.
12780 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12781 Update.
12782 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12783 (elf_gnu_ifunc_resolve_by_got): Update.
12784 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12785 * dwarf-index-write.c (save_gdb_index_command): Update.
12786 * cp-support.c (add_symbol_overload_list_qualified): Update.
12787 * breakpoint.c (create_overlay_event_breakpoint)
12788 (create_longjmp_master_breakpoint)
12789 (create_std_terminate_master_breakpoint)
12790 (create_exception_master_breakpoint): Update.
12791 * blockframe.c (find_pc_partial_function): Update.
12792 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12793 (ada_collect_symbol_completion_matches)
12794 (ada_add_global_exceptions): Update.
12795
776489e0
TT
127962019-01-17 Tom Tromey <tom@tromey.com>
12797
12798 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12799 declare VEC.
12800 (solib_target_parse_libraries): Change return type.
12801 (library_list_start_segment, library_list_start_section)
12802 (library_list_end_library, library_list_start_library); Update.
12803 (solib_target_free_library_list): Remove.
12804 (solib_target_parse_libraries): Remove cleanup. Change return
12805 type.
12806 (solib_target_current_sos): Update.
12807
6471e7d2
TT
128082019-01-17 Tom Tromey <tromey@bapiya>
12809
12810 * valprint.c: Replace "the the" with "the".
12811 * symtab.c: Replace "the the" with "the".
12812 * solib.c: Replace "the the" with "the".
12813 * solib-dsbt.c: Replace "the the" with "the".
12814 * linespec.c: Replace "the the" with "the".
12815 * dwarf2loc.h: Replace "the the" with "the".
12816 * amd64-windows-tdep.c: Replace "the the" with "the".
12817 * aarch64-tdep.c: Replace "the the" with "the".
12818
c24bdb02
KS
128192019-01-16 Keith Seitz <keiths@redhat.com>
12820
12821 PR gdb/23773
12822 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12823 <builder>: Rename to ..
12824 <m_builder>: ... this and make private.
12825 (dwarf2_cu::get_builder): New method. Change all users of
12826 `builder' to use this method.
12827 (dwarf2_start_symtab): Move to ...
12828 (dwarf2_cu::start_symtab): ... here. Update all callers
12829 (setup_type_unit_groups): Move to ...
12830 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12831 callers.
12832 (dwarf2_cu::reset_builder): New method.
12833 (process_full_compunit, process_full_type_unit): Use
12834 dwarf2_cu::reset_builder.
12835 (follow_die_offset): Record the ancestor CU if it is different
12836 from the followed DIE's CU.
12837 (follow_die_sig_1): Likewise.
12838
8d64371b
TT
128392019-01-15 Tom Tromey <tom@tromey.com>
12840
12841 * remote.c (class remote_state) <buf>: Now a char_vector.
12842 <buf_size>: Remove.
12843 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12844 parameter.
12845 (remote_target::getpkt_or_notif_sane_1)
12846 (remote_target::getpkt_sane)
12847 (remote_target::getpkt_or_notif_sane): Likewise.
12848 (class remote_target) <putpkt>: New overload.
12849 (remote_target::read_frame): Change type of "buf_p". Remove
12850 sizeof_p parameter.
12851 (packet_ok): New overload.
12852 (packet_check_result): New overload.
12853 Update all uses.
12854
bb277751
TT
128552019-01-14 Tom Tromey <tom@tromey.com>
12856
12857 * remote-notif.c (handle_notification, remote_notif_ack)
12858 (remote_notif_parse): Make "buf" const.
12859 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12860 const.
12861 (remote_notif_parse, remote_notif_ack, handle_notification):
12862 Likewise.
12863 * remote.c (remote_notif_stop_parse): Make "buf" const.
12864 (remote_target::remote_parse_stop_reply): Make "buf" const.
12865 (remote_notif_stop_ack): Make "buf" const.
12866
05be00a8
TT
128672019-01-14 Tom Tromey <tom@tromey.com>
12868
12869 * remote.c (remote_console_output): Make parameter const.
12870
491adeca
TT
128712019-01-14 Tom Tromey <tom@tromey.com>
12872
12873 * target-debug.h (target_debug_print_signals): Constify.
12874 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12875 * procfs.c (procfs_target::pass_signals): Update.
12876 * linux-nat.c (linux_nat_target::pass_signals): Update.
12877 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12878 * target-delegates.c: Rebuild.
12879 * remote.c (remote_target::program_signals): Update.
12880 (remote_target::pass_signals): Update.
12881 * target.c (target_pass_signals): Constify argument.
12882 (target_program_signals): Likewise.
12883 * target.h (struct target_ops) <pass_signals, program_signals>:
12884 Constify argument.
12885 (target_pass_signals, target_program_signals): Constify argument.
12886
bbd94648
TT
128872019-01-14 Tom Tromey <tom@tromey.com>
12888
12889 PR tui/28819:
12890 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12891
6f072a10
PFC
128922019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12893
12894 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12895 field.
12896 * rs6000-tdep.c: Include reggroups.h.
12897 (IS_V_ALIAS_PSEUDOREG): Define.
12898 (rs6000_register_name): Return names for the "vX" aliases.
12899 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12900 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12901 aliases. Call default_register_reggroup_p for all other
12902 pseudo-registers.
12903 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12904 New functions.
12905 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12906 Handle "vX" aliases.
12907 (v_alias_pseudo_register_collect): New function.
12908 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12909 (rs6000_gdbarch_init): Initialize "vX" aliases as
12910 pseudo-registers. Restore registration of
12911 rs6000_pseudo_register_reggroup_p with
12912 set_tdesc_pseudo_register_reggroup_p.
12913
1a782351
MF
129142019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12915
12916 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12917 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12918 set_gdbarch_num_pseudo_regs.
12919
d73cff18
PW
129202019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12921
12922 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12923 Remove arg prefixname, add do_set and do_show.
12924 Add member functions set_list and show_list.
12925 * cli/cli-style.c (class cli_style_option): Update accordingly.
12926 (style_set_list): Move to file scope.
12927 (style_show_list): Likewise.
12928 (set_style): Call help_list.
12929 (show_style): Call cmd_show_list.
12930 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12931 Update to use the new macro.
12932
60a90376
JB
129332019-10-12 Joel Brobecker <brobecker@adacore.com>
12934
12935 * ada-lang.c (_initialize_ada_language): Expand the help text
12936 for the "catch exception" command.
12937
9d7c67bf
PW
129382019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12939
12940 * symtab.c (matching_obj_sections): Initialize obj,
12941 declare it closer to its usage.
12942
7cf47dc4
TT
129432019-01-10 Tom Tromey <tom@tromey.com>
12944
12945 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12946 (basic_inf_threads_range): Remove.
12947 (inf_threads_range, inf_non_exited_threads_range)
12948 (safe_inf_threads_range): Use next_adapter.
12949
d3cb6808
KS
129502019-01-10 Keith Seitz <keiths@redhat.com>
12951
12952 PR gdb/23712
12953 PR symtab/23010
12954 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12955 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12956
63a20375
KS
129572019-01-10 Keith Seitz <keiths@redhat.com>
12958
12959 PR gdb/23712
12960 PR symtab/23010
12961 * dictionary.c (pending_to_vector): Remove.
12962 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12963 Remove _1 suffix, replacing functions of the same name. Update
12964 all callers.
12965 (dict_create_hashed, dict_create_hashed_expandable)
12966 (dict_create_linear, dict_create_linear_expandable, dict_free)
12967 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12968 Make functions static.
12969
b026f593
KS
129702019-01-10 Keith Seitz <keiths@redhat.com>
12971
12972 PR gdb/23712
12973 PR symtab/23010
12974 * dictionary.h (struct dictionary): Replace declaration with
12975 multidictionary.
12976 (dict_create_hashed, dict_create_hashed_expandable)
12977 (dict_create_linear, dict_create_linear_expandable)
12978 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12979 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12980 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12981 taking multidictionary argument.
12982 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12983 * block.h (struct block) <dict>: Change to multidictionary
12984 and rename `multidict'.
12985 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12986 symmisc.c: Update all dictionary references to multidictionary.
12987
c7748ee9
KS
129882019-01-10 Keith Seitz <keiths@redhat.com>
12989
12990 PR gdb/23712
12991 PR symtab/23010
12992 * dictionary.c: Include unordered_map.
12993 (pending_to_vector): New function.
12994 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12995 Rewrite the non-"_1" functions to take vector instead
12996 of linked list.
12997 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12998 "new" _1 versions of the same name.
12999 (multidictionary): Define.
13000 (std::hash<enum language): New definition.
13001 (collate_pending_symbols_by_language, mdict_create_hashed)
13002 (mdict_create_hashed_expandable, mdict_create_linear)
13003 (mdict_create_linear_expandable, mdict_free)
13004 (find_language_dictionary, create_new_language_dictionary)
13005 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13006 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13007 (mdict_size, mdict_empty): New functions.
13008 * dictionary.h (mdict_iterator): Define.
13009
67aa1f3c
PA
130102019-01-10 Pedro Alves <palves@redhat.com>
13011
13012 * breakpoint.c (read_uploaded_action)
13013 (create_tracepoint_from_upload): Adjust to use
13014 gdb::unique_xmalloc_ptr.
13015 * ctf.c (ctf_write_uploaded_tp):
13016 (SET_ARRAY_FIELD): Use emplace_back.
13017 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13018 * tracefile-tfile.c (tfile_write_uploaded_tp):
13019 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13020 gdb::unique_xmalloc_ptr.
13021 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13022 at_string, cond_string, cmd_strings>: Replace char pointers
13023 with gdb::unique_xmalloc_ptr.
13024
2f667667
PA
130252019-01-10 Pedro Alves <palves@redhat.com>
13026
13027 * solib-target.c (library_list_start_library): Don't xstrdup name.
13028
36cb7237
PA
130292019-01-10 Pedro Alves <palves@redhat.com>
13030
13031 * mdebugread.c (parse_partial_symbols): Use
13032 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13033
da584958
AB
130342019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13035
13036 * linux-fork.c (scoped_switch_fork_info)
13037 <~scoped_switch_fork_info>: Fix incorrect variable name.
13038
1ef8573c
AB
130392019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13040
13041 * linux-fork.c (scoped_switch_fork_info)
13042 <scoped_switch_fork_info>: Make explicit.
13043 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13044
8d7bcccb
TT
130452019-01-10 Tom Tromey <tom@tromey.com>
13046
13047 * objfiles.h (objfile::reset_psymtabs): Update.
13048 * objfiles.c (objfile::objfile): Update.
13049 * psymtab.h (psymtab_storage::obstack): Update.
13050 (psymtab_storage::m_obstack): Use gdb::optional.
13051 (class psymtab_storage): Update comment. Remove objfile
13052 parameter.
13053 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13054
b596a3c7
TT
130552019-01-10 Tom Tromey <tom@tromey.com>
13056
13057 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13058 <free_psymtabs>: Now private.
13059 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13060 (allocate_psymtab): Use new method.
13061
a9342b62
TT
130622019-01-10 Tom Tromey <tom@tromey.com>
13063
13064 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13065 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13066 * mdebugread.c (parse_partial_symbols): Use
13067 allocate_dependencies.
13068 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13069 allocate_dependencies.
13070 (process_psymtab_comp_unit_reader)
13071 (build_type_psymtab_dependencies): Likewise.
13072 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13073
5af70966
TT
130742019-01-10 Tom Tromey <tom@tromey.com>
13075
13076 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13077 PSYMBOL_SET_LANGUAGE.
13078 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13079
5923a04c
TT
130802019-01-10 Tom Tromey <tom@tromey.com>
13081
13082 * psymtab.h (psymtab_storage::obstack): New method.
13083 <m_obstack>: Rename from obstack; now private.
13084 * psymtab.c (psymtab_storage): Update.
13085 * dwarf2read.c (create_addrmap_from_index)
13086 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13087 Update.
13088
6d6a12bf
TT
130892019-01-10 Tom Tromey <tom@tromey.com>
13090
13091 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13092 * objfiles.h (objfile::reset_psymtabs): New method.
13093
d320c2b5
TT
130942019-01-10 Tom Tromey <tom@tromey.com>
13095
13096 * symmisc.c (print_symbol_bcache_statistics): Update.
13097 (print_objfile_statistics): Update.
13098 * symfile.c (reread_symbols): Update.
13099 * psymtab.h (class psymtab_storage): New.
13100 * psymtab.c (psymtab_storage): New constructor.
13101 (~psymtab_storage): New destructor.
13102 (require_partial_symbols): Update.
13103 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13104 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13105 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13106 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13107 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13108 (start_psymtab_common, end_psymtab_common)
13109 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13110 (allocate_psymtab): Update.
13111 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13112 Update.
13113 (dump_psymtab_addrmap, maintenance_print_psymbols)
13114 (maintenance_check_psymtabs): Update.
13115 (class objfile_psymtabs): Move to objfiles.h.
13116 * psympriv.h (discard_psymtab): Now inline.
13117 (psymtab_discarder::psymtab_discarder): Update.
13118 (psymtab_discarder::~psymtab_discarder): Update.
13119 (ALL_OBJFILE_PSYMTABS): Rewrite.
13120 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13121 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13122 Remove fields.
13123 <partial_symtabs>: New field.
13124 (class objfile_psymtabs): Move from psymtab.h. Update.
13125 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13126 psymbol_cache.
13127 (objfile::~objfile): Don't destroy psymbol_cache.
13128 * mdebugread.c (parse_partial_symbols): Update.
13129 * dwarf2read.c (create_addrmap_from_index)
13130 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13131 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13132 (add_partial_subprogram, dwarf2_ranges_read): Update.
13133 * dwarf-index-write.c (write_address_map)
13134 (write_one_signatured_type, recursively_write_psymbols)
13135 (class debug_names, class debug_names, write_psymtabs_to_index):
13136 Update.
13137
1d94a5a3
TT
131382019-01-10 Tom Tromey <tom@tromey.com>
13139
13140 * symtab.h (SYMBOL_SET_NAMES): Update.
13141 (symbol_set_names): Update.
13142 (MSYMBOL_SET_NAMES): Update.
13143 * symtab.c (symbol_set_names): Change argument to be an
13144 objfile_per_bfd_storage.
13145 * psymtab.c (add_psymbol_to_bcache): Update.
13146 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13147
0f14768a
TT
131482019-01-10 Tom Tromey <tom@tromey.com>
13149
13150 * symtab.c (create_demangled_names_hash): Change argument to be an
13151 objfile_per_bfd_storage.
13152 (symbol_set_names): Update.
13153
6eee24ce
TT
131542019-01-10 Tom Tromey <tom@tromey.com>
13155
13156 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13157 init_psymbol_list.
13158 * psymtab.c (init_psymbol_list): Do nothing if already called.
13159 * psympriv.h (init_psymbol_list): Add comment.
13160 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13161 init_psymbol_list.
13162 * dbxread.c (dbx_symfile_read): Unconditionally call
13163 init_psymbol_list.
13164
75aedd27
TT
131652019-01-10 Tom Tromey <tom@tromey.com>
13166
13167 * xcoffread.c (scan_xcoff_symtab): Update.
13168 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13169 "where".
13170 * mdebugread.c (parse_partial_symbols)
13171 (handle_psymbol_enumerators): Update.
13172 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13173 * dbxread.c (read_dbx_symtab): Update.
13174 * psympriv.h (psymbol_placement): New enum.
13175 (add_psymbol_to_list): Update.
13176
939652a5
TT
131772019-01-10 Tom Tromey <tom@tromey.com>
13178
13179 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13180 static_psymbols parameters.
13181 (scan_xcoff_symtab): Update.
13182 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13183 static_psymbols parameters.
13184 * psympriv.h (start_psymtab_common): Update.
13185 * mdebugread.c (parse_partial_symbols): Update.
13186 * dwarf2read.c (create_partial_symtab): Update.
13187 * dbxread.c (read_dbx_symtab): Update.
13188 (start_psymtab): Remove global_psymbols and static_psymbols
13189 parameters.
13190
baa62830
TT
131912019-01-10 Tom Tromey <tom@tromey.com>
13192
13193 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13194 * psymtab.c (allocate_psymtab): Add comment.
13195 * psympriv.h (allocate_psymtab): Add comment.
13196 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13197 initializations.
13198 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13199
0e8f53ba
TT
132002019-01-10 Tom Tromey <tom@tromey.com>
13201
13202 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13203 Don't declare.
13204 * mipsread.c: Include mdebugread.h.
13205 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13206 Declare.
13207 * elfread.c: Include mdebugread.h.
13208
b22a7c6a
TT
132092019-01-09 Tom Tromey <tom@tromey.com>
13210
13211 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13212 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13213 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13214 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13215 (psym_lookup_symbol, psym_find_last_source_symtab)
13216 (psym_forget_cached_source_info, psym_print_stats)
13217 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13218 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13219 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13220 (psym_find_compunit_symtab_by_address)
13221 (maintenance_print_psymbols, maintenance_info_psymtabs)
13222 (maintenance_check_psymtabs): Use ranged for.
13223 * psymtab.h (class objfile_psymtabs): New.
13224 (require_partial_symbols): Return objfile_psymtabs.
13225 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13226
3b9d3ac2
TT
132272019-01-09 Tom Tromey <tom@tromey.com>
13228
13229 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13230 (find_pc_mapped_section, list_overlays_command)
13231 (map_overlay_command, unmap_overlay_command)
13232 (simple_overlay_update): Use all_objfiles.
13233 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13234 * printcmd.c (info_symbol_command): Use all_objfiles.
13235 * objfiles.h (ALL_OBJSECTIONS): Remove.
13236 * maint.c (maintenance_translate_address): Use all_objfiles.
13237 * gcore.c (gcore_create_callback): Use all_objfiles.
13238 (objfile_find_memory_regions): Likewise.
13239
8b31193a
TT
132402019-01-09 Tom Tromey <tom@tromey.com>
13241
13242 * symtab.c (find_line_symtab, info_sources_command)
13243 (make_source_files_completion_list): Use objfile_compunits.
13244 * source.c (select_source_symtab): Use objfile_compunits.
13245 * objfiles.h (struct objfile): Update comment.
13246 (ALL_OBJFILES): Remove.
13247 (ALL_FILETABS): Remove.
13248 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13249 objfile_compunits.
13250
d5da8b3c
TT
132512019-01-09 Tom Tromey <tom@tromey.com>
13252
13253 * symmisc.c (print_objfile_statistics, dump_objfile)
13254 (maintenance_print_symbols): Use compunit_filetabs.
13255 * source.c (forget_cached_source_info_for_objfile): Use
13256 compunit_filetabs.
13257 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13258 (ALL_FILETABS): Use compunit_filetabs.
13259 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13260 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13261
5accd1a0
TT
132622019-01-09 Tom Tromey <tom@tromey.com>
13263
13264 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13265 (compunit_filetabs): New.
13266 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13267 compunit_filetabs.
13268 (info_sources_command, make_source_files_completion_list): Remove
13269 declaration.
13270 * symmisc.c (print_objfile_statistics, dump_objfile)
13271 (maintenance_print_symbols): Remove declaration.
13272 (maintenance_info_symtabs): Use compunit_filetabs.
13273 (maintenance_info_line_tables): Likewise.
13274 * source.c (select_source_symtab): Change local variable name.
13275 (forget_cached_source_info_for_objfile): Remove declaration.
13276 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13277 * objfiles.c (objfile_relocate1): Remove declaration.
13278 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13279 declaration.
13280 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13281 * coffread.c (coff_symtab_read): Remove declaration.
13282 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13283 compunit_filetabs.
13284
d8aeb77f
TT
132852019-01-09 Tom Tromey <tom@tromey.com>
13286
13287 * symtab.c (lookup_objfile_from_block)
13288 (find_pc_sect_compunit_symtab, search_symbols)
13289 (default_collect_symbol_completion_matches_break_on): Use
13290 objfile_compunits.
13291 * objfiles.h (ALL_COMPUNITS): Remove.
13292 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13293 * cp-support.c (add_symbol_overload_list_qualified): Use
13294 objfile_compunits.
13295 * ada-lang.c (ada_collect_symbol_completion_matches)
13296 (ada_add_global_exceptions): Use objfile_compunits.
13297
592553c4
TT
132982019-01-09 Tom Tromey <tom@tromey.com>
13299
13300 * source.c (select_source_symtab)
13301 (forget_cached_source_info_for_objfile): Remove declaration.
13302 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13303 declaration.
13304 * maint.c (count_symtabs_and_blocks): Remove declaration.
13305 * cp-support.c (add_symbol_overload_list_qualified): Remove
13306 declaration.
13307 * coffread.c (coff_symtab_read): Remove declaration.
13308 * symtab.c (lookup_symbol_in_objfile_symtabs)
13309 (basic_lookup_transparent_type_1): Use objfile_compunits.
13310 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13311 (info_sources_command, search_symbols)
13312 (default_collect_symbol_completion_matches_break_on)
13313 (make_source_files_completion_list): Remove declaration.
13314 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13315 (ada_collect_symbol_completion_matches)
13316 (ada_add_global_exceptions): Remove declaration.
13317 * linespec.c (iterate_over_all_matching_symtabs): Use
13318 objfile_compunits.
13319 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13320 (class objfile_compunits): New.
13321 (ALL_COMPUNITS): Use objfile_compunits.
13322 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13323 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13324 objfile_compunits.
13325 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13326
5325b9bf
TT
133272019-01-09 Tom Tromey <tom@tromey.com>
13328
13329 * symtab.c (search_symbols)
13330 (default_collect_symbol_completion_matches_break_on): Use
13331 objfile_msymbols.
13332 * ada-lang.c (ada_lookup_simple_minsym)
13333 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13334 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13335 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13336 objfile_msymbols.
13337 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13338 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13339 * objc-lang.c (find_methods): Use objfile_msymbols.
13340 (info_selectors_command, info_classes_command): Likewise.
13341 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13342 * objfiles.h (class objfile_msymbols): New.
13343 (ALL_OBJFILE_MSYMBOLS): Remove.
13344 (ALL_MSYMBOLS): Remove.
13345
cac85af2
TT
133462019-01-09 Tom Tromey <tom@tromey.com>
13347
13348 * common/next-iterator.h (next_adapter): Add Iterator template
13349 parameter.
13350 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13351 (class all_objfiles_safe): New.
13352 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13353 * objfiles.c (put_objfile_before): Update comment.
13354 (add_separate_debug_objfile): Likewise.
13355 (free_all_objfiles): Use all_objfiles_safe.
13356 (objfile_purge_solibs): Likewise.
13357
aed57c53
TT
133582019-01-09 Tom Tromey <tom@tromey.com>
13359
13360 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13361 (expand_symtab_containing_pc, lookup_static_symbol)
13362 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13363 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13364 all_objfiles.
13365 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13366 * breakpoint.c (create_overlay_event_breakpoint)
13367 (create_longjmp_master_breakpoint)
13368 (create_std_terminate_master_breakpoint)
13369 (create_exception_master_breakpoint): Use all_objfiles.
13370 * linux-thread-db.c (try_thread_db_load_from_pdir)
13371 (has_libpthread): Use all_objfiles.
13372 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13373 * linespec.c (iterate_over_all_matching_symtabs)
13374 (search_minsyms_for_name): Use all_objfiles.
13375 * maint.c (maintenance_info_sections): Use all_objfiles.
13376 * main.c (captured_main_1): Use all_objfiles.
13377 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13378 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13379 * guile/scm-pretty-print.c
13380 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13381 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13382 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13383 (maintenance_print_msymbols): Use all_objfiles.
13384 * source.c (select_source_symtab): Use all_objfiles.
13385 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13386 * symfile.c (remove_symbol_file_command)
13387 (expand_symtabs_matching, map_symbol_filenames): Use
13388 all_objfiles.
13389 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13390 all_objfiles.
13391 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13392 * objc-lang.c (find_methods): Use all_objfiles.
13393 * objfiles.c (have_partial_symbols, have_full_symbols)
13394 (have_minimal_symbols, qsort_cmp)
13395 (default_iterate_over_objfiles_in_search_order): Use
13396 all_objfiles.
13397 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13398 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13399 (maintenance_check_psymtabs): Use all_objfiles.
13400 (ALL_PSYMTABS): Remove.
13401 * compile/compile-object-run.c (do_module_cleanup): Use
13402 all_objfiles.
13403 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13404 * cp-support.c (add_symbol_overload_list_qualified): Use
13405 all_objfiles.
13406 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13407 Use all_objfiles.
13408 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13409 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13410 all_objfiles.
13411 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13412 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13413 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13414 Uses all_objfiles.
13415 * solib.c (solib_read_symbols): Use all_objfiles
13416
99d89cde
TT
134172019-01-09 Tom Tromey <tom@tromey.com>
13418
13419 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13420 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13421 all_objfiles.
13422 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13423 * symmisc.c (print_symbol_bcache_statistics)
13424 (print_objfile_statistics, maintenance_print_objfiles)
13425 (maintenance_info_symtabs, maintenance_check_symtabs)
13426 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13427 all_objfiles.
13428 * source.c (forget_cached_source_info): Use all_objfiles.
13429 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13430 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13431 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13432 * objfiles.c (update_section_map): Use all_objfiles.
13433 (shared_objfile_contains_address_p): Likewise.
13434 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13435 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13436
21708325
TT
134372019-01-09 Tom Tromey <tom@tromey.com>
13438
13439 * common/next-iterator.h: New file.
13440 * objfiles.h (class all_objfiles): New.
13441 (struct objfile_iterator): New.
13442
669e09f6
PW
134432019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13444
13445 * NEWS: Move the description of the changed "frame", "select-frame",
13446 and "info frame" commands to the Changed commands section.
13447
041be526
SM
134482019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13449
13450 * gdbtypes.c (check_stub_method_group): Remove handling of old
13451 mangling schemes.
13452 * linespec.c (find_methods): Likewise.
13453 * stabsread.c (read_member_functions): Likewise.
13454 * valops.c (search_struct_method): Likewise.
13455 (value_struct_elt_for_reference): Likewise.
13456 * NEWS: Mention this change.
13457
0e2a2133
AB
134582019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13459
13460 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13461 print_source_lines.
13462 * source.c (print_source_lines_base): Update line number check.
13463 (print_source_lines): New function.
13464 (source_lines_range::source_lines_range): New function.
13465 * source.h (class source_lines_range): New class.
13466 (print_source_lines): New declaration.
13467
1055a3b4
PW
134682019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13469
13470 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13471
cfeadda5
TT
134722019-01-08 Tom Tromey <tom@tromey.com>
13473 Simon Marchi <simon.marchi@ericsson.com>
13474
13475 PR gdb/24060
13476 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13477 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13478 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13479 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13480 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13481 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13482
583068ca
AB
134832019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 * source.c (select_source_symtab): Move header comment to
13486 declaration in source.h.
13487 (forget_cached_source_info_for_objfile): Likewise.
13488 (forget_cached_source_info): Likewise.
13489 (identify_source_line): Likewise.
13490 * source.h (identify_source_line): Move declaration from symtab.h
13491 and add comment from source.c
13492 (print_source_lines): Likewise.
13493 (forget_cached_source_info_for_objfile): Likewise.
13494 (forget_cached_source_info): Likewise.
13495 (select_source_symtab): Likewise.
13496 (enum print_source_lines_flag): Move definition from symtab.h.
13497 * symtab.h (identify_source_line): Move declaration to source.h.
13498 (print_source_lines): Likewise.
13499 (forget_cached_source_info_for_objfile): Likewise.
13500 (forget_cached_source_info): Likewise.
13501 (select_source_symtab): Likewise.
13502 (enum print_source_lines_flag): Move definition to source.h.
13503 * tui/tui-hooks.c: Add 'source.h' include.
13504
ec98a4ad
AB
135052019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13506
13507 * source.c (print_source_lines_base): Handle requests to print
13508 reverse line number sequences, and guard against empty lines
13509 string.
13510
62ea19c1
AB
135112019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * source.c (print_source_lines_base): Fix skip of '\r' if next
13514 character is '\n'.
13515
9d30e1fd
TT
135162019-01-06 Tom Tromey <tom@tromey.com>
13517
13518 * c-exp.y (struct c_parse_state) <macro_original_text,
13519 expansion_obstack>: New member.
13520 (macro_original_text, expansion_obstack): Remove globals.
13521 (scan_macro_expansion, scanning_macro_expansion)
13522 (finished_macro_expansion): Update.
13523 (scan_macro_cleanup): Remove.
13524 (yylex, c_parse): Update.
13525
c65bac38
TT
135262019-01-06 Tom Tromey <tom@tromey.com>
13527
13528 * c-exp.y (struct c_parse_state) <strings>: New member.
13529 (operator_stoken): Update.
13530
02e12e38
TT
135312019-01-06 Tom Tromey <tom@tromey.com>
13532
13533 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13534 (union type_stack_elt) <typelist_val>: Now a pointer to
13535 std::vector.
13536 (type_stack_cleanup): Don't declare.
13537 (push_typelist): Update.
13538 * parse.c (pop_typelist): Return a std::vector.
13539 (push_typelist): Take a std::vector.
13540 (follow_types): Update. Do not free args.
13541 (type_stack_cleanup): Remove.
13542 * c-exp.y (struct c_parse_state): New.
13543 (cpstate): New global.
13544 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13545 (nonempty_typelist): Update.
13546 (func_mod): Create a new vector.
13547 (c_parse): Create a c_parse_state.
13548 (check_parameter_typelist): Do not delete params.
13549 (function_method): Update. Do not delete type_list.
13550
f097f5ad
TT
135512019-01-06 Tom Tromey <tom@tromey.com>
13552
13553 PR gdb/28155:
13554 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13555 check_typedef.
13556 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13557 (print_return_value): Likewise.
13558
d2adf9f1
TT
135592019-01-05 Tom Tromey <tom@tromey.com>
13560
13561 * contrib/cleanup_check.py: Remove.
13562 * contrib/gcc-with-excheck: Remove.
13563 * contrib/exsummary.py: Remove.
13564 * contrib/excheck.py: Remove.
13565
2eab46b1
JB
135662019-01-05 Joel Brobecker <brobecker@adacore.com>
13567
13568 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13569 NULL. Initialize tpprev to NULL instead of assigning it
13570 to NULL on the next statement.
13571 * windows-nat.c (windows_delete_thread): Remove check for
13572 main_thread_id before printing thread exit notifications.
13573 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13574 Remove thread ID check against main_thread_id.
13575 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13576 windows_delete_thread.
13577 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13578
48c5e7e2
TT
135792019-01-04 Tom Tromey <tom@tromey.com>
13580
13581 * compile/compile.c (_initialize_compile): Use upper case for
13582 metasyntactic variables.
13583 * symmisc.c (_initialize_symmisc): Use upper case for
13584 metasyntactic variables.
13585 * psymtab.c (_initialize_psymtab): Use upper case for
13586 metasyntactic variables.
13587 * demangle.c (demangle_command): Use upper case for metasyntactic
13588 variables.
13589 (_initialize_demangler): Likewise.
13590 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13591 variables.
13592
986041cd
TT
135932019-01-03 Tom Tromey <tom@tromey.com>
13594
13595 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13596
7c711119
TT
135972019-01-03 Tom Tromey <tom@tromey.com>
13598
13599 * python/py-symtab.c (salpy_str): Update.
13600 (struct salpy_sal_object) <symtab>: Now a PyObject.
13601 (salpy_dealloc): Update.
13602 (del_objfile_sal): Use gdbpy_ref.
13603
1b20edf0
TT
136042019-01-03 Tom Tromey <tom@tromey.com>
13605
13606 * python/py-type.c (convert_field): Use new_reference. Return
13607 gdbpy_ref.
13608 (make_fielditem): Return gdbpy_ref.
13609 (typy_fields): Update.
13610 (typy_getitem): Update.
13611 (field_name): Return gdbpy_ref. Use new_reference.
13612 (typy_iterator_iternext): Update.
13613
ea41325b
TT
136142019-01-03 Tom Tromey <tom@tromey.com>
13615
13616 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13617
2a3c71d6
TT
136182019-01-03 Tom Tromey <tom@tromey.com>
13619
13620 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13621 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13622 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13623 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13624 (pspy_set_type_printers): Likewise.
13625 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13626 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13627 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13628 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13629 (objfpy_set_type_printers): Likewise.
13630
5c329e6a
TT
136312019-01-03 Tom Tromey <tom@tromey.com>
13632
13633 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13634 (gdbpy_print_stack): Use gdbpy_err_fetch.
13635 * python/python-internal.h (class gdbpy_err_fetch): New class.
13636 (class gdbpy_enter) <m_error_type, m_error_value,
13637 m_error_traceback>: Remove.
13638 <m_error>: New member.
13639 (gdbpy_exception_to_string): Don't declare.
13640 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13641 * python/py-value.c (convert_value_from_python): Use
13642 gdbpy_err_fetch.
13643 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13644 gdbpy_exception_to_string.
13645 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13646 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13647 gdbpy_err_fetch.
13648
169bb27b
AB
136492019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13650
13651 * linux-nat.c (delete_lwp_cleanup): Delete.
13652 (struct lwp_deleter): New struct.
13653 (lwp_info_up): New typedef.
13654 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13655 lwp_info_up.
13656
a07c8880
AB
136572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13658
13659 * linux-fork.c (class scoped_switch_fork_info): New class.
13660 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13661
26089c49
AB
136622019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13663
13664 * valops.c (find_overload_match): Remove use of null_cleanup, and
13665 calls to do_cleanups.
13666
06d3e5b0
AB
136672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * compile/compile-cplus-types.c
13670 (compile_cplus_instance::decl_name): Handle changes to
13671 cp_func_name.
13672 * cp-support.c (cp_func_name): Update header comment, update
13673 return type.
13674 * cp-support.h (cp_func_name): Update return type in declaration.
13675 * valops.c (find_overload_match): Move temp_func local to top
13676 level of function and change its type. Use temp_func to hold and
13677 delete temporary string obtained from cp_func_name.
13678
66644cd3
AB
136792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13680
13681 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13682 gdb::char_vector, remove cleanup, and update uses of `msg`.
13683
592d8c0a
JW
136842019-01-03 Jim Wilson <jimw@sifive.com>
13685
13686 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13687
c55d06ec
TT
136882019-01-02 Tom Tromey <tom@tromey.com>
13689
13690 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13691 (tdesc_parse_xml): Remove cleanups.
13692 * target-descriptions.h (make_cleanup_free_target_description):
13693 Don't declare.
13694 (target_desc_deleter): New struct.
13695 (target_desc_up): New typedef.
13696 * target-descriptions.c (target_desc_deleter::operator()): Rename
13697 from free_target_description.
13698 (make_cleanup_free_target_description): Remove.
13699
3a6ae42d
TT
137002019-01-02 Tom Tromey <tom@tromey.com>
13701
13702 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13703 constructor, destructor.
13704 (linespec_parser): Remove typedef.
13705 (~linespec_parser): Rename from linespec_parser_delete.
13706 (linespec_lex_to_end, linespec_complete_label)
13707 (linespec_complete): Update.
13708 (decode_line_full): Remove cleanups.
13709 (decode_line_1): Update.
13710
61fd3e73
TT
137112019-01-02 Tom Tromey <tom@tromey.com>
13712
13713 * python/python-internal.h (inferior_to_inferior_object): Change
13714 return type.
13715 * python/py-exitedevent.c (create_exited_event_object): Update.
13716 * python/py-inferior.c (inferior_to_inferior_object): Return
13717 gdbpy_ref.
13718 (python_new_inferior, python_inferior_deleted)
13719 (thread_to_thread_object, delete_thread_object)
13720 (build_inferior_list, gdbpy_selected_inferior): Update.
13721 * python/py-infthread.c (create_thread_object): Update. Also fail
13722 if inferior_to_inferior_object fails.
13723
d20172fc
SM
137242019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13725
13726 * inferior.h (class inferior) <displaced_step_state>: New field.
13727 * infrun.h (struct displaced_step_state): Move here from
13728 infrun.c. Initialize fields, add constructor.
13729 <inf>: Remove field.
13730 <reset>: New method.
13731 * infrun.c (struct displaced_step_inferior_state): Move to
13732 infrun.h.
13733 (displaced_step_inferior_states): Remove.
13734 (get_displaced_stepping_state): Adust.
13735 (displaced_step_in_progress_any_inferior): Adjust.
13736 (displaced_step_in_progress_thread): Adjust.
13737 (displaced_step_in_progress): Adjust.
13738 (add_displaced_stepping_state): Remove.
13739 (get_displaced_step_closure_by_addr): Adjust.
13740 (remove_displaced_stepping_state): Remove.
13741 (infrun_inferior_exit): Call displaced_step_state.reset.
13742 (use_displaced_stepping): Don't check for NULL.
13743 (displaced_step_prepare_throw): Call
13744 get_displaced_stepping_state.
13745 (displaced_step_fixup): Don't check for NULL.
13746 (prepare_for_detach): Don't check for NULL.
13747
e3319240
PW
137482019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13749
13750 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13751 in case of call that did not complete.
13752
5d36dfb9
AU
137532019-01-02 Andrey Utkin <autkin@undo.io>
13754
13755 * symfile.c (find_separate_debug_file): Fix search of debug files for
13756 remote debuggee.
13757
8833fbf0
TT
137582019-01-02 Tom Tromey <tom@tromey.com>
13759
13760 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13761 indentation.
13762 * python/py-frame.c (frapy_older): Remove cast.
13763 (frapy_newer): Likewise.
13764 * python/py-breakpoint.c (local_setattro): Remove cast.
13765 * python/py-arch.c (archpy_name): Remove local variable.
13766 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13767
4ada3dfd
JB
137682019-01-02 Joel Brobecker <brobecker@adacore.com>
13769
13770 * unittests/basic_string_view/element_access/char/empty.cc:
13771 Fix year range in copyright header.
13772
113b7b81
AB
137732019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13774
13775 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13776 Delete.
13777 <operator==>: Update with for removed field.
13778 <hash>: Likewise.
13779 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13780 <isa_features>: ...this.
13781 <abi_features>: New field.
13782 (riscv_isa_flen): Update comment.
13783 (riscv_abi_xlen): New declaration.
13784 (riscv_abi_flen): New declaration.
13785 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13786 isa_features.
13787 (riscv_abi_xlen): New function.
13788 (riscv_isa_flen): Update to get answer from isa_features.
13789 (riscv_abi_flen): New function.
13790 (riscv_has_fp_abi): Update to get answer from abi_features.
13791 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13792 xlen and flen.
13793 (riscv_call_info) <xlen, flen>: Update comment.
13794 (riscv_call_arg_struct): Remove invalid assertions
13795 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13796 is removed.
13797 (riscv_gdbarch_init): Gather isa features and abi features
13798 separately, ensure both match on the gdbarch when reusing an old
13799 gdbarch. Relax an error check to allow 32-bit abi float to run on
13800 a target with 64-bit float hardware.
13801
b18ca514
PW
138022019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13803
13804 * source.c (search_command_helper): Stop reverse search
13805 when line 1 has been searched.
13806
ec70d8db
PW
138072019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13808
13809 * record-full.c (record_full_base_target::close): Rewrite
13810 record_full_core_buf_list free logic.
13811
5b38f9c1
PW
138122019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13813
13814 * break-catch-syscall.c (print_one_catch_syscall): xfree
13815 the last text.
13816
66d91b39
JB
138172019-01-01 Joel Brobecker <brobecker@adacore.com>
13818
13819 * top.c (print_gdb_version): Update Copyright year in version
13820 message.
13821
42a4f53d
JB
138222019-01-01 Joel Brobecker <brobecker@adacore.com>
13823
13824 Update copyright year range in all GDB files.
13825
7e955d83 138262019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13827
5bbd631d 13828 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13829
5bbd631d 13830For older changes see ChangeLog-2018.
c906108c
SS
13831\f
13832Local Variables:
13833mode: change-log
13834left-margin: 8
13835fill-column: 74
13836version-control: never
57da7796 13837coding: utf-8
c906108c 13838End:
5bbd631d 13839
This page took 3.012964 seconds and 4 git commands to generate.