]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Don't write to inferior_ptid in target.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a0776b13
PA
12020-06-18 Pedro Alves <palves@redhat.com>
2
3 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4 instead of writing to inferior_ptid.
5
6155c136
PA
62020-06-18 Pedro Alves <palves@redhat.com>
7
8 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
9 added thread.
10 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
11 to the added thread.
12 (inf_ptrace_target::detach_success): Use switch_to_no_thread
13 instead of writing to inferior_ptid.
14
c5316fc6
PA
152020-06-18 Pedro Alves <palves@redhat.com>
16
17 * gdbarch-selftests.c: Include "progspace-and-thread.h".
18 (register_to_value_test): Mock a program_space too. Heap-allocate
19 the address space. Don't write to inferior_ptid. Use
20 switch_to_thread instead.
21
8df01799
PA
222020-06-18 Pedro Alves <palves@redhat.com>
23
24 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
25 Delete.
26 (find_signalled_thread()): New, factored out from
27 linux_make_corefile_notes and adjusted to handle exited threads.
28 (linux_make_corefile_notes): Adjust to use the new
29 find_signalled_thread.
30
41792d68
PA
312020-06-18 Pedro Alves <palves@redhat.com>
32
33 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
34 of saving/restoring inferior_ptid.
35
612f258a
TT
362020-06-17 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
39 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
40 declare.
41 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
42
efb763a5
SM
432020-06-15 Simon Marchi <simon.marchi@efficios.com>
44
45 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
46 of partial symtabs.
47
2951f6c0
SM
482020-06-17 Simon Marchi <simon.marchi@efficios.com>
49
50 * regformats/reg-arm.dat: Remove.
51 * regformats/reg-bfin.dat: Remove.
52 * regformats/reg-cris.dat: Remove.
53 * regformats/reg-crisv32.dat: Remove.
54 * regformats/reg-m32r.dat: Remove.
55 * regformats/reg-tilegx.dat: Remove.
56 * regformats/reg-tilegx32.dat: Remove.
57
7d458ea5
SM
582020-06-17 Simon Marchi <simon.marchi@efficios.com>
59
60 * features/Makefile (WHICH): Remove arm files.
61 * regformats/arm/arm-with-iwmmxt.dat: Remove.
62 * regformats/arm/arm-with-neon.dat: Remove.
63 * regformats/arm/arm-with-vfpv2.dat: Remove.
64 * regformats/arm/arm-with-vfpv3.dat: Remove.
65
3af96c0d
SM
662020-06-17 Simon Marchi <simon.marchi@efficios.com>
67
68 * features/Makefile (XMLTOC): Remove rx.xml.
69
b25e22fd
PA
702020-06-17 Pedro Alves <palves@redhat.com>
71
72 * gdbthread.h (thread_control_state) <trap_expected> Update
73 comments.
74
a78a19b1
AB
752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
78 ada_language::lookup_symbol_nonlocal.
79 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
80 (ada_language::lookup_symbol_nonlocal): New member function,
81 implementation from ada_lookup_symbol_nonlocal.
82 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
83 initializer.
84 (cplus_language_data): Delete la_lookup_symbol_nonlocal
85 initializer.
86 (cplus_language::lookup_symbol_nonlocal): New member function.
87 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
88 (minimal_language_data) Likewise.
89 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
90 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
91 initializer.
92 (d_language::lookup_symbol_nonlocal): New member function.
93 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
94 initializer.
95 (f_language::lookup_symbol_nonlocal): New member function.
96 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
97 initializer.
98 * language.c (unknown_language_data): Likewise.
99 (auto_language_data): Likewise.
100 * language.h (language_data): Delete la_lookup_symbol_nonlocal
101 field.
102 (language_defn::lookup_symbol_nonlocal): New member function.
103 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
104 initializer.
105 * objc-lang.c (objc_language_data): Likewise.
106 * opencl-lang.c (opencl_language_data): Likewise.
107 * p-lang.c (pascal_language_data): Likewise.
108 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
109 rust_language::lookup_symbol_nonlocal.
110 (rust_language_data): Delete la_lookup_symbol_nonlocal
111 initializer.
112 (rust_language::lookup_symbol_nonlocal): New member function,
113 implementation from rust_lookup_symbol_nonlocal.
114 * symtab.c (lookup_symbol_aux): Update call to
115 lookup_symbol_nonlocal.
116 (basic_lookup_symbol_nonlocal): Rename to...
117 (language_defn::lookup_symbol_nonlocal): ...this, and update
118 header comment. Remove language_defn parameter, and replace with
119 uses of `this'.
120 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
121
ebe2334e
AB
1222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * ada-lang.c (ada_language_data): Delete la_value_print_inner
125 initializer.
126 (ada_language::value_print_inner): New member function.
127 * c-lang.c (c_language_data): Delete la_value_print_inner
128 initializer.
129 (cplus_language_data): Likewise.
130 (asm_language_data): Likewise.
131 (minimal_language_data): Likewise.
132 * d-lang.c (d_language_data): Likewise.
133 (d_language::value_print_inner): New member function.
134 * f-lang.c (f_language_data): Delete la_value_print_inner
135 initializer.
136 (f_language::value_print_inner): New member function.
137 * f-lang.h (f_value_print_innner): Rename to...
138 (f_value_print_inner): ...this (note spelling of 'inner').
139 * f-valprint.c (f_value_print_innner): Rename to...
140 (f_value_print_inner): ...this (note spelling of 'inner').
141 * go-lang.c (go_language_data): Delete la_value_print_inner
142 initializer.
143 (go_language::value_print_inner): New member function.
144 * language.c (language_defn::value_print_inner): Define new member
145 function.
146 (unk_lang_value_print_inner): Delete.
147 (unknown_language_data): Delete la_value_print_inner initializer.
148 (unknown_language::value_print_inner): New member function.
149 (auto_language_data): Delete la_value_print_inner initializer.
150 (auto_language::value_print_inner): New member function.
151 * language.h (language_data): Delete la_value_print_inner field.
152 (language_defn::value_print_inner): Delcare new member function.
153 * m2-lang.c (m2_language_data): Delete la_value_print_inner
154 initializer.
155 (m2_language::value_print_inner): New member function.
156 * objc-lang.c (objc_language_data): Delete la_value_print_inner
157 initializer.
158 * opencl-lang.c (opencl_language_data): Likewise.
159 * p-lang.c (pascal_language_data): Likewise.
160 (pascal_language::value_print_inner): New member function.
161 * rust-lang.c (rust_language_data): Delete la_value_print_inner
162 initializer.
163 (rust_language::value_print_inner): New member function.
164 * valprint.c (do_val_print): Update call to value_print_inner.
165
a1d1fa3e
AB
1662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * ada-lang.c (ada_language_data): Delete la_value_print
169 initializer.
170 (ada_language::value_print): New member function.
171 * c-lang.c (c_language_data): Delete la_value_print initializer.
172 (cplus_language_data): Likewise.
173 (asm_language_data): Likewise.
174 (minimal_language_data): Likewise.
175 * d-lang.c (d_language_data): Likewise.
176 * f-lang.c (f_language_data): Likewise.
177 * go-lang.c (go_language_data): Likewise.
178 * language.c (unk_lang_value_print): Delete.
179 (language_defn::value_print): Define new member function.
180 (unknown_language_data): Delete la_value_print initializer.
181 (unknown_language::value_print): New member function.
182 (auto_language_data): Delete la_value_print initializer.
183 (auto_language::value_print): New member function.
184 * language.h (language_data): Delete la_value_print field.
185 (language_defn::value_print): Declare new member function.
186 (LA_VALUE_PRINT): Update call to value_print.
187 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
188 * objc-lang.c (objc_language_data): Likewise.
189 * opencl-lang.c (opencl_language_data): Likewise.
190 * p-lang.c (pascal_language_data): Likewise.
191 (pascal_language::value_print): New member function.
192 * rust-lang.c (rust_language_data): Delete la_value_print
193 initializer.
194
f16a9f57
AB
1952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * ada-lang.c (ada_watch_location_expression): Rename to
198 ada_language::watch_location_expression.
199 (ada_language_data): Delete la_watch_location_expression
200 initializer.
201 (ada_language::watch_location_expression): New member function,
202 implementation from ada_watch_location_expression.
203 * breakpoint.c (watch_command_1): Update call to
204 watch_location_expression.
205 * c-lang.c (c_watch_location_expression): Rename to
206 language_defn::watch_location_expression.
207 (c_language_data): Delete la_watch_location_expression
208 initializer.
209 (cplus_language_data): Likewise.
210 (asm_language_data): Likewise.
211 (minimal_language_data): Likewise.
212 * c-lang.h (c_watch_location_expression): Delete declaration.
213 * d-lang.c (d_language_data): Delete la_watch_location_expression
214 initializer.
215 * f-lang.c (f_language_data): Likewise.
216 * go-lang.c (go_language_data): Likewise.
217 * language.c (language_defn::watch_location_expression): Member
218 function implementation from c_watch_location_expression.
219 (unknown_language_data): Delete la_watch_location_expression
220 initializer.
221 (auto_language_data): Likewise.
222 * language.h (language_data): Delete la_watch_location_expression
223 field.
224 (language_defn::watch_location_expression): Declare new member
225 function.
226 * m2-lang.c (m2_language_data): Delete
227 la_watch_location_expression initializer.
228 * objc-lang.c (objc_language_data): Likewise.
229 * opencl-lang.c (opencl_language_data): Likewise.
230 * p-lang.c (pascal_language_data): Likewise.
231 * rust-lang.c (rust_watch_location_expression): Rename to
232 rust_language::watch_location_expression.
233 (rust_language_data): Delete la_watch_location_expression
234 initializer.
235 (rust_language::watch_location_expression): New member function,
236 implementation from rust_watch_location_expression.
237
7e56227d
AB
2382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
241 ada_language::collect_symbol_completion_matches.
242 (ada_language_data): Delete la_collect_symbol_completion_matches
243 initializer.
244 (ada_language::collect_symbol_completion_matches): New member
245 function, implementation from
246 ada_collect_symbol_completion_matches.
247 * c-lang.c (c_language_data): Delete
248 la_collect_symbol_completion_matches initializer.
249 (cplus_language_data): Likewise.
250 (asm_language_data): Likewise.
251 (minimal_language_data): Likewise.
252 * d-lang.c (d_language_data): Likewise.
253 * f-lang.c (f_collect_symbol_completion_matches): Rename to
254 f_language::collect_symbol_completion_matches.
255 (f_language_data): Delete la_collect_symbol_completion_matches
256 initializer.
257 (f_language::collect_symbol_completion_matches) New member
258 function, implementation from f_collect_symbol_completion_matches.
259 * go-lang.c (go_language_data): Delete
260 la_collect_symbol_completion_matches initializer.
261 * language.c (unknown_language_data): Likewise.
262 (auto_language_data): Likewise.
263 * language.h (language_data): Delete
264 la_collect_symbol_completion_matches field.
265 (language_defn::collect_symbol_completion_matches): New member
266 function.
267 * m2-lang.c (m2_language_data): Delete
268 la_collect_symbol_completion_matches initializer.
269 * objc-lang.c (objc_language_data): Likewise.
270 * opencl-lang.c (opencl_language_data): Likewise.
271 * p-lang.c (pascal_language_data): Likewise.
272 * rust-lang.c (rust_language_data): Likewise.
273 * symtab.c (default_collect_symbol_completion_matches): Delete.
274 (collect_symbol_completion_matches): Update call to
275 collect_symbol_completion_matches.
276 (collect_symbol_completion_matches_type): Likewise.
277 * symtab.h (default_collect_symbol_completion_matches): Delete
278 declaration.
279
53fc67f8
AB
2802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
281
282 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
283 (ada_language_data): Delete la_word_break_characters initializer.
284 (ada_language::word_break_characters): New member function.
285 * c-lang.c (c_language_data): Delete la_word_break_characters
286 initializer.
287 (cplus_language_data): Likewise.
288 (asm_language_data): Likewise.
289 (minimal_language_data): Likewise.
290 * completer.c: Update global comment.
291 (advance_to_expression_complete_word_point): Update call to
292 word_break_characters.
293 (complete_files_symbols): Likewise.
294 (complete_line_internal_1): Likewise.
295 (default_completer_handle_brkchars): Likewise.
296 (skip_quoted_chars): Likewise.
297 * d-lang.c (d_language_data): Delete la_word_break_characters
298 initializer.
299 * f-lang.c (f_word_break_characters): Delete.
300 (f_language_data): Delete la_word_break_characters initializer.
301 (f_language::word_break_characters): New member function.
302 * go-lang.c (go_language_data): Delete la_word_break_characters
303 initializer.
304 * language.c (unknown_language_data): Likewise.
305 (auto_language_data): Likewise.
306 * language.h (default_word_break_characters): Move declaration to
307 earlier in the file.
308 (language_data): Delete la_word_break_characters field.
309 (language_defn::word_break_characters): New member function.
310 * m2-lang.c (m2_language_data): Delete la_word_break_characters
311 initializer.
312 * objc-lang.c (objc_language_data): Likewise.
313 * opencl-lang.c (opencl_language_data): Likewise.
314 * p-lang.c (pascal_language_data): Likewise.
315 * rust-lang.c (rust_language_data): Likewise.
316
c9debfb9
AB
3172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
320 (ada_language_data): Delete la_get_symbol_name_matcher
321 initializer.
322 (language_defn::get_symbol_name_matcher_inner): New member
323 function.
324 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
325 initializer.
326 (cplus_language_data): Likewise.
327 (cplus_language::get_symbol_name_matcher_inner): New member
328 function.
329 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
330 (minimal_language_data): Likewise.
331 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
332 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
333 initializer.
334 * dictionary.c (iter_match_first_hashed): Update call to
335 get_symbol_name_matcher.
336 (iter_match_next_hashed): Likewise.
337 (iter_match_next_linear): Likewise.
338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
339 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
340 initializer.
341 (f_language::get_symbol_name_matcher_inner): New member function.
342 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
343 initializer.
344 * language.c (default_symbol_name_matcher): Update header comment,
345 make static.
346 (language_defn::get_symbol_name_matcher): New definition.
347 (language_defn::get_symbol_name_matcher_inner): Likewise.
348 (get_symbol_name_matcher): Delete.
349 (unknown_language_data): Delete la_get_symbol_name_matcher
350 initializer.
351 (auto_language_data): Likewise.
352 * language.h (language_data): Delete la_get_symbol_name_matcher
353 field.
354 (language_defn::get_symbol_name_matcher): New member function.
355 (language_defn::get_symbol_name_matcher_inner): Likewise.
356 (default_symbol_name_matcher): Delete declaration.
357 * linespec.c (find_methods): Update call to
358 get_symbol_name_matcher.
359 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
360 initializer.
361 * minsyms.c (lookup_minimal_symbol): Update call to
362 get_symbol_name_matcher.
363 (iterate_over_minimal_symbols): Likewise.
364 * objc-lang.c (objc_language_data): Delete
365 la_get_symbol_name_matcher initializer.
366 * opencl-lang.c (opencl_language_data): Likewise.
367 * p-lang.c (pascal_language_data): Likewise.
368 * psymtab.c (psymbol_name_matches): Update call to
369 get_symbol_name_matcher.
370 * rust-lang.c (rust_language_data): Delete
371 la_get_symbol_name_matcher initializer.
372 * symtab.c (symbol_matches_search_name): Update call to
373 get_symbol_name_matcher.
374 (compare_symbol_name): Likewise.
375
9a49ad8c
AB
3762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * ada-lang.c (ada_language_data): Delete la_compute_program
379 initializer.
380 * c-lang.c (c_language_data): Likewise.
381 (c_language::compute_program): New member function.
382 (cplus_language_data): Delete la_compute_program initializer.
383 (cplus_language::compute_program): New member function.
384 (asm_language_data): Delete la_compute_program initializer.
385 (minimal_language_data): Likewise.
386 * c-lang.h (c_compute_program): Update comment.
387 (cplus_compute_program): Likewise.
388 * compile/compile-c-support.c (c_compute_program): Likewise.
389 (cplus_compute_program): Likewise.
390 * compile/compile.c (compile_to_object): Update call to
391 la_compute_program.
392 * d-lang.c (d_language_data): Delete la_compute_program
393 initializer.
394 * f-lang.c (f_language_data): Likewise.
395 * go-lang.c (go_language_data): Likewise.
396 * language.c (unknown_language_data): Likewise.
397 (auto_language_data): Likewise.
398 * language.h (language_data): Delete la_compute_program field.
399 (language_defn::compute_program): New member function.
400 * m2-lang.c (m2_language_data): Delete la_compute_program
401 initializer.
402 * objc-lang.c (objc_language_data): Likewise.
403 * opencl-lang.c (opencl_language_data): Likewise.
404 * p-lang.c (pascal_language_data): Likewise.
405 * rust-lang.c (rust_language_data): Likewise.
406
eff93b4d
AB
4072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * ada-lang.c (ada_language_data) Delete
410 la_class_name_from_physname initializer.
411 * c-lang.c (c_language_data): Likewise.
412 (cplus_language_data): Likewise.
413 (cplus_language::class_name_from_physname): New member function.
414 (asm_language_data): Delete la_class_name_from_physname
415 initializer.
416 (minimal_language_data): Likewise.
417 * d-lang.c (d_language_data): Likewise.
418 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
419 method on language_defn class.
420 (guess_full_die_structure_name): Likewise.
421 * f-lang.c (f_language_data): Delete la_class_name_from_physname
422 initializer.
423 * go-lang.c (go_language_data): Likewise.
424 * language.c (language_class_name_from_physname): Delete.
425 (unk_lang_class_name): Delete.
426 (unknown_language_data): Delete la_class_name_from_physname
427 initializer.
428 (auto_language_data): Likewise.
429 * language.h (language_data): Delete la_class_name_from_physname
430 field.
431 (language_defn::class_name_from_physname): New function.
432 (language_class_name_from_physname): Delete declaration.
433 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
434 initializer.
435 * objc-lang.c (objc_language_data): Likewise.
436 * opencl-lang.c (opencl_language_data): Likewise.
437 * p-lang.c (pascal_language_data): Likewise.
438 * rust-lang.c (rust_language_data): Likewise.
439
de543742
TT
4402020-06-16 Tom Tromey <tom@tromey.com>
441
442 * tui/tui-data.h (STATUS_NAME): New macro.
443 * tui/tui-layout.c (tui_remove_some_windows)
444 (initialize_known_windows, tui_register_window)
445 (tui_layout_split::remove_windows, initialize_layouts)
446 (tui_new_layout_command): Don't use hard-coded window names.
447
a350efd4
TT
4482020-06-16 Tom Tromey <tom@tromey.com>
449
450 PR tui/25348:
451 * tui/tui.c (tui_ensure_readline_initialized): Rename from
452 tui_initialize_readline. Only run once. Call rl_initialize.
453 * tui/tui.h (tui_ensure_readline_initialized): Rename from
454 tui_initialize_readline.
455 * tui/tui-io.c (tui_setup_io): Call
456 tui_ensure_readline_initialized.
457 * tui/tui-interp.c (tui_interp::init): Update.
458
39ec0490
TT
4592020-06-16 Tom Tromey <tom@tromey.com>
460
461 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
462 Also preserve the status window.
463
d2d1ea20
TT
4642020-06-16 Tom Tromey <tom@tromey.com>
465
466 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
467 where m_window==nullptr.
468
66920317
TT
4692020-06-15 Tom Tromey <tromey@adacore.com>
470
471 * windows-nat.c (windows_nat::handle_output_debug_string):
472 Update.
473 (windows_nat::handle_ms_vc_exception): Update.
474 * target.h (target_read_string): Change API.
475 * target.c (target_read_string): Change API.
476 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
477 Update.
478 * solib-frv.c (frv_current_sos): Update.
479 * solib-dsbt.c (dsbt_current_sos): Update.
480 * solib-darwin.c (darwin_current_sos): Update.
481 * linux-thread-db.c (inferior_has_bug): Update.
482 * expprint.c (print_subexp_standard): Update.
483 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
484 (ada_exception_message_1): Update.
485
a5d871dd
TT
4862020-06-15 Tom Tromey <tromey@adacore.com>
487
488 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
489
670e35fa
TT
4902020-06-15 Tom Tromey <tromey@adacore.com>
491
492 * valprint.c (read_string): Update comment.
493 * target.c (MIN): Remove.
494 (target_read_string): Rewrite.
495
f5272a3b
TT
4962020-06-15 Tom Tromey <tromey@adacore.com>
497
498 * corefile.c (read_memory_string): Remove.
499 * ada-valprint.c (ada_value_print_ptr): Update.
500 * ada-lang.h (ada_tag_name): Change return type.
501 * ada-lang.c (type_from_tag): Update.
502 (ada_tag_name_from_tsd): Change return type. Use
503 target_read_string.
504 (ada_tag_name): Likewise.
505 * gdbcore.h (read_memory_string): Don't declare.
506
2c074f49
HD
5072020-06-14 Hannes Domani <ssbssa@yahoo.de>
508
509 * symtab.c (rbreak_command): Ignore Windows drive colon.
510
6a17d503
SM
5112020-06-12 Simon Marchi <simon.marchi@efficios.com>
512
513 * NEWS: Mention removed GDBserver host support.
514
453c733f
NC
5152020-06-12 Nelson Chu <nelson.chu@sifive.com>
516
517 * features/riscv/rebuild-csr-xml.sh: Updated.
518
2b4e6a3f
TT
5192020-06-11 Tom Tromey <tom@tromey.com>
520
521 PR gdb/18318:
522 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
523
4412332f
JG
5242020-06-09 Jonny Grant <jg@jguk.org>
5252020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * main.c (captured_main_1): Don't print new line after help.
528 (print_gdb_help): add mailing list and IRC channel information
529 to --help. Add new lines between items in the footer. Remove
530 quotes around bug url.
531
2f33032a
KS
5322020-06-11 Keith Seitz <keiths@redhat.com>
533
534 PR gdb/21356
535 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
536 Resolve typedefs for type length calculations.
537
7ab96794
TV
5382020-06-10 Tom de Vries <tdevries@suse.de>
539
540 PR ada/24713
541 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
542 (write_psymbols): Enable .gdb_index for ada.
543 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
544 ada.
545
e5f3ece2
TV
5462020-06-10 Tom de Vries <tdevries@suse.de>
547
548 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
549 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
550 namei" instead of "const char *name" argument.
551 (dw2_map_matching_symbols): Use "offset_type namei" variant of
552 dw2_symtab_iter_init.
553
940da03e
SM
5542020-06-08 Simon Marchi <simon.marchi@efficios.com>
555
556 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
557 to use type::field and field::type instead.
558
b6cdac4b
SM
5592020-06-08 Simon Marchi <simon.marchi@efficios.com>
560
561 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
562 to use field::type instead.
563
5d14b6e5
SM
5642020-06-08 Simon Marchi <simon.marchi@efficios.com>
565
566 * gdbtypes.h (struct field) <type, set_type>: New methods.
567 Rename `type` field to...
568 <m_type>: ... this. Change references throughout to use type or
569 set_type methods.
570 (FIELD_TYPE): Use field::type. Change call sites that modify
571 the field's type to use field::set_type instead.
572
3d967001
SM
5732020-06-08 Simon Marchi <simon.marchi@efficios.com>
574
575 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
576 to use type::index_type instead.
577
262abc0d
SM
5782020-06-08 Simon Marchi <simon.marchi@efficios.com>
579
580 * gdbtypes.h (struct type) <index_type, set_index_type>: New
581 methods.
582 (TYPE_INDEX_TYPE): Use type::index_type.
583 * gdbtypes.c (create_array_type_with_stride): Likewise.
584
82836c92
TT
5852020-06-07 Tom Tromey <tom@tromey.com>
586
587 * valprint.c (generic_val_print_float): Remove "embedded_offset"
588 parameter.
589 (generic_value_print): Update.
590
940dace9
AB
5912020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 Revert commit 982a38f60b0.
594 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
595
982a38f6
AB
5962020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
599 avoid use after free.
600
82f06518
TV
6012020-06-05 Tom de Vries <tdevries@suse.de>
602
603 * NEWS: Fix typos.
604
f8c41851
SM
6052020-06-04 Simon Marchi <simon.marchi@efficios.com>
606
607 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
608 the per_bfd object.
609 (dwarf2_read_debug_names): Likewise.
610 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
611 object when re-using a per_bfd object with an index.
612
f9b5d5ea
TV
6132020-06-03 Tom de Vries <tdevries@suse.de>
614
615 PR symtab/26046
616 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
617 children for C++.
618 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
619 DW_TAG_subprogram.
620
f6eee2d0
AB
6212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * ada-lang.c (ada_language_data): Delete skip_trampoline
624 initializer.
625 * c-lang.c (c_language_data): Likewise.
626 (cplus_language_data): Likewise.
627 (cplus_language::skip_trampoline): New member function.
628 (asm_language_data): Delete skip_trampoline initializer.
629 (minimal_language_data): Likewise.
630 * d-lang.c (d_language_data): Likewise.
631 * f-lang.c (f_language_data): Likewise.
632 * go-lang.c (go_language_data): Likewise.
633 * language.c (unk_lang_trampoline): Delete function.
634 (skip_language_trampoline): Update.
635 (unknown_language_data): Delete skip_trampoline initializer.
636 (auto_language_data): Likewise.
637 * language.h (language_data): Delete skip_trampoline field.
638 (language_defn::skip_trampoline): New function.
639 * m2-lang.c (m2_language_data): Delete skip_trampoline
640 initializer.
641 * objc-lang.c (objc_skip_trampoline): Delete function, move
642 implementation to objc_language::skip_trampoline.
643 (objc_language_data): Delete skip_trampoline initializer.
644 (objc_language::skip_trampoline): New member function with
645 implementation from objc_skip_trampoline.
646 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
647 initializer.
648 * p-lang.c (pascal_language_data): Likewise.
649 * rust-lang.c (rust_language_data): Likewise.
650
0a50df5d
AB
6512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
654 (ada_language::demangle): New member function.
655 * c-lang.c (c_language_data): Delete la_demangle initializer.
656 (cplus_language_data): Delete la_demangle initializer.
657 (cplus_language::demangle): New member function.
658 (asm_language_data): Delete la_demangle initializer.
659 (minimal_language_data): Delete la_demangle initializer.
660 * d-lang.c (d_language_data): Delete la_demangle initializer.
661 (d_language::demangle): New member function.
662 * f-lang.c (f_language_data): Delete la_demangle initializer.
663 (f_language::demangle): New member function.
664 * go-lang.c (go_language_data): Delete la_demangle initializer.
665 (go_language::demangle): New member function.
666 * language.c (language_demangle): Update.
667 (unk_lang_demangle): Delete.
668 (unknown_language_data): Delete la_demangle initializer.
669 (unknown_language::demangle): New member function.
670 (auto_language_data): Delete la_demangle initializer.
671 (auto_language::demangle): New member function.
672 * language.h (language_data): Delete la_demangle field.
673 (language_defn::demangle): New function.
674 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
675 * objc-lang.c (objc_language_data): Delete la_demangle
676 initializer.
677 (objc_language::demangle): New member function.
678 * opencl-lang.c (opencl_language_data): Delete la_demangle
679 initializer.
680 * p-lang.c (pascal_language_data): Likewise.
681 * rust-lang.c (rust_language_data): Likewise.
682 (rust_language::demangle): New member function.
683
fbfb0a46
AB
6842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * ada-lang.c (ada_language_data): Delete la_print_type
687 initializer.
688 (ada_language::print_type): New member function.
689 * c-lang.c (c_language_data): Delete la_print_type initializer.
690 (c_language::print_type): New member function.
691 (cplus_language_data): Delete la_print_type initializer.
692 (cplus_language::print_type): New member function.
693 (asm_language_data): Delete la_print_type initializer.
694 (asm_language::print_type): New member function.
695 (minimal_language_data): Delete la_print_type initializer.
696 (minimal_language::print_type): New member function.
697 * d-lang.c (d_language_data): Delete la_print_type initializer.
698 (d_language::print_type): New member function.
699 * f-lang.c (f_language_data): Delete la_print_type initializer.
700 (f_language::print_type): New member function.
701 * go-lang.c (go_language_data): Delete la_print_type initializer.
702 (go_language::print_type): New member function.
703 * language.c (unk_lang_print_type): Delete.
704 (unknown_language_data): Delete la_print_type initializer.
705 (unknown_language::print_type): New member function.
706 (auto_language_data): Delete la_print_type initializer.
707 (auto_language::print_type): New member function.
708 * language.h (language_data): Delete la_print_type field.
709 (language_defn::print_type): New function.
710 (LA_PRINT_TYPE): Update.
711 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
712 (m2_language::print_type): New member function.
713 * objc-lang.c (objc_language_data): Delete la_print_type
714 initializer.
715 (objc_language::print_type): New member function.
716 * opencl-lang.c (opencl_print_type): Delete, implementation moved
717 to opencl_language::print_type.
718 (opencl_language_data): Delete la_print_type initializer.
719 (opencl_language::print_type): New member function, implementation
720 from opencl_print_type.
721 * p-lang.c (pascal_language_data): Delete la_print_type
722 initializer.
723 (pascal_language::print_type): New member function.
724 * rust-lang.c (rust_print_type): Delete, implementation moved to
725 rust_language::print_type.
726 (rust_language_data): Delete la_print_type initializer.
727 (rust_language::print_type): New member function, implementation
728 from rust_print_type.
729
6f827019
AB
7302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
733 implementation moves to...
734 (ada_language::sniff_from_mangled_name): ...here. Update return
735 type.
736 (ada_language_data): Delete la_sniff_from_mangled_name
737 initializer.
738 * c-lang.c (c_language_data): Likewise.
739 (cplus_language_data): Likewise.
740 (cplus_language::sniff_from_mangled_name): New member function,
741 implementation taken from gdb_sniff_from_mangled_name.
742 (asm_language_data): Delete la_sniff_from_mangled_name
743 initializer.
744 (minimal_language_data): Likewise.
745 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
746 implementation moves to cplus_language::sniff_from_mangled_name.
747 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
748 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
749 moves to...
750 (d_language::sniff_from_mangled_name): ...here.
751 (d_language_data): Delete la_sniff_from_mangled_name initializer.
752 * f-lang.c (f_language_data): Likewise.
753 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
754 moves to...
755 (go_language::sniff_from_mangled_name): ...here.
756 (go_language_data): Delete la_sniff_from_mangled_name initializer.
757 * language.c (language_sniff_from_mangled_name): Delete.
758 (unknown_language_data): Delete la_sniff_from_mangled_name
759 initializer.
760 (auto_language_data): Likewise.
761 * language.h (language_data): Delete la_sniff_from_mangled_name
762 field.
763 (language_defn::sniff_from_mangled_name): New function.
764 (language_sniff_from_mangled_name): Delete declaration.
765 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
766 field.
767 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
768 implementation moves to...
769 (objc_language::sniff_from_mangled_name): ...here.
770 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
771 * opencl-lang.c (opencl_language_data): Likewise.
772 * p-lang.c (pascal_language_data): Likewise.
773 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
774 implementation moves to...
775 (rust_language::sniff_from_mangled_name): ...here.
776 (rust_language_data): Delete la_sniff_from_mangled_name
777 initializer.
778 * symtab.c (symbol_find_demangled_name): Call
779 sniff_from_mangled_name member function.
780
fb8006fd
AB
7812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * ada-lang.c (ada_language_data): Delete la_search_name_hash
784 initializer.
785 * c-lang.c (c_language_data): Likewise.
786 (cplus_language_data): Likewise.
787 (cplus_language::search_name_hash): New member function.
788 (asm_language_data): Delete la_search_name_hash initializer.
789 (minimal_language_data): Likewise.
790 * d-lang.c (d_language_data): Likewise.
791 * dictionary.c (default_search_name_hash): Rename to...
792 (language_defn::search_name_hash): ...this.
793 * f-lang.c (f_language_data): Likewise.
794 (f_language::search_name_hash): New member function.
795 * go-lang.c (go_language_data): Delete la_search_name_hash
796 initializer.
797 * language.c (unknown_language_data): Likewise.
798 (auto_language_data): Likewise.
799 * language.h (struct language_data): Delete la_search_name_hash
800 field.
801 (language_defn::search_name_hash): Declare new member function.
802 (default_search_name_hash): Delete declaration.
803 * m2-lang.c (m2_language_data): Delete la_search_name_hash
804 initializer.
805 * objc-lang.c (objc_language_data): Likewise.
806 * opencl-lang.c (opencl_language_data): Likewise.
807 * p-lang.c (pascal_language_data): Likewise.
808 * rust-lang.c (rust_language_data): Likewise.
809 * symtab.c (search_name_hash): Update call.
810
8e25bafe
AB
8112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
814 initializer.
815 * c-lang.c (class compile_instance): Declare.
816 (c_language_data): Delete la_get_compile_instance initializer.
817 (c_language::get_compile_instance): New member function.
818 (cplus_language_data): Delete la_get_compile_instance initializer.
819 (cplus_language::get_compile_instance): New member function.
820 (asm_language_data): Delete la_get_compile_instance initializer.
821 (minimal_language_data): Likewise.
822 * c-lang.h (c_get_compile_context): Update comment.
823 (cplus_get_compile_context): Update comment.
824 * compile/compile.c (compile_to_object): Update calls, don't rely
825 on function pointer being NULL.
826 * d-lang.c (d_language_data): Delete la_get_compile_instance
827 initializer.
828 * f-lang.c (f_language_data): Likewise.
829 * go-lang.c (go_language_data): Likewise.
830 * language.c (unknown_language_data): Likewise.
831 (auto_language_data): Likewise.
832 * language.h (language_data): Delete la_get_compile_instance field.
833 (language_defn::get_compile_instance): New member function.
834 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
835 initializer.
836 * objc-lang.c (objc_language_data): Likewise.
837 * opencl-lang.c (opencl_language_data): Likewise.
838 * p-lang.c (pascal_language_data): Likewise.
839 * rust-lang.c (rust_language_data): Likewise.
840
4009ee92
AB
8412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * ada-lang.c (ada_add_all_symbols): Update comment.
844 (ada_iterate_over_symbols): Delete, move implementation to...
845 (ada_language::iterate_over_symbols): ...here, a new member
846 function, rewrite to use range based for loop.
847 (ada_language_data): Delete la_iterate_over_symbols initializer.
848 * c-lang.c (c_language_data): Likewise.
849 (cplus_language_data): Likewise.
850 (asm_language_data): Likewise.
851 (minimal_language_data): Likewise.
852 * d-lang.c (d_language_data): Likewise.
853 * f-lang.c (f_language_data): Likewise.
854 * go-lang.c (go_language_data): Likewise.
855 * language.c (unknown_language_data): Likewise.
856 (auto_language_data): Likewise.
857 * language.h (language_data): Delete la_iterate_over_symbols field.
858 (language_defn::iterate_over_symbols): New member function.
859 (LA_ITERATE_OVER_SYMBOLS): Update.
860 * linespec.c (iterate_over_all_matching_symtabs): Update.
861 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
862 initializer.
863 * objc-lang.c (objc_language_data): Likewise.
864 * opencl-lang.c (opencl_language_data): Likewise.
865 * p-lang.c (pascal_language_data): Likewise.
866 * rust-lang.c (rust_language_data): Likewise.
867
54f4ca46
AB
8682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * ada-lang.c (ada_language_data): Delete
871 la_lookup_transparent_type initializer.
872 * c-lang.c (c_language_data): Likewise.
873 (cplus_language_data): Likewise.
874 (cplus_language::lookup_transparent_type): New member function.
875 (asm_language_data): Delete la_lookup_transparent_type
876 initializer.
877 (minimal_language_data): Likewise.
878 * d-lang.c (d_language_data): Likewise.
879 * f-lang.c (f_language_data): Likewise.
880 * go-lang.c (go_language_data): Likewise.
881 * language.c (unknown_language_data): Likewise.
882 (auto_language_data): Likewise.
883 * language.h (struct language_data): Delete
884 la_lookup_transparent_type field.
885 (language_defn::lookup_transparent_type): New member function.
886 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
887 initializer.
888 * objc-lang.c (objc_language_data): Likewise.
889 * opencl-lang.c (opencl_language_data): Likewise.
890 * p-lang.c (pascal_language_data): Likewise.
891 * rust-lang.c (rust_language_data): Likewise.
892 * symtab.c (symbol_matches_domain): Update call.
893
1fb314aa
AB
8942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * ada-lang.c (ada_language_arch_info): Delete function, move
897 implementation to...
898 (ada_language::language_arch_info): ...here, a new member
899 function.
900 (ada_language_data): Delete la_language_arch_info.
901 * c-lang.c (c_language_data): Likewise.
902 (c_language::language_arch_info): New member function.
903 (cplus_language_arch_info): Delete function, move
904 implementation to...
905 (cplus_language::language_arch_info): ...here, a new member
906 function.
907 (cplus_language_data): Delete la_language_arch_info.
908 (asm_language_data): Likewise.
909 (asm_language::language_arch_info): New member function.
910 (minimal_language_data): Delete la_language_arch_info.
911 (minimal_language::language_arch_info): New member function.
912 * d-lang.c (d_language_arch_info): Delete function, move
913 implementation to...
914 (d_language::language_arch_info): ...here, a new member
915 function.
916 (d_language_data): Delete la_language_arch_info.
917 * f-lang.c (f_language_arch_info): Delete function, move
918 implementation to...
919 (f_language::language_arch_info): ...here, a new member
920 function.
921 (f_language_data): Delete la_language_arch_info.
922 * go-lang.c (go_language_arch_info): Delete function, move
923 implementation to...
924 (go_language::language_arch_info): ...here, a new member
925 function.
926 (go_language_data): Delete la_language_arch_info.
927 * language.c (unknown_language_data): Likewise.
928 (unknown_language::language_arch_info): New member function.
929 (auto_language_data): Delete la_language_arch_info.
930 (auto_language::language_arch_info): New member function.
931 (language_gdbarch_post_init): Update call to
932 la_language_arch_info.
933 * language.h (language_data): Delete la_language_arch_info
934 function pointer.
935 (language_defn::language_arch_info): New function.
936 * m2-lang.c (m2_language_arch_info): Delete function, move
937 implementation to...
938 (m2_language::language_arch_info): ...here, a new member
939 function.
940 (m2_language_data): Delete la_language_arch_info.
941 * objc-lang.c (objc_language_arch_info): Delete function, move
942 implementation to...
943 (objc_language::language_arch_info): ...here, a new member
944 function.
945 (objc_language_data): Delete la_language_arch_info.
946 * opencl-lang.c (opencl_language_arch_info): Delete function, move
947 implementation to...
948 (opencl_language::language_arch_info): ...here, a new member
949 function.
950 (opencl_language_data): Delete la_language_arch_info.
951 * p-lang.c (pascal_language_arch_info): Delete function, move
952 implementation to...
953 (pascal_language::language_arch_info): ...here, a new member
954 function.
955 (pascal_language_data): Delete la_language_arch_info.
956 * rust-lang.c (rust_language_arch_info): Delete function, move
957 implementation to...
958 (rust_language::language_arch_info): ...here, a new member
959 function.
960 (rust_language_data): Delete la_language_arch_info.
961
48448202
AB
9622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
963
964 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
965 initializer.
966 * c-lang.c (c_language_data): Likewise.
967 (cplus_language_data): Likewise.
968 (cplus_language::pass_by_reference_info): New method.
969 (asm_language_data): Delete la_pass_by_reference initializer.
970 (minimal_language_data): Likewise.
971 * cp-abi.c (cp_pass_by_reference): Remove use of
972 default_pass_by_reference.
973 * d-lang.c (d_language_data): Likewise.
974 * f-lang.c (f_language_data): Likewise.
975 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
976 default_pass_by_reference.
977 * go-lang.c (go_language_data): Likewise.
978 * language.c (language_pass_by_reference): Update.
979 (default_pass_by_reference): Delete.
980 (unknown_language_data): Delete la_pass_by_reference
981 initializer.
982 (auto_language_data): Likewise.
983 * language.h (struct language_data): Delete la_pass_by_reference
984 field.
985 (language_defn::pass_by_reference_info): New member function.
986 (default_pass_by_reference): Delete declaration.
987 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
988 initializer.
989 * objc-lang.c (objc_language_data): Likewise.
990 * opencl-lang.c (opencl_language_data): Likewise.
991 * p-lang.c (pascal_language_data): Likewise.
992 * rust-lang.c (rust_language_data): Likewise.
993
15e5fd35
AB
9942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * ada-lang.c (ada_read_var_value): Delete function, move
997 implementation to...
998 (ada_language::read_var_value): ...here.
999 (ada_language_data): Delete la_read_var_value initializer.
1000 * c-lang.c (c_language_data): Likewise.
1001 (cplus_language_data): Likewise.
1002 (minimal_language_data): Likewise.
1003 * d-lang.c (d_language_data): Likewise.
1004 * f-lang.c (f_language_data): Likewise.
1005 * findvar.c (default_read_var_value): Rename to...
1006 (language_defn::read_var_value): ...this.
1007 * findvar.c (read_var_value): Update header comment, and change to
1008 call member function instead of function pointer.
1009 * go-lang.c (go_language_data): Likewise.
1010 * language.c (unknown_language_data): Delete la_read_var_value
1011 initializer.
1012 (auto_language_data): Likewise.
1013 * language.h (struct language_data): Delete la_read_var_value
1014 field.
1015 (language_defn::read_var_value): New member function.
1016 (default_read_var_value): Delete declaration.
1017 * m2-lang.c (m2_language_data): Delete la_read_var_value
1018 initializer.
1019 * objc-lang.c (objc_language_data): Likewise.
1020 * opencl-lang.c (opencl_language_data): Likewise.
1021 * p-lang.c (pascal_language_data): Likewise.
1022 * rust-lang.c (rust_language_data): Likewise.
1023 * value.h (default_read_var_value): Delete declaration.
1024
5bd40f2a
AB
10252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * ada-lang.c (ada_print_array_index): Delete function, move
1028 implementation to...
1029 (ada_language::print_array_index): ...here.
1030 (ada_language_data): Delete la_print_array_index initializer.
1031 * c-lang.c (c_language_data): Likewise.
1032 (cplus_language_data): Likewise.
1033 (minimal_language_data): Likewise.
1034 * d-lang.c (d_language_data): Likewise.
1035 * f-lang.c (f_language_data): Likewise.
1036 * go-lang.c (go_language_data): Likewise.
1037 * language.c (default_print_array_index): Delete function, move
1038 implementation to...
1039 (language_defn::print_array_index): ...here.
1040 (unknown_language_data): Delete la_print_array_index initializer.
1041 (auto_language_data): Likewise.
1042 * language.h (struct language_data): Delete la_print_array_index
1043 field.
1044 (language_defn::print_array_index): New member function.
1045 (LA_PRINT_ARRAY_INDEX): Update.
1046 (default_print_array_index): Delete declaration.
1047 * m2-lang.c (m2_language_data): Delete la_print_array_index
1048 initializer.
1049 * objc-lang.c (objc_language_data): Likewise.
1050 * opencl-lang.c (opencl_language_data): Likewise.
1051 * p-lang.c (pascal_language_data): Likewise.
1052 * rust-lang.c (rust_language_data): Likewise.
1053
0874fd07
AB
10542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * gdb/ada-lang.c (ada_language_defn): Convert to...
1057 (ada_language_data): ...this.
1058 (class ada_language): New class.
1059 (ada_language_defn): New static global.
1060 * gdb/c-lang.c (c_language_defn): Convert to...
1061 (c_language_data): ...this.
1062 (class c_language): New class.
1063 (c_language_defn): New static global.
1064 (cplus_language_defn): Convert to...
1065 (cplus_language_data): ...this.
1066 (class cplus_language): New class.
1067 (cplus_language_defn): New static global.
1068 (asm_language_defn): Convert to...
1069 (asm_language_data): ...this.
1070 (class asm_language): New class.
1071 (asm_language_defn): New static global.
1072 (minimal_language_defn): Convert to...
1073 (minimal_language_data): ...this.
1074 (class minimal_language): New class.
1075 (minimal_language_defn): New static global.
1076 * gdb/d-lang.c (d_language_defn): Convert to...
1077 (d_language_data): ...this.
1078 (class d_language): New class.
1079 (d_language_defn): New static global.
1080 * gdb/f-lang.c (f_language_defn): Convert to...
1081 (f_language_data): ...this.
1082 (class f_language): New class.
1083 (f_language_defn): New static global.
1084 * gdb/go-lang.c (go_language_defn): Convert to...
1085 (go_language_data): ...this.
1086 (class go_language): New class.
1087 (go_language_defn): New static global.
1088 * gdb/language.c (unknown_language_defn): Remove declaration.
1089 (current_language): Initialize to nullptr, real initialization is
1090 moved to _initialize_language.
1091 (languages): Delete global.
1092 (language_defn::languages): Define.
1093 (set_language_command): Use language_defn::languages.
1094 (set_language): Likewise.
1095 (range_error): Likewise.
1096 (language_enum): Likewise.
1097 (language_def): Likewise.
1098 (add_set_language_command): Use language_def::languages for the
1099 language list, and language_def to lookup language pointers.
1100 (skip_language_trampoline): Use language_defn::languages.
1101 (unknown_language_defn): Convert to...
1102 (unknown_language_data): ...this.
1103 (class unknown_language): New class.
1104 (unknown_language_defn): New static global.
1105 (auto_language_defn): Convert to...
1106 (auto_language_data): ...this.
1107 (class auto_language): New class.
1108 (auto_language_defn): New static global.
1109 (language_gdbarch_post_init): Use language_defn::languages.
1110 (_initialize_language): Initialize current_language.
1111 * gdb/language.h (struct language_defn): Rename to...
1112 (struct language_data): ...this.
1113 (struct language_defn): New.
1114 (auto_language_defn): Delete.
1115 (unknown_language_defn): Delete.
1116 (minimal_language_defn): Delete.
1117 (ada_language_defn): Delete.
1118 (asm_language_defn): Delete.
1119 (c_language_defn): Delete.
1120 (cplus_language_defn): Delete.
1121 (d_language_defn): Delete.
1122 (f_language_defn): Delete.
1123 (go_language_defn): Delete.
1124 (m2_language_defn): Delete.
1125 (objc_language_defn): Delete.
1126 (opencl_language_defn): Delete.
1127 (pascal_language_defn): Delete.
1128 (rust_language_defn): Delete.
1129 * gdb/m2-lang.c (m2_language_defn): Convert to...
1130 (m2_language_data): ...this.
1131 (class m2_language): New class.
1132 (m2_language_defn): New static global.
1133 * gdb/objc-lang.c (objc_language_defn): Convert to...
1134 (objc_language_data): ...this.
1135 (class objc_language): New class.
1136 (objc_language_defn): New static global.
1137 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
1138 (opencl_language_data): ...this.
1139 (class opencl_language): New class.
1140 (opencl_language_defn): New static global.
1141 * gdb/p-lang.c (pascal_language_defn): Convert to...
1142 (pascal_language_data): ...this.
1143 (class pascal_language): New class.
1144 (pascal_language_defn): New static global.
1145 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
1146 language pointer, update comment format.
1147 * gdb/rust-lang.c (rust_language_defn): Convert to...
1148 (rust_language_data): ...this.
1149 (class rust_language): New class.
1150 (rust_language_defn): New static global.
1151
1313c56e
AB
11522020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
1155 member variable.
1156 <m_stmt_at_address>: New member variable.
1157 (lnp_state_machine::record_line): Don't record some lines, update
1158 tracking of is_stmt at the same address.
1159 (lnp_state_machine::lnp_state_machine): Initialise new member
1160 variables.
1161
b7ed9f3d
ST
11622020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1163
1164 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
1165 "-include gnu-nat-mig.h".
1166 * gnu-nat-mig.h: New file.
1167 * gnu-nat.c: Include "gnu-nat-mig.h".
1168 (exc_server, msg_reply_server, notify_server,
1169 process_reply_server): Remove declarations.
1170
14a8ad62
ST
11712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1172
1173 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
1174 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
1175 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
1176 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
1177 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
1178 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
1179 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
1180 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
1181 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
1182 to gnu_nat_target class.
1183 * gnu-nat.c: Likewise.
1184 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
1185 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
1186 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
1187 object.
1188 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
1189 instead of `gnu_target'.
1190
0af5e106
ST
11912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1192
1193 * i386-gnu-tdep.c: Include "gdbcore.h"
1194 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
1195 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
1196 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
1197 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
1198 i386_gnu_sigcontext_addr): New functions
1199 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
1200 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
1201 tdep.
1202
078f2fc9
ST
12032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1204
1205 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
1206 before fork_inferior call. Avoid calling it if target_is_pushed returns
1207 true.
1208
53dff92c
ST
12092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1210
1211 * gnu-nat.h (gnu_target): New variable declaration.
1212 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
1213 gnu_target.
1214 * gnu-nat.c (gnu_target): New variable.
1215 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
1216 add_thread_silent, and add_thread calls.
1217 (gnu_nat_target::create_inferior): Pass gnu_target to
1218 add_thread_silent, thread_change_ptid call.
1219 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
1220 call.
1221
5a8b8627
ST
12222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1223
1224 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
1225 (gnu_nat_target::find_memory_regions): Remove unused
1226 `old_address' variable.
1227
366f550a
ST
12282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1229
1230 * gnu-nat.c: Include "gdbarch.h".
1231
f14871bf
ST
12322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1233
1234 * reply_mig_hack.awk (Error return): Cast function through
1235 void *, to bypass compiler function call check.
1236
c6887cfb
ST
12372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1238
1239 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
1240 $(srcdir)/reply_mig_hack.awk.
1241
6930bffe
ST
12422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1243
1244 * gnu-nat.h (gnu_debug_flag): Set type to bool.
1245
112c22ed
JG
12462020-05-30 Jonny Grant <jg@jguk.org>
1247
1248 * configure.ac (ACX_BUGURL): change bug URL to https.
1249
f68f85b5
PA
12502020-05-30 Pedro Alves <palves@redhat.com>
1251
1252 * cp-support.c (replace_typedefs_template): New.
1253 (replace_typedefs_qualified_name): Handle
1254 DEMANGLE_COMPONENT_TEMPLATE.
1255
976ca316
SM
12562020-05-29 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
1259 dwarf2/index-cache.h, dwarf2/index-write.c,
1260 dwarf2/index-write.h, dwarf2/line-header.c,
1261 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
1262 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
1263 variables and fields from `dwarf2_per_objfile` to just
1264 `per_objfile` throughout.
1265
989ade05
SM
12662020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1269 <push_dwarf_reg_entry_value>: Add comment.
1270
c47bae85
KB
12712020-05-28 Kevin Buettner <kevinb@redhat.com>
1272 Keith Seitz <keiths@redhat.com>
1273
1274 * python/python.c (do_start_initialization): Call PyEval_SaveThread
1275 instead of PyEval_ReleaseLock.
1276 (class gdbpy_gil): Move to earlier in file.
1277 (finalize_python): Set gdb_python_initialized.
1278 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
1279 when not initialized.
1280
44486dcf
SM
12812020-05-28 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1284 <push_dwarf_reg_entry_value>: Remove assert. Override
1285 per_objfile with caller_per_objfile.
1286
f030440d
TV
12872020-05-28 Tom de Vries <tdevries@suse.de>
1288
1289 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
1290 PR gold/15646 workaround to symbol kind "type".
1291
f0fbb768
TT
12922020-05-27 Tom Tromey <tromey@adacore.com>
1293
1294 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
1295
af0b2a3e
TT
12962020-05-27 Tom Tromey <tromey@adacore.com>
1297
1298 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
1299 Use htab_find_with_hash.
1300 <add_abbrev>: Remove "abbrev_number" parameter.
1301 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
1302 "abbrev_number" parameter. Use htab_find_slot_with_hash.
1303 (hash_abbrev): Add comment.
1304 (abbrev_table::lookup_abbrev): Move to header file.
1305 (abbrev_table::read): Update.
1306
7d00ffec
TT
13072020-05-27 Tom Tromey <tromey@adacore.com>
1308
1309 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
1310 method.
1311 <canonical_name>: New member.
1312 <raw_name>: Rename from "name".
1313 (partial_die_info): Initialize canonical_name.
1314 (scan_partial_symbols): Check raw_name.
1315 (partial_die_parent_scope, partial_die_full_name)
1316 (add_partial_symbol, add_partial_subprogram)
1317 (add_partial_enumeration, load_partial_dies): Use "name" method.
1318 (partial_die_info::name): New method.
1319 (partial_die_info::read, guess_partial_die_structure_name)
1320 (partial_die_info::fixup): Update.
1321
697bba18
TT
13222020-05-27 Tom Tromey <tromey@adacore.com>
1323
1324 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
1325 <get_ref_die_offset>: Inline.
1326 <get_ref_die_offset_complaint>: New method.
1327 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
1328 (attribute::get_ref_die_offset_complaint): Rename from
1329 get_ref_die_offset. Just issue complaint.
1330
c17ace43
HD
13312020-05-27 Hannes Domani <ssbssa@yahoo.de>
1332
1333 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
1334
96445f0b
HD
13352020-05-27 Hannes Domani <ssbssa@yahoo.de>
1336
1337 * exec.c (exec_file_attach): Use errno value of first openp failure.
1338
ac637ec3
HD
13392020-05-27 Hannes Domani <ssbssa@yahoo.de>
1340
1341 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
1342 Don't close thread handle.
1343
17ee85fc
TT
13442020-05-27 Tom Tromey <tom@tromey.com>
1345 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * objfiles.h (struct objfile) <partial_symtabs>: Now a
1348 shared_ptr.
1349 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
1350 member.
1351 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
1352 dwarf2_per_bfd_objfile_data_key>: New globals.
1353 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
1354 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
1355 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
1356 shared.
1357 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
1358 short-circuit when sharing.
1359 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
1360 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
1361
39b16f87
SM
13622020-05-27 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
1365 to...
1366 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
1367 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
1368
fcf23d5b
SM
13692020-05-27 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
1372 build_name_components, find_name_components_bounds>:
1373 Add per_objfile parameter.
1374 (struct mapped_index) <symbol_name_at>: Likewise.
1375 (struct mapped_debug_names): Remove constructor.
1376 <dwarf2_per_objfile>: Remove field.
1377 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
1378 (mapped_index_base::find_name_components_bounds,
1379 mapped_index_base::build_name_components,
1380 dw2_expand_symtabs_matching_symbol): Likewise.
1381 (class mock_mapped_index) <symbol_name_at>: Likewise.
1382 (check_match): Likewise.
1383 (check_find_bounds_finds): Likewise.
1384 (test_mapped_index_find_name_component_bounds): Update.
1385 (CHECK_MATCH): Update.
1386 (dw2_expand_symtabs_matching): Update.
1387 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
1388 per_objfile parameter.
1389 <find_vec_in_debug_names>: Likewise.
1390 <m_per_objfile>: New field.
1391 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
1392 parameter.
1393 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1394 (dw2_debug_names_iterator::next): Update.
1395 (dw2_debug_names_lookup_symbol): Update.
1396 (dw2_debug_names_expand_symtabs_for_function): Update.
1397 (dw2_debug_names_map_matching_symbols): Update.
1398 (dw2_debug_names_expand_symtabs_matching): Update.
1399 (dwarf2_read_debug_names): Update.
1400
7188ed02
SM
14012020-05-27 Simon Marchi <simon.marchi@efficios.com>
1402
1403 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
1404 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
1405 move to dwarf2_per_objfile.
1406 <read_in_chain>: Remove.
1407 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
1408 remove_all_cus, age_comp_units>: New methods.
1409 <m_dwarf2_cus>: New member.
1410 (struct dwarf2_per_cu_data) <cu>: Remove.
1411 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
1412 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
1413 moved to methods of dwarf2_per_objfile.
1414 (dwarf2_clear_marks): Remove.
1415 (dwarf2_queue_item::~dwarf2_queue_item): Update.
1416 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
1417 (dwarf2_per_bfd::free_cached_comp_units): Remove.
1418 (dwarf2_per_objfile::remove_all_cus): New.
1419 (class free_cached_comp_units) <~free_cached_comp_units>:
1420 Update.
1421 (load_cu): Update.
1422 (dw2_do_instantiate_symtab): Adjust.
1423 (fill_in_sig_entry_from_dwo_entry): Adjust.
1424 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1425 (cutu_reader::cutu_reader): Likewise.
1426 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
1427 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
1428 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
1429 and dwarf2_per_objfile::age_comp_units.
1430 (load_partial_comp_unit): Update.
1431 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
1432 (process_queue): Likewise.
1433 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
1434 backlink.
1435 (dwarf2_read_addr_index): Likewise.
1436 (follow_die_offset): Likewise.
1437 (dwarf2_fetch_die_loc_sect_off): Likewise.
1438 (dwarf2_fetch_constant_bytes): Likewise.
1439 (dwarf2_fetch_die_type_sect_off): Likewise.
1440 (follow_die_sig_1): Likewise.
1441 (load_full_type_unit): Likewise.
1442 (read_signatured_type): Likewise.
1443 (dwarf2_cu::dwarf2_cu): Don't set cu field.
1444 (dwarf2_cu::~dwarf2_cu): Remove.
1445 (dwarf2_per_objfile::get_cu): New.
1446 (dwarf2_per_objfile::set_cu): New.
1447 (age_cached_comp_units): Rename to...
1448 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
1449 to std::unordered_map.
1450 (free_one_cached_comp_unit): Rename to...
1451 (dwarf2_per_objfile::remove_cu): ... this. Adjust
1452 to std::unordered_map.
1453 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
1454 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
1455 a dwarf2_per_objfile in data.
1456 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
1457 (dwarf2_clear_marks): Remove.
1458
2e671100
SM
14592020-05-27 Simon Marchi <simon.marchi@efficios.com>
1460
1461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
1462 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
1463 (init_tu_and_read_dwo_dies): Likewise.
1464 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
1465 (cutu_reader::cutu_reader): Likewise.
1466 (load_partial_comp_unit): Likewise.
1467 (process_psymtab_comp_unit): Update.
1468 (build_type_psymtabs_1): Update.
1469 (process_skeletonless_type_unit): Update.
1470 (load_full_comp_unit): Update.
1471 (find_partial_die): Update.
1472 (dwarf2_read_addr_index): Update.
1473 (read_signatured_type): Update.
1474
2e6a9f79
SM
14752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
1478 m_header_read_in>: New fields.
1479 <get_header>: New method.
1480 * dwarf2/read.c (per_cu_header_read_in): Remove.
1481 (dwarf2_per_cu_data::get_header): New.
1482 (dwarf2_per_cu_data::addr_size): Update.
1483 (dwarf2_per_cu_data::offset_size): Update.
1484 (dwarf2_per_cu_data::ref_addr_size): Update.
1485
1b555f17
SM
14862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * dwarf2/read.c (load_cu): Return dwarf2_cu.
1489 (dw2_do_instantiate_symtab): Update.
1490 (queue_and_load_all_dwo_tus): Change parameter from
1491 dwarf2_per_cu_data to dwarf2_cu.
1492 (dwarf2_fetch_die_loc_sect_off): Update.
1493 (dwarf2_fetch_constant_bytes): Update.
1494 (dwarf2_fetch_die_type_sect_off): Update.
1495
8fc0b21d
SM
14962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * dwarf2/read.c (process_full_comp_unit,
1499 process_full_type_unit): Remove per_cu, per_objfile paramters.
1500 Add dwarf2_cu parameter.
1501 (process_queue): Update.
1502
168c9250
SM
15032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 * dwarf2/read.c (create_cu_from_index_list): Replace
1506 dwarf2_per_objfile parameter with dwarf2_per_bfd.
1507 (create_cus_from_index_list): Likewise.
1508 (create_cus_from_index): Likewise.
1509 (create_signatured_type_table_from_index): Likewise.
1510 (create_cus_from_debug_names_list): Likewise.
1511 (create_cus_from_debug_names): Likewise.
1512 (dwarf2_read_gdb_index): Update.
1513 (dwarf2_read_debug_names): Update.
1514
e286671b
TT
15152020-05-27 Tom Tromey <tom@tromey.com>
1516 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * dwarf2/read.h (struct dwarf2_per_objfile)
1519 <get_type_for_signatured_type, set_type_for_signatured_type>:
1520 New methods.
1521 <m_type_map>: New member.
1522 (struct signatured_type) <type>: Remove.
1523 * dwarf2/read.c
1524 (dwarf2_per_objfile::get_type_for_signatured_type,
1525 dwarf2_per_objfile::set_type_for_signatured_type): New.
1526 (get_signatured_type): Use new methods.
1527
8adb8487
TT
15282020-05-27 Tom Tromey <tom@tromey.com>
1529 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * dwarf2/read.h (struct type_unit_group_unshareable): New.
1532 (struct dwarf2_per_objfile) <type_units>: New member.
1533 <get_type_unit_group_unshareable>: New method.
1534 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
1535 num_symtabs, symtabs>: Remove; move to
1536 type_unit_group_unshareable.
1537 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
1538 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
1539 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
1540
127bbf4b
SM
15412020-05-27 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * dwarf2/read.h (struct dwarf2_per_cu_data):
1544 <dwarf2_per_objfile>: Remove.
1545 * dwarf2/read.c (create_cu_from_index_list): Don't assign
1546 dwarf2_per_objfile.
1547 (create_signatured_type_table_from_index): Likewise.
1548 (create_signatured_type_table_from_debug_names): Likewise.
1549 (create_debug_type_hash_table): Likewise.
1550 (fill_in_sig_entry_from_dwo_entry): Likewise.
1551 (create_type_unit_group): Likewise.
1552 (read_comp_units_from_section): Likewise.
1553 (create_cus_hash_table): Likewise.
1554
f6e649dd
SM
15552020-05-27 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
1558 dwarf2_per_cu_data::dwarf2_per_objfile.
1559 (compute_compunit_symtab_includes): Likewise.
1560 (dwarf2_cu::start_symtab): Likewise.
1561
aa66c379
SM
15622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
1565 parameter.
1566 * dwarf2/read.c (get_die_type_at_offset): Likewise.
1567 (read_namespace_alias): Update.
1568 (lookup_die_type): Update.
1569 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
1570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
1571 Update.
1572 (disassemble_dwarf_expression): Update.
1573
120ce1b5
SM
15742020-05-27 Simon Marchi <simon.marchi@efficios.com>
1575
1576 * dwarf2/read.h (struct dwarf2_queue_item): Add
1577 dwarf2_per_objfile parameter, assign new parameter.
1578 <per_objfile>: New field.
1579 * dwarf2/read.c (free_one_cached_comp_unit): Add
1580 dwarf2_per_objfile parameter.
1581 (queue_comp_unit): Likewise.
1582 (dw2_do_instantiate_symtab): Update.
1583 (process_psymtab_comp_unit): Update.
1584 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
1585 (process_imported_unit_die): Update.
1586 (queue_and_load_dwo_tu): Update.
1587 (follow_die_offset): Update.
1588 (follow_die_sig_1): Update.
1589
9f47c707
SM
15902020-05-27 Simon Marchi <simon.marchi@efficios.com>
1591
1592 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
1593 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
1594 (read_call_site_scope): Assign per_objfile.
1595 (dwarf2_per_cu_data::objfile): Remove.
1596 * gdbtypes.h (struct call_site) <per_objfile>: New member.
1597 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
1598 dwarf2_per_objfile parameter.
1599 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
1600 dwarf2_per_objfile parameter.
1601 (dwarf_expr_reg_to_entry_parameter): Add output
1602 dwarf2_per_objfile parameter.
1603 (locexpr_get_frame_base): Update.
1604 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
1605 <push_dwarf_reg_entry_value>: Update.
1606 <call_site_to_target_addr>: Update.
1607 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
1608 parameter.
1609 (value_of_dwarf_reg_entry): Update.
1610 (rw_pieced_value): Update.
1611 (indirect_synthetic_pointer): Update.
1612 (dwarf2_evaluate_property): Update.
1613 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
1614 parameter.
1615 (locexpr_read_variable): Update.
1616 (locexpr_get_symbol_read_needs): Update.
1617 (loclist_read_variable): Update.
1618
14095eb3
SM
16192020-05-27 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1623 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1624 parameter.
1625 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1627 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1628 parameter.
1629 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
1630 sect_variable_value): Add dwarf2_per_objfile parameter.
1631 (class dwarf_evaluate_loc_desc) <dwarf_call,
1632 dwarf_variable_value>: Update.
1633 (fetch_const_value_from_synthetic_pointer): Add
1634 dwarf2_per_objfile parameter.
1635 (fetch_const_value_from_synthetic_pointer): Update.
1636 (coerced_pieced_ref): Update.
1637 (class symbol_needs_eval_context) <dwarf_call,
1638 dwarf_variable_value>: Update.
1639 (dwarf2_compile_expr_to_ax): Update.
1640
3c3cd3d4
SM
16412020-05-27 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
1644 parameter.
1645 (dwarf2_evaluate_loc_desc_full): Update.
1646
82ca3f51
SM
16472020-05-27 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
1650 parameter.
1651 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
1652 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
1653 dwarf2_per_objfile parameter.
1654 (decode_debug_loc_dwo_addresses): Likewise.
1655 (dwarf2_find_location_expression): Update.
1656 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
1657 (locexpr_describe_location_piece): Add dwarf2_per_objfile
1658 parameter.
1659 (disassemble_dwarf_expression): Add dwarf2_per_objfile
1660 parameter.
1661 (locexpr_describe_location_1): Likewise.
1662 (locexpr_describe_location): Update.
1663
4b167ea1
SM
16642020-05-27 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
1667 Remove.
1668 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
1669 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
1670 (dwarf2_compile_property_to_c): Update.
1671 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
1672 use text offset from objfile.
1673 (locexpr_tracepoint_var_ref): Update.
1674 (locexpr_generate_c_location): Update.
1675 (loclist_describe_location): Update.
1676 (loclist_tracepoint_var_ref): Update.
1677 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
1678 dwarf2_per_objfile parameter.
1679 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
1680 use text offset from objfile.
1681 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
1682
89b07335
SM
16832020-05-27 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * dwarf2/expr.h (struct dwarf_expr_context)
1686 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
1687 <offset>: Remove.
1688 <per_objfile>: New member.
1689 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
1690 dwarf2_per_objfile parameter. Don't set offset, set
1691 per_objfile.
1692 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
1693 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
1694 a dwarf2_per_objfile object instead of an offset.
1695 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
1696 constructor.
1697 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
1698 to dwarf2_expr_executor constructor. Don't set offset.
1699 (dwarf2_fetch_cfa_info): Update.
1700 (struct dwarf2_frame_cache) <text_offset>: Remove.
1701 <per_objfile>: New field.
1702 (dwarf2_frame_cache): Update.
1703 (dwarf2_frame_prev_register): Update.
1704 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1705 <dwarf_evaluate_loc_desc>: Add constructor.
1706 (dwarf2_evaluate_loc_desc_full): Update.
1707 (dwarf2_locexpr_baton_eval): Update.
1708 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
1709 Add constructor.
1710 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1711
293e7e51
SM
17122020-05-27 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
1715 addr_sized_int_type>: Move to dwarf2_cu.
1716 <int_type>: Move to dwarf2_per_objfile.
1717 (struct dwarf2_per_objfile) <int_type>: Move here.
1718 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
1719 addr_sized_int_type>: Move here.
1720 (read_func_scope): Update.
1721 (read_array_type): Update.
1722 (read_tag_string_type): Update.
1723 (attr_to_dynamic_prop): Update.
1724 (dwarf2_per_cu_data::int_type): Rename to...
1725 (dwarf2_per_objfile::int_type): ... this.
1726 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
1727 (dwarf2_cu::addr_sized_int_type): ... this.
1728 (read_subrange_type): Update.
1729 (dwarf2_per_cu_data::addr_type): Rename to...
1730 (dwarf2_cu::addr_type): ... this.
1731 (set_die_type): Update.
1732
64874a40
SM
17332020-05-27 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
1736 data through per_cu->cu.
1737
4ab09049
SM
17382020-05-27 Simon Marchi <simon.marchi@efficios.com>
1739
1740 * dwarf2/read.c (lookup_dwo_comp_unit): Change
1741 dwarf2_per_cu_data parameter fo dwarf2_cu.
1742 (lookup_dwo_type_unit): Likewise.
1743 (read_cutu_die_from_dwo): Likewise.
1744 (lookup_dwo_unit): Likewise.
1745 (open_and_init_dwo_file): Likewise.
1746 (lookup_dwo_cutu): Likewise.
1747 (lookup_dwo_comp_unit): Likewise.
1748 (lookup_dwo_type_unit): Likewise.
1749 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1750 (cutu_reader::cutu_reader): Update.
1751
47b14e86
SM
17522020-05-27 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
1755 parameter.
1756 (process_full_type_unit): Likewise.
1757 (process_queue): Update.
1758
43182c09
SM
17592020-05-27 Simon Marchi <simon.marchi@efficios.com>
1760
1761 * dwarf2/read.c (recursively_compute_inclusions): Add
1762 dwarf2_per_objfile parameter.
1763 (compute_compunit_symtab_includes): Likewise.
1764 (process_cu_includes): Update.
1765
7aa104c4
SM
17662020-05-27 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
1769 parameter.
1770 (create_type_unit_group): Update.
1771 (process_psymtab_comp_unit_reader): Update.
1772 (build_type_psymtabs_reader): Update.
1773
e3beb21d
SM
17742020-05-27 Simon Marchi <simon.marchi@efficios.com>
1775
1776 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
1777 object through m_this_cu->cu.
1778
d460f660
SM
17792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
1782 the info parameter.
1783 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
1784
ab432490
SM
17852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1786
1787 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
1788 per_objfile parameter.
1789 (load_full_type_unit): Add per_objfile parameter.
1790 (read_signatured_type): Likewise.
1791 (load_full_comp_unit): Likewise.
1792 (load_cu): Likewise.
1793 (dw2_do_instantiate_symtab): Likewise.
1794 (dw2_get_file_names): Likewise.
1795 (dw2_map_symtabs_matching_filename): Update.
1796 (dw_expand_symtabs_matching_file_matcher): Update.
1797 (dw2_map_symbol_filenames): Update.
1798 (process_psymtab_comp_unit): Add per_objfile parameter.
1799 (build_type_psymtabs_1): Update.
1800 (process_skeletonless_type_unit): Update.
1801 (dwarf2_build_psymtabs_hard): Update.
1802 (load_partial_comp_unit): Add per_objfile parameter.
1803 (scan_partial_symbols): Update.
1804 (load_full_comp_unit): Add per_objfile parameter.
1805 (process_imported_unit_die): Update.
1806 (create_cus_hash_table): Update.
1807 (find_partial_die): Update.
1808 (dwarf2_read_addr_index): Update.
1809 (follow_die_offset): Update.
1810 (dwarf2_fetch_die_loc_sect_off): Update.
1811 (dwarf2_fetch_constant_bytes): Update.
1812 (dwarf2_fetch_die_type_sect_off): Update.
1813 (follow_die_sig_1): Update.
1814 (load_full_type_unit): Add per_objfile parameter.
1815 (read_signatured_type): Likewise.
1816
313bad1b
SM
18172020-05-27 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
1820 of objfile_name.
1821
c3699833
SM
18222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
1825 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1826 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
1827 field.
1828 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1829 (create_cus_from_index): Update.
1830 (dwarf2_read_gdb_index): Update.
1831 (create_cus_from_debug_names): Update.
1832 (dwarf2_read_debug_names): Update.
1833 (get_abbrev_section_for_cu): Update.
1834 (create_all_comp_units): Update.
1835 (read_attribute_value): Update.
1836 (get_debug_line_section): Update.
1837 * dwarf2/index-cache.c (index_cache::store): Update.
1838 * dwarf2/index-write.c (save_gdb_index_command): Update.
1839 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1840
1859c670
SM
18412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
1844 member.
1845 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
1846 dwarf2_per_cu_data::per_bfd.
1847 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
1848 (create_type_unit_group): Likewise.
1849 (queue_comp_unit): Remove reference to
1850 per_cu->dwarf2_per_objfile.
1851 (maybe_queue_comp_unit): Likewise.
1852 (fill_in_sig_entry_from_dwo_entry): Assign new field.
1853 (create_cus_hash_table): Assign new field.
1854
5e22e966
SM
18552020-05-27 Simon Marchi <simon.marchi@efficios.com>
1856
1857 * dwarf2/read.c: Replace
1858 dwarf2_cu->per_cu->dwarf2_per_objfile references with
1859 dwarf2_cu->per_objfile throughout.
1860
97a1449a
SM
18612020-05-27 Simon Marchi <simon.marchi@efficios.com>
1862
1863 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
1864 parameter, don't use per_cu->dwarf2_per_objfile.
1865 (dw2_instantiate_symtab): Likewise.
1866 (dw2_find_last_source_symtab): Update.
1867 (dw2_map_expand_apply): Update.
1868 (dw2_lookup_symbol): Update.
1869 (dw2_expand_symtabs_for_function): Update.
1870 (dw2_expand_all_symtabs): Update.
1871 (dw2_expand_symtabs_with_fullname): Update.
1872 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
1873 don't use per_cu->dwarf2_per_objfile.
1874 (dw2_expand_marked_cus): Update.
1875 (dw2_find_pc_sect_compunit_symtab): Update.
1876 (dw2_debug_names_lookup_symbol): Update.
1877 (dw2_debug_names_expand_symtabs_for_function): Update.
1878 (dw2_debug_names_map_matching_symbols): Update.
1879 (dwarf2_psymtab::expand_psymtab): Update.
1880
9e021579
SM
18812020-05-27 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
1884 <per_objfile>: New member.
1885 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
1886 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
1887 call to dwarf2_cu.
1888 (cutu_reader::cutu_reader): Update.
1889 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
1890
ae090bdb
SM
18912020-05-27 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
1894 struct dwarf2_per_objfile.
1895 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
1896 dwarf2_per_bfd.
1897 * dwarf2/read.c (set_die_type): Update.
1898 (get_die_type_at_offset): Update.
1899
af758d11
SM
19002020-05-27 Tom Tromey <tom@tromey.com>
1901 Simon Marchi <simon.marchi@efficios.com>
1902
1903 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
1904 method.
1905 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
1906 get_symtab, set_symtab>: New methods.
1907 <m_symtabs>: New field.
1908 (struct dwarf2_psymtab): Derive from partial_symtab.
1909 <readin_p, get_compunit_symtab>: Declare methods.
1910 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
1911 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
1912 New methods.
1913 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
1914 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
1915 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
1916 (dw2_symtab_iter_next, dw2_print_stats)
1917 (dw2_expand_symtabs_with_fullname)
1918 (dw2_expand_symtabs_matching_one)
1919 (dw_expand_symtabs_matching_file_matcher)
1920 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
1921 (dw2_debug_names_iterator::next)
1922 (dw2_debug_names_map_matching_symbols)
1923 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
1924 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
1925 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
1926 New methods.
1927 (get_compunit_symtab, process_full_comp_unit)
1928 (process_full_type_unit): Update.
1929 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
1930
5989a64e
SM
19312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
1934 then introduce a new dwarf2_per_objfile type.
1935 <read_line_string>: Move to the new dwarf2_per_objfile type.
1936 <objfile>: Likewise.
1937 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
1938 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
1939 dwarf2_per_objfile->per_bfd.
1940 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
1941 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
1942 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
1943 (dwarf2_per_bfd::free_cached_comp_units): ... this.
1944 (dwarf2_has_info): Allocate dwarf2_per_bfd.
1945 (dwarf2_per_objfile::locate_sections): Rename to...
1946 (dwarf2_per_bfd::locate_sections): ... this.
1947 (dwarf2_per_objfile::get_cutu): Rename to...
1948 (dwarf2_per_bfd::get_cutu): ... this.
1949 (dwarf2_per_objfile::get_cu): Rename to...
1950 (dwarf2_per_bfd::get_cu): ... this.
1951 (dwarf2_per_objfile::get_tu): Rename to...
1952 (dwarf2_per_bfd::get_tu): ... this.
1953 (dwarf2_per_objfile::allocate_per_cu): Rename to...
1954 (dwarf2_per_bfd::allocate_per_cu): ... this.
1955 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
1956 (dwarf2_per_bfd::allocate_signatured_type): ... this.
1957 (get_gdb_index_contents_ftype): Change parameter from
1958 dwarf2_per_objfile to dwarf2_per_bfd.
1959 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
1960 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
1961
a50264ba
TT
19622020-05-27 Tom Tromey <tom@tromey.com>
1963 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
1966 (allocate_piece_closure): Set "per_objfile" member.
1967 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
1968 (locexpr_describe_location, loclist_describe_location): Use new
1969 member.
1970 * dwarf2/read.c (read_call_site_scope)
1971 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1972 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
1973 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
1974 handle_data_member_location): Set per_objfile member.
1975 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
1976 member.
1977 (struct dwarf2_loclist_baton) <per_objfile>: New member.
1978
d3473f0c
TT
19792020-05-27 Tom Tromey <tom@tromey.com>
1980
1981 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
1982 allocate_signatured_type>: Declare new methods.
1983 <m_num_psymtabs>: New member.
1984 (struct dwarf2_per_cu_data) <index>: New member.
1985 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
1986 (dwarf2_per_objfile::allocate_signatured_type): New methods.
1987 (create_cu_from_index_list): Use allocate_per_cu.
1988 (create_signatured_type_table_from_index)
1989 (create_signatured_type_table_from_debug_names)
1990 (create_debug_type_hash_table, add_type_unit)
1991 (read_comp_units_from_section): Use allocate_signatured_type.
1992
5717c425
TT
19932020-05-27 Tom Tromey <tom@tromey.com>
1994
1995 * psymtab.c (partial_map_expand_apply)
1996 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
1997 (psym_lookup_global_symbol_language)
1998 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
1999 (psym_print_stats, psym_expand_symtabs_for_function)
2000 (psym_map_symbol_filenames, psym_map_matching_symbols)
2001 (psym_expand_symtabs_matching)
2002 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2003 (maintenance_check_psymtabs): Update.
2004 * psympriv.h (struct partial_symtab) <readin_p,
2005 get_compunit_symtab>: Add objfile parameter.
2006 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2007 Likewise.
2008 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2009 get_compunit_symtab>: Likewise.
2010 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2011
45940949
TT
20122020-05-27 Tom Tromey <tom@tromey.com>
2013
2014 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2015 member.
2016 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2017 (create_cu_from_index_list)
2018 (create_signatured_type_table_from_index)
2019 (create_signatured_type_table_from_debug_names)
2020 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2021 (dwarf2_create_include_psymtab)
2022 (create_debug_type_hash_table, add_type_unit)
2023 (create_type_unit_group, read_comp_units_from_section)
2024 (dwarf2_compute_name, create_cus_hash_table)
2025 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2026 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2027 obstack.
2028 (dw2_get_real_path): Likewise. Change argument to
2029 dwarf2_per_objfile.
2030
f8c6d152
LM
20312020-05-27 Luis Machado <luis.machado@linaro.org>
2032
2033 PR tdep/26000
2034 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2035 for ldrd (immediate).
2036
e98d2e6d
PW
20372020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2038
2039 * command.h: Add comment giving the name of class_tui.
2040 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2041 create the fake command for the help for class_tui.
2042
53a47a3e
TT
20432020-05-26 Tom Tromey <tromey@adacore.com>
2044
2045 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2046 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2047 (val_atr): New function.
2048 (value_val_atr): Use it.
2049 * ada-valprint.c (print_optional_low_bound): Change low bound
2050 handling for enums.
2051 (val_print_packed_array_elements): Don't call discrete_position.
2052 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2053 discrete_position for enum types.
2054 * language.c (default_print_array_index): Change type.
2055 * language.h (struct language_defn) <la_print_array_index>: Add
2056 index_type parameter, change type of index_value.
2057 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2058 (default_print_array_index): Update.
2059 * valprint.c (maybe_print_array_index): Don't call
2060 value_from_longest. Update.
2061 (value_print_array_elements): Don't call discrete_position.
2062
0bc2354b
TT
20632020-05-26 Tom Tromey <tromey@adacore.com>
2064
2065 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2066 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2067
1218a4bf
CDA
20682020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2069
2070 PR gdb/13519
2071 * avr-tdep.c (avr_integer_to_address): Return data or code
2072 address accordingly to the second 'type' argument of the
2073 function.
2074
92651b1d
MW
20752020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2076
2077 * infcmd.c, inferior.h: (construct_inferior_arguments):
2078 Moved function from here to gdbsupport/common-inferior.{h,cc}
2079
0a4f5f8c
TT
20802020-05-23 Tom Tromey <tom@tromey.com>
2081
2082 Revert commit eca1f90c:
2083 * NEWS: Remove entry for completion styling.
2084 * completer.c (_rl_completion_prefix_display_length): Move
2085 declaration later.
2086 (gdb_fnprint): Revert.
2087 (gdb_display_match_list_1): Likewise.
2088 * cli/cli-style.c (completion_prefix_style)
2089 (completion_difference_style, completion_suffix_style): Remove.
2090 (_initialize_cli_style): Revert.
2091 * cli/cli-style.h (completion_prefix_style)
2092 (completion_difference_style, completion_suffix_style): Don't
2093 declare.
2094
e08bd6c5
PA
20952020-05-24 Pedro Alves <palves@redhat.com>
2096
2097 * symtab.c (completion_list_add_name): Return boolean indication
2098 of whether the symbol matched.
2099 (completion_list_add_symbol): Don't try to remove C++ aliases if
2100 the symbol didn't match in the first place.
2101 * symtab.h (completion_list_add_name): Return bool.
2102
ceacbf6e
SM
21032020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
2106 type::field.
2107
26f16254
JB
21082020-05-23 Joel Brobecker <brobecker@adacore.com>
2109
2110 GDB 9.2 released.
2111
eca1f90c
TT
21122020-05-23 Tom Tromey <tom@tromey.com>
2113
2114 * NEWS: Add entry for completion styling.
2115 * completer.c (_rl_completion_prefix_display_length): Move
2116 declaration earlier.
2117 (gdb_fnprint): Use completion_style.
2118 (gdb_display_match_list_1): Likewise.
2119 * cli/cli-style.c (completion_prefix_style)
2120 (completion_difference_style, completion_suffix_style): New
2121 globals.
2122 (_initialize_cli_style): Register new globals.
2123 * cli/cli-style.h (completion_prefix_style)
2124 (completion_difference_style, completion_suffix_style): Declare.
2125
51e2cfa2
PA
21262020-05-23 Pedro Alves <palves@redhat.com>
2127
2128 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
2129 (parse_escape): Use ISDIGIT instead of isdigit.
2130 (puts_debug): Use gdb_isprint instead of isprint.
2131 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
2132 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
2133 ISSPACE instead of isspace.
2134 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
2135 instead of isspace.
2136 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
2137 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
2138 instead of isxdigit and ISDIGIT instead of isdigit.
2139
80fc5e77
SM
21402020-05-22 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * gdbtypes.h (struct type) <field>: New method.
2143 (TYPE_FIELDS): Remove, replace all uses with either type::fields
2144 or type::field.
2145
3cabb6b0
SM
21462020-05-22 Simon Marchi <simon.marchi@efficios.com>
2147
2148 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
2149 (TYPE_FIELDS): Use type::fields. Change all call sites that
2150 modify the propery to use type::set_fields instead.
2151
1f704f76
SM
21522020-05-22 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
2155 type::num_fields instead.
2156
5e33d5f4
SM
21572020-05-22 Simon Marchi <simon.marchi@efficios.com>
2158
2159 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
2160 methods.
2161 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
2162 that modify the number of fields to use type::set_num_fields
2163 instead.
2164
9392ebb3
TT
21652020-05-22 Tom Tromey <tromey@adacore.com>
2166
2167 * compile/compile-object-load.h (munmap_list_free): Don't
2168 declare.
2169
7c13f4e8
AB
21702020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * annotate.c (annotate_source_line): Update return type, add call
2173 to update current symtab and line.
2174 * annotate.h (annotate_source_line): Update return type, and
2175 extend header comment.
2176 * source.c (info_line_command): Check annotation_level before
2177 calling annotate_source_line.
2178 * stack.c (print_frame_info): If calling annotate_source_line
2179 returns true, then don't print any other source line information.
2180
aa370940
SM
21812020-05-21 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
2184
84d53fa9
SM
21852020-05-21 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * coffread.c (patch_type): Remove NULL check before xfree.
2188 * corefile.c (set_gnutarget): Likewise.
2189 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
2190 * exec.c (build_section_table): Likewise.
2191 * remote.c (remote_target::pass_signals): Likewise.
2192 * utils.c (n_spaces): Likewise.
2193 * cli/cli-script.c (document_command): Likewise.
2194 * i386-windows-tdep.c (core_process_module_section): Likewise.
2195 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
2196
9d428aae
SM
21972020-05-20 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * symfile.c (reread_symbols): Clear objfile's section_offsets
2200 vector and section indices, re-compute them by calling
2201 sym_offsets.
2202
250106a7
TT
22032020-05-20 Tom Tromey <tromey@adacore.com>
2204
2205 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 2206 (desc_one_bound, desc_index_type): Compute field name.
250106a7 2207
9a0bacfb
TV
22082020-05-20 Tom de Vries <tdevries@suse.de>
2209
2210 PR symtab/25833
2211 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
2212
7b958a48
AM
22132020-05-20 Alan Modra <amodra@gmail.com>
2214
2215 PR 25993
2216 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
2217 bfd_set_filename.
2218 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
2219 passed to bfd_set_filename.
2220 * symfile-mem.c (add_vsyscall_page): Likewise for string
2221 passed to symbol_file_add_from_memory.
2222 (symbol_file_add_from_memory): Make name param a const char* and
2223 don't strdup.
2224
c7e97679
AM
22252020-05-20 Alan Modra <amodra@gmail.com>
2226
2227 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
2228 rather than accessing bfd->filename directly.
2229 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
2230 and use bfd_section_name.
2231 * dwarf2/frame.c (decode_frame_entry): Likewise.
2232 * exec.c (exec_set_section_address): Likewise.
2233 * solib-aix.c (solib_aix_bfd_open): Likewise.
2234 * stap-probe.c (get_stap_base_address): Likewise.
2235 * symfile.c (reread_symbols): Likewise.
2236
563c591b
TT
22372020-05-19 Tom Tromey <tromey@adacore.com>
2238
2239 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
2240
f408d82c
SM
22412020-05-19 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
2244
98c59b52
PA
22452020-05-19 Pedro Alves <palves@redhat.com>
2246
2247 * NEWS (set exec-file-mismatch): Adjust entry.
2248 * exec.c: Include "build-id.h".
2249 (validate_exec_file): Try to match build IDs instead of filenames.
2250 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
2251 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
2252 and pass down 'warn_if_slow'.
2253 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
2254 gdb_bfd_open_closure to pass it down.
2255 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
2256
4111f652
PA
22572020-05-19 Pedro Alves <palves@redhat.com>
2258
2259 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
2260 * target.c (target_fileio_open_1): Rename to target_fileio_open
2261 and make extern. Use bool.
2262 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
2263 (target_fileio_read_alloc_1): Adjust.
2264 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
2265 (target_fileio_open_warn_if_slow): Delete declaration.
2266
ad80db5b
PA
22672020-05-19 Pedro Alves <palves@redhat.com>
2268
2269 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
2270 Adjust all callers.
2271
1d6ce4d3
YS
22722020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
2273
2274 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
2275 whether disp is negative.
2276
9005fbbb
SM
22772020-05-19 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * symfile.h (struct symfile_segment_data)
2280 <~symfile_segment_data>: Remove.
2281 <segment_info>: Change to std::vector.
2282 * symfile.c (default_symfile_segments): Update.
2283 * elfread.c (elf_symfile_segments): Update.
2284
68b888ff
SM
22852020-05-19 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * symfile.h (struct symfile_segment_data) <struct segment>: New.
2288 <segments>: New.
2289 <segment_bases, segment_sizes>: Remove.
2290 * symfile.c (default_symfile_segments): Update.
2291 * elfread.c (elf_symfile_segments): Update.
2292 * remote.c (remote_target::get_offsets): Update.
2293 * solib-target.c (solib_target_relocate_section_addresses):
2294 Update.
2295
62982abd
SM
22962020-05-19 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * symfile.h (struct symfile_segment_data): Initialize fields.
2299 <~symfile_segment_data>: Add.
2300 (symfile_segment_data_up): New.
2301 (struct sym_fns) <sym_segments>: Return a
2302 symfile_segment_data_up.
2303 (default_symfile_segments): Return a symfile_segment_data_up.
2304 (free_symfile_segment_data): Remove.
2305 (get_symfile_segment_data): Return a symfile_segment_data_up.
2306 * symfile.c (default_symfile_segments): Likewise.
2307 (get_symfile_segment_data): Likewise.
2308 (free_symfile_segment_data): Remove.
2309 (symfile_find_segment_sections): Update.
2310 * elfread.c (elf_symfile_segments): Return a
2311 symfile_segment_data_up.
2312 * remote.c (remote_target::get_offsets): Update.
2313 * solib-target.c (solib_target_relocate_section_addresses):
2314 Update.
2315 * symfile-debug.c (debug_sym_segments): Return a
2316 symfile_segment_data_up.
2317
7f204339
RO
23182020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2319
e52a0f1b
RO
2320 PR build/25981
2321 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
2322 Hardcode register numbers.
2323
7f204339
RO
2324 PR build/25981
2325 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
2326 procfs_find_LDT_entry): Remove.
2327 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
2328 procfs_find_LDT_entry): Remove.
2329 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
2330 Remove.
2331
7f32a4d5
PA
23322020-05-17 Pedro Alves <palves@redhat.com>
2333 Andrew Burgess <andrew.burgess@embecosm.com>
2334 Keno Fischer <keno@juliacomputing.com>
2335
2336 PR gdb/25741
2337 * breakpoint.c (build_target_condition_list): Update comments.
2338 (build_target_command_list): Update comments and skip matching
2339 locations.
2340 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
2341 a separate function. Simplify "set breakpoint auto-hw off"
2342 handling.
2343 (insert_breakpoints): Update comment.
2344 (tracepoint_locations_match): New parameter. For breakpoints,
2345 compare location types too, if the caller wants to.
2346 (handle_automatic_hardware_breakpoints): New functions.
2347 (bp_location_is_less_than): Also sort by location type and
2348 hardware breakpoint length.
2349 (update_global_location_list): Handle "set breakpoint auto-hw on"
2350 here.
2351 (update_breakpoint_locations): Ask breakpoint_locations_match to
2352 ignore location types.
2353
7d93a1e0
SM
23542020-05-16 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
2357 type::name instead.
2358
d0e39ea2
SM
23592020-05-16 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * gdbtypes.h (struct type) <name, set_name>: New methods.
2362 (TYPE_CODE): Use type::name. Change all call sites used to set
2363 the name to use type::set_name instead.
2364
2dab0c7b
TT
23652020-05-16 Tom Tromey <tom@tromey.com>
2366
2367 * top.c (quit_force): Update.
2368 * infrun.c (handle_no_resumed): Update.
2369 * top.h (all_uis): New function.
2370 (ALL_UIS): Remove.
2371
59f7bd8d
SM
23722020-05-16 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
2375
9bf058f0
PA
23762020-05-16 Pedro Alves <palves@redhat.com>
2377
2378 * ia64-linux-nat.c
2379 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
2380 Declare method.
2381 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
2382
8f86ae1a
SM
23832020-05-15 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
2386 (sparc64_adi_info): Likewise.
2387
d6bc0792
TT
23882020-05-15 Tom Tromey <tom@tromey.com>
2389
2390 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
2391 block_objfile.
2392 (lookup_objfile_from_block): Remove.
2393 (lookup_symbol_in_block, lookup_symbol_in_static_block)
2394 (lookup_global_symbol): Use block_objfile.
2395 * symtab.h (lookup_objfile_from_block): Don't declare.
2396 * printcmd.c (clear_dangling_display_expressions): Use
2397 block_objfile.
2398 * parse.c (operator_check_standard): Use block_objfile.
2399
8c14c3a3
TT
24002020-05-15 Tom Tromey <tom@tromey.com>
2401
2402 * language.c (language_alloc_type_symbol): Set
2403 SYMBOL_SECTION.
2404 * symtab.c (initialize_objfile_symbol): Remove.
2405 (allocate_symbol): Remove.
2406 (allocate_template_symbol): Remove.
2407 * dwarf2/read.c (fixup_go_packaging): Use "new".
2408 (new_symbol): Use "new".
2409 (read_variable): Don't call initialize_objfile_symbol. Use
2410 "new".
2411 (read_func_scope): Use "new".
2412 * xcoffread.c (process_xcoff_symbol): Don't call
2413 initialize_objfile_symbol.
2414 (SYMBOL_DUP): Remove.
2415 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
2416 "new".
2417 * symtab.h (allocate_symbol, initialize_objfile_symbol)
2418 (allocate_template_symbol): Don't declare.
2419 (struct symbol): Add copy constructor. Change defaults.
2420 * jit.c (finalize_symtab): Use "new".
2421 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
2422 Use "new".
2423 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2424 (common_block_end): Use "new".
2425 * mdebugread.c (parse_symbol): Use "new".
2426 (new_symbol): Likewise.
2427
5b4a1a8d
PW
24282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2429
2430 * NEWS: Mention changes to help and apropos.
2431
57b4f16e
PW
24322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2433
2434 * command.h (enum command_class): Improve comments, document
2435 that class_alias is for user-defined aliases, give the class
2436 name for each class, remove unused class_xdb.
2437 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
2438 * breakpoint.c (_initialize_breakpoint): Replace class_alias
2439 by a precise class.
2440 * infcmd.c (_initialize_infcmd): Likewise.
2441 * reverse.c (_initialize_reverse): Likewise.
2442 * stack.c (_initialize_stack): Likewise.
2443 * symfile.c (_initialize_symfile): Likewise.
2444 * tracepoint.c (_initialize_tracepoint): Likewise.
2445
7c05caf7
PW
24462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2447
2448 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
2449 when their aliased command is traversed.
2450 (help_cmd): Add fput_command_names_styled call to
2451 output command name and aliases when command has an alias.
2452
3b3aaacb
PW
24532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2454
2455 * cli/cli-decode.h (help_cmd_list): Remove declaration.
2456 * cli/cli-decode.c (help_cmd_list): Declare as static,
2457 remove prefix argument, use bool for recurse arg, rework to show the aliases of
2458 a command together with the command.
2459 (fput_command_name_styled, fput_command_names_styled): New functions.
2460 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
2461 fput_command_name_styled.
2462 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
2463 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
2464
7aa1b46f
PW
24652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2466
2467 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
2468 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
2469 * command.h (cmd_show_list): Likewise.
2470 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
2471 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
2472
89bcba74
PW
24732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2474
2475 * unittests/command-def-selftests.c (traverse_command_structure):
2476 Verify all commands of a list have the same prefix command and
2477 that only the top cmdlist commands have a null prefix.
2478
3f4d92eb
PW
24792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2480
2481 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
2482 as prefix, not one of its aliases.
2483 (set_cmd_prefix): Remove.
2484 (do_add_cmd): Centralize the setting of the prefix of a command, when
2485 command is defined after its full chain of prefix commands.
2486 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
2487 (add_setshow_cmd_full): Likewise.
2488 (update_prefix_field_of_prefixed_commands): New function.
2489 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
2490 update_prefix_field_of_prefixed_commands.
2491 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
2492 addresses of remote_set_cmdlist and remote_show_cmdlist given
2493 as argument, not the address of an argument.
2494 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
2495 * gdb/remote.c (_initialize_remote): Likewise.
2496
0605465f
PW
24972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2498
2499 * cli/cli-cmds.c (alias_command): Check for an existing alias
2500 using lookup_cmd_composition, as valid_command_p is too strict
2501 and forbids aliases that are the prefix of an existing alias
2502 or command.
2503 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
2504 command is properly recognised as a valid command.
2505
58e6ac70
PW
25062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2507
2508 * unittests/help-doc-selftests.c: Rename to
2509 unittests/command-def-selftests.c
2510 * unittests/command-def-selftests.c (help_doc_tests): Update some
2511 comments.
2512 (command_structure_tests, traverse_command_structure): New namespace
2513 and function.
2514 (command_structure_invariants_tests): New function.
2515 (_initialize_command_def_selftests) Renamed from
2516 _initialize_help_doc_selftests, register command_structure_invariants
2517 selftest.
2518
a7b9ceb8
PW
25192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2520
2521 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
2522 an alias of 'show'.
2523
b2188a06
JB
25242020-05-15 Joel Brobecker <brobecker@adacore.com>
2525
2526 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
2527 ada_is_fixed_point_type. Update all callers.
2528 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
2529 all callers.
2530 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
2531 Update all callers.
2532 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
2533 print_fixed_point_type. Update all callers.
2534 * ada-valprint.c (ada_value_print_num): Replace call to
2535 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
2536
a51951c2
KB
25372020-05-14 Kevin Buettner <kevinb@redhat.com>
2538
2539 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
2540 processors.
2541 (cpu_supports_bts): Add CV_AMD case.
2542
29d6859f
LM
25432020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
2544 Simon Marchi <simon.marchi@efficios.com>
2545
2546 * infrun.c (stop_all_threads): Collect multiple wait events at
2547 each pass.
2548
78134374
SM
25492020-05-14 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
2552 type::code instead.
2553
67607e24
SM
25542020-05-14 Simon Marchi <simon.marchi@efficios.com>
2555
2556 * gdbtypes.h (struct type) <code, set_code>: New methods.
2557 (TYPE_CODE): Use type::code. Change all call sites used to set
2558 the code to use type::set_code instead.
2559
a05575d3
TBA
25602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2561 Tom de Vries <tdevries@suse.de>
2562 Pedro Alves <palves@redhat.com>
2563
2564 PR threads/25478
2565 * infrun.c (stop_all_threads): Do NOT ignore
2566 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
2567 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
2568 received.
2569 (handle_no_resumed): Remove code handling a live inferior with no
2570 threads.
2571 * remote.c (has_single_non_exited_thread): New.
2572 (remote_target::update_thread_list): Do not delete a thread if is
2573 the last thread of the process.
2574 * thread.c (thread_select): Call delete_exited_threads instead of
2575 prune_threads.
2576
6ad82919
TBA
25772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2578
2579 * infrun.c (stop_all_threads): Enable/disable thread events of all
2580 targets. Move a debug message denoting the end of the function
2581 into the SCOPED_EXIT block.
2582
d890404b
TBA
25832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2584
2585 * process-stratum-target.h: Include <set>.
2586 (all_non_exited_process_targets, switch_to_target_no_thread): New
2587 function declarations.
2588 * process-stratum-target.c (all_non_exited_process_targets)
2589 (switch_to_target_no_thread): New function implementations.
2590
293b3ebc
TBA
25912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592
2593 * infrun.c (handle_inferior_event): Extract out a piece of code
2594 into...
2595 (mark_non_executing_threads): ...this new function.
2596
7ca9b62a
TBA
25972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2598
2599 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
2600 use.
2601
fc75c28b
TBA
26022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603
2604 * regcache.c (regcache_read_pc_protected): New function
2605 implementation that returns 0 if the PC cannot read via
2606 'regcache_read_pc'.
2607 * infrun.c (proceed): Call 'regcache_read_pc_protected'
2608 instead of 'regcache_read_pc'.
2609 (keep_going_pass_signal): Ditto.
2610
a89febbd
TT
26112020-05-13 Tom Tromey <tromey@adacore.com>
2612
2613 * ada-lang.c (align_value): Remove.
2614 (ada_template_to_fixed_record_type_1): Use align_up.
2615
f7e23710
TBA
26162020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2617
2618 * async-event.c: Update the copyright year.
2619 * async-event.h: Update the copyright year.
2620
02ff80c2
SM
26212020-05-12 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * objfiles.h (is_addr_in_objfile,
2624 shared_objfile_contains_address_p): Return bool.
2625 * objfile.c (is_addr_in_objfile,
2626 shared_objfile_contains_address_p): Return bool.
2627
4fd6c7e8
TT
26282020-05-11 Tom Tromey <tromey@adacore.com>
2629
2630 * cli/cli-cmds.c (info_command): Restore.
2631 (_initialize_cli_cmds): Use add_prefix_command for "info".
2632 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
2633
5eb68a39
TT
26342020-05-11 Tom Tromey <tromey@adacore.com>
2635
2636 * ada-lang.c (ada_value_primitive_field): Now public.
2637 * ada-lang.h (ada_value_primitive_field): Declare.
2638 * ada-valprint.c (print_field_values): Use
2639 ada_value_primitive_field for wrapper fields.
2640
7666722f
TV
26412020-05-11 Tom de Vries <tdevries@suse.de>
2642
2643 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
2644 MODULE_DOMAIN.
2645
3ee6bb11
TV
26462020-05-11 Tom de Vries <tdevries@suse.de>
2647
2648 PR symtab/25941
2649 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
2650 with length 0, if not gdb-produced.
2651 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
2652
43434996
TV
26532020-05-09 Tom de Vries <tdevries@suse.de>
2654
2655 PR gdb/25955
2656 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
2657 calculation.
2658
2f78cffc
TT
26592020-05-09 Tom Tromey <tom@tromey.com>
2660
2661 * top.c (server_command): Now bool.
2662 * top.h (server_command): Now bool.
2663
4f7bc5ed
TT
26642020-05-08 Tom Tromey <tromey@adacore.com>
2665
2666 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
2667 already being processed.
2668
8be4b118
TT
26692020-05-08 Tom Tromey <tom@tromey.com>
2670
2671 * printcmd.c (struct display) <next>: Remove.
2672 <display>: New constructor.
2673 <exp_string>: Now a std::string.
2674 <enabled_p>: Now a bool.
2675 (display_number): Move definition earlier.
2676 (displays): Rename from display_chain. Now a std::vector.
2677 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
2678 (display_command): Update.
2679 (do_one_display, disable_display)
2680 (enable_disable_display_command, do_enable_disable_display):
2681 Update.
2682 (free_display): Remove.
2683 (clear_displays): Rewrite.
2684 (delete_display): Update.
2685 (map_display_numbers): Use function_view. Remove "data"
2686 parameter. Update.
2687 (do_delete_display): Remove.
2688 (undisplay_command): Update.
2689 (do_one_display, do_displays, disable_display)
2690 (info_display_command): Update.
2691 (do_enable_disable_display): Remove.
2692 (enable_disable_display_command)
2693 (clear_dangling_display_expressions): Update.
2694
94c93c35
TT
26952020-05-08 Tom Tromey <tom@tromey.com>
2696
2697 * symtab.c (set_symbol_cache_size)
2698 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
2699 (maintenance_print_symbol_cache_statistics): Update.
2700 * symmisc.c (print_symbol_bcache_statistics)
2701 (print_objfile_statistics, maintenance_print_objfiles)
2702 (maintenance_info_symtabs, maintenance_check_symtabs)
2703 (maintenance_expand_symtabs, maintenance_info_line_tables):
2704 Update.
2705 * symfile-debug.c (set_debug_symfile): Update.
2706 * source.c (forget_cached_source_info): Update.
2707 * python/python.c (gdbpy_progspaces): Update.
2708 * psymtab.c (maintenance_info_psymtabs): Update.
2709 * probe.c (parse_probes): Update.
2710 * linespec.c (iterate_over_all_matching_symtabs)
2711 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
2712 * guile/scm-progspace.c (gdbscm_progspaces): Update.
2713 * exec.c (exec_target::close): Update.
2714 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
2715 * breakpoint.c (print_one_breakpoint_location)
2716 (create_longjmp_master_breakpoint)
2717 (create_std_terminate_master_breakpoint): Update.
2718 * progspace.c (program_spaces): Now a std::vector.
2719 (maybe_new_address_space): Update.
2720 (add_program_space): Remove.
2721 (program_space::program_space): Update.
2722 (remove_program_space): Update.
2723 (number_of_program_spaces): Remove.
2724 (print_program_space, update_address_spaces): Update.
2725 * progspace.h (program_spaces): Change type.
2726 (ALL_PSPACES): Remove.
2727 (number_of_program_spaces): Don't declare.
2728 (struct program_space) <next>: Remove.
2729
a1fd1ac9
TT
27302020-05-08 Tom Tromey <tom@tromey.com>
2731
2732 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
2733 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
2734 (enable_break): Update.
2735 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
2736 (frv_fdpic_find_canonical_descriptor): Update.
2737 (frv_fetch_objfile_link_map): Update.
2738 * progspace.c (program_space::free_all_objfiles): Update.
2739 (program_space::solibs): New method.
2740 * progspace.h (struct program_space) <solibs>: New method.
2741 * solist.h (master_so_list): Don't declare.
2742 (ALL_SO_LIBS): Remove.
2743 * solib.h (so_list_head): Remove.
2744 (update_solib_list): Update comment.
2745 * solib.c (master_so_list): Remove.
2746 (solib_used, update_solib_list, solib_add)
2747 (info_sharedlibrary_command, clear_solib)
2748 (reload_shared_libraries_1, remove_user_added_objfile): Update.
2749
38eae084
TT
27502020-05-08 Tom Tromey <tom@tromey.com>
2751
2752 * extension.c (extension_languages): Now a std::array.
2753 (ALL_EXTENSION_LANGUAGES): Remove.
2754 (get_ext_lang_defn, get_ext_lang_of_file)
2755 (eval_ext_lang_from_control_command): Update.
2756 (finish_ext_lang_initialization)
2757 (auto_load_ext_lang_scripts_for_objfile)
2758 (ext_lang_type_printers::ext_lang_type_printers)
2759 (apply_ext_lang_type_printers)
2760 (ext_lang_type_printers::~ext_lang_type_printers)
2761 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
2762 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
2763 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
2764 (get_matching_xmethod_workers, ext_lang_colorize)
2765 (ext_lang_before_prompt): Update.
2766 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
2767
596dc4ad
TT
27682020-05-08 Tom Tromey <tom@tromey.com>
2769
2770 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
2771 overload.
2772 <swap_string, m_string>: Remove.
2773 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
2774 Update.
2775 * stabsread.c (define_symbol, read_type): Update.
2776 * linespec.c (find_linespec_symbols): Update.
2777 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
2778 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
2779 * dbxread.c (read_dbx_symtab): Update.
2780 * cp-support.h (cp_canonicalize_string_full)
2781 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
2782 Return unique_xmalloc_ptr.
2783 * cp-support.c (inspect_type): Update.
2784 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
2785 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
2786 Likewise.
2787 * c-typeprint.c (print_name_maybe_canonical): Update.
2788 * break-catch-throw.c (check_status_exception_catchpoint):
2789 Update.
2790
bf4cb9be
TV
27912020-05-08 Tom de Vries <tdevries@suse.de>
2792
2793 * infrun.c (follow_fork): Copy current_line and current_symtab to
2794 child thread.
2795
a1b68f28
SM
27962020-05-07 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * async-event.c (struct async_signal_handler, struct
2799 async_event_handler): Reformat, remove typedef.
2800
98d48915
SM
28012020-05-07 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
2804 access thistype->main_type->dyn_prop_list directly.
2805
7aa91313
SM
28062020-05-07 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
2809 (remove_dyn_prop): Remove. Update all users to use
2810 type::remove_dyn_prop.
2811 * gdbtypes.c (remove_dyn_prop): Rename to...
2812 (type::remove_dyn_prop): ... this.
2813
5c54719c
SM
28142020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
2815
2816 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
2817 (add_dyn_prop): Remove. Update all users to use
2818 type::add_dyn_prop.
2819 * gdbtypes.c (add_dyn_prop): Rename to...
2820 (type::add_dyn_prop): ... this.
2821
24e99c6c
SM
28222020-05-07 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
2825 (get_dyn_prop): Remove. Update all users to use
2826 type::dyn_prop.
2827 * gdbtypes.c (get_dyn_prop): Rename to...
2828 (type::dyn_prop): ... this.
2829
0d4bf016
SM
28302020-05-06 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (struct main_type) <flag_static>: Remove.
2833
ac4a4f1c
SM
28342020-05-06 Simon Marchi <simon.marchi@efficios.com>
2835
2836 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
2837 instruction, skip it if it's there.
2838
a3bbacc1
SM
28392020-05-05 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
2842
c3236f84
SM
28432020-05-04 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
2846 * gdbtypes.c (recursive_dump_type): Remove use of
2847 TYPE_INCOMPLETE.
2848
3b6acaee
TT
28492020-05-03 Tom Tromey <tom@tromey.com>
2850
2851 * breakpoint.c (catch_command, tcatch_command): Remove.
2852 (_initialize_breakpoint): Use add_basic_prefix_cmd,
2853 add_show_prefix_cmd.
2854 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
2855 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2856 Remove.
2857 (add_internal_problem_command): Use add_basic_prefix_cmd,
2858 add_show_prefix_cmd.
2859 * mips-tdep.c (set_mipsfpu_command): Remove.
2860 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
2861 * dwarf2/index-cache.c (set_index_cache_command): Remove.
2862 (_initialize_index_cache): Use add_basic_prefix_cmd.
2863 * memattr.c (dummy_cmd): Remove.
2864 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
2865 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
2866 (_initialize_tui_win): Use add_basic_prefix_cmd,
2867 add_show_prefix_cmd.
2868 * cli/cli-logging.c (set_logging_command): Remove.
2869 (_initialize_cli_logging): Use add_basic_prefix_cmd,
2870 add_show_prefix_cmd.
2871 (show_logging_command): Remove.
2872 * target.c (target_command): Remove.
2873 (add_target): Use add_basic_prefix_cmd.
2874
a51119cd
HD
28752020-05-02 Hannes Domani <ssbssa@yahoo.de>
2876
2877 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
2878
652fc23a 28792020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 2880
652fc23a
PW
2881 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
2882 info_command.
2883
117539e6
KR
28842020-04-30 Kamil Rytarowski <n54@gmx.com>
2885
2886 * nbsd-nat.c (nbsd_enable_proc_events)
2887 (nbsd_nat_target::post_startup_inferior): Add.
2888 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
2889 (nbsd_nat_target::update_thread_list): Rewrite.
2890 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
2891 "PTRACE_LWP_CREATE".
2892 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
2893
102e38eb 28942020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 2895
102e38eb
PW
2896 * stack.c (_initialize_stack): Remove duplicated creation
2897 of "frame" command and "f" alias.
2898
ee9d1e5f
HD
28992020-04-30 Hannes Domani <ssbssa@yahoo.de>
2900
2901 PR gdb/18706
2902 * gdbtypes.c (check_typedef): Calculate size of array of
2903 stubbed type.
2904
627c7fb8
HD
29052020-04-30 Hannes Domani <ssbssa@yahoo.de>
2906
2907 PR gdb/15559
2908 * i386-tdep.c (i386_push_dummy_call): Call
2909 i386_thiscall_push_dummy_call.
2910 (i386_thiscall_push_dummy_call): New function.
2911 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
2912 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
2913 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
2914
ffc2844e
SM
29152020-04-29 Simon Marchi <simon.marchi@efficios.com>
2916
2917 * gdbarch.sh (do_read): Add shellcheck disable directive for
2918 warning SC2162.
2919
1207375d
SM
29202020-04-29 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
2923 "referenced but not assigned" warning.
2924
9fdb2916
SM
29252020-04-29 Simon Marchi <simon.marchi@efficios.com>
2926
2927 * gdbarch.sh: Remove code that sets fallbackdefault.
2928
759cea5e
SM
29292020-04-29 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * gdbarch.sh: Use shell operators && and || instead of
2932 -a and -o.
2933
cb02ab24
SM
29342020-04-29 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * gdbarch.sh: Use $(...) instead of `...`.
2937
a6fc5ffc
SM
29382020-04-29 Simon Marchi <simon.marchi@efficios.com>
2939
2940 * gdbarch.sh: Use double quotes around variables.
2941
8d113d13
SM
29422020-04-29 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * gdbarch.sh: Use %s with printf, instead of variables in the
2945 format string.
2946
ed6acedd
TT
29472020-04-29 Tom Tromey <tromey@adacore.com>
2948
2949 PR ada/25875:
2950 * dwarf2/read.c (update_enumeration_type_from_children): Compute
2951 type fields here.
2952 (read_enumeration_type): Call
2953 update_enumeration_type_from_children later. Update comments.
2954 (process_enumeration_scope): Don't create type fields.
2955
b68b1b58
KR
29562020-04-29 Kamil Rytarowski <n54@gmx.com>
2957
2958 * nbsd-tdep.c: Include "xml-syscall.h".
2959 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
2960
f94b2e03
KR
29612020-04-29 Kamil Rytarowski <n54@gmx.com>
2962
2963 * nbsd-nat.c: Include "sys/wait.h".
2964 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
2965 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
2966 (nbsd_nat_target::remove_exec_catchpoint)
2967 (nbsd_nat_target::set_syscall_catchpoint): Add.
2968 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
2969 (nbsd_nat_target::insert_exec_catchpoint)
2970 (nbsd_nat_target::remove_exec_catchpoint)
2971 (nbsd_nat_target::set_syscall_catchpoint): Add.
2972 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
2973 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
2974 `nbsd_get_syscall_number'.
2975
fc49bc72
TT
29762020-04-29 Tom Tromey <tom@tromey.com>
2977
2978 * stack.c (print_block_frame_labels): Remove.
2979
d642b692
HD
29802020-04-29 Hannes Domani <ssbssa@yahoo.de>
2981
2982 PR gdb/17320
2983 * ada-valprint.c (val_print_packed_array_elements): Move array
2984 end bracket to new line.
2985 (ada_val_print_string): Remove extra spaces before first array
2986 element.
2987 * c-valprint.c (c_value_print_array): Likewise.
2988 * m2-valprint.c (m2_print_array_contents): Likewise.
2989 (m2_value_print_inner): Likewise.
2990 * p-valprint.c (pascal_value_print_inner): Likewise.
2991 * valprint.c (generic_val_print_array): Likewise.
2992 (value_print_array_elements): Move first array element and array
2993 end bracket to new line.
2994
ea90f227
TV
29952020-04-29 Tom de Vries <tdevries@suse.de>
2996
2997 PR symtab/25889
2998 * linespec.c (find_method): Fix ix calculation.
2999
4498ef4f
KR
30002020-04-28 Kamil Rytarowski <n54@gmx.com>
3001
3002 * syscalls/update-netbsd.sh: New file.
3003 * syscalls/netbsd.xml: Regenerate.
3004 * data-directory/Makefile.in: Register `netbsd.xml' in
3005 `SYSCALLS_FILES'.
3006
a55e30b5
SM
30072020-04-28 Simon Marchi <simon.marchi@efficios.com>
3008
3009 * syscalls/update-freebsd.sh: Add double quotes.
3010
2b2fbab8
TT
30112020-04-28 Tom Tromey <tom@tromey.com>
3012
3013 * NEWS: Update.
3014 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3015 (cmdpy_init): Allow class_tui.
3016
a65189c9
TV
30172020-04-28 Mark Williams <mark@myosotissp.com>
3018
3019 PR gdb/24480
3020 * dwarf2read.c: Add missing assingments to list_in_scope when
3021 start_symtab was already called.
3022
1b95cdb7
SM
30232020-04-28 Simon Marchi <simon.marchi@efficios.com>
3024
3025 PR gdb/25881
3026 * dwarf2/read.c (offset_map_type): Use
3027 gdb:hash_enum<sect_offset> as hash function.
3028
15cd93d0
TV
30292020-04-28 Tom de Vries <tdevries@suse.de>
3030
3031 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3032 with DW_AT_signature.
3033
1eb39914
SM
30342020-04-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * configure.ac: Remove check for fs_base/gs_base in
3037 user_regs_struct.
3038 * configure: Re-generate.
3039 * config.in: Re-generate.
3040 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3041 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3042 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3043
991a3e2e
LM
30442020-04-27 Luis Machado <luis.machado@linaro.org>
3045
3046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3047 problematic inline frame unwinding situation.
3048 * frame.c (frame_id_computed_p): New function.
3049 * frame.h (frame_id_computed_p): New prototype.
3050
361ba0e8
TT
30512020-04-26 Tom Tromey <tom@tromey.com>
3052
3053 * command.h (enum command_class) <class_pseudo>: Remove.
3054
bc3609fd
PW
30552020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3056
3057 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3058 and whitespace.
3059
b9771db7
KR
30602020-04-25 Kamil Rytarowski <n54@gmx.com>
3061
ec16513e
SM
3062 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3063 `PT_GET_PROCESS_STATE' block.
b9771db7 3064
7151c1af
TT
30652020-04-24 Tom Tromey <tom@tromey.com>
3066
3067 * symtab.h (symbol_get_demangled_name): Don't declare.
3068 * symtab.c (symbol_get_demangled_name): Remove.
3069 (general_symbol_info::natural_name)
3070 (general_symbol_info::demangled_name): Update.
3071
906bb4c5
TT
30722020-04-24 Tom Tromey <tom@tromey.com>
3073
3074 PR rust/25025:
3075 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3076
bcfe6157
TT
30772020-04-24 Tom Tromey <tom@tromey.com>
3078
3079 PR symtab/12707:
3080 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3081 exists.
3082 (new_symbol): Likewise.
3083 * compile/compile-object-load.c (get_out_value_type): Use
3084 symbol_matches_search_name.
3085
f049a313
TT
30862020-04-24 Tom Tromey <tom@tromey.com>
3087
3088 * dwarf2/read.c (add_partial_symbol): Do not call
3089 compute_and_set_names.
3090
76e288d1
TT
30912020-04-24 Tom Tromey <tom@tromey.com>
3092
3093 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
3094 overload.
3095
2467f4f6
TT
30962020-04-24 Tom Tromey <tom@tromey.com>
3097
3098 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
3099 (add_psymbol_to_list): New overload. Make old overload call new
3100 one.
3101 * psympriv.h (add_psymbol_to_list): New overload.
3102
e61108c9
TT
31032020-04-24 Tom Tromey <tom@tromey.com>
3104
3105 * dwarf2/read.c (partial_die_info::read) <case
3106 DW_AT_linkage_name>: Use value_as_string.
3107 (dwarf2_string_attr): Use value_as_string.
3108 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3109 method.
3110 * dwarf2/attribute.c (attribute::value_as_string): New method.
3111
8c87a452
TT
31122020-04-24 Tom Tromey <tom@tromey.com>
3113
3114 * symtab.c (general_symbol_info::natural_name)
3115 (general_symbol_info::demangled_name): Check for language_rust.
3116
787de330
TT
31172020-04-24 Tom Tromey <tom@tromey.com>
3118
3119 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
3120 (dwarf2_physname): ... from here.
3121 (partial_die_info::read): Add Rust "{" hack.
3122
ff985671
TT
31232020-04-24 Tom Tromey <tom@tromey.com>
3124
3125 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
3126 method.
3127 (symbol_set_demangled_name): Don't declare.
3128 * symtab.c (general_symbol_info::set_demangled_name): Rename from
3129 symbol_set_demangled_name.
3130 (general_symbol_info::set_language)
3131 (general_symbol_info::compute_and_set_names): Update.
3132 * minsyms.c (minimal_symbol_reader::install): Update.
3133 * dwarf2/read.c (new_symbol): Update.
3134
1acda803
TT
31352020-04-24 Tom Tromey <tromey@adacore.com>
3136
3137 PR python/23662:
3138 * python/py-type.c (convert_field): Handle
3139 FIELD_LOC_KIND_DWARF_BLOCK.
3140 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
3141 (typy_get_dynamic): Nw function.
3142 (type_object_getset): Add "dynamic".
3143 * NEWS: Add entry.
3144
d656f129
TT
31452020-04-24 Tom Tromey <tromey@adacore.com>
3146
3147 * ada-typeprint.c (print_choices, print_variant_part)
3148 (print_record_field_types_dynamic): New functions.
3149 (print_record_field_types): Use print_record_field_types_dynamic.
3150
7d79de9a
TT
31512020-04-24 Tom Tromey <tromey@adacore.com>
3152
3153 * dwarf2/read.c (handle_data_member_location): New overload.
3154 (dwarf2_add_field): Use it.
3155 (decode_locdesc): Add "computed" parameter. Update comment.
3156 * gdbtypes.c (is_dynamic_type_internal): Also look for
3157 FIELD_LOC_KIND_DWARF_BLOCK.
3158 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
3159 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
3160 virtual base classes.
3161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
3162 FIELD_LOC_KIND_DWARF_BLOCK.
3163
f8e89861
TT
31642020-04-24 Tom Tromey <tromey@adacore.com>
3165
3166 * dwarf2/read.c (read_structure_type): Handle dynamic length.
3167 * gdbtypes.c (is_dynamic_type_internal): Check
3168 TYPE_HAS_DYNAMIC_LENGTH.
3169 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
3170 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
3171 New macros.
3172 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
3173 constant.
3174
9c6a1327
TT
31752020-04-24 Tom Tromey <tromey@adacore.com>
3176
3177 * dwarf2/read.c (struct variant_field): Rewrite.
3178 (struct variant_part_builder): New.
3179 (struct nextfield): Remove "variant" field. Add "offset".
3180 (struct field_info): Add "current_variant_part" and
3181 "variant_parts".
3182 (alloc_discriminant_info): Remove.
3183 (alloc_rust_variant): New function.
3184 (quirk_rust_enum): Update.
3185 (dwarf2_add_field): Set "offset" member. Don't handle
3186 DW_TAG_variant_part.
3187 (offset_map_type): New typedef.
3188 (convert_variant_range, create_one_variant)
3189 (create_one_variant_part, create_variant_parts)
3190 (add_variant_property): New functions.
3191 (dwarf2_attach_fields_to_type): Call add_variant_property.
3192 (read_structure_type): Don't handle DW_TAG_variant_part.
3193 (handle_variant_part, handle_variant): New functions.
3194 (handle_struct_member_die): Use them.
3195 (process_structure_scope): Don't handle variant parts.
3196 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
3197 (struct discriminant_info): Remove.
3198 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
3199 (struct main_type) <flag_discriminated_union>: Remove.
3200 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
3201 (rust_enum_variant): Return int. Remove "contents". Rewrite.
3202 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
3203 Update.
3204 * valops.c (value_union_variant): Remove.
3205 * value.h (value_union_variant): Don't declare.
3206
b249d2c2
TT
32072020-04-24 Tom Tromey <tromey@adacore.com>
3208
3209 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
3210 (ada_value_primitive_packed_val): Update.
3211 * ada-valprint.c (ada_value_print_1): Update.
3212 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
3213 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
3214 just an address. Use evaluate_for_locexpr_baton.
3215 (dwarf2_evaluate_property): Update.
3216 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
3217 array_view.
3218 * findvar.c (default_read_var_value): Update.
3219 * gdbtypes.c (compute_variant_fields_inner)
3220 (resolve_dynamic_type_internal): Update.
3221 (resolve_dynamic_type): Change type of valaddr parameter.
3222 * gdbtypes.h (resolve_dynamic_type): Update.
3223 * valarith.c (value_subscripted_rvalue): Update.
3224 * value.c (value_from_contents_and_address): Update.
3225
61122aa9
TT
32262020-04-24 Tom Tromey <tromey@adacore.com>
3227
3228 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
3229 "push_initial_value" parameter.
3230 (dwarf2_evaluate_property): Likewise.
3231 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
3232
ef83a141
TT
32332020-04-24 Tom Tromey <tromey@adacore.com>
3234
3235 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
3236 (variant::matches, compute_variant_fields_recurse)
3237 (compute_variant_fields_inner, compute_variant_fields): New
3238 functions.
3239 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
3240 Use resolved_type after type is made.
3241 (operator==): Add new cases.
3242 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
3243 (struct discriminant_range, struct variant, struct variant_part):
3244 New.
3245 (union dynamic_prop_data) <variant_parts, original_type>: New
3246 members.
3247 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
3248 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
3249 constants.
3250 * value.c (unpack_bits_as_long): Now public.
3251 * value.h (unpack_bits_as_long): Declare.
3252
675127ec
TT
32532020-04-24 Tom Tromey <tromey@adacore.com>
3254
3255 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
3256 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
3257
9852ceef
HD
32582020-04-24 Hannes Domani <ssbssa@yahoo.de>
3259
3260 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
3261
7632c6ce
KR
32622020-04-24 Kamil Rytarowski <n54@gmx.com>
3263
3264 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
3265 (remove_fork_catchpoint, post_startup_inferior)
3266 (post_attach): Move...
3267 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
3268 (remove_fork_catchpoint, post_startup_inferior)
3269 (post_attach): ...here.
3270 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
3271 (remove_fork_catchpoint, post_startup_inferior)
3272 (post_attach): Move...
3273 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
3274 (remove_fork_catchpoint, post_startup_inferior)
3275 (post_attach): ...here.
3276
7be2bb4f
TT
32772020-04-24 Tom Tromey <tromey@adacore.com>
3278
3279 * nat/windows-nat.h (struct windows_thread_info)
3280 <pc_adjusted>: New member.
3281 * windows-nat.c (windows_fetch_one_register): Check
3282 pc_adjusted.
3283 (windows_nat_target::get_windows_debug_event)
3284 (windows_nat_target::wait): Set pc_adjusted.
3285
f80cb3b4
TV
32862020-04-24 Tom de Vries <tdevries@suse.de>
3287
3288 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
3289 Run gdb-add-index inside temp dir.
3290
29514b87
TT
32912020-04-23 Tom Tromey <tromey@adacore.com>
3292
3293 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
3294 in loop.
3295
5939967b
LM
32962020-04-23 Luis Machado <luis.machado@linaro.org>
3297
3298 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3299 get_frame_register instead of gdbarch_unwind_pc.
3300
70bc38f5
TV
33012020-04-23 Tom de Vries <tdevries@suse.de>
3302
3303 * symtab.c (lookup_global_symbol): Prefer def over decl.
3304
de82891c
TV
33052020-04-23 Tom de Vries <tdevries@suse.de>
3306
3307 PR symtab/25807
3308 * block.c (best_symbol, better_symbol): Promote to external.
3309 * block.h (best_symbol, better_symbol): Declare.
3310 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
3311 decl.
3312
ecc6c606
TT
33132020-04-23 Tom Tromey <tromey@adacore.com>
3314
3315 PR ada/25837:
3316 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
3317 "const char *", not a "const std::string &".
3318 <name_and_matcher::operator==>: Update.
3319 * unittests/lookup_name_info-selftests.c: Change type of
3320 "result".
3321
740480b8
TT
33222020-04-23 Tom Tromey <tom@tromey.com>
3323
3324 * inferior.h (iterate_over_inferiors): Don't declare.
3325 * inferior.c (iterate_over_inferiors): Remove.
3326 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
3327 Remove.
3328 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
3329 use iterate_over_inferiors.
3330 (darwin_resume_inferior_it)
3331 (struct resume_inferior_threads_param)
3332 (darwin_resume_inferior_threads_it): Remove.
3333 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
3334
ae3ab1f0
TV
33352020-04-23 Tom de Vries <tdevries@suse.de>
3336
3337 * blockframe.c (find_pc_partial_function): Use
3338 find_pc_sect_compunit_symtab rather than
3339 objfile->sf->qf->find_pc_sect_compunit_symtab.
3340
317d2668
TV
33412020-04-22 Tom de Vries <tdevries@suse.de>
3342
3343 PR symtab/25764
3344 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
3345 in psymtabs.
3346
eea9e357
TV
33472020-04-22 Tom de Vries <tdevries@suse.de>
3348
3349 PR symtab/25801
3350 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
3351 symtabs.
3352
3d5afab3
TV
33532020-04-22 Tom de Vries <tdevries@suse.de>
3354
3355 PR symtab/25700
3356 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
3357 CU if already created.
3358
d43b7a2d
TBA
33592020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3360
3361 * infrun.c (displaced_step_fixup): Switch to the event_thread
3362 before calling displaced_step_restore, not after.
3363
d89edf9b
MM
33642020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3365
3366 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
3367 its inferior is not recorded by us.
3368 (record_btrace_target_open): Replace call to
3369 all_non_exited_threads () with call to current_inferior
3370 ()->non_exited_threads ().
3371 (record_btrace_target::stop_recording): Likewise.
3372 (record_btrace_target::close): Likewise.
3373 (record_btrace_target::wait): Likewise.
3374 (record_btrace_target::record_stop_replaying): Likewise.
3375
5897fd49
MM
33762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3377
3378 * btrace.c (btrace_enable): Throw an error on double enables and
3379 when enabling recording fails.
3380 (btrace_disable): Throw an error if the thread is not recorded.
3381
1a476b6d
MM
33822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3383
3384 * record-btrace.c (record_btrace_target::fetch_registers): Forward
3385 request if we do not have a thread_info.
3386
4778a5f8
TV
33872020-04-21 Tom de Vries <tdevries@suse.de>
3388
3389 PR gdb/25471
3390 * thread.c
3391 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
3392 exception in get_frame_id.
3393
0fa7617d
TT
33942020-04-20 Tom Tromey <tromey@adacore.com>
3395
3396 * python/python.c (struct gdbpy_event): Mark move constructor as
3397 noexcept.
3398 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
3399 constructor as noexcept.
3400 * completer.h (struct completion_result): Mark move constructor as
3401 noexcept.
3402 * completer.c (completion_result::completion_result): Use
3403 initialization style. Don't call reset_match_list.
3404
ad23bda0
MS
34052020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
3406
3407 * MAINTAINERS (Write After Approval): Add myself.
3408
45e1f031
TT
34092020-04-18 Tom Tromey <tom@tromey.com>
3410
3411 * windows-tdep.c (init_w32_command_list)
3412 (w32_prefix_command_valid): Restore.
3413 (_initialize_windows_tdep): Call init_w32_command_list.
3414
08feed99
TT
34152020-04-18 Tom Tromey <tom@tromey.com>
3416
3417 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
3418 * value.c (value_fn_field): Update.
3419 * valops.c (find_function_in_inferior)
3420 (value_allocate_space_in_inferior): Update.
3421 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3422 Update.
3423 * tui/tui-source.c (tui_source_window::set_contents): Update.
3424 * symtab.c (lookup_global_or_static_symbol)
3425 (find_function_start_sal_1, skip_prologue_sal)
3426 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
3427 * symmisc.c (dump_msymbols, dump_symtab_1)
3428 (maintenance_print_one_line_table): Update.
3429 * symfile.c (init_entry_point_info, section_is_mapped)
3430 (list_overlays_command, simple_read_overlay_table)
3431 (simple_overlay_update_1): Update.
3432 * stap-probe.c (handle_stap_probe): Update.
3433 * stabsread.c (dbx_init_float_type, define_symbol)
3434 (read_one_struct_field, read_enum_type, read_range_type): Update.
3435 * source.c (info_line_command): Update.
3436 * python/python.c (gdbpy_source_objfile_script)
3437 (gdbpy_execute_objfile_script): Update.
3438 * python/py-type.c (save_objfile_types): Update.
3439 * python/py-objfile.c (py_free_objfile): Update.
3440 * python/py-inferior.c (python_new_objfile): Update.
3441 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
3442 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
3443 (maintenance_check_psymtabs): Update.
3444 * printcmd.c (info_address_command): Update.
3445 * objfiles.h (struct objfile) <arch>: New method, from
3446 get_objfile_arch.
3447 (get_objfile_arch): Don't declare.
3448 * objfiles.c (get_objfile_arch): Remove.
3449 (filter_overlapping_sections): Update.
3450 * minsyms.c (msymbol_is_function): Update.
3451 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
3452 (output_nondebug_symbol): Update.
3453 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
3454 (mdebug_expand_psymtab): Update.
3455 * machoread.c (macho_add_oso_symfile): Update.
3456 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
3457 Update.
3458 * linux-fork.c (checkpoint_command): Update.
3459 * linespec.c (convert_linespec_to_sals): Update.
3460 * jit.c (finalize_symtab): Update.
3461 * infrun.c (insert_exception_resume_from_probe): Update.
3462 * ia64-tdep.c (ia64_find_unwind_table): Update.
3463 * hppa-tdep.c (internalize_unwinds): Update.
3464 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
3465 Update.
3466 * gcore.c (call_target_sbrk): Update.
3467 * elfread.c (record_minimal_symbol, elf_symtab_read)
3468 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3469 (elf_gnu_ifunc_resolve_by_got): Update.
3470 * dwarf2/read.c (create_addrmap_from_index)
3471 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3472 (read_debug_names_from_section)
3473 (process_psymtab_comp_unit_reader, add_partial_symbol)
3474 (add_partial_subprogram, process_full_comp_unit)
3475 (read_file_scope, read_func_scope, read_lexical_block_scope)
3476 (read_call_site_scope, dwarf2_ranges_read)
3477 (dwarf2_record_block_ranges, dwarf2_add_field)
3478 (mark_common_block_symbol_computed, read_tag_pointer_type)
3479 (read_tag_string_type, dwarf2_init_float_type)
3480 (dwarf2_init_complex_target_type, read_base_type)
3481 (partial_die_info::read, partial_die_info::read)
3482 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
3483 (dwarf2_fetch_die_loc_sect_off): Update.
3484 * dwarf2/loc.c (dwarf2_find_location_expression)
3485 (class dwarf_evaluate_loc_desc, rw_pieced_value)
3486 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
3487 (dwarf2_loc_desc_get_symbol_read_needs)
3488 (locexpr_describe_location_piece, locexpr_describe_location_1)
3489 (loclist_describe_location): Update.
3490 * dwarf2/index-write.c (write_debug_names): Update.
3491 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
3492 * dtrace-probe.c (dtrace_process_dof): Update.
3493 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
3494 (process_one_symbol): Update.
3495 * ctfread.c (ctf_init_float_type, read_base_type): Update.
3496 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
3497 (coff_read_enum_type): Update.
3498 * cli/cli-cmds.c (edit_command, list_command): Update.
3499 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
3500 * breakpoint.c (create_overlay_event_breakpoint)
3501 (create_longjmp_master_breakpoint)
3502 (create_std_terminate_master_breakpoint)
3503 (create_exception_master_breakpoint, get_sal_arch): Update.
3504 * block.c (block_gdbarch): Update.
3505 * annotate.c (annotate_source_line): Update.
3506
0743fc83
TT
35072020-04-17 Tom Tromey <tromey@adacore.com>
3508
3509 * auto-load.c (show_auto_load_cmd): Remove.
3510 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
3511 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
3512 (maintenance_print_arc_command): Remove.
3513 * tui/tui-win.c (tui_command): Remove.
3514 (tui_get_cmd_list): Use add_basic_prefix_cmd.
3515 * tui/tui-layout.c (tui_layout_command): Remove.
3516 (_initialize_tui_layout): Use add_basic_prefix_cmd.
3517 * python/python.c (user_set_python, user_show_python): Remove.
3518 (_initialize_python): Use add_basic_prefix_cmd,
3519 add_show_prefix_cmd.
3520 * guile/guile.c (set_guile_command, show_guile_command): Remove.
3521 (install_gdb_commands): Use add_basic_prefix_cmd,
3522 add_show_prefix_cmd.
3523 (info_guile_command): Remove.
3524 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
3525 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
3526 add_show_prefix_cmd.
3527 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
3528 Remove do_set and do_show parameters.
3529 * cli/cli-style.c (set_style, show_style): Remove.
3530 (_initialize_cli_style): Use add_basic_prefix_cmd,
3531 add_show_prefix_cmd.
3532 (cli_style_option::add_setshow_commands): Remove do_set and
3533 do_show parameters.
3534 (cli_style_option::add_setshow_commands): Use
3535 add_basic_prefix_cmd, add_show_prefix_cmd.
3536 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
3537 (set_style_name): Remove.
3538 * cli/cli-dump.c (dump_command, append_command): Remove.
3539 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3540 (tekhex_dump_command, binary_dump_command)
3541 (binary_append_command): Remove.
3542 (_initialize_cli_dump): Use add_basic_prefix_cmd.
3543 * windows-tdep.c (w32_prefix_command_valid): Remove global.
3544 (init_w32_command_list): Remove; move into ...
3545 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
3546 * valprint.c (set_print, show_print, set_print_raw)
3547 (show_print_raw): Remove.
3548 (_initialize_valprint): Use add_basic_prefix_cmd,
3549 add_show_prefix_cmd.
3550 * typeprint.c (set_print_type, show_print_type): Remove.
3551 (_initialize_typeprint): Use add_basic_prefix_cmd,
3552 add_show_prefix_cmd.
3553 * record.c (set_record_command, show_record_command): Remove.
3554 (_initialize_record): Use add_basic_prefix_cmd,
3555 add_show_prefix_cmd.
3556 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
3557 add_show_prefix_cmd.
3558 (info_command, show_command, set_debug, show_debug): Remove.
3559 * top.h (set_history, show_history): Don't declare.
3560 * top.c (set_history, show_history): Remove.
3561 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3562 (unset_tdesc_cmd): Remove.
3563 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
3564 add_show_prefix_cmd.
3565 * symtab.c (info_module_command): Remove.
3566 (_initialize_symtab): Use add_basic_prefix_cmd.
3567 * symfile.c (overlay_command): Remove.
3568 (_initialize_symfile): Use add_basic_prefix_cmd.
3569 * sparc64-tdep.c (info_adi_command): Remove.
3570 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
3571 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
3572 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
3573 add_show_prefix_cmd.
3574 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
3575 (_initialize_serial): Use add_basic_prefix_cmd,
3576 add_show_prefix_cmd.
3577 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
3578 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
3579 add_show_prefix_cmd.
3580 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
3581 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
3582 add_show_prefix_cmd.
3583 * riscv-tdep.c (show_riscv_command, set_riscv_command)
3584 (show_debug_riscv_command, set_debug_riscv_command): Remove.
3585 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
3586 add_show_prefix_cmd.
3587 * remote.c (remote_command, set_remote_cmd): Remove.
3588 (_initialize_remote): Use add_basic_prefix_cmd.
3589 * record-full.c (set_record_full_command)
3590 (show_record_full_command): Remove.
3591 (_initialize_record_full): Use add_basic_prefix_cmd,
3592 add_show_prefix_cmd.
3593 * record-btrace.c (cmd_set_record_btrace)
3594 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
3595 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
3596 (cmd_show_record_btrace_pt): Remove.
3597 (_initialize_record_btrace): Use add_basic_prefix_cmd,
3598 add_show_prefix_cmd.
3599 * ravenscar-thread.c (set_ravenscar_command)
3600 (show_ravenscar_command): Remove.
3601 (_initialize_ravenscar): Use add_basic_prefix_cmd,
3602 add_show_prefix_cmd.
3603 * mips-tdep.c (show_mips_command, set_mips_command)
3604 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
3605 add_show_prefix_cmd.
3606 * maint.c (maintenance_command, maintenance_info_command)
3607 (maintenance_check_command, maintenance_print_command)
3608 (maintenance_set_cmd, maintenance_show_cmd): Remove.
3609 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
3610 add_show_prefix_cmd.
3611 (show_per_command_cmd): Remove.
3612 * maint-test-settings.c (maintenance_set_test_settings_cmd):
3613 Remove.
3614 (maintenance_show_test_settings_cmd): Remove.
3615 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
3616 add_show_prefix_cmd.
3617 * maint-test-options.c (maintenance_test_options_command):
3618 Remove.
3619 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
3620 * macrocmd.c (macro_command): Remove
3621 (_initialize_macrocmd): Use add_basic_prefix_cmd.
3622 * language.c (set_check, show_check): Remove.
3623 (_initialize_language): Use add_basic_prefix_cmd,
3624 add_show_prefix_cmd.
3625 * infcmd.c (unset_command): Remove.
3626 (_initialize_infcmd): Use add_basic_prefix_cmd.
3627 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
3628 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
3629 add_show_prefix_cmd.
3630 * go32-nat.c (go32_info_dos_command): Remove.
3631 (_initialize_go32_nat): Use add_basic_prefix_cmd.
3632 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
3633 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
3634 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
3635 (_initialize_frame): Use add_basic_prefix_cmd,
3636 add_show_prefix_cmd.
3637 * dcache.c (set_dcache_command, show_dcache_command): Remove.
3638 (_initialize_dcache): Use add_basic_prefix_cmd,
3639 add_show_prefix_cmd.
3640 * cp-support.c (maint_cplus_command): Remove.
3641 (_initialize_cp_support): Use add_basic_prefix_cmd.
3642 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3643 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3644 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
3645 add_basic_prefix_cmd, add_show_prefix_cmd.
3646 * breakpoint.c (save_command): Remove.
3647 (_initialize_breakpoint): Use add_basic_prefix_cmd.
3648 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
3649 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
3650 add_show_prefix_cmd.
3651 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
3652 (set_ada_command, show_ada_command): Remove.
3653 (_initialize_ada_language): Use add_basic_prefix_cmd,
3654 add_show_prefix_cmd.
3655 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
3656
3557f442
KR
36572020-04-16 Kamil Rytarowski <n54@gmx.com>
3658
3659 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
3660 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
3661
16197208
SM
36622020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3663
3664 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
3665 warning messages.
3666
00ac85d3
SM
36672020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
3670 import table is not at beginning of .idata section.
3671
381ce63f
PA
36722020-04-16 Pedro Alves <palves@redhat.com>
3673
3674 * inferior.c (delete_inferior): Use delete operator directly
3675 instead of delete_program_space.
3676 * progspace.c (add_program_space): New, factored out from
3677 program_space::program_space.
3678 (remove_program_space): New, factored out from
3679 delete_program_space.
3680 (program_space::program_space): Remove intro comment. Rewrite.
3681 (program_space::~program_space): Remove intro comment. Call
3682 remove_program_space.
3683 (delete_program_space): Delete.
3684 * progspace.h (program_space::program_space): Make explicit. Move
3685 intro comment here, adjusted.
3686 (program_space::~program_space): Move intro comment here,
3687 adjusted.
3688 (delete_program_space): Remove.
3689
a010605f
TT
36902020-04-16 Tom Tromey <tromey@adacore.com>
3691
3692 * windows-nat.c (windows_nat::handle_access_violation): New
3693 function.
3694 * nat/windows-nat.h (handle_access_violation): Declare.
3695 * nat/windows-nat.c (handle_exception): Move Cygwin code to
3696 windows-nat.c. Call handle_access_violation.
3697
efba5c23
TV
36982020-04-16 Tom de Vries <tdevries@suse.de>
3699
3700 PR symtab/25791
3701 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
3702 CUs without psymtab.
3703
97ed802d
KB
37042020-04-16 Kevin Buettner <kevinb@redhat.com>
3705
3706 * python/python.c (do_start_initialization): Don't call
3707 PyEval_InitThreads for Python 3.9 and beyond.
3708
c7d64809
KR
37092020-04-15 Kamil Rytarowski <n54@gmx.com>
3710
3711 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
3712 thread functions.
3713 (obsd_nat_target::wait): Likewise.
3714
ce127a96
TT
37152020-04-15 Tom Tromey <tromey@adacore.com>
3716
3717 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3718 (DEBUG_EXCEPT): Use debug_printf.
3719
99f1bc6a
AB
37202020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * completer.c (class completion_tracker::completion_hash_entry)
3723 <hash_name>: New member function.
3724 (completion_tracker::discard_completions): New callback to hash a
3725 completion_hash_entry, pass this to htab_create_alloc.
3726
a0e9b532
JT
37272016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
3728
3729 * windows-nat.c (windows_make_so): Warn rather than stopping with
3730 an error if realpath() fails.
3731
06ca5dd4
KR
37322020-04-14 Kamil Rytarowski <n54@gmx.com>
3733
3734 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
3735 (nbsd_nat_target::info_proc): Add do_status.
3736
194d088f
TV
37372020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
3738 Tom de Vries <tdevries@suse.de>
3739
3740 PR symtab/25718
3741 * psympriv.h (struct partial_symtab::read_symtab)
3742 (struct partial_symtab::expand_psymtab)
3743 (struct partial_symtab::read_dependencies): Update comments.
3744 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
3745 read_symtab for includer.
3746 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
3747 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
3748 (struct dwarf2_include_psymtab::m_readin): Remove.
3749 (struct dwarf2_include_psymtab::includer): New member function.
3750 (dwarf2_psymtab::expand_psymtab): Assert !readin.
3751
c1a66c06
TV
37522020-04-14 Tom de Vries <tdevries@suse.de>
3753
3754 PR symtab/25720
3755 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
3756 with NULL symbol_matcher and lookup_name.
3757 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
3758 and lookup_name.
3759 * dwarf2/read.c (dw2_expand_symtabs_matching)
3760 (dw2_debug_names_expand_symtabs_matching): Same.
3761 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
3762 Make lookup_name a pointer. Update comment.
3763 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
3764 lookup_name being a pointer.
3765 * symfile.c (expand_symtabs_matching): Same.
3766 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
3767 * linespec.c (iterate_over_all_matching_symtabs): Same.
3768
400b5eca
TT
37692020-04-13 Tom Tromey <tom@tromey.com>
3770
3771 * run-on-main-thread.c: Update include.
3772 * unittests/main-thread-selftests.c: Update include.
3773 * tui/tui-win.c: Update include.
3774 * tui/tui-io.c: Update include.
3775 * tui/tui-interp.c: Update include.
3776 * tui/tui-hooks.c: Update include.
3777 * top.h: Update include.
3778 * top.c: Update include.
3779 * ser-base.c: Update include.
3780 * remote.c: Update include.
3781 * remote-notif.c: Update include.
3782 * remote-fileio.c: Update include.
3783 * record-full.c: Update include.
3784 * record-btrace.c: Update include.
3785 * python/python.c: Update include.
3786 * posix-hdep.c: Update include.
3787 * mingw-hdep.c: Update include.
3788 * mi/mi-main.c: Update include.
3789 * mi/mi-interp.c: Update include.
3790 * main.c: Update include.
3791 * linux-nat.c: Update include.
3792 * interps.c: Update include.
3793 * infrun.c: Update include.
3794 * inf-loop.c: Update include.
3795 * event-top.c: Update include.
3796 * event-loop.c: Move to ../gdbsupport/.
3797 * event-loop.h: Move to ../gdbsupport/.
3798 * async-event.h: Update include.
3799 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
3800
93b54c8e
TT
38012020-04-13 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-win.c: Include async-event.h.
3804 * remote.c: Include async-event.h.
3805 * remote-notif.c: Include async-event.h.
3806 * record-full.c: Include async-event.h.
3807 * record-btrace.c: Include async-event.h.
3808 * infrun.c: Include async-event.h.
3809 * event-top.c: Include async-event.h.
3810 * event-loop.h: Move some declarations to async-event.h.
3811 * event-loop.c: Don't include ser-event.h or top.h. Move some
3812 code to async-event.c.
3813 * async-event.h: New file.
3814 * async-event.c: New file.
3815 * Makefile.in (COMMON_SFILES): Add async-event.c.
3816 (HFILES_NO_SRCDIR): Add async-event.h.
3817
c1cd3163
TT
38182020-04-13 Tom Tromey <tom@tromey.com>
3819
3820 * utils.c (flush_streams): New function.
3821 * event-loop.c (gdb_wait_for_event): Call flush_streams.
3822
29f2bf4f
TT
38232020-04-13 Tom Tromey <tom@tromey.com>
3824
3825 * event-loop.c (handle_file_event): Use warning, not
3826 printf_unfiltered.
3827
98029d02
TT
38282020-04-13 Tom Tromey <tom@tromey.com>
3829
3830 * event-loop.c: Include <chrono>.
3831
06cc9596
TT
38322020-04-13 Tom Tromey <tom@tromey.com>
3833
3834 * gdb_select.h: Move to ../gdbsupport/.
3835 * event-loop.c: Update include path.
3836 * top.c: Update include path.
3837 * ser-base.c: Update include path.
3838 * ui-file.c: Update include path.
3839 * ser-tcp.c: Update include path.
3840 * guile/scm-ports.c: Update include path.
3841 * posix-hdep.c: Update include path.
3842 * ser-unix.c: Update include path.
3843 * gdb_usleep.c: Update include path.
3844 * mingw-hdep.c: Update include path.
3845 * inflow.c: Update include path.
3846 * infrun.c: Update include path.
3847 * event-top.c: Update include path.
3848
8ae8e197
TT
38492020-04-13 Tom Tromey <tom@tromey.com>
3850
3851 * configure: Rebuild.
3852 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
3853
58cf28e8
TT
38542020-04-13 Tom Tromey <tom@tromey.com>
3855
3856 * event-loop.h (start_event_loop): Don't declare.
3857 * event-loop.c (start_event_loop): Move...
3858 * main.c (start_event_loop): ...here. Now static.
3859
b7f999ae
SDJ
38602020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
3861
3862 * MAINTAINERS: Update my email address.
3863
1085dfd4
KR
38642020-04-12 Kamil Rytarowski <n54@gmx.com>
3865
3866 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
3867 IP_ALL.
3868
49d1d1f5
KR
38692020-04-12 Kamil Rytarowski <n54@gmx.com>
3870
3871 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 3872 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 3873
b4848d2a
KR
38742020-04-12 Kamil Rytarowski <n54@gmx.com>
3875
3876 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 3877 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 3878
51c133d5
KR
38792020-04-12 Kamil Rytarowski <n54@gmx.com>
3880
3881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
3882
54b8cbd0
KR
38832020-04-11 Kamil Rytarowski <n54@gmx.com>
3884
3885 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
3886 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
3887 (nbsd_nat_target::info_proc): New functions.
3888 * nbsd-nat.c (kinfo_get_vmmap): New function.
3889 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
3890 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
3891 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
3892 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
3893 functions.
3894 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
3895 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3896 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3897 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
3898 (KINFO_VME_FLAG_GROWS_DOWN): New.
3899
cf83625d
AS
39002020-04-10 Artur Shepilko <nomadbyte@gmail.com>
3901
3902 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
3903 bit shift.
3904
0c4311ab
TT
39052020-04-10 Tom Tromey <tromey@adacore.com>
3906
3907 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
3908
3e65b3e9
TT
39092020-04-10 Tom Tromey <tromey@adacore.com>
3910
3911 * symtab.c (get_symbol_address, get_msymbol_address): Skip
3912 separate debug files.
3913
13302e95
HD
39142020-04-10 Hannes Domani <ssbssa@yahoo.de>
3915
3916 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3917 Move to...
3918 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3919 ... here.
3920 * windows-nat.c (windows_nat_target::get_windows_debug_event):
3921 Check for STATUS_WX86_BREAKPOINT.
3922 (windows_nat_target::wait): Same.
3923
bdfc1e8a
TV
39242020-04-10 Tom de Vries <tdevries@suse.de>
3925
3926 PR cli/25808
3927 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
3928
f4460aec
SM
39292020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
3932 (Write After Approval): Remove Tom de Vries.
3933
a25198bb
BE
39342020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3935
3936 revert partially:
3937 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3938
aac66a4c
SM
3939 * buildsym.c (record_line): Fix undefined behavior and preserve
3940 lines at eof.
a25198bb 3941
206c98a6
KR
39422020-04-09 Kamil Rytarowski <n54@gmx.com>
3943
3944 * auxv.h (svr4_auxv_parse): New.
3945 * auxv.c (default_auxv_parse): Split into default_auxv_parse
3946 and generic_auxv_parse.
3947 (svr4_auxv_parse): Add.
3948 * obsd-tdep.c: Include "auxv.h".
3949 (obsd_auxv_parse): Remove.
3950 (obsd_init_abi): Remove comment.
3951 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
3952 from `obsd_auxv_parse' to `svr4_auxv_parse'.
3953 * nbsd-tdep.c: Include "auxv.h".
3954 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
3955
71fbdbaf
TT
39562020-04-08 Tom Tromey <tromey@adacore.com>
3957
3958 * nat/windows-nat.h (last_wait_event): Don't declare.
3959 (wait_for_debug_event): Update comment.
3960 * nat/windows-nat.c (last_wait_event): Now static.
3961
2c1d95e8
TT
39622020-04-08 Tom Tromey <tromey@adacore.com>
3963
3964 * windows-nat.c (wait_for_debug_event): Move to
3965 nat/windows-nat.c.
3966 * nat/windows-nat.h (wait_for_debug_event): Declare.
3967 * nat/windows-nat.c (wait_for_debug_event): Move from
3968 windows-nat.c. No longer static.
3969
d2977bc4
TT
39702020-04-08 Tom Tromey <tromey@adacore.com>
3971
3972 * windows-nat.c (get_windows_debug_event): Use
3973 fetch_pending_stop.
3974 * nat/windows-nat.h (fetch_pending_stop): Declare.
3975 * nat/windows-nat.c (fetch_pending_stop): New function.
3976
e758e19c
TT
39772020-04-08 Tom Tromey <tromey@adacore.com>
3978
3979 * windows-nat.c (windows_continue): Use matching_pending_stop and
3980 continue_last_debug_event.
3981 * nat/windows-nat.h (matching_pending_stop)
3982 (continue_last_debug_event): Declare.
3983 * nat/windows-nat.c (DEBUG_EVENTS): New define.
3984 (matching_pending_stop, continue_last_debug_event): New
3985 functions.
3986
8d30e395
TT
39872020-04-08 Tom Tromey <tromey@adacore.com>
3988
3989 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
3990 (handle_exception_result): Move to nat/windows-nat.h.
3991 (DEBUG_EXCEPTION_SIMPLE): Remove.
3992 (windows_nat::handle_ms_vc_exception): New function.
3993 (handle_exception): Move to nat/windows-nat.c.
3994 (get_windows_debug_event): Update.
3995 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
3996 nat/windows-nat.c.
3997 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
3998 (handle_exception_result): Move from windows-nat.c.
3999 (handle_exception): Declare.
4000 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4001 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4002 windows-nat.c.
4003
29de418d
TT
40042020-04-08 Tom Tromey <tromey@adacore.com>
4005
4006 * windows-nat.c (exception_count, event_count): Remove.
4007 (handle_exception, get_windows_debug_event)
4008 (do_initial_windows_stuff): Update.
4009
a816ba18
TT
40102020-04-08 Tom Tromey <tromey@adacore.com>
4011
4012 * windows-nat.c (windows_nat::handle_load_dll)
4013 (windows_nat::handle_unload_dll): Rename. No longer static.
4014 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4015 Declare.
4016
a00caa12
TT
40172020-04-08 Tom Tromey <tromey@adacore.com>
4018
4019 * complaints.h (stop_whining): Declare at top-level.
4020 (complaint): Don't declare stop_whining.
4021
d41b524f
TT
40222020-04-08 Tom Tromey <tromey@adacore.com>
4023
4024 * windows-nat.c (windows_nat::handle_output_debug_string):
4025 Rename. No longer static.
4026 * nat/windows-nat.h (handle_output_debug_string): Declare.
4027
3c76026d
TT
40282020-04-08 Tom Tromey <tromey@adacore.com>
4029
4030 * windows-nat.c (current_process_handle, current_process_id)
4031 (main_thread_id, last_sig, current_event, last_wait_event)
4032 (current_windows_thread, desired_stop_thread_id, pending_stops)
4033 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4034 (display_selectors, fake_create_process)
4035 (get_windows_debug_event): Update.
4036 * nat/windows-nat.h (current_process_handle, current_process_id)
4037 (main_thread_id, last_sig, current_event, last_wait_event)
4038 (current_windows_thread, desired_stop_thread_id, pending_stops)
4039 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4040 * nat/windows-nat.c (current_process_handle, current_process_id)
4041 (main_thread_id, last_sig, current_event, last_wait_event)
4042 (current_windows_thread, desired_stop_thread_id, pending_stops)
4043 (siginfo_er): New globals. Move from windows-nat.c.
4044
9d8679cc
TT
40452020-04-08 Tom Tromey <tromey@adacore.com>
4046
4047 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4048 (handle_load_dll): Update.
4049 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4050
28688adf
TT
40512020-04-08 Tom Tromey <tromey@adacore.com>
4052
4053 * windows-nat.c (enum thread_disposition_type): Move to
4054 nat/windows-nat.h.
4055 (windows_nat::thread_rec): Rename from thread_rec. No longer
4056 static.
4057 (windows_add_thread, windows_nat_target::fetch_registers)
4058 (windows_nat_target::store_registers, handle_exception)
4059 (windows_nat_target::resume, get_windows_debug_event)
4060 (windows_nat_target::get_tib_address)
4061 (windows_nat_target::thread_name)
4062 (windows_nat_target::thread_alive): Update.
4063 * nat/windows-nat.h (enum thread_disposition_type): Move from
4064 windows-nat.c.
4065 (thread_rec): Declare.
4066
4834dad0
TT
40672020-04-08 Tom Tromey <tromey@adacore.com>
4068
4069 * windows-nat.c: Add "using namespace".
4070 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4071 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4072
65bafd5b
TT
40732020-04-08 Tom Tromey <tromey@adacore.com>
4074
4075 * nat/windows-nat.h (struct windows_thread_info): Declare
4076 destructor.
4077 * nat/windows-nat.c (~windows_thread_info): New.
4078
0a4afda3
TT
40792020-04-08 Tom Tromey <tromey@adacore.com>
4080
4081 PR gdb/22992
4082 * windows-nat.c (current_event): Update comment.
4083 (last_wait_event, desired_stop_thread_id): New globals.
4084 (struct pending_stop): New.
4085 (pending_stops): New global.
4086 (windows_nat_target) <stopped_by_sw_breakpoint>
4087 <supports_stopped_by_sw_breakpoint>: New methods.
4088 (windows_fetch_one_register): Add assertions. Adjust PC.
4089 (windows_continue): Handle pending stops. Suspend other threads
4090 when stepping. Use last_wait_event
4091 (wait_for_debug_event): New function.
4092 (get_windows_debug_event): Use wait_for_debug_event. Handle
4093 pending stops. Queue spurious stops.
4094 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
4095 (windows_nat_target::kill): Use wait_for_debug_event.
4096 * nat/windows-nat.h (struct windows_thread_info)
4097 <stopped_at_software_breakpoint>: New field.
4098 * nat/windows-nat.c (windows_thread_info::resume): Clear
4099 stopped_at_software_breakpoint.
4100
8e61ebec
TT
41012020-04-08 Tom Tromey <tromey@adacore.com>
4102
4103 * windows-nat.c (enum thread_disposition_type): New.
4104 (thread_rec): Replace "get_context" parameter with "disposition";
4105 change type.
4106 (windows_add_thread, windows_nat_target::fetch_registers)
4107 (windows_nat_target::store_registers, handle_exception)
4108 (windows_nat_target::resume, get_windows_debug_event)
4109 (windows_nat_target::get_tib_address)
4110 (windows_nat_target::thread_name)
4111 (windows_nat_target::thread_alive): Update.
4112
98a03287
TT
41132020-04-08 Tom Tromey <tromey@adacore.com>
4114
4115 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
4116 (windows_continue): Use windows_continue::resume.
4117 * nat/windows-nat.h (struct windows_thread_info) <suspend,
4118 resume>: Declare new methods.
4119 * nat/windows-nat.c: New file.
4120 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
4121
7c7411bc
TT
41222020-04-08 Tom Tromey <tromey@adacore.com>
4123
4124 * windows-nat.c (windows_add_thread, windows_delete_thread)
4125 (windows_nat_target::fetch_registers)
4126 (windows_nat_target::store_registers, fake_create_process)
4127 (windows_nat_target::resume, windows_nat_target::resume)
4128 (get_windows_debug_event, windows_nat_target::wait)
4129 (windows_nat_target::pid_to_str)
4130 (windows_nat_target::get_tib_address)
4131 (windows_nat_target::get_ada_task_ptid)
4132 (windows_nat_target::thread_name)
4133 (windows_nat_target::thread_alive): Use lwp, not tid.
4134
2950fdf7
TT
41352020-04-08 Tom Tromey <tromey@adacore.com>
4136
4137 * windows-nat.c (handle_exception)
4138 (windows_nat_target::thread_name): Update.
4139 * nat/windows-nat.h (windows_thread_info): Remove destructor.
4140 <name>: Now unique_xmalloc_ptr.
4141
62fe396b
TT
41422020-04-08 Tom Tromey <tromey@adacore.com>
4143
4144 * windows-nat.c (thread_rec)
4145 (windows_nat_target::fetch_registers): Update.
4146 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
4147 Update comment.
4148 <debug_registers_changed, reload_context>: Now bool.
4149
e9534bd2
TT
41502020-04-08 Tom Tromey <tromey@adacore.com>
4151
4152 * windows-nat.c (windows_add_thread): Use new.
4153 (windows_init_thread_list, windows_delete_thread): Use delete.
4154 (get_windows_debug_event): Update.
4155 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
4156 destructor, and initializers.
4157
ae1f8880
TT
41582020-04-08 Tom Tromey <tromey@adacore.com>
4159
4160 * windows-nat.c (struct windows_thread_info): Remove.
4161 * nat/windows-nat.h: New file.
4162
55a1e039
TT
41632020-04-08 Tom Tromey <tromey@adacore.com>
4164
4165 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
4166 (thread_rec, windows_add_thread, windows_delete_thread)
4167 (windows_continue): Update.
4168
93366324
TT
41692020-04-08 Tom Tromey <tromey@adacore.com>
4170
4171 * windows-nat.c (struct windows_thread_info): Remove typedef.
4172 (thread_head): Remove.
4173 (thread_list): New global.
4174 (thread_rec, windows_add_thread, windows_init_thread_list)
4175 (windows_delete_thread, windows_continue): Update.
4176
0f2265e2
SM
41772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * windows-tdep.h (windows_init_abi): Add comment.
4180 (cygwin_init_abi): New declaration.
4181 * windows-tdep.c: Split signal enumeration in two, one for
4182 Windows and one for Cygwin.
4183 (windows_gdb_signal_to_target): Only deal with signal of the
4184 Windows OS ABI.
4185 (cygwin_gdb_signal_to_target): New function.
4186 (windows_init_abi): Rename to windows_init_abi_common, don't set
4187 gdb_signal_to_target gdbarch method. Add new new function with
4188 this name.
4189 (cygwin_init_abi): New function.
4190 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
4191 comment. Don't call windows_init_abi.
4192 (amd64_windows_init_abi): Add comment, call windows_init_abi.
4193 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
4194 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
4195 i386_windows_init_abi_common, don't call windows_init_abi. Add
4196 a new function of this name.
4197 (i386_cygwin_init_abi): New function.
4198 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
4199 OS ABI Cygwin.
4200
3810f182
SM
42012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
4204 parameter.c.
4205 (dwarf2_read_gdb_index): Update.
4206
063f8e80
KR
42072020-04-07 Kamil Rytarowski <n54@gmx.com>
4208
4209 * nbsd-tdep.c: Include "objfiles.h".
4210 (nbsd_skip_solib_resolver): New.
4211 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
4212
85a9510c 42132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4214
4215 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
4216 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
4217 with DW_LLE_base_addressx are being emitted in DWARFv5.
4218 Add the newly added kind DW_LOC_OFFSET_PAIR also.
4219 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
4220 unsigned integer.
4221
9fc3eaae 42222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4223
4224 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
4225 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
4226 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
4227 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
4228 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
4229 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
4230 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
4231
4232
41144253 42332020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4234
4235 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
4236 (read_loclist_index): New function definition.
4237 (lookup_loclist_base): New function definition.
4238 (read_loclist_header): New function definition.
4239 (dwarf2_cu): Add loclist_base and loclist_header field.
4240 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
4241 (read_full_die_1): Read the value of DW_AT_loclists_base.
4242 (read_attribute_reprocess): Handle DW_FORM_loclistx.
4243 (read_attribute_value): Handle DW_FORM_loclistx.
4244 (skip_one_die): Handle DW_FORM_loclistx.
4245 (loclist_header): New structure declaration.
4246 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
4247
9f4e76a4
SM
42482020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4249
4250 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
4251 constructor. Remove `addr` parameter from other constructor and
4252 add `per_cu` parameter.
4253 * dwarf2/read.c (create_partial_symtab): Update.
4254
25c11aca
TV
42552020-04-07 Tom de Vries <tdevries@suse.de>
4256
4257 PR symtab/25796
4258 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
4259 (partial_die_info::fixup): Inherit has_const_value.
4260
5707e24b
TV
42612020-04-07 Tom de Vries <tdevries@suse.de>
4262
4263 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
4264 symbols without address.
4265
05f00e22
KR
42662020-04-06 Kamil Rytarowski <n54@gmx.com>
4267
4268 * nbsd-nat.h (struct thread_info): Add forward declaration.
4269 (nbsd_nat_target::thread_alive): Add.
4270 (nbsd_nat_target::thread_name): Likewise.
4271 (nbsd_nat_target::update_thread_list): Likewise.
4272 (update_thread_list::post_attach): Likewise.
4273 (post_attach::pid_to_str): Likewise.
4274 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
4275 (nbsd_thread_lister): Add.
4276 (nbsd_nat_target::thread_alive): Likewise.
4277 (nbsd_nat_target::thread_name): Likewise.
4278 (nbsd_add_threads): Likewise.
4279 (update_thread_list::post_attach): Likewise.
4280 (nbsd_nat_target::update_thread_list): Likewise.
4281 (post_attach::pid_to_str): Likewise.
4282
6ee448cc
TT
42832020-04-06 Tom Tromey <tromey@adacore.com>
4284
4285 * ada-valprint.c (print_variant_part): Extract the variant field.
4286 (print_field_values): Use the field as the outer value when
4287 recursing.
4288
dea34e8c
TT
42892020-04-06 Tom Tromey <tromey@adacore.com>
4290
4291 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
4292 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
4293 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
4294 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
4295 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
4296
93689ce9
TT
42972020-04-06 Tom Tromey <tromey@adacore.com>
4298
4299 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
4300 TYPE_CODE_ERROR.
4301
79743962
KR
43022020-04-06 Kamil Rytarowski <n54@gmx.com>
4303
4304 * nbsd-tdep.c: Include "gdbarch.h".
4305 Define enum with NetBSD signal numbers.
4306 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
4307 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
4308 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4309 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
4310 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
4311 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
4312 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
4313 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4314 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
4315 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4316 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4317 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
4318
9e7c9a03
HD
43192020-04-03 Hannes Domani <ssbssa@yahoo.de>
4320
4321 PR gdb/25325
4322 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
4323
d9e49b61
TT
43242020-04-03 Tom Tromey <tromey@adacore.com>
4325
4326 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
4327 Read constant block.
4328
e0fc5c3f
SM
43292020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
4332 (gdb_bfd_get_full_section_contents): New declaration.
4333 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
4334 * windows-tdep.c (is_linked_with_cygwin_dll): Use
4335 gdb_bfd_get_full_section_contents.
4336
e2ff18a0
SM
43372020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4338
4339 * exec.c (build_section_table): Replace internal_error with
4340 gdb_assert.
4341 (section_table_xfer_memory_partial): Likewise.
4342 * mdebugread.c (parse_partial_symbols): Likewise.
4343 * psymtab.c (lookup_partial_symbol): Likewise.
4344 * utils.c (wrap_here): Likewise.
4345
0830d301
TT
43462020-04-02 Tom Tromey <tromey@adacore.com>
4347
4348 * f-lang.c (build_fortran_types): Use arch_type to initialize
4349 builtin_complex_s32 in the TYPE_CODE_ERROR case.
4350
e7da7f8f
TT
43512020-04-02 Tom Tromey <tromey@adacore.com>
4352
4353 * dwarf2/read.c (partial_die_info::read): Do not create a vector
4354 of attributes.
4355
c90d28ac
AB
43562020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
4357 Bernd Edlinger <bernd.edlinger@hotmail.de>
4358 Tom Tromey <tromey@adacore.com>
4359
4360 * buildsym.c (buildsym_compunit::record_line): Remove
4361 deduplication code.
4362
1aa98955
TV
43632020-04-02 Tom de Vries <tdevries@suse.de>
4364
4365 PR ada/24671
4366 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
4367
d3214198
TV
43682020-04-02 Tom de Vries <tdevries@suse.de>
4369
4370 * dwarf2/read.c (dwarf2_gdb_index_functions,
4371 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
4372 NULL.
4373 * psymtab.c (psym_lookup_global_symbol_language): New function.
4374 (psym_functions): Init psym_lookup_global_symbol_language with
4375 psym_lookup_global_symbol_language.
4376 * symfile-debug.c (debug_sym_quick_functions): Init
4377 lookup_global_symbol_language with NULL.
4378 * symfile.c (set_initial_language): Remove fixme comment.
4379 * symfile.h (struct quick_symbol_functions): Add
4380 lookup_global_symbol_language.
4381 * symtab.c (find_quick_global_symbol_language): New function.
4382 (find_main_name): Use find_quick_global_symbol_language.
4383
2836752f
SM
43842020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
4385
4386 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
4387
64dc2d4b
BE
43882020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4389
4390 * buildsym.c (record_line): Fix undefined behavior and preserve
4391 lines at eof.
4392
bbe3dc41
BE
43932020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4394
4395 * buildsym.c (record_line): Fix the resizing condition.
4396
6b4a335b
TT
43972020-04-01 Tom Tromey <tom@tromey.com>
4398
4399 * value.h (value_literal_complex): Add comment.
4400 * valops.c (value_literal_complex): Refer to value.h.
4401
3638a098
TT
44022020-04-01 Tom Tromey <tom@tromey.com>
4403
4404 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
4405 (scalar_type): New rule, from typebase.
4406 (typebase): Use scalar_type. Recognize complex types.
4407 (field_name): Handle FLOAT_KEYWORD.
4408 (ident_tokens): Add _Complex and __complex__.
4409
c34e8714
TT
44102020-04-01 Tom Tromey <tom@tromey.com>
4411
4412 PR exp/25299:
4413 * valarith.c (promotion_type, complex_binop): New functions.
4414 (scalar_binop): Handle complex numbers. Use promotion_type.
4415 (value_pos, value_neg, value_complement): Handle complex numbers.
4416
fa649bb7
TT
44172020-04-01 Tom Tromey <tom@tromey.com>
4418
4419 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
4420 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
4421 (parse_number): Handle complex numbers.
4422
981c08ce
TT
44232020-04-01 Tom Tromey <tom@tromey.com>
4424
4425 * c-valprint.c (c_decorations): Change complex suffix to "i".
4426
4c99290d
TT
44272020-04-01 Tom Tromey <tom@tromey.com>
4428
4429 * valprint.c (generic_value_print_complex): Use accessors.
4430 * value.h (value_real_part, value_imaginary_part): Declare.
4431 * valops.c (value_real_part, value_imaginary_part): New
4432 functions.
4433 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
4434
5b930b45
TT
44352020-04-01 Tom Tromey <tom@tromey.com>
4436
4437 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
4438 (read_range_type): Update.
4439 * mdebugread.c (basic_type): Update.
4440 * go-lang.c (build_go_types): Use init_complex_type.
4441 * gdbtypes.h (struct main_type) <complex_type>: New member.
4442 (init_complex_type): Update.
4443 (arch_complex_type): Don't declare.
4444 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
4445 Make name if none given. Use alloc_type_copy. Look for cached
4446 complex type.
4447 (arch_complex_type): Remove.
4448 (gdbtypes_post_init): Use init_complex_type.
4449 * f-lang.c (build_fortran_types): Use init_complex_type.
4450 * dwarf2/read.c (read_base_type): Update.
4451 * d-lang.c (build_d_types): Use init_complex_type.
4452 * ctfread.c (read_base_type): Update.
4453
53cccef1
TBA
44542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4455
4456 * infrun.c (stop_all_threads): Update assertion, plus when
4457 stopping threads, take into account that we might be trying
4458 to stop an all-stop target.
4459 (stop_waiting): Call 'stop_all_threads' if there exists a
4460 non-stop target.
4461
a0714d30
TBA
44622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4463
4464 * target.h (exists_non_stop_target): New function declaration.
4465 * target.c (exists_non_stop_target): New function.
4466
60e22c1e
HD
44672020-04-01 Hannes Domani <ssbssa@yahoo.de>
4468
4469 PR gdb/24789
4470 * eval.c (is_integral_or_integral_reference): New function.
4471 (evaluate_subexp_standard): Allow integer references in
4472 pointer arithmetic.
4473
e139a727
TBA
44742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4475
4476 * remote.c (remote_target::remote_parse_stop_reply): Remove the
4477 check for no ptid in the stop reply when the target is non-stop.
4478
e0802d59
TT
44792020-04-01 Tom Tromey <tromey@adacore.com>
4480
4481 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
4482 "name" parameter to rvalue reference. Initialize m_name_holder.
4483 <lookup_name_info>: New overloads.
4484 <name>: Return gdb::string_view.
4485 <c_str>: New method.
4486 <make_ignore_params>: Update.
4487 <search_name_hash>: Update.
4488 <language_lookup_name>: Return const char *.
4489 <m_name>: Change type.
4490 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
4491 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
4492 (lookup_name_info::match_any): Update.
4493 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
4494 Update.
4495 * minsyms.c (linkage_name_str): Update.
4496 * language.c (default_symbol_name_matcher): Update.
4497 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
4498 Update.
4499 * ada-lang.c (ada_fold_name): Change parameter to string_view.
4500 (ada_lookup_name_info::ada_lookup_name_info): Update.
4501 (literal_symbol_name_matcher): Update.
4502
8c072cb6
TT
45032020-04-01 Tom Tromey <tromey@adacore.com>
4504
4505 * psymtab.c (psymtab_search_name): Remove function.
4506 (psym_lookup_symbol): Create search name and lookup name here.
4507 (lookup_partial_symbol): Remove "name" parameter; add
4508 lookup_name.
4509 (psym_expand_symtabs_for_function): Update.
4510
6f29a534
TT
45112020-03-31 Joel Jones <joelkevinjones@gmail.com>
4512
4513 PR tui/25597:
4514 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
4515
af62665e
TT
45162020-03-31 Tom Tromey <tromey@adacore.com>
4517
4518 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
4519 memcpy.
4520
d1a89da5
NC
45212020-03-30 Nelson Chu <nelson.chu@sifive.com>
4522
4523 * features/riscv/32bit-csr.xml: Regenerated.
4524 * features/riscv/64bit-csr.xml: Regenerated.
4525
d8af9068
TT
45262020-03-30 Tom Tromey <tromey@adacore.com>
4527
4528 * ada-valprint.c (print_variant_part): Update.
4529 * ada-lang.h (ada_which_variant_applies): Update.
4530 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
4531 outer_valaddr parameters; replace with "outer" value parameter.
4532 (to_fixed_variant_branch_type): Update.
4533
227c0bf4
PFC
45342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4535
4536 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
4537 <list>. Remove inclusion of observable.h.
4538 (PPC_DEBUG_CURRENT_VERSION): Move up define.
4539 (struct arch_lwp_info): New struct.
4540 (class ppc_linux_dreg_interface): New class.
4541 (struct ppc_linux_process_info): New struct.
4542 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
4543 <low_new_clone, low_forget_process, low_prepare_to_resume>
4544 <copy_thread_dreg_state, mark_thread_stale>
4545 <mark_debug_registers_changed, register_hw_breakpoint>
4546 <clear_hw_breakpoint, register_wp, clear_wp>
4547 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
4548 <num_memory_accesses, get_trigger_type>
4549 <create_watchpoint_request, hwdebug_point_cmp>
4550 <init_arch_lwp_info, get_arch_lwp_info>
4551 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
4552 methods.
4553 <struct ptid_hash>: New inner struct.
4554 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
4555 members.
4556 (saved_dabr_value, hwdebug_info, max_slots_number)
4557 (struct hw_break_tuple, struct thread_points, ppc_threads)
4558 (have_ptrace_hwdebug_interface)
4559 (hwdebug_find_thread_points_by_tid)
4560 (hwdebug_insert_point, hwdebug_remove_point): Remove.
4561 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
4562 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
4563 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
4564 use m_dreg_interface.
4565 (hwdebug_point_cmp): Change to...
4566 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
4567 reference arguments instead of pointers.
4568 (ppc_linux_nat_target::ranged_break_num_registers): Use
4569 m_dreg_interface.
4570 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
4571 m_dreg_interface. Call register_hw_breakpoint.
4572 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
4573 m_dreg_interface. Call clear_hw_breakpoint.
4574 (get_trigger_type): Change to...
4575 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
4576 comment.
4577 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
4578 use m_dreg_interface. Call register_hw_breakpoint.
4579 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
4580 use m_dreg_interface. Call clear_hw_breakpoint.
4581 (can_use_watchpoint_cond_accel): Change to...
4582 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
4583 method. Update comment, use m_dreg_interface and
4584 m_process_info.
4585 (calculate_dvc): Change to...
4586 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
4587 m_dreg_interface.
4588 (num_memory_accesses): Change to...
4589 (ppc_linux_nat_target::num_memory_accesses): ...this method.
4590 (check_condition): Change to...
4591 (ppc_linux_nat_target::check_condition): ...this method.
4592 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
4593 comment, use m_dreg_interface.
4594 (create_watchpoint_request): Change to...
4595 (ppc_linux_nat_target::create_watchpoint_request): ...this
4596 method. Use m_dreg_interface.
4597 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
4598 m_dreg_interface. Call register_hw_breakpoint or register_wp.
4599 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
4600 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
4601 (ppc_linux_nat_target::low_forget_process)
4602 (ppc_linux_nat_target::low_new_fork)
4603 (ppc_linux_nat_target::low_new_clone)
4604 (ppc_linux_nat_target::low_delete_thread)
4605 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
4606 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
4607 only call mark_thread_stale.
4608 (ppc_linux_thread_exit): Remove.
4609 (ppc_linux_nat_target::stopped_data_address): Change to...
4610 (ppc_linux_nat_target::low_stopped_data_address): This. Add
4611 comment, use m_dreg_interface and m_thread_hw_breakpoints.
4612 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
4613 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
4614 comment. Call low_stopped_data_address.
4615 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
4616 m_dreg_interface.
4617 (ppc_linux_nat_target::masked_watch_num_registers): Use
4618 m_dreg_interface.
4619 (ppc_linux_nat_target::copy_thread_dreg_state)
4620 (ppc_linux_nat_target::mark_thread_stale)
4621 (ppc_linux_nat_target::mark_debug_registers_changed)
4622 (ppc_linux_nat_target::register_hw_breakpoint)
4623 (ppc_linux_nat_target::clear_hw_breakpoint)
4624 (ppc_linux_nat_target::register_wp)
4625 (ppc_linux_nat_target::clear_wp)
4626 (ppc_linux_nat_target::init_arch_lwp_info)
4627 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
4628 (_initialize_ppc_linux_nat): Remove observer callback.
4629
4db10d8f
PFC
46302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4631
4632 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
4633 (ppc_linux_nat_target::auxv_parse)
4634 (ppc_linux_nat_target::read_description)
4635 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4636 Move up.
4637
1310c1b0
PFC
46382020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4639
4640 * linux-nat.h (low_new_clone): New method.
4641 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
4642
69b037c3
SM
46432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4644
4645 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
4646 (dbx_expand_psymtab): ... this.
4647 (start_psymtab): Update.
4648 * mdebugread.c (psymtab_to_symtab_1): Rename to...
4649 (mdebug_expand_psymtab): ... this.
4650 (parse_partial_symbols): Update.
4651 (new_psymtab): Update.
4652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
4653 (xcoff_expand_psymtab): ... this.
4654 (xcoff_start_psymtab): Update.
4655
48993951
SM
46562020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4657
4658 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
4659 <expand_dependencies>: ... this.
4660 * psymtab.c (partial_symtab::read_dependencies): Rename to...
4661 (partial_symtab::expand_dependencies): ... this.
4662 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
4663 Update.
4664 (dwarf2_psymtab::expand_psymtab): Update.
4665 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4666 * mdebugread.c (psymtab_to_symtab_1): Update.
4667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4668
3ad83046
SM
46692020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * psympriv.h (discard_psymtab): Remove.
4672 * dbxread.c (dbx_end_psymtab): Update.
4673 * xcoffread.c (xcoff_end_psymtab): Update.
4674
4d1b9ab6
TT
46752020-03-28 Tom Tromey <tom@tromey.com>
4676
4677 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
4678 comment.
4679
f1749218
TT
46802020-03-28 Tom Tromey <tom@tromey.com>
4681
4682 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4683
ebea7626
HD
46842020-03-27 Hannes Domani <ssbssa@yahoo.de>
4685
4686 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4687
a879b4d5
JB
46882020-03-26 John Baldwin <jhb@FreeBSD.org>
4689
4690 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
4691
0826b30a
TT
46922020-03-26 Tom Tromey <tom@tromey.com>
4693
4694 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
4695 (mark_common_block_symbol_computed, read_tag_string_type)
4696 (attr_to_dynamic_prop, read_subrange_type): Update.
4697 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
4698 to be methods on struct attribute.
4699 (skip_one_die, process_imported_unit_die, read_namespace_alias)
4700 (read_call_site_scope, partial_die_info::read)
4701 (partial_die_info::read, lookup_die_type, follow_die_ref):
4702 Update.
4703 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
4704 from dwarf2_get_ref_die_offset.
4705 (attribute::constant_value): New method, from
4706 dwarf2_get_attr_constant_value.
4707 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
4708 Declare method.
4709 <constant_value>: New method.
4710
2b2558bf
TT
47112020-03-26 Tom Tromey <tom@tromey.com>
4712
4713 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
4714 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
4715 (dwarf_type_encoding_name): Move to stringify.c.
4716 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
4717 * dwarf2/stringify.c: New file.
4718 * dwarf2/stringify.h: New file.
4719
eeb64781
TT
47202020-03-26 Tom Tromey <tom@tromey.com>
4721
4722 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
4723 Rewrite.
4724
a39fdb41
TT
47252020-03-26 Tom Tromey <tom@tromey.com>
4726
4727 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
4728 methods.
4729 * dwarf2/read.c (lookup_addr_base): Move to die.h.
4730 (lookup_ranges_base): Likewise.
4731 (read_cutu_die_from_dwo, read_full_die_1): Update.
4732
436c571c
TT
47332020-03-26 Tom Tromey <tom@tromey.com>
4734
4735 * dwarf2/read.c (read_import_statement, read_file_scope)
4736 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
4737 (read_lexical_block_scope, read_call_site_scope)
4738 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
4739 (handle_struct_member_die, process_structure_scope)
4740 (update_enumeration_type_from_children)
4741 (process_enumeration_scope, read_array_type, read_common_block)
4742 (read_namespace, read_module, read_subroutine_type): Update.
4743 (sibling_die): Remove.
4744
052c8bb8
TT
47452020-03-26 Tom Tromey <tom@tromey.com>
4746
4747 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
4748 (build_type_psymtabs_reader, read_structure_type)
4749 (read_enumeration_type, read_full_die_1): Update.
4750 (dwarf2_attr_no_follow): Move to die.h.
4751 * dwarf2/die.h (struct die_info) <attr>: New method.
4752
2b24b6e4
TT
47532020-03-26 Tom Tromey <tom@tromey.com>
4754
4755 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
4756 <base_address>: Now an optional.
4757 (dwarf2_find_base_address, dwarf2_rnglists_process)
4758 (dwarf2_ranges_process, fill_in_loclist_baton)
4759 (dwarf2_symbol_mark_computed): Update.
4760
c2d50fd0
TT
47612020-03-26 Tom Tromey <tom@tromey.com>
4762
4763 * dwarf2/read.c (struct die_info): Move to die.h.
4764 * dwarf2/die.h: New file.
4765
0df7ad3a
TT
47662020-03-26 Tom Tromey <tom@tromey.com>
4767
4768 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
4769 * dwarf2/read.c
4770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4771 Move to line-header.c.
4772 (read_checked_initial_length_and_offset, read_formatted_entries):
4773 Likewise.
4774 (dwarf_decode_line_header): Split into two.
4775 * dwarf2/line-header.c
4776 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4777 Move from read.c.
4778 (read_checked_initial_length_and_offset, read_formatted_entries):
4779 Likewise.
4780 (dwarf_decode_line_header): New function, split from read.c.
4781
86c0bb4c
TT
47822020-03-26 Tom Tromey <tom@tromey.com>
4783
4784 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
4785 Declare method.
4786 * dwarf2/read.c (read_attribute_value): Update.
4787 (dwarf2_per_objfile::read_line_string): Rename from
4788 read_indirect_line_string.
4789 (read_formatted_entries): Update.
4790
2ef46c2f
TT
47912020-03-26 Tom Tromey <tom@tromey.com>
4792
4793 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
4794 variable.
4795
4f9c1eda
TT
47962020-03-26 Tom Tromey <tom@tromey.com>
4797
4798 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
4799 const.
4800 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
4801 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
4802 parameter const.
4803
5a0e026f
TT
48042020-03-26 Tom Tromey <tom@tromey.com>
4805
4806 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
4807 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
4808 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
4809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
4810
8844c11b
TT
48112020-03-26 Tom Tromey <tom@tromey.com>
4812
4813 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
4814 file_names_size, file_full_name, file_file_name>: Use const.
4815 <file_name_at, file_names>: Add const overload.
4816 * dwarf2/line-header.c (line_header::file_file_name)
4817 (line_header::file_full_name): Update.
4818
c90ec28a
TT
48192020-03-26 Tom Tromey <tom@tromey.com>
4820
4821 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
4822 (macro_start_file, consume_improper_spaces)
4823 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
4824 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
4825 (dwarf_decode_macros): Move to macro.c.
4826 * dwarf2/macro.c: New file.
4827 * dwarf2/macro.h: New file.
4828 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
4829
4f44ae6c
TT
48302020-03-26 Tom Tromey <tom@tromey.com>
4831
4832 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
4833 method.
4834 * dwarf2/section.c: New method. From
4835 read_indirect_string_at_offset_from.
4836 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
4837 (read_indirect_string_at_offset_from): Move to section.c.
4838 (read_indirect_string_at_offset): Rewrite.
4839 (read_indirect_line_string_at_offset): Remove.
4840 (read_indirect_string, read_indirect_line_string)
4841 (dwarf_decode_macro_bytes): Update.
4842
a0194fa8
TT
48432020-03-26 Tom Tromey <tom@tromey.com>
4844
4845 * dwarf2/section.h (struct dwarf2_section_info)
4846 <overload_complaint>: Declare.
4847 (dwarf2_section_buffer_overflow_complaint): Don't declare.
4848 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
4849 Rename from dwarf2_section_buffer_overflow_complaint.
4850 * dwarf2/read.c (skip_one_die, partial_die_info::read)
4851 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
4852
3d27bbdb
TT
48532020-03-26 Tom Tromey <tom@tromey.com>
4854
4855 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
4856 Declare.
4857 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
4858 Move from read.c.
4859 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
4860 to section.c.
4861
9eac9650
TT
48622020-03-26 Tom Tromey <tom@tromey.com>
4863
4864 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
4865
bf80d710
TT
48662020-03-26 Tom Tromey <tom@tromey.com>
4867
4868 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
4869 "builder".
4870 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
4871 parameter.
4872 (dwarf_decode_macros): Update.
4873
0314b390
TT
48742020-03-26 Tom Tromey <tom@tromey.com>
4875
4876 * dwarf2/read.c (read_attribute_value): Update.
4877 (read_indirect_string_from_dwz): Move to dwz.c; change into
4878 method.
4879 (dwarf_decode_macro_bytes): Update.
4880 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
4881 * dwarf2/dwz.c: New file.
4882 * Makefile.in (COMMON_SFILES): Add dwz.c.
4883
9fda78b6
TT
48842020-03-26 Tom Tromey <tom@tromey.com>
4885
4886 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
4887 * dwarf2/read.c: Add include.
4888 * dwarf2/index-write.c: Add include.
4889 * dwarf2/index-cache.c: Add include.
4890 * dwarf2/dwz.h: New file.
4891
33aa3c10
TT
48922020-03-25 Tom Tromey <tom@tromey.com>
4893
4894 * compile/compile-object-load.c (get_out_value_type): Mention
4895 correct symbol name in error message.
4896
d503b685
HD
48972020-03-25 Hannes Domani <ssbssa@yahoo.de>
4898
4899 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4900
7b1eff95
TV
49012020-03-25 Tom de Vries <tdevries@suse.de>
4902
4903 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
4904 * symmisc.c (dump_symtab_1): Print user and includes fields.
4905 (maintenance_info_symtabs): Same.
4906
dd895392
AB
49072020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 PR gdb/25534
4910 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
4911 (riscv_regcache_cooked_write): New function.
4912 (riscv_push_dummy_call): Use new function.
4913 (riscv_return_value): Likewise.
4914
5ab2fbf1
SM
49152020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
4918 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
4919 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
4920 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
4921 * infrun.c (follow_fork): Likewise.
4922 (follow_fork_inferior): Likewise.
4923 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
4924 * linux-nat.h (class linux_nat_target): Likewise.
4925 * remote.c (class remote_target) <follow_fork>: Likewise.
4926 (remote_target::follow_fork): Likewise.
4927 * target-delegates.c: Re-generate.
4928 * target.c (default_follow_fork): Likewise.
4929 (target_follow_fork): Likewise.
4930 * target.h (struct target_ops) <follow_fork>: Likewise.
4931 (target_follow_fork): Likewise.
4932
a64fafb5
TV
49332020-03-24 Tom de Vries <tdevries@suse.de>
4934
4935 * psymtab.c (maintenance_info_psymtabs): Print user field.
4936
fe26d3a3
TT
49372020-03-20 Tom Tromey <tromey@adacore.com>
4938
4939 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
4940 const.
4941 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
4942 const.
4943
c884cc46
SM
49442020-03-20 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * ptrace.m4: Don't check for ptrace declaration.
4947 * config.in: Re-generate.
4948 * configure: Re-generate.
4949 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
4950 not defined.
4951
1ff700c2
KR
49522020-03-20 Kamil Rytarowski <n54@gmx.com>
4953
4954 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
4955 `PTRACE_TYPE_RET'.
4956 * i386-bsd-nat.c (gdb_ptrace): Likewise.
4957 * sparc-nat.c (gdb_ptrace): Likewise.
4958 * x86-bsd-nat.c (gdb_ptrace): Likewise.
4959
f7d4f0b1
TT
49602020-03-20 Tom Tromey <tromey@adacore.com>
4961
4962 * c-exp.y (lex_one_token): Fix assert.
4963
f67210ff
TT
49642020-03-20 Tom Tromey <tromey@adacore.com>
4965
4966 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
4967 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
4968 strncpy call.
4969
1773be9e
TT
49702020-03-20 Tom Tromey <tromey@adacore.com>
4971
4972 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
4973
70304be9
TT
49742020-03-20 Tom Tromey <tromey@adacore.com>
4975
4976 * ada-valprint.c (print_variant_part): Remove parameters; switch
4977 to value-based API.
4978 (print_field_values): Likewise.
4979 (ada_val_print_struct_union): Likewise.
4980 (ada_value_print_1): Update.
4981
9faa006d
KR
49822020-03-20 Kamil Rytarowski <n54@gmx.com>
4983
4984 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
4985 nbsd_nat_target instead of inf_ptrace_target.
4986 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4987 nbsd_nat_target.
4988
4a90f062
KR
49892020-03-20 Kamil Rytarowski <n54@gmx.com>
4990
4991 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
4992 it to the ptrace call.
4993 * (store_registers): Likewise.
4994
49952020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
4996
4997 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
4998 it to the ptrace call.
4999 * (store_registers): Likewise.
5000
2d07da27
LM
50012020-03-19 Luis Machado <luis.machado@linaro.org>
5002
5003 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5004 valid, fetch vg value from ptrace.
5005
f09db380
KR
50062020-03-19 Kamil Rytarowski <n54@gmx.com>
5007 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5008 * inf-ptrace.c: Likewise.
5009 * (gdb_ptrace): Add.
5010 * (inf_ptrace_target::resume): Update.
5011 * (inf_ptrace_target::xfer_partial): Likewise.
5012 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5013 * (inf_ptrace_peek_poke): Update.
5014
fcc7376e
KR
50152020-03-19 Kamil Rytarowski <n54@gmx.com>
5016
5017 * x86-bsd-nat.c (gdb_ptrace): New.
5018 * (x86bsd_dr_set): Add new argument `ptid'.
5019 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5020 x86bsd_dr_set_addr): Update.
5021
cada5fc9
AB
50222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * remote.c (remote_target::process_stop_reply): Handle events for
5025 all threads differently.
5026
19a2740f
AB
50272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * completer.c (completion_tracker::remove_completion): Define new
5030 function.
5031 * completer.h (completion_tracker::remove_completion): Declare new
5032 function.
5033 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5034 when adding a C++ function symbol.
5035
724fd9ba
AB
50362020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * completer.c (completion_tracker::completion_hash_entry): Define
5039 new class.
5040 (advance_to_filename_complete_word_point): Call
5041 recompute_lowest_common_denominator.
5042 (completion_tracker::completion_tracker): Call discard_completions
5043 to setup the hash table.
5044 (completion_tracker::discard_completions): Allow for being called
5045 from the constructor, pass new equal function, and element deleter
5046 when constructing the hash table. Initialise new class member
5047 variables.
5048 (completion_tracker::maybe_add_completion): Remove use of
5049 m_entries_vec, and store more information into m_entries_hash.
5050 (completion_tracker::recompute_lcd_visitor): New function, most
5051 content taken from...
5052 (completion_tracker::recompute_lowest_common_denominator):
5053 ...here, this now just visits each item in the hash calling the
5054 above visitor.
5055 (completion_tracker::build_completion_result): Remove use of
5056 m_entries_vec, call recompute_lowest_common_denominator.
5057 * completer.h (completion_tracker::have_completions): Remove use
5058 of m_entries_vec.
5059 (completion_tracker::completion_hash_entry): Declare new class.
5060 (completion_tracker::recompute_lowest_common_denominator): Change
5061 function signature.
5062 (completion_tracker::recompute_lcd_visitor): Declare new function.
5063 (completion_tracker::m_entries_vec): Delete.
5064 (completion_tracker::m_entries_hash): Initialize to NULL.
5065 (completion_tracker::m_lowest_common_denominator_valid): New
5066 member variable.
5067 (completion_tracker::m_lowest_common_denominator_max_length): New
5068 member variable.
5069
5a82b8a1
KR
50702020-03-17 Kamil Rytarowski <n54@gmx.com>
5071
5072 * regformats/regdef.h: Put reg in gdb namespace.
5073
fb516a69
KR
50742020-03-17 Kamil Rytarowski <n54@gmx.com>
5075
5076 * i386-bsd-nat.c (gdb_ptrace): New.
5077 * (i386bsd_fetch_inferior_registers,
5078 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5079 * (i386bsd_fetch_inferior_registers,
5080 i386bsd_store_inferior_registers) Use gdb_ptrace.
5081
1c0aa1fb
KR
50822020-03-17 Kamil Rytarowski <n54@gmx.com>
5083
5084 * amd64-bsd-nat.c (gdb_ptrace): New.
5085 * (amd64bsd_fetch_inferior_registers,
5086 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5087 * (amd64bsd_fetch_inferior_registers,
5088 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5089
5ccd2fb7
KR
50902020-03-17 Kamil Rytarowski <n54@gmx.com>
5091
5092 * user-regs.c (user_reg::read): Rename to...
5093 (user_reg::xread): ...this.
5094 * (append_user_reg): Rename argument `read' to `xread'.
5095 * (user_reg_add_builtin): Likewise.
5096 * (user_reg_add): Likewise.
5097 * (value_of_user_reg): Likewise.
5098
2108a63a
KR
50992020-03-17 Kamil Rytarowski <n54@gmx.com>
5100
5101 * sparc-nat.c (gdb_ptrace): New.
5102 * sparc-nat.c (sparc_fetch_inferior_registers)
5103 (sparc_store_inferior_registers) Remove obsolete comment.
5104 * sparc-nat.c (sparc_fetch_inferior_registers)
5105 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
5106 * sparc-nat.c (sparc_fetch_inferior_registers)
5107 (sparc_store_inferior_registers) Use gdb_ptrace.
5108
a225c9a8
KR
51092020-03-17 Kamil Rytarowski <n54@gmx.com>
5110
5111 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
5112 it to the ptrace call.
5113 * sh-nbsd-nat.c (store_registers): Likewise.
5114
98097623
KR
51152020-03-17 Kamil Rytarowski <n54@gmx.com>
5116
5117 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
5118 nbsd_nat_target instead of inf_ptrace_target.
5119 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5120 nbsd_nat_target.
5121
9e38d619
KR
51222020-03-17 Kamil Rytarowski <n54@gmx.com>
5123
5124 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
5125
a2ecbe9f
KR
51262020-03-17 Kamil Rytarowski <n54@gmx.com>
5127
5128 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
5129 <sys/sysctl.h>.
5130 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
5131
58990295
TV
51322020-03-17 Tom de Vries <tdevries@suse.de>
5133
5134 PR gdb/23710
5135 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
5136 fields.
5137 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
5138 fields.
5139 (process_imported_unit_die): Skip import of c++ CUs.
5140
771dd3a8
TT
51412020-03-16 Tom Tromey <tom@tromey.com>
5142
5143 * p-valprint.c (pascal_object_print_value): Initialize
5144 base_value.
5145
817a7585
AK
51462020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
5147 Shahab Vahedi <shahab@synopsys.com>
5148
5149 * Makefile.in: Add arch/arc.o
5150 * configure.tgt: Likewise.
5151 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
5152 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 5153 (arc_read_description): New function to cache target descriptions.
817a7585
AK
5154 * arc-tdep.h (arc_read_description): Add proto type.
5155 * arch/arc.c: New file.
5156 * arch/arc.h: Likewise.
5157 * features/Makefile: Replace old target descriptions with new.
5158 * features/arc-arcompact.c: Remove.
5159 * features/arc-arcompact.xml: Likewise.
5160 * features/arc-v2.c: Likewise
5161 * features/arc-v2.xml: Likewise
5162 * features/arc/aux-arcompact.xml: New file.
5163 * features/arc/aux-v2.xml: Likewise.
5164 * features/arc/core-arcompact.xml: Likewise.
5165 * features/arc/core-v2.xml: Likewise.
5166 * features/arc/aux-arcompact.c: Generate.
5167 * features/arc/aux-v2.c: Likewise.
5168 * features/arc/core-arcompact.c: Likewise.
5169 * features/arc/core-v2.c: Likewise.
5170 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
5171
67430cd0
TT
51722020-03-16 Tom Tromey <tromey@adacore.com>
5173
5174 PR gdb/25663:
5175 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
5176 putting value into bcache.
5177
30efb6c7
SM
51782020-03-16 Simon Marchi <simon.marchi@efficios.com>
5179
5180 PR gdb/21500
5181 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
5182 to...
5183 (amd64_windows_init_abi_common): ... this. Don't set size of
5184 long type.
5185 (amd64_windows_init_abi): New function.
5186 (amd64_cygwin_init_abi): New function.
5187 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
5188 the Cygwin OS ABI.
5189 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
5190 comment.
5191
8db52437
SM
51922020-03-16 Simon Marchi <simon.marchi@efficios.com>
5193
5194 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
5195 * windows-tdep.c (CYGWIN_DLL_NAME): New.
5196 (pe_import_directory_entry): New struct type.
5197 (is_linked_with_cygwin_dll): New function.
5198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
5199 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
5200 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
5201
5982a56a
SM
52022020-03-16 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
5205 i386_cygwin_core_osabi_sniffer.
5206
7a1998df
SM
52072020-03-16 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * i386-cygwin-tdep.c: Rename to...
5210 * i386-windows-tdep.c: ... this.
5211 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
5212 i386-windows-tdep.c.
5213 * configure.tgt: Likewise.
5214
053205cc
SM
52152020-03-16 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
5218 * osabi.c (gdb_osabi_names): Add "Windows".
5219 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
5220 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
5221 (i386_cygwin_core_osabi_sniffer): New function, extracted from
5222 i386_cygwin_osabi_sniffer.
5223 (_initialize_i386_cygwin_tdep): Register OS ABI
5224 GDB_OSABI_WINDOWS for i386.
5225 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
5226 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
5227 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
5228 for x86-64.
5229 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
5230 when the target matches '*-*-mingw*'.
5231
fe4b2ee6
SM
52322020-03-16 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * defs.h (enum gdb_osabi): Move to...
5235 * osabi.h (enum gdb_osabi): ... here.
5236 * gdbarch.sh: Include osabi.h in gdbarch.h.
5237 * gdbarch.h: Re-generate.
5238
cb9b645d
SM
52392020-03-16 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
5242 function.
5243 (_initialize_amd64_windows_tdep): Register osabi sniffer.
5244
3293bbaf
TT
52452020-03-14 Tom Tromey <tom@tromey.com>
5246
5247 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
5248 for C++.
5249 (c_type_print_modifier): Likewise. Add "language" parameter.
5250 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
5251 (c_type_print_base_1): Update.
5252 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
5253 constants.
5254 * type-stack.c (type_stack::insert): Handle tp_atomic and
5255 tp_restrict.
5256 (type_stack::follow_type_instance_flags): Likewise.
5257 (type_stack::follow_types): Likewise. Merge type-following code.
5258 * c-exp.y (RESTRICT, ATOMIC): New tokens.
5259 (space_identifier, cv_with_space_id)
5260 (const_or_volatile_or_space_identifier_noopt)
5261 (const_or_volatile_or_space_identifier): Remove.
5262 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
5263 rules.
5264 (ptr_operator, typebase): Update.
5265 (enum token_flag) <FLAG_C>: New constant.
5266 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
5267 "_Atomic".
5268 (lex_one_token): Handle FLAG_C.
5269
154151a6
KR
52702020-03-14 Kamil Rytarowski <n54@gmx.com>
5271
5272 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
5273 it to the ptrace call.
5274 * m68k-bsd-nat.c (store_registers): Likewise.
5275
bc107784
KR
52762020-03-14 Kamil Rytarowski <n54@gmx.com>
5277
5278 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
5279 gdb_byte *.
5280 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
5281 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
5282 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
5283
01a80117
KR
52842020-03-14 Kamil Rytarowski <n54@gmx.com>
5285
5286 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
5287 nbsd_nat_target instead of inf_ptrace_target.
5288 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5289 nbsd_nat_target.
5290
f90280ca
KR
52912020-03-14 Kamil Rytarowski <n54@gmx.com>
5292
5293 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
5294 register_t.
5295
6def66f1
KR
52962020-03-14 Kamil Rytarowski <n54@gmx.com>
5297
5298 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
5299 it to the ptrace call.
5300 * alpha-bsd-nat.c (store_registers): Likewise.
5301
66eaca97
KR
53022020-03-14 Kamil Rytarowski <n54@gmx.com>
5303
5304 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
5305 includes.
5306 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
5307 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5308 fill_fpregset): Likewise.
5309
4fed520b
KR
53102020-03-14 Kamil Rytarowski <n54@gmx.com>
5311
5312 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
5313 nbsd_nat_target instead of inf_ptrace_target.
5314 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5315 nbsd_nat_target.
5316
2190cf06
KR
53172020-03-14 Kamil Rytarowski <n54@gmx.com>
5318
5319 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
5320 register_t.
5321
75c56d3d
KR
53222020-03-14 Kamil Rytarowski <n54@gmx.com>
5323
5324 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
5325 it to the ptrace call.
5326 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
5327 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
5328 * arm-nbsd-nat.c (store_register): Likewise.
5329 * arm-nbsd-nat.c (store_regs): Likewise.
5330 * arm-nbsd-nat.c (store_fp_register): Likewise.
5331 * arm-nbsd-nat.c (store_fp_regs): Likewise.
5332
6018d381
KR
53332020-03-14 Kamil Rytarowski <n54@gmx.com>
5334
5335 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
5336 nbsd_nat_target instead of inf_ptrace_target.
5337 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5338 nbsd_nat_target.
5339
013f99f0
KR
53402020-03-14 Kamil Rytarowski <n54@gmx.com>
5341
5342 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
5343 it to the ptrace call.
5344 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
5345
12753073
KR
53462020-03-14 Kamil Rytarowski <n54@gmx.com>
5347
6227b330
KR
5348 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
5349 it to the ptrace call.
5350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
5351
53522020-03-14 Kamil Rytarowski <n54@gmx.com>
5353
5354 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
5355 gdb_byte *.
12753073
KR
5356 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
5357
d5be5fa4
KR
53582020-03-14 Kamil Rytarowski <n54@gmx.com>
5359
5360 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
5361 instead of inf_ptrace_target.
5362 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5363 nbsd_nat_target.
5364
8110f842
KR
53652020-03-14 Kamil Rytarowski <n54@gmx.com>
5366
5367 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5368 register_t.
5369
52feded7
KR
53702020-03-14 Kamil Rytarowski <n54@gmx.com>
5371
5372 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5373 register_t.
5374
25567eee
KR
53752020-03-14 Kamil Rytarowski <n54@gmx.com>
5376
5377 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
5378 register_t.
5379
426a9c18
TT
53802020-03-13 Tom Tromey <tom@tromey.com>
5381
5382 * value.h (val_print): Don't declare.
5383 * valprint.h (val_print_array_elements)
5384 (val_print_scalar_formatted, generic_val_print): Don't declare.
5385 * valprint.c (generic_val_print_array): Take a struct value.
5386 (generic_val_print_ptr, generic_val_print_memberptr)
5387 (generic_val_print_bool, generic_val_print_int)
5388 (generic_val_print_char, generic_val_print_complex)
5389 (generic_val_print): Remove.
5390 (generic_value_print): Update.
5391 (do_val_print): Remove unused parameters. Don't call
5392 la_val_print.
5393 (val_print): Remove.
5394 (common_val_print): Update. Don't call value_check_printable.
5395 (val_print_scalar_formatted, val_print_array_elements): Remove.
5396 * rust-lang.c (rust_val_print): Remove.
5397 (rust_language_defn): Update.
5398 * p-valprint.c (pascal_val_print): Remove.
5399 (pascal_value_print_inner): Update.
5400 (pascal_object_print_val_fields, pascal_object_print_val):
5401 Remove.
5402 (pascal_object_print_static_field): Update.
5403 * p-lang.h (pascal_val_print): Don't declare.
5404 * p-lang.c (pascal_language_defn): Update.
5405 * opencl-lang.c (opencl_language_defn): Update.
5406 * objc-lang.c (objc_language_defn): Update.
5407 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
5408 * m2-lang.h (m2_val_print): Don't declare.
5409 * m2-lang.c (m2_language_defn): Update.
5410 * language.h (struct language_defn) <la_val_print>: Remove.
5411 * language.c (unk_lang_value_print_inner): Rename. Change
5412 argument types.
5413 (unknown_language_defn, auto_language_defn): Update.
5414 * go-valprint.c (go_val_print): Remove.
5415 * go-lang.h (go_val_print): Don't declare.
5416 * go-lang.c (go_language_defn): Update.
5417 * f-valprint.c (f_val_print): Remove.
5418 * f-lang.h (f_value_print): Don't declare.
5419 * f-lang.c (f_language_defn): Update.
5420 * d-valprint.c (d_val_print): Remove.
5421 * d-lang.h (d_value_print): Don't declare.
5422 * d-lang.c (d_language_defn): Update.
5423 * cp-valprint.c (cp_print_value_fields)
5424 (cp_print_value_fields_rtti, cp_print_value): Remove.
5425 (cp_print_static_field): Update.
5426 * c-valprint.c (c_val_print_array, c_val_print_ptr)
5427 (c_val_print_struct, c_val_print_union, c_val_print_int)
5428 (c_val_print_memberptr, c_val_print): Remove.
5429 * c-lang.h (c_val_print_array, cp_print_value_fields)
5430 (cp_print_value_fields_rtti): Don't declare.
5431 * c-lang.c (c_language_defn, cplus_language_defn)
5432 (asm_language_defn, minimal_language_defn): Update.
5433 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
5434 (ada_val_print_enum): Take a struct value.
5435 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
5436 (ada_val_print): Remove.
5437 (ada_value_print_1): Update.
5438 (printable_val_type): Remove.
5439 * ada-lang.h (ada_val_print): Don't declare.
5440 * ada-lang.c (ada_language_defn): Update.
5441
42331a1e
TT
54422020-03-13 Tom Tromey <tom@tromey.com>
5443
5444 * valprint.c (do_val_print): Update.
5445 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
5446 a struct value.
5447 (value_to_value_object_no_release): Declare.
5448 * python/py-value.c (value_to_value_object_no_release): New
5449 function.
5450 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
5451 struct value.
5452 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
5453 function.
5454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
5455 a struct value.
5456 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
5457 Declare.
5458 (gdbscm_apply_val_pretty_printer): Take a struct value.
5459 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
5460 value.
5461 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
5462 value.
5463 * extension-priv.h (struct extension_language_ops)
5464 <apply_val_pretty_printer>: Take a struct value.
5465 * cp-valprint.c (cp_print_value): Create a struct value.
5466 (cp_print_value): Update.
5467
3a916a97
TT
54682020-03-13 Tom Tromey <tom@tromey.com>
5469
5470 * ada-valprint.c (print_field_values): Call common_val_print.
5471
b59eac37
TT
54722020-03-13 Tom Tromey <tom@tromey.com>
5473
5474 * ada-valprint.c (val_print_packed_array_elements): Remove
5475 bitoffset and val parameters. Call common_val_print.
5476 (ada_val_print_string): Remove offset, address, and original_value
5477 parameters.
5478 (ada_val_print_array): Update.
5479 (ada_value_print_array): New function.
5480 (ada_value_print_1): Call it.
5481
03371129
TT
54822020-03-13 Tom Tromey <tom@tromey.com>
5483
5484 * ada-valprint.c (ada_value_print): Use common_val_print.
5485
2e088f8b
TT
54862020-03-13 Tom Tromey <tom@tromey.com>
5487
5488 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
5489
39ef85a8
TT
54902020-03-13 Tom Tromey <tom@tromey.com>
5491
5492 * ada-valprint.c (ada_value_print_num): New function.
5493 (ada_value_print_1): Use it.
5494
b9fa6e07
TT
54952020-03-13 Tom Tromey <tom@tromey.com>
5496
5497 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
5498
416595d6
TT
54992020-03-13 Tom Tromey <tom@tromey.com>
5500
5501 * ada-valprint.c (ada_value_print_ptr): New function.
5502 (ada_value_print_1): Use it.
5503
5b5e15ec
TT
55042020-03-13 Tom Tromey <tom@tromey.com>
5505
5506 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
5507 call common_val_print.
5508 (ada_val_print_1): Update.
5509 (ada_value_print_1): New function.
5510 (ada_value_print_inner): Rewrite.
5511
fbf54e75
TT
55122020-03-13 Tom Tromey <tom@tromey.com>
5513
5514 * cp-valprint.c (cp_print_value_fields): Update.
5515 (cp_print_value): New function.
5516
64b653ca
TT
55172020-03-13 Tom Tromey <tom@tromey.com>
5518
5519 * m2-valprint.c (m2_value_print_inner): Use
5520 cp_print_value_fields.
5521 * cp-valprint.c (cp_print_value_fields): New function.
5522 * c-valprint.c (c_value_print_struct): New function.
5523 (c_value_print_inner): Use c_value_print_struct.
5524 * c-lang.h (cp_print_value_fields): Declare.
5525
6999f067
TT
55262020-03-13 Tom Tromey <tom@tromey.com>
5527
5528 * c-valprint.c (c_value_print_array): New function.
5529 (c_value_print_inner): Use it.
5530
ce80b8bd
TT
55312020-03-13 Tom Tromey <tom@tromey.com>
5532
5533 * c-valprint.c (c_value_print_memberptr): New function.
5534 (c_value_print_inner): Use it.
5535
2faac269
TT
55362020-03-13 Tom Tromey <tom@tromey.com>
5537
5538 * c-valprint.c (c_value_print_int): New function.
5539 (c_value_print_inner): Use it.
5540
da3e2c29
TT
55412020-03-13 Tom Tromey <tom@tromey.com>
5542
5543 * c-valprint.c (c_value_print_ptr): New function.
5544 (c_value_print_inner): Use it.
5545
50836231
TT
55462020-03-13 Tom Tromey <tom@tromey.com>
5547
5548 * c-valprint.c (c_value_print_inner): Rewrite.
5549
4f412b6e
TT
55502020-03-13 Tom Tromey <tom@tromey.com>
5551
5552 * valprint.c (generic_value_print_complex): New function.
5553 (generic_value_print): Use it.
5554
f5354008
TT
55552020-03-13 Tom Tromey <tom@tromey.com>
5556
5557 * valprint.c (generic_val_print_float): Don't call
5558 val_print_scalar_formatted.
5559 (generic_val_print, generic_value_print): Update.
5560
3eec3b05
TT
55612020-03-13 Tom Tromey <tom@tromey.com>
5562
5563 * valprint.c (generic_value_print_char): New function
5564 (generic_value_print): Use it.
5565
fdddfccb
TT
55662020-03-13 Tom Tromey <tom@tromey.com>
5567
5568 * valprint.c (generic_value_print_int): New function.
5569 (generic_value_print): Use it.
5570
6dde7521
TT
55712020-03-13 Tom Tromey <tom@tromey.com>
5572
5573 * valprint.c (generic_value_print_bool): New function.
5574 (generic_value_print): Use it.
5575
4112d2e6
TT
55762020-03-13 Tom Tromey <tom@tromey.com>
5577
5578 * valprint.c (generic_val_print_func): Simplify.
5579 (generic_val_print, generic_value_print): Update.
5580
65786af6
TT
55812020-03-13 Tom Tromey <tom@tromey.com>
5582
5583 * valprint.c (generic_val_print_flags): Remove.
5584 (generic_val_print, generic_value_print): Update.
5585 (val_print_type_code_flags): Add original_value parameter.
5586
40f3ce18
TT
55872020-03-13 Tom Tromey <tom@tromey.com>
5588
5589 * valprint.c (generic_val_print): Update.
5590 (generic_value_print): Update.
5591 * valprint.c (generic_val_print_enum): Don't call
5592 val_print_scalar_formatted.
5593
2a5b130b
TT
55942020-03-13 Tom Tromey <tom@tromey.com>
5595
5596 * valprint.c (generic_value_print): Call generic_value_print_ptr.
5597 * valprint.c (generic_value_print_ptr): New function.
5598
abc66ce9
TT
55992020-03-13 Tom Tromey <tom@tromey.com>
5600
5601 * valprint.c (generic_value_print): Rewrite.
5602
07a32858
TT
56032020-03-13 Tom Tromey <tom@tromey.com>
5604
5605 * p-valprint.c (pascal_object_print_value_fields)
5606 (pascal_object_print_value): New functions.
5607
64d64d3a
TT
56082020-03-13 Tom Tromey <tom@tromey.com>
5609
5610 * p-valprint.c (pascal_value_print_inner): Rewrite.
5611
6a95a1f5
TT
56122020-03-13 Tom Tromey <tom@tromey.com>
5613
5614 * f-valprint.c (f_value_print_innner): Rewrite.
5615
59fcdac6
TT
56162020-03-13 Tom Tromey <tom@tromey.com>
5617
5618 * m2-valprint.c (m2_print_unbounded_array): New overload.
5619 (m2_print_unbounded_array): Update.
5620 (m2_print_array_contents): Take a struct value.
5621 (m2_value_print_inner): Rewrite.
5622
d133c3e1
TT
56232020-03-13 Tom Tromey <tom@tromey.com>
5624
5625 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
5626 (d_value_print_inner): New function.
5627 * d-lang.h (d_value_print_inner): Declare.
5628 * d-lang.c (d_language_defn): Use d_value_print_inner.
5629
23b0f06b
TT
56302020-03-13 Tom Tromey <tom@tromey.com>
5631
5632 * go-valprint.c (go_value_print_inner): New function.
5633 * go-lang.h (go_value_print_inner): Declare.
5634 * go-lang.c (go_language_defn): Use go_value_print_inner.
5635
5f56f7cb
TT
56362020-03-13 Tom Tromey <tom@tromey.com>
5637
5638 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
5639 API.
5640 (rust_val_print): Rewrite.
5641 (rust_value_print_inner): New function, from rust_val_print.
5642 (rust_language_defn): Use rust_value_print_inner.
5643
26792ee0
TT
56442020-03-13 Tom Tromey <tom@tromey.com>
5645
5646 * ada-valprint.c (ada_value_print_inner): New function.
5647 * ada-lang.h (ada_value_print_inner): Declare.
5648 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
5649
24051bbe
TT
56502020-03-13 Tom Tromey <tom@tromey.com>
5651
5652 * f-valprint.c (f_value_print_innner): New function.
5653 * f-lang.h (f_value_print_innner): Declare.
5654 * f-lang.c (f_language_defn): Use f_value_print_innner.
5655
c0941be6
TT
56562020-03-13 Tom Tromey <tom@tromey.com>
5657
5658 * p-valprint.c (pascal_value_print_inner): New function.
5659 * p-lang.h (pascal_value_print_inner): Declare.
5660 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
5661
62c4663d
TT
56622020-03-13 Tom Tromey <tom@tromey.com>
5663
5664 * m2-valprint.c (m2_value_print_inner): New function.
5665 * m2-lang.h (m2_value_print_inner): Declare.
5666 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
5667
62182190
TT
56682020-03-13 Tom Tromey <tom@tromey.com>
5669
5670 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
5671 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
5672 * c-valprint.c (c_value_print_inner): New function.
5673 * c-lang.h (c_value_print_inner): Declare.
5674 * c-lang.c (c_language_defn, cplus_language_defn)
5675 (asm_language_defn, minimal_language_defn): Use
5676 c_value_print_inner.
5677
1e592a8a
TT
56782020-03-13 Tom Tromey <tom@tromey.com>
5679
5680 * p-valprint.c (pascal_object_print_value_fields): Now static.
5681 * p-lang.h (pascal_object_print_value_fields): Don't declare.
5682
7fe471e9
TT
56832020-03-13 Tom Tromey <tom@tromey.com>
5684
5685 * c-valprint.c (c_val_print_array): Simplify.
5686
d121c6ce
TT
56872020-03-13 Tom Tromey <tom@tromey.com>
5688
5689 * valprint.c (value_print_array_elements): New function.
5690 * valprint.h (value_print_array_elements): Declare.
5691
4dba70ee
TT
56922020-03-13 Tom Tromey <tom@tromey.com>
5693
5694 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
5695 * mips-tdep.c (mips_print_register): Use
5696 value_print_scalar_formatted.
5697
4f9ae810
TT
56982020-03-13 Tom Tromey <tom@tromey.com>
5699
5700 * valprint.h (value_print_scalar_formatted): Declare.
5701 * valprint.c (value_print_scalar_formatted): New function.
5702
156bfec9
TT
57032020-03-13 Tom Tromey <tom@tromey.com>
5704
5705 * valprint.h (generic_value_print): Declare.
5706 * valprint.c (generic_value_print): New function.
5707
2b4e573d
TT
57082020-03-13 Tom Tromey <tom@tromey.com>
5709
5710 * valprint.c (do_val_print): Call la_value_print_inner, if
5711 available.
5712 * rust-lang.c (rust_language_defn): Update.
5713 * p-lang.c (pascal_language_defn): Update.
5714 * opencl-lang.c (opencl_language_defn): Update.
5715 * objc-lang.c (objc_language_defn): Update.
5716 * m2-lang.c (m2_language_defn): Update.
5717 * language.h (struct language_defn) <la_value_print_inner>: New
5718 member.
5719 * language.c (unknown_language_defn, auto_language_defn): Update.
5720 * go-lang.c (go_language_defn): Update.
5721 * f-lang.c (f_language_defn): Update.
5722 * d-lang.c (d_language_defn): Update.
5723 * c-lang.c (c_language_defn, cplus_language_defn)
5724 (asm_language_defn, minimal_language_defn): Update.
5725 * ada-lang.c (ada_language_defn): Update.
5726
a1f6a07c
TT
57272020-03-13 Tom Tromey <tom@tromey.com>
5728
5729 * c-valprint.c (c_value_print): Use common_val_print.
5730
410cf315
TT
57312020-03-13 Tom Tromey <tom@tromey.com>
5732
5733 * cp-valprint.c (cp_print_static_field): Use common_val_print.
5734
72a45c93
TT
57352020-03-13 Tom Tromey <tom@tromey.com>
5736
5737 * f-valprint.c (f77_print_array_1, f_val_print): Use
5738 common_val_print.
5739
040f66bd
TT
57402020-03-13 Tom Tromey <tom@tromey.com>
5741
5742 * riscv-tdep.c (riscv_print_one_register_info): Use
5743 common_val_print.
5744
a6e05a6c
TT
57452020-03-13 Tom Tromey <tom@tromey.com>
5746
5747 * mi/mi-main.c (output_register): Use common_val_print.
5748
3444c526
TT
57492020-03-13 Tom Tromey <tom@tromey.com>
5750
5751 * infcmd.c (default_print_one_register_info): Use
5752 common_val_print.
5753
c2a44efe
TT
57542020-03-13 Tom Tromey <tom@tromey.com>
5755
5756 * valprint.h (common_val_print_checked): Declare.
5757 * valprint.c (common_val_print_checked): New function.
5758 * stack.c (print_frame_arg): Use common_val_print_checked.
5759
b0c26e99
TT
57602020-03-13 Tom Tromey <tom@tromey.com>
5761
5762 * valprint.c (do_val_print): New function, from val_print.
5763 (val_print): Use do_val_print.
5764 (common_val_print): Use do_val_print.
5765
ce3acbe9
TT
57662020-03-13 Tom Tromey <tom@tromey.com>
5767
5768 * valprint.c (value_print): Use scoped_value_mark.
5769
96c7f873
TV
57702020-03-13 Tom de Vries <tdevries@suse.de>
5771
5772 PR symtab/25646
5773 * psymtab.c (partial_symtab::partial_symtab): Don't set
5774 globals_offset and statics_offset. Push element onto
5775 current_global_psymbols and current_static_psymbols stacks.
5776 (concat): New function.
5777 (end_psymtab_common): Set globals_offset and statics_offset. Pop
5778 element from current_global_psymbols and current_static_psymbols
5779 stacks. Concat popped elements to global_psymbols and
5780 static_symbols.
5781 (add_psymbol_to_list): Use current_global_psymbols and
5782 current_static_psymbols stacks.
5783 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
5784 current_static_psymbols fields.
5785
6ba0a321
CB
57862020-03-12 Christian Biesinger <cbiesinger@google.com>
5787
5788 * corelow.c (sniff_core_bfd): Remove.
5789 (class core_target) <m_core_vec>: Remove.
5790 (core_target::core_target): Update.
5791 (core_file_fns): Remove.
5792 (deprecated_add_core_fns): Remove.
5793 (default_core_sniffer): Remove.
5794 (sniff_core_bfd): Remove.
5795 (default_check_format): Remove.
5796 (gdb_check_format): Remove.
5797 (core_target_open): Update.
5798 (core_target::get_core_register_section): Update.
5799 (get_core_registers_cb): Update.
5800 (core_target::fetch_registers): Update.
5801 * gdbcore.h (struct core_fns): Remove.
5802 (deprecated_add_core_fns): Remove.
5803 (default_core_sniffer): Remove.
5804 (default_check_format): Remove.
5805
227031b2
TT
58062020-03-12 Tom Tromey <tom@tromey.com>
5807
5808 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
5809 CORE_ADDR.
5810 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
5811
53807e9f
TT
58122020-03-12 Tom Tromey <tom@tromey.com>
5813
5814 * remote.c (remote_target::download_tracepoint)
5815 (remote_target::enable_tracepoint)
5816 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
5817 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
5818 sprintf_vma.
5819
64f25102
TT
58202020-03-12 Tom Tromey <tom@tromey.com>
5821
5822 * symfile-mem.c: Update CORE_ADDR size assert.
5823
272cd5a3
SM
58242020-03-12 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * selftest.m4: Move to gdbsupport/.
5827 * acinclude.m4: Update path to selftest.m4.
5828
74cd3f9d
SM
58292020-03-12 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
5832 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
5833 gdbarch-selfselftests.c and selftest-arch.c.
5834 (SUBDIR_UNITTESTS_OBS): Rename to...
5835 (SELFTESTS_OBS): ... this.
5836 (COMMON_SFILES): Remove disasm-selftests.c and
5837 gdbarch-selftests.c.
5838 * configure.ac: Don't add selftest-arch.{c,o} to
5839 CONFIG_{SRCS,OBS}.
5840 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
5841 preprocessor conditions.
5842
db6878ac
SM
58432020-03-12 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * configure.ac: Don't source bfd/development.sh.
5846 * selftest.m4: Modify comment.
5847 * configure: Re-generate.
5848
4d696a5c
SM
58492020-03-12 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
5852 not "true" or "false".
5853 * configure: Re-generate.
5854
8dd8e1c7
CB
58552020-03-12 Christian Biesinger <cbiesinger@google.com>
5856
5857 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
5858 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
5859 renamed to arm_nbsd_supply_gregset.
5860 (fetch_register): Update to call arm_nbsd_supply_gregset.
5861 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
5862 (arm_netbsd_nat_target::fetch_registers): Update.
5863 (fetch_elfcore_registers): Removed.
5864 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
5865 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
5866 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
5867 not require NetBSD system headers.
5868 (arm_nbsd_regset): New struct.
5869 (arm_nbsd_iterate_over_regset_sections): New function.
5870 (arm_netbsd_init_abi_common): Updated to call
5871 set_gdbarch_iterate_over_regset_sections.
5872 * arm-nbsd-tdep.h: New file.
5873
dd69bf7a
KB
58742020-03-11 Kevin Buettner <kevinb@redhat.com>
5875
5876 * symtab.c (find_pc_sect_line): Add check which prevents infinite
5877 recursion.
5878
a0761e34
SM
58792020-03-11 Simon Marchi <simon.marchi@efficios.com>
5880
5881 * configure: Re-generate.
5882
e7a82140
TT
58832020-03-11 Tom Tromey <tromey@adacore.com>
5884
5885 * ada-typeprint.c (print_choices): Fix comment.
5886
dcc050c8
AB
58872020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
5890 previous item in the list, when the list has no items.
5891
1c33af77
TV
58922020-03-11 Tom de Vries <tdevries@suse.de>
5893
5894 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
5895 PROP_LOCLIST handling code.
5896
8c95582d
AB
58972020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
5898
5899 * buildsym-legacy.c (record_line): Pass extra parameter to
5900 record_line.
5901 * buildsym.c (buildsym_compunit::record_line): Take an extra
5902 parameter, reduce duplication in the line table, and record the
5903 is_stmt flag in the line table.
5904 * buildsym.h (buildsym_compunit::record_line): Add extra
5905 parameter.
5906 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
5907 non-statement lines.
5908 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
5909 this to the symtab builder.
5910 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
5911 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
5912 through to dwarf_record_line_1.
5913 * infrun.c (process_event_stop_test): When stepping, don't stop at
5914 a non-statement instruction, and only refresh the step info when
5915 we land in the middle of a line's range. Also add an extra
5916 comment.
5917 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
5918 field.
5919 * record-btrace.c (btrace_find_line_range): Only record lines
5920 marked as is-statement.
5921 * stack.c (frame_show_address): Show the frame address if we are
5922 in a non-statement sal.
5923 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
5924 (maintenance_print_one_line_table): Print a header for the is_stmt
5925 column, and include is_stmt information in the output.
5926 * symtab.c (find_pc_sect_line): Find lines marked as statements in
5927 preference to non-statements.
5928 (find_pcs_for_symtab_line): Prefer is-statement entries.
5929 (find_line_common): Likewise.
5930 * symtab.h (struct linetable_entry): Add is_stmt field.
5931 (struct symtab_and_line): Likewise.
5932 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
5933 arranging the line table.
5934
e4003a34
TV
59352020-03-07 Tom de Vries <tdevries@suse.de>
5936
5937 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
5938 DIE.
5939
e8932576
TT
59402020-03-07 Tom Tromey <tom@tromey.com>
5941
5942 * valops.c (value_literal_complex): Remove obsolete comment.
5943 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
5944 comment.
5945
29734269
SM
59462020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * infrun.h: Forward-declare thread_info.
5949 (set_step_info): Add thread_info parameter, add doc.
5950 * infrun.c (set_step_info): Add thread_info parameter, move doc
5951 to header.
5952 * infrun.c (process_event_stop_test): Pass thread to
5953 set_step_info call.
5954 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
5955 set_step_info.
5956 (prepare_one_step): Add thread_info parameter, pass it to
5957 set_step_frame and prepare_one_step (recursive) call.
5958 (step_1): Pass thread to prepare_one_step call.
5959 (step_command_fsm::should_stop): Pass thread to
5960 prepare_one_step.
5961 (until_next_fsm): Pass thread to set_step_frame call.
5962 (finish_command): Pass thread to set_step_info call.
5963
b7d64b29
HD
59642020-03-06 Hannes Domani <ssbssa@yahoo.de>
5965
5966 * windows-tdep.c (windows_solib_create_inferior_hook):
5967 Check if inferior is running.
5968
09f2921c
TV
59692020-03-06 Tom de Vries <tdevries@suse.de>
5970
5971 * NEWS: Fix "the the".
5972 * ctfread.c: Same.
5973
fd760e79
TV
59742020-03-06 Tom de Vries <tdevries@suse.de>
5975
5976 * psymtab.c (psymtab_to_symtab): Don't print "done.".
5977
20ea4a60
AB
59782020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5979
5980 * .dir-locals.el: Add a comment referencing the other copies of
5981 this file.
5982
0afbabf0
JB
59832020-03-05 John Baldwin <jhb@FreeBSD.org>
5984
5985 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
5986 psargs.
5987
842806cb
TBA
59882020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5989
5990 * .gitattributes: New file.
5991
be1e3d3e
TT
59922020-03-04 Tom Tromey <tom@tromey.com>
5993
5994 * symmisc.c (print_symbol_bcache_statistics)
5995 (print_objfile_statistics): Update.
5996 * symfile.c (allocate_symtab): Use intern.
5997 * psymtab.c (partial_symtab::partial_symtab): Use intern.
5998 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5999 macro_cache>: Remove.
6000 <string_cache>: New member.
6001 (struct objfile) <intern>: New methods.
6002 * elfread.c (elf_symtab_read): Use intern.
6003 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6004 (dwarf2_compute_name, dwarf2_physname)
6005 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6006 names.
6007 (guess_partial_die_structure_name): Update.
6008 (partial_die_info::fixup): Intern name.
6009 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6010 name.
6011 (dwarf2_name): Intern name. Update.
6012 * buildsym.c (buildsym_compunit::get_macro_table): Use
6013 string_cache.
6014
4e7625fd
TT
60152020-03-04 Tom Tromey <tom@tromey.com>
6016
6017 * jit.c (bfd_open_from_target_memory): Make "target" const.
6018 * corefile.c (gnutarget): Now const.
6019 * gdbcore.h (gnutarget): Now const.
6020
46f9f931
HD
60212020-03-04 Hannes Domani <ssbssa@yahoo.de>
6022
6023 * NEWS: Mention support for WOW64 processes.
6024 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6025 (amd64_windows_segment_register_p): Remove static.
6026 (_initialize_amd64_windows_nat): Update.
6027 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6028 * i386-windows-nat.c (context_offset): Update.
6029 (i386_mappings): Rename and remove static.
6030 (i386_windows_segment_register_p): Remove static.
6031 (_initialize_i386_windows_nat): Update.
6032 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6033 (STATUS_WX86_SINGLE_STEP): New macro.
6034 (EnumProcessModulesEx): New macro.
6035 (Wow64SuspendThread): New macro.
6036 (Wow64GetThreadContext): New macro.
6037 (Wow64SetThreadContext): New macro.
6038 (Wow64GetThreadSelectorEntry): New macro.
6039 (windows_set_context_register_offsets): Add static.
6040 (windows_set_segment_register_p): Likewise.
6041 (windows_add_thread): Adapt for WOW64 processes.
6042 (windows_fetch_one_register): Likewise.
6043 (windows_nat_target::fetch_registers): Likewise.
6044 (windows_store_one_register): Likewise.
6045 (display_selector): Likewise.
6046 (display_selectors): Likewise.
6047 (handle_exception): Likewise.
6048 (windows_continue): Likewise.
6049 (windows_nat_target::resume): Likewise.
6050 (windows_add_all_dlls): Likewise.
6051 (do_initial_windows_stuff): Likewise.
6052 (windows_nat_target::attach): Likewise.
6053 (windows_get_exec_module_filename): Likewise.
6054 (windows_nat_target::create_inferior): Likewise.
6055 (windows_xfer_siginfo): Likewise.
6056 (_initialize_loadable): Initialize Wow64SuspendThread,
6057 Wow64GetThreadContext, Wow64SetThreadContext,
6058 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6059 * windows-nat.h (windows_set_context_register_offsets):
6060 Remove declaration.
6061 (windows_set_segment_register_p): Likewise.
6062 (i386_windows_segment_register_p): Add declaration.
6063 (amd64_windows_segment_register_p): Likewise.
6064
440cf44e
LM
60652020-03-04 Luis Machado <luis.machado@linaro.org>
6066
6067 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6068 in "info registers" for AArch64/ARM.
6069
6070 The change caused "info registers" to not print GPR's.
6071
6072 gdb/ChangeLog:
6073
6074 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6075
6076 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6077 when reg->group is empty and reggroup is not.
6078
1009d92f
TT
60792020-03-03 Tom Tromey <tromey@adacore.com>
6080
6081 * dwarf2/frame.c (struct dwarf2_frame_cache)
6082 <checked_tailcall_bottom, entry_cfa_sp_offset,
6083 entry_cfa_sp_offset_p>: Remove members.
6084 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6085 (dwarf2_frame_prev_register): Don't call
6086 dwarf2_tailcall_sniffer_first.
6087 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6088 * frame-unwind.c (add_unwinder): New fuction.
6089 (frame_unwind_init): Use it. Add tailcall unwinder.
6090
5e5d66b6
AB
60912020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6092 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6093
6094 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
6095 value should be printed as true.
6096
584cf46d
HD
60972020-03-03 Hannes Domani <ssbssa@yahoo.de>
6098
6099 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
6100 (windows_init_abi): Set and use windows_so_ops.
6101
7b973adc
SDJ
61022020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
6103
6104 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
6105 when verifying if dealing with a convenience variable.
6106
bb7b70ab
LM
61072020-03-03 Luis Machado <luis.machado@linaro.org>
6108
6109 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
6110
9822cb57
SM
61112020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * infrun.c (gdbarch_supports_displaced_stepping): New.
6114 (use_displaced_stepping): Break up conditions in smaller pieces.
6115 Use gdbarch_supports_displaced_stepping.
6116 (displaced_step_prepare_throw): Use
6117 gdbarch_supports_displaced_stepping.
6118
63e163f2
AB
61192020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * NEWS: Mention new behaviour of the history filename.
6122 * top.c (write_history_p): Add comment.
6123 (show_write_history_p): Add header comment, give a different
6124 message when history writing is on, but the history filename is
6125 empty.
6126 (history_filename): Add comment.
6127 (history_filename_empty): New function.
6128 (show_history_filename): Add header comment, give a different
6129 message when the filename is empty.
6130 (init_history): Compare history_filename against nullptr, and only
6131 read history if the filename is not empty.
6132 (set_history_filename): Add header comment, and only make
6133 non-empty filenames absolute.
6134 (init_main): Make the filename argument to 'set history filename'
6135 optional.
6136
81b86b97
CB
61372020-03-02 Christian Biesinger <cbiesinger@google.com>
6138
6139 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
6140 (arm_supply_vfpregset): ...this, and update to use VFP registers.
6141 (fetch_fp_register): Update.
6142 (fetch_fp_regs): Update.
6143 (store_fp_register): Update.
6144 (store_fp_regs): Update.
6145 (arm_netbsd_nat_target::read_description): New function.
6146 (fetch_elfcore_registers): Update.
6147
24ed6739
AB
61482020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
6151 general_thread if the stop reply is missing a thread-id.
6152 (remote_target::process_stop_reply): Use the first non-exited
6153 thread if the target didn't pass a thread-id.
6154 * infrun.c (do_target_wait): Move call to
6155 switch_to_inferior_no_thread to ....
6156 (do_target_wait_1): ... here.
6157
a84bb2a0
JT
61582020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
6159
6160 * debuginfod-support.c: Include defs.h first.
6161
658dadf0
TV
61622020-02-28 Tom de Vries <tdevries@suse.de>
6163
6164 * symfile.c (set_initial_language): Use default language for lookup.
6165
4ebe4877
SM
61662020-02-28 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
6169 reader variable, pass `this` to read_cutu_die_from_dwo.
6170
e5da1139
AM
61712020-02-27 Aaron Merey <amerey@redhat.com>
6172
6173 * source.c (open_source_file): Check for nullptr when computing
6174 srcpath.
6175
317f7127
TT
61762020-02-27 Tom Tromey <tromey@adacore.com>
6177
6178 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
6179 member.
6180 (dwarf2_add_field): Don't update nfields.
6181 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
6182
3104d9ee
AB
61832020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6184
6185 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
6186 abs.
6187
b83470bf
TT
61882020-02-26 Tom Tromey <tom@tromey.com>
6189
6190 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
6191 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
6192 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
6193 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
6194 per_cu_data.
6195
edfe0a0c
TT
61962020-02-26 Tom Tromey <tom@tromey.com>
6197
6198 * dwarf2/index-write.c (psym_index_map): Change type.
6199 (add_address_entry_worker, write_one_signatured_type)
6200 (recursively_count_psymbols, recursively_write_psymbols)
6201 (class debug_names, psyms_seen_size, write_gdbindex)
6202 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
6203
0d79cdc4
AM
62042020-02-26 Aaron Merey <amerey@redhat.com>
6205
6206 * Makefile.in: Handle optional debuginfod support.
6207 * NEWS: Update.
6208 * README: Add --with-debuginfod summary.
6209 * config.in: Regenerate.
6210 * configure: Regenerate.
6211 * configure.ac: Handle optional debuginfod support.
6212 * debuginfod-support.c: debuginfod helper functions.
6213 * debuginfod-support.h: Ditto.
6214 * doc/gdb.texinfo: Add --with-debuginfod to configure options
6215 summary.
6216 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
6217 when a dwz file cannot be found.
6218 * elfread.c (elf_symfile_read): Query debuginfod servers when a
6219 debuginfo file cannot be found.
6220 * source.c (open_source_file): Query debuginfod servers when a
6221 source file cannot be found.
6222 * top.c (print_gdb_configuration): Include
6223 --{with,without}-debuginfod in the output.
6224
b65ce565
JG
62252020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6226
6227 * thread.c (thr_try_catch_cmd): Print thread name.
6228
d4c9a4f8
SM
62292020-02-26 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
6232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6233 dwarf2_fetch_die_type_sect_off): Move to...
6234 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6235 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6236 dwarf2_fetch_die_type_sect_off): ... here.
6237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6239 dwarf2_fetch_die_type_sect_off): Move doc to header file.
6240
0dce4280
TV
62412020-02-26 Tom de Vries <tdevries@suse.de>
6242
6243 PR gdb/25603
6244 * symfile.c (set_initial_language): Exit-early if
6245 language_mode == language_mode_manual.
6246
450a1bfc
SM
62472020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
6250 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
6251 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
6252
9e80cfa1
AB
62532020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * gdbtypes.c (create_array_type_with_stride): Handle negative
6256 array strides.
6257 * valarith.c (value_subscripted_rvalue): Likewise.
6258
09624f1f
LM
62592020-02-25 Luis Machado <luis.machado@linaro.org>
6260
6261 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
6262
8cb5117c
SM
62632020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * loc.h (dwarf2_get_die_type): Move to...
6266 * read.h (dwarf2_get_die_type): ... here.
6267 * read.c (dwarf2_get_die_type): Move doc to header.
6268
c325c44e
JB
62692020-02-25 Joel Brobecker <brobecker@adacore.com>
6270
6271 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
6272 'gnulib/Makefile.in' to the list.
6273
4ac93832
TT
62742020-02-24 Tom Tromey <tom@tromey.com>
6275
6276 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
6277 Remove.
6278 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
6279 XOBNEWVEC.
6280
197400e8
TT
62812020-02-24 Tom Tromey <tom@tromey.com>
6282
6283 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
6284 New method.
6285 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
6286 (dw2_do_instantiate_symtab, dw2_get_file_names)
6287 (build_type_psymtab_dependencies, load_full_type_unit): Update.
6288
76935768
TT
62892020-02-24 Tom Tromey <tom@tromey.com>
6290
6291 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
6292 make_scoped_restore.
6293 (dwarf2_psymtab::read_symtab): Don't clear
6294 reading_partial_symbols.
6295
a88ef40d
TV
62962020-02-24 Tom de Vries <tdevries@suse.de>
6297
6298 PR gdb/25592
6299 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
6300
c9af6521
TV
63012020-02-24 Tom de Vries <tdevries@suse.de>
6302
6303 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
6304 commands layout next/prev/regs.
6305
5707a07a
TT
63062020-02-22 Tom Tromey <tom@tromey.com>
6307
6308 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
6309 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
6310
3b0fb49e
TT
63112020-02-22 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
6314
283be8bf
TT
63152020-02-22 Tom Tromey <tom@tromey.com>
6316
6317 * tui/tui-win.c (_initialize_tui_win): Add usage text.
6318 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
6319 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
6320 * tui/tui.c (_initialize_tui): Add usage text.
6321
ca793b96
TT
63222020-02-22 Tom Tromey <tom@tromey.com>
6323
6324 * tui/tui-win.c (tui_set_focus_command)
6325 (tui_set_win_height_command): Use error_no_arg.
6326 (_initialize_tui_win): Update help text.
6327 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
6328
432b5c40
TT
63292020-02-22 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
6332 * tui/tui-disasm.h (struct tui_disasm_window)
6333 <display_start_addr>: Declare.
6334 * tui/tui-source.h (struct tui_source_window)
6335 <display_start_addr>: Declare.
6336 * tui/tui-winsource.h (struct tui_source_window_base)
6337 <show_source_line, display_start_addr>: New methods.
6338 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
6339 Rename and move to protected section.
6340 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
6341 (tui_source_window_base::do_erase_source_content): Update.
6342 (tui_source_window_base::show_source_line): Now a method.
6343 (tui_source_window_base::show_source_content)
6344 (tui_source_window_base::tui_source_window_base)
6345 (tui_source_window_base::rerender)
6346 (tui_source_window_base::refill)
6347 (tui_source_window_base::do_scroll_horizontal)
6348 (tui_source_window_base::set_is_exec_point_at)
6349 (tui_source_window_base::update_breakpoint_info)
6350 (tui_source_window_base::update_exec_info): Update.
6351 * tui/tui-source.c (tui_source_window::set_contents)
6352 (tui_source_window::showing_source_p)
6353 (tui_source_window::do_scroll_vertical)
6354 (tui_source_window::location_matches_p)
6355 (tui_source_window::line_is_displayed): Update.
6356 (tui_source_window::display_start_addr): New method.
6357 * tui/tui-disasm.c (tui_disasm_window::set_contents)
6358 (tui_disasm_window::do_scroll_vertical)
6359 (tui_disasm_window::location_matches_p): Update.
6360 (tui_disasm_window::display_start_addr): New method.
6361
01b1af32
TT
63622020-02-22 Tom Tromey <tom@tromey.com>
6363
6364 * NEWS: Add entry for gdb.register_window_type.
6365 * tui/tui-layout.h (window_factory): New typedef.
6366 (tui_register_window): Declare.
6367 * tui/tui-layout.c (saved_tui_windows): New global.
6368 (tui_apply_current_layout): Use it.
6369 (tui_register_window): New function.
6370 * python/python.c (do_start_initialization): Call
6371 gdbpy_initialize_tui.
6372 (python_GdbMethods): Add "register_window_type" function.
6373 * python/python-internal.h (gdbpy_register_tui_window)
6374 (gdbpy_initialize_tui): Declare.
6375 * python/py-tui.c: New file.
6376 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
6377
fc96d20b
TT
63782020-02-22 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
6381
935c78c0
TT
63822020-02-22 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
6385 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
6386 * tui/tui-data.c (tui_set_win_with_focus): Remove.
6387 (tui_set_win_focus_to): Move from tui-win.c.
6388
0240c8f1
TT
63892020-02-22 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-layout.c (make_standard_window, get_locator_window): New
6392 functions.
6393 (known_window_types): New global.
6394 (tui_get_window_by_name): Reimplement.
6395 (initialize_known_windows): New function.
6396 (validate_window_name): Rewrite.
6397 (_initialize_tui_layout): Call initialize_known_windows.
6398
fdb01f0c
TT
63992020-02-22 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
6402 Remove constants.
6403 * tui/tui-winsource.h (struct tui_source_window_base)
6404 <tui_source_window_base>: Remove parameter.
6405 * tui/tui-winsource.c
6406 (tui_source_window_base::tui_source_window_base): Remove
6407 parameter.
6408 (tui_source_window_base::refill): Update.
6409 * tui/tui-stack.h (struct tui_locator_window)
6410 <tui_locator_window>: Update.
6411 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
6412 Default the constructor.
6413 * tui/tui-regs.h (struct tui_data_item_window)
6414 <tui_data_item_window>: Default the constructor.
6415 (struct tui_data_window) <tui_data_window>: Likewise.
6416 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
6417 Default the constructor.
6418 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
6419 Default the constructor.
6420 <type>: Remove.
6421 (struct tui_win_info) <tui_win_info>: Default the constructor.
6422 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
6423 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
6424 Default the constructor.
6425
865a5aec
TT
64262020-02-22 Tom Tromey <tom@tromey.com>
6427
6428 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
6429 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
6430 * tui/tui-win.c (tui_resize_all): Don't call
6431 tui_delete_invisible_windows.
6432 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
6433 done.
6434 (tui_set_layout): Update.
6435 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
6436 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
6437 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
6438
e098d18c
TT
64392020-02-22 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
6442 correctly.
6443
eb9c8874
TT
64442020-02-22 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
6447
7eed1a8e
TT
64482020-02-22 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-winsource.h (struct tui_source_window_iterator)
6451 <inner_iterator>: New etytypedef.
6452 <tui_source_window_iterator>: Take "end" parameter.
6453 <tui_source_window_iterator>: Take iterator.
6454 <operator*, advance>: Update.
6455 <m_iter>: Change type.
6456 <m_end>: New field.
6457 (struct tui_source_windows) <begin, end>: Update.
6458 * tui/tui-layout.c (tui_windows): New global.
6459 (tui_apply_current_layout): Clear tui_windows.
6460 (tui_layout_window::apply): Update tui_windows.
6461 * tui/tui-data.h (tui_windows): Declare.
6462 (all_tui_windows): Now inline function.
6463 (class tui_window_iterator, struct all_tui_windows): Remove.
6464
7c043ba6
TT
64652020-02-22 Tom Tromey <tom@tromey.com>
6466
6467 PR tui/17850:
6468 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
6469 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
6470 "height" argument.
6471 (class tui_layout_window) <get_sizes>: Likewise.
6472 (class tui_layout_split) <tui_layout_split>: Add "vertical"
6473 argument.
6474 <get_sizes>: Add "height" argument.
6475 <m_vertical>: New field.
6476 * tui/tui-layout.c (tui_layout_split::clone): Update.
6477 (tui_layout_split::get_sizes): Add "height" argument.
6478 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
6479 (tui_new_layout_command): Parse "-horizontal".
6480 (_initialize_tui_layout): Update help string.
6481 (tui_layout_split::specification): Add "-horizontal" when needed.
6482 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
6483 argument.
6484 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
6485 New methods.
6486
6bc56648
TT
64872020-02-22 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-layout.h (enum tui_adjust_result): New.
6490 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
6491 (class tui_layout_window) <adjust_size>: Return
6492 tui_adjust_result. Rewrite.
6493 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
6494 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
6495
c22fef7e
TT
64962020-02-22 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
6499 parameter and return types.
6500 (class tui_layout_base) <specification>: Add "depth".
6501 (class tui_layout_window) <specification>: Add "depth".
6502 (class tui_layout_split) <specification>: Add "depth".
6503 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
6504 and return types.
6505 (tui_new_layout_command): Parse sub-layouts.
6506 (_initialize_tui_layout): Update help string.
6507 (tui_layout_window::specification): Add "depth".
6508 (add_layout_command): Update.
6509
ee325b61
TT
65102020-02-22 Tom Tromey <tom@tromey.com>
6511
6512 * NEWS: Add "tui new-layout" item.
6513 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
6514 Add new-layout command to help text.
6515 (validate_window_name): New function.
6516 (tui_new_layout_command): New function.
6517 (_initialize_tui_layout): Register "new-layout".
6518 (tui_layout_window::specification): New method.
6519 (tui_layout_window::specification): New method.
6520 * tui/tui-layout.h (class tui_layout_base) <specification>: New
6521 method.
6522 (class tui_layout_window) <specification>: New method.
6523 (class tui_layout_split) <specification>: New method.
6524
416eb92d
TT
65252020-02-22 Tom Tromey <tom@tromey.com>
6526
6527 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
6528 * tui/tui-win.c (window_name_completer): Update comment.
6529 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
6530 Declare method.
6531 (class tui_layout_window) <replace_window>: Likewise.
6532 (class tui_layout_split) <replace_window>: Likewise.
6533 (tui_set_layout): Don't declare.
6534 (tui_set_initial_layout): Declare function.
6535 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
6536 (asm_regs_layout): New globals.
6537 (tui_current_layout, show_layout): Remove.
6538 (tui_set_layout, tui_add_win_to_layout): Rewrite.
6539 (find_layout, tui_apply_layout): New function.
6540 (layout_completer): Remove.
6541 (tui_next_layout): Reimplement.
6542 (tui_next_layout_command): New function.
6543 (tui_set_initial_layout, tui_prev_layout_command): New functions.
6544 (tui_regs_layout): Reimplement.
6545 (tui_regs_layout_command): New function.
6546 (extract_display_start_addr): Rewrite.
6547 (next_layout, prev_layout): Remove.
6548 (tui_layout_window::replace_window): New method.
6549 (tui_layout_split::replace_window): New method.
6550 (destroy_layout): New function.
6551 (layout_list): New global.
6552 (add_layout_command): New function.
6553 (initialize_layouts): Update.
6554 (tui_layout_command): New function.
6555 (_initialize_tui_layout): Install "layout" commands.
6556 * tui/tui-data.h (enum tui_layout_type): Remove.
6557 (tui_current_layout): Don't declare.
6558
0dbc2fc7
TT
65592020-02-22 Tom Tromey <tom@tromey.com>
6560
6561 * tui/tui-regs.c (tui_reg_layout): Remove.
6562 (tui_reg_command): Use tui_regs_layout.
6563 * tui/tui-layout.h (tui_reg_command): Declare.
6564 * tui/tui-layout.c (tui_reg_command): New function.
6565
5afe342e
TT
65662020-02-22 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui.c (tui_rl_delete_other_windows): Call
6569 tui_remove_some_windows.
6570 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
6571 Declare method.
6572 (class tui_layout_window) <remove_windows>: New method.
6573 (class tui_layout_split) <remove_windows>: Declare.
6574 (tui_remove_some_windows): Declare.
6575 * tui/tui-layout.c (tui_remove_some_windows): New function.
6576 (tui_layout_split::remove_windows): New method.
6577
427326a8
TT
65782020-02-22 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
6581 * tui/tui-layout.h (tui_next_layout): Declare.
6582 * tui/tui-layout.c (tui_next_layout): New function.
6583
3fe12b6d
TT
65842020-02-22 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
6587 correct coordinates.
6588
59b8b5d2
TT
65892020-02-22 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
6592 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
6593 DATA_WIN case.
6594
2a3d458b
TT
65952020-02-22 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
6598 TUI_DISASM_WIN, not tui_win_list.
6599
3f0cbb04
TT
66002020-02-22 Tom Tromey <tom@tromey.com>
6601
6602 * valprint.c (generic_val_print_enum_1)
6603 (val_print_type_code_flags): Style member names.
6604 * rust-lang.c (val_print_struct, rust_print_enum)
6605 (rust_print_struct_def, rust_internal_print_type): Style member
6606 names.
6607 * p-valprint.c (pascal_object_print_value_fields): Style member
6608 names. Only call fprintf_symbol_filtered for static members.
6609 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
6610 * f-valprint.c (f_val_print): Style member names.
6611 * f-typeprint.c (f_type_print_base): Style member names.
6612 * cp-valprint.c (cp_print_value_fields): Style member names. Only
6613 call fprintf_symbol_filtered for static members.
6614 (cp_print_class_member): Style member names.
6615 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
6616 member names.
6617 * ada-valprint.c (ada_print_scalar): Style enum names.
6618 (ada_val_print_enum): Likewise.
6619 * ada-typeprint.c (print_enum_type): Style enum names.
6620
d4d947ae
TT
66212020-02-21 Tom Tromey <tom@tromey.com>
6622
6623 * psympriv.h (struct partial_symtab): Update comment.
6624
e94e944b
TT
66252020-02-21 Tom Tromey <tromey@adacore.com>
6626
6627 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
6628 type is CORE_ADDR.
6629
1eb73179
TV
66302020-02-21 Tom de Vries <tdevries@suse.de>
6631
6632 PR gdb/25534
6633 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
6634 if dependencies[i]->user != NULL.
6635
4f180d53
AT
66362020-02-21 Ali Tamur <tamur@google.com>
6637
6638 * dwarf2/read.c (dwarf2_name): Add null check.
6639
22b6cd70
TT
66402020-02-20 Tom Tromey <tom@tromey.com>
6641
6642 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
6643 ">=", in binary search.
6644 (dwarf2_find_containing_comp_unit): New overload.
6645 (run_test): New self-test.
6646 (_initialize_dwarf2_read): Register new test.
6647
bd0cf5a6
NC
66482020-02-20 Nelson Chu <nelson.chu@sifive.com>
6649
6650 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
6651 * riscv-tdep.h: Likewise.
6652 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
6653 rv32-only CSR.
6654 * features/riscv/64bit-csr.xml: Regenerated.
6655
3f702acd
SDJ
66562020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6657 Tom Tromey <tom@tromey.com>
6658
6659 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
6660 of 'fputc_unfiltered'.
6661 (putchar_unfiltered): Call 'fputc_unfiltered'.
6662 (fputc_unfiltered): Call 'fputs_unfiltered'.
6663
d13c7322
AB
66642020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * config.in: Regenerate.
6667 * configure: Regenerate.
6668 * configure.ac: Add --with-python-libdir option.
6669 * main.c: Use WITH_PYTHON_LIBDIR.
6670
869d8950
TT
66712020-02-19 Tom Tromey <tom@tromey.com>
6672
6673 * symtab.c (general_symbol_info::compute_and_set_names): Use
6674 obstack_strndup. Simplify call to symbol_set_demangled_name.
6675
298e9637
SM
66762020-02-19 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * dwarf2/read.c (allocate_signatured_type_table,
6679 allocate_dwo_unit_table, allocate_type_unit_groups_table,
6680 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
6681 Remove objfile parameter, update all callers.
6682
08410482
DE
66832020-02-19 Doug Evans <dje@google.com>
6684
6685 PR rust/25535
6686 * rust-lang.c (rust_print_enum): Apply embedded_offset to
6687 rust_enum_variant calculation.
6688
dfdeeca1
TT
66892020-02-19 Tom Tromey <tromey@adacore.com>
6690
6691 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
6692
2ef5453b
TT
66932020-02-19 Tom Tromey <tromey@adacore.com>
6694
6695 * ada-lang.c (cache_symbol): Use obstack_strdup.
6696
9f1528a1
AB
66972020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 * configure: Regenerate.
6700
d3c22fa8
TT
67012020-02-19 Tom Tromey <tromey@adacore.com>
6702
6703 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
6704 NULL check.
6705
bf84f706
MR
67062020-02-19 Maciej W. Rozycki <macro@wdc.com>
6707
6708 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
6709
d1c9b20f
AB
67102020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
6713 if GDBSERVER is not defined.
6714 (riscv_tdesc_cache): Likewise, also store const target_desc.
6715 (STATIC_IN_GDB): Define.
6716 (riscv_create_target_description): Update declaration with
6717 STATIC_IN_GDB.
6718 (riscv_lookup_target_description): New function, only define if
6719 GDBSERVER is not defined.
6720 * arch/riscv.h (riscv_create_target_description): Declare only
6721 when GDBSERVER is defined.
6722 (riscv_lookup_target_description): New declaration when GDBSERVER
6723 is not defined.
6724 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
6725 (riscv_linux_read_features): ...this, and return
6726 riscv_gdbarch_features instead of target_desc.
6727 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
6728 (riscv_linux_read_description): Rename to...
6729 (riscv_linux_read_features): ...this.
6730 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6731 Update to use riscv_gdbarch_features and
6732 riscv_lookup_target_description.
6733 * riscv-tdep.c (riscv_find_default_target_description): Use
6734 riscv_lookup_target_description instead of
6735 riscv_create_target_description.
6736
373d7ac0
SM
67372020-02-18 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * valprint.c (generic_val_print_enum_1): When printing a flag
6740 enum with value 0 and there is no enumerator with value 0, print
6741 just "0" instead of "(unknown: 0x0)".
6742
b29a2df0
SM
67432020-02-18 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * valprint.c (generic_val_print_enum_1): Print unknown part of
6746 flag enum in hex.
6747
6740f0cc
SM
67482020-02-18 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * dwarf2/read.c (update_enumeration_type_from_children): Allow
6751 flag enums to contain duplicate enumerators.
6752 * valprint.c (generic_val_print_enum_1): Update comment.
6753
edd45eb0
SM
67542020-02-18 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * dwarf2/read.c: Include "count-one-bits.h".
6757 (update_enumeration_type_from_children): If an enumerator has
6758 multiple bits set, don't treat the enumeration as a "flag enum".
6759 * valprint.c (generic_val_print_enum_1): Assert that enumerators
6760 of flag enums have 0 or 1 bit set.
6761
6d0cf446
BE
67622020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6763
6764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
6765 conversion.
6766 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6767 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6769 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6771
7001c1b7
SM
67722020-02-18 Simon Marchi <simon.marchi@efficios.com>
6773
6774 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
6775
fdb61c6c
SM
67762020-02-14 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
6779 displaced_step_closure_up.
6780 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6781 (struct displaced_step_closure_up):
6782 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6783 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6784 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
6785 Likewise.
6786 * gdbarch.sh (displaced_step_copy_insn): Likewise.
6787 * gdbarch.c, gdbarch.h: Re-generate.
6788 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
6789 displaced_step_closure_up.
6790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6791 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6792 * infrun.h (displaced_step_closure_up): New type alias.
6793 (struct displaced_step_inferior_state) <step_closure>: Change
6794 type to displaced_step_closure_up.
6795 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
6796 displaced_step_closure_up.
6797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6798
a4a38eb4
TT
67992020-02-14 Tom Tromey <tom@tromey.com>
6800
6801 * minidebug.c (gnu_debug_key): New global.
6802 (find_separate_debug_file_in_section): Use it.
6803
e8217e61
SM
68042020-02-14 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
6807 std::unique_ptr.
6808 * gdbarch.c: Re-generate.
6809 * gdbarch.h: Re-generate.
6810 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
6811 change.
6812 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
6813 type to std::unique_ptr.
6814 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6816 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6817 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6818 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
6819 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6820 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6821 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6822 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6823
d8d83535
SM
68242020-02-14 Simon Marchi <simon.marchi@efficios.com>
6825
6826 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
6827 std::unique_ptr.
6828 (displaced_step_clear): Rename to...
6829 (displaced_step_reset): ... this. Just call displaced->reset ().
6830 (displaced_step_clear_cleanup): Rename to...
6831 (displaced_step_reset_cleanup): ... this.
6832 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
6833 (displaced_step_fixup): Likewise.
6834 (resume_1): Likewise.
6835 (handle_inferior_event): Restore child's memory before calling
6836 displaced_step_fixup on the parent.
6837 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
6838 to std::unique_ptr.
6839 <step_closure>: Change type to std::unique_ptr.
6840
5f661e03
SM
68412020-02-14 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * arm-tdep.c: Include count-one-bits.h.
6844 (cleanup_block_store_pc): Use count_one_bits.
6845 (cleanup_block_load_pc): Use count_one_bits.
6846 (arm_copy_block_xfer): Use count_one_bits.
6847 (thumb2_copy_block_xfer): Use count_one_bits.
6848 (thumb_copy_pop_pc_16bit): Use count_one_bits.
6849 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
6850 (thumb_get_next_pcs_raw): Use count_one_bits.
6851 (arm_get_next_pcs_raw): Use count_one_bits_l.
6852 * arch/arm.c (bitcount): Remove.
6853 * arch/arm.h (bitcount): Remove.
6854
8084e579
TT
68552020-02-14 Tom Tromey <tromey@adacore.com>
6856
6857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
6858 Update.
6859 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
6860 * dwarf2/loc.c (call_site_find_chain_1): Return
6861 unique_xmalloc_ptr.
6862 (call_site_find_chain): Likewise.
6863
258bf0ee
RB
68642020-02-14 Richard Biener <rguenther@suse.de>
6865
6866 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
6867 on expression with division operators.
6868
f98a8458
AKS
68692020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6870
6871 * MAINTAINERS (Write After Approval): Adding myself.
6872
d1437c0e
TT
68732020-02-12 Tom Tromey <tom@tromey.com>
6874
6875 * event-loop.c (event_data, gdb_event, event_handler_func):
6876 Remove.
6877
3d4560f7
TT
68782020-02-12 Tom Tromey <tom@tromey.com>
6879
6880 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
6881 (dwarf2_frame_objfile_data): Add comment.
6882 (find_comp_unit, set_comp_unit): New functions.
6883 (dwarf2_frame_find_fde): Use find_comp_unit.
6884 (dwarf2_build_frame_info): Use set_comp_unit.
6885
21982304
TT
68862020-02-12 Tom Tromey <tom@tromey.com>
6887
6888 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
6889 (comp_unit): Don't initialize objfile.
6890 (execute_cfa_program): Add text_offset parameter.
6891 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
6892 (dwarf2_frame_cache): Update.
6893 (dwarf2_build_frame_info): Don't set "objfile" member.
6894
4debb237
TT
68952020-02-12 Tom Tromey <tom@tromey.com>
6896
6897 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
6898 (decode_frame_entry): Likewise.
6899 (dwarf2_build_frame_info): Update.
6900
0d404d44
TT
69012020-02-12 Tom Tromey <tom@tromey.com>
6902
6903 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
6904 (decode_frame_entry_1): Use the comp_unit obstack.
6905
a7a3ae5c
TT
69062020-02-12 Tom Tromey <tom@tromey.com>
6907
6908 * dwarf2/frame.c (struct comp_unit): Add initializers and
6909 constructor.
6910 (dwarf2_frame_objfile_data): Store a comp_unit.
6911 (dwarf2_frame_find_fde): Update.
6912 (dwarf2_build_frame_info): Use "new".
6913
a9d65418
TT
69142020-02-12 Tom Tromey <tom@tromey.com>
6915
6916 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
6917 (dwarf2_fde_table): Typedef for std::vector.
6918 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
6919 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
6920 (decode_frame_entry): Update.
6921 (dwarf2_build_frame_info): Use "new".
6922
7559c217
CB
69232020-02-12 Christian Biesinger <cbiesinger@google.com>
6924
6925 * arm-tdep.c (arm_gdbarch_init): Update.
6926 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
6927 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
6928 have_neon, is_m>: Change to bool.
6929
aeefc73c
CB
69302020-02-12 Christian Biesinger <cbiesinger@google.com>
6931
6932 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
6933
d27b8e5f
TT
69342020-02-12 Tom Tromey <tom@tromey.com>
6935
6936 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
6937
cd5900f3
HD
69382020-02-12 Hannes Domani <ssbssa@yahoo.de>
6939
6940 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
6941 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
6942
f056b22b
TT
69432020-02-11 Tom Tromey <tom@tromey.com>
6944
6945 * psymtab.h: Update comment.
6946
f92ff6b5
TT
69472020-02-11 Tom Tromey <tom@tromey.com>
6948
6949 * gdb_obstack.h (struct auto_obstack): Use
6950 DISABLE_COPY_AND_ASSIGN.
6951
3fd6912b
TT
69522020-02-11 Tom Tromey <tom@tromey.com>
6953
6954 * dwarf2/frame.h (struct objfile): Don't forward declare.
6955
69ed9b74
CB
69562020-02-11 Christian Biesinger <cbiesinger@google.com>
6957
6958 * cris-tdep.c (cris_supply_gregset): Change signature to match
6959 what struct regset expects.
6960 (cris_regset): New struct.
6961 (fetch_core_registers): Remove.
6962 (cris_iterate_over_regset_sections): New function.
6963 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
6964 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
6965
bda874f6
CB
69662020-02-11 Christian Biesinger <cbiesinger@google.com>
6967
6968 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
6969 registers.
6970
754e1564
CB
69712020-02-11 Christian Biesinger <cbiesinger@google.com>
6972
6973 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
6974
8ddd8e0e
SM
69752020-02-11 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * configure: Re-generate.
6978
898e7f60
SM
69792020-02-11 Simon Marchi <simon.marchi@efficios.com>
6980
6981 * configure: Re-generate.
6982
58df732b
SM
69832020-02-11 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * acinclude: Update warning.m4 path.
6986 * warning.m4: Move to gdbsupport.
6987
da5bd37e
TT
69882020-02-11 Tom Tromey <tromey@adacore.com>
6989
6990 * remote.c (remote_console_output): Update.
6991 * printcmd.c (printf_command): Update.
6992 * event-loop.c (gdb_wait_for_event): Update.
6993 * linux-nat.c (sigchld_handler): Update.
6994 * remote-sim.c (gdb_os_write_stdout): Update.
6995 (gdb_os_flush_stdout): Update.
6996 (gdb_os_flush_stderr): Update.
6997 (gdb_os_write_stderr): Update.
6998 * exceptions.c (print_exception): Update.
6999 * remote-fileio.c (remote_fileio_func_read): Update.
7000 (remote_fileio_func_write): Update.
7001 * tui/tui.c (tui_enable): Update.
7002 * tui/tui-interp.c (tui_interp::init): Update.
7003 * utils.c (init_page_info): Update.
7004 (putchar_unfiltered, fputc_unfiltered): Update.
7005 (gdb_flush): Update.
7006 (emit_style_escape): Update.
7007 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7008 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7009 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7010 (stderr_file::write): Update.
7011 (stderr_file::puts): Update.
7012 * ui-file.h (ui_file_isatty, ui_file_write)
7013 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7014 (ui_file_puts): Don't declare.
7015
85f0dd3c
TV
70162020-02-10 Tom de Vries <tdevries@suse.de>
7017
7018 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7019 sentinel to char *.
7020
2e927613
TV
70212020-02-09 Tom de Vries <tdevries@suse.de>
7022
7023 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7024 filename if it matches "<artificial>".
7025
6bafc845
HD
70262020-02-09 Hannes Domani <ssbssa@yahoo.de>
7027
7028 * windows-tdep.c (struct enum_value_name): New struct.
7029 (create_enum): New function.
7030 (windows_get_siginfo_type): Create and use enum types.
7031
7928d571
HD
70322020-02-09 Hannes Domani <ssbssa@yahoo.de>
7033
7034 * NEWS: Mention $_siginfo support for Windows.
7035 * windows-nat.c (handle_exception): Set siginfo_er.
7036 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7037 (windows_xfer_siginfo): New function.
7038 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7039 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7040 (init_windows_gdbarch_data): New function.
7041 (get_windows_gdbarch_data): New function.
7042 (windows_get_siginfo_type): New function.
7043 (windows_init_abi): Register windows_get_siginfo_type.
7044 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7045
6751ebae
TT
70462020-02-08 Tom Tromey <tom@tromey.com>
7047
7048 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7049 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7050 <keep>: Declare method.
7051 <m_keep>: Remove member.
7052 <~cutu_reader>: Remove.
7053 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7054 (cutu_reader::cutu_reader): Update.
7055 (cutu_reader::keep): Rename from ~cutu_reader.
7056 (process_psymtab_comp_unit, build_type_psymtabs_1)
7057 (process_skeletonless_type_unit, load_partial_comp_unit)
7058 (load_full_comp_unit, dwarf2_read_addr_index)
7059 (read_signatured_type): Update.
7060
135f5437
TT
70612020-02-08 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7064 "want_partial_unit" parameter.
7065 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7066 Inline check for DW_TAG_partial_unit.
7067 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7068
9f66ff1c
TT
70692020-02-08 Tom Tromey <tom@tromey.com>
7070
7071 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7072 read.c.
7073 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7074 read.c.
7075
c8a7a66f
TT
70762020-02-08 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2/read.c (read_address): Move to comp-unit.c.
7079 (dwarf2_rnglists_process, dwarf2_ranges_process)
7080 (read_attribute_value, dwarf_decode_lines_1)
7081 (var_decode_location, decode_locdesc): Update.
7082 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7083 read.c. Remove "cu" parameter.
7084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7085 method.
7086
8266302d
TT
70872020-02-08 Tom Tromey <tom@tromey.com>
7088
7089 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7090 (read_indirect_line_string): Update.
7091 * dwarf2/comp-unit.c (read_offset): Remove.
7092 (read_comp_unit_head): Update.
7093 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
7094 method.
7095 (read_offset): Don't declare.
7096
4057dfde
TT
70972020-02-08 Tom Tromey <tom@tromey.com>
7098
7099 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
7100 * dwarf2/read.c (struct comp_unit_head): Move to
7101 dwarf2/comp-unit.h.
7102 (enum class rcuh_kind): Move to comp-unit.h.
7103 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
7104 (read_comp_unit_head, error_check_comp_unit_head)
7105 (read_and_check_comp_unit_head): Move to comp-unit.c.
7106 (read_offset, dwarf_unit_type_name): Likewise.
7107 (create_debug_type_hash_table, read_cutu_die_from_dwo)
7108 (cutu_reader::cutu_reader, read_call_site_scope)
7109 (find_partial_die, follow_die_offset): Update.
7110 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
7111
24aa364d
TT
71122020-02-08 Tom Tromey <tom@tromey.com>
7113
7114 * dwarf2/read.c (read_offset_1): Move to leb.c.
7115 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
7116 (dwarf_decode_macro_bytes): Update.
7117 * dwarf2/leb.c (read_offset): Rename; move from read.c.
7118 * dwarf2/leb.h (read_offset): Declare.
7119
2c7d5afc
TT
71202020-02-08 Tom Tromey <tom@tromey.com>
7121
7122 * dwarf2/read.c (dwarf2_section_size): Remove.
7123 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
7124 Update.
7125 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
7126
4075cb26
TT
71272020-02-08 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2/read.c (read_initial_length): Move to leb.c.
7130 * dwarf2/leb.h (read_initial_length): Declare.
7131 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
7132 handle_nonstd parameter.
7133 * dwarf2/frame.c (read_initial_length): Remove.
7134 (decode_frame_entry_1): Update.
7135
09ba997f
TT
71362020-02-08 Tom Tromey <tom@tromey.com>
7137
7138 * dwarf2/loc.c (dwarf2_find_location_expression)
7139 (dwarf_evaluate_loc_desc::get_tls_address)
7140 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
7141 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
7142 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
7143 (dwarf2_compile_property_to_c)
7144 (dwarf2_loc_desc_get_symbol_read_needs)
7145 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
7146 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
7147 (loclist_describe_location, loclist_tracepoint_var_ref)
7148 (loclist_generate_c_location): Update.
7149 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
7150 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
7151 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
7152 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
7153 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
7154 (dwarf2_per_cu_data::addr_size)
7155 (dwarf2_per_cu_data::ref_addr_size)
7156 (dwarf2_per_cu_data::text_offset)
7157 (dwarf2_per_cu_data::addr_type): Now methods.
7158 (per_cu_header_read_in): Make per_cu "const".
7159 (dwarf2_version): Remove.
7160 (dwarf2_per_cu_data::int_type): Now a method.
7161 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
7162 (set_die_type, read_array_type, read_subrange_index_type)
7163 (read_tag_string_type, read_subrange_type): Update.
7164 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
7165 offset_size, ref_addr_size, text_offset, addr_type, version,
7166 objfile, int_type, addr_sized_int_type>: Declare methods.
7167
96c738c0
TT
71682020-02-08 Tom Tromey <tom@tromey.com>
7169
7170 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
7171 Move earlier.
7172
8fdd972c
TT
71732020-02-08 Tom Tromey <tom@tromey.com>
7174
7175 * dwarf2/read.h (dwarf_line_debug): Declare.
7176 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
7177 * dwarf2/read.c: Move line_header code to new files.
7178 (dwarf_line_debug): No longer static.
7179 * dwarf2/line-header.c: New file.
7180 * dwarf2/line-header.h: New file.
7181
03075812
TT
71822020-02-08 Tom Tromey <tom@tromey.com>
7183
7184 * dwarf2/read.c (struct line_header) <file_full_name,
7185 file_file_name>: Return unique_xmalloc_ptr.
7186 (line_header::file_file_name): Update.
7187 (line_header::file_full_name): Update.
7188 (dw2_get_file_names_reader): Update.
7189 (macro_start_file): Update.
7190
bb822404
TT
71912020-02-08 Tom Tromey <tom@tromey.com>
7192
7193 * dwarf2/read.c (struct line_header) <file_full_name,
7194 file_file_name>: Declare methods.
7195 (dw2_get_file_names_reader): Update.
7196 (file_file_name): Now a method.
7197 (file_full_name): Likewise.
7198 (macro_start_file): Update.
7199
009b64fc
TT
72002020-02-08 Tom Tromey <tom@tromey.com>
7201
7202 * dwarf2/read.c (dwarf_always_disassemble)
7203 (show_dwarf_always_disassemble): Move to loc.c.
7204 (_initialize_dwarf2_read): Move "always-disassemble" registration
7205 to loc.c.
7206 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
7207 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
7208 static.
7209 (show_dwarf_always_disassemble): Move from read.c.
7210 (_initialize_dwarf2loc): Move always-disassemble from read.c.
7211
5895093f
TT
72122020-02-08 Tom Tromey <tom@tromey.com>
7213
7214 * dwarf2/read.c (~dwarf2_per_objfile): Update.
7215 (create_quick_file_names_table): Return htab_up.
7216 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
7217 Update.
7218 * dwarf2/read.h (struct dwarf2_per_objfile)
7219 <quick_file_names_table>: Now htab_up.
7220
b3b32279
TT
72212020-02-08 Tom Tromey <tom@tromey.com>
7222
7223 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
7224
1d33d811
TT
72252020-02-08 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
7228 Rewrite.
7229 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
7230 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
7231 (abbrev_table::abbrev_table): No longer inline.
7232 (ABBREV_HASH_SIZE): Remove.
7233 (abbrev_table::m_abbrevs): Now an htab_up.
7234
86de1d91
TT
72352020-02-08 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
7238 (cutu_reader): Update.
7239 (build_type_psymtabs_1): Update.
7240 * dwarf2/abbrev.c (abbrev_table::read): Rename.
7241 (abbrev_table::alloc_abbrev): Update.
7242 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
7243 (abbrev_table::read): New static method, renamed from
7244 abbrev_table_read_table.
7245 (abbrev_table::alloc_abbrev)
7246 (abbrev_table::add_abbrev): Now private.
7247 (abbrev_table::abbrev_table): Now private.
7248 (abbrev_table::m_abbrev_obstack): Now private. Rename.
7249
0335378b
TT
72502020-02-08 Tom Tromey <tom@tromey.com>
7251
7252 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
7253 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
7254 htab_up.
7255
48b490f2
TT
72562020-02-08 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
7259 htab_up.
7260 (lookup_dwo_unit_in_dwp): Update.
7261 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
7262 on obstack.
7263
bc68fb19
TT
72642020-02-08 Tom Tromey <tom@tromey.com>
7265
7266 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
7267 obstack.
7268
d15acc42
TT
72692020-02-08 Tom Tromey <tom@tromey.com>
7270
7271 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
7272 line_header_hash.
7273 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
7274 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
7275 Change type to htab_up.
7276
eaa5fa8b
TT
72772020-02-08 Tom Tromey <tom@tromey.com>
7278
7279 * dwarf2/read.c (allocate_type_unit_groups_table): Return
7280 htab_up. Don't allocate on obstack.
7281 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
7282 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
7283 Change type to htab_up.
7284
b0b6a987
TT
72852020-02-08 Tom Tromey <tom@tromey.com>
7286
7287 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
7288 Change type to htab_up.
7289 * dwarf2/read.c (create_signatured_type_table_from_index)
7290 (create_signatured_type_table_from_debug_names)
7291 (create_all_type_units, add_type_unit)
7292 (lookup_dwo_signatured_type, lookup_signatured_type)
7293 (process_skeletonless_type_unit): Update.
7294 (create_debug_type_hash_table, create_debug_types_hash_table):
7295 Change type of types_htab.
7296 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
7297 htab_up. Don't allocate on obstack.
7298 (create_cus_hash_table): Change type of cus_htab parameter.
7299 (struct dwo_file) <cus, tus>: Now htab_up.
7300 (lookup_dwo_signatured_type, lookup_dwo_cutu)
7301 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
7302 (queue_and_load_all_dwo_tus): Update.
7303 * dwarf2/index-write.c (write_gdbindex): Update.
7304 (write_debug_names): Update.
7305
39856def
TT
73062020-02-08 Tom Tromey <tom@tromey.com>
7307
7308 * dwarf2/read.h (struct dwarf2_queue_item): Move from
7309 dwarf2/read.c. Remove "next" member. Add constructor ntad
7310 destructor.
7311 (struct dwarf2_per_objfile) <queue>: New member.
7312 * dwarf2/read.c (struct dwarf2_queue_item): Move to
7313 dwarf2/read.h.
7314 (dwarf2_queue, dwarf2_queue_tail): Remove.
7315 (class dwarf2_queue_guard): Add parameter to constructor. Use
7316 DISABLE_COPY_AND_ASSIGN.
7317 <m_per_objfile>: New member.
7318 <~dwarf2_queue_guard>: Rewrite.
7319 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
7320 Update.
7321 (~dwarf2_queue_item): New.
7322
3e225074
TT
73232020-02-08 Tom Tromey <tom@tromey.com>
7324
7325 * dwarf2/read.c (struct die_info) <has_children>: New member.
7326 (dw2_get_file_names_reader): Remove has_children.
7327 (dw2_get_file_names): Update.
7328 (read_cutu_die_from_dwo): Remove has_children.
7329 (cutu_reader::init_tu_and_read_dwo_dies)
7330 (cutu_reader::cutu_reader): Update.
7331 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
7332 Remove has_children.
7333 (build_type_psymtabs_1, process_skeletonless_type_unit)
7334 (load_partial_comp_unit, load_full_comp_unit): Update.
7335 (create_dwo_cu_reader): Remove has_children.
7336 (create_cus_hash_table, read_die_and_children): Update.
7337 (read_full_die_1,read_full_die): Remove has_children.
7338 (read_signatured_type): Update.
7339 (class cutu_reader) <has_children>: Remove.
7340
82ca8957
TT
73412020-02-08 Tom Tromey <tom@tromey.com>
7342
7343 * dwarf2/expr.c: Rename from dwarf2expr.c.
7344 * dwarf2/expr.h: Rename from dwarf2expr.h.
7345 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
7346 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
7347 * dwarf2/frame.c: Rename from dwarf2-frame.c.
7348 * dwarf2/frame.h: Rename from dwarf2-frame.h.
7349 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
7350 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
7351 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
7352 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
7353 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
7354 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
7355 * dwarf2/loc.c: Rename from dwarf2loc.c.
7356 * dwarf2/loc.h: Rename from dwarf2loc.h.
7357 * dwarf2/read.c: Rename from dwarf2read.c.
7358 * dwarf2/read.h: Rename from dwarf2read.h.
7359 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
7360 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
7361 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
7362 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
7363 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
7364 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
7365 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
7366 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
7367 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
7368 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
7369 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
7370 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
7371 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
7372 Update.
7373 * Makefile.in (COMMON_SFILES): Update.
7374 (HFILES_NO_SRCDIR): Update.
7375
9e35d499
TT
73762020-02-08 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
7379 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
7380
1eba2311
TT
73812020-02-08 Tom Tromey <tom@tromey.com>
7382
7383 * dwarf2read.h (struct die_info): Don't declare.
7384
e41c2da2
TT
73852020-02-08 Tom Tromey <tom@tromey.com>
7386
7387 * dwarf2read.h (die_info_ptr): Remove typedef.
7388
4fc6c0d5
TT
73892020-02-08 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2read.c (read_call_site_scope)
7392 (handle_data_member_location, dwarf2_add_member_fn)
7393 (mark_common_block_symbol_computed, read_common_block)
7394 (attr_to_dynamic_prop, partial_die_info::read)
7395 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
7396 (dwarf2_symbol_mark_computed, set_die_type): Update.
7397 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
7398 method.
7399 (attr_form_is_block): Don't declare.
7400 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
7401
cd6c91b4
TT
74022020-02-08 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2read.c (dwarf2_find_base_address, )
7405 (read_call_site_scope, rust_containing_type)
7406 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
7407 (handle_data_member_location, dwarf2_add_member_fn)
7408 (get_alignment, read_structure_type, process_structure_scope)
7409 (mark_common_block_symbol_computed, read_common_block)
7410 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
7411 (partial_die_info::read, read_attribute_value, new_symbol)
7412 (lookup_die_type, dwarf2_get_ref_die_offset)
7413 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
7414 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
7415 (dwarf2_symbol_mark_computed): Update.
7416 * dwarf2/attribute.h (struct attribute) <value_as_address,
7417 form_is_section_offset, form_is_constant, form_is_ref>: Declare
7418 methods.
7419 (value_as_address, attr_form_is_section_offset)
7420 (attr_form_is_constant, attr_form_is_ref): Don't declare.
7421 * dwarf2/attribute.c (attribute::value_as_address)
7422 (attribute::form_is_section_offset, attribute::form_is_constant)
7423 (attribute::form_is_ref): Now methods.
7424
162dce55
TT
74252020-02-08 Tom Tromey <tom@tromey.com>
7426
7427 * dwarf2read.c (struct attribute, DW_STRING)
7428 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
7429 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
7430 (attr_form_is_block, attr_form_is_section_offset)
7431 (attr_form_is_constant, attr_form_is_ref): Move.
7432 * dwarf2/attribute.h: New file.
7433 * dwarf2/attribute.c: New file, from dwarf2read.c.
7434 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
7435
3054dd54
TT
74362020-02-08 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
7439 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
7440 Move.
7441 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
7442 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
7443 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
7444 abbrev.c.
7445 * dwarf2/abbrev.h: New file.
7446 * dwarf2/abbrev.c: New file, from dwarf2read.c.
7447 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
7448
96b79293
TT
74492020-02-08 Tom Tromey <tom@tromey.com>
7450
7451 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
7452 (dwarf2_section_size, dwarf2_get_section_info)
7453 (create_signatured_type_table_from_debug_names)
7454 (create_addrmap_from_aranges, read_debug_names_from_section)
7455 (get_gdb_index_contents_from_section, read_comp_unit_head)
7456 (error_check_comp_unit_head, read_abbrev_offset)
7457 (create_debug_type_hash_table, init_cu_die_reader)
7458 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
7459 (read_comp_units_from_section, create_cus_hash_table)
7460 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7461 (create_dwp_v2_section, dwarf2_rnglists_process)
7462 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
7463 (abbrev_table_read_table, read_indirect_string_at_offset_from)
7464 (read_indirect_string_from_dwz, read_addr_index_1)
7465 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
7466 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7467 (fill_in_loclist_baton): Update.
7468 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
7469 get_containing_section, get_bfd_owner, get_bfd_section,
7470 get_file_name, get_id, get_flags, empty, read>: Declare methods.
7471 (dwarf2_read_section, get_section_name, get_section_file_name)
7472 (get_containing_section, get_section_bfd_owner)
7473 (get_section_bfd_section, get_section_name, get_section_file_name)
7474 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
7475 declare.
7476 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
7477 (dwarf2_section_info::get_bfd_owner)
7478 (dwarf2_section_info::get_bfd_section)
7479 (dwarf2_section_info::get_name)
7480 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
7481 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
7482 (dwarf2_section_info::read): Now methods.
7483 * dwarf-index-write.c (class debug_names): Update.
7484
2c86cff9
TT
74852020-02-08 Tom Tromey <tom@tromey.com>
7486
7487 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
7488 Move to dwarf2/section.h.
7489 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
7490 (get_section_bfd_section, get_section_name)
7491 (get_section_file_name, get_section_id, get_section_flags)
7492 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
7493 dwarf2/section.c.
7494 * dwarf2/section.h: New file.
7495 * dwarf2/section.c: New file, from dwarf2read.c.
7496 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
7497
f4382c45
TT
74982020-02-08 Tom Tromey <tom@tromey.com>
7499
7500 * dwarf2read.h (read_unsigned_leb128): Don't declare.
7501 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
7502 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
7503 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
7504 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
7505 * dwarf2/leb.h: New file, from dwarf2read.c.
7506 * dwarf2/leb.c: New file, from dwarf2read.c.
7507 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
7508 Remove.
7509 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
7510 (COMMON_SFILES): Add dwarf2/leb.c.
7511
01840b7a
JB
75122020-02-08 Joel Brobecker <brobecker@adacore.com>
7513
7514 GDB 9.1 released.
7515
dfcb27e4
IB
75162020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7517
7518 PR gdb/25190:
aac66a4c
SM
7519 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
7520 * gdb/remote.c (remote_console_output): Update.
7521 * gdb/ui-file.c (fputs_unfiltered): Rename to...
7522 (ui_file_puts): ...this.
7523 * gdb/ui-file.h (ui_file_puts): Add declaration.
7524 * gdb/utils.c (emit_style_escape): Update.
7525 (flush_wrap_buffer): Update.
7526 (fputs_maybe_filtered): Update.
7527 (fputs_unfiltered): Add function.
dfcb27e4 7528
faa17681
IB
75292020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7530
aac66a4c
SM
7531 * gdb/event-loop.c (gdb_wait_for_event): Update.
7532 * gdb/printcmd.c (printf_command): Update.
7533 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
7534 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
7535 (gdb_os_flush_stderr): Update.
7536 * gdb/remote.c (remote_console_output): Update.
7537 * gdb/ui-file.c (gdb_flush): Rename to...
7538 (ui_file_flush): ...this.
7539 (stderr_file::write): Update.
7540 (stderr_file::puts): Update.
7541 * gdb/ui-file.h (gdb_flush): Rename to...
7542 (ui_file_flush): ...this.
7543 * gdb/utils.c (gdb_flush): Add function.
7544 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 7545
5abbbe1d
TT
75462020-02-07 Tom Tromey <tromey@adacore.com>
7547
7548 PR breakpoints/24915:
7549 * source.c (find_and_open_source): Do not check basenames_may_differ.
7550
919adfe8
TT
75512020-02-07 Tom Tromey <tom@tromey.com>
7552
7553 * README: Update gdbserver documentation.
7554 * gdbserver: Move to top level.
7555 * configure.tgt (build_gdbserver): Remove.
7556 * configure.ac: Remove --enable-gdbserver.
7557 * configure: Rebuild.
7558 * Makefile.in (distclean): Don't mention gdbserver.
7559
1d5d29e7
SV
75602020-02-06 Shahab Vahedi <shahab@synopsys.com>
7561
7562 * source-cache.c (source_cache::ensure): Surround
7563 get_plain_source_lines with a try/catch.
7564 (source_cache::get_line_charpos): Get rid of try/catch
7565 and only check for the return value of "ensure".
7566 * tui/tui-source.c (tui_source_window::set_contents):
7567 Simplify "nlines" calculation.
7568
6eb1129c
SV
75692020-02-06 Shahab Vahedi <shahab@synopsys.com>
7570
7571 * MAINTAINERS (Write After Approval): Add myself.
7572
c6a42d11
CB
75732020-02-05 Christian Biesinger <cbiesinger@google.com>
7574
7575 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
7576 function call.
7577
c8ecdda6
CB
75782020-02-05 Christian Biesinger <cbiesinger@google.com>
7579
7580 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
7581
f6480e70
MR
75822020-02-05 Maciej W. Rozycki <macro@wdc.com>
7583
7584 * nat/riscv-linux-tdesc.h: New file.
7585 * nat/riscv-linux-tdesc.c: New file, taking code from...
7586 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7587 ... here.
7588 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
7589 NATDEPFILES.
7590
dcc9fbc6
AB
75912020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
7592
7593 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
7594 we don't set the fake simulator ptid to the null_ptid.
7595
719546c4
SM
75962020-02-03 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
7599 * gdbthread.h (class thread_info) <resumed>: Likewise.
7600 * infrun.c (resume_1): Likewise.
7601 (proceed): Likewise.
7602 (infrun_thread_stop_requested): Likewise.
7603 (stop_all_threads): Likewise.
7604 (handle_inferior_event): Likewise.
7605 (restart_threads): Likewise.
7606 (finish_step_over): Likewise.
7607 (keep_going_stepped_thread): Likewise.
7608 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
7609 (linux_handle_extended_wait): Likewise.
7610 * record-btrace.c (get_thread_current_frame_id): Likewise.
7611 * record-full.c (record_full_wait_1): Likewise.
7612 * remote.c (remote_target::process_initial_stop_replies): Likewise.
7613 * target.c (target_resume): Likewise.
7614 * thread.c (set_running_thread): Likewise.
7615
e409c542
AKS
76162020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7617
7618 * f-valprint.c (f77_print_array_1): Changed datatype of index
7619 variable to LONGEST from int to enable it to contain bound
7620 values correctly.
7621
ee98c0da
MR
76222020-02-03 Maciej W. Rozycki <macro@wdc.com>
7623
7624 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
7625 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
7626 offsets according to FLEN determined.
7627 (riscv_linux_nat_target::read_description): Determine FLEN
7628 dynamically.
7629 (riscv_linux_nat_target::fetch_registers): Size regset buffer
7630 according to FLEN determined.
7631 (riscv_linux_nat_target::store_registers): Likewise.
7632
aa66aac4
SV
76332020-02-01 Shahab Vahedi <shahab@synopsys.com>
7634
7635 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7636 when reg->group is empty and reggroup is not.
7637
fd9faca8
TT
76382020-01-31 Tom Tromey <tromey@adacore.com>
7639
7640 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
7641 Call beneath target's mourn_inferior after unpushing.
7642
42330a68
AB
76432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 PR tui/9765
7646 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
7647 have enough lines to fill the screen, still return the lowest
7648 address we found.
7649
7a27a45b
AB
76502020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
7653 '-', '<', and '>' commands.
7654
c47f70e2
PA
76552020-01-29 Pedro Alves <palves@redhat.com>
7656 Sergio Durigan Junior <sergiodj@redhat.com>
7657
7658 * infcmd.c (construct_inferior_arguments): Assert that
7659 'argc' is greater than 0.
7660
5133a315
LM
76612020-01-29 Luis Machado <luis.machado@linaro.org>
7662
7663 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
7664 (BRK_INSN_MASK): Define to 0xd4200000.
7665 (aarch64_program_breakpoint_here_p): New function.
7666 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
7667 * arch-utils.c (default_program_breakpoint_here_p): Moved from
7668 breakpoint.c.
7669 * arch-utils.h (default_program_breakpoint_here_p): Moved from
7670 breakpoint.h
7671 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
7672 call gdbarch_program_breakpoint_here_p.
7673 (program_breakpoint_here): Moved to arch-utils.c, renamed to
7674 default_program_breakpoint_here_p, changed return type to bool and
7675 simplified.
7676 * breakpoint.h (program_breakpoint_here): Moved prototype to
7677 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
7678 return type to bool.
7679 * gdbarch.c: Regenerate.
7680 * gdbarch.h: Regenerate.
7681 * gdbarch.sh (program_breakpoint_here_p): New method.
7682 * infrun.c (handle_signal_stop): Call
7683 gdbarch_program_breakpoint_here_p.
7684
168f8c6b
TT
76852020-01-26 Tom Tromey <tom@tromey.com>
7686
7687 * ctfread.c (struct ctf_fp_info): Reindent.
7688 (_initialize_ctfread): Remove.
7689
128a391f
TT
76902020-01-26 Tom Tromey <tom@tromey.com>
7691
7692 * psymtab.c (partial_map_expand_apply)
7693 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7694 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7695 (psym_print_stats, psym_expand_symtabs_for_function)
7696 (psym_map_symbol_filenames, psym_map_matching_symbols)
7697 (psym_expand_symtabs_matching)
7698 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7699 (maintenance_check_psymtabs): Use new methods.
7700 * psympriv.h (struct partial_symtab) <readin_p,
7701 get_compunit_symtab>: New methods.
7702 <readin, compunit_symtab>: Remove members.
7703 (struct standard_psymtab): New.
7704 (struct legacy_psymtab): Derive from standard_psymtab.
7705 * dwarf2read.h (struct dwarf2_psymtab): Derive from
7706 standard_psymtab.
7707 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
7708
0494dbec
TT
77092020-01-26 Tom Tromey <tom@tromey.com>
7710
7711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
7712 read_dependencies. Add assert.
7713 * psymtab.c (partial_symtab::read_dependencies): New method.
7714 * psympriv.h (struct partial_symtab) <read_dependencies>: New
7715 method.
7716 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
7717 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
7718 read_dependencies.
7719 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
7720 Add assert.
7721
8566b89b
TT
77222020-01-26 Tom Tromey <tom@tromey.com>
7723
7724 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
7725 Call expand_psymtab.
7726 (xcoff_read_symtab): Call expand_psymtab.
7727 (xcoff_start_psymtab, xcoff_end_psymtab): Set
7728 legacy_expand_psymtab.
7729 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
7730 method.
7731 (struct legacy_psymtab) <expand_psymtab>: Implement.
7732 <legacy_expand_psymtab>: New member.
7733 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
7734 (parse_partial_symbols): Set legacy_expand_psymtab.
7735 (psymtab_to_symtab_1): Change argument order. Call
7736 expand_psymtab.
7737 (new_psymtab): Set legacy_expand_psymtab.
7738 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
7739 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
7740 expand_psymtab.
7741 (dwarf2_psymtab::expand_psymtab): Rename from
7742 psymtab_to_symtab_1. Call expand_psymtab.
7743 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
7744 (dbx_end_psymtab): Likewise.
7745 (dbx_psymtab_to_symtab_1): Change argument order. Call
7746 expand_psymtab.
7747 (dbx_read_symtab): Call expand_psymtab.
7748 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
7749 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
7750 (ctf_psymtab::read_symtab): Call expand_psymtab.
7751
077cbab2
TT
77522020-01-26 Tom Tromey <tom@tromey.com>
7753
7754 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
7755 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
7756 messages.
7757 * mdebugread.c (mdebug_read_symtab): Remove prints.
7758 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
7759 assert.
7760 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
7761
891813be
TT
77622020-01-26 Tom Tromey <tom@tromey.com>
7763
7764 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
7765 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
7766 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
7767 legacy_symtab.
7768 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
7769 * psymtab.c (psymtab_to_symtab): Call method.
7770 (dump_psymtab): Update.
7771 * psympriv.h (struct partial_symtab): Add virtual destructor.
7772 <read_symtab>: New method.
7773 (struct legacy_symtab): New.
7774 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
7775 (struct pst_map) <pst>: Now a legacy_psymtab.
7776 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
7777 (new_psymtab): Use legacy_psymtab.
7778 * dwarf2read.h (struct dwarf2_psymtab): New.
7779 (struct dwarf2_per_cu_data) <psymtab>: Use it.
7780 * dwarf2read.c (dwarf2_create_include_psymtab)
7781 (dwarf2_build_include_psymtabs, create_type_unit_group)
7782 (create_partial_symtab, process_psymtab_comp_unit_reader)
7783 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
7784 (set_partial_user): Use dwarf2_psymtab.
7785 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
7786 (psymtab_to_symtab_1, process_full_comp_unit)
7787 (process_full_type_unit, dwarf2_ranges_read)
7788 (dwarf2_get_pc_bounds, psymtab_include_file_name)
7789 (dwarf_decode_lines): Use dwarf2_psymtab.
7790 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
7791 (add_address_entry_worker, write_one_signatured_type)
7792 (recursively_count_psymbols, recursively_write_psymbols)
7793 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
7794 (write_debug_names): Likewise.
7795 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
7796 <pst>: Now a legacy_psymtab.
7797 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
7798 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
7799 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
7800 * ctfread.c (struct ctf_psymtab): New.
7801 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
7802 ctf_psymtab.
7803 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
7804 (create_partial_symtab): Return a ctf_psymtab.
7805 (scan_partial_symbols): Update.
7806
c3693a1d
TT
78072020-01-26 Tom Tromey <tom@tromey.com>
7808
7809 * xcoffread.c (xcoff_start_psymtab): Use new.
7810 * psymtab.c (partial_symtab::partial_symtab): New constructor,
7811 renamed from start_psymtab_common.
7812 * psympriv.h (struct partial_symtab): Add new constructor.
7813 (start_psymtab_common): Don't declare.
7814 * mdebugread.c (parse_partial_symbols): Use new.
7815 * dwarf2read.c (create_partial_symtab): Use new.
7816 * dbxread.c (start_psymtab): Use new.
7817 * ctfread.c (create_partial_symtab): Use new.
7818
32caafd0
TT
78192020-01-26 Tom Tromey <tom@tromey.com>
7820
7821 * xcoffread.c (xcoff_end_psymtab): Use new.
7822 * psymtab.c (start_psymtab_common): Use new.
7823 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
7824 Update.
7825 * psympriv.h (struct partial_symtab): Add parameters to
7826 constructor. Don't inline.
7827 (allocate_psymtab): Don't declare.
7828 * mdebugread.c (new_psymtab): Use new.
7829 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
7830 * dbxread.c (dbx_end_psymtab): Use new.
7831
abaa2f23
TT
78322020-01-26 Tom Tromey <tom@tromey.com>
7833
7834 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
7835 allocate_psymtab. Update documentation.
7836 * psymtab.c (psymtab_storage::install_psymtab): Rename from
7837 allocate_psymtab. Do not use new.
7838 (allocate_psymtab): Use new. Update.
7839
6d94535f
TT
78402020-01-26 Tom Tromey <tom@tromey.com>
7841
7842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7843 * psymtab.c (psym_print_stats): Update.
7844 * psympriv.h (struct partial_symtab) <readin,
7845 psymtabs_addrmap_supported, anonymous>: Now bool.
7846 * mdebugread.c (psymtab_to_symtab_1): Update.
7847 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
7848 (build_type_psymtabs_reader, psymtab_to_symtab_1)
7849 (process_full_comp_unit, process_full_type_unit): Update.
7850 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7851 * ctfread.c (psymtab_to_symtab): Update.
7852
6f17252b
TT
78532020-01-26 Tom Tromey <tom@tromey.com>
7854
7855 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
7856 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
7857 * psymtab.c (psymtab_storage): Delete psymtabs.
7858 (psymtab_storage::allocate_psymtab): Use new.
7859 (psymtab_storage::discard_psymtab): Use delete.
7860 * psympriv.h (struct partial_symtab): Add constructor and
7861 initializers.
7862
f6f1cebc
TT
78632020-01-26 Tom Tromey <tom@tromey.com>
7864
7865 * machoread.c: Do not include psympriv.h.
7866
e47e48f6
PW
78672020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7868
7869 * NEWS: Mention the new option and the set/show commands.
7870
a2fedca9
PW
78712020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7872
7873 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
7874 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
7875 (validate_exec_file): New variables, enums, functions.
7876 (exec_file_locate_attach, print_section_info): Style the filenames.
7877 (_initialize_exec): Install show_exec_file_mismatch_command and
7878 set_exec_file_mismatch_command.
7879 * gdbcore.h (validate_exec_file): Declare.
7880 * infcmd.c (attach_command): Call validate_exec_file.
7881 * remote.c ( remote_target::remote_add_inferior): Likewise.
7882
7ffa82e1
AB
78832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * frame.c (find_frame_sal): Move call to get_next_frame into more
7886 inner scope.
7887 * inline-frame.c (inilne_state) <inline_state>: Update argument
7888 types.
7889 (inilne_state) <skipped_symbol>: Rename to...
7890 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
7891 (skip_inline_frames): Build vector of skipped symbols and use this
7892 to reate the inline_state.
7893 (inline_skipped_symbol): Add a comment and some assertions, fetch
7894 skipped symbol from the list.
7895
3d92a3e3
AB
78962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * buildsym.c (lte_is_less_than): Delete.
7899 (buildsym_compunit::end_symtab_with_blockvector): Create local
7900 lambda function to sort line table entries, and use
7901 std::stable_sort instead of std::sort.
7902 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
7903 markers when looking for a previous line.
7904
94a72be7
AB
79052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7906
7907 * dwarf2read.c (lnp_state_machine::record_line): Include
7908 end_sequence parameter in debug print out. Record the line if we
7909 are at an end_sequence marker even if it's not the start of a
7910 statement.
7911 * symmisc.c (maintenance_print_one_line_table): Print end of
7912 sequence markers with 'END' not '0'.
7913
53af73bf
PA
79142020-01-24 Pedro Alves <palves@redhat.com>
7915
7916 PR gdb/25410
7917 * thread.c (scoped_restore_current_thread::restore): Use
7918 switch_to_inferior_no_thread.
7919 * exec.c: Include "progspace-and-thread.h".
7920 (add_target_sections, remove_target_sections):
7921 scoped_restore_current_pspace_and_thread instead of
7922 scoped_restore_current_thread.
7923 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
7924 and aspace to the inferior before calling clone_program_space.
7925 Remove stale comment.
7926
3050c6f4
CB
79272020-01-24 Christian Biesinger <cbiesinger@google.com>
7928
7929 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
7930 (arm_netbsd_nat_target::fetch_registers): ...this.
7931 (arm_nbsd_nat_target::store_registers): Rename to...
7932 (arm_netbsd_nat_target::store_registers): ...this.
7933
73685c7e
CB
79342020-01-24 Christian Biesinger <cbiesinger@google.com>
7935
7936 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7937 register_t.
7938
89203d40
CB
79392020-01-24 Christian Biesinger <cbiesinger@google.com>
7940
7941 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
7942 Update comment.
7943 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
7944 Likewise.
7945 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
7946 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
7947 the correct replacement (iterate_over_regset_sections).
7948 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
7949 Update comment.
7950
1ba1ac88
AB
79512020-01-24 Graham Markall <graham.markall@embecosm.com>
7952
7953 PR gdb/23718
7954 * gdb/python/python.c (execute_gdb_command): Call
7955 async_enable_stdin in catch block.
7956
f3364a6d
AB
79572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
7960 SWITCH_THRU_ALL_UIS.
7961
733d0a67
AB
79622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 PR tui/9765
7965 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
7966 comment, add extra parameter, and update to store previous symbol
7967 when appropriate.
7968 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
7969 add extra parameter.
7970 * tui/tui-disasm.c (tui_disassemble): Update header comment,
7971 remove unneeded parameter, add try/catch around gdb_print_insn,
7972 rewrite to add items to asm_lines vector.
7973 (tui_find_backward_disassembly_start_address): New function.
7974 (tui_find_disassembly_address): Updated throughout.
7975 (tui_disasm_window::set_contents): Update for changes to
7976 tui_disassemble.
7977 (tui_disasm_window::do_scroll_vertical): No need to adjust the
7978 number of lines to scroll.
7979
b3b3bada
SM
79802020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
7981
7982 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
7983 (SECT_OFF_DATA): Likewise.
7984 (SECT_OFF_RODATA): Likewise.
7985 (SECT_OFF_TEXT): Likewise.
7986 (SECT_OFF_BSS): Likewise.
7987 (struct objfile) <text_section_offset, data_section_offset>: New
7988 methods.
7989 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
7990 objfile::text_section_offset.
7991 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
7992 * coffread.c (coff_symtab_read): Likewise.
7993 (enter_linenos): Likewise.
7994 (process_coff_symbol): Likewise.
7995 * ctfread.c (get_objfile_text_range): Likewise.
7996 * dtrace-probe.c (dtrace_probe::get_relocated_address):
7997 Use objfile::data_section_offset.
7998 * dwarf2-frame.c (execute_cfa_program): Use
7999 objfile::text_section_offset.
8000 (dwarf2_frame_find_fde): Likewise.
8001 * dwarf2read.c (create_addrmap_from_index): Likewise.
8002 (create_addrmap_from_aranges): Likewise.
8003 (dw2_find_pc_sect_compunit_symtab): Likewise.
8004 (process_psymtab_comp_unit_reader): Likewise.
8005 (add_partial_symbol): Likewise.
8006 (add_partial_subprogram): Likewise.
8007 (process_full_comp_unit): Likewise.
8008 (read_file_scope): Likewise.
8009 (read_func_scope): Likewise.
8010 (read_lexical_block_scope): Likewise.
8011 (read_call_site_scope): Likewise.
8012 (dwarf2_rnglists_process): Likewise.
8013 (dwarf2_ranges_process): Likewise.
8014 (dwarf2_ranges_read): Likewise.
8015 (dwarf_decode_lines_1): Likewise.
8016 (new_symbol): Likewise.
8017 (dwarf2_fetch_die_loc_sect_off): Likewise.
8018 (dwarf2_per_cu_text_offset): Likewise.
8019 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8020 * hppa-tdep.c (read_unwind_info): Likewise.
8021 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8022 * psympriv.h (struct partial_symtab): Likewise.
8023 * psymtab.c (find_pc_sect_psymtab): Likewise.
8024 * solib-svr4.c (enable_break): Likewise.
8025 * stap-probe.c (relocate_address): Use
8026 objfile::data_section_offset.
8027 * xcoffread.c (enter_line_range): Use
8028 objfile::text_section_offset.
8029 (read_xcoff_symtab): Likewise.
8030
ab53f382
SM
80312020-01-23 Simon Marchi <simon.marchi@efficios.com>
8032
8033 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8034 declaration to narrower scopes.
8035
e7eee665
SM
80362020-01-23 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * darwin-nat.h (struct darwin_exception_msg, enum
8039 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8040 Move up.
8041 (class darwin_nat_target) <wait_1, check_new_threads,
8042 decode_exception_message, decode_message, stop_inferior,
8043 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8044 * darwin-nat.c (darwin_check_new_threads): Rename to...
8045 (darwin_nat_target::check_new_threads): ... this.
8046 (darwin_suspend_inferior_it): Remove.
8047 (darwin_decode_exception_message): Rename to...
8048 (darwin_nat_target::decode_exception_message): ... this.
8049 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8050 (darwin_decode_message): Rename to...
8051 (darwin_nat_target::decode_message): ... this.
8052 (cancel_breakpoint): Rename to...
8053 (darwin_nat_target::cancel_breakpoint): ... this.
8054 (darwin_wait): Rename to...
8055 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8056 instead of iterate_over_inferiors.
8057 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8058 (darwin_stop_inferior): Rename to...
8059 (darwin_nat_target::stop_inferior): ... this.
8060 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8061 (darwin_init_thread_list): Rename to...
8062 (darwin_nat_target::init_thread_list): ... this.
8063 (darwin_ptrace_him): Rename to...
8064 (darwin_nat_target::ptrace_him): ... this.
8065 (darwin_nat_target::create_inferior): Pass lambda function to
8066 fork_inferior.
8067 (darwin_nat_target::detach): Call stop_inferior instead of
8068 darwin_stop_inferior.
8069 * fork-inferior.h (fork_inferior): Change init_trace_fun
8070 parameter to gdb::function_view.
8071 * fork-inferior.c (fork_inferior): Likewise.
8072
c162ed3e
HD
80732020-01-23 Hannes Domani <ssbssa@yahoo.de>
8074
8075 * i386-cygwin-tdep.c (core_process_module_section): Update.
8076 * windows-nat.c (struct lm_info_windows): Add text_offset.
8077 (windows_xfer_shared_libraries): Update.
8078 * windows-tdep.c (windows_xfer_shared_library):
8079 Add text_offset_cached argument.
8080 * windows-tdep.h (windows_xfer_shared_library): Update.
8081
a1237872
SM
80822020-01-21 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8085
b3ee6dd9
SM
80862020-01-21 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8089 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8090 replace with range-based for.
8091 (gdbsim_interrupt_inferior): Remove.
8092 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
8093 with a range-based for. Inline code from
8094 gdbsim_interrupt_inferior.
8095
f9fac3c8
SM
80962020-01-21 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * infrun.c (proceed): Fix indentation.
8099
f6474de9
TT
81002020-01-21 Tom Tromey <tromey@adacore.com>
8101
8102 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
8103 * python/python.c (python_extension_ops): Update.
8104 (gdbpy_colorize): New function.
8105 * python/lib/gdb/__init__.py (colorize): New function.
8106 * extension.h (ext_lang_colorize): Declare.
8107 * extension.c (ext_lang_colorize): New function.
8108 * extension-priv.h (struct extension_language_ops) <colorize>: New
8109 member.
8110 * cli/cli-style.c (_initialize_cli_style): Update help text.
8111
f0c702d4
LM
81122020-01-21 Luis Machado <luis.machado@linaro.org>
8113
8114 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
8115 <cond>: Change type to bool.
8116 (aarch64_displaced_step_b_cond): Update cond to use bool type.
8117 (aarch64_displaced_step_cb): Likewise.
8118 (aarch64_displaced_step_tb): Likewise.
8119
1ab139e5
LM
81202020-01-21 Luis Machado <luis.machado@linaro.org>
8121
8122 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
8123 output.
8124
0c271889
LM
81252020-01-21 Luis Machado <luis.machado@linaro.org>
8126
8127 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
8128 <pc_adjust>: Adjust the documentation.
8129 (aarch64_displaced_step_fixup): Check if PC really moved before
8130 adjusting it.
8131
4d89c1c7
TT
81322020-01-19 Tom Tromey <tom@tromey.com>
8133
8134 * disasm.c (~gdb_disassembler): New destructor.
8135 (gdb_buffered_insn_length): Call disassemble_free_target.
8136 * disasm.h (class gdb_disassembler): Declare destructor. Use
8137 DISABLE_COPY_AND_ASSIGN.
8138
c0ab21c2
TT
81392020-01-19 Tom Tromey <tom@tromey.com>
8140
8141 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
8142 (die_reader_func_ftype): Remove.
8143 (cutu_reader): New class.
8144 (dw2_get_file_names_reader): Remove "data" parameter.
8145 (dw2_get_file_names): Use cutu_reader.
8146 (create_debug_type_hash_table): Update.
8147 (read_cutu_die_from_dwo): Update comment.
8148 (lookup_dwo_unit): Add dwo_name parameter.
8149 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
8150 die_reader_func_ftype and data parameters.
8151 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
8152 Remove die_reader_func_ftype and data parameters.
8153 (~cutu_reader): New; from init_cutu_and_read_dies.
8154 (cutu_reader::cutu_reader): Rename from
8155 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
8156 and data parameters.
8157 (init_cutu_and_read_dies_simple): Remove.
8158 (struct process_psymtab_comp_unit_data): Remove.
8159 (process_psymtab_comp_unit_reader): Remove data parameter; add
8160 want_partial_unit and pretend_language parameters.
8161 (process_psymtab_comp_unit): Use cutu_reader.
8162 (build_type_psymtabs_reader): Remove data parameter.
8163 (build_type_psymtabs_1): Use cutu_reader.
8164 (process_skeletonless_type_unit): Likewise.
8165 (load_partial_comp_unit_reader): Remove.
8166 (load_partial_comp_unit): Use cutu_reader.
8167 (load_full_comp_unit_reader): Remove.
8168 (load_full_comp_unit): Use cutu_reader.
8169 (struct create_dwo_cu_data): Remove.
8170 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
8171 dwo_unit parameters.
8172 (create_cus_hash_table): Use cutu_reader.
8173 (struct dwarf2_read_addr_index_data): Remove.
8174 (dwarf2_read_addr_index_reader): Remove.
8175 (dwarf2_read_addr_index): Use cutu_reader.
8176 (read_signatured_type_reader): Remove.
8177 (read_signatured_type): Use cutu_reader.
8178
45bbae5c
TT
81792020-01-19 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
8182 * tui/tui-wingeneral.h (class tui_suppress_output): New.
8183 (tui_wrefresh): Declare.
8184 * tui/tui-wingeneral.c (suppress_output): New global.
8185 (tui_suppress_output, ~tui_suppress_output): New constructor and
8186 destructor.
8187 (tui_wrefresh): New function.
8188 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
8189 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
8190 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
8191 method.
8192 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
8193 tui_wrefresh.
8194 (tui_data_window::no_refresh): New method.
8195 (tui_data_item_window::refresh_window): Call tui_wrefresh.
8196 (tui_reg_command): Use tui_suppress_output
8197 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
8198 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
8199 method.
8200 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
8201
4f13c1c0
TT
82022020-01-19 Tom Tromey <tom@tromey.com>
8203
8204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8205 Handle case where symtab is null.
8206
fa47e446
SM
82072020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
8208
8209 * linux-fork.c (one_fork_p): Simplify.
8210
26f42329
SM
82112020-01-17 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * top.c (struct qt_args): Remove.
8214 (kill_or_detach): Change return type to void, replace `void *`
8215 parameter with a proper one.
8216 (print_inferior_quit_action): Likewise.
8217 (quit_confirm): Use range-based for loop to iterate over inferiors.
8218 (quit_force): Likewise.
8219
a9ac81b1
SM
82202020-01-17 Simon Marchi <simon.marchi@efficios.com>
8221
8222 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
8223 `void *` parameter with proper parameters.
8224 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
8225 (print_one_inferior): Change return type to void, replace `void *`
8226 parameter with proper parameters.
8227 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
8228 inferiors.
8229 (get_other_inferior): Remove.
8230 (mi_cmd_remove_inferior): Use range-based loop to iterate over
8231 inferiors.
8232
788eca49
SM
82332020-01-17 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * mi/mi-interp.c (report_initial_inferior): Remove.
8236 (mi_interp::init): Use range-based for to iterate over inferiors.
8237
d9bc85b6
SM
82382020-01-17 Simon Marchi <simon.marchi@efficios.com>
8239
8240 * python/py-inferior.c (build_inferior_list): Remove.
8241 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
8242
40c94099
CB
82432020-01-16 Christian Biesinger <cbiesinger@google.com>
8244
8245 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
8246 (btrace_stitch_trace): Likewise.
8247 * charset.c (intermediate_encoding): Likewise (vaild).
8248 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
8249 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
8250 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
8251
e0cdfe3c
HD
82522020-01-16 Hannes Domani <ssbssa@yahoo.de>
8253
8254 * windows-tdep.c (windows_get_tlb_type):
8255 Add rtl_user_process_parameters type.
8256
790f1718 82572020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 8258 Norbert Lange <nolange79@gmail.com>
790f1718
PA
8259
8260 PR build/24805
8261 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
8262 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
8263 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
8264 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
8265 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
8266 (ps_plog): Redeclare exported functions with default visibility.
8267
3112ed97
NA
82682020-01-16 Nitika Achra <Nitika.Achra@amd.com>
8269
8270 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
8271 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
8272
8dc3273e
SM
82732020-01-15 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * infcmd.c (post_create_inferior): Use get_thread_regcache
8276 instead of get_current_regcache.
8277
ff47f4f0
TT
82782020-01-14 Tom Tromey <tom@tromey.com>
8279
8280 PR symtab/12535:
8281 * python/python.c (gdbpy_decode_line): Treat empty string the same
8282 as no argument.
8283
975f45b7
TT
82842020-01-14 Tom Tromey <tom@tromey.com>
8285
8286 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
8287
25e57356
TT
82882020-01-14 Tom Tromey <tom@tromey.com>
8289
8290 * nat/linux-btrace.c: Don't include <config.h>.
8291 * nat/linux-ptrace.c: Don't include <config.h>.
8292 * nat/x86-linux-dregs.c: Don't include <config.h>.
8293
05ea2a05
TT
82942020-01-14 Tom Tromey <tom@tromey.com>
8295
8296 * configure: Rebuild.
8297 * configure.ac: Move many checks to ../gdbsupport/common.m4.
8298
01027315
TT
82992020-01-14 Tom Tromey <tom@tromey.com>
8300
8301 * nat/x86-linux-dregs.c: Include configh.h.
8302 * nat/linux-ptrace.c: Include configh.h.
8303 * nat/linux-btrace.c: Include configh.h.
8304 * defs.h: Include config.h, bfd.h.
8305 * configure.ac: Don't source common.host.
8306 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
8307 * configure: Rebuild.
8308 * acinclude.m4: Update path.
8309 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
8310 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
8311 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
8312 (CLIBS): Add LIBSUPPORT.
8313 (CDEPS): Likewise.
8314 (COMMON_SFILES): Remove gdbsupport files.
8315 (HFILES_NO_SRCDIR): Likewise.
8316 (stamp-version): Update path to create-version.sh.
8317 (ALLDEPFILES): Remove gdbsupport files.
8318
b2ceabe8
TT
83192020-01-14 Tom Tromey <tom@tromey.com>
8320
8321 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
8322 USE_WIN32API when needed.
8323 * configure.ac (USE_WIN32API): Don't define.
8324 (WIN32LIBS): Use WIN32APILIBS.
8325 * configure: Rebuild.
8326
25c51f71
TT
83272020-01-14 Tom Tromey <tom@tromey.com>
8328
8329 * configure: Rebuild.
8330 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
8331
717c684d
BE
83322020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8333
8334 * skip.c (skip_function_command): Make skip w/o arguments use the
8335 name of the inlined function if pc is inside any inlined function.
8336
7da6a5b9
LM
83372020-01-14 Luis Machado <luis.machado@linaro.org>
8338
8339 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
8340 * infrun.c (resume_1): Likewise.
8341 (handle_inferior_event): Remove stale comment.
8342 * linux-nat.c (linux_nat_target::resume): Update comments.
8343 (save_stop_reason): Likewise.
8344 (linux_nat_filter_event): Likewise.
8345 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
8346
44e4c775
AB
83472020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8348
8349 * elfread.c (record_minimal_symbol): Set section index to 0 for
8350 non-allocatable sections.
8351
18a8505e
AT
8352
83532020-01-13 Ali Tamur <tamur@google.com>
8354
8355 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
8356 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
8357 to gdb::optional. Update comments.
8358 (dwo_file): Update comments.
8359 (read_attribute): Update API to take an additional out parameter,
8360 need_reprocess. This is used to mark attributes that need other
8361 attributes (e.g. str_offsets_base) for correct computation which may not
8362 have been read yet.
8363 (read_attribute_reprocess): New function declaration.
8364 (read_addr_index): Likewise.
8365 (read_dwo_str_index): Likewise.
8366 (read_stub_str_index): Likewise.
8367 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
8368 (lookup_addr_base): New function definition.
8369 (lookup_ranges_base): Likewise.
8370 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
8371 lookup_ranges_base.
8372 (init_cutu_and_read_dies): Update comments.
8373 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
8374 unit. This is used to inherit parent's str_offsets_base and addr_base.
8375 Update comments.
8376 (init_cutu_and_read_dies_simple): Reflect API changes.
8377 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
8378 (create_cus_hash_table): Change API to take parent compile unit.
8379 Reflect API changes.
8380 (open_and_init_dwo_file): Reflect API changes.
8381 (dwarf2_get_pc_bounds): Update comments.
8382 (dwarf2_record_block_ranges): Likewise.
8383 (read_full_die_1): Change implementation to reprocess attributes that
8384 need str_offsets_base and addr_base.
8385 (partial_die_info::read): Likewise.
8386 (read_attribute_reprocess): New function definition.
8387 (read_attribute_value): Change API to take an additional out parameter,
8388 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
8389 when a non-dwo compile unit has index based attributes.
8390 (read_attribute): Reflect API changes.
8391 (read_addr_index_1): Reflect API changes. Update comments.
8392 (dwarf2_read_addr_index_data): Reflect API changes.
8393 (dwarf2_read_addr_index): Likewise.
8394 (read_str_index): Change API and implementation. This becomes a helper
8395 to be used by the new string index related methods. Update error
8396 message and comments.
8397 (read_dwo_str_index): New function definition.
8398 (read_stub_str_index): Likewise.
8399 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
8400 * symfile.h (dwarf2_debug_sections): Likewise.
8401 * xcoffread.c (dwarf2_debug_sections): Likewise.
8402
0cac9354
SM
84032020-01-13 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * gdbcore.h (struct core_fns) <core_read_registers>: Change
8406 core_reg_sect type to gdb_byte *.
8407 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
8408 * cris-tdep.c (fetch_core_registers): Likewise.
8409 * corelow.c (core_target::get_core_register_section): Change
8410 type of `contents` to gdb::byte_vector.
8411
9a6d629c
AB
84122020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * tui/tui-wingeneral.c (box_win): Position the title in the center
8415 of the border.
8416
d8b2f9e3
SM
84172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8418
8419 * corelow.c (core_target::get_core_register_section): Use
8420 std::vector instead of alloca.
8421
bb564c58
SM
84222020-01-13 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * warning.m4: Add -Wmissing-declarations to build_warnings.
8425 * configure: Re-generate.
8426
6b366111
SM
84272020-01-13 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * python/python.c (init__gdb_module): Add declaration.
8430
6c265988
SM
84312020-01-13 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
8434 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
8435 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
8436 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
8437 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
8438 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
8439 * ada-exp.y (_initialize_ada_exp): Add declaration.
8440 * ada-lang.c (_initialize_ada_language): Add declaration.
8441 * ada-tasks.c (_initialize_tasks): Add declaration.
8442 * agent.c (_initialize_agent): Add declaration.
8443 * aix-thread.c (_initialize_aix_thread): Add declaration.
8444 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
8445 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
8446 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
8447 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
8448 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
8449 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
8450 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
8451 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
8452 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
8453 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
8454 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
8455 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
8456 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
8457 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
8458 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
8459 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
8460 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
8461 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
8462 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
8463 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
8464 * annotate.c (_initialize_annotate): Add declaration.
8465 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
8466 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
8467 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
8468 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
8469 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
8470 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
8471 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
8472 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
8473 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
8474 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
8475 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
8476 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
8477 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
8478 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
8479 * auto-load.c (_initialize_auto_load): Add declaration.
8480 * auxv.c (_initialize_auxv): Add declaration.
8481 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
8482 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
8483 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
8484 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
8485 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
8486 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
8487 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
8488 * breakpoint.c (_initialize_breakpoint): Add declaration.
8489 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
8490 * btrace.c (_initialize_btrace): Add declaration.
8491 * charset.c (_initialize_charset): Add declaration.
8492 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
8493 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
8494 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
8495 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
8496 * cli/cli-script.c (_initialize_cli_script): Add declaration.
8497 * cli/cli-style.c (_initialize_cli_style): Add declaration.
8498 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
8499 * coffread.c (_initialize_coffread): Add declaration.
8500 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
8501 * compile/compile.c (_initialize_compile): Add declaration.
8502 * complaints.c (_initialize_complaints): Add declaration.
8503 * completer.c (_initialize_completer): Add declaration.
8504 * copying.c (_initialize_copying): Add declaration.
8505 * corefile.c (_initialize_core): Add declaration.
8506 * corelow.c (_initialize_corelow): Add declaration.
8507 * cp-abi.c (_initialize_cp_abi): Add declaration.
8508 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
8509 * cp-support.c (_initialize_cp_support): Add declaration.
8510 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
8511 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
8512 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
8513 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
8514 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
8515 * ctfread.c (_initialize_ctfread): Add declaration.
8516 * d-lang.c (_initialize_d_language): Add declaration.
8517 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
8518 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
8519 * dbxread.c (_initialize_dbxread): Add declaration.
8520 * dcache.c (_initialize_dcache): Add declaration.
8521 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
8522 * disasm.c (_initialize_disasm): Add declaration.
8523 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
8524 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
8525 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
8526 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
8527 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
8528 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
8529 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
8530 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
8531 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
8532 * elfread.c (_initialize_elfread): Add declaration.
8533 * exec.c (_initialize_exec): Add declaration.
8534 * extension.c (_initialize_extension): Add declaration.
8535 * f-lang.c (_initialize_f_language): Add declaration.
8536 * f-valprint.c (_initialize_f_valprint): Add declaration.
8537 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
8538 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
8539 * filesystem.c (_initialize_filesystem): Add declaration.
8540 * findcmd.c (_initialize_mem_search): Add declaration.
8541 * findvar.c (_initialize_findvar): Add declaration.
8542 * fork-child.c (_initialize_fork_child): Add declaration.
8543 * frame-base.c (_initialize_frame_base): Add declaration.
8544 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
8545 * frame.c (_initialize_frame): Add declaration.
8546 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
8547 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
8548 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
8549 * gcore.c (_initialize_gcore): Add declaration.
8550 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
8551 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
8552 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
8553 * gdbarch.c (_initialize_gdbarch): Add declaration.
8554 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
8555 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
8556 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
8557 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
8558 * go-lang.c (_initialize_go_language): Add declaration.
8559 * go32-nat.c (_initialize_go32_nat): Add declaration.
8560 * guile/guile.c (_initialize_guile): Add declaration.
8561 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
8562 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
8563 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
8564 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
8565 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
8566 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
8567 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
8568 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
8569 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
8570 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
8571 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
8572 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
8573 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
8574 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
8575 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
8576 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
8577 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
8578 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
8579 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
8580 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
8581 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
8582 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
8583 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
8584 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
8585 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
8586 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
8587 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
8588 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
8589 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
8590 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
8591 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
8592 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
8593 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
8594 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
8595 * infcall.c (_initialize_infcall): Add declaration.
8596 * infcmd.c (_initialize_infcmd): Add declaration.
8597 * inflow.c (_initialize_inflow): Add declaration.
8598 * infrun.c (_initialize_infrun): Add declaration.
8599 * interps.c (_initialize_interpreter): Add declaration.
8600 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
8601 * jit.c (_initialize_jit): Add declaration.
8602 * language.c (_initialize_language): Add declaration.
8603 * linux-fork.c (_initialize_linux_fork): Add declaration.
8604 * linux-nat.c (_initialize_linux_nat): Add declaration.
8605 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
8606 * linux-thread-db.c (_initialize_thread_db): Add declaration.
8607 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
8608 * m2-lang.c (_initialize_m2_language): Add declaration.
8609 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
8610 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
8611 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
8612 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
8613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
8614 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
8615 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
8616 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
8617 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
8618 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
8619 * machoread.c (_initialize_machoread): Add declaration.
8620 * macrocmd.c (_initialize_macrocmd): Add declaration.
8621 * macroscope.c (_initialize_macroscope): Add declaration.
8622 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
8623 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
8624 * maint.c (_initialize_maint_cmds): Add declaration.
8625 * mdebugread.c (_initialize_mdebugread): Add declaration.
8626 * memattr.c (_initialize_mem): Add declaration.
8627 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
8628 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
8629 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
8630 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
8631 * mi/mi-main.c (_initialize_mi_main): Add declaration.
8632 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
8633 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
8634 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
8635 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
8636 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
8637 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
8638 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
8639 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
8640 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
8641 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
8642 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
8643 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
8644 * mipsread.c (_initialize_mipsread): Add declaration.
8645 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
8646 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
8647 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
8648 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
8649 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
8650 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
8651 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
8652 * nto-procfs.c (_initialize_procfs): Add declaration.
8653 * objc-lang.c (_initialize_objc_language): Add declaration.
8654 * observable.c (_initialize_observer): Add declaration.
8655 * opencl-lang.c (_initialize_opencl_language): Add declaration.
8656 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
8657 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
8658 * osabi.c (_initialize_gdb_osabi): Add declaration.
8659 * osdata.c (_initialize_osdata): Add declaration.
8660 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
8661 * parse.c (_initialize_parse): Add declaration.
8662 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
8663 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
8664 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
8665 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
8666 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
8667 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
8668 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
8669 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
8670 * printcmd.c (_initialize_printcmd): Add declaration.
8671 * probe.c (_initialize_probe): Add declaration.
8672 * proc-api.c (_initialize_proc_api): Add declaration.
8673 * proc-events.c (_initialize_proc_events): Add declaration.
8674 * proc-service.c (_initialize_proc_service): Add declaration.
8675 * procfs.c (_initialize_procfs): Add declaration.
8676 * producer.c (_initialize_producer): Add declaration.
8677 * psymtab.c (_initialize_psymtab): Add declaration.
8678 * python/python.c (_initialize_python): Add declaration.
8679 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
8680 * record-btrace.c (_initialize_record_btrace): Add declaration.
8681 * record-full.c (_initialize_record_full): Add declaration.
8682 * record.c (_initialize_record): Add declaration.
8683 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
8684 * regcache.c (_initialize_regcache): Add declaration.
8685 * reggroups.c (_initialize_reggroup): Add declaration.
8686 * remote-notif.c (_initialize_notif): Add declaration.
8687 * remote-sim.c (_initialize_remote_sim): Add declaration.
8688 * remote.c (_initialize_remote): Add declaration.
8689 * reverse.c (_initialize_reverse): Add declaration.
8690 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
8691 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
8692 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
8693 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
8694 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
8695 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
8696 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
8697 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
8698 Add declaration.
8699 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
8700 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
8701 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
8702 * rust-exp.y (_initialize_rust_exp): Add declaration.
8703 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
8704 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
8705 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
8706 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
8707 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
8708 * score-tdep.c (_initialize_score_tdep): Add declaration.
8709 * ser-go32.c (_initialize_ser_dos): Add declaration.
8710 * ser-mingw.c (_initialize_ser_windows): Add declaration.
8711 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
8712 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
8713 * ser-uds.c (_initialize_ser_socket): Add declaration.
8714 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
8715 * serial.c (_initialize_serial): Add declaration.
8716 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
8717 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
8718 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
8719 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
8720 * skip.c (_initialize_step_skip): Add declaration.
8721 * sol-thread.c (_initialize_sol_thread): Add declaration.
8722 * solib-aix.c (_initialize_solib_aix): Add declaration.
8723 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
8724 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
8725 * solib-frv.c (_initialize_frv_solib): Add declaration.
8726 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
8727 * solib-target.c (_initialize_solib_target): Add declaration.
8728 * solib.c (_initialize_solib): Add declaration.
8729 * source-cache.c (_initialize_source_cache): Add declaration.
8730 * source.c (_initialize_source): Add declaration.
8731 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
8732 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
8733 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
8734 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
8735 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
8736 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
8737 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
8738 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
8739 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
8740 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
8741 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
8742 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
8743 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
8744 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
8745 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
8746 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
8747 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
8748 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
8749 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
8750 * stabsread.c (_initialize_stabsread): Add declaration.
8751 * stack.c (_initialize_stack): Add declaration.
8752 * stap-probe.c (_initialize_stap_probe): Add declaration.
8753 * std-regs.c (_initialize_frame_reg): Add declaration.
8754 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
8755 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
8756 * symfile.c (_initialize_symfile): Add declaration.
8757 * symmisc.c (_initialize_symmisc): Add declaration.
8758 * symtab.c (_initialize_symtab): Add declaration.
8759 * target.c (_initialize_target): Add declaration.
8760 * target-connection.c (_initialize_target_connection): Add
8761 declaration.
8762 * target-dcache.c (_initialize_target_dcache): Add declaration.
8763 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
8764 * thread.c (_initialize_thread): Add declaration.
8765 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
8766 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
8767 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
8768 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
8769 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
8770 * tracectf.c (_initialize_ctf): Add declaration.
8771 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
8772 * tracefile.c (_initialize_tracefile): Add declaration.
8773 * tracepoint.c (_initialize_tracepoint): Add declaration.
8774 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
8775 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
8776 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
8777 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
8778 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
8779 * tui/tui-win.c (_initialize_tui_win): Add declaration.
8780 * tui/tui.c (_initialize_tui): Add declaration.
8781 * typeprint.c (_initialize_typeprint): Add declaration.
8782 * ui-style.c (_initialize_ui_style): Add declaration.
8783 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
8784 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
8785 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
8786 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
8787 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
8788 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
8789 * unittests/filtered_iterator-selftests.c
8790 (_initialize_filtered_iterator_selftests): Add declaration.
8791 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
8792 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
8793 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
8794 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
8795 * unittests/main-thread-selftests.c
8796 (_initialize_main_thread_selftests): Add declaration.
8797 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
8798 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
8799 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
8800 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
8801 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
8802 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
8803 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
8804 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
8805 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
8806 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
8807 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
8808 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
8809 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
8810 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
8811 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
8812 declaration.
8813 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
8814 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
8815 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
8816 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
8817 * user-regs.c (_initialize_user_regs): Add declaration.
8818 * utils.c (_initialize_utils): Add declaration.
8819 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
8820 * valops.c (_initialize_valops): Add declaration.
8821 * valprint.c (_initialize_valprint): Add declaration.
8822 * value.c (_initialize_values): Add declaration.
8823 * varobj.c (_initialize_varobj): Add declaration.
8824 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
8825 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
8826 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
8827 * windows-nat.c (_initialize_windows_nat): Add declaration.
8828 (_initialize_check_for_gdb_ini): Add declaration.
8829 (_initialize_loadable): Add declaration.
8830 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
8831 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
8832 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
8833 * xcoffread.c (_initialize_xcoffread): Add declaration.
8834 * xml-support.c (_initialize_xml_support): Add declaration.
8835 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
8836 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
8837 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
8838 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
8839
e2de1eec
SM
88402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8841
8842 * regformats/regdat.sh: Generate declaration for init function.
8843
e0037b4c
SM
88442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8845
8846 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
8847 up.
8848 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
8849 close_one_inferior>: New methods.
8850 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
8851 pass down target to find_inferior_pid.
8852 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
8853 Pass down target to find_inferior_ptid.
8854 (gdbsim_target::create_inferior): Pass down target to
8855 add_thread_silent.
8856 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
8857 target down to find_inferior_ptid and switch_to_thread.
8858 (gdbsim_target::close): Update to call close_one_inferior.
8859 (struct resume_data): Remove.
8860 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
8861 directly, rather than through a void pointer.
8862 (gdbsim_target::resume): Update to call resume_one_inferior.
8863
58920b5b
SM
88642020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
8865
8866 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
8867
4ec89149
PA
88682020-01-12 Pedro Alves <palves@redhat.com>
8869
8870 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
8871 directly for the current inferior instead of
8872 discard_all_inferiors.
8873 (discard_all_inferiors): Delete.
8874
7c392d1d
TT
88752020-01-11 Tom Tromey <tom@tromey.com>
8876
8877 * tui/tui-wingeneral.c (box_win): Check cli_styling.
8878 * tui/tui-winsource.c (tui_source_window_base::refill): Use
8879 deprecated_safe_get_selected_frame.
8880
d9ebdab7
TBA
88812020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8882
8883 * inferior.c (print_inferior): Switch inferior before printing it.
8884
f3c469b9
PA
88852020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
8886 Pedro Alves <palves@redhat.com>
8887
8888 * progspace-and-thread.c (switch_to_program_space_and_thread):
8889 Assert there's an inferior for PSPACE. Use
8890 switch_to_inferior_no_thread to switch the inferior too.
8891 * progspace.c (program_space::~program_space): Call
8892 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
8893 (program_space::free_all_objfiles): Don't call clear_symtab_users
8894 here.
8895 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
8896
65c574f6
PA
88972020-01-10 Pedro Alves <palves@redhat.com>
8898
8899 * NEWS: Mention multi-target debugging, "info connections", and
8900 "add-inferior -no-connection".
8901
2f4fcf00
PA
89022020-01-10 Pedro Alves <palves@redhat.com>
8903
8904 * infrun.c: Include "target-connection.h".
8905 (check_multi_target_resumption): New.
8906 (proceed): Call it.
8907 * target-connection.c (make_target_connection_string): Make
8908 extern.
8909 * target-connection.h (make_target_connection_string): Declare.
8910
121b3efd
PA
89112020-01-10 Pedro Alves <palves@redhat.com>
8912
8913 * Makefile.in (COMMON_SFILES): Add target-connection.c.
8914 * inferior.c (uiout_field_connection): New function.
8915 (print_inferior): Add new "connection-id" column.
8916 (add_inferior_command): Show connection number/string of added
8917 inferior.
8918 * process-stratum-target.h
8919 (process_stratum_target::connection_string): New virtual method.
8920 (process_stratum_target::connection_number): New field.
8921 * remote.c (remote_target::connection_string): New override.
8922 * target-connection.c: New file.
8923 * target-connection.h: New file.
8924 * target.c (decref_target): Remove process_stratum targets from
8925 the connection list.
8926 (target_stack::push): Add process_stratum targets to the
8927 connection list.
8928
4f837581
PA
89292020-01-10 Pedro Alves <palves@redhat.com>
8930
8931 Revert:
8932 2016-04-12 Pedro Alves <palves@redhat.com>
8933 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
8934 Remove references to name.
8935 * serial.h (struct serial) <name>: Delete.
8936
f4ec508e
PA
89372020-01-10 Pedro Alves <palves@redhat.com>
8938
8939 * gdbarch-selftests.c (register_to_value_test): Remove "target
8940 already pushed" check.
8941
5b6d1e4f
PA
89422020-01-10 Pedro Alves <palves@redhat.com>
8943 John Baldwin <jhb@FreeBSD.org>
8944
8945 * aarch64-linux-nat.c
8946 (aarch64_linux_nat_target::thread_architecture): Adjust.
8947 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
8948 (task_command_1): Likewise.
8949 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
8950 (aix_thread_target::wait, aix_thread_target::fetch_registers)
8951 (aix_thread_target::store_registers)
8952 (aix_thread_target::thread_alive): Adjust.
8953 * amd64-fbsd-tdep.c: Include "inferior.h".
8954 (amd64fbsd_get_thread_local_address): Pass down target.
8955 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
8956 thread's gdbarch instead of target_gdbarch.
8957 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
8958 get_last_target_status.
8959 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
8960 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
8961 inferiors.
8962 (update_inserted_breakpoint_locations): Skip if inferiors with no
8963 execution.
8964 (update_global_location_list): When handling moribund locations,
8965 find representative inferior for location's pspace, and use thread
8966 count of its process_stratum target.
8967 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
8968 * bsd-uthread.c (bsd_uthread_target::wait): Use
8969 as_process_stratum_target and adjust thread_change_ptid and
8970 add_thread calls.
8971 (bsd_uthread_target::update_thread_list): Use
8972 as_process_stratum_target and adjust find_thread_ptid,
8973 thread_change_ptid and add_thread calls.
8974 * btrace.c (maint_btrace_packet_history_cmd): Adjust
8975 find_thread_ptid call.
8976 * corelow.c (add_to_thread_list): Adjust add_thread call.
8977 (core_target_open): Adjust add_thread_silent and thread_count
8978 calls.
8979 (core_target::pid_to_str): Adjust find_inferior_ptid call.
8980 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
8981 * event-top.c (async_disconnect): Pop targets from all inferiors.
8982 * exec.c (add_target_sections): Push exec target on all inferiors
8983 sharing the program space.
8984 (remove_target_sections): Remove the exec target from all
8985 inferiors sharing the program space.
8986 (exec_on_vfork): New.
8987 * exec.h (exec_on_vfork): Declare.
8988 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
8989 Pass it down.
8990 (fbsd_nat_target::update_thread_list): Adjust.
8991 (fbsd_nat_target::resume): Adjust.
8992 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
8993 down.
8994 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
8995 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
8996 get_thread_arch_regcache call.
8997 * fork-child.c (gdb_startup_inferior): Pass target down to
8998 startup_inferior and set_executing.
8999 * gdbthread.h (struct process_stratum_target): Forward declare.
9000 (add_thread, add_thread_silent, add_thread_with_info)
9001 (in_thread_list): Add process_stratum_target parameter.
9002 (find_thread_ptid(inferior*, ptid_t)): New overload.
9003 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9004 parameter.
9005 (all_threads()): Delete overload.
9006 (all_threads, all_non_exited_threads): Add process_stratum_target
9007 parameter.
9008 (all_threads_safe): Use brace initialization.
9009 (thread_count): Add process_stratum_target parameter.
9010 (set_resumed, set_running, set_stop_requested, set_executing)
9011 (threads_are_executing, finish_thread_state): Add
9012 process_stratum_target parameter.
9013 (switch_to_thread): Use is_current_thread.
9014 * i386-fbsd-tdep.c: Include "inferior.h".
9015 (i386fbsd_get_thread_local_address): Pass down target.
9016 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9017 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9018 have_inferiors check.
9019 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9020 (inf_ptrace_target::attach): Adjust.
9021 * infcall.c (run_inferior_call): Adjust.
9022 * infcmd.c (run_command_1): Pass target to
9023 scoped_finish_thread_state.
9024 (proceed_thread_callback): Skip inferiors with no execution.
9025 (continue_command): Rename 'all_threads' local to avoid hiding
9026 'all_threads' function. Adjust get_last_target_status call.
9027 (prepare_one_step): Adjust set_running call.
9028 (signal_command): Use user_visible_resume_target. Compare thread
9029 pointers instead of inferior_ptid.
9030 (info_program_command): Adjust to pass down target.
9031 (attach_command): Mark target's 'thread_executing' flag.
9032 (stop_current_target_threads_ns): New, factored out from ...
9033 (interrupt_target_1): ... this. Switch inferior before making
9034 target calls.
9035 * inferior-iter.h
9036 (struct all_inferiors_iterator, struct all_inferiors_range)
9037 (struct all_inferiors_safe_range)
9038 (struct all_non_exited_inferiors_range): Filter on
9039 process_stratum_target too. Remove explicit.
9040 * inferior.c (inferior::inferior): Push dummy target on target
9041 stack.
9042 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9043 Add process_stratum_target parameter, and pass it down.
9044 (have_live_inferiors): Adjust.
9045 (switch_to_inferior_and_push_target): New.
9046 (add_inferior_command, clone_inferior_command): Handle
9047 "-no-connection" parameter. Use
9048 switch_to_inferior_and_push_target.
9049 (_initialize_inferior): Mention "-no-connection" option in
9050 the help of "add-inferior" and "clone-inferior" commands.
9051 * inferior.h: Include "process-stratum-target.h".
9052 (interrupt_target_1): Use bool.
9053 (struct inferior) <push_target, unpush_target, target_is_pushed,
9054 find_target_beneath, top_target, process_target, target_at,
9055 m_stack>: New.
9056 (discard_all_inferiors): Delete.
9057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9058 (all_inferiors, all_non_exited_inferiors): Add
9059 process_stratum_target parameter.
9060 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9061 (target_last_proc_target): New global.
9062 (follow_fork_inferior): Push target on new inferior. Pass target
9063 to add_thread_silent. Call exec_on_vfork. Handle target's
9064 reference count.
9065 (follow_fork): Adjust get_last_target_status call. Also consider
9066 target.
9067 (follow_exec): Push target on new inferior.
9068 (struct execution_control_state) <target>: New field.
9069 (user_visible_resume_target): New.
9070 (do_target_resume): Call target_async.
9071 (resume_1): Set target's threads_executing flag. Consider resume
9072 target.
9073 (commit_resume_all_targets): New.
9074 (proceed): Also consider resume target. Skip threads of inferiors
9075 with no execution. Commit resumtion in all targets.
9076 (start_remote): Pass current inferior to wait_for_inferior.
9077 (infrun_thread_stop_requested): Consider target as well. Pass
9078 thread_info pointer to clear_inline_frame_state instead of ptid.
9079 (infrun_thread_thread_exit): Consider target as well.
9080 (random_pending_event_thread): New inferior parameter. Use it.
9081 (do_target_wait): Rename to ...
9082 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9083 down.
9084 (threads_are_resumed_pending_p, do_target_wait): New.
9085 (prepare_for_detach): Adjust calls.
9086 (wait_for_inferior): New inferior parameter. Handle it. Use
9087 do_target_wait_1 instead of do_target_wait.
9088 (fetch_inferior_event): Adjust. Switch to representative
9089 inferior. Pass target down.
9090 (set_last_target_status): Add process_stratum_target parameter.
9091 Save target in global.
9092 (get_last_target_status): Add process_stratum_target parameter and
9093 handle it.
9094 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
9095 (context_switch): Check inferior_ptid == null_ptid before calling
9096 inferior_thread().
9097 (get_inferior_stop_soon): Pass down target.
9098 (wait_one): Rename to ...
9099 (poll_one_curr_target): ... this.
9100 (struct wait_one_event): New.
9101 (wait_one): New.
9102 (stop_all_threads): Adjust.
9103 (handle_no_resumed, handle_inferior_event): Adjust to consider the
9104 event's target.
9105 (switch_back_to_stepped_thread): Also consider target.
9106 (print_stop_event): Update.
9107 (normal_stop): Update. Also consider the resume target.
9108 * infrun.h (wait_for_inferior): Remove declaration.
9109 (user_visible_resume_target): New declaration.
9110 (get_last_target_status, set_last_target_status): New
9111 process_stratum_target parameter.
9112 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9113 process_stratum_target parameter, and use it.
9114 (clear_inline_frame_state (thread_info*)): New.
9115 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9116 process_stratum_target parameter.
9117 (clear_inline_frame_state (thread_info*)): Declare.
9118 * linux-fork.c (delete_checkpoint_command): Pass target down to
9119 find_thread_ptid.
9120 (checkpoint_command): Adjust.
9121 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
9122 instead of just tweaking inferior_ptid.
9123 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
9124 (exit_lwp): Pass target down to find_thread_ptid.
9125 (attach_proc_task_lwp_callback): Pass target down to
9126 add_thread/set_running/set_executing.
9127 (linux_nat_target::attach): Pass target down to
9128 thread_change_ptid.
9129 (get_detach_signal): Pass target down to find_thread_ptid.
9130 Consider last target status's target.
9131 (linux_resume_one_lwp_throw, resume_lwp)
9132 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
9133 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
9134 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
9135 (linux_nat_target::async_wait_fd): New.
9136 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
9137 target down.
9138 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
9139 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
9140 * linux-thread-db.c (struct thread_db_info::process_target): New
9141 field.
9142 (add_thread_db_info): Save target.
9143 (get_thread_db_info): New process_stratum_target parameter. Also
9144 match target.
9145 (delete_thread_db_info): New process_stratum_target parameter.
9146 Also match target.
9147 (thread_from_lwp): Adjust to pass down target.
9148 (thread_db_notice_clone): Pass down target.
9149 (check_thread_db_callback): Pass down target.
9150 (try_thread_db_load_1): Always push the thread_db target.
9151 (try_thread_db_load, record_thread): Pass target down.
9152 (thread_db_target::detach): Pass target down. Always unpush the
9153 thread_db target.
9154 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
9155 target down. Always unpush the thread_db target.
9156 (find_new_threads_callback, thread_db_find_new_threads_2)
9157 (thread_db_target::update_thread_list): Pass target down.
9158 (thread_db_target::pid_to_str): Pass current inferior down.
9159 (thread_db_target::get_thread_local_address): Pass target down.
9160 (thread_db_target::resume, maintenance_check_libthread_db): Pass
9161 target down.
9162 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
9163 * procfs.c (procfs_target::procfs_init_inferior): Declare.
9164 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
9165 (procfs_init_inferior): Rename to ...
9166 (procfs_target::procfs_init_inferior): ... this and adjust.
9167 (procfs_target::create_inferior, procfs_notice_thread)
9168 (procfs_do_thread_registers): Adjust.
9169 * ppc-fbsd-tdep.c: Include "inferior.h".
9170 (ppcfbsd_get_thread_local_address): Pass down target.
9171 * proc-service.c (ps_xfer_memory): Switch current inferior and
9172 program space as well.
9173 (get_ps_regcache): Pass target down.
9174 * process-stratum-target.c
9175 (process_stratum_target::thread_address_space)
9176 (process_stratum_target::thread_architecture): Pass target down.
9177 * process-stratum-target.h
9178 (process_stratum_target::threads_executing): New field.
9179 (as_process_stratum_target): New.
9180 * ravenscar-thread.c
9181 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
9182 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
9183 down.
9184 * record-btrace.c (record_btrace_target::info_record): Adjust.
9185 (record_btrace_target::record_method)
9186 (record_btrace_target::record_is_replaying)
9187 (record_btrace_target::fetch_registers)
9188 (get_thread_current_frame_id, record_btrace_target::resume)
9189 (record_btrace_target::wait, record_btrace_target::stop): Pass
9190 target down.
9191 * record-full.c (record_full_wait_1): Switch to event thread.
9192 Pass target down.
9193 * regcache.c (regcache::regcache)
9194 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
9195 process_stratum_target parameter and handle it.
9196 (current_thread_target): New global.
9197 (get_thread_regcache): Add process_stratum_target parameter and
9198 handle it. Switch inferior before calling target method.
9199 (get_thread_regcache): Pass target down.
9200 (get_thread_regcache_for_ptid): Pass target down.
9201 (registers_changed_ptid): Add process_stratum_target parameter and
9202 handle it.
9203 (registers_changed_thread, registers_changed): Pass target down.
9204 (test_get_thread_arch_aspace_regcache): New.
9205 (current_regcache_test): Define a couple local test_target_ops
9206 instances and use them for testing.
9207 (readwrite_regcache): Pass process_stratum_target parameter.
9208 (cooked_read_test, cooked_write_test): Pass mock_target down.
9209 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
9210 (get_thread_arch_aspace_regcache): Add process_stratum_target
9211 parameter.
9212 (regcache::target): New method.
9213 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
9214 (regcache::registers_changed_ptid): Add process_stratum_target
9215 parameter.
9216 (regcache::m_target): New field.
9217 (registers_changed_ptid): Add process_stratum_target parameter.
9218 * remote.c (remote_state::supports_vCont_probed): New field.
9219 (remote_target::async_wait_fd): New method.
9220 (remote_unpush_and_throw): Add remote_target parameter.
9221 (get_current_remote_target): Adjust.
9222 (remote_target::remote_add_inferior): Push target.
9223 (remote_target::remote_add_thread)
9224 (remote_target::remote_notice_new_inferior)
9225 (get_remote_thread_info): Pass target down.
9226 (remote_target::update_thread_list): Skip threads of inferiors
9227 bound to other targets. (remote_target::close): Don't discard
9228 inferiors. (remote_target::add_current_inferior_and_thread)
9229 (remote_target::process_initial_stop_replies)
9230 (remote_target::start_remote)
9231 (remote_target::remote_serial_quit_handler): Pass down target.
9232 (remote_target::remote_unpush_target): New remote_target
9233 parameter. Unpush the target from all inferiors.
9234 (remote_target::remote_unpush_and_throw): New remote_target
9235 parameter. Pass it down.
9236 (remote_target::open_1): Check whether the current inferior has
9237 execution instead of checking whether any inferior is live. Pass
9238 target down.
9239 (remote_target::remote_detach_1): Pass down target. Use
9240 remote_unpush_target.
9241 (extended_remote_target::attach): Pass down target.
9242 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
9243 (remote_target::append_resumption): Pass down target.
9244 (remote_target::append_pending_thread_resumptions)
9245 (remote_target::remote_resume_with_hc, remote_target::resume)
9246 (remote_target::commit_resume): Pass down target.
9247 (remote_target::remote_stop_ns): Check supports_vCont_probed.
9248 (remote_target::interrupt_query)
9249 (remote_target::remove_new_fork_children)
9250 (remote_target::check_pending_events_prevent_wildcard_vcont)
9251 (remote_target::remote_parse_stop_reply)
9252 (remote_target::process_stop_reply): Pass down target.
9253 (first_remote_resumed_thread): New remote_target parameter. Pass
9254 it down.
9255 (remote_target::wait_as): Pass down target.
9256 (unpush_and_perror): New remote_target parameter. Pass it down.
9257 (remote_target::readchar, remote_target::remote_serial_write)
9258 (remote_target::getpkt_or_notif_sane_1)
9259 (remote_target::kill_new_fork_children, remote_target::kill): Pass
9260 down target.
9261 (remote_target::mourn_inferior): Pass down target. Use
9262 remote_unpush_target.
9263 (remote_target::core_of_thread)
9264 (remote_target::remote_btrace_maybe_reopen): Pass down target.
9265 (remote_target::pid_to_exec_file)
9266 (remote_target::thread_handle_to_thread_info): Pass down target.
9267 (remote_target::async_wait_fd): New.
9268 * riscv-fbsd-tdep.c: Include "inferior.h".
9269 (riscv_fbsd_get_thread_local_address): Pass down target.
9270 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
9271 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
9272 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
9273 Adjust.
9274 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
9275 * solib-svr4.c (enable_break): Pass down target.
9276 * spu-multiarch.c (parse_spufs_run): Pass down target.
9277 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
9278 * target-delegates.c: Regenerate.
9279 * target.c (g_target_stack): Delete.
9280 (current_top_target): Return the current inferior's top target.
9281 (target_has_execution_1): Refer to the passed-in inferior's top
9282 target.
9283 (target_supports_terminal_ours): Check whether the initial
9284 inferior was already created.
9285 (decref_target): New.
9286 (target_stack::push): Incref/decref the target.
9287 (push_target, push_target, unpush_target): Adjust.
9288 (target_stack::unpush): Defref target.
9289 (target_is_pushed): Return bool. Adjust to refer to the current
9290 inferior's target stack.
9291 (dispose_inferior): Delete, and inline parts ...
9292 (target_preopen): ... here. Only dispose of the current inferior.
9293 (target_detach): Hold strong target reference while detaching.
9294 Pass target down.
9295 (target_thread_name): Add assertion.
9296 (target_resume): Pass down target.
9297 (target_ops::beneath, find_target_at): Adjust to refer to the
9298 current inferior's target stack.
9299 (get_dummy_target): New.
9300 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
9301 has a thread running.
9302 (initialize_targets): Rename to ...
9303 (_initialize_target): ... this.
9304 * target.h: Include "gdbsupport/refcounted-object.h".
9305 (struct target_ops): Inherit refcounted_object.
9306 (target_ops::shortname, target_ops::longname): Make const.
9307 (target_ops::async_wait_fd): New method.
9308 (decref_target): Declare.
9309 (struct target_ops_ref_policy): New.
9310 (target_ops_ref): New typedef.
9311 (get_dummy_target): Declare function.
9312 (target_is_pushed): Return bool.
9313 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
9314 (all_matching_threads_iterator::all_matching_threads_iterator):
9315 Handle filter target.
9316 * thread-iter.h (struct all_matching_threads_iterator, struct
9317 all_matching_threads_range, class all_non_exited_threads_range):
9318 Filter by target too. Remove explicit.
9319 * thread.c (threads_executing): Delete.
9320 (inferior_thread): Pass down current inferior.
9321 (clear_thread_inferior_resources): Pass down thread pointer
9322 instead of ptid_t.
9323 (add_thread_silent, add_thread_with_info, add_thread): Add
9324 process_stratum_target parameter. Use it for thread and inferior
9325 searches.
9326 (is_current_thread): New.
9327 (thread_info::deletable): Use it.
9328 (find_thread_ptid, thread_count, in_thread_list)
9329 (thread_change_ptid, set_resumed, set_running): New
9330 process_stratum_target parameter. Pass it down.
9331 (set_executing): New process_stratum_target parameter. Pass it
9332 down. Adjust reference to 'threads_executing'.
9333 (threads_are_executing): New process_stratum_target parameter.
9334 Adjust reference to 'threads_executing'.
9335 (set_stop_requested, finish_thread_state): New
9336 process_stratum_target parameter. Pass it down.
9337 (switch_to_thread): Also match inferior.
9338 (switch_to_thread): New process_stratum_target parameter. Pass it
9339 down.
9340 (update_threads_executing): Reimplement.
9341 * top.c (quit_force): Pop targets from all inferior.
9342 (gdb_init): Don't call initialize_targets.
9343 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
9344 Declare.
9345 (windows_add_thread, windows_delete_thread): Adjust.
9346 (get_windows_debug_event): Rename to ...
9347 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
9348 * tracefile-tfile.c (tfile_target_open): Pass down target.
9349 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
9350 Forward declare.
9351 (switch_to_thread): Add process_stratum_target parameter.
9352 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
9353 parameter. Use it.
9354 (mi_on_resume): Pass target down.
9355 * nat/fork-inferior.c (startup_inferior): Add
9356 process_stratum_target parameter. Pass it down.
9357 * nat/fork-inferior.h (startup_inferior): Add
9358 process_stratum_target parameter.
9359 * python/py-threadevent.c (py_get_event_thread): Pass target down.
9360
75c6c844
PA
93612020-01-10 Pedro Alves <palves@redhat.com>
9362
9363 * remote.c (remote_target::start_remote): Don't set inferior_ptid
9364 directly. Instead find the first thread in the thread list and
9365 use switch_to_thread.
9366
78f2c40a
PA
93672020-01-10 Pedro Alves <palves@redhat.com>
9368
9369 * remote.c (remote_target::remote_add_inferior): Don't bind a
9370 process to the current inferior if the current inferior is already
9371 bound to a process.
9372
e7af6c70
TBA
93732020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9374 Pedro Alves <palves@redhat.com>
9375
9376 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
9377 If no process is specified, return null_ptid instead of
9378 inferior_ptid.
9379 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
9380 TARGET_WAITKIND_SIGNALLED with no pid.
9381
31ba933e
PA
93822020-01-10 Pedro Alves <palves@redhat.com>
9383
9384 * remote.c (first_remote_resumed_thread): New.
9385 (remote_target::wait_as): Use it as default event_ptid instead of
9386 inferior_ptid.
9387
735fc2ca
PA
93882020-01-10 Pedro Alves <palves@redhat.com>
9389
9390 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
9391
c17e02e1
PA
93922020-01-10 Pedro Alves <palves@redhat.com>
9393
9394 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
9395 not -1.
9396
ab1ddbcf
PA
93972020-01-10 Pedro Alves <palves@redhat.com>
9398
9399 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
9400 ptid to get_last_target_status.
9401 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
9402 ptid to get_last_target_status.
9403 * infcmd.c (continue_command): Don't pass a target_waitstatus to
9404 get_last_target_status.
9405 (info_program_command): Don't pass a target_waitstatus to
9406 get_last_target_status.
9407 * infrun.c (init_wait_for_inferior): Use
9408 nullify_last_target_wait_ptid.
9409 (get_last_target_status): Handle nullptr arguments.
9410 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
9411 (print_stop_event): Don't pass a ptid to get_last_target_status.
9412 (normal_stop): Don't pass a ptid to get_last_target_status.
9413 * infrun.h (get_last_target_status, set_last_target_status): Move
9414 comments here and update.
9415 (nullify_last_target_wait_ptid): Declare.
9416 * linux-fork.c (fork_load_infrun_state): Remove local extern
9417 declaration of nullify_last_target_wait_ptid.
9418 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
9419 to get_last_target_status.
9420
f3f8ece4
PA
94212020-01-10 Pedro Alves <palves@redhat.com>
9422
9423 * gdbthread.h (scoped_restore_current_thread)
9424 <dont_restore, restore, m_dont_restore>: Declare.
9425 * thread.c (thread_alive): Add assertion. Return bool.
9426 (switch_to_thread_if_alive): New.
9427 (prune_threads): Switch inferior/thread.
9428 (print_thread_info_1): Switch thread before calling target methods.
9429 (scoped_restore_current_thread::restore): New, factored out from
9430 ...
9431 (scoped_restore_current_thread::~scoped_restore_current_thread):
9432 ... this.
9433 (scoped_restore_current_thread::scoped_restore_current_thread):
9434 Add assertion.
9435 (thread_apply_all_command, thread_select): Use
9436 switch_to_thread_if_alive.
9437 * infrun.c (proceed, restart_threads, handle_signal_stop)
9438 (switch_back_to_stepped_thread): Switch current thread before
9439 calling target methods.
9440
db2d40f7
PA
94412020-01-10 Pedro Alves <palves@redhat.com>
9442
9443 * inferior.c (switch_to_inferior_no_thread): New function,
9444 factored out from ...
9445 (inferior_command): ... here.
9446 * inferior.h (switch_to_inferior_no_thread): Declare.
9447 * mi/mi-main.c (run_one_inferior): Use
9448 switch_to_inferior_no_thread.
9449
bd420a2d
PA
94502020-01-10 Pedro Alves <palves@redhat.com>
9451
9452 * infcmd.c (kill_command): Remove dead code.
9453
ddf5db90
PA
94542020-01-10 Pedro Alves <palves@redhat.com>
9455
9456 * remote.c (remote_target::mourn_inferior): No longer check
9457 whether the target is running.
9458
5018ce90
PA
94592020-01-10 Pedro Alves <palves@redhat.com>
9460
9461 * corelow.c (core_target::has_execution): Change parameter type to
9462 inferior pointer.
9463 * inferior.c (number_of_live_inferiors): Use
9464 inferior::has_execution instead of target_has_execution_1.
9465 * inferior.h (inferior::has_execution): New.
9466 * linux-thread-db.c (thread_db_target::update_thread_list): Use
9467 inferior::has_execution instead of target_has_execution_1.
9468 * process-stratum-target.c
9469 (process_stratum_target::has_execution): Change parameter type to
9470 inferior pointer. Check the inferior's PID instead of
9471 inferior_ptid.
9472 * process-stratum-target.h
9473 (process_stratum_target::has_execution): Change parameter type to
9474 inferior pointer.
9475 * record-full.c (record_full_core_target::has_execution): Change
9476 parameter type to inferior pointer.
9477 * target.c (target_has_execution_1): Change parameter type to
9478 inferior pointer.
9479 (target_has_execution_current): Adjust.
9480 * target.h (target_ops::has_execution): Change parameter type to
9481 inferior pointer.
9482 (target_has_execution_1): Change parameter type to inferior
9483 pointer. Change return type to bool.
9484 * tracefile.h (tracefile_target::has_execution): Change parameter
9485 type to inferior pointer.
9486
74375d18
PA
94872020-01-10 Pedro Alves <palves@redhat.com>
9488
9489 * exceptions.c (print_flush): Remove current_top_target() check.
9490
acdf84a6
PA
94912020-01-10 Pedro Alves <palves@redhat.com>
9492
9493 * remote.c (show_remote_exec_file): Show the current inferior's
9494 exec-file instead of the command variable's value.
9495
ec506636
PA
94962020-01-10 Pedro Alves <palves@redhat.com>
9497
9498 * record-full.c (record_full_resume_ptid): New global.
9499 (record_full_target::resume): Set it.
9500 (record_full_wait_1): Use record_full_resume_ptid instead of
9501 inferior_ptid.
9502
873657b9
PA
95032020-01-10 Pedro Alves <palves@redhat.com>
9504
9505 * gdbthread.h (scoped_restore_current_thread)
9506 <dont_restore, restore, m_dont_restore>: Declare.
9507 * thread.c (thread_alive): Add assertion. Return bool.
9508 (switch_to_thread_if_alive): New.
9509 (prune_threads): Switch inferior/thread.
9510 (print_thread_info_1): Switch thread before calling target methods.
9511 (scoped_restore_current_thread::restore): New, factored out from
9512 ...
9513 (scoped_restore_current_thread::~scoped_restore_current_thread):
9514 ... this.
9515 (scoped_restore_current_thread::scoped_restore_current_thread):
9516 Add assertion.
9517 (thread_apply_all_command, thread_select): Use
9518 switch_to_thread_if_alive.
9519
7f0ae84c
GB
95202020-01-10 George Barrett <bob@bob131.so>
9521
9522 * stap-probe.c (stap_modify_semaphore): Don't check for null
9523 semaphores.
9524 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
9525 for null semaphores.
9526
f5a7c406
AB
95272020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9528
9529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
9530 all source windows, and maintain horizontal scroll status while
9531 doing so.
9532
9ae6bf64
TT
95332020-01-09 Tom Tromey <tom@tromey.com>
9534
9535 PR tui/18932:
9536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
9537 update_source_window, not print_source_lines.
9538
b2efe70c
AB
95392020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9540
9541 * tui/tui.c (tui_enable): Register tui hooks after calling
9542 tui_display_main.
9543
5f23a082
CB
95442020-01-09 Christian Biesinger <cbiesinger@google.com>
9545
9546 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
9547
3061113b
SM
95482020-01-08 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * thread.c (print_thread_info_1): Fix indentation.
9551
57d75002
CB
95522020-01-09 Christian Biesinger <cbiesinger@google.com>
9553
9554 * symtab.c (general_symbol_info::compute_and_set_names): Move the
9555 unique_xmalloc_ptr outside the if to always free the demangled name.
9556
6a053cb1
TT
95572020-01-08 Tom Tromey <tromey@adacore.com>
9558
9559 * xcoffread.c (enter_line_range, read_xcoff_symtab)
9560 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
9561 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
9562 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
9563 Remove.
9564 (section_offsets): New typedef.
9565 * symtab.c (fixup_section, get_msymbol_address): Update.
9566 * symmisc.c (dump_msymbols): Update.
9567 * symfile.h (relative_addr_info_to_section_offsets)
9568 (symfile_map_offsets_to_segments): Update.
9569 * symfile.c (build_section_addr_info_from_objfile)
9570 (init_objfile_sect_indices): Update.
9571 (struct place_section_arg): Change type of "offsets".
9572 (place_section): Update.
9573 (relative_addr_info_to_section_offsets): Change type of
9574 "section_offsets". Remove "num_sections" parameter.
9575 (default_symfile_offsets, syms_from_objfile_1)
9576 (set_objfile_default_section_offset): Update.
9577 (reread_symbols): No need to preserve section offsets by hand.
9578 (symfile_map_offsets_to_segments): Change type of "offsets".
9579 * stap-probe.c (relocate_address): Update.
9580 * stabsread.h (process_one_symbol): Update.
9581 * solib-target.c (struct lm_info_target) <offsets>: Change type.
9582 (solib_target_relocate_section_addresses): Update.
9583 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
9584 Update.
9585 * solib-frv.c (frv_relocate_main_executable): Update.
9586 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9587 * solib-aix.c (solib_aix_get_section_offsets): Change return
9588 type.
9589 (solib_aix_solib_create_inferior_hook): Update.
9590 * remote.c (remote_target::get_offsets): Update.
9591 * psymtab.c (find_pc_sect_psymtab): Update.
9592 * psympriv.h (struct partial_symbol) <address, text_low,
9593 text_high>: Update.
9594 * objfiles.h (obj_section_offset): Update.
9595 (struct objfile) <section_offsets>: Change type.
9596 <num_sections>: Remove.
9597 (objfile_relocate): Update.
9598 * objfiles.c (entry_point_address_query): Update
9599 (relocate_one_symbol): Change type of "section_offsets".
9600 (objfile_relocate1, objfile_relocate1): Change type of
9601 "new_offsets".
9602 (objfile_rebase1): Update.
9603 * mipsread.c (mipscoff_symfile_read): Update.
9604 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
9605 parameter.
9606 * mdebugread.c (parse_symbol): Change type of "section_offsets".
9607 (parse_external, psymtab_to_symtab_1): Update.
9608 * machoread.c (macho_symfile_offsets): Update.
9609 * ia64-tdep.c (ia64_find_unwind_table): Update.
9610 * hppa-tdep.c (read_unwind_info): Update.
9611 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
9612 * dwarf2read.c (create_addrmap_from_index)
9613 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9614 (process_psymtab_comp_unit_reader, add_partial_symbol)
9615 (add_partial_subprogram, process_full_comp_unit)
9616 (read_file_scope, read_func_scope, read_lexical_block_scope)
9617 (read_call_site_scope, dwarf2_rnglists_process)
9618 (dwarf2_ranges_process, dwarf2_ranges_read)
9619 (dwarf_decode_lines_1, var_decode_location, new_symbol)
9620 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
9621 Update.
9622 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
9623 Update.
9624 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
9625 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
9626 (process_one_symbol): Change type of "section_offsets".
9627 * ctfread.c (get_objfile_text_range): Update.
9628 * coffread.c (coff_symtab_read, enter_linenos)
9629 (process_coff_symbol): Update.
9630 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9631 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
9632
456e800a
TT
96332020-01-08 Tom Tromey <tromey@adacore.com>
9634
9635 * dwarf2read.c (parse_macro_definition): Use std::string.
9636 (parse_macro_definition): Likewise.
9637
6dfa2fc2
TT
96382020-01-08 Tom Tromey <tromey@adacore.com>
9639
9640 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
9641 (ATTR_ALLOC_CHUNK): Remove.
9642
421d1616
TT
96432020-01-08 Tom Tromey <tromey@adacore.com>
9644
9645 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
9646
43816ebc
TT
96472020-01-08 Tom Tromey <tromey@adacore.com>
9648
9649 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
9650 (dwarf2_compute_name, open_dwo_file): Likewise.
9651 (process_enumeration_scope): Use std::vector.
9652 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
9653 (partial_die_info::fixup, dwarf2_start_subfile)
9654 (guess_full_die_structure_name, dwarf2_name): Likewise.
9655 (determine_prefix): Update.
9656 (guess_full_die_structure_name): Make return type const.
9657 (partial_die_full_name): Return unique_xmalloc_ptr.
9658 (DW_FIELD_ALLOC_CHUNK): Remove.
9659
4212d509
TT
96602020-01-07 Tom Tromey <tromey@adacore.com>
9661
9662 PR build/24937:
9663 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9664
06a6207a
JT
96652020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9666
9667 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
9668
153d79c4
AB
96692020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
9670
9671 * stack.c (print_frame_info): Move disassemble_next_line code
9672 inside source_print block.
9673
66182876
EZ
96742020-01-06 Eli Zaretskii <eliz@gnu.org>
9675
9676 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
9677 gdb/signals.h, as we are now using native signal symbols.
9678
cbfa8581
SV
96792020-01-06 Shahab Vahedi <shahab@synopsys.com>
9680
9681 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
9682 overflow by an early check of content vs threshold.
aac66a4c 9683 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
9684 Likewise.
9685
3f602821
EZ
96862020-01-06 Eli Zaretskii <eliz@gnu.org>
9687
9688 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
9689
a08c904d
JT
96902020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9691
9692 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
9693 export table if no section contains it's RVA.
9694
89a65580
EZ
96952020-01-06 Eli Zaretskii <eliz@gnu.org>
9696
9697 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
9698
8b7fcda2
HD
96992020-01-06 Hannes Domani <ssbssa@yahoo.de>
9700
9701 * source.c (print_source_lines_base): Set last_line_listed.
9702
a61b4f69
SV
97032020-01-06 Shahab Vahedi <shahab@synopsys.com>
9704
9705 * tui/tui-disasm.c: Remove trailing spaces.
9706
559e7e50
EZ
97072020-01-06 Eli Zaretskii <eliz@gnu.org>
9708 Pedro Alves <palves@redhat.com>
9709
9710 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
9711 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
9712 (windows_gdb_signal_to_target): New function, uses the above
9713 enumeration to convert GDB internal signal codes to equivalent
9714 Windows codes.
9715 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
9716 * windows-nat.c: Include "gdb_wait.h".
9717 (get_windows_debug_event): Extract the fatal exception from the
9718 exit status and convert to the equivalent Posix signal number.
9719 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
9720 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
9721 * gdbsupport/gdb_wait.c: New file, implements
9722 windows_status_to_termsig.
9723 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
9724 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
9725
f2302a34
AB
97262020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
9727
9728 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
9729 show_layout.
9730
6a5206eb
LM
97312020-01-05 Luis Machado <luis.machado@linaro.org>
9732
9733 * aarch64-linux-nat.c
9734 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
9735 and bfd_mach_aarch64.
9736
6ec1d75e
PW
97372020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9738
9739 * ui-file.c (stdio_file::can_emit_style_escape)
9740 (tee_file::can_emit_style_escape): Ensure style is used also on
9741 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
9742 to gdb_stdout.
9743 * main.c (set_gdb_data_directory): Use file style to output the
9744 warning that the given pathname is not a directory.
9745 * top.c (show_history_filename, gdb_safe_append_history)
9746 (show_gdb_datadir): Use file style.
9747
44f81a76
HD
97482020-01-03 Hannes Domani <ssbssa@yahoo.de>
9749
9750 * solib-target.c (struct lm_info_target):
9751 Change offsets to be a unique_xmalloc_ptr.
9752 (solib_target_relocate_section_addresses): Update.
9753
25057eb0
HD
97542020-01-03 Hannes Domani <ssbssa@yahoo.de>
9755
9756 * windows-nat.c (windows_clear_solib): Free so_list linked list.
9757
6e2118f5
BE
97582020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9759
9760 * MAINTAINERS (Write After Approval): Add myself.
9761
8133c7dc
LM
97622020-01-02 Luis Machado <luis.machado@linaro.org>
9763
9764 * proc-service.c (get_ps_regcache): Remove reference to obsolete
9765 Cell BE architecture.
9766 * target.h (struct target_ops) <thread_architecture>: Likewise.
9767
48189bec
HD
97682020-01-01 Hannes Domani <ssbssa@yahoo.de>
9769
9770 * Makefile.in: Use INSTALL_PROGRAM_ENV.
9771
ead1063b
HD
97722020-01-01 Hannes Domani <ssbssa@yahoo.de>
9773
9774 * MAINTAINERS (Write After Approval): Add myself.
9775
e5d78223
JB
97762020-01-01 Joel Brobecker <brobecker@adacore.com>
9777
9778 * gdbarch.sh: Update copyright year range of generated files.
9779
b811d2c2
JB
97802020-01-01 Joel Brobecker <brobecker@adacore.com>
9781
9782 Update copyright year range in all GDB files.
9783
5f4def5c
JB
97842020-01-01 Joel Brobecker <brobecker@adacore.com>
9785
9786 * copyright.py: Convert to Python 3.
9787
51fd4002
JB
97882020-01-01 Joel Brobecker <brobecker@adacore.com>
9789
9790 * copyright.py: Adapt after move of gnulib directory from gdb
9791 directory to toplevel directory.
9792
5fb651f2
JB
97932020-01-01 Joel Brobecker <brobecker@adacore.com>
9794
9795 * copyright.py (main): Exit if run from the wrong directory.
9796
5dd8bf88
JB
97972020-01-01 Joel Brobecker <brobecker@adacore.com>
9798
9799 * top.c (print_gdb_version): Change copyright year to 2020.
9800
9f71dacb 98012020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 9802
9f71dacb 9803 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 9804
9f71dacb 9805For older changes see ChangeLog-2019.
c906108c
SS
9806\f
9807Local Variables:
9808mode: change-log
9809left-margin: 8
9810fill-column: 74
9811version-control: never
57da7796 9812coding: utf-8
c906108c 9813End: