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