Commit | Line | Data |
---|---|---|
20ce4123 SM |
1 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
2 | ||
3 | * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with | |
4 | type::has_no_signedness. | |
5 | ||
15152a54 SM |
6 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
7 | ||
8 | * gdbtypes.h (struct type) <has_no_signedness, | |
9 | set_has_no_signedness>: New methods. | |
10 | (TYPE_NOSIGN): Use type::has_no_signedness, change all write | |
11 | call sites to use type::set_has_no_signedness. | |
12 | ||
c6d940a9 SM |
13 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
14 | ||
15 | * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with | |
16 | type::is_unsigned. | |
17 | ||
653223d3 SM |
18 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
19 | ||
20 | * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New | |
21 | methods. | |
22 | (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call | |
23 | sites to use type::set_is_unsigned. | |
24 | ||
55ea94da FH |
25 | 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com> |
26 | Adam Renquinha <arenquinha@cimeq.qc.ca> | |
27 | ||
28 | * arm-tdep.c (arm_m_exception_cache): Try use correct stack | |
29 | pointer and stack frame offset when unwinding. | |
30 | ||
6791b117 PA |
31 | 2020-09-13 Pedro Alves <pedro@palves.net> |
32 | ||
33 | * NEWS: Document "-break-insert --qualified". | |
34 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified". | |
35 | ||
77f2120b PA |
36 | 2020-09-13 Pedro Alves <pedro@palves.net> |
37 | ||
38 | * linespec.c (classify_mtype, compare_msyms): Delete. | |
39 | (search_minsyms_for_name): Remove classification logic. Instead | |
40 | filter out trampoline symbols if we also found an external | |
41 | function of the same name. | |
42 | ||
ed6a896c JB |
43 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
44 | ||
45 | * NEWS: Create a new section for the next release branch. | |
46 | Rename the section of the current branch, now that it has | |
47 | been cut. | |
48 | ||
32aea73e JB |
49 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
50 | ||
51 | GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59): | |
52 | * version.in: Bump version to 11.0.50.DATE-git. | |
53 | ||
8087c3fa JB |
54 | 2020-09-12 Joel Brobecker <brobecker@adacore.com> |
55 | ||
56 | * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST. | |
57 | ||
2a67f09d FW |
58 | 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com> |
59 | Felix Willgerodt <Felix.Willgerodt@intel.com> | |
60 | ||
61 | * gdbarch.sh: Added bfloat16 type. | |
62 | * gdbarch.c: Regenerated. | |
63 | * gdbarch.h: Regenerated. | |
64 | * gdbtypes.c (floatformats_bfloat16): New struct. | |
65 | (gdbtypes_post_init): Add builtin_bfloat16. | |
66 | * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member. | |
67 | (floatformats_bfloat16): New struct. | |
68 | * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16" | |
69 | (i386_ymm_type): Add field "v16_bfloat16" | |
70 | (i386_gdbarch_init): Add set_gdbarch_bfloat16_format. | |
71 | * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16. | |
72 | * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16. | |
73 | * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16. | |
74 | * features/i386/64bit-avx512.xml: Add bfloat16 type. | |
75 | * features/i386/64bit-avx512.c: Regenerated. | |
76 | * features/i386/64bit-sse.xml: Add bfloat16 type. | |
77 | * features/i386/64bit-sse.c: Regenerated. | |
78 | ||
1347d111 FW |
79 | 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com> |
80 | ||
81 | * i386-tdep.c (i386_zmm_type): Fix field names. | |
82 | (i386_ymm_type): Fix field names. | |
83 | ||
7a4e8e7d TBA |
84 | 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
85 | ||
86 | * breakpoint.c: Fix typo in the help message of the | |
87 | "set breakpoint condition-evaluation" command. | |
88 | ||
cf4ac4be KR |
89 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
90 | ||
91 | * nbsd-nat.c: Include "nat/netbsd-nat.h". | |
92 | * (nbsd_nat_target::pid_to_exec_file) | |
93 | (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name) | |
94 | (nbsd_nat_target::post_startup_inferior) | |
95 | (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial) | |
96 | (nbsd_add_threads): Switch local code to common gdb/nat functions. | |
97 | * (nbsd_pid_to_cmdline): Call sysctl from the global namespace. | |
98 | * (nbsd_thread_lister): Remove. | |
99 | ||
f404573e KR |
100 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
101 | ||
102 | * fork-inferior.c (startup_inferior): Avoid double free. | |
103 | ||
1ccb2c17 KR |
104 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
105 | ||
106 | * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add. | |
107 | * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise. | |
108 | ||
feedfcc7 KR |
109 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
110 | ||
111 | * netbsd-nat.h (netbsd_nat::enable_proc_events): Add. | |
112 | * netbsd-nat.c: Include <sys/ptrace.h>. | |
113 | * (netbsd_nat::enable_proc_events): Add. | |
114 | ||
c489f8c6 KR |
115 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
116 | ||
117 | * netbsd-nat.h: Include "gdbsupport/function-view.h". | |
118 | * (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
119 | (netbsd_nat::for_each_thread): Add. | |
120 | * netbsd-nat.c: Include "gdbsupport/common-defs.h" and | |
121 | "gdbsupport/common-debug.h". | |
122 | * (netbsd_nat::netbsd_thread_lister) | |
123 | (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
124 | (netbsd_nat::for_each_thread): Add. | |
125 | ||
330662f6 KR |
126 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
127 | ||
128 | * netbsd-nat.h: Include <unistd.h>. | |
129 | * (netbsd_nat::pid_to_exec_file): Add. | |
130 | * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>. | |
131 | * (netbsd_nat::pid_to_exec_file) Add. | |
132 | ||
70b67307 KR |
133 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
134 | ||
135 | * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed. | |
136 | ||
99cf6da6 KR |
137 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
138 | ||
139 | * netbsd-nat.h: New file. | |
140 | * netbsd-nat.c: Likewise. | |
141 | ||
1b788fb6 TT |
142 | 2020-09-09 Tom Tromey <tromey@adacore.com> |
143 | ||
144 | * ada-lang.c (remove_extra_symbols): Do not increment when | |
145 | removing an element | |
146 | ||
03b0a45f TT |
147 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
148 | ||
149 | * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails. | |
150 | ||
3cae4447 TT |
151 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
152 | ||
153 | PR win32/25302: | |
154 | * gdb_bfd.c (gdb_bfd_data): Add "st" parameter. | |
155 | (gdb_bfd_init_data): New function. | |
156 | (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data. | |
157 | ||
7f08fd51 TBA |
158 | 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
159 | ||
160 | * infrun.c (fetch_inferior_event): Use | |
161 | `switch_to_target_no_thread` to switch the target. | |
162 | ||
3e6ff933 TT |
163 | 2020-09-06 Tom Tromey <tom@tromey.com> |
164 | ||
165 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
166 | ||
e56798df AKS |
167 | 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
168 | ||
169 | * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions | |
170 | to match 16 byte real/complex type generated by Flang compiler. | |
171 | ||
8f5c6526 TV |
172 | 2020-09-03 Tom de Vries <tdevries@suse.de> |
173 | ||
174 | PR breakpoint/26546 | |
175 | * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as | |
176 | LOC_OPTIMIZED_OUT instead of LOC_LABEL. | |
177 | ||
c5065df0 SM |
178 | 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca> |
179 | ||
180 | * maint.c (index_digits): New function. | |
181 | (struct maint_print_section_data): Remove. | |
182 | (print_bfd_section_info): Remove print_data parameter, add arg | |
183 | and index_digits. | |
184 | (print_objfile_section_info): Likewise. | |
185 | (print_bfd_section_info_maybe_relocated): Likewise (plus | |
186 | objfile). | |
187 | (maintenance_info_sections): Adjust calls. | |
188 | ||
02c6f3f1 TT |
189 | 2020-09-02 Tom Tromey <tromey@adacore.com> |
190 | ||
191 | * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0 | |
192 | for null pointers. | |
193 | (ada_varobj_adjust_for_child_access): Special-case null pointers. | |
194 | ||
ef5e5b0b SM |
195 | 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca> |
196 | ||
197 | * bcache.h (struct bcache) <insert>: Change type of `added` to | |
198 | pointer to bool. | |
199 | * bcache.c (bcache::insert): Likewise. | |
200 | * gdbtypes.c (check_types_worklist): Adjust. | |
201 | * psymtab.c (add_psymbol_to_bcache): Adjust. | |
202 | ||
973695d6 KB |
203 | 2020-08-31 Kevin Buettner <kevinb@redhat.com> |
204 | ||
205 | * corelow.c (unordered_set): Include. | |
206 | (class core_target): Add field 'm_core_unavailable_mappings'. | |
207 | (core_target::build_file_mappings): Print only one warning | |
208 | per inaccessible file. Add unavailable/broken mappings | |
209 | to m_core_unavailable_mappings. | |
210 | (core_target::xfer_partial): Call... | |
211 | (core_target::xfer_memory_via_mappings): New method. | |
212 | ||
264fc0e2 SM |
213 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
214 | ||
215 | * dwarf2/read.c (struct field_info) <non_public_fields>: Change | |
216 | type to bool. | |
217 | ||
2de01bdb SM |
218 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
219 | ||
220 | * dwarf2/read.c (struct field_info): Fix indentation. | |
221 | ||
f3bd50f1 SM |
222 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
223 | ||
224 | * frame-unwind.h (frame_prev_register_ftype): Fix adjective | |
225 | ordering in comment. | |
226 | * frame.c (frame_id_eq): Fix indentation. | |
227 | ||
22b9b4b0 SL |
228 | 2020-08-31 Scott Linder <scott@scottlinder.com> |
229 | Simon Marchi <simon.marchi@efficios.com> | |
230 | ||
231 | * inline-frame.c (inline_frame_this_id): Remove assert that prevents | |
232 | inline frame ids in outer frame. | |
233 | ||
84154d16 SM |
234 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
235 | ||
236 | * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New. | |
237 | * frame.c (fprint_frame_id): Handle FID_STACK_OUTER. | |
238 | (outer_frame_id): Use FID_STACK_OUTER instead of | |
239 | FID_STACK_INVALID. | |
240 | (frame_id_p): Don't check for outer_frame_id. | |
241 | ||
8efaf6b3 SM |
242 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
243 | ||
244 | * frame-unwind.c (frame_unwind_got_optimized): Don't set | |
245 | regnum/frame in value. Call allocate_value_lazy. | |
246 | * frame.c (frame_unwind_register_value): Use | |
247 | val_print_not_saved. | |
248 | ||
fe1fe7ea SM |
249 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
250 | ||
251 | * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr. | |
252 | ||
f7c7700d PA |
253 | 2020-08-29 Pedro Alves <pedro@palves.net> |
254 | ||
255 | * progspace.c (print_program_space): Use all_inferiors. Switch to | |
256 | the inferior before calling target_pid_to_str. | |
257 | ||
e0814aae TT |
258 | 2020-08-28 Tom Tromey <tom@tromey.com> |
259 | ||
260 | * xcoffread.c (xcoff_end_psymtab): Update comment. | |
261 | * dbxread.c (dbx_end_psymtab): Update comment. | |
262 | ||
626d2320 TV |
263 | 2020-08-28 Tom de Vries <tdevries@suse.de> |
264 | ||
265 | PR breakpoint/26544 | |
266 | * breakpoint.c (parse_breakpoint_sals): Remove const from struct | |
267 | event_location. | |
268 | (create_breakpoint): Same. | |
269 | (base_breakpoint_decode_location): Same. | |
270 | (bkpt_create_sals_from_location): Same. | |
271 | (bkpt_decode_location): Same. | |
272 | (bkpt_probe_create_sals_from_location): Same. | |
273 | (bkpt_probe_decode_location): Same. | |
274 | (tracepoint_create_sals_from_location): Same. | |
275 | (tracepoint_decode_location): Same. | |
276 | (tracepoint_probe_decode_location): Same. | |
277 | (strace_marker_create_sals_from_location): Same. | |
278 | (strace_marker_decode_location): Same. | |
279 | (create_sals_from_location_default): Same. | |
280 | (decode_location_default): Same. | |
281 | * breakpoint.h (struct breakpoint_ops): Same. | |
282 | (create_breakpoint): Same. | |
283 | * linespec.h (decode_line_full): Same. | |
284 | * linespec.c (decode_line_full): Same. Throw error if | |
285 | result.size () == 0. | |
286 | ||
df631783 PA |
287 | 2020-08-27 Pedro Alves <pedro@palves.net> |
288 | ||
289 | PR gdb/26524 | |
290 | * breakpoint.c (until_break_fsm) <location_breakpoint, | |
291 | caller_breakpoint>: Delete fields. | |
292 | <breakpoints>: New field. | |
293 | <until_break_fsm>: Adjust to save a breakpoint vector instead of | |
294 | two individual breakpoints. | |
295 | (until_break_fsm::should_stop): Loop over breakpoints in the | |
296 | breakpoint vector. | |
297 | (until_break_fsm::clean_up): Adjust to clear the breakpoints | |
298 | vector. | |
299 | (until_break_command): Handle location expanding into multiple | |
300 | sals. | |
301 | ||
b2b38aa4 PA |
302 | 2020-08-27 Pedro Alves <pedro@palves.net> |
303 | ||
304 | PR gdb/26523 | |
305 | * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider | |
306 | bp_until breakpoints user-specified locations. Update intro | |
307 | comment. | |
308 | ||
b886559f SM |
309 | 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca> |
310 | ||
311 | * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range, | |
312 | gdb_bfd_sections): New. | |
313 | * maint.c (print_bfd_section_info): Change param type to | |
314 | maint_print_section_data. | |
315 | (print_objfile_section_info): Likewise. | |
316 | (print_bfd_section_info_maybe_relocated): Likewise. | |
317 | (maintenance_info_sections): Use gdb_bfd_sections. | |
318 | ||
4c6e63bf SV |
319 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
320 | ||
321 | * MAINTAINERS: Add ARC target and maintainer. | |
322 | ||
8d7f0635 AK |
323 | 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com> |
324 | ||
325 | * configure.tgt: ARC support for GNU/Linux. | |
326 | * Makefile.in (ALL_TARGET_OBJS): Likewise. | |
327 | * arc-linux-tdep.c: New file. | |
328 | * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare. | |
329 | * arc-tdep.c (arc_write_pc): Use it. | |
330 | ||
fdd8731b SV |
331 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
332 | ||
333 | * arc-tdep.c (arc_check_for_hardware_loop): New. | |
334 | * arc-tdep.h (gdbarch_tdep): New field has_hw_loops. | |
335 | ||
22459524 SV |
336 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
337 | ||
338 | * arc-tdep.h: Include "gdbarch.h". | |
339 | ||
995d3a19 SV |
340 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
341 | ||
342 | * arch/arc.h | |
343 | (arc_gdbarch_features): New class to stir the selection of target XML. | |
344 | (arc_create_target_description): Use FEATURES to choose XML target. | |
345 | (arc_lookup_target_description): Use arc_create_target_description | |
346 | to create _new_ target descriptions or return the already created | |
347 | ones if the FEATURES is the same. | |
348 | * arch/arc.c: Implementation of prototypes described above. | |
349 | * gdb/arc-tdep.h (arc_regnum enum): Add more registers. | |
350 | (arc_gdbarch_features_init): Initialize the FEATURES struct. | |
351 | * arc-tdep.c (*_feature_name): Make feature names consistent. | |
352 | (arc_register_feature): A new struct to hold information about | |
353 | registers of a particular target/feature. | |
354 | (arc_check_tdesc_feature): Check if XML provides registers in | |
355 | compliance with ARC_REGISTER_FEATURE structs. | |
356 | (arc_update_acc_reg_names): Add aliases for r58 and r59. | |
357 | (determine_*_reg_feature_set): Which feature name to look for. | |
358 | (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES. | |
359 | (mach_type_to_arc_isa): Convert from a set of binutils machine types | |
360 | to expected ISA enums to be used in arc_gdbarch_features structs. | |
361 | * features/Makefile (FEATURE_XMLFILES): Add new files. | |
362 | * gdb/features/arc/v1-aux.c: New file. | |
363 | * gdb/features/arc/v1-aux.xml: Likewise. | |
364 | * gdb/features/arc/v1-core.c: Likewise. | |
365 | * gdb/features/arc/v1-core.xml: Likewise. | |
366 | * gdb/features/arc/v2-aux.c: Likewise. | |
367 | * gdb/features/arc/v2-aux.xml: Likewise. | |
368 | * gdb/features/arc/v2-core.c: Likewise. | |
369 | * gdb/features/arc/v2-core.xml: Likewise. | |
370 | * NEWS (Changes since GDB 9): Announce obsolence of old feature names. | |
371 | ||
3945d2d7 GM |
372 | 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com> |
373 | Andrew Burgess <andrew.burgess@embecosm.com> | |
374 | ||
375 | PR m2/26372 | |
fc5d6901 | 376 | * m2-exp.y (exp): Improve comment for non_empty_arglist case, add |
3945d2d7 GM |
377 | an assert. Remove single element array indexing pattern as the |
378 | MULTI_SUBSCRIPT support will handle this case too. | |
379 | ||
2677f2d3 SM |
380 | 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca> |
381 | ||
382 | * value.h (valprint_check_validity): Move declaration from | |
383 | here... | |
384 | * valprint.h (valprint_check_validity): ... to here. | |
385 | ||
c426fddb SM |
386 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
387 | ||
388 | * debug.h: New file. | |
389 | * debug.c (debug_prefixed_vprintf): New function. | |
390 | * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf. | |
391 | * linux-nat.c (linux_nat_debug_printf_1): Likewise. | |
392 | ||
1eb8556f SM |
393 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
394 | ||
395 | * infrun.h (infrun_debug_printf_1): New function declaration. | |
396 | (infrun_debug_printf): New macro. | |
397 | * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf | |
398 | throughout. | |
399 | (infrun_debug_printf): New function. | |
400 | * breakpoint.c (should_be_inserted): Use infrun_debug_printf. | |
401 | (handle_jit_event): Likewise. | |
402 | ||
b8fff44e MW |
403 | 2020-08-21 Mark Wielaard <mark@klomp.org> |
404 | ||
405 | * ada-lex.l: Extend register warnings diagnostics comment for g++. | |
406 | ||
d19c3068 SM |
407 | 2020-08-22 Simon Marchi <simon.marchi@efficios.com> |
408 | ||
409 | * frame.c (enum class frame_id_status): New. | |
410 | (struct frame_info) <this_id::p>: Change type to frame_id_status. | |
411 | (fprintf_frame): Update. | |
412 | (compute_frame_id): Set frame id status to "computing" on entry. | |
413 | Set it back to "not_computed" on failure and to "computed" on | |
414 | success. | |
415 | (get_frame_id): Assert the frame id is not being computed. | |
416 | (create_sentinel_frame): Use frame_id_status::COMPUTED. | |
417 | (create_new_frame): Likewise. | |
418 | (frame_cleanup_after_sniffer): Update assert. | |
419 | ||
b70e516e SM |
420 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
421 | ||
422 | * regcache.c (pid_ptid_regcache_map): New type. | |
423 | (target_ptid_regcache_map): Remove. | |
424 | (target_pid_ptid_regcache_map): New type. | |
425 | (regcaches): Change type to target_pid_ptid_regcache_map. | |
426 | (get_thread_arch_aspace_regcache): Update. | |
427 | (regcache_thread_ptid_changed): Update, handle pid-like ptid | |
428 | case. | |
429 | (regcaches_size): Update. | |
430 | (regcache_count): Update. | |
431 | (registers_changed_ptid_target_pid_test): New. | |
432 | (_initialize_regcache): Register new test. | |
433 | ||
cdd9148a SM |
434 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
435 | ||
436 | * regcache.c (regcache_count): New. | |
437 | (struct regcache_test_data): New. | |
438 | (regcache_test_data_up): New. | |
439 | (populate_regcaches_for_test): New. | |
440 | (regcaches_test): Remove. | |
441 | (get_thread_arch_aspace_regcache_test): New. | |
442 | (registers_changed_ptid_all_test): New. | |
443 | (registers_changed_ptid_target_test): New. | |
444 | (registers_changed_ptid_target_ptid_test): New. | |
445 | (regcache_thread_ptid_changed): Remove regcache_count lambda. | |
446 | (_initialize_regcache): Register new tests. | |
447 | ||
dd125343 SM |
448 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
449 | ||
450 | * regcache.c (test_get_thread_arch_aspace_regcache): Rename to... | |
451 | (get_thread_arch_aspace_regcache_and_check): ... this. Remove | |
452 | gdbarch and aspace parameter. Use current inferior's aspace. | |
453 | Validate regcache's arch value. | |
454 | (regcaches_test): Update. | |
455 | ||
3ee93972 SM |
456 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
457 | ||
458 | * regcache.c (regcaches_test): Call registers_changed. | |
459 | ||
33bf4c5c TBA |
460 | 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
461 | ||
462 | * infrun.c (process_event_stop_test): Fix typo "breapoint". | |
463 | ||
c2fd7fae AKS |
464 | 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
465 | ||
466 | * amd64-tdep.c (amd64_skip_prologue): Using symbol table | |
467 | to find the end of prologue for flang compiled binaries. | |
468 | * arm-tdep.c (arm_skip_prologue): Likewise. | |
469 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
470 | * producer.c (producer_is_llvm): New function. | |
471 | (producer_parsing_tests): Added new tests for clang/flang. | |
472 | * producer.h (producer_is_llvm): New declaration. | |
473 | ||
9327494e SM |
474 | 2020-08-18 Simon Marchi <simon.marchi@efficios.com> |
475 | ||
476 | * linux-nat.c (linux_nat_debug_printf): New function. | |
477 | (linux_nat_debug_printf_1): New macro. Use throughout the file. | |
478 | ||
d138725a AM |
479 | 2020-08-18 Aaron Merey <amerey@redhat.com> |
480 | ||
481 | * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables. | |
482 | (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS. | |
483 | (CLIBS): Add DEBUGINFOD_LIBS. | |
484 | ||
f9b11e6b ST |
485 | 2020-08-17 Sergei Trofimovich <siarheit@google.com> |
486 | ||
487 | * ia64-linux-nat.c: Include "gdbarch.h" to declare used | |
488 | 'gdbarch_num_regs'. | |
489 | ||
3ae7ab99 TT |
490 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
491 | ||
492 | * ada-varobj.c (ada_varobj_decode_var): Handle case where | |
493 | ada_get_decoded_value returns NULL. | |
494 | ||
b017825f TT |
495 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
496 | ||
497 | * python/py-inferior.c (infpy_search_memory): Use | |
498 | gdb_py_object_from_ulongest. | |
499 | * python/py-infevents.c (create_inferior_call_event_object) | |
500 | (create_memory_changed_event_object): Use | |
501 | gdb_py_object_from_ulongest. | |
502 | * python/py-linetable.c (ltpy_entry_get_pc): Use | |
503 | gdb_py_object_from_ulongest. | |
504 | ||
7635cf79 SM |
505 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
506 | ||
507 | * loc.c (class symbol_needs_eval_context): Fix indentation. | |
508 | ||
f54be24b SM |
509 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
510 | ||
511 | * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
512 | bool. | |
513 | ||
53d5a2a5 TV |
514 | 2020-08-17 Tom de Vries <tdevries@suse.de> |
515 | ||
516 | PR gdb/26393 | |
517 | * gdbtypes.c (dump_dynamic_prop): New function. | |
518 | (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE. | |
519 | ||
547ce8f0 TV |
520 | 2020-08-15 Tom de Vries <tdevries@suse.de> |
521 | ||
522 | PR backtrace/26390 | |
523 | * stack.c (print_frame_args): Temporarily set the selected | |
524 | frame to FRAME while printing the frame's arguments. | |
525 | ||
6ea815e7 PFC |
526 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
527 | ||
528 | PR breakpoints/26385 | |
529 | * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume): | |
530 | Always clear watchpoint with PTRACE_SET_DEBUGREG. | |
531 | ||
6e562fa3 PFC |
532 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
533 | ||
534 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
535 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
536 | and >= to check return value instead of == -1 and != -1. | |
537 | ||
d369b608 SM |
538 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> |
539 | ||
540 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
541 | * utils.c (gdb_argv_as_array_view_test): New. | |
542 | (_initialize_utils): Register selftest. | |
543 | * maint.c (maintenance_selftest): Use the new method. | |
544 | ||
b31488a3 KR |
545 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> |
546 | ||
547 | * target.h (supports_dumpcore, dumpcore): New | |
548 | function declarations. | |
549 | * target.c (supports_dumpcore, dumpcore): New | |
550 | functions. | |
551 | * target-delegates.c: Rebuild. | |
552 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
553 | and target_dumpcore (). | |
554 | ||
002a3166 AM |
555 | 2020-08-13 Aaron Merey <amerey@redhat.com> |
556 | ||
557 | * debuginfod-support.c: Replace global variables with user_data. | |
558 | ||
ece5bc8a SM |
559 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> |
560 | ||
561 | * maint.c (maintenance_selftest): Split args and pass array_view | |
562 | to run_tests. | |
563 | ||
6d8a0a5e LM |
564 | 2020-08-12 Luis Machado <luis.machado@linaro.org> |
565 | ||
566 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
567 | type's length. | |
568 | Use %s and pulongest to print the length. | |
569 | ||
7cf663a9 PA |
570 | 2020-08-12 Pedro Alves <palves@redhat.com> |
571 | ||
572 | * NEWS: Move "Multi-target debugging support" item to the | |
573 | "Changes since GDB 9" section. | |
574 | ||
27c7b875 PA |
575 | 2020-08-12 Pedro Alves <palves@redhat.com> |
576 | ||
577 | PR gdb/26336 | |
578 | * progspace.c (program_space::remove_objfile): Invalidate the | |
579 | frame cache. | |
580 | ||
1796a2a1 TV |
581 | 2020-08-11 Tom de Vries <tdevries@suse.de> |
582 | ||
583 | * MAINTAINERS: Mark ms1 as deleted. | |
584 | ||
f8e3fe0d LM |
585 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
586 | ||
587 | PR gdb/26310 | |
588 | ||
589 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
590 | act accordingly. | |
591 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
592 | movz/str/stur/stp skipping behavior. | |
593 | ||
cc308722 LM |
594 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
595 | ||
596 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
597 | struct user_sve_header instead of struct sve_context. | |
598 | ||
041d9819 SM |
599 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> |
600 | ||
601 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
602 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
603 | `void *` parameter with function_view. | |
604 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
605 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
606 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
607 | (per_cu_dwarf_call): Adjust. | |
608 | (get_frame_address_in_block_wrapper): Remove. | |
609 | (indirect_synthetic_pointer): Adjust. | |
610 | (get_ax_pc): Remove. | |
611 | (dwarf2_compile_expr_to_ax): Adjust. | |
612 | ||
38f8aa06 TV |
613 | 2020-08-08 Tom de Vries <tdevries@suse.de> |
614 | ||
615 | PR build/26344 | |
616 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
617 | constructor. | |
618 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
619 | ||
a52b3ae2 TT |
620 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
621 | ||
622 | * ravenscar-thread.c | |
623 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
624 | New method. | |
625 | (ravenscar_thread_target::wait): Check | |
626 | runtime_initialized. | |
627 | (ravenscar_thread_target::prepare_to_store) | |
628 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
629 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
630 | (ravenscar_thread_target::stopped_by_watchpoint) | |
631 | (ravenscar_thread_target::stopped_data_address) | |
632 | (ravenscar_thread_target::core_of_thread): Use | |
633 | scoped_restore_current_thread and | |
634 | set_base_thread_from_ravenscar_task. | |
635 | ||
0e29517d TT |
636 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
637 | ||
638 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
639 | ||
592f9bd7 TT |
640 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
641 | ||
642 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
643 | update_inferior_ptid before update_thread_list. | |
644 | (temporarily_change_regcache_ptid): New class. | |
645 | (ravenscar_thread_target::fetch_registers) | |
646 | (ravenscar_thread_target::store_registers) | |
647 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
648 | forwarding operation. | |
649 | ||
39e2018a TT |
650 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
651 | ||
652 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
653 | "is_pid" case. | |
654 | ||
2080266b TT |
655 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
656 | ||
657 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
658 | New methods. | |
659 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
660 | first. | |
661 | (ravenscar_thread_target::add_thread): Rename from | |
662 | ravenscar_add_thread. | |
663 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
664 | (ravenscar_thread_target::xfer_partial): New method. | |
665 | ||
78c02f21 TT |
666 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
667 | ||
668 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
669 | gdb::function_view. | |
670 | (iterate_over_live_ada_tasks): Change type of argument. | |
671 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
672 | of argument. | |
673 | ||
d5d833af TT |
674 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
675 | ||
676 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
677 | Remove. | |
678 | (ravenscar_thread_target::extra_thread_info): Remove. | |
679 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
680 | defer to target beneath for non-Ravenscar threads. | |
681 | ||
a8ac85bb TT |
682 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
683 | ||
684 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
685 | get_base_thread_from_ravenscar_task>: Now methods. | |
686 | <m_cpu_map>: New member. | |
687 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
688 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
689 | (ravenscar_thread_target::task_is_currently_active): Update. | |
690 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
691 | Now a method. | |
692 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
693 | into the m_cpu_map. | |
694 | ||
550ab58d TT |
695 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
696 | ||
697 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
698 | event_ptid. | |
699 | ||
e9546579 TT |
700 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
701 | ||
702 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
703 | runtime_initialized. | |
704 | ||
3d4470e5 TT |
705 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
706 | ||
707 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
708 | add_active_thread. | |
709 | (ravenscar_thread_target::add_active_thread): Now public. | |
710 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
711 | the target. | |
712 | ||
888bdb2b SM |
713 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
714 | ||
715 | * regcache.c (ptid_regcache_map): New type. | |
716 | (target_ptid_regcache_map): New type. | |
717 | (regcaches): Change type to target_ptid_regcache_map. | |
718 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
719 | type. | |
720 | (regcache_thread_ptid_changed): Likewise. | |
721 | (registers_changed_ptid): Likewise. | |
722 | (regcaches_size): Likewise. | |
723 | (regcaches_test): Update. | |
724 | (regcache_thread_ptid_changed): Update. | |
725 | * regcache.h (regcache_up): New type. | |
726 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
727 | ||
b161a60d SM |
728 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> |
729 | ||
730 | * observable.h (thread_ptid_changed): Add parameter | |
731 | `process_stratum_target *`. | |
732 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
733 | `process_stratum_target *` and use it. | |
734 | (selftests): New namespace. | |
735 | (infrun_thread_ptid_changed): New function. | |
736 | (_initialize_infrun): Register selftest. | |
737 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
738 | `process_stratum_target *` and use it. | |
739 | (regcache_thread_ptid_changed): New function. | |
740 | (_initialize_regcache): Register selftest. | |
741 | * thread.c (thread_change_ptid): Pass target to | |
742 | thread_ptid_changed observable. | |
743 | ||
d2854d8d CT |
744 | 2020-08-06 Caroline Tice <cmtice@google.com> |
745 | ||
fe4c3d43 SM |
746 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. |
747 | (struct dwp_sections): Update field comments. Add loclists and | |
748 | rnglists fields. | |
749 | (struct virtual_v2_dwo_sections): Rename struct to | |
750 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
751 | size & offset fields for loclists and rnglists. | |
752 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
753 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
754 | skipping dummy type units. | |
755 | (create_dwp_hash_table): Update the large comment above the function to | |
756 | discuss Version 5 DWP files as well, with references. Update all the | |
757 | version checks in the function to check for version 5 as well. Add new | |
758 | section at the end to create dwp hash table for version 5. | |
759 | (create_dwp_v2_section): Rename function to | |
760 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
761 | Add V5 to error message text. | |
762 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
763 | into calls to create_dwp_v2_or_v5_section. | |
764 | (create_dwo_unit_in_dwp_v5): New function. | |
765 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
766 | check for version2; add else clause to handle version 5. | |
767 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
768 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
769 | else call create_debug_type_hash_table, with sections.info. | |
770 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
771 | version 5. | |
772 | (dwarf2_locate_v5_dwp_sections): New function. | |
773 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
774 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
d2854d8d | 775 | |
159ed7d9 SM |
776 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
777 | ||
778 | * regcache.h (class regcache): Remove friend | |
779 | registers_changed_ptid. | |
780 | <regcache_thread_ptid_changed>: Remove. | |
781 | <regcaches>: Remove. | |
782 | * regcache.c (regcache::regcaches): Rename to... | |
783 | (regcaches): ... this. Make static. | |
784 | (get_thread_arch_aspace_regcache): Update. | |
785 | (regcache::regcache_thread_ptid_changed): Rename to... | |
786 | (regcache_thread_ptid_changed): ... this. Update. | |
787 | (class regcache_access): Remove. | |
788 | (regcaches_test): Update. | |
789 | (_initialize_regcache): Update. | |
790 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
791 | <forward_list>. | |
792 | ||
174981ae SM |
793 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
794 | ||
795 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
796 | <regcaches>: ... this. Move doc here. | |
797 | * regcache.c (regcache::current_regcache) Rename to... | |
798 | (regcache::regcaches): ... this. Move doc to header. | |
799 | (get_thread_arch_aspace_regcache): Update. | |
800 | (regcache::regcache_thread_ptid_changed): Update. | |
801 | (registers_changed_ptid): Update. | |
802 | (class regcache_access) <current_regcache_size>: Rename to... | |
803 | <regcaches_size>: ... this. | |
804 | (current_regcache_test): Rename to... | |
805 | (regcaches_test): ... this. | |
806 | (_initialize_regcache): Update. | |
807 | ||
ed908db6 VC |
808 | 2020-08-06 Victor Collod <vcollod@nvidia.com> |
809 | ||
810 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
811 | ||
b5582ab7 KB |
812 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> |
813 | ||
814 | * corelow.c (core_target::build_file_mappings): Don't output | |
815 | null pathname in warning. | |
816 | ||
ea946b86 SM |
817 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> |
818 | ||
819 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
820 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
821 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
822 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
823 | ||
57d02173 TT |
824 | 2020-08-05 Tom Tromey <tromey@adacore.com> |
825 | ||
826 | PR rust/26197: | |
827 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
828 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
829 | Fix off-by-one and type size errors in ordinary case. | |
830 | ||
5555c86d TV |
831 | 2020-08-05 Tom de Vries <tdevries@suse.de> |
832 | ||
833 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
834 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
835 | ||
97916bfe SM |
836 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
837 | ||
838 | * frame.h (frame_id_p): Return bool. | |
839 | (frame_id_artificial_p): Return bool. | |
840 | (frame_id_eq): Return bool. | |
841 | (has_stack_frames): Return bool. | |
842 | (get_selected_frame): Fix typo in comment. | |
843 | (get_frame_pc_if_available): Return bool. | |
844 | (get_frame_address_in_block_if_available): Return bool. | |
845 | (get_frame_func_if_available): Return bool. | |
846 | (read_frame_register_unsigned): Return bool. | |
847 | (get_frame_register_bytes): Return bool. | |
848 | (safe_frame_unwind_memory): Return bool. | |
849 | (deprecated_frame_register_read): Return bool. | |
850 | (frame_unwinder_is): Return bool. | |
851 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
852 | bool. | |
853 | <this_id::p>: Likewise. | |
854 | <prev_p>: Likewise. | |
855 | (frame_stash_add): Return bool. | |
856 | (get_frame_id): Use bool. | |
857 | (frame_id_build_special) Use bool. | |
858 | (frame_id_build_unavailable_stack): Use bool. | |
859 | (frame_id_build): Use bool. | |
860 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
861 | (frame_id_artificial_p): Likewise. | |
862 | (frame_id_eq): Likewise. | |
863 | (frame_id_inner): Likewise. | |
864 | (get_frame_func_if_available): Likewise. | |
865 | (read_frame_register_unsigned): Likewise. | |
866 | (deprecated_frame_register_read): Likewise. | |
867 | (get_frame_register_bytes): Likewise. | |
868 | (has_stack_frames): Likewise. | |
869 | (inside_main_func): Likewise. | |
870 | (inside_entry_func): Likewise. | |
871 | (get_frame_pc_if_available): Likewise. | |
872 | (get_frame_address_in_block_if_available): Likewise. | |
873 | (frame_unwinder_is): Likewise. | |
874 | (safe_frame_unwind_memory): Likewise. | |
875 | (frame_unwind_arch): Likewise. | |
876 | ||
fedfee88 SM |
877 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
878 | ||
879 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
880 | type to cached_copy_status. | |
881 | (fprintf_frame): Adjust. | |
882 | (get_frame_func_if_available): Adjust. | |
883 | (frame_cleanup_after_sniffer): Adjust. | |
884 | ||
6cfa9b59 MW |
885 | 2020-08-04 Mark Wielaard <mark@klomp.org> |
886 | ||
887 | * MAINTAINERS (Write After Approval): Update email address. | |
888 | ||
66d6346b SM |
889 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
890 | ||
891 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
892 | dynamic_prop::const_val. | |
893 | ||
8a6d5e35 SM |
894 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
895 | ||
896 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
897 | dynamic_prop::kind. | |
898 | ||
51d6067d SM |
899 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
900 | ||
901 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
902 | ||
b26e2ae7 JM |
903 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> |
904 | ||
905 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
906 | ||
39791af2 JM |
907 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> |
908 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
909 | ||
910 | * configure.tgt: Add entry for bpf-*-*. | |
911 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
912 | (ALLDEPFILES): Add bpf-tdep.c. | |
913 | * bpf-tdep.c: New file. | |
914 | * MAINTAINERS: Add bpf target and maintainer. | |
915 | * NEWS: Mention the support for the new target. | |
916 | ||
521894aa TV |
917 | 2020-08-04 Tom de Vries <tdevries@suse.de> |
918 | ||
919 | PR symtab/23270 | |
920 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
921 | Error. | |
922 | ||
5d6356e9 JB |
923 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
924 | ||
925 | * syscalls/freebsd.xml: Regenerate. | |
926 | ||
0cf82b81 JB |
927 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
928 | ||
929 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
930 | ||
8f34b746 TV |
931 | 2020-08-03 Tom de Vries <tdevries@suse.de> |
932 | ||
933 | PR symtab/26333 | |
934 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
935 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
936 | ||
5e500d33 SM |
937 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> |
938 | ||
939 | PR ada/26318 | |
940 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
941 | kind. | |
942 | ||
78319c15 TBA |
943 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
944 | ||
945 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
946 | ||
4c55e970 TBA |
947 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
948 | ||
949 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
950 | expressions after checking that the input condition string parses | |
951 | successfully and does not contain junk at the end. | |
952 | ||
1e620590 TBA |
953 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
954 | ||
955 | * breakpoint.c (set_breakpoint_condition): Update the | |
956 | condition string after parsing the new condition successfully. | |
957 | ||
c8693053 RO |
958 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
959 | ||
960 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
961 | * proc-events.c: Likewise. | |
962 | * proc-flags.c: Likewise. | |
963 | * proc-why.c: Likewise. | |
964 | * procfs.c: Likewise. | |
965 | ||
966 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
967 | * configure, config.in: Regenerate. | |
968 | ||
5a99adb8 TV |
969 | 2020-07-30 Tom de Vries <tdevries@suse.de> |
970 | ||
971 | PR build/26320 | |
972 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
973 | m_red/m_green/m_blue in a union. | |
974 | ||
8ba83e91 TV |
975 | 2020-07-29 Tom de Vries <tdevries@suse.de> |
976 | ||
977 | PR tdep/26280 | |
978 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
979 | ||
f75a0693 AB |
980 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
981 | ||
982 | PR symtab/26270: | |
983 | * symtab.h (find_pc_partial_function_sym): Declare. | |
984 | * cli/cli-cmds.c (disassemble_command): Use | |
985 | find_pc_partial_function_sym. Check asm_demangle. | |
986 | * blockframe.c (cache_pc_function_sym): New global. | |
987 | (cache_pc_function_name): Remove. | |
988 | (clear_pc_function_cache): Update. | |
989 | (find_pc_partial_function_sym): New function, from | |
990 | find_pc_partial_function. | |
991 | (find_pc_partial_function): Rewrite using | |
992 | find_pc_partial_function_sym. | |
993 | ||
16f3242c TT |
994 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
995 | ||
996 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
997 | help. Add usage. | |
998 | ||
4888741a TT |
999 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
1000 | ||
1001 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
1002 | <DW_OP_GNU_variable_value>: Cast to address type. | |
1003 | ||
4d46f402 KR |
1004 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> |
1005 | ||
1006 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
1007 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
1008 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
1009 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
1010 | (nbsd_get_siginfo_type): New. | |
1011 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
1012 | (_initialize_nbsd_tdep): New. | |
1013 | ||
d70f978b L |
1014 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
1015 | ||
1016 | PR binutils/26301 | |
1017 | * configure: Regenerated. | |
1018 | ||
377170fa L |
1019 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
1020 | ||
1021 | PR binutils/26301 | |
1022 | * configure: Regenerated. | |
1023 | ||
43d5901d AB |
1024 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1025 | ||
1026 | * python/py-frame.c: Remove 'user-regs.h' include. | |
1027 | (frapy_read_register): Rewrite to make use of | |
1028 | gdbpy_parse_register_id. | |
1029 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
1030 | moved here from python/py-unwind.c. Updated the return type, and | |
1031 | also accepts register descriptor objects. | |
1032 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
1033 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
1034 | (unwind_infopy_add_saved_register): Update to use | |
1035 | gdbpy_parse_register_id. | |
1036 | (pending_framepy_read_register): Likewise. | |
1037 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
1038 | ||
14fa8fb3 AB |
1039 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1040 | ||
1041 | * python/py-registers.c: Add 'user-regs.h' include. | |
1042 | (register_descriptor_iter_find): New function. | |
1043 | (register_descriptor_iterator_object_methods): New static global | |
1044 | methods array. | |
1045 | (register_descriptor_iterator_object_type): Add pointer to methods | |
1046 | array. | |
1047 | ||
ddce1758 JB |
1048 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> |
1049 | ||
1050 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
1051 | for all architectures on FreeBSD 11.3 and later. | |
1052 | ||
a4089f52 TT |
1053 | 2020-07-27 Tom Tromey <tromey@adacore.com> |
1054 | ||
1055 | * gcore.h (load_corefile): Don't declare. | |
1056 | ||
95420d30 TV |
1057 | 2020-07-27 Tom de Vries <tdevries@suse.de> |
1058 | ||
1059 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
1060 | * config.in: Regenerate. | |
1061 | * configure: Regenerate. | |
1062 | ||
05a6b8c2 EZ |
1063 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> |
1064 | ||
1065 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
1066 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
1067 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
1068 | * configure: Regenerate. | |
1069 | * config.in: Regenerate. | |
1070 | ||
e79eb02f AB |
1071 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1072 | ||
1073 | PR fortran/23051 | |
1074 | PR fortran/26139 | |
1075 | * valops.c (value_ind): Pass address to | |
1076 | readjust_indirect_value_type. | |
1077 | * value.c (readjust_indirect_value_type): Make parameter | |
1078 | non-const, and add extra address parameter. Resolve original type | |
1079 | before using it. | |
1080 | * value.h (readjust_indirect_value_type): Update function | |
1081 | signature and comment. | |
1082 | ||
876518dd TV |
1083 | 2020-07-25 Tom de Vries <tdevries@suse.de> |
1084 | ||
1085 | PR symtab/26243 | |
1086 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
1087 | entries. | |
1088 | ||
f6720b1c AM |
1089 | 2020-07-24 Aaron Merey <amerey@redhat.com> |
1090 | ||
1091 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
1092 | * configure: Rebuild. | |
1093 | ||
513487e1 KB |
1094 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> |
1095 | ||
1096 | PR corefiles/26294 | |
1097 | * corelow.c (_initialize_corelow): Add period to help text | |
1098 | for "maintenance print core-file-backed-mappings". | |
1099 | ||
e7bc9db8 PA |
1100 | 2020-07-23 Pedro Alves <pedro@palves.net> |
1101 | ||
1102 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
1103 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
1104 | meanwhile. | |
1105 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
1106 | New. | |
1107 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
1108 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
1109 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
1110 | * frame.h (get_frame_cache_generation): Declare. | |
1111 | ||
90fcc466 TV |
1112 | 2020-07-23 Tom de Vries <tdevries@suse.de> |
1113 | ||
1114 | PR tui/26282 | |
1115 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
1116 | New default constructor. | |
1117 | ||
78344df7 AB |
1118 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1119 | ||
1120 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
1121 | exclude non-statement entries. | |
1122 | ||
b089853a KB |
1123 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1124 | ||
1125 | * NEWS (New commands): Mention new command | |
1126 | "maintenance print core-file-backed-mappings". | |
1127 | ||
09c2f5d4 KB |
1128 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1129 | ||
1130 | * corelow.c (gdbcmd.h): Include. | |
1131 | (core_target::info_proc_mappings): New method. | |
1132 | (get_current_core_target): New function. | |
1133 | (maintenance_print_core_file_backed_mappings): New function. | |
1134 | (_initialize_corelow): Add core-file-backed-mappings to | |
1135 | "maint print" commands. | |
1136 | ||
9c5ec5c2 | 1137 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
fe4c3d43 | 1138 | |
9c5ec5c2 KB |
1139 | * linux-tdep.c (dump_note_entry_p): New function. |
1140 | (linux_dump_mapping_p_ftype): New typedef. | |
1141 | (linux_find_memory_regions_full): Add new parameter, | |
1142 | should_dump_mapping_p. | |
1143 | (linux_find_memory_regions): Adjust call to | |
1144 | linux_find_memory_regions_full. | |
1145 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
1146 | call to linux_find_memory_regions_full. | |
1147 | ||
db082f59 KB |
1148 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1149 | ||
1150 | * corelow.c (solist.h, unordered_map): Include. | |
1151 | (class core_target): Add field m_core_file_mappings and | |
1152 | method build_file_mappings. | |
1153 | (core_target::core_target): Call build_file_mappings. | |
1154 | (core_target::~core_target): Free memory associated with | |
1155 | m_core_file_mappings. | |
1156 | (core_target::build_file_mappings): New method. | |
1157 | (core_target::xfer_partial): Use m_core_file_mappings | |
1158 | for memory transfers. | |
1159 | * linux-tdep.c (linux_read_core_file_mappings): New | |
1160 | function. | |
1161 | (linux_core_info_proc_mappings): Rewrite to use | |
1162 | linux_read_core_file_mappings. | |
1163 | (linux_init_abi): Register linux_read_core_file_mappings. | |
1164 | ||
7e183d27 KB |
1165 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1166 | ||
1167 | * arch-utils.c (default_read_core_file_mappings): New function. | |
1168 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
1169 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
1170 | * gdbarch.h, gdbarch.c: Regenerate. | |
1171 | ||
2735d421 KB |
1172 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1173 | ||
1174 | PR corefiles/25631 | |
1175 | * corelow.c (core_target:xfer_partial): Revise | |
1176 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
1177 | case after first checking the stratum beneath the core | |
1178 | target. | |
1179 | (has_all_memory): Return true. | |
1180 | * target.c (raw_memory_xfer_partial): Revise comment | |
1181 | regarding use of has_all_memory. | |
1182 | ||
e56cb451 KB |
1183 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
1184 | ||
1185 | * exec.h (section_table_xfer_memory): Revise declaration, | |
1186 | replacing section name parameter with an optional callback | |
1187 | predicate. | |
1188 | * exec.c (section_table_xfer_memory): Likewise. | |
1189 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
1190 | of section_table_xfer_memory. | |
1191 | ||
32fa152e TT |
1192 | 2020-07-22 Tom Tromey <tromey@adacore.com> |
1193 | ||
1194 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
1195 | lookup_symbol_search_name. | |
1196 | ||
a67a1c41 AB |
1197 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1198 | ||
1199 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
1200 | redundant local variable. | |
1201 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
1202 | reference, not pointer, update code accordingly. | |
1203 | ||
a7b4ff4f SM |
1204 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1205 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
1206 | ||
1207 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
1208 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
1209 | `skip_jit_symbol_lookup` field. | |
1210 | ||
2340e834 SM |
1211 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1212 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
1213 | ||
1214 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
1215 | use twice. | |
1216 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
1217 | `iter` into the loop header. | |
1218 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
1219 | variable `objf_data` to the first point of definition. | |
1220 | (jit_event_handler): Move the declaration of local variables | |
1221 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
1222 | Rename `objf` to `jited`. | |
1223 | ||
c1072906 SM |
1224 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1225 | ||
1226 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
1227 | Remove. | |
1228 | * jit.c (get_jiter_objfile_data): Update. | |
1229 | ||
c8474dc3 TBA |
1230 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1231 | Simon Marchi <simon.marchi@polymtl.ca> | |
1232 | ||
1233 | * jit.c (struct jit_program_space_data): Remove. | |
1234 | (jit_program_space_key): Remove. | |
1235 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
1236 | stuff. | |
1237 | (get_jit_program_space_data): Remove. | |
1238 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
1239 | objfiles. | |
1240 | (jit_inferior_init): Likewise. | |
1241 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
1242 | type to void. | |
1243 | (jit_breakpoint_re_set): Pass current_program_space to | |
1244 | jit_breakpoint_re_set_internal. | |
1245 | ||
77208eb7 SM |
1246 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1247 | ||
1248 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
1249 | jit_breakpoint>: Move to here from ... | |
1250 | * jit.c (jit_program_space_data): ... here. | |
1251 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
1252 | (jit_breakpoint_deleted): Update. | |
1253 | (jit_breakpoint_re_set_internal): Update. | |
1254 | ||
8c1c720f SM |
1255 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1256 | ||
1257 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
1258 | checks. | |
1259 | (jit_read_descriptor): Remove NULL check. | |
1260 | (jit_event_handler): Add an assertion. | |
1261 | ||
0e74a041 SM |
1262 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1263 | ||
1264 | * jit.h (struct jit_objfile_data): Split into... | |
1265 | (struct jiter_objfile_data): ... this ... | |
1266 | (struct jited_objfile_data): ... and this. | |
1267 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
1268 | <jiter_data, jited_data>: New fields. | |
1269 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
1270 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
1271 | (get_jit_objfile_data): Rename to ... | |
1272 | (get_jiter_objfile_data): ... this. | |
1273 | (add_objfile_entry): Update. | |
1274 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
1275 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
1276 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
1277 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
1278 | ||
238b5c9f SM |
1279 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
1280 | ||
1281 | * jit.h: Forward-declare `struct minimal_symbol`. | |
1282 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
1283 | constructor, destructor, and an objfile* field. | |
1284 | * jit.c (jit_objfile_data): Remove. | |
1285 | (struct jit_objfile_data): Migrate from here to jit.h. | |
1286 | (jit_objfile_data::~jit_objfile_data): New destructor | |
1287 | implementation with code moved from free_objfile_data. | |
1288 | (free_objfile_data): Delete. | |
1289 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
1290 | (jit_find_objf_with_entry_addr): Ditto. | |
1291 | (jit_inferior_exit_hook): Ditto. | |
1292 | (_initialize_jit): Remove the call to | |
1293 | register_objfile_data_with_cleanup. | |
1294 | * objfiles.h (struct objfile) <jit_data>: New field. | |
1295 | ||
fe053b9e TBA |
1296 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1297 | ||
1298 | * jit.h: Forward-declare `struct objfile`. | |
1299 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
1300 | * jit.c (jit_read_descriptor): Change the signature to take the | |
1301 | JITer objfile as an argument instead of the jit_program_space_data. | |
1302 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
1303 | (jit_event_handler): Use the new JITer objfile argument when calling | |
1304 | jit_read_descriptor. | |
1305 | * breakpoint.c (handle_jit_event): Update the call to | |
1306 | jit_event_handler to pass the JITer objfile. | |
1307 | ||
4cec0c66 JB |
1308 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
1309 | ||
1310 | * gdbarch.c: Regenerate. | |
1311 | * gdbarch.h: Regenerate. | |
1312 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
1313 | * infrun.c (handle_segmentation_fault): Remove. | |
1314 | (print_signal_received_reason): Remove call to | |
1315 | handle_segmentation_fault. | |
1316 | ||
0e42f66a JB |
1317 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
1318 | ||
1319 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
1320 | Rename to sparc64_linux_report_signal_info and add siggnal | |
1321 | argument. | |
1322 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
1323 | instead of sparc64_linux_handle_segmentation_fault. | |
1324 | ||
77bdfeb2 JB |
1325 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
1326 | ||
1327 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
1328 | i386_linux_report_signal_info instead of | |
1329 | i386_linux_handle_segmentation_fault. | |
1330 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
1331 | to i386_linux_report_signal_info and add siggnal argument. | |
1332 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
1333 | of i386_linux_handle_segmentation_fault. | |
1334 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
1335 | to i386_linux_report_signal_info and add siggnal argument. | |
1336 | ||
ad97bfc5 JB |
1337 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
1338 | ||
1339 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
1340 | hook if present. | |
1341 | ||
272bb05c JB |
1342 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
1343 | ||
1344 | * gdbarch.c: Regenerate. | |
1345 | * gdbarch.h: Regenerate. | |
1346 | * gdbarch.sh (report_signal_info): New method. | |
1347 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
1348 | report_signal_info hook if present. | |
1349 | ||
baf8791e AB |
1350 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1351 | ||
1352 | * python/py-registers.c : Add 'unordered_map' include. | |
1353 | (gdbpy_new_reggroup): Renamed to... | |
1354 | (gdbpy_get_reggroup): ...this. Update to only create register | |
1355 | group descriptors when needed. | |
1356 | (gdbpy_reggroup_iter_next): Update. | |
1357 | ||
f7306dac AB |
1358 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1359 | ||
1360 | * python/py-registers.c (gdbpy_register_object_data): New static | |
1361 | global. | |
1362 | (gdbpy_register_object_data_init): New function. | |
1363 | (gdbpy_new_register_descriptor): Renamed to... | |
1364 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
1365 | existing register descriptors where possible. | |
1366 | (gdbpy_register_descriptor_iter_next): Update. | |
1367 | (gdbpy_initialize_registers): Register new gdbarch data. | |
1368 | ||
05c309a8 SM |
1369 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> |
1370 | ||
1371 | * linux-nat.c (stopped_pids): Make static. | |
1372 | ||
d1fd641e SM |
1373 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
1374 | ||
1375 | PR ada/26235 | |
1376 | * gdbtypes.c (ada_discrete_type_low_bound, | |
1377 | ada_discrete_type_high_bound): Handle undefined bounds. | |
1378 | ||
1de14d77 KR |
1379 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> |
1380 | ||
1381 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
1382 | declaration. | |
1383 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
1384 | function. | |
1385 | ||
ed810cc7 JB |
1386 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> |
1387 | ||
1388 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
1389 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
1390 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
1391 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
1392 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
1393 | method. | |
1394 | ||
ae5369e7 LC |
1395 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
1396 | ||
1397 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
1398 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
1399 | which are deprecated in Guile 3.0. | |
1400 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
1401 | * configure (try_guile_versions): Regenerate. | |
1402 | * NEWS: Update entry. | |
1403 | ||
68cf161c LC |
1404 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
1405 | Doug Evans <dje@google.com> | |
1406 | ||
1407 | PR gdb/21104 | |
1408 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
1409 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
1410 | USING_GUILE_BEFORE_2_2. | |
1411 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
1412 | Change type to 'scm_t_port_type *'. | |
1413 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
1414 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
1415 | parameter and honor it. Update callers. | |
1416 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
1417 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
1418 | functions. | |
1419 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
1420 | USING_GUILE_BEFORE_2_2. | |
1421 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
1422 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
1423 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
1424 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
1425 | and 'SCM_PORT_TYPE'. | |
1426 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
1427 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
1428 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
1429 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
1430 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
1431 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
1432 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
1433 | 'gdbscm_memory_port_read'. | |
1434 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
1435 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
1436 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
1437 | function. | |
1438 | (ioscm_init_memory_port): Remove. | |
1439 | (ioscm_init_memory_port_stream): New function | |
1440 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
1441 | function. | |
1442 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
1443 | Return scm_from_uint (0). | |
1444 | (gdbscm_set_memory_port_read_buffer_size_x) | |
1445 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
1446 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
1447 | Return scm_from_uint (0). | |
1448 | (gdbscm_set_memory_port_write_buffer_size_x) | |
1449 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
1450 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
1451 | * configure: Regenerate. | |
1452 | * NEWS: Add entry. | |
1453 | ||
aee91db3 TT |
1454 | 2020-07-18 Tom Tromey <tom@tromey.com> |
1455 | ||
1456 | * linux-nat.c (linux_multi_process): Remove. | |
1457 | (linux_nat_target::supports_multi_process): Return true. | |
1458 | ||
0e267416 AB |
1459 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> |
1460 | ||
1461 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
1462 | (riscv_lookup_target_description): Return pointer out of | |
1463 | unique_ptr. | |
1464 | * target-descriptions.c (allocate_target_description): Add | |
1465 | comment. | |
1466 | (target_desc_deleter::operator()): Likewise. | |
1467 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
1468 | gdbsupport/tdesc.h. | |
1469 | (target_desc_up): Likewise. | |
1470 | ||
f80c8ec4 TT |
1471 | 2020-07-17 Tom Tromey <tromey@adacore.com> |
1472 | ||
1473 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
1474 | (linux_nat_target::always_non_stop_p): Use "true". | |
1475 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
1476 | "false". | |
1477 | ||
d0ce17d8 CT |
1478 | 2020-07-16 Caroline Tice <cmtice@google.com> |
1479 | ||
1480 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
1481 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
1482 | (struct dwop_section_names): Add rnglists_dwo. | |
1483 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
1484 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
1485 | (struct dwo_sections): Add rnglists field. | |
1486 | (read_attribut_reprocess): Add tag parameter. | |
1487 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
1488 | (cu_debug_rnglists_section): New function (decl & definition). | |
1489 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
1490 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
1491 | die whose range is being checked; get rnglist section from | |
1492 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
1493 | appropriate. Add cases for DW_RLE_base_addressx, | |
1494 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
1495 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
1496 | test inside if-condition and updating complaint message. | |
1497 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
1498 | dwarf2_rnglists_process. | |
1499 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
1500 | dwarf2_ranges_process. | |
1501 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
1502 | need_ranges_base and update comment appropriately. Also pass die tag | |
1503 | to dwarf2_ranges_read. | |
1504 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
1505 | need_ranges_base and update comment appropriately. Also pass die tag | |
1506 | to dwarf2_ranges_process. | |
1507 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
1508 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
1509 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
1510 | need_ranges_base and update comment appropriately. Also pass die tag | |
1511 | to read_attribute_reprocess and dwarf2_ranges_read. | |
1512 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
1513 | and update function comment appropriately. | |
1514 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
1515 | read_loclist_header. | |
1516 | (read_rnglist_index): New function. | |
1517 | (read_attribute_reprocess): Add tag parameter. Add code for | |
1518 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
1519 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
1520 | ||
3dcc261c AB |
1521 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
1522 | ||
1523 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
1524 | being resolved. | |
1525 | ||
ccb9eba6 AB |
1526 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
1527 | ||
1528 | * arch-utils.c (show_architecture): Update formatting of messages. | |
1529 | ||
cf88be68 SM |
1530 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1531 | ||
1532 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
1533 | types. | |
1534 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
1535 | array/string type. | |
1536 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
1537 | * c-varobj.c (c_number_of_children): Likewise. | |
1538 | (c_describe_child): Likewise. | |
1539 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
1540 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
1541 | (f_type_print_base): Likewise. | |
1542 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
1543 | (f77_get_upperbound): Likewise. | |
1544 | (f77_print_array_1): Likewise. | |
1545 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
1546 | * m2-typeprint.c (m2_array): Likewise. | |
1547 | (m2_is_long_set_of_type): Likewise. | |
1548 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
1549 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
1550 | * python/py-type.c (typy_range): Likewise. | |
1551 | * rust-lang.c (rust_internal_print_type): Likewise. | |
1552 | * type-stack.c (type_stack::follow_types): Likewise. | |
1553 | * valarith.c (value_subscripted_rvalue): Likewise. | |
1554 | * valops.c (value_cast): Likewise. | |
1555 | ||
509971ae SM |
1556 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1557 | ||
1558 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
1559 | callers to use the equivalent accessor methods. | |
1560 | ||
107406b7 SM |
1561 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1562 | ||
1563 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
1564 | (struct type) <bit_stride>: New method. | |
1565 | (TYPE_BIT_STRIDE): Remove. | |
1566 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
1567 | ||
bb789949 SM |
1568 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1569 | ||
1570 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
1571 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
1572 | callers to use the equivalent accessor methods instead. | |
1573 | ||
39498edb SM |
1574 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1575 | ||
1576 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
1577 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
1578 | callers to use the equivalent accessor methods instead. | |
1579 | ||
3b606f38 SM |
1580 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1581 | ||
1582 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
1583 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
1584 | to use dynamic_prop::kind. | |
1585 | ||
064d9cb9 SM |
1586 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1587 | ||
1588 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
1589 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
1590 | to get the bound property's kind and check against | |
1591 | PROP_UNDEFINED. | |
1592 | ||
5537ddd0 SM |
1593 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1594 | ||
1595 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
1596 | all callers to use type::range_bounds followed by | |
1597 | dynamic_prop::{low,high}. | |
1598 | ||
8c2e4e06 SM |
1599 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
1600 | ||
1601 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
1602 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
1603 | set_addr_offset, variant_parts, set_variant_parts, | |
1604 | original_type, set_original_type>: New methods. | |
1605 | <kind>: Rename to... | |
1606 | <m_kind>: ... this. Update all users to use the new methods | |
1607 | instead. | |
1608 | <data>: Rename to... | |
1609 | <m_data>: ... this. Update all users to use the new methods | |
1610 | instead. | |
1611 | ||
7c6f2712 SM |
1612 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1613 | ||
1614 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
1615 | the range type's bounds are not both defined and constant | |
1616 | values. | |
1617 | (get_array_bounds): Update comment. Remove undefined bound check. | |
1618 | ||
599088e3 SM |
1619 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
1620 | ||
1621 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
1622 | the type::bounds method directly. | |
1623 | ||
c4dfcb36 SM |
1624 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
1625 | ||
1626 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
1627 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
1628 | are used to set the range type's bounds to use set_bounds. | |
1629 | ||
0a278aa7 PW |
1630 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1631 | ||
1632 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
1633 | ||
cce20f10 PA |
1634 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1635 | ||
1636 | * gdbthread.h (inferior_ref): Define. | |
1637 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
1638 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
1639 | * thread.c | |
1640 | (scoped_restore_current_thread::restore): | |
1641 | Adjust to gdb::ref_ptr. | |
1642 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
1643 | Remove manual decref handling. | |
1644 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
1645 | Adjust to use | |
1646 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
1647 | Incref the thread before calling get_frame_id instead of after. | |
1648 | Let TARGET_CLOSE_ERROR propagate. | |
1649 | ||
6d7aa592 PA |
1650 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1651 | ||
1652 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
1653 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
1654 | NOT_AVAILABLE_ERROR. | |
1655 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
1656 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
1657 | ||
b3e3a4c1 SM |
1658 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
1659 | Pedro Alves <pedro@palves.net> | |
1660 | ||
1661 | PR gdb/26199 | |
1662 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
1663 | (do_target_wait): Remove threads_are_executing and | |
1664 | threads_are_resumed_pending_p checks from the inferior_matches | |
1665 | lambda. Update comments. | |
1666 | ||
d6cc5d98 PA |
1667 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1668 | ||
1669 | PR gdb/26199 | |
1670 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
1671 | executing threads. | |
1672 | ||
7d3badc6 PA |
1673 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1674 | ||
1675 | PR gdb/26199 | |
1676 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
1677 | ||
42bd97a6 PA |
1678 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1679 | ||
1680 | PR gdb/26199 | |
1681 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
1682 | target_is_async_p. | |
1683 | ||
43667cc6 PA |
1684 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1685 | ||
1686 | PR gdb/26199 | |
1687 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
1688 | threads, not all threads. | |
1689 | ||
96118d11 PA |
1690 | 2020-07-10 Pedro Alves <pedro@palves.net> |
1691 | ||
1692 | PR gdb/26199 | |
1693 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
1694 | data to create_async_event_handler. | |
1695 | (remote_async_inferior_event_handler): Mark async event handler | |
1696 | before returning if the remote target still has either pending | |
1697 | events or unacknowledged notifications. | |
1698 | ||
54904d81 JB |
1699 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
1700 | ||
1701 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
1702 | declaration. | |
1703 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
1704 | function. | |
1705 | ||
f37e5866 JB |
1706 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
1707 | ||
1708 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
1709 | inferior_ptid. | |
1710 | ||
fc238d4a JB |
1711 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
1712 | ||
1713 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
1714 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
1715 | AT_FREEBSD_PS_STRINGS. | |
1716 | ||
6e2469ff HD |
1717 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
1718 | ||
1719 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
1720 | of debugfile path on Windows. | |
1721 | ||
d1076c41 JB |
1722 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
1723 | ||
1724 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
1725 | argument to 'data'. | |
1726 | ||
15f3b077 TT |
1727 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
1728 | ||
1729 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
1730 | ||
9fc501fd AB |
1731 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1732 | ||
1733 | PR python/22748 | |
1734 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
1735 | special handling for inline frames. | |
1736 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
1737 | creating lazy register values. | |
1738 | * frame.c (frame_id_computed_p): Delete definition. | |
1739 | * frame.h (frame_id_computed_p): Delete declaration. | |
1740 | ||
64cb3757 AB |
1741 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1742 | ||
1743 | * NEWS: Mention additions to Python API. | |
1744 | * python/py-arch.c (archpy_register_groups): New function. | |
1745 | (arch_object_methods): Add 'register_groups' method. | |
1746 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
1747 | (reggroup_object): New struct. | |
1748 | (gdbpy_new_reggroup): New function. | |
1749 | (gdbpy_reggroup_to_string): New function. | |
1750 | (gdbpy_reggroup_name): New function. | |
1751 | (gdbpy_reggroup_iter): New function. | |
1752 | (gdbpy_reggroup_iter_next): New function. | |
1753 | (gdbpy_new_reggroup_iterator): New function | |
1754 | (gdbpy_initialize_registers): Register new types. | |
1755 | (reggroup_iterator_object_type): Define new Python type. | |
1756 | (gdbpy_reggroup_getset): New static global. | |
1757 | (reggroup_object_type): Define new Python type. | |
1758 | * python/python-internal.h | |
1759 | ||
0f767f94 AB |
1760 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1761 | ||
1762 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
1763 | * python/py-arch.c (archpy_registers): New function. | |
1764 | (arch_object_methods): Add 'registers' method. | |
1765 | * python/py-registers.c: New file. | |
1766 | * python/python-internal.h | |
1767 | (gdbpy_new_register_descriptor_iterator): Declare. | |
1768 | (gdbpy_initialize_registers): Declare. | |
1769 | * python/python.c (do_start_initialization): Call | |
1770 | gdbpy_initialize_registers. | |
1771 | * NEWS: Mention additions to the Python API. | |
1772 | ||
87dbc774 AB |
1773 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1774 | ||
1775 | * NEWS: Mention new Python API method. | |
1776 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
1777 | (pending_frame_object_methods): Add architecture method. | |
1778 | ||
3bc98c0c AB |
1779 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1780 | ||
1781 | * gdbarch.c: Regenerate. | |
1782 | * gdbarch.h: Regenerate. | |
1783 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
1784 | (gdbarch_data): Use internal_error for the case where | |
1785 | deprecated_set_gdbarch_data was originally needed. | |
1786 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
1787 | and use passed in obstack. | |
1788 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
1789 | gdbarch_data. | |
1790 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
1791 | type. | |
1792 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
1793 | in obstack. | |
1794 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
1795 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
1796 | ||
d8cc8af6 TV |
1797 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
1798 | ||
1799 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
1800 | End-Of-Sequence in lte_is_less_than. | |
1801 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
1802 | "gdb: Don't reorder line table entries too much when sorting". | |
1803 | ||
947f7597 TV |
1804 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
1805 | ||
1806 | PR tui/26205 | |
1807 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
1808 | ||
1e7c1b22 TV |
1809 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
1810 | ||
1811 | PR build/26187 | |
1812 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
1813 | std::uncaught_exceptions instead of deprecated | |
1814 | std::uncaught_exception. | |
1815 | ||
a36158ec SM |
1816 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1817 | ||
1818 | * macroexp.h (macro_stringify): Return | |
1819 | gdb::unique_xmalloc_ptr<char>. | |
1820 | * macroexp.c (macro_stringify): Likewise. | |
1821 | * macrotab.c (fixup_definition): Update. | |
1822 | ||
14d960c8 SM |
1823 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1824 | ||
1825 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
1826 | (lex_one_token): Update. | |
1827 | * macroexp.c (struct macro_buffer) <release>: Return | |
1828 | gdb::unique_xmalloc_ptr<char>. | |
1829 | (macro_stringify): Update. | |
1830 | (macro_expand): Update. | |
1831 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
1832 | * macroexp.h (macro_expand_next): Likewise. | |
1833 | ||
211d5b1c SM |
1834 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
1835 | ||
1836 | * macroexp.h (macro_lookup_ftype): Remove. | |
1837 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
1838 | lookup function parameters, add scope parameter. | |
1839 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
1840 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
1841 | * macroscope.h (standard_macro_lookup): Change parameter type | |
1842 | to macro_scope. | |
1843 | * macroscope.c (standard_macro_lookup): Likewise. | |
1844 | * c-exp.y (lex_one_token): Update. | |
1845 | * macrocmd.c (macro_expand_command): Likewise. | |
1846 | (macro_expand_once_command): Likewise. | |
1847 | ||
b1a35af2 SM |
1848 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
1849 | ||
1850 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
1851 | * inf-loop.h (inferior_event_handler): Likewise. | |
1852 | * infcmd.c (step_1): Adjust. | |
1853 | * infrun.c (proceed): Adjust. | |
1854 | (fetch_inferior_event): Remove client_data param. | |
1855 | (infrun_async_inferior_event_handler): Adjust. | |
1856 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
1857 | * linux-nat.c (handle_target_event): Adjust. | |
1858 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
1859 | Adjust. | |
1860 | * record-full.c (record_full_async_inferior_event_handler): | |
1861 | Adjust. | |
1862 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
1863 | ||
1cdf9e33 TT |
1864 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1865 | ||
1866 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
1867 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
1868 | ||
32c1e210 TT |
1869 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1870 | ||
1871 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
1872 | tui_gen_win_info. | |
1873 | (tui_win_info::make_window): Merge with | |
1874 | tui_gen_win_info::make_window. | |
1875 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
1876 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
1877 | tui_gen_win_info. | |
1878 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
1879 | type. | |
1880 | <window_factory>: Likewise. | |
1881 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
1882 | tui_gen_win_info. | |
1883 | (make_standard_window): Change return type. | |
1884 | (get_locator_window, tui_get_window_by_name): Likewise. | |
1885 | (tui_layout_window::apply): Remove a cast. | |
1886 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
1887 | (struct tui_win_info): Merge with tui_gen_win_info. | |
1888 | (struct tui_gen_win_info): Remove. | |
1889 | ||
a30cb6da TT |
1890 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1891 | ||
1892 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
1893 | tui_win_info. | |
1894 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
1895 | <can_box>: New method. | |
1896 | ||
1eb2161f TT |
1897 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1898 | ||
1899 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
1900 | ||
7134f2eb TT |
1901 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1902 | ||
1903 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
1904 | (tui_data_window::display_registers_from) | |
1905 | (tui_data_window::first_data_item_displayed) | |
1906 | (tui_data_window::delete_data_content_windows): Update. | |
1907 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
1908 | Remove. | |
1909 | (tui_data_window::check_register_values): Update. | |
1910 | (tui_data_item_window::rerender): Add parameters. Update. | |
1911 | (tui_data_item_window::refresh_window): Remove. | |
1912 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
1913 | virtual. | |
1914 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
1915 | tui_gen_win_info. | |
1916 | <refresh_window, max_height, min_height>: Remove. | |
1917 | <rerender>: Add parameters. | |
1918 | <x, y, visible>: New members. | |
1919 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
1920 | <m_item_width>: New member. | |
1921 | ||
22b7b041 TT |
1922 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1923 | ||
1924 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
1925 | (tui_data_window::check_register_values): Update. | |
1926 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
1927 | from item_no. | |
1928 | ||
c9753adb TT |
1929 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1930 | ||
1931 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
1932 | useless "if". | |
1933 | ||
9ab26b4a TT |
1934 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1935 | ||
1936 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
1937 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
1938 | ||
e555083f TT |
1939 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1940 | ||
1941 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
1942 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
1943 | (struct tui_line_or_address): Move from tui-data.h. | |
1944 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
1945 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
1946 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
1947 | (tui_disasm_window): Don't declare. | |
1948 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
1949 | to tui-winsource.h. | |
1950 | (SINGLE_KEY): Move to tui-stack.c. | |
1951 | ||
7a02bab7 TT |
1952 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1953 | ||
1954 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
1955 | std::string. | |
1956 | * tui/tui-regs.c (class tab_expansion_file): New. | |
1957 | (tab_expansion_file::write): New method. | |
1958 | (tui_register_format): Change return type. Use | |
1959 | tab_expansion_file. | |
1960 | (tui_get_register, tui_data_window::display_registers_from) | |
1961 | (tui_data_item_window::rerender): Update. | |
1962 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
1963 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
1964 | ||
ea68593b TT |
1965 | 2020-07-01 Tom Tromey <tom@tromey.com> |
1966 | ||
1967 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
1968 | ||
a8caed5d FS |
1969 | 2020-07-01 Fangrui Song <maskray@google.com> |
1970 | ||
1971 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
1972 | ||
9cdf9820 AKS |
1973 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
1974 | ||
1975 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
1976 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
1977 | which is already checked in function attr_to_dynamic_prop. | |
1978 | ||
a1520ad8 TT |
1979 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
1980 | ||
1981 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
1982 | alloc_rust_variant for default-less enum. | |
1983 | ||
5ac58899 TT |
1984 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
1985 | ||
1986 | PR build/26183: | |
1987 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
1988 | gdb::to_string. | |
1989 | ||
19b187a9 SM |
1990 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
1991 | ||
1992 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
1993 | * gdbarch.h: Re-generate. | |
1994 | ||
cd4c4c07 TT |
1995 | 2020-06-28 Tom Tromey <tom@tromey.com> |
1996 | ||
1997 | * command.h (cmd_types): Remove. | |
1998 | (cmd_type): Don't declare. | |
1999 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
2000 | typedef. | |
2001 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
2002 | * cli/cli-decode.c (cmd_type): Remove. | |
2003 | ||
05779d57 PA |
2004 | 2020-06-27 Pedro Alves <palves@redhat.com> |
2005 | ||
2006 | * fork-child.c (prefork_hook): Adjust. | |
2007 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
2008 | Delete. | |
2009 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
2010 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
2011 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
2012 | Remove declarations. | |
2013 | (struct inferior) <set_tty, tty>: New methods. | |
2014 | (struct inferior) <terminal>: Rename to ... | |
2015 | (struct inferior) <m_terminal>: ... this and make private. | |
2016 | * main.c (captured_main_1): Adjust. | |
2017 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
2018 | (mi_cmd_inferior_tty_show): Adjust. | |
2019 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
2020 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
2021 | ||
1776e3e5 NA |
2022 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
2023 | ||
2024 | * configure.ac: Add --enable-libctf: handle --disable-static | |
2025 | properly. | |
2026 | * acinclude.m4: sinclude ../config/enable.m4. | |
2027 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
2028 | (LIBCTF): Substitute in. | |
2029 | (CTF_DEPS): New, likewise. | |
2030 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
2031 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
2032 | flags. | |
2033 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
2034 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
2035 | * configure: Regenerate. | |
2036 | * config.in: Likewise. | |
2037 | ||
58373b80 SM |
2038 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
2039 | ||
2040 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
2041 | ||
277474ee SM |
2042 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
2043 | ||
2044 | * inferior.h (struct inferior) <terminal>: Change type to | |
2045 | gdb::unique_xmalloc_ptr<char>. | |
2046 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
2047 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
2048 | field, adjust to unique pointer. | |
2049 | (get_inferior_io_terminal): Adjust to unique pointer. | |
2050 | ||
6d74da72 AB |
2051 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2052 | ||
2053 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
2054 | registers, not just the known core set of registers. | |
2055 | ||
2e52d038 AB |
2056 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2057 | ||
2058 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
2059 | fflags, frm, and fcsr registers. | |
2060 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
2061 | restore groups. | |
2062 | (riscv_tdesc_unknown_reg): New function. | |
2063 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
2064 | tdesc_use_registers. | |
2065 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
2066 | unknown_csrs_first_regnum, unknown_csrs_count, | |
2067 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
2068 | duplicate_fcsr_regnum fields. | |
2069 | ||
be64fd07 AB |
2070 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2071 | ||
2072 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
2073 | callback, use the callback (when not null) to help number unknown | |
2074 | registers. | |
2075 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
2076 | (tdesc_use_registers): Add extra parameter to declaration. | |
2077 | ||
3b9fce96 AB |
2078 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2079 | ||
2080 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
2081 | in the file. | |
2082 | (class riscv_pending_register_alias): Likewise. | |
2083 | (riscv_register_feature::register_info): Change 'required_p' field | |
2084 | to 'required', and change its type. Add 'check' member function. | |
2085 | (riscv_register_feature::register_info::check): Define new member | |
2086 | function. | |
2087 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
2088 | (riscv_freg_feature): Likewise. | |
2089 | (riscv_virtual_feature): Likewise. | |
2090 | (riscv_csr_feature): Likewise. | |
2091 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
2092 | tdesc_feature, rewrite the function to use the new | |
2093 | riscv_register_feature::register_info::check function. | |
2094 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
2095 | ||
865bad26 AB |
2096 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2097 | ||
2098 | * features/Makefile: Remove all references to the deleted files | |
2099 | below. | |
2100 | * features/riscv/32bit-csr.c: Deleted. | |
2101 | * features/riscv/32bit-csr.xml: Deleted. | |
2102 | * features/riscv/64bit-csr.c: Deleted. | |
2103 | * features/riscv/64bit-csr.xml: Deleted. | |
2104 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
2105 | ||
ed69cbc8 AB |
2106 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2107 | ||
2108 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
2109 | whitespace error for declaration of names member variable. | |
2110 | (struct riscv_register_feature): Add new prefer_first_name member | |
2111 | variable, and fix whitespace error in declaration of registers. | |
2112 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
2113 | (riscv_freg_feature): Likewise. | |
2114 | (riscv_virtual_feature): Likewise. | |
2115 | (riscv_csr_feature): Likewise. | |
2116 | (riscv_register_name): Expand on comments. Remove register name | |
2117 | modifications for CSR and virtual registers. | |
2118 | ||
4445e8f5 AB |
2119 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2120 | ||
2121 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
2122 | errors. | |
2123 | ||
767a879e AB |
2124 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2125 | ||
2126 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
2127 | riscv-opc.h. | |
2128 | (class riscv_pending_register_alias): New class. | |
2129 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
2130 | populate it as appropriate. | |
2131 | (riscv_setup_register_aliases): Delete. | |
2132 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
2133 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
2134 | create the register aliases. | |
2135 | ||
bb6e55f3 RO |
2136 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2137 | ||
2138 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
2139 | (sol2_init_abi): Don't register it. | |
2140 | * gdbarch.sh (static_transform_name): Remove. | |
2141 | * gdbarch.c, gdbarch.h: Regenerate. | |
2142 | ||
2143 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
2144 | gdbarch_static_transform_name. | |
2145 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
2146 | * stabsread.c (define_symbol) <'X'>: Remove. | |
2147 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
2148 | handling. | |
2149 | <'V'>: Likewise. | |
2150 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
2151 | <'S'>: Remove call to gdbarch_static_transform_name. | |
2152 | ||
c6d36836 RO |
2153 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2154 | ||
2155 | * procfs.c (procfs_pre_trace): New function. | |
2156 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
2157 | ||
a7e6196b RO |
2158 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2159 | ||
2160 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
2161 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
2162 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
2163 | sol2-tdep.o, sparc-sol2-tdep.o. | |
2164 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
2165 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
2166 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
2167 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
2168 | ||
d412e696 RO |
2169 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2170 | ||
2171 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
2172 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
2173 | Call sol2_init_abi. | |
2174 | Remove calls to set_gdbarch_skip_solib_resolver, | |
2175 | set_gdbarch_core_pid_to_str. | |
2176 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
2177 | (i386_sol2_static_transform_name): Remove. | |
2178 | (i386_sol2_init_abi): Call sol2_init_abi. | |
2179 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
2180 | set_gdbarch_static_transform_name, | |
2181 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
2182 | Use sol2_sigtramp_p. | |
2183 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
2184 | (sol2_sigtramp_p): New function. | |
2185 | (sol2_static_transform_name): New function. | |
2186 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
2187 | (sol2_init_abi): New function. | |
2188 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
2189 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
2190 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
2191 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
2192 | (sparc_sol2_static_transform_name): Remove. | |
2193 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
2194 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
2195 | set_gdbarch_static_transform_name, | |
2196 | set_gdbarch_skip_solib_resolver, | |
2197 | set_gdbarch_core_pid_to_str. | |
2198 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
2199 | (sparc_sol2_static_transform_name): Remove | |
2200 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
2201 | call sol2_sigtramp_p. | |
2202 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
2203 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
2204 | set_gdbarch_static_transform_name, | |
2205 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
2206 | ||
a8654e7d PW |
2207 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2208 | ||
2209 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
2210 | * exec.c (validate_exec_file): If from_tty, set both | |
2211 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
2212 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
2213 | and from_tty, unconditionally ask a confirmation. | |
2214 | ||
caa7fd04 AB |
2215 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2216 | ||
2217 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
2218 | NULL pointer dereference. | |
2219 | (maint_print_xml_tdesc_cmd): New function. | |
2220 | (_initialize_target_descriptions): Register new 'maint print | |
2221 | xml-tdesc' command and give it the filename completer. | |
2222 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
2223 | ||
fbf42f4e AB |
2224 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2225 | ||
2226 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
2227 | (struct target_desc): Change type of compatible vector. | |
2228 | (tdesc_compatible_p): Update for change in type of | |
2229 | target_desc::compatible. | |
2230 | (tdesc_compatible_info_list): New function. | |
2231 | (tdesc_compatible_info_arch_name): New function. | |
2232 | (tdesc_add_compatible): Update for change in type of | |
2233 | target_desc::compatible. | |
2234 | (print_c_tdesc::visit_pre): Likewise. | |
2235 | ||
20821f4e AB |
2236 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2237 | ||
2238 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
2239 | whitespace to underscore. | |
2240 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
2241 | descriptions that came from the target. | |
2242 | (_initialize_target_descriptions): Add filename command completion | |
2243 | for 'maint print c-tdesc'. | |
2244 | ||
1fb5ee62 SM |
2245 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
2246 | ||
2247 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
2248 | lines. | |
2249 | ||
fc3ecb3e SM |
2250 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
2251 | ||
2252 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
2253 | lines. | |
2254 | (dwarf2_find_location_expression): Likewise. | |
2255 | (call_site_parameter_matches): Likewise. | |
2256 | (dwarf2_compile_expr_to_ax): Likewise. | |
2257 | (disassemble_dwarf_expression): Likewise. | |
2258 | (loclist_describe_location): Likewise. | |
2259 | ||
236ef034 PA |
2260 | 2020-06-23 Pedro Alves <palves@redhat.com> |
2261 | ||
2262 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
2263 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
2264 | (register_to_value_test): Use scoped_mock_context. | |
2265 | * regcache.c: Include "scoped-mock-context.h". | |
2266 | (cooked_read_test): Don't error out if a target is already pushed. | |
2267 | Use scoped_mock_context. Adjust. | |
2268 | * scoped-mock-context.h: New file. | |
2269 | ||
39e7ecca AB |
2270 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2271 | ||
2272 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
2273 | initializer. | |
2274 | (ada_language::is_string_type_p): New member function. | |
2275 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
2276 | initializer. | |
2277 | (cplus_language_data): Likewise. | |
2278 | (asm_language_data): Likewise. | |
2279 | (minimal_language_data): Likewise. | |
2280 | * d-lang.c (d_language_data): Likewise. | |
2281 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
2282 | moved to f_language::is_string_type_p. | |
2283 | (f_language_data): Delete la_is_string_type_p initializer. | |
2284 | (f_language::is_string_type_p): New member function, | |
2285 | implementation from f_is_string_type_p. | |
2286 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
2287 | moved to go_language::is_string_type_p. | |
2288 | (go_language_data): Delete la_is_string_type_p initializer. | |
2289 | (go_language::is_string_type_p): New member function, | |
2290 | implementation from go_is_string_type_p. | |
2291 | * language.c (language_defn::is_string_type_p): Define new member | |
2292 | function. | |
2293 | (default_is_string_type_p): Make static, add comment copied from | |
2294 | header file. | |
2295 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
2296 | (unknown_language::is_string_type_p): New member function. | |
2297 | (auto_language_data): Delete la_is_string_type_p initializer. | |
2298 | (auto_language::is_string_type_p): New member function. | |
2299 | * language.h (language_data): Delete la_is_string_type_p field. | |
2300 | (language_defn::is_string_type_p): Declare new function. | |
2301 | (default_is_string_type_p): Delete desclaration, move comment to | |
2302 | definition. | |
2303 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
2304 | moved to m2_language::is_string_type_p. | |
2305 | (m2_language_data): Delete la_is_string_type_p initializer. | |
2306 | (m2_language::is_string_type_p): New member function, | |
2307 | implementation from m2_is_string_type_p. | |
2308 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
2309 | initializer. | |
2310 | * opencl-lang.c (opencl_language_data): Likewise. | |
2311 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
2312 | implementation moved to pascal_language::is_string_type_p. | |
2313 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
2314 | (pascal_language::is_string_type_p): New member function, | |
2315 | implementation from pascal_is_string_type_p. | |
2316 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
2317 | implementation moved to rust_language::is_string_type_p. | |
2318 | (rust_language_data): Delete la_is_string_type_p initializer. | |
2319 | (rust_language::is_string_type_p): New member function, | |
2320 | implementation from rust_is_string_type_p. | |
2321 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
2322 | is_string_type_p. | |
2323 | ||
4ffc13fb AB |
2324 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2325 | ||
2326 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
2327 | initializer. | |
2328 | (ada_language::print_typedef): New member function. | |
2329 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
2330 | (cplus_language_data): Likewise. | |
2331 | (asm_language_data): Likewise. | |
2332 | (minimal_language_data): Likewise. | |
2333 | * d-lang.c (d_language_data): Likewise. | |
2334 | * f-lang.c (f_language_data): Likewise. | |
2335 | (f_language::print_typedef): New member function. | |
2336 | * go-lang.c (go_language_data): Delete la_print_typedef | |
2337 | initializer. | |
2338 | * language.c (language_defn::print_typedef): Define member | |
2339 | function. | |
2340 | (unknown_language_data): Delete la_print_typedef initializer. | |
2341 | (unknown_language::print_typedef): New member function. | |
2342 | (auto_language_data): Delete la_print_typedef initializer. | |
2343 | (auto_language::print_typedef): New member function. | |
2344 | * language.h (language_data): Delete la_print_typedef field. | |
2345 | (language_defn::print_typedef): Declare new member function. | |
2346 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
2347 | (default_print_typedef): Delete declaration. | |
2348 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
2349 | initializer. | |
2350 | (m2_language::print_typedef): New member function. | |
2351 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
2352 | initializer. | |
2353 | * opencl-lang.c (opencl_language_data): Likewise. | |
2354 | * p-lang.c (pascal_language_data): Likewise. | |
2355 | (pascal_language::print_typedef): New member function. | |
2356 | * rust-lang.c (rust_print_typedef): Delete function, | |
2357 | implementation moved to rust_language::print_typedef. | |
2358 | (rust_language): Delete la_print_typedef initializer. | |
2359 | (rust_language::print_typedef): New member function, | |
2360 | implementation from rust_print_typedef. | |
2361 | * typeprint.c (default_print_typedef): Delete. | |
2362 | ||
d711ee67 AB |
2363 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2364 | ||
2365 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
2366 | (ada_language::printstr): New member function. | |
2367 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
2368 | (cplus_language_data): Likewise. | |
2369 | (asm_language_data): Likewise. | |
2370 | (minimal_language_data): Likewise. | |
2371 | * d-lang.c (d_language_data): Likewise. | |
2372 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
2373 | (f_language_data): Delete la_printstr initializer. | |
2374 | (f_language::printstr): New member function, implementation from | |
2375 | f_printstr. | |
2376 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
2377 | * language.c (language_defn::printstr): Define new member | |
2378 | function. | |
2379 | (unk_lang_printstr): Delete. | |
2380 | (unknown_language_data): Delete la_printstr initializer. | |
2381 | (unknown_language::printstr): New member function. | |
2382 | (auto_language_data): Delete la_printstr initializer. | |
2383 | (auto_language::printstr): New member function. | |
2384 | * language.h (language_data): Delete la_printstr field. | |
2385 | (language_defn::printstr): Declare new member function. | |
2386 | (LA_PRINT_STRING): Update call to printstr. | |
2387 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
2388 | (m2_language_data): Delete la_printstr initializer. | |
2389 | (m2_language::printstr): New member function, implementation from | |
2390 | m2_printstr. | |
2391 | * objc-lang.c (objc_language_data): Delete la_printstr | |
2392 | initializer. | |
2393 | * opencl-lang.c (opencl_language_data): Likewise. | |
2394 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
2395 | (pascal_language_data): Delete la_printstr initializer. | |
2396 | (pascal_language::printstr): New member function, implementation | |
2397 | from pascal_printstr. | |
2398 | * p-lang.h (pascal_printstr): Delete declaration. | |
2399 | * rust-lang.c (rust_printstr): Update header comment. | |
2400 | (rust_language_data): Delete la_printstr initializer. | |
2401 | (rust_language::printstr): New member function. | |
2402 | ||
52b50f2c AB |
2403 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2404 | ||
2405 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
2406 | (ada_language::printchar): New member function. | |
2407 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
2408 | (cplus_language_data): Likewise. | |
2409 | (asm_language_data): Likewise. | |
2410 | (minimal_language_data): Likewise. | |
2411 | * d-lang.c (d_language_data): Likewise. | |
2412 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
2413 | (f_language_data): Delete la_printchar initializer. | |
2414 | (f_language::printchar): New member function, implementation from | |
2415 | f_printchar. | |
2416 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
2417 | * language.c (unk_lang_printchar): Delete. | |
2418 | (language_defn::printchar): Define new member function. | |
2419 | (unknown_language_data): Delete la_printchar initializer. | |
2420 | (unknown_language::printchar): New member function. | |
2421 | (auto_language_data): Delete la_printchar initializer. | |
2422 | (auto_language::printchar): New member function. | |
2423 | * language.h (language_data): Delete la_printchar field. | |
2424 | (language_defn::printchar): Declare new member function. | |
2425 | (LA_PRINT_CHAR): Update call to printchar. | |
2426 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
2427 | (m2_language::printchar): New member function. | |
2428 | * objc-lang.c (objc_language_data): Delete la_printchar | |
2429 | initializer. | |
2430 | * opencl-lang.c (opencl_language_data): Likewise. | |
2431 | * p-lang.c (pascal_language_data): Delete la_printchar | |
2432 | initializer. | |
2433 | (pascal_language::printchar): New member function. | |
2434 | * rust-lang.c (rust_printchar): Rename to | |
2435 | rust_language::printchar. | |
2436 | (rust_language_data): Delete la_printchar initializer. | |
2437 | (rust_language::printchar): New member function, implementation | |
2438 | from rust_printchar. | |
2439 | ||
ec8cec5b AB |
2440 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2441 | ||
2442 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
2443 | (ada_language_data): Delete la_emitchar initializer. | |
2444 | (ada_language::emitchar): New member function, implementation from | |
2445 | emit_char. | |
2446 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
2447 | (cplus_language_data): Likewise. | |
2448 | (asm_language_data): Likewise. | |
2449 | (minimal_language_data): Likewise. | |
2450 | * d-lang.c (d_language_data): Likewise. | |
2451 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
2452 | (f_language_data): Delete la_emitchar initializer. | |
2453 | (f_language::emitchar): New member function, implementation from | |
2454 | f_emit_char. | |
2455 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
2456 | * language.c (unk_lang_emit_char): Delete. | |
2457 | (language_defn::emitchar): New member function definition. | |
2458 | (unknown_language_data): Delete la_emitchar initializer. | |
2459 | (unknown_language::emitchar): New member function. | |
2460 | (auto_language_data): Delete la_emitchar initializer. | |
2461 | (auto_language::emitchar): New member function. | |
2462 | * language.h (language_data): Delete la_emitchar field. | |
2463 | (language_defn::emitchar): New member field declaration. | |
2464 | (LA_EMIT_CHAR): Update call to emitchar. | |
2465 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
2466 | (m2_language_data): Delete la_emitchar initializer. | |
2467 | (m2_language::emitchar): New member function, implementation from | |
2468 | m2_emit_char. | |
2469 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
2470 | initializer. | |
2471 | * opencl-lang.c (opencl_language_data): Likewise. | |
2472 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
2473 | (pascal_language_data): Delete la_emitchar initializer. | |
2474 | (pascal_language::emitchar): New member function, implementation | |
2475 | from pascal_emit_char. | |
2476 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
2477 | (rust_language_data): Delete la_emitchar initializer. | |
2478 | (rust_language::emitchar): New member function, implementation | |
2479 | from rust_emitchar. | |
2480 | ||
1bf9c363 AB |
2481 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2482 | ||
2483 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
2484 | (ada_language_data): Delete la_post_parser initializer. | |
2485 | (ada_language::post_parser): New member function. | |
2486 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
2487 | (cplus_language_data): Likewise. | |
2488 | (asm_language_data): Likewise. | |
2489 | (minimal_language_data): Likewise. | |
2490 | * d-lang.c (d_language_data): Likewise. | |
2491 | * f-lang.c (f_language_data): Likewise. | |
2492 | * go-lang.c (go_language_data): Likewise. | |
2493 | * language.c (unknown_language_data): Likewise. | |
2494 | (auto_language_data): Likewise. | |
2495 | * language.h (language_data): Delete la_post_parser field. | |
2496 | (language_defn::post_parser): New member function. | |
2497 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
2498 | * objc-lang.c (objc_language_data): Likewise. | |
2499 | * opencl-lang.c (opencl_language_data): Likewise. | |
2500 | * p-lang.c (pascal_language_data): Likewise. | |
2501 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
2502 | (null_post_parser): Delete definition. | |
2503 | * parser-defs.h (null_post_parser): Delete declaration. | |
2504 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
2505 | initializer. | |
2506 | ||
87afa652 AB |
2507 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2508 | ||
2509 | * ada-lang.c (parse): Rename to ada_language::parser. | |
2510 | (ada_language_data): Delete la_parser initializer. | |
2511 | (ada_language::parser): New member function, implementation from | |
2512 | parse. | |
2513 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
2514 | (cplus_language_data): Likewise. | |
2515 | (asm_language_data): Likewise. | |
2516 | (minimal_language_data): Likewise. | |
2517 | * d-lang.c (d_language_data): Likewise. | |
2518 | (d_language::parser): New member function. | |
2519 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
2520 | (f_language::parser): New member function. | |
2521 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
2522 | (go_language::parser): New member function. | |
2523 | * language.c (unk_lang_parser): Delete. | |
2524 | (language_defn::parser): Define new member function. | |
2525 | (unknown_language_data): Delete la_parser initializer. | |
2526 | (unknown_language::parser): New member function. | |
2527 | (auto_language_data): Delete la_parser initializer. | |
2528 | (auto_language::parser): New member function. | |
2529 | * language.h (language_data): Delete la_parser field. | |
2530 | (language_defn::parser): Declare new member function. | |
2531 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
2532 | (m2_language::parser): New member function. | |
2533 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
2534 | * opencl-lang.c (opencl_language_data): Likewise. | |
2535 | * p-lang.c (pascal_language_data): Likewise. | |
2536 | (pascal_language::parser): New member function. | |
2537 | * parse.c (parse_exp_in_context): Update call to parser. | |
2538 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
2539 | (rust_language::parser): New member function. | |
2540 | ||
37825800 AB |
2541 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2542 | ||
2543 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
2544 | configuration value. | |
2545 | ||
5b860c93 PW |
2546 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2547 | ||
2548 | * NEWS: Mention change to the alias command. | |
2549 | ||
cf00cd6f PW |
2550 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2551 | ||
2552 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
2553 | (alias_command_completer) | |
2554 | (make_alias_options_def_group): New functions. | |
2555 | (alias_opts, alias_option_defs): New struct and array. | |
2556 | (alias_usage_error): Update usage. | |
2557 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
2558 | Use option framework. | |
2559 | (_initialize_cli_cmds): Update alias command help. | |
2560 | Update aliases command help. | |
2561 | (show_user): | |
2562 | Add NULL for new default_args lookup_cmd argument. | |
2563 | (valid_command_p): Rename to validate_aliased_command. | |
2564 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
2565 | aliased_command has no default args. | |
2566 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
2567 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
2568 | (add_alias_cmd): | |
2569 | Add NULL for new default_args lookup_cmd argument. | |
2570 | (print_help_for_command): Show default args under the layout | |
2571 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
2572 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
2573 | xfree default_args in destructor. | |
2574 | * cli/cli-script.c (process_next_line, do_define_command): | |
2575 | Add NULL for new default_args lookup_cmd argument. | |
2576 | * command.h: Declare new default_args argument in lookup_cmd | |
2577 | and lookup_cmd_1. | |
2578 | * completer.c (complete_line_internal_1): | |
2579 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2580 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
2581 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
2582 | Likewise. | |
2583 | * infcmd.c (_initialize_infcmd): Likewise. | |
2584 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
2585 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
2586 | * python/py-param.c (add_setshow_generic): Likewise. | |
2587 | * remote.c (_initialize_remote): Likewise. | |
2588 | * top.c (execute_command): Prepend default_args if command has some. | |
2589 | (set_verbose): | |
2590 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2591 | * tracepoint.c (validate_actionline, encode_actions_1): | |
2592 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
2593 | ||
bd920864 TBA |
2594 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2595 | ||
2596 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
2597 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
2598 | Invert the return value logic; return true if the jit breakpoint | |
2599 | has been successfully initialized. | |
2600 | (jit_inferior_init): Update the call to | |
2601 | jit_breakpoint_re_set_internal. | |
2602 | ||
f8098322 PA |
2603 | 2020-06-22 Pedro Alves <palves@redhat.com> |
2604 | ||
2605 | PR gdb/25939 | |
2606 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
2607 | Use the current inferior instead. Don't return | |
2608 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
2609 | wait again. | |
2610 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
2611 | inferior_ptid. | |
2612 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
2613 | (sol_update_thread_list_callback): Use the current inferior's pid | |
2614 | instead of inferior_ptid. | |
2615 | ||
196535a6 RO |
2616 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2617 | ||
2618 | * procfs.c: Cleanup many comments. | |
2619 | ||
2620 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
2621 | (AFTER_WATCHFLAG): Replace by value. | |
2622 | ||
2623 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
2624 | (create_procinfo): ... here. | |
2625 | ||
2626 | (procfs_debug_inferior): Remove SYS_exec handling. | |
2627 | (syscall_is_exec): Likewise. | |
2628 | (procfs_set_exec_trap): Likewise. | |
2629 | ||
2630 | (syscall_is_lwp_exit): Inline in callers. | |
2631 | (syscall_is_exit): Likewise. | |
2632 | (syscall_is_exec): Likewise. | |
2633 | (syscall_is_lwp_create): Likewise. | |
2634 | ||
2635 | (invalidate_cache): Remove #if 0 code. | |
2636 | ||
2637 | (make_signal_thread_runnable): Remove. | |
2638 | (procfs_target::resume): Remove #if 0 code. | |
2639 | ||
cf6f3e86 RO |
2640 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2641 | ||
2642 | PR gdb/25939 | |
2643 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
2644 | call ... | |
2645 | (procfs_target::create_inferior): ... here. | |
2646 | ||
48e9cc84 PW |
2647 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2648 | ||
2649 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
2650 | date by calling reopen_exec_file (that checks file timestamp | |
2651 | to decide to re-read the file). | |
2652 | ||
3922b302 PA |
2653 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2654 | ||
2655 | PR gdb/25412 | |
2656 | * gdbthread.h (delete_thread, delete_thread_silent) | |
2657 | (find_thread_ptid): Update comments. | |
2658 | * thread.c (current_thread_): New global. | |
2659 | (is_current_thread): Move higher, and reimplement. | |
2660 | (inferior_thread): Reimplement. | |
2661 | (set_thread_exited): Use bool. Add assertions. | |
2662 | (add_thread_silent): Simplify thread-reuse handling by always | |
2663 | calling delete_thread. | |
2664 | (delete_thread): Remove intro comment. | |
2665 | (find_thread_ptid): Skip exited threads. | |
2666 | (switch_to_thread_no_regs): Write to current_thread_. | |
2667 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
2668 | INFERIOR_PTID. Clear current_thread_. | |
2669 | ||
6dbdab44 PA |
2670 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2671 | ||
2672 | * aix-thread.c (pd_update): Use switch_to_thread. | |
2673 | ||
2da4b788 PA |
2674 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2675 | ||
2676 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
2677 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
2678 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
2679 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
2680 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
2681 | ||
50838d1b PA |
2682 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2683 | ||
2684 | * nat/windows-nat.c (current_windows_thread): Remove. | |
2685 | * nat/windows-nat.h (current_windows_thread): Remove. | |
2686 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
2687 | Adjust. | |
2688 | (display_selectors): Adjust to fetch the current | |
2689 | windows_thread_info based on inferior_ptid. | |
2690 | (fake_create_process): No longer write to current_windows_thread. | |
2691 | (windows_nat_target::get_windows_debug_event): | |
2692 | Don't set inferior_ptid or current_windows_thread. | |
2693 | (windows_nat_target::wait): Adjust to not rely on | |
2694 | current_windows_thread. | |
2695 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
2696 | Switch to the last_ptid thread. | |
2697 | (windows_nat_target::attach): Adjust. | |
2698 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
2699 | writing to inferior_ptid directly. | |
2700 | (windows_nat_target::create_inferior): Adjust. | |
2701 | ||
31ce04e9 PA |
2702 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2703 | ||
2704 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
2705 | ||
1ee1a363 PA |
2706 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2707 | ||
2708 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
2709 | after creating it, instead of writing to inferior_ptid. Don't | |
2710 | write to inferior_ptid. | |
2711 | ||
6d350754 PA |
2712 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2713 | ||
2714 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
2715 | ||
5d971d48 PA |
2716 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2717 | ||
2718 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
2719 | it, instead of writing to inferior_ptid. | |
2720 | ||
86e57d1b PA |
2721 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2722 | ||
2723 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
2724 | to inferior_ptid. | |
2725 | ||
f2e1c129 PA |
2726 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2727 | ||
2728 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
2729 | instead of writing to inferior_ptid directly. | |
2730 | ||
60db1b85 PA |
2731 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2732 | ||
2733 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
2734 | of writing to inferior_ptid directly. | |
2735 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
2736 | instead of writing to inferior_ptid directly. | |
2737 | ||
fe7d6a8d PA |
2738 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2739 | ||
2740 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
2741 | inferior_ptid. | |
2742 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
2743 | inferior_ptid. | |
2744 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
2745 | inferior_ptid directly. | |
2746 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
2747 | of writing to inferior_ptid. | |
2748 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
2749 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
2750 | ||
975f8708 PA |
2751 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2752 | ||
2753 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
2754 | thread. | |
2755 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
2756 | Instead use switch_to_thread. | |
2757 | (gnu_nat_target::detach): Use switch_to_no_thread | |
2758 | instead of writing to inferior_ptid directly. Used passed-in | |
2759 | inferior instead of looking up the inferior by pid. | |
2760 | ||
1a204730 PA |
2761 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2762 | ||
2763 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
2764 | inferior_ptid. | |
2765 | ||
ebe84f23 PA |
2766 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2767 | ||
2768 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
2769 | inferior_ptid. | |
2770 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
2771 | thread. | |
2772 | (nto_procfs_target::detach): Avoid referencing | |
2773 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
2774 | inferior_ptid directly. | |
2775 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
2776 | instead of writing to inferior_ptid directly. | |
2777 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
2778 | to thread. | |
2779 | ||
191f02e5 PA |
2780 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2781 | ||
2782 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
2783 | after creating it, instead of writing to inferior_ptid. | |
2784 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
2785 | to inferior_ptid directly. | |
2786 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
2787 | ||
0ac55310 PA |
2788 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2789 | ||
2790 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
2791 | switch_to_thread instead of writing to inferior_ptid directly. | |
2792 | (remote_target::add_current_inferior_and_thread): Use | |
2793 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
2794 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
2795 | and switch_to_thread instead of using set_current_inferior or | |
2796 | writing to inferior_ptid directly. | |
2797 | ||
5233f39b PA |
2798 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2799 | ||
2800 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
2801 | writing to inferior_ptid directly. | |
2802 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
2803 | inferior_ptid directly. | |
2804 | ||
087e161b PA |
2805 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2806 | ||
2807 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
2808 | inferior_ptid directly, instead switch to added thread. | |
2809 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
2810 | to inferior_ptid directly. | |
2811 | ||
7fb43e53 PA |
2812 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2813 | ||
2814 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
2815 | (procfs_target::detach): Use switch_to_no_thread | |
2816 | instead of writing to inferior_ptid directly. | |
2817 | (do_attach): Change return type to void. Switch to the added | |
2818 | thread. | |
2819 | (procfs_target::create_inferior): Switch to the added thread. | |
2820 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
2821 | ||
18493a00 PA |
2822 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2823 | ||
2824 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
2825 | of writing to inferior_ptid. | |
2826 | (scoped_restore_exited_inferior): Delete. | |
2827 | (handle_vfork_child_exec_or_exit): Simplify using | |
2828 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
2829 | instead of writing to inferior_ptid. | |
2830 | (THREAD_STOPPED_BY): Delete. | |
2831 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
2832 | (thread_stopped_by_hw_breakpoint): Delete. | |
2833 | (save_waitstatus): Use | |
2834 | scoped_restore_current_thread+switch_to_thread, and call | |
2835 | target_stopped_by_watchpoint instead of | |
2836 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
2837 | instead of thread_stopped_by_sw_breakpoint, and | |
2838 | target_stopped_by_hw_breakpoint instead of | |
2839 | thread_stopped_by_hw_breakpoint. | |
2840 | (handle_inferior_event) | |
2841 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
2842 | inferior_ptid directly, nor | |
2843 | set_current_inferior/set_current_program_space. Use | |
2844 | switch_to_thread / switch_to_inferior_no_thread instead. | |
2845 | ||
a0776b13 PA |
2846 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2847 | ||
2848 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
2849 | instead of writing to inferior_ptid. | |
2850 | ||
6155c136 PA |
2851 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2852 | ||
2853 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
2854 | added thread. | |
2855 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
2856 | to the added thread. | |
2857 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
2858 | instead of writing to inferior_ptid. | |
2859 | ||
c5316fc6 PA |
2860 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2861 | ||
2862 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
2863 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
2864 | the address space. Don't write to inferior_ptid. Use | |
2865 | switch_to_thread instead. | |
2866 | ||
8df01799 PA |
2867 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2868 | ||
2869 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
2870 | Delete. | |
2871 | (find_signalled_thread()): New, factored out from | |
2872 | linux_make_corefile_notes and adjusted to handle exited threads. | |
2873 | (linux_make_corefile_notes): Adjust to use the new | |
2874 | find_signalled_thread. | |
2875 | ||
41792d68 PA |
2876 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2877 | ||
2878 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
2879 | of saving/restoring inferior_ptid. | |
2880 | ||
612f258a TT |
2881 | 2020-06-17 Tom Tromey <tom@tromey.com> |
2882 | ||
2883 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
2884 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
2885 | declare. | |
2886 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
2887 | ||
efb763a5 SM |
2888 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
2889 | ||
2890 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
2891 | of partial symtabs. | |
2892 | ||
2951f6c0 SM |
2893 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2894 | ||
2895 | * regformats/reg-arm.dat: Remove. | |
2896 | * regformats/reg-bfin.dat: Remove. | |
2897 | * regformats/reg-cris.dat: Remove. | |
2898 | * regformats/reg-crisv32.dat: Remove. | |
2899 | * regformats/reg-m32r.dat: Remove. | |
2900 | * regformats/reg-tilegx.dat: Remove. | |
2901 | * regformats/reg-tilegx32.dat: Remove. | |
2902 | ||
7d458ea5 SM |
2903 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2904 | ||
2905 | * features/Makefile (WHICH): Remove arm files. | |
2906 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
2907 | * regformats/arm/arm-with-neon.dat: Remove. | |
2908 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
2909 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
2910 | ||
3af96c0d SM |
2911 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
2912 | ||
2913 | * features/Makefile (XMLTOC): Remove rx.xml. | |
2914 | ||
b25e22fd PA |
2915 | 2020-06-17 Pedro Alves <palves@redhat.com> |
2916 | ||
2917 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
2918 | comments. | |
2919 | ||
a78a19b1 AB |
2920 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2921 | ||
2922 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
2923 | ada_language::lookup_symbol_nonlocal. | |
2924 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
2925 | (ada_language::lookup_symbol_nonlocal): New member function, | |
2926 | implementation from ada_lookup_symbol_nonlocal. | |
2927 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
2928 | initializer. | |
2929 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
2930 | initializer. | |
2931 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
2932 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
2933 | (minimal_language_data) Likewise. | |
2934 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
2935 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
2936 | initializer. | |
2937 | (d_language::lookup_symbol_nonlocal): New member function. | |
2938 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
2939 | initializer. | |
2940 | (f_language::lookup_symbol_nonlocal): New member function. | |
2941 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
2942 | initializer. | |
2943 | * language.c (unknown_language_data): Likewise. | |
2944 | (auto_language_data): Likewise. | |
2945 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
2946 | field. | |
2947 | (language_defn::lookup_symbol_nonlocal): New member function. | |
2948 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
2949 | initializer. | |
2950 | * objc-lang.c (objc_language_data): Likewise. | |
2951 | * opencl-lang.c (opencl_language_data): Likewise. | |
2952 | * p-lang.c (pascal_language_data): Likewise. | |
2953 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
2954 | rust_language::lookup_symbol_nonlocal. | |
2955 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
2956 | initializer. | |
2957 | (rust_language::lookup_symbol_nonlocal): New member function, | |
2958 | implementation from rust_lookup_symbol_nonlocal. | |
2959 | * symtab.c (lookup_symbol_aux): Update call to | |
2960 | lookup_symbol_nonlocal. | |
2961 | (basic_lookup_symbol_nonlocal): Rename to... | |
2962 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
2963 | header comment. Remove language_defn parameter, and replace with | |
2964 | uses of `this'. | |
2965 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
2966 | ||
ebe2334e AB |
2967 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2968 | ||
2969 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
2970 | initializer. | |
2971 | (ada_language::value_print_inner): New member function. | |
2972 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
2973 | initializer. | |
2974 | (cplus_language_data): Likewise. | |
2975 | (asm_language_data): Likewise. | |
2976 | (minimal_language_data): Likewise. | |
2977 | * d-lang.c (d_language_data): Likewise. | |
2978 | (d_language::value_print_inner): New member function. | |
2979 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
2980 | initializer. | |
2981 | (f_language::value_print_inner): New member function. | |
2982 | * f-lang.h (f_value_print_innner): Rename to... | |
2983 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
2984 | * f-valprint.c (f_value_print_innner): Rename to... | |
2985 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
2986 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
2987 | initializer. | |
2988 | (go_language::value_print_inner): New member function. | |
2989 | * language.c (language_defn::value_print_inner): Define new member | |
2990 | function. | |
2991 | (unk_lang_value_print_inner): Delete. | |
2992 | (unknown_language_data): Delete la_value_print_inner initializer. | |
2993 | (unknown_language::value_print_inner): New member function. | |
2994 | (auto_language_data): Delete la_value_print_inner initializer. | |
2995 | (auto_language::value_print_inner): New member function. | |
2996 | * language.h (language_data): Delete la_value_print_inner field. | |
2997 | (language_defn::value_print_inner): Delcare new member function. | |
2998 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
2999 | initializer. | |
3000 | (m2_language::value_print_inner): New member function. | |
3001 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
3002 | initializer. | |
3003 | * opencl-lang.c (opencl_language_data): Likewise. | |
3004 | * p-lang.c (pascal_language_data): Likewise. | |
3005 | (pascal_language::value_print_inner): New member function. | |
3006 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
3007 | initializer. | |
3008 | (rust_language::value_print_inner): New member function. | |
3009 | * valprint.c (do_val_print): Update call to value_print_inner. | |
3010 | ||
a1d1fa3e AB |
3011 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3012 | ||
3013 | * ada-lang.c (ada_language_data): Delete la_value_print | |
3014 | initializer. | |
3015 | (ada_language::value_print): New member function. | |
3016 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
3017 | (cplus_language_data): Likewise. | |
3018 | (asm_language_data): Likewise. | |
3019 | (minimal_language_data): Likewise. | |
3020 | * d-lang.c (d_language_data): Likewise. | |
3021 | * f-lang.c (f_language_data): Likewise. | |
3022 | * go-lang.c (go_language_data): Likewise. | |
3023 | * language.c (unk_lang_value_print): Delete. | |
3024 | (language_defn::value_print): Define new member function. | |
3025 | (unknown_language_data): Delete la_value_print initializer. | |
3026 | (unknown_language::value_print): New member function. | |
3027 | (auto_language_data): Delete la_value_print initializer. | |
3028 | (auto_language::value_print): New member function. | |
3029 | * language.h (language_data): Delete la_value_print field. | |
3030 | (language_defn::value_print): Declare new member function. | |
3031 | (LA_VALUE_PRINT): Update call to value_print. | |
3032 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
3033 | * objc-lang.c (objc_language_data): Likewise. | |
3034 | * opencl-lang.c (opencl_language_data): Likewise. | |
3035 | * p-lang.c (pascal_language_data): Likewise. | |
3036 | (pascal_language::value_print): New member function. | |
3037 | * rust-lang.c (rust_language_data): Delete la_value_print | |
3038 | initializer. | |
3039 | ||
f16a9f57 AB |
3040 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3041 | ||
3042 | * ada-lang.c (ada_watch_location_expression): Rename to | |
3043 | ada_language::watch_location_expression. | |
3044 | (ada_language_data): Delete la_watch_location_expression | |
3045 | initializer. | |
3046 | (ada_language::watch_location_expression): New member function, | |
3047 | implementation from ada_watch_location_expression. | |
3048 | * breakpoint.c (watch_command_1): Update call to | |
3049 | watch_location_expression. | |
3050 | * c-lang.c (c_watch_location_expression): Rename to | |
3051 | language_defn::watch_location_expression. | |
3052 | (c_language_data): Delete la_watch_location_expression | |
3053 | initializer. | |
3054 | (cplus_language_data): Likewise. | |
3055 | (asm_language_data): Likewise. | |
3056 | (minimal_language_data): Likewise. | |
3057 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
3058 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
3059 | initializer. | |
3060 | * f-lang.c (f_language_data): Likewise. | |
3061 | * go-lang.c (go_language_data): Likewise. | |
3062 | * language.c (language_defn::watch_location_expression): Member | |
3063 | function implementation from c_watch_location_expression. | |
3064 | (unknown_language_data): Delete la_watch_location_expression | |
3065 | initializer. | |
3066 | (auto_language_data): Likewise. | |
3067 | * language.h (language_data): Delete la_watch_location_expression | |
3068 | field. | |
3069 | (language_defn::watch_location_expression): Declare new member | |
3070 | function. | |
3071 | * m2-lang.c (m2_language_data): Delete | |
3072 | la_watch_location_expression initializer. | |
3073 | * objc-lang.c (objc_language_data): Likewise. | |
3074 | * opencl-lang.c (opencl_language_data): Likewise. | |
3075 | * p-lang.c (pascal_language_data): Likewise. | |
3076 | * rust-lang.c (rust_watch_location_expression): Rename to | |
3077 | rust_language::watch_location_expression. | |
3078 | (rust_language_data): Delete la_watch_location_expression | |
3079 | initializer. | |
3080 | (rust_language::watch_location_expression): New member function, | |
3081 | implementation from rust_watch_location_expression. | |
3082 | ||
7e56227d AB |
3083 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3084 | ||
3085 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
3086 | ada_language::collect_symbol_completion_matches. | |
3087 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
3088 | initializer. | |
3089 | (ada_language::collect_symbol_completion_matches): New member | |
3090 | function, implementation from | |
3091 | ada_collect_symbol_completion_matches. | |
3092 | * c-lang.c (c_language_data): Delete | |
3093 | la_collect_symbol_completion_matches initializer. | |
3094 | (cplus_language_data): Likewise. | |
3095 | (asm_language_data): Likewise. | |
3096 | (minimal_language_data): Likewise. | |
3097 | * d-lang.c (d_language_data): Likewise. | |
3098 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
3099 | f_language::collect_symbol_completion_matches. | |
3100 | (f_language_data): Delete la_collect_symbol_completion_matches | |
3101 | initializer. | |
3102 | (f_language::collect_symbol_completion_matches) New member | |
3103 | function, implementation from f_collect_symbol_completion_matches. | |
3104 | * go-lang.c (go_language_data): Delete | |
3105 | la_collect_symbol_completion_matches initializer. | |
3106 | * language.c (unknown_language_data): Likewise. | |
3107 | (auto_language_data): Likewise. | |
3108 | * language.h (language_data): Delete | |
3109 | la_collect_symbol_completion_matches field. | |
3110 | (language_defn::collect_symbol_completion_matches): New member | |
3111 | function. | |
3112 | * m2-lang.c (m2_language_data): Delete | |
3113 | la_collect_symbol_completion_matches initializer. | |
3114 | * objc-lang.c (objc_language_data): Likewise. | |
3115 | * opencl-lang.c (opencl_language_data): Likewise. | |
3116 | * p-lang.c (pascal_language_data): Likewise. | |
3117 | * rust-lang.c (rust_language_data): Likewise. | |
3118 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
3119 | (collect_symbol_completion_matches): Update call to | |
3120 | collect_symbol_completion_matches. | |
3121 | (collect_symbol_completion_matches_type): Likewise. | |
3122 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
3123 | declaration. | |
3124 | ||
53fc67f8 AB |
3125 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3126 | ||
3127 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
3128 | (ada_language_data): Delete la_word_break_characters initializer. | |
3129 | (ada_language::word_break_characters): New member function. | |
3130 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
3131 | initializer. | |
3132 | (cplus_language_data): Likewise. | |
3133 | (asm_language_data): Likewise. | |
3134 | (minimal_language_data): Likewise. | |
3135 | * completer.c: Update global comment. | |
3136 | (advance_to_expression_complete_word_point): Update call to | |
3137 | word_break_characters. | |
3138 | (complete_files_symbols): Likewise. | |
3139 | (complete_line_internal_1): Likewise. | |
3140 | (default_completer_handle_brkchars): Likewise. | |
3141 | (skip_quoted_chars): Likewise. | |
3142 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
3143 | initializer. | |
3144 | * f-lang.c (f_word_break_characters): Delete. | |
3145 | (f_language_data): Delete la_word_break_characters initializer. | |
3146 | (f_language::word_break_characters): New member function. | |
3147 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
3148 | initializer. | |
3149 | * language.c (unknown_language_data): Likewise. | |
3150 | (auto_language_data): Likewise. | |
3151 | * language.h (default_word_break_characters): Move declaration to | |
3152 | earlier in the file. | |
3153 | (language_data): Delete la_word_break_characters field. | |
3154 | (language_defn::word_break_characters): New member function. | |
3155 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
3156 | initializer. | |
3157 | * objc-lang.c (objc_language_data): Likewise. | |
3158 | * opencl-lang.c (opencl_language_data): Likewise. | |
3159 | * p-lang.c (pascal_language_data): Likewise. | |
3160 | * rust-lang.c (rust_language_data): Likewise. | |
3161 | ||
c9debfb9 AB |
3162 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3163 | ||
3164 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
3165 | (ada_language_data): Delete la_get_symbol_name_matcher | |
3166 | initializer. | |
3167 | (language_defn::get_symbol_name_matcher_inner): New member | |
3168 | function. | |
3169 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
3170 | initializer. | |
3171 | (cplus_language_data): Likewise. | |
3172 | (cplus_language::get_symbol_name_matcher_inner): New member | |
3173 | function. | |
3174 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
3175 | (minimal_language_data): Likewise. | |
3176 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
3177 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
3178 | initializer. | |
3179 | * dictionary.c (iter_match_first_hashed): Update call to | |
3180 | get_symbol_name_matcher. | |
3181 | (iter_match_next_hashed): Likewise. | |
3182 | (iter_match_next_linear): Likewise. | |
3183 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
3184 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
3185 | initializer. | |
3186 | (f_language::get_symbol_name_matcher_inner): New member function. | |
3187 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
3188 | initializer. | |
3189 | * language.c (default_symbol_name_matcher): Update header comment, | |
3190 | make static. | |
3191 | (language_defn::get_symbol_name_matcher): New definition. | |
3192 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
3193 | (get_symbol_name_matcher): Delete. | |
3194 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
3195 | initializer. | |
3196 | (auto_language_data): Likewise. | |
3197 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
3198 | field. | |
3199 | (language_defn::get_symbol_name_matcher): New member function. | |
3200 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
3201 | (default_symbol_name_matcher): Delete declaration. | |
3202 | * linespec.c (find_methods): Update call to | |
3203 | get_symbol_name_matcher. | |
3204 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
3205 | initializer. | |
3206 | * minsyms.c (lookup_minimal_symbol): Update call to | |
3207 | get_symbol_name_matcher. | |
3208 | (iterate_over_minimal_symbols): Likewise. | |
3209 | * objc-lang.c (objc_language_data): Delete | |
3210 | la_get_symbol_name_matcher initializer. | |
3211 | * opencl-lang.c (opencl_language_data): Likewise. | |
3212 | * p-lang.c (pascal_language_data): Likewise. | |
3213 | * psymtab.c (psymbol_name_matches): Update call to | |
3214 | get_symbol_name_matcher. | |
3215 | * rust-lang.c (rust_language_data): Delete | |
3216 | la_get_symbol_name_matcher initializer. | |
3217 | * symtab.c (symbol_matches_search_name): Update call to | |
3218 | get_symbol_name_matcher. | |
3219 | (compare_symbol_name): Likewise. | |
3220 | ||
9a49ad8c AB |
3221 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3222 | ||
3223 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
3224 | initializer. | |
3225 | * c-lang.c (c_language_data): Likewise. | |
3226 | (c_language::compute_program): New member function. | |
3227 | (cplus_language_data): Delete la_compute_program initializer. | |
3228 | (cplus_language::compute_program): New member function. | |
3229 | (asm_language_data): Delete la_compute_program initializer. | |
3230 | (minimal_language_data): Likewise. | |
3231 | * c-lang.h (c_compute_program): Update comment. | |
3232 | (cplus_compute_program): Likewise. | |
3233 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
3234 | (cplus_compute_program): Likewise. | |
3235 | * compile/compile.c (compile_to_object): Update call to | |
3236 | la_compute_program. | |
3237 | * d-lang.c (d_language_data): Delete la_compute_program | |
3238 | initializer. | |
3239 | * f-lang.c (f_language_data): Likewise. | |
3240 | * go-lang.c (go_language_data): Likewise. | |
3241 | * language.c (unknown_language_data): Likewise. | |
3242 | (auto_language_data): Likewise. | |
3243 | * language.h (language_data): Delete la_compute_program field. | |
3244 | (language_defn::compute_program): New member function. | |
3245 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
3246 | initializer. | |
3247 | * objc-lang.c (objc_language_data): Likewise. | |
3248 | * opencl-lang.c (opencl_language_data): Likewise. | |
3249 | * p-lang.c (pascal_language_data): Likewise. | |
3250 | * rust-lang.c (rust_language_data): Likewise. | |
3251 | ||
eff93b4d AB |
3252 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
3253 | ||
3254 | * ada-lang.c (ada_language_data) Delete | |
3255 | la_class_name_from_physname initializer. | |
3256 | * c-lang.c (c_language_data): Likewise. | |
3257 | (cplus_language_data): Likewise. | |
3258 | (cplus_language::class_name_from_physname): New member function. | |
3259 | (asm_language_data): Delete la_class_name_from_physname | |
3260 | initializer. | |
3261 | (minimal_language_data): Likewise. | |
3262 | * d-lang.c (d_language_data): Likewise. | |
3263 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
3264 | method on language_defn class. | |
3265 | (guess_full_die_structure_name): Likewise. | |
3266 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
3267 | initializer. | |
3268 | * go-lang.c (go_language_data): Likewise. | |
3269 | * language.c (language_class_name_from_physname): Delete. | |
3270 | (unk_lang_class_name): Delete. | |
3271 | (unknown_language_data): Delete la_class_name_from_physname | |
3272 | initializer. | |
3273 | (auto_language_data): Likewise. | |
3274 | * language.h (language_data): Delete la_class_name_from_physname | |
3275 | field. | |
3276 | (language_defn::class_name_from_physname): New function. | |
3277 | (language_class_name_from_physname): Delete declaration. | |
3278 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
3279 | initializer. | |
3280 | * objc-lang.c (objc_language_data): Likewise. | |
3281 | * opencl-lang.c (opencl_language_data): Likewise. | |
3282 | * p-lang.c (pascal_language_data): Likewise. | |
3283 | * rust-lang.c (rust_language_data): Likewise. | |
3284 | ||
de543742 TT |
3285 | 2020-06-16 Tom Tromey <tom@tromey.com> |
3286 | ||
3287 | * tui/tui-data.h (STATUS_NAME): New macro. | |
3288 | * tui/tui-layout.c (tui_remove_some_windows) | |
3289 | (initialize_known_windows, tui_register_window) | |
3290 | (tui_layout_split::remove_windows, initialize_layouts) | |
3291 | (tui_new_layout_command): Don't use hard-coded window names. | |
3292 | ||
a350efd4 TT |
3293 | 2020-06-16 Tom Tromey <tom@tromey.com> |
3294 | ||
3295 | PR tui/25348: | |
3296 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
3297 | tui_initialize_readline. Only run once. Call rl_initialize. | |
3298 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
3299 | tui_initialize_readline. | |
3300 | * tui/tui-io.c (tui_setup_io): Call | |
3301 | tui_ensure_readline_initialized. | |
3302 | * tui/tui-interp.c (tui_interp::init): Update. | |
3303 | ||
39ec0490 TT |
3304 | 2020-06-16 Tom Tromey <tom@tromey.com> |
3305 | ||
3306 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
3307 | Also preserve the status window. | |
3308 | ||
d2d1ea20 TT |
3309 | 2020-06-16 Tom Tromey <tom@tromey.com> |
3310 | ||
3311 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
3312 | where m_window==nullptr. | |
3313 | ||
66920317 TT |
3314 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
3315 | ||
3316 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
3317 | Update. | |
3318 | (windows_nat::handle_ms_vc_exception): Update. | |
3319 | * target.h (target_read_string): Change API. | |
3320 | * target.c (target_read_string): Change API. | |
3321 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
3322 | Update. | |
3323 | * solib-frv.c (frv_current_sos): Update. | |
3324 | * solib-dsbt.c (dsbt_current_sos): Update. | |
3325 | * solib-darwin.c (darwin_current_sos): Update. | |
3326 | * linux-thread-db.c (inferior_has_bug): Update. | |
3327 | * expprint.c (print_subexp_standard): Update. | |
3328 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
3329 | (ada_exception_message_1): Update. | |
3330 | ||
a5d871dd TT |
3331 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
3332 | ||
3333 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
3334 | ||
670e35fa TT |
3335 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
3336 | ||
3337 | * valprint.c (read_string): Update comment. | |
3338 | * target.c (MIN): Remove. | |
3339 | (target_read_string): Rewrite. | |
3340 | ||
f5272a3b TT |
3341 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
3342 | ||
3343 | * corefile.c (read_memory_string): Remove. | |
3344 | * ada-valprint.c (ada_value_print_ptr): Update. | |
3345 | * ada-lang.h (ada_tag_name): Change return type. | |
3346 | * ada-lang.c (type_from_tag): Update. | |
3347 | (ada_tag_name_from_tsd): Change return type. Use | |
3348 | target_read_string. | |
3349 | (ada_tag_name): Likewise. | |
3350 | * gdbcore.h (read_memory_string): Don't declare. | |
3351 | ||
2c074f49 HD |
3352 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
3353 | ||
3354 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
3355 | ||
6a17d503 SM |
3356 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
3357 | ||
3358 | * NEWS: Mention removed GDBserver host support. | |
3359 | ||
453c733f NC |
3360 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
3361 | ||
3362 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
3363 | ||
2b4e6a3f TT |
3364 | 2020-06-11 Tom Tromey <tom@tromey.com> |
3365 | ||
3366 | PR gdb/18318: | |
3367 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
3368 | ||
4412332f JG |
3369 | 2020-06-09 Jonny Grant <jg@jguk.org> |
3370 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
3371 | ||
3372 | * main.c (captured_main_1): Don't print new line after help. | |
3373 | (print_gdb_help): add mailing list and IRC channel information | |
3374 | to --help. Add new lines between items in the footer. Remove | |
3375 | quotes around bug url. | |
3376 | ||
2f33032a KS |
3377 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
3378 | ||
3379 | PR gdb/21356 | |
3380 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
3381 | Resolve typedefs for type length calculations. | |
3382 | ||
7ab96794 TV |
3383 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
3384 | ||
3385 | PR ada/24713 | |
3386 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
3387 | (write_psymbols): Enable .gdb_index for ada. | |
3388 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
3389 | ada. | |
3390 | ||
e5f3ece2 TV |
3391 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
3392 | ||
3393 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
3394 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
3395 | namei" instead of "const char *name" argument. | |
3396 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
3397 | dw2_symtab_iter_init. | |
3398 | ||
940da03e SM |
3399 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
3400 | ||
3401 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
3402 | to use type::field and field::type instead. | |
3403 | ||
b6cdac4b SM |
3404 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
3405 | ||
3406 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
3407 | to use field::type instead. | |
3408 | ||
5d14b6e5 SM |
3409 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
3410 | ||
3411 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
3412 | Rename `type` field to... | |
3413 | <m_type>: ... this. Change references throughout to use type or | |
3414 | set_type methods. | |
3415 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
3416 | the field's type to use field::set_type instead. | |
3417 | ||
3d967001 SM |
3418 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
3419 | ||
3420 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
3421 | to use type::index_type instead. | |
3422 | ||
262abc0d SM |
3423 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
3424 | ||
3425 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
3426 | methods. | |
3427 | (TYPE_INDEX_TYPE): Use type::index_type. | |
3428 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
3429 | ||
82836c92 TT |
3430 | 2020-06-07 Tom Tromey <tom@tromey.com> |
3431 | ||
3432 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
3433 | parameter. | |
3434 | (generic_value_print): Update. | |
3435 | ||
940dace9 AB |
3436 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
3437 | ||
3438 | Revert commit 982a38f60b0. | |
3439 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
3440 | ||
982a38f6 AB |
3441 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
3442 | ||
3443 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
3444 | avoid use after free. | |
3445 | ||
82f06518 TV |
3446 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
3447 | ||
3448 | * NEWS: Fix typos. | |
3449 | ||
f8c41851 SM |
3450 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
3451 | ||
3452 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
3453 | the per_bfd object. | |
3454 | (dwarf2_read_debug_names): Likewise. | |
3455 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
3456 | object when re-using a per_bfd object with an index. | |
3457 | ||
f9b5d5ea TV |
3458 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
3459 | ||
3460 | PR symtab/26046 | |
3461 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
3462 | children for C++. | |
3463 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
3464 | DW_TAG_subprogram. | |
3465 | ||
f6eee2d0 AB |
3466 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3467 | ||
3468 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
3469 | initializer. | |
3470 | * c-lang.c (c_language_data): Likewise. | |
3471 | (cplus_language_data): Likewise. | |
3472 | (cplus_language::skip_trampoline): New member function. | |
3473 | (asm_language_data): Delete skip_trampoline initializer. | |
3474 | (minimal_language_data): Likewise. | |
3475 | * d-lang.c (d_language_data): Likewise. | |
3476 | * f-lang.c (f_language_data): Likewise. | |
3477 | * go-lang.c (go_language_data): Likewise. | |
3478 | * language.c (unk_lang_trampoline): Delete function. | |
3479 | (skip_language_trampoline): Update. | |
3480 | (unknown_language_data): Delete skip_trampoline initializer. | |
3481 | (auto_language_data): Likewise. | |
3482 | * language.h (language_data): Delete skip_trampoline field. | |
3483 | (language_defn::skip_trampoline): New function. | |
3484 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
3485 | initializer. | |
3486 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
3487 | implementation to objc_language::skip_trampoline. | |
3488 | (objc_language_data): Delete skip_trampoline initializer. | |
3489 | (objc_language::skip_trampoline): New member function with | |
3490 | implementation from objc_skip_trampoline. | |
3491 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
3492 | initializer. | |
3493 | * p-lang.c (pascal_language_data): Likewise. | |
3494 | * rust-lang.c (rust_language_data): Likewise. | |
3495 | ||
0a50df5d AB |
3496 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3497 | ||
3498 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
3499 | (ada_language::demangle): New member function. | |
3500 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
3501 | (cplus_language_data): Delete la_demangle initializer. | |
3502 | (cplus_language::demangle): New member function. | |
3503 | (asm_language_data): Delete la_demangle initializer. | |
3504 | (minimal_language_data): Delete la_demangle initializer. | |
3505 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
3506 | (d_language::demangle): New member function. | |
3507 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
3508 | (f_language::demangle): New member function. | |
3509 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
3510 | (go_language::demangle): New member function. | |
3511 | * language.c (language_demangle): Update. | |
3512 | (unk_lang_demangle): Delete. | |
3513 | (unknown_language_data): Delete la_demangle initializer. | |
3514 | (unknown_language::demangle): New member function. | |
3515 | (auto_language_data): Delete la_demangle initializer. | |
3516 | (auto_language::demangle): New member function. | |
3517 | * language.h (language_data): Delete la_demangle field. | |
3518 | (language_defn::demangle): New function. | |
3519 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
3520 | * objc-lang.c (objc_language_data): Delete la_demangle | |
3521 | initializer. | |
3522 | (objc_language::demangle): New member function. | |
3523 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
3524 | initializer. | |
3525 | * p-lang.c (pascal_language_data): Likewise. | |
3526 | * rust-lang.c (rust_language_data): Likewise. | |
3527 | (rust_language::demangle): New member function. | |
3528 | ||
fbfb0a46 AB |
3529 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3530 | ||
3531 | * ada-lang.c (ada_language_data): Delete la_print_type | |
3532 | initializer. | |
3533 | (ada_language::print_type): New member function. | |
3534 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
3535 | (c_language::print_type): New member function. | |
3536 | (cplus_language_data): Delete la_print_type initializer. | |
3537 | (cplus_language::print_type): New member function. | |
3538 | (asm_language_data): Delete la_print_type initializer. | |
3539 | (asm_language::print_type): New member function. | |
3540 | (minimal_language_data): Delete la_print_type initializer. | |
3541 | (minimal_language::print_type): New member function. | |
3542 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
3543 | (d_language::print_type): New member function. | |
3544 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
3545 | (f_language::print_type): New member function. | |
3546 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
3547 | (go_language::print_type): New member function. | |
3548 | * language.c (unk_lang_print_type): Delete. | |
3549 | (unknown_language_data): Delete la_print_type initializer. | |
3550 | (unknown_language::print_type): New member function. | |
3551 | (auto_language_data): Delete la_print_type initializer. | |
3552 | (auto_language::print_type): New member function. | |
3553 | * language.h (language_data): Delete la_print_type field. | |
3554 | (language_defn::print_type): New function. | |
3555 | (LA_PRINT_TYPE): Update. | |
3556 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
3557 | (m2_language::print_type): New member function. | |
3558 | * objc-lang.c (objc_language_data): Delete la_print_type | |
3559 | initializer. | |
3560 | (objc_language::print_type): New member function. | |
3561 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
3562 | to opencl_language::print_type. | |
3563 | (opencl_language_data): Delete la_print_type initializer. | |
3564 | (opencl_language::print_type): New member function, implementation | |
3565 | from opencl_print_type. | |
3566 | * p-lang.c (pascal_language_data): Delete la_print_type | |
3567 | initializer. | |
3568 | (pascal_language::print_type): New member function. | |
3569 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
3570 | rust_language::print_type. | |
3571 | (rust_language_data): Delete la_print_type initializer. | |
3572 | (rust_language::print_type): New member function, implementation | |
3573 | from rust_print_type. | |
3574 | ||
6f827019 AB |
3575 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3576 | ||
3577 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
3578 | implementation moves to... | |
3579 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
3580 | type. | |
3581 | (ada_language_data): Delete la_sniff_from_mangled_name | |
3582 | initializer. | |
3583 | * c-lang.c (c_language_data): Likewise. | |
3584 | (cplus_language_data): Likewise. | |
3585 | (cplus_language::sniff_from_mangled_name): New member function, | |
3586 | implementation taken from gdb_sniff_from_mangled_name. | |
3587 | (asm_language_data): Delete la_sniff_from_mangled_name | |
3588 | initializer. | |
3589 | (minimal_language_data): Likewise. | |
3590 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
3591 | implementation moves to cplus_language::sniff_from_mangled_name. | |
3592 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
3593 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
3594 | moves to... | |
3595 | (d_language::sniff_from_mangled_name): ...here. | |
3596 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
3597 | * f-lang.c (f_language_data): Likewise. | |
3598 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
3599 | moves to... | |
3600 | (go_language::sniff_from_mangled_name): ...here. | |
3601 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
3602 | * language.c (language_sniff_from_mangled_name): Delete. | |
3603 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
3604 | initializer. | |
3605 | (auto_language_data): Likewise. | |
3606 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
3607 | field. | |
3608 | (language_defn::sniff_from_mangled_name): New function. | |
3609 | (language_sniff_from_mangled_name): Delete declaration. | |
3610 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
3611 | field. | |
3612 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
3613 | implementation moves to... | |
3614 | (objc_language::sniff_from_mangled_name): ...here. | |
3615 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
3616 | * opencl-lang.c (opencl_language_data): Likewise. | |
3617 | * p-lang.c (pascal_language_data): Likewise. | |
3618 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
3619 | implementation moves to... | |
3620 | (rust_language::sniff_from_mangled_name): ...here. | |
3621 | (rust_language_data): Delete la_sniff_from_mangled_name | |
3622 | initializer. | |
3623 | * symtab.c (symbol_find_demangled_name): Call | |
3624 | sniff_from_mangled_name member function. | |
3625 | ||
fb8006fd AB |
3626 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3627 | ||
3628 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
3629 | initializer. | |
3630 | * c-lang.c (c_language_data): Likewise. | |
3631 | (cplus_language_data): Likewise. | |
3632 | (cplus_language::search_name_hash): New member function. | |
3633 | (asm_language_data): Delete la_search_name_hash initializer. | |
3634 | (minimal_language_data): Likewise. | |
3635 | * d-lang.c (d_language_data): Likewise. | |
3636 | * dictionary.c (default_search_name_hash): Rename to... | |
3637 | (language_defn::search_name_hash): ...this. | |
3638 | * f-lang.c (f_language_data): Likewise. | |
3639 | (f_language::search_name_hash): New member function. | |
3640 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
3641 | initializer. | |
3642 | * language.c (unknown_language_data): Likewise. | |
3643 | (auto_language_data): Likewise. | |
3644 | * language.h (struct language_data): Delete la_search_name_hash | |
3645 | field. | |
3646 | (language_defn::search_name_hash): Declare new member function. | |
3647 | (default_search_name_hash): Delete declaration. | |
3648 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
3649 | initializer. | |
3650 | * objc-lang.c (objc_language_data): Likewise. | |
3651 | * opencl-lang.c (opencl_language_data): Likewise. | |
3652 | * p-lang.c (pascal_language_data): Likewise. | |
3653 | * rust-lang.c (rust_language_data): Likewise. | |
3654 | * symtab.c (search_name_hash): Update call. | |
3655 | ||
8e25bafe AB |
3656 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3657 | ||
3658 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
3659 | initializer. | |
3660 | * c-lang.c (class compile_instance): Declare. | |
3661 | (c_language_data): Delete la_get_compile_instance initializer. | |
3662 | (c_language::get_compile_instance): New member function. | |
3663 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
3664 | (cplus_language::get_compile_instance): New member function. | |
3665 | (asm_language_data): Delete la_get_compile_instance initializer. | |
3666 | (minimal_language_data): Likewise. | |
3667 | * c-lang.h (c_get_compile_context): Update comment. | |
3668 | (cplus_get_compile_context): Update comment. | |
3669 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
3670 | on function pointer being NULL. | |
3671 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
3672 | initializer. | |
3673 | * f-lang.c (f_language_data): Likewise. | |
3674 | * go-lang.c (go_language_data): Likewise. | |
3675 | * language.c (unknown_language_data): Likewise. | |
3676 | (auto_language_data): Likewise. | |
3677 | * language.h (language_data): Delete la_get_compile_instance field. | |
3678 | (language_defn::get_compile_instance): New member function. | |
3679 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
3680 | initializer. | |
3681 | * objc-lang.c (objc_language_data): Likewise. | |
3682 | * opencl-lang.c (opencl_language_data): Likewise. | |
3683 | * p-lang.c (pascal_language_data): Likewise. | |
3684 | * rust-lang.c (rust_language_data): Likewise. | |
3685 | ||
4009ee92 AB |
3686 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3687 | ||
3688 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
3689 | (ada_iterate_over_symbols): Delete, move implementation to... | |
3690 | (ada_language::iterate_over_symbols): ...here, a new member | |
3691 | function, rewrite to use range based for loop. | |
3692 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
3693 | * c-lang.c (c_language_data): Likewise. | |
3694 | (cplus_language_data): Likewise. | |
3695 | (asm_language_data): Likewise. | |
3696 | (minimal_language_data): Likewise. | |
3697 | * d-lang.c (d_language_data): Likewise. | |
3698 | * f-lang.c (f_language_data): Likewise. | |
3699 | * go-lang.c (go_language_data): Likewise. | |
3700 | * language.c (unknown_language_data): Likewise. | |
3701 | (auto_language_data): Likewise. | |
3702 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
3703 | (language_defn::iterate_over_symbols): New member function. | |
3704 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
3705 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
3706 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
3707 | initializer. | |
3708 | * objc-lang.c (objc_language_data): Likewise. | |
3709 | * opencl-lang.c (opencl_language_data): Likewise. | |
3710 | * p-lang.c (pascal_language_data): Likewise. | |
3711 | * rust-lang.c (rust_language_data): Likewise. | |
3712 | ||
54f4ca46 AB |
3713 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3714 | ||
3715 | * ada-lang.c (ada_language_data): Delete | |
3716 | la_lookup_transparent_type initializer. | |
3717 | * c-lang.c (c_language_data): Likewise. | |
3718 | (cplus_language_data): Likewise. | |
3719 | (cplus_language::lookup_transparent_type): New member function. | |
3720 | (asm_language_data): Delete la_lookup_transparent_type | |
3721 | initializer. | |
3722 | (minimal_language_data): Likewise. | |
3723 | * d-lang.c (d_language_data): Likewise. | |
3724 | * f-lang.c (f_language_data): Likewise. | |
3725 | * go-lang.c (go_language_data): Likewise. | |
3726 | * language.c (unknown_language_data): Likewise. | |
3727 | (auto_language_data): Likewise. | |
3728 | * language.h (struct language_data): Delete | |
3729 | la_lookup_transparent_type field. | |
3730 | (language_defn::lookup_transparent_type): New member function. | |
3731 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
3732 | initializer. | |
3733 | * objc-lang.c (objc_language_data): Likewise. | |
3734 | * opencl-lang.c (opencl_language_data): Likewise. | |
3735 | * p-lang.c (pascal_language_data): Likewise. | |
3736 | * rust-lang.c (rust_language_data): Likewise. | |
3737 | * symtab.c (symbol_matches_domain): Update call. | |
3738 | ||
1fb314aa AB |
3739 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3740 | ||
3741 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
3742 | implementation to... | |
3743 | (ada_language::language_arch_info): ...here, a new member | |
3744 | function. | |
3745 | (ada_language_data): Delete la_language_arch_info. | |
3746 | * c-lang.c (c_language_data): Likewise. | |
3747 | (c_language::language_arch_info): New member function. | |
3748 | (cplus_language_arch_info): Delete function, move | |
3749 | implementation to... | |
3750 | (cplus_language::language_arch_info): ...here, a new member | |
3751 | function. | |
3752 | (cplus_language_data): Delete la_language_arch_info. | |
3753 | (asm_language_data): Likewise. | |
3754 | (asm_language::language_arch_info): New member function. | |
3755 | (minimal_language_data): Delete la_language_arch_info. | |
3756 | (minimal_language::language_arch_info): New member function. | |
3757 | * d-lang.c (d_language_arch_info): Delete function, move | |
3758 | implementation to... | |
3759 | (d_language::language_arch_info): ...here, a new member | |
3760 | function. | |
3761 | (d_language_data): Delete la_language_arch_info. | |
3762 | * f-lang.c (f_language_arch_info): Delete function, move | |
3763 | implementation to... | |
3764 | (f_language::language_arch_info): ...here, a new member | |
3765 | function. | |
3766 | (f_language_data): Delete la_language_arch_info. | |
3767 | * go-lang.c (go_language_arch_info): Delete function, move | |
3768 | implementation to... | |
3769 | (go_language::language_arch_info): ...here, a new member | |
3770 | function. | |
3771 | (go_language_data): Delete la_language_arch_info. | |
3772 | * language.c (unknown_language_data): Likewise. | |
3773 | (unknown_language::language_arch_info): New member function. | |
3774 | (auto_language_data): Delete la_language_arch_info. | |
3775 | (auto_language::language_arch_info): New member function. | |
3776 | (language_gdbarch_post_init): Update call to | |
3777 | la_language_arch_info. | |
3778 | * language.h (language_data): Delete la_language_arch_info | |
3779 | function pointer. | |
3780 | (language_defn::language_arch_info): New function. | |
3781 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
3782 | implementation to... | |
3783 | (m2_language::language_arch_info): ...here, a new member | |
3784 | function. | |
3785 | (m2_language_data): Delete la_language_arch_info. | |
3786 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
3787 | implementation to... | |
3788 | (objc_language::language_arch_info): ...here, a new member | |
3789 | function. | |
3790 | (objc_language_data): Delete la_language_arch_info. | |
3791 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
3792 | implementation to... | |
3793 | (opencl_language::language_arch_info): ...here, a new member | |
3794 | function. | |
3795 | (opencl_language_data): Delete la_language_arch_info. | |
3796 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
3797 | implementation to... | |
3798 | (pascal_language::language_arch_info): ...here, a new member | |
3799 | function. | |
3800 | (pascal_language_data): Delete la_language_arch_info. | |
3801 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
3802 | implementation to... | |
3803 | (rust_language::language_arch_info): ...here, a new member | |
3804 | function. | |
3805 | (rust_language_data): Delete la_language_arch_info. | |
3806 | ||
48448202 AB |
3807 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3808 | ||
3809 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
3810 | initializer. | |
3811 | * c-lang.c (c_language_data): Likewise. | |
3812 | (cplus_language_data): Likewise. | |
3813 | (cplus_language::pass_by_reference_info): New method. | |
3814 | (asm_language_data): Delete la_pass_by_reference initializer. | |
3815 | (minimal_language_data): Likewise. | |
3816 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
3817 | default_pass_by_reference. | |
3818 | * d-lang.c (d_language_data): Likewise. | |
3819 | * f-lang.c (f_language_data): Likewise. | |
3820 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
3821 | default_pass_by_reference. | |
3822 | * go-lang.c (go_language_data): Likewise. | |
3823 | * language.c (language_pass_by_reference): Update. | |
3824 | (default_pass_by_reference): Delete. | |
3825 | (unknown_language_data): Delete la_pass_by_reference | |
3826 | initializer. | |
3827 | (auto_language_data): Likewise. | |
3828 | * language.h (struct language_data): Delete la_pass_by_reference | |
3829 | field. | |
3830 | (language_defn::pass_by_reference_info): New member function. | |
3831 | (default_pass_by_reference): Delete declaration. | |
3832 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
3833 | initializer. | |
3834 | * objc-lang.c (objc_language_data): Likewise. | |
3835 | * opencl-lang.c (opencl_language_data): Likewise. | |
3836 | * p-lang.c (pascal_language_data): Likewise. | |
3837 | * rust-lang.c (rust_language_data): Likewise. | |
3838 | ||
15e5fd35 AB |
3839 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3840 | ||
3841 | * ada-lang.c (ada_read_var_value): Delete function, move | |
3842 | implementation to... | |
3843 | (ada_language::read_var_value): ...here. | |
3844 | (ada_language_data): Delete la_read_var_value initializer. | |
3845 | * c-lang.c (c_language_data): Likewise. | |
3846 | (cplus_language_data): Likewise. | |
3847 | (minimal_language_data): Likewise. | |
3848 | * d-lang.c (d_language_data): Likewise. | |
3849 | * f-lang.c (f_language_data): Likewise. | |
3850 | * findvar.c (default_read_var_value): Rename to... | |
3851 | (language_defn::read_var_value): ...this. | |
3852 | * findvar.c (read_var_value): Update header comment, and change to | |
3853 | call member function instead of function pointer. | |
3854 | * go-lang.c (go_language_data): Likewise. | |
3855 | * language.c (unknown_language_data): Delete la_read_var_value | |
3856 | initializer. | |
3857 | (auto_language_data): Likewise. | |
3858 | * language.h (struct language_data): Delete la_read_var_value | |
3859 | field. | |
3860 | (language_defn::read_var_value): New member function. | |
3861 | (default_read_var_value): Delete declaration. | |
3862 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
3863 | initializer. | |
3864 | * objc-lang.c (objc_language_data): Likewise. | |
3865 | * opencl-lang.c (opencl_language_data): Likewise. | |
3866 | * p-lang.c (pascal_language_data): Likewise. | |
3867 | * rust-lang.c (rust_language_data): Likewise. | |
3868 | * value.h (default_read_var_value): Delete declaration. | |
3869 | ||
5bd40f2a AB |
3870 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3871 | ||
3872 | * ada-lang.c (ada_print_array_index): Delete function, move | |
3873 | implementation to... | |
3874 | (ada_language::print_array_index): ...here. | |
3875 | (ada_language_data): Delete la_print_array_index initializer. | |
3876 | * c-lang.c (c_language_data): Likewise. | |
3877 | (cplus_language_data): Likewise. | |
3878 | (minimal_language_data): Likewise. | |
3879 | * d-lang.c (d_language_data): Likewise. | |
3880 | * f-lang.c (f_language_data): Likewise. | |
3881 | * go-lang.c (go_language_data): Likewise. | |
3882 | * language.c (default_print_array_index): Delete function, move | |
3883 | implementation to... | |
3884 | (language_defn::print_array_index): ...here. | |
3885 | (unknown_language_data): Delete la_print_array_index initializer. | |
3886 | (auto_language_data): Likewise. | |
3887 | * language.h (struct language_data): Delete la_print_array_index | |
3888 | field. | |
3889 | (language_defn::print_array_index): New member function. | |
3890 | (LA_PRINT_ARRAY_INDEX): Update. | |
3891 | (default_print_array_index): Delete declaration. | |
3892 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
3893 | initializer. | |
3894 | * objc-lang.c (objc_language_data): Likewise. | |
3895 | * opencl-lang.c (opencl_language_data): Likewise. | |
3896 | * p-lang.c (pascal_language_data): Likewise. | |
3897 | * rust-lang.c (rust_language_data): Likewise. | |
3898 | ||
0874fd07 AB |
3899 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
3900 | ||
3901 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
3902 | (ada_language_data): ...this. | |
3903 | (class ada_language): New class. | |
3904 | (ada_language_defn): New static global. | |
3905 | * gdb/c-lang.c (c_language_defn): Convert to... | |
3906 | (c_language_data): ...this. | |
3907 | (class c_language): New class. | |
3908 | (c_language_defn): New static global. | |
3909 | (cplus_language_defn): Convert to... | |
3910 | (cplus_language_data): ...this. | |
3911 | (class cplus_language): New class. | |
3912 | (cplus_language_defn): New static global. | |
3913 | (asm_language_defn): Convert to... | |
3914 | (asm_language_data): ...this. | |
3915 | (class asm_language): New class. | |
3916 | (asm_language_defn): New static global. | |
3917 | (minimal_language_defn): Convert to... | |
3918 | (minimal_language_data): ...this. | |
3919 | (class minimal_language): New class. | |
3920 | (minimal_language_defn): New static global. | |
3921 | * gdb/d-lang.c (d_language_defn): Convert to... | |
3922 | (d_language_data): ...this. | |
3923 | (class d_language): New class. | |
3924 | (d_language_defn): New static global. | |
3925 | * gdb/f-lang.c (f_language_defn): Convert to... | |
3926 | (f_language_data): ...this. | |
3927 | (class f_language): New class. | |
3928 | (f_language_defn): New static global. | |
3929 | * gdb/go-lang.c (go_language_defn): Convert to... | |
3930 | (go_language_data): ...this. | |
3931 | (class go_language): New class. | |
3932 | (go_language_defn): New static global. | |
3933 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
3934 | (current_language): Initialize to nullptr, real initialization is | |
3935 | moved to _initialize_language. | |
3936 | (languages): Delete global. | |
3937 | (language_defn::languages): Define. | |
3938 | (set_language_command): Use language_defn::languages. | |
3939 | (set_language): Likewise. | |
3940 | (range_error): Likewise. | |
3941 | (language_enum): Likewise. | |
3942 | (language_def): Likewise. | |
3943 | (add_set_language_command): Use language_def::languages for the | |
3944 | language list, and language_def to lookup language pointers. | |
3945 | (skip_language_trampoline): Use language_defn::languages. | |
3946 | (unknown_language_defn): Convert to... | |
3947 | (unknown_language_data): ...this. | |
3948 | (class unknown_language): New class. | |
3949 | (unknown_language_defn): New static global. | |
3950 | (auto_language_defn): Convert to... | |
3951 | (auto_language_data): ...this. | |
3952 | (class auto_language): New class. | |
3953 | (auto_language_defn): New static global. | |
3954 | (language_gdbarch_post_init): Use language_defn::languages. | |
3955 | (_initialize_language): Initialize current_language. | |
3956 | * gdb/language.h (struct language_defn): Rename to... | |
3957 | (struct language_data): ...this. | |
3958 | (struct language_defn): New. | |
3959 | (auto_language_defn): Delete. | |
3960 | (unknown_language_defn): Delete. | |
3961 | (minimal_language_defn): Delete. | |
3962 | (ada_language_defn): Delete. | |
3963 | (asm_language_defn): Delete. | |
3964 | (c_language_defn): Delete. | |
3965 | (cplus_language_defn): Delete. | |
3966 | (d_language_defn): Delete. | |
3967 | (f_language_defn): Delete. | |
3968 | (go_language_defn): Delete. | |
3969 | (m2_language_defn): Delete. | |
3970 | (objc_language_defn): Delete. | |
3971 | (opencl_language_defn): Delete. | |
3972 | (pascal_language_defn): Delete. | |
3973 | (rust_language_defn): Delete. | |
3974 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
3975 | (m2_language_data): ...this. | |
3976 | (class m2_language): New class. | |
3977 | (m2_language_defn): New static global. | |
3978 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
3979 | (objc_language_data): ...this. | |
3980 | (class objc_language): New class. | |
3981 | (objc_language_defn): New static global. | |
3982 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
3983 | (opencl_language_data): ...this. | |
3984 | (class opencl_language): New class. | |
3985 | (opencl_language_defn): New static global. | |
3986 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
3987 | (pascal_language_data): ...this. | |
3988 | (class pascal_language): New class. | |
3989 | (pascal_language_defn): New static global. | |
3990 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
3991 | language pointer, update comment format. | |
3992 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
3993 | (rust_language_data): ...this. | |
3994 | (class rust_language): New class. | |
3995 | (rust_language_defn): New static global. | |
3996 | ||
1313c56e AB |
3997 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
3998 | ||
3999 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
4000 | member variable. | |
4001 | <m_stmt_at_address>: New member variable. | |
4002 | (lnp_state_machine::record_line): Don't record some lines, update | |
4003 | tracking of is_stmt at the same address. | |
4004 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
4005 | variables. | |
4006 | ||
b7ed9f3d ST |
4007 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4008 | ||
4009 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
4010 | "-include gnu-nat-mig.h". | |
4011 | * gnu-nat-mig.h: New file. | |
4012 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
4013 | (exc_server, msg_reply_server, notify_server, | |
4014 | process_reply_server): Remove declarations. | |
4015 | ||
14a8ad62 ST |
4016 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4017 | ||
4018 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
4019 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
4020 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
4021 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
4022 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
4023 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
4024 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
4025 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
4026 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
4027 | to gnu_nat_target class. | |
4028 | * gnu-nat.c: Likewise. | |
4029 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
4030 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
4031 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
4032 | object. | |
4033 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
4034 | instead of `gnu_target'. | |
4035 | ||
0af5e106 ST |
4036 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4037 | ||
4038 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
4039 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
4040 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
4041 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
4042 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
4043 | i386_gnu_sigcontext_addr): New functions | |
4044 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
4045 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
4046 | tdep. | |
4047 | ||
078f2fc9 ST |
4048 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4049 | ||
4050 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
4051 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
4052 | true. | |
4053 | ||
53dff92c ST |
4054 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4055 | ||
4056 | * gnu-nat.h (gnu_target): New variable declaration. | |
4057 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
4058 | gnu_target. | |
4059 | * gnu-nat.c (gnu_target): New variable. | |
4060 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
4061 | add_thread_silent, and add_thread calls. | |
4062 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
4063 | add_thread_silent, thread_change_ptid call. | |
4064 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
4065 | call. | |
4066 | ||
5a8b8627 ST |
4067 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4068 | ||
4069 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
4070 | (gnu_nat_target::find_memory_regions): Remove unused | |
4071 | `old_address' variable. | |
4072 | ||
366f550a ST |
4073 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4074 | ||
4075 | * gnu-nat.c: Include "gdbarch.h". | |
4076 | ||
f14871bf ST |
4077 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4078 | ||
4079 | * reply_mig_hack.awk (Error return): Cast function through | |
4080 | void *, to bypass compiler function call check. | |
4081 | ||
c6887cfb ST |
4082 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4083 | ||
4084 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
4085 | $(srcdir)/reply_mig_hack.awk. | |
4086 | ||
6930bffe ST |
4087 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
4088 | ||
4089 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
4090 | ||
112c22ed JG |
4091 | 2020-05-30 Jonny Grant <jg@jguk.org> |
4092 | ||
4093 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
4094 | ||
f68f85b5 PA |
4095 | 2020-05-30 Pedro Alves <palves@redhat.com> |
4096 | ||
4097 | * cp-support.c (replace_typedefs_template): New. | |
4098 | (replace_typedefs_qualified_name): Handle | |
4099 | DEMANGLE_COMPONENT_TEMPLATE. | |
4100 | ||
976ca316 SM |
4101 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
4102 | ||
4103 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
4104 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
4105 | dwarf2/index-write.h, dwarf2/line-header.c, | |
4106 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
4107 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
4108 | variables and fields from `dwarf2_per_objfile` to just | |
4109 | `per_objfile` throughout. | |
4110 | ||
989ade05 SM |
4111 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
4112 | ||
4113 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
4114 | <push_dwarf_reg_entry_value>: Add comment. | |
4115 | ||
c47bae85 KB |
4116 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
4117 | Keith Seitz <keiths@redhat.com> | |
4118 | ||
4119 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
4120 | instead of PyEval_ReleaseLock. | |
4121 | (class gdbpy_gil): Move to earlier in file. | |
4122 | (finalize_python): Set gdb_python_initialized. | |
4123 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
4124 | when not initialized. | |
4125 | ||
44486dcf SM |
4126 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
4127 | ||
4128 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
4129 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
4130 | per_objfile with caller_per_objfile. | |
4131 | ||
f030440d TV |
4132 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
4133 | ||
4134 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
4135 | PR gold/15646 workaround to symbol kind "type". | |
4136 | ||
f0fbb768 TT |
4137 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
4138 | ||
4139 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
4140 | ||
af0b2a3e TT |
4141 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
4142 | ||
4143 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
4144 | Use htab_find_with_hash. | |
4145 | <add_abbrev>: Remove "abbrev_number" parameter. | |
4146 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
4147 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
4148 | (hash_abbrev): Add comment. | |
4149 | (abbrev_table::lookup_abbrev): Move to header file. | |
4150 | (abbrev_table::read): Update. | |
4151 | ||
7d00ffec TT |
4152 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
4153 | ||
4154 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
4155 | method. | |
4156 | <canonical_name>: New member. | |
4157 | <raw_name>: Rename from "name". | |
4158 | (partial_die_info): Initialize canonical_name. | |
4159 | (scan_partial_symbols): Check raw_name. | |
4160 | (partial_die_parent_scope, partial_die_full_name) | |
4161 | (add_partial_symbol, add_partial_subprogram) | |
4162 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
4163 | (partial_die_info::name): New method. | |
4164 | (partial_die_info::read, guess_partial_die_structure_name) | |
4165 | (partial_die_info::fixup): Update. | |
4166 | ||
697bba18 TT |
4167 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
4168 | ||
4169 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
4170 | <get_ref_die_offset>: Inline. | |
4171 | <get_ref_die_offset_complaint>: New method. | |
4172 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
4173 | (attribute::get_ref_die_offset_complaint): Rename from | |
4174 | get_ref_die_offset. Just issue complaint. | |
4175 | ||
c17ace43 HD |
4176 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
4177 | ||
4178 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
4179 | ||
96445f0b HD |
4180 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
4181 | ||
4182 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
4183 | ||
ac637ec3 HD |
4184 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
4185 | ||
4186 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
4187 | Don't close thread handle. | |
4188 | ||
17ee85fc TT |
4189 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4190 | Simon Marchi <simon.marchi@efficios.com> | |
4191 | ||
4192 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
4193 | shared_ptr. | |
4194 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
4195 | member. | |
4196 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
4197 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
4198 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
4199 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
4200 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
4201 | shared. | |
4202 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
4203 | short-circuit when sharing. | |
4204 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
4205 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
4206 | ||
39b16f87 SM |
4207 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4208 | ||
4209 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
4210 | to... | |
4211 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
4212 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
4213 | ||
fcf23d5b SM |
4214 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4215 | ||
4216 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
4217 | build_name_components, find_name_components_bounds>: | |
4218 | Add per_objfile parameter. | |
4219 | (struct mapped_index) <symbol_name_at>: Likewise. | |
4220 | (struct mapped_debug_names): Remove constructor. | |
4221 | <dwarf2_per_objfile>: Remove field. | |
4222 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
4223 | (mapped_index_base::find_name_components_bounds, | |
4224 | mapped_index_base::build_name_components, | |
4225 | dw2_expand_symtabs_matching_symbol): Likewise. | |
4226 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
4227 | (check_match): Likewise. | |
4228 | (check_find_bounds_finds): Likewise. | |
4229 | (test_mapped_index_find_name_component_bounds): Update. | |
4230 | (CHECK_MATCH): Update. | |
4231 | (dw2_expand_symtabs_matching): Update. | |
4232 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
4233 | per_objfile parameter. | |
4234 | <find_vec_in_debug_names>: Likewise. | |
4235 | <m_per_objfile>: New field. | |
4236 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
4237 | parameter. | |
4238 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
4239 | (dw2_debug_names_iterator::next): Update. | |
4240 | (dw2_debug_names_lookup_symbol): Update. | |
4241 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
4242 | (dw2_debug_names_map_matching_symbols): Update. | |
4243 | (dw2_debug_names_expand_symtabs_matching): Update. | |
4244 | (dwarf2_read_debug_names): Update. | |
4245 | ||
7188ed02 SM |
4246 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4247 | ||
4248 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
4249 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
4250 | move to dwarf2_per_objfile. | |
4251 | <read_in_chain>: Remove. | |
4252 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
4253 | remove_all_cus, age_comp_units>: New methods. | |
4254 | <m_dwarf2_cus>: New member. | |
4255 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
4256 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
4257 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
4258 | moved to methods of dwarf2_per_objfile. | |
4259 | (dwarf2_clear_marks): Remove. | |
4260 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
4261 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
4262 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
4263 | (dwarf2_per_objfile::remove_all_cus): New. | |
4264 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
4265 | Update. | |
4266 | (load_cu): Update. | |
4267 | (dw2_do_instantiate_symtab): Adjust. | |
4268 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
4269 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
4270 | (cutu_reader::cutu_reader): Likewise. | |
4271 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
4272 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
4273 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
4274 | and dwarf2_per_objfile::age_comp_units. | |
4275 | (load_partial_comp_unit): Update. | |
4276 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
4277 | (process_queue): Likewise. | |
4278 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
4279 | backlink. | |
4280 | (dwarf2_read_addr_index): Likewise. | |
4281 | (follow_die_offset): Likewise. | |
4282 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
4283 | (dwarf2_fetch_constant_bytes): Likewise. | |
4284 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
4285 | (follow_die_sig_1): Likewise. | |
4286 | (load_full_type_unit): Likewise. | |
4287 | (read_signatured_type): Likewise. | |
4288 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
4289 | (dwarf2_cu::~dwarf2_cu): Remove. | |
4290 | (dwarf2_per_objfile::get_cu): New. | |
4291 | (dwarf2_per_objfile::set_cu): New. | |
4292 | (age_cached_comp_units): Rename to... | |
4293 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
4294 | to std::unordered_map. | |
4295 | (free_one_cached_comp_unit): Rename to... | |
4296 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
4297 | to std::unordered_map. | |
4298 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
4299 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
4300 | a dwarf2_per_objfile in data. | |
4301 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
4302 | (dwarf2_clear_marks): Remove. | |
4303 | ||
2e671100 SM |
4304 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4305 | ||
4306 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
4307 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
4308 | (init_tu_and_read_dwo_dies): Likewise. | |
4309 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
4310 | (cutu_reader::cutu_reader): Likewise. | |
4311 | (load_partial_comp_unit): Likewise. | |
4312 | (process_psymtab_comp_unit): Update. | |
4313 | (build_type_psymtabs_1): Update. | |
4314 | (process_skeletonless_type_unit): Update. | |
4315 | (load_full_comp_unit): Update. | |
4316 | (find_partial_die): Update. | |
4317 | (dwarf2_read_addr_index): Update. | |
4318 | (read_signatured_type): Update. | |
4319 | ||
2e6a9f79 SM |
4320 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4321 | ||
4322 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
4323 | m_header_read_in>: New fields. | |
4324 | <get_header>: New method. | |
4325 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
4326 | (dwarf2_per_cu_data::get_header): New. | |
4327 | (dwarf2_per_cu_data::addr_size): Update. | |
4328 | (dwarf2_per_cu_data::offset_size): Update. | |
4329 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
4330 | ||
1b555f17 SM |
4331 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4332 | ||
4333 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
4334 | (dw2_do_instantiate_symtab): Update. | |
4335 | (queue_and_load_all_dwo_tus): Change parameter from | |
4336 | dwarf2_per_cu_data to dwarf2_cu. | |
4337 | (dwarf2_fetch_die_loc_sect_off): Update. | |
4338 | (dwarf2_fetch_constant_bytes): Update. | |
4339 | (dwarf2_fetch_die_type_sect_off): Update. | |
4340 | ||
8fc0b21d SM |
4341 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4342 | ||
4343 | * dwarf2/read.c (process_full_comp_unit, | |
4344 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
4345 | Add dwarf2_cu parameter. | |
4346 | (process_queue): Update. | |
4347 | ||
168c9250 SM |
4348 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4349 | ||
4350 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
4351 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
4352 | (create_cus_from_index_list): Likewise. | |
4353 | (create_cus_from_index): Likewise. | |
4354 | (create_signatured_type_table_from_index): Likewise. | |
4355 | (create_cus_from_debug_names_list): Likewise. | |
4356 | (create_cus_from_debug_names): Likewise. | |
4357 | (dwarf2_read_gdb_index): Update. | |
4358 | (dwarf2_read_debug_names): Update. | |
4359 | ||
e286671b TT |
4360 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4361 | Simon Marchi <simon.marchi@efficios.com> | |
4362 | ||
4363 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
4364 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
4365 | New methods. | |
4366 | <m_type_map>: New member. | |
4367 | (struct signatured_type) <type>: Remove. | |
4368 | * dwarf2/read.c | |
4369 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
4370 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
4371 | (get_signatured_type): Use new methods. | |
4372 | ||
8adb8487 TT |
4373 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4374 | Simon Marchi <simon.marchi@efficios.com> | |
4375 | ||
4376 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
4377 | (struct dwarf2_per_objfile) <type_units>: New member. | |
4378 | <get_type_unit_group_unshareable>: New method. | |
4379 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
4380 | num_symtabs, symtabs>: Remove; move to | |
4381 | type_unit_group_unshareable. | |
4382 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
4383 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
4384 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
4385 | ||
127bbf4b SM |
4386 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4387 | ||
4388 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
4389 | <dwarf2_per_objfile>: Remove. | |
4390 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
4391 | dwarf2_per_objfile. | |
4392 | (create_signatured_type_table_from_index): Likewise. | |
4393 | (create_signatured_type_table_from_debug_names): Likewise. | |
4394 | (create_debug_type_hash_table): Likewise. | |
4395 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
4396 | (create_type_unit_group): Likewise. | |
4397 | (read_comp_units_from_section): Likewise. | |
4398 | (create_cus_hash_table): Likewise. | |
4399 | ||
f6e649dd SM |
4400 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4401 | ||
4402 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
4403 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
4404 | (compute_compunit_symtab_includes): Likewise. | |
4405 | (dwarf2_cu::start_symtab): Likewise. | |
4406 | ||
aa66c379 SM |
4407 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4408 | ||
4409 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
4410 | parameter. | |
4411 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
4412 | (read_namespace_alias): Update. | |
4413 | (lookup_die_type): Update. | |
4414 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
4415 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
4416 | Update. | |
4417 | (disassemble_dwarf_expression): Update. | |
4418 | ||
120ce1b5 SM |
4419 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4420 | ||
4421 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
4422 | dwarf2_per_objfile parameter, assign new parameter. | |
4423 | <per_objfile>: New field. | |
4424 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
4425 | dwarf2_per_objfile parameter. | |
4426 | (queue_comp_unit): Likewise. | |
4427 | (dw2_do_instantiate_symtab): Update. | |
4428 | (process_psymtab_comp_unit): Update. | |
4429 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
4430 | (process_imported_unit_die): Update. | |
4431 | (queue_and_load_dwo_tu): Update. | |
4432 | (follow_die_offset): Update. | |
4433 | (follow_die_sig_1): Update. | |
4434 | ||
9f47c707 SM |
4435 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4436 | ||
4437 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
4438 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
4439 | (read_call_site_scope): Assign per_objfile. | |
4440 | (dwarf2_per_cu_data::objfile): Remove. | |
4441 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
4442 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
4443 | dwarf2_per_objfile parameter. | |
4444 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
4445 | dwarf2_per_objfile parameter. | |
4446 | (dwarf_expr_reg_to_entry_parameter): Add output | |
4447 | dwarf2_per_objfile parameter. | |
4448 | (locexpr_get_frame_base): Update. | |
4449 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
4450 | <push_dwarf_reg_entry_value>: Update. | |
4451 | <call_site_to_target_addr>: Update. | |
4452 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
4453 | parameter. | |
4454 | (value_of_dwarf_reg_entry): Update. | |
4455 | (rw_pieced_value): Update. | |
4456 | (indirect_synthetic_pointer): Update. | |
4457 | (dwarf2_evaluate_property): Update. | |
4458 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
4459 | parameter. | |
4460 | (locexpr_read_variable): Update. | |
4461 | (locexpr_get_symbol_read_needs): Update. | |
4462 | (loclist_read_variable): Update. | |
4463 | ||
14095eb3 SM |
4464 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4465 | ||
4466 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
4467 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
4468 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
4469 | parameter. | |
4470 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
4471 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
4472 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
4473 | parameter. | |
4474 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
4475 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
4476 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
4477 | dwarf_variable_value>: Update. | |
4478 | (fetch_const_value_from_synthetic_pointer): Add | |
4479 | dwarf2_per_objfile parameter. | |
4480 | (fetch_const_value_from_synthetic_pointer): Update. | |
4481 | (coerced_pieced_ref): Update. | |
4482 | (class symbol_needs_eval_context) <dwarf_call, | |
4483 | dwarf_variable_value>: Update. | |
4484 | (dwarf2_compile_expr_to_ax): Update. | |
4485 | ||
3c3cd3d4 SM |
4486 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4487 | ||
4488 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
4489 | parameter. | |
4490 | (dwarf2_evaluate_loc_desc_full): Update. | |
4491 | ||
82ca3f51 SM |
4492 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4493 | ||
4494 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
4495 | parameter. | |
4496 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
4497 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
4498 | dwarf2_per_objfile parameter. | |
4499 | (decode_debug_loc_dwo_addresses): Likewise. | |
4500 | (dwarf2_find_location_expression): Update. | |
4501 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
4502 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
4503 | parameter. | |
4504 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
4505 | parameter. | |
4506 | (locexpr_describe_location_1): Likewise. | |
4507 | (locexpr_describe_location): Update. | |
4508 | ||
4b167ea1 SM |
4509 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4510 | ||
4511 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
4512 | Remove. | |
4513 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
4514 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
4515 | (dwarf2_compile_property_to_c): Update. | |
4516 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
4517 | use text offset from objfile. | |
4518 | (locexpr_tracepoint_var_ref): Update. | |
4519 | (locexpr_generate_c_location): Update. | |
4520 | (loclist_describe_location): Update. | |
4521 | (loclist_tracepoint_var_ref): Update. | |
4522 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
4523 | dwarf2_per_objfile parameter. | |
4524 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
4525 | use text offset from objfile. | |
4526 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
4527 | ||
89b07335 SM |
4528 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4529 | ||
4530 | * dwarf2/expr.h (struct dwarf_expr_context) | |
4531 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
4532 | <offset>: Remove. | |
4533 | <per_objfile>: New member. | |
4534 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
4535 | dwarf2_per_objfile parameter. Don't set offset, set | |
4536 | per_objfile. | |
4537 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
4538 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
4539 | a dwarf2_per_objfile object instead of an offset. | |
4540 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
4541 | constructor. | |
4542 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
4543 | to dwarf2_expr_executor constructor. Don't set offset. | |
4544 | (dwarf2_fetch_cfa_info): Update. | |
4545 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
4546 | <per_objfile>: New field. | |
4547 | (dwarf2_frame_cache): Update. | |
4548 | (dwarf2_frame_prev_register): Update. | |
4549 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
4550 | <dwarf_evaluate_loc_desc>: Add constructor. | |
4551 | (dwarf2_evaluate_loc_desc_full): Update. | |
4552 | (dwarf2_locexpr_baton_eval): Update. | |
4553 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
4554 | Add constructor. | |
4555 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
4556 | ||
293e7e51 SM |
4557 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4558 | ||
4559 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
4560 | addr_sized_int_type>: Move to dwarf2_cu. | |
4561 | <int_type>: Move to dwarf2_per_objfile. | |
4562 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
4563 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
4564 | addr_sized_int_type>: Move here. | |
4565 | (read_func_scope): Update. | |
4566 | (read_array_type): Update. | |
4567 | (read_tag_string_type): Update. | |
4568 | (attr_to_dynamic_prop): Update. | |
4569 | (dwarf2_per_cu_data::int_type): Rename to... | |
4570 | (dwarf2_per_objfile::int_type): ... this. | |
4571 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
4572 | (dwarf2_cu::addr_sized_int_type): ... this. | |
4573 | (read_subrange_type): Update. | |
4574 | (dwarf2_per_cu_data::addr_type): Rename to... | |
4575 | (dwarf2_cu::addr_type): ... this. | |
4576 | (set_die_type): Update. | |
4577 | ||
64874a40 SM |
4578 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4579 | ||
4580 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
4581 | data through per_cu->cu. | |
4582 | ||
4ab09049 SM |
4583 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4584 | ||
4585 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
4586 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
4587 | (lookup_dwo_type_unit): Likewise. | |
4588 | (read_cutu_die_from_dwo): Likewise. | |
4589 | (lookup_dwo_unit): Likewise. | |
4590 | (open_and_init_dwo_file): Likewise. | |
4591 | (lookup_dwo_cutu): Likewise. | |
4592 | (lookup_dwo_comp_unit): Likewise. | |
4593 | (lookup_dwo_type_unit): Likewise. | |
4594 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
4595 | (cutu_reader::cutu_reader): Update. | |
4596 | ||
47b14e86 SM |
4597 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4598 | ||
4599 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
4600 | parameter. | |
4601 | (process_full_type_unit): Likewise. | |
4602 | (process_queue): Update. | |
4603 | ||
43182c09 SM |
4604 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4605 | ||
4606 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
4607 | dwarf2_per_objfile parameter. | |
4608 | (compute_compunit_symtab_includes): Likewise. | |
4609 | (process_cu_includes): Update. | |
4610 | ||
7aa104c4 SM |
4611 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4612 | ||
4613 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
4614 | parameter. | |
4615 | (create_type_unit_group): Update. | |
4616 | (process_psymtab_comp_unit_reader): Update. | |
4617 | (build_type_psymtabs_reader): Update. | |
4618 | ||
e3beb21d SM |
4619 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4620 | ||
4621 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
4622 | object through m_this_cu->cu. | |
4623 | ||
d460f660 SM |
4624 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4625 | ||
4626 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
4627 | the info parameter. | |
4628 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
4629 | ||
ab432490 SM |
4630 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4631 | ||
4632 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
4633 | per_objfile parameter. | |
4634 | (load_full_type_unit): Add per_objfile parameter. | |
4635 | (read_signatured_type): Likewise. | |
4636 | (load_full_comp_unit): Likewise. | |
4637 | (load_cu): Likewise. | |
4638 | (dw2_do_instantiate_symtab): Likewise. | |
4639 | (dw2_get_file_names): Likewise. | |
4640 | (dw2_map_symtabs_matching_filename): Update. | |
4641 | (dw_expand_symtabs_matching_file_matcher): Update. | |
4642 | (dw2_map_symbol_filenames): Update. | |
4643 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
4644 | (build_type_psymtabs_1): Update. | |
4645 | (process_skeletonless_type_unit): Update. | |
4646 | (dwarf2_build_psymtabs_hard): Update. | |
4647 | (load_partial_comp_unit): Add per_objfile parameter. | |
4648 | (scan_partial_symbols): Update. | |
4649 | (load_full_comp_unit): Add per_objfile parameter. | |
4650 | (process_imported_unit_die): Update. | |
4651 | (create_cus_hash_table): Update. | |
4652 | (find_partial_die): Update. | |
4653 | (dwarf2_read_addr_index): Update. | |
4654 | (follow_die_offset): Update. | |
4655 | (dwarf2_fetch_die_loc_sect_off): Update. | |
4656 | (dwarf2_fetch_constant_bytes): Update. | |
4657 | (dwarf2_fetch_die_type_sect_off): Update. | |
4658 | (follow_die_sig_1): Update. | |
4659 | (load_full_type_unit): Add per_objfile parameter. | |
4660 | (read_signatured_type): Likewise. | |
4661 | ||
313bad1b SM |
4662 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4663 | ||
4664 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
4665 | of objfile_name. | |
4666 | ||
c3699833 SM |
4667 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4668 | ||
4669 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
4670 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
4671 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
4672 | field. | |
4673 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
4674 | (create_cus_from_index): Update. | |
4675 | (dwarf2_read_gdb_index): Update. | |
4676 | (create_cus_from_debug_names): Update. | |
4677 | (dwarf2_read_debug_names): Update. | |
4678 | (get_abbrev_section_for_cu): Update. | |
4679 | (create_all_comp_units): Update. | |
4680 | (read_attribute_value): Update. | |
4681 | (get_debug_line_section): Update. | |
4682 | * dwarf2/index-cache.c (index_cache::store): Update. | |
4683 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
4684 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
4685 | ||
1859c670 SM |
4686 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4687 | ||
4688 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
4689 | member. | |
4690 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
4691 | dwarf2_per_cu_data::per_bfd. | |
4692 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
4693 | (create_type_unit_group): Likewise. | |
4694 | (queue_comp_unit): Remove reference to | |
4695 | per_cu->dwarf2_per_objfile. | |
4696 | (maybe_queue_comp_unit): Likewise. | |
4697 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
4698 | (create_cus_hash_table): Assign new field. | |
4699 | ||
5e22e966 SM |
4700 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4701 | ||
4702 | * dwarf2/read.c: Replace | |
4703 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
4704 | dwarf2_cu->per_objfile throughout. | |
4705 | ||
97a1449a SM |
4706 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4707 | ||
4708 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
4709 | parameter, don't use per_cu->dwarf2_per_objfile. | |
4710 | (dw2_instantiate_symtab): Likewise. | |
4711 | (dw2_find_last_source_symtab): Update. | |
4712 | (dw2_map_expand_apply): Update. | |
4713 | (dw2_lookup_symbol): Update. | |
4714 | (dw2_expand_symtabs_for_function): Update. | |
4715 | (dw2_expand_all_symtabs): Update. | |
4716 | (dw2_expand_symtabs_with_fullname): Update. | |
4717 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
4718 | don't use per_cu->dwarf2_per_objfile. | |
4719 | (dw2_expand_marked_cus): Update. | |
4720 | (dw2_find_pc_sect_compunit_symtab): Update. | |
4721 | (dw2_debug_names_lookup_symbol): Update. | |
4722 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
4723 | (dw2_debug_names_map_matching_symbols): Update. | |
4724 | (dwarf2_psymtab::expand_psymtab): Update. | |
4725 | ||
9e021579 SM |
4726 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4727 | ||
4728 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
4729 | <per_objfile>: New member. | |
4730 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
4731 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
4732 | call to dwarf2_cu. | |
4733 | (cutu_reader::cutu_reader): Update. | |
4734 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
4735 | ||
ae090bdb SM |
4736 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
4737 | ||
4738 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
4739 | struct dwarf2_per_objfile. | |
4740 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
4741 | dwarf2_per_bfd. | |
4742 | * dwarf2/read.c (set_die_type): Update. | |
4743 | (get_die_type_at_offset): Update. | |
4744 | ||
af758d11 SM |
4745 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4746 | Simon Marchi <simon.marchi@efficios.com> | |
4747 | ||
4748 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
4749 | method. | |
4750 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
4751 | get_symtab, set_symtab>: New methods. | |
4752 | <m_symtabs>: New field. | |
4753 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
4754 | <readin_p, get_compunit_symtab>: Declare methods. | |
4755 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
4756 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
4757 | New methods. | |
4758 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
4759 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
4760 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
4761 | (dw2_symtab_iter_next, dw2_print_stats) | |
4762 | (dw2_expand_symtabs_with_fullname) | |
4763 | (dw2_expand_symtabs_matching_one) | |
4764 | (dw_expand_symtabs_matching_file_matcher) | |
4765 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
4766 | (dw2_debug_names_iterator::next) | |
4767 | (dw2_debug_names_map_matching_symbols) | |
4768 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
4769 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
4770 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
4771 | New methods. | |
4772 | (get_compunit_symtab, process_full_comp_unit) | |
4773 | (process_full_type_unit): Update. | |
4774 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
4775 | ||
5989a64e SM |
4776 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
4777 | ||
4778 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
4779 | then introduce a new dwarf2_per_objfile type. | |
4780 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
4781 | <objfile>: Likewise. | |
4782 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
4783 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
4784 | dwarf2_per_objfile->per_bfd. | |
4785 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
4786 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
4787 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
4788 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
4789 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
4790 | (dwarf2_per_objfile::locate_sections): Rename to... | |
4791 | (dwarf2_per_bfd::locate_sections): ... this. | |
4792 | (dwarf2_per_objfile::get_cutu): Rename to... | |
4793 | (dwarf2_per_bfd::get_cutu): ... this. | |
4794 | (dwarf2_per_objfile::get_cu): Rename to... | |
4795 | (dwarf2_per_bfd::get_cu): ... this. | |
4796 | (dwarf2_per_objfile::get_tu): Rename to... | |
4797 | (dwarf2_per_bfd::get_tu): ... this. | |
4798 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
4799 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
4800 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
4801 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
4802 | (get_gdb_index_contents_ftype): Change parameter from | |
4803 | dwarf2_per_objfile to dwarf2_per_bfd. | |
4804 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
4805 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
4806 | ||
a50264ba TT |
4807 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4808 | Simon Marchi <simon.marchi@efficios.com> | |
4809 | ||
4810 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
4811 | (allocate_piece_closure): Set "per_objfile" member. | |
4812 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
4813 | (locexpr_describe_location, loclist_describe_location): Use new | |
4814 | member. | |
4815 | * dwarf2/read.c (read_call_site_scope) | |
4816 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
4817 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
4818 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
4819 | handle_data_member_location): Set per_objfile member. | |
4820 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
4821 | member. | |
4822 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
4823 | ||
d3473f0c TT |
4824 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4825 | ||
4826 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
4827 | allocate_signatured_type>: Declare new methods. | |
4828 | <m_num_psymtabs>: New member. | |
4829 | (struct dwarf2_per_cu_data) <index>: New member. | |
4830 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
4831 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
4832 | (create_cu_from_index_list): Use allocate_per_cu. | |
4833 | (create_signatured_type_table_from_index) | |
4834 | (create_signatured_type_table_from_debug_names) | |
4835 | (create_debug_type_hash_table, add_type_unit) | |
4836 | (read_comp_units_from_section): Use allocate_signatured_type. | |
4837 | ||
5717c425 TT |
4838 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4839 | ||
4840 | * psymtab.c (partial_map_expand_apply) | |
4841 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
4842 | (psym_lookup_global_symbol_language) | |
4843 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
4844 | (psym_print_stats, psym_expand_symtabs_for_function) | |
4845 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
4846 | (psym_expand_symtabs_matching) | |
4847 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
4848 | (maintenance_check_psymtabs): Update. | |
4849 | * psympriv.h (struct partial_symtab) <readin_p, | |
4850 | get_compunit_symtab>: Add objfile parameter. | |
4851 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
4852 | Likewise. | |
4853 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
4854 | get_compunit_symtab>: Likewise. | |
4855 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
4856 | ||
45940949 TT |
4857 | 2020-05-27 Tom Tromey <tom@tromey.com> |
4858 | ||
4859 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
4860 | member. | |
4861 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
4862 | (create_cu_from_index_list) | |
4863 | (create_signatured_type_table_from_index) | |
4864 | (create_signatured_type_table_from_debug_names) | |
4865 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
4866 | (dwarf2_create_include_psymtab) | |
4867 | (create_debug_type_hash_table, add_type_unit) | |
4868 | (create_type_unit_group, read_comp_units_from_section) | |
4869 | (dwarf2_compute_name, create_cus_hash_table) | |
4870 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
4871 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
4872 | obstack. | |
4873 | (dw2_get_real_path): Likewise. Change argument to | |
4874 | dwarf2_per_objfile. | |
4875 | ||
f8c6d152 LM |
4876 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
4877 | ||
4878 | PR tdep/26000 | |
4879 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
4880 | for ldrd (immediate). | |
4881 | ||
e98d2e6d PW |
4882 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4883 | ||
4884 | * command.h: Add comment giving the name of class_tui. | |
4885 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
4886 | create the fake command for the help for class_tui. | |
4887 | ||
53a47a3e TT |
4888 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
4889 | ||
4890 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
4891 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
4892 | (val_atr): New function. | |
4893 | (value_val_atr): Use it. | |
4894 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
4895 | handling for enums. | |
4896 | (val_print_packed_array_elements): Don't call discrete_position. | |
4897 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
4898 | discrete_position for enum types. | |
4899 | * language.c (default_print_array_index): Change type. | |
4900 | * language.h (struct language_defn) <la_print_array_index>: Add | |
4901 | index_type parameter, change type of index_value. | |
4902 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
4903 | (default_print_array_index): Update. | |
4904 | * valprint.c (maybe_print_array_index): Don't call | |
4905 | value_from_longest. Update. | |
4906 | (value_print_array_elements): Don't call discrete_position. | |
4907 | ||
0bc2354b TT |
4908 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
4909 | ||
4910 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
4911 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
4912 | ||
1218a4bf CDA |
4913 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
4914 | ||
4915 | PR gdb/13519 | |
4916 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
4917 | address accordingly to the second 'type' argument of the | |
4918 | function. | |
4919 | ||
92651b1d MW |
4920 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
4921 | ||
4922 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
4923 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
4924 | ||
0a4f5f8c TT |
4925 | 2020-05-23 Tom Tromey <tom@tromey.com> |
4926 | ||
4927 | Revert commit eca1f90c: | |
4928 | * NEWS: Remove entry for completion styling. | |
4929 | * completer.c (_rl_completion_prefix_display_length): Move | |
4930 | declaration later. | |
4931 | (gdb_fnprint): Revert. | |
4932 | (gdb_display_match_list_1): Likewise. | |
4933 | * cli/cli-style.c (completion_prefix_style) | |
4934 | (completion_difference_style, completion_suffix_style): Remove. | |
4935 | (_initialize_cli_style): Revert. | |
4936 | * cli/cli-style.h (completion_prefix_style) | |
4937 | (completion_difference_style, completion_suffix_style): Don't | |
4938 | declare. | |
4939 | ||
e08bd6c5 PA |
4940 | 2020-05-24 Pedro Alves <palves@redhat.com> |
4941 | ||
4942 | * symtab.c (completion_list_add_name): Return boolean indication | |
4943 | of whether the symbol matched. | |
4944 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
4945 | the symbol didn't match in the first place. | |
4946 | * symtab.h (completion_list_add_name): Return bool. | |
4947 | ||
ceacbf6e SM |
4948 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
4949 | ||
4950 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
4951 | type::field. | |
4952 | ||
26f16254 JB |
4953 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
4954 | ||
4955 | GDB 9.2 released. | |
4956 | ||
eca1f90c TT |
4957 | 2020-05-23 Tom Tromey <tom@tromey.com> |
4958 | ||
4959 | * NEWS: Add entry for completion styling. | |
4960 | * completer.c (_rl_completion_prefix_display_length): Move | |
4961 | declaration earlier. | |
4962 | (gdb_fnprint): Use completion_style. | |
4963 | (gdb_display_match_list_1): Likewise. | |
4964 | * cli/cli-style.c (completion_prefix_style) | |
4965 | (completion_difference_style, completion_suffix_style): New | |
4966 | globals. | |
4967 | (_initialize_cli_style): Register new globals. | |
4968 | * cli/cli-style.h (completion_prefix_style) | |
4969 | (completion_difference_style, completion_suffix_style): Declare. | |
4970 | ||
51e2cfa2 PA |
4971 | 2020-05-23 Pedro Alves <palves@redhat.com> |
4972 | ||
4973 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
4974 | (parse_escape): Use ISDIGIT instead of isdigit. | |
4975 | (puts_debug): Use gdb_isprint instead of isprint. | |
4976 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
4977 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
4978 | ISSPACE instead of isspace. | |
4979 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
4980 | instead of isspace. | |
4981 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
4982 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
4983 | instead of isxdigit and ISDIGIT instead of isdigit. | |
4984 | ||
80fc5e77 SM |
4985 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4986 | ||
4987 | * gdbtypes.h (struct type) <field>: New method. | |
4988 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
4989 | or type::field. | |
4990 | ||
3cabb6b0 SM |
4991 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4992 | ||
4993 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
4994 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
4995 | modify the propery to use type::set_fields instead. | |
4996 | ||
1f704f76 SM |
4997 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
4998 | ||
4999 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
5000 | type::num_fields instead. | |
5001 | ||
5e33d5f4 SM |
5002 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
5003 | ||
5004 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
5005 | methods. | |
5006 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
5007 | that modify the number of fields to use type::set_num_fields | |
5008 | instead. | |
5009 | ||
9392ebb3 TT |
5010 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
5011 | ||
5012 | * compile/compile-object-load.h (munmap_list_free): Don't | |
5013 | declare. | |
5014 | ||
7c13f4e8 AB |
5015 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
5016 | ||
5017 | * annotate.c (annotate_source_line): Update return type, add call | |
5018 | to update current symtab and line. | |
5019 | * annotate.h (annotate_source_line): Update return type, and | |
5020 | extend header comment. | |
5021 | * source.c (info_line_command): Check annotation_level before | |
5022 | calling annotate_source_line. | |
5023 | * stack.c (print_frame_info): If calling annotate_source_line | |
5024 | returns true, then don't print any other source line information. | |
5025 | ||
aa370940 SM |
5026 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
5027 | ||
5028 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
5029 | ||
84d53fa9 SM |
5030 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
5031 | ||
5032 | * coffread.c (patch_type): Remove NULL check before xfree. | |
5033 | * corefile.c (set_gnutarget): Likewise. | |
5034 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
5035 | * exec.c (build_section_table): Likewise. | |
5036 | * remote.c (remote_target::pass_signals): Likewise. | |
5037 | * utils.c (n_spaces): Likewise. | |
5038 | * cli/cli-script.c (document_command): Likewise. | |
5039 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
5040 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
5041 | ||
9d428aae SM |
5042 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
5043 | ||
5044 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
5045 | vector and section indices, re-compute them by calling | |
5046 | sym_offsets. | |
5047 | ||
250106a7 TT |
5048 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
5049 | ||
5050 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 5051 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 5052 | |
9a0bacfb TV |
5053 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
5054 | ||
5055 | PR symtab/25833 | |
5056 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
5057 | ||
7b958a48 AM |
5058 | 2020-05-20 Alan Modra <amodra@gmail.com> |
5059 | ||
5060 | PR 25993 | |
5061 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
5062 | bfd_set_filename. | |
5063 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
5064 | passed to bfd_set_filename. | |
5065 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
5066 | passed to symbol_file_add_from_memory. | |
5067 | (symbol_file_add_from_memory): Make name param a const char* and | |
5068 | don't strdup. | |
5069 | ||
c7e97679 AM |
5070 | 2020-05-20 Alan Modra <amodra@gmail.com> |
5071 | ||
5072 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
5073 | rather than accessing bfd->filename directly. | |
5074 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
5075 | and use bfd_section_name. | |
5076 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
5077 | * exec.c (exec_set_section_address): Likewise. | |
5078 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
5079 | * stap-probe.c (get_stap_base_address): Likewise. | |
5080 | * symfile.c (reread_symbols): Likewise. | |
5081 | ||
563c591b TT |
5082 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
5083 | ||
5084 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
5085 | ||
f408d82c SM |
5086 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
5087 | ||
5088 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
5089 | ||
98c59b52 PA |
5090 | 2020-05-19 Pedro Alves <palves@redhat.com> |
5091 | ||
5092 | * NEWS (set exec-file-mismatch): Adjust entry. | |
5093 | * exec.c: Include "build-id.h". | |
5094 | (validate_exec_file): Try to match build IDs instead of filenames. | |
5095 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
5096 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
5097 | and pass down 'warn_if_slow'. | |
5098 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
5099 | gdb_bfd_open_closure to pass it down. | |
5100 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
5101 | ||
4111f652 PA |
5102 | 2020-05-19 Pedro Alves <palves@redhat.com> |
5103 | ||
5104 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
5105 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
5106 | and make extern. Use bool. | |
5107 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
5108 | (target_fileio_read_alloc_1): Adjust. | |
5109 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
5110 | (target_fileio_open_warn_if_slow): Delete declaration. | |
5111 | ||
ad80db5b PA |
5112 | 2020-05-19 Pedro Alves <palves@redhat.com> |
5113 | ||
5114 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
5115 | Adjust all callers. | |
5116 | ||
1d6ce4d3 YS |
5117 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
5118 | ||
5119 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
5120 | whether disp is negative. | |
5121 | ||
9005fbbb SM |
5122 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
5123 | ||
5124 | * symfile.h (struct symfile_segment_data) | |
5125 | <~symfile_segment_data>: Remove. | |
5126 | <segment_info>: Change to std::vector. | |
5127 | * symfile.c (default_symfile_segments): Update. | |
5128 | * elfread.c (elf_symfile_segments): Update. | |
5129 | ||
68b888ff SM |
5130 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
5131 | ||
5132 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
5133 | <segments>: New. | |
5134 | <segment_bases, segment_sizes>: Remove. | |
5135 | * symfile.c (default_symfile_segments): Update. | |
5136 | * elfread.c (elf_symfile_segments): Update. | |
5137 | * remote.c (remote_target::get_offsets): Update. | |
5138 | * solib-target.c (solib_target_relocate_section_addresses): | |
5139 | Update. | |
5140 | ||
62982abd SM |
5141 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
5142 | ||
5143 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
5144 | <~symfile_segment_data>: Add. | |
5145 | (symfile_segment_data_up): New. | |
5146 | (struct sym_fns) <sym_segments>: Return a | |
5147 | symfile_segment_data_up. | |
5148 | (default_symfile_segments): Return a symfile_segment_data_up. | |
5149 | (free_symfile_segment_data): Remove. | |
5150 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
5151 | * symfile.c (default_symfile_segments): Likewise. | |
5152 | (get_symfile_segment_data): Likewise. | |
5153 | (free_symfile_segment_data): Remove. | |
5154 | (symfile_find_segment_sections): Update. | |
5155 | * elfread.c (elf_symfile_segments): Return a | |
5156 | symfile_segment_data_up. | |
5157 | * remote.c (remote_target::get_offsets): Update. | |
5158 | * solib-target.c (solib_target_relocate_section_addresses): | |
5159 | Update. | |
5160 | * symfile-debug.c (debug_sym_segments): Return a | |
5161 | symfile_segment_data_up. | |
5162 | ||
7f204339 RO |
5163 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5164 | ||
e52a0f1b RO |
5165 | PR build/25981 |
5166 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
5167 | Hardcode register numbers. | |
5168 | ||
7f204339 RO |
5169 | PR build/25981 |
5170 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
5171 | procfs_find_LDT_entry): Remove. | |
5172 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
5173 | procfs_find_LDT_entry): Remove. | |
5174 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
5175 | Remove. | |
5176 | ||
7f32a4d5 PA |
5177 | 2020-05-17 Pedro Alves <palves@redhat.com> |
5178 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5179 | Keno Fischer <keno@juliacomputing.com> | |
5180 | ||
5181 | PR gdb/25741 | |
5182 | * breakpoint.c (build_target_condition_list): Update comments. | |
5183 | (build_target_command_list): Update comments and skip matching | |
5184 | locations. | |
5185 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
5186 | a separate function. Simplify "set breakpoint auto-hw off" | |
5187 | handling. | |
5188 | (insert_breakpoints): Update comment. | |
5189 | (tracepoint_locations_match): New parameter. For breakpoints, | |
5190 | compare location types too, if the caller wants to. | |
5191 | (handle_automatic_hardware_breakpoints): New functions. | |
5192 | (bp_location_is_less_than): Also sort by location type and | |
5193 | hardware breakpoint length. | |
5194 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
5195 | here. | |
5196 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
5197 | ignore location types. | |
5198 | ||
7d93a1e0 SM |
5199 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
5200 | ||
5201 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
5202 | type::name instead. | |
5203 | ||
d0e39ea2 SM |
5204 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
5205 | ||
5206 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
5207 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
5208 | the name to use type::set_name instead. | |
5209 | ||
2dab0c7b TT |
5210 | 2020-05-16 Tom Tromey <tom@tromey.com> |
5211 | ||
5212 | * top.c (quit_force): Update. | |
5213 | * infrun.c (handle_no_resumed): Update. | |
5214 | * top.h (all_uis): New function. | |
5215 | (ALL_UIS): Remove. | |
5216 | ||
59f7bd8d SM |
5217 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
5218 | ||
5219 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
5220 | ||
9bf058f0 PA |
5221 | 2020-05-16 Pedro Alves <palves@redhat.com> |
5222 | ||
5223 | * ia64-linux-nat.c | |
5224 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
5225 | Declare method. | |
5226 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
5227 | ||
8f86ae1a SM |
5228 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
5229 | ||
5230 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
5231 | (sparc64_adi_info): Likewise. | |
5232 | ||
d6bc0792 TT |
5233 | 2020-05-15 Tom Tromey <tom@tromey.com> |
5234 | ||
5235 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
5236 | block_objfile. | |
5237 | (lookup_objfile_from_block): Remove. | |
5238 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
5239 | (lookup_global_symbol): Use block_objfile. | |
5240 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
5241 | * printcmd.c (clear_dangling_display_expressions): Use | |
5242 | block_objfile. | |
5243 | * parse.c (operator_check_standard): Use block_objfile. | |
5244 | ||
8c14c3a3 TT |
5245 | 2020-05-15 Tom Tromey <tom@tromey.com> |
5246 | ||
5247 | * language.c (language_alloc_type_symbol): Set | |
5248 | SYMBOL_SECTION. | |
5249 | * symtab.c (initialize_objfile_symbol): Remove. | |
5250 | (allocate_symbol): Remove. | |
5251 | (allocate_template_symbol): Remove. | |
5252 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
5253 | (new_symbol): Use "new". | |
5254 | (read_variable): Don't call initialize_objfile_symbol. Use | |
5255 | "new". | |
5256 | (read_func_scope): Use "new". | |
5257 | * xcoffread.c (process_xcoff_symbol): Don't call | |
5258 | initialize_objfile_symbol. | |
5259 | (SYMBOL_DUP): Remove. | |
5260 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
5261 | "new". | |
5262 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
5263 | (allocate_template_symbol): Don't declare. | |
5264 | (struct symbol): Add copy constructor. Change defaults. | |
5265 | * jit.c (finalize_symtab): Use "new". | |
5266 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
5267 | Use "new". | |
5268 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
5269 | (common_block_end): Use "new". | |
5270 | * mdebugread.c (parse_symbol): Use "new". | |
5271 | (new_symbol): Likewise. | |
5272 | ||
5b4a1a8d PW |
5273 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5274 | ||
5275 | * NEWS: Mention changes to help and apropos. | |
5276 | ||
57b4f16e PW |
5277 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5278 | ||
5279 | * command.h (enum command_class): Improve comments, document | |
5280 | that class_alias is for user-defined aliases, give the class | |
5281 | name for each class, remove unused class_xdb. | |
5282 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
5283 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
5284 | by a precise class. | |
5285 | * infcmd.c (_initialize_infcmd): Likewise. | |
5286 | * reverse.c (_initialize_reverse): Likewise. | |
5287 | * stack.c (_initialize_stack): Likewise. | |
5288 | * symfile.c (_initialize_symfile): Likewise. | |
5289 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
5290 | ||
7c05caf7 PW |
5291 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5292 | ||
5293 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
5294 | when their aliased command is traversed. | |
5295 | (help_cmd): Add fput_command_names_styled call to | |
5296 | output command name and aliases when command has an alias. | |
5297 | ||
3b3aaacb PW |
5298 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5299 | ||
5300 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
5301 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
5302 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
5303 | a command together with the command. | |
5304 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
5305 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
5306 | fput_command_name_styled. | |
5307 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
5308 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
5309 | ||
7aa1b46f PW |
5310 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5311 | ||
5312 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
5313 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
5314 | * command.h (cmd_show_list): Likewise. | |
5315 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
5316 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
5317 | ||
89bcba74 PW |
5318 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5319 | ||
5320 | * unittests/command-def-selftests.c (traverse_command_structure): | |
5321 | Verify all commands of a list have the same prefix command and | |
5322 | that only the top cmdlist commands have a null prefix. | |
5323 | ||
3f4d92eb PW |
5324 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5325 | ||
5326 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
5327 | as prefix, not one of its aliases. | |
5328 | (set_cmd_prefix): Remove. | |
5329 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
5330 | command is defined after its full chain of prefix commands. | |
5331 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
5332 | (add_setshow_cmd_full): Likewise. | |
5333 | (update_prefix_field_of_prefixed_commands): New function. | |
5334 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
5335 | update_prefix_field_of_prefixed_commands. | |
5336 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
5337 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
5338 | as argument, not the address of an argument. | |
5339 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
5340 | * gdb/remote.c (_initialize_remote): Likewise. | |
5341 | ||
0605465f PW |
5342 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5343 | ||
5344 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
5345 | using lookup_cmd_composition, as valid_command_p is too strict | |
5346 | and forbids aliases that are the prefix of an existing alias | |
5347 | or command. | |
5348 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
5349 | command is properly recognised as a valid command. | |
5350 | ||
58e6ac70 PW |
5351 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5352 | ||
5353 | * unittests/help-doc-selftests.c: Rename to | |
5354 | unittests/command-def-selftests.c | |
5355 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
5356 | comments. | |
5357 | (command_structure_tests, traverse_command_structure): New namespace | |
5358 | and function. | |
5359 | (command_structure_invariants_tests): New function. | |
5360 | (_initialize_command_def_selftests) Renamed from | |
5361 | _initialize_help_doc_selftests, register command_structure_invariants | |
5362 | selftest. | |
5363 | ||
a7b9ceb8 PW |
5364 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5365 | ||
5366 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
5367 | an alias of 'show'. | |
5368 | ||
b2188a06 JB |
5369 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
5370 | ||
5371 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
5372 | ada_is_fixed_point_type. Update all callers. | |
5373 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
5374 | all callers. | |
5375 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
5376 | Update all callers. | |
5377 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
5378 | print_fixed_point_type. Update all callers. | |
5379 | * ada-valprint.c (ada_value_print_num): Replace call to | |
5380 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
5381 | ||
a51951c2 KB |
5382 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
5383 | ||
5384 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
5385 | processors. | |
5386 | (cpu_supports_bts): Add CV_AMD case. | |
5387 | ||
29d6859f LM |
5388 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
5389 | Simon Marchi <simon.marchi@efficios.com> | |
5390 | ||
5391 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
5392 | each pass. | |
5393 | ||
78134374 SM |
5394 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
5395 | ||
5396 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
5397 | type::code instead. | |
5398 | ||
67607e24 SM |
5399 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
5400 | ||
5401 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
5402 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
5403 | the code to use type::set_code instead. | |
5404 | ||
a05575d3 TBA |
5405 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5406 | Tom de Vries <tdevries@suse.de> | |
5407 | Pedro Alves <palves@redhat.com> | |
5408 | ||
5409 | PR threads/25478 | |
5410 | * infrun.c (stop_all_threads): Do NOT ignore | |
5411 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
5412 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
5413 | received. | |
5414 | (handle_no_resumed): Remove code handling a live inferior with no | |
5415 | threads. | |
5416 | * remote.c (has_single_non_exited_thread): New. | |
5417 | (remote_target::update_thread_list): Do not delete a thread if is | |
5418 | the last thread of the process. | |
5419 | * thread.c (thread_select): Call delete_exited_threads instead of | |
5420 | prune_threads. | |
5421 | ||
6ad82919 TBA |
5422 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5423 | ||
5424 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
5425 | targets. Move a debug message denoting the end of the function | |
5426 | into the SCOPED_EXIT block. | |
5427 | ||
d890404b TBA |
5428 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5429 | ||
5430 | * process-stratum-target.h: Include <set>. | |
5431 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
5432 | function declarations. | |
5433 | * process-stratum-target.c (all_non_exited_process_targets) | |
5434 | (switch_to_target_no_thread): New function implementations. | |
5435 | ||
293b3ebc TBA |
5436 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5437 | ||
5438 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
5439 | into... | |
5440 | (mark_non_executing_threads): ...this new function. | |
5441 | ||
7ca9b62a TBA |
5442 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5443 | ||
5444 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
5445 | use. | |
5446 | ||
fc75c28b TBA |
5447 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5448 | ||
5449 | * regcache.c (regcache_read_pc_protected): New function | |
5450 | implementation that returns 0 if the PC cannot read via | |
5451 | 'regcache_read_pc'. | |
5452 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
5453 | instead of 'regcache_read_pc'. | |
5454 | (keep_going_pass_signal): Ditto. | |
5455 | ||
a89febbd TT |
5456 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
5457 | ||
5458 | * ada-lang.c (align_value): Remove. | |
5459 | (ada_template_to_fixed_record_type_1): Use align_up. | |
5460 | ||
f7e23710 TBA |
5461 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5462 | ||
5463 | * async-event.c: Update the copyright year. | |
5464 | * async-event.h: Update the copyright year. | |
5465 | ||
02ff80c2 SM |
5466 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
5467 | ||
5468 | * objfiles.h (is_addr_in_objfile, | |
5469 | shared_objfile_contains_address_p): Return bool. | |
5470 | * objfile.c (is_addr_in_objfile, | |
5471 | shared_objfile_contains_address_p): Return bool. | |
5472 | ||
4fd6c7e8 TT |
5473 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
5474 | ||
5475 | * cli/cli-cmds.c (info_command): Restore. | |
5476 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
5477 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
5478 | ||
5eb68a39 TT |
5479 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
5480 | ||
5481 | * ada-lang.c (ada_value_primitive_field): Now public. | |
5482 | * ada-lang.h (ada_value_primitive_field): Declare. | |
5483 | * ada-valprint.c (print_field_values): Use | |
5484 | ada_value_primitive_field for wrapper fields. | |
5485 | ||
7666722f TV |
5486 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
5487 | ||
5488 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
5489 | MODULE_DOMAIN. | |
5490 | ||
3ee6bb11 TV |
5491 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
5492 | ||
5493 | PR symtab/25941 | |
5494 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
5495 | with length 0, if not gdb-produced. | |
5496 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
5497 | ||
43434996 TV |
5498 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
5499 | ||
5500 | PR gdb/25955 | |
5501 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
5502 | calculation. | |
5503 | ||
2f78cffc TT |
5504 | 2020-05-09 Tom Tromey <tom@tromey.com> |
5505 | ||
5506 | * top.c (server_command): Now bool. | |
5507 | * top.h (server_command): Now bool. | |
5508 | ||
4f7bc5ed TT |
5509 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
5510 | ||
5511 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
5512 | already being processed. | |
5513 | ||
8be4b118 TT |
5514 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5515 | ||
5516 | * printcmd.c (struct display) <next>: Remove. | |
5517 | <display>: New constructor. | |
5518 | <exp_string>: Now a std::string. | |
5519 | <enabled_p>: Now a bool. | |
5520 | (display_number): Move definition earlier. | |
5521 | (displays): Rename from display_chain. Now a std::vector. | |
5522 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
5523 | (display_command): Update. | |
5524 | (do_one_display, disable_display) | |
5525 | (enable_disable_display_command, do_enable_disable_display): | |
5526 | Update. | |
5527 | (free_display): Remove. | |
5528 | (clear_displays): Rewrite. | |
5529 | (delete_display): Update. | |
5530 | (map_display_numbers): Use function_view. Remove "data" | |
5531 | parameter. Update. | |
5532 | (do_delete_display): Remove. | |
5533 | (undisplay_command): Update. | |
5534 | (do_one_display, do_displays, disable_display) | |
5535 | (info_display_command): Update. | |
5536 | (do_enable_disable_display): Remove. | |
5537 | (enable_disable_display_command) | |
5538 | (clear_dangling_display_expressions): Update. | |
5539 | ||
94c93c35 TT |
5540 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5541 | ||
5542 | * symtab.c (set_symbol_cache_size) | |
5543 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
5544 | (maintenance_print_symbol_cache_statistics): Update. | |
5545 | * symmisc.c (print_symbol_bcache_statistics) | |
5546 | (print_objfile_statistics, maintenance_print_objfiles) | |
5547 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5548 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
5549 | Update. | |
5550 | * symfile-debug.c (set_debug_symfile): Update. | |
5551 | * source.c (forget_cached_source_info): Update. | |
5552 | * python/python.c (gdbpy_progspaces): Update. | |
5553 | * psymtab.c (maintenance_info_psymtabs): Update. | |
5554 | * probe.c (parse_probes): Update. | |
5555 | * linespec.c (iterate_over_all_matching_symtabs) | |
5556 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
5557 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
5558 | * exec.c (exec_target::close): Update. | |
5559 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
5560 | * breakpoint.c (print_one_breakpoint_location) | |
5561 | (create_longjmp_master_breakpoint) | |
5562 | (create_std_terminate_master_breakpoint): Update. | |
5563 | * progspace.c (program_spaces): Now a std::vector. | |
5564 | (maybe_new_address_space): Update. | |
5565 | (add_program_space): Remove. | |
5566 | (program_space::program_space): Update. | |
5567 | (remove_program_space): Update. | |
5568 | (number_of_program_spaces): Remove. | |
5569 | (print_program_space, update_address_spaces): Update. | |
5570 | * progspace.h (program_spaces): Change type. | |
5571 | (ALL_PSPACES): Remove. | |
5572 | (number_of_program_spaces): Don't declare. | |
5573 | (struct program_space) <next>: Remove. | |
5574 | ||
a1fd1ac9 TT |
5575 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5576 | ||
5577 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
5578 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
5579 | (enable_break): Update. | |
5580 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
5581 | (frv_fdpic_find_canonical_descriptor): Update. | |
5582 | (frv_fetch_objfile_link_map): Update. | |
5583 | * progspace.c (program_space::free_all_objfiles): Update. | |
5584 | (program_space::solibs): New method. | |
5585 | * progspace.h (struct program_space) <solibs>: New method. | |
5586 | * solist.h (master_so_list): Don't declare. | |
5587 | (ALL_SO_LIBS): Remove. | |
5588 | * solib.h (so_list_head): Remove. | |
5589 | (update_solib_list): Update comment. | |
5590 | * solib.c (master_so_list): Remove. | |
5591 | (solib_used, update_solib_list, solib_add) | |
5592 | (info_sharedlibrary_command, clear_solib) | |
5593 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
5594 | ||
38eae084 TT |
5595 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5596 | ||
5597 | * extension.c (extension_languages): Now a std::array. | |
5598 | (ALL_EXTENSION_LANGUAGES): Remove. | |
5599 | (get_ext_lang_defn, get_ext_lang_of_file) | |
5600 | (eval_ext_lang_from_control_command): Update. | |
5601 | (finish_ext_lang_initialization) | |
5602 | (auto_load_ext_lang_scripts_for_objfile) | |
5603 | (ext_lang_type_printers::ext_lang_type_printers) | |
5604 | (apply_ext_lang_type_printers) | |
5605 | (ext_lang_type_printers::~ext_lang_type_printers) | |
5606 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
5607 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
5608 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
5609 | (get_matching_xmethod_workers, ext_lang_colorize) | |
5610 | (ext_lang_before_prompt): Update. | |
5611 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
5612 | ||
596dc4ad TT |
5613 | 2020-05-08 Tom Tromey <tom@tromey.com> |
5614 | ||
5615 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
5616 | overload. | |
5617 | <swap_string, m_string>: Remove. | |
5618 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
5619 | Update. | |
5620 | * stabsread.c (define_symbol, read_type): Update. | |
5621 | * linespec.c (find_linespec_symbols): Update. | |
5622 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
5623 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
5624 | * dbxread.c (read_dbx_symtab): Update. | |
5625 | * cp-support.h (cp_canonicalize_string_full) | |
5626 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
5627 | Return unique_xmalloc_ptr. | |
5628 | * cp-support.c (inspect_type): Update. | |
5629 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
5630 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
5631 | Likewise. | |
5632 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
5633 | * break-catch-throw.c (check_status_exception_catchpoint): | |
5634 | Update. | |
5635 | ||
bf4cb9be TV |
5636 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
5637 | ||
5638 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
5639 | child thread. | |
5640 | ||
a1b68f28 SM |
5641 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5642 | ||
5643 | * async-event.c (struct async_signal_handler, struct | |
5644 | async_event_handler): Reformat, remove typedef. | |
5645 | ||
98d48915 SM |
5646 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5647 | ||
5648 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
5649 | access thistype->main_type->dyn_prop_list directly. | |
5650 | ||
7aa91313 SM |
5651 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5652 | ||
5653 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
5654 | (remove_dyn_prop): Remove. Update all users to use | |
5655 | type::remove_dyn_prop. | |
5656 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
5657 | (type::remove_dyn_prop): ... this. | |
5658 | ||
5c54719c SM |
5659 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
5660 | ||
5661 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
5662 | (add_dyn_prop): Remove. Update all users to use | |
5663 | type::add_dyn_prop. | |
5664 | * gdbtypes.c (add_dyn_prop): Rename to... | |
5665 | (type::add_dyn_prop): ... this. | |
5666 | ||
24e99c6c SM |
5667 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
5668 | ||
5669 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
5670 | (get_dyn_prop): Remove. Update all users to use | |
5671 | type::dyn_prop. | |
5672 | * gdbtypes.c (get_dyn_prop): Rename to... | |
5673 | (type::dyn_prop): ... this. | |
5674 | ||
0d4bf016 SM |
5675 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
5676 | ||
5677 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
5678 | ||
ac4a4f1c SM |
5679 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
5680 | ||
5681 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
5682 | instruction, skip it if it's there. | |
5683 | ||
a3bbacc1 SM |
5684 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
5685 | ||
5686 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
5687 | ||
c3236f84 SM |
5688 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
5689 | ||
5690 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
5691 | * gdbtypes.c (recursive_dump_type): Remove use of | |
5692 | TYPE_INCOMPLETE. | |
5693 | ||
3b6acaee TT |
5694 | 2020-05-03 Tom Tromey <tom@tromey.com> |
5695 | ||
5696 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
5697 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
5698 | add_show_prefix_cmd. | |
5699 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
5700 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
5701 | Remove. | |
5702 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
5703 | add_show_prefix_cmd. | |
5704 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
5705 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
5706 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
5707 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
5708 | * memattr.c (dummy_cmd): Remove. | |
5709 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
5710 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
5711 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
5712 | add_show_prefix_cmd. | |
5713 | * cli/cli-logging.c (set_logging_command): Remove. | |
5714 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
5715 | add_show_prefix_cmd. | |
5716 | (show_logging_command): Remove. | |
5717 | * target.c (target_command): Remove. | |
5718 | (add_target): Use add_basic_prefix_cmd. | |
5719 | ||
a51119cd HD |
5720 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
5721 | ||
5722 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
5723 | ||
652fc23a | 5724 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 5725 | |
652fc23a PW |
5726 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
5727 | info_command. | |
5728 | ||
117539e6 KR |
5729 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
5730 | ||
5731 | * nbsd-nat.c (nbsd_enable_proc_events) | |
5732 | (nbsd_nat_target::post_startup_inferior): Add. | |
5733 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
5734 | (nbsd_nat_target::update_thread_list): Rewrite. | |
5735 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
5736 | "PTRACE_LWP_CREATE". | |
5737 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
5738 | ||
102e38eb | 5739 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 5740 | |
102e38eb PW |
5741 | * stack.c (_initialize_stack): Remove duplicated creation |
5742 | of "frame" command and "f" alias. | |
5743 | ||
ee9d1e5f HD |
5744 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
5745 | ||
5746 | PR gdb/18706 | |
5747 | * gdbtypes.c (check_typedef): Calculate size of array of | |
5748 | stubbed type. | |
5749 | ||
627c7fb8 HD |
5750 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
5751 | ||
5752 | PR gdb/15559 | |
5753 | * i386-tdep.c (i386_push_dummy_call): Call | |
5754 | i386_thiscall_push_dummy_call. | |
5755 | (i386_thiscall_push_dummy_call): New function. | |
5756 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
5757 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
5758 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
5759 | ||
ffc2844e SM |
5760 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5761 | ||
5762 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
5763 | warning SC2162. | |
5764 | ||
1207375d SM |
5765 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5766 | ||
5767 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
5768 | "referenced but not assigned" warning. | |
5769 | ||
9fdb2916 SM |
5770 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5771 | ||
5772 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
5773 | ||
759cea5e SM |
5774 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5775 | ||
5776 | * gdbarch.sh: Use shell operators && and || instead of | |
5777 | -a and -o. | |
5778 | ||
cb02ab24 SM |
5779 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5780 | ||
5781 | * gdbarch.sh: Use $(...) instead of `...`. | |
5782 | ||
a6fc5ffc SM |
5783 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5784 | ||
5785 | * gdbarch.sh: Use double quotes around variables. | |
5786 | ||
8d113d13 SM |
5787 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
5788 | ||
5789 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
5790 | format string. | |
5791 | ||
ed6acedd TT |
5792 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
5793 | ||
5794 | PR ada/25875: | |
5795 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
5796 | type fields here. | |
5797 | (read_enumeration_type): Call | |
5798 | update_enumeration_type_from_children later. Update comments. | |
5799 | (process_enumeration_scope): Don't create type fields. | |
5800 | ||
b68b1b58 KR |
5801 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
5802 | ||
5803 | * nbsd-tdep.c: Include "xml-syscall.h". | |
5804 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
5805 | ||
f94b2e03 KR |
5806 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
5807 | ||
5808 | * nbsd-nat.c: Include "sys/wait.h". | |
5809 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
5810 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
5811 | (nbsd_nat_target::remove_exec_catchpoint) | |
5812 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
5813 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
5814 | (nbsd_nat_target::insert_exec_catchpoint) | |
5815 | (nbsd_nat_target::remove_exec_catchpoint) | |
5816 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
5817 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
5818 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
5819 | `nbsd_get_syscall_number'. | |
5820 | ||
fc49bc72 TT |
5821 | 2020-04-29 Tom Tromey <tom@tromey.com> |
5822 | ||
5823 | * stack.c (print_block_frame_labels): Remove. | |
5824 | ||
d642b692 HD |
5825 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
5826 | ||
5827 | PR gdb/17320 | |
5828 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
5829 | end bracket to new line. | |
5830 | (ada_val_print_string): Remove extra spaces before first array | |
5831 | element. | |
5832 | * c-valprint.c (c_value_print_array): Likewise. | |
5833 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
5834 | (m2_value_print_inner): Likewise. | |
5835 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
5836 | * valprint.c (generic_val_print_array): Likewise. | |
5837 | (value_print_array_elements): Move first array element and array | |
5838 | end bracket to new line. | |
5839 | ||
ea90f227 TV |
5840 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
5841 | ||
5842 | PR symtab/25889 | |
5843 | * linespec.c (find_method): Fix ix calculation. | |
5844 | ||
4498ef4f KR |
5845 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
5846 | ||
5847 | * syscalls/update-netbsd.sh: New file. | |
5848 | * syscalls/netbsd.xml: Regenerate. | |
5849 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
5850 | `SYSCALLS_FILES'. | |
5851 | ||
a55e30b5 SM |
5852 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
5853 | ||
5854 | * syscalls/update-freebsd.sh: Add double quotes. | |
5855 | ||
2b2fbab8 TT |
5856 | 2020-04-28 Tom Tromey <tom@tromey.com> |
5857 | ||
5858 | * NEWS: Update. | |
5859 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
5860 | (cmdpy_init): Allow class_tui. | |
5861 | ||
a65189c9 TV |
5862 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
5863 | ||
5864 | PR gdb/24480 | |
5865 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
5866 | start_symtab was already called. | |
5867 | ||
1b95cdb7 SM |
5868 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
5869 | ||
5870 | PR gdb/25881 | |
5871 | * dwarf2/read.c (offset_map_type): Use | |
5872 | gdb:hash_enum<sect_offset> as hash function. | |
5873 | ||
15cd93d0 TV |
5874 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
5875 | ||
5876 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
5877 | with DW_AT_signature. | |
5878 | ||
1eb39914 SM |
5879 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
5880 | ||
5881 | * configure.ac: Remove check for fs_base/gs_base in | |
5882 | user_regs_struct. | |
5883 | * configure: Re-generate. | |
5884 | * config.in: Re-generate. | |
5885 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
5886 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
5887 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
5888 | ||
991a3e2e LM |
5889 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
5890 | ||
5891 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
5892 | problematic inline frame unwinding situation. | |
5893 | * frame.c (frame_id_computed_p): New function. | |
5894 | * frame.h (frame_id_computed_p): New prototype. | |
5895 | ||
361ba0e8 TT |
5896 | 2020-04-26 Tom Tromey <tom@tromey.com> |
5897 | ||
5898 | * command.h (enum command_class) <class_pseudo>: Remove. | |
5899 | ||
bc3609fd PW |
5900 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5901 | ||
5902 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
5903 | and whitespace. | |
5904 | ||
b9771db7 KR |
5905 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
5906 | ||
ec16513e SM |
5907 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
5908 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 5909 | |
7151c1af TT |
5910 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5911 | ||
5912 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
5913 | * symtab.c (symbol_get_demangled_name): Remove. | |
5914 | (general_symbol_info::natural_name) | |
5915 | (general_symbol_info::demangled_name): Update. | |
5916 | ||
906bb4c5 TT |
5917 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5918 | ||
5919 | PR rust/25025: | |
5920 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
5921 | ||
bcfe6157 TT |
5922 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5923 | ||
5924 | PR symtab/12707: | |
5925 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
5926 | exists. | |
5927 | (new_symbol): Likewise. | |
5928 | * compile/compile-object-load.c (get_out_value_type): Use | |
5929 | symbol_matches_search_name. | |
5930 | ||
f049a313 TT |
5931 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5932 | ||
5933 | * dwarf2/read.c (add_partial_symbol): Do not call | |
5934 | compute_and_set_names. | |
5935 | ||
76e288d1 TT |
5936 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5937 | ||
5938 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
5939 | overload. | |
5940 | ||
2467f4f6 TT |
5941 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5942 | ||
5943 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
5944 | (add_psymbol_to_list): New overload. Make old overload call new | |
5945 | one. | |
5946 | * psympriv.h (add_psymbol_to_list): New overload. | |
5947 | ||
e61108c9 TT |
5948 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5949 | ||
5950 | * dwarf2/read.c (partial_die_info::read) <case | |
5951 | DW_AT_linkage_name>: Use value_as_string. | |
5952 | (dwarf2_string_attr): Use value_as_string. | |
5953 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
5954 | method. | |
5955 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
5956 | ||
8c87a452 TT |
5957 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5958 | ||
5959 | * symtab.c (general_symbol_info::natural_name) | |
5960 | (general_symbol_info::demangled_name): Check for language_rust. | |
5961 | ||
787de330 TT |
5962 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5963 | ||
5964 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
5965 | (dwarf2_physname): ... from here. | |
5966 | (partial_die_info::read): Add Rust "{" hack. | |
5967 | ||
ff985671 TT |
5968 | 2020-04-24 Tom Tromey <tom@tromey.com> |
5969 | ||
5970 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
5971 | method. | |
5972 | (symbol_set_demangled_name): Don't declare. | |
5973 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
5974 | symbol_set_demangled_name. | |
5975 | (general_symbol_info::set_language) | |
5976 | (general_symbol_info::compute_and_set_names): Update. | |
5977 | * minsyms.c (minimal_symbol_reader::install): Update. | |
5978 | * dwarf2/read.c (new_symbol): Update. | |
5979 | ||
1acda803 TT |
5980 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5981 | ||
5982 | PR python/23662: | |
5983 | * python/py-type.c (convert_field): Handle | |
5984 | FIELD_LOC_KIND_DWARF_BLOCK. | |
5985 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
5986 | (typy_get_dynamic): Nw function. | |
5987 | (type_object_getset): Add "dynamic". | |
5988 | * NEWS: Add entry. | |
5989 | ||
d656f129 TT |
5990 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5991 | ||
5992 | * ada-typeprint.c (print_choices, print_variant_part) | |
5993 | (print_record_field_types_dynamic): New functions. | |
5994 | (print_record_field_types): Use print_record_field_types_dynamic. | |
5995 | ||
7d79de9a TT |
5996 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
5997 | ||
5998 | * dwarf2/read.c (handle_data_member_location): New overload. | |
5999 | (dwarf2_add_field): Use it. | |
6000 | (decode_locdesc): Add "computed" parameter. Update comment. | |
6001 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
6002 | FIELD_LOC_KIND_DWARF_BLOCK. | |
6003 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
6004 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
6005 | virtual base classes. | |
6006 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
6007 | FIELD_LOC_KIND_DWARF_BLOCK. | |
6008 | ||
f8e89861 TT |
6009 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6010 | ||
6011 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
6012 | * gdbtypes.c (is_dynamic_type_internal): Check | |
6013 | TYPE_HAS_DYNAMIC_LENGTH. | |
6014 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
6015 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
6016 | New macros. | |
6017 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
6018 | constant. | |
6019 | ||
9c6a1327 TT |
6020 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6021 | ||
6022 | * dwarf2/read.c (struct variant_field): Rewrite. | |
6023 | (struct variant_part_builder): New. | |
6024 | (struct nextfield): Remove "variant" field. Add "offset". | |
6025 | (struct field_info): Add "current_variant_part" and | |
6026 | "variant_parts". | |
6027 | (alloc_discriminant_info): Remove. | |
6028 | (alloc_rust_variant): New function. | |
6029 | (quirk_rust_enum): Update. | |
6030 | (dwarf2_add_field): Set "offset" member. Don't handle | |
6031 | DW_TAG_variant_part. | |
6032 | (offset_map_type): New typedef. | |
6033 | (convert_variant_range, create_one_variant) | |
6034 | (create_one_variant_part, create_variant_parts) | |
6035 | (add_variant_property): New functions. | |
6036 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
6037 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
6038 | (handle_variant_part, handle_variant): New functions. | |
6039 | (handle_struct_member_die): Use them. | |
6040 | (process_structure_scope): Don't handle variant parts. | |
6041 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
6042 | (struct discriminant_info): Remove. | |
6043 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
6044 | (struct main_type) <flag_discriminated_union>: Remove. | |
6045 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
6046 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
6047 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
6048 | Update. | |
6049 | * valops.c (value_union_variant): Remove. | |
6050 | * value.h (value_union_variant): Don't declare. | |
6051 | ||
b249d2c2 TT |
6052 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6053 | ||
6054 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
6055 | (ada_value_primitive_packed_val): Update. | |
6056 | * ada-valprint.c (ada_value_print_1): Update. | |
6057 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
6058 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
6059 | just an address. Use evaluate_for_locexpr_baton. | |
6060 | (dwarf2_evaluate_property): Update. | |
6061 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
6062 | array_view. | |
6063 | * findvar.c (default_read_var_value): Update. | |
6064 | * gdbtypes.c (compute_variant_fields_inner) | |
6065 | (resolve_dynamic_type_internal): Update. | |
6066 | (resolve_dynamic_type): Change type of valaddr parameter. | |
6067 | * gdbtypes.h (resolve_dynamic_type): Update. | |
6068 | * valarith.c (value_subscripted_rvalue): Update. | |
6069 | * value.c (value_from_contents_and_address): Update. | |
6070 | ||
61122aa9 TT |
6071 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6072 | ||
6073 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
6074 | "push_initial_value" parameter. | |
6075 | (dwarf2_evaluate_property): Likewise. | |
6076 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
6077 | ||
ef83a141 TT |
6078 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6079 | ||
6080 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
6081 | (variant::matches, compute_variant_fields_recurse) | |
6082 | (compute_variant_fields_inner, compute_variant_fields): New | |
6083 | functions. | |
6084 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
6085 | Use resolved_type after type is made. | |
6086 | (operator==): Add new cases. | |
6087 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
6088 | (struct discriminant_range, struct variant, struct variant_part): | |
6089 | New. | |
6090 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
6091 | members. | |
6092 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
6093 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
6094 | constants. | |
6095 | * value.c (unpack_bits_as_long): Now public. | |
6096 | * value.h (unpack_bits_as_long): Declare. | |
6097 | ||
675127ec TT |
6098 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6099 | ||
6100 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
6101 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
6102 | ||
9852ceef HD |
6103 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
6104 | ||
6105 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
6106 | ||
7632c6ce KR |
6107 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
6108 | ||
6109 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
6110 | (remove_fork_catchpoint, post_startup_inferior) | |
6111 | (post_attach): Move... | |
6112 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
6113 | (remove_fork_catchpoint, post_startup_inferior) | |
6114 | (post_attach): ...here. | |
6115 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
6116 | (remove_fork_catchpoint, post_startup_inferior) | |
6117 | (post_attach): Move... | |
6118 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
6119 | (remove_fork_catchpoint, post_startup_inferior) | |
6120 | (post_attach): ...here. | |
6121 | ||
7be2bb4f TT |
6122 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
6123 | ||
6124 | * nat/windows-nat.h (struct windows_thread_info) | |
6125 | <pc_adjusted>: New member. | |
6126 | * windows-nat.c (windows_fetch_one_register): Check | |
6127 | pc_adjusted. | |
6128 | (windows_nat_target::get_windows_debug_event) | |
6129 | (windows_nat_target::wait): Set pc_adjusted. | |
6130 | ||
f80cb3b4 TV |
6131 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
6132 | ||
6133 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
6134 | Run gdb-add-index inside temp dir. | |
6135 | ||
29514b87 TT |
6136 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
6137 | ||
6138 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
6139 | in loop. | |
6140 | ||
5939967b LM |
6141 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
6142 | ||
6143 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
6144 | get_frame_register instead of gdbarch_unwind_pc. | |
6145 | ||
70bc38f5 TV |
6146 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
6147 | ||
6148 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
6149 | ||
de82891c TV |
6150 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
6151 | ||
6152 | PR symtab/25807 | |
6153 | * block.c (best_symbol, better_symbol): Promote to external. | |
6154 | * block.h (best_symbol, better_symbol): Declare. | |
6155 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
6156 | decl. | |
6157 | ||
ecc6c606 TT |
6158 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
6159 | ||
6160 | PR ada/25837: | |
6161 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
6162 | "const char *", not a "const std::string &". | |
6163 | <name_and_matcher::operator==>: Update. | |
6164 | * unittests/lookup_name_info-selftests.c: Change type of | |
6165 | "result". | |
6166 | ||
740480b8 TT |
6167 | 2020-04-23 Tom Tromey <tom@tromey.com> |
6168 | ||
6169 | * inferior.h (iterate_over_inferiors): Don't declare. | |
6170 | * inferior.c (iterate_over_inferiors): Remove. | |
6171 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
6172 | Remove. | |
6173 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
6174 | use iterate_over_inferiors. | |
6175 | (darwin_resume_inferior_it) | |
6176 | (struct resume_inferior_threads_param) | |
6177 | (darwin_resume_inferior_threads_it): Remove. | |
6178 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
6179 | ||
ae3ab1f0 TV |
6180 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
6181 | ||
6182 | * blockframe.c (find_pc_partial_function): Use | |
6183 | find_pc_sect_compunit_symtab rather than | |
6184 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
6185 | ||
317d2668 TV |
6186 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
6187 | ||
6188 | PR symtab/25764 | |
6189 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
6190 | in psymtabs. | |
6191 | ||
eea9e357 TV |
6192 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
6193 | ||
6194 | PR symtab/25801 | |
6195 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
6196 | symtabs. | |
6197 | ||
3d5afab3 TV |
6198 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
6199 | ||
6200 | PR symtab/25700 | |
6201 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
6202 | CU if already created. | |
6203 | ||
d43b7a2d TBA |
6204 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6205 | ||
6206 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
6207 | before calling displaced_step_restore, not after. | |
6208 | ||
d89edf9b MM |
6209 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
6210 | ||
6211 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
6212 | its inferior is not recorded by us. | |
6213 | (record_btrace_target_open): Replace call to | |
6214 | all_non_exited_threads () with call to current_inferior | |
6215 | ()->non_exited_threads (). | |
6216 | (record_btrace_target::stop_recording): Likewise. | |
6217 | (record_btrace_target::close): Likewise. | |
6218 | (record_btrace_target::wait): Likewise. | |
6219 | (record_btrace_target::record_stop_replaying): Likewise. | |
6220 | ||
5897fd49 MM |
6221 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
6222 | ||
6223 | * btrace.c (btrace_enable): Throw an error on double enables and | |
6224 | when enabling recording fails. | |
6225 | (btrace_disable): Throw an error if the thread is not recorded. | |
6226 | ||
1a476b6d MM |
6227 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
6228 | ||
6229 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
6230 | request if we do not have a thread_info. | |
6231 | ||
4778a5f8 TV |
6232 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
6233 | ||
6234 | PR gdb/25471 | |
6235 | * thread.c | |
6236 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
6237 | exception in get_frame_id. | |
6238 | ||
0fa7617d TT |
6239 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
6240 | ||
6241 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
6242 | noexcept. | |
6243 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
6244 | constructor as noexcept. | |
6245 | * completer.h (struct completion_result): Mark move constructor as | |
6246 | noexcept. | |
6247 | * completer.c (completion_result::completion_result): Use | |
6248 | initialization style. Don't call reset_match_list. | |
6249 | ||
ad23bda0 MS |
6250 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
6251 | ||
6252 | * MAINTAINERS (Write After Approval): Add myself. | |
6253 | ||
45e1f031 TT |
6254 | 2020-04-18 Tom Tromey <tom@tromey.com> |
6255 | ||
6256 | * windows-tdep.c (init_w32_command_list) | |
6257 | (w32_prefix_command_valid): Restore. | |
6258 | (_initialize_windows_tdep): Call init_w32_command_list. | |
6259 | ||
08feed99 TT |
6260 | 2020-04-18 Tom Tromey <tom@tromey.com> |
6261 | ||
6262 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
6263 | * value.c (value_fn_field): Update. | |
6264 | * valops.c (find_function_in_inferior) | |
6265 | (value_allocate_space_in_inferior): Update. | |
6266 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
6267 | Update. | |
6268 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
6269 | * symtab.c (lookup_global_or_static_symbol) | |
6270 | (find_function_start_sal_1, skip_prologue_sal) | |
6271 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
6272 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
6273 | (maintenance_print_one_line_table): Update. | |
6274 | * symfile.c (init_entry_point_info, section_is_mapped) | |
6275 | (list_overlays_command, simple_read_overlay_table) | |
6276 | (simple_overlay_update_1): Update. | |
6277 | * stap-probe.c (handle_stap_probe): Update. | |
6278 | * stabsread.c (dbx_init_float_type, define_symbol) | |
6279 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
6280 | * source.c (info_line_command): Update. | |
6281 | * python/python.c (gdbpy_source_objfile_script) | |
6282 | (gdbpy_execute_objfile_script): Update. | |
6283 | * python/py-type.c (save_objfile_types): Update. | |
6284 | * python/py-objfile.c (py_free_objfile): Update. | |
6285 | * python/py-inferior.c (python_new_objfile): Update. | |
6286 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
6287 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
6288 | (maintenance_check_psymtabs): Update. | |
6289 | * printcmd.c (info_address_command): Update. | |
6290 | * objfiles.h (struct objfile) <arch>: New method, from | |
6291 | get_objfile_arch. | |
6292 | (get_objfile_arch): Don't declare. | |
6293 | * objfiles.c (get_objfile_arch): Remove. | |
6294 | (filter_overlapping_sections): Update. | |
6295 | * minsyms.c (msymbol_is_function): Update. | |
6296 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
6297 | (output_nondebug_symbol): Update. | |
6298 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
6299 | (mdebug_expand_psymtab): Update. | |
6300 | * machoread.c (macho_add_oso_symfile): Update. | |
6301 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
6302 | Update. | |
6303 | * linux-fork.c (checkpoint_command): Update. | |
6304 | * linespec.c (convert_linespec_to_sals): Update. | |
6305 | * jit.c (finalize_symtab): Update. | |
6306 | * infrun.c (insert_exception_resume_from_probe): Update. | |
6307 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
6308 | * hppa-tdep.c (internalize_unwinds): Update. | |
6309 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
6310 | Update. | |
6311 | * gcore.c (call_target_sbrk): Update. | |
6312 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
6313 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
6314 | (elf_gnu_ifunc_resolve_by_got): Update. | |
6315 | * dwarf2/read.c (create_addrmap_from_index) | |
6316 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
6317 | (read_debug_names_from_section) | |
6318 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
6319 | (add_partial_subprogram, process_full_comp_unit) | |
6320 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
6321 | (read_call_site_scope, dwarf2_ranges_read) | |
6322 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
6323 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
6324 | (read_tag_string_type, dwarf2_init_float_type) | |
6325 | (dwarf2_init_complex_target_type, read_base_type) | |
6326 | (partial_die_info::read, partial_die_info::read) | |
6327 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
6328 | (dwarf2_fetch_die_loc_sect_off): Update. | |
6329 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
6330 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
6331 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
6332 | (dwarf2_loc_desc_get_symbol_read_needs) | |
6333 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
6334 | (loclist_describe_location): Update. | |
6335 | * dwarf2/index-write.c (write_debug_names): Update. | |
6336 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
6337 | * dtrace-probe.c (dtrace_process_dof): Update. | |
6338 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
6339 | (process_one_symbol): Update. | |
6340 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
6341 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
6342 | (coff_read_enum_type): Update. | |
6343 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
6344 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
6345 | * breakpoint.c (create_overlay_event_breakpoint) | |
6346 | (create_longjmp_master_breakpoint) | |
6347 | (create_std_terminate_master_breakpoint) | |
6348 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
6349 | * block.c (block_gdbarch): Update. | |
6350 | * annotate.c (annotate_source_line): Update. | |
6351 | ||
0743fc83 TT |
6352 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
6353 | ||
6354 | * auto-load.c (show_auto_load_cmd): Remove. | |
6355 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
6356 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
6357 | (maintenance_print_arc_command): Remove. | |
6358 | * tui/tui-win.c (tui_command): Remove. | |
6359 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
6360 | * tui/tui-layout.c (tui_layout_command): Remove. | |
6361 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
6362 | * python/python.c (user_set_python, user_show_python): Remove. | |
6363 | (_initialize_python): Use add_basic_prefix_cmd, | |
6364 | add_show_prefix_cmd. | |
6365 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
6366 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
6367 | add_show_prefix_cmd. | |
6368 | (info_guile_command): Remove. | |
6369 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
6370 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
6371 | add_show_prefix_cmd. | |
6372 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
6373 | Remove do_set and do_show parameters. | |
6374 | * cli/cli-style.c (set_style, show_style): Remove. | |
6375 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
6376 | add_show_prefix_cmd. | |
6377 | (cli_style_option::add_setshow_commands): Remove do_set and | |
6378 | do_show parameters. | |
6379 | (cli_style_option::add_setshow_commands): Use | |
6380 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
6381 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
6382 | (set_style_name): Remove. | |
6383 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
6384 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
6385 | (tekhex_dump_command, binary_dump_command) | |
6386 | (binary_append_command): Remove. | |
6387 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
6388 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
6389 | (init_w32_command_list): Remove; move into ... | |
6390 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
6391 | * valprint.c (set_print, show_print, set_print_raw) | |
6392 | (show_print_raw): Remove. | |
6393 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
6394 | add_show_prefix_cmd. | |
6395 | * typeprint.c (set_print_type, show_print_type): Remove. | |
6396 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
6397 | add_show_prefix_cmd. | |
6398 | * record.c (set_record_command, show_record_command): Remove. | |
6399 | (_initialize_record): Use add_basic_prefix_cmd, | |
6400 | add_show_prefix_cmd. | |
6401 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
6402 | add_show_prefix_cmd. | |
6403 | (info_command, show_command, set_debug, show_debug): Remove. | |
6404 | * top.h (set_history, show_history): Don't declare. | |
6405 | * top.c (set_history, show_history): Remove. | |
6406 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
6407 | (unset_tdesc_cmd): Remove. | |
6408 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
6409 | add_show_prefix_cmd. | |
6410 | * symtab.c (info_module_command): Remove. | |
6411 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
6412 | * symfile.c (overlay_command): Remove. | |
6413 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
6414 | * sparc64-tdep.c (info_adi_command): Remove. | |
6415 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
6416 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
6417 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
6418 | add_show_prefix_cmd. | |
6419 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
6420 | (_initialize_serial): Use add_basic_prefix_cmd, | |
6421 | add_show_prefix_cmd. | |
6422 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
6423 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
6424 | add_show_prefix_cmd. | |
6425 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
6426 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
6427 | add_show_prefix_cmd. | |
6428 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
6429 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
6430 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
6431 | add_show_prefix_cmd. | |
6432 | * remote.c (remote_command, set_remote_cmd): Remove. | |
6433 | (_initialize_remote): Use add_basic_prefix_cmd. | |
6434 | * record-full.c (set_record_full_command) | |
6435 | (show_record_full_command): Remove. | |
6436 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
6437 | add_show_prefix_cmd. | |
6438 | * record-btrace.c (cmd_set_record_btrace) | |
6439 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
6440 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
6441 | (cmd_show_record_btrace_pt): Remove. | |
6442 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
6443 | add_show_prefix_cmd. | |
6444 | * ravenscar-thread.c (set_ravenscar_command) | |
6445 | (show_ravenscar_command): Remove. | |
6446 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
6447 | add_show_prefix_cmd. | |
6448 | * mips-tdep.c (show_mips_command, set_mips_command) | |
6449 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
6450 | add_show_prefix_cmd. | |
6451 | * maint.c (maintenance_command, maintenance_info_command) | |
6452 | (maintenance_check_command, maintenance_print_command) | |
6453 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
6454 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
6455 | add_show_prefix_cmd. | |
6456 | (show_per_command_cmd): Remove. | |
6457 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
6458 | Remove. | |
6459 | (maintenance_show_test_settings_cmd): Remove. | |
6460 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
6461 | add_show_prefix_cmd. | |
6462 | * maint-test-options.c (maintenance_test_options_command): | |
6463 | Remove. | |
6464 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
6465 | * macrocmd.c (macro_command): Remove | |
6466 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
6467 | * language.c (set_check, show_check): Remove. | |
6468 | (_initialize_language): Use add_basic_prefix_cmd, | |
6469 | add_show_prefix_cmd. | |
6470 | * infcmd.c (unset_command): Remove. | |
6471 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
6472 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
6473 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
6474 | add_show_prefix_cmd. | |
6475 | * go32-nat.c (go32_info_dos_command): Remove. | |
6476 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
6477 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
6478 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
6479 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
6480 | (_initialize_frame): Use add_basic_prefix_cmd, | |
6481 | add_show_prefix_cmd. | |
6482 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
6483 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
6484 | add_show_prefix_cmd. | |
6485 | * cp-support.c (maint_cplus_command): Remove. | |
6486 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
6487 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
6488 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
6489 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
6490 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
6491 | * breakpoint.c (save_command): Remove. | |
6492 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
6493 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
6494 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
6495 | add_show_prefix_cmd. | |
6496 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
6497 | (set_ada_command, show_ada_command): Remove. | |
6498 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
6499 | add_show_prefix_cmd. | |
6500 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
6501 | ||
3557f442 KR |
6502 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
6503 | ||
6504 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
6505 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
6506 | ||
16197208 SM |
6507 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
6508 | ||
6509 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
6510 | warning messages. | |
6511 | ||
00ac85d3 SM |
6512 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
6513 | ||
6514 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
6515 | import table is not at beginning of .idata section. | |
6516 | ||
381ce63f PA |
6517 | 2020-04-16 Pedro Alves <palves@redhat.com> |
6518 | ||
6519 | * inferior.c (delete_inferior): Use delete operator directly | |
6520 | instead of delete_program_space. | |
6521 | * progspace.c (add_program_space): New, factored out from | |
6522 | program_space::program_space. | |
6523 | (remove_program_space): New, factored out from | |
6524 | delete_program_space. | |
6525 | (program_space::program_space): Remove intro comment. Rewrite. | |
6526 | (program_space::~program_space): Remove intro comment. Call | |
6527 | remove_program_space. | |
6528 | (delete_program_space): Delete. | |
6529 | * progspace.h (program_space::program_space): Make explicit. Move | |
6530 | intro comment here, adjusted. | |
6531 | (program_space::~program_space): Move intro comment here, | |
6532 | adjusted. | |
6533 | (delete_program_space): Remove. | |
6534 | ||
a010605f TT |
6535 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
6536 | ||
6537 | * windows-nat.c (windows_nat::handle_access_violation): New | |
6538 | function. | |
6539 | * nat/windows-nat.h (handle_access_violation): Declare. | |
6540 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
6541 | windows-nat.c. Call handle_access_violation. | |
6542 | ||
efba5c23 TV |
6543 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
6544 | ||
6545 | PR symtab/25791 | |
6546 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
6547 | CUs without psymtab. | |
6548 | ||
97ed802d KB |
6549 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
6550 | ||
6551 | * python/python.c (do_start_initialization): Don't call | |
6552 | PyEval_InitThreads for Python 3.9 and beyond. | |
6553 | ||
c7d64809 KR |
6554 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
6555 | ||
6556 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
6557 | thread functions. | |
6558 | (obsd_nat_target::wait): Likewise. | |
6559 | ||
ce127a96 TT |
6560 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
6561 | ||
6562 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
6563 | (DEBUG_EXCEPT): Use debug_printf. | |
6564 | ||
99f1bc6a AB |
6565 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
6566 | ||
6567 | * completer.c (class completion_tracker::completion_hash_entry) | |
6568 | <hash_name>: New member function. | |
6569 | (completion_tracker::discard_completions): New callback to hash a | |
6570 | completion_hash_entry, pass this to htab_create_alloc. | |
6571 | ||
a0e9b532 JT |
6572 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
6573 | ||
6574 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
6575 | an error if realpath() fails. | |
6576 | ||
06ca5dd4 KR |
6577 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
6578 | ||
6579 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
6580 | (nbsd_nat_target::info_proc): Add do_status. | |
6581 | ||
194d088f TV |
6582 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
6583 | Tom de Vries <tdevries@suse.de> | |
6584 | ||
6585 | PR symtab/25718 | |
6586 | * psympriv.h (struct partial_symtab::read_symtab) | |
6587 | (struct partial_symtab::expand_psymtab) | |
6588 | (struct partial_symtab::read_dependencies): Update comments. | |
6589 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
6590 | read_symtab for includer. | |
6591 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
6592 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
6593 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
6594 | (struct dwarf2_include_psymtab::includer): New member function. | |
6595 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
6596 | ||
c1a66c06 TV |
6597 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
6598 | ||
6599 | PR symtab/25720 | |
6600 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
6601 | with NULL symbol_matcher and lookup_name. | |
6602 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
6603 | and lookup_name. | |
6604 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
6605 | (dw2_debug_names_expand_symtabs_matching): Same. | |
6606 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
6607 | Make lookup_name a pointer. Update comment. | |
6608 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
6609 | lookup_name being a pointer. | |
6610 | * symfile.c (expand_symtabs_matching): Same. | |
6611 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
6612 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
6613 | ||
400b5eca TT |
6614 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6615 | ||
6616 | * run-on-main-thread.c: Update include. | |
6617 | * unittests/main-thread-selftests.c: Update include. | |
6618 | * tui/tui-win.c: Update include. | |
6619 | * tui/tui-io.c: Update include. | |
6620 | * tui/tui-interp.c: Update include. | |
6621 | * tui/tui-hooks.c: Update include. | |
6622 | * top.h: Update include. | |
6623 | * top.c: Update include. | |
6624 | * ser-base.c: Update include. | |
6625 | * remote.c: Update include. | |
6626 | * remote-notif.c: Update include. | |
6627 | * remote-fileio.c: Update include. | |
6628 | * record-full.c: Update include. | |
6629 | * record-btrace.c: Update include. | |
6630 | * python/python.c: Update include. | |
6631 | * posix-hdep.c: Update include. | |
6632 | * mingw-hdep.c: Update include. | |
6633 | * mi/mi-main.c: Update include. | |
6634 | * mi/mi-interp.c: Update include. | |
6635 | * main.c: Update include. | |
6636 | * linux-nat.c: Update include. | |
6637 | * interps.c: Update include. | |
6638 | * infrun.c: Update include. | |
6639 | * inf-loop.c: Update include. | |
6640 | * event-top.c: Update include. | |
6641 | * event-loop.c: Move to ../gdbsupport/. | |
6642 | * event-loop.h: Move to ../gdbsupport/. | |
6643 | * async-event.h: Update include. | |
6644 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
6645 | ||
93b54c8e TT |
6646 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6647 | ||
6648 | * tui/tui-win.c: Include async-event.h. | |
6649 | * remote.c: Include async-event.h. | |
6650 | * remote-notif.c: Include async-event.h. | |
6651 | * record-full.c: Include async-event.h. | |
6652 | * record-btrace.c: Include async-event.h. | |
6653 | * infrun.c: Include async-event.h. | |
6654 | * event-top.c: Include async-event.h. | |
6655 | * event-loop.h: Move some declarations to async-event.h. | |
6656 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
6657 | code to async-event.c. | |
6658 | * async-event.h: New file. | |
6659 | * async-event.c: New file. | |
6660 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
6661 | (HFILES_NO_SRCDIR): Add async-event.h. | |
6662 | ||
c1cd3163 TT |
6663 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6664 | ||
6665 | * utils.c (flush_streams): New function. | |
6666 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
6667 | ||
29f2bf4f TT |
6668 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6669 | ||
6670 | * event-loop.c (handle_file_event): Use warning, not | |
6671 | printf_unfiltered. | |
6672 | ||
98029d02 TT |
6673 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6674 | ||
6675 | * event-loop.c: Include <chrono>. | |
6676 | ||
06cc9596 TT |
6677 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6678 | ||
6679 | * gdb_select.h: Move to ../gdbsupport/. | |
6680 | * event-loop.c: Update include path. | |
6681 | * top.c: Update include path. | |
6682 | * ser-base.c: Update include path. | |
6683 | * ui-file.c: Update include path. | |
6684 | * ser-tcp.c: Update include path. | |
6685 | * guile/scm-ports.c: Update include path. | |
6686 | * posix-hdep.c: Update include path. | |
6687 | * ser-unix.c: Update include path. | |
6688 | * gdb_usleep.c: Update include path. | |
6689 | * mingw-hdep.c: Update include path. | |
6690 | * inflow.c: Update include path. | |
6691 | * infrun.c: Update include path. | |
6692 | * event-top.c: Update include path. | |
6693 | ||
8ae8e197 TT |
6694 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6695 | ||
6696 | * configure: Rebuild. | |
6697 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
6698 | ||
58cf28e8 TT |
6699 | 2020-04-13 Tom Tromey <tom@tromey.com> |
6700 | ||
6701 | * event-loop.h (start_event_loop): Don't declare. | |
6702 | * event-loop.c (start_event_loop): Move... | |
6703 | * main.c (start_event_loop): ...here. Now static. | |
6704 | ||
b7f999ae SDJ |
6705 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
6706 | ||
6707 | * MAINTAINERS: Update my email address. | |
6708 | ||
1085dfd4 KR |
6709 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6710 | ||
6711 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
6712 | IP_ALL. | |
6713 | ||
49d1d1f5 KR |
6714 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6715 | ||
6716 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 6717 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 6718 | |
b4848d2a KR |
6719 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6720 | ||
6721 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 6722 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 6723 | |
51c133d5 KR |
6724 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
6725 | ||
6726 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
6727 | ||
54b8cbd0 KR |
6728 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
6729 | ||
6730 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
6731 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
6732 | (nbsd_nat_target::info_proc): New functions. | |
6733 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
6734 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
6735 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
6736 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
6737 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
6738 | functions. | |
6739 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
6740 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
6741 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
6742 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
6743 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
6744 | ||
cf83625d AS |
6745 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
6746 | ||
6747 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
6748 | bit shift. | |
6749 | ||
0c4311ab TT |
6750 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
6751 | ||
6752 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
6753 | ||
3e65b3e9 TT |
6754 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
6755 | ||
6756 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
6757 | separate debug files. | |
6758 | ||
13302e95 HD |
6759 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
6760 | ||
6761 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
6762 | Move to... | |
6763 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
6764 | ... here. | |
6765 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
6766 | Check for STATUS_WX86_BREAKPOINT. | |
6767 | (windows_nat_target::wait): Same. | |
6768 | ||
bdfc1e8a TV |
6769 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
6770 | ||
6771 | PR cli/25808 | |
6772 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
6773 | ||
f4460aec SM |
6774 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
6775 | ||
6776 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
6777 | (Write After Approval): Remove Tom de Vries. | |
6778 | ||
a25198bb BE |
6779 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6780 | ||
6781 | revert partially: | |
6782 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
6783 | ||
aac66a4c SM |
6784 | * buildsym.c (record_line): Fix undefined behavior and preserve |
6785 | lines at eof. | |
a25198bb | 6786 | |
206c98a6 KR |
6787 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
6788 | ||
6789 | * auxv.h (svr4_auxv_parse): New. | |
6790 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
6791 | and generic_auxv_parse. | |
6792 | (svr4_auxv_parse): Add. | |
6793 | * obsd-tdep.c: Include "auxv.h". | |
6794 | (obsd_auxv_parse): Remove. | |
6795 | (obsd_init_abi): Remove comment. | |
6796 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
6797 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
6798 | * nbsd-tdep.c: Include "auxv.h". | |
6799 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
6800 | ||
71fbdbaf TT |
6801 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6802 | ||
6803 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
6804 | (wait_for_debug_event): Update comment. | |
6805 | * nat/windows-nat.c (last_wait_event): Now static. | |
6806 | ||
2c1d95e8 TT |
6807 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6808 | ||
6809 | * windows-nat.c (wait_for_debug_event): Move to | |
6810 | nat/windows-nat.c. | |
6811 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
6812 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
6813 | windows-nat.c. No longer static. | |
6814 | ||
d2977bc4 TT |
6815 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6816 | ||
6817 | * windows-nat.c (get_windows_debug_event): Use | |
6818 | fetch_pending_stop. | |
6819 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
6820 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
6821 | ||
e758e19c TT |
6822 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6823 | ||
6824 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
6825 | continue_last_debug_event. | |
6826 | * nat/windows-nat.h (matching_pending_stop) | |
6827 | (continue_last_debug_event): Declare. | |
6828 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
6829 | (matching_pending_stop, continue_last_debug_event): New | |
6830 | functions. | |
6831 | ||
8d30e395 TT |
6832 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6833 | ||
6834 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
6835 | (handle_exception_result): Move to nat/windows-nat.h. | |
6836 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
6837 | (windows_nat::handle_ms_vc_exception): New function. | |
6838 | (handle_exception): Move to nat/windows-nat.c. | |
6839 | (get_windows_debug_event): Update. | |
6840 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
6841 | nat/windows-nat.c. | |
6842 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
6843 | (handle_exception_result): Move from windows-nat.c. | |
6844 | (handle_exception): Declare. | |
6845 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
6846 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
6847 | windows-nat.c. | |
6848 | ||
29de418d TT |
6849 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6850 | ||
6851 | * windows-nat.c (exception_count, event_count): Remove. | |
6852 | (handle_exception, get_windows_debug_event) | |
6853 | (do_initial_windows_stuff): Update. | |
6854 | ||
a816ba18 TT |
6855 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6856 | ||
6857 | * windows-nat.c (windows_nat::handle_load_dll) | |
6858 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
6859 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
6860 | Declare. | |
6861 | ||
a00caa12 TT |
6862 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6863 | ||
6864 | * complaints.h (stop_whining): Declare at top-level. | |
6865 | (complaint): Don't declare stop_whining. | |
6866 | ||
d41b524f TT |
6867 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6868 | ||
6869 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
6870 | Rename. No longer static. | |
6871 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
6872 | ||
3c76026d TT |
6873 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6874 | ||
6875 | * windows-nat.c (current_process_handle, current_process_id) | |
6876 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6877 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6878 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
6879 | (display_selectors, fake_create_process) | |
6880 | (get_windows_debug_event): Update. | |
6881 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
6882 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6883 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6884 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
6885 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
6886 | (main_thread_id, last_sig, current_event, last_wait_event) | |
6887 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
6888 | (siginfo_er): New globals. Move from windows-nat.c. | |
6889 | ||
9d8679cc TT |
6890 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6891 | ||
6892 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
6893 | (handle_load_dll): Update. | |
6894 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
6895 | ||
28688adf TT |
6896 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6897 | ||
6898 | * windows-nat.c (enum thread_disposition_type): Move to | |
6899 | nat/windows-nat.h. | |
6900 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
6901 | static. | |
6902 | (windows_add_thread, windows_nat_target::fetch_registers) | |
6903 | (windows_nat_target::store_registers, handle_exception) | |
6904 | (windows_nat_target::resume, get_windows_debug_event) | |
6905 | (windows_nat_target::get_tib_address) | |
6906 | (windows_nat_target::thread_name) | |
6907 | (windows_nat_target::thread_alive): Update. | |
6908 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
6909 | windows-nat.c. | |
6910 | (thread_rec): Declare. | |
6911 | ||
4834dad0 TT |
6912 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6913 | ||
6914 | * windows-nat.c: Add "using namespace". | |
6915 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
6916 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
6917 | ||
65bafd5b TT |
6918 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6919 | ||
6920 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
6921 | destructor. | |
6922 | * nat/windows-nat.c (~windows_thread_info): New. | |
6923 | ||
0a4afda3 TT |
6924 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6925 | ||
6926 | PR gdb/22992 | |
6927 | * windows-nat.c (current_event): Update comment. | |
6928 | (last_wait_event, desired_stop_thread_id): New globals. | |
6929 | (struct pending_stop): New. | |
6930 | (pending_stops): New global. | |
6931 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
6932 | <supports_stopped_by_sw_breakpoint>: New methods. | |
6933 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
6934 | (windows_continue): Handle pending stops. Suspend other threads | |
6935 | when stepping. Use last_wait_event | |
6936 | (wait_for_debug_event): New function. | |
6937 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
6938 | pending stops. Queue spurious stops. | |
6939 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
6940 | (windows_nat_target::kill): Use wait_for_debug_event. | |
6941 | * nat/windows-nat.h (struct windows_thread_info) | |
6942 | <stopped_at_software_breakpoint>: New field. | |
6943 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
6944 | stopped_at_software_breakpoint. | |
6945 | ||
8e61ebec TT |
6946 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6947 | ||
6948 | * windows-nat.c (enum thread_disposition_type): New. | |
6949 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
6950 | change type. | |
6951 | (windows_add_thread, windows_nat_target::fetch_registers) | |
6952 | (windows_nat_target::store_registers, handle_exception) | |
6953 | (windows_nat_target::resume, get_windows_debug_event) | |
6954 | (windows_nat_target::get_tib_address) | |
6955 | (windows_nat_target::thread_name) | |
6956 | (windows_nat_target::thread_alive): Update. | |
6957 | ||
98a03287 TT |
6958 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6959 | ||
6960 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
6961 | (windows_continue): Use windows_continue::resume. | |
6962 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
6963 | resume>: Declare new methods. | |
6964 | * nat/windows-nat.c: New file. | |
6965 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
6966 | ||
7c7411bc TT |
6967 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6968 | ||
6969 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
6970 | (windows_nat_target::fetch_registers) | |
6971 | (windows_nat_target::store_registers, fake_create_process) | |
6972 | (windows_nat_target::resume, windows_nat_target::resume) | |
6973 | (get_windows_debug_event, windows_nat_target::wait) | |
6974 | (windows_nat_target::pid_to_str) | |
6975 | (windows_nat_target::get_tib_address) | |
6976 | (windows_nat_target::get_ada_task_ptid) | |
6977 | (windows_nat_target::thread_name) | |
6978 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
6979 | ||
2950fdf7 TT |
6980 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6981 | ||
6982 | * windows-nat.c (handle_exception) | |
6983 | (windows_nat_target::thread_name): Update. | |
6984 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
6985 | <name>: Now unique_xmalloc_ptr. | |
6986 | ||
62fe396b TT |
6987 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6988 | ||
6989 | * windows-nat.c (thread_rec) | |
6990 | (windows_nat_target::fetch_registers): Update. | |
6991 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
6992 | Update comment. | |
6993 | <debug_registers_changed, reload_context>: Now bool. | |
6994 | ||
e9534bd2 TT |
6995 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
6996 | ||
6997 | * windows-nat.c (windows_add_thread): Use new. | |
6998 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
6999 | (get_windows_debug_event): Update. | |
7000 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
7001 | destructor, and initializers. | |
7002 | ||
ae1f8880 TT |
7003 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7004 | ||
7005 | * windows-nat.c (struct windows_thread_info): Remove. | |
7006 | * nat/windows-nat.h: New file. | |
7007 | ||
55a1e039 TT |
7008 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7009 | ||
7010 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
7011 | (thread_rec, windows_add_thread, windows_delete_thread) | |
7012 | (windows_continue): Update. | |
7013 | ||
93366324 TT |
7014 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7015 | ||
7016 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
7017 | (thread_head): Remove. | |
7018 | (thread_list): New global. | |
7019 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
7020 | (windows_delete_thread, windows_continue): Update. | |
7021 | ||
0f2265e2 SM |
7022 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
7023 | ||
7024 | * windows-tdep.h (windows_init_abi): Add comment. | |
7025 | (cygwin_init_abi): New declaration. | |
7026 | * windows-tdep.c: Split signal enumeration in two, one for | |
7027 | Windows and one for Cygwin. | |
7028 | (windows_gdb_signal_to_target): Only deal with signal of the | |
7029 | Windows OS ABI. | |
7030 | (cygwin_gdb_signal_to_target): New function. | |
7031 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
7032 | gdb_signal_to_target gdbarch method. Add new new function with | |
7033 | this name. | |
7034 | (cygwin_init_abi): New function. | |
7035 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
7036 | comment. Don't call windows_init_abi. | |
7037 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
7038 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
7039 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
7040 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
7041 | a new function of this name. | |
7042 | (i386_cygwin_init_abi): New function. | |
7043 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
7044 | OS ABI Cygwin. | |
7045 | ||
3810f182 SM |
7046 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
7047 | ||
7048 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
7049 | parameter.c. | |
7050 | (dwarf2_read_gdb_index): Update. | |
7051 | ||
063f8e80 KR |
7052 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
7053 | ||
7054 | * nbsd-tdep.c: Include "objfiles.h". | |
7055 | (nbsd_skip_solib_resolver): New. | |
7056 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
7057 | ||
85a9510c | 7058 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
7059 | ||
7060 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
7061 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
7062 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
7063 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
7064 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
7065 | unsigned integer. | |
7066 | ||
9fc3eaae | 7067 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
7068 | ||
7069 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
7070 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
7071 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
7072 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
7073 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
7074 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
7075 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
7076 | ||
7077 | ||
41144253 | 7078 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
7079 | ||
7080 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
7081 | (read_loclist_index): New function definition. | |
7082 | (lookup_loclist_base): New function definition. | |
7083 | (read_loclist_header): New function definition. | |
7084 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
7085 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
7086 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
7087 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
7088 | (read_attribute_value): Handle DW_FORM_loclistx. | |
7089 | (skip_one_die): Handle DW_FORM_loclistx. | |
7090 | (loclist_header): New structure declaration. | |
7091 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
7092 | ||
9f4e76a4 SM |
7093 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
7094 | ||
7095 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
7096 | constructor. Remove `addr` parameter from other constructor and | |
7097 | add `per_cu` parameter. | |
7098 | * dwarf2/read.c (create_partial_symtab): Update. | |
7099 | ||
25c11aca TV |
7100 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
7101 | ||
7102 | PR symtab/25796 | |
7103 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
7104 | (partial_die_info::fixup): Inherit has_const_value. | |
7105 | ||
5707e24b TV |
7106 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
7107 | ||
7108 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
7109 | symbols without address. | |
7110 | ||
05f00e22 KR |
7111 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
7112 | ||
7113 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
7114 | (nbsd_nat_target::thread_alive): Add. | |
7115 | (nbsd_nat_target::thread_name): Likewise. | |
7116 | (nbsd_nat_target::update_thread_list): Likewise. | |
7117 | (update_thread_list::post_attach): Likewise. | |
7118 | (post_attach::pid_to_str): Likewise. | |
7119 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
7120 | (nbsd_thread_lister): Add. | |
7121 | (nbsd_nat_target::thread_alive): Likewise. | |
7122 | (nbsd_nat_target::thread_name): Likewise. | |
7123 | (nbsd_add_threads): Likewise. | |
7124 | (update_thread_list::post_attach): Likewise. | |
7125 | (nbsd_nat_target::update_thread_list): Likewise. | |
7126 | (post_attach::pid_to_str): Likewise. | |
7127 | ||
6ee448cc TT |
7128 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
7129 | ||
7130 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
7131 | (print_field_values): Use the field as the outer value when | |
7132 | recursing. | |
7133 | ||
dea34e8c TT |
7134 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
7135 | ||
7136 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
7137 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
7138 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
7139 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
7140 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
7141 | ||
93689ce9 TT |
7142 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
7143 | ||
7144 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
7145 | TYPE_CODE_ERROR. | |
7146 | ||
79743962 KR |
7147 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
7148 | ||
7149 | * nbsd-tdep.c: Include "gdbarch.h". | |
7150 | Define enum with NetBSD signal numbers. | |
7151 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
7152 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
7153 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
7154 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
7155 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
7156 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
7157 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
7158 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
7159 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
7160 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
7161 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
7162 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
7163 | ||
9e7c9a03 HD |
7164 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
7165 | ||
7166 | PR gdb/25325 | |
7167 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
7168 | ||
d9e49b61 TT |
7169 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
7170 | ||
7171 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
7172 | Read constant block. | |
7173 | ||
e0fc5c3f SM |
7174 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
7175 | ||
7176 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
7177 | (gdb_bfd_get_full_section_contents): New declaration. | |
7178 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
7179 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
7180 | gdb_bfd_get_full_section_contents. | |
7181 | ||
e2ff18a0 SM |
7182 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
7183 | ||
7184 | * exec.c (build_section_table): Replace internal_error with | |
7185 | gdb_assert. | |
7186 | (section_table_xfer_memory_partial): Likewise. | |
7187 | * mdebugread.c (parse_partial_symbols): Likewise. | |
7188 | * psymtab.c (lookup_partial_symbol): Likewise. | |
7189 | * utils.c (wrap_here): Likewise. | |
7190 | ||
0830d301 TT |
7191 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
7192 | ||
7193 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
7194 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
7195 | ||
e7da7f8f TT |
7196 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
7197 | ||
7198 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
7199 | of attributes. | |
7200 | ||
c90d28ac AB |
7201 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
7202 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
7203 | Tom Tromey <tromey@adacore.com> | |
7204 | ||
7205 | * buildsym.c (buildsym_compunit::record_line): Remove | |
7206 | deduplication code. | |
7207 | ||
1aa98955 TV |
7208 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
7209 | ||
7210 | PR ada/24671 | |
7211 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
7212 | ||
d3214198 TV |
7213 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
7214 | ||
7215 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
7216 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
7217 | NULL. | |
7218 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
7219 | (psym_functions): Init psym_lookup_global_symbol_language with | |
7220 | psym_lookup_global_symbol_language. | |
7221 | * symfile-debug.c (debug_sym_quick_functions): Init | |
7222 | lookup_global_symbol_language with NULL. | |
7223 | * symfile.c (set_initial_language): Remove fixme comment. | |
7224 | * symfile.h (struct quick_symbol_functions): Add | |
7225 | lookup_global_symbol_language. | |
7226 | * symtab.c (find_quick_global_symbol_language): New function. | |
7227 | (find_main_name): Use find_quick_global_symbol_language. | |
7228 | ||
2836752f SM |
7229 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
7230 | ||
7231 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
7232 | ||
64dc2d4b BE |
7233 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7234 | ||
7235 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
7236 | lines at eof. | |
7237 | ||
bbe3dc41 BE |
7238 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7239 | ||
7240 | * buildsym.c (record_line): Fix the resizing condition. | |
7241 | ||
6b4a335b TT |
7242 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7243 | ||
7244 | * value.h (value_literal_complex): Add comment. | |
7245 | * valops.c (value_literal_complex): Refer to value.h. | |
7246 | ||
3638a098 TT |
7247 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7248 | ||
7249 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
7250 | (scalar_type): New rule, from typebase. | |
7251 | (typebase): Use scalar_type. Recognize complex types. | |
7252 | (field_name): Handle FLOAT_KEYWORD. | |
7253 | (ident_tokens): Add _Complex and __complex__. | |
7254 | ||
c34e8714 TT |
7255 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7256 | ||
7257 | PR exp/25299: | |
7258 | * valarith.c (promotion_type, complex_binop): New functions. | |
7259 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
7260 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
7261 | ||
fa649bb7 TT |
7262 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7263 | ||
7264 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
7265 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
7266 | (parse_number): Handle complex numbers. | |
7267 | ||
981c08ce TT |
7268 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7269 | ||
7270 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
7271 | ||
4c99290d TT |
7272 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7273 | ||
7274 | * valprint.c (generic_value_print_complex): Use accessors. | |
7275 | * value.h (value_real_part, value_imaginary_part): Declare. | |
7276 | * valops.c (value_real_part, value_imaginary_part): New | |
7277 | functions. | |
7278 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
7279 | ||
5b930b45 TT |
7280 | 2020-04-01 Tom Tromey <tom@tromey.com> |
7281 | ||
7282 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
7283 | (read_range_type): Update. | |
7284 | * mdebugread.c (basic_type): Update. | |
7285 | * go-lang.c (build_go_types): Use init_complex_type. | |
7286 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
7287 | (init_complex_type): Update. | |
7288 | (arch_complex_type): Don't declare. | |
7289 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
7290 | Make name if none given. Use alloc_type_copy. Look for cached | |
7291 | complex type. | |
7292 | (arch_complex_type): Remove. | |
7293 | (gdbtypes_post_init): Use init_complex_type. | |
7294 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
7295 | * dwarf2/read.c (read_base_type): Update. | |
7296 | * d-lang.c (build_d_types): Use init_complex_type. | |
7297 | * ctfread.c (read_base_type): Update. | |
7298 | ||
53cccef1 TBA |
7299 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
7300 | ||
7301 | * infrun.c (stop_all_threads): Update assertion, plus when | |
7302 | stopping threads, take into account that we might be trying | |
7303 | to stop an all-stop target. | |
7304 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
7305 | non-stop target. | |
7306 | ||
a0714d30 TBA |
7307 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
7308 | ||
7309 | * target.h (exists_non_stop_target): New function declaration. | |
7310 | * target.c (exists_non_stop_target): New function. | |
7311 | ||
60e22c1e HD |
7312 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
7313 | ||
7314 | PR gdb/24789 | |
7315 | * eval.c (is_integral_or_integral_reference): New function. | |
7316 | (evaluate_subexp_standard): Allow integer references in | |
7317 | pointer arithmetic. | |
7318 | ||
e139a727 TBA |
7319 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
7320 | ||
7321 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
7322 | check for no ptid in the stop reply when the target is non-stop. | |
7323 | ||
e0802d59 TT |
7324 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
7325 | ||
7326 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
7327 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
7328 | <lookup_name_info>: New overloads. | |
7329 | <name>: Return gdb::string_view. | |
7330 | <c_str>: New method. | |
7331 | <make_ignore_params>: Update. | |
7332 | <search_name_hash>: Update. | |
7333 | <language_lookup_name>: Return const char *. | |
7334 | <m_name>: Change type. | |
7335 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
7336 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
7337 | (lookup_name_info::match_any): Update. | |
7338 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
7339 | Update. | |
7340 | * minsyms.c (linkage_name_str): Update. | |
7341 | * language.c (default_symbol_name_matcher): Update. | |
7342 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
7343 | Update. | |
7344 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
7345 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
7346 | (literal_symbol_name_matcher): Update. | |
7347 | ||
8c072cb6 TT |
7348 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
7349 | ||
7350 | * psymtab.c (psymtab_search_name): Remove function. | |
7351 | (psym_lookup_symbol): Create search name and lookup name here. | |
7352 | (lookup_partial_symbol): Remove "name" parameter; add | |
7353 | lookup_name. | |
7354 | (psym_expand_symtabs_for_function): Update. | |
7355 | ||
6f29a534 TT |
7356 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
7357 | ||
7358 | PR tui/25597: | |
7359 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
7360 | ||
af62665e TT |
7361 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
7362 | ||
7363 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
7364 | memcpy. | |
7365 | ||
d1a89da5 NC |
7366 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
7367 | ||
7368 | * features/riscv/32bit-csr.xml: Regenerated. | |
7369 | * features/riscv/64bit-csr.xml: Regenerated. | |
7370 | ||
d8af9068 TT |
7371 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
7372 | ||
7373 | * ada-valprint.c (print_variant_part): Update. | |
7374 | * ada-lang.h (ada_which_variant_applies): Update. | |
7375 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
7376 | outer_valaddr parameters; replace with "outer" value parameter. | |
7377 | (to_fixed_variant_branch_type): Update. | |
7378 | ||
227c0bf4 PFC |
7379 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
7380 | ||
7381 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
7382 | <list>. Remove inclusion of observable.h. | |
7383 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
7384 | (struct arch_lwp_info): New struct. | |
7385 | (class ppc_linux_dreg_interface): New class. | |
7386 | (struct ppc_linux_process_info): New struct. | |
7387 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
7388 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
7389 | <copy_thread_dreg_state, mark_thread_stale> | |
7390 | <mark_debug_registers_changed, register_hw_breakpoint> | |
7391 | <clear_hw_breakpoint, register_wp, clear_wp> | |
7392 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
7393 | <num_memory_accesses, get_trigger_type> | |
7394 | <create_watchpoint_request, hwdebug_point_cmp> | |
7395 | <init_arch_lwp_info, get_arch_lwp_info> | |
7396 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
7397 | methods. | |
7398 | <struct ptid_hash>: New inner struct. | |
7399 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
7400 | members. | |
7401 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
7402 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
7403 | (have_ptrace_hwdebug_interface) | |
7404 | (hwdebug_find_thread_points_by_tid) | |
7405 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
7406 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
7407 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
7408 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
7409 | use m_dreg_interface. | |
7410 | (hwdebug_point_cmp): Change to... | |
7411 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
7412 | reference arguments instead of pointers. | |
7413 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
7414 | m_dreg_interface. | |
7415 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
7416 | m_dreg_interface. Call register_hw_breakpoint. | |
7417 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
7418 | m_dreg_interface. Call clear_hw_breakpoint. | |
7419 | (get_trigger_type): Change to... | |
7420 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
7421 | comment. | |
7422 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
7423 | use m_dreg_interface. Call register_hw_breakpoint. | |
7424 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
7425 | use m_dreg_interface. Call clear_hw_breakpoint. | |
7426 | (can_use_watchpoint_cond_accel): Change to... | |
7427 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
7428 | method. Update comment, use m_dreg_interface and | |
7429 | m_process_info. | |
7430 | (calculate_dvc): Change to... | |
7431 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
7432 | m_dreg_interface. | |
7433 | (num_memory_accesses): Change to... | |
7434 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
7435 | (check_condition): Change to... | |
7436 | (ppc_linux_nat_target::check_condition): ...this method. | |
7437 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
7438 | comment, use m_dreg_interface. | |
7439 | (create_watchpoint_request): Change to... | |
7440 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
7441 | method. Use m_dreg_interface. | |
7442 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
7443 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
7444 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
7445 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
7446 | (ppc_linux_nat_target::low_forget_process) | |
7447 | (ppc_linux_nat_target::low_new_fork) | |
7448 | (ppc_linux_nat_target::low_new_clone) | |
7449 | (ppc_linux_nat_target::low_delete_thread) | |
7450 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
7451 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
7452 | only call mark_thread_stale. | |
7453 | (ppc_linux_thread_exit): Remove. | |
7454 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
7455 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
7456 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
7457 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
7458 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
7459 | comment. Call low_stopped_data_address. | |
7460 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
7461 | m_dreg_interface. | |
7462 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
7463 | m_dreg_interface. | |
7464 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
7465 | (ppc_linux_nat_target::mark_thread_stale) | |
7466 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
7467 | (ppc_linux_nat_target::register_hw_breakpoint) | |
7468 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
7469 | (ppc_linux_nat_target::register_wp) | |
7470 | (ppc_linux_nat_target::clear_wp) | |
7471 | (ppc_linux_nat_target::init_arch_lwp_info) | |
7472 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
7473 | (_initialize_ppc_linux_nat): Remove observer callback. | |
7474 | ||
4db10d8f PFC |
7475 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
7476 | ||
7477 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
7478 | (ppc_linux_nat_target::auxv_parse) | |
7479 | (ppc_linux_nat_target::read_description) | |
7480 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
7481 | Move up. | |
7482 | ||
1310c1b0 PFC |
7483 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
7484 | ||
7485 | * linux-nat.h (low_new_clone): New method. | |
7486 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
7487 | ||
69b037c3 SM |
7488 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
7489 | ||
7490 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
7491 | (dbx_expand_psymtab): ... this. | |
7492 | (start_psymtab): Update. | |
7493 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
7494 | (mdebug_expand_psymtab): ... this. | |
7495 | (parse_partial_symbols): Update. | |
7496 | (new_psymtab): Update. | |
7497 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
7498 | (xcoff_expand_psymtab): ... this. | |
7499 | (xcoff_start_psymtab): Update. | |
7500 | ||
48993951 SM |
7501 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
7502 | ||
7503 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
7504 | <expand_dependencies>: ... this. | |
7505 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
7506 | (partial_symtab::expand_dependencies): ... this. | |
7507 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
7508 | Update. | |
7509 | (dwarf2_psymtab::expand_psymtab): Update. | |
7510 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
7511 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
7512 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
7513 | ||
3ad83046 SM |
7514 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
7515 | ||
7516 | * psympriv.h (discard_psymtab): Remove. | |
7517 | * dbxread.c (dbx_end_psymtab): Update. | |
7518 | * xcoffread.c (xcoff_end_psymtab): Update. | |
7519 | ||
4d1b9ab6 TT |
7520 | 2020-03-28 Tom Tromey <tom@tromey.com> |
7521 | ||
7522 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
7523 | comment. | |
7524 | ||
f1749218 TT |
7525 | 2020-03-28 Tom Tromey <tom@tromey.com> |
7526 | ||
7527 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
7528 | ||
ebea7626 HD |
7529 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
7530 | ||
7531 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
7532 | ||
a879b4d5 JB |
7533 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
7534 | ||
7535 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
7536 | ||
0826b30a TT |
7537 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7538 | ||
7539 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
7540 | (mark_common_block_symbol_computed, read_tag_string_type) | |
7541 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
7542 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
7543 | to be methods on struct attribute. | |
7544 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
7545 | (read_call_site_scope, partial_die_info::read) | |
7546 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
7547 | Update. | |
7548 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
7549 | from dwarf2_get_ref_die_offset. | |
7550 | (attribute::constant_value): New method, from | |
7551 | dwarf2_get_attr_constant_value. | |
7552 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
7553 | Declare method. | |
7554 | <constant_value>: New method. | |
7555 | ||
2b2558bf TT |
7556 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7557 | ||
7558 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
7559 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
7560 | (dwarf_type_encoding_name): Move to stringify.c. | |
7561 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
7562 | * dwarf2/stringify.c: New file. | |
7563 | * dwarf2/stringify.h: New file. | |
7564 | ||
eeb64781 TT |
7565 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7566 | ||
7567 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
7568 | Rewrite. | |
7569 | ||
a39fdb41 TT |
7570 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7571 | ||
7572 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
7573 | methods. | |
7574 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
7575 | (lookup_ranges_base): Likewise. | |
7576 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
7577 | ||
436c571c TT |
7578 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7579 | ||
7580 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
7581 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
7582 | (read_lexical_block_scope, read_call_site_scope) | |
7583 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
7584 | (handle_struct_member_die, process_structure_scope) | |
7585 | (update_enumeration_type_from_children) | |
7586 | (process_enumeration_scope, read_array_type, read_common_block) | |
7587 | (read_namespace, read_module, read_subroutine_type): Update. | |
7588 | (sibling_die): Remove. | |
7589 | ||
052c8bb8 TT |
7590 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7591 | ||
7592 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
7593 | (build_type_psymtabs_reader, read_structure_type) | |
7594 | (read_enumeration_type, read_full_die_1): Update. | |
7595 | (dwarf2_attr_no_follow): Move to die.h. | |
7596 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
7597 | ||
2b24b6e4 TT |
7598 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7599 | ||
7600 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
7601 | <base_address>: Now an optional. | |
7602 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
7603 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
7604 | (dwarf2_symbol_mark_computed): Update. | |
7605 | ||
c2d50fd0 TT |
7606 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7607 | ||
7608 | * dwarf2/read.c (struct die_info): Move to die.h. | |
7609 | * dwarf2/die.h: New file. | |
7610 | ||
0df7ad3a TT |
7611 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7612 | ||
7613 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
7614 | * dwarf2/read.c | |
7615 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
7616 | Move to line-header.c. | |
7617 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
7618 | Likewise. | |
7619 | (dwarf_decode_line_header): Split into two. | |
7620 | * dwarf2/line-header.c | |
7621 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
7622 | Move from read.c. | |
7623 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
7624 | Likewise. | |
7625 | (dwarf_decode_line_header): New function, split from read.c. | |
7626 | ||
86c0bb4c TT |
7627 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7628 | ||
7629 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
7630 | Declare method. | |
7631 | * dwarf2/read.c (read_attribute_value): Update. | |
7632 | (dwarf2_per_objfile::read_line_string): Rename from | |
7633 | read_indirect_line_string. | |
7634 | (read_formatted_entries): Update. | |
7635 | ||
2ef46c2f TT |
7636 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7637 | ||
7638 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
7639 | variable. | |
7640 | ||
4f9c1eda TT |
7641 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7642 | ||
7643 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
7644 | const. | |
7645 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
7646 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
7647 | parameter const. | |
7648 | ||
5a0e026f TT |
7649 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7650 | ||
7651 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
7652 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
7653 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
7654 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
7655 | ||
8844c11b TT |
7656 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7657 | ||
7658 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
7659 | file_names_size, file_full_name, file_file_name>: Use const. | |
7660 | <file_name_at, file_names>: Add const overload. | |
7661 | * dwarf2/line-header.c (line_header::file_file_name) | |
7662 | (line_header::file_full_name): Update. | |
7663 | ||
c90ec28a TT |
7664 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7665 | ||
7666 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
7667 | (macro_start_file, consume_improper_spaces) | |
7668 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
7669 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
7670 | (dwarf_decode_macros): Move to macro.c. | |
7671 | * dwarf2/macro.c: New file. | |
7672 | * dwarf2/macro.h: New file. | |
7673 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
7674 | ||
4f44ae6c TT |
7675 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7676 | ||
7677 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
7678 | method. | |
7679 | * dwarf2/section.c: New method. From | |
7680 | read_indirect_string_at_offset_from. | |
7681 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
7682 | (read_indirect_string_at_offset_from): Move to section.c. | |
7683 | (read_indirect_string_at_offset): Rewrite. | |
7684 | (read_indirect_line_string_at_offset): Remove. | |
7685 | (read_indirect_string, read_indirect_line_string) | |
7686 | (dwarf_decode_macro_bytes): Update. | |
7687 | ||
a0194fa8 TT |
7688 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7689 | ||
7690 | * dwarf2/section.h (struct dwarf2_section_info) | |
7691 | <overload_complaint>: Declare. | |
7692 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
7693 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
7694 | Rename from dwarf2_section_buffer_overflow_complaint. | |
7695 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
7696 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
7697 | ||
3d27bbdb TT |
7698 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7699 | ||
7700 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
7701 | Declare. | |
7702 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
7703 | Move from read.c. | |
7704 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
7705 | to section.c. | |
7706 | ||
9eac9650 TT |
7707 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7708 | ||
7709 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
7710 | ||
bf80d710 TT |
7711 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7712 | ||
7713 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
7714 | "builder". | |
7715 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
7716 | parameter. | |
7717 | (dwarf_decode_macros): Update. | |
7718 | ||
0314b390 TT |
7719 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7720 | ||
7721 | * dwarf2/read.c (read_attribute_value): Update. | |
7722 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
7723 | method. | |
7724 | (dwarf_decode_macro_bytes): Update. | |
7725 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
7726 | * dwarf2/dwz.c: New file. | |
7727 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
7728 | ||
9fda78b6 TT |
7729 | 2020-03-26 Tom Tromey <tom@tromey.com> |
7730 | ||
7731 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
7732 | * dwarf2/read.c: Add include. | |
7733 | * dwarf2/index-write.c: Add include. | |
7734 | * dwarf2/index-cache.c: Add include. | |
7735 | * dwarf2/dwz.h: New file. | |
7736 | ||
33aa3c10 TT |
7737 | 2020-03-25 Tom Tromey <tom@tromey.com> |
7738 | ||
7739 | * compile/compile-object-load.c (get_out_value_type): Mention | |
7740 | correct symbol name in error message. | |
7741 | ||
d503b685 HD |
7742 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
7743 | ||
7744 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
7745 | ||
7b1eff95 TV |
7746 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
7747 | ||
7748 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
7749 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
7750 | (maintenance_info_symtabs): Same. | |
7751 | ||
dd895392 AB |
7752 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
7753 | ||
7754 | PR gdb/25534 | |
7755 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
7756 | (riscv_regcache_cooked_write): New function. | |
7757 | (riscv_push_dummy_call): Use new function. | |
7758 | (riscv_return_value): Likewise. | |
7759 | ||
5ab2fbf1 SM |
7760 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
7761 | ||
7762 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
7763 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
7764 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
7765 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
7766 | * infrun.c (follow_fork): Likewise. | |
7767 | (follow_fork_inferior): Likewise. | |
7768 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
7769 | * linux-nat.h (class linux_nat_target): Likewise. | |
7770 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
7771 | (remote_target::follow_fork): Likewise. | |
7772 | * target-delegates.c: Re-generate. | |
7773 | * target.c (default_follow_fork): Likewise. | |
7774 | (target_follow_fork): Likewise. | |
7775 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
7776 | (target_follow_fork): Likewise. | |
7777 | ||
a64fafb5 TV |
7778 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
7779 | ||
7780 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
7781 | ||
fe26d3a3 TT |
7782 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7783 | ||
7784 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
7785 | const. | |
7786 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
7787 | const. | |
7788 | ||
c884cc46 SM |
7789 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
7790 | ||
7791 | * ptrace.m4: Don't check for ptrace declaration. | |
7792 | * config.in: Re-generate. | |
7793 | * configure: Re-generate. | |
7794 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
7795 | not defined. | |
7796 | ||
1ff700c2 KR |
7797 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7798 | ||
7799 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
7800 | `PTRACE_TYPE_RET'. | |
7801 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
7802 | * sparc-nat.c (gdb_ptrace): Likewise. | |
7803 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
7804 | ||
f7d4f0b1 TT |
7805 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7806 | ||
7807 | * c-exp.y (lex_one_token): Fix assert. | |
7808 | ||
f67210ff TT |
7809 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7810 | ||
7811 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
7812 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
7813 | strncpy call. | |
7814 | ||
1773be9e TT |
7815 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7816 | ||
7817 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
7818 | ||
70304be9 TT |
7819 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
7820 | ||
7821 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
7822 | to value-based API. | |
7823 | (print_field_values): Likewise. | |
7824 | (ada_val_print_struct_union): Likewise. | |
7825 | (ada_value_print_1): Update. | |
7826 | ||
9faa006d KR |
7827 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7828 | ||
7829 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
7830 | nbsd_nat_target instead of inf_ptrace_target. | |
7831 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7832 | nbsd_nat_target. | |
7833 | ||
4a90f062 KR |
7834 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
7835 | ||
7836 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7837 | it to the ptrace call. | |
7838 | * (store_registers): Likewise. | |
7839 | ||
7840 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
7841 | |
7842 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7843 | it to the ptrace call. | |
7844 | * (store_registers): Likewise. | |
7845 | ||
2d07da27 LM |
7846 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
7847 | ||
7848 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
7849 | valid, fetch vg value from ptrace. | |
7850 | ||
f09db380 KR |
7851 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
7852 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
7853 | * inf-ptrace.c: Likewise. | |
7854 | * (gdb_ptrace): Add. | |
7855 | * (inf_ptrace_target::resume): Update. | |
7856 | * (inf_ptrace_target::xfer_partial): Likewise. | |
7857 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
7858 | * (inf_ptrace_peek_poke): Update. | |
7859 | ||
fcc7376e KR |
7860 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
7861 | ||
7862 | * x86-bsd-nat.c (gdb_ptrace): New. | |
7863 | * (x86bsd_dr_set): Add new argument `ptid'. | |
7864 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
7865 | x86bsd_dr_set_addr): Update. | |
7866 | ||
cada5fc9 AB |
7867 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7868 | ||
7869 | * remote.c (remote_target::process_stop_reply): Handle events for | |
7870 | all threads differently. | |
7871 | ||
19a2740f AB |
7872 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7873 | ||
7874 | * completer.c (completion_tracker::remove_completion): Define new | |
7875 | function. | |
7876 | * completer.h (completion_tracker::remove_completion): Declare new | |
7877 | function. | |
7878 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
7879 | when adding a C++ function symbol. | |
7880 | ||
724fd9ba AB |
7881 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
7882 | ||
7883 | * completer.c (completion_tracker::completion_hash_entry): Define | |
7884 | new class. | |
7885 | (advance_to_filename_complete_word_point): Call | |
7886 | recompute_lowest_common_denominator. | |
7887 | (completion_tracker::completion_tracker): Call discard_completions | |
7888 | to setup the hash table. | |
7889 | (completion_tracker::discard_completions): Allow for being called | |
7890 | from the constructor, pass new equal function, and element deleter | |
7891 | when constructing the hash table. Initialise new class member | |
7892 | variables. | |
7893 | (completion_tracker::maybe_add_completion): Remove use of | |
7894 | m_entries_vec, and store more information into m_entries_hash. | |
7895 | (completion_tracker::recompute_lcd_visitor): New function, most | |
7896 | content taken from... | |
7897 | (completion_tracker::recompute_lowest_common_denominator): | |
7898 | ...here, this now just visits each item in the hash calling the | |
7899 | above visitor. | |
7900 | (completion_tracker::build_completion_result): Remove use of | |
7901 | m_entries_vec, call recompute_lowest_common_denominator. | |
7902 | * completer.h (completion_tracker::have_completions): Remove use | |
7903 | of m_entries_vec. | |
7904 | (completion_tracker::completion_hash_entry): Declare new class. | |
7905 | (completion_tracker::recompute_lowest_common_denominator): Change | |
7906 | function signature. | |
7907 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
7908 | (completion_tracker::m_entries_vec): Delete. | |
7909 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
7910 | (completion_tracker::m_lowest_common_denominator_valid): New | |
7911 | member variable. | |
7912 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
7913 | member variable. | |
7914 | ||
5a82b8a1 KR |
7915 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7916 | ||
7917 | * regformats/regdef.h: Put reg in gdb namespace. | |
7918 | ||
fb516a69 KR |
7919 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7920 | ||
7921 | * i386-bsd-nat.c (gdb_ptrace): New. | |
7922 | * (i386bsd_fetch_inferior_registers, | |
7923 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
7924 | * (i386bsd_fetch_inferior_registers, | |
7925 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
7926 | ||
1c0aa1fb KR |
7927 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7928 | ||
7929 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
7930 | * (amd64bsd_fetch_inferior_registers, | |
7931 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
7932 | * (amd64bsd_fetch_inferior_registers, | |
7933 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
7934 | ||
5ccd2fb7 KR |
7935 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7936 | ||
7937 | * user-regs.c (user_reg::read): Rename to... | |
7938 | (user_reg::xread): ...this. | |
7939 | * (append_user_reg): Rename argument `read' to `xread'. | |
7940 | * (user_reg_add_builtin): Likewise. | |
7941 | * (user_reg_add): Likewise. | |
7942 | * (value_of_user_reg): Likewise. | |
7943 | ||
2108a63a KR |
7944 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7945 | ||
7946 | * sparc-nat.c (gdb_ptrace): New. | |
7947 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7948 | (sparc_store_inferior_registers) Remove obsolete comment. | |
7949 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7950 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
7951 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
7952 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
7953 | ||
a225c9a8 KR |
7954 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7955 | ||
7956 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
7957 | it to the ptrace call. | |
7958 | * sh-nbsd-nat.c (store_registers): Likewise. | |
7959 | ||
98097623 KR |
7960 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7961 | ||
7962 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
7963 | nbsd_nat_target instead of inf_ptrace_target. | |
7964 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
7965 | nbsd_nat_target. | |
7966 | ||
9e38d619 KR |
7967 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7968 | ||
7969 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
7970 | ||
a2ecbe9f KR |
7971 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
7972 | ||
7973 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
7974 | <sys/sysctl.h>. | |
7975 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
7976 | ||
58990295 TV |
7977 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
7978 | ||
7979 | PR gdb/23710 | |
7980 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
7981 | fields. | |
7982 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
7983 | fields. | |
7984 | (process_imported_unit_die): Skip import of c++ CUs. | |
7985 | ||
771dd3a8 TT |
7986 | 2020-03-16 Tom Tromey <tom@tromey.com> |
7987 | ||
7988 | * p-valprint.c (pascal_object_print_value): Initialize | |
7989 | base_value. | |
7990 | ||
817a7585 AK |
7991 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
7992 | Shahab Vahedi <shahab@synopsys.com> | |
7993 | ||
7994 | * Makefile.in: Add arch/arc.o | |
7995 | * configure.tgt: Likewise. | |
7996 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
7997 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 7998 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
7999 | * arc-tdep.h (arc_read_description): Add proto type. |
8000 | * arch/arc.c: New file. | |
8001 | * arch/arc.h: Likewise. | |
8002 | * features/Makefile: Replace old target descriptions with new. | |
8003 | * features/arc-arcompact.c: Remove. | |
8004 | * features/arc-arcompact.xml: Likewise. | |
8005 | * features/arc-v2.c: Likewise | |
8006 | * features/arc-v2.xml: Likewise | |
8007 | * features/arc/aux-arcompact.xml: New file. | |
8008 | * features/arc/aux-v2.xml: Likewise. | |
8009 | * features/arc/core-arcompact.xml: Likewise. | |
8010 | * features/arc/core-v2.xml: Likewise. | |
8011 | * features/arc/aux-arcompact.c: Generate. | |
8012 | * features/arc/aux-v2.c: Likewise. | |
8013 | * features/arc/core-arcompact.c: Likewise. | |
8014 | * features/arc/core-v2.c: Likewise. | |
8015 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
8016 | ||
67430cd0 TT |
8017 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
8018 | ||
8019 | PR gdb/25663: | |
8020 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
8021 | putting value into bcache. | |
8022 | ||
30efb6c7 SM |
8023 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8024 | ||
8025 | PR gdb/21500 | |
8026 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
8027 | to... | |
8028 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
8029 | long type. | |
8030 | (amd64_windows_init_abi): New function. | |
8031 | (amd64_cygwin_init_abi): New function. | |
8032 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
8033 | the Cygwin OS ABI. | |
8034 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
8035 | comment. | |
8036 | ||
8db52437 SM |
8037 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8038 | ||
8039 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
8040 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
8041 | (pe_import_directory_entry): New struct type. | |
8042 | (is_linked_with_cygwin_dll): New function. | |
8043 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
8044 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
8045 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
8046 | ||
5982a56a SM |
8047 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8048 | ||
8049 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
8050 | i386_cygwin_core_osabi_sniffer. | |
8051 | ||
7a1998df SM |
8052 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8053 | ||
8054 | * i386-cygwin-tdep.c: Rename to... | |
8055 | * i386-windows-tdep.c: ... this. | |
8056 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
8057 | i386-windows-tdep.c. | |
8058 | * configure.tgt: Likewise. | |
8059 | ||
053205cc SM |
8060 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8061 | ||
8062 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
8063 | * osabi.c (gdb_osabi_names): Add "Windows". | |
8064 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
8065 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
8066 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
8067 | i386_cygwin_osabi_sniffer. | |
8068 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
8069 | GDB_OSABI_WINDOWS for i386. | |
8070 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
8071 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
8072 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
8073 | for x86-64. | |
8074 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
8075 | when the target matches '*-*-mingw*'. | |
8076 | ||
fe4b2ee6 SM |
8077 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8078 | ||
8079 | * defs.h (enum gdb_osabi): Move to... | |
8080 | * osabi.h (enum gdb_osabi): ... here. | |
8081 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
8082 | * gdbarch.h: Re-generate. | |
8083 | ||
cb9b645d SM |
8084 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
8085 | ||
8086 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
8087 | function. | |
8088 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
8089 | ||
3293bbaf TT |
8090 | 2020-03-14 Tom Tromey <tom@tromey.com> |
8091 | ||
8092 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
8093 | for C++. | |
8094 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
8095 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
8096 | (c_type_print_base_1): Update. | |
8097 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
8098 | constants. | |
8099 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
8100 | tp_restrict. | |
8101 | (type_stack::follow_type_instance_flags): Likewise. | |
8102 | (type_stack::follow_types): Likewise. Merge type-following code. | |
8103 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
8104 | (space_identifier, cv_with_space_id) | |
8105 | (const_or_volatile_or_space_identifier_noopt) | |
8106 | (const_or_volatile_or_space_identifier): Remove. | |
8107 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
8108 | rules. | |
8109 | (ptr_operator, typebase): Update. | |
8110 | (enum token_flag) <FLAG_C>: New constant. | |
8111 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
8112 | "_Atomic". | |
8113 | (lex_one_token): Handle FLAG_C. | |
8114 | ||
154151a6 KR |
8115 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8116 | ||
8117 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
8118 | it to the ptrace call. | |
8119 | * m68k-bsd-nat.c (store_registers): Likewise. | |
8120 | ||
bc107784 KR |
8121 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8122 | ||
8123 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
8124 | gdb_byte *. | |
8125 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
8126 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
8127 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
8128 | ||
01a80117 KR |
8129 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8130 | ||
8131 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
8132 | nbsd_nat_target instead of inf_ptrace_target. | |
8133 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
8134 | nbsd_nat_target. | |
8135 | ||
f90280ca KR |
8136 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8137 | ||
8138 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
8139 | register_t. | |
8140 | ||
6def66f1 KR |
8141 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8142 | ||
8143 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
8144 | it to the ptrace call. | |
8145 | * alpha-bsd-nat.c (store_registers): Likewise. | |
8146 | ||
66eaca97 KR |
8147 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8148 | ||
8149 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
8150 | includes. | |
8151 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
8152 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
8153 | fill_fpregset): Likewise. | |
8154 | ||
4fed520b KR |
8155 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8156 | ||
8157 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
8158 | nbsd_nat_target instead of inf_ptrace_target. | |
8159 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
8160 | nbsd_nat_target. | |
8161 | ||
2190cf06 KR |
8162 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8163 | ||
8164 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
8165 | register_t. | |
8166 | ||
75c56d3d KR |
8167 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8168 | ||
8169 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
8170 | it to the ptrace call. | |
8171 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
8172 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
8173 | * arm-nbsd-nat.c (store_register): Likewise. | |
8174 | * arm-nbsd-nat.c (store_regs): Likewise. | |
8175 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
8176 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
8177 | ||
6018d381 KR |
8178 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8179 | ||
8180 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
8181 | nbsd_nat_target instead of inf_ptrace_target. | |
8182 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
8183 | nbsd_nat_target. | |
8184 | ||
013f99f0 KR |
8185 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8186 | ||
8187 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
8188 | it to the ptrace call. | |
8189 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
8190 | ||
12753073 KR |
8191 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8192 | ||
6227b330 KR |
8193 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
8194 | it to the ptrace call. | |
8195 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
8196 | ||
8197 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
8198 | ||
8199 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
8200 | gdb_byte *. | |
12753073 KR |
8201 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
8202 | ||
d5be5fa4 KR |
8203 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8204 | ||
8205 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
8206 | instead of inf_ptrace_target. | |
8207 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
8208 | nbsd_nat_target. | |
8209 | ||
8110f842 KR |
8210 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8211 | ||
8212 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
8213 | register_t. | |
8214 | ||
52feded7 KR |
8215 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8216 | ||
8217 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
8218 | register_t. | |
8219 | ||
25567eee KR |
8220 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
8221 | ||
8222 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
8223 | register_t. | |
8224 | ||
426a9c18 TT |
8225 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8226 | ||
8227 | * value.h (val_print): Don't declare. | |
8228 | * valprint.h (val_print_array_elements) | |
8229 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
8230 | * valprint.c (generic_val_print_array): Take a struct value. | |
8231 | (generic_val_print_ptr, generic_val_print_memberptr) | |
8232 | (generic_val_print_bool, generic_val_print_int) | |
8233 | (generic_val_print_char, generic_val_print_complex) | |
8234 | (generic_val_print): Remove. | |
8235 | (generic_value_print): Update. | |
8236 | (do_val_print): Remove unused parameters. Don't call | |
8237 | la_val_print. | |
8238 | (val_print): Remove. | |
8239 | (common_val_print): Update. Don't call value_check_printable. | |
8240 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
8241 | * rust-lang.c (rust_val_print): Remove. | |
8242 | (rust_language_defn): Update. | |
8243 | * p-valprint.c (pascal_val_print): Remove. | |
8244 | (pascal_value_print_inner): Update. | |
8245 | (pascal_object_print_val_fields, pascal_object_print_val): | |
8246 | Remove. | |
8247 | (pascal_object_print_static_field): Update. | |
8248 | * p-lang.h (pascal_val_print): Don't declare. | |
8249 | * p-lang.c (pascal_language_defn): Update. | |
8250 | * opencl-lang.c (opencl_language_defn): Update. | |
8251 | * objc-lang.c (objc_language_defn): Update. | |
8252 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
8253 | * m2-lang.h (m2_val_print): Don't declare. | |
8254 | * m2-lang.c (m2_language_defn): Update. | |
8255 | * language.h (struct language_defn) <la_val_print>: Remove. | |
8256 | * language.c (unk_lang_value_print_inner): Rename. Change | |
8257 | argument types. | |
8258 | (unknown_language_defn, auto_language_defn): Update. | |
8259 | * go-valprint.c (go_val_print): Remove. | |
8260 | * go-lang.h (go_val_print): Don't declare. | |
8261 | * go-lang.c (go_language_defn): Update. | |
8262 | * f-valprint.c (f_val_print): Remove. | |
8263 | * f-lang.h (f_value_print): Don't declare. | |
8264 | * f-lang.c (f_language_defn): Update. | |
8265 | * d-valprint.c (d_val_print): Remove. | |
8266 | * d-lang.h (d_value_print): Don't declare. | |
8267 | * d-lang.c (d_language_defn): Update. | |
8268 | * cp-valprint.c (cp_print_value_fields) | |
8269 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
8270 | (cp_print_static_field): Update. | |
8271 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
8272 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
8273 | (c_val_print_memberptr, c_val_print): Remove. | |
8274 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
8275 | (cp_print_value_fields_rtti): Don't declare. | |
8276 | * c-lang.c (c_language_defn, cplus_language_defn) | |
8277 | (asm_language_defn, minimal_language_defn): Update. | |
8278 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
8279 | (ada_val_print_enum): Take a struct value. | |
8280 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
8281 | (ada_val_print): Remove. | |
8282 | (ada_value_print_1): Update. | |
8283 | (printable_val_type): Remove. | |
8284 | * ada-lang.h (ada_val_print): Don't declare. | |
8285 | * ada-lang.c (ada_language_defn): Update. | |
8286 | ||
42331a1e TT |
8287 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8288 | ||
8289 | * valprint.c (do_val_print): Update. | |
8290 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
8291 | a struct value. | |
8292 | (value_to_value_object_no_release): Declare. | |
8293 | * python/py-value.c (value_to_value_object_no_release): New | |
8294 | function. | |
8295 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
8296 | struct value. | |
8297 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
8298 | function. | |
8299 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
8300 | a struct value. | |
8301 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
8302 | Declare. | |
8303 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
8304 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
8305 | value. | |
8306 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
8307 | value. | |
8308 | * extension-priv.h (struct extension_language_ops) | |
8309 | <apply_val_pretty_printer>: Take a struct value. | |
8310 | * cp-valprint.c (cp_print_value): Create a struct value. | |
8311 | (cp_print_value): Update. | |
8312 | ||
3a916a97 TT |
8313 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8314 | ||
8315 | * ada-valprint.c (print_field_values): Call common_val_print. | |
8316 | ||
b59eac37 TT |
8317 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8318 | ||
8319 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
8320 | bitoffset and val parameters. Call common_val_print. | |
8321 | (ada_val_print_string): Remove offset, address, and original_value | |
8322 | parameters. | |
8323 | (ada_val_print_array): Update. | |
8324 | (ada_value_print_array): New function. | |
8325 | (ada_value_print_1): Call it. | |
8326 | ||
03371129 TT |
8327 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8328 | ||
8329 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
8330 | ||
2e088f8b TT |
8331 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8332 | ||
8333 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
8334 | ||
39ef85a8 TT |
8335 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8336 | ||
8337 | * ada-valprint.c (ada_value_print_num): New function. | |
8338 | (ada_value_print_1): Use it. | |
8339 | ||
b9fa6e07 TT |
8340 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8341 | ||
8342 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
8343 | ||
416595d6 TT |
8344 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8345 | ||
8346 | * ada-valprint.c (ada_value_print_ptr): New function. | |
8347 | (ada_value_print_1): Use it. | |
8348 | ||
5b5e15ec TT |
8349 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8350 | ||
8351 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
8352 | call common_val_print. | |
8353 | (ada_val_print_1): Update. | |
8354 | (ada_value_print_1): New function. | |
8355 | (ada_value_print_inner): Rewrite. | |
8356 | ||
fbf54e75 TT |
8357 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8358 | ||
8359 | * cp-valprint.c (cp_print_value_fields): Update. | |
8360 | (cp_print_value): New function. | |
8361 | ||
64b653ca TT |
8362 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8363 | ||
8364 | * m2-valprint.c (m2_value_print_inner): Use | |
8365 | cp_print_value_fields. | |
8366 | * cp-valprint.c (cp_print_value_fields): New function. | |
8367 | * c-valprint.c (c_value_print_struct): New function. | |
8368 | (c_value_print_inner): Use c_value_print_struct. | |
8369 | * c-lang.h (cp_print_value_fields): Declare. | |
8370 | ||
6999f067 TT |
8371 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8372 | ||
8373 | * c-valprint.c (c_value_print_array): New function. | |
8374 | (c_value_print_inner): Use it. | |
8375 | ||
ce80b8bd TT |
8376 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8377 | ||
8378 | * c-valprint.c (c_value_print_memberptr): New function. | |
8379 | (c_value_print_inner): Use it. | |
8380 | ||
2faac269 TT |
8381 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8382 | ||
8383 | * c-valprint.c (c_value_print_int): New function. | |
8384 | (c_value_print_inner): Use it. | |
8385 | ||
da3e2c29 TT |
8386 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8387 | ||
8388 | * c-valprint.c (c_value_print_ptr): New function. | |
8389 | (c_value_print_inner): Use it. | |
8390 | ||
50836231 TT |
8391 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8392 | ||
8393 | * c-valprint.c (c_value_print_inner): Rewrite. | |
8394 | ||
4f412b6e TT |
8395 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8396 | ||
8397 | * valprint.c (generic_value_print_complex): New function. | |
8398 | (generic_value_print): Use it. | |
8399 | ||
f5354008 TT |
8400 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8401 | ||
8402 | * valprint.c (generic_val_print_float): Don't call | |
8403 | val_print_scalar_formatted. | |
8404 | (generic_val_print, generic_value_print): Update. | |
8405 | ||
3eec3b05 TT |
8406 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8407 | ||
8408 | * valprint.c (generic_value_print_char): New function | |
8409 | (generic_value_print): Use it. | |
8410 | ||
fdddfccb TT |
8411 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8412 | ||
8413 | * valprint.c (generic_value_print_int): New function. | |
8414 | (generic_value_print): Use it. | |
8415 | ||
6dde7521 TT |
8416 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8417 | ||
8418 | * valprint.c (generic_value_print_bool): New function. | |
8419 | (generic_value_print): Use it. | |
8420 | ||
4112d2e6 TT |
8421 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8422 | ||
8423 | * valprint.c (generic_val_print_func): Simplify. | |
8424 | (generic_val_print, generic_value_print): Update. | |
8425 | ||
65786af6 TT |
8426 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8427 | ||
8428 | * valprint.c (generic_val_print_flags): Remove. | |
8429 | (generic_val_print, generic_value_print): Update. | |
8430 | (val_print_type_code_flags): Add original_value parameter. | |
8431 | ||
40f3ce18 TT |
8432 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8433 | ||
8434 | * valprint.c (generic_val_print): Update. | |
8435 | (generic_value_print): Update. | |
8436 | * valprint.c (generic_val_print_enum): Don't call | |
8437 | val_print_scalar_formatted. | |
8438 | ||
2a5b130b TT |
8439 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8440 | ||
8441 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
8442 | * valprint.c (generic_value_print_ptr): New function. | |
8443 | ||
abc66ce9 TT |
8444 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8445 | ||
8446 | * valprint.c (generic_value_print): Rewrite. | |
8447 | ||
07a32858 TT |
8448 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8449 | ||
8450 | * p-valprint.c (pascal_object_print_value_fields) | |
8451 | (pascal_object_print_value): New functions. | |
8452 | ||
64d64d3a TT |
8453 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8454 | ||
8455 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
8456 | ||
6a95a1f5 TT |
8457 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8458 | ||
8459 | * f-valprint.c (f_value_print_innner): Rewrite. | |
8460 | ||
59fcdac6 TT |
8461 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8462 | ||
8463 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
8464 | (m2_print_unbounded_array): Update. | |
8465 | (m2_print_array_contents): Take a struct value. | |
8466 | (m2_value_print_inner): Rewrite. | |
8467 | ||
d133c3e1 TT |
8468 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8469 | ||
8470 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
8471 | (d_value_print_inner): New function. | |
8472 | * d-lang.h (d_value_print_inner): Declare. | |
8473 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
8474 | ||
23b0f06b TT |
8475 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8476 | ||
8477 | * go-valprint.c (go_value_print_inner): New function. | |
8478 | * go-lang.h (go_value_print_inner): Declare. | |
8479 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
8480 | ||
5f56f7cb TT |
8481 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8482 | ||
8483 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
8484 | API. | |
8485 | (rust_val_print): Rewrite. | |
8486 | (rust_value_print_inner): New function, from rust_val_print. | |
8487 | (rust_language_defn): Use rust_value_print_inner. | |
8488 | ||
26792ee0 TT |
8489 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8490 | ||
8491 | * ada-valprint.c (ada_value_print_inner): New function. | |
8492 | * ada-lang.h (ada_value_print_inner): Declare. | |
8493 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
8494 | ||
24051bbe TT |
8495 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8496 | ||
8497 | * f-valprint.c (f_value_print_innner): New function. | |
8498 | * f-lang.h (f_value_print_innner): Declare. | |
8499 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
8500 | ||
c0941be6 TT |
8501 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8502 | ||
8503 | * p-valprint.c (pascal_value_print_inner): New function. | |
8504 | * p-lang.h (pascal_value_print_inner): Declare. | |
8505 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
8506 | ||
62c4663d TT |
8507 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8508 | ||
8509 | * m2-valprint.c (m2_value_print_inner): New function. | |
8510 | * m2-lang.h (m2_value_print_inner): Declare. | |
8511 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
8512 | ||
62182190 TT |
8513 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8514 | ||
8515 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
8516 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
8517 | * c-valprint.c (c_value_print_inner): New function. | |
8518 | * c-lang.h (c_value_print_inner): Declare. | |
8519 | * c-lang.c (c_language_defn, cplus_language_defn) | |
8520 | (asm_language_defn, minimal_language_defn): Use | |
8521 | c_value_print_inner. | |
8522 | ||
1e592a8a TT |
8523 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8524 | ||
8525 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
8526 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
8527 | ||
7fe471e9 TT |
8528 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8529 | ||
8530 | * c-valprint.c (c_val_print_array): Simplify. | |
8531 | ||
d121c6ce TT |
8532 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8533 | ||
8534 | * valprint.c (value_print_array_elements): New function. | |
8535 | * valprint.h (value_print_array_elements): Declare. | |
8536 | ||
4dba70ee TT |
8537 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8538 | ||
8539 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
8540 | * mips-tdep.c (mips_print_register): Use | |
8541 | value_print_scalar_formatted. | |
8542 | ||
4f9ae810 TT |
8543 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8544 | ||
8545 | * valprint.h (value_print_scalar_formatted): Declare. | |
8546 | * valprint.c (value_print_scalar_formatted): New function. | |
8547 | ||
156bfec9 TT |
8548 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8549 | ||
8550 | * valprint.h (generic_value_print): Declare. | |
8551 | * valprint.c (generic_value_print): New function. | |
8552 | ||
2b4e573d TT |
8553 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8554 | ||
8555 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
8556 | available. | |
8557 | * rust-lang.c (rust_language_defn): Update. | |
8558 | * p-lang.c (pascal_language_defn): Update. | |
8559 | * opencl-lang.c (opencl_language_defn): Update. | |
8560 | * objc-lang.c (objc_language_defn): Update. | |
8561 | * m2-lang.c (m2_language_defn): Update. | |
8562 | * language.h (struct language_defn) <la_value_print_inner>: New | |
8563 | member. | |
8564 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
8565 | * go-lang.c (go_language_defn): Update. | |
8566 | * f-lang.c (f_language_defn): Update. | |
8567 | * d-lang.c (d_language_defn): Update. | |
8568 | * c-lang.c (c_language_defn, cplus_language_defn) | |
8569 | (asm_language_defn, minimal_language_defn): Update. | |
8570 | * ada-lang.c (ada_language_defn): Update. | |
8571 | ||
a1f6a07c TT |
8572 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8573 | ||
8574 | * c-valprint.c (c_value_print): Use common_val_print. | |
8575 | ||
410cf315 TT |
8576 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8577 | ||
8578 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
8579 | ||
72a45c93 TT |
8580 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8581 | ||
8582 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
8583 | common_val_print. | |
8584 | ||
040f66bd TT |
8585 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8586 | ||
8587 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
8588 | common_val_print. | |
8589 | ||
a6e05a6c TT |
8590 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8591 | ||
8592 | * mi/mi-main.c (output_register): Use common_val_print. | |
8593 | ||
3444c526 TT |
8594 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8595 | ||
8596 | * infcmd.c (default_print_one_register_info): Use | |
8597 | common_val_print. | |
8598 | ||
c2a44efe TT |
8599 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8600 | ||
8601 | * valprint.h (common_val_print_checked): Declare. | |
8602 | * valprint.c (common_val_print_checked): New function. | |
8603 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
8604 | ||
b0c26e99 TT |
8605 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8606 | ||
8607 | * valprint.c (do_val_print): New function, from val_print. | |
8608 | (val_print): Use do_val_print. | |
8609 | (common_val_print): Use do_val_print. | |
8610 | ||
ce3acbe9 TT |
8611 | 2020-03-13 Tom Tromey <tom@tromey.com> |
8612 | ||
8613 | * valprint.c (value_print): Use scoped_value_mark. | |
8614 | ||
96c7f873 TV |
8615 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
8616 | ||
8617 | PR symtab/25646 | |
8618 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
8619 | globals_offset and statics_offset. Push element onto | |
8620 | current_global_psymbols and current_static_psymbols stacks. | |
8621 | (concat): New function. | |
8622 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
8623 | element from current_global_psymbols and current_static_psymbols | |
8624 | stacks. Concat popped elements to global_psymbols and | |
8625 | static_symbols. | |
8626 | (add_psymbol_to_list): Use current_global_psymbols and | |
8627 | current_static_psymbols stacks. | |
8628 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
8629 | current_static_psymbols fields. | |
8630 | ||
6ba0a321 CB |
8631 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
8632 | ||
8633 | * corelow.c (sniff_core_bfd): Remove. | |
8634 | (class core_target) <m_core_vec>: Remove. | |
8635 | (core_target::core_target): Update. | |
8636 | (core_file_fns): Remove. | |
8637 | (deprecated_add_core_fns): Remove. | |
8638 | (default_core_sniffer): Remove. | |
8639 | (sniff_core_bfd): Remove. | |
8640 | (default_check_format): Remove. | |
8641 | (gdb_check_format): Remove. | |
8642 | (core_target_open): Update. | |
8643 | (core_target::get_core_register_section): Update. | |
8644 | (get_core_registers_cb): Update. | |
8645 | (core_target::fetch_registers): Update. | |
8646 | * gdbcore.h (struct core_fns): Remove. | |
8647 | (deprecated_add_core_fns): Remove. | |
8648 | (default_core_sniffer): Remove. | |
8649 | (default_check_format): Remove. | |
8650 | ||
227031b2 TT |
8651 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8652 | ||
8653 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
8654 | CORE_ADDR. | |
8655 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
8656 | ||
53807e9f TT |
8657 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8658 | ||
8659 | * remote.c (remote_target::download_tracepoint) | |
8660 | (remote_target::enable_tracepoint) | |
8661 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
8662 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
8663 | sprintf_vma. | |
8664 | ||
64f25102 TT |
8665 | 2020-03-12 Tom Tromey <tom@tromey.com> |
8666 | ||
8667 | * symfile-mem.c: Update CORE_ADDR size assert. | |
8668 | ||
272cd5a3 SM |
8669 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8670 | ||
8671 | * selftest.m4: Move to gdbsupport/. | |
8672 | * acinclude.m4: Update path to selftest.m4. | |
8673 | ||
74cd3f9d SM |
8674 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8675 | ||
8676 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
8677 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
8678 | gdbarch-selfselftests.c and selftest-arch.c. | |
8679 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
8680 | (SELFTESTS_OBS): ... this. | |
8681 | (COMMON_SFILES): Remove disasm-selftests.c and | |
8682 | gdbarch-selftests.c. | |
8683 | * configure.ac: Don't add selftest-arch.{c,o} to | |
8684 | CONFIG_{SRCS,OBS}. | |
8685 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
8686 | preprocessor conditions. | |
8687 | ||
db6878ac SM |
8688 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8689 | ||
8690 | * configure.ac: Don't source bfd/development.sh. | |
8691 | * selftest.m4: Modify comment. | |
8692 | * configure: Re-generate. | |
8693 | ||
4d696a5c SM |
8694 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
8695 | ||
8696 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
8697 | not "true" or "false". | |
8698 | * configure: Re-generate. | |
8699 | ||
8dd8e1c7 CB |
8700 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
8701 | ||
8702 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
8703 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
8704 | renamed to arm_nbsd_supply_gregset. | |
8705 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
8706 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
8707 | (arm_netbsd_nat_target::fetch_registers): Update. | |
8708 | (fetch_elfcore_registers): Removed. | |
8709 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
8710 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
8711 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
8712 | not require NetBSD system headers. | |
8713 | (arm_nbsd_regset): New struct. | |
8714 | (arm_nbsd_iterate_over_regset_sections): New function. | |
8715 | (arm_netbsd_init_abi_common): Updated to call | |
8716 | set_gdbarch_iterate_over_regset_sections. | |
8717 | * arm-nbsd-tdep.h: New file. | |
8718 | ||
dd69bf7a KB |
8719 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
8720 | ||
8721 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
8722 | recursion. | |
8723 | ||
a0761e34 SM |
8724 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
8725 | ||
8726 | * configure: Re-generate. | |
8727 | ||
e7a82140 TT |
8728 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
8729 | ||
8730 | * ada-typeprint.c (print_choices): Fix comment. | |
8731 | ||
dcc050c8 AB |
8732 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
8733 | ||
8734 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
8735 | previous item in the list, when the list has no items. | |
8736 | ||
1c33af77 TV |
8737 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
8738 | ||
8739 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
8740 | PROP_LOCLIST handling code. | |
8741 | ||
8c95582d AB |
8742 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
8743 | ||
8744 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
8745 | record_line. | |
8746 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
8747 | parameter, reduce duplication in the line table, and record the | |
8748 | is_stmt flag in the line table. | |
8749 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
8750 | parameter. | |
8751 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
8752 | non-statement lines. | |
8753 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
8754 | this to the symtab builder. | |
8755 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
8756 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
8757 | through to dwarf_record_line_1. | |
8758 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
8759 | a non-statement instruction, and only refresh the step info when | |
8760 | we land in the middle of a line's range. Also add an extra | |
8761 | comment. | |
8762 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
8763 | field. | |
8764 | * record-btrace.c (btrace_find_line_range): Only record lines | |
8765 | marked as is-statement. | |
8766 | * stack.c (frame_show_address): Show the frame address if we are | |
8767 | in a non-statement sal. | |
8768 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
8769 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
8770 | column, and include is_stmt information in the output. | |
8771 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
8772 | preference to non-statements. | |
8773 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
8774 | (find_line_common): Likewise. | |
8775 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
8776 | (struct symtab_and_line): Likewise. | |
8777 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
8778 | arranging the line table. | |
8779 | ||
e4003a34 TV |
8780 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
8781 | ||
8782 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
8783 | DIE. | |
8784 | ||
e8932576 TT |
8785 | 2020-03-07 Tom Tromey <tom@tromey.com> |
8786 | ||
8787 | * valops.c (value_literal_complex): Remove obsolete comment. | |
8788 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
8789 | comment. | |
8790 | ||
29734269 SM |
8791 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
8792 | ||
8793 | * infrun.h: Forward-declare thread_info. | |
8794 | (set_step_info): Add thread_info parameter, add doc. | |
8795 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
8796 | to header. | |
8797 | * infrun.c (process_event_stop_test): Pass thread to | |
8798 | set_step_info call. | |
8799 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
8800 | set_step_info. | |
8801 | (prepare_one_step): Add thread_info parameter, pass it to | |
8802 | set_step_frame and prepare_one_step (recursive) call. | |
8803 | (step_1): Pass thread to prepare_one_step call. | |
8804 | (step_command_fsm::should_stop): Pass thread to | |
8805 | prepare_one_step. | |
8806 | (until_next_fsm): Pass thread to set_step_frame call. | |
8807 | (finish_command): Pass thread to set_step_info call. | |
8808 | ||
b7d64b29 HD |
8809 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
8810 | ||
8811 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
8812 | Check if inferior is running. | |
8813 | ||
09f2921c TV |
8814 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
8815 | ||
8816 | * NEWS: Fix "the the". | |
8817 | * ctfread.c: Same. | |
8818 | ||
fd760e79 TV |
8819 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
8820 | ||
8821 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
8822 | ||
20ea4a60 AB |
8823 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
8824 | ||
8825 | * .dir-locals.el: Add a comment referencing the other copies of | |
8826 | this file. | |
8827 | ||
0afbabf0 JB |
8828 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
8829 | ||
8830 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
8831 | psargs. | |
8832 | ||
842806cb TBA |
8833 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8834 | ||
8835 | * .gitattributes: New file. | |
8836 | ||
be1e3d3e TT |
8837 | 2020-03-04 Tom Tromey <tom@tromey.com> |
8838 | ||
8839 | * symmisc.c (print_symbol_bcache_statistics) | |
8840 | (print_objfile_statistics): Update. | |
8841 | * symfile.c (allocate_symtab): Use intern. | |
8842 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
8843 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
8844 | macro_cache>: Remove. | |
8845 | <string_cache>: New member. | |
8846 | (struct objfile) <intern>: New methods. | |
8847 | * elfread.c (elf_symtab_read): Use intern. | |
8848 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
8849 | (dwarf2_compute_name, dwarf2_physname) | |
8850 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
8851 | names. | |
8852 | (guess_partial_die_structure_name): Update. | |
8853 | (partial_die_info::fixup): Intern name. | |
8854 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
8855 | name. | |
8856 | (dwarf2_name): Intern name. Update. | |
8857 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
8858 | string_cache. | |
8859 | ||
4e7625fd TT |
8860 | 2020-03-04 Tom Tromey <tom@tromey.com> |
8861 | ||
8862 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
8863 | * corefile.c (gnutarget): Now const. | |
8864 | * gdbcore.h (gnutarget): Now const. | |
8865 | ||
46f9f931 HD |
8866 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
8867 | ||
8868 | * NEWS: Mention support for WOW64 processes. | |
8869 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
8870 | (amd64_windows_segment_register_p): Remove static. | |
8871 | (_initialize_amd64_windows_nat): Update. | |
8872 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
8873 | * i386-windows-nat.c (context_offset): Update. | |
8874 | (i386_mappings): Rename and remove static. | |
8875 | (i386_windows_segment_register_p): Remove static. | |
8876 | (_initialize_i386_windows_nat): Update. | |
8877 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
8878 | (STATUS_WX86_SINGLE_STEP): New macro. | |
8879 | (EnumProcessModulesEx): New macro. | |
8880 | (Wow64SuspendThread): New macro. | |
8881 | (Wow64GetThreadContext): New macro. | |
8882 | (Wow64SetThreadContext): New macro. | |
8883 | (Wow64GetThreadSelectorEntry): New macro. | |
8884 | (windows_set_context_register_offsets): Add static. | |
8885 | (windows_set_segment_register_p): Likewise. | |
8886 | (windows_add_thread): Adapt for WOW64 processes. | |
8887 | (windows_fetch_one_register): Likewise. | |
8888 | (windows_nat_target::fetch_registers): Likewise. | |
8889 | (windows_store_one_register): Likewise. | |
8890 | (display_selector): Likewise. | |
8891 | (display_selectors): Likewise. | |
8892 | (handle_exception): Likewise. | |
8893 | (windows_continue): Likewise. | |
8894 | (windows_nat_target::resume): Likewise. | |
8895 | (windows_add_all_dlls): Likewise. | |
8896 | (do_initial_windows_stuff): Likewise. | |
8897 | (windows_nat_target::attach): Likewise. | |
8898 | (windows_get_exec_module_filename): Likewise. | |
8899 | (windows_nat_target::create_inferior): Likewise. | |
8900 | (windows_xfer_siginfo): Likewise. | |
8901 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
8902 | Wow64GetThreadContext, Wow64SetThreadContext, | |
8903 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
8904 | * windows-nat.h (windows_set_context_register_offsets): | |
8905 | Remove declaration. | |
8906 | (windows_set_segment_register_p): Likewise. | |
8907 | (i386_windows_segment_register_p): Add declaration. | |
8908 | (amd64_windows_segment_register_p): Likewise. | |
8909 | ||
440cf44e LM |
8910 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
8911 | ||
8912 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
8913 | in "info registers" for AArch64/ARM. | |
8914 | ||
8915 | The change caused "info registers" to not print GPR's. | |
8916 | ||
8917 | gdb/ChangeLog: | |
8918 | ||
8919 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
8920 | ||
8921 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
8922 | when reg->group is empty and reggroup is not. | |
8923 | ||
1009d92f TT |
8924 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
8925 | ||
8926 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
8927 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
8928 | entry_cfa_sp_offset_p>: Remove members. | |
8929 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
8930 | (dwarf2_frame_prev_register): Don't call | |
8931 | dwarf2_tailcall_sniffer_first. | |
8932 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
8933 | * frame-unwind.c (add_unwinder): New fuction. | |
8934 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
8935 | ||
5e5d66b6 AB |
8936 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
8937 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
8938 | ||
8939 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
8940 | value should be printed as true. | |
8941 | ||
584cf46d HD |
8942 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
8943 | ||
8944 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
8945 | (windows_init_abi): Set and use windows_so_ops. | |
8946 | ||
7b973adc SDJ |
8947 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
8948 | ||
8949 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
8950 | when verifying if dealing with a convenience variable. | |
8951 | ||
bb7b70ab LM |
8952 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
8953 | ||
8954 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
8955 | ||
9822cb57 SM |
8956 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
8957 | ||
8958 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
8959 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
8960 | Use gdbarch_supports_displaced_stepping. | |
8961 | (displaced_step_prepare_throw): Use | |
8962 | gdbarch_supports_displaced_stepping. | |
8963 | ||
63e163f2 AB |
8964 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8965 | ||
8966 | * NEWS: Mention new behaviour of the history filename. | |
8967 | * top.c (write_history_p): Add comment. | |
8968 | (show_write_history_p): Add header comment, give a different | |
8969 | message when history writing is on, but the history filename is | |
8970 | empty. | |
8971 | (history_filename): Add comment. | |
8972 | (history_filename_empty): New function. | |
8973 | (show_history_filename): Add header comment, give a different | |
8974 | message when the filename is empty. | |
8975 | (init_history): Compare history_filename against nullptr, and only | |
8976 | read history if the filename is not empty. | |
8977 | (set_history_filename): Add header comment, and only make | |
8978 | non-empty filenames absolute. | |
8979 | (init_main): Make the filename argument to 'set history filename' | |
8980 | optional. | |
8981 | ||
81b86b97 CB |
8982 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
8983 | ||
8984 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
8985 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
8986 | (fetch_fp_register): Update. | |
8987 | (fetch_fp_regs): Update. | |
8988 | (store_fp_register): Update. | |
8989 | (store_fp_regs): Update. | |
8990 | (arm_netbsd_nat_target::read_description): New function. | |
8991 | (fetch_elfcore_registers): Update. | |
8992 | ||
24ed6739 AB |
8993 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8994 | ||
8995 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
8996 | general_thread if the stop reply is missing a thread-id. | |
8997 | (remote_target::process_stop_reply): Use the first non-exited | |
8998 | thread if the target didn't pass a thread-id. | |
8999 | * infrun.c (do_target_wait): Move call to | |
9000 | switch_to_inferior_no_thread to .... | |
9001 | (do_target_wait_1): ... here. | |
9002 | ||
a84bb2a0 JT |
9003 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
9004 | ||
9005 | * debuginfod-support.c: Include defs.h first. | |
9006 | ||
658dadf0 TV |
9007 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
9008 | ||
9009 | * symfile.c (set_initial_language): Use default language for lookup. | |
9010 | ||
4ebe4877 SM |
9011 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
9012 | ||
9013 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
9014 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
9015 | ||
e5da1139 AM |
9016 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
9017 | ||
9018 | * source.c (open_source_file): Check for nullptr when computing | |
9019 | srcpath. | |
9020 | ||
317f7127 TT |
9021 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
9022 | ||
9023 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
9024 | member. | |
9025 | (dwarf2_add_field): Don't update nfields. | |
9026 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
9027 | ||
3104d9ee AB |
9028 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
9029 | ||
9030 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
9031 | abs. | |
9032 | ||
b83470bf TT |
9033 | 2020-02-26 Tom Tromey <tom@tromey.com> |
9034 | ||
9035 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
9036 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
9037 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
9038 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
9039 | per_cu_data. | |
9040 | ||
edfe0a0c TT |
9041 | 2020-02-26 Tom Tromey <tom@tromey.com> |
9042 | ||
9043 | * dwarf2/index-write.c (psym_index_map): Change type. | |
9044 | (add_address_entry_worker, write_one_signatured_type) | |
9045 | (recursively_count_psymbols, recursively_write_psymbols) | |
9046 | (class debug_names, psyms_seen_size, write_gdbindex) | |
9047 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
9048 | ||
0d79cdc4 AM |
9049 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
9050 | ||
9051 | * Makefile.in: Handle optional debuginfod support. | |
9052 | * NEWS: Update. | |
9053 | * README: Add --with-debuginfod summary. | |
9054 | * config.in: Regenerate. | |
9055 | * configure: Regenerate. | |
9056 | * configure.ac: Handle optional debuginfod support. | |
9057 | * debuginfod-support.c: debuginfod helper functions. | |
9058 | * debuginfod-support.h: Ditto. | |
9059 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
9060 | summary. | |
9061 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
9062 | when a dwz file cannot be found. | |
9063 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
9064 | debuginfo file cannot be found. | |
9065 | * source.c (open_source_file): Query debuginfod servers when a | |
9066 | source file cannot be found. | |
9067 | * top.c (print_gdb_configuration): Include | |
9068 | --{with,without}-debuginfod in the output. | |
9069 | ||
b65ce565 JG |
9070 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
9071 | ||
9072 | * thread.c (thr_try_catch_cmd): Print thread name. | |
9073 | ||
d4c9a4f8 SM |
9074 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
9075 | ||
9076 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
9077 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
9078 | dwarf2_fetch_die_type_sect_off): Move to... | |
9079 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
9080 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
9081 | dwarf2_fetch_die_type_sect_off): ... here. | |
9082 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
9083 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
9084 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
9085 | ||
0dce4280 TV |
9086 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
9087 | ||
9088 | PR gdb/25603 | |
9089 | * symfile.c (set_initial_language): Exit-early if | |
9090 | language_mode == language_mode_manual. | |
9091 | ||
450a1bfc SM |
9092 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
9093 | ||
9094 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
9095 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
9096 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
9097 | ||
9e80cfa1 AB |
9098 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
9099 | ||
9100 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
9101 | array strides. | |
9102 | * valarith.c (value_subscripted_rvalue): Likewise. | |
9103 | ||
09624f1f LM |
9104 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
9105 | ||
9106 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
9107 | ||
8cb5117c SM |
9108 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
9109 | ||
9110 | * loc.h (dwarf2_get_die_type): Move to... | |
9111 | * read.h (dwarf2_get_die_type): ... here. | |
9112 | * read.c (dwarf2_get_die_type): Move doc to header. | |
9113 | ||
c325c44e JB |
9114 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
9115 | ||
9116 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
9117 | 'gnulib/Makefile.in' to the list. | |
9118 | ||
4ac93832 TT |
9119 | 2020-02-24 Tom Tromey <tom@tromey.com> |
9120 | ||
9121 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
9122 | Remove. | |
9123 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
9124 | XOBNEWVEC. | |
9125 | ||
197400e8 TT |
9126 | 2020-02-24 Tom Tromey <tom@tromey.com> |
9127 | ||
9128 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
9129 | New method. | |
9130 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
9131 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
9132 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
9133 | ||
76935768 TT |
9134 | 2020-02-24 Tom Tromey <tom@tromey.com> |
9135 | ||
9136 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
9137 | make_scoped_restore. | |
9138 | (dwarf2_psymtab::read_symtab): Don't clear | |
9139 | reading_partial_symbols. | |
9140 | ||
a88ef40d TV |
9141 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
9142 | ||
9143 | PR gdb/25592 | |
9144 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
9145 | ||
c9af6521 TV |
9146 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
9147 | ||
9148 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
9149 | commands layout next/prev/regs. | |
9150 | ||
5707a07a TT |
9151 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9152 | ||
9153 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
9154 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
9155 | ||
3b0fb49e TT |
9156 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9157 | ||
9158 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
9159 | ||
283be8bf TT |
9160 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9161 | ||
9162 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
9163 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
9164 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
9165 | * tui/tui.c (_initialize_tui): Add usage text. | |
9166 | ||
ca793b96 TT |
9167 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9168 | ||
9169 | * tui/tui-win.c (tui_set_focus_command) | |
9170 | (tui_set_win_height_command): Use error_no_arg. | |
9171 | (_initialize_tui_win): Update help text. | |
9172 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
9173 | ||
432b5c40 TT |
9174 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9175 | ||
9176 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
9177 | * tui/tui-disasm.h (struct tui_disasm_window) | |
9178 | <display_start_addr>: Declare. | |
9179 | * tui/tui-source.h (struct tui_source_window) | |
9180 | <display_start_addr>: Declare. | |
9181 | * tui/tui-winsource.h (struct tui_source_window_base) | |
9182 | <show_source_line, display_start_addr>: New methods. | |
9183 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
9184 | Rename and move to protected section. | |
9185 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
9186 | (tui_source_window_base::do_erase_source_content): Update. | |
9187 | (tui_source_window_base::show_source_line): Now a method. | |
9188 | (tui_source_window_base::show_source_content) | |
9189 | (tui_source_window_base::tui_source_window_base) | |
9190 | (tui_source_window_base::rerender) | |
9191 | (tui_source_window_base::refill) | |
9192 | (tui_source_window_base::do_scroll_horizontal) | |
9193 | (tui_source_window_base::set_is_exec_point_at) | |
9194 | (tui_source_window_base::update_breakpoint_info) | |
9195 | (tui_source_window_base::update_exec_info): Update. | |
9196 | * tui/tui-source.c (tui_source_window::set_contents) | |
9197 | (tui_source_window::showing_source_p) | |
9198 | (tui_source_window::do_scroll_vertical) | |
9199 | (tui_source_window::location_matches_p) | |
9200 | (tui_source_window::line_is_displayed): Update. | |
9201 | (tui_source_window::display_start_addr): New method. | |
9202 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
9203 | (tui_disasm_window::do_scroll_vertical) | |
9204 | (tui_disasm_window::location_matches_p): Update. | |
9205 | (tui_disasm_window::display_start_addr): New method. | |
9206 | ||
01b1af32 TT |
9207 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9208 | ||
9209 | * NEWS: Add entry for gdb.register_window_type. | |
9210 | * tui/tui-layout.h (window_factory): New typedef. | |
9211 | (tui_register_window): Declare. | |
9212 | * tui/tui-layout.c (saved_tui_windows): New global. | |
9213 | (tui_apply_current_layout): Use it. | |
9214 | (tui_register_window): New function. | |
9215 | * python/python.c (do_start_initialization): Call | |
9216 | gdbpy_initialize_tui. | |
9217 | (python_GdbMethods): Add "register_window_type" function. | |
9218 | * python/python-internal.h (gdbpy_register_tui_window) | |
9219 | (gdbpy_initialize_tui): Declare. | |
9220 | * python/py-tui.c: New file. | |
9221 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
9222 | ||
fc96d20b TT |
9223 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9224 | ||
9225 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
9226 | ||
935c78c0 TT |
9227 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9228 | ||
9229 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
9230 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
9231 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
9232 | (tui_set_win_focus_to): Move from tui-win.c. | |
9233 | ||
0240c8f1 TT |
9234 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9235 | ||
9236 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
9237 | functions. | |
9238 | (known_window_types): New global. | |
9239 | (tui_get_window_by_name): Reimplement. | |
9240 | (initialize_known_windows): New function. | |
9241 | (validate_window_name): Rewrite. | |
9242 | (_initialize_tui_layout): Call initialize_known_windows. | |
9243 | ||
fdb01f0c TT |
9244 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9245 | ||
9246 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
9247 | Remove constants. | |
9248 | * tui/tui-winsource.h (struct tui_source_window_base) | |
9249 | <tui_source_window_base>: Remove parameter. | |
9250 | * tui/tui-winsource.c | |
9251 | (tui_source_window_base::tui_source_window_base): Remove | |
9252 | parameter. | |
9253 | (tui_source_window_base::refill): Update. | |
9254 | * tui/tui-stack.h (struct tui_locator_window) | |
9255 | <tui_locator_window>: Update. | |
9256 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
9257 | Default the constructor. | |
9258 | * tui/tui-regs.h (struct tui_data_item_window) | |
9259 | <tui_data_item_window>: Default the constructor. | |
9260 | (struct tui_data_window) <tui_data_window>: Likewise. | |
9261 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
9262 | Default the constructor. | |
9263 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
9264 | Default the constructor. | |
9265 | <type>: Remove. | |
9266 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
9267 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
9268 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
9269 | Default the constructor. | |
9270 | ||
865a5aec TT |
9271 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9272 | ||
9273 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
9274 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
9275 | * tui/tui-win.c (tui_resize_all): Don't call | |
9276 | tui_delete_invisible_windows. | |
9277 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
9278 | done. | |
9279 | (tui_set_layout): Update. | |
9280 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
9281 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
9282 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
9283 | ||
e098d18c TT |
9284 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9285 | ||
9286 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
9287 | correctly. | |
9288 | ||
eb9c8874 TT |
9289 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9290 | ||
9291 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
9292 | ||
7eed1a8e TT |
9293 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9294 | ||
9295 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
9296 | <inner_iterator>: New etytypedef. | |
9297 | <tui_source_window_iterator>: Take "end" parameter. | |
9298 | <tui_source_window_iterator>: Take iterator. | |
9299 | <operator*, advance>: Update. | |
9300 | <m_iter>: Change type. | |
9301 | <m_end>: New field. | |
9302 | (struct tui_source_windows) <begin, end>: Update. | |
9303 | * tui/tui-layout.c (tui_windows): New global. | |
9304 | (tui_apply_current_layout): Clear tui_windows. | |
9305 | (tui_layout_window::apply): Update tui_windows. | |
9306 | * tui/tui-data.h (tui_windows): Declare. | |
9307 | (all_tui_windows): Now inline function. | |
9308 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
9309 | ||
7c043ba6 TT |
9310 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9311 | ||
9312 | PR tui/17850: | |
9313 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
9314 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
9315 | "height" argument. | |
9316 | (class tui_layout_window) <get_sizes>: Likewise. | |
9317 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
9318 | argument. | |
9319 | <get_sizes>: Add "height" argument. | |
9320 | <m_vertical>: New field. | |
9321 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
9322 | (tui_layout_split::get_sizes): Add "height" argument. | |
9323 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
9324 | (tui_new_layout_command): Parse "-horizontal". | |
9325 | (_initialize_tui_layout): Update help string. | |
9326 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
9327 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
9328 | argument. | |
9329 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
9330 | New methods. | |
9331 | ||
6bc56648 TT |
9332 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9333 | ||
9334 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
9335 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
9336 | (class tui_layout_window) <adjust_size>: Return | |
9337 | tui_adjust_result. Rewrite. | |
9338 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
9339 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
9340 | ||
c22fef7e TT |
9341 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9342 | ||
9343 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
9344 | parameter and return types. | |
9345 | (class tui_layout_base) <specification>: Add "depth". | |
9346 | (class tui_layout_window) <specification>: Add "depth". | |
9347 | (class tui_layout_split) <specification>: Add "depth". | |
9348 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
9349 | and return types. | |
9350 | (tui_new_layout_command): Parse sub-layouts. | |
9351 | (_initialize_tui_layout): Update help string. | |
9352 | (tui_layout_window::specification): Add "depth". | |
9353 | (add_layout_command): Update. | |
9354 | ||
ee325b61 TT |
9355 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9356 | ||
9357 | * NEWS: Add "tui new-layout" item. | |
9358 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
9359 | Add new-layout command to help text. | |
9360 | (validate_window_name): New function. | |
9361 | (tui_new_layout_command): New function. | |
9362 | (_initialize_tui_layout): Register "new-layout". | |
9363 | (tui_layout_window::specification): New method. | |
9364 | (tui_layout_window::specification): New method. | |
9365 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
9366 | method. | |
9367 | (class tui_layout_window) <specification>: New method. | |
9368 | (class tui_layout_split) <specification>: New method. | |
9369 | ||
416eb92d TT |
9370 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9371 | ||
9372 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
9373 | * tui/tui-win.c (window_name_completer): Update comment. | |
9374 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
9375 | Declare method. | |
9376 | (class tui_layout_window) <replace_window>: Likewise. | |
9377 | (class tui_layout_split) <replace_window>: Likewise. | |
9378 | (tui_set_layout): Don't declare. | |
9379 | (tui_set_initial_layout): Declare function. | |
9380 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
9381 | (asm_regs_layout): New globals. | |
9382 | (tui_current_layout, show_layout): Remove. | |
9383 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
9384 | (find_layout, tui_apply_layout): New function. | |
9385 | (layout_completer): Remove. | |
9386 | (tui_next_layout): Reimplement. | |
9387 | (tui_next_layout_command): New function. | |
9388 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
9389 | (tui_regs_layout): Reimplement. | |
9390 | (tui_regs_layout_command): New function. | |
9391 | (extract_display_start_addr): Rewrite. | |
9392 | (next_layout, prev_layout): Remove. | |
9393 | (tui_layout_window::replace_window): New method. | |
9394 | (tui_layout_split::replace_window): New method. | |
9395 | (destroy_layout): New function. | |
9396 | (layout_list): New global. | |
9397 | (add_layout_command): New function. | |
9398 | (initialize_layouts): Update. | |
9399 | (tui_layout_command): New function. | |
9400 | (_initialize_tui_layout): Install "layout" commands. | |
9401 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
9402 | (tui_current_layout): Don't declare. | |
9403 | ||
0dbc2fc7 TT |
9404 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9405 | ||
9406 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
9407 | (tui_reg_command): Use tui_regs_layout. | |
9408 | * tui/tui-layout.h (tui_reg_command): Declare. | |
9409 | * tui/tui-layout.c (tui_reg_command): New function. | |
9410 | ||
5afe342e TT |
9411 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9412 | ||
9413 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
9414 | tui_remove_some_windows. | |
9415 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
9416 | Declare method. | |
9417 | (class tui_layout_window) <remove_windows>: New method. | |
9418 | (class tui_layout_split) <remove_windows>: Declare. | |
9419 | (tui_remove_some_windows): Declare. | |
9420 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
9421 | (tui_layout_split::remove_windows): New method. | |
9422 | ||
427326a8 TT |
9423 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9424 | ||
9425 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
9426 | * tui/tui-layout.h (tui_next_layout): Declare. | |
9427 | * tui/tui-layout.c (tui_next_layout): New function. | |
9428 | ||
3fe12b6d TT |
9429 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9430 | ||
9431 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
9432 | correct coordinates. | |
9433 | ||
59b8b5d2 TT |
9434 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9435 | ||
9436 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
9437 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
9438 | DATA_WIN case. | |
9439 | ||
2a3d458b TT |
9440 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9441 | ||
9442 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
9443 | TUI_DISASM_WIN, not tui_win_list. | |
9444 | ||
3f0cbb04 TT |
9445 | 2020-02-22 Tom Tromey <tom@tromey.com> |
9446 | ||
9447 | * valprint.c (generic_val_print_enum_1) | |
9448 | (val_print_type_code_flags): Style member names. | |
9449 | * rust-lang.c (val_print_struct, rust_print_enum) | |
9450 | (rust_print_struct_def, rust_internal_print_type): Style member | |
9451 | names. | |
9452 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
9453 | names. Only call fprintf_symbol_filtered for static members. | |
9454 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
9455 | * f-valprint.c (f_val_print): Style member names. | |
9456 | * f-typeprint.c (f_type_print_base): Style member names. | |
9457 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
9458 | call fprintf_symbol_filtered for static members. | |
9459 | (cp_print_class_member): Style member names. | |
9460 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
9461 | member names. | |
9462 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
9463 | (ada_val_print_enum): Likewise. | |
9464 | * ada-typeprint.c (print_enum_type): Style enum names. | |
9465 | ||
d4d947ae TT |
9466 | 2020-02-21 Tom Tromey <tom@tromey.com> |
9467 | ||
9468 | * psympriv.h (struct partial_symtab): Update comment. | |
9469 | ||
e94e944b TT |
9470 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
9471 | ||
9472 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
9473 | type is CORE_ADDR. | |
9474 | ||
1eb73179 TV |
9475 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
9476 | ||
9477 | PR gdb/25534 | |
9478 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
9479 | if dependencies[i]->user != NULL. | |
9480 | ||
4f180d53 AT |
9481 | 2020-02-21 Ali Tamur <tamur@google.com> |
9482 | ||
9483 | * dwarf2/read.c (dwarf2_name): Add null check. | |
9484 | ||
22b6cd70 TT |
9485 | 2020-02-20 Tom Tromey <tom@tromey.com> |
9486 | ||
9487 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
9488 | ">=", in binary search. | |
9489 | (dwarf2_find_containing_comp_unit): New overload. | |
9490 | (run_test): New self-test. | |
9491 | (_initialize_dwarf2_read): Register new test. | |
9492 | ||
bd0cf5a6 NC |
9493 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
9494 | ||
9495 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
9496 | * riscv-tdep.h: Likewise. | |
9497 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
9498 | rv32-only CSR. | |
9499 | * features/riscv/64bit-csr.xml: Regenerated. | |
9500 | ||
3f702acd SDJ |
9501 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
9502 | Tom Tromey <tom@tromey.com> | |
9503 | ||
9504 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
9505 | of 'fputc_unfiltered'. | |
9506 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
9507 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
9508 | ||
d13c7322 AB |
9509 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
9510 | ||
9511 | * config.in: Regenerate. | |
9512 | * configure: Regenerate. | |
9513 | * configure.ac: Add --with-python-libdir option. | |
9514 | * main.c: Use WITH_PYTHON_LIBDIR. | |
9515 | ||
869d8950 TT |
9516 | 2020-02-19 Tom Tromey <tom@tromey.com> |
9517 | ||
9518 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
9519 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
9520 | ||
298e9637 SM |
9521 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
9522 | ||
9523 | * dwarf2/read.c (allocate_signatured_type_table, | |
9524 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
9525 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
9526 | Remove objfile parameter, update all callers. | |
9527 | ||
08410482 DE |
9528 | 2020-02-19 Doug Evans <dje@google.com> |
9529 | ||
9530 | PR rust/25535 | |
9531 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
9532 | rust_enum_variant calculation. | |
9533 | ||
dfdeeca1 TT |
9534 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9535 | ||
9536 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
9537 | ||
2ef5453b TT |
9538 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9539 | ||
9540 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
9541 | ||
9f1528a1 AB |
9542 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9543 | ||
9544 | * configure: Regenerate. | |
9545 | ||
d3c22fa8 TT |
9546 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
9547 | ||
9548 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
9549 | NULL check. | |
9550 | ||
bf84f706 MR |
9551 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
9552 | ||
9553 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
9554 | ||
d1c9b20f AB |
9555 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9556 | ||
9557 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
9558 | if GDBSERVER is not defined. | |
9559 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
9560 | (STATIC_IN_GDB): Define. | |
9561 | (riscv_create_target_description): Update declaration with | |
9562 | STATIC_IN_GDB. | |
9563 | (riscv_lookup_target_description): New function, only define if | |
9564 | GDBSERVER is not defined. | |
9565 | * arch/riscv.h (riscv_create_target_description): Declare only | |
9566 | when GDBSERVER is defined. | |
9567 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
9568 | is not defined. | |
9569 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
9570 | (riscv_linux_read_features): ...this, and return | |
9571 | riscv_gdbarch_features instead of target_desc. | |
9572 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
9573 | (riscv_linux_read_description): Rename to... | |
9574 | (riscv_linux_read_features): ...this. | |
9575 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
9576 | Update to use riscv_gdbarch_features and | |
9577 | riscv_lookup_target_description. | |
9578 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
9579 | riscv_lookup_target_description instead of | |
9580 | riscv_create_target_description. | |
9581 | ||
373d7ac0 SM |
9582 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9583 | ||
9584 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
9585 | enum with value 0 and there is no enumerator with value 0, print | |
9586 | just "0" instead of "(unknown: 0x0)". | |
9587 | ||
b29a2df0 SM |
9588 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9589 | ||
9590 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
9591 | flag enum in hex. | |
9592 | ||
6740f0cc SM |
9593 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9594 | ||
9595 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
9596 | flag enums to contain duplicate enumerators. | |
9597 | * valprint.c (generic_val_print_enum_1): Update comment. | |
9598 | ||
edd45eb0 SM |
9599 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9600 | ||
9601 | * dwarf2/read.c: Include "count-one-bits.h". | |
9602 | (update_enumeration_type_from_children): If an enumerator has | |
9603 | multiple bits set, don't treat the enumeration as a "flag enum". | |
9604 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
9605 | of flag enums have 0 or 1 bit set. | |
9606 | ||
6d0cf446 BE |
9607 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
9608 | ||
9609 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
9610 | conversion. | |
9611 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9612 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
9613 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9614 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
9615 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9616 | ||
7001c1b7 SM |
9617 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
9618 | ||
9619 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
9620 | ||
fdb61c6c SM |
9621 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9622 | ||
9623 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
9624 | displaced_step_closure_up. | |
9625 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
9626 | (struct displaced_step_closure_up): | |
9627 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9628 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
9629 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
9630 | Likewise. | |
9631 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
9632 | * gdbarch.c, gdbarch.h: Re-generate. | |
9633 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
9634 | displaced_step_closure_up. | |
9635 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9636 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
9637 | * infrun.h (displaced_step_closure_up): New type alias. | |
9638 | (struct displaced_step_inferior_state) <step_closure>: Change | |
9639 | type to displaced_step_closure_up. | |
9640 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
9641 | displaced_step_closure_up. | |
9642 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9643 | ||
a4a38eb4 TT |
9644 | 2020-02-14 Tom Tromey <tom@tromey.com> |
9645 | ||
9646 | * minidebug.c (gnu_debug_key): New global. | |
9647 | (find_separate_debug_file_in_section): Use it. | |
9648 | ||
e8217e61 SM |
9649 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9650 | ||
9651 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
9652 | std::unique_ptr. | |
9653 | * gdbarch.c: Re-generate. | |
9654 | * gdbarch.h: Re-generate. | |
9655 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
9656 | change. | |
9657 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
9658 | type to std::unique_ptr. | |
9659 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
9660 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
9661 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
9662 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
9663 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
9664 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
9665 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
9666 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
9667 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
9668 | ||
d8d83535 SM |
9669 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9670 | ||
9671 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
9672 | std::unique_ptr. | |
9673 | (displaced_step_clear): Rename to... | |
9674 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
9675 | (displaced_step_clear_cleanup): Rename to... | |
9676 | (displaced_step_reset_cleanup): ... this. | |
9677 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
9678 | (displaced_step_fixup): Likewise. | |
9679 | (resume_1): Likewise. | |
9680 | (handle_inferior_event): Restore child's memory before calling | |
9681 | displaced_step_fixup on the parent. | |
9682 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
9683 | to std::unique_ptr. | |
9684 | <step_closure>: Change type to std::unique_ptr. | |
9685 | ||
5f661e03 SM |
9686 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
9687 | ||
9688 | * arm-tdep.c: Include count-one-bits.h. | |
9689 | (cleanup_block_store_pc): Use count_one_bits. | |
9690 | (cleanup_block_load_pc): Use count_one_bits. | |
9691 | (arm_copy_block_xfer): Use count_one_bits. | |
9692 | (thumb2_copy_block_xfer): Use count_one_bits. | |
9693 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
9694 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
9695 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
9696 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
9697 | * arch/arm.c (bitcount): Remove. | |
9698 | * arch/arm.h (bitcount): Remove. | |
9699 | ||
8084e579 TT |
9700 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
9701 | ||
9702 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
9703 | Update. | |
9704 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
9705 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
9706 | unique_xmalloc_ptr. | |
9707 | (call_site_find_chain): Likewise. | |
9708 | ||
258bf0ee RB |
9709 | 2020-02-14 Richard Biener <rguenther@suse.de> |
9710 | ||
9711 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
9712 | on expression with division operators. | |
9713 | ||
f98a8458 AKS |
9714 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
9715 | ||
9716 | * MAINTAINERS (Write After Approval): Adding myself. | |
9717 | ||
d1437c0e TT |
9718 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9719 | ||
9720 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
9721 | Remove. | |
9722 | ||
3d4560f7 TT |
9723 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9724 | ||
9725 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
9726 | (dwarf2_frame_objfile_data): Add comment. | |
9727 | (find_comp_unit, set_comp_unit): New functions. | |
9728 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
9729 | (dwarf2_build_frame_info): Use set_comp_unit. | |
9730 | ||
21982304 TT |
9731 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9732 | ||
9733 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
9734 | (comp_unit): Don't initialize objfile. | |
9735 | (execute_cfa_program): Add text_offset parameter. | |
9736 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
9737 | (dwarf2_frame_cache): Update. | |
9738 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
9739 | ||
4debb237 TT |
9740 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9741 | ||
9742 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
9743 | (decode_frame_entry): Likewise. | |
9744 | (dwarf2_build_frame_info): Update. | |
9745 | ||
0d404d44 TT |
9746 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9747 | ||
9748 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
9749 | (decode_frame_entry_1): Use the comp_unit obstack. | |
9750 | ||
a7a3ae5c TT |
9751 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9752 | ||
9753 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
9754 | constructor. | |
9755 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
9756 | (dwarf2_frame_find_fde): Update. | |
9757 | (dwarf2_build_frame_info): Use "new". | |
9758 | ||
a9d65418 TT |
9759 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9760 | ||
9761 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
9762 | (dwarf2_fde_table): Typedef for std::vector. | |
9763 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
9764 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
9765 | (decode_frame_entry): Update. | |
9766 | (dwarf2_build_frame_info): Use "new". | |
9767 | ||
7559c217 CB |
9768 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
9769 | ||
9770 | * arm-tdep.c (arm_gdbarch_init): Update. | |
9771 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
9772 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
9773 | have_neon, is_m>: Change to bool. | |
9774 | ||
aeefc73c CB |
9775 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
9776 | ||
9777 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
9778 | ||
d27b8e5f TT |
9779 | 2020-02-12 Tom Tromey <tom@tromey.com> |
9780 | ||
9781 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
9782 | ||
cd5900f3 HD |
9783 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
9784 | ||
9785 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
9786 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
9787 | ||
f056b22b TT |
9788 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9789 | ||
9790 | * psymtab.h: Update comment. | |
9791 | ||
f92ff6b5 TT |
9792 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9793 | ||
9794 | * gdb_obstack.h (struct auto_obstack): Use | |
9795 | DISABLE_COPY_AND_ASSIGN. | |
9796 | ||
3fd6912b TT |
9797 | 2020-02-11 Tom Tromey <tom@tromey.com> |
9798 | ||
9799 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
9800 | ||
69ed9b74 CB |
9801 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9802 | ||
9803 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
9804 | what struct regset expects. | |
9805 | (cris_regset): New struct. | |
9806 | (fetch_core_registers): Remove. | |
9807 | (cris_iterate_over_regset_sections): New function. | |
9808 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
9809 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
9810 | ||
bda874f6 CB |
9811 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9812 | ||
9813 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
9814 | registers. | |
9815 | ||
754e1564 CB |
9816 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
9817 | ||
9818 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
9819 | ||
8ddd8e0e SM |
9820 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9821 | ||
9822 | * configure: Re-generate. | |
9823 | ||
898e7f60 SM |
9824 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9825 | ||
9826 | * configure: Re-generate. | |
9827 | ||
58df732b SM |
9828 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
9829 | ||
9830 | * acinclude: Update warning.m4 path. | |
9831 | * warning.m4: Move to gdbsupport. | |
9832 | ||
da5bd37e TT |
9833 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
9834 | ||
9835 | * remote.c (remote_console_output): Update. | |
9836 | * printcmd.c (printf_command): Update. | |
9837 | * event-loop.c (gdb_wait_for_event): Update. | |
9838 | * linux-nat.c (sigchld_handler): Update. | |
9839 | * remote-sim.c (gdb_os_write_stdout): Update. | |
9840 | (gdb_os_flush_stdout): Update. | |
9841 | (gdb_os_flush_stderr): Update. | |
9842 | (gdb_os_write_stderr): Update. | |
9843 | * exceptions.c (print_exception): Update. | |
9844 | * remote-fileio.c (remote_fileio_func_read): Update. | |
9845 | (remote_fileio_func_write): Update. | |
9846 | * tui/tui.c (tui_enable): Update. | |
9847 | * tui/tui-interp.c (tui_interp::init): Update. | |
9848 | * utils.c (init_page_info): Update. | |
9849 | (putchar_unfiltered, fputc_unfiltered): Update. | |
9850 | (gdb_flush): Update. | |
9851 | (emit_style_escape): Update. | |
9852 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
9853 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
9854 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
9855 | (stderr_file::write): Update. | |
9856 | (stderr_file::puts): Update. | |
9857 | * ui-file.h (ui_file_isatty, ui_file_write) | |
9858 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
9859 | (ui_file_puts): Don't declare. | |
9860 | ||
85f0dd3c TV |
9861 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
9862 | ||
9863 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
9864 | sentinel to char *. | |
9865 | ||
2e927613 TV |
9866 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
9867 | ||
9868 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
9869 | filename if it matches "<artificial>". | |
9870 | ||
6bafc845 HD |
9871 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
9872 | ||
9873 | * windows-tdep.c (struct enum_value_name): New struct. | |
9874 | (create_enum): New function. | |
9875 | (windows_get_siginfo_type): Create and use enum types. | |
9876 | ||
7928d571 HD |
9877 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
9878 | ||
9879 | * NEWS: Mention $_siginfo support for Windows. | |
9880 | * windows-nat.c (handle_exception): Set siginfo_er. | |
9881 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
9882 | (windows_xfer_siginfo): New function. | |
9883 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
9884 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
9885 | (init_windows_gdbarch_data): New function. | |
9886 | (get_windows_gdbarch_data): New function. | |
9887 | (windows_get_siginfo_type): New function. | |
9888 | (windows_init_abi): Register windows_get_siginfo_type. | |
9889 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
9890 | ||
6751ebae TT |
9891 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9892 | ||
9893 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
9894 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
9895 | <keep>: Declare method. | |
9896 | <m_keep>: Remove member. | |
9897 | <~cutu_reader>: Remove. | |
9898 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
9899 | (cutu_reader::cutu_reader): Update. | |
9900 | (cutu_reader::keep): Rename from ~cutu_reader. | |
9901 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
9902 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
9903 | (load_full_comp_unit, dwarf2_read_addr_index) | |
9904 | (read_signatured_type): Update. | |
9905 | ||
135f5437 TT |
9906 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9907 | ||
9908 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
9909 | "want_partial_unit" parameter. | |
9910 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
9911 | Inline check for DW_TAG_partial_unit. | |
9912 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
9913 | ||
9f66ff1c TT |
9914 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9915 | ||
9916 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
9917 | read.c. | |
9918 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
9919 | read.c. | |
9920 | ||
c8a7a66f TT |
9921 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9922 | ||
9923 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
9924 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
9925 | (read_attribute_value, dwarf_decode_lines_1) | |
9926 | (var_decode_location, decode_locdesc): Update. | |
9927 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
9928 | read.c. Remove "cu" parameter. | |
9929 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
9930 | method. | |
9931 | ||
8266302d TT |
9932 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9933 | ||
9934 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
9935 | (read_indirect_line_string): Update. | |
9936 | * dwarf2/comp-unit.c (read_offset): Remove. | |
9937 | (read_comp_unit_head): Update. | |
9938 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
9939 | method. | |
9940 | (read_offset): Don't declare. | |
9941 | ||
4057dfde TT |
9942 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9943 | ||
9944 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
9945 | * dwarf2/read.c (struct comp_unit_head): Move to | |
9946 | dwarf2/comp-unit.h. | |
9947 | (enum class rcuh_kind): Move to comp-unit.h. | |
9948 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
9949 | (read_comp_unit_head, error_check_comp_unit_head) | |
9950 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
9951 | (read_offset, dwarf_unit_type_name): Likewise. | |
9952 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
9953 | (cutu_reader::cutu_reader, read_call_site_scope) | |
9954 | (find_partial_die, follow_die_offset): Update. | |
9955 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
9956 | ||
24aa364d TT |
9957 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9958 | ||
9959 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
9960 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
9961 | (dwarf_decode_macro_bytes): Update. | |
9962 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
9963 | * dwarf2/leb.h (read_offset): Declare. | |
9964 | ||
2c7d5afc TT |
9965 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9966 | ||
9967 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
9968 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
9969 | Update. | |
9970 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
9971 | ||
4075cb26 TT |
9972 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9973 | ||
9974 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
9975 | * dwarf2/leb.h (read_initial_length): Declare. | |
9976 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
9977 | handle_nonstd parameter. | |
9978 | * dwarf2/frame.c (read_initial_length): Remove. | |
9979 | (decode_frame_entry_1): Update. | |
9980 | ||
09ba997f TT |
9981 | 2020-02-08 Tom Tromey <tom@tromey.com> |
9982 | ||
9983 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
9984 | (dwarf_evaluate_loc_desc::get_tls_address) | |
9985 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
9986 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
9987 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
9988 | (dwarf2_compile_property_to_c) | |
9989 | (dwarf2_loc_desc_get_symbol_read_needs) | |
9990 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
9991 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
9992 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
9993 | (loclist_generate_c_location): Update. | |
9994 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
9995 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
9996 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
9997 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
9998 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
9999 | (dwarf2_per_cu_data::addr_size) | |
10000 | (dwarf2_per_cu_data::ref_addr_size) | |
10001 | (dwarf2_per_cu_data::text_offset) | |
10002 | (dwarf2_per_cu_data::addr_type): Now methods. | |
10003 | (per_cu_header_read_in): Make per_cu "const". | |
10004 | (dwarf2_version): Remove. | |
10005 | (dwarf2_per_cu_data::int_type): Now a method. | |
10006 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
10007 | (set_die_type, read_array_type, read_subrange_index_type) | |
10008 | (read_tag_string_type, read_subrange_type): Update. | |
10009 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
10010 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
10011 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
10012 | ||
96c738c0 TT |
10013 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10014 | ||
10015 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
10016 | Move earlier. | |
10017 | ||
8fdd972c TT |
10018 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10019 | ||
10020 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
10021 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
10022 | * dwarf2/read.c: Move line_header code to new files. | |
10023 | (dwarf_line_debug): No longer static. | |
10024 | * dwarf2/line-header.c: New file. | |
10025 | * dwarf2/line-header.h: New file. | |
10026 | ||
03075812 TT |
10027 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10028 | ||
10029 | * dwarf2/read.c (struct line_header) <file_full_name, | |
10030 | file_file_name>: Return unique_xmalloc_ptr. | |
10031 | (line_header::file_file_name): Update. | |
10032 | (line_header::file_full_name): Update. | |
10033 | (dw2_get_file_names_reader): Update. | |
10034 | (macro_start_file): Update. | |
10035 | ||
bb822404 TT |
10036 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10037 | ||
10038 | * dwarf2/read.c (struct line_header) <file_full_name, | |
10039 | file_file_name>: Declare methods. | |
10040 | (dw2_get_file_names_reader): Update. | |
10041 | (file_file_name): Now a method. | |
10042 | (file_full_name): Likewise. | |
10043 | (macro_start_file): Update. | |
10044 | ||
009b64fc TT |
10045 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10046 | ||
10047 | * dwarf2/read.c (dwarf_always_disassemble) | |
10048 | (show_dwarf_always_disassemble): Move to loc.c. | |
10049 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
10050 | to loc.c. | |
10051 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
10052 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
10053 | static. | |
10054 | (show_dwarf_always_disassemble): Move from read.c. | |
10055 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
10056 | ||
5895093f TT |
10057 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10058 | ||
10059 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
10060 | (create_quick_file_names_table): Return htab_up. | |
10061 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
10062 | Update. | |
10063 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
10064 | <quick_file_names_table>: Now htab_up. | |
10065 | ||
b3b32279 TT |
10066 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10067 | ||
10068 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
10069 | ||
1d33d811 TT |
10070 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10071 | ||
10072 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
10073 | Rewrite. | |
10074 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
10075 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
10076 | (abbrev_table::abbrev_table): No longer inline. | |
10077 | (ABBREV_HASH_SIZE): Remove. | |
10078 | (abbrev_table::m_abbrevs): Now an htab_up. | |
10079 | ||
86de1d91 TT |
10080 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10081 | ||
10082 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
10083 | (cutu_reader): Update. | |
10084 | (build_type_psymtabs_1): Update. | |
10085 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
10086 | (abbrev_table::alloc_abbrev): Update. | |
10087 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
10088 | (abbrev_table::read): New static method, renamed from | |
10089 | abbrev_table_read_table. | |
10090 | (abbrev_table::alloc_abbrev) | |
10091 | (abbrev_table::add_abbrev): Now private. | |
10092 | (abbrev_table::abbrev_table): Now private. | |
10093 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
10094 | ||
0335378b TT |
10095 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10096 | ||
10097 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
10098 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
10099 | htab_up. | |
10100 | ||
48b490f2 TT |
10101 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10102 | ||
10103 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
10104 | htab_up. | |
10105 | (lookup_dwo_unit_in_dwp): Update. | |
10106 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
10107 | on obstack. | |
10108 | ||
bc68fb19 TT |
10109 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10110 | ||
10111 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
10112 | obstack. | |
10113 | ||
d15acc42 TT |
10114 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10115 | ||
10116 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
10117 | line_header_hash. | |
10118 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
10119 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
10120 | Change type to htab_up. | |
10121 | ||
eaa5fa8b TT |
10122 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10123 | ||
10124 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
10125 | htab_up. Don't allocate on obstack. | |
10126 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
10127 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
10128 | Change type to htab_up. | |
10129 | ||
b0b6a987 TT |
10130 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10131 | ||
10132 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
10133 | Change type to htab_up. | |
10134 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
10135 | (create_signatured_type_table_from_debug_names) | |
10136 | (create_all_type_units, add_type_unit) | |
10137 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
10138 | (process_skeletonless_type_unit): Update. | |
10139 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
10140 | Change type of types_htab. | |
10141 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
10142 | htab_up. Don't allocate on obstack. | |
10143 | (create_cus_hash_table): Change type of cus_htab parameter. | |
10144 | (struct dwo_file) <cus, tus>: Now htab_up. | |
10145 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
10146 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
10147 | (queue_and_load_all_dwo_tus): Update. | |
10148 | * dwarf2/index-write.c (write_gdbindex): Update. | |
10149 | (write_debug_names): Update. | |
10150 | ||
39856def TT |
10151 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10152 | ||
10153 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
10154 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
10155 | destructor. | |
10156 | (struct dwarf2_per_objfile) <queue>: New member. | |
10157 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
10158 | dwarf2/read.h. | |
10159 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
10160 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
10161 | DISABLE_COPY_AND_ASSIGN. | |
10162 | <m_per_objfile>: New member. | |
10163 | <~dwarf2_queue_guard>: Rewrite. | |
10164 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
10165 | Update. | |
10166 | (~dwarf2_queue_item): New. | |
10167 | ||
3e225074 TT |
10168 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10169 | ||
10170 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
10171 | (dw2_get_file_names_reader): Remove has_children. | |
10172 | (dw2_get_file_names): Update. | |
10173 | (read_cutu_die_from_dwo): Remove has_children. | |
10174 | (cutu_reader::init_tu_and_read_dwo_dies) | |
10175 | (cutu_reader::cutu_reader): Update. | |
10176 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
10177 | Remove has_children. | |
10178 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
10179 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
10180 | (create_dwo_cu_reader): Remove has_children. | |
10181 | (create_cus_hash_table, read_die_and_children): Update. | |
10182 | (read_full_die_1,read_full_die): Remove has_children. | |
10183 | (read_signatured_type): Update. | |
10184 | (class cutu_reader) <has_children>: Remove. | |
10185 | ||
82ca8957 TT |
10186 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10187 | ||
10188 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
10189 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
10190 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
10191 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
10192 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
10193 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
10194 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
10195 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
10196 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
10197 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
10198 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
10199 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
10200 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
10201 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
10202 | * dwarf2/read.c: Rename from dwarf2read.c. | |
10203 | * dwarf2/read.h: Rename from dwarf2read.h. | |
10204 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
10205 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
10206 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
10207 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
10208 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
10209 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
10210 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
10211 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
10212 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
10213 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
10214 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
10215 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
10216 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
10217 | Update. | |
10218 | * Makefile.in (COMMON_SFILES): Update. | |
10219 | (HFILES_NO_SRCDIR): Update. | |
10220 | ||
9e35d499 TT |
10221 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10222 | ||
10223 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
10224 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
10225 | ||
1eba2311 TT |
10226 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10227 | ||
10228 | * dwarf2read.h (struct die_info): Don't declare. | |
10229 | ||
e41c2da2 TT |
10230 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10231 | ||
10232 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
10233 | ||
4fc6c0d5 TT |
10234 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10235 | ||
10236 | * dwarf2read.c (read_call_site_scope) | |
10237 | (handle_data_member_location, dwarf2_add_member_fn) | |
10238 | (mark_common_block_symbol_computed, read_common_block) | |
10239 | (attr_to_dynamic_prop, partial_die_info::read) | |
10240 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
10241 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
10242 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
10243 | method. | |
10244 | (attr_form_is_block): Don't declare. | |
10245 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
10246 | ||
cd6c91b4 TT |
10247 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10248 | ||
10249 | * dwarf2read.c (dwarf2_find_base_address, ) | |
10250 | (read_call_site_scope, rust_containing_type) | |
10251 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
10252 | (handle_data_member_location, dwarf2_add_member_fn) | |
10253 | (get_alignment, read_structure_type, process_structure_scope) | |
10254 | (mark_common_block_symbol_computed, read_common_block) | |
10255 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
10256 | (partial_die_info::read, read_attribute_value, new_symbol) | |
10257 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
10258 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
10259 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
10260 | (dwarf2_symbol_mark_computed): Update. | |
10261 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
10262 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
10263 | methods. | |
10264 | (value_as_address, attr_form_is_section_offset) | |
10265 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
10266 | * dwarf2/attribute.c (attribute::value_as_address) | |
10267 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
10268 | (attribute::form_is_ref): Now methods. | |
10269 | ||
162dce55 TT |
10270 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10271 | ||
10272 | * dwarf2read.c (struct attribute, DW_STRING) | |
10273 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
10274 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
10275 | (attr_form_is_block, attr_form_is_section_offset) | |
10276 | (attr_form_is_constant, attr_form_is_ref): Move. | |
10277 | * dwarf2/attribute.h: New file. | |
10278 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
10279 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
10280 | ||
3054dd54 TT |
10281 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10282 | ||
10283 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
10284 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
10285 | Move. | |
10286 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
10287 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
10288 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
10289 | abbrev.c. | |
10290 | * dwarf2/abbrev.h: New file. | |
10291 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
10292 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
10293 | ||
96b79293 TT |
10294 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10295 | ||
10296 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
10297 | (dwarf2_section_size, dwarf2_get_section_info) | |
10298 | (create_signatured_type_table_from_debug_names) | |
10299 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
10300 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
10301 | (error_check_comp_unit_head, read_abbrev_offset) | |
10302 | (create_debug_type_hash_table, init_cu_die_reader) | |
10303 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
10304 | (read_comp_units_from_section, create_cus_hash_table) | |
10305 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
10306 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
10307 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
10308 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
10309 | (read_indirect_string_from_dwz, read_addr_index_1) | |
10310 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
10311 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
10312 | (fill_in_loclist_baton): Update. | |
10313 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
10314 | get_containing_section, get_bfd_owner, get_bfd_section, | |
10315 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
10316 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
10317 | (get_containing_section, get_section_bfd_owner) | |
10318 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
10319 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
10320 | declare. | |
10321 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
10322 | (dwarf2_section_info::get_bfd_owner) | |
10323 | (dwarf2_section_info::get_bfd_section) | |
10324 | (dwarf2_section_info::get_name) | |
10325 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
10326 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
10327 | (dwarf2_section_info::read): Now methods. | |
10328 | * dwarf-index-write.c (class debug_names): Update. | |
10329 | ||
2c86cff9 TT |
10330 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10331 | ||
10332 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
10333 | Move to dwarf2/section.h. | |
10334 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
10335 | (get_section_bfd_section, get_section_name) | |
10336 | (get_section_file_name, get_section_id, get_section_flags) | |
10337 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
10338 | dwarf2/section.c. | |
10339 | * dwarf2/section.h: New file. | |
10340 | * dwarf2/section.c: New file, from dwarf2read.c. | |
10341 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
10342 | ||
f4382c45 TT |
10343 | 2020-02-08 Tom Tromey <tom@tromey.com> |
10344 | ||
10345 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
10346 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
10347 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
10348 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
10349 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
10350 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
10351 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
10352 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
10353 | Remove. | |
10354 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
10355 | (COMMON_SFILES): Add dwarf2/leb.c. | |
10356 | ||
01840b7a JB |
10357 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
10358 | ||
10359 | GDB 9.1 released. | |
10360 | ||
dfcb27e4 IB |
10361 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
10362 | ||
10363 | PR gdb/25190: | |
aac66a4c SM |
10364 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
10365 | * gdb/remote.c (remote_console_output): Update. | |
10366 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
10367 | (ui_file_puts): ...this. | |
10368 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
10369 | * gdb/utils.c (emit_style_escape): Update. | |
10370 | (flush_wrap_buffer): Update. | |
10371 | (fputs_maybe_filtered): Update. | |
10372 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 10373 | |
faa17681 IB |
10374 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
10375 | ||
aac66a4c SM |
10376 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
10377 | * gdb/printcmd.c (printf_command): Update. | |
10378 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
10379 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
10380 | (gdb_os_flush_stderr): Update. | |
10381 | * gdb/remote.c (remote_console_output): Update. | |
10382 | * gdb/ui-file.c (gdb_flush): Rename to... | |
10383 | (ui_file_flush): ...this. | |
10384 | (stderr_file::write): Update. | |
10385 | (stderr_file::puts): Update. | |
10386 | * gdb/ui-file.h (gdb_flush): Rename to... | |
10387 | (ui_file_flush): ...this. | |
10388 | * gdb/utils.c (gdb_flush): Add function. | |
10389 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 10390 | |
5abbbe1d TT |
10391 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
10392 | ||
10393 | PR breakpoints/24915: | |
10394 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
10395 | ||
919adfe8 TT |
10396 | 2020-02-07 Tom Tromey <tom@tromey.com> |
10397 | ||
10398 | * README: Update gdbserver documentation. | |
10399 | * gdbserver: Move to top level. | |
10400 | * configure.tgt (build_gdbserver): Remove. | |
10401 | * configure.ac: Remove --enable-gdbserver. | |
10402 | * configure: Rebuild. | |
10403 | * Makefile.in (distclean): Don't mention gdbserver. | |
10404 | ||
1d5d29e7 SV |
10405 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
10406 | ||
10407 | * source-cache.c (source_cache::ensure): Surround | |
10408 | get_plain_source_lines with a try/catch. | |
10409 | (source_cache::get_line_charpos): Get rid of try/catch | |
10410 | and only check for the return value of "ensure". | |
10411 | * tui/tui-source.c (tui_source_window::set_contents): | |
10412 | Simplify "nlines" calculation. | |
10413 | ||
6eb1129c SV |
10414 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
10415 | ||
10416 | * MAINTAINERS (Write After Approval): Add myself. | |
10417 | ||
c6a42d11 CB |
10418 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
10419 | ||
10420 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
10421 | function call. | |
10422 | ||
c8ecdda6 CB |
10423 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
10424 | ||
10425 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
10426 | ||
f6480e70 MR |
10427 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
10428 | ||
10429 | * nat/riscv-linux-tdesc.h: New file. | |
10430 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
10431 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
10432 | ... here. | |
10433 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
10434 | NATDEPFILES. | |
10435 | ||
dcc9fbc6 AB |
10436 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
10437 | ||
10438 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
10439 | we don't set the fake simulator ptid to the null_ptid. | |
10440 | ||
719546c4 SM |
10441 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
10442 | ||
10443 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
10444 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
10445 | * infrun.c (resume_1): Likewise. | |
10446 | (proceed): Likewise. | |
10447 | (infrun_thread_stop_requested): Likewise. | |
10448 | (stop_all_threads): Likewise. | |
10449 | (handle_inferior_event): Likewise. | |
10450 | (restart_threads): Likewise. | |
10451 | (finish_step_over): Likewise. | |
10452 | (keep_going_stepped_thread): Likewise. | |
10453 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
10454 | (linux_handle_extended_wait): Likewise. | |
10455 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
10456 | * record-full.c (record_full_wait_1): Likewise. | |
10457 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
10458 | * target.c (target_resume): Likewise. | |
10459 | * thread.c (set_running_thread): Likewise. | |
10460 | ||
e409c542 AKS |
10461 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
10462 | ||
10463 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
10464 | variable to LONGEST from int to enable it to contain bound | |
10465 | values correctly. | |
10466 | ||
ee98c0da MR |
10467 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
10468 | ||
10469 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
10470 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
10471 | offsets according to FLEN determined. | |
10472 | (riscv_linux_nat_target::read_description): Determine FLEN | |
10473 | dynamically. | |
10474 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
10475 | according to FLEN determined. | |
10476 | (riscv_linux_nat_target::store_registers): Likewise. | |
10477 | ||
aa66aac4 SV |
10478 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
10479 | ||
10480 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
10481 | when reg->group is empty and reggroup is not. | |
10482 | ||
fd9faca8 TT |
10483 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
10484 | ||
10485 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
10486 | Call beneath target's mourn_inferior after unpushing. | |
10487 | ||
42330a68 AB |
10488 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
10489 | ||
10490 | PR tui/9765 | |
10491 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
10492 | have enough lines to fill the screen, still return the lowest | |
10493 | address we found. | |
10494 | ||
7a27a45b AB |
10495 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
10496 | ||
10497 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
10498 | '-', '<', and '>' commands. | |
10499 | ||
c47f70e2 PA |
10500 | 2020-01-29 Pedro Alves <palves@redhat.com> |
10501 | Sergio Durigan Junior <sergiodj@redhat.com> | |
10502 | ||
10503 | * infcmd.c (construct_inferior_arguments): Assert that | |
10504 | 'argc' is greater than 0. | |
10505 | ||
5133a315 LM |
10506 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
10507 | ||
10508 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
10509 | (BRK_INSN_MASK): Define to 0xd4200000. | |
10510 | (aarch64_program_breakpoint_here_p): New function. | |
10511 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
10512 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
10513 | breakpoint.c. | |
10514 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
10515 | breakpoint.h | |
10516 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
10517 | call gdbarch_program_breakpoint_here_p. | |
10518 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
10519 | default_program_breakpoint_here_p, changed return type to bool and | |
10520 | simplified. | |
10521 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
10522 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
10523 | return type to bool. | |
10524 | * gdbarch.c: Regenerate. | |
10525 | * gdbarch.h: Regenerate. | |
10526 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
10527 | * infrun.c (handle_signal_stop): Call | |
10528 | gdbarch_program_breakpoint_here_p. | |
10529 | ||
168f8c6b TT |
10530 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10531 | ||
10532 | * ctfread.c (struct ctf_fp_info): Reindent. | |
10533 | (_initialize_ctfread): Remove. | |
10534 | ||
128a391f TT |
10535 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10536 | ||
10537 | * psymtab.c (partial_map_expand_apply) | |
10538 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
10539 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
10540 | (psym_print_stats, psym_expand_symtabs_for_function) | |
10541 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
10542 | (psym_expand_symtabs_matching) | |
10543 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
10544 | (maintenance_check_psymtabs): Use new methods. | |
10545 | * psympriv.h (struct partial_symtab) <readin_p, | |
10546 | get_compunit_symtab>: New methods. | |
10547 | <readin, compunit_symtab>: Remove members. | |
10548 | (struct standard_psymtab): New. | |
10549 | (struct legacy_psymtab): Derive from standard_psymtab. | |
10550 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
10551 | standard_psymtab. | |
10552 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
10553 | ||
0494dbec TT |
10554 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10555 | ||
10556 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
10557 | read_dependencies. Add assert. | |
10558 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
10559 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
10560 | method. | |
10561 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
10562 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
10563 | read_dependencies. | |
10564 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
10565 | Add assert. | |
10566 | ||
8566b89b TT |
10567 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10568 | ||
10569 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
10570 | Call expand_psymtab. | |
10571 | (xcoff_read_symtab): Call expand_psymtab. | |
10572 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
10573 | legacy_expand_psymtab. | |
10574 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
10575 | method. | |
10576 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
10577 | <legacy_expand_psymtab>: New member. | |
10578 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
10579 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
10580 | (psymtab_to_symtab_1): Change argument order. Call | |
10581 | expand_psymtab. | |
10582 | (new_psymtab): Set legacy_expand_psymtab. | |
10583 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
10584 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
10585 | expand_psymtab. | |
10586 | (dwarf2_psymtab::expand_psymtab): Rename from | |
10587 | psymtab_to_symtab_1. Call expand_psymtab. | |
10588 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
10589 | (dbx_end_psymtab): Likewise. | |
10590 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
10591 | expand_psymtab. | |
10592 | (dbx_read_symtab): Call expand_psymtab. | |
10593 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
10594 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
10595 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
10596 | ||
077cbab2 TT |
10597 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10598 | ||
10599 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
10600 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
10601 | messages. | |
10602 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
10603 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
10604 | assert. | |
10605 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
10606 | ||
891813be TT |
10607 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10608 | ||
10609 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
10610 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
10611 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
10612 | legacy_symtab. | |
10613 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
10614 | * psymtab.c (psymtab_to_symtab): Call method. | |
10615 | (dump_psymtab): Update. | |
10616 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
10617 | <read_symtab>: New method. | |
10618 | (struct legacy_symtab): New. | |
10619 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
10620 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
10621 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
10622 | (new_psymtab): Use legacy_psymtab. | |
10623 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
10624 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
10625 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
10626 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
10627 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
10628 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
10629 | (set_partial_user): Use dwarf2_psymtab. | |
10630 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
10631 | (psymtab_to_symtab_1, process_full_comp_unit) | |
10632 | (process_full_type_unit, dwarf2_ranges_read) | |
10633 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
10634 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
10635 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
10636 | (add_address_entry_worker, write_one_signatured_type) | |
10637 | (recursively_count_psymbols, recursively_write_psymbols) | |
10638 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
10639 | (write_debug_names): Likewise. | |
10640 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
10641 | <pst>: Now a legacy_psymtab. | |
10642 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
10643 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
10644 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
10645 | * ctfread.c (struct ctf_psymtab): New. | |
10646 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
10647 | ctf_psymtab. | |
10648 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
10649 | (create_partial_symtab): Return a ctf_psymtab. | |
10650 | (scan_partial_symbols): Update. | |
10651 | ||
c3693a1d TT |
10652 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10653 | ||
10654 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
10655 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
10656 | renamed from start_psymtab_common. | |
10657 | * psympriv.h (struct partial_symtab): Add new constructor. | |
10658 | (start_psymtab_common): Don't declare. | |
10659 | * mdebugread.c (parse_partial_symbols): Use new. | |
10660 | * dwarf2read.c (create_partial_symtab): Use new. | |
10661 | * dbxread.c (start_psymtab): Use new. | |
10662 | * ctfread.c (create_partial_symtab): Use new. | |
10663 | ||
32caafd0 TT |
10664 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10665 | ||
10666 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
10667 | * psymtab.c (start_psymtab_common): Use new. | |
10668 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
10669 | Update. | |
10670 | * psympriv.h (struct partial_symtab): Add parameters to | |
10671 | constructor. Don't inline. | |
10672 | (allocate_psymtab): Don't declare. | |
10673 | * mdebugread.c (new_psymtab): Use new. | |
10674 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
10675 | * dbxread.c (dbx_end_psymtab): Use new. | |
10676 | ||
abaa2f23 TT |
10677 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10678 | ||
10679 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
10680 | allocate_psymtab. Update documentation. | |
10681 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
10682 | allocate_psymtab. Do not use new. | |
10683 | (allocate_psymtab): Use new. Update. | |
10684 | ||
6d94535f TT |
10685 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10686 | ||
10687 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
10688 | * psymtab.c (psym_print_stats): Update. | |
10689 | * psympriv.h (struct partial_symtab) <readin, | |
10690 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
10691 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
10692 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
10693 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
10694 | (process_full_comp_unit, process_full_type_unit): Update. | |
10695 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
10696 | * ctfread.c (psymtab_to_symtab): Update. | |
10697 | ||
6f17252b TT |
10698 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10699 | ||
10700 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
10701 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
10702 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
10703 | (psymtab_storage::allocate_psymtab): Use new. | |
10704 | (psymtab_storage::discard_psymtab): Use delete. | |
10705 | * psympriv.h (struct partial_symtab): Add constructor and | |
10706 | initializers. | |
10707 | ||
f6f1cebc TT |
10708 | 2020-01-26 Tom Tromey <tom@tromey.com> |
10709 | ||
10710 | * machoread.c: Do not include psympriv.h. | |
10711 | ||
e47e48f6 PW |
10712 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10713 | ||
10714 | * NEWS: Mention the new option and the set/show commands. | |
10715 | ||
a2fedca9 PW |
10716 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
10717 | ||
10718 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
10719 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
10720 | (validate_exec_file): New variables, enums, functions. | |
10721 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
10722 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
10723 | set_exec_file_mismatch_command. | |
10724 | * gdbcore.h (validate_exec_file): Declare. | |
10725 | * infcmd.c (attach_command): Call validate_exec_file. | |
10726 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
10727 | ||
7ffa82e1 AB |
10728 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10729 | ||
10730 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
10731 | inner scope. | |
10732 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
10733 | types. | |
10734 | (inilne_state) <skipped_symbol>: Rename to... | |
10735 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
10736 | (skip_inline_frames): Build vector of skipped symbols and use this | |
10737 | to reate the inline_state. | |
10738 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
10739 | skipped symbol from the list. | |
10740 | ||
3d92a3e3 AB |
10741 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10742 | ||
10743 | * buildsym.c (lte_is_less_than): Delete. | |
10744 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
10745 | lambda function to sort line table entries, and use | |
10746 | std::stable_sort instead of std::sort. | |
10747 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
10748 | markers when looking for a previous line. | |
10749 | ||
94a72be7 AB |
10750 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10751 | ||
10752 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
10753 | end_sequence parameter in debug print out. Record the line if we | |
10754 | are at an end_sequence marker even if it's not the start of a | |
10755 | statement. | |
10756 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
10757 | sequence markers with 'END' not '0'. | |
10758 | ||
53af73bf PA |
10759 | 2020-01-24 Pedro Alves <palves@redhat.com> |
10760 | ||
10761 | PR gdb/25410 | |
10762 | * thread.c (scoped_restore_current_thread::restore): Use | |
10763 | switch_to_inferior_no_thread. | |
10764 | * exec.c: Include "progspace-and-thread.h". | |
10765 | (add_target_sections, remove_target_sections): | |
10766 | scoped_restore_current_pspace_and_thread instead of | |
10767 | scoped_restore_current_thread. | |
10768 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
10769 | and aspace to the inferior before calling clone_program_space. | |
10770 | Remove stale comment. | |
10771 | ||
3050c6f4 CB |
10772 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10773 | ||
10774 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
10775 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
10776 | (arm_nbsd_nat_target::store_registers): Rename to... | |
10777 | (arm_netbsd_nat_target::store_registers): ...this. | |
10778 | ||
73685c7e CB |
10779 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10780 | ||
10781 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
10782 | register_t. | |
10783 | ||
89203d40 CB |
10784 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
10785 | ||
10786 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
10787 | Update comment. | |
10788 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
10789 | Likewise. | |
10790 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
10791 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
10792 | the correct replacement (iterate_over_regset_sections). | |
10793 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
10794 | Update comment. | |
10795 | ||
1ba1ac88 AB |
10796 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
10797 | ||
10798 | PR gdb/23718 | |
10799 | * gdb/python/python.c (execute_gdb_command): Call | |
10800 | async_enable_stdin in catch block. | |
10801 | ||
f3364a6d AB |
10802 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10803 | ||
10804 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
10805 | SWITCH_THRU_ALL_UIS. | |
10806 | ||
733d0a67 AB |
10807 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
10808 | ||
10809 | PR tui/9765 | |
10810 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
10811 | comment, add extra parameter, and update to store previous symbol | |
10812 | when appropriate. | |
10813 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
10814 | add extra parameter. | |
10815 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
10816 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
10817 | rewrite to add items to asm_lines vector. | |
10818 | (tui_find_backward_disassembly_start_address): New function. | |
10819 | (tui_find_disassembly_address): Updated throughout. | |
10820 | (tui_disasm_window::set_contents): Update for changes to | |
10821 | tui_disassemble. | |
10822 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
10823 | number of lines to scroll. | |
10824 | ||
b3b3bada SM |
10825 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
10826 | ||
10827 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
10828 | (SECT_OFF_DATA): Likewise. | |
10829 | (SECT_OFF_RODATA): Likewise. | |
10830 | (SECT_OFF_TEXT): Likewise. | |
10831 | (SECT_OFF_BSS): Likewise. | |
10832 | (struct objfile) <text_section_offset, data_section_offset>: New | |
10833 | methods. | |
10834 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
10835 | objfile::text_section_offset. | |
10836 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
10837 | * coffread.c (coff_symtab_read): Likewise. | |
10838 | (enter_linenos): Likewise. | |
10839 | (process_coff_symbol): Likewise. | |
10840 | * ctfread.c (get_objfile_text_range): Likewise. | |
10841 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
10842 | Use objfile::data_section_offset. | |
10843 | * dwarf2-frame.c (execute_cfa_program): Use | |
10844 | objfile::text_section_offset. | |
10845 | (dwarf2_frame_find_fde): Likewise. | |
10846 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
10847 | (create_addrmap_from_aranges): Likewise. | |
10848 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
10849 | (process_psymtab_comp_unit_reader): Likewise. | |
10850 | (add_partial_symbol): Likewise. | |
10851 | (add_partial_subprogram): Likewise. | |
10852 | (process_full_comp_unit): Likewise. | |
10853 | (read_file_scope): Likewise. | |
10854 | (read_func_scope): Likewise. | |
10855 | (read_lexical_block_scope): Likewise. | |
10856 | (read_call_site_scope): Likewise. | |
10857 | (dwarf2_rnglists_process): Likewise. | |
10858 | (dwarf2_ranges_process): Likewise. | |
10859 | (dwarf2_ranges_read): Likewise. | |
10860 | (dwarf_decode_lines_1): Likewise. | |
10861 | (new_symbol): Likewise. | |
10862 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
10863 | (dwarf2_per_cu_text_offset): Likewise. | |
10864 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
10865 | * hppa-tdep.c (read_unwind_info): Likewise. | |
10866 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
10867 | * psympriv.h (struct partial_symtab): Likewise. | |
10868 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
10869 | * solib-svr4.c (enable_break): Likewise. | |
10870 | * stap-probe.c (relocate_address): Use | |
10871 | objfile::data_section_offset. | |
10872 | * xcoffread.c (enter_line_range): Use | |
10873 | objfile::text_section_offset. | |
10874 | (read_xcoff_symtab): Likewise. | |
10875 | ||
ab53f382 SM |
10876 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
10877 | ||
10878 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
10879 | declaration to narrower scopes. | |
10880 | ||
e7eee665 SM |
10881 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
10882 | ||
10883 | * darwin-nat.h (struct darwin_exception_msg, enum | |
10884 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
10885 | Move up. | |
10886 | (class darwin_nat_target) <wait_1, check_new_threads, | |
10887 | decode_exception_message, decode_message, stop_inferior, | |
10888 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
10889 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
10890 | (darwin_nat_target::check_new_threads): ... this. | |
10891 | (darwin_suspend_inferior_it): Remove. | |
10892 | (darwin_decode_exception_message): Rename to... | |
10893 | (darwin_nat_target::decode_exception_message): ... this. | |
10894 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
10895 | (darwin_decode_message): Rename to... | |
10896 | (darwin_nat_target::decode_message): ... this. | |
10897 | (cancel_breakpoint): Rename to... | |
10898 | (darwin_nat_target::cancel_breakpoint): ... this. | |
10899 | (darwin_wait): Rename to... | |
10900 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
10901 | instead of iterate_over_inferiors. | |
10902 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
10903 | (darwin_stop_inferior): Rename to... | |
10904 | (darwin_nat_target::stop_inferior): ... this. | |
10905 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
10906 | (darwin_init_thread_list): Rename to... | |
10907 | (darwin_nat_target::init_thread_list): ... this. | |
10908 | (darwin_ptrace_him): Rename to... | |
10909 | (darwin_nat_target::ptrace_him): ... this. | |
10910 | (darwin_nat_target::create_inferior): Pass lambda function to | |
10911 | fork_inferior. | |
10912 | (darwin_nat_target::detach): Call stop_inferior instead of | |
10913 | darwin_stop_inferior. | |
10914 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
10915 | parameter to gdb::function_view. | |
10916 | * fork-inferior.c (fork_inferior): Likewise. | |
10917 | ||
c162ed3e HD |
10918 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
10919 | ||
10920 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
10921 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
10922 | (windows_xfer_shared_libraries): Update. | |
10923 | * windows-tdep.c (windows_xfer_shared_library): | |
10924 | Add text_offset_cached argument. | |
10925 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
10926 | ||
a1237872 SM |
10927 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10928 | ||
10929 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
10930 | ||
b3ee6dd9 SM |
10931 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10932 | ||
10933 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
10934 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
10935 | replace with range-based for. | |
10936 | (gdbsim_interrupt_inferior): Remove. | |
10937 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
10938 | with a range-based for. Inline code from | |
10939 | gdbsim_interrupt_inferior. | |
10940 | ||
f9fac3c8 SM |
10941 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
10942 | ||
10943 | * infrun.c (proceed): Fix indentation. | |
10944 | ||
f6474de9 TT |
10945 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
10946 | ||
10947 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
10948 | * python/python.c (python_extension_ops): Update. | |
10949 | (gdbpy_colorize): New function. | |
10950 | * python/lib/gdb/__init__.py (colorize): New function. | |
10951 | * extension.h (ext_lang_colorize): Declare. | |
10952 | * extension.c (ext_lang_colorize): New function. | |
10953 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
10954 | member. | |
10955 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
10956 | ||
f0c702d4 LM |
10957 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10958 | ||
10959 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
10960 | <cond>: Change type to bool. | |
10961 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
10962 | (aarch64_displaced_step_cb): Likewise. | |
10963 | (aarch64_displaced_step_tb): Likewise. | |
10964 | ||
1ab139e5 LM |
10965 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10966 | ||
10967 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
10968 | output. | |
10969 | ||
0c271889 LM |
10970 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
10971 | ||
10972 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
10973 | <pc_adjust>: Adjust the documentation. | |
10974 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
10975 | adjusting it. | |
10976 | ||
4d89c1c7 TT |
10977 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10978 | ||
10979 | * disasm.c (~gdb_disassembler): New destructor. | |
10980 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
10981 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
10982 | DISABLE_COPY_AND_ASSIGN. | |
10983 | ||
c0ab21c2 TT |
10984 | 2020-01-19 Tom Tromey <tom@tromey.com> |
10985 | ||
10986 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
10987 | (die_reader_func_ftype): Remove. | |
10988 | (cutu_reader): New class. | |
10989 | (dw2_get_file_names_reader): Remove "data" parameter. | |
10990 | (dw2_get_file_names): Use cutu_reader. | |
10991 | (create_debug_type_hash_table): Update. | |
10992 | (read_cutu_die_from_dwo): Update comment. | |
10993 | (lookup_dwo_unit): Add dwo_name parameter. | |
10994 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
10995 | die_reader_func_ftype and data parameters. | |
10996 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
10997 | Remove die_reader_func_ftype and data parameters. | |
10998 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
10999 | (cutu_reader::cutu_reader): Rename from | |
11000 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
11001 | and data parameters. | |
11002 | (init_cutu_and_read_dies_simple): Remove. | |
11003 | (struct process_psymtab_comp_unit_data): Remove. | |
11004 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
11005 | want_partial_unit and pretend_language parameters. | |
11006 | (process_psymtab_comp_unit): Use cutu_reader. | |
11007 | (build_type_psymtabs_reader): Remove data parameter. | |
11008 | (build_type_psymtabs_1): Use cutu_reader. | |
11009 | (process_skeletonless_type_unit): Likewise. | |
11010 | (load_partial_comp_unit_reader): Remove. | |
11011 | (load_partial_comp_unit): Use cutu_reader. | |
11012 | (load_full_comp_unit_reader): Remove. | |
11013 | (load_full_comp_unit): Use cutu_reader. | |
11014 | (struct create_dwo_cu_data): Remove. | |
11015 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
11016 | dwo_unit parameters. | |
11017 | (create_cus_hash_table): Use cutu_reader. | |
11018 | (struct dwarf2_read_addr_index_data): Remove. | |
11019 | (dwarf2_read_addr_index_reader): Remove. | |
11020 | (dwarf2_read_addr_index): Use cutu_reader. | |
11021 | (read_signatured_type_reader): Remove. | |
11022 | (read_signatured_type): Use cutu_reader. | |
11023 | ||
45bbae5c TT |
11024 | 2020-01-19 Tom Tromey <tom@tromey.com> |
11025 | ||
11026 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
11027 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
11028 | (tui_wrefresh): Declare. | |
11029 | * tui/tui-wingeneral.c (suppress_output): New global. | |
11030 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
11031 | destructor. | |
11032 | (tui_wrefresh): New function. | |
11033 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
11034 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
11035 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
11036 | method. | |
11037 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
11038 | tui_wrefresh. | |
11039 | (tui_data_window::no_refresh): New method. | |
11040 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
11041 | (tui_reg_command): Use tui_suppress_output | |
11042 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
11043 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
11044 | method. | |
11045 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
11046 | ||
4f13c1c0 TT |
11047 | 2020-01-19 Tom Tromey <tom@tromey.com> |
11048 | ||
11049 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
11050 | Handle case where symtab is null. | |
11051 | ||
fa47e446 SM |
11052 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
11053 | ||
11054 | * linux-fork.c (one_fork_p): Simplify. | |
11055 | ||
26f42329 SM |
11056 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
11057 | ||
11058 | * top.c (struct qt_args): Remove. | |
11059 | (kill_or_detach): Change return type to void, replace `void *` | |
11060 | parameter with a proper one. | |
11061 | (print_inferior_quit_action): Likewise. | |
11062 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
11063 | (quit_force): Likewise. | |
11064 | ||
a9ac81b1 SM |
11065 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
11066 | ||
11067 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
11068 | `void *` parameter with proper parameters. | |
11069 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
11070 | (print_one_inferior): Change return type to void, replace `void *` | |
11071 | parameter with proper parameters. | |
11072 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
11073 | inferiors. | |
11074 | (get_other_inferior): Remove. | |
11075 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
11076 | inferiors. | |
11077 | ||
788eca49 SM |
11078 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
11079 | ||
11080 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
11081 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
11082 | ||
d9bc85b6 SM |
11083 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
11084 | ||
11085 | * python/py-inferior.c (build_inferior_list): Remove. | |
11086 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
11087 | ||
40c94099 CB |
11088 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
11089 | ||
11090 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
11091 | (btrace_stitch_trace): Likewise. | |
11092 | * charset.c (intermediate_encoding): Likewise (vaild). | |
11093 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
11094 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
11095 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
11096 | ||
e0cdfe3c HD |
11097 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
11098 | ||
11099 | * windows-tdep.c (windows_get_tlb_type): | |
11100 | Add rtl_user_process_parameters type. | |
11101 | ||
790f1718 | 11102 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 11103 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
11104 | |
11105 | PR build/24805 | |
11106 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
11107 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
11108 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
11109 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
11110 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
11111 | (ps_plog): Redeclare exported functions with default visibility. | |
11112 | ||
3112ed97 NA |
11113 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
11114 | ||
11115 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
11116 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
11117 | ||
8dc3273e SM |
11118 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
11119 | ||
11120 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
11121 | instead of get_current_regcache. | |
11122 | ||
ff47f4f0 TT |
11123 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11124 | ||
11125 | PR symtab/12535: | |
11126 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
11127 | as no argument. | |
11128 | ||
975f45b7 TT |
11129 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11130 | ||
11131 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
11132 | ||
25e57356 TT |
11133 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11134 | ||
11135 | * nat/linux-btrace.c: Don't include <config.h>. | |
11136 | * nat/linux-ptrace.c: Don't include <config.h>. | |
11137 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
11138 | ||
05ea2a05 TT |
11139 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11140 | ||
11141 | * configure: Rebuild. | |
11142 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
11143 | ||
01027315 TT |
11144 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11145 | ||
11146 | * nat/x86-linux-dregs.c: Include configh.h. | |
11147 | * nat/linux-ptrace.c: Include configh.h. | |
11148 | * nat/linux-btrace.c: Include configh.h. | |
11149 | * defs.h: Include config.h, bfd.h. | |
11150 | * configure.ac: Don't source common.host. | |
11151 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
11152 | * configure: Rebuild. | |
11153 | * acinclude.m4: Update path. | |
11154 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
11155 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
11156 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
11157 | (CLIBS): Add LIBSUPPORT. | |
11158 | (CDEPS): Likewise. | |
11159 | (COMMON_SFILES): Remove gdbsupport files. | |
11160 | (HFILES_NO_SRCDIR): Likewise. | |
11161 | (stamp-version): Update path to create-version.sh. | |
11162 | (ALLDEPFILES): Remove gdbsupport files. | |
11163 | ||
b2ceabe8 TT |
11164 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11165 | ||
11166 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
11167 | USE_WIN32API when needed. | |
11168 | * configure.ac (USE_WIN32API): Don't define. | |
11169 | (WIN32LIBS): Use WIN32APILIBS. | |
11170 | * configure: Rebuild. | |
11171 | ||
25c51f71 TT |
11172 | 2020-01-14 Tom Tromey <tom@tromey.com> |
11173 | ||
11174 | * configure: Rebuild. | |
11175 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
11176 | ||
717c684d BE |
11177 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
11178 | ||
11179 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
11180 | name of the inlined function if pc is inside any inlined function. | |
11181 | ||
7da6a5b9 LM |
11182 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
11183 | ||
11184 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
11185 | * infrun.c (resume_1): Likewise. | |
11186 | (handle_inferior_event): Remove stale comment. | |
11187 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
11188 | (save_stop_reason): Likewise. | |
11189 | (linux_nat_filter_event): Likewise. | |
11190 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
11191 | ||
44e4c775 AB |
11192 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
11193 | ||
11194 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
11195 | non-allocatable sections. | |
11196 | ||
18a8505e AT |
11197 | |
11198 | 2020-01-13 Ali Tamur <tamur@google.com> | |
11199 | ||
11200 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
11201 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
11202 | to gdb::optional. Update comments. | |
11203 | (dwo_file): Update comments. | |
11204 | (read_attribute): Update API to take an additional out parameter, | |
11205 | need_reprocess. This is used to mark attributes that need other | |
11206 | attributes (e.g. str_offsets_base) for correct computation which may not | |
11207 | have been read yet. | |
11208 | (read_attribute_reprocess): New function declaration. | |
11209 | (read_addr_index): Likewise. | |
11210 | (read_dwo_str_index): Likewise. | |
11211 | (read_stub_str_index): Likewise. | |
11212 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
11213 | (lookup_addr_base): New function definition. | |
11214 | (lookup_ranges_base): Likewise. | |
11215 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
11216 | lookup_ranges_base. | |
11217 | (init_cutu_and_read_dies): Update comments. | |
11218 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
11219 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
11220 | Update comments. | |
11221 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
11222 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
11223 | (create_cus_hash_table): Change API to take parent compile unit. | |
11224 | Reflect API changes. | |
11225 | (open_and_init_dwo_file): Reflect API changes. | |
11226 | (dwarf2_get_pc_bounds): Update comments. | |
11227 | (dwarf2_record_block_ranges): Likewise. | |
11228 | (read_full_die_1): Change implementation to reprocess attributes that | |
11229 | need str_offsets_base and addr_base. | |
11230 | (partial_die_info::read): Likewise. | |
11231 | (read_attribute_reprocess): New function definition. | |
11232 | (read_attribute_value): Change API to take an additional out parameter, | |
11233 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
11234 | when a non-dwo compile unit has index based attributes. | |
11235 | (read_attribute): Reflect API changes. | |
11236 | (read_addr_index_1): Reflect API changes. Update comments. | |
11237 | (dwarf2_read_addr_index_data): Reflect API changes. | |
11238 | (dwarf2_read_addr_index): Likewise. | |
11239 | (read_str_index): Change API and implementation. This becomes a helper | |
11240 | to be used by the new string index related methods. Update error | |
11241 | message and comments. | |
11242 | (read_dwo_str_index): New function definition. | |
11243 | (read_stub_str_index): Likewise. | |
11244 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
11245 | * symfile.h (dwarf2_debug_sections): Likewise. | |
11246 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
11247 | ||
0cac9354 SM |
11248 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
11249 | ||
11250 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
11251 | core_reg_sect type to gdb_byte *. | |
11252 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
11253 | * cris-tdep.c (fetch_core_registers): Likewise. | |
11254 | * corelow.c (core_target::get_core_register_section): Change | |
11255 | type of `contents` to gdb::byte_vector. | |
11256 | ||
9a6d629c AB |
11257 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
11258 | ||
11259 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
11260 | of the border. | |
11261 | ||
d8b2f9e3 SM |
11262 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
11263 | ||
11264 | * corelow.c (core_target::get_core_register_section): Use | |
11265 | std::vector instead of alloca. | |
11266 | ||
bb564c58 SM |
11267 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
11268 | ||
11269 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
11270 | * configure: Re-generate. | |
11271 | ||
6b366111 SM |
11272 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
11273 | ||
11274 | * python/python.c (init__gdb_module): Add declaration. | |
11275 | ||
6c265988 SM |
11276 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
11277 | ||
11278 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
11279 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
11280 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
11281 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
11282 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
11283 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
11284 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
11285 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
11286 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
11287 | * agent.c (_initialize_agent): Add declaration. | |
11288 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
11289 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
11290 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
11291 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
11292 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
11293 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
11294 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
11295 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
11296 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
11297 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
11298 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
11299 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
11300 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
11301 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
11302 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
11303 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
11304 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
11305 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
11306 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
11307 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
11308 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
11309 | * annotate.c (_initialize_annotate): Add declaration. | |
11310 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
11311 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
11312 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
11313 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
11314 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
11315 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
11316 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
11317 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
11318 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
11319 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
11320 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
11321 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
11322 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
11323 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
11324 | * auto-load.c (_initialize_auto_load): Add declaration. | |
11325 | * auxv.c (_initialize_auxv): Add declaration. | |
11326 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
11327 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
11328 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
11329 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
11330 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
11331 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
11332 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
11333 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
11334 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
11335 | * btrace.c (_initialize_btrace): Add declaration. | |
11336 | * charset.c (_initialize_charset): Add declaration. | |
11337 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
11338 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
11339 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
11340 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
11341 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
11342 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
11343 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
11344 | * coffread.c (_initialize_coffread): Add declaration. | |
11345 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
11346 | * compile/compile.c (_initialize_compile): Add declaration. | |
11347 | * complaints.c (_initialize_complaints): Add declaration. | |
11348 | * completer.c (_initialize_completer): Add declaration. | |
11349 | * copying.c (_initialize_copying): Add declaration. | |
11350 | * corefile.c (_initialize_core): Add declaration. | |
11351 | * corelow.c (_initialize_corelow): Add declaration. | |
11352 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
11353 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
11354 | * cp-support.c (_initialize_cp_support): Add declaration. | |
11355 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
11356 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
11357 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
11358 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
11359 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
11360 | * ctfread.c (_initialize_ctfread): Add declaration. | |
11361 | * d-lang.c (_initialize_d_language): Add declaration. | |
11362 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
11363 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
11364 | * dbxread.c (_initialize_dbxread): Add declaration. | |
11365 | * dcache.c (_initialize_dcache): Add declaration. | |
11366 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
11367 | * disasm.c (_initialize_disasm): Add declaration. | |
11368 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
11369 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
11370 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
11371 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
11372 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
11373 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
11374 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
11375 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
11376 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
11377 | * elfread.c (_initialize_elfread): Add declaration. | |
11378 | * exec.c (_initialize_exec): Add declaration. | |
11379 | * extension.c (_initialize_extension): Add declaration. | |
11380 | * f-lang.c (_initialize_f_language): Add declaration. | |
11381 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
11382 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
11383 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
11384 | * filesystem.c (_initialize_filesystem): Add declaration. | |
11385 | * findcmd.c (_initialize_mem_search): Add declaration. | |
11386 | * findvar.c (_initialize_findvar): Add declaration. | |
11387 | * fork-child.c (_initialize_fork_child): Add declaration. | |
11388 | * frame-base.c (_initialize_frame_base): Add declaration. | |
11389 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
11390 | * frame.c (_initialize_frame): Add declaration. | |
11391 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
11392 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
11393 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
11394 | * gcore.c (_initialize_gcore): Add declaration. | |
11395 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
11396 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
11397 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
11398 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
11399 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
11400 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
11401 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
11402 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
11403 | * go-lang.c (_initialize_go_language): Add declaration. | |
11404 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
11405 | * guile/guile.c (_initialize_guile): Add declaration. | |
11406 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
11407 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
11408 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
11409 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
11410 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
11411 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
11412 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
11413 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
11414 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
11415 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
11416 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
11417 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
11418 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
11419 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
11420 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
11421 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
11422 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
11423 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
11424 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
11425 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
11426 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
11427 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
11428 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
11429 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
11430 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
11431 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
11432 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
11433 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
11434 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
11435 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
11436 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
11437 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
11438 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
11439 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
11440 | * infcall.c (_initialize_infcall): Add declaration. | |
11441 | * infcmd.c (_initialize_infcmd): Add declaration. | |
11442 | * inflow.c (_initialize_inflow): Add declaration. | |
11443 | * infrun.c (_initialize_infrun): Add declaration. | |
11444 | * interps.c (_initialize_interpreter): Add declaration. | |
11445 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
11446 | * jit.c (_initialize_jit): Add declaration. | |
11447 | * language.c (_initialize_language): Add declaration. | |
11448 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
11449 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
11450 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
11451 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
11452 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
11453 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
11454 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
11455 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
11456 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
11457 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
11458 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
11459 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
11460 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
11461 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
11462 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
11463 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
11464 | * machoread.c (_initialize_machoread): Add declaration. | |
11465 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
11466 | * macroscope.c (_initialize_macroscope): Add declaration. | |
11467 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
11468 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
11469 | * maint.c (_initialize_maint_cmds): Add declaration. | |
11470 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
11471 | * memattr.c (_initialize_mem): Add declaration. | |
11472 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
11473 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
11474 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
11475 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
11476 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
11477 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
11478 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
11479 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
11480 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
11481 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
11482 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
11483 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
11484 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
11485 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
11486 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
11487 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
11488 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
11489 | * mipsread.c (_initialize_mipsread): Add declaration. | |
11490 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
11491 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
11492 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
11493 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
11494 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
11495 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
11496 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
11497 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
11498 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
11499 | * observable.c (_initialize_observer): Add declaration. | |
11500 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
11501 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
11502 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
11503 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
11504 | * osdata.c (_initialize_osdata): Add declaration. | |
11505 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
11506 | * parse.c (_initialize_parse): Add declaration. | |
11507 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
11508 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
11509 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
11510 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
11511 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
11512 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
11513 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
11514 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
11515 | * printcmd.c (_initialize_printcmd): Add declaration. | |
11516 | * probe.c (_initialize_probe): Add declaration. | |
11517 | * proc-api.c (_initialize_proc_api): Add declaration. | |
11518 | * proc-events.c (_initialize_proc_events): Add declaration. | |
11519 | * proc-service.c (_initialize_proc_service): Add declaration. | |
11520 | * procfs.c (_initialize_procfs): Add declaration. | |
11521 | * producer.c (_initialize_producer): Add declaration. | |
11522 | * psymtab.c (_initialize_psymtab): Add declaration. | |
11523 | * python/python.c (_initialize_python): Add declaration. | |
11524 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
11525 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
11526 | * record-full.c (_initialize_record_full): Add declaration. | |
11527 | * record.c (_initialize_record): Add declaration. | |
11528 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
11529 | * regcache.c (_initialize_regcache): Add declaration. | |
11530 | * reggroups.c (_initialize_reggroup): Add declaration. | |
11531 | * remote-notif.c (_initialize_notif): Add declaration. | |
11532 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
11533 | * remote.c (_initialize_remote): Add declaration. | |
11534 | * reverse.c (_initialize_reverse): Add declaration. | |
11535 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
11536 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
11537 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
11538 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
11539 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
11540 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
11541 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
11542 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
11543 | Add declaration. | |
11544 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
11545 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
11546 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
11547 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
11548 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
11549 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
11550 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
11551 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
11552 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
11553 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
11554 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
11555 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
11556 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
11557 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
11558 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
11559 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
11560 | * serial.c (_initialize_serial): Add declaration. | |
11561 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
11562 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
11563 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
11564 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
11565 | * skip.c (_initialize_step_skip): Add declaration. | |
11566 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
11567 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
11568 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
11569 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
11570 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
11571 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
11572 | * solib-target.c (_initialize_solib_target): Add declaration. | |
11573 | * solib.c (_initialize_solib): Add declaration. | |
11574 | * source-cache.c (_initialize_source_cache): Add declaration. | |
11575 | * source.c (_initialize_source): Add declaration. | |
11576 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
11577 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
11578 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
11579 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
11580 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
11581 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
11582 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
11583 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
11584 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
11585 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
11586 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
11587 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
11588 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
11589 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
11590 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
11591 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
11592 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
11593 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
11594 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
11595 | * stabsread.c (_initialize_stabsread): Add declaration. | |
11596 | * stack.c (_initialize_stack): Add declaration. | |
11597 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
11598 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
11599 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
11600 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
11601 | * symfile.c (_initialize_symfile): Add declaration. | |
11602 | * symmisc.c (_initialize_symmisc): Add declaration. | |
11603 | * symtab.c (_initialize_symtab): Add declaration. | |
11604 | * target.c (_initialize_target): Add declaration. | |
11605 | * target-connection.c (_initialize_target_connection): Add | |
11606 | declaration. | |
11607 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
11608 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
11609 | * thread.c (_initialize_thread): Add declaration. | |
11610 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
11611 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
11612 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
11613 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
11614 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
11615 | * tracectf.c (_initialize_ctf): Add declaration. | |
11616 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
11617 | * tracefile.c (_initialize_tracefile): Add declaration. | |
11618 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
11619 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
11620 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
11621 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
11622 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
11623 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
11624 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
11625 | * tui/tui.c (_initialize_tui): Add declaration. | |
11626 | * typeprint.c (_initialize_typeprint): Add declaration. | |
11627 | * ui-style.c (_initialize_ui_style): Add declaration. | |
11628 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
11629 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
11630 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
11631 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
11632 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
11633 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
11634 | * unittests/filtered_iterator-selftests.c | |
11635 | (_initialize_filtered_iterator_selftests): Add declaration. | |
11636 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
11637 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
11638 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
11639 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
11640 | * unittests/main-thread-selftests.c | |
11641 | (_initialize_main_thread_selftests): Add declaration. | |
11642 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
11643 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
11644 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
11645 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
11646 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
11647 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
11648 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
11649 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
11650 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
11651 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
11652 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
11653 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
11654 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
11655 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
11656 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
11657 | declaration. | |
11658 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
11659 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
11660 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
11661 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
11662 | * user-regs.c (_initialize_user_regs): Add declaration. | |
11663 | * utils.c (_initialize_utils): Add declaration. | |
11664 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
11665 | * valops.c (_initialize_valops): Add declaration. | |
11666 | * valprint.c (_initialize_valprint): Add declaration. | |
11667 | * value.c (_initialize_values): Add declaration. | |
11668 | * varobj.c (_initialize_varobj): Add declaration. | |
11669 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
11670 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
11671 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
11672 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
11673 | (_initialize_check_for_gdb_ini): Add declaration. | |
11674 | (_initialize_loadable): Add declaration. | |
11675 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
11676 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
11677 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
11678 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
11679 | * xml-support.c (_initialize_xml_support): Add declaration. | |
11680 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
11681 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
11682 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
11683 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
11684 | ||
e2de1eec SM |
11685 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
11686 | ||
11687 | * regformats/regdat.sh: Generate declaration for init function. | |
11688 | ||
e0037b4c SM |
11689 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
11690 | ||
11691 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
11692 | up. | |
11693 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
11694 | close_one_inferior>: New methods. | |
11695 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
11696 | pass down target to find_inferior_pid. | |
11697 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
11698 | Pass down target to find_inferior_ptid. | |
11699 | (gdbsim_target::create_inferior): Pass down target to | |
11700 | add_thread_silent. | |
11701 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
11702 | target down to find_inferior_ptid and switch_to_thread. | |
11703 | (gdbsim_target::close): Update to call close_one_inferior. | |
11704 | (struct resume_data): Remove. | |
11705 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
11706 | directly, rather than through a void pointer. | |
11707 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
11708 | ||
58920b5b SM |
11709 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
11710 | ||
11711 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
11712 | ||
4ec89149 PA |
11713 | 2020-01-12 Pedro Alves <palves@redhat.com> |
11714 | ||
11715 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
11716 | directly for the current inferior instead of | |
11717 | discard_all_inferiors. | |
11718 | (discard_all_inferiors): Delete. | |
11719 | ||
7c392d1d TT |
11720 | 2020-01-11 Tom Tromey <tom@tromey.com> |
11721 | ||
11722 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
11723 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
11724 | deprecated_safe_get_selected_frame. | |
11725 | ||
d9ebdab7 TBA |
11726 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
11727 | ||
11728 | * inferior.c (print_inferior): Switch inferior before printing it. | |
11729 | ||
f3c469b9 PA |
11730 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
11731 | Pedro Alves <palves@redhat.com> | |
11732 | ||
11733 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
11734 | Assert there's an inferior for PSPACE. Use | |
11735 | switch_to_inferior_no_thread to switch the inferior too. | |
11736 | * progspace.c (program_space::~program_space): Call | |
11737 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
11738 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
11739 | here. | |
11740 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
11741 | ||
65c574f6 PA |
11742 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11743 | ||
11744 | * NEWS: Mention multi-target debugging, "info connections", and | |
11745 | "add-inferior -no-connection". | |
11746 | ||
2f4fcf00 PA |
11747 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11748 | ||
11749 | * infrun.c: Include "target-connection.h". | |
11750 | (check_multi_target_resumption): New. | |
11751 | (proceed): Call it. | |
11752 | * target-connection.c (make_target_connection_string): Make | |
11753 | extern. | |
11754 | * target-connection.h (make_target_connection_string): Declare. | |
11755 | ||
121b3efd PA |
11756 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11757 | ||
11758 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
11759 | * inferior.c (uiout_field_connection): New function. | |
11760 | (print_inferior): Add new "connection-id" column. | |
11761 | (add_inferior_command): Show connection number/string of added | |
11762 | inferior. | |
11763 | * process-stratum-target.h | |
11764 | (process_stratum_target::connection_string): New virtual method. | |
11765 | (process_stratum_target::connection_number): New field. | |
11766 | * remote.c (remote_target::connection_string): New override. | |
11767 | * target-connection.c: New file. | |
11768 | * target-connection.h: New file. | |
11769 | * target.c (decref_target): Remove process_stratum targets from | |
11770 | the connection list. | |
11771 | (target_stack::push): Add process_stratum targets to the | |
11772 | connection list. | |
11773 | ||
4f837581 PA |
11774 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11775 | ||
11776 | Revert: | |
11777 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
11778 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
11779 | Remove references to name. | |
11780 | * serial.h (struct serial) <name>: Delete. | |
11781 | ||
f4ec508e PA |
11782 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11783 | ||
11784 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
11785 | already pushed" check. | |
11786 | ||
5b6d1e4f PA |
11787 | 2020-01-10 Pedro Alves <palves@redhat.com> |
11788 | John Baldwin <jhb@FreeBSD.org> | |
11789 | ||
11790 | * aarch64-linux-nat.c | |
11791 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
11792 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
11793 | (task_command_1): Likewise. | |
11794 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
11795 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
11796 | (aix_thread_target::store_registers) | |
11797 | (aix_thread_target::thread_alive): Adjust. | |
11798 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
11799 | (amd64fbsd_get_thread_local_address): Pass down target. | |
11800 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
11801 | thread's gdbarch instead of target_gdbarch. | |
11802 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
11803 | get_last_target_status. | |
11804 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
11805 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
11806 | inferiors. | |
11807 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
11808 | execution. | |
11809 | (update_global_location_list): When handling moribund locations, | |
11810 | find representative inferior for location's pspace, and use thread | |
11811 | count of its process_stratum target. | |
11812 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
11813 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
11814 | as_process_stratum_target and adjust thread_change_ptid and | |
11815 | add_thread calls. | |
11816 | (bsd_uthread_target::update_thread_list): Use | |
11817 | as_process_stratum_target and adjust find_thread_ptid, | |
11818 | thread_change_ptid and add_thread calls. | |
11819 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
11820 | find_thread_ptid call. | |
11821 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
11822 | (core_target_open): Adjust add_thread_silent and thread_count | |
11823 | calls. | |
11824 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
11825 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
11826 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
11827 | * exec.c (add_target_sections): Push exec target on all inferiors | |
11828 | sharing the program space. | |
11829 | (remove_target_sections): Remove the exec target from all | |
11830 | inferiors sharing the program space. | |
11831 | (exec_on_vfork): New. | |
11832 | * exec.h (exec_on_vfork): Declare. | |
11833 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
11834 | Pass it down. | |
11835 | (fbsd_nat_target::update_thread_list): Adjust. | |
11836 | (fbsd_nat_target::resume): Adjust. | |
11837 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
11838 | down. | |
11839 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
11840 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
11841 | get_thread_arch_regcache call. | |
11842 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
11843 | startup_inferior and set_executing. | |
11844 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
11845 | (add_thread, add_thread_silent, add_thread_with_info) | |
11846 | (in_thread_list): Add process_stratum_target parameter. | |
11847 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
11848 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
11849 | parameter. | |
11850 | (all_threads()): Delete overload. | |
11851 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
11852 | parameter. | |
11853 | (all_threads_safe): Use brace initialization. | |
11854 | (thread_count): Add process_stratum_target parameter. | |
11855 | (set_resumed, set_running, set_stop_requested, set_executing) | |
11856 | (threads_are_executing, finish_thread_state): Add | |
11857 | process_stratum_target parameter. | |
11858 | (switch_to_thread): Use is_current_thread. | |
11859 | * i386-fbsd-tdep.c: Include "inferior.h". | |
11860 | (i386fbsd_get_thread_local_address): Pass down target. | |
11861 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
11862 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
11863 | have_inferiors check. | |
11864 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
11865 | (inf_ptrace_target::attach): Adjust. | |
11866 | * infcall.c (run_inferior_call): Adjust. | |
11867 | * infcmd.c (run_command_1): Pass target to | |
11868 | scoped_finish_thread_state. | |
11869 | (proceed_thread_callback): Skip inferiors with no execution. | |
11870 | (continue_command): Rename 'all_threads' local to avoid hiding | |
11871 | 'all_threads' function. Adjust get_last_target_status call. | |
11872 | (prepare_one_step): Adjust set_running call. | |
11873 | (signal_command): Use user_visible_resume_target. Compare thread | |
11874 | pointers instead of inferior_ptid. | |
11875 | (info_program_command): Adjust to pass down target. | |
11876 | (attach_command): Mark target's 'thread_executing' flag. | |
11877 | (stop_current_target_threads_ns): New, factored out from ... | |
11878 | (interrupt_target_1): ... this. Switch inferior before making | |
11879 | target calls. | |
11880 | * inferior-iter.h | |
11881 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
11882 | (struct all_inferiors_safe_range) | |
11883 | (struct all_non_exited_inferiors_range): Filter on | |
11884 | process_stratum_target too. Remove explicit. | |
11885 | * inferior.c (inferior::inferior): Push dummy target on target | |
11886 | stack. | |
11887 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
11888 | Add process_stratum_target parameter, and pass it down. | |
11889 | (have_live_inferiors): Adjust. | |
11890 | (switch_to_inferior_and_push_target): New. | |
11891 | (add_inferior_command, clone_inferior_command): Handle | |
11892 | "-no-connection" parameter. Use | |
11893 | switch_to_inferior_and_push_target. | |
11894 | (_initialize_inferior): Mention "-no-connection" option in | |
11895 | the help of "add-inferior" and "clone-inferior" commands. | |
11896 | * inferior.h: Include "process-stratum-target.h". | |
11897 | (interrupt_target_1): Use bool. | |
11898 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
11899 | find_target_beneath, top_target, process_target, target_at, | |
11900 | m_stack>: New. | |
11901 | (discard_all_inferiors): Delete. | |
11902 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
11903 | (all_inferiors, all_non_exited_inferiors): Add | |
11904 | process_stratum_target parameter. | |
11905 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
11906 | (target_last_proc_target): New global. | |
11907 | (follow_fork_inferior): Push target on new inferior. Pass target | |
11908 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
11909 | reference count. | |
11910 | (follow_fork): Adjust get_last_target_status call. Also consider | |
11911 | target. | |
11912 | (follow_exec): Push target on new inferior. | |
11913 | (struct execution_control_state) <target>: New field. | |
11914 | (user_visible_resume_target): New. | |
11915 | (do_target_resume): Call target_async. | |
11916 | (resume_1): Set target's threads_executing flag. Consider resume | |
11917 | target. | |
11918 | (commit_resume_all_targets): New. | |
11919 | (proceed): Also consider resume target. Skip threads of inferiors | |
11920 | with no execution. Commit resumtion in all targets. | |
11921 | (start_remote): Pass current inferior to wait_for_inferior. | |
11922 | (infrun_thread_stop_requested): Consider target as well. Pass | |
11923 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
11924 | (infrun_thread_thread_exit): Consider target as well. | |
11925 | (random_pending_event_thread): New inferior parameter. Use it. | |
11926 | (do_target_wait): Rename to ... | |
11927 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
11928 | down. | |
11929 | (threads_are_resumed_pending_p, do_target_wait): New. | |
11930 | (prepare_for_detach): Adjust calls. | |
11931 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
11932 | do_target_wait_1 instead of do_target_wait. | |
11933 | (fetch_inferior_event): Adjust. Switch to representative | |
11934 | inferior. Pass target down. | |
11935 | (set_last_target_status): Add process_stratum_target parameter. | |
11936 | Save target in global. | |
11937 | (get_last_target_status): Add process_stratum_target parameter and | |
11938 | handle it. | |
11939 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
11940 | (context_switch): Check inferior_ptid == null_ptid before calling | |
11941 | inferior_thread(). | |
11942 | (get_inferior_stop_soon): Pass down target. | |
11943 | (wait_one): Rename to ... | |
11944 | (poll_one_curr_target): ... this. | |
11945 | (struct wait_one_event): New. | |
11946 | (wait_one): New. | |
11947 | (stop_all_threads): Adjust. | |
11948 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
11949 | event's target. | |
11950 | (switch_back_to_stepped_thread): Also consider target. | |
11951 | (print_stop_event): Update. | |
11952 | (normal_stop): Update. Also consider the resume target. | |
11953 | * infrun.h (wait_for_inferior): Remove declaration. | |
11954 | (user_visible_resume_target): New declaration. | |
11955 | (get_last_target_status, set_last_target_status): New | |
11956 | process_stratum_target parameter. | |
11957 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
11958 | process_stratum_target parameter, and use it. | |
11959 | (clear_inline_frame_state (thread_info*)): New. | |
11960 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
11961 | process_stratum_target parameter. | |
11962 | (clear_inline_frame_state (thread_info*)): Declare. | |
11963 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
11964 | find_thread_ptid. | |
11965 | (checkpoint_command): Adjust. | |
11966 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
11967 | instead of just tweaking inferior_ptid. | |
11968 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
11969 | (exit_lwp): Pass target down to find_thread_ptid. | |
11970 | (attach_proc_task_lwp_callback): Pass target down to | |
11971 | add_thread/set_running/set_executing. | |
11972 | (linux_nat_target::attach): Pass target down to | |
11973 | thread_change_ptid. | |
11974 | (get_detach_signal): Pass target down to find_thread_ptid. | |
11975 | Consider last target status's target. | |
11976 | (linux_resume_one_lwp_throw, resume_lwp) | |
11977 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
11978 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
11979 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
11980 | (linux_nat_target::async_wait_fd): New. | |
11981 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
11982 | target down. | |
11983 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
11984 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
11985 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
11986 | field. | |
11987 | (add_thread_db_info): Save target. | |
11988 | (get_thread_db_info): New process_stratum_target parameter. Also | |
11989 | match target. | |
11990 | (delete_thread_db_info): New process_stratum_target parameter. | |
11991 | Also match target. | |
11992 | (thread_from_lwp): Adjust to pass down target. | |
11993 | (thread_db_notice_clone): Pass down target. | |
11994 | (check_thread_db_callback): Pass down target. | |
11995 | (try_thread_db_load_1): Always push the thread_db target. | |
11996 | (try_thread_db_load, record_thread): Pass target down. | |
11997 | (thread_db_target::detach): Pass target down. Always unpush the | |
11998 | thread_db target. | |
11999 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
12000 | target down. Always unpush the thread_db target. | |
12001 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
12002 | (thread_db_target::update_thread_list): Pass target down. | |
12003 | (thread_db_target::pid_to_str): Pass current inferior down. | |
12004 | (thread_db_target::get_thread_local_address): Pass target down. | |
12005 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
12006 | target down. | |
12007 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
12008 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
12009 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
12010 | (procfs_init_inferior): Rename to ... | |
12011 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
12012 | (procfs_target::create_inferior, procfs_notice_thread) | |
12013 | (procfs_do_thread_registers): Adjust. | |
12014 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
12015 | (ppcfbsd_get_thread_local_address): Pass down target. | |
12016 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
12017 | program space as well. | |
12018 | (get_ps_regcache): Pass target down. | |
12019 | * process-stratum-target.c | |
12020 | (process_stratum_target::thread_address_space) | |
12021 | (process_stratum_target::thread_architecture): Pass target down. | |
12022 | * process-stratum-target.h | |
12023 | (process_stratum_target::threads_executing): New field. | |
12024 | (as_process_stratum_target): New. | |
12025 | * ravenscar-thread.c | |
12026 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
12027 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
12028 | down. | |
12029 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
12030 | (record_btrace_target::record_method) | |
12031 | (record_btrace_target::record_is_replaying) | |
12032 | (record_btrace_target::fetch_registers) | |
12033 | (get_thread_current_frame_id, record_btrace_target::resume) | |
12034 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
12035 | target down. | |
12036 | * record-full.c (record_full_wait_1): Switch to event thread. | |
12037 | Pass target down. | |
12038 | * regcache.c (regcache::regcache) | |
12039 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
12040 | process_stratum_target parameter and handle it. | |
12041 | (current_thread_target): New global. | |
12042 | (get_thread_regcache): Add process_stratum_target parameter and | |
12043 | handle it. Switch inferior before calling target method. | |
12044 | (get_thread_regcache): Pass target down. | |
12045 | (get_thread_regcache_for_ptid): Pass target down. | |
12046 | (registers_changed_ptid): Add process_stratum_target parameter and | |
12047 | handle it. | |
12048 | (registers_changed_thread, registers_changed): Pass target down. | |
12049 | (test_get_thread_arch_aspace_regcache): New. | |
12050 | (current_regcache_test): Define a couple local test_target_ops | |
12051 | instances and use them for testing. | |
12052 | (readwrite_regcache): Pass process_stratum_target parameter. | |
12053 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
12054 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
12055 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
12056 | parameter. | |
12057 | (regcache::target): New method. | |
12058 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
12059 | (regcache::registers_changed_ptid): Add process_stratum_target | |
12060 | parameter. | |
12061 | (regcache::m_target): New field. | |
12062 | (registers_changed_ptid): Add process_stratum_target parameter. | |
12063 | * remote.c (remote_state::supports_vCont_probed): New field. | |
12064 | (remote_target::async_wait_fd): New method. | |
12065 | (remote_unpush_and_throw): Add remote_target parameter. | |
12066 | (get_current_remote_target): Adjust. | |
12067 | (remote_target::remote_add_inferior): Push target. | |
12068 | (remote_target::remote_add_thread) | |
12069 | (remote_target::remote_notice_new_inferior) | |
12070 | (get_remote_thread_info): Pass target down. | |
12071 | (remote_target::update_thread_list): Skip threads of inferiors | |
12072 | bound to other targets. (remote_target::close): Don't discard | |
12073 | inferiors. (remote_target::add_current_inferior_and_thread) | |
12074 | (remote_target::process_initial_stop_replies) | |
12075 | (remote_target::start_remote) | |
12076 | (remote_target::remote_serial_quit_handler): Pass down target. | |
12077 | (remote_target::remote_unpush_target): New remote_target | |
12078 | parameter. Unpush the target from all inferiors. | |
12079 | (remote_target::remote_unpush_and_throw): New remote_target | |
12080 | parameter. Pass it down. | |
12081 | (remote_target::open_1): Check whether the current inferior has | |
12082 | execution instead of checking whether any inferior is live. Pass | |
12083 | target down. | |
12084 | (remote_target::remote_detach_1): Pass down target. Use | |
12085 | remote_unpush_target. | |
12086 | (extended_remote_target::attach): Pass down target. | |
12087 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
12088 | (remote_target::append_resumption): Pass down target. | |
12089 | (remote_target::append_pending_thread_resumptions) | |
12090 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
12091 | (remote_target::commit_resume): Pass down target. | |
12092 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
12093 | (remote_target::interrupt_query) | |
12094 | (remote_target::remove_new_fork_children) | |
12095 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
12096 | (remote_target::remote_parse_stop_reply) | |
12097 | (remote_target::process_stop_reply): Pass down target. | |
12098 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
12099 | it down. | |
12100 | (remote_target::wait_as): Pass down target. | |
12101 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
12102 | (remote_target::readchar, remote_target::remote_serial_write) | |
12103 | (remote_target::getpkt_or_notif_sane_1) | |
12104 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
12105 | down target. | |
12106 | (remote_target::mourn_inferior): Pass down target. Use | |
12107 | remote_unpush_target. | |
12108 | (remote_target::core_of_thread) | |
12109 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
12110 | (remote_target::pid_to_exec_file) | |
12111 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
12112 | (remote_target::async_wait_fd): New. | |
12113 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
12114 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
12115 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
12116 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
12117 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
12118 | Adjust. | |
12119 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
12120 | * solib-svr4.c (enable_break): Pass down target. | |
12121 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
12122 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
12123 | * target-delegates.c: Regenerate. | |
12124 | * target.c (g_target_stack): Delete. | |
12125 | (current_top_target): Return the current inferior's top target. | |
12126 | (target_has_execution_1): Refer to the passed-in inferior's top | |
12127 | target. | |
12128 | (target_supports_terminal_ours): Check whether the initial | |
12129 | inferior was already created. | |
12130 | (decref_target): New. | |
12131 | (target_stack::push): Incref/decref the target. | |
12132 | (push_target, push_target, unpush_target): Adjust. | |
12133 | (target_stack::unpush): Defref target. | |
12134 | (target_is_pushed): Return bool. Adjust to refer to the current | |
12135 | inferior's target stack. | |
12136 | (dispose_inferior): Delete, and inline parts ... | |
12137 | (target_preopen): ... here. Only dispose of the current inferior. | |
12138 | (target_detach): Hold strong target reference while detaching. | |
12139 | Pass target down. | |
12140 | (target_thread_name): Add assertion. | |
12141 | (target_resume): Pass down target. | |
12142 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
12143 | current inferior's target stack. | |
12144 | (get_dummy_target): New. | |
12145 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
12146 | has a thread running. | |
12147 | (initialize_targets): Rename to ... | |
12148 | (_initialize_target): ... this. | |
12149 | * target.h: Include "gdbsupport/refcounted-object.h". | |
12150 | (struct target_ops): Inherit refcounted_object. | |
12151 | (target_ops::shortname, target_ops::longname): Make const. | |
12152 | (target_ops::async_wait_fd): New method. | |
12153 | (decref_target): Declare. | |
12154 | (struct target_ops_ref_policy): New. | |
12155 | (target_ops_ref): New typedef. | |
12156 | (get_dummy_target): Declare function. | |
12157 | (target_is_pushed): Return bool. | |
12158 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
12159 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
12160 | Handle filter target. | |
12161 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
12162 | all_matching_threads_range, class all_non_exited_threads_range): | |
12163 | Filter by target too. Remove explicit. | |
12164 | * thread.c (threads_executing): Delete. | |
12165 | (inferior_thread): Pass down current inferior. | |
12166 | (clear_thread_inferior_resources): Pass down thread pointer | |
12167 | instead of ptid_t. | |
12168 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
12169 | process_stratum_target parameter. Use it for thread and inferior | |
12170 | searches. | |
12171 | (is_current_thread): New. | |
12172 | (thread_info::deletable): Use it. | |
12173 | (find_thread_ptid, thread_count, in_thread_list) | |
12174 | (thread_change_ptid, set_resumed, set_running): New | |
12175 | process_stratum_target parameter. Pass it down. | |
12176 | (set_executing): New process_stratum_target parameter. Pass it | |
12177 | down. Adjust reference to 'threads_executing'. | |
12178 | (threads_are_executing): New process_stratum_target parameter. | |
12179 | Adjust reference to 'threads_executing'. | |
12180 | (set_stop_requested, finish_thread_state): New | |
12181 | process_stratum_target parameter. Pass it down. | |
12182 | (switch_to_thread): Also match inferior. | |
12183 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
12184 | down. | |
12185 | (update_threads_executing): Reimplement. | |
12186 | * top.c (quit_force): Pop targets from all inferior. | |
12187 | (gdb_init): Don't call initialize_targets. | |
12188 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
12189 | Declare. | |
12190 | (windows_add_thread, windows_delete_thread): Adjust. | |
12191 | (get_windows_debug_event): Rename to ... | |
12192 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
12193 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
12194 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
12195 | Forward declare. | |
12196 | (switch_to_thread): Add process_stratum_target parameter. | |
12197 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
12198 | parameter. Use it. | |
12199 | (mi_on_resume): Pass target down. | |
12200 | * nat/fork-inferior.c (startup_inferior): Add | |
12201 | process_stratum_target parameter. Pass it down. | |
12202 | * nat/fork-inferior.h (startup_inferior): Add | |
12203 | process_stratum_target parameter. | |
12204 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
12205 | ||
75c6c844 PA |
12206 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12207 | ||
12208 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
12209 | directly. Instead find the first thread in the thread list and | |
12210 | use switch_to_thread. | |
12211 | ||
78f2c40a PA |
12212 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12213 | ||
12214 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
12215 | process to the current inferior if the current inferior is already | |
12216 | bound to a process. | |
12217 | ||
e7af6c70 TBA |
12218 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
12219 | Pedro Alves <palves@redhat.com> | |
12220 | ||
12221 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
12222 | If no process is specified, return null_ptid instead of | |
12223 | inferior_ptid. | |
12224 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
12225 | TARGET_WAITKIND_SIGNALLED with no pid. | |
12226 | ||
31ba933e PA |
12227 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12228 | ||
12229 | * remote.c (first_remote_resumed_thread): New. | |
12230 | (remote_target::wait_as): Use it as default event_ptid instead of | |
12231 | inferior_ptid. | |
12232 | ||
735fc2ca PA |
12233 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12234 | ||
12235 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
12236 | ||
c17e02e1 PA |
12237 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12238 | ||
12239 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
12240 | not -1. | |
12241 | ||
ab1ddbcf PA |
12242 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12243 | ||
12244 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
12245 | ptid to get_last_target_status. | |
12246 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
12247 | ptid to get_last_target_status. | |
12248 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
12249 | get_last_target_status. | |
12250 | (info_program_command): Don't pass a target_waitstatus to | |
12251 | get_last_target_status. | |
12252 | * infrun.c (init_wait_for_inferior): Use | |
12253 | nullify_last_target_wait_ptid. | |
12254 | (get_last_target_status): Handle nullptr arguments. | |
12255 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
12256 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
12257 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
12258 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
12259 | comments here and update. | |
12260 | (nullify_last_target_wait_ptid): Declare. | |
12261 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
12262 | declaration of nullify_last_target_wait_ptid. | |
12263 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
12264 | to get_last_target_status. | |
12265 | ||
f3f8ece4 PA |
12266 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12267 | ||
12268 | * gdbthread.h (scoped_restore_current_thread) | |
12269 | <dont_restore, restore, m_dont_restore>: Declare. | |
12270 | * thread.c (thread_alive): Add assertion. Return bool. | |
12271 | (switch_to_thread_if_alive): New. | |
12272 | (prune_threads): Switch inferior/thread. | |
12273 | (print_thread_info_1): Switch thread before calling target methods. | |
12274 | (scoped_restore_current_thread::restore): New, factored out from | |
12275 | ... | |
12276 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
12277 | ... this. | |
12278 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
12279 | Add assertion. | |
12280 | (thread_apply_all_command, thread_select): Use | |
12281 | switch_to_thread_if_alive. | |
12282 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
12283 | (switch_back_to_stepped_thread): Switch current thread before | |
12284 | calling target methods. | |
12285 | ||
db2d40f7 PA |
12286 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12287 | ||
12288 | * inferior.c (switch_to_inferior_no_thread): New function, | |
12289 | factored out from ... | |
12290 | (inferior_command): ... here. | |
12291 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
12292 | * mi/mi-main.c (run_one_inferior): Use | |
12293 | switch_to_inferior_no_thread. | |
12294 | ||
bd420a2d PA |
12295 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12296 | ||
12297 | * infcmd.c (kill_command): Remove dead code. | |
12298 | ||
ddf5db90 PA |
12299 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12300 | ||
12301 | * remote.c (remote_target::mourn_inferior): No longer check | |
12302 | whether the target is running. | |
12303 | ||
5018ce90 PA |
12304 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12305 | ||
12306 | * corelow.c (core_target::has_execution): Change parameter type to | |
12307 | inferior pointer. | |
12308 | * inferior.c (number_of_live_inferiors): Use | |
12309 | inferior::has_execution instead of target_has_execution_1. | |
12310 | * inferior.h (inferior::has_execution): New. | |
12311 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
12312 | inferior::has_execution instead of target_has_execution_1. | |
12313 | * process-stratum-target.c | |
12314 | (process_stratum_target::has_execution): Change parameter type to | |
12315 | inferior pointer. Check the inferior's PID instead of | |
12316 | inferior_ptid. | |
12317 | * process-stratum-target.h | |
12318 | (process_stratum_target::has_execution): Change parameter type to | |
12319 | inferior pointer. | |
12320 | * record-full.c (record_full_core_target::has_execution): Change | |
12321 | parameter type to inferior pointer. | |
12322 | * target.c (target_has_execution_1): Change parameter type to | |
12323 | inferior pointer. | |
12324 | (target_has_execution_current): Adjust. | |
12325 | * target.h (target_ops::has_execution): Change parameter type to | |
12326 | inferior pointer. | |
12327 | (target_has_execution_1): Change parameter type to inferior | |
12328 | pointer. Change return type to bool. | |
12329 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
12330 | type to inferior pointer. | |
12331 | ||
74375d18 PA |
12332 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12333 | ||
12334 | * exceptions.c (print_flush): Remove current_top_target() check. | |
12335 | ||
acdf84a6 PA |
12336 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12337 | ||
12338 | * remote.c (show_remote_exec_file): Show the current inferior's | |
12339 | exec-file instead of the command variable's value. | |
12340 | ||
ec506636 PA |
12341 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12342 | ||
12343 | * record-full.c (record_full_resume_ptid): New global. | |
12344 | (record_full_target::resume): Set it. | |
12345 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
12346 | inferior_ptid. | |
12347 | ||
873657b9 PA |
12348 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12349 | ||
12350 | * gdbthread.h (scoped_restore_current_thread) | |
12351 | <dont_restore, restore, m_dont_restore>: Declare. | |
12352 | * thread.c (thread_alive): Add assertion. Return bool. | |
12353 | (switch_to_thread_if_alive): New. | |
12354 | (prune_threads): Switch inferior/thread. | |
12355 | (print_thread_info_1): Switch thread before calling target methods. | |
12356 | (scoped_restore_current_thread::restore): New, factored out from | |
12357 | ... | |
12358 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
12359 | ... this. | |
12360 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
12361 | Add assertion. | |
12362 | (thread_apply_all_command, thread_select): Use | |
12363 | switch_to_thread_if_alive. | |
12364 | ||
7f0ae84c GB |
12365 | 2020-01-10 George Barrett <bob@bob131.so> |
12366 | ||
12367 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
12368 | semaphores. | |
12369 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
12370 | for null semaphores. | |
12371 | ||
f5a7c406 AB |
12372 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
12373 | ||
12374 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
12375 | all source windows, and maintain horizontal scroll status while | |
12376 | doing so. | |
12377 | ||
9ae6bf64 TT |
12378 | 2020-01-09 Tom Tromey <tom@tromey.com> |
12379 | ||
12380 | PR tui/18932: | |
12381 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
12382 | update_source_window, not print_source_lines. | |
12383 | ||
b2efe70c AB |
12384 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
12385 | ||
12386 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
12387 | tui_display_main. | |
12388 | ||
5f23a082 CB |
12389 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
12390 | ||
12391 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
12392 | ||
3061113b SM |
12393 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
12394 | ||
12395 | * thread.c (print_thread_info_1): Fix indentation. | |
12396 | ||
57d75002 CB |
12397 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
12398 | ||
12399 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
12400 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
12401 | ||
6a053cb1 TT |
12402 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
12403 | ||
12404 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
12405 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
12406 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
12407 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
12408 | Remove. | |
12409 | (section_offsets): New typedef. | |
12410 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
12411 | * symmisc.c (dump_msymbols): Update. | |
12412 | * symfile.h (relative_addr_info_to_section_offsets) | |
12413 | (symfile_map_offsets_to_segments): Update. | |
12414 | * symfile.c (build_section_addr_info_from_objfile) | |
12415 | (init_objfile_sect_indices): Update. | |
12416 | (struct place_section_arg): Change type of "offsets". | |
12417 | (place_section): Update. | |
12418 | (relative_addr_info_to_section_offsets): Change type of | |
12419 | "section_offsets". Remove "num_sections" parameter. | |
12420 | (default_symfile_offsets, syms_from_objfile_1) | |
12421 | (set_objfile_default_section_offset): Update. | |
12422 | (reread_symbols): No need to preserve section offsets by hand. | |
12423 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
12424 | * stap-probe.c (relocate_address): Update. | |
12425 | * stabsread.h (process_one_symbol): Update. | |
12426 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
12427 | (solib_target_relocate_section_addresses): Update. | |
12428 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
12429 | Update. | |
12430 | * solib-frv.c (frv_relocate_main_executable): Update. | |
12431 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
12432 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
12433 | type. | |
12434 | (solib_aix_solib_create_inferior_hook): Update. | |
12435 | * remote.c (remote_target::get_offsets): Update. | |
12436 | * psymtab.c (find_pc_sect_psymtab): Update. | |
12437 | * psympriv.h (struct partial_symbol) <address, text_low, | |
12438 | text_high>: Update. | |
12439 | * objfiles.h (obj_section_offset): Update. | |
12440 | (struct objfile) <section_offsets>: Change type. | |
12441 | <num_sections>: Remove. | |
12442 | (objfile_relocate): Update. | |
12443 | * objfiles.c (entry_point_address_query): Update | |
12444 | (relocate_one_symbol): Change type of "section_offsets". | |
12445 | (objfile_relocate1, objfile_relocate1): Change type of | |
12446 | "new_offsets". | |
12447 | (objfile_rebase1): Update. | |
12448 | * mipsread.c (mipscoff_symfile_read): Update. | |
12449 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
12450 | parameter. | |
12451 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
12452 | (parse_external, psymtab_to_symtab_1): Update. | |
12453 | * machoread.c (macho_symfile_offsets): Update. | |
12454 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
12455 | * hppa-tdep.c (read_unwind_info): Update. | |
12456 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
12457 | * dwarf2read.c (create_addrmap_from_index) | |
12458 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
12459 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
12460 | (add_partial_subprogram, process_full_comp_unit) | |
12461 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
12462 | (read_call_site_scope, dwarf2_rnglists_process) | |
12463 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
12464 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
12465 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
12466 | Update. | |
12467 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
12468 | Update. | |
12469 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
12470 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
12471 | (process_one_symbol): Change type of "section_offsets". | |
12472 | * ctfread.c (get_objfile_text_range): Update. | |
12473 | * coffread.c (coff_symtab_read, enter_linenos) | |
12474 | (process_coff_symbol): Update. | |
12475 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
12476 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
12477 | ||
456e800a TT |
12478 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
12479 | ||
12480 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
12481 | (parse_macro_definition): Likewise. | |
12482 | ||
6dfa2fc2 TT |
12483 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
12484 | ||
12485 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
12486 | (ATTR_ALLOC_CHUNK): Remove. | |
12487 | ||
421d1616 TT |
12488 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
12489 | ||
12490 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
12491 | ||
43816ebc TT |
12492 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
12493 | ||
12494 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
12495 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
12496 | (process_enumeration_scope): Use std::vector. | |
12497 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
12498 | (partial_die_info::fixup, dwarf2_start_subfile) | |
12499 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
12500 | (determine_prefix): Update. | |
12501 | (guess_full_die_structure_name): Make return type const. | |
12502 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
12503 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
12504 | ||
4212d509 TT |
12505 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
12506 | ||
12507 | PR build/24937: | |
12508 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
12509 | ||
06a6207a JT |
12510 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
12511 | ||
12512 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
12513 | ||
153d79c4 AB |
12514 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
12515 | ||
12516 | * stack.c (print_frame_info): Move disassemble_next_line code | |
12517 | inside source_print block. | |
12518 | ||
66182876 EZ |
12519 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12520 | ||
12521 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
12522 | gdb/signals.h, as we are now using native signal symbols. | |
12523 | ||
cbfa8581 SV |
12524 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
12525 | ||
12526 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
12527 | overflow by an early check of content vs threshold. | |
aac66a4c | 12528 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
12529 | Likewise. |
12530 | ||
3f602821 EZ |
12531 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12532 | ||
12533 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
12534 | ||
a08c904d JT |
12535 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
12536 | ||
12537 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
12538 | export table if no section contains it's RVA. | |
12539 | ||
89a65580 EZ |
12540 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12541 | ||
12542 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
12543 | ||
8b7fcda2 HD |
12544 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
12545 | ||
12546 | * source.c (print_source_lines_base): Set last_line_listed. | |
12547 | ||
a61b4f69 SV |
12548 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
12549 | ||
12550 | * tui/tui-disasm.c: Remove trailing spaces. | |
12551 | ||
559e7e50 EZ |
12552 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
12553 | Pedro Alves <palves@redhat.com> | |
12554 | ||
12555 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
12556 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
12557 | (windows_gdb_signal_to_target): New function, uses the above | |
12558 | enumeration to convert GDB internal signal codes to equivalent | |
12559 | Windows codes. | |
12560 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
12561 | * windows-nat.c: Include "gdb_wait.h". | |
12562 | (get_windows_debug_event): Extract the fatal exception from the | |
12563 | exit status and convert to the equivalent Posix signal number. | |
12564 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
12565 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
12566 | * gdbsupport/gdb_wait.c: New file, implements | |
12567 | windows_status_to_termsig. | |
12568 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
12569 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
12570 | ||
f2302a34 AB |
12571 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
12572 | ||
12573 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
12574 | show_layout. | |
12575 | ||
6a5206eb LM |
12576 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
12577 | ||
12578 | * aarch64-linux-nat.c | |
12579 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
12580 | and bfd_mach_aarch64. | |
12581 | ||
6ec1d75e PW |
12582 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
12583 | ||
12584 | * ui-file.c (stdio_file::can_emit_style_escape) | |
12585 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
12586 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
12587 | to gdb_stdout. | |
12588 | * main.c (set_gdb_data_directory): Use file style to output the | |
12589 | warning that the given pathname is not a directory. | |
12590 | * top.c (show_history_filename, gdb_safe_append_history) | |
12591 | (show_gdb_datadir): Use file style. | |
12592 | ||
44f81a76 HD |
12593 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
12594 | ||
12595 | * solib-target.c (struct lm_info_target): | |
12596 | Change offsets to be a unique_xmalloc_ptr. | |
12597 | (solib_target_relocate_section_addresses): Update. | |
12598 | ||
25057eb0 HD |
12599 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
12600 | ||
12601 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
12602 | ||
6e2118f5 BE |
12603 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
12604 | ||
12605 | * MAINTAINERS (Write After Approval): Add myself. | |
12606 | ||
8133c7dc LM |
12607 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
12608 | ||
12609 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
12610 | Cell BE architecture. | |
12611 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
12612 | ||
48189bec HD |
12613 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
12614 | ||
12615 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
12616 | ||
ead1063b HD |
12617 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
12618 | ||
12619 | * MAINTAINERS (Write After Approval): Add myself. | |
12620 | ||
e5d78223 JB |
12621 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12622 | ||
12623 | * gdbarch.sh: Update copyright year range of generated files. | |
12624 | ||
b811d2c2 JB |
12625 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12626 | ||
12627 | Update copyright year range in all GDB files. | |
12628 | ||
5f4def5c JB |
12629 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12630 | ||
12631 | * copyright.py: Convert to Python 3. | |
12632 | ||
51fd4002 JB |
12633 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12634 | ||
12635 | * copyright.py: Adapt after move of gnulib directory from gdb | |
12636 | directory to toplevel directory. | |
12637 | ||
5fb651f2 JB |
12638 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12639 | ||
12640 | * copyright.py (main): Exit if run from the wrong directory. | |
12641 | ||
5dd8bf88 JB |
12642 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
12643 | ||
12644 | * top.c (print_gdb_version): Change copyright year to 2020. | |
12645 | ||
9f71dacb | 12646 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 12647 | |
9f71dacb | 12648 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 12649 | |
9f71dacb | 12650 | For older changes see ChangeLog-2019. |
c906108c SS |
12651 | \f |
12652 | Local Variables: | |
12653 | mode: change-log | |
12654 | left-margin: 8 | |
12655 | fill-column: 74 | |
12656 | version-control: never | |
57da7796 | 12657 | coding: utf-8 |
c906108c | 12658 | End: |