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