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