Fix redisplay of the current line in GDB TUI mode
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f7f0a123
EZ
12019-03-17 Eli Zaretskii <eliz@gnu.org>
2
3 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4 tui_refill_source_window instead of tui_refresh_win, to update the
5 current execution line. This fixes redisplay of the current line
6 when stepping through the code with "next" or "step".
7
ab42892f
EZ
82019-03-16 Eli Zaretskii <eliz@gnu.org>
9
10 * source-cache.c (source_cache::get_source_lines): Call
11 find_source_lines to initialize s->nlines. This fixes vertical
12 scrolling of TUI source window when the DOWN arrow is pressed.
13
8d8c087f
PW
142019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15
16 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
17 linux-thread-db.c (_initialize_thread_db): Likewise.
18
798e1c30
EZ
192019-03-16 Eli Zaretskii <eliz@gnu.org>
20
21 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
22 wclrtoeol in tui_show_source_line". This reverts changes made in
23 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
24
eefba3da
TT
252019-03-15 Tom Tromey <tom@tromey.com>
26
27 * symtab.h (struct minimal_symbol): Derive from
28 general_symbol_info.
29 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
30 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
31 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
32 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
33 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
34 (MSYMBOL_SEARCH_NAME): Update.
35 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
36 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
37 * minsyms.c (minimal_symbol_reader::record_full): Update.
38
0de2420c
TT
392019-03-15 Tom Tromey <tom@tromey.com>
40
41 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
42
042d75e4
TT
432019-03-15 Tom Tromey <tom@tromey.com>
44
45 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
46 unique_xmalloc_ptr.
47 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
48 Update.
49 * minsyms.c (lookup_minimal_symbol_by_pc_section)
50 (build_minimal_symbol_hash_tables)
51 (minimal_symbol_reader::install): Update.
52
db92718b
TT
532019-03-15 Tom Tromey <tom@tromey.com>
54
55 * symtab.c (create_demangled_names_hash): Update.
56 (symbol_set_names): Update.
57 * objfiles.h (struct objfile_per_bfd_storage)
58 <demangled_names_hash>: Now an htab_up.
59 * objfiles.c (objfile_per_bfd_storage): Simplify.
60
d6797f46
TT
612019-03-15 Tom Tromey <tom@tromey.com>
62
63 * objfiles.h (struct objfile_per_bfd_storage): Declare
64 destructor.
65 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
66 New.
67 (get_objfile_bfd_data): Use new. Don't initialize
68 language_of_main.
69 (free_objfile_per_bfd_storage): Remove.
70 (objfile_bfd_data_free, objfile::~objfile): Use delete.
71
741d7538
TT
722019-03-15 Tom Tromey <tom@tromey.com>
73
74 * symfile.c (reread_symbols): Update.
75 * objfiles.c (objfile::objfile): Update.
76 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
77 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
78 comment.
79 (minimal_symbol_reader::install): Update.
80 (terminate_minimal_symbol_table): Remove.
81 * jit.c (jit_object_close_impl): Update.
82
788c80d1
TT
832019-03-15 Tom Tromey <tom@tromey.com>
84
85 * minsyms.c (minimal_symbol_reader::record_full): Remove some
86 initializations.
87
1b7a07cb
TT
882019-03-15 Tom Tromey <tom@tromey.com>
89
90 * objfiles.h (struct objfile_per_bfd_storage)
91 <demangled_hash_languages>: Now a bitset.
92 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
93 (lookup_minimal_symbol): Update.
94
3db066bc
TT
952019-03-15 Tom Tromey <tom@tromey.com>
96
97 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
98 Don't return the symbol.
99 * coffread.c (record_minimal_symbol): Use record_full.
100
3fff2c37
EZ
1012019-03-14 Eli Zaretskii <eliz@gnu.org>
102
103 The MS-Windows port of ncurses fails to switch to a color pair if
104 one or both of the colors are the implicit default colors. This
105 change records the default colors when TUI is initialized, and
106 then specifies them explicitly when a color pair uses the default
107 colors. This allows color styling in TUI mode on MS-Windows.
108
109 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
110 ncurses_norm_attr.
111 (tui_initialize_io) [__MINGW32__]: Record the default terminal
112 colors in ncurses_norm_attr.
113 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
114 "none", replace it with the default color recorded in
115 ncurses_norm_attr.
116
3b336828
TT
1172019-03-14 Tom Tromey <tromey@adacore.com>
118
119 * source-cache.h (class source_cache) <get_source_lines>: Return
120 std::string.
121 * source-cache.c (source_cache::extract_lines): Handle case where
122 first_pos==npos. Return std::string.
123 (source_cache::get_source_lines): Update.
124
d085f989
TT
1252019-03-14 Tom Tromey <tromey@adacore.com>
126
127 * NEWS: Add item for "style sources" commands.
128 * source-cache.c (source_cache::get_source_lines): Check
129 source_styling.
130 * cli/cli-style.c (source_styling): New global.
131 (_initialize_cli_style): Add "style sources" commands.
132 (show_style_sources): New function.
133 * cli/cli-style.h (source_styling): Declare.
134
6f11e682
TT
1352019-03-14 Pedro Alves <palves@redhat.com>
136 Tom Tromey <tromey@adacore.com>
137
138 * tui/tui-winsource.h (tui_refill_source_window): Declare.
139 * tui/tui-winsource.c (tui_refill_source_window): New function,
140 from...
141 (tui_horizontal_source_scroll): ... here. Move some logic.
142 * cli/cli-style.c (set_style_enabled): Notify new observable.
143 * tui/tui-hooks.c (tui_redisplay_source): New function.
144 (tui_attach_detach_observers): Attach or detach
145 tui_redisplay_source.
146 * observable.h (source_styling_changed): New observable.
147 * observable.c: Define source_styling_changed observable.
148
a068643d
TT
1492019-03-13 Tom Tromey <tromey@adacore.com>
150
151 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
152 (i386_gnu_nat_target::store_registers): Update.
153 * target-debug.h (target_debug_print_std_string): New macro.
154 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
155 * windows-tdep.c (display_one_tib): Update.
156 * tui/tui-stack.c (tui_make_status_line): Update.
157 * top.c (print_inferior_quit_action): Update.
158 * thread.c (thr_try_catch_cmd): Update.
159 (add_thread_with_info): Update.
160 (thread_target_id_str): Update.
161 (thr_try_catch_cmd): Update.
162 (thread_command): Update.
163 (thread_find_command): Update.
164 * record-btrace.c (record_btrace_target::info_record)
165 (record_btrace_resume_thread, record_btrace_target::resume)
166 (record_btrace_cancel_resume, record_btrace_step_thread)
167 (record_btrace_target::wait, record_btrace_target::wait)
168 (record_btrace_target::wait, record_btrace_target::stop): Update.
169 * progspace.c (print_program_space): Update.
170 * process-stratum-target.c
171 (process_stratum_target::thread_address_space): Update.
172 * linux-fork.c (linux_fork_mourn_inferior)
173 (detach_checkpoint_command, info_checkpoints_command)
174 (linux_fork_context): Update.
175 (linux_fork_detach): Update.
176 (class scoped_switch_fork_info): Update.
177 (delete_checkpoint_command): Update.
178 * infrun.c (follow_fork_inferior): Update.
179 (follow_fork_inferior): Update.
180 (proceed_after_vfork_done): Update.
181 (handle_vfork_child_exec_or_exit): Update.
182 (follow_exec): Update.
183 (displaced_step_prepare_throw): Update.
184 (displaced_step_restore): Update.
185 (start_step_over): Update.
186 (resume_1): Update.
187 (clear_proceed_status_thread): Update.
188 (proceed): Update.
189 (print_target_wait_results): Update.
190 (do_target_wait): Update.
191 (context_switch): Update.
192 (stop_all_threads): Update.
193 (restart_threads): Update.
194 (finish_step_over): Update.
195 (handle_signal_stop): Update.
196 (switch_back_to_stepped_thread): Update.
197 (keep_going_pass_signal): Update.
198 (print_exited_reason): Update.
199 (normal_stop): Update.
200 * inferior.c (inferior_pid_to_str): Change return type.
201 (print_selected_inferior): Update.
202 (add_inferior): Update.
203 (detach_inferior): Update.
204 * dummy-frame.c (fprint_dummy_frames): Update.
205 * dcache.c (dcache_info_1): Update.
206 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
207 (btrace_fetch, btrace_clear): Update.
208 * linux-tdep.c (linux_core_pid_to_str): Change return type.
209 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
210 type.
211 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
212 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
213 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
214 * gdbarch.c, gdbarch.h: Rebuild.
215 * gdbarch.sh (core_pid_to_str): Change return type.
216 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
217 return type.
218 (windows_nat_target::pid_to_str): Change return type.
219 (windows_delete_thread): Update.
220 (windows_nat_target::attach): Update.
221 (windows_nat_target::files_info): Update.
222 * target-delegates.c: Rebuild.
223 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
224 return type.
225 (sol_thread_target::pid_to_str): Change return type.
226 * remote.c (class remote_target) <pid_to_str>: Change return
227 type.
228 (remote_target::pid_to_str): Change return type.
229 (extended_remote_target::attach, remote_target::remote_stop_ns)
230 (remote_target::remote_notif_remove_queued_reply)
231 (remote_target::push_stop_reply, remote_target::disable_btrace):
232 Update.
233 (extended_remote_target::attach): Update.
234 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
235 type.
236 (gdbsim_target::pid_to_str): Change return type.
237 * ravenscar-thread.c (struct ravenscar_thread_target)
238 <pid_to_str>: Change return type.
239 (ravenscar_thread_target::pid_to_str): Change return type.
240 * procfs.c (class procfs_target) <pid_to_str>: Change return
241 type.
242 (procfs_target::pid_to_str): Change return type.
243 (procfs_target::attach): Update.
244 (procfs_target::detach): Update.
245 (procfs_target::fetch_registers): Update.
246 (procfs_target::store_registers): Update.
247 (procfs_target::wait): Update.
248 (procfs_target::files_info): Update.
249 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
250 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
251 return type.
252 (nto_procfs_target::pid_to_str): Change return type.
253 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
254 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
255 return type.
256 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
257 (exit_lwp): Update.
258 (attach_proc_task_lwp_callback, get_detach_signal)
259 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
260 (linux_nat_target::resume, wait_lwp, stop_callback)
261 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
262 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
263 (linux_nat_wait_1, resume_stopped_resumed_lwps)
264 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
265 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
266 type.
267 (inf_ptrace_target::attach): Update.
268 (inf_ptrace_target::files_info): Update.
269 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
270 type.
271 (go32_nat_target::pid_to_str): Change return type.
272 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
273 (gnu_nat_target::wait): Update.
274 (gnu_nat_target::wait): Update.
275 (gnu_nat_target::resume): Update.
276 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
277 (fbsd_nat_target::wait): Update.
278 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
279 type.
280 (darwin_nat_target::attach): Update.
281 * corelow.c (class core_target) <pid_to_str>: Change return type.
282 (core_target::pid_to_str): Change return type.
283 * target.c (normal_pid_to_str): Change return type.
284 (default_pid_to_str): Likewise.
285 (target_pid_to_str): Change return type.
286 (target_translate_tls_address): Update.
287 (target_announce_detach): Update.
288 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
289 return type.
290 (bsd_uthread_target::pid_to_str): Change return type.
291 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
292 type.
293 (bsd_kvm_target::pid_to_str): Change return type.
294 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
295 return type.
296 (aix_thread_target::pid_to_str): Change return type.
297 * target.h (struct target_ops) <pid_to_str>: Change return type.
298 (target_pid_to_str, normal_pid_to_str): Likewise.
299 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
300 type.
301 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
302 type.
303 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
304 return type.
305 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
306 type.
307 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
308 type.
309 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
310 return type.
311
b4be1b06
SM
3122019-03-13 Simon Marchi <simon.marchi@ericsson.com>
313
314 * NEWS: Mention that the new default MI version is 3. Mention
315 changes to the output of commands and events that deal with
316 multi-location breakpoints.
317 * breakpoint.c: Include "mi/mi-out.h".
318 (print_one_breakpoint): Change output syntax if using MI version
319 >= 3.
320 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
321 New.
322 (mi_multi_location_breakpoint_output_fixed): New.
323 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
324 (mi_cmd_fix_multi_location_breakpoint_output): New.
325 (mi_multi_location_breakpoint_output_fixed): New.
326 * mi/mi-cmds.c (mi_cmds): Register command
327 -fix-multi-location-breakpoint-output.
328 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
329 interpreter "mi".
330
8e5e5494
SM
3312019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
334 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
335 instantiate mi_ui_out based on interpreter name.
336 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
337 * mi/mi-main.c (mi_load_progress): Likewise.
338
197df35e
JB
3392019-03-12 John Baldwin <jhb@FreeBSD.org>
340
341 * NEWS: Combine separate "New targets" sections for 8.3.
342
8399425f
JB
3432019-03-12 John Baldwin <jhb@FreeBSD.org>
344
345 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
346 (ppcfbsd_init_abi): Install gdbarch
347 "fetch_tls_load_module_address" and "get_thread_local_address"
348 methods.
349
b0f87ed0
JB
3502019-03-12 John Baldwin <jhb@FreeBSD.org>
351
352 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
353 (riscv_fbsd_init_abi): Install gdbarch
354 "fetch_tls_load_module_address" and "get_thread_local_address"
355 methods.
356
ce25aa57
JB
3572019-03-12 John Baldwin <jhb@FreeBSD.org>
358
359 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
360 (i386fbsd_init_abi): Install gdbarch
361 "fetch_tls_load_module_address" and "get_thread_local_address"
362 methods.
363
f5424cfa
JB
3642019-03-12 John Baldwin <jhb@FreeBSD.org>
365
366 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
367 (amd64fbsd_init_abi): Install gdbarch
368 "fetch_tls_load_module_address" and "get_thread_local_address"
369 methods.
370
945f3901
JB
3712019-03-12 John Baldwin <jhb@FreeBSD.org>
372
373 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
374 (struct fbsd_pspace_data): New type.
375 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
376 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
377 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
378 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
379 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
380
ef0bd204
JB
3812019-03-12 John Baldwin <jhb@FreeBSD.org>
382
383 * gdbtypes.c (lookup_struct_elt): New function.
384 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
385 * gdbtypes.h (struct struct_elt): New type.
386 (lookup_struct_elt): New prototype.
387
36c53a02
JB
3882019-03-12 John Baldwin <jhb@FreeBSD.org>
389
390 * gdbtypes.c (lookup_struct_elt_type): Update comment and
391 remove disabled code block.
392
6e056c81
JB
3932019-03-12 John Baldwin <jhb@FreeBSD.org>
394
395 * gdbarch.sh (get_thread_local_address): New method.
396 * gdbarch.h, gdbarch.c: Regenerate.
397 * target.c (target_translate_tls_address): Use
398 gdbarch_get_thread_local_address if present instead of
399 target::get_thread_local_address.
400
cd250a18
JB
4012019-03-12 John Baldwin <jhb@FreeBSD.org>
402
403 * target.h (target::get_thread_local_address): Update comment.
404
df22c1e5
JB
4052019-03-12 John Baldwin <jhb@FreeBSD.org>
406
407 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
408 objfile->separate_debug_objfile_backlink if not NULL.
409
dd6876c9
JB
4102019-03-12 John Baldwin <jhb@FreeBSD.org>
411
412 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
413 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
414 (amd64bsd_store_inferior_registers): Likewise.
415 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
416 Enable segment base registers.
417 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
418 PT_GETFSBASE and PT_GETGSBASE.
419 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
420 PT_SETGSBASE.
421 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
422 segment base registers.
423 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
424
1163a4b7
JB
4252019-03-12 John Baldwin <jhb@FreeBSD.org>
426
427 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
428 Update calls to i386_target_description to add 'segments'
429 parameter.
430 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
431 add segment base registers.
432 * arch/i386.c (i386_create_target_description): Add 'segments'
433 parameter to enable segment base registers.
434 * arch/i386.h (i386_create_target_description): Likewise.
435 * features/i386/32bit-segments.xml: New file.
436 * features/i386/32bit-segments.c: Generate.
437 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
438 call to i386_target_description to add 'segments' parameter.
439 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
440 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
441 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
442 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
443 if feature is present.
444 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
445 Add 'segments' parameter to call to i386_target_description.
446 (i386_target_description): Add 'segments' parameter to enable
447 segment base registers.
448 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
449 to call to i386_target_description.
450 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
451 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
452 Define I386_NUM_REGS.
453 (i386_target_description): Add 'segments' parameter to enable
454 segment base registers.
455
3a350822
EZ
4562019-03-12 Eli Zaretskii <eliz@gnu.org>
457
458 PR/24325
459 * source-cache.c: #undef open and close, to avoid unresolved
460 externals during linking.
461
ffdd69cf
TT
4622019-03-12 Tom Tromey <tromey@adacore.com>
463
464 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
465 const. Add initializers.
466 (_initialize_remote): Don't initialize ptid globals.
467
ec148c57
PA
4682019-03-12 Pedro Alves <palves@redhat.com>
469
470 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
471
32764270
PA
4722019-03-12 Pedro Alves <palves@redhat.com>
473
474 * cp-name-parser.y (main): Remove unused 'len' variable.
475
17547186
TT
4762019-03-12 Tom Tromey <tromey@adacore.com>
477
478 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
479 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
480
d3a70e03
TT
4812019-03-12 Tom Tromey <tromey@adacore.com>
482
483 * linux-nat.c (iterate_over_lwps): Update.
484 (stop_callback): Remove parameter.
485 (stop_wait_callback, detach_callback, resume_set_callback)
486 (select_singlestep_lwp_callback, set_ignore_sigint)
487 (status_callback, resumed_callback, resume_clear_callback)
488 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
489 data parameter.
490 (linux_nat_target::detach, linux_nat_target::resume)
491 (linux_stop_and_wait_all_lwps, select_event_lwp)
492 (linux_nat_filter_event, linux_nat_wait_1)
493 (linux_nat_target::kill, linux_nat_target::stop)
494 (linux_nat_target::stop): Update.
495 (linux_nat_resume_callback): Change type.
496 (resume_stopped_resumed_lwps, count_events_callback)
497 (select_event_lwp_callback): Likewise.
498 (linux_stop_lwp, linux_nat_stop_lwp): Update.
499 * arm-linux-nat.c (struct update_registers_data): Remove.
500 (update_registers_callback): Change type.
501 (arm_linux_insert_hw_breakpoint1): Update.
502 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
503 parameter.
504 (x86_linux_dr_set_addr): Update.
505 (x86_linux_dr_set_control): Update.
506 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
507 (iterate_over_lwps): Use gdb::function_view.
508 * nat/aarch64-linux-hw-point.c (struct
509 aarch64_dr_update_callback_param): Remove.
510 (debug_reg_change_callback): Change type.
511 (aarch64_notify_debug_reg_change): Update.
512 * s390-linux-nat.c (s390_refresh_per_info): Update.
513
82cb27ff
TT
5142019-03-11 Tom Tromey <tromey@adacore.com>
515
516 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
517 redundant assignment to "this_cu".
518
568c0683
SM
5192019-03-08 Simon Marchi <simon.marchi@efficios.com>
520
521 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
522
f09ce22d
SM
5232019-03-08 Simon Marchi <simon.marchi@efficios.com>
524
525 * gdbtypes.c (rank_one_type_parm_set): New function extracted
526 from...
527 (rank_one_type): ... this.
528
595f96a9
SM
5292019-03-08 Simon Marchi <simon.marchi@efficios.com>
530
531 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
532 from...
533 (rank_one_type): ... this.
534
2598a94b
SM
5352019-03-08 Simon Marchi <simon.marchi@efficios.com>
536
537 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
538 from...
539 (rank_one_type): ... this.
540
7f17b20d
SM
5412019-03-08 Simon Marchi <simon.marchi@efficios.com>
542
543 * gdbtypes.c (rank_one_type_parm_float): New function extracted
544 from...
545 (rank_one_type): ... this.
546
2c509035
SM
5472019-03-08 Simon Marchi <simon.marchi@efficios.com>
548
549 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
550 from...
551 (rank_one_type): ... this.
552
0dd322dc
SM
5532019-03-08 Simon Marchi <simon.marchi@efficios.com>
554
555 * gdbtypes.c (rank_one_type_parm_range): New function extracted
556 from...
557 (rank_one_type): ... this.
558
41ea4728
SM
5592019-03-08 Simon Marchi <simon.marchi@efficios.com>
560
561 * gdbtypes.c (rank_one_type_parm_char): New function extracted
562 from...
563 (rank_one_type): ... this.
564
793cd1d2
SM
5652019-03-08 Simon Marchi <simon.marchi@efficios.com>
566
567 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
568 from...
569 (rank_one_type): ... this.
570
34910087
SM
5712019-03-08 Simon Marchi <simon.marchi@efficios.com>
572
573 * gdbtypes.c (rank_one_type_parm_int): New function extracted
574 from...
575 (rank_one_type): ... this.
576
f1f832d6
SM
5772019-03-08 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdbtypes.c (rank_one_type_parm_func): New function extracted
580 from...
581 (rank_one_type): ... this.
582
b9f4512f
SM
5832019-03-08 Simon Marchi <simon.marchi@efficios.com>
584
585 * gdbtypes.c (rank_one_type_parm_array): New function extracted
586 from...
587 (rank_one_type): ... this.
588
9293fc63
SM
5892019-03-08 Simon Marchi <simon.marchi@efficios.com>
590
591 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
592 from...
593 (rank_one_type): ... this.
594
e3abbe7e
PW
5952019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
596
597 * inferior.c (initialize_inferiors): Ensure 'help set/show print
598 inferior-events' shows the example events.
599
e4adb939
EZ
6002019-03-08 Eli Zaretskii <eliz@gnu.org>
601
602 Support styling on native MS-Windows console
603
604 PR/24315
605 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
606 on MS-Windows if $TERM is not defined.
607
608 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
609
610 * posix-hdep.c (gdb_console_fputs):
611 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
612 functions.
613 * ui-file.h (gdb_console_fputs): Add prototype.
614
615 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
616 back to fputs only if the former returns zero.
617
25629dfd
TT
6182019-03-07 Tom Tromey <tom@tromey.com>
619
620 * symmisc.c (print_symbol_bcache_statistics): Update.
621 (print_objfile_statistics): Update.
622 * symfile.c (allocate_symtab): Update.
623 * stabsread.c: Don't include bcache.h.
624 * psymtab.h (struct psymbol_bcache): Don't declare.
625 (class psymtab_storage) <psymbol_cache>: Now a bcache.
626 (psymbol_bcache_init, psymbol_bcache_free)
627 (psymbol_bcache_get_bcache): Don't declare.
628 * psymtab.c (struct psymbol_bcache): Remove.
629 (psymtab_storage::psymtab_storage): Update.
630 (psymtab_storage::~psymtab_storage): Update.
631 (psymbol_bcache_init, psymbol_bcache_free)
632 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
633 (add_psymbol_to_bcache): Update.
634 (allocate_psymtab): Update.
635 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
636 macro_cache>: No longer pointers.
637 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
638 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
639 * macrotab.c (macro_bcache): Update.
640 * macroexp.c: Don't include bcache.h.
641 * gdbtypes.c (check_types_worklist): Update.
642 (types_deeply_equal): Remove TRY/CATCH. Update.
643 * elfread.c (elf_symtab_read): Update.
644 * dwarf2read.c: Don't include bcache.h.
645 * buildsym.c (buildsym_compunit::get_macro_table): Update.
646 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
647 (print_bcache_statistics, bcache_memory_used): Don't declare.
648 (struct bcache): Move from bcache.c. Add constructor, destructor,
649 methods. Rename all data members.
650 * bcache.c (struct bcache): Move to bcache.h.
651 (bcache::expand_hash_table): Rename from expand_hash_table.
652 (bcache): Remove.
653 (bcache::insert): Rename from bcache_full.
654 (bcache::compare): Rename from bcache_compare.
655 (bcache_xmalloc): Remove.
656 (bcache::~bcache): Rename from bcache_xfree.
657 (bcache::print_statistics): Rename from print_bcache_statistics.
658 (bcache::memory_used): Rename from bcache_memory_used.
659
fe726667
PA
6602019-03-07 Pedro Alves <palves@redhat.com>
661
662 * infrun.c (normal_stop): Also check for
663 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
664
7584bb30
AB
6652019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * f-lang.c (value_from_host_double): Moved to...
668 * value.c (value_from_host_double): ...here.
669 * value.h (value_from_host_double): Declare.
670 * guile/scm-math.c (vlscm_convert_typed_number): Use
671 value_from_host_double.
672 (vlscm_convert_number): Likewise.
673 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
674 * python/py-value.c (convert_value_from_python): Likewise.
675
a7b1986e
TT
6762019-03-06 Tom Tromey <tom@tromey.com>
677
678 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
679
0ccf4211
TT
6802019-03-06 Tom Tromey <tom@tromey.com>
681
682 * utils.h (free_current_contents): Don't declare.
683 * utils.c (free_current_contents): Remove.
684
fe7b42e5
TT
6852019-03-06 Tom Tromey <tom@tromey.com>
686
687 * top.c (quit_force): Update.
688 * main.c (captured_command_loop): Update.
689 * common/new-op.c (operator new): Update.
690 * common/common-exceptions.c (struct catcher)
691 <save_cleanup_chain>: Remove member.
692 (exceptions_state_mc_init): Update.
693 (exception_try_scope_entry): Return nullptr.
694 (exception_try_scope_exit, exception_rethrow)
695 (throw_exception_sjlj, throw_exception_cxx): Update.
696 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
697 (all_cleanups, do_cleanups, discard_cleanups)
698 (discard_final_cleanups, save_cleanups, save_final_cleanups)
699 (restore_cleanups, restore_final_cleanups): Don't declare.
700 (do_final_cleanups): Remove parameter.
701 * common/cleanups.c (cleanup_chain, make_cleanup)
702 (make_cleanup_dtor, all_cleanups, do_cleanups)
703 (discard_my_cleanups, discard_cleanups)
704 (discard_final_cleanups, save_my_cleanups, save_cleanups)
705 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
706 (null_cleanup): Remove.
707 (do_final_cleanups): Remove parameter.
708
c6321f19
TT
7092019-03-06 Tom Tromey <tom@tromey.com>
710
711 * remote.c (remote_target::remote_parse_stop_reply): Use
712 unique_xmalloc_ptr.
713
61b30099
TT
7142019-03-06 Tom Tromey <tom@tromey.com>
715
716 * stabsread.c (struct stabs_field_info): Rename from field_info.
717 <list, fnlist>: Add initializers.
718 <obstack>: New member.
719 (read_member_functions, read_struct_fields, read_baseclasses):
720 Allocate on obstack. Don't use cleanups.
721 (read_one_struct_field, read_member_functions, read_struct_fields)
722 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
723 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
724 (read_struct_type): Update.
725
6cceac94
TT
7262019-03-06 Tom Tromey <tom@tromey.com>
727
728 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
729 * common/filestuff.h (make_cleanup_close): Don't declare.
730 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
731 Remove.
732
72412762
TT
7332019-03-06 Tom Tromey <tom@tromey.com>
734
735 * solib-aix.c: Use make_scope_exit.
736
2b6ff1c0
TT
7372019-03-06 Tom Tromey <tom@tromey.com>
738
739 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
740 Use make_scope_exit.
741
d01c5877
TT
7422019-03-06 Tom Tromey <tom@tromey.com>
743
744 * solib-svr4.c (disable_probes_interface): Remove parameter.
745 (svr4_handle_solib_event): Use make_scope_exit.
746
32603266
TT
7472019-03-06 Tom Tromey <tom@tromey.com>
748
749 * remote.c (struct stop_reply_deleter): Remove.
750 (stop_reply_up): Update.
751 (struct stop_reply): Derive from notif_event. Don't typedef.
752 <regcache>: Now a std::vector.
753 (stop_reply_xfree): Remove.
754 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
755 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
756 (remote_target::discard_pending_stop_replies): Use delete.
757 (remote_target::remote_parse_stop_reply): Update.
758 (remote_target::process_stop_reply): Update.
759 * remote-notif.h (struct notif_event): Add virtual destructor.
760 Remove "dtr" member.
761 (struct notif_client) <alloc_event>: Return a unique_ptr.
762 (notif_event_xfree): Don't declare.
763 (notif_event_up): New typedef.
764 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
765 (notif_event_xfree, do_notif_event_xfree): Remove.
766 (remote_notif_state_xfree): Update.
767
9799571e
TT
7682019-03-06 Tom Tromey <tom@tromey.com>
769
770 * infrun.c (displaced_step_clear_cleanup): Now a
771 forward_scope_exit type.
772 (displaced_step_prepare_throw): Update.
773 (displaced_step_fixup): Update.
774
09e3c4ca
TT
7752019-03-06 Tom Tromey <tom@tromey.com>
776
777 * inferior.h (class inferior): Update comment.
778 * gdbthread.h (class thread_info): Update comment.
779
e2a03548
TT
7802019-03-06 Joel Brobecker <brobecker@adacore.com>
781 Tom Tromey <tom@tromey.com>
782
783 * stabsread.h (struct stab_section_list): Remove.
784 (coffstab_build_psymtabs): Update.
785 * dbxread.c (symbuf_sections): Now a std::vector.
786 (sect_idx): New global.
787 (fill_symbuf): Update.
788 (coffstab_build_psymtabs): Change type of stabsects parameter.
789 Update.
790 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
791 std::vector.
792 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
793 (coff_locate_sections): Update.
794 (coff_symfile_read): Remove cleanups. Update.
795 (init_stringtab): Add storage parameter.
796 (free_stringtab, free_stringtab_cleanup): Remove.
797 (init_lineno): Add storage parameter.
798 (free_linetab, free_linetab_cleanup): Remove.
799
b7e60d85
PA
8002019-03-06 Pedro Alves <palves@redhat.com>
801
802 * linux-fork.c (fork_info::clobber_regs): Delete.
803 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
804 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
805 comment. Adjust.
806 (scoped_switch_fork_info::scoped_switch_fork_info)
807 (checkpoint_command, linux_fork_context): Adjust
808 fork_save_infrun_state calls.
809
e52c971f
PA
8102019-03-06 Pedro Alves <palves@redhat.com>
811
812 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
813 (inf_has_multiple_threads): Return 'bool' and rewrite using
814 inferior_info::threads().
815
06974e6c
PA
8162019-03-06 Pedro Alves <palves@redhat.com>
817
818 * linux-fork.c: Include <list>.
819 (fork_list): Now a std::list instance.
820 (fork_info): Add ctor, dtor, and in-class initialize all fields.
821 (forks_exist_p, find_last_fork): Adjust.
822 (new_fork): Delete.
823 (one_fork_p): New.
824 (add_fork): Adjust.
825 (free_fork): Delete, folded into fork_info::~fork_info().
826 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
827 Adjust.
828 (init_fork_list): Delete.
829 (linux_fork_killall, linux_fork_mourn_inferior)
830 (linux_fork_detach, info_checkpoints_command): Adjust.
831 (_initialize_linux_fork): No longer call init_fork_list.
832
72f31aea
PA
8332019-03-06 Pedro Alves <palves@redhat.com>
834
835 * linux-fork.c (new_fork): New, split out of ...
836 (add_fork): ... this. Return void. Move "first fork" special
837 case from here, to ...
838 (checkpoint_command): ... here.
839 * linux-linux.h (add_fork): Return void.
840
efbecbc1
AB
8412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
844
0841c79a
AB
8452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
846 Chris January <chris.january@arm.com>
847 David Lecomber <david.lecomber@arm.com>
848
849 * f-exp.y: New token, UNOP_INTRINSIC.
850 (exp): New pattern using UNOP_INTRINSIC token.
851 (f77_keywords): Add 'abs' keyword.
852 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
853 (value_from_host_double): New function.
854 (evaluate_subexp_f): Support UNOP_ABS.
855
4a270568
AB
8562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
859 types.
860
067630bd
AB
8612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
864 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
865 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
866
3be47f7a
AB
8672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * f-exp.y (convert_to_kind_type): Handle more type kinds.
870
4d00f5d8
AB
8712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
872 Chris January <chris.january@arm.com>
873
874 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
875 * f-exp.y: Define 'KIND' token.
876 (exp): New pattern for KIND expressions.
877 (ptype): Handle types with a kind extension.
878 (direct_abs_decl): Extend to spot kind extensions.
879 (f77_keywords): Add 'kind' to the list.
880 (push_kind_type): New function.
881 (convert_to_kind_type): New function.
882 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
883 * parse.c (operator_length_standard): Likewise.
884 * parser-defs.h (enum type_pieces): Add tp_kind.
885 * std-operator.def: Add UNOP_KIND.
886
e454224f
AB
8872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
888
889 * f-exp.y (f_parse): Set yydebug.
890
9dad4a58
AB
8912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * f-lang.c (evaluate_subexp_f): New function.
894 (exp_descriptor_f): New global.
895 (f_language_defn): Use exp_descriptor_f instead of
896 exp_descriptor_standard.
897
c8f91604
AB
8982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * f-exp.y (struct token): Add comments.
901 (dot_ops): Remove uppercase versions and the end marker.
902 (f77_keywords): Likewise.
903 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
904 entries in the dot_ops array are case insensitive, and use
905 strncasecmp to compare strings. Also some whitespace cleanup in
906 this area. Similar for the f77_keywords array, except entries in
907 this list might be case sensitive.
908
dd9f2c76
AB
9092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * f-exp.y (struct f77_boolean_val): Add comments.
912 (boolean_values): Remove uppercase versions, and end marker.
913 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
914 and use strncasecmp to achieve case insensitivity. Additionally,
915 perform whitespace cleanup around this code.
916
67a3048c
TT
9172019-03-06 Tom Tromey <tromey@adacore.com>
918
919 * remote-sim.c (gdbsim_target_open): Use result of
920 gdb_argv::release.
921
aa3cfbda
RB
9222019-03-06 Richard Bunt <richard.bunt@arm.com>
923 Dirk Schubert <dirk.schubert@arm.com>
924 Chris January <chris.january@arm.com>
925
926 * eval.c (evaluate_subexp_standard): Call Fortran argument
927 wrapping logic.
928 * f-lang.c (struct value): A value which can be passed into a
929 Fortran function call.
930 (fortran_argument_convert): Wrap Fortran arguments in a pointer
931 where appropriate.
932 (struct type): Value ready for a Fortran function call.
933 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
934 is needed.
935 * f-lang.h (fortran_argument_convert): Declaration.
936 (fortran_preserve_arg_pointer): Declaration.
937 * infcall.c (value_arg_coerce): Call Fortran argument logic.
938
ea38e5df
TT
9392019-03-05 Tom Tromey <tromey@adacore.com>
940
941 * python/py-prettyprint.c (print_string_repr): Remove #if.
942 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
943
06b5b831
TT
9442019-03-05 Tom Tromey <tromey@adacore.com>
945
946 * target.c (the_dummy_target): Move later. Change type to
947 "dummy_target".
948 (initialize_targets): Don't initialize the_dummy_target.
949
edbd9e45
TT
9502019-03-05 Tom Tromey <tromey@adacore.com>
951
952 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
953 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
954
c119e040
TT
9552019-03-05 Tom Tromey <tromey@adacore.com>
956
957 * windows-nat.c (windows_nat_target::attach)
958 (windows_nat_target::detach): Don't call gdb_flush.
959 * valprint.c (generic_val_print, val_print, val_print_string):
960 Don't call gdb_flush.
961 * utils.c (defaulted_query): Don't call gdb_flush.
962 * typeprint.c (print_type_scalar): Don't call gdb_flush.
963 * target.c (target_announce_detach): Don't call gdb_flush.
964 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
965 * remote.c (extended_remote_target::attach): Don't call
966 gdb_flush.
967 * procfs.c (procfs_target::detach): Don't call gdb_flush.
968 * printcmd.c (do_examine): Don't call gdb_flush.
969 (info_display_command): Don't call gdb_flush.
970 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
971 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
972 * memattr.c (info_mem_command): Don't call gdb_flush.
973 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
974 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
975 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
976 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
977 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
978 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
979 (gnu_nat_target::detach): Don't call gdb_flush.
980 * f-valprint.c (f_val_print): Don't call gdb_flush.
981 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
982 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
983 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
984 gdb_flush.
985 * c-valprint.c (c_val_print): Don't call gdb_flush.
986 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
987
895dafa6
TT
9882019-03-05 Tom Tromey <tromey@adacore.com>
989
990 * varobj.c (update_dynamic_varobj_children): Update.
991 (install_default_visualizer): Use reset, not release.
992 * value.c (set_internalvar): Update.
993 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
994 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
995 ATTRIBUTE_UNUSED_RESULT.
996
88a774b9
TT
9972019-03-05 Tom Tromey <tromey@adacore.com>
998
999 * remote.c (class scoped_remote_fd) <release>: Add
1000 ATTRIBUTE_UNUSED_RESULT.
1001
4e4a8b93
TT
10022019-03-05 Tom Tromey <tromey@adacore.com>
1003
1004 * macroexp.c (struct macro_buffer) <release>: Add
1005 ATTRIBUTE_UNUSED_RESULT.
1006
083eef1f
TT
10072019-03-05 Tom Tromey <tromey@adacore.com>
1008
1009 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
1010 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
1011 ATTRIBUTE_UNUSED_RESULT.
1012
3cabd438
TT
10132019-03-05 Tom Tromey <tromey@adacore.com>
1014
1015 * common/scoped_fd.h (class scoped_fd) <release>: Add
1016 ATTRIBUTE_UNUSED_RESULT.
1017
41e3300a
TT
10182019-03-05 Tom Tromey <tromey@adacore.com>
1019
1020 * parser-defs.h (struct parser_state) <release>: Add
1021 ATTRIBUTE_UNUSED_RESULT.
1022
18cb7c9f
TT
10232019-03-05 Tom Tromey <tromey@adacore.com>
1024
1025 * utils.h (class gdb_argv) <release>: Add
1026 ATTRIBUTE_UNUSED_RESULT.
1027 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
1028
41fa577f
EZ
10292019-03-02 Eli Zaretskii <eliz@gnu.org>
1030
a6a4b2c6
EZ
1031 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
1032 for-loop range, to avoid compiler warnings.
1033
1034 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
1035 avoid compiler warnings about unused variables.
1036
742a7df5
EZ
1037 * NEWS: Mention end of support for native debugging on MS-Windows
1038 before XP.
1039
41fa577f
EZ
1040 PR gdb/24292
1041 * common/netstuff.c:
1042 * gdbserver/gdbreplay.c
1043 * gdbserver/remote-utils.c:
1044 * ser-tcp.c:
1045 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
1046 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
1047 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
1048 'getaddrinfo' and 'freeaddrinfo' were not available before
1049 Windows XP, and mingw.org's MinGW headers by default define
1050 _WIN32_WINNT to 0x500.
1051
827f438f
GB
10522019-03-01 Gary Benson <gbenson@redhat.com>
1053
1054 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
1055
92137da0
RO
10562019-02-28 Brian Vandenberg <phantall@gmail.com>
1057 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058
1059 PR gdb/8527
1060 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
1061 set_sigint_trap, clear_sigint_trap.
1062
799efbe8
PW
10632019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1064
1065 * target.c (target_detach): Clear the regcache and the
1066 frame cache.
1067
8ed25214
PA
10682019-02-27 Pedro Alves <palves@redhat.com>
1069
1070 * utils.c (set_screen_size): When we cap the height/width sizes,
1071 tweak the corresponding command variable to show "unlimited":
1072
23031e31
SJ
10732019-02-27 Saagar Jha <saagar@saagarjha.com>
1074 Pedro Alves <palves@redhat.com>
1075
1076 * utils.c (set_screen_size): Reduce "infinite" rows and columns
1077 before calling rl_set_screen_size.
1078
6c28e44a
TT
10792019-02-27 Tom Tromey <tromey@adacore.com>
1080
1081 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
1082 define.
1083 * python/py-value.c: Remove Python 2.4 workaround.
1084 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
1085 workaround.
1086 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
1087 Python 2.4 workaround.
1088 * python/python-internal.h: Remove Python 2.4 comment.
1089 (Py_ssize_t): Don't define.
1090 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
1091 (gdb_Py_DECREF): Remove Python 2.4 workaround.
1092 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
1093 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
1094 * python/python.c (do_start_initialization): Remove Python 2.4
1095 workaround.
1096 * python/py-prettyprint.c (class dummy_python_frame): Remove.
1097 (print_children): Remove Python 2.4 workaround.
1098 * python/py-inferior.c (buffer_procs): Remove Python 2.4
1099 workaround.
1100 (CHARBUFFERPROC_NAME): Remove.
1101 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
1102 Python 2.4 workaround.
1103
2c3fc25d 11042019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 1105
2c3fc25d
KB
1106 * NEWS: Note minimum Python version.
1107
6ca62222
KB
11082019-02-27 Kevin Buettner <kevinb@redhat.com>
1109
1110 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
1111 code from these functions. Remove corresponding ifdefs. Use
1112 Py_buffer_up instead of explicit calls to PyBuffer_Release.
1113 Remove gotos and target of gotos.
1114 (infpy_search_memory): Likewise.
1115
f4bc7d2c
AB
11162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
1119 (hppa_gdbarch_init): Don't register deleted functions with
1120 gdbarch.
1121
9734a586
AB
11222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
1125 (h8300_unwind_sp): Delete.
1126 (h8300_dummy_id): Delete.
1127 (h8300_gdbarch_init): Don't register deleted functions with
1128 gdbarch.
1129
68b867f3
AB
11302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
1133 (ft32_unwind_pc): Delete.
1134 (ft32_unwind_sp): Delete.
1135 (ft32_gdbarch_init): Don't register deleted functions with
1136 gdbarch.
1137
2fbe7ad0
AB
11382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * gdb/frv-tdep.c (frv_dummy_id): Delete.
1141 (frv_unwind_pc): Delete.
1142 (frv_unwind_sp): Delete.
1143 (frv_gdbarch_init): Don't register deleted functions with
1144 gdbarch.
1145
76055cbe
AB
11462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
1149 (riscv_unwind_pc): Delete.
1150 (riscv_unwind_sp): Delete.
1151 (riscv_gdbarch_init): Don't register deleted functions with
1152 gdbarch.
1153
4133e5a1
AB
11542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * gdb/csky-tdep.c (csky_dummy_id): Delete.
1157 (csky_unwind_pc): Delete.
1158 (csky_unwind_sp): Delete.
1159 (csky_gdbarch_init): Don't register deleted functions with
1160 gdbarch.
1161
8010f576
AB
11622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * gdb/cris-tdep.c (cris_dummy_id): Delete.
1165 (cris_unwind_pc): Delete.
1166 (cris_unwind_sp): Delete.
1167 (cris_gdbarch_init): Don't register deleted functions with
1168 gdbarch.
1169
b56bf084
AB
11702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
1173 (bfin_unwind_pc): Delete.
1174 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
1175
a19a650f
AB
11762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * gdb/arm-tdep.c (arm_dummy_id): Delete.
1179 (arm_unwind_pc): Delete.
1180 (arm_unwind_sp): Delete.
1181 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
1182
f8278c3c
AB
11832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * gdb/arc-tdep.c (arc_dummy_id): Delete.
1186 (arc_unwind_pc): Delete.
1187 (arc_unwind_sp): Delete.
1188 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
1189
480e46cf
AB
11902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
1193 (alpha_unwind_pc): Delete.
1194 (alpha_gdbarch_init): Don't register deleted functions with
1195 gdbarch.
1196
7a995095
AB
11972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
1200 (aarch64_unwind_pc): Delete.
1201 (aarch64_unwind_sp): Delete.
1202 (aarch64_gdbarch_init): Don't register deleted functions with
1203 gdbarch.
1204
bf9a735e
AB
12052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * gdbtypes.c (type_align): Don't consider static members when
1208 computing structure alignment.
1209
5561fc30
AB
12102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
1213 return 0 for other types.
1214 * arch-utils.c (default_type_align): Always return 0.
1215 * gdbarch.h: Regenerate.
1216 * gdbarch.sh (type_align): Extend comment.
1217 * gdbtypes.c (type_align): Add additional comments, always call
1218 gdbarch_type_align before applying the default rules.
1219 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
1220 generic code will then apply a suitable default.
1221 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
1222 types, return 0 for other types.
1223
9335e75a
JB
12242019-02-27 Joel Brobecker <brobecker@adacore.com>
1225
1226 * NEWS: Create a new section for the next release branch.
1227 Rename the section of the current branch, now that it has
1228 been cut.
1229
3d34d8de
JB
12302019-02-27 Joel Brobecker <brobecker@adacore.com>
1231
1232 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
1233 * version.in: Bump version to 8.3.50.DATE-git.
1234
143420fb
SM
12352019-02-26 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * aix-thread.c (ptid_cmp): Remove unused variable.
1238 (get_signaled_thread): Likewise.
1239 (store_regs_user_thread): Likewise.
1240 (store_regs_kernel_thread): Likewise.
1241 (fetch_regs_kernel_thread): Remove shadowed variable.
1242
172fb711
AB
12432019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * features/riscv/32bit-cpu.xml: Add register numbers.
1246 * features/riscv/32bit-fpu.c: Regenerate.
1247 * features/riscv/32bit-fpu.xml: Add register numbers.
1248 * features/riscv/64bit-cpu.xml: Add register numbers.
1249 * features/riscv/64bit-fpu.c: Regenerate.
1250 * features/riscv/64bit-fpu.xml: Add register numbers.
1251
26c89782
KB
12522019-02-26 Kevin Buettner <kevinb@redhat.com>
1253
af54ade9 1254 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
1255 * python/py-value.c (convert_buffer_and_type_to_value): New
1256 function.
1257 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
1258 Add support for handling an optional second argument. Call
1259 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
1260 * python/python-internal.h (Py_buffer_deleter): New struct.
1261 (Py_buffer_up): New typedef.
1262
0f58c9e8
JB
12632019-02-25 John Baldwin <jhb@FreeBSD.org>
1264
1265 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
1266 instead of releasing ownership.
1267
0a0f4c01
JR
12682019-02-25 Jordan Rupprecht <rupprecht@google.com>
1269
1270 * dwarf2read.c (open_and_init_dwp_file): Call
1271 elf_numsections instead of bfd_count_sections to initialize
1272 dwp_file->num_sections.
1273
cd5a152c
TT
12742019-02-25 Tom Tromey <tromey@adacore.com>
1275
1276 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
1277
8a6a8513
SDJ
12782019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
1279
1280 * gcore.in: Add '--readnever' option when invoking GDB.
1281
04dcda9c
SM
12822019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * MAINTAINERS: Update my email address.
1285
07bc701d
SM
12862019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * build-id.c (build_id_to_debug_bfd_1): New function.
1289 (build_id_to_debug_bfd): Look for separate debug file in
1290 sysroot.
1291
c6f4a5d0
AB
12922019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * gdbarch.sh: Update the copyright year range that is placed into
1295 generated files.
1296
9600246d
KS
12972019-02-22 Keith Seitz <keiths@redhat.com>
1298
1299 PR symtab/23853
1300 * linespec.c (create_sals_line_offset): Search for the default
1301 symtab's filename instead of its fullname.
1302
7557a514
AH
13032019-02-21 Alan Hayward <alan.hayward@arm.com>
1304
1305 * NEWS: Update style defaults.
1306
ee2bcb0c
AH
13072019-02-21 Alan Hayward <alan.hayward@arm.com>
1308
1309 * main.c (captured_main_1): Disable styling in batch mode.
1310
0c95f9ed
TT
13112019-02-20 Tom Tromey <tom@tromey.com>
1312
1313 * symtab.c (symtab_symbol_info): Fix typos.
1314
c763b894
TT
13152019-02-20 Tom Tromey <tromey@adacore.com>
1316
1317 * findcmd.c (_initialize_mem_search): Use upper case for
1318 metasyntactic variables.
1319
0ef8a082
AH
13202019-02-20 Alan Hayward <alan.hayward@arm.com>
1321
1322 * aarch64-tdep.c (aarch64_add_reggroups): New function.
1323 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
1324
6caa91b6
SM
13252019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * top.h (source_file_name): Change to std::string.
1328 * top.c (source_file_name): Likewise.
1329 (command_line_input): Adjust.
1330 * cli/cli-script.c (script_from_file): Adjust.
1331
98814c6c
TT
13322019-02-19 Tom Tromey <tromey@adacore.com>
1333
1334 * ravenscar-thread.c
1335 (ravenscar_thread_target::update_thread_list): Don't call
1336 ada_build_task_list.
1337 * ada-lang.h (ada_build_task_list): Don't declare.
1338 * ada-tasks.c (struct ada_tasks_inferior_data)
1339 <task_list_valid_p>: Now bool.
1340 (read_known_tasks, ada_task_list_changed)
1341 (ada_tasks_invalidate_inferior_data): Update.
1342 (read_known_tasks_array): Return bool.
1343 (read_known_tasks_list): Likewise.
1344 (read_known_tasks): Return void.
1345 (ada_build_task_list): Now static.
1346
70cd633e
AB
13472019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
1350 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
1351
040b3e95
PW
13522019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1353
1354 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
1355 variant for ada_tasks_pspace_data_handle and
1356 ada_tasks_inferior_data_handle.
1357 (ada_tasks_pspace_data_cleanup): New function.
1358 (ada_tasks_inferior_data_cleanup): New function.
1359
9409233b
TT
13602019-02-17 Tom Tromey <tom@tromey.com>
1361
1362 * macrotab.h (macro_source_fullname): Return a std::string.
1363 * macrotab.c (macro_include, check_for_redefinition)
1364 (macro_undef, macro_lookup_definition, foreach_macro)
1365 (foreach_macro_in_scope): Update.
1366 (macro_source_fullname): Return a std::string.
1367 * macrocmd.c (show_pp_source_pos): Update.
1368
6506371f
TT
13692019-02-17 Tom Tromey <tom@tromey.com>
1370
1371 * macrocmd.c (show_pp_source_pos): Style the file names.
1372
0c820d67
TT
13732019-02-17 Tom Tromey <tom@tromey.com>
1374
1375 PR tui/24197:
1376 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
1377
a0087920
TT
13782019-02-17 Tom Tromey <tom@tromey.com>
1379
1380 * ada-lang.c (user_select_syms): Use filtered printing.
1381 * utils.c (wrap_style): New global.
1382 (desired_style): Remove.
1383 (emit_style_escape): Add stream parameter.
1384 (set_output_style, reset_terminal_style, prompt_for_continue):
1385 Update.
1386 (flush_wrap_buffer): Only flush gdb_stdout.
1387 (wrap_here): Set wrap_style.
1388 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
1389 treat escape sequences as a character. Change when wrap buffer is
1390 flushed.
1391 (fputs_styled): Do not set the output style when the default is
1392 requested.
1393 * ui-style.h (struct ui_file_style) <is_default>: New method.
1394 * source.c (print_source_lines_base): Emit escape sequences in one
1395 piece.
1396
75ba10dc
JB
13972019-02-17 Joel Brobecker <brobecker@adacore.com>
1398
1399 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
1400 integers and enumeration types.
1401
a2cd4f14
JB
14022019-02-17 Joel Brobecker <brobecker@adacore.com>
1403
1404 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
1405 instead of lookup_symbol_in_language
1406 (do_exact_match): New function.
1407 (ada_get_symbol_name_matcher): Return do_exact_match when
1408 doing a verbatim match.
1409
485b851b
TT
14102019-02-15 Tom Tromey <tromey@adacore.com>
1411
1412 * ravenscar-thread.c (ravenscar_thread_target::resume)
1413 (ravenscar_thread_target::wait): Special case wildcard requests.
1414
0b790b1e
TT
14152019-02-15 Tom Tromey <tromey@adacore.com>
1416
1417 * ravenscar-thread.c (base_ptid): Remove.
1418 (struct ravenscar_thread_target) <close>: New method.
1419 <m_base_ptid>: New member.
1420 <update_inferior_ptid, active_task, task_is_currently_active,
1421 runtime_initialized>: Declare methods.
1422 <ravenscar_thread_target>: Add constructor.
1423 (ravenscar_thread_target::task_is_currently_active)
1424 (ravenscar_thread_target::update_inferior_ptid)
1425 (ravenscar_runtime_initialized): Rename. Now methods.
1426 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
1427 (ravenscar_thread_target::update_thread_list): Update.
1428 (ravenscar_thread_target::active_task): Now method.
1429 (ravenscar_thread_target::store_registers)
1430 (ravenscar_thread_target::prepare_to_store)
1431 (ravenscar_thread_target::prepare_to_store)
1432 (ravenscar_thread_target::mourn_inferior): Update.
1433 (ravenscar_inferior_created): Use "new" to create target.
1434 (ravenscar_thread_target::get_ada_task_ptid): Update.
1435 (_initialize_ravenscar): Don't initialize base_ptid.
1436 (ravenscar_ops): Remove global.
1437
dea57a62
TT
14382019-02-15 Tom Tromey <tromey@adacore.com>
1439
1440 * target.h (push_target): Declare new overload.
1441 * target.c (push_target): New overload, taking an rvalue reference.
1442 * remote.c (remote_target::open_1): Use push_target overload.
1443 * corelow.c (core_target_open): Use push_target overload.
1444
989f3c58
TT
14452019-02-15 Tom Tromey <tromey@adacore.com>
1446
1447 * ravenscar-thread.c (is_ravenscar_task)
1448 (ravenscar_task_is_currently_active): Return bool.
1449 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
1450 (_initialize_ravenscar): Remove "(void)".
1451 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
1452 Return bool.
1453
6cbcc006
TT
14542019-02-15 Tom Tromey <tromey@adacore.com>
1455
1456 * ravenscar-thread.c (ravenscar_runtime_initializer)
1457 (has_ravenscar_runtime, get_running_thread_id)
1458 (ravenscar_thread_target::resume): Fix indentation.
1459
7657f14d
TT
14602019-02-15 Tom Tromey <tromey@adacore.com>
1461
1462 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
1463 from ravenscar_arch_ops.
1464 (sparc_ravenscar_ops::fetch_registers)
1465 (sparc_ravenscar_ops::store_registers): Now methods.
1466 (sparc_ravenscar_prepare_to_store): Remove.
1467 (sparc_ravenscar_ops): Redefine.
1468 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
1469 methods and destructor. Remove members.
1470 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
1471 (ravenscar_thread_target::store_registers)
1472 (ravenscar_thread_target::prepare_to_store): Update.
1473 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
1474 Remove.
1475 (struct ppc_ravenscar_powerpc_ops): Derive from
1476 ravenscar_arch_ops.
1477 (ppc_ravenscar_powerpc_ops::fetch_registers)
1478 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
1479 (ppc_ravenscar_powerpc_ops): Redefine.
1480 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
1481 (ppc_ravenscar_e500_ops::fetch_registers)
1482 (ppc_ravenscar_e500_ops::store_registers): Now methods.
1483 (ppc_ravenscar_e500_ops): Redefine.
1484 * aarch64-ravenscar-thread.c
1485 (aarch64_ravenscar_generic_prepare_to_store): Remove.
1486 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
1487 (aarch64_ravenscar_fetch_registers)
1488 (aarch64_ravenscar_store_registers): Now methods.
1489 (aarch64_ravenscar_ops): Redefine.
1490
5b6ea500
TT
14912019-02-15 Tom Tromey <tromey@adacore.com>
1492
1493 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
1494 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1495 (ravenscar_thread_target::stopped_by_watchpoint)
1496 (ravenscar_thread_target::stopped_data_address)
1497 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
1498
e397fd39
TT
14992019-02-15 Tom Tromey <tromey@adacore.com>
1500
1501 * ravenscar-thread.c: Fix some typos.
1502
cc12f4a8
TT
15032019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1504 Tom Tromey <tromey@adacore.com>
1505
1506 * ada-lang.c (ada_exception_sal): Change addr_string to a
1507 std::string.
1508 (create_ada_exception_catchpoint): Update.
1509
5f486660
TT
15102019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1511 Tom Tromey <tromey@adacore.com>
1512
1513 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
1514 (bp_location_ops): Remove.
1515 (base_breakpoint_allocate_location): Update.
1516 (free_bp_location): Update.
1517 * ada-lang.c (class ada_catchpoint_location)
1518 <ada_catchpoint_location>: Remove ops parameter.
1519 (ada_catchpoint_location_dtor): Remove.
1520 (ada_catchpoint_location_ops): Remove.
1521 (allocate_location_exception): Update.
1522 * breakpoint.h (struct bp_location_ops): Remove.
1523 (class bp_location) <bp_location>: Remove bp_location_ops
1524 parameter.
1525 <~bp_location>: Add destructor.
1526 <ops>: Remove.
1527
b671c7fb
TS
15282019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1529 Pedro Alves <palves@redhat.com>
1530
1531 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
1532 'PATH_MAX'.
1533
8071c5ce
DM
15342019-02-14 David Michael <fedora.dm0@gmail.com>
1535 Samuel Thibault <samuel.thibault@gnu.org>
1536 Thomas Schwinge <thomas@codesourcery.com>
1537
1538 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
1539 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
1540
b1041ae0
TS
15412019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1542
924514e1
TS
1543 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
1544 (check_empty): Use "const char *".
1545
c29ee8d4
TS
1546 * gnu-nat.c (gnu_nat_target::detach): Instead of
1547 'detach_inferior (pid)' call
1548 'detach_inferior (find_inferior_pid (pid))'.
1549
6c6ef69f
TS
1550 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
1551 'nat/fork-inferior.o'.
1552 * gnu-nat.c: #include "nat/fork-inferior.h".
1553
2d0a338c
TS
1554 * gnu-nat.c (gnu_nat_target::detach): Instead of
1555 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
1556 * gnu-nat.h: #include "inf-child.h".
1557 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
1558 'i386_gnu_nat_target::fetch_registers'.
1559 (gnu_store_registers): Rename/move to
1560 'i386_gnu_nat_target::store_registers'.
1561
cabb5f06
TS
1562 * config/i386/nm-i386gnu.h: Don't "#include" any files.
1563 * gnu-nat.h (mach_thread_info): New function.
1564 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
1565
b1041ae0
TS
1566 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
1567
2988d01e
KF
15682019-02-14 Frederic Konrad <konrad@adacore.com>
1569
1570 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
1571
c559d709
JB
15722019-02-14 Joel Brobecker <brobecker@adacore.com>
1573
1574 * windows-nat.c (windows_add_thread): Add new parameter
1575 "main_thread_p" with default value set to false. Update
1576 function documentation as well as all callers.
1577 (windows_delete_thread): Likewise.
1578 (fake_create_process): Update call to windows_add_thread.
1579 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
1580 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
1581 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
1582 call to windows_delete_thread.
1583
007024cc
SM
15842019-02-13 Simon Marchi <simon.marchi@ericsson.com>
1585
1586 * MAINTAINERS: Add Andrew Burgess as global maintainer.
1587
f62318e9
JB
15882019-02-12 John Baldwin <jhb@FreeBSD.org>
1589
1590 * symfile.c (find_separate_debug_file): Use canonical path of
1591 sysroot with child_path instead of gdb_sysroot if it is valid.
1592
cd4b7848
JB
15932019-02-12 John Baldwin <jhb@FreeBSD.org>
1594
1595 * symfile.c (find_separate_debug_file): Use child_path to
1596 determine if an object file is under a sysroot.
1597
efac4bfe
JB
15982019-02-12 John Baldwin <jhb@FreeBSD.org>
1599
1600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1601 unittests/child-path-selftests.c.
1602 * common/pathstuff.c (child_path): New function.
1603 * common/pathstuff.h (child_path): New prototype.
1604 * unittests/child-path-selftests.c: New file.
1605
402d2bfe
JB
16062019-02-12 John Baldwin <jhb@FreeBSD.org>
1607
1608 * symfile.c (find_separate_debug_file): Look for separate debug
1609 files in debug directories under the sysroot.
1610
1ed9f74e
PW
16112019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1612
1613 * symtab.h (struct minimal_symbol data_p): New const method.
1614 (struct minimal_symbol text_p): Likewise.
1615 * symtab.c (output_source_filename): Use file name style
1616 to print file name.
1617 (print_symbol_info): Likewise.
1618 (print_msymbol_info): Use address style to print addresses.
1619 Use function name style to print executable text symbols.
1620 (expand_symtab_containing_pc): Use data_p.
1621 (find_pc_sect_compunit_symtab): Likewise.
1622
2636d81d
PW
16232019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1624
1625 * breakpoint.c (describe_other_breakpoints): Use address style
1626 to print addresses.
1627 (say_where): Likewise.
1628
ac8c53cc
PW
16292019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1630
1631 * ada-typeprint.c (print_func_type): Print function name
1632 style to print function name.
1633 * c-typeprint.c (c_print_type_1): Likewise.
1634
ea638c43
AH
16352019-02-11 Alan Hayward <alan.hayward@arm.com>
1636
1637 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
1638 for execve.
1639
ab759ca8
PW
16402019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1641
1642 * c-exp.y (direct_abs_decl): Use emplace_back to record the
1643 type_stack.
1644
aff29d1c
JB
16452019-02-10 Joel Brobecker <brobecker@adacore.com>
1646
1647 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
1648 TYPE_CODE_REF types.
1649
617126bc
JW
16502019-02-08 Jim Wilson <jimw@sifive.com>
1651
1652 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
1653 (riscv_linux_fregset): New.
1654 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
1655
46e3ed7f
TT
16562019-02-07 Tom Tromey <tom@tromey.com>
1657
1658 * thread.c (thread_cancel_execution_command): Update.
1659 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
1660 methods.
1661 (struct thread_fsm_ops): Remove.
1662 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
1663 (thread_fsm_should_stop, thread_fsm_return_value)
1664 (thread_fsm_set_finished, thread_fsm_finished_p)
1665 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
1666 Don't declare.
1667 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
1668 * infrun.c (clear_proceed_status_thread)
1669 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
1670 (print_stop_event): Update.
1671 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
1672 Add constructor.
1673 (step_command_fsm_ops): Remove.
1674 (new_step_command_fsm): Remove.
1675 (step_1): Update.
1676 (step_command_fsm::should_stop): Rename from
1677 step_command_fsm_should_stop.
1678 (step_command_fsm::clean_up): Rename from
1679 step_command_fsm_clean_up.
1680 (step_command_fsm::do_async_reply_reason): Rename from
1681 step_command_fsm_async_reply_reason.
1682 (struct until_next_fsm): Inherit from thread_fsm. Add
1683 constructor.
1684 (until_next_fsm_ops): Remove.
1685 (new_until_next_fsm): Remove.
1686 (until_next_fsm::should_stop): Rename from
1687 until_next_fsm_should_stop.
1688 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
1689 (until_next_fsm::do_async_reply_reason): Rename from
1690 until_next_fsm_async_reply_reason.
1691 (struct finish_command_fsm): Inherit from thread_fsm. Add
1692 constructor. Change type of breakpoint.
1693 (finish_command_fsm_ops): Remove.
1694 (new_finish_command_fsm): Remove.
1695 (finish_command_fsm::should_stop): Rename from
1696 finish_command_fsm_should_stop.
1697 (finish_command_fsm::clean_up): Rename from
1698 finish_command_fsm_clean_up.
1699 (finish_command_fsm::return_value): Rename from
1700 finish_command_fsm_return_value.
1701 (finish_command_fsm::do_async_reply_reason): Rename from
1702 finish_command_fsm_async_reply_reason.
1703 (finish_command): Update.
1704 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
1705 Add constructor.
1706 (call_thread_fsm_ops): Remove.
1707 (call_thread_fsm::call_thread_fsm): Rename from
1708 new_call_thread_fsm.
1709 (call_thread_fsm::should_stop): Rename from
1710 call_thread_fsm_should_stop.
1711 (call_thread_fsm::should_notify_stop): Rename from
1712 call_thread_fsm_should_notify_stop.
1713 (run_inferior_call, call_function_by_hand_dummy): Update.
1714 * cli/cli-interp.c (should_print_stop_to_console): Update.
1715 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
1716 Add constructor. Change type of location_breakpoint,
1717 caller_breakpoint.
1718 (until_break_fsm_ops): Remove.
1719 (new_until_break_fsm): Remove.
1720 (until_break_fsm::should_stop): Rename from
1721 until_break_fsm_should_stop.
1722 (until_break_fsm::clean_up): Rename from
1723 until_break_fsm_clean_up.
1724 (until_break_fsm::do_async_reply_reason): Rename from
1725 until_break_fsm_async_reply_reason.
1726 (until_break_command): Update.
1727 * thread-fsm.c: Remove.
1728 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
1729
1a5c2598
TT
17302019-02-07 Tom Tromey <tom@tromey.com>
1731
1732 * yy-remap.h: Add include guard.
1733 * xtensa-tdep.h: Add include guard.
1734 * xcoffread.h: Rename include guard.
1735 * varobj-iter.h: Add include guard.
1736 * tui/tui.h: Rename include guard.
1737 * tui/tui-winsource.h: Rename include guard.
1738 * tui/tui-wingeneral.h: Rename include guard.
1739 * tui/tui-windata.h: Rename include guard.
1740 * tui/tui-win.h: Rename include guard.
1741 * tui/tui-stack.h: Rename include guard.
1742 * tui/tui-source.h: Rename include guard.
1743 * tui/tui-regs.h: Rename include guard.
1744 * tui/tui-out.h: Rename include guard.
1745 * tui/tui-layout.h: Rename include guard.
1746 * tui/tui-io.h: Rename include guard.
1747 * tui/tui-hooks.h: Rename include guard.
1748 * tui/tui-file.h: Rename include guard.
1749 * tui/tui-disasm.h: Rename include guard.
1750 * tui/tui-data.h: Rename include guard.
1751 * tui/tui-command.h: Rename include guard.
1752 * tic6x-tdep.h: Add include guard.
1753 * target/waitstatus.h: Rename include guard.
1754 * target/wait.h: Rename include guard.
1755 * target/target.h: Rename include guard.
1756 * target/resume.h: Rename include guard.
1757 * target-float.h: Rename include guard.
1758 * stabsread.h: Add include guard.
1759 * rs6000-tdep.h: Add include guard.
1760 * riscv-fbsd-tdep.h: Add include guard.
1761 * regformats/regdef.h: Rename include guard.
1762 * record.h: Rename include guard.
1763 * python/python.h: Rename include guard.
1764 * python/python-internal.h: Rename include guard.
1765 * python/py-stopevent.h: Rename include guard.
1766 * python/py-ref.h: Rename include guard.
1767 * python/py-record.h: Rename include guard.
1768 * python/py-record-full.h: Rename include guard.
1769 * python/py-record-btrace.h: Rename include guard.
1770 * python/py-instruction.h: Rename include guard.
1771 * python/py-events.h: Rename include guard.
1772 * python/py-event.h: Rename include guard.
1773 * procfs.h: Add include guard.
1774 * proc-utils.h: Add include guard.
1775 * p-lang.h: Add include guard.
1776 * or1k-tdep.h: Rename include guard.
1777 * observable.h: Rename include guard.
1778 * nto-tdep.h: Rename include guard.
1779 * nat/x86-linux.h: Rename include guard.
1780 * nat/x86-linux-dregs.h: Rename include guard.
1781 * nat/x86-gcc-cpuid.h: Add include guard.
1782 * nat/x86-dregs.h: Rename include guard.
1783 * nat/x86-cpuid.h: Rename include guard.
1784 * nat/ppc-linux.h: Rename include guard.
1785 * nat/mips-linux-watch.h: Rename include guard.
1786 * nat/linux-waitpid.h: Rename include guard.
1787 * nat/linux-ptrace.h: Rename include guard.
1788 * nat/linux-procfs.h: Rename include guard.
1789 * nat/linux-osdata.h: Rename include guard.
1790 * nat/linux-nat.h: Rename include guard.
1791 * nat/linux-namespaces.h: Rename include guard.
1792 * nat/linux-btrace.h: Rename include guard.
1793 * nat/glibc_thread_db.h: Rename include guard.
1794 * nat/gdb_thread_db.h: Rename include guard.
1795 * nat/gdb_ptrace.h: Rename include guard.
1796 * nat/fork-inferior.h: Rename include guard.
1797 * nat/amd64-linux-siginfo.h: Rename include guard.
1798 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
1799 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
1800 * nat/aarch64-linux.h: Rename include guard.
1801 * nat/aarch64-linux-hw-point.h: Rename include guard.
1802 * mn10300-tdep.h: Add include guard.
1803 * mips-linux-tdep.h: Add include guard.
1804 * mi/mi-parse.h: Rename include guard.
1805 * mi/mi-out.h: Rename include guard.
1806 * mi/mi-main.h: Rename include guard.
1807 * mi/mi-interp.h: Rename include guard.
1808 * mi/mi-getopt.h: Rename include guard.
1809 * mi/mi-console.h: Rename include guard.
1810 * mi/mi-common.h: Rename include guard.
1811 * mi/mi-cmds.h: Rename include guard.
1812 * mi/mi-cmd-break.h: Rename include guard.
1813 * m2-lang.h: Add include guard.
1814 * location.h: Rename include guard.
1815 * linux-record.h: Rename include guard.
1816 * linux-nat.h: Add include guard.
1817 * linux-fork.h: Add include guard.
1818 * i386-darwin-tdep.h: Rename include guard.
1819 * hppa-linux-offsets.h: Add include guard.
1820 * guile/guile.h: Rename include guard.
1821 * guile/guile-internal.h: Rename include guard.
1822 * gnu-nat.h: Rename include guard.
1823 * gdb-stabs.h: Rename include guard.
1824 * frv-tdep.h: Add include guard.
1825 * f-lang.h: Add include guard.
1826 * event-loop.h: Add include guard.
1827 * darwin-nat.h: Rename include guard.
1828 * cp-abi.h: Rename include guard.
1829 * config/sparc/nm-sol2.h: Rename include guard.
1830 * config/nm-nto.h: Rename include guard.
1831 * config/nm-linux.h: Add include guard.
1832 * config/i386/nm-i386gnu.h: Rename include guard.
1833 * config/djgpp/nl_types.h: Rename include guard.
1834 * config/djgpp/langinfo.h: Rename include guard.
1835 * compile/gcc-cp-plugin.h: Add include guard.
1836 * compile/gcc-c-plugin.h: Add include guard.
1837 * compile/compile.h: Rename include guard.
1838 * compile/compile-object-run.h: Rename include guard.
1839 * compile/compile-object-load.h: Rename include guard.
1840 * compile/compile-internal.h: Rename include guard.
1841 * compile/compile-cplus.h: Rename include guard.
1842 * compile/compile-c.h: Rename include guard.
1843 * common/xml-utils.h: Rename include guard.
1844 * common/x86-xstate.h: Rename include guard.
1845 * common/version.h: Rename include guard.
1846 * common/vec.h: Rename include guard.
1847 * common/tdesc.h: Rename include guard.
1848 * common/selftest.h: Rename include guard.
1849 * common/scoped_restore.h: Rename include guard.
1850 * common/scoped_mmap.h: Rename include guard.
1851 * common/scoped_fd.h: Rename include guard.
1852 * common/safe-iterator.h: Rename include guard.
1853 * common/run-time-clock.h: Rename include guard.
1854 * common/refcounted-object.h: Rename include guard.
1855 * common/queue.h: Rename include guard.
1856 * common/ptid.h: Rename include guard.
1857 * common/print-utils.h: Rename include guard.
1858 * common/preprocessor.h: Rename include guard.
1859 * common/pathstuff.h: Rename include guard.
1860 * common/observable.h: Rename include guard.
1861 * common/netstuff.h: Rename include guard.
1862 * common/job-control.h: Rename include guard.
1863 * common/host-defs.h: Rename include guard.
1864 * common/gdb_wait.h: Rename include guard.
1865 * common/gdb_vecs.h: Rename include guard.
1866 * common/gdb_unlinker.h: Rename include guard.
1867 * common/gdb_unique_ptr.h: Rename include guard.
1868 * common/gdb_tilde_expand.h: Rename include guard.
1869 * common/gdb_sys_time.h: Rename include guard.
1870 * common/gdb_string_view.h: Rename include guard.
1871 * common/gdb_splay_tree.h: Rename include guard.
1872 * common/gdb_setjmp.h: Rename include guard.
1873 * common/gdb_ref_ptr.h: Rename include guard.
1874 * common/gdb_optional.h: Rename include guard.
1875 * common/gdb_locale.h: Rename include guard.
1876 * common/gdb_assert.h: Rename include guard.
1877 * common/filtered-iterator.h: Rename include guard.
1878 * common/filestuff.h: Rename include guard.
1879 * common/fileio.h: Rename include guard.
1880 * common/environ.h: Rename include guard.
1881 * common/common-utils.h: Rename include guard.
1882 * common/common-types.h: Rename include guard.
1883 * common/common-regcache.h: Rename include guard.
1884 * common/common-inferior.h: Rename include guard.
1885 * common/common-gdbthread.h: Rename include guard.
1886 * common/common-exceptions.h: Rename include guard.
1887 * common/common-defs.h: Rename include guard.
1888 * common/common-debug.h: Rename include guard.
1889 * common/cleanups.h: Rename include guard.
1890 * common/buffer.h: Rename include guard.
1891 * common/btrace-common.h: Rename include guard.
1892 * common/break-common.h: Rename include guard.
1893 * cli/cli-utils.h: Rename include guard.
1894 * cli/cli-style.h: Rename include guard.
1895 * cli/cli-setshow.h: Rename include guard.
1896 * cli/cli-script.h: Rename include guard.
1897 * cli/cli-interp.h: Rename include guard.
1898 * cli/cli-decode.h: Rename include guard.
1899 * cli/cli-cmds.h: Rename include guard.
1900 * charset-list.h: Add include guard.
1901 * buildsym-legacy.h: Rename include guard.
1902 * bfin-tdep.h: Add include guard.
1903 * ax.h: Rename include guard.
1904 * arm-linux-tdep.h: Add include guard.
1905 * arm-fbsd-tdep.h: Add include guard.
1906 * arch/xtensa.h: Rename include guard.
1907 * arch/tic6x.h: Add include guard.
1908 * arch/i386.h: Add include guard.
1909 * arch/arm.h: Rename include guard.
1910 * arch/arm-linux.h: Rename include guard.
1911 * arch/arm-get-next-pcs.h: Rename include guard.
1912 * arch/amd64.h: Add include guard.
1913 * arch/aarch64-insn.h: Rename include guard.
1914 * arch-utils.h: Rename include guard.
1915 * annotate.h: Add include guard.
1916 * amd64-darwin-tdep.h: Rename include guard.
1917 * aarch64-linux-tdep.h: Add include guard.
1918 * aarch64-fbsd-tdep.h: Add include guard.
1919 * aarch32-linux-nat.h: Add include guard.
1920
ab9268d2
PW
19212019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1922
1923 * macrotab.c (macro_define_internal): New function that
1924 factorizes macro_define_object_internal and macro_define_function
1925 code.
1926 (macro_define_object_internal): Use macro_define_internal.
1927 (macro_define_function): Likewise.
1928
bb0da2b4
PW
19292019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1930
1931 * macrocmd.c (extract_identifier): Return
1932 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
1933 callers.
1934
424eb552
JB
19352019-02-06 John Baldwin <jhb@FreeBSD.org>
1936
1937 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
1938
1688cb29
TT
19392019-02-05 Tom Tromey <tom@tromey.com>
1940
1941 * target.c (target_stack::unpush): Move assertion earlier.
1942
b5eba2d8
TT
19432019-01-30 Tom Tromey <tom@tromey.com>
1944
1945 PR python/23615:
1946 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
1947 (gdbpy_parse_and_eval): Likewise.
1948 * python/python-internal.h (gdbpy_allow_threads): New class.
1949
7054e2ff
JB
19502019-01-28 John Baldwin <jhb@FreeBSD.org>
1951
1952 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
1953 (aarch64_fbsd_fpregmap): Move earlier.
1954 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
1955 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1956 instead of individual calls to trad_frame_set_reg_addr.
1957 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
1958 earlier.
1959 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
1960 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1961 instead of individual calls to trad_frame_set_reg_addr.
1962
36c25ffa
AH
19632019-01-28 Alan Hayward <alan.hayward@arm.com>
1964
1965 * CONTRIBUTE: Replace contribution list with wiki link.
1966
a0707f3c
TT
19672019-01-25 Tom Tromey <tom@tromey.com>
1968
1969 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
1970
0747795c
TT
19712019-01-25 Tom Tromey <tom@tromey.com>
1972
1973 * xtensa-linux-nat.c: Fix common/ includes.
1974 * xml-support.h: Fix common/ includes.
1975 * xml-support.c: Fix common/ includes.
1976 * x86-linux-nat.c: Fix common/ includes.
1977 * windows-nat.c: Fix common/ includes.
1978 * varobj.h: Fix common/ includes.
1979 * varobj.c: Fix common/ includes.
1980 * value.c: Fix common/ includes.
1981 * valops.c: Fix common/ includes.
1982 * utils.c: Fix common/ includes.
1983 * unittests/xml-utils-selftests.c: Fix common/ includes.
1984 * unittests/utils-selftests.c: Fix common/ includes.
1985 * unittests/unpack-selftests.c: Fix common/ includes.
1986 * unittests/tracepoint-selftests.c: Fix common/ includes.
1987 * unittests/style-selftests.c: Fix common/ includes.
1988 * unittests/string_view-selftests.c: Fix common/ includes.
1989 * unittests/scoped_restore-selftests.c: Fix common/ includes.
1990 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
1991 * unittests/scoped_fd-selftests.c: Fix common/ includes.
1992 * unittests/rsp-low-selftests.c: Fix common/ includes.
1993 * unittests/parse-connection-spec-selftests.c: Fix common/
1994 includes.
1995 * unittests/optional-selftests.c: Fix common/ includes.
1996 * unittests/offset-type-selftests.c: Fix common/ includes.
1997 * unittests/observable-selftests.c: Fix common/ includes.
1998 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
1999 * unittests/memrange-selftests.c: Fix common/ includes.
2000 * unittests/memory-map-selftests.c: Fix common/ includes.
2001 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
2002 * unittests/function-view-selftests.c: Fix common/ includes.
2003 * unittests/environ-selftests.c: Fix common/ includes.
2004 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
2005 * unittests/common-utils-selftests.c: Fix common/ includes.
2006 * unittests/cli-utils-selftests.c: Fix common/ includes.
2007 * unittests/array-view-selftests.c: Fix common/ includes.
2008 * ui-file.c: Fix common/ includes.
2009 * tui/tui-io.c: Fix common/ includes.
2010 * tracepoint.h: Fix common/ includes.
2011 * tracepoint.c: Fix common/ includes.
2012 * tracefile-tfile.c: Fix common/ includes.
2013 * top.h: Fix common/ includes.
2014 * top.c: Fix common/ includes.
2015 * thread.c: Fix common/ includes.
2016 * target/waitstatus.h: Fix common/ includes.
2017 * target/waitstatus.c: Fix common/ includes.
2018 * target.h: Fix common/ includes.
2019 * target.c: Fix common/ includes.
2020 * target-memory.c: Fix common/ includes.
2021 * target-descriptions.c: Fix common/ includes.
2022 * symtab.h: Fix common/ includes.
2023 * symfile.c: Fix common/ includes.
2024 * stap-probe.c: Fix common/ includes.
2025 * spu-linux-nat.c: Fix common/ includes.
2026 * sparc-nat.c: Fix common/ includes.
2027 * source.c: Fix common/ includes.
2028 * solib.c: Fix common/ includes.
2029 * solib-target.c: Fix common/ includes.
2030 * ser-unix.c: Fix common/ includes.
2031 * ser-tcp.c: Fix common/ includes.
2032 * ser-pipe.c: Fix common/ includes.
2033 * ser-base.c: Fix common/ includes.
2034 * selftest-arch.c: Fix common/ includes.
2035 * s12z-tdep.c: Fix common/ includes.
2036 * rust-exp.y: Fix common/ includes.
2037 * rs6000-aix-tdep.c: Fix common/ includes.
2038 * riscv-tdep.c: Fix common/ includes.
2039 * remote.c: Fix common/ includes.
2040 * remote-notif.h: Fix common/ includes.
2041 * remote-fileio.h: Fix common/ includes.
2042 * remote-fileio.c: Fix common/ includes.
2043 * regcache.h: Fix common/ includes.
2044 * regcache.c: Fix common/ includes.
2045 * record-btrace.c: Fix common/ includes.
2046 * python/python.c: Fix common/ includes.
2047 * python/py-type.c: Fix common/ includes.
2048 * python/py-inferior.c: Fix common/ includes.
2049 * progspace.h: Fix common/ includes.
2050 * producer.c: Fix common/ includes.
2051 * procfs.c: Fix common/ includes.
2052 * proc-api.c: Fix common/ includes.
2053 * printcmd.c: Fix common/ includes.
2054 * ppc-linux-nat.c: Fix common/ includes.
2055 * parser-defs.h: Fix common/ includes.
2056 * osdata.c: Fix common/ includes.
2057 * obsd-nat.c: Fix common/ includes.
2058 * nat/x86-linux.c: Fix common/ includes.
2059 * nat/x86-linux-dregs.c: Fix common/ includes.
2060 * nat/x86-dregs.h: Fix common/ includes.
2061 * nat/x86-dregs.c: Fix common/ includes.
2062 * nat/ppc-linux.c: Fix common/ includes.
2063 * nat/mips-linux-watch.h: Fix common/ includes.
2064 * nat/mips-linux-watch.c: Fix common/ includes.
2065 * nat/linux-waitpid.c: Fix common/ includes.
2066 * nat/linux-ptrace.h: Fix common/ includes.
2067 * nat/linux-ptrace.c: Fix common/ includes.
2068 * nat/linux-procfs.c: Fix common/ includes.
2069 * nat/linux-personality.c: Fix common/ includes.
2070 * nat/linux-osdata.c: Fix common/ includes.
2071 * nat/linux-namespaces.c: Fix common/ includes.
2072 * nat/linux-btrace.h: Fix common/ includes.
2073 * nat/linux-btrace.c: Fix common/ includes.
2074 * nat/fork-inferior.c: Fix common/ includes.
2075 * nat/amd64-linux-siginfo.c: Fix common/ includes.
2076 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
2077 * nat/aarch64-linux.c: Fix common/ includes.
2078 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
2079 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
2080 * namespace.h: Fix common/ includes.
2081 * mips-linux-tdep.c: Fix common/ includes.
2082 * minsyms.c: Fix common/ includes.
2083 * mi/mi-parse.h: Fix common/ includes.
2084 * mi/mi-main.c: Fix common/ includes.
2085 * mi/mi-cmd-env.c: Fix common/ includes.
2086 * memrange.h: Fix common/ includes.
2087 * memattr.c: Fix common/ includes.
2088 * maint.h: Fix common/ includes.
2089 * maint.c: Fix common/ includes.
2090 * main.c: Fix common/ includes.
2091 * machoread.c: Fix common/ includes.
2092 * location.c: Fix common/ includes.
2093 * linux-thread-db.c: Fix common/ includes.
2094 * linux-nat.c: Fix common/ includes.
2095 * linux-fork.c: Fix common/ includes.
2096 * inline-frame.c: Fix common/ includes.
2097 * infrun.c: Fix common/ includes.
2098 * inflow.c: Fix common/ includes.
2099 * inferior.h: Fix common/ includes.
2100 * inferior.c: Fix common/ includes.
2101 * infcmd.c: Fix common/ includes.
2102 * inf-ptrace.c: Fix common/ includes.
2103 * inf-child.c: Fix common/ includes.
2104 * ia64-linux-nat.c: Fix common/ includes.
2105 * i387-tdep.c: Fix common/ includes.
2106 * i386-tdep.c: Fix common/ includes.
2107 * i386-linux-tdep.c: Fix common/ includes.
2108 * i386-linux-nat.c: Fix common/ includes.
2109 * i386-go32-tdep.c: Fix common/ includes.
2110 * i386-fbsd-tdep.c: Fix common/ includes.
2111 * i386-fbsd-nat.c: Fix common/ includes.
2112 * guile/scm-type.c: Fix common/ includes.
2113 * guile/guile.c: Fix common/ includes.
2114 * go32-nat.c: Fix common/ includes.
2115 * gnu-nat.c: Fix common/ includes.
2116 * gdbthread.h: Fix common/ includes.
2117 * gdbarch-selftests.c: Fix common/ includes.
2118 * gdb_usleep.c: Fix common/ includes.
2119 * gdb_select.h: Fix common/ includes.
2120 * gdb_bfd.c: Fix common/ includes.
2121 * gcore.c: Fix common/ includes.
2122 * fork-child.c: Fix common/ includes.
2123 * findvar.c: Fix common/ includes.
2124 * fbsd-nat.c: Fix common/ includes.
2125 * event-top.c: Fix common/ includes.
2126 * event-loop.c: Fix common/ includes.
2127 * dwarf2read.c: Fix common/ includes.
2128 * dwarf2loc.c: Fix common/ includes.
2129 * dwarf2-frame.c: Fix common/ includes.
2130 * dwarf-index-cache.c: Fix common/ includes.
2131 * dtrace-probe.c: Fix common/ includes.
2132 * disasm-selftests.c: Fix common/ includes.
2133 * defs.h: Fix common/ includes.
2134 * csky-tdep.c: Fix common/ includes.
2135 * cp-valprint.c: Fix common/ includes.
2136 * cp-support.h: Fix common/ includes.
2137 * cp-support.c: Fix common/ includes.
2138 * corelow.c: Fix common/ includes.
2139 * completer.h: Fix common/ includes.
2140 * completer.c: Fix common/ includes.
2141 * compile/compile.c: Fix common/ includes.
2142 * compile/compile-loc2c.c: Fix common/ includes.
2143 * compile/compile-cplus-types.c: Fix common/ includes.
2144 * compile/compile-cplus-symbols.c: Fix common/ includes.
2145 * command.h: Fix common/ includes.
2146 * cli/cli-dump.c: Fix common/ includes.
2147 * cli/cli-cmds.c: Fix common/ includes.
2148 * charset.c: Fix common/ includes.
2149 * build-id.c: Fix common/ includes.
2150 * btrace.h: Fix common/ includes.
2151 * btrace.c: Fix common/ includes.
2152 * breakpoint.h: Fix common/ includes.
2153 * breakpoint.c: Fix common/ includes.
2154 * ax.h:
2155 (enum agent_op): Fix common/ includes.
2156 * ax-general.c (struct aop_map): Fix common/ includes.
2157 * ax-gdb.c: Fix common/ includes.
2158 * auxv.c: Fix common/ includes.
2159 * auto-load.c: Fix common/ includes.
2160 * arm-tdep.c: Fix common/ includes.
2161 * arch/riscv.c: Fix common/ includes.
2162 * arch/ppc-linux-common.c: Fix common/ includes.
2163 * arch/i386.c: Fix common/ includes.
2164 * arch/arm.c: Fix common/ includes.
2165 * arch/arm-linux.c: Fix common/ includes.
2166 * arch/arm-get-next-pcs.c: Fix common/ includes.
2167 * arch/amd64.c: Fix common/ includes.
2168 * arch/aarch64.c: Fix common/ includes.
2169 * arch/aarch64-insn.c: Fix common/ includes.
2170 * arch-utils.c: Fix common/ includes.
2171 * amd64-windows-tdep.c: Fix common/ includes.
2172 * amd64-tdep.c: Fix common/ includes.
2173 * amd64-sol2-tdep.c: Fix common/ includes.
2174 * amd64-obsd-tdep.c: Fix common/ includes.
2175 * amd64-nbsd-tdep.c: Fix common/ includes.
2176 * amd64-linux-tdep.c: Fix common/ includes.
2177 * amd64-linux-nat.c: Fix common/ includes.
2178 * amd64-fbsd-tdep.c: Fix common/ includes.
2179 * amd64-fbsd-nat.c: Fix common/ includes.
2180 * amd64-dicos-tdep.c: Fix common/ includes.
2181 * amd64-darwin-tdep.c: Fix common/ includes.
2182 * agent.c: Fix common/ includes.
2183 * ada-lang.h: Fix common/ includes.
2184 * ada-lang.c: Fix common/ includes.
2185 * aarch64-tdep.c: Fix common/ includes.
2186
2f5c153e
TT
21872019-01-25 Tom Tromey <tom@tromey.com>
2188
2189 * common/create-version.sh: Use common/version.h.
2190
adc6a863
PA
21912019-01-24 Pedro Alves <palves@redhat.com>
2192
2193 * infrun.c (signal_stop, signal_print, signal_program)
2194 (signal_catch, signal_pass): Now arrays instead of pointers.
2195 (update_signals_program_target, do_target_resume)
2196 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
2197 * linux-nat.c (linux_nat_target::pass_signals)
2198 (linux_nat_target::create_inferior, linux_nat_target::attach):
2199 Adjust.
2200 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
2201 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
2202 * procfs.c (procfs_target::pass_signals): Adjust.
2203 * record-full.c (record_full_target::resume): Adjust.
2204 * remote.c (remote_target::pass_signals)
2205 (remote_target::program_signals): Adjust.
2206 * target-debug.h (target_debug_print_signals): Now takes a
2207 gdb::array_view as parameter. Adjust.
2208 * target.h (target_ops) <pass_signals, program_signals>: Replace
2209 pointer and length parameters with gdb::array_view.
2210 (target_pass_signals, target_program_signals): Likewise.
2211 * target-delegates.c: Regenerate.
2212
3046d67a
PA
22132019-01-24 Pedro Alves <palves@redhat.com>
2214
2215 * common/forward-scope-exit.h
2216 (forward_scope_exit::forward_scope_exit): Pass arguments to
2217 m_bind_function directly, instead of creating a std::bind and
2218 copying that.
2219
353229bf
AH
22202019-01-24 Alan Hayward <alan.hayward@arm.com>
2221
2222 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2223 for static members.
2224 (pass_in_v_vfp_candidate): Likewise.
2225
311dc83a
TT
22262019-01-23 Tom Tromey <tom@tromey.com>
2227 Pedro Alves <palves@redhat.com>
2228
2229 * regcache.c (class regcache_invalidator): Remove.
2230 (regcache::raw_write): Use make_scope_exit.
2231
296bd123
TT
22322019-01-23 Tom Tromey <tom@tromey.com>
2233
2234 * ui-out.h (class ui_out_emit_type): Update comment.
2235
979a0d13
TT
22362019-01-23 Tom Tromey <tom@tromey.com>
2237
2238 * infrun.c (fetch_inferior_event): Update comment.
2239
d238133d
TT
22402019-01-23 Tom Tromey <tom@tromey.com>
2241 Pedro Alves <palves@redhat.com>
2242
2243 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
2244 parameter.
2245 (fetch_inferior_event): Use SCOPE_EXIT.
2246
2247
9885e6bb
TT
22482019-01-23 Tom Tromey <tom@tromey.com>
2249 Pedro Alves <palves@redhat.com>
2250
2251 * infrun.c (disable_thread_events): Delete.
2252 (stop_all_threads): Use SCOPE_EXIT.
2253
286526c1
TT
22542019-01-23 Tom Tromey <tom@tromey.com>
2255 Pedro Alves <palves@redhat.com>
2256
2257 * symfile.c: Include forward-scope-exit.h.
2258 (clear_symtab_users_cleanup): Replace forward declaration with
2259 a FORWARD_SCOPE_EXIT.
2260 (syms_from_objfile_1): Use the forward_scope_exit and
2261 gdb::optional instead of cleanup_function.
2262 (reread_symbols): Use the forward_scope_exit instead of
2263 cleanup_function.
2264 (clear_symtab_users_cleanup): Remove function.
2265
1db93f14
TT
22662019-01-23 Tom Tromey <tom@tromey.com>
2267 Pedro Alves <palves@redhat.com>
2268
2269 * linux-nat.c: Include scope-exit.h.
2270 (cleanup_target_stop): Remove.
2271 (linux_nat_target::static_tracepoint_markers_by_strid): Use
2272 SCOPE_EXIT.
2273
2cc83d1e
TT
22742019-01-23 Tom Tromey <tom@tromey.com>
2275 Pedro Alves <palves@redhat.com>
2276
2277 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
2278 (call_function_by_hand_dummy): Use SCOPE_EXIT.
2279
694c6bf5
TT
22802019-01-23 Tom Tromey <tom@tromey.com>
2281 Andrew Burgess <andrew.burgess@embecosm.com>
2282 Pedro Alves <palves@redhat.com>
2283
2284 * infrun.c (fetch_inferior_event): Use scope_exit.
2285 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
2286 * top.c (execute_command): Use scope_exit.
2287 * breakpoint.c (bpstat_do_actions): Use scope_exit.
2288 * utils.c (do_bpstat_clear_actions_cleanup)
2289 (make_bpstat_clear_actions_cleanup): Remove.
2290
4c41382a
TT
22912019-01-23 Tom Tromey <tom@tromey.com>
2292 Pedro Alves <palves@redhat.com>
2293
2294 * infrun.c: Include "common/scope-exit.h"
2295 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
2296 (wait_for_inferior): Use SCOPE_EXIT.
2297 (fetch_inferior_event): Use scope_exit.
2298
89f8fb50
TT
22992019-01-23 Tom Tromey <tom@tromey.com>
2300 Pedro Alves <palves@redhat.com>
2301
2302 * breakpoint.c (create_breakpoint): Remove cleanup.
2303
5419bdae
TT
23042019-01-23 Tom Tromey <tom@tromey.com>
2305 Andrew Burgess <andrew.burgess@embecosm.com>
2306 Pedro Alves <palves@redhat.com>
2307
e587ef42
PA
23082019-01-23 Pedro Alves <palves@redhat.com>
2309
2310 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
2311
77f0e74c
PA
23122019-01-23 Pedro Alves <palves@redhat.com>
2313 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * gdbthread.h: Include "common/forward-scope-exit.h".
2316 (scoped_finish_thread_state): Redefine custom class in terms of
2317 forward_scope_exit.
2318
5b9b3e53
PA
23192019-01-23 Pedro Alves <palves@redhat.com>
2320 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * common/forward-scope-exit.h: New file.
2323
54b65c9b
PA
23242019-01-23 Pedro Alves <palves@redhat.com>
2325 Andrew Burgess <andrew.burgess@embecosm.com>
2326 Tom Tromey <tom@tromey.com>
2327
2328 * common/scope-exit.h: New file.
2329
cf08fb29
PA
23302019-01-23 Pedro Alves <palves@redhat.com>
2331
2332 * common/preprocessor.h (ESC): Rename to ...
2333 (ESC_PARENS): ... this.
2334 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
2335 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
2336
ae73e2e2
TT
23372019-01-23 Tom Tromey <tom@tromey.com>
2338
2339 * language.h (class scoped_switch_to_sym_language_if_auto):
2340 Initialize m_lang in both cases.
2341
6594e122
AH
23422019-01-23 Alan Hayward <alan.hayward@arm.com>
2343
2344 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
2345 with XCNEW.
2346
a7c9855d
TT
23472019-01-22 Tom Tromey <tom@tromey.com>
2348
2349 * corelow.c: Do not include sys/file.h.
2350
93cc1d53
TT
23512019-01-22 Tom Tromey <tom@tromey.com>
2352
2353 * tui/tui-wingeneral.h: Include gdb_curses.h.
2354
38561778
TT
23552019-01-22 Tom Tromey <tom@tromey.com>
2356
2357 * source-cache.h (class source_cache) <get_source_lines,
2358 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
2359
37b3ab5b
TT
23602019-01-22 Tom Tromey <tom@tromey.com>
2361
2362 * remote-fileio.h (struct remote_target): Declare.
2363
3fabc016
TT
23642019-01-22 Tom Tromey <tom@tromey.com>
2365
2366 * python/py-arch.c: Do not include py-ref.h.
2367 * python/py-bpevent.c: Do not include py-ref.h.
2368 * python/py-cmd.c: Do not include py-ref.h.
2369 * python/py-continueevent.c: Do not include py-ref.h.
2370 * python/py-event.h: Do not include py-ref.h.
2371 * python/py-evtregistry.c: Do not include py-ref.h.
2372 * python/py-finishbreakpoint.c: Do not include py-ref.h.
2373 * python/py-frame.c: Do not include py-ref.h.
2374 * python/py-framefilter.c: Do not include py-ref.h.
2375 * python/py-function.c: Do not include py-ref.h.
2376 * python/py-infevents.c: Do not include py-ref.h.
2377 * python/py-linetable.c: Do not include py-ref.h.
2378 * python/py-objfile.c: Do not include py-ref.h.
2379 * python/py-param.c: Do not include py-ref.h.
2380 * python/py-prettyprint.c: Do not include py-ref.h.
2381 * python/py-progspace.c: Do not include py-ref.h.
2382 * python/py-symbol.c: Do not include py-ref.h.
2383 * python/py-symtab.c: Do not include py-ref.h.
2384 * python/py-type.c: Do not include py-ref.h.
2385 * python/py-unwind.c: Do not include py-ref.h.
2386 * python/py-utils.c: Do not include py-ref.h.
2387 * python/py-value.c: Do not include py-ref.h.
2388 * python/py-varobj.c: Do not include py-ref.h.
2389 * python/py-xmethods.c: Do not include py-ref.h.
2390 * python/python.c: Do not include py-ref.h.
2391 * varobj.c: Do not include py-ref.h.
2392
6b4d7774
TT
23932019-01-22 Tom Tromey <tom@tromey.com>
2394
2395 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
2396 keyword for bcache.
2397
7af7e9b5
TT
23982019-01-22 Tom Tromey <tom@tromey.com>
2399
2400 * compile/compile-cplus-types.c: Remove a comment by #include.
2401
951d1049
TT
24022019-01-22 Tom Tromey <tom@tromey.com>
2403
2404 * compile/gcc-c-plugin.h: Include compile-internal.h.
2405
d65d5705
TT
24062019-01-22 Tom Tromey <tom@tromey.com>
2407
2408 * stabsread.c (EXTERN): Do not define.
2409 (symnum, next_symbol_text_func, processing_gcc_compilation)
2410 (within_function, global_sym_chain, global_stabs)
2411 (previous_stab_code, this_object_header_files)
2412 (n_this_object_header_files)
2413 (n_allocated_this_object_header_files): Define.
2414 * stabsread.h (EXTERN): Never define. Use "extern".
2415
b6fb1ee5
PW
24162019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2417
2418 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
2419 history_value.
2420
be6d4f74
TT
24212019-01-21 Tom Tromey <tom@tromey.com>
2422
2423 * ui-out.c: Fix includes.
2424 * tui/tui-source.c: Fix includes.
2425 * target.c: Fix includes.
2426 * remote.c: Fix includes.
2427 * regcache.c: Fix includes.
2428 * python/py-block.c: Fix includes.
2429 * printcmd.c: Fix includes.
2430 * or1k-tdep.c: Fix includes.
2431 * mi/mi-main.c: Fix includes.
2432 * m32r-tdep.c: Fix includes.
2433 * csky-tdep.c: Fix includes.
2434 * compile/compile-cplus-types.c: Fix includes.
2435 * cli/cli-interp.c: Fix includes.
2436
73021deb
AH
24372019-01-21 Alan Hayward <alan.hayward@arm.com>
2438
2439 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2440 for padding.
2441
7932255d
TT
24422019-01-16 Tom Tromey <tom@tromey.com>
2443
2444 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
2445 earlier.
2446 (struct objfile) <msymbols_range>: Move from top level.
2447 <msymbols>: New method.
2448 (class objfile_msymbols): Remove.
2449 * symtab.c (default_collect_symbol_completion_matches_break_on):
2450 Update.
2451 * symmisc.c (dump_msymbols): Update.
2452 * stabsread.c (scan_file_globals): Update.
2453 * objc-lang.c (info_selectors_command, info_classes_command)
2454 (find_methods): Update.
2455 * minsyms.c (find_solib_trampoline_target): Update.
2456 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2457 * coffread.c (coff_symfile_read): Update.
2458 * ada-lang.c (ada_lookup_simple_minsym)
2459 (ada_collect_symbol_completion_matches): Update.
2460
604b1bfb
TT
24612019-01-16 Tom Tromey <tom@tromey.com>
2462
2463 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
2464 type. Remove no-argument constructor.
2465 <iterator::operator++>: Simplify.
2466 <begin>: Update.
2467 <end>: Use minimal_symbol_count.
2468
f252c6d5
TT
24692019-01-16 Tom Tromey <tom@tromey.com>
2470
2471 * objfiles.h (struct objfile) <psymtabs>: New method.
2472 (class objfile_psymtabs): Remove.
2473 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
2474 typedef.
2475 <range>: New method.
2476 (require_partial_symbols): Change return type.
2477 * psymtab.c (require_partial_symbols)
2478 (psym_expand_symtabs_matching): Update.
2479 * mdebugread.c (parse_partial_symbols): Update.
2480 * dbxread.c (dbx_end_psymtab): Update.
2481
b669c953
TT
24822019-01-15 Tom Tromey <tom@tromey.com>
2483
2484 * symtab.c (lookup_objfile_from_block)
2485 (lookup_symbol_in_objfile_symtabs)
2486 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
2487 (find_line_symtab, info_sources_command)
2488 (default_collect_symbol_completion_matches_break_on)
2489 (make_source_files_completion_list): Update.
2490 * symmisc.c (print_objfile_statistics, dump_objfile)
2491 (maintenance_print_symbols, maintenance_info_symtabs)
2492 (maintenance_check_symtabs, maintenance_info_line_tables):
2493 Update.
2494 * source.c (select_source_symtab)
2495 (forget_cached_source_info_for_objfile): Update.
2496 * objfiles.h (class objfile_compunits): Remove.
2497 (struct objfile) <compunits_range>: New typedef.
2498 (compunits): New method.
2499 * objfiles.c (objfile_relocate1): Update.
2500 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2501 * maint.c (count_symtabs_and_blocks): Update.
2502 * linespec.c (iterate_over_all_matching_symtabs): Update.
2503 * cp-support.c (add_symbol_overload_list_qualified): Update.
2504 * coffread.c (coff_symtab_read): Update.
2505 * ada-lang.c (add_nonlocal_symbols)
2506 (ada_collect_symbol_completion_matches)
2507 (ada_add_global_exceptions): Update.
2508
7e955d83
TT
25092019-01-15 Tom Tromey <tom@tromey.com>
2510
2511 * progspace.h (program_space) <objfiles_safe_range>: New
2512 typedef.
2513 <objfiles_safe>: New method.
2514 * objfiles.h (class all_objfiles_safe): Remove.
2515 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
2516 * jit.c (jit_inferior_exit_hook): Update.
2517
2030c079
TT
25182019-01-17 Tom Tromey <tom@tromey.com>
2519
2520 * progspace.h (program_space) <objfiles_range>: New typedef.
2521 <objfiles>: New method.
2522 <objfiles_head>: Rename from objfiles.
2523 (object_files): Update.
2524 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
2525 * guile/scm-pretty-print.c
2526 (ppscm_find_pretty_printer_from_objfiles): Update.
2527 * guile/scm-objfile.c (gdbscm_objfiles): Update.
2528 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2529 Update.
2530 * python/py-progspace.c (pspy_get_objfiles): Update.
2531 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2532 Update.
2533 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
2534 (objfpy_lookup_objfile_by_build_id): Update.
2535 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2536 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
2537 Update.
2538 * symtab.c (iterate_over_symtabs, matching_obj_sections)
2539 (expand_symtab_containing_pc, lookup_objfile_from_block)
2540 (lookup_static_symbol, basic_lookup_transparent_type)
2541 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2542 (find_line_symtab, info_sources_command)
2543 (default_collect_symbol_completion_matches_break_on)
2544 (make_source_files_completion_list, find_main_name): Update.
2545 * symmisc.c (print_symbol_bcache_statistics)
2546 (print_objfile_statistics, maintenance_print_symbols)
2547 (maintenance_print_msymbols, maintenance_print_objfiles)
2548 (maintenance_info_symtabs, maintenance_check_symtabs)
2549 (maintenance_expand_symtabs, maintenance_info_line_tables):
2550 Update.
2551 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
2552 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
2553 (map_overlay_command, unmap_overlay_command)
2554 (simple_overlay_update, expand_symtabs_matching)
2555 (map_symbol_filenames): Update.
2556 * symfile-debug.c (set_debug_symfile): Update.
2557 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
2558 Update.
2559 * source.c (select_source_symtab, forget_cached_source_info):
2560 Update.
2561 * solib.c (solib_read_symbols): Update.
2562 * solib-spu.c (append_ocl_sos): Update.
2563 * psymtab.c (maintenance_print_psymbols)
2564 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2565 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
2566 * printcmd.c (info_symbol_command): Update.
2567 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
2568 Update.
2569 * objfiles.h (class all_objfiles): Remove.
2570 * objfiles.c (have_partial_symbols, have_full_symbols)
2571 (have_minimal_symbols, qsort_cmp, update_section_map)
2572 (shared_objfile_contains_address_p)
2573 (default_iterate_over_objfiles_in_search_order): Update.
2574 * objc-lang.c (info_selectors_command, info_classes_command)
2575 (find_methods): Update.
2576 * minsyms.c (find_solib_trampoline_target): Update.
2577 * maint.c (maintenance_info_sections)
2578 (maintenance_translate_address, count_symtabs_and_blocks):
2579 Update.
2580 * main.c (captured_main_1): Update.
2581 * linux-thread-db.c (try_thread_db_load_from_pdir)
2582 (has_libpthread): Update.
2583 * linespec.c (iterate_over_all_matching_symtabs)
2584 (search_minsyms_for_name): Update.
2585 * jit.c (jit_find_objf_with_entry_addr): Update.
2586 * hppa-tdep.c (find_unwind_entry)
2587 (hppa_lookup_stub_minimal_symbol): Update.
2588 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
2589 Update.
2590 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2591 (elf_gnu_ifunc_resolve_by_got): Update.
2592 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
2593 * dwarf-index-write.c (save_gdb_index_command): Update.
2594 * cp-support.c (add_symbol_overload_list_qualified): Update.
2595 * breakpoint.c (create_overlay_event_breakpoint)
2596 (create_longjmp_master_breakpoint)
2597 (create_std_terminate_master_breakpoint)
2598 (create_exception_master_breakpoint): Update.
2599 * blockframe.c (find_pc_partial_function): Update.
2600 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
2601 (ada_collect_symbol_completion_matches)
2602 (ada_add_global_exceptions): Update.
2603
776489e0
TT
26042019-01-17 Tom Tromey <tom@tromey.com>
2605
2606 * solib-target.c (lm_info_target_p): Remove typedef. Don't
2607 declare VEC.
2608 (solib_target_parse_libraries): Change return type.
2609 (library_list_start_segment, library_list_start_section)
2610 (library_list_end_library, library_list_start_library); Update.
2611 (solib_target_free_library_list): Remove.
2612 (solib_target_parse_libraries): Remove cleanup. Change return
2613 type.
2614 (solib_target_current_sos): Update.
2615
6471e7d2
TT
26162019-01-17 Tom Tromey <tromey@bapiya>
2617
2618 * valprint.c: Replace "the the" with "the".
2619 * symtab.c: Replace "the the" with "the".
2620 * solib.c: Replace "the the" with "the".
2621 * solib-dsbt.c: Replace "the the" with "the".
2622 * linespec.c: Replace "the the" with "the".
2623 * dwarf2loc.h: Replace "the the" with "the".
2624 * amd64-windows-tdep.c: Replace "the the" with "the".
2625 * aarch64-tdep.c: Replace "the the" with "the".
2626
c24bdb02
KS
26272019-01-16 Keith Seitz <keiths@redhat.com>
2628
2629 PR gdb/23773
2630 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
2631 <builder>: Rename to ..
2632 <m_builder>: ... this and make private.
2633 (dwarf2_cu::get_builder): New method. Change all users of
2634 `builder' to use this method.
2635 (dwarf2_start_symtab): Move to ...
2636 (dwarf2_cu::start_symtab): ... here. Update all callers
2637 (setup_type_unit_groups): Move to ...
2638 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
2639 callers.
2640 (dwarf2_cu::reset_builder): New method.
2641 (process_full_compunit, process_full_type_unit): Use
2642 dwarf2_cu::reset_builder.
2643 (follow_die_offset): Record the ancestor CU if it is different
2644 from the followed DIE's CU.
2645 (follow_die_sig_1): Likewise.
2646
8d64371b
TT
26472019-01-15 Tom Tromey <tom@tromey.com>
2648
2649 * remote.c (class remote_state) <buf>: Now a char_vector.
2650 <buf_size>: Remove.
2651 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
2652 parameter.
2653 (remote_target::getpkt_or_notif_sane_1)
2654 (remote_target::getpkt_sane)
2655 (remote_target::getpkt_or_notif_sane): Likewise.
2656 (class remote_target) <putpkt>: New overload.
2657 (remote_target::read_frame): Change type of "buf_p". Remove
2658 sizeof_p parameter.
2659 (packet_ok): New overload.
2660 (packet_check_result): New overload.
2661 Update all uses.
2662
bb277751
TT
26632019-01-14 Tom Tromey <tom@tromey.com>
2664
2665 * remote-notif.c (handle_notification, remote_notif_ack)
2666 (remote_notif_parse): Make "buf" const.
2667 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
2668 const.
2669 (remote_notif_parse, remote_notif_ack, handle_notification):
2670 Likewise.
2671 * remote.c (remote_notif_stop_parse): Make "buf" const.
2672 (remote_target::remote_parse_stop_reply): Make "buf" const.
2673 (remote_notif_stop_ack): Make "buf" const.
2674
05be00a8
TT
26752019-01-14 Tom Tromey <tom@tromey.com>
2676
2677 * remote.c (remote_console_output): Make parameter const.
2678
491adeca
TT
26792019-01-14 Tom Tromey <tom@tromey.com>
2680
2681 * target-debug.h (target_debug_print_signals): Constify.
2682 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
2683 * procfs.c (procfs_target::pass_signals): Update.
2684 * linux-nat.c (linux_nat_target::pass_signals): Update.
2685 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
2686 * target-delegates.c: Rebuild.
2687 * remote.c (remote_target::program_signals): Update.
2688 (remote_target::pass_signals): Update.
2689 * target.c (target_pass_signals): Constify argument.
2690 (target_program_signals): Likewise.
2691 * target.h (struct target_ops) <pass_signals, program_signals>:
2692 Constify argument.
2693 (target_pass_signals, target_program_signals): Constify argument.
2694
bbd94648
TT
26952019-01-14 Tom Tromey <tom@tromey.com>
2696
2697 PR tui/28819:
2698 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
2699
6f072a10
PFC
27002019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2701
2702 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
2703 field.
2704 * rs6000-tdep.c: Include reggroups.h.
2705 (IS_V_ALIAS_PSEUDOREG): Define.
2706 (rs6000_register_name): Return names for the "vX" aliases.
2707 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
2708 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
2709 aliases. Call default_register_reggroup_p for all other
2710 pseudo-registers.
2711 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
2712 New functions.
2713 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
2714 Handle "vX" aliases.
2715 (v_alias_pseudo_register_collect): New function.
2716 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
2717 (rs6000_gdbarch_init): Initialize "vX" aliases as
2718 pseudo-registers. Restore registration of
2719 rs6000_pseudo_register_reggroup_p with
2720 set_tdesc_pseudo_register_reggroup_p.
2721
1a782351
MF
27222019-01-13 Max Filippov <jcmvbkbc@gmail.com>
2723
2724 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
2725 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
2726 set_gdbarch_num_pseudo_regs.
2727
d73cff18
PW
27282019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2729
2730 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
2731 Remove arg prefixname, add do_set and do_show.
2732 Add member functions set_list and show_list.
2733 * cli/cli-style.c (class cli_style_option): Update accordingly.
2734 (style_set_list): Move to file scope.
2735 (style_show_list): Likewise.
2736 (set_style): Call help_list.
2737 (show_style): Call cmd_show_list.
2738 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
2739 Update to use the new macro.
2740
60a90376
JB
27412019-10-12 Joel Brobecker <brobecker@adacore.com>
2742
2743 * ada-lang.c (_initialize_ada_language): Expand the help text
2744 for the "catch exception" command.
2745
9d7c67bf
PW
27462019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2747
2748 * symtab.c (matching_obj_sections): Initialize obj,
2749 declare it closer to its usage.
2750
7cf47dc4
TT
27512019-01-10 Tom Tromey <tom@tromey.com>
2752
2753 * thread-iter.h (inf_threads_iterator): Use next_iterator.
2754 (basic_inf_threads_range): Remove.
2755 (inf_threads_range, inf_non_exited_threads_range)
2756 (safe_inf_threads_range): Use next_adapter.
2757
d3cb6808
KS
27582019-01-10 Keith Seitz <keiths@redhat.com>
2759
2760 PR gdb/23712
2761 PR symtab/23010
2762 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
2763 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
2764
63a20375
KS
27652019-01-10 Keith Seitz <keiths@redhat.com>
2766
2767 PR gdb/23712
2768 PR symtab/23010
2769 * dictionary.c (pending_to_vector): Remove.
2770 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2771 Remove _1 suffix, replacing functions of the same name. Update
2772 all callers.
2773 (dict_create_hashed, dict_create_hashed_expandable)
2774 (dict_create_linear, dict_create_linear_expandable, dict_free)
2775 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
2776 Make functions static.
2777
b026f593
KS
27782019-01-10 Keith Seitz <keiths@redhat.com>
2779
2780 PR gdb/23712
2781 PR symtab/23010
2782 * dictionary.h (struct dictionary): Replace declaration with
2783 multidictionary.
2784 (dict_create_hashed, dict_create_hashed_expandable)
2785 (dict_create_linear, dict_create_linear_expandable)
2786 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
2787 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
2788 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
2789 taking multidictionary argument.
2790 [ALL_DICT_SYMBOLS]: Update for multidictionary.
2791 * block.h (struct block) <dict>: Change to multidictionary
2792 and rename `multidict'.
2793 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
2794 symmisc.c: Update all dictionary references to multidictionary.
2795
c7748ee9
KS
27962019-01-10 Keith Seitz <keiths@redhat.com>
2797
2798 PR gdb/23712
2799 PR symtab/23010
2800 * dictionary.c: Include unordered_map.
2801 (pending_to_vector): New function.
2802 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2803 Rewrite the non-"_1" functions to take vector instead
2804 of linked list.
2805 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
2806 "new" _1 versions of the same name.
2807 (multidictionary): Define.
2808 (std::hash<enum language): New definition.
2809 (collate_pending_symbols_by_language, mdict_create_hashed)
2810 (mdict_create_hashed_expandable, mdict_create_linear)
2811 (mdict_create_linear_expandable, mdict_free)
2812 (find_language_dictionary, create_new_language_dictionary)
2813 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
2814 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
2815 (mdict_size, mdict_empty): New functions.
2816 * dictionary.h (mdict_iterator): Define.
2817
67aa1f3c
PA
28182019-01-10 Pedro Alves <palves@redhat.com>
2819
2820 * breakpoint.c (read_uploaded_action)
2821 (create_tracepoint_from_upload): Adjust to use
2822 gdb::unique_xmalloc_ptr.
2823 * ctf.c (ctf_write_uploaded_tp):
2824 (SET_ARRAY_FIELD): Use emplace_back.
2825 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
2826 * tracefile-tfile.c (tfile_write_uploaded_tp):
2827 * tracepoint.c (parse_tracepoint_definition): Adjust to use
2828 gdb::unique_xmalloc_ptr.
2829 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
2830 at_string, cond_string, cmd_strings>: Replace char pointers
2831 with gdb::unique_xmalloc_ptr.
2832
2f667667
PA
28332019-01-10 Pedro Alves <palves@redhat.com>
2834
2835 * solib-target.c (library_list_start_library): Don't xstrdup name.
2836
36cb7237
PA
28372019-01-10 Pedro Alves <palves@redhat.com>
2838
2839 * mdebugread.c (parse_partial_symbols): Use
2840 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
2841
da584958
AB
28422019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * linux-fork.c (scoped_switch_fork_info)
2845 <~scoped_switch_fork_info>: Fix incorrect variable name.
2846
1ef8573c
AB
28472019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * linux-fork.c (scoped_switch_fork_info)
2850 <scoped_switch_fork_info>: Make explicit.
2851 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
2852
8d7bcccb
TT
28532019-01-10 Tom Tromey <tom@tromey.com>
2854
2855 * objfiles.h (objfile::reset_psymtabs): Update.
2856 * objfiles.c (objfile::objfile): Update.
2857 * psymtab.h (psymtab_storage::obstack): Update.
2858 (psymtab_storage::m_obstack): Use gdb::optional.
2859 (class psymtab_storage): Update comment. Remove objfile
2860 parameter.
2861 * psymtab.c (psymtab_storage::psymtab_storage): Update.
2862
b596a3c7
TT
28632019-01-10 Tom Tromey <tom@tromey.com>
2864
2865 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
2866 <free_psymtabs>: Now private.
2867 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
2868 (allocate_psymtab): Use new method.
2869
a9342b62
TT
28702019-01-10 Tom Tromey <tom@tromey.com>
2871
2872 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
2873 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
2874 * mdebugread.c (parse_partial_symbols): Use
2875 allocate_dependencies.
2876 * dwarf2read.c (dwarf2_create_include_psymtab): Use
2877 allocate_dependencies.
2878 (process_psymtab_comp_unit_reader)
2879 (build_type_psymtab_dependencies): Likewise.
2880 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
2881
5af70966
TT
28822019-01-10 Tom Tromey <tom@tromey.com>
2883
2884 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
2885 PSYMBOL_SET_LANGUAGE.
2886 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
2887
5923a04c
TT
28882019-01-10 Tom Tromey <tom@tromey.com>
2889
2890 * psymtab.h (psymtab_storage::obstack): New method.
2891 <m_obstack>: Rename from obstack; now private.
2892 * psymtab.c (psymtab_storage): Update.
2893 * dwarf2read.c (create_addrmap_from_index)
2894 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
2895 Update.
2896
6d6a12bf
TT
28972019-01-10 Tom Tromey <tom@tromey.com>
2898
2899 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
2900 * objfiles.h (objfile::reset_psymtabs): New method.
2901
d320c2b5
TT
29022019-01-10 Tom Tromey <tom@tromey.com>
2903
2904 * symmisc.c (print_symbol_bcache_statistics): Update.
2905 (print_objfile_statistics): Update.
2906 * symfile.c (reread_symbols): Update.
2907 * psymtab.h (class psymtab_storage): New.
2908 * psymtab.c (psymtab_storage): New constructor.
2909 (~psymtab_storage): New destructor.
2910 (require_partial_symbols): Update.
2911 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
2912 (find_pc_sect_psymtab, find_pc_sect_psymbol)
2913 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
2914 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
2915 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
2916 (start_psymtab_common, end_psymtab_common)
2917 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
2918 (allocate_psymtab): Update.
2919 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
2920 Update.
2921 (dump_psymtab_addrmap, maintenance_print_psymbols)
2922 (maintenance_check_psymtabs): Update.
2923 (class objfile_psymtabs): Move to objfiles.h.
2924 * psympriv.h (discard_psymtab): Now inline.
2925 (psymtab_discarder::psymtab_discarder): Update.
2926 (psymtab_discarder::~psymtab_discarder): Update.
2927 (ALL_OBJFILE_PSYMTABS): Rewrite.
2928 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
2929 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
2930 Remove fields.
2931 <partial_symtabs>: New field.
2932 (class objfile_psymtabs): Move from psymtab.h. Update.
2933 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
2934 psymbol_cache.
2935 (objfile::~objfile): Don't destroy psymbol_cache.
2936 * mdebugread.c (parse_partial_symbols): Update.
2937 * dwarf2read.c (create_addrmap_from_index)
2938 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2939 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
2940 (add_partial_subprogram, dwarf2_ranges_read): Update.
2941 * dwarf-index-write.c (write_address_map)
2942 (write_one_signatured_type, recursively_write_psymbols)
2943 (class debug_names, class debug_names, write_psymtabs_to_index):
2944 Update.
2945
1d94a5a3
TT
29462019-01-10 Tom Tromey <tom@tromey.com>
2947
2948 * symtab.h (SYMBOL_SET_NAMES): Update.
2949 (symbol_set_names): Update.
2950 (MSYMBOL_SET_NAMES): Update.
2951 * symtab.c (symbol_set_names): Change argument to be an
2952 objfile_per_bfd_storage.
2953 * psymtab.c (add_psymbol_to_bcache): Update.
2954 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
2955
0f14768a
TT
29562019-01-10 Tom Tromey <tom@tromey.com>
2957
2958 * symtab.c (create_demangled_names_hash): Change argument to be an
2959 objfile_per_bfd_storage.
2960 (symbol_set_names): Update.
2961
6eee24ce
TT
29622019-01-10 Tom Tromey <tom@tromey.com>
2963
2964 * xcoffread.c (xcoff_initial_scan): Unconditionally call
2965 init_psymbol_list.
2966 * psymtab.c (init_psymbol_list): Do nothing if already called.
2967 * psympriv.h (init_psymbol_list): Add comment.
2968 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
2969 init_psymbol_list.
2970 * dbxread.c (dbx_symfile_read): Unconditionally call
2971 init_psymbol_list.
2972
75aedd27
TT
29732019-01-10 Tom Tromey <tom@tromey.com>
2974
2975 * xcoffread.c (scan_xcoff_symtab): Update.
2976 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
2977 "where".
2978 * mdebugread.c (parse_partial_symbols)
2979 (handle_psymbol_enumerators): Update.
2980 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
2981 * dbxread.c (read_dbx_symtab): Update.
2982 * psympriv.h (psymbol_placement): New enum.
2983 (add_psymbol_to_list): Update.
2984
939652a5
TT
29852019-01-10 Tom Tromey <tom@tromey.com>
2986
2987 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
2988 static_psymbols parameters.
2989 (scan_xcoff_symtab): Update.
2990 * psymtab.c (start_psymtab_common): Remove global_psymbols and
2991 static_psymbols parameters.
2992 * psympriv.h (start_psymtab_common): Update.
2993 * mdebugread.c (parse_partial_symbols): Update.
2994 * dwarf2read.c (create_partial_symtab): Update.
2995 * dbxread.c (read_dbx_symtab): Update.
2996 (start_psymtab): Remove global_psymbols and static_psymbols
2997 parameters.
2998
baa62830
TT
29992019-01-10 Tom Tromey <tom@tromey.com>
3000
3001 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
3002 * psymtab.c (allocate_psymtab): Add comment.
3003 * psympriv.h (allocate_psymtab): Add comment.
3004 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
3005 initializations.
3006 * dbxread.c (dbx_end_psymtab): Remove some initializations.
3007
0e8f53ba
TT
30082019-01-10 Tom Tromey <tom@tromey.com>
3009
3010 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3011 Don't declare.
3012 * mipsread.c: Include mdebugread.h.
3013 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3014 Declare.
3015 * elfread.c: Include mdebugread.h.
3016
b22a7c6a
TT
30172019-01-09 Tom Tromey <tom@tromey.com>
3018
3019 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
3020 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
3021 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
3022 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
3023 (psym_lookup_symbol, psym_find_last_source_symtab)
3024 (psym_forget_cached_source_info, psym_print_stats)
3025 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
3026 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
3027 (psym_map_matching_symbols, psym_expand_symtabs_matching)
3028 (psym_find_compunit_symtab_by_address)
3029 (maintenance_print_psymbols, maintenance_info_psymtabs)
3030 (maintenance_check_psymtabs): Use ranged for.
3031 * psymtab.h (class objfile_psymtabs): New.
3032 (require_partial_symbols): Return objfile_psymtabs.
3033 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
3034
3b9d3ac2
TT
30352019-01-09 Tom Tromey <tom@tromey.com>
3036
3037 * symfile.c (overlay_invalidate_all, find_pc_overlay)
3038 (find_pc_mapped_section, list_overlays_command)
3039 (map_overlay_command, unmap_overlay_command)
3040 (simple_overlay_update): Use all_objfiles.
3041 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
3042 * printcmd.c (info_symbol_command): Use all_objfiles.
3043 * objfiles.h (ALL_OBJSECTIONS): Remove.
3044 * maint.c (maintenance_translate_address): Use all_objfiles.
3045 * gcore.c (gcore_create_callback): Use all_objfiles.
3046 (objfile_find_memory_regions): Likewise.
3047
8b31193a
TT
30482019-01-09 Tom Tromey <tom@tromey.com>
3049
3050 * symtab.c (find_line_symtab, info_sources_command)
3051 (make_source_files_completion_list): Use objfile_compunits.
3052 * source.c (select_source_symtab): Use objfile_compunits.
3053 * objfiles.h (struct objfile): Update comment.
3054 (ALL_OBJFILES): Remove.
3055 (ALL_FILETABS): Remove.
3056 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
3057 objfile_compunits.
3058
d5da8b3c
TT
30592019-01-09 Tom Tromey <tom@tromey.com>
3060
3061 * symmisc.c (print_objfile_statistics, dump_objfile)
3062 (maintenance_print_symbols): Use compunit_filetabs.
3063 * source.c (forget_cached_source_info_for_objfile): Use
3064 compunit_filetabs.
3065 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
3066 (ALL_FILETABS): Use compunit_filetabs.
3067 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
3068 * coffread.c (coff_symtab_read): Use compunit_filetabs.
3069
5accd1a0
TT
30702019-01-09 Tom Tromey <tom@tromey.com>
3071
3072 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
3073 (compunit_filetabs): New.
3074 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
3075 compunit_filetabs.
3076 (info_sources_command, make_source_files_completion_list): Remove
3077 declaration.
3078 * symmisc.c (print_objfile_statistics, dump_objfile)
3079 (maintenance_print_symbols): Remove declaration.
3080 (maintenance_info_symtabs): Use compunit_filetabs.
3081 (maintenance_info_line_tables): Likewise.
3082 * source.c (select_source_symtab): Change local variable name.
3083 (forget_cached_source_info_for_objfile): Remove declaration.
3084 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
3085 * objfiles.c (objfile_relocate1): Remove declaration.
3086 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3087 declaration.
3088 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
3089 * coffread.c (coff_symtab_read): Remove declaration.
3090 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3091 compunit_filetabs.
3092
d8aeb77f
TT
30932019-01-09 Tom Tromey <tom@tromey.com>
3094
3095 * symtab.c (lookup_objfile_from_block)
3096 (find_pc_sect_compunit_symtab, search_symbols)
3097 (default_collect_symbol_completion_matches_break_on): Use
3098 objfile_compunits.
3099 * objfiles.h (ALL_COMPUNITS): Remove.
3100 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
3101 * cp-support.c (add_symbol_overload_list_qualified): Use
3102 objfile_compunits.
3103 * ada-lang.c (ada_collect_symbol_completion_matches)
3104 (ada_add_global_exceptions): Use objfile_compunits.
3105
592553c4
TT
31062019-01-09 Tom Tromey <tom@tromey.com>
3107
3108 * source.c (select_source_symtab)
3109 (forget_cached_source_info_for_objfile): Remove declaration.
3110 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3111 declaration.
3112 * maint.c (count_symtabs_and_blocks): Remove declaration.
3113 * cp-support.c (add_symbol_overload_list_qualified): Remove
3114 declaration.
3115 * coffread.c (coff_symtab_read): Remove declaration.
3116 * symtab.c (lookup_symbol_in_objfile_symtabs)
3117 (basic_lookup_transparent_type_1): Use objfile_compunits.
3118 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
3119 (info_sources_command, search_symbols)
3120 (default_collect_symbol_completion_matches_break_on)
3121 (make_source_files_completion_list): Remove declaration.
3122 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
3123 (ada_collect_symbol_completion_matches)
3124 (ada_add_global_exceptions): Remove declaration.
3125 * linespec.c (iterate_over_all_matching_symtabs): Use
3126 objfile_compunits.
3127 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
3128 (class objfile_compunits): New.
3129 (ALL_COMPUNITS): Use objfile_compunits.
3130 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
3131 (maintenance_check_symtabs, maintenance_info_line_tables): Use
3132 objfile_compunits.
3133 * objfiles.c (objfile_relocate1): Use objfile_compunits.
3134
5325b9bf
TT
31352019-01-09 Tom Tromey <tom@tromey.com>
3136
3137 * symtab.c (search_symbols)
3138 (default_collect_symbol_completion_matches_break_on): Use
3139 objfile_msymbols.
3140 * ada-lang.c (ada_lookup_simple_minsym)
3141 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
3142 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
3143 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
3144 objfile_msymbols.
3145 * coffread.c (coff_symfile_read): Use objfile_msymbols.
3146 * symmisc.c (dump_msymbols): Use objfile_msymbols.
3147 * objc-lang.c (find_methods): Use objfile_msymbols.
3148 (info_selectors_command, info_classes_command): Likewise.
3149 * stabsread.c (scan_file_globals): Use objfile_msymbols.
3150 * objfiles.h (class objfile_msymbols): New.
3151 (ALL_OBJFILE_MSYMBOLS): Remove.
3152 (ALL_MSYMBOLS): Remove.
3153
cac85af2
TT
31542019-01-09 Tom Tromey <tom@tromey.com>
3155
3156 * common/next-iterator.h (next_adapter): Add Iterator template
3157 parameter.
3158 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
3159 (class all_objfiles_safe): New.
3160 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
3161 * objfiles.c (put_objfile_before): Update comment.
3162 (add_separate_debug_objfile): Likewise.
3163 (free_all_objfiles): Use all_objfiles_safe.
3164 (objfile_purge_solibs): Likewise.
3165
aed57c53
TT
31662019-01-09 Tom Tromey <tom@tromey.com>
3167
3168 * symtab.c (iterate_over_symtabs, matching_obj_sections)
3169 (expand_symtab_containing_pc, lookup_static_symbol)
3170 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
3171 (find_symbol_at_address, find_line_symtab, find_main_name): Use
3172 all_objfiles.
3173 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
3174 * breakpoint.c (create_overlay_event_breakpoint)
3175 (create_longjmp_master_breakpoint)
3176 (create_std_terminate_master_breakpoint)
3177 (create_exception_master_breakpoint): Use all_objfiles.
3178 * linux-thread-db.c (try_thread_db_load_from_pdir)
3179 (has_libpthread): Use all_objfiles.
3180 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
3181 * linespec.c (iterate_over_all_matching_symtabs)
3182 (search_minsyms_for_name): Use all_objfiles.
3183 * maint.c (maintenance_info_sections): Use all_objfiles.
3184 * main.c (captured_main_1): Use all_objfiles.
3185 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
3186 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
3187 * guile/scm-pretty-print.c
3188 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
3189 * solib-spu.c (append_ocl_sos): Use all_objfiles.
3190 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
3191 (maintenance_print_msymbols): Use all_objfiles.
3192 * source.c (select_source_symtab): Use all_objfiles.
3193 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
3194 * symfile.c (remove_symbol_file_command)
3195 (expand_symtabs_matching, map_symbol_filenames): Use
3196 all_objfiles.
3197 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
3198 all_objfiles.
3199 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
3200 * objc-lang.c (find_methods): Use all_objfiles.
3201 * objfiles.c (have_partial_symbols, have_full_symbols)
3202 (have_minimal_symbols, qsort_cmp)
3203 (default_iterate_over_objfiles_in_search_order): Use
3204 all_objfiles.
3205 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
3206 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
3207 (maintenance_check_psymtabs): Use all_objfiles.
3208 (ALL_PSYMTABS): Remove.
3209 * compile/compile-object-run.c (do_module_cleanup): Use
3210 all_objfiles.
3211 * blockframe.c (find_pc_partial_function): Use all_objfiles.
3212 * cp-support.c (add_symbol_overload_list_qualified): Use
3213 all_objfiles.
3214 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
3215 Use all_objfiles.
3216 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
3217 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
3218 all_objfiles.
3219 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
3220 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
3221 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3222 Uses all_objfiles.
3223 * solib.c (solib_read_symbols): Use all_objfiles
3224
99d89cde
TT
32252019-01-09 Tom Tromey <tom@tromey.com>
3226
3227 * probe.c (parse_probes_in_pspace): Use all_objfiles.
3228 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
3229 all_objfiles.
3230 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
3231 * symmisc.c (print_symbol_bcache_statistics)
3232 (print_objfile_statistics, maintenance_print_objfiles)
3233 (maintenance_info_symtabs, maintenance_check_symtabs)
3234 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
3235 all_objfiles.
3236 * source.c (forget_cached_source_info): Use all_objfiles.
3237 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
3238 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
3239 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
3240 * objfiles.c (update_section_map): Use all_objfiles.
3241 (shared_objfile_contains_address_p): Likewise.
3242 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
3243 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
3244
21708325
TT
32452019-01-09 Tom Tromey <tom@tromey.com>
3246
3247 * common/next-iterator.h: New file.
3248 * objfiles.h (class all_objfiles): New.
3249 (struct objfile_iterator): New.
3250
669e09f6
PW
32512019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3252
3253 * NEWS: Move the description of the changed "frame", "select-frame",
3254 and "info frame" commands to the Changed commands section.
3255
041be526
SM
32562019-01-09 Simon Marchi <simon.marchi@ericsson.com>
3257
3258 * gdbtypes.c (check_stub_method_group): Remove handling of old
3259 mangling schemes.
3260 * linespec.c (find_methods): Likewise.
3261 * stabsread.c (read_member_functions): Likewise.
3262 * valops.c (search_struct_method): Likewise.
3263 (value_struct_elt_for_reference): Likewise.
3264 * NEWS: Mention this change.
3265
0e2a2133
AB
32662019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
3269 print_source_lines.
3270 * source.c (print_source_lines_base): Update line number check.
3271 (print_source_lines): New function.
3272 (source_lines_range::source_lines_range): New function.
3273 * source.h (class source_lines_range): New class.
3274 (print_source_lines): New declaration.
3275
1055a3b4
PW
32762019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3277
3278 * linespec.c (linespec_state_destructor): Free self->canonical_names.
3279
cfeadda5
TT
32802019-01-08 Tom Tromey <tom@tromey.com>
3281 Simon Marchi <simon.marchi@ericsson.com>
3282
3283 PR gdb/24060
3284 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
3285 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
3286 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3287 * f-exp.y (DOLLAR_VARIABLE): Likewise.
3288 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
3289 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3290
583068ca
AB
32912019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * source.c (select_source_symtab): Move header comment to
3294 declaration in source.h.
3295 (forget_cached_source_info_for_objfile): Likewise.
3296 (forget_cached_source_info): Likewise.
3297 (identify_source_line): Likewise.
3298 * source.h (identify_source_line): Move declaration from symtab.h
3299 and add comment from source.c
3300 (print_source_lines): Likewise.
3301 (forget_cached_source_info_for_objfile): Likewise.
3302 (forget_cached_source_info): Likewise.
3303 (select_source_symtab): Likewise.
3304 (enum print_source_lines_flag): Move definition from symtab.h.
3305 * symtab.h (identify_source_line): Move declaration to source.h.
3306 (print_source_lines): Likewise.
3307 (forget_cached_source_info_for_objfile): Likewise.
3308 (forget_cached_source_info): Likewise.
3309 (select_source_symtab): Likewise.
3310 (enum print_source_lines_flag): Move definition to source.h.
3311 * tui/tui-hooks.c: Add 'source.h' include.
3312
ec98a4ad
AB
33132019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * source.c (print_source_lines_base): Handle requests to print
3316 reverse line number sequences, and guard against empty lines
3317 string.
3318
62ea19c1
AB
33192019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * source.c (print_source_lines_base): Fix skip of '\r' if next
3322 character is '\n'.
3323
9d30e1fd
TT
33242019-01-06 Tom Tromey <tom@tromey.com>
3325
3326 * c-exp.y (struct c_parse_state) <macro_original_text,
3327 expansion_obstack>: New member.
3328 (macro_original_text, expansion_obstack): Remove globals.
3329 (scan_macro_expansion, scanning_macro_expansion)
3330 (finished_macro_expansion): Update.
3331 (scan_macro_cleanup): Remove.
3332 (yylex, c_parse): Update.
3333
c65bac38
TT
33342019-01-06 Tom Tromey <tom@tromey.com>
3335
3336 * c-exp.y (struct c_parse_state) <strings>: New member.
3337 (operator_stoken): Update.
3338
02e12e38
TT
33392019-01-06 Tom Tromey <tom@tromey.com>
3340
3341 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
3342 (union type_stack_elt) <typelist_val>: Now a pointer to
3343 std::vector.
3344 (type_stack_cleanup): Don't declare.
3345 (push_typelist): Update.
3346 * parse.c (pop_typelist): Return a std::vector.
3347 (push_typelist): Take a std::vector.
3348 (follow_types): Update. Do not free args.
3349 (type_stack_cleanup): Remove.
3350 * c-exp.y (struct c_parse_state): New.
3351 (cpstate): New global.
3352 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
3353 (nonempty_typelist): Update.
3354 (func_mod): Create a new vector.
3355 (c_parse): Create a c_parse_state.
3356 (check_parameter_typelist): Do not delete params.
3357 (function_method): Update. Do not delete type_list.
3358
f097f5ad
TT
33592019-01-06 Tom Tromey <tom@tromey.com>
3360
3361 PR gdb/28155:
3362 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
3363 check_typedef.
3364 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
3365 (print_return_value): Likewise.
3366
d2adf9f1
TT
33672019-01-05 Tom Tromey <tom@tromey.com>
3368
3369 * contrib/cleanup_check.py: Remove.
3370 * contrib/gcc-with-excheck: Remove.
3371 * contrib/exsummary.py: Remove.
3372 * contrib/excheck.py: Remove.
3373
2eab46b1
JB
33742019-01-05 Joel Brobecker <brobecker@adacore.com>
3375
3376 * thread.c (delete_thread_1): Add gdb_assert that THR is not
3377 NULL. Initialize tpprev to NULL instead of assigning it
3378 to NULL on the next statement.
3379 * windows-nat.c (windows_delete_thread): Remove check for
3380 main_thread_id before printing thread exit notifications.
3381 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
3382 Remove thread ID check against main_thread_id.
3383 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
3384 windows_delete_thread.
3385 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
3386
48c5e7e2
TT
33872019-01-04 Tom Tromey <tom@tromey.com>
3388
3389 * compile/compile.c (_initialize_compile): Use upper case for
3390 metasyntactic variables.
3391 * symmisc.c (_initialize_symmisc): Use upper case for
3392 metasyntactic variables.
3393 * psymtab.c (_initialize_psymtab): Use upper case for
3394 metasyntactic variables.
3395 * demangle.c (demangle_command): Use upper case for metasyntactic
3396 variables.
3397 (_initialize_demangler): Likewise.
3398 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
3399 variables.
3400
986041cd
TT
34012019-01-03 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
3404
7c711119
TT
34052019-01-03 Tom Tromey <tom@tromey.com>
3406
3407 * python/py-symtab.c (salpy_str): Update.
3408 (struct salpy_sal_object) <symtab>: Now a PyObject.
3409 (salpy_dealloc): Update.
3410 (del_objfile_sal): Use gdbpy_ref.
3411
1b20edf0
TT
34122019-01-03 Tom Tromey <tom@tromey.com>
3413
3414 * python/py-type.c (convert_field): Use new_reference. Return
3415 gdbpy_ref.
3416 (make_fielditem): Return gdbpy_ref.
3417 (typy_fields): Update.
3418 (typy_getitem): Update.
3419 (field_name): Return gdbpy_ref. Use new_reference.
3420 (typy_iterator_iternext): Update.
3421
ea41325b
TT
34222019-01-03 Tom Tromey <tom@tromey.com>
3423
3424 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
3425
2a3c71d6
TT
34262019-01-03 Tom Tromey <tom@tromey.com>
3427
3428 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
3429 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
3430 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
3431 (pspy_set_frame_filters, pspy_set_frame_unwinders)
3432 (pspy_set_type_printers): Likewise.
3433 * python/py-function.c (fnpy_init): Use gdbpy_ref.
3434 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
3435 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
3436 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
3437 (objfpy_set_type_printers): Likewise.
3438
5c329e6a
TT
34392019-01-03 Tom Tromey <tom@tromey.com>
3440
3441 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
3442 (gdbpy_print_stack): Use gdbpy_err_fetch.
3443 * python/python-internal.h (class gdbpy_err_fetch): New class.
3444 (class gdbpy_enter) <m_error_type, m_error_value,
3445 m_error_traceback>: Remove.
3446 <m_error>: New member.
3447 (gdbpy_exception_to_string): Don't declare.
3448 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
3449 * python/py-value.c (convert_value_from_python): Use
3450 gdbpy_err_fetch.
3451 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
3452 gdbpy_exception_to_string.
3453 (gdbpy_handle_exception): Use gdbpy_err_fetch.
3454 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3455 gdbpy_err_fetch.
3456
169bb27b
AB
34572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3458
3459 * linux-nat.c (delete_lwp_cleanup): Delete.
3460 (struct lwp_deleter): New struct.
3461 (lwp_info_up): New typedef.
3462 (linux_nat_target::follow_fork): Delete cleanup, and make use of
3463 lwp_info_up.
3464
a07c8880
AB
34652019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3466
3467 * linux-fork.c (class scoped_switch_fork_info): New class.
3468 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
3469
26089c49
AB
34702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * valops.c (find_overload_match): Remove use of null_cleanup, and
3473 calls to do_cleanups.
3474
06d3e5b0
AB
34752019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * compile/compile-cplus-types.c
3478 (compile_cplus_instance::decl_name): Handle changes to
3479 cp_func_name.
3480 * cp-support.c (cp_func_name): Update header comment, update
3481 return type.
3482 * cp-support.h (cp_func_name): Update return type in declaration.
3483 * valops.c (find_overload_match): Move temp_func local to top
3484 level of function and change its type. Use temp_func to hold and
3485 delete temporary string obtained from cp_func_name.
3486
66644cd3
AB
34872019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
3490 gdb::char_vector, remove cleanup, and update uses of `msg`.
3491
592d8c0a
JW
34922019-01-03 Jim Wilson <jimw@sifive.com>
3493
3494 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
3495
c55d06ec
TT
34962019-01-02 Tom Tromey <tom@tromey.com>
3497
3498 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
3499 (tdesc_parse_xml): Remove cleanups.
3500 * target-descriptions.h (make_cleanup_free_target_description):
3501 Don't declare.
3502 (target_desc_deleter): New struct.
3503 (target_desc_up): New typedef.
3504 * target-descriptions.c (target_desc_deleter::operator()): Rename
3505 from free_target_description.
3506 (make_cleanup_free_target_description): Remove.
3507
3a6ae42d
TT
35082019-01-02 Tom Tromey <tom@tromey.com>
3509
3510 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
3511 constructor, destructor.
3512 (linespec_parser): Remove typedef.
3513 (~linespec_parser): Rename from linespec_parser_delete.
3514 (linespec_lex_to_end, linespec_complete_label)
3515 (linespec_complete): Update.
3516 (decode_line_full): Remove cleanups.
3517 (decode_line_1): Update.
3518
61fd3e73
TT
35192019-01-02 Tom Tromey <tom@tromey.com>
3520
3521 * python/python-internal.h (inferior_to_inferior_object): Change
3522 return type.
3523 * python/py-exitedevent.c (create_exited_event_object): Update.
3524 * python/py-inferior.c (inferior_to_inferior_object): Return
3525 gdbpy_ref.
3526 (python_new_inferior, python_inferior_deleted)
3527 (thread_to_thread_object, delete_thread_object)
3528 (build_inferior_list, gdbpy_selected_inferior): Update.
3529 * python/py-infthread.c (create_thread_object): Update. Also fail
3530 if inferior_to_inferior_object fails.
3531
d20172fc
SM
35322019-01-02 Simon Marchi <simon.marchi@ericsson.com>
3533
3534 * inferior.h (class inferior) <displaced_step_state>: New field.
3535 * infrun.h (struct displaced_step_state): Move here from
3536 infrun.c. Initialize fields, add constructor.
3537 <inf>: Remove field.
3538 <reset>: New method.
3539 * infrun.c (struct displaced_step_inferior_state): Move to
3540 infrun.h.
3541 (displaced_step_inferior_states): Remove.
3542 (get_displaced_stepping_state): Adust.
3543 (displaced_step_in_progress_any_inferior): Adjust.
3544 (displaced_step_in_progress_thread): Adjust.
3545 (displaced_step_in_progress): Adjust.
3546 (add_displaced_stepping_state): Remove.
3547 (get_displaced_step_closure_by_addr): Adjust.
3548 (remove_displaced_stepping_state): Remove.
3549 (infrun_inferior_exit): Call displaced_step_state.reset.
3550 (use_displaced_stepping): Don't check for NULL.
3551 (displaced_step_prepare_throw): Call
3552 get_displaced_stepping_state.
3553 (displaced_step_fixup): Don't check for NULL.
3554 (prepare_for_detach): Don't check for NULL.
3555
e3319240
PW
35562019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3557
3558 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
3559 in case of call that did not complete.
3560
5d36dfb9
AU
35612019-01-02 Andrey Utkin <autkin@undo.io>
3562
3563 * symfile.c (find_separate_debug_file): Fix search of debug files for
3564 remote debuggee.
3565
8833fbf0
TT
35662019-01-02 Tom Tromey <tom@tromey.com>
3567
3568 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
3569 indentation.
3570 * python/py-frame.c (frapy_older): Remove cast.
3571 (frapy_newer): Likewise.
3572 * python/py-breakpoint.c (local_setattro): Remove cast.
3573 * python/py-arch.c (archpy_name): Remove local variable.
3574 * python/py-type.c (gdbpy_lookup_type): Remove cast.
3575
4ada3dfd
JB
35762019-01-02 Joel Brobecker <brobecker@adacore.com>
3577
3578 * unittests/basic_string_view/element_access/char/empty.cc:
3579 Fix year range in copyright header.
3580
113b7b81
AB
35812019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
3584 Delete.
3585 <operator==>: Update with for removed field.
3586 <hash>: Likewise.
3587 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
3588 <isa_features>: ...this.
3589 <abi_features>: New field.
3590 (riscv_isa_flen): Update comment.
3591 (riscv_abi_xlen): New declaration.
3592 (riscv_abi_flen): New declaration.
3593 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
3594 isa_features.
3595 (riscv_abi_xlen): New function.
3596 (riscv_isa_flen): Update to get answer from isa_features.
3597 (riscv_abi_flen): New function.
3598 (riscv_has_fp_abi): Update to get answer from abi_features.
3599 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
3600 xlen and flen.
3601 (riscv_call_info) <xlen, flen>: Update comment.
3602 (riscv_call_arg_struct): Remove invalid assertions
3603 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
3604 is removed.
3605 (riscv_gdbarch_init): Gather isa features and abi features
3606 separately, ensure both match on the gdbarch when reusing an old
3607 gdbarch. Relax an error check to allow 32-bit abi float to run on
3608 a target with 64-bit float hardware.
3609
b18ca514
PW
36102019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3611
3612 * source.c (search_command_helper): Stop reverse search
3613 when line 1 has been searched.
3614
ec70d8db
PW
36152019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3616
3617 * record-full.c (record_full_base_target::close): Rewrite
3618 record_full_core_buf_list free logic.
3619
5b38f9c1
PW
36202019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3621
3622 * break-catch-syscall.c (print_one_catch_syscall): xfree
3623 the last text.
3624
66d91b39
JB
36252019-01-01 Joel Brobecker <brobecker@adacore.com>
3626
3627 * top.c (print_gdb_version): Update Copyright year in version
3628 message.
3629
42a4f53d
JB
36302019-01-01 Joel Brobecker <brobecker@adacore.com>
3631
3632 Update copyright year range in all GDB files.
3633
7e955d83 36342019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 3635
5bbd631d 3636 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 3637
5bbd631d 3638For older changes see ChangeLog-2018.
c906108c
SS
3639\f
3640Local Variables:
3641mode: change-log
3642left-margin: 8
3643fill-column: 74
3644version-control: never
57da7796 3645coding: utf-8
c906108c 3646End:
5bbd631d 3647
This page took 2.277632 seconds and 4 git commands to generate.