Avoid some copying in psymtab.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c072cb6
TT
12020-04-01 Tom Tromey <tromey@adacore.com>
2
3 * psymtab.c (psymtab_search_name): Remove function.
4 (psym_lookup_symbol): Create search name and lookup name here.
5 (lookup_partial_symbol): Remove "name" parameter; add
6 lookup_name.
7 (psym_expand_symtabs_for_function): Update.
8
6f29a534
TT
92020-03-31 Joel Jones <joelkevinjones@gmail.com>
10
11 PR tui/25597:
12 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13
af62665e
TT
142020-03-31 Tom Tromey <tromey@adacore.com>
15
16 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
17 memcpy.
18
d1a89da5
NC
192020-03-30 Nelson Chu <nelson.chu@sifive.com>
20
21 * features/riscv/32bit-csr.xml: Regenerated.
22 * features/riscv/64bit-csr.xml: Regenerated.
23
d8af9068
TT
242020-03-30 Tom Tromey <tromey@adacore.com>
25
26 * ada-valprint.c (print_variant_part): Update.
27 * ada-lang.h (ada_which_variant_applies): Update.
28 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
29 outer_valaddr parameters; replace with "outer" value parameter.
30 (to_fixed_variant_branch_type): Update.
31
227c0bf4
PFC
322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
33
34 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
35 <list>. Remove inclusion of observable.h.
36 (PPC_DEBUG_CURRENT_VERSION): Move up define.
37 (struct arch_lwp_info): New struct.
38 (class ppc_linux_dreg_interface): New class.
39 (struct ppc_linux_process_info): New struct.
40 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
41 <low_new_clone, low_forget_process, low_prepare_to_resume>
42 <copy_thread_dreg_state, mark_thread_stale>
43 <mark_debug_registers_changed, register_hw_breakpoint>
44 <clear_hw_breakpoint, register_wp, clear_wp>
45 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
46 <num_memory_accesses, get_trigger_type>
47 <create_watchpoint_request, hwdebug_point_cmp>
48 <init_arch_lwp_info, get_arch_lwp_info>
49 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
50 methods.
51 <struct ptid_hash>: New inner struct.
52 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
53 members.
54 (saved_dabr_value, hwdebug_info, max_slots_number)
55 (struct hw_break_tuple, struct thread_points, ppc_threads)
56 (have_ptrace_hwdebug_interface)
57 (hwdebug_find_thread_points_by_tid)
58 (hwdebug_insert_point, hwdebug_remove_point): Remove.
59 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
60 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
61 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
62 use m_dreg_interface.
63 (hwdebug_point_cmp): Change to...
64 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
65 reference arguments instead of pointers.
66 (ppc_linux_nat_target::ranged_break_num_registers): Use
67 m_dreg_interface.
68 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
69 m_dreg_interface. Call register_hw_breakpoint.
70 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
71 m_dreg_interface. Call clear_hw_breakpoint.
72 (get_trigger_type): Change to...
73 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
74 comment.
75 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
76 use m_dreg_interface. Call register_hw_breakpoint.
77 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
78 use m_dreg_interface. Call clear_hw_breakpoint.
79 (can_use_watchpoint_cond_accel): Change to...
80 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
81 method. Update comment, use m_dreg_interface and
82 m_process_info.
83 (calculate_dvc): Change to...
84 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
85 m_dreg_interface.
86 (num_memory_accesses): Change to...
87 (ppc_linux_nat_target::num_memory_accesses): ...this method.
88 (check_condition): Change to...
89 (ppc_linux_nat_target::check_condition): ...this method.
90 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
91 comment, use m_dreg_interface.
92 (create_watchpoint_request): Change to...
93 (ppc_linux_nat_target::create_watchpoint_request): ...this
94 method. Use m_dreg_interface.
95 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
96 m_dreg_interface. Call register_hw_breakpoint or register_wp.
97 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
98 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
99 (ppc_linux_nat_target::low_forget_process)
100 (ppc_linux_nat_target::low_new_fork)
101 (ppc_linux_nat_target::low_new_clone)
102 (ppc_linux_nat_target::low_delete_thread)
103 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
104 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
105 only call mark_thread_stale.
106 (ppc_linux_thread_exit): Remove.
107 (ppc_linux_nat_target::stopped_data_address): Change to...
108 (ppc_linux_nat_target::low_stopped_data_address): This. Add
109 comment, use m_dreg_interface and m_thread_hw_breakpoints.
110 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
111 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
112 comment. Call low_stopped_data_address.
113 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
114 m_dreg_interface.
115 (ppc_linux_nat_target::masked_watch_num_registers): Use
116 m_dreg_interface.
117 (ppc_linux_nat_target::copy_thread_dreg_state)
118 (ppc_linux_nat_target::mark_thread_stale)
119 (ppc_linux_nat_target::mark_debug_registers_changed)
120 (ppc_linux_nat_target::register_hw_breakpoint)
121 (ppc_linux_nat_target::clear_hw_breakpoint)
122 (ppc_linux_nat_target::register_wp)
123 (ppc_linux_nat_target::clear_wp)
124 (ppc_linux_nat_target::init_arch_lwp_info)
125 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
126 (_initialize_ppc_linux_nat): Remove observer callback.
127
4db10d8f
PFC
1282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
129
130 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
131 (ppc_linux_nat_target::auxv_parse)
132 (ppc_linux_nat_target::read_description)
133 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
134 Move up.
135
1310c1b0
PFC
1362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
137
138 * linux-nat.h (low_new_clone): New method.
139 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
140
69b037c3
SM
1412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
144 (dbx_expand_psymtab): ... this.
145 (start_psymtab): Update.
146 * mdebugread.c (psymtab_to_symtab_1): Rename to...
147 (mdebug_expand_psymtab): ... this.
148 (parse_partial_symbols): Update.
149 (new_psymtab): Update.
150 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
151 (xcoff_expand_psymtab): ... this.
152 (xcoff_start_psymtab): Update.
153
48993951
SM
1542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
157 <expand_dependencies>: ... this.
158 * psymtab.c (partial_symtab::read_dependencies): Rename to...
159 (partial_symtab::expand_dependencies): ... this.
160 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
161 Update.
162 (dwarf2_psymtab::expand_psymtab): Update.
163 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
164 * mdebugread.c (psymtab_to_symtab_1): Update.
165 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
166
3ad83046
SM
1672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * psympriv.h (discard_psymtab): Remove.
170 * dbxread.c (dbx_end_psymtab): Update.
171 * xcoffread.c (xcoff_end_psymtab): Update.
172
4d1b9ab6
TT
1732020-03-28 Tom Tromey <tom@tromey.com>
174
175 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
176 comment.
177
f1749218
TT
1782020-03-28 Tom Tromey <tom@tromey.com>
179
180 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
181
ebea7626
HD
1822020-03-27 Hannes Domani <ssbssa@yahoo.de>
183
184 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
185
a879b4d5
JB
1862020-03-26 John Baldwin <jhb@FreeBSD.org>
187
188 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
189
0826b30a
TT
1902020-03-26 Tom Tromey <tom@tromey.com>
191
192 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
193 (mark_common_block_symbol_computed, read_tag_string_type)
194 (attr_to_dynamic_prop, read_subrange_type): Update.
195 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
196 to be methods on struct attribute.
197 (skip_one_die, process_imported_unit_die, read_namespace_alias)
198 (read_call_site_scope, partial_die_info::read)
199 (partial_die_info::read, lookup_die_type, follow_die_ref):
200 Update.
201 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
202 from dwarf2_get_ref_die_offset.
203 (attribute::constant_value): New method, from
204 dwarf2_get_attr_constant_value.
205 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
206 Declare method.
207 <constant_value>: New method.
208
2b2558bf
TT
2092020-03-26 Tom Tromey <tom@tromey.com>
210
211 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
212 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
213 (dwarf_type_encoding_name): Move to stringify.c.
214 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
215 * dwarf2/stringify.c: New file.
216 * dwarf2/stringify.h: New file.
217
eeb64781
TT
2182020-03-26 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
221 Rewrite.
222
a39fdb41
TT
2232020-03-26 Tom Tromey <tom@tromey.com>
224
225 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
226 methods.
227 * dwarf2/read.c (lookup_addr_base): Move to die.h.
228 (lookup_ranges_base): Likewise.
229 (read_cutu_die_from_dwo, read_full_die_1): Update.
230
436c571c
TT
2312020-03-26 Tom Tromey <tom@tromey.com>
232
233 * dwarf2/read.c (read_import_statement, read_file_scope)
234 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
235 (read_lexical_block_scope, read_call_site_scope)
236 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
237 (handle_struct_member_die, process_structure_scope)
238 (update_enumeration_type_from_children)
239 (process_enumeration_scope, read_array_type, read_common_block)
240 (read_namespace, read_module, read_subroutine_type): Update.
241 (sibling_die): Remove.
242
052c8bb8
TT
2432020-03-26 Tom Tromey <tom@tromey.com>
244
245 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
246 (build_type_psymtabs_reader, read_structure_type)
247 (read_enumeration_type, read_full_die_1): Update.
248 (dwarf2_attr_no_follow): Move to die.h.
249 * dwarf2/die.h (struct die_info) <attr>: New method.
250
2b24b6e4
TT
2512020-03-26 Tom Tromey <tom@tromey.com>
252
253 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
254 <base_address>: Now an optional.
255 (dwarf2_find_base_address, dwarf2_rnglists_process)
256 (dwarf2_ranges_process, fill_in_loclist_baton)
257 (dwarf2_symbol_mark_computed): Update.
258
c2d50fd0
TT
2592020-03-26 Tom Tromey <tom@tromey.com>
260
261 * dwarf2/read.c (struct die_info): Move to die.h.
262 * dwarf2/die.h: New file.
263
0df7ad3a
TT
2642020-03-26 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
267 * dwarf2/read.c
268 (dwarf2_statement_list_fits_in_line_number_section_complaint):
269 Move to line-header.c.
270 (read_checked_initial_length_and_offset, read_formatted_entries):
271 Likewise.
272 (dwarf_decode_line_header): Split into two.
273 * dwarf2/line-header.c
274 (dwarf2_statement_list_fits_in_line_number_section_complaint):
275 Move from read.c.
276 (read_checked_initial_length_and_offset, read_formatted_entries):
277 Likewise.
278 (dwarf_decode_line_header): New function, split from read.c.
279
86c0bb4c
TT
2802020-03-26 Tom Tromey <tom@tromey.com>
281
282 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
283 Declare method.
284 * dwarf2/read.c (read_attribute_value): Update.
285 (dwarf2_per_objfile::read_line_string): Rename from
286 read_indirect_line_string.
287 (read_formatted_entries): Update.
288
2ef46c2f
TT
2892020-03-26 Tom Tromey <tom@tromey.com>
290
291 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
292 variable.
293
4f9c1eda
TT
2942020-03-26 Tom Tromey <tom@tromey.com>
295
296 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
297 const.
298 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
299 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
300 parameter const.
301
5a0e026f
TT
3022020-03-26 Tom Tromey <tom@tromey.com>
303
304 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
305 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
306 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
307 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
308
8844c11b
TT
3092020-03-26 Tom Tromey <tom@tromey.com>
310
311 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
312 file_names_size, file_full_name, file_file_name>: Use const.
313 <file_name_at, file_names>: Add const overload.
314 * dwarf2/line-header.c (line_header::file_file_name)
315 (line_header::file_full_name): Update.
316
c90ec28a
TT
3172020-03-26 Tom Tromey <tom@tromey.com>
318
319 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
320 (macro_start_file, consume_improper_spaces)
321 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
322 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
323 (dwarf_decode_macros): Move to macro.c.
324 * dwarf2/macro.c: New file.
325 * dwarf2/macro.h: New file.
326 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
327
4f44ae6c
TT
3282020-03-26 Tom Tromey <tom@tromey.com>
329
330 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
331 method.
332 * dwarf2/section.c: New method. From
333 read_indirect_string_at_offset_from.
334 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
335 (read_indirect_string_at_offset_from): Move to section.c.
336 (read_indirect_string_at_offset): Rewrite.
337 (read_indirect_line_string_at_offset): Remove.
338 (read_indirect_string, read_indirect_line_string)
339 (dwarf_decode_macro_bytes): Update.
340
a0194fa8
TT
3412020-03-26 Tom Tromey <tom@tromey.com>
342
343 * dwarf2/section.h (struct dwarf2_section_info)
344 <overload_complaint>: Declare.
345 (dwarf2_section_buffer_overflow_complaint): Don't declare.
346 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
347 Rename from dwarf2_section_buffer_overflow_complaint.
348 * dwarf2/read.c (skip_one_die, partial_die_info::read)
349 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
350
3d27bbdb
TT
3512020-03-26 Tom Tromey <tom@tromey.com>
352
353 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
354 Declare.
355 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
356 Move from read.c.
357 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
358 to section.c.
359
9eac9650
TT
3602020-03-26 Tom Tromey <tom@tromey.com>
361
362 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
363
bf80d710
TT
3642020-03-26 Tom Tromey <tom@tromey.com>
365
366 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
367 "builder".
368 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
369 parameter.
370 (dwarf_decode_macros): Update.
371
0314b390
TT
3722020-03-26 Tom Tromey <tom@tromey.com>
373
374 * dwarf2/read.c (read_attribute_value): Update.
375 (read_indirect_string_from_dwz): Move to dwz.c; change into
376 method.
377 (dwarf_decode_macro_bytes): Update.
378 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
379 * dwarf2/dwz.c: New file.
380 * Makefile.in (COMMON_SFILES): Add dwz.c.
381
9fda78b6
TT
3822020-03-26 Tom Tromey <tom@tromey.com>
383
384 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
385 * dwarf2/read.c: Add include.
386 * dwarf2/index-write.c: Add include.
387 * dwarf2/index-cache.c: Add include.
388 * dwarf2/dwz.h: New file.
389
33aa3c10
TT
3902020-03-25 Tom Tromey <tom@tromey.com>
391
392 * compile/compile-object-load.c (get_out_value_type): Mention
393 correct symbol name in error message.
394
d503b685
HD
3952020-03-25 Hannes Domani <ssbssa@yahoo.de>
396
397 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
398
7b1eff95
TV
3992020-03-25 Tom de Vries <tdevries@suse.de>
400
401 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
402 * symmisc.c (dump_symtab_1): Print user and includes fields.
403 (maintenance_info_symtabs): Same.
404
dd895392
AB
4052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 PR gdb/25534
408 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
409 (riscv_regcache_cooked_write): New function.
410 (riscv_push_dummy_call): Use new function.
411 (riscv_return_value): Likewise.
412
5ab2fbf1
SM
4132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
416 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
417 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
418 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
419 * infrun.c (follow_fork): Likewise.
420 (follow_fork_inferior): Likewise.
421 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
422 * linux-nat.h (class linux_nat_target): Likewise.
423 * remote.c (class remote_target) <follow_fork>: Likewise.
424 (remote_target::follow_fork): Likewise.
425 * target-delegates.c: Re-generate.
426 * target.c (default_follow_fork): Likewise.
427 (target_follow_fork): Likewise.
428 * target.h (struct target_ops) <follow_fork>: Likewise.
429 (target_follow_fork): Likewise.
430
a64fafb5
TV
4312020-03-24 Tom de Vries <tdevries@suse.de>
432
433 * psymtab.c (maintenance_info_psymtabs): Print user field.
434
fe26d3a3
TT
4352020-03-20 Tom Tromey <tromey@adacore.com>
436
437 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
438 const.
439 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
440 const.
441
c884cc46
SM
4422020-03-20 Simon Marchi <simon.marchi@efficios.com>
443
444 * ptrace.m4: Don't check for ptrace declaration.
445 * config.in: Re-generate.
446 * configure: Re-generate.
447 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
448 not defined.
449
1ff700c2
KR
4502020-03-20 Kamil Rytarowski <n54@gmx.com>
451
452 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
453 `PTRACE_TYPE_RET'.
454 * i386-bsd-nat.c (gdb_ptrace): Likewise.
455 * sparc-nat.c (gdb_ptrace): Likewise.
456 * x86-bsd-nat.c (gdb_ptrace): Likewise.
457
f7d4f0b1
TT
4582020-03-20 Tom Tromey <tromey@adacore.com>
459
460 * c-exp.y (lex_one_token): Fix assert.
461
f67210ff
TT
4622020-03-20 Tom Tromey <tromey@adacore.com>
463
464 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
465 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
466 strncpy call.
467
1773be9e
TT
4682020-03-20 Tom Tromey <tromey@adacore.com>
469
470 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
471
70304be9
TT
4722020-03-20 Tom Tromey <tromey@adacore.com>
473
474 * ada-valprint.c (print_variant_part): Remove parameters; switch
475 to value-based API.
476 (print_field_values): Likewise.
477 (ada_val_print_struct_union): Likewise.
478 (ada_value_print_1): Update.
479
9faa006d
KR
4802020-03-20 Kamil Rytarowski <n54@gmx.com>
481
482 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
483 nbsd_nat_target instead of inf_ptrace_target.
484 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
485 nbsd_nat_target.
486
4a90f062
KR
4872020-03-20 Kamil Rytarowski <n54@gmx.com>
488
489 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
490 it to the ptrace call.
491 * (store_registers): Likewise.
492
4932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
494
495 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
496 it to the ptrace call.
497 * (store_registers): Likewise.
498
2d07da27
LM
4992020-03-19 Luis Machado <luis.machado@linaro.org>
500
501 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
502 valid, fetch vg value from ptrace.
503
f09db380
KR
5042020-03-19 Kamil Rytarowski <n54@gmx.com>
505 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
506 * inf-ptrace.c: Likewise.
507 * (gdb_ptrace): Add.
508 * (inf_ptrace_target::resume): Update.
509 * (inf_ptrace_target::xfer_partial): Likewise.
510 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
511 * (inf_ptrace_peek_poke): Update.
512
fcc7376e
KR
5132020-03-19 Kamil Rytarowski <n54@gmx.com>
514
515 * x86-bsd-nat.c (gdb_ptrace): New.
516 * (x86bsd_dr_set): Add new argument `ptid'.
517 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
518 x86bsd_dr_set_addr): Update.
519
cada5fc9
AB
5202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * remote.c (remote_target::process_stop_reply): Handle events for
523 all threads differently.
524
19a2740f
AB
5252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * completer.c (completion_tracker::remove_completion): Define new
528 function.
529 * completer.h (completion_tracker::remove_completion): Declare new
530 function.
531 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
532 when adding a C++ function symbol.
533
724fd9ba
AB
5342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * completer.c (completion_tracker::completion_hash_entry): Define
537 new class.
538 (advance_to_filename_complete_word_point): Call
539 recompute_lowest_common_denominator.
540 (completion_tracker::completion_tracker): Call discard_completions
541 to setup the hash table.
542 (completion_tracker::discard_completions): Allow for being called
543 from the constructor, pass new equal function, and element deleter
544 when constructing the hash table. Initialise new class member
545 variables.
546 (completion_tracker::maybe_add_completion): Remove use of
547 m_entries_vec, and store more information into m_entries_hash.
548 (completion_tracker::recompute_lcd_visitor): New function, most
549 content taken from...
550 (completion_tracker::recompute_lowest_common_denominator):
551 ...here, this now just visits each item in the hash calling the
552 above visitor.
553 (completion_tracker::build_completion_result): Remove use of
554 m_entries_vec, call recompute_lowest_common_denominator.
555 * completer.h (completion_tracker::have_completions): Remove use
556 of m_entries_vec.
557 (completion_tracker::completion_hash_entry): Declare new class.
558 (completion_tracker::recompute_lowest_common_denominator): Change
559 function signature.
560 (completion_tracker::recompute_lcd_visitor): Declare new function.
561 (completion_tracker::m_entries_vec): Delete.
562 (completion_tracker::m_entries_hash): Initialize to NULL.
563 (completion_tracker::m_lowest_common_denominator_valid): New
564 member variable.
565 (completion_tracker::m_lowest_common_denominator_max_length): New
566 member variable.
567
5a82b8a1
KR
5682020-03-17 Kamil Rytarowski <n54@gmx.com>
569
570 * regformats/regdef.h: Put reg in gdb namespace.
571
fb516a69
KR
5722020-03-17 Kamil Rytarowski <n54@gmx.com>
573
574 * i386-bsd-nat.c (gdb_ptrace): New.
575 * (i386bsd_fetch_inferior_registers,
576 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
577 * (i386bsd_fetch_inferior_registers,
578 i386bsd_store_inferior_registers) Use gdb_ptrace.
579
1c0aa1fb
KR
5802020-03-17 Kamil Rytarowski <n54@gmx.com>
581
582 * amd64-bsd-nat.c (gdb_ptrace): New.
583 * (amd64bsd_fetch_inferior_registers,
584 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
585 * (amd64bsd_fetch_inferior_registers,
586 amd64bsd_store_inferior_registers) Use gdb_ptrace.
587
5ccd2fb7
KR
5882020-03-17 Kamil Rytarowski <n54@gmx.com>
589
590 * user-regs.c (user_reg::read): Rename to...
591 (user_reg::xread): ...this.
592 * (append_user_reg): Rename argument `read' to `xread'.
593 * (user_reg_add_builtin): Likewise.
594 * (user_reg_add): Likewise.
595 * (value_of_user_reg): Likewise.
596
2108a63a
KR
5972020-03-17 Kamil Rytarowski <n54@gmx.com>
598
599 * sparc-nat.c (gdb_ptrace): New.
600 * sparc-nat.c (sparc_fetch_inferior_registers)
601 (sparc_store_inferior_registers) Remove obsolete comment.
602 * sparc-nat.c (sparc_fetch_inferior_registers)
603 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
604 * sparc-nat.c (sparc_fetch_inferior_registers)
605 (sparc_store_inferior_registers) Use gdb_ptrace.
606
a225c9a8
KR
6072020-03-17 Kamil Rytarowski <n54@gmx.com>
608
609 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
610 it to the ptrace call.
611 * sh-nbsd-nat.c (store_registers): Likewise.
612
98097623
KR
6132020-03-17 Kamil Rytarowski <n54@gmx.com>
614
615 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
616 nbsd_nat_target instead of inf_ptrace_target.
617 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
618 nbsd_nat_target.
619
9e38d619
KR
6202020-03-17 Kamil Rytarowski <n54@gmx.com>
621
622 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
623
a2ecbe9f
KR
6242020-03-17 Kamil Rytarowski <n54@gmx.com>
625
626 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
627 <sys/sysctl.h>.
628 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
629
58990295
TV
6302020-03-17 Tom de Vries <tdevries@suse.de>
631
632 PR gdb/23710
633 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
634 fields.
635 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
636 fields.
637 (process_imported_unit_die): Skip import of c++ CUs.
638
771dd3a8
TT
6392020-03-16 Tom Tromey <tom@tromey.com>
640
641 * p-valprint.c (pascal_object_print_value): Initialize
642 base_value.
643
817a7585
AK
6442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
645 Shahab Vahedi <shahab@synopsys.com>
646
647 * Makefile.in: Add arch/arc.o
648 * configure.tgt: Likewise.
649 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
650 (_initialize_arc_tdep): Don't initialize old target descriptions.
651 (arc_read_description): New function to cache target descriptions.
652 * arc-tdep.h (arc_read_description): Add proto type.
653 * arch/arc.c: New file.
654 * arch/arc.h: Likewise.
655 * features/Makefile: Replace old target descriptions with new.
656 * features/arc-arcompact.c: Remove.
657 * features/arc-arcompact.xml: Likewise.
658 * features/arc-v2.c: Likewise
659 * features/arc-v2.xml: Likewise
660 * features/arc/aux-arcompact.xml: New file.
661 * features/arc/aux-v2.xml: Likewise.
662 * features/arc/core-arcompact.xml: Likewise.
663 * features/arc/core-v2.xml: Likewise.
664 * features/arc/aux-arcompact.c: Generate.
665 * features/arc/aux-v2.c: Likewise.
666 * features/arc/core-arcompact.c: Likewise.
667 * features/arc/core-v2.c: Likewise.
668 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
669
67430cd0
TT
6702020-03-16 Tom Tromey <tromey@adacore.com>
671
672 PR gdb/25663:
673 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
674 putting value into bcache.
675
30efb6c7
SM
6762020-03-16 Simon Marchi <simon.marchi@efficios.com>
677
678 PR gdb/21500
679 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
680 to...
681 (amd64_windows_init_abi_common): ... this. Don't set size of
682 long type.
683 (amd64_windows_init_abi): New function.
684 (amd64_cygwin_init_abi): New function.
685 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
686 the Cygwin OS ABI.
687 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
688 comment.
689
8db52437
SM
6902020-03-16 Simon Marchi <simon.marchi@efficios.com>
691
692 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
693 * windows-tdep.c (CYGWIN_DLL_NAME): New.
694 (pe_import_directory_entry): New struct type.
695 (is_linked_with_cygwin_dll): New function.
696 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
697 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
698 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
699
5982a56a
SM
7002020-03-16 Simon Marchi <simon.marchi@efficios.com>
701
702 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
703 i386_cygwin_core_osabi_sniffer.
704
7a1998df
SM
7052020-03-16 Simon Marchi <simon.marchi@efficios.com>
706
707 * i386-cygwin-tdep.c: Rename to...
708 * i386-windows-tdep.c: ... this.
709 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
710 i386-windows-tdep.c.
711 * configure.tgt: Likewise.
712
053205cc
SM
7132020-03-16 Simon Marchi <simon.marchi@efficios.com>
714
715 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
716 * osabi.c (gdb_osabi_names): Add "Windows".
717 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
718 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
719 (i386_cygwin_core_osabi_sniffer): New function, extracted from
720 i386_cygwin_osabi_sniffer.
721 (_initialize_i386_cygwin_tdep): Register OS ABI
722 GDB_OSABI_WINDOWS for i386.
723 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
724 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
725 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
726 for x86-64.
727 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
728 when the target matches '*-*-mingw*'.
729
fe4b2ee6
SM
7302020-03-16 Simon Marchi <simon.marchi@efficios.com>
731
732 * defs.h (enum gdb_osabi): Move to...
733 * osabi.h (enum gdb_osabi): ... here.
734 * gdbarch.sh: Include osabi.h in gdbarch.h.
735 * gdbarch.h: Re-generate.
736
cb9b645d
SM
7372020-03-16 Simon Marchi <simon.marchi@efficios.com>
738
739 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
740 function.
741 (_initialize_amd64_windows_tdep): Register osabi sniffer.
742
3293bbaf
TT
7432020-03-14 Tom Tromey <tom@tromey.com>
744
745 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
746 for C++.
747 (c_type_print_modifier): Likewise. Add "language" parameter.
748 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
749 (c_type_print_base_1): Update.
750 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
751 constants.
752 * type-stack.c (type_stack::insert): Handle tp_atomic and
753 tp_restrict.
754 (type_stack::follow_type_instance_flags): Likewise.
755 (type_stack::follow_types): Likewise. Merge type-following code.
756 * c-exp.y (RESTRICT, ATOMIC): New tokens.
757 (space_identifier, cv_with_space_id)
758 (const_or_volatile_or_space_identifier_noopt)
759 (const_or_volatile_or_space_identifier): Remove.
760 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
761 rules.
762 (ptr_operator, typebase): Update.
763 (enum token_flag) <FLAG_C>: New constant.
764 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
765 "_Atomic".
766 (lex_one_token): Handle FLAG_C.
767
154151a6
KR
7682020-03-14 Kamil Rytarowski <n54@gmx.com>
769
770 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
771 it to the ptrace call.
772 * m68k-bsd-nat.c (store_registers): Likewise.
773
bc107784
KR
7742020-03-14 Kamil Rytarowski <n54@gmx.com>
775
776 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
777 gdb_byte *.
778 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
779 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
780 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
781
01a80117
KR
7822020-03-14 Kamil Rytarowski <n54@gmx.com>
783
784 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
785 nbsd_nat_target instead of inf_ptrace_target.
786 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
787 nbsd_nat_target.
788
f90280ca
KR
7892020-03-14 Kamil Rytarowski <n54@gmx.com>
790
791 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
792 register_t.
793
6def66f1
KR
7942020-03-14 Kamil Rytarowski <n54@gmx.com>
795
796 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
797 it to the ptrace call.
798 * alpha-bsd-nat.c (store_registers): Likewise.
799
66eaca97
KR
8002020-03-14 Kamil Rytarowski <n54@gmx.com>
801
802 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
803 includes.
804 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
805 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
806 fill_fpregset): Likewise.
807
4fed520b
KR
8082020-03-14 Kamil Rytarowski <n54@gmx.com>
809
810 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
811 nbsd_nat_target instead of inf_ptrace_target.
812 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
813 nbsd_nat_target.
814
2190cf06
KR
8152020-03-14 Kamil Rytarowski <n54@gmx.com>
816
817 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
818 register_t.
819
75c56d3d
KR
8202020-03-14 Kamil Rytarowski <n54@gmx.com>
821
822 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
823 it to the ptrace call.
824 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
825 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
826 * arm-nbsd-nat.c (store_register): Likewise.
827 * arm-nbsd-nat.c (store_regs): Likewise.
828 * arm-nbsd-nat.c (store_fp_register): Likewise.
829 * arm-nbsd-nat.c (store_fp_regs): Likewise.
830
6018d381
KR
8312020-03-14 Kamil Rytarowski <n54@gmx.com>
832
833 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
834 nbsd_nat_target instead of inf_ptrace_target.
835 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
836 nbsd_nat_target.
837
013f99f0
KR
8382020-03-14 Kamil Rytarowski <n54@gmx.com>
839
840 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
841 it to the ptrace call.
842 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
843
12753073
KR
8442020-03-14 Kamil Rytarowski <n54@gmx.com>
845
6227b330
KR
846 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
847 it to the ptrace call.
848 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
849
8502020-03-14 Kamil Rytarowski <n54@gmx.com>
851
852 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
853 gdb_byte *.
12753073
KR
854 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
855
d5be5fa4
KR
8562020-03-14 Kamil Rytarowski <n54@gmx.com>
857
858 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
859 instead of inf_ptrace_target.
860 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
861 nbsd_nat_target.
862
8110f842
KR
8632020-03-14 Kamil Rytarowski <n54@gmx.com>
864
865 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
866 register_t.
867
52feded7
KR
8682020-03-14 Kamil Rytarowski <n54@gmx.com>
869
870 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
871 register_t.
872
25567eee
KR
8732020-03-14 Kamil Rytarowski <n54@gmx.com>
874
875 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
876 register_t.
877
426a9c18
TT
8782020-03-13 Tom Tromey <tom@tromey.com>
879
880 * value.h (val_print): Don't declare.
881 * valprint.h (val_print_array_elements)
882 (val_print_scalar_formatted, generic_val_print): Don't declare.
883 * valprint.c (generic_val_print_array): Take a struct value.
884 (generic_val_print_ptr, generic_val_print_memberptr)
885 (generic_val_print_bool, generic_val_print_int)
886 (generic_val_print_char, generic_val_print_complex)
887 (generic_val_print): Remove.
888 (generic_value_print): Update.
889 (do_val_print): Remove unused parameters. Don't call
890 la_val_print.
891 (val_print): Remove.
892 (common_val_print): Update. Don't call value_check_printable.
893 (val_print_scalar_formatted, val_print_array_elements): Remove.
894 * rust-lang.c (rust_val_print): Remove.
895 (rust_language_defn): Update.
896 * p-valprint.c (pascal_val_print): Remove.
897 (pascal_value_print_inner): Update.
898 (pascal_object_print_val_fields, pascal_object_print_val):
899 Remove.
900 (pascal_object_print_static_field): Update.
901 * p-lang.h (pascal_val_print): Don't declare.
902 * p-lang.c (pascal_language_defn): Update.
903 * opencl-lang.c (opencl_language_defn): Update.
904 * objc-lang.c (objc_language_defn): Update.
905 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
906 * m2-lang.h (m2_val_print): Don't declare.
907 * m2-lang.c (m2_language_defn): Update.
908 * language.h (struct language_defn) <la_val_print>: Remove.
909 * language.c (unk_lang_value_print_inner): Rename. Change
910 argument types.
911 (unknown_language_defn, auto_language_defn): Update.
912 * go-valprint.c (go_val_print): Remove.
913 * go-lang.h (go_val_print): Don't declare.
914 * go-lang.c (go_language_defn): Update.
915 * f-valprint.c (f_val_print): Remove.
916 * f-lang.h (f_value_print): Don't declare.
917 * f-lang.c (f_language_defn): Update.
918 * d-valprint.c (d_val_print): Remove.
919 * d-lang.h (d_value_print): Don't declare.
920 * d-lang.c (d_language_defn): Update.
921 * cp-valprint.c (cp_print_value_fields)
922 (cp_print_value_fields_rtti, cp_print_value): Remove.
923 (cp_print_static_field): Update.
924 * c-valprint.c (c_val_print_array, c_val_print_ptr)
925 (c_val_print_struct, c_val_print_union, c_val_print_int)
926 (c_val_print_memberptr, c_val_print): Remove.
927 * c-lang.h (c_val_print_array, cp_print_value_fields)
928 (cp_print_value_fields_rtti): Don't declare.
929 * c-lang.c (c_language_defn, cplus_language_defn)
930 (asm_language_defn, minimal_language_defn): Update.
931 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
932 (ada_val_print_enum): Take a struct value.
933 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
934 (ada_val_print): Remove.
935 (ada_value_print_1): Update.
936 (printable_val_type): Remove.
937 * ada-lang.h (ada_val_print): Don't declare.
938 * ada-lang.c (ada_language_defn): Update.
939
42331a1e
TT
9402020-03-13 Tom Tromey <tom@tromey.com>
941
942 * valprint.c (do_val_print): Update.
943 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
944 a struct value.
945 (value_to_value_object_no_release): Declare.
946 * python/py-value.c (value_to_value_object_no_release): New
947 function.
948 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
949 struct value.
950 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
951 function.
952 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
953 a struct value.
954 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
955 Declare.
956 (gdbscm_apply_val_pretty_printer): Take a struct value.
957 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
958 value.
959 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
960 value.
961 * extension-priv.h (struct extension_language_ops)
962 <apply_val_pretty_printer>: Take a struct value.
963 * cp-valprint.c (cp_print_value): Create a struct value.
964 (cp_print_value): Update.
965
3a916a97
TT
9662020-03-13 Tom Tromey <tom@tromey.com>
967
968 * ada-valprint.c (print_field_values): Call common_val_print.
969
b59eac37
TT
9702020-03-13 Tom Tromey <tom@tromey.com>
971
972 * ada-valprint.c (val_print_packed_array_elements): Remove
973 bitoffset and val parameters. Call common_val_print.
974 (ada_val_print_string): Remove offset, address, and original_value
975 parameters.
976 (ada_val_print_array): Update.
977 (ada_value_print_array): New function.
978 (ada_value_print_1): Call it.
979
03371129
TT
9802020-03-13 Tom Tromey <tom@tromey.com>
981
982 * ada-valprint.c (ada_value_print): Use common_val_print.
983
2e088f8b
TT
9842020-03-13 Tom Tromey <tom@tromey.com>
985
986 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
987
39ef85a8
TT
9882020-03-13 Tom Tromey <tom@tromey.com>
989
990 * ada-valprint.c (ada_value_print_num): New function.
991 (ada_value_print_1): Use it.
992
b9fa6e07
TT
9932020-03-13 Tom Tromey <tom@tromey.com>
994
995 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
996
416595d6
TT
9972020-03-13 Tom Tromey <tom@tromey.com>
998
999 * ada-valprint.c (ada_value_print_ptr): New function.
1000 (ada_value_print_1): Use it.
1001
5b5e15ec
TT
10022020-03-13 Tom Tromey <tom@tromey.com>
1003
1004 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1005 call common_val_print.
1006 (ada_val_print_1): Update.
1007 (ada_value_print_1): New function.
1008 (ada_value_print_inner): Rewrite.
1009
fbf54e75
TT
10102020-03-13 Tom Tromey <tom@tromey.com>
1011
1012 * cp-valprint.c (cp_print_value_fields): Update.
1013 (cp_print_value): New function.
1014
64b653ca
TT
10152020-03-13 Tom Tromey <tom@tromey.com>
1016
1017 * m2-valprint.c (m2_value_print_inner): Use
1018 cp_print_value_fields.
1019 * cp-valprint.c (cp_print_value_fields): New function.
1020 * c-valprint.c (c_value_print_struct): New function.
1021 (c_value_print_inner): Use c_value_print_struct.
1022 * c-lang.h (cp_print_value_fields): Declare.
1023
6999f067
TT
10242020-03-13 Tom Tromey <tom@tromey.com>
1025
1026 * c-valprint.c (c_value_print_array): New function.
1027 (c_value_print_inner): Use it.
1028
ce80b8bd
TT
10292020-03-13 Tom Tromey <tom@tromey.com>
1030
1031 * c-valprint.c (c_value_print_memberptr): New function.
1032 (c_value_print_inner): Use it.
1033
2faac269
TT
10342020-03-13 Tom Tromey <tom@tromey.com>
1035
1036 * c-valprint.c (c_value_print_int): New function.
1037 (c_value_print_inner): Use it.
1038
da3e2c29
TT
10392020-03-13 Tom Tromey <tom@tromey.com>
1040
1041 * c-valprint.c (c_value_print_ptr): New function.
1042 (c_value_print_inner): Use it.
1043
50836231
TT
10442020-03-13 Tom Tromey <tom@tromey.com>
1045
1046 * c-valprint.c (c_value_print_inner): Rewrite.
1047
4f412b6e
TT
10482020-03-13 Tom Tromey <tom@tromey.com>
1049
1050 * valprint.c (generic_value_print_complex): New function.
1051 (generic_value_print): Use it.
1052
f5354008
TT
10532020-03-13 Tom Tromey <tom@tromey.com>
1054
1055 * valprint.c (generic_val_print_float): Don't call
1056 val_print_scalar_formatted.
1057 (generic_val_print, generic_value_print): Update.
1058
3eec3b05
TT
10592020-03-13 Tom Tromey <tom@tromey.com>
1060
1061 * valprint.c (generic_value_print_char): New function
1062 (generic_value_print): Use it.
1063
fdddfccb
TT
10642020-03-13 Tom Tromey <tom@tromey.com>
1065
1066 * valprint.c (generic_value_print_int): New function.
1067 (generic_value_print): Use it.
1068
6dde7521
TT
10692020-03-13 Tom Tromey <tom@tromey.com>
1070
1071 * valprint.c (generic_value_print_bool): New function.
1072 (generic_value_print): Use it.
1073
4112d2e6
TT
10742020-03-13 Tom Tromey <tom@tromey.com>
1075
1076 * valprint.c (generic_val_print_func): Simplify.
1077 (generic_val_print, generic_value_print): Update.
1078
65786af6
TT
10792020-03-13 Tom Tromey <tom@tromey.com>
1080
1081 * valprint.c (generic_val_print_flags): Remove.
1082 (generic_val_print, generic_value_print): Update.
1083 (val_print_type_code_flags): Add original_value parameter.
1084
40f3ce18
TT
10852020-03-13 Tom Tromey <tom@tromey.com>
1086
1087 * valprint.c (generic_val_print): Update.
1088 (generic_value_print): Update.
1089 * valprint.c (generic_val_print_enum): Don't call
1090 val_print_scalar_formatted.
1091
2a5b130b
TT
10922020-03-13 Tom Tromey <tom@tromey.com>
1093
1094 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1095 * valprint.c (generic_value_print_ptr): New function.
1096
abc66ce9
TT
10972020-03-13 Tom Tromey <tom@tromey.com>
1098
1099 * valprint.c (generic_value_print): Rewrite.
1100
07a32858
TT
11012020-03-13 Tom Tromey <tom@tromey.com>
1102
1103 * p-valprint.c (pascal_object_print_value_fields)
1104 (pascal_object_print_value): New functions.
1105
64d64d3a
TT
11062020-03-13 Tom Tromey <tom@tromey.com>
1107
1108 * p-valprint.c (pascal_value_print_inner): Rewrite.
1109
6a95a1f5
TT
11102020-03-13 Tom Tromey <tom@tromey.com>
1111
1112 * f-valprint.c (f_value_print_innner): Rewrite.
1113
59fcdac6
TT
11142020-03-13 Tom Tromey <tom@tromey.com>
1115
1116 * m2-valprint.c (m2_print_unbounded_array): New overload.
1117 (m2_print_unbounded_array): Update.
1118 (m2_print_array_contents): Take a struct value.
1119 (m2_value_print_inner): Rewrite.
1120
d133c3e1
TT
11212020-03-13 Tom Tromey <tom@tromey.com>
1122
1123 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1124 (d_value_print_inner): New function.
1125 * d-lang.h (d_value_print_inner): Declare.
1126 * d-lang.c (d_language_defn): Use d_value_print_inner.
1127
23b0f06b
TT
11282020-03-13 Tom Tromey <tom@tromey.com>
1129
1130 * go-valprint.c (go_value_print_inner): New function.
1131 * go-lang.h (go_value_print_inner): Declare.
1132 * go-lang.c (go_language_defn): Use go_value_print_inner.
1133
5f56f7cb
TT
11342020-03-13 Tom Tromey <tom@tromey.com>
1135
1136 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1137 API.
1138 (rust_val_print): Rewrite.
1139 (rust_value_print_inner): New function, from rust_val_print.
1140 (rust_language_defn): Use rust_value_print_inner.
1141
26792ee0
TT
11422020-03-13 Tom Tromey <tom@tromey.com>
1143
1144 * ada-valprint.c (ada_value_print_inner): New function.
1145 * ada-lang.h (ada_value_print_inner): Declare.
1146 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1147
24051bbe
TT
11482020-03-13 Tom Tromey <tom@tromey.com>
1149
1150 * f-valprint.c (f_value_print_innner): New function.
1151 * f-lang.h (f_value_print_innner): Declare.
1152 * f-lang.c (f_language_defn): Use f_value_print_innner.
1153
c0941be6
TT
11542020-03-13 Tom Tromey <tom@tromey.com>
1155
1156 * p-valprint.c (pascal_value_print_inner): New function.
1157 * p-lang.h (pascal_value_print_inner): Declare.
1158 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
1159
62c4663d
TT
11602020-03-13 Tom Tromey <tom@tromey.com>
1161
1162 * m2-valprint.c (m2_value_print_inner): New function.
1163 * m2-lang.h (m2_value_print_inner): Declare.
1164 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
1165
62182190
TT
11662020-03-13 Tom Tromey <tom@tromey.com>
1167
1168 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
1169 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
1170 * c-valprint.c (c_value_print_inner): New function.
1171 * c-lang.h (c_value_print_inner): Declare.
1172 * c-lang.c (c_language_defn, cplus_language_defn)
1173 (asm_language_defn, minimal_language_defn): Use
1174 c_value_print_inner.
1175
1e592a8a
TT
11762020-03-13 Tom Tromey <tom@tromey.com>
1177
1178 * p-valprint.c (pascal_object_print_value_fields): Now static.
1179 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1180
7fe471e9
TT
11812020-03-13 Tom Tromey <tom@tromey.com>
1182
1183 * c-valprint.c (c_val_print_array): Simplify.
1184
d121c6ce
TT
11852020-03-13 Tom Tromey <tom@tromey.com>
1186
1187 * valprint.c (value_print_array_elements): New function.
1188 * valprint.h (value_print_array_elements): Declare.
1189
4dba70ee
TT
11902020-03-13 Tom Tromey <tom@tromey.com>
1191
1192 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1193 * mips-tdep.c (mips_print_register): Use
1194 value_print_scalar_formatted.
1195
4f9ae810
TT
11962020-03-13 Tom Tromey <tom@tromey.com>
1197
1198 * valprint.h (value_print_scalar_formatted): Declare.
1199 * valprint.c (value_print_scalar_formatted): New function.
1200
156bfec9
TT
12012020-03-13 Tom Tromey <tom@tromey.com>
1202
1203 * valprint.h (generic_value_print): Declare.
1204 * valprint.c (generic_value_print): New function.
1205
2b4e573d
TT
12062020-03-13 Tom Tromey <tom@tromey.com>
1207
1208 * valprint.c (do_val_print): Call la_value_print_inner, if
1209 available.
1210 * rust-lang.c (rust_language_defn): Update.
1211 * p-lang.c (pascal_language_defn): Update.
1212 * opencl-lang.c (opencl_language_defn): Update.
1213 * objc-lang.c (objc_language_defn): Update.
1214 * m2-lang.c (m2_language_defn): Update.
1215 * language.h (struct language_defn) <la_value_print_inner>: New
1216 member.
1217 * language.c (unknown_language_defn, auto_language_defn): Update.
1218 * go-lang.c (go_language_defn): Update.
1219 * f-lang.c (f_language_defn): Update.
1220 * d-lang.c (d_language_defn): Update.
1221 * c-lang.c (c_language_defn, cplus_language_defn)
1222 (asm_language_defn, minimal_language_defn): Update.
1223 * ada-lang.c (ada_language_defn): Update.
1224
a1f6a07c
TT
12252020-03-13 Tom Tromey <tom@tromey.com>
1226
1227 * c-valprint.c (c_value_print): Use common_val_print.
1228
410cf315
TT
12292020-03-13 Tom Tromey <tom@tromey.com>
1230
1231 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1232
72a45c93
TT
12332020-03-13 Tom Tromey <tom@tromey.com>
1234
1235 * f-valprint.c (f77_print_array_1, f_val_print): Use
1236 common_val_print.
1237
040f66bd
TT
12382020-03-13 Tom Tromey <tom@tromey.com>
1239
1240 * riscv-tdep.c (riscv_print_one_register_info): Use
1241 common_val_print.
1242
a6e05a6c
TT
12432020-03-13 Tom Tromey <tom@tromey.com>
1244
1245 * mi/mi-main.c (output_register): Use common_val_print.
1246
3444c526
TT
12472020-03-13 Tom Tromey <tom@tromey.com>
1248
1249 * infcmd.c (default_print_one_register_info): Use
1250 common_val_print.
1251
c2a44efe
TT
12522020-03-13 Tom Tromey <tom@tromey.com>
1253
1254 * valprint.h (common_val_print_checked): Declare.
1255 * valprint.c (common_val_print_checked): New function.
1256 * stack.c (print_frame_arg): Use common_val_print_checked.
1257
b0c26e99
TT
12582020-03-13 Tom Tromey <tom@tromey.com>
1259
1260 * valprint.c (do_val_print): New function, from val_print.
1261 (val_print): Use do_val_print.
1262 (common_val_print): Use do_val_print.
1263
ce3acbe9
TT
12642020-03-13 Tom Tromey <tom@tromey.com>
1265
1266 * valprint.c (value_print): Use scoped_value_mark.
1267
96c7f873
TV
12682020-03-13 Tom de Vries <tdevries@suse.de>
1269
1270 PR symtab/25646
1271 * psymtab.c (partial_symtab::partial_symtab): Don't set
1272 globals_offset and statics_offset. Push element onto
1273 current_global_psymbols and current_static_psymbols stacks.
1274 (concat): New function.
1275 (end_psymtab_common): Set globals_offset and statics_offset. Pop
1276 element from current_global_psymbols and current_static_psymbols
1277 stacks. Concat popped elements to global_psymbols and
1278 static_symbols.
1279 (add_psymbol_to_list): Use current_global_psymbols and
1280 current_static_psymbols stacks.
1281 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
1282 current_static_psymbols fields.
1283
6ba0a321
CB
12842020-03-12 Christian Biesinger <cbiesinger@google.com>
1285
1286 * corelow.c (sniff_core_bfd): Remove.
1287 (class core_target) <m_core_vec>: Remove.
1288 (core_target::core_target): Update.
1289 (core_file_fns): Remove.
1290 (deprecated_add_core_fns): Remove.
1291 (default_core_sniffer): Remove.
1292 (sniff_core_bfd): Remove.
1293 (default_check_format): Remove.
1294 (gdb_check_format): Remove.
1295 (core_target_open): Update.
1296 (core_target::get_core_register_section): Update.
1297 (get_core_registers_cb): Update.
1298 (core_target::fetch_registers): Update.
1299 * gdbcore.h (struct core_fns): Remove.
1300 (deprecated_add_core_fns): Remove.
1301 (default_core_sniffer): Remove.
1302 (default_check_format): Remove.
1303
227031b2
TT
13042020-03-12 Tom Tromey <tom@tromey.com>
1305
1306 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
1307 CORE_ADDR.
1308 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
1309
53807e9f
TT
13102020-03-12 Tom Tromey <tom@tromey.com>
1311
1312 * remote.c (remote_target::download_tracepoint)
1313 (remote_target::enable_tracepoint)
1314 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
1315 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
1316 sprintf_vma.
1317
64f25102
TT
13182020-03-12 Tom Tromey <tom@tromey.com>
1319
1320 * symfile-mem.c: Update CORE_ADDR size assert.
1321
272cd5a3
SM
13222020-03-12 Simon Marchi <simon.marchi@efficios.com>
1323
1324 * selftest.m4: Move to gdbsupport/.
1325 * acinclude.m4: Update path to selftest.m4.
1326
74cd3f9d
SM
13272020-03-12 Simon Marchi <simon.marchi@efficios.com>
1328
1329 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
1330 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
1331 gdbarch-selfselftests.c and selftest-arch.c.
1332 (SUBDIR_UNITTESTS_OBS): Rename to...
1333 (SELFTESTS_OBS): ... this.
1334 (COMMON_SFILES): Remove disasm-selftests.c and
1335 gdbarch-selftests.c.
1336 * configure.ac: Don't add selftest-arch.{c,o} to
1337 CONFIG_{SRCS,OBS}.
1338 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
1339 preprocessor conditions.
1340
db6878ac
SM
13412020-03-12 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * configure.ac: Don't source bfd/development.sh.
1344 * selftest.m4: Modify comment.
1345 * configure: Re-generate.
1346
4d696a5c
SM
13472020-03-12 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
1350 not "true" or "false".
1351 * configure: Re-generate.
1352
8dd8e1c7
CB
13532020-03-12 Christian Biesinger <cbiesinger@google.com>
1354
1355 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
1356 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
1357 renamed to arm_nbsd_supply_gregset.
1358 (fetch_register): Update to call arm_nbsd_supply_gregset.
1359 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
1360 (arm_netbsd_nat_target::fetch_registers): Update.
1361 (fetch_elfcore_registers): Removed.
1362 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
1363 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
1364 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
1365 not require NetBSD system headers.
1366 (arm_nbsd_regset): New struct.
1367 (arm_nbsd_iterate_over_regset_sections): New function.
1368 (arm_netbsd_init_abi_common): Updated to call
1369 set_gdbarch_iterate_over_regset_sections.
1370 * arm-nbsd-tdep.h: New file.
1371
dd69bf7a
KB
13722020-03-11 Kevin Buettner <kevinb@redhat.com>
1373
1374 * symtab.c (find_pc_sect_line): Add check which prevents infinite
1375 recursion.
1376
a0761e34
SM
13772020-03-11 Simon Marchi <simon.marchi@efficios.com>
1378
1379 * configure: Re-generate.
1380
e7a82140
TT
13812020-03-11 Tom Tromey <tromey@adacore.com>
1382
1383 * ada-typeprint.c (print_choices): Fix comment.
1384
dcc050c8
AB
13852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
1388 previous item in the list, when the list has no items.
1389
1c33af77
TV
13902020-03-11 Tom de Vries <tdevries@suse.de>
1391
1392 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
1393 PROP_LOCLIST handling code.
1394
8c95582d
AB
13952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * buildsym-legacy.c (record_line): Pass extra parameter to
1398 record_line.
1399 * buildsym.c (buildsym_compunit::record_line): Take an extra
1400 parameter, reduce duplication in the line table, and record the
1401 is_stmt flag in the line table.
1402 * buildsym.h (buildsym_compunit::record_line): Add extra
1403 parameter.
1404 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
1405 non-statement lines.
1406 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
1407 this to the symtab builder.
1408 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
1409 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
1410 through to dwarf_record_line_1.
1411 * infrun.c (process_event_stop_test): When stepping, don't stop at
1412 a non-statement instruction, and only refresh the step info when
1413 we land in the middle of a line's range. Also add an extra
1414 comment.
1415 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
1416 field.
1417 * record-btrace.c (btrace_find_line_range): Only record lines
1418 marked as is-statement.
1419 * stack.c (frame_show_address): Show the frame address if we are
1420 in a non-statement sal.
1421 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
1422 (maintenance_print_one_line_table): Print a header for the is_stmt
1423 column, and include is_stmt information in the output.
1424 * symtab.c (find_pc_sect_line): Find lines marked as statements in
1425 preference to non-statements.
1426 (find_pcs_for_symtab_line): Prefer is-statement entries.
1427 (find_line_common): Likewise.
1428 * symtab.h (struct linetable_entry): Add is_stmt field.
1429 (struct symtab_and_line): Likewise.
1430 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
1431 arranging the line table.
1432
e4003a34
TV
14332020-03-07 Tom de Vries <tdevries@suse.de>
1434
1435 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
1436 DIE.
1437
e8932576
TT
14382020-03-07 Tom Tromey <tom@tromey.com>
1439
1440 * valops.c (value_literal_complex): Remove obsolete comment.
1441 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
1442 comment.
1443
29734269
SM
14442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * infrun.h: Forward-declare thread_info.
1447 (set_step_info): Add thread_info parameter, add doc.
1448 * infrun.c (set_step_info): Add thread_info parameter, move doc
1449 to header.
1450 * infrun.c (process_event_stop_test): Pass thread to
1451 set_step_info call.
1452 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
1453 set_step_info.
1454 (prepare_one_step): Add thread_info parameter, pass it to
1455 set_step_frame and prepare_one_step (recursive) call.
1456 (step_1): Pass thread to prepare_one_step call.
1457 (step_command_fsm::should_stop): Pass thread to
1458 prepare_one_step.
1459 (until_next_fsm): Pass thread to set_step_frame call.
1460 (finish_command): Pass thread to set_step_info call.
1461
b7d64b29
HD
14622020-03-06 Hannes Domani <ssbssa@yahoo.de>
1463
1464 * windows-tdep.c (windows_solib_create_inferior_hook):
1465 Check if inferior is running.
1466
09f2921c
TV
14672020-03-06 Tom de Vries <tdevries@suse.de>
1468
1469 * NEWS: Fix "the the".
1470 * ctfread.c: Same.
1471
fd760e79
TV
14722020-03-06 Tom de Vries <tdevries@suse.de>
1473
1474 * psymtab.c (psymtab_to_symtab): Don't print "done.".
1475
20ea4a60
AB
14762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * .dir-locals.el: Add a comment referencing the other copies of
1479 this file.
1480
0afbabf0
JB
14812020-03-05 John Baldwin <jhb@FreeBSD.org>
1482
1483 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
1484 psargs.
1485
842806cb
TBA
14862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1487
1488 * .gitattributes: New file.
1489
be1e3d3e
TT
14902020-03-04 Tom Tromey <tom@tromey.com>
1491
1492 * symmisc.c (print_symbol_bcache_statistics)
1493 (print_objfile_statistics): Update.
1494 * symfile.c (allocate_symtab): Use intern.
1495 * psymtab.c (partial_symtab::partial_symtab): Use intern.
1496 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
1497 macro_cache>: Remove.
1498 <string_cache>: New member.
1499 (struct objfile) <intern>: New methods.
1500 * elfread.c (elf_symtab_read): Use intern.
1501 * dwarf2/read.c (fixup_go_packaging): Intern package name.
1502 (dwarf2_compute_name, dwarf2_physname)
1503 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
1504 names.
1505 (guess_partial_die_structure_name): Update.
1506 (partial_die_info::fixup): Intern name.
1507 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
1508 name.
1509 (dwarf2_name): Intern name. Update.
1510 * buildsym.c (buildsym_compunit::get_macro_table): Use
1511 string_cache.
1512
4e7625fd
TT
15132020-03-04 Tom Tromey <tom@tromey.com>
1514
1515 * jit.c (bfd_open_from_target_memory): Make "target" const.
1516 * corefile.c (gnutarget): Now const.
1517 * gdbcore.h (gnutarget): Now const.
1518
46f9f931
HD
15192020-03-04 Hannes Domani <ssbssa@yahoo.de>
1520
1521 * NEWS: Mention support for WOW64 processes.
1522 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
1523 (amd64_windows_segment_register_p): Remove static.
1524 (_initialize_amd64_windows_nat): Update.
1525 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
1526 * i386-windows-nat.c (context_offset): Update.
1527 (i386_mappings): Rename and remove static.
1528 (i386_windows_segment_register_p): Remove static.
1529 (_initialize_i386_windows_nat): Update.
1530 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
1531 (STATUS_WX86_SINGLE_STEP): New macro.
1532 (EnumProcessModulesEx): New macro.
1533 (Wow64SuspendThread): New macro.
1534 (Wow64GetThreadContext): New macro.
1535 (Wow64SetThreadContext): New macro.
1536 (Wow64GetThreadSelectorEntry): New macro.
1537 (windows_set_context_register_offsets): Add static.
1538 (windows_set_segment_register_p): Likewise.
1539 (windows_add_thread): Adapt for WOW64 processes.
1540 (windows_fetch_one_register): Likewise.
1541 (windows_nat_target::fetch_registers): Likewise.
1542 (windows_store_one_register): Likewise.
1543 (display_selector): Likewise.
1544 (display_selectors): Likewise.
1545 (handle_exception): Likewise.
1546 (windows_continue): Likewise.
1547 (windows_nat_target::resume): Likewise.
1548 (windows_add_all_dlls): Likewise.
1549 (do_initial_windows_stuff): Likewise.
1550 (windows_nat_target::attach): Likewise.
1551 (windows_get_exec_module_filename): Likewise.
1552 (windows_nat_target::create_inferior): Likewise.
1553 (windows_xfer_siginfo): Likewise.
1554 (_initialize_loadable): Initialize Wow64SuspendThread,
1555 Wow64GetThreadContext, Wow64SetThreadContext,
1556 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
1557 * windows-nat.h (windows_set_context_register_offsets):
1558 Remove declaration.
1559 (windows_set_segment_register_p): Likewise.
1560 (i386_windows_segment_register_p): Add declaration.
1561 (amd64_windows_segment_register_p): Likewise.
1562
440cf44e
LM
15632020-03-04 Luis Machado <luis.machado@linaro.org>
1564
1565 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
1566 in "info registers" for AArch64/ARM.
1567
1568 The change caused "info registers" to not print GPR's.
1569
1570 gdb/ChangeLog:
1571
1572 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1573
1574 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1575 when reg->group is empty and reggroup is not.
1576
1009d92f
TT
15772020-03-03 Tom Tromey <tromey@adacore.com>
1578
1579 * dwarf2/frame.c (struct dwarf2_frame_cache)
1580 <checked_tailcall_bottom, entry_cfa_sp_offset,
1581 entry_cfa_sp_offset_p>: Remove members.
1582 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
1583 (dwarf2_frame_prev_register): Don't call
1584 dwarf2_tailcall_sniffer_first.
1585 (dwarf2_append_unwinders): Don't append tailcall unwinder.
1586 * frame-unwind.c (add_unwinder): New fuction.
1587 (frame_unwind_init): Use it. Add tailcall unwinder.
1588
5e5d66b6
AB
15892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
1590 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1591
1592 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
1593 value should be printed as true.
1594
584cf46d
HD
15952020-03-03 Hannes Domani <ssbssa@yahoo.de>
1596
1597 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
1598 (windows_init_abi): Set and use windows_so_ops.
1599
7b973adc
SDJ
16002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
1601
1602 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
1603 when verifying if dealing with a convenience variable.
1604
bb7b70ab
LM
16052020-03-03 Luis Machado <luis.machado@linaro.org>
1606
1607 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
1608
9822cb57
SM
16092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1610
1611 * infrun.c (gdbarch_supports_displaced_stepping): New.
1612 (use_displaced_stepping): Break up conditions in smaller pieces.
1613 Use gdbarch_supports_displaced_stepping.
1614 (displaced_step_prepare_throw): Use
1615 gdbarch_supports_displaced_stepping.
1616
63e163f2
AB
16172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * NEWS: Mention new behaviour of the history filename.
1620 * top.c (write_history_p): Add comment.
1621 (show_write_history_p): Add header comment, give a different
1622 message when history writing is on, but the history filename is
1623 empty.
1624 (history_filename): Add comment.
1625 (history_filename_empty): New function.
1626 (show_history_filename): Add header comment, give a different
1627 message when the filename is empty.
1628 (init_history): Compare history_filename against nullptr, and only
1629 read history if the filename is not empty.
1630 (set_history_filename): Add header comment, and only make
1631 non-empty filenames absolute.
1632 (init_main): Make the filename argument to 'set history filename'
1633 optional.
1634
81b86b97
CB
16352020-03-02 Christian Biesinger <cbiesinger@google.com>
1636
1637 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
1638 (arm_supply_vfpregset): ...this, and update to use VFP registers.
1639 (fetch_fp_register): Update.
1640 (fetch_fp_regs): Update.
1641 (store_fp_register): Update.
1642 (store_fp_regs): Update.
1643 (arm_netbsd_nat_target::read_description): New function.
1644 (fetch_elfcore_registers): Update.
1645
24ed6739
AB
16462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
1649 general_thread if the stop reply is missing a thread-id.
1650 (remote_target::process_stop_reply): Use the first non-exited
1651 thread if the target didn't pass a thread-id.
1652 * infrun.c (do_target_wait): Move call to
1653 switch_to_inferior_no_thread to ....
1654 (do_target_wait_1): ... here.
1655
a84bb2a0
JT
16562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
1657
1658 * debuginfod-support.c: Include defs.h first.
1659
658dadf0
TV
16602020-02-28 Tom de Vries <tdevries@suse.de>
1661
1662 * symfile.c (set_initial_language): Use default language for lookup.
1663
4ebe4877
SM
16642020-02-28 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
1667 reader variable, pass `this` to read_cutu_die_from_dwo.
1668
e5da1139
AM
16692020-02-27 Aaron Merey <amerey@redhat.com>
1670
1671 * source.c (open_source_file): Check for nullptr when computing
1672 srcpath.
1673
317f7127
TT
16742020-02-27 Tom Tromey <tromey@adacore.com>
1675
1676 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
1677 member.
1678 (dwarf2_add_field): Don't update nfields.
1679 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
1680
3104d9ee
AB
16812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
1684 abs.
1685
b83470bf
TT
16862020-02-26 Tom Tromey <tom@tromey.com>
1687
1688 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
1689 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
1690 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
1691 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
1692 per_cu_data.
1693
edfe0a0c
TT
16942020-02-26 Tom Tromey <tom@tromey.com>
1695
1696 * dwarf2/index-write.c (psym_index_map): Change type.
1697 (add_address_entry_worker, write_one_signatured_type)
1698 (recursively_count_psymbols, recursively_write_psymbols)
1699 (class debug_names, psyms_seen_size, write_gdbindex)
1700 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
1701
0d79cdc4
AM
17022020-02-26 Aaron Merey <amerey@redhat.com>
1703
1704 * Makefile.in: Handle optional debuginfod support.
1705 * NEWS: Update.
1706 * README: Add --with-debuginfod summary.
1707 * config.in: Regenerate.
1708 * configure: Regenerate.
1709 * configure.ac: Handle optional debuginfod support.
1710 * debuginfod-support.c: debuginfod helper functions.
1711 * debuginfod-support.h: Ditto.
1712 * doc/gdb.texinfo: Add --with-debuginfod to configure options
1713 summary.
1714 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
1715 when a dwz file cannot be found.
1716 * elfread.c (elf_symfile_read): Query debuginfod servers when a
1717 debuginfo file cannot be found.
1718 * source.c (open_source_file): Query debuginfod servers when a
1719 source file cannot be found.
1720 * top.c (print_gdb_configuration): Include
1721 --{with,without}-debuginfod in the output.
1722
b65ce565
JG
17232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
1724
1725 * thread.c (thr_try_catch_cmd): Print thread name.
1726
d4c9a4f8
SM
17272020-02-26 Simon Marchi <simon.marchi@efficios.com>
1728
1729 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
1730 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1731 dwarf2_fetch_die_type_sect_off): Move to...
1732 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1733 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1734 dwarf2_fetch_die_type_sect_off): ... here.
1735 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1736 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1737 dwarf2_fetch_die_type_sect_off): Move doc to header file.
1738
0dce4280
TV
17392020-02-26 Tom de Vries <tdevries@suse.de>
1740
1741 PR gdb/25603
1742 * symfile.c (set_initial_language): Exit-early if
1743 language_mode == language_mode_manual.
1744
450a1bfc
SM
17452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
1748 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
1749 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
1750
9e80cfa1
AB
17512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * gdbtypes.c (create_array_type_with_stride): Handle negative
1754 array strides.
1755 * valarith.c (value_subscripted_rvalue): Likewise.
1756
09624f1f
LM
17572020-02-25 Luis Machado <luis.machado@linaro.org>
1758
1759 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
1760
8cb5117c
SM
17612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1762
1763 * loc.h (dwarf2_get_die_type): Move to...
1764 * read.h (dwarf2_get_die_type): ... here.
1765 * read.c (dwarf2_get_die_type): Move doc to header.
1766
c325c44e
JB
17672020-02-25 Joel Brobecker <brobecker@adacore.com>
1768
1769 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
1770 'gnulib/Makefile.in' to the list.
1771
4ac93832
TT
17722020-02-24 Tom Tromey <tom@tromey.com>
1773
1774 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
1775 Remove.
1776 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
1777 XOBNEWVEC.
1778
197400e8
TT
17792020-02-24 Tom Tromey <tom@tromey.com>
1780
1781 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
1782 New method.
1783 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
1784 (dw2_do_instantiate_symtab, dw2_get_file_names)
1785 (build_type_psymtab_dependencies, load_full_type_unit): Update.
1786
76935768
TT
17872020-02-24 Tom Tromey <tom@tromey.com>
1788
1789 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
1790 make_scoped_restore.
1791 (dwarf2_psymtab::read_symtab): Don't clear
1792 reading_partial_symbols.
1793
a88ef40d
TV
17942020-02-24 Tom de Vries <tdevries@suse.de>
1795
1796 PR gdb/25592
1797 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
1798
c9af6521
TV
17992020-02-24 Tom de Vries <tdevries@suse.de>
1800
1801 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
1802 commands layout next/prev/regs.
1803
5707a07a
TT
18042020-02-22 Tom Tromey <tom@tromey.com>
1805
1806 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
1807 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
1808
3b0fb49e
TT
18092020-02-22 Tom Tromey <tom@tromey.com>
1810
1811 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
1812
283be8bf
TT
18132020-02-22 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-win.c (_initialize_tui_win): Add usage text.
1816 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
1817 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
1818 * tui/tui.c (_initialize_tui): Add usage text.
1819
ca793b96
TT
18202020-02-22 Tom Tromey <tom@tromey.com>
1821
1822 * tui/tui-win.c (tui_set_focus_command)
1823 (tui_set_win_height_command): Use error_no_arg.
1824 (_initialize_tui_win): Update help text.
1825 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
1826
432b5c40
TT
18272020-02-22 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
1830 * tui/tui-disasm.h (struct tui_disasm_window)
1831 <display_start_addr>: Declare.
1832 * tui/tui-source.h (struct tui_source_window)
1833 <display_start_addr>: Declare.
1834 * tui/tui-winsource.h (struct tui_source_window_base)
1835 <show_source_line, display_start_addr>: New methods.
1836 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
1837 Rename and move to protected section.
1838 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
1839 (tui_source_window_base::do_erase_source_content): Update.
1840 (tui_source_window_base::show_source_line): Now a method.
1841 (tui_source_window_base::show_source_content)
1842 (tui_source_window_base::tui_source_window_base)
1843 (tui_source_window_base::rerender)
1844 (tui_source_window_base::refill)
1845 (tui_source_window_base::do_scroll_horizontal)
1846 (tui_source_window_base::set_is_exec_point_at)
1847 (tui_source_window_base::update_breakpoint_info)
1848 (tui_source_window_base::update_exec_info): Update.
1849 * tui/tui-source.c (tui_source_window::set_contents)
1850 (tui_source_window::showing_source_p)
1851 (tui_source_window::do_scroll_vertical)
1852 (tui_source_window::location_matches_p)
1853 (tui_source_window::line_is_displayed): Update.
1854 (tui_source_window::display_start_addr): New method.
1855 * tui/tui-disasm.c (tui_disasm_window::set_contents)
1856 (tui_disasm_window::do_scroll_vertical)
1857 (tui_disasm_window::location_matches_p): Update.
1858 (tui_disasm_window::display_start_addr): New method.
1859
01b1af32
TT
18602020-02-22 Tom Tromey <tom@tromey.com>
1861
1862 * NEWS: Add entry for gdb.register_window_type.
1863 * tui/tui-layout.h (window_factory): New typedef.
1864 (tui_register_window): Declare.
1865 * tui/tui-layout.c (saved_tui_windows): New global.
1866 (tui_apply_current_layout): Use it.
1867 (tui_register_window): New function.
1868 * python/python.c (do_start_initialization): Call
1869 gdbpy_initialize_tui.
1870 (python_GdbMethods): Add "register_window_type" function.
1871 * python/python-internal.h (gdbpy_register_tui_window)
1872 (gdbpy_initialize_tui): Declare.
1873 * python/py-tui.c: New file.
1874 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
1875
fc96d20b
TT
18762020-02-22 Tom Tromey <tom@tromey.com>
1877
1878 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
1879
935c78c0
TT
18802020-02-22 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
1883 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
1884 * tui/tui-data.c (tui_set_win_with_focus): Remove.
1885 (tui_set_win_focus_to): Move from tui-win.c.
1886
0240c8f1
TT
18872020-02-22 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-layout.c (make_standard_window, get_locator_window): New
1890 functions.
1891 (known_window_types): New global.
1892 (tui_get_window_by_name): Reimplement.
1893 (initialize_known_windows): New function.
1894 (validate_window_name): Rewrite.
1895 (_initialize_tui_layout): Call initialize_known_windows.
1896
fdb01f0c
TT
18972020-02-22 Tom Tromey <tom@tromey.com>
1898
1899 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
1900 Remove constants.
1901 * tui/tui-winsource.h (struct tui_source_window_base)
1902 <tui_source_window_base>: Remove parameter.
1903 * tui/tui-winsource.c
1904 (tui_source_window_base::tui_source_window_base): Remove
1905 parameter.
1906 (tui_source_window_base::refill): Update.
1907 * tui/tui-stack.h (struct tui_locator_window)
1908 <tui_locator_window>: Update.
1909 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
1910 Default the constructor.
1911 * tui/tui-regs.h (struct tui_data_item_window)
1912 <tui_data_item_window>: Default the constructor.
1913 (struct tui_data_window) <tui_data_window>: Likewise.
1914 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
1915 Default the constructor.
1916 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
1917 Default the constructor.
1918 <type>: Remove.
1919 (struct tui_win_info) <tui_win_info>: Default the constructor.
1920 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
1921 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1922 Default the constructor.
1923
865a5aec
TT
19242020-02-22 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
1927 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
1928 * tui/tui-win.c (tui_resize_all): Don't call
1929 tui_delete_invisible_windows.
1930 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
1931 done.
1932 (tui_set_layout): Update.
1933 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
1934 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
1935 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
1936
e098d18c
TT
19372020-02-22 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
1940 correctly.
1941
eb9c8874
TT
19422020-02-22 Tom Tromey <tom@tromey.com>
1943
1944 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
1945
7eed1a8e
TT
19462020-02-22 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-winsource.h (struct tui_source_window_iterator)
1949 <inner_iterator>: New etytypedef.
1950 <tui_source_window_iterator>: Take "end" parameter.
1951 <tui_source_window_iterator>: Take iterator.
1952 <operator*, advance>: Update.
1953 <m_iter>: Change type.
1954 <m_end>: New field.
1955 (struct tui_source_windows) <begin, end>: Update.
1956 * tui/tui-layout.c (tui_windows): New global.
1957 (tui_apply_current_layout): Clear tui_windows.
1958 (tui_layout_window::apply): Update tui_windows.
1959 * tui/tui-data.h (tui_windows): Declare.
1960 (all_tui_windows): Now inline function.
1961 (class tui_window_iterator, struct all_tui_windows): Remove.
1962
7c043ba6
TT
19632020-02-22 Tom Tromey <tom@tromey.com>
1964
1965 PR tui/17850:
1966 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
1967 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
1968 "height" argument.
1969 (class tui_layout_window) <get_sizes>: Likewise.
1970 (class tui_layout_split) <tui_layout_split>: Add "vertical"
1971 argument.
1972 <get_sizes>: Add "height" argument.
1973 <m_vertical>: New field.
1974 * tui/tui-layout.c (tui_layout_split::clone): Update.
1975 (tui_layout_split::get_sizes): Add "height" argument.
1976 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
1977 (tui_new_layout_command): Parse "-horizontal".
1978 (_initialize_tui_layout): Update help string.
1979 (tui_layout_split::specification): Add "-horizontal" when needed.
1980 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
1981 argument.
1982 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
1983 New methods.
1984
6bc56648
TT
19852020-02-22 Tom Tromey <tom@tromey.com>
1986
1987 * tui/tui-layout.h (enum tui_adjust_result): New.
1988 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
1989 (class tui_layout_window) <adjust_size>: Return
1990 tui_adjust_result. Rewrite.
1991 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
1992 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
1993
c22fef7e
TT
19942020-02-22 Tom Tromey <tom@tromey.com>
1995
1996 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
1997 parameter and return types.
1998 (class tui_layout_base) <specification>: Add "depth".
1999 (class tui_layout_window) <specification>: Add "depth".
2000 (class tui_layout_split) <specification>: Add "depth".
2001 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2002 and return types.
2003 (tui_new_layout_command): Parse sub-layouts.
2004 (_initialize_tui_layout): Update help string.
2005 (tui_layout_window::specification): Add "depth".
2006 (add_layout_command): Update.
2007
ee325b61
TT
20082020-02-22 Tom Tromey <tom@tromey.com>
2009
2010 * NEWS: Add "tui new-layout" item.
2011 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2012 Add new-layout command to help text.
2013 (validate_window_name): New function.
2014 (tui_new_layout_command): New function.
2015 (_initialize_tui_layout): Register "new-layout".
2016 (tui_layout_window::specification): New method.
2017 (tui_layout_window::specification): New method.
2018 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2019 method.
2020 (class tui_layout_window) <specification>: New method.
2021 (class tui_layout_split) <specification>: New method.
2022
416eb92d
TT
20232020-02-22 Tom Tromey <tom@tromey.com>
2024
2025 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2026 * tui/tui-win.c (window_name_completer): Update comment.
2027 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2028 Declare method.
2029 (class tui_layout_window) <replace_window>: Likewise.
2030 (class tui_layout_split) <replace_window>: Likewise.
2031 (tui_set_layout): Don't declare.
2032 (tui_set_initial_layout): Declare function.
2033 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2034 (asm_regs_layout): New globals.
2035 (tui_current_layout, show_layout): Remove.
2036 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2037 (find_layout, tui_apply_layout): New function.
2038 (layout_completer): Remove.
2039 (tui_next_layout): Reimplement.
2040 (tui_next_layout_command): New function.
2041 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2042 (tui_regs_layout): Reimplement.
2043 (tui_regs_layout_command): New function.
2044 (extract_display_start_addr): Rewrite.
2045 (next_layout, prev_layout): Remove.
2046 (tui_layout_window::replace_window): New method.
2047 (tui_layout_split::replace_window): New method.
2048 (destroy_layout): New function.
2049 (layout_list): New global.
2050 (add_layout_command): New function.
2051 (initialize_layouts): Update.
2052 (tui_layout_command): New function.
2053 (_initialize_tui_layout): Install "layout" commands.
2054 * tui/tui-data.h (enum tui_layout_type): Remove.
2055 (tui_current_layout): Don't declare.
2056
0dbc2fc7
TT
20572020-02-22 Tom Tromey <tom@tromey.com>
2058
2059 * tui/tui-regs.c (tui_reg_layout): Remove.
2060 (tui_reg_command): Use tui_regs_layout.
2061 * tui/tui-layout.h (tui_reg_command): Declare.
2062 * tui/tui-layout.c (tui_reg_command): New function.
2063
5afe342e
TT
20642020-02-22 Tom Tromey <tom@tromey.com>
2065
2066 * tui/tui.c (tui_rl_delete_other_windows): Call
2067 tui_remove_some_windows.
2068 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2069 Declare method.
2070 (class tui_layout_window) <remove_windows>: New method.
2071 (class tui_layout_split) <remove_windows>: Declare.
2072 (tui_remove_some_windows): Declare.
2073 * tui/tui-layout.c (tui_remove_some_windows): New function.
2074 (tui_layout_split::remove_windows): New method.
2075
427326a8
TT
20762020-02-22 Tom Tromey <tom@tromey.com>
2077
2078 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2079 * tui/tui-layout.h (tui_next_layout): Declare.
2080 * tui/tui-layout.c (tui_next_layout): New function.
2081
3fe12b6d
TT
20822020-02-22 Tom Tromey <tom@tromey.com>
2083
2084 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2085 correct coordinates.
2086
59b8b5d2
TT
20872020-02-22 Tom Tromey <tom@tromey.com>
2088
2089 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2090 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2091 DATA_WIN case.
2092
2a3d458b
TT
20932020-02-22 Tom Tromey <tom@tromey.com>
2094
2095 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2096 TUI_DISASM_WIN, not tui_win_list.
2097
3f0cbb04
TT
20982020-02-22 Tom Tromey <tom@tromey.com>
2099
2100 * valprint.c (generic_val_print_enum_1)
2101 (val_print_type_code_flags): Style member names.
2102 * rust-lang.c (val_print_struct, rust_print_enum)
2103 (rust_print_struct_def, rust_internal_print_type): Style member
2104 names.
2105 * p-valprint.c (pascal_object_print_value_fields): Style member
2106 names. Only call fprintf_symbol_filtered for static members.
2107 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2108 * f-valprint.c (f_val_print): Style member names.
2109 * f-typeprint.c (f_type_print_base): Style member names.
2110 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2111 call fprintf_symbol_filtered for static members.
2112 (cp_print_class_member): Style member names.
2113 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2114 member names.
2115 * ada-valprint.c (ada_print_scalar): Style enum names.
2116 (ada_val_print_enum): Likewise.
2117 * ada-typeprint.c (print_enum_type): Style enum names.
2118
d4d947ae
TT
21192020-02-21 Tom Tromey <tom@tromey.com>
2120
2121 * psympriv.h (struct partial_symtab): Update comment.
2122
e94e944b
TT
21232020-02-21 Tom Tromey <tromey@adacore.com>
2124
2125 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2126 type is CORE_ADDR.
2127
1eb73179
TV
21282020-02-21 Tom de Vries <tdevries@suse.de>
2129
2130 PR gdb/25534
2131 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2132 if dependencies[i]->user != NULL.
2133
4f180d53
AT
21342020-02-21 Ali Tamur <tamur@google.com>
2135
2136 * dwarf2/read.c (dwarf2_name): Add null check.
2137
22b6cd70
TT
21382020-02-20 Tom Tromey <tom@tromey.com>
2139
2140 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2141 ">=", in binary search.
2142 (dwarf2_find_containing_comp_unit): New overload.
2143 (run_test): New self-test.
2144 (_initialize_dwarf2_read): Register new test.
2145
bd0cf5a6
NC
21462020-02-20 Nelson Chu <nelson.chu@sifive.com>
2147
2148 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2149 * riscv-tdep.h: Likewise.
2150 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2151 rv32-only CSR.
2152 * features/riscv/64bit-csr.xml: Regenerated.
2153
3f702acd
SDJ
21542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2155 Tom Tromey <tom@tromey.com>
2156
2157 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
2158 of 'fputc_unfiltered'.
2159 (putchar_unfiltered): Call 'fputc_unfiltered'.
2160 (fputc_unfiltered): Call 'fputs_unfiltered'.
2161
d13c7322
AB
21622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * config.in: Regenerate.
2165 * configure: Regenerate.
2166 * configure.ac: Add --with-python-libdir option.
2167 * main.c: Use WITH_PYTHON_LIBDIR.
2168
869d8950
TT
21692020-02-19 Tom Tromey <tom@tromey.com>
2170
2171 * symtab.c (general_symbol_info::compute_and_set_names): Use
2172 obstack_strndup. Simplify call to symbol_set_demangled_name.
2173
298e9637
SM
21742020-02-19 Simon Marchi <simon.marchi@efficios.com>
2175
2176 * dwarf2/read.c (allocate_signatured_type_table,
2177 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2178 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2179 Remove objfile parameter, update all callers.
2180
08410482
DE
21812020-02-19 Doug Evans <dje@google.com>
2182
2183 PR rust/25535
2184 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2185 rust_enum_variant calculation.
2186
dfdeeca1
TT
21872020-02-19 Tom Tromey <tromey@adacore.com>
2188
2189 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2190
2ef5453b
TT
21912020-02-19 Tom Tromey <tromey@adacore.com>
2192
2193 * ada-lang.c (cache_symbol): Use obstack_strdup.
2194
9f1528a1
AB
21952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * configure: Regenerate.
2198
d3c22fa8
TT
21992020-02-19 Tom Tromey <tromey@adacore.com>
2200
2201 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2202 NULL check.
2203
bf84f706
MR
22042020-02-19 Maciej W. Rozycki <macro@wdc.com>
2205
2206 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2207
d1c9b20f
AB
22082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2211 if GDBSERVER is not defined.
2212 (riscv_tdesc_cache): Likewise, also store const target_desc.
2213 (STATIC_IN_GDB): Define.
2214 (riscv_create_target_description): Update declaration with
2215 STATIC_IN_GDB.
2216 (riscv_lookup_target_description): New function, only define if
2217 GDBSERVER is not defined.
2218 * arch/riscv.h (riscv_create_target_description): Declare only
2219 when GDBSERVER is defined.
2220 (riscv_lookup_target_description): New declaration when GDBSERVER
2221 is not defined.
2222 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2223 (riscv_linux_read_features): ...this, and return
2224 riscv_gdbarch_features instead of target_desc.
2225 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2226 (riscv_linux_read_description): Rename to...
2227 (riscv_linux_read_features): ...this.
2228 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2229 Update to use riscv_gdbarch_features and
2230 riscv_lookup_target_description.
2231 * riscv-tdep.c (riscv_find_default_target_description): Use
2232 riscv_lookup_target_description instead of
2233 riscv_create_target_description.
2234
373d7ac0
SM
22352020-02-18 Simon Marchi <simon.marchi@efficios.com>
2236
2237 * valprint.c (generic_val_print_enum_1): When printing a flag
2238 enum with value 0 and there is no enumerator with value 0, print
2239 just "0" instead of "(unknown: 0x0)".
2240
b29a2df0
SM
22412020-02-18 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * valprint.c (generic_val_print_enum_1): Print unknown part of
2244 flag enum in hex.
2245
6740f0cc
SM
22462020-02-18 Simon Marchi <simon.marchi@efficios.com>
2247
2248 * dwarf2/read.c (update_enumeration_type_from_children): Allow
2249 flag enums to contain duplicate enumerators.
2250 * valprint.c (generic_val_print_enum_1): Update comment.
2251
edd45eb0
SM
22522020-02-18 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * dwarf2/read.c: Include "count-one-bits.h".
2255 (update_enumeration_type_from_children): If an enumerator has
2256 multiple bits set, don't treat the enumeration as a "flag enum".
2257 * valprint.c (generic_val_print_enum_1): Assert that enumerators
2258 of flag enums have 0 or 1 bit set.
2259
6d0cf446
BE
22602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2261
2262 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
2263 conversion.
2264 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2265 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2266 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2267 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2268 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2269
7001c1b7
SM
22702020-02-18 Simon Marchi <simon.marchi@efficios.com>
2271
2272 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
2273
fdb61c6c
SM
22742020-02-14 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
2277 displaced_step_closure_up.
2278 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2279 (struct displaced_step_closure_up):
2280 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2281 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2282 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
2283 Likewise.
2284 * gdbarch.sh (displaced_step_copy_insn): Likewise.
2285 * gdbarch.c, gdbarch.h: Re-generate.
2286 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
2287 displaced_step_closure_up.
2288 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2289 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2290 * infrun.h (displaced_step_closure_up): New type alias.
2291 (struct displaced_step_inferior_state) <step_closure>: Change
2292 type to displaced_step_closure_up.
2293 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
2294 displaced_step_closure_up.
2295 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2296
a4a38eb4
TT
22972020-02-14 Tom Tromey <tom@tromey.com>
2298
2299 * minidebug.c (gnu_debug_key): New global.
2300 (find_separate_debug_file_in_section): Use it.
2301
e8217e61
SM
23022020-02-14 Simon Marchi <simon.marchi@efficios.com>
2303
2304 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
2305 std::unique_ptr.
2306 * gdbarch.c: Re-generate.
2307 * gdbarch.h: Re-generate.
2308 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
2309 change.
2310 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
2311 type to std::unique_ptr.
2312 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2313 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2314 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2315 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2316 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
2317 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2318 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2319 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2320 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2321
d8d83535
SM
23222020-02-14 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
2325 std::unique_ptr.
2326 (displaced_step_clear): Rename to...
2327 (displaced_step_reset): ... this. Just call displaced->reset ().
2328 (displaced_step_clear_cleanup): Rename to...
2329 (displaced_step_reset_cleanup): ... this.
2330 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
2331 (displaced_step_fixup): Likewise.
2332 (resume_1): Likewise.
2333 (handle_inferior_event): Restore child's memory before calling
2334 displaced_step_fixup on the parent.
2335 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
2336 to std::unique_ptr.
2337 <step_closure>: Change type to std::unique_ptr.
2338
5f661e03
SM
23392020-02-14 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * arm-tdep.c: Include count-one-bits.h.
2342 (cleanup_block_store_pc): Use count_one_bits.
2343 (cleanup_block_load_pc): Use count_one_bits.
2344 (arm_copy_block_xfer): Use count_one_bits.
2345 (thumb2_copy_block_xfer): Use count_one_bits.
2346 (thumb_copy_pop_pc_16bit): Use count_one_bits.
2347 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
2348 (thumb_get_next_pcs_raw): Use count_one_bits.
2349 (arm_get_next_pcs_raw): Use count_one_bits_l.
2350 * arch/arm.c (bitcount): Remove.
2351 * arch/arm.h (bitcount): Remove.
2352
8084e579
TT
23532020-02-14 Tom Tromey <tromey@adacore.com>
2354
2355 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
2356 Update.
2357 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
2358 * dwarf2/loc.c (call_site_find_chain_1): Return
2359 unique_xmalloc_ptr.
2360 (call_site_find_chain): Likewise.
2361
258bf0ee
RB
23622020-02-14 Richard Biener <rguenther@suse.de>
2363
2364 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
2365 on expression with division operators.
2366
f98a8458
AKS
23672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2368
2369 * MAINTAINERS (Write After Approval): Adding myself.
2370
d1437c0e
TT
23712020-02-12 Tom Tromey <tom@tromey.com>
2372
2373 * event-loop.c (event_data, gdb_event, event_handler_func):
2374 Remove.
2375
3d4560f7
TT
23762020-02-12 Tom Tromey <tom@tromey.com>
2377
2378 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
2379 (dwarf2_frame_objfile_data): Add comment.
2380 (find_comp_unit, set_comp_unit): New functions.
2381 (dwarf2_frame_find_fde): Use find_comp_unit.
2382 (dwarf2_build_frame_info): Use set_comp_unit.
2383
21982304
TT
23842020-02-12 Tom Tromey <tom@tromey.com>
2385
2386 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
2387 (comp_unit): Don't initialize objfile.
2388 (execute_cfa_program): Add text_offset parameter.
2389 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
2390 (dwarf2_frame_cache): Update.
2391 (dwarf2_build_frame_info): Don't set "objfile" member.
2392
4debb237
TT
23932020-02-12 Tom Tromey <tom@tromey.com>
2394
2395 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
2396 (decode_frame_entry): Likewise.
2397 (dwarf2_build_frame_info): Update.
2398
0d404d44
TT
23992020-02-12 Tom Tromey <tom@tromey.com>
2400
2401 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
2402 (decode_frame_entry_1): Use the comp_unit obstack.
2403
a7a3ae5c
TT
24042020-02-12 Tom Tromey <tom@tromey.com>
2405
2406 * dwarf2/frame.c (struct comp_unit): Add initializers and
2407 constructor.
2408 (dwarf2_frame_objfile_data): Store a comp_unit.
2409 (dwarf2_frame_find_fde): Update.
2410 (dwarf2_build_frame_info): Use "new".
2411
a9d65418
TT
24122020-02-12 Tom Tromey <tom@tromey.com>
2413
2414 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
2415 (dwarf2_fde_table): Typedef for std::vector.
2416 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
2417 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
2418 (decode_frame_entry): Update.
2419 (dwarf2_build_frame_info): Use "new".
2420
7559c217
CB
24212020-02-12 Christian Biesinger <cbiesinger@google.com>
2422
2423 * arm-tdep.c (arm_gdbarch_init): Update.
2424 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
2425 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
2426 have_neon, is_m>: Change to bool.
2427
aeefc73c
CB
24282020-02-12 Christian Biesinger <cbiesinger@google.com>
2429
2430 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
2431
d27b8e5f
TT
24322020-02-12 Tom Tromey <tom@tromey.com>
2433
2434 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
2435
cd5900f3
HD
24362020-02-12 Hannes Domani <ssbssa@yahoo.de>
2437
2438 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
2439 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
2440
f056b22b
TT
24412020-02-11 Tom Tromey <tom@tromey.com>
2442
2443 * psymtab.h: Update comment.
2444
f92ff6b5
TT
24452020-02-11 Tom Tromey <tom@tromey.com>
2446
2447 * gdb_obstack.h (struct auto_obstack): Use
2448 DISABLE_COPY_AND_ASSIGN.
2449
3fd6912b
TT
24502020-02-11 Tom Tromey <tom@tromey.com>
2451
2452 * dwarf2/frame.h (struct objfile): Don't forward declare.
2453
69ed9b74
CB
24542020-02-11 Christian Biesinger <cbiesinger@google.com>
2455
2456 * cris-tdep.c (cris_supply_gregset): Change signature to match
2457 what struct regset expects.
2458 (cris_regset): New struct.
2459 (fetch_core_registers): Remove.
2460 (cris_iterate_over_regset_sections): New function.
2461 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
2462 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
2463
bda874f6
CB
24642020-02-11 Christian Biesinger <cbiesinger@google.com>
2465
2466 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
2467 registers.
2468
754e1564
CB
24692020-02-11 Christian Biesinger <cbiesinger@google.com>
2470
2471 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
2472
8ddd8e0e
SM
24732020-02-11 Simon Marchi <simon.marchi@efficios.com>
2474
2475 * configure: Re-generate.
2476
898e7f60
SM
24772020-02-11 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * configure: Re-generate.
2480
58df732b
SM
24812020-02-11 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * acinclude: Update warning.m4 path.
2484 * warning.m4: Move to gdbsupport.
2485
da5bd37e
TT
24862020-02-11 Tom Tromey <tromey@adacore.com>
2487
2488 * remote.c (remote_console_output): Update.
2489 * printcmd.c (printf_command): Update.
2490 * event-loop.c (gdb_wait_for_event): Update.
2491 * linux-nat.c (sigchld_handler): Update.
2492 * remote-sim.c (gdb_os_write_stdout): Update.
2493 (gdb_os_flush_stdout): Update.
2494 (gdb_os_flush_stderr): Update.
2495 (gdb_os_write_stderr): Update.
2496 * exceptions.c (print_exception): Update.
2497 * remote-fileio.c (remote_fileio_func_read): Update.
2498 (remote_fileio_func_write): Update.
2499 * tui/tui.c (tui_enable): Update.
2500 * tui/tui-interp.c (tui_interp::init): Update.
2501 * utils.c (init_page_info): Update.
2502 (putchar_unfiltered, fputc_unfiltered): Update.
2503 (gdb_flush): Update.
2504 (emit_style_escape): Update.
2505 (flush_wrap_buffer, fputs_maybe_filtered): Update.
2506 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
2507 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
2508 (stderr_file::write): Update.
2509 (stderr_file::puts): Update.
2510 * ui-file.h (ui_file_isatty, ui_file_write)
2511 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
2512 (ui_file_puts): Don't declare.
2513
85f0dd3c
TV
25142020-02-10 Tom de Vries <tdevries@suse.de>
2515
2516 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
2517 sentinel to char *.
2518
2e927613
TV
25192020-02-09 Tom de Vries <tdevries@suse.de>
2520
2521 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
2522 filename if it matches "<artificial>".
2523
6bafc845
HD
25242020-02-09 Hannes Domani <ssbssa@yahoo.de>
2525
2526 * windows-tdep.c (struct enum_value_name): New struct.
2527 (create_enum): New function.
2528 (windows_get_siginfo_type): Create and use enum types.
2529
7928d571
HD
25302020-02-09 Hannes Domani <ssbssa@yahoo.de>
2531
2532 * NEWS: Mention $_siginfo support for Windows.
2533 * windows-nat.c (handle_exception): Set siginfo_er.
2534 (windows_nat_target::mourn_inferior): Reset siginfo_er.
2535 (windows_xfer_siginfo): New function.
2536 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
2537 * windows-tdep.c (struct windows_gdbarch_data): New struct.
2538 (init_windows_gdbarch_data): New function.
2539 (get_windows_gdbarch_data): New function.
2540 (windows_get_siginfo_type): New function.
2541 (windows_init_abi): Register windows_get_siginfo_type.
2542 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
2543
6751ebae
TT
25442020-02-08 Tom Tromey <tom@tromey.com>
2545
2546 * dwarf2/read.c (class cutu_reader) <cutu_reader,
2547 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
2548 <keep>: Declare method.
2549 <m_keep>: Remove member.
2550 <~cutu_reader>: Remove.
2551 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2552 (cutu_reader::cutu_reader): Update.
2553 (cutu_reader::keep): Rename from ~cutu_reader.
2554 (process_psymtab_comp_unit, build_type_psymtabs_1)
2555 (process_skeletonless_type_unit, load_partial_comp_unit)
2556 (load_full_comp_unit, dwarf2_read_addr_index)
2557 (read_signatured_type): Update.
2558
135f5437
TT
25592020-02-08 Tom Tromey <tom@tromey.com>
2560
2561 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
2562 "want_partial_unit" parameter.
2563 (process_psymtab_comp_unit): Change want_partial_unit to bool.
2564 Inline check for DW_TAG_partial_unit.
2565 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
2566
9f66ff1c
TT
25672020-02-08 Tom Tromey <tom@tromey.com>
2568
2569 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
2570 read.c.
2571 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
2572 read.c.
2573
c8a7a66f
TT
25742020-02-08 Tom Tromey <tom@tromey.com>
2575
2576 * dwarf2/read.c (read_address): Move to comp-unit.c.
2577 (dwarf2_rnglists_process, dwarf2_ranges_process)
2578 (read_attribute_value, dwarf_decode_lines_1)
2579 (var_decode_location, decode_locdesc): Update.
2580 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
2581 read.c. Remove "cu" parameter.
2582 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
2583 method.
2584
8266302d
TT
25852020-02-08 Tom Tromey <tom@tromey.com>
2586
2587 * dwarf2/read.c (read_attribute_value, read_indirect_string)
2588 (read_indirect_line_string): Update.
2589 * dwarf2/comp-unit.c (read_offset): Remove.
2590 (read_comp_unit_head): Update.
2591 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
2592 method.
2593 (read_offset): Don't declare.
2594
4057dfde
TT
25952020-02-08 Tom Tromey <tom@tromey.com>
2596
2597 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
2598 * dwarf2/read.c (struct comp_unit_head): Move to
2599 dwarf2/comp-unit.h.
2600 (enum class rcuh_kind): Move to comp-unit.h.
2601 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
2602 (read_comp_unit_head, error_check_comp_unit_head)
2603 (read_and_check_comp_unit_head): Move to comp-unit.c.
2604 (read_offset, dwarf_unit_type_name): Likewise.
2605 (create_debug_type_hash_table, read_cutu_die_from_dwo)
2606 (cutu_reader::cutu_reader, read_call_site_scope)
2607 (find_partial_die, follow_die_offset): Update.
2608 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
2609
24aa364d
TT
26102020-02-08 Tom Tromey <tom@tromey.com>
2611
2612 * dwarf2/read.c (read_offset_1): Move to leb.c.
2613 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
2614 (dwarf_decode_macro_bytes): Update.
2615 * dwarf2/leb.c (read_offset): Rename; move from read.c.
2616 * dwarf2/leb.h (read_offset): Declare.
2617
2c7d5afc
TT
26182020-02-08 Tom Tromey <tom@tromey.com>
2619
2620 * dwarf2/read.c (dwarf2_section_size): Remove.
2621 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
2622 Update.
2623 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
2624
4075cb26
TT
26252020-02-08 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf2/read.c (read_initial_length): Move to leb.c.
2628 * dwarf2/leb.h (read_initial_length): Declare.
2629 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
2630 handle_nonstd parameter.
2631 * dwarf2/frame.c (read_initial_length): Remove.
2632 (decode_frame_entry_1): Update.
2633
09ba997f
TT
26342020-02-08 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/loc.c (dwarf2_find_location_expression)
2637 (dwarf_evaluate_loc_desc::get_tls_address)
2638 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
2639 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
2640 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
2641 (dwarf2_compile_property_to_c)
2642 (dwarf2_loc_desc_get_symbol_read_needs)
2643 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
2644 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
2645 (loclist_describe_location, loclist_tracepoint_var_ref)
2646 (loclist_generate_c_location): Update.
2647 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
2648 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
2649 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
2650 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
2651 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
2652 (dwarf2_per_cu_data::addr_size)
2653 (dwarf2_per_cu_data::ref_addr_size)
2654 (dwarf2_per_cu_data::text_offset)
2655 (dwarf2_per_cu_data::addr_type): Now methods.
2656 (per_cu_header_read_in): Make per_cu "const".
2657 (dwarf2_version): Remove.
2658 (dwarf2_per_cu_data::int_type): Now a method.
2659 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
2660 (set_die_type, read_array_type, read_subrange_index_type)
2661 (read_tag_string_type, read_subrange_type): Update.
2662 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
2663 offset_size, ref_addr_size, text_offset, addr_type, version,
2664 objfile, int_type, addr_sized_int_type>: Declare methods.
2665
96c738c0
TT
26662020-02-08 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
2669 Move earlier.
2670
8fdd972c
TT
26712020-02-08 Tom Tromey <tom@tromey.com>
2672
2673 * dwarf2/read.h (dwarf_line_debug): Declare.
2674 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
2675 * dwarf2/read.c: Move line_header code to new files.
2676 (dwarf_line_debug): No longer static.
2677 * dwarf2/line-header.c: New file.
2678 * dwarf2/line-header.h: New file.
2679
03075812
TT
26802020-02-08 Tom Tromey <tom@tromey.com>
2681
2682 * dwarf2/read.c (struct line_header) <file_full_name,
2683 file_file_name>: Return unique_xmalloc_ptr.
2684 (line_header::file_file_name): Update.
2685 (line_header::file_full_name): Update.
2686 (dw2_get_file_names_reader): Update.
2687 (macro_start_file): Update.
2688
bb822404
TT
26892020-02-08 Tom Tromey <tom@tromey.com>
2690
2691 * dwarf2/read.c (struct line_header) <file_full_name,
2692 file_file_name>: Declare methods.
2693 (dw2_get_file_names_reader): Update.
2694 (file_file_name): Now a method.
2695 (file_full_name): Likewise.
2696 (macro_start_file): Update.
2697
009b64fc
TT
26982020-02-08 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/read.c (dwarf_always_disassemble)
2701 (show_dwarf_always_disassemble): Move to loc.c.
2702 (_initialize_dwarf2_read): Move "always-disassemble" registration
2703 to loc.c.
2704 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
2705 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
2706 static.
2707 (show_dwarf_always_disassemble): Move from read.c.
2708 (_initialize_dwarf2loc): Move always-disassemble from read.c.
2709
5895093f
TT
27102020-02-08 Tom Tromey <tom@tromey.com>
2711
2712 * dwarf2/read.c (~dwarf2_per_objfile): Update.
2713 (create_quick_file_names_table): Return htab_up.
2714 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
2715 Update.
2716 * dwarf2/read.h (struct dwarf2_per_objfile)
2717 <quick_file_names_table>: Now htab_up.
2718
b3b32279
TT
27192020-02-08 Tom Tromey <tom@tromey.com>
2720
2721 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
2722
1d33d811
TT
27232020-02-08 Tom Tromey <tom@tromey.com>
2724
2725 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
2726 Rewrite.
2727 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
2728 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
2729 (abbrev_table::abbrev_table): No longer inline.
2730 (ABBREV_HASH_SIZE): Remove.
2731 (abbrev_table::m_abbrevs): Now an htab_up.
2732
86de1d91
TT
27332020-02-08 Tom Tromey <tom@tromey.com>
2734
2735 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
2736 (cutu_reader): Update.
2737 (build_type_psymtabs_1): Update.
2738 * dwarf2/abbrev.c (abbrev_table::read): Rename.
2739 (abbrev_table::alloc_abbrev): Update.
2740 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
2741 (abbrev_table::read): New static method, renamed from
2742 abbrev_table_read_table.
2743 (abbrev_table::alloc_abbrev)
2744 (abbrev_table::add_abbrev): Now private.
2745 (abbrev_table::abbrev_table): Now private.
2746 (abbrev_table::m_abbrev_obstack): Now private. Rename.
2747
0335378b
TT
27482020-02-08 Tom Tromey <tom@tromey.com>
2749
2750 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
2751 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
2752 htab_up.
2753
48b490f2
TT
27542020-02-08 Tom Tromey <tom@tromey.com>
2755
2756 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
2757 htab_up.
2758 (lookup_dwo_unit_in_dwp): Update.
2759 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
2760 on obstack.
2761
bc68fb19
TT
27622020-02-08 Tom Tromey <tom@tromey.com>
2763
2764 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
2765 obstack.
2766
d15acc42
TT
27672020-02-08 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
2770 line_header_hash.
2771 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
2772 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
2773 Change type to htab_up.
2774
eaa5fa8b
TT
27752020-02-08 Tom Tromey <tom@tromey.com>
2776
2777 * dwarf2/read.c (allocate_type_unit_groups_table): Return
2778 htab_up. Don't allocate on obstack.
2779 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
2780 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
2781 Change type to htab_up.
2782
b0b6a987
TT
27832020-02-08 Tom Tromey <tom@tromey.com>
2784
2785 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
2786 Change type to htab_up.
2787 * dwarf2/read.c (create_signatured_type_table_from_index)
2788 (create_signatured_type_table_from_debug_names)
2789 (create_all_type_units, add_type_unit)
2790 (lookup_dwo_signatured_type, lookup_signatured_type)
2791 (process_skeletonless_type_unit): Update.
2792 (create_debug_type_hash_table, create_debug_types_hash_table):
2793 Change type of types_htab.
2794 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
2795 htab_up. Don't allocate on obstack.
2796 (create_cus_hash_table): Change type of cus_htab parameter.
2797 (struct dwo_file) <cus, tus>: Now htab_up.
2798 (lookup_dwo_signatured_type, lookup_dwo_cutu)
2799 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
2800 (queue_and_load_all_dwo_tus): Update.
2801 * dwarf2/index-write.c (write_gdbindex): Update.
2802 (write_debug_names): Update.
2803
39856def
TT
28042020-02-08 Tom Tromey <tom@tromey.com>
2805
2806 * dwarf2/read.h (struct dwarf2_queue_item): Move from
2807 dwarf2/read.c. Remove "next" member. Add constructor ntad
2808 destructor.
2809 (struct dwarf2_per_objfile) <queue>: New member.
2810 * dwarf2/read.c (struct dwarf2_queue_item): Move to
2811 dwarf2/read.h.
2812 (dwarf2_queue, dwarf2_queue_tail): Remove.
2813 (class dwarf2_queue_guard): Add parameter to constructor. Use
2814 DISABLE_COPY_AND_ASSIGN.
2815 <m_per_objfile>: New member.
2816 <~dwarf2_queue_guard>: Rewrite.
2817 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
2818 Update.
2819 (~dwarf2_queue_item): New.
2820
3e225074
TT
28212020-02-08 Tom Tromey <tom@tromey.com>
2822
2823 * dwarf2/read.c (struct die_info) <has_children>: New member.
2824 (dw2_get_file_names_reader): Remove has_children.
2825 (dw2_get_file_names): Update.
2826 (read_cutu_die_from_dwo): Remove has_children.
2827 (cutu_reader::init_tu_and_read_dwo_dies)
2828 (cutu_reader::cutu_reader): Update.
2829 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
2830 Remove has_children.
2831 (build_type_psymtabs_1, process_skeletonless_type_unit)
2832 (load_partial_comp_unit, load_full_comp_unit): Update.
2833 (create_dwo_cu_reader): Remove has_children.
2834 (create_cus_hash_table, read_die_and_children): Update.
2835 (read_full_die_1,read_full_die): Remove has_children.
2836 (read_signatured_type): Update.
2837 (class cutu_reader) <has_children>: Remove.
2838
82ca8957
TT
28392020-02-08 Tom Tromey <tom@tromey.com>
2840
2841 * dwarf2/expr.c: Rename from dwarf2expr.c.
2842 * dwarf2/expr.h: Rename from dwarf2expr.h.
2843 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
2844 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
2845 * dwarf2/frame.c: Rename from dwarf2-frame.c.
2846 * dwarf2/frame.h: Rename from dwarf2-frame.h.
2847 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
2848 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
2849 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
2850 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
2851 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
2852 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
2853 * dwarf2/loc.c: Rename from dwarf2loc.c.
2854 * dwarf2/loc.h: Rename from dwarf2loc.h.
2855 * dwarf2/read.c: Rename from dwarf2read.c.
2856 * dwarf2/read.h: Rename from dwarf2read.h.
2857 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
2858 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
2859 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
2860 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
2861 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
2862 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
2863 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
2864 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
2865 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
2866 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
2867 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
2868 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
2869 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
2870 Update.
2871 * Makefile.in (COMMON_SFILES): Update.
2872 (HFILES_NO_SRCDIR): Update.
2873
9e35d499
TT
28742020-02-08 Tom Tromey <tom@tromey.com>
2875
2876 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
2877 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
2878
1eba2311
TT
28792020-02-08 Tom Tromey <tom@tromey.com>
2880
2881 * dwarf2read.h (struct die_info): Don't declare.
2882
e41c2da2
TT
28832020-02-08 Tom Tromey <tom@tromey.com>
2884
2885 * dwarf2read.h (die_info_ptr): Remove typedef.
2886
4fc6c0d5
TT
28872020-02-08 Tom Tromey <tom@tromey.com>
2888
2889 * dwarf2read.c (read_call_site_scope)
2890 (handle_data_member_location, dwarf2_add_member_fn)
2891 (mark_common_block_symbol_computed, read_common_block)
2892 (attr_to_dynamic_prop, partial_die_info::read)
2893 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
2894 (dwarf2_symbol_mark_computed, set_die_type): Update.
2895 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
2896 method.
2897 (attr_form_is_block): Don't declare.
2898 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
2899
cd6c91b4
TT
29002020-02-08 Tom Tromey <tom@tromey.com>
2901
2902 * dwarf2read.c (dwarf2_find_base_address, )
2903 (read_call_site_scope, rust_containing_type)
2904 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2905 (handle_data_member_location, dwarf2_add_member_fn)
2906 (get_alignment, read_structure_type, process_structure_scope)
2907 (mark_common_block_symbol_computed, read_common_block)
2908 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
2909 (partial_die_info::read, read_attribute_value, new_symbol)
2910 (lookup_die_type, dwarf2_get_ref_die_offset)
2911 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
2912 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
2913 (dwarf2_symbol_mark_computed): Update.
2914 * dwarf2/attribute.h (struct attribute) <value_as_address,
2915 form_is_section_offset, form_is_constant, form_is_ref>: Declare
2916 methods.
2917 (value_as_address, attr_form_is_section_offset)
2918 (attr_form_is_constant, attr_form_is_ref): Don't declare.
2919 * dwarf2/attribute.c (attribute::value_as_address)
2920 (attribute::form_is_section_offset, attribute::form_is_constant)
2921 (attribute::form_is_ref): Now methods.
2922
162dce55
TT
29232020-02-08 Tom Tromey <tom@tromey.com>
2924
2925 * dwarf2read.c (struct attribute, DW_STRING)
2926 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
2927 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
2928 (attr_form_is_block, attr_form_is_section_offset)
2929 (attr_form_is_constant, attr_form_is_ref): Move.
2930 * dwarf2/attribute.h: New file.
2931 * dwarf2/attribute.c: New file, from dwarf2read.c.
2932 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
2933
3054dd54
TT
29342020-02-08 Tom Tromey <tom@tromey.com>
2935
2936 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
2937 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
2938 Move.
2939 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
2940 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
2941 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
2942 abbrev.c.
2943 * dwarf2/abbrev.h: New file.
2944 * dwarf2/abbrev.c: New file, from dwarf2read.c.
2945 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
2946
96b79293
TT
29472020-02-08 Tom Tromey <tom@tromey.com>
2948
2949 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
2950 (dwarf2_section_size, dwarf2_get_section_info)
2951 (create_signatured_type_table_from_debug_names)
2952 (create_addrmap_from_aranges, read_debug_names_from_section)
2953 (get_gdb_index_contents_from_section, read_comp_unit_head)
2954 (error_check_comp_unit_head, read_abbrev_offset)
2955 (create_debug_type_hash_table, init_cu_die_reader)
2956 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
2957 (read_comp_units_from_section, create_cus_hash_table)
2958 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2959 (create_dwp_v2_section, dwarf2_rnglists_process)
2960 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
2961 (abbrev_table_read_table, read_indirect_string_at_offset_from)
2962 (read_indirect_string_from_dwz, read_addr_index_1)
2963 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
2964 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2965 (fill_in_loclist_baton): Update.
2966 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
2967 get_containing_section, get_bfd_owner, get_bfd_section,
2968 get_file_name, get_id, get_flags, empty, read>: Declare methods.
2969 (dwarf2_read_section, get_section_name, get_section_file_name)
2970 (get_containing_section, get_section_bfd_owner)
2971 (get_section_bfd_section, get_section_name, get_section_file_name)
2972 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
2973 declare.
2974 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
2975 (dwarf2_section_info::get_bfd_owner)
2976 (dwarf2_section_info::get_bfd_section)
2977 (dwarf2_section_info::get_name)
2978 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
2979 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
2980 (dwarf2_section_info::read): Now methods.
2981 * dwarf-index-write.c (class debug_names): Update.
2982
2c86cff9
TT
29832020-02-08 Tom Tromey <tom@tromey.com>
2984
2985 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
2986 Move to dwarf2/section.h.
2987 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
2988 (get_section_bfd_section, get_section_name)
2989 (get_section_file_name, get_section_id, get_section_flags)
2990 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
2991 dwarf2/section.c.
2992 * dwarf2/section.h: New file.
2993 * dwarf2/section.c: New file, from dwarf2read.c.
2994 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
2995
f4382c45
TT
29962020-02-08 Tom Tromey <tom@tromey.com>
2997
2998 * dwarf2read.h (read_unsigned_leb128): Don't declare.
2999 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3000 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3001 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3002 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3003 * dwarf2/leb.h: New file, from dwarf2read.c.
3004 * dwarf2/leb.c: New file, from dwarf2read.c.
3005 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3006 Remove.
3007 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3008 (COMMON_SFILES): Add dwarf2/leb.c.
3009
01840b7a
JB
30102020-02-08 Joel Brobecker <brobecker@adacore.com>
3011
3012 GDB 9.1 released.
3013
dfcb27e4
IB
30142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3015
3016 PR gdb/25190:
3017 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3018 * gdb/remote.c (remote_console_output): Update.
3019 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3020 (ui_file_puts): ...this.
3021 * gdb/ui-file.h (ui_file_puts): Add declaration.
3022 * gdb/utils.c (emit_style_escape): Update.
3023 (flush_wrap_buffer): Update.
3024 (fputs_maybe_filtered): Update.
3025 (fputs_unfiltered): Add function.
3026
faa17681
IB
30272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3028
3029 * gdb/event-loop.c (gdb_wait_for_event): Update.
3030 * gdb/printcmd.c (printf_command): Update.
3031 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3032 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3033 (gdb_os_flush_stderr): Update.
3034 * gdb/remote.c (remote_console_output): Update.
3035 * gdb/ui-file.c (gdb_flush): Rename to...
3036 (ui_file_flush): ...this.
3037 (stderr_file::write): Update.
3038 (stderr_file::puts): Update.
3039 * gdb/ui-file.h (gdb_flush): Rename to...
3040 (ui_file_flush): ...this.
3041 * gdb/utils.c (gdb_flush): Add function.
3042 * gdb/utils.h (gdb_flush): Add declaration.
3043
5abbbe1d
TT
30442020-02-07 Tom Tromey <tromey@adacore.com>
3045
3046 PR breakpoints/24915:
3047 * source.c (find_and_open_source): Do not check basenames_may_differ.
3048
919adfe8
TT
30492020-02-07 Tom Tromey <tom@tromey.com>
3050
3051 * README: Update gdbserver documentation.
3052 * gdbserver: Move to top level.
3053 * configure.tgt (build_gdbserver): Remove.
3054 * configure.ac: Remove --enable-gdbserver.
3055 * configure: Rebuild.
3056 * Makefile.in (distclean): Don't mention gdbserver.
3057
1d5d29e7
SV
30582020-02-06 Shahab Vahedi <shahab@synopsys.com>
3059
3060 * source-cache.c (source_cache::ensure): Surround
3061 get_plain_source_lines with a try/catch.
3062 (source_cache::get_line_charpos): Get rid of try/catch
3063 and only check for the return value of "ensure".
3064 * tui/tui-source.c (tui_source_window::set_contents):
3065 Simplify "nlines" calculation.
3066
6eb1129c
SV
30672020-02-06 Shahab Vahedi <shahab@synopsys.com>
3068
3069 * MAINTAINERS (Write After Approval): Add myself.
3070
c6a42d11
CB
30712020-02-05 Christian Biesinger <cbiesinger@google.com>
3072
3073 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3074 function call.
3075
c8ecdda6
CB
30762020-02-05 Christian Biesinger <cbiesinger@google.com>
3077
3078 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3079
f6480e70
MR
30802020-02-05 Maciej W. Rozycki <macro@wdc.com>
3081
3082 * nat/riscv-linux-tdesc.h: New file.
3083 * nat/riscv-linux-tdesc.c: New file, taking code from...
3084 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3085 ... here.
3086 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3087 NATDEPFILES.
3088
dcc9fbc6
AB
30892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
3090
3091 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3092 we don't set the fake simulator ptid to the null_ptid.
3093
719546c4
SM
30942020-02-03 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3097 * gdbthread.h (class thread_info) <resumed>: Likewise.
3098 * infrun.c (resume_1): Likewise.
3099 (proceed): Likewise.
3100 (infrun_thread_stop_requested): Likewise.
3101 (stop_all_threads): Likewise.
3102 (handle_inferior_event): Likewise.
3103 (restart_threads): Likewise.
3104 (finish_step_over): Likewise.
3105 (keep_going_stepped_thread): Likewise.
3106 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3107 (linux_handle_extended_wait): Likewise.
3108 * record-btrace.c (get_thread_current_frame_id): Likewise.
3109 * record-full.c (record_full_wait_1): Likewise.
3110 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3111 * target.c (target_resume): Likewise.
3112 * thread.c (set_running_thread): Likewise.
3113
e409c542
AKS
31142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3115
3116 * f-valprint.c (f77_print_array_1): Changed datatype of index
3117 variable to LONGEST from int to enable it to contain bound
3118 values correctly.
3119
ee98c0da
MR
31202020-02-03 Maciej W. Rozycki <macro@wdc.com>
3121
3122 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3123 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3124 offsets according to FLEN determined.
3125 (riscv_linux_nat_target::read_description): Determine FLEN
3126 dynamically.
3127 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3128 according to FLEN determined.
3129 (riscv_linux_nat_target::store_registers): Likewise.
3130
aa66aac4
SV
31312020-02-01 Shahab Vahedi <shahab@synopsys.com>
3132
3133 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3134 when reg->group is empty and reggroup is not.
3135
fd9faca8
TT
31362020-01-31 Tom Tromey <tromey@adacore.com>
3137
3138 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3139 Call beneath target's mourn_inferior after unpushing.
3140
42330a68
AB
31412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 PR tui/9765
3144 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3145 have enough lines to fill the screen, still return the lowest
3146 address we found.
3147
7a27a45b
AB
31482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3151 '-', '<', and '>' commands.
3152
c47f70e2
PA
31532020-01-29 Pedro Alves <palves@redhat.com>
3154 Sergio Durigan Junior <sergiodj@redhat.com>
3155
3156 * infcmd.c (construct_inferior_arguments): Assert that
3157 'argc' is greater than 0.
3158
5133a315
LM
31592020-01-29 Luis Machado <luis.machado@linaro.org>
3160
3161 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
3162 (BRK_INSN_MASK): Define to 0xd4200000.
3163 (aarch64_program_breakpoint_here_p): New function.
3164 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
3165 * arch-utils.c (default_program_breakpoint_here_p): Moved from
3166 breakpoint.c.
3167 * arch-utils.h (default_program_breakpoint_here_p): Moved from
3168 breakpoint.h
3169 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
3170 call gdbarch_program_breakpoint_here_p.
3171 (program_breakpoint_here): Moved to arch-utils.c, renamed to
3172 default_program_breakpoint_here_p, changed return type to bool and
3173 simplified.
3174 * breakpoint.h (program_breakpoint_here): Moved prototype to
3175 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
3176 return type to bool.
3177 * gdbarch.c: Regenerate.
3178 * gdbarch.h: Regenerate.
3179 * gdbarch.sh (program_breakpoint_here_p): New method.
3180 * infrun.c (handle_signal_stop): Call
3181 gdbarch_program_breakpoint_here_p.
3182
168f8c6b
TT
31832020-01-26 Tom Tromey <tom@tromey.com>
3184
3185 * ctfread.c (struct ctf_fp_info): Reindent.
3186 (_initialize_ctfread): Remove.
3187
128a391f
TT
31882020-01-26 Tom Tromey <tom@tromey.com>
3189
3190 * psymtab.c (partial_map_expand_apply)
3191 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3192 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3193 (psym_print_stats, psym_expand_symtabs_for_function)
3194 (psym_map_symbol_filenames, psym_map_matching_symbols)
3195 (psym_expand_symtabs_matching)
3196 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3197 (maintenance_check_psymtabs): Use new methods.
3198 * psympriv.h (struct partial_symtab) <readin_p,
3199 get_compunit_symtab>: New methods.
3200 <readin, compunit_symtab>: Remove members.
3201 (struct standard_psymtab): New.
3202 (struct legacy_psymtab): Derive from standard_psymtab.
3203 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3204 standard_psymtab.
3205 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3206
0494dbec
TT
32072020-01-26 Tom Tromey <tom@tromey.com>
3208
3209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3210 read_dependencies. Add assert.
3211 * psymtab.c (partial_symtab::read_dependencies): New method.
3212 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3213 method.
3214 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3215 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3216 read_dependencies.
3217 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3218 Add assert.
3219
8566b89b
TT
32202020-01-26 Tom Tromey <tom@tromey.com>
3221
3222 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3223 Call expand_psymtab.
3224 (xcoff_read_symtab): Call expand_psymtab.
3225 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3226 legacy_expand_psymtab.
3227 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3228 method.
3229 (struct legacy_psymtab) <expand_psymtab>: Implement.
3230 <legacy_expand_psymtab>: New member.
3231 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3232 (parse_partial_symbols): Set legacy_expand_psymtab.
3233 (psymtab_to_symtab_1): Change argument order. Call
3234 expand_psymtab.
3235 (new_psymtab): Set legacy_expand_psymtab.
3236 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
3237 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
3238 expand_psymtab.
3239 (dwarf2_psymtab::expand_psymtab): Rename from
3240 psymtab_to_symtab_1. Call expand_psymtab.
3241 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
3242 (dbx_end_psymtab): Likewise.
3243 (dbx_psymtab_to_symtab_1): Change argument order. Call
3244 expand_psymtab.
3245 (dbx_read_symtab): Call expand_psymtab.
3246 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
3247 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
3248 (ctf_psymtab::read_symtab): Call expand_psymtab.
3249
077cbab2
TT
32502020-01-26 Tom Tromey <tom@tromey.com>
3251
3252 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
3253 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
3254 messages.
3255 * mdebugread.c (mdebug_read_symtab): Remove prints.
3256 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
3257 assert.
3258 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
3259
891813be
TT
32602020-01-26 Tom Tromey <tom@tromey.com>
3261
3262 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
3263 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
3264 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
3265 legacy_symtab.
3266 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
3267 * psymtab.c (psymtab_to_symtab): Call method.
3268 (dump_psymtab): Update.
3269 * psympriv.h (struct partial_symtab): Add virtual destructor.
3270 <read_symtab>: New method.
3271 (struct legacy_symtab): New.
3272 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
3273 (struct pst_map) <pst>: Now a legacy_psymtab.
3274 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
3275 (new_psymtab): Use legacy_psymtab.
3276 * dwarf2read.h (struct dwarf2_psymtab): New.
3277 (struct dwarf2_per_cu_data) <psymtab>: Use it.
3278 * dwarf2read.c (dwarf2_create_include_psymtab)
3279 (dwarf2_build_include_psymtabs, create_type_unit_group)
3280 (create_partial_symtab, process_psymtab_comp_unit_reader)
3281 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
3282 (set_partial_user): Use dwarf2_psymtab.
3283 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
3284 (psymtab_to_symtab_1, process_full_comp_unit)
3285 (process_full_type_unit, dwarf2_ranges_read)
3286 (dwarf2_get_pc_bounds, psymtab_include_file_name)
3287 (dwarf_decode_lines): Use dwarf2_psymtab.
3288 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
3289 (add_address_entry_worker, write_one_signatured_type)
3290 (recursively_count_psymbols, recursively_write_psymbols)
3291 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
3292 (write_debug_names): Likewise.
3293 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
3294 <pst>: Now a legacy_psymtab.
3295 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
3296 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
3297 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
3298 * ctfread.c (struct ctf_psymtab): New.
3299 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
3300 ctf_psymtab.
3301 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
3302 (create_partial_symtab): Return a ctf_psymtab.
3303 (scan_partial_symbols): Update.
3304
c3693a1d
TT
33052020-01-26 Tom Tromey <tom@tromey.com>
3306
3307 * xcoffread.c (xcoff_start_psymtab): Use new.
3308 * psymtab.c (partial_symtab::partial_symtab): New constructor,
3309 renamed from start_psymtab_common.
3310 * psympriv.h (struct partial_symtab): Add new constructor.
3311 (start_psymtab_common): Don't declare.
3312 * mdebugread.c (parse_partial_symbols): Use new.
3313 * dwarf2read.c (create_partial_symtab): Use new.
3314 * dbxread.c (start_psymtab): Use new.
3315 * ctfread.c (create_partial_symtab): Use new.
3316
32caafd0
TT
33172020-01-26 Tom Tromey <tom@tromey.com>
3318
3319 * xcoffread.c (xcoff_end_psymtab): Use new.
3320 * psymtab.c (start_psymtab_common): Use new.
3321 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
3322 Update.
3323 * psympriv.h (struct partial_symtab): Add parameters to
3324 constructor. Don't inline.
3325 (allocate_psymtab): Don't declare.
3326 * mdebugread.c (new_psymtab): Use new.
3327 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
3328 * dbxread.c (dbx_end_psymtab): Use new.
3329
abaa2f23
TT
33302020-01-26 Tom Tromey <tom@tromey.com>
3331
3332 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
3333 allocate_psymtab. Update documentation.
3334 * psymtab.c (psymtab_storage::install_psymtab): Rename from
3335 allocate_psymtab. Do not use new.
3336 (allocate_psymtab): Use new. Update.
3337
6d94535f
TT
33382020-01-26 Tom Tromey <tom@tromey.com>
3339
3340 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3341 * psymtab.c (psym_print_stats): Update.
3342 * psympriv.h (struct partial_symtab) <readin,
3343 psymtabs_addrmap_supported, anonymous>: Now bool.
3344 * mdebugread.c (psymtab_to_symtab_1): Update.
3345 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
3346 (build_type_psymtabs_reader, psymtab_to_symtab_1)
3347 (process_full_comp_unit, process_full_type_unit): Update.
3348 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3349 * ctfread.c (psymtab_to_symtab): Update.
3350
6f17252b
TT
33512020-01-26 Tom Tromey <tom@tromey.com>
3352
3353 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
3354 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
3355 * psymtab.c (psymtab_storage): Delete psymtabs.
3356 (psymtab_storage::allocate_psymtab): Use new.
3357 (psymtab_storage::discard_psymtab): Use delete.
3358 * psympriv.h (struct partial_symtab): Add constructor and
3359 initializers.
3360
f6f1cebc
TT
33612020-01-26 Tom Tromey <tom@tromey.com>
3362
3363 * machoread.c: Do not include psympriv.h.
3364
e47e48f6
PW
33652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3366
3367 * NEWS: Mention the new option and the set/show commands.
3368
a2fedca9
PW
33692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3370
3371 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
3372 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
3373 (validate_exec_file): New variables, enums, functions.
3374 (exec_file_locate_attach, print_section_info): Style the filenames.
3375 (_initialize_exec): Install show_exec_file_mismatch_command and
3376 set_exec_file_mismatch_command.
3377 * gdbcore.h (validate_exec_file): Declare.
3378 * infcmd.c (attach_command): Call validate_exec_file.
3379 * remote.c ( remote_target::remote_add_inferior): Likewise.
3380
7ffa82e1
AB
33812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * frame.c (find_frame_sal): Move call to get_next_frame into more
3384 inner scope.
3385 * inline-frame.c (inilne_state) <inline_state>: Update argument
3386 types.
3387 (inilne_state) <skipped_symbol>: Rename to...
3388 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
3389 (skip_inline_frames): Build vector of skipped symbols and use this
3390 to reate the inline_state.
3391 (inline_skipped_symbol): Add a comment and some assertions, fetch
3392 skipped symbol from the list.
3393
3d92a3e3
AB
33942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 * buildsym.c (lte_is_less_than): Delete.
3397 (buildsym_compunit::end_symtab_with_blockvector): Create local
3398 lambda function to sort line table entries, and use
3399 std::stable_sort instead of std::sort.
3400 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
3401 markers when looking for a previous line.
3402
94a72be7
AB
34032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * dwarf2read.c (lnp_state_machine::record_line): Include
3406 end_sequence parameter in debug print out. Record the line if we
3407 are at an end_sequence marker even if it's not the start of a
3408 statement.
3409 * symmisc.c (maintenance_print_one_line_table): Print end of
3410 sequence markers with 'END' not '0'.
3411
53af73bf
PA
34122020-01-24 Pedro Alves <palves@redhat.com>
3413
3414 PR gdb/25410
3415 * thread.c (scoped_restore_current_thread::restore): Use
3416 switch_to_inferior_no_thread.
3417 * exec.c: Include "progspace-and-thread.h".
3418 (add_target_sections, remove_target_sections):
3419 scoped_restore_current_pspace_and_thread instead of
3420 scoped_restore_current_thread.
3421 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
3422 and aspace to the inferior before calling clone_program_space.
3423 Remove stale comment.
3424
3050c6f4
CB
34252020-01-24 Christian Biesinger <cbiesinger@google.com>
3426
3427 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
3428 (arm_netbsd_nat_target::fetch_registers): ...this.
3429 (arm_nbsd_nat_target::store_registers): Rename to...
3430 (arm_netbsd_nat_target::store_registers): ...this.
3431
73685c7e
CB
34322020-01-24 Christian Biesinger <cbiesinger@google.com>
3433
3434 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3435 register_t.
3436
89203d40
CB
34372020-01-24 Christian Biesinger <cbiesinger@google.com>
3438
3439 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
3440 Update comment.
3441 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
3442 Likewise.
3443 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
3444 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
3445 the correct replacement (iterate_over_regset_sections).
3446 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
3447 Update comment.
3448
1ba1ac88
AB
34492020-01-24 Graham Markall <graham.markall@embecosm.com>
3450
3451 PR gdb/23718
3452 * gdb/python/python.c (execute_gdb_command): Call
3453 async_enable_stdin in catch block.
3454
f3364a6d
AB
34552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3456
3457 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
3458 SWITCH_THRU_ALL_UIS.
3459
733d0a67
AB
34602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 PR tui/9765
3463 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
3464 comment, add extra parameter, and update to store previous symbol
3465 when appropriate.
3466 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
3467 add extra parameter.
3468 * tui/tui-disasm.c (tui_disassemble): Update header comment,
3469 remove unneeded parameter, add try/catch around gdb_print_insn,
3470 rewrite to add items to asm_lines vector.
3471 (tui_find_backward_disassembly_start_address): New function.
3472 (tui_find_disassembly_address): Updated throughout.
3473 (tui_disasm_window::set_contents): Update for changes to
3474 tui_disassemble.
3475 (tui_disasm_window::do_scroll_vertical): No need to adjust the
3476 number of lines to scroll.
3477
b3b3bada
SM
34782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
3481 (SECT_OFF_DATA): Likewise.
3482 (SECT_OFF_RODATA): Likewise.
3483 (SECT_OFF_TEXT): Likewise.
3484 (SECT_OFF_BSS): Likewise.
3485 (struct objfile) <text_section_offset, data_section_offset>: New
3486 methods.
3487 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
3488 objfile::text_section_offset.
3489 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3490 * coffread.c (coff_symtab_read): Likewise.
3491 (enter_linenos): Likewise.
3492 (process_coff_symbol): Likewise.
3493 * ctfread.c (get_objfile_text_range): Likewise.
3494 * dtrace-probe.c (dtrace_probe::get_relocated_address):
3495 Use objfile::data_section_offset.
3496 * dwarf2-frame.c (execute_cfa_program): Use
3497 objfile::text_section_offset.
3498 (dwarf2_frame_find_fde): Likewise.
3499 * dwarf2read.c (create_addrmap_from_index): Likewise.
3500 (create_addrmap_from_aranges): Likewise.
3501 (dw2_find_pc_sect_compunit_symtab): Likewise.
3502 (process_psymtab_comp_unit_reader): Likewise.
3503 (add_partial_symbol): Likewise.
3504 (add_partial_subprogram): Likewise.
3505 (process_full_comp_unit): Likewise.
3506 (read_file_scope): Likewise.
3507 (read_func_scope): Likewise.
3508 (read_lexical_block_scope): Likewise.
3509 (read_call_site_scope): Likewise.
3510 (dwarf2_rnglists_process): Likewise.
3511 (dwarf2_ranges_process): Likewise.
3512 (dwarf2_ranges_read): Likewise.
3513 (dwarf_decode_lines_1): Likewise.
3514 (new_symbol): Likewise.
3515 (dwarf2_fetch_die_loc_sect_off): Likewise.
3516 (dwarf2_per_cu_text_offset): Likewise.
3517 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3518 * hppa-tdep.c (read_unwind_info): Likewise.
3519 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
3520 * psympriv.h (struct partial_symtab): Likewise.
3521 * psymtab.c (find_pc_sect_psymtab): Likewise.
3522 * solib-svr4.c (enable_break): Likewise.
3523 * stap-probe.c (relocate_address): Use
3524 objfile::data_section_offset.
3525 * xcoffread.c (enter_line_range): Use
3526 objfile::text_section_offset.
3527 (read_xcoff_symtab): Likewise.
3528
ab53f382
SM
35292020-01-23 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
3532 declaration to narrower scopes.
3533
e7eee665
SM
35342020-01-23 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * darwin-nat.h (struct darwin_exception_msg, enum
3537 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
3538 Move up.
3539 (class darwin_nat_target) <wait_1, check_new_threads,
3540 decode_exception_message, decode_message, stop_inferior,
3541 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
3542 * darwin-nat.c (darwin_check_new_threads): Rename to...
3543 (darwin_nat_target::check_new_threads): ... this.
3544 (darwin_suspend_inferior_it): Remove.
3545 (darwin_decode_exception_message): Rename to...
3546 (darwin_nat_target::decode_exception_message): ... this.
3547 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
3548 (darwin_decode_message): Rename to...
3549 (darwin_nat_target::decode_message): ... this.
3550 (cancel_breakpoint): Rename to...
3551 (darwin_nat_target::cancel_breakpoint): ... this.
3552 (darwin_wait): Rename to...
3553 (darwin_nat_target::wait_1): ... this. Use range-based for loop
3554 instead of iterate_over_inferiors.
3555 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
3556 (darwin_stop_inferior): Rename to...
3557 (darwin_nat_target::stop_inferior): ... this.
3558 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
3559 (darwin_init_thread_list): Rename to...
3560 (darwin_nat_target::init_thread_list): ... this.
3561 (darwin_ptrace_him): Rename to...
3562 (darwin_nat_target::ptrace_him): ... this.
3563 (darwin_nat_target::create_inferior): Pass lambda function to
3564 fork_inferior.
3565 (darwin_nat_target::detach): Call stop_inferior instead of
3566 darwin_stop_inferior.
3567 * fork-inferior.h (fork_inferior): Change init_trace_fun
3568 parameter to gdb::function_view.
3569 * fork-inferior.c (fork_inferior): Likewise.
3570
c162ed3e
HD
35712020-01-23 Hannes Domani <ssbssa@yahoo.de>
3572
3573 * i386-cygwin-tdep.c (core_process_module_section): Update.
3574 * windows-nat.c (struct lm_info_windows): Add text_offset.
3575 (windows_xfer_shared_libraries): Update.
3576 * windows-tdep.c (windows_xfer_shared_library):
3577 Add text_offset_cached argument.
3578 * windows-tdep.h (windows_xfer_shared_library): Update.
3579
a1237872
SM
35802020-01-21 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * gdbarch.sh: Add declaration for _initialize_gdbarch.
3583
b3ee6dd9
SM
35842020-01-21 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
3587 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
3588 replace with range-based for.
3589 (gdbsim_interrupt_inferior): Remove.
3590 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
3591 with a range-based for. Inline code from
3592 gdbsim_interrupt_inferior.
3593
f9fac3c8
SM
35942020-01-21 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * infrun.c (proceed): Fix indentation.
3597
f6474de9
TT
35982020-01-21 Tom Tromey <tromey@adacore.com>
3599
3600 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
3601 * python/python.c (python_extension_ops): Update.
3602 (gdbpy_colorize): New function.
3603 * python/lib/gdb/__init__.py (colorize): New function.
3604 * extension.h (ext_lang_colorize): Declare.
3605 * extension.c (ext_lang_colorize): New function.
3606 * extension-priv.h (struct extension_language_ops) <colorize>: New
3607 member.
3608 * cli/cli-style.c (_initialize_cli_style): Update help text.
3609
f0c702d4
LM
36102020-01-21 Luis Machado <luis.machado@linaro.org>
3611
3612 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
3613 <cond>: Change type to bool.
3614 (aarch64_displaced_step_b_cond): Update cond to use bool type.
3615 (aarch64_displaced_step_cb): Likewise.
3616 (aarch64_displaced_step_tb): Likewise.
3617
1ab139e5
LM
36182020-01-21 Luis Machado <luis.machado@linaro.org>
3619
3620 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
3621 output.
3622
0c271889
LM
36232020-01-21 Luis Machado <luis.machado@linaro.org>
3624
3625 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
3626 <pc_adjust>: Adjust the documentation.
3627 (aarch64_displaced_step_fixup): Check if PC really moved before
3628 adjusting it.
3629
4d89c1c7
TT
36302020-01-19 Tom Tromey <tom@tromey.com>
3631
3632 * disasm.c (~gdb_disassembler): New destructor.
3633 (gdb_buffered_insn_length): Call disassemble_free_target.
3634 * disasm.h (class gdb_disassembler): Declare destructor. Use
3635 DISABLE_COPY_AND_ASSIGN.
3636
c0ab21c2
TT
36372020-01-19 Tom Tromey <tom@tromey.com>
3638
3639 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
3640 (die_reader_func_ftype): Remove.
3641 (cutu_reader): New class.
3642 (dw2_get_file_names_reader): Remove "data" parameter.
3643 (dw2_get_file_names): Use cutu_reader.
3644 (create_debug_type_hash_table): Update.
3645 (read_cutu_die_from_dwo): Update comment.
3646 (lookup_dwo_unit): Add dwo_name parameter.
3647 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
3648 die_reader_func_ftype and data parameters.
3649 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
3650 Remove die_reader_func_ftype and data parameters.
3651 (~cutu_reader): New; from init_cutu_and_read_dies.
3652 (cutu_reader::cutu_reader): Rename from
3653 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
3654 and data parameters.
3655 (init_cutu_and_read_dies_simple): Remove.
3656 (struct process_psymtab_comp_unit_data): Remove.
3657 (process_psymtab_comp_unit_reader): Remove data parameter; add
3658 want_partial_unit and pretend_language parameters.
3659 (process_psymtab_comp_unit): Use cutu_reader.
3660 (build_type_psymtabs_reader): Remove data parameter.
3661 (build_type_psymtabs_1): Use cutu_reader.
3662 (process_skeletonless_type_unit): Likewise.
3663 (load_partial_comp_unit_reader): Remove.
3664 (load_partial_comp_unit): Use cutu_reader.
3665 (load_full_comp_unit_reader): Remove.
3666 (load_full_comp_unit): Use cutu_reader.
3667 (struct create_dwo_cu_data): Remove.
3668 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
3669 dwo_unit parameters.
3670 (create_cus_hash_table): Use cutu_reader.
3671 (struct dwarf2_read_addr_index_data): Remove.
3672 (dwarf2_read_addr_index_reader): Remove.
3673 (dwarf2_read_addr_index): Use cutu_reader.
3674 (read_signatured_type_reader): Remove.
3675 (read_signatured_type): Use cutu_reader.
3676
45bbae5c
TT
36772020-01-19 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
3680 * tui/tui-wingeneral.h (class tui_suppress_output): New.
3681 (tui_wrefresh): Declare.
3682 * tui/tui-wingeneral.c (suppress_output): New global.
3683 (tui_suppress_output, ~tui_suppress_output): New constructor and
3684 destructor.
3685 (tui_wrefresh): New function.
3686 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
3687 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
3688 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
3689 method.
3690 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
3691 tui_wrefresh.
3692 (tui_data_window::no_refresh): New method.
3693 (tui_data_item_window::refresh_window): Call tui_wrefresh.
3694 (tui_reg_command): Use tui_suppress_output
3695 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
3696 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
3697 method.
3698 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
3699
4f13c1c0
TT
37002020-01-19 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3703 Handle case where symtab is null.
3704
fa47e446
SM
37052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3706
3707 * linux-fork.c (one_fork_p): Simplify.
3708
26f42329
SM
37092020-01-17 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * top.c (struct qt_args): Remove.
3712 (kill_or_detach): Change return type to void, replace `void *`
3713 parameter with a proper one.
3714 (print_inferior_quit_action): Likewise.
3715 (quit_confirm): Use range-based for loop to iterate over inferiors.
3716 (quit_force): Likewise.
3717
a9ac81b1
SM
37182020-01-17 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
3721 `void *` parameter with proper parameters.
3722 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
3723 (print_one_inferior): Change return type to void, replace `void *`
3724 parameter with proper parameters.
3725 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
3726 inferiors.
3727 (get_other_inferior): Remove.
3728 (mi_cmd_remove_inferior): Use range-based loop to iterate over
3729 inferiors.
3730
788eca49
SM
37312020-01-17 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * mi/mi-interp.c (report_initial_inferior): Remove.
3734 (mi_interp::init): Use range-based for to iterate over inferiors.
3735
d9bc85b6
SM
37362020-01-17 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * python/py-inferior.c (build_inferior_list): Remove.
3739 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
3740
40c94099
CB
37412020-01-16 Christian Biesinger <cbiesinger@google.com>
3742
3743 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
3744 (btrace_stitch_trace): Likewise.
3745 * charset.c (intermediate_encoding): Likewise (vaild).
3746 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
3747 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
3748 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
3749
e0cdfe3c
HD
37502020-01-16 Hannes Domani <ssbssa@yahoo.de>
3751
3752 * windows-tdep.c (windows_get_tlb_type):
3753 Add rtl_user_process_parameters type.
3754
790f1718
PA
37552020-01-16 Pedro Alves <palves@redhat.com>
3756 Norbert Lange <nolange79@gmail.com>
3757
3758 PR build/24805
3759 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
3760 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
3761 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
3762 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
3763 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
3764 (ps_plog): Redeclare exported functions with default visibility.
3765
3112ed97
NA
37662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
3767
3768 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
3769 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
3770
8dc3273e
SM
37712020-01-15 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * infcmd.c (post_create_inferior): Use get_thread_regcache
3774 instead of get_current_regcache.
3775
ff47f4f0
TT
37762020-01-14 Tom Tromey <tom@tromey.com>
3777
3778 PR symtab/12535:
3779 * python/python.c (gdbpy_decode_line): Treat empty string the same
3780 as no argument.
3781
975f45b7
TT
37822020-01-14 Tom Tromey <tom@tromey.com>
3783
3784 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
3785
25e57356
TT
37862020-01-14 Tom Tromey <tom@tromey.com>
3787
3788 * nat/linux-btrace.c: Don't include <config.h>.
3789 * nat/linux-ptrace.c: Don't include <config.h>.
3790 * nat/x86-linux-dregs.c: Don't include <config.h>.
3791
05ea2a05
TT
37922020-01-14 Tom Tromey <tom@tromey.com>
3793
3794 * configure: Rebuild.
3795 * configure.ac: Move many checks to ../gdbsupport/common.m4.
3796
01027315
TT
37972020-01-14 Tom Tromey <tom@tromey.com>
3798
3799 * nat/x86-linux-dregs.c: Include configh.h.
3800 * nat/linux-ptrace.c: Include configh.h.
3801 * nat/linux-btrace.c: Include configh.h.
3802 * defs.h: Include config.h, bfd.h.
3803 * configure.ac: Don't source common.host.
3804 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
3805 * configure: Rebuild.
3806 * acinclude.m4: Update path.
3807 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
3808 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
3809 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
3810 (CLIBS): Add LIBSUPPORT.
3811 (CDEPS): Likewise.
3812 (COMMON_SFILES): Remove gdbsupport files.
3813 (HFILES_NO_SRCDIR): Likewise.
3814 (stamp-version): Update path to create-version.sh.
3815 (ALLDEPFILES): Remove gdbsupport files.
3816
b2ceabe8
TT
38172020-01-14 Tom Tromey <tom@tromey.com>
3818
3819 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
3820 USE_WIN32API when needed.
3821 * configure.ac (USE_WIN32API): Don't define.
3822 (WIN32LIBS): Use WIN32APILIBS.
3823 * configure: Rebuild.
3824
25c51f71
TT
38252020-01-14 Tom Tromey <tom@tromey.com>
3826
3827 * configure: Rebuild.
3828 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
3829
717c684d
BE
38302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3831
3832 * skip.c (skip_function_command): Make skip w/o arguments use the
3833 name of the inlined function if pc is inside any inlined function.
3834
7da6a5b9
LM
38352020-01-14 Luis Machado <luis.machado@linaro.org>
3836
3837 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
3838 * infrun.c (resume_1): Likewise.
3839 (handle_inferior_event): Remove stale comment.
3840 * linux-nat.c (linux_nat_target::resume): Update comments.
3841 (save_stop_reason): Likewise.
3842 (linux_nat_filter_event): Likewise.
3843 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
3844
44e4c775
AB
38452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3846
3847 * elfread.c (record_minimal_symbol): Set section index to 0 for
3848 non-allocatable sections.
3849
18a8505e
AT
3850
38512020-01-13 Ali Tamur <tamur@google.com>
3852
3853 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
3854 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
3855 to gdb::optional. Update comments.
3856 (dwo_file): Update comments.
3857 (read_attribute): Update API to take an additional out parameter,
3858 need_reprocess. This is used to mark attributes that need other
3859 attributes (e.g. str_offsets_base) for correct computation which may not
3860 have been read yet.
3861 (read_attribute_reprocess): New function declaration.
3862 (read_addr_index): Likewise.
3863 (read_dwo_str_index): Likewise.
3864 (read_stub_str_index): Likewise.
3865 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
3866 (lookup_addr_base): New function definition.
3867 (lookup_ranges_base): Likewise.
3868 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
3869 lookup_ranges_base.
3870 (init_cutu_and_read_dies): Update comments.
3871 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
3872 unit. This is used to inherit parent's str_offsets_base and addr_base.
3873 Update comments.
3874 (init_cutu_and_read_dies_simple): Reflect API changes.
3875 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
3876 (create_cus_hash_table): Change API to take parent compile unit.
3877 Reflect API changes.
3878 (open_and_init_dwo_file): Reflect API changes.
3879 (dwarf2_get_pc_bounds): Update comments.
3880 (dwarf2_record_block_ranges): Likewise.
3881 (read_full_die_1): Change implementation to reprocess attributes that
3882 need str_offsets_base and addr_base.
3883 (partial_die_info::read): Likewise.
3884 (read_attribute_reprocess): New function definition.
3885 (read_attribute_value): Change API to take an additional out parameter,
3886 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
3887 when a non-dwo compile unit has index based attributes.
3888 (read_attribute): Reflect API changes.
3889 (read_addr_index_1): Reflect API changes. Update comments.
3890 (dwarf2_read_addr_index_data): Reflect API changes.
3891 (dwarf2_read_addr_index): Likewise.
3892 (read_str_index): Change API and implementation. This becomes a helper
3893 to be used by the new string index related methods. Update error
3894 message and comments.
3895 (read_dwo_str_index): New function definition.
3896 (read_stub_str_index): Likewise.
3897 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
3898 * symfile.h (dwarf2_debug_sections): Likewise.
3899 * xcoffread.c (dwarf2_debug_sections): Likewise.
3900
0cac9354
SM
39012020-01-13 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * gdbcore.h (struct core_fns) <core_read_registers>: Change
3904 core_reg_sect type to gdb_byte *.
3905 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
3906 * cris-tdep.c (fetch_core_registers): Likewise.
3907 * corelow.c (core_target::get_core_register_section): Change
3908 type of `contents` to gdb::byte_vector.
3909
9a6d629c
AB
39102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * tui/tui-wingeneral.c (box_win): Position the title in the center
3913 of the border.
3914
d8b2f9e3
SM
39152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3916
3917 * corelow.c (core_target::get_core_register_section): Use
3918 std::vector instead of alloca.
3919
bb564c58
SM
39202020-01-13 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * warning.m4: Add -Wmissing-declarations to build_warnings.
3923 * configure: Re-generate.
3924
6b366111
SM
39252020-01-13 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * python/python.c (init__gdb_module): Add declaration.
3928
6c265988
SM
39292020-01-13 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
3932 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
3933 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
3934 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
3935 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
3936 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
3937 * ada-exp.y (_initialize_ada_exp): Add declaration.
3938 * ada-lang.c (_initialize_ada_language): Add declaration.
3939 * ada-tasks.c (_initialize_tasks): Add declaration.
3940 * agent.c (_initialize_agent): Add declaration.
3941 * aix-thread.c (_initialize_aix_thread): Add declaration.
3942 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
3943 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
3944 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
3945 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
3946 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
3947 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3948 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
3949 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
3950 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
3951 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
3952 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
3953 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
3954 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
3955 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
3956 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
3957 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
3958 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
3959 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
3960 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
3961 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
3962 * annotate.c (_initialize_annotate): Add declaration.
3963 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
3964 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
3965 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
3966 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
3967 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
3968 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
3969 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
3970 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
3971 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
3972 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
3973 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
3974 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
3975 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3976 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
3977 * auto-load.c (_initialize_auto_load): Add declaration.
3978 * auxv.c (_initialize_auxv): Add declaration.
3979 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
3980 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
3981 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
3982 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
3983 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
3984 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
3985 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
3986 * breakpoint.c (_initialize_breakpoint): Add declaration.
3987 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
3988 * btrace.c (_initialize_btrace): Add declaration.
3989 * charset.c (_initialize_charset): Add declaration.
3990 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
3991 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3992 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3993 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
3994 * cli/cli-script.c (_initialize_cli_script): Add declaration.
3995 * cli/cli-style.c (_initialize_cli_style): Add declaration.
3996 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
3997 * coffread.c (_initialize_coffread): Add declaration.
3998 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
3999 * compile/compile.c (_initialize_compile): Add declaration.
4000 * complaints.c (_initialize_complaints): Add declaration.
4001 * completer.c (_initialize_completer): Add declaration.
4002 * copying.c (_initialize_copying): Add declaration.
4003 * corefile.c (_initialize_core): Add declaration.
4004 * corelow.c (_initialize_corelow): Add declaration.
4005 * cp-abi.c (_initialize_cp_abi): Add declaration.
4006 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4007 * cp-support.c (_initialize_cp_support): Add declaration.
4008 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4009 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4010 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4011 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4012 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4013 * ctfread.c (_initialize_ctfread): Add declaration.
4014 * d-lang.c (_initialize_d_language): Add declaration.
4015 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4016 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4017 * dbxread.c (_initialize_dbxread): Add declaration.
4018 * dcache.c (_initialize_dcache): Add declaration.
4019 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4020 * disasm.c (_initialize_disasm): Add declaration.
4021 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4022 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4023 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4024 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4025 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4026 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4027 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4028 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4029 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4030 * elfread.c (_initialize_elfread): Add declaration.
4031 * exec.c (_initialize_exec): Add declaration.
4032 * extension.c (_initialize_extension): Add declaration.
4033 * f-lang.c (_initialize_f_language): Add declaration.
4034 * f-valprint.c (_initialize_f_valprint): Add declaration.
4035 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4036 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4037 * filesystem.c (_initialize_filesystem): Add declaration.
4038 * findcmd.c (_initialize_mem_search): Add declaration.
4039 * findvar.c (_initialize_findvar): Add declaration.
4040 * fork-child.c (_initialize_fork_child): Add declaration.
4041 * frame-base.c (_initialize_frame_base): Add declaration.
4042 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4043 * frame.c (_initialize_frame): Add declaration.
4044 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4045 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4046 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4047 * gcore.c (_initialize_gcore): Add declaration.
4048 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4049 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4050 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4051 * gdbarch.c (_initialize_gdbarch): Add declaration.
4052 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4053 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4054 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4055 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4056 * go-lang.c (_initialize_go_language): Add declaration.
4057 * go32-nat.c (_initialize_go32_nat): Add declaration.
4058 * guile/guile.c (_initialize_guile): Add declaration.
4059 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4060 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4061 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4062 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4063 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4064 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4065 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4066 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4067 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4068 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4069 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4070 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4071 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4072 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4073 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4074 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4075 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4076 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4077 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4078 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4079 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4080 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4081 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4082 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4083 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4084 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4085 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4086 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4087 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4088 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4089 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4090 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4091 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4092 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4093 * infcall.c (_initialize_infcall): Add declaration.
4094 * infcmd.c (_initialize_infcmd): Add declaration.
4095 * inflow.c (_initialize_inflow): Add declaration.
4096 * infrun.c (_initialize_infrun): Add declaration.
4097 * interps.c (_initialize_interpreter): Add declaration.
4098 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4099 * jit.c (_initialize_jit): Add declaration.
4100 * language.c (_initialize_language): Add declaration.
4101 * linux-fork.c (_initialize_linux_fork): Add declaration.
4102 * linux-nat.c (_initialize_linux_nat): Add declaration.
4103 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4104 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4105 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4106 * m2-lang.c (_initialize_m2_language): Add declaration.
4107 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4108 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4109 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4110 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4111 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4112 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4113 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4114 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4115 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4116 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4117 * machoread.c (_initialize_machoread): Add declaration.
4118 * macrocmd.c (_initialize_macrocmd): Add declaration.
4119 * macroscope.c (_initialize_macroscope): Add declaration.
4120 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4121 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4122 * maint.c (_initialize_maint_cmds): Add declaration.
4123 * mdebugread.c (_initialize_mdebugread): Add declaration.
4124 * memattr.c (_initialize_mem): Add declaration.
4125 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4126 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4127 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4128 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4129 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4130 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4131 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4132 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4133 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4134 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4135 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4136 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4137 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4138 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4139 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4140 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4141 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4142 * mipsread.c (_initialize_mipsread): Add declaration.
4143 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4144 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4145 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4146 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4147 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4148 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4149 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4150 * nto-procfs.c (_initialize_procfs): Add declaration.
4151 * objc-lang.c (_initialize_objc_language): Add declaration.
4152 * observable.c (_initialize_observer): Add declaration.
4153 * opencl-lang.c (_initialize_opencl_language): Add declaration.
4154 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
4155 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
4156 * osabi.c (_initialize_gdb_osabi): Add declaration.
4157 * osdata.c (_initialize_osdata): Add declaration.
4158 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4159 * parse.c (_initialize_parse): Add declaration.
4160 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
4161 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
4162 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
4163 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
4164 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
4165 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
4166 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
4167 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
4168 * printcmd.c (_initialize_printcmd): Add declaration.
4169 * probe.c (_initialize_probe): Add declaration.
4170 * proc-api.c (_initialize_proc_api): Add declaration.
4171 * proc-events.c (_initialize_proc_events): Add declaration.
4172 * proc-service.c (_initialize_proc_service): Add declaration.
4173 * procfs.c (_initialize_procfs): Add declaration.
4174 * producer.c (_initialize_producer): Add declaration.
4175 * psymtab.c (_initialize_psymtab): Add declaration.
4176 * python/python.c (_initialize_python): Add declaration.
4177 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4178 * record-btrace.c (_initialize_record_btrace): Add declaration.
4179 * record-full.c (_initialize_record_full): Add declaration.
4180 * record.c (_initialize_record): Add declaration.
4181 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4182 * regcache.c (_initialize_regcache): Add declaration.
4183 * reggroups.c (_initialize_reggroup): Add declaration.
4184 * remote-notif.c (_initialize_notif): Add declaration.
4185 * remote-sim.c (_initialize_remote_sim): Add declaration.
4186 * remote.c (_initialize_remote): Add declaration.
4187 * reverse.c (_initialize_reverse): Add declaration.
4188 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4189 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4190 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4191 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4192 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4193 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4194 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4195 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4196 Add declaration.
4197 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4198 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4199 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4200 * rust-exp.y (_initialize_rust_exp): Add declaration.
4201 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4202 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4203 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4204 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4205 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4206 * score-tdep.c (_initialize_score_tdep): Add declaration.
4207 * ser-go32.c (_initialize_ser_dos): Add declaration.
4208 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4209 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4210 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4211 * ser-uds.c (_initialize_ser_socket): Add declaration.
4212 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4213 * serial.c (_initialize_serial): Add declaration.
4214 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4215 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4216 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4217 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4218 * skip.c (_initialize_step_skip): Add declaration.
4219 * sol-thread.c (_initialize_sol_thread): Add declaration.
4220 * solib-aix.c (_initialize_solib_aix): Add declaration.
4221 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4222 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4223 * solib-frv.c (_initialize_frv_solib): Add declaration.
4224 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4225 * solib-target.c (_initialize_solib_target): Add declaration.
4226 * solib.c (_initialize_solib): Add declaration.
4227 * source-cache.c (_initialize_source_cache): Add declaration.
4228 * source.c (_initialize_source): Add declaration.
4229 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4230 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4231 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4232 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4233 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
4234 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
4235 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
4236 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
4237 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
4238 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
4239 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
4240 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
4241 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
4242 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
4243 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
4244 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
4245 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
4246 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
4247 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
4248 * stabsread.c (_initialize_stabsread): Add declaration.
4249 * stack.c (_initialize_stack): Add declaration.
4250 * stap-probe.c (_initialize_stap_probe): Add declaration.
4251 * std-regs.c (_initialize_frame_reg): Add declaration.
4252 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
4253 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
4254 * symfile.c (_initialize_symfile): Add declaration.
4255 * symmisc.c (_initialize_symmisc): Add declaration.
4256 * symtab.c (_initialize_symtab): Add declaration.
4257 * target.c (_initialize_target): Add declaration.
4258 * target-connection.c (_initialize_target_connection): Add
4259 declaration.
4260 * target-dcache.c (_initialize_target_dcache): Add declaration.
4261 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
4262 * thread.c (_initialize_thread): Add declaration.
4263 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
4264 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
4265 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
4266 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
4267 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
4268 * tracectf.c (_initialize_ctf): Add declaration.
4269 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
4270 * tracefile.c (_initialize_tracefile): Add declaration.
4271 * tracepoint.c (_initialize_tracepoint): Add declaration.
4272 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
4273 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
4274 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
4275 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
4276 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
4277 * tui/tui-win.c (_initialize_tui_win): Add declaration.
4278 * tui/tui.c (_initialize_tui): Add declaration.
4279 * typeprint.c (_initialize_typeprint): Add declaration.
4280 * ui-style.c (_initialize_ui_style): Add declaration.
4281 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
4282 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
4283 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
4284 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
4285 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
4286 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
4287 * unittests/filtered_iterator-selftests.c
4288 (_initialize_filtered_iterator_selftests): Add declaration.
4289 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
4290 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
4291 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
4292 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
4293 * unittests/main-thread-selftests.c
4294 (_initialize_main_thread_selftests): Add declaration.
4295 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
4296 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
4297 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
4298 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
4299 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
4300 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
4301 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
4302 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
4303 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
4304 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
4305 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
4306 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
4307 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
4308 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
4309 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
4310 declaration.
4311 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
4312 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
4313 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
4314 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
4315 * user-regs.c (_initialize_user_regs): Add declaration.
4316 * utils.c (_initialize_utils): Add declaration.
4317 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
4318 * valops.c (_initialize_valops): Add declaration.
4319 * valprint.c (_initialize_valprint): Add declaration.
4320 * value.c (_initialize_values): Add declaration.
4321 * varobj.c (_initialize_varobj): Add declaration.
4322 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
4323 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
4324 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4325 * windows-nat.c (_initialize_windows_nat): Add declaration.
4326 (_initialize_check_for_gdb_ini): Add declaration.
4327 (_initialize_loadable): Add declaration.
4328 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
4329 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
4330 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
4331 * xcoffread.c (_initialize_xcoffread): Add declaration.
4332 * xml-support.c (_initialize_xml_support): Add declaration.
4333 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
4334 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
4335 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
4336 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
4337
e2de1eec
SM
43382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * regformats/regdat.sh: Generate declaration for init function.
4341
e0037b4c
SM
43422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4343
4344 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
4345 up.
4346 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
4347 close_one_inferior>: New methods.
4348 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
4349 pass down target to find_inferior_pid.
4350 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
4351 Pass down target to find_inferior_ptid.
4352 (gdbsim_target::create_inferior): Pass down target to
4353 add_thread_silent.
4354 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
4355 target down to find_inferior_ptid and switch_to_thread.
4356 (gdbsim_target::close): Update to call close_one_inferior.
4357 (struct resume_data): Remove.
4358 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
4359 directly, rather than through a void pointer.
4360 (gdbsim_target::resume): Update to call resume_one_inferior.
4361
58920b5b
SM
43622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
4365
4ec89149
PA
43662020-01-12 Pedro Alves <palves@redhat.com>
4367
4368 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
4369 directly for the current inferior instead of
4370 discard_all_inferiors.
4371 (discard_all_inferiors): Delete.
4372
7c392d1d
TT
43732020-01-11 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4376 * tui/tui-winsource.c (tui_source_window_base::refill): Use
4377 deprecated_safe_get_selected_frame.
4378
d9ebdab7
TBA
43792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4380
4381 * inferior.c (print_inferior): Switch inferior before printing it.
4382
f3c469b9
PA
43832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
4384 Pedro Alves <palves@redhat.com>
4385
4386 * progspace-and-thread.c (switch_to_program_space_and_thread):
4387 Assert there's an inferior for PSPACE. Use
4388 switch_to_inferior_no_thread to switch the inferior too.
4389 * progspace.c (program_space::~program_space): Call
4390 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
4391 (program_space::free_all_objfiles): Don't call clear_symtab_users
4392 here.
4393 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
4394
65c574f6
PA
43952020-01-10 Pedro Alves <palves@redhat.com>
4396
4397 * NEWS: Mention multi-target debugging, "info connections", and
4398 "add-inferior -no-connection".
4399
2f4fcf00
PA
44002020-01-10 Pedro Alves <palves@redhat.com>
4401
4402 * infrun.c: Include "target-connection.h".
4403 (check_multi_target_resumption): New.
4404 (proceed): Call it.
4405 * target-connection.c (make_target_connection_string): Make
4406 extern.
4407 * target-connection.h (make_target_connection_string): Declare.
4408
121b3efd
PA
44092020-01-10 Pedro Alves <palves@redhat.com>
4410
4411 * Makefile.in (COMMON_SFILES): Add target-connection.c.
4412 * inferior.c (uiout_field_connection): New function.
4413 (print_inferior): Add new "connection-id" column.
4414 (add_inferior_command): Show connection number/string of added
4415 inferior.
4416 * process-stratum-target.h
4417 (process_stratum_target::connection_string): New virtual method.
4418 (process_stratum_target::connection_number): New field.
4419 * remote.c (remote_target::connection_string): New override.
4420 * target-connection.c: New file.
4421 * target-connection.h: New file.
4422 * target.c (decref_target): Remove process_stratum targets from
4423 the connection list.
4424 (target_stack::push): Add process_stratum targets to the
4425 connection list.
4426
4f837581
PA
44272020-01-10 Pedro Alves <palves@redhat.com>
4428
4429 Revert:
4430 2016-04-12 Pedro Alves <palves@redhat.com>
4431 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4432 Remove references to name.
4433 * serial.h (struct serial) <name>: Delete.
4434
f4ec508e
PA
44352020-01-10 Pedro Alves <palves@redhat.com>
4436
4437 * gdbarch-selftests.c (register_to_value_test): Remove "target
4438 already pushed" check.
4439
5b6d1e4f
PA
44402020-01-10 Pedro Alves <palves@redhat.com>
4441 John Baldwin <jhb@FreeBSD.org>
4442
4443 * aarch64-linux-nat.c
4444 (aarch64_linux_nat_target::thread_architecture): Adjust.
4445 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
4446 (task_command_1): Likewise.
4447 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
4448 (aix_thread_target::wait, aix_thread_target::fetch_registers)
4449 (aix_thread_target::store_registers)
4450 (aix_thread_target::thread_alive): Adjust.
4451 * amd64-fbsd-tdep.c: Include "inferior.h".
4452 (amd64fbsd_get_thread_local_address): Pass down target.
4453 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
4454 thread's gdbarch instead of target_gdbarch.
4455 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
4456 get_last_target_status.
4457 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4458 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
4459 inferiors.
4460 (update_inserted_breakpoint_locations): Skip if inferiors with no
4461 execution.
4462 (update_global_location_list): When handling moribund locations,
4463 find representative inferior for location's pspace, and use thread
4464 count of its process_stratum target.
4465 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
4466 * bsd-uthread.c (bsd_uthread_target::wait): Use
4467 as_process_stratum_target and adjust thread_change_ptid and
4468 add_thread calls.
4469 (bsd_uthread_target::update_thread_list): Use
4470 as_process_stratum_target and adjust find_thread_ptid,
4471 thread_change_ptid and add_thread calls.
4472 * btrace.c (maint_btrace_packet_history_cmd): Adjust
4473 find_thread_ptid call.
4474 * corelow.c (add_to_thread_list): Adjust add_thread call.
4475 (core_target_open): Adjust add_thread_silent and thread_count
4476 calls.
4477 (core_target::pid_to_str): Adjust find_inferior_ptid call.
4478 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
4479 * event-top.c (async_disconnect): Pop targets from all inferiors.
4480 * exec.c (add_target_sections): Push exec target on all inferiors
4481 sharing the program space.
4482 (remove_target_sections): Remove the exec target from all
4483 inferiors sharing the program space.
4484 (exec_on_vfork): New.
4485 * exec.h (exec_on_vfork): Declare.
4486 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
4487 Pass it down.
4488 (fbsd_nat_target::update_thread_list): Adjust.
4489 (fbsd_nat_target::resume): Adjust.
4490 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
4491 down.
4492 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
4493 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
4494 get_thread_arch_regcache call.
4495 * fork-child.c (gdb_startup_inferior): Pass target down to
4496 startup_inferior and set_executing.
4497 * gdbthread.h (struct process_stratum_target): Forward declare.
4498 (add_thread, add_thread_silent, add_thread_with_info)
4499 (in_thread_list): Add process_stratum_target parameter.
4500 (find_thread_ptid(inferior*, ptid_t)): New overload.
4501 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
4502 parameter.
4503 (all_threads()): Delete overload.
4504 (all_threads, all_non_exited_threads): Add process_stratum_target
4505 parameter.
4506 (all_threads_safe): Use brace initialization.
4507 (thread_count): Add process_stratum_target parameter.
4508 (set_resumed, set_running, set_stop_requested, set_executing)
4509 (threads_are_executing, finish_thread_state): Add
4510 process_stratum_target parameter.
4511 (switch_to_thread): Use is_current_thread.
4512 * i386-fbsd-tdep.c: Include "inferior.h".
4513 (i386fbsd_get_thread_local_address): Pass down target.
4514 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
4515 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
4516 have_inferiors check.
4517 * inf-ptrace.c (inf_ptrace_target::create_inferior)
4518 (inf_ptrace_target::attach): Adjust.
4519 * infcall.c (run_inferior_call): Adjust.
4520 * infcmd.c (run_command_1): Pass target to
4521 scoped_finish_thread_state.
4522 (proceed_thread_callback): Skip inferiors with no execution.
4523 (continue_command): Rename 'all_threads' local to avoid hiding
4524 'all_threads' function. Adjust get_last_target_status call.
4525 (prepare_one_step): Adjust set_running call.
4526 (signal_command): Use user_visible_resume_target. Compare thread
4527 pointers instead of inferior_ptid.
4528 (info_program_command): Adjust to pass down target.
4529 (attach_command): Mark target's 'thread_executing' flag.
4530 (stop_current_target_threads_ns): New, factored out from ...
4531 (interrupt_target_1): ... this. Switch inferior before making
4532 target calls.
4533 * inferior-iter.h
4534 (struct all_inferiors_iterator, struct all_inferiors_range)
4535 (struct all_inferiors_safe_range)
4536 (struct all_non_exited_inferiors_range): Filter on
4537 process_stratum_target too. Remove explicit.
4538 * inferior.c (inferior::inferior): Push dummy target on target
4539 stack.
4540 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
4541 Add process_stratum_target parameter, and pass it down.
4542 (have_live_inferiors): Adjust.
4543 (switch_to_inferior_and_push_target): New.
4544 (add_inferior_command, clone_inferior_command): Handle
4545 "-no-connection" parameter. Use
4546 switch_to_inferior_and_push_target.
4547 (_initialize_inferior): Mention "-no-connection" option in
4548 the help of "add-inferior" and "clone-inferior" commands.
4549 * inferior.h: Include "process-stratum-target.h".
4550 (interrupt_target_1): Use bool.
4551 (struct inferior) <push_target, unpush_target, target_is_pushed,
4552 find_target_beneath, top_target, process_target, target_at,
4553 m_stack>: New.
4554 (discard_all_inferiors): Delete.
4555 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
4556 (all_inferiors, all_non_exited_inferiors): Add
4557 process_stratum_target parameter.
4558 * infrun.c: Include "gdb_select.h" and <unordered_map>.
4559 (target_last_proc_target): New global.
4560 (follow_fork_inferior): Push target on new inferior. Pass target
4561 to add_thread_silent. Call exec_on_vfork. Handle target's
4562 reference count.
4563 (follow_fork): Adjust get_last_target_status call. Also consider
4564 target.
4565 (follow_exec): Push target on new inferior.
4566 (struct execution_control_state) <target>: New field.
4567 (user_visible_resume_target): New.
4568 (do_target_resume): Call target_async.
4569 (resume_1): Set target's threads_executing flag. Consider resume
4570 target.
4571 (commit_resume_all_targets): New.
4572 (proceed): Also consider resume target. Skip threads of inferiors
4573 with no execution. Commit resumtion in all targets.
4574 (start_remote): Pass current inferior to wait_for_inferior.
4575 (infrun_thread_stop_requested): Consider target as well. Pass
4576 thread_info pointer to clear_inline_frame_state instead of ptid.
4577 (infrun_thread_thread_exit): Consider target as well.
4578 (random_pending_event_thread): New inferior parameter. Use it.
4579 (do_target_wait): Rename to ...
4580 (do_target_wait_1): ... this. Add inferior parameter, and pass it
4581 down.
4582 (threads_are_resumed_pending_p, do_target_wait): New.
4583 (prepare_for_detach): Adjust calls.
4584 (wait_for_inferior): New inferior parameter. Handle it. Use
4585 do_target_wait_1 instead of do_target_wait.
4586 (fetch_inferior_event): Adjust. Switch to representative
4587 inferior. Pass target down.
4588 (set_last_target_status): Add process_stratum_target parameter.
4589 Save target in global.
4590 (get_last_target_status): Add process_stratum_target parameter and
4591 handle it.
4592 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
4593 (context_switch): Check inferior_ptid == null_ptid before calling
4594 inferior_thread().
4595 (get_inferior_stop_soon): Pass down target.
4596 (wait_one): Rename to ...
4597 (poll_one_curr_target): ... this.
4598 (struct wait_one_event): New.
4599 (wait_one): New.
4600 (stop_all_threads): Adjust.
4601 (handle_no_resumed, handle_inferior_event): Adjust to consider the
4602 event's target.
4603 (switch_back_to_stepped_thread): Also consider target.
4604 (print_stop_event): Update.
4605 (normal_stop): Update. Also consider the resume target.
4606 * infrun.h (wait_for_inferior): Remove declaration.
4607 (user_visible_resume_target): New declaration.
4608 (get_last_target_status, set_last_target_status): New
4609 process_stratum_target parameter.
4610 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4611 process_stratum_target parameter, and use it.
4612 (clear_inline_frame_state (thread_info*)): New.
4613 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4614 process_stratum_target parameter.
4615 (clear_inline_frame_state (thread_info*)): Declare.
4616 * linux-fork.c (delete_checkpoint_command): Pass target down to
4617 find_thread_ptid.
4618 (checkpoint_command): Adjust.
4619 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
4620 instead of just tweaking inferior_ptid.
4621 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
4622 (exit_lwp): Pass target down to find_thread_ptid.
4623 (attach_proc_task_lwp_callback): Pass target down to
4624 add_thread/set_running/set_executing.
4625 (linux_nat_target::attach): Pass target down to
4626 thread_change_ptid.
4627 (get_detach_signal): Pass target down to find_thread_ptid.
4628 Consider last target status's target.
4629 (linux_resume_one_lwp_throw, resume_lwp)
4630 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
4631 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
4632 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
4633 (linux_nat_target::async_wait_fd): New.
4634 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
4635 target down.
4636 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
4637 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
4638 * linux-thread-db.c (struct thread_db_info::process_target): New
4639 field.
4640 (add_thread_db_info): Save target.
4641 (get_thread_db_info): New process_stratum_target parameter. Also
4642 match target.
4643 (delete_thread_db_info): New process_stratum_target parameter.
4644 Also match target.
4645 (thread_from_lwp): Adjust to pass down target.
4646 (thread_db_notice_clone): Pass down target.
4647 (check_thread_db_callback): Pass down target.
4648 (try_thread_db_load_1): Always push the thread_db target.
4649 (try_thread_db_load, record_thread): Pass target down.
4650 (thread_db_target::detach): Pass target down. Always unpush the
4651 thread_db target.
4652 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
4653 target down. Always unpush the thread_db target.
4654 (find_new_threads_callback, thread_db_find_new_threads_2)
4655 (thread_db_target::update_thread_list): Pass target down.
4656 (thread_db_target::pid_to_str): Pass current inferior down.
4657 (thread_db_target::get_thread_local_address): Pass target down.
4658 (thread_db_target::resume, maintenance_check_libthread_db): Pass
4659 target down.
4660 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
4661 * procfs.c (procfs_target::procfs_init_inferior): Declare.
4662 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
4663 (procfs_init_inferior): Rename to ...
4664 (procfs_target::procfs_init_inferior): ... this and adjust.
4665 (procfs_target::create_inferior, procfs_notice_thread)
4666 (procfs_do_thread_registers): Adjust.
4667 * ppc-fbsd-tdep.c: Include "inferior.h".
4668 (ppcfbsd_get_thread_local_address): Pass down target.
4669 * proc-service.c (ps_xfer_memory): Switch current inferior and
4670 program space as well.
4671 (get_ps_regcache): Pass target down.
4672 * process-stratum-target.c
4673 (process_stratum_target::thread_address_space)
4674 (process_stratum_target::thread_architecture): Pass target down.
4675 * process-stratum-target.h
4676 (process_stratum_target::threads_executing): New field.
4677 (as_process_stratum_target): New.
4678 * ravenscar-thread.c
4679 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
4680 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
4681 down.
4682 * record-btrace.c (record_btrace_target::info_record): Adjust.
4683 (record_btrace_target::record_method)
4684 (record_btrace_target::record_is_replaying)
4685 (record_btrace_target::fetch_registers)
4686 (get_thread_current_frame_id, record_btrace_target::resume)
4687 (record_btrace_target::wait, record_btrace_target::stop): Pass
4688 target down.
4689 * record-full.c (record_full_wait_1): Switch to event thread.
4690 Pass target down.
4691 * regcache.c (regcache::regcache)
4692 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
4693 process_stratum_target parameter and handle it.
4694 (current_thread_target): New global.
4695 (get_thread_regcache): Add process_stratum_target parameter and
4696 handle it. Switch inferior before calling target method.
4697 (get_thread_regcache): Pass target down.
4698 (get_thread_regcache_for_ptid): Pass target down.
4699 (registers_changed_ptid): Add process_stratum_target parameter and
4700 handle it.
4701 (registers_changed_thread, registers_changed): Pass target down.
4702 (test_get_thread_arch_aspace_regcache): New.
4703 (current_regcache_test): Define a couple local test_target_ops
4704 instances and use them for testing.
4705 (readwrite_regcache): Pass process_stratum_target parameter.
4706 (cooked_read_test, cooked_write_test): Pass mock_target down.
4707 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
4708 (get_thread_arch_aspace_regcache): Add process_stratum_target
4709 parameter.
4710 (regcache::target): New method.
4711 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
4712 (regcache::registers_changed_ptid): Add process_stratum_target
4713 parameter.
4714 (regcache::m_target): New field.
4715 (registers_changed_ptid): Add process_stratum_target parameter.
4716 * remote.c (remote_state::supports_vCont_probed): New field.
4717 (remote_target::async_wait_fd): New method.
4718 (remote_unpush_and_throw): Add remote_target parameter.
4719 (get_current_remote_target): Adjust.
4720 (remote_target::remote_add_inferior): Push target.
4721 (remote_target::remote_add_thread)
4722 (remote_target::remote_notice_new_inferior)
4723 (get_remote_thread_info): Pass target down.
4724 (remote_target::update_thread_list): Skip threads of inferiors
4725 bound to other targets. (remote_target::close): Don't discard
4726 inferiors. (remote_target::add_current_inferior_and_thread)
4727 (remote_target::process_initial_stop_replies)
4728 (remote_target::start_remote)
4729 (remote_target::remote_serial_quit_handler): Pass down target.
4730 (remote_target::remote_unpush_target): New remote_target
4731 parameter. Unpush the target from all inferiors.
4732 (remote_target::remote_unpush_and_throw): New remote_target
4733 parameter. Pass it down.
4734 (remote_target::open_1): Check whether the current inferior has
4735 execution instead of checking whether any inferior is live. Pass
4736 target down.
4737 (remote_target::remote_detach_1): Pass down target. Use
4738 remote_unpush_target.
4739 (extended_remote_target::attach): Pass down target.
4740 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
4741 (remote_target::append_resumption): Pass down target.
4742 (remote_target::append_pending_thread_resumptions)
4743 (remote_target::remote_resume_with_hc, remote_target::resume)
4744 (remote_target::commit_resume): Pass down target.
4745 (remote_target::remote_stop_ns): Check supports_vCont_probed.
4746 (remote_target::interrupt_query)
4747 (remote_target::remove_new_fork_children)
4748 (remote_target::check_pending_events_prevent_wildcard_vcont)
4749 (remote_target::remote_parse_stop_reply)
4750 (remote_target::process_stop_reply): Pass down target.
4751 (first_remote_resumed_thread): New remote_target parameter. Pass
4752 it down.
4753 (remote_target::wait_as): Pass down target.
4754 (unpush_and_perror): New remote_target parameter. Pass it down.
4755 (remote_target::readchar, remote_target::remote_serial_write)
4756 (remote_target::getpkt_or_notif_sane_1)
4757 (remote_target::kill_new_fork_children, remote_target::kill): Pass
4758 down target.
4759 (remote_target::mourn_inferior): Pass down target. Use
4760 remote_unpush_target.
4761 (remote_target::core_of_thread)
4762 (remote_target::remote_btrace_maybe_reopen): Pass down target.
4763 (remote_target::pid_to_exec_file)
4764 (remote_target::thread_handle_to_thread_info): Pass down target.
4765 (remote_target::async_wait_fd): New.
4766 * riscv-fbsd-tdep.c: Include "inferior.h".
4767 (riscv_fbsd_get_thread_local_address): Pass down target.
4768 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
4769 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
4770 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
4771 Adjust.
4772 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
4773 * solib-svr4.c (enable_break): Pass down target.
4774 * spu-multiarch.c (parse_spufs_run): Pass down target.
4775 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
4776 * target-delegates.c: Regenerate.
4777 * target.c (g_target_stack): Delete.
4778 (current_top_target): Return the current inferior's top target.
4779 (target_has_execution_1): Refer to the passed-in inferior's top
4780 target.
4781 (target_supports_terminal_ours): Check whether the initial
4782 inferior was already created.
4783 (decref_target): New.
4784 (target_stack::push): Incref/decref the target.
4785 (push_target, push_target, unpush_target): Adjust.
4786 (target_stack::unpush): Defref target.
4787 (target_is_pushed): Return bool. Adjust to refer to the current
4788 inferior's target stack.
4789 (dispose_inferior): Delete, and inline parts ...
4790 (target_preopen): ... here. Only dispose of the current inferior.
4791 (target_detach): Hold strong target reference while detaching.
4792 Pass target down.
4793 (target_thread_name): Add assertion.
4794 (target_resume): Pass down target.
4795 (target_ops::beneath, find_target_at): Adjust to refer to the
4796 current inferior's target stack.
4797 (get_dummy_target): New.
4798 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
4799 has a thread running.
4800 (initialize_targets): Rename to ...
4801 (_initialize_target): ... this.
4802 * target.h: Include "gdbsupport/refcounted-object.h".
4803 (struct target_ops): Inherit refcounted_object.
4804 (target_ops::shortname, target_ops::longname): Make const.
4805 (target_ops::async_wait_fd): New method.
4806 (decref_target): Declare.
4807 (struct target_ops_ref_policy): New.
4808 (target_ops_ref): New typedef.
4809 (get_dummy_target): Declare function.
4810 (target_is_pushed): Return bool.
4811 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
4812 (all_matching_threads_iterator::all_matching_threads_iterator):
4813 Handle filter target.
4814 * thread-iter.h (struct all_matching_threads_iterator, struct
4815 all_matching_threads_range, class all_non_exited_threads_range):
4816 Filter by target too. Remove explicit.
4817 * thread.c (threads_executing): Delete.
4818 (inferior_thread): Pass down current inferior.
4819 (clear_thread_inferior_resources): Pass down thread pointer
4820 instead of ptid_t.
4821 (add_thread_silent, add_thread_with_info, add_thread): Add
4822 process_stratum_target parameter. Use it for thread and inferior
4823 searches.
4824 (is_current_thread): New.
4825 (thread_info::deletable): Use it.
4826 (find_thread_ptid, thread_count, in_thread_list)
4827 (thread_change_ptid, set_resumed, set_running): New
4828 process_stratum_target parameter. Pass it down.
4829 (set_executing): New process_stratum_target parameter. Pass it
4830 down. Adjust reference to 'threads_executing'.
4831 (threads_are_executing): New process_stratum_target parameter.
4832 Adjust reference to 'threads_executing'.
4833 (set_stop_requested, finish_thread_state): New
4834 process_stratum_target parameter. Pass it down.
4835 (switch_to_thread): Also match inferior.
4836 (switch_to_thread): New process_stratum_target parameter. Pass it
4837 down.
4838 (update_threads_executing): Reimplement.
4839 * top.c (quit_force): Pop targets from all inferior.
4840 (gdb_init): Don't call initialize_targets.
4841 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
4842 Declare.
4843 (windows_add_thread, windows_delete_thread): Adjust.
4844 (get_windows_debug_event): Rename to ...
4845 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
4846 * tracefile-tfile.c (tfile_target_open): Pass down target.
4847 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
4848 Forward declare.
4849 (switch_to_thread): Add process_stratum_target parameter.
4850 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
4851 parameter. Use it.
4852 (mi_on_resume): Pass target down.
4853 * nat/fork-inferior.c (startup_inferior): Add
4854 process_stratum_target parameter. Pass it down.
4855 * nat/fork-inferior.h (startup_inferior): Add
4856 process_stratum_target parameter.
4857 * python/py-threadevent.c (py_get_event_thread): Pass target down.
4858
75c6c844
PA
48592020-01-10 Pedro Alves <palves@redhat.com>
4860
4861 * remote.c (remote_target::start_remote): Don't set inferior_ptid
4862 directly. Instead find the first thread in the thread list and
4863 use switch_to_thread.
4864
78f2c40a
PA
48652020-01-10 Pedro Alves <palves@redhat.com>
4866
4867 * remote.c (remote_target::remote_add_inferior): Don't bind a
4868 process to the current inferior if the current inferior is already
4869 bound to a process.
4870
e7af6c70
TBA
48712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4872 Pedro Alves <palves@redhat.com>
4873
4874 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
4875 If no process is specified, return null_ptid instead of
4876 inferior_ptid.
4877 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
4878 TARGET_WAITKIND_SIGNALLED with no pid.
4879
31ba933e
PA
48802020-01-10 Pedro Alves <palves@redhat.com>
4881
4882 * remote.c (first_remote_resumed_thread): New.
4883 (remote_target::wait_as): Use it as default event_ptid instead of
4884 inferior_ptid.
4885
735fc2ca
PA
48862020-01-10 Pedro Alves <palves@redhat.com>
4887
4888 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
4889
c17e02e1
PA
48902020-01-10 Pedro Alves <palves@redhat.com>
4891
4892 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
4893 not -1.
4894
ab1ddbcf
PA
48952020-01-10 Pedro Alves <palves@redhat.com>
4896
4897 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
4898 ptid to get_last_target_status.
4899 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
4900 ptid to get_last_target_status.
4901 * infcmd.c (continue_command): Don't pass a target_waitstatus to
4902 get_last_target_status.
4903 (info_program_command): Don't pass a target_waitstatus to
4904 get_last_target_status.
4905 * infrun.c (init_wait_for_inferior): Use
4906 nullify_last_target_wait_ptid.
4907 (get_last_target_status): Handle nullptr arguments.
4908 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
4909 (print_stop_event): Don't pass a ptid to get_last_target_status.
4910 (normal_stop): Don't pass a ptid to get_last_target_status.
4911 * infrun.h (get_last_target_status, set_last_target_status): Move
4912 comments here and update.
4913 (nullify_last_target_wait_ptid): Declare.
4914 * linux-fork.c (fork_load_infrun_state): Remove local extern
4915 declaration of nullify_last_target_wait_ptid.
4916 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
4917 to get_last_target_status.
4918
f3f8ece4
PA
49192020-01-10 Pedro Alves <palves@redhat.com>
4920
4921 * gdbthread.h (scoped_restore_current_thread)
4922 <dont_restore, restore, m_dont_restore>: Declare.
4923 * thread.c (thread_alive): Add assertion. Return bool.
4924 (switch_to_thread_if_alive): New.
4925 (prune_threads): Switch inferior/thread.
4926 (print_thread_info_1): Switch thread before calling target methods.
4927 (scoped_restore_current_thread::restore): New, factored out from
4928 ...
4929 (scoped_restore_current_thread::~scoped_restore_current_thread):
4930 ... this.
4931 (scoped_restore_current_thread::scoped_restore_current_thread):
4932 Add assertion.
4933 (thread_apply_all_command, thread_select): Use
4934 switch_to_thread_if_alive.
4935 * infrun.c (proceed, restart_threads, handle_signal_stop)
4936 (switch_back_to_stepped_thread): Switch current thread before
4937 calling target methods.
4938
db2d40f7
PA
49392020-01-10 Pedro Alves <palves@redhat.com>
4940
4941 * inferior.c (switch_to_inferior_no_thread): New function,
4942 factored out from ...
4943 (inferior_command): ... here.
4944 * inferior.h (switch_to_inferior_no_thread): Declare.
4945 * mi/mi-main.c (run_one_inferior): Use
4946 switch_to_inferior_no_thread.
4947
bd420a2d
PA
49482020-01-10 Pedro Alves <palves@redhat.com>
4949
4950 * infcmd.c (kill_command): Remove dead code.
4951
ddf5db90
PA
49522020-01-10 Pedro Alves <palves@redhat.com>
4953
4954 * remote.c (remote_target::mourn_inferior): No longer check
4955 whether the target is running.
4956
5018ce90
PA
49572020-01-10 Pedro Alves <palves@redhat.com>
4958
4959 * corelow.c (core_target::has_execution): Change parameter type to
4960 inferior pointer.
4961 * inferior.c (number_of_live_inferiors): Use
4962 inferior::has_execution instead of target_has_execution_1.
4963 * inferior.h (inferior::has_execution): New.
4964 * linux-thread-db.c (thread_db_target::update_thread_list): Use
4965 inferior::has_execution instead of target_has_execution_1.
4966 * process-stratum-target.c
4967 (process_stratum_target::has_execution): Change parameter type to
4968 inferior pointer. Check the inferior's PID instead of
4969 inferior_ptid.
4970 * process-stratum-target.h
4971 (process_stratum_target::has_execution): Change parameter type to
4972 inferior pointer.
4973 * record-full.c (record_full_core_target::has_execution): Change
4974 parameter type to inferior pointer.
4975 * target.c (target_has_execution_1): Change parameter type to
4976 inferior pointer.
4977 (target_has_execution_current): Adjust.
4978 * target.h (target_ops::has_execution): Change parameter type to
4979 inferior pointer.
4980 (target_has_execution_1): Change parameter type to inferior
4981 pointer. Change return type to bool.
4982 * tracefile.h (tracefile_target::has_execution): Change parameter
4983 type to inferior pointer.
4984
74375d18
PA
49852020-01-10 Pedro Alves <palves@redhat.com>
4986
4987 * exceptions.c (print_flush): Remove current_top_target() check.
4988
acdf84a6
PA
49892020-01-10 Pedro Alves <palves@redhat.com>
4990
4991 * remote.c (show_remote_exec_file): Show the current inferior's
4992 exec-file instead of the command variable's value.
4993
ec506636
PA
49942020-01-10 Pedro Alves <palves@redhat.com>
4995
4996 * record-full.c (record_full_resume_ptid): New global.
4997 (record_full_target::resume): Set it.
4998 (record_full_wait_1): Use record_full_resume_ptid instead of
4999 inferior_ptid.
5000
873657b9
PA
50012020-01-10 Pedro Alves <palves@redhat.com>
5002
5003 * gdbthread.h (scoped_restore_current_thread)
5004 <dont_restore, restore, m_dont_restore>: Declare.
5005 * thread.c (thread_alive): Add assertion. Return bool.
5006 (switch_to_thread_if_alive): New.
5007 (prune_threads): Switch inferior/thread.
5008 (print_thread_info_1): Switch thread before calling target methods.
5009 (scoped_restore_current_thread::restore): New, factored out from
5010 ...
5011 (scoped_restore_current_thread::~scoped_restore_current_thread):
5012 ... this.
5013 (scoped_restore_current_thread::scoped_restore_current_thread):
5014 Add assertion.
5015 (thread_apply_all_command, thread_select): Use
5016 switch_to_thread_if_alive.
5017
7f0ae84c
GB
50182020-01-10 George Barrett <bob@bob131.so>
5019
5020 * stap-probe.c (stap_modify_semaphore): Don't check for null
5021 semaphores.
5022 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5023 for null semaphores.
5024
f5a7c406
AB
50252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5026
5027 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5028 all source windows, and maintain horizontal scroll status while
5029 doing so.
5030
9ae6bf64
TT
50312020-01-09 Tom Tromey <tom@tromey.com>
5032
5033 PR tui/18932:
5034 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5035 update_source_window, not print_source_lines.
5036
b2efe70c
AB
50372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5038
5039 * tui/tui.c (tui_enable): Register tui hooks after calling
5040 tui_display_main.
5041
5f23a082
CB
50422020-01-09 Christian Biesinger <cbiesinger@google.com>
5043
5044 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5045
3061113b
SM
50462020-01-08 Simon Marchi <simon.marchi@efficios.com>
5047
5048 * thread.c (print_thread_info_1): Fix indentation.
5049
57d75002
CB
50502020-01-09 Christian Biesinger <cbiesinger@google.com>
5051
5052 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5053 unique_xmalloc_ptr outside the if to always free the demangled name.
5054
6a053cb1
TT
50552020-01-08 Tom Tromey <tromey@adacore.com>
5056
5057 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5058 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5059 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5060 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5061 Remove.
5062 (section_offsets): New typedef.
5063 * symtab.c (fixup_section, get_msymbol_address): Update.
5064 * symmisc.c (dump_msymbols): Update.
5065 * symfile.h (relative_addr_info_to_section_offsets)
5066 (symfile_map_offsets_to_segments): Update.
5067 * symfile.c (build_section_addr_info_from_objfile)
5068 (init_objfile_sect_indices): Update.
5069 (struct place_section_arg): Change type of "offsets".
5070 (place_section): Update.
5071 (relative_addr_info_to_section_offsets): Change type of
5072 "section_offsets". Remove "num_sections" parameter.
5073 (default_symfile_offsets, syms_from_objfile_1)
5074 (set_objfile_default_section_offset): Update.
5075 (reread_symbols): No need to preserve section offsets by hand.
5076 (symfile_map_offsets_to_segments): Change type of "offsets".
5077 * stap-probe.c (relocate_address): Update.
5078 * stabsread.h (process_one_symbol): Update.
5079 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5080 (solib_target_relocate_section_addresses): Update.
5081 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5082 Update.
5083 * solib-frv.c (frv_relocate_main_executable): Update.
5084 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5085 * solib-aix.c (solib_aix_get_section_offsets): Change return
5086 type.
5087 (solib_aix_solib_create_inferior_hook): Update.
5088 * remote.c (remote_target::get_offsets): Update.
5089 * psymtab.c (find_pc_sect_psymtab): Update.
5090 * psympriv.h (struct partial_symbol) <address, text_low,
5091 text_high>: Update.
5092 * objfiles.h (obj_section_offset): Update.
5093 (struct objfile) <section_offsets>: Change type.
5094 <num_sections>: Remove.
5095 (objfile_relocate): Update.
5096 * objfiles.c (entry_point_address_query): Update
5097 (relocate_one_symbol): Change type of "section_offsets".
5098 (objfile_relocate1, objfile_relocate1): Change type of
5099 "new_offsets".
5100 (objfile_rebase1): Update.
5101 * mipsread.c (mipscoff_symfile_read): Update.
5102 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5103 parameter.
5104 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5105 (parse_external, psymtab_to_symtab_1): Update.
5106 * machoread.c (macho_symfile_offsets): Update.
5107 * ia64-tdep.c (ia64_find_unwind_table): Update.
5108 * hppa-tdep.c (read_unwind_info): Update.
5109 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5110 * dwarf2read.c (create_addrmap_from_index)
5111 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5112 (process_psymtab_comp_unit_reader, add_partial_symbol)
5113 (add_partial_subprogram, process_full_comp_unit)
5114 (read_file_scope, read_func_scope, read_lexical_block_scope)
5115 (read_call_site_scope, dwarf2_rnglists_process)
5116 (dwarf2_ranges_process, dwarf2_ranges_read)
5117 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5118 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5119 Update.
5120 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5121 Update.
5122 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5123 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5124 (process_one_symbol): Change type of "section_offsets".
5125 * ctfread.c (get_objfile_text_range): Update.
5126 * coffread.c (coff_symtab_read, enter_linenos)
5127 (process_coff_symbol): Update.
5128 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5129 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5130
456e800a
TT
51312020-01-08 Tom Tromey <tromey@adacore.com>
5132
5133 * dwarf2read.c (parse_macro_definition): Use std::string.
5134 (parse_macro_definition): Likewise.
5135
6dfa2fc2
TT
51362020-01-08 Tom Tromey <tromey@adacore.com>
5137
5138 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5139 (ATTR_ALLOC_CHUNK): Remove.
5140
421d1616
TT
51412020-01-08 Tom Tromey <tromey@adacore.com>
5142
5143 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5144
43816ebc
TT
51452020-01-08 Tom Tromey <tromey@adacore.com>
5146
5147 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5148 (dwarf2_compute_name, open_dwo_file): Likewise.
5149 (process_enumeration_scope): Use std::vector.
5150 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5151 (partial_die_info::fixup, dwarf2_start_subfile)
5152 (guess_full_die_structure_name, dwarf2_name): Likewise.
5153 (determine_prefix): Update.
5154 (guess_full_die_structure_name): Make return type const.
5155 (partial_die_full_name): Return unique_xmalloc_ptr.
5156 (DW_FIELD_ALLOC_CHUNK): Remove.
5157
4212d509
TT
51582020-01-07 Tom Tromey <tromey@adacore.com>
5159
5160 PR build/24937:
5161 * stap-probe.c (class stap_static_probe_ops): Add constructor.
5162
06a6207a
JT
51632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5164
5165 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
5166
153d79c4
AB
51672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * stack.c (print_frame_info): Move disassemble_next_line code
5170 inside source_print block.
5171
66182876
EZ
51722020-01-06 Eli Zaretskii <eliz@gnu.org>
5173
5174 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
5175 gdb/signals.h, as we are now using native signal symbols.
5176
cbfa8581
SV
51772020-01-06 Shahab Vahedi <shahab@synopsys.com>
5178
5179 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5180 overflow by an early check of content vs threshold.
5181 * tui/tui-source.c (tui_source_window::line_is_displayed):
5182 Likewise.
5183
3f602821
EZ
51842020-01-06 Eli Zaretskii <eliz@gnu.org>
5185
5186 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5187
a08c904d
JT
51882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5189
5190 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5191 export table if no section contains it's RVA.
5192
89a65580
EZ
51932020-01-06 Eli Zaretskii <eliz@gnu.org>
5194
5195 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5196
8b7fcda2
HD
51972020-01-06 Hannes Domani <ssbssa@yahoo.de>
5198
5199 * source.c (print_source_lines_base): Set last_line_listed.
5200
a61b4f69
SV
52012020-01-06 Shahab Vahedi <shahab@synopsys.com>
5202
5203 * tui/tui-disasm.c: Remove trailing spaces.
5204
559e7e50
EZ
52052020-01-06 Eli Zaretskii <eliz@gnu.org>
5206 Pedro Alves <palves@redhat.com>
5207
5208 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5209 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5210 (windows_gdb_signal_to_target): New function, uses the above
5211 enumeration to convert GDB internal signal codes to equivalent
5212 Windows codes.
5213 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5214 * windows-nat.c: Include "gdb_wait.h".
5215 (get_windows_debug_event): Extract the fatal exception from the
5216 exit status and convert to the equivalent Posix signal number.
5217 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5218 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5219 * gdbsupport/gdb_wait.c: New file, implements
5220 windows_status_to_termsig.
5221 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5222 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5223
f2302a34
AB
52242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
5225
5226 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5227 show_layout.
5228
6a5206eb
LM
52292020-01-05 Luis Machado <luis.machado@linaro.org>
5230
5231 * aarch64-linux-nat.c
5232 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5233 and bfd_mach_aarch64.
5234
6ec1d75e
PW
52352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * ui-file.c (stdio_file::can_emit_style_escape)
5238 (tee_file::can_emit_style_escape): Ensure style is used also on
5239 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
5240 to gdb_stdout.
5241 * main.c (set_gdb_data_directory): Use file style to output the
5242 warning that the given pathname is not a directory.
5243 * top.c (show_history_filename, gdb_safe_append_history)
5244 (show_gdb_datadir): Use file style.
5245
44f81a76
HD
52462020-01-03 Hannes Domani <ssbssa@yahoo.de>
5247
5248 * solib-target.c (struct lm_info_target):
5249 Change offsets to be a unique_xmalloc_ptr.
5250 (solib_target_relocate_section_addresses): Update.
5251
25057eb0
HD
52522020-01-03 Hannes Domani <ssbssa@yahoo.de>
5253
5254 * windows-nat.c (windows_clear_solib): Free so_list linked list.
5255
6e2118f5
BE
52562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5257
5258 * MAINTAINERS (Write After Approval): Add myself.
5259
8133c7dc
LM
52602020-01-02 Luis Machado <luis.machado@linaro.org>
5261
5262 * proc-service.c (get_ps_regcache): Remove reference to obsolete
5263 Cell BE architecture.
5264 * target.h (struct target_ops) <thread_architecture>: Likewise.
5265
48189bec
HD
52662020-01-01 Hannes Domani <ssbssa@yahoo.de>
5267
5268 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5269
ead1063b
HD
52702020-01-01 Hannes Domani <ssbssa@yahoo.de>
5271
5272 * MAINTAINERS (Write After Approval): Add myself.
5273
e5d78223
JB
52742020-01-01 Joel Brobecker <brobecker@adacore.com>
5275
5276 * gdbarch.sh: Update copyright year range of generated files.
5277
b811d2c2
JB
52782020-01-01 Joel Brobecker <brobecker@adacore.com>
5279
5280 Update copyright year range in all GDB files.
5281
5f4def5c
JB
52822020-01-01 Joel Brobecker <brobecker@adacore.com>
5283
5284 * copyright.py: Convert to Python 3.
5285
51fd4002
JB
52862020-01-01 Joel Brobecker <brobecker@adacore.com>
5287
5288 * copyright.py: Adapt after move of gnulib directory from gdb
5289 directory to toplevel directory.
5290
5fb651f2
JB
52912020-01-01 Joel Brobecker <brobecker@adacore.com>
5292
5293 * copyright.py (main): Exit if run from the wrong directory.
5294
5dd8bf88
JB
52952020-01-01 Joel Brobecker <brobecker@adacore.com>
5296
5297 * top.c (print_gdb_version): Change copyright year to 2020.
5298
9f71dacb 52992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 5300
9f71dacb 5301 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 5302
9f71dacb 5303For older changes see ChangeLog-2019.
c906108c
SS
5304\f
5305Local Variables:
5306mode: change-log
5307left-margin: 8
5308fill-column: 74
5309version-control: never
57da7796 5310coding: utf-8
c906108c 5311End:
This page took 2.518731 seconds and 4 git commands to generate.