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