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