Make tui-winsource not use breakpoint_chain
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
81e6b8eb
CB
12019-10-15 Christian Biesinger <cbiesinger@google.com>
2
3 * breakpoint.c (breakpoint_chain): Make static.
4 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
5 of accessing breakpoint_chain.
6
95da600f
CB
72019-10-15 Christian Biesinger <cbiesinger@google.com>
8
9 * breakpoint.c (iterate_over_breakpoints): Change function pointer
10 to a gdb::function_view and return value to bool.
11 * breakpoint.h (iterate_over_breakpoints): Likewise.
12 * dummy-frame.c (pop_dummy_frame_bpt): Update.
13 (pop_dummy_frame): Update.
14 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
15 (gdbscm_breakpoints): Update.
16 * python/py-breakpoint.c (build_bp_list): Update.
17 (gdbpy_breakpoints): Update.
18 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
19 Update.
20 (bpfinishpy_handle_stop): Update.
21 (bpfinishpy_handle_exit): Update.
22 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
23 (svr4_update_solib_event_breakpoints): Update.
24
ba18312d
AA
252019-10-15 Andreas Arnez <arnez@linux.ibm.com>
26
27 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
28 when unwrapping single-field structs.
29
6acc1a0b
SM
302019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * dwarf2read.c: Remove includes.
33
284782de
SM
342019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * ui-out.c (ui_out::call_do_message): Silence
37 -Wformat-nonliteral warning.
38
073bbbb0
SM
392019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * breakpoint.c: Remove some includes: continuations.h, skip.h,
42 mi/mi-main.h, readline/readline.h, readline/history.h. Add
43 include: readline/tilde.h.
44
7b9a15e1
CB
452019-10-12 Christian Biesinger <cbiesinger@google.com>
46
47 * remote.c (remote_target::get_trace_status): Remove declaration of
48 trace_regblock_size.
49
cc8dee1f
CB
502019-10-12 Christian Biesinger <cbiesinger@google.com>
51
52 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
53 (show_user): Remove declaration of cmdlist.
54 * cli/cli-cmds.h (max_user_call_depth): Declare.
55 * cli/cli-script.c (execute_user_command): Remove declaration
56 of max_user_call_depth.
57
a83d4ef6
JW
582019-10-11 Jim Wilson <jimw@sifive.com>
59
5f93c5a6
JW
60 * gdbsupport/print-utils.h (pulongest): Fix comment.
61 (plongest): Likewise.
62 (phex): Add missing comment, mention leading zeros.
63 (phex_nz): Add mention of no leading zeros to comment.
64
a83d4ef6
JW
65 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
66 plongest instead of unsigned long long cast.
67
26344e0c
CB
682019-10-10 Christian Biesinger <cbiesinger@google.com>
69
70 * main.c (captured_main_1): Include gdbtk.h and remove declarations
71 for external_editor_command and gdbtk_test.
72
c2c440a9
CB
732019-10-10 Christian Biesinger <cbiesinger@google.com>
74
75 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
76 * varobj.c (varobjdebug): Move comment to...
77 * varobj.h (varobjdebug): ...here, and declare.
78
a31bff9d
TT
792019-10-09 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
82 erase_data_content.
83
7523da63
TT
842019-10-09 Tom Tromey <tom@tromey.com>
85
86 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
87 * tui/tui-stack.c (tui_locator_window::rerender): Update.
88 * tui/tui-command.c (tui_cmd_window::resize)
89 (tui_refresh_cmd_win): Update.
90 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
91 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
92 * tui/tui-data.c (~tui_gen_win_info): Remove.
93 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
94 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
95 (tui_redisplay_readline, tui_mld_flush)
96 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
97 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
98 (tui_data_window::erase_data_content)
99 (tui_data_item_window::rerender)
100 (tui_data_item_window::refresh_window): Update.
101 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
102 (box_win, tui_gen_win_info::make_window)
103 (tui_gen_win_info::make_visible): Update.
104 (tui_delete_win): Remove.
105 * tui/tui-winsource.c
106 (tui_source_window_base::do_erase_source_content): Update.
107 (tui_show_source_line, tui_source_window_base::update_tab_width)
108 (tui_source_window_base::update_exec_info): Update.
109 * tui/tui-data.h (struct curses_deleter): New.
110 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
111 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
112
a7798e7f
TT
1132019-10-09 Tom Tromey <tom@tromey.com>
114
115 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
116
5c45899e
TT
1172019-10-09 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
120 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
121
6d7fd9aa
TT
1222019-10-09 Tom Tromey <tom@tromey.com>
123
124 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
125 window height directly.
126 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
127 declare.
128 * tui/tui-layout.c (tui_default_win_height): Remove.
129 (tui_default_win_viewport_height): Remove.
130
d2dd1084
TT
1312019-10-09 Tom Tromey <tom@tromey.com>
132
133 * tui/tui.h: Remove comments.
134
cff32449
TV
1352019-10-09 Tom de Vries <tdevries@suse.de>
136
137 * python/lib/gdb/printer/bound_registers.py: Use
138 '^builtin_type_bound128' as regexp argument for
139 add_builtin_pretty_printer.
140
6a25e8a2
CB
1412019-10-09 Christian Biesinger <cbiesinger@google.com>
142
143 * guile/guile.c (guile_extension_script_ops): Remove forward
144 declaration and mark as static.
145 (guile_script_ops): Likewise.
146 (extension_language_guile): Move further down in the file so
147 it can reference the definitions for guile_{extension_,}script_ops.
148
6d9d6da4
AA
1492019-10-09 Andreas Arnez <arnez@linux.ibm.com>
150
151 * s390-tdep.c (390_process_record): Handle new arch13 instructions
152 except SORTL, DFLTCC, and KDSA.
153
3abea05d
TT
1542019-10-08 Tom Tromey <tromey@adacore.com>
155
156 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
157 (struct safe_symbol_file_add_args): Remove.
158
dde996e2
TT
1592019-10-08 Tom Tromey <tromey@adacore.com>
160
161 * windows-nat.c: Don't include buildsym-legacy.h.
162
cd6fdaa1
TT
1632019-10-08 Tom Tromey <tromey@adacore.com>
164
165 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
166
79bb1944
CB
1672019-10-08 Christian Biesinger <cbiesinger@google.com>
168
169 * gdbtypes.c (overload_debug): Move comment to header.
170 * gdbtypes.h (overload_debug): Declare.
171 * valops.c: Remove declaration of overload_debug, instead
172 include gdbtypes.h.
173
34916edc
CB
1742019-10-08 Christian Biesinger <cbiesinger@google.com>
175
176 * language.c (show_language_command): Pass lang_frame_mismatch_warn
177 through _().
178 (lang_frame_mismatch_warn): Make const, mark with N_(), and
179 move comment...
180 * language.h (lang_frame_mismatch_warn): ... here. Also add
181 declaration.
182 * top.c (lang_frame_mismatch_warn): Remove declaration.
183 (check_frame_language_change): Pass lang_frame_mismatch_warn
184 through _().
185
bad5c026
CB
1862019-10-07 Christian Biesinger <cbiesinger@google.com>
187
188 * c-lang.h (vtbl_ptr_name): Declare.
189 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
190 it from the header.
191 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
192
51f1fdc3
CB
1932019-10-07 Christian Biesinger <cbiesinger@google.com>
194
195 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
196 gdb_static_assert.
197
30d1f018
WP
1982019-10-07 Weimin Pan <weimin.pan@oracle.com>
199
606813d5
WP
200 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
201 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
202 * ctfread.c: New file.
203 * ctfread.h: New file.
204 * elfread.c: Include ctfread.h.
205 (struct elfinfo text_p): New member ctfsect.
206 (elf_locate_sections): Mark CTF section.
207 (elf_symfile_read): Call elfctf_build_psymtabs.
208 * Makefile.in (LIBCTF): Add.
209 (CLIBS): Use it.
210 (CDEPS): Likewise.
211 (DIST): Add ctfread.c.
606813d5
WP
212
2132019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * ctfread.c (struct nextfield): Renamed to ...
216 (struct ctf_nextfield): ... this.
217 (struct field_info): Renamed to ...
218 (strut ctf_field_info): ... this.
219 (attach_fields_to_type): Update for renamed structures.
220 (ctf_add_member_cb): Likewise.
221 (ctf_add_enum_member_cb): Likewise.
222 (process_struct_members): Likewise.
223 (process_enum_type): Likewise.
30d1f018 224
518fe38c
WP
2252019-10-07 Weimin Pan <weimin.pan@oracle.com>
226
227 * tracectf.h: Rename, was ctf.h.
228 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
229 * tracefile.c: Likewise.
230 * tracepoint.c: Remove unused include ctf.h.
231 * mi/mi-main.c: Likewise.
232 * Makefile.in Replace ctf.c with tracectf.c.
233
225f296a
JB
2342019-10-06 Joel Brobecker <brobecker@adacore.com>
235
236 * version.in: Change version number to "9.0.50.DATE-git".
237
77c2dba3
TT
2382019-10-03 Tom Tromey <tom@tromey.com>
239
240 PR rust/24976:
241 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
242
179aed7f
AB
2432019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
246 cp_search_name_hash.
247 * NEWS: Add entry about nested function support.
248
0a4b0913
AB
2492019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
250 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
253 for nested static variables when searchin VAR_DOMAIN.
254 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
255 global scope, update comment.
256 (add_partial_subprogram): Call add_partial_subprogram recursively
257 for nested subroutines when processinng Fortran.
258 (load_partial_dies): Process the child entities of a subprogram
259 when processing Fortran.
260 (partial_die_parent_scope): Handle building scope
261 for Fortran nested functions.
262 (process_die): Record that nested functions have a scope.
263 (new_symbol): Always record Fortran subprograms on the global
264 symbol list.
265 (determine_prefix): How to build the prefix for Fortran
266 subprograms.
267
d8c06f22
AB
2682019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
271 have just sent the thread a SIGSTOP and are waiting for it to
272 arrive.
273
a8b3b8e9
AB
2742019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * btrace.c (btrace_add_pc): Remove whitespace before the template
277 parameter in 'std::vector <...>'.
278 (parse_xml_btrace_block): Likewise.
279 (btrace_maint_decode_pt): Likewise.
280 (btrace_maint_update_packets): Likewise.
281 (btrace_maint_print_packets): Likewise.
282 * btrace.h (struct btrace_maint_info): Likewise.
283 * dwarf2read.c (struct type_unit_group): Likewise.
284 (build_type_psymtabs_reader): Likewise.
285 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
286 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
287 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
288
4d825eab
TV
2892019-10-03 Tom de Vries <tdevries@suse.de>
290
291 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
292 the first line of the help text for set/show style metadata.
293
80fd2826
TT
2942019-10-02 Tom Tromey <tromey@adacore.com>
295
296 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
297 * gdbsupport/common-inferior.c: New file.
298 * infcmd.c (startup_with_shell): Don't define.
299 * nat/fork-inferior.h (startup_with_shell): Don't declare.
300 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
301 * inferior.h (startup_with_shell): Don't declare.
302
70054538
CB
3032019-10-02 Christian Biesinger <cbiesinger@google.com>
304
305 * gdbsupport/gdb_assert.h: Include errors.h.
306 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
307
37f6a7f4
TT
3082019-10-02 Tom Tromey <tromey@adacore.com>
309
310 * NEWS: Add $_ada_exception entry.
311 * ada-lang.c (struct ada_catchpoint): Add constructor.
312 <m_kind>: New member.
313 (allocate_location_exception, re_set_exception): Remove
314 "ex" parameter.
315 (should_stop_exception): Compute $_ada_exception.
316 (check_status_exception, print_it_exception)
317 (print_one_exception, print_mention_exception): Remove
318 "ex" parameter.
319 (allocate_location_catch_exception, re_set_catch_exception)
320 (check_status_exception, print_it_catch_exception)
321 (print_one_catch_exception, print_mention_catch_exception)
322 (print_recreate_catch_exception)
323 (allocate_location_catch_exception_unhandled)
324 (re_set_catch_exception_unhandled)
325 (check_status_exception, print_it_catch_exception_unhandled)
326 (print_one_catch_exception_unhandled)
327 (print_mention_catch_exception_unhandled)
328 (print_recreate_catch_exception_unhandled)
329 (allocate_location_catch_assert, re_set_catch_assert)
330 (check_status_assert, print_it_catch_assert)
331 (print_one_catch_assert, print_mention_catch_assert)
332 (print_recreate_catch_assert)
333 (allocate_location_catch_handlers, re_set_catch_handlers)
334 (check_status_handlers, print_it_catch_handlers)
335 (print_one_catch_handlers, print_mention_catch_handlers)
336 (print_recreate_catch_handlers): Remove.
337 (create_ada_exception_catchpoint): Update.
338 (initialize_ada_catchpoint_ops): Update.
339
fccf9de1
TT
3402019-10-02 Tom Tromey <tromey@adacore.com>
341
342 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
343 (create_excep_cond_exprs): Simplify exception string computation.
344 (ada_exception_catchpoint_cond_string): Likewise.
345
4b610737
TT
3462019-10-02 Tom Tromey <tromey@adacore.com>
347
348 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
349 * ada-lang.c (lesseq_defined_than): Handle
350 LOC_STATIC.
351 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
352 parameter.
353 (dwarf2_has_info): Likewise.
354 (new_symbol): Set maybe_copied on symbol when
355 appropriate.
356 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
357 parameter.
358 <can_copy>: New member.
359 * elfread.c (record_minimal_symbol): Set maybe_copied
360 on symbol when appropriate.
361 (elf_symfile_read): Update call to dwarf2_has_info.
362 * minsyms.c (lookup_minimal_symbol_linkage): New
363 function.
364 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
365 * symtab.c (get_symbol_address, get_msymbol_address):
366 New functions.
367 * symtab.h (get_symbol_address, get_msymbol_address):
368 Declare.
369 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
370 maybe_copied.
371 (struct symbol, struct minimal_symbol) <maybe_copied>:
372 New member.
373
1dd58850
TT
3742019-10-02 Tom Tromey <tromey@adacore.com>
375
376 * source.c (struct current_source_location): New.
377 (current_source_key): New global.
378 (current_source_symtab, current_source_line)
379 (current_source_pspace): Remove.
380 (get_source_location): New function.
381 (get_current_source_symtab_and_line)
382 (set_default_source_symtab_and_line)
383 (set_current_source_symtab_and_line)
384 (clear_current_source_symtab_and_line, select_source_symtab)
385 (info_source_command, print_source_lines_base)
386 (info_line_command, search_command_helper, _initialize_source):
387 Update.
388
5c281dbb
TT
3892019-10-02 Tom Tromey <tromey@adacore.com>
390
391 * source.c (select_source_symtab): Don't call
392 decode_line_with_current_source.
393
d3d32391
AB
3942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * symtab.c (lookup_global_symbol): Search global block.
397
38583298
TT
3982019-10-02 Tom Tromey <tromey@adacore.com>
399
400 * coffread.c (process_coff_symbol): Update.
401 * dwarf2read.c (var_decode_location, new_symbol): Update.
402 * mdebugread.c (parse_symbol): Update.
403 * objfiles.c (relocate_one_symbol): Update.
404 * stabsread.c (define_symbol, fix_common_block)
405 (scan_file_globals): Update.
406 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
407 (SET_SYMBOL_VALUE_ADDRESS): New macro.
408 * xcoffread.c (process_xcoff_symbol): Update.
409
9344c18f
AA
4102019-10-02 Andreas Arnez <arnez@linux.ibm.com>
411
412 * MAINTAINERS: Update my email address.
413
df07e2c7
AB
4142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
417 std::vector.
418 (build_type_psymtabs_reader): Update for std::vector.
419 (build_type_psymtab_dependencies): Likewise.
420 * dwarf2read.h: Remove use of DEF_VEC_P.
421 (typedef sig_type_ptr): Delete.
422
554ac434
AB
4232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * btrace.c (btrace_maint_clear): Update to handle change from VEC
426 to std::vector.
427 (btrace_maint_decode_pt): Likewise, and move allocation of the
428 vector outside of the loop.
429 (btrace_maint_update_packets): Update to handle change from VEC to
430 std::vector.
431 (btrace_maint_print_packets): Likewise.
432 (maint_info_btrace_cmd): Likewise.
433 * btrace.h: Remove use of DEF_VEC_O.
434 (typedef btrace_pt_packet_s): Delete.
435 (struct btrace_maint_info) <packets>: Change fromm VEC to
436 std::vector.
437 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
438
46f29a9a
AB
4392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
442 make accesses into the vector constant references.
443 (btrace_add_pc): Update for std::vector.
444 (btrace_stitch_bts): Likewise.
445 (parse_xml_btrace_block): Likewise.
446 (btrace_maint_update_packets): Likewise.
447 (btrace_maint_print_packets): Likewise.
448 (maint_info_btrace_cmd): Likewise.
449 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
450 std::vector.
451 (btrace_data::empty): Likewise.
452 (btrace_data_append): Likewise.
453 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
454 (typedef btrace_block_s): Delete.
455 (struct btrace_block): Add constructor.
456 (struct btrace_data_bts) <blocks>: Change to std::vector.
457 * nat/linux-btrace.c (perf_event_read_bts): Update for
458 std::vector.
459 (linux_read_bts): Likewise.
460
d770d56f
TT
4612019-10-01 Tom Tromey <tom@tromey.com>
462
463 * cli/cli-logging.c (show_logging_filename): Use styled_string.
464
9d636d67
TT
4652019-10-01 Tom Tromey <tom@tromey.com>
466
467 * stack.c (print_frame, info_frame_command_core): Use
468 styled_string.
469 * linux-thread-db.c (try_thread_db_load_1)
470 (try_thread_db_load_from_pdir_1): Use styled_string.
471 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
472 (auto_load_section_scripts, info_auto_load_local_gdbinit)
473 (maybe_print_unsupported_script_warning)
474 (maybe_print_script_not_found_warning): Use styled_string.
475 * ada-lang.c (user_select_syms): Use styled_string.
476
7f6aba03
TT
4772019-10-01 Tom Tromey <tom@tromey.com>
478
479 * p-lang.c (pascal_printstr): Use metadata style.
480 * value.c (show_convenience): Use metadata style.
481 * valprint.c (valprint_check_validity, val_print_optimized_out)
482 (val_print_not_saved, val_print_unavailable)
483 (val_print_invalid_address, generic_val_print, val_print)
484 (value_check_printable, val_print_array_elements): Use metadata
485 style.
486 * ui-out.h (class ui_out) <field_fmt>: New overload.
487 <do_field_fmt>: Add style parameter.
488 * ui-out.c (ui_out::field_fmt): New overload.
489 * typeprint.c (type_print_unknown_return_type)
490 (val_print_not_allocated, val_print_not_associated): Use metadata
491 style.
492 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
493 parameter.
494 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
495 * tracepoint.c (tvariables_info_1): Use metadata style.
496 * stack.c (print_frame_arg, print_frame_info, print_frame)
497 (info_frame_command_core): Use metadata style.
498 * skip.c (info_skip_command): Use metadata style.
499 * rust-lang.c (rust_print_enum): Use metadata style.
500 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
501 metadata style.
502 * python/py-framefilter.c (py_print_single_arg): Use metadata
503 style.
504 * printcmd.c (do_one_display, print_variable_and_value): Use
505 metadata style.
506 * p-valprint.c (pascal_val_print)
507 (pascal_object_print_value_fields): Use metadata style.
508 * p-typeprint.c (pascal_type_print_base): Use metadata style.
509 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
510 parameter.
511 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
512 * m2-valprint.c (m2_print_long_set): Use metadata style.
513 * m2-typeprint.c (m2_print_type): Use metadata style.
514 * infcmd.c (print_return_value_1): Use metadata style.
515 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
516 * f-valprint.c (info_common_command_for_block): Use metadata
517 style.
518 * f-typeprint.c (f_type_print_base): Use metadata style.
519 * expprint.c (print_subexp_standard): Use metadata style.
520 * cp-valprint.c (cp_print_value_fields): Use metadata style.
521 * cli/cli-style.h (class cli_style_option): Add constructor.
522 (metadata_style): Declare.
523 * cli/cli-style.c (metadata_style): New global.
524 (_initialize_cli_style): Register metadata style.
525 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
526 parameter.
527 * cli-out.c (cli_ui_out::do_field_fmt): Update.
528 * c-typeprint.c (c_type_print_base_struct_union)
529 (c_type_print_base_1): Use metadata style.
530 * breakpoint.c (watchpoint_value_print)
531 (print_one_breakpoint_location): Use metadata style.
532 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
533 style.
534 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
535 style.
536 * ada-valprint.c (val_print_packed_array_elements, printstr)
537 (print_field_values, ada_val_print_ref, ada_val_print): Use
538 metadata style.
539 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
540 style.
541 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
542 style.
543 * ada-lang.c (user_select_syms): Use metadata style.
544
14309bb6
TT
5452019-10-01 Tom Tromey <tom@tromey.com>
546
547 * cli/cli-cmds.c (pwd_command): Style output.
548
6a831f06
PA
5492019-10-01 Pedro Alves <palves@redhat.com>
550 Tom Tromey <tom@tromey.com>
551
552 * symtab.c (print_symbol_info): Use %ps.
553 (print_msymbol_info): Use %ps.
554 * symfile.c (symbol_file_add_with_addrs): Use %ps.
555 * printcmd.c (print_variable_and_value): Use %ps.
556 * macrocmd.c (show_pp_source_pos): Use %ps.
557 * infrun.c (print_exited_reason): Use ui_out::message.
558 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
559 (describe_other_breakpoints): Use ui_out::message and new
560 formats.
561 (say_where): Use new formats.
562 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
563 and new formats.
564
2a3c1174
PA
5652019-10-01 Pedro Alves <palves@redhat.com>
566 Tom Tromey <tom@tromey.com>
567
568 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
569 (test_gdb_formats): New function.
570 (run_tests): Call it.
571 (test_format_specifier): Update.
572 * utils.h (fputs_filtered): Update comment.
573 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
574 (fputs_styled_unfiltered): Declare.
575 * utils.c (fputs_styled_unfiltered): New function.
576 (vfprintf_maybe_filtered): Add gdbfmt parameter.
577 (vfprintf_filtered): Update.
578 (vfprintf_unfiltered, vprintf_filtered): Update.
579 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
580 * ui-out.h (enum ui_out_flag) <unfiltered_output,
581 disallow_ui_out_field>: New constants.
582 (enum class field_kind): New.
583 (struct base_field_s, struct signed_field_s): New.
584 (signed_field): New function.
585 (struct string_field_s): New.
586 (string_field): New function.
587 (struct styled_string_s): New.
588 (styled_string): New function.
589 (class ui_out) <message>: Add comment.
590 <vmessage, call_do_message>: New methods.
591 <do_message>: Add style parameter.
592 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
593 methods.
594 (ui_out::message): Rewrite.
595 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
596 parameter.
597 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
598 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
599 gdb_extensions parameter.
600 (class format_piece): Add parameter to constructor.
601 (n_int_args): New field.
602 * gdbsupport/format.c (format_pieces::format_pieces): Add
603 gdb_extensions parameter. Handle '*'.
604 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
605 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
606 vfprintf_styled_no_gdbfmt.
607 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
608 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
609 unfiltered output.
610 * ui-style.h (struct ui_file_style) <ptr>: New method.
611
0dfe5bfb
TT
6122019-10-01 Tom Tromey <tom@tromey.com>
613
614 * unittests/format_pieces-selftests.c: Update. Add final format.
615 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
616 empty literal pieces.
617
e43b10e1
TT
6182019-10-01 Tom Tromey <tom@tromey.com>
619
620 * ui-out.h (enum class ui_out_style_kind): Remove.
621 (class ui_out) <field_string, field_stsream, do_field_string>:
622 Change type of "style".
623 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
624 (ui_out::field_string): Update.
625 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
626 of "style".
627 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
628 * tracepoint.c (print_one_static_tracepoint_marker): Update.
629 * stack.c (print_frame_arg, print_frame_info, print_frame):
630 Update.
631 * source.c (print_source_lines_base): Update.
632 * solib.c (info_sharedlibrary_command): Update.
633 * skip.c (info_skip_command): Update.
634 * record-btrace.c (btrace_call_history_src_line)
635 (btrace_call_history): Update.
636 * python/py-framefilter.c (py_print_frame): Update.
637 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
638 "style".
639 * mi/mi-out.c (mi_ui_out::do_table_header)
640 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
641 (mi_ui_out::do_field_string): Update.
642 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
643 Update.
644 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
645 "style".
646 * cli-out.c (cli_ui_out::do_table_header)
647 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
648 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
649 (cli_ui_out::do_field_fmt): Update.
650 * breakpoint.c (print_breakpoint_location): Update.
651 (update_static_tracepoint): Update.
652
cd7c32c3
PW
6532019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
654
655 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
656 conversion of gdb_datadir.
657 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
658 remove not needed c_str ().
659
8fe0f950
AT
6602019-09-30 Ali Tamur <tamur@google.com>
661
662 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
663 (dwarf2_string_attr): Likewise.
664
5f48f8f3
AT
6652019-09-30 Ali Tamur <tamur@google.com>
666
667 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
668 (process_full_type_unit): Likewise.
669 (dump_die_shallow): Likewise.
670 (cu_debug_loc_section): Likewise.
671
6fb08628
CB
6722019-09-28 Christian Biesinger <cbiesinger@google.com>
673
674 * minsyms.c (compare_minimal_symbols): Rename to...
675 (minimal_symbol_is_less_than): ...this, and adjust to STL
676 conventions (return bool, take arguments as references)
677 (minimal_symbol_reader::install): Call std::sort instead
678 of qsort.
679
c7ee338a
CB
6802019-09-29 Christian Biesinger <cbiesinger@google.com>
681
682 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
683 hash and why.
684 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
685 msymbol_hash, msymbol_demangled_hash>: Improve comments.
686
703a86c2
SM
6872019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
690 * psympriv.h (add_psymbol_to_list): Move comment here and update
691 it.
692
0df0352a
TV
6932019-09-29 Tom de Vries <tdevries@suse.de>
694
695 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
696 Use $tmpdir/$(basename "$output_file").dwz instead of
697 "${output_file}.dwz".
698
ad75efa6
SM
6992019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
700
701 PR gdb/25045
702 * hppa-linux-nat.c: Include gdbarch.h.
703
ececd218
CB
7042019-09-26 Christian Biesinger <cbiesinger@google.com>
705
706 * blockframe.c (find_pc_partial_function): Change return type to bool.
707 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
708 * minsyms.c (in_gnu_ifunc_stub): Likewise.
709 (stub_gnu_ifunc_resolve_name): Likewise.
710 * symtab.c (compare_filenames_for_search): Likewise.
711 (compare_glob_filenames_for_search): Likewise.
712 (matching_obj_sections): Likewise.
713 (symbol_matches_domain): Likewise.
714 (find_line_symtab): Change out param EXACT_MATCH to bool *.
715 (find_line_pc): Change return type to bool.
716 (find_line_pc_range): Likewise.
717 (producer_is_realview): Likewise.
718 * symtab.h (symbol_matches_domain): Likewise.
719 (find_pc_partial_function): Likewise.
720 (find_pc_line_pc_range): Likewise.
721 (in_gnu_ifunc_stub): Likewise.
722 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
723 (find_line_pc): Likewise.
724 (find_line_pc_range): Likewise.
725 (matching_obj_sections): Likewise.
726 (find_line_symtab): Change out parameter to bool.
727 (producer_is_realview): Change return type to bool.
728 (compare_filenames_for_search): Likewise.
729 (compare_glob_filenames_for_search): Likewise.
730
27a900b8
TT
7312019-09-26 Tom Tromey <tom@tromey.com>
732
733 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
734 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
735 * gdb_usleep.h: Remove.
736 * gdb_usleep.c: Remove.
737 * utils.c: Don't include gdb_usleep.h.
738
5d63b30a
TT
7392019-09-26 Tom Tromey <tromey@adacore.com>
740
741 * python/py-type.c (type_to_type_object): Call check_typedef
742 for stub types.
743
12904d37
TT
7442019-09-26 Tom Tromey <tom@tromey.com>
745
746 * utils.h (initialize_utils): Don't declare.
747 * top.c (gdb_init): Don't call initialize_utils.
748 * utils.c (initialize_utils): Remove. Move contents...
749 (_initialize_utils): ... here.
750
858f25f0
TT
7512019-09-25 Tom Tromey <tom@tromey.com>
752
753 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
754 * utils.h (make_hex_string): Don't declare.
755 * utils.c (make_hex_string): Remove.
756
3d435220
TV
7572019-09-24 Tom de Vries <tdevries@suse.de>
758
759 PR gdb/23815
760 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
761 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
762
ddd44b70
DD
7632019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
764
765 * NEWS: Mention new simulator port for PRU.
766
f945dedf
CB
7672019-09-23 Christian Biesinger <cbiesinger@google.com>
768
769 * ada-exp.y (write_object_remaining): Update.
770 * ada-lang.c (ada_decode): Return a std::string instead of a char*
771 and eliminate the static buffer.
772 (ada_decode_symbol): Update.
773 (ada_la_decode): Update.
774 (ada_sniff_from_mangled_name): Update.
775 (is_valid_name_for_wild_match): Update.
776 (ada_lookup_name_info::matches): Update and simplify.
777 (name_matches_regex): Update.
778 (ada_add_global_exceptions): Update.
779 * ada-lang.h (ada_decode): Update signature.
780 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
781 * dwarf-index-write.c (debug_names::insert): Update.
782
7ab78ccb
SM
7832019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
786 formatting.
787
9252448b
SM
7882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
791 Change "nonzero" to "true" in documentation.
792
626ca2c0
CB
7932019-09-20 Christian Biesinger <cbiesinger@google.com>
794
795 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
796 (_initialize_darwin_solib): Don't set
797 darwin_so_ops.lookup_lib_global_symbol.
798 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
799 set_gdbarch_iterate_over_objfiles_in_search_order.
800 (elf_lookup_lib_symbol): Rename to...
801 (svr4_iterate_over_objfiles_in_search_order): this, and update
802 to iterate semantics.
803 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
804 * solib.c (solib_global_lookup): Remove.
805 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
806 (solib_global_lookup): Remove.
807 * symtab.c (lookup_global_or_static_symbol): Remove call to
808 solib_global_lookup.
809
5a3a0d63
JB
8102019-09-20 Joel Brobecker <brobecker@adacore.com>
811
812 * NEWS: Move entries about default MI version now being
813 version 3, and about the GDB/MI fix for multi-location
814 breakpoints to the "since GDB 8.3" section.
815
ffea1427
JB
8162019-09-20 Joel Brobecker <brobecker@adacore.com>
817
818 GDB 8.3.1 released.
819
abf516c6
UW
8202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
821
822 * NEWS: Mention that Cell/B.E. debugging support was removed.
823 * MAINTAINERS: Remove spu target.
824
825 * config/djgpp/fnchange.lst: Remove entries for removed files.
826
827 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
828 spu-multiarch.o, and spu-tdep.o.
829 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
830 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
831 spu-multiarch.c, and spu-tdep.c.
832 * spu-linux-nat.c: Remove file.
833 * spu-multiarch.c: Remove file.
834 * spu-tdep.c: Remove file.
835 * spu-tdep.h: Remove file.
836 * solib-spu.c: Remove file.
837 * solib-spu.h: Remove file.
838
839 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
840 * configure.nat (spu-linux): Remove.
841 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
842 solib-multiarch.o from gdb_target_obs.
843 (spu*-*-*): Remove.
844
845 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
846 feature flag.
847 (ppc_linux_no_features): Update.
848 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
849 Cell/B.E. support.
850 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
851 (tdesc_powerpc_cell64l): Likewise.
852 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
853 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
854 Cell/B.E. support.
855 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
856 Do not include "features/rs6000/powerpc-cell32l.c" or
857 "features/rs6000/powerpc-cell64l.c".
858 (ppc_linux_spu_section): Remove.
859 (ppc_linux_core_read_description): Remove Cell/B.E. support.
860 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
861 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
862 (ppc_linux_spe_context_lookup): Remove.
863 (ppc_linux_spe_context_inferior_created): Remove.
864 (ppc_linux_spe_context_solib_loaded): Remove.
865 (ppc_linux_spe_context_solib_unloaded): Remove.
866 (ppc_linux_spe_context): Remove.
867 (struct ppu2spu_cache): Remove.
868 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
869 (struct ppu2spu_data): Remove.
870 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
871 ppu2spu_unwind): Remove.
872 (ppc_linux_init_abi): Remove Cell/B.E. support.
873 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
874
875 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
876 (rs6000/powerpc-cell64l-expedite): Likewise
877 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
878 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
879 rs6000/powerpc-cell64l.xml.
880 * features/rs6000/powerpc-cell32l.xml: Remove.
881 * features/rs6000/powerpc-cell64l.xml: Likewise.
882 * features/rs6000/powerpc-cell32l.c: Remove generated file.
883 * features/rs6000/powerpc-cell64l.c: Likewise.
884 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
885 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
886 * regformats/reg-spu.dat: Remove.
887
888 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
889 * corelow.c (struct spuid_list): Remove.
890 (add_to_spuid_list): Remove.
891 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
892 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
893 (remote_protocol_features): Remove associated entries.
894 (_initialize_remote): No longer initialize them.
895 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
896 * linux-nat.c (SPUFS_MAGIC): Remove.
897 (linux_proc_xfer_spu): Remove.
898 (spu_enumerate_spu_ids): Remove.
899 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
900 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
901 (linux_make_corefile_notes): No longer call it.
902
903 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
904 (cooked_write_test): Likewise.
905
78e8cb91
TT
9062019-09-20 Tom Tromey <tom@tromey.com>
907
908 * NEWS: Mention case-sensitivity of TUI commands.
909 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
910 (tui_set_win_height_command, parse_scrolling_args): Likewise.
911 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
912
f074b67e
TT
9132019-09-20 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-source.c (tui_source_window::set_contents): Use
916 make_unique_xstrdup.
917 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
918 make_unique_xstrdup.
919
63c4bf19
TT
9202019-09-20 Tom Tromey <tom@tromey.com>
921
922 * tui/tui-data.c: Remove separator comments.
923 * tui/tui-layout.c: Remove separator comments.
924 * tui/tui-win.c: Remove separator comments.
925 * tui/tui-wingeneral.c: Remove separator comments.
926
43df9b2f
TT
9272019-09-20 Tom Tromey <tom@tromey.com>
928
929 * tui/tui.h (strcat_to_buf): Don't declare.
930 * tui/tui.c (strcat_to_buf): Remove.
931
7226433c
TT
9322019-09-20 Tom Tromey <tom@tromey.com>
933
934 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
935 from "fullname".
936 * tui/tui-source.c (tui_source_window::set_contents)
937 (tui_source_window::location_matches_p)
938 (tui_source_window::maybe_update): Update.
939
80df3337
TT
9402019-09-20 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
943 Update.
944 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
945 prefix.
946 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
947 (tui_data_window::line_from_reg_element_no)
948 (tui_data_window::first_reg_element_no_inline)
949 (tui_data_window::show_registers)
950 (tui_data_window::show_register_group)
951 (tui_data_window::display_registers_from)
952 (tui_data_window::display_registers_from_line)
953 (tui_data_window::first_data_item_displayed)
954 (tui_data_window::delete_data_content_windows)
955 (tui_data_window::erase_data_content)
956 (tui_data_window::do_scroll_vertical)
957 (tui_data_window::refresh_window)
958 (tui_data_window::check_register_values): Update.
959
9923f347
TT
9602019-09-20 Tom Tromey <tom@tromey.com>
961
962 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
963 (struct tui_locator_window) <full_name, proc_name>: Now
964 std::string.
965 * tui/tui-stack.c (tui_locator_window::make_status_line)
966 (tui_locator_window::set_locator_fullname)
967 (tui_locator_window::set_locator_info): Update.
968 * tui/tui-source.c (tui_source_window::set_contents)
969 (tui_source_window::showing_source_p): Update.
970
b76251ab
TT
9712019-09-20 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
974 Don't call tui_locator_win_info_ptr.
975
0891be08
TT
9762019-09-20 Tom Tromey <tom@tromey.com>
977
978 * tui/tui-win.c (tui_resize_all): Don't call refresh.
979
1b935acf
TT
9802019-09-20 Tom Tromey <tom@tromey.com>
981
982 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
983 height for locator.
984 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
985 * tui/tui-layout.c (show_source_disasm_command, show_data)
986 (show_source_or_disasm_and_command): Use 1 as height for locator.
987
9abd8a65
TT
9882019-09-20 Tom Tromey <tom@tromey.com>
989
990 * tui/tui.c (tui_enable): Update.
991 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
992 Update.
993 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
994 Update.
995 * tui/tui-data.c (win_resized): Now bool.
996 (tui_win_resized): Return bool.
997 (tui_set_win_resized_to): Accept a bool.
998
b5457826
TT
9992019-09-20 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1002 Change type of "refresh_values_only".
1003 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1004 type of "refresh_values_only".
1005
6b915f7d
TT
10062019-09-20 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1009 std::string.
1010 (tui_disassemble): Add "pos" parameter.
1011 (tui_disasm_window::set_contents): Simplify.
1012
2ad52f6f
TT
10132019-09-20 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-winsource.h (struct tui_source_window_base)
1016 <show_source_content>: Now private.
1017 * tui/tui-winsource.c
1018 (tui_source_window_base::show_source_content): Don't handle empty
1019 content case.
1020
b3b1bde6
TT
10212019-09-20 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-layout.c (show_source_disasm_command)
1024 (show_source_or_disasm_and_command): Don't call
1025 show_source_content.
1026
71a25ed2
TT
10272019-09-20 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1030 Declare.
1031 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1032 from tui_make_status_line.
1033 (tui_locator_window::rerender): Update.
1034
f8532154
TT
10352019-09-20 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1038 (tui_locator_window::rerender): Update.
1039
2d81b349
TT
10402019-09-20 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-winsource.h (struct tui_source_window_base)
1043 <~tui_source_window_base>: Don't declare.
1044 <fullname>: Remove.
1045 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1046 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1047 member.
1048 * tui/tui-source.c (tui_source_window::set_contents): Update.
1049 (tui_source_window::location_matches_p)
1050 (tui_source_window::maybe_update): Update.
1051
f14bec58
TT
10522019-09-20 Tom Tromey <tom@tromey.com>
1053
1054 * tui/tui-winsource.h (~tui_source_element): Remove.
1055 (tui_source_element): Update.
1056 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1057 * tui/tui-winsource.c (tui_show_source_line): Update.
1058 * tui/tui-source.c (tui_source_window::set_contents): Update.
1059 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1060
78d5933a
TT
10612019-09-20 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1064 declare.
1065 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1066 tui_clear_source_windows_detail.
1067 * tui/tui-winsource.h (struct tui_source_window_base)
1068 <clear_detail>: Don't declare.
1069 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1070 Remove.
1071 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1072
d4207696
TT
10732019-09-20 Tom Tromey <tromey@adacore.com>
1074
1075 PR ada/24919:
1076 * block.c (contained_in): Fix final return value.
1077
00f93c44
AM
10782019-09-20 Alan Modra <amodra@gmail.com>
1079
1080 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1081 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1082 (read_indirect_string_from_dwz): Use bfd accessor.
1083 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1084 * machoread.c (macho_symfile_read_all_oso): Likewise.
1085 * solib.c (solib_bfd_open): Likewise.
1086
e4153ae6
CB
10872019-09-19 Christian Biesinger <cbiesinger@google.com>
1088
1089 * eval.c: Move declaration of overload_resolution to...
1090 * value.h: ...here.
1091
c7ae7675
CB
10922019-09-19 Christian Biesinger <cbiesinger@google.com>
1093
1094 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1095 * arm-linux-tdep.c: Likewise.
1096 * arm-nbsd-nat.c: Likewise.
1097 * arm-tdep.h: Declare arm_apcs_32.
1098 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1099
e86f08d2
CB
11002019-09-19 Christian Biesinger <cbiesinger@google.com>
1101
1102 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1103 * dwarf2read.h: Declare dwarf_always_disassemble.
1104
f64e2f40
TV
11052019-09-19 Tom de Vries <tdevries@suse.de>
1106
1107 PR gdb/25009
1108 * source-cache.c (source_cache::ensure): Catch exception thrown during
1109 construction of the highlighter.
1110
fd361982
AM
11112019-09-18 Alan Modra <amodra@gmail.com>
1112
1113 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1114 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1115 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1116 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1117 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1118 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1119 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1120 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1121 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1122 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1123 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1124 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1125 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1126 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1127 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1128 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1129 * mi/mi-interp.c: Update throughout for bfd section macro and
1130 function changes.
1131 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1132 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1133
11061048
TT
11342019-09-18 Tom Tromey <tom@tromey.com>
1135
1136 * NEWS: Add entry.
1137 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1138 call rl_initialize.
1139 (tui_enable): Do not call rl_initialize.
1140
7a27b85f
CG
11412019-09-18 Christian Groessler <chris@groessler.org>
1142
1143 * alpha-linux-nat.c: Include gdbarch.h.
1144
f64eea3a
SM
11452019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * ui-file.c: Include cli/cli-style.h.
1148 (term_cli_styling): Remove cli_styling declaration.
1149
e6f7f6d1
AM
11502019-09-18 Alan Modra <amodra@gmail.com>
1151
1152 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1153 to bfd_asymbol_section.
1154
1d38e9d1
AM
11552019-09-18 Alan Modra <amodra@gmail.com>
1156
1157 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1158 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1159 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1160
90d92a63
AM
11612019-09-18 Alan Modra <amodra@gmail.com>
1162
1163 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1164 * spu-linux-nat.c (spu_bfd_open): Likewise.
1165
a3d181d2
CB
11662019-09-18 Christian Biesinger <cbiesinger@google.com>
1167
1168 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1169 to bool to match definition in dwarf2read.c.
1170
491144b5
CB
11712019-09-17 Christian Biesinger <cbiesinger@google.com>
1172
1173 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1174 (print_signatures): Likewise.
1175 (trust_pad_over_xvs): Likewise.
1176 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1177 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1178 * arm-linux-nat.c (arm_apcs_32): Likewise.
1179 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1180 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1181 * arm-tdep.c (arm_debug): Likewise.
1182 (arm_apcs_32): Likewise.
1183 * auto-load.c (debug_auto_load): Likewise.
1184 (auto_load_gdb_scripts): Likewise.
1185 (global_auto_load): Likewise.
1186 (auto_load_local_gdbinit): Likewise.
1187 (auto_load_local_gdbinit_loaded): Likewise.
1188 * auto-load.h (global_auto_load): Likewise.
1189 (auto_load_local_gdbinit): Likewise.
1190 (auto_load_local_gdbinit_loaded): Likewise.
1191 * breakpoint.c (disconnected_dprintf): Likewise.
1192 (breakpoint_proceeded): Likewise.
1193 (automatic_hardware_breakpoints): Likewise.
1194 (always_inserted_mode): Likewise.
1195 (target_exact_watchpoints): Likewise.
1196 (_initialize_breakpoint): Update.
1197 * breakpoint.h (target_exact_watchpoints): Change to bool.
1198 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1199 * cli/cli-cmds.c (trace_commands): Likewise.
1200 * cli/cli-cmds.h (trace_commands): Likewise.
1201 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1202 to bool*.
1203 * cli/cli-logging.c (logging_overwrite): Change to bool.
1204 (logging_redirect): Likewise.
1205 (debug_redirect): Likewise.
1206 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1207 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1208 to bool.
1209 <boolean_option_def>: Update.
1210 (struct flag_option_def): Change default type of Context to bool
1211 from int.
1212 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1213 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1214 (get_setshow_command_value_string): Likewise.
1215 * cli/cli-style.c (cli_styling): Change to bool.
1216 (source_styling): Likewise.
1217 * cli/cli-style.h (source_styling): Likewise.
1218 (cli_styling): Likewise.
1219 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1220 to bool.
1221 * command.h (var_types): Update comment.
1222 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1223 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1224 bool.
1225 (debug_compile_cplus_scopes): Likewise.
1226 * compile/compile-internal.h (compile_debug): Likewise.
1227 * compile/compile.c (compile_debug): Likewise.
1228 (struct compile_options) <raw>: Likewise.
1229 * cp-support.c (catch_demangler_crashes): Likewise.
1230 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1231 (usr_cmd_cris_dwarf2_cfi): Likewise.
1232 * csky-tdep.c (csky_debug): Likewise.
1233 * darwin-nat.c (enable_mach_exceptions): Likewise.
1234 * dcache.c (dcache_enabled_p): Likewise.
1235 * defs.h (info_verbose): Likewise.
1236 * demangle.c (demangle): Likewise.
1237 (asm_demangle): Likewise.
1238 * dwarf-index-cache.c (debug_index_cache): Likewise.
1239 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1240 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1241 * dwarf2read.c (check_physname): Likewise.
1242 (use_deprecated_index_sections): Likewise.
1243 (dwarf_always_disassemble): Likewise.
1244 * eval.c (overload_resolution): Likewise.
1245 * event-top.c (set_editing_cmd_var): Likewise.
1246 (exec_done_display_p): Likewise.
1247 * event-top.h (set_editing_cmd_var): Likewise.
1248 (exec_done_display_p): Likewise.
1249 * exec.c (write_files): Likewise.
1250 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1251 (debug_fbsd_nat): Likewise.
1252 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1253 Likewise.
1254 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1255 <backtrace_past_entry> Likewise.
1256 * gdb-demangle.h (demangle): Likewise.
1257 (asm_demangle): Likewise.
1258 * gdb_bfd.c (bfd_sharing): Likewise.
1259 * gdbcore.h (write_files): Likewise.
1260 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1261 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1262 * gdbthread.h (print_thread_events): Likewise.
1263 * gdbtypes.c (opaque_type_resolution): Likewise.
1264 (strict_type_checking): Likewise.
1265 * gnu-nat.c (gnu_debug_flag): Likewise.
1266 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1267 * guile/scm-param.c (pascm_variable): Add boolval.
1268 (add_setshow_generic): Update.
1269 (pascm_param_value): Update.
1270 (pascm_set_param_value_x): Update.
1271 * hppa-tdep.c (hppa_debug): Change to bool..
1272 * infcall.c (may_call_functions_p): Likewise.
1273 (coerce_float_to_double_p): Likewise.
1274 (unwind_on_signal_p): Likewise.
1275 (unwind_on_terminating_exception_p): Likewise.
1276 * infcmd.c (startup_with_shell): Likewise.
1277 * inferior.c (print_inferior_events): Likewise.
1278 * inferior.h (startup_with_shell): Likewise.
1279 (print_inferior_events): Likewise.
1280 * infrun.c (step_stop_if_no_debug): Likewise.
1281 (detach_fork): Likewise.
1282 (debug_displaced): Likewise.
1283 (disable_randomization): Likewise.
1284 (non_stop): Likewise.
1285 (non_stop_1): Likewise.
1286 (observer_mode): Likewise.
1287 (observer_mode_1): Likewise.
1288 (set_observer_mode): Update.
1289 (sched_multi): Change to bool.
1290 * infrun.h (debug_displaced): Likewise.
1291 (sched_multi): Likewise.
1292 (step_stop_if_no_debug): Likewise.
1293 (non_stop): Likewise.
1294 (disable_randomization): Likewise.
1295 * linux-tdep.c (use_coredump_filter): Likewise.
1296 (dump_excluded_mappings): Likewise.
1297 * linux-thread-db.c (auto_load_thread_db): Likewise.
1298 (check_thread_db_on_load): Likewise.
1299 * main.c (captured_main_1): Update.
1300 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1301 xx2_opt, boolean_opt>: Change to bool.
1302 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1303 * maint.c (maintenance_profile_p): Likewise.
1304 (per_command_time): Likewise.
1305 (per_command_space): Likewise.
1306 (per_command_symtab): Likewise.
1307 * memattr.c (inaccessible_by_default): Likewise.
1308 * mi/mi-main.c (mi_async): Likewise.
1309 (mi_async_1): Likewise.
1310 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1311 * nat/fork-inferior.h (startup_with_shell): Likewise.
1312 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1313 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1314 * nios2-tdep.c (nios2_debug): Likewise.
1315 * or1k-tdep.c (or1k_debug): Likewise.
1316 * parse.c (parser_debug): Likewise.
1317 * parser-defs.h (parser_debug): Likewise.
1318 * printcmd.c (print_symbol_filename): Likewise.
1319 * proc-api.c (procfs_trace): Likewise.
1320 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1321 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1322 (set_parameter_value): Update.
1323 (add_setshow_generic): Update.
1324 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1325 to bool*.
1326 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1327 int*.
1328 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1329 * record-btrace.c (record_btrace_target::store_registers): Update.
1330 * record-full.c (record_full_memory_query): Change to bool.
1331 (record_full_stop_at_limit): Likewise.
1332 * record-full.h (record_full_memory_query): Likewise.
1333 * remote-notif.c (notif_debug): Likewise.
1334 * remote-notif.h (notif_debug): Likewise.
1335 * remote.c (use_range_stepping): Likewise.
1336 (interrupt_on_connect): Likewise.
1337 (remote_break): Likewise.
1338 * ser-tcp.c (tcp_auto_retry): Likewise.
1339 * ser-unix.c (serial_hwflow): Likewise.
1340 * skip.c (debug_skip): Likewise.
1341 * solib-aix.c (solib_aix_debug): Likewise.
1342 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1343 (spu_auto_flush_cache_p): Likewise.
1344 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1345 Likewise.
1346 (struct info_print_options) <quiet>: Likewise.
1347 * symfile-debug.c (debug_symfile): Likewise.
1348 * symfile.c (auto_solib_add): Likewise.
1349 (separate_debug_file_debug): Likewise.
1350 * symfile.h (auto_solib_add): Likewise.
1351 (separate_debug_file_debug): Likewise.
1352 * symtab.c (basenames_may_differ): Likewise.
1353 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1354 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1355 (struct info_types_options) <quiet>: Likewise.
1356 * symtab.h (demangle): Likewise.
1357 (basenames_may_differ): Likewise.
1358 * target-dcache.c (stack_cache_enabled_1): Likewise.
1359 (code_cache_enabled_1): Likewise.
1360 * target.c (trust_readonly): Likewise.
1361 (may_write_registers): Likewise.
1362 (may_write_memory): Likewise.
1363 (may_insert_breakpoints): Likewise.
1364 (may_insert_tracepoints): Likewise.
1365 (may_insert_fast_tracepoints): Likewise.
1366 (may_stop): Likewise.
1367 (auto_connect_native_target): Likewise.
1368 (target_stop_and_wait): Update.
1369 (target_async_permitted): Change to bool.
1370 (target_async_permitted_1): Likewise.
1371 (may_write_registers_1): Likewise.
1372 (may_write_memory_1): Likewise.
1373 (may_insert_breakpoints_1): Likewise.
1374 (may_insert_tracepoints_1): Likewise.
1375 (may_insert_fast_tracepoints_1): Likewise.
1376 (may_stop_1): Likewise.
1377 * target.h (target_async_permitted): Likewise.
1378 (may_write_registers): Likewise.
1379 (may_write_memory): Likewise.
1380 (may_insert_breakpoints): Likewise.
1381 (may_insert_tracepoints): Likewise.
1382 (may_insert_fast_tracepoints): Likewise.
1383 (may_stop): Likewise.
1384 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1385 (make_thread_apply_all_options_def_group): Change argument from int*
1386 to bool*.
1387 (thread_apply_all_command): Update.
1388 (print_thread_events): Change to bool.
1389 * top.c (confirm): Likewise.
1390 (command_editing_p): Likewise.
1391 (history_expansion_p): Likewise.
1392 (write_history_p): Likewise.
1393 (info_verbose): Likewise.
1394 * top.h (confirm): Likewise.
1395 (history_expansion_p): Likewise.
1396 * tracepoint.c (disconnected_tracing): Likewise.
1397 (circular_trace_buffer): Likewise.
1398 * typeprint.c (print_methods): Likewise.
1399 (print_typedefs): Likewise.
1400 * utils.c (debug_timestamp): Likewise.
1401 (sevenbit_strings): Likewise.
1402 (pagination_enabled): Likewise.
1403 * utils.h (sevenbit_strings): Likewise.
1404 (pagination_enabled): Likewise.
1405 * valops.c (overload_resolution): Likewise.
1406 * valprint.h (struct value_print_options) <prettyformat_arrays,
1407 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1408 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1409 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1410 Likewise.
1411 * windows-nat.c (new_console): Likewise.
1412 (cygwin_exceptions): Likewise.
1413 (new_group): Likewise.
1414 (debug_exec): Likewise.
1415 (debug_events): Likewise.
1416 (debug_memory): Likewise.
1417 (debug_exceptions): Likewise.
1418 (useshell): Likewise.
1419 * windows-tdep.c (maint_display_all_tib): Likewise.
1420 * xml-support.c (debug_xml): Likewise.
1421
f1b620e9
MG
14222019-09-17 Mike Gulick <mgulick@mathworks.com>
1423
1424 * source.c (prepare_path_for_appending): New function.
1425 (openp): Make use of new function.
1426 (find_and_open_source): Search for the compilation directory and
1427 source file as a relative path beneath the directory search path.
1428
67f3ed6a
AB
14292019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * source-cache.c (source_cache::get_line_charpos): Catch
1432 exceptions and return false, this matches the behaviour documented
1433 in the header file.
1434
74332189
JB
14352019-09-17 Joel Brobecker <brobecker@adacore.com>
1436
1437 * ada-tasks.c (info_task): Remove quoting of the task's name.
1438
f2f24aa9
CB
14392019-09-16 Christian Biesinger <cbiesinger@google.com>
1440
1441 * symfile.c (auto_solib_add): Replace comment with a reference
1442 to the header file.
1443
6a062a93
CB
14442019-09-14 Christian Biesinger <cbiesinger@google.com>
1445
1446 * NEWS: Mention that gdb can now be compiled with Python 3
1447 on Windows.
1448
ec6c8338
AB
14492019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * maint.c (maint_print_section_data::maint_print_section_data):
1452 Force use of 'float log10 (float)' by casting the argument to
1453 float.
1454
aa17805f
AB
14552019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * maint.c: Add 'cmath' include.
1458 (struct maint_print_section_data): New structure.
1459 (print_section_index): New function.
1460 (print_bfd_section_info): Add header comment, small whitespace
1461 cleanup, and update to call new print_section_index function.
1462 (print_objfile_section_info): Likewise.
1463 (maint_obj_section_from_bfd_section): New function.
1464 (print_bfd_section_info_maybe_relocated): New function.
1465 (maintenance_info_sections): Add header comment, always use
1466 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1467
3dd9bb46
AB
14682019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1471 inner scope, add check that the objfile has psymtabs before
1472 checking psymtabs_addrmap.
1473 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1474
4993045d
PW
14752019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1476
1477 * NEWS: Announce that Ada task names are now shown at more places,
1478 and between quotes (except in info task output).
1479 * gdb/ada-tasks.c (task_to_str): New function.
1480 (display_current_task_id): Call task_to_str.
1481 (task_command_1): Likewise.
1482 (print_ada_task_info): In non-mi mode, Properly align headers and data
1483 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1484
7a289707
RO
14852019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486
1487 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1488 prstatus.pr_lwp.pr_info instead of making it up.
1489
f2aec7f6
CB
14902019-09-11 Christian Biesinger <cbiesinger@google.com>
1491
1492 * auto-load.c (auto_load_expand_dir_vars): Update.
1493 * defs.h (gdb_datadir): Change to std::string.
1494 (python_libdir): Likewise.
1495 (relocate_gdb_directory): Change return type to std::string.
1496 * guile/guile.c (gdbscm_data_directory): Update.
1497 (initialize_scheme_side): Update.
1498 * jit.c (jit_reader_dir): Change to std::string.
1499 (jit_reader_load_command): Update.
1500 * main.c (gdb_datadir): Change to std::string.
1501 (python_libdir): Likewise.
1502 (set_gdb_data_directory): Update.
1503 (relocate_path): Change to return std::string.
1504 (relocate_gdb_directory): Change to return std::string.
1505 (relocate_gdbinit_path_maybe_in_datadir): Update.
1506 (captured_main_1): Update.
1507 * python/python.c (do_start_initialization): Update.
1508 * top.c (show_gdb_datadir): Update.
1509 * xml-syscall.c (xml_init_syscalls_info): Update.
1510 (init_syscalls_info): Update.
1511
9224a013
CB
15122019-09-11 Christian Biesinger <cbiesinger@google.com>
1513
1514 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1515 out of get_init_files.
1516 (get_init_files): Update.
1517
f48cd836
CB
15182019-09-11 Christian Biesinger <cbiesinger@google.com>
1519
1520 * main.c (get_init_files): Change to use std::string.
1521 (captured_main_1): Update.
1522 (print_gdb_help): Update.
1523
9cab7ecd
AT
15242019-09-11 Ali Tamur <tamur@google.com>
1525
1526 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1527 implementation.
1528
67547d89
CB
15292019-09-11 Christian Biesinger <cbiesinger@google.com>
1530
1531 * dbxread.c (read_dbx_symtab): Update.
1532 * dwarf2read.c (load_partial_dies): Update.
1533 * mdebugread.c (parse_partial_symbols): Update.
1534 (handle_psymbol_enumerators): Update.
1535 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1536 * psymtab.c (add_psymbol_to_bcache): Likewise.
1537 (add_psymbol_to_list): Likewise.
1538 * symtab.c (symbol_set_names): Likewise.
1539 * symtab.h (symbol_set_names): Likewise.
1540 * xcoffread.c (scan_xcoff_symtab): Update.
1541
64b2d4a0
TT
15422019-09-11 Tom Tromey <tom@tromey.com>
1543
1544 * symfile-mem.c (symbol_file_add_from_memory): Use
1545 bfd_set_filename.
1546 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1547 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1548
3b00ef10
TT
15492019-09-10 Tom Tromey <tromey@adacore.com>
1550
1551 * dwarf-index-write.c (write_psymbols): Extend error message.
1552 (debug_names::insert): Add Ada code.
1553 (debug_names::write_psymbols): Remove Ada check.
1554 (debug_names) <m_string_obstack>: New member.
1555 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1556 (gdb_index_symbol_name_matcher::matches): Remove.
1557 (mapped_index_base::find_name_components_bounds): Add "lang"
1558 parameter.
1559 (mapped_index_base::build_name_components): Also split names
1560 according to Ada syntax.
1561 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1562 type of "match_callback".
1563 (check_match, check_find_bounds_finds)
1564 (dw2_expand_symtabs_matching): Update.
1565 (dw2_debug_names_iterator): Add new constructor.
1566 (dw2_debug_names_map_matching_symbols): New function.
1567 (dw2_debug_names_expand_symtabs_matching): Update.
1568 (dwarf2_debug_names_functions): Use
1569 dw2_debug_names_map_matching_symbols.
1570
aa391654
TT
15712019-09-10 Tom Tromey <tromey@adacore.com>
1572
1573 * dwarf2read.c (dw2_get_file_names_reader): Add the
1574 CU's file name to the results.
1575
b054970d
TT
15762019-09-10 Tom Tromey <tromey@adacore.com>
1577
1578 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1579 map_matching_symbols. Update.
1580 * dwarf2read.c (dw2_map_matching_symbols): Update.
1581 * psymtab.c (match_partial_symbol): Change type; update.
1582 (psym_map_matching_symbols): Likewise.
1583 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1584 type; update.
1585 * symfile.h (struct quick_symbol_functions)
1586 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1587 Remove "match".
1588
6a3dbf1b
TT
15892019-09-10 Tom Tromey <tromey@adacore.com>
1590
1591 * psymtab.c (map_block): Remove.
1592 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1593 * symtab.c (iterate_over_symbols_terminated): New function.
1594 * symtab.c (iterate_over_symbols_terminated): Declare.
1595
6969f124
TT
15962019-09-10 Tom Tromey <tromey@adacore.com>
1597
1598 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1599 * language.h (struct language_defn) <la_iterate_over_symbols>:
1600 Return bool.
1601 * symtab.c (iterate_over_symbols): Return bool.
1602 * symtab.h (iterate_over_symbols): Return bool.
1603
199b4314
TT
16042019-09-10 Tom Tromey <tromey@adacore.com>
1605
1606 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1607 (add_nonlocal_symbols): Update.
1608 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1609 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1610 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1611 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1612 Change type of "callback". Remove "data".
1613
a084a2a6
AT
1614
16152019-09-09 Ali Tamur <tamur@google.com>
1616
1617 * dwarf2read.c (comp_unit_head): Update comment.
1618 (dwarf2_dwo_name): New function declaration.
1619 (dwarf_unit_type_name): New function declaration.
1620 (read_comp_unit_head): Add support for new compilation units,
1621 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1622 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1623 (currently named as "signature") in their header. Also clarify error
1624 messages.
1625 (lookup_dwo_id): New function. Returns the dwo id of the given
1626 compile unit.
1627 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1628 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1629 functions.
1630 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1631 (dwarf2_dwo_name): Get the dwo name if present.
1632 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1633 purposes.
1634
25a2915e
TT
16352019-09-09 Tom Tromey <tom@tromey.com>
1636
1637 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1638
e4df0874
PW
16392019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1640
1641 * python/python.c (do_start_initialization): Make progname_copy static,
1642 to avoid a leak report.
1643
8634b462
TT
16442019-09-08 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1647
c7f839cb
SM
16482019-09-07 Simon Marchi <simon.marchi@efficios.com>
1649
1650 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1651 Change type to gdb::optional<block_enum>.
1652 (dw2_symtab_iter_init): Change block_index parameter type
1653 to gdb::optional<block_enum>.
1654 (dw2_lookup_symbol): Change block_index parameter
1655 type to block_enum.c
1656 (dw2_debug_names_lookup_symbol): Likewise.
1657 * psymtab.c (psym_lookup_symbol): Likewise.
1658 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1659 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1660 Likewise.
1661
ead0e69a
CB
16622019-09-06 Christian Biesinger <cbiesinger@google.com>
1663
1664 * defs.h (relocate_gdb_directory): Change int to bool in
1665 signature and rename flag to relocatable.
1666 * main.c (relocate_path): Likewise.
1667 (relocate_gdb_directory): Likewise.
1668
b16c44de
AM
16692019-09-06 Alan Modra <amodra@gmail.com>
1670
1671 * coffread.c (coff_symfile_read): Constify filename variable.
1672 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1673 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1674 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1675 * solib.c (reload_shared_libraries_1): Likewise.
1676 * symfile.c (reread_symbols): Likewise.
1677 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1678 * solib-darwin.c (darwin_bfd_open): Likewise.
1679 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1680
06ff036e
AB
16812019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1684 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1685
4e962e74
TT
16862019-09-03 Tom Tromey <tromey@adacore.com>
1687
1688 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1689 types.
1690 (has_negatives): Unbias a range type bound.
1691 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1692 * gdbtypes.c (operator==): Handle new field.
1693 (create_range_type): Add "bias" parameter.
1694 (create_static_range_type, resolve_dynamic_range): Update.
1695 * gdbtypes.h (struct range_bounds) <bias>: New member.
1696 (create_range_type): Add bias parameter.
1697 * printcmd.c (print_scalar_formatted): Unbias range types.
1698 * value.c (unpack_long): Unbias range types.
1699 (pack_long): Bias range types.
1700
d90b8f26
AH
17012019-09-02 Alan Hayward <alan.hayward@arm.com>
1702
1703 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1704 probe arguments.
1705
fe01123e
AH
17062019-09-02 Alan Hayward <alan.hayward@arm.com>
1707
1708 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1709 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1710 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1711 (compile_probe_arg): Likewise.
1712 * probe.h (get_argument_count): Likewise.
1713 * solib-svr4.c (solib_event_probe_action): Likewise.
1714 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1715
e661ef01
AH
17162019-09-02 Alan Hayward <alan.hayward@arm.com>
1717
1718 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1719 code to here...
1720 (svr4_create_solib_event_breakpoints): ...from here.
1721
47a536d9
SDJ
17222019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1723
1724 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1725 suffix from warning message.
1726
d6a00eba
TT
17272019-08-30 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui-winsource.h (struct tui_source_window_base)
1730 <refresh_all>: Don't declare.
1731 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1732 Remove.
1733 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1734 tui_show_locator_content.
1735 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1736 declare.
1737 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1738 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1739 declare.
1740
55b2657b
TT
17412019-08-30 Tom Tromey <tom@tromey.com>
1742
1743 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1744
12a8555a
TT
17452019-08-30 Tom Tromey <tom@tromey.com>
1746
1747 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1748 Remove unnecessary forward declarations.
1749
900ac242
TT
17502019-08-30 Tom Tromey <tom@tromey.com>
1751
1752 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1753 rerender.
1754 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1755 tui_show_locator_content.
1756
99ab33fb
TT
17572019-08-30 Tom Tromey <tom@tromey.com>
1758
1759 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1760 (tui_locator_window::rerender): Rewrite using body of previous
1761 tui_show_locator_content.
1762
e594a5d1
TT
17632019-08-30 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1766 set_locator_fullname>: New methods.
1767 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1768 Rename from tui_set_locator_fullname.
1769 (tui_locator_window::set_locator_info): Rename from
1770 tui_set_locator_info. Return bool.
1771 (tui_update_locator_fullname, tui_show_frame_info): Update.
1772
715bb467
TT
17732019-08-30 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1776
772f3f03
TT
17772019-08-30 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1780 call touchwin.
1781
108e13ab
TT
17822019-08-30 Tom Tromey <tom@tromey.com>
1783
1784 * tui/tui-wingeneral.c (box_win): Assume win_info and
1785 win_info->handle cannot be NULL.
1786
cdaa6eb4
TT
17872019-08-30 Tom Tromey <tom@tromey.com>
1788
1789 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1790 refresh_window>: Declare.
1791 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1792 resize.
1793 (tui_data_item_window::rerender): Rename from
1794 tui_display_register.
1795 (tui_data_item_window::refresh_window): New method.
1796 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1797 no-op.
1798
89df7f90
TT
17992019-08-30 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1802 regs_column_count, current_group>: Move later. Now private.
1803 <get_current_group>: New method.
1804 * tui/tui-regs.c (tui_reg_command): Update.
1805 * tui/tui-layout.c (tui_set_layout): Update.
1806
1bf2866a
TT
18072019-08-30 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1810 (tui_data_window::rerender): Don't call
1811 check_and_display_highlight_if_needed.
1812 (tui_data_window::refresh_all): Remove call to
1813 erase_data_content.
1814
0670413d
TT
18152019-08-30 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1818 (tui_data_window::display_registers_from)
1819 (tui_data_window::display_reg_element_at_line)
1820 (tui_data_window::display_registers_from_line): Remove checks of
1821 "empty".
1822
18bb55c7
TT
18232019-08-30 Tom Tromey <tom@tromey.com>
1824
1825 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1826 Don't declare.
1827 * tui/tui-regs.c (tui_data_window::show_registers): Call
1828 rerender.
1829 (tui_data_window::rerender): Rename from display_all_data.
1830 (tui_data_window::rerender): Remove old implementation.
1831
1f6d2f10
TT
18322019-08-30 Tom Tromey <tom@tromey.com>
1833
1834 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1835 text.
1836 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1837
16d01f9c
BW
18382019-08-29 Bernhard Wodok <barto@gmx.net>
1839 Sergio Durigan Junior <sergiodj@redhat.com>
1840
1841 PR win32/24284
1842 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1843
d8f27c60
AB
18442019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1847 when searching for types.
1848
1f20c35e
AB
18492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * f-lang.c (f_language_defn): Use f_print_typedef.
1852 * f-lang.h (f_print_typedef): Declare.
1853 * f-typeprint.c (f_print_typedef): Define.
1854
550105b7
CB
18552019-08-27 Christian Biesinger <cbiesinger@google.com>
1856
1857 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1858
4acfdd20
AB
18592019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * cli/cli-utils.c (info_print_options_defs): Delete.
1862 (make_info_print_options_def_group): Delete.
1863 (extract_info_print_options): Delete.
1864 (info_print_command_completer): Delete.
1865 (info_print_args_help): Add extra parameter, and optionally
1866 include text about -n flag.
1867 * cli/cli-utils.h (struct info_print_options): Delete.
1868 (extract_info_print_options): Delete declaration.
1869 (info_print_command_completer): Delete declaration.
1870 (info_print_args_help): Add extra parameter, extend header
1871 comment.
1872 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1873 search_symbols.
1874 * stack.c (struct info_print_options): New type.
1875 (info_print_options_defs): New file scoped variable.
1876 (make_info_print_options_def_group): New static function.
1877 (info_print_command_completer): New static function.
1878 (info_locals_command): Update to use new local functions.
1879 (info_args_command): Likewise.
1880 (_initialize_stack): Add extra parameter to calls to
1881 info_print_args_help.
1882 * symtab.c (search_symbols): Add extra parameter, use this to
1883 possibly excluse non-debug symbols.
1884 (symtab_symbol_info): Add extra parameter, which is passed on to
1885 search_symbols.
1886 (struct info_print_options): New type.
1887 (info_print_options_defs): New file scoped variable.
1888 (make_info_print_options_def_group): New static function.
1889 (info_print_command_completer): New static function.
1890 (info_variables_command): Update to use local functions, and pass
1891 extra parameter through to symtab_symbol_info.
1892 (info_functions_command): Likewise.
1893 (info_types_command): Pass additional argument through to
1894 symtab_symbol_info.
1895 (rbreak_command): Pass extra argument to search_symbols.
1896 (_initialize_symtab): Add extra arguments for calls to
1897 info_print_args_help, and update help text for 'info variables',
1898 'whereis', and 'info functions' commands.
1899 * symtab.h (search_symbols): Add extra argument to declaration.
1900 * NEWS: Mention new flags.
1901
9aa55206
CB
19022019-08-26 Christian Biesinger <cbiesinger@google.com>
1903
1904 * symtab.c (lookup_static_symbol): Call the new function (and move
1905 it down to be next to lookup_global_symbol).
1906 (struct global_sym_lookup_data): Add block_enum member and rename to...
1907 (struct global_or_static_sym_lookup_data): ...this.
1908 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1909 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1910 (lookup_symbol_global_or_static_iterator_cb): ...this.
1911 (lookup_global_or_static_symbol): New function.
1912 (lookup_global_symbol): Call new function.
1913
5c31b358
TV
19142019-08-26 Tom de Vries <tdevries@suse.de>
1915
1916 PR c++/24852
1917 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1918 when pc_probe.prob == NULL.
1919
23c13d42
SM
19202019-08-25 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1923 variable symbol_linkage to symbol_linkage_.
1924
beadd3e8
SM
19252019-08-25 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1928 represent whether the symbol is static, dynamic, or we don't
1929 know.
1930
e3ec872f
YS
19312019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1932
1933 * gdb/rx-tdep.c (rx_register_names): New.
1934 (rx_register_name): Delete.
1935 (rx_psw_type): Delete.
1936 (rx_fpsw_type): Delete.
1937 (rx_register_type): Delete.
1938 (rx_gdbarch_init): Convert target-descriptions.
1939 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1940 * gdb/features/Makefile: Add rx.xml.
1941 * gdb/features/rx.xml: New.
1942 * gdb/features/rx.c: Generated.
1943 * gdb/NEWS: Mention target description support.
1944
d0509ba4
CB
19452019-08-22 Christian Biesinger <cbiesinger@google.com>
1946
1947 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1948 *slot_ptr.
1949
2d41fa11
SDJ
19502019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1951
1952 * configure.ac: Don't check for 'dlfcn.h' (moved to
1953 gdbsupport/common.m4).
1954 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1955 'gdbsupport/'.
1956 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1957 * compile/compile-c-support.c: Include
1958 'gdbsupport/gdb-dlfcn.h'.
1959 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1960 * gdb-dlfcn.c: Move to...
1961 * gdbsupport/gdb-dlfcn.c: ... here.
1962 * gdb-dlfcn.h: Move to...
1963 * gdbsupport/gdb-dlfcn.h: ... here.
1964
de8af808
SL
19652019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1966
1967 * nios2-tdep.c (struct reg_value): Improve comments. Make
1968 the offset field signed.
1969
27204489
CB
19702019-08-22 Christian Biesinger <cbiesinger@google.com>
1971
1972 * python/lib/gdb/__init__.py (_execute_file): New function.
1973 * python/python.c (python_run_simple_file): Call gdb._execute_file
1974 on Windows.
1975
43771869
AB
19762019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1979 all uses as this was never set to anything but a zero value.
1980
26c957f1
PA
19812019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1982
1983 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1984
c07aae6e
CB
19852019-08-21 Christian Biesinger <cbiesinger@google.com>
1986
1987 * tui/tui-data.h (tui_gen_win_info): Add an =default
1988 move constructor, required by some GCC versions.
1989
3960cb7a
JF
19902019-08-21 Jinke Fan <fanjinke51@yeah.net>
1991
1992 * go32-nat.c (go32_sysinfo): Add hygon_p.
1993
04c72a68
TT
19942019-08-20 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1997 line_from_reg_element_no, first_reg_element_no_inline,
1998 display_all_data, delete_data_content_windows,
1999 erase_data_content>: Now private.
2000
072272ce
TT
20012019-08-20 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2004 (tui_unhighlight_win, tui_highlight_win)
2005 (tui_win_info::make_window): Update.
2006 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2007
973961bd
TT
20082019-08-20 Tom Tromey <tom@tromey.com>
2009
2010 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2011 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2012 (MAX_PID_WIDTH): Move to tui-stack.c.
2013 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2014 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2015 (MAX_PID_WIDTH): Move from tui-data.h.
2016
ab0e1f1a
TT
20172019-08-20 Tom Tromey <tom@tromey.com>
2018
2019 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2020 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2021 (box_win): Update.
2022 (tui_gen_win_info::make_window): Rename from tui_make_window.
2023 (tui_win_info::make_window): New method.
2024 (tui_gen_win_info::make_visible): Update.
2025 * tui/tui-source.c (tui_source_window::set_contents): Update.
2026 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2027 (tui_data_window::display_registers_from): Update.
2028 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2029 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2030 Declare.
2031 <can_box>: Remove.
2032 <title>: Remove.
2033 (struct tui_win_info) <make_window>: Declare.
2034 <can_box>: Now virtual.
2035 <title>: New member.
2036 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2037 * tui/tui-command.c (tui_cmd_window::resize): Update.
2038
100c2bf3
TT
20392019-08-20 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2042 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2043 (tui_data_window::check_register_values): Update.
2044
fa4dc567
TT
20452019-08-20 Tom Tromey <tom@tromey.com>
2046
2047 * tui/tui-regs.h (struct tui_data_window): Use
2048 DISABLE_COPY_AND_ASSIGN.
2049 <regs_content>: Change type, removing unique_ptr.
2050 <tui_data_window>: Add move constructor.
2051 * tui/tui-regs.c (tui_data_window::show_registers)
2052 (tui_data_window::show_register_group)
2053 (tui_data_window::display_registers_from)
2054 (tui_data_window::display_registers_from)
2055 (tui_data_window::first_data_item_displayed)
2056 (tui_data_window::delete_data_content_windows)
2057 (tui_data_window::rerender, tui_data_window::refresh_window)
2058 (tui_data_window::check_register_values): Update.
2059
ca02d7c8
TT
20602019-08-20 Tom Tromey <tom@tromey.com>
2061
2062 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2063 show_register_group>: Declare.
2064 (tui_show_register_group): Don't declare.
2065 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2066 tui_show_registers.
2067 (tui_data_window::show_register_group): Rename from
2068 tui_show_register_group.
2069 (tui_data_window::check_register_values, tui_reg_command):
2070 Update.
2071 * tui/tui-layout.c (tui_set_layout): Update.
2072
63356bfd
TT
20732019-08-20 Tom Tromey <tom@tromey.com>
2074
2075 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2076 Declare.
2077 (tui_check_register_values): Don't declare.
2078 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2079 from tui_check_register_values.
2080 * tui/tui-hooks.c (tui_register_changed): Update.
2081
42cc14a7
TT
20822019-08-20 Tom Tromey <tom@tromey.com>
2083
2084 * tui/tui-regs.c (tui_reg_layout): Move later.
2085 (tui_show_registers): Don't enable TUI mode or change layout.
2086
b9ad3686
TT
20872019-08-20 Tom Tromey <tom@tromey.com>
2088
2089 * tui/tui-regs.h (struct tui_data_item_window)
2090 <~tui_data_item_window>: Remove.
2091 <content>: Now a unique_xmalloc_ptr.
2092 * tui/tui-regs.c (tui_register_format): Return a
2093 unique_xmalloc_ptr.
2094 (tui_get_register): Update.
2095 (~tui_data_item_window): Remove.
2096 (tui_data_window::display_registers_from, tui_display_register):
2097 Update.
2098 * tui/tui-io.h (tui_expand_tabs): Update.
2099 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2100 Remove "col" parameter.
2101
8e114aab
TT
21022019-08-20 Tom Tromey <tom@tromey.com>
2103
2104 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2105 field.
2106 * tui/tui-regs.c (~tui_data_item_window): Update.
2107
1a4f81dd
TT
21082019-08-20 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2111 earlier.
2112
0f8d8876
TT
21132019-08-20 Tom Tromey <tom@tromey.com>
2114
2115 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2116
605dc2c2
TT
21172019-08-20 Tom Tromey <tom@tromey.com>
2118
2119 * tui/tui-source.h (struct tui_source_window): Update.
2120 * tui/tui-regs.c (tui_show_registers): Update.
2121 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2122 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2123 (NO_REGS_STRING): Remove defines.
2124
aedbe3bb
CM
21252019-08-20 Conrad Meyer <cem@FreeBSD.org>
2126
2127 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2128 unnecessary thread walk if remote doesn't support the packet.
2129
7ce8f214
TT
21302019-08-19 Tom Tromey <tromey@adacore.com>
2131
2132 * python/py-value.c (value_has_field): Fix indentation.
2133
f21c2bd7
TT
21342019-08-19 Tom Tromey <tromey@adacore.com>
2135
2136 * printcmd.c (do_one_display, info_display_command): Update.
2137 * block.h (contained_in): Return bool. Add allow_nested
2138 parameter.
2139 * block.c (contained_in): Return bool. Add allow_nested
2140 parameter.
2141
d806ea2d
TT
21422019-08-19 Tom Tromey <tom@tromey.com>
2143
2144 * configure: Rebuild.
2145 * configure.ac: Disallow the combination of -static-libstdc++ and
2146 source highlight.
2147 * source-cache.c (get_language_name): Handle rust.
2148 (source_cache::get_source_lines): Ignore highlighting exceptions.
2149
398fdd60
TT
21502019-08-16 Tom Tromey <tom@tromey.com>
2151
2152 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2153 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2154 (struct tui_source_window_base) <make_visible, refresh_window,
2155 resize>: Remove methods.
2156 <execution_info>: Remove field.
2157 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2158 (tui_show_source_line, tui_source_window_base)
2159 (~tui_source_window_base): Update.
2160 (tui_source_window_base::resize)
2161 (tui_source_window_base::make_visible)
2162 (tui_source_window_base::refresh_window): Remove.
2163 (tui_source_window_base::update_exec_info): Update.
2164 * tui/tui-source.c (tui_source_window::set_contents): Update.
2165 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2166
e699d331
TT
21672019-08-16 Tom Tromey <tom@tromey.com>
2168
2169 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2170 deprecated_query_hook.
2171
bb01dbfc
TT
21722019-08-16 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2175 (tui_update_source_windows_with_line): Update.
2176 * tui/tui-source.h (struct tui_source_window)
2177 <show_symtab_source>: Declare.
2178 (tui_show_symtab_source): Don't declare.
2179 * tui/tui-source.c (tui_show_symtab_source): Rename from
2180 tui_show_symtab_source.
2181
81c82c4b
TT
21822019-08-16 Tom Tromey <tom@tromey.com>
2183
2184 * tui/tui-winsource.h (struct tui_source_window_base)
2185 <set_contents>: Declare.
2186 * tui/tui-winsource.c
2187 (tui_source_window_base::update_source_window_as_is): Update.
2188 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2189 Declare.
2190 (tui_set_source_content): Don't declare.
2191 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2192 tui_set_source_content.
2193 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2194 Declare.
2195 (tui_set_disassem_content): Don't declare.
2196 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2197 tui_set_disassem_content.
2198
2ddaf614
TT
21992019-08-16 Tom Tromey <tom@tromey.com>
2200
2201 * tui/tui-winsource.h (struct tui_source_window_base)
2202 <update_breakpoint_info>: Declare.
2203 (tui_update_breakpoint_info): Don't declare.
2204 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2205 (tui_update_all_breakpoint_info): Update.
2206 (tui_source_window_base::update_breakpoint_info): Rename from
2207 tui_update_breakpoint_info.
2208 (tui_source_window_base::update_exec_info): Update.
2209
017f9828
TT
22102019-08-16 Tom Tromey <tom@tromey.com>
2211
2212 * tui/tui-winsource.h (struct tui_source_window_base)
2213 <update_source_window>: Declare.
2214 (tui_update_source_window): Don't declare.
2215 * tui/tui-winsource.c
2216 (tui_source_window_base::update_source_window): Rename from
2217 tui_update_source_window.
2218 (tui_source_window_base::rerender): Update.
2219 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2220 * tui/tui-disasm.c (tui_show_disassem)
2221 (tui_show_disassem_and_update_source)
2222 (tui_disasm_window::maybe_update): Update.
2223
ed8358e9
TT
22242019-08-16 Tom Tromey <tom@tromey.com>
2225
2226 * tui/tui-winsource.h (struct tui_source_window_base)
2227 <update_source_window_as_is>: Declare.
2228 (tui_update_source_window_as_is): Don't declare.
2229 * tui/tui-winsource.c (tui_update_source_window): Update
2230 (tui_source_window_base::update_source_window_as_is): Rename from
2231 tui_update_source_window_as_is.
2232 (tui_source_window_base::refill): Update.
2233 * tui/tui-source.c (tui_show_symtab_source): Update.
2234 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2235 Update.
2236
20149b6b
TT
22372019-08-16 Tom Tromey <tom@tromey.com>
2238
2239 * tui/tui-winsource.h (tui_update_source_window)
2240 (tui_update_source_window_as_is): Remove "noerror" parameter.
2241 * tui/tui-winsource.c (tui_update_source_window)
2242 (tui_update_source_window_as_is): Remove "noerror" parameter.
2243 (tui_update_source_windows_with_addr)
2244 (tui_update_source_windows_with_line)
2245 (tui_source_window_base::rerender)
2246 (tui_source_window_base::refill): Update.
2247 * tui/tui-source.h (tui_set_source_content)
2248 (tui_show_symtab_source): Remove "noerror" parameter.
2249 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2250 parameter.
2251 (tui_show_symtab_source): Likewise.
2252 (tui_source_window::maybe_update): Update.
2253 * tui/tui-disasm.c (tui_show_disassem)
2254 (tui_show_disassem_and_update_source)
2255 (tui_disasm_window::do_scroll_vertical)
2256 (tui_disasm_window::maybe_update): Update.
2257
2d83e710
TT
22582019-08-16 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui.c (tui_is_window_visible): Update.
2261 * tui/tui-wingeneral.c (tui_make_window)
2262 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2263 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2264 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2265 (tui_set_win_height_command, parse_scrolling_args): Update.
2266 * tui/tui-source.c (tui_source_window::style_changed): Update.
2267 * tui/tui-regs.c (tui_show_registers)
2268 (tui_data_window::first_data_item_displayed)
2269 (tui_data_window::delete_data_content_windows)
2270 (tui_check_register_values, tui_reg_command): Update.
2271 * tui/tui-disasm.c (tui_show_disassem): Update.
2272 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2273 method.
2274 <is_visible>: Remove field.
2275 * tui/tui-data.c (tui_next_win, tui_prev_win)
2276 (tui_delete_invisible_windows): Update.
2277
d4ab829a
TT
22782019-08-16 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-winsource.h (struct tui_source_window_base)
2281 <m_has_locator>: Remove.
2282 * tui/tui-layout.c (show_source_disasm_command, show_data)
2283 (show_source_or_disasm_and_command): Update.
2284
aa7ca1bb
AH
22852019-08-16 Alan Hayward <alan.hayward@arm.com>
2286
2287 * NEWS (Other MI changes): New subsection.
2288 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2289 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2290 * arch-utils.c (default_get_pc_address_flags): New function.
2291 * arch-utils.h (default_get_pc_address_flags): New declaration.
2292 * gdbarch.sh: Add get_pc_address_flags.
2293 * gdbarch.c: Regenerate.
2294 * gdbarch.h: Likewise.
2295 * stack.c (print_pc): New function.
2296 (print_frame_info) (print_frame): Call print_pc.
2297
6eac171f
TV
22982019-08-16 Tom de Vries <tdevries@suse.de>
2299
2300 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2301 print_objfile_section_info.
2302
3df505f6
TT
23032019-08-15 Tom Tromey <tom@tromey.com>
2304
2305 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2306 calling update_cmdwin_start_line.
2307 * tui/tui-winsource.h (struct tui_source_window_base)
2308 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2309 <rerender>: Declare.
2310 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2311 Call rerender.
2312 (tui_source_window_base::set_new_height): Remove.
2313 (tui_source_window_base::rerender): Rename from
2314 do_make_visible_with_new_height.
2315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2316 resize method.
2317 (tui_win_info::make_invisible_and_set_new_height)
2318 (tui_win_info::make_visible_with_new_height): Remove.
2319 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2320 Declare.
2321 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2322 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2323 do_make_visible_with_new_height>: Don't declare.
2324 <rerender>: Declare.
2325 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2326 set_new_height.
2327 (tui_data_window::do_make_visible_with_new_height): Remove.
2328 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2329 call tui_show_locator_content.
2330 (tui_gen_win_info::resize): Call rerender.
2331 (show_source_or_disasm_and_command): Don't call
2332 tui_show_locator_content.
2333 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2334 method.
2335 (struct tui_win_info) <rerender>: Declare.
2336 <set_new_height, make_invisible_and_set_new_height,
2337 make_visible_with_new_height>: Don't declare.
2338 * tui/tui-data.c (tui_win_list::rerender): New method.
2339 * tui/tui-command.h (struct tui_cmd_window)
2340 <do_make_visible_with_new_height>: Don't declare.
2341 * tui/tui-command.c
2342 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2343
272560b5
TT
23442019-08-15 Tom Tromey <tromey@adacore.com>
2345
2346 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2347 * ada-lang.c (ada_enum_name): Likewise.
2348
08235187
CB
23492019-08-15 Christian Biesinger <cbiesinger@google.com>
2350
2351 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2352 leading underscore.
2353 (GdbOutputErrorFile): Likewise.
2354 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2355 accordingly.
2356 (execute_unwinders): Rename to have a leading underscore.
2357 (auto_load_packages): Likewise.
2358 (global scope): Adjust call to auto_load_packages accordingly.
2359 (GdbSetPythonDirectory): Likewise.
2360 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2361 instead of execute_unwinders.
2362
db502012
TT
23632019-08-15 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2366 (show_data): Don't change window visibility.
2367 (tui_gen_win_info::resize): Remove special case for command
2368 window. Use wresize, when available.
2369 (show_source_or_disasm_and_command): Don't change window
2370 visibility.
2371 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2372 <make_visible>: New method.
2373 * tui/tui-command.c (tui_cmd_window::resize): New method.
2374
3891b65e
TT
23752019-08-15 Tom Tromey <tom@tromey.com>
2376
2377 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2378 (struct tui_source_windows): New.
2379 * tui/tui-winsource.c (tui_display_main): Update.
2380 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2381 (new_height_ok, parse_scrolling_args): Update.
2382 * tui/tui-layout.c (show_layout, show_data): Update.
2383 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2384 (tui_add_to_source_windows): Don't declare.
2385 * tui/tui-data.c (source_windows, tui_source_windows)
2386 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2387
ee556432
TT
23882019-08-15 Tom Tromey <tom@tromey.com>
2389
2390 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2391 Rename from reset.
2392 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2393 * tui/tui-layout.c (show_source_disasm_command, show_data):
2394 Update.
2395 (tui_gen_win_info::resize): Rename.
2396 (show_source_or_disasm_and_command): Update.
2397 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2398 reset.
2399
46f438e3
TT
24002019-08-15 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2403 * tui/tui-interp.c (tui_interp::init): Don't call
2404 tui_initialize_static_data.
2405 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2406
f4ce562c
TT
24072019-08-15 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2410 examine tui_win_list.
2411
c398c3d0
TT
24122019-08-15 Tom Tromey <tom@tromey.com>
2413
2414 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2415 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2416 tui_clear_source_content.
2417 (tui_clear_source_content): Remove.
2418 (tui_source_window_base::do_erase_source_content): Hoist call to
2419 content.clear().
2420 * tui/tui-stack.c (tui_show_frame_info): Don't call
2421 tui_clear_source_content.
2422
e25d2004
TT
24232019-08-15 Tom Tromey <tom@tromey.com>
2424
2425 * tui/tui-winsource.h (struct tui_source_window_base)
2426 <do_erase_source_content>: New method.
2427 <erase_source_content>: New method.
2428 (tui_erase_source_content): Don't declare.
2429 * tui/tui-winsource.c (tui_clear_source_content): Update.
2430 (tui_source_window_base::do_erase_source_content): Rename from
2431 tui_erase_source_content.
2432 (tui_source_window_base::show_source_content): Update.
2433 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2434 * tui/tui-source.h (struct tui_source_window)
2435 <erase_source_content>: New method.
2436 * tui/tui-disasm.h (struct tui_disasm_window)
2437 <erase_source_content>: New method.
2438
002f15c2
TT
24392019-08-15 Tom Tromey <tom@tromey.com>
2440
2441 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2442 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2443 constructor.
2444 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2445 * tui/tui-source.c (tui_set_source_content): Update.
2446 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2447
c9033fe8
TT
24482019-08-15 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2451 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2452 tui-source.c.
2453 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2454 Declare.
2455 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2456 method.
2457 (tui_source_window::maybe_update): Update.
2458
088f37dd
TT
24592019-08-15 Tom Tromey <tom@tromey.com>
2460
2461 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2462 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2463 tui-disasm.c.
2464 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2465 Declare.
2466 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2467 method.
2468 (tui_disasm_window::maybe_update): Update.
2469
a54700c6
TT
24702019-08-15 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-winsource.h (struct tui_source_window_base)
2473 <maybe_update>: Declare.
2474 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2475 method.
2476 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2477 Declare.
2478 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2479 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2480 Declare.
2481 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2482
e2a678a5
TT
24832019-08-15 Tom Tromey <tom@tromey.com>
2484
2485 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2486
f2dda477
TT
24872019-08-15 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui-wingeneral.c: Include tui-stack.h.
2490 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2491 (struct tui_locator_window): Move from tui-data.h.
2492 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2493 (tui_initialize_static_data): Move from tui-data.c.
2494 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2495 (struct tui_locator_window): Move to tui-stack.c.
2496 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2497 (tui_initialize_static_data): Move to tui-stack.c.
2498
ed4a1084
TT
24992019-08-15 Tom Tromey <tom@tromey.com>
2500
2501 * tui/tui-layout.c (show_source_disasm_command)
2502 (show_source_or_disasm_and_command): Use make_visible method, not
2503 tui_make_window.
2504 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2505 Remove.
2506
65962b20
TT
25072019-08-15 Tom Tromey <tom@tromey.com>
2508
2509 * tui/tui-wingeneral.h (tui_make_window): Update.
2510 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2511 parameter.
2512 (tui_gen_win_info::make_visible): Update.
2513 * tui/tui-regs.c (tui_data_window::display_registers_from):
2514 Update.
2515 * tui/tui-layout.c (show_source_disasm_command)
2516 (show_source_or_disasm_and_command): Update.
2517 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2518 (enum tui_box): Remove.
2519 (struct tui_win_info) <can_box>: New method.
2520 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2521 method.
2522
2208ee91
TV
25232019-08-15 Tom de Vries <tdevries@suse.de>
2524
2525 * linux-nat-trad.c: Include gdbarch.h.
2526
75faf5c4
AH
25272019-08-14 Alan Hayward <alan.hayward@arm.com>
2528
2529 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2530 register sizes.
2531
b1c896b3
TT
25322019-08-14 Tom Tromey <tromey@adacore.com>
2533
2534 * darwin-nat.c: Include gdbarch.h.
2535 * darwin-nat-info.c: Include gdbarch.h.
2536
6405cd73
TT
25372019-08-13 Tom Tromey <tom@tromey.com>
2538
2539 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2540 Remove.
2541 * tui/tui-data.c (tui_initialize_static_data): Update.
2542
5216580d
TT
25432019-08-13 Tom Tromey <tom@tromey.com>
2544
2545 * tui/tui-winsource.h (struct tui_exec_info_window)
2546 <~tui_exec_info_window, maybe_allocate_content, get_content,
2547 m_content>: Remove.
2548 (struct tui_source_window_base) <set_exec_info_content,
2549 show_exec_info_content>: Don't declare.
2550 * tui/tui-winsource.c
2551 (tui_exec_info_window::maybe_allocate_content): Remove.
2552 (tui_source_window_base::update_exec_info): Rename from
2553 set_exec_info_content.
2554 (tui_source_window_base::show_exec_info_content)
2555 (tui_source_window_base::update_exec_info): Remove.
2556
93858ad3
TT
25572019-08-13 Tom Tromey <tom@tromey.com>
2558
2559 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2560 declare.
2561 * tui/tui-winsource.c (tui_update_source_window_as_is)
2562 (tui_update_source_windows_with_addr, tui_erase_source_content):
2563 Update.
2564 (tui_clear_exec_info_content): Remove.
2565
e321e7ce
TT
25662019-08-13 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2569 declare.
2570 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2571 call tui_erase_exec_info_content.
2572 (tui_clear_exec_info_content): Rename from
2573 tui_erase_exec_info_content.
2574 (tui_clear_exec_info_content): Delete.
2575
8270ac62
TT
25762019-08-13 Tom Tromey <tom@tromey.com>
2577
2578 * tui/tui-winsource.h (struct tui_source_window_base)
2579 <show_exec_info_content>: Declare.
2580 (tui_show_exec_info_content): Don't declare.
2581 * tui/tui-winsource.c
2582 (tui_source_window_base::show_exec_info_content): Rename from
2583 tui_show_exec_info_content.
2584 (tui_source_window_base::update_exec_info): Update.
2585
7b56485d
TT
25862019-08-13 Tom Tromey <tom@tromey.com>
2587
2588 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2589 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2590 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2591 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2592 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2593 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2594 ... here.
2595
7ba913dc
TT
25962019-08-13 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-winsource.h (struct tui_source_window_base)
2599 <update_exec_info>: Declare.
2600 (tui_update_exec_info): Don't declare.
2601 * tui/tui-winsource.c (tui_update_source_window_as_is)
2602 (tui_source_window_base::refresh_all)
2603 (tui_update_all_breakpoint_info): Update.
2604 (tui_source_window_base::update_exec_info): Rename from
2605 tui_update_exec_info.
2606 * tui/tui-stack.c (tui_show_frame_info): Update.
2607
37a4a131
TT
26082019-08-13 Tom Tromey <tom@tromey.com>
2609
2610 * tui/tui-winsource.h (struct tui_source_window_base)
2611 <set_exec_info_content>: Declare.
2612 (tui_set_exec_info_content): Don't declare.
2613 * tui/tui-winsource.c
2614 (tui_source_window_base::set_exec_info_content): Rename from
2615 tui_set_exec_info_content.
2616 (tui_update_exec_info): Update.
2617
0bd27e07
TT
26182019-08-13 Tom Tromey <tom@tromey.com>
2619
2620 * tui/tui-winsource.h (struct tui_source_window_base)
2621 <show_source_content>: Declare.
2622 (tui_show_source_content): Don't declare.
2623 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2624 (tui_source_window_base::show_source_content): Rename from
2625 tui_show_source_content.
2626 (tui_source_window_base::refresh_all): Update.
2627 * tui/tui-layout.c (show_source_disasm_command)
2628 (show_source_or_disasm_and_command): Update.
2629
b4ef5aeb
TT
26302019-08-13 Tom Tromey <tom@tromey.com>
2631
2632 * tui/tui-winsource.c (tui_erase_source_content)
2633 (tui_show_source_content, tui_source_window_base::refresh_all):
2634 Update.
2635 * tui/tui-wingeneral.h
2636 (tui_check_and_display_highlight_if_needed): Don't declare.
2637 * tui/tui-wingeneral.c
2638 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2639 check_and_display_highlight_if_needed.
2640 * tui/tui-win.c (tui_rehighlight_all)
2641 (tui_win_info::make_visible_with_new_height): Update.
2642 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2643 (tui_data_window::erase_data_content)
2644 (tui_data_window::display_all_data): Update.
2645 * tui/tui-data.h (struct tui_win_info)
2646 <check_and_display_highlight_if_needed>: Declare.
2647
fede5273
TT
26482019-08-13 Tom Tromey <tom@tromey.com>
2649
2650 * tui/tui-win.c (tui_resize_all): Call
2651 tui_delete_invisible_windows.
2652 * tui/tui-layout.c (show_layout): Call
2653 tui_delete_invisible_windows.
2654 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2655 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2656
22c3f490
TT
26572019-08-13 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2660 tui_add_win_to_layout.
2661
16cb7910
TT
26622019-08-13 Tom Tromey <tom@tromey.com>
2663
2664 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2665 * tui/tui-layout.c (tui_default_win_height): Now static.
2666
cc0c3ffb
TT
26672019-08-13 Tom Tromey <tom@tromey.com>
2668
2669 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2670 single switch.
2671 (show_source_disasm_command, show_source_or_disasm_and_command):
2672 Don't check current layout.
2673
3f3ffe54
TT
26742019-08-13 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-wingeneral.c (make_all_visible): Remove.
2677 (tui_make_all_invisible): Simplify.
2678 * tui/tui-layout.c (tui_make_all_invisible): Move from
2679 tui-wingeneral.c; simplify.
2680 (show_layout): Hoist call to tui_make_all_invisible.
2681 (show_data): Don't call tui_make_all_invisible.
2682
69258091
TT
26832019-08-13 Tom Tromey <tom@tromey.com>
2684
2685 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2686 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2687
62cf57fe
TT
26882019-08-13 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2691 tui-data.c.
2692 (show_source_disasm_command, show_data)
2693 (show_source_or_disasm_and_command): Don't use
2694 tui_set_current_layout_to.
2695 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2696 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2697 tui-layout.c.
2698 (tui_set_current_layout_to): Remove.
2699
2afade5d
TT
27002019-08-13 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-layout.c (tui_set_layout): Update.
2703 * tui/tui-data.h (struct tui_layout_def): Remove.
2704 (tui_layout_def): Don't declare.
2705 * tui/tui-data.c (layout_def): Remove.
2706 (tui_layout_def): Remove.
2707
a3504e96
TT
27082019-08-13 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-winsource.h (struct tui_source_window_base)
2711 <clear_detail>: No longer "override".
2712 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2713 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2714 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2715 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2716 Remove.
2717 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2718
29c92911
TT
27192019-08-13 Tom Tromey <tromey@adacore.com>
2720
2721 * tracepoint.c: Don't include readline.h or history.h.
2722
86c6b807
TT
27232019-08-12 Tom Tromey <tom@tromey.com>
2724
2725 * configure: Rebuild.
2726 * configure.ac: Check for readline 7.
2727 * NEWS: Mention readline 7 requirement.
2728 * README: Update.
2729
5db2718c
TT
27302019-08-12 Tom Tromey <tom@tromey.com>
2731
2732 * mingw-hdep.c (gdb_select): Remove readline hack.
2733
dac36daf
PFC
27342019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2735
2736 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2737 when the function fails.
2738
1022c627
AA
27392019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2740
2741 * s390-tdep.c (s390_type_align): New function.
2742 (s390_gdbarch_init): Set it as type_align gdbarch method.
2743
eba4caf2
TV
27442019-08-09 Tom de Vries <tdevries@suse.de>
2745
2746 PR gdb/24591
2747 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2748 pc_low with relocation offset.
2749
123cd851
TT
27502019-08-07 Tom Tromey <tromey@adacore.com>
2751
2752 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2753 (print_frame_args): Update.
2754 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2755 Update.
2756 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2757 * frame.h (struct frame_arg): Add initializers.
2758 <error>: Now a unique_xmalloc_ptr.
2759
3d31bc39
AH
27602019-08-07 Alan Hayward <alan.hayward@arm.com>
2761
2762 * NEWS: Expand the Pointer Authentication entry.
2763 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2764 (aarch64_frame_unmask_lr): ... to this.
2765 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2766 Call aarch64_frame_unmask_lr.
2767 * frame.c (struct frame_info): Add "masked" variable.
2768 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2769 (fprint_frame): Check for masked pc.
2770 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2771 declarations.
2772 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2773 * stack.c (print_frame): Check for masked pc.
2774
0cf9feb9
TT
27752019-08-06 Tom Tromey <tom@tromey.com>
2776
2777 * stabsread.c (patch_block_stabs, read_one_struct_field)
2778 (read_enum_type): Use obstack_strndup.
2779 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2780 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2781 * dwarf2read.c (guess_full_die_structure_name)
2782 (anonymous_struct_prefix): Use obstack_strndup.
2783 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2784 * c-exp.y (yylex): Use obstack_strndup.
2785 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2786 (write_var_or_type): Use obstack_strndup.
2787
efba19b0
TT
27882019-08-06 Tom Tromey <tom@tromey.com>
2789
2790 * symfile.c (reread_symbols): Use obstack_strdup.
2791 * stabsread.c (read_type): Use obstack_strdup.
2792 * gdb_obstack.h (obstack_strdup): New overload.
2793 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2794 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2795 (dwarf2_canonicalize_name): Use obstack_strdup.
2796 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2797 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2798 Use obstack_strdup.
2799
f25102f7
TT
28002019-08-06 Tom Tromey <tom@tromey.com>
2801
2802 * gdb_obstack.h (obstack_strdup): Define.
2803 * gdb_obstack.c (obstack_strdup): Don't define.
2804
021887d8
TT
28052019-08-06 Tom Tromey <tom@tromey.com>
2806
2807 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2808 obstack_strdup.
2809 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2810 obstack_strdup.
2811 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2812 * stabsread.c (common_block_start): Use obstack_strdup.
2813 * objfiles.c (set_objfile_main_name, objfile): Use
2814 obstack_strdup.
2815 * namespace.c (add_using_directive): Use obstack_strdup.
2816 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2817 * jit.c (finalize_symtab): Use obstack_strdup.
2818 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2819 (guess_partial_die_structure_name, partial_die_info::fixup)
2820 (dwarf2_name): Use obstack_strdup.
2821 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2822 obstack_strdup.
2823 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2824 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2825 obstack_strdup.
2826 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2827
d2834edc
PW
28282019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2829
2830 * unittests/help-doc-selftests.c: New file.
2831 * Makefile.in: Add the new file.
2832
590042fc
PW
28332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2834
2835 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2836 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2837 the full first line, except when FOR_VALUE_PREFIX. In this case,
2838 the trailing '.' is not output, and the first character is uppercased.
2839 (print_help_for_command): Update call to print_doc_line.
2840 (print_doc_of_command): Likewise.
2841 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2842 * cli/cli-option.c (append_indented_doc): Do not append newline.
2843 (build_help_option): Append newline after first appended_indented_doc
2844 only if a second call is done.
2845 (build_help): Append 2 new lines before each option, except the first
2846 one.
2847 * compile/compile.c (_initialize_compile): Add new lines after
2848 %OPTIONS%, when not at the end of the help.
2849 Change help doc or code
2850 producing the help doc to respect the invariants.
2851 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2852 Also removed the new line after 'Options:', as all other commands
2853 do not put an empty line between 'Options:' and the first option.
2854 * printcmd.c (_initialize_printcmd): Likewise.
2855 * stack.c (_initialize_stack): Likewise.
2856 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2857 incorrectly telling COMMAND is optional.
2858 * ada-lang.c (_initialize_ada_language): Change help doc or code
2859 producing the help doc to respect the invariants.
2860 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2861 * breakpoint.c (_initialize_breakpoint): Likewise.
2862 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2863 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2864 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2865 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2866 _initialize_cli_style): Likewise.
2867 * corelow.c (core_target_info): Likewise.
2868 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2869 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2870 * filesystem.c (_initialize_filesystem): Likewise.
2871 * frame.c (_initialize_frame): Likewise.
2872 * gnu-nat.c (add_task_commands): Likewise.
2873 * infcall.c (_initialize_infcall): Likewise.
2874 * infcmd.c (_initialize_infcmd): Likewise.
2875 * interps.c (_initialize_interpreter): Likewise.
2876 * language.c (_initialize_language): Likewise.
2877 * linux-fork.c (_initialize_linux_fork): Likewise.
2878 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2879 * maint.c (_initialize_maint_cmds): Likewise.
2880 * memattr.c (_initialize_mem): Likewise.
2881 * printcmd.c (_initialize_printcmd): Likewise.
2882 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2883 _RegEx): Likewise.
2884 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2885 * record-btrace.c (_initialize_record_btrace): Likewise.
2886 * record-full.c (_initialize_record_full): Likewise.
2887 * record.c (_initialize_record): Likewise.
2888 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2889 * regcache.c (_initialize_regcache): Likewise.
2890 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2891 _initialize_remote): Likewise.
2892 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2893 * serial.c (_initialize_serial): Likewise.
2894 * skip.c (_initialize_step_skip): Likewise.
2895 * source.c (_initialize_source): Likewise.
2896 * stack.c (_initialize_stack): Likewise.
2897 * symfile.c (_initialize_symfile): Likewise.
2898 * symtab.c (_initialize_symtab): Likewise.
2899 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2900 * top.c (init_main): Likewise.
2901 * tracefile-tfile.c (tfile_target_info): Likewise.
2902 * tracepoint.c (_initialize_tracepoint): Likewise.
2903 * tui/tui-win.c (_initialize_tui_win): Likewise.
2904 * utils.c (add_internal_problem_command): Likewise.
2905 * valprint.c (value_print_option_defs): Likewise.
2906
404f2902
FCE
29072019-08-06 Frank Ch. Eigler <fche@redhat.com>
2908
2909 PR build/24886
2910 * configure.ac: Drop enable-libmcheck support.
2911 * configure, config.in: Rebuild.
2912 * libmcheck.m4: Remove.
2913 * acinclude.m4: Don't include it.
2914 * Makefile.in: Don't distribute it.
2915 * top.c (print_gdb_configuration): Don't mention it.
2916
046bebe1
TT
29172019-08-06 Tom Tromey <tom@tromey.com>
2918
2919 * utils.c (set_output_style): Sometimes pass stream to
2920 emit_style_escape.
2921 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2922 * record-btrace.c (btrace_insn_history): Update.
2923 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2924 method.
2925 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2926 Update initializers.
2927 <m_uiout>: New field.
2928 <m_di>: Move lower.
2929 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2930 Remove "uiout" parameter.
2931 (dump_insns): Update.
2932 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2933 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2934
ddbcedf5
CB
29352019-08-06 Christian Biesinger <cbiesinger@google.com>
2936
2937 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2938 (error_in_psymtab_expansion): Likewise.
2939 (lookup_symbol_via_quick_fns): Likewise.
2940 (basic_lookup_transparent_type_quick): Likewise.
2941 (basic_lookup_transparent_type_1): Likewise.
2942
b08b16c8
TT
29432019-08-06 Tom Tromey <tromey@adacore.com>
2944
2945 * source.c (last_source_error): Now bool.
2946 (print_source_lines_base): Make "noprint" bool. Only open
2947 source file when last_source_visited changes.
2948
cb44333d
TT
29492019-08-06 Tom Tromey <tromey@adacore.com>
2950
2951 * annotate.c (annotate_source_line): Use g_source_cache.
2952 * source-cache.c (source_cache::get_plain_source_lines): Change
2953 parameters. Populate m_offset_cache.
2954 (source_cache::ensure): New method.
2955 (source_cache::get_line_charpos): New method.
2956 (extract_lines): Move lower. Change parameters.
2957 (source_cache::get_source_lines): Move lower.
2958 * source-cache.h (class source_cache): Update comment.
2959 <get_line_charpos>: New method.
2960 <get_source_lines>: Update comment.
2961 <clear>: Clear m_offset_cache.
2962 <get_plain_source_lines>: Change parameters.
2963 <ensure>: New method
2964 <m_offset_cache>: New member.
2965 * source.c (forget_cached_source_info_for_objfile): Update.
2966 (info_source_command): Use g_source_cache.
2967 (find_source_lines, open_source_file_with_line_charpos): Remove.
2968 (print_source_lines_base, search_command_helper): Use g_source_cache.
2969 * source.h (open_source_file_with_line_charpos): Don't declare.
2970 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2971 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2972 Use g_source_cache.
2973
872dceaa
TT
29742019-08-06 Tom Tromey <tromey@adacore.com>
2975
2976 * source-cache.c (source_cache::get_plain_source_lines):
2977 Remove "first_line" and "last_line" parameters.
2978 (source_cache::get_source_lines): Cache plain text.
2979 * source-cache.h (class source_cache)
2980 <get_plain_source_lines>: Update.
2981
269249d9
TT
29822019-08-06 Tom Tromey <tromey@adacore.com>
2983
2984 * source-cache.c (extract_lines): No longer a method.
2985 Changed type of parameter. Include final newline.
2986 (selftests::extract_lines_test): New function.
2987 (_initialize_source_cache): Likewise.
2988 * source-cache.h (class source_cache)
2989 <extract_lines>: Don't declare.
2990
c0e8dcd8
TT
29912019-08-06 Tom Tromey <tromey@adacore.com>
2992
2993 * breakpoint.c (init_breakpoint_sal): Update.
2994 (breakpoint): Update.
2995 * breakpoint.h (struct breakpoint) <filter>: Now a
2996 unique_xmalloc_ptr.
2997
0b27c27d
CB
29982019-08-05 Christian Biesinger <cbiesinger@google.com>
2999
3000 * NEWS: Mention dictionary access on blocks.
3001 * python/py-block.c (blpy_getitem): New function.
3002 (block_object_as_mapping): New struct.
3003 (block_object_type): Use new struct for tp_as_mapping field.
3004
4ee94178
CB
30052019-08-05 Christian Biesinger <cbiesinger@google.com>
3006
3007 * objfiles.h (objfile): Add a comment describing partial symbols.
3008
8abfcabc
TT
30092019-08-05 Tom Tromey <tromey@adacore.com>
3010
3011 * compile/compile.c (_initialize_compile): Use _(), not N_().
3012 * thread.c (_initialize_thread): Use _(), not N_().
3013 * stack.c (_initialize_stack): Use _(), not N_().
3014 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3015
2b79f376
SM
30162019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * dwarf2read.c (struct dw2_symtab_iterator):
3019 <want_specific_block>: Remove.
3020 <block_index>: Change type to gdb::optional.
3021 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3022 change type of BLOCK_INDEX parameter to gdb::optional.
3023 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3024 (dw2_lookup_symbol): Don't pass argument for
3025 WANT_SPECIFIC_BLOCK.
3026 (dw2_expand_symtabs_for_function): Don't pass argument for
3027 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3028 (class dw2_debug_names_iterator)
3029 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3030 parameter, change BLOCK_INDEX type to gdb::optional.
3031 <m_want_specific_block>: Remove.
3032 <m_block_index>: Change type to gdb::optional.
3033 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3034 gdb::optional. Re-write in function of gdb::optional.
3035 (dw2_debug_names_lookup_symbol): Don't pass argument for
3036 WANT_SPECIFIC_BLOCK.
3037 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3038 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3039 BLOCK_INDEX.
3040
ae60f04e
PW
30412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3042
3043 * NEWS: Mention changes to "info sources" command.
3044
28cd9371
PW
30452019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3046
3047 * symtab.c (filename_partial_match_opts): New struct type.
3048 (struct output_source_filename_data): New members
3049 regexp, c_regexp, partial_match.
3050 (output_source_filename): Use new members to decide to print file.
3051 (info_sources_option_defs): New variable.
3052 (make_info_sources_options_def_group, print_info_sources_header,
3053 info_sources_command_completer):
3054 New functions.
3055 (info_sources_command): Read new optional arguments.
3056 (_initialize_symtab): Update info sources help.
3057
ca683e3a
AO
30582019-08-02 Alexandre Oliva <oliva@adacore.com>
3059
3060 * ada-lang.c (exception_support_info_v0): Renamed from...
3061 (default_exception_support_info): ... this. Create new
3062 definition for v1.
3063 (ada_has_this_exception_support): Look up catch_handlers_sym.
3064 (ada_exception_support_info_sniffer): Try v0 after default.
3065
f1264162
TT
30662019-08-01 Tom Tromey <tromey@adacore.com>
3067
3068 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3069 gdbarch.h.
3070
0a7b2485
CB
30712019-08-01 Christian Biesinger <cbiesinger@google.com>
3072
3073 * s12z-tdep.c: Fix include path for s12z-opc.h.
3074
c6bdbeb7
AH
30752019-08-01 Alan Hayward <alan.hayward@arm.com>
3076
3077 * NEWS: Require GNU make 3.82.
3078
a2bd7b82
TT
30792019-07-16 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3082 declare.
3083
aa3b6533
TT
30842019-07-30 Tom Tromey <tromey@adacore.com>
3085
3086 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3087
a1530dc7
KB
30882019-07-30 Kevin Buettner <kevinb@redhat.com>
3089
3090 * printcmd.c (print_address_symbolic): Print negative offsets.
3091 (build_address_symbolic): Force signed arithmetic when computing
3092 offset.
3093
2906593f
CB
30942019-07-30 Christian Biesinger <cbiesinger@google.com>
3095
3096 PR/24474: Add a function to lookup static variables.
3097 * NEWS: Mention this new function.
3098 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3099 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3100 * python/python.c (python_GdbMethods): Add new function.
3101
c620ed88
CB
31022019-07-29 Christian Biesinger <cbiesinger@google.com>
3103
3104 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3105 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3106 (objfpy_lookup_static_symbol): New function.
3107 (objfile_object_methods): Add new functions.
3108
bc4268a5
PW
31092019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3110
3111 * NEWS: Mention 'set|show print frame-info'. Mention new
3112 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3113 backtrace argument. Mention that python frame filtering code
3114 is now consistent with what 'backtrace' command prints.
3115
4b5e8d19
PW
31162019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3117
3118 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3119 comments.
3120 (print_frame_info_auto, print_frame_info_source_line,
3121 print_frame_info_location, print_frame_info_source_and_location,
3122 print_frame_info_location_and_address, print_frame_info_short_location):
3123 New declarations.
3124 (struct frame_print_options): New member print_frame_info.
3125 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3126 * stack.h (get_user_print_what_frame_info): New declaration.
3127 (frame_show_address): New declaration.
3128 * stack.c (print_frame_arguments_choices): New value 'presence'.
3129 (print_frame_info_auto, print_frame_info_source_line,
3130 print_frame_info_location, print_frame_info_source_and_location,
3131 print_frame_info_location_and_address, print_frame_info_short_location,
3132 print_frame_info_choices, print_frame_info_print_what): New definitions.
3133 (print_frame_args): Only print dots for args if print frame-arguments
3134 is 'presence'.
3135 (frame_print_option_defs): New element for "frame-info".
3136 (get_user_print_what_frame_info): New function.
3137 (frame_show_address): Make non static. Move comment to stack.h.
3138 (print_frame_info_to_print_what): New function.
3139 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3140 to decide what to print.
3141 (backtrace_command_1): Handle the new print_frame_arguments_presence
3142 value.
3143 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3144 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3145 (py_print_frame): In non-mi mode, use LOCATION as default for
3146 print_what, similarly to frame information printed directly by
3147 backtrace command. Handle frame-info user option in non MI mode.
3148
6bdfee81
KB
31492019-07-27 Kevin Buettner <kevinb@redhat.com>
3150
3151 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3152 Add case for debugging 32-bit target on 64-bit host. Revise
3153 comment.
3154
98a617f8
KB
31552019-07-27 Kevin Buettner <kevinb@redhat.com>
3156
3157 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3158 instead of find_function_entry_range_from_pc.
3159
567238c9
KB
31602019-07-27 Kevin Buettner <kevinb@redhat.com>
3161
3162 * stack.c (find_frame_funname): Remove code which preferred
3163 minsym over symtab sym in "certain pathological cases".
3164
2dc80cf8
KB
3165 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3166 parameter. Change type of "do_demangle" to bool.
3167 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3168 Pass suitable "prefer_sym_over_minsym" flag to
3169 build_address_symbolic(). Don't output "+" for negative offsets.
3170 * printcmd.c (print_address_symbolic): Update invocation of
3171 build_address_symbolic to include a "prefer_sym_over_minsym"
3172 flag.
3173 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3174 Restrict cases in which use of minimal symbol is preferred to that
3175 of a found symbol. Update comments.
3176
1aff7173
KB
3177 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3178 for entry pc when entry pc is out of range for that FDE.
3179
89b085ac
BC
31802019-07-26 Brian Callahan <bcallah@openbsd.org>
3181
3182 PR gdb/24839:
3183 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3184 type.
3185
f32feb4a
CB
31862019-07-25 Christian Biesinger <cbiesinger@google.com>
3187
3188 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3189 this function's Python signature.
3190
3191
31922019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3193
3194 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3195 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3196 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3197 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3198 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3199
3200
c54e4253
YS
32012019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3202
3203 * h8300-tdep.c (h8300_register_name_common): New.
3204 h8300_register_name): Use h8300_register_name_common.
3205 (h8300s_register_name): Likewise.
3206 (h8300sx_register_name): Likewise.
3207 (h8300h_register_nam): New.
3208 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3209
3210
40eadf04
SP
32112019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3212
3213 * arm-tdep.c (arm_skip_cmse_entry): New function.
3214 (arm_is_sgstubs_section): New function.
3215 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3216
bfa2a36d
TT
32172019-07-22 Tom Tromey <tom@tromey.com>
3218
3219 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3220 Don't self-assign.
3221
a8e9d247
AB
32222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3225 type_print.
3226
eb86c5e2
AB
32272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3230 so that GDB doesn't match any msymbols when searching in the
3231 TYPES_DOMAIN.
3232 (print_symbol_info): Print using typedef_print or type_print based
3233 on the type of the symbol. Add updated FIXME comment moved from...
3234 (_initialize_symtab): ... move and update FIXME comment to above.
3235
a8eab7c6
AB
32362019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * NEWS: Mention adding -q option to "info types".
3239 * symtab.c (struct info_types_options): New struct.
3240 (info_types_options_defs): New variable.
3241 (make_info_types_options_def_group): New function.
3242 (info_types_command): Use gdb::option framework to parse options.
3243 (info_types_command_completer): New function.
3244 (_initialize_symtab): Extend the help text on "info types" and
3245 register command completer.
3246
b4603c34
CB
32472019-07-21 Christian Biesinger <cbiesinger@google.com>
3248
3249 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3250 (lookup_symbol_in_objfile): Change int to block_enum and add a
3251 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3252
c8cdc1e0
CB
32532019-07-20 Christian Biesinger <cbiesinger@google.com>
3254
3255 * MAINTAINERS (Write After Approval): Add self.
3256
01e175fe
AB
32572019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3258
3259 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3260 instruction to the dummy code region.
3261
56f79b63
TT
32622019-07-19 Tom Tromey <tromey@adacore.com>
3263
3264 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3265 (ARGSUSED, PARAMS, __func__): Remove rules.
3266
4c5aa8e0
AH
32672019-07-19 Alan Hayward <alan.hayward@arm.com>
3268
3269 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3270 * features/arm/arm-with-iwmmxt.c: Remove.
3271 * features/arm/arm-with-iwmmxt.xml: Remove.
3272 * features/arm/arm-with-m-fpa-layout.c: Remove.
3273 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3274 * features/arm/arm-with-m-vfp-d16.c: Remove.
3275 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3276 * features/arm/arm-with-m.c: Remove.
3277 * features/arm/arm-with-m.xml: Remove.
3278 * features/arm/arm-with-neon.c: Remove.
3279 * features/arm/arm-with-neon.xml: Remove.
3280 * features/arm/arm-with-vfpv2.c: Remove.
3281 * features/arm/arm-with-vfpv2.xml: Remove.
3282 * features/arm/arm-with-vfpv3.c: Remove.
3283 * features/arm/arm-with-vfpv3.xml: Remove.
3284
f42b2617
AH
32852019-07-19 Alan Hayward <alan.hayward@arm.com>
3286
3287 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3288
f29ec966
AH
32892019-07-19 Alan Hayward <alan.hayward@arm.com>
3290
3291 * arch/aarch32.c (aarch32_create_target_description): Create
3292 target descriptions using features.
3293 * arch/arm.c (arm_create_target_description)
3294 (arm_create_mprofile_target_description): Likewise.
3295 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3296
d105cce5
AH
32972019-07-19 Alan Hayward <alan.hayward@arm.com>
3298
3299 * Makefile.in: Add new files.
3300 * aarch32-tdep.c: New file.
3301 * aarch32-tdep.h: New file.
3302 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3303 Call aarch32_read_description.
3304 * arch/aarch32.c: New file.
3305 * arch/aarch32.h: New file.
3306 * arch/arm.c (arm_create_target_description)
3307 (arm_create_mprofile_target_description): New function.
3308 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3309 (arm_create_target_description)
3310 (arm_create_mprofile_target_description): New declaration.
3311 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3312 read_description functions.
3313 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3314 Likewise.
3315 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3316 * arm-tdep.c (tdesc_arm_list): New variable.
3317 (arm_register_g_packet_guesses): Call create description functions.
3318 (arm_read_description) (arm_read_mprofile_description): New
3319 function.
3320 * arm-tdep.h (arm_read_description)
3321 (arm_read_mprofile_description): Add declaration.
3322 * configure.tgt: Add new files.
3323
afe09f0b
GL
33242019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3325
3326 * top.c (new_ui_command): Open specified terminal just once.
3327
cd215b2e
TT
33282019-07-18 Tom Tromey <tromey@adacore.com>
3329
3330 * symtab.c (main_name): Constify return type.
3331 * symfile.c (set_initial_language): Update.
3332 * symtab.h (main_name): Constify return type.
3333
d8f68fcb
TT
33342019-07-17 Tom Tromey <tom@tromey.com>
3335
3336 * tui/tui-winsource.c (tui_update_source_window)
3337 (tui_update_source_window_as_is)
3338 (tui_update_source_windows_with_line): Remove return.
3339 * tui/tui-disasm.c (tui_show_disassem)
3340 (tui_show_disassem_and_update_source): Remove return.
3341 * tui/tui.c (tui_reset): Remove return.
3342 * tui/tui-wingeneral.c
3343 (tui_check_and_display_highlight_if_needed): Remove return.
3344
ca5af91e
TT
33452019-07-17 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3348
5104fe36
TT
33492019-07-17 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui-winsource.h (struct tui_exec_info_window)
3352 (struct tui_source_window_base): Move from tui-data.h.
3353 * tui/tui-winsource.c: Move many method definitions from
3354 elsewhere. Remove "structuring" comments.
3355 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3356 (tui_source_window_base::refresh_window): Move to
3357 tui-winsource.c.
3358 * tui/tui-win.c (tui_source_window_base::refresh_all)
3359 (tui_source_window_base::update_tab_width)
3360 (tui_source_window_base::set_new_height)
3361 (tui_source_window_base::do_make_visible_with_new_height): Move to
3362 tui-winsource.c.
3363 * tui/tui-source.h: Update.
3364 * tui/tui-source.c (tui_source_window_base::reset): Move to
3365 tui-winsource.c.
3366 * tui/tui-disasm.h: Update.
3367 * tui/tui-data.h (struct tui_exec_info_window): Move to
3368 tui-winsource.h.
3369 (struct tui_source_window_base): Likewise.
3370 * tui/tui-data.c (tui_source_window_base::clear_detail)
3371 (tui_source_window_base, ~tui_source_window_base): Move to
3372 tui-winsource.c.
3373
daa15dde
TT
33742019-07-17 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-win.c (tui_resize_all)
3377 (tui_source_window_base::update_tab_width)
3378 (tui_adjust_win_heights): Update.
3379 (tui_win_info::make_invisible_and_set_new_height): Rename from
3380 make_invisible_and_set_new_height.
3381 * tui/tui-data.h (struct tui_win_info)
3382 <make_invisible_and_set_new_height>: New method.
3383
bfad4537
TT
33842019-07-17 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui.c: Update.
3387 * tui/tui-source.h (struct tui_source_window): Move from
3388 tui-data.h.
3389 * tui/tui-layout.c: Update.
3390 * tui/tui-disasm.c: Update.
3391 * tui/tui-data.h (struct tui_source_window): Move to
3392 tui-source.h.
3393
88f7e873
TT
33942019-07-17 Tom Tromey <tom@tromey.com>
3395
3396 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3397 tui-data.h.
3398 * tui/tui-data.h (struct tui_disasm_window): Move to
3399 tui-disasm.h.
3400
96bd6233
TT
34012019-07-17 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-regs.h (struct tui_data_item_window): Move from
3404 tui-data.h.
3405 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3406 * tui/tui-data.h (struct tui_data_item_window): Move to
3407 tui-regs.h.
3408 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3409
ce38393b
TT
34102019-07-17 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui.c: Update.
3413 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3414 (tui_cmd_window::max_height): Move to tui-command.c.
3415 * tui/tui-layout.c: Update.
3416 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3417 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3418 tui-command.c.
3419 * tui/tui-command.h (struct tui_cmd_window): Move from
3420 tui-data.h.
3421 * tui/tui-command.c: Remove "structuring" comments.
3422 (tui_cmd_window::clear_detail)
3423 (tui_cmd_window::do_make_visible_with_new_height)
3424 (tui_cmd_window::max_height): Move from elsewhere.
3425
2d8b51cb
TT
34262019-07-17 Tom Tromey <tom@tromey.com>
3427
3428 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3429 Now static.
3430 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3431 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3432
18ab23af
TT
34332019-07-17 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui.c: Update.
3436 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3437 tui-regs.c.
3438 * tui/tui-windata.h: Remove file.
3439 * tui/tui-windata.c: Remove file.
3440 * tui/tui-win.c (tui_data_window::set_new_height)
3441 (tui_data_window::do_make_visible_with_new_height): Move to
3442 tui-regs.c.
3443 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3444 * tui/tui-regs.c: Remove "structuring" comments.
3445 (tui_data_window::first_data_item_displayed)
3446 (tui_data_window::delete_data_content_windows)
3447 (tui_data_window::erase_data_content)
3448 (tui_data_window::display_all_data)
3449 (tui_data_window::refresh_all)
3450 (tui_data_window::do_scroll_vertical)
3451 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3452 (tui_data_window::do_make_visible_with_new_height)
3453 (tui_data_window::refresh_window): Move from elsewhere.
3454 (_initialize_tui_regs): Move to end of file.
3455 * tui/tui-layout.c: Update.
3456 * tui/tui-hooks.c: Update.
3457 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3458 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3459 tui-regs.c.
3460 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3461
88b7e7cc
TT
34622019-07-17 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3465 seen.
3466
0fcd3711
TT
34672019-07-17 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-win.c (tui_source_window_base::set_new_height)
3470 (tui_source_window_base::do_make_visible_with_new_height): Use
3471 m_has_locator field directly.
3472 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3473 method.
3474 (struct tui_source_window_base) <has_locator>: Likewise.
3475
4a38112d
TT
34762019-07-17 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3479 Don't declare.
3480 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3481 Remove.
3482 * tui/tui-win.c (tui_source_window_base::set_new_height)
3483 (tui_source_window_base::set_new_height)
3484 (make_invisible_and_set_new_height)
3485 (tui_source_window_base::do_make_visible_with_new_height)
3486 (tui_source_window_base::do_make_visible_with_new_height):
3487 Update.
3488 * tui/tui-layout.c (show_source_disasm_command, show_data)
3489 (show_source_or_disasm_and_command): Update.
3490 * tui/tui-layout.c (show_layout): Update.
3491
09129226
TT
34922019-07-17 Tom Tromey <tom@tromey.com>
3493
3494 * tui/tui-layout.c (make_data_window): Remove.
3495 (show_data): Unify creation and re-initialization cases.
3496
4a8a5e84
TT
34972019-07-17 Tom Tromey <tom@tromey.com>
3498
3499 * tui/tui-layout.c (make_source_window, make_disasm_window):
3500 Remove.
3501 (show_data): Unify creation and re-initialization cases.
3502
76d2be8e
TT
35032019-07-17 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-layout.c (make_command_window): Remove.
3506 (show_source_disasm_command, show_source_or_disasm_and_command):
3507 Unify creation and re-initialization cases.
3508
890b8bde
TT
35092019-07-17 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3512 creation and re-initialization cases.
3513
2cdfa113
TT
35142019-07-17 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-regs.c (tui_get_register): Return void.
3517
8e3cfd09
TT
35182019-07-17 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3521 Simplify.
3522
f4e04977
TT
35232019-07-17 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3526 resetting.
3527
0379b883
TT
35282019-07-17 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3531 * tui/tui-regs.c (tui_reg_layout): New function.
3532 (tui_show_registers, tui_reg_command): Use it.
3533 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3534 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3535 parameters.
3536 (tui_layout_command): Remove.
3537
b7fbad91
TT
35382019-07-17 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-layout.h (tui/tui-layout): Return void.
3541 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3542
4e1e56b9
TT
35432019-07-17 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui-layout.c (show_source_disasm_command, show_data):
3546 Update.
3547 (reset_locator): Remove.
3548 (show_source_or_disasm_and_command): Update.
3549
1e0c09ba
TT
35502019-07-17 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-source.c (tui_source_window_base::reset): Remove
3553 win_type parameter.
3554 * tui/tui-layout.c (make_command_window, make_source_window)
3555 (make_disasm_window, make_data_window)
3556 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3557 (reset_locator, show_source_or_disasm_and_command): Update.
3558 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3559 win_type parameter.
3560 (struct tui_source_window_base) <reset>: Likewise.
3561
1bf605de
TT
35622019-07-17 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-layout.c (show_source_disasm_command): Use
3565 reset_locator.
3566 (reset_locator): New function.
3567 (init_and_make_win): Remove.
3568 (show_source_or_disasm_and_command): Use reset_locator.
3569
098f9ed4
TT
35702019-07-17 Tom Tromey <tom@tromey.com>
3571
3572 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3573 condition.
3574 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3575 Remove condition.
3576 * tui/tui-source.c (tui_source_window_base::reset): New method.
3577 * tui/tui-layout.c (make_command_window): Don't call
3578 init_and_make_win.
3579 (make_source_window, make_disasm_window): Don't call
3580 make_source_or_disasm_window.
3581 (make_data_window): Don't call init_and_make_win. Change calling
3582 convention.
3583 (show_source_disasm_command, show_data): Simplify.
3584 (make_source_or_disasm_window): Remove.
3585 (show_source_or_disasm_and_command): Simplify.
3586 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3587 (struct tui_source_window_base) <reset>: Likewise.
3588 <execution_info>: Remove initializer.
3589 * tui/tui-data.c (tui_source_window_base): Initialize
3590 execution_info.
3591
80110957
TT
35922019-07-17 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3595 variable.
3596
cf82af05
TT
35972019-07-17 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui.c (tui_rl_other_window): Update.
3600 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3601 superclass method first. Always iterate over regs_content.
3602 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3603 method.
3604 * tui/tui-win.c (tui_set_focus_command): Update.
3605
01aeb396
TT
36062019-07-17 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-win.c (tui_set_focus_command): Rename from
3609 tui_set_focus. Call tui_enable.
3610 (tui_set_focus_command): Remove.
3611
fd6c75ee
TT
36122019-07-17 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3615 refresh_window.
3616 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3617 touchwin.
3618 (tui_data_window::refresh_window): Call refresh_window on data
3619 items. Always call superclass refresh_window.
3620 (tui_win_info::refresh): Remove.
3621 (tui_source_window_base::refresh_window): Update.
3622 (tui_refresh_all): Update.
3623 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3624 refresh_window.
3625 (show_source_or_disasm_and_command): Likewise.
3626 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3627 (struct tui_source_window_base) <refresh>: Likewise.
3628
f6cc34a9
TT
36292019-07-17 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-winsource.c (tui_clear_source_content)
3632 (tui_show_source_content): Update.
3633 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3634 whether content is empty.
3635 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3636 Remove.
3637
f31ec9af
TT
36382019-07-17 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3641 window's contents.
3642 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3643 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3644
d1b6f1e5
TT
36452019-07-17 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3648 (struct tui_data_item_window): Update.
3649
d9743a13
TT
36502019-07-17 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3653 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3654 defines.
3655
caf0bc4e
TT
36562019-07-17 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui-winsource.h (tui_erase_source_content)
3659 (tui_clear_source_content): Remove "display_prompt" parameter.
3660 * tui/tui-winsource.c (tui_update_source_window_as_is)
3661 (tui_update_source_windows_with_addr): Update.
3662 (tui_clear_source_content): Remove "display_prompt" parameter.
3663 (tui_erase_source_content): Likewise. Simplify.
3664 (tui_show_source_content): Update.
3665 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3666 * tui/tui-stack.c (tui_show_frame_info): Update.
3667 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3668 Remove defines.
3669
9d391078
TT
36702019-07-17 Tom Tromey <tom@tromey.com>
3671
3672 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3673 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3674 parameter.
3675 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3676 parameter.
3677
a38da35d
TT
36782019-07-17 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-winsource.c (tui_clear_source_content)
3681 (tui_show_source_content, tui_show_exec_info_content)
3682 (tui_clear_exec_info_content): Update.
3683 * tui/tui-stack.c (tui_show_locator_content): Update.
3684 (tui_show_frame_info): Update.
3685 * tui/tui-source.h (tui_source_window): Don't declare.
3686 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3687 from tui_source_is_displayed.
3688 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3689 Remove field.
3690 (struct tui_source_window_base) <content_in_use>: New field. Now
3691 bool.
3692 (struct tui_source_window) <showing_source_p>: New method.
3693 (TUI_SRC_WIN): Change cast.
3694 * tui/tui-data.c (tui_initialize_static_data): Update.
3695
c2cd8994
TT
36962019-07-17 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3699 location_matches_p.
3700 * tui/tui-source.c (tui_source_window::location_matches_p): New
3701 method.
3702 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3703 method.
3704 * tui/tui-data.h (struct tui_source_window_base)
3705 <location_matches_p>: New method.
3706 (struct tui_source_window, struct tui_disasm_window)
3707 <location_matches_p>: Likewise.
3708
4dde7b34
TT
37092019-07-17 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui-win.c (tui_set_win_height_command): Rename from
3712 tui_set_win_height.
3713 (tui_set_win_height_command): Remove.
3714
b73dd877
TT
37152019-07-17 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-source.c (tui_source_window): New constructor. Add
3718 observer.
3719 (~tui_source_window): New destructor.
3720 (tui_source_window::style_changed): New method.
3721 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3722 (tui_attach_detach_observers): Update.
3723 * tui/tui-data.h (struct tui_source_window): Make constructor not
3724 inline. Add destructor.
3725 (struct tui_source_window) <style_changed>: New method.
3726 <m_observable>: New member.
3727
ae2b5380
TT
37282019-07-17 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3731 * tui/tui-win.c (tui_resize_all): Fix typo.
3732
1ce3e844
TT
37332019-07-17 Tom Tromey <tom@tromey.com>
3734
3735 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3736 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3737 (tui_refresh_all): Remove "list" parameter. Use foreach.
3738 * tui/tui-win.c (window_name_completer): Use foreach.
3739 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3740 (update_tab_width): Likewise.
3741 * tui/tui-layout.c (show_layout): Update.
3742 * tui/tui-data.h (class tui_window_iterator): New.
3743 (struct all_tui_windows): New.
3744 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3745
fe3eaf1c
TT
37462019-07-17 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3749 parameter. Don't reference globals.
3750 (tui_reg_command): Update.
3751
368c1354
TT
37522019-07-17 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-regs.c (tui_show_registers): Simplify.
3755
e80cd204
TT
37562019-07-17 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui-regs.c (tui_show_registers): Update.
3759 (tui_show_register_group): Add win_info parameter.
3760
aca2dd16
TT
37612019-07-17 Tom Tromey <tom@tromey.com>
3762
3763 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3764 Rename from tui_display_reg_element_at_line.
3765 (tui_data_window::display_registers_from_line): Update.
3766 * tui/tui-data.h (struct tui_data_window)
3767 <display_reg_element_at_line>: New method.
3768
517e9505
TT
37692019-07-17 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui-regs.h (tui_display_registers_from)
3772 (tui_display_registers_from_line): Don't declare.
3773 * tui/tui-windata.c (tui_data_window::display_all_data)
3774 (tui_data_window::refresh_all)
3775 (tui_data_window::do_scroll_vertical): Update.
3776 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3777 from tui_display_registers_from.
3778 (tui_display_reg_element_at_line): Update.
3779 (tui_data_window::display_registers_from_line): Rename from
3780 tui_display_registers_from_line.
3781 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3782 display_registers_from_line>: New methods.
3783
f76d8b19
TT
37842019-07-17 Tom Tromey <tom@tromey.com>
3785
3786 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3787 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3788 from tui_erase_data_content.
3789 (tui_data_window::display_all_data)
3790 (tui_data_window::refresh_all)
3791 (tui_data_window::do_scroll_vertical): Update.
3792 * tui/tui-regs.c (tui_show_registers): Update.
3793 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3794 New method.
3795
b4094625
TT
37962019-07-17 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3799 declare.
3800 * tui/tui-windata.c
3801 (tui_data_window::delete_data_content_windows): Rename from
3802 tui_delete_data_content_windows.
3803 (tui_data_window::display_all_data)
3804 (tui_data_window::do_scroll_vertical): Update.
3805 * tui/tui-data.h (struct tui_data_window)
3806 <delete_data_content_windows>: New method.
3807
c223a729
TT
38082019-07-17 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3811 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3812
50daf268
TT
38132019-07-17 Tom Tromey <tom@tromey.com>
3814
3815 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3816 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3817 from tui_display_all_data.
3818 * tui/tui-win.c
3819 (tui_data_window::do_make_visible_with_new_height): Update.
3820 * tui/tui-regs.c (tui_show_registers): Update.
3821 * tui/tui-layout.c (tui_set_layout): Update.
3822 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3823 method.
3824
df5f8cab
TT
38252019-07-17 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3828 * tui/tui-windata.c (tui_display_data_from): Remove.
3829 (tui_data_window::refresh_all): Update.
3830
80cb6c27
TT
38312019-07-17 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3834 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3835 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3836 tui_display_registers_from_line.
3837 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3838 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3839 "force_display" parameter.
3840
baff0c28
TT
38412019-07-17 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3844 declare.
3845 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3846 Rename from tui_first_reg_element_no_inline.
3847 (tui_display_reg_element_at_line)
3848 (tui_display_registers_from_line): Update.
3849 * tui/tui-data.h (struct tui_data_window)
3850 <first_reg_element_no_inline>: New method.
3851
3b23c5f2
TT
38522019-07-17 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-windata.c (tui_display_data_from)
3855 (tui_data_window::do_scroll_vertical): Update.
3856 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3857 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3858 Rename from tui_line_from_reg_element_no.
3859 (tui_display_registers_from_line): Update.
3860 * tui/tui-data.h (struct tui_data_window)
3861 <line_from_reg_element_no>: New method.
3862
0b5ec218
TT
38632019-07-17 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3866 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3867 tui_last_regs_line_no.
3868 (tui_display_reg_element_at_line)
3869 (tui_display_registers_from_line): Update.
3870 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3871 method.
3872
0807ab7b
TT
38732019-07-17 Tom Tromey <tom@tromey.com>
3874
3875 PR tui/24722:
3876 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3877 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3878 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3879 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3880 (tui_update_breakpoint_info): Likewise.
3881 * tui/tui-hooks.c (tui_event_create_breakpoint)
3882 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3883 Update.
3884
9ad7fdef
TT
38852019-07-17 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3888
5813316f
TT
38892019-07-17 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-winsource.c (tui_update_source_window_as_is)
3892 (tui_update_source_windows_with_addr): Update.
3893 * tui/tui-source.h (tui_set_source_content)
3894 (tui_show_symtab_source): Add "win_info" parameter.
3895 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3896 parameter.
3897 (tui_show_symtab_source): Likewise.
3898
00e264e7
TT
38992019-07-17 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-wingeneral.c
3902 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3903
06210ce4
TT
39042019-07-17 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3907 (struct tui_cmd_window) <can_scroll>: New method.
3908 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3909 method.
3910
381befee
TT
39112019-07-17 Tom Tromey <tromey@adacore.com>
3912
3913 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3914 do_field_signed>: Rename. Change type of "value".
3915 * ui-out.c (ui_out::field_signed): Rename from field_int.
3916 Change type of "value".
3917 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3918 type of "value".
3919 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3920 do_field_int. Change type of "value".
3921 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3922 do_field_int. Change type of "value".
3923 * tracepoint.c (trace_status_mi, tfind_1)
3924 (print_one_static_tracepoint_marker): Update.
3925 * thread.c (print_thread_info_1, print_selected_thread_frame):
3926 Update.
3927 * stack.c (print_frame, print_frame_info): Update.
3928 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3929 Update.
3930 * source.c (print_source_lines_base): Update.
3931 * skip.c (info_skip_command): Update.
3932 * record-btrace.c (btrace_ui_out_decode_error)
3933 (btrace_call_history_src_line): Update.
3934 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3935 Update.
3936 * progspace.c (print_program_space): Update.
3937 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3938 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3939 do_field_int. Change type of "value".
3940 * mi/mi-out.c (mi_ui_out::do_table_begin)
3941 (mi_ui_out::do_table_header): Update.
3942 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3943 type of "value".
3944 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3945 (mi_cmd_data_list_changed_registers, output_register)
3946 (mi_cmd_data_read_memory, mi_load_progress)
3947 (mi_cmd_trace_frame_collected): Update.
3948 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3949 Update.
3950 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3951 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3952 (mi_cmd_var_list_children, varobj_update_one): Update.
3953 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3954 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3956 * inferior.c (print_inferior): Update.
3957 * gdb_bfd.c (print_one_bfd): Update.
3958 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3959 Update.
3960 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3961 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3962 do_field_int. Change type of "value".
3963 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3964 do_field_int. Change type of "value".
3965 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3966 (print_one_breakpoint_location, print_it_catch_fork)
3967 (print_one_catch_fork, print_it_catch_vfork)
3968 (print_one_catch_vfork, print_it_catch_solib)
3969 (print_it_catch_exec, print_it_ranged_breakpoint)
3970 (print_mention_watchpoint, print_mention_masked_watchpoint)
3971 (bkpt_print_it, update_static_tracepoint): Update.
3972 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3973 * break-catch-syscall.c (print_it_catch_syscall): Update.
3974 * ada-tasks.c (print_ada_task_info): Update.
3975 * ada-lang.c (print_it_exception, print_mention_exception):
3976 Update.
3977
6b78c3f8
AB
39782019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 PR breakpoints/24541
3981 * gdbarch.c: Regenerate.
3982 * gdbarch.h: Regenerate.
3983 * gdbarch.sh: Adjust return type and parameter types for
3984 'stap_adjust_register'.
3985 (i386_stap_adjust_register): Adjust signature and return new
3986 register name.
3987 * stap-probe.c (stap_parse_register_operand): Adjust use of
3988 'gdbarch_stap_adjust_register'.
3989
d72a9b85
TT
39902019-07-17 Tom Tromey <tromey@adacore.com>
3991
3992 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3993 declare VEC.
3994 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3995 std::vector.
3996 (struct s390_process_info): Add initializers.
3997 (s390_add_process): Use new.
3998 (s390_linux_nat_target::low_forget_process): Use delete.
3999 (s390_linux_nat_target::low_new_fork)
4000 (s390_linux_nat_target::stopped_by_watchpoint)
4001 (s390_linux_nat_target::low_prepare_to_resume)
4002 (s390_linux_nat_target::insert_watchpoint)
4003 (s390_linux_nat_target::insert_hw_breakpoint)
4004 (s390_linux_nat_target::remove_watchpoint)
4005 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4006
206e6c58
JB
40072019-07-16 John Baldwin <jhb@FreeBSD.org>
4008
4009 * aarch64-fbsd-nat.c: Include regcache.h.
4010 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4011 argument.
4012 (aarch64_fbsd_nat_target::fetch_registers)
4013 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4014 variable.
4015 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4016
cbde90f2
JB
40172019-07-16 John Baldwin <jhb@FreeBSD.org>
4018
4019 * fbsd-nat.c: Include gdbarch.h.
4020
07128006
TT
40212019-07-15 Tom Tromey <tromey@adacore.com>
4022
4023 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4024
1f77b012
TT
40252019-07-15 Tom Tromey <tromey@adacore.com>
4026
4027 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4028 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4029 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4030 * cli-out.c (cli_ui_out::do_field_int): New method.
4031 * ui-out.c (ui_out::field_unsigned): New method.
4032 * symfile.c (generic_load): Use field_unsigned.
4033 (print_transfer_performance): Likewise.
4034 * record-btrace.c (ui_out_field_uint): Remove.
4035 (btrace_call_history_insn_range, btrace_call_history): Use
4036 field_unsigned.
4037 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4038 field_unsigned.
4039 * ui-out.h (class ui_out) <field_unsigned>: New method.
4040 <do_field_unsigned>: Likewise.
4041
33eca680
TT
40422019-07-15 Tom Tromey <tromey@adacore.com>
4043
4044 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4045 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4046 * target.c (flash_erase_command): Use field_string.
4047 * infrun.c (print_signal_received_reason): Use field_string.
4048 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4049 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4050 field_string.
4051 * ada-tasks.c (print_ada_task_info): Use field_string.
4052
ca8d69be
TT
40532019-07-15 Tom Tromey <tromey@adacore.com>
4054
4055 * target.c (flash_erase_command): Use field_core_addr.
4056 * symfile.c (generic_load): Use field_core_addr.
4057 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4058 Use field_core_addr.
4059 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4060 field_core_addr.
4061
0d4e84ed
AB
40622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4065 value if its desired type is smaller than a CORE_ADDR and signed.
4066
9a49df9d
AB
40672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4070 of changes to field names, and use new is_reference field to
4071 decide if a property is a reference or not.
4072 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4073 field.
4074 (struct dwarf2_property_baton): Update header comment, rename
4075 'referenced_type' to 'property_type' and update comments.
4076 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4077 default property type, store in property baton, update to take
4078 accound of renamed field.
4079 (read_func_scope): Update call to attr_to_dynamic_prop.
4080 (read_array_type): Likewise.
4081 (dwarf2_per_cu_addr_sized_int_type): New function.
4082 (read_subrange_index_type): Move type finding code to
4083 dwarf2_per_cu_addr_sized_int_type.
4084 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4085 (dwarf2_per_cu_addr_type): New function.
4086 (set_die_type): Update calls to attr_to_dynamic_prop.
4087
b86352cf
AB
40882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4089
4090 * dwarf2read.c (read_subrange_index_type): New function.
4091 (read_subrange_type): Move code into new function and call it.
4092 * gdbtypes.c (create_range_type): Add some asserts.
4093
603490bf
AB
40942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4095
4096 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4097 update return statements.
4098 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4099 declaration, and update comment to match.
4100 * gdbtypes.c (resolve_dynamic_array): Update call to
4101 dwarf2_evaluate_property to match new return type.
4102
592f9d27
AB
41032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * valarith.c (value_subscripted_rvalue): Change lowerbound
4106 parameter type from int to LONGEST.
4107 * value.h (value_subscripted_rvalue): Likewise in declaration.
4108
60cfcb20
AB
41092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * cli/cli-utils.c (info_print_command_completer): New function.
4112 * cli/cli-utils.h: Add 'completer.h' include, and forward
4113 declaration for 'struct cmd_list_element'.
4114 (info_print_command_completer): Declare.
4115 * stack.c (_initialize_stack): Add completer for 'info locals' and
4116 'info args'.
4117 * symtab.c (_initialize_symtab): Add completer for 'info
4118 variables' and 'info functions'.
4119 * NEWS: Mention completion for additional info commands.
4120
b16507e0
AB
41212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * cli/cli-utils.c (extract_info_print_args): Delete.
4124 (extract_arg_maybe_quoted): Delete.
4125 (info_print_options_defs): New variable.
4126 (make_info_print_options_def_group): New function.
4127 (extract_info_print_options): Define new function.
4128 * cli/cli-utils.h (extract_info_print_args): Delete.
4129 (struct info_print_options): New structure.
4130 (extract_info_print_options): Declare new function.
4131 * stack.c (info_locals_command): Update to use new
4132 extract_info_print_options, also add a header comment.
4133 (info_args_command): Likewise.
4134 * symtab.c (info_variables_command): Likewise.
4135 (info_functions_command): Likewise.
4136
021d8588
AB
41372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4140 to extract string arguments.
4141 * common/common-utils.c (extract_string_maybe_quoted): New function.
4142 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4143
b777eb6d
TT
41442019-07-11 Tom Tromey <tromey@adacore.com>
4145
4146 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4147 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4148 * top.h (gdbinit): Don't declare.
4149 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4150 into...
4151 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4152 * top.c (gdb_init): Don't call init_cli_cmds.
4153 (gdbinit): Remove.
4154 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4155
72ee03ff
TT
41562019-07-11 Tom Tromey <tromey@adacore.com>
4157
4158 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4159 after it has been moved.
4160
00db9531
SM
41612019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4162
4163 * valops.c (value_must_coerce_to_target): Change return type to
4164 bool.
4165 * value.h (value_must_coerce_to_target): Likewise.
4166
f2478a7e
SM
41672019-07-10 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * breakpoint.c (is_hardware_watchpoint): Remove
4170 forward-declaration.
4171 (is_masked_watchpoint): Change return type to bool.
4172 (is_tracepoint): Likewise.
4173 (is_breakpoint): Likewise.
4174 (is_hardware_watchpoint): Likewise.
4175 (is_watchpoint): Likewise.
4176 (is_no_memory_software_watchpoint): Likewise.
4177 (is_catchpoint): Likewise.
4178 (breakpoint_1): Make FILTER parameter's return type bool.
4179 is_masked_watchpoint): Change return type to bool.
4180 (save_breakpoints): Make FILTER parameter's return type bool.
4181 * breakpoint.h (is_breakpoint): Change return type to bool.
4182 (is_watchpoint): Likewise.
4183 (is_catchpoint): Likewise.
4184 (is_tracepoint): Likewise.
4185
0d12e84c
TT
41862019-07-10 Tom Tromey <tom@tromey.com>
4187
4188 * defs.h: Don't include gdbarch.h.
4189 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4190 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4191 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4192 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4193 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4194 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4195 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4196 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4197 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4198 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4199 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4200 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4201 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4202 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4203 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4204 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4205 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4206 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4207 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4208 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4209 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4210 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4211 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4212 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4213 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4214 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4215 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4216
f06f1252
TT
42172019-07-10 Tom Tromey <tromey@adacore.com>
4218
4219 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4220 * breakpoint.c (init_ada_exception_breakpoint): Register as
4221 bp_catchpoint.
4222 (print_one_breakpoint_location, print_one_breakpoint): Use
4223 is_ada_exception_catchpoint.
4224 * ada-lang.c (class ada_catchpoint_location): Pass
4225 bp_loc_software_breakpoint to bp_location constructor.
4226 (is_ada_exception_catchpoint): New function.
4227
7a5d944b
TT
42282019-07-10 Tom Tromey <tromey@adacore.com>
4229
4230 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4231 VEC.
4232 (struct arm_exidx_entry): New method operator<.
4233 (struct arm_exidx_data) <section_maps>: Change type.
4234 (arm_exidx_data_free): Remove.
4235 (arm_exidx_data_key): Change type. Move lower.
4236 (arm_exidx_new_objfile): Update.
4237 (arm_compare_exidx_entries): Remove.
4238 (arm_find_exidx_entry, _initialize_arm_tdep)
4239
48c66e1d
TT
42402019-07-10 Tom Tromey <tromey@adacore.com>
4241
4242 * solib-spu.c (ocl_program_data_key): Change type.
4243 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4244 Update.
4245
a269fbf1
TT
42462019-07-10 Tom Tromey <tromey@adacore.com>
4247
4248 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4249 (struct solib_aix_inferior_data) <library_list>: Change type.
4250 (solib_aix_inferior_data_handle): Change type.
4251 (get_solib_aix_inferior_data): Update.
4252 (solib_aix_free_library_list): Remove.
4253 (library_list_start_library): Update.
4254 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4255 return type.
4256 (solib_aix_get_library_list)
4257 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4258 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4259
c294730c
TT
42602019-07-10 Tom Tromey <tromey@adacore.com>
4261
4262 * solib-dsbt.c (struct dsbt_info): Add initializers.
4263 (solib_dsbt_pspace_data): Change type.
4264 (dsbt_pspace_data_cleanup): Remove.
4265 (get_dsbt_info, _initialize_dsbt_solib): Update.
4266
9d52077d
TT
42672019-07-10 Tom Tromey <tromey@adacore.com>
4268
4269 * spu-tdep.c (spu_overlay_data): Change type.
4270 (spu_get_overlay_table, spu_overlay_new_objfile)
4271 (_initialize_spu_tdep): Update.
4272
22a20dca
TT
42732019-07-10 Tom Tromey <tromey@adacore.com>
4274
4275 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4276 destructor.
4277 (dbx_objfile_data_key): Change type and declare later.
4278 (DBX_SYMFILE_INFO): Rewrite.
4279 * dbxread.c (dbx_objfile_data_key): Change type.
4280 (dbx_symfile_init): Update.
4281 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4282 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4283 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4284
cb60f420
TT
42852019-07-10 Tom Tromey <tromey@adacore.com>
4286
4287 * jit.c (jit_program_space_key): Change type. Move lower.
4288 (get_jit_program_space_data): Update.
4289 (jit_program_space_data_cleanup): Remove.
4290 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4291 Update.
4292 (struct jit_program_space_data): Add initializers.
4293
51df2ae3
TT
42942019-07-10 Tom Tromey <tromey@adacore.com>
4295
4296 * solib-darwin.c (struct darwin_info): Add initializers.
4297 (solib_darwin_pspace_data): Change type.
4298 (darwin_pspace_data_cleanup): Remove.
4299 (get_darwin_info, _initialize_darwin_solib): Update.
4300
18101a35
TT
43012019-07-10 Tom Tromey <tromey@adacore.com>
4302
4303 * remote-sim.c (struct sim_inferior_data): Add initializers,
4304 constructor, and destructor.
4305 (sim_inferior_data_key): Change type. Move lower.
4306 (check_for_duplicate_sim_descriptor): Update.
4307 (get_sim_inferior_data): Use new. Update.
4308 (~sim_inferior_data_cleanup): Rename from
4309 sim_inferior_data_cleanup. Simplify.
4310 (gdbsim_close_inferior, simulator_command)
4311 (sim_command_completer, _initialize_remote_sim): Update.
4312 (next_pid, INITIAL_PID): Move earlier.
4313
05b08ac1
TT
43142019-07-10 Tom Tromey <tromey@adacore.com>
4315
4316 * python/python-internal.h (create_thread_object): Return
4317 gdbpy_ref.
4318 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4319 * python/py-inferior.c (struct threadlist_entry): Add
4320 constructor.
4321 <thread_obj>: Now a gdbpy_ref.
4322 (thread_to_thread_object): Update.
4323 (add_thread_object): Use new.
4324 (delete_thread_object): Use delete.
4325 (infpy_threads): Update.
4326 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4327 GIL.
4328
32372d80
TT
43292019-07-10 Tom Tromey <tromey@adacore.com>
4330
4331 * valops.c (value_cast): Specialize error message for Ada.
4332
5c458ae8
SM
43332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4336
4c462cb0
SM
43372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4338
4339 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4340 bpstat_should_step): Return bool, adjust comments.
4341 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4342 bpstat_should_step): Likewise.
4343
89abbcc2
AH
43442019-07-10 Alan Hayward <alan.hayward@arm.com>
4345
4346 * features/Makefile: Use feature target descriptions for Arm.
4347 * features/arm/arm-core.c: Generate new file.
4348 * features/arm/arm-fpa.c: Likewise.
4349 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4350 * features/arm/arm-m-profile.c: Likewise.
4351 * features/arm/arm-vfpv2.c: Likewise.
4352 * features/arm/arm-vfpv3.c: Likewise.
4353 * features/arm/xscale-iwmmxt.c: Likewise.
4354 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4355
166a82be
AH
43562019-07-10 Alan Hayward <alan.hayward@arm.com>
4357
4358 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4359 ptrace earlier.
4360
9fb4c7e9
AH
43612019-07-10 Alan Hayward <alan.hayward@arm.com>
4362
4363 * features/aarch64-pauth.c: Regenerate.
4364
e2d0f980
SM
43652019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4368 bool.
4369 (bpstat_what): Use false instead of 0.
4370
a38118e5
PA
43712019-07-09 Pedro Alves <palves@redhat.com>
4372
4373 * break-catch-throw.c (is_exception_catchpoint): New.
4374 * breakpoint.c (print_one_breakpoint_location): New parameter
4375 'raw_loc'. Handle it. Use
4376 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4377 looking at the breakpoint's type.
4378 (print_one_breakpoint): If handling "maint info breakpoints", also
4379 print locations of exception catchpoints.
4380 * breakpoint.h (is_exception_catchpoint): Declare.
4381
cb1e4e32
PA
43822019-07-09 Pedro Alves <palves@redhat.com>
4383
4384 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4385 "addr" field.
4386 (allocate_location_exception_catchpoint): New.
4387 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4388 (initialize_throw_catchpoint_ops): Install
4389 allocate_location_exception_catchpoint as allocate_location
4390 method.
4391 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4392 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4393 bp_loc_other.
4394 (breakpoint_address_is_meaningful): Delete.
4395 (bl_address_is_meaningful): New.
4396 (breakpoint_locations_match): Adjust comment.
4397 (bp_location_from_bp_type): New, factored out of...
4398 (bp_location::bp_location(breakpoint *)): ... this.
4399 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4400 factored out of...
4401 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4402 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4403 breakpoint_address_is_meaningful.
4404 (bp_locations_compare): Adjust comment.
4405 (update_global_location_list): Use bl_address_is_meaningful
4406 instead of breakpoint_address_is_meaningful.
4407 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4408 explicit.
4409 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4410 * python/py-breakpoint.c (bppy_get_location): No longer check
4411 whether location is null.
4412
b58a68fe
PA
44132019-07-09 Pedro Alves <palves@redhat.com>
4414
4415 PR c++/15468
4416 * breakpoint.c (print_one_breakpoint_location): Remove
4417 single-location assert.
4418
268a13a5
TT
44192019-07-09 Tom Tromey <tom@tromey.com>
4420
4421 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4422 * configure: Rebuild.
4423 * configure.ac: Change common to gdbsupport.
4424 * gdbsupport: Rename from common.
4425 * acinclude.m4: Change common to gdbsupport.
4426 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4427 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4428 gdbsupport.
4429 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4430 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4431 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4432 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4433 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4434 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4435 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4436 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4437 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4438 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4439 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4440 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4441 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4442 coff-pe-read.c, command.h, compile/compile-c-support.c,
4443 compile/compile-c.h, compile/compile-cplus-symbols.c,
4444 compile/compile-cplus-types.c, compile/compile-cplus.h,
4445 compile/compile-loc2c.c, compile/compile.c, completer.c,
4446 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4447 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4448 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4449 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4450 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4451 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4452 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4453 features/aarch64-core.c, features/aarch64-fpu.c,
4454 features/aarch64-pauth.c, features/aarch64-sve.c,
4455 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4456 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4457 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4458 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4459 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4460 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4461 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4462 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4463 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4464 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4465 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4466 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4467 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4468 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4469 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4470 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4471 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4472 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4473 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4474 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4475 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4476 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4477 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4478 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4479 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4480 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4481 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4482 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4483 minsyms.c, mips-linux-tdep.c, namespace.h,
4484 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4485 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4486 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4487 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4488 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4489 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4490 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4491 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4492 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4493 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4494 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4495 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4496 procfs.c, producer.c, progspace.h, psymtab.h,
4497 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4498 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4499 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4500 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4501 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4502 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4503 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4504 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4505 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4506 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4507 target-memory.c, target.c, target.h, target/waitstatus.c,
4508 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4509 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4510 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4511 unittests/array-view-selftests.c,
4512 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4513 unittests/common-utils-selftests.c,
4514 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4515 unittests/format_pieces-selftests.c,
4516 unittests/function-view-selftests.c,
4517 unittests/lookup_name_info-selftests.c,
4518 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4519 unittests/mkdir-recursive-selftests.c,
4520 unittests/observable-selftests.c,
4521 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4522 unittests/parse-connection-spec-selftests.c,
4523 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4524 unittests/scoped_fd-selftests.c,
4525 unittests/scoped_mmap-selftests.c,
4526 unittests/scoped_restore-selftests.c,
4527 unittests/string_view-selftests.c, unittests/style-selftests.c,
4528 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4529 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4530 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4531 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4532 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4533 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4534
5b0e2db4
AB
45352019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4536
4537 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4538 bool value.
4539 (decode_digits_ordinary): Set explicit_line field in sal.
4540 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4541 symtab_and_line that was set on an explicit line number in
4542 assembler code. Do always update the recorded symtab and line if
4543 we do skip the prologue.
4544
0ba852ab
AB
45452019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * breakpoint.c (set_breakpoint_location_function): Remove
4548 explicit_loc parameter.
4549 (momentary_breakpoint_from_master): Update call to
4550 set_breakpoint_location_function.
4551 (add_location_to_breakpoint): Likewise.
4552
b3a7d171
AB
45532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4554
4555 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4556 required features based on default bfd type when no specific bfd
4557 is present.
4558
1f6f6e21
PW
45592019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4560
4561 * NEWS: Mention that GDB printf and eval commands can now print
4562 C-style and Ada-style convenience var strings without
4563 calling the inferior.
4564 * printcmd.c (printf_c_string): Locally print GDB internal var
4565 instead of transiting via the inferior.
4566 (printf_wide_c_string): Likewise.
4567
45682019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4569
5862c886 4570 PR breakpoints/25011
ea142fbf
AH
4571 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4572
0598af48
TT
45732019-07-04 Tom Tromey <tom@tromey.com>
4574
4575 PR tui/24724:
4576 * tui/tui-winsource.c (tui_clear_source_content): Update.
4577 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4578 (tui_update_breakpoint_info): Update.
4579 (tui_set_exec_info_content): Update.
4580 * tui/tui-source.c (tui_set_source_content_nil): Update.
4581 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4582 has_break.
4583 * tui/tui-data.h (enum tui_bp_flag): New.
4584 (tui_bp_flags): New enum flags type.
4585 (struct tui_source_element) <break_mode>: Change type. Rename
4586 from has_break.
4587 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4588 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4589 constants.
4590 * tui/tui-winsource.h: Fix comment.
4591
350fab54
AH
45922019-07-04 Alan Hayward <alan.hayward@arm.com>
4593
4594 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4595 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4596 (store_fpregs_to_thread)
4597 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4598 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4599 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4600 (IWMMXT_REGS_SIZE): Add define.
4601 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4602 (fetch_vfp_regs, store_vfp_regs)
4603 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4604 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4605
f0452268
AH
46062019-07-04 Alan Hayward <alan.hayward@arm.com>
4607
4608 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4609 defines.
4610 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4611 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4612 (ARM_INT_REGISTER_SIZE): ...to this.
4613 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4614 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4615 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4616 (arm_linux_collect_gregset, supply_nwfpe_register)
4617 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4618 defines.
4619 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4620 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4621 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4622 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4623 (arm_return_in_memory, arm_store_return_value)
4624 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4625 (arm_record_ld_st_multiple): Likewise.
4626 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4627 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4628
e935475c
AH
46292019-07-04 Alan Hayward <alan.hayward@arm.com>
4630
4631 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4632 AARCH64_DISPLACED_MODIFIED_INSNS.
4633 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4634 (aarch64_displaced_step_copy_insn): Likewise.
4635 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4636 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4637 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4638 ARM_DISPLACED_MODIFIED_INSNS.
4639 * arm-tdep.c (arm_gdbarch_init): Likewise.
4640 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4641 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4642 (struct arm_displaced_step_closure): Use
4643 ARM_DISPLACED_MODIFIED_INSNS.
4644
df0bb381
AH
46452019-07-04 Alan Hayward <alan.hayward@arm.com>
4646
4647 * features/Makefile: Remove unused xml files.
4648 * features/aarch64.xml: Remove.
4649 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4650 * features/i386/amd64-avx-avx512.xml: Remove.
4651 * features/i386/amd64-avx-linux.xml: Remove.
4652 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4653 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4654 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4655 * features/i386/amd64-avx-mpx.xml: Remove.
4656 * features/i386/amd64-avx.xml: Remove.
4657 * features/i386/amd64-linux.xml: Remove.
4658 * features/i386/amd64-mpx-linux.xml: Remove.
4659 * features/i386/amd64-mpx.xml: Remove.
4660 * features/i386/amd64.xml: Remove.
4661 * features/i386/i386-avx-avx512-linux.xml: Remove.
4662 * features/i386/i386-avx-avx512.xml: Remove.
4663 * features/i386/i386-avx-linux.xml: Remove.
4664 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4665 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4666 * features/i386/i386-avx-mpx-linux.xml: Remove.
4667 * features/i386/i386-avx-mpx.xml: Remove.
4668 * features/i386/i386-avx.xml: Remove.
4669 * features/i386/i386-linux.xml: Remove.
4670 * features/i386/i386-mmx-linux.xml: Remove.
4671 * features/i386/i386-mmx.xml: Remove.
4672 * features/i386/i386-mpx-linux.xml: Remove.
4673 * features/i386/i386-mpx.xml: Remove.
4674 * features/i386/i386.xml: Remove.
4675 * features/i386/x32-avx-avx512-linux.xml: Remove.
4676 * features/i386/x32-avx-linux.xml: Remove.
4677 * features/i386/x32-linux.xml: Remove.
4678
edd6266a
AH
46792019-07-04 Alan Hayward <alan.hayward@arm.com>
4680
4681 * regformats/aarch64.dat: Remove.
4682 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4683 * regformats/i386/amd64-avx-linux.dat: Remove.
4684 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4685 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4686 * regformats/i386/amd64-linux.dat: Remove.
4687 * regformats/i386/amd64-mpx-linux.dat: Remove.
4688 * regformats/i386/amd64.dat: Remove.
4689 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4690 * regformats/i386/i386-avx-linux.dat: Remove.
4691 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4692 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4693 * regformats/i386/i386-linux.dat: Remove.
4694 * regformats/i386/i386-mmx-linux.dat: Remove.
4695 * regformats/i386/i386-mpx-linux.dat: Remove.
4696 * regformats/i386/i386.dat: Remove.
4697 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4698 * regformats/i386/x32-avx-linux.dat: Remove.
4699 * regformats/i386/x32-linux.dat: Remove.
4700
2b40fda7
AH
47012019-07-04 Alan Hayward <alan.hayward@arm.com>
4702
4703 * aarch64-tdep.c: Remove xml self tests.
4704 * amd64-linux-tdep.c: Likewise.
4705 * amd64-tdep.c: Likewise.
4706 * i386-linux-tdep.c: Likewise.
4707 * i386-tdep.c: Likewise.
4708
5f4ba3e7
PA
47092019-07-03 Pedro Alves <palves@redhat.com>
4710
4711 PR cli/24732
4712 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4713 (pipe_cmd_option_defs): New.
4714 (make_pipe_cmd_options_def_group): New.
4715 (pipe_command): Use gdb::option::process_options.
4716 (pipe_command_completer): New function.
4717 (_initialize_cli_cmds): Install completer for "pipe" command.
4718
3d9be6f5
PA
47192019-07-03 Pedro Alves <palves@redhat.com>
4720
4721 * cli/cli-option.c (union option_value) <string>: New field.
4722 (struct option_def_and_value): Add ctor, move ctor, dtor and
4723 use DISABLE_COPY_AND_ASSIGN.
4724 (option_def_and_value::clear_value): New.
4725 (parse_option, save_option_value_in_ctx, get_val_type_str)
4726 (add_setshow_cmds_for_options): Handle var_string.
4727 * cli-option.h (union option_def::var_address) <string>: New
4728 field.
4729 (struct string_option_def): New.
4730 * maint-test-options.c (struct test_options_opts): Add default
4731 ctor and use DISABLE_COPY_AND_ASSIGN.
4732 <string_opt>: New field.
4733 (test_options_opts::~test_options_opts): New.
4734 (test_options_opts::dump): Also dump "-string".
4735 (test_options_option_defs): Install "string.
4736
41fc454c
PA
47372019-07-03 Pedro Alves <palves@redhat.com>
4738
4739 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4740 option_value with a null enumeration.
4741 (complete_options): Save the option values in the context.
4742 (save_option_value_in_ctx): New, factored out from ...
4743 (process_options): ... here.
4744 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4745 of the function.
4746 * maint-test-options.c (test_options_opts::dump): New, factored
4747 out from ...
4748 (maintenance_test_options_command_mode): ... here.
4749 (maintenance_test_options_command_completion_result): Delete.
4750 (maintenance_test_options_command_completion_text): Update
4751 comment.
4752 (maintenance_show_test_options_completion_result): Change
4753 prototype. Just print
4754 maintenance_test_options_command_completion_text.
4755 (save_completion_result): New.
4756 (maintenance_test_options_completer_mode): Pass options context to
4757 complete_options, and then save a dump.
4758 (_initialize_maint_test_options): Use add_cmd to install "maint
4759 show test-options-completion-result".
4760
fdbc9870
PA
47612019-07-03 Pedro Alves <palves@redhat.com>
4762
4763 * NEWS (New commands): Mention "with" and "maint with".
4764 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4765 (with_command, with_command_completer): New.
4766 (pipe_command): Adjust to new repeat_previous
4767 interface.
4768 (_initialize_cli_cmds): Install the "with" command and its "w"
4769 alias.
4770 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4771 declarations.
4772 * cli/cli-setshow.c (parse_cli_var_uinteger)
4773 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4774 argument strings for all var_types.
4775 (get_setshow_command_value_string): New, factored out from ...
4776 (do_show_command): ... this.
4777 * cli/cli-setshow.h: Include <string>.
4778 (get_setshow_command_value_string): Declare.
4779 * command.h (repeat_previous): Now returns const char *. Adjust
4780 comment.
4781 * maint.c: Include "cli/cli-cmds.h".
4782 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4783 (_initialize_maint_cmds): Register the "maintenance with" command.
4784 * top.c (repeat_previous): Move bits from pipe_command here:
4785 Return the saved command line, if any; error out if there's no
4786 command to relaunch.
4787
c6ac8931
PA
47882019-07-03 Pedro Alves <palves@redhat.com>
4789
4790 * NEWS (New commands): Mention "maint set/show test-settings"
4791 instead of "maint test-settings".
4792 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4793 (maintenance_test_settings_set_list): Rename to ...
4794 (maintenance_set_test_settings_list): ... this.
4795 (maintenance_test_settings_show_list): Rename to ...
4796 (maintenance_show_test_settings_list): ... this.
4797 (maintenance_test_settings_cmd): Delete.
4798 (maintenance_test_settings_set_cmd): ...
4799 (maintenance_set_test_settings_cmd): ... this.
4800 (maintenance_test_settings_show_cmd): ...
4801 (maintenance_show_test_settings_cmd): ... this.
4802 (maintenance_test_settings_show_value_cmd):
4803 (maintenance_show_test_settings_value_cmd): ... this.
4804 (_initialize_maint_test_settings): No longer install the "maint
4805 test-settings" prefix command. Rename "maint test-settings set"
4806 to "maint set test-settings", and "maint test-settings show" to
4807 "maint show test-settings". Adjust all subcommands.
4808
d1fcf2fd
PA
48092019-07-03 Pedro Alves <palves@redhat.com>
4810
4811 * maint-test-settings.c: Fix file's intro comment. Replace all
4812 references to "test-options" with references to "test-settings",
4813 in comments.
4814
970f9d09
PA
48152019-07-03 Pedro Alves <palves@redhat.com>
4816
4817 * maint-test-settings.c (maintenance_test_settings_xxx)
4818 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4819 New.
4820 (maintenance_test_settings_enums): Use them.
4821 (maintenance_test_settings_enum): Default to
4822 maintenance_test_settings_xxx.
4823 (_initialize_maint_test_settings): Initialize
4824 MAINTENANCE_TEST_SETTINGS_FILENAME.
4825
f3869b1a
SM
48262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4827
4828 * breakpoint.h (remove_breakpoints_inf): Change return type to
4829 void, move function documentation here.
4830 * breakpoint.c (remove_breakpoints_inf): Change return type to
4831 void, move function documentation to header.
4832
54d66006
PA
48332019-07-02 Pedro Alves <palves@redhat.com>
4834
4835 * NEWS (Completion improvements): Mention "info threads".
4836 * thread.c (struct info_threads_opts, info_threads_option_defs)
4837 (make_info_threads_options_def_group): New.
4838 (info_threads_command): Use gdb::option::process_options.
4839 (info_threads_command_completer): New.
4840 (_initialize_thread): Use gdb::option::build_help to build the
4841 help text for "info threads".
4842
854f6088
SM
48432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4844
4845 * defs.h (generic_load): Move from here...
4846 * symfile.h (generic_load): ... to here. Rename name parameter
4847 to args.
4848 * symfile.c (generic_load): Add comment.
4849
54ee4252
TT
48502019-07-01 Tom Tromey <tromey@adacore.com>
4851
4852 * dwarf2read.c
4853 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4854 declaration of without_params. Fix formatting.
4855
65392b3e
TT
48562019-07-01 Tom Tromey <tromey@adacore.com>
4857
4858 * ada-exp.y (find_primitive_type): Update.
4859 * ada-lang.h (ada_lookup_symbol): Update.
4860 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4861 parameter.
4862 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4863
7d7571f0
SDJ
48642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4865
4866 PR breakpoints/24541
4867 * gdbarch.c: Regenerate.
4868 * gdbarch.h: Regenerate.
4869 * gdbarch.sh: Add 'stap_adjust_register'.
4870 * i386-tdep.c: Include '<unordered_set>'.
4871 (i386_stap_adjust_register): New function.
4872 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4873 * stap-probe.c (stap_parse_register_operand): Call
4874 'gdbarch_stap_adjust_register'.
4875
5af5392a
SDJ
48762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4877
4878 PR python/24742
4879 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4880 * python/python.c (do_start_initialization): Use 'xmalloc'
4881 instead of 'PyMem_Malloc'.
4882
10d06d82
TT
48832019-06-28 Tom Tromey <tromey@adacore.com>
4884
4885 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4886 for Ada.
4887
1b7f24cd
TT
48882019-06-27 Tom Tromey <tromey@adacore.com>
4889
4890 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4891 objfile_key.
4892 (arm_find_mapping_symbol, arm_record_special_symbol)
4893 (_initialize_arm_tdep): Update.
4894 (arm_objfile_data_free): Remove.
4895
3d507ff2
TT
48962019-06-27 Tom Tromey <tromey@adacore.com>
4897
4898 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4899 to cp_print_static_field.
4900
762c164d
TT
49012019-06-26 Tom Tromey <tromey@adacore.com>
4902
4903 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4904 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4905 declare.
4906
aa2f9bcf
AH
49072019-06-26 Alan Hayward <alan.hayward@arm.com>
4908
4909 * features/aarch64-core.c (create_feature_aarch64_core):
4910 Regenerate.
4911 * features/aarch64-core.xml: Add cpsr flags.
4912
3426ae57
AH
49132019-06-26 Alan Hayward <alan.hayward@arm.com>
4914
4915 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4916 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4917
4838e44c
SM
49182019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4921 field.
4922 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4923 use.
4924 (arm_record_special_symbol): Don't insert new symbol in sorted
4925 position, push it at the end.
4926
54cc7474
SM
49272019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4928
4929 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4930 (arm_mapping_symbol_s): Remove.
4931 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4932 (arm_mapping_symbol_vec): New typedef.
4933 (struct arm_per_objfile): Add constructor.
4934 <section_maps>: Change type to
4935 std::unique_ptr<arm_mapping_symbol_vec[]>.
4936 (arm_compare_mapping_symbols): Remove.
4937 (arm_find_mapping_symbol): Adjust to section_maps type change.
4938 (arm_objfile_data_free): Call delete on arm_per_objfile.
4939 (arm_record_special_symbol): Adjust to section_maps type change.
4940 Allocate arm_per_objfile with new.
4941
b65b566c
PW
49422019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4943
4944 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4945 with the command prefix.
4946
c2fc64f5
TT
49472019-06-25 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4950 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4951
fb54fa76
TT
49522019-06-25 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4955 type.
4956 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4957 protected.
4958
f7952c57
TT
49592019-06-25 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-winsource.c
4962 (tui_source_window_base::set_is_exec_point_at): Add check against
4963 LOA_ADDRESS.
4964
17568d78
TT
49652019-06-25 Tom Tromey <tom@tromey.com>
4966
4967 * tui/tui-source.c (tui_set_source_content): Don't check before
4968 xfree.
4969 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4970
53e7cdba
TT
49712019-06-25 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-winsource.h (tui_update_source_window_as_is)
4974 (tui_alloc_source_buffer, tui_line_is_displayed)
4975 (tui_addr_is_displayed): Change type of win_info.
4976 * tui/tui-winsource.c (tui_update_source_window_as_is)
4977 (tui_clear_source_content, tui_show_source_line)
4978 (tui_show_source_content, tui_source_window_base::refill)
4979 (tui_source_window_base::set_is_exec_point_at)
4980 (tui_source_window_base::set_is_exec_point_at)
4981 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4982 (tui_alloc_source_buffer, tui_line_is_displayed)
4983 (tui_addr_is_displayed): Change type of win_info. Update.
4984 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4985 (tui_source_window_base::do_make_visible_with_new_height):
4986 Update.
4987 * tui/tui-source.c (tui_set_source_content)
4988 (tui_set_source_content_nil)
4989 (tui_source_window::do_scroll_vertical): Update.
4990 * tui/tui-layout.c (show_layout): Update.
4991 * tui/tui-disasm.c (tui_set_disassem_content)
4992 (tui_disasm_window::do_scroll_vertical): Update.
4993 * tui/tui-data.h (tui_win_content): Remove.
4994 (struct tui_gen_win_info) <content, content_size>: Remove.
4995 (struct tui_source_element): Add initializers and destructor.
4996 (union tui_which_element, struct tui_win_element): Remove.
4997 (struct tui_source_window_base) <content>: New field.
4998 (struct tui_data_window): Remove destructor.
4999 (tui_alloc_content, tui_free_win_content)
5000 (tui_free_all_source_wins_content): Don't declare.
5001 * tui/tui-data.c (tui_initialize_static_data): Update.
5002 (init_content_element, tui_alloc_content): Remove.
5003 (~tui_gen_win_info): Update.
5004 (~tui_data_window, tui_free_all_source_wins_content)
5005 (tui_free_win_content, free_content, free_content_elements):
5006 Remove.
5007
7908abbf
TT
50082019-06-25 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-winsource.h (tui_clear_source_content)
5011 (tui_erase_source_content, tui_show_source_content): Change type
5012 of win_info.
5013 * tui/tui-winsource.c (tui_clear_source_content)
5014 (tui_erase_source_content, tui_show_source_content): Change type
5015 of win_info.
5016 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5017 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5018 win_info.
5019 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5020 win_info.
5021 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5022
02c28df0
TT
50232019-06-25 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-winsource.c (tui_clear_source_content)
5026 (tui_source_window_base::set_is_exec_point_at): Update.
5027 * tui/tui-source.c (tui_set_source_content_nil): Update.
5028 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5029 a bool.
5030 * tui/tui-data.c (init_content_element): Update.
5031
6658b1bf
TT
50322019-06-25 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5035 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5036 * tui/tui-layout.c (init_and_make_win): Update.
5037 * tui/tui.h (enum tui_win_type): Update.
5038 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5039 tui_win_is_auxillary.
5040 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5041 tui_win_is_auxillary.
5042
21e1c91e
TT
50432019-06-25 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5046 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5047 (tui_delete_data_content_windows, tui_display_all_data)
5048 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5049 Update.
5050 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5051 * tui/tui-regs.c (tui_last_regs_line_no)
5052 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5053 (tui_show_registers): Update.
5054 (tui_show_register_group): Return void. Update.
5055 (tui_display_registers_from, tui_display_reg_element_at_line)
5056 (tui_display_registers_from_line, tui_check_register_values):
5057 Update.
5058 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5059 member.
5060 (struct tui_data_window) <regs_content>: Now a std::vector.
5061 <regs_content_count>: Remove.
5062 (tui_add_content_elements, tui_free_data_content): Don't declare.
5063 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5064 (init_content_element): Remove DATA_WIN case. Add assert.
5065 (tui_add_content_elements): Remove.
5066 (tui_data_window): Update.
5067 (tui_free_data_content): Remove.
5068 (free_content_elements): Remove DATA_WIN case.
5069
115ac53b
TT
50702019-06-25 Tom Tromey <tom@tromey.com>
5071
5072 * tui/tui-data.c (tui_data_item_window): Update.
5073 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5074 * tui/tui-windata.c (tui_display_all_data)
5075 (tui_display_data_from_line): Update.
5076 (tui_check_data_values): Remove.
5077 * tui/tui-regs.c (tui_show_register_group)
5078 (tui_display_reg_element_at_line): Update.
5079 * tui/tui-hooks.c (tui_register_changed)
5080 (tui_refresh_frame_and_register_information): Call
5081 tui_check_register_values.
5082 * tui/tui-data.h (struct tui_data_window) <data_content,
5083 data_content_count, data_type>: Remove.
5084 (enum tui_data_type): Remove.
5085
5086 * tui/tui-data.c (tui_data_window::clear_detail)
5087 (~tui_data_window): Update.
5088
eaf9738b
TT
50892019-06-25 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5092 declare.
5093 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5094 Rename from tui_first_data_item_displayed. Update.
5095 (tui_data_window::refresh_all)
5096 (tui_data_window::do_scroll_vertical): Update.
5097 * tui/tui-data.h (struct tui_data_window)
5098 <first_data_item_displayed>: Declare new method.
5099
31ca4723
TT
51002019-06-25 Tom Tromey <tom@tromey.com>
5101
5102 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5103 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5104 contents...
5105 (tui_initialize_static_data): ...here.
5106
41bcff7f
TT
51072019-06-25 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5110 (tui_display_registers_from, tui_check_register_values): Update.
5111 (tui_display_register): Remove win_info parameter; update.
5112 (tui_get_register): Change type of parameters.
5113 * tui/tui-data.h (struct tui_data_element): Remove.
5114 (union tui_which_element) <data>: Remove.
5115 <data_window>: Change type.
5116 (struct tui_data_item_window): New.
5117 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5118 case. Add assert.
5119 (~tui_data_item_window): New destructor.
5120 (free_content_elements): Remove DATA_ITEM_WIN case.
5121
d2802c33
TT
51222019-06-25 Tom Tromey <tom@tromey.com>
5123
5124 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5125 Remove.
5126
dd835f8b
TT
51272019-06-25 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-data.h (struct tui_command_element): Remove.
5130 (union tui_which_element) <command>: Remove.
5131 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5132 assert.
5133 (free_content_elements): Remove CMD_WIN case.
5134
bd7db367
TT
51352019-06-25 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-layout.c (tui_set_layout): Update.
5138 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5139 * tui/tui-data.c (layout_def): Update.
5140
3add462f
TT
51412019-06-25 Tom Tromey <tom@tromey.com>
5142
5143 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5144 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5145 (tui_source_window_base::set_new_height): Update.
5146 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5147 Update.
5148 (tui_set_locator_fullname, tui_set_locator_info)
5149 (tui_show_frame_info): Update.
5150 * tui/tui-source.c (tui_set_source_content)
5151 (tui_source_is_displayed): Update.
5152 * tui/tui-layout.c (show_source_disasm_command, show_data)
5153 (show_source_or_disasm_and_command): Update.
5154 * tui/tui-disasm.c (tui_set_disassem_content)
5155 (tui_get_begin_asm_address): Update.
5156 * tui/tui-data.h (struct tui_locator_element): Remove.
5157 (union tui_which_element) <locator>: Remove.
5158 (struct tui_locator_window): New.
5159 (tui_locator_win_info_ptr): Change return type.
5160 * tui/tui-data.c (_locator): Change type.
5161 (tui_locator_win_info_ptr): Change return type.
5162 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5163 (tui_alloc_content): Add assert.
5164
489e9d8b
TT
51652019-06-25 Tom Tromey <tom@tromey.com>
5166
5167 * tui/tui-winsource.c
5168 (tui_exec_info_window::maybe_allocate_content): New method.
5169 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5170 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5171 (make_source_or_disasm_window): Add cast.
5172 * tui/tui-data.h (union tui_which_element) <simple_string>:
5173 Remove.
5174 (struct tui_source_info): New.
5175 (struct tui_source_window_base) <execution_info>: Change type.
5176 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5177 case, and add assert.
5178 (tui_alloc_content): Add assert.
5179
c3fabb7d
TT
51802019-06-25 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5183 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5184 * tui/tui-data.c (tui_alloc_win_info): Remove.
5185
bbc228ee
TT
51862019-06-25 Tom Tromey <tom@tromey.com>
5187
5188 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5189 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5190 can_highlight.
5191
5fcee43a
TT
51922019-06-25 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5195 make_visible_with_new_height method.
5196 (tui_win_info::make_visible_with_new_height): New method.
5197 (tui_source_window_base::do_make_visible_with_new_height)
5198 (tui_data_window::do_make_visible_with_new_height)
5199 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5200 (make_visible_with_new_height): Remove.
5201 (tui_resize_all, tui_adjust_win_heights): Use
5202 make_visible_with_new_height method.
5203 * tui/tui-data.h (struct tui_win_info)
5204 <do_make_visible_with_new_height, make_visible_with_new_height>:
5205 New methods.
5206 (struct tui_source_window_base, struct tui_data_window)
5207 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5208 methods.
5209
d83f1fe6
TT
52102019-06-25 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5213 method.
5214 (update_tab_width): Call update_tab_width method.
5215 * tui/tui-data.h (struct tui_win_info)
5216 (struct tui_source_window_base) <update_tab_width>: New methods.
5217
17374de4
TT
52182019-06-25 Tom Tromey <tom@tromey.com>
5219
5220 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5221 parameter.
5222 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5223 parameter.
5224 (tui_gen_win_info::make_visible): Update.
5225 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5226 parameter.
5227 * tui/tui-data.h (enum tui_box): New enum.
5228 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5229
f936bca2
TT
52302019-06-25 Tom Tromey <tom@tromey.com>
5231
5232 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5233 init_and_make_win for EXEC_INFO_WIN.
5234 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5235 longer inline.
5236 (struct tui_win_info) <~tui_win_info>: Inline.
5237 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5238 Don't declare.
5239 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5240 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5241 Remove.
5242 (tui_initialize_static_data): Update.
5243 (~tui_gen_win_info): Handle more cleanup here.
5244 (~tui_source_window_base): Delete "execution_info".
5245 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5246
d6ba6a11
TT
52472019-06-25 Tom Tromey <tom@tromey.com>
5248
5249 * tui/tui-layout.c (make_command_window): Don't set
5250 can_highlight.
5251 (show_source_disasm_command): Call the reset method.
5252 (show_data): Don't set can_highlight. Call the reset method.
5253 (tui_gen_win_info::reset): Rename from init_gen_win_info
5254 (init_and_make_win): Simplify. Return tui_gen_win_info.
5255 (show_source_or_disasm_and_command): Call the reset method.
5256 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5257 (struct tui_cmd_window): Set can_highlight.
5258
48a3bd16
TT
52592019-06-25 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5262 from make_visible.
5263 (tui_make_visible, tui_make_invisible): Rewrite.
5264 (tui_win_info::make_visible): Remove.
5265 (tui_source_window_base::make_visible): Update.
5266 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5267 method. Moved from...
5268 (struct tui_win_info) <make_visible>: ...here.
5269
c3bd716f
TT
52702019-06-25 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-winsource.c
5273 (tui_source_window_base::do_scroll_horizontal): Remove direction
5274 parameter.
5275 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5276 direction parameter.
5277 * tui/tui-win.c (tui_win_info::forward_scroll)
5278 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5279 (tui_win_info::right_scroll): Update.
5280 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5281 direction parameter.
5282 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5283 direction parameter.
5284 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5285 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5286 Remove direction parameter.
5287 (struct tui_source_window_base, struct tui_source_window)
5288 (struct tui_disasm_window, struct tui_data_window)
5289 (struct tui_cmd_window): Update.
5290
21c32dca
TT
52912019-06-25 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-winsource.h (tui_set_exec_info_content)
5294 (tui_show_exec_info_content, tui_erase_exec_info_content)
5295 (tui_clear_exec_info_content, tui_update_exec_info): Change
5296 argument to tui_source_window_base.
5297 * tui/tui-winsource.c (tui_set_exec_info_content)
5298 (tui_show_exec_info_content, tui_erase_exec_info_content)
5299 (tui_clear_exec_info_content, tui_update_exec_info): Change
5300 argument to tui_source_window_base.
5301
73fbdc65
TT
53022019-06-25 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5305 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5306
33325343
TT
53072019-06-25 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5310 check.
5311
29d2c474
TT
53122019-06-25 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5315 type to void.
5316 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5317 type to void.
5318 * tui/tui-source.c (tui_set_source_content): Update.
5319 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5320
152f3f4b
TT
53212019-06-25 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-win.c (window_name_completer, tui_set_focus)
5324 (tui_all_windows_info): Use name method.
5325 * tui/tui-data.h (struct tui_gen_win_info)
5326 (struct tui_source_window, struct tui_disasm_window)
5327 (struct tui_data_window, struct tui_cmd_window) <name>: New
5328 method.
5329 (tui_win_name): Don't declare.
5330 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5331 (tui_win_name): Remove.
5332
be4da588
TT
53332019-06-25 Tom Tromey <tom@tromey.com>
5334
5335 * tui/tui-winsource.h (tui_update_source_window)
5336 (tui_update_source_window_as_is): Change parameter type.
5337 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5338 to be a tui_source_window_base.
5339 (tui_update_source_window_as_is): Likewise.
5340 * tui/tui-win.c (make_visible_with_new_height): Update.
5341
5b81daba
TT
53422019-06-25 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-winsource.c (tui_erase_source_content)
5345 (tui_show_source_content, tui_show_exec_info_content)
5346 (tui_erase_exec_info_content): Use refresh_window method.
5347 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5348 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5349 from tui_refresh_win.
5350 (tui_data_window::refresh_window): New method.
5351 (tui_win_info::refresh, tui_source_window_base::refresh)
5352 (tui_refresh_all): Use refresh_window method.
5353 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5354 method.
5355 * tui/tui-regs.c (tui_display_register): Call refresh_window
5356 method.
5357 * tui/tui-layout.c (show_source_disasm_command)
5358 (show_source_or_disasm_and_command): Call refresh_window method.
5359 * tui/tui-data.h (struct tui_gen_win_info)
5360 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5361 New method.
5362
cb2ce893
TT
53632019-06-25 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui.c (tui_rl_other_window, tui_enable)
5366 (tui_is_window_visible, tui_get_command_dimension): Update.
5367 * tui/tui-winsource.c (tui_update_source_window_as_is)
5368 (tui_clear_source_content, tui_erase_source_content)
5369 (tui_show_source_line, tui_source_window_base::refill)
5370 (tui_source_window_base::do_scroll_horizontal)
5371 (tui_source_window_base::set_is_exec_point_at)
5372 (tui_update_breakpoint_info, tui_set_exec_info_content)
5373 (tui_alloc_source_buffer, tui_line_is_displayed)
5374 (tui_addr_is_displayed): Update.
5375 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5376 (tui_check_and_display_highlight_if_needed)
5377 (tui_win_info::make_visible, tui_win_info::refresh)
5378 (tui_refresh_all): Update.
5379 * tui/tui-windata.c (tui_first_data_item_displayed)
5380 (tui_delete_data_content_windows, tui_erase_data_content)
5381 (tui_display_all_data, tui_data_window::refresh_all)
5382 (tui_check_data_values): Update.
5383 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5384 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5385 (tui_win_info::backward_scroll, tui_refresh_all_win)
5386 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5387 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5388 (tui_source_window_base::set_new_height)
5389 (tui_data_window::set_new_height)
5390 (make_invisible_and_set_new_height)
5391 (make_visible_with_new_height, new_height_ok)
5392 (parse_scrolling_args): Update.
5393 * tui/tui-stack.c (tui_show_frame_info): Update.
5394 * tui/tui-source.c (tui_set_source_content)
5395 (tui_set_source_content_nil, tui_source_is_displayed)
5396 (tui_source_window::do_scroll_vertical): Update.
5397 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5398 (tui_display_registers_from, tui_display_reg_element_at_line)
5399 (tui_check_register_values, tui_reg_command): Update.
5400 * tui/tui-layout.c (tui_default_win_height)
5401 (show_source_disasm_command, show_data, init_and_make_win)
5402 (show_source_or_disasm_and_command): Update.
5403 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5404 (tui_redisplay_readline, tui_mld_flush)
5405 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5406 (tui_getc): Update.
5407 * tui/tui-disasm.c (tui_set_disassem_content)
5408 (tui_disasm_window::do_scroll_vertical): Update.
5409 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5410 Now virtual.
5411 (struct tui_win_info): Derive from tui_gen_win_info.
5412 <~tui_win_info>: Mark as override.
5413 <generic>: Remove member.
5414 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5415 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5416 (~tui_data_window, ~tui_win_info)
5417 (tui_free_all_source_wins_content): Update.
5418 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5419
ab313b35
TT
54202019-06-25 Tom Tromey <tom@tromey.com>
5421
5422 * tui/tui-layout.c (init_and_make_win): Use new.
5423 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5424 destructor, initializers.
5425 (tui_alloc_generic_win_info): Don't declare.
5426 * tui/tui-data.c (_locator): Add argument to constructor.
5427 (source_win, disasm_win): New globals.
5428 (exec_info): Remove.
5429 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5430 Update.
5431 (tui_alloc_generic_win_info): Remove.
5432 (init_content_element): Use new.
5433 (tui_win_info::tui_win_info): Update.
5434 (free_content_elements) <case DATA_WIN>: Use delete.
5435
dc2c33e4
TT
54362019-06-25 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5439 * tui/tui-windata.c (tui_first_data_item_displayed)
5440 (tui_delete_data_content_windows): Update.
5441 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5442 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5443 (tui_display_registers_from, tui_check_register_values): Update.
5444 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5445 pointer.
5446 * tui/tui-data.c (init_content_element): Update. Allocate the new
5447 window.
5448 (tui_free_data_content): Update.
5449 (free_content_elements) <case DATA_WIN>: Free the window.
5450
214a5cbe
TT
54512019-06-25 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5454 Update.
5455 * tui/tui-layout.c (make_command_window)
5456 (show_source_disasm_command, show_data, init_and_make_win)
5457 (show_source_or_disasm_and_command): Update.
5458 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5459 method.
5460 <can_highight, is_highlighted>: Now bool.
5461 (tui_set_win_highlight): Don't declare.
5462 * tui/tui-data.c (tui_set_win_highlight): Remove.
5463
8e2daf15
TT
54642019-06-25 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-wingeneral.c (make_visible): Remove check of window
5467 type.
5468
8903bd8a
TT
54692019-06-25 Tom Tromey <tom@tromey.com>
5470
5471 * tui/tui-win.c (tui_win_info::max_height)
5472 (tui_cmd_window::max_height): New methods.
5473 (new_height_ok): Call max_height.
5474 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5475 <max_height>: New method.
5476
3f02ce1e
TT
54772019-06-25 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-win.c (tui_source_window_base::set_new_height)
5480 (tui_data_window::set_new_height): New methods.
5481 (make_invisible_and_set_new_height): Call set_new_height method.
5482 * tui/tui-data.h (struct tui_win_info)
5483 (struct tui_source_window_base, struct tui_data_window)
5484 <set_new_height>: New method.
5485
1825f487
TT
54862019-06-25 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5489 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5490 tui_refresh_data_win.
5491 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5492 method.
5493 (tui_refresh_all_win): Call the refresh_all method.
5494 (tui_set_focus): Likewise.
5495 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5496 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5497 Likewise.
5498
ad54d15b
TT
54992019-06-25 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-winsource.h (tui_refill_source_window)
5502 (tui_set_is_exec_point_at): Don't declare.
5503 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5504 (tui_source_window_base::refill): Rename from
5505 tui_refill_source_window.
5506 (tui_source_window_base::do_scroll_horizontal): Update.
5507 (tui_source_window_base::set_is_exec_point_at): Rename from
5508 tui_set_is_exec_point_at.
5509 (tui_update_all_breakpoint_info): Update.
5510 * tui/tui-stack.c (tui_show_frame_info): Update.
5511 * tui/tui-layout.c (show_data): Add cast.
5512 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5513 * tui/tui-data.h (struct tui_source_window_base) <refill,
5514 set_is_exec_point_at>: New methods.
5515 (tui_source_windows, tui_add_to_source_windows): Update types.
5516 (tui_add_to_source_windows): Remove redundant declaration.
5517 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5518 (tui_source_windows): Change return type.
5519 (tui_clear_source_windows_detail): Update.
5520 (tui_add_to_source_windows): Change type of parameter.
5521 (tui_free_all_source_wins_content): Update.
5522
2042b506
TT
55232019-06-25 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-wingeneral.c (tui_win_info::refresh)
5526 (tui_source_window_base::refresh): New methods.
5527 (tui_refresh_all): Call the refresh method.
5528 * tui/tui-data.h (struct tui_win_info)
5529 (struct tui_source_window_base) <refresh>: New method.
5530
56122977
TT
55312019-06-25 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui.h (tui_is_window_visible): Return bool.
5534 * tui/tui.c (tui_is_window_visible): Return bool.
5535 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5536 (tui_make_visible, tui_make_invisible)
5537 (tui_win_info::make_visible)
5538 (tui_source_window_base::make_visible, make_all_visible)
5539 (tui_make_all_visible, tui_make_all_invisible): Update.
5540 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5541 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5542 bool.
5543 (struct tui_win_info, struct tui_source_window_base)
5544 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5545 * tui/tui-data.c (tui_init_generic_part): Update.
5546
cda37efb
TT
55472019-06-25 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5550 (tui_source_window_base::make_visible): New methods.
5551 (make_all_visible): Make method call.
5552 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5553 (struct tui_source_window_base, struct tui_cmd_window): Override
5554 make_visible.
5555 (tui_win_is_source_type): Don't declare.
5556 * tui/tui-data.c (tui_win_is_source_type): Remove.
5557
6a0ee02c
TT
55582019-06-25 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5561 NULL check.
5562
63901aec
TT
55632019-06-25 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5566 Inline constructor. Add initializers for members.
5567 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5568 constructors; now inline in class.
5569
ceb13a13
TT
55702019-06-25 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-regs.c (tui_show_registers): Update.
5573 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5574 bool.
5575 * tui/tui-data.c (tui_data_window::clear_detail)
5576 (tui_data_window): Update.
5577
238eb706
TT
55782019-06-25 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-windata.c (tui_display_all_data)
5581 (tui_display_data_from_line, tui_display_data_from)
5582 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5583 Update.
5584 * tui/tui-regs.c (tui_last_regs_line_no)
5585 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5586 (tui_show_registers, tui_show_register_group)
5587 (tui_display_registers_from, tui_display_reg_element_at_line)
5588 (tui_display_registers_from_line, tui_check_register_values)
5589 (tui_reg_next, tui_reg_prev): Update.
5590 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5591 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5592 tui_data_window.
5593 (struct tui_win_info) <detail>: Remove. Add new fields from
5594 tui_data_info.
5595 (TUI_DATA_WIN): Add cast.
5596 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5597 (~tui_data_window): Simplify.
5598
81491aa0
TT
55992019-06-25 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-layout.c (show_source_disasm_command)
5602 (show_source_or_disasm_and_command): Update.
5603 * tui/tui-io.c (update_cmdwin_start_line)
5604 (tui_redisplay_readline): Update.
5605 * tui/tui-data.h (struct tui_command_info): Remove.
5606 (struct tui_win_info) <detail>: Remove command_info member.
5607 (struct tui_data_window) <start_line>: New member, from
5608 tui_command_info.
5609 (TUI_CMD_WIN): Add casts.
5610
e6e41501
TT
56112019-06-25 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-winsource.c (tui_update_source_window)
5614 (tui_refill_source_window)
5615 (tui_source_window_base::do_scroll_horizontal)
5616 (tui_update_breakpoint_info, tui_set_exec_info_content)
5617 (tui_show_exec_info_content, tui_erase_exec_info_content)
5618 (tui_clear_exec_info_content): Update.
5619 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5620 Update.
5621 * tui/tui-win.c (make_invisible_and_set_new_height)
5622 (make_visible_with_new_height): Update.
5623 * tui/tui-source.c (tui_set_source_content)
5624 (tui_show_symtab_source): Update.
5625 * tui/tui-layout.c (extract_display_start_addr)
5626 (show_source_disasm_command, show_data)
5627 (make_source_or_disasm_window)
5628 (show_source_or_disasm_and_command): Update.
5629 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5630 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5631 "gdbarch".
5632 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5633 to tui_source_window_base.
5634 (struct tui_win_info) <detail>: Remove source_info member.
5635 (struct tui_source_window_base) <has_locator>: Inline.
5636 Move contents from tui_source_info; rename has_locator member to
5637 m_has_locator.
5638 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5639 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5640 header file.
5641 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5642 Simplify.
5643 (tui_free_all_source_wins_content): Cast to
5644 tui_source_window_base.
5645
44f0e208
TT
56462019-06-25 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui-win.c (make_invisible_and_set_new_height)
5649 (make_visible_with_new_height): Call has_locator method.
5650 * tui/tui-layout.c (show_source_disasm_command, show_data)
5651 (show_source_or_disasm_and_command): Update for bool change.
5652 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5653 (tui_win_info) <has_locator>: New method.
5654 (struct tui_source_window_base) <has_locator>: New method.
5655 (tui_win_has_locator): Don't declare.
5656 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5657 from tui_win_has_locator.
5658 (tui_source_window_base): Use false, not FALSE.
5659
7778b912
TT
56602019-06-25 Tom Tromey <tom@tromey.com>
5661
5662 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5663 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5664 clear_detail method directly.
5665 (tui_clear_win_detail): Remove.
5666
f83d391c
TT
56672019-06-25 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5670 "this", not TUI_DISASM_WIN.
5671
13446e05
TT
56722019-06-25 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5675 declare.
5676 * tui/tui-winsource.c
5677 (tui_source_window_base::do_scroll_horizontal): Rename from
5678 tui_horizontal_source_scroll.
5679 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5680 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5681 from tui_vertical_data_scroll.
5682 * tui/tui-win.h (tui_scroll): Don't declare.
5683 * tui/tui-win.c (tui_win_info::forward_scroll)
5684 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5685 (tui_win_info::right_scroll): Rename and update.
5686 (tui_scroll_forward_command, tui_scroll_backward_command)
5687 (tui_scroll_left_command, tui_scroll_right_command): Update.
5688 (tui_scroll): Remove.
5689 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5690 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5691 from tui_vertical_source_scroll.
5692 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5693 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5694 from tui_vertical_disassem_scroll.
5695 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5696 do_scroll_horizontal>: New methods.
5697 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5698 Likewise.
5699 (struct tui_source_window_base): Add do_scroll_horizontal.
5700 (struct tui_source_window, struct tui_disasm_window): Add
5701 do_scroll_vertical.
5702 (struct tui_data_window, struct tui_cmd_window): Add
5703 do_scroll_horizontal and do_scroll_vertical.
5704 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5705
5cf82909
TT
57062019-06-25 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-data.h (struct tui_source_window_base): New struct.
5709 (struct tui_source_window): Derive from tui_source_window_base.
5710 (struct tui_disasm_window): New struct.
5711 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5712 from tui_source_window::clear_detail.
5713 (tui_source_window_base): Rename from tui_source_window.
5714 (~tui_source_window_base): Rename from ~tui_source_window.
5715 (tui_alloc_win_info): Create a tui_disasm_window.
5716
ee1d42d6
TT
57172019-06-25 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-data.h (struct tui_source_window)
5720 (struct tui_data_window): Declare destructors.
5721 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5722 destructors.
5723 (tui_win_info): Simplify.
5724
b4eb2452
TT
57252019-06-25 Tom Tromey <tom@tromey.com>
5726
5727 * tui/tui-winsource.c (tui_display_main)
5728 (tui_update_source_windows_with_addr)
5729 (tui_update_all_breakpoint_info): Update.
5730 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5731 (new_height_ok, parse_scrolling_args): Update.
5732 * tui/tui-stack.c (tui_show_frame_info): Update.
5733 * tui/tui-data.h (struct tui_list): Remove.
5734 (tui_source_windows): Return a reference to a std::vector.
5735 * tui/tui-data.c (source_windows): Now a std::vector.
5736 (tui_source_windows): Change return type.
5737 (tui_clear_source_windows): Rewrite.
5738 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5739 (tui_free_all_source_wins_content): Rewrite.
5740
8761a91b
TT
57412019-06-25 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5744 (struct tui_data_window, struct tui_cmd_window): Declare
5745 clear_detail method.
5746 * tui/tui-data.c (tui_source_window::clear_detail)
5747 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5748 methods.
5749 (tui_clear_win_detail): Simplify.
5750
0ed69eda
TT
57512019-06-25 Tom Tromey <tom@tromey.com>
5752
5753 * tui/tui-layout.c (make_source_window, make_disasm_window)
5754 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5755 Return the new window.
5756 (show_source_disasm_command, show_data)
5757 (show_source_or_disasm_and_command): Update.
5758
82432e10
TT
57592019-06-25 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5762 parameter. Return the new window.
5763 (show_source_disasm_command): Update and remove NULL check.
5764 (show_source_or_disasm_and_command): Update.
5765
ec328aa5
TT
57662019-06-25 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5769
33b906ab
TT
57702019-06-25 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui-data.h (struct tui_win_info): Make constructor
5773 protected. Make destructor virtual. Add initializers.
5774 (tui_source_window, tui_data_window, tui_cmd_window): New
5775 classes.
5776 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5777 constructor. Add "type" parameter.
5778 (tui_source_window, tui_data_window, tui_cmd_window): New
5779 constructors.
5780 (tui_alloc_win_info): Instantiate the appropriate subclass.
5781
e7e11af4
TT
57822019-06-25 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-win.c (tui_resize_all): Use delete.
5785 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5786 destructor.
5787 (tui_free_window): Don't declare.
5788 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5789 Update.
5790
6792b55e
TT
57912019-06-25 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-data.h (struct tui_win_info): Add constructor.
5794 * tui/tui-data.c (tui_alloc_win_info): Use new.
5795 (tui_free_window): Use delete.
5796
f95675e1
TT
57972019-06-22 Tom Tromey <tom@tromey.com>
5798
5799 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5800 declare.
5801 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5802
5bff081c
TT
58032019-06-22 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5806 declare.
5807 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5808
47e3f474
TV
58092019-06-22 Tom de Vries <tdevries@suse.de>
5810
5811 * dwarf2read.c (create_addrmap_from_aranges)
5812 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5813 instead of '%zu'.
5814
fd5866f6
SM
58152019-06-21 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * dwarf2read.h (dwarf2_section_info_def): Remove.
5818 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5819 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5820 std::vector<dwarf2_section_info>.
5821 (struct dwo_file) <~dwo_file>: Remove.
5822 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5823 types field.
5824 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5825 (dwarf2_read_debug_names): Likewise.
5826 (create_debug_types_hash_table): Change parameter type to
5827 array_view, adjust code accordingly.
5828 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5829 (partial_die_info::fixup): Likewise.
5830 (determine_prefix): Likewise.
5831 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5832
fb1eb2f9
SM
58332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5834
5835 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5836 gdb_bfd_ref_ptr.
5837 <~dwo_file>: Remove call to gdb_bfd_unref.
5838 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5839 gdb_bfd_ref_ptr::get.
5840
51ac9db5
SM
58412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5844 type to htab_up.
5845 * dwarf2read.c (struct dwo_file): Initialize fields.
5846 <~dwo_file>: New.
5847 (free_dwo_file): Remove, move content to ~dwo_file.
5848 (struct dwo_file_deleter): Remove.
5849 (dwo_file_up>: Remove custom deleter.
5850 (free_dwo_files): Remove.
5851 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5852 dwo_files.
5853 (process_skeletonless_type_units): Call unique_ptr::get.
5854 (allocate_dwo_file_hash_table): Add deleter to created hash
5855 table. Change return type to htab_up.
5856 (lookup_dwo_file_slot): Don't memset dwo_file, call
5857 unique_ptr::get.
5858 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5859 (create_dwo_unit_in_dwp_v2): Likewise.
5860 (open_and_init_dwo_file): Likewise.
5861 (free_dwo_file_from_slot): Remove.
5862
dc4ccb6f
SM
58632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * dwarf2read.h (struct dwarf2_section_info) <readin,
5866 is_virtual>: Change type to bool.
5867 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5868 true instead of 1.
5869
e6a1c5cb
TT
58702019-06-19 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-data.h (tui_init_content_element): Don't declare.
5873
6f6ffbeb
TT
58742019-06-19 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-data.h (tui_init_win_info): Don't declare.
5877
f23f598e
TV
58782019-06-19 Tom de Vries <tdevries@suse.de>
5879
5880 * dwarf2read.h (abstract_to_concrete): Change type to
5881 std::unordered_map<sect_offset, std::vector<sect_offset>,
5882 gdb::hash_enum<sect_offset>>.
5883
680e1bee
TT
58842019-06-19 Tom Tromey <tromey@adacore.com>
5885
5886 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5887 EVAL_AVOID_SIDE_EFFECTS specially.
5888
dcf37923
TT
58892019-06-19 Tom Tromey <tromey@adacore.com>
5890
5891 * source-cache.c (highlighter): New global.
5892 (source_cache::get_source_lines): Create a highlighter on demand.
5893
494986d5
AB
58942019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * defs.h (deprecated_interactive_hook): Delete declaration.
5897 * interps.c (clear_interpreter_hooks): Remove use of
5898 deprecated_interactive_hook.
5899 * top.c (deprecated_interactive_hook): Delete definition.
5900 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5901
3360b6e7
TV
59022019-06-18 Tom de Vries <tdevries@suse.de>
5903
5904 PR gdb/24515
5905 * dwarf2read.h (abstract_to_concrete): Change type from
5906 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5907 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5908 * dwarf2read.c (read_variable): Update.
5909 (dwarf2_fetch_die_loc_sect_off): Update.
5910
310b3441
TV
59112019-06-17 Tom de Vries <tdevries@suse.de>
5912
5913 PR gdb/24617
5914 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5915 accessing parent[parent_len - 1].
5916
ba9777be
PP
59172019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5918
5919 PR gdb/24364
5920 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5921 call dtrace_process_dof with NULL dof.
5922
2b9f6e89
TV
59232019-06-16 Tom de Vries <tdevries@suse.de>
5924
5925 PR gdb/24445
5926 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5927
431b3ead
TT
59282019-06-16 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5931 (make_all_visible): Use address of member.
5932
d04b44a1
TT
59332019-06-16 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5936 (tui_free_window, free_content, free_content_elements): Remove
5937 unnecessary cast.
5938 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5939 cast.
5940 * tui/tui-regs.c (tui_show_register_group)
5941 (tui_display_registers_from, tui_display_reg_element_at_line):
5942 Remove unnecessary cast.
5943
bf5142e7
AB
59442019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * linux-nat.c (normal_mask): Delete.
5947 (_initialize_linux_nat): Don't initialise normal_mask.
5948
c4973306
SM
59492019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5950
5951 PR gdb/24445
5952 * dwarf-index-write.h (write_psymtabs_to_index): Add
5953 dwz_basename parameter.
5954 * dwarf-index-write.c (write_gdbindex): Move file writing to
5955 write_gdbindex_1. Change return type void.
5956 (assert_file_size): Move up, remove filename parameter.
5957 (write_gdbindex_1): New function.
5958 (write_debug_names): Change return type to void, call
5959 assert_file_size.
5960 (struct index_wip_file): New struct.
5961 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5962 file logic to index_wip_file. Write index for dwz file if
5963 needed.
5964 (save_gdb_index_command): Pass basename of dwz file, if present.
5965 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5966 build-id of dwz file, if present.
5967 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5968 (dwarf2_get_dwz_file): Likewise.
5969 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5970 (dwarf2_get_dwz_file): Likewise.
5971
395f9c91
TT
59722019-06-16 Tom Tromey <tom@tromey.com>
5973
5974 * coffread.c (process_coff_symbol): Use xstrdup.
5975 * value.c (create_internalvar): Use xstrdup.
5976
cafb3438
TT
59772019-06-16 Tom Tromey <tom@tromey.com>
5978
5979 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5980 * breakpoint.c (stopin_command, stopat_command)
5981 (until_break_command, decode_location_default): Remove unnecessary
5982 cast.
5983 * utils.c (subset_compare): Remove unnecessary cast.
5984 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5985 cast.
5986 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5987 cast.
5988 * infcmd.c (path_command): Remove unnecessary cast.
5989 * coffread.c (decode_type): Remove unnecessary cast.
5990 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5991 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5992 * tui/tui-stack.c (tui_show_locator_content)
5993 (tui_show_frame_info): Remove unnecessary cast.
5994 * tui/tui-win.c (tui_scroll_forward_command)
5995 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5996 (parse_scrolling_args): Remove unnecessary cast.
5997 * tui/tui-data.c (init_win_info, tui_del_window)
5998 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5999 (free_content_elements): Remove unnecessary cast.
6000 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6001 unnecessary cast.
6002 * tui/tui-source.c (tui_set_source_content)
6003 (tui_vertical_source_scroll): Remove unnecessary cast.
6004 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6005 cast.
6006 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6007 * tui/tui-regs.c (tui_display_registers_from)
6008 (tui_display_register): Remove unnecessary cast.
6009 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6010 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6011 (make_visible): Remove unnecessary cast.
6012 * tui/tui-winsource.c (tui_erase_source_content)
6013 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6014 unnecessary cast.
6015 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6016 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6017 * stabsread.c (read_type, read_array_type, read_range_type):
6018 Remove unnecessary cast.
6019 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6020 (parse_symbol, parse_type, upgrade_type, parse_external)
6021 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6022 unnecessary cast.
6023 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6024
730ead81
TT
60252019-06-16 Tom Tromey <tom@tromey.com>
6026
6027 * tui/tui-data.c (tui_alloc_generic_win_info)
6028 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6029 checks.
6030
584a927c
AB
60312019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6032 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * f-typeprint.c (f_print_type): Don't return early for not
6035 associated or not allocated types.
6036 (f_type_print_varspec_suffix): Add print_rank parameter and print
6037 ranks of array types in case they dangling.
6038 (f_type_print_base): Add print_rank parameter.
6039
30056ea0
AB
60402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * NEWS: Mention new MI commands.
6043 * break-catch-throw.c (enum exception_event_kind): Move to
6044 breakpoint.h.
6045 (print_mention_exception_catchpoint): Output text as a single
6046 message.
6047 (catch_exception_command_1): Rename to...
6048 (catch_exception_event): ...this, make non-static, update header
6049 command, and change some parameter types.
6050 (catch_catch_command): Update for changes to
6051 catch_exception_command_1.
6052 (catch_throw_command): Likewise.
6053 (catch_rethrow_command): Likewise.
6054 * breakpoint.c (enum exception_event_kind): Delete.
6055 * breakpoint.h (enum exception_event_kind): Moved here from
6056 break-catch-throw.c.
6057 (catch_exception_event): Declare.
6058 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6059 (mi_cmd_catch_throw): New function.
6060 (mi_cmd_catch_rethrow): New function.
6061 (mi_cmd_catch_catch): New function.
6062 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6063 'catch-catch' entries.
6064 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6065 (mi_cmd_catch_rethrow): Declare.
6066 (mi_cmd_catch_catch): Declare.
6067
ec8e2b6d
AB
60682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6069
6070 * annotate.c (annotate_source_line): Change return type to void,
6071 update implementation to match.
6072 * annotate.h (annotate_source_line): Change return type to void,
6073 update header comment.
6074 * stack.c (print_frame_info): Don't change what frame information
6075 is printed based on whether annotations are on or not.
6076
0d3abd8c
AB
60772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6080 (annotate_source): Make static.
6081 (annotate_source_line): Moved from source.c and renamed from
6082 identify_source_line. Update the return type.
6083 * annotate.h (annotate_source): Delete declaration.
6084 (annotate_source_line): Declaration moved from source.h, and
6085 renamed from identify_source_line. Return type updated.
6086 * source.c (identify_source_line): Moved to annotate.c and renamed
6087 to annotate_source_line.
6088 (info_line_command): Remove check of annotation_level.
6089 * source.h (identify_source_line): Move declaration to annotate.h
6090 and rename to annotate_source_line.
6091 * stack.c: Add 'annotate.h' include.
6092 (print_frame_info): Remove check of annotation_level before
6093 calling annotate_source_line.
6094
00df30ae
AB
60952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * source-cache.c (source_cache::get_plain_source_lines): Use
6098 open_source_file_with_line_charpos instead of just
6099 open_source_file, remove call to find_source_lines.
6100 (source_cache::get_source_lines): Likewise.
6101 * source.c (find_source_lines): Make static.
6102 (get_filename_and_charpos): Renamed into...
6103 (open_source_file_with_line_charpos): ..this along with changes to
6104 return a scoped_fd, and some other minor clean ups.
6105 (identify_source_line): Use open_source_file_with_line_charpos.
6106 (search_command_helper): Use open_source_file_with_line_charpos
6107 instead of just open_source_file, remove call to
6108 find_source_lines.
6109 * source.h (open_source_file_with_line_charpos): Declare new
6110 function.
6111 (find_source_lines): Delete declaration.
6112
afda45a2
AB
61132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * source.c (get_filename_and_charpos): Remove fullname
6116 parameter.
6117 (identify_source_line): Update call to get_filename_and_charpos.
6118
0735b091
TT
61192019-06-14 Tom Tromey <tromey@adacore.com>
6120
6121 PR gdb/24502:
6122 * ui-style.h (skip_ansi_escape): Update comment.
6123 * ui-file.h (class no_terminal_escape_file): New class.
6124 * ui-file.c (no_terminal_escape_file::write)
6125 (no_terminal_escape_file::puts): New methods.
6126 * cli/cli-logging.c (handle_redirections): Use
6127 no_terminal_escape_file.
6128
52ce35e2
TT
61292019-06-14 Tom Tromey <tromey@adacore.com>
6130
6131 * NEWS: Move convenience variable news above Python news.
6132
73cc7272
TT
61332019-06-14 Tom Tromey <tom@tromey.com>
6134
6135 * gnulib: Move directory to top-level.
6136 * configure.ac: Don't configure gnulib.
6137 * configure: Rebuild.
6138 * common/common-defs.h: Use new path to gnulib.
6139 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6140 (GNULIB_H): Remove.
6141 (INCGNU): Look in new gnulib location.
6142 (HFILES_NO_SRCDIR): Remove gnulib files.
6143 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6144 (generated_files): Remove GNULIB_H.
6145 ($(LIBGNU), all-lib): Remove targets.
6146 (distclean): Don't mention GNULIB_BUILDDIR.
6147 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6148
f5686554
TT
61492019-06-14 Tom Tromey <tromey@adacore.com>
6150
6151 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6152 Warn if symbol file does not provide any symbols.
6153
a0c1ffed
TT
61542019-06-14 Tom Tromey <tromey@adacore.com>
6155
6156 * source.c (find_and_open_source): Respect basenames_may_differ.
6157
7c39e397
AB
61582019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6159
6160 * annotate.c (annotate_breakpoints_invalid): Make use of
6161 scoped_restore_terminal_state.
6162 (annotate_frames_invalid): Likewise.
6163
f411722c
TT
61642019-06-14 Tom Tromey <tromey@adacore.com>
6165
6166 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6167 allow assignment to an internalvar.
6168
4268ec18
TT
61692019-06-14 Tom Tromey <tromey@adacore.com>
6170
6171 * ada-lex.l: Allow "_" in attribute names.
6172
abdb711e
TT
61732019-06-14 Tom Tromey <tromey@adacore.com>
6174
6175 PR gdb/24653:
6176 * regcache.c (registers_changed): Don't call alloca.
6177 * top.c (execute_command): Don't call alloca.
6178
4c048731
PA
61792019-06-13 Pedro Alves <palves@redhat.com>
6180
6181 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6182 'expression'. When parsing an expression, error out if there's
6183 junk after "unlimited".
6184 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6185 (do_set_command): Adjust calls to is_unlimited_literal.
6186
66eb1ed3
PA
61872019-06-13 Pedro Alves <palves@redhat.com>
6188
6189 * compile/compile.c (make_compile_options_def_group): Add braces
6190 around array_view initializer.
6191 * thread.c (make_thread_apply_all_options_def_group)
6192 (make_thread_apply_all_options_def_group): Likewise.
6193
3345721a
PA
61942019-06-13 Pedro Alves <palves@redhat.com>
6195
6196 * NEWS (New commands): Mention "maint test-options
6197 require-delimiter", "maint test-options unknown-is-error", "maint
6198 test-options unknown-is-operand" and "maint show
6199 test-options-completion-result".
6200 (New command options, command completion): New section.
6201 (Completion improvements): New section.
6202 Mention that you can abbreviate "unlimited".
6203
6206060d
PA
62042019-06-13 Pedro Alves <palves@redhat.com>
6205
6206 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6207 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6208 * unittests/cli-utils-selftests.c (test_parse_flags)
6209 (test_parse_flags_qcs): Delete.
6210 (test_cli_utils): Don't call deleted functions.
6211
6665660a
PA
62122019-06-13 Pedro Alves <palves@redhat.com>
6213
6214 * thread.c: Include "cli/cli-option.h".
6215 (tp_array_compar_ascending): Global.
6216 (tp_array_compar): Delete function.
6217 (tp_array_compar_ascending, tp_array_compar_descending): New
6218 functions.
6219 (ascending_option_def, qcs_flag_option_def)
6220 (thr_qcs_flags_option_defs)
6221 (make_thread_apply_all_options_def_group)
6222 (make_thread_apply_options_def_group): New.
6223 (thread_apply_all_command): Use gdb::option::process_options.
6224 (thread_apply_command_completer)
6225 (thread_apply_all_command_completer): New.
6226 (thread_apply_command): Use gdb::option::process_options.
6227 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6228 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6229 to generate help text of "thread apply". Adjust "taas"'s help.
6230 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6231 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6232
f7e13587
PA
62332019-06-13 Pedro Alves <palves@redhat.com>
6234
6235 * thread.c (thread_apply_command): Check for invalid TID with
6236 isdigit instead of !isalpha.
6237
5d707134
PA
62382019-06-13 Pedro Alves <palves@redhat.com>
6239
6240 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6241 (validate_flags_qcs): New.
6242 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6243 (validate_flags_qcs): Declare.
6244 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6245 (make_frame_apply_options_def_group): New.
6246 (frame_apply_command_count): Process options with
6247 gdb::option::process_options.
6248 (frame_apply_completer): New.
6249 (frame_apply_level_completer, frame_apply_all_completer)
6250 (frame_apply_completer): New.
6251 (_initialize_stack): Update help of "frame apply", "frame apply
6252 level", "frame apply all" and "faas" to mention supported options
6253 and install command completers.
6254 * stack.h (frame_apply_all_completer): Declare.
6255 * thread.c: Include "stack.h".
6256 (tfaas_command): Add "--".
6257 (_initialize_thread): Update help "tfaas" to mention supported
6258 options and install command completer.
6259
272d4594
PA
62602019-06-13 Pedro Alves <palves@redhat.com>
6261
6262 * completer.c (complete_nested_command_line): New.
6263 (gdb_completion_word_break_characters_throw): Add assertion.
6264 * completer.h (complete_nested_command_line): Declare.
6265
90a1ef87
PA
62662019-06-13 Pedro Alves <palves@redhat.com>
6267
6268 * stack.c (parse_backtrace_qualifiers): New.
6269 (backtrace_command): Use it.
6270 (backtrace_command_completer): Complete on qualifiers.
6271
d4c16835
PA
62722019-06-13 Pedro Alves <palves@redhat.com>
6273
6274 * frame.c: Include "cli/cli-option.h.
6275 (user_set_backtrace_options): New.
6276 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6277 Delete.
6278 (get_prev_frame): Adjust.
6279 (boolean_option_def, uinteger_option_def)
6280 (set_backtrace_option_defs): New.
6281 (_initialize_frame): Adjust and use
6282 gdb::option::add_setshow_cmds_for_options to install "set
6283 backtrace past-main" and "set backtrace past-entry".
6284 * frame.h: Include "cli/cli-option.h".
6285 (struct frame_print_options): Forward declare.
6286 (print_frame_arguments_all, print_frame_arguments_scalars)
6287 (print_frame_arguments_none): Declare.
6288 (print_entry_values): Delete declaration.
6289 (struct frame_print_options, user_frame_print_options): New.
6290 (struct set_backtrace_options): New.
6291 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6292 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6293 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6294 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6295 (list_args_or_locals): Add frame_print_options parameter.
6296 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6297 * python/py-framefilter.c (enumerate_args): Pass down
6298 USER_FRAME_PRINT_OPTIONS.
6299 * stack.c: Include "cli/cli-option.h".
6300 (print_frame_arguments_all, print_frame_arguments_scalars)
6301 (print_frame_arguments_none): Declare.
6302 (print_raw_frame_arguments, print_entry_values): Delete.
6303 (user_frame_print_options): New.
6304 (boolean_option_def, enum_option_def, frame_print_option_defs):
6305 New.
6306 (struct backtrace_cmd_options): New.
6307 (bt_flag_option_def): New.
6308 (backtrace_command_option_defs): New.
6309 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6310 (print_frame_arg, read_frame_arg, print_frame_args)
6311 (print_frame_info, print_frame): Add frame_print_options parameter
6312 and use it.
6313 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6314 (backtrace_command_1): Add frame_print_options and
6315 backtrace_cmd_options parameters and use them.
6316 (make_backtrace_options_def_group): New.
6317 (backtrace_command): Process command options with
6318 gdb::option::process_options.
6319 (backtrace_command_completer): New.
6320 (_initialize_stack): Extend "backtrace"'s help to mention
6321 supported options. Install completer for "backtrace".
6322 Install some settings commands with add_setshow_cmds_for_options.
6323
2daf894e
PA
63242019-06-13 Pedro Alves <palves@redhat.com>
6325
6326 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6327 and that "set/show print raw frame-arguments" are now deprecated.
6328
6329 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6330 command.
6331 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6332 * stack.c (_initialize_stack): Install "set/show print
6333 raw-frame-arguments", and deprecate "set/show print raw
6334 frame-arguments".
6335 * valprint.c (_initialize_valprint): Deprecate "set/show print
6336 raw".
6337
e6ed716c
PA
63382019-06-13 Pedro Alves <palves@redhat.com>
6339
6340 * compile/compile.c (struct compile_options): New.
6341 (compile_flag_option_def, compile_command_option_defs)
6342 (make_compile_options_def_group): New.
6343 (compile_file_command): Handle options with
6344 gdb::option::process_options.
6345 (compile_file_command_completer): New function.
6346 (compile_code_command): Handle options with
6347 gdb::option::process_options.
6348 (compile_code_command_completer): New function.
6349 (_initialize_compiler): Install completers for "compile code" and
6350 "compile file". Mention available options in "compile code" and
6351 "compile code"'s help.
6352 * completer.c (advance_to_completion_word): New, factored out from
6353 ...
6354 (advance_to_expression_complete_word_point): ... this.
6355 (advance_to_filename_complete_word_point): New.
6356 * completer.h (advance_to_filename_complete_word_point): New
6357 declaration.
6358
7d8062de
PA
63592019-06-13 Pedro Alves <palves@redhat.com>
6360
6361 * compile/compile.c: Include "cli/cli-option.h".
6362 (compile_print_value): Scope data pointer is now a
6363 value_print_options pointer; adjust.
6364 (compile_print_command): Process options. Scope data pointer is
6365 now a value_print_options pointer; adjust.
6366 (_initialize_compile): Update "compile print"'s help to include
6367 supported options. Install a completer for "compile print".
6368 * cp-valprint.c (show_vtblprint, show_objectprint)
6369 (show_static_field_print): Delete.
6370 (_initialize_cp_valprint): Don't install "set print
6371 static-members", "set print vtbl", "set print object" here.
6372 * printcmd.c: Include "cli/cli-option.h" and
6373 "common/gdb_optional.h".
6374 (print_command_parse_format): Rework to fill in a
6375 value_print_options instead of a format_data.
6376 (print_value): Change parameter type from format_data pointer to
6377 value_print_options reference. Adjust.
6378 (print_command_1): Process options. Adjust to pass down a
6379 value_print_options.
6380 (print_command_completer): New.
6381 (_initialize_printcmd): Install print_command_completer as
6382 handle_brkchars completer for the "print" command. Update
6383 "print"'s help to include supported options.
6384 * valprint.c: Include "cli/cli-option.h".
6385 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6386 here from cp-valprint.c.
6387 (boolean_option_def, uinteger_option_def)
6388 (value_print_option_defs, make_value_print_options_def_group):
6389 New. Use gdb::option::add_setshow_cmds_for_options to install
6390 "set print elements", "set print null-stop", "set print repeats",
6391 "set print pretty", "set print union", "set print array", "set
6392 print address", "set print symbol", "set print array-indexes".
6393 * valprint.h: Include <string> and "cli/cli-option.h".
6394 (make_value_print_options_def_group): Declare.
6395 (print_value): Change parameter type from format_data pointer to
6396 value_print_options reference.
6397 (print_command_completer): Declare.
6398
9d0faba9
PA
63992019-06-13 Pedro Alves <palves@redhat.com>
6400
6401 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6402 (COMMON_SFILES): Add maint-test-settings.c.
6403 * cli/cli-decode.c (boolean_enums): New global, factored out from
6404 ...
6405 (add_setshow_boolean_cmd): ... here.
6406 * cli/cli-decode.h (boolean_enums): Declare.
6407 * cli/cli-option.c: New file.
6408 * cli/cli-option.h: New file.
6409 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6410 factored out from ...
6411 (parse_cli_boolean_value(const char *)): ... this.
6412 (is_unlimited_literal): Change parameter type to pointer to
6413 pointer. Adjust and advance ARG pointer.
6414 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6415 (parse_cli_var_enum): New, factored out from ...
6416 (do_set_command): ... this. Adjust.
6417 * cli/cli-setshow.h (parse_cli_boolean_value)
6418 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6419 (parse_cli_var_enum): Declare.
6420 * cli/cli-utils.c: Include "cli/cli-option.h".
6421 (get_ulongest): New.
6422 * cli/cli-utils.h (get_ulongest): Declare.
6423 (check_for_argument): New overloads.
6424 * maint-test-options.c: New file.
6425
2c722807
PA
64262019-06-13 Pedro Alves <palves@redhat.com>
6427
6428 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6429 parse a range if "-" is at the end of the string.
6430
dee7b4c8
PA
64312019-06-13 Pedro Alves <palves@redhat.com>
6432
6433 * cli/cli-setshow.c (parse_auto_binary_operation)
6434 (parse_cli_boolean_value): Don't allow "o".
6435
dca0f6c0
PA
64362019-06-13 Pedro Alves <palves@redhat.com>
6437
6438 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6439 * NEWS: Mention maint test-settings KIND.
6440 * maint-test-settings.c: New file.
6441
597bf39d
PA
64422019-06-13 Pedro Alves <palves@redhat.com>
6443
6444 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6445 completer.
6446 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6447 "set" completers.
6448
48c410fb
PA
64492019-06-13 Pedro Alves <palves@redhat.com>
6450
6451 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6452 after item.
6453
93bcb043
PA
64542019-06-13 Pedro Alves <palves@redhat.com>
6455
6456 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6457
cbba3ecd
PA
64582019-06-13 Pedro Alves <palves@redhat.com>
6459
6460 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6461 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6462 call.
6463 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6464 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6465 calls.
6466 (check_for_argument): Skip spaces after argument.
6467
b9a3f842
PA
64682019-06-13 Pedro Alves <palves@redhat.com>
6469
6470 * thread.c (thread_apply_command): Adjust TID parsing.
6471 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6472 detected before end of string.
6473 (tid_is_in_list): Error out if LIST is invalid.
6474
3844e605
PA
64752019-06-13 Pedro Alves <palves@redhat.com>
6476
6477 * completer.c (complete_line_internal_1): Rewind completion word
6478 point.
6479 (completion_tracker::advance_custom_word_point_by): Change
6480 parameter type to int.
6481 * completer.h (completion_tracker::advance_custom_word_point_by):
6482 Likewise.
6483
00b56dbe
PA
64842019-06-13 Pedro Alves <palves@redhat.com>
6485
6486 * completer.c (advance_to_completion_word): Handle delimiters.
6487
d106773e
PA
64882019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6489
6490 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6491
08f10e02
TT
64922019-06-11 Tom Tromey <tom@tromey.com>
6493
6494 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6495 (xmalloc_failed): Move to alloc.c.
6496 * alloc.c: New file.
6497 * Makefile.in (COMMON_SFILES): Add alloc.c.
6498
1c7fe951
TT
64992019-06-11 Tom Tromey <tom@tromey.com>
6500
6501 * nat/linux-waitpid.c: Don't include server.h.
6502 (linux_debug): Remove.
6503 (my_waitpid): Update.
6504
89549d7f
TT
65052019-06-11 Tom Tromey <tromey@adacore.com>
6506
6507 * infcall.c (_initialize_infcall): Remove trailing newline from
6508 help.
6509 * user-regs.c (_initialize_user_regs): Remove trailing newline
6510 from help.
6511 * typeprint.c (_initialize_typeprint): Remove trailing newline
6512 from help.
6513 * reverse.c (_initialize_reverse): Remove trailing newlines from
6514 help.
6515 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6516 from help.
6517 * language.c (add_set_language_command): Remove trailing newline
6518 from help.
6519 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6520 help.
6521 * disasm.c (_initialize_disasm): Remove trailing newline from
6522 help.
6523 * top.c (init_main): Remove trailing newline from help.
6524 * interps.c (_initialize_interpreter): Remove trailing newline
6525 from help.
6526 * btrace.c (_initialize_btrace): Remove trailing newlines from
6527 help.
6528 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6529 from help.
6530 * python/python.c (_initialize_python): Remove trailing newline
6531 from help.
6532 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6533 help.
6534 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6535 from help. Reformat some text.
6536 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6537 from help.
6538 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6539 newline from help.
6540
86108c13
TT
65412019-06-11 Tom Tromey <tromey@adacore.com>
6542
6543 * darwin-nat.c (darwin_decode_exception_message)
6544 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6545
a7067863
AB
65462019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6547
6548 * valops.c (value_slice): Check for not allocated or not
6549 associated values.
6550
9ab08412
TV
65512019-06-10 Tom de Vries <tdevries@suse.de>
6552
6553 PR gdb/24618
6554 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6555 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6556 invalid.
6557
f19e22e9
TV
65582019-06-10 Tom de Vries <tdevries@suse.de>
6559
6560 PR gdb/24611
6561 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6562 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6563
e99f9db0
TV
65642019-06-10 Tom de Vries <tdevries@suse.de>
6565
6566 PR symtab/24545
6567 * symtab.c (struct demangled_name_entry): Add language field.
6568 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6569 static minimal symbol". Set and use language field.
6570
9bf7038b
TT
65712019-06-10 Tom Tromey <tromey@adacore.com>
6572
6573 * ada-lang.c (_initialize_ada_language): Update help text.
6574
422186a9
TT
65752019-06-10 Tom Tromey <tromey@adacore.com>
6576
6577 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6578 with a newline.
6579 * guile/guile.c (handle_boot_error): Don't end warning with a
6580 newline.
6581 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6582 warning with a newline.
6583 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6584 newline.
6585 (s12z_frame_cache): Likewise.
6586 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6587 a newline.
6588 * solib-svr4.c (disable_probes_interface): Don't end warning with
6589 a newline.
6590 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6591 newline.
6592 * python/python.c (do_finish_initialization): Don't end warning
6593 with a newline.
6594
25ce02ee
TT
65952019-06-10 Tom Tromey <tom@tromey.com>
6596
6597 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6598 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6599 gdbpy_enter.
6600
caa429d8
TT
66012019-06-10 Tom Tromey <tromey@adacore.com>
6602
6603 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6604 data.
6605 (elf_new_init): Don't call stabsread_new_init.
6606 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6607 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6608 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6609
81873cc8
TV
66102019-06-10 Tom de Vries <tdevries@suse.de>
6611
6612 PR symtab/16264
6613 PR symtab/24517
6614 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6615
4fa0265e
РИ
66162019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6617
6618 * source.c (find_and_open_source): Also rewrite relative file
6619 names.
6620
1a3da2cd
AB
66212019-04-26 Amos Bird <amosbird@gmail.com>
6622
6623 * annotate.c (annotate_thread_exited): Add "thread-exited"
6624 annotation.
6625
3847a7bf
TT
66262019-06-06 Tom Tromey <tromey@adacore.com>
6627
6628 * maint.h (class scoped_command_stats): Use
6629 DISABLE_COPY_AND_ASSIGN.
6630 <print_time>: New method.
6631 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6632 print_time.
6633 (scoped_command_stats::print_time): New method.
6634
312617a3
AB
66352019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6638 instructions of lengths 6 or 8 bytes.
6639
b02f78f9
PA
66402019-06-04 Pedro Alves <palves@redhat.com>
6641
6642 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6643
6644 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6645 * breakpoint.c (condition_completer): Likewise.
6646 * cli/cli-dump.c (scan_expression): Likewise.
6647 * common/filestuff.c (mkdir_recursive): Likewise.
6648 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6649 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6650 (gdb_abspath): Likewise.
6651 * compile/compile-cplus-types.c
6652 (compile_cplus_instance::decl_name): Likewise.
6653 * completer.c (complete_explicit_location):
6654 (signal_completer, reg_or_group_completer_1): Likewise.
6655 * cp-support.c (cp_remove_params_if_any): Likewise.
6656 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6657 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6658 * infcmd.c (strip_bg_char): Likewise.
6659 * linespec.c (copy_token_string): Likewise.
6660 * mi/mi-main.c (output_cores): Likewise.
6661 * psymtab.c (psymtab_search_name):
6662 * symfile.c (test_set_ext_lang_command): Likewise.
6663 * target.c (target_fileio_read_stralloc): Likewise.
6664 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6665 * value.c (complete_internalvar): Likewise.
6666
e1f2e1a2
CB
66672019-06-04 Christian Biesinger <cbiesinger@google.com>
6668
6669 Add objfile property to gdb.Type.
d3238f7d
PA
6670 * NEWS: Mention Python API addition.
6671 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 6672
e664d728
PW
66732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6674
6675 * NEWS: Mention the new set|show style [title|highlight].
6676 Mention changes to "show style", "help" and "apropos".
6677
66d8c862
PW
66782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6679
6680 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6681 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6682 instead of print_help_for_command.
6683 (print_doc_of_command): New function.
6684 (help_list): Add 'apropos -v word' suggestion.
6685 (print_help_for_command): Style the command name using title style.
6686 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6687 (_initialize_cli_cmds): Describe -v in apropos_command help.
6688
9303eb2f
PW
66892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6690
6691 * cli/cli-style.h (cli_style_option): Add name in constructor,
6692 add m_name class member, add constructor with intensity,
6693 add name class function.
6694 (cli_style_option::add_setshow_commands): Remove name argument.
6695 (highlight_style, title_style): New styles.
6696 * cli/cli-style.c (do_show): New function that shows a style
6697 characteristic styling the style name with itself.
6698 (set_style_name): New function.
6699 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6700 Update all callers according to the changes in cli/cli-style.h.
6701 * utils.h (fputs_highlighted): New function.
6702 * utils.c (fputs_highlighted): Likewise.
6703
e2c52041
PW
67042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6705
6706 * NEWS: Mention new pipe command and new convenience variables.
6707
947d3946
PW
67082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * cli/cli-cmds.c (pipe_command): New function.
6711 (_initialize_cli_cmds): Call add_com for pipe_command.
6712 Define | as an alias for pipe.
6713 (exit_status_set_internal_vars): New function.
6714 (shell_escape): Call exit_status_set_internal_vars.
6715 cli/cli-decode.c (find_command_name_length): Recognize | as
6716 a single character command.
6717
b8fd0918
PW
67182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6719
6720 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6721 top.c (execute_command_to_ui_file): New function, mostly a copy
6722 of execute_command_to_string.
6723 (execute_command_to_string): Implement by calling
6724 execute_command_to_ui_file.
6725
68bb5386
PW
67262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6727
6728 * top.h (saved_command_line): Remove declaration.
6729 * top.c (previous_saved_command_line, previous_repeat_arguments):
6730 New variables.
6731 (saved_command_line): Make static, define together with other
6732 'repeat variables'.
6733 (dont_repeat): Clear repeat_arguments.
6734 (repeat_previous, get_saved_command_line, save_command_line):
6735 New functions.
6736 (gdb_init): Initialize saved_command_line
6737 and previous_saved_command_line.
6738 * main.c (captured_main_1): Remove saved_command_line initialization.
6739 * event-top.c (handle_line_of_input): Update to use
6740 the new 'repeat' related functions instead of direct access to
6741 saved_command_line.
6742 * command.h (repeat_previous, get_saved_command_line,
6743 save_command_line): New declarations.
6744 (dont_repeat): Add comment.
6745
bfcdb852
TT
67462019-05-30 Tom Tromey <tromey@adacore.com>
6747
6748 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6749 Fix comment.
6750 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6751
0ef209f2
JV
67522019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6753
6754 PR cli/24587
6755 * completer.c (complete): Initialize variable word.
6756
955b06fa
SDJ
67572019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6758
6759 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6760 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6761 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6762 'body' is NULL to the outter 'if', protecting the '!is_define'
6763 situation as well.
6764
fa9c3fa0
TT
67652019-05-29 Tom Tromey <tromey@adacore.com>
6766
6767 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6768 (dwarf_unknown): New function.
6769 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6770 (dwarf_type_encoding_name): Use dwarf_unknown.
6771
4330d61d
TT
67722019-05-29 Tom Tromey <tromey@adacore.com>
6773
6774 PR c++/20020:
6775 * cp-valprint.c (cp_print_value_fields): Call
6776 cp_print_static_field inside "try".
6777
33a6bc35
TT
67782019-05-29 Tom Tromey <tromey@adacore.com>
6779
6780 * inflow.c (struct terminal_info): Add default operator=.
6781 * configure: Rebuild.
6782 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6783 -Wdeprecated-copy-dtor, -Wredundant-move.
6784
000439d5
TT
67852019-05-29 Tom Tromey <tromey@adacore.com>
6786
6787 * NEWS: Add entry.
6788 * infcmd.c (print_return_value_1): Handle finish_print
6789 option.
6790 (show_print_finish): New function.
6791 (_initialize_infcmd): Add "set/show print finish" commands.
6792 * valprint.c (user_print_options): Initialize new member.
6793 * valprint.h (struct value_print_options) <finish_print>: New
6794 member.
6795
c0e70c62
TT
67962019-05-28 Tom Tromey <tromey@adacore.com>
6797
6798 * ada-lang.c (ada_remove_Xbn_suffix)
6799 (find_old_style_renaming_symbol)
6800 (parse_old_style_renaming): Remove.
6801 (ada_find_renaming_symbol): Don't call
6802 find_old_style_renaming_symbol.
6803 (ada_is_renaming_symbol): Rename from
6804 ada_find_renaming_symbol. Remove "block" parameter. Return
6805 bool. Now static.
6806 (ada_read_var_value): Update and simplify.
6807 * ada-exp.y (write_var_or_type): Remove old code.
6808
766f8836
AH
68092019-05-28 Alan Hayward <alan.hayward@arm.com>
6810
68255adc 6811 PR gdb/25010
766f8836
AH
6812 * event-top.c: Remove include comment.
6813 * inflow.c (class scoped_ignore_sigttou): Move from here...
6814 * inflow.h (class scoped_ignore_sigttou): ...to here.
6815 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6816 * top.c: Remove include comment.
6817
eb41253a
TT
68182019-05-27 Tom Tromey <tom@tromey.com>
6819
6820 * NEWS: Fix typo.
6821
4ca51187
TT
68222019-05-22 Tom Tromey <tromey@adacore.com>
6823
6824 * target.c (target_follow_exec): Constify parameter.
6825 * target-delegates.c: Rebuild.
6826 * remote.c (remote_target::follow_exec): Constify parameter.
6827 * infrun.c (follow_exec): Constify parameter.
6828 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6829 (target_follow_exec): Likewise.
6830
8fca4da0
AH
68312019-05-22 Alan Hayward <alan.hayward@arm.com>
6832
6833 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6834 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6835
b7060614
AH
68362019-05-22 Alan Hayward <alan.hayward@arm.com>
6837
6838 * NEWS: Add debugredirect and testsuite sections.
6839
0a5954bd
SC
68402019-05-22 Simon Cook <simon.cook@embecosm.com>
6841
6842 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6843 target descriptions using exclusively floating point register name
6844 aliases.
6845
dc42e902
AB
68462019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6847
6848 PR gdb/18644:
6849 * f-lang.c (build_fortran_types): Handle the case where
6850 gdbarch_floatformat_for_type returns a nullptr.
6851
fb7806c7
TV
68522019-05-21 Tom de Vries <tdevries@suse.de>
6853
6854 PR cli/24587
6855 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6856
34d11c68
AB
68572019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 PR gdb/18644:
6860 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6861 16-byte floats.
6862 * i386-tdep.c (i386_floatformat_for_type): Use
6863 floatformats_ia64_quad for the 16-byte floating point component
6864 within a fortran 32-byte complex number.
6865
122cf0f2
AB
68662019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6869 delete default constructor.
6870 (find_partial_die): Update to return const struct.
6871 (partial_die_parent_scope): Move variable declaration into scope
6872 of its use and change its type to auto.
6873 (guess_partial_die_structure_name): Likewise.
6874 (partial_die_info::fixup): Likewise.
6875
33d0e35a
TT
68762019-05-17 Tom Tromey <tromey@adacore.com>
6877
6878 * source.c (find_and_open_source): Remove cast.
6879
a45575b0
TT
68802019-05-17 Tom Tromey <tromey@adacore.com>
6881
6882 * annotate.c (annotate_source): Make "filename" const.
6883 * annotate.h (annotate_source): Use const.
6884
81f47ac2
AH
68852019-05-17 Alan Hayward <alan.hayward@arm.com>
6886
6887 * disasm.c (set_disassembler_options): Send errors to stderr.
6888
ca1285d1
AH
68892019-05-17 Alan Hayward <alan.hayward@arm.com>
6890
6891 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6892 (cli_interp_base::set_logging): Check debug_redirect.
6893 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6894 * cli/cli-logging.c (debug_redirect): Add static variable.
6895 (pop_output_files): Add default param.
6896 (handle_redirections): Print debug setting.
6897 (show_logging_command): Likewise.
6898 (_initialize_cli_logging): Add debugredirect command.
6899 * interps.c (current_interp_set_logging): Add debug_redirect
6900 parameter.
6901 * interps.h (set_logging): Add debug_redirect parameter.
6902 (current_interp_set_logging): Likewise.
6903 * mi/mi-common.h: Likewise.
6904 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6905
69062019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
6907 Tom Tromey <tromey@adacore.com>
6908
6909 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6910 directly.
6911 * cli/cli-interp.h (make_logging_output): Remove declaration.
6912 * cli/cli-logging.c (make_logging_output): Remove function.
6913 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6914 directly.
6915 * ui-file.c (tee_file::tee_file): Remove bools.
6916 (tee_file::~tee_file): Remove deletes.
6917 * ui-file.h (tee_file): Remove bools.
6918
26648588
JV
69192019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6920
6921 * mi/mi-cmds.h (mi_cmd_complete): New function.
6922 * mi/mi-main.c (mi_cmd_complete): Likewise.
6923 * mi/mi-cmds.c: Define new MI command -complete.
6924 * NEWS: Mention new -complete command.
6925
6e035501
JV
69262019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6927
6928 * completer.h (complete): New function.
6929 * completer.c (complete): Likewise.
6930 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6931 function defined in completer.h.
6932
7d0e2ece
JV
69332019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6934
e79be6e5 6935 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 6936
fb816e8b
TV
69372019-05-17 Tom de Vries <tdevries@suse.de>
6938
6939 PR gdb/24094
6940 * dwarf2read.c (struct cu_partial_die_info): New struct.
6941 (find_partial_die): Return cu_partial_die_info.
6942 (partial_die_parent_scope, guess_partial_die_structure_name)
6943 (partial_die_info::fixup): Handle new return type of find_partial_die.
6944
677052f2
SDJ
69452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6946
a1726c38 6947 PR breakpoints/24541
677052f2
SDJ
6948 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6949 "std::string", simplifying the algorithm.
6950
f3da9116
SDJ
69512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6952
6953 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6954 (stap_static_probe_ops::get_probes): Likewise.
6955
f1bb75ab
SDJ
69562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6957
6958 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6959 '-')" and "else if".
6960 (stap_parse_single_operand): Join checks for
6961 "gdbarch_stap_parse_special_token_p" and
6962 "gdbarch_stap_parse_special_token" in the same "if" statement.
6963 Invert check when verifying for operation on register
6964 displacement.
6965
3ca58cde
SDJ
69662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 * stap-probe.c (stap_get_opcode): Update comment.
6969 (stap_get_expected_argument_type): Likewise.
6970 (handle_stap_probe): Likewise.
6971
af2d9bee
SDJ
69722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6973
6974 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6975 return type to 'bool'. Adjust comment. Use 'bool' when
6976 appropriate.
6977 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6978 * stap-probe.c (stap_parse_argument_1): Likewise.
6979 (stap_is_operator): Likewise.
6980 (stap_is_generic_prefix): Likewise.
6981 (stap_is_register_prefix): Likewise.
6982 (stap_is_register_indirection_prefix): Likewise.
6983 (stap_is_integer_prefix): Likewise.
6984 (stap_generic_check_suffix): Likewise.
6985 (stap_check_integer_suffix): Likewise.
6986 (stap_check_register_suffix): Likewise.
6987 (stap_check_register_indirection_suffix): Likewise.
6988 (stap_parse_register_operand): Likewise.
6989 (stap_parse_single_operand): Likewise.
6990 (stap_parse_argument_1): Likewise.
6991 (stap_probe::get_argument_count): Likewise.
6992 (stap_is_operator): Likewise.
6993
61c9c421
TT
69942019-05-16 Tom Tromey <tromey@adacore.com>
6995
6996 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6997 keyword to foreach.
6998
9ddc1af1
SM
69992019-05-15 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * linux-thread-db.c (try_thread_db_load_1): Change return type
7002 to bool.
7003 (try_thread_db_load): Likewise.
7004 (try_thread_db_load_from_pdir_1): Likewise.
7005 (try_thread_db_load_from_pdir): Likewise.
7006 (try_thread_db_load_from_sdir): Likewise.
7007 (try_thread_db_load_from_dir): Likewise.
7008 (thread_db_load_search): Likewise.
7009 (has_libpthread): Likewise.
7010 (thread_db_load): Likewise.
7011
7bede828
SDJ
70122019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7013
7014 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7015 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7016 NULL, and complain/return if that's the case.
7017
c5358db4
JD
70182019-05-15 John Darrington <john@darrington.wattle.id.au>
7019
7020 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7021 (advance, posn, abstract_read_memory): New functions.
7022 [struct mem_read_abstraction]: New struct.
7023 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7024
c408a94f
TT
70252019-05-14 Tom Tromey <tromey@adacore.com>
7026
7027 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7028 value is not lval_memory.
7029
e7bd7fba
TT
70302019-05-14 Tom Tromey <tromey@adacore.com>
7031
7032 * solib.c (info_sharedlibrary_command): Style the file name.
7033
a6d0f249
AH
70342019-05-14 Alan Hayward <alan.hayward@arm.com>
7035
7036 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7037 (aarch64_vnv_type): Likewise.
7038 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7039 * common/tdesc.c: Likewise.
7040 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7041 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7042 * features/aarch64-fpu.xml: Add ieee half view.
7043 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7044 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7045 * gdbtypes.h (struct builtin_type): Likewise.
7046 (struct objfile_type): Likewise.
7047
66b8bb74
SM
70482019-05-12 Paul Naert <paul.naert@polymtl.ca>
7049
7050 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7051 typo.
7052 * location.h (string_to_event_location): Likewise.
7053
21c219fd
JB
70542019-05-11 Joel Brobecker <brobecker@adacore.com>
7055
7056 GDB 8.3 released.
7057
13674803
SM
70582019-05-10 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7061 New variable declaration.
7062 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7063 New variable.
7064 (print_one_breakpoint): Use ui_out::test_flags and new global
7065 variable to compute use_fixed_output.
7066 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7067 Remove.
7068 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7069 (mi_multi_location_breakpoint_output_fixed): Remove.
7070 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7071 new variable.
7072 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7073 fix_multi_location_breakpoint_output flag if version >= 3.
7074 * ui-out.h (enum ui_out_flag)
7075 <fix_multi_location_breakpoint_output>: New enumerator.
7076
a9eac7f9
SM
70772019-05-10 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7080
71bed2db
TT
70812019-05-10 Tom Tromey <tromey@adacore.com>
7082
7083 * ada-lang.c (catch_ada_completer): New function.
7084 (_initialize_ada_language): Use it.
7085
24c54127
TT
70862019-05-10 Tom Tromey <tromey@adacore.com>
7087
7088 * thread.c (print_thread_info): Make "requested_threads" const.
7089 * gdbthread.h (print_thread_info): Make "requested_threads"
7090 const.
7091 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7092 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7093
7a102139
TT
70942019-05-08 Tom Tromey <tom@tromey.com>
7095
7096 * gdbtypes.c (objfile_type_data): Change type.
7097 (objfile_type, _initialize_gdbtypes): Update.
7098
924d79e2
TT
70992019-05-08 Tom Tromey <tom@tromey.com>
7100
7101 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7102 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7103 (_initialize_dwarf2_frame): Update.
7104
4c58e337
TT
71052019-05-08 Tom Tromey <tom@tromey.com>
7106
7107 * objc-lang.c (objc_objfile_data): Change type.
7108 (find_methods): Update.
7109 (_initialize_objc_lang): Remove.
7110
d772d2ab
TT
71112019-05-08 Tom Tromey <tom@tromey.com>
7112
7113 * stabsread.c (rs6000_builtin_type_data): Change type.
7114 (rs6000_builtin_type, _initialize_stabsread): Update.
7115
d11d83f4
TT
71162019-05-08 Tom Tromey <tom@tromey.com>
7117
7118 * mips-tdep.c (mips_pdr_data): Remove.
7119 (_initialize_mips_tdep): Update.
7120
9a73f0ad
TT
71212019-05-08 Tom Tromey <tom@tromey.com>
7122
7123 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7124 (hppa_init_objfile_priv_data, read_unwind_info)
7125 (find_unwind_entry, _initialize_hppa_tdep): Update.
7126
8127a2fa
TT
71272019-05-08 Tom Tromey <tom@tromey.com>
7128
7129 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7130 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7131 on obstack.
7132 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7133
91d3055d
TT
71342019-05-08 Tom Tromey <tom@tromey.com>
7135
7136 * mdebugread.c (basic_type_data): Change type.
7137 (basic_type, _initialize_mdebugread): Update.
7138
31930bd3
TT
71392019-05-08 Tom Tromey <tom@tromey.com>
7140
7141 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7142
bdb3ed9e
TT
71432019-05-08 Tom Tromey <tom@tromey.com>
7144
7145 * nto-tdep.c (nto_inferior_data_reg): Change type.
7146 (nto_inferior_data): Update.
7147 (nto_inferior_data_cleanup, nto_new_inferior_data)
7148 (_initialize_nto_tdep): Remove.
7149 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7150
f37b313d
TT
71512019-05-08 Tom Tromey <tom@tromey.com>
7152
7153 * ada-lang.c (struct ada_inferior_data): Add initializers.
7154 (ada_inferior_data): Change type.
7155 (ada_inferior_data_cleanup): Remove.
7156 (get_ada_inferior_data, ada_inferior_exit)
7157 (struct ada_pspace_data): Add initializers, destructor.
7158 (ada_pspace_data_handle): Change type.
7159 (get_ada_pspace_data): Update.
7160 (ada_pspace_data_cleanup): Remove.
7161
24699405
TT
71622019-05-08 Tom Tromey <tom@tromey.com>
7163
7164 * coffread.c (struct coff_symfile_info): Add initializers.
7165 (coff_objfile_data_key): Move lower. Change type.
7166 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7167 Update.
7168 (coff_free_info): Remove.
7169
d4e05d2f
TT
71702019-05-08 Tom Tromey <tom@tromey.com>
7171
7172 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7173 (fbsd_pspace_data_handle): Move lower. Change type.
7174 (get_fbsd_pspace_data): Update.
7175 (fbsd_pspace_data_cleanup): Remove.
7176 (_initialize_fbsd_tdep): Update.
7177
14ef6690
TT
71782019-05-08 Tom Tromey <tom@tromey.com>
7179
7180 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7181 (get_ada_tasks_pspace_data): Update.
7182 (ada_tasks_pspace_data_cleanup): Remove.
7183 (_initialize_tasks): Update.
7184 (ada_tasks_inferior_data_handle): Change type.
7185 (get_ada_tasks_inferior_data): Update.
7186 (ada_tasks_inferior_data_cleanup): Remove.
7187 (struct ada_tasks_pspace_data): Add initializers.
7188
814cf43a
TT
71892019-05-08 Tom Tromey <tom@tromey.com>
7190
7191 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7192 * symfile-debug.c (debug_sym_get_probes): Change type.
7193 * stap-probe.c (handle_stap_probe):
7194 (stap_static_probe_ops::get_probes): Change type.
7195 * probe.h (class static_probe_ops) <get_probes>: Change type.
7196 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7197 (parse_probes_in_pspace): Update.
7198 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7199 Update.
7200 (any_static_probe_ops::get_probes): Change type.
7201 * elfread.c (elfread_data): New typedef.
7202 (probe_key): Change type.
7203 (elf_get_probes): Likewise. Update.
7204 (probe_key_free): Remove.
7205 (_initialize_elfread): Update.
7206 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7207 Change type.
7208 (dtrace_process_dof_probe, dtrace_process_dof)
7209 (dtrace_static_probe_ops::get_probe): Change type.
7210
02dc647e
TT
72112019-05-08 Tom Tromey <tom@tromey.com>
7212
7213 * xcoffread.c (struct xcoff_symfile_info): Rename from
7214 coff_symfile_info. Add initializers.
7215 (xcoff_objfile_data_key): Move lower. Change type.
7216 (XCOFF_DATA): Rewrite.
7217 (xcoff_free_info): Remove.
7218 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7219 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7220 (xcoff_initial_scan): Update.
7221
09232438
TT
72222019-05-08 Tom Tromey <tom@tromey.com>
7223
7224 * solib-svr4.c (struct svr4_info): Add initializers and
7225 destructor.
7226 <probes_table>: Now an htab_up.
7227 (solib_svr4_pspace_data): Change type.
7228 (free_probes_table): Simplify.
7229 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7230 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7231 (probes_table_remove_objfile_probes, register_solib_event_probe)
7232 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7233 (_initialize_svr4_solib): Update.
7234
7b4a314f
TT
72352019-05-08 Tom Tromey <tom@tromey.com>
7236
7237 * remote.c (remote_pspace_data): Change type.
7238 (remote_pspace_data_cleanup): Remove.
7239 (get_remote_exec_file, set_pspace_remote_exec_file)
7240 (_initialize_remote): Update.
7241
51d3063a
TT
72422019-05-08 Tom Tromey <tom@tromey.com>
7243
7244 * breakpoint.c (breakpoint_objfile_key): Change type.
7245 (get_breakpoint_objfile_data): Update.
7246 (free_breakpoint_objfile_data): Remove.
7247 (_initialize_breakpoint): Update.
7248
89fb8848
TT
72492019-05-08 Tom Tromey <tom@tromey.com>
7250
7251 * linux-tdep.c (struct linux_info): Add initializers.
7252 (linux_inferior_data): Move. Change type.
7253 (invalidate_linux_cache_inf): Update.
7254 (linux_inferior_data_cleanup): Remove.
7255 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7256
e9b89e2d
TT
72572019-05-08 Tom Tromey <tom@tromey.com>
7258
7259 * auxv.c (auxv_inferior_data): Move. Change type.
7260 (auxv_inferior_data_cleanup): Remove.
7261 (invalidate_auxv_cache_inf): Rewrite.
7262 (get_auxv_inferior_data, _initialize_auxv): Update.
7263
8c42777c
TT
72642019-05-08 Tom Tromey <tom@tromey.com>
7265
7266 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7267 (symfile_debug_objfile_data_key): Change type.
7268 (symfile_debug_installed, debug_qf_has_symbols)
7269 (debug_qf_find_last_source_symtab)
7270 (debug_qf_forget_cached_source_info)
7271 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7272 (debug_qf_print_stats, debug_qf_dump)
7273 (debug_qf_expand_symtabs_for_function)
7274 (debug_qf_expand_all_symtabs)
7275 (debug_qf_expand_symtabs_with_fullname)
7276 (debug_qf_map_matching_symbols)
7277 (debug_qf_expand_symtabs_matching)
7278 (debug_qf_find_pc_sect_compunit_symtab)
7279 (debug_qf_map_symbol_filenames)
7280 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7281 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7282 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7283 (debug_sym_read_linetable, debug_sym_relocate): Update.
7284 (symfile_debug_free_objfile): Remove.
7285 (install_symfile_debug_logging, _initialize_symfile_debug):
7286 Update.
7287
5bfd760d
TT
72882019-05-08 Tom Tromey <tom@tromey.com>
7289
7290 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7291 allocate_on_obstack.
7292 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7293 (get_dwarf2_per_objfile): Update.
7294 (set_dwarf2_per_objfile): Remove.
7295 (dwarf2_has_info, dwarf2_get_section_info): Update.
7296 (dwarf2_free_objfile): Remove.
7297 (_initialize_dwarf2_read): Update.
7298
e85e19b4
TT
72992019-05-08 Tom Tromey <tom@tromey.com>
7300
7301 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7302 initializers.
7303 <unsupported_script_warning_printed,
7304 script_not_found_warning_printed>: Now bool.
7305 (auto_load_pspace_data): Change type.
7306 (~auto_load_pspace_info): Rename from
7307 auto_load_pspace_data_cleanup.
7308 (get_auto_load_pspace_data, init_loaded_scripts_info)
7309 (clear_section_scripts, maybe_print_unsupported_script_warning)
7310 (maybe_print_script_not_found_warning, _initialize_auto_load):
7311 Update.
7312
f6aa7436
TT
73132019-05-08 Tom Tromey <tom@tromey.com>
7314
7315 * objfiles.c (objfile_pspace_info): Add destructor and
7316 initializers.
7317 (objfiles_pspace_data): Change type.
7318 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7319 (get_objfile_pspace_data): Update.
7320 (objfiles_bfd_data): Change type.
7321 (get_objfile_bfd_data): Update.
7322 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7323
6ae614f6
TT
73242019-05-08 Tom Tromey <tom@tromey.com>
7325
7326 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7327 Change type.
7328 (get_catch_syscall_inferior_data): Update.
7329 (catch_syscall_inferior_data_cleanup): Remove.
7330 (_initialize_break_catch_syscall): Update.
7331
6509b8eb
TT
73322019-05-08 Tom Tromey <tom@tromey.com>
7333
7334 * inflow.c (struct terminal_info): Add destructor and
7335 initializers.
7336 (inflow_inferior_data): Change type.
7337 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7338 (get_inflow_inferior_data, inflow_inferior_exit)
7339 (swap_terminal_info, _initialize_inflow): Update.
7340
35632941
TT
73412019-05-08 Tom Tromey <tom@tromey.com>
7342
7343 * target-dcache.c (target_dcache_cleanup): Remove.
7344 (target_dcache_aspace_key): Change type.
7345 (target_dcache_init_p, target_dcache_invalidate)
7346 (target_dcache_get, target_dcache_get_or_init)
7347 (_initialize_target_dcache): Update.
7348 * dcache.h (struct dcache_deleter): New.
7349
3017b94d
TT
73502019-05-08 Tom Tromey <tom@tromey.com>
7351
7352 * symtab.c (struct symbol_cache): Add destructor and
7353 initializers.
7354 (symbol_cache_key): Move. Change type.
7355 (make_symbol_cache, free_symbol_cache): Remove.
7356 (get_symbol_cache): Update.
7357 (symbol_cache_cleanup): Remove.
7358 (ALL_PSPACES, symbol_cache_flush)
7359 (maintenance_print_symbol_cache)
7360 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7361 Update.
7362
a32ad8c5
TT
73632019-05-08 Tom Tromey <tom@tromey.com>
7364
7365 * symtab.c (struct main_info): Add destructor and initializers.
7366 (main_progspace_key): Move. Change type.
7367 (get_main_info): Update.
7368 (main_info_cleanup): Remove.
7369 (_initialize_symtab): Update.
7370
5f6e90a0
TT
73712019-05-08 Tom Tromey <tom@tromey.com>
7372
7373 * registry.h (DECLARE_REGISTRY): Define the _key class.
7374
1bd0c6e4
AB
73752019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * NEWS: Merge two 'New commands' sections.
7378
2228ef77
XR
73792019-05-08 Joel Brobecker <brobecker@adacore.com>
7380
7381 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7382 parameter and use Ada language definition instead.
7383 (ada_val_print_ptr): Remove unused language parameter.
7384 (ada_val_print_num): Remove language parameter and use Ada language
7385 definition instead.
7386 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7387 parameter.
7388 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7389 parameter and use Ada language definition instead.
7390 (ada_val_print_1): Update all ada_val_print_xxx calls.
7391 Remove language parameter.
7392 (ada_val_print): Update ada_val_print_1 call.
7393
60fcc1c3
TT
73942019-05-08 Tom Tromey <tromey@adacore.com>
7395
7396 * remote.c (remote_hw_watchpoint_limit)
7397 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7398 Now static.
7399
ed2b7c17
TT
74002019-05-08 Tom Tromey <tromey@adacore.com>
7401
7402 * maint.c (_initialize_maint_cmds): Move initialization code to
7403 remote.c.
7404 (watchdog, show_watchdog): Move to remote.c.
7405 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7406 "watchdog" static.
7407 (_initialize_remote): Move initialization code from maint.c.
7408 * defs.h (watchdog): Don't declare.
7409
b0be6c91
TT
74102019-05-08 Tom Tromey <tromey@adacore.com>
7411
7412 * tui/tui-interp.c: Include main.h.
7413 * interps.c: Include main.h.
7414 * main.h (interpreter_p): Declare.
7415 * defs.h (interpreter_p): Don't declare.
7416
587ee17b
TT
74172019-05-08 Tom Tromey <tromey@adacore.com>
7418
7419 * dwarf2loc.c: Include dwarf2read.h.
7420 * defs.h (read_unsigned_leb128): Don't declare.
7421 * dwarf2read.h (read_unsigned_leb128): Declare.
7422
ca1df239
TT
74232019-05-08 Tom Tromey <tromey@adacore.com>
7424
7425 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7426 method.
7427
99f20f08
TT
74282019-05-08 Tom Tromey <tromey@adacore.com>
7429
7430 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7431 when no wrap column is set.
7432
80e55b13
TT
74332019-05-08 Tom Tromey <tromey@adacore.com>
7434
7435 * c-lang.c (c_get_string): Handle non-C-style arrays.
7436
9d3421af
TT
74372019-05-08 Tom Tromey <tromey@adacore.com>
7438
7439 * typeprint.c (print_offset_data::update): Print the bit offset,
7440 not the number of bits remaining.
7441
844333e2
TT
74422019-05-08 Tom Tromey <tromey@adacore.com>
7443
7444 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7445 padding at end of comment.
7446
988915ee
TT
74472019-05-08 Tom Tromey <tromey@adacore.com>
7448
7449 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7450 Compare main types.
7451
26bfd823
TT
74522019-05-06 Tom Tromey <tom@tromey.com>
7453
7454 * common/scoped_mmap.c: Include common-defs.h.
7455 * common/scoped_mmap.h: Don't include config.h.
7456
89055eaa
TT
74572019-05-04 Tom Tromey <tom@tromey.com>
7458
7459 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7460 (struct aarch64_call_info): Add initializers.
7461 <si>: Now a std::vector.
7462 (pass_on_stack, aarch64_push_dummy_call): Update.
7463
5da01df5
TT
74642019-05-04 Simon Marchi <simon.marchi@efficios.com>
7465 Tom Tromey <tom@tromey.com>
7466
7467 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7468 (ppc_threads): Now a std::vector. Now static.
7469 (hwdebug_find_thread_points_by_tid)
7470 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7471 Update.
7472
fbdf05a1
TT
74732019-05-04 Tom Tromey <tom@tromey.com>
7474
7475 * arc-tdep.c (arc_tdesc_init): Return bool.
7476
06d16ec9
TT
74772019-05-04 Tom Tromey <tom@tromey.com>
7478
7479 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7480 Use gdb_assert_not_reached.
7481
9c056022
TT
74822019-05-04 Tom Tromey <tom@tromey.com>
7483
7484 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7485 "false".
7486
fa9c2a59
TT
74872019-05-04 Tom Tromey <tom@tromey.com>
7488
7489 * arc-tdep.c (arc_tdesc_init): Use bool.
7490
e2eb806a
TT
74912019-05-04 Tom Tromey <tom@tromey.com>
7492
7493 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7494
6fe87677
TT
74952019-05-04 Tom Tromey <tom@tromey.com>
7496
7497 * cli/cli-cmds.c (valid_command_p): Return bool.
7498
7f008c9e
TT
74992019-05-04 Tom Tromey <tom@tromey.com>
7500
7501 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7502 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7503
b6484282
RT
75042019-05-04 Raul Tambre <raul@tambre.ee>
7505
7506 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7507 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7508 operator for comparison.
7509
af97b416
TT
75102019-05-04 Tom Tromey <tom@tromey.com>
7511
7512 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7513 (lookup_partial_symbol, print_partial_symbols)
7514 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7515 (psymbol_compare): Update.
7516 (add_psymbol_to_bcache): Clear the entire psymbol.
7517 (maintenance_check_psymtabs): Update.
7518 * psympriv.h (struct partial_symbol): Don't derive from
7519 general_symbol_info.
7520 <obj_section, unrelocated_address, address,
7521 set_unrelocated_address>: Update.
7522 <ginfo>: New member.
7523 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7524 (debug_names::write_psymbols): Update.
7525
9d6d4be8
TV
75262019-05-04 Tom de Vries <tdevries@suse.de>
7527
7528 * contrib/cc-with-tweaks.sh: Support -n arg.
7529
66452beb
PW
75302019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7531
7532 * corelow.c (core_target::detach): Ensure frame cache and
7533 register caches are cleared.
7534 inferior.c (exit_inferior_1): Likewise.
7535
bde09ab7
TT
75362019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7537 Tom Tromey <tom@tromey.com>
7538
7539 * dictionary.c (collate_pending_symbols_by_language): Remove
7540 "struct" from foreach.
7541 * symtab.c (lookup_global_symbol_from_objfile)
7542 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7543 foreach.
7544 * ser-tcp.c (net_open): Remove "struct" from foreach.
7545 * objfiles.c (objfile_relocate, objfile_rebase)
7546 (objfile_has_symbols): Remove "struct" from foreach.
7547 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7548 from foreach.
7549 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7550 foreach.
7551 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7552 "struct" from foreach.
7553 * ada-lang.c (create_excep_cond_exprs)
7554 (ada_exception_catchpoint_cond_string): Remove "struct" from
7555 foreach.
7556
222a8d25
TT
75572019-05-03 Tom Tromey <tromey@adacore.com>
7558
7559 * ada-exp.y (convert_char_literal): Check suffix of each
7560 enumerator.
7561
fcd60b84
DP
75622019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7563
7564 PR ada/21406:
7565 * ada-exp.y (yywrap): Don't define.
7566 * ada-lex.l (%option): Add noyywrap
7567 (yywrap): Remove.
7568
5f2459c2
EZ
75692019-05-03 Eli Zaretskii <eliz@gnu.org>
7570
353ea2d1
EZ
7571 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7572 _WIN32_WINNT to the XP level, unless already defined to a higher
7573 level.
7574
7575 * unittests/parse-connection-spec-selftests.c:
7576 * ser-tcp.c:
7577 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7578 override.
7579
5f2459c2
EZ
7580 * symfile.c (find_separate_debug_file): Remove colon from the
7581 drive spec of DOS/Windows file names of the target, so that the
7582 file name produced from DEBUGDIR and the target's directory will
7583 be valid on DOS/Windows systems.
7584
80062eb9
AB
75852019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7586
7587 * rust-lang.c (val_print_struct): Handle printing structures
7588 containing strings.
7589
b8c05e85
TT
75902019-05-02 Tom Tromey <tromey@adacore.com>
7591
7592 * valarith.c (_initialize_valarith): Remove.
7593
4504bbde
TT
75942019-05-01 Tom Tromey <tromey@adacore.com>
7595
7596 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7597 bitfields.
7598
d48e62f4
TT
75992019-05-01 Tom Tromey <tromey@adacore.com>
7600
7601 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7602 for big-endian copies.
7603
15f18d14
AT
76042019-04-30 Ali Tamur <tamur@google.com>
7605 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7606 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7607 (read_3_bytes): New function.
7608
ab4ee614
JB
76092019-04-30 Joel Brobecker <brobecker@adacore.com>
7610
7611 * windows-nat.c (main_thread_id): Delete.
7612 (handle_output_debug_string): Replace main_thread_id by
7613 current_event.dwThreadId.
7614 (fake_create_process): Likewise.
7615 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7616 Do not set main_thread_id.
7617 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7618 current_event.dwThreadId.
7619 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7620
8ed5b76e
JB
76212019-04-30 Joel Brobecker <brobecker@adacore.com>
7622
7623 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7624 Use current_event.dwThreadId instead of main_thread_id.
7625
2ff0a947
TT
76262019-04-30 Tom Tromey <tromey@adacore.com>
7627
7628 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7629 (create_excep_cond_exprs): Iterate over program spaces.
7630 (ada_exception_catchpoint_cond_string): Examine all minimal
7631 symbols for exception types.
7632
a776957c
TT
76332019-04-30 Tom Tromey <tromey@adacore.com>
7634
7635 PR c++/24470:
7636 * dwarf2read.c (process_structure_scope): Handle case where type
7637 has template parameters but no symbol was created.
7638
bc68014d
AB
76392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7640 Chris January <chris.january@arm.com>
7641
7642 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7643 qualifier.
7644 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7645
f1fdc960
AB
76462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * f-typeprint.c (f_print_type): Update rules for printing
7649 whitespace.
7650 (f_type_print_varspec_suffix): Likewise.
7651
bf7a4de1
AB
76522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7653 Chris January <chris.january@arm.com>
7654
7655 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7656 function arguments.
7657
bbe75b9d
AB
76582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7659
7660 * f-lang.c (build_fortran_types): Change name of void type to
7661 lower case.
7662 * f-typeprint.c (f_type_print_base): Print the name of the void
7663 type, rather than a fixed string.
7664 * f-valprint.c (f_decorations): Use lower case void string.
7665
1db455a7
AB
76662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7667 Chris January <chris.january@arm.com>
7668
7669 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7670 types for Fortran.
7671
b6d03bb2
AB
76722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7673 Chris January <chris.january@arm.com>
7674 David Lecomber <david.lecomber@arm.com>
7675
7676 * f-exp.y (BINOP_INTRINSIC): New token.
7677 (exp): New parser rule handling BINOP_INTRINSIC.
7678 (f77_keywords): Add new builtin procedures.
7679 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7680 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7681 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7682 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7683 (print_unop_subexp_f): New function.
7684 (print_binop_subexp_f): New function.
7685 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7686 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7687 (dump_subexp_body_f): Likewise.
7688 (operator_check_f): Likewise.
7689 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7690 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7691
83228e93
AB
76922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7695 UNOP_KIND.
7696 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7697 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7698 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7699 (operator_length_f): New fuction.
7700 (print_subexp_f): New function.
7701 (op_name_f): New function.
7702 (dump_subexp_body_f): New function.
7703 (operator_check_f): New function.
7704 (exp_descriptor_f): Replace standard expression handling functions
7705 with new functions.
7706 * gdb/fortran-operator.def: New file.
7707 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7708 * gdb/std-operator.def: Remove UNOP_KIND.
7709
6fdcd7cc
AB
77102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 * std-operator.def: Remove unbalanced, stray double quote
7713 character.
7714
2e62ab40
AB
77152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7716 Chris January <chris.january@arm.com>
7717 Daniel Everett <daniel.everett@arm.com>
7718 Nick Forrington <nick.forrington@arm.com>
7719 Richard Bunt <richard.bunt@arm.com>
7720
7721 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7722 of depth when printing anonymous structs or unions.
7723 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7724 Don't print either the top-level value, or the children if the
7725 max-depth is exceeded.
7726 (ppscm_print_children): When printing the key of a map, allow one
7727 extra level of depth.
7728 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7729 print either the top-level value, or the children if the max-depth
7730 is exceeded.
7731 (print_children): When printing the key of a map, allow one extra
7732 level of depth.
7733 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7734 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7735 (user_print_options): Initialise max_depth field.
7736 (val_print_scalar_or_string_type_p): New function.
7737 (val_print): Check to see if the max depth has been reached.
7738 (val_print_check_max_depth): Define new function.
7739 (show_print_max_depth): New function.
7740 (_initialize_valprint): Add 'print max-depth' option.
7741 * valprint.h (struct value_print_options) <max_depth>: New field.
7742 (val_print_check_max_depth): Declare new function.
7743 * NEWS: Document new feature.
7744
4be290b2
AB
77452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7746
7747 * ada-lang.c (ada_language_defn): Initialise new field.
7748 * c-lang.c (c_is_string_type_p): New function.
7749 (c_language_defn): Initialise new field.
7750 (cplus_language_defn): Initialise new field.
7751 (asm_language_defn): Initialise new field.
7752 (minimal_language_defn): Initialise new field.
7753 * c-lang.h (c_is_string_type_p): Declare new function.
7754 * d-lang.c (d_language_defn): Initialise new field.
7755 * f-lang.c (f_is_string_type_p): New function.
7756 (f_language_defn): Initialise new field.
7757 * go-lang.c (go_is_string_type_p): New function.
7758 (go_language_defn): Initialise new field.
7759 * language.c (default_is_string_type_p): New function.
7760 (unknown_language_defn): Initialise new field.
7761 (auto_language_defn): Initialise new field.
7762 * language.h (struct language_defn) <la_is_string_type_p>: New
7763 member variable.
7764 (default_is_string_type_p): Declare new function.
7765 * m2-lang.c (m2_language_defn): Initialise new field.
7766 * objc-lang.c (objc_language_defn): Initialise new field.
7767 * opencl-lang.c (opencl_language_defn): Initialise new field.
7768 * p-lang.c (pascal_is_string_type_p): New function.
7769 (pascal_language_defn): Initialise new field.
7770 * rust-lang.c (rust_is_string_type_p): New function.
7771 (rust_language_defn): Initialise new field.
7772
721b08c6
AB
77732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7776 New field.
7777 * ada-lang.c (ada_language_defn): Initialise new field.
7778 * c-lang.c (c_language_defn): Likewise.
7779 (cplus_language_defn): Likewise.
7780 (asm_language_defn): Likewise.
7781 (minimal_language_defn): Likewise.
7782 * d-lang.c (d_language_defn): Likewise.
7783 * f-lang.c (f_language_defn): Likewise.
7784 * go-lang.c (go_language_defn): Likewise.
7785 * language.c (unknown_language_defn): Likewise.
7786 (auto_language_defn): Likewise.
7787 * m2-lang.c (m2_language_defn): Likewise.
7788 * objc-lang.c (objc_language_defn): Likewise.
7789 * opencl-lang.c (opencl_language_defn): Likewise.
7790 * p-lang.c (pascal_language_defn): Likewise.
7791 * rust-lang.c (rust_language_defn): Likewise.
7792
fc913e53
AB
77932019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * ada-lang.c (ada_is_character_type): Change return type to bool.
7796 (ada_is_string_type): Likewise.
7797 * ada-lang.h (ada_is_character_type): Update declaration
7798 (ada_is_string_type): Likewise.
7799
fa731fa0
PW
78002019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7801
7802 Support style in 'frame|thread apply'
7803
7804 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7805 * record.c (record_start, record_stop): Update callers of
7806 execute_command_to_string with false.
7807 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7808 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7809 methods.
7810 (class string_file): New constructor with term_out parameter.
7811 Override methods term_out and can_emit_style_escape. New member
7812 term_out.
7813 (class stdio_file): Override can_emit_style_escape.
7814 (class tee_file): Override term_out and can_emit_style_escape.
7815 * utils.h (can_emit_style_escape): Remove.
7816 * utils.c (can_emit_style_escape): Likewise.
7817 Update all callers of can_emit_style_escape (SOMESTREAM) to
7818 SOMESTREAM->can_emit_style_escape.
7819 * source-cache.c (source_cache::get_source_lines): Likewise.
7820 * stack.c (frame_apply_command_count): Call execute_command_to_string
7821 passing the term_out characteristic of the current gdb_stdout.
7822 * thread.c (thr_try_catch_cmd): Likewise.
7823 * top.c (execute_command_to_string): pass term_out parameter
7824 to construct the string_file for the command output.
7825 * ui-file.c (term_cli_styling): New function (most code moved
7826 from utils.c can_emit_style_escape).
7827 (string_file::string_file, string_file::can_emit_style_escape,
7828 stdio_file::can_emit_style_escape, tee_file::term_out,
7829 tee_file::can_emit_style_escape): New functions.
7830
136afab8
PW
78312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7832
7833 * NEWS: Mention the new set|show may-call-functions.
7834 * infcall.c (may_call_functions_p): New variable.
7835 (show_may_call_functions_p): New function.
7836 (call_function_by_hand_dummy): Throws an error if not
7837 may-call-functions.
7838 (_initialize_infcall): Call add_setshow_boolean_cmd for
7839 may-call-functions.
7840
725cbb63
KS
78412019-04-25 Keith Seitz <keiths@redhat.com>
7842
7843 PR c++/24367
7844 * cp-support.c (inspect_type): Don't attempt substitutions
7845 of symbol with the same name.
7846
3d1cbb78
TT
78472019-04-25 Tom Tromey <tromey@adacore.com>
7848
7849 PR gdb/24475:
7850 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7851 static.
7852
94aeb44b
TT
78532019-04-25 Tom Tromey <tromey@adacore.com>
7854
7855 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7856 rvalue reference.
7857 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7858 (gdb_xml_parser::parse): Use std::move.
7859 * python/python-internal.h (gdbpy_convert_exception): Take a const
7860 reference.
7861 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7862 std::move.
7863 * python/py-utils.c (gdbpy_convert_exception): Take a const
7864 reference.
7865 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7866 Use std::move.
7867 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7868 Use std::move.
7869 * mi/mi-main.c (mi_print_exception): Take a const reference.
7870 * main.c (handle_command_errors): Take a const reference.
7871 * linespec.c (parse_linespec): Use std::move.
7872 * infcall.c (run_inferior_call): Use std::move.
7873 (call_function_by_hand_dummy): Use std::move.
7874 * exec.c (try_open_exec_file): Use std::move.
7875 * exceptions.h (exception_print, exception_fprintf)
7876 (exception_print_same): Update.
7877 * exceptions.c (print_exception, exception_print)
7878 (exception_fprintf, exception_print_same): Change parameters to
7879 const reference.
7880 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7881 * common/new-op.c: Use std::move.
7882 * common/common-exceptions.h (struct gdb_exception): Add move
7883 constructor.
7884 (struct gdb_exception_error, struct gdb_exception_quit, struct
7885 gdb_quit_bad_alloc): Change constructor to move constructor.
7886 (throw_exception): Change parameter to rvalue reference.
7887 * common/common-exceptions.c (throw_exception): Take rvalue
7888 reference.
7889 * cli/cli-interp.c (safe_execute_command): Use std::move.
7890 * breakpoint.c (insert_bp_location, location_to_sals): Use
7891 std::move.
7892
680d7fd5
TT
78932019-04-25 Tom Tromey <tromey@adacore.com>
7894
7895 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7896 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7897 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7898 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7899 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7900 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7901 guile/scm-value.c: Use unpack.
7902 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7903 gdbscm_gdb_exception.
7904 (gdbscm_throw_gdb_exception): Likewise.
7905 (struct gdbscm_gdb_exception): New.
7906 (unpack): New function.
7907 (gdbscm_wrap): Use unpack.
7908
c6fdd8b2
TT
79092019-04-25 Tom Tromey <tromey@adacore.com>
7910
7911 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7912 (gdb_rl_callback_handler): Use std::move.
7913 * common/common-exceptions.h (struct gdb_exception): Add move
7914 assignment operator.
7915 (throw_exception_sjlj): Change "exception" to const reference.
7916 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7917 (throw_exception_sjlj): Change "exception" to const reference.
7918
cc06b668
TT
79192019-04-25 Tom Tromey <tromey@adacore.com>
7920
7921 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7922 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7923 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7924 Update.
7925 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7926 Update.
7927 * mi/mi-interp.c (mi_interp::exec): Update.
7928 * linespec.c (parse_linespec): Update.
7929 * infcall.c (run_inferior_call): Update.
7930 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7931 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7932 (gdbscm_lookup_global_symbol): Update.
7933 * guile/scm-param.c (gdbscm_parameter_value): Update.
7934 * guile/scm-frame.c (gdbscm_frame_read_register)
7935 (gdbscm_frame_read_var): Update.
7936 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7937 * exec.c (try_open_exec_file): Update.
7938 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7939 (gdb_rl_callback_handler): Update.
7940 * common/common-exceptions.h (exception_none): Don't declare.
7941 * common/common-exceptions.c (exception_none): Don't define.
7942 (struct catcher) <exception>: Update.
7943 * cli/cli-interp.c (safe_execute_command): Update.
7944 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7945
cf532bd1
AT
79462019-04-25 Ali Tamur <tamur@google.com>
7947
7948 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7949 (read_attribute_value): Likewise.
7950 (dwarf2_read_addr_index): Update comment.
7951 (read_str_index): Add DW_FORM_strx.
7952 (dwarf2_string_attr): Likewise.
7953 (dwarf2_const_value_attr): Likewise.
7954 (dump_die_shallow): Likewise.
7955 (dwarf2_fetch_constant_bytes): Likewise.
7956 (skip_form_bytes): Likewise.
7957 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7958
82433e3e
SDJ
79592019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7960
7961 PR corefiles/11608
7962 PR corefiles/18187
7963 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7964 OFFSET. Verify if current mapping contains an ELF header.
7965 (linux_find_memory_regions_full): Adjust call to
7966 dump_mapping_p.
7967
723adb65
SL
79682019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7969 Kang Li <kanglictf@gmail.com>
7970
7971 PR gdb/21600
7972
7973 * dwarf2-frame.c (read_initial_length): Be consistent about using
7974 unsigned representation of length.
7975 (decode_frame_entry_1): Likewise. Check for wraparound of
7976 end pointer as well as buffer overflow.
7977
596179f7
SDJ
79782019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7979
7980 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7981 "vq".
7982
a59240a4
TT
79832019-04-24 Tom Tromey <tromey@adacore.com>
7984
7985 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7986
f872fdbb
AB
79872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7988
7989 * s12z-tdep.c (s12z_unwind_pc): Delete.
7990 (s12z_unwind_sp): Delete.
7991 (s12z_gdbarch_init): Don't register deleted functions with
7992 gdbarch.
7993
b614e6f3
AB
79942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * rl78-tdep.c (rl78_unwind_sp): Delete.
7997 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7998
14faed38
AB
79992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8002 (xstormy16_unwind_pc): Delete.
8003 (xstormy16_dummy_id): Delete.
8004 (xstormy16_gdbarch_init): Don't register deleted functions with
8005 gdbarch.
8006
541aad8a
AB
80072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * vax-tdep.c (vax_unwind_pc): Delete.
8010 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8011
29222070
AB
80122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8013
8014 * v850-tdep.c (v850_unwind_sp): Delete.
8015 (v850_unwind_pc): Delete.
8016 (v850_dummy_id): Delete.
8017 (v850_gdbarch_init): Don't register deleted functions with
8018 gdbarch.
8019
0f534d76
AB
80202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8021
8022 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8023 (tilegx_unwind_pc): Delete.
8024 (tilegx_unwind_dummy_id): Delete.
8025 (tilegx_gdbarch_init): Don't register deleted functions with
8026 gdbarch.
8027
1ba7b7f9
AB
80282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8031 (tic6x_dummy_id): Delete.
8032 (tic6x_gdbarch_init): Don't register deleted functions with
8033 gdbarch.
8034
d31f262c
AB
80352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * sparc-tdep.c (sparc_unwind_pc): Delete.
8038 (sparc32_gdbarch_init): Don't register deleted function with
8039 gdbarch.
8040
6d14d64d
AB
80412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8042
8043 * sh-tdep.c (sh_unwind_sp): Delete.
8044 (sh_unwind_pc): Delete.
8045 (sh_dummy_id): Delete.
8046 (sh_gdbarch_init): Don't register deleted functions with
8047 gdbarch.
8048
a40dde9d
AB
80492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * score-tdep.c (score_unwind_sp): Delete.
8052 (score_unwind_pc): Delete.
8053 (score_dummy_id): Delete.
8054 (score_gdbarch_init): Don't register deleted functions with
8055 gdbarch.
8056
47c47d69
AB
80572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8058
8059 * rx-tdep.c (rx_unwind_pc): Delete.
8060 (rx_unwind_sp): Delete.
8061 (rx_dummy_id): Delete.
8062 (rx_gdbarch_init): Don't register deleted functions with
8063 gdbarch. Update comment.
8064
833a4480
AB
80652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8066
8067 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8068 (rs6000_dummy_id): Delete.
8069 (rs6000_gdbarch_init): Don't register deleted functions with
8070 gdbarch.
8071
3f2cef49
AB
80722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * or1k-tdep.c (or1k_dummy_id): Delete.
8075 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8076
96acf884
AB
80772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8078
8079 * nios2-tdep.c (nios2_dummy_id): Delete.
8080 (nios2_unwind_sp): Delete.
8081 (nios2_gdbarch_init): Don't register deleted functions with
8082 gdbarch.
8083
ca0ab0aa
AB
80842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8085
8086 * nds32-tdep.c (nds32_dummy_id): Delete.
8087 (nds32_unwind_pc): Delete.
8088 (nds32_unwind_sp): Delete.
8089 (nds32_gdbarch_init): Don't register deleted functions with
8090 gdbarch.
8091
c8259044
AB
80922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * msp430-tdep.c (msp430_unwind_pc): Delete.
8095 (msp430_unwind_sp): Delete.
8096 (msp430_dummy_id): Delete.
8097 (msp430_gdbarch_init): Don't register deleted functions with
8098 gdbarch.
8099
27f113c8
AB
81002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * moxie-tdep.c (moxie_unwind_sp): Delete.
8103 (moxie_unwind_pc): Delete.
8104 (moxie_dummy_id): Delete.
8105 (moxie_gdbarch_init): Don't register deleted functions with
8106 gdbarch.
8107
aee6c3cd
AB
81082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8109
8110 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8111 (mn10300_unwind_pc): Delete.
8112 (mn10300_unwind_sp): Delete.
8113 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8114 mn10300_unwind_sp.
8115 (mn10300_frame_unwind_init): Don't register deleted functions with
8116 gdbarch.
8117
8e2b5aea
AB
81182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * mep-tdep.c (mep_unwind_pc): Delete.
8121 (mep_unwind_sp): Delete.
8122 (mep_dummy_id): Delete.
8123 (mep_gdbarch_init): Don't register deleted functions with
8124 gdbarch.
8125
43cf3ede
AB
81262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8129 (m68hc11_unwind_sp): Delete.
8130 (m68hc11_gdbarch_init): Don't register deleted functions with
8131 gdbarch.
8132
5e79b7bb
AB
81332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * m32r-tdep.c (m32r_unwind_sp): Delete.
8136 (m32r_unwind_pc): Delete.
8137 (m32r_dummy_id): Delete.
8138 (m32r_gdbarch_init): Don't register deleted functions with
8139 gdbarch.
8140
89b268d8
AB
81412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * m32c-tdep.c (m32c_unwind_pc): Delete.
8144 (m32c_unwind_sp): Delete.
8145 (m32c_dummy_id): Delete.
8146 (m32c_gdbarch_init): Don't register deleted functions with
8147 gdbarch.
8148
946c28d2
AB
81492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8152 (lm32_unwind_pc): Delete.
8153 (lm32_dummy_id): Delete.
8154 (lm32_gdbarch_init): Don't register deleted functions with
8155 gdbarch.
8156
bf12844a
AB
81572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8160 (iq2000_unwind_pc): Delete.
8161 (iq2000_dummy_id): Delete.
8162 (iq2000_gdbarch_init): Don't register deleted functions with
8163 gdbarch.
8164
ecbc06d2
AB
81652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8166
8167 * nds32-tdep.c (nds32_type_align): Delete.
8168 (nds32_push_dummy_call): Use type_align instead.
8169
030197b4
AB
81702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * arm-tdep.c (arm_type_align): Only handle vector override case.
8173 (arm_push_dummy_call): Use type_align.
8174 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8175
b907456c
AB
81762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8179 case.
8180 (pass_on_stack): Use type_align.
8181 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8182 function.
8183
9e97ba43
TT
81842019-04-23 Tom Tromey <tromey@adacore.com>
8185
8186 * dwarf2read.c (line_header::file_name_at): Remove unused
8187 overload.
8188
6892f601
TV
81892019-04-23 Tom de Vries <tdevries@suse.de>
8190
8191 PR gdb/24438
8192 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8193 invocation.
8194
336d760d
AT
8195
81962019-03-27 Ali Tamur <tamur@google.com>
8197
8198 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8199 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8200 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8201 (dwarf_expr_context::get_addr_index): Likewise
8202 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8203 (symbol_needs_eval_context::get_addr_index): Likewise
8204 (disassemble_dwarf_expression): Add DW_OP_addrx
8205 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8206 (read_cutu_die_from_dwo): Update comment
8207 (skip_one_die): Add DW_FORM_addrx
8208 (read_attribute_value): Likewise
8209 (var_decode_location): Add DW_OP_addrx
8210 (dwarf2_const_value_attr): Add DW_FORM_addrx
8211 (dump_die_shallow): Likewise
8212 (dwarf2_fetch_constant_bytes): Likewise
8213 (decode_locdesc): Add DW_OP_addrx
8214 (skip_form_bytes): Add DW_FORM_addrx
8215
ad9d13f8
AT
82162019-04-22 Ali Tamur <tamur@google.com>
8217
8218 * MAINTAINERS (Write After Approval): Add self.
8219
d70cc3ba
SM
82202019-04-22 Simon Marchi <simon.marchi@efficios.com>
8221
8222 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8223 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8224 (open_symbol_file_object): Likewise.
8225 (svr4_default_sos): Add info parameter.
8226 (svr4_read_so_list): Likewise.
8227 (svr4_current_sos_direct): Adjust functions calls to pass down
8228 info.
8229 (svr4_current_sos_1): Add info parameter.
8230 (svr4_current_sos): Call get_svr4_info, pass info down to
8231 svr4_current_sos_1.
8232 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8233 get_svr4_info.
8234 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8235 get_svr4_info.
8236 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8237 to get_svr4_info.
8238 (probes_table_remove_objfile_probes): Likewise.
8239 (register_solib_event_probe): Add info parameter.
8240 (solist_update_incremental): Pass info parameter down to
8241 svr4_read_so_list.
8242 (disable_probes_interface): Add info parameter.
8243 (svr4_handle_solib_event): Pass current_program_space to
8244 get_svr4_info. Adjust disable_probes_interface cleanup.
8245 (svr4_create_probe_breakpoints): Add info parameter, pass it
8246 down to register_solib_event_probe.
8247 (svr4_create_solib_event_breakpoints): Add info parameter,
8248 pass it down to svr4_create_probe_breakpoints.
8249 (enable_break): Pass info down to
8250 svr4_create_solib_event_breakpoints.
8251 (svr4_solib_create_inferior_hook): Pass current_program_space to
8252 get_svr4_info.
8253 (svr4_clear_solib): Likewise.
8254
7905fc35
PA
82552019-04-22 Pedro Alves <palves@redhat.com>
8256
8257 * solib-svr4.c (svr4_free_objfile_observer): New.
8258 (probe_and_action::objfile): New field.
8259 (probes_table_htab_remove_objfile_probes)
8260 (probes_table_remove_objfile_probes): New functions.
8261 (register_solib_event_probe): Add 'objfile' parameter. Store it
8262 in the new probe_and_action. Don't store the probe in 'lookup'.
8263 (svr4_create_probe_breakpoints): Pass objfile to
8264 register_solib_event_probe.
8265 (_initialize_svr4_solib): Register a free_objfile observer.
8266
fb881986
TT
82672019-04-19 Tom Tromey <tom@tromey.com>
8268
8269 * common/queue.h: Remove.
8270
8732db6c
TT
82712019-04-19 Tom Tromey <tom@tromey.com>
8272
8273 * event-loop.c: Don't include "common/queue.h".
8274
97dfbadd
TT
82752019-04-19 Tom Tromey <tom@tromey.com>
8276
8277 * remote.c (remote_target): Use delete.
8278 * remote-notif.h: Include <list>, not "common/queue.h".
8279 (notif_client_p): Remove typedef.
8280 (remote_notif_state): Add constructor, destructor, initializer.
8281 <notif_queue>: Now a std::list.
8282 (remote_notif_state_xfree): Don't declare.
8283 * remote-notif.c (remote_notif_process, handle_notification)
8284 (remote_notif_state_allocate): Update.
8285 (~remote_notif_state): Rename from remote_notif_state_xfree.
8286
cf250e36
TT
82872019-04-19 Tom Tromey <tom@tromey.com>
8288
8289 * symfile.c (reread_symbols): Update.
8290 * objfiles.c (objfile_register_static_link)
8291 (objfile_lookup_static_link): Update
8292 (~objfile) Don't delete static_links.
8293 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8294
61f4b350
TT
82952019-04-19 Tom Tromey <tom@tromey.com>
8296
8297 * type-stack.h (struct type_stack) <insert>: Constify string.
8298 * type-stack.c (type_stack::insert): Constify string.
8299 * gdbtypes.h (lookup_template_type): Update.
8300 (address_space_name_to_int): Update.
8301 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8302 const.
8303 (lookup_template_type): Make name const.
8304 * c-exp.y: Update rules.
8305 (lex_one_token, classify_name, classify_inner_name)
8306 (c_print_token): Update.
8307 * p-exp.y: Update rules.
8308 (yylex): Update.
8309 * f-exp.y: Update rules.
8310 (yylex): Update.
8311 * d-exp.y: Update rules.
8312 (lex_one_token, classify_name, classify_inner_name): Update.
8313 * parse.c (write_dollar_variable, copy_name): Return std::string.
8314 * parser-defs.h (copy_name): Change return type.
8315 * m2-exp.y: Update rules.
8316 (yylex): Update.
8317 * go-exp.y (lex_one_token): Update.
8318 Update rules.
8319 (classify_unsafe_function, classify_packaged_name)
8320 (classify_name, yylex): Update.
8321
189b8c2e
ST
83222019-04-19 Sergei Trofimovich <siarheit@google.com>
8323
8324 * configure.ac: add --enable-source-highlight switch.
8325 * configure: Regenerate.
8326 * top.c (print_gdb_version): plumb --enable-source-highlight
8327 status to "show configuration".
8328
8ecb59f8
TT
83292019-04-19 Tom Tromey <tromey@adacore.com>
8330
8331 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8332 Check ADA_TYPE_P.
8333 (empty_record, ada_template_to_fixed_record_type_1)
8334 (template_to_static_fixed_type)
8335 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8336 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8337 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8338 macros.
8339
62160ec9
TT
83402019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8341
8342 PR symtab/24423:
8343 * source.c (print_source_lines_base): Advance "iter" when a
8344 control character is seen.
8345
f2ae8bc8
PW
83462019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8347
8348 * inferior.h (struct infcall_suspend_state_deleter):
8349 Catch exception in destructor to avoid crash.
8350
d563b953
PW
83512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8352
8353 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8354 close to the add_com "shell".
8355
dc34c897
TT
83562019-04-18 Tom Tromey <tromey@adacore.com>
8357
8358 * process-stratum-target.h (class process_stratum_target)
8359 <stratum>: Add "final".
8360
a12e5744
TT
83612019-04-17 Tom Tromey <tromey@adacore.com>
8362
8363 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8364 against nullptr before use.
8365
a7e559cc
AH
83662019-04-17 Alan Hayward <alan.hayward@arm.com>
8367
8368 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8369
c01660c6
AB
83702019-04-17 Jim Wilson <jimw@sifive.com>
8371 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8374 code read might fail, assume 4-byte breakpoint in that case.
8375
4aa866af
LS
83762019-04-15 Leszek Swirski <leszeks@google.com>
8377
8378 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8379 rather than a hand-rolled POD check when checking for forced MEMORY
8380 classification.
8381
48574d91
AH
83822019-04-15 Alan Hayward <alan.hayward@arm.com>
8383
8384 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8385 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8386 function.
8387 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8388 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8389 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8390 declaration.
8391
4da037ef
AH
83922019-04-15 Alan Hayward <alan.hayward@arm.com>
8393
8394 * aarch64-linux-nat.c
8395 (aarch64_linux_nat_target::thread_architecture): Add override.
8396 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8397 each VQ.
8398
ccb8d7e8
AH
83992019-04-15 Alan Hayward <alan.hayward@arm.com>
8400
8401 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8402
35add35e
AB
84032019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8406 target types of size 96-bits, add some additional comments, and
8407 check that the builtin type we found was the correct size.
8408
51196bbc
EZ
84092019-04-12 Eli Zaretskii <eliz@gnu.org>
8410
8411 * utils.c (prompt_for_continue): Don't restore the styling at the
8412 end, as applied_style has the wrong value. This fixes styling in
8413 long lists of file names that are interrupted by the "Continue?"
8414 prompt.
8415
62253a61
AB
84162019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8419 * c-lang.c (c_language_defn): Likewise.
8420 (cplus_language_defn): Likewise.
8421 (asm_language_defn): Likewise.
8422 (minimal_language_defn): Likewise.
8423 * d-lang.c (d_language_defn): Likewise.
8424 * f-lang.c (f_language_defn): Likewise.
8425 * go-lang.c (go_language_defn): Likewise.
8426 * language.c (unknown_language_defn): Likewise.
8427 (auto_language_defn): Likewise.
8428 * language.h (struct language_defn): Remove la_magic field.
8429 (LANG_MAGIC): Delete.
8430 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8431 * objc-lang.c (objc_language_defn): Likewise.
8432 * opencl-lang.c (opencl_language_defn): Likewise.
8433 * p-lang.c (pascal_language_defn): Likewise.
8434 * rust-lang.c (rust_language_defn): Likewise.
8435
a9158a86
AB
84362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8437
8438 * riscv-tdep.c (riscv_type_align): New function.
8439 (riscv_type_alignment): Delete.
8440 (riscv_arg_location): Use 'type_align'.
8441 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8442
41077b66
AB
84432019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8444
8445 * gdbtypes.c (type_align): A struct with no non-static fields also
8446 has alignment of 1.
8447
9f0272f8
AB
84482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8449
8450 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8451 component to 0.
8452 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8453 member.
8454 (riscv_struct_info::analyse): New implementation using new
8455 analyse_inner member function.
8456 (riscv_struct_info::field_offset): New member function.
8457 (riscv_struct_info::m_offsets): New member variable.
8458 (riscv_struct_info::analyse_inner): New private member function,
8459 takes the old implementation of riscv_struct_info::analyse but
8460 extended to track field offsets.
8461 (riscv_call_arg_struct): Update the struct folding special cases
8462 to handle cases where empty C++ structs, which are non-zero
8463 length, are found.
8464 (riscv_arg_location): Initialise the length of each location, a
8465 non-zero length now indicates the location is in use.
8466 (riscv_push_dummy_call): Allow for the first location having a
8467 non-zero offset when setting up arguments.
8468 (riscv_return_value): Likewise, but for return values.
8469
02cf60c7
TT
84702019-04-11 Tom Tromey <tromey@adacore.com>
8471
8472 * utils.c (internal_vproblem): Make "msg" const.
8473
68811f8f
AH
84742019-04-11 Alan Hayward <alan.hayward@arm.com>
8475
8476 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8477 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8478 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8479 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8480
3f52fdbc
KB
84812019-04-10 Kevin Buettner <kevinb@redhat.com>
8482
8483 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8484 function.
8485 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8486 of amd64_collect_native_gregset.
8487 (amd64_linux_nat_target::store_registers): Likewise.
8488
e9ad22ee
TT
84892019-04-10 Tom Tromey <tom@tromey.com>
8490
8491 * symtab.c (lookup_global_symbol_from_objfile)
8492 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8493 * objfiles.h (class separate_debug_iterator): New.
8494 (class separate_debug_range): New.
8495 (struct objfile) <separate_debug_objfiles>: New method.
8496 (objfile_separate_debug_iterate): Don't declare.
8497 * objfiles.c (separate_debug_iterator::operator++): Rename from
8498 objfile_separate_debug_iterate.
8499 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8500 iterator.
8501 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8502 iterator.
8503
ee371134
TT
85042019-04-10 Tom Tromey <tom@tromey.com>
8505
8506 * symfile.c (reread_symbols): Remove old comment.
8507 * objfiles.c (free_all_objfiles): Fix a typo.
8508
bf227d61
TT
85092019-04-10 Tom Tromey <tom@tromey.com>
8510
8511 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8512 * minsyms.c (lookup_minimal_symbol): Use foreach.
8513 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8514 (lookup_minimal_symbol_solib_trampoline): Likewise.
8515 * symfile.c (reread_symbols): Use foreach.
8516
8dc433a0
TT
85172019-04-09 Ivan Begert <ivanbegert@gmail.com>
8518 Tom Tromey <tromey@adacore.com>
8519
8520 PR rust/24414:
8521 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8522 (rust_lex_int_test): Change "value" to be LONGEST.
8523 (rust_lex_tests): Add test for long integer literal.
8524
9ab8741a
TT
85252019-04-09 Tom Tromey <tromey@adacore.com>
8526
8527 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8528 to bool.
8529 (extended_remote_target::attach): Update.
8530 (remote_target::remote_notice_new_inferior): Update.
8531 (remote_target::add_current_inferior_and_thread): Update.
8532 * inferior.c (exit_inferior_1): Use "false".
8533 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8534
e242fd12
SM
85352019-04-09 Simon Marchi <simon.marchi@efficios.com>
8536
9ca1957f 8537 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8538 the "start" command.
8539
2b0c8b01
KB
85402019-04-08 Kevin Buettner <kevinb@redhat.com>
8541
8542 * python/py-inferior.c (infpy_thread_from_thread_handle):
8543 Adjust comments to reflect renaming of thread_from_thread_handle
8544 to thread_from_handle. Adjust keywords. Fix type error message.
8545 (inferior_object_methods): Add thread_from_handle. Retain
8546 thread_from_thread_handle, but mark it as deprecated.
8547
50a82723
KB
85482019-04-08 Kevin Buettner <kevinb@redhat.com>
8549
8550 * gdbthread.h (find_thread_by_handle): Revise declaration.
8551 * thread.c (find_thread_by_handle): Likewise. Adjust
8552 implementation too.
8553 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8554 support for buffer objects as handles.
8555
cf63b016
KB
85562019-04-08 Kevin Buettner <kevinb@redhat.com>
8557
8558 * python/py-infthread.c (thpy_thread_handle): New function.
8559 (thread_object_methods): Register thpy_thread_handle.
8560
3d6c6204
KB
85612019-04-08 Kevin Buettner <kevinb@redhat.com>
8562
8563 * gdbthread.h (thread_to_thread_handle): Declare.
8564 * thread.c (gdbtypes.h): Include.
8565 (thread_to_thread_handle): New function.
8566
8567 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8568 (target_thread_info_to_thread_handle): Declare.
8569 * target.c (target_thread_info_to_thread_handle): New function.
8570 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8571 * target-delegates.c: Regenerate.
8572
8573 * linux-thread-db.c (class thread_db_target): Add method
8574 thread_info_to_thread_handle.
8575 (thread_db_target::thread_info_to_thread_handle): Define.
8576 * remote.c (class remote_target): Add new method
8577 thread_info_to_thread_handle.
8578 (remote_target::thread_info_to_thread_handle): Define.
8579
56be6ea8
PA
85802019-04-08 Pedro Alves <palves@redhat.com>
8581
8582 * common/common-exceptions.c (throw_exception): Don't create
8583 named object to throw; throw directly.
8584 (throw_it): Likewise. Don't initialize gdb_exception::message
8585 here, with new; pass FMT and AP to the ctor instead.
8586 * common/common-exceptions.h: Include <string>.
8587 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8588 const char *, va_list)): New ctor. Use std::make_shared.
8589 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8590 errors)): Delete.
8591 (gdb_exception_error::gdb_exception_error(enum errors, const char
8592 *, va_list)): New.
8593 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8594 Add assertion.
8595 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8596 errors)): Delete.
8597 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8598 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8599 Add assertion.
8600
eedc3f4f
TT
86012019-04-08 Tom Tromey <tom@tromey.com>
8602
8603 * valops.c (value_rtti_indirect_type): Replace throw_exception
8604 with throw.
8605 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8606 with throw.
8607 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8608 throw.
8609 * target.c (target_translate_tls_address): Replace throw_exception
8610 with throw.
8611 * stack.c (frame_apply_command_count): Replace throw_exception
8612 with throw.
8613 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8614 throw.
8615 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8616 with throw.
8617 * rs6000-tdep.c (rs6000_frame_cache)
8618 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8619 * remote.c: Replace throw_exception with throw.
8620 * record-full.c (record_full_message, record_full_wait_1)
8621 (record_full_restore): Replace throw_exception with throw.
8622 * record-btrace.c:
8623 (get_thread_current_frame_id, record_btrace_start_replaying)
8624 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8625 (cmd_record_btrace_start): Replace throw_exception with throw.
8626 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8627 throw.
8628 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8629 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8630 * linespec.c:
8631 (find_linespec_symbols): Replace throw_exception with throw.
8632 * infrun.c (displaced_step_prepare, resume): Replace
8633 throw_exception with throw.
8634 * infcmd.c (post_create_inferior): Replace throw_exception with
8635 throw.
8636 * inf-loop.c (inferior_event_handler): Replace throw_exception
8637 with throw.
8638 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8639 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8640 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8641 (get_prev_frame_always, get_frame_pc_if_available)
8642 (get_frame_address_in_block_if_available, get_frame_language):
8643 Replace throw_exception with throw.
8644 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8645 throw_exception with throw.
8646 * eval.c (fetch_subexp_value, evaluate_var_value)
8647 (evaluate_funcall, evaluate_subexp_standard): Replace
8648 throw_exception with throw.
8649 * dwarf2loc.c (call_site_find_chain)
8650 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8651 Replace throw_exception with throw.
8652 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8653 with throw.
8654 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8655 throw.
8656 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8657 * completer.c (complete_line_internal): Replace throw_exception
8658 with throw.
8659 * compile/compile-object-run.c (compile_object_run): Replace
8660 throw_exception with throw.
8661 * cli/cli-script.c (process_next_line): Replace throw_exception
8662 with throw.
8663 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8664 (btrace_enable, btrace_maint_update_pt_packets): Replace
8665 throw_exception with throw.
8666 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8667 throw_exception with throw.
8668 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8669 throw_exception with throw.
8670 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8671 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8672 * aarch64-tdep.c (aarch64_make_prologue_cache)
8673 (aarch64_make_stub_cache): Replace throw_exception with throw.
8674
26003a20
TT
86752019-04-08 Tom Tromey <tom@tromey.com>
8676
8677 * common/common-exceptions.c (throw_exception): Rename from
8678 throw_exception_cxx. Remove old copy. Make argument const.
8679 (throw_it): Create and throw exception objects directly.
8680 * common/common-exceptions.h (throw_exception): Make argument
8681 const.
8682 (struct gdb_exception_error): Add constructor.
8683 (struct gdb_exception_quit): Add constructor.
8684
d272eb37
TT
86852019-04-08 Tom Tromey <tom@tromey.com>
8686
8687 * common/common-exceptions.h (exception_rethrow): Don't declare.
8688 (TRY_SJLJ): Update comment.
8689 (TRY, CATCH, END_CATCH): Remove.
8690 * common/common-exceptions.c (exception_rethrow): Remove.
8691
230d2906
TT
86922019-04-08 Tom Tromey <tom@tromey.com>
8693
8694 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8695 Remove.
8696 (gdb_exception_error): Rename from
8697 gdb_exception_RETURN_MASK_ERROR.
8698 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8699 (gdb_quit_bad_alloc): Update.
8700 * aarch64-tdep.c: Update.
8701 * ada-lang.c: Update.
8702 * ada-typeprint.c: Update.
8703 * ada-valprint.c: Update.
8704 * amd64-tdep.c: Update.
8705 * arch-utils.c: Update.
8706 * break-catch-throw.c: Update.
8707 * breakpoint.c: Update.
8708 * btrace.c: Update.
8709 * c-varobj.c: Update.
8710 * cli/cli-cmds.c: Update.
8711 * cli/cli-interp.c: Update.
8712 * cli/cli-script.c: Update.
8713 * common/common-exceptions.c: Update.
8714 * common/new-op.c: Update.
8715 * common/selftest.c: Update.
8716 * compile/compile-c-symbols.c: Update.
8717 * compile/compile-cplus-symbols.c: Update.
8718 * compile/compile-object-load.c: Update.
8719 * compile/compile-object-run.c: Update.
8720 * completer.c: Update.
8721 * corelow.c: Update.
8722 * cp-abi.c: Update.
8723 * cp-support.c: Update.
8724 * cp-valprint.c: Update.
8725 * darwin-nat.c: Update.
8726 * disasm-selftests.c: Update.
8727 * dtrace-probe.c: Update.
8728 * dwarf-index-cache.c: Update.
8729 * dwarf-index-write.c: Update.
8730 * dwarf2-frame-tailcall.c: Update.
8731 * dwarf2-frame.c: Update.
8732 * dwarf2loc.c: Update.
8733 * dwarf2read.c: Update.
8734 * eval.c: Update.
8735 * event-loop.c: Update.
8736 * event-top.c: Update.
8737 * exec.c: Update.
8738 * f-valprint.c: Update.
8739 * fbsd-tdep.c: Update.
8740 * frame-unwind.c: Update.
8741 * frame.c: Update.
8742 * gdbtypes.c: Update.
8743 * gnu-v3-abi.c: Update.
8744 * guile/guile-internal.h: Update.
8745 * guile/scm-block.c: Update.
8746 * guile/scm-breakpoint.c: Update.
8747 * guile/scm-cmd.c: Update.
8748 * guile/scm-disasm.c: Update.
8749 * guile/scm-frame.c: Update.
8750 * guile/scm-lazy-string.c: Update.
8751 * guile/scm-math.c: Update.
8752 * guile/scm-param.c: Update.
8753 * guile/scm-ports.c: Update.
8754 * guile/scm-pretty-print.c: Update.
8755 * guile/scm-symbol.c: Update.
8756 * guile/scm-symtab.c: Update.
8757 * guile/scm-type.c: Update.
8758 * guile/scm-value.c: Update.
8759 * i386-linux-tdep.c: Update.
8760 * i386-tdep.c: Update.
8761 * inf-loop.c: Update.
8762 * infcall.c: Update.
8763 * infcmd.c: Update.
8764 * infrun.c: Update.
8765 * jit.c: Update.
8766 * language.c: Update.
8767 * linespec.c: Update.
8768 * linux-fork.c: Update.
8769 * linux-nat.c: Update.
8770 * linux-tdep.c: Update.
8771 * linux-thread-db.c: Update.
8772 * main.c: Update.
8773 * mi/mi-cmd-break.c: Update.
8774 * mi/mi-cmd-stack.c: Update.
8775 * mi/mi-interp.c: Update.
8776 * mi/mi-main.c: Update.
8777 * objc-lang.c: Update.
8778 * p-valprint.c: Update.
8779 * parse.c: Update.
8780 * ppc-linux-tdep.c: Update.
8781 * printcmd.c: Update.
8782 * python/py-arch.c: Update.
8783 * python/py-breakpoint.c: Update.
8784 * python/py-cmd.c: Update.
8785 * python/py-finishbreakpoint.c: Update.
8786 * python/py-frame.c: Update.
8787 * python/py-framefilter.c: Update.
8788 * python/py-gdb-readline.c: Update.
8789 * python/py-inferior.c: Update.
8790 * python/py-infthread.c: Update.
8791 * python/py-lazy-string.c: Update.
8792 * python/py-linetable.c: Update.
8793 * python/py-objfile.c: Update.
8794 * python/py-param.c: Update.
8795 * python/py-prettyprint.c: Update.
8796 * python/py-progspace.c: Update.
8797 * python/py-record-btrace.c: Update.
8798 * python/py-record.c: Update.
8799 * python/py-symbol.c: Update.
8800 * python/py-type.c: Update.
8801 * python/py-unwind.c: Update.
8802 * python/py-utils.c: Update.
8803 * python/py-value.c: Update.
8804 * python/python.c: Update.
8805 * record-btrace.c: Update.
8806 * record-full.c: Update.
8807 * remote-fileio.c: Update.
8808 * remote.c: Update.
8809 * riscv-tdep.c: Update.
8810 * rs6000-aix-tdep.c: Update.
8811 * rs6000-tdep.c: Update.
8812 * rust-exp.y: Update.
8813 * rust-lang.c: Update.
8814 * s390-tdep.c: Update.
8815 * selftest-arch.c: Update.
8816 * solib-dsbt.c: Update.
8817 * solib-frv.c: Update.
8818 * solib-spu.c: Update.
8819 * solib-svr4.c: Update.
8820 * solib.c: Update.
8821 * sparc64-linux-tdep.c: Update.
8822 * stack.c: Update.
8823 * symfile-mem.c: Update.
8824 * symmisc.c: Update.
8825 * target.c: Update.
8826 * thread.c: Update.
8827 * top.c: Update.
8828 * tracefile-tfile.c: Update.
8829 * tui/tui.c: Update.
8830 * typeprint.c: Update.
8831 * unittests/cli-utils-selftests.c: Update.
8832 * unittests/parse-connection-spec-selftests.c: Update.
8833 * valops.c: Update.
8834 * valprint.c: Update.
8835 * value.c: Update.
8836 * varobj.c: Update.
8837 * windows-nat.c: Update.
8838 * x86-linux-nat.c: Update.
8839 * xml-support.c: Update.
8840
a70b8144
TT
88412019-04-08 Tom Tromey <tom@tromey.com>
8842
8843 * xml-support.c: Use C++ exception handling.
8844 * x86-linux-nat.c: Use C++ exception handling.
8845 * windows-nat.c: Use C++ exception handling.
8846 * varobj.c: Use C++ exception handling.
8847 * value.c: Use C++ exception handling.
8848 * valprint.c: Use C++ exception handling.
8849 * valops.c: Use C++ exception handling.
8850 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8851 handling.
8852 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8853 * typeprint.c: Use C++ exception handling.
8854 * tui/tui.c: Use C++ exception handling.
8855 * tracefile-tfile.c: Use C++ exception handling.
8856 * top.c: Use C++ exception handling.
8857 * thread.c: Use C++ exception handling.
8858 * target.c: Use C++ exception handling.
8859 * symmisc.c: Use C++ exception handling.
8860 * symfile-mem.c: Use C++ exception handling.
8861 * stack.c: Use C++ exception handling.
8862 * sparc64-linux-tdep.c: Use C++ exception handling.
8863 * solib.c: Use C++ exception handling.
8864 * solib-svr4.c: Use C++ exception handling.
8865 * solib-spu.c: Use C++ exception handling.
8866 * solib-frv.c: Use C++ exception handling.
8867 * solib-dsbt.c: Use C++ exception handling.
8868 * selftest-arch.c: Use C++ exception handling.
8869 * s390-tdep.c: Use C++ exception handling.
8870 * rust-lang.c: Use C++ exception handling.
8871 * rust-exp.y: Use C++ exception handling.
8872 * rs6000-tdep.c: Use C++ exception handling.
8873 * rs6000-aix-tdep.c: Use C++ exception handling.
8874 * riscv-tdep.c: Use C++ exception handling.
8875 * remote.c: Use C++ exception handling.
8876 * remote-fileio.c: Use C++ exception handling.
8877 * record-full.c: Use C++ exception handling.
8878 * record-btrace.c: Use C++ exception handling.
8879 * python/python.c: Use C++ exception handling.
8880 * python/py-value.c: Use C++ exception handling.
8881 * python/py-utils.c: Use C++ exception handling.
8882 * python/py-unwind.c: Use C++ exception handling.
8883 * python/py-type.c: Use C++ exception handling.
8884 * python/py-symbol.c: Use C++ exception handling.
8885 * python/py-record.c: Use C++ exception handling.
8886 * python/py-record-btrace.c: Use C++ exception handling.
8887 * python/py-progspace.c: Use C++ exception handling.
8888 * python/py-prettyprint.c: Use C++ exception handling.
8889 * python/py-param.c: Use C++ exception handling.
8890 * python/py-objfile.c: Use C++ exception handling.
8891 * python/py-linetable.c: Use C++ exception handling.
8892 * python/py-lazy-string.c: Use C++ exception handling.
8893 * python/py-infthread.c: Use C++ exception handling.
8894 * python/py-inferior.c: Use C++ exception handling.
8895 * python/py-gdb-readline.c: Use C++ exception handling.
8896 * python/py-framefilter.c: Use C++ exception handling.
8897 * python/py-frame.c: Use C++ exception handling.
8898 * python/py-finishbreakpoint.c: Use C++ exception handling.
8899 * python/py-cmd.c: Use C++ exception handling.
8900 * python/py-breakpoint.c: Use C++ exception handling.
8901 * python/py-arch.c: Use C++ exception handling.
8902 * printcmd.c: Use C++ exception handling.
8903 * ppc-linux-tdep.c: Use C++ exception handling.
8904 * parse.c: Use C++ exception handling.
8905 * p-valprint.c: Use C++ exception handling.
8906 * objc-lang.c: Use C++ exception handling.
8907 * mi/mi-main.c: Use C++ exception handling.
8908 * mi/mi-interp.c: Use C++ exception handling.
8909 * mi/mi-cmd-stack.c: Use C++ exception handling.
8910 * mi/mi-cmd-break.c: Use C++ exception handling.
8911 * main.c: Use C++ exception handling.
8912 * linux-thread-db.c: Use C++ exception handling.
8913 * linux-tdep.c: Use C++ exception handling.
8914 * linux-nat.c: Use C++ exception handling.
8915 * linux-fork.c: Use C++ exception handling.
8916 * linespec.c: Use C++ exception handling.
8917 * language.c: Use C++ exception handling.
8918 * jit.c: Use C++ exception handling.
8919 * infrun.c: Use C++ exception handling.
8920 * infcmd.c: Use C++ exception handling.
8921 * infcall.c: Use C++ exception handling.
8922 * inf-loop.c: Use C++ exception handling.
8923 * i386-tdep.c: Use C++ exception handling.
8924 * i386-linux-tdep.c: Use C++ exception handling.
8925 * guile/scm-value.c: Use C++ exception handling.
8926 * guile/scm-type.c: Use C++ exception handling.
8927 * guile/scm-symtab.c: Use C++ exception handling.
8928 * guile/scm-symbol.c: Use C++ exception handling.
8929 * guile/scm-pretty-print.c: Use C++ exception handling.
8930 * guile/scm-ports.c: Use C++ exception handling.
8931 * guile/scm-param.c: Use C++ exception handling.
8932 * guile/scm-math.c: Use C++ exception handling.
8933 * guile/scm-lazy-string.c: Use C++ exception handling.
8934 * guile/scm-frame.c: Use C++ exception handling.
8935 * guile/scm-disasm.c: Use C++ exception handling.
8936 * guile/scm-cmd.c: Use C++ exception handling.
8937 * guile/scm-breakpoint.c: Use C++ exception handling.
8938 * guile/scm-block.c: Use C++ exception handling.
8939 * guile/guile-internal.h: Use C++ exception handling.
8940 * gnu-v3-abi.c: Use C++ exception handling.
8941 * gdbtypes.c: Use C++ exception handling.
8942 * frame.c: Use C++ exception handling.
8943 * frame-unwind.c: Use C++ exception handling.
8944 * fbsd-tdep.c: Use C++ exception handling.
8945 * f-valprint.c: Use C++ exception handling.
8946 * exec.c: Use C++ exception handling.
8947 * event-top.c: Use C++ exception handling.
8948 * event-loop.c: Use C++ exception handling.
8949 * eval.c: Use C++ exception handling.
8950 * dwarf2read.c: Use C++ exception handling.
8951 * dwarf2loc.c: Use C++ exception handling.
8952 * dwarf2-frame.c: Use C++ exception handling.
8953 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8954 * dwarf-index-write.c: Use C++ exception handling.
8955 * dwarf-index-cache.c: Use C++ exception handling.
8956 * dtrace-probe.c: Use C++ exception handling.
8957 * disasm-selftests.c: Use C++ exception handling.
8958 * darwin-nat.c: Use C++ exception handling.
8959 * cp-valprint.c: Use C++ exception handling.
8960 * cp-support.c: Use C++ exception handling.
8961 * cp-abi.c: Use C++ exception handling.
8962 * corelow.c: Use C++ exception handling.
8963 * completer.c: Use C++ exception handling.
8964 * compile/compile-object-run.c: Use C++ exception handling.
8965 * compile/compile-object-load.c: Use C++ exception handling.
8966 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8967 * compile/compile-c-symbols.c: Use C++ exception handling.
8968 * common/selftest.c: Use C++ exception handling.
8969 * common/new-op.c: Use C++ exception handling.
8970 * cli/cli-script.c: Use C++ exception handling.
8971 * cli/cli-interp.c: Use C++ exception handling.
8972 * cli/cli-cmds.c: Use C++ exception handling.
8973 * c-varobj.c: Use C++ exception handling.
8974 * btrace.c: Use C++ exception handling.
8975 * breakpoint.c: Use C++ exception handling.
8976 * break-catch-throw.c: Use C++ exception handling.
8977 * arch-utils.c: Use C++ exception handling.
8978 * amd64-tdep.c: Use C++ exception handling.
8979 * ada-valprint.c: Use C++ exception handling.
8980 * ada-typeprint.c: Use C++ exception handling.
8981 * ada-lang.c: Use C++ exception handling.
8982 * aarch64-tdep.c: Use C++ exception handling.
8983
3d6e9d23
TT
89842019-04-08 Tom Tromey <tom@tromey.com>
8985
8986 * xml-support.c (gdb_xml_parser::parse): Update.
8987 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8988 * value.c (show_convenience): Update.
8989 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8990 (test_parse_flags_qcs): Update.
8991 * thread.c (thr_try_catch_cmd): Update.
8992 * target.c (target_translate_tls_address): Update.
8993 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8994 (info_frame_command_core, frame_apply_command_count): Update.
8995 * rust-exp.y (rust_lex_exception_test): Update.
8996 * riscv-tdep.c (riscv_print_one_register_info): Update.
8997 * remote.c (remote_target::enable_btrace): Update.
8998 * record-btrace.c (record_btrace_enable_warn): Update.
8999 * python/py-utils.c (gdbpy_convert_exception): Update.
9000 * printcmd.c (do_one_display, print_variable_and_value): Update.
9001 * mi/mi-main.c (mi_print_exception): Update.
9002 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9003 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9004 * linux-nat.c (linux_nat_target::attach): Update.
9005 * linux-fork.c (class scoped_switch_fork_info): Update.
9006 * infrun.c (displaced_step_prepare): Update.
9007 * infcall.c (call_function_by_hand_dummy): Update.
9008 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9009 * gnu-v3-abi.c (print_one_vtable): Update.
9010 * frame.c (get_prev_frame_always): Update.
9011 * f-valprint.c (info_common_command_for_block): Update.
9012 * exec.c (try_open_exec_file): Update.
9013 * exceptions.c (print_exception, exception_print)
9014 (exception_fprintf, exception_print_same): Update.
9015 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9016 * dwarf-index-cache.c (index_cache::store)
9017 (index_cache::lookup_gdb_index): Update.
9018 * darwin-nat.c (maybe_cache_shell): Update.
9019 * cp-valprint.c (cp_print_value_fields): Update.
9020 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9021 (gcc_cplus_symbol_address): Update.
9022 * compile/compile-c-symbols.c (gcc_convert_symbol)
9023 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9024 * common/selftest.c: Update.
9025 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9026 a std::string.
9027 (exception_try_scope_entry, exception_try_scope_exit): Don't
9028 declare.
9029 (struct exception_try_scope): Remove.
9030 (TRY): Don't use exception_try_scope.
9031 (struct gdb_exception): Add constructor, operator=.
9032 <what>: New method.
9033 (struct gdb_exception_RETURN_MASK_ALL)
9034 (struct gdb_exception_RETURN_MASK_ERROR)
9035 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9036 (struct gdb_quit_bad_alloc): Update.
9037 * common/common-exceptions.c (exception_none): Change
9038 initializer.
9039 (struct catcher) <state, exception>: Initialize inline.
9040 <prev>: Remove member.
9041 (current_catcher): Remove.
9042 (catchers): New global.
9043 (exceptions_state_mc_init): Simplify.
9044 (catcher_pop): Remove.
9045 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9046 (try_scope_depth, exception_try_scope_entry)
9047 (exception_try_scope_exit): Remove.
9048 (throw_exception_sjlj): Update.
9049 (exception_messages, exception_messages_size): Remove.
9050 (throw_it): Simplify.
9051 (gdb_exception_sliced_copy): Remove.
9052 (throw_exception_cxx): Update.
9053 * cli/cli-script.c (script_from_file): Update.
9054 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9055 Update.
9056 * ada-valprint.c (ada_val_print): Update.
9057 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9058 (create_excep_cond_exprs): Update.
9059
c5c10118
TT
90602019-04-08 Tom Tromey <tom@tromey.com>
9061
9062 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9063 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9064 (TRY, CATCH, END_CATCH): Remove some definitions.
9065 * common/common-exceptions.c: Don't use GDB_XCPT.
9066 (catcher_list_size): Remove.
9067 (throw_exception, throw_it): Simplify.
9068
4de283e4
TT
90692019-04-05 Tom Tromey <tom@tromey.com>
9070
9071 Revert the header-sorting patch.
9072 * ft32-tdep.c: Revert.
9073 * frv-tdep.c: Revert.
9074 * frv-linux-tdep.c: Revert.
9075 * frame.c: Revert.
9076 * frame-unwind.c: Revert.
9077 * frame-base.c: Revert.
9078 * fork-child.c: Revert.
9079 * findvar.c: Revert.
9080 * findcmd.c: Revert.
9081 * filesystem.c: Revert.
9082 * filename-seen-cache.h: Revert.
9083 * filename-seen-cache.c: Revert.
9084 * fbsd-tdep.c: Revert.
9085 * fbsd-nat.h: Revert.
9086 * fbsd-nat.c: Revert.
9087 * f-valprint.c: Revert.
9088 * f-typeprint.c: Revert.
9089 * f-lang.c: Revert.
9090 * extension.h: Revert.
9091 * extension.c: Revert.
9092 * extension-priv.h: Revert.
9093 * expprint.c: Revert.
9094 * exec.h: Revert.
9095 * exec.c: Revert.
9096 * exceptions.c: Revert.
9097 * event-top.c: Revert.
9098 * event-loop.c: Revert.
9099 * eval.c: Revert.
9100 * elfread.c: Revert.
9101 * dwarf2read.h: Revert.
9102 * dwarf2read.c: Revert.
9103 * dwarf2loc.c: Revert.
9104 * dwarf2expr.h: Revert.
9105 * dwarf2expr.c: Revert.
9106 * dwarf2-frame.c: Revert.
9107 * dwarf2-frame-tailcall.c: Revert.
9108 * dwarf-index-write.h: Revert.
9109 * dwarf-index-write.c: Revert.
9110 * dwarf-index-common.c: Revert.
9111 * dwarf-index-cache.h: Revert.
9112 * dwarf-index-cache.c: Revert.
9113 * dummy-frame.c: Revert.
9114 * dtrace-probe.c: Revert.
9115 * disasm.h: Revert.
9116 * disasm.c: Revert.
9117 * disasm-selftests.c: Revert.
9118 * dictionary.c: Revert.
9119 * dicos-tdep.c: Revert.
9120 * demangle.c: Revert.
9121 * dcache.h: Revert.
9122 * dcache.c: Revert.
9123 * darwin-nat.h: Revert.
9124 * darwin-nat.c: Revert.
9125 * darwin-nat-info.c: Revert.
9126 * d-valprint.c: Revert.
9127 * d-namespace.c: Revert.
9128 * d-lang.c: Revert.
9129 * ctf.c: Revert.
9130 * csky-tdep.c: Revert.
9131 * csky-linux-tdep.c: Revert.
9132 * cris-tdep.c: Revert.
9133 * cris-linux-tdep.c: Revert.
9134 * cp-valprint.c: Revert.
9135 * cp-support.c: Revert.
9136 * cp-namespace.c: Revert.
9137 * cp-abi.c: Revert.
9138 * corelow.c: Revert.
9139 * corefile.c: Revert.
9140 * continuations.c: Revert.
9141 * completer.h: Revert.
9142 * completer.c: Revert.
9143 * complaints.c: Revert.
9144 * coffread.c: Revert.
9145 * coff-pe-read.c: Revert.
9146 * cli-out.h: Revert.
9147 * cli-out.c: Revert.
9148 * charset.c: Revert.
9149 * c-varobj.c: Revert.
9150 * c-valprint.c: Revert.
9151 * c-typeprint.c: Revert.
9152 * c-lang.c: Revert.
9153 * buildsym.c: Revert.
9154 * buildsym-legacy.c: Revert.
9155 * build-id.h: Revert.
9156 * build-id.c: Revert.
9157 * btrace.c: Revert.
9158 * bsd-uthread.c: Revert.
9159 * breakpoint.h: Revert.
9160 * breakpoint.c: Revert.
9161 * break-catch-throw.c: Revert.
9162 * break-catch-syscall.c: Revert.
9163 * break-catch-sig.c: Revert.
9164 * blockframe.c: Revert.
9165 * block.c: Revert.
9166 * bfin-tdep.c: Revert.
9167 * bfin-linux-tdep.c: Revert.
9168 * bfd-target.c: Revert.
9169 * bcache.c: Revert.
9170 * ax-general.c: Revert.
9171 * ax-gdb.h: Revert.
9172 * ax-gdb.c: Revert.
9173 * avr-tdep.c: Revert.
9174 * auxv.c: Revert.
9175 * auto-load.c: Revert.
9176 * arm-wince-tdep.c: Revert.
9177 * arm-tdep.c: Revert.
9178 * arm-symbian-tdep.c: Revert.
9179 * arm-pikeos-tdep.c: Revert.
9180 * arm-obsd-tdep.c: Revert.
9181 * arm-nbsd-tdep.c: Revert.
9182 * arm-nbsd-nat.c: Revert.
9183 * arm-linux-tdep.c: Revert.
9184 * arm-linux-nat.c: Revert.
9185 * arm-fbsd-tdep.c: Revert.
9186 * arm-fbsd-nat.c: Revert.
9187 * arm-bsd-tdep.c: Revert.
9188 * arch-utils.c: Revert.
9189 * arc-tdep.c: Revert.
9190 * arc-newlib-tdep.c: Revert.
9191 * annotate.h: Revert.
9192 * annotate.c: Revert.
9193 * amd64-windows-tdep.c: Revert.
9194 * amd64-windows-nat.c: Revert.
9195 * amd64-tdep.c: Revert.
9196 * amd64-sol2-tdep.c: Revert.
9197 * amd64-obsd-tdep.c: Revert.
9198 * amd64-obsd-nat.c: Revert.
9199 * amd64-nbsd-tdep.c: Revert.
9200 * amd64-nbsd-nat.c: Revert.
9201 * amd64-nat.c: Revert.
9202 * amd64-linux-tdep.c: Revert.
9203 * amd64-linux-nat.c: Revert.
9204 * amd64-fbsd-tdep.c: Revert.
9205 * amd64-fbsd-nat.c: Revert.
9206 * amd64-dicos-tdep.c: Revert.
9207 * amd64-darwin-tdep.c: Revert.
9208 * amd64-bsd-nat.c: Revert.
9209 * alpha-tdep.c: Revert.
9210 * alpha-obsd-tdep.c: Revert.
9211 * alpha-nbsd-tdep.c: Revert.
9212 * alpha-mdebug-tdep.c: Revert.
9213 * alpha-linux-tdep.c: Revert.
9214 * alpha-linux-nat.c: Revert.
9215 * alpha-bsd-tdep.c: Revert.
9216 * alpha-bsd-nat.c: Revert.
9217 * aix-thread.c: Revert.
9218 * agent.c: Revert.
9219 * addrmap.c: Revert.
9220 * ada-varobj.c: Revert.
9221 * ada-valprint.c: Revert.
9222 * ada-typeprint.c: Revert.
9223 * ada-tasks.c: Revert.
9224 * ada-lang.c: Revert.
9225 * aarch64-tdep.c: Revert.
9226 * aarch64-ravenscar-thread.c: Revert.
9227 * aarch64-newlib-tdep.c: Revert.
9228 * aarch64-linux-tdep.c: Revert.
9229 * aarch64-linux-nat.c: Revert.
9230 * aarch64-fbsd-tdep.c: Revert.
9231 * aarch64-fbsd-nat.c: Revert.
9232 * aarch32-linux-nat.c: Revert.
9233
d55e5aa6
TT
92342019-04-05 Tom Tromey <tom@tromey.com>
9235
9236 * ft32-tdep.c: Sort headers.
9237 * frv-tdep.c: Sort headers.
9238 * frv-linux-tdep.c: Sort headers.
9239 * frame.c: Sort headers.
9240 * frame-unwind.c: Sort headers.
9241 * frame-base.c: Sort headers.
9242 * fork-child.c: Sort headers.
9243 * findvar.c: Sort headers.
9244 * findcmd.c: Sort headers.
9245 * filesystem.c: Sort headers.
9246 * filename-seen-cache.h: Sort headers.
9247 * filename-seen-cache.c: Sort headers.
9248 * fbsd-tdep.c: Sort headers.
9249 * fbsd-nat.h: Sort headers.
9250 * fbsd-nat.c: Sort headers.
9251 * f-valprint.c: Sort headers.
9252 * f-typeprint.c: Sort headers.
9253 * f-lang.c: Sort headers.
9254 * extension.h: Sort headers.
9255 * extension.c: Sort headers.
9256 * extension-priv.h: Sort headers.
9257 * expprint.c: Sort headers.
9258 * exec.h: Sort headers.
9259 * exec.c: Sort headers.
9260 * exceptions.c: Sort headers.
9261 * event-top.c: Sort headers.
9262 * event-loop.c: Sort headers.
9263 * eval.c: Sort headers.
9264 * elfread.c: Sort headers.
9265 * dwarf2read.h: Sort headers.
9266 * dwarf2read.c: Sort headers.
9267 * dwarf2loc.c: Sort headers.
9268 * dwarf2expr.h: Sort headers.
9269 * dwarf2expr.c: Sort headers.
9270 * dwarf2-frame.c: Sort headers.
9271 * dwarf2-frame-tailcall.c: Sort headers.
9272 * dwarf-index-write.h: Sort headers.
9273 * dwarf-index-write.c: Sort headers.
9274 * dwarf-index-common.c: Sort headers.
9275 * dwarf-index-cache.h: Sort headers.
9276 * dwarf-index-cache.c: Sort headers.
9277 * dummy-frame.c: Sort headers.
9278 * dtrace-probe.c: Sort headers.
9279 * disasm.h: Sort headers.
9280 * disasm.c: Sort headers.
9281 * disasm-selftests.c: Sort headers.
9282 * dictionary.c: Sort headers.
9283 * dicos-tdep.c: Sort headers.
9284 * demangle.c: Sort headers.
9285 * dcache.h: Sort headers.
9286 * dcache.c: Sort headers.
9287 * darwin-nat.h: Sort headers.
9288 * darwin-nat.c: Sort headers.
9289 * darwin-nat-info.c: Sort headers.
9290 * d-valprint.c: Sort headers.
9291 * d-namespace.c: Sort headers.
9292 * d-lang.c: Sort headers.
9293 * ctf.c: Sort headers.
9294 * csky-tdep.c: Sort headers.
9295 * csky-linux-tdep.c: Sort headers.
9296 * cris-tdep.c: Sort headers.
9297 * cris-linux-tdep.c: Sort headers.
9298 * cp-valprint.c: Sort headers.
9299 * cp-support.c: Sort headers.
9300 * cp-namespace.c: Sort headers.
9301 * cp-abi.c: Sort headers.
9302 * corelow.c: Sort headers.
9303 * corefile.c: Sort headers.
9304 * continuations.c: Sort headers.
9305 * completer.h: Sort headers.
9306 * completer.c: Sort headers.
9307 * complaints.c: Sort headers.
9308 * coffread.c: Sort headers.
9309 * coff-pe-read.c: Sort headers.
9310 * cli-out.h: Sort headers.
9311 * cli-out.c: Sort headers.
9312 * charset.c: Sort headers.
9313 * c-varobj.c: Sort headers.
9314 * c-valprint.c: Sort headers.
9315 * c-typeprint.c: Sort headers.
9316 * c-lang.c: Sort headers.
9317 * buildsym.c: Sort headers.
9318 * buildsym-legacy.c: Sort headers.
9319 * build-id.h: Sort headers.
9320 * build-id.c: Sort headers.
9321 * btrace.c: Sort headers.
9322 * bsd-uthread.c: Sort headers.
9323 * breakpoint.h: Sort headers.
9324 * breakpoint.c: Sort headers.
9325 * break-catch-throw.c: Sort headers.
9326 * break-catch-syscall.c: Sort headers.
9327 * break-catch-sig.c: Sort headers.
9328 * blockframe.c: Sort headers.
9329 * block.c: Sort headers.
9330 * bfin-tdep.c: Sort headers.
9331 * bfin-linux-tdep.c: Sort headers.
9332 * bfd-target.c: Sort headers.
9333 * bcache.c: Sort headers.
9334 * ax-general.c: Sort headers.
9335 * ax-gdb.h: Sort headers.
9336 * ax-gdb.c: Sort headers.
9337 * avr-tdep.c: Sort headers.
9338 * auxv.c: Sort headers.
9339 * auto-load.c: Sort headers.
9340 * arm-wince-tdep.c: Sort headers.
9341 * arm-tdep.c: Sort headers.
9342 * arm-symbian-tdep.c: Sort headers.
9343 * arm-pikeos-tdep.c: Sort headers.
9344 * arm-obsd-tdep.c: Sort headers.
9345 * arm-nbsd-tdep.c: Sort headers.
9346 * arm-nbsd-nat.c: Sort headers.
9347 * arm-linux-tdep.c: Sort headers.
9348 * arm-linux-nat.c: Sort headers.
9349 * arm-fbsd-tdep.c: Sort headers.
9350 * arm-fbsd-nat.c: Sort headers.
9351 * arm-bsd-tdep.c: Sort headers.
9352 * arch-utils.c: Sort headers.
9353 * arc-tdep.c: Sort headers.
9354 * arc-newlib-tdep.c: Sort headers.
9355 * annotate.h: Sort headers.
9356 * annotate.c: Sort headers.
9357 * amd64-windows-tdep.c: Sort headers.
9358 * amd64-windows-nat.c: Sort headers.
9359 * amd64-tdep.c: Sort headers.
9360 * amd64-sol2-tdep.c: Sort headers.
9361 * amd64-obsd-tdep.c: Sort headers.
9362 * amd64-obsd-nat.c: Sort headers.
9363 * amd64-nbsd-tdep.c: Sort headers.
9364 * amd64-nbsd-nat.c: Sort headers.
9365 * amd64-nat.c: Sort headers.
9366 * amd64-linux-tdep.c: Sort headers.
9367 * amd64-linux-nat.c: Sort headers.
9368 * amd64-fbsd-tdep.c: Sort headers.
9369 * amd64-fbsd-nat.c: Sort headers.
9370 * amd64-dicos-tdep.c: Sort headers.
9371 * amd64-darwin-tdep.c: Sort headers.
9372 * amd64-bsd-nat.c: Sort headers.
9373 * alpha-tdep.c: Sort headers.
9374 * alpha-obsd-tdep.c: Sort headers.
9375 * alpha-nbsd-tdep.c: Sort headers.
9376 * alpha-mdebug-tdep.c: Sort headers.
9377 * alpha-linux-tdep.c: Sort headers.
9378 * alpha-linux-nat.c: Sort headers.
9379 * alpha-bsd-tdep.c: Sort headers.
9380 * alpha-bsd-nat.c: Sort headers.
9381 * aix-thread.c: Sort headers.
9382 * agent.c: Sort headers.
9383 * addrmap.c: Sort headers.
9384 * ada-varobj.c: Sort headers.
9385 * ada-valprint.c: Sort headers.
9386 * ada-typeprint.c: Sort headers.
9387 * ada-tasks.c: Sort headers.
9388 * ada-lang.c: Sort headers.
9389 * aarch64-tdep.c: Sort headers.
9390 * aarch64-ravenscar-thread.c: Sort headers.
9391 * aarch64-newlib-tdep.c: Sort headers.
9392 * aarch64-linux-tdep.c: Sort headers.
9393 * aarch64-linux-nat.c: Sort headers.
9394 * aarch64-fbsd-tdep.c: Sort headers.
9395 * aarch64-fbsd-nat.c: Sort headers.
9396 * aarch32-linux-nat.c: Sort headers.
9397
699bd4cf
TT
93982019-04-04 Tom Tromey <tom@tromey.com>
9399
9400 * varobj.c (varobj_create): Update.
9401 * rust-exp.y (struct rust_parser) <update_innermost_block,
9402 lookup_symbol>: New methods.
9403 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9404 Rename.
9405 (rust_parser::rust_lookup_type)
9406 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9407 * printcmd.c (display_command, do_one_display): Update.
9408 * parser-defs.h (struct parser_state) <parser_state>: Add
9409 "tracker" parameter.
9410 (block_tracker): New member.
9411 (class innermost_block_tracker) <innermost_block_tracker>: Add
9412 "types" parameter.
9413 <reset>: Remove method.
9414 (innermost_block): Don't declare.
9415 (null_post_parser): Update.
9416 * parse.c (innermost_block): Remove global.
9417 (write_dollar_variable): Update.
9418 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9419 Remove "tracker_types" parameter.
9420 (parse_expression): Add "tracker" parameter.
9421 (parse_expression_for_completion): Update.
9422 (null_post_parser): Add "tracker" parameter.
9423 * p-exp.y: Update rules.
9424 * m2-exp.y: Update rules.
9425 * language.h (struct language_defn) <la_post_parser>: Add
9426 "tracker" parameter.
9427 * go-exp.y: Update rules.
9428 * f-exp.y: Update rules.
9429 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9430 parameter.
9431 * d-exp.y: Update rules.
9432 * c-exp.y: Update rules.
9433 * breakpoint.c (set_breakpoint_condition): Create an
9434 innermost_block_tracker.
9435 (watch_command_1): Likewise.
9436 * ada-lang.c (resolve): Add "tracker" parameter.
9437 (resolve_subexp): Likewise.
9438 * ada-exp.y (write_var_from_sym): Update.
9439
dac43e32
TT
94402019-04-04 Tom Tromey <tom@tromey.com>
9441
9442 * type-stack.h: New file.
9443 * type-stack.c: New file.
9444 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9445 type-stack.h.
9446 (insert_into_type_stack, insert_type, push_type, push_type_int)
9447 (insert_type_address_space, pop_type, pop_type_int)
9448 (pop_typelist, pop_type_stack, append_type_stack)
9449 (push_type_stack, get_type_stack, push_typelist)
9450 (follow_type_instance_flags, follow_types): Don't declare.
9451 * parse.c (type_stack): Remove global.
9452 (parse_exp_in_context): Update.
9453 (insert_into_type_stack, insert_type, push_type, push_type_int)
9454 (insert_type_address_space, pop_type, pop_type_int)
9455 (pop_typelist, pop_type_stack, append_type_stack)
9456 (push_type_stack, get_type_stack, push_typelist)
9457 (follow_type_instance_flags, follow_types): Remove (moved to
9458 type-stack.c).
9459 * f-exp.y (type_stack): New global.
9460 Update rules.
9461 (push_kind_type, f_parse): Update.
9462 * d-exp.y (type_stack): New global.
9463 Update rules.
9464 (d_parse): Update.
9465 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9466 Update rules.
9467 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9468 (HFILES_NO_SRCDIR): Add type-stack.h.
9469
2a612529
TT
94702019-04-04 Tom Tromey <tom@tromey.com>
9471
9472 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9473 (rust_parser::convert_ast_to_expression, rust_parse)
9474 (rust_lex_test_completion, rust_lex_tests): Update.
9475 * parser-defs.h (struct expr_completion_state): New.
9476 (struct parser_state) <parser_state>: Add completion parameter.
9477 <mark_struct_expression, mark_completion_tag>: New methods.
9478 <parse_completion, m_completion_state>: New members.
9479 (prefixify_expression, null_post_parser): Update.
9480 (mark_struct_expression, mark_completion_tag): Don't declare.
9481 * parse.c (parse_completion, expout_last_struct)
9482 (expout_tag_completion_type, expout_completion_name): Remove
9483 globals.
9484 (parser_state::mark_struct_expression)
9485 (parser_state::mark_completion_tag): Now methods.
9486 (prefixify_expression): Add last_struct parameter.
9487 (prefixify_subexp): Likewise.
9488 (parse_exp_1): Update.
9489 (parse_exp_in_context): Add cstate parameter. Update.
9490 (parse_expression_for_completion): Create an
9491 expr_completion_state.
9492 (null_post_parser): Add "completion" parameter.
9493 * p-exp.y: Update rules.
9494 (yylex): Update.
9495 * language.h (struct language_defn) <la_post_parser>: Add
9496 "completing" parameter.
9497 * go-exp.y: Update rules.
9498 (lex_one_token): Update.
9499 * expression.h (parse_completion): Don't declare.
9500 * d-exp.y: Update rules.
9501 (lex_one_token): Update rules.
9502 * c-exp.y: Update rules.
9503 (lex_one_token): Update.
9504 * ada-lang.c (resolve): Add "parse_completion" parameter.
9505 (resolve_subexp): Likewise.
9506 (ada_resolve_function): Likewise.
9507
43476f0b
TT
95082019-04-04 Tom Tromey <tom@tromey.com>
9509
9510 * parser-defs.h (struct parser_state) <start_arglist,
9511 end_arglist>: New methods.
9512 <arglist_len, m_funcall_chain>: New members.
9513 (arglist_len, start_arglist, end_arglist): Don't declare.
9514 * parse.c (arglist_len, funcall_chain): Remove global.
9515 (start_arglist, end_arglist): Remove functions.
9516 (parse_exp_in_context): Update.
9517 * p-exp.y: Update rules.
9518 * m2-exp.y: Update rules.
9519 * go-exp.y: Update rules.
9520 * f-exp.y: Update rules.
9521 * d-exp.y: Update rules.
9522 * c-exp.y: Update rules.
9523
5776fca3
TT
95242019-04-04 Tom Tromey <tom@tromey.com>
9525
9526 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9527 lex_operator, push_back>: New methods.
9528 Update all rules.
9529 (rust_parser::lex_hex, lex_escape): Rename and update.
9530 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9531 (rust_parser::lex_operator): Rename and update.
9532 (rust_parser::lex_number, rustyylex, rustyyerror)
9533 (rust_lex_test_init, rust_lex_test_sequence)
9534 (rust_lex_test_push_back, rust_lex_tests): Update.
9535 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9536 parameter.
9537 <lexptr, prev_lexptr>: New members.
9538 (lexptr, prev_lexptr): Don't declare.
9539 * parse.c (lexptr, prev_lexptr): Remove globals.
9540 (parse_exp_in_context): Update.
9541 * p-exp.y (yylex, yyerror): Update.
9542 * m2-exp.y (parse_number, yylex, yyerror): Update.
9543 * go-exp.y (lex_one_token, yyerror): Update.
9544 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9545 * d-exp.y (lex_one_token, yyerror): Update.
9546 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9547 (lex_one_token, yyerror): Update.
9548 * ada-lex.l (YY_INPUT): Update.
9549 (rewind_to_char): Update.
9550 * ada-exp.y (yyerror): Update.
9551
8621b685
TT
95522019-04-04 Tom Tromey <tom@tromey.com>
9553
9554 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9555 * parser-defs.h (struct parser_state) <parser_state>: Add new
9556 parameter.
9557 <comma_terminates>: New member.
9558 (comma_terminates): Don't declare global.
9559 * parse.c (comma_terminates): Remove global.
9560 (parse_exp_in_context): Update.
9561 * p-exp.y (yylex): Update.
9562 * m2-exp.y (yylex): Update.
9563 * go-exp.y (lex_one_token): Update.
9564 * f-exp.y (yylex): Update.
9565 * d-exp.y (lex_one_token): Update.
9566 * c-exp.y (lex_one_token): Update.
9567 * ada-lex.l: Update.
9568
28aaf3fd
TT
95692019-04-04 Tom Tromey <tom@tromey.com>
9570
9571 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9572 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9573 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9574 * parser-defs.h (paren_depth): Don't declare.
9575 * parse.c (paren_depth): Remove global.
9576 (parse_exp_in_context): Update.
9577 * p-exp.y (paren_depth): New global.
9578 (pascal_parse): Initialize it.
9579 * m2-exp.y (paren_depth): New global.
9580 (m2_parse): Initialize it.
9581 * go-exp.y (paren_depth): New global.
9582 (go_parse): Initialize it.
9583 * f-exp.y (paren_depth): New global.
9584 (f_parse): Initialize it.
9585 * d-exp.y (paren_depth): New global.
9586 (d_parse): Initialize it.
9587 * c-exp.y (paren_depth): New global.
9588 (c_parse): Initialize it.
9589 * ada-lex.l (paren_depth): New global.
9590 (lexer_init): Initialize it.
9591
1e58a4a4
TT
95922019-04-04 Tom Tromey <tom@tromey.com>
9593
9594 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9595 (rust_parser::convert_ast_to_type)
9596 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9597 * parser-defs.h (struct parser_state) <parser_state>: Add
9598 parameters. Initialize new members.
9599 <expression_context_block, expression_context_pc>: New members.
9600 * parse.c (expression_context_block, expression_context_pc):
9601 Remove globals.
9602 (parse_exp_in_context): Update.
9603 * p-exp.y: Update all rules.
9604 (yylex): Update.
9605 * m2-exp.y: Update all rules.
9606 (yylex): Update.
9607 * go-exp.y (yylex): Update.
9608 * f-exp.y (yylex): Update.
9609 * d-exp.y: Update all rules.
9610 (yylex): Update.
9611 * c-exp.y: Update all rules.
9612 (lex_one_token, classify_name, yylex, c_parse): Update.
9613 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9614
37eedb39
TT
96152019-04-04 Tom Tromey <tom@tromey.com>
9616
9617 * gdbarch.h, gdbarch.c: Rebuild.
9618 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9619 * stap-probe.h:
9620 (struct stap_parse_info): Replace "parser_state" with
9621 "expr_builder".
9622 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9623 (parser_state): New class.
9624 * parse.c (expr_builder): Rename.
9625 (expr_builder::release): Rename.
9626 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9627 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9628 (write_exp_elt_longcst, write_exp_elt_floatcst)
9629 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9630 (write_exp_string_vector, write_exp_bitstring)
9631 (write_exp_msymbol, mark_struct_expression)
9632 (write_dollar_variable)
9633 (insert_type_address_space, increase_expout_size): Replace
9634 "parser_state" with "expr_builder".
9635 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9636 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9637 "parser_state" with "expr_builder".
9638
73923d7e
TT
96392019-04-04 Tom Tromey <tom@tromey.com>
9640
9641 * rust-exp.y: Replace "parse_language" with method call.
9642 * p-exp.y:
9643 (yylex): Replace "parse_language" with method call.
9644 * m2-exp.y:
9645 (yylex): Replace "parse_language" with method call.
9646 * go-exp.y (classify_name): Replace "parse_language" with method
9647 call.
9648 * f-exp.y (yylex): Replace "parse_language" with method call.
9649 * d-exp.y (lex_one_token): Replace "parse_language" with method
9650 call.
9651 * c-exp.y:
9652 (lex_one_token, classify_name, yylex): Replace "parse_language"
9653 with method call.
9654 * ada-exp.y (find_primitive_type, type_char)
9655 (type_system_address): Replace "parse_language" with method call.
9656
fa9f5be6
TT
96572019-04-04 Tom Tromey <tom@tromey.com>
9658
9659 * rust-exp.y: Replace "parse_gdbarch" with method call.
9660 * parse.c (write_dollar_variable, insert_type_address_space):
9661 Replace "parse_gdbarch" with method call.
9662 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9663 call.
9664 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9665 call.
9666 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9667 "parse_gdbarch" with method call.
9668 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9669 with method call.
9670 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9671 "parse_gdbarch" with method call.
9672 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9673 "parse_gdbarch" with method call.
9674 * c-exp.y (parse_type, parse_number, classify_name): Replace
9675 "parse_gdbarch" with method call.
9676 * ada-lex.l: Replace "parse_gdbarch" with method call.
9677 * ada-exp.y (parse_type, find_primitive_type, type_char)
9678 (type_system_address): Replace "parse_gdbarch" with method call.
9679
1201a264
TT
96802019-04-04 Tom Tromey <tom@tromey.com>
9681
9682 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9683 * stap-probe.c (stap_parse_argument): Update.
9684 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9685 initial_size parameter.
9686 * rust-exp.y (rust_lex_tests): Update.
9687 * parse.c (parser_state): Update.
9688 (parse_exp_in_context): Update.
9689 * parser-defs.h (struct parser_state) <parser_state>: Remove
9690 "initial_size" parameter.
9691
e3980ce2
TT
96922019-04-04 Tom Tromey <tom@tromey.com>
9693
9694 * parser-defs.h (increase_expout_size): Don't declare.
9695 * parse.c (increase_expout_size): Now static.
9696
e9f8e3f1
TS
96972019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9698
9699 * gnu-nat.c (gnu_nat_target::wait): Fix
9700 target_waitstatus_to_string call.
9701
d7df6549
AB
97022019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9703
9704 * eval.c (evaluate_subexp_standard): Handle internal functions
9705 during Fortran function call handling.
9706
8bdc1658
AB
97072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9708
9709 * NEWS: Mention new internal functions.
9710 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9711 (read_base_type): Use dwarf2_init_complex_target_type.
9712 * value.c (creal_internal_fn): New function.
9713 (cimag_internal_fn): New function.
9714 (_initialize_values): Register new internal functions.
9715
c29705b7
PW
97162019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9717
9718 * infrun.c (stop_all_threads): If debug_infrun, always
9719 trace the wait status after wait_one, using
9720 target_waitstatus_to_string and target_pid_to_str.
9721 (handle_inferior_event): Replace various trace of
9722 wait status kind by a single trace.
9723 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9724 wait status kind image by target_waitstatus_to_string.
9725 * target/waitstatus.c (target_waitstatus_to_string): Fix
9726 obsolete comment.
9727
05caa1d2
TT
97282019-04-01 Tom Tromey <tromey@adacore.com>
9729
9730 PR symtab/23331:
9731 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9732
9d1447e0
SDJ
97332019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9734 Pedro Alves <palves@redhat.com>
9735
9736 * top.c (quit_force): Call 'finalize_values'.
9737 * value.c (finalize_values): New function.
9738 * value.h (finalize_values): Declare.
9739
7734102d
EZ
97402019-03-30 Eli Zaretskii <eliz@gnu.org>
9741
9742 * NEWS: Announce $_gdb_major and $_gdb_minor.
9743
9744 * top.c (init_gdb_version_vars): New function.
9745 (gdb_init): Call init_gdb_version_vars.
9746
188e1fa9
TT
97472019-03-29 Tom Tromey <tromey@adacore.com>
9748
9749 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9750 help text. Remove dead code.
9751
2880242d
KS
97522019-03-29 Keith Seitz <keiths@redhat.com>
9753
9754 From Siddhesh Poyarekar:
9755 * f-lang.h (f77_get_upperbound): Return LONGEST.
9756 (f77_get_lowerbound): Likewise.
9757 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9758 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9759 print them.
9760 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9761 plongest to format print it.
9762 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9763 (f77_get_upperbound): Likewise.
9764 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9765 LOWER_BOUND to LONGEST.
9766 (f77_create_arrayprint_offset_tbl): Likewise.
9767
cc1defb1
KS
97682019-03-29 Keith Seitz <keiths@redhat.com>
9769
9770 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9771 %s/pulongest for TYPE_LENGTH instead of %d in format
9772 strings.
9773 * ada-typerint.c (ada_print_type): Likewise.
9774 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9775 * compile/compile-c-support.c (generate_register_struct): Likewise.
9776 * gdbtypes.c (recursive_dump_type): Likewise.
9777 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9778 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9779 instead of %d in format strings.
9780 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9781 to std::min to ULONGEST.
9782 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9783 instead of %d in format strings.
9784 * tracepoint.c (info_scope_command): Likewise.
9785 * typeprint.c (print_offset_data::update)
9786 (print_offset_data::finish): Likewise.
9787 * xtensa-tdep.c (xtensa_store_return_value)
9788 (xtensa_push_dummy_call): Likewise.
9789
e432ccf1
JT
97902019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9791
9792 * windows-nat.c (display_selector): Fixed format specifications
9793 for 64-bit Cygwin.
9794
65d2b333
PW
97952019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9796
9797 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9798
f489207e
SL
97992019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9800
9801 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9802 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9803 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9804 (nios2_linux_init_abi): Install it.
9805
bffa1015
AH
98062019-03-28 Alan Hayward <alan.hayward@arm.com>
9807
9808 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9809
fc96163a
AH
98102019-03-28 Alan Hayward <alan.hayward@arm.com>
9811
9812 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9813
20dc7e9b
PW
98142019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9815 Tom Tromey <tromey@adacore.com>
9816
9817 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9818
7f5331a8
JB
98192019-03-26 Joel Brobecker <brobecker@adacore.com>
9820
9821 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9822 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9823 method to compute the bounds of range types. Also print "[evaluated]"
9824 if the bounds' values come from a dynamic evaluation.
9825
18c77628
AB
98262019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9827
9828 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9829 whitespace when pretty printing is on.
9830
53c973f2
AH
98312019-03-26 Alan Hayward <alan.hayward@arm.com>
9832
e79be6e5 9833 * ppc-linux-nat.c: Add include.
53c973f2 9834
d851aa71
AH
98352019-03-26 Alan Hayward <alan.hayward@arm.com>
9836
e79be6e5 9837 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 9838
2fe7bab7
AH
98392019-03-26 Alan Hayward <alan.hayward@arm.com>
9840
e79be6e5 9841 * arm-linux-nat.c: Add include.
2fe7bab7 9842
068ef30e
SM
98432019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * source-cache.c (source_cache::get_source_lines): Re-read
9846 fullname after calling open_source_file.
9847
81a24d04
JB
98482019-03-25 John Baldwin <jhb@FreeBSD.org>
9849
9850 * NEWS: Mention TLS support for FreeBSD.
9851
79e7ae11
TT
98522019-03-25 Tom Tromey <tromey@adacore.com>
9853
9854 * minsyms.c (BUNCH_SIZE): Update comment.
9855 (~minimal_symbol_reader): Remove old comment.
9856 (compact_minimal_symbols): Update comment.
9857 (minimal_symbol_reader::install): Remove old comment. Update
9858 other comments.
9859
d45963c2
AH
98602019-03-25 Alan Hayward <alan.hayward@arm.com>
9861
9862 * s390-linux-nat.c: Add include.
9863
0f83012e
AH
98642019-03-25 Alan Hayward <alan.hayward@arm.com>
9865
9866 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9867 Call linux_get_hwcap.
9868 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9869 Likewise.
9870 (aarch64_linux_get_hwcap): Remove function.
9871 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9872 declaration.
9873 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9874 linux_get_hwcap.
9875 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9876 * linux-tdep.c (linux_get_hwcap): Add function.
9877 (linux_get_hwcap2): Likewise.
9878 * linux-tdep.h (linux_get_hwcap): Add declaration.
9879 (linux_get_hwcap2): Likewise.
9880 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9881 (ppc_linux_get_hwcap2): Likewise.
9882 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9883 linux_get_hwcap.
9884 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9885 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9886 (ppc_linux_nat_target::read_description): Likewise.
9887 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9888 * s390-linux-nat.c: Likewise.
9889 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9890
6640a367
TT
98912019-03-24 Tom Tromey <tom@tromey.com>
9892
9893 * ada-lang.c (standard_lookup): Simplify initialization.
9894 (ada_lookup_symbol_nonlocal): Simplify return.
9895 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9896 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9897 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9898 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9899 initialization.
9900 * solib.c (solib_global_lookup): Simplify.
9901 * symtab.c (null_block_symbol): Remove.
9902 (symbol_cache_lookup): Simplify returns.
9903 (lookup_language_this): Simplify returns.
9904 (lookup_symbol_aux): Simplify return.
9905 (lookup_local_symbol): Simplify returns.
9906 (lookup_global_symbol_from_objfile): Simplify return.
9907 (lookup_symbol_in_objfile_symtabs)
9908 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9909 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9910 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9911 * cp-namespace.c (cp_lookup_bare_symbol)
9912 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9913 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9914 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9915 (cp_lookup_symbol_via_imports): Simplify initialization.
9916 (find_symbol_in_baseclass): Likewise.
9917 * symtab.h (null_block_symbol): Remove.
9918 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9919 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9920 (d_lookup_symbol_module): Likewise.
9921 (find_symbol_in_baseclass): Simplify initialization.
9922
a930ebcd
TT
99232019-03-24 Tom Tromey <tom@tromey.com>
9924
9925 * expression.h: Don't include symtab.h.
9926 (struct block): Forward declare.
9927
582942f4
TT
99282019-03-24 Tom Tromey <tom@tromey.com>
9929
9930 * c-exp.y (typebase): Remove casts.
9931 * gdbtypes.c (lookup_unsigned_typename, )
9932 (lookup_signed_typename): Remove cast.
9933 * eval.c (parse_to_comma_and_eval): Remove cast.
9934 * parse.c (write_dollar_variable): Remove cast.
9935 * block.h (struct block) <superblock>: Now const.
9936 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9937 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9938 (map_block): Make "block" const.
9939 * symfile.h (struct quick_symbol_functions)
9940 <map_matching_symbols>: Constify block argument to "callback".
9941 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9942 const.
9943 (find_pc_sect_compunit_symtab): Make "b" const.
9944 (find_symbol_at_address): Likewise.
9945 (search_symbols): Likewise.
9946 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9947 (dw2_debug_names_lookup_symbol): Likewise.
9948 (dw2_map_matching_symbols): Update.
9949 * p-valprint.c (pascal_val_print): Remove "block".
9950 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9951 (aux_add_nonlocal_symbols): Make "block" const.
9952 (resolve_subexp): Remove cast.
9953 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9954 const.
9955 (iterate_over_file_blocks): Likewise.
9956 * f-exp.y (%union) <bval>: Remove.
9957 * coffread.c (patch_opaque_types): Make "b" const.
9958 * spu-tdep.c (spu_catch_start): Make "block" const.
9959 * c-valprint.c (print_unpacked_pointer): Remove "block".
9960 * symmisc.c (dump_symtab_1): Make "b" const.
9961 (block_depth): Make "block" const.
9962 * d-exp.y (%union) <bval>: Remove.
9963 * cp-support.h (cp_lookup_rtti_type): Update.
9964 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9965 * psymtab.c (psym_lookup_symbol): Make "block" const.
9966 (maintenance_check_psymtabs): Make "b" const.
9967 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9968 (enumerate_locals, enumerate_args): Update.
9969 * python/py-symtab.c (stpy_global_block): Make "block" const.
9970 (stpy_static_block): Likewise.
9971 * inline-frame.c (block_starting_point_at): Make "new_block"
9972 const.
9973 * block.c (find_block_in_blockvector): Make return type const.
9974 (blockvector_for_pc_sect): Make "b" const.
9975 (find_block_in_blockvector): Make "b" const.
9976
7ad417dd
TT
99772019-03-23 Tom Tromey <tom@tromey.com>
9978
9979 * varobj.c (varobj_create): Update.
9980 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9981 * printcmd.c (display_command, do_one_display): Don't reset
9982 innermost_block.
9983 * parser-defs.h (enum innermost_block_tracker_type): Move to
9984 expression.h.
9985 (innermost_block): Update comment.
9986 * parse.c (parse_exp_1): Add tracker_types parameter.
9987 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9988 tracker_types parameter. Reset innermost_block.
9989 (parse_exp_in_context): Remove.
9990 (parse_expression_for_completion): Update.
9991 * objfiles.c (~objfile): Don't reset expression_context_block or
9992 innermost_block.
9993 * expression.h (enum innermost_block_tracker_type): Move from
9994 parser-defs.h.
9995 (parse_exp_1): Add tracker_types parameter.
9996 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9997 reset innermost_block.
9998
b366c208
TT
99992019-03-23 Tom Tromey <tom@tromey.com>
10000
10001 * objfiles.h: Include bcache.h.
10002
9bb9b2f9
TT
100032019-03-23 Tom Tromey <tom@tromey.com>
10004
10005 * linespec.c (get_current_search_block): Use
10006 scoped_restore_current_language.
10007 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10008
59c28372
AH
100092019-03-22 Alan Hayward <alan.hayward@arm.com>
10010 Jiong Wang <jiong.wang@arm.com>
10011
10012 * aarch64-linux-tdep.c
10013 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10014 section.
10015 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10016
17e116a7
AH
100172019-03-22 Alan Hayward <alan.hayward@arm.com>
10018 Jiong Wang <jiong.wang@arm.com>
10019
10020 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10021 instructions.
10022 (aarch64_analyze_prologue_test): Add PACIASP test.
10023 (aarch64_prologue_prev_register): Unmask PC value.
10024
11e1b75f
AH
100252019-03-22 Alan Hayward <alan.hayward@arm.com>
10026 Jiong Wang <jiong.wang@arm.com>
10027
10028 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10029 (aarch64_dwarf2_prev_register): Unmask PC value.
10030 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10031 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10032 DW_CFA_AARCH64_negate_ra_state.
10033 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10034
34dcc7cf
AH
100352019-03-22 Alan Hayward <alan.hayward@arm.com>
10036 Jiong Wang <jiong.wang@arm.com>
10037
10038 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10039 registers.
10040 (aarch64_pseudo_register_name): Likewise.
10041 (aarch64_pseudo_register_type): Likewise.
10042 (aarch64_pseudo_register_reggroup_p): Likewise.
10043 (aarch64_gdbarch_init): Add pauth registers.
10044 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10045 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10046 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10047 (struct gdbarch_tdep): Add regnum for ra_state.
10048
1ef53e6b
AH
100492019-03-22 Alan Hayward <alan.hayward@arm.com>
10050 Jiong Wang <jiong.wang@arm.com>
10051
10052 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10053
76bed0fd
AH
100542019-03-22 Alan Hayward <alan.hayward@arm.com>
10055 Jiong Wang <jiong.wang@arm.com>
10056
10057 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10058 function.
10059 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10060 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10061 (aarch64_gdbarch_init): Add puth registers.
10062 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10063 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10064 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10065
ee4fbcfa
AH
100662019-03-22 Alan Hayward <alan.hayward@arm.com>
10067 Jiong Wang <jiong.wang@arm.com>
10068
10069 * aarch64-linux-nat.c
10070 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10071 * aarch64-linux-tdep.c
10072 (aarch64_linux_core_read_description): Likewise.
10073 (aarch64_linux_get_hwcap): New function.
10074 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10075 (aarch64_linux_get_hwcap): New declaration.
10076
6dc0ebde
AH
100772019-03-22 Alan Hayward <alan.hayward@arm.com>
10078 Jiong Wang <jiong.wang@arm.com>
10079
10080 * aarch64-linux-nat.c
10081 (aarch64_linux_nat_target::read_description): Add pauth param.
10082 * aarch64-linux-tdep.c
10083 (aarch64_linux_core_read_description): Likewise.
10084 * aarch64-tdep.c (struct target_desc): Add in pauth.
10085 (aarch64_read_description): Add pauth param.
10086 (aarch64_gdbarch_init): Likewise.
10087 * aarch64-tdep.h (aarch64_read_description): Likewise.
10088 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10089 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10090 * features/Makefile: Add new files.
10091 * features/aarch64-pauth.c: New file.
10092 * features/aarch64-pauth.xml: New file.
10093
595915c1
TT
100942019-03-20 Tom Tromey <tromey@adacore.com>
10095
10096 * infrun.c (handle_inferior_event): Rename from
10097 handle_inferior_event_1. Create a scoped_value_mark.
10098 (handle_inferior_event): Remove.
10099
4c7d57e7
TT
101002019-03-19 Tom Tromey <tromey@adacore.com>
10101
10102 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10103 * infrun.h (print_stop_event): Add "displays" parameter.
10104 * infrun.c (print_stop_event): Add "displays" parameter.
10105
cb246234
PA
101062019-03-19 Pedro Alves <palves@redhat.com>
10107
10108 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10109 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10110 to -1. Fix TABs vs spaces.
10111 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10112 * tui/tui-out.h (tui_ui_out) Add intro comments.
10113 <m_line, m_start_of_line>: In-class initialize, and add describing
10114 comment.
10115
3a0e45b2
AH
101162019-03-18 Alan Hayward <alan.hayward@arm.com>
10117
10118 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10119 variable names.
10120 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10121
5371b850
PA
101222019-03-18 Pedro Alves <palves@redhat.com>
10123 Eli Zaretskii <eliz@gnu.org>
10124
10125 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10126 m_line and m_start_of_line.
10127
b17c4cd0
EZ
101282019-03-18 Eli Zaretskii <eliz@gnu.org>
10129
10130 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10131 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10132 it returns a newline. This fixes a regression in TU mode, whereby
10133 the next line is output on the same screen line as the user input.
10134
4bd56d18
TT
101352019-03-18 Tom Tromey <tromey@adacore.com>
10136
10137 * minsyms.c (minimal_symbol_reader::install): Remove call to
10138 obstack_blank.
10139
55c10aca
PA
101402019-03-18 Pedro Alves <palves@redhat.com>
10141
10142 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10143 New globals.
10144 (apply_style): New, factored out from ...
10145 (apply_ansi_escape): ... this. Handle reverse video mode.
10146 (tui_set_reverse_mode): New function.
10147 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10148 * tui/tui-winsource.c (tui_show_source_line): Use
10149 tui_set_reverse_mode instead of setting A_STANDOUT.
10150 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10151 New setter methods.
10152
647bb750
HD
101532019-03-18 Hannes Domani <ssbssa@yahoo.de>
10154
10155 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10156 Handle tabs.
10157
bff8c71f
TT
101582019-03-18 Tom Tromey <tromey@adacore.com>
10159
10160 * ada-lang.c (empty_array): Add "high" parameter.
10161 (ada_evaluate_subexp): Update.
10162
58785d98
ST
101632019-03-17 Sergei Trofimovich <siarheit@google.com>
10164
10165 * unittests/string_view-selftests.c: Define
10166 _initialize_string_view_selftests unconditionally.
10167
d4cbef22
ВМ
101682019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10169
10170 PR gdb/24350
10171 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10172
fce4c071
ВМ
101732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10174
10175 PR gdb/24351
10176 * windows-nat.c (display_selector): Fix format specifiers.
10177
f7f0a123
EZ
101782019-03-17 Eli Zaretskii <eliz@gnu.org>
10179
10180 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10181 tui_refill_source_window instead of tui_refresh_win, to update the
10182 current execution line. This fixes redisplay of the current line
10183 when stepping through the code with "next" or "step".
10184
ab42892f
EZ
101852019-03-16 Eli Zaretskii <eliz@gnu.org>
10186
10187 * source-cache.c (source_cache::get_source_lines): Call
10188 find_source_lines to initialize s->nlines. This fixes vertical
10189 scrolling of TUI source window when the DOWN arrow is pressed.
10190
8d8c087f
PW
101912019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10192
10193 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10194 linux-thread-db.c (_initialize_thread_db): Likewise.
10195
798e1c30
EZ
101962019-03-16 Eli Zaretskii <eliz@gnu.org>
10197
10198 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10199 wclrtoeol in tui_show_source_line". This reverts changes made in
10200 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10201
eefba3da
TT
102022019-03-15 Tom Tromey <tom@tromey.com>
10203
10204 * symtab.h (struct minimal_symbol): Derive from
10205 general_symbol_info.
10206 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10207 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10208 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10209 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10210 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10211 (MSYMBOL_SEARCH_NAME): Update.
10212 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10213 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10214 * minsyms.c (minimal_symbol_reader::record_full): Update.
10215
0de2420c
TT
102162019-03-15 Tom Tromey <tom@tromey.com>
10217
10218 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10219
042d75e4
TT
102202019-03-15 Tom Tromey <tom@tromey.com>
10221
10222 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10223 unique_xmalloc_ptr.
10224 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10225 Update.
10226 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10227 (build_minimal_symbol_hash_tables)
10228 (minimal_symbol_reader::install): Update.
10229
db92718b
TT
102302019-03-15 Tom Tromey <tom@tromey.com>
10231
10232 * symtab.c (create_demangled_names_hash): Update.
10233 (symbol_set_names): Update.
10234 * objfiles.h (struct objfile_per_bfd_storage)
10235 <demangled_names_hash>: Now an htab_up.
10236 * objfiles.c (objfile_per_bfd_storage): Simplify.
10237
d6797f46
TT
102382019-03-15 Tom Tromey <tom@tromey.com>
10239
10240 * objfiles.h (struct objfile_per_bfd_storage): Declare
10241 destructor.
10242 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10243 New.
10244 (get_objfile_bfd_data): Use new. Don't initialize
10245 language_of_main.
10246 (free_objfile_per_bfd_storage): Remove.
10247 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10248
741d7538
TT
102492019-03-15 Tom Tromey <tom@tromey.com>
10250
10251 * symfile.c (reread_symbols): Update.
10252 * objfiles.c (objfile::objfile): Update.
10253 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10254 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10255 comment.
10256 (minimal_symbol_reader::install): Update.
10257 (terminate_minimal_symbol_table): Remove.
10258 * jit.c (jit_object_close_impl): Update.
10259
788c80d1
TT
102602019-03-15 Tom Tromey <tom@tromey.com>
10261
10262 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10263 initializations.
10264
1b7a07cb
TT
102652019-03-15 Tom Tromey <tom@tromey.com>
10266
10267 * objfiles.h (struct objfile_per_bfd_storage)
10268 <demangled_hash_languages>: Now a bitset.
10269 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10270 (lookup_minimal_symbol): Update.
10271
3db066bc
TT
102722019-03-15 Tom Tromey <tom@tromey.com>
10273
10274 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10275 Don't return the symbol.
10276 * coffread.c (record_minimal_symbol): Use record_full.
10277
3fff2c37
EZ
102782019-03-14 Eli Zaretskii <eliz@gnu.org>
10279
10280 The MS-Windows port of ncurses fails to switch to a color pair if
10281 one or both of the colors are the implicit default colors. This
10282 change records the default colors when TUI is initialized, and
10283 then specifies them explicitly when a color pair uses the default
10284 colors. This allows color styling in TUI mode on MS-Windows.
10285
10286 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10287 ncurses_norm_attr.
10288 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10289 colors in ncurses_norm_attr.
10290 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10291 "none", replace it with the default color recorded in
10292 ncurses_norm_attr.
10293
3b336828
TT
102942019-03-14 Tom Tromey <tromey@adacore.com>
10295
10296 * source-cache.h (class source_cache) <get_source_lines>: Return
10297 std::string.
10298 * source-cache.c (source_cache::extract_lines): Handle case where
10299 first_pos==npos. Return std::string.
10300 (source_cache::get_source_lines): Update.
10301
d085f989
TT
103022019-03-14 Tom Tromey <tromey@adacore.com>
10303
10304 * NEWS: Add item for "style sources" commands.
10305 * source-cache.c (source_cache::get_source_lines): Check
10306 source_styling.
10307 * cli/cli-style.c (source_styling): New global.
10308 (_initialize_cli_style): Add "style sources" commands.
10309 (show_style_sources): New function.
10310 * cli/cli-style.h (source_styling): Declare.
10311
6f11e682
TT
103122019-03-14 Pedro Alves <palves@redhat.com>
10313 Tom Tromey <tromey@adacore.com>
10314
10315 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10316 * tui/tui-winsource.c (tui_refill_source_window): New function,
10317 from...
10318 (tui_horizontal_source_scroll): ... here. Move some logic.
10319 * cli/cli-style.c (set_style_enabled): Notify new observable.
10320 * tui/tui-hooks.c (tui_redisplay_source): New function.
10321 (tui_attach_detach_observers): Attach or detach
10322 tui_redisplay_source.
10323 * observable.h (source_styling_changed): New observable.
10324 * observable.c: Define source_styling_changed observable.
10325
a068643d
TT
103262019-03-13 Tom Tromey <tromey@adacore.com>
10327
10328 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10329 (i386_gnu_nat_target::store_registers): Update.
10330 * target-debug.h (target_debug_print_std_string): New macro.
10331 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10332 * windows-tdep.c (display_one_tib): Update.
10333 * tui/tui-stack.c (tui_make_status_line): Update.
10334 * top.c (print_inferior_quit_action): Update.
10335 * thread.c (thr_try_catch_cmd): Update.
10336 (add_thread_with_info): Update.
10337 (thread_target_id_str): Update.
10338 (thr_try_catch_cmd): Update.
10339 (thread_command): Update.
10340 (thread_find_command): Update.
10341 * record-btrace.c (record_btrace_target::info_record)
10342 (record_btrace_resume_thread, record_btrace_target::resume)
10343 (record_btrace_cancel_resume, record_btrace_step_thread)
10344 (record_btrace_target::wait, record_btrace_target::wait)
10345 (record_btrace_target::wait, record_btrace_target::stop): Update.
10346 * progspace.c (print_program_space): Update.
10347 * process-stratum-target.c
10348 (process_stratum_target::thread_address_space): Update.
10349 * linux-fork.c (linux_fork_mourn_inferior)
10350 (detach_checkpoint_command, info_checkpoints_command)
10351 (linux_fork_context): Update.
10352 (linux_fork_detach): Update.
10353 (class scoped_switch_fork_info): Update.
10354 (delete_checkpoint_command): Update.
10355 * infrun.c (follow_fork_inferior): Update.
10356 (follow_fork_inferior): Update.
10357 (proceed_after_vfork_done): Update.
10358 (handle_vfork_child_exec_or_exit): Update.
10359 (follow_exec): Update.
10360 (displaced_step_prepare_throw): Update.
10361 (displaced_step_restore): Update.
10362 (start_step_over): Update.
10363 (resume_1): Update.
10364 (clear_proceed_status_thread): Update.
10365 (proceed): Update.
10366 (print_target_wait_results): Update.
10367 (do_target_wait): Update.
10368 (context_switch): Update.
10369 (stop_all_threads): Update.
10370 (restart_threads): Update.
10371 (finish_step_over): Update.
10372 (handle_signal_stop): Update.
10373 (switch_back_to_stepped_thread): Update.
10374 (keep_going_pass_signal): Update.
10375 (print_exited_reason): Update.
10376 (normal_stop): Update.
10377 * inferior.c (inferior_pid_to_str): Change return type.
10378 (print_selected_inferior): Update.
10379 (add_inferior): Update.
10380 (detach_inferior): Update.
10381 * dummy-frame.c (fprint_dummy_frames): Update.
10382 * dcache.c (dcache_info_1): Update.
10383 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10384 (btrace_fetch, btrace_clear): Update.
10385 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10386 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10387 type.
10388 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10389 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10390 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10391 * gdbarch.c, gdbarch.h: Rebuild.
10392 * gdbarch.sh (core_pid_to_str): Change return type.
10393 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10394 return type.
10395 (windows_nat_target::pid_to_str): Change return type.
10396 (windows_delete_thread): Update.
10397 (windows_nat_target::attach): Update.
10398 (windows_nat_target::files_info): Update.
10399 * target-delegates.c: Rebuild.
10400 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10401 return type.
10402 (sol_thread_target::pid_to_str): Change return type.
10403 * remote.c (class remote_target) <pid_to_str>: Change return
10404 type.
10405 (remote_target::pid_to_str): Change return type.
10406 (extended_remote_target::attach, remote_target::remote_stop_ns)
10407 (remote_target::remote_notif_remove_queued_reply)
10408 (remote_target::push_stop_reply, remote_target::disable_btrace):
10409 Update.
10410 (extended_remote_target::attach): Update.
10411 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10412 type.
10413 (gdbsim_target::pid_to_str): Change return type.
10414 * ravenscar-thread.c (struct ravenscar_thread_target)
10415 <pid_to_str>: Change return type.
10416 (ravenscar_thread_target::pid_to_str): Change return type.
10417 * procfs.c (class procfs_target) <pid_to_str>: Change return
10418 type.
10419 (procfs_target::pid_to_str): Change return type.
10420 (procfs_target::attach): Update.
10421 (procfs_target::detach): Update.
10422 (procfs_target::fetch_registers): Update.
10423 (procfs_target::store_registers): Update.
10424 (procfs_target::wait): Update.
10425 (procfs_target::files_info): Update.
10426 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10427 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10428 return type.
10429 (nto_procfs_target::pid_to_str): Change return type.
10430 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10431 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10432 return type.
10433 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10434 (exit_lwp): Update.
10435 (attach_proc_task_lwp_callback, get_detach_signal)
10436 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10437 (linux_nat_target::resume, wait_lwp, stop_callback)
10438 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10439 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10440 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10441 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10442 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10443 type.
10444 (inf_ptrace_target::attach): Update.
10445 (inf_ptrace_target::files_info): Update.
10446 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10447 type.
10448 (go32_nat_target::pid_to_str): Change return type.
10449 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10450 (gnu_nat_target::wait): Update.
10451 (gnu_nat_target::wait): Update.
10452 (gnu_nat_target::resume): Update.
10453 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10454 (fbsd_nat_target::wait): Update.
10455 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10456 type.
10457 (darwin_nat_target::attach): Update.
10458 * corelow.c (class core_target) <pid_to_str>: Change return type.
10459 (core_target::pid_to_str): Change return type.
10460 * target.c (normal_pid_to_str): Change return type.
10461 (default_pid_to_str): Likewise.
10462 (target_pid_to_str): Change return type.
10463 (target_translate_tls_address): Update.
10464 (target_announce_detach): Update.
10465 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10466 return type.
10467 (bsd_uthread_target::pid_to_str): Change return type.
10468 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10469 type.
10470 (bsd_kvm_target::pid_to_str): Change return type.
10471 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10472 return type.
10473 (aix_thread_target::pid_to_str): Change return type.
10474 * target.h (struct target_ops) <pid_to_str>: Change return type.
10475 (target_pid_to_str, normal_pid_to_str): Likewise.
10476 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10477 type.
10478 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10479 type.
10480 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10481 return type.
10482 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10483 type.
10484 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10485 type.
10486 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10487 return type.
10488
b4be1b06
SM
104892019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10490
10491 * NEWS: Mention that the new default MI version is 3. Mention
10492 changes to the output of commands and events that deal with
10493 multi-location breakpoints.
10494 * breakpoint.c: Include "mi/mi-out.h".
10495 (print_one_breakpoint): Change output syntax if using MI version
10496 >= 3.
10497 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10498 New.
10499 (mi_multi_location_breakpoint_output_fixed): New.
10500 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10501 (mi_cmd_fix_multi_location_breakpoint_output): New.
10502 (mi_multi_location_breakpoint_output_fixed): New.
10503 * mi/mi-cmds.c (mi_cmds): Register command
10504 -fix-multi-location-breakpoint-output.
10505 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10506 interpreter "mi".
10507
8e5e5494
SM
105082019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10509
10510 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10511 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10512 instantiate mi_ui_out based on interpreter name.
10513 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10514 * mi/mi-main.c (mi_load_progress): Likewise.
10515
197df35e
JB
105162019-03-12 John Baldwin <jhb@FreeBSD.org>
10517
10518 * NEWS: Combine separate "New targets" sections for 8.3.
10519
8399425f
JB
105202019-03-12 John Baldwin <jhb@FreeBSD.org>
10521
10522 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10523 (ppcfbsd_init_abi): Install gdbarch
10524 "fetch_tls_load_module_address" and "get_thread_local_address"
10525 methods.
10526
b0f87ed0
JB
105272019-03-12 John Baldwin <jhb@FreeBSD.org>
10528
10529 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10530 (riscv_fbsd_init_abi): Install gdbarch
10531 "fetch_tls_load_module_address" and "get_thread_local_address"
10532 methods.
10533
ce25aa57
JB
105342019-03-12 John Baldwin <jhb@FreeBSD.org>
10535
10536 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10537 (i386fbsd_init_abi): Install gdbarch
10538 "fetch_tls_load_module_address" and "get_thread_local_address"
10539 methods.
10540
f5424cfa
JB
105412019-03-12 John Baldwin <jhb@FreeBSD.org>
10542
10543 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10544 (amd64fbsd_init_abi): Install gdbarch
10545 "fetch_tls_load_module_address" and "get_thread_local_address"
10546 methods.
10547
945f3901
JB
105482019-03-12 John Baldwin <jhb@FreeBSD.org>
10549
10550 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10551 (struct fbsd_pspace_data): New type.
10552 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10553 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10554 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10555 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10556 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10557
ef0bd204
JB
105582019-03-12 John Baldwin <jhb@FreeBSD.org>
10559
10560 * gdbtypes.c (lookup_struct_elt): New function.
10561 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10562 * gdbtypes.h (struct struct_elt): New type.
10563 (lookup_struct_elt): New prototype.
10564
36c53a02
JB
105652019-03-12 John Baldwin <jhb@FreeBSD.org>
10566
10567 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10568 remove disabled code block.
10569
6e056c81
JB
105702019-03-12 John Baldwin <jhb@FreeBSD.org>
10571
10572 * gdbarch.sh (get_thread_local_address): New method.
10573 * gdbarch.h, gdbarch.c: Regenerate.
10574 * target.c (target_translate_tls_address): Use
10575 gdbarch_get_thread_local_address if present instead of
10576 target::get_thread_local_address.
10577
cd250a18
JB
105782019-03-12 John Baldwin <jhb@FreeBSD.org>
10579
10580 * target.h (target::get_thread_local_address): Update comment.
10581
df22c1e5
JB
105822019-03-12 John Baldwin <jhb@FreeBSD.org>
10583
10584 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10585 objfile->separate_debug_objfile_backlink if not NULL.
10586
dd6876c9
JB
105872019-03-12 John Baldwin <jhb@FreeBSD.org>
10588
10589 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10590 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10591 (amd64bsd_store_inferior_registers): Likewise.
10592 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10593 Enable segment base registers.
10594 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10595 PT_GETFSBASE and PT_GETGSBASE.
10596 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10597 PT_SETGSBASE.
10598 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10599 segment base registers.
10600 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10601
1163a4b7
JB
106022019-03-12 John Baldwin <jhb@FreeBSD.org>
10603
10604 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10605 Update calls to i386_target_description to add 'segments'
10606 parameter.
10607 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10608 add segment base registers.
10609 * arch/i386.c (i386_create_target_description): Add 'segments'
10610 parameter to enable segment base registers.
10611 * arch/i386.h (i386_create_target_description): Likewise.
10612 * features/i386/32bit-segments.xml: New file.
10613 * features/i386/32bit-segments.c: Generate.
10614 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10615 call to i386_target_description to add 'segments' parameter.
10616 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10617 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10618 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10619 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10620 if feature is present.
10621 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10622 Add 'segments' parameter to call to i386_target_description.
10623 (i386_target_description): Add 'segments' parameter to enable
10624 segment base registers.
10625 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10626 to call to i386_target_description.
10627 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10628 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10629 Define I386_NUM_REGS.
10630 (i386_target_description): Add 'segments' parameter to enable
10631 segment base registers.
10632
3a350822
EZ
106332019-03-12 Eli Zaretskii <eliz@gnu.org>
10634
10635 PR/24325
10636 * source-cache.c: #undef open and close, to avoid unresolved
10637 externals during linking.
10638
ffdd69cf
TT
106392019-03-12 Tom Tromey <tromey@adacore.com>
10640
10641 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10642 const. Add initializers.
10643 (_initialize_remote): Don't initialize ptid globals.
10644
ec148c57
PA
106452019-03-12 Pedro Alves <palves@redhat.com>
10646
10647 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10648
32764270
PA
106492019-03-12 Pedro Alves <palves@redhat.com>
10650
10651 * cp-name-parser.y (main): Remove unused 'len' variable.
10652
17547186
TT
106532019-03-12 Tom Tromey <tromey@adacore.com>
10654
10655 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10656 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10657
d3a70e03
TT
106582019-03-12 Tom Tromey <tromey@adacore.com>
10659
10660 * linux-nat.c (iterate_over_lwps): Update.
10661 (stop_callback): Remove parameter.
10662 (stop_wait_callback, detach_callback, resume_set_callback)
10663 (select_singlestep_lwp_callback, set_ignore_sigint)
10664 (status_callback, resumed_callback, resume_clear_callback)
10665 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10666 data parameter.
10667 (linux_nat_target::detach, linux_nat_target::resume)
10668 (linux_stop_and_wait_all_lwps, select_event_lwp)
10669 (linux_nat_filter_event, linux_nat_wait_1)
10670 (linux_nat_target::kill, linux_nat_target::stop)
10671 (linux_nat_target::stop): Update.
10672 (linux_nat_resume_callback): Change type.
10673 (resume_stopped_resumed_lwps, count_events_callback)
10674 (select_event_lwp_callback): Likewise.
10675 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10676 * arm-linux-nat.c (struct update_registers_data): Remove.
10677 (update_registers_callback): Change type.
10678 (arm_linux_insert_hw_breakpoint1): Update.
10679 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10680 parameter.
10681 (x86_linux_dr_set_addr): Update.
10682 (x86_linux_dr_set_control): Update.
10683 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10684 (iterate_over_lwps): Use gdb::function_view.
10685 * nat/aarch64-linux-hw-point.c (struct
10686 aarch64_dr_update_callback_param): Remove.
10687 (debug_reg_change_callback): Change type.
10688 (aarch64_notify_debug_reg_change): Update.
10689 * s390-linux-nat.c (s390_refresh_per_info): Update.
10690
82cb27ff
TT
106912019-03-11 Tom Tromey <tromey@adacore.com>
10692
10693 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10694 redundant assignment to "this_cu".
10695
568c0683
SM
106962019-03-08 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10699
f09ce22d
SM
107002019-03-08 Simon Marchi <simon.marchi@efficios.com>
10701
10702 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10703 from...
10704 (rank_one_type): ... this.
10705
595f96a9
SM
107062019-03-08 Simon Marchi <simon.marchi@efficios.com>
10707
10708 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10709 from...
10710 (rank_one_type): ... this.
10711
2598a94b
SM
107122019-03-08 Simon Marchi <simon.marchi@efficios.com>
10713
10714 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10715 from...
10716 (rank_one_type): ... this.
10717
7f17b20d
SM
107182019-03-08 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10721 from...
10722 (rank_one_type): ... this.
10723
2c509035
SM
107242019-03-08 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10727 from...
10728 (rank_one_type): ... this.
10729
0dd322dc
SM
107302019-03-08 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10733 from...
10734 (rank_one_type): ... this.
10735
41ea4728
SM
107362019-03-08 Simon Marchi <simon.marchi@efficios.com>
10737
10738 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10739 from...
10740 (rank_one_type): ... this.
10741
793cd1d2
SM
107422019-03-08 Simon Marchi <simon.marchi@efficios.com>
10743
10744 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10745 from...
10746 (rank_one_type): ... this.
10747
34910087
SM
107482019-03-08 Simon Marchi <simon.marchi@efficios.com>
10749
10750 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10751 from...
10752 (rank_one_type): ... this.
10753
f1f832d6
SM
107542019-03-08 Simon Marchi <simon.marchi@efficios.com>
10755
10756 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10757 from...
10758 (rank_one_type): ... this.
10759
b9f4512f
SM
107602019-03-08 Simon Marchi <simon.marchi@efficios.com>
10761
10762 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10763 from...
10764 (rank_one_type): ... this.
10765
9293fc63
SM
107662019-03-08 Simon Marchi <simon.marchi@efficios.com>
10767
10768 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10769 from...
10770 (rank_one_type): ... this.
10771
e3abbe7e
PW
107722019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10773
10774 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10775 inferior-events' shows the example events.
10776
e4adb939
EZ
107772019-03-08 Eli Zaretskii <eliz@gnu.org>
10778
10779 Support styling on native MS-Windows console
10780
10781 PR/24315
10782 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10783 on MS-Windows if $TERM is not defined.
10784
10785 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10786
10787 * posix-hdep.c (gdb_console_fputs):
10788 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10789 functions.
10790 * ui-file.h (gdb_console_fputs): Add prototype.
10791
10792 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10793 back to fputs only if the former returns zero.
10794
25629dfd
TT
107952019-03-07 Tom Tromey <tom@tromey.com>
10796
10797 * symmisc.c (print_symbol_bcache_statistics): Update.
10798 (print_objfile_statistics): Update.
10799 * symfile.c (allocate_symtab): Update.
10800 * stabsread.c: Don't include bcache.h.
10801 * psymtab.h (struct psymbol_bcache): Don't declare.
10802 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10803 (psymbol_bcache_init, psymbol_bcache_free)
10804 (psymbol_bcache_get_bcache): Don't declare.
10805 * psymtab.c (struct psymbol_bcache): Remove.
10806 (psymtab_storage::psymtab_storage): Update.
10807 (psymtab_storage::~psymtab_storage): Update.
10808 (psymbol_bcache_init, psymbol_bcache_free)
10809 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10810 (add_psymbol_to_bcache): Update.
10811 (allocate_psymtab): Update.
10812 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10813 macro_cache>: No longer pointers.
10814 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10815 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10816 * macrotab.c (macro_bcache): Update.
10817 * macroexp.c: Don't include bcache.h.
10818 * gdbtypes.c (check_types_worklist): Update.
10819 (types_deeply_equal): Remove TRY/CATCH. Update.
10820 * elfread.c (elf_symtab_read): Update.
10821 * dwarf2read.c: Don't include bcache.h.
10822 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10823 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10824 (print_bcache_statistics, bcache_memory_used): Don't declare.
10825 (struct bcache): Move from bcache.c. Add constructor, destructor,
10826 methods. Rename all data members.
10827 * bcache.c (struct bcache): Move to bcache.h.
10828 (bcache::expand_hash_table): Rename from expand_hash_table.
10829 (bcache): Remove.
10830 (bcache::insert): Rename from bcache_full.
10831 (bcache::compare): Rename from bcache_compare.
10832 (bcache_xmalloc): Remove.
10833 (bcache::~bcache): Rename from bcache_xfree.
10834 (bcache::print_statistics): Rename from print_bcache_statistics.
10835 (bcache::memory_used): Rename from bcache_memory_used.
10836
fe726667
PA
108372019-03-07 Pedro Alves <palves@redhat.com>
10838
10839 * infrun.c (normal_stop): Also check for
10840 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10841
7584bb30
AB
108422019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * f-lang.c (value_from_host_double): Moved to...
10845 * value.c (value_from_host_double): ...here.
10846 * value.h (value_from_host_double): Declare.
10847 * guile/scm-math.c (vlscm_convert_typed_number): Use
10848 value_from_host_double.
10849 (vlscm_convert_number): Likewise.
10850 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10851 * python/py-value.c (convert_value_from_python): Likewise.
10852
a7b1986e
TT
108532019-03-06 Tom Tromey <tom@tromey.com>
10854
10855 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10856
0ccf4211
TT
108572019-03-06 Tom Tromey <tom@tromey.com>
10858
10859 * utils.h (free_current_contents): Don't declare.
10860 * utils.c (free_current_contents): Remove.
10861
fe7b42e5
TT
108622019-03-06 Tom Tromey <tom@tromey.com>
10863
10864 * top.c (quit_force): Update.
10865 * main.c (captured_command_loop): Update.
10866 * common/new-op.c (operator new): Update.
10867 * common/common-exceptions.c (struct catcher)
10868 <save_cleanup_chain>: Remove member.
10869 (exceptions_state_mc_init): Update.
10870 (exception_try_scope_entry): Return nullptr.
10871 (exception_try_scope_exit, exception_rethrow)
10872 (throw_exception_sjlj, throw_exception_cxx): Update.
10873 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10874 (all_cleanups, do_cleanups, discard_cleanups)
10875 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10876 (restore_cleanups, restore_final_cleanups): Don't declare.
10877 (do_final_cleanups): Remove parameter.
10878 * common/cleanups.c (cleanup_chain, make_cleanup)
10879 (make_cleanup_dtor, all_cleanups, do_cleanups)
10880 (discard_my_cleanups, discard_cleanups)
10881 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10882 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10883 (null_cleanup): Remove.
10884 (do_final_cleanups): Remove parameter.
10885
c6321f19
TT
108862019-03-06 Tom Tromey <tom@tromey.com>
10887
10888 * remote.c (remote_target::remote_parse_stop_reply): Use
10889 unique_xmalloc_ptr.
10890
61b30099
TT
108912019-03-06 Tom Tromey <tom@tromey.com>
10892
10893 * stabsread.c (struct stabs_field_info): Rename from field_info.
10894 <list, fnlist>: Add initializers.
10895 <obstack>: New member.
10896 (read_member_functions, read_struct_fields, read_baseclasses):
10897 Allocate on obstack. Don't use cleanups.
10898 (read_one_struct_field, read_member_functions, read_struct_fields)
10899 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10900 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10901 (read_struct_type): Update.
10902
6cceac94
TT
109032019-03-06 Tom Tromey <tom@tromey.com>
10904
10905 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10906 * common/filestuff.h (make_cleanup_close): Don't declare.
10907 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10908 Remove.
10909
72412762
TT
109102019-03-06 Tom Tromey <tom@tromey.com>
10911
10912 * solib-aix.c: Use make_scope_exit.
10913
2b6ff1c0
TT
109142019-03-06 Tom Tromey <tom@tromey.com>
10915
10916 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10917 Use make_scope_exit.
10918
d01c5877
TT
109192019-03-06 Tom Tromey <tom@tromey.com>
10920
10921 * solib-svr4.c (disable_probes_interface): Remove parameter.
10922 (svr4_handle_solib_event): Use make_scope_exit.
10923
32603266
TT
109242019-03-06 Tom Tromey <tom@tromey.com>
10925
10926 * remote.c (struct stop_reply_deleter): Remove.
10927 (stop_reply_up): Update.
10928 (struct stop_reply): Derive from notif_event. Don't typedef.
10929 <regcache>: Now a std::vector.
10930 (stop_reply_xfree): Remove.
10931 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10932 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10933 (remote_target::discard_pending_stop_replies): Use delete.
10934 (remote_target::remote_parse_stop_reply): Update.
10935 (remote_target::process_stop_reply): Update.
10936 * remote-notif.h (struct notif_event): Add virtual destructor.
10937 Remove "dtr" member.
10938 (struct notif_client) <alloc_event>: Return a unique_ptr.
10939 (notif_event_xfree): Don't declare.
10940 (notif_event_up): New typedef.
10941 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10942 (notif_event_xfree, do_notif_event_xfree): Remove.
10943 (remote_notif_state_xfree): Update.
10944
9799571e
TT
109452019-03-06 Tom Tromey <tom@tromey.com>
10946
10947 * infrun.c (displaced_step_clear_cleanup): Now a
10948 forward_scope_exit type.
10949 (displaced_step_prepare_throw): Update.
10950 (displaced_step_fixup): Update.
10951
09e3c4ca
TT
109522019-03-06 Tom Tromey <tom@tromey.com>
10953
10954 * inferior.h (class inferior): Update comment.
10955 * gdbthread.h (class thread_info): Update comment.
10956
e2a03548
TT
109572019-03-06 Joel Brobecker <brobecker@adacore.com>
10958 Tom Tromey <tom@tromey.com>
10959
10960 * stabsread.h (struct stab_section_list): Remove.
10961 (coffstab_build_psymtabs): Update.
10962 * dbxread.c (symbuf_sections): Now a std::vector.
10963 (sect_idx): New global.
10964 (fill_symbuf): Update.
10965 (coffstab_build_psymtabs): Change type of stabsects parameter.
10966 Update.
10967 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10968 std::vector.
10969 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10970 (coff_locate_sections): Update.
10971 (coff_symfile_read): Remove cleanups. Update.
10972 (init_stringtab): Add storage parameter.
10973 (free_stringtab, free_stringtab_cleanup): Remove.
10974 (init_lineno): Add storage parameter.
10975 (free_linetab, free_linetab_cleanup): Remove.
10976
b7e60d85
PA
109772019-03-06 Pedro Alves <palves@redhat.com>
10978
10979 * linux-fork.c (fork_info::clobber_regs): Delete.
10980 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10981 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10982 comment. Adjust.
10983 (scoped_switch_fork_info::scoped_switch_fork_info)
10984 (checkpoint_command, linux_fork_context): Adjust
10985 fork_save_infrun_state calls.
10986
e52c971f
PA
109872019-03-06 Pedro Alves <palves@redhat.com>
10988
10989 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10990 (inf_has_multiple_threads): Return 'bool' and rewrite using
10991 inferior_info::threads().
10992
06974e6c
PA
109932019-03-06 Pedro Alves <palves@redhat.com>
10994
10995 * linux-fork.c: Include <list>.
10996 (fork_list): Now a std::list instance.
10997 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10998 (forks_exist_p, find_last_fork): Adjust.
10999 (new_fork): Delete.
11000 (one_fork_p): New.
11001 (add_fork): Adjust.
11002 (free_fork): Delete, folded into fork_info::~fork_info().
11003 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11004 Adjust.
11005 (init_fork_list): Delete.
11006 (linux_fork_killall, linux_fork_mourn_inferior)
11007 (linux_fork_detach, info_checkpoints_command): Adjust.
11008 (_initialize_linux_fork): No longer call init_fork_list.
11009
72f31aea
PA
110102019-03-06 Pedro Alves <palves@redhat.com>
11011
11012 * linux-fork.c (new_fork): New, split out of ...
11013 (add_fork): ... this. Return void. Move "first fork" special
11014 case from here, to ...
11015 (checkpoint_command): ... here.
11016 * linux-linux.h (add_fork): Return void.
11017
efbecbc1
AB
110182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11019
11020 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11021
0841c79a
AB
110222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11023 Chris January <chris.january@arm.com>
11024 David Lecomber <david.lecomber@arm.com>
11025
11026 * f-exp.y: New token, UNOP_INTRINSIC.
11027 (exp): New pattern using UNOP_INTRINSIC token.
11028 (f77_keywords): Add 'abs' keyword.
11029 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11030 (value_from_host_double): New function.
11031 (evaluate_subexp_f): Support UNOP_ABS.
11032
4a270568
AB
110332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11034
11035 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11036 types.
11037
067630bd
AB
110382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11039
11040 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11041 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11042 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11043
3be47f7a
AB
110442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11047
4d00f5d8
AB
110482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11049 Chris January <chris.january@arm.com>
11050
11051 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11052 * f-exp.y: Define 'KIND' token.
11053 (exp): New pattern for KIND expressions.
11054 (ptype): Handle types with a kind extension.
11055 (direct_abs_decl): Extend to spot kind extensions.
11056 (f77_keywords): Add 'kind' to the list.
11057 (push_kind_type): New function.
11058 (convert_to_kind_type): New function.
11059 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11060 * parse.c (operator_length_standard): Likewise.
11061 * parser-defs.h (enum type_pieces): Add tp_kind.
11062 * std-operator.def: Add UNOP_KIND.
11063
e454224f
AB
110642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11065
11066 * f-exp.y (f_parse): Set yydebug.
11067
9dad4a58
AB
110682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11069
11070 * f-lang.c (evaluate_subexp_f): New function.
11071 (exp_descriptor_f): New global.
11072 (f_language_defn): Use exp_descriptor_f instead of
11073 exp_descriptor_standard.
11074
c8f91604
AB
110752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11076
11077 * f-exp.y (struct token): Add comments.
11078 (dot_ops): Remove uppercase versions and the end marker.
11079 (f77_keywords): Likewise.
11080 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11081 entries in the dot_ops array are case insensitive, and use
11082 strncasecmp to compare strings. Also some whitespace cleanup in
11083 this area. Similar for the f77_keywords array, except entries in
11084 this list might be case sensitive.
11085
dd9f2c76
AB
110862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11087
11088 * f-exp.y (struct f77_boolean_val): Add comments.
11089 (boolean_values): Remove uppercase versions, and end marker.
11090 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11091 and use strncasecmp to achieve case insensitivity. Additionally,
11092 perform whitespace cleanup around this code.
11093
67a3048c
TT
110942019-03-06 Tom Tromey <tromey@adacore.com>
11095
11096 * remote-sim.c (gdbsim_target_open): Use result of
11097 gdb_argv::release.
11098
aa3cfbda
RB
110992019-03-06 Richard Bunt <richard.bunt@arm.com>
11100 Dirk Schubert <dirk.schubert@arm.com>
11101 Chris January <chris.january@arm.com>
11102
11103 * eval.c (evaluate_subexp_standard): Call Fortran argument
11104 wrapping logic.
11105 * f-lang.c (struct value): A value which can be passed into a
11106 Fortran function call.
11107 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11108 where appropriate.
11109 (struct type): Value ready for a Fortran function call.
11110 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11111 is needed.
11112 * f-lang.h (fortran_argument_convert): Declaration.
11113 (fortran_preserve_arg_pointer): Declaration.
11114 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11115
ea38e5df
TT
111162019-03-05 Tom Tromey <tromey@adacore.com>
11117
11118 * python/py-prettyprint.c (print_string_repr): Remove #if.
11119 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11120
06b5b831
TT
111212019-03-05 Tom Tromey <tromey@adacore.com>
11122
11123 * target.c (the_dummy_target): Move later. Change type to
11124 "dummy_target".
11125 (initialize_targets): Don't initialize the_dummy_target.
11126
edbd9e45
TT
111272019-03-05 Tom Tromey <tromey@adacore.com>
11128
11129 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11130 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11131
c119e040
TT
111322019-03-05 Tom Tromey <tromey@adacore.com>
11133
11134 * windows-nat.c (windows_nat_target::attach)
11135 (windows_nat_target::detach): Don't call gdb_flush.
11136 * valprint.c (generic_val_print, val_print, val_print_string):
11137 Don't call gdb_flush.
11138 * utils.c (defaulted_query): Don't call gdb_flush.
11139 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11140 * target.c (target_announce_detach): Don't call gdb_flush.
11141 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11142 * remote.c (extended_remote_target::attach): Don't call
11143 gdb_flush.
11144 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11145 * printcmd.c (do_examine): Don't call gdb_flush.
11146 (info_display_command): Don't call gdb_flush.
11147 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11148 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11149 * memattr.c (info_mem_command): Don't call gdb_flush.
11150 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11151 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11152 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11153 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11154 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11155 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11156 (gnu_nat_target::detach): Don't call gdb_flush.
11157 * f-valprint.c (f_val_print): Don't call gdb_flush.
11158 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11159 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11160 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11161 gdb_flush.
11162 * c-valprint.c (c_val_print): Don't call gdb_flush.
11163 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11164
895dafa6
TT
111652019-03-05 Tom Tromey <tromey@adacore.com>
11166
11167 * varobj.c (update_dynamic_varobj_children): Update.
11168 (install_default_visualizer): Use reset, not release.
11169 * value.c (set_internalvar): Update.
11170 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11171 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11172 ATTRIBUTE_UNUSED_RESULT.
11173
88a774b9
TT
111742019-03-05 Tom Tromey <tromey@adacore.com>
11175
11176 * remote.c (class scoped_remote_fd) <release>: Add
11177 ATTRIBUTE_UNUSED_RESULT.
11178
4e4a8b93
TT
111792019-03-05 Tom Tromey <tromey@adacore.com>
11180
11181 * macroexp.c (struct macro_buffer) <release>: Add
11182 ATTRIBUTE_UNUSED_RESULT.
11183
083eef1f
TT
111842019-03-05 Tom Tromey <tromey@adacore.com>
11185
11186 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11187 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11188 ATTRIBUTE_UNUSED_RESULT.
11189
3cabd438
TT
111902019-03-05 Tom Tromey <tromey@adacore.com>
11191
11192 * common/scoped_fd.h (class scoped_fd) <release>: Add
11193 ATTRIBUTE_UNUSED_RESULT.
11194
41e3300a
TT
111952019-03-05 Tom Tromey <tromey@adacore.com>
11196
11197 * parser-defs.h (struct parser_state) <release>: Add
11198 ATTRIBUTE_UNUSED_RESULT.
11199
18cb7c9f
TT
112002019-03-05 Tom Tromey <tromey@adacore.com>
11201
11202 * utils.h (class gdb_argv) <release>: Add
11203 ATTRIBUTE_UNUSED_RESULT.
11204 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11205
41fa577f
EZ
112062019-03-02 Eli Zaretskii <eliz@gnu.org>
11207
a6a4b2c6
EZ
11208 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11209 for-loop range, to avoid compiler warnings.
11210
11211 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11212 avoid compiler warnings about unused variables.
11213
742a7df5
EZ
11214 * NEWS: Mention end of support for native debugging on MS-Windows
11215 before XP.
11216
41fa577f
EZ
11217 PR gdb/24292
11218 * common/netstuff.c:
11219 * gdbserver/gdbreplay.c
11220 * gdbserver/remote-utils.c:
11221 * ser-tcp.c:
11222 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11223 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11224 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11225 'getaddrinfo' and 'freeaddrinfo' were not available before
11226 Windows XP, and mingw.org's MinGW headers by default define
11227 _WIN32_WINNT to 0x500.
11228
827f438f
GB
112292019-03-01 Gary Benson <gbenson@redhat.com>
11230
11231 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11232
92137da0
RO
112332019-02-28 Brian Vandenberg <phantall@gmail.com>
11234 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11235
11236 PR gdb/8527
11237 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11238 set_sigint_trap, clear_sigint_trap.
11239
799efbe8
PW
112402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11241
11242 * target.c (target_detach): Clear the regcache and the
11243 frame cache.
11244
8ed25214
PA
112452019-02-27 Pedro Alves <palves@redhat.com>
11246
11247 * utils.c (set_screen_size): When we cap the height/width sizes,
11248 tweak the corresponding command variable to show "unlimited":
11249
23031e31
SJ
112502019-02-27 Saagar Jha <saagar@saagarjha.com>
11251 Pedro Alves <palves@redhat.com>
11252
11253 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11254 before calling rl_set_screen_size.
11255
6c28e44a
TT
112562019-02-27 Tom Tromey <tromey@adacore.com>
11257
11258 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11259 define.
11260 * python/py-value.c: Remove Python 2.4 workaround.
11261 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11262 workaround.
11263 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11264 Python 2.4 workaround.
11265 * python/python-internal.h: Remove Python 2.4 comment.
11266 (Py_ssize_t): Don't define.
11267 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11268 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11269 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11270 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11271 * python/python.c (do_start_initialization): Remove Python 2.4
11272 workaround.
11273 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11274 (print_children): Remove Python 2.4 workaround.
11275 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11276 workaround.
11277 (CHARBUFFERPROC_NAME): Remove.
11278 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11279 Python 2.4 workaround.
11280
2c3fc25d 112812019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11282
2c3fc25d
KB
11283 * NEWS: Note minimum Python version.
11284
6ca62222
KB
112852019-02-27 Kevin Buettner <kevinb@redhat.com>
11286
11287 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11288 code from these functions. Remove corresponding ifdefs. Use
11289 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11290 Remove gotos and target of gotos.
11291 (infpy_search_memory): Likewise.
11292
f4bc7d2c
AB
112932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11294
11295 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11296 (hppa_gdbarch_init): Don't register deleted functions with
11297 gdbarch.
11298
9734a586
AB
112992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11300
11301 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11302 (h8300_unwind_sp): Delete.
11303 (h8300_dummy_id): Delete.
11304 (h8300_gdbarch_init): Don't register deleted functions with
11305 gdbarch.
11306
68b867f3
AB
113072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11310 (ft32_unwind_pc): Delete.
11311 (ft32_unwind_sp): Delete.
11312 (ft32_gdbarch_init): Don't register deleted functions with
11313 gdbarch.
11314
2fbe7ad0
AB
113152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11318 (frv_unwind_pc): Delete.
11319 (frv_unwind_sp): Delete.
11320 (frv_gdbarch_init): Don't register deleted functions with
11321 gdbarch.
11322
76055cbe
AB
113232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11326 (riscv_unwind_pc): Delete.
11327 (riscv_unwind_sp): Delete.
11328 (riscv_gdbarch_init): Don't register deleted functions with
11329 gdbarch.
11330
4133e5a1
AB
113312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11332
11333 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11334 (csky_unwind_pc): Delete.
11335 (csky_unwind_sp): Delete.
11336 (csky_gdbarch_init): Don't register deleted functions with
11337 gdbarch.
11338
8010f576
AB
113392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11340
11341 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11342 (cris_unwind_pc): Delete.
11343 (cris_unwind_sp): Delete.
11344 (cris_gdbarch_init): Don't register deleted functions with
11345 gdbarch.
11346
b56bf084
AB
113472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11348
11349 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11350 (bfin_unwind_pc): Delete.
11351 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11352
a19a650f
AB
113532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11356 (arm_unwind_pc): Delete.
11357 (arm_unwind_sp): Delete.
11358 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11359
f8278c3c
AB
113602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11361
11362 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11363 (arc_unwind_pc): Delete.
11364 (arc_unwind_sp): Delete.
11365 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11366
480e46cf
AB
113672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11370 (alpha_unwind_pc): Delete.
11371 (alpha_gdbarch_init): Don't register deleted functions with
11372 gdbarch.
11373
7a995095
AB
113742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11375
11376 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11377 (aarch64_unwind_pc): Delete.
11378 (aarch64_unwind_sp): Delete.
11379 (aarch64_gdbarch_init): Don't register deleted functions with
11380 gdbarch.
11381
bf9a735e
AB
113822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11383
11384 * gdbtypes.c (type_align): Don't consider static members when
11385 computing structure alignment.
11386
5561fc30
AB
113872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11388
11389 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11390 return 0 for other types.
11391 * arch-utils.c (default_type_align): Always return 0.
11392 * gdbarch.h: Regenerate.
11393 * gdbarch.sh (type_align): Extend comment.
11394 * gdbtypes.c (type_align): Add additional comments, always call
11395 gdbarch_type_align before applying the default rules.
11396 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11397 generic code will then apply a suitable default.
11398 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11399 types, return 0 for other types.
11400
9335e75a
JB
114012019-02-27 Joel Brobecker <brobecker@adacore.com>
11402
11403 * NEWS: Create a new section for the next release branch.
11404 Rename the section of the current branch, now that it has
11405 been cut.
11406
3d34d8de
JB
114072019-02-27 Joel Brobecker <brobecker@adacore.com>
11408
11409 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11410 * version.in: Bump version to 8.3.50.DATE-git.
11411
143420fb
SM
114122019-02-26 Simon Marchi <simon.marchi@efficios.com>
11413
11414 * aix-thread.c (ptid_cmp): Remove unused variable.
11415 (get_signaled_thread): Likewise.
11416 (store_regs_user_thread): Likewise.
11417 (store_regs_kernel_thread): Likewise.
11418 (fetch_regs_kernel_thread): Remove shadowed variable.
11419
172fb711
AB
114202019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11421
11422 * features/riscv/32bit-cpu.xml: Add register numbers.
11423 * features/riscv/32bit-fpu.c: Regenerate.
11424 * features/riscv/32bit-fpu.xml: Add register numbers.
11425 * features/riscv/64bit-cpu.xml: Add register numbers.
11426 * features/riscv/64bit-fpu.c: Regenerate.
11427 * features/riscv/64bit-fpu.xml: Add register numbers.
11428
26c89782
KB
114292019-02-26 Kevin Buettner <kevinb@redhat.com>
11430
af54ade9 11431 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11432 * python/py-value.c (convert_buffer_and_type_to_value): New
11433 function.
11434 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11435 Add support for handling an optional second argument. Call
11436 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11437 * python/python-internal.h (Py_buffer_deleter): New struct.
11438 (Py_buffer_up): New typedef.
11439
0f58c9e8
JB
114402019-02-25 John Baldwin <jhb@FreeBSD.org>
11441
11442 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11443 instead of releasing ownership.
11444
0a0f4c01
JR
114452019-02-25 Jordan Rupprecht <rupprecht@google.com>
11446
11447 * dwarf2read.c (open_and_init_dwp_file): Call
11448 elf_numsections instead of bfd_count_sections to initialize
11449 dwp_file->num_sections.
11450
cd5a152c
TT
114512019-02-25 Tom Tromey <tromey@adacore.com>
11452
11453 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11454
8a6a8513
SDJ
114552019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11456
11457 * gcore.in: Add '--readnever' option when invoking GDB.
11458
04dcda9c
SM
114592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * MAINTAINERS: Update my email address.
11462
07bc701d
SM
114632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11464
11465 * build-id.c (build_id_to_debug_bfd_1): New function.
11466 (build_id_to_debug_bfd): Look for separate debug file in
11467 sysroot.
11468
c6f4a5d0
AB
114692019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11470
11471 * gdbarch.sh: Update the copyright year range that is placed into
11472 generated files.
11473
9600246d
KS
114742019-02-22 Keith Seitz <keiths@redhat.com>
11475
11476 PR symtab/23853
11477 * linespec.c (create_sals_line_offset): Search for the default
11478 symtab's filename instead of its fullname.
11479
7557a514
AH
114802019-02-21 Alan Hayward <alan.hayward@arm.com>
11481
11482 * NEWS: Update style defaults.
11483
ee2bcb0c
AH
114842019-02-21 Alan Hayward <alan.hayward@arm.com>
11485
11486 * main.c (captured_main_1): Disable styling in batch mode.
11487
0c95f9ed
TT
114882019-02-20 Tom Tromey <tom@tromey.com>
11489
11490 * symtab.c (symtab_symbol_info): Fix typos.
11491
c763b894
TT
114922019-02-20 Tom Tromey <tromey@adacore.com>
11493
11494 * findcmd.c (_initialize_mem_search): Use upper case for
11495 metasyntactic variables.
11496
0ef8a082
AH
114972019-02-20 Alan Hayward <alan.hayward@arm.com>
11498
11499 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11500 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11501
6caa91b6
SM
115022019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11503
11504 * top.h (source_file_name): Change to std::string.
11505 * top.c (source_file_name): Likewise.
11506 (command_line_input): Adjust.
11507 * cli/cli-script.c (script_from_file): Adjust.
11508
98814c6c
TT
115092019-02-19 Tom Tromey <tromey@adacore.com>
11510
11511 * ravenscar-thread.c
11512 (ravenscar_thread_target::update_thread_list): Don't call
11513 ada_build_task_list.
11514 * ada-lang.h (ada_build_task_list): Don't declare.
11515 * ada-tasks.c (struct ada_tasks_inferior_data)
11516 <task_list_valid_p>: Now bool.
11517 (read_known_tasks, ada_task_list_changed)
11518 (ada_tasks_invalidate_inferior_data): Update.
11519 (read_known_tasks_array): Return bool.
11520 (read_known_tasks_list): Likewise.
11521 (read_known_tasks): Return void.
11522 (ada_build_task_list): Now static.
11523
70cd633e
AB
115242019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11525
11526 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11527 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11528
040b3e95
PW
115292019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11530
11531 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11532 variant for ada_tasks_pspace_data_handle and
11533 ada_tasks_inferior_data_handle.
11534 (ada_tasks_pspace_data_cleanup): New function.
11535 (ada_tasks_inferior_data_cleanup): New function.
11536
9409233b
TT
115372019-02-17 Tom Tromey <tom@tromey.com>
11538
11539 * macrotab.h (macro_source_fullname): Return a std::string.
11540 * macrotab.c (macro_include, check_for_redefinition)
11541 (macro_undef, macro_lookup_definition, foreach_macro)
11542 (foreach_macro_in_scope): Update.
11543 (macro_source_fullname): Return a std::string.
11544 * macrocmd.c (show_pp_source_pos): Update.
11545
6506371f
TT
115462019-02-17 Tom Tromey <tom@tromey.com>
11547
11548 * macrocmd.c (show_pp_source_pos): Style the file names.
11549
0c820d67
TT
115502019-02-17 Tom Tromey <tom@tromey.com>
11551
11552 PR tui/24197:
11553 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11554
a0087920
TT
115552019-02-17 Tom Tromey <tom@tromey.com>
11556
11557 * ada-lang.c (user_select_syms): Use filtered printing.
11558 * utils.c (wrap_style): New global.
11559 (desired_style): Remove.
11560 (emit_style_escape): Add stream parameter.
11561 (set_output_style, reset_terminal_style, prompt_for_continue):
11562 Update.
11563 (flush_wrap_buffer): Only flush gdb_stdout.
11564 (wrap_here): Set wrap_style.
11565 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11566 treat escape sequences as a character. Change when wrap buffer is
11567 flushed.
11568 (fputs_styled): Do not set the output style when the default is
11569 requested.
11570 * ui-style.h (struct ui_file_style) <is_default>: New method.
11571 * source.c (print_source_lines_base): Emit escape sequences in one
11572 piece.
11573
75ba10dc
JB
115742019-02-17 Joel Brobecker <brobecker@adacore.com>
11575
11576 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11577 integers and enumeration types.
11578
a2cd4f14
JB
115792019-02-17 Joel Brobecker <brobecker@adacore.com>
11580
11581 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11582 instead of lookup_symbol_in_language
11583 (do_exact_match): New function.
11584 (ada_get_symbol_name_matcher): Return do_exact_match when
11585 doing a verbatim match.
11586
485b851b
TT
115872019-02-15 Tom Tromey <tromey@adacore.com>
11588
11589 * ravenscar-thread.c (ravenscar_thread_target::resume)
11590 (ravenscar_thread_target::wait): Special case wildcard requests.
11591
0b790b1e
TT
115922019-02-15 Tom Tromey <tromey@adacore.com>
11593
11594 * ravenscar-thread.c (base_ptid): Remove.
11595 (struct ravenscar_thread_target) <close>: New method.
11596 <m_base_ptid>: New member.
11597 <update_inferior_ptid, active_task, task_is_currently_active,
11598 runtime_initialized>: Declare methods.
11599 <ravenscar_thread_target>: Add constructor.
11600 (ravenscar_thread_target::task_is_currently_active)
11601 (ravenscar_thread_target::update_inferior_ptid)
11602 (ravenscar_runtime_initialized): Rename. Now methods.
11603 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11604 (ravenscar_thread_target::update_thread_list): Update.
11605 (ravenscar_thread_target::active_task): Now method.
11606 (ravenscar_thread_target::store_registers)
11607 (ravenscar_thread_target::prepare_to_store)
11608 (ravenscar_thread_target::prepare_to_store)
11609 (ravenscar_thread_target::mourn_inferior): Update.
11610 (ravenscar_inferior_created): Use "new" to create target.
11611 (ravenscar_thread_target::get_ada_task_ptid): Update.
11612 (_initialize_ravenscar): Don't initialize base_ptid.
11613 (ravenscar_ops): Remove global.
11614
dea57a62
TT
116152019-02-15 Tom Tromey <tromey@adacore.com>
11616
11617 * target.h (push_target): Declare new overload.
11618 * target.c (push_target): New overload, taking an rvalue reference.
11619 * remote.c (remote_target::open_1): Use push_target overload.
11620 * corelow.c (core_target_open): Use push_target overload.
11621
989f3c58
TT
116222019-02-15 Tom Tromey <tromey@adacore.com>
11623
11624 * ravenscar-thread.c (is_ravenscar_task)
11625 (ravenscar_task_is_currently_active): Return bool.
11626 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11627 (_initialize_ravenscar): Remove "(void)".
11628 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11629 Return bool.
11630
6cbcc006
TT
116312019-02-15 Tom Tromey <tromey@adacore.com>
11632
11633 * ravenscar-thread.c (ravenscar_runtime_initializer)
11634 (has_ravenscar_runtime, get_running_thread_id)
11635 (ravenscar_thread_target::resume): Fix indentation.
11636
7657f14d
TT
116372019-02-15 Tom Tromey <tromey@adacore.com>
11638
11639 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11640 from ravenscar_arch_ops.
11641 (sparc_ravenscar_ops::fetch_registers)
11642 (sparc_ravenscar_ops::store_registers): Now methods.
11643 (sparc_ravenscar_prepare_to_store): Remove.
11644 (sparc_ravenscar_ops): Redefine.
11645 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11646 methods and destructor. Remove members.
11647 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11648 (ravenscar_thread_target::store_registers)
11649 (ravenscar_thread_target::prepare_to_store): Update.
11650 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11651 Remove.
11652 (struct ppc_ravenscar_powerpc_ops): Derive from
11653 ravenscar_arch_ops.
11654 (ppc_ravenscar_powerpc_ops::fetch_registers)
11655 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11656 (ppc_ravenscar_powerpc_ops): Redefine.
11657 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11658 (ppc_ravenscar_e500_ops::fetch_registers)
11659 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11660 (ppc_ravenscar_e500_ops): Redefine.
11661 * aarch64-ravenscar-thread.c
11662 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11663 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11664 (aarch64_ravenscar_fetch_registers)
11665 (aarch64_ravenscar_store_registers): Now methods.
11666 (aarch64_ravenscar_ops): Redefine.
11667
5b6ea500
TT
116682019-02-15 Tom Tromey <tromey@adacore.com>
11669
11670 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11671 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11672 (ravenscar_thread_target::stopped_by_watchpoint)
11673 (ravenscar_thread_target::stopped_data_address)
11674 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11675
e397fd39
TT
116762019-02-15 Tom Tromey <tromey@adacore.com>
11677
11678 * ravenscar-thread.c: Fix some typos.
11679
cc12f4a8
TT
116802019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11681 Tom Tromey <tromey@adacore.com>
11682
11683 * ada-lang.c (ada_exception_sal): Change addr_string to a
11684 std::string.
11685 (create_ada_exception_catchpoint): Update.
11686
5f486660
TT
116872019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11688 Tom Tromey <tromey@adacore.com>
11689
11690 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11691 (bp_location_ops): Remove.
11692 (base_breakpoint_allocate_location): Update.
11693 (free_bp_location): Update.
11694 * ada-lang.c (class ada_catchpoint_location)
11695 <ada_catchpoint_location>: Remove ops parameter.
11696 (ada_catchpoint_location_dtor): Remove.
11697 (ada_catchpoint_location_ops): Remove.
11698 (allocate_location_exception): Update.
11699 * breakpoint.h (struct bp_location_ops): Remove.
11700 (class bp_location) <bp_location>: Remove bp_location_ops
11701 parameter.
11702 <~bp_location>: Add destructor.
11703 <ops>: Remove.
11704
b671c7fb
TS
117052019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11706 Pedro Alves <palves@redhat.com>
11707
11708 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11709 'PATH_MAX'.
11710
8071c5ce
DM
117112019-02-14 David Michael <fedora.dm0@gmail.com>
11712 Samuel Thibault <samuel.thibault@gnu.org>
11713 Thomas Schwinge <thomas@codesourcery.com>
11714
11715 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11716 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11717
b1041ae0
TS
117182019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11719
924514e1
TS
11720 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11721 (check_empty): Use "const char *".
11722
c29ee8d4
TS
11723 * gnu-nat.c (gnu_nat_target::detach): Instead of
11724 'detach_inferior (pid)' call
11725 'detach_inferior (find_inferior_pid (pid))'.
11726
6c6ef69f
TS
11727 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11728 'nat/fork-inferior.o'.
11729 * gnu-nat.c: #include "nat/fork-inferior.h".
11730
2d0a338c
TS
11731 * gnu-nat.c (gnu_nat_target::detach): Instead of
11732 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11733 * gnu-nat.h: #include "inf-child.h".
11734 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11735 'i386_gnu_nat_target::fetch_registers'.
11736 (gnu_store_registers): Rename/move to
11737 'i386_gnu_nat_target::store_registers'.
11738
cabb5f06
TS
11739 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11740 * gnu-nat.h (mach_thread_info): New function.
11741 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11742
b1041ae0
TS
11743 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11744
2988d01e
KF
117452019-02-14 Frederic Konrad <konrad@adacore.com>
11746
11747 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11748
c559d709
JB
117492019-02-14 Joel Brobecker <brobecker@adacore.com>
11750
11751 * windows-nat.c (windows_add_thread): Add new parameter
11752 "main_thread_p" with default value set to false. Update
11753 function documentation as well as all callers.
11754 (windows_delete_thread): Likewise.
11755 (fake_create_process): Update call to windows_add_thread.
11756 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11757 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11758 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11759 call to windows_delete_thread.
11760
007024cc
SM
117612019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11762
11763 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11764
f62318e9
JB
117652019-02-12 John Baldwin <jhb@FreeBSD.org>
11766
11767 * symfile.c (find_separate_debug_file): Use canonical path of
11768 sysroot with child_path instead of gdb_sysroot if it is valid.
11769
cd4b7848
JB
117702019-02-12 John Baldwin <jhb@FreeBSD.org>
11771
11772 * symfile.c (find_separate_debug_file): Use child_path to
11773 determine if an object file is under a sysroot.
11774
efac4bfe
JB
117752019-02-12 John Baldwin <jhb@FreeBSD.org>
11776
11777 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11778 unittests/child-path-selftests.c.
11779 * common/pathstuff.c (child_path): New function.
11780 * common/pathstuff.h (child_path): New prototype.
11781 * unittests/child-path-selftests.c: New file.
11782
402d2bfe
JB
117832019-02-12 John Baldwin <jhb@FreeBSD.org>
11784
11785 * symfile.c (find_separate_debug_file): Look for separate debug
11786 files in debug directories under the sysroot.
11787
1ed9f74e
PW
117882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11789
11790 * symtab.h (struct minimal_symbol data_p): New const method.
11791 (struct minimal_symbol text_p): Likewise.
11792 * symtab.c (output_source_filename): Use file name style
11793 to print file name.
11794 (print_symbol_info): Likewise.
11795 (print_msymbol_info): Use address style to print addresses.
11796 Use function name style to print executable text symbols.
11797 (expand_symtab_containing_pc): Use data_p.
11798 (find_pc_sect_compunit_symtab): Likewise.
11799
2636d81d
PW
118002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11801
11802 * breakpoint.c (describe_other_breakpoints): Use address style
11803 to print addresses.
11804 (say_where): Likewise.
11805
ac8c53cc
PW
118062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11807
11808 * ada-typeprint.c (print_func_type): Print function name
11809 style to print function name.
11810 * c-typeprint.c (c_print_type_1): Likewise.
11811
ea638c43
AH
118122019-02-11 Alan Hayward <alan.hayward@arm.com>
11813
11814 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11815 for execve.
11816
ab759ca8
PW
118172019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11818
11819 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11820 type_stack.
11821
aff29d1c
JB
118222019-02-10 Joel Brobecker <brobecker@adacore.com>
11823
11824 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11825 TYPE_CODE_REF types.
11826
617126bc
JW
118272019-02-08 Jim Wilson <jimw@sifive.com>
11828
11829 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11830 (riscv_linux_fregset): New.
11831 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11832
46e3ed7f
TT
118332019-02-07 Tom Tromey <tom@tromey.com>
11834
11835 * thread.c (thread_cancel_execution_command): Update.
11836 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11837 methods.
11838 (struct thread_fsm_ops): Remove.
11839 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11840 (thread_fsm_should_stop, thread_fsm_return_value)
11841 (thread_fsm_set_finished, thread_fsm_finished_p)
11842 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11843 Don't declare.
11844 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11845 * infrun.c (clear_proceed_status_thread)
11846 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11847 (print_stop_event): Update.
11848 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11849 Add constructor.
11850 (step_command_fsm_ops): Remove.
11851 (new_step_command_fsm): Remove.
11852 (step_1): Update.
11853 (step_command_fsm::should_stop): Rename from
11854 step_command_fsm_should_stop.
11855 (step_command_fsm::clean_up): Rename from
11856 step_command_fsm_clean_up.
11857 (step_command_fsm::do_async_reply_reason): Rename from
11858 step_command_fsm_async_reply_reason.
11859 (struct until_next_fsm): Inherit from thread_fsm. Add
11860 constructor.
11861 (until_next_fsm_ops): Remove.
11862 (new_until_next_fsm): Remove.
11863 (until_next_fsm::should_stop): Rename from
11864 until_next_fsm_should_stop.
11865 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11866 (until_next_fsm::do_async_reply_reason): Rename from
11867 until_next_fsm_async_reply_reason.
11868 (struct finish_command_fsm): Inherit from thread_fsm. Add
11869 constructor. Change type of breakpoint.
11870 (finish_command_fsm_ops): Remove.
11871 (new_finish_command_fsm): Remove.
11872 (finish_command_fsm::should_stop): Rename from
11873 finish_command_fsm_should_stop.
11874 (finish_command_fsm::clean_up): Rename from
11875 finish_command_fsm_clean_up.
11876 (finish_command_fsm::return_value): Rename from
11877 finish_command_fsm_return_value.
11878 (finish_command_fsm::do_async_reply_reason): Rename from
11879 finish_command_fsm_async_reply_reason.
11880 (finish_command): Update.
11881 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11882 Add constructor.
11883 (call_thread_fsm_ops): Remove.
11884 (call_thread_fsm::call_thread_fsm): Rename from
11885 new_call_thread_fsm.
11886 (call_thread_fsm::should_stop): Rename from
11887 call_thread_fsm_should_stop.
11888 (call_thread_fsm::should_notify_stop): Rename from
11889 call_thread_fsm_should_notify_stop.
11890 (run_inferior_call, call_function_by_hand_dummy): Update.
11891 * cli/cli-interp.c (should_print_stop_to_console): Update.
11892 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11893 Add constructor. Change type of location_breakpoint,
11894 caller_breakpoint.
11895 (until_break_fsm_ops): Remove.
11896 (new_until_break_fsm): Remove.
11897 (until_break_fsm::should_stop): Rename from
11898 until_break_fsm_should_stop.
11899 (until_break_fsm::clean_up): Rename from
11900 until_break_fsm_clean_up.
11901 (until_break_fsm::do_async_reply_reason): Rename from
11902 until_break_fsm_async_reply_reason.
11903 (until_break_command): Update.
11904 * thread-fsm.c: Remove.
11905 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11906
1a5c2598
TT
119072019-02-07 Tom Tromey <tom@tromey.com>
11908
11909 * yy-remap.h: Add include guard.
11910 * xtensa-tdep.h: Add include guard.
11911 * xcoffread.h: Rename include guard.
11912 * varobj-iter.h: Add include guard.
11913 * tui/tui.h: Rename include guard.
11914 * tui/tui-winsource.h: Rename include guard.
11915 * tui/tui-wingeneral.h: Rename include guard.
11916 * tui/tui-windata.h: Rename include guard.
11917 * tui/tui-win.h: Rename include guard.
11918 * tui/tui-stack.h: Rename include guard.
11919 * tui/tui-source.h: Rename include guard.
11920 * tui/tui-regs.h: Rename include guard.
11921 * tui/tui-out.h: Rename include guard.
11922 * tui/tui-layout.h: Rename include guard.
11923 * tui/tui-io.h: Rename include guard.
11924 * tui/tui-hooks.h: Rename include guard.
11925 * tui/tui-file.h: Rename include guard.
11926 * tui/tui-disasm.h: Rename include guard.
11927 * tui/tui-data.h: Rename include guard.
11928 * tui/tui-command.h: Rename include guard.
11929 * tic6x-tdep.h: Add include guard.
11930 * target/waitstatus.h: Rename include guard.
11931 * target/wait.h: Rename include guard.
11932 * target/target.h: Rename include guard.
11933 * target/resume.h: Rename include guard.
11934 * target-float.h: Rename include guard.
11935 * stabsread.h: Add include guard.
11936 * rs6000-tdep.h: Add include guard.
11937 * riscv-fbsd-tdep.h: Add include guard.
11938 * regformats/regdef.h: Rename include guard.
11939 * record.h: Rename include guard.
11940 * python/python.h: Rename include guard.
11941 * python/python-internal.h: Rename include guard.
11942 * python/py-stopevent.h: Rename include guard.
11943 * python/py-ref.h: Rename include guard.
11944 * python/py-record.h: Rename include guard.
11945 * python/py-record-full.h: Rename include guard.
11946 * python/py-record-btrace.h: Rename include guard.
11947 * python/py-instruction.h: Rename include guard.
11948 * python/py-events.h: Rename include guard.
11949 * python/py-event.h: Rename include guard.
11950 * procfs.h: Add include guard.
11951 * proc-utils.h: Add include guard.
11952 * p-lang.h: Add include guard.
11953 * or1k-tdep.h: Rename include guard.
11954 * observable.h: Rename include guard.
11955 * nto-tdep.h: Rename include guard.
11956 * nat/x86-linux.h: Rename include guard.
11957 * nat/x86-linux-dregs.h: Rename include guard.
11958 * nat/x86-gcc-cpuid.h: Add include guard.
11959 * nat/x86-dregs.h: Rename include guard.
11960 * nat/x86-cpuid.h: Rename include guard.
11961 * nat/ppc-linux.h: Rename include guard.
11962 * nat/mips-linux-watch.h: Rename include guard.
11963 * nat/linux-waitpid.h: Rename include guard.
11964 * nat/linux-ptrace.h: Rename include guard.
11965 * nat/linux-procfs.h: Rename include guard.
11966 * nat/linux-osdata.h: Rename include guard.
11967 * nat/linux-nat.h: Rename include guard.
11968 * nat/linux-namespaces.h: Rename include guard.
11969 * nat/linux-btrace.h: Rename include guard.
11970 * nat/glibc_thread_db.h: Rename include guard.
11971 * nat/gdb_thread_db.h: Rename include guard.
11972 * nat/gdb_ptrace.h: Rename include guard.
11973 * nat/fork-inferior.h: Rename include guard.
11974 * nat/amd64-linux-siginfo.h: Rename include guard.
11975 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11976 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11977 * nat/aarch64-linux.h: Rename include guard.
11978 * nat/aarch64-linux-hw-point.h: Rename include guard.
11979 * mn10300-tdep.h: Add include guard.
11980 * mips-linux-tdep.h: Add include guard.
11981 * mi/mi-parse.h: Rename include guard.
11982 * mi/mi-out.h: Rename include guard.
11983 * mi/mi-main.h: Rename include guard.
11984 * mi/mi-interp.h: Rename include guard.
11985 * mi/mi-getopt.h: Rename include guard.
11986 * mi/mi-console.h: Rename include guard.
11987 * mi/mi-common.h: Rename include guard.
11988 * mi/mi-cmds.h: Rename include guard.
11989 * mi/mi-cmd-break.h: Rename include guard.
11990 * m2-lang.h: Add include guard.
11991 * location.h: Rename include guard.
11992 * linux-record.h: Rename include guard.
11993 * linux-nat.h: Add include guard.
11994 * linux-fork.h: Add include guard.
11995 * i386-darwin-tdep.h: Rename include guard.
11996 * hppa-linux-offsets.h: Add include guard.
11997 * guile/guile.h: Rename include guard.
11998 * guile/guile-internal.h: Rename include guard.
11999 * gnu-nat.h: Rename include guard.
12000 * gdb-stabs.h: Rename include guard.
12001 * frv-tdep.h: Add include guard.
12002 * f-lang.h: Add include guard.
12003 * event-loop.h: Add include guard.
12004 * darwin-nat.h: Rename include guard.
12005 * cp-abi.h: Rename include guard.
12006 * config/sparc/nm-sol2.h: Rename include guard.
12007 * config/nm-nto.h: Rename include guard.
12008 * config/nm-linux.h: Add include guard.
12009 * config/i386/nm-i386gnu.h: Rename include guard.
12010 * config/djgpp/nl_types.h: Rename include guard.
12011 * config/djgpp/langinfo.h: Rename include guard.
12012 * compile/gcc-cp-plugin.h: Add include guard.
12013 * compile/gcc-c-plugin.h: Add include guard.
12014 * compile/compile.h: Rename include guard.
12015 * compile/compile-object-run.h: Rename include guard.
12016 * compile/compile-object-load.h: Rename include guard.
12017 * compile/compile-internal.h: Rename include guard.
12018 * compile/compile-cplus.h: Rename include guard.
12019 * compile/compile-c.h: Rename include guard.
12020 * common/xml-utils.h: Rename include guard.
12021 * common/x86-xstate.h: Rename include guard.
12022 * common/version.h: Rename include guard.
12023 * common/vec.h: Rename include guard.
12024 * common/tdesc.h: Rename include guard.
12025 * common/selftest.h: Rename include guard.
12026 * common/scoped_restore.h: Rename include guard.
12027 * common/scoped_mmap.h: Rename include guard.
12028 * common/scoped_fd.h: Rename include guard.
12029 * common/safe-iterator.h: Rename include guard.
12030 * common/run-time-clock.h: Rename include guard.
12031 * common/refcounted-object.h: Rename include guard.
12032 * common/queue.h: Rename include guard.
12033 * common/ptid.h: Rename include guard.
12034 * common/print-utils.h: Rename include guard.
12035 * common/preprocessor.h: Rename include guard.
12036 * common/pathstuff.h: Rename include guard.
12037 * common/observable.h: Rename include guard.
12038 * common/netstuff.h: Rename include guard.
12039 * common/job-control.h: Rename include guard.
12040 * common/host-defs.h: Rename include guard.
12041 * common/gdb_wait.h: Rename include guard.
12042 * common/gdb_vecs.h: Rename include guard.
12043 * common/gdb_unlinker.h: Rename include guard.
12044 * common/gdb_unique_ptr.h: Rename include guard.
12045 * common/gdb_tilde_expand.h: Rename include guard.
12046 * common/gdb_sys_time.h: Rename include guard.
12047 * common/gdb_string_view.h: Rename include guard.
12048 * common/gdb_splay_tree.h: Rename include guard.
12049 * common/gdb_setjmp.h: Rename include guard.
12050 * common/gdb_ref_ptr.h: Rename include guard.
12051 * common/gdb_optional.h: Rename include guard.
12052 * common/gdb_locale.h: Rename include guard.
12053 * common/gdb_assert.h: Rename include guard.
12054 * common/filtered-iterator.h: Rename include guard.
12055 * common/filestuff.h: Rename include guard.
12056 * common/fileio.h: Rename include guard.
12057 * common/environ.h: Rename include guard.
12058 * common/common-utils.h: Rename include guard.
12059 * common/common-types.h: Rename include guard.
12060 * common/common-regcache.h: Rename include guard.
12061 * common/common-inferior.h: Rename include guard.
12062 * common/common-gdbthread.h: Rename include guard.
12063 * common/common-exceptions.h: Rename include guard.
12064 * common/common-defs.h: Rename include guard.
12065 * common/common-debug.h: Rename include guard.
12066 * common/cleanups.h: Rename include guard.
12067 * common/buffer.h: Rename include guard.
12068 * common/btrace-common.h: Rename include guard.
12069 * common/break-common.h: Rename include guard.
12070 * cli/cli-utils.h: Rename include guard.
12071 * cli/cli-style.h: Rename include guard.
12072 * cli/cli-setshow.h: Rename include guard.
12073 * cli/cli-script.h: Rename include guard.
12074 * cli/cli-interp.h: Rename include guard.
12075 * cli/cli-decode.h: Rename include guard.
12076 * cli/cli-cmds.h: Rename include guard.
12077 * charset-list.h: Add include guard.
12078 * buildsym-legacy.h: Rename include guard.
12079 * bfin-tdep.h: Add include guard.
12080 * ax.h: Rename include guard.
12081 * arm-linux-tdep.h: Add include guard.
12082 * arm-fbsd-tdep.h: Add include guard.
12083 * arch/xtensa.h: Rename include guard.
12084 * arch/tic6x.h: Add include guard.
12085 * arch/i386.h: Add include guard.
12086 * arch/arm.h: Rename include guard.
12087 * arch/arm-linux.h: Rename include guard.
12088 * arch/arm-get-next-pcs.h: Rename include guard.
12089 * arch/amd64.h: Add include guard.
12090 * arch/aarch64-insn.h: Rename include guard.
12091 * arch-utils.h: Rename include guard.
12092 * annotate.h: Add include guard.
12093 * amd64-darwin-tdep.h: Rename include guard.
12094 * aarch64-linux-tdep.h: Add include guard.
12095 * aarch64-fbsd-tdep.h: Add include guard.
12096 * aarch32-linux-nat.h: Add include guard.
12097
ab9268d2
PW
120982019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12099
12100 * macrotab.c (macro_define_internal): New function that
12101 factorizes macro_define_object_internal and macro_define_function
12102 code.
12103 (macro_define_object_internal): Use macro_define_internal.
12104 (macro_define_function): Likewise.
12105
bb0da2b4
PW
121062019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12107
12108 * macrocmd.c (extract_identifier): Return
12109 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12110 callers.
12111
424eb552
JB
121122019-02-06 John Baldwin <jhb@FreeBSD.org>
12113
12114 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12115
1688cb29
TT
121162019-02-05 Tom Tromey <tom@tromey.com>
12117
12118 * target.c (target_stack::unpush): Move assertion earlier.
12119
b5eba2d8
TT
121202019-01-30 Tom Tromey <tom@tromey.com>
12121
12122 PR python/23615:
12123 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12124 (gdbpy_parse_and_eval): Likewise.
12125 * python/python-internal.h (gdbpy_allow_threads): New class.
12126
7054e2ff
JB
121272019-01-28 John Baldwin <jhb@FreeBSD.org>
12128
12129 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12130 (aarch64_fbsd_fpregmap): Move earlier.
12131 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12132 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12133 instead of individual calls to trad_frame_set_reg_addr.
12134 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12135 earlier.
12136 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12137 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12138 instead of individual calls to trad_frame_set_reg_addr.
12139
36c25ffa
AH
121402019-01-28 Alan Hayward <alan.hayward@arm.com>
12141
12142 * CONTRIBUTE: Replace contribution list with wiki link.
12143
a0707f3c
TT
121442019-01-25 Tom Tromey <tom@tromey.com>
12145
12146 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12147
0747795c
TT
121482019-01-25 Tom Tromey <tom@tromey.com>
12149
12150 * xtensa-linux-nat.c: Fix common/ includes.
12151 * xml-support.h: Fix common/ includes.
12152 * xml-support.c: Fix common/ includes.
12153 * x86-linux-nat.c: Fix common/ includes.
12154 * windows-nat.c: Fix common/ includes.
12155 * varobj.h: Fix common/ includes.
12156 * varobj.c: Fix common/ includes.
12157 * value.c: Fix common/ includes.
12158 * valops.c: Fix common/ includes.
12159 * utils.c: Fix common/ includes.
12160 * unittests/xml-utils-selftests.c: Fix common/ includes.
12161 * unittests/utils-selftests.c: Fix common/ includes.
12162 * unittests/unpack-selftests.c: Fix common/ includes.
12163 * unittests/tracepoint-selftests.c: Fix common/ includes.
12164 * unittests/style-selftests.c: Fix common/ includes.
12165 * unittests/string_view-selftests.c: Fix common/ includes.
12166 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12167 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12168 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12169 * unittests/rsp-low-selftests.c: Fix common/ includes.
12170 * unittests/parse-connection-spec-selftests.c: Fix common/
12171 includes.
12172 * unittests/optional-selftests.c: Fix common/ includes.
12173 * unittests/offset-type-selftests.c: Fix common/ includes.
12174 * unittests/observable-selftests.c: Fix common/ includes.
12175 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12176 * unittests/memrange-selftests.c: Fix common/ includes.
12177 * unittests/memory-map-selftests.c: Fix common/ includes.
12178 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12179 * unittests/function-view-selftests.c: Fix common/ includes.
12180 * unittests/environ-selftests.c: Fix common/ includes.
12181 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12182 * unittests/common-utils-selftests.c: Fix common/ includes.
12183 * unittests/cli-utils-selftests.c: Fix common/ includes.
12184 * unittests/array-view-selftests.c: Fix common/ includes.
12185 * ui-file.c: Fix common/ includes.
12186 * tui/tui-io.c: Fix common/ includes.
12187 * tracepoint.h: Fix common/ includes.
12188 * tracepoint.c: Fix common/ includes.
12189 * tracefile-tfile.c: Fix common/ includes.
12190 * top.h: Fix common/ includes.
12191 * top.c: Fix common/ includes.
12192 * thread.c: Fix common/ includes.
12193 * target/waitstatus.h: Fix common/ includes.
12194 * target/waitstatus.c: Fix common/ includes.
12195 * target.h: Fix common/ includes.
12196 * target.c: Fix common/ includes.
12197 * target-memory.c: Fix common/ includes.
12198 * target-descriptions.c: Fix common/ includes.
12199 * symtab.h: Fix common/ includes.
12200 * symfile.c: Fix common/ includes.
12201 * stap-probe.c: Fix common/ includes.
12202 * spu-linux-nat.c: Fix common/ includes.
12203 * sparc-nat.c: Fix common/ includes.
12204 * source.c: Fix common/ includes.
12205 * solib.c: Fix common/ includes.
12206 * solib-target.c: Fix common/ includes.
12207 * ser-unix.c: Fix common/ includes.
12208 * ser-tcp.c: Fix common/ includes.
12209 * ser-pipe.c: Fix common/ includes.
12210 * ser-base.c: Fix common/ includes.
12211 * selftest-arch.c: Fix common/ includes.
12212 * s12z-tdep.c: Fix common/ includes.
12213 * rust-exp.y: Fix common/ includes.
12214 * rs6000-aix-tdep.c: Fix common/ includes.
12215 * riscv-tdep.c: Fix common/ includes.
12216 * remote.c: Fix common/ includes.
12217 * remote-notif.h: Fix common/ includes.
12218 * remote-fileio.h: Fix common/ includes.
12219 * remote-fileio.c: Fix common/ includes.
12220 * regcache.h: Fix common/ includes.
12221 * regcache.c: Fix common/ includes.
12222 * record-btrace.c: Fix common/ includes.
12223 * python/python.c: Fix common/ includes.
12224 * python/py-type.c: Fix common/ includes.
12225 * python/py-inferior.c: Fix common/ includes.
12226 * progspace.h: Fix common/ includes.
12227 * producer.c: Fix common/ includes.
12228 * procfs.c: Fix common/ includes.
12229 * proc-api.c: Fix common/ includes.
12230 * printcmd.c: Fix common/ includes.
12231 * ppc-linux-nat.c: Fix common/ includes.
12232 * parser-defs.h: Fix common/ includes.
12233 * osdata.c: Fix common/ includes.
12234 * obsd-nat.c: Fix common/ includes.
12235 * nat/x86-linux.c: Fix common/ includes.
12236 * nat/x86-linux-dregs.c: Fix common/ includes.
12237 * nat/x86-dregs.h: Fix common/ includes.
12238 * nat/x86-dregs.c: Fix common/ includes.
12239 * nat/ppc-linux.c: Fix common/ includes.
12240 * nat/mips-linux-watch.h: Fix common/ includes.
12241 * nat/mips-linux-watch.c: Fix common/ includes.
12242 * nat/linux-waitpid.c: Fix common/ includes.
12243 * nat/linux-ptrace.h: Fix common/ includes.
12244 * nat/linux-ptrace.c: Fix common/ includes.
12245 * nat/linux-procfs.c: Fix common/ includes.
12246 * nat/linux-personality.c: Fix common/ includes.
12247 * nat/linux-osdata.c: Fix common/ includes.
12248 * nat/linux-namespaces.c: Fix common/ includes.
12249 * nat/linux-btrace.h: Fix common/ includes.
12250 * nat/linux-btrace.c: Fix common/ includes.
12251 * nat/fork-inferior.c: Fix common/ includes.
12252 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12253 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12254 * nat/aarch64-linux.c: Fix common/ includes.
12255 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12256 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12257 * namespace.h: Fix common/ includes.
12258 * mips-linux-tdep.c: Fix common/ includes.
12259 * minsyms.c: Fix common/ includes.
12260 * mi/mi-parse.h: Fix common/ includes.
12261 * mi/mi-main.c: Fix common/ includes.
12262 * mi/mi-cmd-env.c: Fix common/ includes.
12263 * memrange.h: Fix common/ includes.
12264 * memattr.c: Fix common/ includes.
12265 * maint.h: Fix common/ includes.
12266 * maint.c: Fix common/ includes.
12267 * main.c: Fix common/ includes.
12268 * machoread.c: Fix common/ includes.
12269 * location.c: Fix common/ includes.
12270 * linux-thread-db.c: Fix common/ includes.
12271 * linux-nat.c: Fix common/ includes.
12272 * linux-fork.c: Fix common/ includes.
12273 * inline-frame.c: Fix common/ includes.
12274 * infrun.c: Fix common/ includes.
12275 * inflow.c: Fix common/ includes.
12276 * inferior.h: Fix common/ includes.
12277 * inferior.c: Fix common/ includes.
12278 * infcmd.c: Fix common/ includes.
12279 * inf-ptrace.c: Fix common/ includes.
12280 * inf-child.c: Fix common/ includes.
12281 * ia64-linux-nat.c: Fix common/ includes.
12282 * i387-tdep.c: Fix common/ includes.
12283 * i386-tdep.c: Fix common/ includes.
12284 * i386-linux-tdep.c: Fix common/ includes.
12285 * i386-linux-nat.c: Fix common/ includes.
12286 * i386-go32-tdep.c: Fix common/ includes.
12287 * i386-fbsd-tdep.c: Fix common/ includes.
12288 * i386-fbsd-nat.c: Fix common/ includes.
12289 * guile/scm-type.c: Fix common/ includes.
12290 * guile/guile.c: Fix common/ includes.
12291 * go32-nat.c: Fix common/ includes.
12292 * gnu-nat.c: Fix common/ includes.
12293 * gdbthread.h: Fix common/ includes.
12294 * gdbarch-selftests.c: Fix common/ includes.
12295 * gdb_usleep.c: Fix common/ includes.
12296 * gdb_select.h: Fix common/ includes.
12297 * gdb_bfd.c: Fix common/ includes.
12298 * gcore.c: Fix common/ includes.
12299 * fork-child.c: Fix common/ includes.
12300 * findvar.c: Fix common/ includes.
12301 * fbsd-nat.c: Fix common/ includes.
12302 * event-top.c: Fix common/ includes.
12303 * event-loop.c: Fix common/ includes.
12304 * dwarf2read.c: Fix common/ includes.
12305 * dwarf2loc.c: Fix common/ includes.
12306 * dwarf2-frame.c: Fix common/ includes.
12307 * dwarf-index-cache.c: Fix common/ includes.
12308 * dtrace-probe.c: Fix common/ includes.
12309 * disasm-selftests.c: Fix common/ includes.
12310 * defs.h: Fix common/ includes.
12311 * csky-tdep.c: Fix common/ includes.
12312 * cp-valprint.c: Fix common/ includes.
12313 * cp-support.h: Fix common/ includes.
12314 * cp-support.c: Fix common/ includes.
12315 * corelow.c: Fix common/ includes.
12316 * completer.h: Fix common/ includes.
12317 * completer.c: Fix common/ includes.
12318 * compile/compile.c: Fix common/ includes.
12319 * compile/compile-loc2c.c: Fix common/ includes.
12320 * compile/compile-cplus-types.c: Fix common/ includes.
12321 * compile/compile-cplus-symbols.c: Fix common/ includes.
12322 * command.h: Fix common/ includes.
12323 * cli/cli-dump.c: Fix common/ includes.
12324 * cli/cli-cmds.c: Fix common/ includes.
12325 * charset.c: Fix common/ includes.
12326 * build-id.c: Fix common/ includes.
12327 * btrace.h: Fix common/ includes.
12328 * btrace.c: Fix common/ includes.
12329 * breakpoint.h: Fix common/ includes.
12330 * breakpoint.c: Fix common/ includes.
12331 * ax.h:
12332 (enum agent_op): Fix common/ includes.
12333 * ax-general.c (struct aop_map): Fix common/ includes.
12334 * ax-gdb.c: Fix common/ includes.
12335 * auxv.c: Fix common/ includes.
12336 * auto-load.c: Fix common/ includes.
12337 * arm-tdep.c: Fix common/ includes.
12338 * arch/riscv.c: Fix common/ includes.
12339 * arch/ppc-linux-common.c: Fix common/ includes.
12340 * arch/i386.c: Fix common/ includes.
12341 * arch/arm.c: Fix common/ includes.
12342 * arch/arm-linux.c: Fix common/ includes.
12343 * arch/arm-get-next-pcs.c: Fix common/ includes.
12344 * arch/amd64.c: Fix common/ includes.
12345 * arch/aarch64.c: Fix common/ includes.
12346 * arch/aarch64-insn.c: Fix common/ includes.
12347 * arch-utils.c: Fix common/ includes.
12348 * amd64-windows-tdep.c: Fix common/ includes.
12349 * amd64-tdep.c: Fix common/ includes.
12350 * amd64-sol2-tdep.c: Fix common/ includes.
12351 * amd64-obsd-tdep.c: Fix common/ includes.
12352 * amd64-nbsd-tdep.c: Fix common/ includes.
12353 * amd64-linux-tdep.c: Fix common/ includes.
12354 * amd64-linux-nat.c: Fix common/ includes.
12355 * amd64-fbsd-tdep.c: Fix common/ includes.
12356 * amd64-fbsd-nat.c: Fix common/ includes.
12357 * amd64-dicos-tdep.c: Fix common/ includes.
12358 * amd64-darwin-tdep.c: Fix common/ includes.
12359 * agent.c: Fix common/ includes.
12360 * ada-lang.h: Fix common/ includes.
12361 * ada-lang.c: Fix common/ includes.
12362 * aarch64-tdep.c: Fix common/ includes.
12363
2f5c153e
TT
123642019-01-25 Tom Tromey <tom@tromey.com>
12365
12366 * common/create-version.sh: Use common/version.h.
12367
adc6a863
PA
123682019-01-24 Pedro Alves <palves@redhat.com>
12369
12370 * infrun.c (signal_stop, signal_print, signal_program)
12371 (signal_catch, signal_pass): Now arrays instead of pointers.
12372 (update_signals_program_target, do_target_resume)
12373 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12374 * linux-nat.c (linux_nat_target::pass_signals)
12375 (linux_nat_target::create_inferior, linux_nat_target::attach):
12376 Adjust.
12377 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12378 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12379 * procfs.c (procfs_target::pass_signals): Adjust.
12380 * record-full.c (record_full_target::resume): Adjust.
12381 * remote.c (remote_target::pass_signals)
12382 (remote_target::program_signals): Adjust.
12383 * target-debug.h (target_debug_print_signals): Now takes a
12384 gdb::array_view as parameter. Adjust.
12385 * target.h (target_ops) <pass_signals, program_signals>: Replace
12386 pointer and length parameters with gdb::array_view.
12387 (target_pass_signals, target_program_signals): Likewise.
12388 * target-delegates.c: Regenerate.
12389
3046d67a
PA
123902019-01-24 Pedro Alves <palves@redhat.com>
12391
12392 * common/forward-scope-exit.h
12393 (forward_scope_exit::forward_scope_exit): Pass arguments to
12394 m_bind_function directly, instead of creating a std::bind and
12395 copying that.
12396
353229bf
AH
123972019-01-24 Alan Hayward <alan.hayward@arm.com>
12398
12399 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12400 for static members.
12401 (pass_in_v_vfp_candidate): Likewise.
12402
311dc83a
TT
124032019-01-23 Tom Tromey <tom@tromey.com>
12404 Pedro Alves <palves@redhat.com>
12405
12406 * regcache.c (class regcache_invalidator): Remove.
12407 (regcache::raw_write): Use make_scope_exit.
12408
296bd123
TT
124092019-01-23 Tom Tromey <tom@tromey.com>
12410
12411 * ui-out.h (class ui_out_emit_type): Update comment.
12412
979a0d13
TT
124132019-01-23 Tom Tromey <tom@tromey.com>
12414
12415 * infrun.c (fetch_inferior_event): Update comment.
12416
d238133d
TT
124172019-01-23 Tom Tromey <tom@tromey.com>
12418 Pedro Alves <palves@redhat.com>
12419
12420 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12421 parameter.
12422 (fetch_inferior_event): Use SCOPE_EXIT.
12423
12424
9885e6bb
TT
124252019-01-23 Tom Tromey <tom@tromey.com>
12426 Pedro Alves <palves@redhat.com>
12427
12428 * infrun.c (disable_thread_events): Delete.
12429 (stop_all_threads): Use SCOPE_EXIT.
12430
286526c1
TT
124312019-01-23 Tom Tromey <tom@tromey.com>
12432 Pedro Alves <palves@redhat.com>
12433
12434 * symfile.c: Include forward-scope-exit.h.
12435 (clear_symtab_users_cleanup): Replace forward declaration with
12436 a FORWARD_SCOPE_EXIT.
12437 (syms_from_objfile_1): Use the forward_scope_exit and
12438 gdb::optional instead of cleanup_function.
12439 (reread_symbols): Use the forward_scope_exit instead of
12440 cleanup_function.
12441 (clear_symtab_users_cleanup): Remove function.
12442
1db93f14
TT
124432019-01-23 Tom Tromey <tom@tromey.com>
12444 Pedro Alves <palves@redhat.com>
12445
12446 * linux-nat.c: Include scope-exit.h.
12447 (cleanup_target_stop): Remove.
12448 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12449 SCOPE_EXIT.
12450
2cc83d1e
TT
124512019-01-23 Tom Tromey <tom@tromey.com>
12452 Pedro Alves <palves@redhat.com>
12453
12454 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12455 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12456
694c6bf5
TT
124572019-01-23 Tom Tromey <tom@tromey.com>
12458 Andrew Burgess <andrew.burgess@embecosm.com>
12459 Pedro Alves <palves@redhat.com>
12460
12461 * infrun.c (fetch_inferior_event): Use scope_exit.
12462 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12463 * top.c (execute_command): Use scope_exit.
12464 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12465 * utils.c (do_bpstat_clear_actions_cleanup)
12466 (make_bpstat_clear_actions_cleanup): Remove.
12467
4c41382a
TT
124682019-01-23 Tom Tromey <tom@tromey.com>
12469 Pedro Alves <palves@redhat.com>
12470
12471 * infrun.c: Include "common/scope-exit.h"
12472 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12473 (wait_for_inferior): Use SCOPE_EXIT.
12474 (fetch_inferior_event): Use scope_exit.
12475
89f8fb50
TT
124762019-01-23 Tom Tromey <tom@tromey.com>
12477 Pedro Alves <palves@redhat.com>
12478
12479 * breakpoint.c (create_breakpoint): Remove cleanup.
12480
5419bdae
TT
124812019-01-23 Tom Tromey <tom@tromey.com>
12482 Andrew Burgess <andrew.burgess@embecosm.com>
12483 Pedro Alves <palves@redhat.com>
12484
e587ef42
PA
124852019-01-23 Pedro Alves <palves@redhat.com>
12486
12487 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12488
77f0e74c
PA
124892019-01-23 Pedro Alves <palves@redhat.com>
12490 Andrew Burgess <andrew.burgess@embecosm.com>
12491
12492 * gdbthread.h: Include "common/forward-scope-exit.h".
12493 (scoped_finish_thread_state): Redefine custom class in terms of
12494 forward_scope_exit.
12495
5b9b3e53
PA
124962019-01-23 Pedro Alves <palves@redhat.com>
12497 Andrew Burgess <andrew.burgess@embecosm.com>
12498
12499 * common/forward-scope-exit.h: New file.
12500
54b65c9b
PA
125012019-01-23 Pedro Alves <palves@redhat.com>
12502 Andrew Burgess <andrew.burgess@embecosm.com>
12503 Tom Tromey <tom@tromey.com>
12504
12505 * common/scope-exit.h: New file.
12506
cf08fb29
PA
125072019-01-23 Pedro Alves <palves@redhat.com>
12508
12509 * common/preprocessor.h (ESC): Rename to ...
12510 (ESC_PARENS): ... this.
12511 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12512 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12513
ae73e2e2
TT
125142019-01-23 Tom Tromey <tom@tromey.com>
12515
12516 * language.h (class scoped_switch_to_sym_language_if_auto):
12517 Initialize m_lang in both cases.
12518
6594e122
AH
125192019-01-23 Alan Hayward <alan.hayward@arm.com>
12520
12521 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12522 with XCNEW.
12523
a7c9855d
TT
125242019-01-22 Tom Tromey <tom@tromey.com>
12525
12526 * corelow.c: Do not include sys/file.h.
12527
93cc1d53
TT
125282019-01-22 Tom Tromey <tom@tromey.com>
12529
12530 * tui/tui-wingeneral.h: Include gdb_curses.h.
12531
38561778
TT
125322019-01-22 Tom Tromey <tom@tromey.com>
12533
12534 * source-cache.h (class source_cache) <get_source_lines,
12535 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12536
37b3ab5b
TT
125372019-01-22 Tom Tromey <tom@tromey.com>
12538
12539 * remote-fileio.h (struct remote_target): Declare.
12540
3fabc016
TT
125412019-01-22 Tom Tromey <tom@tromey.com>
12542
12543 * python/py-arch.c: Do not include py-ref.h.
12544 * python/py-bpevent.c: Do not include py-ref.h.
12545 * python/py-cmd.c: Do not include py-ref.h.
12546 * python/py-continueevent.c: Do not include py-ref.h.
12547 * python/py-event.h: Do not include py-ref.h.
12548 * python/py-evtregistry.c: Do not include py-ref.h.
12549 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12550 * python/py-frame.c: Do not include py-ref.h.
12551 * python/py-framefilter.c: Do not include py-ref.h.
12552 * python/py-function.c: Do not include py-ref.h.
12553 * python/py-infevents.c: Do not include py-ref.h.
12554 * python/py-linetable.c: Do not include py-ref.h.
12555 * python/py-objfile.c: Do not include py-ref.h.
12556 * python/py-param.c: Do not include py-ref.h.
12557 * python/py-prettyprint.c: Do not include py-ref.h.
12558 * python/py-progspace.c: Do not include py-ref.h.
12559 * python/py-symbol.c: Do not include py-ref.h.
12560 * python/py-symtab.c: Do not include py-ref.h.
12561 * python/py-type.c: Do not include py-ref.h.
12562 * python/py-unwind.c: Do not include py-ref.h.
12563 * python/py-utils.c: Do not include py-ref.h.
12564 * python/py-value.c: Do not include py-ref.h.
12565 * python/py-varobj.c: Do not include py-ref.h.
12566 * python/py-xmethods.c: Do not include py-ref.h.
12567 * python/python.c: Do not include py-ref.h.
12568 * varobj.c: Do not include py-ref.h.
12569
6b4d7774
TT
125702019-01-22 Tom Tromey <tom@tromey.com>
12571
12572 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12573 keyword for bcache.
12574
7af7e9b5
TT
125752019-01-22 Tom Tromey <tom@tromey.com>
12576
12577 * compile/compile-cplus-types.c: Remove a comment by #include.
12578
951d1049
TT
125792019-01-22 Tom Tromey <tom@tromey.com>
12580
12581 * compile/gcc-c-plugin.h: Include compile-internal.h.
12582
d65d5705
TT
125832019-01-22 Tom Tromey <tom@tromey.com>
12584
12585 * stabsread.c (EXTERN): Do not define.
12586 (symnum, next_symbol_text_func, processing_gcc_compilation)
12587 (within_function, global_sym_chain, global_stabs)
12588 (previous_stab_code, this_object_header_files)
12589 (n_this_object_header_files)
12590 (n_allocated_this_object_header_files): Define.
12591 * stabsread.h (EXTERN): Never define. Use "extern".
12592
b6fb1ee5
PW
125932019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12594
12595 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12596 history_value.
12597
be6d4f74
TT
125982019-01-21 Tom Tromey <tom@tromey.com>
12599
12600 * ui-out.c: Fix includes.
12601 * tui/tui-source.c: Fix includes.
12602 * target.c: Fix includes.
12603 * remote.c: Fix includes.
12604 * regcache.c: Fix includes.
12605 * python/py-block.c: Fix includes.
12606 * printcmd.c: Fix includes.
12607 * or1k-tdep.c: Fix includes.
12608 * mi/mi-main.c: Fix includes.
12609 * m32r-tdep.c: Fix includes.
12610 * csky-tdep.c: Fix includes.
12611 * compile/compile-cplus-types.c: Fix includes.
12612 * cli/cli-interp.c: Fix includes.
12613
73021deb
AH
126142019-01-21 Alan Hayward <alan.hayward@arm.com>
12615
12616 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12617 for padding.
12618
7932255d
TT
126192019-01-16 Tom Tromey <tom@tromey.com>
12620
12621 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12622 earlier.
12623 (struct objfile) <msymbols_range>: Move from top level.
12624 <msymbols>: New method.
12625 (class objfile_msymbols): Remove.
12626 * symtab.c (default_collect_symbol_completion_matches_break_on):
12627 Update.
12628 * symmisc.c (dump_msymbols): Update.
12629 * stabsread.c (scan_file_globals): Update.
12630 * objc-lang.c (info_selectors_command, info_classes_command)
12631 (find_methods): Update.
12632 * minsyms.c (find_solib_trampoline_target): Update.
12633 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12634 * coffread.c (coff_symfile_read): Update.
12635 * ada-lang.c (ada_lookup_simple_minsym)
12636 (ada_collect_symbol_completion_matches): Update.
12637
604b1bfb
TT
126382019-01-16 Tom Tromey <tom@tromey.com>
12639
12640 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12641 type. Remove no-argument constructor.
12642 <iterator::operator++>: Simplify.
12643 <begin>: Update.
12644 <end>: Use minimal_symbol_count.
12645
f252c6d5
TT
126462019-01-16 Tom Tromey <tom@tromey.com>
12647
12648 * objfiles.h (struct objfile) <psymtabs>: New method.
12649 (class objfile_psymtabs): Remove.
12650 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12651 typedef.
12652 <range>: New method.
12653 (require_partial_symbols): Change return type.
12654 * psymtab.c (require_partial_symbols)
12655 (psym_expand_symtabs_matching): Update.
12656 * mdebugread.c (parse_partial_symbols): Update.
12657 * dbxread.c (dbx_end_psymtab): Update.
12658
b669c953
TT
126592019-01-15 Tom Tromey <tom@tromey.com>
12660
12661 * symtab.c (lookup_objfile_from_block)
12662 (lookup_symbol_in_objfile_symtabs)
12663 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12664 (find_line_symtab, info_sources_command)
12665 (default_collect_symbol_completion_matches_break_on)
12666 (make_source_files_completion_list): Update.
12667 * symmisc.c (print_objfile_statistics, dump_objfile)
12668 (maintenance_print_symbols, maintenance_info_symtabs)
12669 (maintenance_check_symtabs, maintenance_info_line_tables):
12670 Update.
12671 * source.c (select_source_symtab)
12672 (forget_cached_source_info_for_objfile): Update.
12673 * objfiles.h (class objfile_compunits): Remove.
12674 (struct objfile) <compunits_range>: New typedef.
12675 (compunits): New method.
12676 * objfiles.c (objfile_relocate1): Update.
12677 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12678 * maint.c (count_symtabs_and_blocks): Update.
12679 * linespec.c (iterate_over_all_matching_symtabs): Update.
12680 * cp-support.c (add_symbol_overload_list_qualified): Update.
12681 * coffread.c (coff_symtab_read): Update.
12682 * ada-lang.c (add_nonlocal_symbols)
12683 (ada_collect_symbol_completion_matches)
12684 (ada_add_global_exceptions): Update.
12685
7e955d83
TT
126862019-01-15 Tom Tromey <tom@tromey.com>
12687
12688 * progspace.h (program_space) <objfiles_safe_range>: New
12689 typedef.
12690 <objfiles_safe>: New method.
12691 * objfiles.h (class all_objfiles_safe): Remove.
12692 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12693 * jit.c (jit_inferior_exit_hook): Update.
12694
2030c079
TT
126952019-01-17 Tom Tromey <tom@tromey.com>
12696
12697 * progspace.h (program_space) <objfiles_range>: New typedef.
12698 <objfiles>: New method.
12699 <objfiles_head>: Rename from objfiles.
12700 (object_files): Update.
12701 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12702 * guile/scm-pretty-print.c
12703 (ppscm_find_pretty_printer_from_objfiles): Update.
12704 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12705 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12706 Update.
12707 * python/py-progspace.c (pspy_get_objfiles): Update.
12708 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12709 Update.
12710 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12711 (objfpy_lookup_objfile_by_build_id): Update.
12712 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12713 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12714 Update.
12715 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12716 (expand_symtab_containing_pc, lookup_objfile_from_block)
12717 (lookup_static_symbol, basic_lookup_transparent_type)
12718 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12719 (find_line_symtab, info_sources_command)
12720 (default_collect_symbol_completion_matches_break_on)
12721 (make_source_files_completion_list, find_main_name): Update.
12722 * symmisc.c (print_symbol_bcache_statistics)
12723 (print_objfile_statistics, maintenance_print_symbols)
12724 (maintenance_print_msymbols, maintenance_print_objfiles)
12725 (maintenance_info_symtabs, maintenance_check_symtabs)
12726 (maintenance_expand_symtabs, maintenance_info_line_tables):
12727 Update.
12728 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12729 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12730 (map_overlay_command, unmap_overlay_command)
12731 (simple_overlay_update, expand_symtabs_matching)
12732 (map_symbol_filenames): Update.
12733 * symfile-debug.c (set_debug_symfile): Update.
12734 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12735 Update.
12736 * source.c (select_source_symtab, forget_cached_source_info):
12737 Update.
12738 * solib.c (solib_read_symbols): Update.
12739 * solib-spu.c (append_ocl_sos): Update.
12740 * psymtab.c (maintenance_print_psymbols)
12741 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12742 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12743 * printcmd.c (info_symbol_command): Update.
12744 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12745 Update.
12746 * objfiles.h (class all_objfiles): Remove.
12747 * objfiles.c (have_partial_symbols, have_full_symbols)
12748 (have_minimal_symbols, qsort_cmp, update_section_map)
12749 (shared_objfile_contains_address_p)
12750 (default_iterate_over_objfiles_in_search_order): Update.
12751 * objc-lang.c (info_selectors_command, info_classes_command)
12752 (find_methods): Update.
12753 * minsyms.c (find_solib_trampoline_target): Update.
12754 * maint.c (maintenance_info_sections)
12755 (maintenance_translate_address, count_symtabs_and_blocks):
12756 Update.
12757 * main.c (captured_main_1): Update.
12758 * linux-thread-db.c (try_thread_db_load_from_pdir)
12759 (has_libpthread): Update.
12760 * linespec.c (iterate_over_all_matching_symtabs)
12761 (search_minsyms_for_name): Update.
12762 * jit.c (jit_find_objf_with_entry_addr): Update.
12763 * hppa-tdep.c (find_unwind_entry)
12764 (hppa_lookup_stub_minimal_symbol): Update.
12765 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12766 Update.
12767 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12768 (elf_gnu_ifunc_resolve_by_got): Update.
12769 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12770 * dwarf-index-write.c (save_gdb_index_command): Update.
12771 * cp-support.c (add_symbol_overload_list_qualified): Update.
12772 * breakpoint.c (create_overlay_event_breakpoint)
12773 (create_longjmp_master_breakpoint)
12774 (create_std_terminate_master_breakpoint)
12775 (create_exception_master_breakpoint): Update.
12776 * blockframe.c (find_pc_partial_function): Update.
12777 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12778 (ada_collect_symbol_completion_matches)
12779 (ada_add_global_exceptions): Update.
12780
776489e0
TT
127812019-01-17 Tom Tromey <tom@tromey.com>
12782
12783 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12784 declare VEC.
12785 (solib_target_parse_libraries): Change return type.
12786 (library_list_start_segment, library_list_start_section)
12787 (library_list_end_library, library_list_start_library); Update.
12788 (solib_target_free_library_list): Remove.
12789 (solib_target_parse_libraries): Remove cleanup. Change return
12790 type.
12791 (solib_target_current_sos): Update.
12792
6471e7d2
TT
127932019-01-17 Tom Tromey <tromey@bapiya>
12794
12795 * valprint.c: Replace "the the" with "the".
12796 * symtab.c: Replace "the the" with "the".
12797 * solib.c: Replace "the the" with "the".
12798 * solib-dsbt.c: Replace "the the" with "the".
12799 * linespec.c: Replace "the the" with "the".
12800 * dwarf2loc.h: Replace "the the" with "the".
12801 * amd64-windows-tdep.c: Replace "the the" with "the".
12802 * aarch64-tdep.c: Replace "the the" with "the".
12803
c24bdb02
KS
128042019-01-16 Keith Seitz <keiths@redhat.com>
12805
12806 PR gdb/23773
12807 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12808 <builder>: Rename to ..
12809 <m_builder>: ... this and make private.
12810 (dwarf2_cu::get_builder): New method. Change all users of
12811 `builder' to use this method.
12812 (dwarf2_start_symtab): Move to ...
12813 (dwarf2_cu::start_symtab): ... here. Update all callers
12814 (setup_type_unit_groups): Move to ...
12815 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12816 callers.
12817 (dwarf2_cu::reset_builder): New method.
12818 (process_full_compunit, process_full_type_unit): Use
12819 dwarf2_cu::reset_builder.
12820 (follow_die_offset): Record the ancestor CU if it is different
12821 from the followed DIE's CU.
12822 (follow_die_sig_1): Likewise.
12823
8d64371b
TT
128242019-01-15 Tom Tromey <tom@tromey.com>
12825
12826 * remote.c (class remote_state) <buf>: Now a char_vector.
12827 <buf_size>: Remove.
12828 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12829 parameter.
12830 (remote_target::getpkt_or_notif_sane_1)
12831 (remote_target::getpkt_sane)
12832 (remote_target::getpkt_or_notif_sane): Likewise.
12833 (class remote_target) <putpkt>: New overload.
12834 (remote_target::read_frame): Change type of "buf_p". Remove
12835 sizeof_p parameter.
12836 (packet_ok): New overload.
12837 (packet_check_result): New overload.
12838 Update all uses.
12839
bb277751
TT
128402019-01-14 Tom Tromey <tom@tromey.com>
12841
12842 * remote-notif.c (handle_notification, remote_notif_ack)
12843 (remote_notif_parse): Make "buf" const.
12844 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12845 const.
12846 (remote_notif_parse, remote_notif_ack, handle_notification):
12847 Likewise.
12848 * remote.c (remote_notif_stop_parse): Make "buf" const.
12849 (remote_target::remote_parse_stop_reply): Make "buf" const.
12850 (remote_notif_stop_ack): Make "buf" const.
12851
05be00a8
TT
128522019-01-14 Tom Tromey <tom@tromey.com>
12853
12854 * remote.c (remote_console_output): Make parameter const.
12855
491adeca
TT
128562019-01-14 Tom Tromey <tom@tromey.com>
12857
12858 * target-debug.h (target_debug_print_signals): Constify.
12859 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12860 * procfs.c (procfs_target::pass_signals): Update.
12861 * linux-nat.c (linux_nat_target::pass_signals): Update.
12862 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12863 * target-delegates.c: Rebuild.
12864 * remote.c (remote_target::program_signals): Update.
12865 (remote_target::pass_signals): Update.
12866 * target.c (target_pass_signals): Constify argument.
12867 (target_program_signals): Likewise.
12868 * target.h (struct target_ops) <pass_signals, program_signals>:
12869 Constify argument.
12870 (target_pass_signals, target_program_signals): Constify argument.
12871
bbd94648
TT
128722019-01-14 Tom Tromey <tom@tromey.com>
12873
12874 PR tui/28819:
12875 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12876
6f072a10
PFC
128772019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12878
12879 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12880 field.
12881 * rs6000-tdep.c: Include reggroups.h.
12882 (IS_V_ALIAS_PSEUDOREG): Define.
12883 (rs6000_register_name): Return names for the "vX" aliases.
12884 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12885 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12886 aliases. Call default_register_reggroup_p for all other
12887 pseudo-registers.
12888 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12889 New functions.
12890 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12891 Handle "vX" aliases.
12892 (v_alias_pseudo_register_collect): New function.
12893 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12894 (rs6000_gdbarch_init): Initialize "vX" aliases as
12895 pseudo-registers. Restore registration of
12896 rs6000_pseudo_register_reggroup_p with
12897 set_tdesc_pseudo_register_reggroup_p.
12898
1a782351
MF
128992019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12900
12901 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12902 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12903 set_gdbarch_num_pseudo_regs.
12904
d73cff18
PW
129052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12906
12907 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12908 Remove arg prefixname, add do_set and do_show.
12909 Add member functions set_list and show_list.
12910 * cli/cli-style.c (class cli_style_option): Update accordingly.
12911 (style_set_list): Move to file scope.
12912 (style_show_list): Likewise.
12913 (set_style): Call help_list.
12914 (show_style): Call cmd_show_list.
12915 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12916 Update to use the new macro.
12917
60a90376
JB
129182019-10-12 Joel Brobecker <brobecker@adacore.com>
12919
12920 * ada-lang.c (_initialize_ada_language): Expand the help text
12921 for the "catch exception" command.
12922
9d7c67bf
PW
129232019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12924
12925 * symtab.c (matching_obj_sections): Initialize obj,
12926 declare it closer to its usage.
12927
7cf47dc4
TT
129282019-01-10 Tom Tromey <tom@tromey.com>
12929
12930 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12931 (basic_inf_threads_range): Remove.
12932 (inf_threads_range, inf_non_exited_threads_range)
12933 (safe_inf_threads_range): Use next_adapter.
12934
d3cb6808
KS
129352019-01-10 Keith Seitz <keiths@redhat.com>
12936
12937 PR gdb/23712
12938 PR symtab/23010
12939 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12940 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12941
63a20375
KS
129422019-01-10 Keith Seitz <keiths@redhat.com>
12943
12944 PR gdb/23712
12945 PR symtab/23010
12946 * dictionary.c (pending_to_vector): Remove.
12947 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12948 Remove _1 suffix, replacing functions of the same name. Update
12949 all callers.
12950 (dict_create_hashed, dict_create_hashed_expandable)
12951 (dict_create_linear, dict_create_linear_expandable, dict_free)
12952 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12953 Make functions static.
12954
b026f593
KS
129552019-01-10 Keith Seitz <keiths@redhat.com>
12956
12957 PR gdb/23712
12958 PR symtab/23010
12959 * dictionary.h (struct dictionary): Replace declaration with
12960 multidictionary.
12961 (dict_create_hashed, dict_create_hashed_expandable)
12962 (dict_create_linear, dict_create_linear_expandable)
12963 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12964 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12965 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12966 taking multidictionary argument.
12967 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12968 * block.h (struct block) <dict>: Change to multidictionary
12969 and rename `multidict'.
12970 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12971 symmisc.c: Update all dictionary references to multidictionary.
12972
c7748ee9
KS
129732019-01-10 Keith Seitz <keiths@redhat.com>
12974
12975 PR gdb/23712
12976 PR symtab/23010
12977 * dictionary.c: Include unordered_map.
12978 (pending_to_vector): New function.
12979 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12980 Rewrite the non-"_1" functions to take vector instead
12981 of linked list.
12982 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12983 "new" _1 versions of the same name.
12984 (multidictionary): Define.
12985 (std::hash<enum language): New definition.
12986 (collate_pending_symbols_by_language, mdict_create_hashed)
12987 (mdict_create_hashed_expandable, mdict_create_linear)
12988 (mdict_create_linear_expandable, mdict_free)
12989 (find_language_dictionary, create_new_language_dictionary)
12990 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12991 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12992 (mdict_size, mdict_empty): New functions.
12993 * dictionary.h (mdict_iterator): Define.
12994
67aa1f3c
PA
129952019-01-10 Pedro Alves <palves@redhat.com>
12996
12997 * breakpoint.c (read_uploaded_action)
12998 (create_tracepoint_from_upload): Adjust to use
12999 gdb::unique_xmalloc_ptr.
13000 * ctf.c (ctf_write_uploaded_tp):
13001 (SET_ARRAY_FIELD): Use emplace_back.
13002 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13003 * tracefile-tfile.c (tfile_write_uploaded_tp):
13004 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13005 gdb::unique_xmalloc_ptr.
13006 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13007 at_string, cond_string, cmd_strings>: Replace char pointers
13008 with gdb::unique_xmalloc_ptr.
13009
2f667667
PA
130102019-01-10 Pedro Alves <palves@redhat.com>
13011
13012 * solib-target.c (library_list_start_library): Don't xstrdup name.
13013
36cb7237
PA
130142019-01-10 Pedro Alves <palves@redhat.com>
13015
13016 * mdebugread.c (parse_partial_symbols): Use
13017 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13018
da584958
AB
130192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13020
13021 * linux-fork.c (scoped_switch_fork_info)
13022 <~scoped_switch_fork_info>: Fix incorrect variable name.
13023
1ef8573c
AB
130242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13025
13026 * linux-fork.c (scoped_switch_fork_info)
13027 <scoped_switch_fork_info>: Make explicit.
13028 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13029
8d7bcccb
TT
130302019-01-10 Tom Tromey <tom@tromey.com>
13031
13032 * objfiles.h (objfile::reset_psymtabs): Update.
13033 * objfiles.c (objfile::objfile): Update.
13034 * psymtab.h (psymtab_storage::obstack): Update.
13035 (psymtab_storage::m_obstack): Use gdb::optional.
13036 (class psymtab_storage): Update comment. Remove objfile
13037 parameter.
13038 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13039
b596a3c7
TT
130402019-01-10 Tom Tromey <tom@tromey.com>
13041
13042 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13043 <free_psymtabs>: Now private.
13044 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13045 (allocate_psymtab): Use new method.
13046
a9342b62
TT
130472019-01-10 Tom Tromey <tom@tromey.com>
13048
13049 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13050 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13051 * mdebugread.c (parse_partial_symbols): Use
13052 allocate_dependencies.
13053 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13054 allocate_dependencies.
13055 (process_psymtab_comp_unit_reader)
13056 (build_type_psymtab_dependencies): Likewise.
13057 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13058
5af70966
TT
130592019-01-10 Tom Tromey <tom@tromey.com>
13060
13061 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13062 PSYMBOL_SET_LANGUAGE.
13063 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13064
5923a04c
TT
130652019-01-10 Tom Tromey <tom@tromey.com>
13066
13067 * psymtab.h (psymtab_storage::obstack): New method.
13068 <m_obstack>: Rename from obstack; now private.
13069 * psymtab.c (psymtab_storage): Update.
13070 * dwarf2read.c (create_addrmap_from_index)
13071 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13072 Update.
13073
6d6a12bf
TT
130742019-01-10 Tom Tromey <tom@tromey.com>
13075
13076 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13077 * objfiles.h (objfile::reset_psymtabs): New method.
13078
d320c2b5
TT
130792019-01-10 Tom Tromey <tom@tromey.com>
13080
13081 * symmisc.c (print_symbol_bcache_statistics): Update.
13082 (print_objfile_statistics): Update.
13083 * symfile.c (reread_symbols): Update.
13084 * psymtab.h (class psymtab_storage): New.
13085 * psymtab.c (psymtab_storage): New constructor.
13086 (~psymtab_storage): New destructor.
13087 (require_partial_symbols): Update.
13088 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13089 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13090 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13091 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13092 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13093 (start_psymtab_common, end_psymtab_common)
13094 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13095 (allocate_psymtab): Update.
13096 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13097 Update.
13098 (dump_psymtab_addrmap, maintenance_print_psymbols)
13099 (maintenance_check_psymtabs): Update.
13100 (class objfile_psymtabs): Move to objfiles.h.
13101 * psympriv.h (discard_psymtab): Now inline.
13102 (psymtab_discarder::psymtab_discarder): Update.
13103 (psymtab_discarder::~psymtab_discarder): Update.
13104 (ALL_OBJFILE_PSYMTABS): Rewrite.
13105 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13106 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13107 Remove fields.
13108 <partial_symtabs>: New field.
13109 (class objfile_psymtabs): Move from psymtab.h. Update.
13110 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13111 psymbol_cache.
13112 (objfile::~objfile): Don't destroy psymbol_cache.
13113 * mdebugread.c (parse_partial_symbols): Update.
13114 * dwarf2read.c (create_addrmap_from_index)
13115 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13116 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13117 (add_partial_subprogram, dwarf2_ranges_read): Update.
13118 * dwarf-index-write.c (write_address_map)
13119 (write_one_signatured_type, recursively_write_psymbols)
13120 (class debug_names, class debug_names, write_psymtabs_to_index):
13121 Update.
13122
1d94a5a3
TT
131232019-01-10 Tom Tromey <tom@tromey.com>
13124
13125 * symtab.h (SYMBOL_SET_NAMES): Update.
13126 (symbol_set_names): Update.
13127 (MSYMBOL_SET_NAMES): Update.
13128 * symtab.c (symbol_set_names): Change argument to be an
13129 objfile_per_bfd_storage.
13130 * psymtab.c (add_psymbol_to_bcache): Update.
13131 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13132
0f14768a
TT
131332019-01-10 Tom Tromey <tom@tromey.com>
13134
13135 * symtab.c (create_demangled_names_hash): Change argument to be an
13136 objfile_per_bfd_storage.
13137 (symbol_set_names): Update.
13138
6eee24ce
TT
131392019-01-10 Tom Tromey <tom@tromey.com>
13140
13141 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13142 init_psymbol_list.
13143 * psymtab.c (init_psymbol_list): Do nothing if already called.
13144 * psympriv.h (init_psymbol_list): Add comment.
13145 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13146 init_psymbol_list.
13147 * dbxread.c (dbx_symfile_read): Unconditionally call
13148 init_psymbol_list.
13149
75aedd27
TT
131502019-01-10 Tom Tromey <tom@tromey.com>
13151
13152 * xcoffread.c (scan_xcoff_symtab): Update.
13153 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13154 "where".
13155 * mdebugread.c (parse_partial_symbols)
13156 (handle_psymbol_enumerators): Update.
13157 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13158 * dbxread.c (read_dbx_symtab): Update.
13159 * psympriv.h (psymbol_placement): New enum.
13160 (add_psymbol_to_list): Update.
13161
939652a5
TT
131622019-01-10 Tom Tromey <tom@tromey.com>
13163
13164 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13165 static_psymbols parameters.
13166 (scan_xcoff_symtab): Update.
13167 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13168 static_psymbols parameters.
13169 * psympriv.h (start_psymtab_common): Update.
13170 * mdebugread.c (parse_partial_symbols): Update.
13171 * dwarf2read.c (create_partial_symtab): Update.
13172 * dbxread.c (read_dbx_symtab): Update.
13173 (start_psymtab): Remove global_psymbols and static_psymbols
13174 parameters.
13175
baa62830
TT
131762019-01-10 Tom Tromey <tom@tromey.com>
13177
13178 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13179 * psymtab.c (allocate_psymtab): Add comment.
13180 * psympriv.h (allocate_psymtab): Add comment.
13181 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13182 initializations.
13183 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13184
0e8f53ba
TT
131852019-01-10 Tom Tromey <tom@tromey.com>
13186
13187 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13188 Don't declare.
13189 * mipsread.c: Include mdebugread.h.
13190 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13191 Declare.
13192 * elfread.c: Include mdebugread.h.
13193
b22a7c6a
TT
131942019-01-09 Tom Tromey <tom@tromey.com>
13195
13196 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13197 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13198 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13199 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13200 (psym_lookup_symbol, psym_find_last_source_symtab)
13201 (psym_forget_cached_source_info, psym_print_stats)
13202 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13203 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13204 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13205 (psym_find_compunit_symtab_by_address)
13206 (maintenance_print_psymbols, maintenance_info_psymtabs)
13207 (maintenance_check_psymtabs): Use ranged for.
13208 * psymtab.h (class objfile_psymtabs): New.
13209 (require_partial_symbols): Return objfile_psymtabs.
13210 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13211
3b9d3ac2
TT
132122019-01-09 Tom Tromey <tom@tromey.com>
13213
13214 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13215 (find_pc_mapped_section, list_overlays_command)
13216 (map_overlay_command, unmap_overlay_command)
13217 (simple_overlay_update): Use all_objfiles.
13218 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13219 * printcmd.c (info_symbol_command): Use all_objfiles.
13220 * objfiles.h (ALL_OBJSECTIONS): Remove.
13221 * maint.c (maintenance_translate_address): Use all_objfiles.
13222 * gcore.c (gcore_create_callback): Use all_objfiles.
13223 (objfile_find_memory_regions): Likewise.
13224
8b31193a
TT
132252019-01-09 Tom Tromey <tom@tromey.com>
13226
13227 * symtab.c (find_line_symtab, info_sources_command)
13228 (make_source_files_completion_list): Use objfile_compunits.
13229 * source.c (select_source_symtab): Use objfile_compunits.
13230 * objfiles.h (struct objfile): Update comment.
13231 (ALL_OBJFILES): Remove.
13232 (ALL_FILETABS): Remove.
13233 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13234 objfile_compunits.
13235
d5da8b3c
TT
132362019-01-09 Tom Tromey <tom@tromey.com>
13237
13238 * symmisc.c (print_objfile_statistics, dump_objfile)
13239 (maintenance_print_symbols): Use compunit_filetabs.
13240 * source.c (forget_cached_source_info_for_objfile): Use
13241 compunit_filetabs.
13242 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13243 (ALL_FILETABS): Use compunit_filetabs.
13244 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13245 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13246
5accd1a0
TT
132472019-01-09 Tom Tromey <tom@tromey.com>
13248
13249 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13250 (compunit_filetabs): New.
13251 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13252 compunit_filetabs.
13253 (info_sources_command, make_source_files_completion_list): Remove
13254 declaration.
13255 * symmisc.c (print_objfile_statistics, dump_objfile)
13256 (maintenance_print_symbols): Remove declaration.
13257 (maintenance_info_symtabs): Use compunit_filetabs.
13258 (maintenance_info_line_tables): Likewise.
13259 * source.c (select_source_symtab): Change local variable name.
13260 (forget_cached_source_info_for_objfile): Remove declaration.
13261 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13262 * objfiles.c (objfile_relocate1): Remove declaration.
13263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13264 declaration.
13265 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13266 * coffread.c (coff_symtab_read): Remove declaration.
13267 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13268 compunit_filetabs.
13269
d8aeb77f
TT
132702019-01-09 Tom Tromey <tom@tromey.com>
13271
13272 * symtab.c (lookup_objfile_from_block)
13273 (find_pc_sect_compunit_symtab, search_symbols)
13274 (default_collect_symbol_completion_matches_break_on): Use
13275 objfile_compunits.
13276 * objfiles.h (ALL_COMPUNITS): Remove.
13277 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13278 * cp-support.c (add_symbol_overload_list_qualified): Use
13279 objfile_compunits.
13280 * ada-lang.c (ada_collect_symbol_completion_matches)
13281 (ada_add_global_exceptions): Use objfile_compunits.
13282
592553c4
TT
132832019-01-09 Tom Tromey <tom@tromey.com>
13284
13285 * source.c (select_source_symtab)
13286 (forget_cached_source_info_for_objfile): Remove declaration.
13287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13288 declaration.
13289 * maint.c (count_symtabs_and_blocks): Remove declaration.
13290 * cp-support.c (add_symbol_overload_list_qualified): Remove
13291 declaration.
13292 * coffread.c (coff_symtab_read): Remove declaration.
13293 * symtab.c (lookup_symbol_in_objfile_symtabs)
13294 (basic_lookup_transparent_type_1): Use objfile_compunits.
13295 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13296 (info_sources_command, search_symbols)
13297 (default_collect_symbol_completion_matches_break_on)
13298 (make_source_files_completion_list): Remove declaration.
13299 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13300 (ada_collect_symbol_completion_matches)
13301 (ada_add_global_exceptions): Remove declaration.
13302 * linespec.c (iterate_over_all_matching_symtabs): Use
13303 objfile_compunits.
13304 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13305 (class objfile_compunits): New.
13306 (ALL_COMPUNITS): Use objfile_compunits.
13307 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13308 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13309 objfile_compunits.
13310 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13311
5325b9bf
TT
133122019-01-09 Tom Tromey <tom@tromey.com>
13313
13314 * symtab.c (search_symbols)
13315 (default_collect_symbol_completion_matches_break_on): Use
13316 objfile_msymbols.
13317 * ada-lang.c (ada_lookup_simple_minsym)
13318 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13319 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13320 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13321 objfile_msymbols.
13322 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13323 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13324 * objc-lang.c (find_methods): Use objfile_msymbols.
13325 (info_selectors_command, info_classes_command): Likewise.
13326 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13327 * objfiles.h (class objfile_msymbols): New.
13328 (ALL_OBJFILE_MSYMBOLS): Remove.
13329 (ALL_MSYMBOLS): Remove.
13330
cac85af2
TT
133312019-01-09 Tom Tromey <tom@tromey.com>
13332
13333 * common/next-iterator.h (next_adapter): Add Iterator template
13334 parameter.
13335 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13336 (class all_objfiles_safe): New.
13337 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13338 * objfiles.c (put_objfile_before): Update comment.
13339 (add_separate_debug_objfile): Likewise.
13340 (free_all_objfiles): Use all_objfiles_safe.
13341 (objfile_purge_solibs): Likewise.
13342
aed57c53
TT
133432019-01-09 Tom Tromey <tom@tromey.com>
13344
13345 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13346 (expand_symtab_containing_pc, lookup_static_symbol)
13347 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13348 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13349 all_objfiles.
13350 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13351 * breakpoint.c (create_overlay_event_breakpoint)
13352 (create_longjmp_master_breakpoint)
13353 (create_std_terminate_master_breakpoint)
13354 (create_exception_master_breakpoint): Use all_objfiles.
13355 * linux-thread-db.c (try_thread_db_load_from_pdir)
13356 (has_libpthread): Use all_objfiles.
13357 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13358 * linespec.c (iterate_over_all_matching_symtabs)
13359 (search_minsyms_for_name): Use all_objfiles.
13360 * maint.c (maintenance_info_sections): Use all_objfiles.
13361 * main.c (captured_main_1): Use all_objfiles.
13362 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13363 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13364 * guile/scm-pretty-print.c
13365 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13366 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13367 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13368 (maintenance_print_msymbols): Use all_objfiles.
13369 * source.c (select_source_symtab): Use all_objfiles.
13370 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13371 * symfile.c (remove_symbol_file_command)
13372 (expand_symtabs_matching, map_symbol_filenames): Use
13373 all_objfiles.
13374 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13375 all_objfiles.
13376 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13377 * objc-lang.c (find_methods): Use all_objfiles.
13378 * objfiles.c (have_partial_symbols, have_full_symbols)
13379 (have_minimal_symbols, qsort_cmp)
13380 (default_iterate_over_objfiles_in_search_order): Use
13381 all_objfiles.
13382 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13383 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13384 (maintenance_check_psymtabs): Use all_objfiles.
13385 (ALL_PSYMTABS): Remove.
13386 * compile/compile-object-run.c (do_module_cleanup): Use
13387 all_objfiles.
13388 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13389 * cp-support.c (add_symbol_overload_list_qualified): Use
13390 all_objfiles.
13391 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13392 Use all_objfiles.
13393 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13394 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13395 all_objfiles.
13396 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13397 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13398 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13399 Uses all_objfiles.
13400 * solib.c (solib_read_symbols): Use all_objfiles
13401
99d89cde
TT
134022019-01-09 Tom Tromey <tom@tromey.com>
13403
13404 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13405 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13406 all_objfiles.
13407 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13408 * symmisc.c (print_symbol_bcache_statistics)
13409 (print_objfile_statistics, maintenance_print_objfiles)
13410 (maintenance_info_symtabs, maintenance_check_symtabs)
13411 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13412 all_objfiles.
13413 * source.c (forget_cached_source_info): Use all_objfiles.
13414 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13415 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13416 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13417 * objfiles.c (update_section_map): Use all_objfiles.
13418 (shared_objfile_contains_address_p): Likewise.
13419 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13420 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13421
21708325
TT
134222019-01-09 Tom Tromey <tom@tromey.com>
13423
13424 * common/next-iterator.h: New file.
13425 * objfiles.h (class all_objfiles): New.
13426 (struct objfile_iterator): New.
13427
669e09f6
PW
134282019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13429
13430 * NEWS: Move the description of the changed "frame", "select-frame",
13431 and "info frame" commands to the Changed commands section.
13432
041be526
SM
134332019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13434
13435 * gdbtypes.c (check_stub_method_group): Remove handling of old
13436 mangling schemes.
13437 * linespec.c (find_methods): Likewise.
13438 * stabsread.c (read_member_functions): Likewise.
13439 * valops.c (search_struct_method): Likewise.
13440 (value_struct_elt_for_reference): Likewise.
13441 * NEWS: Mention this change.
13442
0e2a2133
AB
134432019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13444
13445 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13446 print_source_lines.
13447 * source.c (print_source_lines_base): Update line number check.
13448 (print_source_lines): New function.
13449 (source_lines_range::source_lines_range): New function.
13450 * source.h (class source_lines_range): New class.
13451 (print_source_lines): New declaration.
13452
1055a3b4
PW
134532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13454
13455 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13456
cfeadda5
TT
134572019-01-08 Tom Tromey <tom@tromey.com>
13458 Simon Marchi <simon.marchi@ericsson.com>
13459
13460 PR gdb/24060
13461 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13462 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13463 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13464 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13465 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13466 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13467
583068ca
AB
134682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13469
13470 * source.c (select_source_symtab): Move header comment to
13471 declaration in source.h.
13472 (forget_cached_source_info_for_objfile): Likewise.
13473 (forget_cached_source_info): Likewise.
13474 (identify_source_line): Likewise.
13475 * source.h (identify_source_line): Move declaration from symtab.h
13476 and add comment from source.c
13477 (print_source_lines): Likewise.
13478 (forget_cached_source_info_for_objfile): Likewise.
13479 (forget_cached_source_info): Likewise.
13480 (select_source_symtab): Likewise.
13481 (enum print_source_lines_flag): Move definition from symtab.h.
13482 * symtab.h (identify_source_line): Move declaration to source.h.
13483 (print_source_lines): Likewise.
13484 (forget_cached_source_info_for_objfile): Likewise.
13485 (forget_cached_source_info): Likewise.
13486 (select_source_symtab): Likewise.
13487 (enum print_source_lines_flag): Move definition to source.h.
13488 * tui/tui-hooks.c: Add 'source.h' include.
13489
ec98a4ad
AB
134902019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13491
13492 * source.c (print_source_lines_base): Handle requests to print
13493 reverse line number sequences, and guard against empty lines
13494 string.
13495
62ea19c1
AB
134962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13497
13498 * source.c (print_source_lines_base): Fix skip of '\r' if next
13499 character is '\n'.
13500
9d30e1fd
TT
135012019-01-06 Tom Tromey <tom@tromey.com>
13502
13503 * c-exp.y (struct c_parse_state) <macro_original_text,
13504 expansion_obstack>: New member.
13505 (macro_original_text, expansion_obstack): Remove globals.
13506 (scan_macro_expansion, scanning_macro_expansion)
13507 (finished_macro_expansion): Update.
13508 (scan_macro_cleanup): Remove.
13509 (yylex, c_parse): Update.
13510
c65bac38
TT
135112019-01-06 Tom Tromey <tom@tromey.com>
13512
13513 * c-exp.y (struct c_parse_state) <strings>: New member.
13514 (operator_stoken): Update.
13515
02e12e38
TT
135162019-01-06 Tom Tromey <tom@tromey.com>
13517
13518 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13519 (union type_stack_elt) <typelist_val>: Now a pointer to
13520 std::vector.
13521 (type_stack_cleanup): Don't declare.
13522 (push_typelist): Update.
13523 * parse.c (pop_typelist): Return a std::vector.
13524 (push_typelist): Take a std::vector.
13525 (follow_types): Update. Do not free args.
13526 (type_stack_cleanup): Remove.
13527 * c-exp.y (struct c_parse_state): New.
13528 (cpstate): New global.
13529 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13530 (nonempty_typelist): Update.
13531 (func_mod): Create a new vector.
13532 (c_parse): Create a c_parse_state.
13533 (check_parameter_typelist): Do not delete params.
13534 (function_method): Update. Do not delete type_list.
13535
f097f5ad
TT
135362019-01-06 Tom Tromey <tom@tromey.com>
13537
13538 PR gdb/28155:
13539 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13540 check_typedef.
13541 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13542 (print_return_value): Likewise.
13543
d2adf9f1
TT
135442019-01-05 Tom Tromey <tom@tromey.com>
13545
13546 * contrib/cleanup_check.py: Remove.
13547 * contrib/gcc-with-excheck: Remove.
13548 * contrib/exsummary.py: Remove.
13549 * contrib/excheck.py: Remove.
13550
2eab46b1
JB
135512019-01-05 Joel Brobecker <brobecker@adacore.com>
13552
13553 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13554 NULL. Initialize tpprev to NULL instead of assigning it
13555 to NULL on the next statement.
13556 * windows-nat.c (windows_delete_thread): Remove check for
13557 main_thread_id before printing thread exit notifications.
13558 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13559 Remove thread ID check against main_thread_id.
13560 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13561 windows_delete_thread.
13562 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13563
48c5e7e2
TT
135642019-01-04 Tom Tromey <tom@tromey.com>
13565
13566 * compile/compile.c (_initialize_compile): Use upper case for
13567 metasyntactic variables.
13568 * symmisc.c (_initialize_symmisc): Use upper case for
13569 metasyntactic variables.
13570 * psymtab.c (_initialize_psymtab): Use upper case for
13571 metasyntactic variables.
13572 * demangle.c (demangle_command): Use upper case for metasyntactic
13573 variables.
13574 (_initialize_demangler): Likewise.
13575 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13576 variables.
13577
986041cd
TT
135782019-01-03 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13581
7c711119
TT
135822019-01-03 Tom Tromey <tom@tromey.com>
13583
13584 * python/py-symtab.c (salpy_str): Update.
13585 (struct salpy_sal_object) <symtab>: Now a PyObject.
13586 (salpy_dealloc): Update.
13587 (del_objfile_sal): Use gdbpy_ref.
13588
1b20edf0
TT
135892019-01-03 Tom Tromey <tom@tromey.com>
13590
13591 * python/py-type.c (convert_field): Use new_reference. Return
13592 gdbpy_ref.
13593 (make_fielditem): Return gdbpy_ref.
13594 (typy_fields): Update.
13595 (typy_getitem): Update.
13596 (field_name): Return gdbpy_ref. Use new_reference.
13597 (typy_iterator_iternext): Update.
13598
ea41325b
TT
135992019-01-03 Tom Tromey <tom@tromey.com>
13600
13601 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13602
2a3c71d6
TT
136032019-01-03 Tom Tromey <tom@tromey.com>
13604
13605 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13606 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13607 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13608 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13609 (pspy_set_type_printers): Likewise.
13610 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13611 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13612 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13613 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13614 (objfpy_set_type_printers): Likewise.
13615
5c329e6a
TT
136162019-01-03 Tom Tromey <tom@tromey.com>
13617
13618 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13619 (gdbpy_print_stack): Use gdbpy_err_fetch.
13620 * python/python-internal.h (class gdbpy_err_fetch): New class.
13621 (class gdbpy_enter) <m_error_type, m_error_value,
13622 m_error_traceback>: Remove.
13623 <m_error>: New member.
13624 (gdbpy_exception_to_string): Don't declare.
13625 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13626 * python/py-value.c (convert_value_from_python): Use
13627 gdbpy_err_fetch.
13628 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13629 gdbpy_exception_to_string.
13630 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13631 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13632 gdbpy_err_fetch.
13633
169bb27b
AB
136342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13635
13636 * linux-nat.c (delete_lwp_cleanup): Delete.
13637 (struct lwp_deleter): New struct.
13638 (lwp_info_up): New typedef.
13639 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13640 lwp_info_up.
13641
a07c8880
AB
136422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13643
13644 * linux-fork.c (class scoped_switch_fork_info): New class.
13645 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13646
26089c49
AB
136472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13648
13649 * valops.c (find_overload_match): Remove use of null_cleanup, and
13650 calls to do_cleanups.
13651
06d3e5b0
AB
136522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13653
13654 * compile/compile-cplus-types.c
13655 (compile_cplus_instance::decl_name): Handle changes to
13656 cp_func_name.
13657 * cp-support.c (cp_func_name): Update header comment, update
13658 return type.
13659 * cp-support.h (cp_func_name): Update return type in declaration.
13660 * valops.c (find_overload_match): Move temp_func local to top
13661 level of function and change its type. Use temp_func to hold and
13662 delete temporary string obtained from cp_func_name.
13663
66644cd3
AB
136642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13667 gdb::char_vector, remove cleanup, and update uses of `msg`.
13668
592d8c0a
JW
136692019-01-03 Jim Wilson <jimw@sifive.com>
13670
13671 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13672
c55d06ec
TT
136732019-01-02 Tom Tromey <tom@tromey.com>
13674
13675 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13676 (tdesc_parse_xml): Remove cleanups.
13677 * target-descriptions.h (make_cleanup_free_target_description):
13678 Don't declare.
13679 (target_desc_deleter): New struct.
13680 (target_desc_up): New typedef.
13681 * target-descriptions.c (target_desc_deleter::operator()): Rename
13682 from free_target_description.
13683 (make_cleanup_free_target_description): Remove.
13684
3a6ae42d
TT
136852019-01-02 Tom Tromey <tom@tromey.com>
13686
13687 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13688 constructor, destructor.
13689 (linespec_parser): Remove typedef.
13690 (~linespec_parser): Rename from linespec_parser_delete.
13691 (linespec_lex_to_end, linespec_complete_label)
13692 (linespec_complete): Update.
13693 (decode_line_full): Remove cleanups.
13694 (decode_line_1): Update.
13695
61fd3e73
TT
136962019-01-02 Tom Tromey <tom@tromey.com>
13697
13698 * python/python-internal.h (inferior_to_inferior_object): Change
13699 return type.
13700 * python/py-exitedevent.c (create_exited_event_object): Update.
13701 * python/py-inferior.c (inferior_to_inferior_object): Return
13702 gdbpy_ref.
13703 (python_new_inferior, python_inferior_deleted)
13704 (thread_to_thread_object, delete_thread_object)
13705 (build_inferior_list, gdbpy_selected_inferior): Update.
13706 * python/py-infthread.c (create_thread_object): Update. Also fail
13707 if inferior_to_inferior_object fails.
13708
d20172fc
SM
137092019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13710
13711 * inferior.h (class inferior) <displaced_step_state>: New field.
13712 * infrun.h (struct displaced_step_state): Move here from
13713 infrun.c. Initialize fields, add constructor.
13714 <inf>: Remove field.
13715 <reset>: New method.
13716 * infrun.c (struct displaced_step_inferior_state): Move to
13717 infrun.h.
13718 (displaced_step_inferior_states): Remove.
13719 (get_displaced_stepping_state): Adust.
13720 (displaced_step_in_progress_any_inferior): Adjust.
13721 (displaced_step_in_progress_thread): Adjust.
13722 (displaced_step_in_progress): Adjust.
13723 (add_displaced_stepping_state): Remove.
13724 (get_displaced_step_closure_by_addr): Adjust.
13725 (remove_displaced_stepping_state): Remove.
13726 (infrun_inferior_exit): Call displaced_step_state.reset.
13727 (use_displaced_stepping): Don't check for NULL.
13728 (displaced_step_prepare_throw): Call
13729 get_displaced_stepping_state.
13730 (displaced_step_fixup): Don't check for NULL.
13731 (prepare_for_detach): Don't check for NULL.
13732
e3319240
PW
137332019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13734
13735 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13736 in case of call that did not complete.
13737
5d36dfb9
AU
137382019-01-02 Andrey Utkin <autkin@undo.io>
13739
13740 * symfile.c (find_separate_debug_file): Fix search of debug files for
13741 remote debuggee.
13742
8833fbf0
TT
137432019-01-02 Tom Tromey <tom@tromey.com>
13744
13745 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13746 indentation.
13747 * python/py-frame.c (frapy_older): Remove cast.
13748 (frapy_newer): Likewise.
13749 * python/py-breakpoint.c (local_setattro): Remove cast.
13750 * python/py-arch.c (archpy_name): Remove local variable.
13751 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13752
4ada3dfd
JB
137532019-01-02 Joel Brobecker <brobecker@adacore.com>
13754
13755 * unittests/basic_string_view/element_access/char/empty.cc:
13756 Fix year range in copyright header.
13757
113b7b81
AB
137582019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13759
13760 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13761 Delete.
13762 <operator==>: Update with for removed field.
13763 <hash>: Likewise.
13764 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13765 <isa_features>: ...this.
13766 <abi_features>: New field.
13767 (riscv_isa_flen): Update comment.
13768 (riscv_abi_xlen): New declaration.
13769 (riscv_abi_flen): New declaration.
13770 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13771 isa_features.
13772 (riscv_abi_xlen): New function.
13773 (riscv_isa_flen): Update to get answer from isa_features.
13774 (riscv_abi_flen): New function.
13775 (riscv_has_fp_abi): Update to get answer from abi_features.
13776 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13777 xlen and flen.
13778 (riscv_call_info) <xlen, flen>: Update comment.
13779 (riscv_call_arg_struct): Remove invalid assertions
13780 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13781 is removed.
13782 (riscv_gdbarch_init): Gather isa features and abi features
13783 separately, ensure both match on the gdbarch when reusing an old
13784 gdbarch. Relax an error check to allow 32-bit abi float to run on
13785 a target with 64-bit float hardware.
13786
b18ca514
PW
137872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13788
13789 * source.c (search_command_helper): Stop reverse search
13790 when line 1 has been searched.
13791
ec70d8db
PW
137922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13793
13794 * record-full.c (record_full_base_target::close): Rewrite
13795 record_full_core_buf_list free logic.
13796
5b38f9c1
PW
137972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13798
13799 * break-catch-syscall.c (print_one_catch_syscall): xfree
13800 the last text.
13801
66d91b39
JB
138022019-01-01 Joel Brobecker <brobecker@adacore.com>
13803
13804 * top.c (print_gdb_version): Update Copyright year in version
13805 message.
13806
42a4f53d
JB
138072019-01-01 Joel Brobecker <brobecker@adacore.com>
13808
13809 Update copyright year range in all GDB files.
13810
7e955d83 138112019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 13812
5bbd631d 13813 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 13814
5bbd631d 13815For older changes see ChangeLog-2018.
c906108c
SS
13816\f
13817Local Variables:
13818mode: change-log
13819left-margin: 8
13820fill-column: 74
13821version-control: never
57da7796 13822coding: utf-8
c906108c 13823End:
5bbd631d 13824
This page took 2.796411 seconds and 4 git commands to generate.