]> Git Repo - binutils.git/blame - gdb/ChangeLog
The assembler only supports 32-bit stabs. So set sh_entsize unconditionally to 12.
[binutils.git] / gdb / ChangeLog
CommitLineData
194d088f
TV
12020-04-14 Simon Marchi <[email protected]>
2 Tom de Vries <[email protected]>
3
4 PR symtab/25718
5 * psympriv.h (struct partial_symtab::read_symtab)
6 (struct partial_symtab::expand_psymtab)
7 (struct partial_symtab::read_dependencies): Update comments.
8 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9 read_symtab for includer.
10 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12 (struct dwarf2_include_psymtab::m_readin): Remove.
13 (struct dwarf2_include_psymtab::includer): New member function.
14 (dwarf2_psymtab::expand_psymtab): Assert !readin.
15
c1a66c06
TV
162020-04-14 Tom de Vries <[email protected]>
17
18 PR symtab/25720
19 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
20 with NULL symbol_matcher and lookup_name.
21 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
22 and lookup_name.
23 * dwarf2/read.c (dw2_expand_symtabs_matching)
24 (dw2_debug_names_expand_symtabs_matching): Same.
25 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
26 Make lookup_name a pointer. Update comment.
27 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
28 lookup_name being a pointer.
29 * symfile.c (expand_symtabs_matching): Same.
30 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
31 * linespec.c (iterate_over_all_matching_symtabs): Same.
32
400b5eca
TT
332020-04-13 Tom Tromey <[email protected]>
34
35 * run-on-main-thread.c: Update include.
36 * unittests/main-thread-selftests.c: Update include.
37 * tui/tui-win.c: Update include.
38 * tui/tui-io.c: Update include.
39 * tui/tui-interp.c: Update include.
40 * tui/tui-hooks.c: Update include.
41 * top.h: Update include.
42 * top.c: Update include.
43 * ser-base.c: Update include.
44 * remote.c: Update include.
45 * remote-notif.c: Update include.
46 * remote-fileio.c: Update include.
47 * record-full.c: Update include.
48 * record-btrace.c: Update include.
49 * python/python.c: Update include.
50 * posix-hdep.c: Update include.
51 * mingw-hdep.c: Update include.
52 * mi/mi-main.c: Update include.
53 * mi/mi-interp.c: Update include.
54 * main.c: Update include.
55 * linux-nat.c: Update include.
56 * interps.c: Update include.
57 * infrun.c: Update include.
58 * inf-loop.c: Update include.
59 * event-top.c: Update include.
60 * event-loop.c: Move to ../gdbsupport/.
61 * event-loop.h: Move to ../gdbsupport/.
62 * async-event.h: Update include.
63 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
64
93b54c8e
TT
652020-04-13 Tom Tromey <[email protected]>
66
67 * tui/tui-win.c: Include async-event.h.
68 * remote.c: Include async-event.h.
69 * remote-notif.c: Include async-event.h.
70 * record-full.c: Include async-event.h.
71 * record-btrace.c: Include async-event.h.
72 * infrun.c: Include async-event.h.
73 * event-top.c: Include async-event.h.
74 * event-loop.h: Move some declarations to async-event.h.
75 * event-loop.c: Don't include ser-event.h or top.h. Move some
76 code to async-event.c.
77 * async-event.h: New file.
78 * async-event.c: New file.
79 * Makefile.in (COMMON_SFILES): Add async-event.c.
80 (HFILES_NO_SRCDIR): Add async-event.h.
81
c1cd3163
TT
822020-04-13 Tom Tromey <[email protected]>
83
84 * utils.c (flush_streams): New function.
85 * event-loop.c (gdb_wait_for_event): Call flush_streams.
86
29f2bf4f
TT
872020-04-13 Tom Tromey <[email protected]>
88
89 * event-loop.c (handle_file_event): Use warning, not
90 printf_unfiltered.
91
98029d02
TT
922020-04-13 Tom Tromey <[email protected]>
93
94 * event-loop.c: Include <chrono>.
95
06cc9596
TT
962020-04-13 Tom Tromey <[email protected]>
97
98 * gdb_select.h: Move to ../gdbsupport/.
99 * event-loop.c: Update include path.
100 * top.c: Update include path.
101 * ser-base.c: Update include path.
102 * ui-file.c: Update include path.
103 * ser-tcp.c: Update include path.
104 * guile/scm-ports.c: Update include path.
105 * posix-hdep.c: Update include path.
106 * ser-unix.c: Update include path.
107 * gdb_usleep.c: Update include path.
108 * mingw-hdep.c: Update include path.
109 * inflow.c: Update include path.
110 * infrun.c: Update include path.
111 * event-top.c: Update include path.
112
8ae8e197
TT
1132020-04-13 Tom Tromey <[email protected]>
114
115 * configure: Rebuild.
116 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
117
58cf28e8
TT
1182020-04-13 Tom Tromey <[email protected]>
119
120 * event-loop.h (start_event_loop): Don't declare.
121 * event-loop.c (start_event_loop): Move...
122 * main.c (start_event_loop): ...here. Now static.
123
b7f999ae
SDJ
1242020-04-13 Sergio Durigan Junior <[email protected]>
125
126 * MAINTAINERS: Update my email address.
127
1085dfd4
KR
1282020-04-12 Kamil Rytarowski <[email protected]>
129
130 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
131 IP_ALL.
132
49d1d1f5
KR
1332020-04-12 Kamil Rytarowski <[email protected]>
134
135 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
136 (nbsd_nat_target::info_proc): Add do_cmdline.
137
b4848d2a
KR
1382020-04-12 Kamil Rytarowski <[email protected]>
139
140 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
141 (nbsd_nat_target::info_proc): Add do_cwd.
142
51c133d5
KR
1432020-04-12 Kamil Rytarowski <[email protected]>
144
145 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
146
54b8cbd0
KR
1472020-04-11 Kamil Rytarowski <[email protected]>
148
149 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
150 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
151 (nbsd_nat_target::info_proc): New functions.
152 * nbsd-nat.c (kinfo_get_vmmap): New function.
153 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
154 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
155 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
156 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
157 functions.
158 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
159 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
160 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
161 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
162 (KINFO_VME_FLAG_GROWS_DOWN): New.
163
cf83625d
AS
1642020-04-10 Artur Shepilko <[email protected]>
165
166 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
167 bit shift.
168
0c4311ab
TT
1692020-04-10 Tom Tromey <[email protected]>
170
171 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
172
3e65b3e9
TT
1732020-04-10 Tom Tromey <[email protected]>
174
175 * symtab.c (get_symbol_address, get_msymbol_address): Skip
176 separate debug files.
177
13302e95
HD
1782020-04-10 Hannes Domani <[email protected]>
179
180 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
181 Move to...
182 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
183 ... here.
184 * windows-nat.c (windows_nat_target::get_windows_debug_event):
185 Check for STATUS_WX86_BREAKPOINT.
186 (windows_nat_target::wait): Same.
187
bdfc1e8a
TV
1882020-04-10 Tom de Vries <[email protected]>
189
190 PR cli/25808
191 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
192
f4460aec
SM
1932020-04-09 Simon Marchi <[email protected]>
194
195 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
196 (Write After Approval): Remove Tom de Vries.
197
a25198bb
BE
1982020-04-09 Bernd Edlinger <[email protected]>
199
200 revert partially:
201 2020-04-01 Bernd Edlinger <[email protected]>
202
203 * buildsym.c (record_line): Fix undefined behavior and preserve
204 lines at eof.
205
206c98a6
KR
2062020-04-09 Kamil Rytarowski <[email protected]>
207
208 * auxv.h (svr4_auxv_parse): New.
209 * auxv.c (default_auxv_parse): Split into default_auxv_parse
210 and generic_auxv_parse.
211 (svr4_auxv_parse): Add.
212 * obsd-tdep.c: Include "auxv.h".
213 (obsd_auxv_parse): Remove.
214 (obsd_init_abi): Remove comment.
215 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
216 from `obsd_auxv_parse' to `svr4_auxv_parse'.
217 * nbsd-tdep.c: Include "auxv.h".
218 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
219
71fbdbaf
TT
2202020-04-08 Tom Tromey <[email protected]>
221
222 * nat/windows-nat.h (last_wait_event): Don't declare.
223 (wait_for_debug_event): Update comment.
224 * nat/windows-nat.c (last_wait_event): Now static.
225
2c1d95e8
TT
2262020-04-08 Tom Tromey <[email protected]>
227
228 * windows-nat.c (wait_for_debug_event): Move to
229 nat/windows-nat.c.
230 * nat/windows-nat.h (wait_for_debug_event): Declare.
231 * nat/windows-nat.c (wait_for_debug_event): Move from
232 windows-nat.c. No longer static.
233
d2977bc4
TT
2342020-04-08 Tom Tromey <[email protected]>
235
236 * windows-nat.c (get_windows_debug_event): Use
237 fetch_pending_stop.
238 * nat/windows-nat.h (fetch_pending_stop): Declare.
239 * nat/windows-nat.c (fetch_pending_stop): New function.
240
e758e19c
TT
2412020-04-08 Tom Tromey <[email protected]>
242
243 * windows-nat.c (windows_continue): Use matching_pending_stop and
244 continue_last_debug_event.
245 * nat/windows-nat.h (matching_pending_stop)
246 (continue_last_debug_event): Declare.
247 * nat/windows-nat.c (DEBUG_EVENTS): New define.
248 (matching_pending_stop, continue_last_debug_event): New
249 functions.
250
8d30e395
TT
2512020-04-08 Tom Tromey <[email protected]>
252
253 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
254 (handle_exception_result): Move to nat/windows-nat.h.
255 (DEBUG_EXCEPTION_SIMPLE): Remove.
256 (windows_nat::handle_ms_vc_exception): New function.
257 (handle_exception): Move to nat/windows-nat.c.
258 (get_windows_debug_event): Update.
259 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
260 nat/windows-nat.c.
261 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
262 (handle_exception_result): Move from windows-nat.c.
263 (handle_exception): Declare.
264 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
265 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
266 windows-nat.c.
267
29de418d
TT
2682020-04-08 Tom Tromey <[email protected]>
269
270 * windows-nat.c (exception_count, event_count): Remove.
271 (handle_exception, get_windows_debug_event)
272 (do_initial_windows_stuff): Update.
273
a816ba18
TT
2742020-04-08 Tom Tromey <[email protected]>
275
276 * windows-nat.c (windows_nat::handle_load_dll)
277 (windows_nat::handle_unload_dll): Rename. No longer static.
278 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
279 Declare.
280
a00caa12
TT
2812020-04-08 Tom Tromey <[email protected]>
282
283 * complaints.h (stop_whining): Declare at top-level.
284 (complaint): Don't declare stop_whining.
285
d41b524f
TT
2862020-04-08 Tom Tromey <[email protected]>
287
288 * windows-nat.c (windows_nat::handle_output_debug_string):
289 Rename. No longer static.
290 * nat/windows-nat.h (handle_output_debug_string): Declare.
291
3c76026d
TT
2922020-04-08 Tom Tromey <[email protected]>
293
294 * windows-nat.c (current_process_handle, current_process_id)
295 (main_thread_id, last_sig, current_event, last_wait_event)
296 (current_windows_thread, desired_stop_thread_id, pending_stops)
297 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
298 (display_selectors, fake_create_process)
299 (get_windows_debug_event): Update.
300 * nat/windows-nat.h (current_process_handle, current_process_id)
301 (main_thread_id, last_sig, current_event, last_wait_event)
302 (current_windows_thread, desired_stop_thread_id, pending_stops)
303 (struct pending_stop, siginfo_er): Move from windows-nat.c.
304 * nat/windows-nat.c (current_process_handle, current_process_id)
305 (main_thread_id, last_sig, current_event, last_wait_event)
306 (current_windows_thread, desired_stop_thread_id, pending_stops)
307 (siginfo_er): New globals. Move from windows-nat.c.
308
9d8679cc
TT
3092020-04-08 Tom Tromey <[email protected]>
310
311 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
312 (handle_load_dll): Update.
313 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
314
28688adf
TT
3152020-04-08 Tom Tromey <[email protected]>
316
317 * windows-nat.c (enum thread_disposition_type): Move to
318 nat/windows-nat.h.
319 (windows_nat::thread_rec): Rename from thread_rec. No longer
320 static.
321 (windows_add_thread, windows_nat_target::fetch_registers)
322 (windows_nat_target::store_registers, handle_exception)
323 (windows_nat_target::resume, get_windows_debug_event)
324 (windows_nat_target::get_tib_address)
325 (windows_nat_target::thread_name)
326 (windows_nat_target::thread_alive): Update.
327 * nat/windows-nat.h (enum thread_disposition_type): Move from
328 windows-nat.c.
329 (thread_rec): Declare.
330
4834dad0
TT
3312020-04-08 Tom Tromey <[email protected]>
332
333 * windows-nat.c: Add "using namespace".
334 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
335 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
336
65bafd5b
TT
3372020-04-08 Tom Tromey <[email protected]>
338
339 * nat/windows-nat.h (struct windows_thread_info): Declare
340 destructor.
341 * nat/windows-nat.c (~windows_thread_info): New.
342
0a4afda3
TT
3432020-04-08 Tom Tromey <[email protected]>
344
345 PR gdb/22992
346 * windows-nat.c (current_event): Update comment.
347 (last_wait_event, desired_stop_thread_id): New globals.
348 (struct pending_stop): New.
349 (pending_stops): New global.
350 (windows_nat_target) <stopped_by_sw_breakpoint>
351 <supports_stopped_by_sw_breakpoint>: New methods.
352 (windows_fetch_one_register): Add assertions. Adjust PC.
353 (windows_continue): Handle pending stops. Suspend other threads
354 when stepping. Use last_wait_event
355 (wait_for_debug_event): New function.
356 (get_windows_debug_event): Use wait_for_debug_event. Handle
357 pending stops. Queue spurious stops.
358 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
359 (windows_nat_target::kill): Use wait_for_debug_event.
360 * nat/windows-nat.h (struct windows_thread_info)
361 <stopped_at_software_breakpoint>: New field.
362 * nat/windows-nat.c (windows_thread_info::resume): Clear
363 stopped_at_software_breakpoint.
364
8e61ebec
TT
3652020-04-08 Tom Tromey <[email protected]>
366
367 * windows-nat.c (enum thread_disposition_type): New.
368 (thread_rec): Replace "get_context" parameter with "disposition";
369 change type.
370 (windows_add_thread, windows_nat_target::fetch_registers)
371 (windows_nat_target::store_registers, handle_exception)
372 (windows_nat_target::resume, get_windows_debug_event)
373 (windows_nat_target::get_tib_address)
374 (windows_nat_target::thread_name)
375 (windows_nat_target::thread_alive): Update.
376
98a03287
TT
3772020-04-08 Tom Tromey <[email protected]>
378
379 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
380 (windows_continue): Use windows_continue::resume.
381 * nat/windows-nat.h (struct windows_thread_info) <suspend,
382 resume>: Declare new methods.
383 * nat/windows-nat.c: New file.
384 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
385
7c7411bc
TT
3862020-04-08 Tom Tromey <[email protected]>
387
388 * windows-nat.c (windows_add_thread, windows_delete_thread)
389 (windows_nat_target::fetch_registers)
390 (windows_nat_target::store_registers, fake_create_process)
391 (windows_nat_target::resume, windows_nat_target::resume)
392 (get_windows_debug_event, windows_nat_target::wait)
393 (windows_nat_target::pid_to_str)
394 (windows_nat_target::get_tib_address)
395 (windows_nat_target::get_ada_task_ptid)
396 (windows_nat_target::thread_name)
397 (windows_nat_target::thread_alive): Use lwp, not tid.
398
2950fdf7
TT
3992020-04-08 Tom Tromey <[email protected]>
400
401 * windows-nat.c (handle_exception)
402 (windows_nat_target::thread_name): Update.
403 * nat/windows-nat.h (windows_thread_info): Remove destructor.
404 <name>: Now unique_xmalloc_ptr.
405
62fe396b
TT
4062020-04-08 Tom Tromey <[email protected]>
407
408 * windows-nat.c (thread_rec)
409 (windows_nat_target::fetch_registers): Update.
410 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
411 Update comment.
412 <debug_registers_changed, reload_context>: Now bool.
413
e9534bd2
TT
4142020-04-08 Tom Tromey <[email protected]>
415
416 * windows-nat.c (windows_add_thread): Use new.
417 (windows_init_thread_list, windows_delete_thread): Use delete.
418 (get_windows_debug_event): Update.
419 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
420 destructor, and initializers.
421
ae1f8880
TT
4222020-04-08 Tom Tromey <[email protected]>
423
424 * windows-nat.c (struct windows_thread_info): Remove.
425 * nat/windows-nat.h: New file.
426
55a1e039
TT
4272020-04-08 Tom Tromey <[email protected]>
428
429 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
430 (thread_rec, windows_add_thread, windows_delete_thread)
431 (windows_continue): Update.
432
93366324
TT
4332020-04-08 Tom Tromey <[email protected]>
434
435 * windows-nat.c (struct windows_thread_info): Remove typedef.
436 (thread_head): Remove.
437 (thread_list): New global.
438 (thread_rec, windows_add_thread, windows_init_thread_list)
439 (windows_delete_thread, windows_continue): Update.
440
0f2265e2
SM
4412020-04-08 Simon Marchi <[email protected]>
442
443 * windows-tdep.h (windows_init_abi): Add comment.
444 (cygwin_init_abi): New declaration.
445 * windows-tdep.c: Split signal enumeration in two, one for
446 Windows and one for Cygwin.
447 (windows_gdb_signal_to_target): Only deal with signal of the
448 Windows OS ABI.
449 (cygwin_gdb_signal_to_target): New function.
450 (windows_init_abi): Rename to windows_init_abi_common, don't set
451 gdb_signal_to_target gdbarch method. Add new new function with
452 this name.
453 (cygwin_init_abi): New function.
454 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
455 comment. Don't call windows_init_abi.
456 (amd64_windows_init_abi): Add comment, call windows_init_abi.
457 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
458 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
459 i386_windows_init_abi_common, don't call windows_init_abi. Add
460 a new function of this name.
461 (i386_cygwin_init_abi): New function.
462 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
463 OS ABI Cygwin.
464
3810f182
SM
4652020-04-08 Simon Marchi <[email protected]>
466
467 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
468 parameter.c.
469 (dwarf2_read_gdb_index): Update.
470
063f8e80
KR
4712020-04-07 Kamil Rytarowski <[email protected]>
472
473 * nbsd-tdep.c: Include "objfiles.h".
474 (nbsd_skip_solib_resolver): New.
475 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
476
85a9510c 4772020-04-07 Nitika Achra <[email protected]>
478
479 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
480 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
481 with DW_LLE_base_addressx are being emitted in DWARFv5.
482 Add the newly added kind DW_LOC_OFFSET_PAIR also.
483 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
484 unsigned integer.
485
9fc3eaae 4862020-04-07 Nitika Achra <[email protected]>
487
488 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
489 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
490 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
491 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
492 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
493 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
494 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
495
496
41144253 4972020-04-07 Nitika Achra <[email protected]>
498
499 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
500 (read_loclist_index): New function definition.
501 (lookup_loclist_base): New function definition.
502 (read_loclist_header): New function definition.
503 (dwarf2_cu): Add loclist_base and loclist_header field.
504 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
505 (read_full_die_1): Read the value of DW_AT_loclists_base.
506 (read_attribute_reprocess): Handle DW_FORM_loclistx.
507 (read_attribute_value): Handle DW_FORM_loclistx.
508 (skip_one_die): Handle DW_FORM_loclistx.
509 (loclist_header): New structure declaration.
510 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
511
9f4e76a4
SM
5122020-04-07 Simon Marchi <[email protected]>
513
514 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
515 constructor. Remove `addr` parameter from other constructor and
516 add `per_cu` parameter.
517 * dwarf2/read.c (create_partial_symtab): Update.
518
25c11aca
TV
5192020-04-07 Tom de Vries <[email protected]>
520
521 PR symtab/25796
522 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
523 (partial_die_info::fixup): Inherit has_const_value.
524
5707e24b
TV
5252020-04-07 Tom de Vries <[email protected]>
526
527 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
528 symbols without address.
529
05f00e22
KR
5302020-04-06 Kamil Rytarowski <[email protected]>
531
532 * nbsd-nat.h (struct thread_info): Add forward declaration.
533 (nbsd_nat_target::thread_alive): Add.
534 (nbsd_nat_target::thread_name): Likewise.
535 (nbsd_nat_target::update_thread_list): Likewise.
536 (update_thread_list::post_attach): Likewise.
537 (post_attach::pid_to_str): Likewise.
538 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
539 (nbsd_thread_lister): Add.
540 (nbsd_nat_target::thread_alive): Likewise.
541 (nbsd_nat_target::thread_name): Likewise.
542 (nbsd_add_threads): Likewise.
543 (update_thread_list::post_attach): Likewise.
544 (nbsd_nat_target::update_thread_list): Likewise.
545 (post_attach::pid_to_str): Likewise.
546
6ee448cc
TT
5472020-04-06 Tom Tromey <[email protected]>
548
549 * ada-valprint.c (print_variant_part): Extract the variant field.
550 (print_field_values): Use the field as the outer value when
551 recursing.
552
dea34e8c
TT
5532020-04-06 Tom Tromey <[email protected]>
554
555 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
556 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
557 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
558 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
559 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
560
93689ce9
TT
5612020-04-06 Tom Tromey <[email protected]>
562
563 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
564 TYPE_CODE_ERROR.
565
79743962
KR
5662020-04-06 Kamil Rytarowski <[email protected]>
567
568 * nbsd-tdep.c: Include "gdbarch.h".
569 Define enum with NetBSD signal numbers.
570 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
571 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
572 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
573 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
574 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
575 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
576 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
577 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
578 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
579 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
580 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
581 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
582
9e7c9a03
HD
5832020-04-03 Hannes Domani <[email protected]>
584
585 PR gdb/25325
586 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
587
d9e49b61
TT
5882020-04-03 Tom Tromey <[email protected]>
589
590 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
591 Read constant block.
592
e0fc5c3f
SM
5932020-04-02 Simon Marchi <[email protected]>
594
595 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
596 (gdb_bfd_get_full_section_contents): New declaration.
597 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
598 * windows-tdep.c (is_linked_with_cygwin_dll): Use
599 gdb_bfd_get_full_section_contents.
600
e2ff18a0
SM
6012020-04-02 Simon Marchi <[email protected]>
602
603 * exec.c (build_section_table): Replace internal_error with
604 gdb_assert.
605 (section_table_xfer_memory_partial): Likewise.
606 * mdebugread.c (parse_partial_symbols): Likewise.
607 * psymtab.c (lookup_partial_symbol): Likewise.
608 * utils.c (wrap_here): Likewise.
609
0830d301
TT
6102020-04-02 Tom Tromey <[email protected]>
611
612 * f-lang.c (build_fortran_types): Use arch_type to initialize
613 builtin_complex_s32 in the TYPE_CODE_ERROR case.
614
e7da7f8f
TT
6152020-04-02 Tom Tromey <[email protected]>
616
617 * dwarf2/read.c (partial_die_info::read): Do not create a vector
618 of attributes.
619
c90d28ac
AB
6202020-04-02 Andrew Burgess <[email protected]>
621 Bernd Edlinger <[email protected]>
622 Tom Tromey <[email protected]>
623
624 * buildsym.c (buildsym_compunit::record_line): Remove
625 deduplication code.
626
1aa98955
TV
6272020-04-02 Tom de Vries <[email protected]>
628
629 PR ada/24671
630 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
631
d3214198
TV
6322020-04-02 Tom de Vries <[email protected]>
633
634 * dwarf2/read.c (dwarf2_gdb_index_functions,
635 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
636 NULL.
637 * psymtab.c (psym_lookup_global_symbol_language): New function.
638 (psym_functions): Init psym_lookup_global_symbol_language with
639 psym_lookup_global_symbol_language.
640 * symfile-debug.c (debug_sym_quick_functions): Init
641 lookup_global_symbol_language with NULL.
642 * symfile.c (set_initial_language): Remove fixme comment.
643 * symfile.h (struct quick_symbol_functions): Add
644 lookup_global_symbol_language.
645 * symtab.c (find_quick_global_symbol_language): New function.
646 (find_main_name): Use find_quick_global_symbol_language.
647
2836752f
SM
6482020-04-01 Simon Marchi <[email protected]>
649
650 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
651
64dc2d4b
BE
6522020-04-01 Bernd Edlinger <[email protected]>
653
654 * buildsym.c (record_line): Fix undefined behavior and preserve
655 lines at eof.
656
bbe3dc41
BE
6572020-04-01 Bernd Edlinger <[email protected]>
658
659 * buildsym.c (record_line): Fix the resizing condition.
660
6b4a335b
TT
6612020-04-01 Tom Tromey <[email protected]>
662
663 * value.h (value_literal_complex): Add comment.
664 * valops.c (value_literal_complex): Refer to value.h.
665
3638a098
TT
6662020-04-01 Tom Tromey <[email protected]>
667
668 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
669 (scalar_type): New rule, from typebase.
670 (typebase): Use scalar_type. Recognize complex types.
671 (field_name): Handle FLOAT_KEYWORD.
672 (ident_tokens): Add _Complex and __complex__.
673
c34e8714
TT
6742020-04-01 Tom Tromey <[email protected]>
675
676 PR exp/25299:
677 * valarith.c (promotion_type, complex_binop): New functions.
678 (scalar_binop): Handle complex numbers. Use promotion_type.
679 (value_pos, value_neg, value_complement): Handle complex numbers.
680
fa649bb7
TT
6812020-04-01 Tom Tromey <[email protected]>
682
683 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
684 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
685 (parse_number): Handle complex numbers.
686
981c08ce
TT
6872020-04-01 Tom Tromey <[email protected]>
688
689 * c-valprint.c (c_decorations): Change complex suffix to "i".
690
4c99290d
TT
6912020-04-01 Tom Tromey <[email protected]>
692
693 * valprint.c (generic_value_print_complex): Use accessors.
694 * value.h (value_real_part, value_imaginary_part): Declare.
695 * valops.c (value_real_part, value_imaginary_part): New
696 functions.
697 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
698
5b930b45
TT
6992020-04-01 Tom Tromey <[email protected]>
700
701 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
702 (read_range_type): Update.
703 * mdebugread.c (basic_type): Update.
704 * go-lang.c (build_go_types): Use init_complex_type.
705 * gdbtypes.h (struct main_type) <complex_type>: New member.
706 (init_complex_type): Update.
707 (arch_complex_type): Don't declare.
708 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
709 Make name if none given. Use alloc_type_copy. Look for cached
710 complex type.
711 (arch_complex_type): Remove.
712 (gdbtypes_post_init): Use init_complex_type.
713 * f-lang.c (build_fortran_types): Use init_complex_type.
714 * dwarf2/read.c (read_base_type): Update.
715 * d-lang.c (build_d_types): Use init_complex_type.
716 * ctfread.c (read_base_type): Update.
717
53cccef1
TBA
7182020-04-01 Tankut Baris Aktemur <[email protected]>
719
720 * infrun.c (stop_all_threads): Update assertion, plus when
721 stopping threads, take into account that we might be trying
722 to stop an all-stop target.
723 (stop_waiting): Call 'stop_all_threads' if there exists a
724 non-stop target.
725
a0714d30
TBA
7262020-04-01 Tankut Baris Aktemur <[email protected]>
727
728 * target.h (exists_non_stop_target): New function declaration.
729 * target.c (exists_non_stop_target): New function.
730
60e22c1e
HD
7312020-04-01 Hannes Domani <[email protected]>
732
733 PR gdb/24789
734 * eval.c (is_integral_or_integral_reference): New function.
735 (evaluate_subexp_standard): Allow integer references in
736 pointer arithmetic.
737
e139a727
TBA
7382020-04-01 Tankut Baris Aktemur <[email protected]>
739
740 * remote.c (remote_target::remote_parse_stop_reply): Remove the
741 check for no ptid in the stop reply when the target is non-stop.
742
e0802d59
TT
7432020-04-01 Tom Tromey <[email protected]>
744
745 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
746 "name" parameter to rvalue reference. Initialize m_name_holder.
747 <lookup_name_info>: New overloads.
748 <name>: Return gdb::string_view.
749 <c_str>: New method.
750 <make_ignore_params>: Update.
751 <search_name_hash>: Update.
752 <language_lookup_name>: Return const char *.
753 <m_name>: Change type.
754 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
755 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
756 (lookup_name_info::match_any): Update.
757 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
758 Update.
759 * minsyms.c (linkage_name_str): Update.
760 * language.c (default_symbol_name_matcher): Update.
761 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
762 Update.
763 * ada-lang.c (ada_fold_name): Change parameter to string_view.
764 (ada_lookup_name_info::ada_lookup_name_info): Update.
765 (literal_symbol_name_matcher): Update.
766
8c072cb6
TT
7672020-04-01 Tom Tromey <[email protected]>
768
769 * psymtab.c (psymtab_search_name): Remove function.
770 (psym_lookup_symbol): Create search name and lookup name here.
771 (lookup_partial_symbol): Remove "name" parameter; add
772 lookup_name.
773 (psym_expand_symtabs_for_function): Update.
774
6f29a534
TT
7752020-03-31 Joel Jones <[email protected]>
776
777 PR tui/25597:
778 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
779
af62665e
TT
7802020-03-31 Tom Tromey <[email protected]>
781
782 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
783 memcpy.
784
d1a89da5
NC
7852020-03-30 Nelson Chu <[email protected]>
786
787 * features/riscv/32bit-csr.xml: Regenerated.
788 * features/riscv/64bit-csr.xml: Regenerated.
789
d8af9068
TT
7902020-03-30 Tom Tromey <[email protected]>
791
792 * ada-valprint.c (print_variant_part): Update.
793 * ada-lang.h (ada_which_variant_applies): Update.
794 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
795 outer_valaddr parameters; replace with "outer" value parameter.
796 (to_fixed_variant_branch_type): Update.
797
227c0bf4
PFC
7982020-03-30 Pedro Franco de Carvalho <[email protected]>
799
800 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
801 <list>. Remove inclusion of observable.h.
802 (PPC_DEBUG_CURRENT_VERSION): Move up define.
803 (struct arch_lwp_info): New struct.
804 (class ppc_linux_dreg_interface): New class.
805 (struct ppc_linux_process_info): New struct.
806 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
807 <low_new_clone, low_forget_process, low_prepare_to_resume>
808 <copy_thread_dreg_state, mark_thread_stale>
809 <mark_debug_registers_changed, register_hw_breakpoint>
810 <clear_hw_breakpoint, register_wp, clear_wp>
811 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
812 <num_memory_accesses, get_trigger_type>
813 <create_watchpoint_request, hwdebug_point_cmp>
814 <init_arch_lwp_info, get_arch_lwp_info>
815 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
816 methods.
817 <struct ptid_hash>: New inner struct.
818 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
819 members.
820 (saved_dabr_value, hwdebug_info, max_slots_number)
821 (struct hw_break_tuple, struct thread_points, ppc_threads)
822 (have_ptrace_hwdebug_interface)
823 (hwdebug_find_thread_points_by_tid)
824 (hwdebug_insert_point, hwdebug_remove_point): Remove.
825 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
826 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
827 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
828 use m_dreg_interface.
829 (hwdebug_point_cmp): Change to...
830 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
831 reference arguments instead of pointers.
832 (ppc_linux_nat_target::ranged_break_num_registers): Use
833 m_dreg_interface.
834 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
835 m_dreg_interface. Call register_hw_breakpoint.
836 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
837 m_dreg_interface. Call clear_hw_breakpoint.
838 (get_trigger_type): Change to...
839 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
840 comment.
841 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
842 use m_dreg_interface. Call register_hw_breakpoint.
843 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
844 use m_dreg_interface. Call clear_hw_breakpoint.
845 (can_use_watchpoint_cond_accel): Change to...
846 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
847 method. Update comment, use m_dreg_interface and
848 m_process_info.
849 (calculate_dvc): Change to...
850 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
851 m_dreg_interface.
852 (num_memory_accesses): Change to...
853 (ppc_linux_nat_target::num_memory_accesses): ...this method.
854 (check_condition): Change to...
855 (ppc_linux_nat_target::check_condition): ...this method.
856 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
857 comment, use m_dreg_interface.
858 (create_watchpoint_request): Change to...
859 (ppc_linux_nat_target::create_watchpoint_request): ...this
860 method. Use m_dreg_interface.
861 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
862 m_dreg_interface. Call register_hw_breakpoint or register_wp.
863 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
864 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
865 (ppc_linux_nat_target::low_forget_process)
866 (ppc_linux_nat_target::low_new_fork)
867 (ppc_linux_nat_target::low_new_clone)
868 (ppc_linux_nat_target::low_delete_thread)
869 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
870 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
871 only call mark_thread_stale.
872 (ppc_linux_thread_exit): Remove.
873 (ppc_linux_nat_target::stopped_data_address): Change to...
874 (ppc_linux_nat_target::low_stopped_data_address): This. Add
875 comment, use m_dreg_interface and m_thread_hw_breakpoints.
876 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
877 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
878 comment. Call low_stopped_data_address.
879 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
880 m_dreg_interface.
881 (ppc_linux_nat_target::masked_watch_num_registers): Use
882 m_dreg_interface.
883 (ppc_linux_nat_target::copy_thread_dreg_state)
884 (ppc_linux_nat_target::mark_thread_stale)
885 (ppc_linux_nat_target::mark_debug_registers_changed)
886 (ppc_linux_nat_target::register_hw_breakpoint)
887 (ppc_linux_nat_target::clear_hw_breakpoint)
888 (ppc_linux_nat_target::register_wp)
889 (ppc_linux_nat_target::clear_wp)
890 (ppc_linux_nat_target::init_arch_lwp_info)
891 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
892 (_initialize_ppc_linux_nat): Remove observer callback.
893
4db10d8f
PFC
8942020-03-30 Pedro Franco de Carvalho <[email protected]>
895
896 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
897 (ppc_linux_nat_target::auxv_parse)
898 (ppc_linux_nat_target::read_description)
899 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
900 Move up.
901
1310c1b0
PFC
9022020-03-30 Pedro Franco de Carvalho <[email protected]>
903
904 * linux-nat.h (low_new_clone): New method.
905 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
906
69b037c3
SM
9072020-03-29 Simon Marchi <[email protected]>
908
909 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
910 (dbx_expand_psymtab): ... this.
911 (start_psymtab): Update.
912 * mdebugread.c (psymtab_to_symtab_1): Rename to...
913 (mdebug_expand_psymtab): ... this.
914 (parse_partial_symbols): Update.
915 (new_psymtab): Update.
916 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
917 (xcoff_expand_psymtab): ... this.
918 (xcoff_start_psymtab): Update.
919
48993951
SM
9202020-03-29 Simon Marchi <[email protected]>
921
922 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
923 <expand_dependencies>: ... this.
924 * psymtab.c (partial_symtab::read_dependencies): Rename to...
925 (partial_symtab::expand_dependencies): ... this.
926 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
927 Update.
928 (dwarf2_psymtab::expand_psymtab): Update.
929 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
930 * mdebugread.c (psymtab_to_symtab_1): Update.
931 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
932
3ad83046
SM
9332020-03-29 Simon Marchi <[email protected]>
934
935 * psympriv.h (discard_psymtab): Remove.
936 * dbxread.c (dbx_end_psymtab): Update.
937 * xcoffread.c (xcoff_end_psymtab): Update.
938
4d1b9ab6
TT
9392020-03-28 Tom Tromey <[email protected]>
940
941 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
942 comment.
943
f1749218
TT
9442020-03-28 Tom Tromey <[email protected]>
945
946 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
947
ebea7626
HD
9482020-03-27 Hannes Domani <[email protected]>
949
950 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
951
a879b4d5
JB
9522020-03-26 John Baldwin <[email protected]>
953
954 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
955
0826b30a
TT
9562020-03-26 Tom Tromey <[email protected]>
957
958 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
959 (mark_common_block_symbol_computed, read_tag_string_type)
960 (attr_to_dynamic_prop, read_subrange_type): Update.
961 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
962 to be methods on struct attribute.
963 (skip_one_die, process_imported_unit_die, read_namespace_alias)
964 (read_call_site_scope, partial_die_info::read)
965 (partial_die_info::read, lookup_die_type, follow_die_ref):
966 Update.
967 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
968 from dwarf2_get_ref_die_offset.
969 (attribute::constant_value): New method, from
970 dwarf2_get_attr_constant_value.
971 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
972 Declare method.
973 <constant_value>: New method.
974
2b2558bf
TT
9752020-03-26 Tom Tromey <[email protected]>
976
977 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
978 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
979 (dwarf_type_encoding_name): Move to stringify.c.
980 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
981 * dwarf2/stringify.c: New file.
982 * dwarf2/stringify.h: New file.
983
eeb64781
TT
9842020-03-26 Tom Tromey <[email protected]>
985
986 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
987 Rewrite.
988
a39fdb41
TT
9892020-03-26 Tom Tromey <[email protected]>
990
991 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
992 methods.
993 * dwarf2/read.c (lookup_addr_base): Move to die.h.
994 (lookup_ranges_base): Likewise.
995 (read_cutu_die_from_dwo, read_full_die_1): Update.
996
436c571c
TT
9972020-03-26 Tom Tromey <[email protected]>
998
999 * dwarf2/read.c (read_import_statement, read_file_scope)
1000 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1001 (read_lexical_block_scope, read_call_site_scope)
1002 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1003 (handle_struct_member_die, process_structure_scope)
1004 (update_enumeration_type_from_children)
1005 (process_enumeration_scope, read_array_type, read_common_block)
1006 (read_namespace, read_module, read_subroutine_type): Update.
1007 (sibling_die): Remove.
1008
052c8bb8
TT
10092020-03-26 Tom Tromey <[email protected]>
1010
1011 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1012 (build_type_psymtabs_reader, read_structure_type)
1013 (read_enumeration_type, read_full_die_1): Update.
1014 (dwarf2_attr_no_follow): Move to die.h.
1015 * dwarf2/die.h (struct die_info) <attr>: New method.
1016
2b24b6e4
TT
10172020-03-26 Tom Tromey <[email protected]>
1018
1019 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1020 <base_address>: Now an optional.
1021 (dwarf2_find_base_address, dwarf2_rnglists_process)
1022 (dwarf2_ranges_process, fill_in_loclist_baton)
1023 (dwarf2_symbol_mark_computed): Update.
1024
c2d50fd0
TT
10252020-03-26 Tom Tromey <[email protected]>
1026
1027 * dwarf2/read.c (struct die_info): Move to die.h.
1028 * dwarf2/die.h: New file.
1029
0df7ad3a
TT
10302020-03-26 Tom Tromey <[email protected]>
1031
1032 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1033 * dwarf2/read.c
1034 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1035 Move to line-header.c.
1036 (read_checked_initial_length_and_offset, read_formatted_entries):
1037 Likewise.
1038 (dwarf_decode_line_header): Split into two.
1039 * dwarf2/line-header.c
1040 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1041 Move from read.c.
1042 (read_checked_initial_length_and_offset, read_formatted_entries):
1043 Likewise.
1044 (dwarf_decode_line_header): New function, split from read.c.
1045
86c0bb4c
TT
10462020-03-26 Tom Tromey <[email protected]>
1047
1048 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1049 Declare method.
1050 * dwarf2/read.c (read_attribute_value): Update.
1051 (dwarf2_per_objfile::read_line_string): Rename from
1052 read_indirect_line_string.
1053 (read_formatted_entries): Update.
1054
2ef46c2f
TT
10552020-03-26 Tom Tromey <[email protected]>
1056
1057 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1058 variable.
1059
4f9c1eda
TT
10602020-03-26 Tom Tromey <[email protected]>
1061
1062 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1063 const.
1064 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1065 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1066 parameter const.
1067
5a0e026f
TT
10682020-03-26 Tom Tromey <[email protected]>
1069
1070 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1071 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1072 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1073 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1074
8844c11b
TT
10752020-03-26 Tom Tromey <[email protected]>
1076
1077 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1078 file_names_size, file_full_name, file_file_name>: Use const.
1079 <file_name_at, file_names>: Add const overload.
1080 * dwarf2/line-header.c (line_header::file_file_name)
1081 (line_header::file_full_name): Update.
1082
c90ec28a
TT
10832020-03-26 Tom Tromey <[email protected]>
1084
1085 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1086 (macro_start_file, consume_improper_spaces)
1087 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1088 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1089 (dwarf_decode_macros): Move to macro.c.
1090 * dwarf2/macro.c: New file.
1091 * dwarf2/macro.h: New file.
1092 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1093
4f44ae6c
TT
10942020-03-26 Tom Tromey <[email protected]>
1095
1096 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1097 method.
1098 * dwarf2/section.c: New method. From
1099 read_indirect_string_at_offset_from.
1100 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1101 (read_indirect_string_at_offset_from): Move to section.c.
1102 (read_indirect_string_at_offset): Rewrite.
1103 (read_indirect_line_string_at_offset): Remove.
1104 (read_indirect_string, read_indirect_line_string)
1105 (dwarf_decode_macro_bytes): Update.
1106
a0194fa8
TT
11072020-03-26 Tom Tromey <[email protected]>
1108
1109 * dwarf2/section.h (struct dwarf2_section_info)
1110 <overload_complaint>: Declare.
1111 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1112 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1113 Rename from dwarf2_section_buffer_overflow_complaint.
1114 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1115 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1116
3d27bbdb
TT
11172020-03-26 Tom Tromey <[email protected]>
1118
1119 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1120 Declare.
1121 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1122 Move from read.c.
1123 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1124 to section.c.
1125
9eac9650
TT
11262020-03-26 Tom Tromey <[email protected]>
1127
1128 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1129
bf80d710
TT
11302020-03-26 Tom Tromey <[email protected]>
1131
1132 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1133 "builder".
1134 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1135 parameter.
1136 (dwarf_decode_macros): Update.
1137
0314b390
TT
11382020-03-26 Tom Tromey <[email protected]>
1139
1140 * dwarf2/read.c (read_attribute_value): Update.
1141 (read_indirect_string_from_dwz): Move to dwz.c; change into
1142 method.
1143 (dwarf_decode_macro_bytes): Update.
1144 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1145 * dwarf2/dwz.c: New file.
1146 * Makefile.in (COMMON_SFILES): Add dwz.c.
1147
9fda78b6
TT
11482020-03-26 Tom Tromey <[email protected]>
1149
1150 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1151 * dwarf2/read.c: Add include.
1152 * dwarf2/index-write.c: Add include.
1153 * dwarf2/index-cache.c: Add include.
1154 * dwarf2/dwz.h: New file.
1155
33aa3c10
TT
11562020-03-25 Tom Tromey <[email protected]>
1157
1158 * compile/compile-object-load.c (get_out_value_type): Mention
1159 correct symbol name in error message.
1160
d503b685
HD
11612020-03-25 Hannes Domani <[email protected]>
1162
1163 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1164
7b1eff95
TV
11652020-03-25 Tom de Vries <[email protected]>
1166
1167 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1168 * symmisc.c (dump_symtab_1): Print user and includes fields.
1169 (maintenance_info_symtabs): Same.
1170
dd895392
AB
11712020-03-25 Andrew Burgess <[email protected]>
1172
1173 PR gdb/25534
1174 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1175 (riscv_regcache_cooked_write): New function.
1176 (riscv_push_dummy_call): Use new function.
1177 (riscv_return_value): Likewise.
1178
5ab2fbf1
SM
11792020-03-24 Simon Marchi <[email protected]>
1180
1181 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1182 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1183 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1184 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1185 * infrun.c (follow_fork): Likewise.
1186 (follow_fork_inferior): Likewise.
1187 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1188 * linux-nat.h (class linux_nat_target): Likewise.
1189 * remote.c (class remote_target) <follow_fork>: Likewise.
1190 (remote_target::follow_fork): Likewise.
1191 * target-delegates.c: Re-generate.
1192 * target.c (default_follow_fork): Likewise.
1193 (target_follow_fork): Likewise.
1194 * target.h (struct target_ops) <follow_fork>: Likewise.
1195 (target_follow_fork): Likewise.
1196
a64fafb5
TV
11972020-03-24 Tom de Vries <[email protected]>
1198
1199 * psymtab.c (maintenance_info_psymtabs): Print user field.
1200
fe26d3a3
TT
12012020-03-20 Tom Tromey <[email protected]>
1202
1203 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1204 const.
1205 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1206 const.
1207
c884cc46
SM
12082020-03-20 Simon Marchi <[email protected]>
1209
1210 * ptrace.m4: Don't check for ptrace declaration.
1211 * config.in: Re-generate.
1212 * configure: Re-generate.
1213 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1214 not defined.
1215
1ff700c2
KR
12162020-03-20 Kamil Rytarowski <[email protected]>
1217
1218 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1219 `PTRACE_TYPE_RET'.
1220 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1221 * sparc-nat.c (gdb_ptrace): Likewise.
1222 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1223
f7d4f0b1
TT
12242020-03-20 Tom Tromey <[email protected]>
1225
1226 * c-exp.y (lex_one_token): Fix assert.
1227
f67210ff
TT
12282020-03-20 Tom Tromey <[email protected]>
1229
1230 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1231 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1232 strncpy call.
1233
1773be9e
TT
12342020-03-20 Tom Tromey <[email protected]>
1235
1236 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1237
70304be9
TT
12382020-03-20 Tom Tromey <[email protected]>
1239
1240 * ada-valprint.c (print_variant_part): Remove parameters; switch
1241 to value-based API.
1242 (print_field_values): Likewise.
1243 (ada_val_print_struct_union): Likewise.
1244 (ada_value_print_1): Update.
1245
9faa006d
KR
12462020-03-20 Kamil Rytarowski <[email protected]>
1247
1248 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1249 nbsd_nat_target instead of inf_ptrace_target.
1250 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1251 nbsd_nat_target.
1252
4a90f062
KR
12532020-03-20 Kamil Rytarowski <[email protected]>
1254
1255 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1256 it to the ptrace call.
1257 * (store_registers): Likewise.
1258
12592020-03-20 Kamil Rytarowski <[email protected]>
c7da12c7
KR
1260
1261 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1262 it to the ptrace call.
1263 * (store_registers): Likewise.
1264
2d07da27
LM
12652020-03-19 Luis Machado <[email protected]>
1266
1267 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1268 valid, fetch vg value from ptrace.
1269
f09db380
KR
12702020-03-19 Kamil Rytarowski <[email protected]>
1271 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1272 * inf-ptrace.c: Likewise.
1273 * (gdb_ptrace): Add.
1274 * (inf_ptrace_target::resume): Update.
1275 * (inf_ptrace_target::xfer_partial): Likewise.
1276 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1277 * (inf_ptrace_peek_poke): Update.
1278
fcc7376e
KR
12792020-03-19 Kamil Rytarowski <[email protected]>
1280
1281 * x86-bsd-nat.c (gdb_ptrace): New.
1282 * (x86bsd_dr_set): Add new argument `ptid'.
1283 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1284 x86bsd_dr_set_addr): Update.
1285
cada5fc9
AB
12862020-03-19 Andrew Burgess <[email protected]>
1287
1288 * remote.c (remote_target::process_stop_reply): Handle events for
1289 all threads differently.
1290
19a2740f
AB
12912020-03-19 Andrew Burgess <[email protected]>
1292
1293 * completer.c (completion_tracker::remove_completion): Define new
1294 function.
1295 * completer.h (completion_tracker::remove_completion): Declare new
1296 function.
1297 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1298 when adding a C++ function symbol.
1299
724fd9ba
AB
13002020-03-19 Andrew Burgess <[email protected]>
1301
1302 * completer.c (completion_tracker::completion_hash_entry): Define
1303 new class.
1304 (advance_to_filename_complete_word_point): Call
1305 recompute_lowest_common_denominator.
1306 (completion_tracker::completion_tracker): Call discard_completions
1307 to setup the hash table.
1308 (completion_tracker::discard_completions): Allow for being called
1309 from the constructor, pass new equal function, and element deleter
1310 when constructing the hash table. Initialise new class member
1311 variables.
1312 (completion_tracker::maybe_add_completion): Remove use of
1313 m_entries_vec, and store more information into m_entries_hash.
1314 (completion_tracker::recompute_lcd_visitor): New function, most
1315 content taken from...
1316 (completion_tracker::recompute_lowest_common_denominator):
1317 ...here, this now just visits each item in the hash calling the
1318 above visitor.
1319 (completion_tracker::build_completion_result): Remove use of
1320 m_entries_vec, call recompute_lowest_common_denominator.
1321 * completer.h (completion_tracker::have_completions): Remove use
1322 of m_entries_vec.
1323 (completion_tracker::completion_hash_entry): Declare new class.
1324 (completion_tracker::recompute_lowest_common_denominator): Change
1325 function signature.
1326 (completion_tracker::recompute_lcd_visitor): Declare new function.
1327 (completion_tracker::m_entries_vec): Delete.
1328 (completion_tracker::m_entries_hash): Initialize to NULL.
1329 (completion_tracker::m_lowest_common_denominator_valid): New
1330 member variable.
1331 (completion_tracker::m_lowest_common_denominator_max_length): New
1332 member variable.
1333
5a82b8a1
KR
13342020-03-17 Kamil Rytarowski <[email protected]>
1335
1336 * regformats/regdef.h: Put reg in gdb namespace.
1337
fb516a69
KR
13382020-03-17 Kamil Rytarowski <[email protected]>
1339
1340 * i386-bsd-nat.c (gdb_ptrace): New.
1341 * (i386bsd_fetch_inferior_registers,
1342 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1343 * (i386bsd_fetch_inferior_registers,
1344 i386bsd_store_inferior_registers) Use gdb_ptrace.
1345
1c0aa1fb
KR
13462020-03-17 Kamil Rytarowski <[email protected]>
1347
1348 * amd64-bsd-nat.c (gdb_ptrace): New.
1349 * (amd64bsd_fetch_inferior_registers,
1350 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1351 * (amd64bsd_fetch_inferior_registers,
1352 amd64bsd_store_inferior_registers) Use gdb_ptrace.
1353
5ccd2fb7
KR
13542020-03-17 Kamil Rytarowski <[email protected]>
1355
1356 * user-regs.c (user_reg::read): Rename to...
1357 (user_reg::xread): ...this.
1358 * (append_user_reg): Rename argument `read' to `xread'.
1359 * (user_reg_add_builtin): Likewise.
1360 * (user_reg_add): Likewise.
1361 * (value_of_user_reg): Likewise.
1362
2108a63a
KR
13632020-03-17 Kamil Rytarowski <[email protected]>
1364
1365 * sparc-nat.c (gdb_ptrace): New.
1366 * sparc-nat.c (sparc_fetch_inferior_registers)
1367 (sparc_store_inferior_registers) Remove obsolete comment.
1368 * sparc-nat.c (sparc_fetch_inferior_registers)
1369 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
1370 * sparc-nat.c (sparc_fetch_inferior_registers)
1371 (sparc_store_inferior_registers) Use gdb_ptrace.
1372
a225c9a8
KR
13732020-03-17 Kamil Rytarowski <[email protected]>
1374
1375 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
1376 it to the ptrace call.
1377 * sh-nbsd-nat.c (store_registers): Likewise.
1378
98097623
KR
13792020-03-17 Kamil Rytarowski <[email protected]>
1380
1381 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
1382 nbsd_nat_target instead of inf_ptrace_target.
1383 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1384 nbsd_nat_target.
1385
9e38d619
KR
13862020-03-17 Kamil Rytarowski <[email protected]>
1387
1388 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
1389
a2ecbe9f
KR
13902020-03-17 Kamil Rytarowski <[email protected]>
1391
1392 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
1393 <sys/sysctl.h>.
1394 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
1395
58990295
TV
13962020-03-17 Tom de Vries <[email protected]>
1397
1398 PR gdb/23710
1399 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
1400 fields.
1401 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
1402 fields.
1403 (process_imported_unit_die): Skip import of c++ CUs.
1404
771dd3a8
TT
14052020-03-16 Tom Tromey <[email protected]>
1406
1407 * p-valprint.c (pascal_object_print_value): Initialize
1408 base_value.
1409
817a7585
AK
14102020-03-16 Anton Kolesov <[email protected]>
1411 Shahab Vahedi <[email protected]>
1412
1413 * Makefile.in: Add arch/arc.o
1414 * configure.tgt: Likewise.
1415 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
1416 (_initialize_arc_tdep): Don't initialize old target descriptions.
1417 (arc_read_description): New function to cache target descriptions.
1418 * arc-tdep.h (arc_read_description): Add proto type.
1419 * arch/arc.c: New file.
1420 * arch/arc.h: Likewise.
1421 * features/Makefile: Replace old target descriptions with new.
1422 * features/arc-arcompact.c: Remove.
1423 * features/arc-arcompact.xml: Likewise.
1424 * features/arc-v2.c: Likewise
1425 * features/arc-v2.xml: Likewise
1426 * features/arc/aux-arcompact.xml: New file.
1427 * features/arc/aux-v2.xml: Likewise.
1428 * features/arc/core-arcompact.xml: Likewise.
1429 * features/arc/core-v2.xml: Likewise.
1430 * features/arc/aux-arcompact.c: Generate.
1431 * features/arc/aux-v2.c: Likewise.
1432 * features/arc/core-arcompact.c: Likewise.
1433 * features/arc/core-v2.c: Likewise.
1434 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
1435
67430cd0
TT
14362020-03-16 Tom Tromey <[email protected]>
1437
1438 PR gdb/25663:
1439 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
1440 putting value into bcache.
1441
30efb6c7
SM
14422020-03-16 Simon Marchi <[email protected]>
1443
1444 PR gdb/21500
1445 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
1446 to...
1447 (amd64_windows_init_abi_common): ... this. Don't set size of
1448 long type.
1449 (amd64_windows_init_abi): New function.
1450 (amd64_cygwin_init_abi): New function.
1451 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
1452 the Cygwin OS ABI.
1453 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
1454 comment.
1455
8db52437
SM
14562020-03-16 Simon Marchi <[email protected]>
1457
1458 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
1459 * windows-tdep.c (CYGWIN_DLL_NAME): New.
1460 (pe_import_directory_entry): New struct type.
1461 (is_linked_with_cygwin_dll): New function.
1462 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
1463 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
1464 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
1465
5982a56a
SM
14662020-03-16 Simon Marchi <[email protected]>
1467
1468 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
1469 i386_cygwin_core_osabi_sniffer.
1470
7a1998df
SM
14712020-03-16 Simon Marchi <[email protected]>
1472
1473 * i386-cygwin-tdep.c: Rename to...
1474 * i386-windows-tdep.c: ... this.
1475 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
1476 i386-windows-tdep.c.
1477 * configure.tgt: Likewise.
1478
053205cc
SM
14792020-03-16 Simon Marchi <[email protected]>
1480
1481 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
1482 * osabi.c (gdb_osabi_names): Add "Windows".
1483 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
1484 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
1485 (i386_cygwin_core_osabi_sniffer): New function, extracted from
1486 i386_cygwin_osabi_sniffer.
1487 (_initialize_i386_cygwin_tdep): Register OS ABI
1488 GDB_OSABI_WINDOWS for i386.
1489 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
1490 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
1491 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
1492 for x86-64.
1493 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
1494 when the target matches '*-*-mingw*'.
1495
fe4b2ee6
SM
14962020-03-16 Simon Marchi <[email protected]>
1497
1498 * defs.h (enum gdb_osabi): Move to...
1499 * osabi.h (enum gdb_osabi): ... here.
1500 * gdbarch.sh: Include osabi.h in gdbarch.h.
1501 * gdbarch.h: Re-generate.
1502
cb9b645d
SM
15032020-03-16 Simon Marchi <[email protected]>
1504
1505 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
1506 function.
1507 (_initialize_amd64_windows_tdep): Register osabi sniffer.
1508
3293bbaf
TT
15092020-03-14 Tom Tromey <[email protected]>
1510
1511 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
1512 for C++.
1513 (c_type_print_modifier): Likewise. Add "language" parameter.
1514 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
1515 (c_type_print_base_1): Update.
1516 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
1517 constants.
1518 * type-stack.c (type_stack::insert): Handle tp_atomic and
1519 tp_restrict.
1520 (type_stack::follow_type_instance_flags): Likewise.
1521 (type_stack::follow_types): Likewise. Merge type-following code.
1522 * c-exp.y (RESTRICT, ATOMIC): New tokens.
1523 (space_identifier, cv_with_space_id)
1524 (const_or_volatile_or_space_identifier_noopt)
1525 (const_or_volatile_or_space_identifier): Remove.
1526 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
1527 rules.
1528 (ptr_operator, typebase): Update.
1529 (enum token_flag) <FLAG_C>: New constant.
1530 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
1531 "_Atomic".
1532 (lex_one_token): Handle FLAG_C.
1533
154151a6
KR
15342020-03-14 Kamil Rytarowski <[email protected]>
1535
1536 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
1537 it to the ptrace call.
1538 * m68k-bsd-nat.c (store_registers): Likewise.
1539
bc107784
KR
15402020-03-14 Kamil Rytarowski <[email protected]>
1541
1542 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
1543 gdb_byte *.
1544 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1545 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
1546 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
1547
01a80117
KR
15482020-03-14 Kamil Rytarowski <[email protected]>
1549
1550 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
1551 nbsd_nat_target instead of inf_ptrace_target.
1552 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1553 nbsd_nat_target.
1554
f90280ca
KR
15552020-03-14 Kamil Rytarowski <[email protected]>
1556
1557 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
1558 register_t.
1559
6def66f1
KR
15602020-03-14 Kamil Rytarowski <[email protected]>
1561
1562 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
1563 it to the ptrace call.
1564 * alpha-bsd-nat.c (store_registers): Likewise.
1565
66eaca97
KR
15662020-03-14 Kamil Rytarowski <[email protected]>
1567
1568 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
1569 includes.
1570 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
1571 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1572 fill_fpregset): Likewise.
1573
4fed520b
KR
15742020-03-14 Kamil Rytarowski <[email protected]>
1575
1576 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
1577 nbsd_nat_target instead of inf_ptrace_target.
1578 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1579 nbsd_nat_target.
1580
2190cf06
KR
15812020-03-14 Kamil Rytarowski <[email protected]>
1582
1583 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
1584 register_t.
1585
75c56d3d
KR
15862020-03-14 Kamil Rytarowski <[email protected]>
1587
1588 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
1589 it to the ptrace call.
1590 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
1591 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
1592 * arm-nbsd-nat.c (store_register): Likewise.
1593 * arm-nbsd-nat.c (store_regs): Likewise.
1594 * arm-nbsd-nat.c (store_fp_register): Likewise.
1595 * arm-nbsd-nat.c (store_fp_regs): Likewise.
1596
6018d381
KR
15972020-03-14 Kamil Rytarowski <[email protected]>
1598
1599 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
1600 nbsd_nat_target instead of inf_ptrace_target.
1601 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1602 nbsd_nat_target.
1603
013f99f0
KR
16042020-03-14 Kamil Rytarowski <[email protected]>
1605
1606 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
1607 it to the ptrace call.
1608 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
1609
12753073
KR
16102020-03-14 Kamil Rytarowski <[email protected]>
1611
6227b330
KR
1612 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
1613 it to the ptrace call.
1614 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1615
16162020-03-14 Kamil Rytarowski <[email protected]>
1617
1618 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1619 gdb_byte *.
12753073
KR
1620 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1621
d5be5fa4
KR
16222020-03-14 Kamil Rytarowski <[email protected]>
1623
1624 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1625 instead of inf_ptrace_target.
1626 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1627 nbsd_nat_target.
1628
8110f842
KR
16292020-03-14 Kamil Rytarowski <[email protected]>
1630
1631 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1632 register_t.
1633
52feded7
KR
16342020-03-14 Kamil Rytarowski <[email protected]>
1635
1636 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1637 register_t.
1638
25567eee
KR
16392020-03-14 Kamil Rytarowski <[email protected]>
1640
1641 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1642 register_t.
1643
426a9c18
TT
16442020-03-13 Tom Tromey <[email protected]>
1645
1646 * value.h (val_print): Don't declare.
1647 * valprint.h (val_print_array_elements)
1648 (val_print_scalar_formatted, generic_val_print): Don't declare.
1649 * valprint.c (generic_val_print_array): Take a struct value.
1650 (generic_val_print_ptr, generic_val_print_memberptr)
1651 (generic_val_print_bool, generic_val_print_int)
1652 (generic_val_print_char, generic_val_print_complex)
1653 (generic_val_print): Remove.
1654 (generic_value_print): Update.
1655 (do_val_print): Remove unused parameters. Don't call
1656 la_val_print.
1657 (val_print): Remove.
1658 (common_val_print): Update. Don't call value_check_printable.
1659 (val_print_scalar_formatted, val_print_array_elements): Remove.
1660 * rust-lang.c (rust_val_print): Remove.
1661 (rust_language_defn): Update.
1662 * p-valprint.c (pascal_val_print): Remove.
1663 (pascal_value_print_inner): Update.
1664 (pascal_object_print_val_fields, pascal_object_print_val):
1665 Remove.
1666 (pascal_object_print_static_field): Update.
1667 * p-lang.h (pascal_val_print): Don't declare.
1668 * p-lang.c (pascal_language_defn): Update.
1669 * opencl-lang.c (opencl_language_defn): Update.
1670 * objc-lang.c (objc_language_defn): Update.
1671 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1672 * m2-lang.h (m2_val_print): Don't declare.
1673 * m2-lang.c (m2_language_defn): Update.
1674 * language.h (struct language_defn) <la_val_print>: Remove.
1675 * language.c (unk_lang_value_print_inner): Rename. Change
1676 argument types.
1677 (unknown_language_defn, auto_language_defn): Update.
1678 * go-valprint.c (go_val_print): Remove.
1679 * go-lang.h (go_val_print): Don't declare.
1680 * go-lang.c (go_language_defn): Update.
1681 * f-valprint.c (f_val_print): Remove.
1682 * f-lang.h (f_value_print): Don't declare.
1683 * f-lang.c (f_language_defn): Update.
1684 * d-valprint.c (d_val_print): Remove.
1685 * d-lang.h (d_value_print): Don't declare.
1686 * d-lang.c (d_language_defn): Update.
1687 * cp-valprint.c (cp_print_value_fields)
1688 (cp_print_value_fields_rtti, cp_print_value): Remove.
1689 (cp_print_static_field): Update.
1690 * c-valprint.c (c_val_print_array, c_val_print_ptr)
1691 (c_val_print_struct, c_val_print_union, c_val_print_int)
1692 (c_val_print_memberptr, c_val_print): Remove.
1693 * c-lang.h (c_val_print_array, cp_print_value_fields)
1694 (cp_print_value_fields_rtti): Don't declare.
1695 * c-lang.c (c_language_defn, cplus_language_defn)
1696 (asm_language_defn, minimal_language_defn): Update.
1697 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
1698 (ada_val_print_enum): Take a struct value.
1699 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
1700 (ada_val_print): Remove.
1701 (ada_value_print_1): Update.
1702 (printable_val_type): Remove.
1703 * ada-lang.h (ada_val_print): Don't declare.
1704 * ada-lang.c (ada_language_defn): Update.
1705
42331a1e
TT
17062020-03-13 Tom Tromey <[email protected]>
1707
1708 * valprint.c (do_val_print): Update.
1709 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
1710 a struct value.
1711 (value_to_value_object_no_release): Declare.
1712 * python/py-value.c (value_to_value_object_no_release): New
1713 function.
1714 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
1715 struct value.
1716 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
1717 function.
1718 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
1719 a struct value.
1720 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
1721 Declare.
1722 (gdbscm_apply_val_pretty_printer): Take a struct value.
1723 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
1724 value.
1725 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
1726 value.
1727 * extension-priv.h (struct extension_language_ops)
1728 <apply_val_pretty_printer>: Take a struct value.
1729 * cp-valprint.c (cp_print_value): Create a struct value.
1730 (cp_print_value): Update.
1731
3a916a97
TT
17322020-03-13 Tom Tromey <[email protected]>
1733
1734 * ada-valprint.c (print_field_values): Call common_val_print.
1735
b59eac37
TT
17362020-03-13 Tom Tromey <[email protected]>
1737
1738 * ada-valprint.c (val_print_packed_array_elements): Remove
1739 bitoffset and val parameters. Call common_val_print.
1740 (ada_val_print_string): Remove offset, address, and original_value
1741 parameters.
1742 (ada_val_print_array): Update.
1743 (ada_value_print_array): New function.
1744 (ada_value_print_1): Call it.
1745
03371129
TT
17462020-03-13 Tom Tromey <[email protected]>
1747
1748 * ada-valprint.c (ada_value_print): Use common_val_print.
1749
2e088f8b
TT
17502020-03-13 Tom Tromey <[email protected]>
1751
1752 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
1753
39ef85a8
TT
17542020-03-13 Tom Tromey <[email protected]>
1755
1756 * ada-valprint.c (ada_value_print_num): New function.
1757 (ada_value_print_1): Use it.
1758
b9fa6e07
TT
17592020-03-13 Tom Tromey <[email protected]>
1760
1761 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
1762
416595d6
TT
17632020-03-13 Tom Tromey <[email protected]>
1764
1765 * ada-valprint.c (ada_value_print_ptr): New function.
1766 (ada_value_print_1): Use it.
1767
5b5e15ec
TT
17682020-03-13 Tom Tromey <[email protected]>
1769
1770 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1771 call common_val_print.
1772 (ada_val_print_1): Update.
1773 (ada_value_print_1): New function.
1774 (ada_value_print_inner): Rewrite.
1775
fbf54e75
TT
17762020-03-13 Tom Tromey <[email protected]>
1777
1778 * cp-valprint.c (cp_print_value_fields): Update.
1779 (cp_print_value): New function.
1780
64b653ca
TT
17812020-03-13 Tom Tromey <[email protected]>
1782
1783 * m2-valprint.c (m2_value_print_inner): Use
1784 cp_print_value_fields.
1785 * cp-valprint.c (cp_print_value_fields): New function.
1786 * c-valprint.c (c_value_print_struct): New function.
1787 (c_value_print_inner): Use c_value_print_struct.
1788 * c-lang.h (cp_print_value_fields): Declare.
1789
6999f067
TT
17902020-03-13 Tom Tromey <[email protected]>
1791
1792 * c-valprint.c (c_value_print_array): New function.
1793 (c_value_print_inner): Use it.
1794
ce80b8bd
TT
17952020-03-13 Tom Tromey <[email protected]>
1796
1797 * c-valprint.c (c_value_print_memberptr): New function.
1798 (c_value_print_inner): Use it.
1799
2faac269
TT
18002020-03-13 Tom Tromey <[email protected]>
1801
1802 * c-valprint.c (c_value_print_int): New function.
1803 (c_value_print_inner): Use it.
1804
da3e2c29
TT
18052020-03-13 Tom Tromey <[email protected]>
1806
1807 * c-valprint.c (c_value_print_ptr): New function.
1808 (c_value_print_inner): Use it.
1809
50836231
TT
18102020-03-13 Tom Tromey <[email protected]>
1811
1812 * c-valprint.c (c_value_print_inner): Rewrite.
1813
4f412b6e
TT
18142020-03-13 Tom Tromey <[email protected]>
1815
1816 * valprint.c (generic_value_print_complex): New function.
1817 (generic_value_print): Use it.
1818
f5354008
TT
18192020-03-13 Tom Tromey <[email protected]>
1820
1821 * valprint.c (generic_val_print_float): Don't call
1822 val_print_scalar_formatted.
1823 (generic_val_print, generic_value_print): Update.
1824
3eec3b05
TT
18252020-03-13 Tom Tromey <[email protected]>
1826
1827 * valprint.c (generic_value_print_char): New function
1828 (generic_value_print): Use it.
1829
fdddfccb
TT
18302020-03-13 Tom Tromey <[email protected]>
1831
1832 * valprint.c (generic_value_print_int): New function.
1833 (generic_value_print): Use it.
1834
6dde7521
TT
18352020-03-13 Tom Tromey <[email protected]>
1836
1837 * valprint.c (generic_value_print_bool): New function.
1838 (generic_value_print): Use it.
1839
4112d2e6
TT
18402020-03-13 Tom Tromey <[email protected]>
1841
1842 * valprint.c (generic_val_print_func): Simplify.
1843 (generic_val_print, generic_value_print): Update.
1844
65786af6
TT
18452020-03-13 Tom Tromey <[email protected]>
1846
1847 * valprint.c (generic_val_print_flags): Remove.
1848 (generic_val_print, generic_value_print): Update.
1849 (val_print_type_code_flags): Add original_value parameter.
1850
40f3ce18
TT
18512020-03-13 Tom Tromey <[email protected]>
1852
1853 * valprint.c (generic_val_print): Update.
1854 (generic_value_print): Update.
1855 * valprint.c (generic_val_print_enum): Don't call
1856 val_print_scalar_formatted.
1857
2a5b130b
TT
18582020-03-13 Tom Tromey <[email protected]>
1859
1860 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1861 * valprint.c (generic_value_print_ptr): New function.
1862
abc66ce9
TT
18632020-03-13 Tom Tromey <[email protected]>
1864
1865 * valprint.c (generic_value_print): Rewrite.
1866
07a32858
TT
18672020-03-13 Tom Tromey <[email protected]>
1868
1869 * p-valprint.c (pascal_object_print_value_fields)
1870 (pascal_object_print_value): New functions.
1871
64d64d3a
TT
18722020-03-13 Tom Tromey <[email protected]>
1873
1874 * p-valprint.c (pascal_value_print_inner): Rewrite.
1875
6a95a1f5
TT
18762020-03-13 Tom Tromey <[email protected]>
1877
1878 * f-valprint.c (f_value_print_innner): Rewrite.
1879
59fcdac6
TT
18802020-03-13 Tom Tromey <[email protected]>
1881
1882 * m2-valprint.c (m2_print_unbounded_array): New overload.
1883 (m2_print_unbounded_array): Update.
1884 (m2_print_array_contents): Take a struct value.
1885 (m2_value_print_inner): Rewrite.
1886
d133c3e1
TT
18872020-03-13 Tom Tromey <[email protected]>
1888
1889 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1890 (d_value_print_inner): New function.
1891 * d-lang.h (d_value_print_inner): Declare.
1892 * d-lang.c (d_language_defn): Use d_value_print_inner.
1893
23b0f06b
TT
18942020-03-13 Tom Tromey <[email protected]>
1895
1896 * go-valprint.c (go_value_print_inner): New function.
1897 * go-lang.h (go_value_print_inner): Declare.
1898 * go-lang.c (go_language_defn): Use go_value_print_inner.
1899
5f56f7cb
TT
19002020-03-13 Tom Tromey <[email protected]>
1901
1902 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1903 API.
1904 (rust_val_print): Rewrite.
1905 (rust_value_print_inner): New function, from rust_val_print.
1906 (rust_language_defn): Use rust_value_print_inner.
1907
26792ee0
TT
19082020-03-13 Tom Tromey <[email protected]>
1909
1910 * ada-valprint.c (ada_value_print_inner): New function.
1911 * ada-lang.h (ada_value_print_inner): Declare.
1912 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1913
24051bbe
TT
19142020-03-13 Tom Tromey <[email protected]>
1915
1916 * f-valprint.c (f_value_print_innner): New function.
1917 * f-lang.h (f_value_print_innner): Declare.
1918 * f-lang.c (f_language_defn): Use f_value_print_innner.
1919
c0941be6
TT
19202020-03-13 Tom Tromey <[email protected]>
1921
1922 * p-valprint.c (pascal_value_print_inner): New function.
1923 * p-lang.h (pascal_value_print_inner): Declare.
1924 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
1925
62c4663d
TT
19262020-03-13 Tom Tromey <[email protected]>
1927
1928 * m2-valprint.c (m2_value_print_inner): New function.
1929 * m2-lang.h (m2_value_print_inner): Declare.
1930 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
1931
62182190
TT
19322020-03-13 Tom Tromey <[email protected]>
1933
1934 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
1935 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
1936 * c-valprint.c (c_value_print_inner): New function.
1937 * c-lang.h (c_value_print_inner): Declare.
1938 * c-lang.c (c_language_defn, cplus_language_defn)
1939 (asm_language_defn, minimal_language_defn): Use
1940 c_value_print_inner.
1941
1e592a8a
TT
19422020-03-13 Tom Tromey <[email protected]>
1943
1944 * p-valprint.c (pascal_object_print_value_fields): Now static.
1945 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1946
7fe471e9
TT
19472020-03-13 Tom Tromey <[email protected]>
1948
1949 * c-valprint.c (c_val_print_array): Simplify.
1950
d121c6ce
TT
19512020-03-13 Tom Tromey <[email protected]>
1952
1953 * valprint.c (value_print_array_elements): New function.
1954 * valprint.h (value_print_array_elements): Declare.
1955
4dba70ee
TT
19562020-03-13 Tom Tromey <[email protected]>
1957
1958 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1959 * mips-tdep.c (mips_print_register): Use
1960 value_print_scalar_formatted.
1961
4f9ae810
TT
19622020-03-13 Tom Tromey <[email protected]>
1963
1964 * valprint.h (value_print_scalar_formatted): Declare.
1965 * valprint.c (value_print_scalar_formatted): New function.
1966
156bfec9
TT
19672020-03-13 Tom Tromey <[email protected]>
1968
1969 * valprint.h (generic_value_print): Declare.
1970 * valprint.c (generic_value_print): New function.
1971
2b4e573d
TT
19722020-03-13 Tom Tromey <[email protected]>
1973
1974 * valprint.c (do_val_print): Call la_value_print_inner, if
1975 available.
1976 * rust-lang.c (rust_language_defn): Update.
1977 * p-lang.c (pascal_language_defn): Update.
1978 * opencl-lang.c (opencl_language_defn): Update.
1979 * objc-lang.c (objc_language_defn): Update.
1980 * m2-lang.c (m2_language_defn): Update.
1981 * language.h (struct language_defn) <la_value_print_inner>: New
1982 member.
1983 * language.c (unknown_language_defn, auto_language_defn): Update.
1984 * go-lang.c (go_language_defn): Update.
1985 * f-lang.c (f_language_defn): Update.
1986 * d-lang.c (d_language_defn): Update.
1987 * c-lang.c (c_language_defn, cplus_language_defn)
1988 (asm_language_defn, minimal_language_defn): Update.
1989 * ada-lang.c (ada_language_defn): Update.
1990
a1f6a07c
TT
19912020-03-13 Tom Tromey <[email protected]>
1992
1993 * c-valprint.c (c_value_print): Use common_val_print.
1994
410cf315
TT
19952020-03-13 Tom Tromey <[email protected]>
1996
1997 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1998
72a45c93
TT
19992020-03-13 Tom Tromey <[email protected]>
2000
2001 * f-valprint.c (f77_print_array_1, f_val_print): Use
2002 common_val_print.
2003
040f66bd
TT
20042020-03-13 Tom Tromey <[email protected]>
2005
2006 * riscv-tdep.c (riscv_print_one_register_info): Use
2007 common_val_print.
2008
a6e05a6c
TT
20092020-03-13 Tom Tromey <[email protected]>
2010
2011 * mi/mi-main.c (output_register): Use common_val_print.
2012
3444c526
TT
20132020-03-13 Tom Tromey <[email protected]>
2014
2015 * infcmd.c (default_print_one_register_info): Use
2016 common_val_print.
2017
c2a44efe
TT
20182020-03-13 Tom Tromey <[email protected]>
2019
2020 * valprint.h (common_val_print_checked): Declare.
2021 * valprint.c (common_val_print_checked): New function.
2022 * stack.c (print_frame_arg): Use common_val_print_checked.
2023
b0c26e99
TT
20242020-03-13 Tom Tromey <[email protected]>
2025
2026 * valprint.c (do_val_print): New function, from val_print.
2027 (val_print): Use do_val_print.
2028 (common_val_print): Use do_val_print.
2029
ce3acbe9
TT
20302020-03-13 Tom Tromey <[email protected]>
2031
2032 * valprint.c (value_print): Use scoped_value_mark.
2033
96c7f873
TV
20342020-03-13 Tom de Vries <[email protected]>
2035
2036 PR symtab/25646
2037 * psymtab.c (partial_symtab::partial_symtab): Don't set
2038 globals_offset and statics_offset. Push element onto
2039 current_global_psymbols and current_static_psymbols stacks.
2040 (concat): New function.
2041 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2042 element from current_global_psymbols and current_static_psymbols
2043 stacks. Concat popped elements to global_psymbols and
2044 static_symbols.
2045 (add_psymbol_to_list): Use current_global_psymbols and
2046 current_static_psymbols stacks.
2047 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2048 current_static_psymbols fields.
2049
6ba0a321
CB
20502020-03-12 Christian Biesinger <[email protected]>
2051
2052 * corelow.c (sniff_core_bfd): Remove.
2053 (class core_target) <m_core_vec>: Remove.
2054 (core_target::core_target): Update.
2055 (core_file_fns): Remove.
2056 (deprecated_add_core_fns): Remove.
2057 (default_core_sniffer): Remove.
2058 (sniff_core_bfd): Remove.
2059 (default_check_format): Remove.
2060 (gdb_check_format): Remove.
2061 (core_target_open): Update.
2062 (core_target::get_core_register_section): Update.
2063 (get_core_registers_cb): Update.
2064 (core_target::fetch_registers): Update.
2065 * gdbcore.h (struct core_fns): Remove.
2066 (deprecated_add_core_fns): Remove.
2067 (default_core_sniffer): Remove.
2068 (default_check_format): Remove.
2069
227031b2
TT
20702020-03-12 Tom Tromey <[email protected]>
2071
2072 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2073 CORE_ADDR.
2074 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2075
53807e9f
TT
20762020-03-12 Tom Tromey <[email protected]>
2077
2078 * remote.c (remote_target::download_tracepoint)
2079 (remote_target::enable_tracepoint)
2080 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2081 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2082 sprintf_vma.
2083
64f25102
TT
20842020-03-12 Tom Tromey <[email protected]>
2085
2086 * symfile-mem.c: Update CORE_ADDR size assert.
2087
272cd5a3
SM
20882020-03-12 Simon Marchi <[email protected]>
2089
2090 * selftest.m4: Move to gdbsupport/.
2091 * acinclude.m4: Update path to selftest.m4.
2092
74cd3f9d
SM
20932020-03-12 Simon Marchi <[email protected]>
2094
2095 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2096 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2097 gdbarch-selfselftests.c and selftest-arch.c.
2098 (SUBDIR_UNITTESTS_OBS): Rename to...
2099 (SELFTESTS_OBS): ... this.
2100 (COMMON_SFILES): Remove disasm-selftests.c and
2101 gdbarch-selftests.c.
2102 * configure.ac: Don't add selftest-arch.{c,o} to
2103 CONFIG_{SRCS,OBS}.
2104 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2105 preprocessor conditions.
2106
db6878ac
SM
21072020-03-12 Simon Marchi <[email protected]>
2108
2109 * configure.ac: Don't source bfd/development.sh.
2110 * selftest.m4: Modify comment.
2111 * configure: Re-generate.
2112
4d696a5c
SM
21132020-03-12 Simon Marchi <[email protected]>
2114
2115 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2116 not "true" or "false".
2117 * configure: Re-generate.
2118
8dd8e1c7
CB
21192020-03-12 Christian Biesinger <[email protected]>
2120
2121 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2122 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2123 renamed to arm_nbsd_supply_gregset.
2124 (fetch_register): Update to call arm_nbsd_supply_gregset.
2125 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2126 (arm_netbsd_nat_target::fetch_registers): Update.
2127 (fetch_elfcore_registers): Removed.
2128 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2129 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2130 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2131 not require NetBSD system headers.
2132 (arm_nbsd_regset): New struct.
2133 (arm_nbsd_iterate_over_regset_sections): New function.
2134 (arm_netbsd_init_abi_common): Updated to call
2135 set_gdbarch_iterate_over_regset_sections.
2136 * arm-nbsd-tdep.h: New file.
2137
dd69bf7a
KB
21382020-03-11 Kevin Buettner <[email protected]>
2139
2140 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2141 recursion.
2142
a0761e34
SM
21432020-03-11 Simon Marchi <[email protected]>
2144
2145 * configure: Re-generate.
2146
e7a82140
TT
21472020-03-11 Tom Tromey <[email protected]>
2148
2149 * ada-typeprint.c (print_choices): Fix comment.
2150
dcc050c8
AB
21512020-03-11 Andrew Burgess <[email protected]>
2152
2153 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2154 previous item in the list, when the list has no items.
2155
1c33af77
TV
21562020-03-11 Tom de Vries <[email protected]>
2157
2158 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2159 PROP_LOCLIST handling code.
2160
8c95582d
AB
21612020-03-10 Andrew Burgess <[email protected]>
2162
2163 * buildsym-legacy.c (record_line): Pass extra parameter to
2164 record_line.
2165 * buildsym.c (buildsym_compunit::record_line): Take an extra
2166 parameter, reduce duplication in the line table, and record the
2167 is_stmt flag in the line table.
2168 * buildsym.h (buildsym_compunit::record_line): Add extra
2169 parameter.
2170 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2171 non-statement lines.
2172 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2173 this to the symtab builder.
2174 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2175 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2176 through to dwarf_record_line_1.
2177 * infrun.c (process_event_stop_test): When stepping, don't stop at
2178 a non-statement instruction, and only refresh the step info when
2179 we land in the middle of a line's range. Also add an extra
2180 comment.
2181 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2182 field.
2183 * record-btrace.c (btrace_find_line_range): Only record lines
2184 marked as is-statement.
2185 * stack.c (frame_show_address): Show the frame address if we are
2186 in a non-statement sal.
2187 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2188 (maintenance_print_one_line_table): Print a header for the is_stmt
2189 column, and include is_stmt information in the output.
2190 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2191 preference to non-statements.
2192 (find_pcs_for_symtab_line): Prefer is-statement entries.
2193 (find_line_common): Likewise.
2194 * symtab.h (struct linetable_entry): Add is_stmt field.
2195 (struct symtab_and_line): Likewise.
2196 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2197 arranging the line table.
2198
e4003a34
TV
21992020-03-07 Tom de Vries <[email protected]>
2200
2201 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2202 DIE.
2203
e8932576
TT
22042020-03-07 Tom Tromey <[email protected]>
2205
2206 * valops.c (value_literal_complex): Remove obsolete comment.
2207 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2208 comment.
2209
29734269
SM
22102020-03-06 Simon Marchi <[email protected]>
2211
2212 * infrun.h: Forward-declare thread_info.
2213 (set_step_info): Add thread_info parameter, add doc.
2214 * infrun.c (set_step_info): Add thread_info parameter, move doc
2215 to header.
2216 * infrun.c (process_event_stop_test): Pass thread to
2217 set_step_info call.
2218 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2219 set_step_info.
2220 (prepare_one_step): Add thread_info parameter, pass it to
2221 set_step_frame and prepare_one_step (recursive) call.
2222 (step_1): Pass thread to prepare_one_step call.
2223 (step_command_fsm::should_stop): Pass thread to
2224 prepare_one_step.
2225 (until_next_fsm): Pass thread to set_step_frame call.
2226 (finish_command): Pass thread to set_step_info call.
2227
b7d64b29
HD
22282020-03-06 Hannes Domani <[email protected]>
2229
2230 * windows-tdep.c (windows_solib_create_inferior_hook):
2231 Check if inferior is running.
2232
09f2921c
TV
22332020-03-06 Tom de Vries <[email protected]>
2234
2235 * NEWS: Fix "the the".
2236 * ctfread.c: Same.
2237
fd760e79
TV
22382020-03-06 Tom de Vries <[email protected]>
2239
2240 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2241
20ea4a60
AB
22422020-03-06 Andrew Burgess <[email protected]>
2243
2244 * .dir-locals.el: Add a comment referencing the other copies of
2245 this file.
2246
0afbabf0
JB
22472020-03-05 John Baldwin <[email protected]>
2248
2249 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2250 psargs.
2251
842806cb
TBA
22522020-03-05 Tankut Baris Aktemur <[email protected]>
2253
2254 * .gitattributes: New file.
2255
be1e3d3e
TT
22562020-03-04 Tom Tromey <[email protected]>
2257
2258 * symmisc.c (print_symbol_bcache_statistics)
2259 (print_objfile_statistics): Update.
2260 * symfile.c (allocate_symtab): Use intern.
2261 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2262 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2263 macro_cache>: Remove.
2264 <string_cache>: New member.
2265 (struct objfile) <intern>: New methods.
2266 * elfread.c (elf_symtab_read): Use intern.
2267 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2268 (dwarf2_compute_name, dwarf2_physname)
2269 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2270 names.
2271 (guess_partial_die_structure_name): Update.
2272 (partial_die_info::fixup): Intern name.
2273 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2274 name.
2275 (dwarf2_name): Intern name. Update.
2276 * buildsym.c (buildsym_compunit::get_macro_table): Use
2277 string_cache.
2278
4e7625fd
TT
22792020-03-04 Tom Tromey <[email protected]>
2280
2281 * jit.c (bfd_open_from_target_memory): Make "target" const.
2282 * corefile.c (gnutarget): Now const.
2283 * gdbcore.h (gnutarget): Now const.
2284
46f9f931
HD
22852020-03-04 Hannes Domani <[email protected]>
2286
2287 * NEWS: Mention support for WOW64 processes.
2288 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2289 (amd64_windows_segment_register_p): Remove static.
2290 (_initialize_amd64_windows_nat): Update.
2291 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2292 * i386-windows-nat.c (context_offset): Update.
2293 (i386_mappings): Rename and remove static.
2294 (i386_windows_segment_register_p): Remove static.
2295 (_initialize_i386_windows_nat): Update.
2296 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2297 (STATUS_WX86_SINGLE_STEP): New macro.
2298 (EnumProcessModulesEx): New macro.
2299 (Wow64SuspendThread): New macro.
2300 (Wow64GetThreadContext): New macro.
2301 (Wow64SetThreadContext): New macro.
2302 (Wow64GetThreadSelectorEntry): New macro.
2303 (windows_set_context_register_offsets): Add static.
2304 (windows_set_segment_register_p): Likewise.
2305 (windows_add_thread): Adapt for WOW64 processes.
2306 (windows_fetch_one_register): Likewise.
2307 (windows_nat_target::fetch_registers): Likewise.
2308 (windows_store_one_register): Likewise.
2309 (display_selector): Likewise.
2310 (display_selectors): Likewise.
2311 (handle_exception): Likewise.
2312 (windows_continue): Likewise.
2313 (windows_nat_target::resume): Likewise.
2314 (windows_add_all_dlls): Likewise.
2315 (do_initial_windows_stuff): Likewise.
2316 (windows_nat_target::attach): Likewise.
2317 (windows_get_exec_module_filename): Likewise.
2318 (windows_nat_target::create_inferior): Likewise.
2319 (windows_xfer_siginfo): Likewise.
2320 (_initialize_loadable): Initialize Wow64SuspendThread,
2321 Wow64GetThreadContext, Wow64SetThreadContext,
2322 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
2323 * windows-nat.h (windows_set_context_register_offsets):
2324 Remove declaration.
2325 (windows_set_segment_register_p): Likewise.
2326 (i386_windows_segment_register_p): Add declaration.
2327 (amd64_windows_segment_register_p): Likewise.
2328
440cf44e
LM
23292020-03-04 Luis Machado <[email protected]>
2330
2331 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
2332 in "info registers" for AArch64/ARM.
2333
2334 The change caused "info registers" to not print GPR's.
2335
2336 gdb/ChangeLog:
2337
2338 2020-02-01 Shahab Vahedi <[email protected]>
2339
2340 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2341 when reg->group is empty and reggroup is not.
2342
1009d92f
TT
23432020-03-03 Tom Tromey <[email protected]>
2344
2345 * dwarf2/frame.c (struct dwarf2_frame_cache)
2346 <checked_tailcall_bottom, entry_cfa_sp_offset,
2347 entry_cfa_sp_offset_p>: Remove members.
2348 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
2349 (dwarf2_frame_prev_register): Don't call
2350 dwarf2_tailcall_sniffer_first.
2351 (dwarf2_append_unwinders): Don't append tailcall unwinder.
2352 * frame-unwind.c (add_unwinder): New fuction.
2353 (frame_unwind_init): Use it. Add tailcall unwinder.
2354
5e5d66b6
AB
23552020-03-03 Andrew Burgess <[email protected]>
2356 Alok Kumar Sharma <[email protected]>
2357
2358 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
2359 value should be printed as true.
2360
584cf46d
HD
23612020-03-03 Hannes Domani <[email protected]>
2362
2363 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
2364 (windows_init_abi): Set and use windows_so_ops.
2365
7b973adc
SDJ
23662020-03-03 Sergio Durigan Junior <[email protected]>
2367
2368 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
2369 when verifying if dealing with a convenience variable.
2370
bb7b70ab
LM
23712020-03-03 Luis Machado <[email protected]>
2372
2373 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
2374
9822cb57
SM
23752020-03-02 Simon Marchi <[email protected]>
2376
2377 * infrun.c (gdbarch_supports_displaced_stepping): New.
2378 (use_displaced_stepping): Break up conditions in smaller pieces.
2379 Use gdbarch_supports_displaced_stepping.
2380 (displaced_step_prepare_throw): Use
2381 gdbarch_supports_displaced_stepping.
2382
63e163f2
AB
23832020-03-02 Andrew Burgess <[email protected]>
2384
2385 * NEWS: Mention new behaviour of the history filename.
2386 * top.c (write_history_p): Add comment.
2387 (show_write_history_p): Add header comment, give a different
2388 message when history writing is on, but the history filename is
2389 empty.
2390 (history_filename): Add comment.
2391 (history_filename_empty): New function.
2392 (show_history_filename): Add header comment, give a different
2393 message when the filename is empty.
2394 (init_history): Compare history_filename against nullptr, and only
2395 read history if the filename is not empty.
2396 (set_history_filename): Add header comment, and only make
2397 non-empty filenames absolute.
2398 (init_main): Make the filename argument to 'set history filename'
2399 optional.
2400
81b86b97
CB
24012020-03-02 Christian Biesinger <[email protected]>
2402
2403 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
2404 (arm_supply_vfpregset): ...this, and update to use VFP registers.
2405 (fetch_fp_register): Update.
2406 (fetch_fp_regs): Update.
2407 (store_fp_register): Update.
2408 (store_fp_regs): Update.
2409 (arm_netbsd_nat_target::read_description): New function.
2410 (fetch_elfcore_registers): Update.
2411
24ed6739
AB
24122020-03-02 Andrew Burgess <[email protected]>
2413
2414 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
2415 general_thread if the stop reply is missing a thread-id.
2416 (remote_target::process_stop_reply): Use the first non-exited
2417 thread if the target didn't pass a thread-id.
2418 * infrun.c (do_target_wait): Move call to
2419 switch_to_inferior_no_thread to ....
2420 (do_target_wait_1): ... here.
2421
a84bb2a0
JT
24222020-02-29 Jon Turney <[email protected]>
2423
2424 * debuginfod-support.c: Include defs.h first.
2425
658dadf0
TV
24262020-02-28 Tom de Vries <[email protected]>
2427
2428 * symfile.c (set_initial_language): Use default language for lookup.
2429
4ebe4877
SM
24302020-02-28 Simon Marchi <[email protected]>
2431
2432 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
2433 reader variable, pass `this` to read_cutu_die_from_dwo.
2434
e5da1139
AM
24352020-02-27 Aaron Merey <[email protected]>
2436
2437 * source.c (open_source_file): Check for nullptr when computing
2438 srcpath.
2439
317f7127
TT
24402020-02-27 Tom Tromey <[email protected]>
2441
2442 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
2443 member.
2444 (dwarf2_add_field): Don't update nfields.
2445 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
2446
3104d9ee
AB
24472020-02-27 Andrew Burgess <[email protected]>
2448
2449 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
2450 abs.
2451
b83470bf
TT
24522020-02-26 Tom Tromey <[email protected]>
2453
2454 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
2455 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
2456 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
2457 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
2458 per_cu_data.
2459
edfe0a0c
TT
24602020-02-26 Tom Tromey <[email protected]>
2461
2462 * dwarf2/index-write.c (psym_index_map): Change type.
2463 (add_address_entry_worker, write_one_signatured_type)
2464 (recursively_count_psymbols, recursively_write_psymbols)
2465 (class debug_names, psyms_seen_size, write_gdbindex)
2466 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
2467
0d79cdc4
AM
24682020-02-26 Aaron Merey <[email protected]>
2469
2470 * Makefile.in: Handle optional debuginfod support.
2471 * NEWS: Update.
2472 * README: Add --with-debuginfod summary.
2473 * config.in: Regenerate.
2474 * configure: Regenerate.
2475 * configure.ac: Handle optional debuginfod support.
2476 * debuginfod-support.c: debuginfod helper functions.
2477 * debuginfod-support.h: Ditto.
2478 * doc/gdb.texinfo: Add --with-debuginfod to configure options
2479 summary.
2480 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
2481 when a dwz file cannot be found.
2482 * elfread.c (elf_symfile_read): Query debuginfod servers when a
2483 debuginfo file cannot be found.
2484 * source.c (open_source_file): Query debuginfod servers when a
2485 source file cannot be found.
2486 * top.c (print_gdb_configuration): Include
2487 --{with,without}-debuginfod in the output.
2488
b65ce565
JG
24892020-02-26 Jérémie Galarneau <[email protected]>
2490
2491 * thread.c (thr_try_catch_cmd): Print thread name.
2492
d4c9a4f8
SM
24932020-02-26 Simon Marchi <[email protected]>
2494
2495 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
2496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2497 dwarf2_fetch_die_type_sect_off): Move to...
2498 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2499 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2500 dwarf2_fetch_die_type_sect_off): ... here.
2501 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2502 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2503 dwarf2_fetch_die_type_sect_off): Move doc to header file.
2504
0dce4280
TV
25052020-02-26 Tom de Vries <[email protected]>
2506
2507 PR gdb/25603
2508 * symfile.c (set_initial_language): Exit-early if
2509 language_mode == language_mode_manual.
2510
450a1bfc
SM
25112020-02-25 Simon Marchi <[email protected]>
2512
2513 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
2514 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
2515 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
2516
9e80cfa1
AB
25172020-02-25 Andrew Burgess <[email protected]>
2518
2519 * gdbtypes.c (create_array_type_with_stride): Handle negative
2520 array strides.
2521 * valarith.c (value_subscripted_rvalue): Likewise.
2522
09624f1f
LM
25232020-02-25 Luis Machado <[email protected]>
2524
2525 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
2526
8cb5117c
SM
25272020-02-25 Simon Marchi <[email protected]>
2528
2529 * loc.h (dwarf2_get_die_type): Move to...
2530 * read.h (dwarf2_get_die_type): ... here.
2531 * read.c (dwarf2_get_die_type): Move doc to header.
2532
c325c44e
JB
25332020-02-25 Joel Brobecker <[email protected]>
2534
2535 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
2536 'gnulib/Makefile.in' to the list.
2537
4ac93832
TT
25382020-02-24 Tom Tromey <[email protected]>
2539
2540 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
2541 Remove.
2542 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
2543 XOBNEWVEC.
2544
197400e8
TT
25452020-02-24 Tom Tromey <[email protected]>
2546
2547 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
2548 New method.
2549 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
2550 (dw2_do_instantiate_symtab, dw2_get_file_names)
2551 (build_type_psymtab_dependencies, load_full_type_unit): Update.
2552
76935768
TT
25532020-02-24 Tom Tromey <[email protected]>
2554
2555 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
2556 make_scoped_restore.
2557 (dwarf2_psymtab::read_symtab): Don't clear
2558 reading_partial_symbols.
2559
a88ef40d
TV
25602020-02-24 Tom de Vries <[email protected]>
2561
2562 PR gdb/25592
2563 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
2564
c9af6521
TV
25652020-02-24 Tom de Vries <[email protected]>
2566
2567 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
2568 commands layout next/prev/regs.
2569
5707a07a
TT
25702020-02-22 Tom Tromey <[email protected]>
2571
2572 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
2573 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
2574
3b0fb49e
TT
25752020-02-22 Tom Tromey <[email protected]>
2576
2577 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
2578
283be8bf
TT
25792020-02-22 Tom Tromey <[email protected]>
2580
2581 * tui/tui-win.c (_initialize_tui_win): Add usage text.
2582 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
2583 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
2584 * tui/tui.c (_initialize_tui): Add usage text.
2585
ca793b96
TT
25862020-02-22 Tom Tromey <[email protected]>
2587
2588 * tui/tui-win.c (tui_set_focus_command)
2589 (tui_set_win_height_command): Use error_no_arg.
2590 (_initialize_tui_win): Update help text.
2591 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
2592
432b5c40
TT
25932020-02-22 Tom Tromey <[email protected]>
2594
2595 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
2596 * tui/tui-disasm.h (struct tui_disasm_window)
2597 <display_start_addr>: Declare.
2598 * tui/tui-source.h (struct tui_source_window)
2599 <display_start_addr>: Declare.
2600 * tui/tui-winsource.h (struct tui_source_window_base)
2601 <show_source_line, display_start_addr>: New methods.
2602 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
2603 Rename and move to protected section.
2604 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
2605 (tui_source_window_base::do_erase_source_content): Update.
2606 (tui_source_window_base::show_source_line): Now a method.
2607 (tui_source_window_base::show_source_content)
2608 (tui_source_window_base::tui_source_window_base)
2609 (tui_source_window_base::rerender)
2610 (tui_source_window_base::refill)
2611 (tui_source_window_base::do_scroll_horizontal)
2612 (tui_source_window_base::set_is_exec_point_at)
2613 (tui_source_window_base::update_breakpoint_info)
2614 (tui_source_window_base::update_exec_info): Update.
2615 * tui/tui-source.c (tui_source_window::set_contents)
2616 (tui_source_window::showing_source_p)
2617 (tui_source_window::do_scroll_vertical)
2618 (tui_source_window::location_matches_p)
2619 (tui_source_window::line_is_displayed): Update.
2620 (tui_source_window::display_start_addr): New method.
2621 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2622 (tui_disasm_window::do_scroll_vertical)
2623 (tui_disasm_window::location_matches_p): Update.
2624 (tui_disasm_window::display_start_addr): New method.
2625
01b1af32
TT
26262020-02-22 Tom Tromey <[email protected]>
2627
2628 * NEWS: Add entry for gdb.register_window_type.
2629 * tui/tui-layout.h (window_factory): New typedef.
2630 (tui_register_window): Declare.
2631 * tui/tui-layout.c (saved_tui_windows): New global.
2632 (tui_apply_current_layout): Use it.
2633 (tui_register_window): New function.
2634 * python/python.c (do_start_initialization): Call
2635 gdbpy_initialize_tui.
2636 (python_GdbMethods): Add "register_window_type" function.
2637 * python/python-internal.h (gdbpy_register_tui_window)
2638 (gdbpy_initialize_tui): Declare.
2639 * python/py-tui.c: New file.
2640 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2641
fc96d20b
TT
26422020-02-22 Tom Tromey <[email protected]>
2643
2644 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2645
935c78c0
TT
26462020-02-22 Tom Tromey <[email protected]>
2647
2648 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2649 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2650 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2651 (tui_set_win_focus_to): Move from tui-win.c.
2652
0240c8f1
TT
26532020-02-22 Tom Tromey <[email protected]>
2654
2655 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2656 functions.
2657 (known_window_types): New global.
2658 (tui_get_window_by_name): Reimplement.
2659 (initialize_known_windows): New function.
2660 (validate_window_name): Rewrite.
2661 (_initialize_tui_layout): Call initialize_known_windows.
2662
fdb01f0c
TT
26632020-02-22 Tom Tromey <[email protected]>
2664
2665 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2666 Remove constants.
2667 * tui/tui-winsource.h (struct tui_source_window_base)
2668 <tui_source_window_base>: Remove parameter.
2669 * tui/tui-winsource.c
2670 (tui_source_window_base::tui_source_window_base): Remove
2671 parameter.
2672 (tui_source_window_base::refill): Update.
2673 * tui/tui-stack.h (struct tui_locator_window)
2674 <tui_locator_window>: Update.
2675 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2676 Default the constructor.
2677 * tui/tui-regs.h (struct tui_data_item_window)
2678 <tui_data_item_window>: Default the constructor.
2679 (struct tui_data_window) <tui_data_window>: Likewise.
2680 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
2681 Default the constructor.
2682 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
2683 Default the constructor.
2684 <type>: Remove.
2685 (struct tui_win_info) <tui_win_info>: Default the constructor.
2686 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
2687 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2688 Default the constructor.
2689
865a5aec
TT
26902020-02-22 Tom Tromey <[email protected]>
2691
2692 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
2693 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
2694 * tui/tui-win.c (tui_resize_all): Don't call
2695 tui_delete_invisible_windows.
2696 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
2697 done.
2698 (tui_set_layout): Update.
2699 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
2700 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
2701 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
2702
e098d18c
TT
27032020-02-22 Tom Tromey <[email protected]>
2704
2705 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
2706 correctly.
2707
eb9c8874
TT
27082020-02-22 Tom Tromey <[email protected]>
2709
2710 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
2711
7eed1a8e
TT
27122020-02-22 Tom Tromey <[email protected]>
2713
2714 * tui/tui-winsource.h (struct tui_source_window_iterator)
2715 <inner_iterator>: New etytypedef.
2716 <tui_source_window_iterator>: Take "end" parameter.
2717 <tui_source_window_iterator>: Take iterator.
2718 <operator*, advance>: Update.
2719 <m_iter>: Change type.
2720 <m_end>: New field.
2721 (struct tui_source_windows) <begin, end>: Update.
2722 * tui/tui-layout.c (tui_windows): New global.
2723 (tui_apply_current_layout): Clear tui_windows.
2724 (tui_layout_window::apply): Update tui_windows.
2725 * tui/tui-data.h (tui_windows): Declare.
2726 (all_tui_windows): Now inline function.
2727 (class tui_window_iterator, struct all_tui_windows): Remove.
2728
7c043ba6
TT
27292020-02-22 Tom Tromey <[email protected]>
2730
2731 PR tui/17850:
2732 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
2733 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
2734 "height" argument.
2735 (class tui_layout_window) <get_sizes>: Likewise.
2736 (class tui_layout_split) <tui_layout_split>: Add "vertical"
2737 argument.
2738 <get_sizes>: Add "height" argument.
2739 <m_vertical>: New field.
2740 * tui/tui-layout.c (tui_layout_split::clone): Update.
2741 (tui_layout_split::get_sizes): Add "height" argument.
2742 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
2743 (tui_new_layout_command): Parse "-horizontal".
2744 (_initialize_tui_layout): Update help string.
2745 (tui_layout_split::specification): Add "-horizontal" when needed.
2746 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
2747 argument.
2748 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
2749 New methods.
2750
6bc56648
TT
27512020-02-22 Tom Tromey <[email protected]>
2752
2753 * tui/tui-layout.h (enum tui_adjust_result): New.
2754 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
2755 (class tui_layout_window) <adjust_size>: Return
2756 tui_adjust_result. Rewrite.
2757 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
2758 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
2759
c22fef7e
TT
27602020-02-22 Tom Tromey <[email protected]>
2761
2762 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
2763 parameter and return types.
2764 (class tui_layout_base) <specification>: Add "depth".
2765 (class tui_layout_window) <specification>: Add "depth".
2766 (class tui_layout_split) <specification>: Add "depth".
2767 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2768 and return types.
2769 (tui_new_layout_command): Parse sub-layouts.
2770 (_initialize_tui_layout): Update help string.
2771 (tui_layout_window::specification): Add "depth".
2772 (add_layout_command): Update.
2773
ee325b61
TT
27742020-02-22 Tom Tromey <[email protected]>
2775
2776 * NEWS: Add "tui new-layout" item.
2777 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2778 Add new-layout command to help text.
2779 (validate_window_name): New function.
2780 (tui_new_layout_command): New function.
2781 (_initialize_tui_layout): Register "new-layout".
2782 (tui_layout_window::specification): New method.
2783 (tui_layout_window::specification): New method.
2784 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2785 method.
2786 (class tui_layout_window) <specification>: New method.
2787 (class tui_layout_split) <specification>: New method.
2788
416eb92d
TT
27892020-02-22 Tom Tromey <[email protected]>
2790
2791 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2792 * tui/tui-win.c (window_name_completer): Update comment.
2793 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2794 Declare method.
2795 (class tui_layout_window) <replace_window>: Likewise.
2796 (class tui_layout_split) <replace_window>: Likewise.
2797 (tui_set_layout): Don't declare.
2798 (tui_set_initial_layout): Declare function.
2799 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2800 (asm_regs_layout): New globals.
2801 (tui_current_layout, show_layout): Remove.
2802 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2803 (find_layout, tui_apply_layout): New function.
2804 (layout_completer): Remove.
2805 (tui_next_layout): Reimplement.
2806 (tui_next_layout_command): New function.
2807 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2808 (tui_regs_layout): Reimplement.
2809 (tui_regs_layout_command): New function.
2810 (extract_display_start_addr): Rewrite.
2811 (next_layout, prev_layout): Remove.
2812 (tui_layout_window::replace_window): New method.
2813 (tui_layout_split::replace_window): New method.
2814 (destroy_layout): New function.
2815 (layout_list): New global.
2816 (add_layout_command): New function.
2817 (initialize_layouts): Update.
2818 (tui_layout_command): New function.
2819 (_initialize_tui_layout): Install "layout" commands.
2820 * tui/tui-data.h (enum tui_layout_type): Remove.
2821 (tui_current_layout): Don't declare.
2822
0dbc2fc7
TT
28232020-02-22 Tom Tromey <[email protected]>
2824
2825 * tui/tui-regs.c (tui_reg_layout): Remove.
2826 (tui_reg_command): Use tui_regs_layout.
2827 * tui/tui-layout.h (tui_reg_command): Declare.
2828 * tui/tui-layout.c (tui_reg_command): New function.
2829
5afe342e
TT
28302020-02-22 Tom Tromey <[email protected]>
2831
2832 * tui/tui.c (tui_rl_delete_other_windows): Call
2833 tui_remove_some_windows.
2834 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2835 Declare method.
2836 (class tui_layout_window) <remove_windows>: New method.
2837 (class tui_layout_split) <remove_windows>: Declare.
2838 (tui_remove_some_windows): Declare.
2839 * tui/tui-layout.c (tui_remove_some_windows): New function.
2840 (tui_layout_split::remove_windows): New method.
2841
427326a8
TT
28422020-02-22 Tom Tromey <[email protected]>
2843
2844 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2845 * tui/tui-layout.h (tui_next_layout): Declare.
2846 * tui/tui-layout.c (tui_next_layout): New function.
2847
3fe12b6d
TT
28482020-02-22 Tom Tromey <[email protected]>
2849
2850 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2851 correct coordinates.
2852
59b8b5d2
TT
28532020-02-22 Tom Tromey <[email protected]>
2854
2855 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2856 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2857 DATA_WIN case.
2858
2a3d458b
TT
28592020-02-22 Tom Tromey <[email protected]>
2860
2861 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2862 TUI_DISASM_WIN, not tui_win_list.
2863
3f0cbb04
TT
28642020-02-22 Tom Tromey <[email protected]>
2865
2866 * valprint.c (generic_val_print_enum_1)
2867 (val_print_type_code_flags): Style member names.
2868 * rust-lang.c (val_print_struct, rust_print_enum)
2869 (rust_print_struct_def, rust_internal_print_type): Style member
2870 names.
2871 * p-valprint.c (pascal_object_print_value_fields): Style member
2872 names. Only call fprintf_symbol_filtered for static members.
2873 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2874 * f-valprint.c (f_val_print): Style member names.
2875 * f-typeprint.c (f_type_print_base): Style member names.
2876 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2877 call fprintf_symbol_filtered for static members.
2878 (cp_print_class_member): Style member names.
2879 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2880 member names.
2881 * ada-valprint.c (ada_print_scalar): Style enum names.
2882 (ada_val_print_enum): Likewise.
2883 * ada-typeprint.c (print_enum_type): Style enum names.
2884
d4d947ae
TT
28852020-02-21 Tom Tromey <[email protected]>
2886
2887 * psympriv.h (struct partial_symtab): Update comment.
2888
e94e944b
TT
28892020-02-21 Tom Tromey <[email protected]>
2890
2891 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2892 type is CORE_ADDR.
2893
1eb73179
TV
28942020-02-21 Tom de Vries <[email protected]>
2895
2896 PR gdb/25534
2897 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2898 if dependencies[i]->user != NULL.
2899
4f180d53
AT
29002020-02-21 Ali Tamur <[email protected]>
2901
2902 * dwarf2/read.c (dwarf2_name): Add null check.
2903
22b6cd70
TT
29042020-02-20 Tom Tromey <[email protected]>
2905
2906 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2907 ">=", in binary search.
2908 (dwarf2_find_containing_comp_unit): New overload.
2909 (run_test): New self-test.
2910 (_initialize_dwarf2_read): Register new test.
2911
bd0cf5a6
NC
29122020-02-20 Nelson Chu <[email protected]>
2913
2914 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2915 * riscv-tdep.h: Likewise.
2916 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2917 rv32-only CSR.
2918 * features/riscv/64bit-csr.xml: Regenerated.
2919
3f702acd
SDJ
29202020-02-20 Sergio Durigan Junior <[email protected]>
2921 Tom Tromey <[email protected]>
2922
2923 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
2924 of 'fputc_unfiltered'.
2925 (putchar_unfiltered): Call 'fputc_unfiltered'.
2926 (fputc_unfiltered): Call 'fputs_unfiltered'.
2927
d13c7322
AB
29282020-02-20 Andrew Burgess <[email protected]>
2929
2930 * config.in: Regenerate.
2931 * configure: Regenerate.
2932 * configure.ac: Add --with-python-libdir option.
2933 * main.c: Use WITH_PYTHON_LIBDIR.
2934
869d8950
TT
29352020-02-19 Tom Tromey <[email protected]>
2936
2937 * symtab.c (general_symbol_info::compute_and_set_names): Use
2938 obstack_strndup. Simplify call to symbol_set_demangled_name.
2939
298e9637
SM
29402020-02-19 Simon Marchi <[email protected]>
2941
2942 * dwarf2/read.c (allocate_signatured_type_table,
2943 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2944 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2945 Remove objfile parameter, update all callers.
2946
08410482
DE
29472020-02-19 Doug Evans <[email protected]>
2948
2949 PR rust/25535
2950 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2951 rust_enum_variant calculation.
2952
dfdeeca1
TT
29532020-02-19 Tom Tromey <[email protected]>
2954
2955 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2956
2ef5453b
TT
29572020-02-19 Tom Tromey <[email protected]>
2958
2959 * ada-lang.c (cache_symbol): Use obstack_strdup.
2960
9f1528a1
AB
29612020-02-19 Andrew Burgess <[email protected]>
2962
2963 * configure: Regenerate.
2964
d3c22fa8
TT
29652020-02-19 Tom Tromey <[email protected]>
2966
2967 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2968 NULL check.
2969
bf84f706
MR
29702020-02-19 Maciej W. Rozycki <[email protected]>
2971
2972 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2973
d1c9b20f
AB
29742020-02-19 Andrew Burgess <[email protected]>
2975
2976 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2977 if GDBSERVER is not defined.
2978 (riscv_tdesc_cache): Likewise, also store const target_desc.
2979 (STATIC_IN_GDB): Define.
2980 (riscv_create_target_description): Update declaration with
2981 STATIC_IN_GDB.
2982 (riscv_lookup_target_description): New function, only define if
2983 GDBSERVER is not defined.
2984 * arch/riscv.h (riscv_create_target_description): Declare only
2985 when GDBSERVER is defined.
2986 (riscv_lookup_target_description): New declaration when GDBSERVER
2987 is not defined.
2988 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2989 (riscv_linux_read_features): ...this, and return
2990 riscv_gdbarch_features instead of target_desc.
2991 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2992 (riscv_linux_read_description): Rename to...
2993 (riscv_linux_read_features): ...this.
2994 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2995 Update to use riscv_gdbarch_features and
2996 riscv_lookup_target_description.
2997 * riscv-tdep.c (riscv_find_default_target_description): Use
2998 riscv_lookup_target_description instead of
2999 riscv_create_target_description.
3000
373d7ac0
SM
30012020-02-18 Simon Marchi <[email protected]>
3002
3003 * valprint.c (generic_val_print_enum_1): When printing a flag
3004 enum with value 0 and there is no enumerator with value 0, print
3005 just "0" instead of "(unknown: 0x0)".
3006
b29a2df0
SM
30072020-02-18 Simon Marchi <[email protected]>
3008
3009 * valprint.c (generic_val_print_enum_1): Print unknown part of
3010 flag enum in hex.
3011
6740f0cc
SM
30122020-02-18 Simon Marchi <[email protected]>
3013
3014 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3015 flag enums to contain duplicate enumerators.
3016 * valprint.c (generic_val_print_enum_1): Update comment.
3017
edd45eb0
SM
30182020-02-18 Simon Marchi <[email protected]>
3019
3020 * dwarf2/read.c: Include "count-one-bits.h".
3021 (update_enumeration_type_from_children): If an enumerator has
3022 multiple bits set, don't treat the enumeration as a "flag enum".
3023 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3024 of flag enums have 0 or 1 bit set.
3025
6d0cf446
BE
30262020-02-18 Bernd Edlinger <[email protected]>
3027
3028 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3029 conversion.
3030 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3031 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3032 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3033 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3034 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3035
7001c1b7
SM
30362020-02-18 Simon Marchi <[email protected]>
3037
3038 * MAINTAINERS: Change [email protected] to [email protected].
3039
fdb61c6c
SM
30402020-02-14 Simon Marchi <[email protected]>
3041
3042 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3043 displaced_step_closure_up.
3044 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3045 (struct displaced_step_closure_up):
3046 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3047 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3048 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3049 Likewise.
3050 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3051 * gdbarch.c, gdbarch.h: Re-generate.
3052 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3053 displaced_step_closure_up.
3054 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3055 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3056 * infrun.h (displaced_step_closure_up): New type alias.
3057 (struct displaced_step_inferior_state) <step_closure>: Change
3058 type to displaced_step_closure_up.
3059 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3060 displaced_step_closure_up.
3061 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3062
a4a38eb4
TT
30632020-02-14 Tom Tromey <[email protected]>
3064
3065 * minidebug.c (gnu_debug_key): New global.
3066 (find_separate_debug_file_in_section): Use it.
3067
e8217e61
SM
30682020-02-14 Simon Marchi <[email protected]>
3069
3070 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3071 std::unique_ptr.
3072 * gdbarch.c: Re-generate.
3073 * gdbarch.h: Re-generate.
3074 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3075 change.
3076 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3077 type to std::unique_ptr.
3078 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3079 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3080 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3081 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3082 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3083 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3084 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3085 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3086 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3087
d8d83535
SM
30882020-02-14 Simon Marchi <[email protected]>
3089
3090 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3091 std::unique_ptr.
3092 (displaced_step_clear): Rename to...
3093 (displaced_step_reset): ... this. Just call displaced->reset ().
3094 (displaced_step_clear_cleanup): Rename to...
3095 (displaced_step_reset_cleanup): ... this.
3096 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3097 (displaced_step_fixup): Likewise.
3098 (resume_1): Likewise.
3099 (handle_inferior_event): Restore child's memory before calling
3100 displaced_step_fixup on the parent.
3101 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3102 to std::unique_ptr.
3103 <step_closure>: Change type to std::unique_ptr.
3104
5f661e03
SM
31052020-02-14 Simon Marchi <[email protected]>
3106
3107 * arm-tdep.c: Include count-one-bits.h.
3108 (cleanup_block_store_pc): Use count_one_bits.
3109 (cleanup_block_load_pc): Use count_one_bits.
3110 (arm_copy_block_xfer): Use count_one_bits.
3111 (thumb2_copy_block_xfer): Use count_one_bits.
3112 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3113 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3114 (thumb_get_next_pcs_raw): Use count_one_bits.
3115 (arm_get_next_pcs_raw): Use count_one_bits_l.
3116 * arch/arm.c (bitcount): Remove.
3117 * arch/arm.h (bitcount): Remove.
3118
8084e579
TT
31192020-02-14 Tom Tromey <[email protected]>
3120
3121 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3122 Update.
3123 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3124 * dwarf2/loc.c (call_site_find_chain_1): Return
3125 unique_xmalloc_ptr.
3126 (call_site_find_chain): Likewise.
3127
258bf0ee
RB
31282020-02-14 Richard Biener <[email protected]>
3129
3130 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3131 on expression with division operators.
3132
f98a8458
AKS
31332020-02-13 Alok Kumar Sharma <[email protected]>
3134
3135 * MAINTAINERS (Write After Approval): Adding myself.
3136
d1437c0e
TT
31372020-02-12 Tom Tromey <[email protected]>
3138
3139 * event-loop.c (event_data, gdb_event, event_handler_func):
3140 Remove.
3141
3d4560f7
TT
31422020-02-12 Tom Tromey <[email protected]>
3143
3144 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3145 (dwarf2_frame_objfile_data): Add comment.
3146 (find_comp_unit, set_comp_unit): New functions.
3147 (dwarf2_frame_find_fde): Use find_comp_unit.
3148 (dwarf2_build_frame_info): Use set_comp_unit.
3149
21982304
TT
31502020-02-12 Tom Tromey <[email protected]>
3151
3152 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3153 (comp_unit): Don't initialize objfile.
3154 (execute_cfa_program): Add text_offset parameter.
3155 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3156 (dwarf2_frame_cache): Update.
3157 (dwarf2_build_frame_info): Don't set "objfile" member.
3158
4debb237
TT
31592020-02-12 Tom Tromey <[email protected]>
3160
3161 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3162 (decode_frame_entry): Likewise.
3163 (dwarf2_build_frame_info): Update.
3164
0d404d44
TT
31652020-02-12 Tom Tromey <[email protected]>
3166
3167 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3168 (decode_frame_entry_1): Use the comp_unit obstack.
3169
a7a3ae5c
TT
31702020-02-12 Tom Tromey <[email protected]>
3171
3172 * dwarf2/frame.c (struct comp_unit): Add initializers and
3173 constructor.
3174 (dwarf2_frame_objfile_data): Store a comp_unit.
3175 (dwarf2_frame_find_fde): Update.
3176 (dwarf2_build_frame_info): Use "new".
3177
a9d65418
TT
31782020-02-12 Tom Tromey <[email protected]>
3179
3180 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3181 (dwarf2_fde_table): Typedef for std::vector.
3182 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3183 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3184 (decode_frame_entry): Update.
3185 (dwarf2_build_frame_info): Use "new".
3186
7559c217
CB
31872020-02-12 Christian Biesinger <[email protected]>
3188
3189 * arm-tdep.c (arm_gdbarch_init): Update.
3190 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3191 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3192 have_neon, is_m>: Change to bool.
3193
aeefc73c
CB
31942020-02-12 Christian Biesinger <[email protected]>
3195
3196 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3197
d27b8e5f
TT
31982020-02-12 Tom Tromey <[email protected]>
3199
3200 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3201
cd5900f3
HD
32022020-02-12 Hannes Domani <[email protected]>
3203
3204 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3205 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3206
f056b22b
TT
32072020-02-11 Tom Tromey <[email protected]>
3208
3209 * psymtab.h: Update comment.
3210
f92ff6b5
TT
32112020-02-11 Tom Tromey <[email protected]>
3212
3213 * gdb_obstack.h (struct auto_obstack): Use
3214 DISABLE_COPY_AND_ASSIGN.
3215
3fd6912b
TT
32162020-02-11 Tom Tromey <[email protected]>
3217
3218 * dwarf2/frame.h (struct objfile): Don't forward declare.
3219
69ed9b74
CB
32202020-02-11 Christian Biesinger <[email protected]>
3221
3222 * cris-tdep.c (cris_supply_gregset): Change signature to match
3223 what struct regset expects.
3224 (cris_regset): New struct.
3225 (fetch_core_registers): Remove.
3226 (cris_iterate_over_regset_sections): New function.
3227 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3228 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3229
bda874f6
CB
32302020-02-11 Christian Biesinger <[email protected]>
3231
3232 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3233 registers.
3234
754e1564
CB
32352020-02-11 Christian Biesinger <[email protected]>
3236
3237 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3238
8ddd8e0e
SM
32392020-02-11 Simon Marchi <[email protected]>
3240
3241 * configure: Re-generate.
3242
898e7f60
SM
32432020-02-11 Simon Marchi <[email protected]>
3244
3245 * configure: Re-generate.
3246
58df732b
SM
32472020-02-11 Simon Marchi <[email protected]>
3248
3249 * acinclude: Update warning.m4 path.
3250 * warning.m4: Move to gdbsupport.
3251
da5bd37e
TT
32522020-02-11 Tom Tromey <[email protected]>
3253
3254 * remote.c (remote_console_output): Update.
3255 * printcmd.c (printf_command): Update.
3256 * event-loop.c (gdb_wait_for_event): Update.
3257 * linux-nat.c (sigchld_handler): Update.
3258 * remote-sim.c (gdb_os_write_stdout): Update.
3259 (gdb_os_flush_stdout): Update.
3260 (gdb_os_flush_stderr): Update.
3261 (gdb_os_write_stderr): Update.
3262 * exceptions.c (print_exception): Update.
3263 * remote-fileio.c (remote_fileio_func_read): Update.
3264 (remote_fileio_func_write): Update.
3265 * tui/tui.c (tui_enable): Update.
3266 * tui/tui-interp.c (tui_interp::init): Update.
3267 * utils.c (init_page_info): Update.
3268 (putchar_unfiltered, fputc_unfiltered): Update.
3269 (gdb_flush): Update.
3270 (emit_style_escape): Update.
3271 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3272 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3273 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3274 (stderr_file::write): Update.
3275 (stderr_file::puts): Update.
3276 * ui-file.h (ui_file_isatty, ui_file_write)
3277 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3278 (ui_file_puts): Don't declare.
3279
85f0dd3c
TV
32802020-02-10 Tom de Vries <[email protected]>
3281
3282 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3283 sentinel to char *.
3284
2e927613
TV
32852020-02-09 Tom de Vries <[email protected]>
3286
3287 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3288 filename if it matches "<artificial>".
3289
6bafc845
HD
32902020-02-09 Hannes Domani <[email protected]>
3291
3292 * windows-tdep.c (struct enum_value_name): New struct.
3293 (create_enum): New function.
3294 (windows_get_siginfo_type): Create and use enum types.
3295
7928d571
HD
32962020-02-09 Hannes Domani <[email protected]>
3297
3298 * NEWS: Mention $_siginfo support for Windows.
3299 * windows-nat.c (handle_exception): Set siginfo_er.
3300 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3301 (windows_xfer_siginfo): New function.
3302 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3303 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3304 (init_windows_gdbarch_data): New function.
3305 (get_windows_gdbarch_data): New function.
3306 (windows_get_siginfo_type): New function.
3307 (windows_init_abi): Register windows_get_siginfo_type.
3308 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3309
6751ebae
TT
33102020-02-08 Tom Tromey <[email protected]>
3311
3312 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3313 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3314 <keep>: Declare method.
3315 <m_keep>: Remove member.
3316 <~cutu_reader>: Remove.
3317 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3318 (cutu_reader::cutu_reader): Update.
3319 (cutu_reader::keep): Rename from ~cutu_reader.
3320 (process_psymtab_comp_unit, build_type_psymtabs_1)
3321 (process_skeletonless_type_unit, load_partial_comp_unit)
3322 (load_full_comp_unit, dwarf2_read_addr_index)
3323 (read_signatured_type): Update.
3324
135f5437
TT
33252020-02-08 Tom Tromey <[email protected]>
3326
3327 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
3328 "want_partial_unit" parameter.
3329 (process_psymtab_comp_unit): Change want_partial_unit to bool.
3330 Inline check for DW_TAG_partial_unit.
3331 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
3332
9f66ff1c
TT
33332020-02-08 Tom Tromey <[email protected]>
3334
3335 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
3336 read.c.
3337 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
3338 read.c.
3339
c8a7a66f
TT
33402020-02-08 Tom Tromey <[email protected]>
3341
3342 * dwarf2/read.c (read_address): Move to comp-unit.c.
3343 (dwarf2_rnglists_process, dwarf2_ranges_process)
3344 (read_attribute_value, dwarf_decode_lines_1)
3345 (var_decode_location, decode_locdesc): Update.
3346 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
3347 read.c. Remove "cu" parameter.
3348 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
3349 method.
3350
8266302d
TT
33512020-02-08 Tom Tromey <[email protected]>
3352
3353 * dwarf2/read.c (read_attribute_value, read_indirect_string)
3354 (read_indirect_line_string): Update.
3355 * dwarf2/comp-unit.c (read_offset): Remove.
3356 (read_comp_unit_head): Update.
3357 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
3358 method.
3359 (read_offset): Don't declare.
3360
4057dfde
TT
33612020-02-08 Tom Tromey <[email protected]>
3362
3363 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
3364 * dwarf2/read.c (struct comp_unit_head): Move to
3365 dwarf2/comp-unit.h.
3366 (enum class rcuh_kind): Move to comp-unit.h.
3367 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
3368 (read_comp_unit_head, error_check_comp_unit_head)
3369 (read_and_check_comp_unit_head): Move to comp-unit.c.
3370 (read_offset, dwarf_unit_type_name): Likewise.
3371 (create_debug_type_hash_table, read_cutu_die_from_dwo)
3372 (cutu_reader::cutu_reader, read_call_site_scope)
3373 (find_partial_die, follow_die_offset): Update.
3374 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
3375
24aa364d
TT
33762020-02-08 Tom Tromey <[email protected]>
3377
3378 * dwarf2/read.c (read_offset_1): Move to leb.c.
3379 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
3380 (dwarf_decode_macro_bytes): Update.
3381 * dwarf2/leb.c (read_offset): Rename; move from read.c.
3382 * dwarf2/leb.h (read_offset): Declare.
3383
2c7d5afc
TT
33842020-02-08 Tom Tromey <[email protected]>
3385
3386 * dwarf2/read.c (dwarf2_section_size): Remove.
3387 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
3388 Update.
3389 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
3390
4075cb26
TT
33912020-02-08 Tom Tromey <[email protected]>
3392
3393 * dwarf2/read.c (read_initial_length): Move to leb.c.
3394 * dwarf2/leb.h (read_initial_length): Declare.
3395 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
3396 handle_nonstd parameter.
3397 * dwarf2/frame.c (read_initial_length): Remove.
3398 (decode_frame_entry_1): Update.
3399
09ba997f
TT
34002020-02-08 Tom Tromey <[email protected]>
3401
3402 * dwarf2/loc.c (dwarf2_find_location_expression)
3403 (dwarf_evaluate_loc_desc::get_tls_address)
3404 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
3405 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
3406 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
3407 (dwarf2_compile_property_to_c)
3408 (dwarf2_loc_desc_get_symbol_read_needs)
3409 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
3410 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
3411 (loclist_describe_location, loclist_tracepoint_var_ref)
3412 (loclist_generate_c_location): Update.
3413 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
3414 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
3415 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
3416 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
3417 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
3418 (dwarf2_per_cu_data::addr_size)
3419 (dwarf2_per_cu_data::ref_addr_size)
3420 (dwarf2_per_cu_data::text_offset)
3421 (dwarf2_per_cu_data::addr_type): Now methods.
3422 (per_cu_header_read_in): Make per_cu "const".
3423 (dwarf2_version): Remove.
3424 (dwarf2_per_cu_data::int_type): Now a method.
3425 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
3426 (set_die_type, read_array_type, read_subrange_index_type)
3427 (read_tag_string_type, read_subrange_type): Update.
3428 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
3429 offset_size, ref_addr_size, text_offset, addr_type, version,
3430 objfile, int_type, addr_sized_int_type>: Declare methods.
3431
96c738c0
TT
34322020-02-08 Tom Tromey <[email protected]>
3433
3434 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
3435 Move earlier.
3436
8fdd972c
TT
34372020-02-08 Tom Tromey <[email protected]>
3438
3439 * dwarf2/read.h (dwarf_line_debug): Declare.
3440 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
3441 * dwarf2/read.c: Move line_header code to new files.
3442 (dwarf_line_debug): No longer static.
3443 * dwarf2/line-header.c: New file.
3444 * dwarf2/line-header.h: New file.
3445
03075812
TT
34462020-02-08 Tom Tromey <[email protected]>
3447
3448 * dwarf2/read.c (struct line_header) <file_full_name,
3449 file_file_name>: Return unique_xmalloc_ptr.
3450 (line_header::file_file_name): Update.
3451 (line_header::file_full_name): Update.
3452 (dw2_get_file_names_reader): Update.
3453 (macro_start_file): Update.
3454
bb822404
TT
34552020-02-08 Tom Tromey <[email protected]>
3456
3457 * dwarf2/read.c (struct line_header) <file_full_name,
3458 file_file_name>: Declare methods.
3459 (dw2_get_file_names_reader): Update.
3460 (file_file_name): Now a method.
3461 (file_full_name): Likewise.
3462 (macro_start_file): Update.
3463
009b64fc
TT
34642020-02-08 Tom Tromey <[email protected]>
3465
3466 * dwarf2/read.c (dwarf_always_disassemble)
3467 (show_dwarf_always_disassemble): Move to loc.c.
3468 (_initialize_dwarf2_read): Move "always-disassemble" registration
3469 to loc.c.
3470 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
3471 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
3472 static.
3473 (show_dwarf_always_disassemble): Move from read.c.
3474 (_initialize_dwarf2loc): Move always-disassemble from read.c.
3475
5895093f
TT
34762020-02-08 Tom Tromey <[email protected]>
3477
3478 * dwarf2/read.c (~dwarf2_per_objfile): Update.
3479 (create_quick_file_names_table): Return htab_up.
3480 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
3481 Update.
3482 * dwarf2/read.h (struct dwarf2_per_objfile)
3483 <quick_file_names_table>: Now htab_up.
3484
b3b32279
TT
34852020-02-08 Tom Tromey <[email protected]>
3486
3487 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
3488
1d33d811
TT
34892020-02-08 Tom Tromey <[email protected]>
3490
3491 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
3492 Rewrite.
3493 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
3494 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
3495 (abbrev_table::abbrev_table): No longer inline.
3496 (ABBREV_HASH_SIZE): Remove.
3497 (abbrev_table::m_abbrevs): Now an htab_up.
3498
86de1d91
TT
34992020-02-08 Tom Tromey <[email protected]>
3500
3501 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
3502 (cutu_reader): Update.
3503 (build_type_psymtabs_1): Update.
3504 * dwarf2/abbrev.c (abbrev_table::read): Rename.
3505 (abbrev_table::alloc_abbrev): Update.
3506 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
3507 (abbrev_table::read): New static method, renamed from
3508 abbrev_table_read_table.
3509 (abbrev_table::alloc_abbrev)
3510 (abbrev_table::add_abbrev): Now private.
3511 (abbrev_table::abbrev_table): Now private.
3512 (abbrev_table::m_abbrev_obstack): Now private. Rename.
3513
0335378b
TT
35142020-02-08 Tom Tromey <[email protected]>
3515
3516 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
3517 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
3518 htab_up.
3519
48b490f2
TT
35202020-02-08 Tom Tromey <[email protected]>
3521
3522 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
3523 htab_up.
3524 (lookup_dwo_unit_in_dwp): Update.
3525 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
3526 on obstack.
3527
bc68fb19
TT
35282020-02-08 Tom Tromey <[email protected]>
3529
3530 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
3531 obstack.
3532
d15acc42
TT
35332020-02-08 Tom Tromey <[email protected]>
3534
3535 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
3536 line_header_hash.
3537 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
3538 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
3539 Change type to htab_up.
3540
eaa5fa8b
TT
35412020-02-08 Tom Tromey <[email protected]>
3542
3543 * dwarf2/read.c (allocate_type_unit_groups_table): Return
3544 htab_up. Don't allocate on obstack.
3545 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
3546 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
3547 Change type to htab_up.
3548
b0b6a987
TT
35492020-02-08 Tom Tromey <[email protected]>
3550
3551 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
3552 Change type to htab_up.
3553 * dwarf2/read.c (create_signatured_type_table_from_index)
3554 (create_signatured_type_table_from_debug_names)
3555 (create_all_type_units, add_type_unit)
3556 (lookup_dwo_signatured_type, lookup_signatured_type)
3557 (process_skeletonless_type_unit): Update.
3558 (create_debug_type_hash_table, create_debug_types_hash_table):
3559 Change type of types_htab.
3560 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
3561 htab_up. Don't allocate on obstack.
3562 (create_cus_hash_table): Change type of cus_htab parameter.
3563 (struct dwo_file) <cus, tus>: Now htab_up.
3564 (lookup_dwo_signatured_type, lookup_dwo_cutu)
3565 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
3566 (queue_and_load_all_dwo_tus): Update.
3567 * dwarf2/index-write.c (write_gdbindex): Update.
3568 (write_debug_names): Update.
3569
39856def
TT
35702020-02-08 Tom Tromey <[email protected]>
3571
3572 * dwarf2/read.h (struct dwarf2_queue_item): Move from
3573 dwarf2/read.c. Remove "next" member. Add constructor ntad
3574 destructor.
3575 (struct dwarf2_per_objfile) <queue>: New member.
3576 * dwarf2/read.c (struct dwarf2_queue_item): Move to
3577 dwarf2/read.h.
3578 (dwarf2_queue, dwarf2_queue_tail): Remove.
3579 (class dwarf2_queue_guard): Add parameter to constructor. Use
3580 DISABLE_COPY_AND_ASSIGN.
3581 <m_per_objfile>: New member.
3582 <~dwarf2_queue_guard>: Rewrite.
3583 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
3584 Update.
3585 (~dwarf2_queue_item): New.
3586
3e225074
TT
35872020-02-08 Tom Tromey <[email protected]>
3588
3589 * dwarf2/read.c (struct die_info) <has_children>: New member.
3590 (dw2_get_file_names_reader): Remove has_children.
3591 (dw2_get_file_names): Update.
3592 (read_cutu_die_from_dwo): Remove has_children.
3593 (cutu_reader::init_tu_and_read_dwo_dies)
3594 (cutu_reader::cutu_reader): Update.
3595 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
3596 Remove has_children.
3597 (build_type_psymtabs_1, process_skeletonless_type_unit)
3598 (load_partial_comp_unit, load_full_comp_unit): Update.
3599 (create_dwo_cu_reader): Remove has_children.
3600 (create_cus_hash_table, read_die_and_children): Update.
3601 (read_full_die_1,read_full_die): Remove has_children.
3602 (read_signatured_type): Update.
3603 (class cutu_reader) <has_children>: Remove.
3604
82ca8957
TT
36052020-02-08 Tom Tromey <[email protected]>
3606
3607 * dwarf2/expr.c: Rename from dwarf2expr.c.
3608 * dwarf2/expr.h: Rename from dwarf2expr.h.
3609 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
3610 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
3611 * dwarf2/frame.c: Rename from dwarf2-frame.c.
3612 * dwarf2/frame.h: Rename from dwarf2-frame.h.
3613 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3614 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3615 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3616 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3617 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3618 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3619 * dwarf2/loc.c: Rename from dwarf2loc.c.
3620 * dwarf2/loc.h: Rename from dwarf2loc.h.
3621 * dwarf2/read.c: Rename from dwarf2read.c.
3622 * dwarf2/read.h: Rename from dwarf2read.h.
3623 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3624 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3625 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3626 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3627 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3628 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3629 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3630 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3631 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3632 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3633 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3634 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3635 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3636 Update.
3637 * Makefile.in (COMMON_SFILES): Update.
3638 (HFILES_NO_SRCDIR): Update.
3639
9e35d499
TT
36402020-02-08 Tom Tromey <[email protected]>
3641
3642 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3643 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3644
1eba2311
TT
36452020-02-08 Tom Tromey <[email protected]>
3646
3647 * dwarf2read.h (struct die_info): Don't declare.
3648
e41c2da2
TT
36492020-02-08 Tom Tromey <[email protected]>
3650
3651 * dwarf2read.h (die_info_ptr): Remove typedef.
3652
4fc6c0d5
TT
36532020-02-08 Tom Tromey <[email protected]>
3654
3655 * dwarf2read.c (read_call_site_scope)
3656 (handle_data_member_location, dwarf2_add_member_fn)
3657 (mark_common_block_symbol_computed, read_common_block)
3658 (attr_to_dynamic_prop, partial_die_info::read)
3659 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3660 (dwarf2_symbol_mark_computed, set_die_type): Update.
3661 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3662 method.
3663 (attr_form_is_block): Don't declare.
3664 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3665
cd6c91b4
TT
36662020-02-08 Tom Tromey <[email protected]>
3667
3668 * dwarf2read.c (dwarf2_find_base_address, )
3669 (read_call_site_scope, rust_containing_type)
3670 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3671 (handle_data_member_location, dwarf2_add_member_fn)
3672 (get_alignment, read_structure_type, process_structure_scope)
3673 (mark_common_block_symbol_computed, read_common_block)
3674 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3675 (partial_die_info::read, read_attribute_value, new_symbol)
3676 (lookup_die_type, dwarf2_get_ref_die_offset)
3677 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
3678 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
3679 (dwarf2_symbol_mark_computed): Update.
3680 * dwarf2/attribute.h (struct attribute) <value_as_address,
3681 form_is_section_offset, form_is_constant, form_is_ref>: Declare
3682 methods.
3683 (value_as_address, attr_form_is_section_offset)
3684 (attr_form_is_constant, attr_form_is_ref): Don't declare.
3685 * dwarf2/attribute.c (attribute::value_as_address)
3686 (attribute::form_is_section_offset, attribute::form_is_constant)
3687 (attribute::form_is_ref): Now methods.
3688
162dce55
TT
36892020-02-08 Tom Tromey <[email protected]>
3690
3691 * dwarf2read.c (struct attribute, DW_STRING)
3692 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
3693 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
3694 (attr_form_is_block, attr_form_is_section_offset)
3695 (attr_form_is_constant, attr_form_is_ref): Move.
3696 * dwarf2/attribute.h: New file.
3697 * dwarf2/attribute.c: New file, from dwarf2read.c.
3698 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
3699
3054dd54
TT
37002020-02-08 Tom Tromey <[email protected]>
3701
3702 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
3703 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
3704 Move.
3705 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
3706 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
3707 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
3708 abbrev.c.
3709 * dwarf2/abbrev.h: New file.
3710 * dwarf2/abbrev.c: New file, from dwarf2read.c.
3711 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
3712
96b79293
TT
37132020-02-08 Tom Tromey <[email protected]>
3714
3715 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
3716 (dwarf2_section_size, dwarf2_get_section_info)
3717 (create_signatured_type_table_from_debug_names)
3718 (create_addrmap_from_aranges, read_debug_names_from_section)
3719 (get_gdb_index_contents_from_section, read_comp_unit_head)
3720 (error_check_comp_unit_head, read_abbrev_offset)
3721 (create_debug_type_hash_table, init_cu_die_reader)
3722 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
3723 (read_comp_units_from_section, create_cus_hash_table)
3724 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3725 (create_dwp_v2_section, dwarf2_rnglists_process)
3726 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
3727 (abbrev_table_read_table, read_indirect_string_at_offset_from)
3728 (read_indirect_string_from_dwz, read_addr_index_1)
3729 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
3730 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3731 (fill_in_loclist_baton): Update.
3732 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
3733 get_containing_section, get_bfd_owner, get_bfd_section,
3734 get_file_name, get_id, get_flags, empty, read>: Declare methods.
3735 (dwarf2_read_section, get_section_name, get_section_file_name)
3736 (get_containing_section, get_section_bfd_owner)
3737 (get_section_bfd_section, get_section_name, get_section_file_name)
3738 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
3739 declare.
3740 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
3741 (dwarf2_section_info::get_bfd_owner)
3742 (dwarf2_section_info::get_bfd_section)
3743 (dwarf2_section_info::get_name)
3744 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
3745 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
3746 (dwarf2_section_info::read): Now methods.
3747 * dwarf-index-write.c (class debug_names): Update.
3748
2c86cff9
TT
37492020-02-08 Tom Tromey <[email protected]>
3750
3751 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
3752 Move to dwarf2/section.h.
3753 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
3754 (get_section_bfd_section, get_section_name)
3755 (get_section_file_name, get_section_id, get_section_flags)
3756 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
3757 dwarf2/section.c.
3758 * dwarf2/section.h: New file.
3759 * dwarf2/section.c: New file, from dwarf2read.c.
3760 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
3761
f4382c45
TT
37622020-02-08 Tom Tromey <[email protected]>
3763
3764 * dwarf2read.h (read_unsigned_leb128): Don't declare.
3765 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3766 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3767 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3768 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3769 * dwarf2/leb.h: New file, from dwarf2read.c.
3770 * dwarf2/leb.c: New file, from dwarf2read.c.
3771 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3772 Remove.
3773 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3774 (COMMON_SFILES): Add dwarf2/leb.c.
3775
01840b7a
JB
37762020-02-08 Joel Brobecker <[email protected]>
3777
3778 GDB 9.1 released.
3779
dfcb27e4
IB
37802020-02-05 Iain Buclaw <[email protected]>
3781
3782 PR gdb/25190:
3783 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3784 * gdb/remote.c (remote_console_output): Update.
3785 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3786 (ui_file_puts): ...this.
3787 * gdb/ui-file.h (ui_file_puts): Add declaration.
3788 * gdb/utils.c (emit_style_escape): Update.
3789 (flush_wrap_buffer): Update.
3790 (fputs_maybe_filtered): Update.
3791 (fputs_unfiltered): Add function.
3792
faa17681
IB
37932020-02-05 Iain Buclaw <[email protected]>
3794
3795 * gdb/event-loop.c (gdb_wait_for_event): Update.
3796 * gdb/printcmd.c (printf_command): Update.
3797 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3798 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3799 (gdb_os_flush_stderr): Update.
3800 * gdb/remote.c (remote_console_output): Update.
3801 * gdb/ui-file.c (gdb_flush): Rename to...
3802 (ui_file_flush): ...this.
3803 (stderr_file::write): Update.
3804 (stderr_file::puts): Update.
3805 * gdb/ui-file.h (gdb_flush): Rename to...
3806 (ui_file_flush): ...this.
3807 * gdb/utils.c (gdb_flush): Add function.
3808 * gdb/utils.h (gdb_flush): Add declaration.
3809
5abbbe1d
TT
38102020-02-07 Tom Tromey <[email protected]>
3811
3812 PR breakpoints/24915:
3813 * source.c (find_and_open_source): Do not check basenames_may_differ.
3814
919adfe8
TT
38152020-02-07 Tom Tromey <[email protected]>
3816
3817 * README: Update gdbserver documentation.
3818 * gdbserver: Move to top level.
3819 * configure.tgt (build_gdbserver): Remove.
3820 * configure.ac: Remove --enable-gdbserver.
3821 * configure: Rebuild.
3822 * Makefile.in (distclean): Don't mention gdbserver.
3823
1d5d29e7
SV
38242020-02-06 Shahab Vahedi <[email protected]>
3825
3826 * source-cache.c (source_cache::ensure): Surround
3827 get_plain_source_lines with a try/catch.
3828 (source_cache::get_line_charpos): Get rid of try/catch
3829 and only check for the return value of "ensure".
3830 * tui/tui-source.c (tui_source_window::set_contents):
3831 Simplify "nlines" calculation.
3832
6eb1129c
SV
38332020-02-06 Shahab Vahedi <[email protected]>
3834
3835 * MAINTAINERS (Write After Approval): Add myself.
3836
c6a42d11
CB
38372020-02-05 Christian Biesinger <[email protected]>
3838
3839 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3840 function call.
3841
c8ecdda6
CB
38422020-02-05 Christian Biesinger <[email protected]>
3843
3844 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3845
f6480e70
MR
38462020-02-05 Maciej W. Rozycki <[email protected]>
3847
3848 * nat/riscv-linux-tdesc.h: New file.
3849 * nat/riscv-linux-tdesc.c: New file, taking code from...
3850 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3851 ... here.
3852 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3853 NATDEPFILES.
3854
dcc9fbc6
AB
38552020-02-04 Andrew Burgess <[email protected]>
3856
3857 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3858 we don't set the fake simulator ptid to the null_ptid.
3859
719546c4
SM
38602020-02-03 Simon Marchi <[email protected]>
3861
3862 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3863 * gdbthread.h (class thread_info) <resumed>: Likewise.
3864 * infrun.c (resume_1): Likewise.
3865 (proceed): Likewise.
3866 (infrun_thread_stop_requested): Likewise.
3867 (stop_all_threads): Likewise.
3868 (handle_inferior_event): Likewise.
3869 (restart_threads): Likewise.
3870 (finish_step_over): Likewise.
3871 (keep_going_stepped_thread): Likewise.
3872 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3873 (linux_handle_extended_wait): Likewise.
3874 * record-btrace.c (get_thread_current_frame_id): Likewise.
3875 * record-full.c (record_full_wait_1): Likewise.
3876 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3877 * target.c (target_resume): Likewise.
3878 * thread.c (set_running_thread): Likewise.
3879
e409c542
AKS
38802020-02-03 Alok Kumar Sharma <[email protected]>
3881
3882 * f-valprint.c (f77_print_array_1): Changed datatype of index
3883 variable to LONGEST from int to enable it to contain bound
3884 values correctly.
3885
ee98c0da
MR
38862020-02-03 Maciej W. Rozycki <[email protected]>
3887
3888 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3889 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3890 offsets according to FLEN determined.
3891 (riscv_linux_nat_target::read_description): Determine FLEN
3892 dynamically.
3893 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3894 according to FLEN determined.
3895 (riscv_linux_nat_target::store_registers): Likewise.
3896
aa66aac4
SV
38972020-02-01 Shahab Vahedi <[email protected]>
3898
3899 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3900 when reg->group is empty and reggroup is not.
3901
fd9faca8
TT
39022020-01-31 Tom Tromey <[email protected]>
3903
3904 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3905 Call beneath target's mourn_inferior after unpushing.
3906
42330a68
AB
39072020-01-31 Andrew Burgess <[email protected]>
3908
3909 PR tui/9765
3910 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3911 have enough lines to fill the screen, still return the lowest
3912 address we found.
3913
7a27a45b
AB
39142020-01-31 Andrew Burgess <[email protected]>
3915
3916 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3917 '-', '<', and '>' commands.
3918
c47f70e2
PA
39192020-01-29 Pedro Alves <[email protected]>
3920 Sergio Durigan Junior <[email protected]>
3921
3922 * infcmd.c (construct_inferior_arguments): Assert that
3923 'argc' is greater than 0.
3924
5133a315
LM
39252020-01-29 Luis Machado <[email protected]>
3926
3927 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
3928 (BRK_INSN_MASK): Define to 0xd4200000.
3929 (aarch64_program_breakpoint_here_p): New function.
3930 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
3931 * arch-utils.c (default_program_breakpoint_here_p): Moved from
3932 breakpoint.c.
3933 * arch-utils.h (default_program_breakpoint_here_p): Moved from
3934 breakpoint.h
3935 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
3936 call gdbarch_program_breakpoint_here_p.
3937 (program_breakpoint_here): Moved to arch-utils.c, renamed to
3938 default_program_breakpoint_here_p, changed return type to bool and
3939 simplified.
3940 * breakpoint.h (program_breakpoint_here): Moved prototype to
3941 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
3942 return type to bool.
3943 * gdbarch.c: Regenerate.
3944 * gdbarch.h: Regenerate.
3945 * gdbarch.sh (program_breakpoint_here_p): New method.
3946 * infrun.c (handle_signal_stop): Call
3947 gdbarch_program_breakpoint_here_p.
3948
168f8c6b
TT
39492020-01-26 Tom Tromey <[email protected]>
3950
3951 * ctfread.c (struct ctf_fp_info): Reindent.
3952 (_initialize_ctfread): Remove.
3953
128a391f
TT
39542020-01-26 Tom Tromey <[email protected]>
3955
3956 * psymtab.c (partial_map_expand_apply)
3957 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3958 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3959 (psym_print_stats, psym_expand_symtabs_for_function)
3960 (psym_map_symbol_filenames, psym_map_matching_symbols)
3961 (psym_expand_symtabs_matching)
3962 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3963 (maintenance_check_psymtabs): Use new methods.
3964 * psympriv.h (struct partial_symtab) <readin_p,
3965 get_compunit_symtab>: New methods.
3966 <readin, compunit_symtab>: Remove members.
3967 (struct standard_psymtab): New.
3968 (struct legacy_psymtab): Derive from standard_psymtab.
3969 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3970 standard_psymtab.
3971 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3972
0494dbec
TT
39732020-01-26 Tom Tromey <[email protected]>
3974
3975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3976 read_dependencies. Add assert.
3977 * psymtab.c (partial_symtab::read_dependencies): New method.
3978 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3979 method.
3980 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3981 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3982 read_dependencies.
3983 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3984 Add assert.
3985
8566b89b
TT
39862020-01-26 Tom Tromey <[email protected]>
3987
3988 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3989 Call expand_psymtab.
3990 (xcoff_read_symtab): Call expand_psymtab.
3991 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3992 legacy_expand_psymtab.
3993 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3994 method.
3995 (struct legacy_psymtab) <expand_psymtab>: Implement.
3996 <legacy_expand_psymtab>: New member.
3997 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3998 (parse_partial_symbols): Set legacy_expand_psymtab.
3999 (psymtab_to_symtab_1): Change argument order. Call
4000 expand_psymtab.
4001 (new_psymtab): Set legacy_expand_psymtab.
4002 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4003 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4004 expand_psymtab.
4005 (dwarf2_psymtab::expand_psymtab): Rename from
4006 psymtab_to_symtab_1. Call expand_psymtab.
4007 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4008 (dbx_end_psymtab): Likewise.
4009 (dbx_psymtab_to_symtab_1): Change argument order. Call
4010 expand_psymtab.
4011 (dbx_read_symtab): Call expand_psymtab.
4012 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4013 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4014 (ctf_psymtab::read_symtab): Call expand_psymtab.
4015
077cbab2
TT
40162020-01-26 Tom Tromey <[email protected]>
4017
4018 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4019 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4020 messages.
4021 * mdebugread.c (mdebug_read_symtab): Remove prints.
4022 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4023 assert.
4024 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4025
891813be
TT
40262020-01-26 Tom Tromey <[email protected]>
4027
4028 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4029 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4030 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4031 legacy_symtab.
4032 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4033 * psymtab.c (psymtab_to_symtab): Call method.
4034 (dump_psymtab): Update.
4035 * psympriv.h (struct partial_symtab): Add virtual destructor.
4036 <read_symtab>: New method.
4037 (struct legacy_symtab): New.
4038 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4039 (struct pst_map) <pst>: Now a legacy_psymtab.
4040 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4041 (new_psymtab): Use legacy_psymtab.
4042 * dwarf2read.h (struct dwarf2_psymtab): New.
4043 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4044 * dwarf2read.c (dwarf2_create_include_psymtab)
4045 (dwarf2_build_include_psymtabs, create_type_unit_group)
4046 (create_partial_symtab, process_psymtab_comp_unit_reader)
4047 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4048 (set_partial_user): Use dwarf2_psymtab.
4049 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4050 (psymtab_to_symtab_1, process_full_comp_unit)
4051 (process_full_type_unit, dwarf2_ranges_read)
4052 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4053 (dwarf_decode_lines): Use dwarf2_psymtab.
4054 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4055 (add_address_entry_worker, write_one_signatured_type)
4056 (recursively_count_psymbols, recursively_write_psymbols)
4057 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4058 (write_debug_names): Likewise.
4059 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4060 <pst>: Now a legacy_psymtab.
4061 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4062 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4063 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4064 * ctfread.c (struct ctf_psymtab): New.
4065 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4066 ctf_psymtab.
4067 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4068 (create_partial_symtab): Return a ctf_psymtab.
4069 (scan_partial_symbols): Update.
4070
c3693a1d
TT
40712020-01-26 Tom Tromey <[email protected]>
4072
4073 * xcoffread.c (xcoff_start_psymtab): Use new.
4074 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4075 renamed from start_psymtab_common.
4076 * psympriv.h (struct partial_symtab): Add new constructor.
4077 (start_psymtab_common): Don't declare.
4078 * mdebugread.c (parse_partial_symbols): Use new.
4079 * dwarf2read.c (create_partial_symtab): Use new.
4080 * dbxread.c (start_psymtab): Use new.
4081 * ctfread.c (create_partial_symtab): Use new.
4082
32caafd0
TT
40832020-01-26 Tom Tromey <[email protected]>
4084
4085 * xcoffread.c (xcoff_end_psymtab): Use new.
4086 * psymtab.c (start_psymtab_common): Use new.
4087 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4088 Update.
4089 * psympriv.h (struct partial_symtab): Add parameters to
4090 constructor. Don't inline.
4091 (allocate_psymtab): Don't declare.
4092 * mdebugread.c (new_psymtab): Use new.
4093 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4094 * dbxread.c (dbx_end_psymtab): Use new.
4095
abaa2f23
TT
40962020-01-26 Tom Tromey <[email protected]>
4097
4098 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4099 allocate_psymtab. Update documentation.
4100 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4101 allocate_psymtab. Do not use new.
4102 (allocate_psymtab): Use new. Update.
4103
6d94535f
TT
41042020-01-26 Tom Tromey <[email protected]>
4105
4106 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4107 * psymtab.c (psym_print_stats): Update.
4108 * psympriv.h (struct partial_symtab) <readin,
4109 psymtabs_addrmap_supported, anonymous>: Now bool.
4110 * mdebugread.c (psymtab_to_symtab_1): Update.
4111 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4112 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4113 (process_full_comp_unit, process_full_type_unit): Update.
4114 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4115 * ctfread.c (psymtab_to_symtab): Update.
4116
6f17252b
TT
41172020-01-26 Tom Tromey <[email protected]>
4118
4119 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4120 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4121 * psymtab.c (psymtab_storage): Delete psymtabs.
4122 (psymtab_storage::allocate_psymtab): Use new.
4123 (psymtab_storage::discard_psymtab): Use delete.
4124 * psympriv.h (struct partial_symtab): Add constructor and
4125 initializers.
4126
f6f1cebc
TT
41272020-01-26 Tom Tromey <[email protected]>
4128
4129 * machoread.c: Do not include psympriv.h.
4130
e47e48f6
PW
41312020-01-25 Philippe Waroquiers <[email protected]>
4132
4133 * NEWS: Mention the new option and the set/show commands.
4134
a2fedca9
PW
41352020-01-25 Philippe Waroquiers <[email protected]>
4136
4137 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4138 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4139 (validate_exec_file): New variables, enums, functions.
4140 (exec_file_locate_attach, print_section_info): Style the filenames.
4141 (_initialize_exec): Install show_exec_file_mismatch_command and
4142 set_exec_file_mismatch_command.
4143 * gdbcore.h (validate_exec_file): Declare.
4144 * infcmd.c (attach_command): Call validate_exec_file.
4145 * remote.c ( remote_target::remote_add_inferior): Likewise.
4146
7ffa82e1
AB
41472020-01-24 Andrew Burgess <[email protected]>
4148
4149 * frame.c (find_frame_sal): Move call to get_next_frame into more
4150 inner scope.
4151 * inline-frame.c (inilne_state) <inline_state>: Update argument
4152 types.
4153 (inilne_state) <skipped_symbol>: Rename to...
4154 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4155 (skip_inline_frames): Build vector of skipped symbols and use this
4156 to reate the inline_state.
4157 (inline_skipped_symbol): Add a comment and some assertions, fetch
4158 skipped symbol from the list.
4159
3d92a3e3
AB
41602020-01-24 Andrew Burgess <[email protected]>
4161
4162 * buildsym.c (lte_is_less_than): Delete.
4163 (buildsym_compunit::end_symtab_with_blockvector): Create local
4164 lambda function to sort line table entries, and use
4165 std::stable_sort instead of std::sort.
4166 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4167 markers when looking for a previous line.
4168
94a72be7
AB
41692020-01-24 Andrew Burgess <[email protected]>
4170
4171 * dwarf2read.c (lnp_state_machine::record_line): Include
4172 end_sequence parameter in debug print out. Record the line if we
4173 are at an end_sequence marker even if it's not the start of a
4174 statement.
4175 * symmisc.c (maintenance_print_one_line_table): Print end of
4176 sequence markers with 'END' not '0'.
4177
53af73bf
PA
41782020-01-24 Pedro Alves <[email protected]>
4179
4180 PR gdb/25410
4181 * thread.c (scoped_restore_current_thread::restore): Use
4182 switch_to_inferior_no_thread.
4183 * exec.c: Include "progspace-and-thread.h".
4184 (add_target_sections, remove_target_sections):
4185 scoped_restore_current_pspace_and_thread instead of
4186 scoped_restore_current_thread.
4187 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4188 and aspace to the inferior before calling clone_program_space.
4189 Remove stale comment.
4190
3050c6f4
CB
41912020-01-24 Christian Biesinger <[email protected]>
4192
4193 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4194 (arm_netbsd_nat_target::fetch_registers): ...this.
4195 (arm_nbsd_nat_target::store_registers): Rename to...
4196 (arm_netbsd_nat_target::store_registers): ...this.
4197
73685c7e
CB
41982020-01-24 Christian Biesinger <[email protected]>
4199
4200 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4201 register_t.
4202
89203d40
CB
42032020-01-24 Christian Biesinger <[email protected]>
4204
4205 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4206 Update comment.
4207 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4208 Likewise.
4209 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4210 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4211 the correct replacement (iterate_over_regset_sections).
4212 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4213 Update comment.
4214
1ba1ac88
AB
42152020-01-24 Graham Markall <[email protected]>
4216
4217 PR gdb/23718
4218 * gdb/python/python.c (execute_gdb_command): Call
4219 async_enable_stdin in catch block.
4220
f3364a6d
AB
42212020-01-24 Andrew Burgess <[email protected]>
4222
4223 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4224 SWITCH_THRU_ALL_UIS.
4225
733d0a67
AB
42262020-01-24 Andrew Burgess <[email protected]>
4227
4228 PR tui/9765
4229 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4230 comment, add extra parameter, and update to store previous symbol
4231 when appropriate.
4232 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4233 add extra parameter.
4234 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4235 remove unneeded parameter, add try/catch around gdb_print_insn,
4236 rewrite to add items to asm_lines vector.
4237 (tui_find_backward_disassembly_start_address): New function.
4238 (tui_find_disassembly_address): Updated throughout.
4239 (tui_disasm_window::set_contents): Update for changes to
4240 tui_disassemble.
4241 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4242 number of lines to scroll.
4243
b3b3bada
SM
42442020-01-23 Simon Marchi <[email protected]>
4245
4246 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4247 (SECT_OFF_DATA): Likewise.
4248 (SECT_OFF_RODATA): Likewise.
4249 (SECT_OFF_TEXT): Likewise.
4250 (SECT_OFF_BSS): Likewise.
4251 (struct objfile) <text_section_offset, data_section_offset>: New
4252 methods.
4253 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4254 objfile::text_section_offset.
4255 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4256 * coffread.c (coff_symtab_read): Likewise.
4257 (enter_linenos): Likewise.
4258 (process_coff_symbol): Likewise.
4259 * ctfread.c (get_objfile_text_range): Likewise.
4260 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4261 Use objfile::data_section_offset.
4262 * dwarf2-frame.c (execute_cfa_program): Use
4263 objfile::text_section_offset.
4264 (dwarf2_frame_find_fde): Likewise.
4265 * dwarf2read.c (create_addrmap_from_index): Likewise.
4266 (create_addrmap_from_aranges): Likewise.
4267 (dw2_find_pc_sect_compunit_symtab): Likewise.
4268 (process_psymtab_comp_unit_reader): Likewise.
4269 (add_partial_symbol): Likewise.
4270 (add_partial_subprogram): Likewise.
4271 (process_full_comp_unit): Likewise.
4272 (read_file_scope): Likewise.
4273 (read_func_scope): Likewise.
4274 (read_lexical_block_scope): Likewise.
4275 (read_call_site_scope): Likewise.
4276 (dwarf2_rnglists_process): Likewise.
4277 (dwarf2_ranges_process): Likewise.
4278 (dwarf2_ranges_read): Likewise.
4279 (dwarf_decode_lines_1): Likewise.
4280 (new_symbol): Likewise.
4281 (dwarf2_fetch_die_loc_sect_off): Likewise.
4282 (dwarf2_per_cu_text_offset): Likewise.
4283 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4284 * hppa-tdep.c (read_unwind_info): Likewise.
4285 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4286 * psympriv.h (struct partial_symtab): Likewise.
4287 * psymtab.c (find_pc_sect_psymtab): Likewise.
4288 * solib-svr4.c (enable_break): Likewise.
4289 * stap-probe.c (relocate_address): Use
4290 objfile::data_section_offset.
4291 * xcoffread.c (enter_line_range): Use
4292 objfile::text_section_offset.
4293 (read_xcoff_symtab): Likewise.
4294
ab53f382
SM
42952020-01-23 Simon Marchi <[email protected]>
4296
4297 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4298 declaration to narrower scopes.
4299
e7eee665
SM
43002020-01-23 Simon Marchi <[email protected]>
4301
4302 * darwin-nat.h (struct darwin_exception_msg, enum
4303 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4304 Move up.
4305 (class darwin_nat_target) <wait_1, check_new_threads,
4306 decode_exception_message, decode_message, stop_inferior,
4307 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4308 * darwin-nat.c (darwin_check_new_threads): Rename to...
4309 (darwin_nat_target::check_new_threads): ... this.
4310 (darwin_suspend_inferior_it): Remove.
4311 (darwin_decode_exception_message): Rename to...
4312 (darwin_nat_target::decode_exception_message): ... this.
4313 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4314 (darwin_decode_message): Rename to...
4315 (darwin_nat_target::decode_message): ... this.
4316 (cancel_breakpoint): Rename to...
4317 (darwin_nat_target::cancel_breakpoint): ... this.
4318 (darwin_wait): Rename to...
4319 (darwin_nat_target::wait_1): ... this. Use range-based for loop
4320 instead of iterate_over_inferiors.
4321 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
4322 (darwin_stop_inferior): Rename to...
4323 (darwin_nat_target::stop_inferior): ... this.
4324 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
4325 (darwin_init_thread_list): Rename to...
4326 (darwin_nat_target::init_thread_list): ... this.
4327 (darwin_ptrace_him): Rename to...
4328 (darwin_nat_target::ptrace_him): ... this.
4329 (darwin_nat_target::create_inferior): Pass lambda function to
4330 fork_inferior.
4331 (darwin_nat_target::detach): Call stop_inferior instead of
4332 darwin_stop_inferior.
4333 * fork-inferior.h (fork_inferior): Change init_trace_fun
4334 parameter to gdb::function_view.
4335 * fork-inferior.c (fork_inferior): Likewise.
4336
c162ed3e
HD
43372020-01-23 Hannes Domani <[email protected]>
4338
4339 * i386-cygwin-tdep.c (core_process_module_section): Update.
4340 * windows-nat.c (struct lm_info_windows): Add text_offset.
4341 (windows_xfer_shared_libraries): Update.
4342 * windows-tdep.c (windows_xfer_shared_library):
4343 Add text_offset_cached argument.
4344 * windows-tdep.h (windows_xfer_shared_library): Update.
4345
a1237872
SM
43462020-01-21 Simon Marchi <[email protected]>
4347
4348 * gdbarch.sh: Add declaration for _initialize_gdbarch.
4349
b3ee6dd9
SM
43502020-01-21 Simon Marchi <[email protected]>
4351
4352 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
4353 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
4354 replace with range-based for.
4355 (gdbsim_interrupt_inferior): Remove.
4356 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
4357 with a range-based for. Inline code from
4358 gdbsim_interrupt_inferior.
4359
f9fac3c8
SM
43602020-01-21 Simon Marchi <[email protected]>
4361
4362 * infrun.c (proceed): Fix indentation.
4363
f6474de9
TT
43642020-01-21 Tom Tromey <[email protected]>
4365
4366 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
4367 * python/python.c (python_extension_ops): Update.
4368 (gdbpy_colorize): New function.
4369 * python/lib/gdb/__init__.py (colorize): New function.
4370 * extension.h (ext_lang_colorize): Declare.
4371 * extension.c (ext_lang_colorize): New function.
4372 * extension-priv.h (struct extension_language_ops) <colorize>: New
4373 member.
4374 * cli/cli-style.c (_initialize_cli_style): Update help text.
4375
f0c702d4
LM
43762020-01-21 Luis Machado <[email protected]>
4377
4378 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
4379 <cond>: Change type to bool.
4380 (aarch64_displaced_step_b_cond): Update cond to use bool type.
4381 (aarch64_displaced_step_cb): Likewise.
4382 (aarch64_displaced_step_tb): Likewise.
4383
1ab139e5
LM
43842020-01-21 Luis Machado <[email protected]>
4385
4386 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
4387 output.
4388
0c271889
LM
43892020-01-21 Luis Machado <[email protected]>
4390
4391 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
4392 <pc_adjust>: Adjust the documentation.
4393 (aarch64_displaced_step_fixup): Check if PC really moved before
4394 adjusting it.
4395
4d89c1c7
TT
43962020-01-19 Tom Tromey <[email protected]>
4397
4398 * disasm.c (~gdb_disassembler): New destructor.
4399 (gdb_buffered_insn_length): Call disassemble_free_target.
4400 * disasm.h (class gdb_disassembler): Declare destructor. Use
4401 DISABLE_COPY_AND_ASSIGN.
4402
c0ab21c2
TT
44032020-01-19 Tom Tromey <[email protected]>
4404
4405 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
4406 (die_reader_func_ftype): Remove.
4407 (cutu_reader): New class.
4408 (dw2_get_file_names_reader): Remove "data" parameter.
4409 (dw2_get_file_names): Use cutu_reader.
4410 (create_debug_type_hash_table): Update.
4411 (read_cutu_die_from_dwo): Update comment.
4412 (lookup_dwo_unit): Add dwo_name parameter.
4413 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
4414 die_reader_func_ftype and data parameters.
4415 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
4416 Remove die_reader_func_ftype and data parameters.
4417 (~cutu_reader): New; from init_cutu_and_read_dies.
4418 (cutu_reader::cutu_reader): Rename from
4419 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
4420 and data parameters.
4421 (init_cutu_and_read_dies_simple): Remove.
4422 (struct process_psymtab_comp_unit_data): Remove.
4423 (process_psymtab_comp_unit_reader): Remove data parameter; add
4424 want_partial_unit and pretend_language parameters.
4425 (process_psymtab_comp_unit): Use cutu_reader.
4426 (build_type_psymtabs_reader): Remove data parameter.
4427 (build_type_psymtabs_1): Use cutu_reader.
4428 (process_skeletonless_type_unit): Likewise.
4429 (load_partial_comp_unit_reader): Remove.
4430 (load_partial_comp_unit): Use cutu_reader.
4431 (load_full_comp_unit_reader): Remove.
4432 (load_full_comp_unit): Use cutu_reader.
4433 (struct create_dwo_cu_data): Remove.
4434 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
4435 dwo_unit parameters.
4436 (create_cus_hash_table): Use cutu_reader.
4437 (struct dwarf2_read_addr_index_data): Remove.
4438 (dwarf2_read_addr_index_reader): Remove.
4439 (dwarf2_read_addr_index): Use cutu_reader.
4440 (read_signatured_type_reader): Remove.
4441 (read_signatured_type): Use cutu_reader.
4442
45bbae5c
TT
44432020-01-19 Tom Tromey <[email protected]>
4444
4445 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
4446 * tui/tui-wingeneral.h (class tui_suppress_output): New.
4447 (tui_wrefresh): Declare.
4448 * tui/tui-wingeneral.c (suppress_output): New global.
4449 (tui_suppress_output, ~tui_suppress_output): New constructor and
4450 destructor.
4451 (tui_wrefresh): New function.
4452 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
4453 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
4454 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
4455 method.
4456 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
4457 tui_wrefresh.
4458 (tui_data_window::no_refresh): New method.
4459 (tui_data_item_window::refresh_window): Call tui_wrefresh.
4460 (tui_reg_command): Use tui_suppress_output
4461 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
4462 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
4463 method.
4464 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
4465
4f13c1c0
TT
44662020-01-19 Tom Tromey <[email protected]>
4467
4468 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4469 Handle case where symtab is null.
4470
fa47e446
SM
44712020-01-19 Simon Marchi <[email protected]>
4472
4473 * linux-fork.c (one_fork_p): Simplify.
4474
26f42329
SM
44752020-01-17 Simon Marchi <[email protected]>
4476
4477 * top.c (struct qt_args): Remove.
4478 (kill_or_detach): Change return type to void, replace `void *`
4479 parameter with a proper one.
4480 (print_inferior_quit_action): Likewise.
4481 (quit_confirm): Use range-based for loop to iterate over inferiors.
4482 (quit_force): Likewise.
4483
a9ac81b1
SM
44842020-01-17 Simon Marchi <[email protected]>
4485
4486 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
4487 `void *` parameter with proper parameters.
4488 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
4489 (print_one_inferior): Change return type to void, replace `void *`
4490 parameter with proper parameters.
4491 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
4492 inferiors.
4493 (get_other_inferior): Remove.
4494 (mi_cmd_remove_inferior): Use range-based loop to iterate over
4495 inferiors.
4496
788eca49
SM
44972020-01-17 Simon Marchi <[email protected]>
4498
4499 * mi/mi-interp.c (report_initial_inferior): Remove.
4500 (mi_interp::init): Use range-based for to iterate over inferiors.
4501
d9bc85b6
SM
45022020-01-17 Simon Marchi <[email protected]>
4503
4504 * python/py-inferior.c (build_inferior_list): Remove.
4505 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
4506
40c94099
CB
45072020-01-16 Christian Biesinger <[email protected]>
4508
4509 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
4510 (btrace_stitch_trace): Likewise.
4511 * charset.c (intermediate_encoding): Likewise (vaild).
4512 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
4513 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
4514 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
4515
e0cdfe3c
HD
45162020-01-16 Hannes Domani <[email protected]>
4517
4518 * windows-tdep.c (windows_get_tlb_type):
4519 Add rtl_user_process_parameters type.
4520
790f1718
PA
45212020-01-16 Pedro Alves <[email protected]>
4522 Norbert Lange <[email protected]>
4523
4524 PR build/24805
4525 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
4526 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
4527 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
4528 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
4529 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
4530 (ps_plog): Redeclare exported functions with default visibility.
4531
3112ed97
NA
45322020-01-16 Nitika Achra <[email protected]>
4533
4534 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
4535 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
4536
8dc3273e
SM
45372020-01-15 Simon Marchi <[email protected]>
4538
4539 * infcmd.c (post_create_inferior): Use get_thread_regcache
4540 instead of get_current_regcache.
4541
ff47f4f0
TT
45422020-01-14 Tom Tromey <[email protected]>
4543
4544 PR symtab/12535:
4545 * python/python.c (gdbpy_decode_line): Treat empty string the same
4546 as no argument.
4547
975f45b7
TT
45482020-01-14 Tom Tromey <[email protected]>
4549
4550 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
4551
25e57356
TT
45522020-01-14 Tom Tromey <[email protected]>
4553
4554 * nat/linux-btrace.c: Don't include <config.h>.
4555 * nat/linux-ptrace.c: Don't include <config.h>.
4556 * nat/x86-linux-dregs.c: Don't include <config.h>.
4557
05ea2a05
TT
45582020-01-14 Tom Tromey <[email protected]>
4559
4560 * configure: Rebuild.
4561 * configure.ac: Move many checks to ../gdbsupport/common.m4.
4562
01027315
TT
45632020-01-14 Tom Tromey <[email protected]>
4564
4565 * nat/x86-linux-dregs.c: Include configh.h.
4566 * nat/linux-ptrace.c: Include configh.h.
4567 * nat/linux-btrace.c: Include configh.h.
4568 * defs.h: Include config.h, bfd.h.
4569 * configure.ac: Don't source common.host.
4570 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
4571 * configure: Rebuild.
4572 * acinclude.m4: Update path.
4573 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
4574 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
4575 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
4576 (CLIBS): Add LIBSUPPORT.
4577 (CDEPS): Likewise.
4578 (COMMON_SFILES): Remove gdbsupport files.
4579 (HFILES_NO_SRCDIR): Likewise.
4580 (stamp-version): Update path to create-version.sh.
4581 (ALLDEPFILES): Remove gdbsupport files.
4582
b2ceabe8
TT
45832020-01-14 Tom Tromey <[email protected]>
4584
4585 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
4586 USE_WIN32API when needed.
4587 * configure.ac (USE_WIN32API): Don't define.
4588 (WIN32LIBS): Use WIN32APILIBS.
4589 * configure: Rebuild.
4590
25c51f71
TT
45912020-01-14 Tom Tromey <[email protected]>
4592
4593 * configure: Rebuild.
4594 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
4595
717c684d
BE
45962020-01-14 Bernd Edlinger <[email protected]>
4597
4598 * skip.c (skip_function_command): Make skip w/o arguments use the
4599 name of the inlined function if pc is inside any inlined function.
4600
7da6a5b9
LM
46012020-01-14 Luis Machado <[email protected]>
4602
4603 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
4604 * infrun.c (resume_1): Likewise.
4605 (handle_inferior_event): Remove stale comment.
4606 * linux-nat.c (linux_nat_target::resume): Update comments.
4607 (save_stop_reason): Likewise.
4608 (linux_nat_filter_event): Likewise.
4609 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
4610
44e4c775
AB
46112020-01-13 Andrew Burgess <[email protected]>
4612
4613 * elfread.c (record_minimal_symbol): Set section index to 0 for
4614 non-allocatable sections.
4615
18a8505e
AT
4616
46172020-01-13 Ali Tamur <[email protected]>
4618
4619 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4620 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4621 to gdb::optional. Update comments.
4622 (dwo_file): Update comments.
4623 (read_attribute): Update API to take an additional out parameter,
4624 need_reprocess. This is used to mark attributes that need other
4625 attributes (e.g. str_offsets_base) for correct computation which may not
4626 have been read yet.
4627 (read_attribute_reprocess): New function declaration.
4628 (read_addr_index): Likewise.
4629 (read_dwo_str_index): Likewise.
4630 (read_stub_str_index): Likewise.
4631 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4632 (lookup_addr_base): New function definition.
4633 (lookup_ranges_base): Likewise.
4634 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4635 lookup_ranges_base.
4636 (init_cutu_and_read_dies): Update comments.
4637 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4638 unit. This is used to inherit parent's str_offsets_base and addr_base.
4639 Update comments.
4640 (init_cutu_and_read_dies_simple): Reflect API changes.
4641 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4642 (create_cus_hash_table): Change API to take parent compile unit.
4643 Reflect API changes.
4644 (open_and_init_dwo_file): Reflect API changes.
4645 (dwarf2_get_pc_bounds): Update comments.
4646 (dwarf2_record_block_ranges): Likewise.
4647 (read_full_die_1): Change implementation to reprocess attributes that
4648 need str_offsets_base and addr_base.
4649 (partial_die_info::read): Likewise.
4650 (read_attribute_reprocess): New function definition.
4651 (read_attribute_value): Change API to take an additional out parameter,
4652 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4653 when a non-dwo compile unit has index based attributes.
4654 (read_attribute): Reflect API changes.
4655 (read_addr_index_1): Reflect API changes. Update comments.
4656 (dwarf2_read_addr_index_data): Reflect API changes.
4657 (dwarf2_read_addr_index): Likewise.
4658 (read_str_index): Change API and implementation. This becomes a helper
4659 to be used by the new string index related methods. Update error
4660 message and comments.
4661 (read_dwo_str_index): New function definition.
4662 (read_stub_str_index): Likewise.
4663 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4664 * symfile.h (dwarf2_debug_sections): Likewise.
4665 * xcoffread.c (dwarf2_debug_sections): Likewise.
4666
0cac9354
SM
46672020-01-13 Simon Marchi <[email protected]>
4668
4669 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4670 core_reg_sect type to gdb_byte *.
4671 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4672 * cris-tdep.c (fetch_core_registers): Likewise.
4673 * corelow.c (core_target::get_core_register_section): Change
4674 type of `contents` to gdb::byte_vector.
4675
9a6d629c
AB
46762020-01-13 Andrew Burgess <[email protected]>
4677
4678 * tui/tui-wingeneral.c (box_win): Position the title in the center
4679 of the border.
4680
d8b2f9e3
SM
46812020-01-13 Simon Marchi <[email protected]>
4682
4683 * corelow.c (core_target::get_core_register_section): Use
4684 std::vector instead of alloca.
4685
bb564c58
SM
46862020-01-13 Simon Marchi <[email protected]>
4687
4688 * warning.m4: Add -Wmissing-declarations to build_warnings.
4689 * configure: Re-generate.
4690
6b366111
SM
46912020-01-13 Simon Marchi <[email protected]>
4692
4693 * python/python.c (init__gdb_module): Add declaration.
4694
6c265988
SM
46952020-01-13 Simon Marchi <[email protected]>
4696
4697 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
4698 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
4699 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
4700 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
4701 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
4702 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
4703 * ada-exp.y (_initialize_ada_exp): Add declaration.
4704 * ada-lang.c (_initialize_ada_language): Add declaration.
4705 * ada-tasks.c (_initialize_tasks): Add declaration.
4706 * agent.c (_initialize_agent): Add declaration.
4707 * aix-thread.c (_initialize_aix_thread): Add declaration.
4708 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
4709 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
4710 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
4711 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
4712 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
4713 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4714 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
4715 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
4716 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
4717 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
4718 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
4719 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
4720 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
4721 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
4722 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
4723 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
4724 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
4725 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
4726 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
4727 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
4728 * annotate.c (_initialize_annotate): Add declaration.
4729 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
4730 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
4731 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
4732 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
4733 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
4734 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
4735 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
4736 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
4737 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
4738 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
4739 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
4740 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
4741 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4742 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
4743 * auto-load.c (_initialize_auto_load): Add declaration.
4744 * auxv.c (_initialize_auxv): Add declaration.
4745 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
4746 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
4747 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
4748 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
4749 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
4750 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
4751 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
4752 * breakpoint.c (_initialize_breakpoint): Add declaration.
4753 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
4754 * btrace.c (_initialize_btrace): Add declaration.
4755 * charset.c (_initialize_charset): Add declaration.
4756 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
4757 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4758 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4759 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
4760 * cli/cli-script.c (_initialize_cli_script): Add declaration.
4761 * cli/cli-style.c (_initialize_cli_style): Add declaration.
4762 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
4763 * coffread.c (_initialize_coffread): Add declaration.
4764 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
4765 * compile/compile.c (_initialize_compile): Add declaration.
4766 * complaints.c (_initialize_complaints): Add declaration.
4767 * completer.c (_initialize_completer): Add declaration.
4768 * copying.c (_initialize_copying): Add declaration.
4769 * corefile.c (_initialize_core): Add declaration.
4770 * corelow.c (_initialize_corelow): Add declaration.
4771 * cp-abi.c (_initialize_cp_abi): Add declaration.
4772 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4773 * cp-support.c (_initialize_cp_support): Add declaration.
4774 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4775 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4776 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4777 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4778 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4779 * ctfread.c (_initialize_ctfread): Add declaration.
4780 * d-lang.c (_initialize_d_language): Add declaration.
4781 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4782 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4783 * dbxread.c (_initialize_dbxread): Add declaration.
4784 * dcache.c (_initialize_dcache): Add declaration.
4785 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4786 * disasm.c (_initialize_disasm): Add declaration.
4787 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4788 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4789 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4790 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4791 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4792 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4793 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4794 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4795 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4796 * elfread.c (_initialize_elfread): Add declaration.
4797 * exec.c (_initialize_exec): Add declaration.
4798 * extension.c (_initialize_extension): Add declaration.
4799 * f-lang.c (_initialize_f_language): Add declaration.
4800 * f-valprint.c (_initialize_f_valprint): Add declaration.
4801 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4802 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4803 * filesystem.c (_initialize_filesystem): Add declaration.
4804 * findcmd.c (_initialize_mem_search): Add declaration.
4805 * findvar.c (_initialize_findvar): Add declaration.
4806 * fork-child.c (_initialize_fork_child): Add declaration.
4807 * frame-base.c (_initialize_frame_base): Add declaration.
4808 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4809 * frame.c (_initialize_frame): Add declaration.
4810 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4811 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4812 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4813 * gcore.c (_initialize_gcore): Add declaration.
4814 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4815 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4816 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4817 * gdbarch.c (_initialize_gdbarch): Add declaration.
4818 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4819 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4820 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4821 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4822 * go-lang.c (_initialize_go_language): Add declaration.
4823 * go32-nat.c (_initialize_go32_nat): Add declaration.
4824 * guile/guile.c (_initialize_guile): Add declaration.
4825 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4826 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4827 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4828 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4829 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4830 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4831 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4832 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4833 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4834 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4835 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4836 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4837 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4838 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4839 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4840 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4841 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4842 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4843 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4844 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4845 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4846 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4847 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4848 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4849 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4850 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4851 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4852 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4853 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4854 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4855 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4856 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4857 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4858 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4859 * infcall.c (_initialize_infcall): Add declaration.
4860 * infcmd.c (_initialize_infcmd): Add declaration.
4861 * inflow.c (_initialize_inflow): Add declaration.
4862 * infrun.c (_initialize_infrun): Add declaration.
4863 * interps.c (_initialize_interpreter): Add declaration.
4864 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4865 * jit.c (_initialize_jit): Add declaration.
4866 * language.c (_initialize_language): Add declaration.
4867 * linux-fork.c (_initialize_linux_fork): Add declaration.
4868 * linux-nat.c (_initialize_linux_nat): Add declaration.
4869 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4870 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4871 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4872 * m2-lang.c (_initialize_m2_language): Add declaration.
4873 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4874 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4875 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4876 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4877 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4878 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4879 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4880 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4881 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4882 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4883 * machoread.c (_initialize_machoread): Add declaration.
4884 * macrocmd.c (_initialize_macrocmd): Add declaration.
4885 * macroscope.c (_initialize_macroscope): Add declaration.
4886 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4887 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4888 * maint.c (_initialize_maint_cmds): Add declaration.
4889 * mdebugread.c (_initialize_mdebugread): Add declaration.
4890 * memattr.c (_initialize_mem): Add declaration.
4891 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4892 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4893 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4894 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4895 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4896 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4897 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4898 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4899 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4900 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4901 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4902 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4903 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4904 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4905 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4906 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4907 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4908 * mipsread.c (_initialize_mipsread): Add declaration.
4909 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4910 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4911 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4912 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4913 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4914 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4915 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4916 * nto-procfs.c (_initialize_procfs): Add declaration.
4917 * objc-lang.c (_initialize_objc_language): Add declaration.
4918 * observable.c (_initialize_observer): Add declaration.
4919 * opencl-lang.c (_initialize_opencl_language): Add declaration.
4920 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
4921 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
4922 * osabi.c (_initialize_gdb_osabi): Add declaration.
4923 * osdata.c (_initialize_osdata): Add declaration.
4924 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4925 * parse.c (_initialize_parse): Add declaration.
4926 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
4927 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
4928 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
4929 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
4930 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
4931 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
4932 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
4933 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
4934 * printcmd.c (_initialize_printcmd): Add declaration.
4935 * probe.c (_initialize_probe): Add declaration.
4936 * proc-api.c (_initialize_proc_api): Add declaration.
4937 * proc-events.c (_initialize_proc_events): Add declaration.
4938 * proc-service.c (_initialize_proc_service): Add declaration.
4939 * procfs.c (_initialize_procfs): Add declaration.
4940 * producer.c (_initialize_producer): Add declaration.
4941 * psymtab.c (_initialize_psymtab): Add declaration.
4942 * python/python.c (_initialize_python): Add declaration.
4943 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4944 * record-btrace.c (_initialize_record_btrace): Add declaration.
4945 * record-full.c (_initialize_record_full): Add declaration.
4946 * record.c (_initialize_record): Add declaration.
4947 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4948 * regcache.c (_initialize_regcache): Add declaration.
4949 * reggroups.c (_initialize_reggroup): Add declaration.
4950 * remote-notif.c (_initialize_notif): Add declaration.
4951 * remote-sim.c (_initialize_remote_sim): Add declaration.
4952 * remote.c (_initialize_remote): Add declaration.
4953 * reverse.c (_initialize_reverse): Add declaration.
4954 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4955 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4956 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4957 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4958 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4959 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4960 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4961 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4962 Add declaration.
4963 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4964 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4965 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4966 * rust-exp.y (_initialize_rust_exp): Add declaration.
4967 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4968 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4969 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4970 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4971 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4972 * score-tdep.c (_initialize_score_tdep): Add declaration.
4973 * ser-go32.c (_initialize_ser_dos): Add declaration.
4974 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4975 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4976 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4977 * ser-uds.c (_initialize_ser_socket): Add declaration.
4978 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4979 * serial.c (_initialize_serial): Add declaration.
4980 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4981 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4982 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4983 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4984 * skip.c (_initialize_step_skip): Add declaration.
4985 * sol-thread.c (_initialize_sol_thread): Add declaration.
4986 * solib-aix.c (_initialize_solib_aix): Add declaration.
4987 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4988 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4989 * solib-frv.c (_initialize_frv_solib): Add declaration.
4990 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4991 * solib-target.c (_initialize_solib_target): Add declaration.
4992 * solib.c (_initialize_solib): Add declaration.
4993 * source-cache.c (_initialize_source_cache): Add declaration.
4994 * source.c (_initialize_source): Add declaration.
4995 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4996 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4997 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4998 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4999 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5000 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5001 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5002 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5003 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5004 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5005 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5006 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5007 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5008 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5009 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5010 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5011 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5012 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5013 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5014 * stabsread.c (_initialize_stabsread): Add declaration.
5015 * stack.c (_initialize_stack): Add declaration.
5016 * stap-probe.c (_initialize_stap_probe): Add declaration.
5017 * std-regs.c (_initialize_frame_reg): Add declaration.
5018 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5019 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5020 * symfile.c (_initialize_symfile): Add declaration.
5021 * symmisc.c (_initialize_symmisc): Add declaration.
5022 * symtab.c (_initialize_symtab): Add declaration.
5023 * target.c (_initialize_target): Add declaration.
5024 * target-connection.c (_initialize_target_connection): Add
5025 declaration.
5026 * target-dcache.c (_initialize_target_dcache): Add declaration.
5027 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5028 * thread.c (_initialize_thread): Add declaration.
5029 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5030 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5031 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5032 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5033 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5034 * tracectf.c (_initialize_ctf): Add declaration.
5035 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5036 * tracefile.c (_initialize_tracefile): Add declaration.
5037 * tracepoint.c (_initialize_tracepoint): Add declaration.
5038 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5039 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5040 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5041 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5042 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5043 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5044 * tui/tui.c (_initialize_tui): Add declaration.
5045 * typeprint.c (_initialize_typeprint): Add declaration.
5046 * ui-style.c (_initialize_ui_style): Add declaration.
5047 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5048 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5049 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5050 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5051 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5052 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5053 * unittests/filtered_iterator-selftests.c
5054 (_initialize_filtered_iterator_selftests): Add declaration.
5055 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5056 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5057 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5058 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5059 * unittests/main-thread-selftests.c
5060 (_initialize_main_thread_selftests): Add declaration.
5061 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5062 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5063 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5064 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5065 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5066 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5067 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5068 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5069 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5070 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5071 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5072 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5073 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5074 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5075 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5076 declaration.
5077 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5078 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5079 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5080 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5081 * user-regs.c (_initialize_user_regs): Add declaration.
5082 * utils.c (_initialize_utils): Add declaration.
5083 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5084 * valops.c (_initialize_valops): Add declaration.
5085 * valprint.c (_initialize_valprint): Add declaration.
5086 * value.c (_initialize_values): Add declaration.
5087 * varobj.c (_initialize_varobj): Add declaration.
5088 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5089 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5090 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5091 * windows-nat.c (_initialize_windows_nat): Add declaration.
5092 (_initialize_check_for_gdb_ini): Add declaration.
5093 (_initialize_loadable): Add declaration.
5094 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5095 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5096 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5097 * xcoffread.c (_initialize_xcoffread): Add declaration.
5098 * xml-support.c (_initialize_xml_support): Add declaration.
5099 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5100 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5101 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5102 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5103
e2de1eec
SM
51042020-01-13 Simon Marchi <[email protected]>
5105
5106 * regformats/regdat.sh: Generate declaration for init function.
5107
e0037b4c
SM
51082020-01-13 Simon Marchi <[email protected]>
5109
5110 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5111 up.
5112 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5113 close_one_inferior>: New methods.
5114 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5115 pass down target to find_inferior_pid.
5116 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5117 Pass down target to find_inferior_ptid.
5118 (gdbsim_target::create_inferior): Pass down target to
5119 add_thread_silent.
5120 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5121 target down to find_inferior_ptid and switch_to_thread.
5122 (gdbsim_target::close): Update to call close_one_inferior.
5123 (struct resume_data): Remove.
5124 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5125 directly, rather than through a void pointer.
5126 (gdbsim_target::resume): Update to call resume_one_inferior.
5127
58920b5b
SM
51282020-01-12 Simon Marchi <[email protected]>
5129
5130 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5131
4ec89149
PA
51322020-01-12 Pedro Alves <[email protected]>
5133
5134 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5135 directly for the current inferior instead of
5136 discard_all_inferiors.
5137 (discard_all_inferiors): Delete.
5138
7c392d1d
TT
51392020-01-11 Tom Tromey <[email protected]>
5140
5141 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5142 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5143 deprecated_safe_get_selected_frame.
5144
d9ebdab7
TBA
51452020-01-10 Tankut Baris Aktemur <[email protected]>
5146
5147 * inferior.c (print_inferior): Switch inferior before printing it.
5148
f3c469b9
PA
51492020-01-10 Aleksandar Paunovic <[email protected]>
5150 Pedro Alves <[email protected]>
5151
5152 * progspace-and-thread.c (switch_to_program_space_and_thread):
5153 Assert there's an inferior for PSPACE. Use
5154 switch_to_inferior_no_thread to switch the inferior too.
5155 * progspace.c (program_space::~program_space): Call
5156 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5157 (program_space::free_all_objfiles): Don't call clear_symtab_users
5158 here.
5159 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5160
65c574f6
PA
51612020-01-10 Pedro Alves <[email protected]>
5162
5163 * NEWS: Mention multi-target debugging, "info connections", and
5164 "add-inferior -no-connection".
5165
2f4fcf00
PA
51662020-01-10 Pedro Alves <[email protected]>
5167
5168 * infrun.c: Include "target-connection.h".
5169 (check_multi_target_resumption): New.
5170 (proceed): Call it.
5171 * target-connection.c (make_target_connection_string): Make
5172 extern.
5173 * target-connection.h (make_target_connection_string): Declare.
5174
121b3efd
PA
51752020-01-10 Pedro Alves <[email protected]>
5176
5177 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5178 * inferior.c (uiout_field_connection): New function.
5179 (print_inferior): Add new "connection-id" column.
5180 (add_inferior_command): Show connection number/string of added
5181 inferior.
5182 * process-stratum-target.h
5183 (process_stratum_target::connection_string): New virtual method.
5184 (process_stratum_target::connection_number): New field.
5185 * remote.c (remote_target::connection_string): New override.
5186 * target-connection.c: New file.
5187 * target-connection.h: New file.
5188 * target.c (decref_target): Remove process_stratum targets from
5189 the connection list.
5190 (target_stack::push): Add process_stratum targets to the
5191 connection list.
5192
4f837581
PA
51932020-01-10 Pedro Alves <[email protected]>
5194
5195 Revert:
5196 2016-04-12 Pedro Alves <[email protected]>
5197 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5198 Remove references to name.
5199 * serial.h (struct serial) <name>: Delete.
5200
f4ec508e
PA
52012020-01-10 Pedro Alves <[email protected]>
5202
5203 * gdbarch-selftests.c (register_to_value_test): Remove "target
5204 already pushed" check.
5205
5b6d1e4f
PA
52062020-01-10 Pedro Alves <[email protected]>
5207 John Baldwin <[email protected]>
5208
5209 * aarch64-linux-nat.c
5210 (aarch64_linux_nat_target::thread_architecture): Adjust.
5211 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5212 (task_command_1): Likewise.
5213 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5214 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5215 (aix_thread_target::store_registers)
5216 (aix_thread_target::thread_alive): Adjust.
5217 * amd64-fbsd-tdep.c: Include "inferior.h".
5218 (amd64fbsd_get_thread_local_address): Pass down target.
5219 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5220 thread's gdbarch instead of target_gdbarch.
5221 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5222 get_last_target_status.
5223 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5224 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5225 inferiors.
5226 (update_inserted_breakpoint_locations): Skip if inferiors with no
5227 execution.
5228 (update_global_location_list): When handling moribund locations,
5229 find representative inferior for location's pspace, and use thread
5230 count of its process_stratum target.
5231 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5232 * bsd-uthread.c (bsd_uthread_target::wait): Use
5233 as_process_stratum_target and adjust thread_change_ptid and
5234 add_thread calls.
5235 (bsd_uthread_target::update_thread_list): Use
5236 as_process_stratum_target and adjust find_thread_ptid,
5237 thread_change_ptid and add_thread calls.
5238 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5239 find_thread_ptid call.
5240 * corelow.c (add_to_thread_list): Adjust add_thread call.
5241 (core_target_open): Adjust add_thread_silent and thread_count
5242 calls.
5243 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5244 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5245 * event-top.c (async_disconnect): Pop targets from all inferiors.
5246 * exec.c (add_target_sections): Push exec target on all inferiors
5247 sharing the program space.
5248 (remove_target_sections): Remove the exec target from all
5249 inferiors sharing the program space.
5250 (exec_on_vfork): New.
5251 * exec.h (exec_on_vfork): Declare.
5252 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5253 Pass it down.
5254 (fbsd_nat_target::update_thread_list): Adjust.
5255 (fbsd_nat_target::resume): Adjust.
5256 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5257 down.
5258 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5259 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5260 get_thread_arch_regcache call.
5261 * fork-child.c (gdb_startup_inferior): Pass target down to
5262 startup_inferior and set_executing.
5263 * gdbthread.h (struct process_stratum_target): Forward declare.
5264 (add_thread, add_thread_silent, add_thread_with_info)
5265 (in_thread_list): Add process_stratum_target parameter.
5266 (find_thread_ptid(inferior*, ptid_t)): New overload.
5267 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5268 parameter.
5269 (all_threads()): Delete overload.
5270 (all_threads, all_non_exited_threads): Add process_stratum_target
5271 parameter.
5272 (all_threads_safe): Use brace initialization.
5273 (thread_count): Add process_stratum_target parameter.
5274 (set_resumed, set_running, set_stop_requested, set_executing)
5275 (threads_are_executing, finish_thread_state): Add
5276 process_stratum_target parameter.
5277 (switch_to_thread): Use is_current_thread.
5278 * i386-fbsd-tdep.c: Include "inferior.h".
5279 (i386fbsd_get_thread_local_address): Pass down target.
5280 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5281 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5282 have_inferiors check.
5283 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5284 (inf_ptrace_target::attach): Adjust.
5285 * infcall.c (run_inferior_call): Adjust.
5286 * infcmd.c (run_command_1): Pass target to
5287 scoped_finish_thread_state.
5288 (proceed_thread_callback): Skip inferiors with no execution.
5289 (continue_command): Rename 'all_threads' local to avoid hiding
5290 'all_threads' function. Adjust get_last_target_status call.
5291 (prepare_one_step): Adjust set_running call.
5292 (signal_command): Use user_visible_resume_target. Compare thread
5293 pointers instead of inferior_ptid.
5294 (info_program_command): Adjust to pass down target.
5295 (attach_command): Mark target's 'thread_executing' flag.
5296 (stop_current_target_threads_ns): New, factored out from ...
5297 (interrupt_target_1): ... this. Switch inferior before making
5298 target calls.
5299 * inferior-iter.h
5300 (struct all_inferiors_iterator, struct all_inferiors_range)
5301 (struct all_inferiors_safe_range)
5302 (struct all_non_exited_inferiors_range): Filter on
5303 process_stratum_target too. Remove explicit.
5304 * inferior.c (inferior::inferior): Push dummy target on target
5305 stack.
5306 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5307 Add process_stratum_target parameter, and pass it down.
5308 (have_live_inferiors): Adjust.
5309 (switch_to_inferior_and_push_target): New.
5310 (add_inferior_command, clone_inferior_command): Handle
5311 "-no-connection" parameter. Use
5312 switch_to_inferior_and_push_target.
5313 (_initialize_inferior): Mention "-no-connection" option in
5314 the help of "add-inferior" and "clone-inferior" commands.
5315 * inferior.h: Include "process-stratum-target.h".
5316 (interrupt_target_1): Use bool.
5317 (struct inferior) <push_target, unpush_target, target_is_pushed,
5318 find_target_beneath, top_target, process_target, target_at,
5319 m_stack>: New.
5320 (discard_all_inferiors): Delete.
5321 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
5322 (all_inferiors, all_non_exited_inferiors): Add
5323 process_stratum_target parameter.
5324 * infrun.c: Include "gdb_select.h" and <unordered_map>.
5325 (target_last_proc_target): New global.
5326 (follow_fork_inferior): Push target on new inferior. Pass target
5327 to add_thread_silent. Call exec_on_vfork. Handle target's
5328 reference count.
5329 (follow_fork): Adjust get_last_target_status call. Also consider
5330 target.
5331 (follow_exec): Push target on new inferior.
5332 (struct execution_control_state) <target>: New field.
5333 (user_visible_resume_target): New.
5334 (do_target_resume): Call target_async.
5335 (resume_1): Set target's threads_executing flag. Consider resume
5336 target.
5337 (commit_resume_all_targets): New.
5338 (proceed): Also consider resume target. Skip threads of inferiors
5339 with no execution. Commit resumtion in all targets.
5340 (start_remote): Pass current inferior to wait_for_inferior.
5341 (infrun_thread_stop_requested): Consider target as well. Pass
5342 thread_info pointer to clear_inline_frame_state instead of ptid.
5343 (infrun_thread_thread_exit): Consider target as well.
5344 (random_pending_event_thread): New inferior parameter. Use it.
5345 (do_target_wait): Rename to ...
5346 (do_target_wait_1): ... this. Add inferior parameter, and pass it
5347 down.
5348 (threads_are_resumed_pending_p, do_target_wait): New.
5349 (prepare_for_detach): Adjust calls.
5350 (wait_for_inferior): New inferior parameter. Handle it. Use
5351 do_target_wait_1 instead of do_target_wait.
5352 (fetch_inferior_event): Adjust. Switch to representative
5353 inferior. Pass target down.
5354 (set_last_target_status): Add process_stratum_target parameter.
5355 Save target in global.
5356 (get_last_target_status): Add process_stratum_target parameter and
5357 handle it.
5358 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
5359 (context_switch): Check inferior_ptid == null_ptid before calling
5360 inferior_thread().
5361 (get_inferior_stop_soon): Pass down target.
5362 (wait_one): Rename to ...
5363 (poll_one_curr_target): ... this.
5364 (struct wait_one_event): New.
5365 (wait_one): New.
5366 (stop_all_threads): Adjust.
5367 (handle_no_resumed, handle_inferior_event): Adjust to consider the
5368 event's target.
5369 (switch_back_to_stepped_thread): Also consider target.
5370 (print_stop_event): Update.
5371 (normal_stop): Update. Also consider the resume target.
5372 * infrun.h (wait_for_inferior): Remove declaration.
5373 (user_visible_resume_target): New declaration.
5374 (get_last_target_status, set_last_target_status): New
5375 process_stratum_target parameter.
5376 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5377 process_stratum_target parameter, and use it.
5378 (clear_inline_frame_state (thread_info*)): New.
5379 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5380 process_stratum_target parameter.
5381 (clear_inline_frame_state (thread_info*)): Declare.
5382 * linux-fork.c (delete_checkpoint_command): Pass target down to
5383 find_thread_ptid.
5384 (checkpoint_command): Adjust.
5385 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
5386 instead of just tweaking inferior_ptid.
5387 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
5388 (exit_lwp): Pass target down to find_thread_ptid.
5389 (attach_proc_task_lwp_callback): Pass target down to
5390 add_thread/set_running/set_executing.
5391 (linux_nat_target::attach): Pass target down to
5392 thread_change_ptid.
5393 (get_detach_signal): Pass target down to find_thread_ptid.
5394 Consider last target status's target.
5395 (linux_resume_one_lwp_throw, resume_lwp)
5396 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
5397 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
5398 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
5399 (linux_nat_target::async_wait_fd): New.
5400 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
5401 target down.
5402 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
5403 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
5404 * linux-thread-db.c (struct thread_db_info::process_target): New
5405 field.
5406 (add_thread_db_info): Save target.
5407 (get_thread_db_info): New process_stratum_target parameter. Also
5408 match target.
5409 (delete_thread_db_info): New process_stratum_target parameter.
5410 Also match target.
5411 (thread_from_lwp): Adjust to pass down target.
5412 (thread_db_notice_clone): Pass down target.
5413 (check_thread_db_callback): Pass down target.
5414 (try_thread_db_load_1): Always push the thread_db target.
5415 (try_thread_db_load, record_thread): Pass target down.
5416 (thread_db_target::detach): Pass target down. Always unpush the
5417 thread_db target.
5418 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
5419 target down. Always unpush the thread_db target.
5420 (find_new_threads_callback, thread_db_find_new_threads_2)
5421 (thread_db_target::update_thread_list): Pass target down.
5422 (thread_db_target::pid_to_str): Pass current inferior down.
5423 (thread_db_target::get_thread_local_address): Pass target down.
5424 (thread_db_target::resume, maintenance_check_libthread_db): Pass
5425 target down.
5426 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
5427 * procfs.c (procfs_target::procfs_init_inferior): Declare.
5428 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
5429 (procfs_init_inferior): Rename to ...
5430 (procfs_target::procfs_init_inferior): ... this and adjust.
5431 (procfs_target::create_inferior, procfs_notice_thread)
5432 (procfs_do_thread_registers): Adjust.
5433 * ppc-fbsd-tdep.c: Include "inferior.h".
5434 (ppcfbsd_get_thread_local_address): Pass down target.
5435 * proc-service.c (ps_xfer_memory): Switch current inferior and
5436 program space as well.
5437 (get_ps_regcache): Pass target down.
5438 * process-stratum-target.c
5439 (process_stratum_target::thread_address_space)
5440 (process_stratum_target::thread_architecture): Pass target down.
5441 * process-stratum-target.h
5442 (process_stratum_target::threads_executing): New field.
5443 (as_process_stratum_target): New.
5444 * ravenscar-thread.c
5445 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
5446 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
5447 down.
5448 * record-btrace.c (record_btrace_target::info_record): Adjust.
5449 (record_btrace_target::record_method)
5450 (record_btrace_target::record_is_replaying)
5451 (record_btrace_target::fetch_registers)
5452 (get_thread_current_frame_id, record_btrace_target::resume)
5453 (record_btrace_target::wait, record_btrace_target::stop): Pass
5454 target down.
5455 * record-full.c (record_full_wait_1): Switch to event thread.
5456 Pass target down.
5457 * regcache.c (regcache::regcache)
5458 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
5459 process_stratum_target parameter and handle it.
5460 (current_thread_target): New global.
5461 (get_thread_regcache): Add process_stratum_target parameter and
5462 handle it. Switch inferior before calling target method.
5463 (get_thread_regcache): Pass target down.
5464 (get_thread_regcache_for_ptid): Pass target down.
5465 (registers_changed_ptid): Add process_stratum_target parameter and
5466 handle it.
5467 (registers_changed_thread, registers_changed): Pass target down.
5468 (test_get_thread_arch_aspace_regcache): New.
5469 (current_regcache_test): Define a couple local test_target_ops
5470 instances and use them for testing.
5471 (readwrite_regcache): Pass process_stratum_target parameter.
5472 (cooked_read_test, cooked_write_test): Pass mock_target down.
5473 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
5474 (get_thread_arch_aspace_regcache): Add process_stratum_target
5475 parameter.
5476 (regcache::target): New method.
5477 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
5478 (regcache::registers_changed_ptid): Add process_stratum_target
5479 parameter.
5480 (regcache::m_target): New field.
5481 (registers_changed_ptid): Add process_stratum_target parameter.
5482 * remote.c (remote_state::supports_vCont_probed): New field.
5483 (remote_target::async_wait_fd): New method.
5484 (remote_unpush_and_throw): Add remote_target parameter.
5485 (get_current_remote_target): Adjust.
5486 (remote_target::remote_add_inferior): Push target.
5487 (remote_target::remote_add_thread)
5488 (remote_target::remote_notice_new_inferior)
5489 (get_remote_thread_info): Pass target down.
5490 (remote_target::update_thread_list): Skip threads of inferiors
5491 bound to other targets. (remote_target::close): Don't discard
5492 inferiors. (remote_target::add_current_inferior_and_thread)
5493 (remote_target::process_initial_stop_replies)
5494 (remote_target::start_remote)
5495 (remote_target::remote_serial_quit_handler): Pass down target.
5496 (remote_target::remote_unpush_target): New remote_target
5497 parameter. Unpush the target from all inferiors.
5498 (remote_target::remote_unpush_and_throw): New remote_target
5499 parameter. Pass it down.
5500 (remote_target::open_1): Check whether the current inferior has
5501 execution instead of checking whether any inferior is live. Pass
5502 target down.
5503 (remote_target::remote_detach_1): Pass down target. Use
5504 remote_unpush_target.
5505 (extended_remote_target::attach): Pass down target.
5506 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
5507 (remote_target::append_resumption): Pass down target.
5508 (remote_target::append_pending_thread_resumptions)
5509 (remote_target::remote_resume_with_hc, remote_target::resume)
5510 (remote_target::commit_resume): Pass down target.
5511 (remote_target::remote_stop_ns): Check supports_vCont_probed.
5512 (remote_target::interrupt_query)
5513 (remote_target::remove_new_fork_children)
5514 (remote_target::check_pending_events_prevent_wildcard_vcont)
5515 (remote_target::remote_parse_stop_reply)
5516 (remote_target::process_stop_reply): Pass down target.
5517 (first_remote_resumed_thread): New remote_target parameter. Pass
5518 it down.
5519 (remote_target::wait_as): Pass down target.
5520 (unpush_and_perror): New remote_target parameter. Pass it down.
5521 (remote_target::readchar, remote_target::remote_serial_write)
5522 (remote_target::getpkt_or_notif_sane_1)
5523 (remote_target::kill_new_fork_children, remote_target::kill): Pass
5524 down target.
5525 (remote_target::mourn_inferior): Pass down target. Use
5526 remote_unpush_target.
5527 (remote_target::core_of_thread)
5528 (remote_target::remote_btrace_maybe_reopen): Pass down target.
5529 (remote_target::pid_to_exec_file)
5530 (remote_target::thread_handle_to_thread_info): Pass down target.
5531 (remote_target::async_wait_fd): New.
5532 * riscv-fbsd-tdep.c: Include "inferior.h".
5533 (riscv_fbsd_get_thread_local_address): Pass down target.
5534 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
5535 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
5536 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
5537 Adjust.
5538 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
5539 * solib-svr4.c (enable_break): Pass down target.
5540 * spu-multiarch.c (parse_spufs_run): Pass down target.
5541 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
5542 * target-delegates.c: Regenerate.
5543 * target.c (g_target_stack): Delete.
5544 (current_top_target): Return the current inferior's top target.
5545 (target_has_execution_1): Refer to the passed-in inferior's top
5546 target.
5547 (target_supports_terminal_ours): Check whether the initial
5548 inferior was already created.
5549 (decref_target): New.
5550 (target_stack::push): Incref/decref the target.
5551 (push_target, push_target, unpush_target): Adjust.
5552 (target_stack::unpush): Defref target.
5553 (target_is_pushed): Return bool. Adjust to refer to the current
5554 inferior's target stack.
5555 (dispose_inferior): Delete, and inline parts ...
5556 (target_preopen): ... here. Only dispose of the current inferior.
5557 (target_detach): Hold strong target reference while detaching.
5558 Pass target down.
5559 (target_thread_name): Add assertion.
5560 (target_resume): Pass down target.
5561 (target_ops::beneath, find_target_at): Adjust to refer to the
5562 current inferior's target stack.
5563 (get_dummy_target): New.
5564 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
5565 has a thread running.
5566 (initialize_targets): Rename to ...
5567 (_initialize_target): ... this.
5568 * target.h: Include "gdbsupport/refcounted-object.h".
5569 (struct target_ops): Inherit refcounted_object.
5570 (target_ops::shortname, target_ops::longname): Make const.
5571 (target_ops::async_wait_fd): New method.
5572 (decref_target): Declare.
5573 (struct target_ops_ref_policy): New.
5574 (target_ops_ref): New typedef.
5575 (get_dummy_target): Declare function.
5576 (target_is_pushed): Return bool.
5577 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
5578 (all_matching_threads_iterator::all_matching_threads_iterator):
5579 Handle filter target.
5580 * thread-iter.h (struct all_matching_threads_iterator, struct
5581 all_matching_threads_range, class all_non_exited_threads_range):
5582 Filter by target too. Remove explicit.
5583 * thread.c (threads_executing): Delete.
5584 (inferior_thread): Pass down current inferior.
5585 (clear_thread_inferior_resources): Pass down thread pointer
5586 instead of ptid_t.
5587 (add_thread_silent, add_thread_with_info, add_thread): Add
5588 process_stratum_target parameter. Use it for thread and inferior
5589 searches.
5590 (is_current_thread): New.
5591 (thread_info::deletable): Use it.
5592 (find_thread_ptid, thread_count, in_thread_list)
5593 (thread_change_ptid, set_resumed, set_running): New
5594 process_stratum_target parameter. Pass it down.
5595 (set_executing): New process_stratum_target parameter. Pass it
5596 down. Adjust reference to 'threads_executing'.
5597 (threads_are_executing): New process_stratum_target parameter.
5598 Adjust reference to 'threads_executing'.
5599 (set_stop_requested, finish_thread_state): New
5600 process_stratum_target parameter. Pass it down.
5601 (switch_to_thread): Also match inferior.
5602 (switch_to_thread): New process_stratum_target parameter. Pass it
5603 down.
5604 (update_threads_executing): Reimplement.
5605 * top.c (quit_force): Pop targets from all inferior.
5606 (gdb_init): Don't call initialize_targets.
5607 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
5608 Declare.
5609 (windows_add_thread, windows_delete_thread): Adjust.
5610 (get_windows_debug_event): Rename to ...
5611 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
5612 * tracefile-tfile.c (tfile_target_open): Pass down target.
5613 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5614 Forward declare.
5615 (switch_to_thread): Add process_stratum_target parameter.
5616 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5617 parameter. Use it.
5618 (mi_on_resume): Pass target down.
5619 * nat/fork-inferior.c (startup_inferior): Add
5620 process_stratum_target parameter. Pass it down.
5621 * nat/fork-inferior.h (startup_inferior): Add
5622 process_stratum_target parameter.
5623 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5624
75c6c844
PA
56252020-01-10 Pedro Alves <[email protected]>
5626
5627 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5628 directly. Instead find the first thread in the thread list and
5629 use switch_to_thread.
5630
78f2c40a
PA
56312020-01-10 Pedro Alves <[email protected]>
5632
5633 * remote.c (remote_target::remote_add_inferior): Don't bind a
5634 process to the current inferior if the current inferior is already
5635 bound to a process.
5636
e7af6c70
TBA
56372020-01-10 Tankut Baris Aktemur <[email protected]>
5638 Pedro Alves <[email protected]>
5639
5640 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5641 If no process is specified, return null_ptid instead of
5642 inferior_ptid.
5643 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5644 TARGET_WAITKIND_SIGNALLED with no pid.
5645
31ba933e
PA
56462020-01-10 Pedro Alves <[email protected]>
5647
5648 * remote.c (first_remote_resumed_thread): New.
5649 (remote_target::wait_as): Use it as default event_ptid instead of
5650 inferior_ptid.
5651
735fc2ca
PA
56522020-01-10 Pedro Alves <[email protected]>
5653
5654 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5655
c17e02e1
PA
56562020-01-10 Pedro Alves <[email protected]>
5657
5658 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5659 not -1.
5660
ab1ddbcf
PA
56612020-01-10 Pedro Alves <[email protected]>
5662
5663 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5664 ptid to get_last_target_status.
5665 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5666 ptid to get_last_target_status.
5667 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5668 get_last_target_status.
5669 (info_program_command): Don't pass a target_waitstatus to
5670 get_last_target_status.
5671 * infrun.c (init_wait_for_inferior): Use
5672 nullify_last_target_wait_ptid.
5673 (get_last_target_status): Handle nullptr arguments.
5674 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5675 (print_stop_event): Don't pass a ptid to get_last_target_status.
5676 (normal_stop): Don't pass a ptid to get_last_target_status.
5677 * infrun.h (get_last_target_status, set_last_target_status): Move
5678 comments here and update.
5679 (nullify_last_target_wait_ptid): Declare.
5680 * linux-fork.c (fork_load_infrun_state): Remove local extern
5681 declaration of nullify_last_target_wait_ptid.
5682 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
5683 to get_last_target_status.
5684
f3f8ece4
PA
56852020-01-10 Pedro Alves <[email protected]>
5686
5687 * gdbthread.h (scoped_restore_current_thread)
5688 <dont_restore, restore, m_dont_restore>: Declare.
5689 * thread.c (thread_alive): Add assertion. Return bool.
5690 (switch_to_thread_if_alive): New.
5691 (prune_threads): Switch inferior/thread.
5692 (print_thread_info_1): Switch thread before calling target methods.
5693 (scoped_restore_current_thread::restore): New, factored out from
5694 ...
5695 (scoped_restore_current_thread::~scoped_restore_current_thread):
5696 ... this.
5697 (scoped_restore_current_thread::scoped_restore_current_thread):
5698 Add assertion.
5699 (thread_apply_all_command, thread_select): Use
5700 switch_to_thread_if_alive.
5701 * infrun.c (proceed, restart_threads, handle_signal_stop)
5702 (switch_back_to_stepped_thread): Switch current thread before
5703 calling target methods.
5704
db2d40f7
PA
57052020-01-10 Pedro Alves <[email protected]>
5706
5707 * inferior.c (switch_to_inferior_no_thread): New function,
5708 factored out from ...
5709 (inferior_command): ... here.
5710 * inferior.h (switch_to_inferior_no_thread): Declare.
5711 * mi/mi-main.c (run_one_inferior): Use
5712 switch_to_inferior_no_thread.
5713
bd420a2d
PA
57142020-01-10 Pedro Alves <[email protected]>
5715
5716 * infcmd.c (kill_command): Remove dead code.
5717
ddf5db90
PA
57182020-01-10 Pedro Alves <[email protected]>
5719
5720 * remote.c (remote_target::mourn_inferior): No longer check
5721 whether the target is running.
5722
5018ce90
PA
57232020-01-10 Pedro Alves <[email protected]>
5724
5725 * corelow.c (core_target::has_execution): Change parameter type to
5726 inferior pointer.
5727 * inferior.c (number_of_live_inferiors): Use
5728 inferior::has_execution instead of target_has_execution_1.
5729 * inferior.h (inferior::has_execution): New.
5730 * linux-thread-db.c (thread_db_target::update_thread_list): Use
5731 inferior::has_execution instead of target_has_execution_1.
5732 * process-stratum-target.c
5733 (process_stratum_target::has_execution): Change parameter type to
5734 inferior pointer. Check the inferior's PID instead of
5735 inferior_ptid.
5736 * process-stratum-target.h
5737 (process_stratum_target::has_execution): Change parameter type to
5738 inferior pointer.
5739 * record-full.c (record_full_core_target::has_execution): Change
5740 parameter type to inferior pointer.
5741 * target.c (target_has_execution_1): Change parameter type to
5742 inferior pointer.
5743 (target_has_execution_current): Adjust.
5744 * target.h (target_ops::has_execution): Change parameter type to
5745 inferior pointer.
5746 (target_has_execution_1): Change parameter type to inferior
5747 pointer. Change return type to bool.
5748 * tracefile.h (tracefile_target::has_execution): Change parameter
5749 type to inferior pointer.
5750
74375d18
PA
57512020-01-10 Pedro Alves <[email protected]>
5752
5753 * exceptions.c (print_flush): Remove current_top_target() check.
5754
acdf84a6
PA
57552020-01-10 Pedro Alves <[email protected]>
5756
5757 * remote.c (show_remote_exec_file): Show the current inferior's
5758 exec-file instead of the command variable's value.
5759
ec506636
PA
57602020-01-10 Pedro Alves <[email protected]>
5761
5762 * record-full.c (record_full_resume_ptid): New global.
5763 (record_full_target::resume): Set it.
5764 (record_full_wait_1): Use record_full_resume_ptid instead of
5765 inferior_ptid.
5766
873657b9
PA
57672020-01-10 Pedro Alves <[email protected]>
5768
5769 * gdbthread.h (scoped_restore_current_thread)
5770 <dont_restore, restore, m_dont_restore>: Declare.
5771 * thread.c (thread_alive): Add assertion. Return bool.
5772 (switch_to_thread_if_alive): New.
5773 (prune_threads): Switch inferior/thread.
5774 (print_thread_info_1): Switch thread before calling target methods.
5775 (scoped_restore_current_thread::restore): New, factored out from
5776 ...
5777 (scoped_restore_current_thread::~scoped_restore_current_thread):
5778 ... this.
5779 (scoped_restore_current_thread::scoped_restore_current_thread):
5780 Add assertion.
5781 (thread_apply_all_command, thread_select): Use
5782 switch_to_thread_if_alive.
5783
7f0ae84c
GB
57842020-01-10 George Barrett <[email protected]>
5785
5786 * stap-probe.c (stap_modify_semaphore): Don't check for null
5787 semaphores.
5788 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5789 for null semaphores.
5790
f5a7c406
AB
57912020-01-09 Andrew Burgess <[email protected]>
5792
5793 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5794 all source windows, and maintain horizontal scroll status while
5795 doing so.
5796
9ae6bf64
TT
57972020-01-09 Tom Tromey <[email protected]>
5798
5799 PR tui/18932:
5800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5801 update_source_window, not print_source_lines.
5802
b2efe70c
AB
58032020-01-09 Andrew Burgess <[email protected]>
5804
5805 * tui/tui.c (tui_enable): Register tui hooks after calling
5806 tui_display_main.
5807
5f23a082
CB
58082020-01-09 Christian Biesinger <[email protected]>
5809
5810 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5811
3061113b
SM
58122020-01-08 Simon Marchi <[email protected]>
5813
5814 * thread.c (print_thread_info_1): Fix indentation.
5815
57d75002
CB
58162020-01-09 Christian Biesinger <[email protected]>
5817
5818 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5819 unique_xmalloc_ptr outside the if to always free the demangled name.
5820
6a053cb1
TT
58212020-01-08 Tom Tromey <[email protected]>
5822
5823 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5824 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5825 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5826 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5827 Remove.
5828 (section_offsets): New typedef.
5829 * symtab.c (fixup_section, get_msymbol_address): Update.
5830 * symmisc.c (dump_msymbols): Update.
5831 * symfile.h (relative_addr_info_to_section_offsets)
5832 (symfile_map_offsets_to_segments): Update.
5833 * symfile.c (build_section_addr_info_from_objfile)
5834 (init_objfile_sect_indices): Update.
5835 (struct place_section_arg): Change type of "offsets".
5836 (place_section): Update.
5837 (relative_addr_info_to_section_offsets): Change type of
5838 "section_offsets". Remove "num_sections" parameter.
5839 (default_symfile_offsets, syms_from_objfile_1)
5840 (set_objfile_default_section_offset): Update.
5841 (reread_symbols): No need to preserve section offsets by hand.
5842 (symfile_map_offsets_to_segments): Change type of "offsets".
5843 * stap-probe.c (relocate_address): Update.
5844 * stabsread.h (process_one_symbol): Update.
5845 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5846 (solib_target_relocate_section_addresses): Update.
5847 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5848 Update.
5849 * solib-frv.c (frv_relocate_main_executable): Update.
5850 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5851 * solib-aix.c (solib_aix_get_section_offsets): Change return
5852 type.
5853 (solib_aix_solib_create_inferior_hook): Update.
5854 * remote.c (remote_target::get_offsets): Update.
5855 * psymtab.c (find_pc_sect_psymtab): Update.
5856 * psympriv.h (struct partial_symbol) <address, text_low,
5857 text_high>: Update.
5858 * objfiles.h (obj_section_offset): Update.
5859 (struct objfile) <section_offsets>: Change type.
5860 <num_sections>: Remove.
5861 (objfile_relocate): Update.
5862 * objfiles.c (entry_point_address_query): Update
5863 (relocate_one_symbol): Change type of "section_offsets".
5864 (objfile_relocate1, objfile_relocate1): Change type of
5865 "new_offsets".
5866 (objfile_rebase1): Update.
5867 * mipsread.c (mipscoff_symfile_read): Update.
5868 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5869 parameter.
5870 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5871 (parse_external, psymtab_to_symtab_1): Update.
5872 * machoread.c (macho_symfile_offsets): Update.
5873 * ia64-tdep.c (ia64_find_unwind_table): Update.
5874 * hppa-tdep.c (read_unwind_info): Update.
5875 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5876 * dwarf2read.c (create_addrmap_from_index)
5877 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5878 (process_psymtab_comp_unit_reader, add_partial_symbol)
5879 (add_partial_subprogram, process_full_comp_unit)
5880 (read_file_scope, read_func_scope, read_lexical_block_scope)
5881 (read_call_site_scope, dwarf2_rnglists_process)
5882 (dwarf2_ranges_process, dwarf2_ranges_read)
5883 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5884 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5885 Update.
5886 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5887 Update.
5888 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5889 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5890 (process_one_symbol): Change type of "section_offsets".
5891 * ctfread.c (get_objfile_text_range): Update.
5892 * coffread.c (coff_symtab_read, enter_linenos)
5893 (process_coff_symbol): Update.
5894 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5895 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5896
456e800a
TT
58972020-01-08 Tom Tromey <[email protected]>
5898
5899 * dwarf2read.c (parse_macro_definition): Use std::string.
5900 (parse_macro_definition): Likewise.
5901
6dfa2fc2
TT
59022020-01-08 Tom Tromey <[email protected]>
5903
5904 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5905 (ATTR_ALLOC_CHUNK): Remove.
5906
421d1616
TT
59072020-01-08 Tom Tromey <[email protected]>
5908
5909 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5910
43816ebc
TT
59112020-01-08 Tom Tromey <[email protected]>
5912
5913 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5914 (dwarf2_compute_name, open_dwo_file): Likewise.
5915 (process_enumeration_scope): Use std::vector.
5916 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5917 (partial_die_info::fixup, dwarf2_start_subfile)
5918 (guess_full_die_structure_name, dwarf2_name): Likewise.
5919 (determine_prefix): Update.
5920 (guess_full_die_structure_name): Make return type const.
5921 (partial_die_full_name): Return unique_xmalloc_ptr.
5922 (DW_FIELD_ALLOC_CHUNK): Remove.
5923
4212d509
TT
59242020-01-07 Tom Tromey <[email protected]>
5925
5926 PR build/24937:
5927 * stap-probe.c (class stap_static_probe_ops): Add constructor.
5928
06a6207a
JT
59292020-01-02 Jon Turney <[email protected]>
5930
5931 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
5932
153d79c4
AB
59332020-01-06 Andrew Burgess <[email protected]>
5934
5935 * stack.c (print_frame_info): Move disassemble_next_line code
5936 inside source_print block.
5937
66182876
EZ
59382020-01-06 Eli Zaretskii <[email protected]>
5939
5940 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
5941 gdb/signals.h, as we are now using native signal symbols.
5942
cbfa8581
SV
59432020-01-06 Shahab Vahedi <[email protected]>
5944
5945 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5946 overflow by an early check of content vs threshold.
5947 * tui/tui-source.c (tui_source_window::line_is_displayed):
5948 Likewise.
5949
3f602821
EZ
59502020-01-06 Eli Zaretskii <[email protected]>
5951
5952 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5953
a08c904d
JT
59542020-01-02 Jon Turney <[email protected]>
5955
5956 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5957 export table if no section contains it's RVA.
5958
89a65580
EZ
59592020-01-06 Eli Zaretskii <[email protected]>
5960
5961 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5962
8b7fcda2
HD
59632020-01-06 Hannes Domani <[email protected]>
5964
5965 * source.c (print_source_lines_base): Set last_line_listed.
5966
a61b4f69
SV
59672020-01-06 Shahab Vahedi <[email protected]>
5968
5969 * tui/tui-disasm.c: Remove trailing spaces.
5970
559e7e50
EZ
59712020-01-06 Eli Zaretskii <[email protected]>
5972 Pedro Alves <[email protected]>
5973
5974 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5975 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5976 (windows_gdb_signal_to_target): New function, uses the above
5977 enumeration to convert GDB internal signal codes to equivalent
5978 Windows codes.
5979 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5980 * windows-nat.c: Include "gdb_wait.h".
5981 (get_windows_debug_event): Extract the fatal exception from the
5982 exit status and convert to the equivalent Posix signal number.
5983 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5984 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5985 * gdbsupport/gdb_wait.c: New file, implements
5986 windows_status_to_termsig.
5987 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5988 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5989
f2302a34
AB
59902020-01-05 Andrew Burgess <[email protected]>
5991
5992 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5993 show_layout.
5994
6a5206eb
LM
59952020-01-05 Luis Machado <[email protected]>
5996
5997 * aarch64-linux-nat.c
5998 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5999 and bfd_mach_aarch64.
6000
6ec1d75e
PW
60012020-01-03 Philippe Waroquiers <[email protected]>
6002
6003 * ui-file.c (stdio_file::can_emit_style_escape)
6004 (tee_file::can_emit_style_escape): Ensure style is used also on
6005 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6006 to gdb_stdout.
6007 * main.c (set_gdb_data_directory): Use file style to output the
6008 warning that the given pathname is not a directory.
6009 * top.c (show_history_filename, gdb_safe_append_history)
6010 (show_gdb_datadir): Use file style.
6011
44f81a76
HD
60122020-01-03 Hannes Domani <[email protected]>
6013
6014 * solib-target.c (struct lm_info_target):
6015 Change offsets to be a unique_xmalloc_ptr.
6016 (solib_target_relocate_section_addresses): Update.
6017
25057eb0
HD
60182020-01-03 Hannes Domani <[email protected]>
6019
6020 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6021
6e2118f5
BE
60222020-01-03 Bernd Edlinger <[email protected]>
6023
6024 * MAINTAINERS (Write After Approval): Add myself.
6025
8133c7dc
LM
60262020-01-02 Luis Machado <[email protected]>
6027
6028 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6029 Cell BE architecture.
6030 * target.h (struct target_ops) <thread_architecture>: Likewise.
6031
48189bec
HD
60322020-01-01 Hannes Domani <[email protected]>
6033
6034 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6035
ead1063b
HD
60362020-01-01 Hannes Domani <[email protected]>
6037
6038 * MAINTAINERS (Write After Approval): Add myself.
6039
e5d78223
JB
60402020-01-01 Joel Brobecker <[email protected]>
6041
6042 * gdbarch.sh: Update copyright year range of generated files.
6043
b811d2c2
JB
60442020-01-01 Joel Brobecker <[email protected]>
6045
6046 Update copyright year range in all GDB files.
6047
5f4def5c
JB
60482020-01-01 Joel Brobecker <[email protected]>
6049
6050 * copyright.py: Convert to Python 3.
6051
51fd4002
JB
60522020-01-01 Joel Brobecker <[email protected]>
6053
6054 * copyright.py: Adapt after move of gnulib directory from gdb
6055 directory to toplevel directory.
6056
5fb651f2
JB
60572020-01-01 Joel Brobecker <[email protected]>
6058
6059 * copyright.py (main): Exit if run from the wrong directory.
6060
5dd8bf88
JB
60612020-01-01 Joel Brobecker <[email protected]>
6062
6063 * top.c (print_gdb_version): Change copyright year to 2020.
6064
9f71dacb 60652020-01-01 Joel Brobecker <[email protected]>
3d34df0a 6066
9f71dacb 6067 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 6068
9f71dacb 6069For older changes see ChangeLog-2019.
c906108c
SS
6070\f
6071Local Variables:
6072mode: change-log
6073left-margin: 8
6074fill-column: 74
6075version-control: never
57da7796 6076coding: utf-8
c906108c 6077End:
This page took 5.652967 seconds and 4 git commands to generate.